Changeset 3191 for trunk/psLib/aclocal.m4
- Timestamp:
- Feb 11, 2005, 10:27:34 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/aclocal.m4 (modified) (103 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/aclocal.m4
r3190 r3191 1 # generated automatically by aclocal 1.9.1-*- Autoconf -*-2 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 20041 # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*- 2 3 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 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 modify 19 # it under the terms of the GNU General Public License as published by 20 # 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 of 25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26 # GNU General Public License for more details. 27 28 # You should have received a copy of the GNU General Public License 29 # along with this program; if not, write to the Free Software 30 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 31 # 02111-1307, USA. 32 33 AC_PREREQ([2.52]) 34 35 # serial 6 36 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 header 39 # 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 expansion 45 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]))[]dnl 53 ])# _AM_DIRNAME 54 55 56 # The stamp files are numbered to have different names. 57 # We could number them on a directory basis, but that's additional 58 # 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))dnl 67 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 that 74 # 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 timestamp 80 echo 'timestamp for $1' >"_AM_STAMP([$1])" 81 $2], 82 [$3]) 83 ])# _AM_CONFIG_HEADER 84 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_HEADER 91 92 # Do all the work for Automake. -*- Autoconf -*- 93 94 # This macro actually does too much some checks are only needed if 95 # your package does certain things. But this isn't really a big deal. 96 97 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 98 # Free Software Foundation, Inc. 99 100 # This program is free software; you can redistribute it and/or modify 101 # it under the terms of the GNU General Public License as published by 102 # 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 of 107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 108 # GNU General Public License for more details. 109 110 # You should have received a copy of the GNU General Public License 111 # along with this program; if not, write to the Free Software 112 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 113 # 02111-1307, USA. 114 115 # serial 8 116 117 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 118 # written in clear, in which case automake, when reading aclocal.m4, 119 # will think it sees a *use*, and therefore will trigger all it's 120 # C support machinery. Also note that it means that autoscan, seeing 121 # 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 allow 127 # the ones we care about. 128 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 129 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 style 134 # call (pre autoconf-2.50), which is being phased out. PACKAGE 135 # and VERSION should now be passed to AC_INIT and removed from 136 # the call to AM_INIT_AUTOMAKE. 137 # We support both call styles for the transition. After 138 # the next Automake release, Autoconf can make the AC_INIT 139 # arguments mandatory, and then we can depend on a new Autoconf 140 # release and drop the old call support. 141 AC_DEFUN([AM_INIT_AUTOMAKE], 142 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 143 AC_REQUIRE([AC_PROG_INSTALL])dnl 144 # test to see if srcdir already configured 145 if test "`cd $srcdir && pwd`" != "`pwd`" && 146 test -f $srcdir/config.status; then 147 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 148 fi 149 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])])dnl 154 AC_SUBST([PACKAGE], [$1])dnl 155 AC_SUBST([VERSION], [$2])], 156 [_AM_SET_OPTIONS([$1])dnl 157 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl 158 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl 159 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])])dnl 163 164 # Some tools Automake needs. 165 AC_REQUIRE([AM_SANITY_CHECK])dnl 166 AC_REQUIRE([AC_ARG_PROGRAM])dnl 167 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_SH 174 AM_PROG_INSTALL_STRIP 175 # We need awk for the "check" target. The system "awk" is bad on 176 # some platforms. 177 AC_REQUIRE([AC_PROG_AWK])dnl 178 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 179 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)])])dnl 185 AC_PROVIDE_IFELSE([AC_PROG_][CXX], 186 [_AM_DEPENDENCIES(CXX)], 187 [define([AC_PROG_][CXX], 188 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl 189 ]) 190 ]) 191 192 # Copyright 2002 Free Software Foundation, Inc. 193 194 # This program is free software; you can redistribute it and/or modify 195 # it under the terms of the GNU General Public License as published by 196 # 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 of 201 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 202 # GNU General Public License for more details. 203 204 # You should have received a copy of the GNU General Public License 205 # along with this program; if not, write to the Free Software 206 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 207 208 # AM_AUTOMAKE_VERSION(VERSION) 209 # ---------------------------- 210 # Automake X.Y traces this macro to ensure aclocal.m4 has been 211 # 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_VERSION 215 # ------------------------------- 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 modify 226 # it under the terms of the GNU General Public License as published by 227 # 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 of 232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 233 # GNU General Public License for more details. 234 235 # You should have received a copy of the GNU General Public License 236 # along with this program; if not, write to the Free Software 237 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 238 # 02111-1307, USA. 239 240 # serial 2 241 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 modify 272 # it under the terms of the GNU General Public License as published by 273 # 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 of 278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 279 # GNU General Public License for more details. 280 281 # You should have received a copy of the GNU General Public License 282 # along with this program; if not, write to the Free Software 283 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 284 # 02111-1307, USA. 285 286 # serial 3 287 288 # AM_SANITY_CHECK 289 # --------------- 290 AC_DEFUN([AM_SANITY_CHECK], 291 [AC_MSG_CHECKING([whether build environment is sane]) 292 # Just in case 293 sleep 1 294 echo timestamp > conftest.file 295 # Do `set' in a subshell so we don't clobber the current shell's 296 # arguments. Must try -L first in case configure is actually a 297 # symlink; some systems play weird games with the mod time of symlinks 298 # (eg FreeBSD returns the mod time of the symlink's containing 299 # directory). 300 if ( 301 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 302 if test "$[*]" = "X"; then 303 # -L didn't work. 304 set X `ls -t $srcdir/configure conftest.file` 305 fi 306 rm -f conftest.file 307 if test "$[*]" != "X $srcdir/configure conftest.file" \ 308 && test "$[*]" != "X conftest.file $srcdir/configure"; then 309 310 # If neither matched, then we have a broken ls. This can happen 311 # if, for instance, CONFIG_SHELL is bash and it inherits a 312 # broken ls alias from the environment. This has actually 313 # happened. Such a system could not be considered "sane". 314 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 315 alias in your environment]) 316 fi 317 318 test "$[2]" = conftest.file 319 ) 320 then 321 # Ok. 322 : 323 else 324 AC_MSG_ERROR([newly created file is older than distributed files! 325 Check your system clock]) 326 fi 327 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 modify 335 # it under the terms of the GNU General Public License as published by 336 # 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 of 341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 342 # GNU General Public License for more details. 343 344 # You should have received a copy of the GNU General Public License 345 # along with this program; if not, write to the Free Software 346 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 347 # 02111-1307, USA. 348 349 # serial 3 350 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_RUN 360 # ------------------ 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])dnl 365 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 366 # Use eval to expand $SHELL 367 if eval "$MISSING --run true"; then 368 am_missing_run="$MISSING --run " 369 else 370 am_missing_run= 371 AC_MSG_WARN([`missing' script is too old or missing]) 372 fi 373 ]) 374 375 # AM_AUX_DIR_EXPAND 376 377 # Copyright 2001 Free Software Foundation, Inc. 378 379 # This program is free software; you can redistribute it and/or modify 380 # it under the terms of the GNU General Public License as published by 381 # 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 of 386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 387 # GNU General Public License for more details. 388 389 # You should have received a copy of the GNU General Public License 390 # along with this program; if not, write to the Free Software 391 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 392 # 02111-1307, USA. 393 394 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 395 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 396 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. 397 # 398 # Of course, Automake must honor this variable whenever it calls a 399 # tool from the auxiliary directory. The problem is that $srcdir (and 400 # therefore $ac_aux_dir as well) can be either absolute or relative, 401 # depending on how configure is run. This is pretty annoying, since 402 # it makes $ac_aux_dir quite unusable in subdirectories: in the top 403 # source directory, any form will work fine, but in subdirectories a 404 # relative path needs to be adjusted first. 405 # 406 # $ac_aux_dir/missing 407 # fails when called from a subdirectory if $ac_aux_dir is relative 408 # $top_srcdir/$ac_aux_dir/missing 409 # fails if $ac_aux_dir is absolute, 410 # fails when called from a subdirectory in a VPATH build with 411 # a relative $ac_aux_dir 412 # 413 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 414 # are both prefixed by $srcdir. In an in-source build this is usually 415 # harmless because $srcdir is `.', but things will broke when you 416 # 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 as 422 # MISSING="\${SHELL} $am_aux_dir/missing" 423 # This will work as long as MISSING is not called from configure, because 424 # unfortunately $(top_srcdir) has no meaning in configure. 425 # However there are other variables, like CC, which are often used in 426 # 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 an 429 # absolute PATH. The drawback is that using absolute paths prevent a 430 # 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 path 437 am_aux_dir=`cd $ac_aux_dir && pwd` 438 ]) 439 440 # AM_PROG_INSTALL_SH 441 # ------------------ 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 modify 447 # it under the terms of the GNU General Public License as published by 448 # 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 of 453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 454 # GNU General Public License for more details. 455 456 # You should have received a copy of the GNU General Public License 457 # along with this program; if not, write to the Free Software 458 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 459 # 02111-1307, USA. 460 461 AC_DEFUN([AM_PROG_INSTALL_SH], 462 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 463 install_sh=${install_sh-"$am_aux_dir/install-sh"} 464 AC_SUBST(install_sh)]) 465 466 # AM_PROG_INSTALL_STRIP 467 468 # Copyright 2001 Free Software Foundation, Inc. 469 470 # This program is free software; you can redistribute it and/or modify 471 # it under the terms of the GNU General Public License as published by 472 # 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 of 477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 478 # GNU General Public License for more details. 479 480 # You should have received a copy of the GNU General Public License 481 # along with this program; if not, write to the Free Software 482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 483 # 02111-1307, USA. 484 485 # One issue with vendor `install' (even GNU) is that you can't 486 # specify the program used to strip binaries. This is especially 487 # annoying in cross-compiling environments, where the build's strip 488 # is unlikely to handle the host's binaries. 489 # Fortunately install-sh will honor a STRIPPROG variable, so we 490 # always use install-sh in `make install-strip', and initialize 491 # 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])dnl 494 # Installed binaries are usually stripped using `strip' when the user 495 # run `make install-strip'. However `strip' might not be the right 496 # tool to use in cross-compilation environments, therefore Automake 497 # 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; then 500 AC_CHECK_TOOL([STRIP], [strip], :) 501 fi 502 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 modify 510 # it under the terms of the GNU General Public License as published by 511 # 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 of 516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 517 # GNU General Public License for more details. 518 519 # You should have received a copy of the GNU General Public License 520 # along with this program; if not, write to the Free Software 521 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 522 # 02111-1307, USA. 523 524 525 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 526 # written in clear, in which case automake, when reading aclocal.m4, 527 # will think it sees a *use*, and therefore will trigger all it's 528 # C support machinery. Also note that it means that autoscan, seeing 529 # 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 was 540 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 541 # 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])dnl 545 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 546 AC_REQUIRE([AM_MAKE_INCLUDE])dnl 547 AC_REQUIRE([AM_DEP_TRACK])dnl 548 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"; then 558 # We make a subdir and do the tests there. Otherwise we can end up 559 # making bogus files that we don't know about and never remove. For 560 # instance it was reported that on HP-UX the gcc test will end up 561 # making a dummy file named `D' -- because `-MD' means `put the output 562 # in D'. 563 mkdir conftest.dir 564 # Copy depcomp to subdir because otherwise we won't find it if we're 565 # using a relative directory. 566 cp "$am_depcomp" conftest.dir 567 cd conftest.dir 568 569 am_cv_$1_dependencies_compiler_type=none 570 if test "$am_compiler_list" = ""; then 571 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 572 fi 573 for depmode in $am_compiler_list; do 574 # We need to recreate these files for each test, as the compiler may 575 # 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.c 578 echo 'int i;' > conftest.h 579 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 580 581 case $depmode in 582 nosideeffect) 583 # after this tag, mechanisms are not by side-effect, so they'll 584 # only be used when explicitly requested 585 if test "x$enable_dependency_tracking" = xyes; then 586 continue 587 else 588 break 589 fi 590 ;; 591 none) break ;; 592 esac 593 # We check with `-c' and `-o' for the sake of the "dashmstdout" 594 # mode. It turns out that the SunPro C++ compiler does not properly 595 # 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; then 602 am_cv_$1_dependencies_compiler_type=$depmode 603 break 604 fi 605 done 606 607 cd .. 608 rm -rf conftest.dir 609 else 610 am_cv_$1_dependencies_compiler_type=none 611 fi 612 ]) 613 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 614 ]) 615 616 617 # AM_SET_DEPDIR 618 # ------------- 619 # Choose a directory name for dependency files. 620 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 621 AC_DEFUN([AM_SET_DEPDIR], 622 [rm -f .deps 2>/dev/null 623 mkdir .deps 2>/dev/null 624 if test -d .deps; then 625 DEPDIR=.deps 626 else 627 # MS-DOS does not allow filenames that begin with a dot. 628 DEPDIR=_deps 629 fi 630 rmdir .deps 2>/dev/null 631 AC_SUBST([DEPDIR]) 632 ]) 633 634 635 # AM_DEP_TRACK 636 # ------------ 637 AC_DEFUN([AM_DEP_TRACK], 638 [AC_ARG_ENABLE(dependency-tracking, 639 [ --disable-dependency-tracking Speeds up one-time builds 640 --enable-dependency-tracking Do not reject slow dependency extractors]) 641 if test "x$enable_dependency_tracking" != xno; then 642 am_depcomp="$ac_aux_dir/depcomp" 643 AMDEPBACKSLASH='\' 644 fi 645 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 modify 654 # it under the terms of the GNU General Public License as published by 655 # 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 of 660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 661 # GNU General Public License for more details. 662 663 # You should have received a copy of the GNU General Public License 664 # along with this program; if not, write to the Free Software 665 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 666 # 02111-1307, USA. 667 668 #serial 2 669 670 # _AM_OUTPUT_DEPENDENCY_COMMANDS 671 # ------------------------------ 672 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 673 [for mf in $CONFIG_FILES; do 674 # 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', but 678 # some people rename them; so instead we look at the file content. 679 # Grep'ing the first line is not enough: some people post-process 680 # 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; then 683 dirpart=`AS_DIRNAME("$mf")` 684 else 685 continue 686 fi 687 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue 688 # Extract the definition of DEP_FILES from the Makefile without 689 # running `make'. 690 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 691 test -z "$DEPDIR" && continue 692 # When using ansi2knr, U may be empty or an underscore; expand it 693 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 to 696 # changing $(DEPDIR) to its actual value in the expansion. 697 for file in `sed -n -e ' 698 /^DEP_FILES = .*\\\\$/ { 699 s/^DEP_FILES = // 700 :loop 701 s/\\\\$// 702 p 703 n 704 /\\\\$/ b loop 705 p 706 } 707 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 709 # Make sure the directory exists. 710 test -f "$dirpart/$file" && continue 711 fdir=`AS_DIRNAME(["$file"])` 712 AS_MKDIR_P([$dirpart/$fdir]) 713 # echo "creating $dirpart/$file" 714 echo '# dummy' > "$dirpart/$file" 715 done 716 done 717 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 718 719 720 # AM_OUTPUT_DEPENDENCY_COMMANDS 721 # ----------------------------- 722 # This macro should only be invoked once -- use via AC_REQUIRE. 723 # 724 # This code is only required when automatic dependency tracking 725 # is enabled. FIXME. This creates each `.P' file that we will 726 # 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 modify 736 # it under the terms of the GNU General Public License as published by 737 # 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 of 742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 743 # GNU General Public License for more details. 744 745 # You should have received a copy of the GNU General Public License 746 # along with this program; if not, write to the Free Software 747 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 748 # 02111-1307, USA. 749 750 # serial 2 751 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 done 760 END 761 # 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=none 766 # First try GNU make style include. 767 echo "include confinc" > confmf 768 # 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 might 771 # be invoked under some other name (usually "gmake"), in which 772 # 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"; then 774 am__include=include 775 am__quote= 776 _am_result=GNU 777 fi 778 # Now try BSD make style include. 779 if test "$am__include" = "#"; then 780 echo '.include "confinc"' > confmf 781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 782 am__include=.include 783 am__quote="\"" 784 _am_result=BSD 785 fi 786 fi 787 AC_SUBST(am__include) 788 AC_SUBST(am__quote) 789 AC_MSG_RESULT($_am_result) 790 rm -f confinc confmf 791 ]) 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 modify 798 # it under the terms of the GNU General Public License as published by 799 # 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 of 804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 805 # GNU General Public License for more details. 806 807 # You should have received a copy of the GNU General Public License 808 # along with this program; if not, write to the Free Software 809 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 810 # 02111-1307, USA. 811 812 # serial 5 813 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])])dnl 822 AC_SUBST([$1_TRUE]) 823 AC_SUBST([$1_FALSE]) 824 if $2; then 825 $1_TRUE= 826 $1_FALSE='#' 827 else 828 $1_TRUE='#' 829 $1_FALSE= 830 fi 831 AC_CONFIG_COMMANDS_PRE( 832 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 833 AC_MSG_ERROR([conditional \"$1\" was never defined. 834 Usually this means the macro was only invoked conditionally.]) 835 fi])]) 13 836 14 837 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- … … 134 957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 135 958 959 # Sed substitution to undo escaping of the cmd sep variable 960 unescape_variable_subst='s/\\\(${_S_}\)/\1/g' 961 136 962 # Sed substitution to avoid accidental globbing in evaled expressions 137 963 no_glob_subst='s/\*/\\\*/g' … … 183 1009 case $host_os in 184 1010 openbsd*) 185 old_postinstall_cmds="\$RANLIB -t \$oldlib ~$old_postinstall_cmds"1011 old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds" 186 1012 ;; 187 1013 *) 188 old_postinstall_cmds="\$RANLIB \$oldlib ~$old_postinstall_cmds"1014 old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds" 189 1015 ;; 190 1016 esac 191 old_archive_cmds="$old_archive_cmds ~\$RANLIB \$oldlib"1017 old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib" 192 1018 fi 193 194 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`195 1019 196 1020 # Only perform the check for file, if the check method requires it … … 311 1135 # The HP-UX ksh and POSIX shell print the target directory to stdout 312 1136 # if CDPATH is set. 313 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 1137 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 314 1138 315 1139 if test -z "$ECHO"; then … … 494 1318 LD="${LD-ld} -m elf_i386" 495 1319 ;; 496 ppc64-*linux* |powerpc64-*linux*)1320 ppc64-*linux*) 497 1321 LD="${LD-ld} -m elf32ppclinux" 498 1322 ;; … … 558 1382 # Check whether the given compiler option works 559 1383 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 560 [AC_REQUIRE([LT_AC_PROG_SED]) 561 AC_CACHE_CHECK([$1], [$2], 1384 [AC_CACHE_CHECK([$1], [$2], 562 1385 [$2=no 563 1386 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) … … 635 1458 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 636 1459 i=0 637 test string="ABCD"1460 testring="ABCD" 638 1461 639 1462 case $build_os in … … 664 1487 ;; 665 1488 666 amigaos*)667 # On AmigaOS with pdksh, this test takes hours, literally.668 # So we just punt and use a minimum line length of 8192.669 lt_cv_sys_max_cmd_len=8192;670 ;;671 672 netbsd* | freebsd* | openbsd* | darwin* )673 # This has been around since 386BSD, at least. Likely further.674 if test -x /sbin/sysctl; then675 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`676 elif test -x /usr/sbin/sysctl; then677 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`678 else679 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD680 fi681 # And add a safety zone682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`683 ;;684 685 1489 *) 686 1490 # If test is not a shell built-in, we'll probably end up computing a 687 1491 # maximum length that is only half of the actual maximum length, but 688 1492 # we can't tell. 689 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 690 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 691 = "XX$teststring") >/dev/null 2>&1 && 692 new_result=`expr "X$teststring" : ".*" 2>&1` && 1493 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ 1494 = "XX$testring") >/dev/null 2>&1 && 1495 new_result=`expr "X$testring" : ".*" 2>&1` && 693 1496 lt_cv_sys_max_cmd_len=$new_result && 694 1497 test $i != 17 # 1/2 MB should be enough 695 1498 do 696 1499 i=`expr $i + 1` 697 test string=$teststring$teststring1500 testring=$testring$testring 698 1501 done 699 test string=1502 testring= 700 1503 # Add a significant safety factor because C++ compilers can tack on massive 701 1504 # amounts of additional arguments before passing them to the linker. … … 847 1650 ]) 848 1651 ;; 849 1652 850 1653 *) 851 1654 AC_CHECK_FUNC([shl_load], … … 935 1738 mkdir out 936 1739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 1740 1741 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 1742 # that will create temporary files in the current directory regardless of 1743 # the output directory. Thus, making CWD read-only will cause this test 1744 # to fail, enabling locking or at least warning the user not to do parallel 1745 # builds. 1746 chmod -w . 937 1747 938 1748 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 959 1769 fi 960 1770 chmod u+w . 961 $rm conftest* 962 # SGI C++ compiler will create directory out/ii_files/ for 963 # template instantiation 964 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 965 $rm out/* && rmdir out 1771 $rm conftest* out/* 1772 rmdir out 966 1773 cd .. 967 1774 rmdir conftest … … 1022 1829 _LT_AC_TAGVAR(hardcode_action, $1)= 1023 1830 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1024 test -n "$_LT_AC_TAGVAR(runpath_var ,$1)" || \1025 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" ="Xyes" ; then1831 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ 1832 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then 1026 1833 1027 1834 # We can hardcode non-existant directories. … … 1069 1876 # FIXME - insert some real tests, host_os isn't really good enough 1070 1877 case $host_os in 1071 darwin*)1878 NOT-darwin*) 1072 1879 if test -n "$STRIP" ; then 1073 1880 striplib="$STRIP -x" … … 1080 1887 AC_MSG_RESULT([no]) 1081 1888 ;; 1082 esac 1889 esac 1083 1890 fi 1084 1891 ])# AC_LIBTOOL_SYS_LIB_STRIP … … 1093 1900 libname_spec='lib$name' 1094 1901 soname_spec= 1095 shrext _cmds=".so"1902 shrext=".so" 1096 1903 postinstall_cmds= 1097 1904 postuninstall_cmds= … … 1181 1988 library_names_spec='$libname.ixlibrary $libname.a' 1182 1989 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1183 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'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' 1184 1991 ;; 1185 1992 … … 1190 1997 ;; 1191 1998 1192 bsdi [[45]]*)1999 bsdi4*) 1193 2000 version_type=linux 1194 2001 need_version=no … … 1206 2013 cygwin* | mingw* | pw32*) 1207 2014 version_type=windows 1208 shrext _cmds=".dll"2015 shrext=".dll" 1209 2016 need_version=no 1210 2017 need_lib_prefix=no … … 1214 2021 library_names_spec='$libname.dll.a' 1215 2022 # DLL is installed to $(libdir)/../bin by postinstall_cmds 1216 postinstall_cmds='base_file=`basename \${file}` ~1217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''` ~1218 dldir=$destdir/`dirname \$dlpath` ~1219 test -d \$dldir || mkdir -p \$dldir ~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_} 1220 2027 $install_prog $dir/$dlname \$dldir/$dlname' 1221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''` ~1222 dlpath=$dir/\$dldll ~2028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_} 2029 dlpath=$dir/\$dldll${_S_} 1223 2030 $rm \$dlpath' 1224 2031 shlibpath_overrides_runpath=yes … … 1228 2035 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 1229 2036 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1230 sys_lib_search_path_spec="/ usr/lib /lib/w32api/lib /usr/local/lib"2037 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib" 1231 2038 ;; 1232 2039 mingw*) … … 1267 2074 need_lib_prefix=no 1268 2075 need_version=no 1269 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 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' 1270 2080 soname_spec='${libname}${release}${major}$shared_ext' 1271 2081 shlibpath_overrides_runpath=yes 1272 2082 shlibpath_var=DYLD_LIBRARY_PATH 1273 shrext _cmds='$(test .$module = .yes && echo .so || echo .dylib)'2083 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 1274 2084 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1275 if test "$GCC" = yes; then 1276 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"` 1277 else 1278 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 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"` 1279 2087 fi 1280 2088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' … … 1292 2100 freebsd1*) 1293 2101 dynamic_linker=no 1294 ;;1295 1296 kfreebsd*-gnu)1297 version_type=linux1298 need_lib_prefix=no1299 need_version=no1300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1301 soname_spec='${libname}${release}${shared_ext}$major'1302 shlibpath_var=LD_LIBRARY_PATH1303 shlibpath_overrides_runpath=no1304 hardcode_into_libs=yes1305 dynamic_linker='GNU ld.so'1306 2102 ;; 1307 2103 … … 1354 2150 case "$host_cpu" in 1355 2151 ia64*) 1356 shrext _cmds='.so'2152 shrext='.so' 1357 2153 hardcode_into_libs=yes 1358 2154 dynamic_linker="$host_os dld.so" … … 1369 2165 ;; 1370 2166 hppa*64*) 1371 shrext _cmds='.sl'2167 shrext='.sl' 1372 2168 hardcode_into_libs=yes 1373 2169 dynamic_linker="$host_os dld.sl" … … 1380 2176 ;; 1381 2177 *) 1382 shrext _cmds='.sl'2178 shrext='.sl' 1383 2179 dynamic_linker="$host_os dld.sl" 1384 2180 shlibpath_var=SHLIB_PATH … … 1449 2245 hardcode_into_libs=yes 1450 2246 1451 # Append ld.so.conf contents to the search path1452 if test -f /etc/ld.so.conf; then1453 lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`1454 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"1455 fi1456 1457 2247 # We used to test for /lib/ld.so.1 and disable shared libraries on 1458 2248 # powerpc, because MkLinux only supported shared libraries with the … … 1462 2252 # assume the GNU/Linux dynamic linker is in use. 1463 2253 dynamic_linker='GNU/Linux ld.so' 1464 ;;1465 1466 knetbsd*-gnu)1467 version_type=linux1468 need_lib_prefix=no1469 need_version=no1470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1471 soname_spec='${libname}${release}${shared_ext}$major'1472 shlibpath_var=LD_LIBRARY_PATH1473 shlibpath_overrides_runpath=no1474 hardcode_into_libs=yes1475 dynamic_linker='GNU ld.so'1476 2254 ;; 1477 2255 … … 1485 2263 dynamic_linker='NetBSD (a.out) ld.so' 1486 2264 else 1487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${ shared_ext}'2265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}' 1488 2266 soname_spec='${libname}${release}${shared_ext}$major' 1489 2267 dynamic_linker='NetBSD ld.elf_so' … … 1501 2279 ;; 1502 2280 1503 nto-qnx *)2281 nto-qnx) 1504 2282 version_type=linux 1505 2283 need_lib_prefix=no … … 1534 2312 os2*) 1535 2313 libname_spec='$name' 1536 shrext _cmds=".dll"2314 shrext=".dll" 1537 2315 need_lib_prefix=no 1538 2316 library_names_spec='$libname${shared_ext} $libname.a' … … 1970 2748 # AC_PROG_LD 1971 2749 # ---------- 1972 # find the path nameto the GNU or non-GNU linker2750 # find the path to the GNU or non-GNU linker 1973 2751 AC_DEFUN([AC_PROG_LD], 1974 2752 [AC_ARG_WITH([gnu-ld], … … 1996 2774 [[\\/]]* | ?:[[\\/]]*) 1997 2775 re_direlt='/[[^/]][[^/]]*/\.\./' 1998 # Canonicalize the path nameof ld2776 # Canonicalize the path of ld 1999 2777 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2000 2778 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do … … 2059 2837 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2060 2838 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 2061 case ` $LD-v 2>&1 </dev/null` in2839 case `"$LD" -v 2>&1 </dev/null` in 2062 2840 *GNU* | *'with BFD'*) 2063 2841 lt_cv_prog_gnu_ld=yes … … 2084 2862 *) reload_flag=" $reload_flag" ;; 2085 2863 esac 2086 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2087 case $host_os in 2088 darwin*) 2089 if test "$GCC" = yes; then 2090 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 2091 else 2092 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2093 fi 2094 ;; 2095 esac 2864 reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs' 2096 2865 ])# AC_PROG_LD_RELOAD_FLAG 2097 2866 … … 2127 2896 ;; 2128 2897 2129 bsdi [[45]]*)2898 bsdi4*) 2130 2899 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2131 2900 lt_cv_file_magic_cmd='/usr/bin/file -L' … … 2133 2902 ;; 2134 2903 2135 cygwin* )2136 # func_win32_libid is a shell function defined in ltmain.sh2904 cygwin* | mingw* | pw32*) 2905 # win32_libid is a shell function defined in ltmain.sh 2137 2906 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2138 lt_cv_file_magic_cmd='func_win32_libid' 2139 ;; 2140 2141 mingw* | pw32*) 2142 # Base MSYS/MinGW do not provide the 'file' command needed by 2143 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2144 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2145 lt_cv_file_magic_cmd='$OBJDUMP -f' 2907 lt_cv_file_magic_cmd='win32_libid' 2146 2908 ;; 2147 2909 2148 2910 darwin* | rhapsody*) 2911 # this will be overwritten by pass_all, but leave it in just in case 2912 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" in 2915 rhapsody* | darwin1.[[012]]) 2916 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System` 2917 ;; 2918 *) # Darwin 1.3 on 2919 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 2920 ;; 2921 esac 2149 2922 lt_cv_deplibs_check_method=pass_all 2150 2923 ;; 2151 2924 2152 freebsd* | kfreebsd*-gnu)2925 freebsd*) 2153 2926 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2154 2927 case $host_cpu in … … 2189 2962 2190 2963 irix5* | irix6* | nonstopux*) 2191 case $LD in 2192 *-32|*"-32 ") libmagic=32-bit;; 2193 *-n32|*"-n32 ") libmagic=N32;; 2194 *-64|*"-64 ") libmagic=64-bit;; 2195 *) libmagic=never-match;; 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 ;; 2196 2979 esac 2980 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 2197 2981 lt_cv_deplibs_check_method=pass_all 2198 2982 ;; … … 2201 2985 linux*) 2202 2986 case $host_cpu in 2203 alpha* |hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64)2987 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*) 2204 2988 lt_cv_deplibs_check_method=pass_all ;; 2205 2989 *) 2206 2990 # glibc up to 2.1.1 does not perform some relocations on ARM 2207 # this will be overridden with pass_all, but let us keep it just in case2208 2991 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; 2209 2992 esac 2210 2993 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 2211 lt_cv_deplibs_check_method=pass_all2212 2994 ;; 2213 2995 … … 2226 3008 ;; 2227 3009 2228 nto-qnx *)3010 nto-qnx) 2229 3011 lt_cv_deplibs_check_method=unknown 2230 3012 ;; 2231 3013 2232 3014 openbsd*) 3015 lt_cv_file_magic_cmd=/usr/bin/file 3016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2233 3017 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2234 lt_cv_deplibs_check_method=' match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'3018 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' 2235 3019 else 2236 lt_cv_deplibs_check_method=' match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'3020 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 2237 3021 fi 2238 3022 ;; 2239 3023 2240 3024 osf3* | osf4* | osf5*) 3025 # this will be overridden with pass_all, but let us keep it just in case 3026 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 3027 lt_cv_file_magic_test_file=/shlib/libc.so 2241 3028 lt_cv_deplibs_check_method=pass_all 2242 3029 ;; … … 2248 3035 solaris*) 2249 3036 lt_cv_deplibs_check_method=pass_all 3037 lt_cv_file_magic_test_file=/lib/libc.so 2250 3038 ;; 2251 3039 … … 2287 3075 # AC_PROG_NM 2288 3076 # ---------- 2289 # find the path nameto a BSD-compatible name lister3077 # find the path to a BSD-compatible name lister 2290 3078 AC_DEFUN([AC_PROG_NM], 2291 3079 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, … … 2425 3213 [AC_REQUIRE([AC_PROG_CXX]) 2426 3214 AC_REQUIRE([AC_PROG_CXXCPP]) 2427 _LT_AC_SHELL_INIT([tagnames= ${tagnames+${tagnames},}CXX])3215 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`]) 2428 3216 ])# _LT_AC_LANG_CXX 2429 3217 … … 2441 3229 AC_DEFUN([_LT_AC_LANG_F77], 2442 3230 [AC_REQUIRE([AC_PROG_F77]) 2443 _LT_AC_SHELL_INIT([tagnames= ${tagnames+${tagnames},}F77])3231 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`]) 2444 3232 ])# _LT_AC_LANG_F77 2445 3233 … … 2462 3250 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 2463 3251 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 2464 _LT_AC_SHELL_INIT([tagnames= ${tagnames+${tagnames},}GCJ])3252 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`]) 2465 3253 ])# _LT_AC_LANG_GCJ 2466 3254 … … 2471 3259 AC_DEFUN([AC_LIBTOOL_RC], 2472 3260 [AC_REQUIRE([LT_AC_PROG_RC]) 2473 _LT_AC_SHELL_INIT([tagnames= ${tagnames+${tagnames},}RC])3261 _LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`]) 2474 3262 ])# AC_LIBTOOL_RC 2475 3263 … … 2513 3301 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then 2514 3302 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) 2515 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$ _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :3303 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[ ]]" >/dev/null; then : 2516 3304 else 2517 3305 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) … … 2536 3324 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 2537 3325 AC_LIBTOOL_PROG_LD_SHLIBS($1) 2538 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)2539 3326 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2540 3327 AC_LIBTOOL_SYS_LIB_STRIP 3328 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2541 3329 AC_LIBTOOL_DLOPEN_SELF($1) 2542 3330 … … 2554 3342 test "$enable_shared" = yes && enable_static=no 2555 3343 if test -n "$RANLIB"; then 2556 archive_cmds="$archive_cmds ~\$RANLIB \$lib"3344 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib" 2557 3345 postinstall_cmds='$RANLIB $lib' 2558 3346 fi 2559 3347 ;; 2560 3348 2561 aix4* | aix5*)3349 aix4*) 2562 3350 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2563 3351 test "$enable_shared" = yes && enable_static=no 2564 3352 fi 2565 ;; 3353 ;; 3354 darwin* | rhapsody*) 3355 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 3356 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3357 case "$host_os" in 3358 rhapsody* | darwin1.[[012]]) 3359 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 3360 ;; 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 3377 ;; 3378 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' 3386 # 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}' 3389 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3390 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3391 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3392 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 3393 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3394 fi 3395 ;; 2566 3396 esac 2567 3397 AC_MSG_RESULT([$enable_shared]) … … 2698 3528 # overridden to take advantage of the native linker features on 2699 3529 # the platform it is being used on. 2700 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'3530 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 2701 3531 fi 2702 3532 … … 2827 3657 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 2828 3658 # This is similar to how AIX traditionally builds it's shared libraries. 2829 _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'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' 2830 3660 fi 2831 3661 fi … … 2839 3669 esac 2840 3670 ;; 2841 2842 3671 2843 3672 cygwin* | mingw* | pw32*) … … 2858 3687 echo EXPORTS > $output_objdir/$soname.def; 2859 3688 cat $export_symbols >> $output_objdir/$soname.def; 2860 fi ~3689 fi${_S_} 2861 3690 $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' 2862 3691 else … … 2864 3693 fi 2865 3694 ;; 2866 darwin* | rhapsody*) 2867 case "$host_os" in 2868 rhapsody* | darwin1.[[012]]) 2869 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 2870 ;; 2871 *) # Darwin 1.3 on 2872 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2873 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 2874 else 2875 case ${MACOSX_DEPLOYMENT_TARGET} in 2876 10.[[012]]) 2877 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 2878 ;; 2879 10.*) 2880 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 2881 ;; 2882 esac 2883 fi 2884 ;; 2885 esac 2886 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2887 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2888 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 2889 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2890 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 2891 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2892 2893 if test "$GXX" = yes ; then 2894 lt_int_apple_cc_single_mod=no 2895 output_verbose_link_cmd='echo' 2896 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 2897 lt_int_apple_cc_single_mod=yes 3695 3696 darwin* | rhapsody*) 3697 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 3698 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3699 case "$host_os" in 3700 rhapsody* | darwin1.[[012]]) 3701 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 3702 ;; 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 3719 ;; 3720 esac 3721 lt_int_apple_cc_single_mod=no 3722 output_verbose_link_cmd='echo' 3723 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 3724 lt_int_apple_cc_single_mod=yes 3725 fi 3726 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3727 _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 else 3729 _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' 2898 3730 fi 3731 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 3732 3733 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2899 3734 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2900 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'3735 _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}' 2901 3736 else 2902 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2903 fi 2904 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2905 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2906 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2907 _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}' 2908 else 2909 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2910 fi 2911 _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}' 2912 else 2913 case "$cc_basename" in 2914 xlc*) 2915 output_verbose_link_cmd='echo' 2916 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 2917 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2919 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2920 _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}' 2921 ;; 2922 *) 2923 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2924 ;; 2925 esac 3737 _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}' 2926 3738 fi 2927 ;; 3739 _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}' 3740 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3741 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3742 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3743 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 3744 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3745 fi 3746 ;; 2928 3747 2929 3748 dgux*) … … 2951 3770 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2952 3771 ;; 2953 freebsd* | kfreebsd*-gnu)3772 freebsd*) 2954 3773 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 2955 3774 # conventions … … 2973 3792 ;; 2974 3793 aCC) 2975 _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'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' 2976 3795 # Commands to make compiler produce verbose output that lists 2977 3796 # what "hidden" libraries, object files and flags are used when … … 2982 3801 # from the output so that they don't get included in the library 2983 3802 # dependencies. 2984 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'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' 2985 3804 ;; 2986 3805 *) 2987 3806 if test "$GXX" = yes; then 2988 _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'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' 2989 3808 else 2990 3809 # FIXME: insert proper C++ library support … … 3131 3950 # Intel C++ 3132 3951 with_gnu_ld=yes 3133 # version 8.0 and above of icpc choke on multiply defined symbols3134 # if we add $predep_objects and $postdep_objects, however 7.1 and3135 # earlier do not add the objects themselves.3136 case `$CC -V 2>&1` in3137 *"Version 7."*)3138 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'3139 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'3140 ;;3141 *) # Version 8.0 or newer3142 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'3143 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'3144 ;;3145 esac3146 3952 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3953 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3954 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3147 3955 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3148 3956 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' … … 3201 4009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3202 4010 ;; 3203 openbsd2*)3204 # C++ shared libraries are fairly broken3205 _LT_AC_TAGVAR(ld_shlibs, $1)=no3206 ;;3207 openbsd*)3208 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'3209 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'3210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then3211 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'3212 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'3213 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'3214 fi3215 output_verbose_link_cmd='echo'3216 ;;3217 4011 osf3*) 3218 4012 case $cc_basename in … … 3300 4094 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3301 4095 _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' 3302 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done ~3303 echo "-hidden">> $lib.exp ~3304 $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 ~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_} 3305 4099 $rm $lib.exp' 3306 4100 … … 3379 4173 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3380 4174 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3381 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3382 $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'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' 3383 4177 3384 4178 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 3425 4219 if $CC --version | grep -v '^2\.7' > /dev/null; then 3426 4220 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3427 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3428 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ~$rm $lib.exp'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' 3429 4223 3430 4224 # Commands to make compiler produce verbose output that lists … … 3436 4230 # platform. 3437 4231 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3438 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~3439 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ~$rm $lib.exp'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' 3440 4234 3441 4235 # Commands to make compiler produce verbose output that lists … … 3486 4280 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3487 4281 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3488 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3489 4282 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3490 4283 AC_LIBTOOL_SYS_LIB_STRIP 4284 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3491 4285 AC_LIBTOOL_DLOPEN_SELF($1) 3492 4286 … … 3706 4500 test "$enable_shared" = yes && enable_static=no 3707 4501 if test -n "$RANLIB"; then 3708 archive_cmds="$archive_cmds ~\$RANLIB \$lib"4502 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib" 3709 4503 postinstall_cmds='$RANLIB $lib' 3710 4504 fi 3711 4505 ;; 3712 aix4* | aix5*)4506 aix4*) 3713 4507 test "$enable_shared" = yes && enable_static=no 3714 4508 ;; … … 3730 4524 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3731 4525 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3732 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3733 4526 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3734 4527 AC_LIBTOOL_SYS_LIB_STRIP 3735 4528 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3736 4529 3737 4530 AC_LIBTOOL_CONFIG($1) … … 3781 4574 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3782 4575 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3783 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)3784 4576 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3785 4577 AC_LIBTOOL_SYS_LIB_STRIP 4578 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3786 4579 AC_LIBTOOL_DLOPEN_SELF($1) 3787 4580 … … 3848 4641 if test -n "${ZSH_VERSION+set}" ; then 3849 4642 setopt NO_GLOB_SUBST 3850 fi 4643 fi 3851 4644 # Now quote all the things that may contain metacharacters while being 3852 4645 # careful not to overquote the AC_SUBSTed values. We take copies of the 3853 4646 # variables and quote the copies for generation of the libtool script. 3854 for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \ 3855 SED SHELL STRIP \ 4647 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \ 3856 4648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 3857 4649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ … … 3903 4695 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 3904 4696 _LT_AC_TAGVAR(module_cmds, $1) | \ 3905 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4697 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 3906 4698 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 3907 4699 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ … … 3911 4703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 3912 4704 # Double-quote double-evaled strings. 3913 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" \`\\\""4705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\"" 3914 4706 ;; 3915 4707 *) … … 3973 4765 # The HP-UX ksh and POSIX shell print the target directory to stdout 3974 4766 # if CDPATH is set. 3975 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4767 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 3976 4768 3977 4769 # The names of the tagged configurations supported by this script. … … 3982 4774 3983 4775 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4776 4777 # Set the command separator (default: ~) 4778 _S_=\${LIBTOOL_CMD_SEP-\~} 3984 4779 3985 4780 # Shell to use when invoking shell scripts. … … 4034 4829 4035 4830 # A symbol stripping program 4036 STRIP=$ lt_STRIP4831 STRIP=$STRIP 4037 4832 4038 4833 # Used to examine libraries when file_magic_cmd begins "file" … … 4046 4841 4047 4842 # Used on cygwin: assembler. 4048 AS= $lt_AS4843 AS="$AS" 4049 4844 4050 4845 # The name of the directory that contains temporary libtool files. … … 4065 4860 4066 4861 # Shared library suffix (normally ".so"). 4067 shrext _cmds='$shrext_cmds'4862 shrext='$shrext' 4068 4863 4069 4864 # Executable file suffix (normally ""). … … 4309 5104 # `config.status --recheck' to rerun these tests and create the 4310 5105 # libtool script then. 4311 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 4312 if test -f "$ltmain_in"; then 4313 test -f Makefile && make "$ltmain" 4314 fi 5106 test -f Makefile && make "$ltmain" 4315 5107 fi 4316 5108 ])# AC_LIBTOOL_CONFIG … … 4385 5177 ;; 4386 5178 solaris* | sysv5*) 4387 symcode='[[BD RT]]'5179 symcode='[[BDT]]' 4388 5180 ;; 4389 5181 sysv4) … … 4403 5195 case `$NM -V 2>&1` in 4404 5196 *GNU* | *'with BFD'*) 4405 symcode='[[ABCDGI RSTW]]' ;;5197 symcode='[[ABCDGISTW]]' ;; 4406 5198 esac 4407 5199 … … 4605 5397 esac 4606 5398 ;; 4607 darwin*)4608 # PIC is the default on this platform4609 # Common symbols not allowed in MH_DYLIB files4610 case "$cc_basename" in4611 xlc*)4612 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'4613 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4614 ;;4615 esac4616 ;;4617 5399 dgux*) 4618 5400 case $cc_basename in … … 4628 5410 esac 4629 5411 ;; 4630 freebsd* | kfreebsd*-gnu)5412 freebsd*) 4631 5413 # FreeBSD uses GNU C++ 4632 5414 ;; … … 4679 5461 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4680 5462 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4681 ;; 5463 ;; 4682 5464 cxx) 4683 5465 # Compaq C++ … … 4868 5650 fi 4869 5651 ;; 4870 darwin*)4871 # PIC is the default on this platform4872 # Common symbols not allowed in MH_DYLIB files4873 case "$cc_basename" in4874 xlc*)4875 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'4876 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4877 ;;4878 esac4879 ;;4880 5652 4881 5653 mingw* | pw32* | os2*) … … 4914 5686 linux*) 4915 5687 case $CC in 4916 icc * | ecc*)5688 icc|ecc) 4917 5689 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4918 5690 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4919 5691 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4920 5692 ;; 4921 ccc *)5693 ccc) 4922 5694 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4923 5695 # All Alpha code is PIC. … … 5049 5821 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5050 5822 _LT_AC_TAGVAR(module_cmds, $1)= 5051 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5823 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5052 5824 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5053 5825 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' … … 5105 5877 5106 5878 amigaos*) 5107 _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)'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)' 5108 5880 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5109 5881 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes … … 5147 5919 echo EXPORTS > $output_objdir/$soname.def; 5148 5920 cat $export_symbols >> $output_objdir/$soname.def; 5149 fi ~5921 fi${_S_} 5150 5922 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5151 5923 else … … 5191 5963 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5192 5964 ;; 5193 5194 linux*)5195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5196 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5197 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"5198 supports_anon_versioning=no5199 case `$LD -v 2>/dev/null` in5200 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.115201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...5202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...5203 *\ 2.11.*) ;; # other 2.11 versions5204 *) supports_anon_versioning=yes ;;5205 esac5206 if test $supports_anon_versioning = yes; then5207 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~5208 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~5209 $echo "local: *; };" >> $output_objdir/$libname.ver~5210 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5211 else5212 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"5213 fi5214 else5215 _LT_AC_TAGVAR(ld_shlibs, $1)=no5216 fi5217 ;;5218 5965 5219 5966 *) … … 5244 5991 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5245 5992 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5246 _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'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' 5247 5994 # Note: this linker hardcodes the directories in LIBPATH if there 5248 5995 # are no directories specified by -L. … … 5366 6113 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5367 6114 # This is similar to how AIX traditionally builds it's shared libraries. 5368 _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'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' 5369 6116 fi 5370 6117 fi … … 5372 6119 5373 6120 amigaos*) 5374 _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)'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)' 5375 6122 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5376 6123 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes … … 5379 6126 ;; 5380 6127 5381 bsdi [[45]]*)6128 bsdi4*) 5382 6129 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5383 6130 ;; … … 5393 6140 libext=lib 5394 6141 # Tell ltmain to make .dll files, not .so files. 5395 shrext _cmds=".dll"6142 shrext=".dll" 5396 6143 # FIXME: Setting linknames here is a bad hack. 5397 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll ~linknames='6144 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames=' 5398 6145 # The linker will automatically build a .lib file if we build a DLL. 5399 6146 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' … … 5405 6152 5406 6153 darwin* | rhapsody*) 6154 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 6155 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5407 6156 case "$host_os" in 5408 rhapsody* | darwin1.[[012]]) 5409 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 5410 ;; 5411 *) # Darwin 1.3 on 5412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5413 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5414 else 5415 case ${MACOSX_DEPLOYMENT_TARGET} in 5416 10.[[012]]) 5417 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5418 ;; 5419 10.*) 5420 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 5421 ;; 5422 esac 5423 fi 5424 ;; 6157 rhapsody* | darwin1.[[012]]) 6158 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 6159 ;; 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 6176 ;; 5425 6177 esac 5426 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6178 # FIXME: Relying on posixy $() will cause problems for 6179 # cross-compilation, but unfortunately the echo tests do not 6180 # yet detect zsh echo's removal of \ escapes. Also zsh mangles 6181 # `"' quotes if we put them in here... so don't! 6182 lt_int_apple_cc_single_mod=no 6183 output_verbose_link_cmd='echo' 6184 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 6185 lt_int_apple_cc_single_mod=yes 6186 fi 6187 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' 6189 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' 6191 fi 6192 _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags' 6193 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6194 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}' 6196 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}' 6198 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}' 5427 6200 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5428 6201 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5429 6202 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5430 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '6203 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 5431 6204 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5432 if test "$GCC" = yes ; then 5433 output_verbose_link_cmd='echo' 5434 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 5435 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 5436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 5437 _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}' 5438 _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}' 5439 else 5440 case "$cc_basename" in 5441 xlc*) 5442 output_verbose_link_cmd='echo' 5443 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 5444 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 5445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 5446 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 5447 _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}' 5448 ;; 5449 *) 5450 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5451 ;; 5452 esac 5453 fi 6205 fi 5454 6206 ;; 5455 6207 … … 5484 6236 5485 6237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5486 freebsd* | kfreebsd*-gnu)6238 freebsd*) 5487 6239 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5488 6240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 5493 6245 hpux9*) 5494 6246 if test "$GCC" = yes; then 5495 _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'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' 5496 6248 else 5497 _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'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' 5498 6250 fi 5499 6251 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' … … 5595 6347 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5596 6348 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5597 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'5598 6349 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5599 6350 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' … … 5616 6367 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5617 6368 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5618 _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'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' 5619 6370 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5620 6371 ;; … … 5640 6391 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5641 6392 _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' 5642 _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 ~5643 $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'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' 5644 6395 5645 6396 # Both c and cxx compiler support -rpath directly … … 5661 6412 if test "$GCC" = yes; then 5662 6413 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5663 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~5664 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags ~$rm $lib.exp'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' 5665 6416 else 5666 6417 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5667 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~5668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags ~$rm $lib.exp'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' 5669 6420 fi 5670 6421 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 5755 6506 # object files and a static libstdc++, better avoid it by now 5756 6507 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5757 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp ~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~5758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags ~$rm $lib.exp'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' 5759 6510 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5760 6511 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no … … 5792 6543 if test "$enable_shared" = yes && test "$GCC" = yes; then 5793 6544 case $_LT_AC_TAGVAR(archive_cmds, $1) in 5794 * '~'*)6545 *"$_S_"*) 5795 6546 # FIXME: we may have to deal with multi-command sequences. 5796 6547 ;; … … 5802 6553 $rm conftest* 5803 6554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5804 6555 5805 6556 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5806 6557 soname=conftest … … 5959 6710 done 5960 6711 done 6712 SED=$lt_cv_path_SED 5961 6713 ]) 5962 SED=$lt_cv_path_SED5963 6714 AC_MSG_RESULT([$SED]) 5964 6715 ]) 5965 6716 5966 # -*- Autoconf -*-5967 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.5968 # Generated from amversion.in; do not edit by hand.5969 5970 # This program is free software; you can redistribute it and/or modify5971 # it under the terms of the GNU General Public License as published by5972 # the Free Software Foundation; either version 2, or (at your option)5973 # any later version.5974 5975 # This program is distributed in the hope that it will be useful,5976 # but WITHOUT ANY WARRANTY; without even the implied warranty of5977 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the5978 # GNU General Public License for more details.5979 5980 # You should have received a copy of the GNU General Public License5981 # along with this program; if not, write to the Free Software5982 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA5983 5984 # AM_AUTOMAKE_VERSION(VERSION)5985 # ----------------------------5986 # Automake X.Y traces this macro to ensure aclocal.m4 has been5987 # generated from the m4 files accompanying Automake X.Y.5988 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])5989 5990 # AM_SET_CURRENT_AUTOMAKE_VERSION5991 # -------------------------------5992 # Call AM_AUTOMAKE_VERSION so it can be traced.5993 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.5994 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],5995 [AM_AUTOMAKE_VERSION([1.9.1])])5996 5997 # AM_AUX_DIR_EXPAND5998 5999 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.6000 6001 # This program is free software; you can redistribute it and/or modify6002 # it under the terms of the GNU General Public License as published by6003 # the Free Software Foundation; either version 2, or (at your option)6004 # any later version.6005 6006 # This program is distributed in the hope that it will be useful,6007 # but WITHOUT ANY WARRANTY; without even the implied warranty of6008 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6009 # GNU General Public License for more details.6010 6011 # You should have received a copy of the GNU General Public License6012 # along with this program; if not, write to the Free Software6013 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6014 # 02111-1307, USA.6015 6016 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets6017 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to6018 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.6019 #6020 # Of course, Automake must honor this variable whenever it calls a6021 # tool from the auxiliary directory. The problem is that $srcdir (and6022 # therefore $ac_aux_dir as well) can be either absolute or relative,6023 # depending on how configure is run. This is pretty annoying, since6024 # it makes $ac_aux_dir quite unusable in subdirectories: in the top6025 # source directory, any form will work fine, but in subdirectories a6026 # relative path needs to be adjusted first.6027 #6028 # $ac_aux_dir/missing6029 # fails when called from a subdirectory if $ac_aux_dir is relative6030 # $top_srcdir/$ac_aux_dir/missing6031 # fails if $ac_aux_dir is absolute,6032 # fails when called from a subdirectory in a VPATH build with6033 # a relative $ac_aux_dir6034 #6035 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir6036 # are both prefixed by $srcdir. In an in-source build this is usually6037 # harmless because $srcdir is `.', but things will broke when you6038 # start a VPATH build or use an absolute $srcdir.6039 #6040 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,6041 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:6042 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`6043 # and then we would define $MISSING as6044 # MISSING="\${SHELL} $am_aux_dir/missing"6045 # This will work as long as MISSING is not called from configure, because6046 # unfortunately $(top_srcdir) has no meaning in configure.6047 # However there are other variables, like CC, which are often used in6048 # configure, and could therefore not use this "fixed" $ac_aux_dir.6049 #6050 # Another solution, used here, is to always expand $ac_aux_dir to an6051 # absolute PATH. The drawback is that using absolute paths prevent a6052 # configured tree to be moved without reconfiguration.6053 6054 AC_DEFUN([AM_AUX_DIR_EXPAND],6055 [dnl Rely on autoconf to set up CDPATH properly.6056 AC_PREREQ([2.50])dnl6057 # expand $ac_aux_dir to an absolute path6058 am_aux_dir=`cd $ac_aux_dir && pwd`6059 ])6060 6061 # AM_CONDITIONAL -*- Autoconf -*-6062 6063 # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.6064 6065 # This program is free software; you can redistribute it and/or modify6066 # it under the terms of the GNU General Public License as published by6067 # the Free Software Foundation; either version 2, or (at your option)6068 # any later version.6069 6070 # This program is distributed in the hope that it will be useful,6071 # but WITHOUT ANY WARRANTY; without even the implied warranty of6072 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6073 # GNU General Public License for more details.6074 6075 # You should have received a copy of the GNU General Public License6076 # along with this program; if not, write to the Free Software6077 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6078 # 02111-1307, USA.6079 6080 # serial 66081 6082 # AM_CONDITIONAL(NAME, SHELL-CONDITION)6083 # -------------------------------------6084 # Define a conditional.6085 AC_DEFUN([AM_CONDITIONAL],6086 [AC_PREREQ(2.52)dnl6087 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],6088 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl6089 AC_SUBST([$1_TRUE])6090 AC_SUBST([$1_FALSE])6091 if $2; then6092 $1_TRUE=6093 $1_FALSE='#'6094 else6095 $1_TRUE='#'6096 $1_FALSE=6097 fi6098 AC_CONFIG_COMMANDS_PRE(6099 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then6100 AC_MSG_ERROR([[conditional "$1" was never defined.6101 Usually this means the macro was only invoked conditionally.]])6102 fi])])6103 6104 # serial 7 -*- Autoconf -*-6105 6106 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 20046107 # Free Software Foundation, Inc.6108 6109 # This program is free software; you can redistribute it and/or modify6110 # it under the terms of the GNU General Public License as published by6111 # the Free Software Foundation; either version 2, or (at your option)6112 # any later version.6113 6114 # This program is distributed in the hope that it will be useful,6115 # but WITHOUT ANY WARRANTY; without even the implied warranty of6116 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6117 # GNU General Public License for more details.6118 6119 # You should have received a copy of the GNU General Public License6120 # along with this program; if not, write to the Free Software6121 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6122 # 02111-1307, USA.6123 6124 6125 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be6126 # written in clear, in which case automake, when reading aclocal.m4,6127 # will think it sees a *use*, and therefore will trigger all it's6128 # C support machinery. Also note that it means that autoscan, seeing6129 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...6130 6131 6132 6133 # _AM_DEPENDENCIES(NAME)6134 # ----------------------6135 # See how the compiler implements dependency checking.6136 # NAME is "CC", "CXX", "GCJ", or "OBJC".6137 # We try a few techniques and use that to set a single cache variable.6138 #6139 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was6140 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular6141 # dependency, and given that the user is not expected to run this macro,6142 # just rely on AC_PROG_CC.6143 AC_DEFUN([_AM_DEPENDENCIES],6144 [AC_REQUIRE([AM_SET_DEPDIR])dnl6145 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl6146 AC_REQUIRE([AM_MAKE_INCLUDE])dnl6147 AC_REQUIRE([AM_DEP_TRACK])dnl6148 6149 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],6150 [$1], CXX, [depcc="$CXX" am_compiler_list=],6151 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],6152 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],6153 [depcc="$$1" am_compiler_list=])6154 6155 AC_CACHE_CHECK([dependency style of $depcc],6156 [am_cv_$1_dependencies_compiler_type],6157 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then6158 # We make a subdir and do the tests there. Otherwise we can end up6159 # making bogus files that we don't know about and never remove. For6160 # instance it was reported that on HP-UX the gcc test will end up6161 # making a dummy file named `D' -- because `-MD' means `put the output6162 # in D'.6163 mkdir conftest.dir6164 # Copy depcomp to subdir because otherwise we won't find it if we're6165 # using a relative directory.6166 cp "$am_depcomp" conftest.dir6167 cd conftest.dir6168 # We will build objects and dependencies in a subdirectory because6169 # it helps to detect inapplicable dependency modes. For instance6170 # both Tru64's cc and ICC support -MD to output dependencies as a6171 # side effect of compilation, but ICC will put the dependencies in6172 # the current directory while Tru64 will put them in the object6173 # directory.6174 mkdir sub6175 6176 am_cv_$1_dependencies_compiler_type=none6177 if test "$am_compiler_list" = ""; then6178 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`6179 fi6180 for depmode in $am_compiler_list; do6181 # Setup a source with many dependencies, because some compilers6182 # like to wrap large dependency lists on column 80 (with \), and6183 # we should not choose a depcomp mode which is confused by this.6184 #6185 # We need to recreate these files for each test, as the compiler may6186 # overwrite some of them when testing with obscure command lines.6187 # This happens at least with the AIX C compiler.6188 : > sub/conftest.c6189 for i in 1 2 3 4 5 6; do6190 echo '#include "conftst'$i'.h"' >> sub/conftest.c6191 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with6192 # Solaris 8's {/usr,}/bin/sh.6193 touch sub/conftst$i.h6194 done6195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf6196 6197 case $depmode in6198 nosideeffect)6199 # after this tag, mechanisms are not by side-effect, so they'll6200 # only be used when explicitly requested6201 if test "x$enable_dependency_tracking" = xyes; then6202 continue6203 else6204 break6205 fi6206 ;;6207 none) break ;;6208 esac6209 # We check with `-c' and `-o' for the sake of the "dashmstdout"6210 # mode. It turns out that the SunPro C++ compiler does not properly6211 # handle `-M -o', and we need to detect this.6212 if depmode=$depmode \6213 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \6214 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \6215 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \6216 >/dev/null 2>conftest.err &&6217 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&6218 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&6219 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then6220 # icc doesn't choke on unknown options, it will just issue warnings6221 # or remarks (even with -Werror). So we grep stderr for any message6222 # that says an option was ignored or not supported.6223 # When given -MP, icc 7.0 and 7.1 complain thusly:6224 # icc: Command line warning: ignoring option '-M'; no argument required6225 # The diagnosis changed in icc 8.0:6226 # icc: Command line remark: option '-MP' not supported6227 if (grep 'ignoring option' conftest.err ||6228 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else6229 am_cv_$1_dependencies_compiler_type=$depmode6230 break6231 fi6232 fi6233 done6234 6235 cd ..6236 rm -rf conftest.dir6237 else6238 am_cv_$1_dependencies_compiler_type=none6239 fi6240 ])6241 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])6242 AM_CONDITIONAL([am__fastdep$1], [6243 test "x$enable_dependency_tracking" != xno \6244 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])6245 ])6246 6247 6248 # AM_SET_DEPDIR6249 # -------------6250 # Choose a directory name for dependency files.6251 # This macro is AC_REQUIREd in _AM_DEPENDENCIES6252 AC_DEFUN([AM_SET_DEPDIR],6253 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl6254 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl6255 ])6256 6257 6258 # AM_DEP_TRACK6259 # ------------6260 AC_DEFUN([AM_DEP_TRACK],6261 [AC_ARG_ENABLE(dependency-tracking,6262 [ --disable-dependency-tracking speeds up one-time build6263 --enable-dependency-tracking do not reject slow dependency extractors])6264 if test "x$enable_dependency_tracking" != xno; then6265 am_depcomp="$ac_aux_dir/depcomp"6266 AMDEPBACKSLASH='\'6267 fi6268 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])6269 AC_SUBST([AMDEPBACKSLASH])6270 ])6271 6272 # Generate code to set up dependency tracking. -*- Autoconf -*-6273 6274 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 20046275 # Free Software Foundation, Inc.6276 6277 # This program is free software; you can redistribute it and/or modify6278 # it under the terms of the GNU General Public License as published by6279 # the Free Software Foundation; either version 2, or (at your option)6280 # any later version.6281 6282 # This program is distributed in the hope that it will be useful,6283 # but WITHOUT ANY WARRANTY; without even the implied warranty of6284 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6285 # GNU General Public License for more details.6286 6287 # You should have received a copy of the GNU General Public License6288 # along with this program; if not, write to the Free Software6289 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6290 # 02111-1307, USA.6291 6292 #serial 26293 6294 # _AM_OUTPUT_DEPENDENCY_COMMANDS6295 # ------------------------------6296 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],6297 [for mf in $CONFIG_FILES; do6298 # Strip MF so we end up with the name of the file.6299 mf=`echo "$mf" | sed -e 's/:.*$//'`6300 # Check whether this is an Automake generated Makefile or not.6301 # We used to match only the files named `Makefile.in', but6302 # some people rename them; so instead we look at the file content.6303 # Grep'ing the first line is not enough: some people post-process6304 # each Makefile.in and add a new line on top of each file to say so.6305 # So let's grep whole file.6306 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then6307 dirpart=`AS_DIRNAME("$mf")`6308 else6309 continue6310 fi6311 # Extract the definition of DEPDIR, am__include, and am__quote6312 # from the Makefile without running `make'.6313 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`6314 test -z "$DEPDIR" && continue6315 am__include=`sed -n 's/^am__include = //p' < "$mf"`6316 test -z "am__include" && continue6317 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`6318 # When using ansi2knr, U may be empty or an underscore; expand it6319 U=`sed -n 's/^U = //p' < "$mf"`6320 # Find all dependency output files, they are included files with6321 # $(DEPDIR) in their names. We invoke sed twice because it is the6322 # simplest approach to changing $(DEPDIR) to its actual value in the6323 # expansion.6324 for file in `sed -n "6325 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \6326 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do6327 # Make sure the directory exists.6328 test -f "$dirpart/$file" && continue6329 fdir=`AS_DIRNAME(["$file"])`6330 AS_MKDIR_P([$dirpart/$fdir])6331 # echo "creating $dirpart/$file"6332 echo '# dummy' > "$dirpart/$file"6333 done6334 done6335 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS6336 6337 6338 # AM_OUTPUT_DEPENDENCY_COMMANDS6339 # -----------------------------6340 # This macro should only be invoked once -- use via AC_REQUIRE.6341 #6342 # This code is only required when automatic dependency tracking6343 # is enabled. FIXME. This creates each `.P' file that we will6344 # need in order to bootstrap the dependency handling code.6345 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],6346 [AC_CONFIG_COMMANDS([depfiles],6347 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],6348 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])6349 ])6350 6351 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-6352 6353 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.6354 6355 # This program is free software; you can redistribute it and/or modify6356 # it under the terms of the GNU General Public License as published by6357 # the Free Software Foundation; either version 2, or (at your option)6358 # any later version.6359 6360 # This program is distributed in the hope that it will be useful,6361 # but WITHOUT ANY WARRANTY; without even the implied warranty of6362 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6363 # GNU General Public License for more details.6364 6365 # You should have received a copy of the GNU General Public License6366 # along with this program; if not, write to the Free Software6367 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6368 # 02111-1307, USA.6369 6370 # serial 76371 6372 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.6373 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])6374 6375 # Do all the work for Automake. -*- Autoconf -*-6376 6377 # This macro actually does too much some checks are only needed if6378 # your package does certain things. But this isn't really a big deal.6379 6380 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 20046381 # Free Software Foundation, Inc.6382 6383 # This program is free software; you can redistribute it and/or modify6384 # it under the terms of the GNU General Public License as published by6385 # the Free Software Foundation; either version 2, or (at your option)6386 # any later version.6387 6388 # This program is distributed in the hope that it will be useful,6389 # but WITHOUT ANY WARRANTY; without even the implied warranty of6390 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6391 # GNU General Public License for more details.6392 6393 # You should have received a copy of the GNU General Public License6394 # along with this program; if not, write to the Free Software6395 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6396 # 02111-1307, USA.6397 6398 # serial 116399 6400 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])6401 # AM_INIT_AUTOMAKE([OPTIONS])6402 # -----------------------------------------------6403 # The call with PACKAGE and VERSION arguments is the old style6404 # call (pre autoconf-2.50), which is being phased out. PACKAGE6405 # and VERSION should now be passed to AC_INIT and removed from6406 # the call to AM_INIT_AUTOMAKE.6407 # We support both call styles for the transition. After6408 # the next Automake release, Autoconf can make the AC_INIT6409 # arguments mandatory, and then we can depend on a new Autoconf6410 # release and drop the old call support.6411 AC_DEFUN([AM_INIT_AUTOMAKE],6412 [AC_PREREQ([2.58])dnl6413 dnl Autoconf wants to disallow AM_ names. We explicitly allow6414 dnl the ones we care about.6415 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl6416 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl6417 AC_REQUIRE([AC_PROG_INSTALL])dnl6418 # test to see if srcdir already configured6419 if test "`cd $srcdir && pwd`" != "`pwd`" &&6420 test -f $srcdir/config.status; then6421 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])6422 fi6423 6424 # test whether we have cygpath6425 if test -z "$CYGPATH_W"; then6426 if (cygpath --version) >/dev/null 2>/dev/null; then6427 CYGPATH_W='cygpath -w'6428 else6429 CYGPATH_W=echo6430 fi6431 fi6432 AC_SUBST([CYGPATH_W])6433 6434 # Define the identity of the package.6435 dnl Distinguish between old-style and new-style calls.6436 m4_ifval([$2],6437 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl6438 AC_SUBST([PACKAGE], [$1])dnl6439 AC_SUBST([VERSION], [$2])],6440 [_AM_SET_OPTIONS([$1])dnl6441 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl6442 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl6443 6444 _AM_IF_OPTION([no-define],,6445 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])6446 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl6447 6448 # Some tools Automake needs.6449 AC_REQUIRE([AM_SANITY_CHECK])dnl6450 AC_REQUIRE([AC_ARG_PROGRAM])dnl6451 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})6452 AM_MISSING_PROG(AUTOCONF, autoconf)6453 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})6454 AM_MISSING_PROG(AUTOHEADER, autoheader)6455 AM_MISSING_PROG(MAKEINFO, makeinfo)6456 AM_PROG_INSTALL_SH6457 AM_PROG_INSTALL_STRIP6458 AC_REQUIRE([AM_PROG_MKDIR_P])dnl6459 # We need awk for the "check" target. The system "awk" is bad on6460 # some platforms.6461 AC_REQUIRE([AC_PROG_AWK])dnl6462 AC_REQUIRE([AC_PROG_MAKE_SET])dnl6463 AC_REQUIRE([AM_SET_LEADING_DOT])dnl6464 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],6465 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],6466 [_AM_PROG_TAR([v7])])])6467 _AM_IF_OPTION([no-dependencies],,6468 [AC_PROVIDE_IFELSE([AC_PROG_CC],6469 [_AM_DEPENDENCIES(CC)],6470 [define([AC_PROG_CC],6471 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl6472 AC_PROVIDE_IFELSE([AC_PROG_CXX],6473 [_AM_DEPENDENCIES(CXX)],6474 [define([AC_PROG_CXX],6475 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl6476 ])6477 ])6478 6479 6480 # When config.status generates a header, we must update the stamp-h file.6481 # This file resides in the same directory as the config header6482 # that is generated. The stamp files are numbered to have different names.6483 6484 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the6485 # loop where config.status creates the headers, so we can generate6486 # our stamp files there.6487 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],6488 [# Compute $1's index in $config_headers.6489 _am_stamp_count=16490 for _am_header in $config_headers :; do6491 case $_am_header in6492 $1 | $1:* )6493 break ;;6494 * )6495 _am_stamp_count=`expr $_am_stamp_count + 1` ;;6496 esac6497 done6498 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])6499 6500 # AM_PROG_INSTALL_SH6501 # ------------------6502 # Define $install_sh.6503 6504 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.6505 6506 # This program is free software; you can redistribute it and/or modify6507 # it under the terms of the GNU General Public License as published by6508 # the Free Software Foundation; either version 2, or (at your option)6509 # any later version.6510 6511 # This program is distributed in the hope that it will be useful,6512 # but WITHOUT ANY WARRANTY; without even the implied warranty of6513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6514 # GNU General Public License for more details.6515 6516 # You should have received a copy of the GNU General Public License6517 # along with this program; if not, write to the Free Software6518 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6519 # 02111-1307, USA.6520 6521 AC_DEFUN([AM_PROG_INSTALL_SH],6522 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl6523 install_sh=${install_sh-"$am_aux_dir/install-sh"}6524 AC_SUBST(install_sh)])6525 6526 # -*- Autoconf -*-6527 # Copyright (C) 2003 Free Software Foundation, Inc.6528 6529 # This program is free software; you can redistribute it and/or modify6530 # it under the terms of the GNU General Public License as published by6531 # the Free Software Foundation; either version 2, or (at your option)6532 # any later version.6533 6534 # This program is distributed in the hope that it will be useful,6535 # but WITHOUT ANY WARRANTY; without even the implied warranty of6536 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6537 # GNU General Public License for more details.6538 6539 # You should have received a copy of the GNU General Public License6540 # along with this program; if not, write to the Free Software6541 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6542 # 02111-1307, USA.6543 6544 # serial 16545 6546 # Check whether the underlying file-system supports filenames6547 # with a leading dot. For instance MS-DOS doesn't.6548 AC_DEFUN([AM_SET_LEADING_DOT],6549 [rm -rf .tst 2>/dev/null6550 mkdir .tst 2>/dev/null6551 if test -d .tst; then6552 am__leading_dot=.6553 else6554 am__leading_dot=_6555 fi6556 rmdir .tst 2>/dev/null6557 AC_SUBST([am__leading_dot])])6558 6559 # Check to see how 'make' treats includes. -*- Autoconf -*-6560 6561 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.6562 6563 # This program is free software; you can redistribute it and/or modify6564 # it under the terms of the GNU General Public License as published by6565 # the Free Software Foundation; either version 2, or (at your option)6566 # any later version.6567 6568 # This program is distributed in the hope that it will be useful,6569 # but WITHOUT ANY WARRANTY; without even the implied warranty of6570 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6571 # GNU General Public License for more details.6572 6573 # You should have received a copy of the GNU General Public License6574 # along with this program; if not, write to the Free Software6575 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6576 # 02111-1307, USA.6577 6578 # serial 26579 6580 # AM_MAKE_INCLUDE()6581 # -----------------6582 # Check to see how make treats includes.6583 AC_DEFUN([AM_MAKE_INCLUDE],6584 [am_make=${MAKE-make}6585 cat > confinc << 'END'6586 am__doit:6587 @echo done6588 .PHONY: am__doit6589 END6590 # If we don't find an include directive, just comment out the code.6591 AC_MSG_CHECKING([for style of include used by $am_make])6592 am__include="#"6593 am__quote=6594 _am_result=none6595 # First try GNU make style include.6596 echo "include confinc" > confmf6597 # We grep out `Entering directory' and `Leaving directory'6598 # messages which can occur if `w' ends up in MAKEFLAGS.6599 # In particular we don't look at `^make:' because GNU make might6600 # be invoked under some other name (usually "gmake"), in which6601 # case it prints its new name instead of `make'.6602 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then6603 am__include=include6604 am__quote=6605 _am_result=GNU6606 fi6607 # Now try BSD make style include.6608 if test "$am__include" = "#"; then6609 echo '.include "confinc"' > confmf6610 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then6611 am__include=.include6612 am__quote="\""6613 _am_result=BSD6614 fi6615 fi6616 AC_SUBST([am__include])6617 AC_SUBST([am__quote])6618 AC_MSG_RESULT([$_am_result])6619 rm -f confinc confmf6620 ])6621 6622 # -*- Autoconf -*-6623 6624 6625 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.6626 6627 # This program is free software; you can redistribute it and/or modify6628 # it under the terms of the GNU General Public License as published by6629 # the Free Software Foundation; either version 2, or (at your option)6630 # any later version.6631 6632 # This program is distributed in the hope that it will be useful,6633 # but WITHOUT ANY WARRANTY; without even the implied warranty of6634 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6635 # GNU General Public License for more details.6636 6637 # You should have received a copy of the GNU General Public License6638 # along with this program; if not, write to the Free Software6639 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6640 # 02111-1307, USA.6641 6642 # serial 36643 6644 # AM_MISSING_PROG(NAME, PROGRAM)6645 # ------------------------------6646 AC_DEFUN([AM_MISSING_PROG],6647 [AC_REQUIRE([AM_MISSING_HAS_RUN])6648 $1=${$1-"${am_missing_run}$2"}6649 AC_SUBST($1)])6650 6651 6652 # AM_MISSING_HAS_RUN6653 # ------------------6654 # Define MISSING if not defined so far and test if it supports --run.6655 # If it does, set am_missing_run to use it, otherwise, to nothing.6656 AC_DEFUN([AM_MISSING_HAS_RUN],6657 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl6658 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"6659 # Use eval to expand $SHELL6660 if eval "$MISSING --run true"; then6661 am_missing_run="$MISSING --run "6662 else6663 am_missing_run=6664 AC_MSG_WARN([`missing' script is too old or missing])6665 fi6666 ])6667 6668 # AM_PROG_MKDIR_P6669 # ---------------6670 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.6671 6672 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.6673 6674 # This program is free software; you can redistribute it and/or modify6675 # it under the terms of the GNU General Public License as published by6676 # the Free Software Foundation; either version 2, or (at your option)6677 # any later version.6678 6679 # This program is distributed in the hope that it will be useful,6680 # but WITHOUT ANY WARRANTY; without even the implied warranty of6681 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6682 # GNU General Public License for more details.6683 6684 # You should have received a copy of the GNU General Public License6685 # along with this program; if not, write to the Free Software6686 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6687 # 02111-1307, USA.6688 6689 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories6690 # created by `make install' are always world readable, even if the6691 # installer happens to have an overly restrictive umask (e.g. 077).6692 # This was a mistake. There are at least two reasons why we must not6693 # use `-m 0755':6694 # - it causes special bits like SGID to be ignored,6695 # - it may be too restrictive (some setups expect 775 directories).6696 #6697 # Do not use -m 0755 and let people choose whatever they expect by6698 # setting umask.6699 #6700 # We cannot accept any implementation of `mkdir' that recognizes `-p'.6701 # Some implementations (such as Solaris 8's) are not thread-safe: if a6702 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'6703 # concurrently, both version can detect that a/ is missing, but only6704 # one can create it and the other will error out. Consequently we6705 # restrict ourselves to GNU make (using the --version option ensures6706 # this.)6707 AC_DEFUN([AM_PROG_MKDIR_P],6708 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then6709 # We used to keeping the `.' as first argument, in order to6710 # allow $(mkdir_p) to be used without argument. As in6711 # $(mkdir_p) $(somedir)6712 # where $(somedir) is conditionally defined. However this is wrong6713 # for two reasons:6714 # 1. if the package is installed by a user who cannot write `.'6715 # make install will fail,6716 # 2. the above comment should most certainly read6717 # $(mkdir_p) $(DESTDIR)$(somedir)6718 # so it does not work when $(somedir) is undefined and6719 # $(DESTDIR) is not.6720 # To support the latter case, we have to write6721 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),6722 # so the `.' trick is pointless.6723 mkdir_p='mkdir -p --'6724 else6725 # On NextStep and OpenStep, the `mkdir' command does not6726 # recognize any option. It will interpret all options as6727 # directories to create, and then abort because `.' already6728 # exists.6729 for d in ./-p ./--version;6730 do6731 test -d $d && rmdir $d6732 done6733 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.6734 if test -f "$ac_aux_dir/mkinstalldirs"; then6735 mkdir_p='$(mkinstalldirs)'6736 else6737 mkdir_p='$(install_sh) -d'6738 fi6739 fi6740 AC_SUBST([mkdir_p])])6741 6742 # Helper functions for option handling. -*- Autoconf -*-6743 6744 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.6745 6746 # This program is free software; you can redistribute it and/or modify6747 # it under the terms of the GNU General Public License as published by6748 # the Free Software Foundation; either version 2, or (at your option)6749 # any later version.6750 6751 # This program is distributed in the hope that it will be useful,6752 # but WITHOUT ANY WARRANTY; without even the implied warranty of6753 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6754 # GNU General Public License for more details.6755 6756 # You should have received a copy of the GNU General Public License6757 # along with this program; if not, write to the Free Software6758 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6759 # 02111-1307, USA.6760 6761 # serial 26762 6763 # _AM_MANGLE_OPTION(NAME)6764 # -----------------------6765 AC_DEFUN([_AM_MANGLE_OPTION],6766 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])6767 6768 # _AM_SET_OPTION(NAME)6769 # ------------------------------6770 # Set option NAME. Presently that only means defining a flag for this option.6771 AC_DEFUN([_AM_SET_OPTION],6772 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])6773 6774 # _AM_SET_OPTIONS(OPTIONS)6775 # ----------------------------------6776 # OPTIONS is a space-separated list of Automake options.6777 AC_DEFUN([_AM_SET_OPTIONS],6778 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])6779 6780 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])6781 # -------------------------------------------6782 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.6783 AC_DEFUN([_AM_IF_OPTION],6784 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])6785 6786 #6787 # Check to make sure that the build environment is sane.6788 #6789 6790 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.6791 6792 # This program is free software; you can redistribute it and/or modify6793 # it under the terms of the GNU General Public License as published by6794 # the Free Software Foundation; either version 2, or (at your option)6795 # any later version.6796 6797 # This program is distributed in the hope that it will be useful,6798 # but WITHOUT ANY WARRANTY; without even the implied warranty of6799 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6800 # GNU General Public License for more details.6801 6802 # You should have received a copy of the GNU General Public License6803 # along with this program; if not, write to the Free Software6804 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6805 # 02111-1307, USA.6806 6807 # serial 36808 6809 # AM_SANITY_CHECK6810 # ---------------6811 AC_DEFUN([AM_SANITY_CHECK],6812 [AC_MSG_CHECKING([whether build environment is sane])6813 # Just in case6814 sleep 16815 echo timestamp > conftest.file6816 # Do `set' in a subshell so we don't clobber the current shell's6817 # arguments. Must try -L first in case configure is actually a6818 # symlink; some systems play weird games with the mod time of symlinks6819 # (eg FreeBSD returns the mod time of the symlink's containing6820 # directory).6821 if (6822 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`6823 if test "$[*]" = "X"; then6824 # -L didn't work.6825 set X `ls -t $srcdir/configure conftest.file`6826 fi6827 rm -f conftest.file6828 if test "$[*]" != "X $srcdir/configure conftest.file" \6829 && test "$[*]" != "X conftest.file $srcdir/configure"; then6830 6831 # If neither matched, then we have a broken ls. This can happen6832 # if, for instance, CONFIG_SHELL is bash and it inherits a6833 # broken ls alias from the environment. This has actually6834 # happened. Such a system could not be considered "sane".6835 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken6836 alias in your environment])6837 fi6838 6839 test "$[2]" = conftest.file6840 )6841 then6842 # Ok.6843 :6844 else6845 AC_MSG_ERROR([newly created file is older than distributed files!6846 Check your system clock])6847 fi6848 AC_MSG_RESULT(yes)])6849 6850 # AM_PROG_INSTALL_STRIP6851 6852 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.6853 6854 # This program is free software; you can redistribute it and/or modify6855 # it under the terms of the GNU General Public License as published by6856 # the Free Software Foundation; either version 2, or (at your option)6857 # any later version.6858 6859 # This program is distributed in the hope that it will be useful,6860 # but WITHOUT ANY WARRANTY; without even the implied warranty of6861 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6862 # GNU General Public License for more details.6863 6864 # You should have received a copy of the GNU General Public License6865 # along with this program; if not, write to the Free Software6866 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6867 # 02111-1307, USA.6868 6869 # One issue with vendor `install' (even GNU) is that you can't6870 # specify the program used to strip binaries. This is especially6871 # annoying in cross-compiling environments, where the build's strip6872 # is unlikely to handle the host's binaries.6873 # Fortunately install-sh will honor a STRIPPROG variable, so we6874 # always use install-sh in `make install-strip', and initialize6875 # STRIPPROG with the value of the STRIP variable (set by the user).6876 AC_DEFUN([AM_PROG_INSTALL_STRIP],6877 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl6878 # Installed binaries are usually stripped using `strip' when the user6879 # run `make install-strip'. However `strip' might not be the right6880 # tool to use in cross-compilation environments, therefore Automake6881 # will honor the `STRIP' environment variable to overrule this program.6882 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.6883 if test "$cross_compiling" != no; then6884 AC_CHECK_TOOL([STRIP], [strip], :)6885 fi6886 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"6887 AC_SUBST([INSTALL_STRIP_PROGRAM])])6888 6889 # Check how to create a tarball. -*- Autoconf -*-6890 6891 # Copyright (C) 2004 Free Software Foundation, Inc.6892 6893 # This program is free software; you can redistribute it and/or modify6894 # it under the terms of the GNU General Public License as published by6895 # the Free Software Foundation; either version 2, or (at your option)6896 # any later version.6897 6898 # This program is distributed in the hope that it will be useful,6899 # but WITHOUT ANY WARRANTY; without even the implied warranty of6900 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the6901 # GNU General Public License for more details.6902 6903 # You should have received a copy of the GNU General Public License6904 # along with this program; if not, write to the Free Software6905 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA6906 # 02111-1307, USA.6907 6908 # serial 16909 6910 6911 # _AM_PROG_TAR(FORMAT)6912 # --------------------6913 # Check how to create a tarball in format FORMAT.6914 # FORMAT should be one of `v7', `ustar', or `pax'.6915 #6916 # Substitute a variable $(am__tar) that is a command6917 # writing to stdout a FORMAT-tarball containing the directory6918 # $tardir.6919 # tardir=directory && $(am__tar) > result.tar6920 #6921 # Substitute a variable $(am__untar) that extract such6922 # a tarball read from stdin.6923 # $(am__untar) < result.tar6924 AC_DEFUN([_AM_PROG_TAR],6925 [# Always define AMTAR for backward compatibility.6926 AM_MISSING_PROG([AMTAR], [tar])6927 m4_if([$1], [v7],6928 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],6929 [m4_case([$1], [ustar],, [pax],,6930 [m4_fatal([Unknown tar format])])6931 AC_MSG_CHECKING([how to create a $1 tar archive])6932 # Loop over all known methods to create a tar archive until one works.6933 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'6934 _am_tools=${am_cv_prog_tar_$1-$_am_tools}6935 # Do not fold the above two line into one, because Tru64 sh and6936 # Solaris sh will not grok spaces in the rhs of `-'.6937 for _am_tool in $_am_tools6938 do6939 case $_am_tool in6940 gnutar)6941 for _am_tar in tar gnutar gtar;6942 do6943 AM_RUN_LOG([$_am_tar --version]) && break6944 done6945 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'6946 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'6947 am__untar="$_am_tar -xf -"6948 ;;6949 plaintar)6950 # Must skip GNU tar: if it does not support --format= it doesn't create6951 # ustar tarball either.6952 (tar --version) >/dev/null 2>&1 && continue6953 am__tar='tar chf - "$$tardir"'6954 am__tar_='tar chf - "$tardir"'6955 am__untar='tar xf -'6956 ;;6957 pax)6958 am__tar='pax -L -x $1 -w "$$tardir"'6959 am__tar_='pax -L -x $1 -w "$tardir"'6960 am__untar='pax -r'6961 ;;6962 cpio)6963 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'6964 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'6965 am__untar='cpio -i -H $1 -d'6966 ;;6967 none)6968 am__tar=false6969 am__tar_=false6970 am__untar=false6971 ;;6972 esac6973 6974 # If the value was cached, stop now. We just wanted to have am__tar6975 # and am__untar set.6976 test -n "${am_cv_prog_tar_$1}" && break6977 6978 # tar/untar a dummy directory, and stop if the command works6979 rm -rf conftest.dir6980 mkdir conftest.dir6981 echo GrepMe > conftest.dir/file6982 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])6983 rm -rf conftest.dir6984 if test -s conftest.tar; then6985 AM_RUN_LOG([$am__untar <conftest.tar])6986 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break6987 fi6988 done6989 rm -rf conftest.dir6990 6991 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])6992 AC_MSG_RESULT([$am_cv_prog_tar_$1])])6993 AC_SUBST([am__tar])6994 AC_SUBST([am__untar])6995 ]) # _AM_PROG_TAR6996
Note:
See TracChangeset
for help on using the changeset viewer.
