Changeset 618 for trunk/src/binutils/libtool.m4
- Timestamp:
- Aug 16, 2003, 11:33:53 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/libtool.m4
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r617 r618 23 23 ## the same distribution terms that you use for the rest of that program. 24 24 25 # serial 45 AC_PROG_LIBTOOL 26 AC_DEFUN(AC_PROG_LIBTOOL,[AC_REQUIRE([_AC_PROG_LIBTOOL]) 25 # serial 46 AC_PROG_LIBTOOL 26 AC_DEFUN([AC_PROG_LIBTOOL], 27 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 27 28 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 28 29 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. … … 51 52 ])])])])])]) 52 53 53 AC_DEFUN( _AC_PROG_LIBTOOL,54 AC_DEFUN([_AC_PROG_LIBTOOL], 54 55 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 55 56 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl … … 85 86 ]) 86 87 87 AC_DEFUN( AC_LIBTOOL_SETUP,88 AC_DEFUN([AC_LIBTOOL_SETUP], 88 89 [AC_PREREQ(2.13)dnl 89 90 AC_REQUIRE([AC_ENABLE_SHARED])dnl … … 104 105 105 106 # Only perform the check for file, if the check method requires it 106 case "$deplibs_check_method"in107 case $deplibs_check_method in 107 108 file_magic*) 108 109 if test "$file_magic_cmd" = '$MAGIC_CMD'; then … … 120 121 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 121 122 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 122 test "$ ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"123 test "$ ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"123 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" 124 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 124 125 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], 125 126 [libtool_flags="$libtool_flags --enable-dlopen"]) … … 139 140 # Some flags need to be propagated to the compiler or linker for good 140 141 # libtool support. 141 case "$host"in142 case $host in 142 143 *-*-irix6*) 143 144 # Find out which ABI we are using. 144 145 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 145 146 if AC_TRY_EVAL(ac_compile); then 146 case "`/usr/bin/file conftest.o`" in 147 if test "$lt_cv_prog_gnu_ld" = yes; then 148 case `/usr/bin/file conftest.$ac_objext` in 149 *32-bit*) 150 LD="${LD-ld} -melf32bsmip" 151 ;; 152 *N32*) 153 LD="${LD-ld} -melf32bmipn32" 154 ;; 155 *64-bit*) 156 LD="${LD-ld} -melf64bmip" 157 ;; 158 esac 159 else 160 case `/usr/bin/file conftest.$ac_objext` in 147 161 *32-bit*) 148 162 LD="${LD-ld} -32" … … 153 167 *64-bit*) 154 168 LD="${LD-ld} -64" 169 ;; 170 esac 171 fi 172 fi 173 rm -rf conftest* 174 ;; 175 176 ia64-*-hpux*) 177 # Find out which ABI we are using. 178 echo 'int i;' > conftest.$ac_ext 179 if AC_TRY_EVAL(ac_compile); then 180 case "`/usr/bin/file conftest.o`" in 181 *ELF-32*) 182 HPUX_IA64_MODE="32" 183 ;; 184 *ELF-64*) 185 HPUX_IA64_MODE="64" 155 186 ;; 156 187 esac … … 188 219 [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) 189 220 190 case "$host/$CC"in221 case $host/$CC in 191 222 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) 192 223 # old mingw systems require "-dll" to link a DLL, while more recent ones … … 208 239 209 240 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support 210 AC_DEFUN( AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])241 AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) 211 242 212 243 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's 213 AC_DEFUN( AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])244 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) 214 245 215 246 # AC_ENABLE_SHARED - implement the --enable-shared flag … … 217 248 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 218 249 # `yes'. 219 AC_DEFUN( AC_ENABLE_SHARED, [dnl220 define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl250 AC_DEFUN([AC_ENABLE_SHARED], 251 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 221 252 AC_ARG_ENABLE(shared, 222 253 changequote(<<, >>)dnl … … 224 255 changequote([, ])dnl 225 256 [p=${PACKAGE-default} 226 case "$enableval"in257 case $enableval in 227 258 yes) enable_shared=yes ;; 228 259 no) enable_shared=no ;; … … 243 274 244 275 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared 245 AC_DEFUN( AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl276 AC_DEFUN([AC_DISABLE_SHARED], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 246 277 AC_ENABLE_SHARED(no)]) 247 278 … … 250 281 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 251 282 # `yes'. 252 AC_DEFUN( AC_ENABLE_STATIC, [dnl253 define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl283 AC_DEFUN([AC_ENABLE_STATIC], 284 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 254 285 AC_ARG_ENABLE(static, 255 286 changequote(<<, >>)dnl … … 257 288 changequote([, ])dnl 258 289 [p=${PACKAGE-default} 259 case "$enableval"in290 case $enableval in 260 291 yes) enable_static=yes ;; 261 292 no) enable_static=no ;; … … 276 307 277 308 # AC_DISABLE_STATIC - set the default static flag to --disable-static 278 AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 309 AC_DEFUN([AC_DISABLE_STATIC], 310 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 279 311 AC_ENABLE_STATIC(no)]) 280 312 … … 284 316 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 285 317 # `yes'. 286 AC_DEFUN( AC_ENABLE_FAST_INSTALL, [dnl287 define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl318 AC_DEFUN([AC_ENABLE_FAST_INSTALL], 319 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 288 320 AC_ARG_ENABLE(fast-install, 289 321 changequote(<<, >>)dnl … … 291 323 changequote([, ])dnl 292 324 [p=${PACKAGE-default} 293 case "$enableval"in325 case $enableval in 294 326 yes) enable_fast_install=yes ;; 295 327 no) enable_fast_install=no ;; … … 310 342 311 343 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install 312 AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 344 AC_DEFUN([AC_DISABLE_FAST_INSTALL], 345 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 313 346 AC_ENABLE_FAST_INSTALL(no)]) 314 347 … … 317 350 # Where MODE is either `yes' or `no'. If omitted, it defaults to 318 351 # `both'. 319 AC_DEFUN(AC_LIBTOOL_PICMODE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 352 AC_DEFUN([AC_LIBTOOL_PICMODE], 353 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 320 354 pic_mode=ifelse($#,1,$1,default)]) 321 355 322 356 323 357 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library 324 AC_DEFUN( AC_PATH_TOOL_PREFIX,358 AC_DEFUN([AC_PATH_TOOL_PREFIX], 325 359 [AC_MSG_CHECKING([for $1]) 326 360 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 327 [case "$MAGIC_CMD"in361 [case $MAGIC_CMD in 328 362 /*) 329 363 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. … … 344 378 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 345 379 if test -n "$file_magic_test_file"; then 346 case "$deplibs_check_method"in380 case $deplibs_check_method in 347 381 "file_magic "*) 348 382 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" … … 384 418 385 419 # AC_PATH_MAGIC - find a file program which can recognise a shared library 386 AC_DEFUN( AC_PATH_MAGIC,420 AC_DEFUN([AC_PATH_MAGIC], 387 421 [AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl 388 422 AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) … … 398 432 399 433 # AC_PROG_LD - find the path to the GNU or non-GNU linker 400 AC_DEFUN( AC_PROG_LD,434 AC_DEFUN([AC_PROG_LD], 401 435 [AC_ARG_WITH(gnu-ld, 402 436 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], … … 406 440 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 407 441 ac_prog=ld 408 if test "$ ac_cv_prog_gcc" = yes; then442 if test "$GCC" = yes; then 409 443 # Check if gcc -print-prog-name=ld gives a path. 410 444 AC_MSG_CHECKING([for ld used by GCC]) … … 416 450 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 417 451 esac 418 case "$ac_prog"in452 case $ac_prog in 419 453 # Accept absolute paths. 420 changequote(,)dnl 421 [\\/]* | [A-Za-z]:[\\/]*) 422 re_direlt='/[^/][^/]*/\.\./' 423 changequote([,])dnl 454 [[\\/]* | [A-Za-z]:[\\/]*)] 455 re_direlt=['/[^/][^/]*/\.\./'] 424 456 # Canonicalize the path of ld 425 457 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` … … 443 475 AC_MSG_CHECKING([for non-GNU ld]) 444 476 fi 445 AC_CACHE_VAL( ac_cv_path_LD,477 AC_CACHE_VAL(lt_cv_path_LD, 446 478 [if test -z "$LD"; then 447 479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" … … 449 481 test -z "$ac_dir" && ac_dir=. 450 482 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 451 ac_cv_path_LD="$ac_dir/$ac_prog"483 lt_cv_path_LD="$ac_dir/$ac_prog" 452 484 # Check to see if the program is GNU ld. I'd rather use --version, 453 485 # but apparently some GNU ld's only accept -v. 454 486 # Break only if it was the GNU/non-GNU ld that we prefer. 455 if "$ ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then487 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 456 488 test "$with_gnu_ld" != no && break 457 489 else … … 462 494 IFS="$ac_save_ifs" 463 495 else 464 ac_cv_path_LD="$LD" # Let the user override the test with a path.496 lt_cv_path_LD="$LD" # Let the user override the test with a path. 465 497 fi]) 466 LD="$ ac_cv_path_LD"498 LD="$lt_cv_path_LD" 467 499 if test -n "$LD"; then 468 500 AC_MSG_RESULT($LD) … … 474 506 ]) 475 507 476 AC_DEFUN( AC_PROG_LD_GNU,477 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,508 AC_DEFUN([AC_PROG_LD_GNU], 509 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 478 510 [# I'd rather use --version here, but apparently some GNU ld's only accept -v. 479 511 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 480 ac_cv_prog_gnu_ld=yes512 lt_cv_prog_gnu_ld=yes 481 513 else 482 ac_cv_prog_gnu_ld=no514 lt_cv_prog_gnu_ld=no 483 515 fi]) 484 with_gnu_ld=$ ac_cv_prog_gnu_ld516 with_gnu_ld=$lt_cv_prog_gnu_ld 485 517 ]) 486 518 487 519 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker 488 520 # -- PORTME Some linkers may need a different reload flag. 489 AC_DEFUN( AC_PROG_LD_RELOAD_FLAG,521 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 490 522 [AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, 491 523 [lt_cv_ld_reload_flag='-r']) … … 496 528 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies 497 529 # -- PORTME fill in with the dynamic library characteristics 498 AC_DEFUN( AC_DEPLIBS_CHECK_METHOD,530 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 499 531 [AC_CACHE_CHECK([how to recognise dependant libraries], 500 532 lt_cv_deplibs_check_method, … … 513 545 # whether `pass_all' will *always* work, you probably want this one. 514 546 515 case "$host_os"in516 aix 4*)547 case $host_os in 548 aix*) 517 549 lt_cv_deplibs_check_method=pass_all 518 550 ;; … … 523 555 524 556 bsdi4*) 525 changequote(,)dnl 526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 527 changequote([, ])dnl 557 lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'] 528 558 lt_cv_file_magic_cmd='/usr/bin/file -L' 529 559 lt_cv_file_magic_test_file=/shlib/libc.so … … 535 565 ;; 536 566 567 darwin* | rhapsody*) 568 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 569 lt_cv_file_magic_cmd='/usr/bin/file -L' 570 case "$host_os" in 571 rhapsody* | darwin1.[012]) 572 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' 573 ;; 574 *) # Darwin 1.3 on 575 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 576 ;; 577 esac 578 ;; 579 537 580 freebsd* ) 538 581 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 539 case "$host_cpu"in582 case $host_cpu in 540 583 i*86 ) 541 584 # Not sure whether the presence of OpenBSD here was a mistake. 542 585 # Let's accept both of them until this is cleared up. 543 changequote(,)dnl 544 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 545 changequote([, ])dnl 586 lt_cv_deplibs_check_method=['file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'] 546 587 lt_cv_file_magic_cmd=/usr/bin/file 547 588 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` … … 557 598 ;; 558 599 559 hpux10.20*) 560 # TODO: Does this work for hpux-11 too? 561 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 562 lt_cv_file_magic_cmd=/usr/bin/file 563 lt_cv_file_magic_test_file=/usr/lib/libc.sl 600 hpux10.20*|hpux11*) 601 case $host_cpu in 602 hppa*) 603 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'] 604 lt_cv_file_magic_cmd=/usr/bin/file 605 lt_cv_file_magic_test_file=/usr/lib/libc.sl 606 ;; 607 ia64*) 608 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'] 609 lt_cv_file_magic_cmd=/usr/bin/file 610 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 611 ;; 612 esac 564 613 ;; 565 614 566 615 irix5* | irix6*) 567 case "$host_os"in616 case $host_os in 568 617 irix5*) 569 618 # this will be overridden with pass_all, but let us keep it just in case … … 571 620 ;; 572 621 *) 573 case "$LD"in622 case $LD in 574 623 *-32|*"-32 ") libmagic=32-bit;; 575 624 *-n32|*"-n32 ") libmagic=N32;; … … 578 627 esac 579 628 # this will be overridden with pass_all, but let us keep it just in case 580 changequote(,)dnl 581 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 582 changequote([, ])dnl 629 lt_cv_deplibs_check_method=["file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"] 583 630 ;; 584 631 esac … … 589 636 # This must be Linux ELF. 590 637 linux-gnu*) 591 case "$host_cpu"in592 alpha* | i*86 | powerpc* | sparc* | ia64* )638 case $host_cpu in 639 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 593 640 lt_cv_deplibs_check_method=pass_all ;; 594 641 *) 595 642 # glibc up to 2.1.1 does not perform some relocations on ARM 596 changequote(,)dnl 597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 598 changequote([, ])dnl 643 lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'] ;; 599 644 esac 600 645 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` … … 602 647 603 648 netbsd*) 604 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then : 649 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 650 [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'] 605 651 else 606 changequote(,)dnl 607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 608 changequote([, ])dnl 609 lt_cv_file_magic_cmd='/usr/bin/file -L' 610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 652 [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'] 611 653 fi 612 654 ;; … … 614 656 os2*) 615 657 lt_cv_deplibs_check_method=pass_all 658 ;; 659 660 newsos6) 661 [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'] 662 lt_cv_file_magic_cmd=/usr/bin/file 663 lt_cv_file_magic_test_file=/usr/lib/libnls.so 616 664 ;; 617 665 … … 632 680 ;; 633 681 682 [sysv5uw[78]* | sysv4*uw2*)] 683 lt_cv_deplibs_check_method=pass_all 684 ;; 685 634 686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 635 case "$host_vendor"in687 case $host_vendor in 636 688 ncr) 637 689 lt_cv_deplibs_check_method=pass_all 638 690 ;; 639 691 motorola) 640 changequote(,)dnl 641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 642 changequote([, ])dnl 692 lt_cv_deplibs_check_method=['file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'] 643 693 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 644 694 ;; … … 653 703 654 704 # AC_PROG_NM - find the path to a BSD-compatible name lister 655 AC_DEFUN( AC_PROG_NM,705 AC_DEFUN([AC_PROG_NM], 656 706 [AC_MSG_CHECKING([for BSD-compatible nm]) 657 AC_CACHE_VAL( ac_cv_path_NM,707 AC_CACHE_VAL(lt_cv_path_NM, 658 708 [if test -n "$NM"; then 659 709 # Let the user override the test. 660 ac_cv_path_NM="$NM"710 lt_cv_path_NM="$NM" 661 711 else 662 712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" … … 670 720 # Tru64's nm complains that /dev/null is an invalid object file 671 721 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 672 ac_cv_path_NM="$tmp_nm -B"722 lt_cv_path_NM="$tmp_nm -B" 673 723 break 674 724 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 675 ac_cv_path_NM="$tmp_nm -p"725 lt_cv_path_NM="$tmp_nm -p" 676 726 break 677 727 else 678 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but728 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 679 729 continue # so that we can try to find one that supports BSD flags 680 730 fi … … 682 732 done 683 733 IFS="$ac_save_ifs" 684 test -z "$ ac_cv_path_NM" && ac_cv_path_NM=nm734 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 685 735 fi]) 686 NM="$ ac_cv_path_NM"736 NM="$lt_cv_path_NM" 687 737 AC_MSG_RESULT([$NM]) 688 738 ]) 689 739 690 740 # AC_CHECK_LIBM - check for math library 691 AC_DEFUN( AC_CHECK_LIBM,741 AC_DEFUN([AC_CHECK_LIBM], 692 742 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 693 743 LIBM= 694 case "$host"in744 case $host in 695 745 *-*-beos* | *-*-cygwin* | *-*-pw32*) 696 746 # These system don't have libm … … 716 766 # flat and you're not using automake, define top_builddir and 717 767 # top_srcdir appropriately in the Makefiles. 718 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 719 case "$enable_ltdl_convenience" in 768 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 769 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 770 case $enable_ltdl_convenience in 720 771 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 721 772 "") enable_ltdl_convenience=yes … … 737 788 # top_srcdir appropriately in the Makefiles. 738 789 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 739 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 790 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 791 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 740 792 AC_CHECK_LIB(ltdl, main, 741 793 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], … … 765 817 766 818 # AC_LIBTOOL_CXX - enable support for C++ libraries 767 AC_DEFUN( AC_LIBTOOL_CXX,[AC_REQUIRE([_AC_LIBTOOL_CXX])])768 AC_DEFUN(_AC_LIBTOOL_CXX, 769 [AC_REQUIRE([AC_PROG_LIBTOOL]) 770 AC_REQUIRE([AC_PROG_CXX])819 AC_DEFUN([AC_LIBTOOL_CXX], [AC_REQUIRE([_AC_LIBTOOL_CXX])]) 820 821 AC_DEFUN([_AC_LIBTOOL_CXX], 822 [AC_REQUIRE([AC_PROG_CXX]) 771 823 AC_REQUIRE([AC_PROG_CXXCPP]) 772 824 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" … … 776 828 dnl is set to the C++ compiler. 777 829 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ 778 MAGIC_CMD="$MAGIC_CMD" LD FLAGS="$LDFLAGS" LIBS="$LIBS" \830 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 779 831 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 780 832 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ … … 794 846 795 847 # AC_LIBTOOL_GCJ - enable support for GCJ libraries 796 AC_DEFUN(AC_LIBTOOL_GCJ,[AC_REQUIRE([_AC_LIBTOOL_GCJ])]) 797 AC_DEFUN(_AC_LIBTOOL_GCJ, 848 AC_DEFUN([AC_LIBTOOL_GCJ],[AC_REQUIRE([_AC_LIBTOOL_GCJ])]) 849 850 AC_DEFUN([_AC_LIBTOOL_GCJ], 798 851 [AC_REQUIRE([AC_PROG_LIBTOOL]) 799 852 AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], … … 809 862 dnl is set to the C++ compiler. 810 863 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \ 811 MAGIC_CMD="$MAGIC_CMD" LD FLAGS="$LDFLAGS" LIBS="$LIBS" \864 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 812 865 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ 813 866 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ … … 827 880 828 881 dnl old names 829 AC_DEFUN( AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl830 AC_DEFUN( AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl831 AC_DEFUN( AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl832 AC_DEFUN( AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl833 AC_DEFUN( AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl834 AC_DEFUN( AM_PROG_LD, [indir([AC_PROG_LD])])dnl835 AC_DEFUN( AM_PROG_NM, [indir([AC_PROG_NM])])dnl882 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 883 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 884 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 885 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 886 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 887 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 888 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 836 889 837 890 dnl This is just to silence aclocal about the macro not being used 838 891 ifelse([AC_DISABLE_FAST_INSTALL])dnl 839 892 840 AC_DEFUN([LT_AC_PROG_GCJ], [841 893 AC_DEFUN([LT_AC_PROG_GCJ], 894 [AC_CHECK_TOOL(GCJ, gcj, no) 842 895 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 843 896 AC_SUBST(GCJFLAGS) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.