Changes in / [560812b:2725882]
- Files:
-
- 9 added
- 18 edited
-
benchmark/Makefile.in (modified) (3 diffs)
-
configure (modified) (1 diff)
-
configure.ac (modified) (1 diff)
-
doc/working/exception/impl/nopic.s (added)
-
doc/working/exception/impl/pic.s (added)
-
doc/working/exception/impl/test.c (added)
-
driver/cfa.cc (modified) (1 diff)
-
libcfa/Makefile.am (modified) (1 diff)
-
libcfa/Makefile.in (modified) (16 diffs)
-
libcfa/aclocal.m4 (modified) (1 diff)
-
libcfa/automake/libtool.m4 (added)
-
libcfa/automake/ltmain.sh (added)
-
libcfa/automake/ltoptions.m4 (added)
-
libcfa/automake/ltsugar.m4 (added)
-
libcfa/automake/ltversion.m4 (added)
-
libcfa/automake/lt~obsolete.m4 (added)
-
libcfa/configure (modified) (42 diffs)
-
libcfa/configure.ac (modified) (5 diffs)
-
libcfa/prelude/Makefile.am (modified) (2 diffs)
-
libcfa/prelude/Makefile.in (modified) (15 diffs)
-
libcfa/src/Makefile.am (modified) (7 diffs)
-
libcfa/src/Makefile.in (modified) (37 diffs)
-
libcfa/src/concurrency/invoke.h (modified) (1 diff)
-
libcfa/src/concurrency/kernel.cfa (modified) (1 diff)
-
libcfa/src/concurrency/kernel_private.hfa (modified) (1 diff)
-
libcfa/src/exception.c (modified) (2 diffs)
-
src/cfa.make (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.in
r560812b r2725882 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 .cfa.lo: 488 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 489 $(LTCFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 490 $(am__mv) $$depbase.Tpo $$depbase.Plo 491 482 492 .NOTPARALLEL: 483 493 -
configure
r560812b r2725882 3494 3494 echo -n "${LIBCFA_PATHS} " >> ${lib_dir}/config.data 3495 3495 echo -n "ARCHITECTURE=${lib_arch} " >> ${lib_dir}/config.data 3496 echo -n "CONFIGURATION=${lib_config}" >> ${lib_dir}/config.data 3496 echo -n "CONFIGURATION=${lib_config} " >> ${lib_dir}/config.data 3497 echo -n "CFA_VERSION=${ver_major}:${ver_minor}:${ver_patch}" >> ${lib_dir}/config.data 3497 3498 done 3498 3499 -
configure.ac
r560812b r2725882 172 172 echo -n "${LIBCFA_PATHS} " >> ${lib_dir}/config.data 173 173 echo -n "ARCHITECTURE=${lib_arch} " >> ${lib_dir}/config.data 174 echo -n "CONFIGURATION=${lib_config}" >> ${lib_dir}/config.data 174 echo -n "CONFIGURATION=${lib_config} " >> ${lib_dir}/config.data 175 echo -n "CFA_VERSION=${ver_major}:${ver_minor}:${ver_patch}" >> ${lib_dir}/config.data 175 176 done 176 177 -
driver/cfa.cc
r560812b r2725882 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
r560812b r2725882 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
r560812b r2725882 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@ … … 227 236 CFA_NAME = @CFA_NAME@ 228 237 CFA_PREFIX = @CFA_PREFIX@ 238 CFA_VERSION = @CFA_VERSION@ 229 239 CFLAGS = @CFLAGS@ 230 240 CONFIGURATION = @CONFIGURATION@ … … 232 242 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 233 243 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 244 CPP = @CPP@ 234 245 CPPFLAGS = @CPPFLAGS@ 235 246 CXX = @CXX@ 247 CXXCPP = @CXXCPP@ 236 248 CXXDEPMODE = @CXXDEPMODE@ 237 249 CXXFLAGS = @CXXFLAGS@ … … 239 251 DEFS = @DEFS@ 240 252 DEPDIR = @DEPDIR@ 253 DLLTOOL = @DLLTOOL@ 241 254 DRIVER_DIR = @DRIVER_DIR@ 255 DSYMUTIL = @DSYMUTIL@ 256 DUMPBIN = @DUMPBIN@ 242 257 ECHO_C = @ECHO_C@ 243 258 ECHO_N = @ECHO_N@ 244 259 ECHO_T = @ECHO_T@ 260 EGREP = @EGREP@ 245 261 EXEEXT = @EXEEXT@ 262 FGREP = @FGREP@ 263 GREP = @GREP@ 246 264 INSTALL = @INSTALL@ 247 265 INSTALL_DATA = @INSTALL_DATA@ … … 249 267 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 250 268 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 269 LD = @LD@ 251 270 LDFLAGS = @LDFLAGS@ 252 271 LIBOBJS = @LIBOBJS@ 253 272 LIBS = @LIBS@ 273 LIBTOOL = @LIBTOOL@ 274 LIPO = @LIPO@ 275 LN_S = @LN_S@ 254 276 LTLIBOBJS = @LTLIBOBJS@ 277 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 255 278 MAKEINFO = @MAKEINFO@ 279 MANIFEST_TOOL = @MANIFEST_TOOL@ 256 280 MKDIR_P = @MKDIR_P@ 281 NM = @NM@ 282 NMEDIT = @NMEDIT@ 283 OBJDUMP = @OBJDUMP@ 257 284 OBJEXT = @OBJEXT@ 285 OTOOL = @OTOOL@ 286 OTOOL64 = @OTOOL64@ 258 287 PACKAGE = @PACKAGE@ 259 288 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 265 294 PATH_SEPARATOR = @PATH_SEPARATOR@ 266 295 RANLIB = @RANLIB@ 296 SED = @SED@ 267 297 SET_MAKE = @SET_MAKE@ 268 298 SHELL = @SHELL@ … … 273 303 abs_top_builddir = @abs_top_builddir@ 274 304 abs_top_srcdir = @abs_top_srcdir@ 305 ac_ct_AR = @ac_ct_AR@ 275 306 ac_ct_CC = @ac_ct_CC@ 276 307 ac_ct_CXX = @ac_ct_CXX@ 308 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 277 309 am__include = @am__include@ 278 310 am__leading_dot = @am__leading_dot@ … … 281 313 am__untar = @am__untar@ 282 314 bindir = @bindir@ 315 build = @build@ 283 316 build_alias = @build_alias@ 317 build_cpu = @build_cpu@ 318 build_os = @build_os@ 319 build_vendor = @build_vendor@ 284 320 builddir = @builddir@ 285 321 datadir = @datadir@ … … 288 324 dvidir = @dvidir@ 289 325 exec_prefix = @exec_prefix@ 326 host = @host@ 290 327 host_alias = @host_alias@ 328 host_cpu = @host_cpu@ 329 host_os = @host_os@ 330 host_vendor = @host_vendor@ 291 331 htmldir = @htmldir@ 292 332 includedir = @includedir@ … … 314 354 top_srcdir = @top_srcdir@ 315 355 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 356 ACLOCAL_AMFLAGS = -I automake 316 357 SUBDIRS = prelude src # order important 317 358 all: all-recursive … … 351 392 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 352 393 $(am__aclocal_m4_deps): 394 395 mostlyclean-libtool: 396 -rm -f *.lo 397 398 clean-libtool: 399 -rm -rf .libs _libs 400 401 distclean-libtool: 402 -rm -f libtool config.lt 353 403 354 404 # This directory's subdirectories are mostly independent; you can cd … … 683 733 clean: clean-recursive 684 734 685 clean-am: clean-generic mostlyclean-am735 clean-am: clean-generic clean-libtool mostlyclean-am 686 736 687 737 distclean: distclean-recursive 688 738 -rm -f $(am__CONFIG_DISTCLEAN_FILES) 689 739 -rm -f Makefile 690 distclean-am: clean-am distclean-generic distclean-tags 740 distclean-am: clean-am distclean-generic distclean-libtool \ 741 distclean-tags 691 742 692 743 dvi: dvi-recursive … … 738 789 mostlyclean: mostlyclean-recursive 739 790 740 mostlyclean-am: mostlyclean-generic 791 mostlyclean-am: mostlyclean-generic mostlyclean-libtool 741 792 742 793 pdf: pdf-recursive … … 754 805 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ 755 806 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 807 clean-libtool cscope cscopelist-am ctags ctags-am dist \ 808 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ 809 dist-xz dist-zip distcheck distclean distclean-generic \ 810 distclean-libtool distclean-tags distcleancheck distdir \ 811 distuninstallcheck dvi dvi-am html html-am info info-am \ 812 install install-am install-data install-data-am install-dvi \ 813 install-dvi-am install-exec install-exec-am install-html \ 814 install-html-am install-info install-info-am install-man \ 815 install-pdf install-pdf-am install-ps install-ps-am \ 816 install-strip installcheck installcheck-am installdirs \ 817 installdirs-am maintainer-clean maintainer-clean-generic \ 818 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ 819 ps ps-am tags tags-am uninstall uninstall-am 768 820 769 821 .PRECIOUS: Makefile -
libcfa/aclocal.m4
r560812b r2725882 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
r560812b r2725882 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 … … 631 709 CFACPP 632 710 CFACC 711 CFA_VERSION 633 712 DRIVER_DIR 634 713 CONFIGURATION … … 705 784 enable_silent_rules 706 785 with_cfa_name 786 enable_shared 787 enable_static 788 with_pic 789 enable_fast_install 790 with_aix_soname 707 791 enable_dependency_tracking 792 with_gnu_ld 793 with_sysroot 794 enable_libtool_lock 708 795 ' 709 796 ac_precious_vars='build_alias … … 713 800 CONFIGURATION 714 801 DRIVER_DIR 715 CXX 716 CXXFLAGS 802 CFA_VERSION 803 CC 804 CFLAGS 717 805 LDFLAGS 718 806 LIBS 719 807 CPPFLAGS 808 LT_SYS_LIBRARY_PATH 809 CPP 810 CXX 811 CXXFLAGS 720 812 CCC 721 CC 722 CFLAGS 813 CXXCPP 723 814 CCAS 724 815 CCASFLAGS' … … 1335 1426 --program-suffix=SUFFIX append SUFFIX to installed program names 1336 1427 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1428 1429 System types: 1430 --build=BUILD configure for building on BUILD [guessed] 1431 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1337 1432 _ACEOF 1338 1433 fi … … 1350 1445 --enable-silent-rules less verbose build output (undo: "make V=1") 1351 1446 --disable-silent-rules verbose build output (undo: "make V=0") 1447 --enable-shared[=PKGS] build shared libraries [default=yes] 1448 --enable-static[=PKGS] build static libraries [default=yes] 1449 --enable-fast-install[=PKGS] 1450 optimize for fast installation [default=yes] 1352 1451 --enable-dependency-tracking 1353 1452 do not reject slow dependency extractors 1354 1453 --disable-dependency-tracking 1355 1454 speeds up one-time build 1455 --disable-libtool-lock avoid locking (might break parallel builds) 1356 1456 1357 1457 Optional Packages: … … 1359 1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1360 1460 --with-cfa-name=NAME NAME too which cfa will be installed 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1462 both] 1463 --with-aix-soname=aix|svr4|both 1464 shared library versioning (aka "SONAME") variant to 1465 provide on AIX, [default=aix]. 1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1468 compiler's sysroot if not specified). 1361 1469 1362 1470 Some influential environment variables: … … 1367 1475 deubg, nodebug, nolib (prelude-only) 1368 1476 DRIVER_DIR The path to the cforall driver directory 1369 CXX C++ compiler command 1370 CXXFLAGS C++ compiler flags 1477 CFA_VERSION The long version of cfa 1478 CC C compiler command 1479 CFLAGS C compiler flags 1371 1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1372 1481 nonstandard directory <lib dir> … … 1374 1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1375 1484 you have headers in a nonstandard directory <include dir> 1376 CC C compiler command 1377 CFLAGS C compiler flags 1485 LT_SYS_LIBRARY_PATH 1486 User-defined run-time library search path. 1487 CPP C preprocessor 1488 CXX C++ compiler command 1489 CXXFLAGS C++ compiler flags 1490 CXXCPP C++ preprocessor 1378 1491 CCAS assembler compiler command (defaults to CC) 1379 1492 CCASFLAGS assembler compiler flags (defaults to CFLAGS) … … 1458 1571 ## Autoconf initialization. ## 1459 1572 ## ------------------------ ## 1573 1574 # ac_fn_c_try_compile LINENO 1575 # -------------------------- 1576 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1577 ac_fn_c_try_compile () 1578 { 1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1580 rm -f conftest.$ac_objext 1581 if { { ac_try="$ac_compile" 1582 case "(($ac_try" in 1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1584 *) ac_try_echo=$ac_try;; 1585 esac 1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1587 $as_echo "$ac_try_echo"; } >&5 1588 (eval "$ac_compile") 2>conftest.err 1589 ac_status=$? 1590 if test -s conftest.err; then 1591 grep -v '^ *+' conftest.err >conftest.er1 1592 cat conftest.er1 >&5 1593 mv -f conftest.er1 conftest.err 1594 fi 1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1596 test $ac_status = 0; } && { 1597 test -z "$ac_c_werror_flag" || 1598 test ! -s conftest.err 1599 } && test -s conftest.$ac_objext; then : 1600 ac_retval=0 1601 else 1602 $as_echo "$as_me: failed program was:" >&5 1603 sed 's/^/| /' conftest.$ac_ext >&5 1604 1605 ac_retval=1 1606 fi 1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1608 as_fn_set_status $ac_retval 1609 1610 } # ac_fn_c_try_compile 1611 1612 # ac_fn_c_try_link LINENO 1613 # ----------------------- 1614 # Try to link conftest.$ac_ext, and return whether this succeeded. 1615 ac_fn_c_try_link () 1616 { 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 rm -f conftest.$ac_objext conftest$ac_exeext 1619 if { { ac_try="$ac_link" 1620 case "(($ac_try" in 1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1622 *) ac_try_echo=$ac_try;; 1623 esac 1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1625 $as_echo "$ac_try_echo"; } >&5 1626 (eval "$ac_link") 2>conftest.err 1627 ac_status=$? 1628 if test -s conftest.err; then 1629 grep -v '^ *+' conftest.err >conftest.er1 1630 cat conftest.er1 >&5 1631 mv -f conftest.er1 conftest.err 1632 fi 1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1634 test $ac_status = 0; } && { 1635 test -z "$ac_c_werror_flag" || 1636 test ! -s conftest.err 1637 } && test -s conftest$ac_exeext && { 1638 test "$cross_compiling" = yes || 1639 test -x conftest$ac_exeext 1640 }; then : 1641 ac_retval=0 1642 else 1643 $as_echo "$as_me: failed program was:" >&5 1644 sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647 fi 1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1650 # interfere with the next link command; also delete a directory that is 1651 # left behind by Apple's compiler. We do this before executing the actions. 1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1654 as_fn_set_status $ac_retval 1655 1656 } # ac_fn_c_try_link 1657 1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1659 # ------------------------------------------------------- 1660 # Tests whether HEADER exists and can be compiled using the include files in 1661 # INCLUDES, setting the cache variable VAR accordingly. 1662 ac_fn_c_check_header_compile () 1663 { 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666 $as_echo_n "checking for $2... " >&6; } 1667 if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669 else 1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1671 /* end confdefs.h. */ 1672 $4 1673 #include <$2> 1674 _ACEOF 1675 if ac_fn_c_try_compile "$LINENO"; then : 1676 eval "$3=yes" 1677 else 1678 eval "$3=no" 1679 fi 1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1681 fi 1682 eval ac_res=\$$3 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1684 $as_echo "$ac_res" >&6; } 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 1687 } # ac_fn_c_check_header_compile 1688 1689 # ac_fn_c_try_cpp LINENO 1690 # ---------------------- 1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1692 ac_fn_c_try_cpp () 1693 { 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 if { { ac_try="$ac_cpp conftest.$ac_ext" 1696 case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699 esac 1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701 $as_echo "$ac_try_echo"; } >&5 1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1703 ac_status=$? 1704 if test -s conftest.err; then 1705 grep -v '^ *+' conftest.err >conftest.er1 1706 cat conftest.er1 >&5 1707 mv -f conftest.er1 conftest.err 1708 fi 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } > conftest.i && { 1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1712 test ! -s conftest.err 1713 }; then : 1714 ac_retval=0 1715 else 1716 $as_echo "$as_me: failed program was:" >&5 1717 sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=1 1720 fi 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724 } # ac_fn_c_try_cpp 1725 1726 # ac_fn_c_try_run LINENO 1727 # ---------------------- 1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1729 # that executables *can* be run. 1730 ac_fn_c_try_run () 1731 { 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 if { { ac_try="$ac_link" 1734 case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737 esac 1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739 $as_echo "$ac_try_echo"; } >&5 1740 (eval "$ac_link") 2>&5 1741 ac_status=$? 1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1744 { { case "(($ac_try" in 1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1746 *) ac_try_echo=$ac_try;; 1747 esac 1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1749 $as_echo "$ac_try_echo"; } >&5 1750 (eval "$ac_try") 2>&5 1751 ac_status=$? 1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1753 test $ac_status = 0; }; }; then : 1754 ac_retval=0 1755 else 1756 $as_echo "$as_me: program exited with status $ac_status" >&5 1757 $as_echo "$as_me: failed program was:" >&5 1758 sed 's/^/| /' conftest.$ac_ext >&5 1759 1760 ac_retval=$ac_status 1761 fi 1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1764 as_fn_set_status $ac_retval 1765 1766 } # ac_fn_c_try_run 1767 1768 # ac_fn_c_check_func LINENO FUNC VAR 1769 # ---------------------------------- 1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1771 ac_fn_c_check_func () 1772 { 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1775 $as_echo_n "checking for $2... " >&6; } 1776 if eval \${$3+:} false; then : 1777 $as_echo_n "(cached) " >&6 1778 else 1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1780 /* end confdefs.h. */ 1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1783 #define $2 innocuous_$2 1784 1785 /* System header to define __stub macros and hopefully few prototypes, 1786 which can conflict with char $2 (); below. 1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1788 <limits.h> exists even on freestanding compilers. */ 1789 1790 #ifdef __STDC__ 1791 # include <limits.h> 1792 #else 1793 # include <assert.h> 1794 #endif 1795 1796 #undef $2 1797 1798 /* Override any GCC internal prototype to avoid an error. 1799 Use char because int might match the return type of a GCC 1800 builtin and then its argument prototype would still apply. */ 1801 #ifdef __cplusplus 1802 extern "C" 1803 #endif 1804 char $2 (); 1805 /* The GNU C library defines this for functions which it implements 1806 to always fail with ENOSYS. Some functions are actually named 1807 something starting with __ and the normal name is an alias. */ 1808 #if defined __stub_$2 || defined __stub___$2 1809 choke me 1810 #endif 1811 1812 int 1813 main () 1814 { 1815 return $2 (); 1816 ; 1817 return 0; 1818 } 1819 _ACEOF 1820 if ac_fn_c_try_link "$LINENO"; then : 1821 eval "$3=yes" 1822 else 1823 eval "$3=no" 1824 fi 1825 rm -f core conftest.err conftest.$ac_objext \ 1826 conftest$ac_exeext conftest.$ac_ext 1827 fi 1828 eval ac_res=\$$3 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830 $as_echo "$ac_res" >&6; } 1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1832 1833 } # ac_fn_c_check_func 1460 1834 1461 1835 # ac_fn_cxx_try_compile LINENO … … 1497 1871 } # ac_fn_cxx_try_compile 1498 1872 1499 # ac_fn_c _try_compileLINENO1500 # ------------------------ --1501 # Try to compileconftest.$ac_ext, and return whether this succeeded.1502 ac_fn_c _try_compile()1873 # ac_fn_cxx_try_cpp LINENO 1874 # ------------------------ 1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1876 ac_fn_cxx_try_cpp () 1503 1877 { 1504 1878 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" 1879 if { { ac_try="$ac_cpp conftest.$ac_ext" 1507 1880 case "(($ac_try" in 1508 1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; … … 1511 1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1512 1885 $as_echo "$ac_try_echo"; } >&5 1513 (eval "$ac_compile") 2>conftest.err 1886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1887 ac_status=$? 1888 if test -s conftest.err; then 1889 grep -v '^ *+' conftest.err >conftest.er1 1890 cat conftest.er1 >&5 1891 mv -f conftest.er1 conftest.err 1892 fi 1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1894 test $ac_status = 0; } > conftest.i && { 1895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1896 test ! -s conftest.err 1897 }; then : 1898 ac_retval=0 1899 else 1900 $as_echo "$as_me: failed program was:" >&5 1901 sed 's/^/| /' conftest.$ac_ext >&5 1902 1903 ac_retval=1 1904 fi 1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1906 as_fn_set_status $ac_retval 1907 1908 } # ac_fn_cxx_try_cpp 1909 1910 # ac_fn_cxx_try_link LINENO 1911 # ------------------------- 1912 # Try to link conftest.$ac_ext, and return whether this succeeded. 1913 ac_fn_cxx_try_link () 1914 { 1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1916 rm -f conftest.$ac_objext conftest$ac_exeext 1917 if { { ac_try="$ac_link" 1918 case "(($ac_try" in 1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1920 *) ac_try_echo=$ac_try;; 1921 esac 1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1923 $as_echo "$ac_try_echo"; } >&5 1924 (eval "$ac_link") 2>conftest.err 1514 1925 ac_status=$? 1515 1926 if test -s conftest.err; then … … 1520 1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1521 1932 test $ac_status = 0; } && { 1522 test -z "$ac_c _werror_flag" ||1933 test -z "$ac_cxx_werror_flag" || 1523 1934 test ! -s conftest.err 1524 } && test -s conftest.$ac_objext; then : 1935 } && test -s conftest$ac_exeext && { 1936 test "$cross_compiling" = yes || 1937 test -x conftest$ac_exeext 1938 }; then : 1525 1939 ac_retval=0 1526 1940 else … … 1530 1944 ac_retval=1 1531 1945 fi 1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1948 # interfere with the next link command; also delete a directory that is 1949 # left behind by Apple's compiler. We do this before executing the actions. 1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1532 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1533 1952 as_fn_set_status $ac_retval 1534 1953 1535 } # ac_fn_c _try_compile1954 } # ac_fn_cxx_try_link 1536 1955 cat >config.log <<_ACEOF 1537 1956 This file contains any messages produced by compilers while … … 1887 2306 1888 2307 ac_aux_dir= 1889 for ac_dir in ./automake "$srcdir"/./automake; do2308 for ac_dir in automake "$srcdir"/automake; do 1890 2309 if test -f "$ac_dir/install-sh"; then 1891 2310 ac_aux_dir=$ac_dir … … 1903 2322 done 1904 2323 if test -z "$ac_aux_dir"; then 1905 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./automake \"$srcdir\"/./automake" "$LINENO" 52324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 5 1906 2325 fi 1907 2326 … … 1913 2332 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 1914 2333 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2334 1915 2335 1916 2336 … … 2515 2935 2516 2936 2937 2517 2938 CFACC=${DRIVER_DIR}cfa 2518 2939 CFACPP=${DRIVER_DIR}cfa-cpp 2940 2519 2941 2520 2942 … … 2648 3070 2649 3071 # 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 3072 case `pwd` in 3073 *\ * | *\ *) 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3075 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3076 esac 3077 3078 3079 3080 macro_version='2.4.6' 3081 macro_revision='2.4.6' 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 ltmain=$ac_aux_dir/ltmain.sh 3096 3097 # Make sure we can run config.sub. 3098 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3099 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3100 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3102 $as_echo_n "checking build system type... " >&6; } 3103 if ${ac_cv_build+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105 else 3106 ac_build_alias=$build_alias 3107 test "x$ac_build_alias" = x && 3108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3109 test "x$ac_build_alias" = x && 3110 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3112 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3113 3114 fi 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3116 $as_echo "$ac_cv_build" >&6; } 3117 case $ac_cv_build in 3118 *-*-*) ;; 3119 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3120 esac 3121 build=$ac_cv_build 3122 ac_save_IFS=$IFS; IFS='-' 3123 set x $ac_cv_build 3124 shift 3125 build_cpu=$1 3126 build_vendor=$2 3127 shift; shift 3128 # Remember, the first character of IFS is used to create $*, 3129 # except with old shells: 3130 build_os=$* 3131 IFS=$ac_save_IFS 3132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3133 3134 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3136 $as_echo_n "checking host system type... " >&6; } 3137 if ${ac_cv_host+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139 else 3140 if test "x$host_alias" = x; then 3141 ac_cv_host=$ac_cv_build 3142 else 3143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3144 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3145 fi 3146 3147 fi 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3149 $as_echo "$ac_cv_host" >&6; } 3150 case $ac_cv_host in 3151 *-*-*) ;; 3152 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3153 esac 3154 host=$ac_cv_host 3155 ac_save_IFS=$IFS; IFS='-' 3156 set x $ac_cv_host 3157 shift 3158 host_cpu=$1 3159 host_vendor=$2 3160 shift; shift 3161 # Remember, the first character of IFS is used to create $*, 3162 # except with old shells: 3163 host_os=$* 3164 IFS=$ac_save_IFS 3165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3166 3167 3168 # Backslashify metacharacters that are still active within 3169 # double-quoted strings. 3170 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3171 3172 # Same as above, but do not quote variable references. 3173 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3174 3175 # Sed substitution to delay expansion of an escaped shell variable in a 3176 # double_quote_subst'ed string. 3177 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3178 3179 # Sed substitution to delay expansion of an escaped single quote. 3180 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3181 3182 # Sed substitution to avoid accidental globbing in evaled expressions 3183 no_glob_subst='s/\*/\\\*/g' 3184 3185 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3186 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3187 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3188 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3190 $as_echo_n "checking how to print strings... " >&6; } 3191 # Test print first, because it will be a builtin if present. 3192 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3193 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3194 ECHO='print -r --' 3195 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3196 ECHO='printf %s\n' 3197 else 3198 # Use this function as a fallback that always works. 3199 func_fallback_echo () 3200 { 3201 eval 'cat <<_LTECHO_EOF 3202 $1 3203 _LTECHO_EOF' 3204 } 3205 ECHO='func_fallback_echo' 3206 fi 3207 3208 # func_echo_all arg... 3209 # Invoke $ECHO with all args, space-separated. 3210 func_echo_all () 3211 { 3212 $ECHO "" 3213 } 3214 3215 case $ECHO in 3216 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3217 $as_echo "printf" >&6; } ;; 3218 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3219 $as_echo "print -r" >&6; } ;; 3220 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3221 $as_echo "cat" >&6; } ;; 3222 esac 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 DEPDIR="${am__leading_dot}deps" 3238 3239 ac_config_commands="$ac_config_commands depfiles" 3240 3241 3242 am_make=${MAKE-make} 3243 cat > confinc << 'END' 3244 am__doit: 3245 @echo this is the am__doit target 3246 .PHONY: am__doit 3247 END 3248 # If we don't find an include directive, just comment out the code. 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3250 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3251 am__include="#" 3252 am__quote= 3253 _am_result=none 3254 # First try GNU make style include. 3255 echo "include confinc" > confmf 3256 # Ignore all kinds of additional output from 'make'. 3257 case `$am_make -s -f confmf 2> /dev/null` in #( 3258 *the\ am__doit\ target*) 3259 am__include=include 3260 am__quote= 3261 _am_result=GNU 3262 ;; 3263 esac 3264 # Now try BSD make style include. 3265 if test "$am__include" = "#"; then 3266 echo '.include "confinc"' > confmf 3267 case `$am_make -s -f confmf 2> /dev/null` in #( 3268 *the\ am__doit\ target*) 3269 am__include=.include 3270 am__quote="\"" 3271 _am_result=BSD 3272 ;; 3273 esac 3274 fi 3275 3276 3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3278 $as_echo "$_am_result" >&6; } 3279 rm -f confinc confmf 3280 3281 # Check whether --enable-dependency-tracking was given. 3282 if test "${enable_dependency_tracking+set}" = set; then : 3283 enableval=$enable_dependency_tracking; 3284 fi 3285 3286 if test "x$enable_dependency_tracking" != xno; then 3287 am_depcomp="$ac_aux_dir/depcomp" 3288 AMDEPBACKSLASH='\' 3289 am__nodep='_no' 3290 fi 3291 if test "x$enable_dependency_tracking" != xno; then 3292 AMDEP_TRUE= 3293 AMDEP_FALSE='#' 3294 else 3295 AMDEP_TRUE='#' 3296 AMDEP_FALSE= 3297 fi 3298 3299 3300 ac_ext=c 3301 ac_cpp='$CPP $CPPFLAGS' 3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3305 if test -n "$ac_tool_prefix"; then 3306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3307 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2664 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2665 3309 $as_echo_n "checking for $ac_word... " >&6; } 2666 if ${ac_cv_prog_C XX+:} false; then :3310 if ${ac_cv_prog_CC+:} false; then : 2667 3311 $as_echo_n "(cached) " >&6 2668 3312 else 2669 if test -n "$C XX"; then2670 ac_cv_prog_C XX="$CXX" # Let the user override the test.3313 if test -n "$CC"; then 3314 ac_cv_prog_CC="$CC" # Let the user override the test. 2671 3315 else 2672 3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2677 3321 for ac_exec_ext in '' $ac_executable_extensions; do 2678 3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2679 ac_cv_prog_C XX="$ac_tool_prefix$ac_prog"3323 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2680 3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 3325 break 2 … … 2687 3331 fi 2688 3332 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; }3333 CC=$ac_cv_prog_CC 3334 if test -n "$CC"; then 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3336 $as_echo "$CC" >&6; } 2693 3337 else 2694 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 2697 3341 2698 3342 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 3343 fi 3344 if test -z "$ac_cv_prog_CC"; then 3345 ac_ct_CC=$CC 3346 # Extract the first word of "gcc", so it can be a program name with args. 3347 set dummy gcc; ac_word=$2 2708 3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709 3349 $as_echo_n "checking for $ac_word... " >&6; } 2710 if ${ac_cv_prog_ac_ct_C XX+:} false; then :3350 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2711 3351 $as_echo_n "(cached) " >&6 2712 3352 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.3353 if test -n "$ac_ct_CC"; then 3354 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2715 3355 else 2716 3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 2721 3361 for ac_exec_ext in '' $ac_executable_extensions; do 2722 3362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2723 ac_cv_prog_ac_ct_C XX="$ac_prog"3363 ac_cv_prog_ac_ct_CC="gcc" 2724 3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 3365 break 2 … … 2731 3371 fi 2732 3372 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; }3373 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3374 if test -n "$ac_ct_CC"; then 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3376 $as_echo "$ac_ct_CC" >&6; } 2737 3377 else 2738 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 2740 3380 fi 2741 3381 2742 2743 test -n "$ac_ct_CXX" && break 2744 done 2745 2746 if test "x$ac_ct_CXX" = x; then 2747 CXX="g++" 3382 if test "x$ac_ct_CC" = x; then 3383 CC="" 2748 3384 else 2749 3385 case $cross_compiling:$ac_tool_warned in … … 2753 3389 ac_tool_warned=yes ;; 2754 3390 esac 2755 C XX=$ac_ct_CXX3391 CC=$ac_ct_CC 2756 3392 fi 2757 fi 2758 3393 else 3394 CC="$ac_cv_prog_CC" 3395 fi 3396 3397 if test -z "$CC"; then 3398 if test -n "$ac_tool_prefix"; then 3399 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3400 set dummy ${ac_tool_prefix}cc; ac_word=$2 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3402 $as_echo_n "checking for $ac_word... " >&6; } 3403 if ${ac_cv_prog_CC+:} false; then : 3404 $as_echo_n "(cached) " >&6 3405 else 3406 if test -n "$CC"; then 3407 ac_cv_prog_CC="$CC" # Let the user override the test. 3408 else 3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3410 for as_dir in $PATH 3411 do 3412 IFS=$as_save_IFS 3413 test -z "$as_dir" && as_dir=. 3414 for ac_exec_ext in '' $ac_executable_extensions; do 3415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3416 ac_cv_prog_CC="${ac_tool_prefix}cc" 3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3418 break 2 2759 3419 fi 2760 fi 3420 done 3421 done 3422 IFS=$as_save_IFS 3423 3424 fi 3425 fi 3426 CC=$ac_cv_prog_CC 3427 if test -n "$CC"; then 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3429 $as_echo "$CC" >&6; } 3430 else 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3432 $as_echo "no" >&6; } 3433 fi 3434 3435 3436 fi 3437 fi 3438 if test -z "$CC"; then 3439 # Extract the first word of "cc", so it can be a program name with args. 3440 set dummy cc; ac_word=$2 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3442 $as_echo_n "checking for $ac_word... " >&6; } 3443 if ${ac_cv_prog_CC+:} false; then : 3444 $as_echo_n "(cached) " >&6 3445 else 3446 if test -n "$CC"; then 3447 ac_cv_prog_CC="$CC" # Let the user override the test. 3448 else 3449 ac_prog_rejected=no 3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3451 for as_dir in $PATH 3452 do 3453 IFS=$as_save_IFS 3454 test -z "$as_dir" && as_dir=. 3455 for ac_exec_ext in '' $ac_executable_extensions; do 3456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3457 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3458 ac_prog_rejected=yes 3459 continue 3460 fi 3461 ac_cv_prog_CC="cc" 3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3463 break 2 3464 fi 3465 done 3466 done 3467 IFS=$as_save_IFS 3468 3469 if test $ac_prog_rejected = yes; then 3470 # We found a bogon in the path, so make sure we never use it. 3471 set dummy $ac_cv_prog_CC 3472 shift 3473 if test $# != 0; then 3474 # We chose a different compiler from the bogus one. 3475 # However, it has the same basename, so the bogon will be chosen 3476 # first if we set CC to just the basename; use the full file name. 3477 shift 3478 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3479 fi 3480 fi 3481 fi 3482 fi 3483 CC=$ac_cv_prog_CC 3484 if test -n "$CC"; then 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3486 $as_echo "$CC" >&6; } 3487 else 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3489 $as_echo "no" >&6; } 3490 fi 3491 3492 3493 fi 3494 if test -z "$CC"; then 3495 if test -n "$ac_tool_prefix"; then 3496 for ac_prog in cl.exe 3497 do 3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3499 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3501 $as_echo_n "checking for $ac_word... " >&6; } 3502 if ${ac_cv_prog_CC+:} false; then : 3503 $as_echo_n "(cached) " >&6 3504 else 3505 if test -n "$CC"; then 3506 ac_cv_prog_CC="$CC" # Let the user override the test. 3507 else 3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3509 for as_dir in $PATH 3510 do 3511 IFS=$as_save_IFS 3512 test -z "$as_dir" && as_dir=. 3513 for ac_exec_ext in '' $ac_executable_extensions; do 3514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3515 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3517 break 2 3518 fi 3519 done 3520 done 3521 IFS=$as_save_IFS 3522 3523 fi 3524 fi 3525 CC=$ac_cv_prog_CC 3526 if test -n "$CC"; then 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3528 $as_echo "$CC" >&6; } 3529 else 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3531 $as_echo "no" >&6; } 3532 fi 3533 3534 3535 test -n "$CC" && break 3536 done 3537 fi 3538 if test -z "$CC"; then 3539 ac_ct_CC=$CC 3540 for ac_prog in cl.exe 3541 do 3542 # Extract the first word of "$ac_prog", so it can be a program name with args. 3543 set dummy $ac_prog; ac_word=$2 3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3545 $as_echo_n "checking for $ac_word... " >&6; } 3546 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3547 $as_echo_n "(cached) " >&6 3548 else 3549 if test -n "$ac_ct_CC"; then 3550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3551 else 3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553 for as_dir in $PATH 3554 do 3555 IFS=$as_save_IFS 3556 test -z "$as_dir" && as_dir=. 3557 for ac_exec_ext in '' $ac_executable_extensions; do 3558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3559 ac_cv_prog_ac_ct_CC="$ac_prog" 3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3561 break 2 3562 fi 3563 done 3564 done 3565 IFS=$as_save_IFS 3566 3567 fi 3568 fi 3569 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3570 if test -n "$ac_ct_CC"; then 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3572 $as_echo "$ac_ct_CC" >&6; } 3573 else 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3575 $as_echo "no" >&6; } 3576 fi 3577 3578 3579 test -n "$ac_ct_CC" && break 3580 done 3581 3582 if test "x$ac_ct_CC" = x; then 3583 CC="" 3584 else 3585 case $cross_compiling:$ac_tool_warned in 3586 yes:) 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3589 ac_tool_warned=yes ;; 3590 esac 3591 CC=$ac_ct_CC 3592 fi 3593 fi 3594 3595 fi 3596 3597 3598 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3600 as_fn_error $? "no acceptable C compiler found in \$PATH 3601 See \`config.log' for more details" "$LINENO" 5; } 3602 2761 3603 # Provide some information about the compiler. 2762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C ++compiler version" >&53604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2763 3605 set X $ac_compile 2764 3606 ac_compiler=$2 … … 2800 3642 # It will help us diagnose broken compilers, and finding out an intuition 2801 3643 # 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; }3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3645 $as_echo_n "checking whether the C compiler works... " >&6; } 2804 3646 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2805 3647 … … 2871 3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2872 3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2873 as_fn_error 77 "C ++compiler cannot create executables3715 as_fn_error 77 "C compiler cannot create executables 2874 3716 See \`config.log' for more details" "$LINENO" 5; } 2875 3717 else … … 2877 3719 $as_echo "yes" >&6; } 2878 3720 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; }3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3722 $as_echo_n "checking for C compiler default output file name... " >&6; } 2881 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2882 3724 $as_echo "$ac_file" >&6; } … … 2972 3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2973 3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2974 as_fn_error $? "cannot run C ++compiled programs.3816 as_fn_error $? "cannot run C compiled programs. 2975 3817 If you meant to cross compile, use \`--host'. 2976 3818 See \`config.log' for more details" "$LINENO" 5; } … … 3034 3876 OBJEXT=$ac_cv_objext 3035 3877 ac_objext=$OBJEXT 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3880 if ${ac_cv_c_compiler_gnu+:} false; then : 3881 $as_echo_n "(cached) " >&6 3882 else 3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3884 /* end confdefs.h. */ 3885 3886 int 3887 main () 3888 { 3889 #ifndef __GNUC__ 3890 choke me 3891 #endif 3892 3893 ; 3894 return 0; 3895 } 3896 _ACEOF 3897 if ac_fn_c_try_compile "$LINENO"; then : 3898 ac_compiler_gnu=yes 3899 else 3900 ac_compiler_gnu=no 3901 fi 3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3903 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3904 3905 fi 3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3907 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3908 if test $ac_compiler_gnu = yes; then 3909 GCC=yes 3910 else 3911 GCC= 3912 fi 3913 ac_test_CFLAGS=${CFLAGS+set} 3914 ac_save_CFLAGS=$CFLAGS 3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3916 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3917 if ${ac_cv_prog_cc_g+:} false; then : 3918 $as_echo_n "(cached) " >&6 3919 else 3920 ac_save_c_werror_flag=$ac_c_werror_flag 3921 ac_c_werror_flag=yes 3922 ac_cv_prog_cc_g=no 3923 CFLAGS="-g" 3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3925 /* end confdefs.h. */ 3926 3927 int 3928 main () 3929 { 3930 3931 ; 3932 return 0; 3933 } 3934 _ACEOF 3935 if ac_fn_c_try_compile "$LINENO"; then : 3936 ac_cv_prog_cc_g=yes 3937 else 3938 CFLAGS="" 3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3940 /* end confdefs.h. */ 3941 3942 int 3943 main () 3944 { 3945 3946 ; 3947 return 0; 3948 } 3949 _ACEOF 3950 if ac_fn_c_try_compile "$LINENO"; then : 3951 3952 else 3953 ac_c_werror_flag=$ac_save_c_werror_flag 3954 CFLAGS="-g" 3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3956 /* end confdefs.h. */ 3957 3958 int 3959 main () 3960 { 3961 3962 ; 3963 return 0; 3964 } 3965 _ACEOF 3966 if ac_fn_c_try_compile "$LINENO"; then : 3967 ac_cv_prog_cc_g=yes 3968 fi 3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3970 fi 3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3972 fi 3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3974 ac_c_werror_flag=$ac_save_c_werror_flag 3975 fi 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3977 $as_echo "$ac_cv_prog_cc_g" >&6; } 3978 if test "$ac_test_CFLAGS" = set; then 3979 CFLAGS=$ac_save_CFLAGS 3980 elif test $ac_cv_prog_cc_g = yes; then 3981 if test "$GCC" = yes; then 3982 CFLAGS="-g -O2" 3983 else 3984 CFLAGS="-g" 3985 fi 3986 else 3987 if test "$GCC" = yes; then 3988 CFLAGS="-O2" 3989 else 3990 CFLAGS= 3991 fi 3992 fi 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3994 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3995 if ${ac_cv_prog_cc_c89+:} false; then : 3996 $as_echo_n "(cached) " >&6 3997 else 3998 ac_cv_prog_cc_c89=no 3999 ac_save_CC=$CC 4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4001 /* end confdefs.h. */ 4002 #include <stdarg.h> 4003 #include <stdio.h> 4004 struct stat; 4005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4006 struct buf { int x; }; 4007 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4008 static char *e (p, i) 4009 char **p; 4010 int i; 4011 { 4012 return p[i]; 4013 } 4014 static char *f (char * (*g) (char **, int), char **p, ...) 4015 { 4016 char *s; 4017 va_list v; 4018 va_start (v,p); 4019 s = g (p, va_arg (v,int)); 4020 va_end (v); 4021 return s; 4022 } 4023 4024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4025 function prototypes and stuff, but not '\xHH' hex character constants. 4026 These don't provoke an error unfortunately, instead are silently treated 4027 as 'x'. The following induces an error, until -std is added to get 4028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4029 array size at least. It's necessary to write '\x00'==0 to get something 4030 that's true only with -std. */ 4031 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4032 4033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4034 inside strings and character constants. */ 4035 #define FOO(x) 'x' 4036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4037 4038 int test (int i, double x); 4039 struct s1 {int (*f) (int a);}; 4040 struct s2 {int (*f) (double a);}; 4041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4042 int argc; 4043 char **argv; 4044 int 4045 main () 4046 { 4047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4048 ; 4049 return 0; 4050 } 4051 _ACEOF 4052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4054 do 4055 CC="$ac_save_CC $ac_arg" 4056 if ac_fn_c_try_compile "$LINENO"; then : 4057 ac_cv_prog_cc_c89=$ac_arg 4058 fi 4059 rm -f core conftest.err conftest.$ac_objext 4060 test "x$ac_cv_prog_cc_c89" != "xno" && break 4061 done 4062 rm -f conftest.$ac_ext 4063 CC=$ac_save_CC 4064 4065 fi 4066 # AC_CACHE_VAL 4067 case "x$ac_cv_prog_cc_c89" in 4068 x) 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4070 $as_echo "none needed" >&6; } ;; 4071 xno) 4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4073 $as_echo "unsupported" >&6; } ;; 4074 *) 4075 CC="$CC $ac_cv_prog_cc_c89" 4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4077 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4078 esac 4079 if test "x$ac_cv_prog_cc_c89" != xno; then : 4080 4081 fi 4082 4083 ac_ext=c 4084 ac_cpp='$CPP $CPPFLAGS' 4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4088 4089 ac_ext=c 4090 ac_cpp='$CPP $CPPFLAGS' 4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4095 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4096 if ${am_cv_prog_cc_c_o+:} false; then : 4097 $as_echo_n "(cached) " >&6 4098 else 4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4100 /* end confdefs.h. */ 4101 4102 int 4103 main () 4104 { 4105 4106 ; 4107 return 0; 4108 } 4109 _ACEOF 4110 # Make sure it works both with $CC and with simple cc. 4111 # Following AC_PROG_CC_C_O, we do the test twice because some 4112 # compilers refuse to overwrite an existing .o file with -o, 4113 # though they will create one. 4114 am_cv_prog_cc_c_o=yes 4115 for am_i in 1 2; do 4116 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4117 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4118 ac_status=$? 4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4120 (exit $ac_status); } \ 4121 && test -f conftest2.$ac_objext; then 4122 : OK 4123 else 4124 am_cv_prog_cc_c_o=no 4125 break 4126 fi 4127 done 4128 rm -f core conftest* 4129 unset am_i 4130 fi 4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4132 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4133 if test "$am_cv_prog_cc_c_o" != yes; then 4134 # Losing compiler, so override with the script. 4135 # FIXME: It is wrong to rewrite CC. 4136 # But if we don't then we get into trouble of one sort or another. 4137 # A longer-term fix would be to have automake use am__CC in this case, 4138 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4139 CC="$am_aux_dir/compile $CC" 4140 fi 4141 ac_ext=c 4142 ac_cpp='$CPP $CPPFLAGS' 4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4146 4147 4148 depcc="$CC" am_compiler_list= 4149 4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4151 $as_echo_n "checking dependency style of $depcc... " >&6; } 4152 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4153 $as_echo_n "(cached) " >&6 4154 else 4155 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4156 # We make a subdir and do the tests there. Otherwise we can end up 4157 # making bogus files that we don't know about and never remove. For 4158 # instance it was reported that on HP-UX the gcc test will end up 4159 # making a dummy file named 'D' -- because '-MD' means "put the output 4160 # in D". 4161 rm -rf conftest.dir 4162 mkdir conftest.dir 4163 # Copy depcomp to subdir because otherwise we won't find it if we're 4164 # using a relative directory. 4165 cp "$am_depcomp" conftest.dir 4166 cd conftest.dir 4167 # We will build objects and dependencies in a subdirectory because 4168 # it helps to detect inapplicable dependency modes. For instance 4169 # both Tru64's cc and ICC support -MD to output dependencies as a 4170 # side effect of compilation, but ICC will put the dependencies in 4171 # the current directory while Tru64 will put them in the object 4172 # directory. 4173 mkdir sub 4174 4175 am_cv_CC_dependencies_compiler_type=none 4176 if test "$am_compiler_list" = ""; then 4177 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4178 fi 4179 am__universal=false 4180 case " $depcc " in #( 4181 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4182 esac 4183 4184 for depmode in $am_compiler_list; do 4185 # Setup a source with many dependencies, because some compilers 4186 # like to wrap large dependency lists on column 80 (with \), and 4187 # we should not choose a depcomp mode which is confused by this. 4188 # 4189 # We need to recreate these files for each test, as the compiler may 4190 # overwrite some of them when testing with obscure command lines. 4191 # This happens at least with the AIX C compiler. 4192 : > sub/conftest.c 4193 for i in 1 2 3 4 5 6; do 4194 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4195 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4196 # Solaris 10 /bin/sh. 4197 echo '/* dummy */' > sub/conftst$i.h 4198 done 4199 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4200 4201 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4202 # mode. It turns out that the SunPro C++ compiler does not properly 4203 # handle '-M -o', and we need to detect this. Also, some Intel 4204 # versions had trouble with output in subdirs. 4205 am__obj=sub/conftest.${OBJEXT-o} 4206 am__minus_obj="-o $am__obj" 4207 case $depmode in 4208 gcc) 4209 # This depmode causes a compiler race in universal mode. 4210 test "$am__universal" = false || continue 4211 ;; 4212 nosideeffect) 4213 # After this tag, mechanisms are not by side-effect, so they'll 4214 # only be used when explicitly requested. 4215 if test "x$enable_dependency_tracking" = xyes; then 4216 continue 4217 else 4218 break 4219 fi 4220 ;; 4221 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4222 # This compiler won't grok '-c -o', but also, the minuso test has 4223 # not run yet. These depmodes are late enough in the game, and 4224 # so weak that their functioning should not be impacted. 4225 am__obj=conftest.${OBJEXT-o} 4226 am__minus_obj= 4227 ;; 4228 none) break ;; 4229 esac 4230 if depmode=$depmode \ 4231 source=sub/conftest.c object=$am__obj \ 4232 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4233 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4234 >/dev/null 2>conftest.err && 4235 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4236 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4237 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4238 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4239 # icc doesn't choke on unknown options, it will just issue warnings 4240 # or remarks (even with -Werror). So we grep stderr for any message 4241 # that says an option was ignored or not supported. 4242 # When given -MP, icc 7.0 and 7.1 complain thusly: 4243 # icc: Command line warning: ignoring option '-M'; no argument required 4244 # The diagnosis changed in icc 8.0: 4245 # icc: Command line remark: option '-MP' not supported 4246 if (grep 'ignoring option' conftest.err || 4247 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4248 am_cv_CC_dependencies_compiler_type=$depmode 4249 break 4250 fi 4251 fi 4252 done 4253 4254 cd .. 4255 rm -rf conftest.dir 4256 else 4257 am_cv_CC_dependencies_compiler_type=none 4258 fi 4259 4260 fi 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4262 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4263 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4264 4265 if 4266 test "x$enable_dependency_tracking" != xno \ 4267 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4268 am__fastdepCC_TRUE= 4269 am__fastdepCC_FALSE='#' 4270 else 4271 am__fastdepCC_TRUE='#' 4272 am__fastdepCC_FALSE= 4273 fi 4274 4275 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4277 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4278 if ${ac_cv_path_SED+:} false; then : 4279 $as_echo_n "(cached) " >&6 4280 else 4281 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4282 for ac_i in 1 2 3 4 5 6 7; do 4283 ac_script="$ac_script$as_nl$ac_script" 4284 done 4285 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4286 { ac_script=; unset ac_script;} 4287 if test -z "$SED"; then 4288 ac_path_SED_found=false 4289 # Loop through the user's path and test for each of PROGNAME-LIST 4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4291 for as_dir in $PATH 4292 do 4293 IFS=$as_save_IFS 4294 test -z "$as_dir" && as_dir=. 4295 for ac_prog in sed gsed; do 4296 for ac_exec_ext in '' $ac_executable_extensions; do 4297 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4298 as_fn_executable_p "$ac_path_SED" || continue 4299 # Check for GNU ac_path_SED and select it if it is found. 4300 # Check for GNU $ac_path_SED 4301 case `"$ac_path_SED" --version 2>&1` in 4302 *GNU*) 4303 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4304 *) 4305 ac_count=0 4306 $as_echo_n 0123456789 >"conftest.in" 4307 while : 4308 do 4309 cat "conftest.in" "conftest.in" >"conftest.tmp" 4310 mv "conftest.tmp" "conftest.in" 4311 cp "conftest.in" "conftest.nl" 4312 $as_echo '' >> "conftest.nl" 4313 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4315 as_fn_arith $ac_count + 1 && ac_count=$as_val 4316 if test $ac_count -gt ${ac_path_SED_max-0}; then 4317 # Best one so far, save it but keep looking for a better one 4318 ac_cv_path_SED="$ac_path_SED" 4319 ac_path_SED_max=$ac_count 4320 fi 4321 # 10*(2^10) chars as input seems more than enough 4322 test $ac_count -gt 10 && break 4323 done 4324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4325 esac 4326 4327 $ac_path_SED_found && break 3 4328 done 4329 done 4330 done 4331 IFS=$as_save_IFS 4332 if test -z "$ac_cv_path_SED"; then 4333 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4334 fi 4335 else 4336 ac_cv_path_SED=$SED 4337 fi 4338 4339 fi 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4341 $as_echo "$ac_cv_path_SED" >&6; } 4342 SED="$ac_cv_path_SED" 4343 rm -f conftest.sed 4344 4345 test -z "$SED" && SED=sed 4346 Xsed="$SED -e 1s/^X//" 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4359 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4360 if ${ac_cv_path_GREP+:} false; then : 4361 $as_echo_n "(cached) " >&6 4362 else 4363 if test -z "$GREP"; then 4364 ac_path_GREP_found=false 4365 # Loop through the user's path and test for each of PROGNAME-LIST 4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4368 do 4369 IFS=$as_save_IFS 4370 test -z "$as_dir" && as_dir=. 4371 for ac_prog in grep ggrep; do 4372 for ac_exec_ext in '' $ac_executable_extensions; do 4373 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4374 as_fn_executable_p "$ac_path_GREP" || continue 4375 # Check for GNU ac_path_GREP and select it if it is found. 4376 # Check for GNU $ac_path_GREP 4377 case `"$ac_path_GREP" --version 2>&1` in 4378 *GNU*) 4379 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4380 *) 4381 ac_count=0 4382 $as_echo_n 0123456789 >"conftest.in" 4383 while : 4384 do 4385 cat "conftest.in" "conftest.in" >"conftest.tmp" 4386 mv "conftest.tmp" "conftest.in" 4387 cp "conftest.in" "conftest.nl" 4388 $as_echo 'GREP' >> "conftest.nl" 4389 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4391 as_fn_arith $ac_count + 1 && ac_count=$as_val 4392 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4393 # Best one so far, save it but keep looking for a better one 4394 ac_cv_path_GREP="$ac_path_GREP" 4395 ac_path_GREP_max=$ac_count 4396 fi 4397 # 10*(2^10) chars as input seems more than enough 4398 test $ac_count -gt 10 && break 4399 done 4400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4401 esac 4402 4403 $ac_path_GREP_found && break 3 4404 done 4405 done 4406 done 4407 IFS=$as_save_IFS 4408 if test -z "$ac_cv_path_GREP"; then 4409 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4410 fi 4411 else 4412 ac_cv_path_GREP=$GREP 4413 fi 4414 4415 fi 4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4417 $as_echo "$ac_cv_path_GREP" >&6; } 4418 GREP="$ac_cv_path_GREP" 4419 4420 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4422 $as_echo_n "checking for egrep... " >&6; } 4423 if ${ac_cv_path_EGREP+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425 else 4426 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4427 then ac_cv_path_EGREP="$GREP -E" 4428 else 4429 if test -z "$EGREP"; then 4430 ac_path_EGREP_found=false 4431 # Loop through the user's path and test for each of PROGNAME-LIST 4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4433 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4434 do 4435 IFS=$as_save_IFS 4436 test -z "$as_dir" && as_dir=. 4437 for ac_prog in egrep; do 4438 for ac_exec_ext in '' $ac_executable_extensions; do 4439 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4440 as_fn_executable_p "$ac_path_EGREP" || continue 4441 # Check for GNU ac_path_EGREP and select it if it is found. 4442 # Check for GNU $ac_path_EGREP 4443 case `"$ac_path_EGREP" --version 2>&1` in 4444 *GNU*) 4445 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4446 *) 4447 ac_count=0 4448 $as_echo_n 0123456789 >"conftest.in" 4449 while : 4450 do 4451 cat "conftest.in" "conftest.in" >"conftest.tmp" 4452 mv "conftest.tmp" "conftest.in" 4453 cp "conftest.in" "conftest.nl" 4454 $as_echo 'EGREP' >> "conftest.nl" 4455 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4457 as_fn_arith $ac_count + 1 && ac_count=$as_val 4458 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4459 # Best one so far, save it but keep looking for a better one 4460 ac_cv_path_EGREP="$ac_path_EGREP" 4461 ac_path_EGREP_max=$ac_count 4462 fi 4463 # 10*(2^10) chars as input seems more than enough 4464 test $ac_count -gt 10 && break 4465 done 4466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4467 esac 4468 4469 $ac_path_EGREP_found && break 3 4470 done 4471 done 4472 done 4473 IFS=$as_save_IFS 4474 if test -z "$ac_cv_path_EGREP"; then 4475 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4476 fi 4477 else 4478 ac_cv_path_EGREP=$EGREP 4479 fi 4480 4481 fi 4482 fi 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4484 $as_echo "$ac_cv_path_EGREP" >&6; } 4485 EGREP="$ac_cv_path_EGREP" 4486 4487 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4489 $as_echo_n "checking for fgrep... " >&6; } 4490 if ${ac_cv_path_FGREP+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492 else 4493 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4494 then ac_cv_path_FGREP="$GREP -F" 4495 else 4496 if test -z "$FGREP"; then 4497 ac_path_FGREP_found=false 4498 # Loop through the user's path and test for each of PROGNAME-LIST 4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4501 do 4502 IFS=$as_save_IFS 4503 test -z "$as_dir" && as_dir=. 4504 for ac_prog in fgrep; do 4505 for ac_exec_ext in '' $ac_executable_extensions; do 4506 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4507 as_fn_executable_p "$ac_path_FGREP" || continue 4508 # Check for GNU ac_path_FGREP and select it if it is found. 4509 # Check for GNU $ac_path_FGREP 4510 case `"$ac_path_FGREP" --version 2>&1` in 4511 *GNU*) 4512 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4513 *) 4514 ac_count=0 4515 $as_echo_n 0123456789 >"conftest.in" 4516 while : 4517 do 4518 cat "conftest.in" "conftest.in" >"conftest.tmp" 4519 mv "conftest.tmp" "conftest.in" 4520 cp "conftest.in" "conftest.nl" 4521 $as_echo 'FGREP' >> "conftest.nl" 4522 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4524 as_fn_arith $ac_count + 1 && ac_count=$as_val 4525 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4526 # Best one so far, save it but keep looking for a better one 4527 ac_cv_path_FGREP="$ac_path_FGREP" 4528 ac_path_FGREP_max=$ac_count 4529 fi 4530 # 10*(2^10) chars as input seems more than enough 4531 test $ac_count -gt 10 && break 4532 done 4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4534 esac 4535 4536 $ac_path_FGREP_found && break 3 4537 done 4538 done 4539 done 4540 IFS=$as_save_IFS 4541 if test -z "$ac_cv_path_FGREP"; then 4542 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4543 fi 4544 else 4545 ac_cv_path_FGREP=$FGREP 4546 fi 4547 4548 fi 4549 fi 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4551 $as_echo "$ac_cv_path_FGREP" >&6; } 4552 FGREP="$ac_cv_path_FGREP" 4553 4554 4555 test -z "$GREP" && GREP=grep 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 # Check whether --with-gnu-ld was given. 4576 if test "${with_gnu_ld+set}" = set; then : 4577 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4578 else 4579 with_gnu_ld=no 4580 fi 4581 4582 ac_prog=ld 4583 if test yes = "$GCC"; then 4584 # Check if gcc -print-prog-name=ld gives a path. 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4586 $as_echo_n "checking for ld used by $CC... " >&6; } 4587 case $host in 4588 *-*-mingw*) 4589 # gcc leaves a trailing carriage return, which upsets mingw 4590 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4591 *) 4592 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4593 esac 4594 case $ac_prog in 4595 # Accept absolute paths. 4596 [\\/]* | ?:[\\/]*) 4597 re_direlt='/[^/][^/]*/\.\./' 4598 # Canonicalize the pathname of ld 4599 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4600 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4601 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4602 done 4603 test -z "$LD" && LD=$ac_prog 4604 ;; 4605 "") 4606 # If it fails, then pretend we aren't using GCC. 4607 ac_prog=ld 4608 ;; 4609 *) 4610 # If it is relative, then search for the first ld in PATH. 4611 with_gnu_ld=unknown 4612 ;; 4613 esac 4614 elif test yes = "$with_gnu_ld"; then 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4616 $as_echo_n "checking for GNU ld... " >&6; } 4617 else 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4619 $as_echo_n "checking for non-GNU ld... " >&6; } 4620 fi 4621 if ${lt_cv_path_LD+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623 else 4624 if test -z "$LD"; then 4625 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4626 for ac_dir in $PATH; do 4627 IFS=$lt_save_ifs 4628 test -z "$ac_dir" && ac_dir=. 4629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4630 lt_cv_path_LD=$ac_dir/$ac_prog 4631 # Check to see if the program is GNU ld. I'd rather use --version, 4632 # but apparently some variants of GNU ld only accept -v. 4633 # Break only if it was the GNU/non-GNU ld that we prefer. 4634 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4635 *GNU* | *'with BFD'*) 4636 test no != "$with_gnu_ld" && break 4637 ;; 4638 *) 4639 test yes != "$with_gnu_ld" && break 4640 ;; 4641 esac 4642 fi 4643 done 4644 IFS=$lt_save_ifs 4645 else 4646 lt_cv_path_LD=$LD # Let the user override the test with a path. 4647 fi 4648 fi 4649 4650 LD=$lt_cv_path_LD 4651 if test -n "$LD"; then 4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4653 $as_echo "$LD" >&6; } 4654 else 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4656 $as_echo "no" >&6; } 4657 fi 4658 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4660 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4661 if ${lt_cv_prog_gnu_ld+:} false; then : 4662 $as_echo_n "(cached) " >&6 4663 else 4664 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4665 case `$LD -v 2>&1 </dev/null` in 4666 *GNU* | *'with BFD'*) 4667 lt_cv_prog_gnu_ld=yes 4668 ;; 4669 *) 4670 lt_cv_prog_gnu_ld=no 4671 ;; 4672 esac 4673 fi 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4675 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4676 with_gnu_ld=$lt_cv_prog_gnu_ld 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4687 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4688 if ${lt_cv_path_NM+:} false; then : 4689 $as_echo_n "(cached) " >&6 4690 else 4691 if test -n "$NM"; then 4692 # Let the user override the test. 4693 lt_cv_path_NM=$NM 4694 else 4695 lt_nm_to_check=${ac_tool_prefix}nm 4696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4697 lt_nm_to_check="$lt_nm_to_check nm" 4698 fi 4699 for lt_tmp_nm in $lt_nm_to_check; do 4700 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4702 IFS=$lt_save_ifs 4703 test -z "$ac_dir" && ac_dir=. 4704 tmp_nm=$ac_dir/$lt_tmp_nm 4705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4706 # Check to see if the nm accepts a BSD-compat flag. 4707 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4708 # nm: unknown option "B" ignored 4709 # Tru64's nm complains that /dev/null is an invalid object file 4710 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4711 case $build_os in 4712 mingw*) lt_bad_file=conftest.nm/nofile ;; 4713 *) lt_bad_file=/dev/null ;; 4714 esac 4715 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4716 *$lt_bad_file* | *'Invalid file or object type'*) 4717 lt_cv_path_NM="$tmp_nm -B" 4718 break 2 4719 ;; 4720 *) 4721 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4722 */dev/null*) 4723 lt_cv_path_NM="$tmp_nm -p" 4724 break 2 4725 ;; 4726 *) 4727 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4728 continue # so that we can try to find one that supports BSD flags 4729 ;; 4730 esac 4731 ;; 4732 esac 4733 fi 4734 done 4735 IFS=$lt_save_ifs 4736 done 4737 : ${lt_cv_path_NM=no} 4738 fi 4739 fi 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4741 $as_echo "$lt_cv_path_NM" >&6; } 4742 if test no != "$lt_cv_path_NM"; then 4743 NM=$lt_cv_path_NM 4744 else 4745 # Didn't find any BSD compatible name lister, look for dumpbin. 4746 if test -n "$DUMPBIN"; then : 4747 # Let the user override the test. 4748 else 4749 if test -n "$ac_tool_prefix"; then 4750 for ac_prog in dumpbin "link -dump" 4751 do 4752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4755 $as_echo_n "checking for $ac_word... " >&6; } 4756 if ${ac_cv_prog_DUMPBIN+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758 else 4759 if test -n "$DUMPBIN"; then 4760 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4761 else 4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4763 for as_dir in $PATH 4764 do 4765 IFS=$as_save_IFS 4766 test -z "$as_dir" && as_dir=. 4767 for ac_exec_ext in '' $ac_executable_extensions; do 4768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4769 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4771 break 2 4772 fi 4773 done 4774 done 4775 IFS=$as_save_IFS 4776 4777 fi 4778 fi 4779 DUMPBIN=$ac_cv_prog_DUMPBIN 4780 if test -n "$DUMPBIN"; then 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4782 $as_echo "$DUMPBIN" >&6; } 4783 else 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4785 $as_echo "no" >&6; } 4786 fi 4787 4788 4789 test -n "$DUMPBIN" && break 4790 done 4791 fi 4792 if test -z "$DUMPBIN"; then 4793 ac_ct_DUMPBIN=$DUMPBIN 4794 for ac_prog in dumpbin "link -dump" 4795 do 4796 # Extract the first word of "$ac_prog", so it can be a program name with args. 4797 set dummy $ac_prog; ac_word=$2 4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4799 $as_echo_n "checking for $ac_word... " >&6; } 4800 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4801 $as_echo_n "(cached) " >&6 4802 else 4803 if test -n "$ac_ct_DUMPBIN"; then 4804 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4805 else 4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4807 for as_dir in $PATH 4808 do 4809 IFS=$as_save_IFS 4810 test -z "$as_dir" && as_dir=. 4811 for ac_exec_ext in '' $ac_executable_extensions; do 4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4813 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4815 break 2 4816 fi 4817 done 4818 done 4819 IFS=$as_save_IFS 4820 4821 fi 4822 fi 4823 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4824 if test -n "$ac_ct_DUMPBIN"; then 4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4826 $as_echo "$ac_ct_DUMPBIN" >&6; } 4827 else 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4829 $as_echo "no" >&6; } 4830 fi 4831 4832 4833 test -n "$ac_ct_DUMPBIN" && break 4834 done 4835 4836 if test "x$ac_ct_DUMPBIN" = x; then 4837 DUMPBIN=":" 4838 else 4839 case $cross_compiling:$ac_tool_warned in 4840 yes:) 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4843 ac_tool_warned=yes ;; 4844 esac 4845 DUMPBIN=$ac_ct_DUMPBIN 4846 fi 4847 fi 4848 4849 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4850 *COFF*) 4851 DUMPBIN="$DUMPBIN -symbols -headers" 4852 ;; 4853 *) 4854 DUMPBIN=: 4855 ;; 4856 esac 4857 fi 4858 4859 if test : != "$DUMPBIN"; then 4860 NM=$DUMPBIN 4861 fi 4862 fi 4863 test -z "$NM" && NM=nm 4864 4865 4866 4867 4868 4869 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4871 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 4872 if ${lt_cv_nm_interface+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874 else 4875 lt_cv_nm_interface="BSD nm" 4876 echo "int some_variable = 0;" > conftest.$ac_ext 4877 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4878 (eval "$ac_compile" 2>conftest.err) 4879 cat conftest.err >&5 4880 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4881 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4882 cat conftest.err >&5 4883 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4884 cat conftest.out >&5 4885 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4886 lt_cv_nm_interface="MS dumpbin" 4887 fi 4888 rm -f conftest* 4889 fi 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4891 $as_echo "$lt_cv_nm_interface" >&6; } 4892 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4894 $as_echo_n "checking whether ln -s works... " >&6; } 4895 LN_S=$as_ln_s 4896 if test "$LN_S" = "ln -s"; then 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4898 $as_echo "yes" >&6; } 4899 else 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4901 $as_echo "no, using $LN_S" >&6; } 4902 fi 4903 4904 # find the maximum length of command line arguments 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4906 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 4907 if ${lt_cv_sys_max_cmd_len+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909 else 4910 i=0 4911 teststring=ABCD 4912 4913 case $build_os in 4914 msdosdjgpp*) 4915 # On DJGPP, this test can blow up pretty badly due to problems in libc 4916 # (any single argument exceeding 2000 bytes causes a buffer overrun 4917 # during glob expansion). Even if it were fixed, the result of this 4918 # check would be larger than it should be. 4919 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4920 ;; 4921 4922 gnu*) 4923 # Under GNU Hurd, this test is not required because there is 4924 # no limit to the length of command line arguments. 4925 # Libtool will interpret -1 as no limit whatsoever 4926 lt_cv_sys_max_cmd_len=-1; 4927 ;; 4928 4929 cygwin* | mingw* | cegcc*) 4930 # On Win9x/ME, this test blows up -- it succeeds, but takes 4931 # about 5 minutes as the teststring grows exponentially. 4932 # Worse, since 9x/ME are not pre-emptively multitasking, 4933 # you end up with a "frozen" computer, even though with patience 4934 # the test eventually succeeds (with a max line length of 256k). 4935 # Instead, let's just punt: use the minimum linelength reported by 4936 # all of the supported platforms: 8192 (on NT/2K/XP). 4937 lt_cv_sys_max_cmd_len=8192; 4938 ;; 4939 4940 mint*) 4941 # On MiNT this can take a long time and run out of memory. 4942 lt_cv_sys_max_cmd_len=8192; 4943 ;; 4944 4945 amigaos*) 4946 # On AmigaOS with pdksh, this test takes hours, literally. 4947 # So we just punt and use a minimum line length of 8192. 4948 lt_cv_sys_max_cmd_len=8192; 4949 ;; 4950 4951 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4952 # This has been around since 386BSD, at least. Likely further. 4953 if test -x /sbin/sysctl; then 4954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4955 elif test -x /usr/sbin/sysctl; then 4956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4957 else 4958 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4959 fi 4960 # And add a safety zone 4961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4963 ;; 4964 4965 interix*) 4966 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4967 lt_cv_sys_max_cmd_len=196608 4968 ;; 4969 4970 os2*) 4971 # The test takes a long time on OS/2. 4972 lt_cv_sys_max_cmd_len=8192 4973 ;; 4974 4975 osf*) 4976 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4977 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4978 # nice to cause kernel panics so lets avoid the loop below. 4979 # First set a reasonable default. 4980 lt_cv_sys_max_cmd_len=16384 4981 # 4982 if test -x /sbin/sysconfig; then 4983 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4984 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4985 esac 4986 fi 4987 ;; 4988 sco3.2v5*) 4989 lt_cv_sys_max_cmd_len=102400 4990 ;; 4991 sysv5* | sco5v6* | sysv4.2uw2*) 4992 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4993 if test -n "$kargmax"; then 4994 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4995 else 4996 lt_cv_sys_max_cmd_len=32768 4997 fi 4998 ;; 4999 *) 5000 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5001 if test -n "$lt_cv_sys_max_cmd_len" && \ 5002 test undefined != "$lt_cv_sys_max_cmd_len"; then 5003 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5004 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5005 else 5006 # Make teststring a little bigger before we do anything with it. 5007 # a 1K string should be a reasonable start. 5008 for i in 1 2 3 4 5 6 7 8; do 5009 teststring=$teststring$teststring 5010 done 5011 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5012 # If test is not a shell built-in, we'll probably end up computing a 5013 # maximum length that is only half of the actual maximum length, but 5014 # we can't tell. 5015 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5016 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5017 test 17 != "$i" # 1/2 MB should be enough 5018 do 5019 i=`expr $i + 1` 5020 teststring=$teststring$teststring 5021 done 5022 # Only check the string length outside the loop. 5023 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5024 teststring= 5025 # Add a significant safety factor because C++ compilers can tack on 5026 # massive amounts of additional arguments before passing them to the 5027 # linker. It appears as though 1/2 is a usable value. 5028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5029 fi 5030 ;; 5031 esac 5032 5033 fi 5034 5035 if test -n "$lt_cv_sys_max_cmd_len"; then 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5037 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5038 else 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5040 $as_echo "none" >&6; } 5041 fi 5042 max_cmd_len=$lt_cv_sys_max_cmd_len 5043 5044 5045 5046 5047 5048 5049 : ${CP="cp -f"} 5050 : ${MV="mv -f"} 5051 : ${RM="rm -f"} 5052 5053 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5054 lt_unset=unset 5055 else 5056 lt_unset=false 5057 fi 5058 5059 5060 5061 5062 5063 # test EBCDIC or ASCII 5064 case `echo X|tr X '\101'` in 5065 A) # ASCII based system 5066 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5067 lt_SP2NL='tr \040 \012' 5068 lt_NL2SP='tr \015\012 \040\040' 5069 ;; 5070 *) # EBCDIC based system 5071 lt_SP2NL='tr \100 \n' 5072 lt_NL2SP='tr \r\n \100\100' 5073 ;; 5074 esac 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5085 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5086 if ${lt_cv_to_host_file_cmd+:} false; then : 5087 $as_echo_n "(cached) " >&6 5088 else 5089 case $host in 5090 *-*-mingw* ) 5091 case $build in 5092 *-*-mingw* ) # actually msys 5093 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5094 ;; 5095 *-*-cygwin* ) 5096 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5097 ;; 5098 * ) # otherwise, assume *nix 5099 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5100 ;; 5101 esac 5102 ;; 5103 *-*-cygwin* ) 5104 case $build in 5105 *-*-mingw* ) # actually msys 5106 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5107 ;; 5108 *-*-cygwin* ) 5109 lt_cv_to_host_file_cmd=func_convert_file_noop 5110 ;; 5111 * ) # otherwise, assume *nix 5112 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5113 ;; 5114 esac 5115 ;; 5116 * ) # unhandled hosts (and "normal" native builds) 5117 lt_cv_to_host_file_cmd=func_convert_file_noop 5118 ;; 5119 esac 5120 5121 fi 5122 5123 to_host_file_cmd=$lt_cv_to_host_file_cmd 5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5125 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5126 5127 5128 5129 5130 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5132 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5133 if ${lt_cv_to_tool_file_cmd+:} false; then : 5134 $as_echo_n "(cached) " >&6 5135 else 5136 #assume ordinary cross tools, or native build. 5137 lt_cv_to_tool_file_cmd=func_convert_file_noop 5138 case $host in 5139 *-*-mingw* ) 5140 case $build in 5141 *-*-mingw* ) # actually msys 5142 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5143 ;; 5144 esac 5145 ;; 5146 esac 5147 5148 fi 5149 5150 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5152 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5153 5154 5155 5156 5157 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5159 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5160 if ${lt_cv_ld_reload_flag+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162 else 5163 lt_cv_ld_reload_flag='-r' 5164 fi 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5166 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5167 reload_flag=$lt_cv_ld_reload_flag 5168 case $reload_flag in 5169 "" | " "*) ;; 5170 *) reload_flag=" $reload_flag" ;; 5171 esac 5172 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5173 case $host_os in 5174 cygwin* | mingw* | pw32* | cegcc*) 5175 if test yes != "$GCC"; then 5176 reload_cmds=false 5177 fi 5178 ;; 5179 darwin*) 5180 if test yes = "$GCC"; then 5181 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5182 else 5183 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5184 fi 5185 ;; 5186 esac 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 if test -n "$ac_tool_prefix"; then 5197 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5198 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5200 $as_echo_n "checking for $ac_word... " >&6; } 5201 if ${ac_cv_prog_OBJDUMP+:} false; then : 5202 $as_echo_n "(cached) " >&6 5203 else 5204 if test -n "$OBJDUMP"; then 5205 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5206 else 5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5208 for as_dir in $PATH 5209 do 5210 IFS=$as_save_IFS 5211 test -z "$as_dir" && as_dir=. 5212 for ac_exec_ext in '' $ac_executable_extensions; do 5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5214 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5216 break 2 5217 fi 5218 done 5219 done 5220 IFS=$as_save_IFS 5221 5222 fi 5223 fi 5224 OBJDUMP=$ac_cv_prog_OBJDUMP 5225 if test -n "$OBJDUMP"; then 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5227 $as_echo "$OBJDUMP" >&6; } 5228 else 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5230 $as_echo "no" >&6; } 5231 fi 5232 5233 5234 fi 5235 if test -z "$ac_cv_prog_OBJDUMP"; then 5236 ac_ct_OBJDUMP=$OBJDUMP 5237 # Extract the first word of "objdump", so it can be a program name with args. 5238 set dummy objdump; ac_word=$2 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5240 $as_echo_n "checking for $ac_word... " >&6; } 5241 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5242 $as_echo_n "(cached) " >&6 5243 else 5244 if test -n "$ac_ct_OBJDUMP"; then 5245 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5246 else 5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5248 for as_dir in $PATH 5249 do 5250 IFS=$as_save_IFS 5251 test -z "$as_dir" && as_dir=. 5252 for ac_exec_ext in '' $ac_executable_extensions; do 5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5254 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5256 break 2 5257 fi 5258 done 5259 done 5260 IFS=$as_save_IFS 5261 5262 fi 5263 fi 5264 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5265 if test -n "$ac_ct_OBJDUMP"; then 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5267 $as_echo "$ac_ct_OBJDUMP" >&6; } 5268 else 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5270 $as_echo "no" >&6; } 5271 fi 5272 5273 if test "x$ac_ct_OBJDUMP" = x; then 5274 OBJDUMP="false" 5275 else 5276 case $cross_compiling:$ac_tool_warned in 5277 yes:) 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5280 ac_tool_warned=yes ;; 5281 esac 5282 OBJDUMP=$ac_ct_OBJDUMP 5283 fi 5284 else 5285 OBJDUMP="$ac_cv_prog_OBJDUMP" 5286 fi 5287 5288 test -z "$OBJDUMP" && OBJDUMP=objdump 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5299 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5300 if ${lt_cv_deplibs_check_method+:} false; then : 5301 $as_echo_n "(cached) " >&6 5302 else 5303 lt_cv_file_magic_cmd='$MAGIC_CMD' 5304 lt_cv_file_magic_test_file= 5305 lt_cv_deplibs_check_method='unknown' 5306 # Need to set the preceding variable on all platforms that support 5307 # interlibrary dependencies. 5308 # 'none' -- dependencies not supported. 5309 # 'unknown' -- same as none, but documents that we really don't know. 5310 # 'pass_all' -- all dependencies passed with no checks. 5311 # 'test_compile' -- check by making test program. 5312 # 'file_magic [[regex]]' -- check by looking for files in library path 5313 # that responds to the $file_magic_cmd with a given extended regex. 5314 # If you have 'file' or equivalent on your system and you're not sure 5315 # whether 'pass_all' will *always* work, you probably want this one. 5316 5317 case $host_os in 5318 aix[4-9]*) 5319 lt_cv_deplibs_check_method=pass_all 5320 ;; 5321 5322 beos*) 5323 lt_cv_deplibs_check_method=pass_all 5324 ;; 5325 5326 bsdi[45]*) 5327 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5328 lt_cv_file_magic_cmd='/usr/bin/file -L' 5329 lt_cv_file_magic_test_file=/shlib/libc.so 5330 ;; 5331 5332 cygwin*) 5333 # func_win32_libid is a shell function defined in ltmain.sh 5334 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5335 lt_cv_file_magic_cmd='func_win32_libid' 5336 ;; 5337 5338 mingw* | pw32*) 5339 # Base MSYS/MinGW do not provide the 'file' command needed by 5340 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5341 # unless we find 'file', for example because we are cross-compiling. 5342 if ( file / ) >/dev/null 2>&1; then 5343 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5344 lt_cv_file_magic_cmd='func_win32_libid' 5345 else 5346 # Keep this pattern in sync with the one in func_win32_libid. 5347 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5348 lt_cv_file_magic_cmd='$OBJDUMP -f' 5349 fi 5350 ;; 5351 5352 cegcc*) 5353 # use the weaker test based on 'objdump'. See mingw*. 5354 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5355 lt_cv_file_magic_cmd='$OBJDUMP -f' 5356 ;; 5357 5358 darwin* | rhapsody*) 5359 lt_cv_deplibs_check_method=pass_all 5360 ;; 5361 5362 freebsd* | dragonfly*) 5363 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5364 case $host_cpu in 5365 i*86 ) 5366 # Not sure whether the presence of OpenBSD here was a mistake. 5367 # Let's accept both of them until this is cleared up. 5368 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5369 lt_cv_file_magic_cmd=/usr/bin/file 5370 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5371 ;; 5372 esac 5373 else 5374 lt_cv_deplibs_check_method=pass_all 5375 fi 5376 ;; 5377 5378 haiku*) 5379 lt_cv_deplibs_check_method=pass_all 5380 ;; 5381 5382 hpux10.20* | hpux11*) 5383 lt_cv_file_magic_cmd=/usr/bin/file 5384 case $host_cpu in 5385 ia64*) 5386 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5387 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5388 ;; 5389 hppa*64*) 5390 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]' 5391 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5392 ;; 5393 *) 5394 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5395 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5396 ;; 5397 esac 5398 ;; 5399 5400 interix[3-9]*) 5401 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5403 ;; 5404 5405 irix5* | irix6* | nonstopux*) 5406 case $LD in 5407 *-32|*"-32 ") libmagic=32-bit;; 5408 *-n32|*"-n32 ") libmagic=N32;; 5409 *-64|*"-64 ") libmagic=64-bit;; 5410 *) libmagic=never-match;; 5411 esac 5412 lt_cv_deplibs_check_method=pass_all 5413 ;; 5414 5415 # This must be glibc/ELF. 5416 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5417 lt_cv_deplibs_check_method=pass_all 5418 ;; 5419 5420 netbsd* | netbsdelf*-gnu) 5421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5423 else 5424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5425 fi 5426 ;; 5427 5428 newos6*) 5429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5430 lt_cv_file_magic_cmd=/usr/bin/file 5431 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5432 ;; 5433 5434 *nto* | *qnx*) 5435 lt_cv_deplibs_check_method=pass_all 5436 ;; 5437 5438 openbsd* | bitrig*) 5439 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5440 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5441 else 5442 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5443 fi 5444 ;; 5445 5446 osf3* | osf4* | osf5*) 5447 lt_cv_deplibs_check_method=pass_all 5448 ;; 5449 5450 rdos*) 5451 lt_cv_deplibs_check_method=pass_all 5452 ;; 5453 5454 solaris*) 5455 lt_cv_deplibs_check_method=pass_all 5456 ;; 5457 5458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5459 lt_cv_deplibs_check_method=pass_all 5460 ;; 5461 5462 sysv4 | sysv4.3*) 5463 case $host_vendor in 5464 motorola) 5465 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]' 5466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5467 ;; 5468 ncr) 5469 lt_cv_deplibs_check_method=pass_all 5470 ;; 5471 sequent) 5472 lt_cv_file_magic_cmd='/bin/file' 5473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5474 ;; 5475 sni) 5476 lt_cv_file_magic_cmd='/bin/file' 5477 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5478 lt_cv_file_magic_test_file=/lib/libc.so 5479 ;; 5480 siemens) 5481 lt_cv_deplibs_check_method=pass_all 5482 ;; 5483 pc) 5484 lt_cv_deplibs_check_method=pass_all 5485 ;; 5486 esac 5487 ;; 5488 5489 tpf*) 5490 lt_cv_deplibs_check_method=pass_all 5491 ;; 5492 os2*) 5493 lt_cv_deplibs_check_method=pass_all 5494 ;; 5495 esac 5496 5497 fi 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5499 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5500 5501 file_magic_glob= 5502 want_nocaseglob=no 5503 if test "$build" = "$host"; then 5504 case $host_os in 5505 mingw* | pw32*) 5506 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5507 want_nocaseglob=yes 5508 else 5509 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5510 fi 5511 ;; 5512 esac 5513 fi 5514 5515 file_magic_cmd=$lt_cv_file_magic_cmd 5516 deplibs_check_method=$lt_cv_deplibs_check_method 5517 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 if test -n "$ac_tool_prefix"; then 5541 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5542 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5544 $as_echo_n "checking for $ac_word... " >&6; } 5545 if ${ac_cv_prog_DLLTOOL+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547 else 5548 if test -n "$DLLTOOL"; then 5549 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5550 else 5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5552 for as_dir in $PATH 5553 do 5554 IFS=$as_save_IFS 5555 test -z "$as_dir" && as_dir=. 5556 for ac_exec_ext in '' $ac_executable_extensions; do 5557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5558 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5560 break 2 5561 fi 5562 done 5563 done 5564 IFS=$as_save_IFS 5565 5566 fi 5567 fi 5568 DLLTOOL=$ac_cv_prog_DLLTOOL 5569 if test -n "$DLLTOOL"; then 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5571 $as_echo "$DLLTOOL" >&6; } 5572 else 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5574 $as_echo "no" >&6; } 5575 fi 5576 5577 5578 fi 5579 if test -z "$ac_cv_prog_DLLTOOL"; then 5580 ac_ct_DLLTOOL=$DLLTOOL 5581 # Extract the first word of "dlltool", so it can be a program name with args. 5582 set dummy dlltool; ac_word=$2 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5584 $as_echo_n "checking for $ac_word... " >&6; } 5585 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5586 $as_echo_n "(cached) " >&6 5587 else 5588 if test -n "$ac_ct_DLLTOOL"; then 5589 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5590 else 5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5592 for as_dir in $PATH 5593 do 5594 IFS=$as_save_IFS 5595 test -z "$as_dir" && as_dir=. 5596 for ac_exec_ext in '' $ac_executable_extensions; do 5597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5598 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5600 break 2 5601 fi 5602 done 5603 done 5604 IFS=$as_save_IFS 5605 5606 fi 5607 fi 5608 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5609 if test -n "$ac_ct_DLLTOOL"; then 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5611 $as_echo "$ac_ct_DLLTOOL" >&6; } 5612 else 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5614 $as_echo "no" >&6; } 5615 fi 5616 5617 if test "x$ac_ct_DLLTOOL" = x; then 5618 DLLTOOL="false" 5619 else 5620 case $cross_compiling:$ac_tool_warned in 5621 yes:) 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5624 ac_tool_warned=yes ;; 5625 esac 5626 DLLTOOL=$ac_ct_DLLTOOL 5627 fi 5628 else 5629 DLLTOOL="$ac_cv_prog_DLLTOOL" 5630 fi 5631 5632 test -z "$DLLTOOL" && DLLTOOL=dlltool 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5644 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5645 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5646 $as_echo_n "(cached) " >&6 5647 else 5648 lt_cv_sharedlib_from_linklib_cmd='unknown' 5649 5650 case $host_os in 5651 cygwin* | mingw* | pw32* | cegcc*) 5652 # two different shell functions defined in ltmain.sh; 5653 # decide which one to use based on capabilities of $DLLTOOL 5654 case `$DLLTOOL --help 2>&1` in 5655 *--identify-strict*) 5656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5657 ;; 5658 *) 5659 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5660 ;; 5661 esac 5662 ;; 5663 *) 5664 # fallback: assume linklib IS sharedlib 5665 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5666 ;; 5667 esac 5668 5669 fi 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5671 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5672 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5673 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5674 5675 5676 5677 5678 5679 5680 5681 5682 if test -n "$ac_tool_prefix"; then 5683 for ac_prog in ar 5684 do 5685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5686 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5688 $as_echo_n "checking for $ac_word... " >&6; } 5689 if ${ac_cv_prog_AR+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691 else 5692 if test -n "$AR"; then 5693 ac_cv_prog_AR="$AR" # Let the user override the test. 5694 else 5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5696 for as_dir in $PATH 5697 do 5698 IFS=$as_save_IFS 5699 test -z "$as_dir" && as_dir=. 5700 for ac_exec_ext in '' $ac_executable_extensions; do 5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5702 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5704 break 2 5705 fi 5706 done 5707 done 5708 IFS=$as_save_IFS 5709 5710 fi 5711 fi 5712 AR=$ac_cv_prog_AR 5713 if test -n "$AR"; then 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5715 $as_echo "$AR" >&6; } 5716 else 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5718 $as_echo "no" >&6; } 5719 fi 5720 5721 5722 test -n "$AR" && break 5723 done 5724 fi 5725 if test -z "$AR"; then 5726 ac_ct_AR=$AR 5727 for ac_prog in ar 5728 do 5729 # Extract the first word of "$ac_prog", so it can be a program name with args. 5730 set dummy $ac_prog; ac_word=$2 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5732 $as_echo_n "checking for $ac_word... " >&6; } 5733 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5734 $as_echo_n "(cached) " >&6 5735 else 5736 if test -n "$ac_ct_AR"; then 5737 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5738 else 5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5740 for as_dir in $PATH 5741 do 5742 IFS=$as_save_IFS 5743 test -z "$as_dir" && as_dir=. 5744 for ac_exec_ext in '' $ac_executable_extensions; do 5745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5746 ac_cv_prog_ac_ct_AR="$ac_prog" 5747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5748 break 2 5749 fi 5750 done 5751 done 5752 IFS=$as_save_IFS 5753 5754 fi 5755 fi 5756 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5757 if test -n "$ac_ct_AR"; then 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5759 $as_echo "$ac_ct_AR" >&6; } 5760 else 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5762 $as_echo "no" >&6; } 5763 fi 5764 5765 5766 test -n "$ac_ct_AR" && break 5767 done 5768 5769 if test "x$ac_ct_AR" = x; then 5770 AR="false" 5771 else 5772 case $cross_compiling:$ac_tool_warned in 5773 yes:) 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5776 ac_tool_warned=yes ;; 5777 esac 5778 AR=$ac_ct_AR 5779 fi 5780 fi 5781 5782 : ${AR=ar} 5783 : ${AR_FLAGS=cru} 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5796 $as_echo_n "checking for archiver @FILE support... " >&6; } 5797 if ${lt_cv_ar_at_file+:} false; then : 5798 $as_echo_n "(cached) " >&6 5799 else 5800 lt_cv_ar_at_file=no 5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5802 /* end confdefs.h. */ 5803 5804 int 5805 main () 5806 { 5807 5808 ; 5809 return 0; 5810 } 5811 _ACEOF 5812 if ac_fn_c_try_compile "$LINENO"; then : 5813 echo conftest.$ac_objext > conftest.lst 5814 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5816 (eval $lt_ar_try) 2>&5 5817 ac_status=$? 5818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5819 test $ac_status = 0; } 5820 if test 0 -eq "$ac_status"; then 5821 # Ensure the archiver fails upon bogus file names. 5822 rm -f conftest.$ac_objext libconftest.a 5823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5824 (eval $lt_ar_try) 2>&5 5825 ac_status=$? 5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5827 test $ac_status = 0; } 5828 if test 0 -ne "$ac_status"; then 5829 lt_cv_ar_at_file=@ 5830 fi 5831 fi 5832 rm -f conftest.* libconftest.a 5833 5834 fi 5835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5836 5837 fi 5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5839 $as_echo "$lt_cv_ar_at_file" >&6; } 5840 5841 if test no = "$lt_cv_ar_at_file"; then 5842 archiver_list_spec= 5843 else 5844 archiver_list_spec=$lt_cv_ar_at_file 5845 fi 5846 5847 5848 5849 5850 5851 5852 5853 if test -n "$ac_tool_prefix"; then 5854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5855 set dummy ${ac_tool_prefix}strip; ac_word=$2 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5857 $as_echo_n "checking for $ac_word... " >&6; } 5858 if ${ac_cv_prog_STRIP+:} false; then : 5859 $as_echo_n "(cached) " >&6 5860 else 5861 if test -n "$STRIP"; then 5862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5863 else 5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865 for as_dir in $PATH 5866 do 5867 IFS=$as_save_IFS 5868 test -z "$as_dir" && as_dir=. 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5871 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5873 break 2 5874 fi 5875 done 5876 done 5877 IFS=$as_save_IFS 5878 5879 fi 5880 fi 5881 STRIP=$ac_cv_prog_STRIP 5882 if test -n "$STRIP"; then 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5884 $as_echo "$STRIP" >&6; } 5885 else 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5887 $as_echo "no" >&6; } 5888 fi 5889 5890 5891 fi 5892 if test -z "$ac_cv_prog_STRIP"; then 5893 ac_ct_STRIP=$STRIP 5894 # Extract the first word of "strip", so it can be a program name with args. 5895 set dummy strip; ac_word=$2 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5897 $as_echo_n "checking for $ac_word... " >&6; } 5898 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900 else 5901 if test -n "$ac_ct_STRIP"; then 5902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5903 else 5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5905 for as_dir in $PATH 5906 do 5907 IFS=$as_save_IFS 5908 test -z "$as_dir" && as_dir=. 5909 for ac_exec_ext in '' $ac_executable_extensions; do 5910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5911 ac_cv_prog_ac_ct_STRIP="strip" 5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5913 break 2 5914 fi 5915 done 5916 done 5917 IFS=$as_save_IFS 5918 5919 fi 5920 fi 5921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5922 if test -n "$ac_ct_STRIP"; then 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5924 $as_echo "$ac_ct_STRIP" >&6; } 5925 else 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5927 $as_echo "no" >&6; } 5928 fi 5929 5930 if test "x$ac_ct_STRIP" = x; then 5931 STRIP=":" 5932 else 5933 case $cross_compiling:$ac_tool_warned in 5934 yes:) 5935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5937 ac_tool_warned=yes ;; 5938 esac 5939 STRIP=$ac_ct_STRIP 5940 fi 5941 else 5942 STRIP="$ac_cv_prog_STRIP" 5943 fi 5944 5945 test -z "$STRIP" && STRIP=: 5946 5947 5948 5949 5950 5951 5952 if test -n "$ac_tool_prefix"; then 5953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5954 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5956 $as_echo_n "checking for $ac_word... " >&6; } 5957 if ${ac_cv_prog_RANLIB+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959 else 5960 if test -n "$RANLIB"; then 5961 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5962 else 5963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5964 for as_dir in $PATH 5965 do 5966 IFS=$as_save_IFS 5967 test -z "$as_dir" && as_dir=. 5968 for ac_exec_ext in '' $ac_executable_extensions; do 5969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5972 break 2 5973 fi 5974 done 5975 done 5976 IFS=$as_save_IFS 5977 5978 fi 5979 fi 5980 RANLIB=$ac_cv_prog_RANLIB 5981 if test -n "$RANLIB"; then 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5983 $as_echo "$RANLIB" >&6; } 5984 else 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5986 $as_echo "no" >&6; } 5987 fi 5988 5989 5990 fi 5991 if test -z "$ac_cv_prog_RANLIB"; then 5992 ac_ct_RANLIB=$RANLIB 5993 # Extract the first word of "ranlib", so it can be a program name with args. 5994 set dummy ranlib; ac_word=$2 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5996 $as_echo_n "checking for $ac_word... " >&6; } 5997 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999 else 6000 if test -n "$ac_ct_RANLIB"; then 6001 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6002 else 6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004 for as_dir in $PATH 6005 do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_prog_ac_ct_RANLIB="ranlib" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014 done 6015 done 6016 IFS=$as_save_IFS 6017 6018 fi 6019 fi 6020 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6021 if test -n "$ac_ct_RANLIB"; then 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6023 $as_echo "$ac_ct_RANLIB" >&6; } 6024 else 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6026 $as_echo "no" >&6; } 6027 fi 6028 6029 if test "x$ac_ct_RANLIB" = x; then 6030 RANLIB=":" 6031 else 6032 case $cross_compiling:$ac_tool_warned in 6033 yes:) 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6036 ac_tool_warned=yes ;; 6037 esac 6038 RANLIB=$ac_ct_RANLIB 6039 fi 6040 else 6041 RANLIB="$ac_cv_prog_RANLIB" 6042 fi 6043 6044 test -z "$RANLIB" && RANLIB=: 6045 6046 6047 6048 6049 6050 6051 # Determine commands to create old-style static archives. 6052 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6053 old_postinstall_cmds='chmod 644 $oldlib' 6054 old_postuninstall_cmds= 6055 6056 if test -n "$RANLIB"; then 6057 case $host_os in 6058 bitrig* | openbsd*) 6059 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6060 ;; 6061 *) 6062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6063 ;; 6064 esac 6065 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6066 fi 6067 6068 case $host_os in 6069 darwin*) 6070 lock_old_archive_extraction=yes ;; 6071 *) 6072 lock_old_archive_extraction=no ;; 6073 esac 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 6109 6110 6111 6112 6113 # If no C compiler was specified, use CC. 6114 LTCC=${LTCC-"$CC"} 6115 6116 # If no C compiler flags were specified, use CFLAGS. 6117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6118 6119 # Allow CC to be a program name with arguments. 6120 compiler=$CC 6121 6122 6123 # Check for command to grab the raw symbol name followed by C symbol from nm. 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6125 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6126 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6127 $as_echo_n "(cached) " >&6 6128 else 6129 6130 # These are sane defaults that work on at least a few old systems. 6131 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6132 6133 # Character class describing NM global symbol codes. 6134 symcode='[BCDEGRST]' 6135 6136 # Regexp to match symbols that can be accessed directly from C. 6137 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6138 6139 # Define system-specific variables. 6140 case $host_os in 6141 aix*) 6142 symcode='[BCDT]' 6143 ;; 6144 cygwin* | mingw* | pw32* | cegcc*) 6145 symcode='[ABCDGISTW]' 6146 ;; 6147 hpux*) 6148 if test ia64 = "$host_cpu"; then 6149 symcode='[ABCDEGRST]' 6150 fi 6151 ;; 6152 irix* | nonstopux*) 6153 symcode='[BCDEGRST]' 6154 ;; 6155 osf*) 6156 symcode='[BCDEGQRST]' 6157 ;; 6158 solaris*) 6159 symcode='[BDRT]' 6160 ;; 6161 sco3.2v5*) 6162 symcode='[DT]' 6163 ;; 6164 sysv4.2uw2*) 6165 symcode='[DT]' 6166 ;; 6167 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6168 symcode='[ABDT]' 6169 ;; 6170 sysv4) 6171 symcode='[DFNSTU]' 6172 ;; 6173 esac 6174 6175 # If we're using GNU nm, then use its standard symbol codes. 6176 case `$NM -V 2>&1` in 6177 *GNU* | *'with BFD'*) 6178 symcode='[ABCDGIRSTW]' ;; 6179 esac 6180 6181 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6182 # Gets list of data symbols to import. 6183 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6184 # Adjust the below global symbol transforms to fixup imported variables. 6185 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6186 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6187 lt_c_name_lib_hook="\ 6188 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6189 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6190 else 6191 # Disable hooks by default. 6192 lt_cv_sys_global_symbol_to_import= 6193 lt_cdecl_hook= 6194 lt_c_name_hook= 6195 lt_c_name_lib_hook= 6196 fi 6197 6198 # Transform an extracted symbol line into a proper C declaration. 6199 # Some systems (esp. on ia64) link data and code symbols differently, 6200 # so use this general approach. 6201 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6202 $lt_cdecl_hook\ 6203 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6204 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6205 6206 # Transform an extracted symbol line into symbol name and symbol address 6207 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6208 $lt_c_name_hook\ 6209 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6210 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6211 6212 # Transform an extracted symbol line into symbol name with lib prefix and 6213 # symbol address. 6214 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6215 $lt_c_name_lib_hook\ 6216 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6217 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6218 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6219 6220 # Handle CRLF in mingw tool chain 6221 opt_cr= 6222 case $build_os in 6223 mingw*) 6224 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6225 ;; 6226 esac 6227 6228 # Try without a prefix underscore, then with it. 6229 for ac_symprfx in "" "_"; do 6230 6231 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6232 symxfrm="\\1 $ac_symprfx\\2 \\2" 6233 6234 # Write the raw and C identifiers. 6235 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6236 # Fake it for dumpbin and say T for any non-static function, 6237 # D for any global variable and I for any imported variable. 6238 # Also find C++ and __fastcall symbols from MSVC++, 6239 # which start with @ or ?. 6240 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6241 " {last_section=section; section=\$ 3};"\ 6242 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6243 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6244 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6245 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6246 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6247 " \$ 0!~/External *\|/{next};"\ 6248 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6249 " {if(hide[section]) next};"\ 6250 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6251 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6252 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6253 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6254 " ' prfx=^$ac_symprfx" 6255 else 6256 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6257 fi 6258 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6259 6260 # Check to see that the pipe works correctly. 6261 pipe_works=no 6262 6263 rm -f conftest* 6264 cat > conftest.$ac_ext <<_LT_EOF 6265 #ifdef __cplusplus 6266 extern "C" { 6267 #endif 6268 char nm_test_var; 6269 void nm_test_func(void); 6270 void nm_test_func(void){} 6271 #ifdef __cplusplus 6272 } 6273 #endif 6274 int main(){nm_test_var='a';nm_test_func();return(0);} 6275 _LT_EOF 6276 6277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6278 (eval $ac_compile) 2>&5 6279 ac_status=$? 6280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6281 test $ac_status = 0; }; then 6282 # Now try to grab the symbols. 6283 nlist=conftest.nm 6284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6285 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6286 ac_status=$? 6287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6288 test $ac_status = 0; } && test -s "$nlist"; then 6289 # Try sorting and uniquifying the output. 6290 if sort "$nlist" | uniq > "$nlist"T; then 6291 mv -f "$nlist"T "$nlist" 6292 else 6293 rm -f "$nlist"T 6294 fi 6295 6296 # Make sure that we snagged all the symbols we need. 6297 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6298 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6299 cat <<_LT_EOF > conftest.$ac_ext 6300 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6301 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6302 /* DATA imports from DLLs on WIN32 can't be const, because runtime 6303 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6304 # define LT_DLSYM_CONST 6305 #elif defined __osf__ 6306 /* This system does not cope well with relocations in const data. */ 6307 # define LT_DLSYM_CONST 6308 #else 6309 # define LT_DLSYM_CONST const 6310 #endif 6311 6312 #ifdef __cplusplus 6313 extern "C" { 6314 #endif 6315 6316 _LT_EOF 6317 # Now generate the symbol file. 6318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6319 6320 cat <<_LT_EOF >> conftest.$ac_ext 6321 6322 /* The mapping between symbol names and symbols. */ 6323 LT_DLSYM_CONST struct { 6324 const char *name; 6325 void *address; 6326 } 6327 lt__PROGRAM__LTX_preloaded_symbols[] = 6328 { 6329 { "@PROGRAM@", (void *) 0 }, 6330 _LT_EOF 6331 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6332 cat <<\_LT_EOF >> conftest.$ac_ext 6333 {0, (void *) 0} 6334 }; 6335 6336 /* This works around a problem in FreeBSD linker */ 6337 #ifdef FREEBSD_WORKAROUND 6338 static const void *lt_preloaded_setup() { 6339 return lt__PROGRAM__LTX_preloaded_symbols; 6340 } 6341 #endif 6342 6343 #ifdef __cplusplus 6344 } 6345 #endif 6346 _LT_EOF 6347 # Now try linking the two files. 6348 mv conftest.$ac_objext conftstm.$ac_objext 6349 lt_globsym_save_LIBS=$LIBS 6350 lt_globsym_save_CFLAGS=$CFLAGS 6351 LIBS=conftstm.$ac_objext 6352 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6354 (eval $ac_link) 2>&5 6355 ac_status=$? 6356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6357 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6358 pipe_works=yes 6359 fi 6360 LIBS=$lt_globsym_save_LIBS 6361 CFLAGS=$lt_globsym_save_CFLAGS 6362 else 6363 echo "cannot find nm_test_func in $nlist" >&5 6364 fi 6365 else 6366 echo "cannot find nm_test_var in $nlist" >&5 6367 fi 6368 else 6369 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6370 fi 6371 else 6372 echo "$progname: failed program was:" >&5 6373 cat conftest.$ac_ext >&5 6374 fi 6375 rm -rf conftest* conftst* 6376 6377 # Do not use the global_symbol_pipe unless it works. 6378 if test yes = "$pipe_works"; then 6379 break 6380 else 6381 lt_cv_sys_global_symbol_pipe= 6382 fi 6383 done 6384 6385 fi 6386 6387 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6388 lt_cv_sys_global_symbol_to_cdecl= 6389 fi 6390 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6392 $as_echo "failed" >&6; } 6393 else 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6395 $as_echo "ok" >&6; } 6396 fi 6397 6398 # Response file support. 6399 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6400 nm_file_list_spec='@' 6401 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6402 nm_file_list_spec='@' 6403 fi 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 6437 6438 6439 6440 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6442 $as_echo_n "checking for sysroot... " >&6; } 6443 6444 # Check whether --with-sysroot was given. 6445 if test "${with_sysroot+set}" = set; then : 6446 withval=$with_sysroot; 6447 else 6448 with_sysroot=no 6449 fi 6450 6451 6452 lt_sysroot= 6453 case $with_sysroot in #( 6454 yes) 6455 if test yes = "$GCC"; then 6456 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6457 fi 6458 ;; #( 6459 /*) 6460 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6461 ;; #( 6462 no|'') 6463 ;; #( 6464 *) 6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6466 $as_echo "$with_sysroot" >&6; } 6467 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6468 ;; 6469 esac 6470 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6472 $as_echo "${lt_sysroot:-no}" >&6; } 6473 6474 6475 6476 6477 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6479 $as_echo_n "checking for a working dd... " >&6; } 6480 if ${ac_cv_path_lt_DD+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482 else 6483 printf 0123456789abcdef0123456789abcdef >conftest.i 6484 cat conftest.i conftest.i >conftest2.i 6485 : ${lt_DD:=$DD} 6486 if test -z "$lt_DD"; then 6487 ac_path_lt_DD_found=false 6488 # Loop through the user's path and test for each of PROGNAME-LIST 6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6490 for as_dir in $PATH 6491 do 6492 IFS=$as_save_IFS 6493 test -z "$as_dir" && as_dir=. 6494 for ac_prog in dd; do 6495 for ac_exec_ext in '' $ac_executable_extensions; do 6496 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6497 as_fn_executable_p "$ac_path_lt_DD" || continue 6498 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6499 cmp -s conftest.i conftest.out \ 6500 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6501 fi 6502 $ac_path_lt_DD_found && break 3 6503 done 6504 done 6505 done 6506 IFS=$as_save_IFS 6507 if test -z "$ac_cv_path_lt_DD"; then 6508 : 6509 fi 6510 else 6511 ac_cv_path_lt_DD=$lt_DD 6512 fi 6513 6514 rm -f conftest.i conftest2.i conftest.out 6515 fi 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6517 $as_echo "$ac_cv_path_lt_DD" >&6; } 6518 6519 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6521 $as_echo_n "checking how to truncate binary pipes... " >&6; } 6522 if ${lt_cv_truncate_bin+:} false; then : 6523 $as_echo_n "(cached) " >&6 6524 else 6525 printf 0123456789abcdef0123456789abcdef >conftest.i 6526 cat conftest.i conftest.i >conftest2.i 6527 lt_cv_truncate_bin= 6528 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6529 cmp -s conftest.i conftest.out \ 6530 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6531 fi 6532 rm -f conftest.i conftest2.i conftest.out 6533 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6534 fi 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6536 $as_echo "$lt_cv_truncate_bin" >&6; } 6537 6538 6539 6540 6541 6542 6543 6544 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6545 func_cc_basename () 6546 { 6547 for cc_temp in $*""; do 6548 case $cc_temp in 6549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6551 \-*) ;; 6552 *) break;; 6553 esac 6554 done 6555 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6556 } 6557 6558 # Check whether --enable-libtool-lock was given. 6559 if test "${enable_libtool_lock+set}" = set; then : 6560 enableval=$enable_libtool_lock; 6561 fi 6562 6563 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6564 6565 # Some flags need to be propagated to the compiler or linker for good 6566 # libtool support. 6567 case $host in 6568 ia64-*-hpux*) 6569 # Find out what ABI is being produced by ac_compile, and set mode 6570 # options accordingly. 6571 echo 'int i;' > conftest.$ac_ext 6572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6573 (eval $ac_compile) 2>&5 6574 ac_status=$? 6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6576 test $ac_status = 0; }; then 6577 case `/usr/bin/file conftest.$ac_objext` in 6578 *ELF-32*) 6579 HPUX_IA64_MODE=32 6580 ;; 6581 *ELF-64*) 6582 HPUX_IA64_MODE=64 6583 ;; 6584 esac 6585 fi 6586 rm -rf conftest* 6587 ;; 6588 *-*-irix6*) 6589 # Find out what ABI is being produced by ac_compile, and set linker 6590 # options accordingly. 6591 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6593 (eval $ac_compile) 2>&5 6594 ac_status=$? 6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6596 test $ac_status = 0; }; then 6597 if test yes = "$lt_cv_prog_gnu_ld"; then 6598 case `/usr/bin/file conftest.$ac_objext` in 6599 *32-bit*) 6600 LD="${LD-ld} -melf32bsmip" 6601 ;; 6602 *N32*) 6603 LD="${LD-ld} -melf32bmipn32" 6604 ;; 6605 *64-bit*) 6606 LD="${LD-ld} -melf64bmip" 6607 ;; 6608 esac 6609 else 6610 case `/usr/bin/file conftest.$ac_objext` in 6611 *32-bit*) 6612 LD="${LD-ld} -32" 6613 ;; 6614 *N32*) 6615 LD="${LD-ld} -n32" 6616 ;; 6617 *64-bit*) 6618 LD="${LD-ld} -64" 6619 ;; 6620 esac 6621 fi 6622 fi 6623 rm -rf conftest* 6624 ;; 6625 6626 mips64*-*linux*) 6627 # Find out what ABI is being produced by ac_compile, and set linker 6628 # options accordingly. 6629 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6631 (eval $ac_compile) 2>&5 6632 ac_status=$? 6633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6634 test $ac_status = 0; }; then 6635 emul=elf 6636 case `/usr/bin/file conftest.$ac_objext` in 6637 *32-bit*) 6638 emul="${emul}32" 6639 ;; 6640 *64-bit*) 6641 emul="${emul}64" 6642 ;; 6643 esac 6644 case `/usr/bin/file conftest.$ac_objext` in 6645 *MSB*) 6646 emul="${emul}btsmip" 6647 ;; 6648 *LSB*) 6649 emul="${emul}ltsmip" 6650 ;; 6651 esac 6652 case `/usr/bin/file conftest.$ac_objext` in 6653 *N32*) 6654 emul="${emul}n32" 6655 ;; 6656 esac 6657 LD="${LD-ld} -m $emul" 6658 fi 6659 rm -rf conftest* 6660 ;; 6661 6662 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6663 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6664 # Find out what ABI is being produced by ac_compile, and set linker 6665 # options accordingly. Note that the listed cases only cover the 6666 # situations where additional linker options are needed (such as when 6667 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6668 # vice versa); the common cases where no linker options are needed do 6669 # not appear in the list. 6670 echo 'int i;' > conftest.$ac_ext 6671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6672 (eval $ac_compile) 2>&5 6673 ac_status=$? 6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6675 test $ac_status = 0; }; then 6676 case `/usr/bin/file conftest.o` in 6677 *32-bit*) 6678 case $host in 6679 x86_64-*kfreebsd*-gnu) 6680 LD="${LD-ld} -m elf_i386_fbsd" 6681 ;; 6682 x86_64-*linux*) 6683 case `/usr/bin/file conftest.o` in 6684 *x86-64*) 6685 LD="${LD-ld} -m elf32_x86_64" 6686 ;; 6687 *) 6688 LD="${LD-ld} -m elf_i386" 6689 ;; 6690 esac 6691 ;; 6692 powerpc64le-*linux*) 6693 LD="${LD-ld} -m elf32lppclinux" 6694 ;; 6695 powerpc64-*linux*) 6696 LD="${LD-ld} -m elf32ppclinux" 6697 ;; 6698 s390x-*linux*) 6699 LD="${LD-ld} -m elf_s390" 6700 ;; 6701 sparc64-*linux*) 6702 LD="${LD-ld} -m elf32_sparc" 6703 ;; 6704 esac 6705 ;; 6706 *64-bit*) 6707 case $host in 6708 x86_64-*kfreebsd*-gnu) 6709 LD="${LD-ld} -m elf_x86_64_fbsd" 6710 ;; 6711 x86_64-*linux*) 6712 LD="${LD-ld} -m elf_x86_64" 6713 ;; 6714 powerpcle-*linux*) 6715 LD="${LD-ld} -m elf64lppc" 6716 ;; 6717 powerpc-*linux*) 6718 LD="${LD-ld} -m elf64ppc" 6719 ;; 6720 s390*-*linux*|s390*-*tpf*) 6721 LD="${LD-ld} -m elf64_s390" 6722 ;; 6723 sparc*-*linux*) 6724 LD="${LD-ld} -m elf64_sparc" 6725 ;; 6726 esac 6727 ;; 6728 esac 6729 fi 6730 rm -rf conftest* 6731 ;; 6732 6733 *-*-sco3.2v5*) 6734 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6735 SAVE_CFLAGS=$CFLAGS 6736 CFLAGS="$CFLAGS -belf" 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6738 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6739 if ${lt_cv_cc_needs_belf+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741 else 6742 ac_ext=c 6743 ac_cpp='$CPP $CPPFLAGS' 6744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6746 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6747 6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6749 /* end confdefs.h. */ 6750 6751 int 6752 main () 6753 { 6754 6755 ; 6756 return 0; 6757 } 6758 _ACEOF 6759 if ac_fn_c_try_link "$LINENO"; then : 6760 lt_cv_cc_needs_belf=yes 6761 else 6762 lt_cv_cc_needs_belf=no 6763 fi 6764 rm -f core conftest.err conftest.$ac_objext \ 6765 conftest$ac_exeext conftest.$ac_ext 6766 ac_ext=c 6767 ac_cpp='$CPP $CPPFLAGS' 6768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6770 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6771 6772 fi 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6774 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6775 if test yes != "$lt_cv_cc_needs_belf"; then 6776 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6777 CFLAGS=$SAVE_CFLAGS 6778 fi 6779 ;; 6780 *-*solaris*) 6781 # Find out what ABI is being produced by ac_compile, and set linker 6782 # options accordingly. 6783 echo 'int i;' > conftest.$ac_ext 6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6785 (eval $ac_compile) 2>&5 6786 ac_status=$? 6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6788 test $ac_status = 0; }; then 6789 case `/usr/bin/file conftest.o` in 6790 *64-bit*) 6791 case $lt_cv_prog_gnu_ld in 6792 yes*) 6793 case $host in 6794 i?86-*-solaris*|x86_64-*-solaris*) 6795 LD="${LD-ld} -m elf_x86_64" 6796 ;; 6797 sparc*-*-solaris*) 6798 LD="${LD-ld} -m elf64_sparc" 6799 ;; 6800 esac 6801 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6802 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6803 LD=${LD-ld}_sol2 6804 fi 6805 ;; 6806 *) 6807 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6808 LD="${LD-ld} -64" 6809 fi 6810 ;; 6811 esac 6812 ;; 6813 esac 6814 fi 6815 rm -rf conftest* 6816 ;; 6817 esac 6818 6819 need_locks=$enable_libtool_lock 6820 6821 if test -n "$ac_tool_prefix"; then 6822 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6823 set dummy ${ac_tool_prefix}mt; ac_word=$2 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6825 $as_echo_n "checking for $ac_word... " >&6; } 6826 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828 else 6829 if test -n "$MANIFEST_TOOL"; then 6830 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6831 else 6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6833 for as_dir in $PATH 6834 do 6835 IFS=$as_save_IFS 6836 test -z "$as_dir" && as_dir=. 6837 for ac_exec_ext in '' $ac_executable_extensions; do 6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6839 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6841 break 2 6842 fi 6843 done 6844 done 6845 IFS=$as_save_IFS 6846 6847 fi 6848 fi 6849 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6850 if test -n "$MANIFEST_TOOL"; then 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6852 $as_echo "$MANIFEST_TOOL" >&6; } 6853 else 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6855 $as_echo "no" >&6; } 6856 fi 6857 6858 6859 fi 6860 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6861 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6862 # Extract the first word of "mt", so it can be a program name with args. 6863 set dummy mt; ac_word=$2 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6865 $as_echo_n "checking for $ac_word... " >&6; } 6866 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6867 $as_echo_n "(cached) " >&6 6868 else 6869 if test -n "$ac_ct_MANIFEST_TOOL"; then 6870 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6871 else 6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6873 for as_dir in $PATH 6874 do 6875 IFS=$as_save_IFS 6876 test -z "$as_dir" && as_dir=. 6877 for ac_exec_ext in '' $ac_executable_extensions; do 6878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6879 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6881 break 2 6882 fi 6883 done 6884 done 6885 IFS=$as_save_IFS 6886 6887 fi 6888 fi 6889 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6890 if test -n "$ac_ct_MANIFEST_TOOL"; then 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6892 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6893 else 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6895 $as_echo "no" >&6; } 6896 fi 6897 6898 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6899 MANIFEST_TOOL=":" 6900 else 6901 case $cross_compiling:$ac_tool_warned in 6902 yes:) 6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6905 ac_tool_warned=yes ;; 6906 esac 6907 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6908 fi 6909 else 6910 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6911 fi 6912 6913 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6915 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6916 if ${lt_cv_path_mainfest_tool+:} false; then : 6917 $as_echo_n "(cached) " >&6 6918 else 6919 lt_cv_path_mainfest_tool=no 6920 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6921 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6922 cat conftest.err >&5 6923 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6924 lt_cv_path_mainfest_tool=yes 6925 fi 6926 rm -f conftest* 6927 fi 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6929 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 6930 if test yes != "$lt_cv_path_mainfest_tool"; then 6931 MANIFEST_TOOL=: 6932 fi 6933 6934 6935 6936 6937 6938 6939 case $host_os in 6940 rhapsody* | darwin*) 6941 if test -n "$ac_tool_prefix"; then 6942 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6943 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6945 $as_echo_n "checking for $ac_word... " >&6; } 6946 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948 else 6949 if test -n "$DSYMUTIL"; then 6950 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6951 else 6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6953 for as_dir in $PATH 6954 do 6955 IFS=$as_save_IFS 6956 test -z "$as_dir" && as_dir=. 6957 for ac_exec_ext in '' $ac_executable_extensions; do 6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6959 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6961 break 2 6962 fi 6963 done 6964 done 6965 IFS=$as_save_IFS 6966 6967 fi 6968 fi 6969 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6970 if test -n "$DSYMUTIL"; then 6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6972 $as_echo "$DSYMUTIL" >&6; } 6973 else 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6975 $as_echo "no" >&6; } 6976 fi 6977 6978 6979 fi 6980 if test -z "$ac_cv_prog_DSYMUTIL"; then 6981 ac_ct_DSYMUTIL=$DSYMUTIL 6982 # Extract the first word of "dsymutil", so it can be a program name with args. 6983 set dummy dsymutil; ac_word=$2 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6985 $as_echo_n "checking for $ac_word... " >&6; } 6986 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988 else 6989 if test -n "$ac_ct_DSYMUTIL"; then 6990 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6991 else 6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6993 for as_dir in $PATH 6994 do 6995 IFS=$as_save_IFS 6996 test -z "$as_dir" && as_dir=. 6997 for ac_exec_ext in '' $ac_executable_extensions; do 6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6999 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7001 break 2 7002 fi 7003 done 7004 done 7005 IFS=$as_save_IFS 7006 7007 fi 7008 fi 7009 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7010 if test -n "$ac_ct_DSYMUTIL"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7012 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7013 else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015 $as_echo "no" >&6; } 7016 fi 7017 7018 if test "x$ac_ct_DSYMUTIL" = x; then 7019 DSYMUTIL=":" 7020 else 7021 case $cross_compiling:$ac_tool_warned in 7022 yes:) 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7025 ac_tool_warned=yes ;; 7026 esac 7027 DSYMUTIL=$ac_ct_DSYMUTIL 7028 fi 7029 else 7030 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7031 fi 7032 7033 if test -n "$ac_tool_prefix"; then 7034 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7035 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7037 $as_echo_n "checking for $ac_word... " >&6; } 7038 if ${ac_cv_prog_NMEDIT+:} false; then : 7039 $as_echo_n "(cached) " >&6 7040 else 7041 if test -n "$NMEDIT"; then 7042 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7043 else 7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7045 for as_dir in $PATH 7046 do 7047 IFS=$as_save_IFS 7048 test -z "$as_dir" && as_dir=. 7049 for ac_exec_ext in '' $ac_executable_extensions; do 7050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7051 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7053 break 2 7054 fi 7055 done 7056 done 7057 IFS=$as_save_IFS 7058 7059 fi 7060 fi 7061 NMEDIT=$ac_cv_prog_NMEDIT 7062 if test -n "$NMEDIT"; then 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7064 $as_echo "$NMEDIT" >&6; } 7065 else 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7067 $as_echo "no" >&6; } 7068 fi 7069 7070 7071 fi 7072 if test -z "$ac_cv_prog_NMEDIT"; then 7073 ac_ct_NMEDIT=$NMEDIT 7074 # Extract the first word of "nmedit", so it can be a program name with args. 7075 set dummy nmedit; ac_word=$2 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7077 $as_echo_n "checking for $ac_word... " >&6; } 7078 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7079 $as_echo_n "(cached) " >&6 7080 else 7081 if test -n "$ac_ct_NMEDIT"; then 7082 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7083 else 7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7085 for as_dir in $PATH 7086 do 7087 IFS=$as_save_IFS 7088 test -z "$as_dir" && as_dir=. 7089 for ac_exec_ext in '' $ac_executable_extensions; do 7090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7091 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7093 break 2 7094 fi 7095 done 7096 done 7097 IFS=$as_save_IFS 7098 7099 fi 7100 fi 7101 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7102 if test -n "$ac_ct_NMEDIT"; then 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7104 $as_echo "$ac_ct_NMEDIT" >&6; } 7105 else 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7107 $as_echo "no" >&6; } 7108 fi 7109 7110 if test "x$ac_ct_NMEDIT" = x; then 7111 NMEDIT=":" 7112 else 7113 case $cross_compiling:$ac_tool_warned in 7114 yes:) 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7117 ac_tool_warned=yes ;; 7118 esac 7119 NMEDIT=$ac_ct_NMEDIT 7120 fi 7121 else 7122 NMEDIT="$ac_cv_prog_NMEDIT" 7123 fi 7124 7125 if test -n "$ac_tool_prefix"; then 7126 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7127 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7129 $as_echo_n "checking for $ac_word... " >&6; } 7130 if ${ac_cv_prog_LIPO+:} false; then : 7131 $as_echo_n "(cached) " >&6 7132 else 7133 if test -n "$LIPO"; then 7134 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7135 else 7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7137 for as_dir in $PATH 7138 do 7139 IFS=$as_save_IFS 7140 test -z "$as_dir" && as_dir=. 7141 for ac_exec_ext in '' $ac_executable_extensions; do 7142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7143 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7145 break 2 7146 fi 7147 done 7148 done 7149 IFS=$as_save_IFS 7150 7151 fi 7152 fi 7153 LIPO=$ac_cv_prog_LIPO 7154 if test -n "$LIPO"; then 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7156 $as_echo "$LIPO" >&6; } 7157 else 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7159 $as_echo "no" >&6; } 7160 fi 7161 7162 7163 fi 7164 if test -z "$ac_cv_prog_LIPO"; then 7165 ac_ct_LIPO=$LIPO 7166 # Extract the first word of "lipo", so it can be a program name with args. 7167 set dummy lipo; ac_word=$2 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7169 $as_echo_n "checking for $ac_word... " >&6; } 7170 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7171 $as_echo_n "(cached) " >&6 7172 else 7173 if test -n "$ac_ct_LIPO"; then 7174 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7175 else 7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7177 for as_dir in $PATH 7178 do 7179 IFS=$as_save_IFS 7180 test -z "$as_dir" && as_dir=. 7181 for ac_exec_ext in '' $ac_executable_extensions; do 7182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7183 ac_cv_prog_ac_ct_LIPO="lipo" 7184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7185 break 2 7186 fi 7187 done 7188 done 7189 IFS=$as_save_IFS 7190 7191 fi 7192 fi 7193 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7194 if test -n "$ac_ct_LIPO"; then 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7196 $as_echo "$ac_ct_LIPO" >&6; } 7197 else 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7199 $as_echo "no" >&6; } 7200 fi 7201 7202 if test "x$ac_ct_LIPO" = x; then 7203 LIPO=":" 7204 else 7205 case $cross_compiling:$ac_tool_warned in 7206 yes:) 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7209 ac_tool_warned=yes ;; 7210 esac 7211 LIPO=$ac_ct_LIPO 7212 fi 7213 else 7214 LIPO="$ac_cv_prog_LIPO" 7215 fi 7216 7217 if test -n "$ac_tool_prefix"; then 7218 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7219 set dummy ${ac_tool_prefix}otool; ac_word=$2 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7221 $as_echo_n "checking for $ac_word... " >&6; } 7222 if ${ac_cv_prog_OTOOL+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224 else 7225 if test -n "$OTOOL"; then 7226 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7227 else 7228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229 for as_dir in $PATH 7230 do 7231 IFS=$as_save_IFS 7232 test -z "$as_dir" && as_dir=. 7233 for ac_exec_ext in '' $ac_executable_extensions; do 7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7235 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7237 break 2 7238 fi 7239 done 7240 done 7241 IFS=$as_save_IFS 7242 7243 fi 7244 fi 7245 OTOOL=$ac_cv_prog_OTOOL 7246 if test -n "$OTOOL"; then 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7248 $as_echo "$OTOOL" >&6; } 7249 else 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7251 $as_echo "no" >&6; } 7252 fi 7253 7254 7255 fi 7256 if test -z "$ac_cv_prog_OTOOL"; then 7257 ac_ct_OTOOL=$OTOOL 7258 # Extract the first word of "otool", so it can be a program name with args. 7259 set dummy otool; ac_word=$2 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7261 $as_echo_n "checking for $ac_word... " >&6; } 7262 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7263 $as_echo_n "(cached) " >&6 7264 else 7265 if test -n "$ac_ct_OTOOL"; then 7266 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7267 else 7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269 for as_dir in $PATH 7270 do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_exec_ext in '' $ac_executable_extensions; do 7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7275 ac_cv_prog_ac_ct_OTOOL="otool" 7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7277 break 2 7278 fi 7279 done 7280 done 7281 IFS=$as_save_IFS 7282 7283 fi 7284 fi 7285 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7286 if test -n "$ac_ct_OTOOL"; then 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7288 $as_echo "$ac_ct_OTOOL" >&6; } 7289 else 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7291 $as_echo "no" >&6; } 7292 fi 7293 7294 if test "x$ac_ct_OTOOL" = x; then 7295 OTOOL=":" 7296 else 7297 case $cross_compiling:$ac_tool_warned in 7298 yes:) 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7301 ac_tool_warned=yes ;; 7302 esac 7303 OTOOL=$ac_ct_OTOOL 7304 fi 7305 else 7306 OTOOL="$ac_cv_prog_OTOOL" 7307 fi 7308 7309 if test -n "$ac_tool_prefix"; then 7310 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7311 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7313 $as_echo_n "checking for $ac_word... " >&6; } 7314 if ${ac_cv_prog_OTOOL64+:} false; then : 7315 $as_echo_n "(cached) " >&6 7316 else 7317 if test -n "$OTOOL64"; then 7318 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7319 else 7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7321 for as_dir in $PATH 7322 do 7323 IFS=$as_save_IFS 7324 test -z "$as_dir" && as_dir=. 7325 for ac_exec_ext in '' $ac_executable_extensions; do 7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7327 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7329 break 2 7330 fi 7331 done 7332 done 7333 IFS=$as_save_IFS 7334 7335 fi 7336 fi 7337 OTOOL64=$ac_cv_prog_OTOOL64 7338 if test -n "$OTOOL64"; then 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7340 $as_echo "$OTOOL64" >&6; } 7341 else 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7343 $as_echo "no" >&6; } 7344 fi 7345 7346 7347 fi 7348 if test -z "$ac_cv_prog_OTOOL64"; then 7349 ac_ct_OTOOL64=$OTOOL64 7350 # Extract the first word of "otool64", so it can be a program name with args. 7351 set dummy otool64; ac_word=$2 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7353 $as_echo_n "checking for $ac_word... " >&6; } 7354 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7355 $as_echo_n "(cached) " >&6 7356 else 7357 if test -n "$ac_ct_OTOOL64"; then 7358 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7359 else 7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7361 for as_dir in $PATH 7362 do 7363 IFS=$as_save_IFS 7364 test -z "$as_dir" && as_dir=. 7365 for ac_exec_ext in '' $ac_executable_extensions; do 7366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7367 ac_cv_prog_ac_ct_OTOOL64="otool64" 7368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7369 break 2 7370 fi 7371 done 7372 done 7373 IFS=$as_save_IFS 7374 7375 fi 7376 fi 7377 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7378 if test -n "$ac_ct_OTOOL64"; then 7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7380 $as_echo "$ac_ct_OTOOL64" >&6; } 7381 else 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7383 $as_echo "no" >&6; } 7384 fi 7385 7386 if test "x$ac_ct_OTOOL64" = x; then 7387 OTOOL64=":" 7388 else 7389 case $cross_compiling:$ac_tool_warned in 7390 yes:) 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7393 ac_tool_warned=yes ;; 7394 esac 7395 OTOOL64=$ac_ct_OTOOL64 7396 fi 7397 else 7398 OTOOL64="$ac_cv_prog_OTOOL64" 7399 fi 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7428 $as_echo_n "checking for -single_module linker flag... " >&6; } 7429 if ${lt_cv_apple_cc_single_mod+:} false; then : 7430 $as_echo_n "(cached) " >&6 7431 else 7432 lt_cv_apple_cc_single_mod=no 7433 if test -z "$LT_MULTI_MODULE"; then 7434 # By default we will add the -single_module flag. You can override 7435 # by either setting the environment variable LT_MULTI_MODULE 7436 # non-empty at configure time, or by adding -multi_module to the 7437 # link flags. 7438 rm -rf libconftest.dylib* 7439 echo "int foo(void){return 1;}" > conftest.c 7440 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7441 -dynamiclib -Wl,-single_module conftest.c" >&5 7442 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7443 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7444 _lt_result=$? 7445 # If there is a non-empty error log, and "single_module" 7446 # appears in it, assume the flag caused a linker warning 7447 if test -s conftest.err && $GREP single_module conftest.err; then 7448 cat conftest.err >&5 7449 # Otherwise, if the output was created with a 0 exit code from 7450 # the compiler, it worked. 7451 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7452 lt_cv_apple_cc_single_mod=yes 7453 else 7454 cat conftest.err >&5 7455 fi 7456 rm -rf libconftest.dylib* 7457 rm -f conftest.* 7458 fi 7459 fi 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7461 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7462 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7464 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7465 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467 else 7468 lt_cv_ld_exported_symbols_list=no 7469 save_LDFLAGS=$LDFLAGS 7470 echo "_main" > conftest.sym 7471 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7473 /* end confdefs.h. */ 7474 7475 int 7476 main () 7477 { 7478 7479 ; 7480 return 0; 7481 } 7482 _ACEOF 7483 if ac_fn_c_try_link "$LINENO"; then : 7484 lt_cv_ld_exported_symbols_list=yes 7485 else 7486 lt_cv_ld_exported_symbols_list=no 7487 fi 7488 rm -f core conftest.err conftest.$ac_objext \ 7489 conftest$ac_exeext conftest.$ac_ext 7490 LDFLAGS=$save_LDFLAGS 7491 7492 fi 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7494 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7495 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7497 $as_echo_n "checking for -force_load linker flag... " >&6; } 7498 if ${lt_cv_ld_force_load+:} false; then : 7499 $as_echo_n "(cached) " >&6 7500 else 7501 lt_cv_ld_force_load=no 7502 cat > conftest.c << _LT_EOF 7503 int forced_loaded() { return 2;} 7504 _LT_EOF 7505 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7506 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7507 echo "$AR cru libconftest.a conftest.o" >&5 7508 $AR cru libconftest.a conftest.o 2>&5 7509 echo "$RANLIB libconftest.a" >&5 7510 $RANLIB libconftest.a 2>&5 7511 cat > conftest.c << _LT_EOF 7512 int main() { return 0;} 7513 _LT_EOF 7514 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7515 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7516 _lt_result=$? 7517 if test -s conftest.err && $GREP force_load conftest.err; then 7518 cat conftest.err >&5 7519 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7520 lt_cv_ld_force_load=yes 7521 else 7522 cat conftest.err >&5 7523 fi 7524 rm -f conftest.err libconftest.a conftest conftest.c 7525 rm -rf conftest.dSYM 7526 7527 fi 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7529 $as_echo "$lt_cv_ld_force_load" >&6; } 7530 case $host_os in 7531 rhapsody* | darwin1.[012]) 7532 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7533 darwin1.*) 7534 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7535 darwin*) # darwin 5.x on 7536 # if running on 10.5 or later, the deployment target defaults 7537 # to the OS version, if on x86, and 10.4, the deployment 7538 # target defaults to 10.4. Don't you love it? 7539 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7540 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7541 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7542 10.[012][,.]*) 7543 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7544 10.*) 7545 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7546 esac 7547 ;; 7548 esac 7549 if test yes = "$lt_cv_apple_cc_single_mod"; then 7550 _lt_dar_single_mod='$single_module' 7551 fi 7552 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7553 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7554 else 7555 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7556 fi 7557 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7558 _lt_dsymutil='~$DSYMUTIL $lib || :' 7559 else 7560 _lt_dsymutil= 7561 fi 7562 ;; 7563 esac 7564 7565 # func_munge_path_list VARIABLE PATH 7566 # ----------------------------------- 7567 # VARIABLE is name of variable containing _space_ separated list of 7568 # directories to be munged by the contents of PATH, which is string 7569 # having a format: 7570 # "DIR[:DIR]:" 7571 # string "DIR[ DIR]" will be prepended to VARIABLE 7572 # ":DIR[:DIR]" 7573 # string "DIR[ DIR]" will be appended to VARIABLE 7574 # "DIRP[:DIRP]::[DIRA:]DIRA" 7575 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7576 # "DIRA[ DIRA]" will be appended to VARIABLE 7577 # "DIR[:DIR]" 7578 # VARIABLE will be replaced by "DIR[ DIR]" 7579 func_munge_path_list () 7580 { 7581 case x$2 in 7582 x) 7583 ;; 7584 *:) 7585 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7586 ;; 7587 x:*) 7588 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7589 ;; 7590 *::*) 7591 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7592 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7593 ;; 7594 *) 7595 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7596 ;; 7597 esac 7598 } 7599 7600 ac_ext=c 7601 ac_cpp='$CPP $CPPFLAGS' 7602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7604 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7606 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7607 # On Suns, sometimes $CPP names a directory. 7608 if test -n "$CPP" && test -d "$CPP"; then 7609 CPP= 7610 fi 7611 if test -z "$CPP"; then 7612 if ${ac_cv_prog_CPP+:} false; then : 7613 $as_echo_n "(cached) " >&6 7614 else 7615 # Double quotes because CPP needs to be expanded 7616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7617 do 7618 ac_preproc_ok=false 7619 for ac_c_preproc_warn_flag in '' yes 7620 do 7621 # Use a header file that comes with gcc, so configuring glibc 7622 # with a fresh cross-compiler works. 7623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7624 # <limits.h> exists even on freestanding compilers. 7625 # On the NeXT, cc -E runs the code through the compiler's parser, 7626 # not just through cpp. "Syntax error" is here to catch this case. 7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628 /* end confdefs.h. */ 7629 #ifdef __STDC__ 7630 # include <limits.h> 7631 #else 7632 # include <assert.h> 7633 #endif 7634 Syntax error 7635 _ACEOF 7636 if ac_fn_c_try_cpp "$LINENO"; then : 7637 7638 else 7639 # Broken: fails on valid input. 7640 continue 7641 fi 7642 rm -f conftest.err conftest.i conftest.$ac_ext 7643 7644 # OK, works on sane cases. Now check whether nonexistent headers 7645 # can be detected and how. 7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7647 /* end confdefs.h. */ 7648 #include <ac_nonexistent.h> 7649 _ACEOF 7650 if ac_fn_c_try_cpp "$LINENO"; then : 7651 # Broken: success on invalid input. 7652 continue 7653 else 7654 # Passes both tests. 7655 ac_preproc_ok=: 7656 break 7657 fi 7658 rm -f conftest.err conftest.i conftest.$ac_ext 7659 7660 done 7661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7662 rm -f conftest.i conftest.err conftest.$ac_ext 7663 if $ac_preproc_ok; then : 7664 break 7665 fi 7666 7667 done 7668 ac_cv_prog_CPP=$CPP 7669 7670 fi 7671 CPP=$ac_cv_prog_CPP 7672 else 7673 ac_cv_prog_CPP=$CPP 7674 fi 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7676 $as_echo "$CPP" >&6; } 7677 ac_preproc_ok=false 7678 for ac_c_preproc_warn_flag in '' yes 7679 do 7680 # Use a header file that comes with gcc, so configuring glibc 7681 # with a fresh cross-compiler works. 7682 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7683 # <limits.h> exists even on freestanding compilers. 7684 # On the NeXT, cc -E runs the code through the compiler's parser, 7685 # not just through cpp. "Syntax error" is here to catch this case. 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7687 /* end confdefs.h. */ 7688 #ifdef __STDC__ 7689 # include <limits.h> 7690 #else 7691 # include <assert.h> 7692 #endif 7693 Syntax error 7694 _ACEOF 7695 if ac_fn_c_try_cpp "$LINENO"; then : 7696 7697 else 7698 # Broken: fails on valid input. 7699 continue 7700 fi 7701 rm -f conftest.err conftest.i conftest.$ac_ext 7702 7703 # OK, works on sane cases. Now check whether nonexistent headers 7704 # can be detected and how. 7705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7706 /* end confdefs.h. */ 7707 #include <ac_nonexistent.h> 7708 _ACEOF 7709 if ac_fn_c_try_cpp "$LINENO"; then : 7710 # Broken: success on invalid input. 7711 continue 7712 else 7713 # Passes both tests. 7714 ac_preproc_ok=: 7715 break 7716 fi 7717 rm -f conftest.err conftest.i conftest.$ac_ext 7718 7719 done 7720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7721 rm -f conftest.i conftest.err conftest.$ac_ext 7722 if $ac_preproc_ok; then : 7723 7724 else 7725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7727 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7728 See \`config.log' for more details" "$LINENO" 5; } 7729 fi 7730 7731 ac_ext=c 7732 ac_cpp='$CPP $CPPFLAGS' 7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7736 7737 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7739 $as_echo_n "checking for ANSI C header files... " >&6; } 7740 if ${ac_cv_header_stdc+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742 else 7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7744 /* end confdefs.h. */ 7745 #include <stdlib.h> 7746 #include <stdarg.h> 7747 #include <string.h> 7748 #include <float.h> 7749 7750 int 7751 main () 7752 { 7753 7754 ; 7755 return 0; 7756 } 7757 _ACEOF 7758 if ac_fn_c_try_compile "$LINENO"; then : 7759 ac_cv_header_stdc=yes 7760 else 7761 ac_cv_header_stdc=no 7762 fi 7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7764 7765 if test $ac_cv_header_stdc = yes; then 7766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7768 /* end confdefs.h. */ 7769 #include <string.h> 7770 7771 _ACEOF 7772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7773 $EGREP "memchr" >/dev/null 2>&1; then : 7774 7775 else 7776 ac_cv_header_stdc=no 7777 fi 7778 rm -f conftest* 7779 7780 fi 7781 7782 if test $ac_cv_header_stdc = yes; then 7783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7785 /* end confdefs.h. */ 7786 #include <stdlib.h> 7787 7788 _ACEOF 7789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7790 $EGREP "free" >/dev/null 2>&1; then : 7791 7792 else 7793 ac_cv_header_stdc=no 7794 fi 7795 rm -f conftest* 7796 7797 fi 7798 7799 if test $ac_cv_header_stdc = yes; then 7800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7801 if test "$cross_compiling" = yes; then : 7802 : 7803 else 7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7805 /* end confdefs.h. */ 7806 #include <ctype.h> 7807 #include <stdlib.h> 7808 #if ((' ' & 0x0FF) == 0x020) 7809 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7810 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7811 #else 7812 # define ISLOWER(c) \ 7813 (('a' <= (c) && (c) <= 'i') \ 7814 || ('j' <= (c) && (c) <= 'r') \ 7815 || ('s' <= (c) && (c) <= 'z')) 7816 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7817 #endif 7818 7819 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7820 int 7821 main () 7822 { 7823 int i; 7824 for (i = 0; i < 256; i++) 7825 if (XOR (islower (i), ISLOWER (i)) 7826 || toupper (i) != TOUPPER (i)) 7827 return 2; 7828 return 0; 7829 } 7830 _ACEOF 7831 if ac_fn_c_try_run "$LINENO"; then : 7832 7833 else 7834 ac_cv_header_stdc=no 7835 fi 7836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7837 conftest.$ac_objext conftest.beam conftest.$ac_ext 7838 fi 7839 7840 fi 7841 fi 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7843 $as_echo "$ac_cv_header_stdc" >&6; } 7844 if test $ac_cv_header_stdc = yes; then 7845 7846 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7847 7848 fi 7849 7850 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7851 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7852 inttypes.h stdint.h unistd.h 7853 do : 7854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7855 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7856 " 7857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7858 cat >>confdefs.h <<_ACEOF 7859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7860 _ACEOF 7861 7862 fi 7863 7864 done 7865 7866 7867 for ac_header in dlfcn.h 7868 do : 7869 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7870 " 7871 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7872 cat >>confdefs.h <<_ACEOF 7873 #define HAVE_DLFCN_H 1 7874 _ACEOF 7875 7876 fi 7877 7878 done 7879 7880 7881 7882 7883 7884 # Set options 7885 7886 7887 7888 enable_dlopen=no 7889 7890 7891 enable_win32_dll=no 7892 7893 7894 # Check whether --enable-shared was given. 7895 if test "${enable_shared+set}" = set; then : 7896 enableval=$enable_shared; p=${PACKAGE-default} 7897 case $enableval in 7898 yes) enable_shared=yes ;; 7899 no) enable_shared=no ;; 7900 *) 7901 enable_shared=no 7902 # Look at the argument we got. We use all the common list separators. 7903 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7904 for pkg in $enableval; do 7905 IFS=$lt_save_ifs 7906 if test "X$pkg" = "X$p"; then 7907 enable_shared=yes 7908 fi 7909 done 7910 IFS=$lt_save_ifs 7911 ;; 7912 esac 7913 else 7914 enable_shared=yes 7915 fi 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 # Check whether --enable-static was given. 7926 if test "${enable_static+set}" = set; then : 7927 enableval=$enable_static; p=${PACKAGE-default} 7928 case $enableval in 7929 yes) enable_static=yes ;; 7930 no) enable_static=no ;; 7931 *) 7932 enable_static=no 7933 # Look at the argument we got. We use all the common list separators. 7934 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7935 for pkg in $enableval; do 7936 IFS=$lt_save_ifs 7937 if test "X$pkg" = "X$p"; then 7938 enable_static=yes 7939 fi 7940 done 7941 IFS=$lt_save_ifs 7942 ;; 7943 esac 7944 else 7945 enable_static=yes 7946 fi 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 # Check whether --with-pic was given. 7958 if test "${with_pic+set}" = set; then : 7959 withval=$with_pic; lt_p=${PACKAGE-default} 7960 case $withval in 7961 yes|no) pic_mode=$withval ;; 7962 *) 7963 pic_mode=default 7964 # Look at the argument we got. We use all the common list separators. 7965 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7966 for lt_pkg in $withval; do 7967 IFS=$lt_save_ifs 7968 if test "X$lt_pkg" = "X$lt_p"; then 7969 pic_mode=yes 7970 fi 7971 done 7972 IFS=$lt_save_ifs 7973 ;; 7974 esac 7975 else 7976 pic_mode=default 7977 fi 7978 7979 7980 7981 7982 7983 7984 7985 7986 # Check whether --enable-fast-install was given. 7987 if test "${enable_fast_install+set}" = set; then : 7988 enableval=$enable_fast_install; p=${PACKAGE-default} 7989 case $enableval in 7990 yes) enable_fast_install=yes ;; 7991 no) enable_fast_install=no ;; 7992 *) 7993 enable_fast_install=no 7994 # Look at the argument we got. We use all the common list separators. 7995 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7996 for pkg in $enableval; do 7997 IFS=$lt_save_ifs 7998 if test "X$pkg" = "X$p"; then 7999 enable_fast_install=yes 8000 fi 8001 done 8002 IFS=$lt_save_ifs 8003 ;; 8004 esac 8005 else 8006 enable_fast_install=yes 8007 fi 8008 8009 8010 8011 8012 8013 8014 8015 8016 shared_archive_member_spec= 8017 case $host,$enable_shared in 8018 power*-*-aix[5-9]*,yes) 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8020 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8021 8022 # Check whether --with-aix-soname was given. 8023 if test "${with_aix_soname+set}" = set; then : 8024 withval=$with_aix_soname; case $withval in 8025 aix|svr4|both) 8026 ;; 8027 *) 8028 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8029 ;; 8030 esac 8031 lt_cv_with_aix_soname=$with_aix_soname 8032 else 8033 if ${lt_cv_with_aix_soname+:} false; then : 8034 $as_echo_n "(cached) " >&6 8035 else 8036 lt_cv_with_aix_soname=aix 8037 fi 8038 8039 with_aix_soname=$lt_cv_with_aix_soname 8040 fi 8041 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8043 $as_echo "$with_aix_soname" >&6; } 8044 if test aix != "$with_aix_soname"; then 8045 # For the AIX way of multilib, we name the shared archive member 8046 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8047 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8048 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8049 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8050 if test 64 = "${OBJECT_MODE-32}"; then 8051 shared_archive_member_spec=shr_64 8052 else 8053 shared_archive_member_spec=shr 8054 fi 8055 fi 8056 ;; 8057 *) 8058 with_aix_soname=aix 8059 ;; 8060 esac 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 # This can be used to rebuild libtool when needed 8072 LIBTOOL_DEPS=$ltmain 8073 8074 # Always use our own libtool. 8075 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 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 8102 8103 8104 8105 8106 test -z "$LN_S" && LN_S="ln -s" 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 if test -n "${ZSH_VERSION+set}"; then 8122 setopt NO_GLOB_SUBST 8123 fi 8124 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8126 $as_echo_n "checking for objdir... " >&6; } 8127 if ${lt_cv_objdir+:} false; then : 8128 $as_echo_n "(cached) " >&6 8129 else 8130 rm -f .libs 2>/dev/null 8131 mkdir .libs 2>/dev/null 8132 if test -d .libs; then 8133 lt_cv_objdir=.libs 8134 else 8135 # MS-DOS does not allow filenames that begin with a dot. 8136 lt_cv_objdir=_libs 8137 fi 8138 rmdir .libs 2>/dev/null 8139 fi 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8141 $as_echo "$lt_cv_objdir" >&6; } 8142 objdir=$lt_cv_objdir 8143 8144 8145 8146 8147 8148 cat >>confdefs.h <<_ACEOF 8149 #define LT_OBJDIR "$lt_cv_objdir/" 8150 _ACEOF 8151 8152 8153 8154 8155 case $host_os in 8156 aix3*) 8157 # AIX sometimes has problems with the GCC collect2 program. For some 8158 # reason, if we set the COLLECT_NAMES environment variable, the problems 8159 # vanish in a puff of smoke. 8160 if test set != "${COLLECT_NAMES+set}"; then 8161 COLLECT_NAMES= 8162 export COLLECT_NAMES 8163 fi 8164 ;; 8165 esac 8166 8167 # Global variables: 8168 ofile=libtool 8169 can_build_shared=yes 8170 8171 # All known linkers require a '.a' archive for static linking (except MSVC, 8172 # which needs '.lib'). 8173 libext=a 8174 8175 with_gnu_ld=$lt_cv_prog_gnu_ld 8176 8177 old_CC=$CC 8178 old_CFLAGS=$CFLAGS 8179 8180 # Set sane defaults for various variables 8181 test -z "$CC" && CC=cc 8182 test -z "$LTCC" && LTCC=$CC 8183 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8184 test -z "$LD" && LD=ld 8185 test -z "$ac_objext" && ac_objext=o 8186 8187 func_cc_basename $compiler 8188 cc_basename=$func_cc_basename_result 8189 8190 8191 # Only perform the check for file, if the check method requires it 8192 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8193 case $deplibs_check_method in 8194 file_magic*) 8195 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8197 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8198 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200 else 8201 case $MAGIC_CMD in 8202 [\\/*] | ?:[\\/]*) 8203 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8204 ;; 8205 *) 8206 lt_save_MAGIC_CMD=$MAGIC_CMD 8207 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8208 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8209 for ac_dir in $ac_dummy; do 8210 IFS=$lt_save_ifs 8211 test -z "$ac_dir" && ac_dir=. 8212 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8213 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8214 if test -n "$file_magic_test_file"; then 8215 case $deplibs_check_method in 8216 "file_magic "*) 8217 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8219 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8220 $EGREP "$file_magic_regex" > /dev/null; then 8221 : 8222 else 8223 cat <<_LT_EOF 1>&2 8224 8225 *** Warning: the command libtool uses to detect shared libraries, 8226 *** $file_magic_cmd, produces output that libtool cannot recognize. 8227 *** The result is that libtool may fail to recognize shared libraries 8228 *** as such. This will affect the creation of libtool libraries that 8229 *** depend on shared libraries, but programs linked with such libtool 8230 *** libraries will work regardless of this problem. Nevertheless, you 8231 *** may want to report the problem to your system manager and/or to 8232 *** bug-libtool@gnu.org 8233 8234 _LT_EOF 8235 fi ;; 8236 esac 8237 fi 8238 break 8239 fi 8240 done 8241 IFS=$lt_save_ifs 8242 MAGIC_CMD=$lt_save_MAGIC_CMD 8243 ;; 8244 esac 8245 fi 8246 8247 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8248 if test -n "$MAGIC_CMD"; then 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8250 $as_echo "$MAGIC_CMD" >&6; } 8251 else 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8253 $as_echo "no" >&6; } 8254 fi 8255 8256 8257 8258 8259 8260 if test -z "$lt_cv_path_MAGIC_CMD"; then 8261 if test -n "$ac_tool_prefix"; then 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8263 $as_echo_n "checking for file... " >&6; } 8264 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8265 $as_echo_n "(cached) " >&6 8266 else 8267 case $MAGIC_CMD in 8268 [\\/*] | ?:[\\/]*) 8269 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8270 ;; 8271 *) 8272 lt_save_MAGIC_CMD=$MAGIC_CMD 8273 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8274 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8275 for ac_dir in $ac_dummy; do 8276 IFS=$lt_save_ifs 8277 test -z "$ac_dir" && ac_dir=. 8278 if test -f "$ac_dir/file"; then 8279 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8280 if test -n "$file_magic_test_file"; then 8281 case $deplibs_check_method in 8282 "file_magic "*) 8283 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8284 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8285 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8286 $EGREP "$file_magic_regex" > /dev/null; then 8287 : 8288 else 8289 cat <<_LT_EOF 1>&2 8290 8291 *** Warning: the command libtool uses to detect shared libraries, 8292 *** $file_magic_cmd, produces output that libtool cannot recognize. 8293 *** The result is that libtool may fail to recognize shared libraries 8294 *** as such. This will affect the creation of libtool libraries that 8295 *** depend on shared libraries, but programs linked with such libtool 8296 *** libraries will work regardless of this problem. Nevertheless, you 8297 *** may want to report the problem to your system manager and/or to 8298 *** bug-libtool@gnu.org 8299 8300 _LT_EOF 8301 fi ;; 8302 esac 8303 fi 8304 break 8305 fi 8306 done 8307 IFS=$lt_save_ifs 8308 MAGIC_CMD=$lt_save_MAGIC_CMD 8309 ;; 8310 esac 8311 fi 8312 8313 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8314 if test -n "$MAGIC_CMD"; then 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8316 $as_echo "$MAGIC_CMD" >&6; } 8317 else 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8319 $as_echo "no" >&6; } 8320 fi 8321 8322 8323 else 8324 MAGIC_CMD=: 8325 fi 8326 fi 8327 8328 fi 8329 ;; 8330 esac 8331 8332 # Use C for the default configuration in the libtool script 8333 8334 lt_save_CC=$CC 8335 ac_ext=c 8336 ac_cpp='$CPP $CPPFLAGS' 8337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8339 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8340 8341 8342 # Source file extension for C test sources. 8343 ac_ext=c 8344 8345 # Object file extension for compiled C test sources. 8346 objext=o 8347 objext=$objext 8348 8349 # Code to be used in simple compile tests 8350 lt_simple_compile_test_code="int some_variable = 0;" 8351 8352 # Code to be used in simple link tests 8353 lt_simple_link_test_code='int main(){return(0);}' 8354 8355 8356 8357 8358 8359 8360 8361 # If no C compiler was specified, use CC. 8362 LTCC=${LTCC-"$CC"} 8363 8364 # If no C compiler flags were specified, use CFLAGS. 8365 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8366 8367 # Allow CC to be a program name with arguments. 8368 compiler=$CC 8369 8370 # Save the default compiler, since it gets overwritten when the other 8371 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8372 compiler_DEFAULT=$CC 8373 8374 # save warnings/boilerplate of simple test code 8375 ac_outfile=conftest.$ac_objext 8376 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8378 _lt_compiler_boilerplate=`cat conftest.err` 8379 $RM conftest* 8380 8381 ac_outfile=conftest.$ac_objext 8382 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8384 _lt_linker_boilerplate=`cat conftest.err` 8385 $RM -r conftest* 8386 8387 8388 ## CAVEAT EMPTOR: 8389 ## There is no encapsulation within the following macros, do not change 8390 ## the running order or otherwise move them around unless you know exactly 8391 ## what you are doing... 8392 if test -n "$compiler"; then 8393 8394 lt_prog_compiler_no_builtin_flag= 8395 8396 if test yes = "$GCC"; then 8397 case $cc_basename in 8398 nvcc*) 8399 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8400 *) 8401 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8402 esac 8403 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8405 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8406 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8407 $as_echo_n "(cached) " >&6 8408 else 8409 lt_cv_prog_compiler_rtti_exceptions=no 8410 ac_outfile=conftest.$ac_objext 8411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8412 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8413 # Insert the option either (1) after the last *FLAGS variable, or 8414 # (2) before a word containing "conftest.", or (3) at the end. 8415 # Note that $ac_compile itself does not contain backslashes and begins 8416 # with a dollar sign (not a hyphen), so the echo should work correctly. 8417 # The option is referenced via a variable to avoid confusing sed. 8418 lt_compile=`echo "$ac_compile" | $SED \ 8419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8421 -e 's:$: $lt_compiler_flag:'` 8422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8423 (eval "$lt_compile" 2>conftest.err) 8424 ac_status=$? 8425 cat conftest.err >&5 8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8427 if (exit $ac_status) && test -s "$ac_outfile"; then 8428 # The compiler can only warn and ignore the option if not recognized 8429 # So say no if there are warnings other than the usual output. 8430 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8432 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8433 lt_cv_prog_compiler_rtti_exceptions=yes 8434 fi 8435 fi 8436 $RM conftest* 8437 8438 fi 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8440 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8441 8442 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8443 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8444 else 8445 : 8446 fi 8447 8448 fi 8449 8450 8451 8452 8453 8454 8455 lt_prog_compiler_wl= 8456 lt_prog_compiler_pic= 8457 lt_prog_compiler_static= 8458 8459 8460 if test yes = "$GCC"; then 8461 lt_prog_compiler_wl='-Wl,' 8462 lt_prog_compiler_static='-static' 8463 8464 case $host_os in 8465 aix*) 8466 # All AIX code is PIC. 8467 if test ia64 = "$host_cpu"; then 8468 # AIX 5 now supports IA64 processor 8469 lt_prog_compiler_static='-Bstatic' 8470 fi 8471 lt_prog_compiler_pic='-fPIC' 8472 ;; 8473 8474 amigaos*) 8475 case $host_cpu in 8476 powerpc) 8477 # see comment about AmigaOS4 .so support 8478 lt_prog_compiler_pic='-fPIC' 8479 ;; 8480 m68k) 8481 # FIXME: we need at least 68020 code to build shared libraries, but 8482 # adding the '-m68020' flag to GCC prevents building anything better, 8483 # like '-m68040'. 8484 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8485 ;; 8486 esac 8487 ;; 8488 8489 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8490 # PIC is the default for these OSes. 8491 ;; 8492 8493 mingw* | cygwin* | pw32* | os2* | cegcc*) 8494 # This hack is so that the source file can tell whether it is being 8495 # built for inclusion in a dll (and should export symbols for example). 8496 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8497 # (--disable-auto-import) libraries 8498 lt_prog_compiler_pic='-DDLL_EXPORT' 8499 case $host_os in 8500 os2*) 8501 lt_prog_compiler_static='$wl-static' 8502 ;; 8503 esac 8504 ;; 8505 8506 darwin* | rhapsody*) 8507 # PIC is the default on this platform 8508 # Common symbols not allowed in MH_DYLIB files 8509 lt_prog_compiler_pic='-fno-common' 8510 ;; 8511 8512 haiku*) 8513 # PIC is the default for Haiku. 8514 # The "-static" flag exists, but is broken. 8515 lt_prog_compiler_static= 8516 ;; 8517 8518 hpux*) 8519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8521 # sets the default TLS model and affects inlining. 8522 case $host_cpu in 8523 hppa*64*) 8524 # +Z the default 8525 ;; 8526 *) 8527 lt_prog_compiler_pic='-fPIC' 8528 ;; 8529 esac 8530 ;; 8531 8532 interix[3-9]*) 8533 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8534 # Instead, we relocate shared libraries at runtime. 8535 ;; 8536 8537 msdosdjgpp*) 8538 # Just because we use GCC doesn't mean we suddenly get shared libraries 8539 # on systems that don't support them. 8540 lt_prog_compiler_can_build_shared=no 8541 enable_shared=no 8542 ;; 8543 8544 *nto* | *qnx*) 8545 # QNX uses GNU C++, but need to define -shared option too, otherwise 8546 # it will coredump. 8547 lt_prog_compiler_pic='-fPIC -shared' 8548 ;; 8549 8550 sysv4*MP*) 8551 if test -d /usr/nec; then 8552 lt_prog_compiler_pic=-Kconform_pic 8553 fi 8554 ;; 8555 8556 *) 8557 lt_prog_compiler_pic='-fPIC' 8558 ;; 8559 esac 8560 8561 case $cc_basename in 8562 nvcc*) # Cuda Compiler Driver 2.2 8563 lt_prog_compiler_wl='-Xlinker ' 8564 if test -n "$lt_prog_compiler_pic"; then 8565 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8566 fi 8567 ;; 8568 esac 8569 else 8570 # PORTME Check for flag to pass linker flags through the system compiler. 8571 case $host_os in 8572 aix*) 8573 lt_prog_compiler_wl='-Wl,' 8574 if test ia64 = "$host_cpu"; then 8575 # AIX 5 now supports IA64 processor 8576 lt_prog_compiler_static='-Bstatic' 8577 else 8578 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8579 fi 8580 ;; 8581 8582 darwin* | rhapsody*) 8583 # PIC is the default on this platform 8584 # Common symbols not allowed in MH_DYLIB files 8585 lt_prog_compiler_pic='-fno-common' 8586 case $cc_basename in 8587 nagfor*) 8588 # NAG Fortran compiler 8589 lt_prog_compiler_wl='-Wl,-Wl,,' 8590 lt_prog_compiler_pic='-PIC' 8591 lt_prog_compiler_static='-Bstatic' 8592 ;; 8593 esac 8594 ;; 8595 8596 mingw* | cygwin* | pw32* | os2* | cegcc*) 8597 # This hack is so that the source file can tell whether it is being 8598 # built for inclusion in a dll (and should export symbols for example). 8599 lt_prog_compiler_pic='-DDLL_EXPORT' 8600 case $host_os in 8601 os2*) 8602 lt_prog_compiler_static='$wl-static' 8603 ;; 8604 esac 8605 ;; 8606 8607 hpux9* | hpux10* | hpux11*) 8608 lt_prog_compiler_wl='-Wl,' 8609 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8610 # not for PA HP-UX. 8611 case $host_cpu in 8612 hppa*64*|ia64*) 8613 # +Z the default 8614 ;; 8615 *) 8616 lt_prog_compiler_pic='+Z' 8617 ;; 8618 esac 8619 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8620 lt_prog_compiler_static='$wl-a ${wl}archive' 8621 ;; 8622 8623 irix5* | irix6* | nonstopux*) 8624 lt_prog_compiler_wl='-Wl,' 8625 # PIC (with -KPIC) is the default. 8626 lt_prog_compiler_static='-non_shared' 8627 ;; 8628 8629 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8630 case $cc_basename in 8631 # old Intel for x86_64, which still supported -KPIC. 8632 ecc*) 8633 lt_prog_compiler_wl='-Wl,' 8634 lt_prog_compiler_pic='-KPIC' 8635 lt_prog_compiler_static='-static' 8636 ;; 8637 # icc used to be incompatible with GCC. 8638 # ICC 10 doesn't accept -KPIC any more. 8639 icc* | ifort*) 8640 lt_prog_compiler_wl='-Wl,' 8641 lt_prog_compiler_pic='-fPIC' 8642 lt_prog_compiler_static='-static' 8643 ;; 8644 # Lahey Fortran 8.1. 8645 lf95*) 8646 lt_prog_compiler_wl='-Wl,' 8647 lt_prog_compiler_pic='--shared' 8648 lt_prog_compiler_static='--static' 8649 ;; 8650 nagfor*) 8651 # NAG Fortran compiler 8652 lt_prog_compiler_wl='-Wl,-Wl,,' 8653 lt_prog_compiler_pic='-PIC' 8654 lt_prog_compiler_static='-Bstatic' 8655 ;; 8656 tcc*) 8657 # Fabrice Bellard et al's Tiny C Compiler 8658 lt_prog_compiler_wl='-Wl,' 8659 lt_prog_compiler_pic='-fPIC' 8660 lt_prog_compiler_static='-static' 8661 ;; 8662 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8663 # Portland Group compilers (*not* the Pentium gcc compiler, 8664 # which looks to be a dead project) 8665 lt_prog_compiler_wl='-Wl,' 8666 lt_prog_compiler_pic='-fpic' 8667 lt_prog_compiler_static='-Bstatic' 8668 ;; 8669 ccc*) 8670 lt_prog_compiler_wl='-Wl,' 8671 # All Alpha code is PIC. 8672 lt_prog_compiler_static='-non_shared' 8673 ;; 8674 xl* | bgxl* | bgf* | mpixl*) 8675 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8676 lt_prog_compiler_wl='-Wl,' 8677 lt_prog_compiler_pic='-qpic' 8678 lt_prog_compiler_static='-qstaticlink' 8679 ;; 8680 *) 8681 case `$CC -V 2>&1 | sed 5q` in 8682 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8683 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8684 lt_prog_compiler_pic='-KPIC' 8685 lt_prog_compiler_static='-Bstatic' 8686 lt_prog_compiler_wl='' 8687 ;; 8688 *Sun\ F* | *Sun*Fortran*) 8689 lt_prog_compiler_pic='-KPIC' 8690 lt_prog_compiler_static='-Bstatic' 8691 lt_prog_compiler_wl='-Qoption ld ' 8692 ;; 8693 *Sun\ C*) 8694 # Sun C 5.9 8695 lt_prog_compiler_pic='-KPIC' 8696 lt_prog_compiler_static='-Bstatic' 8697 lt_prog_compiler_wl='-Wl,' 8698 ;; 8699 *Intel*\ [CF]*Compiler*) 8700 lt_prog_compiler_wl='-Wl,' 8701 lt_prog_compiler_pic='-fPIC' 8702 lt_prog_compiler_static='-static' 8703 ;; 8704 *Portland\ Group*) 8705 lt_prog_compiler_wl='-Wl,' 8706 lt_prog_compiler_pic='-fpic' 8707 lt_prog_compiler_static='-Bstatic' 8708 ;; 8709 esac 8710 ;; 8711 esac 8712 ;; 8713 8714 newsos6) 8715 lt_prog_compiler_pic='-KPIC' 8716 lt_prog_compiler_static='-Bstatic' 8717 ;; 8718 8719 *nto* | *qnx*) 8720 # QNX uses GNU C++, but need to define -shared option too, otherwise 8721 # it will coredump. 8722 lt_prog_compiler_pic='-fPIC -shared' 8723 ;; 8724 8725 osf3* | osf4* | osf5*) 8726 lt_prog_compiler_wl='-Wl,' 8727 # All OSF/1 code is PIC. 8728 lt_prog_compiler_static='-non_shared' 8729 ;; 8730 8731 rdos*) 8732 lt_prog_compiler_static='-non_shared' 8733 ;; 8734 8735 solaris*) 8736 lt_prog_compiler_pic='-KPIC' 8737 lt_prog_compiler_static='-Bstatic' 8738 case $cc_basename in 8739 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8740 lt_prog_compiler_wl='-Qoption ld ';; 8741 *) 8742 lt_prog_compiler_wl='-Wl,';; 8743 esac 8744 ;; 8745 8746 sunos4*) 8747 lt_prog_compiler_wl='-Qoption ld ' 8748 lt_prog_compiler_pic='-PIC' 8749 lt_prog_compiler_static='-Bstatic' 8750 ;; 8751 8752 sysv4 | sysv4.2uw2* | sysv4.3*) 8753 lt_prog_compiler_wl='-Wl,' 8754 lt_prog_compiler_pic='-KPIC' 8755 lt_prog_compiler_static='-Bstatic' 8756 ;; 8757 8758 sysv4*MP*) 8759 if test -d /usr/nec; then 8760 lt_prog_compiler_pic='-Kconform_pic' 8761 lt_prog_compiler_static='-Bstatic' 8762 fi 8763 ;; 8764 8765 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8766 lt_prog_compiler_wl='-Wl,' 8767 lt_prog_compiler_pic='-KPIC' 8768 lt_prog_compiler_static='-Bstatic' 8769 ;; 8770 8771 unicos*) 8772 lt_prog_compiler_wl='-Wl,' 8773 lt_prog_compiler_can_build_shared=no 8774 ;; 8775 8776 uts4*) 8777 lt_prog_compiler_pic='-pic' 8778 lt_prog_compiler_static='-Bstatic' 8779 ;; 8780 8781 *) 8782 lt_prog_compiler_can_build_shared=no 8783 ;; 8784 esac 8785 fi 8786 8787 case $host_os in 8788 # For platforms that do not support PIC, -DPIC is meaningless: 8789 *djgpp*) 8790 lt_prog_compiler_pic= 8791 ;; 8792 *) 8793 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8794 ;; 8795 esac 8796 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8798 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8799 if ${lt_cv_prog_compiler_pic+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801 else 8802 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8803 fi 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8805 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8806 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8807 8808 # 8809 # Check to make sure the PIC flag actually works. 8810 # 8811 if test -n "$lt_prog_compiler_pic"; then 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8813 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8814 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8815 $as_echo_n "(cached) " >&6 8816 else 8817 lt_cv_prog_compiler_pic_works=no 8818 ac_outfile=conftest.$ac_objext 8819 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8820 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8821 # Insert the option either (1) after the last *FLAGS variable, or 8822 # (2) before a word containing "conftest.", or (3) at the end. 8823 # Note that $ac_compile itself does not contain backslashes and begins 8824 # with a dollar sign (not a hyphen), so the echo should work correctly. 8825 # The option is referenced via a variable to avoid confusing sed. 8826 lt_compile=`echo "$ac_compile" | $SED \ 8827 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8828 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8829 -e 's:$: $lt_compiler_flag:'` 8830 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8831 (eval "$lt_compile" 2>conftest.err) 8832 ac_status=$? 8833 cat conftest.err >&5 8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8835 if (exit $ac_status) && test -s "$ac_outfile"; then 8836 # The compiler can only warn and ignore the option if not recognized 8837 # So say no if there are warnings other than the usual output. 8838 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8839 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8840 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8841 lt_cv_prog_compiler_pic_works=yes 8842 fi 8843 fi 8844 $RM conftest* 8845 8846 fi 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8848 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8849 8850 if test yes = "$lt_cv_prog_compiler_pic_works"; then 8851 case $lt_prog_compiler_pic in 8852 "" | " "*) ;; 8853 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8854 esac 8855 else 8856 lt_prog_compiler_pic= 8857 lt_prog_compiler_can_build_shared=no 8858 fi 8859 8860 fi 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 # 8873 # Check to make sure the static flag actually works. 8874 # 8875 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8877 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8878 if ${lt_cv_prog_compiler_static_works+:} false; then : 8879 $as_echo_n "(cached) " >&6 8880 else 8881 lt_cv_prog_compiler_static_works=no 8882 save_LDFLAGS=$LDFLAGS 8883 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8884 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8886 # The linker can only warn and ignore the option if not recognized 8887 # So say no if there are warnings 8888 if test -s conftest.err; then 8889 # Append any errors to the config.log. 8890 cat conftest.err 1>&5 8891 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8893 if diff conftest.exp conftest.er2 >/dev/null; then 8894 lt_cv_prog_compiler_static_works=yes 8895 fi 8896 else 8897 lt_cv_prog_compiler_static_works=yes 8898 fi 8899 fi 8900 $RM -r conftest* 8901 LDFLAGS=$save_LDFLAGS 8902 8903 fi 8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8905 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8906 8907 if test yes = "$lt_cv_prog_compiler_static_works"; then 8908 : 8909 else 8910 lt_prog_compiler_static= 8911 fi 8912 8913 8914 8915 8916 8917 8918 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8920 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8921 if ${lt_cv_prog_compiler_c_o+:} false; then : 8922 $as_echo_n "(cached) " >&6 8923 else 8924 lt_cv_prog_compiler_c_o=no 8925 $RM -r conftest 2>/dev/null 8926 mkdir conftest 8927 cd conftest 8928 mkdir out 8929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8930 8931 lt_compiler_flag="-o out/conftest2.$ac_objext" 8932 # Insert the option either (1) after the last *FLAGS variable, or 8933 # (2) before a word containing "conftest.", or (3) at the end. 8934 # Note that $ac_compile itself does not contain backslashes and begins 8935 # with a dollar sign (not a hyphen), so the echo should work correctly. 8936 lt_compile=`echo "$ac_compile" | $SED \ 8937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8939 -e 's:$: $lt_compiler_flag:'` 8940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8941 (eval "$lt_compile" 2>out/conftest.err) 8942 ac_status=$? 8943 cat out/conftest.err >&5 8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8945 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8946 then 8947 # The compiler can only warn and ignore the option if not recognized 8948 # So say no if there are warnings 8949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8952 lt_cv_prog_compiler_c_o=yes 8953 fi 8954 fi 8955 chmod u+w . 2>&5 8956 $RM conftest* 8957 # SGI C++ compiler will create directory out/ii_files/ for 8958 # template instantiation 8959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8960 $RM out/* && rmdir out 8961 cd .. 8962 $RM -r conftest 8963 $RM conftest* 8964 8965 fi 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8967 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8968 8969 8970 8971 8972 8973 8974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8976 if ${lt_cv_prog_compiler_c_o+:} false; then : 8977 $as_echo_n "(cached) " >&6 8978 else 8979 lt_cv_prog_compiler_c_o=no 8980 $RM -r conftest 2>/dev/null 8981 mkdir conftest 8982 cd conftest 8983 mkdir out 8984 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8985 8986 lt_compiler_flag="-o out/conftest2.$ac_objext" 8987 # Insert the option either (1) after the last *FLAGS variable, or 8988 # (2) before a word containing "conftest.", or (3) at the end. 8989 # Note that $ac_compile itself does not contain backslashes and begins 8990 # with a dollar sign (not a hyphen), so the echo should work correctly. 8991 lt_compile=`echo "$ac_compile" | $SED \ 8992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8994 -e 's:$: $lt_compiler_flag:'` 8995 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8996 (eval "$lt_compile" 2>out/conftest.err) 8997 ac_status=$? 8998 cat out/conftest.err >&5 8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9000 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9001 then 9002 # The compiler can only warn and ignore the option if not recognized 9003 # So say no if there are warnings 9004 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9005 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9006 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9007 lt_cv_prog_compiler_c_o=yes 9008 fi 9009 fi 9010 chmod u+w . 2>&5 9011 $RM conftest* 9012 # SGI C++ compiler will create directory out/ii_files/ for 9013 # template instantiation 9014 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9015 $RM out/* && rmdir out 9016 cd .. 9017 $RM -r conftest 9018 $RM conftest* 9019 9020 fi 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9022 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9023 9024 9025 9026 9027 hard_links=nottested 9028 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9029 # do not overwrite the value of need_locks provided by the user 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9031 $as_echo_n "checking if we can lock with hard links... " >&6; } 9032 hard_links=yes 9033 $RM conftest* 9034 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9035 touch conftest.a 9036 ln conftest.a conftest.b 2>&5 || hard_links=no 9037 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9039 $as_echo "$hard_links" >&6; } 9040 if test no = "$hard_links"; then 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9042 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9043 need_locks=warn 9044 fi 9045 else 9046 need_locks=no 9047 fi 9048 9049 9050 9051 9052 9053 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9055 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9056 9057 runpath_var= 9058 allow_undefined_flag= 9059 always_export_symbols=no 9060 archive_cmds= 9061 archive_expsym_cmds= 9062 compiler_needs_object=no 9063 enable_shared_with_static_runtimes=no 9064 export_dynamic_flag_spec= 9065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9066 hardcode_automatic=no 9067 hardcode_direct=no 9068 hardcode_direct_absolute=no 9069 hardcode_libdir_flag_spec= 9070 hardcode_libdir_separator= 9071 hardcode_minus_L=no 9072 hardcode_shlibpath_var=unsupported 9073 inherit_rpath=no 9074 link_all_deplibs=unknown 9075 module_cmds= 9076 module_expsym_cmds= 9077 old_archive_from_new_cmds= 9078 old_archive_from_expsyms_cmds= 9079 thread_safe_flag_spec= 9080 whole_archive_flag_spec= 9081 # include_expsyms should be a list of space-separated symbols to be *always* 9082 # included in the symbol list 9083 include_expsyms= 9084 # exclude_expsyms can be an extended regexp of symbols to exclude 9085 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9086 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9087 # as well as any symbol that contains 'd'. 9088 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9090 # platforms (ab)use it in PIC code, but their linkers get confused if 9091 # the symbol is explicitly referenced. Since portable code cannot 9092 # rely on this symbol name, it's probably fine to never include it in 9093 # preloaded symbol tables. 9094 # Exclude shared library initialization/finalization symbols. 9095 extract_expsyms_cmds= 9096 9097 case $host_os in 9098 cygwin* | mingw* | pw32* | cegcc*) 9099 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9100 # When not using gcc, we currently assume that we are using 9101 # Microsoft Visual C++. 9102 if test yes != "$GCC"; then 9103 with_gnu_ld=no 9104 fi 9105 ;; 9106 interix*) 9107 # we just hope/assume this is gcc and not c89 (= MSVC++) 9108 with_gnu_ld=yes 9109 ;; 9110 openbsd* | bitrig*) 9111 with_gnu_ld=no 9112 ;; 9113 linux* | k*bsd*-gnu | gnu*) 9114 link_all_deplibs=no 9115 ;; 9116 esac 9117 9118 ld_shlibs=yes 9119 9120 # On some targets, GNU ld is compatible enough with the native linker 9121 # that we're better off using the native interface for both. 9122 lt_use_gnu_ld_interface=no 9123 if test yes = "$with_gnu_ld"; then 9124 case $host_os in 9125 aix*) 9126 # The AIX port of GNU ld has always aspired to compatibility 9127 # with the native linker. However, as the warning in the GNU ld 9128 # block says, versions before 2.19.5* couldn't really create working 9129 # shared libraries, regardless of the interface used. 9130 case `$LD -v 2>&1` in 9131 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9132 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9133 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9134 *) 9135 lt_use_gnu_ld_interface=yes 9136 ;; 9137 esac 9138 ;; 9139 *) 9140 lt_use_gnu_ld_interface=yes 9141 ;; 9142 esac 9143 fi 9144 9145 if test yes = "$lt_use_gnu_ld_interface"; then 9146 # If archive_cmds runs LD, not CC, wlarc should be empty 9147 wlarc='$wl' 9148 9149 # Set some defaults for GNU ld with shared library support. These 9150 # are reset later if shared libraries are not supported. Putting them 9151 # here allows them to be overridden if necessary. 9152 runpath_var=LD_RUN_PATH 9153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9154 export_dynamic_flag_spec='$wl--export-dynamic' 9155 # ancient GNU ld didn't support --whole-archive et. al. 9156 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9157 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9158 else 9159 whole_archive_flag_spec= 9160 fi 9161 supports_anon_versioning=no 9162 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9163 *GNU\ gold*) supports_anon_versioning=yes ;; 9164 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9167 *\ 2.11.*) ;; # other 2.11 versions 9168 *) supports_anon_versioning=yes ;; 9169 esac 9170 9171 # See if GNU ld supports shared libraries. 9172 case $host_os in 9173 aix[3-9]*) 9174 # On AIX/PPC, the GNU linker is very broken 9175 if test ia64 != "$host_cpu"; then 9176 ld_shlibs=no 9177 cat <<_LT_EOF 1>&2 9178 9179 *** Warning: the GNU linker, at least up to release 2.19, is reported 9180 *** to be unable to reliably create shared libraries on AIX. 9181 *** Therefore, libtool is disabling shared libraries support. If you 9182 *** really care for shared libraries, you may want to install binutils 9183 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9184 *** You will then need to restart the configuration process. 9185 9186 _LT_EOF 9187 fi 9188 ;; 9189 9190 amigaos*) 9191 case $host_cpu in 9192 powerpc) 9193 # see comment about AmigaOS4 .so support 9194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9195 archive_expsym_cmds='' 9196 ;; 9197 m68k) 9198 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)' 9199 hardcode_libdir_flag_spec='-L$libdir' 9200 hardcode_minus_L=yes 9201 ;; 9202 esac 9203 ;; 9204 9205 beos*) 9206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9207 allow_undefined_flag=unsupported 9208 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9209 # support --undefined. This deserves some investigation. FIXME 9210 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9211 else 9212 ld_shlibs=no 9213 fi 9214 ;; 9215 9216 cygwin* | mingw* | pw32* | cegcc*) 9217 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9218 # as there is no search path for DLLs. 9219 hardcode_libdir_flag_spec='-L$libdir' 9220 export_dynamic_flag_spec='$wl--export-all-symbols' 9221 allow_undefined_flag=unsupported 9222 always_export_symbols=no 9223 enable_shared_with_static_runtimes=yes 9224 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' 9225 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9226 9227 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9229 # If the export-symbols file already is a .def file, use it as 9230 # is; otherwise, prepend EXPORTS... 9231 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9232 cp $export_symbols $output_objdir/$soname.def; 9233 else 9234 echo EXPORTS > $output_objdir/$soname.def; 9235 cat $export_symbols >> $output_objdir/$soname.def; 9236 fi~ 9237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9238 else 9239 ld_shlibs=no 9240 fi 9241 ;; 9242 9243 haiku*) 9244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9245 link_all_deplibs=yes 9246 ;; 9247 9248 os2*) 9249 hardcode_libdir_flag_spec='-L$libdir' 9250 hardcode_minus_L=yes 9251 allow_undefined_flag=unsupported 9252 shrext_cmds=.dll 9253 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9254 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9255 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9256 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9257 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9258 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9259 emximp -o $lib $output_objdir/$libname.def' 9260 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9261 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9262 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9263 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9264 prefix_cmds="$SED"~ 9265 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9266 prefix_cmds="$prefix_cmds -e 1d"; 9267 fi~ 9268 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9269 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9271 emximp -o $lib $output_objdir/$libname.def' 9272 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9273 enable_shared_with_static_runtimes=yes 9274 ;; 9275 9276 interix[3-9]*) 9277 hardcode_direct=no 9278 hardcode_shlibpath_var=no 9279 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9280 export_dynamic_flag_spec='$wl-E' 9281 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9282 # Instead, shared libraries are loaded at an image base (0x10000000 by 9283 # default) and relocated if they conflict, which is a slow very memory 9284 # consuming and fragmenting process. To avoid this, we pick a random, 9285 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9286 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9287 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9288 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' 9289 ;; 9290 9291 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9292 tmp_diet=no 9293 if test linux-dietlibc = "$host_os"; then 9294 case $cc_basename in 9295 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9296 esac 9297 fi 9298 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9299 && test no = "$tmp_diet" 9300 then 9301 tmp_addflag=' $pic_flag' 9302 tmp_sharedflag='-shared' 9303 case $cc_basename,$host_cpu in 9304 pgcc*) # Portland Group C compiler 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' 9307 ;; 9308 pgf77* | pgf90* | pgf95* | pgfortran*) 9309 # Portland Group f77 and f90 compilers 9310 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' 9311 tmp_addflag=' $pic_flag -Mnomain' ;; 9312 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9313 tmp_addflag=' -i_dynamic' ;; 9314 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9315 tmp_addflag=' -i_dynamic -nofor_main' ;; 9316 ifc* | ifort*) # Intel Fortran compiler 9317 tmp_addflag=' -nofor_main' ;; 9318 lf95*) # Lahey Fortran 8.1 9319 whole_archive_flag_spec= 9320 tmp_sharedflag='--shared' ;; 9321 nagfor*) # NAGFOR 5.3 9322 tmp_sharedflag='-Wl,-shared' ;; 9323 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9324 tmp_sharedflag='-qmkshrobj' 9325 tmp_addflag= ;; 9326 nvcc*) # Cuda Compiler Driver 2.2 9327 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' 9328 compiler_needs_object=yes 9329 ;; 9330 esac 9331 case `$CC -V 2>&1 | sed 5q` in 9332 *Sun\ C*) # Sun C 5.9 9333 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' 9334 compiler_needs_object=yes 9335 tmp_sharedflag='-G' ;; 9336 *Sun\ F*) # Sun Fortran 8.3 9337 tmp_sharedflag='-G' ;; 9338 esac 9339 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9340 9341 if test yes = "$supports_anon_versioning"; then 9342 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9344 echo "local: *; };" >> $output_objdir/$libname.ver~ 9345 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9346 fi 9347 9348 case $cc_basename in 9349 tcc*) 9350 export_dynamic_flag_spec='-rdynamic' 9351 ;; 9352 xlf* | bgf* | bgxlf* | mpixlf*) 9353 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9354 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9356 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9357 if test yes = "$supports_anon_versioning"; then 9358 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9359 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9360 echo "local: *; };" >> $output_objdir/$libname.ver~ 9361 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9362 fi 9363 ;; 9364 esac 9365 else 9366 ld_shlibs=no 9367 fi 9368 ;; 9369 9370 netbsd* | netbsdelf*-gnu) 9371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9372 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9373 wlarc= 9374 else 9375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9376 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9377 fi 9378 ;; 9379 9380 solaris*) 9381 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9382 ld_shlibs=no 9383 cat <<_LT_EOF 1>&2 9384 9385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9386 *** create shared libraries on Solaris systems. Therefore, libtool 9387 *** is disabling shared libraries support. We urge you to upgrade GNU 9388 *** binutils to release 2.9.1 or newer. Another option is to modify 9389 *** your PATH or compiler configuration so that the native linker is 9390 *** used, and then restart. 9391 9392 _LT_EOF 9393 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9394 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9395 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9396 else 9397 ld_shlibs=no 9398 fi 9399 ;; 9400 9401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9402 case `$LD -v 2>&1` in 9403 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9404 ld_shlibs=no 9405 cat <<_LT_EOF 1>&2 9406 9407 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9408 *** reliably create shared libraries on SCO systems. Therefore, libtool 9409 *** is disabling shared libraries support. We urge you to upgrade GNU 9410 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9411 *** your PATH or compiler configuration so that the native linker is 9412 *** used, and then restart. 9413 9414 _LT_EOF 9415 ;; 9416 *) 9417 # For security reasons, it is highly recommended that you always 9418 # use absolute paths for naming shared libraries, and exclude the 9419 # DT_RUNPATH tag from executables and libraries. But doing so 9420 # requires that you compile everything twice, which is a pain. 9421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9422 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9425 else 9426 ld_shlibs=no 9427 fi 9428 ;; 9429 esac 9430 ;; 9431 9432 sunos4*) 9433 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9434 wlarc= 9435 hardcode_direct=yes 9436 hardcode_shlibpath_var=no 9437 ;; 9438 9439 *) 9440 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9441 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9442 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9443 else 9444 ld_shlibs=no 9445 fi 9446 ;; 9447 esac 9448 9449 if test no = "$ld_shlibs"; then 9450 runpath_var= 9451 hardcode_libdir_flag_spec= 9452 export_dynamic_flag_spec= 9453 whole_archive_flag_spec= 9454 fi 9455 else 9456 # PORTME fill in a description of your system's linker (not GNU ld) 9457 case $host_os in 9458 aix3*) 9459 allow_undefined_flag=unsupported 9460 always_export_symbols=yes 9461 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' 9462 # Note: this linker hardcodes the directories in LIBPATH if there 9463 # are no directories specified by -L. 9464 hardcode_minus_L=yes 9465 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9466 # Neither direct hardcoding nor static linking is supported with a 9467 # broken collect2. 9468 hardcode_direct=unsupported 9469 fi 9470 ;; 9471 9472 aix[4-9]*) 9473 if test ia64 = "$host_cpu"; then 9474 # On IA64, the linker does run time linking by default, so we don't 9475 # have to do anything special. 9476 aix_use_runtimelinking=no 9477 exp_sym_flag='-Bexport' 9478 no_entry_flag= 9479 else 9480 # If we're using GNU nm, then we don't want the "-C" option. 9481 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9482 # Without the "-l" option, or with the "-B" option, AIX nm treats 9483 # weak defined symbols like other global defined symbols, whereas 9484 # GNU nm marks them as "W". 9485 # While the 'weak' keyword is ignored in the Export File, we need 9486 # it in the Import File for the 'aix-soname' feature, so we have 9487 # to replace the "-B" option with "-P" for AIX nm. 9488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9489 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' 9490 else 9491 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' 9492 fi 9493 aix_use_runtimelinking=no 9494 9495 # Test if we are trying to use run time linking or normal 9496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9497 # have runtime linking enabled, and use it for executables. 9498 # For shared libraries, we enable/disable runtime linking 9499 # depending on the kind of the shared library created - 9500 # when "with_aix_soname,aix_use_runtimelinking" is: 9501 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9502 # "aix,yes" lib.so shared, rtl:yes, for executables 9503 # lib.a static archive 9504 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9505 # lib.a(lib.so.V) shared, rtl:no, for executables 9506 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9507 # lib.a(lib.so.V) shared, rtl:no 9508 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9509 # lib.a static archive 9510 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9511 for ld_flag in $LDFLAGS; do 9512 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9513 aix_use_runtimelinking=yes 9514 break 9515 fi 9516 done 9517 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9518 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9519 # so we don't have lib.a shared libs to link our executables. 9520 # We have to force runtime linking in this case. 9521 aix_use_runtimelinking=yes 9522 LDFLAGS="$LDFLAGS -Wl,-brtl" 9523 fi 9524 ;; 9525 esac 9526 9527 exp_sym_flag='-bexport' 9528 no_entry_flag='-bnoentry' 9529 fi 9530 9531 # When large executables or shared objects are built, AIX ld can 9532 # have problems creating the table of contents. If linking a library 9533 # or program results in "error TOC overflow" add -mminimal-toc to 9534 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9535 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9536 9537 archive_cmds='' 9538 hardcode_direct=yes 9539 hardcode_direct_absolute=yes 9540 hardcode_libdir_separator=':' 9541 link_all_deplibs=yes 9542 file_list_spec='$wl-f,' 9543 case $with_aix_soname,$aix_use_runtimelinking in 9544 aix,*) ;; # traditional, no import file 9545 svr4,* | *,yes) # use import file 9546 # The Import File defines what to hardcode. 9547 hardcode_direct=no 9548 hardcode_direct_absolute=no 9549 ;; 9550 esac 9551 9552 if test yes = "$GCC"; then 9553 case $host_os in aix4.[012]|aix4.[012].*) 9554 # We only want to do this on AIX 4.2 and lower, the check 9555 # below for broken collect2 doesn't work under 4.3+ 9556 collect2name=`$CC -print-prog-name=collect2` 9557 if test -f "$collect2name" && 9558 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9559 then 9560 # We have reworked collect2 9561 : 9562 else 9563 # We have old collect2 9564 hardcode_direct=unsupported 9565 # It fails to find uninstalled libraries when the uninstalled 9566 # path is not listed in the libpath. Setting hardcode_minus_L 9567 # to unsupported forces relinking 9568 hardcode_minus_L=yes 9569 hardcode_libdir_flag_spec='-L$libdir' 9570 hardcode_libdir_separator= 9571 fi 9572 ;; 9573 esac 9574 shared_flag='-shared' 9575 if test yes = "$aix_use_runtimelinking"; then 9576 shared_flag="$shared_flag "'$wl-G' 9577 fi 9578 # Need to ensure runtime linking is disabled for the traditional 9579 # shared library, or the linker may eventually find shared libraries 9580 # /with/ Import File - we do not want to mix them. 9581 shared_flag_aix='-shared' 9582 shared_flag_svr4='-shared $wl-G' 9583 else 9584 # not using gcc 9585 if test ia64 = "$host_cpu"; then 9586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9587 # chokes on -Wl,-G. The following line is correct: 9588 shared_flag='-G' 9589 else 9590 if test yes = "$aix_use_runtimelinking"; then 9591 shared_flag='$wl-G' 9592 else 9593 shared_flag='$wl-bM:SRE' 9594 fi 9595 shared_flag_aix='$wl-bM:SRE' 9596 shared_flag_svr4='$wl-G' 9597 fi 9598 fi 9599 9600 export_dynamic_flag_spec='$wl-bexpall' 9601 # It seems that -bexpall does not export symbols beginning with 9602 # underscore (_), so it is better to generate a list of symbols to export. 9603 always_export_symbols=yes 9604 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9605 # Warning - without using the other runtime loading flags (-brtl), 9606 # -berok will link without error, but may produce a broken library. 9607 allow_undefined_flag='-berok' 9608 # Determine the default libpath from the value encoded in an 9609 # empty executable. 9610 if test set = "${lt_cv_aix_libpath+set}"; then 9611 aix_libpath=$lt_cv_aix_libpath 9612 else 9613 if ${lt_cv_aix_libpath_+:} false; then : 9614 $as_echo_n "(cached) " >&6 9615 else 9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9617 /* end confdefs.h. */ 9618 9619 int 9620 main () 9621 { 9622 9623 ; 9624 return 0; 9625 } 9626 _ACEOF 9627 if ac_fn_c_try_link "$LINENO"; then : 9628 9629 lt_aix_libpath_sed=' 9630 /Import File Strings/,/^$/ { 9631 /^0/ { 9632 s/^0 *\([^ ]*\) *$/\1/ 9633 p 9634 } 9635 }' 9636 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9637 # Check for a 64-bit object if we didn't find anything. 9638 if test -z "$lt_cv_aix_libpath_"; then 9639 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9640 fi 9641 fi 9642 rm -f core conftest.err conftest.$ac_objext \ 9643 conftest$ac_exeext conftest.$ac_ext 9644 if test -z "$lt_cv_aix_libpath_"; then 9645 lt_cv_aix_libpath_=/usr/lib:/lib 9646 fi 9647 9648 fi 9649 9650 aix_libpath=$lt_cv_aix_libpath_ 9651 fi 9652 9653 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9654 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 9655 else 9656 if test ia64 = "$host_cpu"; then 9657 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9658 allow_undefined_flag="-z nodefs" 9659 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" 9660 else 9661 # Determine the default libpath from the value encoded in an 9662 # empty executable. 9663 if test set = "${lt_cv_aix_libpath+set}"; then 9664 aix_libpath=$lt_cv_aix_libpath 9665 else 9666 if ${lt_cv_aix_libpath_+:} false; then : 9667 $as_echo_n "(cached) " >&6 9668 else 9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9670 /* end confdefs.h. */ 9671 9672 int 9673 main () 9674 { 9675 9676 ; 9677 return 0; 9678 } 9679 _ACEOF 9680 if ac_fn_c_try_link "$LINENO"; then : 9681 9682 lt_aix_libpath_sed=' 9683 /Import File Strings/,/^$/ { 9684 /^0/ { 9685 s/^0 *\([^ ]*\) *$/\1/ 9686 p 9687 } 9688 }' 9689 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9690 # Check for a 64-bit object if we didn't find anything. 9691 if test -z "$lt_cv_aix_libpath_"; then 9692 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9693 fi 9694 fi 9695 rm -f core conftest.err conftest.$ac_objext \ 9696 conftest$ac_exeext conftest.$ac_ext 9697 if test -z "$lt_cv_aix_libpath_"; then 9698 lt_cv_aix_libpath_=/usr/lib:/lib 9699 fi 9700 9701 fi 9702 9703 aix_libpath=$lt_cv_aix_libpath_ 9704 fi 9705 9706 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9707 # Warning - without using the other run time loading flags, 9708 # -berok will link without error, but may produce a broken library. 9709 no_undefined_flag=' $wl-bernotok' 9710 allow_undefined_flag=' $wl-berok' 9711 if test yes = "$with_gnu_ld"; then 9712 # We only use this code for GNU lds that support --whole-archive. 9713 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9714 else 9715 # Exported symbols can be pulled into shared objects from archives 9716 whole_archive_flag_spec='$convenience' 9717 fi 9718 archive_cmds_need_lc=yes 9719 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9720 # -brtl affects multiple linker settings, -berok does not and is overridden later 9721 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9722 if test svr4 != "$with_aix_soname"; then 9723 # This is similar to how AIX traditionally builds its shared libraries. 9724 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' 9725 fi 9726 if test aix != "$with_aix_soname"; then 9727 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' 9728 else 9729 # used by -dlpreopen to get the symbols 9730 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9731 fi 9732 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9733 fi 9734 fi 9735 ;; 9736 9737 amigaos*) 9738 case $host_cpu in 9739 powerpc) 9740 # see comment about AmigaOS4 .so support 9741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9742 archive_expsym_cmds='' 9743 ;; 9744 m68k) 9745 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)' 9746 hardcode_libdir_flag_spec='-L$libdir' 9747 hardcode_minus_L=yes 9748 ;; 9749 esac 9750 ;; 9751 9752 bsdi[45]*) 9753 export_dynamic_flag_spec=-rdynamic 9754 ;; 9755 9756 cygwin* | mingw* | pw32* | cegcc*) 9757 # When not using gcc, we currently assume that we are using 9758 # Microsoft Visual C++. 9759 # hardcode_libdir_flag_spec is actually meaningless, as there is 9760 # no search path for DLLs. 9761 case $cc_basename in 9762 cl*) 9763 # Native MSVC 9764 hardcode_libdir_flag_spec=' ' 9765 allow_undefined_flag=unsupported 9766 always_export_symbols=yes 9767 file_list_spec='@' 9768 # Tell ltmain to make .lib files, not .a files. 9769 libext=lib 9770 # Tell ltmain to make .dll files, not .so files. 9771 shrext_cmds=.dll 9772 # FIXME: Setting linknames here is a bad hack. 9773 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9774 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9775 cp "$export_symbols" "$output_objdir/$soname.def"; 9776 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9777 else 9778 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9779 fi~ 9780 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9781 linknames=' 9782 # The linker will not automatically build a static lib if we build a DLL. 9783 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9784 enable_shared_with_static_runtimes=yes 9785 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9786 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9787 # Don't use ranlib 9788 old_postinstall_cmds='chmod 644 $oldlib' 9789 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9790 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9791 case $lt_outputfile in 9792 *.exe|*.EXE) ;; 9793 *) 9794 lt_outputfile=$lt_outputfile.exe 9795 lt_tool_outputfile=$lt_tool_outputfile.exe 9796 ;; 9797 esac~ 9798 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9799 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9800 $RM "$lt_outputfile.manifest"; 9801 fi' 9802 ;; 9803 *) 9804 # Assume MSVC wrapper 9805 hardcode_libdir_flag_spec=' ' 9806 allow_undefined_flag=unsupported 9807 # Tell ltmain to make .lib files, not .a files. 9808 libext=lib 9809 # Tell ltmain to make .dll files, not .so files. 9810 shrext_cmds=.dll 9811 # FIXME: Setting linknames here is a bad hack. 9812 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9813 # The linker will automatically build a .lib file if we build a DLL. 9814 old_archive_from_new_cmds='true' 9815 # FIXME: Should let the user specify the lib program. 9816 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9817 enable_shared_with_static_runtimes=yes 9818 ;; 9819 esac 9820 ;; 9821 9822 darwin* | rhapsody*) 9823 9824 9825 archive_cmds_need_lc=no 9826 hardcode_direct=no 9827 hardcode_automatic=yes 9828 hardcode_shlibpath_var=unsupported 9829 if test yes = "$lt_cv_ld_force_load"; then 9830 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\"`' 9831 9832 else 9833 whole_archive_flag_spec='' 9834 fi 9835 link_all_deplibs=yes 9836 allow_undefined_flag=$_lt_dar_allow_undefined 9837 case $cc_basename in 9838 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9839 *) _lt_dar_can_shared=$GCC ;; 9840 esac 9841 if test yes = "$_lt_dar_can_shared"; then 9842 output_verbose_link_cmd=func_echo_all 9843 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9844 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9845 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" 9846 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" 9847 9848 else 9849 ld_shlibs=no 9850 fi 9851 9852 ;; 9853 9854 dgux*) 9855 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9856 hardcode_libdir_flag_spec='-L$libdir' 9857 hardcode_shlibpath_var=no 9858 ;; 9859 9860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9861 # support. Future versions do this automatically, but an explicit c++rt0.o 9862 # does not break anything, and helps significantly (at the cost of a little 9863 # extra space). 9864 freebsd2.2*) 9865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9866 hardcode_libdir_flag_spec='-R$libdir' 9867 hardcode_direct=yes 9868 hardcode_shlibpath_var=no 9869 ;; 9870 9871 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9872 freebsd2.*) 9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9874 hardcode_direct=yes 9875 hardcode_minus_L=yes 9876 hardcode_shlibpath_var=no 9877 ;; 9878 9879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9880 freebsd* | dragonfly*) 9881 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9882 hardcode_libdir_flag_spec='-R$libdir' 9883 hardcode_direct=yes 9884 hardcode_shlibpath_var=no 9885 ;; 9886 9887 hpux9*) 9888 if test yes = "$GCC"; then 9889 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' 9890 else 9891 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' 9892 fi 9893 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9894 hardcode_libdir_separator=: 9895 hardcode_direct=yes 9896 9897 # hardcode_minus_L: Not really in the search PATH, 9898 # but as the default location of the library. 9899 hardcode_minus_L=yes 9900 export_dynamic_flag_spec='$wl-E' 9901 ;; 9902 9903 hpux10*) 9904 if test yes,no = "$GCC,$with_gnu_ld"; then 9905 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9906 else 9907 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9908 fi 9909 if test no = "$with_gnu_ld"; then 9910 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9911 hardcode_libdir_separator=: 9912 hardcode_direct=yes 9913 hardcode_direct_absolute=yes 9914 export_dynamic_flag_spec='$wl-E' 9915 # hardcode_minus_L: Not really in the search PATH, 9916 # but as the default location of the library. 9917 hardcode_minus_L=yes 9918 fi 9919 ;; 9920 9921 hpux11*) 9922 if test yes,no = "$GCC,$with_gnu_ld"; then 9923 case $host_cpu in 9924 hppa*64*) 9925 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9926 ;; 9927 ia64*) 9928 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9929 ;; 9930 *) 9931 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9932 ;; 9933 esac 9934 else 9935 case $host_cpu in 9936 hppa*64*) 9937 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9938 ;; 9939 ia64*) 9940 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9941 ;; 9942 *) 9943 9944 # Older versions of the 11.00 compiler do not understand -b yet 9945 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9947 $as_echo_n "checking if $CC understands -b... " >&6; } 9948 if ${lt_cv_prog_compiler__b+:} false; then : 9949 $as_echo_n "(cached) " >&6 9950 else 9951 lt_cv_prog_compiler__b=no 9952 save_LDFLAGS=$LDFLAGS 9953 LDFLAGS="$LDFLAGS -b" 9954 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9955 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9956 # The linker can only warn and ignore the option if not recognized 9957 # So say no if there are warnings 9958 if test -s conftest.err; then 9959 # Append any errors to the config.log. 9960 cat conftest.err 1>&5 9961 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9963 if diff conftest.exp conftest.er2 >/dev/null; then 9964 lt_cv_prog_compiler__b=yes 9965 fi 9966 else 9967 lt_cv_prog_compiler__b=yes 9968 fi 9969 fi 9970 $RM -r conftest* 9971 LDFLAGS=$save_LDFLAGS 9972 9973 fi 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9975 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9976 9977 if test yes = "$lt_cv_prog_compiler__b"; then 9978 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9979 else 9980 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9981 fi 9982 9983 ;; 9984 esac 9985 fi 9986 if test no = "$with_gnu_ld"; then 9987 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9988 hardcode_libdir_separator=: 9989 9990 case $host_cpu in 9991 hppa*64*|ia64*) 9992 hardcode_direct=no 9993 hardcode_shlibpath_var=no 9994 ;; 9995 *) 9996 hardcode_direct=yes 9997 hardcode_direct_absolute=yes 9998 export_dynamic_flag_spec='$wl-E' 9999 10000 # hardcode_minus_L: Not really in the search PATH, 10001 # but as the default location of the library. 10002 hardcode_minus_L=yes 10003 ;; 10004 esac 10005 fi 10006 ;; 10007 10008 irix5* | irix6* | nonstopux*) 10009 if test yes = "$GCC"; then 10010 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' 10011 # Try to use the -exported_symbol ld option, if it does not 10012 # work, assume that -exports_file does not work either and 10013 # implicitly export all symbols. 10014 # This should be the same for all languages, so no per-tag cache variable. 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10016 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10017 if ${lt_cv_irix_exported_symbol+:} false; then : 10018 $as_echo_n "(cached) " >&6 10019 else 10020 save_LDFLAGS=$LDFLAGS 10021 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10023 /* end confdefs.h. */ 10024 int foo (void) { return 0; } 10025 _ACEOF 10026 if ac_fn_c_try_link "$LINENO"; then : 10027 lt_cv_irix_exported_symbol=yes 10028 else 10029 lt_cv_irix_exported_symbol=no 10030 fi 10031 rm -f core conftest.err conftest.$ac_objext \ 10032 conftest$ac_exeext conftest.$ac_ext 10033 LDFLAGS=$save_LDFLAGS 10034 fi 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10036 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 10037 if test yes = "$lt_cv_irix_exported_symbol"; then 10038 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' 10039 fi 10040 link_all_deplibs=no 10041 else 10042 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' 10043 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' 10044 fi 10045 archive_cmds_need_lc='no' 10046 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10047 hardcode_libdir_separator=: 10048 inherit_rpath=yes 10049 link_all_deplibs=yes 10050 ;; 10051 10052 linux*) 10053 case $cc_basename in 10054 tcc*) 10055 # Fabrice Bellard et al's Tiny C Compiler 10056 ld_shlibs=yes 10057 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10058 ;; 10059 esac 10060 ;; 10061 10062 netbsd* | netbsdelf*-gnu) 10063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10064 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10065 else 10066 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10067 fi 10068 hardcode_libdir_flag_spec='-R$libdir' 10069 hardcode_direct=yes 10070 hardcode_shlibpath_var=no 10071 ;; 10072 10073 newsos6) 10074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10075 hardcode_direct=yes 10076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10077 hardcode_libdir_separator=: 10078 hardcode_shlibpath_var=no 10079 ;; 10080 10081 *nto* | *qnx*) 10082 ;; 10083 10084 openbsd* | bitrig*) 10085 if test -f /usr/libexec/ld.so; then 10086 hardcode_direct=yes 10087 hardcode_shlibpath_var=no 10088 hardcode_direct_absolute=yes 10089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10090 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10091 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10092 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10093 export_dynamic_flag_spec='$wl-E' 10094 else 10095 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10096 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10097 fi 10098 else 10099 ld_shlibs=no 10100 fi 10101 ;; 10102 10103 os2*) 10104 hardcode_libdir_flag_spec='-L$libdir' 10105 hardcode_minus_L=yes 10106 allow_undefined_flag=unsupported 10107 shrext_cmds=.dll 10108 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10109 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10110 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10111 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10112 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10113 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10114 emximp -o $lib $output_objdir/$libname.def' 10115 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10116 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10117 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10118 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10119 prefix_cmds="$SED"~ 10120 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10121 prefix_cmds="$prefix_cmds -e 1d"; 10122 fi~ 10123 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10124 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10125 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10126 emximp -o $lib $output_objdir/$libname.def' 10127 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10128 enable_shared_with_static_runtimes=yes 10129 ;; 10130 10131 osf3*) 10132 if test yes = "$GCC"; then 10133 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10134 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' 10135 else 10136 allow_undefined_flag=' -expect_unresolved \*' 10137 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' 10138 fi 10139 archive_cmds_need_lc='no' 10140 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10141 hardcode_libdir_separator=: 10142 ;; 10143 10144 osf4* | osf5*) # as osf3* with the addition of -msym flag 10145 if test yes = "$GCC"; then 10146 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10147 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' 10148 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10149 else 10150 allow_undefined_flag=' -expect_unresolved \*' 10151 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' 10152 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~ 10153 $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' 10154 10155 # Both c and cxx compiler support -rpath directly 10156 hardcode_libdir_flag_spec='-rpath $libdir' 10157 fi 10158 archive_cmds_need_lc='no' 10159 hardcode_libdir_separator=: 10160 ;; 10161 10162 solaris*) 10163 no_undefined_flag=' -z defs' 10164 if test yes = "$GCC"; then 10165 wlarc='$wl' 10166 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10167 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10168 $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' 10169 else 10170 case `$CC -V 2>&1` in 10171 *"Compilers 5.0"*) 10172 wlarc='' 10173 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10174 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10175 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10176 ;; 10177 *) 10178 wlarc='$wl' 10179 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10180 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10181 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10182 ;; 10183 esac 10184 fi 10185 hardcode_libdir_flag_spec='-R$libdir' 10186 hardcode_shlibpath_var=no 10187 case $host_os in 10188 solaris2.[0-5] | solaris2.[0-5].*) ;; 10189 *) 10190 # The compiler driver will combine and reorder linker options, 10191 # but understands '-z linker_flag'. GCC discards it without '$wl', 10192 # but is careful enough not to reorder. 10193 # Supported since Solaris 2.6 (maybe 2.5.1?) 10194 if test yes = "$GCC"; then 10195 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10196 else 10197 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10198 fi 10199 ;; 10200 esac 10201 link_all_deplibs=yes 10202 ;; 10203 10204 sunos4*) 10205 if test sequent = "$host_vendor"; then 10206 # Use $CC to link under sequent, because it throws in some extra .o 10207 # files that make .init and .fini sections work. 10208 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10209 else 10210 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10211 fi 10212 hardcode_libdir_flag_spec='-L$libdir' 10213 hardcode_direct=yes 10214 hardcode_minus_L=yes 10215 hardcode_shlibpath_var=no 10216 ;; 10217 10218 sysv4) 10219 case $host_vendor in 10220 sni) 10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10222 hardcode_direct=yes # is this really true??? 10223 ;; 10224 siemens) 10225 ## LD is ld it makes a PLAMLIB 10226 ## CC just makes a GrossModule. 10227 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10228 reload_cmds='$CC -r -o $output$reload_objs' 10229 hardcode_direct=no 10230 ;; 10231 motorola) 10232 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10233 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10234 ;; 10235 esac 10236 runpath_var='LD_RUN_PATH' 10237 hardcode_shlibpath_var=no 10238 ;; 10239 10240 sysv4.3*) 10241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10242 hardcode_shlibpath_var=no 10243 export_dynamic_flag_spec='-Bexport' 10244 ;; 10245 10246 sysv4*MP*) 10247 if test -d /usr/nec; then 10248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10249 hardcode_shlibpath_var=no 10250 runpath_var=LD_RUN_PATH 10251 hardcode_runpath_var=yes 10252 ld_shlibs=yes 10253 fi 10254 ;; 10255 10256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10257 no_undefined_flag='$wl-z,text' 10258 archive_cmds_need_lc=no 10259 hardcode_shlibpath_var=no 10260 runpath_var='LD_RUN_PATH' 10261 10262 if test yes = "$GCC"; then 10263 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10264 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10265 else 10266 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10267 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10268 fi 10269 ;; 10270 10271 sysv5* | sco3.2v5* | sco5v6*) 10272 # Note: We CANNOT use -z defs as we might desire, because we do not 10273 # link with -lc, and that would cause any symbols used from libc to 10274 # always be unresolved, which means just about no library would 10275 # ever link correctly. If we're not using GNU ld we use -z text 10276 # though, which does catch some bad symbols but isn't as heavy-handed 10277 # as -z defs. 10278 no_undefined_flag='$wl-z,text' 10279 allow_undefined_flag='$wl-z,nodefs' 10280 archive_cmds_need_lc=no 10281 hardcode_shlibpath_var=no 10282 hardcode_libdir_flag_spec='$wl-R,$libdir' 10283 hardcode_libdir_separator=':' 10284 link_all_deplibs=yes 10285 export_dynamic_flag_spec='$wl-Bexport' 10286 runpath_var='LD_RUN_PATH' 10287 10288 if test yes = "$GCC"; then 10289 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10290 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10291 else 10292 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10293 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10294 fi 10295 ;; 10296 10297 uts4*) 10298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10299 hardcode_libdir_flag_spec='-L$libdir' 10300 hardcode_shlibpath_var=no 10301 ;; 10302 10303 *) 10304 ld_shlibs=no 10305 ;; 10306 esac 10307 10308 if test sni = "$host_vendor"; then 10309 case $host in 10310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10311 export_dynamic_flag_spec='$wl-Blargedynsym' 10312 ;; 10313 esac 10314 fi 10315 fi 10316 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10318 $as_echo "$ld_shlibs" >&6; } 10319 test no = "$ld_shlibs" && can_build_shared=no 10320 10321 with_gnu_ld=$with_gnu_ld 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 # 10338 # Do we need to explicitly link libc? 10339 # 10340 case "x$archive_cmds_need_lc" in 10341 x|xyes) 10342 # Assume -lc should be added 10343 archive_cmds_need_lc=yes 10344 10345 if test yes,yes = "$GCC,$enable_shared"; then 10346 case $archive_cmds in 10347 *'~'*) 10348 # FIXME: we may have to deal with multi-command sequences. 10349 ;; 10350 '$CC '*) 10351 # Test whether the compiler implicitly links with -lc since on some 10352 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10353 # to ld, don't add -lc before -lgcc. 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10355 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10356 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10357 $as_echo_n "(cached) " >&6 10358 else 10359 $RM conftest* 10360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10361 10362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10363 (eval $ac_compile) 2>&5 10364 ac_status=$? 10365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10366 test $ac_status = 0; } 2>conftest.err; then 10367 soname=conftest 10368 lib=conftest 10369 libobjs=conftest.$ac_objext 10370 deplibs= 10371 wl=$lt_prog_compiler_wl 10372 pic_flag=$lt_prog_compiler_pic 10373 compiler_flags=-v 10374 linker_flags=-v 10375 verstring= 10376 output_objdir=. 10377 libname=conftest 10378 lt_save_allow_undefined_flag=$allow_undefined_flag 10379 allow_undefined_flag= 10380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10381 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10382 ac_status=$? 10383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10384 test $ac_status = 0; } 10385 then 10386 lt_cv_archive_cmds_need_lc=no 10387 else 10388 lt_cv_archive_cmds_need_lc=yes 10389 fi 10390 allow_undefined_flag=$lt_save_allow_undefined_flag 10391 else 10392 cat conftest.err 1>&5 10393 fi 10394 $RM conftest* 10395 10396 fi 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10398 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10399 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10400 ;; 10401 esac 10402 fi 10403 ;; 10404 esac 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 10553 10554 10555 10556 10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10558 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10559 10560 if test yes = "$GCC"; then 10561 case $host_os in 10562 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10563 *) lt_awk_arg='/^libraries:/' ;; 10564 esac 10565 case $host_os in 10566 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10567 *) lt_sed_strip_eq='s|=/|/|g' ;; 10568 esac 10569 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10570 case $lt_search_path_spec in 10571 *\;*) 10572 # if the path contains ";" then we assume it to be the separator 10573 # otherwise default to the standard path separator (i.e. ":") - it is 10574 # assumed that no part of a normal pathname contains ";" but that should 10575 # okay in the real world where ";" in dirpaths is itself problematic. 10576 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10577 ;; 10578 *) 10579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10580 ;; 10581 esac 10582 # Ok, now we have the path, separated by spaces, we can step through it 10583 # and add multilib dir if necessary... 10584 lt_tmp_lt_search_path_spec= 10585 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10586 # ...but if some path component already ends with the multilib dir we assume 10587 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10588 case "$lt_multi_os_dir; $lt_search_path_spec " in 10589 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10590 lt_multi_os_dir= 10591 ;; 10592 esac 10593 for lt_sys_path in $lt_search_path_spec; do 10594 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10596 elif test -n "$lt_multi_os_dir"; then 10597 test -d "$lt_sys_path" && \ 10598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10599 fi 10600 done 10601 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10602 BEGIN {RS = " "; FS = "/|\n";} { 10603 lt_foo = ""; 10604 lt_count = 0; 10605 for (lt_i = NF; lt_i > 0; lt_i--) { 10606 if ($lt_i != "" && $lt_i != ".") { 10607 if ($lt_i == "..") { 10608 lt_count++; 10609 } else { 10610 if (lt_count == 0) { 10611 lt_foo = "/" $lt_i lt_foo; 10612 } else { 10613 lt_count--; 10614 } 10615 } 10616 } 10617 } 10618 if (lt_foo != "") { lt_freq[lt_foo]++; } 10619 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10620 }'` 10621 # AWK program above erroneously prepends '/' to C:/dos/paths 10622 # for these hosts. 10623 case $host_os in 10624 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10625 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10626 esac 10627 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10628 else 10629 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10630 fi 10631 library_names_spec= 10632 libname_spec='lib$name' 10633 soname_spec= 10634 shrext_cmds=.so 10635 postinstall_cmds= 10636 postuninstall_cmds= 10637 finish_cmds= 10638 finish_eval= 10639 shlibpath_var= 10640 shlibpath_overrides_runpath=unknown 10641 version_type=none 10642 dynamic_linker="$host_os ld.so" 10643 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10644 need_lib_prefix=unknown 10645 hardcode_into_libs=no 10646 10647 # when you set need_version to no, make sure it does not cause -set_version 10648 # flags to be left without arguments 10649 need_version=unknown 10650 10651 10652 10653 case $host_os in 10654 aix3*) 10655 version_type=linux # correct to gnu/linux during the next big refactor 10656 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10657 shlibpath_var=LIBPATH 10658 10659 # AIX 3 has no versioning support, so we append a major version to the name. 10660 soname_spec='$libname$release$shared_ext$major' 10661 ;; 10662 10663 aix[4-9]*) 10664 version_type=linux # correct to gnu/linux during the next big refactor 10665 need_lib_prefix=no 10666 need_version=no 10667 hardcode_into_libs=yes 10668 if test ia64 = "$host_cpu"; then 10669 # AIX 5 supports IA64 10670 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10671 shlibpath_var=LD_LIBRARY_PATH 10672 else 10673 # With GCC up to 2.95.x, collect2 would create an import file 10674 # for dependence libraries. The import file would start with 10675 # the line '#! .'. This would cause the generated library to 10676 # depend on '.', always an invalid library. This was fixed in 10677 # development snapshots of GCC prior to 3.0. 10678 case $host_os in 10679 aix4 | aix4.[01] | aix4.[01].*) 10680 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10681 echo ' yes ' 10682 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10683 : 10684 else 10685 can_build_shared=no 10686 fi 10687 ;; 10688 esac 10689 # Using Import Files as archive members, it is possible to support 10690 # filename-based versioning of shared library archives on AIX. While 10691 # this would work for both with and without runtime linking, it will 10692 # prevent static linking of such archives. So we do filename-based 10693 # shared library versioning with .so extension only, which is used 10694 # when both runtime linking and shared linking is enabled. 10695 # Unfortunately, runtime linking may impact performance, so we do 10696 # not want this to be the default eventually. Also, we use the 10697 # versioned .so libs for executables only if there is the -brtl 10698 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10699 # To allow for filename-based versioning support, we need to create 10700 # libNAME.so.V as an archive file, containing: 10701 # *) an Import File, referring to the versioned filename of the 10702 # archive as well as the shared archive member, telling the 10703 # bitwidth (32 or 64) of that shared object, and providing the 10704 # list of exported symbols of that shared object, eventually 10705 # decorated with the 'weak' keyword 10706 # *) the shared object with the F_LOADONLY flag set, to really avoid 10707 # it being seen by the linker. 10708 # At run time we better use the real file rather than another symlink, 10709 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10710 10711 case $with_aix_soname,$aix_use_runtimelinking in 10712 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10713 # soname into executable. Probably we can add versioning support to 10714 # collect2, so additional links can be useful in future. 10715 aix,yes) # traditional libtool 10716 dynamic_linker='AIX unversionable lib.so' 10717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10718 # instead of lib<name>.a to let people know that these are not 10719 # typical AIX shared libraries. 10720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10721 ;; 10722 aix,no) # traditional AIX only 10723 dynamic_linker='AIX lib.a(lib.so.V)' 10724 # We preserve .a as extension for shared libraries through AIX4.2 10725 # and later when we are not doing run time linking. 10726 library_names_spec='$libname$release.a $libname.a' 10727 soname_spec='$libname$release$shared_ext$major' 10728 ;; 10729 svr4,*) # full svr4 only 10730 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10731 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10732 # We do not specify a path in Import Files, so LIBPATH fires. 10733 shlibpath_overrides_runpath=yes 10734 ;; 10735 *,yes) # both, prefer svr4 10736 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10737 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10738 # unpreferred sharedlib libNAME.a needs extra handling 10739 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"' 10740 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"' 10741 # We do not specify a path in Import Files, so LIBPATH fires. 10742 shlibpath_overrides_runpath=yes 10743 ;; 10744 *,no) # both, prefer aix 10745 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10746 library_names_spec='$libname$release.a $libname.a' 10747 soname_spec='$libname$release$shared_ext$major' 10748 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10749 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)' 10750 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"' 10751 ;; 10752 esac 10753 shlibpath_var=LIBPATH 10754 fi 10755 ;; 10756 10757 amigaos*) 10758 case $host_cpu in 10759 powerpc) 10760 # Since July 2007 AmigaOS4 officially supports .so libraries. 10761 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10763 ;; 10764 m68k) 10765 library_names_spec='$libname.ixlibrary $libname.a' 10766 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10767 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' 10768 ;; 10769 esac 10770 ;; 10771 10772 beos*) 10773 library_names_spec='$libname$shared_ext' 10774 dynamic_linker="$host_os ld.so" 10775 shlibpath_var=LIBRARY_PATH 10776 ;; 10777 10778 bsdi[45]*) 10779 version_type=linux # correct to gnu/linux during the next big refactor 10780 need_version=no 10781 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10782 soname_spec='$libname$release$shared_ext$major' 10783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10784 shlibpath_var=LD_LIBRARY_PATH 10785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10787 # the default ld.so.conf also contains /usr/contrib/lib and 10788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10789 # libtool to hard-code these into programs 10790 ;; 10791 10792 cygwin* | mingw* | pw32* | cegcc*) 10793 version_type=windows 10794 shrext_cmds=.dll 10795 need_version=no 10796 need_lib_prefix=no 10797 10798 case $GCC,$cc_basename in 10799 yes,*) 10800 # gcc 10801 library_names_spec='$libname.dll.a' 10802 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10803 postinstall_cmds='base_file=`basename \$file`~ 10804 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10805 dldir=$destdir/`dirname \$dlpath`~ 10806 test -d \$dldir || mkdir -p \$dldir~ 10807 $install_prog $dir/$dlname \$dldir/$dlname~ 10808 chmod a+x \$dldir/$dlname~ 10809 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10810 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10811 fi' 10812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10813 dlpath=$dir/\$dldll~ 10814 $RM \$dlpath' 10815 shlibpath_overrides_runpath=yes 10816 10817 case $host_os in 10818 cygwin*) 10819 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10820 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10821 10822 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10823 ;; 10824 mingw* | cegcc*) 10825 # MinGW DLLs use traditional 'lib' prefix 10826 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10827 ;; 10828 pw32*) 10829 # pw32 DLLs use 'pw' prefix rather than 'lib' 10830 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10831 ;; 10832 esac 10833 dynamic_linker='Win32 ld.exe' 10834 ;; 10835 10836 *,cl*) 10837 # Native MSVC 10838 libname_spec='$name' 10839 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10840 library_names_spec='$libname.dll.lib' 10841 10842 case $build_os in 10843 mingw*) 10844 sys_lib_search_path_spec= 10845 lt_save_ifs=$IFS 10846 IFS=';' 10847 for lt_path in $LIB 10848 do 10849 IFS=$lt_save_ifs 10850 # Let DOS variable expansion print the short 8.3 style file name. 10851 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10852 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10853 done 10854 IFS=$lt_save_ifs 10855 # Convert to MSYS style. 10856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10857 ;; 10858 cygwin*) 10859 # Convert to unix form, then to dos form, then back to unix form 10860 # but this time dos style (no spaces!) so that the unix form looks 10861 # like /cygdrive/c/PROGRA~1:/cygdr... 10862 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10863 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10864 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10865 ;; 10866 *) 10867 sys_lib_search_path_spec=$LIB 10868 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10869 # It is most probably a Windows format PATH. 10870 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10871 else 10872 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10873 fi 10874 # FIXME: find the short name or the path components, as spaces are 10875 # common. (e.g. "Program Files" -> "PROGRA~1") 10876 ;; 10877 esac 10878 10879 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10880 postinstall_cmds='base_file=`basename \$file`~ 10881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10882 dldir=$destdir/`dirname \$dlpath`~ 10883 test -d \$dldir || mkdir -p \$dldir~ 10884 $install_prog $dir/$dlname \$dldir/$dlname' 10885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10886 dlpath=$dir/\$dldll~ 10887 $RM \$dlpath' 10888 shlibpath_overrides_runpath=yes 10889 dynamic_linker='Win32 link.exe' 10890 ;; 10891 10892 *) 10893 # Assume MSVC wrapper 10894 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10895 dynamic_linker='Win32 ld.exe' 10896 ;; 10897 esac 10898 # FIXME: first we should search . and the directory the executable is in 10899 shlibpath_var=PATH 10900 ;; 10901 10902 darwin* | rhapsody*) 10903 dynamic_linker="$host_os dyld" 10904 version_type=darwin 10905 need_lib_prefix=no 10906 need_version=no 10907 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10908 soname_spec='$libname$release$major$shared_ext' 10909 shlibpath_overrides_runpath=yes 10910 shlibpath_var=DYLD_LIBRARY_PATH 10911 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10912 10913 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10915 ;; 10916 10917 dgux*) 10918 version_type=linux # correct to gnu/linux during the next big refactor 10919 need_lib_prefix=no 10920 need_version=no 10921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10922 soname_spec='$libname$release$shared_ext$major' 10923 shlibpath_var=LD_LIBRARY_PATH 10924 ;; 10925 10926 freebsd* | dragonfly*) 10927 # DragonFly does not have aout. When/if they implement a new 10928 # versioning mechanism, adjust this. 10929 if test -x /usr/bin/objformat; then 10930 objformat=`/usr/bin/objformat` 10931 else 10932 case $host_os in 10933 freebsd[23].*) objformat=aout ;; 10934 *) objformat=elf ;; 10935 esac 10936 fi 10937 version_type=freebsd-$objformat 10938 case $version_type in 10939 freebsd-elf*) 10940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10941 soname_spec='$libname$release$shared_ext$major' 10942 need_version=no 10943 need_lib_prefix=no 10944 ;; 10945 freebsd-*) 10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10947 need_version=yes 10948 ;; 10949 esac 10950 shlibpath_var=LD_LIBRARY_PATH 10951 case $host_os in 10952 freebsd2.*) 10953 shlibpath_overrides_runpath=yes 10954 ;; 10955 freebsd3.[01]* | freebsdelf3.[01]*) 10956 shlibpath_overrides_runpath=yes 10957 hardcode_into_libs=yes 10958 ;; 10959 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10960 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10961 shlibpath_overrides_runpath=no 10962 hardcode_into_libs=yes 10963 ;; 10964 *) # from 4.6 on, and DragonFly 10965 shlibpath_overrides_runpath=yes 10966 hardcode_into_libs=yes 10967 ;; 10968 esac 10969 ;; 10970 10971 haiku*) 10972 version_type=linux # correct to gnu/linux during the next big refactor 10973 need_lib_prefix=no 10974 need_version=no 10975 dynamic_linker="$host_os runtime_loader" 10976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10977 soname_spec='$libname$release$shared_ext$major' 10978 shlibpath_var=LIBRARY_PATH 10979 shlibpath_overrides_runpath=no 10980 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10981 hardcode_into_libs=yes 10982 ;; 10983 10984 hpux9* | hpux10* | hpux11*) 10985 # Give a soname corresponding to the major version so that dld.sl refuses to 10986 # link against other versions. 10987 version_type=sunos 10988 need_lib_prefix=no 10989 need_version=no 10990 case $host_cpu in 10991 ia64*) 10992 shrext_cmds='.so' 10993 hardcode_into_libs=yes 10994 dynamic_linker="$host_os dld.so" 10995 shlibpath_var=LD_LIBRARY_PATH 10996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10998 soname_spec='$libname$release$shared_ext$major' 10999 if test 32 = "$HPUX_IA64_MODE"; then 11000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11001 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11002 else 11003 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11004 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11005 fi 11006 ;; 11007 hppa*64*) 11008 shrext_cmds='.sl' 11009 hardcode_into_libs=yes 11010 dynamic_linker="$host_os dld.sl" 11011 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11012 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11014 soname_spec='$libname$release$shared_ext$major' 11015 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11016 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11017 ;; 11018 *) 11019 shrext_cmds='.sl' 11020 dynamic_linker="$host_os dld.sl" 11021 shlibpath_var=SHLIB_PATH 11022 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11024 soname_spec='$libname$release$shared_ext$major' 11025 ;; 11026 esac 11027 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11028 postinstall_cmds='chmod 555 $lib' 11029 # or fails outright, so override atomically: 11030 install_override_mode=555 11031 ;; 11032 11033 interix[3-9]*) 11034 version_type=linux # correct to gnu/linux during the next big refactor 11035 need_lib_prefix=no 11036 need_version=no 11037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11038 soname_spec='$libname$release$shared_ext$major' 11039 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11040 shlibpath_var=LD_LIBRARY_PATH 11041 shlibpath_overrides_runpath=no 11042 hardcode_into_libs=yes 11043 ;; 11044 11045 irix5* | irix6* | nonstopux*) 11046 case $host_os in 11047 nonstopux*) version_type=nonstopux ;; 11048 *) 11049 if test yes = "$lt_cv_prog_gnu_ld"; then 11050 version_type=linux # correct to gnu/linux during the next big refactor 11051 else 11052 version_type=irix 11053 fi ;; 11054 esac 11055 need_lib_prefix=no 11056 need_version=no 11057 soname_spec='$libname$release$shared_ext$major' 11058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11059 case $host_os in 11060 irix5* | nonstopux*) 11061 libsuff= shlibsuff= 11062 ;; 11063 *) 11064 case $LD in # libtool.m4 will add one of these switches to LD 11065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11066 libsuff= shlibsuff= libmagic=32-bit;; 11067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11068 libsuff=32 shlibsuff=N32 libmagic=N32;; 11069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11070 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11071 *) libsuff= shlibsuff= libmagic=never-match;; 11072 esac 11073 ;; 11074 esac 11075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11076 shlibpath_overrides_runpath=no 11077 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11078 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11079 hardcode_into_libs=yes 11080 ;; 11081 11082 # No shared lib support for Linux oldld, aout, or coff. 11083 linux*oldld* | linux*aout* | linux*coff*) 11084 dynamic_linker=no 11085 ;; 11086 11087 linux*android*) 11088 version_type=none # Android doesn't support versioned libraries. 11089 need_lib_prefix=no 11090 need_version=no 11091 library_names_spec='$libname$release$shared_ext' 11092 soname_spec='$libname$release$shared_ext' 11093 finish_cmds= 11094 shlibpath_var=LD_LIBRARY_PATH 11095 shlibpath_overrides_runpath=yes 11096 11097 # This implies no fast_install, which is unacceptable. 11098 # Some rework will be needed to allow for fast_install 11099 # before this can be enabled. 11100 hardcode_into_libs=yes 11101 11102 dynamic_linker='Android linker' 11103 # Don't embed -rpath directories since the linker doesn't support them. 11104 hardcode_libdir_flag_spec='-L$libdir' 11105 ;; 11106 11107 # This must be glibc/ELF. 11108 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11109 version_type=linux # correct to gnu/linux during the next big refactor 11110 need_lib_prefix=no 11111 need_version=no 11112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11113 soname_spec='$libname$release$shared_ext$major' 11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11115 shlibpath_var=LD_LIBRARY_PATH 11116 shlibpath_overrides_runpath=no 11117 11118 # Some binutils ld are patched to set DT_RUNPATH 11119 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11120 $as_echo_n "(cached) " >&6 11121 else 11122 lt_cv_shlibpath_overrides_runpath=no 11123 save_LDFLAGS=$LDFLAGS 11124 save_libdir=$libdir 11125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11128 /* end confdefs.h. */ 11129 11130 int 11131 main () 11132 { 11133 11134 ; 11135 return 0; 11136 } 11137 _ACEOF 11138 if ac_fn_c_try_link "$LINENO"; then : 11139 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11140 lt_cv_shlibpath_overrides_runpath=yes 11141 fi 11142 fi 11143 rm -f core conftest.err conftest.$ac_objext \ 11144 conftest$ac_exeext conftest.$ac_ext 11145 LDFLAGS=$save_LDFLAGS 11146 libdir=$save_libdir 11147 11148 fi 11149 11150 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11151 11152 # This implies no fast_install, which is unacceptable. 11153 # Some rework will be needed to allow for fast_install 11154 # before this can be enabled. 11155 hardcode_into_libs=yes 11156 11157 # Ideally, we could use ldconfig to report *all* directores which are 11158 # searched for libraries, however this is still not possible. Aside from not 11159 # being certain /sbin/ldconfig is available, command 11160 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11161 # even though it is searched at run-time. Try to do the best guess by 11162 # appending ld.so.conf contents (and includes) to the search path. 11163 if test -f /etc/ld.so.conf; then 11164 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' ' '` 11165 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11166 fi 11167 11168 # We used to test for /lib/ld.so.1 and disable shared libraries on 11169 # powerpc, because MkLinux only supported shared libraries with the 11170 # GNU dynamic linker. Since this was broken with cross compilers, 11171 # most powerpc-linux boxes support dynamic linking these days and 11172 # people can always --disable-shared, the test was removed, and we 11173 # assume the GNU/Linux dynamic linker is in use. 11174 dynamic_linker='GNU/Linux ld.so' 11175 ;; 11176 11177 netbsdelf*-gnu) 11178 version_type=linux 11179 need_lib_prefix=no 11180 need_version=no 11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11182 soname_spec='${libname}${release}${shared_ext}$major' 11183 shlibpath_var=LD_LIBRARY_PATH 11184 shlibpath_overrides_runpath=no 11185 hardcode_into_libs=yes 11186 dynamic_linker='NetBSD ld.elf_so' 11187 ;; 11188 11189 netbsd*) 11190 version_type=sunos 11191 need_lib_prefix=no 11192 need_version=no 11193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11194 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11196 dynamic_linker='NetBSD (a.out) ld.so' 11197 else 11198 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11199 soname_spec='$libname$release$shared_ext$major' 11200 dynamic_linker='NetBSD ld.elf_so' 11201 fi 11202 shlibpath_var=LD_LIBRARY_PATH 11203 shlibpath_overrides_runpath=yes 11204 hardcode_into_libs=yes 11205 ;; 11206 11207 newsos6) 11208 version_type=linux # correct to gnu/linux during the next big refactor 11209 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11210 shlibpath_var=LD_LIBRARY_PATH 11211 shlibpath_overrides_runpath=yes 11212 ;; 11213 11214 *nto* | *qnx*) 11215 version_type=qnx 11216 need_lib_prefix=no 11217 need_version=no 11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11219 soname_spec='$libname$release$shared_ext$major' 11220 shlibpath_var=LD_LIBRARY_PATH 11221 shlibpath_overrides_runpath=no 11222 hardcode_into_libs=yes 11223 dynamic_linker='ldqnx.so' 11224 ;; 11225 11226 openbsd* | bitrig*) 11227 version_type=sunos 11228 sys_lib_dlsearch_path_spec=/usr/lib 11229 need_lib_prefix=no 11230 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11231 need_version=no 11232 else 11233 need_version=yes 11234 fi 11235 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11237 shlibpath_var=LD_LIBRARY_PATH 11238 shlibpath_overrides_runpath=yes 11239 ;; 11240 11241 os2*) 11242 libname_spec='$name' 11243 version_type=windows 11244 shrext_cmds=.dll 11245 need_version=no 11246 need_lib_prefix=no 11247 # OS/2 can only load a DLL with a base name of 8 characters or less. 11248 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11249 v=$($ECHO $release$versuffix | tr -d .-); 11250 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11251 $ECHO $n$v`$shared_ext' 11252 library_names_spec='${libname}_dll.$libext' 11253 dynamic_linker='OS/2 ld.exe' 11254 shlibpath_var=BEGINLIBPATH 11255 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11256 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11257 postinstall_cmds='base_file=`basename \$file`~ 11258 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11259 dldir=$destdir/`dirname \$dlpath`~ 11260 test -d \$dldir || mkdir -p \$dldir~ 11261 $install_prog $dir/$dlname \$dldir/$dlname~ 11262 chmod a+x \$dldir/$dlname~ 11263 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11264 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11265 fi' 11266 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11267 dlpath=$dir/\$dldll~ 11268 $RM \$dlpath' 11269 ;; 11270 11271 osf3* | osf4* | osf5*) 11272 version_type=osf 11273 need_lib_prefix=no 11274 need_version=no 11275 soname_spec='$libname$release$shared_ext$major' 11276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11277 shlibpath_var=LD_LIBRARY_PATH 11278 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11280 ;; 11281 11282 rdos*) 11283 dynamic_linker=no 11284 ;; 11285 11286 solaris*) 11287 version_type=linux # correct to gnu/linux during the next big refactor 11288 need_lib_prefix=no 11289 need_version=no 11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11291 soname_spec='$libname$release$shared_ext$major' 11292 shlibpath_var=LD_LIBRARY_PATH 11293 shlibpath_overrides_runpath=yes 11294 hardcode_into_libs=yes 11295 # ldd complains unless libraries are executable 11296 postinstall_cmds='chmod +x $lib' 11297 ;; 11298 11299 sunos4*) 11300 version_type=sunos 11301 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11302 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11303 shlibpath_var=LD_LIBRARY_PATH 11304 shlibpath_overrides_runpath=yes 11305 if test yes = "$with_gnu_ld"; then 11306 need_lib_prefix=no 11307 fi 11308 need_version=yes 11309 ;; 11310 11311 sysv4 | sysv4.3*) 11312 version_type=linux # correct to gnu/linux during the next big refactor 11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11314 soname_spec='$libname$release$shared_ext$major' 11315 shlibpath_var=LD_LIBRARY_PATH 11316 case $host_vendor in 11317 sni) 11318 shlibpath_overrides_runpath=no 11319 need_lib_prefix=no 11320 runpath_var=LD_RUN_PATH 11321 ;; 11322 siemens) 11323 need_lib_prefix=no 11324 ;; 11325 motorola) 11326 need_lib_prefix=no 11327 need_version=no 11328 shlibpath_overrides_runpath=no 11329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11330 ;; 11331 esac 11332 ;; 11333 11334 sysv4*MP*) 11335 if test -d /usr/nec; then 11336 version_type=linux # correct to gnu/linux during the next big refactor 11337 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11338 soname_spec='$libname$shared_ext.$major' 11339 shlibpath_var=LD_LIBRARY_PATH 11340 fi 11341 ;; 11342 11343 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11344 version_type=sco 11345 need_lib_prefix=no 11346 need_version=no 11347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11348 soname_spec='$libname$release$shared_ext$major' 11349 shlibpath_var=LD_LIBRARY_PATH 11350 shlibpath_overrides_runpath=yes 11351 hardcode_into_libs=yes 11352 if test yes = "$with_gnu_ld"; then 11353 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11354 else 11355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11356 case $host_os in 11357 sco3.2v5*) 11358 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11359 ;; 11360 esac 11361 fi 11362 sys_lib_dlsearch_path_spec='/usr/lib' 11363 ;; 11364 11365 tpf*) 11366 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11367 version_type=linux # correct to gnu/linux during the next big refactor 11368 need_lib_prefix=no 11369 need_version=no 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11371 shlibpath_var=LD_LIBRARY_PATH 11372 shlibpath_overrides_runpath=no 11373 hardcode_into_libs=yes 11374 ;; 11375 11376 uts4*) 11377 version_type=linux # correct to gnu/linux during the next big refactor 11378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11379 soname_spec='$libname$release$shared_ext$major' 11380 shlibpath_var=LD_LIBRARY_PATH 11381 ;; 11382 11383 *) 11384 dynamic_linker=no 11385 ;; 11386 esac 11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11388 $as_echo "$dynamic_linker" >&6; } 11389 test no = "$dynamic_linker" && can_build_shared=no 11390 11391 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11392 if test yes = "$GCC"; then 11393 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11394 fi 11395 11396 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11397 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11398 fi 11399 11400 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11401 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11402 fi 11403 11404 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11405 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11406 11407 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11408 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11409 11410 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11411 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11505 11506 11507 11508 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11510 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11511 hardcode_action= 11512 if test -n "$hardcode_libdir_flag_spec" || 11513 test -n "$runpath_var" || 11514 test yes = "$hardcode_automatic"; then 11515 11516 # We can hardcode non-existent directories. 11517 if test no != "$hardcode_direct" && 11518 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11519 # have to relink, otherwise we might link with an installed library 11520 # when we should be linking with a yet-to-be-installed one 11521 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11522 test no != "$hardcode_minus_L"; then 11523 # Linking always hardcodes the temporary library directory. 11524 hardcode_action=relink 11525 else 11526 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11527 hardcode_action=immediate 11528 fi 11529 else 11530 # We cannot hardcode anything, or else we can only hardcode existing 11531 # directories. 11532 hardcode_action=unsupported 11533 fi 11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11535 $as_echo "$hardcode_action" >&6; } 11536 11537 if test relink = "$hardcode_action" || 11538 test yes = "$inherit_rpath"; then 11539 # Fast installation is not supported 11540 enable_fast_install=no 11541 elif test yes = "$shlibpath_overrides_runpath" || 11542 test no = "$enable_shared"; then 11543 # Fast installation is not necessary 11544 enable_fast_install=needless 11545 fi 11546 11547 11548 11549 11550 11551 11552 if test yes != "$enable_dlopen"; then 11553 enable_dlopen=unknown 11554 enable_dlopen_self=unknown 11555 enable_dlopen_self_static=unknown 11556 else 11557 lt_cv_dlopen=no 11558 lt_cv_dlopen_libs= 11559 11560 case $host_os in 11561 beos*) 11562 lt_cv_dlopen=load_add_on 11563 lt_cv_dlopen_libs= 11564 lt_cv_dlopen_self=yes 11565 ;; 11566 11567 mingw* | pw32* | cegcc*) 11568 lt_cv_dlopen=LoadLibrary 11569 lt_cv_dlopen_libs= 11570 ;; 11571 11572 cygwin*) 11573 lt_cv_dlopen=dlopen 11574 lt_cv_dlopen_libs= 11575 ;; 11576 11577 darwin*) 11578 # if libdl is installed we need to link against it 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11580 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11581 if ${ac_cv_lib_dl_dlopen+:} false; then : 11582 $as_echo_n "(cached) " >&6 11583 else 11584 ac_check_lib_save_LIBS=$LIBS 11585 LIBS="-ldl $LIBS" 11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11587 /* end confdefs.h. */ 11588 11589 /* Override any GCC internal prototype to avoid an error. 11590 Use char because int might match the return type of a GCC 11591 builtin and then its argument prototype would still apply. */ 11592 #ifdef __cplusplus 11593 extern "C" 11594 #endif 11595 char dlopen (); 11596 int 11597 main () 11598 { 11599 return dlopen (); 11600 ; 11601 return 0; 11602 } 11603 _ACEOF 11604 if ac_fn_c_try_link "$LINENO"; then : 11605 ac_cv_lib_dl_dlopen=yes 11606 else 11607 ac_cv_lib_dl_dlopen=no 11608 fi 11609 rm -f core conftest.err conftest.$ac_objext \ 11610 conftest$ac_exeext conftest.$ac_ext 11611 LIBS=$ac_check_lib_save_LIBS 11612 fi 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11615 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11616 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11617 else 11618 11619 lt_cv_dlopen=dyld 11620 lt_cv_dlopen_libs= 11621 lt_cv_dlopen_self=yes 11622 11623 fi 11624 11625 ;; 11626 11627 tpf*) 11628 # Don't try to run any link tests for TPF. We know it's impossible 11629 # because TPF is a cross-compiler, and we know how we open DSOs. 11630 lt_cv_dlopen=dlopen 11631 lt_cv_dlopen_libs= 11632 lt_cv_dlopen_self=no 11633 ;; 11634 11635 *) 11636 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11637 if test "x$ac_cv_func_shl_load" = xyes; then : 11638 lt_cv_dlopen=shl_load 11639 else 11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11641 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11642 if ${ac_cv_lib_dld_shl_load+:} false; then : 11643 $as_echo_n "(cached) " >&6 11644 else 11645 ac_check_lib_save_LIBS=$LIBS 11646 LIBS="-ldld $LIBS" 11647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11648 /* end confdefs.h. */ 11649 11650 /* Override any GCC internal prototype to avoid an error. 11651 Use char because int might match the return type of a GCC 11652 builtin and then its argument prototype would still apply. */ 11653 #ifdef __cplusplus 11654 extern "C" 11655 #endif 11656 char shl_load (); 11657 int 11658 main () 11659 { 11660 return shl_load (); 11661 ; 11662 return 0; 11663 } 11664 _ACEOF 11665 if ac_fn_c_try_link "$LINENO"; then : 11666 ac_cv_lib_dld_shl_load=yes 11667 else 11668 ac_cv_lib_dld_shl_load=no 11669 fi 11670 rm -f core conftest.err conftest.$ac_objext \ 11671 conftest$ac_exeext conftest.$ac_ext 11672 LIBS=$ac_check_lib_save_LIBS 11673 fi 11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11675 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11676 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11677 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11678 else 11679 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11680 if test "x$ac_cv_func_dlopen" = xyes; then : 11681 lt_cv_dlopen=dlopen 11682 else 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11684 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11685 if ${ac_cv_lib_dl_dlopen+:} false; then : 11686 $as_echo_n "(cached) " >&6 11687 else 11688 ac_check_lib_save_LIBS=$LIBS 11689 LIBS="-ldl $LIBS" 11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11691 /* end confdefs.h. */ 11692 11693 /* Override any GCC internal prototype to avoid an error. 11694 Use char because int might match the return type of a GCC 11695 builtin and then its argument prototype would still apply. */ 11696 #ifdef __cplusplus 11697 extern "C" 11698 #endif 11699 char dlopen (); 11700 int 11701 main () 11702 { 11703 return dlopen (); 11704 ; 11705 return 0; 11706 } 11707 _ACEOF 11708 if ac_fn_c_try_link "$LINENO"; then : 11709 ac_cv_lib_dl_dlopen=yes 11710 else 11711 ac_cv_lib_dl_dlopen=no 11712 fi 11713 rm -f core conftest.err conftest.$ac_objext \ 11714 conftest$ac_exeext conftest.$ac_ext 11715 LIBS=$ac_check_lib_save_LIBS 11716 fi 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11718 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11719 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11720 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11721 else 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11723 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11724 if ${ac_cv_lib_svld_dlopen+:} false; then : 11725 $as_echo_n "(cached) " >&6 11726 else 11727 ac_check_lib_save_LIBS=$LIBS 11728 LIBS="-lsvld $LIBS" 11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11730 /* end confdefs.h. */ 11731 11732 /* Override any GCC internal prototype to avoid an error. 11733 Use char because int might match the return type of a GCC 11734 builtin and then its argument prototype would still apply. */ 11735 #ifdef __cplusplus 11736 extern "C" 11737 #endif 11738 char dlopen (); 11739 int 11740 main () 11741 { 11742 return dlopen (); 11743 ; 11744 return 0; 11745 } 11746 _ACEOF 11747 if ac_fn_c_try_link "$LINENO"; then : 11748 ac_cv_lib_svld_dlopen=yes 11749 else 11750 ac_cv_lib_svld_dlopen=no 11751 fi 11752 rm -f core conftest.err conftest.$ac_objext \ 11753 conftest$ac_exeext conftest.$ac_ext 11754 LIBS=$ac_check_lib_save_LIBS 11755 fi 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11757 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11758 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11759 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11760 else 11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11762 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11763 if ${ac_cv_lib_dld_dld_link+:} false; then : 11764 $as_echo_n "(cached) " >&6 11765 else 11766 ac_check_lib_save_LIBS=$LIBS 11767 LIBS="-ldld $LIBS" 11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11769 /* end confdefs.h. */ 11770 11771 /* Override any GCC internal prototype to avoid an error. 11772 Use char because int might match the return type of a GCC 11773 builtin and then its argument prototype would still apply. */ 11774 #ifdef __cplusplus 11775 extern "C" 11776 #endif 11777 char dld_link (); 11778 int 11779 main () 11780 { 11781 return dld_link (); 11782 ; 11783 return 0; 11784 } 11785 _ACEOF 11786 if ac_fn_c_try_link "$LINENO"; then : 11787 ac_cv_lib_dld_dld_link=yes 11788 else 11789 ac_cv_lib_dld_dld_link=no 11790 fi 11791 rm -f core conftest.err conftest.$ac_objext \ 11792 conftest$ac_exeext conftest.$ac_ext 11793 LIBS=$ac_check_lib_save_LIBS 11794 fi 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11796 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11797 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11798 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11799 fi 11800 11801 11802 fi 11803 11804 11805 fi 11806 11807 11808 fi 11809 11810 11811 fi 11812 11813 11814 fi 11815 11816 ;; 11817 esac 11818 11819 if test no = "$lt_cv_dlopen"; then 11820 enable_dlopen=no 11821 else 11822 enable_dlopen=yes 11823 fi 11824 11825 case $lt_cv_dlopen in 11826 dlopen) 11827 save_CPPFLAGS=$CPPFLAGS 11828 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11829 11830 save_LDFLAGS=$LDFLAGS 11831 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11832 11833 save_LIBS=$LIBS 11834 LIBS="$lt_cv_dlopen_libs $LIBS" 11835 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11837 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11838 if ${lt_cv_dlopen_self+:} false; then : 11839 $as_echo_n "(cached) " >&6 11840 else 11841 if test yes = "$cross_compiling"; then : 11842 lt_cv_dlopen_self=cross 11843 else 11844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11845 lt_status=$lt_dlunknown 11846 cat > conftest.$ac_ext <<_LT_EOF 11847 #line $LINENO "configure" 11848 #include "confdefs.h" 11849 11850 #if HAVE_DLFCN_H 11851 #include <dlfcn.h> 11852 #endif 11853 11854 #include <stdio.h> 11855 11856 #ifdef RTLD_GLOBAL 11857 # define LT_DLGLOBAL RTLD_GLOBAL 11858 #else 11859 # ifdef DL_GLOBAL 11860 # define LT_DLGLOBAL DL_GLOBAL 11861 # else 11862 # define LT_DLGLOBAL 0 11863 # endif 11864 #endif 11865 11866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11867 find out it does not work in some platform. */ 11868 #ifndef LT_DLLAZY_OR_NOW 11869 # ifdef RTLD_LAZY 11870 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11871 # else 11872 # ifdef DL_LAZY 11873 # define LT_DLLAZY_OR_NOW DL_LAZY 11874 # else 11875 # ifdef RTLD_NOW 11876 # define LT_DLLAZY_OR_NOW RTLD_NOW 11877 # else 11878 # ifdef DL_NOW 11879 # define LT_DLLAZY_OR_NOW DL_NOW 11880 # else 11881 # define LT_DLLAZY_OR_NOW 0 11882 # endif 11883 # endif 11884 # endif 11885 # endif 11886 #endif 11887 11888 /* When -fvisibility=hidden is used, assume the code has been annotated 11889 correspondingly for the symbols needed. */ 11890 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11891 int fnord () __attribute__((visibility("default"))); 11892 #endif 11893 11894 int fnord () { return 42; } 11895 int main () 11896 { 11897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11898 int status = $lt_dlunknown; 11899 11900 if (self) 11901 { 11902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11903 else 11904 { 11905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11906 else puts (dlerror ()); 11907 } 11908 /* dlclose (self); */ 11909 } 11910 else 11911 puts (dlerror ()); 11912 11913 return status; 11914 } 11915 _LT_EOF 11916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11917 (eval $ac_link) 2>&5 11918 ac_status=$? 11919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11920 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11921 (./conftest; exit; ) >&5 2>/dev/null 11922 lt_status=$? 11923 case x$lt_status in 11924 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11925 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11926 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11927 esac 11928 else : 11929 # compilation failed 11930 lt_cv_dlopen_self=no 11931 fi 11932 fi 11933 rm -fr conftest* 11934 11935 11936 fi 11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11938 $as_echo "$lt_cv_dlopen_self" >&6; } 11939 11940 if test yes = "$lt_cv_dlopen_self"; then 11941 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11943 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11944 if ${lt_cv_dlopen_self_static+:} false; then : 11945 $as_echo_n "(cached) " >&6 11946 else 11947 if test yes = "$cross_compiling"; then : 11948 lt_cv_dlopen_self_static=cross 11949 else 11950 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11951 lt_status=$lt_dlunknown 11952 cat > conftest.$ac_ext <<_LT_EOF 11953 #line $LINENO "configure" 11954 #include "confdefs.h" 11955 11956 #if HAVE_DLFCN_H 11957 #include <dlfcn.h> 11958 #endif 11959 11960 #include <stdio.h> 11961 11962 #ifdef RTLD_GLOBAL 11963 # define LT_DLGLOBAL RTLD_GLOBAL 11964 #else 11965 # ifdef DL_GLOBAL 11966 # define LT_DLGLOBAL DL_GLOBAL 11967 # else 11968 # define LT_DLGLOBAL 0 11969 # endif 11970 #endif 11971 11972 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11973 find out it does not work in some platform. */ 11974 #ifndef LT_DLLAZY_OR_NOW 11975 # ifdef RTLD_LAZY 11976 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11977 # else 11978 # ifdef DL_LAZY 11979 # define LT_DLLAZY_OR_NOW DL_LAZY 11980 # else 11981 # ifdef RTLD_NOW 11982 # define LT_DLLAZY_OR_NOW RTLD_NOW 11983 # else 11984 # ifdef DL_NOW 11985 # define LT_DLLAZY_OR_NOW DL_NOW 11986 # else 11987 # define LT_DLLAZY_OR_NOW 0 11988 # endif 11989 # endif 11990 # endif 11991 # endif 11992 #endif 11993 11994 /* When -fvisibility=hidden is used, assume the code has been annotated 11995 correspondingly for the symbols needed. */ 11996 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11997 int fnord () __attribute__((visibility("default"))); 11998 #endif 11999 12000 int fnord () { return 42; } 12001 int main () 12002 { 12003 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12004 int status = $lt_dlunknown; 12005 12006 if (self) 12007 { 12008 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12009 else 12010 { 12011 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12012 else puts (dlerror ()); 12013 } 12014 /* dlclose (self); */ 12015 } 12016 else 12017 puts (dlerror ()); 12018 12019 return status; 12020 } 12021 _LT_EOF 12022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12023 (eval $ac_link) 2>&5 12024 ac_status=$? 12025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12026 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12027 (./conftest; exit; ) >&5 2>/dev/null 12028 lt_status=$? 12029 case x$lt_status in 12030 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12031 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12032 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12033 esac 12034 else : 12035 # compilation failed 12036 lt_cv_dlopen_self_static=no 12037 fi 12038 fi 12039 rm -fr conftest* 12040 12041 12042 fi 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12044 $as_echo "$lt_cv_dlopen_self_static" >&6; } 12045 fi 12046 12047 CPPFLAGS=$save_CPPFLAGS 12048 LDFLAGS=$save_LDFLAGS 12049 LIBS=$save_LIBS 12050 ;; 12051 esac 12052 12053 case $lt_cv_dlopen_self in 12054 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12055 *) enable_dlopen_self=unknown ;; 12056 esac 12057 12058 case $lt_cv_dlopen_self_static in 12059 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12060 *) enable_dlopen_self_static=unknown ;; 12061 esac 12062 fi 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 striplib= 12081 old_striplib= 12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12083 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 12084 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12085 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12086 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12088 $as_echo "yes" >&6; } 12089 else 12090 # FIXME - insert some real tests, host_os isn't really good enough 12091 case $host_os in 12092 darwin*) 12093 if test -n "$STRIP"; then 12094 striplib="$STRIP -x" 12095 old_striplib="$STRIP -S" 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12097 $as_echo "yes" >&6; } 12098 else 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12100 $as_echo "no" >&6; } 12101 fi 12102 ;; 12103 *) 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12105 $as_echo "no" >&6; } 12106 ;; 12107 esac 12108 fi 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 # Report what library types will actually be built 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12123 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12125 $as_echo "$can_build_shared" >&6; } 12126 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12128 $as_echo_n "checking whether to build shared libraries... " >&6; } 12129 test no = "$can_build_shared" && enable_shared=no 12130 12131 # On AIX, shared libraries and static libraries use the same namespace, and 12132 # are all built from PIC. 12133 case $host_os in 12134 aix3*) 12135 test yes = "$enable_shared" && enable_static=no 12136 if test -n "$RANLIB"; then 12137 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12138 postinstall_cmds='$RANLIB $lib' 12139 fi 12140 ;; 12141 12142 aix[4-9]*) 12143 if test ia64 != "$host_cpu"; then 12144 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12145 yes,aix,yes) ;; # shared object as lib.so file only 12146 yes,svr4,*) ;; # shared object as lib.so archive member only 12147 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12148 esac 12149 fi 12150 ;; 12151 esac 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12153 $as_echo "$enable_shared" >&6; } 12154 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12156 $as_echo_n "checking whether to build static libraries... " >&6; } 12157 # Make sure either enable_shared or enable_static is yes. 12158 test yes = "$enable_shared" || enable_static=yes 12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12160 $as_echo "$enable_static" >&6; } 12161 12162 12163 12164 12165 fi 12166 ac_ext=c 12167 ac_cpp='$CPP $CPPFLAGS' 12168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12170 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12171 12172 CC=$lt_save_CC 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 ac_config_commands="$ac_config_commands libtool" 12189 12190 12191 12192 12193 # Only expand once: 12194 12195 12196 12197 ac_ext=cpp 12198 ac_cpp='$CXXCPP $CPPFLAGS' 12199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12202 if test -z "$CXX"; then 12203 if test -n "$CCC"; then 12204 CXX=$CCC 12205 else 12206 if test -n "$ac_tool_prefix"; then 12207 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12208 do 12209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12210 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12212 $as_echo_n "checking for $ac_word... " >&6; } 12213 if ${ac_cv_prog_CXX+:} false; then : 12214 $as_echo_n "(cached) " >&6 12215 else 12216 if test -n "$CXX"; then 12217 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12218 else 12219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12220 for as_dir in $PATH 12221 do 12222 IFS=$as_save_IFS 12223 test -z "$as_dir" && as_dir=. 12224 for ac_exec_ext in '' $ac_executable_extensions; do 12225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12226 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12228 break 2 12229 fi 12230 done 12231 done 12232 IFS=$as_save_IFS 12233 12234 fi 12235 fi 12236 CXX=$ac_cv_prog_CXX 12237 if test -n "$CXX"; then 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12239 $as_echo "$CXX" >&6; } 12240 else 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12242 $as_echo "no" >&6; } 12243 fi 12244 12245 12246 test -n "$CXX" && break 12247 done 12248 fi 12249 if test -z "$CXX"; then 12250 ac_ct_CXX=$CXX 12251 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12252 do 12253 # Extract the first word of "$ac_prog", so it can be a program name with args. 12254 set dummy $ac_prog; ac_word=$2 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12256 $as_echo_n "checking for $ac_word... " >&6; } 12257 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12258 $as_echo_n "(cached) " >&6 12259 else 12260 if test -n "$ac_ct_CXX"; then 12261 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12262 else 12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12264 for as_dir in $PATH 12265 do 12266 IFS=$as_save_IFS 12267 test -z "$as_dir" && as_dir=. 12268 for ac_exec_ext in '' $ac_executable_extensions; do 12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12270 ac_cv_prog_ac_ct_CXX="$ac_prog" 12271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12272 break 2 12273 fi 12274 done 12275 done 12276 IFS=$as_save_IFS 12277 12278 fi 12279 fi 12280 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12281 if test -n "$ac_ct_CXX"; then 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12283 $as_echo "$ac_ct_CXX" >&6; } 12284 else 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12286 $as_echo "no" >&6; } 12287 fi 12288 12289 12290 test -n "$ac_ct_CXX" && break 12291 done 12292 12293 if test "x$ac_ct_CXX" = x; then 12294 CXX="g++" 12295 else 12296 case $cross_compiling:$ac_tool_warned in 12297 yes:) 12298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12300 ac_tool_warned=yes ;; 12301 esac 12302 CXX=$ac_ct_CXX 12303 fi 12304 fi 12305 12306 fi 12307 fi 12308 # Provide some information about the compiler. 12309 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12310 set X $ac_compile 12311 ac_compiler=$2 12312 for ac_option in --version -v -V -qversion; do 12313 { { ac_try="$ac_compiler $ac_option >&5" 12314 case "(($ac_try" in 12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12316 *) ac_try_echo=$ac_try;; 12317 esac 12318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12319 $as_echo "$ac_try_echo"; } >&5 12320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12321 ac_status=$? 12322 if test -s conftest.err; then 12323 sed '10a\ 12324 ... rest of stderr output deleted ... 12325 10q' conftest.err >conftest.er1 12326 cat conftest.er1 >&5 12327 fi 12328 rm -f conftest.er1 conftest.err 12329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12330 test $ac_status = 0; } 12331 done 12332 3036 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3037 12334 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } … … 3154 12451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3155 12452 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 12453 3220 12454 depcc="$CXX" am_compiler_list= … … 3346 12580 3347 12581 12582 12583 12584 func_stripname_cnf () 12585 { 12586 case $2 in 12587 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 12588 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 12589 esac 12590 } # func_stripname_cnf 12591 12592 if test -n "$CXX" && ( test no != "$CXX" && 12593 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12594 (test g++ != "$CXX"))); then 12595 ac_ext=cpp 12596 ac_cpp='$CXXCPP $CPPFLAGS' 12597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12601 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12602 if test -z "$CXXCPP"; then 12603 if ${ac_cv_prog_CXXCPP+:} false; then : 12604 $as_echo_n "(cached) " >&6 12605 else 12606 # Double quotes because CXXCPP needs to be expanded 12607 for CXXCPP in "$CXX -E" "/lib/cpp" 12608 do 12609 ac_preproc_ok=false 12610 for ac_cxx_preproc_warn_flag in '' yes 12611 do 12612 # Use a header file that comes with gcc, so configuring glibc 12613 # with a fresh cross-compiler works. 12614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12615 # <limits.h> exists even on freestanding compilers. 12616 # On the NeXT, cc -E runs the code through the compiler's parser, 12617 # not just through cpp. "Syntax error" is here to catch this case. 12618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619 /* end confdefs.h. */ 12620 #ifdef __STDC__ 12621 # include <limits.h> 12622 #else 12623 # include <assert.h> 12624 #endif 12625 Syntax error 12626 _ACEOF 12627 if ac_fn_cxx_try_cpp "$LINENO"; then : 12628 12629 else 12630 # Broken: fails on valid input. 12631 continue 12632 fi 12633 rm -f conftest.err conftest.i conftest.$ac_ext 12634 12635 # OK, works on sane cases. Now check whether nonexistent headers 12636 # can be detected and how. 12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12638 /* end confdefs.h. */ 12639 #include <ac_nonexistent.h> 12640 _ACEOF 12641 if ac_fn_cxx_try_cpp "$LINENO"; then : 12642 # Broken: success on invalid input. 12643 continue 12644 else 12645 # Passes both tests. 12646 ac_preproc_ok=: 12647 break 12648 fi 12649 rm -f conftest.err conftest.i conftest.$ac_ext 12650 12651 done 12652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12653 rm -f conftest.i conftest.err conftest.$ac_ext 12654 if $ac_preproc_ok; then : 12655 break 12656 fi 12657 12658 done 12659 ac_cv_prog_CXXCPP=$CXXCPP 12660 12661 fi 12662 CXXCPP=$ac_cv_prog_CXXCPP 12663 else 12664 ac_cv_prog_CXXCPP=$CXXCPP 12665 fi 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12667 $as_echo "$CXXCPP" >&6; } 12668 ac_preproc_ok=false 12669 for ac_cxx_preproc_warn_flag in '' yes 12670 do 12671 # Use a header file that comes with gcc, so configuring glibc 12672 # with a fresh cross-compiler works. 12673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12674 # <limits.h> exists even on freestanding compilers. 12675 # On the NeXT, cc -E runs the code through the compiler's parser, 12676 # not just through cpp. "Syntax error" is here to catch this case. 12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12678 /* end confdefs.h. */ 12679 #ifdef __STDC__ 12680 # include <limits.h> 12681 #else 12682 # include <assert.h> 12683 #endif 12684 Syntax error 12685 _ACEOF 12686 if ac_fn_cxx_try_cpp "$LINENO"; then : 12687 12688 else 12689 # Broken: fails on valid input. 12690 continue 12691 fi 12692 rm -f conftest.err conftest.i conftest.$ac_ext 12693 12694 # OK, works on sane cases. Now check whether nonexistent headers 12695 # can be detected and how. 12696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697 /* end confdefs.h. */ 12698 #include <ac_nonexistent.h> 12699 _ACEOF 12700 if ac_fn_cxx_try_cpp "$LINENO"; then : 12701 # Broken: success on invalid input. 12702 continue 12703 else 12704 # Passes both tests. 12705 ac_preproc_ok=: 12706 break 12707 fi 12708 rm -f conftest.err conftest.i conftest.$ac_ext 12709 12710 done 12711 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12712 rm -f conftest.i conftest.err conftest.$ac_ext 12713 if $ac_preproc_ok; then : 12714 12715 else 12716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12718 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12719 See \`config.log' for more details" "$LINENO" 5; } 12720 fi 12721 12722 ac_ext=c 12723 ac_cpp='$CPP $CPPFLAGS' 12724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12726 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12727 12728 else 12729 _lt_caught_CXX_error=yes 12730 fi 12731 12732 ac_ext=cpp 12733 ac_cpp='$CXXCPP $CPPFLAGS' 12734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12737 12738 archive_cmds_need_lc_CXX=no 12739 allow_undefined_flag_CXX= 12740 always_export_symbols_CXX=no 12741 archive_expsym_cmds_CXX= 12742 compiler_needs_object_CXX=no 12743 export_dynamic_flag_spec_CXX= 12744 hardcode_direct_CXX=no 12745 hardcode_direct_absolute_CXX=no 12746 hardcode_libdir_flag_spec_CXX= 12747 hardcode_libdir_separator_CXX= 12748 hardcode_minus_L_CXX=no 12749 hardcode_shlibpath_var_CXX=unsupported 12750 hardcode_automatic_CXX=no 12751 inherit_rpath_CXX=no 12752 module_cmds_CXX= 12753 module_expsym_cmds_CXX= 12754 link_all_deplibs_CXX=unknown 12755 old_archive_cmds_CXX=$old_archive_cmds 12756 reload_flag_CXX=$reload_flag 12757 reload_cmds_CXX=$reload_cmds 12758 no_undefined_flag_CXX= 12759 whole_archive_flag_spec_CXX= 12760 enable_shared_with_static_runtimes_CXX=no 12761 12762 # Source file extension for C++ test sources. 12763 ac_ext=cpp 12764 12765 # Object file extension for compiled C++ test sources. 12766 objext=o 12767 objext_CXX=$objext 12768 12769 # No sense in running all these tests if we already determined that 12770 # the CXX compiler isn't working. Some variables (like enable_shared) 12771 # are currently assumed to apply to all compilers on this platform, 12772 # and will be corrupted by setting them based on a non-working compiler. 12773 if test yes != "$_lt_caught_CXX_error"; then 12774 # Code to be used in simple compile tests 12775 lt_simple_compile_test_code="int some_variable = 0;" 12776 12777 # Code to be used in simple link tests 12778 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12779 12780 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12781 12782 12783 12784 12785 12786 12787 # If no C compiler was specified, use CC. 12788 LTCC=${LTCC-"$CC"} 12789 12790 # If no C compiler flags were specified, use CFLAGS. 12791 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12792 12793 # Allow CC to be a program name with arguments. 12794 compiler=$CC 12795 12796 12797 # save warnings/boilerplate of simple test code 12798 ac_outfile=conftest.$ac_objext 12799 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12800 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12801 _lt_compiler_boilerplate=`cat conftest.err` 12802 $RM conftest* 12803 12804 ac_outfile=conftest.$ac_objext 12805 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12806 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12807 _lt_linker_boilerplate=`cat conftest.err` 12808 $RM -r conftest* 12809 12810 12811 # Allow CC to be a program name with arguments. 12812 lt_save_CC=$CC 12813 lt_save_CFLAGS=$CFLAGS 12814 lt_save_LD=$LD 12815 lt_save_GCC=$GCC 12816 GCC=$GXX 12817 lt_save_with_gnu_ld=$with_gnu_ld 12818 lt_save_path_LD=$lt_cv_path_LD 12819 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12820 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12821 else 12822 $as_unset lt_cv_prog_gnu_ld 12823 fi 12824 if test -n "${lt_cv_path_LDCXX+set}"; then 12825 lt_cv_path_LD=$lt_cv_path_LDCXX 12826 else 12827 $as_unset lt_cv_path_LD 12828 fi 12829 test -z "${LDCXX+set}" || LD=$LDCXX 12830 CC=${CXX-"c++"} 12831 CFLAGS=$CXXFLAGS 12832 compiler=$CC 12833 compiler_CXX=$CC 12834 func_cc_basename $compiler 12835 cc_basename=$func_cc_basename_result 12836 12837 12838 if test -n "$compiler"; then 12839 # We don't want -fno-exception when compiling C++ code, so set the 12840 # no_builtin_flag separately 12841 if test yes = "$GXX"; then 12842 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12843 else 12844 lt_prog_compiler_no_builtin_flag_CXX= 12845 fi 12846 12847 if test yes = "$GXX"; then 12848 # Set up default GNU C++ configuration 12849 12850 12851 12852 # Check whether --with-gnu-ld was given. 12853 if test "${with_gnu_ld+set}" = set; then : 12854 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12855 else 12856 with_gnu_ld=no 12857 fi 12858 12859 ac_prog=ld 12860 if test yes = "$GCC"; then 12861 # Check if gcc -print-prog-name=ld gives a path. 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12863 $as_echo_n "checking for ld used by $CC... " >&6; } 12864 case $host in 12865 *-*-mingw*) 12866 # gcc leaves a trailing carriage return, which upsets mingw 12867 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12868 *) 12869 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12870 esac 12871 case $ac_prog in 12872 # Accept absolute paths. 12873 [\\/]* | ?:[\\/]*) 12874 re_direlt='/[^/][^/]*/\.\./' 12875 # Canonicalize the pathname of ld 12876 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12877 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12878 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12879 done 12880 test -z "$LD" && LD=$ac_prog 12881 ;; 12882 "") 12883 # If it fails, then pretend we aren't using GCC. 12884 ac_prog=ld 12885 ;; 12886 *) 12887 # If it is relative, then search for the first ld in PATH. 12888 with_gnu_ld=unknown 12889 ;; 12890 esac 12891 elif test yes = "$with_gnu_ld"; then 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12893 $as_echo_n "checking for GNU ld... " >&6; } 12894 else 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12896 $as_echo_n "checking for non-GNU ld... " >&6; } 12897 fi 12898 if ${lt_cv_path_LD+:} false; then : 12899 $as_echo_n "(cached) " >&6 12900 else 12901 if test -z "$LD"; then 12902 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12903 for ac_dir in $PATH; do 12904 IFS=$lt_save_ifs 12905 test -z "$ac_dir" && ac_dir=. 12906 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12907 lt_cv_path_LD=$ac_dir/$ac_prog 12908 # Check to see if the program is GNU ld. I'd rather use --version, 12909 # but apparently some variants of GNU ld only accept -v. 12910 # Break only if it was the GNU/non-GNU ld that we prefer. 12911 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12912 *GNU* | *'with BFD'*) 12913 test no != "$with_gnu_ld" && break 12914 ;; 12915 *) 12916 test yes != "$with_gnu_ld" && break 12917 ;; 12918 esac 12919 fi 12920 done 12921 IFS=$lt_save_ifs 12922 else 12923 lt_cv_path_LD=$LD # Let the user override the test with a path. 12924 fi 12925 fi 12926 12927 LD=$lt_cv_path_LD 12928 if test -n "$LD"; then 12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12930 $as_echo "$LD" >&6; } 12931 else 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12933 $as_echo "no" >&6; } 12934 fi 12935 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12937 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12938 if ${lt_cv_prog_gnu_ld+:} false; then : 12939 $as_echo_n "(cached) " >&6 12940 else 12941 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12942 case `$LD -v 2>&1 </dev/null` in 12943 *GNU* | *'with BFD'*) 12944 lt_cv_prog_gnu_ld=yes 12945 ;; 12946 *) 12947 lt_cv_prog_gnu_ld=no 12948 ;; 12949 esac 12950 fi 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12952 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 12953 with_gnu_ld=$lt_cv_prog_gnu_ld 12954 12955 12956 12957 12958 12959 12960 12961 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12962 # archiving commands below assume that GNU ld is being used. 12963 if test yes = "$with_gnu_ld"; then 12964 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 12965 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' 12966 12967 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 12968 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 12969 12970 # If archive_cmds runs LD, not CC, wlarc should be empty 12971 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12972 # investigate it a little bit more. (MM) 12973 wlarc='$wl' 12974 12975 # ancient GNU ld didn't support --whole-archive et. al. 12976 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12977 $GREP 'no-whole-archive' > /dev/null; then 12978 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12979 else 12980 whole_archive_flag_spec_CXX= 12981 fi 12982 else 12983 with_gnu_ld=no 12984 wlarc= 12985 12986 # A generic and very simple default shared library creation 12987 # command for GNU C++ for the case where it uses the native 12988 # linker, instead of GNU ld. If possible, this setting should 12989 # overridden to take advantage of the native linker features on 12990 # the platform it is being used on. 12991 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12992 fi 12993 12994 # Commands to make compiler produce verbose output that lists 12995 # what "hidden" libraries, object files and flags are used when 12996 # linking a shared library. 12997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12998 12999 else 13000 GXX=no 13001 with_gnu_ld=no 13002 wlarc= 13003 fi 13004 13005 # PORTME: fill in a description of your system's C++ link characteristics 13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13007 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13008 ld_shlibs_CXX=yes 13009 case $host_os in 13010 aix3*) 13011 # FIXME: insert proper C++ library support 13012 ld_shlibs_CXX=no 13013 ;; 13014 aix[4-9]*) 13015 if test ia64 = "$host_cpu"; then 13016 # On IA64, the linker does run time linking by default, so we don't 13017 # have to do anything special. 13018 aix_use_runtimelinking=no 13019 exp_sym_flag='-Bexport' 13020 no_entry_flag= 13021 else 13022 aix_use_runtimelinking=no 13023 13024 # Test if we are trying to use run time linking or normal 13025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13026 # have runtime linking enabled, and use it for executables. 13027 # For shared libraries, we enable/disable runtime linking 13028 # depending on the kind of the shared library created - 13029 # when "with_aix_soname,aix_use_runtimelinking" is: 13030 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13031 # "aix,yes" lib.so shared, rtl:yes, for executables 13032 # lib.a static archive 13033 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13034 # lib.a(lib.so.V) shared, rtl:no, for executables 13035 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13036 # lib.a(lib.so.V) shared, rtl:no 13037 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13038 # lib.a static archive 13039 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13040 for ld_flag in $LDFLAGS; do 13041 case $ld_flag in 13042 *-brtl*) 13043 aix_use_runtimelinking=yes 13044 break 13045 ;; 13046 esac 13047 done 13048 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13049 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13050 # so we don't have lib.a shared libs to link our executables. 13051 # We have to force runtime linking in this case. 13052 aix_use_runtimelinking=yes 13053 LDFLAGS="$LDFLAGS -Wl,-brtl" 13054 fi 13055 ;; 13056 esac 13057 13058 exp_sym_flag='-bexport' 13059 no_entry_flag='-bnoentry' 13060 fi 13061 13062 # When large executables or shared objects are built, AIX ld can 13063 # have problems creating the table of contents. If linking a library 13064 # or program results in "error TOC overflow" add -mminimal-toc to 13065 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13066 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13067 13068 archive_cmds_CXX='' 13069 hardcode_direct_CXX=yes 13070 hardcode_direct_absolute_CXX=yes 13071 hardcode_libdir_separator_CXX=':' 13072 link_all_deplibs_CXX=yes 13073 file_list_spec_CXX='$wl-f,' 13074 case $with_aix_soname,$aix_use_runtimelinking in 13075 aix,*) ;; # no import file 13076 svr4,* | *,yes) # use import file 13077 # The Import File defines what to hardcode. 13078 hardcode_direct_CXX=no 13079 hardcode_direct_absolute_CXX=no 13080 ;; 13081 esac 13082 13083 if test yes = "$GXX"; then 13084 case $host_os in aix4.[012]|aix4.[012].*) 13085 # We only want to do this on AIX 4.2 and lower, the check 13086 # below for broken collect2 doesn't work under 4.3+ 13087 collect2name=`$CC -print-prog-name=collect2` 13088 if test -f "$collect2name" && 13089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13090 then 13091 # We have reworked collect2 13092 : 13093 else 13094 # We have old collect2 13095 hardcode_direct_CXX=unsupported 13096 # It fails to find uninstalled libraries when the uninstalled 13097 # path is not listed in the libpath. Setting hardcode_minus_L 13098 # to unsupported forces relinking 13099 hardcode_minus_L_CXX=yes 13100 hardcode_libdir_flag_spec_CXX='-L$libdir' 13101 hardcode_libdir_separator_CXX= 13102 fi 13103 esac 13104 shared_flag='-shared' 13105 if test yes = "$aix_use_runtimelinking"; then 13106 shared_flag=$shared_flag' $wl-G' 13107 fi 13108 # Need to ensure runtime linking is disabled for the traditional 13109 # shared library, or the linker may eventually find shared libraries 13110 # /with/ Import File - we do not want to mix them. 13111 shared_flag_aix='-shared' 13112 shared_flag_svr4='-shared $wl-G' 13113 else 13114 # not using gcc 13115 if test ia64 = "$host_cpu"; then 13116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13117 # chokes on -Wl,-G. The following line is correct: 13118 shared_flag='-G' 13119 else 13120 if test yes = "$aix_use_runtimelinking"; then 13121 shared_flag='$wl-G' 13122 else 13123 shared_flag='$wl-bM:SRE' 13124 fi 13125 shared_flag_aix='$wl-bM:SRE' 13126 shared_flag_svr4='$wl-G' 13127 fi 13128 fi 13129 13130 export_dynamic_flag_spec_CXX='$wl-bexpall' 13131 # It seems that -bexpall does not export symbols beginning with 13132 # underscore (_), so it is better to generate a list of symbols to 13133 # export. 13134 always_export_symbols_CXX=yes 13135 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13136 # Warning - without using the other runtime loading flags (-brtl), 13137 # -berok will link without error, but may produce a broken library. 13138 # The "-G" linker flag allows undefined symbols. 13139 no_undefined_flag_CXX='-bernotok' 13140 # Determine the default libpath from the value encoded in an empty 13141 # executable. 13142 if test set = "${lt_cv_aix_libpath+set}"; then 13143 aix_libpath=$lt_cv_aix_libpath 13144 else 13145 if ${lt_cv_aix_libpath__CXX+:} false; then : 13146 $as_echo_n "(cached) " >&6 13147 else 13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13149 /* end confdefs.h. */ 13150 13151 int 13152 main () 13153 { 13154 13155 ; 13156 return 0; 13157 } 13158 _ACEOF 13159 if ac_fn_cxx_try_link "$LINENO"; then : 13160 13161 lt_aix_libpath_sed=' 13162 /Import File Strings/,/^$/ { 13163 /^0/ { 13164 s/^0 *\([^ ]*\) *$/\1/ 13165 p 13166 } 13167 }' 13168 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13169 # Check for a 64-bit object if we didn't find anything. 13170 if test -z "$lt_cv_aix_libpath__CXX"; then 13171 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13172 fi 13173 fi 13174 rm -f core conftest.err conftest.$ac_objext \ 13175 conftest$ac_exeext conftest.$ac_ext 13176 if test -z "$lt_cv_aix_libpath__CXX"; then 13177 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13178 fi 13179 13180 fi 13181 13182 aix_libpath=$lt_cv_aix_libpath__CXX 13183 fi 13184 13185 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13186 13187 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 13188 else 13189 if test ia64 = "$host_cpu"; then 13190 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13191 allow_undefined_flag_CXX="-z nodefs" 13192 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" 13193 else 13194 # Determine the default libpath from the value encoded in an 13195 # empty executable. 13196 if test set = "${lt_cv_aix_libpath+set}"; then 13197 aix_libpath=$lt_cv_aix_libpath 13198 else 13199 if ${lt_cv_aix_libpath__CXX+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201 else 13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13203 /* end confdefs.h. */ 13204 13205 int 13206 main () 13207 { 13208 13209 ; 13210 return 0; 13211 } 13212 _ACEOF 13213 if ac_fn_cxx_try_link "$LINENO"; then : 13214 13215 lt_aix_libpath_sed=' 13216 /Import File Strings/,/^$/ { 13217 /^0/ { 13218 s/^0 *\([^ ]*\) *$/\1/ 13219 p 13220 } 13221 }' 13222 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13223 # Check for a 64-bit object if we didn't find anything. 13224 if test -z "$lt_cv_aix_libpath__CXX"; then 13225 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13226 fi 13227 fi 13228 rm -f core conftest.err conftest.$ac_objext \ 13229 conftest$ac_exeext conftest.$ac_ext 13230 if test -z "$lt_cv_aix_libpath__CXX"; then 13231 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13232 fi 13233 13234 fi 13235 13236 aix_libpath=$lt_cv_aix_libpath__CXX 13237 fi 13238 13239 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13240 # Warning - without using the other run time loading flags, 13241 # -berok will link without error, but may produce a broken library. 13242 no_undefined_flag_CXX=' $wl-bernotok' 13243 allow_undefined_flag_CXX=' $wl-berok' 13244 if test yes = "$with_gnu_ld"; then 13245 # We only use this code for GNU lds that support --whole-archive. 13246 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13247 else 13248 # Exported symbols can be pulled into shared objects from archives 13249 whole_archive_flag_spec_CXX='$convenience' 13250 fi 13251 archive_cmds_need_lc_CXX=yes 13252 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13253 # -brtl affects multiple linker settings, -berok does not and is overridden later 13254 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13255 if test svr4 != "$with_aix_soname"; then 13256 # This is similar to how AIX traditionally builds its shared 13257 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13258 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' 13259 fi 13260 if test aix != "$with_aix_soname"; then 13261 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' 13262 else 13263 # used by -dlpreopen to get the symbols 13264 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13265 fi 13266 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13267 fi 13268 fi 13269 ;; 13270 13271 beos*) 13272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13273 allow_undefined_flag_CXX=unsupported 13274 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13275 # support --undefined. This deserves some investigation. FIXME 13276 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13277 else 13278 ld_shlibs_CXX=no 13279 fi 13280 ;; 13281 13282 chorus*) 13283 case $cc_basename in 13284 *) 13285 # FIXME: insert proper C++ library support 13286 ld_shlibs_CXX=no 13287 ;; 13288 esac 13289 ;; 13290 13291 cygwin* | mingw* | pw32* | cegcc*) 13292 case $GXX,$cc_basename in 13293 ,cl* | no,cl*) 13294 # Native MSVC 13295 # hardcode_libdir_flag_spec is actually meaningless, as there is 13296 # no search path for DLLs. 13297 hardcode_libdir_flag_spec_CXX=' ' 13298 allow_undefined_flag_CXX=unsupported 13299 always_export_symbols_CXX=yes 13300 file_list_spec_CXX='@' 13301 # Tell ltmain to make .lib files, not .a files. 13302 libext=lib 13303 # Tell ltmain to make .dll files, not .so files. 13304 shrext_cmds=.dll 13305 # FIXME: Setting linknames here is a bad hack. 13306 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13307 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13308 cp "$export_symbols" "$output_objdir/$soname.def"; 13309 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13310 else 13311 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13312 fi~ 13313 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13314 linknames=' 13315 # The linker will not automatically build a static lib if we build a DLL. 13316 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13317 enable_shared_with_static_runtimes_CXX=yes 13318 # Don't use ranlib 13319 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13320 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13321 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13322 case $lt_outputfile in 13323 *.exe|*.EXE) ;; 13324 *) 13325 lt_outputfile=$lt_outputfile.exe 13326 lt_tool_outputfile=$lt_tool_outputfile.exe 13327 ;; 13328 esac~ 13329 func_to_tool_file "$lt_outputfile"~ 13330 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13331 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13332 $RM "$lt_outputfile.manifest"; 13333 fi' 13334 ;; 13335 *) 13336 # g++ 13337 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13338 # as there is no search path for DLLs. 13339 hardcode_libdir_flag_spec_CXX='-L$libdir' 13340 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13341 allow_undefined_flag_CXX=unsupported 13342 always_export_symbols_CXX=no 13343 enable_shared_with_static_runtimes_CXX=yes 13344 13345 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13346 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' 13347 # If the export-symbols file already is a .def file, use it as 13348 # is; otherwise, prepend EXPORTS... 13349 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13350 cp $export_symbols $output_objdir/$soname.def; 13351 else 13352 echo EXPORTS > $output_objdir/$soname.def; 13353 cat $export_symbols >> $output_objdir/$soname.def; 13354 fi~ 13355 $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' 13356 else 13357 ld_shlibs_CXX=no 13358 fi 13359 ;; 13360 esac 13361 ;; 13362 darwin* | rhapsody*) 13363 13364 13365 archive_cmds_need_lc_CXX=no 13366 hardcode_direct_CXX=no 13367 hardcode_automatic_CXX=yes 13368 hardcode_shlibpath_var_CXX=unsupported 13369 if test yes = "$lt_cv_ld_force_load"; then 13370 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\"`' 13371 13372 else 13373 whole_archive_flag_spec_CXX='' 13374 fi 13375 link_all_deplibs_CXX=yes 13376 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13377 case $cc_basename in 13378 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13379 *) _lt_dar_can_shared=$GCC ;; 13380 esac 13381 if test yes = "$_lt_dar_can_shared"; then 13382 output_verbose_link_cmd=func_echo_all 13383 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" 13384 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13385 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" 13386 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" 13387 if test yes != "$lt_cv_apple_cc_single_mod"; then 13388 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" 13389 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" 13390 fi 13391 13392 else 13393 ld_shlibs_CXX=no 13394 fi 13395 13396 ;; 13397 13398 os2*) 13399 hardcode_libdir_flag_spec_CXX='-L$libdir' 13400 hardcode_minus_L_CXX=yes 13401 allow_undefined_flag_CXX=unsupported 13402 shrext_cmds=.dll 13403 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13404 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13405 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13406 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13407 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13408 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13409 emximp -o $lib $output_objdir/$libname.def' 13410 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13413 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13414 prefix_cmds="$SED"~ 13415 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13416 prefix_cmds="$prefix_cmds -e 1d"; 13417 fi~ 13418 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13419 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13420 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13421 emximp -o $lib $output_objdir/$libname.def' 13422 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13423 enable_shared_with_static_runtimes_CXX=yes 13424 ;; 13425 13426 dgux*) 13427 case $cc_basename in 13428 ec++*) 13429 # FIXME: insert proper C++ library support 13430 ld_shlibs_CXX=no 13431 ;; 13432 ghcx*) 13433 # Green Hills C++ Compiler 13434 # FIXME: insert proper C++ library support 13435 ld_shlibs_CXX=no 13436 ;; 13437 *) 13438 # FIXME: insert proper C++ library support 13439 ld_shlibs_CXX=no 13440 ;; 13441 esac 13442 ;; 13443 13444 freebsd2.*) 13445 # C++ shared libraries reported to be fairly broken before 13446 # switch to ELF 13447 ld_shlibs_CXX=no 13448 ;; 13449 13450 freebsd-elf*) 13451 archive_cmds_need_lc_CXX=no 13452 ;; 13453 13454 freebsd* | dragonfly*) 13455 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13456 # conventions 13457 ld_shlibs_CXX=yes 13458 ;; 13459 13460 haiku*) 13461 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13462 link_all_deplibs_CXX=yes 13463 ;; 13464 13465 hpux9*) 13466 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13467 hardcode_libdir_separator_CXX=: 13468 export_dynamic_flag_spec_CXX='$wl-E' 13469 hardcode_direct_CXX=yes 13470 hardcode_minus_L_CXX=yes # Not in the search PATH, 13471 # but as the default 13472 # location of the library. 13473 13474 case $cc_basename in 13475 CC*) 13476 # FIXME: insert proper C++ library support 13477 ld_shlibs_CXX=no 13478 ;; 13479 aCC*) 13480 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' 13481 # Commands to make compiler produce verbose output that lists 13482 # what "hidden" libraries, object files and flags are used when 13483 # linking a shared library. 13484 # 13485 # There doesn't appear to be a way to prevent this compiler from 13486 # explicitly linking system object files so we need to strip them 13487 # from the output so that they don't get included in the library 13488 # dependencies. 13489 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"' 13490 ;; 13491 *) 13492 if test yes = "$GXX"; then 13493 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' 13494 else 13495 # FIXME: insert proper C++ library support 13496 ld_shlibs_CXX=no 13497 fi 13498 ;; 13499 esac 13500 ;; 13501 13502 hpux10*|hpux11*) 13503 if test no = "$with_gnu_ld"; then 13504 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13505 hardcode_libdir_separator_CXX=: 13506 13507 case $host_cpu in 13508 hppa*64*|ia64*) 13509 ;; 13510 *) 13511 export_dynamic_flag_spec_CXX='$wl-E' 13512 ;; 13513 esac 13514 fi 13515 case $host_cpu in 13516 hppa*64*|ia64*) 13517 hardcode_direct_CXX=no 13518 hardcode_shlibpath_var_CXX=no 13519 ;; 13520 *) 13521 hardcode_direct_CXX=yes 13522 hardcode_direct_absolute_CXX=yes 13523 hardcode_minus_L_CXX=yes # Not in the search PATH, 13524 # but as the default 13525 # location of the library. 13526 ;; 13527 esac 13528 13529 case $cc_basename in 13530 CC*) 13531 # FIXME: insert proper C++ library support 13532 ld_shlibs_CXX=no 13533 ;; 13534 aCC*) 13535 case $host_cpu in 13536 hppa*64*) 13537 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13538 ;; 13539 ia64*) 13540 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13541 ;; 13542 *) 13543 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13544 ;; 13545 esac 13546 # Commands to make compiler produce verbose output that lists 13547 # what "hidden" libraries, object files and flags are used when 13548 # linking a shared library. 13549 # 13550 # There doesn't appear to be a way to prevent this compiler from 13551 # explicitly linking system object files so we need to strip them 13552 # from the output so that they don't get included in the library 13553 # dependencies. 13554 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"' 13555 ;; 13556 *) 13557 if test yes = "$GXX"; then 13558 if test no = "$with_gnu_ld"; then 13559 case $host_cpu in 13560 hppa*64*) 13561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13562 ;; 13563 ia64*) 13564 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13565 ;; 13566 *) 13567 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' 13568 ;; 13569 esac 13570 fi 13571 else 13572 # FIXME: insert proper C++ library support 13573 ld_shlibs_CXX=no 13574 fi 13575 ;; 13576 esac 13577 ;; 13578 13579 interix[3-9]*) 13580 hardcode_direct_CXX=no 13581 hardcode_shlibpath_var_CXX=no 13582 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13583 export_dynamic_flag_spec_CXX='$wl-E' 13584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13585 # Instead, shared libraries are loaded at an image base (0x10000000 by 13586 # default) and relocated if they conflict, which is a slow very memory 13587 # consuming and fragmenting process. To avoid this, we pick a random, 13588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13589 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13590 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' 13591 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' 13592 ;; 13593 irix5* | irix6*) 13594 case $cc_basename in 13595 CC*) 13596 # SGI C++ 13597 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' 13598 13599 # Archives containing C++ object files must be created using 13600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13601 # necessary to make sure instantiated templates are included 13602 # in the archive. 13603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13604 ;; 13605 *) 13606 if test yes = "$GXX"; then 13607 if test no = "$with_gnu_ld"; then 13608 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' 13609 else 13610 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' 13611 fi 13612 fi 13613 link_all_deplibs_CXX=yes 13614 ;; 13615 esac 13616 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13617 hardcode_libdir_separator_CXX=: 13618 inherit_rpath_CXX=yes 13619 ;; 13620 13621 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13622 case $cc_basename in 13623 KCC*) 13624 # Kuck and Associates, Inc. (KAI) C++ Compiler 13625 13626 # KCC will only create a shared library if the output file 13627 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13628 # to its proper name (with version) after linking. 13629 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' 13630 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' 13631 # Commands to make compiler produce verbose output that lists 13632 # what "hidden" libraries, object files and flags are used when 13633 # linking a shared library. 13634 # 13635 # There doesn't appear to be a way to prevent this compiler from 13636 # explicitly linking system object files so we need to strip them 13637 # from the output so that they don't get included in the library 13638 # dependencies. 13639 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"' 13640 13641 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13642 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13643 13644 # Archives containing C++ object files must be created using 13645 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13646 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13647 ;; 13648 icpc* | ecpc* ) 13649 # Intel C++ 13650 with_gnu_ld=yes 13651 # version 8.0 and above of icpc choke on multiply defined symbols 13652 # if we add $predep_objects and $postdep_objects, however 7.1 and 13653 # earlier do not add the objects themselves. 13654 case `$CC -V 2>&1` in 13655 *"Version 7."*) 13656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13657 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' 13658 ;; 13659 *) # Version 8.0 or newer 13660 tmp_idyn= 13661 case $host_cpu in 13662 ia64*) tmp_idyn=' -i_dynamic';; 13663 esac 13664 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13665 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' 13666 ;; 13667 esac 13668 archive_cmds_need_lc_CXX=no 13669 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13670 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13671 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13672 ;; 13673 pgCC* | pgcpp*) 13674 # Portland Group C++ compiler 13675 case `$CC -V` in 13676 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13677 prelink_cmds_CXX='tpldir=Template.dir~ 13678 rm -rf $tpldir~ 13679 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13680 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13681 old_archive_cmds_CXX='tpldir=Template.dir~ 13682 rm -rf $tpldir~ 13683 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13684 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13685 $RANLIB $oldlib' 13686 archive_cmds_CXX='tpldir=Template.dir~ 13687 rm -rf $tpldir~ 13688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13689 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13690 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13691 rm -rf $tpldir~ 13692 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13693 $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' 13694 ;; 13695 *) # Version 6 and above use weak symbols 13696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13697 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' 13698 ;; 13699 esac 13700 13701 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13702 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13703 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' 13704 ;; 13705 cxx*) 13706 # Compaq C++ 13707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13708 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' 13709 13710 runpath_var=LD_RUN_PATH 13711 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13712 hardcode_libdir_separator_CXX=: 13713 13714 # Commands to make compiler produce verbose output that lists 13715 # what "hidden" libraries, object files and flags are used when 13716 # linking a shared library. 13717 # 13718 # There doesn't appear to be a way to prevent this compiler from 13719 # explicitly linking system object files so we need to strip them 13720 # from the output so that they don't get included in the library 13721 # dependencies. 13722 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' 13723 ;; 13724 xl* | mpixl* | bgxl*) 13725 # IBM XL 8.0 on PPC, with GNU ld 13726 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13727 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13728 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13729 if test yes = "$supports_anon_versioning"; then 13730 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13732 echo "local: *; };" >> $output_objdir/$libname.ver~ 13733 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13734 fi 13735 ;; 13736 *) 13737 case `$CC -V 2>&1 | sed 5q` in 13738 *Sun\ C*) 13739 # Sun C++ 5.9 13740 no_undefined_flag_CXX=' -zdefs' 13741 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13742 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' 13743 hardcode_libdir_flag_spec_CXX='-R$libdir' 13744 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' 13745 compiler_needs_object_CXX=yes 13746 13747 # Not sure whether something based on 13748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13749 # would be better. 13750 output_verbose_link_cmd='func_echo_all' 13751 13752 # Archives containing C++ object files must be created using 13753 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13754 # necessary to make sure instantiated templates are included 13755 # in the archive. 13756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13757 ;; 13758 esac 13759 ;; 13760 esac 13761 ;; 13762 13763 lynxos*) 13764 # FIXME: insert proper C++ library support 13765 ld_shlibs_CXX=no 13766 ;; 13767 13768 m88k*) 13769 # FIXME: insert proper C++ library support 13770 ld_shlibs_CXX=no 13771 ;; 13772 13773 mvs*) 13774 case $cc_basename in 13775 cxx*) 13776 # FIXME: insert proper C++ library support 13777 ld_shlibs_CXX=no 13778 ;; 13779 *) 13780 # FIXME: insert proper C++ library support 13781 ld_shlibs_CXX=no 13782 ;; 13783 esac 13784 ;; 13785 13786 netbsd*) 13787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13789 wlarc= 13790 hardcode_libdir_flag_spec_CXX='-R$libdir' 13791 hardcode_direct_CXX=yes 13792 hardcode_shlibpath_var_CXX=no 13793 fi 13794 # Workaround some broken pre-1.5 toolchains 13795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13796 ;; 13797 13798 *nto* | *qnx*) 13799 ld_shlibs_CXX=yes 13800 ;; 13801 13802 openbsd* | bitrig*) 13803 if test -f /usr/libexec/ld.so; then 13804 hardcode_direct_CXX=yes 13805 hardcode_shlibpath_var_CXX=no 13806 hardcode_direct_absolute_CXX=yes 13807 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13808 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13810 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13811 export_dynamic_flag_spec_CXX='$wl-E' 13812 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13813 fi 13814 output_verbose_link_cmd=func_echo_all 13815 else 13816 ld_shlibs_CXX=no 13817 fi 13818 ;; 13819 13820 osf3* | osf4* | osf5*) 13821 case $cc_basename in 13822 KCC*) 13823 # Kuck and Associates, Inc. (KAI) C++ Compiler 13824 13825 # KCC will only create a shared library if the output file 13826 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13827 # to its proper name (with version) after linking. 13828 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' 13829 13830 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13831 hardcode_libdir_separator_CXX=: 13832 13833 # Archives containing C++ object files must be created using 13834 # the KAI C++ compiler. 13835 case $host in 13836 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13837 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13838 esac 13839 ;; 13840 RCC*) 13841 # Rational C++ 2.4.1 13842 # FIXME: insert proper C++ library support 13843 ld_shlibs_CXX=no 13844 ;; 13845 cxx*) 13846 case $host in 13847 osf3*) 13848 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13849 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' 13850 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13851 ;; 13852 *) 13853 allow_undefined_flag_CXX=' -expect_unresolved \*' 13854 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' 13855 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13856 echo "-hidden">> $lib.exp~ 13857 $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~ 13858 $RM $lib.exp' 13859 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13860 ;; 13861 esac 13862 13863 hardcode_libdir_separator_CXX=: 13864 13865 # Commands to make compiler produce verbose output that lists 13866 # what "hidden" libraries, object files and flags are used when 13867 # linking a shared library. 13868 # 13869 # There doesn't appear to be a way to prevent this compiler from 13870 # explicitly linking system object files so we need to strip them 13871 # from the output so that they don't get included in the library 13872 # dependencies. 13873 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"' 13874 ;; 13875 *) 13876 if test yes,no = "$GXX,$with_gnu_ld"; then 13877 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13878 case $host in 13879 osf3*) 13880 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' 13881 ;; 13882 *) 13883 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' 13884 ;; 13885 esac 13886 13887 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13888 hardcode_libdir_separator_CXX=: 13889 13890 # Commands to make compiler produce verbose output that lists 13891 # what "hidden" libraries, object files and flags are used when 13892 # linking a shared library. 13893 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13894 13895 else 13896 # FIXME: insert proper C++ library support 13897 ld_shlibs_CXX=no 13898 fi 13899 ;; 13900 esac 13901 ;; 13902 13903 psos*) 13904 # FIXME: insert proper C++ library support 13905 ld_shlibs_CXX=no 13906 ;; 13907 13908 sunos4*) 13909 case $cc_basename in 13910 CC*) 13911 # Sun C++ 4.x 13912 # FIXME: insert proper C++ library support 13913 ld_shlibs_CXX=no 13914 ;; 13915 lcc*) 13916 # Lucid 13917 # FIXME: insert proper C++ library support 13918 ld_shlibs_CXX=no 13919 ;; 13920 *) 13921 # FIXME: insert proper C++ library support 13922 ld_shlibs_CXX=no 13923 ;; 13924 esac 13925 ;; 13926 13927 solaris*) 13928 case $cc_basename in 13929 CC* | sunCC*) 13930 # Sun C++ 4.2, 5.x and Centerline C++ 13931 archive_cmds_need_lc_CXX=yes 13932 no_undefined_flag_CXX=' -zdefs' 13933 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13934 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13935 $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' 13936 13937 hardcode_libdir_flag_spec_CXX='-R$libdir' 13938 hardcode_shlibpath_var_CXX=no 13939 case $host_os in 13940 solaris2.[0-5] | solaris2.[0-5].*) ;; 13941 *) 13942 # The compiler driver will combine and reorder linker options, 13943 # but understands '-z linker_flag'. 13944 # Supported since Solaris 2.6 (maybe 2.5.1?) 13945 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13946 ;; 13947 esac 13948 link_all_deplibs_CXX=yes 13949 13950 output_verbose_link_cmd='func_echo_all' 13951 13952 # Archives containing C++ object files must be created using 13953 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13954 # necessary to make sure instantiated templates are included 13955 # in the archive. 13956 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13957 ;; 13958 gcx*) 13959 # Green Hills C++ Compiler 13960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13961 13962 # The C++ compiler must be used to create the archive. 13963 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13964 ;; 13965 *) 13966 # GNU C++ compiler with Solaris linker 13967 if test yes,no = "$GXX,$with_gnu_ld"; then 13968 no_undefined_flag_CXX=' $wl-z ${wl}defs' 13969 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13970 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13971 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13972 $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' 13973 13974 # Commands to make compiler produce verbose output that lists 13975 # what "hidden" libraries, object files and flags are used when 13976 # linking a shared library. 13977 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13978 else 13979 # g++ 2.7 appears to require '-G' NOT '-shared' on this 13980 # platform. 13981 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13982 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13983 $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' 13984 13985 # Commands to make compiler produce verbose output that lists 13986 # what "hidden" libraries, object files and flags are used when 13987 # linking a shared library. 13988 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13989 fi 13990 13991 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 13992 case $host_os in 13993 solaris2.[0-5] | solaris2.[0-5].*) ;; 13994 *) 13995 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13996 ;; 13997 esac 13998 fi 13999 ;; 14000 esac 14001 ;; 14002 14003 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14004 no_undefined_flag_CXX='$wl-z,text' 14005 archive_cmds_need_lc_CXX=no 14006 hardcode_shlibpath_var_CXX=no 14007 runpath_var='LD_RUN_PATH' 14008 14009 case $cc_basename in 14010 CC*) 14011 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14012 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14013 ;; 14014 *) 14015 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14016 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14017 ;; 14018 esac 14019 ;; 14020 14021 sysv5* | sco3.2v5* | sco5v6*) 14022 # Note: We CANNOT use -z defs as we might desire, because we do not 14023 # link with -lc, and that would cause any symbols used from libc to 14024 # always be unresolved, which means just about no library would 14025 # ever link correctly. If we're not using GNU ld we use -z text 14026 # though, which does catch some bad symbols but isn't as heavy-handed 14027 # as -z defs. 14028 no_undefined_flag_CXX='$wl-z,text' 14029 allow_undefined_flag_CXX='$wl-z,nodefs' 14030 archive_cmds_need_lc_CXX=no 14031 hardcode_shlibpath_var_CXX=no 14032 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14033 hardcode_libdir_separator_CXX=':' 14034 link_all_deplibs_CXX=yes 14035 export_dynamic_flag_spec_CXX='$wl-Bexport' 14036 runpath_var='LD_RUN_PATH' 14037 14038 case $cc_basename in 14039 CC*) 14040 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14041 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14042 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14043 '"$old_archive_cmds_CXX" 14044 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14045 '"$reload_cmds_CXX" 14046 ;; 14047 *) 14048 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14049 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14050 ;; 14051 esac 14052 ;; 14053 14054 tandem*) 14055 case $cc_basename in 14056 NCC*) 14057 # NonStop-UX NCC 3.20 14058 # FIXME: insert proper C++ library support 14059 ld_shlibs_CXX=no 14060 ;; 14061 *) 14062 # FIXME: insert proper C++ library support 14063 ld_shlibs_CXX=no 14064 ;; 14065 esac 14066 ;; 14067 14068 vxworks*) 14069 # FIXME: insert proper C++ library support 14070 ld_shlibs_CXX=no 14071 ;; 14072 14073 *) 14074 # FIXME: insert proper C++ library support 14075 ld_shlibs_CXX=no 14076 ;; 14077 esac 14078 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14080 $as_echo "$ld_shlibs_CXX" >&6; } 14081 test no = "$ld_shlibs_CXX" && can_build_shared=no 14082 14083 GCC_CXX=$GXX 14084 LD_CXX=$LD 14085 14086 ## CAVEAT EMPTOR: 14087 ## There is no encapsulation within the following macros, do not change 14088 ## the running order or otherwise move them around unless you know exactly 14089 ## what you are doing... 14090 # Dependencies to place before and after the object being linked: 14091 predep_objects_CXX= 14092 postdep_objects_CXX= 14093 predeps_CXX= 14094 postdeps_CXX= 14095 compiler_lib_search_path_CXX= 14096 14097 cat > conftest.$ac_ext <<_LT_EOF 14098 class Foo 14099 { 14100 public: 14101 Foo (void) { a = 0; } 14102 private: 14103 int a; 14104 }; 14105 _LT_EOF 14106 14107 14108 _lt_libdeps_save_CFLAGS=$CFLAGS 14109 case "$CC $CFLAGS " in #( 14110 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14111 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14112 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14113 esac 14114 14115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14116 (eval $ac_compile) 2>&5 14117 ac_status=$? 14118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14119 test $ac_status = 0; }; then 14120 # Parse the compiler output and extract the necessary 14121 # objects, libraries and library flags. 14122 14123 # Sentinel used to keep track of whether or not we are before 14124 # the conftest object file. 14125 pre_test_object_deps_done=no 14126 14127 for p in `eval "$output_verbose_link_cmd"`; do 14128 case $prev$p in 14129 14130 -L* | -R* | -l*) 14131 # Some compilers place space between "-{L,R}" and the path. 14132 # Remove the space. 14133 if test x-L = "$p" || 14134 test x-R = "$p"; then 14135 prev=$p 14136 continue 14137 fi 14138 14139 # Expand the sysroot to ease extracting the directories later. 14140 if test -z "$prev"; then 14141 case $p in 14142 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14143 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14144 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14145 esac 14146 fi 14147 case $p in 14148 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14149 esac 14150 if test no = "$pre_test_object_deps_done"; then 14151 case $prev in 14152 -L | -R) 14153 # Internal compiler library paths should come after those 14154 # provided the user. The postdeps already come after the 14155 # user supplied libs so there is no need to process them. 14156 if test -z "$compiler_lib_search_path_CXX"; then 14157 compiler_lib_search_path_CXX=$prev$p 14158 else 14159 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14160 fi 14161 ;; 14162 # The "-l" case would never come before the object being 14163 # linked, so don't bother handling this case. 14164 esac 14165 else 14166 if test -z "$postdeps_CXX"; then 14167 postdeps_CXX=$prev$p 14168 else 14169 postdeps_CXX="${postdeps_CXX} $prev$p" 14170 fi 14171 fi 14172 prev= 14173 ;; 14174 14175 *.lto.$objext) ;; # Ignore GCC LTO objects 14176 *.$objext) 14177 # This assumes that the test object file only shows up 14178 # once in the compiler output. 14179 if test "$p" = "conftest.$objext"; then 14180 pre_test_object_deps_done=yes 14181 continue 14182 fi 14183 14184 if test no = "$pre_test_object_deps_done"; then 14185 if test -z "$predep_objects_CXX"; then 14186 predep_objects_CXX=$p 14187 else 14188 predep_objects_CXX="$predep_objects_CXX $p" 14189 fi 14190 else 14191 if test -z "$postdep_objects_CXX"; then 14192 postdep_objects_CXX=$p 14193 else 14194 postdep_objects_CXX="$postdep_objects_CXX $p" 14195 fi 14196 fi 14197 ;; 14198 14199 *) ;; # Ignore the rest. 14200 14201 esac 14202 done 14203 14204 # Clean up. 14205 rm -f a.out a.exe 14206 else 14207 echo "libtool.m4: error: problem compiling CXX test program" 14208 fi 14209 14210 $RM -f confest.$objext 14211 CFLAGS=$_lt_libdeps_save_CFLAGS 14212 14213 # PORTME: override above test on systems where it is broken 14214 case $host_os in 14215 interix[3-9]*) 14216 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14217 # hack all around it, let's just trust "g++" to DTRT. 14218 predep_objects_CXX= 14219 postdep_objects_CXX= 14220 postdeps_CXX= 14221 ;; 14222 esac 14223 14224 14225 case " $postdeps_CXX " in 14226 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 14227 esac 14228 compiler_lib_search_dirs_CXX= 14229 if test -n "${compiler_lib_search_path_CXX}"; then 14230 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14231 fi 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 14259 14260 14261 14262 14263 lt_prog_compiler_wl_CXX= 14264 lt_prog_compiler_pic_CXX= 14265 lt_prog_compiler_static_CXX= 14266 14267 14268 # C++ specific cases for pic, static, wl, etc. 14269 if test yes = "$GXX"; then 14270 lt_prog_compiler_wl_CXX='-Wl,' 14271 lt_prog_compiler_static_CXX='-static' 14272 14273 case $host_os in 14274 aix*) 14275 # All AIX code is PIC. 14276 if test ia64 = "$host_cpu"; then 14277 # AIX 5 now supports IA64 processor 14278 lt_prog_compiler_static_CXX='-Bstatic' 14279 fi 14280 lt_prog_compiler_pic_CXX='-fPIC' 14281 ;; 14282 14283 amigaos*) 14284 case $host_cpu in 14285 powerpc) 14286 # see comment about AmigaOS4 .so support 14287 lt_prog_compiler_pic_CXX='-fPIC' 14288 ;; 14289 m68k) 14290 # FIXME: we need at least 68020 code to build shared libraries, but 14291 # adding the '-m68020' flag to GCC prevents building anything better, 14292 # like '-m68040'. 14293 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14294 ;; 14295 esac 14296 ;; 14297 14298 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14299 # PIC is the default for these OSes. 14300 ;; 14301 mingw* | cygwin* | os2* | pw32* | cegcc*) 14302 # This hack is so that the source file can tell whether it is being 14303 # built for inclusion in a dll (and should export symbols for example). 14304 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14305 # (--disable-auto-import) libraries 14306 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14307 case $host_os in 14308 os2*) 14309 lt_prog_compiler_static_CXX='$wl-static' 14310 ;; 14311 esac 14312 ;; 14313 darwin* | rhapsody*) 14314 # PIC is the default on this platform 14315 # Common symbols not allowed in MH_DYLIB files 14316 lt_prog_compiler_pic_CXX='-fno-common' 14317 ;; 14318 *djgpp*) 14319 # DJGPP does not support shared libraries at all 14320 lt_prog_compiler_pic_CXX= 14321 ;; 14322 haiku*) 14323 # PIC is the default for Haiku. 14324 # The "-static" flag exists, but is broken. 14325 lt_prog_compiler_static_CXX= 14326 ;; 14327 interix[3-9]*) 14328 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14329 # Instead, we relocate shared libraries at runtime. 14330 ;; 14331 sysv4*MP*) 14332 if test -d /usr/nec; then 14333 lt_prog_compiler_pic_CXX=-Kconform_pic 14334 fi 14335 ;; 14336 hpux*) 14337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14339 # sets the default TLS model and affects inlining. 14340 case $host_cpu in 14341 hppa*64*) 14342 ;; 14343 *) 14344 lt_prog_compiler_pic_CXX='-fPIC' 14345 ;; 14346 esac 14347 ;; 14348 *qnx* | *nto*) 14349 # QNX uses GNU C++, but need to define -shared option too, otherwise 14350 # it will coredump. 14351 lt_prog_compiler_pic_CXX='-fPIC -shared' 14352 ;; 14353 *) 14354 lt_prog_compiler_pic_CXX='-fPIC' 14355 ;; 14356 esac 14357 else 14358 case $host_os in 14359 aix[4-9]*) 14360 # All AIX code is PIC. 14361 if test ia64 = "$host_cpu"; then 14362 # AIX 5 now supports IA64 processor 14363 lt_prog_compiler_static_CXX='-Bstatic' 14364 else 14365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14366 fi 14367 ;; 14368 chorus*) 14369 case $cc_basename in 14370 cxch68*) 14371 # Green Hills C++ Compiler 14372 # _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" 14373 ;; 14374 esac 14375 ;; 14376 mingw* | cygwin* | os2* | pw32* | cegcc*) 14377 # This hack is so that the source file can tell whether it is being 14378 # built for inclusion in a dll (and should export symbols for example). 14379 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14380 ;; 14381 dgux*) 14382 case $cc_basename in 14383 ec++*) 14384 lt_prog_compiler_pic_CXX='-KPIC' 14385 ;; 14386 ghcx*) 14387 # Green Hills C++ Compiler 14388 lt_prog_compiler_pic_CXX='-pic' 14389 ;; 14390 *) 14391 ;; 14392 esac 14393 ;; 14394 freebsd* | dragonfly*) 14395 # FreeBSD uses GNU C++ 14396 ;; 14397 hpux9* | hpux10* | hpux11*) 14398 case $cc_basename in 14399 CC*) 14400 lt_prog_compiler_wl_CXX='-Wl,' 14401 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14402 if test ia64 != "$host_cpu"; then 14403 lt_prog_compiler_pic_CXX='+Z' 14404 fi 14405 ;; 14406 aCC*) 14407 lt_prog_compiler_wl_CXX='-Wl,' 14408 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14409 case $host_cpu in 14410 hppa*64*|ia64*) 14411 # +Z the default 14412 ;; 14413 *) 14414 lt_prog_compiler_pic_CXX='+Z' 14415 ;; 14416 esac 14417 ;; 14418 *) 14419 ;; 14420 esac 14421 ;; 14422 interix*) 14423 # This is c89, which is MS Visual C++ (no shared libs) 14424 # Anyone wants to do a port? 14425 ;; 14426 irix5* | irix6* | nonstopux*) 14427 case $cc_basename in 14428 CC*) 14429 lt_prog_compiler_wl_CXX='-Wl,' 14430 lt_prog_compiler_static_CXX='-non_shared' 14431 # CC pic flag -KPIC is the default. 14432 ;; 14433 *) 14434 ;; 14435 esac 14436 ;; 14437 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14438 case $cc_basename in 14439 KCC*) 14440 # KAI C++ Compiler 14441 lt_prog_compiler_wl_CXX='--backend -Wl,' 14442 lt_prog_compiler_pic_CXX='-fPIC' 14443 ;; 14444 ecpc* ) 14445 # old Intel C++ for x86_64, which still supported -KPIC. 14446 lt_prog_compiler_wl_CXX='-Wl,' 14447 lt_prog_compiler_pic_CXX='-KPIC' 14448 lt_prog_compiler_static_CXX='-static' 14449 ;; 14450 icpc* ) 14451 # Intel C++, used to be incompatible with GCC. 14452 # ICC 10 doesn't accept -KPIC any more. 14453 lt_prog_compiler_wl_CXX='-Wl,' 14454 lt_prog_compiler_pic_CXX='-fPIC' 14455 lt_prog_compiler_static_CXX='-static' 14456 ;; 14457 pgCC* | pgcpp*) 14458 # Portland Group C++ compiler 14459 lt_prog_compiler_wl_CXX='-Wl,' 14460 lt_prog_compiler_pic_CXX='-fpic' 14461 lt_prog_compiler_static_CXX='-Bstatic' 14462 ;; 14463 cxx*) 14464 # Compaq C++ 14465 # Make sure the PIC flag is empty. It appears that all Alpha 14466 # Linux and Compaq Tru64 Unix objects are PIC. 14467 lt_prog_compiler_pic_CXX= 14468 lt_prog_compiler_static_CXX='-non_shared' 14469 ;; 14470 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14471 # IBM XL 8.0, 9.0 on PPC and BlueGene 14472 lt_prog_compiler_wl_CXX='-Wl,' 14473 lt_prog_compiler_pic_CXX='-qpic' 14474 lt_prog_compiler_static_CXX='-qstaticlink' 14475 ;; 14476 *) 14477 case `$CC -V 2>&1 | sed 5q` in 14478 *Sun\ C*) 14479 # Sun C++ 5.9 14480 lt_prog_compiler_pic_CXX='-KPIC' 14481 lt_prog_compiler_static_CXX='-Bstatic' 14482 lt_prog_compiler_wl_CXX='-Qoption ld ' 14483 ;; 14484 esac 14485 ;; 14486 esac 14487 ;; 14488 lynxos*) 14489 ;; 14490 m88k*) 14491 ;; 14492 mvs*) 14493 case $cc_basename in 14494 cxx*) 14495 lt_prog_compiler_pic_CXX='-W c,exportall' 14496 ;; 14497 *) 14498 ;; 14499 esac 14500 ;; 14501 netbsd* | netbsdelf*-gnu) 14502 ;; 14503 *qnx* | *nto*) 14504 # QNX uses GNU C++, but need to define -shared option too, otherwise 14505 # it will coredump. 14506 lt_prog_compiler_pic_CXX='-fPIC -shared' 14507 ;; 14508 osf3* | osf4* | osf5*) 14509 case $cc_basename in 14510 KCC*) 14511 lt_prog_compiler_wl_CXX='--backend -Wl,' 14512 ;; 14513 RCC*) 14514 # Rational C++ 2.4.1 14515 lt_prog_compiler_pic_CXX='-pic' 14516 ;; 14517 cxx*) 14518 # Digital/Compaq C++ 14519 lt_prog_compiler_wl_CXX='-Wl,' 14520 # Make sure the PIC flag is empty. It appears that all Alpha 14521 # Linux and Compaq Tru64 Unix objects are PIC. 14522 lt_prog_compiler_pic_CXX= 14523 lt_prog_compiler_static_CXX='-non_shared' 14524 ;; 14525 *) 14526 ;; 14527 esac 14528 ;; 14529 psos*) 14530 ;; 14531 solaris*) 14532 case $cc_basename in 14533 CC* | sunCC*) 14534 # Sun C++ 4.2, 5.x and Centerline C++ 14535 lt_prog_compiler_pic_CXX='-KPIC' 14536 lt_prog_compiler_static_CXX='-Bstatic' 14537 lt_prog_compiler_wl_CXX='-Qoption ld ' 14538 ;; 14539 gcx*) 14540 # Green Hills C++ Compiler 14541 lt_prog_compiler_pic_CXX='-PIC' 14542 ;; 14543 *) 14544 ;; 14545 esac 14546 ;; 14547 sunos4*) 14548 case $cc_basename in 14549 CC*) 14550 # Sun C++ 4.x 14551 lt_prog_compiler_pic_CXX='-pic' 14552 lt_prog_compiler_static_CXX='-Bstatic' 14553 ;; 14554 lcc*) 14555 # Lucid 14556 lt_prog_compiler_pic_CXX='-pic' 14557 ;; 14558 *) 14559 ;; 14560 esac 14561 ;; 14562 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14563 case $cc_basename in 14564 CC*) 14565 lt_prog_compiler_wl_CXX='-Wl,' 14566 lt_prog_compiler_pic_CXX='-KPIC' 14567 lt_prog_compiler_static_CXX='-Bstatic' 14568 ;; 14569 esac 14570 ;; 14571 tandem*) 14572 case $cc_basename in 14573 NCC*) 14574 # NonStop-UX NCC 3.20 14575 lt_prog_compiler_pic_CXX='-KPIC' 14576 ;; 14577 *) 14578 ;; 14579 esac 14580 ;; 14581 vxworks*) 14582 ;; 14583 *) 14584 lt_prog_compiler_can_build_shared_CXX=no 14585 ;; 14586 esac 14587 fi 14588 14589 case $host_os in 14590 # For platforms that do not support PIC, -DPIC is meaningless: 14591 *djgpp*) 14592 lt_prog_compiler_pic_CXX= 14593 ;; 14594 *) 14595 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14596 ;; 14597 esac 14598 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14600 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14601 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14602 $as_echo_n "(cached) " >&6 14603 else 14604 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14605 fi 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14607 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14608 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14609 14610 # 14611 # Check to make sure the PIC flag actually works. 14612 # 14613 if test -n "$lt_prog_compiler_pic_CXX"; then 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14615 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14616 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14617 $as_echo_n "(cached) " >&6 14618 else 14619 lt_cv_prog_compiler_pic_works_CXX=no 14620 ac_outfile=conftest.$ac_objext 14621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14622 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14623 # Insert the option either (1) after the last *FLAGS variable, or 14624 # (2) before a word containing "conftest.", or (3) at the end. 14625 # Note that $ac_compile itself does not contain backslashes and begins 14626 # with a dollar sign (not a hyphen), so the echo should work correctly. 14627 # The option is referenced via a variable to avoid confusing sed. 14628 lt_compile=`echo "$ac_compile" | $SED \ 14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14631 -e 's:$: $lt_compiler_flag:'` 14632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14633 (eval "$lt_compile" 2>conftest.err) 14634 ac_status=$? 14635 cat conftest.err >&5 14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14637 if (exit $ac_status) && test -s "$ac_outfile"; then 14638 # The compiler can only warn and ignore the option if not recognized 14639 # So say no if there are warnings other than the usual output. 14640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14643 lt_cv_prog_compiler_pic_works_CXX=yes 14644 fi 14645 fi 14646 $RM conftest* 14647 14648 fi 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14650 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14651 14652 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14653 case $lt_prog_compiler_pic_CXX in 14654 "" | " "*) ;; 14655 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14656 esac 14657 else 14658 lt_prog_compiler_pic_CXX= 14659 lt_prog_compiler_can_build_shared_CXX=no 14660 fi 14661 14662 fi 14663 14664 14665 14666 14667 14668 # 14669 # Check to make sure the static flag actually works. 14670 # 14671 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14674 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14675 $as_echo_n "(cached) " >&6 14676 else 14677 lt_cv_prog_compiler_static_works_CXX=no 14678 save_LDFLAGS=$LDFLAGS 14679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14680 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14682 # The linker can only warn and ignore the option if not recognized 14683 # So say no if there are warnings 14684 if test -s conftest.err; then 14685 # Append any errors to the config.log. 14686 cat conftest.err 1>&5 14687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14689 if diff conftest.exp conftest.er2 >/dev/null; then 14690 lt_cv_prog_compiler_static_works_CXX=yes 14691 fi 14692 else 14693 lt_cv_prog_compiler_static_works_CXX=yes 14694 fi 14695 fi 14696 $RM -r conftest* 14697 LDFLAGS=$save_LDFLAGS 14698 14699 fi 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14701 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14702 14703 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14704 : 14705 else 14706 lt_prog_compiler_static_CXX= 14707 fi 14708 14709 14710 14711 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14714 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14715 $as_echo_n "(cached) " >&6 14716 else 14717 lt_cv_prog_compiler_c_o_CXX=no 14718 $RM -r conftest 2>/dev/null 14719 mkdir conftest 14720 cd conftest 14721 mkdir out 14722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14723 14724 lt_compiler_flag="-o out/conftest2.$ac_objext" 14725 # Insert the option either (1) after the last *FLAGS variable, or 14726 # (2) before a word containing "conftest.", or (3) at the end. 14727 # Note that $ac_compile itself does not contain backslashes and begins 14728 # with a dollar sign (not a hyphen), so the echo should work correctly. 14729 lt_compile=`echo "$ac_compile" | $SED \ 14730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14732 -e 's:$: $lt_compiler_flag:'` 14733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14734 (eval "$lt_compile" 2>out/conftest.err) 14735 ac_status=$? 14736 cat out/conftest.err >&5 14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14738 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14739 then 14740 # The compiler can only warn and ignore the option if not recognized 14741 # So say no if there are warnings 14742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14745 lt_cv_prog_compiler_c_o_CXX=yes 14746 fi 14747 fi 14748 chmod u+w . 2>&5 14749 $RM conftest* 14750 # SGI C++ compiler will create directory out/ii_files/ for 14751 # template instantiation 14752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14753 $RM out/* && rmdir out 14754 cd .. 14755 $RM -r conftest 14756 $RM conftest* 14757 14758 fi 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14760 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14761 14762 14763 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14766 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14767 $as_echo_n "(cached) " >&6 14768 else 14769 lt_cv_prog_compiler_c_o_CXX=no 14770 $RM -r conftest 2>/dev/null 14771 mkdir conftest 14772 cd conftest 14773 mkdir out 14774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14775 14776 lt_compiler_flag="-o out/conftest2.$ac_objext" 14777 # Insert the option either (1) after the last *FLAGS variable, or 14778 # (2) before a word containing "conftest.", or (3) at the end. 14779 # Note that $ac_compile itself does not contain backslashes and begins 14780 # with a dollar sign (not a hyphen), so the echo should work correctly. 14781 lt_compile=`echo "$ac_compile" | $SED \ 14782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14784 -e 's:$: $lt_compiler_flag:'` 14785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14786 (eval "$lt_compile" 2>out/conftest.err) 14787 ac_status=$? 14788 cat out/conftest.err >&5 14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14790 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14791 then 14792 # The compiler can only warn and ignore the option if not recognized 14793 # So say no if there are warnings 14794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14797 lt_cv_prog_compiler_c_o_CXX=yes 14798 fi 14799 fi 14800 chmod u+w . 2>&5 14801 $RM conftest* 14802 # SGI C++ compiler will create directory out/ii_files/ for 14803 # template instantiation 14804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14805 $RM out/* && rmdir out 14806 cd .. 14807 $RM -r conftest 14808 $RM conftest* 14809 14810 fi 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14812 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14813 14814 14815 14816 14817 hard_links=nottested 14818 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14819 # do not overwrite the value of need_locks provided by the user 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14821 $as_echo_n "checking if we can lock with hard links... " >&6; } 14822 hard_links=yes 14823 $RM conftest* 14824 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14825 touch conftest.a 14826 ln conftest.a conftest.b 2>&5 || hard_links=no 14827 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14829 $as_echo "$hard_links" >&6; } 14830 if test no = "$hard_links"; then 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14832 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14833 need_locks=warn 14834 fi 14835 else 14836 need_locks=no 14837 fi 14838 14839 14840 14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14843 14844 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14845 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14846 case $host_os in 14847 aix[4-9]*) 14848 # If we're using GNU nm, then we don't want the "-C" option. 14849 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14850 # Without the "-l" option, or with the "-B" option, AIX nm treats 14851 # weak defined symbols like other global defined symbols, whereas 14852 # GNU nm marks them as "W". 14853 # While the 'weak' keyword is ignored in the Export File, we need 14854 # it in the Import File for the 'aix-soname' feature, so we have 14855 # to replace the "-B" option with "-P" for AIX nm. 14856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14857 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' 14858 else 14859 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' 14860 fi 14861 ;; 14862 pw32*) 14863 export_symbols_cmds_CXX=$ltdll_cmds 14864 ;; 14865 cygwin* | mingw* | cegcc*) 14866 case $cc_basename in 14867 cl*) 14868 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14869 ;; 14870 *) 14871 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' 14872 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14873 ;; 14874 esac 14875 ;; 14876 linux* | k*bsd*-gnu | gnu*) 14877 link_all_deplibs_CXX=no 14878 ;; 14879 *) 14880 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14881 ;; 14882 esac 14883 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14885 $as_echo "$ld_shlibs_CXX" >&6; } 14886 test no = "$ld_shlibs_CXX" && can_build_shared=no 14887 14888 with_gnu_ld_CXX=$with_gnu_ld 14889 14890 14891 14892 14893 14894 14895 # 14896 # Do we need to explicitly link libc? 14897 # 14898 case "x$archive_cmds_need_lc_CXX" in 14899 x|xyes) 14900 # Assume -lc should be added 14901 archive_cmds_need_lc_CXX=yes 14902 14903 if test yes,yes = "$GCC,$enable_shared"; then 14904 case $archive_cmds_CXX in 14905 *'~'*) 14906 # FIXME: we may have to deal with multi-command sequences. 14907 ;; 14908 '$CC '*) 14909 # Test whether the compiler implicitly links with -lc since on some 14910 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14911 # to ld, don't add -lc before -lgcc. 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14913 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14914 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14915 $as_echo_n "(cached) " >&6 14916 else 14917 $RM conftest* 14918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14919 14920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14921 (eval $ac_compile) 2>&5 14922 ac_status=$? 14923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14924 test $ac_status = 0; } 2>conftest.err; then 14925 soname=conftest 14926 lib=conftest 14927 libobjs=conftest.$ac_objext 14928 deplibs= 14929 wl=$lt_prog_compiler_wl_CXX 14930 pic_flag=$lt_prog_compiler_pic_CXX 14931 compiler_flags=-v 14932 linker_flags=-v 14933 verstring= 14934 output_objdir=. 14935 libname=conftest 14936 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14937 allow_undefined_flag_CXX= 14938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14939 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14940 ac_status=$? 14941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14942 test $ac_status = 0; } 14943 then 14944 lt_cv_archive_cmds_need_lc_CXX=no 14945 else 14946 lt_cv_archive_cmds_need_lc_CXX=yes 14947 fi 14948 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14949 else 14950 cat conftest.err 1>&5 14951 fi 14952 $RM conftest* 14953 14954 fi 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14956 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14957 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14958 ;; 14959 esac 14960 fi 14961 ;; 14962 esac 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 15021 15022 15023 15024 15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15026 $as_echo_n "checking dynamic linker characteristics... " >&6; } 15027 15028 library_names_spec= 15029 libname_spec='lib$name' 15030 soname_spec= 15031 shrext_cmds=.so 15032 postinstall_cmds= 15033 postuninstall_cmds= 15034 finish_cmds= 15035 finish_eval= 15036 shlibpath_var= 15037 shlibpath_overrides_runpath=unknown 15038 version_type=none 15039 dynamic_linker="$host_os ld.so" 15040 sys_lib_dlsearch_path_spec="/lib /usr/lib" 15041 need_lib_prefix=unknown 15042 hardcode_into_libs=no 15043 15044 # when you set need_version to no, make sure it does not cause -set_version 15045 # flags to be left without arguments 15046 need_version=unknown 15047 15048 15049 15050 case $host_os in 15051 aix3*) 15052 version_type=linux # correct to gnu/linux during the next big refactor 15053 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15054 shlibpath_var=LIBPATH 15055 15056 # AIX 3 has no versioning support, so we append a major version to the name. 15057 soname_spec='$libname$release$shared_ext$major' 15058 ;; 15059 15060 aix[4-9]*) 15061 version_type=linux # correct to gnu/linux during the next big refactor 15062 need_lib_prefix=no 15063 need_version=no 15064 hardcode_into_libs=yes 15065 if test ia64 = "$host_cpu"; then 15066 # AIX 5 supports IA64 15067 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15068 shlibpath_var=LD_LIBRARY_PATH 15069 else 15070 # With GCC up to 2.95.x, collect2 would create an import file 15071 # for dependence libraries. The import file would start with 15072 # the line '#! .'. This would cause the generated library to 15073 # depend on '.', always an invalid library. This was fixed in 15074 # development snapshots of GCC prior to 3.0. 15075 case $host_os in 15076 aix4 | aix4.[01] | aix4.[01].*) 15077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15078 echo ' yes ' 15079 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15080 : 15081 else 15082 can_build_shared=no 15083 fi 15084 ;; 15085 esac 15086 # Using Import Files as archive members, it is possible to support 15087 # filename-based versioning of shared library archives on AIX. While 15088 # this would work for both with and without runtime linking, it will 15089 # prevent static linking of such archives. So we do filename-based 15090 # shared library versioning with .so extension only, which is used 15091 # when both runtime linking and shared linking is enabled. 15092 # Unfortunately, runtime linking may impact performance, so we do 15093 # not want this to be the default eventually. Also, we use the 15094 # versioned .so libs for executables only if there is the -brtl 15095 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15096 # To allow for filename-based versioning support, we need to create 15097 # libNAME.so.V as an archive file, containing: 15098 # *) an Import File, referring to the versioned filename of the 15099 # archive as well as the shared archive member, telling the 15100 # bitwidth (32 or 64) of that shared object, and providing the 15101 # list of exported symbols of that shared object, eventually 15102 # decorated with the 'weak' keyword 15103 # *) the shared object with the F_LOADONLY flag set, to really avoid 15104 # it being seen by the linker. 15105 # At run time we better use the real file rather than another symlink, 15106 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15107 15108 case $with_aix_soname,$aix_use_runtimelinking in 15109 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15110 # soname into executable. Probably we can add versioning support to 15111 # collect2, so additional links can be useful in future. 15112 aix,yes) # traditional libtool 15113 dynamic_linker='AIX unversionable lib.so' 15114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15115 # instead of lib<name>.a to let people know that these are not 15116 # typical AIX shared libraries. 15117 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15118 ;; 15119 aix,no) # traditional AIX only 15120 dynamic_linker='AIX lib.a(lib.so.V)' 15121 # We preserve .a as extension for shared libraries through AIX4.2 15122 # and later when we are not doing run time linking. 15123 library_names_spec='$libname$release.a $libname.a' 15124 soname_spec='$libname$release$shared_ext$major' 15125 ;; 15126 svr4,*) # full svr4 only 15127 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15128 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15129 # We do not specify a path in Import Files, so LIBPATH fires. 15130 shlibpath_overrides_runpath=yes 15131 ;; 15132 *,yes) # both, prefer svr4 15133 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15134 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15135 # unpreferred sharedlib libNAME.a needs extra handling 15136 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"' 15137 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"' 15138 # We do not specify a path in Import Files, so LIBPATH fires. 15139 shlibpath_overrides_runpath=yes 15140 ;; 15141 *,no) # both, prefer aix 15142 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15143 library_names_spec='$libname$release.a $libname.a' 15144 soname_spec='$libname$release$shared_ext$major' 15145 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15146 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)' 15147 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"' 15148 ;; 15149 esac 15150 shlibpath_var=LIBPATH 15151 fi 15152 ;; 15153 15154 amigaos*) 15155 case $host_cpu in 15156 powerpc) 15157 # Since July 2007 AmigaOS4 officially supports .so libraries. 15158 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15160 ;; 15161 m68k) 15162 library_names_spec='$libname.ixlibrary $libname.a' 15163 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15164 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' 15165 ;; 15166 esac 15167 ;; 15168 15169 beos*) 15170 library_names_spec='$libname$shared_ext' 15171 dynamic_linker="$host_os ld.so" 15172 shlibpath_var=LIBRARY_PATH 15173 ;; 15174 15175 bsdi[45]*) 15176 version_type=linux # correct to gnu/linux during the next big refactor 15177 need_version=no 15178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15179 soname_spec='$libname$release$shared_ext$major' 15180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15181 shlibpath_var=LD_LIBRARY_PATH 15182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15184 # the default ld.so.conf also contains /usr/contrib/lib and 15185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15186 # libtool to hard-code these into programs 15187 ;; 15188 15189 cygwin* | mingw* | pw32* | cegcc*) 15190 version_type=windows 15191 shrext_cmds=.dll 15192 need_version=no 15193 need_lib_prefix=no 15194 15195 case $GCC,$cc_basename in 15196 yes,*) 15197 # gcc 15198 library_names_spec='$libname.dll.a' 15199 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15200 postinstall_cmds='base_file=`basename \$file`~ 15201 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15202 dldir=$destdir/`dirname \$dlpath`~ 15203 test -d \$dldir || mkdir -p \$dldir~ 15204 $install_prog $dir/$dlname \$dldir/$dlname~ 15205 chmod a+x \$dldir/$dlname~ 15206 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15207 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15208 fi' 15209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15210 dlpath=$dir/\$dldll~ 15211 $RM \$dlpath' 15212 shlibpath_overrides_runpath=yes 15213 15214 case $host_os in 15215 cygwin*) 15216 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15217 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15218 15219 ;; 15220 mingw* | cegcc*) 15221 # MinGW DLLs use traditional 'lib' prefix 15222 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15223 ;; 15224 pw32*) 15225 # pw32 DLLs use 'pw' prefix rather than 'lib' 15226 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15227 ;; 15228 esac 15229 dynamic_linker='Win32 ld.exe' 15230 ;; 15231 15232 *,cl*) 15233 # Native MSVC 15234 libname_spec='$name' 15235 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15236 library_names_spec='$libname.dll.lib' 15237 15238 case $build_os in 15239 mingw*) 15240 sys_lib_search_path_spec= 15241 lt_save_ifs=$IFS 15242 IFS=';' 15243 for lt_path in $LIB 15244 do 15245 IFS=$lt_save_ifs 15246 # Let DOS variable expansion print the short 8.3 style file name. 15247 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15248 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15249 done 15250 IFS=$lt_save_ifs 15251 # Convert to MSYS style. 15252 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15253 ;; 15254 cygwin*) 15255 # Convert to unix form, then to dos form, then back to unix form 15256 # but this time dos style (no spaces!) so that the unix form looks 15257 # like /cygdrive/c/PROGRA~1:/cygdr... 15258 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15259 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15260 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15261 ;; 15262 *) 15263 sys_lib_search_path_spec=$LIB 15264 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15265 # It is most probably a Windows format PATH. 15266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15267 else 15268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15269 fi 15270 # FIXME: find the short name or the path components, as spaces are 15271 # common. (e.g. "Program Files" -> "PROGRA~1") 15272 ;; 15273 esac 15274 15275 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15276 postinstall_cmds='base_file=`basename \$file`~ 15277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15278 dldir=$destdir/`dirname \$dlpath`~ 15279 test -d \$dldir || mkdir -p \$dldir~ 15280 $install_prog $dir/$dlname \$dldir/$dlname' 15281 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15282 dlpath=$dir/\$dldll~ 15283 $RM \$dlpath' 15284 shlibpath_overrides_runpath=yes 15285 dynamic_linker='Win32 link.exe' 15286 ;; 15287 15288 *) 15289 # Assume MSVC wrapper 15290 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15291 dynamic_linker='Win32 ld.exe' 15292 ;; 15293 esac 15294 # FIXME: first we should search . and the directory the executable is in 15295 shlibpath_var=PATH 15296 ;; 15297 15298 darwin* | rhapsody*) 15299 dynamic_linker="$host_os dyld" 15300 version_type=darwin 15301 need_lib_prefix=no 15302 need_version=no 15303 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15304 soname_spec='$libname$release$major$shared_ext' 15305 shlibpath_overrides_runpath=yes 15306 shlibpath_var=DYLD_LIBRARY_PATH 15307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15308 15309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15310 ;; 15311 15312 dgux*) 15313 version_type=linux # correct to gnu/linux during the next big refactor 15314 need_lib_prefix=no 15315 need_version=no 15316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15317 soname_spec='$libname$release$shared_ext$major' 15318 shlibpath_var=LD_LIBRARY_PATH 15319 ;; 15320 15321 freebsd* | dragonfly*) 15322 # DragonFly does not have aout. When/if they implement a new 15323 # versioning mechanism, adjust this. 15324 if test -x /usr/bin/objformat; then 15325 objformat=`/usr/bin/objformat` 15326 else 15327 case $host_os in 15328 freebsd[23].*) objformat=aout ;; 15329 *) objformat=elf ;; 15330 esac 15331 fi 15332 version_type=freebsd-$objformat 15333 case $version_type in 15334 freebsd-elf*) 15335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15336 soname_spec='$libname$release$shared_ext$major' 15337 need_version=no 15338 need_lib_prefix=no 15339 ;; 15340 freebsd-*) 15341 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15342 need_version=yes 15343 ;; 15344 esac 15345 shlibpath_var=LD_LIBRARY_PATH 15346 case $host_os in 15347 freebsd2.*) 15348 shlibpath_overrides_runpath=yes 15349 ;; 15350 freebsd3.[01]* | freebsdelf3.[01]*) 15351 shlibpath_overrides_runpath=yes 15352 hardcode_into_libs=yes 15353 ;; 15354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15356 shlibpath_overrides_runpath=no 15357 hardcode_into_libs=yes 15358 ;; 15359 *) # from 4.6 on, and DragonFly 15360 shlibpath_overrides_runpath=yes 15361 hardcode_into_libs=yes 15362 ;; 15363 esac 15364 ;; 15365 15366 haiku*) 15367 version_type=linux # correct to gnu/linux during the next big refactor 15368 need_lib_prefix=no 15369 need_version=no 15370 dynamic_linker="$host_os runtime_loader" 15371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15372 soname_spec='$libname$release$shared_ext$major' 15373 shlibpath_var=LIBRARY_PATH 15374 shlibpath_overrides_runpath=no 15375 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15376 hardcode_into_libs=yes 15377 ;; 15378 15379 hpux9* | hpux10* | hpux11*) 15380 # Give a soname corresponding to the major version so that dld.sl refuses to 15381 # link against other versions. 15382 version_type=sunos 15383 need_lib_prefix=no 15384 need_version=no 15385 case $host_cpu in 15386 ia64*) 15387 shrext_cmds='.so' 15388 hardcode_into_libs=yes 15389 dynamic_linker="$host_os dld.so" 15390 shlibpath_var=LD_LIBRARY_PATH 15391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15393 soname_spec='$libname$release$shared_ext$major' 15394 if test 32 = "$HPUX_IA64_MODE"; then 15395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15396 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15397 else 15398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15399 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15400 fi 15401 ;; 15402 hppa*64*) 15403 shrext_cmds='.sl' 15404 hardcode_into_libs=yes 15405 dynamic_linker="$host_os dld.sl" 15406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15409 soname_spec='$libname$release$shared_ext$major' 15410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15412 ;; 15413 *) 15414 shrext_cmds='.sl' 15415 dynamic_linker="$host_os dld.sl" 15416 shlibpath_var=SHLIB_PATH 15417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15419 soname_spec='$libname$release$shared_ext$major' 15420 ;; 15421 esac 15422 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15423 postinstall_cmds='chmod 555 $lib' 15424 # or fails outright, so override atomically: 15425 install_override_mode=555 15426 ;; 15427 15428 interix[3-9]*) 15429 version_type=linux # correct to gnu/linux during the next big refactor 15430 need_lib_prefix=no 15431 need_version=no 15432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15433 soname_spec='$libname$release$shared_ext$major' 15434 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15435 shlibpath_var=LD_LIBRARY_PATH 15436 shlibpath_overrides_runpath=no 15437 hardcode_into_libs=yes 15438 ;; 15439 15440 irix5* | irix6* | nonstopux*) 15441 case $host_os in 15442 nonstopux*) version_type=nonstopux ;; 15443 *) 15444 if test yes = "$lt_cv_prog_gnu_ld"; then 15445 version_type=linux # correct to gnu/linux during the next big refactor 15446 else 15447 version_type=irix 15448 fi ;; 15449 esac 15450 need_lib_prefix=no 15451 need_version=no 15452 soname_spec='$libname$release$shared_ext$major' 15453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15454 case $host_os in 15455 irix5* | nonstopux*) 15456 libsuff= shlibsuff= 15457 ;; 15458 *) 15459 case $LD in # libtool.m4 will add one of these switches to LD 15460 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15461 libsuff= shlibsuff= libmagic=32-bit;; 15462 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15463 libsuff=32 shlibsuff=N32 libmagic=N32;; 15464 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15465 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15466 *) libsuff= shlibsuff= libmagic=never-match;; 15467 esac 15468 ;; 15469 esac 15470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15471 shlibpath_overrides_runpath=no 15472 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15473 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15474 hardcode_into_libs=yes 15475 ;; 15476 15477 # No shared lib support for Linux oldld, aout, or coff. 15478 linux*oldld* | linux*aout* | linux*coff*) 15479 dynamic_linker=no 15480 ;; 15481 15482 linux*android*) 15483 version_type=none # Android doesn't support versioned libraries. 15484 need_lib_prefix=no 15485 need_version=no 15486 library_names_spec='$libname$release$shared_ext' 15487 soname_spec='$libname$release$shared_ext' 15488 finish_cmds= 15489 shlibpath_var=LD_LIBRARY_PATH 15490 shlibpath_overrides_runpath=yes 15491 15492 # This implies no fast_install, which is unacceptable. 15493 # Some rework will be needed to allow for fast_install 15494 # before this can be enabled. 15495 hardcode_into_libs=yes 15496 15497 dynamic_linker='Android linker' 15498 # Don't embed -rpath directories since the linker doesn't support them. 15499 hardcode_libdir_flag_spec_CXX='-L$libdir' 15500 ;; 15501 15502 # This must be glibc/ELF. 15503 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15504 version_type=linux # correct to gnu/linux during the next big refactor 15505 need_lib_prefix=no 15506 need_version=no 15507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15508 soname_spec='$libname$release$shared_ext$major' 15509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15510 shlibpath_var=LD_LIBRARY_PATH 15511 shlibpath_overrides_runpath=no 15512 15513 # Some binutils ld are patched to set DT_RUNPATH 15514 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15515 $as_echo_n "(cached) " >&6 15516 else 15517 lt_cv_shlibpath_overrides_runpath=no 15518 save_LDFLAGS=$LDFLAGS 15519 save_libdir=$libdir 15520 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15521 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15523 /* end confdefs.h. */ 15524 15525 int 15526 main () 15527 { 15528 15529 ; 15530 return 0; 15531 } 15532 _ACEOF 15533 if ac_fn_cxx_try_link "$LINENO"; then : 15534 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15535 lt_cv_shlibpath_overrides_runpath=yes 15536 fi 15537 fi 15538 rm -f core conftest.err conftest.$ac_objext \ 15539 conftest$ac_exeext conftest.$ac_ext 15540 LDFLAGS=$save_LDFLAGS 15541 libdir=$save_libdir 15542 15543 fi 15544 15545 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15546 15547 # This implies no fast_install, which is unacceptable. 15548 # Some rework will be needed to allow for fast_install 15549 # before this can be enabled. 15550 hardcode_into_libs=yes 15551 15552 # Ideally, we could use ldconfig to report *all* directores which are 15553 # searched for libraries, however this is still not possible. Aside from not 15554 # being certain /sbin/ldconfig is available, command 15555 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15556 # even though it is searched at run-time. Try to do the best guess by 15557 # appending ld.so.conf contents (and includes) to the search path. 15558 if test -f /etc/ld.so.conf; then 15559 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' ' '` 15560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15561 fi 15562 15563 # We used to test for /lib/ld.so.1 and disable shared libraries on 15564 # powerpc, because MkLinux only supported shared libraries with the 15565 # GNU dynamic linker. Since this was broken with cross compilers, 15566 # most powerpc-linux boxes support dynamic linking these days and 15567 # people can always --disable-shared, the test was removed, and we 15568 # assume the GNU/Linux dynamic linker is in use. 15569 dynamic_linker='GNU/Linux ld.so' 15570 ;; 15571 15572 netbsdelf*-gnu) 15573 version_type=linux 15574 need_lib_prefix=no 15575 need_version=no 15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15577 soname_spec='${libname}${release}${shared_ext}$major' 15578 shlibpath_var=LD_LIBRARY_PATH 15579 shlibpath_overrides_runpath=no 15580 hardcode_into_libs=yes 15581 dynamic_linker='NetBSD ld.elf_so' 15582 ;; 15583 15584 netbsd*) 15585 version_type=sunos 15586 need_lib_prefix=no 15587 need_version=no 15588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15589 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15590 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15591 dynamic_linker='NetBSD (a.out) ld.so' 15592 else 15593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15594 soname_spec='$libname$release$shared_ext$major' 15595 dynamic_linker='NetBSD ld.elf_so' 15596 fi 15597 shlibpath_var=LD_LIBRARY_PATH 15598 shlibpath_overrides_runpath=yes 15599 hardcode_into_libs=yes 15600 ;; 15601 15602 newsos6) 15603 version_type=linux # correct to gnu/linux during the next big refactor 15604 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15605 shlibpath_var=LD_LIBRARY_PATH 15606 shlibpath_overrides_runpath=yes 15607 ;; 15608 15609 *nto* | *qnx*) 15610 version_type=qnx 15611 need_lib_prefix=no 15612 need_version=no 15613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15614 soname_spec='$libname$release$shared_ext$major' 15615 shlibpath_var=LD_LIBRARY_PATH 15616 shlibpath_overrides_runpath=no 15617 hardcode_into_libs=yes 15618 dynamic_linker='ldqnx.so' 15619 ;; 15620 15621 openbsd* | bitrig*) 15622 version_type=sunos 15623 sys_lib_dlsearch_path_spec=/usr/lib 15624 need_lib_prefix=no 15625 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15626 need_version=no 15627 else 15628 need_version=yes 15629 fi 15630 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15631 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15632 shlibpath_var=LD_LIBRARY_PATH 15633 shlibpath_overrides_runpath=yes 15634 ;; 15635 15636 os2*) 15637 libname_spec='$name' 15638 version_type=windows 15639 shrext_cmds=.dll 15640 need_version=no 15641 need_lib_prefix=no 15642 # OS/2 can only load a DLL with a base name of 8 characters or less. 15643 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15644 v=$($ECHO $release$versuffix | tr -d .-); 15645 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15646 $ECHO $n$v`$shared_ext' 15647 library_names_spec='${libname}_dll.$libext' 15648 dynamic_linker='OS/2 ld.exe' 15649 shlibpath_var=BEGINLIBPATH 15650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15652 postinstall_cmds='base_file=`basename \$file`~ 15653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15654 dldir=$destdir/`dirname \$dlpath`~ 15655 test -d \$dldir || mkdir -p \$dldir~ 15656 $install_prog $dir/$dlname \$dldir/$dlname~ 15657 chmod a+x \$dldir/$dlname~ 15658 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15659 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15660 fi' 15661 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15662 dlpath=$dir/\$dldll~ 15663 $RM \$dlpath' 15664 ;; 15665 15666 osf3* | osf4* | osf5*) 15667 version_type=osf 15668 need_lib_prefix=no 15669 need_version=no 15670 soname_spec='$libname$release$shared_ext$major' 15671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15672 shlibpath_var=LD_LIBRARY_PATH 15673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15675 ;; 15676 15677 rdos*) 15678 dynamic_linker=no 15679 ;; 15680 15681 solaris*) 15682 version_type=linux # correct to gnu/linux during the next big refactor 15683 need_lib_prefix=no 15684 need_version=no 15685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15686 soname_spec='$libname$release$shared_ext$major' 15687 shlibpath_var=LD_LIBRARY_PATH 15688 shlibpath_overrides_runpath=yes 15689 hardcode_into_libs=yes 15690 # ldd complains unless libraries are executable 15691 postinstall_cmds='chmod +x $lib' 15692 ;; 15693 15694 sunos4*) 15695 version_type=sunos 15696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15697 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15698 shlibpath_var=LD_LIBRARY_PATH 15699 shlibpath_overrides_runpath=yes 15700 if test yes = "$with_gnu_ld"; then 15701 need_lib_prefix=no 15702 fi 15703 need_version=yes 15704 ;; 15705 15706 sysv4 | sysv4.3*) 15707 version_type=linux # correct to gnu/linux during the next big refactor 15708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15709 soname_spec='$libname$release$shared_ext$major' 15710 shlibpath_var=LD_LIBRARY_PATH 15711 case $host_vendor in 15712 sni) 15713 shlibpath_overrides_runpath=no 15714 need_lib_prefix=no 15715 runpath_var=LD_RUN_PATH 15716 ;; 15717 siemens) 15718 need_lib_prefix=no 15719 ;; 15720 motorola) 15721 need_lib_prefix=no 15722 need_version=no 15723 shlibpath_overrides_runpath=no 15724 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15725 ;; 15726 esac 15727 ;; 15728 15729 sysv4*MP*) 15730 if test -d /usr/nec; then 15731 version_type=linux # correct to gnu/linux during the next big refactor 15732 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15733 soname_spec='$libname$shared_ext.$major' 15734 shlibpath_var=LD_LIBRARY_PATH 15735 fi 15736 ;; 15737 15738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15739 version_type=sco 15740 need_lib_prefix=no 15741 need_version=no 15742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15743 soname_spec='$libname$release$shared_ext$major' 15744 shlibpath_var=LD_LIBRARY_PATH 15745 shlibpath_overrides_runpath=yes 15746 hardcode_into_libs=yes 15747 if test yes = "$with_gnu_ld"; then 15748 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15749 else 15750 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15751 case $host_os in 15752 sco3.2v5*) 15753 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15754 ;; 15755 esac 15756 fi 15757 sys_lib_dlsearch_path_spec='/usr/lib' 15758 ;; 15759 15760 tpf*) 15761 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15762 version_type=linux # correct to gnu/linux during the next big refactor 15763 need_lib_prefix=no 15764 need_version=no 15765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15766 shlibpath_var=LD_LIBRARY_PATH 15767 shlibpath_overrides_runpath=no 15768 hardcode_into_libs=yes 15769 ;; 15770 15771 uts4*) 15772 version_type=linux # correct to gnu/linux during the next big refactor 15773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15774 soname_spec='$libname$release$shared_ext$major' 15775 shlibpath_var=LD_LIBRARY_PATH 15776 ;; 15777 15778 *) 15779 dynamic_linker=no 15780 ;; 15781 esac 15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15783 $as_echo "$dynamic_linker" >&6; } 15784 test no = "$dynamic_linker" && can_build_shared=no 15785 15786 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15787 if test yes = "$GCC"; then 15788 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15789 fi 15790 15791 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15792 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15793 fi 15794 15795 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15796 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15797 fi 15798 15799 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15800 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15801 15802 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15803 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15804 15805 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15806 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 15843 15844 15845 15846 15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15848 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15849 hardcode_action_CXX= 15850 if test -n "$hardcode_libdir_flag_spec_CXX" || 15851 test -n "$runpath_var_CXX" || 15852 test yes = "$hardcode_automatic_CXX"; then 15853 15854 # We can hardcode non-existent directories. 15855 if test no != "$hardcode_direct_CXX" && 15856 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15857 # have to relink, otherwise we might link with an installed library 15858 # when we should be linking with a yet-to-be-installed one 15859 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 15860 test no != "$hardcode_minus_L_CXX"; then 15861 # Linking always hardcodes the temporary library directory. 15862 hardcode_action_CXX=relink 15863 else 15864 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15865 hardcode_action_CXX=immediate 15866 fi 15867 else 15868 # We cannot hardcode anything, or else we can only hardcode existing 15869 # directories. 15870 hardcode_action_CXX=unsupported 15871 fi 15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15873 $as_echo "$hardcode_action_CXX" >&6; } 15874 15875 if test relink = "$hardcode_action_CXX" || 15876 test yes = "$inherit_rpath_CXX"; then 15877 # Fast installation is not supported 15878 enable_fast_install=no 15879 elif test yes = "$shlibpath_overrides_runpath" || 15880 test no = "$enable_shared"; then 15881 # Fast installation is not necessary 15882 enable_fast_install=needless 15883 fi 15884 15885 15886 15887 15888 15889 15890 15891 fi # test -n "$compiler" 15892 15893 CC=$lt_save_CC 15894 CFLAGS=$lt_save_CFLAGS 15895 LDCXX=$LD 15896 LD=$lt_save_LD 15897 GCC=$lt_save_GCC 15898 with_gnu_ld=$lt_save_with_gnu_ld 15899 lt_cv_path_LDCXX=$lt_cv_path_LD 15900 lt_cv_path_LD=$lt_save_path_LD 15901 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15902 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15903 fi # test yes != "$_lt_caught_CXX_error" 15904 15905 ac_ext=c 15906 ac_cpp='$CPP $CPPFLAGS' 15907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15909 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15910 15911 3348 15912 ac_ext=c 3349 15913 ac_cpp='$CPP $CPPFLAGS' … … 4237 16801 fi 4238 16802 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 16803 4332 16804 ac_config_files="$ac_config_files Makefile src/Makefile prelude/Makefile" … … 4502 16974 Usually this means the macro was only invoked conditionally." "$LINENO" 5 4503 16975 fi 16976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16977 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16978 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16979 fi 4504 16980 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 4505 16981 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. … … 5078 17554 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5079 17555 17556 17557 # The HP-UX ksh and POSIX shell print the target directory to stdout 17558 # if CDPATH is set. 17559 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17560 17561 sed_quote_subst='$sed_quote_subst' 17562 double_quote_subst='$double_quote_subst' 17563 delay_variable_subst='$delay_variable_subst' 17564 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17565 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17566 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17567 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17568 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17569 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17570 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17571 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17572 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17573 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17574 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17575 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17576 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17577 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17578 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17579 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17580 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17581 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17582 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17583 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17584 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17585 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17586 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17587 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17588 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17589 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17590 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17591 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17592 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17593 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17594 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17595 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17596 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17597 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17598 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17599 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17600 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17601 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17602 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17603 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17604 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17605 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17606 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17607 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17608 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17609 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17610 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17611 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17612 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17613 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17614 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17615 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17616 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17617 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17618 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17619 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17620 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17621 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17622 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"`' 17623 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17624 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17625 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17626 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17627 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17628 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17629 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17630 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17631 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17632 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17633 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17634 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17635 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17636 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17637 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17638 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17639 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17640 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17641 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17642 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17643 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17644 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17645 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17646 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17647 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17648 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17649 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17650 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17651 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17652 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17653 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17654 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17655 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17656 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17657 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17658 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17659 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17660 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17661 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17662 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17663 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17664 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17665 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17666 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17667 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17668 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17669 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17670 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17671 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17672 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17673 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17674 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17675 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17676 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17677 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17678 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17679 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17680 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17681 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17682 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17683 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17684 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17685 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17686 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17687 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17688 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17689 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17690 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17691 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17692 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17693 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17694 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17695 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17696 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17697 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17698 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17699 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17700 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17701 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17702 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17703 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17704 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17705 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17706 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17707 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17708 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17709 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17710 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17711 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17712 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17713 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17714 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17715 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17716 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17717 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17718 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17719 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17720 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17721 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17722 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17723 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17724 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17725 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17726 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17727 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17728 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17729 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17730 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17731 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17732 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17733 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17734 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17735 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17736 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17737 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17738 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17739 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17740 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17741 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17742 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17743 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17744 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17745 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17746 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17747 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17748 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17749 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17750 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17751 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17752 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17753 17754 LTCC='$LTCC' 17755 LTCFLAGS='$LTCFLAGS' 17756 compiler='$compiler_DEFAULT' 17757 17758 # A function that is used when there is no print builtin or printf. 17759 func_fallback_echo () 17760 { 17761 eval 'cat <<_LTECHO_EOF 17762 \$1 17763 _LTECHO_EOF' 17764 } 17765 17766 # Quote evaled strings. 17767 for var in SHELL \ 17768 ECHO \ 17769 PATH_SEPARATOR \ 17770 SED \ 17771 GREP \ 17772 EGREP \ 17773 FGREP \ 17774 LD \ 17775 NM \ 17776 LN_S \ 17777 lt_SP2NL \ 17778 lt_NL2SP \ 17779 reload_flag \ 17780 OBJDUMP \ 17781 deplibs_check_method \ 17782 file_magic_cmd \ 17783 file_magic_glob \ 17784 want_nocaseglob \ 17785 DLLTOOL \ 17786 sharedlib_from_linklib_cmd \ 17787 AR \ 17788 AR_FLAGS \ 17789 archiver_list_spec \ 17790 STRIP \ 17791 RANLIB \ 17792 CC \ 17793 CFLAGS \ 17794 compiler \ 17795 lt_cv_sys_global_symbol_pipe \ 17796 lt_cv_sys_global_symbol_to_cdecl \ 17797 lt_cv_sys_global_symbol_to_import \ 17798 lt_cv_sys_global_symbol_to_c_name_address \ 17799 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17800 lt_cv_nm_interface \ 17801 nm_file_list_spec \ 17802 lt_cv_truncate_bin \ 17803 lt_prog_compiler_no_builtin_flag \ 17804 lt_prog_compiler_pic \ 17805 lt_prog_compiler_wl \ 17806 lt_prog_compiler_static \ 17807 lt_cv_prog_compiler_c_o \ 17808 need_locks \ 17809 MANIFEST_TOOL \ 17810 DSYMUTIL \ 17811 NMEDIT \ 17812 LIPO \ 17813 OTOOL \ 17814 OTOOL64 \ 17815 shrext_cmds \ 17816 export_dynamic_flag_spec \ 17817 whole_archive_flag_spec \ 17818 compiler_needs_object \ 17819 with_gnu_ld \ 17820 allow_undefined_flag \ 17821 no_undefined_flag \ 17822 hardcode_libdir_flag_spec \ 17823 hardcode_libdir_separator \ 17824 exclude_expsyms \ 17825 include_expsyms \ 17826 file_list_spec \ 17827 variables_saved_for_relink \ 17828 libname_spec \ 17829 library_names_spec \ 17830 soname_spec \ 17831 install_override_mode \ 17832 finish_eval \ 17833 old_striplib \ 17834 striplib \ 17835 compiler_lib_search_dirs \ 17836 predep_objects \ 17837 postdep_objects \ 17838 predeps \ 17839 postdeps \ 17840 compiler_lib_search_path \ 17841 LD_CXX \ 17842 reload_flag_CXX \ 17843 compiler_CXX \ 17844 lt_prog_compiler_no_builtin_flag_CXX \ 17845 lt_prog_compiler_pic_CXX \ 17846 lt_prog_compiler_wl_CXX \ 17847 lt_prog_compiler_static_CXX \ 17848 lt_cv_prog_compiler_c_o_CXX \ 17849 export_dynamic_flag_spec_CXX \ 17850 whole_archive_flag_spec_CXX \ 17851 compiler_needs_object_CXX \ 17852 with_gnu_ld_CXX \ 17853 allow_undefined_flag_CXX \ 17854 no_undefined_flag_CXX \ 17855 hardcode_libdir_flag_spec_CXX \ 17856 hardcode_libdir_separator_CXX \ 17857 exclude_expsyms_CXX \ 17858 include_expsyms_CXX \ 17859 file_list_spec_CXX \ 17860 compiler_lib_search_dirs_CXX \ 17861 predep_objects_CXX \ 17862 postdep_objects_CXX \ 17863 predeps_CXX \ 17864 postdeps_CXX \ 17865 compiler_lib_search_path_CXX; do 17866 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17867 *[\\\\\\\`\\"\\\$]*) 17868 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17869 ;; 17870 *) 17871 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17872 ;; 17873 esac 17874 done 17875 17876 # Double-quote double-evaled strings. 17877 for var in reload_cmds \ 17878 old_postinstall_cmds \ 17879 old_postuninstall_cmds \ 17880 old_archive_cmds \ 17881 extract_expsyms_cmds \ 17882 old_archive_from_new_cmds \ 17883 old_archive_from_expsyms_cmds \ 17884 archive_cmds \ 17885 archive_expsym_cmds \ 17886 module_cmds \ 17887 module_expsym_cmds \ 17888 export_symbols_cmds \ 17889 prelink_cmds \ 17890 postlink_cmds \ 17891 postinstall_cmds \ 17892 postuninstall_cmds \ 17893 finish_cmds \ 17894 sys_lib_search_path_spec \ 17895 configure_time_dlsearch_path \ 17896 configure_time_lt_sys_library_path \ 17897 reload_cmds_CXX \ 17898 old_archive_cmds_CXX \ 17899 old_archive_from_new_cmds_CXX \ 17900 old_archive_from_expsyms_cmds_CXX \ 17901 archive_cmds_CXX \ 17902 archive_expsym_cmds_CXX \ 17903 module_cmds_CXX \ 17904 module_expsym_cmds_CXX \ 17905 export_symbols_cmds_CXX \ 17906 prelink_cmds_CXX \ 17907 postlink_cmds_CXX; do 17908 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17909 *[\\\\\\\`\\"\\\$]*) 17910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17911 ;; 17912 *) 17913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17914 ;; 17915 esac 17916 done 17917 17918 ac_aux_dir='$ac_aux_dir' 17919 17920 # See if we are running on zsh, and set the options that allow our 17921 # commands through without removal of \ escapes INIT. 17922 if test -n "\${ZSH_VERSION+set}"; then 17923 setopt NO_GLOB_SUBST 17924 fi 17925 17926 17927 PACKAGE='$PACKAGE' 17928 VERSION='$VERSION' 17929 RM='$RM' 17930 ofile='$ofile' 17931 17932 17933 17934 17935 17936 5080 17937 _ACEOF 5081 17938 … … 5087 17944 case $ac_config_target in 5088 17945 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17946 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 5089 17947 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5090 17948 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; … … 5612 18470 } 5613 18471 ;; 18472 "libtool":C) 18473 18474 # See if we are running on zsh, and set the options that allow our 18475 # commands through without removal of \ escapes. 18476 if test -n "${ZSH_VERSION+set}"; then 18477 setopt NO_GLOB_SUBST 18478 fi 18479 18480 cfgfile=${ofile}T 18481 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18482 $RM "$cfgfile" 18483 18484 cat <<_LT_EOF >> "$cfgfile" 18485 #! $SHELL 18486 # Generated automatically by $as_me ($PACKAGE) $VERSION 18487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18488 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18489 18490 # Provide generalized library-building support services. 18491 # Written by Gordon Matzigkeit, 1996 18492 18493 # Copyright (C) 2014 Free Software Foundation, Inc. 18494 # This is free software; see the source for copying conditions. There is NO 18495 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18496 18497 # GNU Libtool is free software; you can redistribute it and/or modify 18498 # it under the terms of the GNU General Public License as published by 18499 # the Free Software Foundation; either version 2 of of the License, or 18500 # (at your option) any later version. 18501 # 18502 # As a special exception to the GNU General Public License, if you 18503 # distribute this file as part of a program or library that is built 18504 # using GNU Libtool, you may include this file under the same 18505 # distribution terms that you use for the rest of that program. 18506 # 18507 # GNU Libtool is distributed in the hope that it will be useful, but 18508 # WITHOUT ANY WARRANTY; without even the implied warranty of 18509 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18510 # GNU General Public License for more details. 18511 # 18512 # You should have received a copy of the GNU General Public License 18513 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18514 18515 18516 # The names of the tagged configurations supported by this script. 18517 available_tags='CXX ' 18518 18519 # Configured defaults for sys_lib_dlsearch_path munging. 18520 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18521 18522 # ### BEGIN LIBTOOL CONFIG 18523 18524 # Which release of libtool.m4 was used? 18525 macro_version=$macro_version 18526 macro_revision=$macro_revision 18527 18528 # Whether or not to build shared libraries. 18529 build_libtool_libs=$enable_shared 18530 18531 # Whether or not to build static libraries. 18532 build_old_libs=$enable_static 18533 18534 # What type of objects to build. 18535 pic_mode=$pic_mode 18536 18537 # Whether or not to optimize for fast installation. 18538 fast_install=$enable_fast_install 18539 18540 # Shared archive member basename,for filename based shared library versioning on AIX. 18541 shared_archive_member_spec=$shared_archive_member_spec 18542 18543 # Shell to use when invoking shell scripts. 18544 SHELL=$lt_SHELL 18545 18546 # An echo program that protects backslashes. 18547 ECHO=$lt_ECHO 18548 18549 # The PATH separator for the build system. 18550 PATH_SEPARATOR=$lt_PATH_SEPARATOR 18551 18552 # The host system. 18553 host_alias=$host_alias 18554 host=$host 18555 host_os=$host_os 18556 18557 # The build system. 18558 build_alias=$build_alias 18559 build=$build 18560 build_os=$build_os 18561 18562 # A sed program that does not truncate output. 18563 SED=$lt_SED 18564 18565 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 18566 Xsed="\$SED -e 1s/^X//" 18567 18568 # A grep program that handles long lines. 18569 GREP=$lt_GREP 18570 18571 # An ERE matcher. 18572 EGREP=$lt_EGREP 18573 18574 # A literal string matcher. 18575 FGREP=$lt_FGREP 18576 18577 # A BSD- or MS-compatible name lister. 18578 NM=$lt_NM 18579 18580 # Whether we need soft or hard links. 18581 LN_S=$lt_LN_S 18582 18583 # What is the maximum length of a command? 18584 max_cmd_len=$max_cmd_len 18585 18586 # Object file suffix (normally "o"). 18587 objext=$ac_objext 18588 18589 # Executable file suffix (normally ""). 18590 exeext=$exeext 18591 18592 # whether the shell understands "unset". 18593 lt_unset=$lt_unset 18594 18595 # turn spaces into newlines. 18596 SP2NL=$lt_lt_SP2NL 18597 18598 # turn newlines into spaces. 18599 NL2SP=$lt_lt_NL2SP 18600 18601 # convert \$build file names to \$host format. 18602 to_host_file_cmd=$lt_cv_to_host_file_cmd 18603 18604 # convert \$build files to toolchain format. 18605 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18606 18607 # An object symbol dumper. 18608 OBJDUMP=$lt_OBJDUMP 18609 18610 # Method to check whether dependent libraries are shared objects. 18611 deplibs_check_method=$lt_deplibs_check_method 18612 18613 # Command to use when deplibs_check_method = "file_magic". 18614 file_magic_cmd=$lt_file_magic_cmd 18615 18616 # How to find potential files when deplibs_check_method = "file_magic". 18617 file_magic_glob=$lt_file_magic_glob 18618 18619 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18620 want_nocaseglob=$lt_want_nocaseglob 18621 18622 # DLL creation program. 18623 DLLTOOL=$lt_DLLTOOL 18624 18625 # Command to associate shared and link libraries. 18626 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18627 18628 # The archiver. 18629 AR=$lt_AR 18630 18631 # Flags to create an archive. 18632 AR_FLAGS=$lt_AR_FLAGS 18633 18634 # How to feed a file listing to the archiver. 18635 archiver_list_spec=$lt_archiver_list_spec 18636 18637 # A symbol stripping program. 18638 STRIP=$lt_STRIP 18639 18640 # Commands used to install an old-style archive. 18641 RANLIB=$lt_RANLIB 18642 old_postinstall_cmds=$lt_old_postinstall_cmds 18643 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18644 18645 # Whether to use a lock for old archive extraction. 18646 lock_old_archive_extraction=$lock_old_archive_extraction 18647 18648 # A C compiler. 18649 LTCC=$lt_CC 18650 18651 # LTCC compiler flags. 18652 LTCFLAGS=$lt_CFLAGS 18653 18654 # Take the output of nm and produce a listing of raw symbols and C names. 18655 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18656 18657 # Transform the output of nm in a proper C declaration. 18658 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18659 18660 # Transform the output of nm into a list of symbols to manually relocate. 18661 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18662 18663 # Transform the output of nm in a C name address pair. 18664 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18665 18666 # Transform the output of nm in a C name address pair when lib prefix is needed. 18667 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18668 18669 # The name lister interface. 18670 nm_interface=$lt_lt_cv_nm_interface 18671 18672 # Specify filename containing input files for \$NM. 18673 nm_file_list_spec=$lt_nm_file_list_spec 18674 18675 # The root where to search for dependent libraries,and where our libraries should be installed. 18676 lt_sysroot=$lt_sysroot 18677 18678 # Command to truncate a binary pipe. 18679 lt_truncate_bin=$lt_lt_cv_truncate_bin 18680 18681 # The name of the directory that contains temporary libtool files. 18682 objdir=$objdir 18683 18684 # Used to examine libraries when file_magic_cmd begins with "file". 18685 MAGIC_CMD=$MAGIC_CMD 18686 18687 # Must we lock files when doing compilation? 18688 need_locks=$lt_need_locks 18689 18690 # Manifest tool. 18691 MANIFEST_TOOL=$lt_MANIFEST_TOOL 18692 18693 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18694 DSYMUTIL=$lt_DSYMUTIL 18695 18696 # Tool to change global to local symbols on Mac OS X. 18697 NMEDIT=$lt_NMEDIT 18698 18699 # Tool to manipulate fat objects and archives on Mac OS X. 18700 LIPO=$lt_LIPO 18701 18702 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 18703 OTOOL=$lt_OTOOL 18704 18705 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18706 OTOOL64=$lt_OTOOL64 18707 18708 # Old archive suffix (normally "a"). 18709 libext=$libext 18710 18711 # Shared library suffix (normally ".so"). 18712 shrext_cmds=$lt_shrext_cmds 18713 18714 # The commands to extract the exported symbol list from a shared archive. 18715 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18716 18717 # Variables whose values should be saved in libtool wrapper scripts and 18718 # restored at link time. 18719 variables_saved_for_relink=$lt_variables_saved_for_relink 18720 18721 # Do we need the "lib" prefix for modules? 18722 need_lib_prefix=$need_lib_prefix 18723 18724 # Do we need a version for libraries? 18725 need_version=$need_version 18726 18727 # Library versioning type. 18728 version_type=$version_type 18729 18730 # Shared library runtime path variable. 18731 runpath_var=$runpath_var 18732 18733 # Shared library path variable. 18734 shlibpath_var=$shlibpath_var 18735 18736 # Is shlibpath searched before the hard-coded library search path? 18737 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18738 18739 # Format of library name prefix. 18740 libname_spec=$lt_libname_spec 18741 18742 # List of archive names. First name is the real one, the rest are links. 18743 # The last name is the one that the linker finds with -lNAME 18744 library_names_spec=$lt_library_names_spec 18745 18746 # The coded name of the library, if different from the real name. 18747 soname_spec=$lt_soname_spec 18748 18749 # Permission mode override for installation of shared libraries. 18750 install_override_mode=$lt_install_override_mode 18751 18752 # Command to use after installation of a shared archive. 18753 postinstall_cmds=$lt_postinstall_cmds 18754 18755 # Command to use after uninstallation of a shared archive. 18756 postuninstall_cmds=$lt_postuninstall_cmds 18757 18758 # Commands used to finish a libtool library installation in a directory. 18759 finish_cmds=$lt_finish_cmds 18760 18761 # As "finish_cmds", except a single script fragment to be evaled but 18762 # not shown. 18763 finish_eval=$lt_finish_eval 18764 18765 # Whether we should hardcode library paths into libraries. 18766 hardcode_into_libs=$hardcode_into_libs 18767 18768 # Compile-time system search path for libraries. 18769 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18770 18771 # Detected run-time system search path for libraries. 18772 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18773 18774 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18775 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18776 18777 # Whether dlopen is supported. 18778 dlopen_support=$enable_dlopen 18779 18780 # Whether dlopen of programs is supported. 18781 dlopen_self=$enable_dlopen_self 18782 18783 # Whether dlopen of statically linked programs is supported. 18784 dlopen_self_static=$enable_dlopen_self_static 18785 18786 # Commands to strip libraries. 18787 old_striplib=$lt_old_striplib 18788 striplib=$lt_striplib 18789 18790 18791 # The linker used to build libraries. 18792 LD=$lt_LD 18793 18794 # How to create reloadable object files. 18795 reload_flag=$lt_reload_flag 18796 reload_cmds=$lt_reload_cmds 18797 18798 # Commands used to build an old-style archive. 18799 old_archive_cmds=$lt_old_archive_cmds 18800 18801 # A language specific compiler. 18802 CC=$lt_compiler 18803 18804 # Is the compiler the GNU compiler? 18805 with_gcc=$GCC 18806 18807 # Compiler flag to turn off builtin functions. 18808 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18809 18810 # Additional compiler flags for building library objects. 18811 pic_flag=$lt_lt_prog_compiler_pic 18812 18813 # How to pass a linker flag through the compiler. 18814 wl=$lt_lt_prog_compiler_wl 18815 18816 # Compiler flag to prevent dynamic linking. 18817 link_static_flag=$lt_lt_prog_compiler_static 18818 18819 # Does compiler simultaneously support -c and -o options? 18820 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18821 18822 # Whether or not to add -lc for building shared libraries. 18823 build_libtool_need_lc=$archive_cmds_need_lc 18824 18825 # Whether or not to disallow shared libs when runtime libs are static. 18826 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18827 18828 # Compiler flag to allow reflexive dlopens. 18829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18830 18831 # Compiler flag to generate shared objects directly from archives. 18832 whole_archive_flag_spec=$lt_whole_archive_flag_spec 18833 18834 # Whether the compiler copes with passing no objects directly. 18835 compiler_needs_object=$lt_compiler_needs_object 18836 18837 # Create an old-style archive from a shared archive. 18838 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18839 18840 # Create a temporary old-style archive to link instead of a shared archive. 18841 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18842 18843 # Commands used to build a shared archive. 18844 archive_cmds=$lt_archive_cmds 18845 archive_expsym_cmds=$lt_archive_expsym_cmds 18846 18847 # Commands used to build a loadable module if different from building 18848 # a shared archive. 18849 module_cmds=$lt_module_cmds 18850 module_expsym_cmds=$lt_module_expsym_cmds 18851 18852 # Whether we are building with GNU ld or not. 18853 with_gnu_ld=$lt_with_gnu_ld 18854 18855 # Flag that allows shared libraries with undefined symbols to be built. 18856 allow_undefined_flag=$lt_allow_undefined_flag 18857 18858 # Flag that enforces no undefined symbols. 18859 no_undefined_flag=$lt_no_undefined_flag 18860 18861 # Flag to hardcode \$libdir into a binary during linking. 18862 # This must work even if \$libdir does not exist 18863 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18864 18865 # Whether we need a single "-rpath" flag with a separated argument. 18866 hardcode_libdir_separator=$lt_hardcode_libdir_separator 18867 18868 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18869 # DIR into the resulting binary. 18870 hardcode_direct=$hardcode_direct 18871 18872 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18873 # DIR into the resulting binary and the resulting library dependency is 18874 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 18875 # library is relocated. 18876 hardcode_direct_absolute=$hardcode_direct_absolute 18877 18878 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18879 # into the resulting binary. 18880 hardcode_minus_L=$hardcode_minus_L 18881 18882 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18883 # into the resulting binary. 18884 hardcode_shlibpath_var=$hardcode_shlibpath_var 18885 18886 # Set to "yes" if building a shared library automatically hardcodes DIR 18887 # into the library and all subsequent libraries and executables linked 18888 # against it. 18889 hardcode_automatic=$hardcode_automatic 18890 18891 # Set to yes if linker adds runtime paths of dependent libraries 18892 # to runtime path list. 18893 inherit_rpath=$inherit_rpath 18894 18895 # Whether libtool must link a program against all its dependency libraries. 18896 link_all_deplibs=$link_all_deplibs 18897 18898 # Set to "yes" if exported symbols are required. 18899 always_export_symbols=$always_export_symbols 18900 18901 # The commands to list exported symbols. 18902 export_symbols_cmds=$lt_export_symbols_cmds 18903 18904 # Symbols that should not be listed in the preloaded symbols. 18905 exclude_expsyms=$lt_exclude_expsyms 18906 18907 # Symbols that must always be exported. 18908 include_expsyms=$lt_include_expsyms 18909 18910 # Commands necessary for linking programs (against libraries) with templates. 18911 prelink_cmds=$lt_prelink_cmds 18912 18913 # Commands necessary for finishing linking programs. 18914 postlink_cmds=$lt_postlink_cmds 18915 18916 # Specify filename containing input files. 18917 file_list_spec=$lt_file_list_spec 18918 18919 # How to hardcode a shared library path into an executable. 18920 hardcode_action=$hardcode_action 18921 18922 # The directories searched by this compiler when creating a shared library. 18923 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18924 18925 # Dependencies to place before and after the objects being linked to 18926 # create a shared library. 18927 predep_objects=$lt_predep_objects 18928 postdep_objects=$lt_postdep_objects 18929 predeps=$lt_predeps 18930 postdeps=$lt_postdeps 18931 18932 # The library search path used internally by the compiler when linking 18933 # a shared library. 18934 compiler_lib_search_path=$lt_compiler_lib_search_path 18935 18936 # ### END LIBTOOL CONFIG 18937 18938 _LT_EOF 18939 18940 cat <<'_LT_EOF' >> "$cfgfile" 18941 18942 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18943 18944 # func_munge_path_list VARIABLE PATH 18945 # ----------------------------------- 18946 # VARIABLE is name of variable containing _space_ separated list of 18947 # directories to be munged by the contents of PATH, which is string 18948 # having a format: 18949 # "DIR[:DIR]:" 18950 # string "DIR[ DIR]" will be prepended to VARIABLE 18951 # ":DIR[:DIR]" 18952 # string "DIR[ DIR]" will be appended to VARIABLE 18953 # "DIRP[:DIRP]::[DIRA:]DIRA" 18954 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18955 # "DIRA[ DIRA]" will be appended to VARIABLE 18956 # "DIR[:DIR]" 18957 # VARIABLE will be replaced by "DIR[ DIR]" 18958 func_munge_path_list () 18959 { 18960 case x$2 in 18961 x) 18962 ;; 18963 *:) 18964 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18965 ;; 18966 x:*) 18967 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18968 ;; 18969 *::*) 18970 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18971 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18972 ;; 18973 *) 18974 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18975 ;; 18976 esac 18977 } 18978 18979 18980 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18981 func_cc_basename () 18982 { 18983 for cc_temp in $*""; do 18984 case $cc_temp in 18985 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18986 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18987 \-*) ;; 18988 *) break;; 18989 esac 18990 done 18991 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18992 } 18993 18994 18995 # ### END FUNCTIONS SHARED WITH CONFIGURE 18996 18997 _LT_EOF 18998 18999 case $host_os in 19000 aix3*) 19001 cat <<\_LT_EOF >> "$cfgfile" 19002 # AIX sometimes has problems with the GCC collect2 program. For some 19003 # reason, if we set the COLLECT_NAMES environment variable, the problems 19004 # vanish in a puff of smoke. 19005 if test set != "${COLLECT_NAMES+set}"; then 19006 COLLECT_NAMES= 19007 export COLLECT_NAMES 19008 fi 19009 _LT_EOF 19010 ;; 19011 esac 19012 19013 19014 ltmain=$ac_aux_dir/ltmain.sh 19015 19016 19017 # We use sed instead of cat because bash on DJGPP gets confused if 19018 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19019 # text mode, it properly converts lines to CR/LF. This bash problem 19020 # is reportedly fixed, but why not run on old versions too? 19021 sed '$q' "$ltmain" >> "$cfgfile" \ 19022 || (rm -f "$cfgfile"; exit 1) 19023 19024 mv -f "$cfgfile" "$ofile" || 19025 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19026 chmod +x "$ofile" 19027 19028 19029 cat <<_LT_EOF >> "$ofile" 19030 19031 # ### BEGIN LIBTOOL TAG CONFIG: CXX 19032 19033 # The linker used to build libraries. 19034 LD=$lt_LD_CXX 19035 19036 # How to create reloadable object files. 19037 reload_flag=$lt_reload_flag_CXX 19038 reload_cmds=$lt_reload_cmds_CXX 19039 19040 # Commands used to build an old-style archive. 19041 old_archive_cmds=$lt_old_archive_cmds_CXX 19042 19043 # A language specific compiler. 19044 CC=$lt_compiler_CXX 19045 19046 # Is the compiler the GNU compiler? 19047 with_gcc=$GCC_CXX 19048 19049 # Compiler flag to turn off builtin functions. 19050 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19051 19052 # Additional compiler flags for building library objects. 19053 pic_flag=$lt_lt_prog_compiler_pic_CXX 19054 19055 # How to pass a linker flag through the compiler. 19056 wl=$lt_lt_prog_compiler_wl_CXX 19057 19058 # Compiler flag to prevent dynamic linking. 19059 link_static_flag=$lt_lt_prog_compiler_static_CXX 19060 19061 # Does compiler simultaneously support -c and -o options? 19062 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19063 19064 # Whether or not to add -lc for building shared libraries. 19065 build_libtool_need_lc=$archive_cmds_need_lc_CXX 19066 19067 # Whether or not to disallow shared libs when runtime libs are static. 19068 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19069 19070 # Compiler flag to allow reflexive dlopens. 19071 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19072 19073 # Compiler flag to generate shared objects directly from archives. 19074 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19075 19076 # Whether the compiler copes with passing no objects directly. 19077 compiler_needs_object=$lt_compiler_needs_object_CXX 19078 19079 # Create an old-style archive from a shared archive. 19080 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19081 19082 # Create a temporary old-style archive to link instead of a shared archive. 19083 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19084 19085 # Commands used to build a shared archive. 19086 archive_cmds=$lt_archive_cmds_CXX 19087 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19088 19089 # Commands used to build a loadable module if different from building 19090 # a shared archive. 19091 module_cmds=$lt_module_cmds_CXX 19092 module_expsym_cmds=$lt_module_expsym_cmds_CXX 19093 19094 # Whether we are building with GNU ld or not. 19095 with_gnu_ld=$lt_with_gnu_ld_CXX 19096 19097 # Flag that allows shared libraries with undefined symbols to be built. 19098 allow_undefined_flag=$lt_allow_undefined_flag_CXX 19099 19100 # Flag that enforces no undefined symbols. 19101 no_undefined_flag=$lt_no_undefined_flag_CXX 19102 19103 # Flag to hardcode \$libdir into a binary during linking. 19104 # This must work even if \$libdir does not exist 19105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19106 19107 # Whether we need a single "-rpath" flag with a separated argument. 19108 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19109 19110 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19111 # DIR into the resulting binary. 19112 hardcode_direct=$hardcode_direct_CXX 19113 19114 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19115 # DIR into the resulting binary and the resulting library dependency is 19116 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 19117 # library is relocated. 19118 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19119 19120 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19121 # into the resulting binary. 19122 hardcode_minus_L=$hardcode_minus_L_CXX 19123 19124 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19125 # into the resulting binary. 19126 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19127 19128 # Set to "yes" if building a shared library automatically hardcodes DIR 19129 # into the library and all subsequent libraries and executables linked 19130 # against it. 19131 hardcode_automatic=$hardcode_automatic_CXX 19132 19133 # Set to yes if linker adds runtime paths of dependent libraries 19134 # to runtime path list. 19135 inherit_rpath=$inherit_rpath_CXX 19136 19137 # Whether libtool must link a program against all its dependency libraries. 19138 link_all_deplibs=$link_all_deplibs_CXX 19139 19140 # Set to "yes" if exported symbols are required. 19141 always_export_symbols=$always_export_symbols_CXX 19142 19143 # The commands to list exported symbols. 19144 export_symbols_cmds=$lt_export_symbols_cmds_CXX 19145 19146 # Symbols that should not be listed in the preloaded symbols. 19147 exclude_expsyms=$lt_exclude_expsyms_CXX 19148 19149 # Symbols that must always be exported. 19150 include_expsyms=$lt_include_expsyms_CXX 19151 19152 # Commands necessary for linking programs (against libraries) with templates. 19153 prelink_cmds=$lt_prelink_cmds_CXX 19154 19155 # Commands necessary for finishing linking programs. 19156 postlink_cmds=$lt_postlink_cmds_CXX 19157 19158 # Specify filename containing input files. 19159 file_list_spec=$lt_file_list_spec_CXX 19160 19161 # How to hardcode a shared library path into an executable. 19162 hardcode_action=$hardcode_action_CXX 19163 19164 # The directories searched by this compiler when creating a shared library. 19165 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19166 19167 # Dependencies to place before and after the objects being linked to 19168 # create a shared library. 19169 predep_objects=$lt_predep_objects_CXX 19170 postdep_objects=$lt_postdep_objects_CXX 19171 predeps=$lt_predeps_CXX 19172 postdeps=$lt_postdeps_CXX 19173 19174 # The library search path used internally by the compiler when linking 19175 # a shared library. 19176 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19177 19178 # ### END LIBTOOL TAG CONFIG: CXX 19179 _LT_EOF 19180 19181 ;; 5614 19182 5615 19183 esac -
libcfa/configure.ac
r560812b r2725882 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 … … 21 22 AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)]) 22 23 AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory]) 24 AC_ARG_VAR(CFA_VERSION, [The long version of cfa]) 23 25 24 26 CFACC=${DRIVER_DIR}cfa … … 26 28 AC_SUBST(CFACC) 27 29 AC_SUBST(CFACPP) 30 AC_SUBST(CFA_VERSION) 28 31 29 32 #============================================================================== … … 70 73 71 74 # Checks for programs. 75 LT_INIT 76 72 77 AC_PROG_CXX 73 78 AC_PROG_CC … … 75 80 AC_PROG_INSTALL 76 81 AC_PROG_MAKE_SET 77 AC_PROG_RANLIB78 82 79 83 AC_CONFIG_FILES([ -
libcfa/prelude/Makefile.am
r560812b r2725882 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
r560812b r2725882 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@ … … 172 179 CFA_NAME = @CFA_NAME@ 173 180 CFA_PREFIX = @CFA_PREFIX@ 181 CFA_VERSION = @CFA_VERSION@ 174 182 CFLAGS = @CFLAGS@ 175 183 CONFIGURATION = @CONFIGURATION@ … … 177 185 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 178 186 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 187 CPP = @CPP@ 179 188 CPPFLAGS = @CPPFLAGS@ 180 189 CXX = @CXX@ 190 CXXCPP = @CXXCPP@ 181 191 CXXDEPMODE = @CXXDEPMODE@ 182 192 CXXFLAGS = @CXXFLAGS@ … … 184 194 DEFS = @DEFS@ 185 195 DEPDIR = @DEPDIR@ 196 DLLTOOL = @DLLTOOL@ 186 197 DRIVER_DIR = @DRIVER_DIR@ 198 DSYMUTIL = @DSYMUTIL@ 199 DUMPBIN = @DUMPBIN@ 187 200 ECHO_C = @ECHO_C@ 188 201 ECHO_N = @ECHO_N@ 189 202 ECHO_T = @ECHO_T@ 203 EGREP = @EGREP@ 190 204 EXEEXT = @EXEEXT@ 205 FGREP = @FGREP@ 206 GREP = @GREP@ 191 207 INSTALL = @INSTALL@ 192 208 INSTALL_DATA = @INSTALL_DATA@ … … 194 210 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 195 211 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 212 LD = @LD@ 196 213 LDFLAGS = @LDFLAGS@ 197 214 LIBOBJS = @LIBOBJS@ 198 215 LIBS = @LIBS@ 216 LIBTOOL = @LIBTOOL@ 217 LIPO = @LIPO@ 218 LN_S = @LN_S@ 199 219 LTLIBOBJS = @LTLIBOBJS@ 220 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 200 221 MAKEINFO = @MAKEINFO@ 222 MANIFEST_TOOL = @MANIFEST_TOOL@ 201 223 MKDIR_P = @MKDIR_P@ 224 NM = @NM@ 225 NMEDIT = @NMEDIT@ 226 OBJDUMP = @OBJDUMP@ 202 227 OBJEXT = @OBJEXT@ 228 OTOOL = @OTOOL@ 229 OTOOL64 = @OTOOL64@ 203 230 PACKAGE = @PACKAGE@ 204 231 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 210 237 PATH_SEPARATOR = @PATH_SEPARATOR@ 211 238 RANLIB = @RANLIB@ 239 SED = @SED@ 212 240 SET_MAKE = @SET_MAKE@ 213 241 SHELL = @SHELL@ … … 218 246 abs_top_builddir = @abs_top_builddir@ 219 247 abs_top_srcdir = @abs_top_srcdir@ 248 ac_ct_AR = @ac_ct_AR@ 220 249 ac_ct_CC = @ac_ct_CC@ 221 250 ac_ct_CXX = @ac_ct_CXX@ 251 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 222 252 am__include = @am__include@ 223 253 am__leading_dot = @am__leading_dot@ … … 226 256 am__untar = @am__untar@ 227 257 bindir = @bindir@ 258 build = @build@ 228 259 build_alias = @build_alias@ 260 build_cpu = @build_cpu@ 261 build_os = @build_os@ 262 build_vendor = @build_vendor@ 229 263 builddir = @builddir@ 230 264 datadir = @datadir@ … … 233 267 dvidir = @dvidir@ 234 268 exec_prefix = @exec_prefix@ 269 host = @host@ 235 270 host_alias = @host_alias@ 271 host_cpu = @host_cpu@ 272 host_os = @host_os@ 273 host_vendor = @host_vendor@ 236 274 htmldir = @htmldir@ 237 275 includedir = @includedir@ … … 261 299 # create object files in directory with source files 262 300 AUTOMAKE_OPTIONS = foreign subdir-objects 301 ACLOCAL_AMFLAGS = -I automake 263 302 264 303 # put into lib for now 265 304 cfalibdir = ${CFA_LIBDIR} 266 305 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cfa bootloader.c 267 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@306 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ 268 307 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 269 308 MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cfa … … 301 340 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 302 341 $(am__aclocal_m4_deps): 342 343 mostlyclean-libtool: 344 -rm -f *.lo 345 346 clean-libtool: 347 -rm -rf .libs _libs 303 348 install-cfalibDATA: $(cfalib_DATA) 304 349 @$(NORMAL_INSTALL) … … 400 445 clean: clean-am 401 446 402 clean-am: clean-generic mostlyclean-am447 clean-am: clean-generic clean-libtool mostlyclean-am 403 448 404 449 distclean: distclean-am … … 453 498 mostlyclean: mostlyclean-am 454 499 455 mostlyclean-am: mostlyclean-generic 500 mostlyclean-am: mostlyclean-generic mostlyclean-libtool 456 501 457 502 pdf: pdf-am … … 467 512 .MAKE: install-am install-strip 468 513 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 \ 514 .PHONY: all all-am check check-am clean clean-generic clean-libtool \ 515 cscopelist-am ctags-am distclean distclean-generic \ 516 distclean-libtool distdir dvi dvi-am html html-am info info-am \ 517 install install-am install-cfalibDATA install-data \ 518 install-data-am install-dvi install-dvi-am install-exec \ 519 install-exec-am install-html install-html-am install-info \ 520 install-info-am install-man install-pdf install-pdf-am \ 521 install-ps install-ps-am install-strip installcheck \ 522 installcheck-am installdirs maintainer-clean \ 477 523 maintainer-clean-generic maintainer-clean-local mostlyclean \ 478 mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall\479 uninstall-am uninstall-cfalibDATA524 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 525 tags-am uninstall uninstall-am uninstall-cfalibDATA 480 526 481 527 .PRECIOUS: Makefile -
libcfa/src/Makefile.am
r560812b r2725882 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@ … … 37 38 #---------------------------------------------------------------------------------------------------------------- 38 39 if BUILDLIB 40 headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa 39 41 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \ 40 42 containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa 41 43 42 headers_nosrc = math.hfa gmp.hfa time_t.hfa bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa43 44 44 # not all platforms support concurrency, add option do disable it 45 headers_nosrc += concurrency/invoke.h 45 46 headers += concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa concurrency/monitor.hfa concurrency/mutex.hfa 46 47 headers_nosrc += concurrency/invoke.h48 47 49 48 libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} … … 63 62 64 63 # add dependency of cfa files 65 libobjs = $(addsuffix . o, $(basename $(filter %.cfa,$(libsrc))))64 libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc)))) 66 65 $(libobjs) : @CFACC@ @CFACPP@ prelude.cfa 67 66 … … 70 69 libdeps = $(join \ 71 70 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 72 $(notdir ${libobjs:. o=.Po}) \71 $(notdir ${libobjs:.lo=.Po}) \ 73 72 ) 74 73 … … 78 77 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@} 79 78 79 prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 80 ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \ 81 @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@} 80 82 81 83 82 84 #---------------------------------------------------------------------------------------------------------------- 83 libcfa_a_SOURCES = prelude.cfa ${libsrc} 85 libcfa_la_SOURCES = prelude.cfa ${libsrc} 86 libcfa_la_LDFLAGS = -version-info @CFA_VERSION@ 84 87 85 stdhdr = $ {shell find ${srcdir}/stdhdr -type f -printf "%p "}88 stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ") 86 89 87 90 cfa_includedir = $(CFA_INCDIR) -
libcfa/src/Makefile.in
r560812b r2725882 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)" 131 LIBRARIES = $(lib_LIBRARIES) 132 AR = ar 133 AM_V_AR = $(am__v_AR_@AM_V@) 134 am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) 135 am__v_AR_0 = @echo " AR " $@; 136 am__v_AR_1 = 137 libcfa_a_AR = $(AR) $(ARFLAGS) 138 libcfa_a_LIBADD = 139 am__libcfa_a_SOURCES_DIST = prelude.cfa startup.cfa interpose.cfa \ 137 LTLIBRARIES = $(lib_LTLIBRARIES) 138 libcfa_la_LIBADD = 139 am__libcfa_la_SOURCES_DIST = prelude.cfa startup.cfa interpose.cfa \ 140 140 bits/debug.cfa assert.cfa exception.c virtual.c heap.cfa \ 141 141 fstream.cfa iostream.cfa iterator.cfa limits.cfa rational.cfa \ … … 148 148 concurrency/invoke.c concurrency/preemption.cfa 149 149 am__dirstamp = $(am__leading_dot)dirstamp 150 @BUILDLIB_TRUE@am__objects_1 = fstream.$(OBJEXT) iostream.$(OBJEXT) \ 151 @BUILDLIB_TRUE@ iterator.$(OBJEXT) limits.$(OBJEXT) \ 152 @BUILDLIB_TRUE@ rational.$(OBJEXT) time.$(OBJEXT) \ 153 @BUILDLIB_TRUE@ stdlib.$(OBJEXT) common.$(OBJEXT) \ 154 @BUILDLIB_TRUE@ containers/maybe.$(OBJEXT) \ 155 @BUILDLIB_TRUE@ containers/pair.$(OBJEXT) \ 156 @BUILDLIB_TRUE@ containers/result.$(OBJEXT) \ 157 @BUILDLIB_TRUE@ containers/vector.$(OBJEXT) \ 158 @BUILDLIB_TRUE@ concurrency/coroutine.$(OBJEXT) \ 159 @BUILDLIB_TRUE@ concurrency/thread.$(OBJEXT) \ 160 @BUILDLIB_TRUE@ concurrency/kernel.$(OBJEXT) \ 161 @BUILDLIB_TRUE@ concurrency/monitor.$(OBJEXT) \ 162 @BUILDLIB_TRUE@ concurrency/mutex.$(OBJEXT) 163 @BUILDLIB_TRUE@am__objects_2 = startup.$(OBJEXT) interpose.$(OBJEXT) \ 164 @BUILDLIB_TRUE@ bits/debug.$(OBJEXT) assert.$(OBJEXT) \ 165 @BUILDLIB_TRUE@ exception.$(OBJEXT) virtual.$(OBJEXT) \ 166 @BUILDLIB_TRUE@ heap.$(OBJEXT) $(am__objects_1) \ 167 @BUILDLIB_TRUE@ concurrency/CtxSwitch-@ARCHITECTURE@.$(OBJEXT) \ 168 @BUILDLIB_TRUE@ concurrency/alarm.$(OBJEXT) \ 169 @BUILDLIB_TRUE@ concurrency/invoke.$(OBJEXT) \ 170 @BUILDLIB_TRUE@ concurrency/preemption.$(OBJEXT) 171 am_libcfa_a_OBJECTS = prelude.$(OBJEXT) $(am__objects_2) 172 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) 150 @BUILDLIB_TRUE@am__objects_1 = fstream.lo iostream.lo iterator.lo \ 151 @BUILDLIB_TRUE@ limits.lo rational.lo time.lo stdlib.lo \ 152 @BUILDLIB_TRUE@ common.lo containers/maybe.lo \ 153 @BUILDLIB_TRUE@ containers/pair.lo containers/result.lo \ 154 @BUILDLIB_TRUE@ containers/vector.lo concurrency/coroutine.lo \ 155 @BUILDLIB_TRUE@ concurrency/thread.lo concurrency/kernel.lo \ 156 @BUILDLIB_TRUE@ concurrency/monitor.lo concurrency/mutex.lo 157 @BUILDLIB_TRUE@am__objects_2 = startup.lo interpose.lo bits/debug.lo \ 158 @BUILDLIB_TRUE@ assert.lo exception.lo virtual.lo heap.lo \ 159 @BUILDLIB_TRUE@ $(am__objects_1) \ 160 @BUILDLIB_TRUE@ concurrency/CtxSwitch-@ARCHITECTURE@.lo \ 161 @BUILDLIB_TRUE@ concurrency/alarm.lo concurrency/invoke.lo \ 162 @BUILDLIB_TRUE@ concurrency/preemption.lo 163 am_libcfa_la_OBJECTS = prelude.lo $(am__objects_2) 164 libcfa_la_OBJECTS = $(am_libcfa_la_OBJECTS) 165 AM_V_lt = $(am__v_lt_@AM_V@) 166 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) 167 am__v_lt_0 = --silent 168 am__v_lt_1 = 169 libcfa_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 170 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 171 $(libcfa_la_LDFLAGS) $(LDFLAGS) -o $@ 173 172 AM_V_P = $(am__v_P_@AM_V@) 174 173 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) … … 184 183 am__v_at_1 = 185 184 DEFAULT_INCLUDES = -I.@am__isrc@ 186 depcomp = $(SHELL) $(top_srcdir)/ ./automake/depcomp185 depcomp = $(SHELL) $(top_srcdir)/automake/depcomp 187 186 am__depfiles_maybe = depfiles 188 187 am__mv = mv -f 189 188 CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ 190 189 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS) 190 LTCPPASCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \ 191 $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) \ 192 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 193 $(AM_CCASFLAGS) $(CCASFLAGS) 191 194 AM_V_CPPAS = $(am__v_CPPAS_@AM_V@) 192 195 am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@) … … 195 198 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 196 199 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 200 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 201 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ 202 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 203 $(AM_CFLAGS) $(CFLAGS) 197 204 AM_V_CC = $(am__v_CC_@AM_V@) 198 205 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) … … 200 207 am__v_CC_1 = 201 208 CCLD = $(CC) 202 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 209 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 210 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 211 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 203 212 AM_V_CCLD = $(am__v_CCLD_@AM_V@) 204 213 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) 205 214 am__v_CCLD_0 = @echo " CCLD " $@; 206 215 am__v_CCLD_1 = 207 SOURCES = $(libcfa_ a_SOURCES)208 DIST_SOURCES = $(am__libcfa_ a_SOURCES_DIST)216 SOURCES = $(libcfa_la_SOURCES) 217 DIST_SOURCES = $(am__libcfa_la_SOURCES_DIST) 209 218 am__can_run_installinfo = \ 210 219 case $$AM_UPDATE_INFO_DIR in \ … … 212 221 *) (install-info --version) >/dev/null 2>&1;; \ 213 222 esac 214 am__nobase_cfa_include_HEADERS_DIST = $ {shell find ${srcdir}/stdhdr \215 -type f -printf "%p " }fstream.hfa iostream.hfa iterator.hfa \223 am__nobase_cfa_include_HEADERS_DIST = $(shell find $(srcdir)/stdhdr \ 224 -type f -printf "%p ") fstream.hfa iostream.hfa iterator.hfa \ 216 225 limits.hfa rational.hfa time.hfa stdlib.hfa common.hfa \ 217 226 containers/maybe.hfa containers/pair.hfa containers/result.hfa \ … … 242 251 CTAGS = ctags 243 252 am__DIST_COMMON = $(srcdir)/../../src/cfa.make $(srcdir)/Makefile.in \ 244 $(top_srcdir)/ ./automake/depcomp253 $(top_srcdir)/automake/depcomp 245 254 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 246 255 VPATH = @srcdir@ :../prelude … … 248 257 AMTAR = @AMTAR@ 249 258 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 259 AR = @AR@ 250 260 ARCHITECTURE = @ARCHITECTURE@ 251 261 ARCH_FLAGS = @ARCH_FLAGS@ … … 266 276 CFA_NAME = @CFA_NAME@ 267 277 CFA_PREFIX = @CFA_PREFIX@ 278 CFA_VERSION = @CFA_VERSION@ 268 279 CFLAGS = @CFLAGS@ 269 280 CONFIGURATION = @CONFIGURATION@ … … 271 282 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 272 283 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 284 CPP = @CPP@ 273 285 CPPFLAGS = @CPPFLAGS@ 274 286 CXX = @CXX@ 287 CXXCPP = @CXXCPP@ 275 288 CXXDEPMODE = @CXXDEPMODE@ 276 289 CXXFLAGS = @CXXFLAGS@ … … 278 291 DEFS = @DEFS@ 279 292 DEPDIR = @DEPDIR@ 293 DLLTOOL = @DLLTOOL@ 280 294 DRIVER_DIR = @DRIVER_DIR@ 295 DSYMUTIL = @DSYMUTIL@ 296 DUMPBIN = @DUMPBIN@ 281 297 ECHO_C = @ECHO_C@ 282 298 ECHO_N = @ECHO_N@ 283 299 ECHO_T = @ECHO_T@ 300 EGREP = @EGREP@ 284 301 EXEEXT = @EXEEXT@ 302 FGREP = @FGREP@ 303 GREP = @GREP@ 285 304 INSTALL = @INSTALL@ 286 305 INSTALL_DATA = @INSTALL_DATA@ … … 288 307 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 289 308 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 309 LD = @LD@ 290 310 LDFLAGS = @LDFLAGS@ 291 311 LIBOBJS = @LIBOBJS@ 292 312 LIBS = @LIBS@ 313 LIBTOOL = @LIBTOOL@ 314 LIPO = @LIPO@ 315 LN_S = @LN_S@ 293 316 LTLIBOBJS = @LTLIBOBJS@ 317 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ 294 318 MAKEINFO = @MAKEINFO@ 319 MANIFEST_TOOL = @MANIFEST_TOOL@ 295 320 MKDIR_P = @MKDIR_P@ 321 NM = @NM@ 322 NMEDIT = @NMEDIT@ 323 OBJDUMP = @OBJDUMP@ 296 324 OBJEXT = @OBJEXT@ 325 OTOOL = @OTOOL@ 326 OTOOL64 = @OTOOL64@ 297 327 PACKAGE = @PACKAGE@ 298 328 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 304 334 PATH_SEPARATOR = @PATH_SEPARATOR@ 305 335 RANLIB = @RANLIB@ 336 SED = @SED@ 306 337 SET_MAKE = @SET_MAKE@ 307 338 SHELL = @SHELL@ … … 312 343 abs_top_builddir = @abs_top_builddir@ 313 344 abs_top_srcdir = @abs_top_srcdir@ 345 ac_ct_AR = @ac_ct_AR@ 314 346 ac_ct_CC = @ac_ct_CC@ 315 347 ac_ct_CXX = @ac_ct_CXX@ 348 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 316 349 am__include = @am__include@ 317 350 am__leading_dot = @am__leading_dot@ … … 320 353 am__untar = @am__untar@ 321 354 bindir = @bindir@ 355 build = @build@ 322 356 build_alias = @build_alias@ 357 build_cpu = @build_cpu@ 358 build_os = @build_os@ 359 build_vendor = @build_vendor@ 323 360 builddir = @builddir@ 324 361 datadir = @datadir@ … … 327 364 dvidir = @dvidir@ 328 365 exec_prefix = @exec_prefix@ 366 host = @host@ 329 367 host_alias = @host_alias@ 368 host_cpu = @host_cpu@ 369 host_os = @host_os@ 370 host_vendor = @host_vendor@ 330 371 htmldir = @htmldir@ 331 372 includedir = @includedir@ … … 355 396 # create object files in directory with source files 356 397 AUTOMAKE_OPTIONS = foreign subdir-objects 398 ACLOCAL_AMFLAGS = -I automake 357 399 ARFLAGS = cr 358 400 CFACOMPILE = $(CFACC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) $(AM_CFLAGS) $(CFLAGS) 401 LTCFACOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ 402 $(LIBTOOLFLAGS) --mode=compile $(CFACC) $(DEFS) \ 403 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CFAFLAGS) $(CFAFLAGS) \ 404 $(AM_CFLAGS) $(CFLAGS) 405 359 406 AM_V_CFA = $(am__v_CFA_@AM_V@) 360 407 am__v_CFA_ = $(am__v_CFA_@AM_DEFAULT_V@) 361 408 am__v_CFA_0 = @echo " CFA " $@; 362 409 am__v_CFA_1 = 363 lib_L IBRARIES = libcfa.a410 lib_LTLIBRARIES = libcfa.la 364 411 365 412 # AM_CFLAGS for all cfa source … … 368 415 # The built sources must not depend on the installed headers 369 416 AM_CFAFLAGS = -quiet -in-tree -I$(srcdir)/stdhdr @CONFIG_CFAFLAGS@ 370 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@417 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ 371 418 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 419 @BUILDLIB_FALSE@headers_nosrc = 420 421 #---------------------------------------------------------------------------------------------------------------- 422 423 # not all platforms support concurrency, add option do disable it 424 @BUILDLIB_TRUE@headers_nosrc = math.hfa gmp.hfa time_t.hfa \ 425 @BUILDLIB_TRUE@ bits/align.hfa bits/containers.hfa \ 426 @BUILDLIB_TRUE@ bits/defs.hfa bits/debug.hfa bits/locks.hfa \ 427 @BUILDLIB_TRUE@ concurrency/invoke.h 372 428 @BUILDLIB_FALSE@headers = 373 374 #----------------------------------------------------------------------------------------------------------------375 376 # not all platforms support concurrency, add option do disable it377 429 @BUILDLIB_TRUE@headers = fstream.hfa iostream.hfa iterator.hfa \ 378 430 @BUILDLIB_TRUE@ limits.hfa rational.hfa time.hfa stdlib.hfa \ … … 382 434 @BUILDLIB_TRUE@ concurrency/thread.hfa concurrency/kernel.hfa \ 383 435 @BUILDLIB_TRUE@ concurrency/monitor.hfa concurrency/mutex.hfa 384 @BUILDLIB_FALSE@headers_nosrc =385 @BUILDLIB_TRUE@headers_nosrc = math.hfa gmp.hfa time_t.hfa \386 @BUILDLIB_TRUE@ bits/align.hfa bits/containers.hfa \387 @BUILDLIB_TRUE@ bits/defs.hfa bits/debug.hfa bits/locks.hfa \388 @BUILDLIB_TRUE@ concurrency/invoke.h389 436 @BUILDLIB_FALSE@libsrc = 390 437 … … 402 449 403 450 # add dependency of cfa files 404 libobjs = $(addsuffix . o, $(basename $(filter %.cfa,$(libsrc))))451 libobjs = $(addsuffix .lo, $(basename $(filter %.cfa,$(libsrc)))) 405 452 406 453 # .deps inclusion is not done automatically by automake for new languages 407 454 libdeps = $(join \ 408 455 $(addsuffix $(DEPDIR)/ , $(dir $(libobjs) ) ), \ 409 $(notdir ${libobjs:. o=.Po}) \456 $(notdir ${libobjs:.lo=.Po}) \ 410 457 ) 411 458 412 459 413 460 #---------------------------------------------------------------------------------------------------------------- 414 libcfa_a_SOURCES = prelude.cfa ${libsrc} 415 stdhdr = ${shell find ${srcdir}/stdhdr -type f -printf "%p "} 461 libcfa_la_SOURCES = prelude.cfa ${libsrc} 462 libcfa_la_LDFLAGS = -version-info @CFA_VERSION@ 463 stdhdr = $(shell find $(srcdir)/stdhdr -type f -printf "%p ") 416 464 cfa_includedir = $(CFA_INCDIR) 417 465 nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} … … 419 467 420 468 .SUFFIXES: 421 .SUFFIXES: .S .c .cfa . o .obj469 .SUFFIXES: .S .c .cfa .lo .o .obj 422 470 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/../../src/cfa.make $(am__configure_deps) 423 471 @for dep in $?; do \ … … 450 498 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 451 499 $(am__aclocal_m4_deps): 452 install-libLIBRARIES: $(lib_LIBRARIES) 500 501 install-libLTLIBRARIES: $(lib_LTLIBRARIES) 453 502 @$(NORMAL_INSTALL) 454 @list='$(lib_L IBRARIES)'; test -n "$(libdir)" || list=; \503 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ 455 504 list2=; for p in $$list; do \ 456 505 if test -f $$p; then \ … … 461 510 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ 462 511 $(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=; \ 512 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ 513 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ 514 } 515 516 uninstall-libLTLIBRARIES: 517 @$(NORMAL_UNINSTALL) 518 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ 467 519 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; \ 520 $(am__strip_dir) \ 521 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ 522 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ 473 523 done 474 524 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) 525 clean-libLTLIBRARIES: 526 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) 527 @list='$(lib_LTLIBRARIES)'; \ 528 locs=`for p in $$list; do echo $$p; done | \ 529 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ 530 sort -u`; \ 531 test -z "$$locs" || { \ 532 echo rm -f $${locs}; \ 533 rm -f $${locs}; \ 534 } 483 535 bits/$(am__dirstamp): 484 536 @$(MKDIR_P) bits … … 487 539 @$(MKDIR_P) bits/$(DEPDIR) 488 540 @: > bits/$(DEPDIR)/$(am__dirstamp) 489 bits/debug.$(OBJEXT): bits/$(am__dirstamp) \ 490 bits/$(DEPDIR)/$(am__dirstamp) 541 bits/debug.lo: bits/$(am__dirstamp) bits/$(DEPDIR)/$(am__dirstamp) 491 542 containers/$(am__dirstamp): 492 543 @$(MKDIR_P) containers … … 495 546 @$(MKDIR_P) containers/$(DEPDIR) 496 547 @: > containers/$(DEPDIR)/$(am__dirstamp) 497 containers/maybe. $(OBJEXT): containers/$(am__dirstamp) \548 containers/maybe.lo: containers/$(am__dirstamp) \ 498 549 containers/$(DEPDIR)/$(am__dirstamp) 499 containers/pair. $(OBJEXT): containers/$(am__dirstamp) \550 containers/pair.lo: containers/$(am__dirstamp) \ 500 551 containers/$(DEPDIR)/$(am__dirstamp) 501 containers/result. $(OBJEXT): containers/$(am__dirstamp) \552 containers/result.lo: containers/$(am__dirstamp) \ 502 553 containers/$(DEPDIR)/$(am__dirstamp) 503 containers/vector. $(OBJEXT): containers/$(am__dirstamp) \554 containers/vector.lo: containers/$(am__dirstamp) \ 504 555 containers/$(DEPDIR)/$(am__dirstamp) 505 556 concurrency/$(am__dirstamp): … … 509 560 @$(MKDIR_P) concurrency/$(DEPDIR) 510 561 @: > concurrency/$(DEPDIR)/$(am__dirstamp) 511 concurrency/coroutine. $(OBJEXT): concurrency/$(am__dirstamp) \562 concurrency/coroutine.lo: concurrency/$(am__dirstamp) \ 512 563 concurrency/$(DEPDIR)/$(am__dirstamp) 513 concurrency/thread. $(OBJEXT): concurrency/$(am__dirstamp) \564 concurrency/thread.lo: concurrency/$(am__dirstamp) \ 514 565 concurrency/$(DEPDIR)/$(am__dirstamp) 515 concurrency/kernel. $(OBJEXT): concurrency/$(am__dirstamp) \566 concurrency/kernel.lo: concurrency/$(am__dirstamp) \ 516 567 concurrency/$(DEPDIR)/$(am__dirstamp) 517 concurrency/monitor. $(OBJEXT): concurrency/$(am__dirstamp) \568 concurrency/monitor.lo: concurrency/$(am__dirstamp) \ 518 569 concurrency/$(DEPDIR)/$(am__dirstamp) 519 concurrency/mutex. $(OBJEXT): concurrency/$(am__dirstamp) \570 concurrency/mutex.lo: concurrency/$(am__dirstamp) \ 520 571 concurrency/$(DEPDIR)/$(am__dirstamp) 521 concurrency/CtxSwitch-@ARCHITECTURE@.$(OBJEXT): \ 522 concurrency/$(am__dirstamp) \ 572 concurrency/CtxSwitch-@ARCHITECTURE@.lo: concurrency/$(am__dirstamp) \ 523 573 concurrency/$(DEPDIR)/$(am__dirstamp) 524 concurrency/alarm. $(OBJEXT): concurrency/$(am__dirstamp) \574 concurrency/alarm.lo: concurrency/$(am__dirstamp) \ 525 575 concurrency/$(DEPDIR)/$(am__dirstamp) 526 concurrency/invoke. $(OBJEXT): concurrency/$(am__dirstamp) \576 concurrency/invoke.lo: concurrency/$(am__dirstamp) \ 527 577 concurrency/$(DEPDIR)/$(am__dirstamp) 528 concurrency/preemption. $(OBJEXT): concurrency/$(am__dirstamp) \578 concurrency/preemption.lo: concurrency/$(am__dirstamp) \ 529 579 concurrency/$(DEPDIR)/$(am__dirstamp) 530 580 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 581 libcfa.la: $(libcfa_la_OBJECTS) $(libcfa_la_DEPENDENCIES) $(EXTRA_libcfa_la_DEPENDENCIES) 582 $(AM_V_CCLD)$(libcfa_la_LINK) -rpath $(libdir) $(libcfa_la_OBJECTS) $(libcfa_la_LIBADD) $(LIBS) 535 583 536 584 mostlyclean-compile: 537 585 -rm -f *.$(OBJEXT) 538 586 -rm -f bits/*.$(OBJEXT) 587 -rm -f bits/*.lo 539 588 -rm -f concurrency/*.$(OBJEXT) 589 -rm -f concurrency/*.lo 540 590 -rm -f containers/*.$(OBJEXT) 591 -rm -f containers/*.lo 541 592 542 593 distclean-compile: 543 594 -rm -f *.tab.c 544 595 545 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception.P o@am__quote@546 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virtual.P o@am__quote@547 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/CtxSwitch-@ARCHITECTURE@.P o@am__quote@548 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/invoke.P o@am__quote@596 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exception.Plo@am__quote@ 597 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/virtual.Plo@am__quote@ 598 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/CtxSwitch-@ARCHITECTURE@.Plo@am__quote@ 599 @AMDEP_TRUE@@am__include@ @am__quote@concurrency/$(DEPDIR)/invoke.Plo@am__quote@ 549 600 550 601 .S.o: … … 564 615 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 565 616 617 .S.lo: 618 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 619 @am__fastdepCCAS_TRUE@ $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 620 @am__fastdepCCAS_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo 621 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 622 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 623 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LTCPPASCOMPILE) -c -o $@ $< 624 566 625 .c.o: 567 626 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\ … … 579 638 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 580 639 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 640 641 .c.lo: 642 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 643 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 644 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo 645 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ 646 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 647 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< 648 649 mostlyclean-libtool: 650 -rm -f *.lo 651 652 clean-libtool: 653 -rm -rf .libs _libs 654 -rm -rf bits/.libs bits/_libs 655 -rm -rf concurrency/.libs concurrency/_libs 656 -rm -rf containers/.libs containers/_libs 581 657 install-nobase_cfa_includeHEADERS: $(nobase_cfa_include_HEADERS) 582 658 @$(NORMAL_INSTALL) … … 688 764 check-am: all-am 689 765 check: check-am 690 all-am: Makefile $(L IBRARIES) $(HEADERS)766 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 691 767 installdirs: 692 768 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(cfa_includedir)"; do \ … … 731 807 clean: clean-am 732 808 733 clean-am: clean-generic clean-libLIBRARIES mostlyclean-am 809 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ 810 mostlyclean-am 734 811 735 812 distclean: distclean-am … … 757 834 install-dvi-am: 758 835 759 install-exec-am: install-libL IBRARIES836 install-exec-am: install-libLTLIBRARIES 760 837 761 838 install-html: install-html-am … … 787 864 mostlyclean: mostlyclean-am 788 865 789 mostlyclean-am: mostlyclean-compile mostlyclean-generic 866 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 867 mostlyclean-libtool 790 868 791 869 pdf: pdf-am … … 797 875 ps-am: 798 876 799 uninstall-am: uninstall-libL IBRARIES \877 uninstall-am: uninstall-libLTLIBRARIES \ 800 878 uninstall-nobase_cfa_includeHEADERS 801 879 … … 803 881 804 882 .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 \ 883 clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ 884 ctags-am distclean distclean-compile distclean-generic \ 885 distclean-libtool distclean-tags distdir dvi dvi-am html \ 886 html-am info info-am install install-am install-data \ 887 install-data-am install-dvi install-dvi-am install-exec \ 888 install-exec-am install-html install-html-am install-info \ 889 install-info-am install-libLTLIBRARIES install-man \ 811 890 install-nobase_cfa_includeHEADERS install-pdf install-pdf-am \ 812 891 install-ps install-ps-am install-strip installcheck \ 813 892 installcheck-am installdirs maintainer-clean \ 814 893 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_includeHEADERS894 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ 895 pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \ 896 uninstall-libLTLIBRARIES uninstall-nobase_cfa_includeHEADERS 818 897 819 898 .PRECIOUS: Makefile … … 824 903 $(CFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 825 904 $(am__mv) $$depbase.Tpo $$depbase.Po 905 906 .cfa.lo: 907 $(AM_V_CFA)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\ 908 $(LTCFACOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\ 909 $(am__mv) $$depbase.Tpo $$depbase.Plo 826 910 $(libobjs) : @CFACC@ @CFACPP@ prelude.cfa 827 911 … … 830 914 prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 831 915 ${AM_V_GEN}@CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@} 916 917 prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ 918 ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \ 919 @CFACC@ ${AM_CFLAGS} ${CFLAGS} -quiet -in-tree -XCFA -l ${<} -c -o ${@} 832 920 833 921 #---------------------------------------------------------------------------------------------------------------- -
libcfa/src/concurrency/invoke.h
r560812b r2725882 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
r560812b r2725882 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
r560812b r2725882 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
r560812b r2725882 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
r560812b r2725882 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.