Changes in / [7428ad9:6d44da1]
- Files:
-
- 9 added
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.in
r7428ad9 r6d44da1 260 260 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 261 261 CFACOMPILE = $(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS) 262 LTCFACOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 263 $(LIBTOOLFLAGS) --mode=compile $(CFACC) $(DEFS) \ 264 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) \ 265 $(AM_CFLAGS) $(CFLAGS) 266 262 267 AM_V_CFA = $(am__v_CFA_@AM_V@) 263 268 am__v_CFA_ = $(am__v_CFA_@AM_DEFAULT_V@) … … 287 292 288 293 .SUFFIXES: 289 .SUFFIXES: .cfa . o294 .SUFFIXES: .cfa .lo .o 290 295 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/src/cfa.make $(am__configure_deps) 291 296 @for dep in $?; do \ … … 480 485 $(am__mv) $$depbase.Tpo $$depbase.Po 481 486 487 <<<<<<< HEAD 488 .cfa.lo: 489 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 490 $(LTCFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 491 $(am__mv) $$depbase.Tpo $$depbase.Plo 492 493 LIBFIBRE_DIR ?= /home/tdelisle/software/KOS/src/ 494 495 ======= 496 >>>>>>> master 482 497 .NOTPARALLEL: 483 498 -
driver/cfa.cc
r7428ad9 r6d44da1 405 405 406 406 // include the cfa library in case it's needed 407 args[nargs] = ( *new string( string("-L" ) + libdir + (intree ? "/src" : "")) ).c_str(); 407 args[nargs] = ( *new string( string("-L" ) + libdir + (intree ? "/src/.libs" : "")) ).c_str(); 408 nargs += 1; 409 args[nargs] = ( *new string( string("-Wl,-rpath," ) + libdir + (intree ? "/src/.libs" : "")) ).c_str(); 408 410 nargs += 1; 409 411 args[nargs] = "-lcfa"; -
libcfa/Makefile.am
r7428ad9 r6d44da1 16 16 17 17 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 18 ACLOCAL_AMFLAGS = -I automake 18 19 SUBDIRS = prelude src # order important -
libcfa/Makefile.in
r7428ad9 r6d44da1 89 89 PRE_UNINSTALL = : 90 90 POST_UNINSTALL = : 91 build_triplet = @build@ 92 host_triplet = @host@ 91 93 subdir = . 92 94 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 93 am__aclocal_m4_deps = $(top_srcdir)/../automake/cfa.m4 \ 94 $(top_srcdir)/configure.ac 95 am__aclocal_m4_deps = $(top_srcdir)/automake/libtool.m4 \ 96 $(top_srcdir)/automake/ltoptions.m4 \ 97 $(top_srcdir)/automake/ltsugar.m4 \ 98 $(top_srcdir)/automake/ltversion.m4 \ 99 $(top_srcdir)/automake/lt~obsolete.m4 \ 100 $(top_srcdir)/../automake/cfa.m4 $(top_srcdir)/configure.ac 95 101 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 96 102 $(ACLOCAL_M4) … … 158 164 CSCOPE = cscope 159 165 DIST_SUBDIRS = $(SUBDIRS) 160 am__DIST_COMMON = $(srcdir)/Makefile.in \ 161 $(top_srcdir)/./automake/compile \ 162 $(top_srcdir)/./automake/install-sh \ 163 $(top_srcdir)/./automake/missing ./automake/compile \ 164 ./automake/config.guess ./automake/config.sub \ 165 ./automake/depcomp ./automake/install-sh ./automake/missing 166 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/automake/compile \ 167 $(top_srcdir)/automake/config.guess \ 168 $(top_srcdir)/automake/config.sub \ 169 $(top_srcdir)/automake/install-sh \ 170 $(top_srcdir)/automake/ltmain.sh \ 171 $(top_srcdir)/automake/missing automake/compile \ 172 automake/config.guess automake/config.sub automake/depcomp \ 173 automake/install-sh automake/ltmain.sh automake/missing 166 174 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 167 175 distdir = $(PACKAGE)-$(VERSION) … … 209 217 AMTAR = @AMTAR@ 210 218 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 219 AR = @AR@ 211 220 ARCHITECTURE = @ARCHITECTURE@ 212 221 ARCH_FLAGS = @ARCH_FLAGS@ … … 232 241 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 233 242 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 243 CPP = @CPP@ 234 244 CPPFLAGS = @CPPFLAGS@ 235 245 CXX = @CXX@ 246 CXXCPP = @CXXCPP@ 236 247 CXXDEPMODE = @CXXDEPMODE@ 237 248 CXXFLAGS = @CXXFLAGS@ … … 239 250 DEFS = @DEFS@ 240 251 DEPDIR = @DEPDIR@ 252 DLLTOOL = @DLLTOOL@ 241 253 DRIVER_DIR = @DRIVER_DIR@ 254 DSYMUTIL = @DSYMUTIL@ 255 DUMPBIN = @DUMPBIN@ 242 256 ECHO_C = @ECHO_C@ 243 257 ECHO_N = @ECHO_N@ 244 258 ECHO_T = @ECHO_T@ 259 EGREP = @EGREP@ 245 260 EXEEXT = @EXEEXT@ 261 FGREP = @FGREP@ 262 GREP = @GREP@ 246 263 INSTALL = @INSTALL@ 247 264 INSTALL_DATA = @INSTALL_DATA@ … … 249 266 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 250 267 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 268 LD = @LD@ 251 269 LDFLAGS = @LDFLAGS@ 252 270 LIBOBJS = @LIBOBJS@ 253 271 LIBS = @LIBS@ 272 LIBTOOL = @LIBTOOL@ 273 LIPO = @LIPO@ 274 LN_S = @LN_S@ 254 275 LTLIBOBJS = @LTLIBOBJS@ 276 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 255 277 MAKEINFO = @MAKEINFO@ 278 MANIFEST_TOOL = @MANIFEST_TOOL@ 256 279 MKDIR_P = @MKDIR_P@ 280 NM = @NM@ 281 NMEDIT = @NMEDIT@ 282 OBJDUMP = @OBJDUMP@ 257 283 OBJEXT = @OBJEXT@ 284 OTOOL = @OTOOL@ 285 OTOOL64 = @OTOOL64@ 258 286 PACKAGE = @PACKAGE@ 259 287 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 265 293 PATH_SEPARATOR = @PATH_SEPARATOR@ 266 294 RANLIB = @RANLIB@ 295 SED = @SED@ 267 296 SET_MAKE = @SET_MAKE@ 268 297 SHELL = @SHELL@ … … 273 302 abs_top_builddir = @abs_top_builddir@ 274 303 abs_top_srcdir = @abs_top_srcdir@ 304 ac_ct_AR = @ac_ct_AR@ 275 305 ac_ct_CC = @ac_ct_CC@ 276 306 ac_ct_CXX = @ac_ct_CXX@ 307 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 277 308 am__include = @am__include@ 278 309 am__leading_dot = @am__leading_dot@ … … 281 312 am__untar = @am__untar@ 282 313 bindir = @bindir@ 314 build = @build@ 283 315 build_alias = @build_alias@ 316 build_cpu = @build_cpu@ 317 build_os = @build_os@ 318 build_vendor = @build_vendor@ 284 319 builddir = @builddir@ 285 320 datadir = @datadir@ … … 288 323 dvidir = @dvidir@ 289 324 exec_prefix = @exec_prefix@ 325 host = @host@ 290 326 host_alias = @host_alias@ 327 host_cpu = @host_cpu@ 328 host_os = @host_os@ 329 host_vendor = @host_vendor@ 291 330 htmldir = @htmldir@ 292 331 includedir = @includedir@ … … 314 353 top_srcdir = @top_srcdir@ 315 354 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 355 ACLOCAL_AMFLAGS = -I automake 316 356 SUBDIRS = prelude src # order important 317 357 all: all-recursive … … 351 391 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 352 392 $(am__aclocal_m4_deps): 393 394 mostlyclean-libtool: 395 -rm -f *.lo 396 397 clean-libtool: 398 -rm -rf .libs _libs 399 400 distclean-libtool: 401 -rm -f libtool config.lt 353 402 354 403 # This directory's subdirectories are mostly independent; you can cd … … 683 732 clean: clean-recursive 684 733 685 clean-am: clean-generic mostlyclean-am734 clean-am: clean-generic clean-libtool mostlyclean-am 686 735 687 736 distclean: distclean-recursive 688 737 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 689 738 -rm -f Makefile 690 distclean-am: clean-am distclean-generic distclean-tags 739 distclean-am: clean-am distclean-generic distclean-libtool \ 740 distclean-tags 691 741 692 742 dvi: dvi-recursive … … 738 788 mostlyclean: mostlyclean-recursive 739 789 740 mostlyclean-am: mostlyclean-generic 790 mostlyclean-am: mostlyclean-generic mostlyclean-libtool 741 791 742 792 pdf: pdf-recursive … … 754 804 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ 755 805 am--refresh check check-am clean clean-cscope clean-generic \ 756 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ 757 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ 758 distcheck distclean distclean-generic distclean-tags \ 759 distcleancheck distdir distuninstallcheck dvi dvi-am html \ 760 html-am info info-am install install-am install-data \ 761 install-data-am install-dvi install-dvi-am install-exec \ 762 install-exec-am install-html install-html-am install-info \ 763 install-info-am install-man install-pdf install-pdf-am \ 764 install-ps install-ps-am install-strip installcheck \ 765 installcheck-am installdirs installdirs-am maintainer-clean \ 766 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ 767 pdf-am ps ps-am tags tags-am uninstall uninstall-am 806 clean-libtool cscope cscopelist-am ctags ctags-am dist \ 807 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ 808 dist-xz dist-zip distcheck distclean distclean-generic \ 809 distclean-libtool distclean-tags distcleancheck distdir \ 810 distuninstallcheck dvi dvi-am html html-am info info-am \ 811 install install-am install-data install-data-am install-dvi \ 812 install-dvi-am install-exec install-exec-am install-html \ 813 install-html-am install-info install-info-am install-man \ 814 install-pdf install-pdf-am install-ps install-ps-am \ 815 install-strip installcheck installcheck-am installdirs \ 816 installdirs-am maintainer-clean maintainer-clean-generic \ 817 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ 818 ps ps-am tags tags-am uninstall uninstall-am 768 819 769 820 .PRECIOUS: Makefile -
libcfa/aclocal.m4
r7428ad9 r6d44da1 1171 1171 ]) # _AM_PROG_TAR 1172 1172 1173 m4_include([automake/libtool.m4]) 1174 m4_include([automake/ltoptions.m4]) 1175 m4_include([automake/ltsugar.m4]) 1176 m4_include([automake/ltversion.m4]) 1177 m4_include([automake/lt~obsolete.m4]) -
libcfa/configure
r7428ad9 r6d44da1 198 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209 test \$(( 1 + 1 )) = 2 || exit 1" 201 210 if (eval "$as_required") 2>/dev/null; then : 202 211 as_have_required=yes … … 556 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 557 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 558 569 559 570 test -n "$DJDIR" || exec 7<&0 </dev/null … … 585 596 PACKAGE_URL='' 586 597 598 # Factoring default headers for most tests. 599 ac_includes_default="\ 600 #include <stdio.h> 601 #ifdef HAVE_SYS_TYPES_H 602 # include <sys/types.h> 603 #endif 604 #ifdef HAVE_SYS_STAT_H 605 # include <sys/stat.h> 606 #endif 607 #ifdef STDC_HEADERS 608 # include <stdlib.h> 609 # include <stddef.h> 610 #else 611 # ifdef HAVE_STDLIB_H 612 # include <stdlib.h> 613 # endif 614 #endif 615 #ifdef HAVE_STRING_H 616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617 # include <memory.h> 618 # endif 619 # include <string.h> 620 #endif 621 #ifdef HAVE_STRINGS_H 622 # include <strings.h> 623 #endif 624 #ifdef HAVE_INTTYPES_H 625 # include <inttypes.h> 626 #endif 627 #ifdef HAVE_STDINT_H 628 # include <stdint.h> 629 #endif 630 #ifdef HAVE_UNISTD_H 631 # include <unistd.h> 632 #endif" 633 587 634 ac_subst_vars='am__EXEEXT_FALSE 588 635 am__EXEEXT_TRUE 589 636 LTLIBOBJS 590 637 LIBOBJS 591 RANLIB592 638 am__fastdepCCAS_FALSE 593 639 am__fastdepCCAS_TRUE … … 595 641 CCASFLAGS 596 642 CCAS 643 CXXCPP 644 am__fastdepCXX_FALSE 645 am__fastdepCXX_TRUE 646 CXXDEPMODE 647 ac_ct_CXX 648 CXXFLAGS 649 CXX 650 CPP 651 LT_SYS_LIBRARY_PATH 652 OTOOL64 653 OTOOL 654 LIPO 655 NMEDIT 656 DSYMUTIL 657 MANIFEST_TOOL 658 RANLIB 659 ac_ct_AR 660 AR 661 DLLTOOL 662 OBJDUMP 663 LN_S 664 NM 665 ac_ct_DUMPBIN 666 DUMPBIN 667 LD 668 FGREP 669 EGREP 670 GREP 671 SED 597 672 am__fastdepCC_FALSE 598 673 am__fastdepCC_TRUE 599 674 CCDEPMODE 600 ac_ct_CC601 CFLAGS602 CC603 am__fastdepCXX_FALSE604 am__fastdepCXX_TRUE605 CXXDEPMODE606 675 am__nodep 607 676 AMDEPBACKSLASH … … 613 682 OBJEXT 614 683 EXEEXT 615 ac_ct_C XX684 ac_ct_CC 616 685 CPPFLAGS 617 686 LDFLAGS 618 CXXFLAGS 619 CXX 687 CFLAGS 688 CC 689 host_os 690 host_vendor 691 host_cpu 692 host 693 build_os 694 build_vendor 695 build_cpu 696 build 697 LIBTOOL 620 698 CFA_LIBDIR 621 699 CFA_BINDIR … … 705 783 enable_silent_rules 706 784 with_cfa_name 785 enable_shared 786 enable_static 787 with_pic 788 enable_fast_install 789 with_aix_soname 707 790 enable_dependency_tracking 791 with_gnu_ld 792 with_sysroot 793 enable_libtool_lock 708 794 ' 709 795 ac_precious_vars='build_alias … … 713 799 CONFIGURATION 714 800 DRIVER_DIR 715 C XX716 C XXFLAGS801 CC 802 CFLAGS 717 803 LDFLAGS 718 804 LIBS 719 805 CPPFLAGS 806 LT_SYS_LIBRARY_PATH 807 CPP 808 CXX 809 CXXFLAGS 720 810 CCC 721 CC 722 CFLAGS 811 CXXCPP 723 812 CCAS 724 813 CCASFLAGS' … … 1335 1424 --program-suffix=SUFFIX append SUFFIX to installed program names 1336 1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1426 1427 System types: 1428 --build=BUILD configure for building on BUILD [guessed] 1429 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1337 1430 _ACEOF 1338 1431 fi … … 1350 1443 --enable-silent-rules less verbose build output (undo: "make V=1") 1351 1444 --disable-silent-rules verbose build output (undo: "make V=0") 1445 --enable-shared[=PKGS] build shared libraries [default=yes] 1446 --enable-static[=PKGS] build static libraries [default=yes] 1447 --enable-fast-install[=PKGS] 1448 optimize for fast installation [default=yes] 1352 1449 --enable-dependency-tracking 1353 1450 do not reject slow dependency extractors 1354 1451 --disable-dependency-tracking 1355 1452 speeds up one-time build 1453 --disable-libtool-lock avoid locking (might break parallel builds) 1356 1454 1357 1455 Optional Packages: … … 1359 1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1360 1458 --with-cfa-name=NAME NAME too which cfa will be installed 1459 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1460 both] 1461 --with-aix-soname=aix|svr4|both 1462 shared library versioning (aka "SONAME") variant to 1463 provide on AIX, [default=aix]. 1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1465 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1466 compiler's sysroot if not specified). 1361 1467 1362 1468 Some influential environment variables: … … 1367 1473 deubg, nodebug, nolib (prelude-only) 1368 1474 DRIVER_DIR The path to the cforall driver directory 1369 C XX C++compiler command1370 C XXFLAGS C++compiler flags1475 CC C compiler command 1476 CFLAGS C compiler flags 1371 1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1372 1478 nonstandard directory <lib dir> … … 1374 1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1375 1481 you have headers in a nonstandard directory <include dir> 1376 CC C compiler command 1377 CFLAGS C compiler flags 1482 LT_SYS_LIBRARY_PATH 1483 User-defined run-time library search path. 1484 CPP C preprocessor 1485 CXX C++ compiler command 1486 CXXFLAGS C++ compiler flags 1487 CXXCPP C++ preprocessor 1378 1488 CCAS assembler compiler command (defaults to CC) 1379 1489 CCASFLAGS assembler compiler flags (defaults to CFLAGS) … … 1458 1568 ## Autoconf initialization. ## 1459 1569 ## ------------------------ ## 1570 1571 # ac_fn_c_try_compile LINENO 1572 # -------------------------- 1573 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1574 ac_fn_c_try_compile () 1575 { 1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1577 rm -f conftest.$ac_objext 1578 if { { ac_try="$ac_compile" 1579 case "(($ac_try" in 1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1581 *) ac_try_echo=$ac_try;; 1582 esac 1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1584 $as_echo "$ac_try_echo"; } >&5 1585 (eval "$ac_compile") 2>conftest.err 1586 ac_status=$? 1587 if test -s conftest.err; then 1588 grep -v '^ *+' conftest.err >conftest.er1 1589 cat conftest.er1 >&5 1590 mv -f conftest.er1 conftest.err 1591 fi 1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1593 test $ac_status = 0; } && { 1594 test -z "$ac_c_werror_flag" || 1595 test ! -s conftest.err 1596 } && test -s conftest.$ac_objext; then : 1597 ac_retval=0 1598 else 1599 $as_echo "$as_me: failed program was:" >&5 1600 sed 's/^/| /' conftest.$ac_ext >&5 1601 1602 ac_retval=1 1603 fi 1604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1605 as_fn_set_status $ac_retval 1606 1607 } # ac_fn_c_try_compile 1608 1609 # ac_fn_c_try_link LINENO 1610 # ----------------------- 1611 # Try to link conftest.$ac_ext, and return whether this succeeded. 1612 ac_fn_c_try_link () 1613 { 1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1615 rm -f conftest.$ac_objext conftest$ac_exeext 1616 if { { ac_try="$ac_link" 1617 case "(($ac_try" in 1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1619 *) ac_try_echo=$ac_try;; 1620 esac 1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1622 $as_echo "$ac_try_echo"; } >&5 1623 (eval "$ac_link") 2>conftest.err 1624 ac_status=$? 1625 if test -s conftest.err; then 1626 grep -v '^ *+' conftest.err >conftest.er1 1627 cat conftest.er1 >&5 1628 mv -f conftest.er1 conftest.err 1629 fi 1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1631 test $ac_status = 0; } && { 1632 test -z "$ac_c_werror_flag" || 1633 test ! -s conftest.err 1634 } && test -s conftest$ac_exeext && { 1635 test "$cross_compiling" = yes || 1636 test -x conftest$ac_exeext 1637 }; then : 1638 ac_retval=0 1639 else 1640 $as_echo "$as_me: failed program was:" >&5 1641 sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644 fi 1645 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1646 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1647 # interfere with the next link command; also delete a directory that is 1648 # left behind by Apple's compiler. We do this before executing the actions. 1649 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653 } # ac_fn_c_try_link 1654 1655 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1656 # ------------------------------------------------------- 1657 # Tests whether HEADER exists and can be compiled using the include files in 1658 # INCLUDES, setting the cache variable VAR accordingly. 1659 ac_fn_c_check_header_compile () 1660 { 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1663 $as_echo_n "checking for $2... " >&6; } 1664 if eval \${$3+:} false; then : 1665 $as_echo_n "(cached) " >&6 1666 else 1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1668 /* end confdefs.h. */ 1669 $4 1670 #include <$2> 1671 _ACEOF 1672 if ac_fn_c_try_compile "$LINENO"; then : 1673 eval "$3=yes" 1674 else 1675 eval "$3=no" 1676 fi 1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1678 fi 1679 eval ac_res=\$$3 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1681 $as_echo "$ac_res" >&6; } 1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1683 1684 } # ac_fn_c_check_header_compile 1685 1686 # ac_fn_c_try_cpp LINENO 1687 # ---------------------- 1688 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1689 ac_fn_c_try_cpp () 1690 { 1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1692 if { { ac_try="$ac_cpp conftest.$ac_ext" 1693 case "(($ac_try" in 1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1695 *) ac_try_echo=$ac_try;; 1696 esac 1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1698 $as_echo "$ac_try_echo"; } >&5 1699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1700 ac_status=$? 1701 if test -s conftest.err; then 1702 grep -v '^ *+' conftest.err >conftest.er1 1703 cat conftest.er1 >&5 1704 mv -f conftest.er1 conftest.err 1705 fi 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } > conftest.i && { 1708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1709 test ! -s conftest.err 1710 }; then : 1711 ac_retval=0 1712 else 1713 $as_echo "$as_me: failed program was:" >&5 1714 sed 's/^/| /' conftest.$ac_ext >&5 1715 1716 ac_retval=1 1717 fi 1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1719 as_fn_set_status $ac_retval 1720 1721 } # ac_fn_c_try_cpp 1722 1723 # ac_fn_c_try_run LINENO 1724 # ---------------------- 1725 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1726 # that executables *can* be run. 1727 ac_fn_c_try_run () 1728 { 1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1730 if { { ac_try="$ac_link" 1731 case "(($ac_try" in 1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1733 *) ac_try_echo=$ac_try;; 1734 esac 1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1736 $as_echo "$ac_try_echo"; } >&5 1737 (eval "$ac_link") 2>&5 1738 ac_status=$? 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1741 { { case "(($ac_try" in 1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1743 *) ac_try_echo=$ac_try;; 1744 esac 1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1746 $as_echo "$ac_try_echo"; } >&5 1747 (eval "$ac_try") 2>&5 1748 ac_status=$? 1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1750 test $ac_status = 0; }; }; then : 1751 ac_retval=0 1752 else 1753 $as_echo "$as_me: program exited with status $ac_status" >&5 1754 $as_echo "$as_me: failed program was:" >&5 1755 sed 's/^/| /' conftest.$ac_ext >&5 1756 1757 ac_retval=$ac_status 1758 fi 1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763 } # ac_fn_c_try_run 1764 1765 # ac_fn_c_check_func LINENO FUNC VAR 1766 # ---------------------------------- 1767 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1768 ac_fn_c_check_func () 1769 { 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1772 $as_echo_n "checking for $2... " >&6; } 1773 if eval \${$3+:} false; then : 1774 $as_echo_n "(cached) " >&6 1775 else 1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1777 /* end confdefs.h. */ 1778 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1779 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1780 #define $2 innocuous_$2 1781 1782 /* System header to define __stub macros and hopefully few prototypes, 1783 which can conflict with char $2 (); below. 1784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1785 <limits.h> exists even on freestanding compilers. */ 1786 1787 #ifdef __STDC__ 1788 # include <limits.h> 1789 #else 1790 # include <assert.h> 1791 #endif 1792 1793 #undef $2 1794 1795 /* Override any GCC internal prototype to avoid an error. 1796 Use char because int might match the return type of a GCC 1797 builtin and then its argument prototype would still apply. */ 1798 #ifdef __cplusplus 1799 extern "C" 1800 #endif 1801 char $2 (); 1802 /* The GNU C library defines this for functions which it implements 1803 to always fail with ENOSYS. Some functions are actually named 1804 something starting with __ and the normal name is an alias. */ 1805 #if defined __stub_$2 || defined __stub___$2 1806 choke me 1807 #endif 1808 1809 int 1810 main () 1811 { 1812 return $2 (); 1813 ; 1814 return 0; 1815 } 1816 _ACEOF 1817 if ac_fn_c_try_link "$LINENO"; then : 1818 eval "$3=yes" 1819 else 1820 eval "$3=no" 1821 fi 1822 rm -f core conftest.err conftest.$ac_objext \ 1823 conftest$ac_exeext conftest.$ac_ext 1824 fi 1825 eval ac_res=\$$3 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1827 $as_echo "$ac_res" >&6; } 1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1829 1830 } # ac_fn_c_check_func 1460 1831 1461 1832 # ac_fn_cxx_try_compile LINENO … … 1497 1868 } # ac_fn_cxx_try_compile 1498 1869 1499 # ac_fn_c _try_compileLINENO1500 # ------------------------ --1501 # Try to compileconftest.$ac_ext, and return whether this succeeded.1502 ac_fn_c _try_compile()1870 # ac_fn_cxx_try_cpp LINENO 1871 # ------------------------ 1872 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1873 ac_fn_cxx_try_cpp () 1503 1874 { 1504 1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1505 rm -f conftest.$ac_objext 1506 if { { ac_try="$ac_compile" 1876 if { { ac_try="$ac_cpp conftest.$ac_ext" 1507 1877 case "(($ac_try" in 1508 1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; … … 1511 1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1512 1882 $as_echo "$ac_try_echo"; } >&5 1513 (eval "$ac_compile") 2>conftest.err 1883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1884 ac_status=$? 1885 if test -s conftest.err; then 1886 grep -v '^ *+' conftest.err >conftest.er1 1887 cat conftest.er1 >&5 1888 mv -f conftest.er1 conftest.err 1889 fi 1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1891 test $ac_status = 0; } > conftest.i && { 1892 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1893 test ! -s conftest.err 1894 }; then : 1895 ac_retval=0 1896 else 1897 $as_echo "$as_me: failed program was:" >&5 1898 sed 's/^/| /' conftest.$ac_ext >&5 1899 1900 ac_retval=1 1901 fi 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 as_fn_set_status $ac_retval 1904 1905 } # ac_fn_cxx_try_cpp 1906 1907 # ac_fn_cxx_try_link LINENO 1908 # ------------------------- 1909 # Try to link conftest.$ac_ext, and return whether this succeeded. 1910 ac_fn_cxx_try_link () 1911 { 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 rm -f conftest.$ac_objext conftest$ac_exeext 1914 if { { ac_try="$ac_link" 1915 case "(($ac_try" in 1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1917 *) ac_try_echo=$ac_try;; 1918 esac 1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1920 $as_echo "$ac_try_echo"; } >&5 1921 (eval "$ac_link") 2>conftest.err 1514 1922 ac_status=$? 1515 1923 if test -s conftest.err; then … … 1520 1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1521 1929 test $ac_status = 0; } && { 1522 test -z "$ac_c _werror_flag" ||1930 test -z "$ac_cxx_werror_flag" || 1523 1931 test ! -s conftest.err 1524 } && test -s conftest.$ac_objext; then : 1932 } && test -s conftest$ac_exeext && { 1933 test "$cross_compiling" = yes || 1934 test -x conftest$ac_exeext 1935 }; then : 1525 1936 ac_retval=0 1526 1937 else … … 1530 1941 ac_retval=1 1531 1942 fi 1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1945 # interfere with the next link command; also delete a directory that is 1946 # left behind by Apple's compiler. We do this before executing the actions. 1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1532 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1533 1949 as_fn_set_status $ac_retval 1534 1950 1535 } # ac_fn_c _try_compile1951 } # ac_fn_cxx_try_link 1536 1952 cat >config.log <<_ACEOF 1537 1953 This file contains any messages produced by compilers while … … 1887 2303 1888 2304 ac_aux_dir= 1889 for ac_dir in ./automake "$srcdir"/./automake; do2305 for ac_dir in automake "$srcdir"/automake; do 1890 2306 if test -f "$ac_dir/install-sh"; then 1891 2307 ac_aux_dir=$ac_dir … … 1903 2319 done 1904 2320 if test -z "$ac_aux_dir"; then 1905 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./automake \"$srcdir\"/./automake" "$LINENO" 52321 as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5 1906 2322 fi 1907 2323 … … 1913 2329 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1914 2330 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2331 1915 2332 1916 2333 … … 2648 3065 2649 3066 # Checks for programs. 2650 ac_ext=cpp 2651 ac_cpp='$CXXCPP $CPPFLAGS' 2652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2655 if test -z "$CXX"; then 2656 if test -n "$CCC"; then 2657 CXX=$CCC 2658 else 2659 if test -n "$ac_tool_prefix"; then 2660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2661 do 2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3067 case `pwd` in 3068 *\ * | *\ *) 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3070 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3071 esac 3072 3073 3074 3075 macro_version='2.4.6' 3076 macro_revision='2.4.6' 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 ltmain=$ac_aux_dir/ltmain.sh 3091 3092 # Make sure we can run config.sub. 3093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3094 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3095 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3097 $as_echo_n "checking build system type... " >&6; } 3098 if ${ac_cv_build+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100 else 3101 ac_build_alias=$build_alias 3102 test "x$ac_build_alias" = x && 3103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3104 test "x$ac_build_alias" = x && 3105 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3107 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3108 3109 fi 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3111 $as_echo "$ac_cv_build" >&6; } 3112 case $ac_cv_build in 3113 *-*-*) ;; 3114 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3115 esac 3116 build=$ac_cv_build 3117 ac_save_IFS=$IFS; IFS='-' 3118 set x $ac_cv_build 3119 shift 3120 build_cpu=$1 3121 build_vendor=$2 3122 shift; shift 3123 # Remember, the first character of IFS is used to create $*, 3124 # except with old shells: 3125 build_os=$* 3126 IFS=$ac_save_IFS 3127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3128 3129 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3131 $as_echo_n "checking host system type... " >&6; } 3132 if ${ac_cv_host+:} false; then : 3133 $as_echo_n "(cached) " >&6 3134 else 3135 if test "x$host_alias" = x; then 3136 ac_cv_host=$ac_cv_build 3137 else 3138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3139 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3140 fi 3141 3142 fi 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3144 $as_echo "$ac_cv_host" >&6; } 3145 case $ac_cv_host in 3146 *-*-*) ;; 3147 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3148 esac 3149 host=$ac_cv_host 3150 ac_save_IFS=$IFS; IFS='-' 3151 set x $ac_cv_host 3152 shift 3153 host_cpu=$1 3154 host_vendor=$2 3155 shift; shift 3156 # Remember, the first character of IFS is used to create $*, 3157 # except with old shells: 3158 host_os=$* 3159 IFS=$ac_save_IFS 3160 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3161 3162 3163 # Backslashify metacharacters that are still active within 3164 # double-quoted strings. 3165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3166 3167 # Same as above, but do not quote variable references. 3168 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3169 3170 # Sed substitution to delay expansion of an escaped shell variable in a 3171 # double_quote_subst'ed string. 3172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3173 3174 # Sed substitution to delay expansion of an escaped single quote. 3175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3176 3177 # Sed substitution to avoid accidental globbing in evaled expressions 3178 no_glob_subst='s/\*/\\\*/g' 3179 3180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3181 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3182 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3183 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3185 $as_echo_n "checking how to print strings... " >&6; } 3186 # Test print first, because it will be a builtin if present. 3187 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3188 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3189 ECHO='print -r --' 3190 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3191 ECHO='printf %s\n' 3192 else 3193 # Use this function as a fallback that always works. 3194 func_fallback_echo () 3195 { 3196 eval 'cat <<_LTECHO_EOF 3197 $1 3198 _LTECHO_EOF' 3199 } 3200 ECHO='func_fallback_echo' 3201 fi 3202 3203 # func_echo_all arg... 3204 # Invoke $ECHO with all args, space-separated. 3205 func_echo_all () 3206 { 3207 $ECHO "" 3208 } 3209 3210 case $ECHO in 3211 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3212 $as_echo "printf" >&6; } ;; 3213 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3214 $as_echo "print -r" >&6; } ;; 3215 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3216 $as_echo "cat" >&6; } ;; 3217 esac 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 DEPDIR="${am__leading_dot}deps" 3233 3234 ac_config_commands="$ac_config_commands depfiles" 3235 3236 3237 am_make=${MAKE-make} 3238 cat > confinc << 'END' 3239 am__doit: 3240 @echo this is the am__doit target 3241 .PHONY: am__doit 3242 END 3243 # If we don't find an include directive, just comment out the code. 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3245 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3246 am__include="#" 3247 am__quote= 3248 _am_result=none 3249 # First try GNU make style include. 3250 echo "include confinc" > confmf 3251 # Ignore all kinds of additional output from 'make'. 3252 case `$am_make -s -f confmf 2> /dev/null` in #( 3253 *the\ am__doit\ target*) 3254 am__include=include 3255 am__quote= 3256 _am_result=GNU 3257 ;; 3258 esac 3259 # Now try BSD make style include. 3260 if test "$am__include" = "#"; then 3261 echo '.include "confinc"' > confmf 3262 case `$am_make -s -f confmf 2> /dev/null` in #( 3263 *the\ am__doit\ target*) 3264 am__include=.include 3265 am__quote="\"" 3266 _am_result=BSD 3267 ;; 3268 esac 3269 fi 3270 3271 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3273 $as_echo "$_am_result" >&6; } 3274 rm -f confinc confmf 3275 3276 # Check whether --enable-dependency-tracking was given. 3277 if test "${enable_dependency_tracking+set}" = set; then : 3278 enableval=$enable_dependency_tracking; 3279 fi 3280 3281 if test "x$enable_dependency_tracking" != xno; then 3282 am_depcomp="$ac_aux_dir/depcomp" 3283 AMDEPBACKSLASH='\' 3284 am__nodep='_no' 3285 fi 3286 if test "x$enable_dependency_tracking" != xno; then 3287 AMDEP_TRUE= 3288 AMDEP_FALSE='#' 3289 else 3290 AMDEP_TRUE='#' 3291 AMDEP_FALSE= 3292 fi 3293 3294 3295 ac_ext=c 3296 ac_cpp='$CPP $CPPFLAGS' 3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3300 if test -n "$ac_tool_prefix"; then 3301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3302 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2664 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2665 3304 $as_echo_n "checking for $ac_word... " >&6; } 2666 if ${ac_cv_prog_C XX+:} false; then :3305 if ${ac_cv_prog_CC+:} false; then : 2667 3306 $as_echo_n "(cached) " >&6 2668 3307 else 2669 if test -n "$C XX"; then2670 ac_cv_prog_C XX="$CXX" # Let the user override the test.3308 if test -n "$CC"; then 3309 ac_cv_prog_CC="$CC" # Let the user override the test. 2671 3310 else 2672 3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2677 3316 for ac_exec_ext in '' $ac_executable_extensions; do 2678 3317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2679 ac_cv_prog_C XX="$ac_tool_prefix$ac_prog"3318 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2680 3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 3320 break 2 … … 2687 3326 fi 2688 3327 fi 2689 C XX=$ac_cv_prog_CXX2690 if test -n "$C XX"; then2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $C XX" >&52692 $as_echo "$C XX" >&6; }3328 CC=$ac_cv_prog_CC 3329 if test -n "$CC"; then 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3331 $as_echo "$CC" >&6; } 2693 3332 else 2694 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 2697 3336 2698 3337 2699 test -n "$CXX" && break 2700 done 2701 fi 2702 if test -z "$CXX"; then 2703 ac_ct_CXX=$CXX 2704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2705 do 2706 # Extract the first word of "$ac_prog", so it can be a program name with args. 2707 set dummy $ac_prog; ac_word=$2 3338 fi 3339 if test -z "$ac_cv_prog_CC"; then 3340 ac_ct_CC=$CC 3341 # Extract the first word of "gcc", so it can be a program name with args. 3342 set dummy gcc; ac_word=$2 2708 3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709 3344 $as_echo_n "checking for $ac_word... " >&6; } 2710 if ${ac_cv_prog_ac_ct_C XX+:} false; then :3345 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2711 3346 $as_echo_n "(cached) " >&6 2712 3347 else 2713 if test -n "$ac_ct_C XX"; then2714 ac_cv_prog_ac_ct_C XX="$ac_ct_CXX" # Let the user override the test.3348 if test -n "$ac_ct_CC"; then 3349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2715 3350 else 2716 3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2721 3356 for ac_exec_ext in '' $ac_executable_extensions; do 2722 3357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2723 ac_cv_prog_ac_ct_C XX="$ac_prog"3358 ac_cv_prog_ac_ct_CC="gcc" 2724 3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 3360 break 2 … … 2731 3366 fi 2732 3367 fi 2733 ac_ct_C XX=$ac_cv_prog_ac_ct_CXX2734 if test -n "$ac_ct_C XX"; then2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_C XX" >&52736 $as_echo "$ac_ct_C XX" >&6; }3368 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3369 if test -n "$ac_ct_CC"; then 3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3371 $as_echo "$ac_ct_CC" >&6; } 2737 3372 else 2738 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 2740 3375 fi 2741 3376 2742 2743 test -n "$ac_ct_CXX" && break 2744 done 2745 2746 if test "x$ac_ct_CXX" = x; then 2747 CXX="g++" 3377 if test "x$ac_ct_CC" = x; then 3378 CC="" 2748 3379 else 2749 3380 case $cross_compiling:$ac_tool_warned in … … 2753 3384 ac_tool_warned=yes ;; 2754 3385 esac 2755 C XX=$ac_ct_CXX3386 CC=$ac_ct_CC 2756 3387 fi 2757 fi 2758 3388 else 3389 CC="$ac_cv_prog_CC" 3390 fi 3391 3392 if test -z "$CC"; then 3393 if test -n "$ac_tool_prefix"; then 3394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3395 set dummy ${ac_tool_prefix}cc; ac_word=$2 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397 $as_echo_n "checking for $ac_word... " >&6; } 3398 if ${ac_cv_prog_CC+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400 else 3401 if test -n "$CC"; then 3402 ac_cv_prog_CC="$CC" # Let the user override the test. 3403 else 3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3405 for as_dir in $PATH 3406 do 3407 IFS=$as_save_IFS 3408 test -z "$as_dir" && as_dir=. 3409 for ac_exec_ext in '' $ac_executable_extensions; do 3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3411 ac_cv_prog_CC="${ac_tool_prefix}cc" 3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3413 break 2 2759 3414 fi 2760 fi 3415 done 3416 done 3417 IFS=$as_save_IFS 3418 3419 fi 3420 fi 3421 CC=$ac_cv_prog_CC 3422 if test -n "$CC"; then 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3424 $as_echo "$CC" >&6; } 3425 else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427 $as_echo "no" >&6; } 3428 fi 3429 3430 3431 fi 3432 fi 3433 if test -z "$CC"; then 3434 # Extract the first word of "cc", so it can be a program name with args. 3435 set dummy cc; ac_word=$2 3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3437 $as_echo_n "checking for $ac_word... " >&6; } 3438 if ${ac_cv_prog_CC+:} false; then : 3439 $as_echo_n "(cached) " >&6 3440 else 3441 if test -n "$CC"; then 3442 ac_cv_prog_CC="$CC" # Let the user override the test. 3443 else 3444 ac_prog_rejected=no 3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3446 for as_dir in $PATH 3447 do 3448 IFS=$as_save_IFS 3449 test -z "$as_dir" && as_dir=. 3450 for ac_exec_ext in '' $ac_executable_extensions; do 3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3453 ac_prog_rejected=yes 3454 continue 3455 fi 3456 ac_cv_prog_CC="cc" 3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3458 break 2 3459 fi 3460 done 3461 done 3462 IFS=$as_save_IFS 3463 3464 if test $ac_prog_rejected = yes; then 3465 # We found a bogon in the path, so make sure we never use it. 3466 set dummy $ac_cv_prog_CC 3467 shift 3468 if test $# != 0; then 3469 # We chose a different compiler from the bogus one. 3470 # However, it has the same basename, so the bogon will be chosen 3471 # first if we set CC to just the basename; use the full file name. 3472 shift 3473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3474 fi 3475 fi 3476 fi 3477 fi 3478 CC=$ac_cv_prog_CC 3479 if test -n "$CC"; then 3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3481 $as_echo "$CC" >&6; } 3482 else 3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3484 $as_echo "no" >&6; } 3485 fi 3486 3487 3488 fi 3489 if test -z "$CC"; then 3490 if test -n "$ac_tool_prefix"; then 3491 for ac_prog in cl.exe 3492 do 3493 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3496 $as_echo_n "checking for $ac_word... " >&6; } 3497 if ${ac_cv_prog_CC+:} false; then : 3498 $as_echo_n "(cached) " >&6 3499 else 3500 if test -n "$CC"; then 3501 ac_cv_prog_CC="$CC" # Let the user override the test. 3502 else 3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3504 for as_dir in $PATH 3505 do 3506 IFS=$as_save_IFS 3507 test -z "$as_dir" && as_dir=. 3508 for ac_exec_ext in '' $ac_executable_extensions; do 3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3510 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3512 break 2 3513 fi 3514 done 3515 done 3516 IFS=$as_save_IFS 3517 3518 fi 3519 fi 3520 CC=$ac_cv_prog_CC 3521 if test -n "$CC"; then 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3523 $as_echo "$CC" >&6; } 3524 else 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3526 $as_echo "no" >&6; } 3527 fi 3528 3529 3530 test -n "$CC" && break 3531 done 3532 fi 3533 if test -z "$CC"; then 3534 ac_ct_CC=$CC 3535 for ac_prog in cl.exe 3536 do 3537 # Extract the first word of "$ac_prog", so it can be a program name with args. 3538 set dummy $ac_prog; ac_word=$2 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3540 $as_echo_n "checking for $ac_word... " >&6; } 3541 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3542 $as_echo_n "(cached) " >&6 3543 else 3544 if test -n "$ac_ct_CC"; then 3545 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3546 else 3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548 for as_dir in $PATH 3549 do 3550 IFS=$as_save_IFS 3551 test -z "$as_dir" && as_dir=. 3552 for ac_exec_ext in '' $ac_executable_extensions; do 3553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3554 ac_cv_prog_ac_ct_CC="$ac_prog" 3555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3556 break 2 3557 fi 3558 done 3559 done 3560 IFS=$as_save_IFS 3561 3562 fi 3563 fi 3564 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3565 if test -n "$ac_ct_CC"; then 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3567 $as_echo "$ac_ct_CC" >&6; } 3568 else 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3570 $as_echo "no" >&6; } 3571 fi 3572 3573 3574 test -n "$ac_ct_CC" && break 3575 done 3576 3577 if test "x$ac_ct_CC" = x; then 3578 CC="" 3579 else 3580 case $cross_compiling:$ac_tool_warned in 3581 yes:) 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3584 ac_tool_warned=yes ;; 3585 esac 3586 CC=$ac_ct_CC 3587 fi 3588 fi 3589 3590 fi 3591 3592 3593 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3595 as_fn_error $? "no acceptable C compiler found in \$PATH 3596 See \`config.log' for more details" "$LINENO" 5; } 3597 2761 3598 # Provide some information about the compiler. 2762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C ++compiler version" >&53599 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2763 3600 set X $ac_compile 2764 3601 ac_compiler=$2 … … 2800 3637 # It will help us diagnose broken compilers, and finding out an intuition 2801 3638 # of exeext. 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C ++compiler works" >&52803 $as_echo_n "checking whether the C ++compiler works... " >&6; }3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3640 $as_echo_n "checking whether the C compiler works... " >&6; } 2804 3641 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2805 3642 … … 2871 3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2872 3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2873 as_fn_error 77 "C ++compiler cannot create executables3710 as_fn_error 77 "C compiler cannot create executables 2874 3711 See \`config.log' for more details" "$LINENO" 5; } 2875 3712 else … … 2877 3714 $as_echo "yes" >&6; } 2878 3715 fi 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C ++compiler default output file name" >&52880 $as_echo_n "checking for C ++compiler default output file name... " >&6; }3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3717 $as_echo_n "checking for C compiler default output file name... " >&6; } 2881 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2882 3719 $as_echo "$ac_file" >&6; } … … 2972 3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2973 3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2974 as_fn_error $? "cannot run C ++compiled programs.3811 as_fn_error $? "cannot run C compiled programs. 2975 3812 If you meant to cross compile, use \`--host'. 2976 3813 See \`config.log' for more details" "$LINENO" 5; } … … 3034 3871 OBJEXT=$ac_cv_objext 3035 3872 ac_objext=$OBJEXT 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3874 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3875 if ${ac_cv_c_compiler_gnu+:} false; then : 3876 $as_echo_n "(cached) " >&6 3877 else 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879 /* end confdefs.h. */ 3880 3881 int 3882 main () 3883 { 3884 #ifndef __GNUC__ 3885 choke me 3886 #endif 3887 3888 ; 3889 return 0; 3890 } 3891 _ACEOF 3892 if ac_fn_c_try_compile "$LINENO"; then : 3893 ac_compiler_gnu=yes 3894 else 3895 ac_compiler_gnu=no 3896 fi 3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3898 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3899 3900 fi 3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3902 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3903 if test $ac_compiler_gnu = yes; then 3904 GCC=yes 3905 else 3906 GCC= 3907 fi 3908 ac_test_CFLAGS=${CFLAGS+set} 3909 ac_save_CFLAGS=$CFLAGS 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3911 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3912 if ${ac_cv_prog_cc_g+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914 else 3915 ac_save_c_werror_flag=$ac_c_werror_flag 3916 ac_c_werror_flag=yes 3917 ac_cv_prog_cc_g=no 3918 CFLAGS="-g" 3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920 /* end confdefs.h. */ 3921 3922 int 3923 main () 3924 { 3925 3926 ; 3927 return 0; 3928 } 3929 _ACEOF 3930 if ac_fn_c_try_compile "$LINENO"; then : 3931 ac_cv_prog_cc_g=yes 3932 else 3933 CFLAGS="" 3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935 /* end confdefs.h. */ 3936 3937 int 3938 main () 3939 { 3940 3941 ; 3942 return 0; 3943 } 3944 _ACEOF 3945 if ac_fn_c_try_compile "$LINENO"; then : 3946 3947 else 3948 ac_c_werror_flag=$ac_save_c_werror_flag 3949 CFLAGS="-g" 3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3951 /* end confdefs.h. */ 3952 3953 int 3954 main () 3955 { 3956 3957 ; 3958 return 0; 3959 } 3960 _ACEOF 3961 if ac_fn_c_try_compile "$LINENO"; then : 3962 ac_cv_prog_cc_g=yes 3963 fi 3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3965 fi 3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3967 fi 3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3969 ac_c_werror_flag=$ac_save_c_werror_flag 3970 fi 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3972 $as_echo "$ac_cv_prog_cc_g" >&6; } 3973 if test "$ac_test_CFLAGS" = set; then 3974 CFLAGS=$ac_save_CFLAGS 3975 elif test $ac_cv_prog_cc_g = yes; then 3976 if test "$GCC" = yes; then 3977 CFLAGS="-g -O2" 3978 else 3979 CFLAGS="-g" 3980 fi 3981 else 3982 if test "$GCC" = yes; then 3983 CFLAGS="-O2" 3984 else 3985 CFLAGS= 3986 fi 3987 fi 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3989 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3990 if ${ac_cv_prog_cc_c89+:} false; then : 3991 $as_echo_n "(cached) " >&6 3992 else 3993 ac_cv_prog_cc_c89=no 3994 ac_save_CC=$CC 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996 /* end confdefs.h. */ 3997 #include <stdarg.h> 3998 #include <stdio.h> 3999 struct stat; 4000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4001 struct buf { int x; }; 4002 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4003 static char *e (p, i) 4004 char **p; 4005 int i; 4006 { 4007 return p[i]; 4008 } 4009 static char *f (char * (*g) (char **, int), char **p, ...) 4010 { 4011 char *s; 4012 va_list v; 4013 va_start (v,p); 4014 s = g (p, va_arg (v,int)); 4015 va_end (v); 4016 return s; 4017 } 4018 4019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4020 function prototypes and stuff, but not '\xHH' hex character constants. 4021 These don't provoke an error unfortunately, instead are silently treated 4022 as 'x'. The following induces an error, until -std is added to get 4023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4024 array size at least. It's necessary to write '\x00'==0 to get something 4025 that's true only with -std. */ 4026 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4027 4028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4029 inside strings and character constants. */ 4030 #define FOO(x) 'x' 4031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4032 4033 int test (int i, double x); 4034 struct s1 {int (*f) (int a);}; 4035 struct s2 {int (*f) (double a);}; 4036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4037 int argc; 4038 char **argv; 4039 int 4040 main () 4041 { 4042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4043 ; 4044 return 0; 4045 } 4046 _ACEOF 4047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4049 do 4050 CC="$ac_save_CC $ac_arg" 4051 if ac_fn_c_try_compile "$LINENO"; then : 4052 ac_cv_prog_cc_c89=$ac_arg 4053 fi 4054 rm -f core conftest.err conftest.$ac_objext 4055 test "x$ac_cv_prog_cc_c89" != "xno" && break 4056 done 4057 rm -f conftest.$ac_ext 4058 CC=$ac_save_CC 4059 4060 fi 4061 # AC_CACHE_VAL 4062 case "x$ac_cv_prog_cc_c89" in 4063 x) 4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4065 $as_echo "none needed" >&6; } ;; 4066 xno) 4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4068 $as_echo "unsupported" >&6; } ;; 4069 *) 4070 CC="$CC $ac_cv_prog_cc_c89" 4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4072 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4073 esac 4074 if test "x$ac_cv_prog_cc_c89" != xno; then : 4075 4076 fi 4077 4078 ac_ext=c 4079 ac_cpp='$CPP $CPPFLAGS' 4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4083 4084 ac_ext=c 4085 ac_cpp='$CPP $CPPFLAGS' 4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4090 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4091 if ${am_cv_prog_cc_c_o+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093 else 4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4095 /* end confdefs.h. */ 4096 4097 int 4098 main () 4099 { 4100 4101 ; 4102 return 0; 4103 } 4104 _ACEOF 4105 # Make sure it works both with $CC and with simple cc. 4106 # Following AC_PROG_CC_C_O, we do the test twice because some 4107 # compilers refuse to overwrite an existing .o file with -o, 4108 # though they will create one. 4109 am_cv_prog_cc_c_o=yes 4110 for am_i in 1 2; do 4111 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4112 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4113 ac_status=$? 4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4115 (exit $ac_status); } \ 4116 && test -f conftest2.$ac_objext; then 4117 : OK 4118 else 4119 am_cv_prog_cc_c_o=no 4120 break 4121 fi 4122 done 4123 rm -f core conftest* 4124 unset am_i 4125 fi 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4127 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4128 if test "$am_cv_prog_cc_c_o" != yes; then 4129 # Losing compiler, so override with the script. 4130 # FIXME: It is wrong to rewrite CC. 4131 # But if we don't then we get into trouble of one sort or another. 4132 # A longer-term fix would be to have automake use am__CC in this case, 4133 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4134 CC="$am_aux_dir/compile $CC" 4135 fi 4136 ac_ext=c 4137 ac_cpp='$CPP $CPPFLAGS' 4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4141 4142 4143 depcc="$CC" am_compiler_list= 4144 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4146 $as_echo_n "checking dependency style of $depcc... " >&6; } 4147 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4148 $as_echo_n "(cached) " >&6 4149 else 4150 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4151 # We make a subdir and do the tests there. Otherwise we can end up 4152 # making bogus files that we don't know about and never remove. For 4153 # instance it was reported that on HP-UX the gcc test will end up 4154 # making a dummy file named 'D' -- because '-MD' means "put the output 4155 # in D". 4156 rm -rf conftest.dir 4157 mkdir conftest.dir 4158 # Copy depcomp to subdir because otherwise we won't find it if we're 4159 # using a relative directory. 4160 cp "$am_depcomp" conftest.dir 4161 cd conftest.dir 4162 # We will build objects and dependencies in a subdirectory because 4163 # it helps to detect inapplicable dependency modes. For instance 4164 # both Tru64's cc and ICC support -MD to output dependencies as a 4165 # side effect of compilation, but ICC will put the dependencies in 4166 # the current directory while Tru64 will put them in the object 4167 # directory. 4168 mkdir sub 4169 4170 am_cv_CC_dependencies_compiler_type=none 4171 if test "$am_compiler_list" = ""; then 4172 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4173 fi 4174 am__universal=false 4175 case " $depcc " in #( 4176 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4177 esac 4178 4179 for depmode in $am_compiler_list; do 4180 # Setup a source with many dependencies, because some compilers 4181 # like to wrap large dependency lists on column 80 (with \), and 4182 # we should not choose a depcomp mode which is confused by this. 4183 # 4184 # We need to recreate these files for each test, as the compiler may 4185 # overwrite some of them when testing with obscure command lines. 4186 # This happens at least with the AIX C compiler. 4187 : > sub/conftest.c 4188 for i in 1 2 3 4 5 6; do 4189 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4190 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4191 # Solaris 10 /bin/sh. 4192 echo '/* dummy */' > sub/conftst$i.h 4193 done 4194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4195 4196 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4197 # mode. It turns out that the SunPro C++ compiler does not properly 4198 # handle '-M -o', and we need to detect this. Also, some Intel 4199 # versions had trouble with output in subdirs. 4200 am__obj=sub/conftest.${OBJEXT-o} 4201 am__minus_obj="-o $am__obj" 4202 case $depmode in 4203 gcc) 4204 # This depmode causes a compiler race in universal mode. 4205 test "$am__universal" = false || continue 4206 ;; 4207 nosideeffect) 4208 # After this tag, mechanisms are not by side-effect, so they'll 4209 # only be used when explicitly requested. 4210 if test "x$enable_dependency_tracking" = xyes; then 4211 continue 4212 else 4213 break 4214 fi 4215 ;; 4216 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4217 # This compiler won't grok '-c -o', but also, the minuso test has 4218 # not run yet. These depmodes are late enough in the game, and 4219 # so weak that their functioning should not be impacted. 4220 am__obj=conftest.${OBJEXT-o} 4221 am__minus_obj= 4222 ;; 4223 none) break ;; 4224 esac 4225 if depmode=$depmode \ 4226 source=sub/conftest.c object=$am__obj \ 4227 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4228 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4229 >/dev/null 2>conftest.err && 4230 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4232 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4234 # icc doesn't choke on unknown options, it will just issue warnings 4235 # or remarks (even with -Werror). So we grep stderr for any message 4236 # that says an option was ignored or not supported. 4237 # When given -MP, icc 7.0 and 7.1 complain thusly: 4238 # icc: Command line warning: ignoring option '-M'; no argument required 4239 # The diagnosis changed in icc 8.0: 4240 # icc: Command line remark: option '-MP' not supported 4241 if (grep 'ignoring option' conftest.err || 4242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4243 am_cv_CC_dependencies_compiler_type=$depmode 4244 break 4245 fi 4246 fi 4247 done 4248 4249 cd .. 4250 rm -rf conftest.dir 4251 else 4252 am_cv_CC_dependencies_compiler_type=none 4253 fi 4254 4255 fi 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4257 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4258 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4259 4260 if 4261 test "x$enable_dependency_tracking" != xno \ 4262 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4263 am__fastdepCC_TRUE= 4264 am__fastdepCC_FALSE='#' 4265 else 4266 am__fastdepCC_TRUE='#' 4267 am__fastdepCC_FALSE= 4268 fi 4269 4270 4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4272 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4273 if ${ac_cv_path_SED+:} false; then : 4274 $as_echo_n "(cached) " >&6 4275 else 4276 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4277 for ac_i in 1 2 3 4 5 6 7; do 4278 ac_script="$ac_script$as_nl$ac_script" 4279 done 4280 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4281 { ac_script=; unset ac_script;} 4282 if test -z "$SED"; then 4283 ac_path_SED_found=false 4284 # Loop through the user's path and test for each of PROGNAME-LIST 4285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4286 for as_dir in $PATH 4287 do 4288 IFS=$as_save_IFS 4289 test -z "$as_dir" && as_dir=. 4290 for ac_prog in sed gsed; do 4291 for ac_exec_ext in '' $ac_executable_extensions; do 4292 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4293 as_fn_executable_p "$ac_path_SED" || continue 4294 # Check for GNU ac_path_SED and select it if it is found. 4295 # Check for GNU $ac_path_SED 4296 case `"$ac_path_SED" --version 2>&1` in 4297 *GNU*) 4298 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4299 *) 4300 ac_count=0 4301 $as_echo_n 0123456789 >"conftest.in" 4302 while : 4303 do 4304 cat "conftest.in" "conftest.in" >"conftest.tmp" 4305 mv "conftest.tmp" "conftest.in" 4306 cp "conftest.in" "conftest.nl" 4307 $as_echo '' >> "conftest.nl" 4308 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4309 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4310 as_fn_arith $ac_count + 1 && ac_count=$as_val 4311 if test $ac_count -gt ${ac_path_SED_max-0}; then 4312 # Best one so far, save it but keep looking for a better one 4313 ac_cv_path_SED="$ac_path_SED" 4314 ac_path_SED_max=$ac_count 4315 fi 4316 # 10*(2^10) chars as input seems more than enough 4317 test $ac_count -gt 10 && break 4318 done 4319 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4320 esac 4321 4322 $ac_path_SED_found && break 3 4323 done 4324 done 4325 done 4326 IFS=$as_save_IFS 4327 if test -z "$ac_cv_path_SED"; then 4328 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4329 fi 4330 else 4331 ac_cv_path_SED=$SED 4332 fi 4333 4334 fi 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4336 $as_echo "$ac_cv_path_SED" >&6; } 4337 SED="$ac_cv_path_SED" 4338 rm -f conftest.sed 4339 4340 test -z "$SED" && SED=sed 4341 Xsed="$SED -e 1s/^X//" 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4354 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4355 if ${ac_cv_path_GREP+:} false; then : 4356 $as_echo_n "(cached) " >&6 4357 else 4358 if test -z "$GREP"; then 4359 ac_path_GREP_found=false 4360 # Loop through the user's path and test for each of PROGNAME-LIST 4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4363 do 4364 IFS=$as_save_IFS 4365 test -z "$as_dir" && as_dir=. 4366 for ac_prog in grep ggrep; do 4367 for ac_exec_ext in '' $ac_executable_extensions; do 4368 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4369 as_fn_executable_p "$ac_path_GREP" || continue 4370 # Check for GNU ac_path_GREP and select it if it is found. 4371 # Check for GNU $ac_path_GREP 4372 case `"$ac_path_GREP" --version 2>&1` in 4373 *GNU*) 4374 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4375 *) 4376 ac_count=0 4377 $as_echo_n 0123456789 >"conftest.in" 4378 while : 4379 do 4380 cat "conftest.in" "conftest.in" >"conftest.tmp" 4381 mv "conftest.tmp" "conftest.in" 4382 cp "conftest.in" "conftest.nl" 4383 $as_echo 'GREP' >> "conftest.nl" 4384 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4386 as_fn_arith $ac_count + 1 && ac_count=$as_val 4387 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4388 # Best one so far, save it but keep looking for a better one 4389 ac_cv_path_GREP="$ac_path_GREP" 4390 ac_path_GREP_max=$ac_count 4391 fi 4392 # 10*(2^10) chars as input seems more than enough 4393 test $ac_count -gt 10 && break 4394 done 4395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4396 esac 4397 4398 $ac_path_GREP_found && break 3 4399 done 4400 done 4401 done 4402 IFS=$as_save_IFS 4403 if test -z "$ac_cv_path_GREP"; then 4404 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4405 fi 4406 else 4407 ac_cv_path_GREP=$GREP 4408 fi 4409 4410 fi 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4412 $as_echo "$ac_cv_path_GREP" >&6; } 4413 GREP="$ac_cv_path_GREP" 4414 4415 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4417 $as_echo_n "checking for egrep... " >&6; } 4418 if ${ac_cv_path_EGREP+:} false; then : 4419 $as_echo_n "(cached) " >&6 4420 else 4421 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4422 then ac_cv_path_EGREP="$GREP -E" 4423 else 4424 if test -z "$EGREP"; then 4425 ac_path_EGREP_found=false 4426 # Loop through the user's path and test for each of PROGNAME-LIST 4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4429 do 4430 IFS=$as_save_IFS 4431 test -z "$as_dir" && as_dir=. 4432 for ac_prog in egrep; do 4433 for ac_exec_ext in '' $ac_executable_extensions; do 4434 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4435 as_fn_executable_p "$ac_path_EGREP" || continue 4436 # Check for GNU ac_path_EGREP and select it if it is found. 4437 # Check for GNU $ac_path_EGREP 4438 case `"$ac_path_EGREP" --version 2>&1` in 4439 *GNU*) 4440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4441 *) 4442 ac_count=0 4443 $as_echo_n 0123456789 >"conftest.in" 4444 while : 4445 do 4446 cat "conftest.in" "conftest.in" >"conftest.tmp" 4447 mv "conftest.tmp" "conftest.in" 4448 cp "conftest.in" "conftest.nl" 4449 $as_echo 'EGREP' >> "conftest.nl" 4450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4452 as_fn_arith $ac_count + 1 && ac_count=$as_val 4453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4454 # Best one so far, save it but keep looking for a better one 4455 ac_cv_path_EGREP="$ac_path_EGREP" 4456 ac_path_EGREP_max=$ac_count 4457 fi 4458 # 10*(2^10) chars as input seems more than enough 4459 test $ac_count -gt 10 && break 4460 done 4461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4462 esac 4463 4464 $ac_path_EGREP_found && break 3 4465 done 4466 done 4467 done 4468 IFS=$as_save_IFS 4469 if test -z "$ac_cv_path_EGREP"; then 4470 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4471 fi 4472 else 4473 ac_cv_path_EGREP=$EGREP 4474 fi 4475 4476 fi 4477 fi 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4479 $as_echo "$ac_cv_path_EGREP" >&6; } 4480 EGREP="$ac_cv_path_EGREP" 4481 4482 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4484 $as_echo_n "checking for fgrep... " >&6; } 4485 if ${ac_cv_path_FGREP+:} false; then : 4486 $as_echo_n "(cached) " >&6 4487 else 4488 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4489 then ac_cv_path_FGREP="$GREP -F" 4490 else 4491 if test -z "$FGREP"; then 4492 ac_path_FGREP_found=false 4493 # Loop through the user's path and test for each of PROGNAME-LIST 4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4495 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4496 do 4497 IFS=$as_save_IFS 4498 test -z "$as_dir" && as_dir=. 4499 for ac_prog in fgrep; do 4500 for ac_exec_ext in '' $ac_executable_extensions; do 4501 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4502 as_fn_executable_p "$ac_path_FGREP" || continue 4503 # Check for GNU ac_path_FGREP and select it if it is found. 4504 # Check for GNU $ac_path_FGREP 4505 case `"$ac_path_FGREP" --version 2>&1` in 4506 *GNU*) 4507 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4508 *) 4509 ac_count=0 4510 $as_echo_n 0123456789 >"conftest.in" 4511 while : 4512 do 4513 cat "conftest.in" "conftest.in" >"conftest.tmp" 4514 mv "conftest.tmp" "conftest.in" 4515 cp "conftest.in" "conftest.nl" 4516 $as_echo 'FGREP' >> "conftest.nl" 4517 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4519 as_fn_arith $ac_count + 1 && ac_count=$as_val 4520 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4521 # Best one so far, save it but keep looking for a better one 4522 ac_cv_path_FGREP="$ac_path_FGREP" 4523 ac_path_FGREP_max=$ac_count 4524 fi 4525 # 10*(2^10) chars as input seems more than enough 4526 test $ac_count -gt 10 && break 4527 done 4528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4529 esac 4530 4531 $ac_path_FGREP_found && break 3 4532 done 4533 done 4534 done 4535 IFS=$as_save_IFS 4536 if test -z "$ac_cv_path_FGREP"; then 4537 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4538 fi 4539 else 4540 ac_cv_path_FGREP=$FGREP 4541 fi 4542 4543 fi 4544 fi 4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4546 $as_echo "$ac_cv_path_FGREP" >&6; } 4547 FGREP="$ac_cv_path_FGREP" 4548 4549 4550 test -z "$GREP" && GREP=grep 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 # Check whether --with-gnu-ld was given. 4571 if test "${with_gnu_ld+set}" = set; then : 4572 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4573 else 4574 with_gnu_ld=no 4575 fi 4576 4577 ac_prog=ld 4578 if test yes = "$GCC"; then 4579 # Check if gcc -print-prog-name=ld gives a path. 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4581 $as_echo_n "checking for ld used by $CC... " >&6; } 4582 case $host in 4583 *-*-mingw*) 4584 # gcc leaves a trailing carriage return, which upsets mingw 4585 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4586 *) 4587 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4588 esac 4589 case $ac_prog in 4590 # Accept absolute paths. 4591 [\\/]* | ?:[\\/]*) 4592 re_direlt='/[^/][^/]*/\.\./' 4593 # Canonicalize the pathname of ld 4594 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4595 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4596 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4597 done 4598 test -z "$LD" && LD=$ac_prog 4599 ;; 4600 "") 4601 # If it fails, then pretend we aren't using GCC. 4602 ac_prog=ld 4603 ;; 4604 *) 4605 # If it is relative, then search for the first ld in PATH. 4606 with_gnu_ld=unknown 4607 ;; 4608 esac 4609 elif test yes = "$with_gnu_ld"; then 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4611 $as_echo_n "checking for GNU ld... " >&6; } 4612 else 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4614 $as_echo_n "checking for non-GNU ld... " >&6; } 4615 fi 4616 if ${lt_cv_path_LD+:} false; then : 4617 $as_echo_n "(cached) " >&6 4618 else 4619 if test -z "$LD"; then 4620 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4621 for ac_dir in $PATH; do 4622 IFS=$lt_save_ifs 4623 test -z "$ac_dir" && ac_dir=. 4624 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4625 lt_cv_path_LD=$ac_dir/$ac_prog 4626 # Check to see if the program is GNU ld. I'd rather use --version, 4627 # but apparently some variants of GNU ld only accept -v. 4628 # Break only if it was the GNU/non-GNU ld that we prefer. 4629 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4630 *GNU* | *'with BFD'*) 4631 test no != "$with_gnu_ld" && break 4632 ;; 4633 *) 4634 test yes != "$with_gnu_ld" && break 4635 ;; 4636 esac 4637 fi 4638 done 4639 IFS=$lt_save_ifs 4640 else 4641 lt_cv_path_LD=$LD # Let the user override the test with a path. 4642 fi 4643 fi 4644 4645 LD=$lt_cv_path_LD 4646 if test -n "$LD"; then 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4648 $as_echo "$LD" >&6; } 4649 else 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4651 $as_echo "no" >&6; } 4652 fi 4653 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4655 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4656 if ${lt_cv_prog_gnu_ld+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658 else 4659 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4660 case `$LD -v 2>&1 </dev/null` in 4661 *GNU* | *'with BFD'*) 4662 lt_cv_prog_gnu_ld=yes 4663 ;; 4664 *) 4665 lt_cv_prog_gnu_ld=no 4666 ;; 4667 esac 4668 fi 4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4670 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4671 with_gnu_ld=$lt_cv_prog_gnu_ld 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4682 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4683 if ${lt_cv_path_NM+:} false; then : 4684 $as_echo_n "(cached) " >&6 4685 else 4686 if test -n "$NM"; then 4687 # Let the user override the test. 4688 lt_cv_path_NM=$NM 4689 else 4690 lt_nm_to_check=${ac_tool_prefix}nm 4691 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4692 lt_nm_to_check="$lt_nm_to_check nm" 4693 fi 4694 for lt_tmp_nm in $lt_nm_to_check; do 4695 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4696 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4697 IFS=$lt_save_ifs 4698 test -z "$ac_dir" && ac_dir=. 4699 tmp_nm=$ac_dir/$lt_tmp_nm 4700 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4701 # Check to see if the nm accepts a BSD-compat flag. 4702 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4703 # nm: unknown option "B" ignored 4704 # Tru64's nm complains that /dev/null is an invalid object file 4705 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4706 case $build_os in 4707 mingw*) lt_bad_file=conftest.nm/nofile ;; 4708 *) lt_bad_file=/dev/null ;; 4709 esac 4710 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4711 *$lt_bad_file* | *'Invalid file or object type'*) 4712 lt_cv_path_NM="$tmp_nm -B" 4713 break 2 4714 ;; 4715 *) 4716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4717 */dev/null*) 4718 lt_cv_path_NM="$tmp_nm -p" 4719 break 2 4720 ;; 4721 *) 4722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4723 continue # so that we can try to find one that supports BSD flags 4724 ;; 4725 esac 4726 ;; 4727 esac 4728 fi 4729 done 4730 IFS=$lt_save_ifs 4731 done 4732 : ${lt_cv_path_NM=no} 4733 fi 4734 fi 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4736 $as_echo "$lt_cv_path_NM" >&6; } 4737 if test no != "$lt_cv_path_NM"; then 4738 NM=$lt_cv_path_NM 4739 else 4740 # Didn't find any BSD compatible name lister, look for dumpbin. 4741 if test -n "$DUMPBIN"; then : 4742 # Let the user override the test. 4743 else 4744 if test -n "$ac_tool_prefix"; then 4745 for ac_prog in dumpbin "link -dump" 4746 do 4747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4750 $as_echo_n "checking for $ac_word... " >&6; } 4751 if ${ac_cv_prog_DUMPBIN+:} false; then : 4752 $as_echo_n "(cached) " >&6 4753 else 4754 if test -n "$DUMPBIN"; then 4755 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4756 else 4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4758 for as_dir in $PATH 4759 do 4760 IFS=$as_save_IFS 4761 test -z "$as_dir" && as_dir=. 4762 for ac_exec_ext in '' $ac_executable_extensions; do 4763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4764 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4766 break 2 4767 fi 4768 done 4769 done 4770 IFS=$as_save_IFS 4771 4772 fi 4773 fi 4774 DUMPBIN=$ac_cv_prog_DUMPBIN 4775 if test -n "$DUMPBIN"; then 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4777 $as_echo "$DUMPBIN" >&6; } 4778 else 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4780 $as_echo "no" >&6; } 4781 fi 4782 4783 4784 test -n "$DUMPBIN" && break 4785 done 4786 fi 4787 if test -z "$DUMPBIN"; then 4788 ac_ct_DUMPBIN=$DUMPBIN 4789 for ac_prog in dumpbin "link -dump" 4790 do 4791 # Extract the first word of "$ac_prog", so it can be a program name with args. 4792 set dummy $ac_prog; ac_word=$2 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4794 $as_echo_n "checking for $ac_word... " >&6; } 4795 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4796 $as_echo_n "(cached) " >&6 4797 else 4798 if test -n "$ac_ct_DUMPBIN"; then 4799 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4800 else 4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4802 for as_dir in $PATH 4803 do 4804 IFS=$as_save_IFS 4805 test -z "$as_dir" && as_dir=. 4806 for ac_exec_ext in '' $ac_executable_extensions; do 4807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4808 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4810 break 2 4811 fi 4812 done 4813 done 4814 IFS=$as_save_IFS 4815 4816 fi 4817 fi 4818 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4819 if test -n "$ac_ct_DUMPBIN"; then 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4821 $as_echo "$ac_ct_DUMPBIN" >&6; } 4822 else 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4824 $as_echo "no" >&6; } 4825 fi 4826 4827 4828 test -n "$ac_ct_DUMPBIN" && break 4829 done 4830 4831 if test "x$ac_ct_DUMPBIN" = x; then 4832 DUMPBIN=":" 4833 else 4834 case $cross_compiling:$ac_tool_warned in 4835 yes:) 4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4838 ac_tool_warned=yes ;; 4839 esac 4840 DUMPBIN=$ac_ct_DUMPBIN 4841 fi 4842 fi 4843 4844 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4845 *COFF*) 4846 DUMPBIN="$DUMPBIN -symbols -headers" 4847 ;; 4848 *) 4849 DUMPBIN=: 4850 ;; 4851 esac 4852 fi 4853 4854 if test : != "$DUMPBIN"; then 4855 NM=$DUMPBIN 4856 fi 4857 fi 4858 test -z "$NM" && NM=nm 4859 4860 4861 4862 4863 4864 4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4866 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 4867 if ${lt_cv_nm_interface+:} false; then : 4868 $as_echo_n "(cached) " >&6 4869 else 4870 lt_cv_nm_interface="BSD nm" 4871 echo "int some_variable = 0;" > conftest.$ac_ext 4872 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4873 (eval "$ac_compile" 2>conftest.err) 4874 cat conftest.err >&5 4875 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4876 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4877 cat conftest.err >&5 4878 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4879 cat conftest.out >&5 4880 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4881 lt_cv_nm_interface="MS dumpbin" 4882 fi 4883 rm -f conftest* 4884 fi 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4886 $as_echo "$lt_cv_nm_interface" >&6; } 4887 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4889 $as_echo_n "checking whether ln -s works... " >&6; } 4890 LN_S=$as_ln_s 4891 if test "$LN_S" = "ln -s"; then 4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4893 $as_echo "yes" >&6; } 4894 else 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4896 $as_echo "no, using $LN_S" >&6; } 4897 fi 4898 4899 # find the maximum length of command line arguments 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4901 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 4902 if ${lt_cv_sys_max_cmd_len+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904 else 4905 i=0 4906 teststring=ABCD 4907 4908 case $build_os in 4909 msdosdjgpp*) 4910 # On DJGPP, this test can blow up pretty badly due to problems in libc 4911 # (any single argument exceeding 2000 bytes causes a buffer overrun 4912 # during glob expansion). Even if it were fixed, the result of this 4913 # check would be larger than it should be. 4914 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4915 ;; 4916 4917 gnu*) 4918 # Under GNU Hurd, this test is not required because there is 4919 # no limit to the length of command line arguments. 4920 # Libtool will interpret -1 as no limit whatsoever 4921 lt_cv_sys_max_cmd_len=-1; 4922 ;; 4923 4924 cygwin* | mingw* | cegcc*) 4925 # On Win9x/ME, this test blows up -- it succeeds, but takes 4926 # about 5 minutes as the teststring grows exponentially. 4927 # Worse, since 9x/ME are not pre-emptively multitasking, 4928 # you end up with a "frozen" computer, even though with patience 4929 # the test eventually succeeds (with a max line length of 256k). 4930 # Instead, let's just punt: use the minimum linelength reported by 4931 # all of the supported platforms: 8192 (on NT/2K/XP). 4932 lt_cv_sys_max_cmd_len=8192; 4933 ;; 4934 4935 mint*) 4936 # On MiNT this can take a long time and run out of memory. 4937 lt_cv_sys_max_cmd_len=8192; 4938 ;; 4939 4940 amigaos*) 4941 # On AmigaOS with pdksh, this test takes hours, literally. 4942 # So we just punt and use a minimum line length of 8192. 4943 lt_cv_sys_max_cmd_len=8192; 4944 ;; 4945 4946 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4947 # This has been around since 386BSD, at least. Likely further. 4948 if test -x /sbin/sysctl; then 4949 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4950 elif test -x /usr/sbin/sysctl; then 4951 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4952 else 4953 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4954 fi 4955 # And add a safety zone 4956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4958 ;; 4959 4960 interix*) 4961 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4962 lt_cv_sys_max_cmd_len=196608 4963 ;; 4964 4965 os2*) 4966 # The test takes a long time on OS/2. 4967 lt_cv_sys_max_cmd_len=8192 4968 ;; 4969 4970 osf*) 4971 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4972 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4973 # nice to cause kernel panics so lets avoid the loop below. 4974 # First set a reasonable default. 4975 lt_cv_sys_max_cmd_len=16384 4976 # 4977 if test -x /sbin/sysconfig; then 4978 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4979 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4980 esac 4981 fi 4982 ;; 4983 sco3.2v5*) 4984 lt_cv_sys_max_cmd_len=102400 4985 ;; 4986 sysv5* | sco5v6* | sysv4.2uw2*) 4987 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4988 if test -n "$kargmax"; then 4989 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4990 else 4991 lt_cv_sys_max_cmd_len=32768 4992 fi 4993 ;; 4994 *) 4995 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4996 if test -n "$lt_cv_sys_max_cmd_len" && \ 4997 test undefined != "$lt_cv_sys_max_cmd_len"; then 4998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5000 else 5001 # Make teststring a little bigger before we do anything with it. 5002 # a 1K string should be a reasonable start. 5003 for i in 1 2 3 4 5 6 7 8; do 5004 teststring=$teststring$teststring 5005 done 5006 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5007 # If test is not a shell built-in, we'll probably end up computing a 5008 # maximum length that is only half of the actual maximum length, but 5009 # we can't tell. 5010 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5011 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5012 test 17 != "$i" # 1/2 MB should be enough 5013 do 5014 i=`expr $i + 1` 5015 teststring=$teststring$teststring 5016 done 5017 # Only check the string length outside the loop. 5018 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5019 teststring= 5020 # Add a significant safety factor because C++ compilers can tack on 5021 # massive amounts of additional arguments before passing them to the 5022 # linker. It appears as though 1/2 is a usable value. 5023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5024 fi 5025 ;; 5026 esac 5027 5028 fi 5029 5030 if test -n "$lt_cv_sys_max_cmd_len"; then 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5032 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5033 else 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5035 $as_echo "none" >&6; } 5036 fi 5037 max_cmd_len=$lt_cv_sys_max_cmd_len 5038 5039 5040 5041 5042 5043 5044 : ${CP="cp -f"} 5045 : ${MV="mv -f"} 5046 : ${RM="rm -f"} 5047 5048 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5049 lt_unset=unset 5050 else 5051 lt_unset=false 5052 fi 5053 5054 5055 5056 5057 5058 # test EBCDIC or ASCII 5059 case `echo X|tr X '\101'` in 5060 A) # ASCII based system 5061 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5062 lt_SP2NL='tr \040 \012' 5063 lt_NL2SP='tr \015\012 \040\040' 5064 ;; 5065 *) # EBCDIC based system 5066 lt_SP2NL='tr \100 \n' 5067 lt_NL2SP='tr \r\n \100\100' 5068 ;; 5069 esac 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5080 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5081 if ${lt_cv_to_host_file_cmd+:} false; then : 5082 $as_echo_n "(cached) " >&6 5083 else 5084 case $host in 5085 *-*-mingw* ) 5086 case $build in 5087 *-*-mingw* ) # actually msys 5088 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5089 ;; 5090 *-*-cygwin* ) 5091 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5092 ;; 5093 * ) # otherwise, assume *nix 5094 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5095 ;; 5096 esac 5097 ;; 5098 *-*-cygwin* ) 5099 case $build in 5100 *-*-mingw* ) # actually msys 5101 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5102 ;; 5103 *-*-cygwin* ) 5104 lt_cv_to_host_file_cmd=func_convert_file_noop 5105 ;; 5106 * ) # otherwise, assume *nix 5107 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5108 ;; 5109 esac 5110 ;; 5111 * ) # unhandled hosts (and "normal" native builds) 5112 lt_cv_to_host_file_cmd=func_convert_file_noop 5113 ;; 5114 esac 5115 5116 fi 5117 5118 to_host_file_cmd=$lt_cv_to_host_file_cmd 5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5120 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5121 5122 5123 5124 5125 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5127 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5128 if ${lt_cv_to_tool_file_cmd+:} false; then : 5129 $as_echo_n "(cached) " >&6 5130 else 5131 #assume ordinary cross tools, or native build. 5132 lt_cv_to_tool_file_cmd=func_convert_file_noop 5133 case $host in 5134 *-*-mingw* ) 5135 case $build in 5136 *-*-mingw* ) # actually msys 5137 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5138 ;; 5139 esac 5140 ;; 5141 esac 5142 5143 fi 5144 5145 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5147 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5148 5149 5150 5151 5152 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5154 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5155 if ${lt_cv_ld_reload_flag+:} false; then : 5156 $as_echo_n "(cached) " >&6 5157 else 5158 lt_cv_ld_reload_flag='-r' 5159 fi 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5161 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5162 reload_flag=$lt_cv_ld_reload_flag 5163 case $reload_flag in 5164 "" | " "*) ;; 5165 *) reload_flag=" $reload_flag" ;; 5166 esac 5167 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5168 case $host_os in 5169 cygwin* | mingw* | pw32* | cegcc*) 5170 if test yes != "$GCC"; then 5171 reload_cmds=false 5172 fi 5173 ;; 5174 darwin*) 5175 if test yes = "$GCC"; then 5176 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5177 else 5178 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5179 fi 5180 ;; 5181 esac 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 if test -n "$ac_tool_prefix"; then 5192 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5193 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5195 $as_echo_n "checking for $ac_word... " >&6; } 5196 if ${ac_cv_prog_OBJDUMP+:} false; then : 5197 $as_echo_n "(cached) " >&6 5198 else 5199 if test -n "$OBJDUMP"; then 5200 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5201 else 5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5203 for as_dir in $PATH 5204 do 5205 IFS=$as_save_IFS 5206 test -z "$as_dir" && as_dir=. 5207 for ac_exec_ext in '' $ac_executable_extensions; do 5208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5209 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5211 break 2 5212 fi 5213 done 5214 done 5215 IFS=$as_save_IFS 5216 5217 fi 5218 fi 5219 OBJDUMP=$ac_cv_prog_OBJDUMP 5220 if test -n "$OBJDUMP"; then 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5222 $as_echo "$OBJDUMP" >&6; } 5223 else 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5225 $as_echo "no" >&6; } 5226 fi 5227 5228 5229 fi 5230 if test -z "$ac_cv_prog_OBJDUMP"; then 5231 ac_ct_OBJDUMP=$OBJDUMP 5232 # Extract the first word of "objdump", so it can be a program name with args. 5233 set dummy objdump; ac_word=$2 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5235 $as_echo_n "checking for $ac_word... " >&6; } 5236 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238 else 5239 if test -n "$ac_ct_OBJDUMP"; then 5240 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5241 else 5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5243 for as_dir in $PATH 5244 do 5245 IFS=$as_save_IFS 5246 test -z "$as_dir" && as_dir=. 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5249 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5251 break 2 5252 fi 5253 done 5254 done 5255 IFS=$as_save_IFS 5256 5257 fi 5258 fi 5259 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5260 if test -n "$ac_ct_OBJDUMP"; then 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5262 $as_echo "$ac_ct_OBJDUMP" >&6; } 5263 else 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5265 $as_echo "no" >&6; } 5266 fi 5267 5268 if test "x$ac_ct_OBJDUMP" = x; then 5269 OBJDUMP="false" 5270 else 5271 case $cross_compiling:$ac_tool_warned in 5272 yes:) 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5275 ac_tool_warned=yes ;; 5276 esac 5277 OBJDUMP=$ac_ct_OBJDUMP 5278 fi 5279 else 5280 OBJDUMP="$ac_cv_prog_OBJDUMP" 5281 fi 5282 5283 test -z "$OBJDUMP" && OBJDUMP=objdump 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5294 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5295 if ${lt_cv_deplibs_check_method+:} false; then : 5296 $as_echo_n "(cached) " >&6 5297 else 5298 lt_cv_file_magic_cmd='$MAGIC_CMD' 5299 lt_cv_file_magic_test_file= 5300 lt_cv_deplibs_check_method='unknown' 5301 # Need to set the preceding variable on all platforms that support 5302 # interlibrary dependencies. 5303 # 'none' -- dependencies not supported. 5304 # 'unknown' -- same as none, but documents that we really don't know. 5305 # 'pass_all' -- all dependencies passed with no checks. 5306 # 'test_compile' -- check by making test program. 5307 # 'file_magic [[regex]]' -- check by looking for files in library path 5308 # that responds to the $file_magic_cmd with a given extended regex. 5309 # If you have 'file' or equivalent on your system and you're not sure 5310 # whether 'pass_all' will *always* work, you probably want this one. 5311 5312 case $host_os in 5313 aix[4-9]*) 5314 lt_cv_deplibs_check_method=pass_all 5315 ;; 5316 5317 beos*) 5318 lt_cv_deplibs_check_method=pass_all 5319 ;; 5320 5321 bsdi[45]*) 5322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5323 lt_cv_file_magic_cmd='/usr/bin/file -L' 5324 lt_cv_file_magic_test_file=/shlib/libc.so 5325 ;; 5326 5327 cygwin*) 5328 # func_win32_libid is a shell function defined in ltmain.sh 5329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5330 lt_cv_file_magic_cmd='func_win32_libid' 5331 ;; 5332 5333 mingw* | pw32*) 5334 # Base MSYS/MinGW do not provide the 'file' command needed by 5335 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5336 # unless we find 'file', for example because we are cross-compiling. 5337 if ( file / ) >/dev/null 2>&1; then 5338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5339 lt_cv_file_magic_cmd='func_win32_libid' 5340 else 5341 # Keep this pattern in sync with the one in func_win32_libid. 5342 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5343 lt_cv_file_magic_cmd='$OBJDUMP -f' 5344 fi 5345 ;; 5346 5347 cegcc*) 5348 # use the weaker test based on 'objdump'. See mingw*. 5349 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5350 lt_cv_file_magic_cmd='$OBJDUMP -f' 5351 ;; 5352 5353 darwin* | rhapsody*) 5354 lt_cv_deplibs_check_method=pass_all 5355 ;; 5356 5357 freebsd* | dragonfly*) 5358 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5359 case $host_cpu in 5360 i*86 ) 5361 # Not sure whether the presence of OpenBSD here was a mistake. 5362 # Let's accept both of them until this is cleared up. 5363 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5364 lt_cv_file_magic_cmd=/usr/bin/file 5365 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5366 ;; 5367 esac 5368 else 5369 lt_cv_deplibs_check_method=pass_all 5370 fi 5371 ;; 5372 5373 haiku*) 5374 lt_cv_deplibs_check_method=pass_all 5375 ;; 5376 5377 hpux10.20* | hpux11*) 5378 lt_cv_file_magic_cmd=/usr/bin/file 5379 case $host_cpu in 5380 ia64*) 5381 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5382 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5383 ;; 5384 hppa*64*) 5385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5386 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5387 ;; 5388 *) 5389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5390 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5391 ;; 5392 esac 5393 ;; 5394 5395 interix[3-9]*) 5396 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5398 ;; 5399 5400 irix5* | irix6* | nonstopux*) 5401 case $LD in 5402 *-32|*"-32 ") libmagic=32-bit;; 5403 *-n32|*"-n32 ") libmagic=N32;; 5404 *-64|*"-64 ") libmagic=64-bit;; 5405 *) libmagic=never-match;; 5406 esac 5407 lt_cv_deplibs_check_method=pass_all 5408 ;; 5409 5410 # This must be glibc/ELF. 5411 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5412 lt_cv_deplibs_check_method=pass_all 5413 ;; 5414 5415 netbsd* | netbsdelf*-gnu) 5416 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5418 else 5419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5420 fi 5421 ;; 5422 5423 newos6*) 5424 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5425 lt_cv_file_magic_cmd=/usr/bin/file 5426 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5427 ;; 5428 5429 *nto* | *qnx*) 5430 lt_cv_deplibs_check_method=pass_all 5431 ;; 5432 5433 openbsd* | bitrig*) 5434 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5436 else 5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5438 fi 5439 ;; 5440 5441 osf3* | osf4* | osf5*) 5442 lt_cv_deplibs_check_method=pass_all 5443 ;; 5444 5445 rdos*) 5446 lt_cv_deplibs_check_method=pass_all 5447 ;; 5448 5449 solaris*) 5450 lt_cv_deplibs_check_method=pass_all 5451 ;; 5452 5453 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5454 lt_cv_deplibs_check_method=pass_all 5455 ;; 5456 5457 sysv4 | sysv4.3*) 5458 case $host_vendor in 5459 motorola) 5460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5461 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5462 ;; 5463 ncr) 5464 lt_cv_deplibs_check_method=pass_all 5465 ;; 5466 sequent) 5467 lt_cv_file_magic_cmd='/bin/file' 5468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5469 ;; 5470 sni) 5471 lt_cv_file_magic_cmd='/bin/file' 5472 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5473 lt_cv_file_magic_test_file=/lib/libc.so 5474 ;; 5475 siemens) 5476 lt_cv_deplibs_check_method=pass_all 5477 ;; 5478 pc) 5479 lt_cv_deplibs_check_method=pass_all 5480 ;; 5481 esac 5482 ;; 5483 5484 tpf*) 5485 lt_cv_deplibs_check_method=pass_all 5486 ;; 5487 os2*) 5488 lt_cv_deplibs_check_method=pass_all 5489 ;; 5490 esac 5491 5492 fi 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5494 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5495 5496 file_magic_glob= 5497 want_nocaseglob=no 5498 if test "$build" = "$host"; then 5499 case $host_os in 5500 mingw* | pw32*) 5501 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5502 want_nocaseglob=yes 5503 else 5504 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5505 fi 5506 ;; 5507 esac 5508 fi 5509 5510 file_magic_cmd=$lt_cv_file_magic_cmd 5511 deplibs_check_method=$lt_cv_deplibs_check_method 5512 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 if test -n "$ac_tool_prefix"; then 5536 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5537 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5539 $as_echo_n "checking for $ac_word... " >&6; } 5540 if ${ac_cv_prog_DLLTOOL+:} false; then : 5541 $as_echo_n "(cached) " >&6 5542 else 5543 if test -n "$DLLTOOL"; then 5544 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5545 else 5546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5547 for as_dir in $PATH 5548 do 5549 IFS=$as_save_IFS 5550 test -z "$as_dir" && as_dir=. 5551 for ac_exec_ext in '' $ac_executable_extensions; do 5552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5553 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5555 break 2 5556 fi 5557 done 5558 done 5559 IFS=$as_save_IFS 5560 5561 fi 5562 fi 5563 DLLTOOL=$ac_cv_prog_DLLTOOL 5564 if test -n "$DLLTOOL"; then 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5566 $as_echo "$DLLTOOL" >&6; } 5567 else 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5569 $as_echo "no" >&6; } 5570 fi 5571 5572 5573 fi 5574 if test -z "$ac_cv_prog_DLLTOOL"; then 5575 ac_ct_DLLTOOL=$DLLTOOL 5576 # Extract the first word of "dlltool", so it can be a program name with args. 5577 set dummy dlltool; ac_word=$2 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5579 $as_echo_n "checking for $ac_word... " >&6; } 5580 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582 else 5583 if test -n "$ac_ct_DLLTOOL"; then 5584 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5585 else 5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5587 for as_dir in $PATH 5588 do 5589 IFS=$as_save_IFS 5590 test -z "$as_dir" && as_dir=. 5591 for ac_exec_ext in '' $ac_executable_extensions; do 5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5593 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5595 break 2 5596 fi 5597 done 5598 done 5599 IFS=$as_save_IFS 5600 5601 fi 5602 fi 5603 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5604 if test -n "$ac_ct_DLLTOOL"; then 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5606 $as_echo "$ac_ct_DLLTOOL" >&6; } 5607 else 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5609 $as_echo "no" >&6; } 5610 fi 5611 5612 if test "x$ac_ct_DLLTOOL" = x; then 5613 DLLTOOL="false" 5614 else 5615 case $cross_compiling:$ac_tool_warned in 5616 yes:) 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5619 ac_tool_warned=yes ;; 5620 esac 5621 DLLTOOL=$ac_ct_DLLTOOL 5622 fi 5623 else 5624 DLLTOOL="$ac_cv_prog_DLLTOOL" 5625 fi 5626 5627 test -z "$DLLTOOL" && DLLTOOL=dlltool 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5639 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5640 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5641 $as_echo_n "(cached) " >&6 5642 else 5643 lt_cv_sharedlib_from_linklib_cmd='unknown' 5644 5645 case $host_os in 5646 cygwin* | mingw* | pw32* | cegcc*) 5647 # two different shell functions defined in ltmain.sh; 5648 # decide which one to use based on capabilities of $DLLTOOL 5649 case `$DLLTOOL --help 2>&1` in 5650 *--identify-strict*) 5651 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5652 ;; 5653 *) 5654 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5655 ;; 5656 esac 5657 ;; 5658 *) 5659 # fallback: assume linklib IS sharedlib 5660 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5661 ;; 5662 esac 5663 5664 fi 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5666 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5667 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5668 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5669 5670 5671 5672 5673 5674 5675 5676 5677 if test -n "$ac_tool_prefix"; then 5678 for ac_prog in ar 5679 do 5680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5681 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5683 $as_echo_n "checking for $ac_word... " >&6; } 5684 if ${ac_cv_prog_AR+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686 else 5687 if test -n "$AR"; then 5688 ac_cv_prog_AR="$AR" # Let the user override the test. 5689 else 5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5691 for as_dir in $PATH 5692 do 5693 IFS=$as_save_IFS 5694 test -z "$as_dir" && as_dir=. 5695 for ac_exec_ext in '' $ac_executable_extensions; do 5696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5697 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5699 break 2 5700 fi 5701 done 5702 done 5703 IFS=$as_save_IFS 5704 5705 fi 5706 fi 5707 AR=$ac_cv_prog_AR 5708 if test -n "$AR"; then 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5710 $as_echo "$AR" >&6; } 5711 else 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5713 $as_echo "no" >&6; } 5714 fi 5715 5716 5717 test -n "$AR" && break 5718 done 5719 fi 5720 if test -z "$AR"; then 5721 ac_ct_AR=$AR 5722 for ac_prog in ar 5723 do 5724 # Extract the first word of "$ac_prog", so it can be a program name with args. 5725 set dummy $ac_prog; ac_word=$2 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5727 $as_echo_n "checking for $ac_word... " >&6; } 5728 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730 else 5731 if test -n "$ac_ct_AR"; then 5732 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5733 else 5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735 for as_dir in $PATH 5736 do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_exec_ext in '' $ac_executable_extensions; do 5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5741 ac_cv_prog_ac_ct_AR="$ac_prog" 5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5743 break 2 5744 fi 5745 done 5746 done 5747 IFS=$as_save_IFS 5748 5749 fi 5750 fi 5751 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5752 if test -n "$ac_ct_AR"; then 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5754 $as_echo "$ac_ct_AR" >&6; } 5755 else 5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5757 $as_echo "no" >&6; } 5758 fi 5759 5760 5761 test -n "$ac_ct_AR" && break 5762 done 5763 5764 if test "x$ac_ct_AR" = x; then 5765 AR="false" 5766 else 5767 case $cross_compiling:$ac_tool_warned in 5768 yes:) 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5771 ac_tool_warned=yes ;; 5772 esac 5773 AR=$ac_ct_AR 5774 fi 5775 fi 5776 5777 : ${AR=ar} 5778 : ${AR_FLAGS=cru} 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5791 $as_echo_n "checking for archiver @FILE support... " >&6; } 5792 if ${lt_cv_ar_at_file+:} false; then : 5793 $as_echo_n "(cached) " >&6 5794 else 5795 lt_cv_ar_at_file=no 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797 /* end confdefs.h. */ 5798 5799 int 5800 main () 5801 { 5802 5803 ; 5804 return 0; 5805 } 5806 _ACEOF 5807 if ac_fn_c_try_compile "$LINENO"; then : 5808 echo conftest.$ac_objext > conftest.lst 5809 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5811 (eval $lt_ar_try) 2>&5 5812 ac_status=$? 5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5814 test $ac_status = 0; } 5815 if test 0 -eq "$ac_status"; then 5816 # Ensure the archiver fails upon bogus file names. 5817 rm -f conftest.$ac_objext libconftest.a 5818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5819 (eval $lt_ar_try) 2>&5 5820 ac_status=$? 5821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5822 test $ac_status = 0; } 5823 if test 0 -ne "$ac_status"; then 5824 lt_cv_ar_at_file=@ 5825 fi 5826 fi 5827 rm -f conftest.* libconftest.a 5828 5829 fi 5830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5831 5832 fi 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5834 $as_echo "$lt_cv_ar_at_file" >&6; } 5835 5836 if test no = "$lt_cv_ar_at_file"; then 5837 archiver_list_spec= 5838 else 5839 archiver_list_spec=$lt_cv_ar_at_file 5840 fi 5841 5842 5843 5844 5845 5846 5847 5848 if test -n "$ac_tool_prefix"; then 5849 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5850 set dummy ${ac_tool_prefix}strip; ac_word=$2 5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5852 $as_echo_n "checking for $ac_word... " >&6; } 5853 if ${ac_cv_prog_STRIP+:} false; then : 5854 $as_echo_n "(cached) " >&6 5855 else 5856 if test -n "$STRIP"; then 5857 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5858 else 5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860 for as_dir in $PATH 5861 do 5862 IFS=$as_save_IFS 5863 test -z "$as_dir" && as_dir=. 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5866 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5868 break 2 5869 fi 5870 done 5871 done 5872 IFS=$as_save_IFS 5873 5874 fi 5875 fi 5876 STRIP=$ac_cv_prog_STRIP 5877 if test -n "$STRIP"; then 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5879 $as_echo "$STRIP" >&6; } 5880 else 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5882 $as_echo "no" >&6; } 5883 fi 5884 5885 5886 fi 5887 if test -z "$ac_cv_prog_STRIP"; then 5888 ac_ct_STRIP=$STRIP 5889 # Extract the first word of "strip", so it can be a program name with args. 5890 set dummy strip; ac_word=$2 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892 $as_echo_n "checking for $ac_word... " >&6; } 5893 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895 else 5896 if test -n "$ac_ct_STRIP"; then 5897 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5898 else 5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900 for as_dir in $PATH 5901 do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5906 ac_cv_prog_ac_ct_STRIP="strip" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910 done 5911 done 5912 IFS=$as_save_IFS 5913 5914 fi 5915 fi 5916 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5917 if test -n "$ac_ct_STRIP"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5919 $as_echo "$ac_ct_STRIP" >&6; } 5920 else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922 $as_echo "no" >&6; } 5923 fi 5924 5925 if test "x$ac_ct_STRIP" = x; then 5926 STRIP=":" 5927 else 5928 case $cross_compiling:$ac_tool_warned in 5929 yes:) 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5932 ac_tool_warned=yes ;; 5933 esac 5934 STRIP=$ac_ct_STRIP 5935 fi 5936 else 5937 STRIP="$ac_cv_prog_STRIP" 5938 fi 5939 5940 test -z "$STRIP" && STRIP=: 5941 5942 5943 5944 5945 5946 5947 if test -n "$ac_tool_prefix"; then 5948 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5949 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5951 $as_echo_n "checking for $ac_word... " >&6; } 5952 if ${ac_cv_prog_RANLIB+:} false; then : 5953 $as_echo_n "(cached) " >&6 5954 else 5955 if test -n "$RANLIB"; then 5956 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5957 else 5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959 for as_dir in $PATH 5960 do 5961 IFS=$as_save_IFS 5962 test -z "$as_dir" && as_dir=. 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5965 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969 done 5970 done 5971 IFS=$as_save_IFS 5972 5973 fi 5974 fi 5975 RANLIB=$ac_cv_prog_RANLIB 5976 if test -n "$RANLIB"; then 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5978 $as_echo "$RANLIB" >&6; } 5979 else 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5981 $as_echo "no" >&6; } 5982 fi 5983 5984 5985 fi 5986 if test -z "$ac_cv_prog_RANLIB"; then 5987 ac_ct_RANLIB=$RANLIB 5988 # Extract the first word of "ranlib", so it can be a program name with args. 5989 set dummy ranlib; ac_word=$2 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5991 $as_echo_n "checking for $ac_word... " >&6; } 5992 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994 else 5995 if test -n "$ac_ct_RANLIB"; then 5996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5997 else 5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5999 for as_dir in $PATH 6000 do 6001 IFS=$as_save_IFS 6002 test -z "$as_dir" && as_dir=. 6003 for ac_exec_ext in '' $ac_executable_extensions; do 6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6005 ac_cv_prog_ac_ct_RANLIB="ranlib" 6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6007 break 2 6008 fi 6009 done 6010 done 6011 IFS=$as_save_IFS 6012 6013 fi 6014 fi 6015 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6016 if test -n "$ac_ct_RANLIB"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6018 $as_echo "$ac_ct_RANLIB" >&6; } 6019 else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6021 $as_echo "no" >&6; } 6022 fi 6023 6024 if test "x$ac_ct_RANLIB" = x; then 6025 RANLIB=":" 6026 else 6027 case $cross_compiling:$ac_tool_warned in 6028 yes:) 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6031 ac_tool_warned=yes ;; 6032 esac 6033 RANLIB=$ac_ct_RANLIB 6034 fi 6035 else 6036 RANLIB="$ac_cv_prog_RANLIB" 6037 fi 6038 6039 test -z "$RANLIB" && RANLIB=: 6040 6041 6042 6043 6044 6045 6046 # Determine commands to create old-style static archives. 6047 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6048 old_postinstall_cmds='chmod 644 $oldlib' 6049 old_postuninstall_cmds= 6050 6051 if test -n "$RANLIB"; then 6052 case $host_os in 6053 bitrig* | openbsd*) 6054 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6055 ;; 6056 *) 6057 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6058 ;; 6059 esac 6060 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6061 fi 6062 6063 case $host_os in 6064 darwin*) 6065 lock_old_archive_extraction=yes ;; 6066 *) 6067 lock_old_archive_extraction=no ;; 6068 esac 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 # If no C compiler was specified, use CC. 6109 LTCC=${LTCC-"$CC"} 6110 6111 # If no C compiler flags were specified, use CFLAGS. 6112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6113 6114 # Allow CC to be a program name with arguments. 6115 compiler=$CC 6116 6117 6118 # Check for command to grab the raw symbol name followed by C symbol from nm. 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6120 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6121 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123 else 6124 6125 # These are sane defaults that work on at least a few old systems. 6126 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6127 6128 # Character class describing NM global symbol codes. 6129 symcode='[BCDEGRST]' 6130 6131 # Regexp to match symbols that can be accessed directly from C. 6132 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6133 6134 # Define system-specific variables. 6135 case $host_os in 6136 aix*) 6137 symcode='[BCDT]' 6138 ;; 6139 cygwin* | mingw* | pw32* | cegcc*) 6140 symcode='[ABCDGISTW]' 6141 ;; 6142 hpux*) 6143 if test ia64 = "$host_cpu"; then 6144 symcode='[ABCDEGRST]' 6145 fi 6146 ;; 6147 irix* | nonstopux*) 6148 symcode='[BCDEGRST]' 6149 ;; 6150 osf*) 6151 symcode='[BCDEGQRST]' 6152 ;; 6153 solaris*) 6154 symcode='[BDRT]' 6155 ;; 6156 sco3.2v5*) 6157 symcode='[DT]' 6158 ;; 6159 sysv4.2uw2*) 6160 symcode='[DT]' 6161 ;; 6162 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6163 symcode='[ABDT]' 6164 ;; 6165 sysv4) 6166 symcode='[DFNSTU]' 6167 ;; 6168 esac 6169 6170 # If we're using GNU nm, then use its standard symbol codes. 6171 case `$NM -V 2>&1` in 6172 *GNU* | *'with BFD'*) 6173 symcode='[ABCDGIRSTW]' ;; 6174 esac 6175 6176 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6177 # Gets list of data symbols to import. 6178 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6179 # Adjust the below global symbol transforms to fixup imported variables. 6180 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6181 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6182 lt_c_name_lib_hook="\ 6183 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6184 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6185 else 6186 # Disable hooks by default. 6187 lt_cv_sys_global_symbol_to_import= 6188 lt_cdecl_hook= 6189 lt_c_name_hook= 6190 lt_c_name_lib_hook= 6191 fi 6192 6193 # Transform an extracted symbol line into a proper C declaration. 6194 # Some systems (esp. on ia64) link data and code symbols differently, 6195 # so use this general approach. 6196 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6197 $lt_cdecl_hook\ 6198 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6199 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6200 6201 # Transform an extracted symbol line into symbol name and symbol address 6202 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6203 $lt_c_name_hook\ 6204 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6205 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6206 6207 # Transform an extracted symbol line into symbol name with lib prefix and 6208 # symbol address. 6209 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6210 $lt_c_name_lib_hook\ 6211 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6212 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6213 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6214 6215 # Handle CRLF in mingw tool chain 6216 opt_cr= 6217 case $build_os in 6218 mingw*) 6219 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6220 ;; 6221 esac 6222 6223 # Try without a prefix underscore, then with it. 6224 for ac_symprfx in "" "_"; do 6225 6226 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6227 symxfrm="\\1 $ac_symprfx\\2 \\2" 6228 6229 # Write the raw and C identifiers. 6230 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6231 # Fake it for dumpbin and say T for any non-static function, 6232 # D for any global variable and I for any imported variable. 6233 # Also find C++ and __fastcall symbols from MSVC++, 6234 # which start with @ or ?. 6235 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6236 " {last_section=section; section=\$ 3};"\ 6237 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6238 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6239 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6240 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6241 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6242 " \$ 0!~/External *\|/{next};"\ 6243 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6244 " {if(hide[section]) next};"\ 6245 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6246 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6247 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6248 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6249 " ' prfx=^$ac_symprfx" 6250 else 6251 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6252 fi 6253 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6254 6255 # Check to see that the pipe works correctly. 6256 pipe_works=no 6257 6258 rm -f conftest* 6259 cat > conftest.$ac_ext <<_LT_EOF 6260 #ifdef __cplusplus 6261 extern "C" { 6262 #endif 6263 char nm_test_var; 6264 void nm_test_func(void); 6265 void nm_test_func(void){} 6266 #ifdef __cplusplus 6267 } 6268 #endif 6269 int main(){nm_test_var='a';nm_test_func();return(0);} 6270 _LT_EOF 6271 6272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6273 (eval $ac_compile) 2>&5 6274 ac_status=$? 6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6276 test $ac_status = 0; }; then 6277 # Now try to grab the symbols. 6278 nlist=conftest.nm 6279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6280 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6281 ac_status=$? 6282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6283 test $ac_status = 0; } && test -s "$nlist"; then 6284 # Try sorting and uniquifying the output. 6285 if sort "$nlist" | uniq > "$nlist"T; then 6286 mv -f "$nlist"T "$nlist" 6287 else 6288 rm -f "$nlist"T 6289 fi 6290 6291 # Make sure that we snagged all the symbols we need. 6292 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6293 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6294 cat <<_LT_EOF > conftest.$ac_ext 6295 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6296 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6297 /* DATA imports from DLLs on WIN32 can't be const, because runtime 6298 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6299 # define LT_DLSYM_CONST 6300 #elif defined __osf__ 6301 /* This system does not cope well with relocations in const data. */ 6302 # define LT_DLSYM_CONST 6303 #else 6304 # define LT_DLSYM_CONST const 6305 #endif 6306 6307 #ifdef __cplusplus 6308 extern "C" { 6309 #endif 6310 6311 _LT_EOF 6312 # Now generate the symbol file. 6313 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6314 6315 cat <<_LT_EOF >> conftest.$ac_ext 6316 6317 /* The mapping between symbol names and symbols. */ 6318 LT_DLSYM_CONST struct { 6319 const char *name; 6320 void *address; 6321 } 6322 lt__PROGRAM__LTX_preloaded_symbols[] = 6323 { 6324 { "@PROGRAM@", (void *) 0 }, 6325 _LT_EOF 6326 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6327 cat <<\_LT_EOF >> conftest.$ac_ext 6328 {0, (void *) 0} 6329 }; 6330 6331 /* This works around a problem in FreeBSD linker */ 6332 #ifdef FREEBSD_WORKAROUND 6333 static const void *lt_preloaded_setup() { 6334 return lt__PROGRAM__LTX_preloaded_symbols; 6335 } 6336 #endif 6337 6338 #ifdef __cplusplus 6339 } 6340 #endif 6341 _LT_EOF 6342 # Now try linking the two files. 6343 mv conftest.$ac_objext conftstm.$ac_objext 6344 lt_globsym_save_LIBS=$LIBS 6345 lt_globsym_save_CFLAGS=$CFLAGS 6346 LIBS=conftstm.$ac_objext 6347 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6349 (eval $ac_link) 2>&5 6350 ac_status=$? 6351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6352 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6353 pipe_works=yes 6354 fi 6355 LIBS=$lt_globsym_save_LIBS 6356 CFLAGS=$lt_globsym_save_CFLAGS 6357 else 6358 echo "cannot find nm_test_func in $nlist" >&5 6359 fi 6360 else 6361 echo "cannot find nm_test_var in $nlist" >&5 6362 fi 6363 else 6364 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6365 fi 6366 else 6367 echo "$progname: failed program was:" >&5 6368 cat conftest.$ac_ext >&5 6369 fi 6370 rm -rf conftest* conftst* 6371 6372 # Do not use the global_symbol_pipe unless it works. 6373 if test yes = "$pipe_works"; then 6374 break 6375 else 6376 lt_cv_sys_global_symbol_pipe= 6377 fi 6378 done 6379 6380 fi 6381 6382 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6383 lt_cv_sys_global_symbol_to_cdecl= 6384 fi 6385 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6387 $as_echo "failed" >&6; } 6388 else 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6390 $as_echo "ok" >&6; } 6391 fi 6392 6393 # Response file support. 6394 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6395 nm_file_list_spec='@' 6396 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6397 nm_file_list_spec='@' 6398 fi 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6437 $as_echo_n "checking for sysroot... " >&6; } 6438 6439 # Check whether --with-sysroot was given. 6440 if test "${with_sysroot+set}" = set; then : 6441 withval=$with_sysroot; 6442 else 6443 with_sysroot=no 6444 fi 6445 6446 6447 lt_sysroot= 6448 case $with_sysroot in #( 6449 yes) 6450 if test yes = "$GCC"; then 6451 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6452 fi 6453 ;; #( 6454 /*) 6455 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6456 ;; #( 6457 no|'') 6458 ;; #( 6459 *) 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6461 $as_echo "$with_sysroot" >&6; } 6462 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6463 ;; 6464 esac 6465 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6467 $as_echo "${lt_sysroot:-no}" >&6; } 6468 6469 6470 6471 6472 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6474 $as_echo_n "checking for a working dd... " >&6; } 6475 if ${ac_cv_path_lt_DD+:} false; then : 6476 $as_echo_n "(cached) " >&6 6477 else 6478 printf 0123456789abcdef0123456789abcdef >conftest.i 6479 cat conftest.i conftest.i >conftest2.i 6480 : ${lt_DD:=$DD} 6481 if test -z "$lt_DD"; then 6482 ac_path_lt_DD_found=false 6483 # Loop through the user's path and test for each of PROGNAME-LIST 6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6485 for as_dir in $PATH 6486 do 6487 IFS=$as_save_IFS 6488 test -z "$as_dir" && as_dir=. 6489 for ac_prog in dd; do 6490 for ac_exec_ext in '' $ac_executable_extensions; do 6491 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6492 as_fn_executable_p "$ac_path_lt_DD" || continue 6493 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6494 cmp -s conftest.i conftest.out \ 6495 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6496 fi 6497 $ac_path_lt_DD_found && break 3 6498 done 6499 done 6500 done 6501 IFS=$as_save_IFS 6502 if test -z "$ac_cv_path_lt_DD"; then 6503 : 6504 fi 6505 else 6506 ac_cv_path_lt_DD=$lt_DD 6507 fi 6508 6509 rm -f conftest.i conftest2.i conftest.out 6510 fi 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6512 $as_echo "$ac_cv_path_lt_DD" >&6; } 6513 6514 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6516 $as_echo_n "checking how to truncate binary pipes... " >&6; } 6517 if ${lt_cv_truncate_bin+:} false; then : 6518 $as_echo_n "(cached) " >&6 6519 else 6520 printf 0123456789abcdef0123456789abcdef >conftest.i 6521 cat conftest.i conftest.i >conftest2.i 6522 lt_cv_truncate_bin= 6523 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6524 cmp -s conftest.i conftest.out \ 6525 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6526 fi 6527 rm -f conftest.i conftest2.i conftest.out 6528 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6529 fi 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6531 $as_echo "$lt_cv_truncate_bin" >&6; } 6532 6533 6534 6535 6536 6537 6538 6539 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6540 func_cc_basename () 6541 { 6542 for cc_temp in $*""; do 6543 case $cc_temp in 6544 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6545 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6546 \-*) ;; 6547 *) break;; 6548 esac 6549 done 6550 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6551 } 6552 6553 # Check whether --enable-libtool-lock was given. 6554 if test "${enable_libtool_lock+set}" = set; then : 6555 enableval=$enable_libtool_lock; 6556 fi 6557 6558 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6559 6560 # Some flags need to be propagated to the compiler or linker for good 6561 # libtool support. 6562 case $host in 6563 ia64-*-hpux*) 6564 # Find out what ABI is being produced by ac_compile, and set mode 6565 # options accordingly. 6566 echo 'int i;' > conftest.$ac_ext 6567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6568 (eval $ac_compile) 2>&5 6569 ac_status=$? 6570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6571 test $ac_status = 0; }; then 6572 case `/usr/bin/file conftest.$ac_objext` in 6573 *ELF-32*) 6574 HPUX_IA64_MODE=32 6575 ;; 6576 *ELF-64*) 6577 HPUX_IA64_MODE=64 6578 ;; 6579 esac 6580 fi 6581 rm -rf conftest* 6582 ;; 6583 *-*-irix6*) 6584 # Find out what ABI is being produced by ac_compile, and set linker 6585 # options accordingly. 6586 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6588 (eval $ac_compile) 2>&5 6589 ac_status=$? 6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6591 test $ac_status = 0; }; then 6592 if test yes = "$lt_cv_prog_gnu_ld"; then 6593 case `/usr/bin/file conftest.$ac_objext` in 6594 *32-bit*) 6595 LD="${LD-ld} -melf32bsmip" 6596 ;; 6597 *N32*) 6598 LD="${LD-ld} -melf32bmipn32" 6599 ;; 6600 *64-bit*) 6601 LD="${LD-ld} -melf64bmip" 6602 ;; 6603 esac 6604 else 6605 case `/usr/bin/file conftest.$ac_objext` in 6606 *32-bit*) 6607 LD="${LD-ld} -32" 6608 ;; 6609 *N32*) 6610 LD="${LD-ld} -n32" 6611 ;; 6612 *64-bit*) 6613 LD="${LD-ld} -64" 6614 ;; 6615 esac 6616 fi 6617 fi 6618 rm -rf conftest* 6619 ;; 6620 6621 mips64*-*linux*) 6622 # Find out what ABI is being produced by ac_compile, and set linker 6623 # options accordingly. 6624 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6626 (eval $ac_compile) 2>&5 6627 ac_status=$? 6628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6629 test $ac_status = 0; }; then 6630 emul=elf 6631 case `/usr/bin/file conftest.$ac_objext` in 6632 *32-bit*) 6633 emul="${emul}32" 6634 ;; 6635 *64-bit*) 6636 emul="${emul}64" 6637 ;; 6638 esac 6639 case `/usr/bin/file conftest.$ac_objext` in 6640 *MSB*) 6641 emul="${emul}btsmip" 6642 ;; 6643 *LSB*) 6644 emul="${emul}ltsmip" 6645 ;; 6646 esac 6647 case `/usr/bin/file conftest.$ac_objext` in 6648 *N32*) 6649 emul="${emul}n32" 6650 ;; 6651 esac 6652 LD="${LD-ld} -m $emul" 6653 fi 6654 rm -rf conftest* 6655 ;; 6656 6657 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6658 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6659 # Find out what ABI is being produced by ac_compile, and set linker 6660 # options accordingly. Note that the listed cases only cover the 6661 # situations where additional linker options are needed (such as when 6662 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6663 # vice versa); the common cases where no linker options are needed do 6664 # not appear in the list. 6665 echo 'int i;' > conftest.$ac_ext 6666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6667 (eval $ac_compile) 2>&5 6668 ac_status=$? 6669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6670 test $ac_status = 0; }; then 6671 case `/usr/bin/file conftest.o` in 6672 *32-bit*) 6673 case $host in 6674 x86_64-*kfreebsd*-gnu) 6675 LD="${LD-ld} -m elf_i386_fbsd" 6676 ;; 6677 x86_64-*linux*) 6678 case `/usr/bin/file conftest.o` in 6679 *x86-64*) 6680 LD="${LD-ld} -m elf32_x86_64" 6681 ;; 6682 *) 6683 LD="${LD-ld} -m elf_i386" 6684 ;; 6685 esac 6686 ;; 6687 powerpc64le-*linux*) 6688 LD="${LD-ld} -m elf32lppclinux" 6689 ;; 6690 powerpc64-*linux*) 6691 LD="${LD-ld} -m elf32ppclinux" 6692 ;; 6693 s390x-*linux*) 6694 LD="${LD-ld} -m elf_s390" 6695 ;; 6696 sparc64-*linux*) 6697 LD="${LD-ld} -m elf32_sparc" 6698 ;; 6699 esac 6700 ;; 6701 *64-bit*) 6702 case $host in 6703 x86_64-*kfreebsd*-gnu) 6704 LD="${LD-ld} -m elf_x86_64_fbsd" 6705 ;; 6706 x86_64-*linux*) 6707 LD="${LD-ld} -m elf_x86_64" 6708 ;; 6709 powerpcle-*linux*) 6710 LD="${LD-ld} -m elf64lppc" 6711 ;; 6712 powerpc-*linux*) 6713 LD="${LD-ld} -m elf64ppc" 6714 ;; 6715 s390*-*linux*|s390*-*tpf*) 6716 LD="${LD-ld} -m elf64_s390" 6717 ;; 6718 sparc*-*linux*) 6719 LD="${LD-ld} -m elf64_sparc" 6720 ;; 6721 esac 6722 ;; 6723 esac 6724 fi 6725 rm -rf conftest* 6726 ;; 6727 6728 *-*-sco3.2v5*) 6729 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6730 SAVE_CFLAGS=$CFLAGS 6731 CFLAGS="$CFLAGS -belf" 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6733 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6734 if ${lt_cv_cc_needs_belf+:} false; then : 6735 $as_echo_n "(cached) " >&6 6736 else 6737 ac_ext=c 6738 ac_cpp='$CPP $CPPFLAGS' 6739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6741 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6742 6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744 /* end confdefs.h. */ 6745 6746 int 6747 main () 6748 { 6749 6750 ; 6751 return 0; 6752 } 6753 _ACEOF 6754 if ac_fn_c_try_link "$LINENO"; then : 6755 lt_cv_cc_needs_belf=yes 6756 else 6757 lt_cv_cc_needs_belf=no 6758 fi 6759 rm -f core conftest.err conftest.$ac_objext \ 6760 conftest$ac_exeext conftest.$ac_ext 6761 ac_ext=c 6762 ac_cpp='$CPP $CPPFLAGS' 6763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6765 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6766 6767 fi 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6769 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6770 if test yes != "$lt_cv_cc_needs_belf"; then 6771 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6772 CFLAGS=$SAVE_CFLAGS 6773 fi 6774 ;; 6775 *-*solaris*) 6776 # Find out what ABI is being produced by ac_compile, and set linker 6777 # options accordingly. 6778 echo 'int i;' > conftest.$ac_ext 6779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6780 (eval $ac_compile) 2>&5 6781 ac_status=$? 6782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6783 test $ac_status = 0; }; then 6784 case `/usr/bin/file conftest.o` in 6785 *64-bit*) 6786 case $lt_cv_prog_gnu_ld in 6787 yes*) 6788 case $host in 6789 i?86-*-solaris*|x86_64-*-solaris*) 6790 LD="${LD-ld} -m elf_x86_64" 6791 ;; 6792 sparc*-*-solaris*) 6793 LD="${LD-ld} -m elf64_sparc" 6794 ;; 6795 esac 6796 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6797 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6798 LD=${LD-ld}_sol2 6799 fi 6800 ;; 6801 *) 6802 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6803 LD="${LD-ld} -64" 6804 fi 6805 ;; 6806 esac 6807 ;; 6808 esac 6809 fi 6810 rm -rf conftest* 6811 ;; 6812 esac 6813 6814 need_locks=$enable_libtool_lock 6815 6816 if test -n "$ac_tool_prefix"; then 6817 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6818 set dummy ${ac_tool_prefix}mt; ac_word=$2 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6820 $as_echo_n "checking for $ac_word... " >&6; } 6821 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6822 $as_echo_n "(cached) " >&6 6823 else 6824 if test -n "$MANIFEST_TOOL"; then 6825 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6826 else 6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6828 for as_dir in $PATH 6829 do 6830 IFS=$as_save_IFS 6831 test -z "$as_dir" && as_dir=. 6832 for ac_exec_ext in '' $ac_executable_extensions; do 6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6834 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6836 break 2 6837 fi 6838 done 6839 done 6840 IFS=$as_save_IFS 6841 6842 fi 6843 fi 6844 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6845 if test -n "$MANIFEST_TOOL"; then 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6847 $as_echo "$MANIFEST_TOOL" >&6; } 6848 else 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6850 $as_echo "no" >&6; } 6851 fi 6852 6853 6854 fi 6855 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6856 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6857 # Extract the first word of "mt", so it can be a program name with args. 6858 set dummy mt; ac_word=$2 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6860 $as_echo_n "checking for $ac_word... " >&6; } 6861 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863 else 6864 if test -n "$ac_ct_MANIFEST_TOOL"; then 6865 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6866 else 6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868 for as_dir in $PATH 6869 do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 for ac_exec_ext in '' $ac_executable_extensions; do 6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6874 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6876 break 2 6877 fi 6878 done 6879 done 6880 IFS=$as_save_IFS 6881 6882 fi 6883 fi 6884 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6885 if test -n "$ac_ct_MANIFEST_TOOL"; then 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6887 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6888 else 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6890 $as_echo "no" >&6; } 6891 fi 6892 6893 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6894 MANIFEST_TOOL=":" 6895 else 6896 case $cross_compiling:$ac_tool_warned in 6897 yes:) 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6900 ac_tool_warned=yes ;; 6901 esac 6902 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6903 fi 6904 else 6905 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6906 fi 6907 6908 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6910 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6911 if ${lt_cv_path_mainfest_tool+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913 else 6914 lt_cv_path_mainfest_tool=no 6915 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6916 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6917 cat conftest.err >&5 6918 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6919 lt_cv_path_mainfest_tool=yes 6920 fi 6921 rm -f conftest* 6922 fi 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6924 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 6925 if test yes != "$lt_cv_path_mainfest_tool"; then 6926 MANIFEST_TOOL=: 6927 fi 6928 6929 6930 6931 6932 6933 6934 case $host_os in 6935 rhapsody* | darwin*) 6936 if test -n "$ac_tool_prefix"; then 6937 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6938 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6940 $as_echo_n "checking for $ac_word... " >&6; } 6941 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6942 $as_echo_n "(cached) " >&6 6943 else 6944 if test -n "$DSYMUTIL"; then 6945 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6946 else 6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6948 for as_dir in $PATH 6949 do 6950 IFS=$as_save_IFS 6951 test -z "$as_dir" && as_dir=. 6952 for ac_exec_ext in '' $ac_executable_extensions; do 6953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6954 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6956 break 2 6957 fi 6958 done 6959 done 6960 IFS=$as_save_IFS 6961 6962 fi 6963 fi 6964 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6965 if test -n "$DSYMUTIL"; then 6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6967 $as_echo "$DSYMUTIL" >&6; } 6968 else 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6970 $as_echo "no" >&6; } 6971 fi 6972 6973 6974 fi 6975 if test -z "$ac_cv_prog_DSYMUTIL"; then 6976 ac_ct_DSYMUTIL=$DSYMUTIL 6977 # Extract the first word of "dsymutil", so it can be a program name with args. 6978 set dummy dsymutil; ac_word=$2 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6980 $as_echo_n "checking for $ac_word... " >&6; } 6981 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6982 $as_echo_n "(cached) " >&6 6983 else 6984 if test -n "$ac_ct_DSYMUTIL"; then 6985 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6986 else 6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6988 for as_dir in $PATH 6989 do 6990 IFS=$as_save_IFS 6991 test -z "$as_dir" && as_dir=. 6992 for ac_exec_ext in '' $ac_executable_extensions; do 6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6994 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6996 break 2 6997 fi 6998 done 6999 done 7000 IFS=$as_save_IFS 7001 7002 fi 7003 fi 7004 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7005 if test -n "$ac_ct_DSYMUTIL"; then 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7007 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7008 else 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7010 $as_echo "no" >&6; } 7011 fi 7012 7013 if test "x$ac_ct_DSYMUTIL" = x; then 7014 DSYMUTIL=":" 7015 else 7016 case $cross_compiling:$ac_tool_warned in 7017 yes:) 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7020 ac_tool_warned=yes ;; 7021 esac 7022 DSYMUTIL=$ac_ct_DSYMUTIL 7023 fi 7024 else 7025 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7026 fi 7027 7028 if test -n "$ac_tool_prefix"; then 7029 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7030 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7032 $as_echo_n "checking for $ac_word... " >&6; } 7033 if ${ac_cv_prog_NMEDIT+:} false; then : 7034 $as_echo_n "(cached) " >&6 7035 else 7036 if test -n "$NMEDIT"; then 7037 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7038 else 7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040 for as_dir in $PATH 7041 do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7046 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050 done 7051 done 7052 IFS=$as_save_IFS 7053 7054 fi 7055 fi 7056 NMEDIT=$ac_cv_prog_NMEDIT 7057 if test -n "$NMEDIT"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7059 $as_echo "$NMEDIT" >&6; } 7060 else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7062 $as_echo "no" >&6; } 7063 fi 7064 7065 7066 fi 7067 if test -z "$ac_cv_prog_NMEDIT"; then 7068 ac_ct_NMEDIT=$NMEDIT 7069 # Extract the first word of "nmedit", so it can be a program name with args. 7070 set dummy nmedit; ac_word=$2 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7072 $as_echo_n "checking for $ac_word... " >&6; } 7073 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075 else 7076 if test -n "$ac_ct_NMEDIT"; then 7077 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7078 else 7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080 for as_dir in $PATH 7081 do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7086 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090 done 7091 done 7092 IFS=$as_save_IFS 7093 7094 fi 7095 fi 7096 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7097 if test -n "$ac_ct_NMEDIT"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7099 $as_echo "$ac_ct_NMEDIT" >&6; } 7100 else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102 $as_echo "no" >&6; } 7103 fi 7104 7105 if test "x$ac_ct_NMEDIT" = x; then 7106 NMEDIT=":" 7107 else 7108 case $cross_compiling:$ac_tool_warned in 7109 yes:) 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7112 ac_tool_warned=yes ;; 7113 esac 7114 NMEDIT=$ac_ct_NMEDIT 7115 fi 7116 else 7117 NMEDIT="$ac_cv_prog_NMEDIT" 7118 fi 7119 7120 if test -n "$ac_tool_prefix"; then 7121 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7122 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124 $as_echo_n "checking for $ac_word... " >&6; } 7125 if ${ac_cv_prog_LIPO+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127 else 7128 if test -n "$LIPO"; then 7129 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7130 else 7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7132 for as_dir in $PATH 7133 do 7134 IFS=$as_save_IFS 7135 test -z "$as_dir" && as_dir=. 7136 for ac_exec_ext in '' $ac_executable_extensions; do 7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7138 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7140 break 2 7141 fi 7142 done 7143 done 7144 IFS=$as_save_IFS 7145 7146 fi 7147 fi 7148 LIPO=$ac_cv_prog_LIPO 7149 if test -n "$LIPO"; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7151 $as_echo "$LIPO" >&6; } 7152 else 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7154 $as_echo "no" >&6; } 7155 fi 7156 7157 7158 fi 7159 if test -z "$ac_cv_prog_LIPO"; then 7160 ac_ct_LIPO=$LIPO 7161 # Extract the first word of "lipo", so it can be a program name with args. 7162 set dummy lipo; ac_word=$2 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164 $as_echo_n "checking for $ac_word... " >&6; } 7165 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167 else 7168 if test -n "$ac_ct_LIPO"; then 7169 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7170 else 7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172 for as_dir in $PATH 7173 do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_ac_ct_LIPO="lipo" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182 done 7183 done 7184 IFS=$as_save_IFS 7185 7186 fi 7187 fi 7188 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7189 if test -n "$ac_ct_LIPO"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7191 $as_echo "$ac_ct_LIPO" >&6; } 7192 else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194 $as_echo "no" >&6; } 7195 fi 7196 7197 if test "x$ac_ct_LIPO" = x; then 7198 LIPO=":" 7199 else 7200 case $cross_compiling:$ac_tool_warned in 7201 yes:) 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7204 ac_tool_warned=yes ;; 7205 esac 7206 LIPO=$ac_ct_LIPO 7207 fi 7208 else 7209 LIPO="$ac_cv_prog_LIPO" 7210 fi 7211 7212 if test -n "$ac_tool_prefix"; then 7213 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7214 set dummy ${ac_tool_prefix}otool; ac_word=$2 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7216 $as_echo_n "checking for $ac_word... " >&6; } 7217 if ${ac_cv_prog_OTOOL+:} false; then : 7218 $as_echo_n "(cached) " >&6 7219 else 7220 if test -n "$OTOOL"; then 7221 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7222 else 7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7224 for as_dir in $PATH 7225 do 7226 IFS=$as_save_IFS 7227 test -z "$as_dir" && as_dir=. 7228 for ac_exec_ext in '' $ac_executable_extensions; do 7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7230 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7232 break 2 7233 fi 7234 done 7235 done 7236 IFS=$as_save_IFS 7237 7238 fi 7239 fi 7240 OTOOL=$ac_cv_prog_OTOOL 7241 if test -n "$OTOOL"; then 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7243 $as_echo "$OTOOL" >&6; } 7244 else 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7246 $as_echo "no" >&6; } 7247 fi 7248 7249 7250 fi 7251 if test -z "$ac_cv_prog_OTOOL"; then 7252 ac_ct_OTOOL=$OTOOL 7253 # Extract the first word of "otool", so it can be a program name with args. 7254 set dummy otool; ac_word=$2 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256 $as_echo_n "checking for $ac_word... " >&6; } 7257 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259 else 7260 if test -n "$ac_ct_OTOOL"; then 7261 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7262 else 7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264 for as_dir in $PATH 7265 do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_prog_ac_ct_OTOOL="otool" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274 done 7275 done 7276 IFS=$as_save_IFS 7277 7278 fi 7279 fi 7280 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7281 if test -n "$ac_ct_OTOOL"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7283 $as_echo "$ac_ct_OTOOL" >&6; } 7284 else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286 $as_echo "no" >&6; } 7287 fi 7288 7289 if test "x$ac_ct_OTOOL" = x; then 7290 OTOOL=":" 7291 else 7292 case $cross_compiling:$ac_tool_warned in 7293 yes:) 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7296 ac_tool_warned=yes ;; 7297 esac 7298 OTOOL=$ac_ct_OTOOL 7299 fi 7300 else 7301 OTOOL="$ac_cv_prog_OTOOL" 7302 fi 7303 7304 if test -n "$ac_tool_prefix"; then 7305 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7306 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7308 $as_echo_n "checking for $ac_word... " >&6; } 7309 if ${ac_cv_prog_OTOOL64+:} false; then : 7310 $as_echo_n "(cached) " >&6 7311 else 7312 if test -n "$OTOOL64"; then 7313 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7314 else 7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7316 for as_dir in $PATH 7317 do 7318 IFS=$as_save_IFS 7319 test -z "$as_dir" && as_dir=. 7320 for ac_exec_ext in '' $ac_executable_extensions; do 7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7322 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7324 break 2 7325 fi 7326 done 7327 done 7328 IFS=$as_save_IFS 7329 7330 fi 7331 fi 7332 OTOOL64=$ac_cv_prog_OTOOL64 7333 if test -n "$OTOOL64"; then 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7335 $as_echo "$OTOOL64" >&6; } 7336 else 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7338 $as_echo "no" >&6; } 7339 fi 7340 7341 7342 fi 7343 if test -z "$ac_cv_prog_OTOOL64"; then 7344 ac_ct_OTOOL64=$OTOOL64 7345 # Extract the first word of "otool64", so it can be a program name with args. 7346 set dummy otool64; ac_word=$2 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7348 $as_echo_n "checking for $ac_word... " >&6; } 7349 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351 else 7352 if test -n "$ac_ct_OTOOL64"; then 7353 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7354 else 7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356 for as_dir in $PATH 7357 do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7362 ac_cv_prog_ac_ct_OTOOL64="otool64" 7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366 done 7367 done 7368 IFS=$as_save_IFS 7369 7370 fi 7371 fi 7372 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7373 if test -n "$ac_ct_OTOOL64"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7375 $as_echo "$ac_ct_OTOOL64" >&6; } 7376 else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378 $as_echo "no" >&6; } 7379 fi 7380 7381 if test "x$ac_ct_OTOOL64" = x; then 7382 OTOOL64=":" 7383 else 7384 case $cross_compiling:$ac_tool_warned in 7385 yes:) 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7388 ac_tool_warned=yes ;; 7389 esac 7390 OTOOL64=$ac_ct_OTOOL64 7391 fi 7392 else 7393 OTOOL64="$ac_cv_prog_OTOOL64" 7394 fi 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7423 $as_echo_n "checking for -single_module linker flag... " >&6; } 7424 if ${lt_cv_apple_cc_single_mod+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426 else 7427 lt_cv_apple_cc_single_mod=no 7428 if test -z "$LT_MULTI_MODULE"; then 7429 # By default we will add the -single_module flag. You can override 7430 # by either setting the environment variable LT_MULTI_MODULE 7431 # non-empty at configure time, or by adding -multi_module to the 7432 # link flags. 7433 rm -rf libconftest.dylib* 7434 echo "int foo(void){return 1;}" > conftest.c 7435 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7436 -dynamiclib -Wl,-single_module conftest.c" >&5 7437 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7438 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7439 _lt_result=$? 7440 # If there is a non-empty error log, and "single_module" 7441 # appears in it, assume the flag caused a linker warning 7442 if test -s conftest.err && $GREP single_module conftest.err; then 7443 cat conftest.err >&5 7444 # Otherwise, if the output was created with a 0 exit code from 7445 # the compiler, it worked. 7446 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7447 lt_cv_apple_cc_single_mod=yes 7448 else 7449 cat conftest.err >&5 7450 fi 7451 rm -rf libconftest.dylib* 7452 rm -f conftest.* 7453 fi 7454 fi 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7456 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7457 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7459 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7460 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7461 $as_echo_n "(cached) " >&6 7462 else 7463 lt_cv_ld_exported_symbols_list=no 7464 save_LDFLAGS=$LDFLAGS 7465 echo "_main" > conftest.sym 7466 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7468 /* end confdefs.h. */ 7469 7470 int 7471 main () 7472 { 7473 7474 ; 7475 return 0; 7476 } 7477 _ACEOF 7478 if ac_fn_c_try_link "$LINENO"; then : 7479 lt_cv_ld_exported_symbols_list=yes 7480 else 7481 lt_cv_ld_exported_symbols_list=no 7482 fi 7483 rm -f core conftest.err conftest.$ac_objext \ 7484 conftest$ac_exeext conftest.$ac_ext 7485 LDFLAGS=$save_LDFLAGS 7486 7487 fi 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7489 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7490 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7492 $as_echo_n "checking for -force_load linker flag... " >&6; } 7493 if ${lt_cv_ld_force_load+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495 else 7496 lt_cv_ld_force_load=no 7497 cat > conftest.c << _LT_EOF 7498 int forced_loaded() { return 2;} 7499 _LT_EOF 7500 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7501 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7502 echo "$AR cru libconftest.a conftest.o" >&5 7503 $AR cru libconftest.a conftest.o 2>&5 7504 echo "$RANLIB libconftest.a" >&5 7505 $RANLIB libconftest.a 2>&5 7506 cat > conftest.c << _LT_EOF 7507 int main() { return 0;} 7508 _LT_EOF 7509 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7510 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7511 _lt_result=$? 7512 if test -s conftest.err && $GREP force_load conftest.err; then 7513 cat conftest.err >&5 7514 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7515 lt_cv_ld_force_load=yes 7516 else 7517 cat conftest.err >&5 7518 fi 7519 rm -f conftest.err libconftest.a conftest conftest.c 7520 rm -rf conftest.dSYM 7521 7522 fi 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7524 $as_echo "$lt_cv_ld_force_load" >&6; } 7525 case $host_os in 7526 rhapsody* | darwin1.[012]) 7527 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7528 darwin1.*) 7529 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7530 darwin*) # darwin 5.x on 7531 # if running on 10.5 or later, the deployment target defaults 7532 # to the OS version, if on x86, and 10.4, the deployment 7533 # target defaults to 10.4. Don't you love it? 7534 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7535 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7536 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7537 10.[012][,.]*) 7538 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7539 10.*) 7540 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7541 esac 7542 ;; 7543 esac 7544 if test yes = "$lt_cv_apple_cc_single_mod"; then 7545 _lt_dar_single_mod='$single_module' 7546 fi 7547 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7548 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7549 else 7550 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7551 fi 7552 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7553 _lt_dsymutil='~$DSYMUTIL $lib || :' 7554 else 7555 _lt_dsymutil= 7556 fi 7557 ;; 7558 esac 7559 7560 # func_munge_path_list VARIABLE PATH 7561 # ----------------------------------- 7562 # VARIABLE is name of variable containing _space_ separated list of 7563 # directories to be munged by the contents of PATH, which is string 7564 # having a format: 7565 # "DIR[:DIR]:" 7566 # string "DIR[ DIR]" will be prepended to VARIABLE 7567 # ":DIR[:DIR]" 7568 # string "DIR[ DIR]" will be appended to VARIABLE 7569 # "DIRP[:DIRP]::[DIRA:]DIRA" 7570 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7571 # "DIRA[ DIRA]" will be appended to VARIABLE 7572 # "DIR[:DIR]" 7573 # VARIABLE will be replaced by "DIR[ DIR]" 7574 func_munge_path_list () 7575 { 7576 case x$2 in 7577 x) 7578 ;; 7579 *:) 7580 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7581 ;; 7582 x:*) 7583 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7584 ;; 7585 *::*) 7586 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7587 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7588 ;; 7589 *) 7590 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7591 ;; 7592 esac 7593 } 7594 7595 ac_ext=c 7596 ac_cpp='$CPP $CPPFLAGS' 7597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7599 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7601 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7602 # On Suns, sometimes $CPP names a directory. 7603 if test -n "$CPP" && test -d "$CPP"; then 7604 CPP= 7605 fi 7606 if test -z "$CPP"; then 7607 if ${ac_cv_prog_CPP+:} false; then : 7608 $as_echo_n "(cached) " >&6 7609 else 7610 # Double quotes because CPP needs to be expanded 7611 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7612 do 7613 ac_preproc_ok=false 7614 for ac_c_preproc_warn_flag in '' yes 7615 do 7616 # Use a header file that comes with gcc, so configuring glibc 7617 # with a fresh cross-compiler works. 7618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7619 # <limits.h> exists even on freestanding compilers. 7620 # On the NeXT, cc -E runs the code through the compiler's parser, 7621 # not just through cpp. "Syntax error" is here to catch this case. 7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7623 /* end confdefs.h. */ 7624 #ifdef __STDC__ 7625 # include <limits.h> 7626 #else 7627 # include <assert.h> 7628 #endif 7629 Syntax error 7630 _ACEOF 7631 if ac_fn_c_try_cpp "$LINENO"; then : 7632 7633 else 7634 # Broken: fails on valid input. 7635 continue 7636 fi 7637 rm -f conftest.err conftest.i conftest.$ac_ext 7638 7639 # OK, works on sane cases. Now check whether nonexistent headers 7640 # can be detected and how. 7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642 /* end confdefs.h. */ 7643 #include <ac_nonexistent.h> 7644 _ACEOF 7645 if ac_fn_c_try_cpp "$LINENO"; then : 7646 # Broken: success on invalid input. 7647 continue 7648 else 7649 # Passes both tests. 7650 ac_preproc_ok=: 7651 break 7652 fi 7653 rm -f conftest.err conftest.i conftest.$ac_ext 7654 7655 done 7656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7657 rm -f conftest.i conftest.err conftest.$ac_ext 7658 if $ac_preproc_ok; then : 7659 break 7660 fi 7661 7662 done 7663 ac_cv_prog_CPP=$CPP 7664 7665 fi 7666 CPP=$ac_cv_prog_CPP 7667 else 7668 ac_cv_prog_CPP=$CPP 7669 fi 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7671 $as_echo "$CPP" >&6; } 7672 ac_preproc_ok=false 7673 for ac_c_preproc_warn_flag in '' yes 7674 do 7675 # Use a header file that comes with gcc, so configuring glibc 7676 # with a fresh cross-compiler works. 7677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7678 # <limits.h> exists even on freestanding compilers. 7679 # On the NeXT, cc -E runs the code through the compiler's parser, 7680 # not just through cpp. "Syntax error" is here to catch this case. 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682 /* end confdefs.h. */ 7683 #ifdef __STDC__ 7684 # include <limits.h> 7685 #else 7686 # include <assert.h> 7687 #endif 7688 Syntax error 7689 _ACEOF 7690 if ac_fn_c_try_cpp "$LINENO"; then : 7691 7692 else 7693 # Broken: fails on valid input. 7694 continue 7695 fi 7696 rm -f conftest.err conftest.i conftest.$ac_ext 7697 7698 # OK, works on sane cases. Now check whether nonexistent headers 7699 # can be detected and how. 7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7701 /* end confdefs.h. */ 7702 #include <ac_nonexistent.h> 7703 _ACEOF 7704 if ac_fn_c_try_cpp "$LINENO"; then : 7705 # Broken: success on invalid input. 7706 continue 7707 else 7708 # Passes both tests. 7709 ac_preproc_ok=: 7710 break 7711 fi 7712 rm -f conftest.err conftest.i conftest.$ac_ext 7713 7714 done 7715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7716 rm -f conftest.i conftest.err conftest.$ac_ext 7717 if $ac_preproc_ok; then : 7718 7719 else 7720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7722 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7723 See \`config.log' for more details" "$LINENO" 5; } 7724 fi 7725 7726 ac_ext=c 7727 ac_cpp='$CPP $CPPFLAGS' 7728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7730 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7731 7732 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7734 $as_echo_n "checking for ANSI C header files... " >&6; } 7735 if ${ac_cv_header_stdc+:} false; then : 7736 $as_echo_n "(cached) " >&6 7737 else 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7739 /* end confdefs.h. */ 7740 #include <stdlib.h> 7741 #include <stdarg.h> 7742 #include <string.h> 7743 #include <float.h> 7744 7745 int 7746 main () 7747 { 7748 7749 ; 7750 return 0; 7751 } 7752 _ACEOF 7753 if ac_fn_c_try_compile "$LINENO"; then : 7754 ac_cv_header_stdc=yes 7755 else 7756 ac_cv_header_stdc=no 7757 fi 7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7759 7760 if test $ac_cv_header_stdc = yes; then 7761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7763 /* end confdefs.h. */ 7764 #include <string.h> 7765 7766 _ACEOF 7767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7768 $EGREP "memchr" >/dev/null 2>&1; then : 7769 7770 else 7771 ac_cv_header_stdc=no 7772 fi 7773 rm -f conftest* 7774 7775 fi 7776 7777 if test $ac_cv_header_stdc = yes; then 7778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7780 /* end confdefs.h. */ 7781 #include <stdlib.h> 7782 7783 _ACEOF 7784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7785 $EGREP "free" >/dev/null 2>&1; then : 7786 7787 else 7788 ac_cv_header_stdc=no 7789 fi 7790 rm -f conftest* 7791 7792 fi 7793 7794 if test $ac_cv_header_stdc = yes; then 7795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7796 if test "$cross_compiling" = yes; then : 7797 : 7798 else 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800 /* end confdefs.h. */ 7801 #include <ctype.h> 7802 #include <stdlib.h> 7803 #if ((' ' & 0x0FF) == 0x020) 7804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7806 #else 7807 # define ISLOWER(c) \ 7808 (('a' <= (c) && (c) <= 'i') \ 7809 || ('j' <= (c) && (c) <= 'r') \ 7810 || ('s' <= (c) && (c) <= 'z')) 7811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7812 #endif 7813 7814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7815 int 7816 main () 7817 { 7818 int i; 7819 for (i = 0; i < 256; i++) 7820 if (XOR (islower (i), ISLOWER (i)) 7821 || toupper (i) != TOUPPER (i)) 7822 return 2; 7823 return 0; 7824 } 7825 _ACEOF 7826 if ac_fn_c_try_run "$LINENO"; then : 7827 7828 else 7829 ac_cv_header_stdc=no 7830 fi 7831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7832 conftest.$ac_objext conftest.beam conftest.$ac_ext 7833 fi 7834 7835 fi 7836 fi 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7838 $as_echo "$ac_cv_header_stdc" >&6; } 7839 if test $ac_cv_header_stdc = yes; then 7840 7841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7842 7843 fi 7844 7845 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7846 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7847 inttypes.h stdint.h unistd.h 7848 do : 7849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7850 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7851 " 7852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7853 cat >>confdefs.h <<_ACEOF 7854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7855 _ACEOF 7856 7857 fi 7858 7859 done 7860 7861 7862 for ac_header in dlfcn.h 7863 do : 7864 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7865 " 7866 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7867 cat >>confdefs.h <<_ACEOF 7868 #define HAVE_DLFCN_H 1 7869 _ACEOF 7870 7871 fi 7872 7873 done 7874 7875 7876 7877 7878 7879 # Set options 7880 7881 7882 7883 enable_dlopen=no 7884 7885 7886 enable_win32_dll=no 7887 7888 7889 # Check whether --enable-shared was given. 7890 if test "${enable_shared+set}" = set; then : 7891 enableval=$enable_shared; p=${PACKAGE-default} 7892 case $enableval in 7893 yes) enable_shared=yes ;; 7894 no) enable_shared=no ;; 7895 *) 7896 enable_shared=no 7897 # Look at the argument we got. We use all the common list separators. 7898 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7899 for pkg in $enableval; do 7900 IFS=$lt_save_ifs 7901 if test "X$pkg" = "X$p"; then 7902 enable_shared=yes 7903 fi 7904 done 7905 IFS=$lt_save_ifs 7906 ;; 7907 esac 7908 else 7909 enable_shared=yes 7910 fi 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 # Check whether --enable-static was given. 7921 if test "${enable_static+set}" = set; then : 7922 enableval=$enable_static; p=${PACKAGE-default} 7923 case $enableval in 7924 yes) enable_static=yes ;; 7925 no) enable_static=no ;; 7926 *) 7927 enable_static=no 7928 # Look at the argument we got. We use all the common list separators. 7929 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7930 for pkg in $enableval; do 7931 IFS=$lt_save_ifs 7932 if test "X$pkg" = "X$p"; then 7933 enable_static=yes 7934 fi 7935 done 7936 IFS=$lt_save_ifs 7937 ;; 7938 esac 7939 else 7940 enable_static=yes 7941 fi 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 # Check whether --with-pic was given. 7953 if test "${with_pic+set}" = set; then : 7954 withval=$with_pic; lt_p=${PACKAGE-default} 7955 case $withval in 7956 yes|no) pic_mode=$withval ;; 7957 *) 7958 pic_mode=default 7959 # Look at the argument we got. We use all the common list separators. 7960 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7961 for lt_pkg in $withval; do 7962 IFS=$lt_save_ifs 7963 if test "X$lt_pkg" = "X$lt_p"; then 7964 pic_mode=yes 7965 fi 7966 done 7967 IFS=$lt_save_ifs 7968 ;; 7969 esac 7970 else 7971 pic_mode=default 7972 fi 7973 7974 7975 7976 7977 7978 7979 7980 7981 # Check whether --enable-fast-install was given. 7982 if test "${enable_fast_install+set}" = set; then : 7983 enableval=$enable_fast_install; p=${PACKAGE-default} 7984 case $enableval in 7985 yes) enable_fast_install=yes ;; 7986 no) enable_fast_install=no ;; 7987 *) 7988 enable_fast_install=no 7989 # Look at the argument we got. We use all the common list separators. 7990 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7991 for pkg in $enableval; do 7992 IFS=$lt_save_ifs 7993 if test "X$pkg" = "X$p"; then 7994 enable_fast_install=yes 7995 fi 7996 done 7997 IFS=$lt_save_ifs 7998 ;; 7999 esac 8000 else 8001 enable_fast_install=yes 8002 fi 8003 8004 8005 8006 8007 8008 8009 8010 8011 shared_archive_member_spec= 8012 case $host,$enable_shared in 8013 power*-*-aix[5-9]*,yes) 8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8015 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8016 8017 # Check whether --with-aix-soname was given. 8018 if test "${with_aix_soname+set}" = set; then : 8019 withval=$with_aix_soname; case $withval in 8020 aix|svr4|both) 8021 ;; 8022 *) 8023 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8024 ;; 8025 esac 8026 lt_cv_with_aix_soname=$with_aix_soname 8027 else 8028 if ${lt_cv_with_aix_soname+:} false; then : 8029 $as_echo_n "(cached) " >&6 8030 else 8031 lt_cv_with_aix_soname=aix 8032 fi 8033 8034 with_aix_soname=$lt_cv_with_aix_soname 8035 fi 8036 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8038 $as_echo "$with_aix_soname" >&6; } 8039 if test aix != "$with_aix_soname"; then 8040 # For the AIX way of multilib, we name the shared archive member 8041 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8042 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8043 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8044 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8045 if test 64 = "${OBJECT_MODE-32}"; then 8046 shared_archive_member_spec=shr_64 8047 else 8048 shared_archive_member_spec=shr 8049 fi 8050 fi 8051 ;; 8052 *) 8053 with_aix_soname=aix 8054 ;; 8055 esac 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 # This can be used to rebuild libtool when needed 8067 LIBTOOL_DEPS=$ltmain 8068 8069 # Always use our own libtool. 8070 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 test -z "$LN_S" && LN_S="ln -s" 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 if test -n "${ZSH_VERSION+set}"; then 8117 setopt NO_GLOB_SUBST 8118 fi 8119 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8121 $as_echo_n "checking for objdir... " >&6; } 8122 if ${lt_cv_objdir+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124 else 8125 rm -f .libs 2>/dev/null 8126 mkdir .libs 2>/dev/null 8127 if test -d .libs; then 8128 lt_cv_objdir=.libs 8129 else 8130 # MS-DOS does not allow filenames that begin with a dot. 8131 lt_cv_objdir=_libs 8132 fi 8133 rmdir .libs 2>/dev/null 8134 fi 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8136 $as_echo "$lt_cv_objdir" >&6; } 8137 objdir=$lt_cv_objdir 8138 8139 8140 8141 8142 8143 cat >>confdefs.h <<_ACEOF 8144 #define LT_OBJDIR "$lt_cv_objdir/" 8145 _ACEOF 8146 8147 8148 8149 8150 case $host_os in 8151 aix3*) 8152 # AIX sometimes has problems with the GCC collect2 program. For some 8153 # reason, if we set the COLLECT_NAMES environment variable, the problems 8154 # vanish in a puff of smoke. 8155 if test set != "${COLLECT_NAMES+set}"; then 8156 COLLECT_NAMES= 8157 export COLLECT_NAMES 8158 fi 8159 ;; 8160 esac 8161 8162 # Global variables: 8163 ofile=libtool 8164 can_build_shared=yes 8165 8166 # All known linkers require a '.a' archive for static linking (except MSVC, 8167 # which needs '.lib'). 8168 libext=a 8169 8170 with_gnu_ld=$lt_cv_prog_gnu_ld 8171 8172 old_CC=$CC 8173 old_CFLAGS=$CFLAGS 8174 8175 # Set sane defaults for various variables 8176 test -z "$CC" && CC=cc 8177 test -z "$LTCC" && LTCC=$CC 8178 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8179 test -z "$LD" && LD=ld 8180 test -z "$ac_objext" && ac_objext=o 8181 8182 func_cc_basename $compiler 8183 cc_basename=$func_cc_basename_result 8184 8185 8186 # Only perform the check for file, if the check method requires it 8187 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8188 case $deplibs_check_method in 8189 file_magic*) 8190 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8192 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8193 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8194 $as_echo_n "(cached) " >&6 8195 else 8196 case $MAGIC_CMD in 8197 [\\/*] | ?:[\\/]*) 8198 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8199 ;; 8200 *) 8201 lt_save_MAGIC_CMD=$MAGIC_CMD 8202 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8203 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8204 for ac_dir in $ac_dummy; do 8205 IFS=$lt_save_ifs 8206 test -z "$ac_dir" && ac_dir=. 8207 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8208 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8209 if test -n "$file_magic_test_file"; then 8210 case $deplibs_check_method in 8211 "file_magic "*) 8212 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8213 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8214 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8215 $EGREP "$file_magic_regex" > /dev/null; then 8216 : 8217 else 8218 cat <<_LT_EOF 1>&2 8219 8220 *** Warning: the command libtool uses to detect shared libraries, 8221 *** $file_magic_cmd, produces output that libtool cannot recognize. 8222 *** The result is that libtool may fail to recognize shared libraries 8223 *** as such. This will affect the creation of libtool libraries that 8224 *** depend on shared libraries, but programs linked with such libtool 8225 *** libraries will work regardless of this problem. Nevertheless, you 8226 *** may want to report the problem to your system manager and/or to 8227 *** bug-libtool@gnu.org 8228 8229 _LT_EOF 8230 fi ;; 8231 esac 8232 fi 8233 break 8234 fi 8235 done 8236 IFS=$lt_save_ifs 8237 MAGIC_CMD=$lt_save_MAGIC_CMD 8238 ;; 8239 esac 8240 fi 8241 8242 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8243 if test -n "$MAGIC_CMD"; then 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8245 $as_echo "$MAGIC_CMD" >&6; } 8246 else 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8248 $as_echo "no" >&6; } 8249 fi 8250 8251 8252 8253 8254 8255 if test -z "$lt_cv_path_MAGIC_CMD"; then 8256 if test -n "$ac_tool_prefix"; then 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8258 $as_echo_n "checking for file... " >&6; } 8259 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8260 $as_echo_n "(cached) " >&6 8261 else 8262 case $MAGIC_CMD in 8263 [\\/*] | ?:[\\/]*) 8264 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8265 ;; 8266 *) 8267 lt_save_MAGIC_CMD=$MAGIC_CMD 8268 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8269 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8270 for ac_dir in $ac_dummy; do 8271 IFS=$lt_save_ifs 8272 test -z "$ac_dir" && ac_dir=. 8273 if test -f "$ac_dir/file"; then 8274 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8275 if test -n "$file_magic_test_file"; then 8276 case $deplibs_check_method in 8277 "file_magic "*) 8278 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8279 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8280 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8281 $EGREP "$file_magic_regex" > /dev/null; then 8282 : 8283 else 8284 cat <<_LT_EOF 1>&2 8285 8286 *** Warning: the command libtool uses to detect shared libraries, 8287 *** $file_magic_cmd, produces output that libtool cannot recognize. 8288 *** The result is that libtool may fail to recognize shared libraries 8289 *** as such. This will affect the creation of libtool libraries that 8290 *** depend on shared libraries, but programs linked with such libtool 8291 *** libraries will work regardless of this problem. Nevertheless, you 8292 *** may want to report the problem to your system manager and/or to 8293 *** bug-libtool@gnu.org 8294 8295 _LT_EOF 8296 fi ;; 8297 esac 8298 fi 8299 break 8300 fi 8301 done 8302 IFS=$lt_save_ifs 8303 MAGIC_CMD=$lt_save_MAGIC_CMD 8304 ;; 8305 esac 8306 fi 8307 8308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8309 if test -n "$MAGIC_CMD"; then 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8311 $as_echo "$MAGIC_CMD" >&6; } 8312 else 8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8314 $as_echo "no" >&6; } 8315 fi 8316 8317 8318 else 8319 MAGIC_CMD=: 8320 fi 8321 fi 8322 8323 fi 8324 ;; 8325 esac 8326 8327 # Use C for the default configuration in the libtool script 8328 8329 lt_save_CC=$CC 8330 ac_ext=c 8331 ac_cpp='$CPP $CPPFLAGS' 8332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8334 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8335 8336 8337 # Source file extension for C test sources. 8338 ac_ext=c 8339 8340 # Object file extension for compiled C test sources. 8341 objext=o 8342 objext=$objext 8343 8344 # Code to be used in simple compile tests 8345 lt_simple_compile_test_code="int some_variable = 0;" 8346 8347 # Code to be used in simple link tests 8348 lt_simple_link_test_code='int main(){return(0);}' 8349 8350 8351 8352 8353 8354 8355 8356 # If no C compiler was specified, use CC. 8357 LTCC=${LTCC-"$CC"} 8358 8359 # If no C compiler flags were specified, use CFLAGS. 8360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8361 8362 # Allow CC to be a program name with arguments. 8363 compiler=$CC 8364 8365 # Save the default compiler, since it gets overwritten when the other 8366 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8367 compiler_DEFAULT=$CC 8368 8369 # save warnings/boilerplate of simple test code 8370 ac_outfile=conftest.$ac_objext 8371 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8372 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8373 _lt_compiler_boilerplate=`cat conftest.err` 8374 $RM conftest* 8375 8376 ac_outfile=conftest.$ac_objext 8377 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8378 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8379 _lt_linker_boilerplate=`cat conftest.err` 8380 $RM -r conftest* 8381 8382 8383 ## CAVEAT EMPTOR: 8384 ## There is no encapsulation within the following macros, do not change 8385 ## the running order or otherwise move them around unless you know exactly 8386 ## what you are doing... 8387 if test -n "$compiler"; then 8388 8389 lt_prog_compiler_no_builtin_flag= 8390 8391 if test yes = "$GCC"; then 8392 case $cc_basename in 8393 nvcc*) 8394 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8395 *) 8396 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8397 esac 8398 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8400 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8401 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8402 $as_echo_n "(cached) " >&6 8403 else 8404 lt_cv_prog_compiler_rtti_exceptions=no 8405 ac_outfile=conftest.$ac_objext 8406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8407 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8408 # Insert the option either (1) after the last *FLAGS variable, or 8409 # (2) before a word containing "conftest.", or (3) at the end. 8410 # Note that $ac_compile itself does not contain backslashes and begins 8411 # with a dollar sign (not a hyphen), so the echo should work correctly. 8412 # The option is referenced via a variable to avoid confusing sed. 8413 lt_compile=`echo "$ac_compile" | $SED \ 8414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8416 -e 's:$: $lt_compiler_flag:'` 8417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8418 (eval "$lt_compile" 2>conftest.err) 8419 ac_status=$? 8420 cat conftest.err >&5 8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8422 if (exit $ac_status) && test -s "$ac_outfile"; then 8423 # The compiler can only warn and ignore the option if not recognized 8424 # So say no if there are warnings other than the usual output. 8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8426 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8427 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8428 lt_cv_prog_compiler_rtti_exceptions=yes 8429 fi 8430 fi 8431 $RM conftest* 8432 8433 fi 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8435 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8436 8437 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8438 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8439 else 8440 : 8441 fi 8442 8443 fi 8444 8445 8446 8447 8448 8449 8450 lt_prog_compiler_wl= 8451 lt_prog_compiler_pic= 8452 lt_prog_compiler_static= 8453 8454 8455 if test yes = "$GCC"; then 8456 lt_prog_compiler_wl='-Wl,' 8457 lt_prog_compiler_static='-static' 8458 8459 case $host_os in 8460 aix*) 8461 # All AIX code is PIC. 8462 if test ia64 = "$host_cpu"; then 8463 # AIX 5 now supports IA64 processor 8464 lt_prog_compiler_static='-Bstatic' 8465 fi 8466 lt_prog_compiler_pic='-fPIC' 8467 ;; 8468 8469 amigaos*) 8470 case $host_cpu in 8471 powerpc) 8472 # see comment about AmigaOS4 .so support 8473 lt_prog_compiler_pic='-fPIC' 8474 ;; 8475 m68k) 8476 # FIXME: we need at least 68020 code to build shared libraries, but 8477 # adding the '-m68020' flag to GCC prevents building anything better, 8478 # like '-m68040'. 8479 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8480 ;; 8481 esac 8482 ;; 8483 8484 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8485 # PIC is the default for these OSes. 8486 ;; 8487 8488 mingw* | cygwin* | pw32* | os2* | cegcc*) 8489 # This hack is so that the source file can tell whether it is being 8490 # built for inclusion in a dll (and should export symbols for example). 8491 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8492 # (--disable-auto-import) libraries 8493 lt_prog_compiler_pic='-DDLL_EXPORT' 8494 case $host_os in 8495 os2*) 8496 lt_prog_compiler_static='$wl-static' 8497 ;; 8498 esac 8499 ;; 8500 8501 darwin* | rhapsody*) 8502 # PIC is the default on this platform 8503 # Common symbols not allowed in MH_DYLIB files 8504 lt_prog_compiler_pic='-fno-common' 8505 ;; 8506 8507 haiku*) 8508 # PIC is the default for Haiku. 8509 # The "-static" flag exists, but is broken. 8510 lt_prog_compiler_static= 8511 ;; 8512 8513 hpux*) 8514 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8515 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8516 # sets the default TLS model and affects inlining. 8517 case $host_cpu in 8518 hppa*64*) 8519 # +Z the default 8520 ;; 8521 *) 8522 lt_prog_compiler_pic='-fPIC' 8523 ;; 8524 esac 8525 ;; 8526 8527 interix[3-9]*) 8528 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8529 # Instead, we relocate shared libraries at runtime. 8530 ;; 8531 8532 msdosdjgpp*) 8533 # Just because we use GCC doesn't mean we suddenly get shared libraries 8534 # on systems that don't support them. 8535 lt_prog_compiler_can_build_shared=no 8536 enable_shared=no 8537 ;; 8538 8539 *nto* | *qnx*) 8540 # QNX uses GNU C++, but need to define -shared option too, otherwise 8541 # it will coredump. 8542 lt_prog_compiler_pic='-fPIC -shared' 8543 ;; 8544 8545 sysv4*MP*) 8546 if test -d /usr/nec; then 8547 lt_prog_compiler_pic=-Kconform_pic 8548 fi 8549 ;; 8550 8551 *) 8552 lt_prog_compiler_pic='-fPIC' 8553 ;; 8554 esac 8555 8556 case $cc_basename in 8557 nvcc*) # Cuda Compiler Driver 2.2 8558 lt_prog_compiler_wl='-Xlinker ' 8559 if test -n "$lt_prog_compiler_pic"; then 8560 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8561 fi 8562 ;; 8563 esac 8564 else 8565 # PORTME Check for flag to pass linker flags through the system compiler. 8566 case $host_os in 8567 aix*) 8568 lt_prog_compiler_wl='-Wl,' 8569 if test ia64 = "$host_cpu"; then 8570 # AIX 5 now supports IA64 processor 8571 lt_prog_compiler_static='-Bstatic' 8572 else 8573 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8574 fi 8575 ;; 8576 8577 darwin* | rhapsody*) 8578 # PIC is the default on this platform 8579 # Common symbols not allowed in MH_DYLIB files 8580 lt_prog_compiler_pic='-fno-common' 8581 case $cc_basename in 8582 nagfor*) 8583 # NAG Fortran compiler 8584 lt_prog_compiler_wl='-Wl,-Wl,,' 8585 lt_prog_compiler_pic='-PIC' 8586 lt_prog_compiler_static='-Bstatic' 8587 ;; 8588 esac 8589 ;; 8590 8591 mingw* | cygwin* | pw32* | os2* | cegcc*) 8592 # This hack is so that the source file can tell whether it is being 8593 # built for inclusion in a dll (and should export symbols for example). 8594 lt_prog_compiler_pic='-DDLL_EXPORT' 8595 case $host_os in 8596 os2*) 8597 lt_prog_compiler_static='$wl-static' 8598 ;; 8599 esac 8600 ;; 8601 8602 hpux9* | hpux10* | hpux11*) 8603 lt_prog_compiler_wl='-Wl,' 8604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8605 # not for PA HP-UX. 8606 case $host_cpu in 8607 hppa*64*|ia64*) 8608 # +Z the default 8609 ;; 8610 *) 8611 lt_prog_compiler_pic='+Z' 8612 ;; 8613 esac 8614 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8615 lt_prog_compiler_static='$wl-a ${wl}archive' 8616 ;; 8617 8618 irix5* | irix6* | nonstopux*) 8619 lt_prog_compiler_wl='-Wl,' 8620 # PIC (with -KPIC) is the default. 8621 lt_prog_compiler_static='-non_shared' 8622 ;; 8623 8624 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8625 case $cc_basename in 8626 # old Intel for x86_64, which still supported -KPIC. 8627 ecc*) 8628 lt_prog_compiler_wl='-Wl,' 8629 lt_prog_compiler_pic='-KPIC' 8630 lt_prog_compiler_static='-static' 8631 ;; 8632 # icc used to be incompatible with GCC. 8633 # ICC 10 doesn't accept -KPIC any more. 8634 icc* | ifort*) 8635 lt_prog_compiler_wl='-Wl,' 8636 lt_prog_compiler_pic='-fPIC' 8637 lt_prog_compiler_static='-static' 8638 ;; 8639 # Lahey Fortran 8.1. 8640 lf95*) 8641 lt_prog_compiler_wl='-Wl,' 8642 lt_prog_compiler_pic='--shared' 8643 lt_prog_compiler_static='--static' 8644 ;; 8645 nagfor*) 8646 # NAG Fortran compiler 8647 lt_prog_compiler_wl='-Wl,-Wl,,' 8648 lt_prog_compiler_pic='-PIC' 8649 lt_prog_compiler_static='-Bstatic' 8650 ;; 8651 tcc*) 8652 # Fabrice Bellard et al's Tiny C Compiler 8653 lt_prog_compiler_wl='-Wl,' 8654 lt_prog_compiler_pic='-fPIC' 8655 lt_prog_compiler_static='-static' 8656 ;; 8657 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8658 # Portland Group compilers (*not* the Pentium gcc compiler, 8659 # which looks to be a dead project) 8660 lt_prog_compiler_wl='-Wl,' 8661 lt_prog_compiler_pic='-fpic' 8662 lt_prog_compiler_static='-Bstatic' 8663 ;; 8664 ccc*) 8665 lt_prog_compiler_wl='-Wl,' 8666 # All Alpha code is PIC. 8667 lt_prog_compiler_static='-non_shared' 8668 ;; 8669 xl* | bgxl* | bgf* | mpixl*) 8670 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8671 lt_prog_compiler_wl='-Wl,' 8672 lt_prog_compiler_pic='-qpic' 8673 lt_prog_compiler_static='-qstaticlink' 8674 ;; 8675 *) 8676 case `$CC -V 2>&1 | sed 5q` in 8677 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8678 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8679 lt_prog_compiler_pic='-KPIC' 8680 lt_prog_compiler_static='-Bstatic' 8681 lt_prog_compiler_wl='' 8682 ;; 8683 *Sun\ F* | *Sun*Fortran*) 8684 lt_prog_compiler_pic='-KPIC' 8685 lt_prog_compiler_static='-Bstatic' 8686 lt_prog_compiler_wl='-Qoption ld ' 8687 ;; 8688 *Sun\ C*) 8689 # Sun C 5.9 8690 lt_prog_compiler_pic='-KPIC' 8691 lt_prog_compiler_static='-Bstatic' 8692 lt_prog_compiler_wl='-Wl,' 8693 ;; 8694 *Intel*\ [CF]*Compiler*) 8695 lt_prog_compiler_wl='-Wl,' 8696 lt_prog_compiler_pic='-fPIC' 8697 lt_prog_compiler_static='-static' 8698 ;; 8699 *Portland\ Group*) 8700 lt_prog_compiler_wl='-Wl,' 8701 lt_prog_compiler_pic='-fpic' 8702 lt_prog_compiler_static='-Bstatic' 8703 ;; 8704 esac 8705 ;; 8706 esac 8707 ;; 8708 8709 newsos6) 8710 lt_prog_compiler_pic='-KPIC' 8711 lt_prog_compiler_static='-Bstatic' 8712 ;; 8713 8714 *nto* | *qnx*) 8715 # QNX uses GNU C++, but need to define -shared option too, otherwise 8716 # it will coredump. 8717 lt_prog_compiler_pic='-fPIC -shared' 8718 ;; 8719 8720 osf3* | osf4* | osf5*) 8721 lt_prog_compiler_wl='-Wl,' 8722 # All OSF/1 code is PIC. 8723 lt_prog_compiler_static='-non_shared' 8724 ;; 8725 8726 rdos*) 8727 lt_prog_compiler_static='-non_shared' 8728 ;; 8729 8730 solaris*) 8731 lt_prog_compiler_pic='-KPIC' 8732 lt_prog_compiler_static='-Bstatic' 8733 case $cc_basename in 8734 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8735 lt_prog_compiler_wl='-Qoption ld ';; 8736 *) 8737 lt_prog_compiler_wl='-Wl,';; 8738 esac 8739 ;; 8740 8741 sunos4*) 8742 lt_prog_compiler_wl='-Qoption ld ' 8743 lt_prog_compiler_pic='-PIC' 8744 lt_prog_compiler_static='-Bstatic' 8745 ;; 8746 8747 sysv4 | sysv4.2uw2* | sysv4.3*) 8748 lt_prog_compiler_wl='-Wl,' 8749 lt_prog_compiler_pic='-KPIC' 8750 lt_prog_compiler_static='-Bstatic' 8751 ;; 8752 8753 sysv4*MP*) 8754 if test -d /usr/nec; then 8755 lt_prog_compiler_pic='-Kconform_pic' 8756 lt_prog_compiler_static='-Bstatic' 8757 fi 8758 ;; 8759 8760 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8761 lt_prog_compiler_wl='-Wl,' 8762 lt_prog_compiler_pic='-KPIC' 8763 lt_prog_compiler_static='-Bstatic' 8764 ;; 8765 8766 unicos*) 8767 lt_prog_compiler_wl='-Wl,' 8768 lt_prog_compiler_can_build_shared=no 8769 ;; 8770 8771 uts4*) 8772 lt_prog_compiler_pic='-pic' 8773 lt_prog_compiler_static='-Bstatic' 8774 ;; 8775 8776 *) 8777 lt_prog_compiler_can_build_shared=no 8778 ;; 8779 esac 8780 fi 8781 8782 case $host_os in 8783 # For platforms that do not support PIC, -DPIC is meaningless: 8784 *djgpp*) 8785 lt_prog_compiler_pic= 8786 ;; 8787 *) 8788 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8789 ;; 8790 esac 8791 8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8793 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8794 if ${lt_cv_prog_compiler_pic+:} false; then : 8795 $as_echo_n "(cached) " >&6 8796 else 8797 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8798 fi 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8800 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8801 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8802 8803 # 8804 # Check to make sure the PIC flag actually works. 8805 # 8806 if test -n "$lt_prog_compiler_pic"; then 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8808 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8809 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811 else 8812 lt_cv_prog_compiler_pic_works=no 8813 ac_outfile=conftest.$ac_objext 8814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8815 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8816 # Insert the option either (1) after the last *FLAGS variable, or 8817 # (2) before a word containing "conftest.", or (3) at the end. 8818 # Note that $ac_compile itself does not contain backslashes and begins 8819 # with a dollar sign (not a hyphen), so the echo should work correctly. 8820 # The option is referenced via a variable to avoid confusing sed. 8821 lt_compile=`echo "$ac_compile" | $SED \ 8822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8824 -e 's:$: $lt_compiler_flag:'` 8825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8826 (eval "$lt_compile" 2>conftest.err) 8827 ac_status=$? 8828 cat conftest.err >&5 8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8830 if (exit $ac_status) && test -s "$ac_outfile"; then 8831 # The compiler can only warn and ignore the option if not recognized 8832 # So say no if there are warnings other than the usual output. 8833 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8836 lt_cv_prog_compiler_pic_works=yes 8837 fi 8838 fi 8839 $RM conftest* 8840 8841 fi 8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8843 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8844 8845 if test yes = "$lt_cv_prog_compiler_pic_works"; then 8846 case $lt_prog_compiler_pic in 8847 "" | " "*) ;; 8848 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8849 esac 8850 else 8851 lt_prog_compiler_pic= 8852 lt_prog_compiler_can_build_shared=no 8853 fi 8854 8855 fi 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 # 8868 # Check to make sure the static flag actually works. 8869 # 8870 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8872 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8873 if ${lt_cv_prog_compiler_static_works+:} false; then : 8874 $as_echo_n "(cached) " >&6 8875 else 8876 lt_cv_prog_compiler_static_works=no 8877 save_LDFLAGS=$LDFLAGS 8878 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8879 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8880 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8881 # The linker can only warn and ignore the option if not recognized 8882 # So say no if there are warnings 8883 if test -s conftest.err; then 8884 # Append any errors to the config.log. 8885 cat conftest.err 1>&5 8886 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8888 if diff conftest.exp conftest.er2 >/dev/null; then 8889 lt_cv_prog_compiler_static_works=yes 8890 fi 8891 else 8892 lt_cv_prog_compiler_static_works=yes 8893 fi 8894 fi 8895 $RM -r conftest* 8896 LDFLAGS=$save_LDFLAGS 8897 8898 fi 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8900 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8901 8902 if test yes = "$lt_cv_prog_compiler_static_works"; then 8903 : 8904 else 8905 lt_prog_compiler_static= 8906 fi 8907 8908 8909 8910 8911 8912 8913 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8915 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8916 if ${lt_cv_prog_compiler_c_o+:} false; then : 8917 $as_echo_n "(cached) " >&6 8918 else 8919 lt_cv_prog_compiler_c_o=no 8920 $RM -r conftest 2>/dev/null 8921 mkdir conftest 8922 cd conftest 8923 mkdir out 8924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8925 8926 lt_compiler_flag="-o out/conftest2.$ac_objext" 8927 # Insert the option either (1) after the last *FLAGS variable, or 8928 # (2) before a word containing "conftest.", or (3) at the end. 8929 # Note that $ac_compile itself does not contain backslashes and begins 8930 # with a dollar sign (not a hyphen), so the echo should work correctly. 8931 lt_compile=`echo "$ac_compile" | $SED \ 8932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8934 -e 's:$: $lt_compiler_flag:'` 8935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8936 (eval "$lt_compile" 2>out/conftest.err) 8937 ac_status=$? 8938 cat out/conftest.err >&5 8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8940 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8941 then 8942 # The compiler can only warn and ignore the option if not recognized 8943 # So say no if there are warnings 8944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8947 lt_cv_prog_compiler_c_o=yes 8948 fi 8949 fi 8950 chmod u+w . 2>&5 8951 $RM conftest* 8952 # SGI C++ compiler will create directory out/ii_files/ for 8953 # template instantiation 8954 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8955 $RM out/* && rmdir out 8956 cd .. 8957 $RM -r conftest 8958 $RM conftest* 8959 8960 fi 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8962 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8963 8964 8965 8966 8967 8968 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8971 if ${lt_cv_prog_compiler_c_o+:} false; then : 8972 $as_echo_n "(cached) " >&6 8973 else 8974 lt_cv_prog_compiler_c_o=no 8975 $RM -r conftest 2>/dev/null 8976 mkdir conftest 8977 cd conftest 8978 mkdir out 8979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8980 8981 lt_compiler_flag="-o out/conftest2.$ac_objext" 8982 # Insert the option either (1) after the last *FLAGS variable, or 8983 # (2) before a word containing "conftest.", or (3) at the end. 8984 # Note that $ac_compile itself does not contain backslashes and begins 8985 # with a dollar sign (not a hyphen), so the echo should work correctly. 8986 lt_compile=`echo "$ac_compile" | $SED \ 8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8989 -e 's:$: $lt_compiler_flag:'` 8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8991 (eval "$lt_compile" 2>out/conftest.err) 8992 ac_status=$? 8993 cat out/conftest.err >&5 8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8995 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8996 then 8997 # The compiler can only warn and ignore the option if not recognized 8998 # So say no if there are warnings 8999 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9002 lt_cv_prog_compiler_c_o=yes 9003 fi 9004 fi 9005 chmod u+w . 2>&5 9006 $RM conftest* 9007 # SGI C++ compiler will create directory out/ii_files/ for 9008 # template instantiation 9009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9010 $RM out/* && rmdir out 9011 cd .. 9012 $RM -r conftest 9013 $RM conftest* 9014 9015 fi 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9017 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9018 9019 9020 9021 9022 hard_links=nottested 9023 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9024 # do not overwrite the value of need_locks provided by the user 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9026 $as_echo_n "checking if we can lock with hard links... " >&6; } 9027 hard_links=yes 9028 $RM conftest* 9029 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9030 touch conftest.a 9031 ln conftest.a conftest.b 2>&5 || hard_links=no 9032 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9034 $as_echo "$hard_links" >&6; } 9035 if test no = "$hard_links"; then 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9037 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9038 need_locks=warn 9039 fi 9040 else 9041 need_locks=no 9042 fi 9043 9044 9045 9046 9047 9048 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9050 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9051 9052 runpath_var= 9053 allow_undefined_flag= 9054 always_export_symbols=no 9055 archive_cmds= 9056 archive_expsym_cmds= 9057 compiler_needs_object=no 9058 enable_shared_with_static_runtimes=no 9059 export_dynamic_flag_spec= 9060 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9061 hardcode_automatic=no 9062 hardcode_direct=no 9063 hardcode_direct_absolute=no 9064 hardcode_libdir_flag_spec= 9065 hardcode_libdir_separator= 9066 hardcode_minus_L=no 9067 hardcode_shlibpath_var=unsupported 9068 inherit_rpath=no 9069 link_all_deplibs=unknown 9070 module_cmds= 9071 module_expsym_cmds= 9072 old_archive_from_new_cmds= 9073 old_archive_from_expsyms_cmds= 9074 thread_safe_flag_spec= 9075 whole_archive_flag_spec= 9076 # include_expsyms should be a list of space-separated symbols to be *always* 9077 # included in the symbol list 9078 include_expsyms= 9079 # exclude_expsyms can be an extended regexp of symbols to exclude 9080 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9081 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9082 # as well as any symbol that contains 'd'. 9083 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9084 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9085 # platforms (ab)use it in PIC code, but their linkers get confused if 9086 # the symbol is explicitly referenced. Since portable code cannot 9087 # rely on this symbol name, it's probably fine to never include it in 9088 # preloaded symbol tables. 9089 # Exclude shared library initialization/finalization symbols. 9090 extract_expsyms_cmds= 9091 9092 case $host_os in 9093 cygwin* | mingw* | pw32* | cegcc*) 9094 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9095 # When not using gcc, we currently assume that we are using 9096 # Microsoft Visual C++. 9097 if test yes != "$GCC"; then 9098 with_gnu_ld=no 9099 fi 9100 ;; 9101 interix*) 9102 # we just hope/assume this is gcc and not c89 (= MSVC++) 9103 with_gnu_ld=yes 9104 ;; 9105 openbsd* | bitrig*) 9106 with_gnu_ld=no 9107 ;; 9108 linux* | k*bsd*-gnu | gnu*) 9109 link_all_deplibs=no 9110 ;; 9111 esac 9112 9113 ld_shlibs=yes 9114 9115 # On some targets, GNU ld is compatible enough with the native linker 9116 # that we're better off using the native interface for both. 9117 lt_use_gnu_ld_interface=no 9118 if test yes = "$with_gnu_ld"; then 9119 case $host_os in 9120 aix*) 9121 # The AIX port of GNU ld has always aspired to compatibility 9122 # with the native linker. However, as the warning in the GNU ld 9123 # block says, versions before 2.19.5* couldn't really create working 9124 # shared libraries, regardless of the interface used. 9125 case `$LD -v 2>&1` in 9126 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9127 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9128 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9129 *) 9130 lt_use_gnu_ld_interface=yes 9131 ;; 9132 esac 9133 ;; 9134 *) 9135 lt_use_gnu_ld_interface=yes 9136 ;; 9137 esac 9138 fi 9139 9140 if test yes = "$lt_use_gnu_ld_interface"; then 9141 # If archive_cmds runs LD, not CC, wlarc should be empty 9142 wlarc='$wl' 9143 9144 # Set some defaults for GNU ld with shared library support. These 9145 # are reset later if shared libraries are not supported. Putting them 9146 # here allows them to be overridden if necessary. 9147 runpath_var=LD_RUN_PATH 9148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9149 export_dynamic_flag_spec='$wl--export-dynamic' 9150 # ancient GNU ld didn't support --whole-archive et. al. 9151 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9152 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9153 else 9154 whole_archive_flag_spec= 9155 fi 9156 supports_anon_versioning=no 9157 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9158 *GNU\ gold*) supports_anon_versioning=yes ;; 9159 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9160 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9161 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9162 *\ 2.11.*) ;; # other 2.11 versions 9163 *) supports_anon_versioning=yes ;; 9164 esac 9165 9166 # See if GNU ld supports shared libraries. 9167 case $host_os in 9168 aix[3-9]*) 9169 # On AIX/PPC, the GNU linker is very broken 9170 if test ia64 != "$host_cpu"; then 9171 ld_shlibs=no 9172 cat <<_LT_EOF 1>&2 9173 9174 *** Warning: the GNU linker, at least up to release 2.19, is reported 9175 *** to be unable to reliably create shared libraries on AIX. 9176 *** Therefore, libtool is disabling shared libraries support. If you 9177 *** really care for shared libraries, you may want to install binutils 9178 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9179 *** You will then need to restart the configuration process. 9180 9181 _LT_EOF 9182 fi 9183 ;; 9184 9185 amigaos*) 9186 case $host_cpu in 9187 powerpc) 9188 # see comment about AmigaOS4 .so support 9189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9190 archive_expsym_cmds='' 9191 ;; 9192 m68k) 9193 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9194 hardcode_libdir_flag_spec='-L$libdir' 9195 hardcode_minus_L=yes 9196 ;; 9197 esac 9198 ;; 9199 9200 beos*) 9201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9202 allow_undefined_flag=unsupported 9203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9204 # support --undefined. This deserves some investigation. FIXME 9205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9206 else 9207 ld_shlibs=no 9208 fi 9209 ;; 9210 9211 cygwin* | mingw* | pw32* | cegcc*) 9212 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9213 # as there is no search path for DLLs. 9214 hardcode_libdir_flag_spec='-L$libdir' 9215 export_dynamic_flag_spec='$wl--export-all-symbols' 9216 allow_undefined_flag=unsupported 9217 always_export_symbols=no 9218 enable_shared_with_static_runtimes=yes 9219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9220 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9221 9222 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9223 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9224 # If the export-symbols file already is a .def file, use it as 9225 # is; otherwise, prepend EXPORTS... 9226 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9227 cp $export_symbols $output_objdir/$soname.def; 9228 else 9229 echo EXPORTS > $output_objdir/$soname.def; 9230 cat $export_symbols >> $output_objdir/$soname.def; 9231 fi~ 9232 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9233 else 9234 ld_shlibs=no 9235 fi 9236 ;; 9237 9238 haiku*) 9239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9240 link_all_deplibs=yes 9241 ;; 9242 9243 os2*) 9244 hardcode_libdir_flag_spec='-L$libdir' 9245 hardcode_minus_L=yes 9246 allow_undefined_flag=unsupported 9247 shrext_cmds=.dll 9248 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9251 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9252 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9253 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9254 emximp -o $lib $output_objdir/$libname.def' 9255 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9256 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9257 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9258 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9259 prefix_cmds="$SED"~ 9260 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9261 prefix_cmds="$prefix_cmds -e 1d"; 9262 fi~ 9263 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9264 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9265 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9266 emximp -o $lib $output_objdir/$libname.def' 9267 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9268 enable_shared_with_static_runtimes=yes 9269 ;; 9270 9271 interix[3-9]*) 9272 hardcode_direct=no 9273 hardcode_shlibpath_var=no 9274 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9275 export_dynamic_flag_spec='$wl-E' 9276 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9277 # Instead, shared libraries are loaded at an image base (0x10000000 by 9278 # default) and relocated if they conflict, which is a slow very memory 9279 # consuming and fragmenting process. To avoid this, we pick a random, 9280 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9281 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9282 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9283 archive_expsym_cmds='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' 9284 ;; 9285 9286 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9287 tmp_diet=no 9288 if test linux-dietlibc = "$host_os"; then 9289 case $cc_basename in 9290 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9291 esac 9292 fi 9293 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9294 && test no = "$tmp_diet" 9295 then 9296 tmp_addflag=' $pic_flag' 9297 tmp_sharedflag='-shared' 9298 case $cc_basename,$host_cpu in 9299 pgcc*) # Portland Group C compiler 9300 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9301 tmp_addflag=' $pic_flag' 9302 ;; 9303 pgf77* | pgf90* | pgf95* | pgfortran*) 9304 # Portland Group f77 and f90 compilers 9305 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9306 tmp_addflag=' $pic_flag -Mnomain' ;; 9307 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9308 tmp_addflag=' -i_dynamic' ;; 9309 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9310 tmp_addflag=' -i_dynamic -nofor_main' ;; 9311 ifc* | ifort*) # Intel Fortran compiler 9312 tmp_addflag=' -nofor_main' ;; 9313 lf95*) # Lahey Fortran 8.1 9314 whole_archive_flag_spec= 9315 tmp_sharedflag='--shared' ;; 9316 nagfor*) # NAGFOR 5.3 9317 tmp_sharedflag='-Wl,-shared' ;; 9318 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9319 tmp_sharedflag='-qmkshrobj' 9320 tmp_addflag= ;; 9321 nvcc*) # Cuda Compiler Driver 2.2 9322 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9323 compiler_needs_object=yes 9324 ;; 9325 esac 9326 case `$CC -V 2>&1 | sed 5q` in 9327 *Sun\ C*) # Sun C 5.9 9328 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9329 compiler_needs_object=yes 9330 tmp_sharedflag='-G' ;; 9331 *Sun\ F*) # Sun Fortran 8.3 9332 tmp_sharedflag='-G' ;; 9333 esac 9334 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9335 9336 if test yes = "$supports_anon_versioning"; then 9337 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9338 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9339 echo "local: *; };" >> $output_objdir/$libname.ver~ 9340 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9341 fi 9342 9343 case $cc_basename in 9344 tcc*) 9345 export_dynamic_flag_spec='-rdynamic' 9346 ;; 9347 xlf* | bgf* | bgxlf* | mpixlf*) 9348 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9349 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9351 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9352 if test yes = "$supports_anon_versioning"; then 9353 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9354 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9355 echo "local: *; };" >> $output_objdir/$libname.ver~ 9356 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9357 fi 9358 ;; 9359 esac 9360 else 9361 ld_shlibs=no 9362 fi 9363 ;; 9364 9365 netbsd* | netbsdelf*-gnu) 9366 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9367 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9368 wlarc= 9369 else 9370 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9371 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9372 fi 9373 ;; 9374 9375 solaris*) 9376 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9377 ld_shlibs=no 9378 cat <<_LT_EOF 1>&2 9379 9380 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9381 *** create shared libraries on Solaris systems. Therefore, libtool 9382 *** is disabling shared libraries support. We urge you to upgrade GNU 9383 *** binutils to release 2.9.1 or newer. Another option is to modify 9384 *** your PATH or compiler configuration so that the native linker is 9385 *** used, and then restart. 9386 9387 _LT_EOF 9388 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9390 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9391 else 9392 ld_shlibs=no 9393 fi 9394 ;; 9395 9396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9397 case `$LD -v 2>&1` in 9398 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9399 ld_shlibs=no 9400 cat <<_LT_EOF 1>&2 9401 9402 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9403 *** reliably create shared libraries on SCO systems. Therefore, libtool 9404 *** is disabling shared libraries support. We urge you to upgrade GNU 9405 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9406 *** your PATH or compiler configuration so that the native linker is 9407 *** used, and then restart. 9408 9409 _LT_EOF 9410 ;; 9411 *) 9412 # For security reasons, it is highly recommended that you always 9413 # use absolute paths for naming shared libraries, and exclude the 9414 # DT_RUNPATH tag from executables and libraries. But doing so 9415 # requires that you compile everything twice, which is a pain. 9416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9417 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9419 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9420 else 9421 ld_shlibs=no 9422 fi 9423 ;; 9424 esac 9425 ;; 9426 9427 sunos4*) 9428 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9429 wlarc= 9430 hardcode_direct=yes 9431 hardcode_shlibpath_var=no 9432 ;; 9433 9434 *) 9435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9436 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9437 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9438 else 9439 ld_shlibs=no 9440 fi 9441 ;; 9442 esac 9443 9444 if test no = "$ld_shlibs"; then 9445 runpath_var= 9446 hardcode_libdir_flag_spec= 9447 export_dynamic_flag_spec= 9448 whole_archive_flag_spec= 9449 fi 9450 else 9451 # PORTME fill in a description of your system's linker (not GNU ld) 9452 case $host_os in 9453 aix3*) 9454 allow_undefined_flag=unsupported 9455 always_export_symbols=yes 9456 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9457 # Note: this linker hardcodes the directories in LIBPATH if there 9458 # are no directories specified by -L. 9459 hardcode_minus_L=yes 9460 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9461 # Neither direct hardcoding nor static linking is supported with a 9462 # broken collect2. 9463 hardcode_direct=unsupported 9464 fi 9465 ;; 9466 9467 aix[4-9]*) 9468 if test ia64 = "$host_cpu"; then 9469 # On IA64, the linker does run time linking by default, so we don't 9470 # have to do anything special. 9471 aix_use_runtimelinking=no 9472 exp_sym_flag='-Bexport' 9473 no_entry_flag= 9474 else 9475 # If we're using GNU nm, then we don't want the "-C" option. 9476 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9477 # Without the "-l" option, or with the "-B" option, AIX nm treats 9478 # weak defined symbols like other global defined symbols, whereas 9479 # GNU nm marks them as "W". 9480 # While the 'weak' keyword is ignored in the Export File, we need 9481 # it in the Import File for the 'aix-soname' feature, so we have 9482 # to replace the "-B" option with "-P" for AIX nm. 9483 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9484 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9485 else 9486 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9487 fi 9488 aix_use_runtimelinking=no 9489 9490 # Test if we are trying to use run time linking or normal 9491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9492 # have runtime linking enabled, and use it for executables. 9493 # For shared libraries, we enable/disable runtime linking 9494 # depending on the kind of the shared library created - 9495 # when "with_aix_soname,aix_use_runtimelinking" is: 9496 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9497 # "aix,yes" lib.so shared, rtl:yes, for executables 9498 # lib.a static archive 9499 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9500 # lib.a(lib.so.V) shared, rtl:no, for executables 9501 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9502 # lib.a(lib.so.V) shared, rtl:no 9503 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9504 # lib.a static archive 9505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9506 for ld_flag in $LDFLAGS; do 9507 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9508 aix_use_runtimelinking=yes 9509 break 9510 fi 9511 done 9512 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9513 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9514 # so we don't have lib.a shared libs to link our executables. 9515 # We have to force runtime linking in this case. 9516 aix_use_runtimelinking=yes 9517 LDFLAGS="$LDFLAGS -Wl,-brtl" 9518 fi 9519 ;; 9520 esac 9521 9522 exp_sym_flag='-bexport' 9523 no_entry_flag='-bnoentry' 9524 fi 9525 9526 # When large executables or shared objects are built, AIX ld can 9527 # have problems creating the table of contents. If linking a library 9528 # or program results in "error TOC overflow" add -mminimal-toc to 9529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9531 9532 archive_cmds='' 9533 hardcode_direct=yes 9534 hardcode_direct_absolute=yes 9535 hardcode_libdir_separator=':' 9536 link_all_deplibs=yes 9537 file_list_spec='$wl-f,' 9538 case $with_aix_soname,$aix_use_runtimelinking in 9539 aix,*) ;; # traditional, no import file 9540 svr4,* | *,yes) # use import file 9541 # The Import File defines what to hardcode. 9542 hardcode_direct=no 9543 hardcode_direct_absolute=no 9544 ;; 9545 esac 9546 9547 if test yes = "$GCC"; then 9548 case $host_os in aix4.[012]|aix4.[012].*) 9549 # We only want to do this on AIX 4.2 and lower, the check 9550 # below for broken collect2 doesn't work under 4.3+ 9551 collect2name=`$CC -print-prog-name=collect2` 9552 if test -f "$collect2name" && 9553 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9554 then 9555 # We have reworked collect2 9556 : 9557 else 9558 # We have old collect2 9559 hardcode_direct=unsupported 9560 # It fails to find uninstalled libraries when the uninstalled 9561 # path is not listed in the libpath. Setting hardcode_minus_L 9562 # to unsupported forces relinking 9563 hardcode_minus_L=yes 9564 hardcode_libdir_flag_spec='-L$libdir' 9565 hardcode_libdir_separator= 9566 fi 9567 ;; 9568 esac 9569 shared_flag='-shared' 9570 if test yes = "$aix_use_runtimelinking"; then 9571 shared_flag="$shared_flag "'$wl-G' 9572 fi 9573 # Need to ensure runtime linking is disabled for the traditional 9574 # shared library, or the linker may eventually find shared libraries 9575 # /with/ Import File - we do not want to mix them. 9576 shared_flag_aix='-shared' 9577 shared_flag_svr4='-shared $wl-G' 9578 else 9579 # not using gcc 9580 if test ia64 = "$host_cpu"; then 9581 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9582 # chokes on -Wl,-G. The following line is correct: 9583 shared_flag='-G' 9584 else 9585 if test yes = "$aix_use_runtimelinking"; then 9586 shared_flag='$wl-G' 9587 else 9588 shared_flag='$wl-bM:SRE' 9589 fi 9590 shared_flag_aix='$wl-bM:SRE' 9591 shared_flag_svr4='$wl-G' 9592 fi 9593 fi 9594 9595 export_dynamic_flag_spec='$wl-bexpall' 9596 # It seems that -bexpall does not export symbols beginning with 9597 # underscore (_), so it is better to generate a list of symbols to export. 9598 always_export_symbols=yes 9599 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9600 # Warning - without using the other runtime loading flags (-brtl), 9601 # -berok will link without error, but may produce a broken library. 9602 allow_undefined_flag='-berok' 9603 # Determine the default libpath from the value encoded in an 9604 # empty executable. 9605 if test set = "${lt_cv_aix_libpath+set}"; then 9606 aix_libpath=$lt_cv_aix_libpath 9607 else 9608 if ${lt_cv_aix_libpath_+:} false; then : 9609 $as_echo_n "(cached) " >&6 9610 else 9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9612 /* end confdefs.h. */ 9613 9614 int 9615 main () 9616 { 9617 9618 ; 9619 return 0; 9620 } 9621 _ACEOF 9622 if ac_fn_c_try_link "$LINENO"; then : 9623 9624 lt_aix_libpath_sed=' 9625 /Import File Strings/,/^$/ { 9626 /^0/ { 9627 s/^0 *\([^ ]*\) *$/\1/ 9628 p 9629 } 9630 }' 9631 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9632 # Check for a 64-bit object if we didn't find anything. 9633 if test -z "$lt_cv_aix_libpath_"; then 9634 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9635 fi 9636 fi 9637 rm -f core conftest.err conftest.$ac_objext \ 9638 conftest$ac_exeext conftest.$ac_ext 9639 if test -z "$lt_cv_aix_libpath_"; then 9640 lt_cv_aix_libpath_=/usr/lib:/lib 9641 fi 9642 9643 fi 9644 9645 aix_libpath=$lt_cv_aix_libpath_ 9646 fi 9647 9648 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9649 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9650 else 9651 if test ia64 = "$host_cpu"; then 9652 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9653 allow_undefined_flag="-z nodefs" 9654 archive_expsym_cmds="\$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" 9655 else 9656 # Determine the default libpath from the value encoded in an 9657 # empty executable. 9658 if test set = "${lt_cv_aix_libpath+set}"; then 9659 aix_libpath=$lt_cv_aix_libpath 9660 else 9661 if ${lt_cv_aix_libpath_+:} false; then : 9662 $as_echo_n "(cached) " >&6 9663 else 9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9665 /* end confdefs.h. */ 9666 9667 int 9668 main () 9669 { 9670 9671 ; 9672 return 0; 9673 } 9674 _ACEOF 9675 if ac_fn_c_try_link "$LINENO"; then : 9676 9677 lt_aix_libpath_sed=' 9678 /Import File Strings/,/^$/ { 9679 /^0/ { 9680 s/^0 *\([^ ]*\) *$/\1/ 9681 p 9682 } 9683 }' 9684 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9685 # Check for a 64-bit object if we didn't find anything. 9686 if test -z "$lt_cv_aix_libpath_"; then 9687 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9688 fi 9689 fi 9690 rm -f core conftest.err conftest.$ac_objext \ 9691 conftest$ac_exeext conftest.$ac_ext 9692 if test -z "$lt_cv_aix_libpath_"; then 9693 lt_cv_aix_libpath_=/usr/lib:/lib 9694 fi 9695 9696 fi 9697 9698 aix_libpath=$lt_cv_aix_libpath_ 9699 fi 9700 9701 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9702 # Warning - without using the other run time loading flags, 9703 # -berok will link without error, but may produce a broken library. 9704 no_undefined_flag=' $wl-bernotok' 9705 allow_undefined_flag=' $wl-berok' 9706 if test yes = "$with_gnu_ld"; then 9707 # We only use this code for GNU lds that support --whole-archive. 9708 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9709 else 9710 # Exported symbols can be pulled into shared objects from archives 9711 whole_archive_flag_spec='$convenience' 9712 fi 9713 archive_cmds_need_lc=yes 9714 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9715 # -brtl affects multiple linker settings, -berok does not and is overridden later 9716 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9717 if test svr4 != "$with_aix_soname"; then 9718 # This is similar to how AIX traditionally builds its shared libraries. 9719 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9720 fi 9721 if test aix != "$with_aix_soname"; then 9722 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9723 else 9724 # used by -dlpreopen to get the symbols 9725 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9726 fi 9727 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9728 fi 9729 fi 9730 ;; 9731 9732 amigaos*) 9733 case $host_cpu in 9734 powerpc) 9735 # see comment about AmigaOS4 .so support 9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9737 archive_expsym_cmds='' 9738 ;; 9739 m68k) 9740 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9741 hardcode_libdir_flag_spec='-L$libdir' 9742 hardcode_minus_L=yes 9743 ;; 9744 esac 9745 ;; 9746 9747 bsdi[45]*) 9748 export_dynamic_flag_spec=-rdynamic 9749 ;; 9750 9751 cygwin* | mingw* | pw32* | cegcc*) 9752 # When not using gcc, we currently assume that we are using 9753 # Microsoft Visual C++. 9754 # hardcode_libdir_flag_spec is actually meaningless, as there is 9755 # no search path for DLLs. 9756 case $cc_basename in 9757 cl*) 9758 # Native MSVC 9759 hardcode_libdir_flag_spec=' ' 9760 allow_undefined_flag=unsupported 9761 always_export_symbols=yes 9762 file_list_spec='@' 9763 # Tell ltmain to make .lib files, not .a files. 9764 libext=lib 9765 # Tell ltmain to make .dll files, not .so files. 9766 shrext_cmds=.dll 9767 # FIXME: Setting linknames here is a bad hack. 9768 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9769 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9770 cp "$export_symbols" "$output_objdir/$soname.def"; 9771 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9772 else 9773 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9774 fi~ 9775 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9776 linknames=' 9777 # The linker will not automatically build a static lib if we build a DLL. 9778 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9779 enable_shared_with_static_runtimes=yes 9780 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9782 # Don't use ranlib 9783 old_postinstall_cmds='chmod 644 $oldlib' 9784 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9785 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9786 case $lt_outputfile in 9787 *.exe|*.EXE) ;; 9788 *) 9789 lt_outputfile=$lt_outputfile.exe 9790 lt_tool_outputfile=$lt_tool_outputfile.exe 9791 ;; 9792 esac~ 9793 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9794 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9795 $RM "$lt_outputfile.manifest"; 9796 fi' 9797 ;; 9798 *) 9799 # Assume MSVC wrapper 9800 hardcode_libdir_flag_spec=' ' 9801 allow_undefined_flag=unsupported 9802 # Tell ltmain to make .lib files, not .a files. 9803 libext=lib 9804 # Tell ltmain to make .dll files, not .so files. 9805 shrext_cmds=.dll 9806 # FIXME: Setting linknames here is a bad hack. 9807 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9808 # The linker will automatically build a .lib file if we build a DLL. 9809 old_archive_from_new_cmds='true' 9810 # FIXME: Should let the user specify the lib program. 9811 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9812 enable_shared_with_static_runtimes=yes 9813 ;; 9814 esac 9815 ;; 9816 9817 darwin* | rhapsody*) 9818 9819 9820 archive_cmds_need_lc=no 9821 hardcode_direct=no 9822 hardcode_automatic=yes 9823 hardcode_shlibpath_var=unsupported 9824 if test yes = "$lt_cv_ld_force_load"; then 9825 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9826 9827 else 9828 whole_archive_flag_spec='' 9829 fi 9830 link_all_deplibs=yes 9831 allow_undefined_flag=$_lt_dar_allow_undefined 9832 case $cc_basename in 9833 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9834 *) _lt_dar_can_shared=$GCC ;; 9835 esac 9836 if test yes = "$_lt_dar_can_shared"; then 9837 output_verbose_link_cmd=func_echo_all 9838 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9839 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9840 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 9841 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 9842 9843 else 9844 ld_shlibs=no 9845 fi 9846 9847 ;; 9848 9849 dgux*) 9850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9851 hardcode_libdir_flag_spec='-L$libdir' 9852 hardcode_shlibpath_var=no 9853 ;; 9854 9855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9856 # support. Future versions do this automatically, but an explicit c++rt0.o 9857 # does not break anything, and helps significantly (at the cost of a little 9858 # extra space). 9859 freebsd2.2*) 9860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9861 hardcode_libdir_flag_spec='-R$libdir' 9862 hardcode_direct=yes 9863 hardcode_shlibpath_var=no 9864 ;; 9865 9866 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9867 freebsd2.*) 9868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9869 hardcode_direct=yes 9870 hardcode_minus_L=yes 9871 hardcode_shlibpath_var=no 9872 ;; 9873 9874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9875 freebsd* | dragonfly*) 9876 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9877 hardcode_libdir_flag_spec='-R$libdir' 9878 hardcode_direct=yes 9879 hardcode_shlibpath_var=no 9880 ;; 9881 9882 hpux9*) 9883 if test yes = "$GCC"; then 9884 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9885 else 9886 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9887 fi 9888 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9889 hardcode_libdir_separator=: 9890 hardcode_direct=yes 9891 9892 # hardcode_minus_L: Not really in the search PATH, 9893 # but as the default location of the library. 9894 hardcode_minus_L=yes 9895 export_dynamic_flag_spec='$wl-E' 9896 ;; 9897 9898 hpux10*) 9899 if test yes,no = "$GCC,$with_gnu_ld"; then 9900 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9901 else 9902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9903 fi 9904 if test no = "$with_gnu_ld"; then 9905 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9906 hardcode_libdir_separator=: 9907 hardcode_direct=yes 9908 hardcode_direct_absolute=yes 9909 export_dynamic_flag_spec='$wl-E' 9910 # hardcode_minus_L: Not really in the search PATH, 9911 # but as the default location of the library. 9912 hardcode_minus_L=yes 9913 fi 9914 ;; 9915 9916 hpux11*) 9917 if test yes,no = "$GCC,$with_gnu_ld"; then 9918 case $host_cpu in 9919 hppa*64*) 9920 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9921 ;; 9922 ia64*) 9923 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9924 ;; 9925 *) 9926 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9927 ;; 9928 esac 9929 else 9930 case $host_cpu in 9931 hppa*64*) 9932 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9933 ;; 9934 ia64*) 9935 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9936 ;; 9937 *) 9938 9939 # Older versions of the 11.00 compiler do not understand -b yet 9940 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9942 $as_echo_n "checking if $CC understands -b... " >&6; } 9943 if ${lt_cv_prog_compiler__b+:} false; then : 9944 $as_echo_n "(cached) " >&6 9945 else 9946 lt_cv_prog_compiler__b=no 9947 save_LDFLAGS=$LDFLAGS 9948 LDFLAGS="$LDFLAGS -b" 9949 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9951 # The linker can only warn and ignore the option if not recognized 9952 # So say no if there are warnings 9953 if test -s conftest.err; then 9954 # Append any errors to the config.log. 9955 cat conftest.err 1>&5 9956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9958 if diff conftest.exp conftest.er2 >/dev/null; then 9959 lt_cv_prog_compiler__b=yes 9960 fi 9961 else 9962 lt_cv_prog_compiler__b=yes 9963 fi 9964 fi 9965 $RM -r conftest* 9966 LDFLAGS=$save_LDFLAGS 9967 9968 fi 9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9970 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9971 9972 if test yes = "$lt_cv_prog_compiler__b"; then 9973 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9974 else 9975 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9976 fi 9977 9978 ;; 9979 esac 9980 fi 9981 if test no = "$with_gnu_ld"; then 9982 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9983 hardcode_libdir_separator=: 9984 9985 case $host_cpu in 9986 hppa*64*|ia64*) 9987 hardcode_direct=no 9988 hardcode_shlibpath_var=no 9989 ;; 9990 *) 9991 hardcode_direct=yes 9992 hardcode_direct_absolute=yes 9993 export_dynamic_flag_spec='$wl-E' 9994 9995 # hardcode_minus_L: Not really in the search PATH, 9996 # but as the default location of the library. 9997 hardcode_minus_L=yes 9998 ;; 9999 esac 10000 fi 10001 ;; 10002 10003 irix5* | irix6* | nonstopux*) 10004 if test yes = "$GCC"; then 10005 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10006 # Try to use the -exported_symbol ld option, if it does not 10007 # work, assume that -exports_file does not work either and 10008 # implicitly export all symbols. 10009 # This should be the same for all languages, so no per-tag cache variable. 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10011 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10012 if ${lt_cv_irix_exported_symbol+:} false; then : 10013 $as_echo_n "(cached) " >&6 10014 else 10015 save_LDFLAGS=$LDFLAGS 10016 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10018 /* end confdefs.h. */ 10019 int foo (void) { return 0; } 10020 _ACEOF 10021 if ac_fn_c_try_link "$LINENO"; then : 10022 lt_cv_irix_exported_symbol=yes 10023 else 10024 lt_cv_irix_exported_symbol=no 10025 fi 10026 rm -f core conftest.err conftest.$ac_objext \ 10027 conftest$ac_exeext conftest.$ac_ext 10028 LDFLAGS=$save_LDFLAGS 10029 fi 10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10031 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 10032 if test yes = "$lt_cv_irix_exported_symbol"; then 10033 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10034 fi 10035 link_all_deplibs=no 10036 else 10037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10038 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10039 fi 10040 archive_cmds_need_lc='no' 10041 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10042 hardcode_libdir_separator=: 10043 inherit_rpath=yes 10044 link_all_deplibs=yes 10045 ;; 10046 10047 linux*) 10048 case $cc_basename in 10049 tcc*) 10050 # Fabrice Bellard et al's Tiny C Compiler 10051 ld_shlibs=yes 10052 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10053 ;; 10054 esac 10055 ;; 10056 10057 netbsd* | netbsdelf*-gnu) 10058 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10060 else 10061 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10062 fi 10063 hardcode_libdir_flag_spec='-R$libdir' 10064 hardcode_direct=yes 10065 hardcode_shlibpath_var=no 10066 ;; 10067 10068 newsos6) 10069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10070 hardcode_direct=yes 10071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10072 hardcode_libdir_separator=: 10073 hardcode_shlibpath_var=no 10074 ;; 10075 10076 *nto* | *qnx*) 10077 ;; 10078 10079 openbsd* | bitrig*) 10080 if test -f /usr/libexec/ld.so; then 10081 hardcode_direct=yes 10082 hardcode_shlibpath_var=no 10083 hardcode_direct_absolute=yes 10084 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10085 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10086 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10087 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10088 export_dynamic_flag_spec='$wl-E' 10089 else 10090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10091 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10092 fi 10093 else 10094 ld_shlibs=no 10095 fi 10096 ;; 10097 10098 os2*) 10099 hardcode_libdir_flag_spec='-L$libdir' 10100 hardcode_minus_L=yes 10101 allow_undefined_flag=unsupported 10102 shrext_cmds=.dll 10103 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10104 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10105 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10106 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10107 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10108 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10109 emximp -o $lib $output_objdir/$libname.def' 10110 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10111 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10112 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10113 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10114 prefix_cmds="$SED"~ 10115 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10116 prefix_cmds="$prefix_cmds -e 1d"; 10117 fi~ 10118 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10119 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10120 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10121 emximp -o $lib $output_objdir/$libname.def' 10122 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10123 enable_shared_with_static_runtimes=yes 10124 ;; 10125 10126 osf3*) 10127 if test yes = "$GCC"; then 10128 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10129 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10130 else 10131 allow_undefined_flag=' -expect_unresolved \*' 10132 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10133 fi 10134 archive_cmds_need_lc='no' 10135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10136 hardcode_libdir_separator=: 10137 ;; 10138 10139 osf4* | osf5*) # as osf3* with the addition of -msym flag 10140 if test yes = "$GCC"; then 10141 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10142 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10144 else 10145 allow_undefined_flag=' -expect_unresolved \*' 10146 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10147 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10148 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10149 10150 # Both c and cxx compiler support -rpath directly 10151 hardcode_libdir_flag_spec='-rpath $libdir' 10152 fi 10153 archive_cmds_need_lc='no' 10154 hardcode_libdir_separator=: 10155 ;; 10156 10157 solaris*) 10158 no_undefined_flag=' -z defs' 10159 if test yes = "$GCC"; then 10160 wlarc='$wl' 10161 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10162 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10163 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10164 else 10165 case `$CC -V 2>&1` in 10166 *"Compilers 5.0"*) 10167 wlarc='' 10168 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10169 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10170 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10171 ;; 10172 *) 10173 wlarc='$wl' 10174 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10176 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10177 ;; 10178 esac 10179 fi 10180 hardcode_libdir_flag_spec='-R$libdir' 10181 hardcode_shlibpath_var=no 10182 case $host_os in 10183 solaris2.[0-5] | solaris2.[0-5].*) ;; 10184 *) 10185 # The compiler driver will combine and reorder linker options, 10186 # but understands '-z linker_flag'. GCC discards it without '$wl', 10187 # but is careful enough not to reorder. 10188 # Supported since Solaris 2.6 (maybe 2.5.1?) 10189 if test yes = "$GCC"; then 10190 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10191 else 10192 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10193 fi 10194 ;; 10195 esac 10196 link_all_deplibs=yes 10197 ;; 10198 10199 sunos4*) 10200 if test sequent = "$host_vendor"; then 10201 # Use $CC to link under sequent, because it throws in some extra .o 10202 # files that make .init and .fini sections work. 10203 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10204 else 10205 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10206 fi 10207 hardcode_libdir_flag_spec='-L$libdir' 10208 hardcode_direct=yes 10209 hardcode_minus_L=yes 10210 hardcode_shlibpath_var=no 10211 ;; 10212 10213 sysv4) 10214 case $host_vendor in 10215 sni) 10216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10217 hardcode_direct=yes # is this really true??? 10218 ;; 10219 siemens) 10220 ## LD is ld it makes a PLAMLIB 10221 ## CC just makes a GrossModule. 10222 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10223 reload_cmds='$CC -r -o $output$reload_objs' 10224 hardcode_direct=no 10225 ;; 10226 motorola) 10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10228 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10229 ;; 10230 esac 10231 runpath_var='LD_RUN_PATH' 10232 hardcode_shlibpath_var=no 10233 ;; 10234 10235 sysv4.3*) 10236 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10237 hardcode_shlibpath_var=no 10238 export_dynamic_flag_spec='-Bexport' 10239 ;; 10240 10241 sysv4*MP*) 10242 if test -d /usr/nec; then 10243 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10244 hardcode_shlibpath_var=no 10245 runpath_var=LD_RUN_PATH 10246 hardcode_runpath_var=yes 10247 ld_shlibs=yes 10248 fi 10249 ;; 10250 10251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10252 no_undefined_flag='$wl-z,text' 10253 archive_cmds_need_lc=no 10254 hardcode_shlibpath_var=no 10255 runpath_var='LD_RUN_PATH' 10256 10257 if test yes = "$GCC"; then 10258 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10259 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10260 else 10261 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10262 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10263 fi 10264 ;; 10265 10266 sysv5* | sco3.2v5* | sco5v6*) 10267 # Note: We CANNOT use -z defs as we might desire, because we do not 10268 # link with -lc, and that would cause any symbols used from libc to 10269 # always be unresolved, which means just about no library would 10270 # ever link correctly. If we're not using GNU ld we use -z text 10271 # though, which does catch some bad symbols but isn't as heavy-handed 10272 # as -z defs. 10273 no_undefined_flag='$wl-z,text' 10274 allow_undefined_flag='$wl-z,nodefs' 10275 archive_cmds_need_lc=no 10276 hardcode_shlibpath_var=no 10277 hardcode_libdir_flag_spec='$wl-R,$libdir' 10278 hardcode_libdir_separator=':' 10279 link_all_deplibs=yes 10280 export_dynamic_flag_spec='$wl-Bexport' 10281 runpath_var='LD_RUN_PATH' 10282 10283 if test yes = "$GCC"; then 10284 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10285 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10286 else 10287 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10288 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10289 fi 10290 ;; 10291 10292 uts4*) 10293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10294 hardcode_libdir_flag_spec='-L$libdir' 10295 hardcode_shlibpath_var=no 10296 ;; 10297 10298 *) 10299 ld_shlibs=no 10300 ;; 10301 esac 10302 10303 if test sni = "$host_vendor"; then 10304 case $host in 10305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10306 export_dynamic_flag_spec='$wl-Blargedynsym' 10307 ;; 10308 esac 10309 fi 10310 fi 10311 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10313 $as_echo "$ld_shlibs" >&6; } 10314 test no = "$ld_shlibs" && can_build_shared=no 10315 10316 with_gnu_ld=$with_gnu_ld 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 # 10333 # Do we need to explicitly link libc? 10334 # 10335 case "x$archive_cmds_need_lc" in 10336 x|xyes) 10337 # Assume -lc should be added 10338 archive_cmds_need_lc=yes 10339 10340 if test yes,yes = "$GCC,$enable_shared"; then 10341 case $archive_cmds in 10342 *'~'*) 10343 # FIXME: we may have to deal with multi-command sequences. 10344 ;; 10345 '$CC '*) 10346 # Test whether the compiler implicitly links with -lc since on some 10347 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10348 # to ld, don't add -lc before -lgcc. 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10350 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10351 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10352 $as_echo_n "(cached) " >&6 10353 else 10354 $RM conftest* 10355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10356 10357 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10358 (eval $ac_compile) 2>&5 10359 ac_status=$? 10360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10361 test $ac_status = 0; } 2>conftest.err; then 10362 soname=conftest 10363 lib=conftest 10364 libobjs=conftest.$ac_objext 10365 deplibs= 10366 wl=$lt_prog_compiler_wl 10367 pic_flag=$lt_prog_compiler_pic 10368 compiler_flags=-v 10369 linker_flags=-v 10370 verstring= 10371 output_objdir=. 10372 libname=conftest 10373 lt_save_allow_undefined_flag=$allow_undefined_flag 10374 allow_undefined_flag= 10375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10376 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10377 ac_status=$? 10378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10379 test $ac_status = 0; } 10380 then 10381 lt_cv_archive_cmds_need_lc=no 10382 else 10383 lt_cv_archive_cmds_need_lc=yes 10384 fi 10385 allow_undefined_flag=$lt_save_allow_undefined_flag 10386 else 10387 cat conftest.err 1>&5 10388 fi 10389 $RM conftest* 10390 10391 fi 10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10393 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10394 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10395 ;; 10396 esac 10397 fi 10398 ;; 10399 esac 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10553 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10554 10555 if test yes = "$GCC"; then 10556 case $host_os in 10557 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10558 *) lt_awk_arg='/^libraries:/' ;; 10559 esac 10560 case $host_os in 10561 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10562 *) lt_sed_strip_eq='s|=/|/|g' ;; 10563 esac 10564 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10565 case $lt_search_path_spec in 10566 *\;*) 10567 # if the path contains ";" then we assume it to be the separator 10568 # otherwise default to the standard path separator (i.e. ":") - it is 10569 # assumed that no part of a normal pathname contains ";" but that should 10570 # okay in the real world where ";" in dirpaths is itself problematic. 10571 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10572 ;; 10573 *) 10574 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10575 ;; 10576 esac 10577 # Ok, now we have the path, separated by spaces, we can step through it 10578 # and add multilib dir if necessary... 10579 lt_tmp_lt_search_path_spec= 10580 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10581 # ...but if some path component already ends with the multilib dir we assume 10582 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10583 case "$lt_multi_os_dir; $lt_search_path_spec " in 10584 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10585 lt_multi_os_dir= 10586 ;; 10587 esac 10588 for lt_sys_path in $lt_search_path_spec; do 10589 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10590 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10591 elif test -n "$lt_multi_os_dir"; then 10592 test -d "$lt_sys_path" && \ 10593 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10594 fi 10595 done 10596 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10597 BEGIN {RS = " "; FS = "/|\n";} { 10598 lt_foo = ""; 10599 lt_count = 0; 10600 for (lt_i = NF; lt_i > 0; lt_i--) { 10601 if ($lt_i != "" && $lt_i != ".") { 10602 if ($lt_i == "..") { 10603 lt_count++; 10604 } else { 10605 if (lt_count == 0) { 10606 lt_foo = "/" $lt_i lt_foo; 10607 } else { 10608 lt_count--; 10609 } 10610 } 10611 } 10612 } 10613 if (lt_foo != "") { lt_freq[lt_foo]++; } 10614 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10615 }'` 10616 # AWK program above erroneously prepends '/' to C:/dos/paths 10617 # for these hosts. 10618 case $host_os in 10619 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10620 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10621 esac 10622 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10623 else 10624 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10625 fi 10626 library_names_spec= 10627 libname_spec='lib$name' 10628 soname_spec= 10629 shrext_cmds=.so 10630 postinstall_cmds= 10631 postuninstall_cmds= 10632 finish_cmds= 10633 finish_eval= 10634 shlibpath_var= 10635 shlibpath_overrides_runpath=unknown 10636 version_type=none 10637 dynamic_linker="$host_os ld.so" 10638 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10639 need_lib_prefix=unknown 10640 hardcode_into_libs=no 10641 10642 # when you set need_version to no, make sure it does not cause -set_version 10643 # flags to be left without arguments 10644 need_version=unknown 10645 10646 10647 10648 case $host_os in 10649 aix3*) 10650 version_type=linux # correct to gnu/linux during the next big refactor 10651 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10652 shlibpath_var=LIBPATH 10653 10654 # AIX 3 has no versioning support, so we append a major version to the name. 10655 soname_spec='$libname$release$shared_ext$major' 10656 ;; 10657 10658 aix[4-9]*) 10659 version_type=linux # correct to gnu/linux during the next big refactor 10660 need_lib_prefix=no 10661 need_version=no 10662 hardcode_into_libs=yes 10663 if test ia64 = "$host_cpu"; then 10664 # AIX 5 supports IA64 10665 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10666 shlibpath_var=LD_LIBRARY_PATH 10667 else 10668 # With GCC up to 2.95.x, collect2 would create an import file 10669 # for dependence libraries. The import file would start with 10670 # the line '#! .'. This would cause the generated library to 10671 # depend on '.', always an invalid library. This was fixed in 10672 # development snapshots of GCC prior to 3.0. 10673 case $host_os in 10674 aix4 | aix4.[01] | aix4.[01].*) 10675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10676 echo ' yes ' 10677 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10678 : 10679 else 10680 can_build_shared=no 10681 fi 10682 ;; 10683 esac 10684 # Using Import Files as archive members, it is possible to support 10685 # filename-based versioning of shared library archives on AIX. While 10686 # this would work for both with and without runtime linking, it will 10687 # prevent static linking of such archives. So we do filename-based 10688 # shared library versioning with .so extension only, which is used 10689 # when both runtime linking and shared linking is enabled. 10690 # Unfortunately, runtime linking may impact performance, so we do 10691 # not want this to be the default eventually. Also, we use the 10692 # versioned .so libs for executables only if there is the -brtl 10693 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10694 # To allow for filename-based versioning support, we need to create 10695 # libNAME.so.V as an archive file, containing: 10696 # *) an Import File, referring to the versioned filename of the 10697 # archive as well as the shared archive member, telling the 10698 # bitwidth (32 or 64) of that shared object, and providing the 10699 # list of exported symbols of that shared object, eventually 10700 # decorated with the 'weak' keyword 10701 # *) the shared object with the F_LOADONLY flag set, to really avoid 10702 # it being seen by the linker. 10703 # At run time we better use the real file rather than another symlink, 10704 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10705 10706 case $with_aix_soname,$aix_use_runtimelinking in 10707 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10708 # soname into executable. Probably we can add versioning support to 10709 # collect2, so additional links can be useful in future. 10710 aix,yes) # traditional libtool 10711 dynamic_linker='AIX unversionable lib.so' 10712 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10713 # instead of lib<name>.a to let people know that these are not 10714 # typical AIX shared libraries. 10715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10716 ;; 10717 aix,no) # traditional AIX only 10718 dynamic_linker='AIX lib.a(lib.so.V)' 10719 # We preserve .a as extension for shared libraries through AIX4.2 10720 # and later when we are not doing run time linking. 10721 library_names_spec='$libname$release.a $libname.a' 10722 soname_spec='$libname$release$shared_ext$major' 10723 ;; 10724 svr4,*) # full svr4 only 10725 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10726 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10727 # We do not specify a path in Import Files, so LIBPATH fires. 10728 shlibpath_overrides_runpath=yes 10729 ;; 10730 *,yes) # both, prefer svr4 10731 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10732 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10733 # unpreferred sharedlib libNAME.a needs extra handling 10734 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10735 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10736 # We do not specify a path in Import Files, so LIBPATH fires. 10737 shlibpath_overrides_runpath=yes 10738 ;; 10739 *,no) # both, prefer aix 10740 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10741 library_names_spec='$libname$release.a $libname.a' 10742 soname_spec='$libname$release$shared_ext$major' 10743 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10744 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10745 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10746 ;; 10747 esac 10748 shlibpath_var=LIBPATH 10749 fi 10750 ;; 10751 10752 amigaos*) 10753 case $host_cpu in 10754 powerpc) 10755 # Since July 2007 AmigaOS4 officially supports .so libraries. 10756 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10758 ;; 10759 m68k) 10760 library_names_spec='$libname.ixlibrary $libname.a' 10761 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10762 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10763 ;; 10764 esac 10765 ;; 10766 10767 beos*) 10768 library_names_spec='$libname$shared_ext' 10769 dynamic_linker="$host_os ld.so" 10770 shlibpath_var=LIBRARY_PATH 10771 ;; 10772 10773 bsdi[45]*) 10774 version_type=linux # correct to gnu/linux during the next big refactor 10775 need_version=no 10776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10777 soname_spec='$libname$release$shared_ext$major' 10778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10779 shlibpath_var=LD_LIBRARY_PATH 10780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10782 # the default ld.so.conf also contains /usr/contrib/lib and 10783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10784 # libtool to hard-code these into programs 10785 ;; 10786 10787 cygwin* | mingw* | pw32* | cegcc*) 10788 version_type=windows 10789 shrext_cmds=.dll 10790 need_version=no 10791 need_lib_prefix=no 10792 10793 case $GCC,$cc_basename in 10794 yes,*) 10795 # gcc 10796 library_names_spec='$libname.dll.a' 10797 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10798 postinstall_cmds='base_file=`basename \$file`~ 10799 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10800 dldir=$destdir/`dirname \$dlpath`~ 10801 test -d \$dldir || mkdir -p \$dldir~ 10802 $install_prog $dir/$dlname \$dldir/$dlname~ 10803 chmod a+x \$dldir/$dlname~ 10804 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10805 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10806 fi' 10807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10808 dlpath=$dir/\$dldll~ 10809 $RM \$dlpath' 10810 shlibpath_overrides_runpath=yes 10811 10812 case $host_os in 10813 cygwin*) 10814 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10815 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10816 10817 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10818 ;; 10819 mingw* | cegcc*) 10820 # MinGW DLLs use traditional 'lib' prefix 10821 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10822 ;; 10823 pw32*) 10824 # pw32 DLLs use 'pw' prefix rather than 'lib' 10825 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10826 ;; 10827 esac 10828 dynamic_linker='Win32 ld.exe' 10829 ;; 10830 10831 *,cl*) 10832 # Native MSVC 10833 libname_spec='$name' 10834 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10835 library_names_spec='$libname.dll.lib' 10836 10837 case $build_os in 10838 mingw*) 10839 sys_lib_search_path_spec= 10840 lt_save_ifs=$IFS 10841 IFS=';' 10842 for lt_path in $LIB 10843 do 10844 IFS=$lt_save_ifs 10845 # Let DOS variable expansion print the short 8.3 style file name. 10846 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10847 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10848 done 10849 IFS=$lt_save_ifs 10850 # Convert to MSYS style. 10851 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10852 ;; 10853 cygwin*) 10854 # Convert to unix form, then to dos form, then back to unix form 10855 # but this time dos style (no spaces!) so that the unix form looks 10856 # like /cygdrive/c/PROGRA~1:/cygdr... 10857 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10858 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10859 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10860 ;; 10861 *) 10862 sys_lib_search_path_spec=$LIB 10863 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10864 # It is most probably a Windows format PATH. 10865 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10866 else 10867 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10868 fi 10869 # FIXME: find the short name or the path components, as spaces are 10870 # common. (e.g. "Program Files" -> "PROGRA~1") 10871 ;; 10872 esac 10873 10874 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10875 postinstall_cmds='base_file=`basename \$file`~ 10876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10877 dldir=$destdir/`dirname \$dlpath`~ 10878 test -d \$dldir || mkdir -p \$dldir~ 10879 $install_prog $dir/$dlname \$dldir/$dlname' 10880 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10881 dlpath=$dir/\$dldll~ 10882 $RM \$dlpath' 10883 shlibpath_overrides_runpath=yes 10884 dynamic_linker='Win32 link.exe' 10885 ;; 10886 10887 *) 10888 # Assume MSVC wrapper 10889 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10890 dynamic_linker='Win32 ld.exe' 10891 ;; 10892 esac 10893 # FIXME: first we should search . and the directory the executable is in 10894 shlibpath_var=PATH 10895 ;; 10896 10897 darwin* | rhapsody*) 10898 dynamic_linker="$host_os dyld" 10899 version_type=darwin 10900 need_lib_prefix=no 10901 need_version=no 10902 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10903 soname_spec='$libname$release$major$shared_ext' 10904 shlibpath_overrides_runpath=yes 10905 shlibpath_var=DYLD_LIBRARY_PATH 10906 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10907 10908 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10909 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10910 ;; 10911 10912 dgux*) 10913 version_type=linux # correct to gnu/linux during the next big refactor 10914 need_lib_prefix=no 10915 need_version=no 10916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10917 soname_spec='$libname$release$shared_ext$major' 10918 shlibpath_var=LD_LIBRARY_PATH 10919 ;; 10920 10921 freebsd* | dragonfly*) 10922 # DragonFly does not have aout. When/if they implement a new 10923 # versioning mechanism, adjust this. 10924 if test -x /usr/bin/objformat; then 10925 objformat=`/usr/bin/objformat` 10926 else 10927 case $host_os in 10928 freebsd[23].*) objformat=aout ;; 10929 *) objformat=elf ;; 10930 esac 10931 fi 10932 version_type=freebsd-$objformat 10933 case $version_type in 10934 freebsd-elf*) 10935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10936 soname_spec='$libname$release$shared_ext$major' 10937 need_version=no 10938 need_lib_prefix=no 10939 ;; 10940 freebsd-*) 10941 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10942 need_version=yes 10943 ;; 10944 esac 10945 shlibpath_var=LD_LIBRARY_PATH 10946 case $host_os in 10947 freebsd2.*) 10948 shlibpath_overrides_runpath=yes 10949 ;; 10950 freebsd3.[01]* | freebsdelf3.[01]*) 10951 shlibpath_overrides_runpath=yes 10952 hardcode_into_libs=yes 10953 ;; 10954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10956 shlibpath_overrides_runpath=no 10957 hardcode_into_libs=yes 10958 ;; 10959 *) # from 4.6 on, and DragonFly 10960 shlibpath_overrides_runpath=yes 10961 hardcode_into_libs=yes 10962 ;; 10963 esac 10964 ;; 10965 10966 haiku*) 10967 version_type=linux # correct to gnu/linux during the next big refactor 10968 need_lib_prefix=no 10969 need_version=no 10970 dynamic_linker="$host_os runtime_loader" 10971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10972 soname_spec='$libname$release$shared_ext$major' 10973 shlibpath_var=LIBRARY_PATH 10974 shlibpath_overrides_runpath=no 10975 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10976 hardcode_into_libs=yes 10977 ;; 10978 10979 hpux9* | hpux10* | hpux11*) 10980 # Give a soname corresponding to the major version so that dld.sl refuses to 10981 # link against other versions. 10982 version_type=sunos 10983 need_lib_prefix=no 10984 need_version=no 10985 case $host_cpu in 10986 ia64*) 10987 shrext_cmds='.so' 10988 hardcode_into_libs=yes 10989 dynamic_linker="$host_os dld.so" 10990 shlibpath_var=LD_LIBRARY_PATH 10991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10993 soname_spec='$libname$release$shared_ext$major' 10994 if test 32 = "$HPUX_IA64_MODE"; then 10995 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10996 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10997 else 10998 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10999 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11000 fi 11001 ;; 11002 hppa*64*) 11003 shrext_cmds='.sl' 11004 hardcode_into_libs=yes 11005 dynamic_linker="$host_os dld.sl" 11006 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11007 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11009 soname_spec='$libname$release$shared_ext$major' 11010 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11011 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11012 ;; 11013 *) 11014 shrext_cmds='.sl' 11015 dynamic_linker="$host_os dld.sl" 11016 shlibpath_var=SHLIB_PATH 11017 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11019 soname_spec='$libname$release$shared_ext$major' 11020 ;; 11021 esac 11022 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11023 postinstall_cmds='chmod 555 $lib' 11024 # or fails outright, so override atomically: 11025 install_override_mode=555 11026 ;; 11027 11028 interix[3-9]*) 11029 version_type=linux # correct to gnu/linux during the next big refactor 11030 need_lib_prefix=no 11031 need_version=no 11032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11033 soname_spec='$libname$release$shared_ext$major' 11034 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11035 shlibpath_var=LD_LIBRARY_PATH 11036 shlibpath_overrides_runpath=no 11037 hardcode_into_libs=yes 11038 ;; 11039 11040 irix5* | irix6* | nonstopux*) 11041 case $host_os in 11042 nonstopux*) version_type=nonstopux ;; 11043 *) 11044 if test yes = "$lt_cv_prog_gnu_ld"; then 11045 version_type=linux # correct to gnu/linux during the next big refactor 11046 else 11047 version_type=irix 11048 fi ;; 11049 esac 11050 need_lib_prefix=no 11051 need_version=no 11052 soname_spec='$libname$release$shared_ext$major' 11053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11054 case $host_os in 11055 irix5* | nonstopux*) 11056 libsuff= shlibsuff= 11057 ;; 11058 *) 11059 case $LD in # libtool.m4 will add one of these switches to LD 11060 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11061 libsuff= shlibsuff= libmagic=32-bit;; 11062 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11063 libsuff=32 shlibsuff=N32 libmagic=N32;; 11064 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11065 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11066 *) libsuff= shlibsuff= libmagic=never-match;; 11067 esac 11068 ;; 11069 esac 11070 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11071 shlibpath_overrides_runpath=no 11072 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11073 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11074 hardcode_into_libs=yes 11075 ;; 11076 11077 # No shared lib support for Linux oldld, aout, or coff. 11078 linux*oldld* | linux*aout* | linux*coff*) 11079 dynamic_linker=no 11080 ;; 11081 11082 linux*android*) 11083 version_type=none # Android doesn't support versioned libraries. 11084 need_lib_prefix=no 11085 need_version=no 11086 library_names_spec='$libname$release$shared_ext' 11087 soname_spec='$libname$release$shared_ext' 11088 finish_cmds= 11089 shlibpath_var=LD_LIBRARY_PATH 11090 shlibpath_overrides_runpath=yes 11091 11092 # This implies no fast_install, which is unacceptable. 11093 # Some rework will be needed to allow for fast_install 11094 # before this can be enabled. 11095 hardcode_into_libs=yes 11096 11097 dynamic_linker='Android linker' 11098 # Don't embed -rpath directories since the linker doesn't support them. 11099 hardcode_libdir_flag_spec='-L$libdir' 11100 ;; 11101 11102 # This must be glibc/ELF. 11103 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11104 version_type=linux # correct to gnu/linux during the next big refactor 11105 need_lib_prefix=no 11106 need_version=no 11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11108 soname_spec='$libname$release$shared_ext$major' 11109 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11110 shlibpath_var=LD_LIBRARY_PATH 11111 shlibpath_overrides_runpath=no 11112 11113 # Some binutils ld are patched to set DT_RUNPATH 11114 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11115 $as_echo_n "(cached) " >&6 11116 else 11117 lt_cv_shlibpath_overrides_runpath=no 11118 save_LDFLAGS=$LDFLAGS 11119 save_libdir=$libdir 11120 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11121 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11123 /* end confdefs.h. */ 11124 11125 int 11126 main () 11127 { 11128 11129 ; 11130 return 0; 11131 } 11132 _ACEOF 11133 if ac_fn_c_try_link "$LINENO"; then : 11134 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11135 lt_cv_shlibpath_overrides_runpath=yes 11136 fi 11137 fi 11138 rm -f core conftest.err conftest.$ac_objext \ 11139 conftest$ac_exeext conftest.$ac_ext 11140 LDFLAGS=$save_LDFLAGS 11141 libdir=$save_libdir 11142 11143 fi 11144 11145 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11146 11147 # This implies no fast_install, which is unacceptable. 11148 # Some rework will be needed to allow for fast_install 11149 # before this can be enabled. 11150 hardcode_into_libs=yes 11151 11152 # Ideally, we could use ldconfig to report *all* directores which are 11153 # searched for libraries, however this is still not possible. Aside from not 11154 # being certain /sbin/ldconfig is available, command 11155 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11156 # even though it is searched at run-time. Try to do the best guess by 11157 # appending ld.so.conf contents (and includes) to the search path. 11158 if test -f /etc/ld.so.conf; then 11159 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;s/"//g;/^$/d' | tr '\n' ' '` 11160 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11161 fi 11162 11163 # We used to test for /lib/ld.so.1 and disable shared libraries on 11164 # powerpc, because MkLinux only supported shared libraries with the 11165 # GNU dynamic linker. Since this was broken with cross compilers, 11166 # most powerpc-linux boxes support dynamic linking these days and 11167 # people can always --disable-shared, the test was removed, and we 11168 # assume the GNU/Linux dynamic linker is in use. 11169 dynamic_linker='GNU/Linux ld.so' 11170 ;; 11171 11172 netbsdelf*-gnu) 11173 version_type=linux 11174 need_lib_prefix=no 11175 need_version=no 11176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11177 soname_spec='${libname}${release}${shared_ext}$major' 11178 shlibpath_var=LD_LIBRARY_PATH 11179 shlibpath_overrides_runpath=no 11180 hardcode_into_libs=yes 11181 dynamic_linker='NetBSD ld.elf_so' 11182 ;; 11183 11184 netbsd*) 11185 version_type=sunos 11186 need_lib_prefix=no 11187 need_version=no 11188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11191 dynamic_linker='NetBSD (a.out) ld.so' 11192 else 11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11194 soname_spec='$libname$release$shared_ext$major' 11195 dynamic_linker='NetBSD ld.elf_so' 11196 fi 11197 shlibpath_var=LD_LIBRARY_PATH 11198 shlibpath_overrides_runpath=yes 11199 hardcode_into_libs=yes 11200 ;; 11201 11202 newsos6) 11203 version_type=linux # correct to gnu/linux during the next big refactor 11204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11205 shlibpath_var=LD_LIBRARY_PATH 11206 shlibpath_overrides_runpath=yes 11207 ;; 11208 11209 *nto* | *qnx*) 11210 version_type=qnx 11211 need_lib_prefix=no 11212 need_version=no 11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11214 soname_spec='$libname$release$shared_ext$major' 11215 shlibpath_var=LD_LIBRARY_PATH 11216 shlibpath_overrides_runpath=no 11217 hardcode_into_libs=yes 11218 dynamic_linker='ldqnx.so' 11219 ;; 11220 11221 openbsd* | bitrig*) 11222 version_type=sunos 11223 sys_lib_dlsearch_path_spec=/usr/lib 11224 need_lib_prefix=no 11225 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11226 need_version=no 11227 else 11228 need_version=yes 11229 fi 11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11232 shlibpath_var=LD_LIBRARY_PATH 11233 shlibpath_overrides_runpath=yes 11234 ;; 11235 11236 os2*) 11237 libname_spec='$name' 11238 version_type=windows 11239 shrext_cmds=.dll 11240 need_version=no 11241 need_lib_prefix=no 11242 # OS/2 can only load a DLL with a base name of 8 characters or less. 11243 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11244 v=$($ECHO $release$versuffix | tr -d .-); 11245 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11246 $ECHO $n$v`$shared_ext' 11247 library_names_spec='${libname}_dll.$libext' 11248 dynamic_linker='OS/2 ld.exe' 11249 shlibpath_var=BEGINLIBPATH 11250 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11252 postinstall_cmds='base_file=`basename \$file`~ 11253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11254 dldir=$destdir/`dirname \$dlpath`~ 11255 test -d \$dldir || mkdir -p \$dldir~ 11256 $install_prog $dir/$dlname \$dldir/$dlname~ 11257 chmod a+x \$dldir/$dlname~ 11258 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11259 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11260 fi' 11261 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11262 dlpath=$dir/\$dldll~ 11263 $RM \$dlpath' 11264 ;; 11265 11266 osf3* | osf4* | osf5*) 11267 version_type=osf 11268 need_lib_prefix=no 11269 need_version=no 11270 soname_spec='$libname$release$shared_ext$major' 11271 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11272 shlibpath_var=LD_LIBRARY_PATH 11273 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11275 ;; 11276 11277 rdos*) 11278 dynamic_linker=no 11279 ;; 11280 11281 solaris*) 11282 version_type=linux # correct to gnu/linux during the next big refactor 11283 need_lib_prefix=no 11284 need_version=no 11285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11286 soname_spec='$libname$release$shared_ext$major' 11287 shlibpath_var=LD_LIBRARY_PATH 11288 shlibpath_overrides_runpath=yes 11289 hardcode_into_libs=yes 11290 # ldd complains unless libraries are executable 11291 postinstall_cmds='chmod +x $lib' 11292 ;; 11293 11294 sunos4*) 11295 version_type=sunos 11296 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11297 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11298 shlibpath_var=LD_LIBRARY_PATH 11299 shlibpath_overrides_runpath=yes 11300 if test yes = "$with_gnu_ld"; then 11301 need_lib_prefix=no 11302 fi 11303 need_version=yes 11304 ;; 11305 11306 sysv4 | sysv4.3*) 11307 version_type=linux # correct to gnu/linux during the next big refactor 11308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11309 soname_spec='$libname$release$shared_ext$major' 11310 shlibpath_var=LD_LIBRARY_PATH 11311 case $host_vendor in 11312 sni) 11313 shlibpath_overrides_runpath=no 11314 need_lib_prefix=no 11315 runpath_var=LD_RUN_PATH 11316 ;; 11317 siemens) 11318 need_lib_prefix=no 11319 ;; 11320 motorola) 11321 need_lib_prefix=no 11322 need_version=no 11323 shlibpath_overrides_runpath=no 11324 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11325 ;; 11326 esac 11327 ;; 11328 11329 sysv4*MP*) 11330 if test -d /usr/nec; then 11331 version_type=linux # correct to gnu/linux during the next big refactor 11332 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11333 soname_spec='$libname$shared_ext.$major' 11334 shlibpath_var=LD_LIBRARY_PATH 11335 fi 11336 ;; 11337 11338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11339 version_type=sco 11340 need_lib_prefix=no 11341 need_version=no 11342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11343 soname_spec='$libname$release$shared_ext$major' 11344 shlibpath_var=LD_LIBRARY_PATH 11345 shlibpath_overrides_runpath=yes 11346 hardcode_into_libs=yes 11347 if test yes = "$with_gnu_ld"; then 11348 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11349 else 11350 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11351 case $host_os in 11352 sco3.2v5*) 11353 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11354 ;; 11355 esac 11356 fi 11357 sys_lib_dlsearch_path_spec='/usr/lib' 11358 ;; 11359 11360 tpf*) 11361 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11362 version_type=linux # correct to gnu/linux during the next big refactor 11363 need_lib_prefix=no 11364 need_version=no 11365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11366 shlibpath_var=LD_LIBRARY_PATH 11367 shlibpath_overrides_runpath=no 11368 hardcode_into_libs=yes 11369 ;; 11370 11371 uts4*) 11372 version_type=linux # correct to gnu/linux during the next big refactor 11373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11374 soname_spec='$libname$release$shared_ext$major' 11375 shlibpath_var=LD_LIBRARY_PATH 11376 ;; 11377 11378 *) 11379 dynamic_linker=no 11380 ;; 11381 esac 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11383 $as_echo "$dynamic_linker" >&6; } 11384 test no = "$dynamic_linker" && can_build_shared=no 11385 11386 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11387 if test yes = "$GCC"; then 11388 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11389 fi 11390 11391 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11392 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11393 fi 11394 11395 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11396 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11397 fi 11398 11399 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11400 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11401 11402 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11403 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11404 11405 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11406 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11505 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11506 hardcode_action= 11507 if test -n "$hardcode_libdir_flag_spec" || 11508 test -n "$runpath_var" || 11509 test yes = "$hardcode_automatic"; then 11510 11511 # We can hardcode non-existent directories. 11512 if test no != "$hardcode_direct" && 11513 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11514 # have to relink, otherwise we might link with an installed library 11515 # when we should be linking with a yet-to-be-installed one 11516 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11517 test no != "$hardcode_minus_L"; then 11518 # Linking always hardcodes the temporary library directory. 11519 hardcode_action=relink 11520 else 11521 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11522 hardcode_action=immediate 11523 fi 11524 else 11525 # We cannot hardcode anything, or else we can only hardcode existing 11526 # directories. 11527 hardcode_action=unsupported 11528 fi 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11530 $as_echo "$hardcode_action" >&6; } 11531 11532 if test relink = "$hardcode_action" || 11533 test yes = "$inherit_rpath"; then 11534 # Fast installation is not supported 11535 enable_fast_install=no 11536 elif test yes = "$shlibpath_overrides_runpath" || 11537 test no = "$enable_shared"; then 11538 # Fast installation is not necessary 11539 enable_fast_install=needless 11540 fi 11541 11542 11543 11544 11545 11546 11547 if test yes != "$enable_dlopen"; then 11548 enable_dlopen=unknown 11549 enable_dlopen_self=unknown 11550 enable_dlopen_self_static=unknown 11551 else 11552 lt_cv_dlopen=no 11553 lt_cv_dlopen_libs= 11554 11555 case $host_os in 11556 beos*) 11557 lt_cv_dlopen=load_add_on 11558 lt_cv_dlopen_libs= 11559 lt_cv_dlopen_self=yes 11560 ;; 11561 11562 mingw* | pw32* | cegcc*) 11563 lt_cv_dlopen=LoadLibrary 11564 lt_cv_dlopen_libs= 11565 ;; 11566 11567 cygwin*) 11568 lt_cv_dlopen=dlopen 11569 lt_cv_dlopen_libs= 11570 ;; 11571 11572 darwin*) 11573 # if libdl is installed we need to link against it 11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11575 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11576 if ${ac_cv_lib_dl_dlopen+:} false; then : 11577 $as_echo_n "(cached) " >&6 11578 else 11579 ac_check_lib_save_LIBS=$LIBS 11580 LIBS="-ldl $LIBS" 11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11582 /* end confdefs.h. */ 11583 11584 /* Override any GCC internal prototype to avoid an error. 11585 Use char because int might match the return type of a GCC 11586 builtin and then its argument prototype would still apply. */ 11587 #ifdef __cplusplus 11588 extern "C" 11589 #endif 11590 char dlopen (); 11591 int 11592 main () 11593 { 11594 return dlopen (); 11595 ; 11596 return 0; 11597 } 11598 _ACEOF 11599 if ac_fn_c_try_link "$LINENO"; then : 11600 ac_cv_lib_dl_dlopen=yes 11601 else 11602 ac_cv_lib_dl_dlopen=no 11603 fi 11604 rm -f core conftest.err conftest.$ac_objext \ 11605 conftest$ac_exeext conftest.$ac_ext 11606 LIBS=$ac_check_lib_save_LIBS 11607 fi 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11609 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11610 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11611 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11612 else 11613 11614 lt_cv_dlopen=dyld 11615 lt_cv_dlopen_libs= 11616 lt_cv_dlopen_self=yes 11617 11618 fi 11619 11620 ;; 11621 11622 tpf*) 11623 # Don't try to run any link tests for TPF. We know it's impossible 11624 # because TPF is a cross-compiler, and we know how we open DSOs. 11625 lt_cv_dlopen=dlopen 11626 lt_cv_dlopen_libs= 11627 lt_cv_dlopen_self=no 11628 ;; 11629 11630 *) 11631 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11632 if test "x$ac_cv_func_shl_load" = xyes; then : 11633 lt_cv_dlopen=shl_load 11634 else 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11636 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11637 if ${ac_cv_lib_dld_shl_load+:} false; then : 11638 $as_echo_n "(cached) " >&6 11639 else 11640 ac_check_lib_save_LIBS=$LIBS 11641 LIBS="-ldld $LIBS" 11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11643 /* end confdefs.h. */ 11644 11645 /* Override any GCC internal prototype to avoid an error. 11646 Use char because int might match the return type of a GCC 11647 builtin and then its argument prototype would still apply. */ 11648 #ifdef __cplusplus 11649 extern "C" 11650 #endif 11651 char shl_load (); 11652 int 11653 main () 11654 { 11655 return shl_load (); 11656 ; 11657 return 0; 11658 } 11659 _ACEOF 11660 if ac_fn_c_try_link "$LINENO"; then : 11661 ac_cv_lib_dld_shl_load=yes 11662 else 11663 ac_cv_lib_dld_shl_load=no 11664 fi 11665 rm -f core conftest.err conftest.$ac_objext \ 11666 conftest$ac_exeext conftest.$ac_ext 11667 LIBS=$ac_check_lib_save_LIBS 11668 fi 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11670 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11671 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11672 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11673 else 11674 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11675 if test "x$ac_cv_func_dlopen" = xyes; then : 11676 lt_cv_dlopen=dlopen 11677 else 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11679 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11680 if ${ac_cv_lib_dl_dlopen+:} false; then : 11681 $as_echo_n "(cached) " >&6 11682 else 11683 ac_check_lib_save_LIBS=$LIBS 11684 LIBS="-ldl $LIBS" 11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11686 /* end confdefs.h. */ 11687 11688 /* Override any GCC internal prototype to avoid an error. 11689 Use char because int might match the return type of a GCC 11690 builtin and then its argument prototype would still apply. */ 11691 #ifdef __cplusplus 11692 extern "C" 11693 #endif 11694 char dlopen (); 11695 int 11696 main () 11697 { 11698 return dlopen (); 11699 ; 11700 return 0; 11701 } 11702 _ACEOF 11703 if ac_fn_c_try_link "$LINENO"; then : 11704 ac_cv_lib_dl_dlopen=yes 11705 else 11706 ac_cv_lib_dl_dlopen=no 11707 fi 11708 rm -f core conftest.err conftest.$ac_objext \ 11709 conftest$ac_exeext conftest.$ac_ext 11710 LIBS=$ac_check_lib_save_LIBS 11711 fi 11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11713 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11714 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11715 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11716 else 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11718 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11719 if ${ac_cv_lib_svld_dlopen+:} false; then : 11720 $as_echo_n "(cached) " >&6 11721 else 11722 ac_check_lib_save_LIBS=$LIBS 11723 LIBS="-lsvld $LIBS" 11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11725 /* end confdefs.h. */ 11726 11727 /* Override any GCC internal prototype to avoid an error. 11728 Use char because int might match the return type of a GCC 11729 builtin and then its argument prototype would still apply. */ 11730 #ifdef __cplusplus 11731 extern "C" 11732 #endif 11733 char dlopen (); 11734 int 11735 main () 11736 { 11737 return dlopen (); 11738 ; 11739 return 0; 11740 } 11741 _ACEOF 11742 if ac_fn_c_try_link "$LINENO"; then : 11743 ac_cv_lib_svld_dlopen=yes 11744 else 11745 ac_cv_lib_svld_dlopen=no 11746 fi 11747 rm -f core conftest.err conftest.$ac_objext \ 11748 conftest$ac_exeext conftest.$ac_ext 11749 LIBS=$ac_check_lib_save_LIBS 11750 fi 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11752 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11753 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11754 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11755 else 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11757 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11758 if ${ac_cv_lib_dld_dld_link+:} false; then : 11759 $as_echo_n "(cached) " >&6 11760 else 11761 ac_check_lib_save_LIBS=$LIBS 11762 LIBS="-ldld $LIBS" 11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11764 /* end confdefs.h. */ 11765 11766 /* Override any GCC internal prototype to avoid an error. 11767 Use char because int might match the return type of a GCC 11768 builtin and then its argument prototype would still apply. */ 11769 #ifdef __cplusplus 11770 extern "C" 11771 #endif 11772 char dld_link (); 11773 int 11774 main () 11775 { 11776 return dld_link (); 11777 ; 11778 return 0; 11779 } 11780 _ACEOF 11781 if ac_fn_c_try_link "$LINENO"; then : 11782 ac_cv_lib_dld_dld_link=yes 11783 else 11784 ac_cv_lib_dld_dld_link=no 11785 fi 11786 rm -f core conftest.err conftest.$ac_objext \ 11787 conftest$ac_exeext conftest.$ac_ext 11788 LIBS=$ac_check_lib_save_LIBS 11789 fi 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11791 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11792 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11793 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11794 fi 11795 11796 11797 fi 11798 11799 11800 fi 11801 11802 11803 fi 11804 11805 11806 fi 11807 11808 11809 fi 11810 11811 ;; 11812 esac 11813 11814 if test no = "$lt_cv_dlopen"; then 11815 enable_dlopen=no 11816 else 11817 enable_dlopen=yes 11818 fi 11819 11820 case $lt_cv_dlopen in 11821 dlopen) 11822 save_CPPFLAGS=$CPPFLAGS 11823 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11824 11825 save_LDFLAGS=$LDFLAGS 11826 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11827 11828 save_LIBS=$LIBS 11829 LIBS="$lt_cv_dlopen_libs $LIBS" 11830 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11832 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11833 if ${lt_cv_dlopen_self+:} false; then : 11834 $as_echo_n "(cached) " >&6 11835 else 11836 if test yes = "$cross_compiling"; then : 11837 lt_cv_dlopen_self=cross 11838 else 11839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11840 lt_status=$lt_dlunknown 11841 cat > conftest.$ac_ext <<_LT_EOF 11842 #line $LINENO "configure" 11843 #include "confdefs.h" 11844 11845 #if HAVE_DLFCN_H 11846 #include <dlfcn.h> 11847 #endif 11848 11849 #include <stdio.h> 11850 11851 #ifdef RTLD_GLOBAL 11852 # define LT_DLGLOBAL RTLD_GLOBAL 11853 #else 11854 # ifdef DL_GLOBAL 11855 # define LT_DLGLOBAL DL_GLOBAL 11856 # else 11857 # define LT_DLGLOBAL 0 11858 # endif 11859 #endif 11860 11861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11862 find out it does not work in some platform. */ 11863 #ifndef LT_DLLAZY_OR_NOW 11864 # ifdef RTLD_LAZY 11865 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11866 # else 11867 # ifdef DL_LAZY 11868 # define LT_DLLAZY_OR_NOW DL_LAZY 11869 # else 11870 # ifdef RTLD_NOW 11871 # define LT_DLLAZY_OR_NOW RTLD_NOW 11872 # else 11873 # ifdef DL_NOW 11874 # define LT_DLLAZY_OR_NOW DL_NOW 11875 # else 11876 # define LT_DLLAZY_OR_NOW 0 11877 # endif 11878 # endif 11879 # endif 11880 # endif 11881 #endif 11882 11883 /* When -fvisibility=hidden is used, assume the code has been annotated 11884 correspondingly for the symbols needed. */ 11885 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11886 int fnord () __attribute__((visibility("default"))); 11887 #endif 11888 11889 int fnord () { return 42; } 11890 int main () 11891 { 11892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11893 int status = $lt_dlunknown; 11894 11895 if (self) 11896 { 11897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11898 else 11899 { 11900 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11901 else puts (dlerror ()); 11902 } 11903 /* dlclose (self); */ 11904 } 11905 else 11906 puts (dlerror ()); 11907 11908 return status; 11909 } 11910 _LT_EOF 11911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11912 (eval $ac_link) 2>&5 11913 ac_status=$? 11914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11915 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11916 (./conftest; exit; ) >&5 2>/dev/null 11917 lt_status=$? 11918 case x$lt_status in 11919 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11920 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11921 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11922 esac 11923 else : 11924 # compilation failed 11925 lt_cv_dlopen_self=no 11926 fi 11927 fi 11928 rm -fr conftest* 11929 11930 11931 fi 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11933 $as_echo "$lt_cv_dlopen_self" >&6; } 11934 11935 if test yes = "$lt_cv_dlopen_self"; then 11936 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11938 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11939 if ${lt_cv_dlopen_self_static+:} false; then : 11940 $as_echo_n "(cached) " >&6 11941 else 11942 if test yes = "$cross_compiling"; then : 11943 lt_cv_dlopen_self_static=cross 11944 else 11945 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11946 lt_status=$lt_dlunknown 11947 cat > conftest.$ac_ext <<_LT_EOF 11948 #line $LINENO "configure" 11949 #include "confdefs.h" 11950 11951 #if HAVE_DLFCN_H 11952 #include <dlfcn.h> 11953 #endif 11954 11955 #include <stdio.h> 11956 11957 #ifdef RTLD_GLOBAL 11958 # define LT_DLGLOBAL RTLD_GLOBAL 11959 #else 11960 # ifdef DL_GLOBAL 11961 # define LT_DLGLOBAL DL_GLOBAL 11962 # else 11963 # define LT_DLGLOBAL 0 11964 # endif 11965 #endif 11966 11967 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11968 find out it does not work in some platform. */ 11969 #ifndef LT_DLLAZY_OR_NOW 11970 # ifdef RTLD_LAZY 11971 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11972 # else 11973 # ifdef DL_LAZY 11974 # define LT_DLLAZY_OR_NOW DL_LAZY 11975 # else 11976 # ifdef RTLD_NOW 11977 # define LT_DLLAZY_OR_NOW RTLD_NOW 11978 # else 11979 # ifdef DL_NOW 11980 # define LT_DLLAZY_OR_NOW DL_NOW 11981 # else 11982 # define LT_DLLAZY_OR_NOW 0 11983 # endif 11984 # endif 11985 # endif 11986 # endif 11987 #endif 11988 11989 /* When -fvisibility=hidden is used, assume the code has been annotated 11990 correspondingly for the symbols needed. */ 11991 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11992 int fnord () __attribute__((visibility("default"))); 11993 #endif 11994 11995 int fnord () { return 42; } 11996 int main () 11997 { 11998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11999 int status = $lt_dlunknown; 12000 12001 if (self) 12002 { 12003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12004 else 12005 { 12006 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12007 else puts (dlerror ()); 12008 } 12009 /* dlclose (self); */ 12010 } 12011 else 12012 puts (dlerror ()); 12013 12014 return status; 12015 } 12016 _LT_EOF 12017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12018 (eval $ac_link) 2>&5 12019 ac_status=$? 12020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12021 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12022 (./conftest; exit; ) >&5 2>/dev/null 12023 lt_status=$? 12024 case x$lt_status in 12025 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12026 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12027 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12028 esac 12029 else : 12030 # compilation failed 12031 lt_cv_dlopen_self_static=no 12032 fi 12033 fi 12034 rm -fr conftest* 12035 12036 12037 fi 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12039 $as_echo "$lt_cv_dlopen_self_static" >&6; } 12040 fi 12041 12042 CPPFLAGS=$save_CPPFLAGS 12043 LDFLAGS=$save_LDFLAGS 12044 LIBS=$save_LIBS 12045 ;; 12046 esac 12047 12048 case $lt_cv_dlopen_self in 12049 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12050 *) enable_dlopen_self=unknown ;; 12051 esac 12052 12053 case $lt_cv_dlopen_self_static in 12054 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12055 *) enable_dlopen_self_static=unknown ;; 12056 esac 12057 fi 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 striplib= 12076 old_striplib= 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12078 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 12079 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12080 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12081 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12083 $as_echo "yes" >&6; } 12084 else 12085 # FIXME - insert some real tests, host_os isn't really good enough 12086 case $host_os in 12087 darwin*) 12088 if test -n "$STRIP"; then 12089 striplib="$STRIP -x" 12090 old_striplib="$STRIP -S" 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12092 $as_echo "yes" >&6; } 12093 else 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12095 $as_echo "no" >&6; } 12096 fi 12097 ;; 12098 *) 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12100 $as_echo "no" >&6; } 12101 ;; 12102 esac 12103 fi 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 # Report what library types will actually be built 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12118 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12120 $as_echo "$can_build_shared" >&6; } 12121 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12123 $as_echo_n "checking whether to build shared libraries... " >&6; } 12124 test no = "$can_build_shared" && enable_shared=no 12125 12126 # On AIX, shared libraries and static libraries use the same namespace, and 12127 # are all built from PIC. 12128 case $host_os in 12129 aix3*) 12130 test yes = "$enable_shared" && enable_static=no 12131 if test -n "$RANLIB"; then 12132 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12133 postinstall_cmds='$RANLIB $lib' 12134 fi 12135 ;; 12136 12137 aix[4-9]*) 12138 if test ia64 != "$host_cpu"; then 12139 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12140 yes,aix,yes) ;; # shared object as lib.so file only 12141 yes,svr4,*) ;; # shared object as lib.so archive member only 12142 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12143 esac 12144 fi 12145 ;; 12146 esac 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12148 $as_echo "$enable_shared" >&6; } 12149 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12151 $as_echo_n "checking whether to build static libraries... " >&6; } 12152 # Make sure either enable_shared or enable_static is yes. 12153 test yes = "$enable_shared" || enable_static=yes 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12155 $as_echo "$enable_static" >&6; } 12156 12157 12158 12159 12160 fi 12161 ac_ext=c 12162 ac_cpp='$CPP $CPPFLAGS' 12163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12165 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12166 12167 CC=$lt_save_CC 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 ac_config_commands="$ac_config_commands libtool" 12184 12185 12186 12187 12188 # Only expand once: 12189 12190 12191 12192 ac_ext=cpp 12193 ac_cpp='$CXXCPP $CPPFLAGS' 12194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12197 if test -z "$CXX"; then 12198 if test -n "$CCC"; then 12199 CXX=$CCC 12200 else 12201 if test -n "$ac_tool_prefix"; then 12202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12203 do 12204 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12205 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12207 $as_echo_n "checking for $ac_word... " >&6; } 12208 if ${ac_cv_prog_CXX+:} false; then : 12209 $as_echo_n "(cached) " >&6 12210 else 12211 if test -n "$CXX"; then 12212 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12213 else 12214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12215 for as_dir in $PATH 12216 do 12217 IFS=$as_save_IFS 12218 test -z "$as_dir" && as_dir=. 12219 for ac_exec_ext in '' $ac_executable_extensions; do 12220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12221 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12223 break 2 12224 fi 12225 done 12226 done 12227 IFS=$as_save_IFS 12228 12229 fi 12230 fi 12231 CXX=$ac_cv_prog_CXX 12232 if test -n "$CXX"; then 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12234 $as_echo "$CXX" >&6; } 12235 else 12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12237 $as_echo "no" >&6; } 12238 fi 12239 12240 12241 test -n "$CXX" && break 12242 done 12243 fi 12244 if test -z "$CXX"; then 12245 ac_ct_CXX=$CXX 12246 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12247 do 12248 # Extract the first word of "$ac_prog", so it can be a program name with args. 12249 set dummy $ac_prog; ac_word=$2 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12251 $as_echo_n "checking for $ac_word... " >&6; } 12252 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12253 $as_echo_n "(cached) " >&6 12254 else 12255 if test -n "$ac_ct_CXX"; then 12256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12257 else 12258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12259 for as_dir in $PATH 12260 do 12261 IFS=$as_save_IFS 12262 test -z "$as_dir" && as_dir=. 12263 for ac_exec_ext in '' $ac_executable_extensions; do 12264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12265 ac_cv_prog_ac_ct_CXX="$ac_prog" 12266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12267 break 2 12268 fi 12269 done 12270 done 12271 IFS=$as_save_IFS 12272 12273 fi 12274 fi 12275 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12276 if test -n "$ac_ct_CXX"; then 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12278 $as_echo "$ac_ct_CXX" >&6; } 12279 else 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12281 $as_echo "no" >&6; } 12282 fi 12283 12284 12285 test -n "$ac_ct_CXX" && break 12286 done 12287 12288 if test "x$ac_ct_CXX" = x; then 12289 CXX="g++" 12290 else 12291 case $cross_compiling:$ac_tool_warned in 12292 yes:) 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12295 ac_tool_warned=yes ;; 12296 esac 12297 CXX=$ac_ct_CXX 12298 fi 12299 fi 12300 12301 fi 12302 fi 12303 # Provide some information about the compiler. 12304 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12305 set X $ac_compile 12306 ac_compiler=$2 12307 for ac_option in --version -v -V -qversion; do 12308 { { ac_try="$ac_compiler $ac_option >&5" 12309 case "(($ac_try" in 12310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12311 *) ac_try_echo=$ac_try;; 12312 esac 12313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12314 $as_echo "$ac_try_echo"; } >&5 12315 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12316 ac_status=$? 12317 if test -s conftest.err; then 12318 sed '10a\ 12319 ... rest of stderr output deleted ... 12320 10q' conftest.err >conftest.er1 12321 cat conftest.er1 >&5 12322 fi 12323 rm -f conftest.er1 conftest.err 12324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12325 test $ac_status = 0; } 12326 done 12327 3036 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3037 12329 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } … … 3154 12446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3155 12447 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3156 DEPDIR="${am__leading_dot}deps"3157 3158 ac_config_commands="$ac_config_commands depfiles"3159 3160 3161 am_make=${MAKE-make}3162 cat > confinc << 'END'3163 am__doit:3164 @echo this is the am__doit target3165 .PHONY: am__doit3166 END3167 # If we don't find an include directive, just comment out the code.3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&53169 $as_echo_n "checking for style of include used by $am_make... " >&6; }3170 am__include="#"3171 am__quote=3172 _am_result=none3173 # First try GNU make style include.3174 echo "include confinc" > confmf3175 # Ignore all kinds of additional output from 'make'.3176 case `$am_make -s -f confmf 2> /dev/null` in #(3177 *the\ am__doit\ target*)3178 am__include=include3179 am__quote=3180 _am_result=GNU3181 ;;3182 esac3183 # Now try BSD make style include.3184 if test "$am__include" = "#"; then3185 echo '.include "confinc"' > confmf3186 case `$am_make -s -f confmf 2> /dev/null` in #(3187 *the\ am__doit\ target*)3188 am__include=.include3189 am__quote="\""3190 _am_result=BSD3191 ;;3192 esac3193 fi3194 3195 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&53197 $as_echo "$_am_result" >&6; }3198 rm -f confinc confmf3199 3200 # Check whether --enable-dependency-tracking was given.3201 if test "${enable_dependency_tracking+set}" = set; then :3202 enableval=$enable_dependency_tracking;3203 fi3204 3205 if test "x$enable_dependency_tracking" != xno; then3206 am_depcomp="$ac_aux_dir/depcomp"3207 AMDEPBACKSLASH='\'3208 am__nodep='_no'3209 fi3210 if test "x$enable_dependency_tracking" != xno; then3211 AMDEP_TRUE=3212 AMDEP_FALSE='#'3213 else3214 AMDEP_TRUE='#'3215 AMDEP_FALSE=3216 fi3217 3218 3219 12448 3220 12449 depcc="$CXX" am_compiler_list= … … 3346 12575 3347 12576 12577 12578 12579 func_stripname_cnf () 12580 { 12581 case $2 in 12582 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 12583 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 12584 esac 12585 } # func_stripname_cnf 12586 12587 if test -n "$CXX" && ( test no != "$CXX" && 12588 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12589 (test g++ != "$CXX"))); then 12590 ac_ext=cpp 12591 ac_cpp='$CXXCPP $CPPFLAGS' 12592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12596 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12597 if test -z "$CXXCPP"; then 12598 if ${ac_cv_prog_CXXCPP+:} false; then : 12599 $as_echo_n "(cached) " >&6 12600 else 12601 # Double quotes because CXXCPP needs to be expanded 12602 for CXXCPP in "$CXX -E" "/lib/cpp" 12603 do 12604 ac_preproc_ok=false 12605 for ac_cxx_preproc_warn_flag in '' yes 12606 do 12607 # Use a header file that comes with gcc, so configuring glibc 12608 # with a fresh cross-compiler works. 12609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12610 # <limits.h> exists even on freestanding compilers. 12611 # On the NeXT, cc -E runs the code through the compiler's parser, 12612 # not just through cpp. "Syntax error" is here to catch this case. 12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12614 /* end confdefs.h. */ 12615 #ifdef __STDC__ 12616 # include <limits.h> 12617 #else 12618 # include <assert.h> 12619 #endif 12620 Syntax error 12621 _ACEOF 12622 if ac_fn_cxx_try_cpp "$LINENO"; then : 12623 12624 else 12625 # Broken: fails on valid input. 12626 continue 12627 fi 12628 rm -f conftest.err conftest.i conftest.$ac_ext 12629 12630 # OK, works on sane cases. Now check whether nonexistent headers 12631 # can be detected and how. 12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12633 /* end confdefs.h. */ 12634 #include <ac_nonexistent.h> 12635 _ACEOF 12636 if ac_fn_cxx_try_cpp "$LINENO"; then : 12637 # Broken: success on invalid input. 12638 continue 12639 else 12640 # Passes both tests. 12641 ac_preproc_ok=: 12642 break 12643 fi 12644 rm -f conftest.err conftest.i conftest.$ac_ext 12645 12646 done 12647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12648 rm -f conftest.i conftest.err conftest.$ac_ext 12649 if $ac_preproc_ok; then : 12650 break 12651 fi 12652 12653 done 12654 ac_cv_prog_CXXCPP=$CXXCPP 12655 12656 fi 12657 CXXCPP=$ac_cv_prog_CXXCPP 12658 else 12659 ac_cv_prog_CXXCPP=$CXXCPP 12660 fi 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12662 $as_echo "$CXXCPP" >&6; } 12663 ac_preproc_ok=false 12664 for ac_cxx_preproc_warn_flag in '' yes 12665 do 12666 # Use a header file that comes with gcc, so configuring glibc 12667 # with a fresh cross-compiler works. 12668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12669 # <limits.h> exists even on freestanding compilers. 12670 # On the NeXT, cc -E runs the code through the compiler's parser, 12671 # not just through cpp. "Syntax error" is here to catch this case. 12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12673 /* end confdefs.h. */ 12674 #ifdef __STDC__ 12675 # include <limits.h> 12676 #else 12677 # include <assert.h> 12678 #endif 12679 Syntax error 12680 _ACEOF 12681 if ac_fn_cxx_try_cpp "$LINENO"; then : 12682 12683 else 12684 # Broken: fails on valid input. 12685 continue 12686 fi 12687 rm -f conftest.err conftest.i conftest.$ac_ext 12688 12689 # OK, works on sane cases. Now check whether nonexistent headers 12690 # can be detected and how. 12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12692 /* end confdefs.h. */ 12693 #include <ac_nonexistent.h> 12694 _ACEOF 12695 if ac_fn_cxx_try_cpp "$LINENO"; then : 12696 # Broken: success on invalid input. 12697 continue 12698 else 12699 # Passes both tests. 12700 ac_preproc_ok=: 12701 break 12702 fi 12703 rm -f conftest.err conftest.i conftest.$ac_ext 12704 12705 done 12706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12707 rm -f conftest.i conftest.err conftest.$ac_ext 12708 if $ac_preproc_ok; then : 12709 12710 else 12711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12713 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12714 See \`config.log' for more details" "$LINENO" 5; } 12715 fi 12716 12717 ac_ext=c 12718 ac_cpp='$CPP $CPPFLAGS' 12719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12721 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12722 12723 else 12724 _lt_caught_CXX_error=yes 12725 fi 12726 12727 ac_ext=cpp 12728 ac_cpp='$CXXCPP $CPPFLAGS' 12729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12732 12733 archive_cmds_need_lc_CXX=no 12734 allow_undefined_flag_CXX= 12735 always_export_symbols_CXX=no 12736 archive_expsym_cmds_CXX= 12737 compiler_needs_object_CXX=no 12738 export_dynamic_flag_spec_CXX= 12739 hardcode_direct_CXX=no 12740 hardcode_direct_absolute_CXX=no 12741 hardcode_libdir_flag_spec_CXX= 12742 hardcode_libdir_separator_CXX= 12743 hardcode_minus_L_CXX=no 12744 hardcode_shlibpath_var_CXX=unsupported 12745 hardcode_automatic_CXX=no 12746 inherit_rpath_CXX=no 12747 module_cmds_CXX= 12748 module_expsym_cmds_CXX= 12749 link_all_deplibs_CXX=unknown 12750 old_archive_cmds_CXX=$old_archive_cmds 12751 reload_flag_CXX=$reload_flag 12752 reload_cmds_CXX=$reload_cmds 12753 no_undefined_flag_CXX= 12754 whole_archive_flag_spec_CXX= 12755 enable_shared_with_static_runtimes_CXX=no 12756 12757 # Source file extension for C++ test sources. 12758 ac_ext=cpp 12759 12760 # Object file extension for compiled C++ test sources. 12761 objext=o 12762 objext_CXX=$objext 12763 12764 # No sense in running all these tests if we already determined that 12765 # the CXX compiler isn't working. Some variables (like enable_shared) 12766 # are currently assumed to apply to all compilers on this platform, 12767 # and will be corrupted by setting them based on a non-working compiler. 12768 if test yes != "$_lt_caught_CXX_error"; then 12769 # Code to be used in simple compile tests 12770 lt_simple_compile_test_code="int some_variable = 0;" 12771 12772 # Code to be used in simple link tests 12773 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12774 12775 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12776 12777 12778 12779 12780 12781 12782 # If no C compiler was specified, use CC. 12783 LTCC=${LTCC-"$CC"} 12784 12785 # If no C compiler flags were specified, use CFLAGS. 12786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12787 12788 # Allow CC to be a program name with arguments. 12789 compiler=$CC 12790 12791 12792 # save warnings/boilerplate of simple test code 12793 ac_outfile=conftest.$ac_objext 12794 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12796 _lt_compiler_boilerplate=`cat conftest.err` 12797 $RM conftest* 12798 12799 ac_outfile=conftest.$ac_objext 12800 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12802 _lt_linker_boilerplate=`cat conftest.err` 12803 $RM -r conftest* 12804 12805 12806 # Allow CC to be a program name with arguments. 12807 lt_save_CC=$CC 12808 lt_save_CFLAGS=$CFLAGS 12809 lt_save_LD=$LD 12810 lt_save_GCC=$GCC 12811 GCC=$GXX 12812 lt_save_with_gnu_ld=$with_gnu_ld 12813 lt_save_path_LD=$lt_cv_path_LD 12814 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12815 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12816 else 12817 $as_unset lt_cv_prog_gnu_ld 12818 fi 12819 if test -n "${lt_cv_path_LDCXX+set}"; then 12820 lt_cv_path_LD=$lt_cv_path_LDCXX 12821 else 12822 $as_unset lt_cv_path_LD 12823 fi 12824 test -z "${LDCXX+set}" || LD=$LDCXX 12825 CC=${CXX-"c++"} 12826 CFLAGS=$CXXFLAGS 12827 compiler=$CC 12828 compiler_CXX=$CC 12829 func_cc_basename $compiler 12830 cc_basename=$func_cc_basename_result 12831 12832 12833 if test -n "$compiler"; then 12834 # We don't want -fno-exception when compiling C++ code, so set the 12835 # no_builtin_flag separately 12836 if test yes = "$GXX"; then 12837 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12838 else 12839 lt_prog_compiler_no_builtin_flag_CXX= 12840 fi 12841 12842 if test yes = "$GXX"; then 12843 # Set up default GNU C++ configuration 12844 12845 12846 12847 # Check whether --with-gnu-ld was given. 12848 if test "${with_gnu_ld+set}" = set; then : 12849 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12850 else 12851 with_gnu_ld=no 12852 fi 12853 12854 ac_prog=ld 12855 if test yes = "$GCC"; then 12856 # Check if gcc -print-prog-name=ld gives a path. 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12858 $as_echo_n "checking for ld used by $CC... " >&6; } 12859 case $host in 12860 *-*-mingw*) 12861 # gcc leaves a trailing carriage return, which upsets mingw 12862 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12863 *) 12864 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12865 esac 12866 case $ac_prog in 12867 # Accept absolute paths. 12868 [\\/]* | ?:[\\/]*) 12869 re_direlt='/[^/][^/]*/\.\./' 12870 # Canonicalize the pathname of ld 12871 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12872 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12873 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12874 done 12875 test -z "$LD" && LD=$ac_prog 12876 ;; 12877 "") 12878 # If it fails, then pretend we aren't using GCC. 12879 ac_prog=ld 12880 ;; 12881 *) 12882 # If it is relative, then search for the first ld in PATH. 12883 with_gnu_ld=unknown 12884 ;; 12885 esac 12886 elif test yes = "$with_gnu_ld"; then 12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12888 $as_echo_n "checking for GNU ld... " >&6; } 12889 else 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12891 $as_echo_n "checking for non-GNU ld... " >&6; } 12892 fi 12893 if ${lt_cv_path_LD+:} false; then : 12894 $as_echo_n "(cached) " >&6 12895 else 12896 if test -z "$LD"; then 12897 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12898 for ac_dir in $PATH; do 12899 IFS=$lt_save_ifs 12900 test -z "$ac_dir" && ac_dir=. 12901 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12902 lt_cv_path_LD=$ac_dir/$ac_prog 12903 # Check to see if the program is GNU ld. I'd rather use --version, 12904 # but apparently some variants of GNU ld only accept -v. 12905 # Break only if it was the GNU/non-GNU ld that we prefer. 12906 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12907 *GNU* | *'with BFD'*) 12908 test no != "$with_gnu_ld" && break 12909 ;; 12910 *) 12911 test yes != "$with_gnu_ld" && break 12912 ;; 12913 esac 12914 fi 12915 done 12916 IFS=$lt_save_ifs 12917 else 12918 lt_cv_path_LD=$LD # Let the user override the test with a path. 12919 fi 12920 fi 12921 12922 LD=$lt_cv_path_LD 12923 if test -n "$LD"; then 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12925 $as_echo "$LD" >&6; } 12926 else 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12928 $as_echo "no" >&6; } 12929 fi 12930 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12932 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12933 if ${lt_cv_prog_gnu_ld+:} false; then : 12934 $as_echo_n "(cached) " >&6 12935 else 12936 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12937 case `$LD -v 2>&1 </dev/null` in 12938 *GNU* | *'with BFD'*) 12939 lt_cv_prog_gnu_ld=yes 12940 ;; 12941 *) 12942 lt_cv_prog_gnu_ld=no 12943 ;; 12944 esac 12945 fi 12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12947 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 12948 with_gnu_ld=$lt_cv_prog_gnu_ld 12949 12950 12951 12952 12953 12954 12955 12956 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12957 # archiving commands below assume that GNU ld is being used. 12958 if test yes = "$with_gnu_ld"; then 12959 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 12960 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 12961 12962 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 12963 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 12964 12965 # If archive_cmds runs LD, not CC, wlarc should be empty 12966 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12967 # investigate it a little bit more. (MM) 12968 wlarc='$wl' 12969 12970 # ancient GNU ld didn't support --whole-archive et. al. 12971 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12972 $GREP 'no-whole-archive' > /dev/null; then 12973 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12974 else 12975 whole_archive_flag_spec_CXX= 12976 fi 12977 else 12978 with_gnu_ld=no 12979 wlarc= 12980 12981 # A generic and very simple default shared library creation 12982 # command for GNU C++ for the case where it uses the native 12983 # linker, instead of GNU ld. If possible, this setting should 12984 # overridden to take advantage of the native linker features on 12985 # the platform it is being used on. 12986 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12987 fi 12988 12989 # Commands to make compiler produce verbose output that lists 12990 # what "hidden" libraries, object files and flags are used when 12991 # linking a shared library. 12992 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12993 12994 else 12995 GXX=no 12996 with_gnu_ld=no 12997 wlarc= 12998 fi 12999 13000 # PORTME: fill in a description of your system's C++ link characteristics 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13002 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13003 ld_shlibs_CXX=yes 13004 case $host_os in 13005 aix3*) 13006 # FIXME: insert proper C++ library support 13007 ld_shlibs_CXX=no 13008 ;; 13009 aix[4-9]*) 13010 if test ia64 = "$host_cpu"; then 13011 # On IA64, the linker does run time linking by default, so we don't 13012 # have to do anything special. 13013 aix_use_runtimelinking=no 13014 exp_sym_flag='-Bexport' 13015 no_entry_flag= 13016 else 13017 aix_use_runtimelinking=no 13018 13019 # Test if we are trying to use run time linking or normal 13020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13021 # have runtime linking enabled, and use it for executables. 13022 # For shared libraries, we enable/disable runtime linking 13023 # depending on the kind of the shared library created - 13024 # when "with_aix_soname,aix_use_runtimelinking" is: 13025 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13026 # "aix,yes" lib.so shared, rtl:yes, for executables 13027 # lib.a static archive 13028 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13029 # lib.a(lib.so.V) shared, rtl:no, for executables 13030 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13031 # lib.a(lib.so.V) shared, rtl:no 13032 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13033 # lib.a static archive 13034 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13035 for ld_flag in $LDFLAGS; do 13036 case $ld_flag in 13037 *-brtl*) 13038 aix_use_runtimelinking=yes 13039 break 13040 ;; 13041 esac 13042 done 13043 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13044 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13045 # so we don't have lib.a shared libs to link our executables. 13046 # We have to force runtime linking in this case. 13047 aix_use_runtimelinking=yes 13048 LDFLAGS="$LDFLAGS -Wl,-brtl" 13049 fi 13050 ;; 13051 esac 13052 13053 exp_sym_flag='-bexport' 13054 no_entry_flag='-bnoentry' 13055 fi 13056 13057 # When large executables or shared objects are built, AIX ld can 13058 # have problems creating the table of contents. If linking a library 13059 # or program results in "error TOC overflow" add -mminimal-toc to 13060 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13061 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13062 13063 archive_cmds_CXX='' 13064 hardcode_direct_CXX=yes 13065 hardcode_direct_absolute_CXX=yes 13066 hardcode_libdir_separator_CXX=':' 13067 link_all_deplibs_CXX=yes 13068 file_list_spec_CXX='$wl-f,' 13069 case $with_aix_soname,$aix_use_runtimelinking in 13070 aix,*) ;; # no import file 13071 svr4,* | *,yes) # use import file 13072 # The Import File defines what to hardcode. 13073 hardcode_direct_CXX=no 13074 hardcode_direct_absolute_CXX=no 13075 ;; 13076 esac 13077 13078 if test yes = "$GXX"; then 13079 case $host_os in aix4.[012]|aix4.[012].*) 13080 # We only want to do this on AIX 4.2 and lower, the check 13081 # below for broken collect2 doesn't work under 4.3+ 13082 collect2name=`$CC -print-prog-name=collect2` 13083 if test -f "$collect2name" && 13084 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13085 then 13086 # We have reworked collect2 13087 : 13088 else 13089 # We have old collect2 13090 hardcode_direct_CXX=unsupported 13091 # It fails to find uninstalled libraries when the uninstalled 13092 # path is not listed in the libpath. Setting hardcode_minus_L 13093 # to unsupported forces relinking 13094 hardcode_minus_L_CXX=yes 13095 hardcode_libdir_flag_spec_CXX='-L$libdir' 13096 hardcode_libdir_separator_CXX= 13097 fi 13098 esac 13099 shared_flag='-shared' 13100 if test yes = "$aix_use_runtimelinking"; then 13101 shared_flag=$shared_flag' $wl-G' 13102 fi 13103 # Need to ensure runtime linking is disabled for the traditional 13104 # shared library, or the linker may eventually find shared libraries 13105 # /with/ Import File - we do not want to mix them. 13106 shared_flag_aix='-shared' 13107 shared_flag_svr4='-shared $wl-G' 13108 else 13109 # not using gcc 13110 if test ia64 = "$host_cpu"; then 13111 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13112 # chokes on -Wl,-G. The following line is correct: 13113 shared_flag='-G' 13114 else 13115 if test yes = "$aix_use_runtimelinking"; then 13116 shared_flag='$wl-G' 13117 else 13118 shared_flag='$wl-bM:SRE' 13119 fi 13120 shared_flag_aix='$wl-bM:SRE' 13121 shared_flag_svr4='$wl-G' 13122 fi 13123 fi 13124 13125 export_dynamic_flag_spec_CXX='$wl-bexpall' 13126 # It seems that -bexpall does not export symbols beginning with 13127 # underscore (_), so it is better to generate a list of symbols to 13128 # export. 13129 always_export_symbols_CXX=yes 13130 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13131 # Warning - without using the other runtime loading flags (-brtl), 13132 # -berok will link without error, but may produce a broken library. 13133 # The "-G" linker flag allows undefined symbols. 13134 no_undefined_flag_CXX='-bernotok' 13135 # Determine the default libpath from the value encoded in an empty 13136 # executable. 13137 if test set = "${lt_cv_aix_libpath+set}"; then 13138 aix_libpath=$lt_cv_aix_libpath 13139 else 13140 if ${lt_cv_aix_libpath__CXX+:} false; then : 13141 $as_echo_n "(cached) " >&6 13142 else 13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144 /* end confdefs.h. */ 13145 13146 int 13147 main () 13148 { 13149 13150 ; 13151 return 0; 13152 } 13153 _ACEOF 13154 if ac_fn_cxx_try_link "$LINENO"; then : 13155 13156 lt_aix_libpath_sed=' 13157 /Import File Strings/,/^$/ { 13158 /^0/ { 13159 s/^0 *\([^ ]*\) *$/\1/ 13160 p 13161 } 13162 }' 13163 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13164 # Check for a 64-bit object if we didn't find anything. 13165 if test -z "$lt_cv_aix_libpath__CXX"; then 13166 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13167 fi 13168 fi 13169 rm -f core conftest.err conftest.$ac_objext \ 13170 conftest$ac_exeext conftest.$ac_ext 13171 if test -z "$lt_cv_aix_libpath__CXX"; then 13172 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13173 fi 13174 13175 fi 13176 13177 aix_libpath=$lt_cv_aix_libpath__CXX 13178 fi 13179 13180 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13181 13182 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13183 else 13184 if test ia64 = "$host_cpu"; then 13185 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13186 allow_undefined_flag_CXX="-z nodefs" 13187 archive_expsym_cmds_CXX="\$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" 13188 else 13189 # Determine the default libpath from the value encoded in an 13190 # empty executable. 13191 if test set = "${lt_cv_aix_libpath+set}"; then 13192 aix_libpath=$lt_cv_aix_libpath 13193 else 13194 if ${lt_cv_aix_libpath__CXX+:} false; then : 13195 $as_echo_n "(cached) " >&6 13196 else 13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13198 /* end confdefs.h. */ 13199 13200 int 13201 main () 13202 { 13203 13204 ; 13205 return 0; 13206 } 13207 _ACEOF 13208 if ac_fn_cxx_try_link "$LINENO"; then : 13209 13210 lt_aix_libpath_sed=' 13211 /Import File Strings/,/^$/ { 13212 /^0/ { 13213 s/^0 *\([^ ]*\) *$/\1/ 13214 p 13215 } 13216 }' 13217 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13218 # Check for a 64-bit object if we didn't find anything. 13219 if test -z "$lt_cv_aix_libpath__CXX"; then 13220 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13221 fi 13222 fi 13223 rm -f core conftest.err conftest.$ac_objext \ 13224 conftest$ac_exeext conftest.$ac_ext 13225 if test -z "$lt_cv_aix_libpath__CXX"; then 13226 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13227 fi 13228 13229 fi 13230 13231 aix_libpath=$lt_cv_aix_libpath__CXX 13232 fi 13233 13234 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13235 # Warning - without using the other run time loading flags, 13236 # -berok will link without error, but may produce a broken library. 13237 no_undefined_flag_CXX=' $wl-bernotok' 13238 allow_undefined_flag_CXX=' $wl-berok' 13239 if test yes = "$with_gnu_ld"; then 13240 # We only use this code for GNU lds that support --whole-archive. 13241 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13242 else 13243 # Exported symbols can be pulled into shared objects from archives 13244 whole_archive_flag_spec_CXX='$convenience' 13245 fi 13246 archive_cmds_need_lc_CXX=yes 13247 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13248 # -brtl affects multiple linker settings, -berok does not and is overridden later 13249 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13250 if test svr4 != "$with_aix_soname"; then 13251 # This is similar to how AIX traditionally builds its shared 13252 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13253 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13254 fi 13255 if test aix != "$with_aix_soname"; then 13256 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13257 else 13258 # used by -dlpreopen to get the symbols 13259 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13260 fi 13261 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13262 fi 13263 fi 13264 ;; 13265 13266 beos*) 13267 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13268 allow_undefined_flag_CXX=unsupported 13269 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13270 # support --undefined. This deserves some investigation. FIXME 13271 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13272 else 13273 ld_shlibs_CXX=no 13274 fi 13275 ;; 13276 13277 chorus*) 13278 case $cc_basename in 13279 *) 13280 # FIXME: insert proper C++ library support 13281 ld_shlibs_CXX=no 13282 ;; 13283 esac 13284 ;; 13285 13286 cygwin* | mingw* | pw32* | cegcc*) 13287 case $GXX,$cc_basename in 13288 ,cl* | no,cl*) 13289 # Native MSVC 13290 # hardcode_libdir_flag_spec is actually meaningless, as there is 13291 # no search path for DLLs. 13292 hardcode_libdir_flag_spec_CXX=' ' 13293 allow_undefined_flag_CXX=unsupported 13294 always_export_symbols_CXX=yes 13295 file_list_spec_CXX='@' 13296 # Tell ltmain to make .lib files, not .a files. 13297 libext=lib 13298 # Tell ltmain to make .dll files, not .so files. 13299 shrext_cmds=.dll 13300 # FIXME: Setting linknames here is a bad hack. 13301 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13302 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13303 cp "$export_symbols" "$output_objdir/$soname.def"; 13304 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13305 else 13306 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13307 fi~ 13308 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13309 linknames=' 13310 # The linker will not automatically build a static lib if we build a DLL. 13311 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13312 enable_shared_with_static_runtimes_CXX=yes 13313 # Don't use ranlib 13314 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13315 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13316 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13317 case $lt_outputfile in 13318 *.exe|*.EXE) ;; 13319 *) 13320 lt_outputfile=$lt_outputfile.exe 13321 lt_tool_outputfile=$lt_tool_outputfile.exe 13322 ;; 13323 esac~ 13324 func_to_tool_file "$lt_outputfile"~ 13325 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13326 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13327 $RM "$lt_outputfile.manifest"; 13328 fi' 13329 ;; 13330 *) 13331 # g++ 13332 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13333 # as there is no search path for DLLs. 13334 hardcode_libdir_flag_spec_CXX='-L$libdir' 13335 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13336 allow_undefined_flag_CXX=unsupported 13337 always_export_symbols_CXX=no 13338 enable_shared_with_static_runtimes_CXX=yes 13339 13340 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13341 archive_cmds_CXX='$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' 13342 # If the export-symbols file already is a .def file, use it as 13343 # is; otherwise, prepend EXPORTS... 13344 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13345 cp $export_symbols $output_objdir/$soname.def; 13346 else 13347 echo EXPORTS > $output_objdir/$soname.def; 13348 cat $export_symbols >> $output_objdir/$soname.def; 13349 fi~ 13350 $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' 13351 else 13352 ld_shlibs_CXX=no 13353 fi 13354 ;; 13355 esac 13356 ;; 13357 darwin* | rhapsody*) 13358 13359 13360 archive_cmds_need_lc_CXX=no 13361 hardcode_direct_CXX=no 13362 hardcode_automatic_CXX=yes 13363 hardcode_shlibpath_var_CXX=unsupported 13364 if test yes = "$lt_cv_ld_force_load"; then 13365 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 13366 13367 else 13368 whole_archive_flag_spec_CXX='' 13369 fi 13370 link_all_deplibs_CXX=yes 13371 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13372 case $cc_basename in 13373 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13374 *) _lt_dar_can_shared=$GCC ;; 13375 esac 13376 if test yes = "$_lt_dar_can_shared"; then 13377 output_verbose_link_cmd=func_echo_all 13378 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 13379 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13380 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 13381 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 13382 if test yes != "$lt_cv_apple_cc_single_mod"; then 13383 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 13384 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 13385 fi 13386 13387 else 13388 ld_shlibs_CXX=no 13389 fi 13390 13391 ;; 13392 13393 os2*) 13394 hardcode_libdir_flag_spec_CXX='-L$libdir' 13395 hardcode_minus_L_CXX=yes 13396 allow_undefined_flag_CXX=unsupported 13397 shrext_cmds=.dll 13398 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13399 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13400 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13401 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13402 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13403 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13404 emximp -o $lib $output_objdir/$libname.def' 13405 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13406 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13407 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13408 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13409 prefix_cmds="$SED"~ 13410 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13411 prefix_cmds="$prefix_cmds -e 1d"; 13412 fi~ 13413 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13414 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13416 emximp -o $lib $output_objdir/$libname.def' 13417 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13418 enable_shared_with_static_runtimes_CXX=yes 13419 ;; 13420 13421 dgux*) 13422 case $cc_basename in 13423 ec++*) 13424 # FIXME: insert proper C++ library support 13425 ld_shlibs_CXX=no 13426 ;; 13427 ghcx*) 13428 # Green Hills C++ Compiler 13429 # FIXME: insert proper C++ library support 13430 ld_shlibs_CXX=no 13431 ;; 13432 *) 13433 # FIXME: insert proper C++ library support 13434 ld_shlibs_CXX=no 13435 ;; 13436 esac 13437 ;; 13438 13439 freebsd2.*) 13440 # C++ shared libraries reported to be fairly broken before 13441 # switch to ELF 13442 ld_shlibs_CXX=no 13443 ;; 13444 13445 freebsd-elf*) 13446 archive_cmds_need_lc_CXX=no 13447 ;; 13448 13449 freebsd* | dragonfly*) 13450 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13451 # conventions 13452 ld_shlibs_CXX=yes 13453 ;; 13454 13455 haiku*) 13456 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13457 link_all_deplibs_CXX=yes 13458 ;; 13459 13460 hpux9*) 13461 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13462 hardcode_libdir_separator_CXX=: 13463 export_dynamic_flag_spec_CXX='$wl-E' 13464 hardcode_direct_CXX=yes 13465 hardcode_minus_L_CXX=yes # Not in the search PATH, 13466 # but as the default 13467 # location of the library. 13468 13469 case $cc_basename in 13470 CC*) 13471 # FIXME: insert proper C++ library support 13472 ld_shlibs_CXX=no 13473 ;; 13474 aCC*) 13475 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13476 # Commands to make compiler produce verbose output that lists 13477 # what "hidden" libraries, object files and flags are used when 13478 # linking a shared library. 13479 # 13480 # There doesn't appear to be a way to prevent this compiler from 13481 # explicitly linking system object files so we need to strip them 13482 # from the output so that they don't get included in the library 13483 # dependencies. 13484 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13485 ;; 13486 *) 13487 if test yes = "$GXX"; then 13488 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13489 else 13490 # FIXME: insert proper C++ library support 13491 ld_shlibs_CXX=no 13492 fi 13493 ;; 13494 esac 13495 ;; 13496 13497 hpux10*|hpux11*) 13498 if test no = "$with_gnu_ld"; then 13499 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13500 hardcode_libdir_separator_CXX=: 13501 13502 case $host_cpu in 13503 hppa*64*|ia64*) 13504 ;; 13505 *) 13506 export_dynamic_flag_spec_CXX='$wl-E' 13507 ;; 13508 esac 13509 fi 13510 case $host_cpu in 13511 hppa*64*|ia64*) 13512 hardcode_direct_CXX=no 13513 hardcode_shlibpath_var_CXX=no 13514 ;; 13515 *) 13516 hardcode_direct_CXX=yes 13517 hardcode_direct_absolute_CXX=yes 13518 hardcode_minus_L_CXX=yes # Not in the search PATH, 13519 # but as the default 13520 # location of the library. 13521 ;; 13522 esac 13523 13524 case $cc_basename in 13525 CC*) 13526 # FIXME: insert proper C++ library support 13527 ld_shlibs_CXX=no 13528 ;; 13529 aCC*) 13530 case $host_cpu in 13531 hppa*64*) 13532 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13533 ;; 13534 ia64*) 13535 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13536 ;; 13537 *) 13538 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13539 ;; 13540 esac 13541 # Commands to make compiler produce verbose output that lists 13542 # what "hidden" libraries, object files and flags are used when 13543 # linking a shared library. 13544 # 13545 # There doesn't appear to be a way to prevent this compiler from 13546 # explicitly linking system object files so we need to strip them 13547 # from the output so that they don't get included in the library 13548 # dependencies. 13549 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13550 ;; 13551 *) 13552 if test yes = "$GXX"; then 13553 if test no = "$with_gnu_ld"; then 13554 case $host_cpu in 13555 hppa*64*) 13556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13557 ;; 13558 ia64*) 13559 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13560 ;; 13561 *) 13562 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13563 ;; 13564 esac 13565 fi 13566 else 13567 # FIXME: insert proper C++ library support 13568 ld_shlibs_CXX=no 13569 fi 13570 ;; 13571 esac 13572 ;; 13573 13574 interix[3-9]*) 13575 hardcode_direct_CXX=no 13576 hardcode_shlibpath_var_CXX=no 13577 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13578 export_dynamic_flag_spec_CXX='$wl-E' 13579 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13580 # Instead, shared libraries are loaded at an image base (0x10000000 by 13581 # default) and relocated if they conflict, which is a slow very memory 13582 # consuming and fragmenting process. To avoid this, we pick a random, 13583 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13584 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13585 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 13586 archive_expsym_cmds_CXX='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' 13587 ;; 13588 irix5* | irix6*) 13589 case $cc_basename in 13590 CC*) 13591 # SGI C++ 13592 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13593 13594 # Archives containing C++ object files must be created using 13595 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13596 # necessary to make sure instantiated templates are included 13597 # in the archive. 13598 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13599 ;; 13600 *) 13601 if test yes = "$GXX"; then 13602 if test no = "$with_gnu_ld"; then 13603 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13604 else 13605 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 13606 fi 13607 fi 13608 link_all_deplibs_CXX=yes 13609 ;; 13610 esac 13611 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13612 hardcode_libdir_separator_CXX=: 13613 inherit_rpath_CXX=yes 13614 ;; 13615 13616 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13617 case $cc_basename in 13618 KCC*) 13619 # Kuck and Associates, Inc. (KAI) C++ Compiler 13620 13621 # KCC will only create a shared library if the output file 13622 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13623 # to its proper name (with version) after linking. 13624 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13625 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 13626 # Commands to make compiler produce verbose output that lists 13627 # what "hidden" libraries, object files and flags are used when 13628 # linking a shared library. 13629 # 13630 # There doesn't appear to be a way to prevent this compiler from 13631 # explicitly linking system object files so we need to strip them 13632 # from the output so that they don't get included in the library 13633 # dependencies. 13634 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 13635 13636 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13637 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13638 13639 # Archives containing C++ object files must be created using 13640 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13641 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13642 ;; 13643 icpc* | ecpc* ) 13644 # Intel C++ 13645 with_gnu_ld=yes 13646 # version 8.0 and above of icpc choke on multiply defined symbols 13647 # if we add $predep_objects and $postdep_objects, however 7.1 and 13648 # earlier do not add the objects themselves. 13649 case `$CC -V 2>&1` in 13650 *"Version 7."*) 13651 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13652 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13653 ;; 13654 *) # Version 8.0 or newer 13655 tmp_idyn= 13656 case $host_cpu in 13657 ia64*) tmp_idyn=' -i_dynamic';; 13658 esac 13659 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13660 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13661 ;; 13662 esac 13663 archive_cmds_need_lc_CXX=no 13664 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13665 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13666 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13667 ;; 13668 pgCC* | pgcpp*) 13669 # Portland Group C++ compiler 13670 case `$CC -V` in 13671 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13672 prelink_cmds_CXX='tpldir=Template.dir~ 13673 rm -rf $tpldir~ 13674 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13675 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13676 old_archive_cmds_CXX='tpldir=Template.dir~ 13677 rm -rf $tpldir~ 13678 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13679 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13680 $RANLIB $oldlib' 13681 archive_cmds_CXX='tpldir=Template.dir~ 13682 rm -rf $tpldir~ 13683 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13684 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13685 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13686 rm -rf $tpldir~ 13687 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13688 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13689 ;; 13690 *) # Version 6 and above use weak symbols 13691 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13692 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13693 ;; 13694 esac 13695 13696 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13697 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13698 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13699 ;; 13700 cxx*) 13701 # Compaq C++ 13702 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13703 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 13704 13705 runpath_var=LD_RUN_PATH 13706 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13707 hardcode_libdir_separator_CXX=: 13708 13709 # Commands to make compiler produce verbose output that lists 13710 # what "hidden" libraries, object files and flags are used when 13711 # linking a shared library. 13712 # 13713 # There doesn't appear to be a way to prevent this compiler from 13714 # explicitly linking system object files so we need to strip them 13715 # from the output so that they don't get included in the library 13716 # dependencies. 13717 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 13718 ;; 13719 xl* | mpixl* | bgxl*) 13720 # IBM XL 8.0 on PPC, with GNU ld 13721 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13722 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13723 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13724 if test yes = "$supports_anon_versioning"; then 13725 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13726 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13727 echo "local: *; };" >> $output_objdir/$libname.ver~ 13728 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13729 fi 13730 ;; 13731 *) 13732 case `$CC -V 2>&1 | sed 5q` in 13733 *Sun\ C*) 13734 # Sun C++ 5.9 13735 no_undefined_flag_CXX=' -zdefs' 13736 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13737 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 13738 hardcode_libdir_flag_spec_CXX='-R$libdir' 13739 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 13740 compiler_needs_object_CXX=yes 13741 13742 # Not sure whether something based on 13743 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13744 # would be better. 13745 output_verbose_link_cmd='func_echo_all' 13746 13747 # Archives containing C++ object files must be created using 13748 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13749 # necessary to make sure instantiated templates are included 13750 # in the archive. 13751 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13752 ;; 13753 esac 13754 ;; 13755 esac 13756 ;; 13757 13758 lynxos*) 13759 # FIXME: insert proper C++ library support 13760 ld_shlibs_CXX=no 13761 ;; 13762 13763 m88k*) 13764 # FIXME: insert proper C++ library support 13765 ld_shlibs_CXX=no 13766 ;; 13767 13768 mvs*) 13769 case $cc_basename in 13770 cxx*) 13771 # FIXME: insert proper C++ library support 13772 ld_shlibs_CXX=no 13773 ;; 13774 *) 13775 # FIXME: insert proper C++ library support 13776 ld_shlibs_CXX=no 13777 ;; 13778 esac 13779 ;; 13780 13781 netbsd*) 13782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13783 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13784 wlarc= 13785 hardcode_libdir_flag_spec_CXX='-R$libdir' 13786 hardcode_direct_CXX=yes 13787 hardcode_shlibpath_var_CXX=no 13788 fi 13789 # Workaround some broken pre-1.5 toolchains 13790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13791 ;; 13792 13793 *nto* | *qnx*) 13794 ld_shlibs_CXX=yes 13795 ;; 13796 13797 openbsd* | bitrig*) 13798 if test -f /usr/libexec/ld.so; then 13799 hardcode_direct_CXX=yes 13800 hardcode_shlibpath_var_CXX=no 13801 hardcode_direct_absolute_CXX=yes 13802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13803 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13805 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13806 export_dynamic_flag_spec_CXX='$wl-E' 13807 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13808 fi 13809 output_verbose_link_cmd=func_echo_all 13810 else 13811 ld_shlibs_CXX=no 13812 fi 13813 ;; 13814 13815 osf3* | osf4* | osf5*) 13816 case $cc_basename in 13817 KCC*) 13818 # Kuck and Associates, Inc. (KAI) C++ Compiler 13819 13820 # KCC will only create a shared library if the output file 13821 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13822 # to its proper name (with version) after linking. 13823 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 13824 13825 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13826 hardcode_libdir_separator_CXX=: 13827 13828 # Archives containing C++ object files must be created using 13829 # the KAI C++ compiler. 13830 case $host in 13831 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13832 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13833 esac 13834 ;; 13835 RCC*) 13836 # Rational C++ 2.4.1 13837 # FIXME: insert proper C++ library support 13838 ld_shlibs_CXX=no 13839 ;; 13840 cxx*) 13841 case $host in 13842 osf3*) 13843 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13844 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13845 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13846 ;; 13847 *) 13848 allow_undefined_flag_CXX=' -expect_unresolved \*' 13849 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 13850 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13851 echo "-hidden">> $lib.exp~ 13852 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 13853 $RM $lib.exp' 13854 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13855 ;; 13856 esac 13857 13858 hardcode_libdir_separator_CXX=: 13859 13860 # Commands to make compiler produce verbose output that lists 13861 # what "hidden" libraries, object files and flags are used when 13862 # linking a shared library. 13863 # 13864 # There doesn't appear to be a way to prevent this compiler from 13865 # explicitly linking system object files so we need to strip them 13866 # from the output so that they don't get included in the library 13867 # dependencies. 13868 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 13869 ;; 13870 *) 13871 if test yes,no = "$GXX,$with_gnu_ld"; then 13872 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13873 case $host in 13874 osf3*) 13875 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13876 ;; 13877 *) 13878 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 13879 ;; 13880 esac 13881 13882 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13883 hardcode_libdir_separator_CXX=: 13884 13885 # Commands to make compiler produce verbose output that lists 13886 # what "hidden" libraries, object files and flags are used when 13887 # linking a shared library. 13888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13889 13890 else 13891 # FIXME: insert proper C++ library support 13892 ld_shlibs_CXX=no 13893 fi 13894 ;; 13895 esac 13896 ;; 13897 13898 psos*) 13899 # FIXME: insert proper C++ library support 13900 ld_shlibs_CXX=no 13901 ;; 13902 13903 sunos4*) 13904 case $cc_basename in 13905 CC*) 13906 # Sun C++ 4.x 13907 # FIXME: insert proper C++ library support 13908 ld_shlibs_CXX=no 13909 ;; 13910 lcc*) 13911 # Lucid 13912 # FIXME: insert proper C++ library support 13913 ld_shlibs_CXX=no 13914 ;; 13915 *) 13916 # FIXME: insert proper C++ library support 13917 ld_shlibs_CXX=no 13918 ;; 13919 esac 13920 ;; 13921 13922 solaris*) 13923 case $cc_basename in 13924 CC* | sunCC*) 13925 # Sun C++ 4.2, 5.x and Centerline C++ 13926 archive_cmds_need_lc_CXX=yes 13927 no_undefined_flag_CXX=' -zdefs' 13928 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13929 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13930 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13931 13932 hardcode_libdir_flag_spec_CXX='-R$libdir' 13933 hardcode_shlibpath_var_CXX=no 13934 case $host_os in 13935 solaris2.[0-5] | solaris2.[0-5].*) ;; 13936 *) 13937 # The compiler driver will combine and reorder linker options, 13938 # but understands '-z linker_flag'. 13939 # Supported since Solaris 2.6 (maybe 2.5.1?) 13940 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13941 ;; 13942 esac 13943 link_all_deplibs_CXX=yes 13944 13945 output_verbose_link_cmd='func_echo_all' 13946 13947 # Archives containing C++ object files must be created using 13948 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13949 # necessary to make sure instantiated templates are included 13950 # in the archive. 13951 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13952 ;; 13953 gcx*) 13954 # Green Hills C++ Compiler 13955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13956 13957 # The C++ compiler must be used to create the archive. 13958 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13959 ;; 13960 *) 13961 # GNU C++ compiler with Solaris linker 13962 if test yes,no = "$GXX,$with_gnu_ld"; then 13963 no_undefined_flag_CXX=' $wl-z ${wl}defs' 13964 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13965 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13966 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13967 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13968 13969 # Commands to make compiler produce verbose output that lists 13970 # what "hidden" libraries, object files and flags are used when 13971 # linking a shared library. 13972 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13973 else 13974 # g++ 2.7 appears to require '-G' NOT '-shared' on this 13975 # platform. 13976 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13977 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13978 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13979 13980 # Commands to make compiler produce verbose output that lists 13981 # what "hidden" libraries, object files and flags are used when 13982 # linking a shared library. 13983 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13984 fi 13985 13986 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 13987 case $host_os in 13988 solaris2.[0-5] | solaris2.[0-5].*) ;; 13989 *) 13990 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13991 ;; 13992 esac 13993 fi 13994 ;; 13995 esac 13996 ;; 13997 13998 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13999 no_undefined_flag_CXX='$wl-z,text' 14000 archive_cmds_need_lc_CXX=no 14001 hardcode_shlibpath_var_CXX=no 14002 runpath_var='LD_RUN_PATH' 14003 14004 case $cc_basename in 14005 CC*) 14006 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14007 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14008 ;; 14009 *) 14010 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14011 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14012 ;; 14013 esac 14014 ;; 14015 14016 sysv5* | sco3.2v5* | sco5v6*) 14017 # Note: We CANNOT use -z defs as we might desire, because we do not 14018 # link with -lc, and that would cause any symbols used from libc to 14019 # always be unresolved, which means just about no library would 14020 # ever link correctly. If we're not using GNU ld we use -z text 14021 # though, which does catch some bad symbols but isn't as heavy-handed 14022 # as -z defs. 14023 no_undefined_flag_CXX='$wl-z,text' 14024 allow_undefined_flag_CXX='$wl-z,nodefs' 14025 archive_cmds_need_lc_CXX=no 14026 hardcode_shlibpath_var_CXX=no 14027 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14028 hardcode_libdir_separator_CXX=':' 14029 link_all_deplibs_CXX=yes 14030 export_dynamic_flag_spec_CXX='$wl-Bexport' 14031 runpath_var='LD_RUN_PATH' 14032 14033 case $cc_basename in 14034 CC*) 14035 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14036 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14037 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14038 '"$old_archive_cmds_CXX" 14039 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14040 '"$reload_cmds_CXX" 14041 ;; 14042 *) 14043 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14044 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14045 ;; 14046 esac 14047 ;; 14048 14049 tandem*) 14050 case $cc_basename in 14051 NCC*) 14052 # NonStop-UX NCC 3.20 14053 # FIXME: insert proper C++ library support 14054 ld_shlibs_CXX=no 14055 ;; 14056 *) 14057 # FIXME: insert proper C++ library support 14058 ld_shlibs_CXX=no 14059 ;; 14060 esac 14061 ;; 14062 14063 vxworks*) 14064 # FIXME: insert proper C++ library support 14065 ld_shlibs_CXX=no 14066 ;; 14067 14068 *) 14069 # FIXME: insert proper C++ library support 14070 ld_shlibs_CXX=no 14071 ;; 14072 esac 14073 14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14075 $as_echo "$ld_shlibs_CXX" >&6; } 14076 test no = "$ld_shlibs_CXX" && can_build_shared=no 14077 14078 GCC_CXX=$GXX 14079 LD_CXX=$LD 14080 14081 ## CAVEAT EMPTOR: 14082 ## There is no encapsulation within the following macros, do not change 14083 ## the running order or otherwise move them around unless you know exactly 14084 ## what you are doing... 14085 # Dependencies to place before and after the object being linked: 14086 predep_objects_CXX= 14087 postdep_objects_CXX= 14088 predeps_CXX= 14089 postdeps_CXX= 14090 compiler_lib_search_path_CXX= 14091 14092 cat > conftest.$ac_ext <<_LT_EOF 14093 class Foo 14094 { 14095 public: 14096 Foo (void) { a = 0; } 14097 private: 14098 int a; 14099 }; 14100 _LT_EOF 14101 14102 14103 _lt_libdeps_save_CFLAGS=$CFLAGS 14104 case "$CC $CFLAGS " in #( 14105 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14106 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14107 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14108 esac 14109 14110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14111 (eval $ac_compile) 2>&5 14112 ac_status=$? 14113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14114 test $ac_status = 0; }; then 14115 # Parse the compiler output and extract the necessary 14116 # objects, libraries and library flags. 14117 14118 # Sentinel used to keep track of whether or not we are before 14119 # the conftest object file. 14120 pre_test_object_deps_done=no 14121 14122 for p in `eval "$output_verbose_link_cmd"`; do 14123 case $prev$p in 14124 14125 -L* | -R* | -l*) 14126 # Some compilers place space between "-{L,R}" and the path. 14127 # Remove the space. 14128 if test x-L = "$p" || 14129 test x-R = "$p"; then 14130 prev=$p 14131 continue 14132 fi 14133 14134 # Expand the sysroot to ease extracting the directories later. 14135 if test -z "$prev"; then 14136 case $p in 14137 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14138 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14139 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14140 esac 14141 fi 14142 case $p in 14143 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14144 esac 14145 if test no = "$pre_test_object_deps_done"; then 14146 case $prev in 14147 -L | -R) 14148 # Internal compiler library paths should come after those 14149 # provided the user. The postdeps already come after the 14150 # user supplied libs so there is no need to process them. 14151 if test -z "$compiler_lib_search_path_CXX"; then 14152 compiler_lib_search_path_CXX=$prev$p 14153 else 14154 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14155 fi 14156 ;; 14157 # The "-l" case would never come before the object being 14158 # linked, so don't bother handling this case. 14159 esac 14160 else 14161 if test -z "$postdeps_CXX"; then 14162 postdeps_CXX=$prev$p 14163 else 14164 postdeps_CXX="${postdeps_CXX} $prev$p" 14165 fi 14166 fi 14167 prev= 14168 ;; 14169 14170 *.lto.$objext) ;; # Ignore GCC LTO objects 14171 *.$objext) 14172 # This assumes that the test object file only shows up 14173 # once in the compiler output. 14174 if test "$p" = "conftest.$objext"; then 14175 pre_test_object_deps_done=yes 14176 continue 14177 fi 14178 14179 if test no = "$pre_test_object_deps_done"; then 14180 if test -z "$predep_objects_CXX"; then 14181 predep_objects_CXX=$p 14182 else 14183 predep_objects_CXX="$predep_objects_CXX $p" 14184 fi 14185 else 14186 if test -z "$postdep_objects_CXX"; then 14187 postdep_objects_CXX=$p 14188 else 14189 postdep_objects_CXX="$postdep_objects_CXX $p" 14190 fi 14191 fi 14192 ;; 14193 14194 *) ;; # Ignore the rest. 14195 14196 esac 14197 done 14198 14199 # Clean up. 14200 rm -f a.out a.exe 14201 else 14202 echo "libtool.m4: error: problem compiling CXX test program" 14203 fi 14204 14205 $RM -f confest.$objext 14206 CFLAGS=$_lt_libdeps_save_CFLAGS 14207 14208 # PORTME: override above test on systems where it is broken 14209 case $host_os in 14210 interix[3-9]*) 14211 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14212 # hack all around it, let's just trust "g++" to DTRT. 14213 predep_objects_CXX= 14214 postdep_objects_CXX= 14215 postdeps_CXX= 14216 ;; 14217 esac 14218 14219 14220 case " $postdeps_CXX " in 14221 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 14222 esac 14223 compiler_lib_search_dirs_CXX= 14224 if test -n "${compiler_lib_search_path_CXX}"; then 14225 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14226 fi 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 lt_prog_compiler_wl_CXX= 14259 lt_prog_compiler_pic_CXX= 14260 lt_prog_compiler_static_CXX= 14261 14262 14263 # C++ specific cases for pic, static, wl, etc. 14264 if test yes = "$GXX"; then 14265 lt_prog_compiler_wl_CXX='-Wl,' 14266 lt_prog_compiler_static_CXX='-static' 14267 14268 case $host_os in 14269 aix*) 14270 # All AIX code is PIC. 14271 if test ia64 = "$host_cpu"; then 14272 # AIX 5 now supports IA64 processor 14273 lt_prog_compiler_static_CXX='-Bstatic' 14274 fi 14275 lt_prog_compiler_pic_CXX='-fPIC' 14276 ;; 14277 14278 amigaos*) 14279 case $host_cpu in 14280 powerpc) 14281 # see comment about AmigaOS4 .so support 14282 lt_prog_compiler_pic_CXX='-fPIC' 14283 ;; 14284 m68k) 14285 # FIXME: we need at least 68020 code to build shared libraries, but 14286 # adding the '-m68020' flag to GCC prevents building anything better, 14287 # like '-m68040'. 14288 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14289 ;; 14290 esac 14291 ;; 14292 14293 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14294 # PIC is the default for these OSes. 14295 ;; 14296 mingw* | cygwin* | os2* | pw32* | cegcc*) 14297 # This hack is so that the source file can tell whether it is being 14298 # built for inclusion in a dll (and should export symbols for example). 14299 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14300 # (--disable-auto-import) libraries 14301 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14302 case $host_os in 14303 os2*) 14304 lt_prog_compiler_static_CXX='$wl-static' 14305 ;; 14306 esac 14307 ;; 14308 darwin* | rhapsody*) 14309 # PIC is the default on this platform 14310 # Common symbols not allowed in MH_DYLIB files 14311 lt_prog_compiler_pic_CXX='-fno-common' 14312 ;; 14313 *djgpp*) 14314 # DJGPP does not support shared libraries at all 14315 lt_prog_compiler_pic_CXX= 14316 ;; 14317 haiku*) 14318 # PIC is the default for Haiku. 14319 # The "-static" flag exists, but is broken. 14320 lt_prog_compiler_static_CXX= 14321 ;; 14322 interix[3-9]*) 14323 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14324 # Instead, we relocate shared libraries at runtime. 14325 ;; 14326 sysv4*MP*) 14327 if test -d /usr/nec; then 14328 lt_prog_compiler_pic_CXX=-Kconform_pic 14329 fi 14330 ;; 14331 hpux*) 14332 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14333 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14334 # sets the default TLS model and affects inlining. 14335 case $host_cpu in 14336 hppa*64*) 14337 ;; 14338 *) 14339 lt_prog_compiler_pic_CXX='-fPIC' 14340 ;; 14341 esac 14342 ;; 14343 *qnx* | *nto*) 14344 # QNX uses GNU C++, but need to define -shared option too, otherwise 14345 # it will coredump. 14346 lt_prog_compiler_pic_CXX='-fPIC -shared' 14347 ;; 14348 *) 14349 lt_prog_compiler_pic_CXX='-fPIC' 14350 ;; 14351 esac 14352 else 14353 case $host_os in 14354 aix[4-9]*) 14355 # All AIX code is PIC. 14356 if test ia64 = "$host_cpu"; then 14357 # AIX 5 now supports IA64 processor 14358 lt_prog_compiler_static_CXX='-Bstatic' 14359 else 14360 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14361 fi 14362 ;; 14363 chorus*) 14364 case $cc_basename in 14365 cxch68*) 14366 # Green Hills C++ Compiler 14367 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 14368 ;; 14369 esac 14370 ;; 14371 mingw* | cygwin* | os2* | pw32* | cegcc*) 14372 # This hack is so that the source file can tell whether it is being 14373 # built for inclusion in a dll (and should export symbols for example). 14374 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14375 ;; 14376 dgux*) 14377 case $cc_basename in 14378 ec++*) 14379 lt_prog_compiler_pic_CXX='-KPIC' 14380 ;; 14381 ghcx*) 14382 # Green Hills C++ Compiler 14383 lt_prog_compiler_pic_CXX='-pic' 14384 ;; 14385 *) 14386 ;; 14387 esac 14388 ;; 14389 freebsd* | dragonfly*) 14390 # FreeBSD uses GNU C++ 14391 ;; 14392 hpux9* | hpux10* | hpux11*) 14393 case $cc_basename in 14394 CC*) 14395 lt_prog_compiler_wl_CXX='-Wl,' 14396 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14397 if test ia64 != "$host_cpu"; then 14398 lt_prog_compiler_pic_CXX='+Z' 14399 fi 14400 ;; 14401 aCC*) 14402 lt_prog_compiler_wl_CXX='-Wl,' 14403 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14404 case $host_cpu in 14405 hppa*64*|ia64*) 14406 # +Z the default 14407 ;; 14408 *) 14409 lt_prog_compiler_pic_CXX='+Z' 14410 ;; 14411 esac 14412 ;; 14413 *) 14414 ;; 14415 esac 14416 ;; 14417 interix*) 14418 # This is c89, which is MS Visual C++ (no shared libs) 14419 # Anyone wants to do a port? 14420 ;; 14421 irix5* | irix6* | nonstopux*) 14422 case $cc_basename in 14423 CC*) 14424 lt_prog_compiler_wl_CXX='-Wl,' 14425 lt_prog_compiler_static_CXX='-non_shared' 14426 # CC pic flag -KPIC is the default. 14427 ;; 14428 *) 14429 ;; 14430 esac 14431 ;; 14432 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14433 case $cc_basename in 14434 KCC*) 14435 # KAI C++ Compiler 14436 lt_prog_compiler_wl_CXX='--backend -Wl,' 14437 lt_prog_compiler_pic_CXX='-fPIC' 14438 ;; 14439 ecpc* ) 14440 # old Intel C++ for x86_64, which still supported -KPIC. 14441 lt_prog_compiler_wl_CXX='-Wl,' 14442 lt_prog_compiler_pic_CXX='-KPIC' 14443 lt_prog_compiler_static_CXX='-static' 14444 ;; 14445 icpc* ) 14446 # Intel C++, used to be incompatible with GCC. 14447 # ICC 10 doesn't accept -KPIC any more. 14448 lt_prog_compiler_wl_CXX='-Wl,' 14449 lt_prog_compiler_pic_CXX='-fPIC' 14450 lt_prog_compiler_static_CXX='-static' 14451 ;; 14452 pgCC* | pgcpp*) 14453 # Portland Group C++ compiler 14454 lt_prog_compiler_wl_CXX='-Wl,' 14455 lt_prog_compiler_pic_CXX='-fpic' 14456 lt_prog_compiler_static_CXX='-Bstatic' 14457 ;; 14458 cxx*) 14459 # Compaq C++ 14460 # Make sure the PIC flag is empty. It appears that all Alpha 14461 # Linux and Compaq Tru64 Unix objects are PIC. 14462 lt_prog_compiler_pic_CXX= 14463 lt_prog_compiler_static_CXX='-non_shared' 14464 ;; 14465 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14466 # IBM XL 8.0, 9.0 on PPC and BlueGene 14467 lt_prog_compiler_wl_CXX='-Wl,' 14468 lt_prog_compiler_pic_CXX='-qpic' 14469 lt_prog_compiler_static_CXX='-qstaticlink' 14470 ;; 14471 *) 14472 case `$CC -V 2>&1 | sed 5q` in 14473 *Sun\ C*) 14474 # Sun C++ 5.9 14475 lt_prog_compiler_pic_CXX='-KPIC' 14476 lt_prog_compiler_static_CXX='-Bstatic' 14477 lt_prog_compiler_wl_CXX='-Qoption ld ' 14478 ;; 14479 esac 14480 ;; 14481 esac 14482 ;; 14483 lynxos*) 14484 ;; 14485 m88k*) 14486 ;; 14487 mvs*) 14488 case $cc_basename in 14489 cxx*) 14490 lt_prog_compiler_pic_CXX='-W c,exportall' 14491 ;; 14492 *) 14493 ;; 14494 esac 14495 ;; 14496 netbsd* | netbsdelf*-gnu) 14497 ;; 14498 *qnx* | *nto*) 14499 # QNX uses GNU C++, but need to define -shared option too, otherwise 14500 # it will coredump. 14501 lt_prog_compiler_pic_CXX='-fPIC -shared' 14502 ;; 14503 osf3* | osf4* | osf5*) 14504 case $cc_basename in 14505 KCC*) 14506 lt_prog_compiler_wl_CXX='--backend -Wl,' 14507 ;; 14508 RCC*) 14509 # Rational C++ 2.4.1 14510 lt_prog_compiler_pic_CXX='-pic' 14511 ;; 14512 cxx*) 14513 # Digital/Compaq C++ 14514 lt_prog_compiler_wl_CXX='-Wl,' 14515 # Make sure the PIC flag is empty. It appears that all Alpha 14516 # Linux and Compaq Tru64 Unix objects are PIC. 14517 lt_prog_compiler_pic_CXX= 14518 lt_prog_compiler_static_CXX='-non_shared' 14519 ;; 14520 *) 14521 ;; 14522 esac 14523 ;; 14524 psos*) 14525 ;; 14526 solaris*) 14527 case $cc_basename in 14528 CC* | sunCC*) 14529 # Sun C++ 4.2, 5.x and Centerline C++ 14530 lt_prog_compiler_pic_CXX='-KPIC' 14531 lt_prog_compiler_static_CXX='-Bstatic' 14532 lt_prog_compiler_wl_CXX='-Qoption ld ' 14533 ;; 14534 gcx*) 14535 # Green Hills C++ Compiler 14536 lt_prog_compiler_pic_CXX='-PIC' 14537 ;; 14538 *) 14539 ;; 14540 esac 14541 ;; 14542 sunos4*) 14543 case $cc_basename in 14544 CC*) 14545 # Sun C++ 4.x 14546 lt_prog_compiler_pic_CXX='-pic' 14547 lt_prog_compiler_static_CXX='-Bstatic' 14548 ;; 14549 lcc*) 14550 # Lucid 14551 lt_prog_compiler_pic_CXX='-pic' 14552 ;; 14553 *) 14554 ;; 14555 esac 14556 ;; 14557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14558 case $cc_basename in 14559 CC*) 14560 lt_prog_compiler_wl_CXX='-Wl,' 14561 lt_prog_compiler_pic_CXX='-KPIC' 14562 lt_prog_compiler_static_CXX='-Bstatic' 14563 ;; 14564 esac 14565 ;; 14566 tandem*) 14567 case $cc_basename in 14568 NCC*) 14569 # NonStop-UX NCC 3.20 14570 lt_prog_compiler_pic_CXX='-KPIC' 14571 ;; 14572 *) 14573 ;; 14574 esac 14575 ;; 14576 vxworks*) 14577 ;; 14578 *) 14579 lt_prog_compiler_can_build_shared_CXX=no 14580 ;; 14581 esac 14582 fi 14583 14584 case $host_os in 14585 # For platforms that do not support PIC, -DPIC is meaningless: 14586 *djgpp*) 14587 lt_prog_compiler_pic_CXX= 14588 ;; 14589 *) 14590 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14591 ;; 14592 esac 14593 14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14595 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14596 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14597 $as_echo_n "(cached) " >&6 14598 else 14599 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14600 fi 14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14602 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14603 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14604 14605 # 14606 # Check to make sure the PIC flag actually works. 14607 # 14608 if test -n "$lt_prog_compiler_pic_CXX"; then 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14610 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14611 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14612 $as_echo_n "(cached) " >&6 14613 else 14614 lt_cv_prog_compiler_pic_works_CXX=no 14615 ac_outfile=conftest.$ac_objext 14616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14617 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14618 # Insert the option either (1) after the last *FLAGS variable, or 14619 # (2) before a word containing "conftest.", or (3) at the end. 14620 # Note that $ac_compile itself does not contain backslashes and begins 14621 # with a dollar sign (not a hyphen), so the echo should work correctly. 14622 # The option is referenced via a variable to avoid confusing sed. 14623 lt_compile=`echo "$ac_compile" | $SED \ 14624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14626 -e 's:$: $lt_compiler_flag:'` 14627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14628 (eval "$lt_compile" 2>conftest.err) 14629 ac_status=$? 14630 cat conftest.err >&5 14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14632 if (exit $ac_status) && test -s "$ac_outfile"; then 14633 # The compiler can only warn and ignore the option if not recognized 14634 # So say no if there are warnings other than the usual output. 14635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14638 lt_cv_prog_compiler_pic_works_CXX=yes 14639 fi 14640 fi 14641 $RM conftest* 14642 14643 fi 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14645 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14646 14647 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14648 case $lt_prog_compiler_pic_CXX in 14649 "" | " "*) ;; 14650 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14651 esac 14652 else 14653 lt_prog_compiler_pic_CXX= 14654 lt_prog_compiler_can_build_shared_CXX=no 14655 fi 14656 14657 fi 14658 14659 14660 14661 14662 14663 # 14664 # Check to make sure the static flag actually works. 14665 # 14666 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14668 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14669 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14670 $as_echo_n "(cached) " >&6 14671 else 14672 lt_cv_prog_compiler_static_works_CXX=no 14673 save_LDFLAGS=$LDFLAGS 14674 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14675 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14676 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14677 # The linker can only warn and ignore the option if not recognized 14678 # So say no if there are warnings 14679 if test -s conftest.err; then 14680 # Append any errors to the config.log. 14681 cat conftest.err 1>&5 14682 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14684 if diff conftest.exp conftest.er2 >/dev/null; then 14685 lt_cv_prog_compiler_static_works_CXX=yes 14686 fi 14687 else 14688 lt_cv_prog_compiler_static_works_CXX=yes 14689 fi 14690 fi 14691 $RM -r conftest* 14692 LDFLAGS=$save_LDFLAGS 14693 14694 fi 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14696 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14697 14698 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14699 : 14700 else 14701 lt_prog_compiler_static_CXX= 14702 fi 14703 14704 14705 14706 14707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14709 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14710 $as_echo_n "(cached) " >&6 14711 else 14712 lt_cv_prog_compiler_c_o_CXX=no 14713 $RM -r conftest 2>/dev/null 14714 mkdir conftest 14715 cd conftest 14716 mkdir out 14717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14718 14719 lt_compiler_flag="-o out/conftest2.$ac_objext" 14720 # Insert the option either (1) after the last *FLAGS variable, or 14721 # (2) before a word containing "conftest.", or (3) at the end. 14722 # Note that $ac_compile itself does not contain backslashes and begins 14723 # with a dollar sign (not a hyphen), so the echo should work correctly. 14724 lt_compile=`echo "$ac_compile" | $SED \ 14725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14727 -e 's:$: $lt_compiler_flag:'` 14728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14729 (eval "$lt_compile" 2>out/conftest.err) 14730 ac_status=$? 14731 cat out/conftest.err >&5 14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14733 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14734 then 14735 # The compiler can only warn and ignore the option if not recognized 14736 # So say no if there are warnings 14737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14738 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14739 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14740 lt_cv_prog_compiler_c_o_CXX=yes 14741 fi 14742 fi 14743 chmod u+w . 2>&5 14744 $RM conftest* 14745 # SGI C++ compiler will create directory out/ii_files/ for 14746 # template instantiation 14747 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14748 $RM out/* && rmdir out 14749 cd .. 14750 $RM -r conftest 14751 $RM conftest* 14752 14753 fi 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14755 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14756 14757 14758 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14760 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14761 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14762 $as_echo_n "(cached) " >&6 14763 else 14764 lt_cv_prog_compiler_c_o_CXX=no 14765 $RM -r conftest 2>/dev/null 14766 mkdir conftest 14767 cd conftest 14768 mkdir out 14769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14770 14771 lt_compiler_flag="-o out/conftest2.$ac_objext" 14772 # Insert the option either (1) after the last *FLAGS variable, or 14773 # (2) before a word containing "conftest.", or (3) at the end. 14774 # Note that $ac_compile itself does not contain backslashes and begins 14775 # with a dollar sign (not a hyphen), so the echo should work correctly. 14776 lt_compile=`echo "$ac_compile" | $SED \ 14777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14779 -e 's:$: $lt_compiler_flag:'` 14780 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14781 (eval "$lt_compile" 2>out/conftest.err) 14782 ac_status=$? 14783 cat out/conftest.err >&5 14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14785 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14786 then 14787 # The compiler can only warn and ignore the option if not recognized 14788 # So say no if there are warnings 14789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14790 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14791 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14792 lt_cv_prog_compiler_c_o_CXX=yes 14793 fi 14794 fi 14795 chmod u+w . 2>&5 14796 $RM conftest* 14797 # SGI C++ compiler will create directory out/ii_files/ for 14798 # template instantiation 14799 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14800 $RM out/* && rmdir out 14801 cd .. 14802 $RM -r conftest 14803 $RM conftest* 14804 14805 fi 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14807 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14808 14809 14810 14811 14812 hard_links=nottested 14813 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14814 # do not overwrite the value of need_locks provided by the user 14815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14816 $as_echo_n "checking if we can lock with hard links... " >&6; } 14817 hard_links=yes 14818 $RM conftest* 14819 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14820 touch conftest.a 14821 ln conftest.a conftest.b 2>&5 || hard_links=no 14822 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14824 $as_echo "$hard_links" >&6; } 14825 if test no = "$hard_links"; then 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14827 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14828 need_locks=warn 14829 fi 14830 else 14831 need_locks=no 14832 fi 14833 14834 14835 14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14837 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14838 14839 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14840 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14841 case $host_os in 14842 aix[4-9]*) 14843 # If we're using GNU nm, then we don't want the "-C" option. 14844 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14845 # Without the "-l" option, or with the "-B" option, AIX nm treats 14846 # weak defined symbols like other global defined symbols, whereas 14847 # GNU nm marks them as "W". 14848 # While the 'weak' keyword is ignored in the Export File, we need 14849 # it in the Import File for the 'aix-soname' feature, so we have 14850 # to replace the "-B" option with "-P" for AIX nm. 14851 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14852 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 14853 else 14854 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 14855 fi 14856 ;; 14857 pw32*) 14858 export_symbols_cmds_CXX=$ltdll_cmds 14859 ;; 14860 cygwin* | mingw* | cegcc*) 14861 case $cc_basename in 14862 cl*) 14863 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14864 ;; 14865 *) 14866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14867 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14868 ;; 14869 esac 14870 ;; 14871 linux* | k*bsd*-gnu | gnu*) 14872 link_all_deplibs_CXX=no 14873 ;; 14874 *) 14875 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14876 ;; 14877 esac 14878 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14880 $as_echo "$ld_shlibs_CXX" >&6; } 14881 test no = "$ld_shlibs_CXX" && can_build_shared=no 14882 14883 with_gnu_ld_CXX=$with_gnu_ld 14884 14885 14886 14887 14888 14889 14890 # 14891 # Do we need to explicitly link libc? 14892 # 14893 case "x$archive_cmds_need_lc_CXX" in 14894 x|xyes) 14895 # Assume -lc should be added 14896 archive_cmds_need_lc_CXX=yes 14897 14898 if test yes,yes = "$GCC,$enable_shared"; then 14899 case $archive_cmds_CXX in 14900 *'~'*) 14901 # FIXME: we may have to deal with multi-command sequences. 14902 ;; 14903 '$CC '*) 14904 # Test whether the compiler implicitly links with -lc since on some 14905 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14906 # to ld, don't add -lc before -lgcc. 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14908 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14909 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14910 $as_echo_n "(cached) " >&6 14911 else 14912 $RM conftest* 14913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14914 14915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14916 (eval $ac_compile) 2>&5 14917 ac_status=$? 14918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14919 test $ac_status = 0; } 2>conftest.err; then 14920 soname=conftest 14921 lib=conftest 14922 libobjs=conftest.$ac_objext 14923 deplibs= 14924 wl=$lt_prog_compiler_wl_CXX 14925 pic_flag=$lt_prog_compiler_pic_CXX 14926 compiler_flags=-v 14927 linker_flags=-v 14928 verstring= 14929 output_objdir=. 14930 libname=conftest 14931 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14932 allow_undefined_flag_CXX= 14933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14934 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14935 ac_status=$? 14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14937 test $ac_status = 0; } 14938 then 14939 lt_cv_archive_cmds_need_lc_CXX=no 14940 else 14941 lt_cv_archive_cmds_need_lc_CXX=yes 14942 fi 14943 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14944 else 14945 cat conftest.err 1>&5 14946 fi 14947 $RM conftest* 14948 14949 fi 14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14951 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14952 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14953 ;; 14954 esac 14955 fi 14956 ;; 14957 esac 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15021 $as_echo_n "checking dynamic linker characteristics... " >&6; } 15022 15023 library_names_spec= 15024 libname_spec='lib$name' 15025 soname_spec= 15026 shrext_cmds=.so 15027 postinstall_cmds= 15028 postuninstall_cmds= 15029 finish_cmds= 15030 finish_eval= 15031 shlibpath_var= 15032 shlibpath_overrides_runpath=unknown 15033 version_type=none 15034 dynamic_linker="$host_os ld.so" 15035 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15036 need_lib_prefix=unknown 15037 hardcode_into_libs=no 15038 15039 # when you set need_version to no, make sure it does not cause -set_version 15040 # flags to be left without arguments 15041 need_version=unknown 15042 15043 15044 15045 case $host_os in 15046 aix3*) 15047 version_type=linux # correct to gnu/linux during the next big refactor 15048 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15049 shlibpath_var=LIBPATH 15050 15051 # AIX 3 has no versioning support, so we append a major version to the name. 15052 soname_spec='$libname$release$shared_ext$major' 15053 ;; 15054 15055 aix[4-9]*) 15056 version_type=linux # correct to gnu/linux during the next big refactor 15057 need_lib_prefix=no 15058 need_version=no 15059 hardcode_into_libs=yes 15060 if test ia64 = "$host_cpu"; then 15061 # AIX 5 supports IA64 15062 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15063 shlibpath_var=LD_LIBRARY_PATH 15064 else 15065 # With GCC up to 2.95.x, collect2 would create an import file 15066 # for dependence libraries. The import file would start with 15067 # the line '#! .'. This would cause the generated library to 15068 # depend on '.', always an invalid library. This was fixed in 15069 # development snapshots of GCC prior to 3.0. 15070 case $host_os in 15071 aix4 | aix4.[01] | aix4.[01].*) 15072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15073 echo ' yes ' 15074 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15075 : 15076 else 15077 can_build_shared=no 15078 fi 15079 ;; 15080 esac 15081 # Using Import Files as archive members, it is possible to support 15082 # filename-based versioning of shared library archives on AIX. While 15083 # this would work for both with and without runtime linking, it will 15084 # prevent static linking of such archives. So we do filename-based 15085 # shared library versioning with .so extension only, which is used 15086 # when both runtime linking and shared linking is enabled. 15087 # Unfortunately, runtime linking may impact performance, so we do 15088 # not want this to be the default eventually. Also, we use the 15089 # versioned .so libs for executables only if there is the -brtl 15090 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15091 # To allow for filename-based versioning support, we need to create 15092 # libNAME.so.V as an archive file, containing: 15093 # *) an Import File, referring to the versioned filename of the 15094 # archive as well as the shared archive member, telling the 15095 # bitwidth (32 or 64) of that shared object, and providing the 15096 # list of exported symbols of that shared object, eventually 15097 # decorated with the 'weak' keyword 15098 # *) the shared object with the F_LOADONLY flag set, to really avoid 15099 # it being seen by the linker. 15100 # At run time we better use the real file rather than another symlink, 15101 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15102 15103 case $with_aix_soname,$aix_use_runtimelinking in 15104 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15105 # soname into executable. Probably we can add versioning support to 15106 # collect2, so additional links can be useful in future. 15107 aix,yes) # traditional libtool 15108 dynamic_linker='AIX unversionable lib.so' 15109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15110 # instead of lib<name>.a to let people know that these are not 15111 # typical AIX shared libraries. 15112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15113 ;; 15114 aix,no) # traditional AIX only 15115 dynamic_linker='AIX lib.a(lib.so.V)' 15116 # We preserve .a as extension for shared libraries through AIX4.2 15117 # and later when we are not doing run time linking. 15118 library_names_spec='$libname$release.a $libname.a' 15119 soname_spec='$libname$release$shared_ext$major' 15120 ;; 15121 svr4,*) # full svr4 only 15122 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15123 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15124 # We do not specify a path in Import Files, so LIBPATH fires. 15125 shlibpath_overrides_runpath=yes 15126 ;; 15127 *,yes) # both, prefer svr4 15128 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15129 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15130 # unpreferred sharedlib libNAME.a needs extra handling 15131 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15132 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15133 # We do not specify a path in Import Files, so LIBPATH fires. 15134 shlibpath_overrides_runpath=yes 15135 ;; 15136 *,no) # both, prefer aix 15137 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15138 library_names_spec='$libname$release.a $libname.a' 15139 soname_spec='$libname$release$shared_ext$major' 15140 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15141 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15142 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15143 ;; 15144 esac 15145 shlibpath_var=LIBPATH 15146 fi 15147 ;; 15148 15149 amigaos*) 15150 case $host_cpu in 15151 powerpc) 15152 # Since July 2007 AmigaOS4 officially supports .so libraries. 15153 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15155 ;; 15156 m68k) 15157 library_names_spec='$libname.ixlibrary $libname.a' 15158 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15159 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15160 ;; 15161 esac 15162 ;; 15163 15164 beos*) 15165 library_names_spec='$libname$shared_ext' 15166 dynamic_linker="$host_os ld.so" 15167 shlibpath_var=LIBRARY_PATH 15168 ;; 15169 15170 bsdi[45]*) 15171 version_type=linux # correct to gnu/linux during the next big refactor 15172 need_version=no 15173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15174 soname_spec='$libname$release$shared_ext$major' 15175 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15176 shlibpath_var=LD_LIBRARY_PATH 15177 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15178 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15179 # the default ld.so.conf also contains /usr/contrib/lib and 15180 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15181 # libtool to hard-code these into programs 15182 ;; 15183 15184 cygwin* | mingw* | pw32* | cegcc*) 15185 version_type=windows 15186 shrext_cmds=.dll 15187 need_version=no 15188 need_lib_prefix=no 15189 15190 case $GCC,$cc_basename in 15191 yes,*) 15192 # gcc 15193 library_names_spec='$libname.dll.a' 15194 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15195 postinstall_cmds='base_file=`basename \$file`~ 15196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15197 dldir=$destdir/`dirname \$dlpath`~ 15198 test -d \$dldir || mkdir -p \$dldir~ 15199 $install_prog $dir/$dlname \$dldir/$dlname~ 15200 chmod a+x \$dldir/$dlname~ 15201 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15202 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15203 fi' 15204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15205 dlpath=$dir/\$dldll~ 15206 $RM \$dlpath' 15207 shlibpath_overrides_runpath=yes 15208 15209 case $host_os in 15210 cygwin*) 15211 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15212 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15213 15214 ;; 15215 mingw* | cegcc*) 15216 # MinGW DLLs use traditional 'lib' prefix 15217 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15218 ;; 15219 pw32*) 15220 # pw32 DLLs use 'pw' prefix rather than 'lib' 15221 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15222 ;; 15223 esac 15224 dynamic_linker='Win32 ld.exe' 15225 ;; 15226 15227 *,cl*) 15228 # Native MSVC 15229 libname_spec='$name' 15230 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15231 library_names_spec='$libname.dll.lib' 15232 15233 case $build_os in 15234 mingw*) 15235 sys_lib_search_path_spec= 15236 lt_save_ifs=$IFS 15237 IFS=';' 15238 for lt_path in $LIB 15239 do 15240 IFS=$lt_save_ifs 15241 # Let DOS variable expansion print the short 8.3 style file name. 15242 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15243 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15244 done 15245 IFS=$lt_save_ifs 15246 # Convert to MSYS style. 15247 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15248 ;; 15249 cygwin*) 15250 # Convert to unix form, then to dos form, then back to unix form 15251 # but this time dos style (no spaces!) so that the unix form looks 15252 # like /cygdrive/c/PROGRA~1:/cygdr... 15253 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15254 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15255 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15256 ;; 15257 *) 15258 sys_lib_search_path_spec=$LIB 15259 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15260 # It is most probably a Windows format PATH. 15261 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15262 else 15263 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15264 fi 15265 # FIXME: find the short name or the path components, as spaces are 15266 # common. (e.g. "Program Files" -> "PROGRA~1") 15267 ;; 15268 esac 15269 15270 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15271 postinstall_cmds='base_file=`basename \$file`~ 15272 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15273 dldir=$destdir/`dirname \$dlpath`~ 15274 test -d \$dldir || mkdir -p \$dldir~ 15275 $install_prog $dir/$dlname \$dldir/$dlname' 15276 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15277 dlpath=$dir/\$dldll~ 15278 $RM \$dlpath' 15279 shlibpath_overrides_runpath=yes 15280 dynamic_linker='Win32 link.exe' 15281 ;; 15282 15283 *) 15284 # Assume MSVC wrapper 15285 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15286 dynamic_linker='Win32 ld.exe' 15287 ;; 15288 esac 15289 # FIXME: first we should search . and the directory the executable is in 15290 shlibpath_var=PATH 15291 ;; 15292 15293 darwin* | rhapsody*) 15294 dynamic_linker="$host_os dyld" 15295 version_type=darwin 15296 need_lib_prefix=no 15297 need_version=no 15298 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15299 soname_spec='$libname$release$major$shared_ext' 15300 shlibpath_overrides_runpath=yes 15301 shlibpath_var=DYLD_LIBRARY_PATH 15302 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15303 15304 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15305 ;; 15306 15307 dgux*) 15308 version_type=linux # correct to gnu/linux during the next big refactor 15309 need_lib_prefix=no 15310 need_version=no 15311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15312 soname_spec='$libname$release$shared_ext$major' 15313 shlibpath_var=LD_LIBRARY_PATH 15314 ;; 15315 15316 freebsd* | dragonfly*) 15317 # DragonFly does not have aout. When/if they implement a new 15318 # versioning mechanism, adjust this. 15319 if test -x /usr/bin/objformat; then 15320 objformat=`/usr/bin/objformat` 15321 else 15322 case $host_os in 15323 freebsd[23].*) objformat=aout ;; 15324 *) objformat=elf ;; 15325 esac 15326 fi 15327 version_type=freebsd-$objformat 15328 case $version_type in 15329 freebsd-elf*) 15330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15331 soname_spec='$libname$release$shared_ext$major' 15332 need_version=no 15333 need_lib_prefix=no 15334 ;; 15335 freebsd-*) 15336 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15337 need_version=yes 15338 ;; 15339 esac 15340 shlibpath_var=LD_LIBRARY_PATH 15341 case $host_os in 15342 freebsd2.*) 15343 shlibpath_overrides_runpath=yes 15344 ;; 15345 freebsd3.[01]* | freebsdelf3.[01]*) 15346 shlibpath_overrides_runpath=yes 15347 hardcode_into_libs=yes 15348 ;; 15349 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15350 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15351 shlibpath_overrides_runpath=no 15352 hardcode_into_libs=yes 15353 ;; 15354 *) # from 4.6 on, and DragonFly 15355 shlibpath_overrides_runpath=yes 15356 hardcode_into_libs=yes 15357 ;; 15358 esac 15359 ;; 15360 15361 haiku*) 15362 version_type=linux # correct to gnu/linux during the next big refactor 15363 need_lib_prefix=no 15364 need_version=no 15365 dynamic_linker="$host_os runtime_loader" 15366 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15367 soname_spec='$libname$release$shared_ext$major' 15368 shlibpath_var=LIBRARY_PATH 15369 shlibpath_overrides_runpath=no 15370 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15371 hardcode_into_libs=yes 15372 ;; 15373 15374 hpux9* | hpux10* | hpux11*) 15375 # Give a soname corresponding to the major version so that dld.sl refuses to 15376 # link against other versions. 15377 version_type=sunos 15378 need_lib_prefix=no 15379 need_version=no 15380 case $host_cpu in 15381 ia64*) 15382 shrext_cmds='.so' 15383 hardcode_into_libs=yes 15384 dynamic_linker="$host_os dld.so" 15385 shlibpath_var=LD_LIBRARY_PATH 15386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15387 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15388 soname_spec='$libname$release$shared_ext$major' 15389 if test 32 = "$HPUX_IA64_MODE"; then 15390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15391 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15392 else 15393 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15394 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15395 fi 15396 ;; 15397 hppa*64*) 15398 shrext_cmds='.sl' 15399 hardcode_into_libs=yes 15400 dynamic_linker="$host_os dld.sl" 15401 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15402 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15404 soname_spec='$libname$release$shared_ext$major' 15405 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15406 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15407 ;; 15408 *) 15409 shrext_cmds='.sl' 15410 dynamic_linker="$host_os dld.sl" 15411 shlibpath_var=SHLIB_PATH 15412 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15414 soname_spec='$libname$release$shared_ext$major' 15415 ;; 15416 esac 15417 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15418 postinstall_cmds='chmod 555 $lib' 15419 # or fails outright, so override atomically: 15420 install_override_mode=555 15421 ;; 15422 15423 interix[3-9]*) 15424 version_type=linux # correct to gnu/linux during the next big refactor 15425 need_lib_prefix=no 15426 need_version=no 15427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15428 soname_spec='$libname$release$shared_ext$major' 15429 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15430 shlibpath_var=LD_LIBRARY_PATH 15431 shlibpath_overrides_runpath=no 15432 hardcode_into_libs=yes 15433 ;; 15434 15435 irix5* | irix6* | nonstopux*) 15436 case $host_os in 15437 nonstopux*) version_type=nonstopux ;; 15438 *) 15439 if test yes = "$lt_cv_prog_gnu_ld"; then 15440 version_type=linux # correct to gnu/linux during the next big refactor 15441 else 15442 version_type=irix 15443 fi ;; 15444 esac 15445 need_lib_prefix=no 15446 need_version=no 15447 soname_spec='$libname$release$shared_ext$major' 15448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15449 case $host_os in 15450 irix5* | nonstopux*) 15451 libsuff= shlibsuff= 15452 ;; 15453 *) 15454 case $LD in # libtool.m4 will add one of these switches to LD 15455 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15456 libsuff= shlibsuff= libmagic=32-bit;; 15457 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15458 libsuff=32 shlibsuff=N32 libmagic=N32;; 15459 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15460 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15461 *) libsuff= shlibsuff= libmagic=never-match;; 15462 esac 15463 ;; 15464 esac 15465 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15466 shlibpath_overrides_runpath=no 15467 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15468 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15469 hardcode_into_libs=yes 15470 ;; 15471 15472 # No shared lib support for Linux oldld, aout, or coff. 15473 linux*oldld* | linux*aout* | linux*coff*) 15474 dynamic_linker=no 15475 ;; 15476 15477 linux*android*) 15478 version_type=none # Android doesn't support versioned libraries. 15479 need_lib_prefix=no 15480 need_version=no 15481 library_names_spec='$libname$release$shared_ext' 15482 soname_spec='$libname$release$shared_ext' 15483 finish_cmds= 15484 shlibpath_var=LD_LIBRARY_PATH 15485 shlibpath_overrides_runpath=yes 15486 15487 # This implies no fast_install, which is unacceptable. 15488 # Some rework will be needed to allow for fast_install 15489 # before this can be enabled. 15490 hardcode_into_libs=yes 15491 15492 dynamic_linker='Android linker' 15493 # Don't embed -rpath directories since the linker doesn't support them. 15494 hardcode_libdir_flag_spec_CXX='-L$libdir' 15495 ;; 15496 15497 # This must be glibc/ELF. 15498 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15499 version_type=linux # correct to gnu/linux during the next big refactor 15500 need_lib_prefix=no 15501 need_version=no 15502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15503 soname_spec='$libname$release$shared_ext$major' 15504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15505 shlibpath_var=LD_LIBRARY_PATH 15506 shlibpath_overrides_runpath=no 15507 15508 # Some binutils ld are patched to set DT_RUNPATH 15509 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15510 $as_echo_n "(cached) " >&6 15511 else 15512 lt_cv_shlibpath_overrides_runpath=no 15513 save_LDFLAGS=$LDFLAGS 15514 save_libdir=$libdir 15515 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15516 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15518 /* end confdefs.h. */ 15519 15520 int 15521 main () 15522 { 15523 15524 ; 15525 return 0; 15526 } 15527 _ACEOF 15528 if ac_fn_cxx_try_link "$LINENO"; then : 15529 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15530 lt_cv_shlibpath_overrides_runpath=yes 15531 fi 15532 fi 15533 rm -f core conftest.err conftest.$ac_objext \ 15534 conftest$ac_exeext conftest.$ac_ext 15535 LDFLAGS=$save_LDFLAGS 15536 libdir=$save_libdir 15537 15538 fi 15539 15540 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15541 15542 # This implies no fast_install, which is unacceptable. 15543 # Some rework will be needed to allow for fast_install 15544 # before this can be enabled. 15545 hardcode_into_libs=yes 15546 15547 # Ideally, we could use ldconfig to report *all* directores which are 15548 # searched for libraries, however this is still not possible. Aside from not 15549 # being certain /sbin/ldconfig is available, command 15550 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15551 # even though it is searched at run-time. Try to do the best guess by 15552 # appending ld.so.conf contents (and includes) to the search path. 15553 if test -f /etc/ld.so.conf; then 15554 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;s/"//g;/^$/d' | tr '\n' ' '` 15555 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15556 fi 15557 15558 # We used to test for /lib/ld.so.1 and disable shared libraries on 15559 # powerpc, because MkLinux only supported shared libraries with the 15560 # GNU dynamic linker. Since this was broken with cross compilers, 15561 # most powerpc-linux boxes support dynamic linking these days and 15562 # people can always --disable-shared, the test was removed, and we 15563 # assume the GNU/Linux dynamic linker is in use. 15564 dynamic_linker='GNU/Linux ld.so' 15565 ;; 15566 15567 netbsdelf*-gnu) 15568 version_type=linux 15569 need_lib_prefix=no 15570 need_version=no 15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15572 soname_spec='${libname}${release}${shared_ext}$major' 15573 shlibpath_var=LD_LIBRARY_PATH 15574 shlibpath_overrides_runpath=no 15575 hardcode_into_libs=yes 15576 dynamic_linker='NetBSD ld.elf_so' 15577 ;; 15578 15579 netbsd*) 15580 version_type=sunos 15581 need_lib_prefix=no 15582 need_version=no 15583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15584 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15585 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15586 dynamic_linker='NetBSD (a.out) ld.so' 15587 else 15588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15589 soname_spec='$libname$release$shared_ext$major' 15590 dynamic_linker='NetBSD ld.elf_so' 15591 fi 15592 shlibpath_var=LD_LIBRARY_PATH 15593 shlibpath_overrides_runpath=yes 15594 hardcode_into_libs=yes 15595 ;; 15596 15597 newsos6) 15598 version_type=linux # correct to gnu/linux during the next big refactor 15599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15600 shlibpath_var=LD_LIBRARY_PATH 15601 shlibpath_overrides_runpath=yes 15602 ;; 15603 15604 *nto* | *qnx*) 15605 version_type=qnx 15606 need_lib_prefix=no 15607 need_version=no 15608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15609 soname_spec='$libname$release$shared_ext$major' 15610 shlibpath_var=LD_LIBRARY_PATH 15611 shlibpath_overrides_runpath=no 15612 hardcode_into_libs=yes 15613 dynamic_linker='ldqnx.so' 15614 ;; 15615 15616 openbsd* | bitrig*) 15617 version_type=sunos 15618 sys_lib_dlsearch_path_spec=/usr/lib 15619 need_lib_prefix=no 15620 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15621 need_version=no 15622 else 15623 need_version=yes 15624 fi 15625 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15626 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15627 shlibpath_var=LD_LIBRARY_PATH 15628 shlibpath_overrides_runpath=yes 15629 ;; 15630 15631 os2*) 15632 libname_spec='$name' 15633 version_type=windows 15634 shrext_cmds=.dll 15635 need_version=no 15636 need_lib_prefix=no 15637 # OS/2 can only load a DLL with a base name of 8 characters or less. 15638 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15639 v=$($ECHO $release$versuffix | tr -d .-); 15640 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15641 $ECHO $n$v`$shared_ext' 15642 library_names_spec='${libname}_dll.$libext' 15643 dynamic_linker='OS/2 ld.exe' 15644 shlibpath_var=BEGINLIBPATH 15645 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15647 postinstall_cmds='base_file=`basename \$file`~ 15648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15649 dldir=$destdir/`dirname \$dlpath`~ 15650 test -d \$dldir || mkdir -p \$dldir~ 15651 $install_prog $dir/$dlname \$dldir/$dlname~ 15652 chmod a+x \$dldir/$dlname~ 15653 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15654 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15655 fi' 15656 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15657 dlpath=$dir/\$dldll~ 15658 $RM \$dlpath' 15659 ;; 15660 15661 osf3* | osf4* | osf5*) 15662 version_type=osf 15663 need_lib_prefix=no 15664 need_version=no 15665 soname_spec='$libname$release$shared_ext$major' 15666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15667 shlibpath_var=LD_LIBRARY_PATH 15668 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15670 ;; 15671 15672 rdos*) 15673 dynamic_linker=no 15674 ;; 15675 15676 solaris*) 15677 version_type=linux # correct to gnu/linux during the next big refactor 15678 need_lib_prefix=no 15679 need_version=no 15680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15681 soname_spec='$libname$release$shared_ext$major' 15682 shlibpath_var=LD_LIBRARY_PATH 15683 shlibpath_overrides_runpath=yes 15684 hardcode_into_libs=yes 15685 # ldd complains unless libraries are executable 15686 postinstall_cmds='chmod +x $lib' 15687 ;; 15688 15689 sunos4*) 15690 version_type=sunos 15691 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15693 shlibpath_var=LD_LIBRARY_PATH 15694 shlibpath_overrides_runpath=yes 15695 if test yes = "$with_gnu_ld"; then 15696 need_lib_prefix=no 15697 fi 15698 need_version=yes 15699 ;; 15700 15701 sysv4 | sysv4.3*) 15702 version_type=linux # correct to gnu/linux during the next big refactor 15703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15704 soname_spec='$libname$release$shared_ext$major' 15705 shlibpath_var=LD_LIBRARY_PATH 15706 case $host_vendor in 15707 sni) 15708 shlibpath_overrides_runpath=no 15709 need_lib_prefix=no 15710 runpath_var=LD_RUN_PATH 15711 ;; 15712 siemens) 15713 need_lib_prefix=no 15714 ;; 15715 motorola) 15716 need_lib_prefix=no 15717 need_version=no 15718 shlibpath_overrides_runpath=no 15719 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15720 ;; 15721 esac 15722 ;; 15723 15724 sysv4*MP*) 15725 if test -d /usr/nec; then 15726 version_type=linux # correct to gnu/linux during the next big refactor 15727 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15728 soname_spec='$libname$shared_ext.$major' 15729 shlibpath_var=LD_LIBRARY_PATH 15730 fi 15731 ;; 15732 15733 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15734 version_type=sco 15735 need_lib_prefix=no 15736 need_version=no 15737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15738 soname_spec='$libname$release$shared_ext$major' 15739 shlibpath_var=LD_LIBRARY_PATH 15740 shlibpath_overrides_runpath=yes 15741 hardcode_into_libs=yes 15742 if test yes = "$with_gnu_ld"; then 15743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15744 else 15745 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15746 case $host_os in 15747 sco3.2v5*) 15748 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15749 ;; 15750 esac 15751 fi 15752 sys_lib_dlsearch_path_spec='/usr/lib' 15753 ;; 15754 15755 tpf*) 15756 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15757 version_type=linux # correct to gnu/linux during the next big refactor 15758 need_lib_prefix=no 15759 need_version=no 15760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15761 shlibpath_var=LD_LIBRARY_PATH 15762 shlibpath_overrides_runpath=no 15763 hardcode_into_libs=yes 15764 ;; 15765 15766 uts4*) 15767 version_type=linux # correct to gnu/linux during the next big refactor 15768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15769 soname_spec='$libname$release$shared_ext$major' 15770 shlibpath_var=LD_LIBRARY_PATH 15771 ;; 15772 15773 *) 15774 dynamic_linker=no 15775 ;; 15776 esac 15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15778 $as_echo "$dynamic_linker" >&6; } 15779 test no = "$dynamic_linker" && can_build_shared=no 15780 15781 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15782 if test yes = "$GCC"; then 15783 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15784 fi 15785 15786 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15787 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15788 fi 15789 15790 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15791 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15792 fi 15793 15794 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15795 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15796 15797 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15798 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15799 15800 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15801 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15843 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15844 hardcode_action_CXX= 15845 if test -n "$hardcode_libdir_flag_spec_CXX" || 15846 test -n "$runpath_var_CXX" || 15847 test yes = "$hardcode_automatic_CXX"; then 15848 15849 # We can hardcode non-existent directories. 15850 if test no != "$hardcode_direct_CXX" && 15851 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15852 # have to relink, otherwise we might link with an installed library 15853 # when we should be linking with a yet-to-be-installed one 15854 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 15855 test no != "$hardcode_minus_L_CXX"; then 15856 # Linking always hardcodes the temporary library directory. 15857 hardcode_action_CXX=relink 15858 else 15859 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15860 hardcode_action_CXX=immediate 15861 fi 15862 else 15863 # We cannot hardcode anything, or else we can only hardcode existing 15864 # directories. 15865 hardcode_action_CXX=unsupported 15866 fi 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15868 $as_echo "$hardcode_action_CXX" >&6; } 15869 15870 if test relink = "$hardcode_action_CXX" || 15871 test yes = "$inherit_rpath_CXX"; then 15872 # Fast installation is not supported 15873 enable_fast_install=no 15874 elif test yes = "$shlibpath_overrides_runpath" || 15875 test no = "$enable_shared"; then 15876 # Fast installation is not necessary 15877 enable_fast_install=needless 15878 fi 15879 15880 15881 15882 15883 15884 15885 15886 fi # test -n "$compiler" 15887 15888 CC=$lt_save_CC 15889 CFLAGS=$lt_save_CFLAGS 15890 LDCXX=$LD 15891 LD=$lt_save_LD 15892 GCC=$lt_save_GCC 15893 with_gnu_ld=$lt_save_with_gnu_ld 15894 lt_cv_path_LDCXX=$lt_cv_path_LD 15895 lt_cv_path_LD=$lt_save_path_LD 15896 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15897 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15898 fi # test yes != "$_lt_caught_CXX_error" 15899 15900 ac_ext=c 15901 ac_cpp='$CPP $CPPFLAGS' 15902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15904 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15905 15906 3348 15907 ac_ext=c 3349 15908 ac_cpp='$CPP $CPPFLAGS' … … 4237 16796 fi 4238 16797 4239 if test -n "$ac_tool_prefix"; then4240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.4241 set dummy ${ac_tool_prefix}ranlib; ac_word=$24242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54243 $as_echo_n "checking for $ac_word... " >&6; }4244 if ${ac_cv_prog_RANLIB+:} false; then :4245 $as_echo_n "(cached) " >&64246 else4247 if test -n "$RANLIB"; then4248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.4249 else4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4251 for as_dir in $PATH4252 do4253 IFS=$as_save_IFS4254 test -z "$as_dir" && as_dir=.4255 for ac_exec_ext in '' $ac_executable_extensions; do4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then4257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54259 break 24260 fi4261 done4262 done4263 IFS=$as_save_IFS4264 4265 fi4266 fi4267 RANLIB=$ac_cv_prog_RANLIB4268 if test -n "$RANLIB"; then4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&54270 $as_echo "$RANLIB" >&6; }4271 else4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54273 $as_echo "no" >&6; }4274 fi4275 4276 4277 fi4278 if test -z "$ac_cv_prog_RANLIB"; then4279 ac_ct_RANLIB=$RANLIB4280 # Extract the first word of "ranlib", so it can be a program name with args.4281 set dummy ranlib; ac_word=$24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54283 $as_echo_n "checking for $ac_word... " >&6; }4284 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :4285 $as_echo_n "(cached) " >&64286 else4287 if test -n "$ac_ct_RANLIB"; then4288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.4289 else4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4291 for as_dir in $PATH4292 do4293 IFS=$as_save_IFS4294 test -z "$as_dir" && as_dir=.4295 for ac_exec_ext in '' $ac_executable_extensions; do4296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then4297 ac_cv_prog_ac_ct_RANLIB="ranlib"4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54299 break 24300 fi4301 done4302 done4303 IFS=$as_save_IFS4304 4305 fi4306 fi4307 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB4308 if test -n "$ac_ct_RANLIB"; then4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&54310 $as_echo "$ac_ct_RANLIB" >&6; }4311 else4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54313 $as_echo "no" >&6; }4314 fi4315 4316 if test "x$ac_ct_RANLIB" = x; then4317 RANLIB=":"4318 else4319 case $cross_compiling:$ac_tool_warned in4320 yes:)4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&54322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}4323 ac_tool_warned=yes ;;4324 esac4325 RANLIB=$ac_ct_RANLIB4326 fi4327 else4328 RANLIB="$ac_cv_prog_RANLIB"4329 fi4330 4331 16798 4332 16799 ac_config_files="$ac_config_files Makefile src/Makefile prelude/Makefile" … … 4502 16969 Usually this means the macro was only invoked conditionally." "$LINENO" 5 4503 16970 fi 16971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16972 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16973 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16974 fi 4504 16975 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 4505 16976 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. … … 5078 17549 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5079 17550 17551 17552 # The HP-UX ksh and POSIX shell print the target directory to stdout 17553 # if CDPATH is set. 17554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17555 17556 sed_quote_subst='$sed_quote_subst' 17557 double_quote_subst='$double_quote_subst' 17558 delay_variable_subst='$delay_variable_subst' 17559 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17560 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17561 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17562 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17563 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17564 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17565 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17566 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17567 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17568 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17569 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17570 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17571 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17572 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17573 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17574 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17575 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17576 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17577 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17578 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17579 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17580 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17581 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17582 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17583 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17584 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17585 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17586 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17587 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17588 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17589 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17590 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17591 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17592 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17593 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17594 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17595 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17596 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17597 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17598 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17599 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17600 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17601 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17602 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17603 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17604 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17605 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17606 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17607 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17608 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17609 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17610 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17611 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17612 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17613 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17614 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17615 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17616 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17617 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 17618 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17619 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17620 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17621 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17622 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17623 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17624 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17625 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17626 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17627 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17628 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17629 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17630 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17631 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17632 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17633 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17634 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17635 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17636 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17637 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17638 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17639 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17640 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17641 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17642 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17643 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17644 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17645 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17646 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17647 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17648 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17649 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17650 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17651 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17652 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17653 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17654 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17655 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17656 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17657 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17658 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17659 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17660 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17661 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17662 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17663 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17664 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17665 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17666 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17667 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17668 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17669 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17670 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17671 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17672 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17673 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17674 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17675 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17676 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17677 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17678 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17679 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17680 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17681 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17682 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17683 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17684 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17685 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17686 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17687 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17688 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17689 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17690 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17691 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17692 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17693 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17694 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17695 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17696 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17697 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17698 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17699 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17700 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17701 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17702 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17703 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17704 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17705 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17706 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17707 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17708 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17709 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17710 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17711 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17712 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17713 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17714 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17715 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17716 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17717 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17718 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17719 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17720 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17721 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17722 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17723 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17724 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17725 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17726 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17727 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17728 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17729 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17730 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17731 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17732 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17733 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17734 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17735 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17736 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17737 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17738 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17739 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17740 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17741 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17742 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17743 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17744 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17745 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17746 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17747 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17748 17749 LTCC='$LTCC' 17750 LTCFLAGS='$LTCFLAGS' 17751 compiler='$compiler_DEFAULT' 17752 17753 # A function that is used when there is no print builtin or printf. 17754 func_fallback_echo () 17755 { 17756 eval 'cat <<_LTECHO_EOF 17757 \$1 17758 _LTECHO_EOF' 17759 } 17760 17761 # Quote evaled strings. 17762 for var in SHELL \ 17763 ECHO \ 17764 PATH_SEPARATOR \ 17765 SED \ 17766 GREP \ 17767 EGREP \ 17768 FGREP \ 17769 LD \ 17770 NM \ 17771 LN_S \ 17772 lt_SP2NL \ 17773 lt_NL2SP \ 17774 reload_flag \ 17775 OBJDUMP \ 17776 deplibs_check_method \ 17777 file_magic_cmd \ 17778 file_magic_glob \ 17779 want_nocaseglob \ 17780 DLLTOOL \ 17781 sharedlib_from_linklib_cmd \ 17782 AR \ 17783 AR_FLAGS \ 17784 archiver_list_spec \ 17785 STRIP \ 17786 RANLIB \ 17787 CC \ 17788 CFLAGS \ 17789 compiler \ 17790 lt_cv_sys_global_symbol_pipe \ 17791 lt_cv_sys_global_symbol_to_cdecl \ 17792 lt_cv_sys_global_symbol_to_import \ 17793 lt_cv_sys_global_symbol_to_c_name_address \ 17794 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17795 lt_cv_nm_interface \ 17796 nm_file_list_spec \ 17797 lt_cv_truncate_bin \ 17798 lt_prog_compiler_no_builtin_flag \ 17799 lt_prog_compiler_pic \ 17800 lt_prog_compiler_wl \ 17801 lt_prog_compiler_static \ 17802 lt_cv_prog_compiler_c_o \ 17803 need_locks \ 17804 MANIFEST_TOOL \ 17805 DSYMUTIL \ 17806 NMEDIT \ 17807 LIPO \ 17808 OTOOL \ 17809 OTOOL64 \ 17810 shrext_cmds \ 17811 export_dynamic_flag_spec \ 17812 whole_archive_flag_spec \ 17813 compiler_needs_object \ 17814 with_gnu_ld \ 17815 allow_undefined_flag \ 17816 no_undefined_flag \ 17817 hardcode_libdir_flag_spec \ 17818 hardcode_libdir_separator \ 17819 exclude_expsyms \ 17820 include_expsyms \ 17821 file_list_spec \ 17822 variables_saved_for_relink \ 17823 libname_spec \ 17824 library_names_spec \ 17825 soname_spec \ 17826 install_override_mode \ 17827 finish_eval \ 17828 old_striplib \ 17829 striplib \ 17830 compiler_lib_search_dirs \ 17831 predep_objects \ 17832 postdep_objects \ 17833 predeps \ 17834 postdeps \ 17835 compiler_lib_search_path \ 17836 LD_CXX \ 17837 reload_flag_CXX \ 17838 compiler_CXX \ 17839 lt_prog_compiler_no_builtin_flag_CXX \ 17840 lt_prog_compiler_pic_CXX \ 17841 lt_prog_compiler_wl_CXX \ 17842 lt_prog_compiler_static_CXX \ 17843 lt_cv_prog_compiler_c_o_CXX \ 17844 export_dynamic_flag_spec_CXX \ 17845 whole_archive_flag_spec_CXX \ 17846 compiler_needs_object_CXX \ 17847 with_gnu_ld_CXX \ 17848 allow_undefined_flag_CXX \ 17849 no_undefined_flag_CXX \ 17850 hardcode_libdir_flag_spec_CXX \ 17851 hardcode_libdir_separator_CXX \ 17852 exclude_expsyms_CXX \ 17853 include_expsyms_CXX \ 17854 file_list_spec_CXX \ 17855 compiler_lib_search_dirs_CXX \ 17856 predep_objects_CXX \ 17857 postdep_objects_CXX \ 17858 predeps_CXX \ 17859 postdeps_CXX \ 17860 compiler_lib_search_path_CXX; do 17861 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17862 *[\\\\\\\`\\"\\\$]*) 17863 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17864 ;; 17865 *) 17866 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17867 ;; 17868 esac 17869 done 17870 17871 # Double-quote double-evaled strings. 17872 for var in reload_cmds \ 17873 old_postinstall_cmds \ 17874 old_postuninstall_cmds \ 17875 old_archive_cmds \ 17876 extract_expsyms_cmds \ 17877 old_archive_from_new_cmds \ 17878 old_archive_from_expsyms_cmds \ 17879 archive_cmds \ 17880 archive_expsym_cmds \ 17881 module_cmds \ 17882 module_expsym_cmds \ 17883 export_symbols_cmds \ 17884 prelink_cmds \ 17885 postlink_cmds \ 17886 postinstall_cmds \ 17887 postuninstall_cmds \ 17888 finish_cmds \ 17889 sys_lib_search_path_spec \ 17890 configure_time_dlsearch_path \ 17891 configure_time_lt_sys_library_path \ 17892 reload_cmds_CXX \ 17893 old_archive_cmds_CXX \ 17894 old_archive_from_new_cmds_CXX \ 17895 old_archive_from_expsyms_cmds_CXX \ 17896 archive_cmds_CXX \ 17897 archive_expsym_cmds_CXX \ 17898 module_cmds_CXX \ 17899 module_expsym_cmds_CXX \ 17900 export_symbols_cmds_CXX \ 17901 prelink_cmds_CXX \ 17902 postlink_cmds_CXX; do 17903 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17904 *[\\\\\\\`\\"\\\$]*) 17905 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17906 ;; 17907 *) 17908 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17909 ;; 17910 esac 17911 done 17912 17913 ac_aux_dir='$ac_aux_dir' 17914 17915 # See if we are running on zsh, and set the options that allow our 17916 # commands through without removal of \ escapes INIT. 17917 if test -n "\${ZSH_VERSION+set}"; then 17918 setopt NO_GLOB_SUBST 17919 fi 17920 17921 17922 PACKAGE='$PACKAGE' 17923 VERSION='$VERSION' 17924 RM='$RM' 17925 ofile='$ofile' 17926 17927 17928 17929 17930 17931 5080 17932 _ACEOF 5081 17933 … … 5087 17939 case $ac_config_target in 5088 17940 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17941 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 5089 17942 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5090 17943 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; … … 5612 18465 } 5613 18466 ;; 18467 "libtool":C) 18468 18469 # See if we are running on zsh, and set the options that allow our 18470 # commands through without removal of \ escapes. 18471 if test -n "${ZSH_VERSION+set}"; then 18472 setopt NO_GLOB_SUBST 18473 fi 18474 18475 cfgfile=${ofile}T 18476 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18477 $RM "$cfgfile" 18478 18479 cat <<_LT_EOF >> "$cfgfile" 18480 #! $SHELL 18481 # Generated automatically by $as_me ($PACKAGE) $VERSION 18482 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18483 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18484 18485 # Provide generalized library-building support services. 18486 # Written by Gordon Matzigkeit, 1996 18487 18488 # Copyright (C) 2014 Free Software Foundation, Inc. 18489 # This is free software; see the source for copying conditions. There is NO 18490 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18491 18492 # GNU Libtool is free software; you can redistribute it and/or modify 18493 # it under the terms of the GNU General Public License as published by 18494 # the Free Software Foundation; either version 2 of of the License, or 18495 # (at your option) any later version. 18496 # 18497 # As a special exception to the GNU General Public License, if you 18498 # distribute this file as part of a program or library that is built 18499 # using GNU Libtool, you may include this file under the same 18500 # distribution terms that you use for the rest of that program. 18501 # 18502 # GNU Libtool is distributed in the hope that it will be useful, but 18503 # WITHOUT ANY WARRANTY; without even the implied warranty of 18504 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18505 # GNU General Public License for more details. 18506 # 18507 # You should have received a copy of the GNU General Public License 18508 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18509 18510 18511 # The names of the tagged configurations supported by this script. 18512 available_tags='CXX ' 18513 18514 # Configured defaults for sys_lib_dlsearch_path munging. 18515 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18516 18517 # ### BEGIN LIBTOOL CONFIG 18518 18519 # Which release of libtool.m4 was used? 18520 macro_version=$macro_version 18521 macro_revision=$macro_revision 18522 18523 # Whether or not to build shared libraries. 18524 build_libtool_libs=$enable_shared 18525 18526 # Whether or not to build static libraries. 18527 build_old_libs=$enable_static 18528 18529 # What type of objects to build. 18530 pic_mode=$pic_mode 18531 18532 # Whether or not to optimize for fast installation. 18533 fast_install=$enable_fast_install 18534 18535 # Shared archive member basename,for filename based shared library versioning on AIX. 18536 shared_archive_member_spec=$shared_archive_member_spec 18537 18538 # Shell to use when invoking shell scripts. 18539 SHELL=$lt_SHELL 18540 18541 # An echo program that protects backslashes. 18542 ECHO=$lt_ECHO 18543 18544 # The PATH separator for the build system. 18545 PATH_SEPARATOR=$lt_PATH_SEPARATOR 18546 18547 # The host system. 18548 host_alias=$host_alias 18549 host=$host 18550 host_os=$host_os 18551 18552 # The build system. 18553 build_alias=$build_alias 18554 build=$build 18555 build_os=$build_os 18556 18557 # A sed program that does not truncate output. 18558 SED=$lt_SED 18559 18560 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 18561 Xsed="\$SED -e 1s/^X//" 18562 18563 # A grep program that handles long lines. 18564 GREP=$lt_GREP 18565 18566 # An ERE matcher. 18567 EGREP=$lt_EGREP 18568 18569 # A literal string matcher. 18570 FGREP=$lt_FGREP 18571 18572 # A BSD- or MS-compatible name lister. 18573 NM=$lt_NM 18574 18575 # Whether we need soft or hard links. 18576 LN_S=$lt_LN_S 18577 18578 # What is the maximum length of a command? 18579 max_cmd_len=$max_cmd_len 18580 18581 # Object file suffix (normally "o"). 18582 objext=$ac_objext 18583 18584 # Executable file suffix (normally ""). 18585 exeext=$exeext 18586 18587 # whether the shell understands "unset". 18588 lt_unset=$lt_unset 18589 18590 # turn spaces into newlines. 18591 SP2NL=$lt_lt_SP2NL 18592 18593 # turn newlines into spaces. 18594 NL2SP=$lt_lt_NL2SP 18595 18596 # convert \$build file names to \$host format. 18597 to_host_file_cmd=$lt_cv_to_host_file_cmd 18598 18599 # convert \$build files to toolchain format. 18600 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18601 18602 # An object symbol dumper. 18603 OBJDUMP=$lt_OBJDUMP 18604 18605 # Method to check whether dependent libraries are shared objects. 18606 deplibs_check_method=$lt_deplibs_check_method 18607 18608 # Command to use when deplibs_check_method = "file_magic". 18609 file_magic_cmd=$lt_file_magic_cmd 18610 18611 # How to find potential files when deplibs_check_method = "file_magic". 18612 file_magic_glob=$lt_file_magic_glob 18613 18614 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18615 want_nocaseglob=$lt_want_nocaseglob 18616 18617 # DLL creation program. 18618 DLLTOOL=$lt_DLLTOOL 18619 18620 # Command to associate shared and link libraries. 18621 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18622 18623 # The archiver. 18624 AR=$lt_AR 18625 18626 # Flags to create an archive. 18627 AR_FLAGS=$lt_AR_FLAGS 18628 18629 # How to feed a file listing to the archiver. 18630 archiver_list_spec=$lt_archiver_list_spec 18631 18632 # A symbol stripping program. 18633 STRIP=$lt_STRIP 18634 18635 # Commands used to install an old-style archive. 18636 RANLIB=$lt_RANLIB 18637 old_postinstall_cmds=$lt_old_postinstall_cmds 18638 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18639 18640 # Whether to use a lock for old archive extraction. 18641 lock_old_archive_extraction=$lock_old_archive_extraction 18642 18643 # A C compiler. 18644 LTCC=$lt_CC 18645 18646 # LTCC compiler flags. 18647 LTCFLAGS=$lt_CFLAGS 18648 18649 # Take the output of nm and produce a listing of raw symbols and C names. 18650 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18651 18652 # Transform the output of nm in a proper C declaration. 18653 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18654 18655 # Transform the output of nm into a list of symbols to manually relocate. 18656 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18657 18658 # Transform the output of nm in a C name address pair. 18659 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18660 18661 # Transform the output of nm in a C name address pair when lib prefix is needed. 18662 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18663 18664 # The name lister interface. 18665 nm_interface=$lt_lt_cv_nm_interface 18666 18667 # Specify filename containing input files for \$NM. 18668 nm_file_list_spec=$lt_nm_file_list_spec 18669 18670 # The root where to search for dependent libraries,and where our libraries should be installed. 18671 lt_sysroot=$lt_sysroot 18672 18673 # Command to truncate a binary pipe. 18674 lt_truncate_bin=$lt_lt_cv_truncate_bin 18675 18676 # The name of the directory that contains temporary libtool files. 18677 objdir=$objdir 18678 18679 # Used to examine libraries when file_magic_cmd begins with "file". 18680 MAGIC_CMD=$MAGIC_CMD 18681 18682 # Must we lock files when doing compilation? 18683 need_locks=$lt_need_locks 18684 18685 # Manifest tool. 18686 MANIFEST_TOOL=$lt_MANIFEST_TOOL 18687 18688 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18689 DSYMUTIL=$lt_DSYMUTIL 18690 18691 # Tool to change global to local symbols on Mac OS X. 18692 NMEDIT=$lt_NMEDIT 18693 18694 # Tool to manipulate fat objects and archives on Mac OS X. 18695 LIPO=$lt_LIPO 18696 18697 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 18698 OTOOL=$lt_OTOOL 18699 18700 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18701 OTOOL64=$lt_OTOOL64 18702 18703 # Old archive suffix (normally "a"). 18704 libext=$libext 18705 18706 # Shared library suffix (normally ".so"). 18707 shrext_cmds=$lt_shrext_cmds 18708 18709 # The commands to extract the exported symbol list from a shared archive. 18710 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18711 18712 # Variables whose values should be saved in libtool wrapper scripts and 18713 # restored at link time. 18714 variables_saved_for_relink=$lt_variables_saved_for_relink 18715 18716 # Do we need the "lib" prefix for modules? 18717 need_lib_prefix=$need_lib_prefix 18718 18719 # Do we need a version for libraries? 18720 need_version=$need_version 18721 18722 # Library versioning type. 18723 version_type=$version_type 18724 18725 # Shared library runtime path variable. 18726 runpath_var=$runpath_var 18727 18728 # Shared library path variable. 18729 shlibpath_var=$shlibpath_var 18730 18731 # Is shlibpath searched before the hard-coded library search path? 18732 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18733 18734 # Format of library name prefix. 18735 libname_spec=$lt_libname_spec 18736 18737 # List of archive names. First name is the real one, the rest are links. 18738 # The last name is the one that the linker finds with -lNAME 18739 library_names_spec=$lt_library_names_spec 18740 18741 # The coded name of the library, if different from the real name. 18742 soname_spec=$lt_soname_spec 18743 18744 # Permission mode override for installation of shared libraries. 18745 install_override_mode=$lt_install_override_mode 18746 18747 # Command to use after installation of a shared archive. 18748 postinstall_cmds=$lt_postinstall_cmds 18749 18750 # Command to use after uninstallation of a shared archive. 18751 postuninstall_cmds=$lt_postuninstall_cmds 18752 18753 # Commands used to finish a libtool library installation in a directory. 18754 finish_cmds=$lt_finish_cmds 18755 18756 # As "finish_cmds", except a single script fragment to be evaled but 18757 # not shown. 18758 finish_eval=$lt_finish_eval 18759 18760 # Whether we should hardcode library paths into libraries. 18761 hardcode_into_libs=$hardcode_into_libs 18762 18763 # Compile-time system search path for libraries. 18764 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18765 18766 # Detected run-time system search path for libraries. 18767 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18768 18769 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18770 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18771 18772 # Whether dlopen is supported. 18773 dlopen_support=$enable_dlopen 18774 18775 # Whether dlopen of programs is supported. 18776 dlopen_self=$enable_dlopen_self 18777 18778 # Whether dlopen of statically linked programs is supported. 18779 dlopen_self_static=$enable_dlopen_self_static 18780 18781 # Commands to strip libraries. 18782 old_striplib=$lt_old_striplib 18783 striplib=$lt_striplib 18784 18785 18786 # The linker used to build libraries. 18787 LD=$lt_LD 18788 18789 # How to create reloadable object files. 18790 reload_flag=$lt_reload_flag 18791 reload_cmds=$lt_reload_cmds 18792 18793 # Commands used to build an old-style archive. 18794 old_archive_cmds=$lt_old_archive_cmds 18795 18796 # A language specific compiler. 18797 CC=$lt_compiler 18798 18799 # Is the compiler the GNU compiler? 18800 with_gcc=$GCC 18801 18802 # Compiler flag to turn off builtin functions. 18803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18804 18805 # Additional compiler flags for building library objects. 18806 pic_flag=$lt_lt_prog_compiler_pic 18807 18808 # How to pass a linker flag through the compiler. 18809 wl=$lt_lt_prog_compiler_wl 18810 18811 # Compiler flag to prevent dynamic linking. 18812 link_static_flag=$lt_lt_prog_compiler_static 18813 18814 # Does compiler simultaneously support -c and -o options? 18815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18816 18817 # Whether or not to add -lc for building shared libraries. 18818 build_libtool_need_lc=$archive_cmds_need_lc 18819 18820 # Whether or not to disallow shared libs when runtime libs are static. 18821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18822 18823 # Compiler flag to allow reflexive dlopens. 18824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18825 18826 # Compiler flag to generate shared objects directly from archives. 18827 whole_archive_flag_spec=$lt_whole_archive_flag_spec 18828 18829 # Whether the compiler copes with passing no objects directly. 18830 compiler_needs_object=$lt_compiler_needs_object 18831 18832 # Create an old-style archive from a shared archive. 18833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18834 18835 # Create a temporary old-style archive to link instead of a shared archive. 18836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18837 18838 # Commands used to build a shared archive. 18839 archive_cmds=$lt_archive_cmds 18840 archive_expsym_cmds=$lt_archive_expsym_cmds 18841 18842 # Commands used to build a loadable module if different from building 18843 # a shared archive. 18844 module_cmds=$lt_module_cmds 18845 module_expsym_cmds=$lt_module_expsym_cmds 18846 18847 # Whether we are building with GNU ld or not. 18848 with_gnu_ld=$lt_with_gnu_ld 18849 18850 # Flag that allows shared libraries with undefined symbols to be built. 18851 allow_undefined_flag=$lt_allow_undefined_flag 18852 18853 # Flag that enforces no undefined symbols. 18854 no_undefined_flag=$lt_no_undefined_flag 18855 18856 # Flag to hardcode \$libdir into a binary during linking. 18857 # This must work even if \$libdir does not exist 18858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18859 18860 # Whether we need a single "-rpath" flag with a separated argument. 18861 hardcode_libdir_separator=$lt_hardcode_libdir_separator 18862 18863 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18864 # DIR into the resulting binary. 18865 hardcode_direct=$hardcode_direct 18866 18867 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18868 # DIR into the resulting binary and the resulting library dependency is 18869 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 18870 # library is relocated. 18871 hardcode_direct_absolute=$hardcode_direct_absolute 18872 18873 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18874 # into the resulting binary. 18875 hardcode_minus_L=$hardcode_minus_L 18876 18877 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18878 # into the resulting binary. 18879 hardcode_shlibpath_var=$hardcode_shlibpath_var 18880 18881 # Set to "yes" if building a shared library automatically hardcodes DIR 18882 # into the library and all subsequent libraries and executables linked 18883 # against it. 18884 hardcode_automatic=$hardcode_automatic 18885 18886 # Set to yes if linker adds runtime paths of dependent libraries 18887 # to runtime path list. 18888 inherit_rpath=$inherit_rpath 18889 18890 # Whether libtool must link a program against all its dependency libraries. 18891 link_all_deplibs=$link_all_deplibs 18892 18893 # Set to "yes" if exported symbols are required. 18894 always_export_symbols=$always_export_symbols 18895 18896 # The commands to list exported symbols. 18897 export_symbols_cmds=$lt_export_symbols_cmds 18898 18899 # Symbols that should not be listed in the preloaded symbols. 18900 exclude_expsyms=$lt_exclude_expsyms 18901 18902 # Symbols that must always be exported. 18903 include_expsyms=$lt_include_expsyms 18904 18905 # Commands necessary for linking programs (against libraries) with templates. 18906 prelink_cmds=$lt_prelink_cmds 18907 18908 # Commands necessary for finishing linking programs. 18909 postlink_cmds=$lt_postlink_cmds 18910 18911 # Specify filename containing input files. 18912 file_list_spec=$lt_file_list_spec 18913 18914 # How to hardcode a shared library path into an executable. 18915 hardcode_action=$hardcode_action 18916 18917 # The directories searched by this compiler when creating a shared library. 18918 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18919 18920 # Dependencies to place before and after the objects being linked to 18921 # create a shared library. 18922 predep_objects=$lt_predep_objects 18923 postdep_objects=$lt_postdep_objects 18924 predeps=$lt_predeps 18925 postdeps=$lt_postdeps 18926 18927 # The library search path used internally by the compiler when linking 18928 # a shared library. 18929 compiler_lib_search_path=$lt_compiler_lib_search_path 18930 18931 # ### END LIBTOOL CONFIG 18932 18933 _LT_EOF 18934 18935 cat <<'_LT_EOF' >> "$cfgfile" 18936 18937 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18938 18939 # func_munge_path_list VARIABLE PATH 18940 # ----------------------------------- 18941 # VARIABLE is name of variable containing _space_ separated list of 18942 # directories to be munged by the contents of PATH, which is string 18943 # having a format: 18944 # "DIR[:DIR]:" 18945 # string "DIR[ DIR]" will be prepended to VARIABLE 18946 # ":DIR[:DIR]" 18947 # string "DIR[ DIR]" will be appended to VARIABLE 18948 # "DIRP[:DIRP]::[DIRA:]DIRA" 18949 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18950 # "DIRA[ DIRA]" will be appended to VARIABLE 18951 # "DIR[:DIR]" 18952 # VARIABLE will be replaced by "DIR[ DIR]" 18953 func_munge_path_list () 18954 { 18955 case x$2 in 18956 x) 18957 ;; 18958 *:) 18959 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18960 ;; 18961 x:*) 18962 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18963 ;; 18964 *::*) 18965 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18966 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18967 ;; 18968 *) 18969 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18970 ;; 18971 esac 18972 } 18973 18974 18975 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18976 func_cc_basename () 18977 { 18978 for cc_temp in $*""; do 18979 case $cc_temp in 18980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18982 \-*) ;; 18983 *) break;; 18984 esac 18985 done 18986 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18987 } 18988 18989 18990 # ### END FUNCTIONS SHARED WITH CONFIGURE 18991 18992 _LT_EOF 18993 18994 case $host_os in 18995 aix3*) 18996 cat <<\_LT_EOF >> "$cfgfile" 18997 # AIX sometimes has problems with the GCC collect2 program. For some 18998 # reason, if we set the COLLECT_NAMES environment variable, the problems 18999 # vanish in a puff of smoke. 19000 if test set != "${COLLECT_NAMES+set}"; then 19001 COLLECT_NAMES= 19002 export COLLECT_NAMES 19003 fi 19004 _LT_EOF 19005 ;; 19006 esac 19007 19008 19009 ltmain=$ac_aux_dir/ltmain.sh 19010 19011 19012 # We use sed instead of cat because bash on DJGPP gets confused if 19013 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19014 # text mode, it properly converts lines to CR/LF. This bash problem 19015 # is reportedly fixed, but why not run on old versions too? 19016 sed '$q' "$ltmain" >> "$cfgfile" \ 19017 || (rm -f "$cfgfile"; exit 1) 19018 19019 mv -f "$cfgfile" "$ofile" || 19020 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19021 chmod +x "$ofile" 19022 19023 19024 cat <<_LT_EOF >> "$ofile" 19025 19026 # ### BEGIN LIBTOOL TAG CONFIG: CXX 19027 19028 # The linker used to build libraries. 19029 LD=$lt_LD_CXX 19030 19031 # How to create reloadable object files. 19032 reload_flag=$lt_reload_flag_CXX 19033 reload_cmds=$lt_reload_cmds_CXX 19034 19035 # Commands used to build an old-style archive. 19036 old_archive_cmds=$lt_old_archive_cmds_CXX 19037 19038 # A language specific compiler. 19039 CC=$lt_compiler_CXX 19040 19041 # Is the compiler the GNU compiler? 19042 with_gcc=$GCC_CXX 19043 19044 # Compiler flag to turn off builtin functions. 19045 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19046 19047 # Additional compiler flags for building library objects. 19048 pic_flag=$lt_lt_prog_compiler_pic_CXX 19049 19050 # How to pass a linker flag through the compiler. 19051 wl=$lt_lt_prog_compiler_wl_CXX 19052 19053 # Compiler flag to prevent dynamic linking. 19054 link_static_flag=$lt_lt_prog_compiler_static_CXX 19055 19056 # Does compiler simultaneously support -c and -o options? 19057 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19058 19059 # Whether or not to add -lc for building shared libraries. 19060 build_libtool_need_lc=$archive_cmds_need_lc_CXX 19061 19062 # Whether or not to disallow shared libs when runtime libs are static. 19063 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19064 19065 # Compiler flag to allow reflexive dlopens. 19066 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19067 19068 # Compiler flag to generate shared objects directly from archives. 19069 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19070 19071 # Whether the compiler copes with passing no objects directly. 19072 compiler_needs_object=$lt_compiler_needs_object_CXX 19073 19074 # Create an old-style archive from a shared archive. 19075 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19076 19077 # Create a temporary old-style archive to link instead of a shared archive. 19078 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19079 19080 # Commands used to build a shared archive. 19081 archive_cmds=$lt_archive_cmds_CXX 19082 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19083 19084 # Commands used to build a loadable module if different from building 19085 # a shared archive. 19086 module_cmds=$lt_module_cmds_CXX 19087 module_expsym_cmds=$lt_module_expsym_cmds_CXX 19088 19089 # Whether we are building with GNU ld or not. 19090 with_gnu_ld=$lt_with_gnu_ld_CXX 19091 19092 # Flag that allows shared libraries with undefined symbols to be built. 19093 allow_undefined_flag=$lt_allow_undefined_flag_CXX 19094 19095 # Flag that enforces no undefined symbols. 19096 no_undefined_flag=$lt_no_undefined_flag_CXX 19097 19098 # Flag to hardcode \$libdir into a binary during linking. 19099 # This must work even if \$libdir does not exist 19100 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19101 19102 # Whether we need a single "-rpath" flag with a separated argument. 19103 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19104 19105 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19106 # DIR into the resulting binary. 19107 hardcode_direct=$hardcode_direct_CXX 19108 19109 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19110 # DIR into the resulting binary and the resulting library dependency is 19111 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 19112 # library is relocated. 19113 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19114 19115 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19116 # into the resulting binary. 19117 hardcode_minus_L=$hardcode_minus_L_CXX 19118 19119 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19120 # into the resulting binary. 19121 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19122 19123 # Set to "yes" if building a shared library automatically hardcodes DIR 19124 # into the library and all subsequent libraries and executables linked 19125 # against it. 19126 hardcode_automatic=$hardcode_automatic_CXX 19127 19128 # Set to yes if linker adds runtime paths of dependent libraries 19129 # to runtime path list. 19130 inherit_rpath=$inherit_rpath_CXX 19131 19132 # Whether libtool must link a program against all its dependency libraries. 19133 link_all_deplibs=$link_all_deplibs_CXX 19134 19135 # Set to "yes" if exported symbols are required. 19136 always_export_symbols=$always_export_symbols_CXX 19137 19138 # The commands to list exported symbols. 19139 export_symbols_cmds=$lt_export_symbols_cmds_CXX 19140 19141 # Symbols that should not be listed in the preloaded symbols. 19142 exclude_expsyms=$lt_exclude_expsyms_CXX 19143 19144 # Symbols that must always be exported. 19145 include_expsyms=$lt_include_expsyms_CXX 19146 19147 # Commands necessary for linking programs (against libraries) with templates. 19148 prelink_cmds=$lt_prelink_cmds_CXX 19149 19150 # Commands necessary for finishing linking programs. 19151 postlink_cmds=$lt_postlink_cmds_CXX 19152 19153 # Specify filename containing input files. 19154 file_list_spec=$lt_file_list_spec_CXX 19155 19156 # How to hardcode a shared library path into an executable. 19157 hardcode_action=$hardcode_action_CXX 19158 19159 # The directories searched by this compiler when creating a shared library. 19160 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19161 19162 # Dependencies to place before and after the objects being linked to 19163 # create a shared library. 19164 predep_objects=$lt_predep_objects_CXX 19165 postdep_objects=$lt_postdep_objects_CXX 19166 predeps=$lt_predeps_CXX 19167 postdeps=$lt_postdeps_CXX 19168 19169 # The library search path used internally by the compiler when linking 19170 # a shared library. 19171 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19172 19173 # ### END LIBTOOL TAG CONFIG: CXX 19174 _LT_EOF 19175 19176 ;; 5614 19177 5615 19178 esac -
libcfa/configure.ac
r7428ad9 r6d44da1 4 4 AC_PREREQ([2.68]) 5 5 AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca]) 6 AC_CONFIG_AUX_DIR([./automake]) 6 AC_CONFIG_AUX_DIR([automake]) 7 AC_CONFIG_MACRO_DIRS([automake]) 7 8 AM_SILENT_RULES([yes]) 8 9 … … 70 71 71 72 # Checks for programs. 73 LT_INIT 74 72 75 AC_PROG_CXX 73 76 AC_PROG_CC … … 75 78 AC_PROG_INSTALL 76 79 AC_PROG_MAKE_SET 77 AC_PROG_RANLIB78 80 79 81 AC_CONFIG_FILES([ -
libcfa/prelude/Makefile.am
r7428ad9 r6d44da1 17 17 # create object files in directory with source files 18 18 AUTOMAKE_OPTIONS = foreign subdir-objects 19 ACLOCAL_AMFLAGS = -I automake 19 20 20 21 # put into lib for now … … 23 24 24 25 CC = @CFACC@ 25 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@26 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ 26 27 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 27 28 -
libcfa/prelude/Makefile.in
r7428ad9 r6d44da1 90 90 PRE_UNINSTALL = : 91 91 POST_UNINSTALL = : 92 build_triplet = @build@ 93 host_triplet = @host@ 92 94 subdir = prelude 93 95 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 94 am__aclocal_m4_deps = $(top_srcdir)/../automake/cfa.m4 \ 95 $(top_srcdir)/configure.ac 96 am__aclocal_m4_deps = $(top_srcdir)/automake/libtool.m4 \ 97 $(top_srcdir)/automake/ltoptions.m4 \ 98 $(top_srcdir)/automake/ltsugar.m4 \ 99 $(top_srcdir)/automake/ltversion.m4 \ 100 $(top_srcdir)/automake/lt~obsolete.m4 \ 101 $(top_srcdir)/../automake/cfa.m4 $(top_srcdir)/configure.ac 96 102 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 97 103 $(ACLOCAL_M4) … … 154 160 AMTAR = @AMTAR@ 155 161 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 162 AR = @AR@ 156 163 ARCHITECTURE = @ARCHITECTURE@ 157 164 ARCH_FLAGS = @ARCH_FLAGS@ … … 177 184 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 178 185 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 186 CPP = @CPP@ 179 187 CPPFLAGS = @CPPFLAGS@ 180 188 CXX = @CXX@ 189 CXXCPP = @CXXCPP@ 181 190 CXXDEPMODE = @CXXDEPMODE@ 182 191 CXXFLAGS = @CXXFLAGS@ … … 184 193 DEFS = @DEFS@ 185 194 DEPDIR = @DEPDIR@ 195 DLLTOOL = @DLLTOOL@ 186 196 DRIVER_DIR = @DRIVER_DIR@ 197 DSYMUTIL = @DSYMUTIL@ 198 DUMPBIN = @DUMPBIN@ 187 199 ECHO_C = @ECHO_C@ 188 200 ECHO_N = @ECHO_N@ 189 201 ECHO_T = @ECHO_T@ 202 EGREP = @EGREP@ 190 203 EXEEXT = @EXEEXT@ 204 FGREP = @FGREP@ 205 GREP = @GREP@ 191 206 INSTALL = @INSTALL@ 192 207 INSTALL_DATA = @INSTALL_DATA@ … … 194 209 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 195 210 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 211 LD = @LD@ 196 212 LDFLAGS = @LDFLAGS@ 197 213 LIBOBJS = @LIBOBJS@ 198 214 LIBS = @LIBS@ 215 LIBTOOL = @LIBTOOL@ 216 LIPO = @LIPO@ 217 LN_S = @LN_S@ 199 218 LTLIBOBJS = @LTLIBOBJS@ 219 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 200 220 MAKEINFO = @MAKEINFO@ 221 MANIFEST_TOOL = @MANIFEST_TOOL@ 201 222 MKDIR_P = @MKDIR_P@ 223 NM = @NM@ 224 NMEDIT = @NMEDIT@ 225 OBJDUMP = @OBJDUMP@ 202 226 OBJEXT = @OBJEXT@ 227 OTOOL = @OTOOL@ 228 OTOOL64 = @OTOOL64@ 203 229 PACKAGE = @PACKAGE@ 204 230 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 210 236 PATH_SEPARATOR = @PATH_SEPARATOR@ 211 237 RANLIB = @RANLIB@ 238 SED = @SED@ 212 239 SET_MAKE = @SET_MAKE@ 213 240 SHELL = @SHELL@ … … 218 245 abs_top_builddir = @abs_top_builddir@ 219 246 abs_top_srcdir = @abs_top_srcdir@ 247 ac_ct_AR = @ac_ct_AR@ 220 248 ac_ct_CC = @ac_ct_CC@ 221 249 ac_ct_CXX = @ac_ct_CXX@ 250 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 222 251 am__include = @am__include@ 223 252 am__leading_dot = @am__leading_dot@ … … 226 255 am__untar = @am__untar@ 227 256 bindir = @bindir@ 257 build = @build@ 228 258 build_alias = @build_alias@ 259 build_cpu = @build_cpu@ 260 build_os = @build_os@ 261 build_vendor = @build_vendor@ 229 262 builddir = @builddir@ 230 263 datadir = @datadir@ … … 233 266 dvidir = @dvidir@ 234 267 exec_prefix = @exec_prefix@ 268 host = @host@ 235 269 host_alias = @host_alias@ 270 host_cpu = @host_cpu@ 271 host_os = @host_os@ 272 host_vendor = @host_vendor@ 236 273 htmldir = @htmldir@ 237 274 includedir = @includedir@ … … 261 298 # create object files in directory with source files 262 299 AUTOMAKE_OPTIONS = foreign subdir-objects 300 ACLOCAL_AMFLAGS = -I automake 263 301 264 302 # put into lib for now 265 303 cfalibdir = ${CFA_LIBDIR} 304 <<<<<<< HEAD 305 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cf bootloader.c 306 noinst_DATA = ../src/prelude.c 307 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ 308 ======= 266 309 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cfa bootloader.c 267 310 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 311 >>>>>>> master 268 312 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 269 313 MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cfa … … 301 345 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 302 346 $(am__aclocal_m4_deps): 347 348 mostlyclean-libtool: 349 -rm -f *.lo 350 351 clean-libtool: 352 -rm -rf .libs _libs 303 353 install-cfalibDATA: $(cfalib_DATA) 304 354 @$(NORMAL_INSTALL) … … 400 450 clean: clean-am 401 451 402 clean-am: clean-generic mostlyclean-am452 clean-am: clean-generic clean-libtool mostlyclean-am 403 453 404 454 distclean: distclean-am … … 453 503 mostlyclean: mostlyclean-am 454 504 455 mostlyclean-am: mostlyclean-generic 505 mostlyclean-am: mostlyclean-generic mostlyclean-libtool 456 506 457 507 pdf: pdf-am … … 467 517 .MAKE: install-am install-strip 468 518 469 .PHONY: all all-am check check-am clean clean-generic cscopelist-am \ 470 ctags-am distclean distclean-generic distdir dvi dvi-am html \ 471 html-am info info-am install install-am install-cfalibDATA \ 472 install-data install-data-am install-dvi install-dvi-am \ 473 install-exec install-exec-am install-html install-html-am \ 474 install-info install-info-am install-man install-pdf \ 475 install-pdf-am install-ps install-ps-am install-strip \ 476 installcheck installcheck-am installdirs maintainer-clean \ 519 .PHONY: all all-am check check-am clean clean-generic clean-libtool \ 520 cscopelist-am ctags-am distclean distclean-generic \ 521 distclean-libtool distdir dvi dvi-am html html-am info info-am \ 522 install install-am install-cfalibDATA install-data \ 523 install-data-am install-dvi install-dvi-am install-exec \ 524 install-exec-am install-html install-html-am install-info \ 525 install-info-am install-man install-pdf install-pdf-am \ 526 install-ps install-ps-am install-strip installcheck \ 527 installcheck-am installdirs maintainer-clean \ 477 528 maintainer-clean-generic maintainer-clean-local mostlyclean \ 478 mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall\479 uninstall-am uninstall-cfalibDATA529 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 530 tags-am uninstall uninstall-am uninstall-cfalibDATA 480 531 481 532 .PRECIOUS: Makefile -
libcfa/src/Makefile.am
r7428ad9 r6d44da1 17 17 # create object files in directory with source files 18 18 AUTOMAKE_OPTIONS = foreign subdir-objects 19 ACLOCAL_AMFLAGS = -I automake 19 20 ARFLAGS = cr 20 21 … … 22 23 23 24 libdir = ${CFA_LIBDIR} 24 lib_L IBRARIES = libcfa.a25 lib_LTLIBRARIES = libcfa.la 25 26 26 27 VPATH += :../prelude … … 31 32 # The built sources must not depend on the installed headers 32 33 AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 33 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@34 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ 34 35 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 35 36 CFACC = @CFACC@ … … 47 48 headers_nosrc += concurrency/invoke.h 48 49 50 libobjs = ${headers:.hfa=.lo} 49 51 libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} 50 52 … … 63 65 64 66 # add dependency of cfa files 65 libobjs = $(addsuffix . o, $(basename $(filter %.cfa,$(libsrc))))67 libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc)))) 66 68 $(libobjs) : @CFACC@ @CFACPP@ prelude.cfa 67 69 … … 70 72 libdeps = $(join \ 71 73 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 72 $(notdir ${libobjs:. o=.Po}) \74 $(notdir ${libobjs:.lo=.Po}) \ 73 75 ) 74 76 75 77 -include $(libdeps) 76 78 77 prelude. o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@79 prelude.lo : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 78 80 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@} 79 81 … … 81 83 82 84 #---------------------------------------------------------------------------------------------------------------- 83 libcfa_ a_SOURCES = prelude.cfa ${libsrc}85 libcfa_la_SOURCES = prelude.cfa ${libsrc} 84 86 85 stdhdr = $ {shell find ${srcdir}/stdhdr -type f -printf "%p "}87 stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ") 86 88 87 89 cfa_includedir = $(CFA_INCDIR) -
libcfa/src/Makefile.in
r7428ad9 r6d44da1 90 90 PRE_UNINSTALL = : 91 91 POST_UNINSTALL = : 92 build_triplet = @build@ 93 host_triplet = @host@ 92 94 subdir = src 93 95 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 94 am__aclocal_m4_deps = $(top_srcdir)/../automake/cfa.m4 \ 95 $(top_srcdir)/configure.ac 96 am__aclocal_m4_deps = $(top_srcdir)/automake/libtool.m4 \ 97 $(top_srcdir)/automake/ltoptions.m4 \ 98 $(top_srcdir)/automake/ltsugar.m4 \ 99 $(top_srcdir)/automake/ltversion.m4 \ 100 $(top_srcdir)/automake/lt~obsolete.m4 \ 101 $(top_srcdir)/../automake/cfa.m4 $(top_srcdir)/configure.ac 96 102 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 97 103 $(ACLOCAL_M4) … … 129 135 } 130 136 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(cfa_includedir)" 137 <<<<<<< HEAD 138 LTLIBRARIES = $(lib_LTLIBRARIES) 139 libcfa_la_LIBADD = 140 am__dirstamp = $(am__leading_dot)dirstamp 141 am__objects_1 = fstream.lo iostream.lo iterator.lo limits.lo \ 142 rational.lo time.lo stdlib.lo common.lo containers/maybe.lo \ 143 containers/pair.lo containers/result.lo containers/vector.lo \ 144 concurrency/coroutine.lo concurrency/thread.lo \ 145 concurrency/kernel.lo concurrency/monitor.lo \ 146 concurrency/mutex.lo 147 am__objects_2 = prelude.lo startup.lo interpose.lo bits/debug.lo \ 148 assert.lo exception.lo virtual.lo heap.lo $(am__objects_1) \ 149 concurrency/CtxSwitch-@ARCHITECTURE@.lo concurrency/alarm.lo \ 150 concurrency/invoke.lo concurrency/preemption.lo 151 am_libcfa_la_OBJECTS = $(am__objects_2) 152 libcfa_la_OBJECTS = $(am_libcfa_la_OBJECTS) 153 AM_V_lt = $(am__v_lt_@AM_V@) 154 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) 155 am__v_lt_0 = --silent 156 am__v_lt_1 = 157 ======= 131 158 LIBRARIES = $(lib_LIBRARIES) 132 159 AR = ar … … 171 198 am_libcfa_a_OBJECTS = prelude.$(OBJEXT) $(am__objects_2) 172 199 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) 200 >>>>>>> master 173 201 AM_V_P = $(am__v_P_@AM_V@) 174 202 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) … … 184 212 am__v_at_1 = 185 213 DEFAULT_INCLUDES = -I.@am__isrc@ 186 depcomp = $(SHELL) $(top_srcdir)/ ./automake/depcomp214 depcomp = $(SHELL) $(top_srcdir)/automake/depcomp 187 215 am__depfiles_maybe = depfiles 188 216 am__mv = mv -f 189 217 CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 190 218 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) 219 LTCPPASCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ 220 $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) \ 221 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 222 $(AM_CCASFLAGS) $(CCASFLAGS) 191 223 AM_V_CPPAS = $(am__v_CPPAS_@AM_V@) 192 224 am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@) … … 195 227 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 196 228 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 229 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 230 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ 231 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 232 $(AM_CFLAGS) $(CFLAGS) 197 233 AM_V_CC = $(am__v_CC_@AM_V@) 198 234 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) … … 200 236 am__v_CC_1 = 201 237 CCLD = $(CC) 202 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 238 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 239 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 240 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 203 241 AM_V_CCLD = $(am__v_CCLD_@AM_V@) 204 242 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) 205 243 am__v_CCLD_0 = @echo " CCLD " $@; 206 244 am__v_CCLD_1 = 245 <<<<<<< HEAD 246 SOURCES = $(libcfa_la_SOURCES) 247 DIST_SOURCES = $(libcfa_la_SOURCES) 248 ======= 207 249 SOURCES = $(libcfa_a_SOURCES) 208 250 DIST_SOURCES = $(am__libcfa_a_SOURCES_DIST) 251 >>>>>>> master 209 252 am__can_run_installinfo = \ 210 253 case $$AM_UPDATE_INFO_DIR in \ … … 242 285 CTAGS = ctags 243 286 am__DIST_COMMON = $(srcdir)/../../src/cfa.make $(srcdir)/Makefile.in \ 244 $(top_srcdir)/ ./automake/depcomp287 $(top_srcdir)/automake/depcomp 245 288 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 246 289 VPATH = @srcdir@ :../prelude … … 248 291 AMTAR = @AMTAR@ 249 292 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 293 AR = @AR@ 250 294 ARCHITECTURE = @ARCHITECTURE@ 251 295 ARCH_FLAGS = @ARCH_FLAGS@ … … 271 315 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 272 316 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 317 CPP = @CPP@ 273 318 CPPFLAGS = @CPPFLAGS@ 274 319 CXX = @CXX@ 320 CXXCPP = @CXXCPP@ 275 321 CXXDEPMODE = @CXXDEPMODE@ 276 322 CXXFLAGS = @CXXFLAGS@ … … 278 324 DEFS = @DEFS@ 279 325 DEPDIR = @DEPDIR@ 326 DLLTOOL = @DLLTOOL@ 280 327 DRIVER_DIR = @DRIVER_DIR@ 328 DSYMUTIL = @DSYMUTIL@ 329 DUMPBIN = @DUMPBIN@ 281 330 ECHO_C = @ECHO_C@ 282 331 ECHO_N = @ECHO_N@ 283 332 ECHO_T = @ECHO_T@ 333 EGREP = @EGREP@ 284 334 EXEEXT = @EXEEXT@ 335 FGREP = @FGREP@ 336 GREP = @GREP@ 285 337 INSTALL = @INSTALL@ 286 338 INSTALL_DATA = @INSTALL_DATA@ … … 288 340 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 289 341 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 342 LD = @LD@ 290 343 LDFLAGS = @LDFLAGS@ 291 344 LIBOBJS = @LIBOBJS@ 292 345 LIBS = @LIBS@ 346 LIBTOOL = @LIBTOOL@ 347 LIPO = @LIPO@ 348 LN_S = @LN_S@ 293 349 LTLIBOBJS = @LTLIBOBJS@ 350 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 294 351 MAKEINFO = @MAKEINFO@ 352 MANIFEST_TOOL = @MANIFEST_TOOL@ 295 353 MKDIR_P = @MKDIR_P@ 354 NM = @NM@ 355 NMEDIT = @NMEDIT@ 356 OBJDUMP = @OBJDUMP@ 296 357 OBJEXT = @OBJEXT@ 358 OTOOL = @OTOOL@ 359 OTOOL64 = @OTOOL64@ 297 360 PACKAGE = @PACKAGE@ 298 361 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 304 367 PATH_SEPARATOR = @PATH_SEPARATOR@ 305 368 RANLIB = @RANLIB@ 369 SED = @SED@ 306 370 SET_MAKE = @SET_MAKE@ 307 371 SHELL = @SHELL@ … … 312 376 abs_top_builddir = @abs_top_builddir@ 313 377 abs_top_srcdir = @abs_top_srcdir@ 378 ac_ct_AR = @ac_ct_AR@ 314 379 ac_ct_CC = @ac_ct_CC@ 315 380 ac_ct_CXX = @ac_ct_CXX@ 381 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 316 382 am__include = @am__include@ 317 383 am__leading_dot = @am__leading_dot@ … … 320 386 am__untar = @am__untar@ 321 387 bindir = @bindir@ 388 build = @build@ 322 389 build_alias = @build_alias@ 390 build_cpu = @build_cpu@ 391 build_os = @build_os@ 392 build_vendor = @build_vendor@ 323 393 builddir = @builddir@ 324 394 datadir = @datadir@ … … 327 397 dvidir = @dvidir@ 328 398 exec_prefix = @exec_prefix@ 399 host = @host@ 329 400 host_alias = @host_alias@ 401 host_cpu = @host_cpu@ 402 host_os = @host_os@ 403 host_vendor = @host_vendor@ 330 404 htmldir = @htmldir@ 331 405 includedir = @includedir@ … … 355 429 # create object files in directory with source files 356 430 AUTOMAKE_OPTIONS = foreign subdir-objects 431 <<<<<<< HEAD 432 ACLOCAL_AMFLAGS = -I automake 433 ======= 434 >>>>>>> master 357 435 ARFLAGS = cr 358 436 CFACOMPILE = $(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS) 437 LTCFACOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 438 $(LIBTOOLFLAGS) --mode=compile $(CFACC) $(DEFS) \ 439 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) \ 440 $(AM_CFLAGS) $(CFLAGS) 441 359 442 AM_V_CFA = $(am__v_CFA_@AM_V@) 360 443 am__v_CFA_ = $(am__v_CFA_@AM_DEFAULT_V@) 361 444 am__v_CFA_0 = @echo " CFA " $@; 362 445 am__v_CFA_1 = 363 lib_L IBRARIES = libcfa.a446 lib_LTLIBRARIES = libcfa.la 364 447 365 448 # AM_CFLAGS for all cfa source … … 367 450 # use -no-include-stdhdr to prevent rebuild cycles 368 451 # The built sources must not depend on the installed headers 452 <<<<<<< HEAD 453 AM_CFAFLAGS = -quiet -in-tree -imacros prelude.c -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 454 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ 455 ======= 369 456 AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 370 457 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 458 >>>>>>> master 371 459 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 372 460 @BUILDLIB_FALSE@headers = … … 375 463 376 464 # not all platforms support concurrency, add option do disable it 465 <<<<<<< HEAD 466 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa \ 467 rational.hfa time.hfa stdlib.hfa common.hfa \ 468 containers/maybe.hfa containers/pair.hfa containers/result.hfa \ 469 containers/vector.hfa concurrency/coroutine.hfa \ 470 concurrency/thread.hfa concurrency/kernel.hfa \ 471 concurrency/monitor.hfa concurrency/mutex.hfa 472 libobjs = ${headers:.hfa=.lo} 473 474 # not all platforms support concurrency, add option do disable it 475 libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa \ 476 exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} \ 477 concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa \ 478 concurrency/invoke.c concurrency/preemption.cfa 479 libcfa_la_SOURCES = ${libsrc} 480 stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ") 481 ======= 377 482 @BUILDLIB_TRUE@headers = fstream.hfa iostream.hfa iterator.hfa \ 378 483 @BUILDLIB_TRUE@ limits.hfa rational.hfa time.hfa stdlib.hfa \ … … 414 519 libcfa_a_SOURCES = prelude.cfa ${libsrc} 415 520 stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} 521 >>>>>>> master 416 522 cfa_includedir = $(CFA_INCDIR) 417 523 nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} … … 419 525 420 526 .SUFFIXES: 421 .SUFFIXES: .S .c .cfa . o .obj527 .SUFFIXES: .S .c .cfa .lo .o .obj 422 528 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../../src/cfa.make $(am__configure_deps) 423 529 @for dep in $?; do \ … … 450 556 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 451 557 $(am__aclocal_m4_deps): 452 install-libLIBRARIES: $(lib_LIBRARIES) 558 559 install-libLTLIBRARIES: $(lib_LTLIBRARIES) 453 560 @$(NORMAL_INSTALL) 454 @list='$(lib_L IBRARIES)'; test -n "$(libdir)" || list=; \561 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ 455 562 list2=; for p in $$list; do \ 456 563 if test -f $$p; then \ … … 461 568 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ 462 569 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ 463 echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \ 464 $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; } 465 @$(POST_INSTALL) 466 @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ 570 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ 571 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ 572 } 573 574 uninstall-libLTLIBRARIES: 575 @$(NORMAL_UNINSTALL) 576 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ 467 577 for p in $$list; do \ 468 if test -f $$p; then \ 469 $(am__strip_dir) \ 470 echo " ( cd '$(DESTDIR)$(libdir)' && $(RANLIB) $$f )"; \ 471 ( cd "$(DESTDIR)$(libdir)" && $(RANLIB) $$f ) || exit $$?; \ 472 else :; fi; \ 578 $(am__strip_dir) \ 579 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ 580 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ 473 581 done 474 582 475 uninstall-libLIBRARIES: 476 @$(NORMAL_UNINSTALL) 477 @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ 478 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ 479 dir='$(DESTDIR)$(libdir)'; $(am__uninstall_files_from_dir) 480 481 clean-libLIBRARIES: 482 -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES) 583 clean-libLTLIBRARIES: 584 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) 585 @list='$(lib_LTLIBRARIES)'; \ 586 locs=`for p in $$list; do echo $$p; done | \ 587 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ 588 sort -u`; \ 589 test -z "$$locs" || { \ 590 echo rm -f $${locs}; \ 591 rm -f $${locs}; \ 592 } 483 593 bits/$(am__dirstamp): 484 594 @$(MKDIR_P) bits … … 487 597 @$(MKDIR_P) bits/$(DEPDIR) 488 598 @: > bits/$(DEPDIR)/$(am__dirstamp) 489 bits/debug.$(OBJEXT): bits/$(am__dirstamp) \ 490 bits/$(DEPDIR)/$(am__dirstamp) 599 bits/debug.lo: bits/$(am__dirstamp) bits/$(DEPDIR)/$(am__dirstamp) 491 600 containers/$(am__dirstamp): 492 601 @$(MKDIR_P) containers … … 495 604 @$(MKDIR_P) containers/$(DEPDIR) 496 605 @: > containers/$(DEPDIR)/$(am__dirstamp) 497 containers/maybe. $(OBJEXT): containers/$(am__dirstamp) \606 containers/maybe.lo: containers/$(am__dirstamp) \ 498 607 containers/$(DEPDIR)/$(am__dirstamp) 499 containers/pair. $(OBJEXT): containers/$(am__dirstamp) \608 containers/pair.lo: containers/$(am__dirstamp) \ 500 609 containers/$(DEPDIR)/$(am__dirstamp) 501 containers/result. $(OBJEXT): containers/$(am__dirstamp) \610 containers/result.lo: containers/$(am__dirstamp) \ 502 611 containers/$(DEPDIR)/$(am__dirstamp) 503 containers/vector. $(OBJEXT): containers/$(am__dirstamp) \612 containers/vector.lo: containers/$(am__dirstamp) \ 504 613 containers/$(DEPDIR)/$(am__dirstamp) 505 614 concurrency/$(am__dirstamp): … … 509 618 @$(MKDIR_P) concurrency/$(DEPDIR) 510 619 @: > concurrency/$(DEPDIR)/$(am__dirstamp) 511 concurrency/coroutine. $(OBJEXT): concurrency/$(am__dirstamp) \620 concurrency/coroutine.lo: concurrency/$(am__dirstamp) \ 512 621 concurrency/$(DEPDIR)/$(am__dirstamp) 513 concurrency/thread. $(OBJEXT): concurrency/$(am__dirstamp) \622 concurrency/thread.lo: concurrency/$(am__dirstamp) \ 514 623 concurrency/$(DEPDIR)/$(am__dirstamp) 515 concurrency/kernel. $(OBJEXT): concurrency/$(am__dirstamp) \624 concurrency/kernel.lo: concurrency/$(am__dirstamp) \ 516 625 concurrency/$(DEPDIR)/$(am__dirstamp) 517 concurrency/monitor. $(OBJEXT): concurrency/$(am__dirstamp) \626 concurrency/monitor.lo: concurrency/$(am__dirstamp) \ 518 627 concurrency/$(DEPDIR)/$(am__dirstamp) 519 concurrency/mutex. $(OBJEXT): concurrency/$(am__dirstamp) \628 concurrency/mutex.lo: concurrency/$(am__dirstamp) \ 520 629 concurrency/$(DEPDIR)/$(am__dirstamp) 521 concurrency/CtxSwitch-@ARCHITECTURE@.$(OBJEXT): \ 522 concurrency/$(am__dirstamp) \ 630 concurrency/CtxSwitch-@ARCHITECTURE@.lo: concurrency/$(am__dirstamp) \ 523 631 concurrency/$(DEPDIR)/$(am__dirstamp) 524 concurrency/alarm. $(OBJEXT): concurrency/$(am__dirstamp) \632 concurrency/alarm.lo: concurrency/$(am__dirstamp) \ 525 633 concurrency/$(DEPDIR)/$(am__dirstamp) 526 concurrency/invoke. $(OBJEXT): concurrency/$(am__dirstamp) \634 concurrency/invoke.lo: concurrency/$(am__dirstamp) \ 527 635 concurrency/$(DEPDIR)/$(am__dirstamp) 528 concurrency/preemption. $(OBJEXT): concurrency/$(am__dirstamp) \636 concurrency/preemption.lo: concurrency/$(am__dirstamp) \ 529 637 concurrency/$(DEPDIR)/$(am__dirstamp) 530 638 531 libcfa.a: $(libcfa_a_OBJECTS) $(libcfa_a_DEPENDENCIES) $(EXTRA_libcfa_a_DEPENDENCIES) 532 $(AM_V_at)-rm -f libcfa.a 533 $(AM_V_AR)$(libcfa_a_AR) libcfa.a $(libcfa_a_OBJECTS) $(libcfa_a_LIBADD) 534 $(AM_V_at)$(RANLIB) libcfa.a 639 libcfa.la: $(libcfa_la_OBJECTS) $(libcfa_la_DEPENDENCIES) $(EXTRA_libcfa_la_DEPENDENCIES) 640 $(AM_V_CCLD)$(LINK) -rpath $(libdir) $(libcfa_la_OBJECTS) $(libcfa_la_LIBADD) $(LIBS) 535 641 536 642 mostlyclean-compile: 537 643 -rm -f *.$(OBJEXT) 538 644 -rm -f bits/*.$(OBJEXT) 645 -rm -f bits/*.lo 539 646 -rm -f concurrency/*.$(OBJEXT) 647 -rm -f concurrency/*.lo 540 648 -rm -f containers/*.$(OBJEXT) 649 -rm -f containers/*.lo 541 650 542 651 distclean-compile: 543 652 -rm -f *.tab.c 544 653 654 <<<<<<< HEAD 655 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception.Plo@am__quote@ 656 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/prelude.Plo@am__quote@ 657 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virtual.Plo@am__quote@ 658 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/CtxSwitch-@ARCHITECTURE@.Plo@am__quote@ 659 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/invoke.Plo@am__quote@ 660 ======= 545 661 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception.Po@am__quote@ 546 662 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virtual.Po@am__quote@ 547 663 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/CtxSwitch-@ARCHITECTURE@.Po@am__quote@ 548 664 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/invoke.Po@am__quote@ 665 >>>>>>> master 549 666 550 667 .S.o: … … 564 681 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 565 682 683 .S.lo: 684 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 685 @am__fastdepCCAS_TRUE@ $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 686 @am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo 687 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 688 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 689 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LTCPPASCOMPILE) -c -o $@ $< 690 566 691 .c.o: 567 692 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ … … 579 704 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 580 705 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 706 707 .c.lo: 708 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 709 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 710 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo 711 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 712 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 713 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< 714 715 mostlyclean-libtool: 716 -rm -f *.lo 717 718 clean-libtool: 719 -rm -rf .libs _libs 720 -rm -rf bits/.libs bits/_libs 721 -rm -rf concurrency/.libs concurrency/_libs 722 -rm -rf containers/.libs containers/_libs 581 723 install-nobase_cfa_includeHEADERS: $(nobase_cfa_include_HEADERS) 582 724 @$(NORMAL_INSTALL) … … 688 830 check-am: all-am 689 831 check: check-am 690 all-am: Makefile $(L IBRARIES) $(HEADERS)832 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 691 833 installdirs: 692 834 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(cfa_includedir)"; do \ … … 731 873 clean: clean-am 732 874 733 clean-am: clean-generic clean-libLIBRARIES mostlyclean-am 875 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ 876 mostlyclean-am 734 877 735 878 distclean: distclean-am … … 757 900 install-dvi-am: 758 901 759 install-exec-am: install-libL IBRARIES902 install-exec-am: install-libLTLIBRARIES 760 903 761 904 install-html: install-html-am … … 787 930 mostlyclean: mostlyclean-am 788 931 789 mostlyclean-am: mostlyclean-compile mostlyclean-generic 932 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 933 mostlyclean-libtool 790 934 791 935 pdf: pdf-am … … 797 941 ps-am: 798 942 799 uninstall-am: uninstall-libL IBRARIES \943 uninstall-am: uninstall-libLTLIBRARIES \ 800 944 uninstall-nobase_cfa_includeHEADERS 801 945 … … 803 947 804 948 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ 805 clean-libLIBRARIES cscopelist-am ctags ctags-am distclean \ 806 distclean-compile distclean-generic distclean-tags distdir dvi \ 807 dvi-am html html-am info info-am install install-am \ 808 install-data install-data-am install-dvi install-dvi-am \ 809 install-exec install-exec-am install-html install-html-am \ 810 install-info install-info-am install-libLIBRARIES install-man \ 949 clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ 950 ctags-am distclean distclean-compile distclean-generic \ 951 distclean-libtool distclean-tags distdir dvi dvi-am html \ 952 html-am info info-am install install-am install-data \ 953 install-data-am install-dvi install-dvi-am install-exec \ 954 install-exec-am install-html install-html-am install-info \ 955 install-info-am install-libLTLIBRARIES install-man \ 811 956 install-nobase_cfa_includeHEADERS install-pdf install-pdf-am \ 812 957 install-ps install-ps-am install-strip installcheck \ 813 958 installcheck-am installdirs maintainer-clean \ 814 959 maintainer-clean-generic maintainer-clean-local mostlyclean \ 815 mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am\816 tags tags-am uninstall uninstall-am uninstall-libLIBRARIES\817 uninstall- nobase_cfa_includeHEADERS960 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ 961 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ 962 uninstall-libLTLIBRARIES uninstall-nobase_cfa_includeHEADERS 818 963 819 964 .PRECIOUS: Makefile … … 826 971 $(libobjs) : @CFACC@ @CFACPP@ prelude.cfa 827 972 973 <<<<<<< HEAD 974 .cfa.lo: 975 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 976 $(LTCFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 977 $(am__mv) $$depbase.Tpo $$depbase.Plo 978 979 #---------------------------------------------------------------------------------------------------------------- 980 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 981 ${libobjs} : ${cfalib_DATA} 982 ======= 828 983 -include $(libdeps) 829 984 830 985 prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 831 986 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@} 987 >>>>>>> master 832 988 833 989 #---------------------------------------------------------------------------------------------------------------- -
libcfa/src/concurrency/invoke.h
r7428ad9 r6d44da1 59 59 volatile bool in_progress; 60 60 } preemption_state; 61 } kernelTLS ;61 } kernelTLS __attribute__ ((tls_model ( "initial-exec" ))); 62 62 } 63 63 -
libcfa/src/concurrency/kernel.cfa
r7428ad9 r6d44da1 57 57 //----------------------------------------------------------------------------- 58 58 // Global state 59 thread_local struct KernelThreadData kernelTLS = {59 thread_local struct KernelThreadData kernelTLS __attribute__ ((tls_model ( "initial-exec" ))) = { 60 60 NULL, 61 61 NULL, -
libcfa/src/concurrency/kernel_private.hfa
r7428ad9 r6d44da1 79 79 }; 80 80 81 extern volatile thread_local __cfa_kernel_preemption_state_t preemption_state ;81 extern volatile thread_local __cfa_kernel_preemption_state_t preemption_state __attribute__ ((tls_model ( "initial-exec" ))); 82 82 83 83 //----------------------------------------------------------------------------- -
libcfa/src/exception.c
r7428ad9 r6d44da1 246 246 } 247 247 248 #if defined(PIC) 249 #warning Exceptions not yet supported when using Position-Independent Code 250 __attribute__((noinline)) 251 void __cfaabi_ehm__try_terminate(void (*try_block)(), 252 void (*catch_block)(int index, exception_t * except), 253 __attribute__((unused)) int (*match_block)(exception_t * except)) { 254 abort(); 255 } 256 #else 248 257 // This is our personality routine. For every stack frame anotated with ".cfi_personality 0x3,__gcfa_personality_v0". 249 258 // This function will be called twice when unwinding. Once in the search phased and once in the cleanup phase. … … 477 486 ); 478 487 #endif // __i386 || __x86_64 488 #endif //PIC -
src/cfa.make
r7428ad9 r6d44da1 1 2 1 3 CFACOMPILE = $(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS) 4 LTCFACOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 5 $(LIBTOOLFLAGS) --mode=compile $(CFACC) $(DEFS) \ 6 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) \ 7 $(AM_CFLAGS) $(CFLAGS) 2 8 3 9 AM_V_CFA = $(am__v_CFA_@AM_V@) … … 10 16 $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 11 17 $(am__mv) $$depbase.Tpo $$depbase.Po 18 19 .cfa.lo: 20 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 21 $(LTCFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 22 $(am__mv) $$depbase.Tpo $$depbase.Plo
Note: See TracChangeset
for help on using the changeset viewer.