Changeset 6 in downloads for aclocal.m4
- Timestamp:
- Oct 9, 2007, 10:16:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
aclocal.m4
r5 r6 1 # generated automatically by aclocal 1. 9.6-*- Autoconf -*-1 # generated automatically by aclocal 1.10 -*- Autoconf -*- 2 2 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 # 2005 Free Software Foundation, Inc.4 # 2005, 2006 Free Software Foundation, Inc. 5 5 # This file is free software; the Free Software Foundation 6 6 # gives unlimited permission to copy and/or distribute it, … … 12 12 # PARTICULAR PURPOSE. 13 13 14 m4_if(m4_PACKAGE_VERSION, [2.61],, 15 [m4_fatal([this file was generated for autoconf 2.61. 16 You have another version of autoconf. If you want to use that, 17 you should regenerate the build system entirely.], [63])]) 18 14 19 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 15 20 16 # serial 47AC_PROG_LIBTOOL21 # serial 51 AC_PROG_LIBTOOL 17 22 18 23 … … 164 169 test -z "$CC" && CC=cc 165 170 test -z "$LTCC" && LTCC=$CC 171 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 166 172 test -z "$DLLTOOL" && DLLTOOL=dlltool 167 173 test -z "$LD" && LD=ld … … 176 182 177 183 # Determine commands to create old-style static archives. 178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs $old_deplibs'184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 179 185 old_postinstall_cmds='chmod 644 $oldlib' 180 186 old_postuninstall_cmds= … … 183 189 case $host_os in 184 190 openbsd*) 185 old_postinstall_cmds=" \$RANLIB -t \$oldlib~$old_postinstall_cmds"191 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 186 192 ;; 187 193 *) 188 old_postinstall_cmds=" \$RANLIB \$oldlib~$old_postinstall_cmds"194 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 189 195 ;; 190 196 esac … … 233 239 # If no C compiler was specified, use CC. 234 240 LTCC=${LTCC-"$CC"} 241 242 # If no C compiler flags were specified, use CFLAGS. 243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 235 244 236 245 # Allow CC to be a program name with arguments. … … 260 269 # the simple compiler test code. 261 270 AC_DEFUN([_LT_COMPILER_BOILERPLATE], 262 [ac_outfile=conftest.$ac_objext 263 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 271 [AC_REQUIRE([LT_AC_PROG_SED])dnl 272 ac_outfile=conftest.$ac_objext 273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 265 275 _lt_compiler_boilerplate=`cat conftest.err` 266 276 $rm conftest* … … 273 283 # the simple link test code. 274 284 AC_DEFUN([_LT_LINKER_BOILERPLATE], 275 [ac_outfile=conftest.$ac_objext 276 printf "$lt_simple_link_test_code" >conftest.$ac_ext 277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 285 [AC_REQUIRE([LT_AC_PROG_SED])dnl 286 ac_outfile=conftest.$ac_objext 287 echo "$lt_simple_link_test_code" >conftest.$ac_ext 288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 278 289 _lt_linker_boilerplate=`cat conftest.err` 279 290 $rm conftest* … … 290 301 # to the aix ld manual. 291 302 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 292 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 294 }'` 303 [AC_REQUIRE([LT_AC_PROG_SED])dnl 304 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 305 lt_aix_libpath_sed=' 306 /Import File Strings/,/^$/ { 307 /^0/ { 308 s/^0 *\(.*\)$/\1/ 309 p 310 } 311 }' 312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 295 313 # Check for a 64-bit object if we didn't find anything. 296 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 297 }'`; fi],[]) 314 if test -z "$aix_libpath"; then 315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 316 fi],[]) 298 317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 299 318 ])# _LT_AC_SYS_LIBPATH_AIX … … 526 545 ;; 527 546 528 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 547 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 548 s390*-*linux*|sparc*-*linux*) 529 549 # Find out which ABI we are using. 530 550 echo 'int i;' > conftest.$ac_ext … … 533 553 *32-bit*) 534 554 case $host in 555 x86_64-*kfreebsd*-gnu) 556 LD="${LD-ld} -m elf_i386_fbsd" 557 ;; 535 558 x86_64-*linux*) 536 559 LD="${LD-ld} -m elf_i386" … … 549 572 *64-bit*) 550 573 case $host in 574 x86_64-*kfreebsd*-gnu) 575 LD="${LD-ld} -m elf_x86_64_fbsd" 576 ;; 551 577 x86_64-*linux*) 552 578 LD="${LD-ld} -m elf_x86_64" … … 581 607 fi 582 608 ;; 609 sparc*-*solaris*) 610 # Find out which ABI we are using. 611 echo 'int i;' > conftest.$ac_ext 612 if AC_TRY_EVAL(ac_compile); then 613 case `/usr/bin/file conftest.o` in 614 *64-bit*) 615 case $lt_cv_prog_gnu_ld in 616 yes*) LD="${LD-ld} -m elf64_sparc" ;; 617 *) LD="${LD-ld} -64" ;; 618 esac 619 ;; 620 esac 621 fi 622 rm -rf conftest* 623 ;; 624 583 625 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 584 626 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) … … 604 646 [$2=no 605 647 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 606 printf"$lt_simple_compile_test_code" > conftest.$ac_ext648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 607 649 lt_compiler_flag="$3" 608 650 # Insert the option either (1) after the last *FLAGS variable, or … … 623 665 # The compiler can only warn and ignore the option if not recognized 624 666 # So say no if there are warnings other than the usual output. 625 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp626 $SED '/^$/d ' conftest.err >conftest.er2627 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 628 670 $2=yes 629 671 fi … … 645 687 # Check whether the given compiler option works 646 688 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 647 [AC_CACHE_CHECK([$1], [$2], 689 [AC_REQUIRE([LT_AC_PROG_SED])dnl 690 AC_CACHE_CHECK([$1], [$2], 648 691 [$2=no 649 692 save_LDFLAGS="$LDFLAGS" 650 693 LDFLAGS="$LDFLAGS $3" 651 printf"$lt_simple_link_test_code" > conftest.$ac_ext694 echo "$lt_simple_link_test_code" > conftest.$ac_ext 652 695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 653 696 # The linker can only warn and ignore the option if not recognized … … 656 699 # Append any errors to the config.log. 657 700 cat conftest.err 1>&AS_MESSAGE_LOG_FD 658 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp659 $SED '/^$/d ' conftest.err >conftest.er2701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 660 703 if diff conftest.exp conftest.er2 >/dev/null; then 661 704 $2=yes … … 732 775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 733 776 ;; 777 778 interix*) 779 # We know the value 262144 and hardcode it with a safety zone (like BSD) 780 lt_cv_sys_max_cmd_len=196608 781 ;; 782 734 783 osf*) 735 784 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure … … 745 794 fi 746 795 ;; 796 sco3.2v5*) 797 lt_cv_sys_max_cmd_len=102400 798 ;; 799 sysv5* | sco5v6* | sysv4.2uw2*) 800 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 801 if test -n "$kargmax"; then 802 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 803 else 804 lt_cv_sys_max_cmd_len=32768 805 fi 806 ;; 747 807 *) 748 # If test is not a shell built-in, we'll probably end up computing a 749 # maximum length that is only half of the actual maximum length, but 750 # we can't tell. 751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 752 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 808 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 809 if test -n "$lt_cv_sys_max_cmd_len"; then 810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 812 else 813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 814 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 753 815 = "XX$teststring") >/dev/null 2>&1 && 754 new_result=`expr "X$teststring" : ".*" 2>&1` && 755 lt_cv_sys_max_cmd_len=$new_result && 756 test $i != 17 # 1/2 MB should be enough 757 do 758 i=`expr $i + 1` 759 teststring=$teststring$teststring 760 done 761 teststring= 762 # Add a significant safety factor because C++ compilers can tack on massive 763 # amounts of additional arguments before passing them to the linker. 764 # It appears as though 1/2 is a usable value. 765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 816 new_result=`expr "X$teststring" : ".*" 2>&1` && 817 lt_cv_sys_max_cmd_len=$new_result && 818 test $i != 17 # 1/2 MB should be enough 819 do 820 i=`expr $i + 1` 821 teststring=$teststring$teststring 822 done 823 teststring= 824 # Add a significant safety factor because C++ compilers can tack on massive 825 # amounts of additional arguments before passing them to the linker. 826 # It appears as though 1/2 is a usable value. 827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 828 fi 766 829 ;; 767 830 esac … … 776 839 777 840 # _LT_AC_CHECK_DLFCN 778 # ------------------ --841 # ------------------ 779 842 AC_DEFUN([_LT_AC_CHECK_DLFCN], 780 843 [AC_CHECK_HEADERS(dlfcn.h)dnl … … 784 847 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 785 848 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 786 # ------------------------------------------------------------------ 849 # --------------------------------------------------------------------- 787 850 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 788 851 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl … … 850 913 /* dlclose (self); */ 851 914 } 915 else 916 puts (dlerror ()); 852 917 853 918 exit (status); … … 860 925 x$lt_dlno_uscore) $1 ;; 861 926 x$lt_dlneed_uscore) $2 ;; 862 x$lt_ unknown|x*) $3 ;;927 x$lt_dlunknown|x*) $3 ;; 863 928 esac 864 929 else : … … 872 937 873 938 # AC_LIBTOOL_DLOPEN_SELF 874 # ------------------- 939 # ---------------------- 875 940 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 876 941 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl … … 943 1008 944 1009 save_LDFLAGS="$LDFLAGS" 945 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"1010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 946 1011 947 1012 save_LIBS="$LIBS" … … 956 1021 957 1022 if test "x$lt_cv_dlopen_self" = xyes; then 958 LDFLAGS="$LDFLAGS $link_static_flag"1023 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 959 1024 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 960 1025 lt_cv_dlopen_self_static, [dnl … … 988 1053 # Check to see if options -c and -o are simultaneously supported by compiler 989 1054 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 990 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1055 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1056 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 991 1057 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 992 1058 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], … … 996 1062 cd conftest 997 1063 mkdir out 998 printf"$lt_simple_compile_test_code" > conftest.$ac_ext1064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 999 1065 1000 1066 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 1016 1082 # The compiler can only warn and ignore the option if not recognized 1017 1083 # So say no if there are warnings 1018 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp1019 $SED '/^$/d ' out/conftest.err >out/conftest.er21020 if test ! -s out/conftest.er r|| diff out/conftest.exp out/conftest.er2 >/dev/null; then1084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1021 1087 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1022 1088 fi … … 1136 1202 if test -n "$STRIP" ; then 1137 1203 striplib="$STRIP -x" 1204 old_striplib="$STRIP -S" 1138 1205 AC_MSG_RESULT([yes]) 1139 1206 else … … 1153 1220 # PORTME Fill in your ld.so characteristics 1154 1221 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1155 [AC_MSG_CHECKING([dynamic linker characteristics]) 1222 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1223 AC_MSG_CHECKING([dynamic linker characteristics]) 1156 1224 library_names_spec= 1157 1225 libname_spec='lib$name' … … 1167 1235 dynamic_linker="$host_os ld.so" 1168 1236 sys_lib_dlsearch_path_spec="/lib /usr/lib" 1237 m4_if($1,[],[ 1169 1238 if test "$GCC" = yes; then 1170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1171 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 1239 case $host_os in 1240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 1241 *) lt_awk_arg="/^libraries:/" ;; 1242 esac 1243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1244 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 1172 1245 # if the path contains ";" then we assume it to be the separator 1173 1246 # otherwise default to the standard path separator (i.e. ":") - it is 1174 1247 # assumed that no part of a normal pathname contains ";" but that should 1175 1248 # okay in the real world where ";" in dirpaths is itself problematic. 1176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`1249 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 1177 1250 else 1178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`1251 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1179 1252 fi 1253 # Ok, now we have the path, separated by spaces, we can step through it 1254 # and add multilib dir if necessary. 1255 lt_tmp_lt_search_path_spec= 1256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 1257 for lt_sys_path in $lt_search_path_spec; do 1258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 1259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 1260 else 1261 test -d "$lt_sys_path" && \ 1262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 1263 fi 1264 done 1265 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 1266 BEGIN {RS=" "; FS="/|\n";} { 1267 lt_foo=""; 1268 lt_count=0; 1269 for (lt_i = NF; lt_i > 0; lt_i--) { 1270 if ($lt_i != "" && $lt_i != ".") { 1271 if ($lt_i == "..") { 1272 lt_count++; 1273 } else { 1274 if (lt_count == 0) { 1275 lt_foo="/" $lt_i lt_foo; 1276 } else { 1277 lt_count--; 1278 } 1279 } 1280 } 1281 } 1282 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 1283 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 1284 }'` 1285 sys_lib_search_path_spec=`echo $lt_search_path_spec` 1180 1286 else 1181 1287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1182 fi 1288 fi]) 1183 1289 need_lib_prefix=unknown 1184 1290 hardcode_into_libs=no … … 1337 1443 shlibpath_var=DYLD_LIBRARY_PATH 1338 1444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1339 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1340 if test "$GCC" = yes; then 1341 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 1342 else 1343 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 1344 fi 1445 m4_if([$1], [],[ 1446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 1345 1447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1346 1448 ;; … … 1357 1459 freebsd1*) 1358 1460 dynamic_linker=no 1359 ;;1360 1361 kfreebsd*-gnu)1362 version_type=linux1363 need_lib_prefix=no1364 need_version=no1365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1366 soname_spec='${libname}${release}${shared_ext}$major'1367 shlibpath_var=LD_LIBRARY_PATH1368 shlibpath_overrides_runpath=no1369 hardcode_into_libs=yes1370 dynamic_linker='GNU ld.so'1371 1461 ;; 1372 1462 … … 1403 1493 hardcode_into_libs=yes 1404 1494 ;; 1405 *) # from 3.2 on 1495 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 1496 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 1406 1497 shlibpath_overrides_runpath=no 1498 hardcode_into_libs=yes 1499 ;; 1500 *) # from 4.6 on, and DragonFly 1501 shlibpath_overrides_runpath=yes 1407 1502 hardcode_into_libs=yes 1408 1503 ;; … … 1466 1561 ;; 1467 1562 1563 interix[[3-9]]*) 1564 version_type=linux 1565 need_lib_prefix=no 1566 need_version=no 1567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1568 soname_spec='${libname}${release}${shared_ext}$major' 1569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 1570 shlibpath_var=LD_LIBRARY_PATH 1571 shlibpath_overrides_runpath=no 1572 hardcode_into_libs=yes 1573 ;; 1574 1468 1575 irix5* | irix6* | nonstopux*) 1469 1576 case $host_os in … … 1509 1616 1510 1617 # This must be Linux ELF. 1511 linux* )1618 linux* | k*bsd*-gnu) 1512 1619 version_type=linux 1513 1620 need_lib_prefix=no … … 1525 1632 # Append ld.so.conf contents to the search path 1526 1633 if test -f /etc/ld.so.conf; then 1527 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' ' '`1634 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 1528 1635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1529 1636 fi … … 1536 1643 # assume the GNU/Linux dynamic linker is in use. 1537 1644 dynamic_linker='GNU/Linux ld.so' 1538 ;;1539 1540 knetbsd*-gnu)1541 version_type=linux1542 need_lib_prefix=no1543 need_version=no1544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1545 soname_spec='${libname}${release}${shared_ext}$major'1546 shlibpath_var=LD_LIBRARY_PATH1547 shlibpath_overrides_runpath=no1548 hardcode_into_libs=yes1549 dynamic_linker='GNU ld.so'1550 1645 ;; 1551 1646 … … 1587 1682 openbsd*) 1588 1683 version_type=sunos 1684 sys_lib_dlsearch_path_spec="/usr/lib" 1589 1685 need_lib_prefix=no 1590 1686 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. … … 1630 1726 ;; 1631 1727 1632 sco3.2v5*) 1633 version_type=osf 1634 soname_spec='${libname}${release}${shared_ext}$major' 1635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1636 shlibpath_var=LD_LIBRARY_PATH 1728 rdos*) 1729 dynamic_linker=no 1637 1730 ;; 1638 1731 … … 1662 1755 ;; 1663 1756 1664 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)1757 sysv4 | sysv4.3*) 1665 1758 version_type=linux 1666 1759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' … … 1695 1788 ;; 1696 1789 1790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 1791 version_type=freebsd-elf 1792 need_lib_prefix=no 1793 need_version=no 1794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1795 soname_spec='${libname}${release}${shared_ext}$major' 1796 shlibpath_var=LD_LIBRARY_PATH 1797 hardcode_into_libs=yes 1798 if test "$with_gnu_ld" = yes; then 1799 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 1800 shlibpath_overrides_runpath=no 1801 else 1802 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 1803 shlibpath_overrides_runpath=yes 1804 case $host_os in 1805 sco3.2v5*) 1806 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 1807 ;; 1808 esac 1809 fi 1810 sys_lib_dlsearch_path_spec='/usr/lib' 1811 ;; 1812 1697 1813 uts4*) 1698 1814 version_type=linux … … 1708 1824 AC_MSG_RESULT([$dynamic_linker]) 1709 1825 test "$dynamic_linker" = no && can_build_shared=no 1826 1827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 1828 if test "$GCC" = yes; then 1829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 1830 fi 1710 1831 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1711 1832 … … 1714 1835 # ---------------- 1715 1836 AC_DEFUN([_LT_AC_TAGCONFIG], 1716 [AC_ARG_WITH([tags], 1837 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1838 AC_ARG_WITH([tags], 1717 1839 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 1718 1840 [include additional configurations @<:@automatic@:>@])], … … 1731 1853 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 1732 1854 fi 1855 fi 1856 if test -z "$LTCFLAGS"; then 1857 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 1733 1858 fi 1734 1859 … … 1860 1985 # AC_DISABLE_SHARED 1861 1986 # ----------------- 1862 # -set the default shared flag to --disable-shared1987 # set the default shared flag to --disable-shared 1863 1988 AC_DEFUN([AC_DISABLE_SHARED], 1864 1989 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl … … 1972 2097 # AC_PATH_TOOL_PREFIX 1973 2098 # ------------------- 1974 # find a file program which can recogni se shared library2099 # find a file program which can recognize shared library 1975 2100 AC_DEFUN([AC_PATH_TOOL_PREFIX], 1976 2101 [AC_REQUIRE([AC_PROG_EGREP])dnl … … 2035 2160 # AC_PATH_MAGIC 2036 2161 # ------------- 2037 # find a file program which can recogni se a shared library2162 # find a file program which can recognize a shared library 2038 2163 AC_DEFUN([AC_PATH_MAGIC], 2039 2164 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) … … 2168 2293 darwin*) 2169 2294 if test "$GCC" = yes; then 2170 reload_cmds='$ CC-nostdlib ${wl}-r -o $output$reload_objs'2295 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2171 2296 else 2172 2297 reload_cmds='$LD$reload_flag -o $output$reload_objs' … … 2182 2307 # -- PORTME fill in with the dynamic library characteristics 2183 2308 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2184 [AC_CACHE_CHECK([how to recogni se dependent libraries],2309 [AC_CACHE_CHECK([how to recognize dependent libraries], 2185 2310 lt_cv_deplibs_check_method, 2186 2311 [lt_cv_file_magic_cmd='$MAGIC_CMD' … … 2221 2346 mingw* | pw32*) 2222 2347 # Base MSYS/MinGW do not provide the 'file' command needed by 2223 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2224 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2225 lt_cv_file_magic_cmd='$OBJDUMP -f' 2348 # func_win32_libid shell function, so use a weaker test based on 'objdump', 2349 # unless we find 'file', for example because we are cross-compiling. 2350 if ( file / ) >/dev/null 2>&1; then 2351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2352 lt_cv_file_magic_cmd='func_win32_libid' 2353 else 2354 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2355 lt_cv_file_magic_cmd='$OBJDUMP -f' 2356 fi 2226 2357 ;; 2227 2358 … … 2230 2361 ;; 2231 2362 2232 freebsd* | kfreebsd*-gnu |dragonfly*)2363 freebsd* | dragonfly*) 2233 2364 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2234 2365 case $host_cpu in … … 2268 2399 ;; 2269 2400 2401 interix[[3-9]]*) 2402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 2403 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 2404 ;; 2405 2270 2406 irix5* | irix6* | nonstopux*) 2271 2407 case $LD in … … 2279 2415 2280 2416 # This must be Linux ELF. 2281 linux* )2417 linux* | k*bsd*-gnu) 2282 2418 lt_cv_deplibs_check_method=pass_all 2283 2419 ;; … … 2313 2449 ;; 2314 2450 2315 sco3.2v5*)2451 rdos*) 2316 2452 lt_cv_deplibs_check_method=pass_all 2317 2453 ;; … … 2321 2457 ;; 2322 2458 2323 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)2459 sysv4 | sysv4.3*) 2324 2460 case $host_vendor in 2325 2461 motorola) … … 2342 2478 lt_cv_deplibs_check_method=pass_all 2343 2479 ;; 2480 pc) 2481 lt_cv_deplibs_check_method=pass_all 2482 ;; 2344 2483 esac 2345 2484 ;; 2346 2485 2347 sysv5 OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)2486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2348 2487 lt_cv_deplibs_check_method=pass_all 2349 2488 ;; … … 2365 2504 lt_cv_path_NM="$NM" 2366 2505 else 2367 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2368 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2369 IFS="$lt_save_ifs" 2370 test -z "$ac_dir" && ac_dir=. 2371 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 2372 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2373 # Check to see if the nm accepts a BSD-compat flag. 2374 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2375 # nm: unknown option "B" ignored 2376 # Tru64's nm complains that /dev/null is an invalid object file 2377 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2378 */dev/null* | *'Invalid file or object type'*) 2379 lt_cv_path_NM="$tmp_nm -B" 2380 break 2381 ;; 2382 *) 2383 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2384 */dev/null*) 2385 lt_cv_path_NM="$tmp_nm -p" 2506 lt_nm_to_check="${ac_tool_prefix}nm" 2507 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2508 lt_nm_to_check="$lt_nm_to_check nm" 2509 fi 2510 for lt_tmp_nm in $lt_nm_to_check; do 2511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2512 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 2513 IFS="$lt_save_ifs" 2514 test -z "$ac_dir" && ac_dir=. 2515 tmp_nm="$ac_dir/$lt_tmp_nm" 2516 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2517 # Check to see if the nm accepts a BSD-compat flag. 2518 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2519 # nm: unknown option "B" ignored 2520 # Tru64's nm complains that /dev/null is an invalid object file 2521 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2522 */dev/null* | *'Invalid file or object type'*) 2523 lt_cv_path_NM="$tmp_nm -B" 2386 2524 break 2387 2525 ;; 2388 2526 *) 2389 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2390 continue # so that we can try to find one that supports BSD flags 2527 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2528 */dev/null*) 2529 lt_cv_path_NM="$tmp_nm -p" 2530 break 2531 ;; 2532 *) 2533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2534 continue # so that we can try to find one that supports BSD flags 2535 ;; 2536 esac 2391 2537 ;; 2392 2538 esac 2393 esac 2394 fi 2539 fi 2540 done 2541 IFS="$lt_save_ifs" 2395 2542 done 2396 IFS="$lt_save_ifs"2397 2543 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2398 2544 fi]) … … 2500 2646 2501 2647 # _LT_AC_PROG_CXXCPP 2502 # --------------- 2648 # ------------------ 2503 2649 AC_DEFUN([_LT_AC_PROG_CXXCPP], 2504 2650 [ … … 2549 2695 2550 2696 # AC_LIBTOOL_RC 2551 # ------------- -2697 # ------------- 2552 2698 # enable support for Windows resource files 2553 2699 AC_DEFUN([AC_LIBTOOL_RC], … … 2575 2721 2576 2722 # Code to be used in simple compile tests 2577 lt_simple_compile_test_code="int some_variable = 0; \n"2723 lt_simple_compile_test_code="int some_variable = 0;" 2578 2724 2579 2725 # Code to be used in simple link tests 2580 lt_simple_link_test_code='int main(){return(0);} \n'2726 lt_simple_link_test_code='int main(){return(0);}' 2581 2727 2582 2728 _LT_AC_SYS_COMPILER … … 2585 2731 _LT_COMPILER_BOILERPLATE 2586 2732 _LT_LINKER_BOILERPLATE 2587 2588 #2589 # Check for any special shared library compilation flags.2590 #2591 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=2592 if test "$GCC" = no; then2593 case $host_os in2594 sco3.2v5*)2595 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'2596 ;;2597 esac2598 fi2599 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then2600 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])2601 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :2602 else2603 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])2604 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no2605 fi2606 fi2607 2608 2609 #2610 # Check to make sure the static flag actually works.2611 #2612 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],2613 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),2614 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),2615 [],2616 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])2617 2618 2733 2619 2734 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) … … 2625 2740 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2626 2741 AC_LIBTOOL_SYS_LIB_STRIP 2627 AC_LIBTOOL_DLOPEN_SELF ($1)2628 2629 # Report which librar ie types wil actually be built2742 AC_LIBTOOL_DLOPEN_SELF 2743 2744 # Report which library types will actually be built 2630 2745 AC_MSG_CHECKING([if libtool supports shared libraries]) 2631 2746 AC_MSG_RESULT([$can_build_shared]) … … 2686 2801 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2687 2802 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2803 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2688 2804 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 2689 2805 _LT_AC_TAGVAR(module_cmds, $1)= … … 2710 2826 2711 2827 # Code to be used in simple compile tests 2712 lt_simple_compile_test_code="int some_variable = 0; \n"2828 lt_simple_compile_test_code="int some_variable = 0;" 2713 2829 2714 2830 # Code to be used in simple link tests 2715 lt_simple_link_test_code='int main(int, char *[ ]) { return(0); }\n'2831 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 2716 2832 2717 2833 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 2732 2848 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 2733 2849 else 2734 unset lt_cv_prog_gnu_ld2850 $as_unset lt_cv_prog_gnu_ld 2735 2851 fi 2736 2852 if test -n "${lt_cv_path_LDCXX+set}"; then 2737 2853 lt_cv_path_LD=$lt_cv_path_LDCXX 2738 2854 else 2739 unset lt_cv_path_LD2855 $as_unset lt_cv_path_LD 2740 2856 fi 2741 2857 test -z "${LDCXX+set}" || LD=$LDCXX … … 2832 2948 esac 2833 2949 done 2950 ;; 2834 2951 esac 2835 2952 … … 2858 2975 then 2859 2976 # We have reworked collect2 2860 _LT_AC_TAGVAR(hardcode_direct, $1)=yes2977 : 2861 2978 else 2862 2979 # We have old collect2 … … 2869 2986 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2870 2987 fi 2988 ;; 2871 2989 esac 2872 2990 shared_flag='-shared' … … 2900 3018 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 2901 3019 2902 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"3020 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 2903 3021 else 2904 3022 if test "$host_cpu" = ia64; then 2905 3023 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 2906 3024 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 2907 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"3025 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 2908 3026 else 2909 3027 # Determine the default libpath from the value encoded in an empty executable. … … 2914 3032 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 2915 3033 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 2916 # -bexpall does not export symbols beginning with underscore (_)2917 _LT_AC_TAGVAR(always_export_symbols, $1)=yes2918 3034 # Exported symbols can be pulled into shared objects from archives 2919 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' 3035 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 2920 3036 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 2921 3037 # This is similar to how AIX traditionally builds its shared libraries. 2922 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'3038 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 2923 3039 fi 2924 3040 fi 2925 3041 ;; 3042 3043 beos*) 3044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 3045 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3046 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 3047 # support --undefined. This deserves some investigation. FIXME 3048 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3049 else 3050 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3051 fi 3052 ;; 3053 2926 3054 chorus*) 2927 3055 case $cc_basename in … … 2932 3060 esac 2933 3061 ;; 2934 2935 3062 2936 3063 cygwin* | mingw* | pw32*) … … 2943 3070 2944 3071 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 2945 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'3072 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 2946 3073 # If the export-symbols file already is a .def file (1st line 2947 3074 # is EXPORTS), use it as is; otherwise, prepend... … … 2952 3079 cat $export_symbols >> $output_objdir/$soname.def; 2953 3080 fi~ 2954 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'3081 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 2955 3082 else 2956 3083 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 3007 3134 xlc*) 3008 3135 output_verbose_link_cmd='echo' 3009 _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'3136 _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` $xlcverstring' 3010 3137 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3011 3138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3012 _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}'3139 _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3013 3140 _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}' 3014 3141 ;; … … 3044 3171 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3045 3172 ;; 3046 freebsd* | kfreebsd*-gnu |dragonfly*)3173 freebsd* | dragonfly*) 3047 3174 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3048 3175 # conventions … … 3089 3216 hpux10*|hpux11*) 3090 3217 if test $with_gnu_ld = no; then 3218 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3219 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3220 3091 3221 case $host_cpu in 3092 hppa*64*) 3093 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3094 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3095 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3096 ;; 3097 ia64*) 3098 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3099 ;; 3222 hppa*64*|ia64*) ;; 3100 3223 *) 3101 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'3102 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:3103 3224 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3104 3225 ;; … … 3106 3227 fi 3107 3228 case $host_cpu in 3108 hppa*64* )3229 hppa*64*|ia64*) 3109 3230 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3110 3231 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3111 ;;3112 ia64*)3113 _LT_AC_TAGVAR(hardcode_direct, $1)=no3114 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no3115 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,3116 # but as the default3117 # location of the library.3118 3232 ;; 3119 3233 *) … … 3132 3246 aCC*) 3133 3247 case $host_cpu in 3134 hppa*64*|ia64*) 3135 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3248 hppa*64*) 3249 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3250 ;; 3251 ia64*) 3252 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3136 3253 ;; 3137 3254 *) … … 3153 3270 if test $with_gnu_ld = no; then 3154 3271 case $host_cpu in 3155 ia64*|hppa*64*) 3156 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 3272 hppa*64*) 3273 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3274 ;; 3275 ia64*) 3276 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3157 3277 ;; 3158 3278 *) … … 3168 3288 esac 3169 3289 ;; 3290 interix[[3-9]]*) 3291 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3292 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3293 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3294 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3295 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 3296 # Instead, shared libraries are loaded at an image base (0x10000000 by 3297 # default) and relocated if they conflict, which is a slow very memory 3298 # consuming and fragmenting process. To avoid this, we pick a random, 3299 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 3300 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 3301 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 3302 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 3303 ;; 3170 3304 irix5* | irix6*) 3171 3305 case $cc_basename in … … 3194 3328 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3195 3329 ;; 3196 linux* )3330 linux* | k*bsd*-gnu) 3197 3331 case $cc_basename in 3198 3332 KCC*) … … 3274 3408 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3275 3409 ;; 3410 *) 3411 case `$CC -V 2>&1 | sed 5q` in 3412 *Sun\ C*) 3413 # Sun C++ 5.9 3414 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3415 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3416 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 3417 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3418 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3419 3420 # Not sure whether something based on 3421 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 3422 # would be better. 3423 output_verbose_link_cmd='echo' 3424 3425 # Archives containing C++ object files must be created using 3426 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3427 # necessary to make sure instantiated templates are included 3428 # in the archive. 3429 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3430 ;; 3431 esac 3432 ;; 3276 3433 esac 3277 3434 ;; … … 3312 3469 ;; 3313 3470 openbsd*) 3314 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3315 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3316 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3317 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3319 _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' 3320 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3321 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3471 if test -f /usr/libexec/ld.so; then 3472 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3473 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3474 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3475 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3477 _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' 3478 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3479 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3480 fi 3481 output_verbose_link_cmd='echo' 3482 else 3483 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3322 3484 fi 3323 output_verbose_link_cmd='echo'3324 3485 ;; 3325 3486 osf3*) … … 3450 3611 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3451 3612 ;; 3452 sco*)3453 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no3454 case $cc_basename in3455 CC*)3456 # FIXME: insert proper C++ library support3457 _LT_AC_TAGVAR(ld_shlibs, $1)=no3458 ;;3459 *)3460 # FIXME: insert proper C++ library support3461 _LT_AC_TAGVAR(ld_shlibs, $1)=no3462 ;;3463 esac3464 ;;3465 3613 sunos4*) 3466 3614 case $cc_basename in … … 3496 3644 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3497 3645 *) 3498 # The C++ compiler is used as linker so we must use $wl 3499 # flag to pass the commands to the underlying system 3500 # linker. We must also pass each convience library through 3501 # to the system linker between allextract/defaultextract. 3502 # The C++ compiler will combine linker options so we 3503 # cannot just pass the convience library names through 3504 # without $wl. 3646 # The compiler driver will combine and reorder linker options, 3647 # but understands `-z linker_flag'. 3505 3648 # Supported since Solaris 2.6 (maybe 2.5.1?) 3506 _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'3649 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 3507 3650 ;; 3508 3651 esac … … 3551 3694 3552 3695 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 3696 case $host_os in 3697 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3698 *) 3699 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3700 ;; 3701 esac 3553 3702 fi 3554 3703 ;; 3555 3704 esac 3556 3705 ;; 3557 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 3706 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 3707 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3558 3708 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3709 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3710 runpath_var='LD_RUN_PATH' 3711 3712 case $cc_basename in 3713 CC*) 3714 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3715 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3716 ;; 3717 *) 3718 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3719 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3720 ;; 3721 esac 3722 ;; 3723 sysv5* | sco3.2v5* | sco5v6*) 3724 # Note: We can NOT use -z defs as we might desire, because we do not 3725 # link with -lc, and that would cause any symbols used from libc to 3726 # always be unresolved, which means just about no library would 3727 # ever link correctly. If we're not using GNU ld we use -z text 3728 # though, which does catch some bad symbols but isn't as heavy-handed 3729 # as -z defs. 3730 # For security reasons, it is highly recommended that you always 3731 # use absolute paths for naming shared libraries, and exclude the 3732 # DT_RUNPATH tag from executables and libraries. But doing so 3733 # requires that you compile everything twice, which is a pain. 3734 # So that behaviour is only enabled if SCOABSPATH is set to a 3735 # non-empty value in the environment. Most likely only useful for 3736 # creating official distributions of packages. 3737 # This is a hack until libtool officially supports absolute path 3738 # names for shared libraries. 3739 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3740 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 3741 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3742 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3743 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 3744 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3745 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3746 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 3747 runpath_var='LD_RUN_PATH' 3748 3749 case $cc_basename in 3750 CC*) 3751 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3752 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3753 ;; 3754 *) 3755 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3756 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3757 ;; 3758 esac 3559 3759 ;; 3560 3760 tandem*) … … 3593 3793 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3594 3794 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3595 AC_LIBTOOL_SYS_LIB_STRIP3596 AC_LIBTOOL_DLOPEN_SELF($1)3597 3795 3598 3796 AC_LIBTOOL_CONFIG($1) … … 3612 3810 3613 3811 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3614 # ------------------------ 3812 # ------------------------------------ 3615 3813 # Figure out "hidden" library dependencies from verbose 3616 3814 # compiler output when linking a shared library. … … 3745 3943 ifelse([$1],[CXX], 3746 3944 [case $host_os in 3945 interix[[3-9]]*) 3946 # Interix 3.5 installs completely hosed .la files for C++, so rather than 3947 # hack all around it, let's just trust "g++" to DTRT. 3948 _LT_AC_TAGVAR(predep_objects,$1)= 3949 _LT_AC_TAGVAR(postdep_objects,$1)= 3950 _LT_AC_TAGVAR(postdeps,$1)= 3951 ;; 3952 3953 linux*) 3954 case `$CC -V 2>&1 | sed 5q` in 3955 *Sun\ C*) 3956 # Sun C++ 5.9 3957 # 3958 # The more standards-conforming stlport4 library is 3959 # incompatible with the Cstd library. Avoid specifying 3960 # it if it's in CXXFLAGS. Ignore libCrun as 3961 # -library=stlport4 depends on it. 3962 case " $CXX $CXXFLAGS " in 3963 *" -library=stlport4 "*) 3964 solaris_use_stlport4=yes 3965 ;; 3966 esac 3967 if test "$solaris_use_stlport4" != yes; then 3968 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 3969 fi 3970 ;; 3971 esac 3972 ;; 3973 3747 3974 solaris*) 3748 3975 case $cc_basename in 3749 3976 CC*) 3977 # The more standards-conforming stlport4 library is 3978 # incompatible with the Cstd library. Avoid specifying 3979 # it if it's in CXXFLAGS. Ignore libCrun as 3980 # -library=stlport4 depends on it. 3981 case " $CXX $CXXFLAGS " in 3982 *" -library=stlport4 "*) 3983 solaris_use_stlport4=yes 3984 ;; 3985 esac 3986 3750 3987 # Adding this requires a known-good setup of shared libraries for 3751 3988 # Sun compiler versions before 5.6, else PIC objects from an old 3752 3989 # archive will be linked into the output, leading to subtle bugs. 3753 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 3990 if test "$solaris_use_stlport4" != yes; then 3991 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 3992 fi 3754 3993 ;; 3755 3994 esac 3995 ;; 3756 3996 esac 3757 3997 ]) … … 3763 4003 3764 4004 # AC_LIBTOOL_LANG_F77_CONFIG 3765 # ------------------------ 4005 # -------------------------- 3766 4006 # Ensure that the configuration vars for the C compiler are 3767 4007 # suitably defined. Those variables are subsequently used by … … 3799 4039 3800 4040 # Code to be used in simple compile tests 3801 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 4041 lt_simple_compile_test_code="\ 4042 subroutine t 4043 return 4044 end 4045 " 3802 4046 3803 4047 # Code to be used in simple link tests 3804 lt_simple_link_test_code=" program t\n end\n" 4048 lt_simple_link_test_code="\ 4049 program t 4050 end 4051 " 3805 4052 3806 4053 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 3847 4094 AC_MSG_RESULT([$enable_static]) 3848 4095 3849 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no3850 3851 4096 _LT_AC_TAGVAR(GCC, $1)="$G77" 3852 4097 _LT_AC_TAGVAR(LD, $1)="$LD" … … 3858 4103 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3859 4104 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3860 AC_LIBTOOL_SYS_LIB_STRIP3861 3862 4105 3863 4106 AC_LIBTOOL_CONFIG($1) … … 3885 4128 3886 4129 # Code to be used in simple compile tests 3887 lt_simple_compile_test_code="class foo {} \n"4130 lt_simple_compile_test_code="class foo {}" 3888 4131 3889 4132 # Code to be used in simple link tests 3890 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; } \n'4133 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 3891 4134 3892 4135 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 3916 4159 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3917 4160 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3918 AC_LIBTOOL_SYS_LIB_STRIP3919 AC_LIBTOOL_DLOPEN_SELF($1)3920 4161 3921 4162 AC_LIBTOOL_CONFIG($1) … … 3927 4168 3928 4169 # AC_LIBTOOL_LANG_RC_CONFIG 3929 # ------------------------- -4170 # ------------------------- 3930 4171 # Ensure that the configuration vars for the Windows resource compiler are 3931 4172 # suitably defined. Those variables are subsequently used by … … 3943 4184 3944 4185 # Code to be used in simple compile tests 3945 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED } \n'4186 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 3946 4187 3947 4188 # Code to be used in simple link tests … … 3990 4231 # careful not to overquote the AC_SUBSTed values. We take copies of the 3991 4232 # variables and quote the copies for generation of the libtool script. 3992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \4233 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 3993 4234 SED SHELL STRIP \ 3994 4235 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ … … 4032 4273 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 4033 4274 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 4275 _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 4034 4276 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 4035 4277 _LT_AC_TAGVAR(include_expsyms, $1); do … … 4078 4320 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 4079 4321 # 4080 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 4322 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 4081 4323 # Free Software Foundation, Inc. 4082 4324 # … … 4159 4401 LTCC=$lt_LTCC 4160 4402 4403 # LTCC compiler flags. 4404 LTCFLAGS=$lt_LTCFLAGS 4405 4161 4406 # A language-specific compiler. 4162 4407 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) … … 4400 4645 4401 4646 # Fix the shell variable \$srcfile for the compiler. 4402 fix_srcfile_path= "$_LT_AC_TAGVAR(fix_srcfile_path, $1)"4647 fix_srcfile_path=$lt_fix_srcfile_path 4403 4648 4404 4649 # Set to yes if exported symbols are required. … … 4483 4728 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 4484 4729 [AC_REQUIRE([AC_CANONICAL_HOST]) 4730 AC_REQUIRE([LT_AC_PROG_SED]) 4485 4731 AC_REQUIRE([AC_PROG_NM]) 4486 4732 AC_REQUIRE([AC_OBJEXT]) … … 4519 4765 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'" 4520 4766 ;; 4521 linux* )4767 linux* | k*bsd*-gnu) 4522 4768 if test "$host_cpu" = ia64; then 4523 4769 symcode='[[ABCDGIRSTW]]' … … 4532 4778 symcode='[[BCDEGQRST]]' 4533 4779 ;; 4534 solaris* | sysv5*)4780 solaris*) 4535 4781 symcode='[[BDRT]]' 4782 ;; 4783 sco3.2v5*) 4784 symcode='[[DT]]' 4785 ;; 4786 sysv4.2uw2*) 4787 symcode='[[DT]]' 4788 ;; 4789 sysv5* | sco5v6* | unixware* | OpenUNIX*) 4790 symcode='[[ABDT]]' 4536 4791 ;; 4537 4792 sysv4) … … 4700 4955 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4701 4956 ;; 4702 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)4957 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4703 4958 # PIC is the default for these OSes. 4704 4959 ;; 4705 mingw* | os2* | pw32*)4960 mingw* | cygwin* | os2* | pw32*) 4706 4961 # This hack is so that the source file can tell whether it is being 4707 4962 # built for inclusion in a dll (and should export symbols for example). 4963 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4964 # (--disable-auto-import) libraries 4708 4965 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4709 4966 ;; … … 4716 4973 # DJGPP does not support shared libraries at all 4717 4974 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4975 ;; 4976 interix[[3-9]]*) 4977 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4978 # Instead, we relocate shared libraries at runtime. 4718 4979 ;; 4719 4980 sysv4*MP*) … … 4779 5040 esac 4780 5041 ;; 4781 freebsd* | kfreebsd*-gnu |dragonfly*)5042 freebsd* | dragonfly*) 4782 5043 # FreeBSD uses GNU C++ 4783 5044 ;; … … 4786 5047 CC*) 4787 5048 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4788 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= "${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"5049 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4789 5050 if test "$host_cpu" != ia64; then 4790 5051 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' … … 4793 5054 aCC*) 4794 5055 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4795 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= "${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"5056 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4796 5057 case $host_cpu in 4797 5058 hppa*64*|ia64*) … … 4807 5068 esac 4808 5069 ;; 5070 interix*) 5071 # This is c89, which is MS Visual C++ (no shared libs) 5072 # Anyone wants to do a port? 5073 ;; 4809 5074 irix5* | irix6* | nonstopux*) 4810 5075 case $cc_basename in … … 4818 5083 esac 4819 5084 ;; 4820 linux* )5085 linux* | k*bsd*-gnu) 4821 5086 case $cc_basename in 4822 5087 KCC*) … … 4845 5110 ;; 4846 5111 *) 5112 case `$CC -V 2>&1 | sed 5q` in 5113 *Sun\ C*) 5114 # Sun C++ 5.9 5115 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5116 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5117 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5118 ;; 5119 esac 4847 5120 ;; 4848 5121 esac … … 4886 5159 psos*) 4887 5160 ;; 4888 sco*)4889 case $cc_basename in4890 CC*)4891 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'4892 ;;4893 *)4894 ;;4895 esac4896 ;;4897 5161 solaris*) 4898 5162 case $cc_basename in … … 4936 5200 esac 4937 5201 ;; 4938 unixware*) 5202 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5203 case $cc_basename in 5204 CC*) 5205 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5206 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5207 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5208 ;; 5209 esac 4939 5210 ;; 4940 5211 vxworks*) … … 4967 5238 ;; 4968 5239 4969 beos* | cygwin* |irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)5240 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4970 5241 # PIC is the default for these OSes. 4971 5242 ;; 4972 5243 4973 mingw* | pw32* | os2*)5244 mingw* | cygwin* | pw32* | os2*) 4974 5245 # This hack is so that the source file can tell whether it is being 4975 5246 # built for inclusion in a dll (and should export symbols for example). 5247 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5248 # (--disable-auto-import) libraries 4976 5249 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4977 5250 ;; … … 4981 5254 # Common symbols not allowed in MH_DYLIB files 4982 5255 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5256 ;; 5257 5258 interix[[3-9]]*) 5259 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5260 # Instead, we relocate shared libraries at runtime. 4983 5261 ;; 4984 5262 … … 5036 5314 ;; 5037 5315 5038 mingw* | pw32* | os2*)5316 mingw* | cygwin* | pw32* | os2*) 5039 5317 # This hack is so that the source file can tell whether it is being 5040 5318 # built for inclusion in a dll (and should export symbols for example). … … 5069 5347 ;; 5070 5348 5071 linux* )5349 linux* | k*bsd*-gnu) 5072 5350 case $cc_basename in 5073 5351 icc* | ecc*) … … 5088 5366 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5089 5367 ;; 5368 *) 5369 case `$CC -V 2>&1 | sed 5q` in 5370 *Sun\ C*) 5371 # Sun C 5.9 5372 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5373 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5374 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5375 ;; 5376 *Sun\ F*) 5377 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5378 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5379 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5380 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' 5381 ;; 5382 esac 5383 ;; 5090 5384 esac 5091 5385 ;; … … 5097 5391 ;; 5098 5392 5099 sco3.2v5*) 5100 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' 5101 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' 5393 rdos*) 5394 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5102 5395 ;; 5103 5396 … … 5119 5412 ;; 5120 5413 5121 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)5414 sysv4 | sysv4.2uw2* | sysv4.3*) 5122 5415 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5123 5416 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 5130 5423 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5131 5424 fi 5425 ;; 5426 5427 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5428 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5429 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5430 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5132 5431 ;; 5133 5432 … … 5173 5472 ;; 5174 5473 esac 5474 5475 # 5476 # Check to make sure the static flag actually works. 5477 # 5478 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 5479 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5480 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 5481 $lt_tmp_static_flag, 5482 [], 5483 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 5175 5484 ]) 5176 5485 … … 5180 5489 # See if the linker supports building shared libraries. 5181 5490 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 5182 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5491 [AC_REQUIRE([LT_AC_PROG_SED])dnl 5492 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5183 5493 ifelse([$1],[CXX],[ 5184 5494 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' … … 5197 5507 ;; 5198 5508 cygwin* | mingw*) 5199 _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'5509 _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' 5200 5510 ;; 5201 5511 *) … … 5251 5561 fi 5252 5562 ;; 5563 interix*) 5564 # we just hope/assume this is gcc and not c89 (= MSVC++) 5565 with_gnu_ld=yes 5566 ;; 5253 5567 openbsd*) 5254 5568 with_gnu_ld=no … … 5332 5646 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5333 5647 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5334 _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'5648 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 5335 5649 5336 5650 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5337 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'5651 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5338 5652 # If the export-symbols file already is a .def file (1st line 5339 5653 # is EXPORTS), use it as is; otherwise, prepend... … … 5344 5658 cat $export_symbols >> $output_objdir/$soname.def; 5345 5659 fi~ 5346 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}-- image-base=0x10000000 ${wl}--out-implib,$lib'5660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5347 5661 else 5348 5662 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 5350 5664 ;; 5351 5665 5352 linux*) 5666 interix[[3-9]]*) 5667 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5668 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5669 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5670 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5672 # Instead, shared libraries are loaded at an image base (0x10000000 by 5673 # default) and relocated if they conflict, which is a slow very memory 5674 # consuming and fragmenting process. To avoid this, we pick a random, 5675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5676 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5677 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5678 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5679 ;; 5680 5681 gnu* | linux* | k*bsd*-gnu) 5353 5682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5354 5683 tmp_addflag= … … 5368 5697 tmp_addflag=' -nofor_main' ;; 5369 5698 esac 5370 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5699 case `$CC -V 2>&1 | sed 5q` in 5700 *Sun\ C*) # Sun C 5.9 5701 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5702 tmp_sharedflag='-G' ;; 5703 *Sun\ F*) # Sun Fortran 8.3 5704 tmp_sharedflag='-G' ;; 5705 *) 5706 tmp_sharedflag='-shared' ;; 5707 esac 5708 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5371 5709 5372 5710 if test $supports_anon_versioning = yes; then … … 5374 5712 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5375 5713 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5376 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5714 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5377 5715 fi 5378 5716 else … … 5391 5729 ;; 5392 5730 5393 solaris* | sysv5*)5731 solaris*) 5394 5732 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5395 5733 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 5410 5748 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5411 5749 fi 5750 ;; 5751 5752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5753 case `$LD -v 2>&1` in 5754 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5755 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5756 cat <<_LT_EOF 1>&2 5757 5758 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 5759 *** reliably create shared libraries on SCO systems. Therefore, libtool 5760 *** is disabling shared libraries support. We urge you to upgrade GNU 5761 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5762 *** your PATH or compiler configuration so that the native linker is 5763 *** used, and then restart. 5764 5765 _LT_EOF 5766 ;; 5767 *) 5768 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5769 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 5770 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 5771 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 5772 else 5773 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5774 fi 5775 ;; 5776 esac 5412 5777 ;; 5413 5778 … … 5445 5810 # are no directories specified by -L. 5446 5811 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5447 if test "$GCC" = yes && test -z "$l ink_static_flag"; then5812 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 5448 5813 # Neither direct hardcoding nor static linking is supported with a 5449 5814 # broken collect2. … … 5479 5844 fi 5480 5845 done 5846 ;; 5481 5847 esac 5482 5848 … … 5505 5871 then 5506 5872 # We have reworked collect2 5507 _LT_AC_TAGVAR(hardcode_direct, $1)=yes5873 : 5508 5874 else 5509 5875 # We have old collect2 … … 5516 5882 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5517 5883 fi 5884 ;; 5518 5885 esac 5519 5886 shared_flag='-shared' … … 5528 5895 shared_flag='-G' 5529 5896 else 5530 5897 if test "$aix_use_runtimelinking" = yes; then 5531 5898 shared_flag='${wl}-G' 5532 5899 else 5533 5900 shared_flag='${wl}-bM:SRE' 5534 5901 fi 5535 5902 fi 5536 5903 fi … … 5546 5913 _LT_AC_SYS_LIBPATH_AIX 5547 5914 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5548 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols $shared_flag"5915 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5549 5916 else 5550 5917 if test "$host_cpu" = ia64; then 5551 5918 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5552 5919 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5553 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag\${wl}$exp_sym_flag:\$export_symbols"5920 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 5554 5921 else 5555 5922 # Determine the default libpath from the value encoded in an empty executable. … … 5560 5927 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5561 5928 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5562 # -bexpall does not export symbols beginning with underscore (_)5563 _LT_AC_TAGVAR(always_export_symbols, $1)=yes5564 5929 # Exported symbols can be pulled into shared objects from archives 5565 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' 5930 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5566 5931 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5567 5932 # This is similar to how AIX traditionally builds its shared libraries. 5568 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $ compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'5933 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5569 5934 fi 5570 5935 fi … … 5599 5964 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 5600 5965 # FIXME: Should let the user specify the lib program. 5601 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'5966 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5602 5967 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5603 5968 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes … … 5641 6006 xlc*) 5642 6007 output_verbose_link_cmd='echo' 5643 _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'6008 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 5644 6009 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 5645 6010 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 5646 _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}'6011 _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 5647 6012 _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}' 5648 6013 ;; … … 5684 6049 5685 6050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5686 freebsd* | kfreebsd*-gnu |dragonfly*)6051 freebsd* | dragonfly*) 5687 6052 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5688 6053 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 5707 6072 ;; 5708 6073 5709 hpux10* | hpux11*) 6074 hpux10*) 6075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6076 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6077 else 6078 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6079 fi 6080 if test "$with_gnu_ld" = no; then 6081 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6082 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6083 6084 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6085 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6086 6087 # hardcode_minus_L: Not really in the search PATH, 6088 # but as the default location of the library. 6089 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6090 fi 6091 ;; 6092 6093 hpux11*) 5710 6094 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5711 6095 case $host_cpu in 5712 hppa*64* |ia64*)6096 hppa*64*) 5713 6097 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6098 ;; 6099 ia64*) 6100 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5714 6101 ;; 5715 6102 *) … … 5719 6106 else 5720 6107 case $host_cpu in 5721 hppa*64*|ia64*) 5722 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6108 hppa*64*) 6109 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6110 ;; 6111 ia64*) 6112 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5723 6113 ;; 5724 6114 *) 5725 _LT_AC_TAGVAR(archive_cmds, $1)='$ LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'6115 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5726 6116 ;; 5727 6117 esac 5728 6118 fi 5729 6119 if test "$with_gnu_ld" = no; then 6120 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6121 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6122 5730 6123 case $host_cpu in 5731 hppa*64*) 5732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6124 hppa*64*|ia64*) 5733 6125 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5734 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5735 6126 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5736 6127 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5737 6128 ;; 5738 ia64*)5739 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5740 _LT_AC_TAGVAR(hardcode_direct, $1)=no5741 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5742 5743 # hardcode_minus_L: Not really in the search PATH,5744 # but as the default location of the library.5745 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5746 ;;5747 6129 *) 5748 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'5749 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:5750 6130 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5751 6131 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' … … 5791 6171 5792 6172 openbsd*) 5793 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5794 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5796 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5797 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5798 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5799 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6173 if test -f /usr/libexec/ld.so; then 6174 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6175 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6176 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6177 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6178 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6179 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6180 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6181 else 6182 case $host_os in 6183 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6184 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6185 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6186 ;; 6187 *) 6188 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6189 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6190 ;; 6191 esac 6192 fi 5800 6193 else 5801 case $host_os in 5802 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5803 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5804 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5805 ;; 5806 *) 5807 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5808 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5809 ;; 5810 esac 6194 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5811 6195 fi 5812 6196 ;; … … 5847 6231 fi 5848 6232 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5849 ;;5850 5851 sco3.2v5*)5852 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'5853 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no5854 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'5855 runpath_var=LD_RUN_PATH5856 hardcode_runpath_var=yes5857 6233 ;; 5858 6234 … … 5875 6251 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5876 6252 *) 5877 # The compiler driver will combine linker options so we 5878 # cannot just pass the convience library names through 5879 # without $wl, iff we do not link with $LD. 5880 # Luckily, gcc supports the same syntax we need for Sun Studio. 6253 # The compiler driver will combine and reorder linker options, 6254 # but understands `-z linker_flag'. GCC discards it without `$wl', 6255 # but is careful enough not to reorder. 5881 6256 # Supported since Solaris 2.6 (maybe 2.5.1?) 5882 case $wlarc in5883 '') 5884 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 5885 *) 5886 _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' ;; 5887 esac;;6257 if test "$GCC" = yes; then 6258 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6259 else 6260 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6261 fi 6262 ;; 5888 6263 esac 5889 6264 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes … … 5942 6317 ;; 5943 6318 5944 sysv4.2uw2*) 5945 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5946 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5947 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 5948 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5949 hardcode_runpath_var=yes 5950 runpath_var=LD_RUN_PATH 5951 ;; 5952 5953 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 5954 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' 5955 if test "$GCC" = yes; then 5956 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5957 else 5958 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5959 fi 5960 runpath_var='LD_RUN_PATH' 5961 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5962 ;; 5963 5964 sysv5*) 5965 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 5966 # $CC -shared without GNU ld will not create a library from C++ 5967 # object files and a static libstdc++, better avoid it by now 5968 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5969 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 5971 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 6319 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6320 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6321 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5972 6322 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5973 6323 runpath_var='LD_RUN_PATH' 6324 6325 if test "$GCC" = yes; then 6326 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6327 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6328 else 6329 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6330 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6331 fi 6332 ;; 6333 6334 sysv5* | sco3.2v5* | sco5v6*) 6335 # Note: We can NOT use -z defs as we might desire, because we do not 6336 # link with -lc, and that would cause any symbols used from libc to 6337 # always be unresolved, which means just about no library would 6338 # ever link correctly. If we're not using GNU ld we use -z text 6339 # though, which does catch some bad symbols but isn't as heavy-handed 6340 # as -z defs. 6341 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6342 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6343 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6344 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6345 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 6346 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6347 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6348 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6349 runpath_var='LD_RUN_PATH' 6350 6351 if test "$GCC" = yes; then 6352 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6353 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6354 else 6355 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6356 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6357 fi 5974 6358 ;; 5975 6359 … … 5988 6372 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 5989 6373 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5990 5991 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"5992 if test "$GCC" = yes; then5993 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"5994 fi5995 6374 5996 6375 # … … 6013 6392 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 6014 6393 $rm conftest* 6015 printf"$lt_simple_compile_test_code" > conftest.$ac_ext6394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6016 6395 6017 6396 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then … … 6021 6400 deplibs= 6022 6401 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 6402 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 6023 6403 compiler_flags=-v 6024 6404 linker_flags=-v … … 6115 6495 ]) 6116 6496 6497 6498 # Cheap backport of AS_EXECUTABLE_P and required macros 6499 # from Autoconf 2.59; we should not use $as_executable_p directly. 6500 6501 # _AS_TEST_PREPARE 6502 # ---------------- 6503 m4_ifndef([_AS_TEST_PREPARE], 6504 [m4_defun([_AS_TEST_PREPARE], 6505 [if test -x / >/dev/null 2>&1; then 6506 as_executable_p='test -x' 6507 else 6508 as_executable_p='test -f' 6509 fi 6510 ])])# _AS_TEST_PREPARE 6511 6512 # AS_EXECUTABLE_P 6513 # --------------- 6514 # Check whether a file is executable. 6515 m4_ifndef([AS_EXECUTABLE_P], 6516 [m4_defun([AS_EXECUTABLE_P], 6517 [AS_REQUIRE([_AS_TEST_PREPARE])dnl 6518 $as_executable_p $1[]dnl 6519 ])])# AS_EXECUTABLE_P 6520 6117 6521 # NOTE: This macro has been submitted for inclusion into # 6118 6522 # GNU Autoconf as AC_PROG_SED. When it is available in # … … 6135 6539 for lt_ac_prog in sed gsed; do 6136 6540 for ac_exec_ext in '' $ac_executable_extensions; do 6137 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then6541 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then 6138 6542 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6139 6543 fi … … 6141 6545 done 6142 6546 done 6547 IFS=$as_save_IFS 6143 6548 lt_ac_max=0 6144 6549 lt_ac_count=0 … … 6173 6578 ]) 6174 6579 SED=$lt_cv_path_SED 6580 AC_SUBST([SED]) 6175 6581 AC_MSG_RESULT([$SED]) 6176 6582 ]) 6177 6583 6178 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 6179 # 6180 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 6181 # 6182 # This program is free software; you can redistribute it and/or modify 6183 # it under the terms of the GNU General Public License as published by 6184 # the Free Software Foundation; either version 2 of the License, or 6185 # (at your option) any later version. 6186 # 6187 # This program is distributed in the hope that it will be useful, but 6188 # WITHOUT ANY WARRANTY; without even the implied warranty of 6189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 6190 # General Public License for more details. 6191 # 6192 # You should have received a copy of the GNU General Public License 6193 # along with this program; if not, write to the Free Software 6194 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 6195 # 6196 # As a special exception to the GNU General Public License, if you 6197 # distribute this file as part of a program that contains a 6198 # configuration script generated by Autoconf, you may include it under 6199 # the same distribution terms that you use for the rest of that program. 6200 6201 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 6202 # ---------------------------------- 6203 AC_DEFUN([PKG_PROG_PKG_CONFIG], 6204 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 6205 m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 6206 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 6207 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 6208 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 6209 fi 6210 if test -n "$PKG_CONFIG"; then 6211 _pkg_min_version=m4_default([$1], [0.9.0]) 6212 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 6213 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 6214 AC_MSG_RESULT([yes]) 6215 else 6216 AC_MSG_RESULT([no]) 6217 PKG_CONFIG="" 6218 fi 6219 6220 fi[]dnl 6221 ])# PKG_PROG_PKG_CONFIG 6222 6223 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 6224 # 6225 # Check to see whether a particular set of modules exists. Similar 6226 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 6227 # 6228 # 6229 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 6230 # this or PKG_CHECK_MODULES is called, or make sure to call 6231 # PKG_CHECK_EXISTS manually 6232 # -------------------------------------------------------------- 6233 AC_DEFUN([PKG_CHECK_EXISTS], 6234 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 6235 if test -n "$PKG_CONFIG" && \ 6236 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 6237 m4_ifval([$2], [$2], [:]) 6238 m4_ifvaln([$3], [else 6239 $3])dnl 6240 fi]) 6241 6242 6243 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 6244 # --------------------------------------------- 6245 m4_define([_PKG_CONFIG], 6246 [if test -n "$PKG_CONFIG"; then 6247 if test -n "$$1"; then 6248 pkg_cv_[]$1="$$1" 6249 else 6250 PKG_CHECK_EXISTS([$3], 6251 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 6252 [pkg_failed=yes]) 6253 fi 6254 else 6255 pkg_failed=untried 6256 fi[]dnl 6257 ])# _PKG_CONFIG 6258 6259 # _PKG_SHORT_ERRORS_SUPPORTED 6260 # ----------------------------- 6261 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 6262 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 6263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 6264 _pkg_short_errors_supported=yes 6265 else 6266 _pkg_short_errors_supported=no 6267 fi[]dnl 6268 ])# _PKG_SHORT_ERRORS_SUPPORTED 6269 6270 6271 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 6272 # [ACTION-IF-NOT-FOUND]) 6273 # 6274 # 6275 # Note that if there is a possibility the first call to 6276 # PKG_CHECK_MODULES might not happen, you should be sure to include an 6277 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 6278 # 6279 # 6280 # -------------------------------------------------------------- 6281 AC_DEFUN([PKG_CHECK_MODULES], 6282 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 6283 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 6284 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 6285 6286 pkg_failed=no 6287 AC_MSG_CHECKING([for $1]) 6288 6289 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 6290 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) 6291 6292 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 6293 and $1[]_LIBS to avoid the need to call pkg-config. 6294 See the pkg-config man page for more details.]) 6295 6296 if test $pkg_failed = yes; then 6297 _PKG_SHORT_ERRORS_SUPPORTED 6298 if test $_pkg_short_errors_supported = yes; then 6299 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 6300 else 6301 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 6302 fi 6303 # Put the nasty error message in config.log where it belongs 6304 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 6305 6306 ifelse([$4], , [AC_MSG_ERROR(dnl 6307 [Package requirements ($2) were not met: 6308 6309 $$1_PKG_ERRORS 6310 6311 Consider adjusting the PKG_CONFIG_PATH environment variable if you 6312 installed software in a non-standard prefix. 6313 6314 _PKG_TEXT 6315 ])], 6316 [$4]) 6317 elif test $pkg_failed = untried; then 6318 ifelse([$4], , [AC_MSG_FAILURE(dnl 6319 [The pkg-config script could not be found or is too old. Make sure it 6320 is in your PATH or set the PKG_CONFIG environment variable to the full 6321 path to pkg-config. 6322 6323 _PKG_TEXT 6324 6325 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])], 6326 [$4]) 6327 else 6328 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 6329 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 6330 AC_MSG_RESULT([yes]) 6331 ifelse([$3], , :, [$3]) 6332 fi[]dnl 6333 ])# PKG_CHECK_MODULES 6334 6335 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. 6584 # Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc. 6336 6585 # 6337 6586 # This file is free software; the Free Software Foundation … … 6343 6592 # Automake X.Y traces this macro to ensure aclocal.m4 has been 6344 6593 # generated from the m4 files accompanying Automake X.Y. 6345 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 6594 # (This private macro should not be called outside this file.) 6595 AC_DEFUN([AM_AUTOMAKE_VERSION], 6596 [am__api_version='1.10' 6597 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 6598 dnl require some minimum version. Point them to the right macro. 6599 m4_if([$1], [1.10], [], 6600 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 6601 ]) 6602 6603 # _AM_AUTOCONF_VERSION(VERSION) 6604 # ----------------------------- 6605 # aclocal traces this macro to find the Autoconf version. 6606 # This is a private macro too. Using m4_define simplifies 6607 # the logic in aclocal, which can simply ignore this definition. 6608 m4_define([_AM_AUTOCONF_VERSION], []) 6346 6609 6347 6610 # AM_SET_CURRENT_AUTOMAKE_VERSION 6348 6611 # ------------------------------- 6349 # Call AM_AUTOMAKE_VERSION so itcan be traced.6612 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 6350 6613 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 6351 6614 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 6352 [AM_AUTOMAKE_VERSION([1.9.6])]) 6615 [AM_AUTOMAKE_VERSION([1.10])dnl 6616 _AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)]) 6353 6617 6354 6618 # AM_AUX_DIR_EXPAND -*- Autoconf -*- … … 6407 6671 # AM_CONDITIONAL -*- Autoconf -*- 6408 6672 6409 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 6673 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 6410 6674 # Free Software Foundation, Inc. 6411 6675 # … … 6414 6678 # with or without modifications, as long as this notice is preserved. 6415 6679 6416 # serial 76680 # serial 8 6417 6681 6418 6682 # AM_CONDITIONAL(NAME, SHELL-CONDITION) … … 6423 6687 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 6424 6688 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 6425 AC_SUBST([$1_TRUE]) 6426 AC_SUBST([$1_FALSE]) 6689 AC_SUBST([$1_TRUE])dnl 6690 AC_SUBST([$1_FALSE])dnl 6691 _AM_SUBST_NOTMAKE([$1_TRUE])dnl 6692 _AM_SUBST_NOTMAKE([$1_FALSE])dnl 6427 6693 if $2; then 6428 6694 $1_TRUE= … … 6438 6704 fi])]) 6439 6705 6440 6441 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 6706 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 6442 6707 # Free Software Foundation, Inc. 6443 6708 # … … 6446 6711 # with or without modifications, as long as this notice is preserved. 6447 6712 6448 # serial 86713 # serial 9 6449 6714 6450 6715 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be … … 6474 6739 [$1], CXX, [depcc="$CXX" am_compiler_list=], 6475 6740 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 6741 [$1], UPC, [depcc="$UPC" am_compiler_list=], 6476 6742 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 6477 6743 [depcc="$$1" am_compiler_list=]) … … 6539 6805 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 6540 6806 >/dev/null 2>conftest.err && 6807 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6541 6808 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6542 6809 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && … … 6591 6858 fi 6592 6859 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 6593 AC_SUBST([AMDEPBACKSLASH]) 6860 AC_SUBST([AMDEPBACKSLASH])dnl 6861 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 6594 6862 ]) 6595 6863 … … 6616 6884 # Grep'ing the first line is not enough: some people post-process 6617 6885 # each Makefile.in and add a new line on top of each file to say so. 6618 # So let's grep whole file. 6619 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 6886 # Grep'ing the whole file is not good either: AIX grep has a line 6887 # limit of 2048, but all sed's we know have understand at least 4000. 6888 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then 6620 6889 dirpart=`AS_DIRNAME("$mf")` 6621 6890 else … … 6664 6933 # Do all the work for Automake. -*- Autoconf -*- 6665 6934 6666 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 20056667 # Free Software Foundation, Inc.6935 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 6936 # 2005, 2006 Free Software Foundation, Inc. 6668 6937 # 6669 6938 # This file is free software; the Free Software Foundation … … 6688 6957 # release and drop the old call support. 6689 6958 AC_DEFUN([AM_INIT_AUTOMAKE], 6690 [AC_PREREQ([2. 58])dnl6959 [AC_PREREQ([2.60])dnl 6691 6960 dnl Autoconf wants to disallow AM_ names. We explicitly allow 6692 6961 dnl the ones we care about. … … 6694 6963 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 6695 6964 AC_REQUIRE([AC_PROG_INSTALL])dnl 6696 # test to see if srcdir already configured 6697 if test "`cd $srcdir && pwd`" != "`pwd`" && 6698 test -f $srcdir/config.status; then 6699 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 6965 if test "`cd $srcdir && pwd`" != "`pwd`"; then 6966 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 6967 # is not polluted with repeated "-I." 6968 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 6969 # test to see if srcdir already configured 6970 if test -f $srcdir/config.status; then 6971 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 6972 fi 6700 6973 fi 6701 6974 … … 6717 6990 AC_SUBST([VERSION], [$2])], 6718 6991 [_AM_SET_OPTIONS([$1])dnl 6992 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 6993 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 6994 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 6719 6995 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 6720 6996 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl … … 6752 7028 [define([AC_PROG_CXX], 6753 7029 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 7030 AC_PROVIDE_IFELSE([AC_PROG_OBJC], 7031 [_AM_DEPENDENCIES(OBJC)], 7032 [define([AC_PROG_OBJC], 7033 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 6754 7034 ]) 6755 7035 ]) … … 6787 7067 AC_DEFUN([AM_PROG_INSTALL_SH], 6788 7068 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 6789 install_sh=${install_sh-" $am_aux_dir/install-sh"}7069 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 6790 7070 AC_SUBST(install_sh)]) 6791 7071 … … 6884 7164 ]) 6885 7165 6886 # Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc. 7166 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 7167 # Free Software Foundation, Inc. 6887 7168 # 6888 7169 # This file is free software; the Free Software Foundation … … 6890 7171 # with or without modifications, as long as this notice is preserved. 6891 7172 6892 # serial 37173 # serial 5 6893 7174 6894 7175 # AM_PROG_CC_C_O … … 6898 7179 [AC_REQUIRE([AC_PROG_CC_C_O])dnl 6899 7180 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7181 AC_REQUIRE_AUX_FILE([compile])dnl 6900 7182 # FIXME: we rely on the cache variable name because 6901 7183 # there is no other way. … … 6910 7192 CC="$am_aux_dir/compile $CC" 6911 7193 fi 7194 dnl Make sure AC_PROG_CC is never called again, or it will override our 7195 dnl setting of CC. 7196 m4_define([AC_PROG_CC], 7197 [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) 6912 7198 ]) 6913 7199 6914 7200 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 6915 7201 6916 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 200 57202 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 6917 7203 # Free Software Foundation, Inc. 6918 7204 # … … 6921 7207 # with or without modifications, as long as this notice is preserved. 6922 7208 6923 # serial 47209 # serial 5 6924 7210 6925 7211 # AM_MISSING_PROG(NAME, PROGRAM) … … 6937 7223 AC_DEFUN([AM_MISSING_HAS_RUN], 6938 7224 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7225 AC_REQUIRE_AUX_FILE([missing])dnl 6939 7226 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 6940 7227 # Use eval to expand $SHELL … … 6947 7234 ]) 6948 7235 6949 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.7236 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 6950 7237 # 6951 7238 # This file is free software; the Free Software Foundation … … 6955 7242 # AM_PROG_MKDIR_P 6956 7243 # --------------- 6957 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 6958 # 6959 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 6960 # created by `make install' are always world readable, even if the 6961 # installer happens to have an overly restrictive umask (e.g. 077). 6962 # This was a mistake. There are at least two reasons why we must not 6963 # use `-m 0755': 6964 # - it causes special bits like SGID to be ignored, 6965 # - it may be too restrictive (some setups expect 775 directories). 6966 # 6967 # Do not use -m 0755 and let people choose whatever they expect by 6968 # setting umask. 6969 # 6970 # We cannot accept any implementation of `mkdir' that recognizes `-p'. 6971 # Some implementations (such as Solaris 8's) are not thread-safe: if a 6972 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 6973 # concurrently, both version can detect that a/ is missing, but only 6974 # one can create it and the other will error out. Consequently we 6975 # restrict ourselves to GNU make (using the --version option ensures 6976 # this.) 7244 # Check for `mkdir -p'. 6977 7245 AC_DEFUN([AM_PROG_MKDIR_P], 6978 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 6979 # We used to keeping the `.' as first argument, in order to 6980 # allow $(mkdir_p) to be used without argument. As in 6981 # $(mkdir_p) $(somedir) 6982 # where $(somedir) is conditionally defined. However this is wrong 6983 # for two reasons: 6984 # 1. if the package is installed by a user who cannot write `.' 6985 # make install will fail, 6986 # 2. the above comment should most certainly read 6987 # $(mkdir_p) $(DESTDIR)$(somedir) 6988 # so it does not work when $(somedir) is undefined and 6989 # $(DESTDIR) is not. 6990 # To support the latter case, we have to write 6991 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 6992 # so the `.' trick is pointless. 6993 mkdir_p='mkdir -p --' 6994 else 6995 # On NextStep and OpenStep, the `mkdir' command does not 6996 # recognize any option. It will interpret all options as 6997 # directories to create, and then abort because `.' already 6998 # exists. 6999 for d in ./-p ./--version; 7000 do 7001 test -d $d && rmdir $d 7002 done 7003 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 7004 if test -f "$ac_aux_dir/mkinstalldirs"; then 7005 mkdir_p='$(mkinstalldirs)' 7006 else 7007 mkdir_p='$(install_sh) -d' 7008 fi 7009 fi 7010 AC_SUBST([mkdir_p])]) 7246 [AC_PREREQ([2.60])dnl 7247 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 7248 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 7249 dnl while keeping a definition of mkdir_p for backward compatibility. 7250 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 7251 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 7252 dnl Makefile.ins that do not define MKDIR_P, so we do our own 7253 dnl adjustment using top_builddir (which is defined more often than 7254 dnl MKDIR_P). 7255 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 7256 case $mkdir_p in 7257 [[\\/$]]* | ?:[[\\/]]*) ;; 7258 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 7259 esac 7260 ]) 7011 7261 7012 7262 # Helper functions for option handling. -*- Autoconf -*- … … 7042 7292 AC_DEFUN([_AM_IF_OPTION], 7043 7293 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 7294 7295 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 7296 # 7297 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 7298 # 7299 # This program is free software; you can redistribute it and/or modify 7300 # it under the terms of the GNU General Public License as published by 7301 # the Free Software Foundation; either version 2 of the License, or 7302 # (at your option) any later version. 7303 # 7304 # This program is distributed in the hope that it will be useful, but 7305 # WITHOUT ANY WARRANTY; without even the implied warranty of 7306 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7307 # General Public License for more details. 7308 # 7309 # You should have received a copy of the GNU General Public License 7310 # along with this program; if not, write to the Free Software 7311 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7312 # 7313 # As a special exception to the GNU General Public License, if you 7314 # distribute this file as part of a program that contains a 7315 # configuration script generated by Autoconf, you may include it under 7316 # the same distribution terms that you use for the rest of that program. 7317 7318 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 7319 # ---------------------------------- 7320 AC_DEFUN([PKG_PROG_PKG_CONFIG], 7321 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 7322 m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 7323 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 7324 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 7325 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 7326 fi 7327 if test -n "$PKG_CONFIG"; then 7328 _pkg_min_version=m4_default([$1], [0.9.0]) 7329 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 7330 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 7331 AC_MSG_RESULT([yes]) 7332 else 7333 AC_MSG_RESULT([no]) 7334 PKG_CONFIG="" 7335 fi 7336 7337 fi[]dnl 7338 ])# PKG_PROG_PKG_CONFIG 7339 7340 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 7341 # 7342 # Check to see whether a particular set of modules exists. Similar 7343 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 7344 # 7345 # 7346 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 7347 # this or PKG_CHECK_MODULES is called, or make sure to call 7348 # PKG_CHECK_EXISTS manually 7349 # -------------------------------------------------------------- 7350 AC_DEFUN([PKG_CHECK_EXISTS], 7351 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 7352 if test -n "$PKG_CONFIG" && \ 7353 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 7354 m4_ifval([$2], [$2], [:]) 7355 m4_ifvaln([$3], [else 7356 $3])dnl 7357 fi]) 7358 7359 7360 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 7361 # --------------------------------------------- 7362 m4_define([_PKG_CONFIG], 7363 [if test -n "$PKG_CONFIG"; then 7364 if test -n "$$1"; then 7365 pkg_cv_[]$1="$$1" 7366 else 7367 PKG_CHECK_EXISTS([$3], 7368 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 7369 [pkg_failed=yes]) 7370 fi 7371 else 7372 pkg_failed=untried 7373 fi[]dnl 7374 ])# _PKG_CONFIG 7375 7376 # _PKG_SHORT_ERRORS_SUPPORTED 7377 # ----------------------------- 7378 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 7379 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 7380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 7381 _pkg_short_errors_supported=yes 7382 else 7383 _pkg_short_errors_supported=no 7384 fi[]dnl 7385 ])# _PKG_SHORT_ERRORS_SUPPORTED 7386 7387 7388 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 7389 # [ACTION-IF-NOT-FOUND]) 7390 # 7391 # 7392 # Note that if there is a possibility the first call to 7393 # PKG_CHECK_MODULES might not happen, you should be sure to include an 7394 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 7395 # 7396 # 7397 # -------------------------------------------------------------- 7398 AC_DEFUN([PKG_CHECK_MODULES], 7399 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 7400 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 7401 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 7402 7403 pkg_failed=no 7404 AC_MSG_CHECKING([for $1]) 7405 7406 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 7407 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) 7408 7409 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 7410 and $1[]_LIBS to avoid the need to call pkg-config. 7411 See the pkg-config man page for more details.]) 7412 7413 if test $pkg_failed = yes; then 7414 _PKG_SHORT_ERRORS_SUPPORTED 7415 if test $_pkg_short_errors_supported = yes; then 7416 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 7417 else 7418 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 7419 fi 7420 # Put the nasty error message in config.log where it belongs 7421 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 7422 7423 ifelse([$4], , [AC_MSG_ERROR(dnl 7424 [Package requirements ($2) were not met: 7425 7426 $$1_PKG_ERRORS 7427 7428 Consider adjusting the PKG_CONFIG_PATH environment variable if you 7429 installed software in a non-standard prefix. 7430 7431 _PKG_TEXT 7432 ])], 7433 [AC_MSG_RESULT([no]) 7434 $4]) 7435 elif test $pkg_failed = untried; then 7436 ifelse([$4], , [AC_MSG_FAILURE(dnl 7437 [The pkg-config script could not be found or is too old. Make sure it 7438 is in your PATH or set the PKG_CONFIG environment variable to the full 7439 path to pkg-config. 7440 7441 _PKG_TEXT 7442 7443 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 7444 [$4]) 7445 else 7446 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 7447 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 7448 AC_MSG_RESULT([yes]) 7449 ifelse([$3], , :, [$3]) 7450 fi[]dnl 7451 ])# PKG_CHECK_MODULES 7044 7452 7045 7453 # Check to make sure that the build environment is sane. -*- Autoconf -*- … … 7120 7528 AC_CHECK_TOOL([STRIP], [strip], :) 7121 7529 fi 7122 INSTALL_STRIP_PROGRAM="\$ {SHELL} \$(install_sh) -c -s"7530 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 7123 7531 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 7532 7533 # Copyright (C) 2006 Free Software Foundation, Inc. 7534 # 7535 # This file is free software; the Free Software Foundation 7536 # gives unlimited permission to copy and/or distribute it, 7537 # with or without modifications, as long as this notice is preserved. 7538 7539 # _AM_SUBST_NOTMAKE(VARIABLE) 7540 # --------------------------- 7541 # Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in. 7542 # This macro is traced by Automake. 7543 AC_DEFUN([_AM_SUBST_NOTMAKE]) 7124 7544 7125 7545 # Check how to create a tarball. -*- Autoconf -*-
Note: See TracChangeset
for help on using the changeset viewer.