Changeset 127 for xmms-musepack/branches/r2d/aclocal.m4
- Timestamp:
- 11/13/06 20:15:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xmms-musepack/branches/r2d/aclocal.m4
r34 r127 1 # generated automatically by aclocal 1. 9.4-*- Autoconf -*-2 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 , 2003, 20041 # generated automatically by aclocal 1.7.9 -*- Autoconf -*- 2 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 4 4 # Free Software Foundation, Inc. 5 5 # This file is free software; the Free Software Foundation … … 12 12 # PARTICULAR PURPOSE. 13 13 14 # Do all the work for Automake. -*- Autoconf -*- 15 16 # This macro actually does too much some checks are only needed if 17 # your package does certain things. But this isn't really a big deal. 18 19 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 20 # Free Software Foundation, Inc. 21 22 # This program is free software; you can redistribute it and/or modify 23 # it under the terms of the GNU General Public License as published by 24 # the Free Software Foundation; either version 2, or (at your option) 25 # any later version. 26 27 # This program is distributed in the hope that it will be useful, 28 # but WITHOUT ANY WARRANTY; without even the implied warranty of 29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30 # GNU General Public License for more details. 31 32 # You should have received a copy of the GNU General Public License 33 # along with this program; if not, write to the Free Software 34 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 35 # 02111-1307, USA. 36 37 # serial 10 38 39 AC_PREREQ([2.54]) 40 41 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 42 # the ones we care about. 43 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 44 45 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 46 # AM_INIT_AUTOMAKE([OPTIONS]) 47 # ----------------------------------------------- 48 # The call with PACKAGE and VERSION arguments is the old style 49 # call (pre autoconf-2.50), which is being phased out. PACKAGE 50 # and VERSION should now be passed to AC_INIT and removed from 51 # the call to AM_INIT_AUTOMAKE. 52 # We support both call styles for the transition. After 53 # the next Automake release, Autoconf can make the AC_INIT 54 # arguments mandatory, and then we can depend on a new Autoconf 55 # release and drop the old call support. 56 AC_DEFUN([AM_INIT_AUTOMAKE], 57 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 58 AC_REQUIRE([AC_PROG_INSTALL])dnl 59 # test to see if srcdir already configured 60 if test "`cd $srcdir && pwd`" != "`pwd`" && 61 test -f $srcdir/config.status; then 62 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 63 fi 64 65 # test whether we have cygpath 66 if test -z "$CYGPATH_W"; then 67 if (cygpath --version) >/dev/null 2>/dev/null; then 68 CYGPATH_W='cygpath -w' 69 else 70 CYGPATH_W=echo 71 fi 72 fi 73 AC_SUBST([CYGPATH_W]) 74 75 # Define the identity of the package. 76 dnl Distinguish between old-style and new-style calls. 77 m4_ifval([$2], 78 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 79 AC_SUBST([PACKAGE], [$1])dnl 80 AC_SUBST([VERSION], [$2])], 81 [_AM_SET_OPTIONS([$1])dnl 82 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 83 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 84 85 _AM_IF_OPTION([no-define],, 86 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 87 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 88 89 # Some tools Automake needs. 90 AC_REQUIRE([AM_SANITY_CHECK])dnl 91 AC_REQUIRE([AC_ARG_PROGRAM])dnl 92 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 93 AM_MISSING_PROG(AUTOCONF, autoconf) 94 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 95 AM_MISSING_PROG(AUTOHEADER, autoheader) 96 AM_MISSING_PROG(MAKEINFO, makeinfo) 97 AM_MISSING_PROG(AMTAR, tar) 98 AM_PROG_INSTALL_SH 99 AM_PROG_INSTALL_STRIP 100 # We need awk for the "check" target. The system "awk" is bad on 101 # some platforms. 102 AC_REQUIRE([AC_PROG_AWK])dnl 103 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 104 AC_REQUIRE([AM_SET_LEADING_DOT])dnl 105 106 _AM_IF_OPTION([no-dependencies],, 107 [AC_PROVIDE_IFELSE([AC_PROG_CC], 108 [_AM_DEPENDENCIES(CC)], 109 [define([AC_PROG_CC], 110 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 111 AC_PROVIDE_IFELSE([AC_PROG_CXX], 112 [_AM_DEPENDENCIES(CXX)], 113 [define([AC_PROG_CXX], 114 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 115 ]) 116 ]) 117 118 119 # When config.status generates a header, we must update the stamp-h file. 120 # This file resides in the same directory as the config header 121 # that is generated. The stamp files are numbered to have different names. 122 123 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 124 # loop where config.status creates the headers, so we can generate 125 # our stamp files there. 126 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 127 [# Compute $1's index in $config_headers. 128 _am_stamp_count=1 129 for _am_header in $config_headers :; do 130 case $_am_header in 131 $1 | $1:* ) 132 break ;; 133 * ) 134 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 135 esac 136 done 137 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 138 139 # Copyright 2002 Free Software Foundation, Inc. 140 141 # This program is free software; you can redistribute it and/or modify 142 # it under the terms of the GNU General Public License as published by 143 # the Free Software Foundation; either version 2, or (at your option) 144 # any later version. 145 146 # This program is distributed in the hope that it will be useful, 147 # but WITHOUT ANY WARRANTY; without even the implied warranty of 148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 149 # GNU General Public License for more details. 150 151 # You should have received a copy of the GNU General Public License 152 # along with this program; if not, write to the Free Software 153 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 154 155 # AM_AUTOMAKE_VERSION(VERSION) 156 # ---------------------------- 157 # Automake X.Y traces this macro to ensure aclocal.m4 has been 158 # generated from the m4 files accompanying Automake X.Y. 159 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) 160 161 # AM_SET_CURRENT_AUTOMAKE_VERSION 162 # ------------------------------- 163 # Call AM_AUTOMAKE_VERSION so it can be traced. 164 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 165 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 166 [AM_AUTOMAKE_VERSION([1.7.9])]) 167 168 # Helper functions for option handling. -*- Autoconf -*- 169 170 # Copyright 2001, 2002 Free Software Foundation, Inc. 171 172 # This program is free software; you can redistribute it and/or modify 173 # it under the terms of the GNU General Public License as published by 174 # the Free Software Foundation; either version 2, or (at your option) 175 # any later version. 176 177 # This program is distributed in the hope that it will be useful, 178 # but WITHOUT ANY WARRANTY; without even the implied warranty of 179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 180 # GNU General Public License for more details. 181 182 # You should have received a copy of the GNU General Public License 183 # along with this program; if not, write to the Free Software 184 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 185 # 02111-1307, USA. 186 187 # serial 2 188 189 # _AM_MANGLE_OPTION(NAME) 190 # ----------------------- 191 AC_DEFUN([_AM_MANGLE_OPTION], 192 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 193 194 # _AM_SET_OPTION(NAME) 195 # ------------------------------ 196 # Set option NAME. Presently that only means defining a flag for this option. 197 AC_DEFUN([_AM_SET_OPTION], 198 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 199 200 # _AM_SET_OPTIONS(OPTIONS) 201 # ---------------------------------- 202 # OPTIONS is a space-separated list of Automake options. 203 AC_DEFUN([_AM_SET_OPTIONS], 204 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 205 206 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 207 # ------------------------------------------- 208 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 209 AC_DEFUN([_AM_IF_OPTION], 210 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 211 212 # 213 # Check to make sure that the build environment is sane. 214 # 215 216 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. 217 218 # This program is free software; you can redistribute it and/or modify 219 # it under the terms of the GNU General Public License as published by 220 # the Free Software Foundation; either version 2, or (at your option) 221 # any later version. 222 223 # This program is distributed in the hope that it will be useful, 224 # but WITHOUT ANY WARRANTY; without even the implied warranty of 225 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 226 # GNU General Public License for more details. 227 228 # You should have received a copy of the GNU General Public License 229 # along with this program; if not, write to the Free Software 230 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 231 # 02111-1307, USA. 232 233 # serial 3 234 235 # AM_SANITY_CHECK 236 # --------------- 237 AC_DEFUN([AM_SANITY_CHECK], 238 [AC_MSG_CHECKING([whether build environment is sane]) 239 # Just in case 240 sleep 1 241 echo timestamp > conftest.file 242 # Do `set' in a subshell so we don't clobber the current shell's 243 # arguments. Must try -L first in case configure is actually a 244 # symlink; some systems play weird games with the mod time of symlinks 245 # (eg FreeBSD returns the mod time of the symlink's containing 246 # directory). 247 if ( 248 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 249 if test "$[*]" = "X"; then 250 # -L didn't work. 251 set X `ls -t $srcdir/configure conftest.file` 252 fi 253 rm -f conftest.file 254 if test "$[*]" != "X $srcdir/configure conftest.file" \ 255 && test "$[*]" != "X conftest.file $srcdir/configure"; then 256 257 # If neither matched, then we have a broken ls. This can happen 258 # if, for instance, CONFIG_SHELL is bash and it inherits a 259 # broken ls alias from the environment. This has actually 260 # happened. Such a system could not be considered "sane". 261 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 262 alias in your environment]) 263 fi 264 265 test "$[2]" = conftest.file 266 ) 267 then 268 # Ok. 269 : 270 else 271 AC_MSG_ERROR([newly created file is older than distributed files! 272 Check your system clock]) 273 fi 274 AC_MSG_RESULT(yes)]) 275 276 # -*- Autoconf -*- 277 278 279 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. 280 281 # This program is free software; you can redistribute it and/or modify 282 # it under the terms of the GNU General Public License as published by 283 # the Free Software Foundation; either version 2, or (at your option) 284 # any later version. 285 286 # This program is distributed in the hope that it will be useful, 287 # but WITHOUT ANY WARRANTY; without even the implied warranty of 288 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 289 # GNU General Public License for more details. 290 291 # You should have received a copy of the GNU General Public License 292 # along with this program; if not, write to the Free Software 293 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 294 # 02111-1307, USA. 295 296 # serial 3 297 298 # AM_MISSING_PROG(NAME, PROGRAM) 299 # ------------------------------ 300 AC_DEFUN([AM_MISSING_PROG], 301 [AC_REQUIRE([AM_MISSING_HAS_RUN]) 302 $1=${$1-"${am_missing_run}$2"} 303 AC_SUBST($1)]) 304 305 306 # AM_MISSING_HAS_RUN 307 # ------------------ 308 # Define MISSING if not defined so far and test if it supports --run. 309 # If it does, set am_missing_run to use it, otherwise, to nothing. 310 AC_DEFUN([AM_MISSING_HAS_RUN], 311 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 312 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 313 # Use eval to expand $SHELL 314 if eval "$MISSING --run true"; then 315 am_missing_run="$MISSING --run " 316 else 317 am_missing_run= 318 AC_MSG_WARN([`missing' script is too old or missing]) 319 fi 320 ]) 321 322 # AM_AUX_DIR_EXPAND 323 324 # Copyright 2001 Free Software Foundation, Inc. 325 326 # This program is free software; you can redistribute it and/or modify 327 # it under the terms of the GNU General Public License as published by 328 # the Free Software Foundation; either version 2, or (at your option) 329 # any later version. 330 331 # This program is distributed in the hope that it will be useful, 332 # but WITHOUT ANY WARRANTY; without even the implied warranty of 333 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 334 # GNU General Public License for more details. 335 336 # You should have received a copy of the GNU General Public License 337 # along with this program; if not, write to the Free Software 338 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 339 # 02111-1307, USA. 340 341 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 342 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 343 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. 344 # 345 # Of course, Automake must honor this variable whenever it calls a 346 # tool from the auxiliary directory. The problem is that $srcdir (and 347 # therefore $ac_aux_dir as well) can be either absolute or relative, 348 # depending on how configure is run. This is pretty annoying, since 349 # it makes $ac_aux_dir quite unusable in subdirectories: in the top 350 # source directory, any form will work fine, but in subdirectories a 351 # relative path needs to be adjusted first. 352 # 353 # $ac_aux_dir/missing 354 # fails when called from a subdirectory if $ac_aux_dir is relative 355 # $top_srcdir/$ac_aux_dir/missing 356 # fails if $ac_aux_dir is absolute, 357 # fails when called from a subdirectory in a VPATH build with 358 # a relative $ac_aux_dir 359 # 360 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 361 # are both prefixed by $srcdir. In an in-source build this is usually 362 # harmless because $srcdir is `.', but things will broke when you 363 # start a VPATH build or use an absolute $srcdir. 364 # 365 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 366 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: 367 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 368 # and then we would define $MISSING as 369 # MISSING="\${SHELL} $am_aux_dir/missing" 370 # This will work as long as MISSING is not called from configure, because 371 # unfortunately $(top_srcdir) has no meaning in configure. 372 # However there are other variables, like CC, which are often used in 373 # configure, and could therefore not use this "fixed" $ac_aux_dir. 374 # 375 # Another solution, used here, is to always expand $ac_aux_dir to an 376 # absolute PATH. The drawback is that using absolute paths prevent a 377 # configured tree to be moved without reconfiguration. 378 379 # Rely on autoconf to set up CDPATH properly. 380 AC_PREREQ([2.50]) 381 382 AC_DEFUN([AM_AUX_DIR_EXPAND], [ 383 # expand $ac_aux_dir to an absolute path 384 am_aux_dir=`cd $ac_aux_dir && pwd` 385 ]) 386 387 # AM_PROG_INSTALL_SH 388 # ------------------ 389 # Define $install_sh. 390 391 # Copyright 2001 Free Software Foundation, Inc. 392 393 # This program is free software; you can redistribute it and/or modify 394 # it under the terms of the GNU General Public License as published by 395 # the Free Software Foundation; either version 2, or (at your option) 396 # any later version. 397 398 # This program is distributed in the hope that it will be useful, 399 # but WITHOUT ANY WARRANTY; without even the implied warranty of 400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 401 # GNU General Public License for more details. 402 403 # You should have received a copy of the GNU General Public License 404 # along with this program; if not, write to the Free Software 405 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 406 # 02111-1307, USA. 407 408 AC_DEFUN([AM_PROG_INSTALL_SH], 409 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 410 install_sh=${install_sh-"$am_aux_dir/install-sh"} 411 AC_SUBST(install_sh)]) 412 413 # AM_PROG_INSTALL_STRIP 414 415 # Copyright 2001 Free Software Foundation, Inc. 416 417 # This program is free software; you can redistribute it and/or modify 418 # it under the terms of the GNU General Public License as published by 419 # the Free Software Foundation; either version 2, or (at your option) 420 # any later version. 421 422 # This program is distributed in the hope that it will be useful, 423 # but WITHOUT ANY WARRANTY; without even the implied warranty of 424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 425 # GNU General Public License for more details. 426 427 # You should have received a copy of the GNU General Public License 428 # along with this program; if not, write to the Free Software 429 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 430 # 02111-1307, USA. 431 432 # One issue with vendor `install' (even GNU) is that you can't 433 # specify the program used to strip binaries. This is especially 434 # annoying in cross-compiling environments, where the build's strip 435 # is unlikely to handle the host's binaries. 436 # Fortunately install-sh will honor a STRIPPROG variable, so we 437 # always use install-sh in `make install-strip', and initialize 438 # STRIPPROG with the value of the STRIP variable (set by the user). 439 AC_DEFUN([AM_PROG_INSTALL_STRIP], 440 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 441 # Installed binaries are usually stripped using `strip' when the user 442 # run `make install-strip'. However `strip' might not be the right 443 # tool to use in cross-compilation environments, therefore Automake 444 # will honor the `STRIP' environment variable to overrule this program. 445 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 446 if test "$cross_compiling" != no; then 447 AC_CHECK_TOOL([STRIP], [strip], :) 448 fi 449 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 450 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 451 452 # -*- Autoconf -*- 453 # Copyright (C) 2003 Free Software Foundation, Inc. 454 455 # This program is free software; you can redistribute it and/or modify 456 # it under the terms of the GNU General Public License as published by 457 # the Free Software Foundation; either version 2, or (at your option) 458 # any later version. 459 460 # This program is distributed in the hope that it will be useful, 461 # but WITHOUT ANY WARRANTY; without even the implied warranty of 462 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 463 # GNU General Public License for more details. 464 465 # You should have received a copy of the GNU General Public License 466 # along with this program; if not, write to the Free Software 467 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 468 # 02111-1307, USA. 469 470 # serial 1 471 472 # Check whether the underlying file-system supports filenames 473 # with a leading dot. For instance MS-DOS doesn't. 474 AC_DEFUN([AM_SET_LEADING_DOT], 475 [rm -rf .tst 2>/dev/null 476 mkdir .tst 2>/dev/null 477 if test -d .tst; then 478 am__leading_dot=. 479 else 480 am__leading_dot=_ 481 fi 482 rmdir .tst 2>/dev/null 483 AC_SUBST([am__leading_dot])]) 484 485 # serial 5 -*- Autoconf -*- 486 487 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 488 489 # This program is free software; you can redistribute it and/or modify 490 # it under the terms of the GNU General Public License as published by 491 # the Free Software Foundation; either version 2, or (at your option) 492 # any later version. 493 494 # This program is distributed in the hope that it will be useful, 495 # but WITHOUT ANY WARRANTY; without even the implied warranty of 496 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 497 # GNU General Public License for more details. 498 499 # You should have received a copy of the GNU General Public License 500 # along with this program; if not, write to the Free Software 501 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 502 # 02111-1307, USA. 503 504 505 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 506 # written in clear, in which case automake, when reading aclocal.m4, 507 # will think it sees a *use*, and therefore will trigger all it's 508 # C support machinery. Also note that it means that autoscan, seeing 509 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 510 511 512 513 # _AM_DEPENDENCIES(NAME) 514 # ---------------------- 515 # See how the compiler implements dependency checking. 516 # NAME is "CC", "CXX", "GCJ", or "OBJC". 517 # We try a few techniques and use that to set a single cache variable. 518 # 519 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 520 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 521 # dependency, and given that the user is not expected to run this macro, 522 # just rely on AC_PROG_CC. 523 AC_DEFUN([_AM_DEPENDENCIES], 524 [AC_REQUIRE([AM_SET_DEPDIR])dnl 525 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 526 AC_REQUIRE([AM_MAKE_INCLUDE])dnl 527 AC_REQUIRE([AM_DEP_TRACK])dnl 528 529 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 530 [$1], CXX, [depcc="$CXX" am_compiler_list=], 531 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 532 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 533 [depcc="$$1" am_compiler_list=]) 534 535 AC_CACHE_CHECK([dependency style of $depcc], 536 [am_cv_$1_dependencies_compiler_type], 537 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 538 # We make a subdir and do the tests there. Otherwise we can end up 539 # making bogus files that we don't know about and never remove. For 540 # instance it was reported that on HP-UX the gcc test will end up 541 # making a dummy file named `D' -- because `-MD' means `put the output 542 # in D'. 543 mkdir conftest.dir 544 # Copy depcomp to subdir because otherwise we won't find it if we're 545 # using a relative directory. 546 cp "$am_depcomp" conftest.dir 547 cd conftest.dir 548 # We will build objects and dependencies in a subdirectory because 549 # it helps to detect inapplicable dependency modes. For instance 550 # both Tru64's cc and ICC support -MD to output dependencies as a 551 # side effect of compilation, but ICC will put the dependencies in 552 # the current directory while Tru64 will put them in the object 553 # directory. 554 mkdir sub 555 556 am_cv_$1_dependencies_compiler_type=none 557 if test "$am_compiler_list" = ""; then 558 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 559 fi 560 for depmode in $am_compiler_list; do 561 # Setup a source with many dependencies, because some compilers 562 # like to wrap large dependency lists on column 80 (with \), and 563 # we should not choose a depcomp mode which is confused by this. 564 # 565 # We need to recreate these files for each test, as the compiler may 566 # overwrite some of them when testing with obscure command lines. 567 # This happens at least with the AIX C compiler. 568 : > sub/conftest.c 569 for i in 1 2 3 4 5 6; do 570 echo '#include "conftst'$i'.h"' >> sub/conftest.c 571 : > sub/conftst$i.h 572 done 573 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 574 575 case $depmode in 576 nosideeffect) 577 # after this tag, mechanisms are not by side-effect, so they'll 578 # only be used when explicitly requested 579 if test "x$enable_dependency_tracking" = xyes; then 580 continue 581 else 582 break 583 fi 584 ;; 585 none) break ;; 586 esac 587 # We check with `-c' and `-o' for the sake of the "dashmstdout" 588 # mode. It turns out that the SunPro C++ compiler does not properly 589 # handle `-M -o', and we need to detect this. 590 if depmode=$depmode \ 591 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 592 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 593 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 594 >/dev/null 2>conftest.err && 595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 596 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 598 # icc doesn't choke on unknown options, it will just issue warnings 599 # (even with -Werror). So we grep stderr for any message 600 # that says an option was ignored. 601 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 602 am_cv_$1_dependencies_compiler_type=$depmode 603 break 604 fi 605 fi 606 done 607 608 cd .. 609 rm -rf conftest.dir 610 else 611 am_cv_$1_dependencies_compiler_type=none 612 fi 613 ]) 614 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 615 AM_CONDITIONAL([am__fastdep$1], [ 616 test "x$enable_dependency_tracking" != xno \ 617 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 618 ]) 619 620 621 # AM_SET_DEPDIR 622 # ------------- 623 # Choose a directory name for dependency files. 624 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 625 AC_DEFUN([AM_SET_DEPDIR], 626 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl 627 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 628 ]) 629 630 631 # AM_DEP_TRACK 632 # ------------ 633 AC_DEFUN([AM_DEP_TRACK], 634 [AC_ARG_ENABLE(dependency-tracking, 635 [ --disable-dependency-tracking Speeds up one-time builds 636 --enable-dependency-tracking Do not reject slow dependency extractors]) 637 if test "x$enable_dependency_tracking" != xno; then 638 am_depcomp="$ac_aux_dir/depcomp" 639 AMDEPBACKSLASH='\' 640 fi 641 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 642 AC_SUBST([AMDEPBACKSLASH]) 643 ]) 644 645 # Generate code to set up dependency tracking. -*- Autoconf -*- 646 647 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. 648 649 # This program is free software; you can redistribute it and/or modify 650 # it under the terms of the GNU General Public License as published by 651 # the Free Software Foundation; either version 2, or (at your option) 652 # any later version. 653 654 # This program is distributed in the hope that it will be useful, 655 # but WITHOUT ANY WARRANTY; without even the implied warranty of 656 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 657 # GNU General Public License for more details. 658 659 # You should have received a copy of the GNU General Public License 660 # along with this program; if not, write to the Free Software 661 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 662 # 02111-1307, USA. 663 664 #serial 2 665 666 # _AM_OUTPUT_DEPENDENCY_COMMANDS 667 # ------------------------------ 668 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 669 [for mf in $CONFIG_FILES; do 670 # Strip MF so we end up with the name of the file. 671 mf=`echo "$mf" | sed -e 's/:.*$//'` 672 # Check whether this is an Automake generated Makefile or not. 673 # We used to match only the files named `Makefile.in', but 674 # some people rename them; so instead we look at the file content. 675 # Grep'ing the first line is not enough: some people post-process 676 # each Makefile.in and add a new line on top of each file to say so. 677 # So let's grep whole file. 678 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 679 dirpart=`AS_DIRNAME("$mf")` 680 else 681 continue 682 fi 683 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue 684 # Extract the definition of DEP_FILES from the Makefile without 685 # running `make'. 686 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 687 test -z "$DEPDIR" && continue 688 # When using ansi2knr, U may be empty or an underscore; expand it 689 U=`sed -n -e '/^U = / s///p' < "$mf"` 690 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 691 # We invoke sed twice because it is the simplest approach to 692 # changing $(DEPDIR) to its actual value in the expansion. 693 for file in `sed -n -e ' 694 /^DEP_FILES = .*\\\\$/ { 695 s/^DEP_FILES = // 696 :loop 697 s/\\\\$// 698 p 699 n 700 /\\\\$/ b loop 701 p 702 } 703 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 704 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 705 # Make sure the directory exists. 706 test -f "$dirpart/$file" && continue 707 fdir=`AS_DIRNAME(["$file"])` 708 AS_MKDIR_P([$dirpart/$fdir]) 709 # echo "creating $dirpart/$file" 710 echo '# dummy' > "$dirpart/$file" 711 done 712 done 713 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 714 715 716 # AM_OUTPUT_DEPENDENCY_COMMANDS 717 # ----------------------------- 718 # This macro should only be invoked once -- use via AC_REQUIRE. 719 # 720 # This code is only required when automatic dependency tracking 721 # is enabled. FIXME. This creates each `.P' file that we will 722 # need in order to bootstrap the dependency handling code. 723 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 724 [AC_CONFIG_COMMANDS([depfiles], 725 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 726 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 727 ]) 728 729 # Check to see how 'make' treats includes. -*- Autoconf -*- 730 731 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 732 733 # This program is free software; you can redistribute it and/or modify 734 # it under the terms of the GNU General Public License as published by 735 # the Free Software Foundation; either version 2, or (at your option) 736 # any later version. 737 738 # This program is distributed in the hope that it will be useful, 739 # but WITHOUT ANY WARRANTY; without even the implied warranty of 740 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 741 # GNU General Public License for more details. 742 743 # You should have received a copy of the GNU General Public License 744 # along with this program; if not, write to the Free Software 745 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 746 # 02111-1307, USA. 747 748 # serial 2 749 750 # AM_MAKE_INCLUDE() 751 # ----------------- 752 # Check to see how make treats includes. 753 AC_DEFUN([AM_MAKE_INCLUDE], 754 [am_make=${MAKE-make} 755 cat > confinc << 'END' 756 am__doit: 757 @echo done 758 .PHONY: am__doit 759 END 760 # If we don't find an include directive, just comment out the code. 761 AC_MSG_CHECKING([for style of include used by $am_make]) 762 am__include="#" 763 am__quote= 764 _am_result=none 765 # First try GNU make style include. 766 echo "include confinc" > confmf 767 # We grep out `Entering directory' and `Leaving directory' 768 # messages which can occur if `w' ends up in MAKEFLAGS. 769 # In particular we don't look at `^make:' because GNU make might 770 # be invoked under some other name (usually "gmake"), in which 771 # case it prints its new name instead of `make'. 772 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 773 am__include=include 774 am__quote= 775 _am_result=GNU 776 fi 777 # Now try BSD make style include. 778 if test "$am__include" = "#"; then 779 echo '.include "confinc"' > confmf 780 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 781 am__include=.include 782 am__quote="\"" 783 _am_result=BSD 784 fi 785 fi 786 AC_SUBST([am__include]) 787 AC_SUBST([am__quote]) 788 AC_MSG_RESULT([$_am_result]) 789 rm -f confinc confmf 790 ]) 791 792 # AM_CONDITIONAL -*- Autoconf -*- 793 794 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc. 795 796 # This program is free software; you can redistribute it and/or modify 797 # it under the terms of the GNU General Public License as published by 798 # the Free Software Foundation; either version 2, or (at your option) 799 # any later version. 800 801 # This program is distributed in the hope that it will be useful, 802 # but WITHOUT ANY WARRANTY; without even the implied warranty of 803 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 804 # GNU General Public License for more details. 805 806 # You should have received a copy of the GNU General Public License 807 # along with this program; if not, write to the Free Software 808 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 809 # 02111-1307, USA. 810 811 # serial 5 812 813 AC_PREREQ(2.52) 814 815 # AM_CONDITIONAL(NAME, SHELL-CONDITION) 816 # ------------------------------------- 817 # Define a conditional. 818 AC_DEFUN([AM_CONDITIONAL], 819 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 820 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 821 AC_SUBST([$1_TRUE]) 822 AC_SUBST([$1_FALSE]) 823 if $2; then 824 $1_TRUE= 825 $1_FALSE='#' 826 else 827 $1_TRUE='#' 828 $1_FALSE= 829 fi 830 AC_CONFIG_COMMANDS_PRE( 831 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 832 AC_MSG_ERROR([conditional "$1" was never defined. 833 Usually this means the macro was only invoked conditionally.]) 834 fi])]) 835 14 836 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 15 837 16 838 # serial 47 AC_PROG_LIBTOOL 17 # Debian $Rev: 214 $18 839 19 840 … … 125 946 # Sed substitution that helps us do robust quoting. It backslashifies 126 947 # metacharacters that are still active within double-quoted strings. 127 Xsed='sed -e s/^X//'948 Xsed='sed -e 1s/^X//' 128 949 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 129 950 … … 193 1014 fi 194 1015 1016 _LT_CC_BASENAME([$compiler]) 1017 195 1018 # Only perform the check for file, if the check method requires it 196 1019 case $deplibs_check_method in … … 236 1059 compiler=$CC 237 1060 ])# _LT_AC_SYS_COMPILER 1061 1062 1063 # _LT_CC_BASENAME(CC) 1064 # ------------------- 1065 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1066 AC_DEFUN([_LT_CC_BASENAME], 1067 [for cc_temp in $1""; do 1068 case $cc_temp in 1069 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1070 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1071 \-*) ;; 1072 *) break;; 1073 esac 1074 done 1075 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 1076 ]) 1077 1078 1079 # _LT_COMPILER_BOILERPLATE 1080 # ------------------------ 1081 # Check for compiler boilerplate output or warnings with 1082 # the simple compiler test code. 1083 AC_DEFUN([_LT_COMPILER_BOILERPLATE], 1084 [ac_outfile=conftest.$ac_objext 1085 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 1086 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 1087 _lt_compiler_boilerplate=`cat conftest.err` 1088 $rm conftest* 1089 ])# _LT_COMPILER_BOILERPLATE 1090 1091 1092 # _LT_LINKER_BOILERPLATE 1093 # ---------------------- 1094 # Check for linker boilerplate output or warnings with 1095 # the simple link test code. 1096 AC_DEFUN([_LT_LINKER_BOILERPLATE], 1097 [ac_outfile=conftest.$ac_objext 1098 printf "$lt_simple_link_test_code" >conftest.$ac_ext 1099 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 1100 _lt_linker_boilerplate=`cat conftest.err` 1101 $rm conftest* 1102 ])# _LT_LINKER_BOILERPLATE 238 1103 239 1104 … … 310 1175 # The HP-UX ksh and POSIX shell print the target directory to stdout 311 1176 # if CDPATH is set. 312 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 1177 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 313 1178 314 1179 if test -z "$ECHO"; then … … 579 1444 if (exit $ac_status) && test -s "$ac_outfile"; then 580 1445 # The compiler can only warn and ignore the option if not recognized 581 # So say no if there are warnings 582 if test ! -s conftest.err; then 1446 # So say no if there are warnings other than the usual output. 1447 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 1448 $SED '/^$/d' conftest.err >conftest.er2 1449 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 583 1450 $2=yes 584 1451 fi … … 611 1478 # Append any errors to the config.log. 612 1479 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1480 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 1481 $SED '/^$/d' conftest.err >conftest.er2 1482 if diff conftest.exp conftest.er2 >/dev/null; then 1483 $2=yes 1484 fi 613 1485 else 614 1486 $2=yes … … 669 1541 ;; 670 1542 671 *) 1543 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 1544 # This has been around since 386BSD, at least. Likely further. 1545 if test -x /sbin/sysctl; then 1546 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1547 elif test -x /usr/sbin/sysctl; then 1548 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1549 else 1550 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD 1551 fi 1552 # And add a safety zone 1553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1555 ;; 1556 osf*) 1557 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1558 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1559 # nice to cause kernel panics so lets avoid the loop below. 1560 # First set a reasonable default. 1561 lt_cv_sys_max_cmd_len=16384 1562 # 1563 if test -x /sbin/sysconfig; then 1564 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1565 *1*) lt_cv_sys_max_cmd_len=-1 ;; 1566 esac 1567 fi 1568 ;; 1569 *) 672 1570 # If test is not a shell built-in, we'll probably end up computing a 673 1571 # maximum length that is only half of the actual maximum length, but 674 1572 # we can't tell. 675 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 1573 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1574 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 676 1575 = "XX$teststring") >/dev/null 2>&1 && 677 1576 new_result=`expr "X$teststring" : ".*" 2>&1` && … … 939 1838 # The compiler can only warn and ignore the option if not recognized 940 1839 # So say no if there are warnings 941 if test ! -s out/conftest.err; then 1840 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 1841 $SED '/^$/d' out/conftest.err >out/conftest.er2 1842 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 942 1843 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 943 1844 fi … … 1007 1908 _LT_AC_TAGVAR(hardcode_action, $1)= 1008 1909 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1009 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \1010 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" ="Xyes" ; then1910 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 1911 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1011 1912 1012 1913 # We can hardcode non-existant directories. … … 1175 2076 ;; 1176 2077 1177 bsdi 4*)2078 bsdi[[45]]*) 1178 2079 version_type=linux 1179 2080 need_version=no … … 1233 2134 pw32*) 1234 2135 # pw32 DLLs use 'pw' prefix rather than 'lib' 1235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[ .]/-/g'`${versuffix}${shared_ext}'2136 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1236 2137 ;; 1237 2138 esac … … 1291 2192 ;; 1292 2193 1293 freebsd*) 2194 freebsd* | dragonfly*) 2195 # DragonFly does not have aout. When/if they implement a new 2196 # versioning mechanism, adjust this. 1294 2197 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1295 2198 version_type=freebsd-$objformat … … 1310 2213 shlibpath_overrides_runpath=yes 1311 2214 ;; 1312 freebsd3.[ 01]* | freebsdelf3.[01]*)2215 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 1313 2216 shlibpath_overrides_runpath=yes 1314 2217 hardcode_into_libs=yes … … 1434 2337 hardcode_into_libs=yes 1435 2338 2339 # find out which ABI we are using 2340 libsuff= 2341 case "$host_cpu" in 2342 x86_64*|s390x*|powerpc64*) 2343 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 2344 if AC_TRY_EVAL(ac_compile); then 2345 case `/usr/bin/file conftest.$ac_objext` in 2346 *64-bit*) 2347 libsuff=64 2348 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 2349 ;; 2350 esac 2351 fi 2352 rm -rf conftest* 2353 ;; 2354 esac 2355 1436 2356 # Append ld.so.conf contents to the search path 1437 2357 if test -f /etc/ld.so.conf; then 1438 lt_ld_extra=` $SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf| tr '\n' ' '`1439 sys_lib_dlsearch_path_spec="/lib /usr/lib$lt_ld_extra"2358 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 2359 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" 1440 2360 fi 1441 2361 … … 1447 2367 # assume the GNU/Linux dynamic linker is in use. 1448 2368 dynamic_linker='GNU/Linux ld.so' 1449 ;;1450 1451 netbsdelf*-gnu)1452 version_type=linux1453 need_lib_prefix=no1454 need_version=no1455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1456 soname_spec='${libname}${release}${shared_ext}$major'1457 shlibpath_var=LD_LIBRARY_PATH1458 shlibpath_overrides_runpath=no1459 hardcode_into_libs=yes1460 dynamic_linker='NetBSD ld.elf_so'1461 2369 ;; 1462 2370 … … 1511 2419 version_type=sunos 1512 2420 need_lib_prefix=no 1513 need_version=yes 2421 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2422 case $host_os in 2423 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2424 *) need_version=no ;; 2425 esac 1514 2426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1515 2427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 1677 2589 case $tagname in 1678 2590 CXX) 1679 if test -n "$CXX" && test "X$CXX" != "Xno"; then 2591 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2592 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2593 (test "X$CXX" != "Xg++"))) ; then 1680 2594 AC_LIBTOOL_LANG_CXX_CONFIG 1681 2595 else … … 2082 2996 esac 2083 2997 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2998 case $host_os in 2999 darwin*) 3000 if test "$GCC" = yes; then 3001 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 3002 else 3003 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3004 fi 3005 ;; 3006 esac 2084 3007 ])# AC_PROG_LD_RELOAD_FLAG 2085 3008 … … 2115 3038 ;; 2116 3039 2117 bsdi 4*)3040 bsdi[[45]]*) 2118 3041 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2119 3042 lt_cv_file_magic_cmd='/usr/bin/file -L' … … 2138 3061 ;; 2139 3062 2140 freebsd* | kfreebsd*-gnu )3063 freebsd* | kfreebsd*-gnu | dragonfly*) 2141 3064 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2142 3065 case $host_cpu in … … 2144 3067 # Not sure whether the presence of OpenBSD here was a mistake. 2145 3068 # Let's accept both of them until this is cleared up. 2146 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD )/i[[3-9]]86 (compact )?demand paged shared library'3069 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 2147 3070 lt_cv_file_magic_cmd=/usr/bin/file 2148 3071 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` … … 2191 3114 ;; 2192 3115 2193 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)3116 netbsd*) 2194 3117 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2195 3118 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' … … 2210 3133 2211 3134 openbsd*) 2212 lt_cv_file_magic_cmd=/usr/bin/file2213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`2214 3135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2215 lt_cv_deplibs_check_method=' file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'3136 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 2216 3137 else 2217 lt_cv_deplibs_check_method=' file_magic OpenBSD.* shared library'3138 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2218 3139 fi 2219 3140 ;; … … 2405 3326 AC_DEFUN([_LT_AC_LANG_CXX], 2406 3327 [AC_REQUIRE([AC_PROG_CXX]) 2407 AC_REQUIRE([ AC_PROG_CXXCPP])3328 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2408 3329 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2409 3330 ])# _LT_AC_LANG_CXX 2410 3331 3332 # _LT_AC_PROG_CXXCPP 3333 # --------------- 3334 AC_DEFUN([_LT_AC_PROG_CXXCPP], 3335 [ 3336 AC_REQUIRE([AC_PROG_CXX]) 3337 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 3338 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 3339 (test "X$CXX" != "Xg++"))) ; then 3340 AC_PROG_CXXCPP 3341 fi 3342 ])# _LT_AC_PROG_CXXCPP 2411 3343 2412 3344 # AC_LIBTOOL_F77 … … 2480 3412 2481 3413 _LT_AC_SYS_COMPILER 3414 3415 # save warnings/boilerplate of simple test code 3416 _LT_COMPILER_BOILERPLATE 3417 _LT_LINKER_BOILERPLATE 2482 3418 2483 3419 # … … 2544 3480 test "$enable_shared" = yes && enable_static=no 2545 3481 fi 2546 ;;2547 darwin* | rhapsody*)2548 if test "$GCC" = yes; then2549 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no2550 case "$host_os" in2551 rhapsody* | darwin1.[[012]])2552 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'2553 ;;2554 *) # Darwin 1.3 on2555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then2556 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'2557 else2558 case ${MACOSX_DEPLOYMENT_TARGET} in2559 10.[[012]])2560 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'2561 ;;2562 10.*)2563 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'2564 ;;2565 esac2566 fi2567 ;;2568 esac2569 output_verbose_link_cmd='echo'2570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'2571 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'2572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's2573 _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}'2574 _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}'2575 _LT_AC_TAGVAR(hardcode_direct, $1)=no2576 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes2577 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported2578 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'2579 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes2580 else2581 _LT_AC_TAGVAR(ld_shlibs, $1)=no2582 fi2583 3482 ;; 2584 3483 esac … … 2606 3505 [AC_LANG_PUSH(C++) 2607 3506 AC_REQUIRE([AC_PROG_CXX]) 2608 AC_REQUIRE([ AC_PROG_CXXCPP])3507 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2609 3508 2610 3509 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no … … 2649 3548 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 2650 3549 _LT_AC_SYS_COMPILER 3550 3551 # save warnings/boilerplate of simple test code 3552 _LT_COMPILER_BOILERPLATE 3553 _LT_LINKER_BOILERPLATE 2651 3554 2652 3555 # Allow CC to be a program name with arguments. … … 2671 3574 compiler=$CC 2672 3575 _LT_AC_TAGVAR(compiler, $1)=$CC 2673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 3576 _LT_CC_BASENAME([$compiler]) 2674 3577 2675 3578 # We don't want -fno-exception wen compiling C++ code, so set the … … 2778 3681 2779 3682 if test "$GXX" = yes; then 2780 case $host_os in aix4.[ 012]|aix4.[012].*)3683 case $host_os in aix4.[[012]]|aix4.[[012]].*) 2781 3684 # We only want to do this on AIX 4.2 and lower, the check 2782 3685 # below for broken collect2 doesn't work under 4.3+ … … 2799 3702 esac 2800 3703 shared_flag='-shared' 3704 if test "$aix_use_runtimelinking" = yes; then 3705 shared_flag="$shared_flag "'${wl}-G' 3706 fi 2801 3707 else 2802 3708 # not using gcc … … 2858 3764 ;; 2859 3765 3766 2860 3767 cygwin* | mingw* | pw32*) 2861 3768 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, … … 2881 3788 fi 2882 3789 ;; 2883 2884 darwin* | rhapsody*) 2885 if test "$GXX" = yes; then 2886 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2887 case "$host_os" in 2888 rhapsody* | darwin1.[[012]]) 2889 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 2890 ;; 2891 *) # Darwin 1.3 on 2892 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2893 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3790 darwin* | rhapsody*) 3791 case "$host_os" in 3792 rhapsody* | darwin1.[[012]]) 3793 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 3794 ;; 3795 *) # Darwin 1.3 on 3796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 3797 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3798 else 3799 case ${MACOSX_DEPLOYMENT_TARGET} in 3800 10.[[012]]) 3801 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 3802 ;; 3803 10.*) 3804 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 3805 ;; 3806 esac 3807 fi 3808 ;; 3809 esac 3810 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3811 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3812 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3813 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3814 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 3815 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3816 3817 if test "$GXX" = yes ; then 3818 lt_int_apple_cc_single_mod=no 3819 output_verbose_link_cmd='echo' 3820 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 3821 lt_int_apple_cc_single_mod=yes 3822 fi 3823 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3824 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2894 3825 else 2895 case ${MACOSX_DEPLOYMENT_TARGET} in 2896 10.[[012]]) 2897 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2898 ;; 2899 10.*) 2900 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2901 ;; 2902 esac 3826 _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' 3827 fi 3828 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 3830 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3831 _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}' 3832 else 3833 _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}' 3834 fi 3835 _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}' 3836 else 3837 case $cc_basename in 3838 xlc*) 3839 output_verbose_link_cmd='echo' 3840 _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' 3841 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3842 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 3843 _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}' 3844 _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}' 3845 ;; 3846 *) 3847 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3848 ;; 3849 esac 2903 3850 fi 2904 ;; 2905 esac 2906 lt_int_apple_cc_single_mod=no 2907 output_verbose_link_cmd='echo' 2908 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 2909 lt_int_apple_cc_single_mod=yes 2910 fi 2911 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2913 else 2914 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2915 fi 2916 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2917 2918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2920 _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}' 2921 else 2922 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 2923 fi 2924 _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}' 2925 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2926 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 2927 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2928 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 2929 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2930 else 2931 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2932 fi 2933 ;; 3851 ;; 2934 3852 2935 3853 dgux*) 2936 3854 case $cc_basename in 2937 ec++ )3855 ec++*) 2938 3856 # FIXME: insert proper C++ library support 2939 3857 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2940 3858 ;; 2941 ghcx )3859 ghcx*) 2942 3860 # Green Hills C++ Compiler 2943 3861 # FIXME: insert proper C++ library support … … 2950 3868 esac 2951 3869 ;; 2952 freebsd[ 12]*)3870 freebsd[[12]]*) 2953 3871 # C++ shared libraries reported to be fairly broken before switch to ELF 2954 3872 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 2957 3875 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2958 3876 ;; 2959 freebsd* | kfreebsd*-gnu )3877 freebsd* | kfreebsd*-gnu | dragonfly*) 2960 3878 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 2961 3879 # conventions … … 2974 3892 2975 3893 case $cc_basename in 2976 CC )3894 CC*) 2977 3895 # FIXME: insert proper C++ library support 2978 3896 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2979 3897 ;; 2980 aCC )3898 aCC*) 2981 3899 _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' 2982 3900 # Commands to make compiler produce verbose output that lists … … 2988 3906 # from the output so that they don't get included in the library 2989 3907 # dependencies. 2990 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'3908 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' 2991 3909 ;; 2992 3910 *) … … 3039 3957 3040 3958 case $cc_basename in 3041 CC )3959 CC*) 3042 3960 # FIXME: insert proper C++ library support 3043 3961 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3044 3962 ;; 3045 aCC )3963 aCC*) 3046 3964 case "$host_cpu" in 3047 3965 hppa*64*|ia64*) … … 3083 4001 irix5* | irix6*) 3084 4002 case $cc_basename in 3085 CC )4003 CC*) 3086 4004 # SGI C++ 3087 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${o bjdir}/so_locations -o $lib'4005 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3088 4006 3089 4007 # Archives containing C++ object files must be created using … … 3096 4014 if test "$GXX" = yes; then 3097 4015 if test "$with_gnu_ld" = no; then 3098 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${o bjdir}/so_locations -o $lib'4016 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3099 4017 else 3100 4018 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' … … 3109 4027 linux*) 3110 4028 case $cc_basename in 3111 KCC )4029 KCC*) 3112 4030 # Kuck and Associates, Inc. (KAI) C++ Compiler 3113 4031 … … 3134 4052 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3135 4053 ;; 3136 icpc )4054 icpc*) 3137 4055 # Intel C++ 3138 4056 with_gnu_ld=yes 4057 # version 8.0 and above of icpc choke on multiply defined symbols 4058 # if we add $predep_objects and $postdep_objects, however 7.1 and 4059 # earlier do not add the objects themselves. 4060 case `$CC -V 2>&1` in 4061 *"Version 7."*) 4062 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 4063 _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' 4064 ;; 4065 *) # Version 8.0 or newer 4066 tmp_idyn= 4067 case $host_cpu in 4068 ia64*) tmp_idyn=' -i_dynamic';; 4069 esac 4070 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4071 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 4072 ;; 4073 esac 3139 4074 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3140 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'3141 _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'3142 4075 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3143 4076 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3144 4077 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3145 4078 ;; 3146 cxx) 4079 pgCC*) 4080 # Portland Group C++ compiler 4081 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 4082 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 4083 4084 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 4085 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4086 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 4087 ;; 4088 cxx*) 3147 4089 # Compaq C++ 3148 4090 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' … … 3175 4117 mvs*) 3176 4118 case $cc_basename in 3177 cxx )4119 cxx*) 3178 4120 # FIXME: insert proper C++ library support 3179 4121 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 3185 4127 esac 3186 4128 ;; 3187 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)4129 netbsd*) 3188 4130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3189 4131 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' … … 3196 4138 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3197 4139 ;; 4140 openbsd2*) 4141 # C++ shared libraries are fairly broken 4142 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4143 ;; 4144 openbsd*) 4145 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4146 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4147 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 4148 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4149 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4150 _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' 4151 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4152 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4153 fi 4154 output_verbose_link_cmd='echo' 4155 ;; 3198 4156 osf3*) 3199 4157 case $cc_basename in 3200 KCC )4158 KCC*) 3201 4159 # Kuck and Associates, Inc. (KAI) C++ Compiler 3202 4160 … … 3214 4172 3215 4173 ;; 3216 RCC )4174 RCC*) 3217 4175 # Rational C++ 2.4.1 3218 4176 # FIXME: insert proper C++ library support 3219 4177 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3220 4178 ;; 3221 cxx )4179 cxx*) 3222 4180 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3223 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${o bjdir}/so_locations -o $lib'4181 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3224 4182 3225 4183 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3239 4197 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3240 4198 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3241 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${o bjdir}/so_locations -o $lib'4199 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3242 4200 3243 4201 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3258 4216 osf4* | osf5*) 3259 4217 case $cc_basename in 3260 KCC )4218 KCC*) 3261 4219 # Kuck and Associates, Inc. (KAI) C++ Compiler 3262 4220 … … 3273 4231 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3274 4232 ;; 3275 RCC )4233 RCC*) 3276 4234 # Rational C++ 2.4.1 3277 4235 # FIXME: insert proper C++ library support 3278 4236 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3279 4237 ;; 3280 cxx )4238 cxx*) 3281 4239 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3282 _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 ${o bjdir}/so_locations -o $lib'4240 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3283 4241 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3284 4242 echo "-hidden">> $lib.exp~ 3285 $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~4243 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ 3286 4244 $rm $lib.exp' 3287 4245 … … 3302 4260 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3303 4261 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3304 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${o bjdir}/so_locations -o $lib'4262 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3305 4263 3306 4264 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3326 4284 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3327 4285 case $cc_basename in 3328 CC )4286 CC*) 3329 4287 # FIXME: insert proper C++ library support 3330 4288 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 3338 4296 sunos4*) 3339 4297 case $cc_basename in 3340 CC )4298 CC*) 3341 4299 # Sun C++ 4.x 3342 4300 # FIXME: insert proper C++ library support 3343 4301 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3344 4302 ;; 3345 lcc )4303 lcc*) 3346 4304 # Lucid 3347 4305 # FIXME: insert proper C++ library support … … 3356 4314 solaris*) 3357 4315 case $cc_basename in 3358 CC )4316 CC*) 3359 4317 # Sun C++ 4.2, 5.x and Centerline C++ 3360 4318 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' … … 3366 4324 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3367 4325 case $host_os in 3368 solaris2.[ 0-5] | solaris2.[0-5].*) ;;4326 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3369 4327 *) 3370 4328 # The C++ compiler is used as linker so we must use $wl 3371 4329 # flag to pass the commands to the underlying system 3372 # linker. 4330 # linker. We must also pass each convience library through 4331 # to the system linker between allextract/defaultextract. 4332 # The C++ compiler will combine linker options so we 4333 # cannot just pass the convience library names through 4334 # without $wl. 3373 4335 # Supported since Solaris 2.6 (maybe 2.5.1?) 3374 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract $convenience${wl}-z ${wl}defaultextract'4336 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 3375 4337 ;; 3376 4338 esac … … 3393 4355 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3394 4356 ;; 3395 gcx )4357 gcx*) 3396 4358 # Green Hills C++ Compiler 3397 4359 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' … … 3436 4398 tandem*) 3437 4399 case $cc_basename in 3438 NCC )4400 NCC*) 3439 4401 # NonStop-UX NCC 3.20 3440 4402 # FIXME: insert proper C++ library support … … 3668 4630 _LT_AC_SYS_COMPILER 3669 4631 4632 # save warnings/boilerplate of simple test code 4633 _LT_COMPILER_BOILERPLATE 4634 _LT_LINKER_BOILERPLATE 4635 3670 4636 # Allow CC to be a program name with arguments. 3671 4637 lt_save_CC="$CC" … … 3673 4639 compiler=$CC 3674 4640 _LT_AC_TAGVAR(compiler, $1)=$CC 3675 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 4641 _LT_CC_BASENAME([$compiler]) 3676 4642 3677 4643 AC_MSG_CHECKING([if libtool supports shared libraries]) … … 3692 4658 ;; 3693 4659 aix4* | aix5*) 3694 test "$enable_shared" = yes && enable_static=no 4660 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 4661 test "$enable_shared" = yes && enable_static=no 4662 fi 3695 4663 ;; 3696 4664 esac … … 3743 4711 3744 4712 # Code to be used in simple link tests 3745 lt_simple_link_test_code='public class conftest { public static void main(String[ ] argv) {}; }\n'4713 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' 3746 4714 3747 4715 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3748 4716 _LT_AC_SYS_COMPILER 4717 4718 # save warnings/boilerplate of simple test code 4719 _LT_COMPILER_BOILERPLATE 4720 _LT_LINKER_BOILERPLATE 3749 4721 3750 4722 # Allow CC to be a program name with arguments. … … 3753 4725 compiler=$CC 3754 4726 _LT_AC_TAGVAR(compiler, $1)=$CC 4727 _LT_CC_BASENAME([$compiler]) 3755 4728 3756 4729 # GCJ did not exist at the time GCC didn't implicitly link libc in. 3757 4730 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4731 4732 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3758 4733 3759 4734 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) … … 3799 4774 _LT_AC_SYS_COMPILER 3800 4775 4776 # save warnings/boilerplate of simple test code 4777 _LT_COMPILER_BOILERPLATE 4778 _LT_LINKER_BOILERPLATE 4779 3801 4780 # Allow CC to be a program name with arguments. 3802 4781 lt_save_CC="$CC" … … 3804 4783 compiler=$CC 3805 4784 _LT_AC_TAGVAR(compiler, $1)=$CC 4785 _LT_CC_BASENAME([$compiler]) 3806 4786 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3807 4787 … … 3939 4919 # You should have received a copy of the GNU General Public License 3940 4920 # along with this program; if not, write to the Free Software 3941 # Foundation, Inc., 5 9 Temple Place - Suite 330, Boston, MA 02111-1307, USA.4921 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 3942 4922 # 3943 4923 # As a special exception to the GNU General Public License, if you … … 3950 4930 3951 4931 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 3952 Xsed="$SED -e s/^X//"4932 Xsed="$SED -e 1s/^X//" 3953 4933 3954 4934 # The HP-UX ksh and POSIX shell print the target directory to stdout 3955 4935 # if CDPATH is set. 3956 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 4936 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3957 4937 3958 4938 # The names of the tagged configurations supported by this script. … … 3985 4965 host_alias=$host_alias 3986 4966 host=$host 4967 host_os=$host_os 4968 4969 # The build system. 4970 build_alias=$build_alias 4971 build=$build 4972 build_os=$build_os 3987 4973 3988 4974 # An echo program that does not interpret backslashes. … … 4061 5047 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4062 5048 4063 # Must we lock files when doing compilation 5049 # Must we lock files when doing compilation? 4064 5050 need_locks=$lt_need_locks 4065 5051 … … 4335 5321 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4336 5322 4337 # Transform the above into a raw symbol and a C symbol.4338 symxfrm='\1 \2\3 \3'4339 4340 5323 # Transform an extracted symbol line into a proper C declaration 4341 5324 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" … … 4359 5342 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4360 5343 ;; 5344 linux*) 5345 if test "$host_cpu" = ia64; then 5346 symcode='[[ABCDGIRSTW]]' 5347 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5348 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5349 fi 5350 ;; 4361 5351 irix* | nonstopux*) 4362 5352 symcode='[[BCDEGRST]]' … … 4390 5380 for ac_symprfx in "" "_"; do 4391 5381 5382 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5383 symxfrm="\\1 $ac_symprfx\\2 \\2" 5384 4392 5385 # Write the raw and C identifiers. 4393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]* \($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"5386 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4394 5387 4395 5388 # Check to see that the pipe works correctly. … … 4580 5573 chorus*) 4581 5574 case $cc_basename in 4582 cxch68 )5575 cxch68*) 4583 5576 # Green Hills C++ Compiler 4584 5577 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" … … 4586 5579 esac 4587 5580 ;; 5581 darwin*) 5582 # PIC is the default on this platform 5583 # Common symbols not allowed in MH_DYLIB files 5584 case $cc_basename in 5585 xlc*) 5586 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5587 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5588 ;; 5589 esac 5590 ;; 4588 5591 dgux*) 4589 5592 case $cc_basename in 4590 ec++ )5593 ec++*) 4591 5594 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4592 5595 ;; 4593 ghcx )5596 ghcx*) 4594 5597 # Green Hills C++ Compiler 4595 5598 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' … … 4599 5602 esac 4600 5603 ;; 4601 freebsd* | kfreebsd*-gnu )5604 freebsd* | kfreebsd*-gnu | dragonfly*) 4602 5605 # FreeBSD uses GNU C++ 4603 5606 ;; 4604 5607 hpux9* | hpux10* | hpux11*) 4605 5608 case $cc_basename in 4606 CC )5609 CC*) 4607 5610 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4608 5611 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" … … 4611 5614 fi 4612 5615 ;; 4613 aCC )5616 aCC*) 4614 5617 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4615 5618 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" … … 4629 5632 irix5* | irix6* | nonstopux*) 4630 5633 case $cc_basename in 4631 CC )5634 CC*) 4632 5635 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4633 5636 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' … … 4640 5643 linux*) 4641 5644 case $cc_basename in 4642 KCC )5645 KCC*) 4643 5646 # KAI C++ Compiler 4644 5647 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4645 5648 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4646 5649 ;; 4647 icpc )5650 icpc* | ecpc*) 4648 5651 # Intel C++ 4649 5652 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' … … 4651 5654 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4652 5655 ;; 4653 cxx) 5656 pgCC*) 5657 # Portland Group C++ compiler. 5658 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5659 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5660 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5661 ;; 5662 cxx*) 4654 5663 # Compaq C++ 4655 5664 # Make sure the PIC flag is empty. It appears that all Alpha … … 4668 5677 mvs*) 4669 5678 case $cc_basename in 4670 cxx )5679 cxx*) 4671 5680 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4672 5681 ;; … … 4675 5684 esac 4676 5685 ;; 4677 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)5686 netbsd*) 4678 5687 ;; 4679 5688 osf3* | osf4* | osf5*) 4680 5689 case $cc_basename in 4681 KCC )5690 KCC*) 4682 5691 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4683 5692 ;; 4684 RCC )5693 RCC*) 4685 5694 # Rational C++ 2.4.1 4686 5695 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4687 5696 ;; 4688 cxx )5697 cxx*) 4689 5698 # Digital/Compaq C++ 4690 5699 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' … … 4702 5711 sco*) 4703 5712 case $cc_basename in 4704 CC )5713 CC*) 4705 5714 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4706 5715 ;; … … 4711 5720 solaris*) 4712 5721 case $cc_basename in 4713 CC )5722 CC*) 4714 5723 # Sun C++ 4.2, 5.x and Centerline C++ 4715 5724 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4717 5726 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4718 5727 ;; 4719 gcx )5728 gcx*) 4720 5729 # Green Hills C++ Compiler 4721 5730 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' … … 4727 5736 sunos4*) 4728 5737 case $cc_basename in 4729 CC )5738 CC*) 4730 5739 # Sun C++ 4.x 4731 5740 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4732 5741 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4733 5742 ;; 4734 lcc )5743 lcc*) 4735 5744 # Lucid 4736 5745 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' … … 4742 5751 tandem*) 4743 5752 case $cc_basename in 4744 NCC )5753 NCC*) 4745 5754 # NonStop-UX NCC 3.20 4746 5755 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4839 5848 fi 4840 5849 ;; 5850 darwin*) 5851 # PIC is the default on this platform 5852 # Common symbols not allowed in MH_DYLIB files 5853 case $cc_basename in 5854 xlc*) 5855 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5856 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5857 ;; 5858 esac 5859 ;; 4841 5860 4842 5861 mingw* | pw32* | os2*) … … 4874 5893 4875 5894 linux*) 4876 case $ CCin5895 case $cc_basename in 4877 5896 icc* | ecc*) 4878 5897 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4879 5898 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5899 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5900 ;; 5901 pgcc* | pgf77* | pgf90*) 5902 # Portland Group compilers (*not* the Pentium gcc compiler, 5903 # which looks to be a dead project) 5904 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5905 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4880 5906 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4881 5907 ;; … … 4900 5926 4901 5927 solaris*) 4902 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4903 5928 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4904 5929 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5930 case $cc_basename in 5931 f77* | f90* | f95*) 5932 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5933 *) 5934 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5935 esac 4905 5936 ;; 4906 5937 … … 4922 5953 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4923 5954 fi 5955 ;; 5956 5957 unicos*) 5958 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5959 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4924 5960 ;; 4925 5961 … … 4984 6020 ;; 4985 6021 cygwin* | mingw*) 4986 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 4987 ;; 4988 linux*) 4989 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 6022 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 4990 6023 ;; 4991 6024 *) … … 5030 6063 # preloaded symbol tables. 5031 6064 extract_expsyms_cmds= 5032 6065 # Just being paranoid about ensuring that cc_basename is set. 6066 _LT_CC_BASENAME([$compiler]) 5033 6067 case $host_os in 5034 6068 cygwin* | mingw* | pw32*) … … 5049 6083 # If archive_cmds runs LD, not CC, wlarc should be empty 5050 6084 wlarc='${wl}' 5051 6085 6086 # Set some defaults for GNU ld with shared library support. These 6087 # are reset later if shared libraries are not supported. Putting them 6088 # here allows them to be overridden if necessary. 6089 runpath_var=LD_RUN_PATH 6090 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6091 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6092 # ancient GNU ld didn't support --whole-archive et. al. 6093 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6094 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6095 else 6096 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6097 fi 6098 supports_anon_versioning=no 6099 case `$LD -v 2>/dev/null` in 6100 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 6101 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6102 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6103 *\ 2.11.*) ;; # other 2.11 versions 6104 *) supports_anon_versioning=yes ;; 6105 esac 6106 5052 6107 # See if GNU ld supports shared libraries. 5053 6108 case $host_os in … … 5100 6155 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5101 6156 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5102 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDG S]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'6157 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 5103 6158 5104 6159 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then … … 5114 6169 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5115 6170 else 5116 ld_shlibs=no6171 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5117 6172 fi 5118 6173 ;; 5119 6174 5120 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 6175 linux*) 6176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6177 tmp_addflag= 6178 case $cc_basename,$host_cpu in 6179 pgcc*) # Portland Group C compiler 6180 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6181 tmp_addflag=' $pic_flag' 6182 ;; 6183 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers 6184 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6185 tmp_addflag=' $pic_flag -Mnomain' ;; 6186 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6187 tmp_addflag=' -i_dynamic' ;; 6188 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6189 tmp_addflag=' -i_dynamic -nofor_main' ;; 6190 ifc* | ifort*) # Intel Fortran compiler 6191 tmp_addflag=' -nofor_main' ;; 6192 esac 6193 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6194 6195 if test $supports_anon_versioning = yes; then 6196 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 6197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6198 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6199 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6200 fi 6201 else 6202 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6203 fi 6204 ;; 6205 6206 netbsd*) 5121 6207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5122 6208 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' … … 5156 6242 ;; 5157 6243 5158 linux*)5159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5160 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5161 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"5162 supports_anon_versioning=no5163 case `$LD -v 2>/dev/null` in5164 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.115165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...5166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...5167 *\ 2.11.*) ;; # other 2.11 versions5168 *) supports_anon_versioning=yes ;;5169 esac5170 if test $supports_anon_versioning = yes; then5171 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~5172 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~5173 $echo "local: *; };" >> $output_objdir/$libname.ver~5174 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5175 else5176 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"5177 fi5178 _LT_AC_TAGVAR(link_all_deplibs, $1)=no5179 else5180 _LT_AC_TAGVAR(ld_shlibs, $1)=no5181 fi5182 ;;5183 5184 6244 *) 5185 6245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then … … 5192 6252 esac 5193 6253 5194 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then 5195 runpath_var=LD_RUN_PATH 5196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5197 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5198 # ancient GNU ld didn't support --whole-archive et. al. 5199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5200 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5201 else 5202 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5203 fi 6254 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 6255 runpath_var= 6256 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6257 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 6258 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5204 6259 fi 5205 6260 else … … 5265 6320 5266 6321 if test "$GCC" = yes; then 5267 case $host_os in aix4.[ 012]|aix4.[012].*)6322 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5268 6323 # We only want to do this on AIX 4.2 and lower, the check 5269 6324 # below for broken collect2 doesn't work under 4.3+ … … 5286 6341 esac 5287 6342 shared_flag='-shared' 6343 if test "$aix_use_runtimelinking" = yes; then 6344 shared_flag="$shared_flag "'${wl}-G' 6345 fi 5288 6346 else 5289 6347 # not using gcc … … 5344 6402 ;; 5345 6403 5346 bsdi 4*)6404 bsdi[[45]]*) 5347 6405 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5348 6406 ;; … … 5365 6423 # FIXME: Should let the user specify the lib program. 5366 6424 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 5367 fix_srcfile_path='`cygpath -w "$srcfile"`'6425 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5368 6426 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5369 6427 ;; 5370 6428 5371 6429 darwin* | rhapsody*) 5372 if test "$GXX" = yes ; then 6430 case "$host_os" in 6431 rhapsody* | darwin1.[[012]]) 6432 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 6433 ;; 6434 *) # Darwin 1.3 on 6435 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6436 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6437 else 6438 case ${MACOSX_DEPLOYMENT_TARGET} in 6439 10.[[012]]) 6440 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6441 ;; 6442 10.*) 6443 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 6444 ;; 6445 esac 6446 fi 6447 ;; 6448 esac 5373 6449 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5374 case "$host_os" in5375 rhapsody* | darwin1.[[012]])5376 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'5377 ;;5378 *) # Darwin 1.3 on5379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then5380 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'5381 else5382 case ${MACOSX_DEPLOYMENT_TARGET} in5383 10.[[012]])5384 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'5385 ;;5386 10.*)5387 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'5388 ;;5389 esac5390 fi5391 ;;5392 esac5393 lt_int_apple_cc_single_mod=no5394 output_verbose_link_cmd='echo'5395 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then5396 lt_int_apple_cc_single_mod=yes5397 fi5398 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then5399 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'5400 else5401 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'5402 fi5403 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'5404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's5405 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then5406 _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}'5407 else5408 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'5409 fi5410 _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}'5411 6450 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5412 6451 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5413 6452 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5414 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' -all_load $convenience'6453 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 5415 6454 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6455 if test "$GCC" = yes ; then 6456 output_verbose_link_cmd='echo' 6457 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6458 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6460 _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}' 6461 _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}' 5416 6462 else 5417 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6463 case $cc_basename in 6464 xlc*) 6465 output_verbose_link_cmd='echo' 6466 _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' 6467 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6469 _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}' 6470 _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}' 6471 ;; 6472 *) 6473 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6474 ;; 6475 esac 5418 6476 fi 5419 6477 ;; … … 5449 6507 5450 6508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5451 freebsd* | kfreebsd*-gnu )6509 freebsd* | kfreebsd*-gnu | dragonfly*) 5452 6510 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5453 6511 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 5536 6594 ;; 5537 6595 5538 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)6596 netbsd*) 5539 6597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5540 6598 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out … … 5560 6618 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5561 6619 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6620 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5562 6621 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5563 6622 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' … … 5605 6664 _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' 5606 6665 _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~ 5607 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${o bjdir}/so_locations -o $lib~$rm $lib.exp'6666 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 5608 6667 5609 6668 # Both c and cxx compiler support -rpath directly … … 5624 6683 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 5625 6684 if test "$GCC" = yes; then 6685 wlarc='${wl}' 5626 6686 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5627 6687 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5628 6688 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 5629 6689 else 6690 wlarc='' 5630 6691 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5631 6692 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ … … 5636 6697 case $host_os in 5637 6698 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5638 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 5639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6699 *) 6700 # The compiler driver will combine linker options so we 6701 # cannot just pass the convience library names through 6702 # without $wl, iff we do not link with $LD. 6703 # Luckily, gcc supports the same syntax we need for Sun Studio. 6704 # Supported since Solaris 2.6 (maybe 2.5.1?) 6705 case $wlarc in 6706 '') 6707 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6708 *) 6709 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 6710 esac ;; 5640 6711 esac 5641 6712 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes … … 5898 6969 # along with /bin/sed that truncates output. 5899 6970 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5900 test ! -f $lt_ac_sed && break6971 test ! -f $lt_ac_sed && continue 5901 6972 cat /dev/null > conftest.in 5902 6973 lt_ac_count=0 … … 5923 6994 done 5924 6995 done 6996 ]) 5925 6997 SED=$lt_cv_path_SED 5926 ])5927 6998 AC_MSG_RESULT([$SED]) 5928 6999 ]) 5929 5930 5931 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)5932 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page5933 dnl also defines GSTUFF_PKG_ERRORS on error5934 AC_DEFUN(PKG_CHECK_MODULES, [5935 succeeded=no5936 5937 if test -z "$PKG_CONFIG"; then5938 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)5939 fi5940 5941 if test "$PKG_CONFIG" = "no" ; then5942 echo "*** The pkg-config script could not be found. Make sure it is"5943 echo "*** in your path, or set the PKG_CONFIG environment variable"5944 echo "*** to the full path to pkg-config."5945 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."5946 else5947 PKG_CONFIG_MIN_VERSION=0.9.05948 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then5949 AC_MSG_CHECKING(for $2)5950 5951 if $PKG_CONFIG --exists "$2" ; then5952 AC_MSG_RESULT(yes)5953 succeeded=yes5954 5955 AC_MSG_CHECKING($1_CFLAGS)5956 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`5957 AC_MSG_RESULT($$1_CFLAGS)5958 5959 AC_MSG_CHECKING($1_LIBS)5960 $1_LIBS=`$PKG_CONFIG --libs "$2"`5961 AC_MSG_RESULT($$1_LIBS)5962 else5963 $1_CFLAGS=""5964 $1_LIBS=""5965 ## If we have a custom action on failure, don't print errors, but5966 ## do set a variable so people can do so.5967 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`5968 ifelse([$4], ,echo $$1_PKG_ERRORS,)5969 fi5970 5971 AC_SUBST($1_CFLAGS)5972 AC_SUBST($1_LIBS)5973 else5974 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."5975 echo "*** See http://www.freedesktop.org/software/pkgconfig"5976 fi5977 fi5978 5979 if test $succeeded = yes; then5980 ifelse([$3], , :, [$3])5981 else5982 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])5983 fi5984 ])5985 5986 5987 7000 5988 7001 # CFLAGS and library paths for XMMS … … 6002 7015 6003 7016 dnl XMMS_TEST_VERSION(AVAILABLE-VERSION, NEEDED-VERSION [, ACTION-IF-OKAY [, ACTION-IF-NOT-OKAY]]) 6004 AC_DEFUN( [XMMS_TEST_VERSION], [7017 AC_DEFUN(XMMS_TEST_VERSION, [ 6005 7018 6006 7019 # Determine which version number is greater. Prints 2 to stdout if … … 6047 7060 ]) 6048 7061 6049 AC_DEFUN( [AM_PATH_XMMS],7062 AC_DEFUN(AM_PATH_XMMS, 6050 7063 [ 6051 7064 AC_ARG_WITH(xmms-prefix,[ --with-xmms-prefix=PFX Prefix where XMMS is installed (optional)], … … 6135 7148 ]) 6136 7149 6137 # 6138 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.6139 # Generated from amversion.in; do not edit by hand.6140 7150 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 7151 # 7152 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 7153 # 6141 7154 # This program is free software; you can redistribute it and/or modify 6142 7155 # it under the terms of the GNU General Public License as published by 6143 # the Free Software Foundation; either version 2 , or (at your option)6144 # any later version.6145 6146 # This program is distributed in the hope that it will be useful, 6147 # butWITHOUT ANY WARRANTY; without even the implied warranty of6148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6149 # G NU General Public License for more details.6150 7156 # the Free Software Foundation; either version 2 of the License, or 7157 # (at your option) any later version. 7158 # 7159 # This program is distributed in the hope that it will be useful, but 7160 # WITHOUT ANY WARRANTY; without even the implied warranty of 7161 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7162 # General Public License for more details. 7163 # 6151 7164 # You should have received a copy of the GNU General Public License 6152 7165 # along with this program; if not, write to the Free Software 6153 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6154 6155 # AM_AUTOMAKE_VERSION(VERSION) 6156 # ---------------------------- 6157 # Automake X.Y traces this macro to ensure aclocal.m4 has been 6158 # generated from the m4 files accompanying Automake X.Y. 6159 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 6160 6161 # AM_SET_CURRENT_AUTOMAKE_VERSION 6162 # ------------------------------- 6163 # Call AM_AUTOMAKE_VERSION so it can be traced. 6164 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 6165 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 6166 [AM_AUTOMAKE_VERSION([1.9.4])]) 6167 6168 # AM_AUX_DIR_EXPAND 6169 6170 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 6171 6172 # This program is free software; you can redistribute it and/or modify 6173 # it under the terms of the GNU General Public License as published by 6174 # the Free Software Foundation; either version 2, or (at your option) 6175 # any later version. 6176 6177 # This program is distributed in the hope that it will be useful, 6178 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6180 # GNU General Public License for more details. 6181 6182 # You should have received a copy of the GNU General Public License 6183 # along with this program; if not, write to the Free Software 6184 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6185 # 02111-1307, USA. 6186 6187 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 6188 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 6189 # `$srcdir', `$srcdir/..', or `$srcdir/../..'. 7166 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 6190 7167 # 6191 # Of course, Automake must honor this variable whenever it calls a 6192 # tool from the auxiliary directory. The problem is that $srcdir (and 6193 # therefore $ac_aux_dir as well) can be either absolute or relative, 6194 # depending on how configure is run. This is pretty annoying, since 6195 # it makes $ac_aux_dir quite unusable in subdirectories: in the top 6196 # source directory, any form will work fine, but in subdirectories a 6197 # relative path needs to be adjusted first. 7168 # As a special exception to the GNU General Public License, if you 7169 # distribute this file as part of a program that contains a 7170 # configuration script generated by Autoconf, you may include it under 7171 # the same distribution terms that you use for the rest of that program. 7172 7173 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 7174 # ---------------------------------- 7175 AC_DEFUN([PKG_PROG_PKG_CONFIG], 7176 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 7177 m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 7178 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 7179 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7180 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 7181 fi 7182 if test -n "$PKG_CONFIG"; then 7183 _pkg_min_version=m4_ifval([$1], [$1], [0.9.0]) 7184 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 7185 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7186 AC_MSG_RESULT([yes]) 7187 else 7188 AC_MSG_RESULT([no]) 7189 PKG_CONFIG="" 7190 fi 7191 7192 fi[]dnl 7193 ])# PKG_PROG_PKG_CONFIG 7194 7195 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 6198 7196 # 6199 # $ac_aux_dir/missing 6200 # fails when called from a subdirectory if $ac_aux_dir is relative 6201 # $top_srcdir/$ac_aux_dir/missing 6202 # fails if $ac_aux_dir is absolute, 6203 # fails when called from a subdirectory in a VPATH build with 6204 # a relative $ac_aux_dir 7197 # Check to see whether a particular set of modules exists. Similar 7198 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 6205 7199 # 6206 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir6207 # are both prefixed by $srcdir. In an in-source build this is usually6208 # harmless because $srcdir is `.', but things will broke when you6209 # start a VPATH build or use an absolute $srcdir.6210 7200 # 6211 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 6212 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: 6213 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 6214 # and then we would define $MISSING as 6215 # MISSING="\${SHELL} $am_aux_dir/missing" 6216 # This will work as long as MISSING is not called from configure, because 6217 # unfortunately $(top_srcdir) has no meaning in configure. 6218 # However there are other variables, like CC, which are often used in 6219 # configure, and could therefore not use this "fixed" $ac_aux_dir. 7201 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 7202 # this or PKG_CHECK_MODULES is called, or make sure to call 7203 # PKG_CHECK_EXISTS manually 7204 # -------------------------------------------------------------- 7205 AC_DEFUN([PKG_CHECK_EXISTS], 7206 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 7207 if test -n "$PKG_CONFIG" && \ 7208 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 7209 m4_ifval([$2], [$2], [:]) 7210 m4_ifvaln([$3], [else 7211 $3])dnl 7212 fi]) 7213 7214 7215 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 7216 # --------------------------------------------- 7217 m4_define([_PKG_CONFIG], 7218 [if test -n "$PKG_CONFIG"; then 7219 PKG_CHECK_EXISTS([$3], 7220 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 7221 [pkg_failed=yes]) 7222 else 7223 pkg_failed=untried 7224 fi[]dnl 7225 ])# _PKG_CONFIG 7226 7227 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 7228 # [ACTION-IF-NOT-FOUND]) 6220 7229 # 6221 # Another solution, used here, is to always expand $ac_aux_dir to an6222 # absolute PATH. The drawback is that using absolute paths prevent a6223 # configured tree to be moved without reconfiguration.6224 6225 AC_DEFUN([AM_AUX_DIR_EXPAND], 6226 [dnl Rely on autoconf to set up CDPATH properly. 6227 AC_PREREQ([2.50])dnl 6228 # expand $ac_aux_dir to an absolute path 6229 am_aux_dir=`cd $ac_aux_dir && pwd` 6230 ]) 6231 6232 # AM_CONDITIONAL -*- Autoconf -*- 6233 6234 # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. 6235 6236 # This program is free software; you can redistribute it and/or modify 6237 # it under the terms of the GNU General Public License as published by 6238 # the Free Software Foundation; either version 2, or (at your option) 6239 # any later version. 6240 6241 # This program is distributed in the hope that it will be useful, 6242 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6244 # GNU General Public License for more details. 6245 6246 # You should have received a copy of the GNU General Public License 6247 # along with this program; if not, write to the Free Software 6248 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6249 # 02111-1307, USA. 6250 6251 # serial 6 6252 6253 # AM_CONDITIONAL(NAME, SHELL-CONDITION) 6254 # ------------------------------------- 6255 # Define a conditional. 6256 AC_DEFUN([AM_CONDITIONAL], 6257 [AC_PREREQ(2.52)dnl 6258 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 6259 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 6260 AC_SUBST([$1_TRUE]) 6261 AC_SUBST([$1_FALSE]) 6262 if $2; then 6263 $1_TRUE= 6264 $1_FALSE='#' 7230 # 7231 # Note that if there is a possibility the first call to 7232 # PKG_CHECK_MODULES might not happen, you should be sure to include an 7233 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 7234 # 7235 # 7236 # -------------------------------------------------------------- 7237 AC_DEFUN([PKG_CHECK_MODULES], 7238 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 7239 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 7240 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 7241 7242 pkg_failed=no 7243 AC_MSG_CHECKING([for $1]) 7244 7245 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 7246 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) 7247 7248 if test $pkg_failed = yes; then 7249 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 7250 # Put the nasty error message in config.log where it belongs 7251 echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD 7252 7253 ifelse([$4], , [AC_MSG_ERROR(dnl 7254 [Package requirements ($2) were not met. 7255 Consider adjusting the PKG_CONFIG_PATH environment variable if you 7256 installed software in a non-standard prefix. 7257 7258 Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables 7259 to avoid the need to call pkg-config. See the pkg-config man page for 7260 more details.])], 7261 [$4]) 7262 elif test $pkg_failed = untried; then 7263 ifelse([$4], , [AC_MSG_FAILURE(dnl 7264 [The pkg-config script could not be found or is too old. Make sure it 7265 is in your PATH or set the PKG_CONFIG environment variable to the full 7266 path to pkg-config. 7267 7268 Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables 7269 to avoid the need to call pkg-config. See the pkg-config man page for 7270 more details. 7271 7272 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])], 7273 [$4]) 6265 7274 else 6266 $1_TRUE='#' 6267 $1_FALSE= 6268 fi 6269 AC_CONFIG_COMMANDS_PRE( 6270 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 6271 AC_MSG_ERROR([[conditional "$1" was never defined. 6272 Usually this means the macro was only invoked conditionally.]]) 6273 fi])]) 6274 6275 # serial 7 -*- Autoconf -*- 6276 6277 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 6278 # Free Software Foundation, Inc. 6279 6280 # This program is free software; you can redistribute it and/or modify 6281 # it under the terms of the GNU General Public License as published by 6282 # the Free Software Foundation; either version 2, or (at your option) 6283 # any later version. 6284 6285 # This program is distributed in the hope that it will be useful, 6286 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6287 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6288 # GNU General Public License for more details. 6289 6290 # You should have received a copy of the GNU General Public License 6291 # along with this program; if not, write to the Free Software 6292 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6293 # 02111-1307, USA. 6294 6295 6296 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 6297 # written in clear, in which case automake, when reading aclocal.m4, 6298 # will think it sees a *use*, and therefore will trigger all it's 6299 # C support machinery. Also note that it means that autoscan, seeing 6300 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 6301 6302 6303 6304 # _AM_DEPENDENCIES(NAME) 6305 # ---------------------- 6306 # See how the compiler implements dependency checking. 6307 # NAME is "CC", "CXX", "GCJ", or "OBJC". 6308 # We try a few techniques and use that to set a single cache variable. 6309 # 6310 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 6311 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 6312 # dependency, and given that the user is not expected to run this macro, 6313 # just rely on AC_PROG_CC. 6314 AC_DEFUN([_AM_DEPENDENCIES], 6315 [AC_REQUIRE([AM_SET_DEPDIR])dnl 6316 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 6317 AC_REQUIRE([AM_MAKE_INCLUDE])dnl 6318 AC_REQUIRE([AM_DEP_TRACK])dnl 6319 6320 ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 6321 [$1], CXX, [depcc="$CXX" am_compiler_list=], 6322 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 6323 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 6324 [depcc="$$1" am_compiler_list=]) 6325 6326 AC_CACHE_CHECK([dependency style of $depcc], 6327 [am_cv_$1_dependencies_compiler_type], 6328 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6329 # We make a subdir and do the tests there. Otherwise we can end up 6330 # making bogus files that we don't know about and never remove. For 6331 # instance it was reported that on HP-UX the gcc test will end up 6332 # making a dummy file named `D' -- because `-MD' means `put the output 6333 # in D'. 6334 mkdir conftest.dir 6335 # Copy depcomp to subdir because otherwise we won't find it if we're 6336 # using a relative directory. 6337 cp "$am_depcomp" conftest.dir 6338 cd conftest.dir 6339 # We will build objects and dependencies in a subdirectory because 6340 # it helps to detect inapplicable dependency modes. For instance 6341 # both Tru64's cc and ICC support -MD to output dependencies as a 6342 # side effect of compilation, but ICC will put the dependencies in 6343 # the current directory while Tru64 will put them in the object 6344 # directory. 6345 mkdir sub 6346 6347 am_cv_$1_dependencies_compiler_type=none 6348 if test "$am_compiler_list" = ""; then 6349 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 6350 fi 6351 for depmode in $am_compiler_list; do 6352 # Setup a source with many dependencies, because some compilers 6353 # like to wrap large dependency lists on column 80 (with \), and 6354 # we should not choose a depcomp mode which is confused by this. 6355 # 6356 # We need to recreate these files for each test, as the compiler may 6357 # overwrite some of them when testing with obscure command lines. 6358 # This happens at least with the AIX C compiler. 6359 : > sub/conftest.c 6360 for i in 1 2 3 4 5 6; do 6361 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6362 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 6363 # Solaris 8's {/usr,}/bin/sh. 6364 touch sub/conftst$i.h 6365 done 6366 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6367 6368 case $depmode in 6369 nosideeffect) 6370 # after this tag, mechanisms are not by side-effect, so they'll 6371 # only be used when explicitly requested 6372 if test "x$enable_dependency_tracking" = xyes; then 6373 continue 6374 else 6375 break 6376 fi 6377 ;; 6378 none) break ;; 6379 esac 6380 # We check with `-c' and `-o' for the sake of the "dashmstdout" 6381 # mode. It turns out that the SunPro C++ compiler does not properly 6382 # handle `-M -o', and we need to detect this. 6383 if depmode=$depmode \ 6384 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 6385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6386 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6387 >/dev/null 2>conftest.err && 6388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6389 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 6390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6391 # icc doesn't choke on unknown options, it will just issue warnings 6392 # or remarks (even with -Werror). So we grep stderr for any message 6393 # that says an option was ignored or not supported. 6394 # When given -MP, icc 7.0 and 7.1 complain thusly: 6395 # icc: Command line warning: ignoring option '-M'; no argument required 6396 # The diagnosis changed in icc 8.0: 6397 # icc: Command line remark: option '-MP' not supported 6398 if (grep 'ignoring option' conftest.err || 6399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6400 am_cv_$1_dependencies_compiler_type=$depmode 6401 break 6402 fi 6403 fi 6404 done 6405 6406 cd .. 6407 rm -rf conftest.dir 6408 else 6409 am_cv_$1_dependencies_compiler_type=none 6410 fi 6411 ]) 6412 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 6413 AM_CONDITIONAL([am__fastdep$1], [ 6414 test "x$enable_dependency_tracking" != xno \ 6415 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 6416 ]) 6417 6418 6419 # AM_SET_DEPDIR 6420 # ------------- 6421 # Choose a directory name for dependency files. 6422 # This macro is AC_REQUIREd in _AM_DEPENDENCIES 6423 AC_DEFUN([AM_SET_DEPDIR], 6424 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl 6425 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 6426 ]) 6427 6428 6429 # AM_DEP_TRACK 6430 # ------------ 6431 AC_DEFUN([AM_DEP_TRACK], 6432 [AC_ARG_ENABLE(dependency-tracking, 6433 [ --disable-dependency-tracking speeds up one-time build 6434 --enable-dependency-tracking do not reject slow dependency extractors]) 6435 if test "x$enable_dependency_tracking" != xno; then 6436 am_depcomp="$ac_aux_dir/depcomp" 6437 AMDEPBACKSLASH='\' 6438 fi 6439 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 6440 AC_SUBST([AMDEPBACKSLASH]) 6441 ]) 6442 6443 # Generate code to set up dependency tracking. -*- Autoconf -*- 6444 6445 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 6446 # Free Software Foundation, Inc. 6447 6448 # This program is free software; you can redistribute it and/or modify 6449 # it under the terms of the GNU General Public License as published by 6450 # the Free Software Foundation; either version 2, or (at your option) 6451 # any later version. 6452 6453 # This program is distributed in the hope that it will be useful, 6454 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6455 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6456 # GNU General Public License for more details. 6457 6458 # You should have received a copy of the GNU General Public License 6459 # along with this program; if not, write to the Free Software 6460 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6461 # 02111-1307, USA. 6462 6463 #serial 2 6464 6465 # _AM_OUTPUT_DEPENDENCY_COMMANDS 6466 # ------------------------------ 6467 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 6468 [for mf in $CONFIG_FILES; do 6469 # Strip MF so we end up with the name of the file. 6470 mf=`echo "$mf" | sed -e 's/:.*$//'` 6471 # Check whether this is an Automake generated Makefile or not. 6472 # We used to match only the files named `Makefile.in', but 6473 # some people rename them; so instead we look at the file content. 6474 # Grep'ing the first line is not enough: some people post-process 6475 # each Makefile.in and add a new line on top of each file to say so. 6476 # So let's grep whole file. 6477 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 6478 dirpart=`AS_DIRNAME("$mf")` 6479 else 6480 continue 6481 fi 6482 # Extract the definition of DEPDIR, am__include, and am__quote 6483 # from the Makefile without running `make'. 6484 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6485 test -z "$DEPDIR" && continue 6486 am__include=`sed -n 's/^am__include = //p' < "$mf"` 6487 test -z "am__include" && continue 6488 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6489 # When using ansi2knr, U may be empty or an underscore; expand it 6490 U=`sed -n 's/^U = //p' < "$mf"` 6491 # Find all dependency output files, they are included files with 6492 # $(DEPDIR) in their names. We invoke sed twice because it is the 6493 # simplest approach to changing $(DEPDIR) to its actual value in the 6494 # expansion. 6495 for file in `sed -n " 6496 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6497 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6498 # Make sure the directory exists. 6499 test -f "$dirpart/$file" && continue 6500 fdir=`AS_DIRNAME(["$file"])` 6501 AS_MKDIR_P([$dirpart/$fdir]) 6502 # echo "creating $dirpart/$file" 6503 echo '# dummy' > "$dirpart/$file" 6504 done 6505 done 6506 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 6507 6508 6509 # AM_OUTPUT_DEPENDENCY_COMMANDS 6510 # ----------------------------- 6511 # This macro should only be invoked once -- use via AC_REQUIRE. 6512 # 6513 # This code is only required when automatic dependency tracking 6514 # is enabled. FIXME. This creates each `.P' file that we will 6515 # need in order to bootstrap the dependency handling code. 6516 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 6517 [AC_CONFIG_COMMANDS([depfiles], 6518 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 6519 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 6520 ]) 6521 6522 # Do all the work for Automake. -*- Autoconf -*- 6523 6524 # This macro actually does too much some checks are only needed if 6525 # your package does certain things. But this isn't really a big deal. 6526 6527 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 6528 # Free Software Foundation, Inc. 6529 6530 # This program is free software; you can redistribute it and/or modify 6531 # it under the terms of the GNU General Public License as published by 6532 # the Free Software Foundation; either version 2, or (at your option) 6533 # any later version. 6534 6535 # This program is distributed in the hope that it will be useful, 6536 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6537 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6538 # GNU General Public License for more details. 6539 6540 # You should have received a copy of the GNU General Public License 6541 # along with this program; if not, write to the Free Software 6542 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6543 # 02111-1307, USA. 6544 6545 # serial 11 6546 6547 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 6548 # AM_INIT_AUTOMAKE([OPTIONS]) 6549 # ----------------------------------------------- 6550 # The call with PACKAGE and VERSION arguments is the old style 6551 # call (pre autoconf-2.50), which is being phased out. PACKAGE 6552 # and VERSION should now be passed to AC_INIT and removed from 6553 # the call to AM_INIT_AUTOMAKE. 6554 # We support both call styles for the transition. After 6555 # the next Automake release, Autoconf can make the AC_INIT 6556 # arguments mandatory, and then we can depend on a new Autoconf 6557 # release and drop the old call support. 6558 AC_DEFUN([AM_INIT_AUTOMAKE], 6559 [AC_PREREQ([2.58])dnl 6560 dnl Autoconf wants to disallow AM_ names. We explicitly allow 6561 dnl the ones we care about. 6562 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 6563 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 6564 AC_REQUIRE([AC_PROG_INSTALL])dnl 6565 # test to see if srcdir already configured 6566 if test "`cd $srcdir && pwd`" != "`pwd`" && 6567 test -f $srcdir/config.status; then 6568 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 6569 fi 6570 6571 # test whether we have cygpath 6572 if test -z "$CYGPATH_W"; then 6573 if (cygpath --version) >/dev/null 2>/dev/null; then 6574 CYGPATH_W='cygpath -w' 6575 else 6576 CYGPATH_W=echo 6577 fi 6578 fi 6579 AC_SUBST([CYGPATH_W]) 6580 6581 # Define the identity of the package. 6582 dnl Distinguish between old-style and new-style calls. 6583 m4_ifval([$2], 6584 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 6585 AC_SUBST([PACKAGE], [$1])dnl 6586 AC_SUBST([VERSION], [$2])], 6587 [_AM_SET_OPTIONS([$1])dnl 6588 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 6589 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 6590 6591 _AM_IF_OPTION([no-define],, 6592 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 6593 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 6594 6595 # Some tools Automake needs. 6596 AC_REQUIRE([AM_SANITY_CHECK])dnl 6597 AC_REQUIRE([AC_ARG_PROGRAM])dnl 6598 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 6599 AM_MISSING_PROG(AUTOCONF, autoconf) 6600 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 6601 AM_MISSING_PROG(AUTOHEADER, autoheader) 6602 AM_MISSING_PROG(MAKEINFO, makeinfo) 6603 AM_PROG_INSTALL_SH 6604 AM_PROG_INSTALL_STRIP 6605 AC_REQUIRE([AM_PROG_MKDIR_P])dnl 6606 # We need awk for the "check" target. The system "awk" is bad on 6607 # some platforms. 6608 AC_REQUIRE([AC_PROG_AWK])dnl 6609 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 6610 AC_REQUIRE([AM_SET_LEADING_DOT])dnl 6611 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 6612 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 6613 [_AM_PROG_TAR([v7])])]) 6614 _AM_IF_OPTION([no-dependencies],, 6615 [AC_PROVIDE_IFELSE([AC_PROG_CC], 6616 [_AM_DEPENDENCIES(CC)], 6617 [define([AC_PROG_CC], 6618 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 6619 AC_PROVIDE_IFELSE([AC_PROG_CXX], 6620 [_AM_DEPENDENCIES(CXX)], 6621 [define([AC_PROG_CXX], 6622 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 6623 ]) 6624 ]) 6625 6626 6627 # When config.status generates a header, we must update the stamp-h file. 6628 # This file resides in the same directory as the config header 6629 # that is generated. The stamp files are numbered to have different names. 6630 6631 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 6632 # loop where config.status creates the headers, so we can generate 6633 # our stamp files there. 6634 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 6635 [# Compute $1's index in $config_headers. 6636 _am_stamp_count=1 6637 for _am_header in $config_headers :; do 6638 case $_am_header in 6639 $1 | $1:* ) 6640 break ;; 6641 * ) 6642 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6643 esac 6644 done 6645 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 6646 6647 # AM_PROG_INSTALL_SH 6648 # ------------------ 6649 # Define $install_sh. 6650 6651 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 6652 6653 # This program is free software; you can redistribute it and/or modify 6654 # it under the terms of the GNU General Public License as published by 6655 # the Free Software Foundation; either version 2, or (at your option) 6656 # any later version. 6657 6658 # This program is distributed in the hope that it will be useful, 6659 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6661 # GNU General Public License for more details. 6662 6663 # You should have received a copy of the GNU General Public License 6664 # along with this program; if not, write to the Free Software 6665 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6666 # 02111-1307, USA. 6667 6668 AC_DEFUN([AM_PROG_INSTALL_SH], 6669 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6670 install_sh=${install_sh-"$am_aux_dir/install-sh"} 6671 AC_SUBST(install_sh)]) 6672 6673 # -*- Autoconf -*- 6674 # Copyright (C) 2003 Free Software Foundation, Inc. 6675 6676 # This program is free software; you can redistribute it and/or modify 6677 # it under the terms of the GNU General Public License as published by 6678 # the Free Software Foundation; either version 2, or (at your option) 6679 # any later version. 6680 6681 # This program is distributed in the hope that it will be useful, 6682 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6683 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6684 # GNU General Public License for more details. 6685 6686 # You should have received a copy of the GNU General Public License 6687 # along with this program; if not, write to the Free Software 6688 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6689 # 02111-1307, USA. 6690 6691 # serial 1 6692 6693 # Check whether the underlying file-system supports filenames 6694 # with a leading dot. For instance MS-DOS doesn't. 6695 AC_DEFUN([AM_SET_LEADING_DOT], 6696 [rm -rf .tst 2>/dev/null 6697 mkdir .tst 2>/dev/null 6698 if test -d .tst; then 6699 am__leading_dot=. 6700 else 6701 am__leading_dot=_ 6702 fi 6703 rmdir .tst 2>/dev/null 6704 AC_SUBST([am__leading_dot])]) 6705 6706 # Check to see how 'make' treats includes. -*- Autoconf -*- 6707 6708 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 6709 6710 # This program is free software; you can redistribute it and/or modify 6711 # it under the terms of the GNU General Public License as published by 6712 # the Free Software Foundation; either version 2, or (at your option) 6713 # any later version. 6714 6715 # This program is distributed in the hope that it will be useful, 6716 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6718 # GNU General Public License for more details. 6719 6720 # You should have received a copy of the GNU General Public License 6721 # along with this program; if not, write to the Free Software 6722 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6723 # 02111-1307, USA. 6724 6725 # serial 2 6726 6727 # AM_MAKE_INCLUDE() 6728 # ----------------- 6729 # Check to see how make treats includes. 6730 AC_DEFUN([AM_MAKE_INCLUDE], 6731 [am_make=${MAKE-make} 6732 cat > confinc << 'END' 6733 am__doit: 6734 @echo done 6735 .PHONY: am__doit 6736 END 6737 # If we don't find an include directive, just comment out the code. 6738 AC_MSG_CHECKING([for style of include used by $am_make]) 6739 am__include="#" 6740 am__quote= 6741 _am_result=none 6742 # First try GNU make style include. 6743 echo "include confinc" > confmf 6744 # We grep out `Entering directory' and `Leaving directory' 6745 # messages which can occur if `w' ends up in MAKEFLAGS. 6746 # In particular we don't look at `^make:' because GNU make might 6747 # be invoked under some other name (usually "gmake"), in which 6748 # case it prints its new name instead of `make'. 6749 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 6750 am__include=include 6751 am__quote= 6752 _am_result=GNU 6753 fi 6754 # Now try BSD make style include. 6755 if test "$am__include" = "#"; then 6756 echo '.include "confinc"' > confmf 6757 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 6758 am__include=.include 6759 am__quote="\"" 6760 _am_result=BSD 6761 fi 6762 fi 6763 AC_SUBST([am__include]) 6764 AC_SUBST([am__quote]) 6765 AC_MSG_RESULT([$_am_result]) 6766 rm -f confinc confmf 6767 ]) 6768 6769 # -*- Autoconf -*- 6770 6771 6772 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. 6773 6774 # This program is free software; you can redistribute it and/or modify 6775 # it under the terms of the GNU General Public License as published by 6776 # the Free Software Foundation; either version 2, or (at your option) 6777 # any later version. 6778 6779 # This program is distributed in the hope that it will be useful, 6780 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6781 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6782 # GNU General Public License for more details. 6783 6784 # You should have received a copy of the GNU General Public License 6785 # along with this program; if not, write to the Free Software 6786 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6787 # 02111-1307, USA. 6788 6789 # serial 3 6790 6791 # AM_MISSING_PROG(NAME, PROGRAM) 6792 # ------------------------------ 6793 AC_DEFUN([AM_MISSING_PROG], 6794 [AC_REQUIRE([AM_MISSING_HAS_RUN]) 6795 $1=${$1-"${am_missing_run}$2"} 6796 AC_SUBST($1)]) 6797 6798 6799 # AM_MISSING_HAS_RUN 6800 # ------------------ 6801 # Define MISSING if not defined so far and test if it supports --run. 6802 # If it does, set am_missing_run to use it, otherwise, to nothing. 6803 AC_DEFUN([AM_MISSING_HAS_RUN], 6804 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6805 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 6806 # Use eval to expand $SHELL 6807 if eval "$MISSING --run true"; then 6808 am_missing_run="$MISSING --run " 6809 else 6810 am_missing_run= 6811 AC_MSG_WARN([`missing' script is too old or missing]) 6812 fi 6813 ]) 6814 6815 # AM_PROG_MKDIR_P 6816 # --------------- 6817 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 6818 6819 # Copyright (C) 2003, 2004 Free Software Foundation, Inc. 6820 6821 # This program is free software; you can redistribute it and/or modify 6822 # it under the terms of the GNU General Public License as published by 6823 # the Free Software Foundation; either version 2, or (at your option) 6824 # any later version. 6825 6826 # This program is distributed in the hope that it will be useful, 6827 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6828 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6829 # GNU General Public License for more details. 6830 6831 # You should have received a copy of the GNU General Public License 6832 # along with this program; if not, write to the Free Software 6833 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6834 # 02111-1307, USA. 6835 6836 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 6837 # created by `make install' are always world readable, even if the 6838 # installer happens to have an overly restrictive umask (e.g. 077). 6839 # This was a mistake. There are at least two reasons why we must not 6840 # use `-m 0755': 6841 # - it causes special bits like SGID to be ignored, 6842 # - it may be too restrictive (some setups expect 775 directories). 6843 # 6844 # Do not use -m 0755 and let people choose whatever they expect by 6845 # setting umask. 6846 # 6847 # We cannot accept any implementation of `mkdir' that recognizes `-p'. 6848 # Some implementations (such as Solaris 8's) are not thread-safe: if a 6849 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 6850 # concurrently, both version can detect that a/ is missing, but only 6851 # one can create it and the other will error out. Consequently we 6852 # restrict ourselves to GNU make (using the --version option ensures 6853 # this.) 6854 AC_DEFUN([AM_PROG_MKDIR_P], 6855 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 6856 # We used to keeping the `.' as first argument, in order to 6857 # allow $(mkdir_p) to be used without argument. As in 6858 # $(mkdir_p) $(somedir) 6859 # where $(somedir) is conditionally defined. However this is wrong 6860 # for two reasons: 6861 # 1. if the package is installed by a user who cannot write `.' 6862 # make install will fail, 6863 # 2. the above comment should most certainly read 6864 # $(mkdir_p) $(DESTDIR)$(somedir) 6865 # so it does not work when $(somedir) is undefined and 6866 # $(DESTDIR) is not. 6867 # To support the latter case, we have to write 6868 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 6869 # so the `.' trick is pointless. 6870 mkdir_p='mkdir -p --' 6871 else 6872 # On NextStep and OpenStep, the `mkdir' command does not 6873 # recognize any option. It will interpret all options as 6874 # directories to create, and then abort because `.' already 6875 # exists. 6876 for d in ./-p ./--version; 6877 do 6878 test -d $d && rmdir $d 6879 done 6880 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 6881 if test -f "$ac_aux_dir/mkinstalldirs"; then 6882 mkdir_p='$(mkinstalldirs)' 6883 else 6884 mkdir_p='$(install_sh) -d' 6885 fi 6886 fi 6887 AC_SUBST([mkdir_p])]) 6888 6889 # Helper functions for option handling. -*- Autoconf -*- 6890 6891 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. 6892 6893 # This program is free software; you can redistribute it and/or modify 6894 # it under the terms of the GNU General Public License as published by 6895 # 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 of 6900 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6901 # GNU General Public License for more details. 6902 6903 # You should have received a copy of the GNU General Public License 6904 # along with this program; if not, write to the Free Software 6905 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6906 # 02111-1307, USA. 6907 6908 # serial 2 6909 6910 # _AM_MANGLE_OPTION(NAME) 6911 # ----------------------- 6912 AC_DEFUN([_AM_MANGLE_OPTION], 6913 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 6914 6915 # _AM_SET_OPTION(NAME) 6916 # ------------------------------ 6917 # Set option NAME. Presently that only means defining a flag for this option. 6918 AC_DEFUN([_AM_SET_OPTION], 6919 [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 6920 6921 # _AM_SET_OPTIONS(OPTIONS) 6922 # ---------------------------------- 6923 # OPTIONS is a space-separated list of Automake options. 6924 AC_DEFUN([_AM_SET_OPTIONS], 6925 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 6926 6927 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 6928 # ------------------------------------------- 6929 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 6930 AC_DEFUN([_AM_IF_OPTION], 6931 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 6932 6933 # 6934 # Check to make sure that the build environment is sane. 6935 # 6936 6937 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc. 6938 6939 # This program is free software; you can redistribute it and/or modify 6940 # it under the terms of the GNU General Public License as published by 6941 # the Free Software Foundation; either version 2, or (at your option) 6942 # any later version. 6943 6944 # This program is distributed in the hope that it will be useful, 6945 # but WITHOUT ANY WARRANTY; without even the implied warranty of 6946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 6947 # GNU General Public License for more details. 6948 6949 # You should have received a copy of the GNU General Public License 6950 # along with this program; if not, write to the Free Software 6951 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 6952 # 02111-1307, USA. 6953 6954 # serial 3 6955 6956 # AM_SANITY_CHECK 6957 # --------------- 6958 AC_DEFUN([AM_SANITY_CHECK], 6959 [AC_MSG_CHECKING([whether build environment is sane]) 6960 # Just in case 6961 sleep 1 6962 echo timestamp > conftest.file 6963 # Do `set' in a subshell so we don't clobber the current shell's 6964 # arguments. Must try -L first in case configure is actually a 6965 # symlink; some systems play weird games with the mod time of symlinks 6966 # (eg FreeBSD returns the mod time of the symlink's containing 6967 # directory). 6968 if ( 6969 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 6970 if test "$[*]" = "X"; then 6971 # -L didn't work. 6972 set X `ls -t $srcdir/configure conftest.file` 6973 fi 6974 rm -f conftest.file 6975 if test "$[*]" != "X $srcdir/configure conftest.file" \ 6976 && test "$[*]" != "X conftest.file $srcdir/configure"; then 6977 6978 # If neither matched, then we have a broken ls. This can happen 6979 # if, for instance, CONFIG_SHELL is bash and it inherits a 6980 # broken ls alias from the environment. This has actually 6981 # happened. Such a system could not be considered "sane". 6982 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 6983 alias in your environment]) 6984 fi 6985 6986 test "$[2]" = conftest.file 6987 ) 6988 then 6989 # Ok. 6990 : 6991 else 6992 AC_MSG_ERROR([newly created file is older than distributed files! 6993 Check your system clock]) 6994 fi 6995 AC_MSG_RESULT(yes)]) 6996 6997 # AM_PROG_INSTALL_STRIP 6998 6999 # Copyright (C) 2001, 2003 Free Software Foundation, Inc. 7000 7001 # This program is free software; you can redistribute it and/or modify 7002 # it under the terms of the GNU General Public License as published by 7003 # the Free Software Foundation; either version 2, or (at your option) 7004 # any later version. 7005 7006 # This program is distributed in the hope that it will be useful, 7007 # but WITHOUT ANY WARRANTY; without even the implied warranty of 7008 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 7009 # GNU General Public License for more details. 7010 7011 # You should have received a copy of the GNU General Public License 7012 # along with this program; if not, write to the Free Software 7013 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 7014 # 02111-1307, USA. 7015 7016 # One issue with vendor `install' (even GNU) is that you can't 7017 # specify the program used to strip binaries. This is especially 7018 # annoying in cross-compiling environments, where the build's strip 7019 # is unlikely to handle the host's binaries. 7020 # Fortunately install-sh will honor a STRIPPROG variable, so we 7021 # always use install-sh in `make install-strip', and initialize 7022 # STRIPPROG with the value of the STRIP variable (set by the user). 7023 AC_DEFUN([AM_PROG_INSTALL_STRIP], 7024 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 7025 # Installed binaries are usually stripped using `strip' when the user 7026 # run `make install-strip'. However `strip' might not be the right 7027 # tool to use in cross-compilation environments, therefore Automake 7028 # will honor the `STRIP' environment variable to overrule this program. 7029 dnl Don't test for $cross_compiling = yes, because it might be `maybe'. 7030 if test "$cross_compiling" != no; then 7031 AC_CHECK_TOOL([STRIP], [strip], :) 7032 fi 7033 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 7034 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 7035 7036 # Check how to create a tarball. -*- Autoconf -*- 7037 7038 # Copyright (C) 2004 Free Software Foundation, Inc. 7039 7040 # This program is free software; you can redistribute it and/or modify 7041 # it under the terms of the GNU General Public License as published by 7042 # the Free Software Foundation; either version 2, or (at your option) 7043 # any later version. 7044 7045 # This program is distributed in the hope that it will be useful, 7046 # but WITHOUT ANY WARRANTY; without even the implied warranty of 7047 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 7048 # GNU General Public License for more details. 7049 7050 # You should have received a copy of the GNU General Public License 7051 # along with this program; if not, write to the Free Software 7052 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 7053 # 02111-1307, USA. 7054 7055 # serial 1 7056 7057 7058 # _AM_PROG_TAR(FORMAT) 7059 # -------------------- 7060 # Check how to create a tarball in format FORMAT. 7061 # FORMAT should be one of `v7', `ustar', or `pax'. 7062 # 7063 # Substitute a variable $(am__tar) that is a command 7064 # writing to stdout a FORMAT-tarball containing the directory 7065 # $tardir. 7066 # tardir=directory && $(am__tar) > result.tar 7067 # 7068 # Substitute a variable $(am__untar) that extract such 7069 # a tarball read from stdin. 7070 # $(am__untar) < result.tar 7071 AC_DEFUN([_AM_PROG_TAR], 7072 [# Always define AMTAR for backward compatibility. 7073 AM_MISSING_PROG([AMTAR], [tar]) 7074 m4_if([$1], [v7], 7075 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 7076 [m4_case([$1], [ustar],, [pax],, 7077 [m4_fatal([Unknown tar format])]) 7078 AC_MSG_CHECKING([how to create a $1 tar archive]) 7079 # Loop over all known methods to create a tar archive until one works. 7080 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 7081 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 7082 # Do not fold the above two line into one, because Tru64 sh and 7083 # Solaris sh will not grok spaces in the rhs of `-'. 7084 for _am_tool in $_am_tools 7085 do 7086 case $_am_tool in 7087 gnutar) 7088 for _am_tar in tar gnutar gtar; 7089 do 7090 AM_RUN_LOG([$_am_tar --version]) && break 7091 done 7092 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 7093 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 7094 am__untar="$_am_tar -xf -" 7095 ;; 7096 plaintar) 7097 # Must skip GNU tar: if it does not support --format= it doesn't create 7098 # ustar tarball either. 7099 (tar --version) >/dev/null 2>&1 && continue 7100 am__tar='tar chf - "$$tardir"' 7101 am__tar_='tar chf - "$tardir"' 7102 am__untar='tar xf -' 7103 ;; 7104 pax) 7105 am__tar='pax -L -x $1 -w "$$tardir"' 7106 am__tar_='pax -L -x $1 -w "$tardir"' 7107 am__untar='pax -r' 7108 ;; 7109 cpio) 7110 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 7111 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 7112 am__untar='cpio -i -H $1 -d' 7113 ;; 7114 none) 7115 am__tar=false 7116 am__tar_=false 7117 am__untar=false 7118 ;; 7119 esac 7120 7121 # If the value was cached, stop now. We just wanted to have am__tar 7122 # and am__untar set. 7123 test -n "${am_cv_prog_tar_$1}" && break 7124 7125 # tar/untar a dummy directory, and stop if the command works 7126 rm -rf conftest.dir 7127 mkdir conftest.dir 7128 echo GrepMe > conftest.dir/file 7129 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 7130 rm -rf conftest.dir 7131 if test -s conftest.tar; then 7132 AM_RUN_LOG([$am__untar <conftest.tar]) 7133 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 7134 fi 7135 done 7136 rm -rf conftest.dir 7137 7138 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 7139 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 7140 AC_SUBST([am__tar]) 7141 AC_SUBST([am__untar]) 7142 ]) # _AM_PROG_TAR 7143 7275 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 7276 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 7277 AC_MSG_RESULT([yes]) 7278 ifelse([$3], , :, [$3]) 7279 fi[]dnl 7280 ])# PKG_CHECK_MODULES 7281
Note: See TracChangeset
for help on using the changeset viewer.