Changeset 531
- Timestamp:
- 12/03/09 09:07:00 (2 years ago)
- Files:
-
- trunk/FahMon.xcodeproj/Makefile.in (modified) (18 diffs)
- trunk/Makefile.in (modified) (33 diffs)
- trunk/aclocal.m4 (modified) (187 diffs)
- trunk/config.h.in (modified) (2 diffs)
- trunk/configure (modified) (526 diffs)
- trunk/doc/Makefile.in (modified) (18 diffs)
- trunk/doc/help/Makefile.in (modified) (18 diffs)
- trunk/libtool (modified) (202 diffs)
- trunk/ltmain.sh (modified) (200 diffs)
- trunk/m4/Makefile.in (modified) (20 diffs)
- trunk/mac/Makefile.in (modified) (18 diffs)
- trunk/resources/Makefile.in (modified) (18 diffs)
- trunk/src/Makefile.in (modified) (25 diffs)
- trunk/src/images/Makefile.in (modified) (27 diffs)
- trunk/src/images/icons/128/Makefile.in (modified) (20 diffs)
- trunk/src/images/icons/16/Makefile.in (modified) (20 diffs)
- trunk/src/images/icons/24/Makefile.in (modified) (20 diffs)
- trunk/src/images/icons/256/Makefile.in (modified) (20 diffs)
- trunk/src/images/icons/32/Makefile.in (modified) (20 diffs)
- trunk/src/images/icons/48/Makefile.in (modified) (20 diffs)
- trunk/src/images/icons/64/Makefile.in (modified) (20 diffs)
- trunk/src/images/icons/Makefile.in (modified) (26 diffs)
- trunk/src/include/Makefile.in (modified) (18 diffs)
- trunk/templates/Makefile.in (modified) (20 diffs)
- trunk/wxcurl/Makefile.in (modified) (26 diffs)
- trunk/wxcurl/include/Makefile.in (modified) (26 diffs)
- trunk/wxcurl/include/wx/Makefile.in (modified) (26 diffs)
- trunk/wxcurl/include/wx/curl/Makefile.in (modified) (18 diffs)
- trunk/wxcurl/src/Makefile.in (modified) (26 diffs)
- trunk/wxcurl/win32_libcurl/Makefile.in (modified) (26 diffs)
- trunk/wxcurl/win32_libcurl/include/Makefile.in (modified) (26 diffs)
- trunk/wxcurl/win32_libcurl/include/curl/Makefile.in (modified) (18 diffs)
- trunk/wxcurl/win32_libcurl/lib/Makefile.in (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/FahMon.xcodeproj/Makefile.in
r525 r531 1 # Makefile.in generated by automake 1.1 0.2from Makefile.am.1 # Makefile.in generated by automake 1.11 from Makefile.am. 2 2 # @configure_input@ 3 3 4 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6 # Inc. 6 7 # This Makefile.in is free software; the Free Software Foundation 7 8 # gives unlimited permission to copy and/or distribute it, … … 26 27 VPATH = @srcdir@ 27 28 pkgdatadir = $(datadir)/@PACKAGE@ 29 pkgincludedir = $(includedir)/@PACKAGE@ 28 30 pkglibdir = $(libdir)/@PACKAGE@ 29 pkg includedir = $(includedir)/@PACKAGE@31 pkglibexecdir = $(libexecdir)/@PACKAGE@ 30 32 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 31 33 install_sh_DATA = $(install_sh) -c -m 644 … … 56 58 CONFIG_HEADER = $(top_builddir)/config.h 57 59 CONFIG_CLEAN_FILES = 60 CONFIG_CLEAN_VPATH_FILES = 58 61 SOURCES = 59 62 DIST_SOURCES = … … 79 82 DEPDIR = @DEPDIR@ 80 83 DSYMUTIL = @DSYMUTIL@ 81 ECHO = @ECHO@84 DUMPBIN = @DUMPBIN@ 82 85 ECHO_C = @ECHO_C@ 83 86 ECHO_N = @ECHO_N@ … … 85 88 EGREP = @EGREP@ 86 89 EXEEXT = @EXEEXT@ 87 F77 = @F77@ 88 FFLAGS = @FFLAGS@ 90 FGREP = @FGREP@ 89 91 GMSGFMT = @GMSGFMT@ 90 92 GMSGFMT_015 = @GMSGFMT_015@ … … 97 99 INTLLIBS = @INTLLIBS@ 98 100 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ 101 LD = @LD@ 99 102 LDFLAGS = @LDFLAGS@ 100 103 LIBCURL = @LIBCURL@ … … 105 108 LIBS = @LIBS@ 106 109 LIBTOOL = @LIBTOOL@ 110 LIPO = @LIPO@ 107 111 LN_S = @LN_S@ 108 112 LTLIBICONV = @LTLIBICONV@ … … 114 118 MSGFMT_015 = @MSGFMT_015@ 115 119 MSGMERGE = @MSGMERGE@ 120 NM = @NM@ 116 121 NMEDIT = @NMEDIT@ 122 OBJDUMP = @OBJDUMP@ 117 123 OBJEXT = @OBJEXT@ 124 OTOOL = @OTOOL@ 125 OTOOL64 = @OTOOL64@ 118 126 PACKAGE = @PACKAGE@ 119 127 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 121 129 PACKAGE_STRING = @PACKAGE_STRING@ 122 130 PACKAGE_TARNAME = @PACKAGE_TARNAME@ 131 PACKAGE_URL = @PACKAGE_URL@ 123 132 PACKAGE_VERSION = @PACKAGE_VERSION@ 124 133 PATH_SEPARATOR = @PATH_SEPARATOR@ … … 151 160 ac_ct_CC = @ac_ct_CC@ 152 161 ac_ct_CXX = @ac_ct_CXX@ 153 ac_ct_ F77 = @ac_ct_F77@162 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 154 163 ac_prefix_program = @ac_prefix_program@ 155 164 am__include = @am__include@ … … 183 192 localedir = @localedir@ 184 193 localstatedir = @localstatedir@ 194 lt_ECHO = @lt_ECHO@ 185 195 mandir = @mandir@ 186 196 mkdir_p = @mkdir_p@ … … 215 225 esac; \ 216 226 done; \ 217 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu FahMon.xcodeproj/Makefile'; \218 cd$(top_srcdir) && \219 $(AUTOMAKE) --gnu FahMon.xcodeproj/Makefile227 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu FahMon.xcodeproj/Makefile'; \ 228 $(am__cd) $(top_srcdir) && \ 229 $(AUTOMAKE) --gnu FahMon.xcodeproj/Makefile 220 230 .PRECIOUS: Makefile 221 231 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 235 245 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 236 246 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 247 $(am__aclocal_m4_deps): 237 248 238 249 mostlyclean-libtool: … … 264 275 if test -d $$d/$$file; then \ 265 276 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 277 if test -d "$(distdir)/$$file"; then \ 278 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 279 fi; \ 266 280 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 267 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 281 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ 282 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 268 283 fi; \ 269 cp - pR $$d/$$file $(distdir)$$dir|| exit 1; \284 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ 270 285 else \ 271 test -f $(distdir)/$$file\272 || cp -p $$d/$$file $(distdir)/$$file\286 test -f "$(distdir)/$$file" \ 287 || cp -p $$d/$$file "$(distdir)/$$file" \ 273 288 || exit 1; \ 274 289 fi; \ … … 298 313 distclean-generic: 299 314 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 315 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) 300 316 301 317 maintainer-clean-generic: … … 316 332 html: html-am 317 333 334 html-am: 335 318 336 info: info-am 319 337 … … 324 342 install-dvi: install-dvi-am 325 343 344 install-dvi-am: 345 326 346 install-exec-am: 327 347 328 348 install-html: install-html-am 329 349 350 install-html-am: 351 330 352 install-info: install-info-am 331 353 354 install-info-am: 355 332 356 install-man: 333 357 334 358 install-pdf: install-pdf-am 335 359 360 install-pdf-am: 361 336 362 install-ps: install-ps-am 363 364 install-ps-am: 337 365 338 366 installcheck-am: … … 369 397 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am 370 398 399 371 400 # Tell versions [3.59,3.63) of GNU make to not export all variables. 372 401 # Otherwise a system limit (for SysV at least) may be exceeded. trunk/Makefile.in
r525 r531 1 # Makefile.in generated by automake 1.1 0.2from Makefile.am.1 # Makefile.in generated by automake 1.11 from Makefile.am. 2 2 # @configure_input@ 3 3 4 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6 # Inc. 6 7 # This Makefile.in is free software; the Free Software Foundation 7 8 # gives unlimited permission to copy and/or distribute it, … … 27 28 VPATH = @srcdir@ 28 29 pkgdatadir = $(datadir)/@PACKAGE@ 30 pkgincludedir = $(includedir)/@PACKAGE@ 29 31 pkglibdir = $(libdir)/@PACKAGE@ 30 pkg includedir = $(includedir)/@PACKAGE@32 pkglibexecdir = $(libexecdir)/@PACKAGE@ 31 33 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 32 34 install_sh_DATA = $(install_sh) -c -m 644 … … 66 68 CONFIG_CLEAN_FILES = README FahMon.nsi fahmon.spec doxconf \ 67 69 FahMon-Info.plist 70 CONFIG_CLEAN_VPATH_FILES = 68 71 SOURCES = 69 72 DIST_SOURCES = … … 80 83 *) f=$$p;; \ 81 84 esac; 82 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 85 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; 86 am__install_max = 40 87 am__nobase_strip_setup = \ 88 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` 89 am__nobase_strip = \ 90 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" 91 am__nobase_list = $(am__nobase_strip_setup); \ 92 for p in $$list; do echo "$$p $$p"; done | \ 93 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ 94 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ 95 if (++n[$$2] == $(am__install_max)) \ 96 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ 97 END { for (dir in files) print dir, files[dir] }' 98 am__base_list = \ 99 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ 100 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' 83 101 am__installdirs = "$(DESTDIR)$(appsdir)" 84 appsDATA_INSTALL = $(INSTALL_DATA)85 102 DATA = $(apps_DATA) 86 103 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ 87 104 distclean-recursive maintainer-clean-recursive 105 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ 106 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ 107 distdir dist dist-all distcheck 88 108 ETAGS = etags 89 109 CTAGS = ctags … … 93 113 top_distdir = $(distdir) 94 114 am__remove_distdir = \ 95 { test ! -d $(distdir) \ 96 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ 97 && rm -fr $(distdir); }; } 115 { test ! -d "$(distdir)" \ 116 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ 117 && rm -fr "$(distdir)"; }; } 118 am__relativize = \ 119 dir0=`pwd`; \ 120 sed_first='s,^\([^/]*\)/.*$$,\1,'; \ 121 sed_rest='s,^[^/]*/*,,'; \ 122 sed_last='s,^.*/\([^/]*\)$$,\1,'; \ 123 sed_butlast='s,/*[^/]*$$,,'; \ 124 while test -n "$$dir1"; do \ 125 first=`echo "$$dir1" | sed -e "$$sed_first"`; \ 126 if test "$$first" != "."; then \ 127 if test "$$first" = ".."; then \ 128 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ 129 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ 130 else \ 131 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ 132 if test "$$first2" = "$$first"; then \ 133 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ 134 else \ 135 dir2="../$$dir2"; \ 136 fi; \ 137 dir0="$$dir0"/"$$first"; \ 138 fi; \ 139 fi; \ 140 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ 141 done; \ 142 reldir="$$dir2" 98 143 DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 99 144 GZIP_ENV = --best … … 120 165 DEPDIR = @DEPDIR@ 121 166 DSYMUTIL = @DSYMUTIL@ 122 ECHO = @ECHO@167 DUMPBIN = @DUMPBIN@ 123 168 ECHO_C = @ECHO_C@ 124 169 ECHO_N = @ECHO_N@ … … 126 171 EGREP = @EGREP@ 127 172 EXEEXT = @EXEEXT@ 128 F77 = @F77@ 129 FFLAGS = @FFLAGS@ 173 FGREP = @FGREP@ 130 174 GMSGFMT = @GMSGFMT@ 131 175 GMSGFMT_015 = @GMSGFMT_015@ … … 138 182 INTLLIBS = @INTLLIBS@ 139 183 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ 184 LD = @LD@ 140 185 LDFLAGS = @LDFLAGS@ 141 186 LIBCURL = @LIBCURL@ … … 146 191 LIBS = @LIBS@ 147 192 LIBTOOL = @LIBTOOL@ 193 LIPO = @LIPO@ 148 194 LN_S = @LN_S@ 149 195 LTLIBICONV = @LTLIBICONV@ … … 155 201 MSGFMT_015 = @MSGFMT_015@ 156 202 MSGMERGE = @MSGMERGE@ 203 NM = @NM@ 157 204 NMEDIT = @NMEDIT@ 205 OBJDUMP = @OBJDUMP@ 158 206 OBJEXT = @OBJEXT@ 207 OTOOL = @OTOOL@ 208 OTOOL64 = @OTOOL64@ 159 209 PACKAGE = @PACKAGE@ 160 210 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ … … 162 212 PACKAGE_STRING = @PACKAGE_STRING@ 163 213 PACKAGE_TARNAME = @PACKAGE_TARNAME@ 214 PACKAGE_URL = @PACKAGE_URL@ 164 215 PACKAGE_VERSION = @PACKAGE_VERSION@ 165 216 PATH_SEPARATOR = @PATH_SEPARATOR@ … … 192 243 ac_ct_CC = @ac_ct_CC@ 193 244 ac_ct_CXX = @ac_ct_CXX@ 194 ac_ct_ F77 = @ac_ct_F77@245 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ 195 246 ac_prefix_program = @ac_prefix_program@ 196 247 am__include = @am__include@ … … 224 275 localedir = @localedir@ 225 276 localstatedir = @localstatedir@ 277 lt_ECHO = @lt_ECHO@ 226 278 mandir = @mandir@ 227 279 mkdir_p = @mkdir_p@ … … 276 328 case '$(am__configure_deps)' in \ 277 329 *$$dep*) \ 278 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \279 cd $(srcdir) && $(AUTOMAKE) --gnu\330 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ 331 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ 280 332 && exit 0; \ 281 333 exit 1;; \ 282 334 esac; \ 283 335 done; \ 284 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \285 cd$(top_srcdir) && \286 $(AUTOMAKE) --gnu Makefile336 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ 337 $(am__cd) $(top_srcdir) && \ 338 $(AUTOMAKE) --gnu Makefile 287 339 .PRECIOUS: Makefile 288 340 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status … … 300 352 301 353 $(top_srcdir)/configure: $(am__configure_deps) 302 cd$(srcdir) && $(AUTOCONF)354 $(am__cd) $(srcdir) && $(AUTOCONF) 303 355 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 304 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 356 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 357 $(am__aclocal_m4_deps): 305 358 306 359 config.h: stamp-h1 … … 314 367 cd $(top_builddir) && $(SHELL) ./config.status config.h 315 368 $(srcdir)/config.h.in: $(am__configure_deps) 316 cd $(top_srcdir) && $(AUTOHEADER)369 ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) 317 370 rm -f stamp-h1 318 371 touch $@ … … 342 395 @$(NORMAL_INSTALL) 343 396 test -z "$(appsdir)" || $(MKDIR_P) "$(DESTDIR)$(appsdir)" 344 @list='$(apps_DATA)'; for p in $$list; do \ 397 @list='$(apps_DATA)'; test -n "$(appsdir)" || list=; \ 398 for p in $$list; do \ 345 399 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 346 f=$(am__strip_dir) \ 347 echo " $(appsDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(appsdir)/$$f'"; \ 348 $(appsDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(appsdir)/$$f"; \ 400 echo "$$d$$p"; \ 401 done | $(am__base_list) | \ 402 while read files; do \ 403 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(appsdir)'"; \ 404 $(INSTALL_DATA) $$files "$(DESTDIR)$(appsdir)" || exit $$?; \ 349 405 done 350 406 351 407 uninstall-appsDATA: 352 408 @$(NORMAL_UNINSTALL) 353 @list='$(apps_DATA)'; for p in $$list; do\354 f=$(am__strip_dir)\355 echo " rm -f '$(DESTDIR)$(appsdir)/$$f'"; \356 rm -f "$(DESTDIR)$(appsdir)/$$f"; \357 done409 @list='$(apps_DATA)'; test -n "$(appsdir)" || list=; \ 410 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ 411 test -n "$$files" || exit 0; \ 412 echo " ( cd '$(DESTDIR)$(appsdir)' && rm -f" $$files ")"; \ 413 cd "$(DESTDIR)$(appsdir)" && rm -f $$files 358 414 359 415 # This directory's subdirectories are mostly independent; you can cd … … 381 437 local_target="$$target"; \ 382 438 fi; \ 383 ( cd$$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \439 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 384 440 || eval $$failcom; \ 385 441 done; \ … … 415 471 local_target="$$target"; \ 416 472 fi; \ 417 ( cd$$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \473 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 418 474 || eval $$failcom; \ 419 475 done && test -z "$$fail" 420 476 tags-recursive: 421 477 list='$(SUBDIRS)'; for subdir in $$list; do \ 422 test "$$subdir" = . || ( cd$$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \478 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 423 479 done 424 480 ctags-recursive: 425 481 list='$(SUBDIRS)'; for subdir in $$list; do \ 426 test "$$subdir" = . || ( cd$$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \482 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 427 483 done 428 484 … … 439 495 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 440 496 $(TAGS_FILES) $(LISP) 441 tags=; \497 set x; \ 442 498 here=`pwd`; \ 443 499 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ … … 451 507 if test "$$subdir" = .; then :; else \ 452 508 test ! -f $$subdir/TAGS || \ 453 tags="$$tags$$include_option=$$here/$$subdir/TAGS"; \509 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ 454 510 fi; \ 455 511 done; \ … … 460 516 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 461 517 END { if (nonempty) { for (i in files) print i; }; }'`; \ 462 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 518 shift; \ 519 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ 463 520 test -n "$$unique" || unique=$$empty_fix; \ 464 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 465 $$tags $$unique; \ 521 if test $$# -gt 0; then \ 522 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 523 "$$@" $$unique; \ 524 else \ 525 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 526 $$unique; \ 527 fi; \ 466 528 fi 467 529 ctags: CTAGS 468 530 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 469 531 $(TAGS_FILES) $(LISP) 470 tags=; \471 532 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 472 533 unique=`for i in $$list; do \ … … 475 536 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 476 537 END { if (nonempty) { for (i in files) print i; }; }'`; \ 477 test -z "$(CTAGS_ARGS)$$ tags$$unique" \538 test -z "$(CTAGS_ARGS)$$unique" \ 478 539 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 479 $$ tags $$unique540 $$unique 480 541 481 542 GTAGS: 482 543 here=`$(am__cd) $(top_builddir) && pwd` \ 483 && cd$(top_srcdir) \484 && gtags -i $(GTAGS_ARGS) $$here544 && $(am__cd) $(top_srcdir) \ 545 && gtags -i $(GTAGS_ARGS) "$$here" 485 546 486 547 distclean-tags: … … 489 550 distdir: $(DISTFILES) 490 551 $(am__remove_distdir) 491 test -d $(distdir) || mkdir $(distdir)552 test -d "$(distdir)" || mkdir "$(distdir)" 492 553 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 493 554 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ … … 505 566 if test -d $$d/$$file; then \ 506 567 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ 568 if test -d "$(distdir)/$$file"; then \ 569 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 570 fi; \ 507 571 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 508 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 572 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ 573 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ 509 574 fi; \ 510 cp - pR $$d/$$file $(distdir)$$dir|| exit 1; \575 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ 511 576 else \ 512 test -f $(distdir)/$$file\513 || cp -p $$d/$$file $(distdir)/$$file\577 test -f "$(distdir)/$$file" \ 578 || cp -p $$d/$$file "$(distdir)/$$file" \ 514 579 || exit 1; \ 515 580 fi; \ 516 581 done 517 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \582 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 518 583 if test "$$subdir" = .; then :; else \ 519 584 test -d "$(distdir)/$$subdir" \ 520 585 || $(MKDIR_P) "$(distdir)/$$subdir" \ 521 586 || exit 1; \ 522 distdir=`$(am__cd) $(distdir) && pwd`; \ 523 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ 524 (cd $$subdir && \ 587 fi; \ 588 done 589 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 590 if test "$$subdir" = .; then :; else \ 591 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ 592 $(am__relativize); \ 593 new_distdir=$$reldir; \ 594 dir1=$$subdir; dir2="$(top_distdir)"; \ 595 $(am__relativize); \ 596 new_top_distdir=$$reldir; \ 597 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ 598 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ 599 ($(am__cd) $$subdir && \ 525 600 $(MAKE) $(AM_MAKEFLAGS) \ 526 top_distdir="$$ top_distdir" \527 distdir="$$ distdir/$$subdir" \601 top_distdir="$$new_top_distdir" \ 602 distdir="$$new_distdir" \ 528 603 am__remove_distdir=: \ 529 604 am__skip_length_check=: \ 605 am__skip_mode_fix=: \ 530 606 distdir) \ 531 607 || exit 1; \ 532 608 fi; \ 533 609 done 534 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ 610 -test -n "$(am__skip_mode_fix)" \ 611 || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ 535 612 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 536 613 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 537 614 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ 538 || chmod -R a+r $(distdir)615 || chmod -R a+r "$(distdir)" 539 616 dist-gzip: distdir 540 617 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz … … 594 671 mkdir $(distdir)/_inst 595 672 chmod a-w $(distdir) 673 test -d $(distdir)/_build || exit 0; \ 596 674 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ 597 675 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ 598 && cd $(distdir)/_build \ 676 && am__cwd=`pwd` \ 677 && $(am__cd) $(distdir)/_build \ 599 678 && ../configure --srcdir=.. --prefix="$$dc_install_base" \ 600 679 $(DISTCHECK_CONFIGURE_FLAGS) \ … … 618 697 && $(MAKE) $(AM_MAKEFLAGS) dist \ 619 698 && rm -rf $(DIST_ARCHIVES) \ 620 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck 699 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ 700 && cd "$$am__cwd" \ 701 || exit 1 621 702 $(am__remove_distdir) 622 703 @(echo "$(distdir) archives ready for distribution: "; \ … … 624 705 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' 625 706 distuninstallcheck: 626 @ cd $(distuninstallcheck_dir)\707 @$(am__cd) '$(distuninstallcheck_dir)' \ 627 708 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ 628 709 || { echo "ERROR: files left after uninstall:" ; \ … … 669 750 distclean-generic: 670 751 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 752 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) 671 753 672 754 maintainer-clean-generic: … … 689 771 html: html-recursive 690 772 773 html-am: 774 691 775 info: info-recursive 692 776 … … 697 781 install-dvi: install-dvi-recursive 698 782 783 install-dvi-am: 784 699 785 install-exec-am: 700 786 701 787 install-html: install-html-recursive 702 788 789 install-html-am: 790 703 791 install-info: install-info-recursive 704 792 793 install-info-am: 794 705 795 install-man: 706 796 707 797 install-pdf: install-pdf-recursive 708 798 799 install-pdf-am: 800 709 801 install-ps: install-ps-recursive 802 803 install-ps-am: 710 804 711 805 installcheck-am: … … 731 825 uninstall-am: uninstall-appsDATA 732 826 733 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am\734 install-strip827 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ 828 ctags-recursive install-am install-strip tags-recursive 735 829 736 830 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ … … 783 877 784 878 .PHONY: check-gettext update-po update-gmo force-update-gmo doc 879 785 880 # Tell versions [3.59,3.63) of GNU make to not export all variables. 786 881 # Otherwise a system limit (for SysV at least) may be exceeded. trunk/aclocal.m4
r525 r531 1 # generated automatically by aclocal 1.1 0.2-*- Autoconf -*-1 # generated automatically by aclocal 1.11 -*- Autoconf -*- 2 2 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 5 5 # This file is free software; the Free Software Foundation 6 6 # gives unlimited permission to copy and/or distribute it, … … 14 14 m4_ifndef([AC_AUTOCONF_VERSION], 15 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.6 3],,17 [m4_warning([this file was generated for autoconf 2.6 3.16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],, 17 [m4_warning([this file was generated for autoconf 2.64. 18 18 You have another version of autoconf. It may work, but is not guaranteed to. 19 19 If you have problems, you may need to regenerate the build system entirely. … … 21 21 22 22 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 23 24 # serial 52 AC_PROG_LIBTOOL 25 26 27 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 28 # ----------------------------------------------------------- 29 # If this macro is not defined by Autoconf, define it here. 30 m4_ifdef([AC_PROVIDE_IFELSE], 31 [], 32 [m4_define([AC_PROVIDE_IFELSE], 33 [m4_ifdef([AC_PROVIDE_$1], 34 [$2], [$3])])]) 35 36 37 # AC_PROG_LIBTOOL 38 # --------------- 39 AC_DEFUN([AC_PROG_LIBTOOL], 40 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 41 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 42 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 43 AC_PROVIDE_IFELSE([AC_PROG_CXX], 44 [AC_LIBTOOL_CXX], 45 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 46 ])]) 47 dnl And a similar setup for Fortran 77 support 48 AC_PROVIDE_IFELSE([AC_PROG_F77], 49 [AC_LIBTOOL_F77], 50 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 51 ])]) 52 53 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 54 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 55 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 56 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 57 [AC_LIBTOOL_GCJ], 58 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 59 [AC_LIBTOOL_GCJ], 60 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 61 [AC_LIBTOOL_GCJ], 62 [ifdef([AC_PROG_GCJ], 63 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 64 ifdef([A][M_PROG_GCJ], 65 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 66 ifdef([LT_AC_PROG_GCJ], 67 [define([LT_AC_PROG_GCJ], 68 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 69 ])])# AC_PROG_LIBTOOL 70 71 72 # _AC_PROG_LIBTOOL 73 # ---------------- 74 AC_DEFUN([_AC_PROG_LIBTOOL], 75 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 76 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 77 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 78 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 23 # 24 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 25 # 2006, 2007, 2008 Free Software Foundation, Inc. 26 # Written by Gordon Matzigkeit, 1996 27 # 28 # This file is free software; the Free Software Foundation gives 29 # unlimited permission to copy and/or distribute it, with or without 30 # modifications, as long as this notice is preserved. 31 32 m4_define([_LT_COPYING], [dnl 33 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 34 # 2006, 2007, 2008 Free Software Foundation, Inc. 35 # Written by Gordon Matzigkeit, 1996 36 # 37 # This file is part of GNU Libtool. 38 # 39 # GNU Libtool is free software; you can redistribute it and/or 40 # modify it under the terms of the GNU General Public License as 41 # published by the Free Software Foundation; either version 2 of 42 # the License, or (at your option) any later version. 43 # 44 # As a special exception to the GNU General Public License, 45 # if you distribute this file as part of a program or library that 46 # is built using GNU Libtool, you may include this file under the 47 # same distribution terms that you use for the rest of that program. 48 # 49 # GNU Libtool is distributed in the hope that it will be useful, 50 # but WITHOUT ANY WARRANTY; without even the implied warranty of 51 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 52 # GNU General Public License for more details. 53 # 54 # You should have received a copy of the GNU General Public License 55 # along with GNU Libtool; see the file COPYING. If not, a copy 56 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 57 # obtained by writing to the Free Software Foundation, Inc., 58 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 59 ]) 60 61 # serial 56 LT_INIT 62 63 64 # LT_PREREQ(VERSION) 65 # ------------------ 66 # Complain and exit if this libtool version is less that VERSION. 67 m4_defun([LT_PREREQ], 68 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 69 [m4_default([$3], 70 [m4_fatal([Libtool version $1 or higher is required], 71 63)])], 72 [$2])]) 73 74 75 # _LT_CHECK_BUILDDIR 76 # ------------------ 77 # Complain if the absolute build directory name contains unusual characters 78 m4_defun([_LT_CHECK_BUILDDIR], 79 [case `pwd` in 80 *\ * | *\ *) 81 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 82 esac 83 ]) 84 85 86 # LT_INIT([OPTIONS]) 87 # ------------------ 88 AC_DEFUN([LT_INIT], 89 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 90 AC_BEFORE([$0], [LT_LANG])dnl 91 AC_BEFORE([$0], [LT_OUTPUT])dnl 92 AC_BEFORE([$0], [LTDL_INIT])dnl 93 m4_require([_LT_CHECK_BUILDDIR])dnl 94 95 dnl Autoconf doesn't catch unexpanded LT_ macros by default: 96 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 97 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 98 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 99 dnl unless we require an AC_DEFUNed macro: 100 AC_REQUIRE([LTOPTIONS_VERSION])dnl 101 AC_REQUIRE([LTSUGAR_VERSION])dnl 102 AC_REQUIRE([LTVERSION_VERSION])dnl 103 AC_REQUIRE([LTOBSOLETE_VERSION])dnl 104 m4_require([_LT_PROG_LTMAIN])dnl 105 106 dnl Parse OPTIONS 107 _LT_SET_OPTIONS([$0], [$1]) 79 108 80 109 # This can be used to rebuild libtool when needed 81 LIBTOOL_DEPS="$ ac_aux_dir/ltmain.sh"110 LIBTOOL_DEPS="$ltmain" 82 111 83 112 # Always use our own libtool. … … 85 114 AC_SUBST(LIBTOOL)dnl 86 115 87 # Prevent multiple expansion 88 define([AC_PROG_LIBTOOL], []) 89 ])# _AC_PROG_LIBTOOL 90 91 92 # AC_LIBTOOL_SETUP 93 # ---------------- 94 AC_DEFUN([AC_LIBTOOL_SETUP], 95 [AC_PREREQ(2.50)dnl 96 AC_REQUIRE([AC_ENABLE_SHARED])dnl 97 AC_REQUIRE([AC_ENABLE_STATIC])dnl 98 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 99 AC_REQUIRE([AC_CANONICAL_HOST])dnl 116 _LT_SETUP 117 118 # Only expand once: 119 m4_define([LT_INIT]) 120 ])# LT_INIT 121 122 # Old names: 123 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 124 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 125 dnl aclocal-1.4 backwards compatibility: 126 dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 127 dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 128 129 130 # _LT_CC_BASENAME(CC) 131 # ------------------- 132 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 133 m4_defun([_LT_CC_BASENAME], 134 [for cc_temp in $1""; do 135 case $cc_temp in 136 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 137 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 138 \-*) ;; 139 *) break;; 140 esac 141 done 142 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 143 ]) 144 145 146 # _LT_FILEUTILS_DEFAULTS 147 # ---------------------- 148 # It is okay to use these file commands and assume they have been set 149 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 150 m4_defun([_LT_FILEUTILS_DEFAULTS], 151 [: ${CP="cp -f"} 152 : ${MV="mv -f"} 153 : ${RM="rm -f"} 154 ])# _LT_FILEUTILS_DEFAULTS 155 156 157 # _LT_SETUP 158 # --------- 159 m4_defun([_LT_SETUP], 160 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 100 161 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 162 _LT_DECL([], [host_alias], [0], [The host system])dnl 163 _LT_DECL([], [host], [0])dnl 164 _LT_DECL([], [host_os], [0])dnl 165 dnl 166 _LT_DECL([], [build_alias], [0], [The build system])dnl 167 _LT_DECL([], [build], [0])dnl 168 _LT_DECL([], [build_os], [0])dnl 169 dnl 101 170 AC_REQUIRE([AC_PROG_CC])dnl 102 AC_REQUIRE([AC_PROG_LD])dnl 103 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 104 AC_REQUIRE([AC_PROG_NM])dnl 105 171 AC_REQUIRE([LT_PATH_LD])dnl 172 AC_REQUIRE([LT_PATH_NM])dnl 173 dnl 106 174 AC_REQUIRE([AC_PROG_LN_S])dnl 107 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 108 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 109 AC_REQUIRE([AC_OBJEXT])dnl 110 AC_REQUIRE([AC_EXEEXT])dnl 175 test -z "$LN_S" && LN_S="ln -s" 176 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 111 177 dnl 112 AC_LIBTOOL_SYS_MAX_CMD_LEN 113 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 114 AC_LIBTOOL_OBJDIR 115 116 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 117 _LT_AC_PROG_ECHO_BACKSLASH 178 AC_REQUIRE([LT_CMD_MAX_LEN])dnl 179 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 180 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 181 dnl 182 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 183 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 184 m4_require([_LT_CMD_RELOAD])dnl 185 m4_require([_LT_CHECK_MAGIC_METHOD])dnl 186 m4_require([_LT_CMD_OLD_ARCHIVE])dnl 187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 188 189 _LT_CONFIG_LIBTOOL_INIT([ 190 # See if we are running on zsh, and set the options which allow our 191 # commands through without removal of \ escapes INIT. 192 if test -n "\${ZSH_VERSION+set}" ; then 193 setopt NO_GLOB_SUBST 194 fi 195 ]) 196 if test -n "${ZSH_VERSION+set}" ; then 197 setopt NO_GLOB_SUBST 198 fi 199 200 _LT_CHECK_OBJDIR 201 202 m4_require([_LT_TAG_COMPILER])dnl 203 _LT_PROG_ECHO_BACKSLASH 118 204 119 205 case $host_os in … … 131 217 # Sed substitution that helps us do robust quoting. It backslashifies 132 218 # metacharacters that are still active within double-quoted strings. 133 Xsed='sed -e 1s/^X//' 134 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 219 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 135 220 136 221 # Same as above, but do not quote variable references. 137 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 222 double_quote_subst='s/\([["`\\]]\)/\\\1/g' 138 223 139 224 # Sed substitution to delay expansion of an escaped shell variable in a … … 141 226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 142 227 228 # Sed substitution to delay expansion of an escaped single quote. 229 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 230 143 231 # Sed substitution to avoid accidental globbing in evaled expressions 144 232 no_glob_subst='s/\*/\\\*/g' 145 233 146 # Constants:147 rm="rm -f"148 149 234 # Global variables: 150 default_ofile=libtool235 ofile=libtool 151 236 can_build_shared=yes 152 237 … … 154 239 # which needs '.lib'). 155 240 libext=a 156 ltmain="$ac_aux_dir/ltmain.sh" 157 ofile="$default_ofile" 241 158 242 with_gnu_ld="$lt_cv_prog_gnu_ld" 159 160 AC_CHECK_TOOL(AR, ar, false)161 AC_CHECK_TOOL(RANLIB, ranlib, :)162 AC_CHECK_TOOL(STRIP, strip, :)163 243 164 244 old_CC="$CC" … … 166 246 167 247 # Set sane defaults for various variables 168 test -z "$AR" && AR=ar169 test -z "$AR_FLAGS" && AR_FLAGS=cru170 test -z "$AS" && AS=as171 248 test -z "$CC" && CC=cc 172 249 test -z "$LTCC" && LTCC=$CC 173 250 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 174 test -z "$DLLTOOL" && DLLTOOL=dlltool175 251 test -z "$LD" && LD=ld 176 test -z "$LN_S" && LN_S="ln -s" 252 test -z "$ac_objext" && ac_objext=o 253 254 _LT_CC_BASENAME([$compiler]) 255 256 # Only perform the check for file, if the check method requires it 177 257 test -z "$MAGIC_CMD" && MAGIC_CMD=file 178 test -z "$NM" && NM=nm179 test -z "$SED" && SED=sed180 test -z "$OBJDUMP" && OBJDUMP=objdump181 test -z "$RANLIB" && RANLIB=:182 test -z "$STRIP" && STRIP=:183 test -z "$ac_objext" && ac_objext=o184 185 # Determine commands to create old-style static archives.186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'187 old_postinstall_cmds='chmod 644 $oldlib'188 old_postuninstall_cmds=189 190 if test -n "$RANLIB"; then191 case $host_os in192 openbsd*)193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"194 ;;195 *)196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"197 ;;198 esac199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"200 fi201 202 _LT_CC_BASENAME([$compiler])203 204 # Only perform the check for file, if the check method requires it205 258 case $deplibs_check_method in 206 259 file_magic*) 207 260 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 208 AC_PATH_MAGIC261 _LT_PATH_MAGIC 209 262 fi 210 263 ;; 211 264 esac 212 265 213 _LT_REQUIRED_DARWIN_CHECKS214 215 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)216 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],217 enable_win32_dll=yes, enable_win32_dll=no)218 219 AC_ARG_ENABLE([libtool-lock],220 [AC_HELP_STRING([--disable-libtool-lock],221 [avoid locking (might break parallel builds)])])222 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes223 224 AC_ARG_WITH([pic],225 [AC_HELP_STRING([--with-pic],226 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],227 [pic_mode="$withval"],228 [pic_mode=default])229 test -z "$pic_mode" && pic_mode=default230 231 266 # Use C for the default configuration in the libtool script 232 tagname= 233 AC_LIBTOOL_LANG_C_CONFIG 234 _LT_AC_TAGCONFIG 235 ])# AC_LIBTOOL_SETUP 236 237 238 # _LT_AC_SYS_COMPILER 267 LT_SUPPORTED_TAG([CC]) 268 _LT_LANG_C_CONFIG 269 _LT_LANG_DEFAULT_CONFIG 270 _LT_CONFIG_COMMANDS 271 ])# _LT_SETUP 272 273 274 # _LT_PROG_LTMAIN 275 # --------------- 276 # Note that this code is called both from `configure', and `config.status' 277 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 278 # `config.status' has no value for ac_aux_dir unless we are using Automake, 279 # so we pass a copy along to make sure it has a sensible value anyway. 280 m4_defun([_LT_PROG_LTMAIN], 281 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 282 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 283 ltmain="$ac_aux_dir/ltmain.sh" 284 ])# _LT_PROG_LTMAIN 285 286 287 288 # So that we can recreate a full libtool script including additional 289 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 290 # in macros and then make a single call at the end using the `libtool' 291 # label. 292 293 294 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 295 # ---------------------------------------- 296 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 297 m4_define([_LT_CONFIG_LIBTOOL_INIT], 298 [m4_ifval([$1], 299 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 300 [$1 301 ])])]) 302 303 # Initialize. 304 m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 305 306 307 # _LT_CONFIG_LIBTOOL([COMMANDS]) 308 # ------------------------------ 309 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 310 m4_define([_LT_CONFIG_LIBTOOL], 311 [m4_ifval([$1], 312 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 313 [$1 314 ])])]) 315 316 # Initialize. 317 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 318 319 320 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 321 # ----------------------------------------------------- 322 m4_defun([_LT_CONFIG_SAVE_COMMANDS], 323 [_LT_CONFIG_LIBTOOL([$1]) 324 _LT_CONFIG_LIBTOOL_INIT([$2]) 325 ]) 326 327 328 # _LT_FORMAT_COMMENT([COMMENT]) 329 # ----------------------------- 330 # Add leading comment marks to the start of each line, and a trailing 331 # full-stop to the whole comment if one is not present already. 332 m4_define([_LT_FORMAT_COMMENT], 333 [m4_ifval([$1], [ 334 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 335 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 336 )]) 337 338 339 340 341 342 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 343 # ------------------------------------------------------------------- 344 # CONFIGNAME is the name given to the value in the libtool script. 345 # VARNAME is the (base) name used in the configure script. 346 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on 347 # VARNAME. Any other value will be used directly. 348 m4_define([_LT_DECL], 349 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 350 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 351 [m4_ifval([$1], [$1], [$2])]) 352 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 353 m4_ifval([$4], 354 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 355 lt_dict_add_subkey([lt_decl_dict], [$2], 356 [tagged?], [m4_ifval([$5], [yes], [no])])]) 357 ]) 358 359 360 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 361 # -------------------------------------------------------- 362 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 363 364 365 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 366 # ------------------------------------------------ 367 m4_define([lt_decl_tag_varnames], 368 [_lt_decl_filter([tagged?], [yes], $@)]) 369 370 371 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 372 # --------------------------------------------------------- 373 m4_define([_lt_decl_filter], 374 [m4_case([$#], 375 [0], [m4_fatal([$0: too few arguments: $#])], 376 [1], [m4_fatal([$0: too few arguments: $#: $1])], 377 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 378 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 379 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 380 ]) 381 382 383 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 384 # -------------------------------------------------- 385 m4_define([lt_decl_quote_varnames], 386 [_lt_decl_filter([value], [1], $@)]) 387 388 389 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 390 # --------------------------------------------------- 391 m4_define([lt_decl_dquote_varnames], 392 [_lt_decl_filter([value], [2], $@)]) 393 394 395 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 396 # --------------------------------------------------- 397 m4_define([lt_decl_varnames_tagged], 398 [m4_assert([$# <= 2])dnl 399 _$0(m4_quote(m4_default([$1], [[, ]])), 400 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 401 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 402 m4_define([_lt_decl_varnames_tagged], 403 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 404 405 406 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 407 # ------------------------------------------------ 408 m4_define([lt_decl_all_varnames], 409 [_$0(m4_quote(m4_default([$1], [[, ]])), 410 m4_if([$2], [], 411 m4_quote(lt_decl_varnames), 412 m4_quote(m4_shift($@))))[]dnl 413 ]) 414 m4_define([_lt_decl_all_varnames], 415 [lt_join($@, lt_decl_varnames_tagged([$1], 416 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 417 ]) 418 419 420 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) 421 # ------------------------------------ 422 # Quote a variable value, and forward it to `config.status' so that its 423 # declaration there will have the same value as in `configure'. VARNAME 424 # must have a single quote delimited value for this to work. 425 m4_define([_LT_CONFIG_STATUS_DECLARE], 426 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`']) 427 428 429 # _LT_CONFIG_STATUS_DECLARATIONS 430 # ------------------------------ 431 # We delimit libtool config variables with single quotes, so when 432 # we write them to config.status, we have to be sure to quote all 433 # embedded single quotes properly. In configure, this macro expands 434 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: 435 # 436 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`' 437 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 438 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 439 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 440 441 442 # _LT_LIBTOOL_TAGS 443 # ---------------- 444 # Output comment and list of tags supported by the script 445 m4_defun([_LT_LIBTOOL_TAGS], 446 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 447 available_tags="_LT_TAGS"dnl 448 ]) 449 450 451 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 452 # ----------------------------------- 453 # Extract the dictionary values for VARNAME (optionally with TAG) and 454 # expand to a commented shell variable setting: 455 # 456 # # Some comment about what VAR is for. 457 # visible_name=$lt_internal_name 458 m4_define([_LT_LIBTOOL_DECLARE], 459 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 460 [description])))[]dnl 461 m4_pushdef([_libtool_name], 462 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 463 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 464 [0], [_libtool_name=[$]$1], 465 [1], [_libtool_name=$lt_[]$1], 466 [2], [_libtool_name=$lt_[]$1], 467 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 468 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 469 ]) 470 471 472 # _LT_LIBTOOL_CONFIG_VARS 473 # ----------------------- 474 # Produce commented declarations of non-tagged libtool config variables 475 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 476 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG 477 # section) are produced by _LT_LIBTOOL_TAG_VARS. 478 m4_defun([_LT_LIBTOOL_CONFIG_VARS], 479 [m4_foreach([_lt_var], 480 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 481 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 482 483 484 # _LT_LIBTOOL_TAG_VARS(TAG) 485 # ------------------------- 486 m4_define([_LT_LIBTOOL_TAG_VARS], 487 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 488 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 489 490 491 # _LT_TAGVAR(VARNAME, [TAGNAME]) 492 # ------------------------------ 493 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 494 495 496 # _LT_CONFIG_COMMANDS 239 497 # ------------------- 240 AC_DEFUN([_LT_AC_SYS_COMPILER], 498 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 499 # variables for single and double quote escaping we saved from calls 500 # to _LT_DECL, we can put quote escaped variables declarations 501 # into `config.status', and then the shell code to quote escape them in 502 # for loops in `config.status'. Finally, any additional code accumulated 503 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 504 m4_defun([_LT_CONFIG_COMMANDS], 505 [AC_PROVIDE_IFELSE([LT_OUTPUT], 506 dnl If the libtool generation code has been placed in $CONFIG_LT, 507 dnl instead of duplicating it all over again into config.status, 508 dnl then we will have config.status run $CONFIG_LT later, so it 509 dnl needs to know what name is stored there: 510 [AC_CONFIG_COMMANDS([libtool], 511 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 512 dnl If the libtool generation code is destined for config.status, 513 dnl expand the accumulated commands and init code now: 514 [AC_CONFIG_COMMANDS([libtool], 515 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 516 ])#_LT_CONFIG_COMMANDS 517 518 519 # Initialize. 520 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 521 [ 522 523 # The HP-UX ksh and POSIX shell print the target directory to stdout 524 # if CDPATH is set. 525 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 526 527 sed_quote_subst='$sed_quote_subst' 528 double_quote_subst='$double_quote_subst' 529 delay_variable_subst='$delay_variable_subst' 530 _LT_CONFIG_STATUS_DECLARATIONS 531 LTCC='$LTCC' 532 LTCFLAGS='$LTCFLAGS' 533 compiler='$compiler_DEFAULT' 534 535 # Quote evaled strings. 536 for var in lt_decl_all_varnames([[ \ 537 ]], lt_decl_quote_varnames); do 538 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 539 *[[\\\\\\\`\\"\\\$]]*) 540 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 541 ;; 542 *) 543 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 544 ;; 545 esac 546 done 547 548 # Double-quote double-evaled strings. 549 for var in lt_decl_all_varnames([[ \ 550 ]], lt_decl_dquote_varnames); do 551 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 552 *[[\\\\\\\`\\"\\\$]]*) 553 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 554 ;; 555 *) 556 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 557 ;; 558 esac 559 done 560 561 # Fix-up fallback echo if it was mangled by the above quoting rules. 562 case \$lt_ECHO in 563 *'\\\[$]0 --fallback-echo"')dnl " 564 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\` 565 ;; 566 esac 567 568 _LT_OUTPUT_LIBTOOL_INIT 569 ]) 570 571 572 # LT_OUTPUT 573 # --------- 574 # This macro allows early generation of the libtool script (before 575 # AC_OUTPUT is called), incase it is used in configure for compilation 576 # tests. 577 AC_DEFUN([LT_OUTPUT], 578 [: ${CONFIG_LT=./config.lt} 579 AC_MSG_NOTICE([creating $CONFIG_LT]) 580 cat >"$CONFIG_LT" <<_LTEOF 581 #! $SHELL 582 # Generated by $as_me. 583 # Run this file to recreate a libtool stub with the current configuration. 584 585 lt_cl_silent=false 586 SHELL=\${CONFIG_SHELL-$SHELL} 587 _LTEOF 588 589 cat >>"$CONFIG_LT" <<\_LTEOF 590 AS_SHELL_SANITIZE 591 _AS_PREPARE 592 593 exec AS_MESSAGE_FD>&1 594 exec AS_MESSAGE_LOG_FD>>config.log 595 { 596 echo 597 AS_BOX([Running $as_me.]) 598 } >&AS_MESSAGE_LOG_FD 599 600 lt_cl_help="\ 601 \`$as_me' creates a local libtool stub from the current configuration, 602 for use in further configure time tests before the real libtool is 603 generated. 604 605 Usage: $[0] [[OPTIONS]] 606 607 -h, --help print this help, then exit 608 -V, --version print version number, then exit 609 -q, --quiet do not print progress messages 610 -d, --debug don't remove temporary files 611 612 Report bugs to <bug-libtool@gnu.org>." 613 614 lt_cl_version="\ 615 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 616 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 617 configured by $[0], generated by m4_PACKAGE_STRING. 618 619 Copyright (C) 2008 Free Software Foundation, Inc. 620 This config.lt script is free software; the Free Software Foundation 621 gives unlimited permision to copy, distribute and modify it." 622 623 while test $[#] != 0 624 do 625 case $[1] in 626 --version | --v* | -V ) 627 echo "$lt_cl_version"; exit 0 ;; 628 --help | --h* | -h ) 629 echo "$lt_cl_help"; exit 0 ;; 630 --debug | --d* | -d ) 631 debug=: ;; 632 --quiet | --q* | --silent | --s* | -q ) 633 lt_cl_silent=: ;; 634 635 -*) AC_MSG_ERROR([unrecognized option: $[1] 636 Try \`$[0] --help' for more information.]) ;; 637 638 *) AC_MSG_ERROR([unrecognized argument: $[1] 639 Try \`$[0] --help' for more information.]) ;; 640 esac 641 shift 642 done 643 644 if $lt_cl_silent; then 645 exec AS_MESSAGE_FD>/dev/null 646 fi 647 _LTEOF 648 649 cat >>"$CONFIG_LT" <<_LTEOF 650 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT 651 _LTEOF 652 653 cat >>"$CONFIG_LT" <<\_LTEOF 654 AC_MSG_NOTICE([creating $ofile]) 655 _LT_OUTPUT_LIBTOOL_COMMANDS 656 AS_EXIT(0) 657 _LTEOF 658 chmod +x "$CONFIG_LT" 659 660 # configure is writing to config.log, but config.lt does its own redirection, 661 # appending to config.log, which fails on DOS, as config.log is still kept 662 # open by configure. Here we exec the FD to /dev/null, effectively closing 663 # config.log, so it can be properly (re)opened and appended to by config.lt. 664 if test "$no_create" != yes; then 665 lt_cl_success=: 666 test "$silent" = yes && 667 lt_config_lt_args="$lt_config_lt_args --quiet" 668 exec AS_MESSAGE_LOG_FD>/dev/null 669 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 670 exec AS_MESSAGE_LOG_FD>>config.log 671 $lt_cl_success || AS_EXIT(1) 672 fi 673 ])# LT_OUTPUT 674 675 676 # _LT_CONFIG(TAG) 677 # --------------- 678 # If TAG is the built-in tag, create an initial libtool script with a 679 # default configuration from the untagged config vars. Otherwise add code 680 # to config.status for appending the configuration named by TAG from the 681 # matching tagged config vars. 682 m4_defun([_LT_CONFIG], 683 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 684 _LT_CONFIG_SAVE_COMMANDS([ 685 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 686 m4_if(_LT_TAG, [C], [ 687 # See if we are running on zsh, and set the options which allow our 688 # commands through without removal of \ escapes. 689 if test -n "${ZSH_VERSION+set}" ; then 690 setopt NO_GLOB_SUBST 691 fi 692 693 cfgfile="${ofile}T" 694 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 695 $RM "$cfgfile" 696 697 cat <<_LT_EOF >> "$cfgfile" 698 #! $SHELL 699 700 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 701 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 702 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 703 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 704 # 705 _LT_COPYING 706 _LT_LIBTOOL_TAGS 707 708 # ### BEGIN LIBTOOL CONFIG 709 _LT_LIBTOOL_CONFIG_VARS 710 _LT_LIBTOOL_TAG_VARS 711 # ### END LIBTOOL CONFIG 712 713 _LT_EOF 714 715 case $host_os in 716 aix3*) 717 cat <<\_LT_EOF >> "$cfgfile" 718 # AIX sometimes has problems with the GCC collect2 program. For some 719 # reason, if we set the COLLECT_NAMES environment variable, the problems 720 # vanish in a puff of smoke. 721 if test "X${COLLECT_NAMES+set}" != Xset; then 722 COLLECT_NAMES= 723 export COLLECT_NAMES 724 fi 725 _LT_EOF 726 ;; 727 esac 728 729 _LT_PROG_LTMAIN 730 731 # We use sed instead of cat because bash on DJGPP gets confused if 732 # if finds mixed CR/LF and LF-only lines. Since sed operates in 733 # text mode, it properly converts lines to CR/LF. This bash problem 734 # is reportedly fixed, but why not run on old versions too? 735 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 736 || (rm -f "$cfgfile"; exit 1) 737 738 _LT_PROG_XSI_SHELLFNS 739 740 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 741 || (rm -f "$cfgfile"; exit 1) 742 743 mv -f "$cfgfile" "$ofile" || 744 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 745 chmod +x "$ofile" 746 ], 747 [cat <<_LT_EOF >> "$ofile" 748 749 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 750 dnl in a comment (ie after a #). 751 # ### BEGIN LIBTOOL TAG CONFIG: $1 752 _LT_LIBTOOL_TAG_VARS(_LT_TAG) 753 # ### END LIBTOOL TAG CONFIG: $1 754 _LT_EOF 755 ])dnl /m4_if 756 ], 757 [m4_if([$1], [], [ 758 PACKAGE='$PACKAGE' 759 VERSION='$VERSION' 760 TIMESTAMP='$TIMESTAMP' 761 RM='$RM' 762 ofile='$ofile'], []) 763 ])dnl /_LT_CONFIG_SAVE_COMMANDS 764 ])# _LT_CONFIG 765 766 767 # LT_SUPPORTED_TAG(TAG) 768 # --------------------- 769 # Trace this macro to discover what tags are supported by the libtool 770 # --tag option, using: 771 # autoconf --trace 'LT_SUPPORTED_TAG:$1' 772 AC_DEFUN([LT_SUPPORTED_TAG], []) 773 774 775 # C support is built-in for now 776 m4_define([_LT_LANG_C_enabled], []) 777 m4_define([_LT_TAGS], []) 778 779 780 # LT_LANG(LANG) 781 # ------------- 782 # Enable libtool support for the given language if not already enabled. 783 AC_DEFUN([LT_LANG], 784 [AC_BEFORE([$0], [LT_OUTPUT])dnl 785 m4_case([$1], 786 [C], [_LT_LANG(C)], 787 [C++], [_LT_LANG(CXX)], 788 [Java], [_LT_LANG(GCJ)], 789 [Fortran 77], [_LT_LANG(F77)], 790 [Fortran], [_LT_LANG(FC)], 791 [Windows Resource], [_LT_LANG(RC)], 792 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 793 [_LT_LANG($1)], 794 [m4_fatal([$0: unsupported language: "$1"])])])dnl 795 ])# LT_LANG 796 797 798 # _LT_LANG(LANGNAME) 799 # ------------------ 800 m4_defun([_LT_LANG], 801 [m4_ifdef([_LT_LANG_]$1[_enabled], [], 802 [LT_SUPPORTED_TAG([$1])dnl 803 m4_append([_LT_TAGS], [$1 ])dnl 804 m4_define([_LT_LANG_]$1[_enabled], [])dnl 805 _LT_LANG_$1_CONFIG($1)])dnl 806 ])# _LT_LANG 807 808 809 # _LT_LANG_DEFAULT_CONFIG 810 # ----------------------- 811 m4_defun([_LT_LANG_DEFAULT_CONFIG], 812 [AC_PROVIDE_IFELSE([AC_PROG_CXX], 813 [LT_LANG(CXX)], 814 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 815 816 AC_PROVIDE_IFELSE([AC_PROG_F77], 817 [LT_LANG(F77)], 818 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 819 820 AC_PROVIDE_IFELSE([AC_PROG_FC], 821 [LT_LANG(FC)], 822 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 823 824 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 825 dnl pulling things in needlessly. 826 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 827 [LT_LANG(GCJ)], 828 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 829 [LT_LANG(GCJ)], 830 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 831 [LT_LANG(GCJ)], 832 [m4_ifdef([AC_PROG_GCJ], 833 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 834 m4_ifdef([A][M_PROG_GCJ], 835 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 836 m4_ifdef([LT_PROG_GCJ], 837 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 838 839 AC_PROVIDE_IFELSE([LT_PROG_RC], 840 [LT_LANG(RC)], 841 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 842 ])# _LT_LANG_DEFAULT_CONFIG 843 844 # Obsolete macros: 845 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 846 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 847 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 848 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 849 dnl aclocal-1.4 backwards compatibility: 850 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 851 dnl AC_DEFUN([AC_LIBTOOL_F77], []) 852 dnl AC_DEFUN([AC_LIBTOOL_FC], []) 853 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 854 855 856 # _LT_TAG_COMPILER 857 # ---------------- 858 m4_defun([_LT_TAG_COMPILER], 241 859 [AC_REQUIRE([AC_PROG_CC])dnl 860 861 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 862 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 863 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 864 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 242 865 243 866 # If no C compiler was specified, use CC. … … 249 872 # Allow CC to be a program name with arguments. 250 873 compiler=$CC 251 ])# _LT_AC_SYS_COMPILER 252 253 254 # _LT_CC_BASENAME(CC) 255 # ------------------- 256 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 257 AC_DEFUN([_LT_CC_BASENAME], 258 [for cc_temp in $1""; do 259 case $cc_temp in 260 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 261 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 262 \-*) ;; 263 *) break;; 264 esac 265 done 266 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 267 ]) 874 ])# _LT_TAG_COMPILER 268 875 269 876 … … 272 879 # Check for compiler boilerplate output or warnings with 273 880 # the simple compiler test code. 274 AC_DEFUN([_LT_COMPILER_BOILERPLATE],275 [ AC_REQUIRE([LT_AC_PROG_SED])dnl881 m4_defun([_LT_COMPILER_BOILERPLATE], 882 [m4_require([_LT_DECL_SED])dnl 276 883 ac_outfile=conftest.$ac_objext 277 884 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 278 885 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 279 886 _lt_compiler_boilerplate=`cat conftest.err` 280 $ rmconftest*887 $RM conftest* 281 888 ])# _LT_COMPILER_BOILERPLATE 282 889 … … 286 893 # Check for linker boilerplate output or warnings with 287 894 # the simple link test code. 288 AC_DEFUN([_LT_LINKER_BOILERPLATE],289 [ AC_REQUIRE([LT_AC_PROG_SED])dnl895 m4_defun([_LT_LINKER_BOILERPLATE], 896 [m4_require([_LT_DECL_SED])dnl 290 897 ac_outfile=conftest.$ac_objext 291 898 echo "$lt_simple_link_test_code" >conftest.$ac_ext 292 899 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 293 900 _lt_linker_boilerplate=`cat conftest.err` 294 $ rm-r conftest*901 $RM -r conftest* 295 902 ])# _LT_LINKER_BOILERPLATE 296 903 297 904 # _LT_REQUIRED_DARWIN_CHECKS 298 # -------------------------- 299 # Check for some things on darwin 300 AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ 905 # ------------------------- 906 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 301 907 case $host_os in 302 908 rhapsody* | darwin*) 303 909 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 304 910 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 911 AC_CHECK_TOOL([LIPO], [lipo], [:]) 912 AC_CHECK_TOOL([OTOOL], [otool], [:]) 913 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 914 _LT_DECL([], [DSYMUTIL], [1], 915 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 916 _LT_DECL([], [NMEDIT], [1], 917 [Tool to change global to local symbols on Mac OS X]) 918 _LT_DECL([], [LIPO], [1], 919 [Tool to manipulate fat objects and archives on Mac OS X]) 920 _LT_DECL([], [OTOOL], [1], 921 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 922 _LT_DECL([], [OTOOL64], [1], 923 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 305 924 306 925 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 307 926 [lt_cv_apple_cc_single_mod=no 308 927 if test -z "${LT_MULTI_MODULE}"; then 309 # By default we will add the -single_module flag. You can override 310 # by either setting the environment variable LT_MULTI_MODULE 311 # non-empty at configure time, or by adding -multi_module to the 312 # link flags. 313 echo "int foo(void){return 1;}" > conftest.c 314 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 315 -dynamiclib ${wl}-single_module conftest.c 316 if test -f libconftest.dylib; then 317 lt_cv_apple_cc_single_mod=yes 318 rm -rf libconftest.dylib* 319 fi 320 rm conftest.c 928 # By default we will add the -single_module flag. You can override 929 # by either setting the environment variable LT_MULTI_MODULE 930 # non-empty at configure time, or by adding -multi_module to the 931 # link flags. 932 rm -rf libconftest.dylib* 933 echo "int foo(void){return 1;}" > conftest.c 934 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 935 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 936 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 937 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 938 _lt_result=$? 939 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 940 lt_cv_apple_cc_single_mod=yes 941 else 942 cat conftest.err >&AS_MESSAGE_LOG_FD 943 fi 944 rm -rf libconftest.dylib* 945 rm -f conftest.* 321 946 fi]) 322 947 AC_CACHE_CHECK([for -exported_symbols_list linker flag], … … 327 952 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 328 953 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 329 [lt_cv_ld_exported_symbols_list=yes],330 [lt_cv_ld_exported_symbols_list=no])331 LDFLAGS="$save_LDFLAGS"954 [lt_cv_ld_exported_symbols_list=yes], 955 [lt_cv_ld_exported_symbols_list=no]) 956 LDFLAGS="$save_LDFLAGS" 332 957 ]) 333 958 case $host_os in 334 rhapsody* | darwin1.[[012 3]])959 rhapsody* | darwin1.[[012]]) 335 960 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 336 961 darwin1.*) 337 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;338 darwin*) 962 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 963 darwin*) # darwin 5.x on 339 964 # if running on 10.5 or later, the deployment target defaults 340 965 # to the OS version, if on x86, and 10.4, the deployment 341 966 # target defaults to 10.4. Don't you love it? 342 967 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 343 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;345 10.[[012]]*)346 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;347 10.*)348 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;968 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 969 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 970 10.[[012]]*) 971 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 972 10.*) 973 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 349 974 esac 350 975 ;; … … 356 981 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 357 982 else 358 _lt_dar_export_syms= "~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"983 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 359 984 fi 360 985 if test "$DSYMUTIL" != ":"; then 361 _lt_dsymutil= "~$DSYMUTIL \$lib || :"986 _lt_dsymutil='~$DSYMUTIL $lib || :' 362 987 else 363 988 _lt_dsymutil= … … 367 992 ]) 368 993 369 # _LT_AC_SYS_LIBPATH_AIX 370 # ---------------------- 994 995 # _LT_DARWIN_LINKER_FEATURES 996 # -------------------------- 997 # Checks for linker and compiler features on darwin 998 m4_defun([_LT_DARWIN_LINKER_FEATURES], 999 [ 1000 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1001 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1002 _LT_TAGVAR(hardcode_direct, $1)=no 1003 _LT_TAGVAR(hardcode_automatic, $1)=yes 1004 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1005 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1006 _LT_TAGVAR(link_all_deplibs, $1)=yes 1007 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 1008 case $cc_basename in 1009 ifort*) _lt_dar_can_shared=yes ;; 1010 *) _lt_dar_can_shared=$GCC ;; 1011 esac 1012 if test "$_lt_dar_can_shared" = "yes"; then 1013 output_verbose_link_cmd=echo 1014 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 1015 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 1016 _LT_TAGVAR(archive_expsym_cmds, $1)="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}" 1017 _LT_TAGVAR(module_expsym_cmds, $1)="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}" 1018 m4_if([$1], [CXX], 1019 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 1020 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 1021 _LT_TAGVAR(archive_expsym_cmds, $1)="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}" 1022 fi 1023 ],[]) 1024 else 1025 _LT_TAGVAR(ld_shlibs, $1)=no 1026 fi 1027 ]) 1028 1029 # _LT_SYS_MODULE_PATH_AIX 1030 # ----------------------- 371 1031 # Links a minimal program and checks the executable 372 1032 # for the system default hardcoded library path. In most cases, … … 375 1035 # If we don't find anything, use the default library path according 376 1036 # to the aix ld manual. 377 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],378 [ AC_REQUIRE([LT_AC_PROG_SED])dnl1037 m4_defun([_LT_SYS_MODULE_PATH_AIX], 1038 [m4_require([_LT_DECL_SED])dnl 379 1039 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 380 1040 lt_aix_libpath_sed=' … … 391 1051 fi],[]) 392 1052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 393 ])# _LT_ AC_SYS_LIBPATH_AIX394 395 396 # _LT_ AC_SHELL_INIT(ARG)397 # ------------------- ---398 AC_DEFUN([_LT_AC_SHELL_INIT],1053 ])# _LT_SYS_MODULE_PATH_AIX 1054 1055 1056 # _LT_SHELL_INIT(ARG) 1057 # ------------------- 1058 m4_define([_LT_SHELL_INIT], 399 1059 [ifdef([AC_DIVERSION_NOTICE], 400 1060 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], … … 402 1062 $1 403 1063 AC_DIVERT_POP 404 ])# _LT_ AC_SHELL_INIT405 406 407 # _LT_ AC_PROG_ECHO_BACKSLASH408 # ----------------------- ---1064 ])# _LT_SHELL_INIT 1065 1066 1067 # _LT_PROG_ECHO_BACKSLASH 1068 # ----------------------- 409 1069 # Add some code to the start of the generated configure script which 410 1070 # will find an echo command which doesn't interpret backslashes. 411 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],412 [_LT_ AC_SHELL_INIT([1071 m4_defun([_LT_PROG_ECHO_BACKSLASH], 1072 [_LT_SHELL_INIT([ 413 1073 # Check that we are running under the correct shell. 414 1074 SHELL=${CONFIG_SHELL-/bin/sh} 415 1075 416 case X$ ECHO in1076 case X$lt_ECHO in 417 1077 X*--fallback-echo) 418 1078 # Remove one level of quotation (which was required for Make). 419 ECHO=`echo "$ ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`1079 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 420 1080 ;; 421 1081 esac 422 1082 423 echo=${ECHO-echo}1083 ECHO=${lt_ECHO-echo} 424 1084 if test "X[$]1" = X--no-reexec; then 425 1085 # Discard the --no-reexec flag, and continue. … … 428 1088 # Avoid inline document here, it may be left over 429 1089 : 430 elif test "X` ($echo '\t')2>/dev/null`" = 'X\t' ; then431 # Yippee, $ echoworks!1090 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 1091 # Yippee, $ECHO works! 432 1092 : 433 1093 else … … 439 1099 # used as fallback echo 440 1100 shift 441 cat << EOF1101 cat <<_LT_EOF 442 1102 [$]* 443 EOF1103 _LT_EOF 444 1104 exit 0 445 1105 fi … … 449 1109 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 450 1110 451 if test -z "$ECHO"; then 452 if test "X${echo_test_string+set}" != Xset; then 453 # find a string as large as possible, as long as the shell can cope with it 454 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 455 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 456 if (echo_test_string=`eval $cmd`) 2>/dev/null && 457 echo_test_string=`eval $cmd` && 458 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 459 then 460 break 461 fi 462 done 463 fi 464 465 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 466 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 467 test "X$echo_testing_string" = "X$echo_test_string"; then 468 : 469 else 470 # The Solaris, AIX, and Digital Unix default echo programs unquote 471 # backslashes. This makes it impossible to quote backslashes using 472 # echo "$something" | sed 's/\\/\\\\/g' 473 # 474 # So, first we look for a working echo in the user's PATH. 475 476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 477 for dir in $PATH /usr/ucb; do 1111 if test -z "$lt_ECHO"; then 1112 if test "X${echo_test_string+set}" != Xset; then 1113 # find a string as large as possible, as long as the shell can cope with it 1114 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1115 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1116 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 1117 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 1118 then 1119 break 1120 fi 1121 done 1122 fi 1123 1124 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1125 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 1126 test "X$echo_testing_string" = "X$echo_test_string"; then 1127 : 1128 else 1129 # The Solaris, AIX, and Digital Unix default echo programs unquote 1130 # backslashes. This makes it impossible to quote backslashes using 1131 # echo "$something" | sed 's/\\/\\\\/g' 1132 # 1133 # So, first we look for a working echo in the user's PATH. 1134 1135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 1136 for dir in $PATH /usr/ucb; do 1137 IFS="$lt_save_ifs" 1138 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 1139 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 1140 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 1141 test "X$echo_testing_string" = "X$echo_test_string"; then 1142 ECHO="$dir/echo" 1143 break 1144 fi 1145 done 478 1146 IFS="$lt_save_ifs" 479 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 480 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 481 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 482 test "X$echo_testing_string" = "X$echo_test_string"; then 483 echo="$dir/echo" 484 break 485 fi 486 done 487 IFS="$lt_save_ifs" 488 489 if test "X$echo" = Xecho; then 490 # We didn't find a better echo, so look for alternatives. 491 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 492 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 493 test "X$echo_testing_string" = "X$echo_test_string"; then 494 # This shell has a builtin print -r that does the trick. 495 echo='print -r' 496 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 497 test "X$CONFIG_SHELL" != X/bin/ksh; then 498 # If we have ksh, try running configure again with it. 499 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 500 export ORIGINAL_CONFIG_SHELL 501 CONFIG_SHELL=/bin/ksh 502 export CONFIG_SHELL 503 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 504 else 505 # Try using printf. 506 echo='printf %s\n' 507 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 508 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 509 test "X$echo_testing_string" = "X$echo_test_string"; then 510 # Cool, printf works 511 : 512 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 513 test "X$echo_testing_string" = 'X\t' && 514 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1147 1148 if test "X$ECHO" = Xecho; then 1149 # We didn't find a better echo, so look for alternatives. 1150 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 1151 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 1152 test "X$echo_testing_string" = "X$echo_test_string"; then 1153 # This shell has a builtin print -r that does the trick. 1154 ECHO='print -r' 1155 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 1156 test "X$CONFIG_SHELL" != X/bin/ksh; then 1157 # If we have ksh, try running configure again with it. 1158 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 1159 export ORIGINAL_CONFIG_SHELL 1160 CONFIG_SHELL=/bin/ksh 1161 export CONFIG_SHELL 1162 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 1163 else 1164 # Try using printf. 1165 ECHO='printf %s\n' 1166 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 1167 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 515 1168 test "X$echo_testing_string" = "X$echo_test_string"; then 516 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 517 export CONFIG_SHELL 518 SHELL="$CONFIG_SHELL" 519 export SHELL 520 echo="$CONFIG_SHELL [$]0 --fallback-echo" 521 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 522 test "X$echo_testing_string" = 'X\t' && 523 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 524 test "X$echo_testing_string" = "X$echo_test_string"; then 525 echo="$CONFIG_SHELL [$]0 --fallback-echo" 526 else 527 # maybe with a smaller string... 528 prev=: 529 530 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 531 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 532 then 533 break 1169 # Cool, printf works 1170 : 1171 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1172 test "X$echo_testing_string" = 'X\t' && 1173 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1174 test "X$echo_testing_string" = "X$echo_test_string"; then 1175 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 1176 export CONFIG_SHELL 1177 SHELL="$CONFIG_SHELL" 1178 export SHELL 1179 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1180 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 1181 test "X$echo_testing_string" = 'X\t' && 1182 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 1183 test "X$echo_testing_string" = "X$echo_test_string"; then 1184 ECHO="$CONFIG_SHELL [$]0 --fallback-echo" 1185 else 1186 # maybe with a smaller string... 1187 prev=: 1188 1189 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 1190 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 1191 then 1192 break 1193 fi 1194 prev="$cmd" 1195 done 1196 1197 if test "$prev" != 'sed 50q "[$]0"'; then 1198 echo_test_string=`eval $prev` 1199 export echo_test_string 1200 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 1201 else 1202 # Oops. We lost completely, so just stick with echo. 1203 ECHO=echo 534 1204 fi 535 prev="$cmd" 536 done 537 538 if test "$prev" != 'sed 50q "[$]0"'; then 539 echo_test_string=`eval $prev` 540 export echo_test_string 541 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 542 else 543 # Oops. We lost completely, so just stick with echo. 544 echo=echo 545 fi 1205 fi 546 1206 fi 547 1207 fi 548 1208 fi 549 1209 fi 550 fi551 1210 552 1211 # Copy echo and quote the copy suitably for passing to libtool from 553 1212 # the Makefile, instead of quoting the original, which is used later. 554 ECHO=$echo 555 if test "X$ ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then556 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"1213 lt_ECHO=$ECHO 1214 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 1215 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 557 1216 fi 558 1217 559 AC_SUBST(ECHO) 560 ])])# _LT_AC_PROG_ECHO_BACKSLASH 561 562 563 # _LT_AC_LOCK 564 # ----------- 565 AC_DEFUN([_LT_AC_LOCK], 1218 AC_SUBST(lt_ECHO) 1219 ]) 1220 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1221 _LT_DECL([], [ECHO], [1], 1222 [An echo program that does not interpret backslashes]) 1223 ])# _LT_PROG_ECHO_BACKSLASH 1224 1225 1226 # _LT_ENABLE_LOCK 1227 # --------------- 1228 m4_defun([_LT_ENABLE_LOCK], 566 1229 [AC_ARG_ENABLE([libtool-lock], 567 [AC_HELP_STRING([--disable-libtool-lock],568 [avoid locking (might break parallel builds)])])1230 [AS_HELP_STRING([--disable-libtool-lock], 1231 [avoid locking (might break parallel builds)])]) 569 1232 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 570 1233 … … 577 1240 if AC_TRY_EVAL(ac_compile); then 578 1241 case `/usr/bin/file conftest.$ac_objext` in 579 *ELF-32*)580 HPUX_IA64_MODE="32"581 ;;582 *ELF-64*)583 HPUX_IA64_MODE="64"584 ;;1242 *ELF-32*) 1243 HPUX_IA64_MODE="32" 1244 ;; 1245 *ELF-64*) 1246 HPUX_IA64_MODE="64" 1247 ;; 585 1248 esac 586 1249 fi … … 591 1254 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 592 1255 if AC_TRY_EVAL(ac_compile); then 593 if test "$lt_cv_prog_gnu_ld" = yes; then594 case `/usr/bin/file conftest.$ac_objext` in595 *32-bit*)596 LD="${LD-ld} -melf32bsmip"597 ;;598 *N32*)599 LD="${LD-ld} -melf32bmipn32"600 ;;601 *64-bit*)602 LD="${LD-ld} -melf64bmip"603 ;;604 esac605 else606 case `/usr/bin/file conftest.$ac_objext` in607 *32-bit*)608 LD="${LD-ld} -32"609 ;;610 *N32*)611 LD="${LD-ld} -n32"612 ;;613 *64-bit*)614 LD="${LD-ld} -64"615 ;;616 esac617 fi1256 if test "$lt_cv_prog_gnu_ld" = yes; then 1257 case `/usr/bin/file conftest.$ac_objext` in 1258 *32-bit*) 1259 LD="${LD-ld} -melf32bsmip" 1260 ;; 1261 *N32*) 1262 LD="${LD-ld} -melf32bmipn32" 1263 ;; 1264 *64-bit*) 1265 LD="${LD-ld} -melf64bmip" 1266 ;; 1267 esac 1268 else 1269 case `/usr/bin/file conftest.$ac_objext` in 1270 *32-bit*) 1271 LD="${LD-ld} -32" 1272 ;; 1273 *N32*) 1274 LD="${LD-ld} -n32" 1275 ;; 1276 *64-bit*) 1277 LD="${LD-ld} -64" 1278 ;; 1279 esac 1280 fi 618 1281 fi 619 1282 rm -rf conftest* … … 621 1284 622 1285 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 623 s390*-*linux*|s parc*-*linux*)1286 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 624 1287 # Find out which ABI we are using. 625 1288 echo 'int i;' > conftest.$ac_ext 626 1289 if AC_TRY_EVAL(ac_compile); then 627 1290 case `/usr/bin/file conftest.o` in 628 *32-bit*)629 case $host in630 x86_64-*kfreebsd*-gnu)631 LD="${LD-ld} -m elf_i386_fbsd"632 ;;633 x86_64-*linux*)634 LD="${LD-ld} -m elf_i386"635 ;;636 ppc64-*linux*|powerpc64-*linux*)637 LD="${LD-ld} -m elf32ppclinux"638 ;;639 s390x-*linux*)640 LD="${LD-ld} -m elf_s390"641 ;;642 sparc64-*linux*)643 LD="${LD-ld} -m elf32_sparc"644 ;;645 esac646 ;;647 *64-bit*)648 case $host in649 x86_64-*kfreebsd*-gnu)650 LD="${LD-ld} -m elf_x86_64_fbsd"651 ;;652 x86_64-*linux*)653 LD="${LD-ld} -m elf_x86_64"654 ;;655 ppc*-*linux*|powerpc*-*linux*)656 LD="${LD-ld} -m elf64ppc"657 ;;658 s390*-*linux*)659 LD="${LD-ld} -m elf64_s390"660 ;;661 sparc*-*linux*)662 LD="${LD-ld} -m elf64_sparc"663 ;;664 esac665 ;;1291 *32-bit*) 1292 case $host in 1293 x86_64-*kfreebsd*-gnu) 1294 LD="${LD-ld} -m elf_i386_fbsd" 1295 ;; 1296 x86_64-*linux*) 1297 LD="${LD-ld} -m elf_i386" 1298 ;; 1299 ppc64-*linux*|powerpc64-*linux*) 1300 LD="${LD-ld} -m elf32ppclinux" 1301 ;; 1302 s390x-*linux*) 1303 LD="${LD-ld} -m elf_s390" 1304 ;; 1305 sparc64-*linux*) 1306 LD="${LD-ld} -m elf32_sparc" 1307 ;; 1308 esac 1309 ;; 1310 *64-bit*) 1311 case $host in 1312 x86_64-*kfreebsd*-gnu) 1313 LD="${LD-ld} -m elf_x86_64_fbsd" 1314 ;; 1315 x86_64-*linux*) 1316 LD="${LD-ld} -m elf_x86_64" 1317 ;; 1318 ppc*-*linux*|powerpc*-*linux*) 1319 LD="${LD-ld} -m elf64ppc" 1320 ;; 1321 s390*-*linux*|s390*-*tpf*) 1322 LD="${LD-ld} -m elf64_s390" 1323 ;; 1324 sparc*-*linux*) 1325 LD="${LD-ld} -m elf64_sparc" 1326 ;; 1327 esac 1328 ;; 666 1329 esac 667 1330 fi … … 675 1338 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 676 1339 [AC_LANG_PUSH(C) 677 AC_ TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])1340 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 678 1341 AC_LANG_POP]) 679 1342 if test x"$lt_cv_cc_needs_belf" != x"yes"; then … … 691 1354 yes*) LD="${LD-ld} -m elf64_sparc" ;; 692 1355 *) 693 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then1356 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 694 1357 LD="${LD-ld} -64" 695 1358 fi … … 701 1364 rm -rf conftest* 702 1365 ;; 703 704 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],705 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)706 AC_CHECK_TOOL(DLLTOOL, dlltool, false)707 AC_CHECK_TOOL(AS, as, false)708 AC_CHECK_TOOL(OBJDUMP, objdump, false)709 ;;710 ])711 1366 esac 712 1367 713 1368 need_locks="$enable_libtool_lock" 714 715 ])# _LT_AC_LOCK 716 717 718 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1369 ])# _LT_ENABLE_LOCK 1370 1371 1372 # _LT_CMD_OLD_ARCHIVE 1373 # ------------------- 1374 m4_defun([_LT_CMD_OLD_ARCHIVE], 1375 [AC_CHECK_TOOL(AR, ar, false) 1376 test -z "$AR" && AR=ar 1377 test -z "$AR_FLAGS" && AR_FLAGS=cru 1378 _LT_DECL([], [AR], [1], [The archiver]) 1379 _LT_DECL([], [AR_FLAGS], [1]) 1380 1381 AC_CHECK_TOOL(STRIP, strip, :) 1382 test -z "$STRIP" && STRIP=: 1383 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) 1384 1385 AC_CHECK_TOOL(RANLIB, ranlib, :) 1386 test -z "$RANLIB" && RANLIB=: 1387 _LT_DECL([], [RANLIB], [1], 1388 [Commands used to install an old-style archive]) 1389 1390 # Determine commands to create old-style static archives. 1391 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1392 old_postinstall_cmds='chmod 644 $oldlib' 1393 old_postuninstall_cmds= 1394 1395 if test -n "$RANLIB"; then 1396 case $host_os in 1397 openbsd*) 1398 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1399 ;; 1400 *) 1401 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1402 ;; 1403 esac 1404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1405 fi 1406 _LT_DECL([], [old_postinstall_cmds], [2]) 1407 _LT_DECL([], [old_postuninstall_cmds], [2]) 1408 _LT_TAGDECL([], [old_archive_cmds], [2], 1409 [Commands used to build an old-style archive]) 1410 ])# _LT_CMD_OLD_ARCHIVE 1411 1412 1413 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 719 1414 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 720 1415 # ---------------------------------------------------------------- 721 1416 # Check whether the given compiler option works 722 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 723 [AC_REQUIRE([LT_AC_PROG_SED]) 1417 AC_DEFUN([_LT_COMPILER_OPTION], 1418 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1419 m4_require([_LT_DECL_SED])dnl 724 1420 AC_CACHE_CHECK([$1], [$2], 725 1421 [$2=no 726 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])1422 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 727 1423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 728 1424 lt_compiler_flag="$3" … … 744 1440 # The compiler can only warn and ignore the option if not recognized 745 1441 # So say no if there are warnings other than the usual output. 746 $ echo"X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp1442 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 747 1443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 748 1444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 750 1446 fi 751 1447 fi 752 $ rmconftest*1448 $RM conftest* 753 1449 ]) 754 1450 755 1451 if test x"[$]$2" = xyes; then 756 ifelse([$5], , :, [$5])1452 m4_if([$5], , :, [$5]) 757 1453 else 758 ifelse([$6], , :, [$6])1454 m4_if([$6], , :, [$6]) 759 1455 fi 760 ])# AC_LIBTOOL_COMPILER_OPTION 761 762 763 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 764 # [ACTION-SUCCESS], [ACTION-FAILURE]) 765 # ------------------------------------------------------------ 766 # Check whether the given compiler option works 767 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 768 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1456 ])# _LT_COMPILER_OPTION 1457 1458 # Old name: 1459 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 1460 dnl aclocal-1.4 backwards compatibility: 1461 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 1462 1463 1464 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1465 # [ACTION-SUCCESS], [ACTION-FAILURE]) 1466 # ---------------------------------------------------- 1467 # Check whether the given linker option works 1468 AC_DEFUN([_LT_LINKER_OPTION], 1469 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1470 m4_require([_LT_DECL_SED])dnl 769 1471 AC_CACHE_CHECK([$1], [$2], 770 1472 [$2=no … … 778 1480 # Append any errors to the config.log. 779 1481 cat conftest.err 1>&AS_MESSAGE_LOG_FD 780 $ echo"X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp1482 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 781 1483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 782 1484 if diff conftest.exp conftest.er2 >/dev/null; then … … 787 1489 fi 788 1490 fi 789 $ rm-r conftest*1491 $RM -r conftest* 790 1492 LDFLAGS="$save_LDFLAGS" 791 1493 ]) 792 1494 793 1495 if test x"[$]$2" = xyes; then 794 ifelse([$4], , :, [$4])1496 m4_if([$4], , :, [$4]) 795 1497 else 796 ifelse([$5], , :, [$5])1498 m4_if([$5], , :, [$5]) 797 1499 fi 798 ])# AC_LIBTOOL_LINKER_OPTION 799 800 801 # AC_LIBTOOL_SYS_MAX_CMD_LEN 802 # -------------------------- 803 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 804 [# find the maximum length of command line arguments 1500 ])# _LT_LINKER_OPTION 1501 1502 # Old name: 1503 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 1504 dnl aclocal-1.4 backwards compatibility: 1505 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 1506 1507 1508 # LT_CMD_MAX_LEN 1509 #--------------- 1510 AC_DEFUN([LT_CMD_MAX_LEN], 1511 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 1512 # find the maximum length of command line arguments 805 1513 AC_MSG_CHECKING([the maximum length of command line arguments]) 806 1514 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl … … 824 1532 ;; 825 1533 826 cygwin* | mingw* )1534 cygwin* | mingw* | cegcc*) 827 1535 # On Win9x/ME, this test blows up -- it succeeds, but takes 828 1536 # about 5 minutes as the teststring grows exponentially. … … 879 1587 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 880 1588 if test -n "$kargmax"; then 881 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`1589 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 882 1590 else 883 1591 lt_cv_sys_max_cmd_len=32768 … … 890 1598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 891 1599 else 1600 # Make teststring a little bigger before we do anything with it. 1601 # a 1K string should be a reasonable start. 1602 for i in 1 2 3 4 5 6 7 8 ; do 1603 teststring=$teststring$teststring 1604 done 892 1605 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 893 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 894 = "XX$teststring") >/dev/null 2>&1 && 895 new_result=`expr "X$teststring" : ".*" 2>&1` && 896 lt_cv_sys_max_cmd_len=$new_result && 1606 # If test is not a shell built-in, we'll probably end up computing a 1607 # maximum length that is only half of the actual maximum length, but 1608 # we can't tell. 1609 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 1610 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 897 1611 test $i != 17 # 1/2 MB should be enough 898 1612 do … … 900 1614 teststring=$teststring$teststring 901 1615 done 1616 # Only check the string length outside the loop. 1617 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 902 1618 teststring= 903 # Add a significant safety factor because C++ compilers can tack on massive904 # amounts of additional arguments before passing them to the linker.905 # It appears as though 1/2 is a usable value.1619 # Add a significant safety factor because C++ compilers can tack on 1620 # massive amounts of additional arguments before passing them to the 1621 # linker. It appears as though 1/2 is a usable value. 906 1622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 907 1623 fi … … 914 1630 AC_MSG_RESULT(none) 915 1631 fi 916 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN 917 918 919 # _LT_AC_CHECK_DLFCN 920 # ------------------ 921 AC_DEFUN([_LT_AC_CHECK_DLFCN], 922 [AC_CHECK_HEADERS(dlfcn.h)dnl 923 ])# _LT_AC_CHECK_DLFCN 924 925 926 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 927 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 928 # --------------------------------------------------------------------- 929 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 930 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1632 max_cmd_len=$lt_cv_sys_max_cmd_len 1633 _LT_DECL([], [max_cmd_len], [0], 1634 [What is the maximum length of a command?]) 1635 ])# LT_CMD_MAX_LEN 1636 1637 # Old name: 1638 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 1639 dnl aclocal-1.4 backwards compatibility: 1640 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 1641 1642 1643 # _LT_HEADER_DLFCN 1644 # ---------------- 1645 m4_defun([_LT_HEADER_DLFCN], 1646 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 1647 ])# _LT_HEADER_DLFCN 1648 1649 1650 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1651 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1652 # ---------------------------------------------------------------- 1653 m4_defun([_LT_TRY_DLOPEN_SELF], 1654 [m4_require([_LT_HEADER_DLFCN])dnl 931 1655 if test "$cross_compiling" = yes; then : 932 1656 [$4] … … 934 1658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 935 1659 lt_status=$lt_dlunknown 936 cat > conftest.$ac_ext << EOF1660 cat > conftest.$ac_ext <<_LT_EOF 937 1661 [#line __oline__ "configure" 938 1662 #include "confdefs.h" … … 976 1700 #endif 977 1701 978 #ifdef __cplusplus979 extern "C" void exit (int);980 #endif981 982 1702 void fnord() { int i=42;} 983 1703 int main () … … 995 1715 puts (dlerror ()); 996 1716 997 exit (status);1717 return status; 998 1718 }] 999 EOF1719 _LT_EOF 1000 1720 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1001 1721 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null … … 1012 1732 fi 1013 1733 rm -fr conftest* 1014 ])# _LT_ AC_TRY_DLOPEN_SELF1015 1016 1017 # AC_LIBTOOL_DLOPEN_SELF1018 # ------------------ ----1019 AC_DEFUN([ AC_LIBTOOL_DLOPEN_SELF],1020 [ AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl1734 ])# _LT_TRY_DLOPEN_SELF 1735 1736 1737 # LT_SYS_DLOPEN_SELF 1738 # ------------------ 1739 AC_DEFUN([LT_SYS_DLOPEN_SELF], 1740 [m4_require([_LT_HEADER_DLFCN])dnl 1021 1741 if test "x$enable_dlopen" != xyes; then 1022 1742 enable_dlopen=unknown … … 1034 1754 ;; 1035 1755 1036 mingw* | pw32* )1756 mingw* | pw32* | cegcc*) 1037 1757 lt_cv_dlopen="LoadLibrary" 1038 1758 lt_cv_dlopen_libs= 1039 ;;1759 ;; 1040 1760 1041 1761 cygwin*) 1042 1762 lt_cv_dlopen="dlopen" 1043 1763 lt_cv_dlopen_libs= 1044 ;;1764 ;; 1045 1765 1046 1766 darwin*) … … 1052 1772 lt_cv_dlopen_self=yes 1053 1773 ]) 1054 ;;1774 ;; 1055 1775 1056 1776 *) … … 1094 1814 AC_CACHE_CHECK([whether a program can dlopen itself], 1095 1815 lt_cv_dlopen_self, [dnl 1096 _LT_ AC_TRY_DLOPEN_SELF(1816 _LT_TRY_DLOPEN_SELF( 1097 1817 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1098 1818 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) … … 1102 1822 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1103 1823 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1104 lt_cv_dlopen_self_static, [dnl1105 _LT_ AC_TRY_DLOPEN_SELF(1824 lt_cv_dlopen_self_static, [dnl 1825 _LT_TRY_DLOPEN_SELF( 1106 1826 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1107 1827 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) … … 1125 1845 esac 1126 1846 fi 1127 ])# AC_LIBTOOL_DLOPEN_SELF 1128 1129 1130 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 1131 # --------------------------------- 1132 # Check to see if options -c and -o are simultaneously supported by compiler 1133 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 1134 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1135 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1847 _LT_DECL([dlopen_support], [enable_dlopen], [0], 1848 [Whether dlopen is supported]) 1849 _LT_DECL([dlopen_self], [enable_dlopen_self], [0], 1850 [Whether dlopen of programs is supported]) 1851 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 1852 [Whether dlopen of statically linked programs is supported]) 1853 ])# LT_SYS_DLOPEN_SELF 1854 1855 # Old name: 1856 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 1857 dnl aclocal-1.4 backwards compatibility: 1858 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 1859 1860 1861 # _LT_COMPILER_C_O([TAGNAME]) 1862 # --------------------------- 1863 # Check to see if options -c and -o are simultaneously supported by compiler. 1864 # This macro does not hard code the compiler like AC_PROG_CC_C_O. 1865 m4_defun([_LT_COMPILER_C_O], 1866 [m4_require([_LT_DECL_SED])dnl 1867 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1868 m4_require([_LT_TAG_COMPILER])dnl 1136 1869 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1137 [_LT_ AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],1138 [_LT_ AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no1139 $ rm-r conftest 2>/dev/null1870 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1871 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1872 $RM -r conftest 2>/dev/null 1140 1873 mkdir conftest 1141 1874 cd conftest … … 1161 1894 # The compiler can only warn and ignore the option if not recognized 1162 1895 # So say no if there are warnings 1163 $ echo"X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp1896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1164 1897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1165 1898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1166 _LT_ AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes1899 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1167 1900 fi 1168 1901 fi 1169 1902 chmod u+w . 2>&AS_MESSAGE_LOG_FD 1170 $ rmconftest*1903 $RM conftest* 1171 1904 # SGI C++ compiler will create directory out/ii_files/ for 1172 1905 # template instantiation 1173 test -d out/ii_files && $ rmout/ii_files/* && rmdir out/ii_files1174 $ rmout/* && rmdir out1906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 1907 $RM out/* && rmdir out 1175 1908 cd .. 1176 rmdir conftest1177 $ rmconftest*1909 $RM -r conftest 1910 $RM conftest* 1178 1911 ]) 1179 ])# AC_LIBTOOL_PROG_CC_C_O 1180 1181 1182 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 1183 # ----------------------------------------- 1912 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 1913 [Does compiler simultaneously support -c and -o options?]) 1914 ])# _LT_COMPILER_C_O 1915 1916 1917 # _LT_COMPILER_FILE_LOCKS([TAGNAME]) 1918 # ---------------------------------- 1184 1919 # Check to see if we can do hard links to lock some files if needed 1185 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 1186 [AC_REQUIRE([_LT_AC_LOCK])dnl 1920 m4_defun([_LT_COMPILER_FILE_LOCKS], 1921 [m4_require([_LT_ENABLE_LOCK])dnl 1922 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1923 _LT_COMPILER_C_O([$1]) 1187 1924 1188 1925 hard_links="nottested" 1189 if test "$_LT_ AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then1926 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 1190 1927 # do not overwrite the value of need_locks provided by the user 1191 1928 AC_MSG_CHECKING([if we can lock with hard links]) 1192 1929 hard_links=yes 1193 $ rmconftest*1930 $RM conftest* 1194 1931 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1195 1932 touch conftest.a … … 1204 1941 need_locks=no 1205 1942 fi 1206 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 1207 1208 1209 # AC_LIBTOOL_OBJDIR 1210 # ----------------- 1211 AC_DEFUN([AC_LIBTOOL_OBJDIR], 1943 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 1944 ])# _LT_COMPILER_FILE_LOCKS 1945 1946 1947 # _LT_CHECK_OBJDIR 1948 # ---------------- 1949 m4_defun([_LT_CHECK_OBJDIR], 1212 1950 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 1213 1951 [rm -f .libs 2>/dev/null … … 1221 1959 rmdir .libs 2>/dev/null]) 1222 1960 objdir=$lt_cv_objdir 1223 ])# AC_LIBTOOL_OBJDIR 1224 1225 1226 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 1227 # ---------------------------------------------- 1961 _LT_DECL([], [objdir], [0], 1962 [The name of the directory that contains temporary libtool files])dnl 1963 m4_pattern_allow([LT_OBJDIR])dnl 1964 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 1965 [Define to the sub-directory in which libtool stores uninstalled libraries.]) 1966 ])# _LT_CHECK_OBJDIR 1967 1968 1969 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 1970 # -------------------------------------- 1228 1971 # Check hardcoding attributes. 1229 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],1972 m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 1230 1973 [AC_MSG_CHECKING([how to hardcode library paths into programs]) 1231 _LT_ AC_TAGVAR(hardcode_action, $1)=1232 if test -n "$_LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \1233 test -n "$_LT_ AC_TAGVAR(runpath_var, $1)" || \1234 test "X$_LT_ AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then1235 1236 # We can hardcode non-exist ant directories.1237 if test "$_LT_ AC_TAGVAR(hardcode_direct, $1)" != no &&1974 _LT_TAGVAR(hardcode_action, $1)= 1975 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 1976 test -n "$_LT_TAGVAR(runpath_var, $1)" || 1977 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1978 1979 # We can hardcode non-existent directories. 1980 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 1238 1981 # If the only mechanism to avoid hardcoding is shlibpath_var, we 1239 1982 # have to relink, otherwise we might link with an installed library 1240 1983 # when we should be linking with a yet-to-be-installed one 1241 ## test "$_LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&1242 test "$_LT_ AC_TAGVAR(hardcode_minus_L, $1)" != no; then1984 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 1985 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 1243 1986 # Linking always hardcodes the temporary library directory. 1244 _LT_ AC_TAGVAR(hardcode_action, $1)=relink1987 _LT_TAGVAR(hardcode_action, $1)=relink 1245 1988 else 1246 1989 # We can link without hardcoding, and we can hardcode nonexisting dirs. 1247 _LT_ AC_TAGVAR(hardcode_action, $1)=immediate1990 _LT_TAGVAR(hardcode_action, $1)=immediate 1248 1991 fi 1249 1992 else 1250 1993 # We cannot hardcode anything, or else we can only hardcode existing 1251 1994 # directories. 1252 _LT_ AC_TAGVAR(hardcode_action, $1)=unsupported1995 _LT_TAGVAR(hardcode_action, $1)=unsupported 1253 1996 fi 1254 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 1255 1256 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 1997 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 1998 1999 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 2000 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 1257 2001 # Fast installation is not supported 1258 2002 enable_fast_install=no … … 1262 2006 enable_fast_install=needless 1263 2007 fi 1264 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 1265 1266 1267 # AC_LIBTOOL_SYS_LIB_STRIP 1268 # ------------------------ 1269 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 1270 [striplib= 2008 _LT_TAGDECL([], [hardcode_action], [0], 2009 [How to hardcode a shared library path into an executable]) 2010 ])# _LT_LINKER_HARDCODE_LIBPATH 2011 2012 2013 # _LT_CMD_STRIPLIB 2014 # ---------------- 2015 m4_defun([_LT_CMD_STRIPLIB], 2016 [m4_require([_LT_DECL_EGREP]) 2017 striplib= 1271 2018 old_striplib= 1272 2019 AC_MSG_CHECKING([whether stripping libraries is possible]) 1273 if test -n "$STRIP" && $STRIP -V 2>&1 | grep"GNU strip" >/dev/null; then2020 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 1274 2021 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 1275 2022 test -z "$striplib" && striplib="$STRIP --strip-unneeded" … … 1278 2025 # FIXME - insert some real tests, host_os isn't really good enough 1279 2026 case $host_os in 1280 darwin*)1281 if test -n "$STRIP" ; then1282 striplib="$STRIP -x"1283 old_striplib="$STRIP -S"1284 AC_MSG_RESULT([yes])1285 else1286 AC_MSG_RESULT([no])1287 fi1288 ;;1289 *)1290 AC_MSG_RESULT([no])2027 darwin*) 2028 if test -n "$STRIP" ; then 2029 striplib="$STRIP -x" 2030 old_striplib="$STRIP -S" 2031 AC_MSG_RESULT([yes]) 2032 else 2033 AC_MSG_RESULT([no]) 2034 fi 2035 ;; 2036 *) 2037 AC_MSG_RESULT([no]) 1291 2038 ;; 1292 2039 esac 1293 2040 fi 1294 ])# AC_LIBTOOL_SYS_LIB_STRIP 1295 1296 1297 # AC_LIBTOOL_SYS_DYNAMIC_LINKER 2041 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2042 _LT_DECL([], [striplib], [1]) 2043 ])# _LT_CMD_STRIPLIB 2044 2045 2046 # _LT_SYS_DYNAMIC_LINKER([TAG]) 1298 2047 # ----------------------------- 1299 2048 # PORTME Fill in your ld.so characteristics 1300 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1301 [AC_REQUIRE([LT_AC_PROG_SED])dnl 2049 m4_defun([_LT_SYS_DYNAMIC_LINKER], 2050 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 2051 m4_require([_LT_DECL_EGREP])dnl 2052 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2053 m4_require([_LT_DECL_OBJDUMP])dnl 2054 m4_require([_LT_DECL_SED])dnl 1302 2055 AC_MSG_CHECKING([dynamic linker characteristics]) 1303 library_names_spec= 1304 libname_spec='lib$name' 1305 soname_spec= 1306 shrext_cmds=".so" 1307 postinstall_cmds= 1308 postuninstall_cmds= 1309 finish_cmds= 1310 finish_eval= 1311 shlibpath_var= 1312 shlibpath_overrides_runpath=unknown 1313 version_type=none 1314 dynamic_linker="$host_os ld.so" 1315 sys_lib_dlsearch_path_spec="/lib /usr/lib" 1316 m4_if($1,[],[ 2056 m4_if([$1], 2057 [], [ 1317 2058 if test "$GCC" = yes; then 1318 2059 case $host_os in … … 1321 2062 esac 1322 2063 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1323 if echo "$lt_search_path_spec" | grep';' >/dev/null ; then2064 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 1324 2065 # if the path contains ";" then we assume it to be the separator 1325 2066 # otherwise default to the standard path separator (i.e. ":") - it is 1326 2067 # assumed that no part of a normal pathname contains ";" but that should 1327 2068 # okay in the real world where ";" in dirpaths is itself problematic. 1328 lt_search_path_spec=` echo"$lt_search_path_spec" | $SED -e 's/;/ /g'`2069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 1329 2070 else 1330 lt_search_path_spec=` echo"$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`2071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1331 2072 fi 1332 2073 # Ok, now we have the path, separated by spaces, we can step through it … … 1342 2083 fi 1343 2084 done 1344 lt_search_path_spec=` echo$lt_tmp_lt_search_path_spec | awk '2085 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 1345 2086 BEGIN {RS=" "; FS="/|\n";} { 1346 2087 lt_foo=""; … … 1362 2103 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 1363 2104 }'` 1364 sys_lib_search_path_spec=` echo$lt_search_path_spec`2105 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 1365 2106 else 1366 2107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1367 2108 fi]) 2109 library_names_spec= 2110 libname_spec='lib$name' 2111 soname_spec= 2112 shrext_cmds=".so" 2113 postinstall_cmds= 2114 postuninstall_cmds= 2115 finish_cmds= 2116 finish_eval= 2117 shlibpath_var= 2118 shlibpath_overrides_runpath=unknown 2119 version_type=none 2120 dynamic_linker="$host_os ld.so" 2121 sys_lib_dlsearch_path_spec="/lib /usr/lib" 1368 2122 need_lib_prefix=unknown 1369 2123 hardcode_into_libs=no … … 1402 2156 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 1403 2157 echo ' yes ' 1404 echo '#endif'; } | ${CC} -E - | grepyes > /dev/null; then2158 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 1405 2159 : 1406 2160 else … … 1428 2182 1429 2183 amigaos*) 1430 library_names_spec='$libname.ixlibrary $libname.a' 1431 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1432 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $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' 2184 case $host_cpu in 2185 powerpc) 2186 # Since July 2007 AmigaOS4 officially supports .so libraries. 2187 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2189 ;; 2190 m68k) 2191 library_names_spec='$libname.ixlibrary $libname.a' 2192 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2193 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $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' 2194 ;; 2195 esac 1433 2196 ;; 1434 2197 … … 1453 2216 ;; 1454 2217 1455 cygwin* | mingw* | pw32* )2218 cygwin* | mingw* | pw32* | cegcc*) 1456 2219 version_type=windows 1457 2220 shrext_cmds=".dll" … … 1460 2223 1461 2224 case $GCC,$host_os in 1462 yes,cygwin* | yes,mingw* | yes,pw32* )2225 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 1463 2226 library_names_spec='$libname.dll.a' 1464 2227 # DLL is installed to $(libdir)/../bin by postinstall_cmds 1465 2228 postinstall_cmds='base_file=`basename \${file}`~ 1466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~2229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 1467 2230 dldir=$destdir/`dirname \$dlpath`~ 1468 2231 test -d \$dldir || mkdir -p \$dldir~ 1469 2232 $install_prog $dir/$dlname \$dldir/$dlname~ 1470 chmod a+x \$dldir/$dlname' 2233 chmod a+x \$dldir/$dlname~ 2234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2235 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2236 fi' 1471 2237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1472 2238 dlpath=$dir/\$dldll~ 1473 $ rm\$dlpath'2239 $RM \$dlpath' 1474 2240 shlibpath_overrides_runpath=yes 1475 2241 … … 1480 2246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 1481 2247 ;; 1482 mingw* )2248 mingw* | cegcc*) 1483 2249 # MinGW DLLs use traditional 'lib' prefix 1484 2250 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep"^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`1486 if echo "$sys_lib_search_path_spec" | [grep';[c-zC-Z]:/' >/dev/null]; then2251 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 2252 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 1487 2253 # It is most probably a Windows format PATH printed by 1488 2254 # mingw gcc, but we are running on Cygwin. Gcc prints its search … … 1491 2257 # especially as we might pass files found there to a mingw objdump, 1492 2258 # which wouldn't understand a cygwinified path. Ahh. 1493 sys_lib_search_path_spec=` echo"$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`2259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 1494 2260 else 1495 sys_lib_search_path_spec=` echo"$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`2261 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1496 2262 fi 1497 2263 ;; … … 1517 2283 need_lib_prefix=no 1518 2284 need_version=no 1519 library_names_spec='${libname}${release}${ versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'2285 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 1520 2286 soname_spec='${libname}${release}${major}$shared_ext' 1521 2287 shlibpath_overrides_runpath=yes 1522 2288 shlibpath_var=DYLD_LIBRARY_PATH 1523 2289 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1524 m4_if([$1], [],[1525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2290 m4_if([$1], [],[ 2291 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 1526 2292 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1527 2293 ;; … … 1616 2382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1617 2383 ;; 1618 hppa*64*)1619 shrext_cmds='.sl'1620 hardcode_into_libs=yes1621 dynamic_linker="$host_os dld.sl"1622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH1623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.1624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'1625 soname_spec='${libname}${release}${shared_ext}$major'1626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"1627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec1628 ;;1629 *)2384 hppa*64*) 2385 shrext_cmds='.sl' 2386 hardcode_into_libs=yes 2387 dynamic_linker="$host_os dld.sl" 2388 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2389 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2391 soname_spec='${libname}${release}${shared_ext}$major' 2392 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2393 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2394 ;; 2395 *) 1630 2396 shrext_cmds='.sl' 1631 2397 dynamic_linker="$host_os dld.sl" … … 1704 2470 shlibpath_var=LD_LIBRARY_PATH 1705 2471 shlibpath_overrides_runpath=no 2472 # Some binutils ld are patched to set DT_RUNPATH 2473 save_LDFLAGS=$LDFLAGS 2474 save_libdir=$libdir 2475 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2476 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2477 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2478 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2479 [shlibpath_overrides_runpath=yes])]) 2480 LDFLAGS=$save_LDFLAGS 2481 libdir=$save_libdir 2482 1706 2483 # This implies no fast_install, which is unacceptable. 1707 2484 # Some rework will be needed to allow for fast_install … … 1709 2486 hardcode_into_libs=yes 1710 2487 2488 # find out which ABI we are using 2489 libsuff= 2490 case "$host_cpu" in 2491 x86_64*|s390x*|powerpc64*) 2492 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 2493 if AC_TRY_EVAL(ac_compile); then 2494 case `/usr/bin/file conftest.$ac_objext` in 2495 *64-bit*) 2496 libsuff=64 2497 ;; 2498 esac 2499 fi 2500 rm -rf conftest* 2501 ;; 2502 esac 2503 2504 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 2505 1711 2506 # Append ld.so.conf contents to the search path 1712 2507 if test -f /etc/ld.so.conf; then 1713 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`1714 sys_lib_dlsearch_path_spec=" /lib /usr/lib$lt_ld_extra"2508 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 2509 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 1715 2510 fi 1716 2511 … … 1728 2523 need_lib_prefix=no 1729 2524 need_version=no 1730 if echo __ELF__ | $CC -E - | grep__ELF__ >/dev/null; then2525 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 1731 2526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1732 2527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 1749 2544 ;; 1750 2545 1751 nto-qnx*)1752 version_type= linux2546 *nto* | *qnx*) 2547 version_type=qnx 1753 2548 need_lib_prefix=no 1754 2549 need_version=no … … 1756 2551 soname_spec='${libname}${release}${shared_ext}$major' 1757 2552 shlibpath_var=LD_LIBRARY_PATH 1758 shlibpath_overrides_runpath=yes 2553 shlibpath_overrides_runpath=no 2554 hardcode_into_libs=yes 2555 dynamic_linker='ldqnx.so' 1759 2556 ;; 1760 2557 … … 1765 2562 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1766 2563 case $host_os in 1767 openbsd3.3 | openbsd3.3.*) need_version=yes ;;1768 *) need_version=no ;;2564 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2565 *) need_version=no ;; 1769 2566 esac 1770 2567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1771 2568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1772 2569 shlibpath_var=LD_LIBRARY_PATH 1773 if test -z "`echo __ELF__ | $CC -E - | grep__ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then2570 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1774 2571 case $host_os in 1775 2572 openbsd2.[[89]] | openbsd2.[[89]].*) … … 1843 2640 shlibpath_overrides_runpath=no 1844 2641 need_lib_prefix=no 1845 export_dynamic_flag_spec='${wl}-Blargedynsym'1846 2642 runpath_var=LD_RUN_PATH 1847 2643 ;; … … 1874 2670 soname_spec='${libname}${release}${shared_ext}$major' 1875 2671 shlibpath_var=LD_LIBRARY_PATH 2672 shlibpath_overrides_runpath=yes 1876 2673 hardcode_into_libs=yes 1877 2674 if test "$with_gnu_ld" = yes; then 1878 2675 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 1879 shlibpath_overrides_runpath=no1880 2676 else 1881 2677 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 1882 shlibpath_overrides_runpath=yes1883 2678 case $host_os in 1884 2679 sco3.2v5*) … … 1890 2685 ;; 1891 2686 2687 tpf*) 2688 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 2689 version_type=linux 2690 need_lib_prefix=no 2691 need_version=no 2692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2693 shlibpath_var=LD_LIBRARY_PATH 2694 shlibpath_overrides_runpath=no 2695 hardcode_into_libs=yes 2696 ;; 2697 1892 2698 uts4*) 1893 2699 version_type=linux … … 1904 2710 test "$dynamic_linker" = no && can_build_shared=no 1905 2711 1906 AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],1907 [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])1908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"1909 AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],1910 [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])1911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"1912 1913 2712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 1914 2713 if test "$GCC" = yes; then 1915 2714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 1916 2715 fi 1917 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1918 1919 1920 # _LT_AC_TAGCONFIG 1921 # ---------------- 1922 AC_DEFUN([_LT_AC_TAGCONFIG], 1923 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1924 AC_ARG_WITH([tags], 1925 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 1926 [include additional configurations @<:@automatic@:>@])], 1927 [tagnames="$withval"]) 1928 1929 if test -f "$ltmain" && test -n "$tagnames"; then 1930 if test ! -f "${ofile}"; then 1931 AC_MSG_WARN([output file `$ofile' does not exist]) 1932 fi 1933 1934 if test -z "$LTCC"; then 1935 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 1936 if test -z "$LTCC"; then 1937 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 1938 else 1939 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 1940 fi 1941 fi 1942 if test -z "$LTCFLAGS"; then 1943 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 1944 fi 1945 1946 # Extract list of available tagged configurations in $ofile. 1947 # Note that this assumes the entire list is on one line. 1948 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 1949 1950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1951 for tagname in $tagnames; do 1952 IFS="$lt_save_ifs" 1953 # Check whether tagname contains only valid characters 1954 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 1955 "") ;; 1956 *) AC_MSG_ERROR([invalid tag name: $tagname]) 1957 ;; 1958 esac 1959 1960 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 1961 then 1962 AC_MSG_ERROR([tag name \"$tagname\" already exists]) 1963 fi 1964 1965 # Update the list of available tags. 1966 if test -n "$tagname"; then 1967 echo appending configuration tag \"$tagname\" to $ofile 1968 1969 case $tagname in 1970 CXX) 1971 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 1972 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 1973 (test "X$CXX" != "Xg++"))) ; then 1974 AC_LIBTOOL_LANG_CXX_CONFIG 1975 else 1976 tagname="" 1977 fi 1978 ;; 1979 1980 F77) 1981 if test -n "$F77" && test "X$F77" != "Xno"; then 1982 AC_LIBTOOL_LANG_F77_CONFIG 1983 else 1984 tagname="" 1985 fi 1986 ;; 1987 1988 GCJ) 1989 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 1990 AC_LIBTOOL_LANG_GCJ_CONFIG 1991 else 1992 tagname="" 1993 fi 1994 ;; 1995 1996 RC) 1997 AC_LIBTOOL_LANG_RC_CONFIG 1998 ;; 1999 2000 *) 2001 AC_MSG_ERROR([Unsupported tag name: $tagname]) 2002 ;; 2003 esac 2004 2005 # Append the new tag name to the list of available tags. 2006 if test -n "$tagname" ; then 2007 available_tags="$available_tags $tagname" 2008 fi 2009 fi 2010 done 2011 IFS="$lt_save_ifs" 2012 2013 # Now substitute the updated list of available tags. 2014 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 2015 mv "${ofile}T" "$ofile" 2016 chmod +x "$ofile" 2017 else 2018 rm -f "${ofile}T" 2019 AC_MSG_ERROR([unable to update list of available tagged configurations.]) 2020 fi 2716 2717 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 2718 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 2021 2719 fi 2022 ])# _LT_AC_TAGCONFIG 2023 2024 2025 # AC_LIBTOOL_DLOPEN 2026 # ----------------- 2027 # enable checks for dlopen support 2028 AC_DEFUN([AC_LIBTOOL_DLOPEN], 2029 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 2030 ])# AC_LIBTOOL_DLOPEN 2031 2032 2033 # AC_LIBTOOL_WIN32_DLL 2034 # -------------------- 2035 # declare package support for building win32 DLLs 2036 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2037 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2038 ])# AC_LIBTOOL_WIN32_DLL 2039 2040 2041 # AC_ENABLE_SHARED([DEFAULT]) 2042 # --------------------------- 2043 # implement the --enable-shared flag 2044 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2045 AC_DEFUN([AC_ENABLE_SHARED], 2046 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 2047 AC_ARG_ENABLE([shared], 2048 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 2049 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 2050 [p=${PACKAGE-default} 2051 case $enableval in 2052 yes) enable_shared=yes ;; 2053 no) enable_shared=no ;; 2054 *) 2055 enable_shared=no 2056 # Look at the argument we got. We use all the common list separators. 2057 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2058 for pkg in $enableval; do 2059 IFS="$lt_save_ifs" 2060 if test "X$pkg" = "X$p"; then 2061 enable_shared=yes 2062 fi 2063 done 2064 IFS="$lt_save_ifs" 2065 ;; 2066 esac], 2067 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 2068 ])# AC_ENABLE_SHARED 2069 2070 2071 # AC_DISABLE_SHARED 2072 # ----------------- 2073 # set the default shared flag to --disable-shared 2074 AC_DEFUN([AC_DISABLE_SHARED], 2075 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2076 AC_ENABLE_SHARED(no) 2077 ])# AC_DISABLE_SHARED 2078 2079 2080 # AC_ENABLE_STATIC([DEFAULT]) 2081 # --------------------------- 2082 # implement the --enable-static flag 2083 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2084 AC_DEFUN([AC_ENABLE_STATIC], 2085 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 2086 AC_ARG_ENABLE([static], 2087 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 2088 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 2089 [p=${PACKAGE-default} 2090 case $enableval in 2091 yes) enable_static=yes ;; 2092 no) enable_static=no ;; 2093 *) 2094 enable_static=no 2095 # Look at the argument we got. We use all the common list separators. 2096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2097 for pkg in $enableval; do 2098 IFS="$lt_save_ifs" 2099 if test "X$pkg" = "X$p"; then 2100 enable_static=yes 2101 fi 2102 done 2103 IFS="$lt_save_ifs" 2104 ;; 2105 esac], 2106 [enable_static=]AC_ENABLE_STATIC_DEFAULT) 2107 ])# AC_ENABLE_STATIC 2108 2109 2110 # AC_DISABLE_STATIC 2111 # ----------------- 2112 # set the default static flag to --disable-static 2113 AC_DEFUN([AC_DISABLE_STATIC], 2114 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2115 AC_ENABLE_STATIC(no) 2116 ])# AC_DISABLE_STATIC 2117 2118 2119 # AC_ENABLE_FAST_INSTALL([DEFAULT]) 2120 # --------------------------------- 2121 # implement the --enable-fast-install flag 2122 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2123 AC_DEFUN([AC_ENABLE_FAST_INSTALL], 2124 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 2125 AC_ARG_ENABLE([fast-install], 2126 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 2127 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 2128 [p=${PACKAGE-default} 2129 case $enableval in 2130 yes) enable_fast_install=yes ;; 2131 no) enable_fast_install=no ;; 2132 *) 2133 enable_fast_install=no 2134 # Look at the argument we got. We use all the common list separators. 2135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2136 for pkg in $enableval; do 2137 IFS="$lt_save_ifs" 2138 if test "X$pkg" = "X$p"; then 2139 enable_fast_install=yes 2140 fi 2141 done 2142 IFS="$lt_save_ifs" 2143 ;; 2144 esac], 2145 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 2146 ])# AC_ENABLE_FAST_INSTALL 2147 2148 2149 # AC_DISABLE_FAST_INSTALL 2150 # ----------------------- 2151 # set the default to --disable-fast-install 2152 AC_DEFUN([AC_DISABLE_FAST_INSTALL], 2153 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2154 AC_ENABLE_FAST_INSTALL(no) 2155 ])# AC_DISABLE_FAST_INSTALL 2156 2157 2158 # AC_LIBTOOL_PICMODE([MODE]) 2720 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 2721 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 2722 fi 2723 2724 _LT_DECL([], [variables_saved_for_relink], [1], 2725 [Variables whose values should be saved in libtool wrapper scripts and 2726 restored at link time]) 2727 _LT_DECL([], [need_lib_prefix], [0], 2728 [Do we need the "lib" prefix for modules?]) 2729 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 2730 _LT_DECL([], [version_type], [0], [Library versioning type]) 2731 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 2732 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 2733 _LT_DECL([], [shlibpath_overrides_runpath], [0], 2734 [Is shlibpath searched before the hard-coded library search path?]) 2735 _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 2736 _LT_DECL([], [library_names_spec], [1], 2737 [[List of archive names. First name is the real one, the rest are links. 2738 The last name is the one that the linker finds with -lNAME]]) 2739 _LT_DECL([], [soname_spec], [1], 2740 [[The coded name of the library, if different from the real name]]) 2741 _LT_DECL([], [postinstall_cmds], [2], 2742 [Command to use after installation of a shared archive]) 2743 _LT_DECL([], [postuninstall_cmds], [2], 2744 [Command to use after uninstallation of a shared archive]) 2745 _LT_DECL([], [finish_cmds], [2], 2746 [Commands used to finish a libtool library installation in a directory]) 2747 _LT_DECL([], [finish_eval], [1], 2748 [[As "finish_cmds", except a single script fragment to be evaled but 2749 not shown]]) 2750 _LT_DECL([], [hardcode_into_libs], [0], 2751 [Whether we should hardcode library paths into libraries]) 2752 _LT_DECL([], [sys_lib_search_path_spec], [2], 2753 [Compile-time system search path for libraries]) 2754 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 2755 [Run-time system search path for libraries]) 2756 ])# _LT_SYS_DYNAMIC_LINKER 2757 2758 2759 # _LT_PATH_TOOL_PREFIX(TOOL) 2159 2760 # -------------------------- 2160 # implement the --with-pic flag2161 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.2162 AC_DEFUN([AC_LIBTOOL_PICMODE],2163 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl2164 pic_mode=ifelse($#,1,$1,default)2165 ])# AC_LIBTOOL_PICMODE2166 2167 2168 # AC_PROG_EGREP2169 # -------------2170 # This is predefined starting with Autoconf 2.54, so this conditional2171 # definition can be removed once we require Autoconf 2.54 or later.2172 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],2173 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],2174 [if echo a | (grep -E '(a|b)') >/dev/null 2>&12175 then ac_cv_prog_egrep='grep -E'2176 else ac_cv_prog_egrep='egrep'2177 fi])2178 EGREP=$ac_cv_prog_egrep2179 AC_SUBST([EGREP])2180 ])])2181 2182 2183 # AC_PATH_TOOL_PREFIX2184 # -------------------2185 2761 # find a file program which can recognize shared library 2186 AC_DEFUN([ AC_PATH_TOOL_PREFIX],2187 [ AC_REQUIRE([AC_PROG_EGREP])dnl2762 AC_DEFUN([_LT_PATH_TOOL_PREFIX], 2763 [m4_require([_LT_DECL_EGREP])dnl 2188 2764 AC_MSG_CHECKING([for $1]) 2189 2765 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, … … 2198 2774 dnl POSIX.2 word splitting is done only on the output of word expansions, 2199 2775 dnl not every word. This closes a longstanding sh security hole. 2200 ac_dummy=" ifelse([$2], , $PATH, [$2])"2776 ac_dummy="m4_if([$2], , $PATH, [$2])" 2201 2777 for ac_dir in $ac_dummy; do 2202 2778 IFS="$lt_save_ifs" … … 2213 2789 : 2214 2790 else 2215 cat << EOF 1>&22791 cat <<_LT_EOF 1>&2 2216 2792 2217 2793 *** Warning: the command libtool uses to detect shared libraries, … … 2224 2800 *** bug-libtool@gnu.org 2225 2801 2226 EOF2802 _LT_EOF 2227 2803 fi ;; 2228 2804 esac … … 2241 2817 AC_MSG_RESULT(no) 2242 2818 fi 2243 ])# AC_PATH_TOOL_PREFIX 2244 2245 2246 # AC_PATH_MAGIC 2247 # ------------- 2819 _LT_DECL([], [MAGIC_CMD], [0], 2820 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 2821 ])# _LT_PATH_TOOL_PREFIX 2822 2823 # Old name: 2824 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 2825 dnl aclocal-1.4 backwards compatibility: 2826 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 2827 2828 2829 # _LT_PATH_MAGIC 2830 # -------------- 2248 2831 # find a file program which can recognize a shared library 2249 AC_DEFUN([AC_PATH_MAGIC],2250 [ AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)2832 m4_defun([_LT_PATH_MAGIC], 2833 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 2251 2834 if test -z "$lt_cv_path_MAGIC_CMD"; then 2252 2835 if test -n "$ac_tool_prefix"; then 2253 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)2836 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 2254 2837 else 2255 2838 MAGIC_CMD=: 2256 2839 fi 2257 2840 fi 2258 ])# AC_PATH_MAGIC2259 2260 2261 # AC_PROG_LD2841 ])# _LT_PATH_MAGIC 2842 2843 2844 # LT_PATH_LD 2262 2845 # ---------- 2263 2846 # find the pathname to the GNU or non-GNU linker 2264 AC_DEFUN([AC_PROG_LD], 2265 [AC_ARG_WITH([gnu-ld], 2266 [AC_HELP_STRING([--with-gnu-ld], 2847 AC_DEFUN([LT_PATH_LD], 2848 [AC_REQUIRE([AC_PROG_CC])dnl 2849 AC_REQUIRE([AC_CANONICAL_HOST])dnl 2850 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2851 m4_require([_LT_DECL_SED])dnl 2852 m4_require([_LT_DECL_EGREP])dnl 2853 2854 AC_ARG_WITH([gnu-ld], 2855 [AS_HELP_STRING([--with-gnu-ld], 2267 2856 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 2268 2857 [test "$withval" = no || with_gnu_ld=yes], 2269 [with_gnu_ld=no]) 2270 AC_REQUIRE([LT_AC_PROG_SED])dnl 2271 AC_REQUIRE([AC_PROG_CC])dnl 2272 AC_REQUIRE([AC_CANONICAL_HOST])dnl 2273 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2858 [with_gnu_ld=no])dnl 2859 2274 2860 ac_prog=ld 2275 2861 if test "$GCC" = yes; then … … 2288 2874 re_direlt='/[[^/]][[^/]]*/\.\./' 2289 2875 # Canonicalize the pathname of ld 2290 ac_prog=` echo $ac_prog| $SED 's%\\\\%/%g'`2291 while echo $ac_prog | grep"$re_direlt" > /dev/null 2>&1; do2292 ac_prog=` echo$ac_prog| $SED "s%$re_direlt%/%"`2876 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 2877 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 2878 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 2293 2879 done 2294 2880 test -z "$LD" && LD="$ac_prog" … … 2340 2926 fi 2341 2927 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 2342 AC_PROG_LD_GNU 2343 ])# AC_PROG_LD 2344 2345 2346 # AC_PROG_LD_GNU 2347 # -------------- 2348 AC_DEFUN([AC_PROG_LD_GNU], 2349 [AC_REQUIRE([AC_PROG_EGREP])dnl 2350 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2928 _LT_PATH_LD_GNU 2929 AC_SUBST([LD]) 2930 2931 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 2932 ])# LT_PATH_LD 2933 2934 # Old names: 2935 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 2936 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 2937 dnl aclocal-1.4 backwards compatibility: 2938 dnl AC_DEFUN([AM_PROG_LD], []) 2939 dnl AC_DEFUN([AC_PROG_LD], []) 2940 2941 2942 # _LT_PATH_LD_GNU 2943 #- -------------- 2944 m4_defun([_LT_PATH_LD_GNU], 2945 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2351 2946 [# I'd rather use --version here, but apparently some GNU lds only accept -v. 2352 2947 case `$LD -v 2>&1 </dev/null` in … … 2359 2954 esac]) 2360 2955 with_gnu_ld=$lt_cv_prog_gnu_ld 2361 ])# AC_PROG_LD_GNU2362 2363 2364 # AC_PROG_LD_RELOAD_FLAG2365 # -------------- --------2956 ])# _LT_PATH_LD_GNU 2957 2958 2959 # _LT_CMD_RELOAD 2960 # -------------- 2366 2961 # find reload flag for linker 2367 2962 # -- PORTME Some linkers may need a different reload flag. 2368 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],2963 m4_defun([_LT_CMD_RELOAD], 2369 2964 [AC_CACHE_CHECK([for $LD option to reload object files], 2370 2965 lt_cv_ld_reload_flag, … … 2385 2980 ;; 2386 2981 esac 2387 ])# AC_PROG_LD_RELOAD_FLAG 2388 2389 2390 # AC_DEPLIBS_CHECK_METHOD 2391 # ----------------------- 2982 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl 2983 _LT_DECL([], [reload_cmds], [2])dnl 2984 ])# _LT_CMD_RELOAD 2985 2986 2987 # _LT_CHECK_MAGIC_METHOD 2988 # ---------------------- 2392 2989 # how to check for library dependencies 2393 2990 # -- PORTME fill in with the dynamic library characteristics 2394 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2395 [AC_CACHE_CHECK([how to recognize dependent libraries], 2991 m4_defun([_LT_CHECK_MAGIC_METHOD], 2992 [m4_require([_LT_DECL_EGREP]) 2993 m4_require([_LT_DECL_OBJDUMP]) 2994 AC_CACHE_CHECK([how to recognize dependent libraries], 2396 2995 lt_cv_deplibs_check_method, 2397 2996 [lt_cv_file_magic_cmd='$MAGIC_CMD' … … 2443 3042 ;; 2444 3043 3044 cegcc) 3045 # use the weaker test based on 'objdump'. See mingw*. 3046 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 3047 lt_cv_file_magic_cmd='$OBJDUMP -f' 3048 ;; 3049 2445 3050 darwin* | rhapsody*) 2446 3051 lt_cv_deplibs_check_method=pass_all … … 2448 3053 2449 3054 freebsd* | dragonfly*) 2450 if echo __ELF__ | $CC -E - | grep__ELF__ > /dev/null; then3055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 2451 3056 case $host_cpu in 2452 3057 i*86 ) … … 2506 3111 2507 3112 netbsd*) 2508 if echo __ELF__ | $CC -E - | grep__ELF__ > /dev/null; then3113 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 2509 3114 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2510 3115 else … … 2519 3124 ;; 2520 3125 2521 nto-qnx*)2522 lt_cv_deplibs_check_method= unknown3126 *nto* | *qnx*) 3127 lt_cv_deplibs_check_method=pass_all 2523 3128 ;; 2524 3129 2525 3130 openbsd*) 2526 if test -z "`echo __ELF__ | $CC -E - | grep__ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then3131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2527 3132 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 2528 3133 else … … 2540 3145 2541 3146 solaris*) 3147 lt_cv_deplibs_check_method=pass_all 3148 ;; 3149 3150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2542 3151 lt_cv_deplibs_check_method=pass_all 2543 3152 ;; … … 2570 3179 ;; 2571 3180 2572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)3181 tpf*) 2573 3182 lt_cv_deplibs_check_method=pass_all 2574 3183 ;; … … 2578 3187 deplibs_check_method=$lt_cv_deplibs_check_method 2579 3188 test -z "$deplibs_check_method" && deplibs_check_method=unknown 2580 ])# AC_DEPLIBS_CHECK_METHOD 2581 2582 2583 # AC_PROG_NM 3189 3190 _LT_DECL([], [deplibs_check_method], [1], 3191 [Method to check whether dependent libraries are shared objects]) 3192 _LT_DECL([], [file_magic_cmd], [1], 3193 [Command to use when deplibs_check_method == "file_magic"]) 3194 ])# _LT_CHECK_MAGIC_METHOD 3195 3196 3197 # LT_PATH_NM 2584 3198 # ---------- 2585 # find the pathname to a BSD-compatible name lister 2586 AC_DEFUN([AC_PROG_NM], 2587 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 3199 # find the pathname to a BSD- or MS-compatible name lister 3200 AC_DEFUN([LT_PATH_NM], 3201 [AC_REQUIRE([AC_PROG_CC])dnl 3202 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 2588 3203 [if test -n "$NM"; then 2589 3204 # Let the user override the test. … … 2627 3242 IFS="$lt_save_ifs" 2628 3243 done 2629 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm3244 : ${lt_cv_path_NM=no} 2630 3245 fi]) 2631 NM="$lt_cv_path_NM" 2632 ])# AC_PROG_NM 2633 2634 2635 # AC_CHECK_LIBM 2636 # ------------- 3246 if test "$lt_cv_path_NM" != "no"; then 3247 NM="$lt_cv_path_NM" 3248 else 3249 # Didn't find any BSD compatible name lister, look for dumpbin. 3250 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :) 3251 AC_SUBST([DUMPBIN]) 3252 if test "$DUMPBIN" != ":"; then 3253 NM="$DUMPBIN" 3254 fi 3255 fi 3256 test -z "$NM" && NM=nm 3257 AC_SUBST([NM]) 3258 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3259 3260 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3261 [lt_cv_nm_interface="BSD nm" 3262 echo "int some_variable = 0;" > conftest.$ac_ext 3263 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3264 (eval "$ac_compile" 2>conftest.err) 3265 cat conftest.err >&AS_MESSAGE_LOG_FD 3266 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3267 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3268 cat conftest.err >&AS_MESSAGE_LOG_FD 3269 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD) 3270 cat conftest.out >&AS_MESSAGE_LOG_FD 3271 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3272 lt_cv_nm_interface="MS dumpbin" 3273 fi 3274 rm -f conftest*]) 3275 ])# LT_PATH_NM 3276 3277 # Old names: 3278 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 3279 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 3280 dnl aclocal-1.4 backwards compatibility: 3281 dnl AC_DEFUN([AM_PROG_NM], []) 3282 dnl AC_DEFUN([AC_PROG_NM], []) 3283 3284 3285 # LT_LIB_M 3286 # -------- 2637 3287 # check for math library 2638 AC_DEFUN([ AC_CHECK_LIBM],3288 AC_DEFUN([LT_LIB_M], 2639 3289 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 2640 3290 LIBM= … … 2651 3301 ;; 2652 3302 esac 2653 ])# AC_CHECK_LIBM 2654 2655 2656 # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 2657 # ----------------------------------- 2658 # sets LIBLTDL to the link flags for the libltdl convenience library and 2659 # LTDLINCL to the include flags for the libltdl header and adds 2660 # --enable-ltdl-convenience to the configure arguments. Note that 2661 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2662 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with 2663 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 2664 # (note the single quotes!). If your package is not flat and you're not 2665 # using automake, define top_builddir and top_srcdir appropriately in 2666 # the Makefiles. 2667 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2668 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2669 case $enable_ltdl_convenience in 2670 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 2671 "") enable_ltdl_convenience=yes 2672 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 2673 esac 2674 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 2675 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 2676 # For backwards non-gettext consistent compatibility... 2677 INCLTDL="$LTDLINCL" 2678 ])# AC_LIBLTDL_CONVENIENCE 2679 2680 2681 # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 2682 # ----------------------------------- 2683 # sets LIBLTDL to the link flags for the libltdl installable library and 2684 # LTDLINCL to the include flags for the libltdl header and adds 2685 # --enable-ltdl-install to the configure arguments. Note that 2686 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2687 # and an installed libltdl is not found, it is assumed to be `libltdl'. 2688 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 2689 # '${top_srcdir}/' (note the single quotes!). If your package is not 2690 # flat and you're not using automake, define top_builddir and top_srcdir 2691 # appropriately in the Makefiles. 2692 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2693 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 2694 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2695 AC_CHECK_LIB(ltdl, lt_dlinit, 2696 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 2697 [if test x"$enable_ltdl_install" = xno; then 2698 AC_MSG_WARN([libltdl not installed, but installation disabled]) 2699 else 2700 enable_ltdl_install=yes 2701 fi 2702 ]) 2703 if test x"$enable_ltdl_install" = x"yes"; then 2704 ac_configure_args="$ac_configure_args --enable-ltdl-install" 2705 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 2706 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 2707 else 2708 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 2709 LIBLTDL="-lltdl" 2710 LTDLINCL= 2711 fi 2712 # For backwards non-gettext consistent compatibility... 2713 INCLTDL="$LTDLINCL" 2714 ])# AC_LIBLTDL_INSTALLABLE 2715 2716 2717 # AC_LIBTOOL_CXX 2718 # -------------- 2719 # enable support for C++ libraries 2720 AC_DEFUN([AC_LIBTOOL_CXX], 2721 [AC_REQUIRE([_LT_AC_LANG_CXX]) 2722 ])# AC_LIBTOOL_CXX 2723 2724 2725 # _LT_AC_LANG_CXX 2726 # --------------- 2727 AC_DEFUN([_LT_AC_LANG_CXX], 2728 [AC_REQUIRE([AC_PROG_CXX]) 2729 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2730 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2731 ])# _LT_AC_LANG_CXX 2732 2733 # _LT_AC_PROG_CXXCPP 2734 # ------------------ 2735 AC_DEFUN([_LT_AC_PROG_CXXCPP], 2736 [ 2737 AC_REQUIRE([AC_PROG_CXX]) 2738 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2739 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2740 (test "X$CXX" != "Xg++"))) ; then 2741 AC_PROG_CXXCPP 2742 fi 2743 ])# _LT_AC_PROG_CXXCPP 2744 2745 # AC_LIBTOOL_F77 2746 # -------------- 2747 # enable support for Fortran 77 libraries 2748 AC_DEFUN([AC_LIBTOOL_F77], 2749 [AC_REQUIRE([_LT_AC_LANG_F77]) 2750 ])# AC_LIBTOOL_F77 2751 2752 2753 # _LT_AC_LANG_F77 2754 # --------------- 2755 AC_DEFUN([_LT_AC_LANG_F77], 2756 [AC_REQUIRE([AC_PROG_F77]) 2757 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 2758 ])# _LT_AC_LANG_F77 2759 2760 2761 # AC_LIBTOOL_GCJ 2762 # -------------- 2763 # enable support for GCJ libraries 2764 AC_DEFUN([AC_LIBTOOL_GCJ], 2765 [AC_REQUIRE([_LT_AC_LANG_GCJ]) 2766 ])# AC_LIBTOOL_GCJ 2767 2768 2769 # _LT_AC_LANG_GCJ 2770 # --------------- 2771 AC_DEFUN([_LT_AC_LANG_GCJ], 2772 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 2773 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 2774 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 2775 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 2776 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 2777 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 2778 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 2779 ])# _LT_AC_LANG_GCJ 2780 2781 2782 # AC_LIBTOOL_RC 2783 # ------------- 2784 # enable support for Windows resource files 2785 AC_DEFUN([AC_LIBTOOL_RC], 2786 [AC_REQUIRE([LT_AC_PROG_RC]) 2787 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 2788 ])# AC_LIBTOOL_RC 2789 2790 2791 # AC_LIBTOOL_LANG_C_CONFIG 2792 # ------------------------ 2793 # Ensure that the configuration vars for the C compiler are 2794 # suitably defined. Those variables are subsequently used by 2795 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 2796 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 2797 AC_DEFUN([_LT_AC_LANG_C_CONFIG], 2798 [lt_save_CC="$CC" 2799 AC_LANG_PUSH(C) 2800 2801 # Source file extension for C test sources. 2802 ac_ext=c 2803 2804 # Object file extension for compiled C test sources. 2805 objext=o 2806 _LT_AC_TAGVAR(objext, $1)=$objext 2807 2808 # Code to be used in simple compile tests 2809 lt_simple_compile_test_code="int some_variable = 0;" 2810 2811 # Code to be used in simple link tests 2812 lt_simple_link_test_code='int main(){return(0);}' 2813 2814 _LT_AC_SYS_COMPILER 2815 2816 # save warnings/boilerplate of simple test code 2817 _LT_COMPILER_BOILERPLATE 2818 _LT_LINKER_BOILERPLATE 2819 2820 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 2821 AC_LIBTOOL_PROG_COMPILER_PIC($1) 2822 AC_LIBTOOL_PROG_CC_C_O($1) 2823 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 2824 AC_LIBTOOL_PROG_LD_SHLIBS($1) 2825 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2826 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2827 AC_LIBTOOL_SYS_LIB_STRIP 2828 AC_LIBTOOL_DLOPEN_SELF 2829 2830 # Report which library types will actually be built 2831 AC_MSG_CHECKING([if libtool supports shared libraries]) 2832 AC_MSG_RESULT([$can_build_shared]) 2833 2834 AC_MSG_CHECKING([whether to build shared libraries]) 2835 test "$can_build_shared" = "no" && enable_shared=no 2836 2837 # On AIX, shared libraries and static libraries use the same namespace, and 2838 # are all built from PIC. 2839 case $host_os in 2840 aix3*) 2841 test "$enable_shared" = yes && enable_static=no 2842 if test -n "$RANLIB"; then 2843 archive_cmds="$archive_cmds~\$RANLIB \$lib" 2844 postinstall_cmds='$RANLIB $lib' 2845 fi 2846 ;; 2847 2848 aix[[4-9]]*) 2849 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2850 test "$enable_shared" = yes && enable_static=no 2851 fi 2852 ;; 2853 esac 2854 AC_MSG_RESULT([$enable_shared]) 2855 2856 AC_MSG_CHECKING([whether to build static libraries]) 2857 # Make sure either enable_shared or enable_static is yes. 2858 test "$enable_shared" = yes || enable_static=yes 2859 AC_MSG_RESULT([$enable_static]) 2860 2861 AC_LIBTOOL_CONFIG($1) 2862 2863 AC_LANG_POP 2864 CC="$lt_save_CC" 2865 ])# AC_LIBTOOL_LANG_C_CONFIG 2866 2867 2868 # AC_LIBTOOL_LANG_CXX_CONFIG 2869 # -------------------------- 2870 # Ensure that the configuration vars for the C compiler are 2871 # suitably defined. Those variables are subsequently used by 2872 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 2873 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 2874 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 2875 [AC_LANG_PUSH(C++) 2876 AC_REQUIRE([AC_PROG_CXX]) 2877 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2878 2879 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2880 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 2881 _LT_AC_TAGVAR(always_export_symbols, $1)=no 2882 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 2883 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 2884 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2885 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 2886 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 2887 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2888 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2889 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2890 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 2891 _LT_AC_TAGVAR(module_cmds, $1)= 2892 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 2893 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 2894 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 2895 _LT_AC_TAGVAR(no_undefined_flag, $1)= 2896 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 2897 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 2898 2899 # Dependencies to place before and after the object being linked: 2900 _LT_AC_TAGVAR(predep_objects, $1)= 2901 _LT_AC_TAGVAR(postdep_objects, $1)= 2902 _LT_AC_TAGVAR(predeps, $1)= 2903 _LT_AC_TAGVAR(postdeps, $1)= 2904 _LT_AC_TAGVAR(compiler_lib_search_path, $1)= 2905 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 2906 2907 # Source file extension for C++ test sources. 2908 ac_ext=cpp 2909 2910 # Object file extension for compiled C++ test sources. 2911 objext=o 2912 _LT_AC_TAGVAR(objext, $1)=$objext 2913 2914 # Code to be used in simple compile tests 2915 lt_simple_compile_test_code="int some_variable = 0;" 2916 2917 # Code to be used in simple link tests 2918 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 2919 2920 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 2921 _LT_AC_SYS_COMPILER 2922 2923 # save warnings/boilerplate of simple test code 2924 _LT_COMPILER_BOILERPLATE 2925 _LT_LINKER_BOILERPLATE 2926 2927 # Allow CC to be a program name with arguments. 2928 lt_save_CC=$CC 2929 lt_save_LD=$LD 2930 lt_save_GCC=$GCC 2931 GCC=$GXX 2932 lt_save_with_gnu_ld=$with_gnu_ld 2933 lt_save_path_LD=$lt_cv_path_LD 2934 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 2935 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 2936 else 2937 $as_unset lt_cv_prog_gnu_ld 2938 fi 2939 if test -n "${lt_cv_path_LDCXX+set}"; then 2940 lt_cv_path_LD=$lt_cv_path_LDCXX 2941 else 2942 $as_unset lt_cv_path_LD 2943 fi 2944 test -z "${LDCXX+set}" || LD=$LDCXX 2945 CC=${CXX-"c++"} 2946 compiler=$CC 2947 _LT_AC_TAGVAR(compiler, $1)=$CC 2948 _LT_CC_BASENAME([$compiler]) 2949 2950 # We don't want -fno-exception wen compiling C++ code, so set the 2951 # no_builtin_flag separately 2952 if test "$GXX" = yes; then 2953 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 2954 else 2955 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 2956 fi 2957 2958 if test "$GXX" = yes; then 2959 # Set up default GNU C++ configuration 2960 2961 AC_PROG_LD 2962 2963 # Check if GNU C++ uses GNU ld as the underlying linker, since the 2964 # archiving commands below assume that GNU ld is being used. 2965 if test "$with_gnu_ld" = yes; then 2966 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 2967 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 2968 2969 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 2970 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 2971 2972 # If archive_cmds runs LD, not CC, wlarc should be empty 2973 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 2974 # investigate it a little bit more. (MM) 2975 wlarc='${wl}' 2976 2977 # ancient GNU ld didn't support --whole-archive et. al. 2978 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 2979 grep 'no-whole-archive' > /dev/null; then 2980 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 2981 else 2982 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 2983 fi 2984 else 2985 with_gnu_ld=no 2986 wlarc= 2987 2988 # A generic and very simple default shared library creation 2989 # command for GNU C++ for the case where it uses the native 2990 # linker, instead of GNU ld. If possible, this setting should 2991 # overridden to take advantage of the native linker features on 2992 # the platform it is being used on. 2993 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 2994 fi 2995 2996 # Commands to make compiler produce verbose output that lists 2997 # what "hidden" libraries, object files and flags are used when 2998 # linking a shared library. 2999 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3000 3001 else 3002 GXX=no 3003 with_gnu_ld=no 3004 wlarc= 3005 fi 3006 3007 # PORTME: fill in a description of your system's C++ link characteristics 3008 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 3009 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3010 case $host_os in 3011 aix3*) 3012 # FIXME: insert proper C++ library support 3013 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3014 ;; 3015 aix[[4-9]]*) 3016 if test "$host_cpu" = ia64; then 3017 # On IA64, the linker does run time linking by default, so we don't 3018 # have to do anything special. 3019 aix_use_runtimelinking=no 3020 exp_sym_flag='-Bexport' 3021 no_entry_flag="" 3022 else 3023 aix_use_runtimelinking=no 3024 3025 # Test if we are trying to use run time linking or normal 3026 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 3027 # need to do runtime linking. 3028 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 3029 for ld_flag in $LDFLAGS; do 3030 case $ld_flag in 3031 *-brtl*) 3032 aix_use_runtimelinking=yes 3033 break 3034 ;; 3035 esac 3036 done 3037 ;; 3038 esac 3039 3040 exp_sym_flag='-bexport' 3041 no_entry_flag='-bnoentry' 3042 fi 3043 3044 # When large executables or shared objects are built, AIX ld can 3045 # have problems creating the table of contents. If linking a library 3046 # or program results in "error TOC overflow" add -mminimal-toc to 3047 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 3048 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 3049 3050 _LT_AC_TAGVAR(archive_cmds, $1)='' 3051 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3052 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3053 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3054 3055 if test "$GXX" = yes; then 3056 case $host_os in aix4.[[012]]|aix4.[[012]].*) 3057 # We only want to do this on AIX 4.2 and lower, the check 3058 # below for broken collect2 doesn't work under 4.3+ 3059 collect2name=`${CC} -print-prog-name=collect2` 3060 if test -f "$collect2name" && \ 3061 strings "$collect2name" | grep resolve_lib_name >/dev/null 3062 then 3063 # We have reworked collect2 3064 : 3065 else 3066 # We have old collect2 3067 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 3068 # It fails to find uninstalled libraries when the uninstalled 3069 # path is not listed in the libpath. Setting hardcode_minus_L 3070 # to unsupported forces relinking 3071 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 3072 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3073 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3074 fi 3075 ;; 3076 esac 3077 shared_flag='-shared' 3078 if test "$aix_use_runtimelinking" = yes; then 3079 shared_flag="$shared_flag "'${wl}-G' 3080 fi 3081 else 3082 # not using gcc 3083 if test "$host_cpu" = ia64; then 3084 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 3085 # chokes on -Wl,-G. The following line is correct: 3086 shared_flag='-G' 3087 else 3088 if test "$aix_use_runtimelinking" = yes; then 3089 shared_flag='${wl}-G' 3090 else 3091 shared_flag='${wl}-bM:SRE' 3092 fi 3093 fi 3094 fi 3095 3096 # It seems that -bexpall does not export symbols beginning with 3097 # underscore (_), so it is better to generate a list of symbols to export. 3098 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 3099 if test "$aix_use_runtimelinking" = yes; then 3100 # Warning - without using the other runtime loading flags (-brtl), 3101 # -berok will link without error, but may produce a broken library. 3102 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 3103 # Determine the default libpath from the value encoded in an empty executable. 3104 _LT_AC_SYS_LIBPATH_AIX 3105 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3106 3107 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 3108 else 3109 if test "$host_cpu" = ia64; then 3110 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 3111 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 3112 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 3113 else 3114 # Determine the default libpath from the value encoded in an empty executable. 3115 _LT_AC_SYS_LIBPATH_AIX 3116 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3117 # Warning - without using the other run time loading flags, 3118 # -berok will link without error, but may produce a broken library. 3119 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 3120 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 3121 # Exported symbols can be pulled into shared objects from archives 3122 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 3123 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 3124 # This is similar to how AIX traditionally builds its shared libraries. 3125 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 3126 fi 3127 fi 3128 ;; 3129 3130 beos*) 3131 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 3132 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3133 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 3134 # support --undefined. This deserves some investigation. FIXME 3135 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3136 else 3137 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3138 fi 3139 ;; 3140 3141 chorus*) 3142 case $cc_basename in 3143 *) 3144 # FIXME: insert proper C++ library support 3145 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3146 ;; 3147 esac 3148 ;; 3149 3150 cygwin* | mingw* | pw32*) 3151 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 3152 # as there is no search path for DLLs. 3153 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3154 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3155 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3156 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3157 3158 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3159 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 3160 # If the export-symbols file already is a .def file (1st line 3161 # is EXPORTS), use it as is; otherwise, prepend... 3162 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3163 cp $export_symbols $output_objdir/$soname.def; 3164 else 3165 echo EXPORTS > $output_objdir/$soname.def; 3166 cat $export_symbols >> $output_objdir/$soname.def; 3167 fi~ 3168 $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' 3169 else 3170 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3171 fi 3172 ;; 3173 darwin* | rhapsody*) 3174 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3175 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3176 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3177 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3178 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 3179 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3180 _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 3181 if test "$GXX" = yes ; then 3182 output_verbose_link_cmd='echo' 3183 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 3184 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 3185 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}" 3186 _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}" 3187 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 3188 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 3189 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}" 3190 fi 3191 else 3192 case $cc_basename in 3193 xlc*) 3194 output_verbose_link_cmd='echo' 3195 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 3196 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3197 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3198 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3199 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3200 ;; 3201 *) 3202 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3203 ;; 3204 esac 3205 fi 3206 ;; 3207 3208 dgux*) 3209 case $cc_basename in 3210 ec++*) 3211 # FIXME: insert proper C++ library support 3212 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3213 ;; 3214 ghcx*) 3215 # Green Hills C++ Compiler 3216 # FIXME: insert proper C++ library support 3217 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3218 ;; 3219 *) 3220 # FIXME: insert proper C++ library support 3221 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3222 ;; 3223 esac 3224 ;; 3225 freebsd[[12]]*) 3226 # C++ shared libraries reported to be fairly broken before switch to ELF 3227 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3228 ;; 3229 freebsd-elf*) 3230 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3231 ;; 3232 freebsd* | dragonfly*) 3233 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3234 # conventions 3235 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3236 ;; 3237 gnu*) 3238 ;; 3239 hpux9*) 3240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3241 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3242 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3243 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3244 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3245 # but as the default 3246 # location of the library. 3247 3248 case $cc_basename in 3249 CC*) 3250 # FIXME: insert proper C++ library support 3251 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3252 ;; 3253 aCC*) 3254 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3255 # Commands to make compiler produce verbose output that lists 3256 # what "hidden" libraries, object files and flags are used when 3257 # linking a shared library. 3258 # 3259 # There doesn't appear to be a way to prevent this compiler from 3260 # explicitly linking system object files so we need to strip them 3261 # from the output so that they don't get included in the library 3262 # dependencies. 3263 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3264 ;; 3265 *) 3266 if test "$GXX" = yes; then 3267 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 3268 else 3269 # FIXME: insert proper C++ library support 3270 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3271 fi 3272 ;; 3273 esac 3274 ;; 3275 hpux10*|hpux11*) 3276 if test $with_gnu_ld = no; then 3277 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3278 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3279 3280 case $host_cpu in 3281 hppa*64*|ia64*) ;; 3282 *) 3283 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3284 ;; 3285 esac 3286 fi 3287 case $host_cpu in 3288 hppa*64*|ia64*) 3289 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3290 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3291 ;; 3292 *) 3293 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3294 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3295 # but as the default 3296 # location of the library. 3297 ;; 3298 esac 3299 3300 case $cc_basename in 3301 CC*) 3302 # FIXME: insert proper C++ library support 3303 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3304 ;; 3305 aCC*) 3306 case $host_cpu in 3307 hppa*64*) 3308 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3309 ;; 3310 ia64*) 3311 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3312 ;; 3313 *) 3314 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3315 ;; 3316 esac 3317 # Commands to make compiler produce verbose output that lists 3318 # what "hidden" libraries, object files and flags are used when 3319 # linking a shared library. 3320 # 3321 # There doesn't appear to be a way to prevent this compiler from 3322 # explicitly linking system object files so we need to strip them 3323 # from the output so that they don't get included in the library 3324 # dependencies. 3325 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3326 ;; 3327 *) 3328 if test "$GXX" = yes; then 3329 if test $with_gnu_ld = no; then 3330 case $host_cpu in 3331 hppa*64*) 3332 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3333 ;; 3334 ia64*) 3335 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3336 ;; 3337 *) 3338 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3339 ;; 3340 esac 3341 fi 3342 else 3343 # FIXME: insert proper C++ library support 3344 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3345 fi 3346 ;; 3347 esac 3348 ;; 3349 interix[[3-9]]*) 3350 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3351 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3352 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3353 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3354 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 3355 # Instead, shared libraries are loaded at an image base (0x10000000 by 3356 # default) and relocated if they conflict, which is a slow very memory 3357 # consuming and fragmenting process. To avoid this, we pick a random, 3358 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 3359 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 3360 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 3361 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 3362 ;; 3363 irix5* | irix6*) 3364 case $cc_basename in 3365 CC*) 3366 # SGI C++ 3367 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3368 3369 # Archives containing C++ object files must be created using 3370 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 3371 # necessary to make sure instantiated templates are included 3372 # in the archive. 3373 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 3374 ;; 3375 *) 3376 if test "$GXX" = yes; then 3377 if test "$with_gnu_ld" = no; then 3378 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3379 else 3380 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 3381 fi 3382 fi 3383 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3384 ;; 3385 esac 3386 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3387 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3388 ;; 3389 linux* | k*bsd*-gnu) 3390 case $cc_basename in 3391 KCC*) 3392 # Kuck and Associates, Inc. (KAI) C++ Compiler 3393 3394 # KCC will only create a shared library if the output file 3395 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3396 # to its proper name (with version) after linking. 3397 _LT_AC_TAGVAR(archive_cmds, $1)='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' 3398 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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' 3399 # Commands to make compiler produce verbose output that lists 3400 # what "hidden" libraries, object files and flags are used when 3401 # linking a shared library. 3402 # 3403 # There doesn't appear to be a way to prevent this compiler from 3404 # explicitly linking system object files so we need to strip them 3405 # from the output so that they don't get included in the library 3406 # dependencies. 3407 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; echo $list' 3408 3409 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 3410 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3411 3412 # Archives containing C++ object files must be created using 3413 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3414 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3415 ;; 3416 icpc*) 3417 # Intel C++ 3418 with_gnu_ld=yes 3419 # version 8.0 and above of icpc choke on multiply defined symbols 3420 # if we add $predep_objects and $postdep_objects, however 7.1 and 3421 # earlier do not add the objects themselves. 3422 case `$CC -V 2>&1` in 3423 *"Version 7."*) 3424 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3425 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3426 ;; 3427 *) # Version 8.0 or newer 3428 tmp_idyn= 3429 case $host_cpu in 3430 ia64*) tmp_idyn=' -i_dynamic';; 3431 esac 3432 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3433 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 3434 ;; 3435 esac 3436 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3437 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3438 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3439 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3440 ;; 3441 pgCC* | pgcpp*) 3442 # Portland Group C++ compiler 3443 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 3444 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 3445 3446 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3447 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3448 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3449 ;; 3450 cxx*) 3451 # Compaq C++ 3452 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3453 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 3454 3455 runpath_var=LD_RUN_PATH 3456 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3457 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3458 3459 # Commands to make compiler produce verbose output that lists 3460 # what "hidden" libraries, object files and flags are used when 3461 # linking a shared library. 3462 # 3463 # There doesn't appear to be a way to prevent this compiler from 3464 # explicitly linking system object files so we need to strip them 3465 # from the output so that they don't get included in the library 3466 # dependencies. 3467 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3468 ;; 3469 *) 3470 case `$CC -V 2>&1 | sed 5q` in 3471 *Sun\ C*) 3472 # Sun C++ 5.9 3473 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3474 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3475 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 3476 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3477 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3478 3479 # Not sure whether something based on 3480 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 3481 # would be better. 3482 output_verbose_link_cmd='echo' 3483 3484 # Archives containing C++ object files must be created using 3485 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3486 # necessary to make sure instantiated templates are included 3487 # in the archive. 3488 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3489 ;; 3490 esac 3491 ;; 3492 esac 3493 ;; 3494 lynxos*) 3495 # FIXME: insert proper C++ library support 3496 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3497 ;; 3498 m88k*) 3499 # FIXME: insert proper C++ library support 3500 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3501 ;; 3502 mvs*) 3503 case $cc_basename in 3504 cxx*) 3505 # FIXME: insert proper C++ library support 3506 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3507 ;; 3508 *) 3509 # FIXME: insert proper C++ library support 3510 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3511 ;; 3512 esac 3513 ;; 3514 netbsd*) 3515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3516 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 3517 wlarc= 3518 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3519 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3520 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3521 fi 3522 # Workaround some broken pre-1.5 toolchains 3523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3524 ;; 3525 openbsd2*) 3526 # C++ shared libraries are fairly broken 3527 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3528 ;; 3529 openbsd*) 3530 if test -f /usr/libexec/ld.so; then 3531 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3532 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3533 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3534 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3535 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3536 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 3537 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3538 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3539 fi 3540 output_verbose_link_cmd='echo' 3541 else 3542 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3543 fi 3544 ;; 3545 osf3*) 3546 case $cc_basename in 3547 KCC*) 3548 # Kuck and Associates, Inc. (KAI) C++ Compiler 3549 3550 # KCC will only create a shared library if the output file 3551 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3552 # to its proper name (with version) after linking. 3553 _LT_AC_TAGVAR(archive_cmds, $1)='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' 3554 3555 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3556 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3557 3558 # Archives containing C++ object files must be created using 3559 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3560 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3561 3562 ;; 3563 RCC*) 3564 # Rational C++ 2.4.1 3565 # FIXME: insert proper C++ library support 3566 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3567 ;; 3568 cxx*) 3569 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3571 3572 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3573 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3574 3575 # Commands to make compiler produce verbose output that lists 3576 # what "hidden" libraries, object files and flags are used when 3577 # linking a shared library. 3578 # 3579 # There doesn't appear to be a way to prevent this compiler from 3580 # explicitly linking system object files so we need to strip them 3581 # from the output so that they don't get included in the library 3582 # dependencies. 3583 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3584 ;; 3585 *) 3586 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3587 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3588 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3589 3590 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3591 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3592 3593 # Commands to make compiler produce verbose output that lists 3594 # what "hidden" libraries, object files and flags are used when 3595 # linking a shared library. 3596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3597 3598 else 3599 # FIXME: insert proper C++ library support 3600 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3601 fi 3602 ;; 3603 esac 3604 ;; 3605 osf4* | osf5*) 3606 case $cc_basename in 3607 KCC*) 3608 # Kuck and Associates, Inc. (KAI) C++ Compiler 3609 3610 # KCC will only create a shared library if the output file 3611 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3612 # to its proper name (with version) after linking. 3613 _LT_AC_TAGVAR(archive_cmds, $1)='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' 3614 3615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3616 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3617 3618 # Archives containing C++ object files must be created using 3619 # the KAI C++ compiler. 3620 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3621 ;; 3622 RCC*) 3623 # Rational C++ 2.4.1 3624 # FIXME: insert proper C++ library support 3625 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3626 ;; 3627 cxx*) 3628 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3629 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3630 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3631 echo "-hidden">> $lib.exp~ 3632 $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~ 3633 $rm $lib.exp' 3634 3635 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3636 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3637 3638 # Commands to make compiler produce verbose output that lists 3639 # what "hidden" libraries, object files and flags are used when 3640 # linking a shared library. 3641 # 3642 # There doesn't appear to be a way to prevent this compiler from 3643 # explicitly linking system object files so we need to strip them 3644 # from the output so that they don't get included in the library 3645 # dependencies. 3646 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3647 ;; 3648 *) 3649 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3650 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3651 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3652 3653 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3654 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3655 3656 # Commands to make compiler produce verbose output that lists 3657 # what "hidden" libraries, object files and flags are used when 3658 # linking a shared library. 3659 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3660 3661 else 3662 # FIXME: insert proper C++ library support 3663 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3664 fi 3665 ;; 3666 esac 3667 ;; 3668 psos*) 3669 # FIXME: insert proper C++ library support 3670 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3671 ;; 3672 sunos4*) 3673 case $cc_basename in 3674 CC*) 3675 # Sun C++ 4.x 3676 # FIXME: insert proper C++ library support 3677 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3678 ;; 3679 lcc*) 3680 # Lucid 3681 # FIXME: insert proper C++ library support 3682 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3683 ;; 3684 *) 3685 # FIXME: insert proper C++ library support 3686 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3687 ;; 3688 esac 3689 ;; 3690 solaris*) 3691 case $cc_basename in 3692 CC*) 3693 # Sun C++ 4.2, 5.x and Centerline C++ 3694 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 3695 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3696 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3697 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3698 $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' 3699 3700 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3701 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3702 case $host_os in 3703 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3704 *) 3705 # The compiler driver will combine and reorder linker options, 3706 # but understands `-z linker_flag'. 3707 # Supported since Solaris 2.6 (maybe 2.5.1?) 3708 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 3709 ;; 3710 esac 3711 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3712 3713 output_verbose_link_cmd='echo' 3714 3715 # Archives containing C++ object files must be created using 3716 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3717 # necessary to make sure instantiated templates are included 3718 # in the archive. 3719 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3720 ;; 3721 gcx*) 3722 # Green Hills C++ Compiler 3723 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3724 3725 # The C++ compiler must be used to create the archive. 3726 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 3727 ;; 3728 *) 3729 # GNU C++ compiler with Solaris linker 3730 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3731 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 3732 if $CC --version | grep -v '^2\.7' > /dev/null; then 3733 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3734 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3735 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3736 3737 # Commands to make compiler produce verbose output that lists 3738 # what "hidden" libraries, object files and flags are used when 3739 # linking a shared library. 3740 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 3741 else 3742 # g++ 2.7 appears to require `-G' NOT `-shared' on this 3743 # platform. 3744 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3745 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3746 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3747 3748 # Commands to make compiler produce verbose output that lists 3749 # what "hidden" libraries, object files and flags are used when 3750 # linking a shared library. 3751 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 3752 fi 3753 3754 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 3755 case $host_os in 3756 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3757 *) 3758 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3759 ;; 3760 esac 3761 fi 3762 ;; 3763 esac 3764 ;; 3765 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 3766 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3767 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3768 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3769 runpath_var='LD_RUN_PATH' 3770 3771 case $cc_basename in 3772 CC*) 3773 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3774 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3775 ;; 3776 *) 3777 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3778 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3779 ;; 3780 esac 3781 ;; 3782 sysv5* | sco3.2v5* | sco5v6*) 3783 # Note: We can NOT use -z defs as we might desire, because we do not 3784 # link with -lc, and that would cause any symbols used from libc to 3785 # always be unresolved, which means just about no library would 3786 # ever link correctly. If we're not using GNU ld we use -z text 3787 # though, which does catch some bad symbols but isn't as heavy-handed 3788 # as -z defs. 3789 # For security reasons, it is highly recommended that you always 3790 # use absolute paths for naming shared libraries, and exclude the 3791 # DT_RUNPATH tag from executables and libraries. But doing so 3792 # requires that you compile everything twice, which is a pain. 3793 # So that behaviour is only enabled if SCOABSPATH is set to a 3794 # non-empty value in the environment. Most likely only useful for 3795 # creating official distributions of packages. 3796 # This is a hack until libtool officially supports absolute path 3797 # names for shared libraries. 3798 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3799 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 3800 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3801 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3802 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 3803 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3804 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3805 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 3806 runpath_var='LD_RUN_PATH' 3807 3808 case $cc_basename in 3809 CC*) 3810 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3811 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3812 ;; 3813 *) 3814 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3815 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3816 ;; 3817 esac 3818 ;; 3819 tandem*) 3820 case $cc_basename in 3821 NCC*) 3822 # NonStop-UX NCC 3.20 3823 # FIXME: insert proper C++ library support 3824 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3825 ;; 3826 *) 3827 # FIXME: insert proper C++ library support 3828 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3829 ;; 3830 esac 3831 ;; 3832 vxworks*) 3833 # FIXME: insert proper C++ library support 3834 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3835 ;; 3836 *) 3837 # FIXME: insert proper C++ library support 3838 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3839 ;; 3840 esac 3841 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 3842 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 3843 3844 _LT_AC_TAGVAR(GCC, $1)="$GXX" 3845 _LT_AC_TAGVAR(LD, $1)="$LD" 3846 3847 AC_LIBTOOL_POSTDEP_PREDEP($1) 3848 AC_LIBTOOL_PROG_COMPILER_PIC($1) 3849 AC_LIBTOOL_PROG_CC_C_O($1) 3850 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3851 AC_LIBTOOL_PROG_LD_SHLIBS($1) 3852 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3853 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3854 3855 AC_LIBTOOL_CONFIG($1) 3856 3857 AC_LANG_POP 3858 CC=$lt_save_CC 3859 LDCXX=$LD 3860 LD=$lt_save_LD 3861 GCC=$lt_save_GCC 3862 with_gnu_ldcxx=$with_gnu_ld 3863 with_gnu_ld=$lt_save_with_gnu_ld 3864 lt_cv_path_LDCXX=$lt_cv_path_LD 3865 lt_cv_path_LD=$lt_save_path_LD 3866 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 3867 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 3868 ])# AC_LIBTOOL_LANG_CXX_CONFIG 3869 3870 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3871 # ------------------------------------ 3872 # Figure out "hidden" library dependencies from verbose 3873 # compiler output when linking a shared library. 3874 # Parse the compiler output and extract the necessary 3875 # objects, libraries and library flags. 3876 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], 3877 [AC_REQUIRE([LT_AC_PROG_SED])dnl 3878 dnl we can't use the lt_simple_compile_test_code here, 3879 dnl because it contains code intended for an executable, 3880 dnl not a library. It's possible we should let each 3881 dnl tag define a new lt_????_link_test_code variable, 3882 dnl but it's only used here... 3883 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF 3884 int a; 3885 void foo (void) { a = 0; } 3886 EOF 3887 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 3888 class Foo 3889 { 3890 public: 3891 Foo (void) { a = 0; } 3892 private: 3893 int a; 3894 }; 3895 EOF 3896 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF 3897 subroutine foo 3898 implicit none 3899 integer*4 a 3900 a=0 3901 return 3902 end 3903 EOF 3904 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 3905 public class foo { 3906 private int a; 3907 public void bar (void) { 3908 a = 0; 3909 } 3910 }; 3911 EOF 3912 ]) 3913 dnl Parse the compiler output and extract the necessary 3914 dnl objects, libraries and library flags. 3915 if AC_TRY_EVAL(ac_compile); then 3916 # Parse the compiler output and extract the necessary 3917 # objects, libraries and library flags. 3918 3919 # Sentinel used to keep track of whether or not we are before 3920 # the conftest object file. 3921 pre_test_object_deps_done=no 3922 3923 # The `*' in the case matches for architectures that use `case' in 3924 # $output_verbose_cmd can trigger glob expansion during the loop 3925 # eval without this substitution. 3926 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 3927 3928 for p in `eval $output_verbose_link_cmd`; do 3929 case $p in 3930 3931 -L* | -R* | -l*) 3932 # Some compilers place space between "-{L,R}" and the path. 3933 # Remove the space. 3934 if test $p = "-L" \ 3935 || test $p = "-R"; then 3936 prev=$p 3937 continue 3938 else 3939 prev= 3940 fi 3941 3942 if test "$pre_test_object_deps_done" = no; then 3943 case $p in 3944 -L* | -R*) 3945 # Internal compiler library paths should come after those 3946 # provided the user. The postdeps already come after the 3947 # user supplied libs so there is no need to process them. 3948 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 3949 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 3950 else 3951 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 3952 fi 3953 ;; 3954 # The "-l" case would never come before the object being 3955 # linked, so don't bother handling this case. 3956 esac 3957 else 3958 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 3959 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 3960 else 3961 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 3962 fi 3963 fi 3964 ;; 3965 3966 *.$objext) 3967 # This assumes that the test object file only shows up 3968 # once in the compiler output. 3969 if test "$p" = "conftest.$objext"; then 3970 pre_test_object_deps_done=yes 3971 continue 3972 fi 3973 3974 if test "$pre_test_object_deps_done" = no; then 3975 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 3976 _LT_AC_TAGVAR(predep_objects, $1)="$p" 3977 else 3978 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 3979 fi 3980 else 3981 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 3982 _LT_AC_TAGVAR(postdep_objects, $1)="$p" 3983 else 3984 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 3985 fi 3986 fi 3987 ;; 3988 3989 *) ;; # Ignore the rest. 3990 3991 esac 3992 done 3993 3994 # Clean up. 3995 rm -f a.out a.exe 3996 else 3997 echo "libtool.m4: error: problem compiling $1 test program" 3998 fi 3999 4000 $rm -f confest.$objext 4001 4002 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 4003 if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 4004 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 4005 fi 4006 4007 # PORTME: override above test on systems where it is broken 4008 ifelse([$1],[CXX], 4009 [case $host_os in 4010 interix[[3-9]]*) 4011 # Interix 3.5 installs completely hosed .la files for C++, so rather than 4012 # hack all around it, let's just trust "g++" to DTRT. 4013 _LT_AC_TAGVAR(predep_objects,$1)= 4014 _LT_AC_TAGVAR(postdep_objects,$1)= 4015 _LT_AC_TAGVAR(postdeps,$1)= 4016 ;; 4017 4018 linux*) 4019 case `$CC -V 2>&1 | sed 5q` in 4020 *Sun\ C*) 4021 # Sun C++ 5.9 4022 # 4023 # The more standards-conforming stlport4 library is 4024 # incompatible with the Cstd library. Avoid specifying 4025 # it if it's in CXXFLAGS. Ignore libCrun as 4026 # -library=stlport4 depends on it. 4027 case " $CXX $CXXFLAGS " in 4028 *" -library=stlport4 "*) 4029 solaris_use_stlport4=yes 4030 ;; 4031 esac 4032 if test "$solaris_use_stlport4" != yes; then 4033 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 4034 fi 4035 ;; 4036 esac 4037 ;; 4038 4039 solaris*) 4040 case $cc_basename in 4041 CC*) 4042 # The more standards-conforming stlport4 library is 4043 # incompatible with the Cstd library. Avoid specifying 4044 # it if it's in CXXFLAGS. Ignore libCrun as 4045 # -library=stlport4 depends on it. 4046 case " $CXX $CXXFLAGS " in 4047 *" -library=stlport4 "*) 4048 solaris_use_stlport4=yes 4049 ;; 4050 esac 4051 4052 # Adding this requires a known-good setup of shared libraries for 4053 # Sun compiler versions before 5.6, else PIC objects from an old 4054 # archive will be linked into the output, leading to subtle bugs. 4055 if test "$solaris_use_stlport4" != yes; then 4056 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 4057 fi 4058 ;; 4059 esac 4060 ;; 4061 esac 4062 ]) 4063 case " $_LT_AC_TAGVAR(postdeps, $1) " in 4064 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 4065 esac 4066 ])# AC_LIBTOOL_POSTDEP_PREDEP 4067 4068 # AC_LIBTOOL_LANG_F77_CONFIG 4069 # -------------------------- 4070 # Ensure that the configuration vars for the C compiler are 4071 # suitably defined. Those variables are subsequently used by 4072 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4073 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 4074 AC_DEFUN([_LT_AC_LANG_F77_CONFIG], 4075 [AC_REQUIRE([AC_PROG_F77]) 4076 AC_LANG_PUSH(Fortran 77) 4077 4078 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4079 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 4080 _LT_AC_TAGVAR(always_export_symbols, $1)=no 4081 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 4082 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 4083 _LT_AC_TAGVAR(hardcode_direct, $1)=no 4084 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 4085 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4086 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 4087 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 4088 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 4089 _LT_AC_TAGVAR(module_cmds, $1)= 4090 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 4091 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 4092 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4093 _LT_AC_TAGVAR(no_undefined_flag, $1)= 4094 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 4095 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4096 4097 # Source file extension for f77 test sources. 4098 ac_ext=f 4099 4100 # Object file extension for compiled f77 test sources. 4101 objext=o 4102 _LT_AC_TAGVAR(objext, $1)=$objext 4103 4104 # Code to be used in simple compile tests 4105 lt_simple_compile_test_code="\ 4106 subroutine t 4107 return 4108 end 4109 " 4110 4111 # Code to be used in simple link tests 4112 lt_simple_link_test_code="\ 4113 program t 4114 end 4115 " 4116 4117 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4118 _LT_AC_SYS_COMPILER 4119 4120 # save warnings/boilerplate of simple test code 4121 _LT_COMPILER_BOILERPLATE 4122 _LT_LINKER_BOILERPLATE 4123 4124 # Allow CC to be a program name with arguments. 4125 lt_save_CC="$CC" 4126 CC=${F77-"f77"} 4127 compiler=$CC 4128 _LT_AC_TAGVAR(compiler, $1)=$CC 4129 _LT_CC_BASENAME([$compiler]) 4130 4131 AC_MSG_CHECKING([if libtool supports shared libraries]) 4132 AC_MSG_RESULT([$can_build_shared]) 4133 4134 AC_MSG_CHECKING([whether to build shared libraries]) 4135 test "$can_build_shared" = "no" && enable_shared=no 4136 4137 # On AIX, shared libraries and static libraries use the same namespace, and 4138 # are all built from PIC. 4139 case $host_os in 4140 aix3*) 4141 test "$enable_shared" = yes && enable_static=no 4142 if test -n "$RANLIB"; then 4143 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4144 postinstall_cmds='$RANLIB $lib' 4145 fi 4146 ;; 4147 aix[[4-9]]*) 4148 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 4149 test "$enable_shared" = yes && enable_static=no 4150 fi 4151 ;; 4152 esac 4153 AC_MSG_RESULT([$enable_shared]) 4154 4155 AC_MSG_CHECKING([whether to build static libraries]) 4156 # Make sure either enable_shared or enable_static is yes. 4157 test "$enable_shared" = yes || enable_static=yes 4158 AC_MSG_RESULT([$enable_static]) 4159 4160 _LT_AC_TAGVAR(GCC, $1)="$G77" 4161 _LT_AC_TAGVAR(LD, $1)="$LD" 4162 4163 AC_LIBTOOL_PROG_COMPILER_PIC($1) 4164 AC_LIBTOOL_PROG_CC_C_O($1) 4165 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4166 AC_LIBTOOL_PROG_LD_SHLIBS($1) 4167 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4168 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4169 4170 AC_LIBTOOL_CONFIG($1) 4171 4172 AC_LANG_POP 4173 CC="$lt_save_CC" 4174 ])# AC_LIBTOOL_LANG_F77_CONFIG 4175 4176 4177 # AC_LIBTOOL_LANG_GCJ_CONFIG 4178 # -------------------------- 4179 # Ensure that the configuration vars for the C compiler are 4180 # suitably defined. Those variables are subsequently used by 4181 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4182 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 4183 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 4184 [AC_LANG_SAVE 4185 4186 # Source file extension for Java test sources. 4187 ac_ext=java 4188 4189 # Object file extension for compiled Java test sources. 4190 objext=o 4191 _LT_AC_TAGVAR(objext, $1)=$objext 4192 4193 # Code to be used in simple compile tests 4194 lt_simple_compile_test_code="class foo {}" 4195 4196 # Code to be used in simple link tests 4197 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 4198 4199 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4200 _LT_AC_SYS_COMPILER 4201 4202 # save warnings/boilerplate of simple test code 4203 _LT_COMPILER_BOILERPLATE 4204 _LT_LINKER_BOILERPLATE 4205 4206 # Allow CC to be a program name with arguments. 4207 lt_save_CC="$CC" 4208 CC=${GCJ-"gcj"} 4209 compiler=$CC 4210 _LT_AC_TAGVAR(compiler, $1)=$CC 4211 _LT_CC_BASENAME([$compiler]) 4212 _LT_AC_TAGVAR(LD, $1)="$LD" 4213 4214 # GCJ did not exist at the time GCC didn't implicitly link libc in. 4215 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4216 4217 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 4218 4219 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 4220 AC_LIBTOOL_PROG_COMPILER_PIC($1) 4221 AC_LIBTOOL_PROG_CC_C_O($1) 4222 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4223 AC_LIBTOOL_PROG_LD_SHLIBS($1) 4224 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4225 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4226 4227 AC_LIBTOOL_CONFIG($1) 4228 4229 AC_LANG_RESTORE 4230 CC="$lt_save_CC" 4231 ])# AC_LIBTOOL_LANG_GCJ_CONFIG 4232 4233 4234 # AC_LIBTOOL_LANG_RC_CONFIG 4235 # ------------------------- 4236 # Ensure that the configuration vars for the Windows resource compiler are 4237 # suitably defined. Those variables are subsequently used by 4238 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4239 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 4240 AC_DEFUN([_LT_AC_LANG_RC_CONFIG], 4241 [AC_LANG_SAVE 4242 4243 # Source file extension for RC test sources. 4244 ac_ext=rc 4245 4246 # Object file extension for compiled RC test sources. 4247 objext=o 4248 _LT_AC_TAGVAR(objext, $1)=$objext 4249 4250 # Code to be used in simple compile tests 4251 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 4252 4253 # Code to be used in simple link tests 4254 lt_simple_link_test_code="$lt_simple_compile_test_code" 4255 4256 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 4257 _LT_AC_SYS_COMPILER 4258 4259 # save warnings/boilerplate of simple test code 4260 _LT_COMPILER_BOILERPLATE 4261 _LT_LINKER_BOILERPLATE 4262 4263 # Allow CC to be a program name with arguments. 4264 lt_save_CC="$CC" 4265 CC=${RC-"windres"} 4266 compiler=$CC 4267 _LT_AC_TAGVAR(compiler, $1)=$CC 4268 _LT_CC_BASENAME([$compiler]) 4269 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4270 4271 AC_LIBTOOL_CONFIG($1) 4272 4273 AC_LANG_RESTORE 4274 CC="$lt_save_CC" 4275 ])# AC_LIBTOOL_LANG_RC_CONFIG 4276 4277 4278 # AC_LIBTOOL_CONFIG([TAGNAME]) 4279 # ---------------------------- 4280 # If TAGNAME is not passed, then create an initial libtool script 4281 # with a default configuration from the untagged config vars. Otherwise 4282 # add code to config.status for appending the configuration named by 4283 # TAGNAME from the matching tagged config vars. 4284 AC_DEFUN([AC_LIBTOOL_CONFIG], 4285 [# The else clause should only fire when bootstrapping the 4286 # libtool distribution, otherwise you forgot to ship ltmain.sh 4287 # with your package, and you will get complaints that there are 4288 # no rules to generate ltmain.sh. 4289 if test -f "$ltmain"; then 4290 # See if we are running on zsh, and set the options which allow our commands through 4291 # without removal of \ escapes. 4292 if test -n "${ZSH_VERSION+set}" ; then 4293 setopt NO_GLOB_SUBST 4294 fi 4295 # Now quote all the things that may contain metacharacters while being 4296 # careful not to overquote the AC_SUBSTed values. We take copies of the 4297 # variables and quote the copies for generation of the libtool script. 4298 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 4299 SED SHELL STRIP \ 4300 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4301 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 4302 deplibs_check_method reload_flag reload_cmds need_locks \ 4303 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 4304 lt_cv_sys_global_symbol_to_c_name_address \ 4305 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 4306 old_postinstall_cmds old_postuninstall_cmds \ 4307 _LT_AC_TAGVAR(compiler, $1) \ 4308 _LT_AC_TAGVAR(CC, $1) \ 4309 _LT_AC_TAGVAR(LD, $1) \ 4310 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 4311 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 4312 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 4313 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 4314 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 4315 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 4316 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 4317 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 4318 _LT_AC_TAGVAR(old_archive_cmds, $1) \ 4319 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 4320 _LT_AC_TAGVAR(predep_objects, $1) \ 4321 _LT_AC_TAGVAR(postdep_objects, $1) \ 4322 _LT_AC_TAGVAR(predeps, $1) \ 4323 _LT_AC_TAGVAR(postdeps, $1) \ 4324 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 4325 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ 4326 _LT_AC_TAGVAR(archive_cmds, $1) \ 4327 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 4328 _LT_AC_TAGVAR(postinstall_cmds, $1) \ 4329 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 4330 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 4331 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 4332 _LT_AC_TAGVAR(no_undefined_flag, $1) \ 4333 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 4334 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 4335 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 4336 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 4337 _LT_AC_TAGVAR(hardcode_automatic, $1) \ 4338 _LT_AC_TAGVAR(module_cmds, $1) \ 4339 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 4340 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 4341 _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 4342 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 4343 _LT_AC_TAGVAR(include_expsyms, $1); do 4344 4345 case $var in 4346 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 4347 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 4348 _LT_AC_TAGVAR(archive_cmds, $1) | \ 4349 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 4350 _LT_AC_TAGVAR(module_cmds, $1) | \ 4351 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4352 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 4353 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 4354 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 4355 postinstall_cmds | postuninstall_cmds | \ 4356 old_postinstall_cmds | old_postuninstall_cmds | \ 4357 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 4358 # Double-quote double-evaled strings. 4359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 4360 ;; 4361 *) 4362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 4363 ;; 4364 esac 4365 done 4366 4367 case $lt_echo in 4368 *'\[$]0 --fallback-echo"') 4369 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 4370 ;; 4371 esac 4372 4373 ifelse([$1], [], 4374 [cfgfile="${ofile}T" 4375 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 4376 $rm -f "$cfgfile" 4377 AC_MSG_NOTICE([creating $ofile])], 4378 [cfgfile="$ofile"]) 4379 4380 cat <<__EOF__ >> "$cfgfile" 4381 ifelse([$1], [], 4382 [#! $SHELL 4383 4384 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 4385 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 4386 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 4387 # 4388 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 4389 # Free Software Foundation, Inc. 4390 # 4391 # This file is part of GNU Libtool: 4392 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 4393 # 4394 # This program is free software; you can redistribute it and/or modify 4395 # it under the terms of the GNU General Public License as published by 4396 # the Free Software Foundation; either version 2 of the License, or 4397 # (at your option) any later version. 4398 # 4399 # This program is distributed in the hope that it will be useful, but 4400 # WITHOUT ANY WARRANTY; without even the implied warranty of 4401 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 4402 # General Public License for more details. 4403 # 4404 # You should have received a copy of the GNU General Public License 4405 # along with this program; if not, write to the Free Software 4406 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 4407 # 4408 # As a special exception to the GNU General Public License, if you 4409 # distribute this file as part of a program that contains a 4410 # configuration script generated by Autoconf, you may include it under 4411 # the same distribution terms that you use for the rest of that program. 4412 4413 # A sed program that does not truncate output. 4414 SED=$lt_SED 4415 4416 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 4417 Xsed="$SED -e 1s/^X//" 4418 4419 # The HP-UX ksh and POSIX shell print the target directory to stdout 4420 # if CDPATH is set. 4421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4422 4423 # The names of the tagged configurations supported by this script. 4424 available_tags= 4425 4426 # ### BEGIN LIBTOOL CONFIG], 4427 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 4428 4429 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4430 4431 # Shell to use when invoking shell scripts. 4432 SHELL=$lt_SHELL 4433 4434 # Whether or not to build shared libraries. 4435 build_libtool_libs=$enable_shared 4436 4437 # Whether or not to build static libraries. 4438 build_old_libs=$enable_static 4439 4440 # Whether or not to add -lc for building shared libraries. 4441 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 4442 4443 # Whether or not to disallow shared libs when runtime libs are static 4444 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 4445 4446 # Whether or not to optimize for fast installation. 4447 fast_install=$enable_fast_install 4448 4449 # The host system. 4450 host_alias=$host_alias 4451 host=$host 4452 host_os=$host_os 4453 4454 # The build system. 4455 build_alias=$build_alias 4456 build=$build 4457 build_os=$build_os 4458 4459 # An echo program that does not interpret backslashes. 4460 echo=$lt_echo 4461 4462 # The archiver. 4463 AR=$lt_AR 4464 AR_FLAGS=$lt_AR_FLAGS 4465 4466 # A C compiler. 4467 LTCC=$lt_LTCC 4468 4469 # LTCC compiler flags. 4470 LTCFLAGS=$lt_LTCFLAGS 4471 4472 # A language-specific compiler. 4473 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4474 4475 # Is the compiler the GNU C compiler? 4476 with_gcc=$_LT_AC_TAGVAR(GCC, $1) 4477 4478 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 4479 gcc_ver=\`gcc -dumpversion\` 4480 4481 # An ERE matcher. 4482 EGREP=$lt_EGREP 4483 4484 # The linker used to build libraries. 4485 LD=$lt_[]_LT_AC_TAGVAR(LD, $1) 4486 4487 # Whether we need hard or soft links. 4488 LN_S=$lt_LN_S 4489 4490 # A BSD-compatible nm program. 4491 NM=$lt_NM 4492 4493 # A symbol stripping program 4494 STRIP=$lt_STRIP 4495 4496 # Used to examine libraries when file_magic_cmd begins "file" 4497 MAGIC_CMD=$MAGIC_CMD 4498 4499 # Used on cygwin: DLL creation program. 4500 DLLTOOL="$DLLTOOL" 4501 4502 # Used on cygwin: object dumper. 4503 OBJDUMP="$OBJDUMP" 4504 4505 # Used on cygwin: assembler. 4506 AS="$AS" 4507 4508 # The name of the directory that contains temporary libtool files. 4509 objdir=$objdir 4510 4511 # How to create reloadable object files. 4512 reload_flag=$lt_reload_flag 4513 reload_cmds=$lt_reload_cmds 4514 4515 # How to pass a linker flag through the compiler. 4516 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 4517 4518 # Object file suffix (normally "o"). 4519 objext="$ac_objext" 4520 4521 # Old archive suffix (normally "a"). 4522 libext="$libext" 4523 4524 # Shared library suffix (normally ".so"). 4525 shrext_cmds='$shrext_cmds' 4526 4527 # Executable file suffix (normally ""). 4528 exeext="$exeext" 4529 4530 # Additional compiler flags for building library objects. 4531 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 4532 pic_mode=$pic_mode 4533 4534 # What is the maximum length of a command? 4535 max_cmd_len=$lt_cv_sys_max_cmd_len 4536 4537 # Does compiler simultaneously support -c and -o options? 4538 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4539 4540 # Must we lock files when doing compilation? 4541 need_locks=$lt_need_locks 4542 4543 # Do we need the lib prefix for modules? 4544 need_lib_prefix=$need_lib_prefix 4545 4546 # Do we need a version for libraries? 4547 need_version=$need_version 4548 4549 # Whether dlopen is supported. 4550 dlopen_support=$enable_dlopen 4551 4552 # Whether dlopen of programs is supported. 4553 dlopen_self=$enable_dlopen_self 4554 4555 # Whether dlopen of statically linked programs is supported. 4556 dlopen_self_static=$enable_dlopen_self_static 4557 4558 # Compiler flag to prevent dynamic linking. 4559 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 4560 4561 # Compiler flag to turn off builtin functions. 4562 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 4563 4564 # Compiler flag to allow reflexive dlopens. 4565 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 4566 4567 # Compiler flag to generate shared objects directly from archives. 4568 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 4569 4570 # Compiler flag to generate thread-safe objects. 4571 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 4572 4573 # Library versioning type. 4574 version_type=$version_type 4575 4576 # Format of library name prefix. 4577 libname_spec=$lt_libname_spec 4578 4579 # List of archive names. First name is the real one, the rest are links. 4580 # The last name is the one that the linker finds with -lNAME. 4581 library_names_spec=$lt_library_names_spec 4582 4583 # The coded name of the library, if different from the real name. 4584 soname_spec=$lt_soname_spec 4585 4586 # Commands used to build and install an old-style archive. 4587 RANLIB=$lt_RANLIB 4588 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 4589 old_postinstall_cmds=$lt_old_postinstall_cmds 4590 old_postuninstall_cmds=$lt_old_postuninstall_cmds 4591 4592 # Create an old-style archive from a shared archive. 4593 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 4594 4595 # Create a temporary old-style archive to link instead of a shared archive. 4596 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 4597 4598 # Commands used to build and install a shared archive. 4599 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 4600 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 4601 postinstall_cmds=$lt_postinstall_cmds 4602 postuninstall_cmds=$lt_postuninstall_cmds 4603 4604 # Commands used to build a loadable module (assumed same as above if empty) 4605 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 4606 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 4607 4608 # Commands to strip libraries. 4609 old_striplib=$lt_old_striplib 4610 striplib=$lt_striplib 4611 4612 # Dependencies to place before the objects being linked to create a 4613 # shared library. 4614 predep_objects=\`echo $lt_[]_LT_AC_TAGVAR(predep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 4615 4616 # Dependencies to place after the objects being linked to create a 4617 # shared library. 4618 postdep_objects=\`echo $lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 4619 4620 # Dependencies to place before the objects being linked to create a 4621 # shared library. 4622 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 4623 4624 # Dependencies to place after the objects being linked to create a 4625 # shared library. 4626 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 4627 4628 # The directories searched by this compiler when creating a shared 4629 # library 4630 compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) 4631 4632 # The library search path used internally by the compiler when linking 4633 # a shared library. 4634 compiler_lib_search_path=\`echo $lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 4635 4636 # Method to check whether dependent libraries are shared objects. 4637 deplibs_check_method=$lt_deplibs_check_method 4638 4639 # Command to use when deplibs_check_method == file_magic. 4640 file_magic_cmd=$lt_file_magic_cmd 4641 4642 # Flag that allows shared libraries with undefined symbols to be built. 4643 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 4644 4645 # Flag that forces no undefined symbols. 4646 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 4647 4648 # Commands used to finish a libtool library installation in a directory. 4649 finish_cmds=$lt_finish_cmds 4650 4651 # Same as above, but a single script fragment to be evaled but not shown. 4652 finish_eval=$lt_finish_eval 4653 4654 # Take the output of nm and produce a listing of raw symbols and C names. 4655 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 4656 4657 # Transform the output of nm in a proper C declaration 4658 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 4659 4660 # Transform the output of nm in a C name address pair 4661 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 4662 4663 # This is the shared library runtime path variable. 4664 runpath_var=$runpath_var 4665 4666 # This is the shared library path variable. 4667 shlibpath_var=$shlibpath_var 4668 4669 # Is shlibpath searched before the hard-coded library search path? 4670 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 4671 4672 # How to hardcode a shared library path into an executable. 4673 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 4674 4675 # Whether we should hardcode library paths into libraries. 4676 hardcode_into_libs=$hardcode_into_libs 4677 4678 # Flag to hardcode \$libdir into a binary during linking. 4679 # This must work even if \$libdir does not exist. 4680 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 4681 4682 # If ld is used when linking, flag to hardcode \$libdir into 4683 # a binary during linking. This must work even if \$libdir does 4684 # not exist. 4685 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 4686 4687 # Whether we need a single -rpath flag with a separated argument. 4688 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 4689 4690 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 4691 # resulting binary. 4692 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 4693 4694 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 4695 # resulting binary. 4696 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 4697 4698 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 4699 # the resulting binary. 4700 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 4701 4702 # Set to yes if building a shared library automatically hardcodes DIR into the library 4703 # and all subsequent libraries and executables linked against it. 4704 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 4705 4706 # Variables whose values should be saved in libtool wrapper scripts and 4707 # restored at relink time. 4708 variables_saved_for_relink="$variables_saved_for_relink" 4709 4710 # Whether libtool must link a program against all its dependency libraries. 4711 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 4712 4713 # Compile-time system search path for libraries 4714 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 4715 4716 # Run-time system search path for libraries 4717 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 4718 4719 # Fix the shell variable \$srcfile for the compiler. 4720 fix_srcfile_path=$lt_fix_srcfile_path 4721 4722 # Set to yes if exported symbols are required. 4723 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 4724 4725 # The commands to list exported symbols. 4726 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 4727 4728 # The commands to extract the exported symbol list from a shared archive. 4729 extract_expsyms_cmds=$lt_extract_expsyms_cmds 4730 4731 # Symbols that should not be listed in the preloaded symbols. 4732 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 4733 4734 # Symbols that must always be exported. 4735 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 4736 4737 ifelse([$1],[], 4738 [# ### END LIBTOOL CONFIG], 4739 [# ### END LIBTOOL TAG CONFIG: $tagname]) 4740 4741 __EOF__ 4742 4743 ifelse([$1],[], [ 4744 case $host_os in 4745 aix3*) 4746 cat <<\EOF >> "$cfgfile" 4747 4748 # AIX sometimes has problems with the GCC collect2 program. For some 4749 # reason, if we set the COLLECT_NAMES environment variable, the problems 4750 # vanish in a puff of smoke. 4751 if test "X${COLLECT_NAMES+set}" != Xset; then 4752 COLLECT_NAMES= 4753 export COLLECT_NAMES 4754 fi 4755 EOF 4756 ;; 4757 esac 4758 4759 # We use sed instead of cat because bash on DJGPP gets confused if 4760 # if finds mixed CR/LF and LF-only lines. Since sed operates in 4761 # text mode, it properly converts lines to CR/LF. This bash problem 4762 # is reportedly fixed, but why not run on old versions too? 4763 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 4764 4765 mv -f "$cfgfile" "$ofile" || \ 4766 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 4767 chmod +x "$ofile" 4768 ]) 4769 else 4770 # If there is no Makefile yet, we rely on a make rule to execute 4771 # `config.status --recheck' to rerun these tests and create the 4772 # libtool script then. 4773 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 4774 if test -f "$ltmain_in"; then 4775 test -f Makefile && make "$ltmain" 4776 fi 4777 fi 4778 ])# AC_LIBTOOL_CONFIG 4779 4780 4781 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 4782 # ------------------------------------------- 4783 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 4784 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 4785 4786 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3303 AC_SUBST([LIBM]) 3304 ])# LT_LIB_M 3305 3306 # Old name: 3307 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3308 dnl aclocal-1.4 backwards compatibility: 3309 dnl AC_DEFUN([AC_CHECK_LIBM], []) 3310 3311 3312 # _LT_COMPILER_NO_RTTI([TAGNAME]) 3313 # ------------------------------- 3314 m4_defun([_LT_COMPILER_NO_RTTI], 3315 [m4_require([_LT_TAG_COMPILER])dnl 3316 3317 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 4787 3318 4788 3319 if test "$GCC" = yes; then 4789 _LT_ AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'4790 4791 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],3320 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3321 3322 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 4792 3323 lt_cv_prog_compiler_rtti_exceptions, 4793 3324 [-fno-rtti -fno-exceptions], [], 4794 [_LT_ AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])3325 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 4795 3326 fi 4796 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 4797 4798 4799 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 4800 # --------------------------------- 4801 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 4802 [AC_REQUIRE([AC_CANONICAL_HOST]) 4803 AC_REQUIRE([LT_AC_PROG_SED]) 4804 AC_REQUIRE([AC_PROG_NM]) 4805 AC_REQUIRE([AC_OBJEXT]) 3327 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 3328 [Compiler flag to turn off builtin functions]) 3329 ])# _LT_COMPILER_NO_RTTI 3330 3331 3332 # _LT_CMD_GLOBAL_SYMBOLS 3333 # ---------------------- 3334 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 3335 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 3336 AC_REQUIRE([AC_PROG_CC])dnl 3337 AC_REQUIRE([LT_PATH_NM])dnl 3338 AC_REQUIRE([LT_PATH_LD])dnl 3339 m4_require([_LT_DECL_SED])dnl 3340 m4_require([_LT_DECL_EGREP])dnl 3341 m4_require([_LT_TAG_COMPILER])dnl 3342 4806 3343 # Check for command to grab the raw symbol name followed by C symbol from nm. 4807 3344 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) … … 4817 3354 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4818 3355 4819 # Transform an extracted symbol line into a proper C declaration4820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"4821 4822 # Transform an extracted symbol line into symbol name and symbol address4823 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"4824 4825 3356 # Define system-specific variables. 4826 3357 case $host_os in … … 4828 3359 symcode='[[BCDT]]' 4829 3360 ;; 4830 cygwin* | mingw* | pw32* )3361 cygwin* | mingw* | pw32* | cegcc*) 4831 3362 symcode='[[ABCDGISTW]]' 4832 3363 ;; 4833 hpux*) # Its linker distinguishes data from code symbols3364 hpux*) 4834 3365 if test "$host_cpu" = ia64; then 4835 3366 symcode='[[ABCDEGRST]]' 4836 3367 fi 4837 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"4838 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"4839 ;;4840 linux* | k*bsd*-gnu)4841 if test "$host_cpu" = ia64; then4842 symcode='[[ABCDGIRSTW]]'4843 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"4844 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"4845 fi4846 3368 ;; 4847 3369 irix* | nonstopux*) … … 4865 3387 sysv4) 4866 3388 symcode='[[DFNSTU]]' 4867 ;;4868 esac4869 4870 # Handle CRLF in mingw tool chain4871 opt_cr=4872 case $build_os in4873 mingw*)4874 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp4875 3389 ;; 4876 3390 esac … … 4882 3396 esac 4883 3397 4884 # Try without a prefix undercore, then with it. 3398 # Transform an extracted symbol line into a proper C declaration. 3399 # Some systems (esp. on ia64) link data and code symbols differently, 3400 # so use this general approach. 3401 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3402 3403 # Transform an extracted symbol line into symbol name and symbol address 3404 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 3405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 3406 3407 # Handle CRLF in mingw tool chain 3408 opt_cr= 3409 case $build_os in 3410 mingw*) 3411 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3412 ;; 3413 esac 3414 3415 # Try without a prefix underscore, then with it. 4885 3416 for ac_symprfx in "" "_"; do 4886 3417 … … 4889 3420 4890 3421 # Write the raw and C identifiers. 4891 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3422 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3423 # Fake it for dumpbin and say T for any non-static function 3424 # and D for any global variable. 3425 # Also find C++ and __fastcall symbols from MSVC++, 3426 # which start with @ or ?. 3427 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 3428 " {last_section=section; section=\$ 3};"\ 3429 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 3430 " \$ 0!~/External *\|/{next};"\ 3431 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3432 " {if(hide[section]) next};"\ 3433 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 3434 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 3435 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 3436 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 3437 " ' prfx=^$ac_symprfx]" 3438 else 3439 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3440 fi 4892 3441 4893 3442 # Check to see that the pipe works correctly. … … 4895 3444 4896 3445 rm -f conftest* 4897 cat > conftest.$ac_ext << EOF3446 cat > conftest.$ac_ext <<_LT_EOF 4898 3447 #ifdef __cplusplus 4899 3448 extern "C" { 4900 3449 #endif 4901 3450 char nm_test_var; 4902 void nm_test_func(){} 3451 void nm_test_func(void); 3452 void nm_test_func(void){} 4903 3453 #ifdef __cplusplus 4904 3454 } 4905 3455 #endif 4906 3456 int main(){nm_test_var='a';nm_test_func();return(0);} 4907 EOF3457 _LT_EOF 4908 3458 4909 3459 if AC_TRY_EVAL(ac_compile); then … … 4919 3469 4920 3470 # Make sure that we snagged all the symbols we need. 4921 if grep' nm_test_var$' "$nlist" >/dev/null; then4922 if grep' nm_test_func$' "$nlist" >/dev/null; then4923 cat << EOF > conftest.$ac_ext3471 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 3472 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 3473 cat <<_LT_EOF > conftest.$ac_ext 4924 3474 #ifdef __cplusplus 4925 3475 extern "C" { 4926 3476 #endif 4927 3477 4928 EOF3478 _LT_EOF 4929 3479 # Now generate the symbol file. 4930 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 4931 4932 cat <<EOF >> conftest.$ac_ext 4933 #if defined (__STDC__) && __STDC__ 4934 # define lt_ptr_t void * 4935 #else 4936 # define lt_ptr_t char * 4937 # define const 4938 #endif 4939 4940 /* The mapping between symbol names and symbols. */ 3480 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 3481 3482 cat <<_LT_EOF >> conftest.$ac_ext 3483 3484 /* The mapping between symbol names and symbols. */ 4941 3485 const struct { 4942 3486 const char *name; 4943 lt_ptr_taddress;3487 void *address; 4944 3488 } 4945 lt_ preloaded_symbols[[]] =3489 lt__PROGRAM__LTX_preloaded_symbols[[]] = 4946 3490 { 4947 EOF 4948 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 4949 cat <<\EOF >> conftest.$ac_ext 4950 {0, (lt_ptr_t) 0} 3491 { "@PROGRAM@", (void *) 0 }, 3492 _LT_EOF 3493 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 3494 cat <<\_LT_EOF >> conftest.$ac_ext 3495 {0, (void *) 0} 4951 3496 }; 3497 3498 /* This works around a problem in FreeBSD linker */ 3499 #ifdef FREEBSD_WORKAROUND 3500 static const void *lt_preloaded_setup() { 3501 return lt__PROGRAM__LTX_preloaded_symbols; 3502 } 3503 #endif 4952 3504 4953 3505 #ifdef __cplusplus 4954 3506 } 4955 3507 #endif 4956 EOF3508 _LT_EOF 4957 3509 # Now try linking the two files. 4958 3510 mv conftest.$ac_objext conftstm.$ac_objext … … 4960 3512 lt_save_CFLAGS="$CFLAGS" 4961 3513 LIBS="conftstm.$ac_objext" 4962 CFLAGS="$CFLAGS$_LT_ AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"3514 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4963 3515 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 4964 3516 pipe_works=yes … … 4997 3549 AC_MSG_RESULT(ok) 4998 3550 fi 4999 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 5000 5001 5002 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 5003 # --------------------------------------- 5004 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 5005 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 5006 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5007 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 3551 3552 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 3553 [Take the output of nm and produce a listing of raw symbols and C names]) 3554 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 3555 [Transform the output of nm in a proper C declaration]) 3556 _LT_DECL([global_symbol_to_c_name_address], 3557 [lt_cv_sys_global_symbol_to_c_name_address], [1], 3558 [Transform the output of nm in a C name address pair]) 3559 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], 3560 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3561 [Transform the output of nm in a C name address pair when lib prefix is needed]) 3562 ]) # _LT_CMD_GLOBAL_SYMBOLS 3563 3564 3565 # _LT_COMPILER_PIC([TAGNAME]) 3566 # --------------------------- 3567 m4_defun([_LT_COMPILER_PIC], 3568 [m4_require([_LT_TAG_COMPILER])dnl 3569 _LT_TAGVAR(lt_prog_compiler_wl, $1)= 3570 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3571 _LT_TAGVAR(lt_prog_compiler_static, $1)= 5008 3572 5009 3573 AC_MSG_CHECKING([for $compiler option to produce PIC]) 5010 ifelse([$1],[CXX],[3574 m4_if([$1], [CXX], [ 5011 3575 # C++ specific cases for pic, static, wl, etc. 5012 3576 if test "$GXX" = yes; then 5013 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5014 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-static'3577 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3578 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5015 3579 5016 3580 case $host_os in … … 5019 3583 if test "$host_cpu" = ia64; then 5020 3584 # AIX 5 now supports IA64 processor 5021 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'3585 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5022 3586 fi 5023 3587 ;; 3588 5024 3589 amigaos*) 5025 # FIXME: we need at least 68020 code to build shared libraries, but 5026 # adding the `-m68020' flag to GCC prevents building anything better, 5027 # like `-m68040'. 5028 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5029 ;; 3590 case $host_cpu in 3591 powerpc) 3592 # see comment about AmigaOS4 .so support 3593 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3594 ;; 3595 m68k) 3596 # FIXME: we need at least 68020 code to build shared libraries, but 3597 # adding the `-m68020' flag to GCC prevents building anything better, 3598 # like `-m68040'. 3599 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3600 ;; 3601 esac 3602 ;; 3603 5030 3604 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5031 3605 # PIC is the default for these OSes. 5032 3606 ;; 5033 mingw* | cygwin* | os2* | pw32* )3607 mingw* | cygwin* | os2* | pw32* | cegcc*) 5034 3608 # This hack is so that the source file can tell whether it is being 5035 3609 # built for inclusion in a dll (and should export symbols for example). … … 5037 3611 # (--disable-auto-import) libraries 5038 3612 m4_if([$1], [GCJ], [], 5039 [_LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])3613 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5040 3614 ;; 5041 3615 darwin* | rhapsody*) 5042 3616 # PIC is the default on this platform 5043 3617 # Common symbols not allowed in MH_DYLIB files 5044 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'3618 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5045 3619 ;; 5046 3620 *djgpp*) 5047 3621 # DJGPP does not support shared libraries at all 5048 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)=3622 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 5049 3623 ;; 5050 3624 interix[[3-9]]*) … … 5054 3628 sysv4*MP*) 5055 3629 if test -d /usr/nec; then 5056 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic3630 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5057 3631 fi 5058 3632 ;; 5059 3633 hpux*) 5060 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5061 # not for PA HP-UX. 3634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 3635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 3636 # sets the default TLS model and affects inlining. 5062 3637 case $host_cpu in 5063 hppa*64* |ia64*)3638 hppa*64*) 5064 3639 ;; 5065 3640 *) 5066 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'3641 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5067 3642 ;; 5068 3643 esac 5069 3644 ;; 3645 *qnx* | *nto*) 3646 # QNX uses GNU C++, but need to define -shared option too, otherwise 3647 # it will coredump. 3648 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 3649 ;; 5070 3650 *) 5071 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'3651 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5072 3652 ;; 5073 3653 esac … … 5078 3658 if test "$host_cpu" = ia64; then 5079 3659 # AIX 5 now supports IA64 processor 5080 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'3660 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5081 3661 else 5082 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'3662 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5083 3663 fi 5084 3664 ;; … … 5087 3667 cxch68*) 5088 3668 # Green Hills C++ Compiler 5089 # _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"3669 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 5090 3670 ;; 5091 3671 esac 5092 3672 ;; 5093 darwin*)5094 # PIC is the default on this platform5095 # Common symbols not allowed in MH_DYLIB files5096 case $cc_basename in5097 xlc*)5098 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'5099 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5100 ;;5101 esac5102 ;;5103 3673 dgux*) 5104 3674 case $cc_basename in 5105 3675 ec++*) 5106 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'3676 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5107 3677 ;; 5108 3678 ghcx*) 5109 3679 # Green Hills C++ Compiler 5110 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'3680 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5111 3681 ;; 5112 3682 *) … … 5120 3690 case $cc_basename in 5121 3691 CC*) 5122 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5123 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'3692 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3693 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5124 3694 if test "$host_cpu" != ia64; then 5125 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'3695 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5126 3696 fi 5127 3697 ;; 5128 3698 aCC*) 5129 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5130 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'3699 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3700 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5131 3701 case $host_cpu in 5132 3702 hppa*64*|ia64*) … … 5134 3704 ;; 5135 3705 *) 5136 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'3706 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5137 3707 ;; 5138 3708 esac … … 5149 3719 case $cc_basename in 5150 3720 CC*) 5151 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5152 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'3721 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3722 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5153 3723 # CC pic flag -KPIC is the default. 5154 3724 ;; … … 5161 3731 KCC*) 5162 3732 # KAI C++ Compiler 5163 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'5164 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'3733 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 3734 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5165 3735 ;; 5166 icpc* | ecpc*) 5167 # Intel C++ 5168 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5169 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5170 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 3736 ecpc* ) 3737 # old Intel C++ for x86_64 which still supported -KPIC. 3738 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3739 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3740 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3741 ;; 3742 icpc* ) 3743 # Intel C++, used to be incompatible with GCC. 3744 # ICC 10 doesn't accept -KPIC any more. 3745 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3746 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3747 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5171 3748 ;; 5172 3749 pgCC* | pgcpp*) 5173 # Portland Group C++ compiler .5174 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5175 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'5176 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'3750 # Portland Group C++ compiler 3751 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3752 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 3753 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5177 3754 ;; 5178 3755 cxx*) … … 5180 3757 # Make sure the PIC flag is empty. It appears that all Alpha 5181 3758 # Linux and Compaq Tru64 Unix objects are PIC. 5182 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5183 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3759 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3760 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 3761 ;; 3762 xlc* | xlC*) 3763 # IBM XL 8.0 on PPC 3764 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3765 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 3766 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 5184 3767 ;; 5185 3768 *) … … 5187 3770 *Sun\ C*) 5188 3771 # Sun C++ 5.9 5189 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5190 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5191 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '3772 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3773 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3774 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5192 3775 ;; 5193 3776 esac … … 5202 3785 case $cc_basename in 5203 3786 cxx*) 5204 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'3787 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5205 3788 ;; 5206 3789 *) … … 5210 3793 netbsd*) 5211 3794 ;; 3795 *qnx* | *nto*) 3796 # QNX uses GNU C++, but need to define -shared option too, otherwise 3797 # it will coredump. 3798 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 3799 ;; 5212 3800 osf3* | osf4* | osf5*) 5213 3801 case $cc_basename in 5214 3802 KCC*) 5215 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'3803 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5216 3804 ;; 5217 3805 RCC*) 5218 3806 # Rational C++ 2.4.1 5219 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'3807 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5220 3808 ;; 5221 3809 cxx*) 5222 3810 # Digital/Compaq C++ 5223 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'3811 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5224 3812 # Make sure the PIC flag is empty. It appears that all Alpha 5225 3813 # Linux and Compaq Tru64 Unix objects are PIC. 5226 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)=5227 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'3814 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3815 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5228 3816 ;; 5229 3817 *) … … 5237 3825 CC*) 5238 3826 # Sun C++ 4.2, 5.x and Centerline C++ 5239 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5240 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5241 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '3827 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3828 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3829 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5242 3830 ;; 5243 3831 gcx*) 5244 3832 # Green Hills C++ Compiler 5245 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'3833 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5246 3834 ;; 5247 3835 *) … … 5253 3841 CC*) 5254 3842 # Sun C++ 4.x 5255 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'5256 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'3843 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 3844 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5257 3845 ;; 5258 3846 lcc*) 5259 3847 # Lucid 5260 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5261 ;; 5262 *) 5263 ;; 5264 esac 5265 ;; 5266 tandem*) 5267 case $cc_basename in 5268 NCC*) 5269 # NonStop-UX NCC 3.20 5270 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3848 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5271 3849 ;; 5272 3850 *) … … 5277 3855 case $cc_basename in 5278 3856 CC*) 5279 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5280 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5281 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3857 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3858 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3859 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3860 ;; 3861 esac 3862 ;; 3863 tandem*) 3864 case $cc_basename in 3865 NCC*) 3866 # NonStop-UX NCC 3.20 3867 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 3868 ;; 3869 *) 5282 3870 ;; 5283 3871 esac … … 5286 3874 ;; 5287 3875 *) 5288 _LT_ AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no3876 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5289 3877 ;; 5290 3878 esac … … 5293 3881 [ 5294 3882 if test "$GCC" = yes; then 5295 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5296 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-static'3883 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3884 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5297 3885 5298 3886 case $host_os in … … 5301 3889 if test "$host_cpu" = ia64; then 5302 3890 # AIX 5 now supports IA64 processor 5303 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'3891 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5304 3892 fi 5305 3893 ;; 5306 3894 5307 3895 amigaos*) 5308 # FIXME: we need at least 68020 code to build shared libraries, but 5309 # adding the `-m68020' flag to GCC prevents building anything better, 5310 # like `-m68040'. 5311 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3896 case $host_cpu in 3897 powerpc) 3898 # see comment about AmigaOS4 .so support 3899 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3900 ;; 3901 m68k) 3902 # FIXME: we need at least 68020 code to build shared libraries, but 3903 # adding the `-m68020' flag to GCC prevents building anything better, 3904 # like `-m68040'. 3905 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3906 ;; 3907 esac 5312 3908 ;; 5313 3909 … … 5316 3912 ;; 5317 3913 5318 mingw* | cygwin* | pw32* | os2* )3914 mingw* | cygwin* | pw32* | os2* | cegcc*) 5319 3915 # This hack is so that the source file can tell whether it is being 5320 3916 # built for inclusion in a dll (and should export symbols for example). … … 5322 3918 # (--disable-auto-import) libraries 5323 3919 m4_if([$1], [GCJ], [], 5324 [_LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])3920 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5325 3921 ;; 5326 3922 … … 5328 3924 # PIC is the default on this platform 5329 3925 # Common symbols not allowed in MH_DYLIB files 5330 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3926 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3927 ;; 3928 3929 hpux*) 3930 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 3931 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 3932 # sets the default TLS model and affects inlining. 3933 case $host_cpu in 3934 hppa*64*) 3935 # +Z the default 3936 ;; 3937 *) 3938 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3939 ;; 3940 esac 5331 3941 ;; 5332 3942 … … 5339 3949 # Just because we use GCC doesn't mean we suddenly get shared libraries 5340 3950 # on systems that don't support them. 5341 _LT_ AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no3951 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5342 3952 enable_shared=no 3953 ;; 3954 3955 *nto* | *qnx*) 3956 # QNX uses GNU C++, but need to define -shared option too, otherwise 3957 # it will coredump. 3958 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 5343 3959 ;; 5344 3960 5345 3961 sysv4*MP*) 5346 3962 if test -d /usr/nec; then 5347 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic3963 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5348 3964 fi 5349 3965 ;; 5350 3966 5351 hpux*) 3967 *) 3968 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3969 ;; 3970 esac 3971 else 3972 # PORTME Check for flag to pass linker flags through the system compiler. 3973 case $host_os in 3974 aix*) 3975 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3976 if test "$host_cpu" = ia64; then 3977 # AIX 5 now supports IA64 processor 3978 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3979 else 3980 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 3981 fi 3982 ;; 3983 3984 mingw* | cygwin* | pw32* | os2* | cegcc*) 3985 # This hack is so that the source file can tell whether it is being 3986 # built for inclusion in a dll (and should export symbols for example). 3987 m4_if([$1], [GCJ], [], 3988 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 3989 ;; 3990 3991 hpux9* | hpux10* | hpux11*) 3992 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5352 3993 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5353 3994 # not for PA HP-UX. … … 5357 3998 ;; 5358 3999 *) 5359 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5360 ;; 5361 esac 5362 ;; 5363 5364 *) 5365 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5366 ;; 5367 esac 5368 else 5369 # PORTME Check for flag to pass linker flags through the system compiler. 5370 case $host_os in 5371 aix*) 5372 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5373 if test "$host_cpu" = ia64; then 5374 # AIX 5 now supports IA64 processor 5375 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5376 else 5377 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5378 fi 5379 ;; 5380 darwin*) 5381 # PIC is the default on this platform 5382 # Common symbols not allowed in MH_DYLIB files 5383 case $cc_basename in 5384 xlc*) 5385 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5386 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5387 ;; 5388 esac 5389 ;; 5390 5391 mingw* | cygwin* | pw32* | os2*) 5392 # This hack is so that the source file can tell whether it is being 5393 # built for inclusion in a dll (and should export symbols for example). 5394 m4_if([$1], [GCJ], [], 5395 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 5396 ;; 5397 5398 hpux9* | hpux10* | hpux11*) 5399 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5400 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5401 # not for PA HP-UX. 5402 case $host_cpu in 5403 hppa*64*|ia64*) 5404 # +Z the default 5405 ;; 5406 *) 5407 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4000 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5408 4001 ;; 5409 4002 esac 5410 4003 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5411 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'4004 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5412 4005 ;; 5413 4006 5414 4007 irix5* | irix6* | nonstopux*) 5415 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4008 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5416 4009 # PIC (with -KPIC) is the default. 5417 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5418 ;; 5419 5420 newsos6) 5421 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5422 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4010 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5423 4011 ;; 5424 4012 5425 4013 linux* | k*bsd*-gnu) 5426 4014 case $cc_basename in 5427 icc* | ecc*) 5428 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5429 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5430 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4015 # old Intel for x86_64 which still supported -KPIC. 4016 ecc*) 4017 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4018 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4019 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 5431 4020 ;; 4021 # icc used to be incompatible with GCC. 4022 # ICC 10 doesn't accept -KPIC any more. 4023 icc* | ifort*) 4024 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4025 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4026 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4027 ;; 4028 # Lahey Fortran 8.1. 4029 lf95*) 4030 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4031 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4032 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4033 ;; 5432 4034 pgcc* | pgf77* | pgf90* | pgf95*) 5433 4035 # Portland Group compilers (*not* the Pentium gcc compiler, 5434 4036 # which looks to be a dead project) 5435 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5436 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'5437 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4037 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4038 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4039 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5438 4040 ;; 5439 4041 ccc*) 5440 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5441 4043 # All Alpha code is PIC. 5442 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4044 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5443 4045 ;; 4046 xl*) 4047 # IBM XL C 8.0/Fortran 10.1 on PPC 4048 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4049 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4050 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4051 ;; 5444 4052 *) 5445 case `$CC -V 2>&1 | sed 5q` in4053 case `$CC -V 2>&1 | sed 5q` in 5446 4054 *Sun\ C*) 5447 4055 # Sun C 5.9 5448 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5449 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5450 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4057 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4058 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5451 4059 ;; 5452 4060 *Sun\ F*) 5453 4061 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5454 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5455 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'5456 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)=''4062 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4063 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4064 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 5457 4065 ;; 5458 4066 esac … … 5461 4069 ;; 5462 4070 4071 newsos6) 4072 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4073 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4074 ;; 4075 4076 *nto* | *qnx*) 4077 # QNX uses GNU C++, but need to define -shared option too, otherwise 4078 # it will coredump. 4079 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4080 ;; 4081 5463 4082 osf3* | osf4* | osf5*) 5464 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4083 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5465 4084 # All OSF/1 code is PIC. 5466 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4085 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5467 4086 ;; 5468 4087 5469 4088 rdos*) 5470 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4089 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5471 4090 ;; 5472 4091 5473 4092 solaris*) 5474 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5475 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4093 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4094 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5476 4095 case $cc_basename in 5477 4096 f77* | f90* | f95*) 5478 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;4097 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5479 4098 *) 5480 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;4099 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5481 4100 esac 5482 4101 ;; 5483 4102 5484 4103 sunos4*) 5485 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '5486 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'5487 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4104 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4105 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4106 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5488 4107 ;; 5489 4108 5490 4109 sysv4 | sysv4.2uw2* | sysv4.3*) 5491 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5492 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5493 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4110 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4111 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4112 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5494 4113 ;; 5495 4114 5496 4115 sysv4*MP*) 5497 4116 if test -d /usr/nec ;then 5498 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'5499 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4117 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4118 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5500 4119 fi 5501 4120 ;; 5502 4121 5503 4122 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5504 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5505 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'5506 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4123 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4124 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4125 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5507 4126 ;; 5508 4127 5509 4128 unicos*) 5510 _LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'5511 _LT_ AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no4129 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4130 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5512 4131 ;; 5513 4132 5514 4133 uts4*) 5515 _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'5516 _LT_ AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4134 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4135 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5517 4136 ;; 5518 4137 5519 4138 *) 5520 _LT_ AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no4139 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5521 4140 ;; 5522 4141 esac 5523 4142 fi 5524 4143 ]) 5525 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 4144 case $host_os in 4145 # For platforms which do not support PIC, -DPIC is meaningless: 4146 *djgpp*) 4147 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4148 ;; 4149 *) 4150 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4151 ;; 4152 esac 4153 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4154 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4155 [How to pass a linker flag through the compiler]) 5526 4156 5527 4157 # 5528 4158 # Check to make sure the PIC flag actually works. 5529 4159 # 5530 if test -n "$_LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)"; then5531 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],5532 _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),5533 [$_LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],5534 [case $_LT_ AC_TAGVAR(lt_prog_compiler_pic, $1) in4160 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4161 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 4162 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 4163 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 4164 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 5535 4165 "" | " "*) ;; 5536 *) _LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;4166 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5537 4167 esac], 5538 [_LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)=5539 _LT_ AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])4168 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4169 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5540 4170 fi 5541 case $host_os in 5542 # For platforms which do not support PIC, -DPIC is meaningless: 5543 *djgpp*) 5544 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5545 ;; 5546 *) 5547 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 5548 ;; 5549 esac 4171 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 4172 [Additional compiler flags for building library objects]) 5550 4173 5551 4174 # 5552 4175 # Check to make sure the static flag actually works. 5553 4176 # 5554 wl=$_LT_ AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"5555 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],5556 _LT_ AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),4177 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 4178 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 4179 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 5557 4180 $lt_tmp_static_flag, 5558 4181 [], 5559 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 5560 ]) 5561 5562 5563 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 5564 # ------------------------------------ 4182 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 4183 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 4184 [Compiler flag to prevent dynamic linking]) 4185 ])# _LT_COMPILER_PIC 4186 4187 4188 # _LT_LINKER_SHLIBS([TAGNAME]) 4189 # ---------------------------- 5565 4190 # See if the linker supports building shared libraries. 5566 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 5567 [AC_REQUIRE([LT_AC_PROG_SED])dnl 4191 m4_defun([_LT_LINKER_SHLIBS], 4192 [AC_REQUIRE([LT_PATH_LD])dnl 4193 AC_REQUIRE([LT_PATH_NM])dnl 4194 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4195 m4_require([_LT_DECL_EGREP])dnl 4196 m4_require([_LT_DECL_SED])dnl 4197 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 4198 m4_require([_LT_TAG_COMPILER])dnl 5568 4199 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5569 ifelse([$1],[CXX],[5570 _LT_ AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'4200 m4_if([$1], [CXX], [ 4201 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5571 4202 case $host_os in 5572 4203 aix[[4-9]]*) 5573 4204 # If we're using GNU nm, then we don't want the "-C" option. 5574 4205 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5575 if $NM -V 2>&1 | grep'GNU' > /dev/null; then5576 _LT_ AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'4206 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4207 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5577 4208 else 5578 _LT_ AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'4209 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5579 4210 fi 5580 4211 ;; 5581 4212 pw32*) 5582 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5583 ;; 5584 cygwin* | mingw*) 5585 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 4213 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4214 ;; 4215 cygwin* | mingw* | cegcc*) 4216 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 4217 ;; 4218 linux* | k*bsd*-gnu) 4219 _LT_TAGVAR(link_all_deplibs, $1)=no 5586 4220 ;; 5587 4221 *) 5588 _LT_ AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'4222 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5589 4223 ;; 5590 4224 esac 5591 _LT_ AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']5592 ], [4225 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4226 ], [ 5593 4227 runpath_var= 5594 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 5595 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5596 _LT_AC_TAGVAR(archive_cmds, $1)= 5597 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 5598 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 5599 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5600 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5601 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5602 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 5603 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5604 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5605 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5606 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5607 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 5608 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5609 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 5610 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5611 _LT_AC_TAGVAR(module_cmds, $1)= 5612 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5613 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5614 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4228 _LT_TAGVAR(allow_undefined_flag, $1)= 4229 _LT_TAGVAR(always_export_symbols, $1)=no 4230 _LT_TAGVAR(archive_cmds, $1)= 4231 _LT_TAGVAR(archive_expsym_cmds, $1)= 4232 _LT_TAGVAR(compiler_needs_object, $1)=no 4233 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4234 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4235 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4236 _LT_TAGVAR(hardcode_automatic, $1)=no 4237 _LT_TAGVAR(hardcode_direct, $1)=no 4238 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 4239 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4240 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 4241 _LT_TAGVAR(hardcode_libdir_separator, $1)= 4242 _LT_TAGVAR(hardcode_minus_L, $1)=no 4243 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4244 _LT_TAGVAR(inherit_rpath, $1)=no 4245 _LT_TAGVAR(link_all_deplibs, $1)=unknown 4246 _LT_TAGVAR(module_cmds, $1)= 4247 _LT_TAGVAR(module_expsym_cmds, $1)= 4248 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 4249 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4250 _LT_TAGVAR(thread_safe_flag_spec, $1)= 4251 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5615 4252 # include_expsyms should be a list of space-separated symbols to be *always* 5616 4253 # included in the symbol list 5617 _LT_ AC_TAGVAR(include_expsyms, $1)=4254 _LT_TAGVAR(include_expsyms, $1)= 5618 4255 # exclude_expsyms can be an extended regexp of symbols to exclude 5619 4256 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5620 4257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5621 4258 # as well as any symbol that contains `d'. 5622 _LT_ AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']4259 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5623 4260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5624 4261 # platforms (ab)use it in PIC code, but their linkers get confused if … … 5629 4266 dnl Note also adjust exclude_expsyms for C++ above. 5630 4267 extract_expsyms_cmds= 5631 # Just being paranoid about ensuring that cc_basename is set. 5632 _LT_CC_BASENAME([$compiler]) 4268 5633 4269 case $host_os in 5634 cygwin* | mingw* | pw32* )4270 cygwin* | mingw* | pw32* | cegcc*) 5635 4271 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5636 4272 # When not using gcc, we currently assume that we are using … … 5649 4285 esac 5650 4286 5651 _LT_ AC_TAGVAR(ld_shlibs, $1)=yes4287 _LT_TAGVAR(ld_shlibs, $1)=yes 5652 4288 if test "$with_gnu_ld" = yes; then 5653 4289 # If archive_cmds runs LD, not CC, wlarc should be empty … … 5658 4294 # here allows them to be overridden if necessary. 5659 4295 runpath_var=LD_RUN_PATH 5660 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'5661 _LT_ AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'4296 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4297 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5662 4298 # ancient GNU ld didn't support --whole-archive et. al. 5663 if $LD --help 2>&1 | grep'no-whole-archive' > /dev/null; then5664 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'5665 else5666 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=4299 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 4300 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4301 else 4302 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5667 4303 fi 5668 4304 supports_anon_versioning=no 5669 case `$LD -v 2> /dev/null` in4305 case `$LD -v 2>&1` in 5670 4306 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5671 4307 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... … … 5680 4316 # On AIX/PPC, the GNU linker is very broken 5681 4317 if test "$host_cpu" != ia64; then 5682 _LT_ AC_TAGVAR(ld_shlibs, $1)=no5683 cat << EOF 1>&24318 _LT_TAGVAR(ld_shlibs, $1)=no 4319 cat <<_LT_EOF 1>&2 5684 4320 5685 4321 *** Warning: the GNU linker, at least up to release 2.9.1, is reported … … 5689 4325 *** so that a non-GNU linker is found, and then restart. 5690 4326 5691 EOF4327 _LT_EOF 5692 4328 fi 5693 4329 ;; 5694 4330 5695 4331 amigaos*) 5696 _LT_AC_TAGVAR(archive_cmds, $1)='$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)' 5697 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5698 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5699 5700 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5701 # that the semantics of dynamic libraries on AmigaOS, at least up 5702 # to version 4, is to share data among multiple programs linked 5703 # with the same dynamic library. Since this doesn't match the 5704 # behavior of shared libraries on other platforms, we can't use 5705 # them. 5706 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4332 case $host_cpu in 4333 powerpc) 4334 # see comment about AmigaOS4 .so support 4335 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4336 _LT_TAGVAR(archive_expsym_cmds, $1)='' 4337 ;; 4338 m68k) 4339 _LT_TAGVAR(archive_cmds, $1)='$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)' 4340 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4341 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4342 ;; 4343 esac 5707 4344 ;; 5708 4345 5709 4346 beos*) 5710 if $LD --help 2>&1 | grep': supported targets:.* elf' > /dev/null; then5711 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=unsupported4347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4348 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5712 4349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5713 4350 # support --undefined. This deserves some investigation. FIXME 5714 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4351 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5715 4352 else 5716 _LT_ AC_TAGVAR(ld_shlibs, $1)=no4353 _LT_TAGVAR(ld_shlibs, $1)=no 5717 4354 fi 5718 4355 ;; 5719 4356 5720 cygwin* | mingw* | pw32* )5721 # _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,4357 cygwin* | mingw* | pw32* | cegcc*) 4358 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5722 4359 # as there is no search path for DLLs. 5723 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5724 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=unsupported5725 _LT_ AC_TAGVAR(always_export_symbols, $1)=no5726 _LT_ AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes5727 _LT_ AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\''-e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'5728 5729 if $LD --help 2>&1 | grep'auto-import' > /dev/null; then5730 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'4360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4361 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4362 _LT_TAGVAR(always_export_symbols, $1)=no 4363 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4364 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 4365 4366 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 4367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5731 4368 # If the export-symbols file already is a .def file (1st line 5732 4369 # is EXPORTS), use it as is; otherwise, prepend... 5733 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then4370 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5734 4371 cp $export_symbols $output_objdir/$soname.def; 5735 4372 else … … 5739 4376 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5740 4377 else 5741 _LT_ AC_TAGVAR(ld_shlibs, $1)=no4378 _LT_TAGVAR(ld_shlibs, $1)=no 5742 4379 fi 5743 4380 ;; 5744 4381 5745 4382 interix[[3-9]]*) 5746 _LT_ AC_TAGVAR(hardcode_direct, $1)=no5747 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no5748 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'5749 _LT_ AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'4383 _LT_TAGVAR(hardcode_direct, $1)=no 4384 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4385 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4386 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5750 4387 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5751 4388 # Instead, shared libraries are loaded at an image base (0x10000000 by … … 5754 4391 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5755 4392 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5756 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5757 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5758 ;; 5759 5760 gnu* | linux* | k*bsd*-gnu) 5761 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 4393 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4394 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 4395 ;; 4396 4397 gnu* | linux* | tpf* | k*bsd*-gnu) 4398 tmp_diet=no 4399 if test "$host_os" = linux-dietlibc; then 4400 case $cc_basename in 4401 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 4402 esac 4403 fi 4404 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 4405 && test "$tmp_diet" = no 4406 then 5762 4407 tmp_addflag= 4408 tmp_sharedflag='-shared' 5763 4409 case $cc_basename,$host_cpu in 5764 pgcc*) # Portland Group C compiler5765 _LT_ AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo\"$new_convenience\"` ${wl}--no-whole-archive'4410 pgcc*) # Portland Group C compiler 4411 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5766 4412 tmp_addflag=' $pic_flag' 5767 4413 ;; 5768 4414 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 5769 _LT_ AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo\"$new_convenience\"` ${wl}--no-whole-archive'4415 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5770 4416 tmp_addflag=' $pic_flag -Mnomain' ;; 5771 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia644417 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5772 4418 tmp_addflag=' -i_dynamic' ;; 5773 4419 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 … … 5775 4421 ifc* | ifort*) # Intel Fortran compiler 5776 4422 tmp_addflag=' -nofor_main' ;; 4423 lf95*) # Lahey Fortran 8.1 4424 _LT_TAGVAR(whole_archive_flag_spec, $1)= 4425 tmp_sharedflag='--shared' ;; 4426 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4427 tmp_sharedflag='-qmkshrobj' 4428 tmp_addflag= ;; 5777 4429 esac 5778 4430 case `$CC -V 2>&1 | sed 5q` in 5779 4431 *Sun\ C*) # Sun C 5.9 5780 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 4432 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 4433 _LT_TAGVAR(compiler_needs_object, $1)=yes 5781 4434 tmp_sharedflag='-G' ;; 5782 4435 *Sun\ F*) # Sun Fortran 8.3 5783 4436 tmp_sharedflag='-G' ;; 5784 *)5785 tmp_sharedflag='-shared' ;;5786 4437 esac 5787 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5788 5789 if test $supports_anon_versioning = yes; then 5790 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 5791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5792 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5793 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5794 fi 4438 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4439 4440 if test "x$supports_anon_versioning" = xyes; then 4441 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4442 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4443 echo "local: *; };" >> $output_objdir/$libname.ver~ 4444 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 4445 fi 4446 4447 case $cc_basename in 4448 xlf*) 4449 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4450 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 4451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4452 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 4453 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 4454 if test "x$supports_anon_versioning" = xyes; then 4455 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4457 echo "local: *; };" >> $output_objdir/$libname.ver~ 4458 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 4459 fi 4460 ;; 4461 esac 5795 4462 else 5796 _LT_AC_TAGVAR(ld_shlibs, $1)=no4463 _LT_TAGVAR(ld_shlibs, $1)=no 5797 4464 fi 5798 4465 ;; 5799 4466 5800 4467 netbsd*) 5801 if echo __ELF__ | $CC -E - | grep__ELF__ >/dev/null; then5802 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'4468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4469 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5803 4470 wlarc= 5804 4471 else 5805 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5806 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4472 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4473 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5807 4474 fi 5808 4475 ;; 5809 4476 5810 4477 solaris*) 5811 if $LD -v 2>&1 | grep'BFD 2\.8' > /dev/null; then5812 _LT_ AC_TAGVAR(ld_shlibs, $1)=no5813 cat << EOF 1>&24478 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 4479 _LT_TAGVAR(ld_shlibs, $1)=no 4480 cat <<_LT_EOF 1>&2 5814 4481 5815 4482 *** Warning: The releases 2.8.* of the GNU linker cannot reliably … … 5820 4487 *** used, and then restart. 5821 4488 5822 EOF5823 elif $LD --help 2>&1 | grep': supported targets:.* elf' > /dev/null; then5824 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5825 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4489 _LT_EOF 4490 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4491 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4492 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5826 4493 else 5827 _LT_ AC_TAGVAR(ld_shlibs, $1)=no4494 _LT_TAGVAR(ld_shlibs, $1)=no 5828 4495 fi 5829 4496 ;; … … 5832 4499 case `$LD -v 2>&1` in 5833 4500 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5834 _LT_ AC_TAGVAR(ld_shlibs, $1)=no4501 _LT_TAGVAR(ld_shlibs, $1)=no 5835 4502 cat <<_LT_EOF 1>&2 5836 4503 … … 5845 4512 ;; 5846 4513 *) 5847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5848 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 5849 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 5850 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 4514 # For security reasons, it is highly recommended that you always 4515 # use absolute paths for naming shared libraries, and exclude the 4516 # DT_RUNPATH tag from executables and libraries. But doing so 4517 # requires that you compile everything twice, which is a pain. 4518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4519 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4520 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4521 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5851 4522 else 5852 _LT_ AC_TAGVAR(ld_shlibs, $1)=no4523 _LT_TAGVAR(ld_shlibs, $1)=no 5853 4524 fi 5854 4525 ;; … … 5857 4528 5858 4529 sunos4*) 5859 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'4530 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5860 4531 wlarc= 5861 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes5862 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no4532 _LT_TAGVAR(hardcode_direct, $1)=yes 4533 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5863 4534 ;; 5864 4535 5865 4536 *) 5866 if $LD --help 2>&1 | grep': supported targets:.* elf' > /dev/null; then5867 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5868 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4538 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4539 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5869 4540 else 5870 _LT_ AC_TAGVAR(ld_shlibs, $1)=no4541 _LT_TAGVAR(ld_shlibs, $1)=no 5871 4542 fi 5872 4543 ;; 5873 4544 esac 5874 4545 5875 if test "$_LT_ AC_TAGVAR(ld_shlibs, $1)" = no; then4546 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 5876 4547 runpath_var= 5877 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)=5878 _LT_ AC_TAGVAR(export_dynamic_flag_spec, $1)=5879 _LT_ AC_TAGVAR(whole_archive_flag_spec, $1)=4548 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4549 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4550 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5880 4551 fi 5881 4552 else … … 5883 4554 case $host_os in 5884 4555 aix3*) 5885 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=unsupported5886 _LT_ AC_TAGVAR(always_export_symbols, $1)=yes5887 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'4556 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4557 _LT_TAGVAR(always_export_symbols, $1)=yes 4558 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 5888 4559 # Note: this linker hardcodes the directories in LIBPATH if there 5889 4560 # are no directories specified by -L. 5890 _LT_ AC_TAGVAR(hardcode_minus_L, $1)=yes4561 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5891 4562 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 5892 4563 # Neither direct hardcoding nor static linking is supported with a 5893 4564 # broken collect2. 5894 _LT_ AC_TAGVAR(hardcode_direct, $1)=unsupported4565 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5895 4566 fi 5896 4567 ;; … … 5906 4577 # If we're using GNU nm, then we don't want the "-C" option. 5907 4578 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5908 if $NM -V 2>&1 | grep'GNU' > /dev/null; then5909 _LT_ AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'4579 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4580 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5910 4581 else 5911 _LT_ AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'4582 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5912 4583 fi 5913 4584 aix_use_runtimelinking=no … … 5918 4589 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5919 4590 for ld_flag in $LDFLAGS; do 5920 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then5921 aix_use_runtimelinking=yes5922 break5923 fi4591 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 4592 aix_use_runtimelinking=yes 4593 break 4594 fi 5924 4595 done 5925 4596 ;; … … 5936 4607 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5937 4608 5938 _LT_AC_TAGVAR(archive_cmds, $1)='' 5939 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5940 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 5941 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4609 _LT_TAGVAR(archive_cmds, $1)='' 4610 _LT_TAGVAR(hardcode_direct, $1)=yes 4611 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4612 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 4613 _LT_TAGVAR(link_all_deplibs, $1)=yes 4614 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5942 4615 5943 4616 if test "$GCC" = yes; then … … 5946 4619 # below for broken collect2 doesn't work under 4.3+ 5947 4620 collect2name=`${CC} -print-prog-name=collect2` 5948 if test -f "$collect2name" && \5949 strings "$collect2name" | grepresolve_lib_name >/dev/null4621 if test -f "$collect2name" && 4622 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5950 4623 then 5951 # We have reworked collect25952 :4624 # We have reworked collect2 4625 : 5953 4626 else 5954 # We have old collect25955 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported5956 # It fails to find uninstalled libraries when the uninstalled5957 # path is not listed in the libpath. Setting hardcode_minus_L5958 # to unsupported forces relinking5959 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes5960 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5961 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=4627 # We have old collect2 4628 _LT_TAGVAR(hardcode_direct, $1)=unsupported 4629 # It fails to find uninstalled libraries when the uninstalled 4630 # path is not listed in the libpath. Setting hardcode_minus_L 4631 # to unsupported forces relinking 4632 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4633 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4634 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5962 4635 fi 5963 4636 ;; … … 5967 4640 shared_flag="$shared_flag "'${wl}-G' 5968 4641 fi 4642 _LT_TAGVAR(link_all_deplibs, $1)=no 5969 4643 else 5970 4644 # not using gcc 5971 4645 if test "$host_cpu" = ia64; then 5972 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release5973 # chokes on -Wl,-G. The following line is correct:4646 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 4647 # chokes on -Wl,-G. The following line is correct: 5974 4648 shared_flag='-G' 5975 4649 else … … 5982 4656 fi 5983 4657 4658 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 5984 4659 # It seems that -bexpall does not export symbols beginning with 5985 4660 # underscore (_), so it is better to generate a list of symbols to export. 5986 _LT_ AC_TAGVAR(always_export_symbols, $1)=yes4661 _LT_TAGVAR(always_export_symbols, $1)=yes 5987 4662 if test "$aix_use_runtimelinking" = yes; then 5988 4663 # Warning - without using the other runtime loading flags (-brtl), 5989 4664 # -berok will link without error, but may produce a broken library. 5990 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 5991 # Determine the default libpath from the value encoded in an empty executable. 5992 _LT_AC_SYS_LIBPATH_AIX 5993 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5994 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5995 else 4665 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 4666 # Determine the default libpath from the value encoded in an 4667 # empty executable. 4668 _LT_SYS_MODULE_PATH_AIX 4669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4670 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 4671 else 5996 4672 if test "$host_cpu" = ia64; then 5997 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'5998 _LT_ AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"5999 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"4673 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 4674 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 4675 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 6000 4676 else 6001 # Determine the default libpath from the value encoded in an empty executable. 6002 _LT_AC_SYS_LIBPATH_AIX 6003 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 4677 # Determine the default libpath from the value encoded in an 4678 # empty executable. 4679 _LT_SYS_MODULE_PATH_AIX 4680 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6004 4681 # Warning - without using the other run time loading flags, 6005 4682 # -berok will link without error, but may produce a broken library. 6006 _LT_ AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'6007 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'4683 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 4684 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6008 4685 # Exported symbols can be pulled into shared objects from archives 6009 _LT_ AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'6010 _LT_ AC_TAGVAR(archive_cmds_need_lc, $1)=yes4686 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 4687 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6011 4688 # This is similar to how AIX traditionally builds its shared libraries. 6012 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'4689 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6013 4690 fi 6014 4691 fi … … 6016 4693 6017 4694 amigaos*) 6018 _LT_AC_TAGVAR(archive_cmds, $1)='$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)' 6019 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6020 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6021 # see comment about different semantics on the GNU ld section 6022 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4695 case $host_cpu in 4696 powerpc) 4697 # see comment about AmigaOS4 .so support 4698 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4699 _LT_TAGVAR(archive_expsym_cmds, $1)='' 4700 ;; 4701 m68k) 4702 _LT_TAGVAR(archive_cmds, $1)='$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)' 4703 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4704 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4705 ;; 4706 esac 6023 4707 ;; 6024 4708 6025 4709 bsdi[[45]]*) 6026 _LT_ AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic6027 ;; 6028 6029 cygwin* | mingw* | pw32* )4710 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 4711 ;; 4712 4713 cygwin* | mingw* | pw32* | cegcc*) 6030 4714 # When not using gcc, we currently assume that we are using 6031 4715 # Microsoft Visual C++. 6032 4716 # hardcode_libdir_flag_spec is actually meaningless, as there is 6033 4717 # no search path for DLLs. 6034 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '6035 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=unsupported4718 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 4719 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6036 4720 # Tell ltmain to make .lib files, not .a files. 6037 4721 libext=lib … … 6039 4723 shrext_cmds=".dll" 6040 4724 # FIXME: Setting linknames here is a bad hack. 6041 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED-e '\''s/ -lc$//'\''` -link -dll~linknames='4725 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6042 4726 # The linker will automatically build a .lib file if we build a DLL. 6043 _LT_ AC_TAGVAR(old_archive_From_new_cmds, $1)='true'4727 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6044 4728 # FIXME: Should let the user specify the lib program. 6045 _LT_ AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'6046 _LT_ AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'6047 _LT_ AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes4729 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 4730 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 4731 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6048 4732 ;; 6049 4733 6050 4734 darwin* | rhapsody*) 6051 case $host_os in 6052 rhapsody* | darwin1.[[012]]) 6053 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 6054 ;; 6055 *) # Darwin 1.3 on 6056 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6057 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6058 else 6059 case ${MACOSX_DEPLOYMENT_TARGET} in 6060 10.[[012]]) 6061 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 6062 ;; 6063 10.*) 6064 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 6065 ;; 6066 esac 6067 fi 6068 ;; 6069 esac 6070 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6071 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6072 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 6073 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6074 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 6075 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6076 if test "$GCC" = yes ; then 6077 output_verbose_link_cmd='echo' 6078 _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 6079 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 6080 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="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}" 6081 _LT_AC_TAGVAR(module_expsym_cmds, $1)="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}" 6082 else 6083 case $cc_basename in 6084 xlc*) 6085 output_verbose_link_cmd='echo' 6086 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 6087 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6088 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 6089 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6090 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6091 ;; 6092 *) 6093 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6094 ;; 6095 esac 6096 fi 4735 _LT_DARWIN_LINKER_FEATURES($1) 6097 4736 ;; 6098 4737 6099 4738 dgux*) 6100 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6101 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'6102 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no4739 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4740 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4741 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6103 4742 ;; 6104 4743 6105 4744 freebsd1*) 6106 _LT_ AC_TAGVAR(ld_shlibs, $1)=no4745 _LT_TAGVAR(ld_shlibs, $1)=no 6107 4746 ;; 6108 4747 … … 6112 4751 # extra space). 6113 4752 freebsd2.2*) 6114 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'6115 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'6116 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes6117 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no4753 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 4754 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4755 _LT_TAGVAR(hardcode_direct, $1)=yes 4756 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6118 4757 ;; 6119 4758 6120 4759 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6121 4760 freebsd2*) 6122 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'6123 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes6124 _LT_ AC_TAGVAR(hardcode_minus_L, $1)=yes6125 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no4761 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4762 _LT_TAGVAR(hardcode_direct, $1)=yes 4763 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4764 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6126 4765 ;; 6127 4766 6128 4767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6129 4768 freebsd* | dragonfly*) 6130 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'6131 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'6132 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes6133 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no4769 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 4770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4771 _LT_TAGVAR(hardcode_direct, $1)=yes 4772 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6134 4773 ;; 6135 4774 6136 4775 hpux9*) 6137 4776 if test "$GCC" = yes; then 6138 _LT_ AC_TAGVAR(archive_cmds, $1)='$rm$output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'4777 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6139 4778 else 6140 _LT_ AC_TAGVAR(archive_cmds, $1)='$rm$output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'4779 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6141 4780 fi 6142 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'6143 _LT_ AC_TAGVAR(hardcode_libdir_separator, $1)=:6144 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes4781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4782 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4783 _LT_TAGVAR(hardcode_direct, $1)=yes 6145 4784 6146 4785 # hardcode_minus_L: Not really in the search PATH, 6147 4786 # but as the default location of the library. 6148 _LT_ AC_TAGVAR(hardcode_minus_L, $1)=yes6149 _LT_ AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'4787 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4788 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6150 4789 ;; 6151 4790 6152 4791 hpux10*) 6153 4792 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6154 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'4793 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6155 4794 else 6156 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'4795 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6157 4796 fi 6158 4797 if test "$with_gnu_ld" = no; then 6159 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'6160 _LT_ AC_TAGVAR(hardcode_libdir_separator, $1)=:6161 6162 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes6163 _LT_ AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'6164 4798 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4799 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 4800 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4801 _LT_TAGVAR(hardcode_direct, $1)=yes 4802 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4803 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6165 4804 # hardcode_minus_L: Not really in the search PATH, 6166 4805 # but as the default location of the library. 6167 _LT_ AC_TAGVAR(hardcode_minus_L, $1)=yes4806 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6168 4807 fi 6169 4808 ;; … … 6173 4812 case $host_cpu in 6174 4813 hppa*64*) 6175 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'4814 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6176 4815 ;; 6177 4816 ia64*) 6178 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'4817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6179 4818 ;; 6180 4819 *) 6181 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'4820 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6182 4821 ;; 6183 4822 esac … … 6185 4824 case $host_cpu in 6186 4825 hppa*64*) 6187 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'4826 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6188 4827 ;; 6189 4828 ia64*) 6190 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'4829 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 6191 4830 ;; 6192 4831 *) 6193 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'4832 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6194 4833 ;; 6195 4834 esac 6196 4835 fi 6197 4836 if test "$with_gnu_ld" = no; then 6198 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'6199 _LT_ AC_TAGVAR(hardcode_libdir_separator, $1)=:4837 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 4838 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6200 4839 6201 4840 case $host_cpu in 6202 4841 hppa*64*|ia64*) 6203 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6204 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6205 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4842 _LT_TAGVAR(hardcode_direct, $1)=no 4843 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6206 4844 ;; 6207 4845 *) 6208 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6209 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4846 _LT_TAGVAR(hardcode_direct, $1)=yes 4847 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4848 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6210 4849 6211 4850 # hardcode_minus_L: Not really in the search PATH, 6212 4851 # but as the default location of the library. 6213 _LT_ AC_TAGVAR(hardcode_minus_L, $1)=yes4852 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6214 4853 ;; 6215 4854 esac … … 6219 4858 irix5* | irix6* | nonstopux*) 6220 4859 if test "$GCC" = yes; then 6221 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4860 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4861 # Try to use the -exported_symbol ld option, if it does not 4862 # work, assume that -exports_file does not work either and 4863 # implicitly export all symbols. 4864 save_LDFLAGS="$LDFLAGS" 4865 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 4866 AC_LINK_IFELSE(int foo(void) {}, 4867 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 4868 ) 4869 LDFLAGS="$save_LDFLAGS" 6222 4870 else 6223 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'6224 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'4871 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 4872 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 6225 4873 fi 6226 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6227 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6228 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4874 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 4875 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4876 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4877 _LT_TAGVAR(inherit_rpath, $1)=yes 4878 _LT_TAGVAR(link_all_deplibs, $1)=yes 6229 4879 ;; 6230 4880 6231 4881 netbsd*) 6232 if echo __ELF__ | $CC -E - | grep__ELF__ >/dev/null; then6233 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out4882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4883 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6234 4884 else 6235 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF4885 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6236 4886 fi 6237 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'6238 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes6239 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no4887 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4888 _LT_TAGVAR(hardcode_direct, $1)=yes 4889 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6240 4890 ;; 6241 4891 6242 4892 newsos6) 6243 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6244 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6245 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6246 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6247 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4893 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 4894 _LT_TAGVAR(hardcode_direct, $1)=yes 4895 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4896 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 4897 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4898 ;; 4899 4900 *nto* | *qnx*) 6248 4901 ;; 6249 4902 6250 4903 openbsd*) 6251 4904 if test -f /usr/libexec/ld.so; then 6252 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6253 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6254 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6255 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6256 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 6257 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6258 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4905 _LT_TAGVAR(hardcode_direct, $1)=yes 4906 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4907 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 4908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4909 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4910 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 4911 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4912 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6259 4913 else 6260 4914 case $host_os in 6261 4915 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6262 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'6263 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'4916 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4917 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6264 4918 ;; 6265 4919 *) 6266 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'6267 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'4920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 4921 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6268 4922 ;; 6269 4923 esac 6270 fi4924 fi 6271 4925 else 6272 _LT_ AC_TAGVAR(ld_shlibs, $1)=no4926 _LT_TAGVAR(ld_shlibs, $1)=no 6273 4927 fi 6274 4928 ;; 6275 4929 6276 4930 os2*) 6277 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'6278 _LT_ AC_TAGVAR(hardcode_minus_L, $1)=yes6279 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=unsupported6280 _LT_ AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echoEXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'6281 _LT_ AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'4931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4932 _LT_TAGVAR(hardcode_minus_L, $1)=yes 4933 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4934 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 4935 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6282 4936 ;; 6283 4937 6284 4938 osf3*) 6285 4939 if test "$GCC" = yes; then 6286 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'6287 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'4940 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4941 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6288 4942 else 6289 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'6290 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'4943 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4944 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6291 4945 fi 6292 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6293 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4946 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 4947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4948 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6294 4949 ;; 6295 4950 6296 4951 osf4* | osf5*) # as osf3* with the addition of -msym flag 6297 4952 if test "$GCC" = yes; then 6298 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'6299 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6300 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'4953 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4954 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 4955 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6301 4956 else 6302 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'6303 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'6304 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo"-hidden">> $lib.exp~6305 $ LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm$lib.exp'4957 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4958 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 4959 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 4960 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 6306 4961 6307 4962 # Both c and cxx compiler support -rpath directly 6308 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'4963 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6309 4964 fi 6310 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4965 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 4966 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6311 4967 ;; 6312 4968 6313 4969 solaris*) 6314 _LT_ AC_TAGVAR(no_undefined_flag, $1)=' -z text'4970 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 6315 4971 if test "$GCC" = yes; then 6316 4972 wlarc='${wl}' 6317 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'6318 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~6319 $CC -shared ${wl}- M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm$lib.exp'4973 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 4974 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 4975 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6320 4976 else 6321 wlarc='' 6322 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6323 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6324 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 4977 case `$CC -V 2>&1` in 4978 *"Compilers 5.0"*) 4979 wlarc='' 4980 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 4981 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 4982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 4983 ;; 4984 *) 4985 wlarc='${wl}' 4986 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 4987 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 4988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 4989 ;; 4990 esac 6325 4991 fi 6326 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'6327 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no4992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4993 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6328 4994 case $host_os in 6329 4995 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; … … 6332 4998 # but understands `-z linker_flag'. GCC discards it without `$wl', 6333 4999 # but is careful enough not to reorder. 6334 # Supported since Solaris 2.6 (maybe 2.5.1?)5000 # Supported since Solaris 2.6 (maybe 2.5.1?) 6335 5001 if test "$GCC" = yes; then 6336 _LT_ AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'5002 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6337 5003 else 6338 _LT_ AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'5004 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6339 5005 fi 6340 5006 ;; 6341 5007 esac 6342 _LT_ AC_TAGVAR(link_all_deplibs, $1)=yes5008 _LT_TAGVAR(link_all_deplibs, $1)=yes 6343 5009 ;; 6344 5010 … … 6347 5013 # Use $CC to link under sequent, because it throws in some extra .o 6348 5014 # files that make .init and .fini sections work. 6349 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'5015 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6350 5016 else 6351 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'5017 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6352 5018 fi 6353 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'6354 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes6355 _LT_ AC_TAGVAR(hardcode_minus_L, $1)=yes6356 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no5019 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5020 _LT_TAGVAR(hardcode_direct, $1)=yes 5021 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5022 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6357 5023 ;; 6358 5024 … … 6360 5026 case $host_vendor in 6361 5027 sni) 6362 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6363 _LT_ AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???5028 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5029 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6364 5030 ;; 6365 5031 siemens) 6366 5032 ## LD is ld it makes a PLAMLIB 6367 5033 ## CC just makes a GrossModule. 6368 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'6369 _LT_ AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'6370 _LT_ AC_TAGVAR(hardcode_direct, $1)=no5034 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5035 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 5036 _LT_TAGVAR(hardcode_direct, $1)=no 6371 5037 ;; 6372 5038 motorola) 6373 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6374 _LT_ AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie5039 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5040 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6375 5041 ;; 6376 5042 esac 6377 5043 runpath_var='LD_RUN_PATH' 6378 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no5044 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6379 5045 ;; 6380 5046 6381 5047 sysv4.3*) 6382 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6383 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no6384 _LT_ AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'5048 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5049 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5050 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6385 5051 ;; 6386 5052 6387 5053 sysv4*MP*) 6388 5054 if test -d /usr/nec; then 6389 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6390 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no5055 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5056 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6391 5057 runpath_var=LD_RUN_PATH 6392 5058 hardcode_runpath_var=yes 6393 _LT_ AC_TAGVAR(ld_shlibs, $1)=yes5059 _LT_TAGVAR(ld_shlibs, $1)=yes 6394 5060 fi 6395 5061 ;; 6396 5062 6397 5063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6398 _LT_ AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'6399 _LT_ AC_TAGVAR(archive_cmds_need_lc, $1)=no6400 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no5064 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5065 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5066 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6401 5067 runpath_var='LD_RUN_PATH' 6402 5068 6403 5069 if test "$GCC" = yes; then 6404 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6405 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5070 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5071 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6406 5072 else 6407 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6408 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'5073 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5074 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6409 5075 fi 6410 5076 ;; … … 6417 5083 # though, which does catch some bad symbols but isn't as heavy-handed 6418 5084 # as -z defs. 6419 _LT_ AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'6420 _LT_ AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'6421 _LT_ AC_TAGVAR(archive_cmds_need_lc, $1)=no6422 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no6423 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'6424 _LT_ AC_TAGVAR(hardcode_libdir_separator, $1)=':'6425 _LT_ AC_TAGVAR(link_all_deplibs, $1)=yes6426 _LT_ AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'5085 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5086 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 5087 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5089 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 5090 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5091 _LT_TAGVAR(link_all_deplibs, $1)=yes 5092 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6427 5093 runpath_var='LD_RUN_PATH' 6428 5094 6429 5095 if test "$GCC" = yes; then 6430 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'6431 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'5096 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5097 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6432 5098 else 6433 _LT_ AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'6434 _LT_ AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'5099 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5100 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6435 5101 fi 6436 5102 ;; 6437 5103 6438 5104 uts4*) 6439 _LT_ AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'6440 _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'6441 _LT_ AC_TAGVAR(hardcode_shlibpath_var, $1)=no5105 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5106 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5107 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6442 5108 ;; 6443 5109 6444 5110 *) 6445 _LT_ AC_TAGVAR(ld_shlibs, $1)=no5111 _LT_TAGVAR(ld_shlibs, $1)=no 6446 5112 ;; 6447 5113 esac 5114 5115 if test x$host_vendor = xsni; then 5116 case $host in 5117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5118 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 5119 ;; 5120 esac 5121 fi 6448 5122 fi 6449 5123 ]) 6450 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 6451 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5124 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 5125 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5126 5127 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 5128 5129 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 5130 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 5131 _LT_DECL([], [extract_expsyms_cmds], [2], 5132 [The commands to extract the exported symbol list from a shared archive]) 6452 5133 6453 5134 # 6454 5135 # Do we need to explicitly link libc? 6455 5136 # 6456 case "x$_LT_ AC_TAGVAR(archive_cmds_need_lc, $1)" in5137 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6457 5138 x|xyes) 6458 5139 # Assume -lc should be added 6459 _LT_ AC_TAGVAR(archive_cmds_need_lc, $1)=yes5140 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6460 5141 6461 5142 if test "$enable_shared" = yes && test "$GCC" = yes; then 6462 case $_LT_ AC_TAGVAR(archive_cmds, $1) in5143 case $_LT_TAGVAR(archive_cmds, $1) in 6463 5144 *'~'*) 6464 5145 # FIXME: we may have to deal with multi-command sequences. … … 6469 5150 # to ld, don't add -lc before -lgcc. 6470 5151 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 6471 $ rmconftest*5152 $RM conftest* 6472 5153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6473 5154 … … 6477 5158 libobjs=conftest.$ac_objext 6478 5159 deplibs= 6479 wl=$_LT_ AC_TAGVAR(lt_prog_compiler_wl, $1)6480 pic_flag=$_LT_ AC_TAGVAR(lt_prog_compiler_pic, $1)5160 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5161 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 6481 5162 compiler_flags=-v 6482 5163 linker_flags=-v … … 6484 5165 output_objdir=. 6485 5166 libname=conftest 6486 lt_save_allow_undefined_flag=$_LT_ AC_TAGVAR(allow_undefined_flag, $1)6487 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=6488 if AC_TRY_EVAL(_LT_ AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep\" -lc \" \>/dev/null 2\>\&1)5167 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5168 _LT_TAGVAR(allow_undefined_flag, $1)= 5169 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 6489 5170 then 6490 _LT_ AC_TAGVAR(archive_cmds_need_lc, $1)=no5171 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6491 5172 else 6492 _LT_ AC_TAGVAR(archive_cmds_need_lc, $1)=yes5173 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6493 5174 fi 6494 _LT_ AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag5175 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6495 5176 else 6496 5177 cat conftest.err 1>&5 6497 5178 fi 6498 $ rmconftest*6499 AC_MSG_RESULT([$_LT_ AC_TAGVAR(archive_cmds_need_lc, $1)])5179 $RM conftest* 5180 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)]) 6500 5181 ;; 6501 5182 esac … … 6503 5184 ;; 6504 5185 esac 6505 ])# AC_LIBTOOL_PROG_LD_SHLIBS 6506 6507 6508 # _LT_AC_FILE_LTDLL_C 6509 # ------------------- 6510 # Be careful that the start marker always follows a newline. 6511 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 6512 # /* ltdll.c starts here */ 6513 # #define WIN32_LEAN_AND_MEAN 6514 # #include <windows.h> 6515 # #undef WIN32_LEAN_AND_MEAN 6516 # #include <stdio.h> 6517 # 6518 # #ifndef __CYGWIN__ 6519 # # ifdef __CYGWIN32__ 6520 # # define __CYGWIN__ __CYGWIN32__ 6521 # # endif 6522 # #endif 6523 # 6524 # #ifdef __cplusplus 6525 # extern "C" { 6526 # #endif 6527 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 6528 # #ifdef __cplusplus 6529 # } 6530 # #endif 6531 # 6532 # #ifdef __CYGWIN__ 6533 # #include <cygwin/cygwin_dll.h> 6534 # DECLARE_CYGWIN_DLL( DllMain ); 6535 # #endif 6536 # HINSTANCE __hDllInstance_base; 6537 # 6538 # BOOL APIENTRY 6539 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 6540 # { 6541 # __hDllInstance_base = hInst; 6542 # return TRUE; 6543 # } 6544 # /* ltdll.c ends here */ 6545 ])# _LT_AC_FILE_LTDLL_C 6546 6547 6548 # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 5186 5187 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 5188 [Whether or not to add -lc for building shared libraries]) 5189 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 5190 [enable_shared_with_static_runtimes], [0], 5191 [Whether or not to disallow shared libs when runtime libs are static]) 5192 _LT_TAGDECL([], [export_dynamic_flag_spec], [1], 5193 [Compiler flag to allow reflexive dlopens]) 5194 _LT_TAGDECL([], [whole_archive_flag_spec], [1], 5195 [Compiler flag to generate shared objects directly from archives]) 5196 _LT_TAGDECL([], [compiler_needs_object], [1], 5197 [Whether the compiler copes with passing no objects directly]) 5198 _LT_TAGDECL([], [old_archive_from_new_cmds], [2], 5199 [Create an old-style archive from a shared archive]) 5200 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 5201 [Create a temporary old-style archive to link instead of a shared archive]) 5202 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 5203 _LT_TAGDECL([], [archive_expsym_cmds], [2]) 5204 _LT_TAGDECL([], [module_cmds], [2], 5205 [Commands used to build a loadable module if different from building 5206 a shared archive.]) 5207 _LT_TAGDECL([], [module_expsym_cmds], [2]) 5208 _LT_TAGDECL([], [with_gnu_ld], [1], 5209 [Whether we are building with GNU ld or not]) 5210 _LT_TAGDECL([], [allow_undefined_flag], [1], 5211 [Flag that allows shared libraries with undefined symbols to be built]) 5212 _LT_TAGDECL([], [no_undefined_flag], [1], 5213 [Flag that enforces no undefined symbols]) 5214 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 5215 [Flag to hardcode $libdir into a binary during linking. 5216 This must work even if $libdir does not exist]) 5217 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], 5218 [[If ld is used when linking, flag to hardcode $libdir into a binary 5219 during linking. This must work even if $libdir does not exist]]) 5220 _LT_TAGDECL([], [hardcode_libdir_separator], [1], 5221 [Whether we need a single "-rpath" flag with a separated argument]) 5222 _LT_TAGDECL([], [hardcode_direct], [0], 5223 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5224 DIR into the resulting binary]) 5225 _LT_TAGDECL([], [hardcode_direct_absolute], [0], 5226 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5227 DIR into the resulting binary and the resulting library dependency is 5228 "absolute", i.e impossible to change by setting ${shlibpath_var} if the 5229 library is relocated]) 5230 _LT_TAGDECL([], [hardcode_minus_L], [0], 5231 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 5232 into the resulting binary]) 5233 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], 5234 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 5235 into the resulting binary]) 5236 _LT_TAGDECL([], [hardcode_automatic], [0], 5237 [Set to "yes" if building a shared library automatically hardcodes DIR 5238 into the library and all subsequent libraries and executables linked 5239 against it]) 5240 _LT_TAGDECL([], [inherit_rpath], [0], 5241 [Set to yes if linker adds runtime paths of dependent libraries 5242 to runtime path list]) 5243 _LT_TAGDECL([], [link_all_deplibs], [0], 5244 [Whether libtool must link a program against all its dependency libraries]) 5245 _LT_TAGDECL([], [fix_srcfile_path], [1], 5246 [Fix the shell variable $srcfile for the compiler]) 5247 _LT_TAGDECL([], [always_export_symbols], [0], 5248 [Set to "yes" if exported symbols are required]) 5249 _LT_TAGDECL([], [export_symbols_cmds], [2], 5250 [The commands to list exported symbols]) 5251 _LT_TAGDECL([], [exclude_expsyms], [1], 5252 [Symbols that should not be listed in the preloaded symbols]) 5253 _LT_TAGDECL([], [include_expsyms], [1], 5254 [Symbols that must always be exported]) 5255 _LT_TAGDECL([], [prelink_cmds], [2], 5256 [Commands necessary for linking programs (against libraries) with templates]) 5257 _LT_TAGDECL([], [file_list_spec], [1], 5258 [Specify filename containing input files]) 5259 dnl FIXME: Not yet implemented 5260 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 5261 dnl [Compiler flag to generate thread safe objects]) 5262 ])# _LT_LINKER_SHLIBS 5263 5264 5265 # _LT_LANG_C_CONFIG([TAG]) 5266 # ------------------------ 5267 # Ensure that the configuration variables for a C compiler are suitably 5268 # defined. These variables are subsequently used by _LT_CONFIG to write 5269 # the compiler configuration to `libtool'. 5270 m4_defun([_LT_LANG_C_CONFIG], 5271 [m4_require([_LT_DECL_EGREP])dnl 5272 lt_save_CC="$CC" 5273 AC_LANG_PUSH(C) 5274 5275 # Source file extension for C test sources. 5276 ac_ext=c 5277 5278 # Object file extension for compiled C test sources. 5279 objext=o 5280 _LT_TAGVAR(objext, $1)=$objext 5281 5282 # Code to be used in simple compile tests 5283 lt_simple_compile_test_code="int some_variable = 0;" 5284 5285 # Code to be used in simple link tests 5286 lt_simple_link_test_code='int main(){return(0);}' 5287 5288 _LT_TAG_COMPILER 5289 # Save the default compiler, since it gets overwritten when the other 5290 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 5291 compiler_DEFAULT=$CC 5292 5293 # save warnings/boilerplate of simple test code 5294 _LT_COMPILER_BOILERPLATE 5295 _LT_LINKER_BOILERPLATE 5296 5297 if test -n "$compiler"; then 5298 _LT_COMPILER_NO_RTTI($1) 5299 _LT_COMPILER_PIC($1) 5300 _LT_COMPILER_C_O($1) 5301 _LT_COMPILER_FILE_LOCKS($1) 5302 _LT_LINKER_SHLIBS($1) 5303 _LT_SYS_DYNAMIC_LINKER($1) 5304 _LT_LINKER_HARDCODE_LIBPATH($1) 5305 LT_SYS_DLOPEN_SELF 5306 _LT_CMD_STRIPLIB 5307 5308 # Report which library types will actually be built 5309 AC_MSG_CHECKING([if libtool supports shared libraries]) 5310 AC_MSG_RESULT([$can_build_shared]) 5311 5312 AC_MSG_CHECKING([whether to build shared libraries]) 5313 test "$can_build_shared" = "no" && enable_shared=no 5314 5315 # On AIX, shared libraries and static libraries use the same namespace, and 5316 # are all built from PIC. 5317 case $host_os in 5318 aix3*) 5319 test "$enable_shared" = yes && enable_static=no 5320 if test -n "$RANLIB"; then 5321 archive_cmds="$archive_cmds~\$RANLIB \$lib" 5322 postinstall_cmds='$RANLIB $lib' 5323 fi 5324 ;; 5325 5326 aix[[4-9]]*) 5327 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5328 test "$enable_shared" = yes && enable_static=no 5329 fi 5330 ;; 5331 esac 5332 AC_MSG_RESULT([$enable_shared]) 5333 5334 AC_MSG_CHECKING([whether to build static libraries]) 5335 # Make sure either enable_shared or enable_static is yes. 5336 test "$enable_shared" = yes || enable_static=yes 5337 AC_MSG_RESULT([$enable_static]) 5338 5339 _LT_CONFIG($1) 5340 fi 5341 AC_LANG_POP 5342 CC="$lt_save_CC" 5343 ])# _LT_LANG_C_CONFIG 5344 5345 5346 # _LT_PROG_CXX 5347 # ------------ 5348 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++ 5349 # compiler, we have our own version here. 5350 m4_defun([_LT_PROG_CXX], 5351 [ 5352 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes]) 5353 AC_PROG_CXX 5354 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5355 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5356 (test "X$CXX" != "Xg++"))) ; then 5357 AC_PROG_CXXCPP 5358 else 5359 _lt_caught_CXX_error=yes 5360 fi 5361 popdef([AC_MSG_ERROR]) 5362 ])# _LT_PROG_CXX 5363 5364 dnl aclocal-1.4 backwards compatibility: 5365 dnl AC_DEFUN([_LT_PROG_CXX], []) 5366 5367 5368 # _LT_LANG_CXX_CONFIG([TAG]) 5369 # -------------------------- 5370 # Ensure that the configuration variables for a C++ compiler are suitably 5371 # defined. These variables are subsequently used by _LT_CONFIG to write 5372 # the compiler configuration to `libtool'. 5373 m4_defun([_LT_LANG_CXX_CONFIG], 5374 [AC_REQUIRE([_LT_PROG_CXX])dnl 5375 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5376 m4_require([_LT_DECL_EGREP])dnl 5377 5378 AC_LANG_PUSH(C++) 5379 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5380 _LT_TAGVAR(allow_undefined_flag, $1)= 5381 _LT_TAGVAR(always_export_symbols, $1)=no 5382 _LT_TAGVAR(archive_expsym_cmds, $1)= 5383 _LT_TAGVAR(compiler_needs_object, $1)=no 5384 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5385 _LT_TAGVAR(hardcode_direct, $1)=no 5386 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5387 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5388 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5389 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5390 _LT_TAGVAR(hardcode_minus_L, $1)=no 5391 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5392 _LT_TAGVAR(hardcode_automatic, $1)=no 5393 _LT_TAGVAR(inherit_rpath, $1)=no 5394 _LT_TAGVAR(module_cmds, $1)= 5395 _LT_TAGVAR(module_expsym_cmds, $1)= 5396 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5397 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 5398 _LT_TAGVAR(no_undefined_flag, $1)= 5399 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5400 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5401 5402 # Source file extension for C++ test sources. 5403 ac_ext=cpp 5404 5405 # Object file extension for compiled C++ test sources. 5406 objext=o 5407 _LT_TAGVAR(objext, $1)=$objext 5408 5409 # No sense in running all these tests if we already determined that 5410 # the CXX compiler isn't working. Some variables (like enable_shared) 5411 # are currently assumed to apply to all compilers on this platform, 5412 # and will be corrupted by setting them based on a non-working compiler. 5413 if test "$_lt_caught_CXX_error" != yes; then 5414 # Code to be used in simple compile tests 5415 lt_simple_compile_test_code="int some_variable = 0;" 5416 5417 # Code to be used in simple link tests 5418 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 5419 5420 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 5421 _LT_TAG_COMPILER 5422 5423 # save warnings/boilerplate of simple test code 5424 _LT_COMPILER_BOILERPLATE 5425 _LT_LINKER_BOILERPLATE 5426 5427 # Allow CC to be a program name with arguments. 5428 lt_save_CC=$CC 5429 lt_save_LD=$LD 5430 lt_save_GCC=$GCC 5431 GCC=$GXX 5432 lt_save_with_gnu_ld=$with_gnu_ld 5433 lt_save_path_LD=$lt_cv_path_LD 5434 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 5435 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 5436 else 5437 $as_unset lt_cv_prog_gnu_ld 5438 fi 5439 if test -n "${lt_cv_path_LDCXX+set}"; then 5440 lt_cv_path_LD=$lt_cv_path_LDCXX 5441 else 5442 $as_unset lt_cv_path_LD 5443 fi 5444 test -z "${LDCXX+set}" || LD=$LDCXX 5445 CC=${CXX-"c++"} 5446 compiler=$CC 5447 _LT_TAGVAR(compiler, $1)=$CC 5448 _LT_CC_BASENAME([$compiler]) 5449 5450 if test -n "$compiler"; then 5451 # We don't want -fno-exception when compiling C++ code, so set the 5452 # no_builtin_flag separately 5453 if test "$GXX" = yes; then 5454 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5455 else 5456 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5457 fi 5458 5459 if test "$GXX" = yes; then 5460 # Set up default GNU C++ configuration 5461 5462 LT_PATH_LD 5463 5464 # Check if GNU C++ uses GNU ld as the underlying linker, since the 5465 # archiving commands below assume that GNU ld is being used. 5466 if test "$with_gnu_ld" = yes; then 5467 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5468 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5469 5470 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5471 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5472 5473 # If archive_cmds runs LD, not CC, wlarc should be empty 5474 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 5475 # investigate it a little bit more. (MM) 5476 wlarc='${wl}' 5477 5478 # ancient GNU ld didn't support --whole-archive et. al. 5479 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 5480 $GREP 'no-whole-archive' > /dev/null; then 5481 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5482 else 5483 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5484 fi 5485 else 5486 with_gnu_ld=no 5487 wlarc= 5488 5489 # A generic and very simple default shared library creation 5490 # command for GNU C++ for the case where it uses the native 5491 # linker, instead of GNU ld. If possible, this setting should 5492 # overridden to take advantage of the native linker features on 5493 # the platform it is being used on. 5494 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 5495 fi 5496 5497 # Commands to make compiler produce verbose output that lists 5498 # what "hidden" libraries, object files and flags are used when 5499 # linking a shared library. 5500 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 5501 5502 else 5503 GXX=no 5504 with_gnu_ld=no 5505 wlarc= 5506 fi 5507 5508 # PORTME: fill in a description of your system's C++ link characteristics 5509 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5510 _LT_TAGVAR(ld_shlibs, $1)=yes 5511 case $host_os in 5512 aix3*) 5513 # FIXME: insert proper C++ library support 5514 _LT_TAGVAR(ld_shlibs, $1)=no 5515 ;; 5516 aix[[4-9]]*) 5517 if test "$host_cpu" = ia64; then 5518 # On IA64, the linker does run time linking by default, so we don't 5519 # have to do anything special. 5520 aix_use_runtimelinking=no 5521 exp_sym_flag='-Bexport' 5522 no_entry_flag="" 5523 else 5524 aix_use_runtimelinking=no 5525 5526 # Test if we are trying to use run time linking or normal 5527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5528 # need to do runtime linking. 5529 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5530 for ld_flag in $LDFLAGS; do 5531 case $ld_flag in 5532 *-brtl*) 5533 aix_use_runtimelinking=yes 5534 break 5535 ;; 5536 esac 5537 done 5538 ;; 5539 esac 5540 5541 exp_sym_flag='-bexport' 5542 no_entry_flag='-bnoentry' 5543 fi 5544 5545 # When large executables or shared objects are built, AIX ld can 5546 # have problems creating the table of contents. If linking a library 5547 # or program results in "error TOC overflow" add -mminimal-toc to 5548 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5549 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5550 5551 _LT_TAGVAR(archive_cmds, $1)='' 5552 _LT_TAGVAR(hardcode_direct, $1)=yes 5553 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5554 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5555 _LT_TAGVAR(link_all_deplibs, $1)=yes 5556 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5557 5558 if test "$GXX" = yes; then 5559 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5560 # We only want to do this on AIX 4.2 and lower, the check 5561 # below for broken collect2 doesn't work under 4.3+ 5562 collect2name=`${CC} -print-prog-name=collect2` 5563 if test -f "$collect2name" && 5564 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5565 then 5566 # We have reworked collect2 5567 : 5568 else 5569 # We have old collect2 5570 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5571 # It fails to find uninstalled libraries when the uninstalled 5572 # path is not listed in the libpath. Setting hardcode_minus_L 5573 # to unsupported forces relinking 5574 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5575 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5576 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5577 fi 5578 esac 5579 shared_flag='-shared' 5580 if test "$aix_use_runtimelinking" = yes; then 5581 shared_flag="$shared_flag "'${wl}-G' 5582 fi 5583 else 5584 # not using gcc 5585 if test "$host_cpu" = ia64; then 5586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5587 # chokes on -Wl,-G. The following line is correct: 5588 shared_flag='-G' 5589 else 5590 if test "$aix_use_runtimelinking" = yes; then 5591 shared_flag='${wl}-G' 5592 else 5593 shared_flag='${wl}-bM:SRE' 5594 fi 5595 fi 5596 fi 5597 5598 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 5599 # It seems that -bexpall does not export symbols beginning with 5600 # underscore (_), so it is better to generate a list of symbols to 5601 # export. 5602 _LT_TAGVAR(always_export_symbols, $1)=yes 5603 if test "$aix_use_runtimelinking" = yes; then 5604 # Warning - without using the other runtime loading flags (-brtl), 5605 # -berok will link without error, but may produce a broken library. 5606 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5607 # Determine the default libpath from the value encoded in an empty 5608 # executable. 5609 _LT_SYS_MODULE_PATH_AIX 5610 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5611 5612 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5613 else 5614 if test "$host_cpu" = ia64; then 5615 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5616 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5617 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 5618 else 5619 # Determine the default libpath from the value encoded in an 5620 # empty executable. 5621 _LT_SYS_MODULE_PATH_AIX 5622 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5623 # Warning - without using the other run time loading flags, 5624 # -berok will link without error, but may produce a broken library. 5625 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5626 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5627 # Exported symbols can be pulled into shared objects from archives 5628 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5629 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5630 # This is similar to how AIX traditionally builds its shared 5631 # libraries. 5632 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5633 fi 5634 fi 5635 ;; 5636 5637 beos*) 5638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5639 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5641 # support --undefined. This deserves some investigation. FIXME 5642 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5643 else 5644 _LT_TAGVAR(ld_shlibs, $1)=no 5645 fi 5646 ;; 5647 5648 chorus*) 5649 case $cc_basename in 5650 *) 5651 # FIXME: insert proper C++ library support 5652 _LT_TAGVAR(ld_shlibs, $1)=no 5653 ;; 5654 esac 5655 ;; 5656 5657 cygwin* | mingw* | pw32* | cegcc*) 5658 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5659 # as there is no search path for DLLs. 5660 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5661 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5662 _LT_TAGVAR(always_export_symbols, $1)=no 5663 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5664 5665 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5666 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5667 # If the export-symbols file already is a .def file (1st line 5668 # is EXPORTS), use it as is; otherwise, prepend... 5669 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5670 cp $export_symbols $output_objdir/$soname.def; 5671 else 5672 echo EXPORTS > $output_objdir/$soname.def; 5673 cat $export_symbols >> $output_objdir/$soname.def; 5674 fi~ 5675 $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' 5676 else 5677 _LT_TAGVAR(ld_shlibs, $1)=no 5678 fi 5679 ;; 5680 darwin* | rhapsody*) 5681 _LT_DARWIN_LINKER_FEATURES($1) 5682 ;; 5683 5684 dgux*) 5685 case $cc_basename in 5686 ec++*) 5687 # FIXME: insert proper C++ library support 5688 _LT_TAGVAR(ld_shlibs, $1)=no 5689 ;; 5690 ghcx*) 5691 # Green Hills C++ Compiler 5692 # FIXME: insert proper C++ library support 5693 _LT_TAGVAR(ld_shlibs, $1)=no 5694 ;; 5695 *) 5696 # FIXME: insert proper C++ library support 5697 _LT_TAGVAR(ld_shlibs, $1)=no 5698 ;; 5699 esac 5700 ;; 5701 5702 freebsd[[12]]*) 5703 # C++ shared libraries reported to be fairly broken before 5704 # switch to ELF 5705 _LT_TAGVAR(ld_shlibs, $1)=no 5706 ;; 5707 5708 freebsd-elf*) 5709 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5710 ;; 5711 5712 freebsd* | dragonfly*) 5713 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 5714 # conventions 5715 _LT_TAGVAR(ld_shlibs, $1)=yes 5716 ;; 5717 5718 gnu*) 5719 ;; 5720 5721 hpux9*) 5722 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5723 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5724 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5725 _LT_TAGVAR(hardcode_direct, $1)=yes 5726 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 5727 # but as the default 5728 # location of the library. 5729 5730 case $cc_basename in 5731 CC*) 5732 # FIXME: insert proper C++ library support 5733 _LT_TAGVAR(ld_shlibs, $1)=no 5734 ;; 5735 aCC*) 5736 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5737 # Commands to make compiler produce verbose output that lists 5738 # what "hidden" libraries, object files and flags are used when 5739 # linking a shared library. 5740 # 5741 # There doesn't appear to be a way to prevent this compiler from 5742 # explicitly linking system object files so we need to strip them 5743 # from the output so that they don't get included in the library 5744 # dependencies. 5745 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; $ECHO "X$list" | $Xsed' 5746 ;; 5747 *) 5748 if test "$GXX" = yes; then 5749 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5750 else 5751 # FIXME: insert proper C++ library support 5752 _LT_TAGVAR(ld_shlibs, $1)=no 5753 fi 5754 ;; 5755 esac 5756 ;; 5757 5758 hpux10*|hpux11*) 5759 if test $with_gnu_ld = no; then 5760 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5761 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5762 5763 case $host_cpu in 5764 hppa*64*|ia64*) 5765 ;; 5766 *) 5767 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5768 ;; 5769 esac 5770 fi 5771 case $host_cpu in 5772 hppa*64*|ia64*) 5773 _LT_TAGVAR(hardcode_direct, $1)=no 5774 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5775 ;; 5776 *) 5777 _LT_TAGVAR(hardcode_direct, $1)=yes 5778 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5779 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 5780 # but as the default 5781 # location of the library. 5782 ;; 5783 esac 5784 5785 case $cc_basename in 5786 CC*) 5787 # FIXME: insert proper C++ library support 5788 _LT_TAGVAR(ld_shlibs, $1)=no 5789 ;; 5790 aCC*) 5791 case $host_cpu in 5792 hppa*64*) 5793 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5794 ;; 5795 ia64*) 5796 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5797 ;; 5798 *) 5799 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5800 ;; 5801 esac 5802 # Commands to make compiler produce verbose output that lists 5803 # what "hidden" libraries, object files and flags are used when 5804 # linking a shared library. 5805 # 5806 # There doesn't appear to be a way to prevent this compiler from 5807 # explicitly linking system object files so we need to strip them 5808 # from the output so that they don't get included in the library 5809 # dependencies. 5810 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 5811 ;; 5812 *) 5813 if test "$GXX" = yes; then 5814 if test $with_gnu_ld = no; then 5815 case $host_cpu in 5816 hppa*64*) 5817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5818 ;; 5819 ia64*) 5820 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5821 ;; 5822 *) 5823 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5824 ;; 5825 esac 5826 fi 5827 else 5828 # FIXME: insert proper C++ library support 5829 _LT_TAGVAR(ld_shlibs, $1)=no 5830 fi 5831 ;; 5832 esac 5833 ;; 5834 5835 interix[[3-9]]*) 5836 _LT_TAGVAR(hardcode_direct, $1)=no 5837 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5838 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5839 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5840 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5841 # Instead, shared libraries are loaded at an image base (0x10000000 by 5842 # default) and relocated if they conflict, which is a slow very memory 5843 # consuming and fragmenting process. To avoid this, we pick a random, 5844 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5845 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5846 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5847 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 5848 ;; 5849 irix5* | irix6*) 5850 case $cc_basename in 5851 CC*) 5852 # SGI C++ 5853 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 5854 5855 # Archives containing C++ object files must be created using 5856 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 5857 # necessary to make sure instantiated templates are included 5858 # in the archive. 5859 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 5860 ;; 5861 *) 5862 if test "$GXX" = yes; then 5863 if test "$with_gnu_ld" = no; then 5864 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5865 else 5866 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 5867 fi 5868 fi 5869 _LT_TAGVAR(link_all_deplibs, $1)=yes 5870 ;; 5871 esac 5872 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5873 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5874 _LT_TAGVAR(inherit_rpath, $1)=yes 5875 ;; 5876 5877 linux* | k*bsd*-gnu) 5878 case $cc_basename in 5879 KCC*) 5880 # Kuck and Associates, Inc. (KAI) C++ Compiler 5881 5882 # KCC will only create a shared library if the output file 5883 # ends with ".so" (or ".sl" for HP-UX), so rename the library 5884 # to its proper name (with version) after linking. 5885 _LT_TAGVAR(archive_cmds, $1)='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' 5886 _LT_TAGVAR(archive_expsym_cmds, $1)='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' 5887 # Commands to make compiler produce verbose output that lists 5888 # what "hidden" libraries, object files and flags are used when 5889 # linking a shared library. 5890 # 5891 # There doesn't appear to be a way to prevent this compiler from 5892 # explicitly linking system object files so we need to strip them 5893 # from the output so that they don't get included in the library 5894 # dependencies. 5895 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; $ECHO "X$list" | $Xsed' 5896 5897 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5898 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5899 5900 # Archives containing C++ object files must be created using 5901 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 5902 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 5903 ;; 5904 icpc* | ecpc* ) 5905 # Intel C++ 5906 with_gnu_ld=yes 5907 # version 8.0 and above of icpc choke on multiply defined symbols 5908 # if we add $predep_objects and $postdep_objects, however 7.1 and 5909 # earlier do not add the objects themselves. 5910 case `$CC -V 2>&1` in 5911 *"Version 7."*) 5912 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5913 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5914 ;; 5915 *) # Version 8.0 or newer 5916 tmp_idyn= 5917 case $host_cpu in 5918 ia64*) tmp_idyn=' -i_dynamic';; 5919 esac 5920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5921 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5922 ;; 5923 esac 5924 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5926 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5927 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 5928 ;; 5929 pgCC* | pgcpp*) 5930 # Portland Group C++ compiler 5931 case `$CC -V` in 5932 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*) 5933 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 5934 rm -rf $tpldir~ 5935 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 5936 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 5937 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 5938 rm -rf $tpldir~ 5939 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 5940 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 5941 $RANLIB $oldlib' 5942 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 5943 rm -rf $tpldir~ 5944 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 5945 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 5946 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 5947 rm -rf $tpldir~ 5948 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 5949 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 5950 ;; 5951 *) # Version 6 will use weak symbols 5952 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 5953 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 5954 ;; 5955 esac 5956 5957 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5958 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5959 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 5960 ;; 5961 cxx*) 5962 # Compaq C++ 5963 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5964 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 5965 5966 runpath_var=LD_RUN_PATH 5967 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5968 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5969 5970 # Commands to make compiler produce verbose output that lists 5971 # what "hidden" libraries, object files and flags are used when 5972 # linking a shared library. 5973 # 5974 # There doesn't appear to be a way to prevent this compiler from 5975 # explicitly linking system object files so we need to strip them 5976 # from the output so that they don't get included in the library 5977 # dependencies. 5978 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 5979 ;; 5980 xl*) 5981 # IBM XL 8.0 on PPC, with GNU ld 5982 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5983 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5984 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5985 if test "x$supports_anon_versioning" = xyes; then 5986 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5987 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5988 echo "local: *; };" >> $output_objdir/$libname.ver~ 5989 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5990 fi 5991 ;; 5992 *) 5993 case `$CC -V 2>&1 | sed 5q` in 5994 *Sun\ C*) 5995 # Sun C++ 5.9 5996 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 5997 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 5998 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 5999 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6000 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 6001 _LT_TAGVAR(compiler_needs_object, $1)=yes 6002 6003 # Not sure whether something based on 6004 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 6005 # would be better. 6006 output_verbose_link_cmd='echo' 6007 6008 # Archives containing C++ object files must be created using 6009 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6010 # necessary to make sure instantiated templates are included 6011 # in the archive. 6012 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6013 ;; 6014 esac 6015 ;; 6016 esac 6017 ;; 6018 6019 lynxos*) 6020 # FIXME: insert proper C++ library support 6021 _LT_TAGVAR(ld_shlibs, $1)=no 6022 ;; 6023 6024 m88k*) 6025 # FIXME: insert proper C++ library support 6026 _LT_TAGVAR(ld_shlibs, $1)=no 6027 ;; 6028 6029 mvs*) 6030 case $cc_basename in 6031 cxx*) 6032 # FIXME: insert proper C++ library support 6033 _LT_TAGVAR(ld_shlibs, $1)=no 6034 ;; 6035 *) 6036 # FIXME: insert proper C++ library support 6037 _LT_TAGVAR(ld_shlibs, $1)=no 6038 ;; 6039 esac 6040 ;; 6041 6042 netbsd*) 6043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6044 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 6045 wlarc= 6046 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6047 _LT_TAGVAR(hardcode_direct, $1)=yes 6048 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6049 fi 6050 # Workaround some broken pre-1.5 toolchains 6051 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 6052 ;; 6053 6054 *nto* | *qnx*) 6055 _LT_TAGVAR(ld_shlibs, $1)=yes 6056 ;; 6057 6058 openbsd2*) 6059 # C++ shared libraries are fairly broken 6060 _LT_TAGVAR(ld_shlibs, $1)=no 6061 ;; 6062 6063 openbsd*) 6064 if test -f /usr/libexec/ld.so; then 6065 _LT_TAGVAR(hardcode_direct, $1)=yes 6066 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6067 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6068 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6071 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 6072 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6073 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6074 fi 6075 output_verbose_link_cmd=echo 6076 else 6077 _LT_TAGVAR(ld_shlibs, $1)=no 6078 fi 6079 ;; 6080 6081 osf3* | osf4* | osf5*) 6082 case $cc_basename in 6083 KCC*) 6084 # Kuck and Associates, Inc. (KAI) C++ Compiler 6085 6086 # KCC will only create a shared library if the output file 6087 # ends with ".so" (or ".sl" for HP-UX), so rename the library 6088 # to its proper name (with version) after linking. 6089 _LT_TAGVAR(archive_cmds, $1)='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' 6090 6091 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6092 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6093 6094 # Archives containing C++ object files must be created using 6095 # the KAI C++ compiler. 6096 case $host in 6097 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 6098 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 6099 esac 6100 ;; 6101 RCC*) 6102 # Rational C++ 2.4.1 6103 # FIXME: insert proper C++ library support 6104 _LT_TAGVAR(ld_shlibs, $1)=no 6105 ;; 6106 cxx*) 6107 case $host in 6108 osf3*) 6109 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6111 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6112 ;; 6113 *) 6114 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6115 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 6116 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6117 echo "-hidden">> $lib.exp~ 6118 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 6119 $RM $lib.exp' 6120 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6121 ;; 6122 esac 6123 6124 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6125 6126 # Commands to make compiler produce verbose output that lists 6127 # what "hidden" libraries, object files and flags are used when 6128 # linking a shared library. 6129 # 6130 # There doesn't appear to be a way to prevent this compiler from 6131 # explicitly linking system object files so we need to strip them 6132 # from the output so that they don't get included in the library 6133 # dependencies. 6134 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 6135 ;; 6136 *) 6137 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6138 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6139 case $host in 6140 osf3*) 6141 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6142 ;; 6143 *) 6144 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6145 ;; 6146 esac 6147 6148 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6149 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6150 6151 # Commands to make compiler produce verbose output that lists 6152 # what "hidden" libraries, object files and flags are used when 6153 # linking a shared library. 6154 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6155 6156 else 6157 # FIXME: insert proper C++ library support 6158 _LT_TAGVAR(ld_shlibs, $1)=no 6159 fi 6160 ;; 6161 esac 6162 ;; 6163 6164 psos*) 6165 # FIXME: insert proper C++ library support 6166 _LT_TAGVAR(ld_shlibs, $1)=no 6167 ;; 6168 6169 sunos4*) 6170 case $cc_basename in 6171 CC*) 6172 # Sun C++ 4.x 6173 # FIXME: insert proper C++ library support 6174 _LT_TAGVAR(ld_shlibs, $1)=no 6175 ;; 6176 lcc*) 6177 # Lucid 6178 # FIXME: insert proper C++ library support 6179 _LT_TAGVAR(ld_shlibs, $1)=no 6180 ;; 6181 *) 6182 # FIXME: insert proper C++ library support 6183 _LT_TAGVAR(ld_shlibs, $1)=no 6184 ;; 6185 esac 6186 ;; 6187 6188 solaris*) 6189 case $cc_basename in 6190 CC*) 6191 # Sun C++ 4.2, 5.x and Centerline C++ 6192 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6193 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6194 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6195 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6196 $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' 6197 6198 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6199 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6200 case $host_os in 6201 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6202 *) 6203 # The compiler driver will combine and reorder linker options, 6204 # but understands `-z linker_flag'. 6205 # Supported since Solaris 2.6 (maybe 2.5.1?) 6206 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6207 ;; 6208 esac 6209 _LT_TAGVAR(link_all_deplibs, $1)=yes 6210 6211 output_verbose_link_cmd='echo' 6212 6213 # Archives containing C++ object files must be created using 6214 # "CC -xar", where "CC" is the Sun C++ compiler. This is 6215 # necessary to make sure instantiated templates are included 6216 # in the archive. 6217 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6218 ;; 6219 gcx*) 6220 # Green Hills C++ Compiler 6221 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6222 6223 # The C++ compiler must be used to create the archive. 6224 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 6225 ;; 6226 *) 6227 # GNU C++ compiler with Solaris linker 6228 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6229 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 6230 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6231 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6232 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6233 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6234 6235 # Commands to make compiler produce verbose output that lists 6236 # what "hidden" libraries, object files and flags are used when 6237 # linking a shared library. 6238 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6239 else 6240 # g++ 2.7 appears to require `-G' NOT `-shared' on this 6241 # platform. 6242 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6243 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6244 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6245 6246 # Commands to make compiler produce verbose output that lists 6247 # what "hidden" libraries, object files and flags are used when 6248 # linking a shared library. 6249 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 6250 fi 6251 6252 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 6253 case $host_os in 6254 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6255 *) 6256 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6257 ;; 6258 esac 6259 fi 6260 ;; 6261 esac 6262 ;; 6263 6264 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6265 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6266 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6267 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6268 runpath_var='LD_RUN_PATH' 6269 6270 case $cc_basename in 6271 CC*) 6272 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6273 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6274 ;; 6275 *) 6276 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6277 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6278 ;; 6279 esac 6280 ;; 6281 6282 sysv5* | sco3.2v5* | sco5v6*) 6283 # Note: We can NOT use -z defs as we might desire, because we do not 6284 # link with -lc, and that would cause any symbols used from libc to 6285 # always be unresolved, which means just about no library would 6286 # ever link correctly. If we're not using GNU ld we use -z text 6287 # though, which does catch some bad symbols but isn't as heavy-handed 6288 # as -z defs. 6289 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6290 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6291 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6292 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6293 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 6294 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6295 _LT_TAGVAR(link_all_deplibs, $1)=yes 6296 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6297 runpath_var='LD_RUN_PATH' 6298 6299 case $cc_basename in 6300 CC*) 6301 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6302 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6303 ;; 6304 *) 6305 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6306 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6307 ;; 6308 esac 6309 ;; 6310 6311 tandem*) 6312 case $cc_basename in 6313 NCC*) 6314 # NonStop-UX NCC 3.20 6315 # FIXME: insert proper C++ library support 6316 _LT_TAGVAR(ld_shlibs, $1)=no 6317 ;; 6318 *) 6319 # FIXME: insert proper C++ library support 6320 _LT_TAGVAR(ld_shlibs, $1)=no 6321 ;; 6322 esac 6323 ;; 6324 6325 vxworks*) 6326 # FIXME: insert proper C++ library support 6327 _LT_TAGVAR(ld_shlibs, $1)=no 6328 ;; 6329 6330 *) 6331 # FIXME: insert proper C++ library support 6332 _LT_TAGVAR(ld_shlibs, $1)=no 6333 ;; 6334 esac 6335 6336 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6337 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6338 6339 _LT_TAGVAR(GCC, $1)="$GXX" 6340 _LT_TAGVAR(LD, $1)="$LD" 6341 6342 ## CAVEAT EMPTOR: 6343 ## There is no encapsulation within the following macros, do not change 6344 ## the running order or otherwise move them around unless you know exactly 6345 ## what you are doing... 6346 _LT_SYS_HIDDEN_LIBDEPS($1) 6347 _LT_COMPILER_PIC($1) 6348 _LT_COMPILER_C_O($1) 6349 _LT_COMPILER_FILE_LOCKS($1) 6350 _LT_LINKER_SHLIBS($1) 6351 _LT_SYS_DYNAMIC_LINKER($1) 6352 _LT_LINKER_HARDCODE_LIBPATH($1) 6353 6354 _LT_CONFIG($1) 6355 fi # test -n "$compiler" 6356 6357 CC=$lt_save_CC 6358 LDCXX=$LD 6359 LD=$lt_save_LD 6360 GCC=$lt_save_GCC 6361 with_gnu_ld=$lt_save_with_gnu_ld 6362 lt_cv_path_LDCXX=$lt_cv_path_LD 6363 lt_cv_path_LD=$lt_save_path_LD 6364 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 6365 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 6366 fi # test "$_lt_caught_CXX_error" != yes 6367 6368 AC_LANG_POP 6369 ])# _LT_LANG_CXX_CONFIG 6370 6371 6372 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 6549 6373 # --------------------------------- 6550 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 6551 6552 6553 # old names 6554 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 6555 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 6556 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 6557 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 6558 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 6559 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 6560 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 6561 6562 # This is just to silence aclocal about the macro not being used 6563 ifelse([AC_DISABLE_FAST_INSTALL]) 6564 6565 AC_DEFUN([LT_AC_PROG_GCJ], 6566 [AC_CHECK_TOOL(GCJ, gcj, no) 6567 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 6568 AC_SUBST(GCJFLAGS) 6374 # Figure out "hidden" library dependencies from verbose 6375 # compiler output when linking a shared library. 6376 # Parse the compiler output and extract the necessary 6377 # objects, libraries and library flags. 6378 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 6379 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6380 # Dependencies to place before and after the object being linked: 6381 _LT_TAGVAR(predep_objects, $1)= 6382 _LT_TAGVAR(postdep_objects, $1)= 6383 _LT_TAGVAR(predeps, $1)= 6384 _LT_TAGVAR(postdeps, $1)= 6385 _LT_TAGVAR(compiler_lib_search_path, $1)= 6386 6387 dnl we can't use the lt_simple_compile_test_code here, 6388 dnl because it contains code intended for an executable, 6389 dnl not a library. It's possible we should let each 6390 dnl tag define a new lt_????_link_test_code variable, 6391 dnl but it's only used here... 6392 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 6393 int a; 6394 void foo (void) { a = 0; } 6395 _LT_EOF 6396 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 6397 class Foo 6398 { 6399 public: 6400 Foo (void) { a = 0; } 6401 private: 6402 int a; 6403 }; 6404 _LT_EOF 6405 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 6406 subroutine foo 6407 implicit none 6408 integer*4 a 6409 a=0 6410 return 6411 end 6412 _LT_EOF 6413 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 6414 subroutine foo 6415 implicit none 6416 integer a 6417 a=0 6418 return 6419 end 6420 _LT_EOF 6421 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 6422 public class foo { 6423 private int a; 6424 public void bar (void) { 6425 a = 0; 6426 } 6427 }; 6428 _LT_EOF 6569 6429 ]) 6570 6571 AC_DEFUN([LT_AC_PROG_RC], 6572 [AC_CHECK_TOOL(RC, windres, no) 6430 dnl Parse the compiler output and extract the necessary 6431 dnl objects, libraries and library flags. 6432 if AC_TRY_EVAL(ac_compile); then 6433 # Parse the compiler output and extract the necessary 6434 # objects, libraries and library flags. 6435 6436 # Sentinel used to keep track of whether or not we are before 6437 # the conftest object file. 6438 pre_test_object_deps_done=no 6439 6440 for p in `eval "$output_verbose_link_cmd"`; do 6441 case $p in 6442 6443 -L* | -R* | -l*) 6444 # Some compilers place space between "-{L,R}" and the path. 6445 # Remove the space. 6446 if test $p = "-L" || 6447 test $p = "-R"; then 6448 prev=$p 6449 continue 6450 else 6451 prev= 6452 fi 6453 6454 if test "$pre_test_object_deps_done" = no; then 6455 case $p in 6456 -L* | -R*) 6457 # Internal compiler library paths should come after those 6458 # provided the user. The postdeps already come after the 6459 # user supplied libs so there is no need to process them. 6460 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 6461 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 6462 else 6463 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 6464 fi 6465 ;; 6466 # The "-l" case would never come before the object being 6467 # linked, so don't bother handling this case. 6468 esac 6469 else 6470 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 6471 _LT_TAGVAR(postdeps, $1)="${prev}${p}" 6472 else 6473 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 6474 fi 6475 fi 6476 ;; 6477 6478 *.$objext) 6479 # This assumes that the test object file only shows up 6480 # once in the compiler output. 6481 if test "$p" = "conftest.$objext"; then 6482 pre_test_object_deps_done=yes 6483 continue 6484 fi 6485 6486 if test "$pre_test_object_deps_done" = no; then 6487 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 6488 _LT_TAGVAR(predep_objects, $1)="$p" 6489 else 6490 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 6491 fi 6492 else 6493 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 6494 _LT_TAGVAR(postdep_objects, $1)="$p" 6495 else 6496 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 6497 fi 6498 fi 6499 ;; 6500 6501 *) ;; # Ignore the rest. 6502 6503 esac 6504 done 6505 6506 # Clean up. 6507 rm -f a.out a.exe 6508 else 6509 echo "libtool.m4: error: problem compiling $1 test program" 6510 fi 6511 6512 $RM -f confest.$objext 6513 6514 # PORTME: override above test on systems where it is broken 6515 m4_if([$1], [CXX], 6516 [case $host_os in 6517 interix[[3-9]]*) 6518 # Interix 3.5 installs completely hosed .la files for C++, so rather than 6519 # hack all around it, let's just trust "g++" to DTRT. 6520 _LT_TAGVAR(predep_objects,$1)= 6521 _LT_TAGVAR(postdep_objects,$1)= 6522 _LT_TAGVAR(postdeps,$1)= 6523 ;; 6524 6525 linux*) 6526 case `$CC -V 2>&1 | sed 5q` in 6527 *Sun\ C*) 6528 # Sun C++ 5.9 6529 6530 # The more standards-conforming stlport4 library is 6531 # incompatible with the Cstd library. Avoid specifying 6532 # it if it's in CXXFLAGS. Ignore libCrun as 6533 # -library=stlport4 depends on it. 6534 case " $CXX $CXXFLAGS " in 6535 *" -library=stlport4 "*) 6536 solaris_use_stlport4=yes 6537 ;; 6538 esac 6539 6540 if test "$solaris_use_stlport4" != yes; then 6541 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 6542 fi 6543 ;; 6544 esac 6545 ;; 6546 6547 solaris*) 6548 case $cc_basename in 6549 CC*) 6550 # The more standards-conforming stlport4 library is 6551 # incompatible with the Cstd library. Avoid specifying 6552 # it if it's in CXXFLAGS. Ignore libCrun as 6553 # -library=stlport4 depends on it. 6554 case " $CXX $CXXFLAGS " in 6555 *" -library=stlport4 "*) 6556 solaris_use_stlport4=yes 6557 ;; 6558 esac 6559 6560 # Adding this requires a known-good setup of shared libraries for 6561 # Sun compiler versions before 5.6, else PIC objects from an old 6562 # archive will be linked into the output, leading to subtle bugs. 6563 if test "$solaris_use_stlport4" != yes; then 6564 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 6565 fi 6566 ;; 6567 esac 6568 ;; 6569 esac 6573 6570 ]) 6574 6571 6575 6576 # Cheap backport of AS_EXECUTABLE_P and required macros 6577 # from Autoconf 2.59; we should not use $as_executable_p directly. 6578 6579 # _AS_TEST_PREPARE 6580 # ---------------- 6581 m4_ifndef([_AS_TEST_PREPARE], 6582 [m4_defun([_AS_TEST_PREPARE], 6583 [if test -x / >/dev/null 2>&1; then 6584 as_executable_p='test -x' 6585 else 6586 as_executable_p='test -f' 6572 case " $_LT_TAGVAR(postdeps, $1) " in 6573 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 6574 esac 6575 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 6576 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 6577 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 6587 6578 fi 6588 ])])# _AS_TEST_PREPARE 6589 6590 # AS_EXECUTABLE_P 6591 # --------------- 6592 # Check whether a file is executable. 6593 m4_ifndef([AS_EXECUTABLE_P], 6594 [m4_defun([AS_EXECUTABLE_P], 6595 [AS_REQUIRE([_AS_TEST_PREPARE])dnl 6596 $as_executable_p $1[]dnl 6597 ])])# AS_EXECUTABLE_P 6598 6579 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], 6580 [The directories searched by this compiler when creating a shared library]) 6581 _LT_TAGDECL([], [predep_objects], [1], 6582 [Dependencies to place before and after the objects being linked to 6583 create a shared library]) 6584 _LT_TAGDECL([], [postdep_objects], [1]) 6585 _LT_TAGDECL([], [predeps], [1]) 6586 _LT_TAGDECL([], [postdeps], [1]) 6587 _LT_TAGDECL([], [compiler_lib_search_path], [1], 6588 [The library search path used internally by the compiler when linking 6589 a shared library]) 6590 ])# _LT_SYS_HIDDEN_LIBDEPS 6591 6592 6593 # _LT_PROG_F77 6594 # ------------ 6595 # Since AC_PROG_F77 is broken, in that it returns the empty string 6596 # if there is no fortran compiler, we have our own version here. 6597 m4_defun([_LT_PROG_F77], 6598 [ 6599 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes]) 6600 AC_PROG_F77 6601 if test -z "$F77" || test "X$F77" = "Xno"; then 6602 _lt_disable_F77=yes 6603 fi 6604 popdef([AC_MSG_ERROR]) 6605 ])# _LT_PROG_F77 6606 6607 dnl aclocal-1.4 backwards compatibility: 6608 dnl AC_DEFUN([_LT_PROG_F77], []) 6609 6610 6611 # _LT_LANG_F77_CONFIG([TAG]) 6612 # -------------------------- 6613 # Ensure that the configuration variables for a Fortran 77 compiler are 6614 # suitably defined. These variables are subsequently used by _LT_CONFIG 6615 # to write the compiler configuration to `libtool'. 6616 m4_defun([_LT_LANG_F77_CONFIG], 6617 [AC_REQUIRE([_LT_PROG_F77])dnl 6618 AC_LANG_PUSH(Fortran 77) 6619 6620 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6621 _LT_TAGVAR(allow_undefined_flag, $1)= 6622 _LT_TAGVAR(always_export_symbols, $1)=no 6623 _LT_TAGVAR(archive_expsym_cmds, $1)= 6624 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6625 _LT_TAGVAR(hardcode_direct, $1)=no 6626 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6627 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6628 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6629 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6630 _LT_TAGVAR(hardcode_minus_L, $1)=no 6631 _LT_TAGVAR(hardcode_automatic, $1)=no 6632 _LT_TAGVAR(inherit_rpath, $1)=no 6633 _LT_TAGVAR(module_cmds, $1)= 6634 _LT_TAGVAR(module_expsym_cmds, $1)= 6635 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6636 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6637 _LT_TAGVAR(no_undefined_flag, $1)= 6638 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6639 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6640 6641 # Source file extension for f77 test sources. 6642 ac_ext=f 6643 6644 # Object file extension for compiled f77 test sources. 6645 objext=o 6646 _LT_TAGVAR(objext, $1)=$objext 6647 6648 # No sense in running all these tests if we already determined that 6649 # the F77 compiler isn't working. Some variables (like enable_shared) 6650 # are currently assumed to apply to all compilers on this platform, 6651 # and will be corrupted by setting them based on a non-working compiler. 6652 if test "$_lt_disable_F77" != yes; then 6653 # Code to be used in simple compile tests 6654 lt_simple_compile_test_code="\ 6655 subroutine t 6656 return 6657 end 6658 " 6659 6660 # Code to be used in simple link tests 6661 lt_simple_link_test_code="\ 6662 program t 6663 end 6664 " 6665 6666 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6667 _LT_TAG_COMPILER 6668 6669 # save warnings/boilerplate of simple test code 6670 _LT_COMPILER_BOILERPLATE 6671 _LT_LINKER_BOILERPLATE 6672 6673 # Allow CC to be a program name with arguments. 6674 lt_save_CC="$CC" 6675 lt_save_GCC=$GCC 6676 CC=${F77-"f77"} 6677 compiler=$CC 6678 _LT_TAGVAR(compiler, $1)=$CC 6679 _LT_CC_BASENAME([$compiler]) 6680 GCC=$G77 6681 if test -n "$compiler"; then 6682 AC_MSG_CHECKING([if libtool supports shared libraries]) 6683 AC_MSG_RESULT([$can_build_shared]) 6684 6685 AC_MSG_CHECKING([whether to build shared libraries]) 6686 test "$can_build_shared" = "no" && enable_shared=no 6687 6688 # On AIX, shared libraries and static libraries use the same namespace, and 6689 # are all built from PIC. 6690 case $host_os in 6691 aix3*) 6692 test "$enable_shared" = yes && enable_static=no 6693 if test -n "$RANLIB"; then 6694 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6695 postinstall_cmds='$RANLIB $lib' 6696 fi 6697 ;; 6698 aix[[4-9]]*) 6699 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6700 test "$enable_shared" = yes && enable_static=no 6701 fi 6702 ;; 6703 esac 6704 AC_MSG_RESULT([$enable_shared]) 6705 6706 AC_MSG_CHECKING([whether to build static libraries]) 6707 # Make sure either enable_shared or enable_static is yes. 6708 test "$enable_shared" = yes || enable_static=yes 6709 AC_MSG_RESULT([$enable_static]) 6710 6711 _LT_TAGVAR(GCC, $1)="$G77" 6712 _LT_TAGVAR(LD, $1)="$LD" 6713 6714 ## CAVEAT EMPTOR: 6715 ## There is no encapsulation within the following macros, do not change 6716 ## the running order or otherwise move them around unless you know exactly 6717 ## what you are doing... 6718 _LT_COMPILER_PIC($1) 6719 _LT_COMPILER_C_O($1) 6720 _LT_COMPILER_FILE_LOCKS($1) 6721 _LT_LINKER_SHLIBS($1) 6722 _LT_SYS_DYNAMIC_LINKER($1) 6723 _LT_LINKER_HARDCODE_LIBPATH($1) 6724 6725 _LT_CONFIG($1) 6726 fi # test -n "$compiler" 6727 6728 GCC=$lt_save_GCC 6729 CC="$lt_save_CC" 6730 fi # test "$_lt_disable_F77" != yes 6731 6732 AC_LANG_POP 6733 ])# _LT_LANG_F77_CONFIG 6734 6735 6736 # _LT_PROG_FC 6737 # ----------- 6738 # Since AC_PROG_FC is broken, in that it returns the empty string 6739 # if there is no fortran compiler, we have our own version here. 6740 m4_defun([_LT_PROG_FC], 6741 [ 6742 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes]) 6743 AC_PROG_FC 6744 if test -z "$FC" || test "X$FC" = "Xno"; then 6745 _lt_disable_FC=yes 6746 fi 6747 popdef([AC_MSG_ERROR]) 6748 ])# _LT_PROG_FC 6749 6750 dnl aclocal-1.4 backwards compatibility: 6751 dnl AC_DEFUN([_LT_PROG_FC], []) 6752 6753 6754 # _LT_LANG_FC_CONFIG([TAG]) 6755 # ------------------------- 6756 # Ensure that the configuration variables for a Fortran compiler are 6757 # suitably defined. These variables are subsequently used by _LT_CONFIG 6758 # to write the compiler configuration to `libtool'. 6759 m4_defun([_LT_LANG_FC_CONFIG], 6760 [AC_REQUIRE([_LT_PROG_FC])dnl 6761 AC_LANG_PUSH(Fortran) 6762 6763 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6764 _LT_TAGVAR(allow_undefined_flag, $1)= 6765 _LT_TAGVAR(always_export_symbols, $1)=no 6766 _LT_TAGVAR(archive_expsym_cmds, $1)= 6767 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6768 _LT_TAGVAR(hardcode_direct, $1)=no 6769 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6770 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6771 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 6772 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6773 _LT_TAGVAR(hardcode_minus_L, $1)=no 6774 _LT_TAGVAR(hardcode_automatic, $1)=no 6775 _LT_TAGVAR(inherit_rpath, $1)=no 6776 _LT_TAGVAR(module_cmds, $1)= 6777 _LT_TAGVAR(module_expsym_cmds, $1)= 6778 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6779 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6780 _LT_TAGVAR(no_undefined_flag, $1)= 6781 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6782 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6783 6784 # Source file extension for fc test sources. 6785 ac_ext=${ac_fc_srcext-f} 6786 6787 # Object file extension for compiled fc test sources. 6788 objext=o 6789 _LT_TAGVAR(objext, $1)=$objext 6790 6791 # No sense in running all these tests if we already determined that 6792 # the FC compiler isn't working. Some variables (like enable_shared) 6793 # are currently assumed to apply to all compilers on this platform, 6794 # and will be corrupted by setting them based on a non-working compiler. 6795 if test "$_lt_disable_FC" != yes; then 6796 # Code to be used in simple compile tests 6797 lt_simple_compile_test_code="\ 6798 subroutine t 6799 return 6800 end 6801 " 6802 6803 # Code to be used in simple link tests 6804 lt_simple_link_test_code="\ 6805 program t 6806 end 6807 " 6808 6809 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6810 _LT_TAG_COMPILER 6811 6812 # save warnings/boilerplate of simple test code 6813 _LT_COMPILER_BOILERPLATE 6814 _LT_LINKER_BOILERPLATE 6815 6816 # Allow CC to be a program name with arguments. 6817 lt_save_CC="$CC" 6818 lt_save_GCC=$GCC 6819 CC=${FC-"f95"} 6820 compiler=$CC 6821 GCC=$ac_cv_fc_compiler_gnu 6822 6823 _LT_TAGVAR(compiler, $1)=$CC 6824 _LT_CC_BASENAME([$compiler]) 6825 6826 if test -n "$compiler"; then 6827 AC_MSG_CHECKING([if libtool supports shared libraries]) 6828 AC_MSG_RESULT([$can_build_shared]) 6829 6830 AC_MSG_CHECKING([whether to build shared libraries]) 6831 test "$can_build_shared" = "no" && enable_shared=no 6832 6833 # On AIX, shared libraries and static libraries use the same namespace, and 6834 # are all built from PIC. 6835 case $host_os in 6836 aix3*) 6837 test "$enable_shared" = yes && enable_static=no 6838 if test -n "$RANLIB"; then 6839 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6840 postinstall_cmds='$RANLIB $lib' 6841 fi 6842 ;; 6843 aix[[4-9]]*) 6844 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 6845 test "$enable_shared" = yes && enable_static=no 6846 fi 6847 ;; 6848 esac 6849 AC_MSG_RESULT([$enable_shared]) 6850 6851 AC_MSG_CHECKING([whether to build static libraries]) 6852 # Make sure either enable_shared or enable_static is yes. 6853 test "$enable_shared" = yes || enable_static=yes 6854 AC_MSG_RESULT([$enable_static]) 6855 6856 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 6857 _LT_TAGVAR(LD, $1)="$LD" 6858 6859 ## CAVEAT EMPTOR: 6860 ## There is no encapsulation within the following macros, do not change 6861 ## the running order or otherwise move them around unless you know exactly 6862 ## what you are doing... 6863 _LT_SYS_HIDDEN_LIBDEPS($1) 6864 _LT_COMPILER_PIC($1) 6865 _LT_COMPILER_C_O($1) 6866 _LT_COMPILER_FILE_LOCKS($1) 6867 _LT_LINKER_SHLIBS($1) 6868 _LT_SYS_DYNAMIC_LINKER($1) 6869 _LT_LINKER_HARDCODE_LIBPATH($1) 6870 6871 _LT_CONFIG($1) 6872 fi # test -n "$compiler" 6873 6874 GCC=$lt_save_GCC 6875 CC="$lt_save_CC" 6876 fi # test "$_lt_disable_FC" != yes 6877 6878 AC_LANG_POP 6879 ])# _LT_LANG_FC_CONFIG 6880 6881 6882 # _LT_LANG_GCJ_CONFIG([TAG]) 6883 # -------------------------- 6884 # Ensure that the configuration variables for the GNU Java Compiler compiler 6885 # are suitably defined. These variables are subsequently used by _LT_CONFIG 6886 # to write the compiler configuration to `libtool'. 6887 m4_defun([_LT_LANG_GCJ_CONFIG], 6888 [AC_REQUIRE([LT_PROG_GCJ])dnl 6889 AC_LANG_SAVE 6890 6891 # Source file extension for Java test sources. 6892 ac_ext=java 6893 6894 # Object file extension for compiled Java test sources. 6895 objext=o 6896 _LT_TAGVAR(objext, $1)=$objext 6897 6898 # Code to be used in simple compile tests 6899 lt_simple_compile_test_code="class foo {}" 6900 6901 # Code to be used in simple link tests 6902 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 6903 6904 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6905 _LT_TAG_COMPILER 6906 6907 # save warnings/boilerplate of simple test code 6908 _LT_COMPILER_BOILERPLATE 6909 _LT_LINKER_BOILERPLATE 6910 6911 # Allow CC to be a program name with arguments. 6912 lt_save_CC="$CC" 6913 lt_save_GCC=$GCC 6914 GCC=yes 6915 CC=${GCJ-"gcj"} 6916 compiler=$CC 6917 _LT_TAGVAR(compiler, $1)=$CC 6918 _LT_TAGVAR(LD, $1)="$LD" 6919 _LT_CC_BASENAME([$compiler]) 6920 6921 # GCJ did not exist at the time GCC didn't implicitly link libc in. 6922 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6923 6924 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6925 6926 if test -n "$compiler"; then 6927 _LT_COMPILER_NO_RTTI($1) 6928 _LT_COMPILER_PIC($1) 6929 _LT_COMPILER_C_O($1) 6930 _LT_COMPILER_FILE_LOCKS($1) 6931 _LT_LINKER_SHLIBS($1) 6932 _LT_LINKER_HARDCODE_LIBPATH($1) 6933 6934 _LT_CONFIG($1) 6935 fi 6936 6937 AC_LANG_RESTORE 6938 6939 GCC=$lt_save_GCC 6940 CC="$lt_save_CC" 6941 ])# _LT_LANG_GCJ_CONFIG 6942 6943 6944 # _LT_LANG_RC_CONFIG([TAG]) 6945 # ------------------------- 6946 # Ensure that the configuration variables for the Windows resource compiler 6947 # are suitably defined. These variables are subsequently used by _LT_CONFIG 6948 # to write the compiler configuration to `libtool'. 6949 m4_defun([_LT_LANG_RC_CONFIG], 6950 [AC_REQUIRE([LT_PROG_RC])dnl 6951 AC_LANG_SAVE 6952 6953 # Source file extension for RC test sources. 6954 ac_ext=rc 6955 6956 # Object file extension for compiled RC test sources. 6957 objext=o 6958 _LT_TAGVAR(objext, $1)=$objext 6959 6960 # Code to be used in simple compile tests 6961 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 6962 6963 # Code to be used in simple link tests 6964 lt_simple_link_test_code="$lt_simple_compile_test_code" 6965 6966 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6967 _LT_TAG_COMPILER 6968 6969 # save warnings/boilerplate of simple test code 6970 _LT_COMPILER_BOILERPLATE 6971 _LT_LINKER_BOILERPLATE 6972 6973 # Allow CC to be a program name with arguments. 6974 lt_save_CC="$CC" 6975 lt_save_GCC=$GCC 6976 GCC= 6977 CC=${RC-"windres"} 6978 compiler=$CC 6979 _LT_TAGVAR(compiler, $1)=$CC 6980 _LT_CC_BASENAME([$compiler]) 6981 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 6982 6983 if test -n "$compiler"; then 6984 : 6985 _LT_CONFIG($1) 6986 fi 6987 6988 GCC=$lt_save_GCC 6989 AC_LANG_RESTORE 6990 CC="$lt_save_CC" 6991 ])# _LT_LANG_RC_CONFIG 6992 6993 6994 # LT_PROG_GCJ 6995 # ----------- 6996 AC_DEFUN([LT_PROG_GCJ], 6997 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 6998 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 6999 [AC_CHECK_TOOL(GCJ, gcj,) 7000 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 7001 AC_SUBST(GCJFLAGS)])])[]dnl 7002 ]) 7003 7004 # Old name: 7005 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 7006 dnl aclocal-1.4 backwards compatibility: 7007 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 7008 7009 7010 # LT_PROG_RC 7011 # ---------- 7012 AC_DEFUN([LT_PROG_RC], 7013 [AC_CHECK_TOOL(RC, windres,) 7014 ]) 7015 7016 # Old name: 7017 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 7018 dnl aclocal-1.4 backwards compatibility: 7019 dnl AC_DEFUN([LT_AC_PROG_RC], []) 7020 7021 7022 # _LT_DECL_EGREP 7023 # -------------- 7024 # If we don't have a new enough Autoconf to choose the best grep 7025 # available, choose the one first in the user's PATH. 7026 m4_defun([_LT_DECL_EGREP], 7027 [AC_REQUIRE([AC_PROG_EGREP])dnl 7028 AC_REQUIRE([AC_PROG_FGREP])dnl 7029 test -z "$GREP" && GREP=grep 7030 _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 7031 _LT_DECL([], [EGREP], [1], [An ERE matcher]) 7032 _LT_DECL([], [FGREP], [1], [A literal string matcher]) 7033 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 7034 AC_SUBST([GREP]) 7035 ]) 7036 7037 7038 # _LT_DECL_OBJDUMP 7039 # -------------- 7040 # If we don't have a new enough Autoconf to choose the best objdump 7041 # available, choose the one first in the user's PATH. 7042 m4_defun([_LT_DECL_OBJDUMP], 7043 [AC_CHECK_TOOL(OBJDUMP, objdump, false) 7044 test -z "$OBJDUMP" && OBJDUMP=objdump 7045 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 7046 AC_SUBST([OBJDUMP]) 7047 ]) 7048 7049 7050 # _LT_DECL_SED 7051 # ------------ 7052 # Check for a fully-functional sed program, that truncates 7053 # as few characters as possible. Prefer GNU sed if found. 7054 m4_defun([_LT_DECL_SED], 7055 [AC_PROG_SED 7056 test -z "$SED" && SED=sed 7057 Xsed="$SED -e 1s/^X//" 7058 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 7059 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 7060 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 7061 ])# _LT_DECL_SED 7062 7063 m4_ifndef([AC_PROG_SED], [ 6599 7064 # NOTE: This macro has been submitted for inclusion into # 6600 7065 # GNU Autoconf as AC_PROG_SED. When it is available in # 6601 7066 # a released version of Autoconf we should remove this # 6602 7067 # macro and use it instead. # 6603 # LT_AC_PROG_SED 6604 # -------------- 6605 # Check for a fully-functional sed program, that truncates 6606 # as few characters as possible. Prefer GNU sed if found. 6607 AC_DEFUN([LT_AC_PROG_SED], 7068 7069 m4_defun([AC_PROG_SED], 6608 7070 [AC_MSG_CHECKING([for a sed that does not truncate output]) 6609 7071 AC_CACHE_VAL(lt_cv_path_SED, … … 6617 7079 for lt_ac_prog in sed gsed; do 6618 7080 for ac_exec_ext in '' $ac_executable_extensions; do 6619 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then7081 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 6620 7082 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6621 7083 fi … … 6658 7120 AC_SUBST([SED]) 6659 7121 AC_MSG_RESULT([$SED]) 7122 ])#AC_PROG_SED 7123 ])#m4_ifndef 7124 7125 # Old name: 7126 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 7127 dnl aclocal-1.4 backwards compatibility: 7128 dnl AC_DEFUN([LT_AC_PROG_SED], []) 7129 7130 7131 # _LT_CHECK_SHELL_FEATURES 7132 # ------------------------ 7133 # Find out whether the shell is Bourne or XSI compatible, 7134 # or has some other useful features. 7135 m4_defun([_LT_CHECK_SHELL_FEATURES], 7136 [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 7137 # Try some XSI features 7138 xsi_shell=no 7139 ( _lt_dummy="a/b/c" 7140 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 7141 = c,a/b,, \ 7142 && eval 'test $(( 1 + 1 )) -eq 2 \ 7143 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7144 && xsi_shell=yes 7145 AC_MSG_RESULT([$xsi_shell]) 7146 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 7147 7148 AC_MSG_CHECKING([whether the shell understands "+="]) 7149 lt_shell_append=no 7150 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 7151 >/dev/null 2>&1 \ 7152 && lt_shell_append=yes 7153 AC_MSG_RESULT([$lt_shell_append]) 7154 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 7155 7156 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7157 lt_unset=unset 7158 else 7159 lt_unset=false 7160 fi 7161 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 7162 7163 # test EBCDIC or ASCII 7164 case `echo X|tr X '\101'` in 7165 A) # ASCII based system 7166 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7167 lt_SP2NL='tr \040 \012' 7168 lt_NL2SP='tr \015\012 \040\040' 7169 ;; 7170 *) # EBCDIC based system 7171 lt_SP2NL='tr \100 \n' 7172 lt_NL2SP='tr \r\n \100\100' 7173 ;; 7174 esac 7175 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 7176 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 7177 ])# _LT_CHECK_SHELL_FEATURES 7178 7179 7180 # _LT_PROG_XSI_SHELLFNS 7181 # --------------------- 7182 # Bourne and XSI compatible variants of some useful shell functions. 7183 m4_defun([_LT_PROG_XSI_SHELLFNS], 7184 [case $xsi_shell in 7185 yes) 7186 cat << \_LT_EOF >> "$cfgfile" 7187 7188 # func_dirname file append nondir_replacement 7189 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 7190 # otherwise set result to NONDIR_REPLACEMENT. 7191 func_dirname () 7192 { 7193 case ${1} in 7194 */*) func_dirname_result="${1%/*}${2}" ;; 7195 * ) func_dirname_result="${3}" ;; 7196 esac 7197 } 7198 7199 # func_basename file 7200 func_basename () 7201 { 7202 func_basename_result="${1##*/}" 7203 } 7204 7205 # func_dirname_and_basename file append nondir_replacement 7206 # perform func_basename and func_dirname in a single function 7207 # call: 7208 # dirname: Compute the dirname of FILE. If nonempty, 7209 # add APPEND to the result, otherwise set result 7210 # to NONDIR_REPLACEMENT. 7211 # value returned in "$func_dirname_result" 7212 # basename: Compute filename of FILE. 7213 # value retuned in "$func_basename_result" 7214 # Implementation must be kept synchronized with func_dirname 7215 # and func_basename. For efficiency, we do not delegate to 7216 # those functions but instead duplicate the functionality here. 7217 func_dirname_and_basename () 7218 { 7219 case ${1} in 7220 */*) func_dirname_result="${1%/*}${2}" ;; 7221 * ) func_dirname_result="${3}" ;; 7222 esac 7223 func_basename_result="${1##*/}" 7224 } 7225 7226 # func_stripname prefix suffix name 7227 # strip PREFIX and SUFFIX off of NAME. 7228 # PREFIX and SUFFIX must not contain globbing or regex special 7229 # characters, hashes, percent signs, but SUFFIX may contain a leading 7230 # dot (in which case that matches only a dot). 7231 func_stripname () 7232 { 7233 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 7234 # positional parameters, so assign one to ordinary parameter first. 7235 func_stripname_result=${3} 7236 func_stripname_result=${func_stripname_result#"${1}"} 7237 func_stripname_result=${func_stripname_result%"${2}"} 7238 } 7239 7240 # func_opt_split 7241 func_opt_split () 7242 { 7243 func_opt_split_opt=${1%%=*} 7244 func_opt_split_arg=${1#*=} 7245 } 7246 7247 # func_lo2o object 7248 func_lo2o () 7249 { 7250 case ${1} in 7251 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 7252 *) func_lo2o_result=${1} ;; 7253 esac 7254 } 7255 7256 # func_xform libobj-or-source 7257 func_xform () 7258 { 7259 func_xform_result=${1%.*}.lo 7260 } 7261 7262 # func_arith arithmetic-term... 7263 func_arith () 7264 { 7265 func_arith_result=$(( $[*] )) 7266 } 7267 7268 # func_len string 7269 # STRING may not start with a hyphen. 7270 func_len () 7271 { 7272 func_len_result=${#1} 7273 } 7274 7275 _LT_EOF 7276 ;; 7277 *) # Bourne compatible functions. 7278 cat << \_LT_EOF >> "$cfgfile" 7279 7280 # func_dirname file append nondir_replacement 7281 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 7282 # otherwise set result to NONDIR_REPLACEMENT. 7283 func_dirname () 7284 { 7285 # Extract subdirectory from the argument. 7286 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 7287 if test "X$func_dirname_result" = "X${1}"; then 7288 func_dirname_result="${3}" 7289 else 7290 func_dirname_result="$func_dirname_result${2}" 7291 fi 7292 } 7293 7294 # func_basename file 7295 func_basename () 7296 { 7297 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 7298 } 7299 7300 dnl func_dirname_and_basename 7301 dnl A portable version of this function is already defined in general.m4sh 7302 dnl so there is no need for it here. 7303 7304 # func_stripname prefix suffix name 7305 # strip PREFIX and SUFFIX off of NAME. 7306 # PREFIX and SUFFIX must not contain globbing or regex special 7307 # characters, hashes, percent signs, but SUFFIX may contain a leading 7308 # dot (in which case that matches only a dot). 7309 # func_strip_suffix prefix name 7310 func_stripname () 7311 { 7312 case ${2} in 7313 .*) func_stripname_result=`$ECHO "X${3}" \ 7314 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 7315 *) func_stripname_result=`$ECHO "X${3}" \ 7316 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 7317 esac 7318 } 7319 7320 # sed scripts: 7321 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' 7322 my_sed_long_arg='1s/^-[[^=]]*=//' 7323 7324 # func_opt_split 7325 func_opt_split () 7326 { 7327 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 7328 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 7329 } 7330 7331 # func_lo2o object 7332 func_lo2o () 7333 { 7334 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 7335 } 7336 7337 # func_xform libobj-or-source 7338 func_xform () 7339 { 7340 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'` 7341 } 7342 7343 # func_arith arithmetic-term... 7344 func_arith () 7345 { 7346 func_arith_result=`expr "$[@]"` 7347 } 7348 7349 # func_len string 7350 # STRING may not start with a hyphen. 7351 func_len () 7352 { 7353 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` 7354 } 7355 7356 _LT_EOF 7357 esac 7358 7359 case $lt_shell_append in 7360 yes) 7361 cat << \_LT_EOF >> "$cfgfile" 7362 7363 # func_append var value 7364 # Append VALUE to the end of shell variable VAR. 7365 func_append () 7366 { 7367 eval "$[1]+=\$[2]" 7368 } 7369 _LT_EOF 7370 ;; 7371 *) 7372 cat << \_LT_EOF >> "$cfgfile" 7373 7374 # func_append var value 7375 # Append VALUE to the end of shell variable VAR. 7376 func_append () 7377 { 7378 eval "$[1]=\$$[1]\$[2]" 7379 } 7380 7381 _LT_EOF 7382 ;; 7383 esac 6660 7384 ]) 7385 7386 # Helper functions for option handling. -*- Autoconf -*- 7387 # 7388 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 7389 # Written by Gary V. Vaughan, 2004 7390 # 7391 # This file is free software; the Free Software Foundation gives 7392 # unlimited permission to copy and/or distribute it, with or without 7393 # modifications, as long as this notice is preserved. 7394 7395 # serial 6 ltoptions.m4 7396 7397 # This is to help aclocal find these macros, as it can't see m4_define. 7398 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 7399 7400 7401 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 7402 # ------------------------------------------ 7403 m4_define([_LT_MANGLE_OPTION], 7404 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 7405 7406 7407 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 7408 # --------------------------------------- 7409 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a 7410 # matching handler defined, dispatch to it. Other OPTION-NAMEs are 7411 # saved as a flag. 7412 m4_define([_LT_SET_OPTION], 7413 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 7414 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 7415 _LT_MANGLE_DEFUN([$1], [$2]), 7416 [m4_warning([Unknown $1 option `$2'])])[]dnl 7417 ]) 7418 7419 7420 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 7421 # ------------------------------------------------------------ 7422 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 7423 m4_define([_LT_IF_OPTION], 7424 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 7425 7426 7427 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 7428 # ------------------------------------------------------- 7429 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 7430 # are set. 7431 m4_define([_LT_UNLESS_OPTIONS], 7432 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 7433 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 7434 [m4_define([$0_found])])])[]dnl 7435 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 7436 ])[]dnl 7437 ]) 7438 7439 7440 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 7441 # ---------------------------------------- 7442 # OPTION-LIST is a space-separated list of Libtool options associated 7443 # with MACRO-NAME. If any OPTION has a matching handler declared with 7444 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 7445 # the unknown option and exit. 7446 m4_defun([_LT_SET_OPTIONS], 7447 [# Set options 7448 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 7449 [_LT_SET_OPTION([$1], _LT_Option)]) 7450 7451 m4_if([$1],[LT_INIT],[ 7452 dnl 7453 dnl Simply set some default values (i.e off) if boolean options were not 7454 dnl specified: 7455 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 7456 ]) 7457 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 7458 ]) 7459 dnl 7460 dnl If no reference was made to various pairs of opposing options, then 7461 dnl we run the default mode handler for the pair. For example, if neither 7462 dnl `shared' nor `disable-shared' was passed, we enable building of shared 7463 dnl archives by default: 7464 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 7465 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 7466 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 7467 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 7468 [_LT_ENABLE_FAST_INSTALL]) 7469 ]) 7470 ])# _LT_SET_OPTIONS 7471 7472 7473 7474 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 7475 # ----------------------------------------- 7476 m4_define([_LT_MANGLE_DEFUN], 7477 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 7478 7479 7480 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 7481 # ----------------------------------------------- 7482 m4_define([LT_OPTION_DEFINE], 7483 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 7484 ])# LT_OPTION_DEFINE 7485 7486 7487 # dlopen 7488 # ------ 7489 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 7490 ]) 7491 7492 AU_DEFUN([AC_LIBTOOL_DLOPEN], 7493 [_LT_SET_OPTION([LT_INIT], [dlopen]) 7494 AC_DIAGNOSE([obsolete], 7495 [$0: Remove this warning and the call to _LT_SET_OPTION when you 7496 put the `dlopen' option into LT_INIT's first parameter.]) 7497 ]) 7498 7499 dnl aclocal-1.4 backwards compatibility: 7500 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 7501 7502 7503 # win32-dll 7504 # --------- 7505 # Declare package support for building win32 dll's. 7506 LT_OPTION_DEFINE([LT_INIT], [win32-dll], 7507 [enable_win32_dll=yes 7508 7509 case $host in 7510 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*) 7511 AC_CHECK_TOOL(AS, as, false) 7512 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 7513 AC_CHECK_TOOL(OBJDUMP, objdump, false) 7514 ;; 7515 esac 7516 7517 test -z "$AS" && AS=as 7518 _LT_DECL([], [AS], [0], [Assembler program])dnl 7519 7520 test -z "$DLLTOOL" && DLLTOOL=dlltool 7521 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl 7522 7523 test -z "$OBJDUMP" && OBJDUMP=objdump 7524 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl 7525 ])# win32-dll 7526 7527 AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 7528 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 7529 _LT_SET_OPTION([LT_INIT], [win32-dll]) 7530 AC_DIAGNOSE([obsolete], 7531 [$0: Remove this warning and the call to _LT_SET_OPTION when you 7532 put the `win32-dll' option into LT_INIT's first parameter.]) 7533 ]) 7534 7535 dnl aclocal-1.4 backwards compatibility: 7536 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 7537 7538 7539 # _LT_ENABLE_SHARED([DEFAULT]) 7540 # ---------------------------- 7541 # implement the --enable-shared flag, and supports the `shared' and 7542 # `disable-shared' LT_INIT options. 7543 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 7544 m4_define([_LT_ENABLE_SHARED], 7545 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 7546 AC_ARG_ENABLE([shared], 7547 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 7548 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 7549 [p=${PACKAGE-default} 7550 case $enableval in 7551 yes) enable_shared=yes ;; 7552 no) enable_shared=no ;; 7553 *) 7554 enable_shared=no 7555 # Look at the argument we got. We use all the common list separators. 7556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7557 for pkg in $enableval; do 7558 IFS="$lt_save_ifs" 7559 if test "X$pkg" = "X$p"; then 7560 enable_shared=yes 7561 fi 7562 done 7563 IFS="$lt_save_ifs" 7564 ;; 7565 esac], 7566 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 7567 7568 _LT_DECL([build_libtool_libs], [enable_shared], [0], 7569 [Whether or not to build shared libraries]) 7570 ])# _LT_ENABLE_SHARED 7571 7572 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 7573 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 7574 7575 # Old names: 7576 AC_DEFUN([AC_ENABLE_SHARED], 7577 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 7578 ]) 7579 7580 AC_DEFUN([AC_DISABLE_SHARED], 7581 [_LT_SET_OPTION([LT_INIT], [disable-shared]) 7582 ]) 7583 7584 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 7585 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 7586 7587 dnl aclocal-1.4 backwards compatibility: 7588 dnl AC_DEFUN([AM_ENABLE_SHARED], []) 7589 dnl AC_DEFUN([AM_DISABLE_SHARED], []) 7590 7591 7592 7593 # _LT_ENABLE_STATIC([DEFAULT]) 7594 # ---------------------------- 7595 # implement the --enable-static flag, and support the `static' and 7596 # `disable-static' LT_INIT options. 7597 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 7598 m4_define([_LT_ENABLE_STATIC], 7599 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 7600 AC_ARG_ENABLE([static], 7601 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 7602 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 7603 [p=${PACKAGE-default} 7604 case $enableval in 7605 yes) enable_static=yes ;; 7606 no) enable_static=no ;; 7607 *) 7608 enable_static=no 7609 # Look at the argument we got. We use all the common list separators. 7610 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7611 for pkg in $enableval; do 7612 IFS="$lt_save_ifs" 7613 if test "X$pkg" = "X$p"; then 7614 enable_static=yes 7615 fi 7616 done 7617 IFS="$lt_save_ifs" 7618 ;; 7619 esac], 7620 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 7621 7622 _LT_DECL([build_old_libs], [enable_static], [0], 7623 [Whether or not to build static libraries]) 7624 ])# _LT_ENABLE_STATIC 7625 7626 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 7627 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 7628 7629 # Old names: 7630 AC_DEFUN([AC_ENABLE_STATIC], 7631 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 7632 ]) 7633 7634 AC_DEFUN([AC_DISABLE_STATIC], 7635 [_LT_SET_OPTION([LT_INIT], [disable-static]) 7636 ]) 7637 7638 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 7639 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 7640 7641 dnl aclocal-1.4 backwards compatibility: 7642 dnl AC_DEFUN([AM_ENABLE_STATIC], []) 7643 dnl AC_DEFUN([AM_DISABLE_STATIC], []) 7644 7645 7646 7647 # _LT_ENABLE_FAST_INSTALL([DEFAULT]) 7648 # ---------------------------------- 7649 # implement the --enable-fast-install flag, and support the `fast-install' 7650 # and `disable-fast-install' LT_INIT options. 7651 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 7652 m4_define([_LT_ENABLE_FAST_INSTALL], 7653 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 7654 AC_ARG_ENABLE([fast-install], 7655 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 7656 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 7657 [p=${PACKAGE-default} 7658 case $enableval in 7659 yes) enable_fast_install=yes ;; 7660 no) enable_fast_install=no ;; 7661 *) 7662 enable_fast_install=no 7663 # Look at the argument we got. We use all the common list separators. 7664 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7665 for pkg in $enableval; do 7666 IFS="$lt_save_ifs" 7667 if test "X$pkg" = "X$p"; then 7668 enable_fast_install=yes 7669 fi 7670 done 7671 IFS="$lt_save_ifs" 7672 ;; 7673 esac], 7674 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 7675 7676 _LT_DECL([fast_install], [enable_fast_install], [0], 7677 [Whether or not to optimize for fast installation])dnl 7678 ])# _LT_ENABLE_FAST_INSTALL 7679 7680 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 7681 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 7682 7683 # Old names: 7684 AU_DEFUN([AC_ENABLE_FAST_INSTALL], 7685 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 7686 AC_DIAGNOSE([obsolete], 7687 [$0: Remove this warning and the call to _LT_SET_OPTION when you put 7688 the `fast-install' option into LT_INIT's first parameter.]) 7689 ]) 7690 7691 AU_DEFUN([AC_DISABLE_FAST_INSTALL], 7692 [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 7693 AC_DIAGNOSE([obsolete], 7694 [$0: Remove this warning and the call to _LT_SET_OPTION when you put 7695 the `disable-fast-install' option into LT_INIT's first parameter.]) 7696 ]) 7697 7698 dnl aclocal-1.4 backwards compatibility: 7699 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 7700 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 7701 7702 7703 # _LT_WITH_PIC([MODE]) 7704 # -------------------- 7705 # implement the --with-pic flag, and support the `pic-only' and `no-pic' 7706 # LT_INIT options. 7707 # MODE is either `yes' or `no'. If omitted, it defaults to `both'. 7708 m4_define([_LT_WITH_PIC], 7709 [AC_ARG_WITH([pic], 7710 [AS_HELP_STRING([--with-pic], 7711 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 7712 [pic_mode="$withval"], 7713 [pic_mode=default]) 7714 7715 test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 7716 7717 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 7718 ])# _LT_WITH_PIC 7719 7720 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 7721 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 7722 7723 # Old name: 7724 AU_DEFUN([AC_LIBTOOL_PICMODE], 7725 [_LT_SET_OPTION([LT_INIT], [pic-only]) 7726 AC_DIAGNOSE([obsolete], 7727 [$0: Remove this warning and the call to _LT_SET_OPTION when you 7728 put the `pic-only' option into LT_INIT's first parameter.]) 7729 ]) 7730 7731 dnl aclocal-1.4 backwards compatibility: 7732 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 7733 7734 7735 m4_define([_LTDL_MODE], []) 7736 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 7737 [m4_define([_LTDL_MODE], [nonrecursive])]) 7738 LT_OPTION_DEFINE([LTDL_INIT], [recursive], 7739 [m4_define([_LTDL_MODE], [recursive])]) 7740 LT_OPTION_DEFINE([LTDL_INIT], [subproject], 7741 [m4_define([_LTDL_MODE], [subproject])]) 7742 7743 m4_define([_LTDL_TYPE], []) 7744 LT_OPTION_DEFINE([LTDL_INIT], [installable], 7745 [m4_define([_LTDL_TYPE], [installable])]) 7746 LT_OPTION_DEFINE([LTDL_INIT], [convenience], 7747 [m4_define([_LTDL_TYPE], [convenience])]) 7748 7749 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 7750 # 7751 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 7752 # Written by Gary V. Vaughan, 2004 7753 # 7754 # This file is free software; the Free Software Foundation gives 7755 # unlimited permission to copy and/or distribute it, with or without 7756 # modifications, as long as this notice is preserved. 7757 7758 # serial 6 ltsugar.m4 7759 7760 # This is to help aclocal find these macros, as it can't see m4_define. 7761 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 7762 7763 7764 # lt_join(SEP, ARG1, [ARG2...]) 7765 # ----------------------------- 7766 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 7767 # associated separator. 7768 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 7769 # versions in m4sugar had bugs. 7770 m4_define([lt_join], 7771 [m4_if([$#], [1], [], 7772 [$#], [2], [[$2]], 7773 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 7774 m4_define([_lt_join], 7775 [m4_if([$#$2], [2], [], 7776 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 7777 7778 7779 # lt_car(LIST) 7780 # lt_cdr(LIST) 7781 # ------------ 7782 # Manipulate m4 lists. 7783 # These macros are necessary as long as will still need to support 7784 # Autoconf-2.59 which quotes differently. 7785 m4_define([lt_car], [[$1]]) 7786 m4_define([lt_cdr], 7787 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 7788 [$#], 1, [], 7789 [m4_dquote(m4_shift($@))])]) 7790 m4_define([lt_unquote], $1) 7791 7792 7793 # lt_append(MACRO-NAME, STRING, [SEPARATOR]) 7794 # ------------------------------------------ 7795 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 7796 # Note that neither SEPARATOR nor STRING are expanded; they are appended 7797 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 7798 # No SEPARATOR is output if MACRO-NAME was previously undefined (different 7799 # than defined and empty). 7800 # 7801 # This macro is needed until we can rely on Autoconf 2.62, since earlier 7802 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 7803 m4_define([lt_append], 7804 [m4_define([$1], 7805 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 7806 7807 7808 7809 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 7810 # ---------------------------------------------------------- 7811 # Produce a SEP delimited list of all paired combinations of elements of 7812 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 7813 # has the form PREFIXmINFIXSUFFIXn. 7814 # Needed until we can rely on m4_combine added in Autoconf 2.62. 7815 m4_define([lt_combine], 7816 [m4_if(m4_eval([$# > 3]), [1], 7817 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 7818 [[m4_foreach([_Lt_prefix], [$2], 7819 [m4_foreach([_Lt_suffix], 7820 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 7821 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 7822 7823 7824 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 7825 # ----------------------------------------------------------------------- 7826 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 7827 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 7828 m4_define([lt_if_append_uniq], 7829 [m4_ifdef([$1], 7830 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 7831 [lt_append([$1], [$2], [$3])$4], 7832 [$5])], 7833 [lt_append([$1], [$2], [$3])$4])]) 7834 7835 7836 # lt_dict_add(DICT, KEY, VALUE) 7837 # ----------------------------- 7838 m4_define([lt_dict_add], 7839 [m4_define([$1($2)], [$3])]) 7840 7841 7842 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 7843 # -------------------------------------------- 7844 m4_define([lt_dict_add_subkey], 7845 [m4_define([$1($2:$3)], [$4])]) 7846 7847 7848 # lt_dict_fetch(DICT, KEY, [SUBKEY]) 7849 # ---------------------------------- 7850 m4_define([lt_dict_fetch], 7851 [m4_ifval([$3], 7852 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 7853 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 7854 7855 7856 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 7857 # ----------------------------------------------------------------- 7858 m4_define([lt_if_dict_fetch], 7859 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 7860 [$5], 7861 [$6])]) 7862 7863 7864 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 7865 # -------------------------------------------------------------- 7866 m4_define([lt_dict_filter], 7867 [m4_if([$5], [], [], 7868 [lt_join(m4_quote(m4_default([$4], [[, ]])), 7869 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 7870 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 7871 ]) 7872 7873 # ltversion.m4 -- version numbers -*- Autoconf -*- 7874 # 7875 # Copyright (C) 2004 Free Software Foundation, Inc. 7876 # Written by Scott James Remnant, 2004 7877 # 7878 # This file is free software; the Free Software Foundation gives 7879 # unlimited permission to copy and/or distribute it, with or without 7880 # modifications, as long as this notice is preserved. 7881 7882 # Generated from ltversion.in. 7883 7884 # serial 3012 ltversion.m4 7885 # This file is part of GNU Libtool 7886 7887 m4_define([LT_PACKAGE_VERSION], [2.2.6]) 7888 m4_define([LT_PACKAGE_REVISION], [1.3012]) 7889 7890 AC_DEFUN([LTVERSION_VERSION], 7891 [macro_version='2.2.6' 7892 macro_revision='1.3012' 7893 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 7894 _LT_DECL(, macro_revision, 0) 7895 ]) 7896 7897 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 7898 # 7899 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc. 7900 # Written by Scott James Remnant, 2004. 7901 # 7902 # This file is free software; the Free Software Foundation gives 7903 # unlimited permission to copy and/or distribute it, with or without 7904 # modifications, as long as this notice is preserved. 7905 7906 # serial 4 lt~obsolete.m4 7907 7908 # These exist entirely to fool aclocal when bootstrapping libtool. 7909 # 7910 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 7911 # which have later been changed to m4_define as they aren't part of the 7912 # exported API, or moved to Autoconf or Automake where they belong. 7913 # 7914 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 7915 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 7916 # using a macro with the same name in our local m4/libtool.m4 it'll 7917 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define 7918 # and doesn't know about Autoconf macros at all.) 7919 # 7920 # So we provide this file, which has a silly filename so it's always 7921 # included after everything else. This provides aclocal with the 7922 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 7923 # because those macros already exist, or will be overwritten later. 7924 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 7925 # 7926 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 7927 # Yes, that means every name once taken will need to remain here until 7928 # we give up compatibility with versions before 1.7, at which point 7929 # we need to keep only those names which we still refer to. 7930 7931 # This is to help aclocal find these macros, as it can't see m4_define. 7932 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 7933 7934 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 7935 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 7936 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 7937 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 7938 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 7939 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 7940 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 7941 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 7942 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 7943 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 7944 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 7945 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 7946 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 7947 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 7948 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 7949 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 7950 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 7951 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 7952 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 7953 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 7954 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 7955 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 7956 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 7957 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 7958 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 7959 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 7960 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 7961 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 7962 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 7963 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 7964 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 7965 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 7966 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 7967 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 7968 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 7969 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 7970 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 7971 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 7972 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 7973 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 7974 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 7975 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 7976 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])]) 7977 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 7978 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 7979 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 7980 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 7981 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 7982 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 7983 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 7984 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 7985 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 7986 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 7987 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 7988 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 6661 7989 6662 7990 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. … … 6672 8000 # (This private macro should not be called outside this file.) 6673 8001 AC_DEFUN([AM_AUTOMAKE_VERSION], 6674 [am__api_version='1.1 0'8002 [am__api_version='1.11' 6675 8003 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 6676 8004 dnl require some minimum version. Point them to the right macro. 6677 m4_if([$1], [1.1 0.2], [],8005 m4_if([$1], [1.11], [], 6678 8006 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 6679 8007 ]) … … 6691 8019 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 6692 8020 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 6693 [AM_AUTOMAKE_VERSION([1.1 0.2])dnl8021 [AM_AUTOMAKE_VERSION([1.11])dnl 6694 8022 m4_ifndef([AC_AUTOCONF_VERSION], 6695 8023 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl … … 6751 8079 # AM_CONDITIONAL -*- Autoconf -*- 6752 8080 6753 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 8081 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 6754 8082 # Free Software Foundation, Inc. 6755 8083 # … … 6758 8086 # with or without modifications, as long as this notice is preserved. 6759 8087 6760 # serial 88088 # serial 9 6761 8089 6762 8090 # AM_CONDITIONAL(NAME, SHELL-CONDITION) … … 6771 8099 _AM_SUBST_NOTMAKE([$1_TRUE])dnl 6772 8100 _AM_SUBST_NOTMAKE([$1_FALSE])dnl 8101 m4_define([_AM_COND_VALUE_$1], [$2])dnl 6773 8102 if $2; then 6774 8103 $1_TRUE= … … 6784 8113 fi])]) 6785 8114 6786 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 8115 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 6787 8116 # Free Software Foundation, Inc. 6788 8117 # … … 6791 8120 # with or without modifications, as long as this notice is preserved. 6792 8121 6793 # serial 98122 # serial 10 6794 8123 6795 8124 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be … … 6848 8177 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 6849 8178 fi 8179 am__universal=false 8180 m4_case([$1], [CC], 8181 [case " $depcc " in #( 8182 *\ -arch\ *\ -arch\ *) am__universal=true ;; 8183 esac], 8184 [CXX], 8185 [case " $depcc " in #( 8186 *\ -arch\ *\ -arch\ *) am__universal=true ;; 8187 esac]) 8188 6850 8189 for depmode in $am_compiler_list; do 6851 8190 # Setup a source with many dependencies, because some compilers … … 6865 8204 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6866 8205 8206 # We check with `-c' and `-o' for the sake of the "dashmstdout" 8207 # mode. It turns out that the SunPro C++ compiler does not properly 8208 # handle `-M -o', and we need to detect this. Also, some Intel 8209 # versions had trouble with output in subdirs 8210 am__obj=sub/conftest.${OBJEXT-o} 8211 am__minus_obj="-o $am__obj" 6867 8212 case $depmode in 8213 gcc) 8214 # This depmode causes a compiler race in universal mode. 8215 test "$am__universal" = false || continue 8216 ;; 6868 8217 nosideeffect) 6869 8218 # after this tag, mechanisms are not by side-effect, so they'll … … 6875 8224 fi 6876 8225 ;; 8226 msvisualcpp | msvcmsys) 8227 # This compiler won't grok `-c -o', but also, the minuso test has 8228 # not run yet. These depmodes are late enough in the game, and 8229 # so weak that their functioning should not be impacted. 8230 am__obj=conftest.${OBJEXT-o} 8231 am__minus_obj= 8232 ;; 6877 8233 none) break ;; 6878 8234 esac 6879 # We check with `-c' and `-o' for the sake of the "dashmstdout"6880 # mode. It turns out that the SunPro C++ compiler does not properly6881 # handle `-M -o', and we need to detect this.6882 8235 if depmode=$depmode \ 6883 source=sub/conftest.c object= sub/conftest.${OBJEXT-o}\8236 source=sub/conftest.c object=$am__obj \ 6884 8237 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6885 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o}sub/conftest.c \8238 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6886 8239 >/dev/null 2>conftest.err && 6887 8240 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6888 8241 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6889 grep sub/conftest.${OBJEXT-o}sub/conftest.Po > /dev/null 2>&1 &&8242 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6890 8243 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6891 8244 # icc doesn't choke on unknown options, it will just issue warnings … … 6951 8304 # with or without modifications, as long as this notice is preserved. 6952 8305 6953 #serial 48306 #serial 5 6954 8307 6955 8308 # _AM_OUTPUT_DEPENDENCY_COMMANDS 6956 8309 # ------------------------------ 6957 8310 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 6958 [# Autoconf 2.62 quotes --file arguments for eval, but not when files 6959 # are listed without --file. Let's play safe and only enable the eval 6960 # if we detect the quoting. 6961 case $CONFIG_FILES in 6962 *\'*) eval set x "$CONFIG_FILES" ;; 6963 *) set x $CONFIG_FILES ;; 6964 esac 6965 shift 6966 for mf 6967 do 6968 # Strip MF so we end up with the name of the file. 6969 mf=`echo "$mf" | sed -e 's/:.*$//'` 6970 # Check whether this is an Automake generated Makefile or not. 6971 # We used to match only the files named `Makefile.in', but 6972 # some people rename them; so instead we look at the file content. 6973 # Grep'ing the first line is not enough: some people post-process 6974 # each Makefile.in and add a new line on top of each file to say so. 6975 # Grep'ing the whole file is not good either: AIX grep has a line 6976 # limit of 2048, but all sed's we know have understand at least 4000. 6977 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 6978 dirpart=`AS_DIRNAME("$mf")` 6979 else 6980 continue 6981 fi 6982 # Extract the definition of DEPDIR, am__include, and am__quote 6983 # from the Makefile without running `make'. 6984 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6985 test -z "$DEPDIR" && continue 6986 am__include=`sed -n 's/^am__include = //p' < "$mf"` 6987 test -z "am__include" && continue 6988 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6989 # When using ansi2knr, U may be empty or an underscore; expand it 6990 U=`sed -n 's/^U = //p' < "$mf"` 6991 # Find all dependency output files, they are included files with 6992 # $(DEPDIR) in their names. We invoke sed twice because it is the 6993 # simplest approach to changing $(DEPDIR) to its actual value in the 6994 # expansion. 6995 for file in `sed -n " 6996 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6997 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6998 # Make sure the directory exists. 6999 test -f "$dirpart/$file" && continue 7000 fdir=`AS_DIRNAME(["$file"])` 7001 AS_MKDIR_P([$dirpart/$fdir]) 7002 # echo "creating $dirpart/$file" 7003 echo '# dummy' > "$dirpart/$file" 8311 [{ 8312 # Autoconf 2.62 quotes --file arguments for eval, but not when files 8313 # are listed without --file. Let's play safe and only enable the eval 8314 # if we detect the quoting. 8315 case $CONFIG_FILES in 8316 *\'*) eval set x "$CONFIG_FILES" ;; 8317 *) set x $CONFIG_FILES ;; 8318 esac 8319 shift 8320 for mf 8321 do 8322 # Strip MF so we end up with the name of the file. 8323 mf=`echo "$mf" | sed -e 's/:.*$//'` 8324 # Check whether this is an Automake generated Makefile or not. 8325 # We used to match only the files named `Makefile.in', but 8326 # some people rename them; so instead we look at the file content. 8327 # Grep'ing the first line is not enough: some people post-process 8328 # each Makefile.in and add a new line on top of each file to say so. 8329 # Grep'ing the whole file is not good either: AIX grep has a line 8330 # limit of 2048, but all sed's we know have understand at least 4000. 8331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 8332 dirpart=`AS_DIRNAME("$mf")` 8333 else 8334 continue 8335 fi 8336 # Extract the definition of DEPDIR, am__include, and am__quote 8337 # from the Makefile without running `make'. 8338 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 8339 test -z "$DEPDIR" && continue 8340 am__include=`sed -n 's/^am__include = //p' < "$mf"` 8341 test -z "am__include" && continue 8342 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 8343 # When using ansi2knr, U may be empty or an underscore; expand it 8344 U=`sed -n 's/^U = //p' < "$mf"` 8345 # Find all dependency output files, they are included files with 8346 # $(DEPDIR) in their names. We invoke sed twice because it is the 8347 # simplest approach to changing $(DEPDIR) to its actual value in the 8348 # expansion. 8349 for file in `sed -n " 8350 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 8351 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 8352 # Make sure the directory exists. 8353 test -f "$dirpart/$file" && continue 8354 fdir=`AS_DIRNAME(["$file"])` 8355 AS_MKDIR_P([$dirpart/$fdir]) 8356 # echo "creating $dirpart/$file" 8357 echo '# dummy' > "$dirpart/$file" 8358 done 7004 8359 done 7005 done 8360 } 7006 8361 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 7007 8362 … … 7035 8390 7036 8391 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 7037 # 2005, 2006, 2008 Free Software Foundation, Inc.8392 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. 7038 8393 # 7039 8394 # This file is free software; the Free Software Foundation … … 7041 8396 # with or without modifications, as long as this notice is preserved. 7042 8397 7043 # serial 1 38398 # serial 16 7044 8399 7045 8400 # This macro actually does too much. Some checks are only needed if … … 7058 8413 # release and drop the old call support. 7059 8414 AC_DEFUN([AM_INIT_AUTOMAKE], 7060 [AC_PREREQ([2.6 0])dnl8415 [AC_PREREQ([2.62])dnl 7061 8416 dnl Autoconf wants to disallow AM_ names. We explicitly allow 7062 8417 dnl the ones we care about. … … 7109 8464 AM_MISSING_PROG(AUTOHEADER, autoheader) 7110 8465 AM_MISSING_PROG(MAKEINFO, makeinfo) 7111 A M_PROG_INSTALL_SH7112 A M_PROG_INSTALL_STRIP8466 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 8467 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 7113 8468 AC_REQUIRE([AM_PROG_MKDIR_P])dnl 7114 8469 # We need awk for the "check" target. The system "awk" is bad on … … 7118 8473 AC_REQUIRE([AM_SET_LEADING_DOT])dnl 7119 8474 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 7120 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],7121 [_AM_PROG_TAR([v7])])])8475 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 8476 [_AM_PROG_TAR([v7])])]) 7122 8477 _AM_IF_OPTION([no-dependencies],, 7123 8478 [AC_PROVIDE_IFELSE([AC_PROG_CC], 7124 [_AM_DEPENDENCIES(CC)],7125 [define([AC_PROG_CC],7126 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl8479 [_AM_DEPENDENCIES(CC)], 8480 [define([AC_PROG_CC], 8481 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 7127 8482 AC_PROVIDE_IFELSE([AC_PROG_CXX], 7128 [_AM_DEPENDENCIES(CXX)],7129 [define([AC_PROG_CXX],7130 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl8483 [_AM_DEPENDENCIES(CXX)], 8484 [define([AC_PROG_CXX], 8485 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 7131 8486 AC_PROVIDE_IFELSE([AC_PROG_OBJC], 7132 [_AM_DEPENDENCIES(OBJC)],7133 [define([AC_PROG_OBJC],7134 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl8487 [_AM_DEPENDENCIES(OBJC)], 8488 [define([AC_PROG_OBJC], 8489 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 7135 8490 ]) 8491 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl 8492 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the 8493 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro 8494 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. 8495 AC_CONFIG_COMMANDS_PRE(dnl 8496 [m4_provide_if([_AM_COMPILER_EXEEXT], 8497 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 7136 8498 ]) 8499 8500 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 8501 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 8502 dnl mangled by Autoconf and run in a shell conditional statement. 8503 m4_define([_AC_COMPILER_EXEEXT], 8504 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 7137 8505 7138 8506 … … 7158 8526 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 7159 8527 7160 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.8528 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. 7161 8529 # 7162 8530 # This file is free software; the Free Software Foundation … … 7169 8537 AC_DEFUN([AM_PROG_INSTALL_SH], 7170 8538 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7171 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 8539 if test x"${install_sh}" != xset; then 8540 case $am_aux_dir in 8541 *\ * | *\ *) 8542 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 8543 *) 8544 install_sh="\${SHELL} $am_aux_dir/install-sh" 8545 esac 8546 fi 7172 8547 AC_SUBST(install_sh)]) 7173 8548 … … 7195 8570 # Check to see how 'make' treats includes. -*- Autoconf -*- 7196 8571 7197 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.8572 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. 7198 8573 # 7199 8574 # This file is free software; the Free Software Foundation … … 7201 8576 # with or without modifications, as long as this notice is preserved. 7202 8577 7203 # serial 38578 # serial 4 7204 8579 7205 8580 # AM_MAKE_INCLUDE() … … 7210 8585 cat > confinc << 'END' 7211 8586 am__doit: 7212 @echo done8587 @echo this is the am__doit target 7213 8588 .PHONY: am__doit 7214 8589 END … … 7220 8595 # First try GNU make style include. 7221 8596 echo "include confinc" > confmf 7222 # We grep out `Entering directory' and `Leaving directory' 7223 # messages which can occur if `w' ends up in MAKEFLAGS. 7224 # In particular we don't look at `^make:' because GNU make might 7225 # be invoked under some other name (usually "gmake"), in which 7226 # case it prints its new name instead of `make'. 7227 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 7228 am__include=include 7229 am__quote= 7230 _am_result=GNU 7231 fi 8597 # Ignore all kinds of additional output from `make'. 8598 case `$am_make -s -f confmf 2> /dev/null` in #( 8599 *the\ am__doit\ target*) 8600 am__include=include 8601 am__quote= 8602 _am_result=GNU 8603 ;; 8604 esac 7232 8605 # Now try BSD make style include. 7233 8606 if test "$am__include" = "#"; then 7234 8607 echo '.include "confinc"' > confmf 7235 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 7236 am__include=.include 7237 am__quote="\"" 7238 _am_result=BSD 7239 fi 8608 case `$am_make -s -f confmf 2> /dev/null` in #( 8609 *the\ am__doit\ target*) 8610 am__include=.include 8611 am__quote="\"" 8612 _am_result=BSD 8613 ;; 8614 esac 7240 8615 fi 7241 8616 AC_SUBST([am__include]) … … 7247 8622 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 7248 8623 7249 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 8624 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 7250 8625 # Free Software Foundation, Inc. 7251 8626 # … … 7254 8629 # with or without modifications, as long as this notice is preserved. 7255 8630 7256 # serial 58631 # serial 6 7257 8632 7258 8633 # AM_MISSING_PROG(NAME, PROGRAM) … … 7271 8646 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 7272 8647 AC_REQUIRE_AUX_FILE([missing])dnl 7273 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 8648 if test x"${MISSING+set}" != xset; then 8649 case $am_aux_dir in 8650 *\ * | *\ *) 8651 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 8652 *) 8653 MISSING="\${SHELL} $am_aux_dir/missing" ;; 8654 esac 8655 fi 7274 8656 # Use eval to expand $SHELL 7275 8657 if eval "$MISSING --run true"; then … … 7342 8724 # Check to make sure that the build environment is sane. -*- Autoconf -*- 7343 8725 7344 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 8726 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 7345 8727 # Free Software Foundation, Inc. 7346 8728 # … … 7349 8731 # with or without modifications, as long as this notice is preserved. 7350 8732 7351 # serial 48733 # serial 5 7352 8734 7353 8735 # AM_SANITY_CHECK … … 7358 8740 sleep 1 7359 8741 echo timestamp > conftest.file 8742 # Reject unsafe characters in $srcdir or the absolute working directory 8743 # name. Accept space and tab only in the latter. 8744 am_lf=' 8745 ' 8746 case `pwd` in 8747 *[[\\\"\#\$\&\'\`$am_lf]]*) 8748 AC_MSG_ERROR([unsafe absolute working directory name]);; 8749 esac 8750 case $srcdir in 8751 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 8752 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; 8753 esac 8754 7360 8755 # Do `set' in a subshell so we don't clobber the current shell's 7361 8756 # arguments. Must try -L first in case configure is actually a … … 7364 8759 # directory). 7365 8760 if ( 7366 set X `ls -Lt $srcdir/configureconftest.file 2> /dev/null`8761 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 7367 8762 if test "$[*]" = "X"; then 7368 8763 # -L didn't work. 7369 set X `ls -t $srcdir/configureconftest.file`8764 set X `ls -t "$srcdir/configure" conftest.file` 7370 8765 fi 7371 8766 rm -f conftest.file … … 7420 8815 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 7421 8816 7422 # Copyright (C) 2006 Free Software Foundation, Inc.8817 # Copyright (C) 2006, 2008 Free Software Foundation, Inc. 7423 8818 # 7424 8819 # This file is free software; the Free Software Foundation 7425 8820 # gives unlimited permission to copy and/or distribute it, 7426 8821 # with or without modifications, as long as this notice is preserved. 8822 8823 # serial 2 7427 8824 7428 8825 # _AM_SUBST_NOTMAKE(VARIABLE) … … 7431 8828 # This macro is traced by Automake. 7432 8829 AC_DEFUN([_AM_SUBST_NOTMAKE]) 8830 8831 # AM_SUBST_NOTMAKE(VARIABLE) 8832 # --------------------------- 8833 # Public sister of _AM_SUBST_NOTMAKE. 8834 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 7433 8835 7434 8836 # Check how to create a tarball. -*- Autoconf -*- trunk/config.h.in
r453 r531 107 107 #undef LIBCURL_PROTOCOL_TFTP 108 108 109 /* Define to the sub-directory in which libtool stores uninstalled libraries. 110 */ 111 #undef LT_OBJDIR 112 109 113 /* Name of package */ 110 114 #undef PACKAGE … … 122 126 #undef PACKAGE_TARNAME 123 127 128 /* Define to the home page for this package. */ 129 #undef PACKAGE_URL 130 124 131 /* Define to the version of this package. */ 125 132 #undef PACKAGE_VERSION trunk/configure
r529 r531 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.6 3for FahMon 2.3.99.1.3 # Generated by GNU Autoconf 2.64 for FahMon 2.3.99.1. 4 4 # 5 5 # Report bugs to <Andrew Schofield andrew_s@fahmon.net>. 6 6 # 7 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9 # Foundation, Inc. 10 # 9 11 # This configure script is free software; the Free Software Foundation 10 12 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- -##12 ## M4sh Initialization. ##13 ## -------------------- -##13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 14 16 15 17 # Be more Bourne compatible 16 18 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 20 emulate sh 19 21 NULLCMD=: … … 23 25 setopt NO_GLOB_SUBST 24 26 else 25 case `(set -o) 2>/dev/null` in 26 *posix*) set -o posix ;; 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 27 32 esac 28 29 fi 30 31 32 33 34 # PATH needs CR 35 # Avoid depending upon Character Ranges. 36 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 39 as_cr_digits='0123456789' 40 as_cr_alnum=$as_cr_Letters$as_cr_digits 33 fi 34 41 35 42 36 as_nl=' … … 47 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 50 as_echo='printf %s\n' 51 51 as_echo_n='printf %s' … … 58 58 as_echo_n_body='eval 59 59 arg=$1; 60 case $arg in 60 case $arg in #( 61 61 *"$as_nl"*) 62 62 expr "X$arg" : "X\\(.*\\)$as_nl"; … … 81 81 fi 82 82 83 # Support unset when possible.84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then85 as_unset=unset86 else87 as_unset=false88 fi89 90 83 91 84 # IFS … … 97 90 98 91 # Find who we are. Look in the path if we contain no directory separator. 99 case $0 in 92 case $0 in #(( 100 93 *[\\/]* ) as_myself=$0 ;; 101 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 104 97 IFS=$as_save_IFS 105 98 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break107 done99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 108 101 IFS=$as_save_IFS 109 102 … … 117 110 if test ! -f "$as_myself"; then 118 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 { (exit 1); exit 1; } 120 fi 121 122 # Work around bugs in pre-3.0 UWIN ksh. 123 for as_var in ENV MAIL MAILPATH 124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112 exit 1 113 fi 114 115 # Unset variables that we do not need and which cause bugs (e.g. in 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117 # suppresses any "Segmentation fault" message there. '((' could 118 # trigger a bug in pdksh 5.2.14. 119 for as_var in BASH_ENV ENV MAIL MAILPATH 120 do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125 122 done 126 123 PS1='$ ' … … 134 131 export LANGUAGE 135 132 136 # Required to use basename. 133 # CDPATH. 134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136 if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144 else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150 esac 151 fi 152 " 153 as_required="as_fn_return () { (exit \$1); } 154 as_fn_success () { as_fn_return 0; } 155 as_fn_failure () { as_fn_return 1; } 156 as_fn_ret_success () { return 0; } 157 as_fn_ret_failure () { return 1; } 158 159 exitcode=0 160 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166 else 167 exitcode=1; echo positional parameters were not saved. 168 fi 169 test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174 test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177 else 178 as_have_required=no 179 fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182 else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184 as_found=false 185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186 do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200 fi 201 fi 202 done;; 203 esac 204 as_found=false 205 done 206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209 fi; } 210 IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222 fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org and Andrew Schofield 232 $0: andrew_s@fahmon.net about your system, including any 233 $0: error possibly output before this message. Then install 234 $0: a modern shell, or manually run the script under such a 235 $0: shell if you do have one." 236 fi 237 exit 1 238 fi 239 fi 240 fi 241 SHELL=${CONFIG_SHELL-/bin/sh} 242 export SHELL 243 # Unset more variables known to interfere with behavior of common tools. 244 CLICOLOR_FORCE= GREP_OPTIONS= 245 unset CLICOLOR_FORCE GREP_OPTIONS 246 247 ## --------------------- ## 248 ## M4sh Shell Functions. ## 249 ## --------------------- ## 250 # as_fn_unset VAR 251 # --------------- 252 # Portably unset VAR. 253 as_fn_unset () 254 { 255 { eval $1=; unset $1;} 256 } 257 as_unset=as_fn_unset 258 259 # as_fn_set_status STATUS 260 # ----------------------- 261 # Set $? to STATUS, without forking. 262 as_fn_set_status () 263 { 264 return $1 265 } # as_fn_set_status 266 267 # as_fn_exit STATUS 268 # ----------------- 269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 270 as_fn_exit () 271 { 272 set +e 273 as_fn_set_status $1 274 exit $1 275 } # as_fn_exit 276 277 # as_fn_mkdir_p 278 # ------------- 279 # Create "$as_dir" as a directory, including parents if necessary. 280 as_fn_mkdir_p () 281 { 282 283 case $as_dir in #( 284 -*) as_dir=./$as_dir;; 285 esac 286 test -d "$as_dir" || eval $as_mkdir_p || { 287 as_dirs= 288 while :; do 289 case $as_dir in #( 290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 291 *) as_qdir=$as_dir;; 292 esac 293 as_dirs="'$as_qdir' $as_dirs" 294 as_dir=`$as_dirname -- "$as_dir" || 295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 296 X"$as_dir" : 'X\(//\)[^/]' \| \ 297 X"$as_dir" : 'X\(//\)$' \| \ 298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 299 $as_echo X"$as_dir" | 300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 301 s//\1/ 302 q 303 } 304 /^X\(\/\/\)[^/].*/{ 305 s//\1/ 306 q 307 } 308 /^X\(\/\/\)$/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\).*/{ 313 s//\1/ 314 q 315 } 316 s/.*/./; q'` 317 test -d "$as_dir" && break 318 done 319 test -z "$as_dirs" || eval "mkdir $as_dirs" 320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 321 322 323 } # as_fn_mkdir_p 324 # as_fn_append VAR VALUE 325 # ---------------------- 326 # Append the text in VALUE to the end of the definition contained in VAR. Take 327 # advantage of any shell optimizations that allow amortized linear growth over 328 # repeated appends, instead of the typical quadratic growth present in naive 329 # implementations. 330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 331 eval 'as_fn_append () 332 { 333 eval $1+=\$2 334 }' 335 else 336 as_fn_append () 337 { 338 eval $1=\$$1\$2 339 } 340 fi # as_fn_append 341 342 # as_fn_arith ARG... 343 # ------------------ 344 # Perform arithmetic evaluation on the ARGs, and store the result in the 345 # global $as_val. Take advantage of shells that can avoid forks. The arguments 346 # must be portable across $(()) and expr. 347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 348 eval 'as_fn_arith () 349 { 350 as_val=$(( $* )) 351 }' 352 else 353 as_fn_arith () 354 { 355 as_val=`expr "$@" || test $? -eq 1` 356 } 357 fi # as_fn_arith 358 359 360 # as_fn_error ERROR [LINENO LOG_FD] 361 # --------------------------------- 362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 364 # script with status $?, using 1 if that was 0. 365 as_fn_error () 366 { 367 as_status=$?; test $as_status -eq 0 && as_status=1 368 if test "$3"; then 369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 371 fi 372 $as_echo "$as_me: error: $1" >&2 373 as_fn_exit $as_status 374 } # as_fn_error 375 137 376 if expr a : '\(a\)' >/dev/null 2>&1 && 138 377 test "X`expr 00001 : '.*\(...\)'`" = X001; then … … 148 387 fi 149 388 150 151 # Name of the executable. 389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 390 as_dirname=dirname 391 else 392 as_dirname=false 393 fi 394 152 395 as_me=`$as_basename -- "$0" || 153 396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ … … 169 412 s/.*/./; q'` 170 413 171 # CDPATH. 172 $as_unset CDPATH 173 174 175 if test "x$CONFIG_SHELL" = x; then 176 if (eval ":") 2>/dev/null; then 177 as_have_required=yes 178 else 179 as_have_required=no 180 fi 181 182 if test $as_have_required = yes && (eval ": 183 (as_func_return () { 184 (exit \$1) 185 } 186 as_func_success () { 187 as_func_return 0 188 } 189 as_func_failure () { 190 as_func_return 1 191 } 192 as_func_ret_success () { 193 return 0 194 } 195 as_func_ret_failure () { 196 return 1 197 } 198 199 exitcode=0 200 if as_func_success; then 201 : 202 else 203 exitcode=1 204 echo as_func_success failed. 205 fi 206 207 if as_func_failure; then 208 exitcode=1 209 echo as_func_failure succeeded. 210 fi 211 212 if as_func_ret_success; then 213 : 214 else 215 exitcode=1 216 echo as_func_ret_success failed. 217 fi 218 219 if as_func_ret_failure; then 220 exitcode=1 221 echo as_func_ret_failure succeeded. 222 fi 223 224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 225 : 226 else 227 exitcode=1 228 echo positional parameters were not saved. 229 fi 230 231 test \$exitcode = 0) || { (exit 1); exit 1; } 232 233 ( 234 as_lineno_1=\$LINENO 235 as_lineno_2=\$LINENO 236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 238 ") 2> /dev/null; then 239 : 240 else 241 as_candidate_shells= 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 244 do 245 IFS=$as_save_IFS 246 test -z "$as_dir" && as_dir=. 247 case $as_dir in 248 /*) 249 for as_base in sh bash ksh sh5; do 250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 251 done;; 252 esac 253 done 254 IFS=$as_save_IFS 255 256 257 for as_shell in $as_candidate_shells $SHELL; do 258 # Try only shells that exist, to save several forks. 259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 260 { ("$as_shell") 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 _ASEOF 278 }; then 279 CONFIG_SHELL=$as_shell 280 as_have_required=yes 281 if { "$as_shell" 2> /dev/null <<\_ASEOF 282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 283 emulate sh 284 NULLCMD=: 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 286 # is contrary to our usage. Disable this feature. 287 alias -g '${1+"$@"}'='"$@"' 288 setopt NO_GLOB_SUBST 289 else 290 case `(set -o) 2>/dev/null` in 291 *posix*) set -o posix ;; 292 esac 293 294 fi 295 296 297 : 298 (as_func_return () { 299 (exit $1) 300 } 301 as_func_success () { 302 as_func_return 0 303 } 304 as_func_failure () { 305 as_func_return 1 306 } 307 as_func_ret_success () { 308 return 0 309 } 310 as_func_ret_failure () { 311 return 1 312 } 313 314 exitcode=0 315 if as_func_success; then 316 : 317 else 318 exitcode=1 319 echo as_func_success failed. 320 fi 321 322 if as_func_failure; then 323 exitcode=1 324 echo as_func_failure succeeded. 325 fi 326 327 if as_func_ret_success; then 328 : 329 else 330 exitcode=1 331 echo as_func_ret_success failed. 332 fi 333 334 if as_func_ret_failure; then 335 exitcode=1 336 echo as_func_ret_failure succeeded. 337 fi 338 339 if ( set x; as_func_ret_success y && test x = "$1" ); then 340 : 341 else 342 exitcode=1 343 echo positional parameters were not saved. 344 fi 345 346 test $exitcode = 0) || { (exit 1); exit 1; } 347 348 ( 349 as_lineno_1=$LINENO 350 as_lineno_2=$LINENO 351 test "x$as_lineno_1" != "x$as_lineno_2" && 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 353 354 _ASEOF 355 }; then 356 break 357 fi 358 359 fi 360 361 done 362 363 if test "x$CONFIG_SHELL" != x; then 364 for as_var in BASH_ENV ENV 365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 366 done 367 export CONFIG_SHELL 368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 369 fi 370 371 372 if test $as_have_required = no; then 373 echo This script requires a shell more modern than all the 374 echo shells that I found on your system. Please install a 375 echo modern shell, or manually run the script under such a 376 echo shell if you do have one. 377 { (exit 1); exit 1; } 378 fi 379 380 381 fi 382 383 fi 384 385 386 387 (eval "as_func_return () { 388 (exit \$1) 389 } 390 as_func_success () { 391 as_func_return 0 392 } 393 as_func_failure () { 394 as_func_return 1 395 } 396 as_func_ret_success () { 397 return 0 398 } 399 as_func_ret_failure () { 400 return 1 401 } 402 403 exitcode=0 404 if as_func_success; then 405 : 406 else 407 exitcode=1 408 echo as_func_success failed. 409 fi 410 411 if as_func_failure; then 412 exitcode=1 413 echo as_func_failure succeeded. 414 fi 415 416 if as_func_ret_success; then 417 : 418 else 419 exitcode=1 420 echo as_func_ret_success failed. 421 fi 422 423 if as_func_ret_failure; then 424 exitcode=1 425 echo as_func_ret_failure succeeded. 426 fi 427 428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 429 : 430 else 431 exitcode=1 432 echo positional parameters were not saved. 433 fi 434 435 test \$exitcode = 0") || { 436 echo No shell found that supports shell functions. 437 echo Please tell bug-autoconf@gnu.org about your system, 438 echo including any error possibly output before this message. 439 echo This can help us improve future autoconf versions. 440 echo Configuration will now proceed without shell functions. 441 } 442 443 444 445 as_lineno_1=$LINENO 446 as_lineno_2=$LINENO 447 test "x$as_lineno_1" != "x$as_lineno_2" && 448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 449 450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 451 # uniformly replaced by the line number. The first 'sed' inserts a 452 # line-number line after each line using $LINENO; the second 'sed' 453 # does the real work. The second script uses 'N' to pair each 454 # line-number line with the line containing $LINENO, and appends 455 # trailing '-' during substitution so that $LINENO is not a special 456 # case at line end. 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 458 # scripts with optimization help from Paolo Bonzini. Blame Lee 459 # E. McMahon (1931-1989) for sed's syntax. :-) 414 # Avoid depending upon Character Ranges. 415 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 418 as_cr_digits='0123456789' 419 as_cr_alnum=$as_cr_Letters$as_cr_digits 420 421 422 as_lineno_1=$LINENO as_lineno_1a=$LINENO 423 as_lineno_2=$LINENO as_lineno_2a=$LINENO 424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 460 427 sed -n ' 461 428 p … … 474 441 ' >$as_me.lineno && 475 442 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 477 { (exit 1); exit 1; }; } 443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 478 444 479 445 # Don't try to exec as it changes $[0], causing all sort of problems … … 485 451 } 486 452 487 488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then489 as_dirname=dirname490 else491 as_dirname=false492 fi493 494 453 ECHO_C= ECHO_N= ECHO_T= 495 case `echo -n x` in 454 case `echo -n x` in #((((( 496 455 -n*) 497 case `echo 'x \c'` in456 case `echo 'xy\c'` in 498 457 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 499 *) ECHO_C='\c';; 458 xy) ECHO_C='\c';; 459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 460 ECHO_T=' ';; 500 461 esac;; 501 462 *) 502 463 ECHO_N='-n';; 503 464 esac 504 if expr a : '\(a\)' >/dev/null 2>&1 &&505 test "X`expr 00001 : '.*\(...\)'`" = X001; then506 as_expr=expr507 else508 as_expr=false509 fi510 465 511 466 rm -f conf$$ conf$$.exe conf$$.file … … 537 492 538 493 if mkdir -p . 2>/dev/null; then 539 as_mkdir_p= :494 as_mkdir_p='mkdir -p "$as_dir"' 540 495 else 541 496 test -d ./-p && rmdir ./-p … … 556 511 test -d "$1/."; 557 512 else 558 case $1 in 513 case $1 in #( 559 514 -*)set "./$1";; 560 515 esac; 561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 562 517 ???[sx]*):;;*)false;;esac;fi 563 518 '\'' sh … … 574 529 575 530 576 577 531 # Check that we are running under the correct shell. 578 532 SHELL=${CONFIG_SHELL-/bin/sh} 579 533 580 case X$ ECHO in534 case X$lt_ECHO in 581 535 X*--fallback-echo) 582 536 # Remove one level of quotation (which was required for Make). 583 ECHO=`echo "$ ECHO" | sed 's,\\\\\$\\$0,'$0','`537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 584 538 ;; 585 539 esac 586 540 587 echo=${ECHO-echo}541 ECHO=${lt_ECHO-echo} 588 542 if test "X$1" = X--no-reexec; then 589 543 # Discard the --no-reexec flag, and continue. … … 592 546 # Avoid inline document here, it may be left over 593 547 : 594 elif test "X` ($echo '\t')2>/dev/null`" = 'X\t' ; then595 # Yippee, $ echoworks!548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then 549 # Yippee, $ECHO works! 596 550 : 597 551 else … … 603 557 # used as fallback echo 604 558 shift 605 cat << EOF559 cat <<_LT_EOF 606 560 $* 607 EOF561 _LT_EOF 608 562 exit 0 609 563 fi … … 613 567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 614 568 615 if test -z "$ECHO"; then 616 if test "X${echo_test_string+set}" != Xset; then 617 # find a string as large as possible, as long as the shell can cope with it 618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 620 if (echo_test_string=`eval $cmd`) 2>/dev/null && 621 echo_test_string=`eval $cmd` && 622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 623 then 624 break 625 fi 626 done 627 fi 628 629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 631 test "X$echo_testing_string" = "X$echo_test_string"; then 632 : 633 else 634 # The Solaris, AIX, and Digital Unix default echo programs unquote 635 # backslashes. This makes it impossible to quote backslashes using 636 # echo "$something" | sed 's/\\/\\\\/g' 637 # 638 # So, first we look for a working echo in the user's PATH. 639 640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 641 for dir in $PATH /usr/ucb; do 569 if test -z "$lt_ECHO"; then 570 if test "X${echo_test_string+set}" != Xset; then 571 # find a string as large as possible, as long as the shell can cope with it 572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 574 if { echo_test_string=`eval $cmd`; } 2>/dev/null && 575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 576 then 577 break 578 fi 579 done 580 fi 581 582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 584 test "X$echo_testing_string" = "X$echo_test_string"; then 585 : 586 else 587 # The Solaris, AIX, and Digital Unix default echo programs unquote 588 # backslashes. This makes it impossible to quote backslashes using 589 # echo "$something" | sed 's/\\/\\\\/g' 590 # 591 # So, first we look for a working echo in the user's PATH. 592 593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 594 for dir in $PATH /usr/ucb; do 595 IFS="$lt_save_ifs" 596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 599 test "X$echo_testing_string" = "X$echo_test_string"; then 600 ECHO="$dir/echo" 601 break 602 fi 603 done 642 604 IFS="$lt_save_ifs" 643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 646 test "X$echo_testing_string" = "X$echo_test_string"; then 647 echo="$dir/echo" 648 break 649 fi 650 done 651 IFS="$lt_save_ifs" 652 653 if test "X$echo" = Xecho; then 654 # We didn't find a better echo, so look for alternatives. 655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 657 test "X$echo_testing_string" = "X$echo_test_string"; then 658 # This shell has a builtin print -r that does the trick. 659 echo='print -r' 660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 661 test "X$CONFIG_SHELL" != X/bin/ksh; then 662 # If we have ksh, try running configure again with it. 663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 664 export ORIGINAL_CONFIG_SHELL 665 CONFIG_SHELL=/bin/ksh 666 export CONFIG_SHELL 667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 668 else 669 # Try using printf. 670 echo='printf %s\n' 671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 673 test "X$echo_testing_string" = "X$echo_test_string"; then 674 # Cool, printf works 675 : 676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 677 test "X$echo_testing_string" = 'X\t' && 678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 605 606 if test "X$ECHO" = Xecho; then 607 # We didn't find a better echo, so look for alternatives. 608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 610 test "X$echo_testing_string" = "X$echo_test_string"; then 611 # This shell has a builtin print -r that does the trick. 612 ECHO='print -r' 613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 614 test "X$CONFIG_SHELL" != X/bin/ksh; then 615 # If we have ksh, try running configure again with it. 616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 617 export ORIGINAL_CONFIG_SHELL 618 CONFIG_SHELL=/bin/ksh 619 export CONFIG_SHELL 620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 621 else 622 # Try using printf. 623 ECHO='printf %s\n' 624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 679 626 test "X$echo_testing_string" = "X$echo_test_string"; then 680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 681 export CONFIG_SHELL 682 SHELL="$CONFIG_SHELL" 683 export SHELL 684 echo="$CONFIG_SHELL $0 --fallback-echo" 685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 686 test "X$echo_testing_string" = 'X\t' && 687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 688 test "X$echo_testing_string" = "X$echo_test_string"; then 689 echo="$CONFIG_SHELL $0 --fallback-echo" 690 else 691 # maybe with a smaller string... 692 prev=: 693 694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 696 then 697 break 627 # Cool, printf works 628 : 629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 630 test "X$echo_testing_string" = 'X\t' && 631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 632 test "X$echo_testing_string" = "X$echo_test_string"; then 633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 634 export CONFIG_SHELL 635 SHELL="$CONFIG_SHELL" 636 export SHELL 637 ECHO="$CONFIG_SHELL $0 --fallback-echo" 638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 639 test "X$echo_testing_string" = 'X\t' && 640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 641 test "X$echo_testing_string" = "X$echo_test_string"; then 642 ECHO="$CONFIG_SHELL $0 --fallback-echo" 643 else 644 # maybe with a smaller string... 645 prev=: 646 647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 649 then 650 break 651 fi 652 prev="$cmd" 653 done 654 655 if test "$prev" != 'sed 50q "$0"'; then 656 echo_test_string=`eval $prev` 657 export echo_test_string 658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 659 else 660 # Oops. We lost completely, so just stick with echo. 661 ECHO=echo 698 662 fi 699 prev="$cmd" 700 done 701 702 if test "$prev" != 'sed 50q "$0"'; then 703 echo_test_string=`eval $prev` 704 export echo_test_string 705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 706 else 707 # Oops. We lost completely, so just stick with echo. 708 echo=echo 709 fi 663 fi 710 664 fi 711 665 fi 712 666 fi 713 667 fi 714 fi715 668 716 669 # Copy echo and quote the copy suitably for passing to libtool from 717 670 # the Makefile, instead of quoting the original, which is used later. 718 ECHO=$echo 719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 721 fi 722 723 724 725 726 tagnames=${tagnames+${tagnames},}CXX 727 728 tagnames=${tagnames+${tagnames},}F77 671 lt_ECHO=$ECHO 672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 674 fi 675 676 677 729 678 730 679 exec 7<&0 </dev/null 6>&1 … … 746 695 MFLAGS= 747 696 MAKEFLAGS= 748 SHELL=${CONFIG_SHELL-/bin/sh}749 697 750 698 # Identity of this package. … … 754 702 PACKAGE_STRING='FahMon 2.3.99.1' 755 703 PACKAGE_BUGREPORT='Andrew Schofield andrew_s@fahmon.net' 704 PACKAGE_URL='' 756 705 757 706 # Factoring default headers for most tests. … … 792 741 793 742 gt_needs= 794 ac_subst_vars='LTLIBOBJS 743 ac_subst_vars='am__EXEEXT_FALSE 744 am__EXEEXT_TRUE 745 LTLIBOBJS 795 746 LIBOBJS 796 747 POSUB … … 822 773 LIBCURL_CPPFLAGS 823 774 _libcurl_config 824 LIBTOOL825 ac_ct_F77826 FFLAGS827 F77828 775 CXXCPP 829 776 CPP 777 OTOOL64 778 OTOOL 779 LIPO 830 780 NMEDIT 831 781 DSYMUTIL 782 lt_ECHO 832 783 RANLIB 833 784 AR 834 ECHO 785 OBJDUMP 835 786 LN_S 787 NM 788 ac_ct_DUMPBIN 789 DUMPBIN 790 LD 791 FGREP 836 792 EGREP 837 793 GREP … … 851 807 build_cpu 852 808 build 809 LIBTOOL 853 810 am__fastdepCXX_FALSE 854 811 am__fastdepCXX_TRUE … … 922 879 prefix 923 880 exec_prefix 881 PACKAGE_URL 924 882 PACKAGE_BUGREPORT 925 883 PACKAGE_STRING … … 935 893 enable_shared 936 894 enable_static 895 with_pic 937 896 enable_fast_install 938 897 with_gnu_ld 939 898 enable_libtool_lock 940 with_pic941 with_tags942 899 with_libcurl 943 900 with_wxdir … … 962 919 CFLAGS 963 920 CPP 964 CXXCPP 965 F77 966 FFLAGS' 921 CXXCPP' 967 922 968 923 … … 1073 1028 # Reject names that are not valid shell variable names. 1074 1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1075 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1076 { (exit 1); exit 1; }; } 1030 as_fn_error "invalid feature name: $ac_useropt" 1077 1031 ac_useropt_orig=$ac_useropt 1078 1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1100 1054 # Reject names that are not valid shell variable names. 1101 1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1102 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 1103 { (exit 1); exit 1; }; } 1056 as_fn_error "invalid feature name: $ac_useropt" 1104 1057 ac_useropt_orig=$ac_useropt 1105 1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1305 1258 # Reject names that are not valid shell variable names. 1306 1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1307 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1308 { (exit 1); exit 1; }; } 1260 as_fn_error "invalid package name: $ac_useropt" 1309 1261 ac_useropt_orig=$ac_useropt 1310 1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1322 1274 # Reject names that are not valid shell variable names. 1323 1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1324 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1325 { (exit 1); exit 1; }; } 1276 as_fn_error "invalid package name: $ac_useropt" 1326 1277 ac_useropt_orig=$ac_useropt 1327 1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` … … 1353 1304 x_libraries=$ac_optarg ;; 1354 1305 1355 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1356 Try \`$0 --help' for more information." >&2 1357 { (exit 1); exit 1; }; } 1306 -*) as_fn_error "unrecognized option: \`$ac_option' 1307 Try \`$0 --help' for more information." 1358 1308 ;; 1359 1309 … … 1361 1311 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1362 1312 # Reject names that are not valid shell variable names. 1363 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1364 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1365 { (exit 1); exit 1; }; } 1313 case $ac_envvar in #( 1314 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1315 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1316 esac 1366 1317 eval $ac_envvar=\$ac_optarg 1367 1318 export $ac_envvar ;; … … 1380 1331 if test -n "$ac_prev"; then 1381 1332 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1382 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1383 { (exit 1); exit 1; }; } 1333 as_fn_error "missing argument to $ac_option" 1384 1334 fi 1385 1335 … … 1387 1337 case $enable_option_checking in 1388 1338 no) ;; 1389 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 1390 { (exit 1); exit 1; }; } ;; 1339 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1391 1340 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1392 1341 esac … … 1411 1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1412 1361 esac 1413 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1414 { (exit 1); exit 1; }; } 1362 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1415 1363 done 1416 1364 … … 1442 1390 ac_ls_di=`ls -di .` && 1443 1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1444 { $as_echo "$as_me: error: working directory cannot be determined" >&2 1445 { (exit 1); exit 1; }; } 1392 as_fn_error "working directory cannot be determined" 1446 1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1447 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1448 { (exit 1); exit 1; }; } 1394 as_fn_error "pwd does not report name of working directory" 1449 1395 1450 1396 … … 1485 1431 if test ! -r "$srcdir/$ac_unique_file"; then 1486 1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1487 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1488 { (exit 1); exit 1; }; } 1433 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1489 1434 fi 1490 1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1491 1436 ac_abs_confdir=`( 1492 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1493 { (exit 1); exit 1; }; } 1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1494 1438 pwd)` 1495 1439 # When building in place, set srcdir=. … … 1608 1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1609 1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1610 --with-gnu-ld assume the C compiler uses GNU ld [default=no]1611 1554 --with-pic try to use only PIC/non-PIC objects [default=use 1612 1555 both] 1613 --with- tags[=TAGS] include additional configurations [automatic]1556 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1614 1557 --with-libcurl=DIR look for the curl library in DIR 1615 1558 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH … … 1636 1579 CPP C preprocessor 1637 1580 CXXCPP C++ preprocessor 1638 F77 Fortran 77 compiler command1639 FFLAGS Fortran 77 compiler flags1640 1581 1641 1582 Use these variables to override the choices made by `configure' or to help … … 1706 1647 cat <<\_ACEOF 1707 1648 FahMon configure 2.3.99.1 1708 generated by GNU Autoconf 2.63 1709 1710 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1711 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 1649 generated by GNU Autoconf 2.64 1650 1651 Copyright (C) 2009 Free Software Foundation, Inc. 1712 1652 This configure script is free software; the Free Software Foundation 1713 1653 gives unlimited permission to copy, distribute and modify it. … … 1715 1655 exit 1716 1656 fi 1657 1658 ## ------------------------ ## 1659 ## Autoconf initialization. ## 1660 ## ------------------------ ## 1661 1662 # ac_fn_cxx_try_compile LINENO 1663 # ---------------------------- 1664 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1665 ac_fn_cxx_try_compile () 1666 { 1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1668 rm -f conftest.$ac_objext 1669 if { { ac_try="$ac_compile" 1670 case "(($ac_try" in 1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1672 *) ac_try_echo=$ac_try;; 1673 esac 1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1675 $as_echo "$ac_try_echo"; } >&5 1676 (eval "$ac_compile") 2>conftest.err 1677 ac_status=$? 1678 if test -s conftest.err; then 1679 grep -v '^ *+' conftest.err >conftest.er1 1680 cat conftest.er1 >&5 1681 mv -f conftest.er1 conftest.err 1682 fi 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { 1685 test -z "$ac_cxx_werror_flag" || 1686 test ! -s conftest.err 1687 } && test -s conftest.$ac_objext; then : 1688 ac_retval=0 1689 else 1690 $as_echo "$as_me: failed program was:" >&5 1691 sed 's/^/| /' conftest.$ac_ext >&5 1692 1693 ac_retval=1 1694 fi 1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1696 return $ac_retval 1697 1698 } # ac_fn_cxx_try_compile 1699 1700 # ac_fn_c_try_compile LINENO 1701 # -------------------------- 1702 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1703 ac_fn_c_try_compile () 1704 { 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 rm -f conftest.$ac_objext 1707 if { { ac_try="$ac_compile" 1708 case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711 esac 1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713 $as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_compile") 2>conftest.err 1715 ac_status=$? 1716 if test -s conftest.err; then 1717 grep -v '^ *+' conftest.err >conftest.er1 1718 cat conftest.er1 >&5 1719 mv -f conftest.er1 conftest.err 1720 fi 1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1722 test $ac_status = 0; } && { 1723 test -z "$ac_c_werror_flag" || 1724 test ! -s conftest.err 1725 } && test -s conftest.$ac_objext; then : 1726 ac_retval=0 1727 else 1728 $as_echo "$as_me: failed program was:" >&5 1729 sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=1 1732 fi 1733 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1734 return $ac_retval 1735 1736 } # ac_fn_c_try_compile 1737 1738 # ac_fn_c_try_link LINENO 1739 # ----------------------- 1740 # Try to link conftest.$ac_ext, and return whether this succeeded. 1741 ac_fn_c_try_link () 1742 { 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 rm -f conftest.$ac_objext conftest$ac_exeext 1745 if { { ac_try="$ac_link" 1746 case "(($ac_try" in 1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1748 *) ac_try_echo=$ac_try;; 1749 esac 1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1751 $as_echo "$ac_try_echo"; } >&5 1752 (eval "$ac_link") 2>conftest.err 1753 ac_status=$? 1754 if test -s conftest.err; then 1755 grep -v '^ *+' conftest.err >conftest.er1 1756 cat conftest.er1 >&5 1757 mv -f conftest.er1 conftest.err 1758 fi 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { 1761 test -z "$ac_c_werror_flag" || 1762 test ! -s conftest.err 1763 } && test -s conftest$ac_exeext && { 1764 test "$cross_compiling" = yes || 1765 $as_test_x conftest$ac_exeext 1766 }; then : 1767 ac_retval=0 1768 else 1769 $as_echo "$as_me: failed program was:" >&5 1770 sed 's/^/| /' conftest.$ac_ext >&5 1771 1772 ac_retval=1 1773 fi 1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1776 # interfere with the next link command; also delete a directory that is 1777 # left behind by Apple's compiler. We do this before executing the actions. 1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1780 return $ac_retval 1781 1782 } # ac_fn_c_try_link 1783 1784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1785 # ------------------------------------------------------- 1786 # Tests whether HEADER exists and can be compiled using the include files in 1787 # INCLUDES, setting the cache variable VAR accordingly. 1788 ac_fn_c_check_header_compile () 1789 { 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1792 $as_echo_n "checking for $2... " >&6; } 1793 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1794 $as_echo_n "(cached) " >&6 1795 else 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797 /* end confdefs.h. */ 1798 $4 1799 #include <$2> 1800 _ACEOF 1801 if ac_fn_c_try_compile "$LINENO"; then : 1802 eval "$3=yes" 1803 else 1804 eval "$3=no" 1805 fi 1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1807 fi 1808 eval ac_res=\$$3 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810 $as_echo "$ac_res" >&6; } 1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1812 1813 } # ac_fn_c_check_header_compile 1814 1815 # ac_fn_c_try_cpp LINENO 1816 # ---------------------- 1817 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1818 ac_fn_c_try_cpp () 1819 { 1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1821 if { { ac_try="$ac_cpp conftest.$ac_ext" 1822 case "(($ac_try" in 1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1824 *) ac_try_echo=$ac_try;; 1825 esac 1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1827 $as_echo "$ac_try_echo"; } >&5 1828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1829 ac_status=$? 1830 if test -s conftest.err; then 1831 grep -v '^ *+' conftest.err >conftest.er1 1832 cat conftest.er1 >&5 1833 mv -f conftest.er1 conftest.err 1834 fi 1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1836 test $ac_status = 0; } >/dev/null && { 1837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1838 test ! -s conftest.err 1839 }; then : 1840 ac_retval=0 1841 else 1842 $as_echo "$as_me: failed program was:" >&5 1843 sed 's/^/| /' conftest.$ac_ext >&5 1844 1845 ac_retval=1 1846 fi 1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1848 return $ac_retval 1849 1850 } # ac_fn_c_try_cpp 1851 1852 # ac_fn_c_try_run LINENO 1853 # ---------------------- 1854 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1855 # that executables *can* be run. 1856 ac_fn_c_try_run () 1857 { 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 if { { ac_try="$ac_link" 1860 case "(($ac_try" in 1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1862 *) ac_try_echo=$ac_try;; 1863 esac 1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1865 $as_echo "$ac_try_echo"; } >&5 1866 (eval "$ac_link") 2>&5 1867 ac_status=$? 1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1869 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1870 { { case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873 esac 1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875 $as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_try") 2>&5 1877 ac_status=$? 1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1879 test $ac_status = 0; }; }; then : 1880 ac_retval=0 1881 else 1882 $as_echo "$as_me: program exited with status $ac_status" >&5 1883 $as_echo "$as_me: failed program was:" >&5 1884 sed 's/^/| /' conftest.$ac_ext >&5 1885 1886 ac_retval=$ac_status 1887 fi 1888 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1889 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1890 return $ac_retval 1891 1892 } # ac_fn_c_try_run 1893 1894 # ac_fn_c_check_func LINENO FUNC VAR 1895 # ---------------------------------- 1896 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1897 ac_fn_c_check_func () 1898 { 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1901 $as_echo_n "checking for $2... " >&6; } 1902 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1903 $as_echo_n "(cached) " >&6 1904 else 1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1906 /* end confdefs.h. */ 1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1909 #define $2 innocuous_$2 1910 1911 /* System header to define __stub macros and hopefully few prototypes, 1912 which can conflict with char $2 (); below. 1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1914 <limits.h> exists even on freestanding compilers. */ 1915 1916 #ifdef __STDC__ 1917 # include <limits.h> 1918 #else 1919 # include <assert.h> 1920 #endif 1921 1922 #undef $2 1923 1924 /* Override any GCC internal prototype to avoid an error. 1925 Use char because int might match the return type of a GCC 1926 builtin and then its argument prototype would still apply. */ 1927 #ifdef __cplusplus 1928 extern "C" 1929 #endif 1930 char $2 (); 1931 /* The GNU C library defines this for functions which it implements 1932 to always fail with ENOSYS. Some functions are actually named 1933 something starting with __ and the normal name is an alias. */ 1934 #if defined __stub_$2 || defined __stub___$2 1935 choke me 1936 #endif 1937 1938 int 1939 main () 1940 { 1941 return $2 (); 1942 ; 1943 return 0; 1944 } 1945 _ACEOF 1946 if ac_fn_c_try_link "$LINENO"; then : 1947 eval "$3=yes" 1948 else 1949 eval "$3=no" 1950 fi 1951 rm -f core conftest.err conftest.$ac_objext \ 1952 conftest$ac_exeext conftest.$ac_ext 1953 fi 1954 eval ac_res=\$$3 1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1956 $as_echo "$ac_res" >&6; } 1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1958 1959 } # ac_fn_c_check_func 1960 1961 # ac_fn_cxx_try_cpp LINENO 1962 # ------------------------ 1963 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1964 ac_fn_cxx_try_cpp () 1965 { 1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1967 if { { ac_try="$ac_cpp conftest.$ac_ext" 1968 case "(($ac_try" in 1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1970 *) ac_try_echo=$ac_try;; 1971 esac 1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1973 $as_echo "$ac_try_echo"; } >&5 1974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1975 ac_status=$? 1976 if test -s conftest.err; then 1977 grep -v '^ *+' conftest.err >conftest.er1 1978 cat conftest.er1 >&5 1979 mv -f conftest.er1 conftest.err 1980 fi 1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1982 test $ac_status = 0; } >/dev/null && { 1983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1984 test ! -s conftest.err 1985 }; then : 1986 ac_retval=0 1987 else 1988 $as_echo "$as_me: failed program was:" >&5 1989 sed 's/^/| /' conftest.$ac_ext >&5 1990 1991 ac_retval=1 1992 fi 1993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1994 return $ac_retval 1995 1996 } # ac_fn_cxx_try_cpp 1997 1998 # ac_fn_cxx_try_link LINENO 1999 # ------------------------- 2000 # Try to link conftest.$ac_ext, and return whether this succeeded. 2001 ac_fn_cxx_try_link () 2002 { 2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2004 rm -f conftest.$ac_objext conftest$ac_exeext 2005 if { { ac_try="$ac_link" 2006 case "(($ac_try" in 2007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2008 *) ac_try_echo=$ac_try;; 2009 esac 2010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2011 $as_echo "$ac_try_echo"; } >&5 2012 (eval "$ac_link") 2>conftest.err 2013 ac_status=$? 2014 if test -s conftest.err; then 2015 grep -v '^ *+' conftest.err >conftest.er1 2016 cat conftest.er1 >&5 2017 mv -f conftest.er1 conftest.err 2018 fi 2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2020 test $ac_status = 0; } && { 2021 test -z "$ac_cxx_werror_flag" || 2022 test ! -s conftest.err 2023 } && test -s conftest$ac_exeext && { 2024 test "$cross_compiling" = yes || 2025 $as_test_x conftest$ac_exeext 2026 }; then : 2027 ac_retval=0 2028 else 2029 $as_echo "$as_me: failed program was:" >&5 2030 sed 's/^/| /' conftest.$ac_ext >&5 2031 2032 ac_retval=1 2033 fi 2034 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2035 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2036 # interfere with the next link command; also delete a directory that is 2037 # left behind by Apple's compiler. We do this before executing the actions. 2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2040 return $ac_retval 2041 2042 } # ac_fn_cxx_try_link 1717 2043 cat >config.log <<_ACEOF 1718 2044 This file contains any messages produced by compilers while … … 1720 2046 1721 2047 It was created by FahMon $as_me 2.3.99.1, which was 1722 generated by GNU Autoconf 2.6 3. Invocation command line was2048 generated by GNU Autoconf 2.64. Invocation command line was 1723 2049 1724 2050 $ $0 $@ … … 1756 2082 IFS=$as_save_IFS 1757 2083 test -z "$as_dir" && as_dir=. 1758 $as_echo "PATH: $as_dir"1759 done2084 $as_echo "PATH: $as_dir" 2085 done 1760 2086 IFS=$as_save_IFS 1761 2087 … … 1794 2120 esac 1795 2121 case $ac_pass in 1796 1) a c_configure_args0="$ac_configure_args0'$ac_arg'" ;;2122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1797 2123 2) 1798 a c_configure_args1="$ac_configure_args1'$ac_arg'"2124 as_fn_append ac_configure_args1 " '$ac_arg'" 1799 2125 if test $ac_must_keep_next = true; then 1800 2126 ac_must_keep_next=false # Got value, back to normal. … … 1812 2138 esac 1813 2139 fi 1814 a c_configure_args="$ac_configure_args'$ac_arg'"2140 as_fn_append ac_configure_args " '$ac_arg'" 1815 2141 ;; 1816 2142 esac 1817 2143 done 1818 2144 done 1819 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0;}1820 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1;}2145 { ac_configure_args0=; unset ac_configure_args0;} 2146 { ac_configure_args1=; unset ac_configure_args1;} 1821 2147 1822 2148 # When interrupted or exit'd, cleanup temporary files, and complete … … 1843 2169 *${as_nl}*) 1844 2170 case $ac_var in #( 1845 *_cv_*) { $as_echo "$as_me:$ LINENO: WARNING: cache variable $ac_var contains a newline" >&52171 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1846 2172 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1847 2173 esac … … 1849 2175 _ | IFS | as_nl) ;; #( 1850 2176 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1851 *) $as_unset $ac_var;;2177 *) { eval $ac_var=; unset $ac_var;} ;; 1852 2178 esac ;; 1853 2179 esac … … 1921 2247 ' 0 1922 2248 for ac_signal in 1 2 13 15; do 1923 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal2249 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1924 2250 done 1925 2251 ac_signal=0 … … 1927 2253 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1928 2254 rm -f -r conftest* confdefs.h 2255 2256 $as_echo "/* confdefs.h */" > confdefs.h 1929 2257 1930 2258 # Predefined preprocessor variables. … … 1934 2262 _ACEOF 1935 2263 1936 1937 2264 cat >>confdefs.h <<_ACEOF 1938 2265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1939 2266 _ACEOF 1940 2267 1941 1942 2268 cat >>confdefs.h <<_ACEOF 1943 2269 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1944 2270 _ACEOF 1945 2271 1946 1947 2272 cat >>confdefs.h <<_ACEOF 1948 2273 #define PACKAGE_STRING "$PACKAGE_STRING" 1949 2274 _ACEOF 1950 2275 1951 1952 2276 cat >>confdefs.h <<_ACEOF 1953 2277 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2278 _ACEOF 2279 2280 cat >>confdefs.h <<_ACEOF 2281 #define PACKAGE_URL "$PACKAGE_URL" 1954 2282 _ACEOF 1955 2283 … … 1972 2300 test "x$ac_site_file" = xNONE && continue 1973 2301 if test -r "$ac_site_file"; then 1974 { $as_echo "$as_me:$ LINENO: loading site script $ac_site_file" >&52302 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1975 2303 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1976 2304 sed 's/^/| /' "$ac_site_file" >&5 … … 1983 2311 # files actually), so we avoid doing that. 1984 2312 if test -f "$cache_file"; then 1985 { $as_echo "$as_me:$ LINENO: loading cache $cache_file" >&52313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1986 2314 $as_echo "$as_me: loading cache $cache_file" >&6;} 1987 2315 case $cache_file in … … 1991 2319 fi 1992 2320 else 1993 { $as_echo "$as_me:$ LINENO: creating cache $cache_file" >&52321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1994 2322 $as_echo "$as_me: creating cache $cache_file" >&6;} 1995 2323 >$cache_file … … 2007 2335 case $ac_old_set,$ac_new_set in 2008 2336 set,) 2009 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&52337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2010 2338 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2011 2339 ac_cache_corrupted=: ;; 2012 2340 ,set) 2013 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' was not set in the previous run" >&52341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2014 2342 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2015 2343 ac_cache_corrupted=: ;; … … 2021 2349 ac_new_val_w=`echo x $ac_new_val` 2022 2350 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2023 { $as_echo "$as_me:$ LINENO: error: \`$ac_var' has changed since the previous run:" >&52351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2024 2352 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2025 2353 ac_cache_corrupted=: 2026 2354 else 2027 { $as_echo "$as_me:$ LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&52355 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2028 2356 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2029 2357 eval $ac_var=\$ac_old_val 2030 2358 fi 2031 { $as_echo "$as_me:$ LINENO: former value: \`$ac_old_val'" >&52359 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2032 2360 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2033 { $as_echo "$as_me:$ LINENO: current value: \`$ac_new_val'" >&52361 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2034 2362 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2035 2363 fi;; … … 2043 2371 case " $ac_configure_args " in 2044 2372 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2045 *) a c_configure_args="$ac_configure_args'$ac_arg'" ;;2373 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2046 2374 esac 2047 2375 fi 2048 2376 done 2049 2377 if $ac_cache_corrupted; then 2050 { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&52378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2051 2379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2052 { $as_echo "$as_me:$ LINENO: error: changes in the environment can compromise the build" >&52380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2053 2381 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2054 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2055 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2056 { (exit 1); exit 1; }; } 2057 fi 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2382 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2383 fi 2384 ## -------------------- ## 2385 ## Main body of script. ## 2386 ## -------------------- ## 2082 2387 2083 2388 ac_ext=c … … 2092 2397 # Extract the first word of "", so it can be a program name with args. 2093 2398 set dummy ; ac_word=$2 2094 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2095 2400 $as_echo_n "checking for $ac_word... " >&6; } 2096 if test "${ac_cv_path_ac_prefix_program+set}" = set; then 2401 if test "${ac_cv_path_ac_prefix_program+set}" = set; then : 2097 2402 $as_echo_n "(cached) " >&6 2098 2403 else … … 2107 2412 IFS=$as_save_IFS 2108 2413 test -z "$as_dir" && as_dir=. 2109 for ac_exec_ext in '' $ac_executable_extensions; do2414 for ac_exec_ext in '' $ac_executable_extensions; do 2110 2415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2111 2416 ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext" 2112 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2113 2418 break 2 2114 2419 fi 2115 2420 done 2116 done2421 done 2117 2422 IFS=$as_save_IFS 2118 2423 … … 2122 2427 ac_prefix_program=$ac_cv_path_ac_prefix_program 2123 2428 if test -n "$ac_prefix_program"; then 2124 { $as_echo "$as_me:$ LINENO: result: $ac_prefix_program" >&52429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5 2125 2430 $as_echo "$ac_prefix_program" >&6; } 2126 2431 else 2127 { $as_echo "$as_me:$ LINENO: result: no" >&52432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2128 2433 $as_echo "no" >&6; } 2129 2434 fi … … 2182 2487 ac_config_headers="$ac_config_headers config.h" 2183 2488 2184 am__api_version='1.1 0'2489 am__api_version='1.11' 2185 2490 2186 2491 ac_aux_dir= 2187 2492 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2188 if test -f "$ac_dir/install-sh"; then 2189 ac_aux_dir=$ac_dir 2190 ac_install_sh="$ac_aux_dir/install-sh -c" 2191 break 2192 elif test -f "$ac_dir/install.sh"; then 2193 ac_aux_dir=$ac_dir 2194 ac_install_sh="$ac_aux_dir/install.sh -c" 2195 break 2196 elif test -f "$ac_dir/shtool"; then 2197 ac_aux_dir=$ac_dir 2198 ac_install_sh="$ac_aux_dir/shtool install -c" 2199 break 2200 fi 2493 for ac_t in install-sh install.sh shtool; do 2494 if test -f "$ac_dir/$ac_t"; then 2495 ac_aux_dir=$ac_dir 2496 ac_install_sh="$ac_aux_dir/$ac_t -c" 2497 break 2 2498 fi 2499 done 2201 2500 done 2202 2501 if test -z "$ac_aux_dir"; then 2203 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 2204 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2205 { (exit 1); exit 1; }; } 2502 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2206 2503 fi 2207 2504 … … 2229 2526 # ./install, which can be erroneously created by make from ./install.sh. 2230 2527 # Reject install programs that cannot install multiple files. 2231 { $as_echo "$as_me:$ LINENO: checking for a BSD-compatible install" >&52528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2232 2529 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2233 2530 if test -z "$INSTALL"; then 2234 if test "${ac_cv_path_install+set}" = set; then 2531 if test "${ac_cv_path_install+set}" = set; then : 2235 2532 $as_echo_n "(cached) " >&6 2236 2533 else … … 2240 2537 IFS=$as_save_IFS 2241 2538 test -z "$as_dir" && as_dir=. 2242 # Account for people who put trailing slashes in PATH elements.2243 case $as_dir/ in 2244 ./ | .// | / cC/* | \2539 # Account for people who put trailing slashes in PATH elements. 2540 case $as_dir/ in #(( 2541 ./ | .// | /[cC]/* | \ 2245 2542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2246 ?: \\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \2543 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2247 2544 /usr/ucb/* ) ;; 2248 2545 *) … … 2281 2578 esac 2282 2579 2283 done2580 done 2284 2581 IFS=$as_save_IFS 2285 2582 … … 2297 2594 fi 2298 2595 fi 2299 { $as_echo "$as_me:$ LINENO: result: $INSTALL" >&52596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2300 2597 $as_echo "$INSTALL" >&6; } 2301 2598 … … 2308 2605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2309 2606 2310 { $as_echo "$as_me:$ LINENO: checking whether build environment is sane" >&52607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2311 2608 $as_echo_n "checking whether build environment is sane... " >&6; } 2312 2609 # Just in case 2313 2610 sleep 1 2314 2611 echo timestamp > conftest.file 2612 # Reject unsafe characters in $srcdir or the absolute working directory 2613 # name. Accept space and tab only in the latter. 2614 am_lf=' 2615 ' 2616 case `pwd` in 2617 *[\\\"\#\$\&\'\`$am_lf]*) 2618 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2619 esac 2620 case $srcdir in 2621 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2622 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2623 esac 2624 2315 2625 # Do `set' in a subshell so we don't clobber the current shell's 2316 2626 # arguments. Must try -L first in case configure is actually a … … 2319 2629 # directory). 2320 2630 if ( 2321 set X `ls -Lt $srcdir/configureconftest.file 2> /dev/null`2631 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2322 2632 if test "$*" = "X"; then 2323 2633 # -L didn't work. 2324 set X `ls -t $srcdir/configureconftest.file`2634 set X `ls -t "$srcdir/configure" conftest.file` 2325 2635 fi 2326 2636 rm -f conftest.file … … 2332 2642 # broken ls alias from the environment. This has actually 2333 2643 # happened. Such a system could not be considered "sane". 2334 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2335 alias in your environment" >&5 2336 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2337 alias in your environment" >&2;} 2338 { (exit 1); exit 1; }; } 2644 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2645 alias in your environment" "$LINENO" 5 2339 2646 fi 2340 2647 … … 2345 2652 : 2346 2653 else 2347 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2348 Check your system clock" >&5 2349 $as_echo "$as_me: error: newly created file is older than distributed files! 2350 Check your system clock" >&2;} 2351 { (exit 1); exit 1; }; } 2352 fi 2353 { $as_echo "$as_me:$LINENO: result: yes" >&5 2654 as_fn_error "newly created file is older than distributed files! 2655 Check your system clock" "$LINENO" 5 2656 fi 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2354 2658 $as_echo "yes" >&6; } 2355 2659 test "$program_prefix" != NONE && … … 2366 2670 am_aux_dir=`cd $ac_aux_dir && pwd` 2367 2671 2368 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2672 if test x"${MISSING+set}" != xset; then 2673 case $am_aux_dir in 2674 *\ * | *\ *) 2675 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2676 *) 2677 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2678 esac 2679 fi 2369 2680 # Use eval to expand $SHELL 2370 2681 if eval "$MISSING --run true"; then … … 2372 2683 else 2373 2684 am_missing_run= 2374 { $as_echo "$as_me:$ LINENO: WARNING: \`missing' script is too old or missing" >&52685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2375 2686 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2376 2687 fi 2377 2688 2378 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 2689 if test x"${install_sh}" != xset; then 2690 case $am_aux_dir in 2691 *\ * | *\ *) 2692 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2693 *) 2694 install_sh="\${SHELL} $am_aux_dir/install-sh" 2695 esac 2696 fi 2697 2698 # Installed binaries are usually stripped using `strip' when the user 2699 # run `make install-strip'. However `strip' might not be the right 2700 # tool to use in cross-compilation environments, therefore Automake 2701 # will honor the `STRIP' environment variable to overrule this program. 2702 if test "$cross_compiling" != no; then 2703 if test -n "$ac_tool_prefix"; then 2704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2705 set dummy ${ac_tool_prefix}strip; ac_word=$2 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2707 $as_echo_n "checking for $ac_word... " >&6; } 2708 if test "${ac_cv_prog_STRIP+set}" = set; then : 2709 $as_echo_n "(cached) " >&6 2710 else 2711 if test -n "$STRIP"; then 2712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2713 else 2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715 for as_dir in $PATH 2716 do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2721 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725 done 2726 done 2727 IFS=$as_save_IFS 2728 2729 fi 2730 fi 2731 STRIP=$ac_cv_prog_STRIP 2732 if test -n "$STRIP"; then 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2734 $as_echo "$STRIP" >&6; } 2735 else 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737 $as_echo "no" >&6; } 2738 fi 2739 2740 2741 fi 2742 if test -z "$ac_cv_prog_STRIP"; then 2743 ac_ct_STRIP=$STRIP 2744 # Extract the first word of "strip", so it can be a program name with args. 2745 set dummy strip; ac_word=$2 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2747 $as_echo_n "checking for $ac_word... " >&6; } 2748 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2749 $as_echo_n "(cached) " >&6 2750 else 2751 if test -n "$ac_ct_STRIP"; then 2752 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2753 else 2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2755 for as_dir in $PATH 2756 do 2757 IFS=$as_save_IFS 2758 test -z "$as_dir" && as_dir=. 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2761 ac_cv_prog_ac_ct_STRIP="strip" 2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2763 break 2 2764 fi 2765 done 2766 done 2767 IFS=$as_save_IFS 2768 2769 fi 2770 fi 2771 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2772 if test -n "$ac_ct_STRIP"; then 2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2774 $as_echo "$ac_ct_STRIP" >&6; } 2775 else 2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2777 $as_echo "no" >&6; } 2778 fi 2779 2780 if test "x$ac_ct_STRIP" = x; then 2781 STRIP=":" 2782 else 2783 case $cross_compiling:$ac_tool_warned in 2784 yes:) 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2787 ac_tool_warned=yes ;; 2788 esac 2789 STRIP=$ac_ct_STRIP 2790 fi 2791 else 2792 STRIP="$ac_cv_prog_STRIP" 2793 fi 2794 2795 fi 2796 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2797 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2379 2799 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2380 2800 if test -z "$MKDIR_P"; then 2381 if test "${ac_cv_path_mkdir+set}" = set; then 2801 if test "${ac_cv_path_mkdir+set}" = set; then : 2382 2802 $as_echo_n "(cached) " >&6 2383 2803 else … … 2387 2807 IFS=$as_save_IFS 2388 2808 test -z "$as_dir" && as_dir=. 2389 for ac_prog in mkdir gmkdir; do2809 for ac_prog in mkdir gmkdir; do 2390 2810 for ac_exec_ext in '' $ac_executable_extensions; do 2391 2811 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue … … 2399 2819 done 2400 2820 done 2401 done2821 done 2402 2822 IFS=$as_save_IFS 2403 2823 … … 2415 2835 fi 2416 2836 fi 2417 { $as_echo "$as_me:$ LINENO: result: $MKDIR_P" >&52837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2418 2838 $as_echo "$MKDIR_P" >&6; } 2419 2839 … … 2428 2848 # Extract the first word of "$ac_prog", so it can be a program name with args. 2429 2849 set dummy $ac_prog; ac_word=$2 2430 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&52850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2431 2851 $as_echo_n "checking for $ac_word... " >&6; } 2432 if test "${ac_cv_prog_AWK+set}" = set; then 2852 if test "${ac_cv_prog_AWK+set}" = set; then : 2433 2853 $as_echo_n "(cached) " >&6 2434 2854 else … … 2441 2861 IFS=$as_save_IFS 2442 2862 test -z "$as_dir" && as_dir=. 2443 for ac_exec_ext in '' $ac_executable_extensions; do2863 for ac_exec_ext in '' $ac_executable_extensions; do 2444 2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2445 2865 ac_cv_prog_AWK="$ac_prog" 2446 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2447 2867 break 2 2448 2868 fi 2449 2869 done 2450 done2870 done 2451 2871 IFS=$as_save_IFS 2452 2872 … … 2455 2875 AWK=$ac_cv_prog_AWK 2456 2876 if test -n "$AWK"; then 2457 { $as_echo "$as_me:$ LINENO: result: $AWK" >&52877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2458 2878 $as_echo "$AWK" >&6; } 2459 2879 else 2460 { $as_echo "$as_me:$ LINENO: result: no" >&52880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2461 2881 $as_echo "no" >&6; } 2462 2882 fi … … 2466 2886 done 2467 2887 2468 { $as_echo "$as_me:$ LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&52888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2469 2889 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2470 2890 set x ${MAKE-make} 2471 2891 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2472 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 2892 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2473 2893 $as_echo_n "(cached) " >&6 2474 2894 else … … 2488 2908 fi 2489 2909 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2490 { $as_echo "$as_me:$ LINENO: result: yes" >&52910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2491 2911 $as_echo "yes" >&6; } 2492 2912 SET_MAKE= 2493 2913 else 2494 { $as_echo "$as_me:$ LINENO: result: no" >&52914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495 2915 $as_echo "no" >&6; } 2496 2916 SET_MAKE="MAKE=${MAKE-make}" … … 2512 2932 # test to see if srcdir already configured 2513 2933 if test -f $srcdir/config.status; then 2514 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2515 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2516 { (exit 1); exit 1; }; } 2934 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2517 2935 fi 2518 2936 fi … … 2557 2975 2558 2976 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2559 2560 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}2561 2562 # Installed binaries are usually stripped using `strip' when the user2563 # run `make install-strip'. However `strip' might not be the right2564 # tool to use in cross-compilation environments, therefore Automake2565 # will honor the `STRIP' environment variable to overrule this program.2566 if test "$cross_compiling" != no; then2567 if test -n "$ac_tool_prefix"; then2568 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.2569 set dummy ${ac_tool_prefix}strip; ac_word=$22570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&52571 $as_echo_n "checking for $ac_word... " >&6; }2572 if test "${ac_cv_prog_STRIP+set}" = set; then2573 $as_echo_n "(cached) " >&62574 else2575 if test -n "$STRIP"; then2576 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.2577 else2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR2579 for as_dir in $PATH2580 do2581 IFS=$as_save_IFS2582 test -z "$as_dir" && as_dir=.2583 for ac_exec_ext in '' $ac_executable_extensions; do2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2585 ac_cv_prog_STRIP="${ac_tool_prefix}strip"2586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52587 break 22588 fi2589 done2590 done2591 IFS=$as_save_IFS2592 2593 fi2594 fi2595 STRIP=$ac_cv_prog_STRIP2596 if test -n "$STRIP"; then2597 { $as_echo "$as_me:$LINENO: result: $STRIP" >&52598 $as_echo "$STRIP" >&6; }2599 else2600 { $as_echo "$as_me:$LINENO: result: no" >&52601 $as_echo "no" >&6; }2602 fi2603 2604 2605 fi2606 if test -z "$ac_cv_prog_STRIP"; then2607 ac_ct_STRIP=$STRIP2608 # Extract the first word of "strip", so it can be a program name with args.2609 set dummy strip; ac_word=$22610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&52611 $as_echo_n "checking for $ac_word... " >&6; }2612 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then2613 $as_echo_n "(cached) " >&62614 else2615 if test -n "$ac_ct_STRIP"; then2616 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.2617 else2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR2619 for as_dir in $PATH2620 do2621 IFS=$as_save_IFS2622 test -z "$as_dir" && as_dir=.2623 for ac_exec_ext in '' $ac_executable_extensions; do2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then2625 ac_cv_prog_ac_ct_STRIP="strip"2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&52627 break 22628 fi2629 done2630 done2631 IFS=$as_save_IFS2632 2633 fi2634 fi2635 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP2636 if test -n "$ac_ct_STRIP"; then2637 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&52638 $as_echo "$ac_ct_STRIP" >&6; }2639 else2640 { $as_echo "$as_me:$LINENO: result: no" >&52641 $as_echo "no" >&6; }2642 fi2643 2644 if test "x$ac_ct_STRIP" = x; then2645 STRIP=":"2646 else2647 case $cross_compiling:$ac_tool_warned in2648 yes:)2649 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&52650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}2651 ac_tool_warned=yes ;;2652 esac2653 STRIP=$ac_ct_STRIP2654 fi2655 else2656 STRIP="$ac_cv_prog_STRIP"2657 fi2658 2659 fi2660 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"2661 2977 2662 2978 # We need awk for the "check" target. The system "awk" is bad on … … 2690 3006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2691 3007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2692 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2693 3009 $as_echo_n "checking for $ac_word... " >&6; } 2694 if test "${ac_cv_prog_CXX+set}" = set; then 3010 if test "${ac_cv_prog_CXX+set}" = set; then : 2695 3011 $as_echo_n "(cached) " >&6 2696 3012 else … … 2703 3019 IFS=$as_save_IFS 2704 3020 test -z "$as_dir" && as_dir=. 2705 for ac_exec_ext in '' $ac_executable_extensions; do3021 for ac_exec_ext in '' $ac_executable_extensions; do 2706 3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2707 3023 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2708 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2709 3025 break 2 2710 3026 fi 2711 3027 done 2712 done3028 done 2713 3029 IFS=$as_save_IFS 2714 3030 … … 2717 3033 CXX=$ac_cv_prog_CXX 2718 3034 if test -n "$CXX"; then 2719 { $as_echo "$as_me:$ LINENO: result: $CXX" >&53035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2720 3036 $as_echo "$CXX" >&6; } 2721 3037 else 2722 { $as_echo "$as_me:$ LINENO: result: no" >&53038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2723 3039 $as_echo "no" >&6; } 2724 3040 fi … … 2734 3050 # Extract the first word of "$ac_prog", so it can be a program name with args. 2735 3051 set dummy $ac_prog; ac_word=$2 2736 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2737 3053 $as_echo_n "checking for $ac_word... " >&6; } 2738 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3054 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 2739 3055 $as_echo_n "(cached) " >&6 2740 3056 else … … 2747 3063 IFS=$as_save_IFS 2748 3064 test -z "$as_dir" && as_dir=. 2749 for ac_exec_ext in '' $ac_executable_extensions; do3065 for ac_exec_ext in '' $ac_executable_extensions; do 2750 3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2751 3067 ac_cv_prog_ac_ct_CXX="$ac_prog" 2752 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2753 3069 break 2 2754 3070 fi 2755 3071 done 2756 done3072 done 2757 3073 IFS=$as_save_IFS 2758 3074 … … 2761 3077 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2762 3078 if test -n "$ac_ct_CXX"; then 2763 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CXX" >&53079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2764 3080 $as_echo "$ac_ct_CXX" >&6; } 2765 3081 else 2766 { $as_echo "$as_me:$ LINENO: result: no" >&53082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767 3083 $as_echo "no" >&6; } 2768 3084 fi … … 2777 3093 case $cross_compiling:$ac_tool_warned in 2778 3094 yes:) 2779 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&53095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2780 3096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2781 3097 ac_tool_warned=yes ;; … … 2788 3104 fi 2789 3105 # Provide some information about the compiler. 2790 $as_echo "$as_me:$ LINENO: checking for C++ compiler version" >&53106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 2791 3107 set X $ac_compile 2792 3108 ac_compiler=$2 2793 { (ac_try="$ac_compiler --version >&5" 3109 for ac_option in --version -v -V -qversion; do 3110 { { ac_try="$ac_compiler $ac_option >&5" 2794 3111 case "(($ac_try" in 2795 3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2796 3113 *) ac_try_echo=$ac_try;; 2797 3114 esac 2798 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2799 $as_echo "$ac_try_echo" )>&52800 (eval "$ac_compiler --version >&5") 2>&53115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3116 $as_echo "$ac_try_echo"; } >&5 3117 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2801 3118 ac_status=$? 2802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2803 (exit $ac_status); } 2804 { (ac_try="$ac_compiler -v >&5" 2805 case "(($ac_try" in 2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2807 *) ac_try_echo=$ac_try;; 2808 esac 2809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2810 $as_echo "$ac_try_echo") >&5 2811 (eval "$ac_compiler -v >&5") 2>&5 2812 ac_status=$? 2813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2814 (exit $ac_status); } 2815 { (ac_try="$ac_compiler -V >&5" 2816 case "(($ac_try" in 2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2818 *) ac_try_echo=$ac_try;; 2819 esac 2820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 2821 $as_echo "$ac_try_echo") >&5 2822 (eval "$ac_compiler -V >&5") 2>&5 2823 ac_status=$? 2824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 2825 (exit $ac_status); } 2826 2827 cat >conftest.$ac_ext <<_ACEOF 2828 /* confdefs.h. */ 2829 _ACEOF 2830 cat confdefs.h >>conftest.$ac_ext 2831 cat >>conftest.$ac_ext <<_ACEOF 3119 if test -s conftest.err; then 3120 sed '10a\ 3121 ... rest of stderr output deleted ... 3122 10q' conftest.err >conftest.er1 3123 cat conftest.er1 >&5 3124 rm -f conftest.er1 conftest.err 3125 fi 3126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3127 test $ac_status = 0; } 3128 done 3129 3130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2832 3131 /* end confdefs.h. */ 2833 3132 #include <stdio.h> 2834 3133 int 2835 3134 main () 2836 3135 { 3136 FILE *f = fopen ("conftest.out", "w"); 3137 return ferror (f) || fclose (f) != 0; 2837 3138 2838 3139 ; … … 2841 3142 _ACEOF 2842 3143 ac_clean_files_save=$ac_clean_files 2843 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out "3144 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2844 3145 # Try to create an executable without -o first, disregard a.out. 2845 3146 # It will help us diagnose broken compilers, and finding out an intuition 2846 3147 # of exeext. 2847 { $as_echo "$as_me:$ LINENO: checking for C++ compiler default output file name" >&53148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 2848 3149 $as_echo_n "checking for C++ compiler default output file name... " >&6; } 2849 3150 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` … … 2862 3163 rm -f $ac_rmfiles 2863 3164 2864 if { (ac_try="$ac_link_default"3165 if { { ac_try="$ac_link_default" 2865 3166 case "(($ac_try" in 2866 3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2867 3168 *) ac_try_echo=$ac_try;; 2868 3169 esac 2869 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2870 $as_echo "$ac_try_echo" )>&53170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3171 $as_echo "$ac_try_echo"; } >&5 2871 3172 (eval "$ac_link_default") 2>&5 2872 3173 ac_status=$? 2873 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52874 (exit $ac_status); }; then3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3175 test $ac_status = 0; }; then : 2875 3176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2876 3177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' … … 2889 3190 break;; 2890 3191 *.* ) 2891 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;3192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2892 3193 then :; else 2893 3194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` … … 2908 3209 ac_file='' 2909 3210 fi 2910 2911 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2912 3212 $as_echo "$ac_file" >&6; } 2913 if test -z "$ac_file"; then 3213 if test -z "$ac_file"; then : 2914 3214 $as_echo "$as_me: failed program was:" >&5 2915 3215 sed 's/^/| /' conftest.$ac_ext >&5 2916 3216 2917 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2918 3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2919 { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables 2920 See \`config.log' for more details." >&5 2921 $as_echo "$as_me: error: C++ compiler cannot create executables 2922 See \`config.log' for more details." >&2;} 2923 { (exit 77); exit 77; }; }; } 2924 fi 2925 3219 { as_fn_set_status 77 3220 as_fn_error "C++ compiler cannot create executables 3221 See \`config.log' for more details." "$LINENO" 5; }; } 3222 fi 2926 3223 ac_exeext=$ac_cv_exeext 2927 3224 2928 3225 # Check that the compiler produces executables we can run. If not, either 2929 3226 # the compiler is broken, or we cross compile. 2930 { $as_echo "$as_me:$ LINENO: checking whether the C++ compiler works" >&53227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 2931 3228 $as_echo_n "checking whether the C++ compiler works... " >&6; } 2932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.02933 3229 # If not cross compiling, check that we can run a simple program. 2934 3230 if test "$cross_compiling" != yes; then 2935 3231 if { ac_try='./$ac_file' 2936 { (case "(($ac_try" in3232 { { case "(($ac_try" in 2937 3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2938 3234 *) ac_try_echo=$ac_try;; 2939 3235 esac 2940 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2941 $as_echo "$ac_try_echo" )>&53236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3237 $as_echo "$ac_try_echo"; } >&5 2942 3238 (eval "$ac_try") 2>&5 2943 3239 ac_status=$? 2944 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52945 (exit $ac_status); }; }; then3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3241 test $ac_status = 0; }; }; then 2946 3242 cross_compiling=no 2947 3243 else … … 2949 3245 cross_compiling=yes 2950 3246 else 2951 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2952 3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2953 { { $as_echo "$as_me:$LINENO: error:cannot run C++ compiled programs.3249 as_fn_error "cannot run C++ compiled programs. 2954 3250 If you meant to cross compile, use \`--host'. 2955 See \`config.log' for more details." >&5 2956 $as_echo "$as_me: error: cannot run C++ compiled programs. 2957 If you meant to cross compile, use \`--host'. 2958 See \`config.log' for more details." >&2;} 2959 { (exit 1); exit 1; }; }; } 3251 See \`config.log' for more details." "$LINENO" 5; } 2960 3252 fi 2961 3253 fi 2962 3254 fi 2963 { $as_echo "$as_me:$ LINENO: result: yes" >&53255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2964 3256 $as_echo "yes" >&6; } 2965 3257 2966 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3258 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 2967 3259 ac_clean_files=$ac_clean_files_save 2968 3260 # Check that the compiler produces executables we can run. If not, either 2969 3261 # the compiler is broken, or we cross compile. 2970 { $as_echo "$as_me:$ LINENO: checking whether we are cross compiling" >&53262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2971 3263 $as_echo_n "checking whether we are cross compiling... " >&6; } 2972 { $as_echo "$as_me:$ LINENO: result: $cross_compiling" >&53264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2973 3265 $as_echo "$cross_compiling" >&6; } 2974 3266 2975 { $as_echo "$as_me:$ LINENO: checking for suffix of executables" >&53267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2976 3268 $as_echo_n "checking for suffix of executables... " >&6; } 2977 if { (ac_try="$ac_link"3269 if { { ac_try="$ac_link" 2978 3270 case "(($ac_try" in 2979 3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2980 3272 *) ac_try_echo=$ac_try;; 2981 3273 esac 2982 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""2983 $as_echo "$ac_try_echo" )>&53274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3275 $as_echo "$ac_try_echo"; } >&5 2984 3276 (eval "$ac_link") 2>&5 2985 3277 ac_status=$? 2986 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&52987 (exit $ac_status); }; then3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3279 test $ac_status = 0; }; then : 2988 3280 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2989 3281 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will … … 3000 3292 done 3001 3293 else 3002 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3003 3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3004 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3005 See \`config.log' for more details." >&5 3006 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3007 See \`config.log' for more details." >&2;} 3008 { (exit 1); exit 1; }; }; } 3009 fi 3010 3296 as_fn_error "cannot compute suffix of executables: cannot compile and link 3297 See \`config.log' for more details." "$LINENO" 5; } 3298 fi 3011 3299 rm -f conftest$ac_cv_exeext 3012 { $as_echo "$as_me:$ LINENO: result: $ac_cv_exeext" >&53300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3013 3301 $as_echo "$ac_cv_exeext" >&6; } 3014 3302 … … 3016 3304 EXEEXT=$ac_cv_exeext 3017 3305 ac_exeext=$EXEEXT 3018 { $as_echo "$as_me:$ LINENO: checking for suffix of object files" >&53306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3019 3307 $as_echo_n "checking for suffix of object files... " >&6; } 3020 if test "${ac_cv_objext+set}" = set; then 3308 if test "${ac_cv_objext+set}" = set; then : 3021 3309 $as_echo_n "(cached) " >&6 3022 3310 else 3023 cat >conftest.$ac_ext <<_ACEOF 3024 /* confdefs.h. */ 3025 _ACEOF 3026 cat confdefs.h >>conftest.$ac_ext 3027 cat >>conftest.$ac_ext <<_ACEOF 3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3028 3312 /* end confdefs.h. */ 3029 3313 … … 3037 3321 _ACEOF 3038 3322 rm -f conftest.o conftest.obj 3039 if { (ac_try="$ac_compile"3323 if { { ac_try="$ac_compile" 3040 3324 case "(($ac_try" in 3041 3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3042 3326 *) ac_try_echo=$ac_try;; 3043 3327 esac 3044 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""3045 $as_echo "$ac_try_echo" )>&53328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3329 $as_echo "$ac_try_echo"; } >&5 3046 3330 (eval "$ac_compile") 2>&5 3047 3331 ac_status=$? 3048 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&53049 (exit $ac_status); }; then3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3333 test $ac_status = 0; }; then : 3050 3334 for ac_file in conftest.o conftest.obj conftest.*; do 3051 3335 test -f "$ac_file" || continue; … … 3060 3344 sed 's/^/| /' conftest.$ac_ext >&5 3061 3345 3062 { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&53346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3063 3347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3064 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3065 See \`config.log' for more details." >&5 3066 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3067 See \`config.log' for more details." >&2;} 3068 { (exit 1); exit 1; }; }; } 3069 fi 3070 3348 as_fn_error "cannot compute suffix of object files: cannot compile 3349 See \`config.log' for more details." "$LINENO" 5; } 3350 fi 3071 3351 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3072 3352 fi 3073 { $as_echo "$as_me:$ LINENO: result: $ac_cv_objext" >&53353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3074 3354 $as_echo "$ac_cv_objext" >&6; } 3075 3355 OBJEXT=$ac_cv_objext 3076 3356 ac_objext=$OBJEXT 3077 { $as_echo "$as_me:$ LINENO: checking whether we are using the GNU C++ compiler" >&53357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3078 3358 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3079 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3359 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 3080 3360 $as_echo_n "(cached) " >&6 3081 3361 else 3082 cat >conftest.$ac_ext <<_ACEOF 3083 /* confdefs.h. */ 3084 _ACEOF 3085 cat confdefs.h >>conftest.$ac_ext 3086 cat >>conftest.$ac_ext <<_ACEOF 3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3087 3363 /* end confdefs.h. */ 3088 3364 … … 3098 3374 } 3099 3375 _ACEOF 3100 rm -f conftest.$ac_objext 3101 if { (ac_try="$ac_compile" 3102 case "(($ac_try" in 3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3104 *) ac_try_echo=$ac_try;; 3105 esac 3106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3107 $as_echo "$ac_try_echo") >&5 3108 (eval "$ac_compile") 2>conftest.er1 3109 ac_status=$? 3110 grep -v '^ *+' conftest.er1 >conftest.err 3111 rm -f conftest.er1 3112 cat conftest.err >&5 3113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3114 (exit $ac_status); } && { 3115 test -z "$ac_cxx_werror_flag" || 3116 test ! -s conftest.err 3117 } && test -s conftest.$ac_objext; then 3376 if ac_fn_cxx_try_compile "$LINENO"; then : 3118 3377 ac_compiler_gnu=yes 3119 3378 else 3120 $as_echo "$as_me: failed program was:" >&5 3121 sed 's/^/| /' conftest.$ac_ext >&5 3122 3123 ac_compiler_gnu=no 3124 fi 3125 3379 ac_compiler_gnu=no 3380 fi 3126 3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3127 3382 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3128 3383 3129 3384 fi 3130 { $as_echo "$as_me:$ LINENO: result: $ac_cv_cxx_compiler_gnu" >&53385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3131 3386 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3132 3387 if test $ac_compiler_gnu = yes; then … … 3137 3392 ac_test_CXXFLAGS=${CXXFLAGS+set} 3138 3393 ac_save_CXXFLAGS=$CXXFLAGS 3139 { $as_echo "$as_me:$ LINENO: checking whether $CXX accepts -g" >&53394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3140 3395 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 3141 if test "${ac_cv_prog_cxx_g+set}" = set; then 3396 if test "${ac_cv_prog_cxx_g+set}" = set; then : 3142 3397 $as_echo_n "(cached) " >&6 3143 3398 else … … 3146 3401 ac_cv_prog_cxx_g=no 3147 3402 CXXFLAGS="-g" 3148 cat >conftest.$ac_ext <<_ACEOF 3149 /* confdefs.h. */ 3150 _ACEOF 3151 cat confdefs.h >>conftest.$ac_ext 3152 cat >>conftest.$ac_ext <<_ACEOF 3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3153 3404 /* end confdefs.h. */ 3154 3405 … … 3161 3412 } 3162 3413 _ACEOF 3163 rm -f conftest.$ac_objext 3164 if { (ac_try="$ac_compile" 3165 case "(($ac_try" in 3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3167 *) ac_try_echo=$ac_try;; 3168 esac 3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3170 $as_echo "$ac_try_echo") >&5 3171 (eval "$ac_compile") 2>conftest.er1 3172 ac_status=$? 3173 grep -v '^ *+' conftest.er1 >conftest.err 3174 rm -f conftest.er1 3175 cat conftest.err >&5 3176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3177 (exit $ac_status); } && { 3178 test -z "$ac_cxx_werror_flag" || 3179 test ! -s conftest.err 3180 } && test -s conftest.$ac_objext; then 3414 if ac_fn_cxx_try_compile "$LINENO"; then : 3181 3415 ac_cv_prog_cxx_g=yes 3182 3416 else 3183 $as_echo "$as_me: failed program was:" >&5 3184 sed 's/^/| /' conftest.$ac_ext >&5 3185 3186 CXXFLAGS="" 3187 cat >conftest.$ac_ext <<_ACEOF 3188 /* confdefs.h. */ 3189 _ACEOF 3190 cat confdefs.h >>conftest.$ac_ext 3191 cat >>conftest.$ac_ext <<_ACEOF 3417 CXXFLAGS="" 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192 3419 /* end confdefs.h. */ 3193 3420 … … 3200 3427 } 3201 3428 _ACEOF 3202 rm -f conftest.$ac_objext 3203 if { (ac_try="$ac_compile" 3204 case "(($ac_try" in 3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3206 *) ac_try_echo=$ac_try;; 3207 esac 3208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3209 $as_echo "$ac_try_echo") >&5 3210 (eval "$ac_compile") 2>conftest.er1 3211 ac_status=$? 3212 grep -v '^ *+' conftest.er1 >conftest.err 3213 rm -f conftest.er1 3214 cat conftest.err >&5 3215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3216 (exit $ac_status); } && { 3217 test -z "$ac_cxx_werror_flag" || 3218 test ! -s conftest.err 3219 } && test -s conftest.$ac_objext; then 3220 : 3221 else 3222 $as_echo "$as_me: failed program was:" >&5 3223 sed 's/^/| /' conftest.$ac_ext >&5 3224 3225 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3429 if ac_fn_cxx_try_compile "$LINENO"; then : 3430 3431 else 3432 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3226 3433 CXXFLAGS="-g" 3227 cat >conftest.$ac_ext <<_ACEOF 3228 /* confdefs.h. */ 3229 _ACEOF 3230 cat confdefs.h >>conftest.$ac_ext 3231 cat >>conftest.$ac_ext <<_ACEOF 3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3232 3435 /* end confdefs.h. */ 3233 3436 … … 3240 3443 } 3241 3444 _ACEOF 3242 rm -f conftest.$ac_objext 3243 if { (ac_try="$ac_compile" 3244 case "(($ac_try" in 3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246 *) ac_try_echo=$ac_try;; 3247 esac 3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3249 $as_echo "$ac_try_echo") >&5 3250 (eval "$ac_compile") 2>conftest.er1 3251 ac_status=$? 3252 grep -v '^ *+' conftest.er1 >conftest.err 3253 rm -f conftest.er1 3254 cat conftest.err >&5 3255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3256 (exit $ac_status); } && { 3257 test -z "$ac_cxx_werror_flag" || 3258 test ! -s conftest.err 3259 } && test -s conftest.$ac_objext; then 3445 if ac_fn_cxx_try_compile "$LINENO"; then : 3260 3446 ac_cv_prog_cxx_g=yes 3261 else 3262 $as_echo "$as_me: failed program was:" >&5 3263 sed 's/^/| /' conftest.$ac_ext >&5 3264 3265 3266 fi 3267 3447 fi 3268 3448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3269 3449 fi 3270 3271 3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3272 3451 fi 3273 3274 3452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3275 3453 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3276 3454 fi 3277 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cxx_g" >&53455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3278 3456 $as_echo "$ac_cv_prog_cxx_g" >&6; } 3279 3457 if test "$ac_test_CXXFLAGS" = set; then … … 3305 3483 cat > confinc << 'END' 3306 3484 am__doit: 3307 @echo done3485 @echo this is the am__doit target 3308 3486 .PHONY: am__doit 3309 3487 END 3310 3488 # If we don't find an include directive, just comment out the code. 3311 { $as_echo "$as_me:$ LINENO: checking for style of include used by $am_make" >&53489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3312 3490 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3313 3491 am__include="#" … … 3316 3494 # First try GNU make style include. 3317 3495 echo "include confinc" > confmf 3318 # We grep out `Entering directory' and `Leaving directory' 3319 # messages which can occur if `w' ends up in MAKEFLAGS. 3320 # In particular we don't look at `^make:' because GNU make might 3321 # be invoked under some other name (usually "gmake"), in which 3322 # case it prints its new name instead of `make'. 3323 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3324 am__include=include 3325 am__quote= 3326 _am_result=GNU 3327 fi 3496 # Ignore all kinds of additional output from `make'. 3497 case `$am_make -s -f confmf 2> /dev/null` in #( 3498 *the\ am__doit\ target*) 3499 am__include=include 3500 am__quote= 3501 _am_result=GNU 3502 ;; 3503 esac 3328 3504 # Now try BSD make style include. 3329 3505 if test "$am__include" = "#"; then 3330 3506 echo '.include "confinc"' > confmf 3331 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3332 am__include=.include 3333 am__quote="\"" 3334 _am_result=BSD 3335 fi 3336 fi 3337 3338 3339 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 3507 case `$am_make -s -f confmf 2> /dev/null` in #( 3508 *the\ am__doit\ target*) 3509 am__include=.include 3510 am__quote="\"" 3511 _am_result=BSD 3512 ;; 3513 esac 3514 fi 3515 3516 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3340 3518 $as_echo "$_am_result" >&6; } 3341 3519 rm -f confinc confmf 3342 3520 3343 3521 # Check whether --enable-dependency-tracking was given. 3344 if test "${enable_dependency_tracking+set}" = set; then 3522 if test "${enable_dependency_tracking+set}" = set; then : 3345 3523 enableval=$enable_dependency_tracking; 3346 3524 fi … … 3362 3540 depcc="$CXX" am_compiler_list= 3363 3541 3364 { $as_echo "$as_me:$ LINENO: checking dependency style of $depcc" >&53542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3365 3543 $as_echo_n "checking dependency style of $depcc... " >&6; } 3366 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then 3544 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 3367 3545 $as_echo_n "(cached) " >&6 3368 3546 else … … 3390 3568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3391 3569 fi 3570 am__universal=false 3571 case " $depcc " in #( 3572 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3573 esac 3574 3392 3575 for depmode in $am_compiler_list; do 3393 3576 # Setup a source with many dependencies, because some compilers … … 3407 3590 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3408 3591 3592 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3593 # mode. It turns out that the SunPro C++ compiler does not properly 3594 # handle `-M -o', and we need to detect this. Also, some Intel 3595 # versions had trouble with output in subdirs 3596 am__obj=sub/conftest.${OBJEXT-o} 3597 am__minus_obj="-o $am__obj" 3409 3598 case $depmode in 3599 gcc) 3600 # This depmode causes a compiler race in universal mode. 3601 test "$am__universal" = false || continue 3602 ;; 3410 3603 nosideeffect) 3411 3604 # after this tag, mechanisms are not by side-effect, so they'll … … 3417 3610 fi 3418 3611 ;; 3612 msvisualcpp | msvcmsys) 3613 # This compiler won't grok `-c -o', but also, the minuso test has 3614 # not run yet. These depmodes are late enough in the game, and 3615 # so weak that their functioning should not be impacted. 3616 am__obj=conftest.${OBJEXT-o} 3617 am__minus_obj= 3618 ;; 3419 3619 none) break ;; 3420 3620 esac 3421 # We check with `-c' and `-o' for the sake of the "dashmstdout"3422 # mode. It turns out that the SunPro C++ compiler does not properly3423 # handle `-M -o', and we need to detect this.3424 3621 if depmode=$depmode \ 3425 source=sub/conftest.c object= sub/conftest.${OBJEXT-o}\3622 source=sub/conftest.c object=$am__obj \ 3426 3623 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3427 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o}sub/conftest.c \3624 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3428 3625 >/dev/null 2>conftest.err && 3429 3626 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3430 3627 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3431 grep sub/conftest.${OBJEXT-o}sub/conftest.Po > /dev/null 2>&1 &&3628 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3432 3629 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3433 3630 # icc doesn't choke on unknown options, it will just issue warnings … … 3453 3650 3454 3651 fi 3455 { $as_echo "$as_me:$ LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&53652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3456 3653 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3457 3654 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type … … 3468 3665 3469 3666 3470 # Check whether --enable-shared was given. 3471 if test "${enable_shared+set}" = set; then 3472 enableval=$enable_shared; p=${PACKAGE-default} 3473 case $enableval in 3474 yes) enable_shared=yes ;; 3475 no) enable_shared=no ;; 3476 *) 3477 enable_shared=no 3478 # Look at the argument we got. We use all the common list separators. 3479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3480 for pkg in $enableval; do 3481 IFS="$lt_save_ifs" 3482 if test "X$pkg" = "X$p"; then 3483 enable_shared=yes 3484 fi 3485 done 3486 IFS="$lt_save_ifs" 3487 ;; 3488 esac 3489 else 3490 enable_shared=yes 3491 fi 3492 3493 3494 # Check whether --enable-static was given. 3495 if test "${enable_static+set}" = set; then 3496 enableval=$enable_static; p=${PACKAGE-default} 3497 case $enableval in 3498 yes) enable_static=yes ;; 3499 no) enable_static=no ;; 3500 *) 3501 enable_static=no 3502 # Look at the argument we got. We use all the common list separators. 3503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3504 for pkg in $enableval; do 3505 IFS="$lt_save_ifs" 3506 if test "X$pkg" = "X$p"; then 3507 enable_static=yes 3508 fi 3509 done 3510 IFS="$lt_save_ifs" 3511 ;; 3512 esac 3513 else 3514 enable_static=yes 3515 fi 3516 3517 3518 # Check whether --enable-fast-install was given. 3519 if test "${enable_fast_install+set}" = set; then 3520 enableval=$enable_fast_install; p=${PACKAGE-default} 3521 case $enableval in 3522 yes) enable_fast_install=yes ;; 3523 no) enable_fast_install=no ;; 3524 *) 3525 enable_fast_install=no 3526 # Look at the argument we got. We use all the common list separators. 3527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3528 for pkg in $enableval; do 3529 IFS="$lt_save_ifs" 3530 if test "X$pkg" = "X$p"; then 3531 enable_fast_install=yes 3532 fi 3533 done 3534 IFS="$lt_save_ifs" 3535 ;; 3536 esac 3537 else 3538 enable_fast_install=yes 3539 fi 3540 3667 case `pwd` in 3668 *\ * | *\ *) 3669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3670 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3671 esac 3672 3673 3674 3675 macro_version='2.2.6' 3676 macro_revision='1.3012' 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 ltmain="$ac_aux_dir/ltmain.sh" 3541 3691 3542 3692 # Make sure we can run config.sub. 3543 3693 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3544 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3545 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3546 { (exit 1); exit 1; }; } 3547 3548 { $as_echo "$as_me:$LINENO: checking build system type" >&5 3694 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3695 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3549 3697 $as_echo_n "checking build system type... " >&6; } 3550 if test "${ac_cv_build+set}" = set; then 3698 if test "${ac_cv_build+set}" = set; then : 3551 3699 $as_echo_n "(cached) " >&6 3552 3700 else … … 3555 3703 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3556 3704 test "x$ac_build_alias" = x && 3557 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3558 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3559 { (exit 1); exit 1; }; } 3705 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3560 3706 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3561 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3562 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3563 { (exit 1); exit 1; }; } 3564 3565 fi 3566 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3707 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3708 3709 fi 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3567 3711 $as_echo "$ac_cv_build" >&6; } 3568 3712 case $ac_cv_build in 3569 3713 *-*-*) ;; 3570 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3571 $as_echo "$as_me: error: invalid value of canonical build" >&2;} 3572 { (exit 1); exit 1; }; };; 3714 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3573 3715 esac 3574 3716 build=$ac_cv_build … … 3586 3728 3587 3729 3588 { $as_echo "$as_me:$ LINENO: checking host system type" >&53730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3589 3731 $as_echo_n "checking host system type... " >&6; } 3590 if test "${ac_cv_host+set}" = set; then 3732 if test "${ac_cv_host+set}" = set; then : 3591 3733 $as_echo_n "(cached) " >&6 3592 3734 else … … 3595 3737 else 3596 3738 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3597 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3598 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3599 { (exit 1); exit 1; }; } 3600 fi 3601 3602 fi 3603 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3739 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3740 fi 3741 3742 fi 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3604 3744 $as_echo "$ac_cv_host" >&6; } 3605 3745 case $ac_cv_host in 3606 3746 *-*-*) ;; 3607 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3608 $as_echo "$as_me: error: invalid value of canonical host" >&2;} 3609 { (exit 1); exit 1; }; };; 3747 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3610 3748 esac 3611 3749 host=$ac_cv_host … … 3631 3769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3632 3770 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3633 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3634 3772 $as_echo_n "checking for $ac_word... " >&6; } 3635 if test "${ac_cv_prog_CC+set}" = set; then 3773 if test "${ac_cv_prog_CC+set}" = set; then : 3636 3774 $as_echo_n "(cached) " >&6 3637 3775 else … … 3644 3782 IFS=$as_save_IFS 3645 3783 test -z "$as_dir" && as_dir=. 3646 for ac_exec_ext in '' $ac_executable_extensions; do3784 for ac_exec_ext in '' $ac_executable_extensions; do 3647 3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3648 3786 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3649 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3650 3788 break 2 3651 3789 fi 3652 3790 done 3653 done3791 done 3654 3792 IFS=$as_save_IFS 3655 3793 … … 3658 3796 CC=$ac_cv_prog_CC 3659 3797 if test -n "$CC"; then 3660 { $as_echo "$as_me:$ LINENO: result: $CC" >&53798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3661 3799 $as_echo "$CC" >&6; } 3662 3800 else 3663 { $as_echo "$as_me:$ LINENO: result: no" >&53801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664 3802 $as_echo "no" >&6; } 3665 3803 fi … … 3671 3809 # Extract the first word of "gcc", so it can be a program name with args. 3672 3810 set dummy gcc; ac_word=$2 3673 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3674 3812 $as_echo_n "checking for $ac_word... " >&6; } 3675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3676 3814 $as_echo_n "(cached) " >&6 3677 3815 else … … 3684 3822 IFS=$as_save_IFS 3685 3823 test -z "$as_dir" && as_dir=. 3686 for ac_exec_ext in '' $ac_executable_extensions; do3824 for ac_exec_ext in '' $ac_executable_extensions; do 3687 3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3688 3826 ac_cv_prog_ac_ct_CC="gcc" 3689 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3690 3828 break 2 3691 3829 fi 3692 3830 done 3693 done3831 done 3694 3832 IFS=$as_save_IFS 3695 3833 … … 3698 3836 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3699 3837 if test -n "$ac_ct_CC"; then 3700 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CC" >&53838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3701 3839 $as_echo "$ac_ct_CC" >&6; } 3702 3840 else 3703 { $as_echo "$as_me:$ LINENO: result: no" >&53841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3704 3842 $as_echo "no" >&6; } 3705 3843 fi … … 3710 3848 case $cross_compiling:$ac_tool_warned in 3711 3849 yes:) 3712 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&53850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3713 3851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3714 3852 ac_tool_warned=yes ;; … … 3724 3862 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3725 3863 set dummy ${ac_tool_prefix}cc; ac_word=$2 3726 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3727 3865 $as_echo_n "checking for $ac_word... " >&6; } 3728 if test "${ac_cv_prog_CC+set}" = set; then 3866 if test "${ac_cv_prog_CC+set}" = set; then : 3729 3867 $as_echo_n "(cached) " >&6 3730 3868 else … … 3737 3875 IFS=$as_save_IFS 3738 3876 test -z "$as_dir" && as_dir=. 3739 for ac_exec_ext in '' $ac_executable_extensions; do3877 for ac_exec_ext in '' $ac_executable_extensions; do 3740 3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3741 3879 ac_cv_prog_CC="${ac_tool_prefix}cc" 3742 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3743 3881 break 2 3744 3882 fi 3745 3883 done 3746 done3884 done 3747 3885 IFS=$as_save_IFS 3748 3886 … … 3751 3889 CC=$ac_cv_prog_CC 3752 3890 if test -n "$CC"; then 3753 { $as_echo "$as_me:$ LINENO: result: $CC" >&53891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3754 3892 $as_echo "$CC" >&6; } 3755 3893 else 3756 { $as_echo "$as_me:$ LINENO: result: no" >&53894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3757 3895 $as_echo "no" >&6; } 3758 3896 fi … … 3764 3902 # Extract the first word of "cc", so it can be a program name with args. 3765 3903 set dummy cc; ac_word=$2 3766 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3767 3905 $as_echo_n "checking for $ac_word... " >&6; } 3768 if test "${ac_cv_prog_CC+set}" = set; then 3906 if test "${ac_cv_prog_CC+set}" = set; then : 3769 3907 $as_echo_n "(cached) " >&6 3770 3908 else … … 3778 3916 IFS=$as_save_IFS 3779 3917 test -z "$as_dir" && as_dir=. 3780 for ac_exec_ext in '' $ac_executable_extensions; do3918 for ac_exec_ext in '' $ac_executable_extensions; do 3781 3919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3782 3920 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then … … 3785 3923 fi 3786 3924 ac_cv_prog_CC="cc" 3787 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3788 3926 break 2 3789 3927 fi 3790 3928 done 3791 done3929 done 3792 3930 IFS=$as_save_IFS 3793 3931 … … 3808 3946 CC=$ac_cv_prog_CC 3809 3947 if test -n "$CC"; then 3810 { $as_echo "$as_me:$ LINENO: result: $CC" >&53948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3811 3949 $as_echo "$CC" >&6; } 3812 3950 else 3813 { $as_echo "$as_me:$ LINENO: result: no" >&53951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3814 3952 $as_echo "no" >&6; } 3815 3953 fi … … 3823 3961 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3824 3962 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3825 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&53963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3826 3964 $as_echo_n "checking for $ac_word... " >&6; } 3827 if test "${ac_cv_prog_CC+set}" = set; then 3965 if test "${ac_cv_prog_CC+set}" = set; then : 3828 3966 $as_echo_n "(cached) " >&6 3829 3967 else … … 3836 3974 IFS=$as_save_IFS 3837 3975 test -z "$as_dir" && as_dir=. 3838 for ac_exec_ext in '' $ac_executable_extensions; do3976 for ac_exec_ext in '' $ac_executable_extensions; do 3839 3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3840 3978 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3841 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&53979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3842 3980 break 2 3843 3981 fi 3844 3982 done 3845 done3983 done 3846 3984 IFS=$as_save_IFS 3847 3985 … … 3850 3988 CC=$ac_cv_prog_CC 3851 3989 if test -n "$CC"; then 3852 { $as_echo "$as_me:$ LINENO: result: $CC" >&53990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3853 3991 $as_echo "$CC" >&6; } 3854 3992 else 3855 { $as_echo "$as_me:$ LINENO: result: no" >&53993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3856 3994 $as_echo "no" >&6; } 3857 3995 fi … … 3867 4005 # Extract the first word of "$ac_prog", so it can be a program name with args. 3868 4006 set dummy $ac_prog; ac_word=$2 3869 { $as_echo "$as_me:$ LINENO: checking for $ac_word" >&54007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3870 4008 $as_echo_n "checking for $ac_word... " >&6; } 3871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 4009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3872 4010 $as_echo_n "(cached) " >&6 3873 4011 else … … 3880 4018 IFS=$as_save_IFS 3881 4019 test -z "$as_dir" && as_dir=. 3882 for ac_exec_ext in '' $ac_executable_extensions; do4020 for ac_exec_ext in '' $ac_executable_extensions; do 3883 4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3884 4022 ac_cv_prog_ac_ct_CC="$ac_prog" 3885 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&54023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3886 4024 break 2 3887 4025 fi 3888 4026 done 3889 done4027 done 3890 4028 IFS=$as_save_IFS 3891 4029 … … 3894 4032 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3895 4033 if test -n "$ac_ct_CC"; then 3896 { $as_echo "$as_me:$ LINENO: result: $ac_ct_CC" >&54034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3897 4035 $as_echo "$ac_ct_CC" >&6; } 3898 4036 else 3899 { $as_echo "$as_me:$ LINENO: result: no" >&54037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3900 4038 $as_echo "no" >&6; } 3901 4039 fi … … 3910 4048 case $cross_compiling:$ac_tool_warned in 3911 4049 yes:) 3912 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&54050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3913 4051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3914 4052 ac_tool_warned=yes ;; … … 3921 4059 3922 4060 3923 test -z "$CC" && { { $as_echo "$as_me:$ LINENO: error: in \`$ac_pwd':" >&54061 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3924 4062 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3925 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3926 See \`config.log' for more details." >&5 3927 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3928 See \`config.log' for more details." >&2;} 3929 { (exit 1); exit 1; }; }; } 4063 as_fn_error "no acceptable C compiler found in \$PATH 4064 See \`config.log' for more details." "$LINENO" 5; } 3930 4065 3931 4066 # Provide some information about the compiler. 3932 $as_echo "$as_me:$ LINENO: checking for C compiler version" >&54067 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3933 4068 set X $ac_compile 3934 4069 ac_compiler=$2 3935 { (ac_try="$ac_compiler --version >&5" 4070 for ac_option in --version -v -V -qversion; do 4071 { { ac_try="$ac_compiler $ac_option >&5" 3936 4072 case "(($ac_try" in 3937 4073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3938 4074 *) ac_try_echo=$ac_try;; 3939 4075 esac 3940 eval ac_try_echo="\"\$as_me:$ LINENO: $ac_try_echo\""3941 $as_echo "$ac_try_echo" )>&53942 (eval "$ac_compiler --version >&5") 2>&54076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4077 $as_echo "$ac_try_echo"; } >&5 4078 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3943 4079 ac_status=$? 3944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3945 (exit $ac_status); } 3946 { (ac_try="$ac_compiler -v >&5" 3947 case "(($ac_try" in 3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3949 *) ac_try_echo=$ac_try;; 3950 esac 3951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3952 $as_echo "$ac_try_echo") >&5 3953 (eval "$ac_compiler -v >&5") 2>&5 3954 ac_status=$? 3955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3956 (exit $ac_status); } 3957 { (ac_try="$ac_compiler -V >&5" 3958 case "(($ac_try" in 3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3960 *) ac_try_echo=$ac_try;; 3961 esac 3962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3963 $as_echo "$ac_try_echo") >&5 3964 (eval "$ac_compiler -V >&5") 2>&5 3965 ac_status=$? 3966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3967 (exit $ac_status); } 3968 3969 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 4080 if test -s conftest.err; then 4081 sed '10a\ 4082 ... rest of stderr output deleted ... 4083 10q' conftest.err >conftest.er1 4084 cat conftest.er1 >&5 4085 rm -f conftest.er1 conftest.err 4086 fi 4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4088 test $ac_status = 0; } 4089 done 4090 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3970 4092 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3971 if test "${ac_cv_c_compiler_gnu+set}" = set; then 4093 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3972 4094 $as_echo_n "(cached) " >&6 3973 4095 else 3974 cat >conftest.$ac_ext <<_ACEOF 3975 /* confdefs.h. */ 3976 _ACEOF 3977 cat confdefs.h >>conftest.$ac_ext 3978 cat >>conftest.$ac_ext <<_ACEOF 4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979 4097 /* end confdefs.h. */ 3980 4098 … … 3990 4108 } 3991 4109 _ACEOF 3992 rm -f conftest.$ac_objext 3993 if { (ac_try="$ac_compile" 3994 case "(($ac_try" in 3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3996 *) ac_try_echo=$ac_try;; 3997 esac 3998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3999 $as_echo "$ac_try_echo") >&5 4000 (eval "$ac_compile") 2>conftest.er1 4001 ac_status=$? 4002 grep -v '^ *+' conftest.er1 >conftest.err 4003 rm -f conftest.er1 4004 cat conftest.err >&5 4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4006 (exit $ac_status); } && { 4007 test -z "$ac_c_werror_flag" || 4008 test ! -s conftest.err 4009 } && test -s conftest.$ac_objext; then 4110 if ac_fn_c_try_compile "$LINENO"; then : 4010 4111 ac_compiler_gnu=yes 4011 4112 else 4012 $as_echo "$as_me: failed program was:" >&5 4013 sed 's/^/| /' conftest.$ac_ext >&5 4014 4015 ac_compiler_gnu=no 4016 fi 4017 4113 ac_compiler_gnu=no 4114 fi 4018 4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4019 4116 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4020 4117 4021 4118 fi 4022 { $as_echo "$as_me:$ LINENO: result: $ac_cv_c_compiler_gnu" >&54119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4023 4120 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4024 4121 if test $ac_compiler_gnu = yes; then … … 4029 4126 ac_test_CFLAGS=${CFLAGS+set} 4030 4127 ac_save_CFLAGS=$CFLAGS 4031 { $as_echo "$as_me:$ LINENO: checking whether $CC accepts -g" >&54128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4032 4129 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4033 if test "${ac_cv_prog_cc_g+set}" = set; then 4130 if test "${ac_cv_prog_cc_g+set}" = set; then : 4034 4131 $as_echo_n "(cached) " >&6 4035 4132 else … … 4038 4135 ac_cv_prog_cc_g=no 4039 4136 CFLAGS="-g" 4040 cat >conftest.$ac_ext <<_ACEOF 4041 /* confdefs.h. */ 4042 _ACEOF 4043 cat confdefs.h >>conftest.$ac_ext 4044 cat >>conftest.$ac_ext <<_ACEOF 4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045 4138 /* end confdefs.h. */ 4046 4139 … … 4053 4146 } 4054 4147 _ACEOF 4055 rm -f conftest.$ac_objext 4056 if { (ac_try="$ac_compile" 4057 case "(($ac_try" in 4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4059 *) ac_try_echo=$ac_try;; 4060 esac 4061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4062 $as_echo "$ac_try_echo") >&5 4063 (eval "$ac_compile") 2>conftest.er1 4064 ac_status=$? 4065 grep -v '^ *+' conftest.er1 >conftest.err 4066 rm -f conftest.er1 4067 cat conftest.err >&5 4068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4069 (exit $ac_status); } && { 4070 test -z "$ac_c_werror_flag" || 4071 test ! -s conftest.err 4072 } && test -s conftest.$ac_objext; then 4148 if ac_fn_c_try_compile "$LINENO"; then : 4073 4149 ac_cv_prog_cc_g=yes 4074 4150 else 4075 $as_echo "$as_me: failed program was:" >&5 4076 sed 's/^/| /' conftest.$ac_ext >&5 4077 4078 CFLAGS="" 4079 cat >conftest.$ac_ext <<_ACEOF 4080 /* confdefs.h. */ 4081 _ACEOF 4082 cat confdefs.h >>conftest.$ac_ext 4083 cat >>conftest.$ac_ext <<_ACEOF 4151 CFLAGS="" 4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4084 4153 /* end confdefs.h. */ 4085 4154 … … 4092 4161 } 4093 4162 _ACEOF 4094 rm -f conftest.$ac_objext 4095 if { (ac_try="$ac_compile" 4096 case "(($ac_try" in 4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4098 *) ac_try_echo=$ac_try;; 4099 esac 4100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4101 $as_echo "$ac_try_echo") >&5 4102 (eval "$ac_compile") 2>conftest.er1 4103 ac_status=$? 4104 grep -v '^ *+' conftest.er1 >conftest.err 4105 rm -f conftest.er1 4106 cat conftest.err >&5 4107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4108 (exit $ac_status); } && { 4109 test -z "$ac_c_werror_flag" || 4110 test ! -s conftest.err 4111 } && test -s conftest.$ac_objext; then 4112 : 4113 else 4114 $as_echo "$as_me: failed program was:" >&5 4115 sed 's/^/| /' conftest.$ac_ext >&5 4116 4117 ac_c_werror_flag=$ac_save_c_werror_flag 4163 if ac_fn_c_try_compile "$LINENO"; then : 4164 4165 else 4166 ac_c_werror_flag=$ac_save_c_werror_flag 4118 4167 CFLAGS="-g" 4119 cat >conftest.$ac_ext <<_ACEOF 4120 /* confdefs.h. */ 4121 _ACEOF 4122 cat confdefs.h >>conftest.$ac_ext 4123 cat >>conftest.$ac_ext <<_ACEOF 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4124 4169 /* end confdefs.h. */ 4125 4170 … … 4132 4177 } 4133 4178 _ACEOF 4134 rm -f conftest.$ac_objext 4135 if { (ac_try="$ac_compile" 4136 case "(($ac_try" in 4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4138 *) ac_try_echo=$ac_try;; 4139 esac 4140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4141 $as_echo "$ac_try_echo") >&5 4142 (eval "$ac_compile") 2>conftest.er1 4143 ac_status=$? 4144 grep -v '^ *+' conftest.er1 >conftest.err 4145 rm -f conftest.er1 4146 cat conftest.err >&5 4147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4148 (exit $ac_status); } && { 4149 test -z "$ac_c_werror_flag" || 4150 test ! -s conftest.err 4151 } && test -s conftest.$ac_objext; then 4179 if ac_fn_c_try_compile "$LINENO"; then : 4152 4180 ac_cv_prog_cc_g=yes 4153 else 4154 $as_echo "$as_me: failed program was:" >&5 4155 sed 's/^/| /' conftest.$ac_ext >&5 4156 4157 4158 fi 4159 4181 fi 4160 4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4161 4183 fi 4162 4163 4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4164 4185 fi 4165 4166 4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4167 4187 ac_c_werror_flag=$ac_save_c_werror_flag 4168 4188 fi 4169 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cc_g" >&54189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4170 4190 $as_echo "$ac_cv_prog_cc_g" >&6; } 4171 4191 if test "$ac_test_CFLAGS" = set; then … … 4184 4204 fi 4185 4205 fi 4186 { $as_echo "$as_me:$ LINENO: checking for $CC option to accept ISO C89" >&54206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4187 4207 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4188 if test "${ac_cv_prog_cc_c89+set}" = set; then 4208 if test "${ac_cv_prog_cc_c89+set}" = set; then : 4189 4209 $as_echo_n "(cached) " >&6 4190 4210 else 4191 4211 ac_cv_prog_cc_c89=no 4192 4212 ac_save_CC=$CC 4193 cat >conftest.$ac_ext <<_ACEOF 4194 /* confdefs.h. */ 4195 _ACEOF 4196 cat confdefs.h >>conftest.$ac_ext 4197 cat >>conftest.$ac_ext <<_ACEOF 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198 4214 /* end confdefs.h. */ 4199 4215 #include <stdarg.h> … … 4252 4268 do 4253 4269 CC="$ac_save_CC $ac_arg" 4254 rm -f conftest.$ac_objext 4255 if { (ac_try="$ac_compile" 4256 case "(($ac_try" in 4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4258 *) ac_try_echo=$ac_try;; 4259 esac 4260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4261 $as_echo "$ac_try_echo") >&5 4262 (eval "$ac_compile") 2>conftest.er1 4263 ac_status=$? 4264 grep -v '^ *+' conftest.er1 >conftest.err 4265 rm -f conftest.er1 4266 cat conftest.err >&5 4267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4268 (exit $ac_status); } && { 4269 test -z "$ac_c_werror_flag" || 4270 test ! -s conftest.err 4271 } && test -s conftest.$ac_objext; then 4270 if ac_fn_c_try_compile "$LINENO"; then : 4272 4271 ac_cv_prog_cc_c89=$ac_arg 4273 else 4274 $as_echo "$as_me: failed program was:" >&5 4275 sed 's/^/| /' conftest.$ac_ext >&5 4276 4277 4278 fi 4279 4272 fi 4280 4273 rm -f core conftest.err conftest.$ac_objext 4281 4274 test "x$ac_cv_prog_cc_c89" != "xno" && break … … 4288 4281 case "x$ac_cv_prog_cc_c89" in 4289 4282 x) 4290 { $as_echo "$as_me:$ LINENO: result: none needed" >&54283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4291 4284 $as_echo "none needed" >&6; } ;; 4292 4285 xno) 4293 { $as_echo "$as_me:$ LINENO: result: unsupported" >&54286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4294 4287 $as_echo "unsupported" >&6; } ;; 4295 4288 *) 4296 4289 CC="$CC $ac_cv_prog_cc_c89" 4297 { $as_echo "$as_me:$ LINENO: result: $ac_cv_prog_cc_c89" >&54290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4298 4291 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4299 4292 esac 4300 4293 if test "x$ac_cv_prog_cc_c89" != xno; then : 4294 4295 fi 4301 4296 4302 4297 ac_ext=c … … 4308 4303 depcc="$CC" am_compiler_list= 4309 4304 4310 { $as_echo "$as_me:$ LINENO: checking dependency style of $depcc" >&54305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4311 4306 $as_echo_n "checking dependency style of $depcc... " >&6; } 4312 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 4307 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4313 4308 $as_echo_n "(cached) " >&6 4314 4309 else … … 4336 4331 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4337 4332 fi 4333 am__universal=false 4334 case " $depcc " in #( 4335 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4336 esac 4337 4338 4338 for depmode in $am_compiler_list; do 4339 4339 # Setup a source with many dependencies, because some compilers … … 4353 4353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4354 4354 4355 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4356 # mode. It turns out that the SunPro C++ compiler does not properly 4357 # handle `-M -o', and we need to detect this. Also, some Intel 4358 # versions had trouble with output in subdirs 4359 am__obj=sub/conftest.${OBJEXT-o} 4360 am__minus_obj="-o $am__obj" 4355 4361 case $depmode in 4362 gcc) 4363 # This depmode causes a compiler race in universal mode. 4364 test "$am__universal" = false || continue 4365 ;; 4356 4366 nosideeffect) 4357 4367 # after this tag, mechanisms are not by side-effect, so they'll … … 4363 4373 fi 4364 4374 ;; 4375 msvisualcpp | msvcmsys) 4376 # This compiler won't grok `-c -o', but also, the minuso test has 4377 # not run yet. These depmodes are late enough in the game, and 4378 # so weak that their functioning should not be impacted. 4379 am__obj=conftest.${OBJEXT-o} 4380 am__minus_obj= 4381 ;; 4365 4382 none) break ;; 4366 4383 esac 4367 # We check with `-c' and `-o' for the sake of the "dashmstdout"4368 # mode. It turns out that the SunPro C++ compiler does not properly4369 # handle `-M -o', and we need to detect this.4370 4384 if depmode=$depmode \ 4371 source=sub/conftest.c object= sub/conftest.${OBJEXT-o}\4385 source=sub/conftest.c object=$am__obj \ 4372 4386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4373 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o}sub/conftest.c \4387 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4374 4388 >/dev/null 2>conftest.err && 4375 4389 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4376 4390 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4377 grep sub/conftest.${OBJEXT-o}sub/conftest.Po > /dev/null 2>&1 &&4391 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4378 4392 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4379 4393 # icc doesn't choke on unknown options, it will just issue warnings … … 4399 4413 4400 4414 fi 4401 { $as_echo "$as_me:$ LINENO: result: $am_cv_CC_dependencies_compiler_type" >&54415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4402 4416 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4403 4417 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type … … 4414 4428 4415 4429 4416 { $as_echo "$as_me:$ LINENO: checking for a sed that does not truncate output" >&54430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4417 4431 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4418 if test "${ lt_cv_path_SED+set}" = set; then4432 if test "${ac_cv_path_SED+set}" = set; then : 4419 4433 $as_echo_n "(cached) " >&6 4420 4434 else 4421 # Loop through the user's path and test for sed and gsed. 4422 # Then use that list of sed's as ones to test for truncation. 4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4435 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4436 for ac_i in 1 2 3 4 5 6 7; do 4437 ac_script="$ac_script$as_nl$ac_script" 4438 done 4439 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4440 { ac_script=; unset ac_script;} 4441 if test -z "$SED"; then 4442 ac_path_SED_found=false 4443 # Loop through the user's path and test for each of PROGNAME-LIST 4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4424 4445 for as_dir in $PATH 4425 4446 do 4426 4447 IFS=$as_save_IFS 4427 4448 test -z "$as_dir" && as_dir=. 4428 for lt_ac_prog in sed gsed; do4449 for ac_prog in sed gsed; do 4429 4450 for ac_exec_ext in '' $ac_executable_extensions; do 4430 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then 4431 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 4432 fi 4451 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4452 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4453 # Check for GNU ac_path_SED and select it if it is found. 4454 # Check for GNU $ac_path_SED 4455 case `"$ac_path_SED" --version 2>&1` in 4456 *GNU*) 4457 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4458 *) 4459 ac_count=0 4460 $as_echo_n 0123456789 >"conftest.in" 4461 while : 4462 do 4463 cat "conftest.in" "conftest.in" >"conftest.tmp" 4464 mv "conftest.tmp" "conftest.in" 4465 cp "conftest.in" "conftest.nl" 4466 $as_echo '' >> "conftest.nl" 4467 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4469 as_fn_arith $ac_count + 1 && ac_count=$as_val 4470 if test $ac_count -gt ${ac_path_SED_max-0}; then 4471 # Best one so far, save it but keep looking for a better one 4472 ac_cv_path_SED="$ac_path_SED" 4473 ac_path_SED_max=$ac_count 4474 fi 4475 # 10*(2^10) chars as input seems more than enough 4476 test $ac_count -gt 10 && break 4477 done 4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4479 esac 4480 4481 $ac_path_SED_found && break 3 4433 4482 done 4434 4483 done 4435 done4484 done 4436 4485 IFS=$as_save_IFS 4437 lt_ac_max=0 4438 lt_ac_count=0 4439 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 4440 # along with /bin/sed that truncates output. 4441 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 4442 test ! -f $lt_ac_sed && continue 4443 cat /dev/null > conftest.in 4444 lt_ac_count=0 4445 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 4446 # Check for GNU sed and select it if it is found. 4447 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 4448 lt_cv_path_SED=$lt_ac_sed 4449 break 4486 if test -z "$ac_cv_path_SED"; then 4487 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4450 4488 fi 4451 while true; do 4452 cat conftest.in conftest.in >conftest.tmp 4453 mv conftest.tmp conftest.in 4454 cp conftest.in conftest.nl 4455 echo >>conftest.nl 4456 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 4457 cmp -s conftest.out conftest.nl || break 4458 # 10000 chars as input seems more than enough 4459 test $lt_ac_count -gt 10 && break 4460 lt_ac_count=`expr $lt_ac_count + 1` 4461 if test $lt_ac_count -gt $lt_ac_max; then 4462 lt_ac_max=$lt_ac_count 4463 lt_cv_path_SED=$lt_ac_sed 4464 fi 4465 done 4466 done 4467 4468 fi 4469 4470 SED=$lt_cv_path_SED 4471 4472 { $as_echo "$as_me:$LINENO: result: $SED" >&5 4473 $as_echo "$SED" >&6; } 4474 4475 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4489 else 4490 ac_cv_path_SED=$SED 4491 fi 4492 4493 fi 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4495 $as_echo "$ac_cv_path_SED" >&6; } 4496 SED="$ac_cv_path_SED" 4497 rm -f conftest.sed 4498 4499 test -z "$SED" && SED=sed 4500 Xsed="$SED -e 1s/^X//" 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4476 4513 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4477 if test "${ac_cv_path_GREP+set}" = set; then 4514 if test "${ac_cv_path_GREP+set}" = set; then : 4478 4515 $as_echo_n "(cached) " >&6 4479 4516 else … … 4486 4523 IFS=$as_save_IFS 4487 4524 test -z "$as_dir" && as_dir=. 4488 for ac_prog in grep ggrep; do4525 for ac_prog in grep ggrep; do 4489 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4490 4527 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" … … 4506 4543 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4507 4544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4508 a c_count=`expr $ac_count + 1`4545 as_fn_arith $ac_count + 1 && ac_count=$as_val 4509 4546 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4510 4547 # Best one so far, save it but keep looking for a better one … … 4521 4558 done 4522 4559 done 4523 done4560 done 4524 4561 IFS=$as_save_IFS 4525 4562 if test -z "$ac_cv_path_GREP"; then 4526 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4527 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4528 { (exit 1); exit 1; }; } 4563 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4529 4564 fi 4530 4565 else … … 4533 4568 4534 4569 fi 4535 { $as_echo "$as_me:$ LINENO: result: $ac_cv_path_GREP" >&54570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4536 4571 $as_echo "$ac_cv_path_GREP" >&6; } 4537 4572 GREP="$ac_cv_path_GREP" 4538 4573 4539 4574 4540 { $as_echo "$as_me:$ LINENO: checking for egrep" >&54575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4541 4576 $as_echo_n "checking for egrep... " >&6; } 4542 if test "${ac_cv_path_EGREP+set}" = set; then 4577 if test "${ac_cv_path_EGREP+set}" = set; then : 4543 4578 $as_echo_n "(cached) " >&6 4544 4579 else … … 4554 4589 IFS=$as_save_IFS 4555 4590 test -z "$as_dir" && as_dir=. 4556 for ac_prog in egrep; do4591 for ac_prog in egrep; do 4557 4592 for ac_exec_ext in '' $ac_executable_extensions; do 4558 4593 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" … … 4574 4609 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4575 4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4576 a c_count=`expr $ac_count + 1`4611 as_fn_arith $ac_count + 1 && ac_count=$as_val 4577 4612 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4578 4613 # Best one so far, save it but keep looking for a better one … … 4589 4624 done 4590 4625 done 4591 done4626 done 4592 4627 IFS=$as_save_IFS 4593 4628 if test -z "$ac_cv_path_EGREP"; then 4594 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4595 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4596 { (exit 1); exit 1; }; } 4629 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4597 4630 fi 4598 4631 else … … 4602 4635 fi 4603 4636 fi 4604 { $as_echo "$as_me:$ LINENO: result: $ac_cv_path_EGREP" >&54637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4605 4638 $as_echo "$ac_cv_path_EGREP" >&6; } 4606 4639 EGREP="$ac_cv_path_EGREP" 4607 4640 4608 4641 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4643 $as_echo_n "checking for fgrep... " >&6; } 4644 if test "${ac_cv_path_FGREP+set}" = set; then : 4645 $as_echo_n "(cached) " >&6 4646 else 4647 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4648 then ac_cv_path_FGREP="$GREP -F" 4649 else 4650 if test -z "$FGREP"; then 4651 ac_path_FGREP_found=false 4652 # Loop through the user's path and test for each of PROGNAME-LIST 4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4655 do 4656 IFS=$as_save_IFS 4657 test -z "$as_dir" && as_dir=. 4658 for ac_prog in fgrep; do 4659 for ac_exec_ext in '' $ac_executable_extensions; do 4660 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4661 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4662 # Check for GNU ac_path_FGREP and select it if it is found. 4663 # Check for GNU $ac_path_FGREP 4664 case `"$ac_path_FGREP" --version 2>&1` in 4665 *GNU*) 4666 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4667 *) 4668 ac_count=0 4669 $as_echo_n 0123456789 >"conftest.in" 4670 while : 4671 do 4672 cat "conftest.in" "conftest.in" >"conftest.tmp" 4673 mv "conftest.tmp" "conftest.in" 4674 cp "conftest.in" "conftest.nl" 4675 $as_echo 'FGREP' >> "conftest.nl" 4676 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4678 as_fn_arith $ac_count + 1 && ac_count=$as_val 4679 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4680 # Best one so far, save it but keep looking for a better one 4681 ac_cv_path_FGREP="$ac_path_FGREP" 4682 ac_path_FGREP_max=$ac_count 4683 fi 4684 # 10*(2^10) chars as input seems more than enough 4685 test $ac_count -gt 10 && break 4686 done 4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4688 esac 4689 4690 $ac_path_FGREP_found && break 3 4691 done 4692 done 4693 done 4694 IFS=$as_save_IFS 4695 if test -z "$ac_cv_path_FGREP"; then 4696 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4697 fi 4698 else 4699 ac_cv_path_FGREP=$FGREP 4700 fi 4701 4702 fi 4703 fi 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4705 $as_echo "$ac_cv_path_FGREP" >&6; } 4706 FGREP="$ac_cv_path_FGREP" 4707 4708 4709 test -z "$GREP" && GREP=grep 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4609 4728 4610 4729 # Check whether --with-gnu-ld was given. 4611 if test "${with_gnu_ld+set}" = set; then 4730 if test "${with_gnu_ld+set}" = set; then : 4612 4731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4613 4732 else … … 4618 4737 if test "$GCC" = yes; then 4619 4738 # Check if gcc -print-prog-name=ld gives a path. 4620 { $as_echo "$as_me:$ LINENO: checking for ld used by $CC" >&54739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4621 4740 $as_echo_n "checking for ld used by $CC... " >&6; } 4622 4741 case $host in … … 4632 4751 re_direlt='/[^/][^/]*/\.\./' 4633 4752 # Canonicalize the pathname of ld 4634 ac_prog=` echo $ac_prog| $SED 's%\\\\%/%g'`4635 while echo $ac_prog | grep"$re_direlt" > /dev/null 2>&1; do4636 ac_prog=` echo$ac_prog| $SED "s%$re_direlt%/%"`4753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4637 4756 done 4638 4757 test -z "$LD" && LD="$ac_prog" … … 4648 4767 esac 4649 4768 elif test "$with_gnu_ld" = yes; then 4650 { $as_echo "$as_me:$ LINENO: checking for GNU ld" >&54769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4651 4770 $as_echo_n "checking for GNU ld... " >&6; } 4652 4771 else 4653 { $as_echo "$as_me:$ LINENO: checking for non-GNU ld" >&54772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4654 4773 $as_echo_n "checking for non-GNU ld... " >&6; } 4655 4774 fi 4656 if test "${lt_cv_path_LD+set}" = set; then 4775 if test "${lt_cv_path_LD+set}" = set; then : 4657 4776 $as_echo_n "(cached) " >&6 4658 4777 else … … 4685 4804 LD="$lt_cv_path_LD" 4686 4805 if test -n "$LD"; then 4687 { $as_echo "$as_me:$ LINENO: result: $LD" >&54806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4688 4807 $as_echo "$LD" >&6; } 4689 4808 else 4690 { $as_echo "$as_me:$ LINENO: result: no" >&54809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4691 4810 $as_echo "no" >&6; } 4692 4811 fi 4693 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4694 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4695 { (exit 1); exit 1; }; } 4696 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4812 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4697 4814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4698 if test "${lt_cv_prog_gnu_ld+set}" = set; then 4815 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4699 4816 $as_echo_n "(cached) " >&6 4700 4817 else … … 4709 4826 esac 4710 4827 fi 4711 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_gnu_ld" >&54828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4712 4829 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4713 4830 with_gnu_ld=$lt_cv_prog_gnu_ld 4714 4831 4715 4832 4716 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4717 $as_echo_n "checking for $LD option to reload object files... " >&6; } 4718 if test "${lt_cv_ld_reload_flag+set}" = set; then 4719 $as_echo_n "(cached) " >&6 4720 else 4721 lt_cv_ld_reload_flag='-r' 4722 fi 4723 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4724 $as_echo "$lt_cv_ld_reload_flag" >&6; } 4725 reload_flag=$lt_cv_ld_reload_flag 4726 case $reload_flag in 4727 "" | " "*) ;; 4728 *) reload_flag=" $reload_flag" ;; 4729 esac 4730 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4731 case $host_os in 4732 darwin*) 4733 if test "$GCC" = yes; then 4734 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4735 else 4736 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4737 fi 4738 ;; 4739 esac 4740 4741 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4742 $as_echo_n "checking for BSD-compatible nm... " >&6; } 4743 if test "${lt_cv_path_NM+set}" = set; then 4833 4834 4835 4836 4837 4838 4839 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4841 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4842 if test "${lt_cv_path_NM+set}" = set; then : 4744 4843 $as_echo_n "(cached) " >&6 4745 4844 else … … 4785 4884 IFS="$lt_save_ifs" 4786 4885 done 4787 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm4788 fi 4789 fi 4790 { $as_echo "$as_me:$ LINENO: result: $lt_cv_path_NM" >&54886 : ${lt_cv_path_NM=no} 4887 fi 4888 fi 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4791 4890 $as_echo "$lt_cv_path_NM" >&6; } 4792 NM="$lt_cv_path_NM" 4793 4794 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4891 if test "$lt_cv_path_NM" != "no"; then 4892 NM="$lt_cv_path_NM" 4893 else 4894 # Didn't find any BSD compatible name lister, look for dumpbin. 4895 if test -n "$ac_tool_prefix"; then 4896 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4897 do 4898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4901 $as_echo_n "checking for $ac_word... " >&6; } 4902 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4903 $as_echo_n "(cached) " >&6 4904 else 4905 if test -n "$DUMPBIN"; then 4906 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4907 else 4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4909 for as_dir in $PATH 4910 do 4911 IFS=$as_save_IFS 4912 test -z "$as_dir" && as_dir=. 4913 for ac_exec_ext in '' $ac_executable_extensions; do 4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4915 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4917 break 2 4918 fi 4919 done 4920 done 4921 IFS=$as_save_IFS 4922 4923 fi 4924 fi 4925 DUMPBIN=$ac_cv_prog_DUMPBIN 4926 if test -n "$DUMPBIN"; then 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4928 $as_echo "$DUMPBIN" >&6; } 4929 else 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4931 $as_echo "no" >&6; } 4932 fi 4933 4934 4935 test -n "$DUMPBIN" && break 4936 done 4937 fi 4938 if test -z "$DUMPBIN"; then 4939 ac_ct_DUMPBIN=$DUMPBIN 4940 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4941 do 4942 # Extract the first word of "$ac_prog", so it can be a program name with args. 4943 set dummy $ac_prog; ac_word=$2 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4945 $as_echo_n "checking for $ac_word... " >&6; } 4946 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4947 $as_echo_n "(cached) " >&6 4948 else 4949 if test -n "$ac_ct_DUMPBIN"; then 4950 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4951 else 4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953 for as_dir in $PATH 4954 do 4955 IFS=$as_save_IFS 4956 test -z "$as_dir" && as_dir=. 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4959 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4961 break 2 4962 fi 4963 done 4964 done 4965 IFS=$as_save_IFS 4966 4967 fi 4968 fi 4969 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4970 if test -n "$ac_ct_DUMPBIN"; then 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4972 $as_echo "$ac_ct_DUMPBIN" >&6; } 4973 else 4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4975 $as_echo "no" >&6; } 4976 fi 4977 4978 4979 test -n "$ac_ct_DUMPBIN" && break 4980 done 4981 4982 if test "x$ac_ct_DUMPBIN" = x; then 4983 DUMPBIN=":" 4984 else 4985 case $cross_compiling:$ac_tool_warned in 4986 yes:) 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4989 ac_tool_warned=yes ;; 4990 esac 4991 DUMPBIN=$ac_ct_DUMPBIN 4992 fi 4993 fi 4994 4995 4996 if test "$DUMPBIN" != ":"; then 4997 NM="$DUMPBIN" 4998 fi 4999 fi 5000 test -z "$NM" && NM=nm 5001 5002 5003 5004 5005 5006 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5008 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5009 if test "${lt_cv_nm_interface+set}" = set; then : 5010 $as_echo_n "(cached) " >&6 5011 else 5012 lt_cv_nm_interface="BSD nm" 5013 echo "int some_variable = 0;" > conftest.$ac_ext 5014 (eval echo "\"\$as_me:5014: $ac_compile\"" >&5) 5015 (eval "$ac_compile" 2>conftest.err) 5016 cat conftest.err >&5 5017 (eval echo "\"\$as_me:5017: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5018 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5019 cat conftest.err >&5 5020 (eval echo "\"\$as_me:5020: output\"" >&5) 5021 cat conftest.out >&5 5022 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5023 lt_cv_nm_interface="MS dumpbin" 5024 fi 5025 rm -f conftest* 5026 fi 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5028 $as_echo "$lt_cv_nm_interface" >&6; } 5029 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4795 5031 $as_echo_n "checking whether ln -s works... " >&6; } 4796 5032 LN_S=$as_ln_s 4797 5033 if test "$LN_S" = "ln -s"; then 4798 { $as_echo "$as_me:$ LINENO: result: yes" >&55034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4799 5035 $as_echo "yes" >&6; } 4800 5036 else 4801 { $as_echo "$as_me:$ LINENO: result: no, using $LN_S" >&55037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4802 5038 $as_echo "no, using $LN_S" >&6; } 4803 5039 fi 4804 5040 4805 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 5041 # find the maximum length of command line arguments 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5043 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5044 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5045 $as_echo_n "(cached) " >&6 5046 else 5047 i=0 5048 teststring="ABCD" 5049 5050 case $build_os in 5051 msdosdjgpp*) 5052 # On DJGPP, this test can blow up pretty badly due to problems in libc 5053 # (any single argument exceeding 2000 bytes causes a buffer overrun 5054 # during glob expansion). Even if it were fixed, the result of this 5055 # check would be larger than it should be. 5056 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5057 ;; 5058 5059 gnu*) 5060 # Under GNU Hurd, this test is not required because there is 5061 # no limit to the length of command line arguments. 5062 # Libtool will interpret -1 as no limit whatsoever 5063 lt_cv_sys_max_cmd_len=-1; 5064 ;; 5065 5066 cygwin* | mingw* | cegcc*) 5067 # On Win9x/ME, this test blows up -- it succeeds, but takes 5068 # about 5 minutes as the teststring grows exponentially. 5069 # Worse, since 9x/ME are not pre-emptively multitasking, 5070 # you end up with a "frozen" computer, even though with patience 5071 # the test eventually succeeds (with a max line length of 256k). 5072 # Instead, let's just punt: use the minimum linelength reported by 5073 # all of the supported platforms: 8192 (on NT/2K/XP). 5074 lt_cv_sys_max_cmd_len=8192; 5075 ;; 5076 5077 amigaos*) 5078 # On AmigaOS with pdksh, this test takes hours, literally. 5079 # So we just punt and use a minimum line length of 8192. 5080 lt_cv_sys_max_cmd_len=8192; 5081 ;; 5082 5083 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5084 # This has been around since 386BSD, at least. Likely further. 5085 if test -x /sbin/sysctl; then 5086 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5087 elif test -x /usr/sbin/sysctl; then 5088 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5089 else 5090 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5091 fi 5092 # And add a safety zone 5093 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5095 ;; 5096 5097 interix*) 5098 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5099 lt_cv_sys_max_cmd_len=196608 5100 ;; 5101 5102 osf*) 5103 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5104 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5105 # nice to cause kernel panics so lets avoid the loop below. 5106 # First set a reasonable default. 5107 lt_cv_sys_max_cmd_len=16384 5108 # 5109 if test -x /sbin/sysconfig; then 5110 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5111 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5112 esac 5113 fi 5114 ;; 5115 sco3.2v5*) 5116 lt_cv_sys_max_cmd_len=102400 5117 ;; 5118 sysv5* | sco5v6* | sysv4.2uw2*) 5119 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5120 if test -n "$kargmax"; then 5121 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5122 else 5123 lt_cv_sys_max_cmd_len=32768 5124 fi 5125 ;; 5126 *) 5127 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5128 if test -n "$lt_cv_sys_max_cmd_len"; then 5129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5130 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5131 else 5132 # Make teststring a little bigger before we do anything with it. 5133 # a 1K string should be a reasonable start. 5134 for i in 1 2 3 4 5 6 7 8 ; do 5135 teststring=$teststring$teststring 5136 done 5137 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5138 # If test is not a shell built-in, we'll probably end up computing a 5139 # maximum length that is only half of the actual maximum length, but 5140 # we can't tell. 5141 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 5142 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 5143 test $i != 17 # 1/2 MB should be enough 5144 do 5145 i=`expr $i + 1` 5146 teststring=$teststring$teststring 5147 done 5148 # Only check the string length outside the loop. 5149 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5150 teststring= 5151 # Add a significant safety factor because C++ compilers can tack on 5152 # massive amounts of additional arguments before passing them to the 5153 # linker. It appears as though 1/2 is a usable value. 5154 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5155 fi 5156 ;; 5157 esac 5158 5159 fi 5160 5161 if test -n $lt_cv_sys_max_cmd_len ; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5163 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5164 else 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5166 $as_echo "none" >&6; } 5167 fi 5168 max_cmd_len=$lt_cv_sys_max_cmd_len 5169 5170 5171 5172 5173 5174 5175 : ${CP="cp -f"} 5176 : ${MV="mv -f"} 5177 : ${RM="rm -f"} 5178 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5180 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5181 # Try some XSI features 5182 xsi_shell=no 5183 ( _lt_dummy="a/b/c" 5184 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5185 = c,a/b,, \ 5186 && eval 'test $(( 1 + 1 )) -eq 2 \ 5187 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5188 && xsi_shell=yes 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5190 $as_echo "$xsi_shell" >&6; } 5191 5192 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5194 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5195 lt_shell_append=no 5196 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5197 >/dev/null 2>&1 \ 5198 && lt_shell_append=yes 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5200 $as_echo "$lt_shell_append" >&6; } 5201 5202 5203 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5204 lt_unset=unset 5205 else 5206 lt_unset=false 5207 fi 5208 5209 5210 5211 5212 5213 # test EBCDIC or ASCII 5214 case `echo X|tr X '\101'` in 5215 A) # ASCII based system 5216 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5217 lt_SP2NL='tr \040 \012' 5218 lt_NL2SP='tr \015\012 \040\040' 5219 ;; 5220 *) # EBCDIC based system 5221 lt_SP2NL='tr \100 \n' 5222 lt_NL2SP='tr \r\n \100\100' 5223 ;; 5224 esac 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5235 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5236 if test "${lt_cv_ld_reload_flag+set}" = set; then : 5237 $as_echo_n "(cached) " >&6 5238 else 5239 lt_cv_ld_reload_flag='-r' 5240 fi 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5242 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5243 reload_flag=$lt_cv_ld_reload_flag 5244 case $reload_flag in 5245 "" | " "*) ;; 5246 *) reload_flag=" $reload_flag" ;; 5247 esac 5248 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5249 case $host_os in 5250 darwin*) 5251 if test "$GCC" = yes; then 5252 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5253 else 5254 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5255 fi 5256 ;; 5257 esac 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 if test -n "$ac_tool_prefix"; then 5268 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5269 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5271 $as_echo_n "checking for $ac_word... " >&6; } 5272 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5273 $as_echo_n "(cached) " >&6 5274 else 5275 if test -n "$OBJDUMP"; then 5276 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5277 else 5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279 for as_dir in $PATH 5280 do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5285 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5287 break 2 5288 fi 5289 done 5290 done 5291 IFS=$as_save_IFS 5292 5293 fi 5294 fi 5295 OBJDUMP=$ac_cv_prog_OBJDUMP 5296 if test -n "$OBJDUMP"; then 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5298 $as_echo "$OBJDUMP" >&6; } 5299 else 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5301 $as_echo "no" >&6; } 5302 fi 5303 5304 5305 fi 5306 if test -z "$ac_cv_prog_OBJDUMP"; then 5307 ac_ct_OBJDUMP=$OBJDUMP 5308 # Extract the first word of "objdump", so it can be a program name with args. 5309 set dummy objdump; ac_word=$2 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5311 $as_echo_n "checking for $ac_word... " >&6; } 5312 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5313 $as_echo_n "(cached) " >&6 5314 else 5315 if test -n "$ac_ct_OBJDUMP"; then 5316 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5317 else 5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5319 for as_dir in $PATH 5320 do 5321 IFS=$as_save_IFS 5322 test -z "$as_dir" && as_dir=. 5323 for ac_exec_ext in '' $ac_executable_extensions; do 5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5325 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5327 break 2 5328 fi 5329 done 5330 done 5331 IFS=$as_save_IFS 5332 5333 fi 5334 fi 5335 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5336 if test -n "$ac_ct_OBJDUMP"; then 5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5338 $as_echo "$ac_ct_OBJDUMP" >&6; } 5339 else 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5341 $as_echo "no" >&6; } 5342 fi 5343 5344 if test "x$ac_ct_OBJDUMP" = x; then 5345 OBJDUMP="false" 5346 else 5347 case $cross_compiling:$ac_tool_warned in 5348 yes:) 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5351 ac_tool_warned=yes ;; 5352 esac 5353 OBJDUMP=$ac_ct_OBJDUMP 5354 fi 5355 else 5356 OBJDUMP="$ac_cv_prog_OBJDUMP" 5357 fi 5358 5359 test -z "$OBJDUMP" && OBJDUMP=objdump 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4806 5370 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 4807 if test "${lt_cv_deplibs_check_method+set}" = set; then 5371 if test "${lt_cv_deplibs_check_method+set}" = set; then : 4808 5372 $as_echo_n "(cached) " >&6 4809 5373 else … … 4856 5420 ;; 4857 5421 5422 cegcc) 5423 # use the weaker test based on 'objdump'. See mingw*. 5424 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5425 lt_cv_file_magic_cmd='$OBJDUMP -f' 5426 ;; 5427 4858 5428 darwin* | rhapsody*) 4859 5429 lt_cv_deplibs_check_method=pass_all … … 4861 5431 4862 5432 freebsd* | dragonfly*) 4863 if echo __ELF__ | $CC -E - | grep__ELF__ > /dev/null; then5433 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4864 5434 case $host_cpu in 4865 5435 i*86 ) … … 4919 5489 4920 5490 netbsd*) 4921 if echo __ELF__ | $CC -E - | grep__ELF__ > /dev/null; then5491 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4922 5492 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4923 5493 else … … 4932 5502 ;; 4933 5503 4934 nto-qnx*)4935 lt_cv_deplibs_check_method= unknown5504 *nto* | *qnx*) 5505 lt_cv_deplibs_check_method=pass_all 4936 5506 ;; 4937 5507 4938 5508 openbsd*) 4939 if test -z "`echo __ELF__ | $CC -E - | grep__ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then5509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4940 5510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4941 5511 else … … 4953 5523 4954 5524 solaris*) 5525 lt_cv_deplibs_check_method=pass_all 5526 ;; 5527 5528 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4955 5529 lt_cv_deplibs_check_method=pass_all 4956 5530 ;; … … 4983 5557 ;; 4984 5558 4985 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)5559 tpf*) 4986 5560 lt_cv_deplibs_check_method=pass_all 4987 5561 ;; … … 4989 5563 4990 5564 fi 4991 { $as_echo "$as_me:$ LINENO: result: $lt_cv_deplibs_check_method" >&55565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4992 5566 $as_echo "$lt_cv_deplibs_check_method" >&6; } 4993 5567 file_magic_cmd=$lt_cv_file_magic_cmd … … 4998 5572 4999 5573 5000 # If no C compiler was specified, use CC. 5001 LTCC=${LTCC-"$CC"} 5002 5003 # If no C compiler flags were specified, use CFLAGS. 5004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5005 5006 # Allow CC to be a program name with arguments. 5007 compiler=$CC 5008 5009 5010 # Check whether --enable-libtool-lock was given. 5011 if test "${enable_libtool_lock+set}" = set; then 5012 enableval=$enable_libtool_lock; 5013 fi 5014 5015 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5016 5017 # Some flags need to be propagated to the compiler or linker for good 5018 # libtool support. 5019 case $host in 5020 ia64-*-hpux*) 5021 # Find out which ABI we are using. 5022 echo 'int i;' > conftest.$ac_ext 5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5024 (eval $ac_compile) 2>&5 5025 ac_status=$? 5026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); }; then 5028 case `/usr/bin/file conftest.$ac_objext` in 5029 *ELF-32*) 5030 HPUX_IA64_MODE="32" 5031 ;; 5032 *ELF-64*) 5033 HPUX_IA64_MODE="64" 5034 ;; 5035 esac 5036 fi 5037 rm -rf conftest* 5038 ;; 5039 *-*-irix6*) 5040 # Find out which ABI we are using. 5041 echo '#line 5041 "configure"' > conftest.$ac_ext 5042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5043 (eval $ac_compile) 2>&5 5044 ac_status=$? 5045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5046 (exit $ac_status); }; then 5047 if test "$lt_cv_prog_gnu_ld" = yes; then 5048 case `/usr/bin/file conftest.$ac_objext` in 5049 *32-bit*) 5050 LD="${LD-ld} -melf32bsmip" 5051 ;; 5052 *N32*) 5053 LD="${LD-ld} -melf32bmipn32" 5054 ;; 5055 *64-bit*) 5056 LD="${LD-ld} -melf64bmip" 5057 ;; 5058 esac 5059 else 5060 case `/usr/bin/file conftest.$ac_objext` in 5061 *32-bit*) 5062 LD="${LD-ld} -32" 5063 ;; 5064 *N32*) 5065 LD="${LD-ld} -n32" 5066 ;; 5067 *64-bit*) 5068 LD="${LD-ld} -64" 5069 ;; 5070 esac 5071 fi 5072 fi 5073 rm -rf conftest* 5074 ;; 5075 5076 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5077 s390*-*linux*|sparc*-*linux*) 5078 # Find out which ABI we are using. 5079 echo 'int i;' > conftest.$ac_ext 5080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5081 (eval $ac_compile) 2>&5 5082 ac_status=$? 5083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5084 (exit $ac_status); }; then 5085 case `/usr/bin/file conftest.o` in 5086 *32-bit*) 5087 case $host in 5088 x86_64-*kfreebsd*-gnu) 5089 LD="${LD-ld} -m elf_i386_fbsd" 5090 ;; 5091 x86_64-*linux*) 5092 LD="${LD-ld} -m elf_i386" 5093 ;; 5094 ppc64-*linux*|powerpc64-*linux*) 5095 LD="${LD-ld} -m elf32ppclinux" 5096 ;; 5097 s390x-*linux*) 5098 LD="${LD-ld} -m elf_s390" 5099 ;; 5100 sparc64-*linux*) 5101 LD="${LD-ld} -m elf32_sparc" 5102 ;; 5103 esac 5104 ;; 5105 *64-bit*) 5106 case $host in 5107 x86_64-*kfreebsd*-gnu) 5108 LD="${LD-ld} -m elf_x86_64_fbsd" 5109 ;; 5110 x86_64-*linux*) 5111 LD="${LD-ld} -m elf_x86_64" 5112 ;; 5113 ppc*-*linux*|powerpc*-*linux*) 5114 LD="${LD-ld} -m elf64ppc" 5115 ;; 5116 s390*-*linux*) 5117 LD="${LD-ld} -m elf64_s390" 5118 ;; 5119 sparc*-*linux*) 5120 LD="${LD-ld} -m elf64_sparc" 5121 ;; 5122 esac 5123 ;; 5124 esac 5125 fi 5126 rm -rf conftest* 5127 ;; 5128 5129 *-*-sco3.2v5*) 5130 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5131 SAVE_CFLAGS="$CFLAGS" 5132 CFLAGS="$CFLAGS -belf" 5133 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5134 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5135 if test "${lt_cv_cc_needs_belf+set}" = set; then 5574 5575 5576 5577 5578 5579 5580 5581 5582 if test -n "$ac_tool_prefix"; then 5583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5584 set dummy ${ac_tool_prefix}ar; ac_word=$2 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5586 $as_echo_n "checking for $ac_word... " >&6; } 5587 if test "${ac_cv_prog_AR+set}" = set; then : 5136 5588 $as_echo_n "(cached) " >&6 5137 5589 else 5138 ac_ext=c 5139 ac_cpp='$CPP $CPPFLAGS' 5140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5142 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5143 5144 cat >conftest.$ac_ext <<_ACEOF 5145 /* confdefs.h. */ 5146 _ACEOF 5147 cat confdefs.h >>conftest.$ac_ext 5148 cat >>conftest.$ac_ext <<_ACEOF 5149 /* end confdefs.h. */ 5150 5151 int 5152 main () 5153 { 5154 5155 ; 5156 return 0; 5157 } 5158 _ACEOF 5159 rm -f conftest.$ac_objext conftest$ac_exeext 5160 if { (ac_try="$ac_link" 5161 case "(($ac_try" in 5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5163 *) ac_try_echo=$ac_try;; 5164 esac 5165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5166 $as_echo "$ac_try_echo") >&5 5167 (eval "$ac_link") 2>conftest.er1 5168 ac_status=$? 5169 grep -v '^ *+' conftest.er1 >conftest.err 5170 rm -f conftest.er1 5171 cat conftest.err >&5 5172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5173 (exit $ac_status); } && { 5174 test -z "$ac_c_werror_flag" || 5175 test ! -s conftest.err 5176 } && test -s conftest$ac_exeext && { 5177 test "$cross_compiling" = yes || 5178 $as_test_x conftest$ac_exeext 5179 }; then 5180 lt_cv_cc_needs_belf=yes 5181 else 5182 $as_echo "$as_me: failed program was:" >&5 5183 sed 's/^/| /' conftest.$ac_ext >&5 5184 5185 lt_cv_cc_needs_belf=no 5186 fi 5187 5188 rm -rf conftest.dSYM 5189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5190 conftest$ac_exeext conftest.$ac_ext 5191 ac_ext=c 5192 ac_cpp='$CPP $CPPFLAGS' 5193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5195 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5196 5197 fi 5198 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5199 $as_echo "$lt_cv_cc_needs_belf" >&6; } 5200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5202 CFLAGS="$SAVE_CFLAGS" 5203 fi 5204 ;; 5205 sparc*-*solaris*) 5206 # Find out which ABI we are using. 5207 echo 'int i;' > conftest.$ac_ext 5208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5209 (eval $ac_compile) 2>&5 5210 ac_status=$? 5211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5212 (exit $ac_status); }; then 5213 case `/usr/bin/file conftest.o` in 5214 *64-bit*) 5215 case $lt_cv_prog_gnu_ld in 5216 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5217 *) 5218 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5219 LD="${LD-ld} -64" 5220 fi 5221 ;; 5222 esac 5223 ;; 5224 esac 5225 fi 5226 rm -rf conftest* 5227 ;; 5228 5229 5230 esac 5231 5232 need_locks="$enable_libtool_lock" 5233 5234 5235 ac_ext=c 5236 ac_cpp='$CPP $CPPFLAGS' 5237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5239 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5240 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5241 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5242 # On Suns, sometimes $CPP names a directory. 5243 if test -n "$CPP" && test -d "$CPP"; then 5244 CPP= 5245 fi 5246 if test -z "$CPP"; then 5247 if test "${ac_cv_prog_CPP+set}" = set; then 5248 $as_echo_n "(cached) " >&6 5249 else 5250 # Double quotes because CPP needs to be expanded 5251 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5252 do 5253 ac_preproc_ok=false 5254 for ac_c_preproc_warn_flag in '' yes 5255 do 5256 # Use a header file that comes with gcc, so configuring glibc 5257 # with a fresh cross-compiler works. 5258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5259 # <limits.h> exists even on freestanding compilers. 5260 # On the NeXT, cc -E runs the code through the compiler's parser, 5261 # not just through cpp. "Syntax error" is here to catch this case. 5262 cat >conftest.$ac_ext <<_ACEOF 5263 /* confdefs.h. */ 5264 _ACEOF 5265 cat confdefs.h >>conftest.$ac_ext 5266 cat >>conftest.$ac_ext <<_ACEOF 5267 /* end confdefs.h. */ 5268 #ifdef __STDC__ 5269 # include <limits.h> 5270 #else 5271 # include <assert.h> 5272 #endif 5273 Syntax error 5274 _ACEOF 5275 if { (ac_try="$ac_cpp conftest.$ac_ext" 5276 case "(($ac_try" in 5277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5278 *) ac_try_echo=$ac_try;; 5279 esac 5280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5281 $as_echo "$ac_try_echo") >&5 5282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5283 ac_status=$? 5284 grep -v '^ *+' conftest.er1 >conftest.err 5285 rm -f conftest.er1 5286 cat conftest.err >&5 5287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5288 (exit $ac_status); } >/dev/null && { 5289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5290 test ! -s conftest.err 5291 }; then 5292 : 5293 else 5294 $as_echo "$as_me: failed program was:" >&5 5295 sed 's/^/| /' conftest.$ac_ext >&5 5296 5297 # Broken: fails on valid input. 5298 continue 5299 fi 5300 5301 rm -f conftest.err conftest.$ac_ext 5302 5303 # OK, works on sane cases. Now check whether nonexistent headers 5304 # can be detected and how. 5305 cat >conftest.$ac_ext <<_ACEOF 5306 /* confdefs.h. */ 5307 _ACEOF 5308 cat confdefs.h >>conftest.$ac_ext 5309 cat >>conftest.$ac_ext <<_ACEOF 5310 /* end confdefs.h. */ 5311 #include <ac_nonexistent.h> 5312 _ACEOF 5313 if { (ac_try="$ac_cpp conftest.$ac_ext" 5314 case "(($ac_try" in 5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5316 *) ac_try_echo=$ac_try;; 5317 esac 5318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5319 $as_echo "$ac_try_echo") >&5 5320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5321 ac_status=$? 5322 grep -v '^ *+' conftest.er1 >conftest.err 5323 rm -f conftest.er1 5324 cat conftest.err >&5 5325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5326 (exit $ac_status); } >/dev/null && { 5327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5328 test ! -s conftest.err 5329 }; then 5330 # Broken: success on invalid input. 5331 continue 5332 else 5333 $as_echo "$as_me: failed program was:" >&5 5334 sed 's/^/| /' conftest.$ac_ext >&5 5335 5336 # Passes both tests. 5337 ac_preproc_ok=: 5338 break 5339 fi 5340 5341 rm -f conftest.err conftest.$ac_ext 5342 5343 done 5344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5345 rm -f conftest.err conftest.$ac_ext 5346 if $ac_preproc_ok; then 5347 break 5348 fi 5349 5350 done 5351 ac_cv_prog_CPP=$CPP 5352 5353 fi 5354 CPP=$ac_cv_prog_CPP 5355 else 5356 ac_cv_prog_CPP=$CPP 5357 fi 5358 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 5359 $as_echo "$CPP" >&6; } 5360 ac_preproc_ok=false 5361 for ac_c_preproc_warn_flag in '' yes 5362 do 5363 # Use a header file that comes with gcc, so configuring glibc 5364 # with a fresh cross-compiler works. 5365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5366 # <limits.h> exists even on freestanding compilers. 5367 # On the NeXT, cc -E runs the code through the compiler's parser, 5368 # not just through cpp. "Syntax error" is here to catch this case. 5369 cat >conftest.$ac_ext <<_ACEOF 5370 /* confdefs.h. */ 5371 _ACEOF 5372 cat confdefs.h >>conftest.$ac_ext 5373 cat >>conftest.$ac_ext <<_ACEOF 5374 /* end confdefs.h. */ 5375 #ifdef __STDC__ 5376 # include <limits.h> 5377 #else 5378 # include <assert.h> 5379 #endif 5380 Syntax error 5381 _ACEOF 5382 if { (ac_try="$ac_cpp conftest.$ac_ext" 5383 case "(($ac_try" in 5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5385 *) ac_try_echo=$ac_try;; 5386 esac 5387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5388 $as_echo "$ac_try_echo") >&5 5389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5390 ac_status=$? 5391 grep -v '^ *+' conftest.er1 >conftest.err 5392 rm -f conftest.er1 5393 cat conftest.err >&5 5394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); } >/dev/null && { 5396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5397 test ! -s conftest.err 5398 }; then 5399 : 5400 else 5401 $as_echo "$as_me: failed program was:" >&5 5402 sed 's/^/| /' conftest.$ac_ext >&5 5403 5404 # Broken: fails on valid input. 5405 continue 5406 fi 5407 5408 rm -f conftest.err conftest.$ac_ext 5409 5410 # OK, works on sane cases. Now check whether nonexistent headers 5411 # can be detected and how. 5412 cat >conftest.$ac_ext <<_ACEOF 5413 /* confdefs.h. */ 5414 _ACEOF 5415 cat confdefs.h >>conftest.$ac_ext 5416 cat >>conftest.$ac_ext <<_ACEOF 5417 /* end confdefs.h. */ 5418 #include <ac_nonexistent.h> 5419 _ACEOF 5420 if { (ac_try="$ac_cpp conftest.$ac_ext" 5421 case "(($ac_try" in 5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5423 *) ac_try_echo=$ac_try;; 5424 esac 5425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5426 $as_echo "$ac_try_echo") >&5 5427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5428 ac_status=$? 5429 grep -v '^ *+' conftest.er1 >conftest.err 5430 rm -f conftest.er1 5431 cat conftest.err >&5 5432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5433 (exit $ac_status); } >/dev/null && { 5434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5435 test ! -s conftest.err 5436 }; then 5437 # Broken: success on invalid input. 5438 continue 5439 else 5440 $as_echo "$as_me: failed program was:" >&5 5441 sed 's/^/| /' conftest.$ac_ext >&5 5442 5443 # Passes both tests. 5444 ac_preproc_ok=: 5445 break 5446 fi 5447 5448 rm -f conftest.err conftest.$ac_ext 5449 5450 done 5451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5452 rm -f conftest.err conftest.$ac_ext 5453 if $ac_preproc_ok; then 5454 : 5455 else 5456 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 5457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5458 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5459 See \`config.log' for more details." >&5 5460 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5461 See \`config.log' for more details." >&2;} 5462 { (exit 1); exit 1; }; }; } 5463 fi 5464 5465 ac_ext=c 5466 ac_cpp='$CPP $CPPFLAGS' 5467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5469 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5470 5471 5472 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5473 $as_echo_n "checking for ANSI C header files... " >&6; } 5474 if test "${ac_cv_header_stdc+set}" = set; then 5475 $as_echo_n "(cached) " >&6 5476 else 5477 cat >conftest.$ac_ext <<_ACEOF 5478 /* confdefs.h. */ 5479 _ACEOF 5480 cat confdefs.h >>conftest.$ac_ext 5481 cat >>conftest.$ac_ext <<_ACEOF 5482 /* end confdefs.h. */ 5483 #include <stdlib.h> 5484 #include <stdarg.h> 5485 #include <string.h> 5486 #include <float.h> 5487 5488 int 5489 main () 5490 { 5491 5492 ; 5493 return 0; 5494 } 5495 _ACEOF 5496 rm -f conftest.$ac_objext 5497 if { (ac_try="$ac_compile" 5498 case "(($ac_try" in 5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5500 *) ac_try_echo=$ac_try;; 5501 esac 5502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5503 $as_echo "$ac_try_echo") >&5 5504 (eval "$ac_compile") 2>conftest.er1 5505 ac_status=$? 5506 grep -v '^ *+' conftest.er1 >conftest.err 5507 rm -f conftest.er1 5508 cat conftest.err >&5 5509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5510 (exit $ac_status); } && { 5511 test -z "$ac_c_werror_flag" || 5512 test ! -s conftest.err 5513 } && test -s conftest.$ac_objext; then 5514 ac_cv_header_stdc=yes 5515 else 5516 $as_echo "$as_me: failed program was:" >&5 5517 sed 's/^/| /' conftest.$ac_ext >&5 5518 5519 ac_cv_header_stdc=no 5520 fi 5521 5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5523 5524 if test $ac_cv_header_stdc = yes; then 5525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5526 cat >conftest.$ac_ext <<_ACEOF 5527 /* confdefs.h. */ 5528 _ACEOF 5529 cat confdefs.h >>conftest.$ac_ext 5530 cat >>conftest.$ac_ext <<_ACEOF 5531 /* end confdefs.h. */ 5532 #include <string.h> 5533 5534 _ACEOF 5535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5536 $EGREP "memchr" >/dev/null 2>&1; then 5537 : 5538 else 5539 ac_cv_header_stdc=no 5540 fi 5541 rm -f conftest* 5542 5543 fi 5544 5545 if test $ac_cv_header_stdc = yes; then 5546 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5547 cat >conftest.$ac_ext <<_ACEOF 5548 /* confdefs.h. */ 5549 _ACEOF 5550 cat confdefs.h >>conftest.$ac_ext 5551 cat >>conftest.$ac_ext <<_ACEOF 5552 /* end confdefs.h. */ 5553 #include <stdlib.h> 5554 5555 _ACEOF 5556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5557 $EGREP "free" >/dev/null 2>&1; then 5558 : 5559 else 5560 ac_cv_header_stdc=no 5561 fi 5562 rm -f conftest* 5563 5564 fi 5565 5566 if test $ac_cv_header_stdc = yes; then 5567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5568 if test "$cross_compiling" = yes; then 5569 : 5570 else 5571 cat >conftest.$ac_ext <<_ACEOF 5572 /* confdefs.h. */ 5573 _ACEOF 5574 cat confdefs.h >>conftest.$ac_ext 5575 cat >>conftest.$ac_ext <<_ACEOF 5576 /* end confdefs.h. */ 5577 #include <ctype.h> 5578 #include <stdlib.h> 5579 #if ((' ' & 0x0FF) == 0x020) 5580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5582 #else 5583 # define ISLOWER(c) \ 5584 (('a' <= (c) && (c) <= 'i') \ 5585 || ('j' <= (c) && (c) <= 'r') \ 5586 || ('s' <= (c) && (c) <= 'z')) 5587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5588 #endif 5589 5590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5591 int 5592 main () 5593 { 5594 int i; 5595 for (i = 0; i < 256; i++) 5596 if (XOR (islower (i), ISLOWER (i)) 5597 || toupper (i) != TOUPPER (i)) 5598 return 2; 5599 return 0; 5600 } 5601 _ACEOF 5602 rm -f conftest$ac_exeext 5603 if { (ac_try="$ac_link" 5604 case "(($ac_try" in 5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5606 *) ac_try_echo=$ac_try;; 5607 esac 5608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5609 $as_echo "$ac_try_echo") >&5 5610 (eval "$ac_link") 2>&5 5611 ac_status=$? 5612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5614 { (case "(($ac_try" in 5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5616 *) ac_try_echo=$ac_try;; 5617 esac 5618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5619 $as_echo "$ac_try_echo") >&5 5620 (eval "$ac_try") 2>&5 5621 ac_status=$? 5622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5623 (exit $ac_status); }; }; then 5624 : 5625 else 5626 $as_echo "$as_me: program exited with status $ac_status" >&5 5627 $as_echo "$as_me: failed program was:" >&5 5628 sed 's/^/| /' conftest.$ac_ext >&5 5629 5630 ( exit $ac_status ) 5631 ac_cv_header_stdc=no 5632 fi 5633 rm -rf conftest.dSYM 5634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5635 fi 5636 5637 5638 fi 5639 fi 5640 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5641 $as_echo "$ac_cv_header_stdc" >&6; } 5642 if test $ac_cv_header_stdc = yes; then 5643 5644 cat >>confdefs.h <<\_ACEOF 5645 #define STDC_HEADERS 1 5646 _ACEOF 5647 5648 fi 5649 5650 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5661 inttypes.h stdint.h unistd.h 5662 do 5663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5665 $as_echo_n "checking for $ac_header... " >&6; } 5666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5667 $as_echo_n "(cached) " >&6 5668 else 5669 cat >conftest.$ac_ext <<_ACEOF 5670 /* confdefs.h. */ 5671 _ACEOF 5672 cat confdefs.h >>conftest.$ac_ext 5673 cat >>conftest.$ac_ext <<_ACEOF 5674 /* end confdefs.h. */ 5675 $ac_includes_default 5676 5677 #include <$ac_header> 5678 _ACEOF 5679 rm -f conftest.$ac_objext 5680 if { (ac_try="$ac_compile" 5681 case "(($ac_try" in 5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5683 *) ac_try_echo=$ac_try;; 5684 esac 5685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5686 $as_echo "$ac_try_echo") >&5 5687 (eval "$ac_compile") 2>conftest.er1 5688 ac_status=$? 5689 grep -v '^ *+' conftest.er1 >conftest.err 5690 rm -f conftest.er1 5691 cat conftest.err >&5 5692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5693 (exit $ac_status); } && { 5694 test -z "$ac_c_werror_flag" || 5695 test ! -s conftest.err 5696 } && test -s conftest.$ac_objext; then 5697 eval "$as_ac_Header=yes" 5698 else 5699 $as_echo "$as_me: failed program was:" >&5 5700 sed 's/^/| /' conftest.$ac_ext >&5 5701 5702 eval "$as_ac_Header=no" 5703 fi 5704 5705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5706 fi 5707 ac_res=`eval 'as_val=${'$as_ac_Header'} 5708 $as_echo "$as_val"'` 5709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5710 $as_echo "$ac_res" >&6; } 5711 as_val=`eval 'as_val=${'$as_ac_Header'} 5712 $as_echo "$as_val"'` 5713 if test "x$as_val" = x""yes; then 5714 cat >>confdefs.h <<_ACEOF 5715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5716 _ACEOF 5717 5718 fi 5719 5720 done 5721 5722 5723 5724 for ac_header in dlfcn.h 5725 do 5726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5729 $as_echo_n "checking for $ac_header... " >&6; } 5730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5731 $as_echo_n "(cached) " >&6 5732 fi 5733 ac_res=`eval 'as_val=${'$as_ac_Header'} 5734 $as_echo "$as_val"'` 5735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5736 $as_echo "$ac_res" >&6; } 5737 else 5738 # Is the header compilable? 5739 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 5740 $as_echo_n "checking $ac_header usability... " >&6; } 5741 cat >conftest.$ac_ext <<_ACEOF 5742 /* confdefs.h. */ 5743 _ACEOF 5744 cat confdefs.h >>conftest.$ac_ext 5745 cat >>conftest.$ac_ext <<_ACEOF 5746 /* end confdefs.h. */ 5747 $ac_includes_default 5748 #include <$ac_header> 5749 _ACEOF 5750 rm -f conftest.$ac_objext 5751 if { (ac_try="$ac_compile" 5752 case "(($ac_try" in 5753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5754 *) ac_try_echo=$ac_try;; 5755 esac 5756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5757 $as_echo "$ac_try_echo") >&5 5758 (eval "$ac_compile") 2>conftest.er1 5759 ac_status=$? 5760 grep -v '^ *+' conftest.er1 >conftest.err 5761 rm -f conftest.er1 5762 cat conftest.err >&5 5763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5764 (exit $ac_status); } && { 5765 test -z "$ac_c_werror_flag" || 5766 test ! -s conftest.err 5767 } && test -s conftest.$ac_objext; then 5768 ac_header_compiler=yes 5769 else 5770 $as_echo "$as_me: failed program was:" >&5 5771 sed 's/^/| /' conftest.$ac_ext >&5 5772 5773 ac_header_compiler=no 5774 fi 5775 5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5778 $as_echo "$ac_header_compiler" >&6; } 5779 5780 # Is the header present? 5781 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 5782 $as_echo_n "checking $ac_header presence... " >&6; } 5783 cat >conftest.$ac_ext <<_ACEOF 5784 /* confdefs.h. */ 5785 _ACEOF 5786 cat confdefs.h >>conftest.$ac_ext 5787 cat >>conftest.$ac_ext <<_ACEOF 5788 /* end confdefs.h. */ 5789 #include <$ac_header> 5790 _ACEOF 5791 if { (ac_try="$ac_cpp conftest.$ac_ext" 5792 case "(($ac_try" in 5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5794 *) ac_try_echo=$ac_try;; 5795 esac 5796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5797 $as_echo "$ac_try_echo") >&5 5798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5799 ac_status=$? 5800 grep -v '^ *+' conftest.er1 >conftest.err 5801 rm -f conftest.er1 5802 cat conftest.err >&5 5803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5804 (exit $ac_status); } >/dev/null && { 5805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 5806 test ! -s conftest.err 5807 }; then 5808 ac_header_preproc=yes 5809 else 5810 $as_echo "$as_me: failed program was:" >&5 5811 sed 's/^/| /' conftest.$ac_ext >&5 5812 5813 ac_header_preproc=no 5814 fi 5815 5816 rm -f conftest.err conftest.$ac_ext 5817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5818 $as_echo "$ac_header_preproc" >&6; } 5819 5820 # So? What about this header? 5821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5822 yes:no: ) 5823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5824 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5826 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5827 ac_header_preproc=yes 5828 ;; 5829 no:yes:* ) 5830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5831 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5833 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5835 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5837 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5841 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5842 ( cat <<\_ASBOX 5843 ## --------------------------------------------------- ## 5844 ## Report this to Andrew Schofield andrew_s@fahmon.net ## 5845 ## --------------------------------------------------- ## 5846 _ASBOX 5847 ) | sed "s/^/$as_me: WARNING: /" >&2 5848 ;; 5849 esac 5850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5851 $as_echo_n "checking for $ac_header... " >&6; } 5852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5853 $as_echo_n "(cached) " >&6 5854 else 5855 eval "$as_ac_Header=\$ac_header_preproc" 5856 fi 5857 ac_res=`eval 'as_val=${'$as_ac_Header'} 5858 $as_echo "$as_val"'` 5859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 5860 $as_echo "$ac_res" >&6; } 5861 5862 fi 5863 as_val=`eval 'as_val=${'$as_ac_Header'} 5864 $as_echo "$as_val"'` 5865 if test "x$as_val" = x""yes; then 5866 cat >>confdefs.h <<_ACEOF 5867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5868 _ACEOF 5869 5870 fi 5871 5872 done 5873 5874 5875 5876 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 5877 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5878 (test "X$CXX" != "Xg++"))) ; then 5879 ac_ext=cpp 5880 ac_cpp='$CXXCPP $CPPFLAGS' 5881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5884 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5885 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5886 if test -z "$CXXCPP"; then 5887 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5888 $as_echo_n "(cached) " >&6 5889 else 5890 # Double quotes because CXXCPP needs to be expanded 5891 for CXXCPP in "$CXX -E" "/lib/cpp" 5892 do 5893 ac_preproc_ok=false 5894 for ac_cxx_preproc_warn_flag in '' yes 5895 do 5896 # Use a header file that comes with gcc, so configuring glibc 5897 # with a fresh cross-compiler works. 5898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5899 # <limits.h> exists even on freestanding compilers. 5900 # On the NeXT, cc -E runs the code through the compiler's parser, 5901 # not just through cpp. "Syntax error" is here to catch this case. 5902 cat >conftest.$ac_ext <<_ACEOF 5903 /* confdefs.h. */ 5904 _ACEOF 5905 cat confdefs.h >>conftest.$ac_ext 5906 cat >>conftest.$ac_ext <<_ACEOF 5907 /* end confdefs.h. */ 5908 #ifdef __STDC__ 5909 # include <limits.h> 5910 #else 5911 # include <assert.h> 5912 #endif 5913 Syntax error 5914 _ACEOF 5915 if { (ac_try="$ac_cpp conftest.$ac_ext" 5916 case "(($ac_try" in 5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5918 *) ac_try_echo=$ac_try;; 5919 esac 5920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5921 $as_echo "$ac_try_echo") >&5 5922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5923 ac_status=$? 5924 grep -v '^ *+' conftest.er1 >conftest.err 5925 rm -f conftest.er1 5926 cat conftest.err >&5 5927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5928 (exit $ac_status); } >/dev/null && { 5929 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5930 test ! -s conftest.err 5931 }; then 5932 : 5933 else 5934 $as_echo "$as_me: failed program was:" >&5 5935 sed 's/^/| /' conftest.$ac_ext >&5 5936 5937 # Broken: fails on valid input. 5938 continue 5939 fi 5940 5941 rm -f conftest.err conftest.$ac_ext 5942 5943 # OK, works on sane cases. Now check whether nonexistent headers 5944 # can be detected and how. 5945 cat >conftest.$ac_ext <<_ACEOF 5946 /* confdefs.h. */ 5947 _ACEOF 5948 cat confdefs.h >>conftest.$ac_ext 5949 cat >>conftest.$ac_ext <<_ACEOF 5950 /* end confdefs.h. */ 5951 #include <ac_nonexistent.h> 5952 _ACEOF 5953 if { (ac_try="$ac_cpp conftest.$ac_ext" 5954 case "(($ac_try" in 5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5956 *) ac_try_echo=$ac_try;; 5957 esac 5958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 5959 $as_echo "$ac_try_echo") >&5 5960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 5961 ac_status=$? 5962 grep -v '^ *+' conftest.er1 >conftest.err 5963 rm -f conftest.er1 5964 cat conftest.err >&5 5965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 5966 (exit $ac_status); } >/dev/null && { 5967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 5968 test ! -s conftest.err 5969 }; then 5970 # Broken: success on invalid input. 5971 continue 5972 else 5973 $as_echo "$as_me: failed program was:" >&5 5974 sed 's/^/| /' conftest.$ac_ext >&5 5975 5976 # Passes both tests. 5977 ac_preproc_ok=: 5978 break 5979 fi 5980 5981 rm -f conftest.err conftest.$ac_ext 5982 5983 done 5984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5985 rm -f conftest.err conftest.$ac_ext 5986 if $ac_preproc_ok; then 5987 break 5988 fi 5989 5990 done 5991 ac_cv_prog_CXXCPP=$CXXCPP 5992 5993 fi 5994 CXXCPP=$ac_cv_prog_CXXCPP 5995 else 5996 ac_cv_prog_CXXCPP=$CXXCPP 5997 fi 5998 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5 5999 $as_echo "$CXXCPP" >&6; } 6000 ac_preproc_ok=false 6001 for ac_cxx_preproc_warn_flag in '' yes 6002 do 6003 # Use a header file that comes with gcc, so configuring glibc 6004 # with a fresh cross-compiler works. 6005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6006 # <limits.h> exists even on freestanding compilers. 6007 # On the NeXT, cc -E runs the code through the compiler's parser, 6008 # not just through cpp. "Syntax error" is here to catch this case. 6009 cat >conftest.$ac_ext <<_ACEOF 6010 /* confdefs.h. */ 6011 _ACEOF 6012 cat confdefs.h >>conftest.$ac_ext 6013 cat >>conftest.$ac_ext <<_ACEOF 6014 /* end confdefs.h. */ 6015 #ifdef __STDC__ 6016 # include <limits.h> 6017 #else 6018 # include <assert.h> 6019 #endif 6020 Syntax error 6021 _ACEOF 6022 if { (ac_try="$ac_cpp conftest.$ac_ext" 6023 case "(($ac_try" in 6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6025 *) ac_try_echo=$ac_try;; 6026 esac 6027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6028 $as_echo "$ac_try_echo") >&5 6029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6030 ac_status=$? 6031 grep -v '^ *+' conftest.er1 >conftest.err 6032 rm -f conftest.er1 6033 cat conftest.err >&5 6034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6035 (exit $ac_status); } >/dev/null && { 6036 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6037 test ! -s conftest.err 6038 }; then 6039 : 6040 else 6041 $as_echo "$as_me: failed program was:" >&5 6042 sed 's/^/| /' conftest.$ac_ext >&5 6043 6044 # Broken: fails on valid input. 6045 continue 6046 fi 6047 6048 rm -f conftest.err conftest.$ac_ext 6049 6050 # OK, works on sane cases. Now check whether nonexistent headers 6051 # can be detected and how. 6052 cat >conftest.$ac_ext <<_ACEOF 6053 /* confdefs.h. */ 6054 _ACEOF 6055 cat confdefs.h >>conftest.$ac_ext 6056 cat >>conftest.$ac_ext <<_ACEOF 6057 /* end confdefs.h. */ 6058 #include <ac_nonexistent.h> 6059 _ACEOF 6060 if { (ac_try="$ac_cpp conftest.$ac_ext" 6061 case "(($ac_try" in 6062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6063 *) ac_try_echo=$ac_try;; 6064 esac 6065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6066 $as_echo "$ac_try_echo") >&5 6067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 6068 ac_status=$? 6069 grep -v '^ *+' conftest.er1 >conftest.err 6070 rm -f conftest.er1 6071 cat conftest.err >&5 6072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6073 (exit $ac_status); } >/dev/null && { 6074 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 6075 test ! -s conftest.err 6076 }; then 6077 # Broken: success on invalid input. 6078 continue 6079 else 6080 $as_echo "$as_me: failed program was:" >&5 6081 sed 's/^/| /' conftest.$ac_ext >&5 6082 6083 # Passes both tests. 6084 ac_preproc_ok=: 6085 break 6086 fi 6087 6088 rm -f conftest.err conftest.$ac_ext 6089 6090 done 6091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6092 rm -f conftest.err conftest.$ac_ext 6093 if $ac_preproc_ok; then 6094 : 6095 else 6096 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 6097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6098 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6099 See \`config.log' for more details." >&5 6100 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 6101 See \`config.log' for more details." >&2;} 6102 { (exit 1); exit 1; }; }; } 6103 fi 6104 6105 ac_ext=cpp 6106 ac_cpp='$CXXCPP $CPPFLAGS' 6107 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6108 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6109 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6110 6111 fi 6112 6113 6114 ac_ext=f 6115 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6116 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6117 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6118 if test -n "$ac_tool_prefix"; then 6119 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6120 do 6121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6123 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 6124 $as_echo_n "checking for $ac_word... " >&6; } 6125 if test "${ac_cv_prog_F77+set}" = set; then 6126 $as_echo_n "(cached) " >&6 6127 else 6128 if test -n "$F77"; then 6129 ac_cv_prog_F77="$F77" # Let the user override the test. 5590 if test -n "$AR"; then 5591 ac_cv_prog_AR="$AR" # Let the user override the test. 6130 5592 else 6131 5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 6134 5596 IFS=$as_save_IFS 6135 5597 test -z "$as_dir" && as_dir=. 6136 for ac_exec_ext in '' $ac_executable_extensions; do5598 for ac_exec_ext in '' $ac_executable_extensions; do 6137 5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6138 ac_cv_prog_ F77="$ac_tool_prefix$ac_prog"6139 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55600 ac_cv_prog_AR="${ac_tool_prefix}ar" 5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6140 5602 break 2 6141 5603 fi 6142 5604 done 6143 done5605 done 6144 5606 IFS=$as_save_IFS 6145 5607 6146 5608 fi 6147 5609 fi 6148 F77=$ac_cv_prog_F77 6149 if test -n "$ F77"; then6150 { $as_echo "$as_me:$ LINENO: result: $F77" >&56151 $as_echo "$ F77" >&6; }6152 else 6153 { $as_echo "$as_me:$ LINENO: result: no" >&55610 AR=$ac_cv_prog_AR 5611 if test -n "$AR"; then 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5613 $as_echo "$AR" >&6; } 5614 else 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6154 5616 $as_echo "no" >&6; } 6155 5617 fi 6156 5618 6157 5619 6158 test -n "$F77" && break 6159 done 6160 fi 6161 if test -z "$F77"; then 6162 ac_ct_F77=$F77 6163 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn 6164 do 6165 # Extract the first word of "$ac_prog", so it can be a program name with args. 6166 set dummy $ac_prog; ac_word=$2 6167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5620 fi 5621 if test -z "$ac_cv_prog_AR"; then 5622 ac_ct_AR=$AR 5623 # Extract the first word of "ar", so it can be a program name with args. 5624 set dummy ar; ac_word=$2 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6168 5626 $as_echo_n "checking for $ac_word... " >&6; } 6169 if test "${ac_cv_prog_ac_ct_ F77+set}" = set; then5627 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6170 5628 $as_echo_n "(cached) " >&6 6171 5629 else 6172 if test -n "$ac_ct_ F77"; then6173 ac_cv_prog_ac_ct_ F77="$ac_ct_F77" # Let the user override the test.5630 if test -n "$ac_ct_AR"; then 5631 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6174 5632 else 6175 5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 6178 5636 IFS=$as_save_IFS 6179 5637 test -z "$as_dir" && as_dir=. 6180 for ac_exec_ext in '' $ac_executable_extensions; do5638 for ac_exec_ext in '' $ac_executable_extensions; do 6181 5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6182 ac_cv_prog_ac_ct_ F77="$ac_prog"6183 $as_echo "$as_me:$ LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55640 ac_cv_prog_ac_ct_AR="ar" 5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6184 5642 break 2 6185 5643 fi 6186 5644 done 6187 done5645 done 6188 5646 IFS=$as_save_IFS 6189 5647 6190 5648 fi 6191 5649 fi 6192 ac_ct_ F77=$ac_cv_prog_ac_ct_F776193 if test -n "$ac_ct_ F77"; then6194 { $as_echo "$as_me:$ LINENO: result: $ac_ct_F77" >&56195 $as_echo "$ac_ct_ F77" >&6; }6196 else 6197 { $as_echo "$as_me:$ LINENO: result: no" >&55650 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5651 if test -n "$ac_ct_AR"; then 5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5653 $as_echo "$ac_ct_AR" >&6; } 5654 else 5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6198 5656 $as_echo "no" >&6; } 6199 5657 fi 6200 5658 6201 6202 test -n "$ac_ct_F77" && break 6203 done 6204 6205 if test "x$ac_ct_F77" = x; then 6206 F77="" 5659 if test "x$ac_ct_AR" = x; then 5660 AR="false" 6207 5661 else 6208 5662 case $cross_compiling:$ac_tool_warned in 6209 5663 yes:) 6210 { $as_echo "$as_me:$ LINENO: WARNING: using cross tools not prefixed with host triplet" >&55664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6211 5665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6212 5666 ac_tool_warned=yes ;; 6213 5667 esac 6214 F77=$ac_ct_F775668 AR=$ac_ct_AR 6215 5669 fi 6216 fi 6217 6218 6219 # Provide some information about the compiler. 6220 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 6221 set X $ac_compile 6222 ac_compiler=$2 6223 { (ac_try="$ac_compiler --version >&5" 6224 case "(($ac_try" in 6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6226 *) ac_try_echo=$ac_try;; 5670 else 5671 AR="$ac_cv_prog_AR" 5672 fi 5673 5674 test -z "$AR" && AR=ar 5675 test -z "$AR_FLAGS" && AR_FLAGS=cru 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 if test -n "$ac_tool_prefix"; then 5688 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5689 set dummy ${ac_tool_prefix}strip; ac_word=$2 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5691 $as_echo_n "checking for $ac_word... " >&6; } 5692 if test "${ac_cv_prog_STRIP+set}" = set; then : 5693 $as_echo_n "(cached) " >&6 5694 else 5695 if test -n "$STRIP"; then 5696 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5697 else 5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5699 for as_dir in $PATH 5700 do 5701 IFS=$as_save_IFS 5702 test -z "$as_dir" && as_dir=. 5703 for ac_exec_ext in '' $ac_executable_extensions; do 5704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5705 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 break 2 5708 fi 5709 done 5710 done 5711 IFS=$as_save_IFS 5712 5713 fi 5714 fi 5715 STRIP=$ac_cv_prog_STRIP 5716 if test -n "$STRIP"; then 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5718 $as_echo "$STRIP" >&6; } 5719 else 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5721 $as_echo "no" >&6; } 5722 fi 5723 5724 5725 fi 5726 if test -z "$ac_cv_prog_STRIP"; then 5727 ac_ct_STRIP=$STRIP 5728 # Extract the first word of "strip", so it can be a program name with args. 5729 set dummy strip; ac_word=$2 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731 $as_echo_n "checking for $ac_word... " >&6; } 5732 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5733 $as_echo_n "(cached) " >&6 5734 else 5735 if test -n "$ac_ct_STRIP"; then 5736 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5737 else 5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739 for as_dir in $PATH 5740 do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5745 ac_cv_prog_ac_ct_STRIP="strip" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749 done 5750 done 5751 IFS=$as_save_IFS 5752 5753 fi 5754 fi 5755 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5756 if test -n "$ac_ct_STRIP"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5758 $as_echo "$ac_ct_STRIP" >&6; } 5759 else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761 $as_echo "no" >&6; } 5762 fi 5763 5764 if test "x$ac_ct_STRIP" = x; then 5765 STRIP=":" 5766 else 5767 case $cross_compiling:$ac_tool_warned in 5768 yes:) 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5771 ac_tool_warned=yes ;; 6227 5772 esac 6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6229 $as_echo "$ac_try_echo") >&5 6230 (eval "$ac_compiler --version >&5") 2>&5 6231 ac_status=$? 6232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6233 (exit $ac_status); } 6234 { (ac_try="$ac_compiler -v >&5" 6235 case "(($ac_try" in 6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6237 *) ac_try_echo=$ac_try;; 5773 STRIP=$ac_ct_STRIP 5774 fi 5775 else 5776 STRIP="$ac_cv_prog_STRIP" 5777 fi 5778 5779 test -z "$STRIP" && STRIP=: 5780 5781 5782 5783 5784 5785 5786 if test -n "$ac_tool_prefix"; then 5787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5790 $as_echo_n "checking for $ac_word... " >&6; } 5791 if test "${ac_cv_prog_RANLIB+set}" = set; then : 5792 $as_echo_n "(cached) " >&6 5793 else 5794 if test -n "$RANLIB"; then 5795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5796 else 5797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5798 for as_dir in $PATH 5799 do 5800 IFS=$as_save_IFS 5801 test -z "$as_dir" && as_dir=. 5802 for ac_exec_ext in '' $ac_executable_extensions; do 5803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5806 break 2 5807 fi 5808 done 5809 done 5810 IFS=$as_save_IFS 5811 5812 fi 5813 fi 5814 RANLIB=$ac_cv_prog_RANLIB 5815 if test -n "$RANLIB"; then 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5817 $as_echo "$RANLIB" >&6; } 5818 else 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5820 $as_echo "no" >&6; } 5821 fi 5822 5823 5824 fi 5825 if test -z "$ac_cv_prog_RANLIB"; then 5826 ac_ct_RANLIB=$RANLIB 5827 # Extract the first word of "ranlib", so it can be a program name with args. 5828 set dummy ranlib; ac_word=$2 5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5830 $as_echo_n "checking for $ac_word... " >&6; } 5831 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5832 $as_echo_n "(cached) " >&6 5833 else 5834 if test -n "$ac_ct_RANLIB"; then 5835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5836 else 5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5838 for as_dir in $PATH 5839 do 5840 IFS=$as_save_IFS 5841 test -z "$as_dir" && as_dir=. 5842 for ac_exec_ext in '' $ac_executable_extensions; do 5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5844 ac_cv_prog_ac_ct_RANLIB="ranlib" 5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5846 break 2 5847 fi 5848 done 5849 done 5850 IFS=$as_save_IFS 5851 5852 fi 5853 fi 5854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5855 if test -n "$ac_ct_RANLIB"; then 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5857 $as_echo "$ac_ct_RANLIB" >&6; } 5858 else 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5860 $as_echo "no" >&6; } 5861 fi 5862 5863 if test "x$ac_ct_RANLIB" = x; then 5864 RANLIB=":" 5865 else 5866 case $cross_compiling:$ac_tool_warned in 5867 yes:) 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5870 ac_tool_warned=yes ;; 6238 5871 esac 6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6240 $as_echo "$ac_try_echo") >&5 6241 (eval "$ac_compiler -v >&5") 2>&5 6242 ac_status=$? 6243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6244 (exit $ac_status); } 6245 { (ac_try="$ac_compiler -V >&5" 6246 case "(($ac_try" in 6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6248 *) ac_try_echo=$ac_try;; 6249 esac 6250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6251 $as_echo "$ac_try_echo") >&5 6252 (eval "$ac_compiler -V >&5") 2>&5 6253 ac_status=$? 6254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6255 (exit $ac_status); } 6256 rm -f a.out 6257 6258 # If we don't use `.F' as extension, the preprocessor is not run on the 6259 # input file. (Note that this only needs to work for GNU compilers.) 6260 ac_save_ext=$ac_ext 6261 ac_ext=F 6262 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 6263 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 6264 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 6265 $as_echo_n "(cached) " >&6 6266 else 6267 cat >conftest.$ac_ext <<_ACEOF 6268 program main 6269 #ifndef __GNUC__ 6270 choke me 6271 #endif 6272 6273 end 6274 _ACEOF 6275 rm -f conftest.$ac_objext 6276 if { (ac_try="$ac_compile" 6277 case "(($ac_try" in 6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6279 *) ac_try_echo=$ac_try;; 6280 esac 6281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6282 $as_echo "$ac_try_echo") >&5 6283 (eval "$ac_compile") 2>conftest.er1 6284 ac_status=$? 6285 grep -v '^ *+' conftest.er1 >conftest.err 6286 rm -f conftest.er1 6287 cat conftest.err >&5 6288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6289 (exit $ac_status); } && { 6290 test -z "$ac_f77_werror_flag" || 6291 test ! -s conftest.err 6292 } && test -s conftest.$ac_objext; then 6293 ac_compiler_gnu=yes 6294 else 6295 $as_echo "$as_me: failed program was:" >&5 6296 sed 's/^/| /' conftest.$ac_ext >&5 6297 6298 ac_compiler_gnu=no 6299 fi 6300 6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6302 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 6303 6304 fi 6305 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 6306 $as_echo "$ac_cv_f77_compiler_gnu" >&6; } 6307 ac_ext=$ac_save_ext 6308 ac_test_FFLAGS=${FFLAGS+set} 6309 ac_save_FFLAGS=$FFLAGS 6310 FFLAGS= 6311 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 6312 $as_echo_n "checking whether $F77 accepts -g... " >&6; } 6313 if test "${ac_cv_prog_f77_g+set}" = set; then 6314 $as_echo_n "(cached) " >&6 6315 else 6316 FFLAGS=-g 6317 cat >conftest.$ac_ext <<_ACEOF 6318 program main 6319 6320 end 6321 _ACEOF 6322 rm -f conftest.$ac_objext 6323 if { (ac_try="$ac_compile" 6324 case "(($ac_try" in 6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6326 *) ac_try_echo=$ac_try;; 6327 esac 6328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6329 $as_echo "$ac_try_echo") >&5 6330 (eval "$ac_compile") 2>conftest.er1 6331 ac_status=$? 6332 grep -v '^ *+' conftest.er1 >conftest.err 6333 rm -f conftest.er1 6334 cat conftest.err >&5 6335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6336 (exit $ac_status); } && { 6337 test -z "$ac_f77_werror_flag" || 6338 test ! -s conftest.err 6339 } && test -s conftest.$ac_objext; then 6340 ac_cv_prog_f77_g=yes 6341 else 6342 $as_echo "$as_me: failed program was:" >&5 6343 sed 's/^/| /' conftest.$ac_ext >&5 6344 6345 ac_cv_prog_f77_g=no 6346 fi 6347 6348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6349 6350 fi 6351 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 6352 $as_echo "$ac_cv_prog_f77_g" >&6; } 6353 if test "$ac_test_FFLAGS" = set; then 6354 FFLAGS=$ac_save_FFLAGS 6355 elif test $ac_cv_prog_f77_g = yes; then 6356 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6357 FFLAGS="-g -O2" 6358 else 6359 FFLAGS="-g" 5872 RANLIB=$ac_ct_RANLIB 6360 5873 fi 6361 5874 else 6362 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 6363 FFLAGS="-O2" 6364 else 6365 FFLAGS= 6366 fi 6367 fi 6368 6369 if test $ac_compiler_gnu = yes; then 6370 G77=yes 6371 else 6372 G77= 6373 fi 6374 ac_ext=c 6375 ac_cpp='$CPP $CPPFLAGS' 6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6379 6380 6381 6382 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 6383 # find the maximum length of command line arguments 6384 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 6385 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 6386 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 6387 $as_echo_n "(cached) " >&6 6388 else 6389 i=0 6390 teststring="ABCD" 6391 6392 case $build_os in 6393 msdosdjgpp*) 6394 # On DJGPP, this test can blow up pretty badly due to problems in libc 6395 # (any single argument exceeding 2000 bytes causes a buffer overrun 6396 # during glob expansion). Even if it were fixed, the result of this 6397 # check would be larger than it should be. 6398 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6399 ;; 6400 6401 gnu*) 6402 # Under GNU Hurd, this test is not required because there is 6403 # no limit to the length of command line arguments. 6404 # Libtool will interpret -1 as no limit whatsoever 6405 lt_cv_sys_max_cmd_len=-1; 6406 ;; 6407 6408 cygwin* | mingw*) 6409 # On Win9x/ME, this test blows up -- it succeeds, but takes 6410 # about 5 minutes as the teststring grows exponentially. 6411 # Worse, since 9x/ME are not pre-emptively multitasking, 6412 # you end up with a "frozen" computer, even though with patience 6413 # the test eventually succeeds (with a max line length of 256k). 6414 # Instead, let's just punt: use the minimum linelength reported by 6415 # all of the supported platforms: 8192 (on NT/2K/XP). 6416 lt_cv_sys_max_cmd_len=8192; 6417 ;; 6418 6419 amigaos*) 6420 # On AmigaOS with pdksh, this test takes hours, literally. 6421 # So we just punt and use a minimum line length of 8192. 6422 lt_cv_sys_max_cmd_len=8192; 6423 ;; 6424 6425 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6426 # This has been around since 386BSD, at least. Likely further. 6427 if test -x /sbin/sysctl; then 6428 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6429 elif test -x /usr/sbin/sysctl; then 6430 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6431 else 6432 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6433 fi 6434 # And add a safety zone 6435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6437 ;; 6438 6439 interix*) 6440 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6441 lt_cv_sys_max_cmd_len=196608 6442 ;; 6443 6444 osf*) 6445 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6446 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6447 # nice to cause kernel panics so lets avoid the loop below. 6448 # First set a reasonable default. 6449 lt_cv_sys_max_cmd_len=16384 6450 # 6451 if test -x /sbin/sysconfig; then 6452 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6453 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6454 esac 6455 fi 6456 ;; 6457 sco3.2v5*) 6458 lt_cv_sys_max_cmd_len=102400 6459 ;; 6460 sysv5* | sco5v6* | sysv4.2uw2*) 6461 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6462 if test -n "$kargmax"; then 6463 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6464 else 6465 lt_cv_sys_max_cmd_len=32768 6466 fi 5875 RANLIB="$ac_cv_prog_RANLIB" 5876 fi 5877 5878 test -z "$RANLIB" && RANLIB=: 5879 5880 5881 5882 5883 5884 5885 # Determine commands to create old-style static archives. 5886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5887 old_postinstall_cmds='chmod 644 $oldlib' 5888 old_postuninstall_cmds= 5889 5890 if test -n "$RANLIB"; then 5891 case $host_os in 5892 openbsd*) 5893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6467 5894 ;; 6468 5895 *) 6469 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6470 if test -n "$lt_cv_sys_max_cmd_len"; then 6471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6472 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6473 else 6474 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6475 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 6476 = "XX$teststring") >/dev/null 2>&1 && 6477 new_result=`expr "X$teststring" : ".*" 2>&1` && 6478 lt_cv_sys_max_cmd_len=$new_result && 6479 test $i != 17 # 1/2 MB should be enough 6480 do 6481 i=`expr $i + 1` 6482 teststring=$teststring$teststring 6483 done 6484 teststring= 6485 # Add a significant safety factor because C++ compilers can tack on massive 6486 # amounts of additional arguments before passing them to the linker. 6487 # It appears as though 1/2 is a usable value. 6488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6489 fi 5896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6490 5897 ;; 6491 5898 esac 6492 6493 fi 6494 6495 if test -n $lt_cv_sys_max_cmd_len ; then 6496 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 6497 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6498 else 6499 { $as_echo "$as_me:$LINENO: result: none" >&5 6500 $as_echo "none" >&6; } 6501 fi 6502 6503 6504 5899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5900 fi 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 # If no C compiler was specified, use CC. 5936 LTCC=${LTCC-"$CC"} 5937 5938 # If no C compiler flags were specified, use CFLAGS. 5939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5940 5941 # Allow CC to be a program name with arguments. 5942 compiler=$CC 6505 5943 6506 5944 6507 5945 # Check for command to grab the raw symbol name followed by C symbol from nm. 6508 { $as_echo "$as_me:$ LINENO: checking command to parse $NM output from $compiler object" >&55946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6509 5947 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6510 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5948 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6511 5949 $as_echo_n "(cached) " >&6 6512 5950 else … … 6520 5958 # Regexp to match symbols that can be accessed directly from C. 6521 5959 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6522 6523 # Transform an extracted symbol line into a proper C declaration6524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"6525 6526 # Transform an extracted symbol line into symbol name and symbol address6527 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"6528 5960 6529 5961 # Define system-specific variables. … … 6532 5964 symcode='[BCDT]' 6533 5965 ;; 6534 cygwin* | mingw* | pw32* )5966 cygwin* | mingw* | pw32* | cegcc*) 6535 5967 symcode='[ABCDGISTW]' 6536 5968 ;; 6537 hpux*) # Its linker distinguishes data from code symbols5969 hpux*) 6538 5970 if test "$host_cpu" = ia64; then 6539 5971 symcode='[ABCDEGRST]' 6540 fi6541 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"6542 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"6543 ;;6544 linux* | k*bsd*-gnu)6545 if test "$host_cpu" = ia64; then6546 symcode='[ABCDGIRSTW]'6547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"6548 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"6549 5972 fi 6550 5973 ;; … … 6572 5995 esac 6573 5996 6574 # Handle CRLF in mingw tool chain6575 opt_cr=6576 case $build_os in6577 mingw*)6578 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp6579 ;;6580 esac6581 6582 5997 # If we're using GNU nm, then use its standard symbol codes. 6583 5998 case `$NM -V 2>&1` in … … 6586 6001 esac 6587 6002 6588 # Try without a prefix undercore, then with it. 6003 # Transform an extracted symbol line into a proper C declaration. 6004 # Some systems (esp. on ia64) link data and code symbols differently, 6005 # so use this general approach. 6006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6007 6008 # Transform an extracted symbol line into symbol name and symbol address 6009 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6010 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6011 6012 # Handle CRLF in mingw tool chain 6013 opt_cr= 6014 case $build_os in 6015 mingw*) 6016 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6017 ;; 6018 esac 6019 6020 # Try without a prefix underscore, then with it. 6589 6021 for ac_symprfx in "" "_"; do 6590 6022 … … 6593 6025 6594 6026 # Write the raw and C identifiers. 6595 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6027 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6028 # Fake it for dumpbin and say T for any non-static function 6029 # and D for any global variable. 6030 # Also find C++ and __fastcall symbols from MSVC++, 6031 # which start with @ or ?. 6032 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6033 " {last_section=section; section=\$ 3};"\ 6034 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6035 " \$ 0!~/External *\|/{next};"\ 6036 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6037 " {if(hide[section]) next};"\ 6038 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6039 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6040 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6041 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6042 " ' prfx=^$ac_symprfx" 6043 else 6044 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6045 fi 6596 6046 6597 6047 # Check to see that the pipe works correctly. … … 6599 6049 6600 6050 rm -f conftest* 6601 cat > conftest.$ac_ext << EOF6051 cat > conftest.$ac_ext <<_LT_EOF 6602 6052 #ifdef __cplusplus 6603 6053 extern "C" { 6604 6054 #endif 6605 6055 char nm_test_var; 6606 void nm_test_func(){} 6056 void nm_test_func(void); 6057 void nm_test_func(void){} 6607 6058 #ifdef __cplusplus 6608 6059 } 6609 6060 #endif 6610 6061 int main(){nm_test_var='a';nm_test_func();return(0);} 6611 EOF6612 6613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"")>&56062 _LT_EOF 6063 6064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6614 6065 (eval $ac_compile) 2>&5 6615 6066 ac_status=$? 6616 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&56617 (exit $ac_status); }; then6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6068 test $ac_status = 0; }; then 6618 6069 # Now try to grab the symbols. 6619 6070 nlist=conftest.nm 6620 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"")>&56071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 6621 6072 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 6622 6073 ac_status=$? 6623 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&56624 (exit $ac_status); } && test -s "$nlist"; then6074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6075 test $ac_status = 0; } && test -s "$nlist"; then 6625 6076 # Try sorting and uniquifying the output. 6626 6077 if sort "$nlist" | uniq > "$nlist"T; then … … 6631 6082 6632 6083 # Make sure that we snagged all the symbols we need. 6633 if grep' nm_test_var$' "$nlist" >/dev/null; then6634 if grep' nm_test_func$' "$nlist" >/dev/null; then6635 cat << EOF > conftest.$ac_ext6084 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6085 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6086 cat <<_LT_EOF > conftest.$ac_ext 6636 6087 #ifdef __cplusplus 6637 6088 extern "C" { 6638 6089 #endif 6639 6090 6640 EOF6091 _LT_EOF 6641 6092 # Now generate the symbol file. 6642 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 6643 6644 cat <<EOF >> conftest.$ac_ext 6645 #if defined (__STDC__) && __STDC__ 6646 # define lt_ptr_t void * 6647 #else 6648 # define lt_ptr_t char * 6649 # define const 6650 #endif 6651 6652 /* The mapping between symbol names and symbols. */ 6093 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6094 6095 cat <<_LT_EOF >> conftest.$ac_ext 6096 6097 /* The mapping between symbol names and symbols. */ 6653 6098 const struct { 6654 6099 const char *name; 6655 lt_ptr_taddress;6100 void *address; 6656 6101 } 6657 lt_ preloaded_symbols[] =6102 lt__PROGRAM__LTX_preloaded_symbols[] = 6658 6103 { 6659 EOF 6660 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 6661 cat <<\EOF >> conftest.$ac_ext 6662 {0, (lt_ptr_t) 0} 6104 { "@PROGRAM@", (void *) 0 }, 6105 _LT_EOF 6106 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6107 cat <<\_LT_EOF >> conftest.$ac_ext 6108 {0, (void *) 0} 6663 6109 }; 6110 6111 /* This works around a problem in FreeBSD linker */ 6112 #ifdef FREEBSD_WORKAROUND 6113 static const void *lt_preloaded_setup() { 6114 return lt__PROGRAM__LTX_preloaded_symbols; 6115 } 6116 #endif 6664 6117 6665 6118 #ifdef __cplusplus 6666 6119 } 6667 6120 #endif 6668 EOF6121 _LT_EOF 6669 6122 # Now try linking the two files. 6670 6123 mv conftest.$ac_objext conftstm.$ac_objext … … 6673 6126 LIBS="conftstm.$ac_objext" 6674 6127 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"")>&56128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6676 6129 (eval $ac_link) 2>&5 6677 6130 ac_status=$? 6678 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&56679 (exit $ac_status); } && test -s conftest${ac_exeext}; then6131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6132 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6680 6133 pipe_works=yes 6681 6134 fi … … 6711 6164 fi 6712 6165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6713 { $as_echo "$as_me:$ LINENO: result: failed" >&56166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6714 6167 $as_echo "failed" >&6; } 6715 6168 else 6716 { $as_echo "$as_me:$ LINENO: result: ok" >&56169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6717 6170 $as_echo "ok" >&6; } 6718 6171 fi 6719 6172 6720 { $as_echo "$as_me:$LINENO: checking for objdir" >&5 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 # Check whether --enable-libtool-lock was given. 6196 if test "${enable_libtool_lock+set}" = set; then : 6197 enableval=$enable_libtool_lock; 6198 fi 6199 6200 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6201 6202 # Some flags need to be propagated to the compiler or linker for good 6203 # libtool support. 6204 case $host in 6205 ia64-*-hpux*) 6206 # Find out which ABI we are using. 6207 echo 'int i;' > conftest.$ac_ext 6208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6209 (eval $ac_compile) 2>&5 6210 ac_status=$? 6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6212 test $ac_status = 0; }; then 6213 case `/usr/bin/file conftest.$ac_objext` in 6214 *ELF-32*) 6215 HPUX_IA64_MODE="32" 6216 ;; 6217 *ELF-64*) 6218 HPUX_IA64_MODE="64" 6219 ;; 6220 esac 6221 fi 6222 rm -rf conftest* 6223 ;; 6224 *-*-irix6*) 6225 # Find out which ABI we are using. 6226 echo '#line 6226 "configure"' > conftest.$ac_ext 6227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6228 (eval $ac_compile) 2>&5 6229 ac_status=$? 6230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6231 test $ac_status = 0; }; then 6232 if test "$lt_cv_prog_gnu_ld" = yes; then 6233 case `/usr/bin/file conftest.$ac_objext` in 6234 *32-bit*) 6235 LD="${LD-ld} -melf32bsmip" 6236 ;; 6237 *N32*) 6238 LD="${LD-ld} -melf32bmipn32" 6239 ;; 6240 *64-bit*) 6241 LD="${LD-ld} -melf64bmip" 6242 ;; 6243 esac 6244 else 6245 case `/usr/bin/file conftest.$ac_objext` in 6246 *32-bit*) 6247 LD="${LD-ld} -32" 6248 ;; 6249 *N32*) 6250 LD="${LD-ld} -n32" 6251 ;; 6252 *64-bit*) 6253 LD="${LD-ld} -64" 6254 ;; 6255 esac 6256 fi 6257 fi 6258 rm -rf conftest* 6259 ;; 6260 6261 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6262 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6263 # Find out which ABI we are using. 6264 echo 'int i;' > conftest.$ac_ext 6265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6266 (eval $ac_compile) 2>&5 6267 ac_status=$? 6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6269 test $ac_status = 0; }; then 6270 case `/usr/bin/file conftest.o` in 6271 *32-bit*) 6272 case $host in 6273 x86_64-*kfreebsd*-gnu) 6274 LD="${LD-ld} -m elf_i386_fbsd" 6275 ;; 6276 x86_64-*linux*) 6277 LD="${LD-ld} -m elf_i386" 6278 ;; 6279 ppc64-*linux*|powerpc64-*linux*) 6280 LD="${LD-ld} -m elf32ppclinux" 6281 ;; 6282 s390x-*linux*) 6283 LD="${LD-ld} -m elf_s390" 6284 ;; 6285 sparc64-*linux*) 6286 LD="${LD-ld} -m elf32_sparc" 6287 ;; 6288 esac 6289 ;; 6290 *64-bit*) 6291 case $host in 6292 x86_64-*kfreebsd*-gnu) 6293 LD="${LD-ld} -m elf_x86_64_fbsd" 6294 ;; 6295 x86_64-*linux*) 6296 LD="${LD-ld} -m elf_x86_64" 6297 ;; 6298 ppc*-*linux*|powerpc*-*linux*) 6299 LD="${LD-ld} -m elf64ppc" 6300 ;; 6301 s390*-*linux*|s390*-*tpf*) 6302 LD="${LD-ld} -m elf64_s390" 6303 ;; 6304 sparc*-*linux*) 6305 LD="${LD-ld} -m elf64_sparc" 6306 ;; 6307 esac 6308 ;; 6309 esac 6310 fi 6311 rm -rf conftest* 6312 ;; 6313 6314 *-*-sco3.2v5*) 6315 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6316 SAVE_CFLAGS="$CFLAGS" 6317 CFLAGS="$CFLAGS -belf" 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6319 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6320 if test "${lt_cv_cc_needs_belf+set}" = set; then : 6321 $as_echo_n "(cached) " >&6 6322 else 6323 ac_ext=c 6324 ac_cpp='$CPP $CPPFLAGS' 6325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6327 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6328 6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6330 /* end confdefs.h. */ 6331 6332 int 6333 main () 6334 { 6335 6336 ; 6337 return 0; 6338 } 6339 _ACEOF 6340 if ac_fn_c_try_link "$LINENO"; then : 6341 lt_cv_cc_needs_belf=yes 6342 else 6343 lt_cv_cc_needs_belf=no 6344 fi 6345 rm -f core conftest.err conftest.$ac_objext \ 6346 conftest$ac_exeext conftest.$ac_ext 6347 ac_ext=c 6348 ac_cpp='$CPP $CPPFLAGS' 6349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6351 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6352 6353 fi 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6355 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6356 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6357 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6358 CFLAGS="$SAVE_CFLAGS" 6359 fi 6360 ;; 6361 sparc*-*solaris*) 6362 # Find out which ABI we are using. 6363 echo 'int i;' > conftest.$ac_ext 6364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6365 (eval $ac_compile) 2>&5 6366 ac_status=$? 6367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6368 test $ac_status = 0; }; then 6369 case `/usr/bin/file conftest.o` in 6370 *64-bit*) 6371 case $lt_cv_prog_gnu_ld in 6372 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6373 *) 6374 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6375 LD="${LD-ld} -64" 6376 fi 6377 ;; 6378 esac 6379 ;; 6380 esac 6381 fi 6382 rm -rf conftest* 6383 ;; 6384 esac 6385 6386 need_locks="$enable_libtool_lock" 6387 6388 6389 case $host_os in 6390 rhapsody* | darwin*) 6391 if test -n "$ac_tool_prefix"; then 6392 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6393 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6395 $as_echo_n "checking for $ac_word... " >&6; } 6396 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6397 $as_echo_n "(cached) " >&6 6398 else 6399 if test -n "$DSYMUTIL"; then 6400 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6401 else 6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403 for as_dir in $PATH 6404 do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6409 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413 done 6414 done 6415 IFS=$as_save_IFS 6416 6417 fi 6418 fi 6419 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6420 if test -n "$DSYMUTIL"; then 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6422 $as_echo "$DSYMUTIL" >&6; } 6423 else 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6425 $as_echo "no" >&6; } 6426 fi 6427 6428 6429 fi 6430 if test -z "$ac_cv_prog_DSYMUTIL"; then 6431 ac_ct_DSYMUTIL=$DSYMUTIL 6432 # Extract the first word of "dsymutil", so it can be a program name with args. 6433 set dummy dsymutil; ac_word=$2 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435 $as_echo_n "checking for $ac_word... " >&6; } 6436 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6437 $as_echo_n "(cached) " >&6 6438 else 6439 if test -n "$ac_ct_DSYMUTIL"; then 6440 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6441 else 6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443 for as_dir in $PATH 6444 do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6449 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453 done 6454 done 6455 IFS=$as_save_IFS 6456 6457 fi 6458 fi 6459 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6460 if test -n "$ac_ct_DSYMUTIL"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6462 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6463 else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465 $as_echo "no" >&6; } 6466 fi 6467 6468 if test "x$ac_ct_DSYMUTIL" = x; then 6469 DSYMUTIL=":" 6470 else 6471 case $cross_compiling:$ac_tool_warned in 6472 yes:) 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6475 ac_tool_warned=yes ;; 6476 esac 6477 DSYMUTIL=$ac_ct_DSYMUTIL 6478 fi 6479 else 6480 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6481 fi 6482 6483 if test -n "$ac_tool_prefix"; then 6484 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6485 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6487 $as_echo_n "checking for $ac_word... " >&6; } 6488 if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6489 $as_echo_n "(cached) " >&6 6490 else 6491 if test -n "$NMEDIT"; then 6492 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6493 else 6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6495 for as_dir in $PATH 6496 do 6497 IFS=$as_save_IFS 6498 test -z "$as_dir" && as_dir=. 6499 for ac_exec_ext in '' $ac_executable_extensions; do 6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6501 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6503 break 2 6504 fi 6505 done 6506 done 6507 IFS=$as_save_IFS 6508 6509 fi 6510 fi 6511 NMEDIT=$ac_cv_prog_NMEDIT 6512 if test -n "$NMEDIT"; then 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6514 $as_echo "$NMEDIT" >&6; } 6515 else 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6517 $as_echo "no" >&6; } 6518 fi 6519 6520 6521 fi 6522 if test -z "$ac_cv_prog_NMEDIT"; then 6523 ac_ct_NMEDIT=$NMEDIT 6524 # Extract the first word of "nmedit", so it can be a program name with args. 6525 set dummy nmedit; ac_word=$2 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527 $as_echo_n "checking for $ac_word... " >&6; } 6528 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6529 $as_echo_n "(cached) " >&6 6530 else 6531 if test -n "$ac_ct_NMEDIT"; then 6532 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6533 else 6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535 for as_dir in $PATH 6536 do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6541 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545 done 6546 done 6547 IFS=$as_save_IFS 6548 6549 fi 6550 fi 6551 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6552 if test -n "$ac_ct_NMEDIT"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6554 $as_echo "$ac_ct_NMEDIT" >&6; } 6555 else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557 $as_echo "no" >&6; } 6558 fi 6559 6560 if test "x$ac_ct_NMEDIT" = x; then 6561 NMEDIT=":" 6562 else 6563 case $cross_compiling:$ac_tool_warned in 6564 yes:) 6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6567 ac_tool_warned=yes ;; 6568 esac 6569 NMEDIT=$ac_ct_NMEDIT 6570 fi 6571 else 6572 NMEDIT="$ac_cv_prog_NMEDIT" 6573 fi 6574 6575 if test -n "$ac_tool_prefix"; then 6576 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6577 set dummy ${ac_tool_prefix}lipo; ac_word=$2 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6579 $as_echo_n "checking for $ac_word... " >&6; } 6580 if test "${ac_cv_prog_LIPO+set}" = set; then : 6581 $as_echo_n "(cached) " >&6 6582 else 6583 if test -n "$LIPO"; then 6584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6585 else 6586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6587 for as_dir in $PATH 6588 do 6589 IFS=$as_save_IFS 6590 test -z "$as_dir" && as_dir=. 6591 for ac_exec_ext in '' $ac_executable_extensions; do 6592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6593 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6595 break 2 6596 fi 6597 done 6598 done 6599 IFS=$as_save_IFS 6600 6601 fi 6602 fi 6603 LIPO=$ac_cv_prog_LIPO 6604 if test -n "$LIPO"; then 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6606 $as_echo "$LIPO" >&6; } 6607 else 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6609 $as_echo "no" >&6; } 6610 fi 6611 6612 6613 fi 6614 if test -z "$ac_cv_prog_LIPO"; then 6615 ac_ct_LIPO=$LIPO 6616 # Extract the first word of "lipo", so it can be a program name with args. 6617 set dummy lipo; ac_word=$2 6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6619 $as_echo_n "checking for $ac_word... " >&6; } 6620 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6621 $as_echo_n "(cached) " >&6 6622 else 6623 if test -n "$ac_ct_LIPO"; then 6624 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6625 else 6626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6627 for as_dir in $PATH 6628 do 6629 IFS=$as_save_IFS 6630 test -z "$as_dir" && as_dir=. 6631 for ac_exec_ext in '' $ac_executable_extensions; do 6632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6633 ac_cv_prog_ac_ct_LIPO="lipo" 6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6635 break 2 6636 fi 6637 done 6638 done 6639 IFS=$as_save_IFS 6640 6641 fi 6642 fi 6643 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6644 if test -n "$ac_ct_LIPO"; then 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6646 $as_echo "$ac_ct_LIPO" >&6; } 6647 else 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6649 $as_echo "no" >&6; } 6650 fi 6651 6652 if test "x$ac_ct_LIPO" = x; then 6653 LIPO=":" 6654 else 6655 case $cross_compiling:$ac_tool_warned in 6656 yes:) 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6659 ac_tool_warned=yes ;; 6660 esac 6661 LIPO=$ac_ct_LIPO 6662 fi 6663 else 6664 LIPO="$ac_cv_prog_LIPO" 6665 fi 6666 6667 if test -n "$ac_tool_prefix"; then 6668 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6669 set dummy ${ac_tool_prefix}otool; ac_word=$2 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6671 $as_echo_n "checking for $ac_word... " >&6; } 6672 if test "${ac_cv_prog_OTOOL+set}" = set; then : 6673 $as_echo_n "(cached) " >&6 6674 else 6675 if test -n "$OTOOL"; then 6676 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6677 else 6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6679 for as_dir in $PATH 6680 do 6681 IFS=$as_save_IFS 6682 test -z "$as_dir" && as_dir=. 6683 for ac_exec_ext in '' $ac_executable_extensions; do 6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6685 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6687 break 2 6688 fi 6689 done 6690 done 6691 IFS=$as_save_IFS 6692 6693 fi 6694 fi 6695 OTOOL=$ac_cv_prog_OTOOL 6696 if test -n "$OTOOL"; then 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6698 $as_echo "$OTOOL" >&6; } 6699 else 6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6701 $as_echo "no" >&6; } 6702 fi 6703 6704 6705 fi 6706 if test -z "$ac_cv_prog_OTOOL"; then 6707 ac_ct_OTOOL=$OTOOL 6708 # Extract the first word of "otool", so it can be a program name with args. 6709 set dummy otool; ac_word=$2 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6711 $as_echo_n "checking for $ac_word... " >&6; } 6712 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6713 $as_echo_n "(cached) " >&6 6714 else 6715 if test -n "$ac_ct_OTOOL"; then 6716 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6717 else 6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6719 for as_dir in $PATH 6720 do 6721 IFS=$as_save_IFS 6722 test -z "$as_dir" && as_dir=. 6723 for ac_exec_ext in '' $ac_executable_extensions; do 6724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6725 ac_cv_prog_ac_ct_OTOOL="otool" 6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6727 break 2 6728 fi 6729 done 6730 done 6731 IFS=$as_save_IFS 6732 6733 fi 6734 fi 6735 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6736 if test -n "$ac_ct_OTOOL"; then 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6738 $as_echo "$ac_ct_OTOOL" >&6; } 6739 else 6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6741 $as_echo "no" >&6; } 6742 fi 6743 6744 if test "x$ac_ct_OTOOL" = x; then 6745 OTOOL=":" 6746 else 6747 case $cross_compiling:$ac_tool_warned in 6748 yes:) 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6751 ac_tool_warned=yes ;; 6752 esac 6753 OTOOL=$ac_ct_OTOOL 6754 fi 6755 else 6756 OTOOL="$ac_cv_prog_OTOOL" 6757 fi 6758 6759 if test -n "$ac_tool_prefix"; then 6760 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6761 set dummy ${ac_tool_prefix}otool64; ac_word=$2 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6763 $as_echo_n "checking for $ac_word... " >&6; } 6764 if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6765 $as_echo_n "(cached) " >&6 6766 else 6767 if test -n "$OTOOL64"; then 6768 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6769 else 6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6771 for as_dir in $PATH 6772 do 6773 IFS=$as_save_IFS 6774 test -z "$as_dir" && as_dir=. 6775 for ac_exec_ext in '' $ac_executable_extensions; do 6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6777 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6779 break 2 6780 fi 6781 done 6782 done 6783 IFS=$as_save_IFS 6784 6785 fi 6786 fi 6787 OTOOL64=$ac_cv_prog_OTOOL64 6788 if test -n "$OTOOL64"; then 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6790 $as_echo "$OTOOL64" >&6; } 6791 else 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6793 $as_echo "no" >&6; } 6794 fi 6795 6796 6797 fi 6798 if test -z "$ac_cv_prog_OTOOL64"; then 6799 ac_ct_OTOOL64=$OTOOL64 6800 # Extract the first word of "otool64", so it can be a program name with args. 6801 set dummy otool64; ac_word=$2 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6803 $as_echo_n "checking for $ac_word... " >&6; } 6804 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6805 $as_echo_n "(cached) " >&6 6806 else 6807 if test -n "$ac_ct_OTOOL64"; then 6808 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6809 else 6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6811 for as_dir in $PATH 6812 do 6813 IFS=$as_save_IFS 6814 test -z "$as_dir" && as_dir=. 6815 for ac_exec_ext in '' $ac_executable_extensions; do 6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6817 ac_cv_prog_ac_ct_OTOOL64="otool64" 6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6819 break 2 6820 fi 6821 done 6822 done 6823 IFS=$as_save_IFS 6824 6825 fi 6826 fi 6827 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6828 if test -n "$ac_ct_OTOOL64"; then 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6830 $as_echo "$ac_ct_OTOOL64" >&6; } 6831 else 6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6833 $as_echo "no" >&6; } 6834 fi 6835 6836 if test "x$ac_ct_OTOOL64" = x; then 6837 OTOOL64=":" 6838 else 6839 case $cross_compiling:$ac_tool_warned in 6840 yes:) 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6843 ac_tool_warned=yes ;; 6844 esac 6845 OTOOL64=$ac_ct_OTOOL64 6846 fi 6847 else 6848 OTOOL64="$ac_cv_prog_OTOOL64" 6849 fi 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6878 $as_echo_n "checking for -single_module linker flag... " >&6; } 6879 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6880 $as_echo_n "(cached) " >&6 6881 else 6882 lt_cv_apple_cc_single_mod=no 6883 if test -z "${LT_MULTI_MODULE}"; then 6884 # By default we will add the -single_module flag. You can override 6885 # by either setting the environment variable LT_MULTI_MODULE 6886 # non-empty at configure time, or by adding -multi_module to the 6887 # link flags. 6888 rm -rf libconftest.dylib* 6889 echo "int foo(void){return 1;}" > conftest.c 6890 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6891 -dynamiclib -Wl,-single_module conftest.c" >&5 6892 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6893 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6894 _lt_result=$? 6895 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6896 lt_cv_apple_cc_single_mod=yes 6897 else 6898 cat conftest.err >&5 6899 fi 6900 rm -rf libconftest.dylib* 6901 rm -f conftest.* 6902 fi 6903 fi 6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6905 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6907 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6908 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6909 $as_echo_n "(cached) " >&6 6910 else 6911 lt_cv_ld_exported_symbols_list=no 6912 save_LDFLAGS=$LDFLAGS 6913 echo "_main" > conftest.sym 6914 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6916 /* end confdefs.h. */ 6917 6918 int 6919 main () 6920 { 6921 6922 ; 6923 return 0; 6924 } 6925 _ACEOF 6926 if ac_fn_c_try_link "$LINENO"; then : 6927 lt_cv_ld_exported_symbols_list=yes 6928 else 6929 lt_cv_ld_exported_symbols_list=no 6930 fi 6931 rm -f core conftest.err conftest.$ac_objext \ 6932 conftest$ac_exeext conftest.$ac_ext 6933 LDFLAGS="$save_LDFLAGS" 6934 6935 fi 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6937 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6938 case $host_os in 6939 rhapsody* | darwin1.[012]) 6940 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6941 darwin1.*) 6942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6943 darwin*) # darwin 5.x on 6944 # if running on 10.5 or later, the deployment target defaults 6945 # to the OS version, if on x86, and 10.4, the deployment 6946 # target defaults to 10.4. Don't you love it? 6947 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6948 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6949 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6950 10.[012]*) 6951 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6952 10.*) 6953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6954 esac 6955 ;; 6956 esac 6957 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6958 _lt_dar_single_mod='$single_module' 6959 fi 6960 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6961 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6962 else 6963 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6964 fi 6965 if test "$DSYMUTIL" != ":"; then 6966 _lt_dsymutil='~$DSYMUTIL $lib || :' 6967 else 6968 _lt_dsymutil= 6969 fi 6970 ;; 6971 esac 6972 6973 ac_ext=c 6974 ac_cpp='$CPP $CPPFLAGS' 6975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6977 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6979 $as_echo_n "checking how to run the C preprocessor... " >&6; } 6980 # On Suns, sometimes $CPP names a directory. 6981 if test -n "$CPP" && test -d "$CPP"; then 6982 CPP= 6983 fi 6984 if test -z "$CPP"; then 6985 if test "${ac_cv_prog_CPP+set}" = set; then : 6986 $as_echo_n "(cached) " >&6 6987 else 6988 # Double quotes because CPP needs to be expanded 6989 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6990 do 6991 ac_preproc_ok=false 6992 for ac_c_preproc_warn_flag in '' yes 6993 do 6994 # Use a header file that comes with gcc, so configuring glibc 6995 # with a fresh cross-compiler works. 6996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6997 # <limits.h> exists even on freestanding compilers. 6998 # On the NeXT, cc -E runs the code through the compiler's parser, 6999 # not just through cpp. "Syntax error" is here to catch this case. 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001 /* end confdefs.h. */ 7002 #ifdef __STDC__ 7003 # include <limits.h> 7004 #else 7005 # include <assert.h> 7006 #endif 7007 Syntax error 7008 _ACEOF 7009 if ac_fn_c_try_cpp "$LINENO"; then : 7010 7011 else 7012 # Broken: fails on valid input. 7013 continue 7014 fi 7015 rm -f conftest.err conftest.$ac_ext 7016 7017 # OK, works on sane cases. Now check whether nonexistent headers 7018 # can be detected and how. 7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7020 /* end confdefs.h. */ 7021 #include <ac_nonexistent.h> 7022 _ACEOF 7023 if ac_fn_c_try_cpp "$LINENO"; then : 7024 # Broken: success on invalid input. 7025 continue 7026 else 7027 # Passes both tests. 7028 ac_preproc_ok=: 7029 break 7030 fi 7031 rm -f conftest.err conftest.$ac_ext 7032 7033 done 7034 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7035 rm -f conftest.err conftest.$ac_ext 7036 if $ac_preproc_ok; then : 7037 break 7038 fi 7039 7040 done 7041 ac_cv_prog_CPP=$CPP 7042 7043 fi 7044 CPP=$ac_cv_prog_CPP 7045 else 7046 ac_cv_prog_CPP=$CPP 7047 fi 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7049 $as_echo "$CPP" >&6; } 7050 ac_preproc_ok=false 7051 for ac_c_preproc_warn_flag in '' yes 7052 do 7053 # Use a header file that comes with gcc, so configuring glibc 7054 # with a fresh cross-compiler works. 7055 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7056 # <limits.h> exists even on freestanding compilers. 7057 # On the NeXT, cc -E runs the code through the compiler's parser, 7058 # not just through cpp. "Syntax error" is here to catch this case. 7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7060 /* end confdefs.h. */ 7061 #ifdef __STDC__ 7062 # include <limits.h> 7063 #else 7064 # include <assert.h> 7065 #endif 7066 Syntax error 7067 _ACEOF 7068 if ac_fn_c_try_cpp "$LINENO"; then : 7069 7070 else 7071 # Broken: fails on valid input. 7072 continue 7073 fi 7074 rm -f conftest.err conftest.$ac_ext 7075 7076 # OK, works on sane cases. Now check whether nonexistent headers 7077 # can be detected and how. 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079 /* end confdefs.h. */ 7080 #include <ac_nonexistent.h> 7081 _ACEOF 7082 if ac_fn_c_try_cpp "$LINENO"; then : 7083 # Broken: success on invalid input. 7084 continue 7085 else 7086 # Passes both tests. 7087 ac_preproc_ok=: 7088 break 7089 fi 7090 rm -f conftest.err conftest.$ac_ext 7091 7092 done 7093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7094 rm -f conftest.err conftest.$ac_ext 7095 if $ac_preproc_ok; then : 7096 7097 else 7098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7100 as_fn_error "C preprocessor \"$CPP\" fails sanity check 7101 See \`config.log' for more details." "$LINENO" 5; } 7102 fi 7103 7104 ac_ext=c 7105 ac_cpp='$CPP $CPPFLAGS' 7106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7108 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7109 7110 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7112 $as_echo_n "checking for ANSI C header files... " >&6; } 7113 if test "${ac_cv_header_stdc+set}" = set; then : 7114 $as_echo_n "(cached) " >&6 7115 else 7116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7117 /* end confdefs.h. */ 7118 #include <stdlib.h> 7119 #include <stdarg.h> 7120 #include <string.h> 7121 #include <float.h> 7122 7123 int 7124 main () 7125 { 7126 7127 ; 7128 return 0; 7129 } 7130 _ACEOF 7131 if ac_fn_c_try_compile "$LINENO"; then : 7132 ac_cv_header_stdc=yes 7133 else 7134 ac_cv_header_stdc=no 7135 fi 7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7137 7138 if test $ac_cv_header_stdc = yes; then 7139 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7141 /* end confdefs.h. */ 7142 #include <string.h> 7143 7144 _ACEOF 7145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7146 $EGREP "memchr" >/dev/null 2>&1; then : 7147 7148 else 7149 ac_cv_header_stdc=no 7150 fi 7151 rm -f conftest* 7152 7153 fi 7154 7155 if test $ac_cv_header_stdc = yes; then 7156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7158 /* end confdefs.h. */ 7159 #include <stdlib.h> 7160 7161 _ACEOF 7162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7163 $EGREP "free" >/dev/null 2>&1; then : 7164 7165 else 7166 ac_cv_header_stdc=no 7167 fi 7168 rm -f conftest* 7169 7170 fi 7171 7172 if test $ac_cv_header_stdc = yes; then 7173 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7174 if test "$cross_compiling" = yes; then : 7175 : 7176 else 7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7178 /* end confdefs.h. */ 7179 #include <ctype.h> 7180 #include <stdlib.h> 7181 #if ((' ' & 0x0FF) == 0x020) 7182 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7183 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7184 #else 7185 # define ISLOWER(c) \ 7186 (('a' <= (c) && (c) <= 'i') \ 7187 || ('j' <= (c) && (c) <= 'r') \ 7188 || ('s' <= (c) && (c) <= 'z')) 7189 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7190 #endif 7191 7192 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7193 int 7194 main () 7195 { 7196 int i; 7197 for (i = 0; i < 256; i++) 7198 if (XOR (islower (i), ISLOWER (i)) 7199 || toupper (i) != TOUPPER (i)) 7200 return 2; 7201 return 0; 7202 } 7203 _ACEOF 7204 if ac_fn_c_try_run "$LINENO"; then : 7205 7206 else 7207 ac_cv_header_stdc=no 7208 fi 7209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7210 conftest.$ac_objext conftest.beam conftest.$ac_ext 7211 fi 7212 7213 fi 7214 fi 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7216 $as_echo "$ac_cv_header_stdc" >&6; } 7217 if test $ac_cv_header_stdc = yes; then 7218 7219 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7220 7221 fi 7222 7223 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7224 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7225 inttypes.h stdint.h unistd.h 7226 do : 7227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7228 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7229 " 7230 eval as_val=\$$as_ac_Header 7231 if test "x$as_val" = x""yes; then : 7232 cat >>confdefs.h <<_ACEOF 7233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7234 _ACEOF 7235 7236 fi 7237 7238 done 7239 7240 7241 for ac_header in dlfcn.h 7242 do : 7243 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7244 " 7245 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7246 cat >>confdefs.h <<_ACEOF 7247 #define HAVE_DLFCN_H 1 7248 _ACEOF 7249 7250 fi 7251 7252 done 7253 7254 7255 7256 ac_ext=cpp 7257 ac_cpp='$CXXCPP $CPPFLAGS' 7258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7261 if test -z "$CXX"; then 7262 if test -n "$CCC"; then 7263 CXX=$CCC 7264 else 7265 if test -n "$ac_tool_prefix"; then 7266 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7267 do 7268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7271 $as_echo_n "checking for $ac_word... " >&6; } 7272 if test "${ac_cv_prog_CXX+set}" = set; then : 7273 $as_echo_n "(cached) " >&6 7274 else 7275 if test -n "$CXX"; then 7276 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7277 else 7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7279 for as_dir in $PATH 7280 do 7281 IFS=$as_save_IFS 7282 test -z "$as_dir" && as_dir=. 7283 for ac_exec_ext in '' $ac_executable_extensions; do 7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7285 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7287 break 2 7288 fi 7289 done 7290 done 7291 IFS=$as_save_IFS 7292 7293 fi 7294 fi 7295 CXX=$ac_cv_prog_CXX 7296 if test -n "$CXX"; then 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 7298 $as_echo "$CXX" >&6; } 7299 else 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7301 $as_echo "no" >&6; } 7302 fi 7303 7304 7305 test -n "$CXX" && break 7306 done 7307 fi 7308 if test -z "$CXX"; then 7309 ac_ct_CXX=$CXX 7310 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 7311 do 7312 # Extract the first word of "$ac_prog", so it can be a program name with args. 7313 set dummy $ac_prog; ac_word=$2 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7315 $as_echo_n "checking for $ac_word... " >&6; } 7316 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 7317 $as_echo_n "(cached) " >&6 7318 else 7319 if test -n "$ac_ct_CXX"; then 7320 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7321 else 7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7323 for as_dir in $PATH 7324 do 7325 IFS=$as_save_IFS 7326 test -z "$as_dir" && as_dir=. 7327 for ac_exec_ext in '' $ac_executable_extensions; do 7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7329 ac_cv_prog_ac_ct_CXX="$ac_prog" 7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7331 break 2 7332 fi 7333 done 7334 done 7335 IFS=$as_save_IFS 7336 7337 fi 7338 fi 7339 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7340 if test -n "$ac_ct_CXX"; then 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 7342 $as_echo "$ac_ct_CXX" >&6; } 7343 else 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7345 $as_echo "no" >&6; } 7346 fi 7347 7348 7349 test -n "$ac_ct_CXX" && break 7350 done 7351 7352 if test "x$ac_ct_CXX" = x; then 7353 CXX="g++" 7354 else 7355 case $cross_compiling:$ac_tool_warned in 7356 yes:) 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7359 ac_tool_warned=yes ;; 7360 esac 7361 CXX=$ac_ct_CXX 7362 fi 7363 fi 7364 7365 fi 7366 fi 7367 # Provide some information about the compiler. 7368 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 7369 set X $ac_compile 7370 ac_compiler=$2 7371 for ac_option in --version -v -V -qversion; do 7372 { { ac_try="$ac_compiler $ac_option >&5" 7373 case "(($ac_try" in 7374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7375 *) ac_try_echo=$ac_try;; 7376 esac 7377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 7378 $as_echo "$ac_try_echo"; } >&5 7379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 7380 ac_status=$? 7381 if test -s conftest.err; then 7382 sed '10a\ 7383 ... rest of stderr output deleted ... 7384 10q' conftest.err >conftest.er1 7385 cat conftest.er1 >&5 7386 rm -f conftest.er1 conftest.err 7387 fi 7388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7389 test $ac_status = 0; } 7390 done 7391 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 7393 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 7394 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 7395 $as_echo_n "(cached) " >&6 7396 else 7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7398 /* end confdefs.h. */ 7399 7400 int 7401 main () 7402 { 7403 #ifndef __GNUC__ 7404 choke me 7405 #endif 7406 7407 ; 7408 return 0; 7409 } 7410 _ACEOF 7411 if ac_fn_cxx_try_compile "$LINENO"; then : 7412 ac_compiler_gnu=yes 7413 else 7414 ac_compiler_gnu=no 7415 fi 7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7417 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7418 7419 fi 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 7421 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 7422 if test $ac_compiler_gnu = yes; then 7423 GXX=yes 7424 else 7425 GXX= 7426 fi 7427 ac_test_CXXFLAGS=${CXXFLAGS+set} 7428 ac_save_CXXFLAGS=$CXXFLAGS 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 7430 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 7431 if test "${ac_cv_prog_cxx_g+set}" = set; then : 7432 $as_echo_n "(cached) " >&6 7433 else 7434 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 7435 ac_cxx_werror_flag=yes 7436 ac_cv_prog_cxx_g=no 7437 CXXFLAGS="-g" 7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7439 /* end confdefs.h. */ 7440 7441 int 7442 main () 7443 { 7444 7445 ; 7446 return 0; 7447 } 7448 _ACEOF 7449 if ac_fn_cxx_try_compile "$LINENO"; then : 7450 ac_cv_prog_cxx_g=yes 7451 else 7452 CXXFLAGS="" 7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7454 /* end confdefs.h. */ 7455 7456 int 7457 main () 7458 { 7459 7460 ; 7461 return 0; 7462 } 7463 _ACEOF 7464 if ac_fn_cxx_try_compile "$LINENO"; then : 7465 7466 else 7467 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7468 CXXFLAGS="-g" 7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470 /* end confdefs.h. */ 7471 7472 int 7473 main () 7474 { 7475 7476 ; 7477 return 0; 7478 } 7479 _ACEOF 7480 if ac_fn_cxx_try_compile "$LINENO"; then : 7481 ac_cv_prog_cxx_g=yes 7482 fi 7483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7484 fi 7485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7486 fi 7487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7488 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 7489 fi 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 7491 $as_echo "$ac_cv_prog_cxx_g" >&6; } 7492 if test "$ac_test_CXXFLAGS" = set; then 7493 CXXFLAGS=$ac_save_CXXFLAGS 7494 elif test $ac_cv_prog_cxx_g = yes; then 7495 if test "$GXX" = yes; then 7496 CXXFLAGS="-g -O2" 7497 else 7498 CXXFLAGS="-g" 7499 fi 7500 else 7501 if test "$GXX" = yes; then 7502 CXXFLAGS="-O2" 7503 else 7504 CXXFLAGS= 7505 fi 7506 fi 7507 ac_ext=c 7508 ac_cpp='$CPP $CPPFLAGS' 7509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7511 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7512 7513 depcc="$CXX" am_compiler_list= 7514 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 7516 $as_echo_n "checking dependency style of $depcc... " >&6; } 7517 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 7518 $as_echo_n "(cached) " >&6 7519 else 7520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 7521 # We make a subdir and do the tests there. Otherwise we can end up 7522 # making bogus files that we don't know about and never remove. For 7523 # instance it was reported that on HP-UX the gcc test will end up 7524 # making a dummy file named `D' -- because `-MD' means `put the output 7525 # in D'. 7526 mkdir conftest.dir 7527 # Copy depcomp to subdir because otherwise we won't find it if we're 7528 # using a relative directory. 7529 cp "$am_depcomp" conftest.dir 7530 cd conftest.dir 7531 # We will build objects and dependencies in a subdirectory because 7532 # it helps to detect inapplicable dependency modes. For instance 7533 # both Tru64's cc and ICC support -MD to output dependencies as a 7534 # side effect of compilation, but ICC will put the dependencies in 7535 # the current directory while Tru64 will put them in the object 7536 # directory. 7537 mkdir sub 7538 7539 am_cv_CXX_dependencies_compiler_type=none 7540 if test "$am_compiler_list" = ""; then 7541 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 7542 fi 7543 am__universal=false 7544 case " $depcc " in #( 7545 *\ -arch\ *\ -arch\ *) am__universal=true ;; 7546 esac 7547 7548 for depmode in $am_compiler_list; do 7549 # Setup a source with many dependencies, because some compilers 7550 # like to wrap large dependency lists on column 80 (with \), and 7551 # we should not choose a depcomp mode which is confused by this. 7552 # 7553 # We need to recreate these files for each test, as the compiler may 7554 # overwrite some of them when testing with obscure command lines. 7555 # This happens at least with the AIX C compiler. 7556 : > sub/conftest.c 7557 for i in 1 2 3 4 5 6; do 7558 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7559 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 7560 # Solaris 8's {/usr,}/bin/sh. 7561 touch sub/conftst$i.h 7562 done 7563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7564 7565 # We check with `-c' and `-o' for the sake of the "dashmstdout" 7566 # mode. It turns out that the SunPro C++ compiler does not properly 7567 # handle `-M -o', and we need to detect this. Also, some Intel 7568 # versions had trouble with output in subdirs 7569 am__obj=sub/conftest.${OBJEXT-o} 7570 am__minus_obj="-o $am__obj" 7571 case $depmode in 7572 gcc) 7573 # This depmode causes a compiler race in universal mode. 7574 test "$am__universal" = false || continue 7575 ;; 7576 nosideeffect) 7577 # after this tag, mechanisms are not by side-effect, so they'll 7578 # only be used when explicitly requested 7579 if test "x$enable_dependency_tracking" = xyes; then 7580 continue 7581 else 7582 break 7583 fi 7584 ;; 7585 msvisualcpp | msvcmsys) 7586 # This compiler won't grok `-c -o', but also, the minuso test has 7587 # not run yet. These depmodes are late enough in the game, and 7588 # so weak that their functioning should not be impacted. 7589 am__obj=conftest.${OBJEXT-o} 7590 am__minus_obj= 7591 ;; 7592 none) break ;; 7593 esac 7594 if depmode=$depmode \ 7595 source=sub/conftest.c object=$am__obj \ 7596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7597 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7598 >/dev/null 2>conftest.err && 7599 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7601 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7603 # icc doesn't choke on unknown options, it will just issue warnings 7604 # or remarks (even with -Werror). So we grep stderr for any message 7605 # that says an option was ignored or not supported. 7606 # When given -MP, icc 7.0 and 7.1 complain thusly: 7607 # icc: Command line warning: ignoring option '-M'; no argument required 7608 # The diagnosis changed in icc 8.0: 7609 # icc: Command line remark: option '-MP' not supported 7610 if (grep 'ignoring option' conftest.err || 7611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7612 am_cv_CXX_dependencies_compiler_type=$depmode 7613 break 7614 fi 7615 fi 7616 done 7617 7618 cd .. 7619 rm -rf conftest.dir 7620 else 7621 am_cv_CXX_dependencies_compiler_type=none 7622 fi 7623 7624 fi 7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7626 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7627 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7628 7629 if 7630 test "x$enable_dependency_tracking" != xno \ 7631 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7632 am__fastdepCXX_TRUE= 7633 am__fastdepCXX_FALSE='#' 7634 else 7635 am__fastdepCXX_TRUE='#' 7636 am__fastdepCXX_FALSE= 7637 fi 7638 7639 7640 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 7641 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 7642 (test "X$CXX" != "Xg++"))) ; then 7643 ac_ext=cpp 7644 ac_cpp='$CXXCPP $CPPFLAGS' 7645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 7649 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 7650 if test -z "$CXXCPP"; then 7651 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 7652 $as_echo_n "(cached) " >&6 7653 else 7654 # Double quotes because CXXCPP needs to be expanded 7655 for CXXCPP in "$CXX -E" "/lib/cpp" 7656 do 7657 ac_preproc_ok=false 7658 for ac_cxx_preproc_warn_flag in '' yes 7659 do 7660 # Use a header file that comes with gcc, so configuring glibc 7661 # with a fresh cross-compiler works. 7662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7663 # <limits.h> exists even on freestanding compilers. 7664 # On the NeXT, cc -E runs the code through the compiler's parser, 7665 # not just through cpp. "Syntax error" is here to catch this case. 7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667 /* end confdefs.h. */ 7668 #ifdef __STDC__ 7669 # include <limits.h> 7670 #else 7671 # include <assert.h> 7672 #endif 7673 Syntax error 7674 _ACEOF 7675 if ac_fn_cxx_try_cpp "$LINENO"; then : 7676 7677 else 7678 # Broken: fails on valid input. 7679 continue 7680 fi 7681 rm -f conftest.err conftest.$ac_ext 7682 7683 # OK, works on sane cases. Now check whether nonexistent headers 7684 # can be detected and how. 7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7686 /* end confdefs.h. */ 7687 #include <ac_nonexistent.h> 7688 _ACEOF 7689 if ac_fn_cxx_try_cpp "$LINENO"; then : 7690 # Broken: success on invalid input. 7691 continue 7692 else 7693 # Passes both tests. 7694 ac_preproc_ok=: 7695 break 7696 fi 7697 rm -f conftest.err conftest.$ac_ext 7698 7699 done 7700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7701 rm -f conftest.err conftest.$ac_ext 7702 if $ac_preproc_ok; then : 7703 break 7704 fi 7705 7706 done 7707 ac_cv_prog_CXXCPP=$CXXCPP 7708 7709 fi 7710 CXXCPP=$ac_cv_prog_CXXCPP 7711 else 7712 ac_cv_prog_CXXCPP=$CXXCPP 7713 fi 7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 7715 $as_echo "$CXXCPP" >&6; } 7716 ac_preproc_ok=false 7717 for ac_cxx_preproc_warn_flag in '' yes 7718 do 7719 # Use a header file that comes with gcc, so configuring glibc 7720 # with a fresh cross-compiler works. 7721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7722 # <limits.h> exists even on freestanding compilers. 7723 # On the NeXT, cc -E runs the code through the compiler's parser, 7724 # not just through cpp. "Syntax error" is here to catch this case. 7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7726 /* end confdefs.h. */ 7727 #ifdef __STDC__ 7728 # include <limits.h> 7729 #else 7730 # include <assert.h> 7731 #endif 7732 Syntax error 7733 _ACEOF 7734 if ac_fn_cxx_try_cpp "$LINENO"; then : 7735 7736 else 7737 # Broken: fails on valid input. 7738 continue 7739 fi 7740 rm -f conftest.err conftest.$ac_ext 7741 7742 # OK, works on sane cases. Now check whether nonexistent headers 7743 # can be detected and how. 7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7745 /* end confdefs.h. */ 7746 #include <ac_nonexistent.h> 7747 _ACEOF 7748 if ac_fn_cxx_try_cpp "$LINENO"; then : 7749 # Broken: success on invalid input. 7750 continue 7751 else 7752 # Passes both tests. 7753 ac_preproc_ok=: 7754 break 7755 fi 7756 rm -f conftest.err conftest.$ac_ext 7757 7758 done 7759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7760 rm -f conftest.err conftest.$ac_ext 7761 if $ac_preproc_ok; then : 7762 7763 else 7764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7766 _lt_caught_CXX_error=yes; } 7767 fi 7768 7769 ac_ext=c 7770 ac_cpp='$CPP $CPPFLAGS' 7771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7773 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7774 7775 else 7776 _lt_caught_CXX_error=yes 7777 fi 7778 7779 7780 7781 7782 7783 # Set options 7784 7785 7786 7787 enable_dlopen=no 7788 7789 7790 enable_win32_dll=no 7791 7792 7793 # Check whether --enable-shared was given. 7794 if test "${enable_shared+set}" = set; then : 7795 enableval=$enable_shared; p=${PACKAGE-default} 7796 case $enableval in 7797 yes) enable_shared=yes ;; 7798 no) enable_shared=no ;; 7799 *) 7800 enable_shared=no 7801 # Look at the argument we got. We use all the common list separators. 7802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7803 for pkg in $enableval; do 7804 IFS="$lt_save_ifs" 7805 if test "X$pkg" = "X$p"; then 7806 enable_shared=yes 7807 fi 7808 done 7809 IFS="$lt_save_ifs" 7810 ;; 7811 esac 7812 else 7813 enable_shared=yes 7814 fi 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 # Check whether --enable-static was given. 7825 if test "${enable_static+set}" = set; then : 7826 enableval=$enable_static; p=${PACKAGE-default} 7827 case $enableval in 7828 yes) enable_static=yes ;; 7829 no) enable_static=no ;; 7830 *) 7831 enable_static=no 7832 # Look at the argument we got. We use all the common list separators. 7833 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7834 for pkg in $enableval; do 7835 IFS="$lt_save_ifs" 7836 if test "X$pkg" = "X$p"; then 7837 enable_static=yes 7838 fi 7839 done 7840 IFS="$lt_save_ifs" 7841 ;; 7842 esac 7843 else 7844 enable_static=yes 7845 fi 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 # Check whether --with-pic was given. 7857 if test "${with_pic+set}" = set; then : 7858 withval=$with_pic; pic_mode="$withval" 7859 else 7860 pic_mode=default 7861 fi 7862 7863 7864 test -z "$pic_mode" && pic_mode=default 7865 7866 7867 7868 7869 7870 7871 7872 # Check whether --enable-fast-install was given. 7873 if test "${enable_fast_install+set}" = set; then : 7874 enableval=$enable_fast_install; p=${PACKAGE-default} 7875 case $enableval in 7876 yes) enable_fast_install=yes ;; 7877 no) enable_fast_install=no ;; 7878 *) 7879 enable_fast_install=no 7880 # Look at the argument we got. We use all the common list separators. 7881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7882 for pkg in $enableval; do 7883 IFS="$lt_save_ifs" 7884 if test "X$pkg" = "X$p"; then 7885 enable_fast_install=yes 7886 fi 7887 done 7888 IFS="$lt_save_ifs" 7889 ;; 7890 esac 7891 else 7892 enable_fast_install=yes 7893 fi 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 # This can be used to rebuild libtool when needed 7906 LIBTOOL_DEPS="$ltmain" 7907 7908 # Always use our own libtool. 7909 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 test -z "$LN_S" && LN_S="ln -s" 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 if test -n "${ZSH_VERSION+set}" ; then 7951 setopt NO_GLOB_SUBST 7952 fi 7953 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 6721 7955 $as_echo_n "checking for objdir... " >&6; } 6722 if test "${lt_cv_objdir+set}" = set; then 7956 if test "${lt_cv_objdir+set}" = set; then : 6723 7957 $as_echo_n "(cached) " >&6 6724 7958 else … … 6733 7967 rmdir .libs 2>/dev/null 6734 7968 fi 6735 { $as_echo "$as_me:$ LINENO: result: $lt_cv_objdir" >&57969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 6736 7970 $as_echo "$lt_cv_objdir" >&6; } 6737 7971 objdir=$lt_cv_objdir 7972 7973 7974 7975 7976 7977 cat >>confdefs.h <<_ACEOF 7978 #define LT_OBJDIR "$lt_cv_objdir/" 7979 _ACEOF 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 6738 7992 6739 7993 … … 6755 8009 # Sed substitution that helps us do robust quoting. It backslashifies 6756 8010 # metacharacters that are still active within double-quoted strings. 6757 Xsed='sed -e 1s/^X//' 6758 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 8011 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6759 8012 6760 8013 # Same as above, but do not quote variable references. 6761 double_quote_subst='s/\([ \\"\\`\\\\]\)/\\\1/g'8014 double_quote_subst='s/\(["`\\]\)/\\\1/g' 6762 8015 6763 8016 # Sed substitution to delay expansion of an escaped shell variable in a … … 6765 8018 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6766 8019 8020 # Sed substitution to delay expansion of an escaped single quote. 8021 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 8022 6767 8023 # Sed substitution to avoid accidental globbing in evaled expressions 6768 8024 no_glob_subst='s/\*/\\\*/g' 6769 8025 6770 # Constants:6771 rm="rm -f"6772 6773 8026 # Global variables: 6774 default_ofile=libtool8027 ofile=libtool 6775 8028 can_build_shared=yes 6776 8029 … … 6778 8031 # which needs '.lib'). 6779 8032 libext=a 6780 ltmain="$ac_aux_dir/ltmain.sh" 6781 ofile="$default_ofile" 8033 6782 8034 with_gnu_ld="$lt_cv_prog_gnu_ld" 6783 6784 if test -n "$ac_tool_prefix"; then6785 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.6786 set dummy ${ac_tool_prefix}ar; ac_word=$26787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&56788 $as_echo_n "checking for $ac_word... " >&6; }6789 if test "${ac_cv_prog_AR+set}" = set; then6790 $as_echo_n "(cached) " >&66791 else6792 if test -n "$AR"; then6793 ac_cv_prog_AR="$AR" # Let the user override the test.6794 else6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6796 for as_dir in $PATH6797 do6798 IFS=$as_save_IFS6799 test -z "$as_dir" && as_dir=.6800 for ac_exec_ext in '' $ac_executable_extensions; do6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6802 ac_cv_prog_AR="${ac_tool_prefix}ar"6803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56804 break 26805 fi6806 done6807 done6808 IFS=$as_save_IFS6809 6810 fi6811 fi6812 AR=$ac_cv_prog_AR6813 if test -n "$AR"; then6814 { $as_echo "$as_me:$LINENO: result: $AR" >&56815 $as_echo "$AR" >&6; }6816 else6817 { $as_echo "$as_me:$LINENO: result: no" >&56818 $as_echo "no" >&6; }6819 fi6820 6821 6822 fi6823 if test -z "$ac_cv_prog_AR"; then6824 ac_ct_AR=$AR6825 # Extract the first word of "ar", so it can be a program name with args.6826 set dummy ar; ac_word=$26827 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&56828 $as_echo_n "checking for $ac_word... " >&6; }6829 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then6830 $as_echo_n "(cached) " >&66831 else6832 if test -n "$ac_ct_AR"; then6833 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.6834 else6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6836 for as_dir in $PATH6837 do6838 IFS=$as_save_IFS6839 test -z "$as_dir" && as_dir=.6840 for ac_exec_ext in '' $ac_executable_extensions; do6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6842 ac_cv_prog_ac_ct_AR="ar"6843 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56844 break 26845 fi6846 done6847 done6848 IFS=$as_save_IFS6849 6850 fi6851 fi6852 ac_ct_AR=$ac_cv_prog_ac_ct_AR6853 if test -n "$ac_ct_AR"; then6854 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&56855 $as_echo "$ac_ct_AR" >&6; }6856 else6857 { $as_echo "$as_me:$LINENO: result: no" >&56858 $as_echo "no" >&6; }6859 fi6860 6861 if test "x$ac_ct_AR" = x; then6862 AR="false"6863 else6864 case $cross_compiling:$ac_tool_warned in6865 yes:)6866 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&56867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6868 ac_tool_warned=yes ;;6869 esac6870 AR=$ac_ct_AR6871 fi6872 else6873 AR="$ac_cv_prog_AR"6874 fi6875 6876 if test -n "$ac_tool_prefix"; then6877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.6878 set dummy ${ac_tool_prefix}ranlib; ac_word=$26879 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&56880 $as_echo_n "checking for $ac_word... " >&6; }6881 if test "${ac_cv_prog_RANLIB+set}" = set; then6882 $as_echo_n "(cached) " >&66883 else6884 if test -n "$RANLIB"; then6885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.6886 else6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6888 for as_dir in $PATH6889 do6890 IFS=$as_save_IFS6891 test -z "$as_dir" && as_dir=.6892 for ac_exec_ext in '' $ac_executable_extensions; do6893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"6895 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56896 break 26897 fi6898 done6899 done6900 IFS=$as_save_IFS6901 6902 fi6903 fi6904 RANLIB=$ac_cv_prog_RANLIB6905 if test -n "$RANLIB"; then6906 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&56907 $as_echo "$RANLIB" >&6; }6908 else6909 { $as_echo "$as_me:$LINENO: result: no" >&56910 $as_echo "no" >&6; }6911 fi6912 6913 6914 fi6915 if test -z "$ac_cv_prog_RANLIB"; then6916 ac_ct_RANLIB=$RANLIB6917 # Extract the first word of "ranlib", so it can be a program name with args.6918 set dummy ranlib; ac_word=$26919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&56920 $as_echo_n "checking for $ac_word... " >&6; }6921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then6922 $as_echo_n "(cached) " >&66923 else6924 if test -n "$ac_ct_RANLIB"; then6925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.6926 else6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6928 for as_dir in $PATH6929 do6930 IFS=$as_save_IFS6931 test -z "$as_dir" && as_dir=.6932 for ac_exec_ext in '' $ac_executable_extensions; do6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6934 ac_cv_prog_ac_ct_RANLIB="ranlib"6935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56936 break 26937 fi6938 done6939 done6940 IFS=$as_save_IFS6941 6942 fi6943 fi6944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB6945 if test -n "$ac_ct_RANLIB"; then6946 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&56947 $as_echo "$ac_ct_RANLIB" >&6; }6948 else6949 { $as_echo "$as_me:$LINENO: result: no" >&56950 $as_echo "no" >&6; }6951 fi6952 6953 if test "x$ac_ct_RANLIB" = x; then6954 RANLIB=":"6955 else6956 case $cross_compiling:$ac_tool_warned in6957 yes:)6958 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&56959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6960 ac_tool_warned=yes ;;6961 esac6962 RANLIB=$ac_ct_RANLIB6963 fi6964 else6965 RANLIB="$ac_cv_prog_RANLIB"6966 fi6967 6968 if test -n "$ac_tool_prefix"; then6969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.6970 set dummy ${ac_tool_prefix}strip; ac_word=$26971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&56972 $as_echo_n "checking for $ac_word... " >&6; }6973 if test "${ac_cv_prog_STRIP+set}" = set; then6974 $as_echo_n "(cached) " >&66975 else6976 if test -n "$STRIP"; then6977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.6978 else6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6980 for as_dir in $PATH6981 do6982 IFS=$as_save_IFS6983 test -z "$as_dir" && as_dir=.6984 for ac_exec_ext in '' $ac_executable_extensions; do6985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then6986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"6987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56988 break 26989 fi6990 done6991 done6992 IFS=$as_save_IFS6993 6994 fi6995 fi6996 STRIP=$ac_cv_prog_STRIP6997 if test -n "$STRIP"; then6998 { $as_echo "$as_me:$LINENO: result: $STRIP" >&56999 $as_echo "$STRIP" >&6; }7000 else7001 { $as_echo "$as_me:$LINENO: result: no" >&57002 $as_echo "no" >&6; }7003 fi7004 7005 7006 fi7007 if test -z "$ac_cv_prog_STRIP"; then7008 ac_ct_STRIP=$STRIP7009 # Extract the first word of "strip", so it can be a program name with args.7010 set dummy strip; ac_word=$27011 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&57012 $as_echo_n "checking for $ac_word... " >&6; }7013 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then7014 $as_echo_n "(cached) " >&67015 else7016 if test -n "$ac_ct_STRIP"; then7017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.7018 else7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7020 for as_dir in $PATH7021 do7022 IFS=$as_save_IFS7023 test -z "$as_dir" && as_dir=.7024 for ac_exec_ext in '' $ac_executable_extensions; do7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7026 ac_cv_prog_ac_ct_STRIP="strip"7027 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57028 break 27029 fi7030 done7031 done7032 IFS=$as_save_IFS7033 7034 fi7035 fi7036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP7037 if test -n "$ac_ct_STRIP"; then7038 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&57039 $as_echo "$ac_ct_STRIP" >&6; }7040 else7041 { $as_echo "$as_me:$LINENO: result: no" >&57042 $as_echo "no" >&6; }7043 fi7044 7045 if test "x$ac_ct_STRIP" = x; then7046 STRIP=":"7047 else7048 case $cross_compiling:$ac_tool_warned in7049 yes:)7050 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&57051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7052 ac_tool_warned=yes ;;7053 esac7054 STRIP=$ac_ct_STRIP7055 fi7056 else7057 STRIP="$ac_cv_prog_STRIP"7058 fi7059 7060 8035 7061 8036 old_CC="$CC" … … 7063 8038 7064 8039 # Set sane defaults for various variables 7065 test -z "$AR" && AR=ar7066 test -z "$AR_FLAGS" && AR_FLAGS=cru7067 test -z "$AS" && AS=as7068 8040 test -z "$CC" && CC=cc 7069 8041 test -z "$LTCC" && LTCC=$CC 7070 8042 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7071 test -z "$DLLTOOL" && DLLTOOL=dlltool7072 8043 test -z "$LD" && LD=ld 7073 test -z "$LN_S" && LN_S="ln -s"7074 test -z "$MAGIC_CMD" && MAGIC_CMD=file7075 test -z "$NM" && NM=nm7076 test -z "$SED" && SED=sed7077 test -z "$OBJDUMP" && OBJDUMP=objdump7078 test -z "$RANLIB" && RANLIB=:7079 test -z "$STRIP" && STRIP=:7080 8044 test -z "$ac_objext" && ac_objext=o 7081 7082 # Determine commands to create old-style static archives.7083 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'7084 old_postinstall_cmds='chmod 644 $oldlib'7085 old_postuninstall_cmds=7086 7087 if test -n "$RANLIB"; then7088 case $host_os in7089 openbsd*)7090 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"7091 ;;7092 *)7093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"7094 ;;7095 esac7096 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"7097 fi7098 8045 7099 8046 for cc_temp in $compiler""; do … … 7105 8052 esac 7106 8053 done 7107 cc_basename=`$ echo"X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`8054 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 7108 8055 7109 8056 7110 8057 # Only perform the check for file, if the check method requires it 8058 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7111 8059 case $deplibs_check_method in 7112 8060 file_magic*) 7113 8061 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7114 { $as_echo "$as_me:$ LINENO: checking for ${ac_tool_prefix}file" >&58062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7115 8063 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7116 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8064 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7117 8065 $as_echo_n "(cached) " >&6 7118 8066 else … … 7139 8087 : 7140 8088 else 7141 cat << EOF 1>&28089 cat <<_LT_EOF 1>&2 7142 8090 7143 8091 *** Warning: the command libtool uses to detect shared libraries, … … 7150 8098 *** bug-libtool@gnu.org 7151 8099 7152 EOF8100 _LT_EOF 7153 8101 fi ;; 7154 8102 esac … … 7165 8113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7166 8114 if test -n "$MAGIC_CMD"; then 7167 { $as_echo "$as_me:$ LINENO: result: $MAGIC_CMD" >&58115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7168 8116 $as_echo "$MAGIC_CMD" >&6; } 7169 8117 else 7170 { $as_echo "$as_me:$ LINENO: result: no" >&58118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7171 8119 $as_echo "no" >&6; } 7172 8120 fi 8121 8122 8123 8124 7173 8125 7174 8126 if test -z "$lt_cv_path_MAGIC_CMD"; then 7175 8127 if test -n "$ac_tool_prefix"; then 7176 { $as_echo "$as_me:$ LINENO: checking for file" >&58128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7177 8129 $as_echo_n "checking for file... " >&6; } 7178 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 8130 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7179 8131 $as_echo_n "(cached) " >&6 7180 8132 else … … 7201 8153 : 7202 8154 else 7203 cat << EOF 1>&28155 cat <<_LT_EOF 1>&2 7204 8156 7205 8157 *** Warning: the command libtool uses to detect shared libraries, … … 7212 8164 *** bug-libtool@gnu.org 7213 8165 7214 EOF8166 _LT_EOF 7215 8167 fi ;; 7216 8168 esac … … 7227 8179 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7228 8180 if test -n "$MAGIC_CMD"; then 7229 { $as_echo "$as_me:$ LINENO: result: $MAGIC_CMD" >&58181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7230 8182 $as_echo "$MAGIC_CMD" >&6; } 7231 8183 else 7232 { $as_echo "$as_me:$ LINENO: result: no" >&58184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7233 8185 $as_echo "no" >&6; } 7234 8186 fi 8187 7235 8188 7236 8189 else … … 7243 8196 esac 7244 8197 7245 7246 case $host_os in7247 rhapsody* | darwin*)7248 if test -n "$ac_tool_prefix"; then7249 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.7250 set dummy ${ac_tool_prefix}dsymutil; ac_word=$27251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&57252 $as_echo_n "checking for $ac_word... " >&6; }7253 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then7254 $as_echo_n "(cached) " >&67255 else7256 if test -n "$DSYMUTIL"; then7257 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.7258 else7259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7260 for as_dir in $PATH7261 do7262 IFS=$as_save_IFS7263 test -z "$as_dir" && as_dir=.7264 for ac_exec_ext in '' $ac_executable_extensions; do7265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7266 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"7267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57268 break 27269 fi7270 done7271 done7272 IFS=$as_save_IFS7273 7274 fi7275 fi7276 DSYMUTIL=$ac_cv_prog_DSYMUTIL7277 if test -n "$DSYMUTIL"; then7278 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&57279 $as_echo "$DSYMUTIL" >&6; }7280 else7281 { $as_echo "$as_me:$LINENO: result: no" >&57282 $as_echo "no" >&6; }7283 fi7284 7285 7286 fi7287 if test -z "$ac_cv_prog_DSYMUTIL"; then7288 ac_ct_DSYMUTIL=$DSYMUTIL7289 # Extract the first word of "dsymutil", so it can be a program name with args.7290 set dummy dsymutil; ac_word=$27291 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&57292 $as_echo_n "checking for $ac_word... " >&6; }7293 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then7294 $as_echo_n "(cached) " >&67295 else7296 if test -n "$ac_ct_DSYMUTIL"; then7297 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.7298 else7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7300 for as_dir in $PATH7301 do7302 IFS=$as_save_IFS7303 test -z "$as_dir" && as_dir=.7304 for ac_exec_ext in '' $ac_executable_extensions; do7305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7306 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"7307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57308 break 27309 fi7310 done7311 done7312 IFS=$as_save_IFS7313 7314 fi7315 fi7316 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL7317 if test -n "$ac_ct_DSYMUTIL"; then7318 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&57319 $as_echo "$ac_ct_DSYMUTIL" >&6; }7320 else7321 { $as_echo "$as_me:$LINENO: result: no" >&57322 $as_echo "no" >&6; }7323 fi7324 7325 if test "x$ac_ct_DSYMUTIL" = x; then7326 DSYMUTIL=":"7327 else7328 case $cross_compiling:$ac_tool_warned in7329 yes:)7330 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&57331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7332 ac_tool_warned=yes ;;7333 esac7334 DSYMUTIL=$ac_ct_DSYMUTIL7335 fi7336 else7337 DSYMUTIL="$ac_cv_prog_DSYMUTIL"7338 fi7339 7340 if test -n "$ac_tool_prefix"; then7341 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.7342 set dummy ${ac_tool_prefix}nmedit; ac_word=$27343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&57344 $as_echo_n "checking for $ac_word... " >&6; }7345 if test "${ac_cv_prog_NMEDIT+set}" = set; then7346 $as_echo_n "(cached) " >&67347 else7348 if test -n "$NMEDIT"; then7349 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.7350 else7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7352 for as_dir in $PATH7353 do7354 IFS=$as_save_IFS7355 test -z "$as_dir" && as_dir=.7356 for ac_exec_ext in '' $ac_executable_extensions; do7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7358 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"7359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57360 break 27361 fi7362 done7363 done7364 IFS=$as_save_IFS7365 7366 fi7367 fi7368 NMEDIT=$ac_cv_prog_NMEDIT7369 if test -n "$NMEDIT"; then7370 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&57371 $as_echo "$NMEDIT" >&6; }7372 else7373 { $as_echo "$as_me:$LINENO: result: no" >&57374 $as_echo "no" >&6; }7375 fi7376 7377 7378 fi7379 if test -z "$ac_cv_prog_NMEDIT"; then7380 ac_ct_NMEDIT=$NMEDIT7381 # Extract the first word of "nmedit", so it can be a program name with args.7382 set dummy nmedit; ac_word=$27383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&57384 $as_echo_n "checking for $ac_word... " >&6; }7385 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then7386 $as_echo_n "(cached) " >&67387 else7388 if test -n "$ac_ct_NMEDIT"; then7389 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.7390 else7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7392 for as_dir in $PATH7393 do7394 IFS=$as_save_IFS7395 test -z "$as_dir" && as_dir=.7396 for ac_exec_ext in '' $ac_executable_extensions; do7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then7398 ac_cv_prog_ac_ct_NMEDIT="nmedit"7399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&57400 break 27401 fi7402 done7403 done7404 IFS=$as_save_IFS7405 7406 fi7407 fi7408 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT7409 if test -n "$ac_ct_NMEDIT"; then7410 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&57411 $as_echo "$ac_ct_NMEDIT" >&6; }7412 else7413 { $as_echo "$as_me:$LINENO: result: no" >&57414 $as_echo "no" >&6; }7415 fi7416 7417 if test "x$ac_ct_NMEDIT" = x; then7418 NMEDIT=":"7419 else7420 case $cross_compiling:$ac_tool_warned in7421 yes:)7422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&57423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7424 ac_tool_warned=yes ;;7425 esac7426 NMEDIT=$ac_ct_NMEDIT7427 fi7428 else7429 NMEDIT="$ac_cv_prog_NMEDIT"7430 fi7431 7432 7433 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&57434 $as_echo_n "checking for -single_module linker flag... " >&6; }7435 if test "${lt_cv_apple_cc_single_mod+set}" = set; then7436 $as_echo_n "(cached) " >&67437 else7438 lt_cv_apple_cc_single_mod=no7439 if test -z "${LT_MULTI_MODULE}"; then7440 # By default we will add the -single_module flag. You can override7441 # by either setting the environment variable LT_MULTI_MODULE7442 # non-empty at configure time, or by adding -multi_module to the7443 # link flags.7444 echo "int foo(void){return 1;}" > conftest.c7445 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \7446 -dynamiclib ${wl}-single_module conftest.c7447 if test -f libconftest.dylib; then7448 lt_cv_apple_cc_single_mod=yes7449 rm -rf libconftest.dylib*7450 fi7451 rm conftest.c7452 fi7453 fi7454 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&57455 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }7456 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&57457 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }7458 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then7459 $as_echo_n "(cached) " >&67460 else7461 lt_cv_ld_exported_symbols_list=no7462 save_LDFLAGS=$LDFLAGS7463 echo "_main" > conftest.sym7464 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"7465 cat >conftest.$ac_ext <<_ACEOF7466 /* confdefs.h. */7467 _ACEOF7468 cat confdefs.h >>conftest.$ac_ext7469 cat >>conftest.$ac_ext <<_ACEOF7470 /* end confdefs.h. */7471 7472 int7473 main ()7474 {7475 7476 ;7477 return 0;7478 }7479 _ACEOF7480 rm -f conftest.$ac_objext conftest$ac_exeext7481 if { (ac_try="$ac_link"7482 case "(($ac_try" in7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;7484 *) ac_try_echo=$ac_try;;7485 esac7486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""7487 $as_echo "$ac_try_echo") >&57488 (eval "$ac_link") 2>conftest.er17489 ac_status=$?7490 grep -v '^ *+' conftest.er1 >conftest.err7491 rm -f conftest.er17492 cat conftest.err >&57493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&57494 (exit $ac_status); } && {7495 test -z "$ac_c_werror_flag" ||7496 test ! -s conftest.err7497 } && test -s conftest$ac_exeext && {7498 test "$cross_compiling" = yes ||7499 $as_test_x conftest$ac_exeext7500 }; then7501 lt_cv_ld_exported_symbols_list=yes7502 else7503 $as_echo "$as_me: failed program was:" >&57504 sed 's/^/| /' conftest.$ac_ext >&57505 7506 lt_cv_ld_exported_symbols_list=no7507 fi7508 7509 rm -rf conftest.dSYM7510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \7511 conftest$ac_exeext conftest.$ac_ext7512 LDFLAGS="$save_LDFLAGS"7513 7514 fi7515 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&57516 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }7517 case $host_os in7518 rhapsody* | darwin1.[0123])7519 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;7520 darwin1.*)7521 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;7522 darwin*)7523 # if running on 10.5 or later, the deployment target defaults7524 # to the OS version, if on x86, and 10.4, the deployment7525 # target defaults to 10.4. Don't you love it?7526 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in7527 10.0,*86*-darwin8*|10.0,*-darwin[91]*)7528 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;7529 10.[012]*)7530 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;7531 10.*)7532 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;7533 esac7534 ;;7535 esac7536 if test "$lt_cv_apple_cc_single_mod" = "yes"; then7537 _lt_dar_single_mod='$single_module'7538 fi7539 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then7540 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'7541 else7542 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"7543 fi7544 if test "$DSYMUTIL" != ":"; then7545 _lt_dsymutil="~$DSYMUTIL \$lib || :"7546 else7547 _lt_dsymutil=7548 fi7549 ;;7550 esac7551 7552 7553 enable_dlopen=no7554 enable_win32_dll=no7555 7556 # Check whether --enable-libtool-lock was given.7557 if test "${enable_libtool_lock+set}" = set; then7558 enableval=$enable_libtool_lock;7559 fi7560 7561 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes7562 7563 7564 # Check whether --with-pic was given.7565 if test "${with_pic+set}" = set; then7566 withval=$with_pic; pic_mode="$withval"7567 else7568 pic_mode=default7569 fi7570 7571 test -z "$pic_mode" && pic_mode=default7572 7573 8198 # Use C for the default configuration in the libtool script 7574 tagname= 8199 7575 8200 lt_save_CC="$CC" 7576 8201 ac_ext=c … … 7595 8220 7596 8221 8222 8223 8224 8225 8226 7597 8227 # If no C compiler was specified, use CC. 7598 8228 LTCC=${LTCC-"$CC"} … … 7604 8234 compiler=$CC 7605 8235 8236 # Save the default compiler, since it gets overwritten when the other 8237 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8238 compiler_DEFAULT=$CC 7606 8239 7607 8240 # save warnings/boilerplate of simple test code … … 7610 8243 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7611 8244 _lt_compiler_boilerplate=`cat conftest.err` 7612 $ rmconftest*8245 $RM conftest* 7613 8246 7614 8247 ac_outfile=conftest.$ac_objext … … 7616 8249 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7617 8250 _lt_linker_boilerplate=`cat conftest.err` 7618 $rm -r conftest* 7619 7620 8251 $RM -r conftest* 8252 8253 8254 if test -n "$compiler"; then 7621 8255 7622 8256 lt_prog_compiler_no_builtin_flag= … … 7625 8259 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 7626 8260 7627 7628 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7629 8262 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7630 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 8263 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7631 8264 $as_echo_n "(cached) " >&6 7632 8265 else 7633 8266 lt_cv_prog_compiler_rtti_exceptions=no 7634 ac_outfile=conftest.$ac_objext8267 ac_outfile=conftest.$ac_objext 7635 8268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7636 8269 lt_compiler_flag="-fno-rtti -fno-exceptions" … … 7644 8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7645 8278 -e 's:$: $lt_compiler_flag:'` 7646 (eval echo "\"\$as_me: 7646: $lt_compile\"" >&5)8279 (eval echo "\"\$as_me:8279: $lt_compile\"" >&5) 7647 8280 (eval "$lt_compile" 2>conftest.err) 7648 8281 ac_status=$? 7649 8282 cat conftest.err >&5 7650 echo "$as_me: 7650: \$? = $ac_status" >&58283 echo "$as_me:8283: \$? = $ac_status" >&5 7651 8284 if (exit $ac_status) && test -s "$ac_outfile"; then 7652 8285 # The compiler can only warn and ignore the option if not recognized 7653 8286 # So say no if there are warnings other than the usual output. 7654 $ echo"X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp8287 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7655 8288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7656 8289 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 7658 8291 fi 7659 8292 fi 7660 $ rmconftest*7661 7662 fi 7663 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&58293 $RM conftest* 8294 8295 fi 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7664 8297 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7665 8298 … … 7672 8305 fi 7673 8306 7674 lt_prog_compiler_wl= 8307 8308 8309 8310 8311 8312 lt_prog_compiler_wl= 7675 8313 lt_prog_compiler_pic= 7676 8314 lt_prog_compiler_static= 7677 8315 7678 { $as_echo "$as_me:$ LINENO: checking for $compiler option to produce PIC" >&58316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7679 8317 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7680 8318 … … 7693 8331 7694 8332 amigaos*) 7695 # FIXME: we need at least 68020 code to build shared libraries, but 7696 # adding the `-m68020' flag to GCC prevents building anything better, 7697 # like `-m68040'. 7698 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8333 case $host_cpu in 8334 powerpc) 8335 # see comment about AmigaOS4 .so support 8336 lt_prog_compiler_pic='-fPIC' 8337 ;; 8338 m68k) 8339 # FIXME: we need at least 68020 code to build shared libraries, but 8340 # adding the `-m68020' flag to GCC prevents building anything better, 8341 # like `-m68040'. 8342 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8343 ;; 8344 esac 7699 8345 ;; 7700 8346 … … 7703 8349 ;; 7704 8350 7705 mingw* | cygwin* | pw32* | os2* )8351 mingw* | cygwin* | pw32* | os2* | cegcc*) 7706 8352 # This hack is so that the source file can tell whether it is being 7707 8353 # built for inclusion in a dll (and should export symbols for example). … … 7717 8363 ;; 7718 8364 8365 hpux*) 8366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8368 # sets the default TLS model and affects inlining. 8369 case $host_cpu in 8370 hppa*64*) 8371 # +Z the default 8372 ;; 8373 *) 8374 lt_prog_compiler_pic='-fPIC' 8375 ;; 8376 esac 8377 ;; 8378 7719 8379 interix[3-9]*) 7720 8380 # Interix 3.x gcc -fpic/-fPIC options generate broken code. … … 7729 8389 ;; 7730 8390 8391 *nto* | *qnx*) 8392 # QNX uses GNU C++, but need to define -shared option too, otherwise 8393 # it will coredump. 8394 lt_prog_compiler_pic='-fPIC -shared' 8395 ;; 8396 7731 8397 sysv4*MP*) 7732 8398 if test -d /usr/nec; then 7733 8399 lt_prog_compiler_pic=-Kconform_pic 7734 8400 fi 7735 ;;7736 7737 hpux*)7738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but7739 # not for PA HP-UX.7740 case $host_cpu in7741 hppa*64*|ia64*)7742 # +Z the default7743 ;;7744 *)7745 lt_prog_compiler_pic='-fPIC'7746 ;;7747 esac7748 8401 ;; 7749 8402 … … 7764 8417 fi 7765 8418 ;; 7766 darwin*) 7767 # PIC is the default on this platform 7768 # Common symbols not allowed in MH_DYLIB files 7769 case $cc_basename in 7770 xlc*) 7771 lt_prog_compiler_pic='-qnocommon' 7772 lt_prog_compiler_wl='-Wl,' 7773 ;; 7774 esac 7775 ;; 7776 7777 mingw* | cygwin* | pw32* | os2*) 8419 8420 mingw* | cygwin* | pw32* | os2* | cegcc*) 7778 8421 # This hack is so that the source file can tell whether it is being 7779 8422 # built for inclusion in a dll (and should export symbols for example). … … 7803 8446 ;; 7804 8447 7805 newsos6)7806 lt_prog_compiler_pic='-KPIC'7807 lt_prog_compiler_static='-Bstatic'7808 ;;7809 7810 8448 linux* | k*bsd*-gnu) 7811 8449 case $cc_basename in 7812 icc* | ecc*) 8450 # old Intel for x86_64 which still supported -KPIC. 8451 ecc*) 7813 8452 lt_prog_compiler_wl='-Wl,' 7814 8453 lt_prog_compiler_pic='-KPIC' 7815 8454 lt_prog_compiler_static='-static' 7816 8455 ;; 8456 # icc used to be incompatible with GCC. 8457 # ICC 10 doesn't accept -KPIC any more. 8458 icc* | ifort*) 8459 lt_prog_compiler_wl='-Wl,' 8460 lt_prog_compiler_pic='-fPIC' 8461 lt_prog_compiler_static='-static' 8462 ;; 8463 # Lahey Fortran 8.1. 8464 lf95*) 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='--shared' 8467 lt_prog_compiler_static='--static' 8468 ;; 7817 8469 pgcc* | pgf77* | pgf90* | pgf95*) 7818 8470 # Portland Group compilers (*not* the Pentium gcc compiler, … … 7827 8479 lt_prog_compiler_static='-non_shared' 7828 8480 ;; 8481 xl*) 8482 # IBM XL C 8.0/Fortran 10.1 on PPC 8483 lt_prog_compiler_wl='-Wl,' 8484 lt_prog_compiler_pic='-qpic' 8485 lt_prog_compiler_static='-qstaticlink' 8486 ;; 7829 8487 *) 7830 case `$CC -V 2>&1 | sed 5q` in8488 case `$CC -V 2>&1 | sed 5q` in 7831 8489 *Sun\ C*) 7832 8490 # Sun C 5.9 … … 7846 8504 ;; 7847 8505 8506 newsos6) 8507 lt_prog_compiler_pic='-KPIC' 8508 lt_prog_compiler_static='-Bstatic' 8509 ;; 8510 8511 *nto* | *qnx*) 8512 # QNX uses GNU C++, but need to define -shared option too, otherwise 8513 # it will coredump. 8514 lt_prog_compiler_pic='-fPIC -shared' 8515 ;; 8516 7848 8517 osf3* | osf4* | osf5*) 7849 8518 lt_prog_compiler_wl='-Wl,' … … 7908 8577 fi 7909 8578 7910 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 8579 case $host_os in 8580 # For platforms which do not support PIC, -DPIC is meaningless: 8581 *djgpp*) 8582 lt_prog_compiler_pic= 8583 ;; 8584 *) 8585 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8586 ;; 8587 esac 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7911 8589 $as_echo "$lt_prog_compiler_pic" >&6; } 8590 8591 8592 8593 8594 7912 8595 7913 8596 # … … 7915 8598 # 7916 8599 if test -n "$lt_prog_compiler_pic"; then 7917 7918 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7919 8601 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7920 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then 8602 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7921 8603 $as_echo_n "(cached) " >&6 7922 8604 else 7923 8605 lt_cv_prog_compiler_pic_works=no 7924 ac_outfile=conftest.$ac_objext8606 ac_outfile=conftest.$ac_objext 7925 8607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7926 8608 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" … … 7934 8616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7935 8617 -e 's:$: $lt_compiler_flag:'` 7936 (eval echo "\"\$as_me: 7936: $lt_compile\"" >&5)8618 (eval echo "\"\$as_me:8618: $lt_compile\"" >&5) 7937 8619 (eval "$lt_compile" 2>conftest.err) 7938 8620 ac_status=$? 7939 8621 cat conftest.err >&5 7940 echo "$as_me: 7940: \$? = $ac_status" >&58622 echo "$as_me:8622: \$? = $ac_status" >&5 7941 8623 if (exit $ac_status) && test -s "$ac_outfile"; then 7942 8624 # The compiler can only warn and ignore the option if not recognized 7943 8625 # So say no if there are warnings other than the usual output. 7944 $ echo"X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp8626 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7945 8627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7946 8628 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 7948 8630 fi 7949 8631 fi 7950 $ rmconftest*7951 7952 fi 7953 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_compiler_pic_works" >&58632 $RM conftest* 8633 8634 fi 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7954 8636 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7955 8637 … … 7965 8647 7966 8648 fi 7967 case $host_os in 7968 # For platforms which do not support PIC, -DPIC is meaningless: 7969 *djgpp*) 7970 lt_prog_compiler_pic= 7971 ;; 7972 *) 7973 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7974 ;; 7975 esac 8649 8650 8651 8652 8653 7976 8654 7977 8655 # … … 7979 8657 # 7980 8658 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7981 { $as_echo "$as_me:$ LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&58659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7982 8660 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7983 if test "${lt_cv_prog_compiler_static_works+set}" = set; then 8661 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7984 8662 $as_echo_n "(cached) " >&6 7985 8663 else … … 7994 8672 # Append any errors to the config.log. 7995 8673 cat conftest.err 1>&5 7996 $ echo"X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp8674 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7997 8675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7998 8676 if diff conftest.exp conftest.er2 >/dev/null; then … … 8003 8681 fi 8004 8682 fi 8005 $ rm-r conftest*8683 $RM -r conftest* 8006 8684 LDFLAGS="$save_LDFLAGS" 8007 8685 8008 8686 fi 8009 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_compiler_static_works" >&58687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8010 8688 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8011 8689 … … 8017 8695 8018 8696 8019 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 8697 8698 8699 8700 8701 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8020 8703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8021 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 8704 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8022 8705 $as_echo_n "(cached) " >&6 8023 8706 else 8024 8707 lt_cv_prog_compiler_c_o=no 8025 $ rm-r conftest 2>/dev/null8708 $RM -r conftest 2>/dev/null 8026 8709 mkdir conftest 8027 8710 cd conftest … … 8038 8721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8039 8722 -e 's:$: $lt_compiler_flag:'` 8040 (eval echo "\"\$as_me:8 040: $lt_compile\"" >&5)8723 (eval echo "\"\$as_me:8723: $lt_compile\"" >&5) 8041 8724 (eval "$lt_compile" 2>out/conftest.err) 8042 8725 ac_status=$? 8043 8726 cat out/conftest.err >&5 8044 echo "$as_me:8 044: \$? = $ac_status" >&58727 echo "$as_me:8727: \$? = $ac_status" >&5 8045 8728 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8046 8729 then 8047 8730 # The compiler can only warn and ignore the option if not recognized 8048 8731 # So say no if there are warnings 8049 $ echo"X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp8732 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8050 8733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8051 8734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then … … 8054 8737 fi 8055 8738 chmod u+w . 2>&5 8056 $ rmconftest*8739 $RM conftest* 8057 8740 # SGI C++ compiler will create directory out/ii_files/ for 8058 8741 # template instantiation 8059 test -d out/ii_files && $ rmout/ii_files/* && rmdir out/ii_files8060 $ rmout/* && rmdir out8742 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8743 $RM out/* && rmdir out 8061 8744 cd .. 8062 rmdir conftest8063 $ rmconftest*8064 8065 fi 8066 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_compiler_c_o" >&58745 $RM -r conftest 8746 $RM conftest* 8747 8748 fi 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8067 8750 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8751 8752 8753 8754 8755 8756 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8759 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8760 $as_echo_n "(cached) " >&6 8761 else 8762 lt_cv_prog_compiler_c_o=no 8763 $RM -r conftest 2>/dev/null 8764 mkdir conftest 8765 cd conftest 8766 mkdir out 8767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8768 8769 lt_compiler_flag="-o out/conftest2.$ac_objext" 8770 # Insert the option either (1) after the last *FLAGS variable, or 8771 # (2) before a word containing "conftest.", or (3) at the end. 8772 # Note that $ac_compile itself does not contain backslashes and begins 8773 # with a dollar sign (not a hyphen), so the echo should work correctly. 8774 lt_compile=`echo "$ac_compile" | $SED \ 8775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8777 -e 's:$: $lt_compiler_flag:'` 8778 (eval echo "\"\$as_me:8778: $lt_compile\"" >&5) 8779 (eval "$lt_compile" 2>out/conftest.err) 8780 ac_status=$? 8781 cat out/conftest.err >&5 8782 echo "$as_me:8782: \$? = $ac_status" >&5 8783 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8784 then 8785 # The compiler can only warn and ignore the option if not recognized 8786 # So say no if there are warnings 8787 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 8788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8790 lt_cv_prog_compiler_c_o=yes 8791 fi 8792 fi 8793 chmod u+w . 2>&5 8794 $RM conftest* 8795 # SGI C++ compiler will create directory out/ii_files/ for 8796 # template instantiation 8797 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8798 $RM out/* && rmdir out 8799 cd .. 8800 $RM -r conftest 8801 $RM conftest* 8802 8803 fi 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8805 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8806 8807 8068 8808 8069 8809 … … 8071 8811 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8072 8812 # do not overwrite the value of need_locks provided by the user 8073 { $as_echo "$as_me:$ LINENO: checking if we can lock with hard links" >&58813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8074 8814 $as_echo_n "checking if we can lock with hard links... " >&6; } 8075 8815 hard_links=yes 8076 $ rmconftest*8816 $RM conftest* 8077 8817 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8078 8818 touch conftest.a 8079 8819 ln conftest.a conftest.b 2>&5 || hard_links=no 8080 8820 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8081 { $as_echo "$as_me:$ LINENO: result: $hard_links" >&58821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8082 8822 $as_echo "$hard_links" >&6; } 8083 8823 if test "$hard_links" = no; then 8084 { $as_echo "$as_me:$ LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&58824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8085 8825 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8086 8826 need_locks=warn … … 8090 8830 fi 8091 8831 8092 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8832 8833 8834 8835 8836 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8093 8838 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8094 8839 8095 8840 runpath_var= 8096 8841 allow_undefined_flag= 8097 enable_shared_with_static_runtimes=no8842 always_export_symbols=no 8098 8843 archive_cmds= 8099 8844 archive_expsym_cmds= 8100 old_archive_From_new_cmds=8101 old_archive_from_expsyms_cmds=8845 compiler_needs_object=no 8846 enable_shared_with_static_runtimes=no 8102 8847 export_dynamic_flag_spec= 8103 whole_archive_flag_spec= 8104 thread_safe_flag_spec= 8848 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8849 hardcode_automatic=no 8850 hardcode_direct=no 8851 hardcode_direct_absolute=no 8105 8852 hardcode_libdir_flag_spec= 8106 8853 hardcode_libdir_flag_spec_ld= 8107 8854 hardcode_libdir_separator= 8108 hardcode_direct=no8109 8855 hardcode_minus_L=no 8110 8856 hardcode_shlibpath_var=unsupported 8857 inherit_rpath=no 8111 8858 link_all_deplibs=unknown 8112 hardcode_automatic=no8113 8859 module_cmds= 8114 8860 module_expsym_cmds= 8115 always_export_symbols=no 8116 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8861 old_archive_from_new_cmds= 8862 old_archive_from_expsyms_cmds= 8863 thread_safe_flag_spec= 8864 whole_archive_flag_spec= 8117 8865 # include_expsyms should be a list of space-separated symbols to be *always* 8118 8866 # included in the symbol list … … 8130 8878 # Exclude shared library initialization/finalization symbols. 8131 8879 extract_expsyms_cmds= 8132 # Just being paranoid about ensuring that cc_basename is set.8133 for cc_temp in $compiler""; do8134 case $cc_temp in8135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;8136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;8137 \-*) ;;8138 *) break;;8139 esac8140 done8141 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`8142 8880 8143 8881 case $host_os in 8144 cygwin* | mingw* | pw32* )8882 cygwin* | mingw* | pw32* | cegcc*) 8145 8883 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8146 8884 # When not using gcc, we currently assume that we are using … … 8168 8906 # here allows them to be overridden if necessary. 8169 8907 runpath_var=LD_RUN_PATH 8170 hardcode_libdir_flag_spec='${wl}- -rpath ${wl}$libdir'8908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8171 8909 export_dynamic_flag_spec='${wl}--export-dynamic' 8172 8910 # ancient GNU ld didn't support --whole-archive et. al. 8173 if $LD --help 2>&1 | grep'no-whole-archive' > /dev/null; then8174 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'8175 else8176 whole_archive_flag_spec=8911 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8912 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8913 else 8914 whole_archive_flag_spec= 8177 8915 fi 8178 8916 supports_anon_versioning=no 8179 case `$LD -v 2> /dev/null` in8917 case `$LD -v 2>&1` in 8180 8918 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8181 8919 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... … … 8191 8929 if test "$host_cpu" != ia64; then 8192 8930 ld_shlibs=no 8193 cat << EOF 1>&28931 cat <<_LT_EOF 1>&2 8194 8932 8195 8933 *** Warning: the GNU linker, at least up to release 2.9.1, is reported … … 8199 8937 *** so that a non-GNU linker is found, and then restart. 8200 8938 8201 EOF8939 _LT_EOF 8202 8940 fi 8203 8941 ;; 8204 8942 8205 8943 amigaos*) 8206 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)' 8207 hardcode_libdir_flag_spec='-L$libdir' 8208 hardcode_minus_L=yes 8209 8210 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 8211 # that the semantics of dynamic libraries on AmigaOS, at least up 8212 # to version 4, is to share data among multiple programs linked 8213 # with the same dynamic library. Since this doesn't match the 8214 # behavior of shared libraries on other platforms, we can't use 8215 # them. 8216 ld_shlibs=no 8944 case $host_cpu in 8945 powerpc) 8946 # see comment about AmigaOS4 .so support 8947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8948 archive_expsym_cmds='' 8949 ;; 8950 m68k) 8951 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)' 8952 hardcode_libdir_flag_spec='-L$libdir' 8953 hardcode_minus_L=yes 8954 ;; 8955 esac 8217 8956 ;; 8218 8957 8219 8958 beos*) 8220 if $LD --help 2>&1 | grep': supported targets:.* elf' > /dev/null; then8959 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8221 8960 allow_undefined_flag=unsupported 8222 8961 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc … … 8228 8967 ;; 8229 8968 8230 cygwin* | mingw* | pw32* )8231 # _LT_ AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,8969 cygwin* | mingw* | pw32* | cegcc*) 8970 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8232 8971 # as there is no search path for DLLs. 8233 8972 hardcode_libdir_flag_spec='-L$libdir' … … 8235 8974 always_export_symbols=no 8236 8975 enable_shared_with_static_runtimes=yes 8237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'8238 8239 if $LD --help 2>&1 | grep'auto-import' > /dev/null; then8976 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8977 8978 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8240 8979 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8241 8980 # If the export-symbols file already is a .def file (1st line … … 8268 9007 ;; 8269 9008 8270 gnu* | linux* | k*bsd*-gnu) 8271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 9009 gnu* | linux* | tpf* | k*bsd*-gnu) 9010 tmp_diet=no 9011 if test "$host_os" = linux-dietlibc; then 9012 case $cc_basename in 9013 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9014 esac 9015 fi 9016 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9017 && test "$tmp_diet" = no 9018 then 8272 9019 tmp_addflag= 9020 tmp_sharedflag='-shared' 8273 9021 case $cc_basename,$host_cpu in 8274 pgcc*) # Portland Group C compiler8275 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ echo\"$new_convenience\"` ${wl}--no-whole-archive'9022 pgcc*) # Portland Group C compiler 9023 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8276 9024 tmp_addflag=' $pic_flag' 8277 9025 ;; 8278 9026 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 8279 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ echo\"$new_convenience\"` ${wl}--no-whole-archive'9027 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 8280 9028 tmp_addflag=' $pic_flag -Mnomain' ;; 8281 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia649029 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8282 9030 tmp_addflag=' -i_dynamic' ;; 8283 9031 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 … … 8285 9033 ifc* | ifort*) # Intel Fortran compiler 8286 9034 tmp_addflag=' -nofor_main' ;; 9035 lf95*) # Lahey Fortran 8.1 9036 whole_archive_flag_spec= 9037 tmp_sharedflag='--shared' ;; 9038 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9039 tmp_sharedflag='-qmkshrobj' 9040 tmp_addflag= ;; 8287 9041 esac 8288 9042 case `$CC -V 2>&1 | sed 5q` in 8289 9043 *Sun\ C*) # Sun C 5.9 8290 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 9044 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 9045 compiler_needs_object=yes 8291 9046 tmp_sharedflag='-G' ;; 8292 9047 *Sun\ F*) # Sun Fortran 8.3 8293 9048 tmp_sharedflag='-G' ;; 8294 *)8295 tmp_sharedflag='-shared' ;;8296 9049 esac 8297 9050 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8298 9051 8299 if test $supports_anon_versioning = yes; then 8300 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 8301 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8302 $echo "local: *; };" >> $output_objdir/$libname.ver~ 8303 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8304 fi 9052 if test "x$supports_anon_versioning" = xyes; then 9053 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9054 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9055 echo "local: *; };" >> $output_objdir/$libname.ver~ 9056 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9057 fi 9058 9059 case $cc_basename in 9060 xlf*) 9061 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9062 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9063 hardcode_libdir_flag_spec= 9064 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9065 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9066 if test "x$supports_anon_versioning" = xyes; then 9067 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9069 echo "local: *; };" >> $output_objdir/$libname.ver~ 9070 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9071 fi 9072 ;; 9073 esac 8305 9074 else 8306 ld_shlibs=no9075 ld_shlibs=no 8307 9076 fi 8308 9077 ;; 8309 9078 8310 9079 netbsd*) 8311 if echo __ELF__ | $CC -E - | grep__ELF__ >/dev/null; then9080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8312 9081 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8313 9082 wlarc= … … 8319 9088 8320 9089 solaris*) 8321 if $LD -v 2>&1 | grep'BFD 2\.8' > /dev/null; then9090 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8322 9091 ld_shlibs=no 8323 cat << EOF 1>&29092 cat <<_LT_EOF 1>&2 8324 9093 8325 9094 *** Warning: The releases 2.8.* of the GNU linker cannot reliably … … 8330 9099 *** used, and then restart. 8331 9100 8332 EOF8333 elif $LD --help 2>&1 | grep': supported targets:.* elf' > /dev/null; then9101 _LT_EOF 9102 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8334 9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8335 9104 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' … … 8355 9124 ;; 8356 9125 *) 8357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 8358 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 8359 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 8360 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 9126 # For security reasons, it is highly recommended that you always 9127 # use absolute paths for naming shared libraries, and exclude the 9128 # DT_RUNPATH tag from executables and libraries. But doing so 9129 # requires that you compile everything twice, which is a pain. 9130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9131 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8361 9134 else 8362 9135 ld_shlibs=no … … 8374 9147 8375 9148 *) 8376 if $LD --help 2>&1 | grep': supported targets:.* elf' > /dev/null; then9149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8377 9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8378 9151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' … … 8416 9189 # If we're using GNU nm, then we don't want the "-C" option. 8417 9190 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8418 if $NM -V 2>&1 | grep'GNU' > /dev/null; then8419 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'9191 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9192 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8420 9193 else 8421 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'9194 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8422 9195 fi 8423 9196 aix_use_runtimelinking=no … … 8428 9201 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8429 9202 for ld_flag in $LDFLAGS; do 8430 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then8431 aix_use_runtimelinking=yes8432 break8433 fi9203 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9204 aix_use_runtimelinking=yes 9205 break 9206 fi 8434 9207 done 8435 9208 ;; … … 8448 9221 archive_cmds='' 8449 9222 hardcode_direct=yes 9223 hardcode_direct_absolute=yes 8450 9224 hardcode_libdir_separator=':' 8451 9225 link_all_deplibs=yes 9226 file_list_spec='${wl}-f,' 8452 9227 8453 9228 if test "$GCC" = yes; then … … 8456 9231 # below for broken collect2 doesn't work under 4.3+ 8457 9232 collect2name=`${CC} -print-prog-name=collect2` 8458 if test -f "$collect2name" && \8459 strings "$collect2name" | grepresolve_lib_name >/dev/null9233 if test -f "$collect2name" && 9234 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8460 9235 then 8461 # We have reworked collect28462 :9236 # We have reworked collect2 9237 : 8463 9238 else 8464 # We have old collect28465 hardcode_direct=unsupported8466 # It fails to find uninstalled libraries when the uninstalled8467 # path is not listed in the libpath. Setting hardcode_minus_L8468 # to unsupported forces relinking8469 hardcode_minus_L=yes8470 hardcode_libdir_flag_spec='-L$libdir'8471 hardcode_libdir_separator=9239 # We have old collect2 9240 hardcode_direct=unsupported 9241 # It fails to find uninstalled libraries when the uninstalled 9242 # path is not listed in the libpath. Setting hardcode_minus_L 9243 # to unsupported forces relinking 9244 hardcode_minus_L=yes 9245 hardcode_libdir_flag_spec='-L$libdir' 9246 hardcode_libdir_separator= 8472 9247 fi 8473 9248 ;; … … 8477 9252 shared_flag="$shared_flag "'${wl}-G' 8478 9253 fi 9254 link_all_deplibs=no 8479 9255 else 8480 9256 # not using gcc 8481 9257 if test "$host_cpu" = ia64; then 8482 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release8483 # chokes on -Wl,-G. The following line is correct:9258 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9259 # chokes on -Wl,-G. The following line is correct: 8484 9260 shared_flag='-G' 8485 9261 else … … 8492 9268 fi 8493 9269 9270 export_dynamic_flag_spec='${wl}-bexpall' 8494 9271 # It seems that -bexpall does not export symbols beginning with 8495 9272 # underscore (_), so it is better to generate a list of symbols to export. … … 8499 9276 # -berok will link without error, but may produce a broken library. 8500 9277 allow_undefined_flag='-berok' 8501 # Determine the default libpath from the value encoded in an empty executable. 8502 cat >conftest.$ac_ext <<_ACEOF 8503 /* confdefs.h. */ 8504 _ACEOF 8505 cat confdefs.h >>conftest.$ac_ext 8506 cat >>conftest.$ac_ext <<_ACEOF 9278 # Determine the default libpath from the value encoded in an 9279 # empty executable. 9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8507 9281 /* end confdefs.h. */ 8508 9282 … … 8515 9289 } 8516 9290 _ACEOF 8517 rm -f conftest.$ac_objext conftest$ac_exeext 8518 if { (ac_try="$ac_link" 8519 case "(($ac_try" in 8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8521 *) ac_try_echo=$ac_try;; 8522 esac 8523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8524 $as_echo "$ac_try_echo") >&5 8525 (eval "$ac_link") 2>conftest.er1 8526 ac_status=$? 8527 grep -v '^ *+' conftest.er1 >conftest.err 8528 rm -f conftest.er1 8529 cat conftest.err >&5 8530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8531 (exit $ac_status); } && { 8532 test -z "$ac_c_werror_flag" || 8533 test ! -s conftest.err 8534 } && test -s conftest$ac_exeext && { 8535 test "$cross_compiling" = yes || 8536 $as_test_x conftest$ac_exeext 8537 }; then 9291 if ac_fn_c_try_link "$LINENO"; then : 8538 9292 8539 9293 lt_aix_libpath_sed=' … … 8549 9303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8550 9304 fi 8551 else 8552 $as_echo "$as_me: failed program was:" >&5 8553 sed 's/^/| /' conftest.$ac_ext >&5 8554 8555 8556 fi 8557 8558 rm -rf conftest.dSYM 8559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8560 conftest$ac_exeext conftest.$ac_ext 9305 fi 9306 rm -f core conftest.err conftest.$ac_objext \ 9307 conftest$ac_exeext conftest.$ac_ext 8561 9308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8562 9309 8563 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"8564 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"8565 else9310 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9311 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9312 else 8566 9313 if test "$host_cpu" = ia64; then 8567 9314 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' … … 8569 9316 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" 8570 9317 else 8571 # Determine the default libpath from the value encoded in an empty executable. 8572 cat >conftest.$ac_ext <<_ACEOF 8573 /* confdefs.h. */ 8574 _ACEOF 8575 cat confdefs.h >>conftest.$ac_ext 8576 cat >>conftest.$ac_ext <<_ACEOF 9318 # Determine the default libpath from the value encoded in an 9319 # empty executable. 9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8577 9321 /* end confdefs.h. */ 8578 9322 … … 8585 9329 } 8586 9330 _ACEOF 8587 rm -f conftest.$ac_objext conftest$ac_exeext 8588 if { (ac_try="$ac_link" 8589 case "(($ac_try" in 8590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8591 *) ac_try_echo=$ac_try;; 8592 esac 8593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 8594 $as_echo "$ac_try_echo") >&5 8595 (eval "$ac_link") 2>conftest.er1 8596 ac_status=$? 8597 grep -v '^ *+' conftest.er1 >conftest.err 8598 rm -f conftest.er1 8599 cat conftest.err >&5 8600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 8601 (exit $ac_status); } && { 8602 test -z "$ac_c_werror_flag" || 8603 test ! -s conftest.err 8604 } && test -s conftest$ac_exeext && { 8605 test "$cross_compiling" = yes || 8606 $as_test_x conftest$ac_exeext 8607 }; then 9331 if ac_fn_c_try_link "$LINENO"; then : 8608 9332 8609 9333 lt_aix_libpath_sed=' … … 8619 9343 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8620 9344 fi 8621 else 8622 $as_echo "$as_me: failed program was:" >&5 8623 sed 's/^/| /' conftest.$ac_ext >&5 8624 8625 8626 fi 8627 8628 rm -rf conftest.dSYM 8629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8630 conftest$ac_exeext conftest.$ac_ext 9345 fi 9346 rm -f core conftest.err conftest.$ac_objext \ 9347 conftest$ac_exeext conftest.$ac_ext 8631 9348 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8632 9349 … … 8646 9363 8647 9364 amigaos*) 8648 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)' 8649 hardcode_libdir_flag_spec='-L$libdir' 8650 hardcode_minus_L=yes 8651 # see comment about different semantics on the GNU ld section 8652 ld_shlibs=no 9365 case $host_cpu in 9366 powerpc) 9367 # see comment about AmigaOS4 .so support 9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9369 archive_expsym_cmds='' 9370 ;; 9371 m68k) 9372 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)' 9373 hardcode_libdir_flag_spec='-L$libdir' 9374 hardcode_minus_L=yes 9375 ;; 9376 esac 8653 9377 ;; 8654 9378 … … 8657 9381 ;; 8658 9382 8659 cygwin* | mingw* | pw32* )9383 cygwin* | mingw* | pw32* | cegcc*) 8660 9384 # When not using gcc, we currently assume that we are using 8661 9385 # Microsoft Visual C++. … … 8669 9393 shrext_cmds=".dll" 8670 9394 # FIXME: Setting linknames here is a bad hack. 8671 archive_cmds='$CC -o $lib $libobjs $compiler_flags ` echo "$deplibs" | $SED-e '\''s/ -lc$//'\''` -link -dll~linknames='9395 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 8672 9396 # The linker will automatically build a .lib file if we build a DLL. 8673 old_archive_ From_new_cmds='true'9397 old_archive_from_new_cmds='true' 8674 9398 # FIXME: Should let the user specify the lib program. 8675 9399 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' … … 8679 9403 8680 9404 darwin* | rhapsody*) 8681 case $host_os in 8682 rhapsody* | darwin1.[012]) 8683 allow_undefined_flag='${wl}-undefined ${wl}suppress' 8684 ;; 8685 *) # Darwin 1.3 on 8686 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8687 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8688 else 8689 case ${MACOSX_DEPLOYMENT_TARGET} in 8690 10.[012]) 8691 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 8692 ;; 8693 10.*) 8694 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 8695 ;; 8696 esac 8697 fi 8698 ;; 8699 esac 8700 archive_cmds_need_lc=no 8701 hardcode_direct=no 8702 hardcode_automatic=yes 8703 hardcode_shlibpath_var=unsupported 8704 whole_archive_flag_spec='' 8705 link_all_deplibs=yes 8706 if test "$GCC" = yes ; then 8707 output_verbose_link_cmd='echo' 8708 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8709 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8710 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}" 8711 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}" 8712 else 8713 case $cc_basename in 8714 xlc*) 8715 output_verbose_link_cmd='echo' 8716 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 8717 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8718 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 8719 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8720 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8721 ;; 8722 *) 8723 ld_shlibs=no 8724 ;; 8725 esac 8726 fi 9405 9406 9407 archive_cmds_need_lc=no 9408 hardcode_direct=no 9409 hardcode_automatic=yes 9410 hardcode_shlibpath_var=unsupported 9411 whole_archive_flag_spec='' 9412 link_all_deplibs=yes 9413 allow_undefined_flag="$_lt_dar_allow_undefined" 9414 case $cc_basename in 9415 ifort*) _lt_dar_can_shared=yes ;; 9416 *) _lt_dar_can_shared=$GCC ;; 9417 esac 9418 if test "$_lt_dar_can_shared" = "yes"; then 9419 output_verbose_link_cmd=echo 9420 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9421 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9422 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}" 9423 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}" 9424 9425 else 9426 ld_shlibs=no 9427 fi 9428 8727 9429 ;; 8728 9430 … … 8766 9468 hpux9*) 8767 9469 if test "$GCC" = yes; then 8768 archive_cmds='$ rm$output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'9470 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8769 9471 else 8770 archive_cmds='$ rm$output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'9472 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8771 9473 fi 8772 9474 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' … … 8788 9490 if test "$with_gnu_ld" = no; then 8789 9491 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9492 hardcode_libdir_flag_spec_ld='+b $libdir' 8790 9493 hardcode_libdir_separator=: 8791 8792 9494 hardcode_direct=yes 9495 hardcode_direct_absolute=yes 8793 9496 export_dynamic_flag_spec='${wl}-E' 8794 8795 9497 # hardcode_minus_L: Not really in the search PATH, 8796 9498 # but as the default location of the library. … … 8806 9508 ;; 8807 9509 ia64*) 8808 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'9510 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8809 9511 ;; 8810 9512 *) … … 8831 9533 case $host_cpu in 8832 9534 hppa*64*|ia64*) 8833 hardcode_libdir_flag_spec_ld='+b $libdir'8834 9535 hardcode_direct=no 8835 9536 hardcode_shlibpath_var=no … … 8837 9538 *) 8838 9539 hardcode_direct=yes 9540 hardcode_direct_absolute=yes 8839 9541 export_dynamic_flag_spec='${wl}-E' 8840 9542 … … 8849 9551 irix5* | irix6* | nonstopux*) 8850 9552 if test "$GCC" = yes; then 8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9554 # Try to use the -exported_symbol ld option, if it does not 9555 # work, assume that -exports_file does not work either and 9556 # implicitly export all symbols. 9557 save_LDFLAGS="$LDFLAGS" 9558 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9560 /* end confdefs.h. */ 9561 int foo(void) {} 9562 _ACEOF 9563 if ac_fn_c_try_link "$LINENO"; then : 9564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9565 9566 fi 9567 rm -f core conftest.err conftest.$ac_objext \ 9568 conftest$ac_exeext conftest.$ac_ext 9569 LDFLAGS="$save_LDFLAGS" 8852 9570 else 8853 archive_cmds='$ LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'8854 hardcode_libdir_flag_spec_ld='-rpath $libdir'9571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 8855 9573 fi 9574 archive_cmds_need_lc='no' 8856 9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8857 9576 hardcode_libdir_separator=: 9577 inherit_rpath=yes 8858 9578 link_all_deplibs=yes 8859 9579 ;; 8860 9580 8861 9581 netbsd*) 8862 if echo __ELF__ | $CC -E - | grep__ELF__ >/dev/null; then9582 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8863 9583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8864 9584 else … … 8878 9598 ;; 8879 9599 9600 *nto* | *qnx*) 9601 ;; 9602 8880 9603 openbsd*) 8881 9604 if test -f /usr/libexec/ld.so; then 8882 9605 hardcode_direct=yes 8883 9606 hardcode_shlibpath_var=no 8884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9607 hardcode_direct_absolute=yes 9608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8885 9609 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8886 9610 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' … … 8898 9622 ;; 8899 9623 esac 8900 fi9624 fi 8901 9625 else 8902 9626 ld_shlibs=no … … 8908 9632 hardcode_minus_L=yes 8909 9633 allow_undefined_flag=unsupported 8910 archive_cmds='$ echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echoEXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'8911 old_archive_ From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'9634 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9635 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8912 9636 ;; 8913 9637 … … 8915 9639 if test "$GCC" = yes; then 8916 9640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8917 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'9641 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8918 9642 else 8919 9643 allow_undefined_flag=' -expect_unresolved \*' 8920 archive_cmds='$ LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'9644 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 8921 9645 fi 9646 archive_cmds_need_lc='no' 8922 9647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8923 9648 hardcode_libdir_separator=: … … 8927 9652 if test "$GCC" = yes; then 8928 9653 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8929 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'9654 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8930 9655 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8931 9656 else 8932 9657 allow_undefined_flag=' -expect_unresolved \*' 8933 archive_cmds='$ LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'8934 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo"-hidden">> $lib.exp~8935 $ LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm$lib.exp'9658 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 9659 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~ 9660 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 8936 9661 8937 9662 # Both c and cxx compiler support -rpath directly 8938 9663 hardcode_libdir_flag_spec='-rpath $libdir' 8939 9664 fi 9665 archive_cmds_need_lc='no' 8940 9666 hardcode_libdir_separator=: 8941 9667 ;; 8942 9668 8943 9669 solaris*) 8944 no_undefined_flag=' -z text'9670 no_undefined_flag=' -z defs' 8945 9671 if test "$GCC" = yes; then 8946 9672 wlarc='${wl}' 8947 archive_cmds='$CC -shared ${wl}- h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'8948 archive_expsym_cmds=' $echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~8949 $CC -shared ${wl}- M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm$lib.exp'9673 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9674 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9675 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8950 9676 else 8951 wlarc='' 8952 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8953 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 8954 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 9677 case `$CC -V 2>&1` in 9678 *"Compilers 5.0"*) 9679 wlarc='' 9680 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9682 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9683 ;; 9684 *) 9685 wlarc='${wl}' 9686 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9688 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9689 ;; 9690 esac 8955 9691 fi 8956 9692 hardcode_libdir_flag_spec='-R$libdir' … … 8962 9698 # but understands `-z linker_flag'. GCC discards it without `$wl', 8963 9699 # but is careful enough not to reorder. 8964 # Supported since Solaris 2.6 (maybe 2.5.1?)9700 # Supported since Solaris 2.6 (maybe 2.5.1?) 8965 9701 if test "$GCC" = yes; then 8966 9702 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' … … 9051 9787 archive_cmds_need_lc=no 9052 9788 hardcode_shlibpath_var=no 9053 hardcode_libdir_flag_spec=' `test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'9789 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9054 9790 hardcode_libdir_separator=':' 9055 9791 link_all_deplibs=yes … … 9058 9794 9059 9795 if test "$GCC" = yes; then 9060 archive_cmds='$CC -shared ${wl}-h, \${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'9061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h, \${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'9796 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9797 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9062 9798 else 9063 archive_cmds='$CC -G ${wl}-h, \${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'9064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h, \${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'9799 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9800 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9065 9801 fi 9066 9802 ;; … … 9076 9812 ;; 9077 9813 esac 9814 9815 if test x$host_vendor = xsni; then 9816 case $host in 9817 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9818 export_dynamic_flag_spec='${wl}-Blargedynsym' 9819 ;; 9820 esac 9821 fi 9078 9822 fi 9079 9823 9080 { $as_echo "$as_me:$ LINENO: result: $ld_shlibs" >&59824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9081 9825 $as_echo "$ld_shlibs" >&6; } 9082 9826 test "$ld_shlibs" = no && can_build_shared=no 9827 9828 with_gnu_ld=$with_gnu_ld 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9083 9843 9084 9844 # … … 9099 9859 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9100 9860 # to ld, don't add -lc before -lgcc. 9101 { $as_echo "$as_me:$ LINENO: checking whether -lc should be explicitly linked in" >&59861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9102 9862 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9103 $ rmconftest*9863 $RM conftest* 9104 9864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9105 9865 9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"")>&59866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9107 9867 (eval $ac_compile) 2>&5 9108 9868 ac_status=$? 9109 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&59110 (exit $ac_status); } 2>conftest.err; then9869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9870 test $ac_status = 0; } 2>conftest.err; then 9111 9871 soname=conftest 9112 9872 lib=conftest … … 9122 9882 lt_save_allow_undefined_flag=$allow_undefined_flag 9123 9883 allow_undefined_flag= 9124 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"")>&59125 (eval $archive_cmds 2\>\&1 \| grep\" -lc \" \>/dev/null 2\>\&1) 2>&59884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9885 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9126 9886 ac_status=$? 9127 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&59128 (exit $ac_status); }9887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9888 test $ac_status = 0; } 9129 9889 then 9130 9890 archive_cmds_need_lc=no … … 9136 9896 cat conftest.err 1>&5 9137 9897 fi 9138 $ rmconftest*9139 { $as_echo "$as_me:$ LINENO: result: $archive_cmds_need_lc" >&59898 $RM conftest* 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 9140 9900 $as_echo "$archive_cmds_need_lc" >&6; } 9141 9901 ;; … … 9145 9905 esac 9146 9906 9147 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9148 10064 $as_echo_n "checking dynamic linker characteristics... " >&6; } 9149 library_names_spec=9150 libname_spec='lib$name'9151 soname_spec=9152 shrext_cmds=".so"9153 postinstall_cmds=9154 postuninstall_cmds=9155 finish_cmds=9156 finish_eval=9157 shlibpath_var=9158 shlibpath_overrides_runpath=unknown9159 version_type=none9160 dynamic_linker="$host_os ld.so"9161 sys_lib_dlsearch_path_spec="/lib /usr/lib"9162 10065 9163 10066 if test "$GCC" = yes; then … … 9167 10070 esac 9168 10071 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 9169 if echo "$lt_search_path_spec" | grep';' >/dev/null ; then10072 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 9170 10073 # if the path contains ";" then we assume it to be the separator 9171 10074 # otherwise default to the standard path separator (i.e. ":") - it is 9172 10075 # assumed that no part of a normal pathname contains ";" but that should 9173 10076 # okay in the real world where ";" in dirpaths is itself problematic. 9174 lt_search_path_spec=` echo"$lt_search_path_spec" | $SED -e 's/;/ /g'`10077 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 9175 10078 else 9176 lt_search_path_spec=` echo"$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10079 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9177 10080 fi 9178 10081 # Ok, now we have the path, separated by spaces, we can step through it … … 9188 10091 fi 9189 10092 done 9190 lt_search_path_spec=` echo$lt_tmp_lt_search_path_spec | awk '10093 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 9191 10094 BEGIN {RS=" "; FS="/|\n";} { 9192 10095 lt_foo=""; … … 9208 10111 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9209 10112 }'` 9210 sys_lib_search_path_spec=` echo$lt_search_path_spec`10113 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 9211 10114 else 9212 10115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9213 10116 fi 10117 library_names_spec= 10118 libname_spec='lib$name' 10119 soname_spec= 10120 shrext_cmds=".so" 10121 postinstall_cmds= 10122 postuninstall_cmds= 10123 finish_cmds= 10124 finish_eval= 10125 shlibpath_var= 10126 shlibpath_overrides_runpath=unknown 10127 version_type=none 10128 dynamic_linker="$host_os ld.so" 10129 sys_lib_dlsearch_path_spec="/lib /usr/lib" 9214 10130 need_lib_prefix=unknown 9215 10131 hardcode_into_libs=no … … 9248 10164 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9249 10165 echo ' yes ' 9250 echo '#endif'; } | ${CC} -E - | grepyes > /dev/null; then10166 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9251 10167 : 9252 10168 else … … 9274 10190 9275 10191 amigaos*) 9276 library_names_spec='$libname.ixlibrary $libname.a' 9277 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9278 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10192 case $host_cpu in 10193 powerpc) 10194 # Since July 2007 AmigaOS4 officially supports .so libraries. 10195 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10197 ;; 10198 m68k) 10199 library_names_spec='$libname.ixlibrary $libname.a' 10200 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10201 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 10202 ;; 10203 esac 9279 10204 ;; 9280 10205 … … 9299 10224 ;; 9300 10225 9301 cygwin* | mingw* | pw32* )10226 cygwin* | mingw* | pw32* | cegcc*) 9302 10227 version_type=windows 9303 10228 shrext_cmds=".dll" … … 9306 10231 9307 10232 case $GCC,$host_os in 9308 yes,cygwin* | yes,mingw* | yes,pw32* )10233 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9309 10234 library_names_spec='$libname.dll.a' 9310 10235 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9311 10236 postinstall_cmds='base_file=`basename \${file}`~ 9312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~10237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9313 10238 dldir=$destdir/`dirname \$dlpath`~ 9314 10239 test -d \$dldir || mkdir -p \$dldir~ 9315 10240 $install_prog $dir/$dlname \$dldir/$dlname~ 9316 chmod a+x \$dldir/$dlname' 10241 chmod a+x \$dldir/$dlname~ 10242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10244 fi' 9317 10245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9318 10246 dlpath=$dir/\$dldll~ 9319 $ rm\$dlpath'10247 $RM \$dlpath' 9320 10248 shlibpath_overrides_runpath=yes 9321 10249 … … 9326 10254 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 9327 10255 ;; 9328 mingw* )10256 mingw* | cegcc*) 9329 10257 # MinGW DLLs use traditional 'lib' prefix 9330 10258 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9331 sys_lib_search_path_spec=`$CC -print-search-dirs | grep"^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`9332 if echo "$sys_lib_search_path_spec" | grep';[c-zC-Z]:/' >/dev/null; then10259 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10260 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9333 10261 # It is most probably a Windows format PATH printed by 9334 10262 # mingw gcc, but we are running on Cygwin. Gcc prints its search … … 9337 10265 # especially as we might pass files found there to a mingw objdump, 9338 10266 # which wouldn't understand a cygwinified path. Ahh. 9339 sys_lib_search_path_spec=` echo"$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`10267 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9340 10268 else 9341 sys_lib_search_path_spec=` echo"$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9342 10270 fi 9343 10271 ;; … … 9363 10291 need_lib_prefix=no 9364 10292 need_version=no 9365 library_names_spec='${libname}${release}${ versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'10293 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9366 10294 soname_spec='${libname}${release}${major}$shared_ext' 9367 10295 shlibpath_overrides_runpath=yes … … 9462 10390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9463 10391 ;; 9464 hppa*64*)9465 shrext_cmds='.sl'9466 hardcode_into_libs=yes9467 dynamic_linker="$host_os dld.sl"9468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH9469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.9470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'9471 soname_spec='${libname}${release}${shared_ext}$major'9472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"9473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec9474 ;;9475 *)10392 hppa*64*) 10393 shrext_cmds='.sl' 10394 hardcode_into_libs=yes 10395 dynamic_linker="$host_os dld.sl" 10396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10399 soname_spec='${libname}${release}${shared_ext}$major' 10400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10402 ;; 10403 *) 9476 10404 shrext_cmds='.sl' 9477 10405 dynamic_linker="$host_os dld.sl" … … 9550 10478 shlibpath_var=LD_LIBRARY_PATH 9551 10479 shlibpath_overrides_runpath=no 10480 # Some binutils ld are patched to set DT_RUNPATH 10481 save_LDFLAGS=$LDFLAGS 10482 save_libdir=$libdir 10483 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10484 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10486 /* end confdefs.h. */ 10487 10488 int 10489 main () 10490 { 10491 10492 ; 10493 return 0; 10494 } 10495 _ACEOF 10496 if ac_fn_c_try_link "$LINENO"; then : 10497 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10498 shlibpath_overrides_runpath=yes 10499 fi 10500 fi 10501 rm -f core conftest.err conftest.$ac_objext \ 10502 conftest$ac_exeext conftest.$ac_ext 10503 LDFLAGS=$save_LDFLAGS 10504 libdir=$save_libdir 10505 9552 10506 # This implies no fast_install, which is unacceptable. 9553 10507 # Some rework will be needed to allow for fast_install … … 9555 10509 hardcode_into_libs=yes 9556 10510 10511 # find out which ABI we are using 10512 libsuff= 10513 case "$host_cpu" in 10514 x86_64*|s390x*|powerpc64*) 10515 echo '#line 10515 "configure"' > conftest.$ac_ext 10516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10517 (eval $ac_compile) 2>&5 10518 ac_status=$? 10519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10520 test $ac_status = 0; }; then 10521 case `/usr/bin/file conftest.$ac_objext` in 10522 *64-bit*) 10523 libsuff=64 10524 ;; 10525 esac 10526 fi 10527 rm -rf conftest* 10528 ;; 10529 esac 10530 10531 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 10532 9557 10533 # Append ld.so.conf contents to the search path 9558 10534 if test -f /etc/ld.so.conf; then 9559 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`9560 sys_lib_dlsearch_path_spec=" /lib /usr/lib$lt_ld_extra"10535 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 10536 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9561 10537 fi 9562 10538 … … 9574 10550 need_lib_prefix=no 9575 10551 need_version=no 9576 if echo __ELF__ | $CC -E - | grep__ELF__ >/dev/null; then10552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9577 10553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9578 10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 9595 10571 ;; 9596 10572 9597 nto-qnx*)9598 version_type= linux10573 *nto* | *qnx*) 10574 version_type=qnx 9599 10575 need_lib_prefix=no 9600 10576 need_version=no … … 9602 10578 soname_spec='${libname}${release}${shared_ext}$major' 9603 10579 shlibpath_var=LD_LIBRARY_PATH 9604 shlibpath_overrides_runpath=yes 10580 shlibpath_overrides_runpath=no 10581 hardcode_into_libs=yes 10582 dynamic_linker='ldqnx.so' 9605 10583 ;; 9606 10584 … … 9611 10589 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9612 10590 case $host_os in 9613 openbsd3.3 | openbsd3.3.*) need_version=yes ;;9614 *) need_version=no ;;10591 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10592 *) need_version=no ;; 9615 10593 esac 9616 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9617 10595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9618 10596 shlibpath_var=LD_LIBRARY_PATH 9619 if test -z "`echo __ELF__ | $CC -E - | grep__ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then10597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9620 10598 case $host_os in 9621 10599 openbsd2.[89] | openbsd2.[89].*) … … 9689 10667 shlibpath_overrides_runpath=no 9690 10668 need_lib_prefix=no 9691 export_dynamic_flag_spec='${wl}-Blargedynsym'9692 10669 runpath_var=LD_RUN_PATH 9693 10670 ;; … … 9720 10697 soname_spec='${libname}${release}${shared_ext}$major' 9721 10698 shlibpath_var=LD_LIBRARY_PATH 10699 shlibpath_overrides_runpath=yes 9722 10700 hardcode_into_libs=yes 9723 10701 if test "$with_gnu_ld" = yes; then 9724 10702 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9725 shlibpath_overrides_runpath=no9726 10703 else 9727 10704 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9728 shlibpath_overrides_runpath=yes9729 10705 case $host_os in 9730 10706 sco3.2v5*) … … 9736 10712 ;; 9737 10713 10714 tpf*) 10715 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10716 version_type=linux 10717 need_lib_prefix=no 10718 need_version=no 10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10720 shlibpath_var=LD_LIBRARY_PATH 10721 shlibpath_overrides_runpath=no 10722 hardcode_into_libs=yes 10723 ;; 10724 9738 10725 uts4*) 9739 10726 version_type=linux … … 9747 10734 ;; 9748 10735 esac 9749 { $as_echo "$as_me:$ LINENO: result: $dynamic_linker" >&510736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9750 10737 $as_echo "$dynamic_linker" >&6; } 9751 10738 test "$dynamic_linker" = no && can_build_shared=no 9752 9753 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then9754 $as_echo_n "(cached) " >&69755 else9756 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"9757 fi9758 9759 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"9760 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then9761 $as_echo_n "(cached) " >&69762 else9763 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"9764 fi9765 9766 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"9767 10739 9768 10740 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" … … 9771 10743 fi 9772 10744 9773 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 10745 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10746 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10747 fi 10748 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10749 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10750 fi 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 9774 10839 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 9775 10840 hardcode_action= 9776 if test -n "$hardcode_libdir_flag_spec" || \9777 test -n "$runpath_var" || \10841 if test -n "$hardcode_libdir_flag_spec" || 10842 test -n "$runpath_var" || 9778 10843 test "X$hardcode_automatic" = "Xyes" ; then 9779 10844 9780 # We can hardcode non-exist ant directories.10845 # We can hardcode non-existent directories. 9781 10846 if test "$hardcode_direct" != no && 9782 10847 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9783 10848 # have to relink, otherwise we might link with an installed library 9784 10849 # when we should be linking with a yet-to-be-installed one 9785 ## test "$_LT_ AC_TAGVAR(hardcode_shlibpath_var, )" != no &&10850 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9786 10851 test "$hardcode_minus_L" != no; then 9787 10852 # Linking always hardcodes the temporary library directory. … … 9796 10861 hardcode_action=unsupported 9797 10862 fi 9798 { $as_echo "$as_me:$ LINENO: result: $hardcode_action" >&510863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 9799 10864 $as_echo "$hardcode_action" >&6; } 9800 10865 9801 if test "$hardcode_action" = relink; then 10866 if test "$hardcode_action" = relink || 10867 test "$inherit_rpath" = yes; then 9802 10868 # Fast installation is not supported 9803 10869 enable_fast_install=no … … 9808 10874 fi 9809 10875 9810 striplib= 9811 old_striplib= 9812 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9813 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 9814 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 9815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9816 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9817 { $as_echo "$as_me:$LINENO: result: yes" >&5 9818 $as_echo "yes" >&6; } 9819 else 9820 # FIXME - insert some real tests, host_os isn't really good enough 9821 case $host_os in 9822 darwin*) 9823 if test -n "$STRIP" ; then 9824 striplib="$STRIP -x" 9825 old_striplib="$STRIP -S" 9826 { $as_echo "$as_me:$LINENO: result: yes" >&5 9827 $as_echo "yes" >&6; } 9828 else 9829 { $as_echo "$as_me:$LINENO: result: no" >&5 9830 $as_echo "no" >&6; } 9831 fi 9832 ;; 9833 *) 9834 { $as_echo "$as_me:$LINENO: result: no" >&5 9835 $as_echo "no" >&6; } 9836 ;; 9837 esac 9838 fi 9839 9840 if test "x$enable_dlopen" != xyes; then 10876 10877 10878 10879 10880 10881 if test "x$enable_dlopen" != xyes; then 9841 10882 enable_dlopen=unknown 9842 10883 enable_dlopen_self=unknown … … 9853 10894 ;; 9854 10895 9855 mingw* | pw32* )10896 mingw* | pw32* | cegcc*) 9856 10897 lt_cv_dlopen="LoadLibrary" 9857 10898 lt_cv_dlopen_libs= 9858 ;;10899 ;; 9859 10900 9860 10901 cygwin*) 9861 10902 lt_cv_dlopen="dlopen" 9862 10903 lt_cv_dlopen_libs= 9863 ;;10904 ;; 9864 10905 9865 10906 darwin*) 9866 10907 # if libdl is installed we need to link against it 9867 { $as_echo "$as_me:$ LINENO: checking for dlopen in -ldl" >&510908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9868 10909 $as_echo_n "checking for dlopen in -ldl... " >&6; } 9869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 10910 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 9870 10911 $as_echo_n "(cached) " >&6 9871 10912 else 9872 10913 ac_check_lib_save_LIBS=$LIBS 9873 10914 LIBS="-ldl $LIBS" 9874 cat >conftest.$ac_ext <<_ACEOF 9875 /* confdefs.h. */ 9876 _ACEOF 9877 cat confdefs.h >>conftest.$ac_ext 9878 cat >>conftest.$ac_ext <<_ACEOF 10915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9879 10916 /* end confdefs.h. */ 9880 10917 … … 9894 10931 } 9895 10932 _ACEOF 9896 rm -f conftest.$ac_objext conftest$ac_exeext 9897 if { (ac_try="$ac_link" 9898 case "(($ac_try" in 9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9900 *) ac_try_echo=$ac_try;; 9901 esac 9902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 9903 $as_echo "$ac_try_echo") >&5 9904 (eval "$ac_link") 2>conftest.er1 9905 ac_status=$? 9906 grep -v '^ *+' conftest.er1 >conftest.err 9907 rm -f conftest.er1 9908 cat conftest.err >&5 9909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 9910 (exit $ac_status); } && { 9911 test -z "$ac_c_werror_flag" || 9912 test ! -s conftest.err 9913 } && test -s conftest$ac_exeext && { 9914 test "$cross_compiling" = yes || 9915 $as_test_x conftest$ac_exeext 9916 }; then 10933 if ac_fn_c_try_link "$LINENO"; then : 9917 10934 ac_cv_lib_dl_dlopen=yes 9918 10935 else 9919 $as_echo "$as_me: failed program was:" >&5 9920 sed 's/^/| /' conftest.$ac_ext >&5 9921 9922 ac_cv_lib_dl_dlopen=no 9923 fi 9924 9925 rm -rf conftest.dSYM 9926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 9927 conftest$ac_exeext conftest.$ac_ext 10936 ac_cv_lib_dl_dlopen=no 10937 fi 10938 rm -f core conftest.err conftest.$ac_objext \ 10939 conftest$ac_exeext conftest.$ac_ext 9928 10940 LIBS=$ac_check_lib_save_LIBS 9929 10941 fi 9930 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_dl_dlopen" >&510942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9931 10943 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9932 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 10944 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 9933 10945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9934 10946 else … … 9940 10952 fi 9941 10953 9942 ;;10954 ;; 9943 10955 9944 10956 *) 9945 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5 9946 $as_echo_n "checking for shl_load... " >&6; } 9947 if test "${ac_cv_func_shl_load+set}" = set; then 9948 $as_echo_n "(cached) " >&6 9949 else 9950 cat >conftest.$ac_ext <<_ACEOF 9951 /* confdefs.h. */ 9952 _ACEOF 9953 cat confdefs.h >>conftest.$ac_ext 9954 cat >>conftest.$ac_ext <<_ACEOF 9955 /* end confdefs.h. */ 9956 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9958 #define shl_load innocuous_shl_load 9959 9960 /* System header to define __stub macros and hopefully few prototypes, 9961 which can conflict with char shl_load (); below. 9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9963 <limits.h> exists even on freestanding compilers. */ 9964 9965 #ifdef __STDC__ 9966 # include <limits.h> 9967 #else 9968 # include <assert.h> 9969 #endif 9970 9971 #undef shl_load 9972 9973 /* Override any GCC internal prototype to avoid an error. 9974 Use char because int might match the return type of a GCC 9975 builtin and then its argument prototype would still apply. */ 9976 #ifdef __cplusplus 9977 extern "C" 9978 #endif 9979 char shl_load (); 9980 /* The GNU C library defines this for functions which it implements 9981 to always fail with ENOSYS. Some functions are actually named 9982 something starting with __ and the normal name is an alias. */ 9983 #if defined __stub_shl_load || defined __stub___shl_load 9984 choke me 9985 #endif 9986 9987 int 9988 main () 9989 { 9990 return shl_load (); 9991 ; 9992 return 0; 9993 } 9994 _ACEOF 9995 rm -f conftest.$ac_objext conftest$ac_exeext 9996 if { (ac_try="$ac_link" 9997 case "(($ac_try" in 9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9999 *) ac_try_echo=$ac_try;; 10000 esac 10001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10002 $as_echo "$ac_try_echo") >&5 10003 (eval "$ac_link") 2>conftest.er1 10004 ac_status=$? 10005 grep -v '^ *+' conftest.er1 >conftest.err 10006 rm -f conftest.er1 10007 cat conftest.err >&5 10008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10009 (exit $ac_status); } && { 10010 test -z "$ac_c_werror_flag" || 10011 test ! -s conftest.err 10012 } && test -s conftest$ac_exeext && { 10013 test "$cross_compiling" = yes || 10014 $as_test_x conftest$ac_exeext 10015 }; then 10016 ac_cv_func_shl_load=yes 10017 else 10018 $as_echo "$as_me: failed program was:" >&5 10019 sed 's/^/| /' conftest.$ac_ext >&5 10020 10021 ac_cv_func_shl_load=no 10022 fi 10023 10024 rm -rf conftest.dSYM 10025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10026 conftest$ac_exeext conftest.$ac_ext 10027 fi 10028 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 10029 $as_echo "$ac_cv_func_shl_load" >&6; } 10030 if test "x$ac_cv_func_shl_load" = x""yes; then 10957 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10958 if test "x$ac_cv_func_shl_load" = x""yes; then : 10031 10959 lt_cv_dlopen="shl_load" 10032 10960 else 10033 { $as_echo "$as_me:$ LINENO: checking for shl_load in -ldld" >&510961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10034 10962 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 10963 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10036 10964 $as_echo_n "(cached) " >&6 10037 10965 else 10038 10966 ac_check_lib_save_LIBS=$LIBS 10039 10967 LIBS="-ldld $LIBS" 10040 cat >conftest.$ac_ext <<_ACEOF 10041 /* confdefs.h. */ 10042 _ACEOF 10043 cat confdefs.h >>conftest.$ac_ext 10044 cat >>conftest.$ac_ext <<_ACEOF 10968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10045 10969 /* end confdefs.h. */ 10046 10970 … … 10060 10984 } 10061 10985 _ACEOF 10062 rm -f conftest.$ac_objext conftest$ac_exeext 10063 if { (ac_try="$ac_link" 10064 case "(($ac_try" in 10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10066 *) ac_try_echo=$ac_try;; 10067 esac 10068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10069 $as_echo "$ac_try_echo") >&5 10070 (eval "$ac_link") 2>conftest.er1 10071 ac_status=$? 10072 grep -v '^ *+' conftest.er1 >conftest.err 10073 rm -f conftest.er1 10074 cat conftest.err >&5 10075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10076 (exit $ac_status); } && { 10077 test -z "$ac_c_werror_flag" || 10078 test ! -s conftest.err 10079 } && test -s conftest$ac_exeext && { 10080 test "$cross_compiling" = yes || 10081 $as_test_x conftest$ac_exeext 10082 }; then 10986 if ac_fn_c_try_link "$LINENO"; then : 10083 10987 ac_cv_lib_dld_shl_load=yes 10084 10988 else 10085 $as_echo "$as_me: failed program was:" >&5 10086 sed 's/^/| /' conftest.$ac_ext >&5 10087 10088 ac_cv_lib_dld_shl_load=no 10089 fi 10090 10091 rm -rf conftest.dSYM 10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10093 conftest$ac_exeext conftest.$ac_ext 10989 ac_cv_lib_dld_shl_load=no 10990 fi 10991 rm -f core conftest.err conftest.$ac_objext \ 10992 conftest$ac_exeext conftest.$ac_ext 10094 10993 LIBS=$ac_check_lib_save_LIBS 10095 10994 fi 10096 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_dld_shl_load" >&510995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10097 10996 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10098 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then 10997 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10099 10998 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10100 10999 else 10101 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5 10102 $as_echo_n "checking for dlopen... " >&6; } 10103 if test "${ac_cv_func_dlopen+set}" = set; then 10104 $as_echo_n "(cached) " >&6 10105 else 10106 cat >conftest.$ac_ext <<_ACEOF 10107 /* confdefs.h. */ 10108 _ACEOF 10109 cat confdefs.h >>conftest.$ac_ext 10110 cat >>conftest.$ac_ext <<_ACEOF 10111 /* end confdefs.h. */ 10112 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 10113 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 10114 #define dlopen innocuous_dlopen 10115 10116 /* System header to define __stub macros and hopefully few prototypes, 10117 which can conflict with char dlopen (); below. 10118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10119 <limits.h> exists even on freestanding compilers. */ 10120 10121 #ifdef __STDC__ 10122 # include <limits.h> 10123 #else 10124 # include <assert.h> 10125 #endif 10126 10127 #undef dlopen 10128 10129 /* Override any GCC internal prototype to avoid an error. 10130 Use char because int might match the return type of a GCC 10131 builtin and then its argument prototype would still apply. */ 10132 #ifdef __cplusplus 10133 extern "C" 10134 #endif 10135 char dlopen (); 10136 /* The GNU C library defines this for functions which it implements 10137 to always fail with ENOSYS. Some functions are actually named 10138 something starting with __ and the normal name is an alias. */ 10139 #if defined __stub_dlopen || defined __stub___dlopen 10140 choke me 10141 #endif 10142 10143 int 10144 main () 10145 { 10146 return dlopen (); 10147 ; 10148 return 0; 10149 } 10150 _ACEOF 10151 rm -f conftest.$ac_objext conftest$ac_exeext 10152 if { (ac_try="$ac_link" 10153 case "(($ac_try" in 10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10155 *) ac_try_echo=$ac_try;; 10156 esac 10157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10158 $as_echo "$ac_try_echo") >&5 10159 (eval "$ac_link") 2>conftest.er1 10160 ac_status=$? 10161 grep -v '^ *+' conftest.er1 >conftest.err 10162 rm -f conftest.er1 10163 cat conftest.err >&5 10164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10165 (exit $ac_status); } && { 10166 test -z "$ac_c_werror_flag" || 10167 test ! -s conftest.err 10168 } && test -s conftest$ac_exeext && { 10169 test "$cross_compiling" = yes || 10170 $as_test_x conftest$ac_exeext 10171 }; then 10172 ac_cv_func_dlopen=yes 10173 else 10174 $as_echo "$as_me: failed program was:" >&5 10175 sed 's/^/| /' conftest.$ac_ext >&5 10176 10177 ac_cv_func_dlopen=no 10178 fi 10179 10180 rm -rf conftest.dSYM 10181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10182 conftest$ac_exeext conftest.$ac_ext 10183 fi 10184 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 10185 $as_echo "$ac_cv_func_dlopen" >&6; } 10186 if test "x$ac_cv_func_dlopen" = x""yes; then 11000 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11001 if test "x$ac_cv_func_dlopen" = x""yes; then : 10187 11002 lt_cv_dlopen="dlopen" 10188 11003 else 10189 { $as_echo "$as_me:$ LINENO: checking for dlopen in -ldl" >&511004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10190 11005 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11006 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10192 11007 $as_echo_n "(cached) " >&6 10193 11008 else 10194 11009 ac_check_lib_save_LIBS=$LIBS 10195 11010 LIBS="-ldl $LIBS" 10196 cat >conftest.$ac_ext <<_ACEOF 10197 /* confdefs.h. */ 10198 _ACEOF 10199 cat confdefs.h >>conftest.$ac_ext 10200 cat >>conftest.$ac_ext <<_ACEOF 11011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10201 11012 /* end confdefs.h. */ 10202 11013 … … 10216 11027 } 10217 11028 _ACEOF 10218 rm -f conftest.$ac_objext conftest$ac_exeext 10219 if { (ac_try="$ac_link" 10220 case "(($ac_try" in 10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10222 *) ac_try_echo=$ac_try;; 10223 esac 10224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10225 $as_echo "$ac_try_echo") >&5 10226 (eval "$ac_link") 2>conftest.er1 10227 ac_status=$? 10228 grep -v '^ *+' conftest.er1 >conftest.err 10229 rm -f conftest.er1 10230 cat conftest.err >&5 10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10232 (exit $ac_status); } && { 10233 test -z "$ac_c_werror_flag" || 10234 test ! -s conftest.err 10235 } && test -s conftest$ac_exeext && { 10236 test "$cross_compiling" = yes || 10237 $as_test_x conftest$ac_exeext 10238 }; then 11029 if ac_fn_c_try_link "$LINENO"; then : 10239 11030 ac_cv_lib_dl_dlopen=yes 10240 11031 else 10241 $as_echo "$as_me: failed program was:" >&5 10242 sed 's/^/| /' conftest.$ac_ext >&5 10243 10244 ac_cv_lib_dl_dlopen=no 10245 fi 10246 10247 rm -rf conftest.dSYM 10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10249 conftest$ac_exeext conftest.$ac_ext 11032 ac_cv_lib_dl_dlopen=no 11033 fi 11034 rm -f core conftest.err conftest.$ac_objext \ 11035 conftest$ac_exeext conftest.$ac_ext 10250 11036 LIBS=$ac_check_lib_save_LIBS 10251 11037 fi 10252 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_dl_dlopen" >&511038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10253 11039 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10254 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then 11040 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10255 11041 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10256 11042 else 10257 { $as_echo "$as_me:$ LINENO: checking for dlopen in -lsvld" >&511043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10258 11044 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 10259 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11045 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10260 11046 $as_echo_n "(cached) " >&6 10261 11047 else 10262 11048 ac_check_lib_save_LIBS=$LIBS 10263 11049 LIBS="-lsvld $LIBS" 10264 cat >conftest.$ac_ext <<_ACEOF 10265 /* confdefs.h. */ 10266 _ACEOF 10267 cat confdefs.h >>conftest.$ac_ext 10268 cat >>conftest.$ac_ext <<_ACEOF 11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10269 11051 /* end confdefs.h. */ 10270 11052 … … 10284 11066 } 10285 11067 _ACEOF 10286 rm -f conftest.$ac_objext conftest$ac_exeext 10287 if { (ac_try="$ac_link" 10288 case "(($ac_try" in 10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10290 *) ac_try_echo=$ac_try;; 10291 esac 10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10293 $as_echo "$ac_try_echo") >&5 10294 (eval "$ac_link") 2>conftest.er1 10295 ac_status=$? 10296 grep -v '^ *+' conftest.er1 >conftest.err 10297 rm -f conftest.er1 10298 cat conftest.err >&5 10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); } && { 10301 test -z "$ac_c_werror_flag" || 10302 test ! -s conftest.err 10303 } && test -s conftest$ac_exeext && { 10304 test "$cross_compiling" = yes || 10305 $as_test_x conftest$ac_exeext 10306 }; then 11068 if ac_fn_c_try_link "$LINENO"; then : 10307 11069 ac_cv_lib_svld_dlopen=yes 10308 11070 else 10309 $as_echo "$as_me: failed program was:" >&5 10310 sed 's/^/| /' conftest.$ac_ext >&5 10311 10312 ac_cv_lib_svld_dlopen=no 10313 fi 10314 10315 rm -rf conftest.dSYM 10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10317 conftest$ac_exeext conftest.$ac_ext 11071 ac_cv_lib_svld_dlopen=no 11072 fi 11073 rm -f core conftest.err conftest.$ac_objext \ 11074 conftest$ac_exeext conftest.$ac_ext 10318 11075 LIBS=$ac_check_lib_save_LIBS 10319 11076 fi 10320 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_svld_dlopen" >&511077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10321 11078 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10322 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then 11079 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10323 11080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10324 11081 else 10325 { $as_echo "$as_me:$ LINENO: checking for dld_link in -ldld" >&511082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10326 11083 $as_echo_n "checking for dld_link in -ldld... " >&6; } 10327 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11084 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10328 11085 $as_echo_n "(cached) " >&6 10329 11086 else 10330 11087 ac_check_lib_save_LIBS=$LIBS 10331 11088 LIBS="-ldld $LIBS" 10332 cat >conftest.$ac_ext <<_ACEOF 10333 /* confdefs.h. */ 10334 _ACEOF 10335 cat confdefs.h >>conftest.$ac_ext 10336 cat >>conftest.$ac_ext <<_ACEOF 11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10337 11090 /* end confdefs.h. */ 10338 11091 … … 10352 11105 } 10353 11106 _ACEOF 10354 rm -f conftest.$ac_objext conftest$ac_exeext 10355 if { (ac_try="$ac_link" 10356 case "(($ac_try" in 10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10358 *) ac_try_echo=$ac_try;; 10359 esac 10360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 10361 $as_echo "$ac_try_echo") >&5 10362 (eval "$ac_link") 2>conftest.er1 10363 ac_status=$? 10364 grep -v '^ *+' conftest.er1 >conftest.err 10365 rm -f conftest.er1 10366 cat conftest.err >&5 10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 10368 (exit $ac_status); } && { 10369 test -z "$ac_c_werror_flag" || 10370 test ! -s conftest.err 10371 } && test -s conftest$ac_exeext && { 10372 test "$cross_compiling" = yes || 10373 $as_test_x conftest$ac_exeext 10374 }; then 11107 if ac_fn_c_try_link "$LINENO"; then : 10375 11108 ac_cv_lib_dld_dld_link=yes 10376 11109 else 10377 $as_echo "$as_me: failed program was:" >&5 10378 sed 's/^/| /' conftest.$ac_ext >&5 10379 10380 ac_cv_lib_dld_dld_link=no 10381 fi 10382 10383 rm -rf conftest.dSYM 10384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 10385 conftest$ac_exeext conftest.$ac_ext 11110 ac_cv_lib_dld_dld_link=no 11111 fi 11112 rm -f core conftest.err conftest.$ac_objext \ 11113 conftest$ac_exeext conftest.$ac_ext 10386 11114 LIBS=$ac_check_lib_save_LIBS 10387 11115 fi 10388 { $as_echo "$as_me:$ LINENO: result: $ac_cv_lib_dld_dld_link" >&511116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10389 11117 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10390 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then 11118 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10391 11119 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10392 11120 fi … … 10427 11155 LIBS="$lt_cv_dlopen_libs $LIBS" 10428 11156 10429 { $as_echo "$as_me:$ LINENO: checking whether a program can dlopen itself" >&511157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10430 11158 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 10431 if test "${lt_cv_dlopen_self+set}" = set; then 11159 if test "${lt_cv_dlopen_self+set}" = set; then : 10432 11160 $as_echo_n "(cached) " >&6 10433 11161 else … … 10437 11165 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10438 11166 lt_status=$lt_dlunknown 10439 cat > conftest.$ac_ext << EOF10440 #line 1 0440"configure"11167 cat > conftest.$ac_ext <<_LT_EOF 11168 #line 11168 "configure" 10441 11169 #include "confdefs.h" 10442 11170 … … 10479 11207 #endif 10480 11208 10481 #ifdef __cplusplus10482 extern "C" void exit (int);10483 #endif10484 10485 11209 void fnord() { int i=42;} 10486 11210 int main () … … 10498 11222 puts (dlerror ()); 10499 11223 10500 exit (status);11224 return status; 10501 11225 } 10502 EOF10503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"")>&511226 _LT_EOF 11227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10504 11228 (eval $ac_link) 2>&5 10505 11229 ac_status=$? 10506 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&510507 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then11230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11231 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10508 11232 (./conftest; exit; ) >&5 2>/dev/null 10509 11233 lt_status=$? … … 10522 11246 10523 11247 fi 10524 { $as_echo "$as_me:$ LINENO: result: $lt_cv_dlopen_self" >&511248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10525 11249 $as_echo "$lt_cv_dlopen_self" >&6; } 10526 11250 10527 11251 if test "x$lt_cv_dlopen_self" = xyes; then 10528 11252 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10529 { $as_echo "$as_me:$ LINENO: checking whether a statically linked program can dlopen itself" >&511253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10530 11254 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10531 if test "${lt_cv_dlopen_self_static+set}" = set; then 11255 if test "${lt_cv_dlopen_self_static+set}" = set; then : 10532 11256 $as_echo_n "(cached) " >&6 10533 11257 else … … 10537 11261 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10538 11262 lt_status=$lt_dlunknown 10539 cat > conftest.$ac_ext << EOF10540 #line 1 0540"configure"11263 cat > conftest.$ac_ext <<_LT_EOF 11264 #line 11264 "configure" 10541 11265 #include "confdefs.h" 10542 11266 … … 10579 11303 #endif 10580 11304 10581 #ifdef __cplusplus10582 extern "C" void exit (int);10583 #endif10584 10585 11305 void fnord() { int i=42;} 10586 11306 int main () … … 10598 11318 puts (dlerror ()); 10599 11319 10600 exit (status);11320 return status; 10601 11321 } 10602 EOF10603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"")>&511322 _LT_EOF 11323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10604 11324 (eval $ac_link) 2>&5 10605 11325 ac_status=$? 10606 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&510607 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then11326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11327 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10608 11328 (./conftest; exit; ) >&5 2>/dev/null 10609 11329 lt_status=$? … … 10622 11342 10623 11343 fi 10624 { $as_echo "$as_me:$ LINENO: result: $lt_cv_dlopen_self_static" >&511344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10625 11345 $as_echo "$lt_cv_dlopen_self_static" >&6; } 10626 11346 fi … … 10644 11364 10645 11365 10646 # Report which library types will actually be built 10647 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10648 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 10649 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 10650 $as_echo "$can_build_shared" >&6; } 10651 10652 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10653 $as_echo_n "checking whether to build shared libraries... " >&6; } 10654 test "$can_build_shared" = "no" && enable_shared=no 10655 10656 # On AIX, shared libraries and static libraries use the same namespace, and 10657 # are all built from PIC. 10658 case $host_os in 10659 aix3*) 10660 test "$enable_shared" = yes && enable_static=no 10661 if test -n "$RANLIB"; then 10662 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10663 postinstall_cmds='$RANLIB $lib' 10664 fi 10665 ;; 10666 10667 aix[4-9]*) 10668 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10669 test "$enable_shared" = yes && enable_static=no 10670 fi 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 striplib= 11382 old_striplib= 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11384 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11385 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11387 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11389 $as_echo "yes" >&6; } 11390 else 11391 # FIXME - insert some real tests, host_os isn't really good enough 11392 case $host_os in 11393 darwin*) 11394 if test -n "$STRIP" ; then 11395 striplib="$STRIP -x" 11396 old_striplib="$STRIP -S" 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11398 $as_echo "yes" >&6; } 11399 else 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11401 $as_echo "no" >&6; } 11402 fi 10671 11403 ;; 10672 esac 10673 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 10674 $as_echo "$enable_shared" >&6; } 10675 10676 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10677 $as_echo_n "checking whether to build static libraries... " >&6; } 10678 # Make sure either enable_shared or enable_static is yes. 10679 test "$enable_shared" = yes || enable_static=yes 10680 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 10681 $as_echo "$enable_static" >&6; } 10682 10683 # The else clause should only fire when bootstrapping the 10684 # libtool distribution, otherwise you forgot to ship ltmain.sh 10685 # with your package, and you will get complaints that there are 10686 # no rules to generate ltmain.sh. 10687 if test -f "$ltmain"; then 10688 # See if we are running on zsh, and set the options which allow our commands through 10689 # without removal of \ escapes. 10690 if test -n "${ZSH_VERSION+set}" ; then 10691 setopt NO_GLOB_SUBST 10692 fi 10693 # Now quote all the things that may contain metacharacters while being 10694 # careful not to overquote the AC_SUBSTed values. We take copies of the 10695 # variables and quote the copies for generation of the libtool script. 10696 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 10697 SED SHELL STRIP \ 10698 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 10699 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 10700 deplibs_check_method reload_flag reload_cmds need_locks \ 10701 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 10702 lt_cv_sys_global_symbol_to_c_name_address \ 10703 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10704 old_postinstall_cmds old_postuninstall_cmds \ 10705 compiler \ 10706 CC \ 10707 LD \ 10708 lt_prog_compiler_wl \ 10709 lt_prog_compiler_pic \ 10710 lt_prog_compiler_static \ 10711 lt_prog_compiler_no_builtin_flag \ 10712 export_dynamic_flag_spec \ 10713 thread_safe_flag_spec \ 10714 whole_archive_flag_spec \ 10715 enable_shared_with_static_runtimes \ 10716 old_archive_cmds \ 10717 old_archive_from_new_cmds \ 10718 predep_objects \ 10719 postdep_objects \ 10720 predeps \ 10721 postdeps \ 10722 compiler_lib_search_path \ 10723 compiler_lib_search_dirs \ 10724 archive_cmds \ 10725 archive_expsym_cmds \ 10726 postinstall_cmds \ 10727 postuninstall_cmds \ 10728 old_archive_from_expsyms_cmds \ 10729 allow_undefined_flag \ 10730 no_undefined_flag \ 10731 export_symbols_cmds \ 10732 hardcode_libdir_flag_spec \ 10733 hardcode_libdir_flag_spec_ld \ 10734 hardcode_libdir_separator \ 10735 hardcode_automatic \ 10736 module_cmds \ 10737 module_expsym_cmds \ 10738 lt_cv_prog_compiler_c_o \ 10739 fix_srcfile_path \ 10740 exclude_expsyms \ 10741 include_expsyms; do 10742 10743 case $var in 10744 old_archive_cmds | \ 10745 old_archive_from_new_cmds | \ 10746 archive_cmds | \ 10747 archive_expsym_cmds | \ 10748 module_cmds | \ 10749 module_expsym_cmds | \ 10750 old_archive_from_expsyms_cmds | \ 10751 export_symbols_cmds | \ 10752 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 10753 postinstall_cmds | postuninstall_cmds | \ 10754 old_postinstall_cmds | old_postuninstall_cmds | \ 10755 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10756 # Double-quote double-evaled strings. 10757 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10758 ;; 10759 *) 10760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10761 ;; 10762 esac 10763 done 10764 10765 case $lt_echo in 10766 *'\$0 --fallback-echo"') 10767 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 11404 *) 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11406 $as_echo "no" >&6; } 10768 11407 ;; 10769 11408 esac 10770 10771 cfgfile="${ofile}T" 10772 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 10773 $rm -f "$cfgfile" 10774 { $as_echo "$as_me:$LINENO: creating $ofile" >&5 10775 $as_echo "$as_me: creating $ofile" >&6;} 10776 10777 cat <<__EOF__ >> "$cfgfile" 10778 #! $SHELL 10779 10780 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10781 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10782 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 10783 # 10784 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 10785 # Free Software Foundation, Inc. 10786 # 10787 # This file is part of GNU Libtool: 10788 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10789 # 10790 # This program is free software; you can redistribute it and/or modify 10791 # it under the terms of the GNU General Public License as published by 10792 # the Free Software Foundation; either version 2 of the License, or 10793 # (at your option) any later version. 10794 # 10795 # This program is distributed in the hope that it will be useful, but 10796 # WITHOUT ANY WARRANTY; without even the implied warranty of 10797 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10798 # General Public License for more details. 10799 # 10800 # You should have received a copy of the GNU General Public License 10801 # along with this program; if not, write to the Free Software 10802 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 10803 # 10804 # As a special exception to the GNU General Public License, if you 10805 # distribute this file as part of a program that contains a 10806 # configuration script generated by Autoconf, you may include it under 10807 # the same distribution terms that you use for the rest of that program. 10808 10809 # A sed program that does not truncate output. 10810 SED=$lt_SED 10811 10812 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 10813 Xsed="$SED -e 1s/^X//" 10814 10815 # The HP-UX ksh and POSIX shell print the target directory to stdout 10816 # if CDPATH is set. 10817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10818 10819 # The names of the tagged configurations supported by this script. 10820 available_tags= 10821 10822 # ### BEGIN LIBTOOL CONFIG 10823 10824 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10825 10826 # Shell to use when invoking shell scripts. 10827 SHELL=$lt_SHELL 10828 10829 # Whether or not to build shared libraries. 10830 build_libtool_libs=$enable_shared 10831 10832 # Whether or not to build static libraries. 10833 build_old_libs=$enable_static 10834 10835 # Whether or not to add -lc for building shared libraries. 10836 build_libtool_need_lc=$archive_cmds_need_lc 10837 10838 # Whether or not to disallow shared libs when runtime libs are static 10839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 10840 10841 # Whether or not to optimize for fast installation. 10842 fast_install=$enable_fast_install 10843 10844 # The host system. 10845 host_alias=$host_alias 10846 host=$host 10847 host_os=$host_os 10848 10849 # The build system. 10850 build_alias=$build_alias 10851 build=$build 10852 build_os=$build_os 10853 10854 # An echo program that does not interpret backslashes. 10855 echo=$lt_echo 10856 10857 # The archiver. 10858 AR=$lt_AR 10859 AR_FLAGS=$lt_AR_FLAGS 10860 10861 # A C compiler. 10862 LTCC=$lt_LTCC 10863 10864 # LTCC compiler flags. 10865 LTCFLAGS=$lt_LTCFLAGS 10866 10867 # A language-specific compiler. 10868 CC=$lt_compiler 10869 10870 # Is the compiler the GNU C compiler? 10871 with_gcc=$GCC 10872 10873 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 10874 gcc_ver=\`gcc -dumpversion\` 10875 10876 # An ERE matcher. 10877 EGREP=$lt_EGREP 10878 10879 # The linker used to build libraries. 10880 LD=$lt_LD 10881 10882 # Whether we need hard or soft links. 10883 LN_S=$lt_LN_S 10884 10885 # A BSD-compatible nm program. 10886 NM=$lt_NM 10887 10888 # A symbol stripping program 10889 STRIP=$lt_STRIP 10890 10891 # Used to examine libraries when file_magic_cmd begins "file" 10892 MAGIC_CMD=$MAGIC_CMD 10893 10894 # Used on cygwin: DLL creation program. 10895 DLLTOOL="$DLLTOOL" 10896 10897 # Used on cygwin: object dumper. 10898 OBJDUMP="$OBJDUMP" 10899 10900 # Used on cygwin: assembler. 10901 AS="$AS" 10902 10903 # The name of the directory that contains temporary libtool files. 10904 objdir=$objdir 10905 10906 # How to create reloadable object files. 10907 reload_flag=$lt_reload_flag 10908 reload_cmds=$lt_reload_cmds 10909 10910 # How to pass a linker flag through the compiler. 10911 wl=$lt_lt_prog_compiler_wl 10912 10913 # Object file suffix (normally "o"). 10914 objext="$ac_objext" 10915 10916 # Old archive suffix (normally "a"). 10917 libext="$libext" 10918 10919 # Shared library suffix (normally ".so"). 10920 shrext_cmds='$shrext_cmds' 10921 10922 # Executable file suffix (normally ""). 10923 exeext="$exeext" 10924 10925 # Additional compiler flags for building library objects. 10926 pic_flag=$lt_lt_prog_compiler_pic 10927 pic_mode=$pic_mode 10928 10929 # What is the maximum length of a command? 10930 max_cmd_len=$lt_cv_sys_max_cmd_len 10931 10932 # Does compiler simultaneously support -c and -o options? 10933 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 10934 10935 # Must we lock files when doing compilation? 10936 need_locks=$lt_need_locks 10937 10938 # Do we need the lib prefix for modules? 10939 need_lib_prefix=$need_lib_prefix 10940 10941 # Do we need a version for libraries? 10942 need_version=$need_version 10943 10944 # Whether dlopen is supported. 10945 dlopen_support=$enable_dlopen 10946 10947 # Whether dlopen of programs is supported. 10948 dlopen_self=$enable_dlopen_self 10949 10950 # Whether dlopen of statically linked programs is supported. 10951 dlopen_self_static=$enable_dlopen_self_static 10952 10953 # Compiler flag to prevent dynamic linking. 10954 link_static_flag=$lt_lt_prog_compiler_static 10955 10956 # Compiler flag to turn off builtin functions. 10957 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 10958 10959 # Compiler flag to allow reflexive dlopens. 10960 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10961 10962 # Compiler flag to generate shared objects directly from archives. 10963 whole_archive_flag_spec=$lt_whole_archive_flag_spec 10964 10965 # Compiler flag to generate thread-safe objects. 10966 thread_safe_flag_spec=$lt_thread_safe_flag_spec 10967 10968 # Library versioning type. 10969 version_type=$version_type 10970 10971 # Format of library name prefix. 10972 libname_spec=$lt_libname_spec 10973 10974 # List of archive names. First name is the real one, the rest are links. 10975 # The last name is the one that the linker finds with -lNAME. 10976 library_names_spec=$lt_library_names_spec 10977 10978 # The coded name of the library, if different from the real name. 10979 soname_spec=$lt_soname_spec 10980 10981 # Commands used to build and install an old-style archive. 10982 RANLIB=$lt_RANLIB 10983 old_archive_cmds=$lt_old_archive_cmds 10984 old_postinstall_cmds=$lt_old_postinstall_cmds 10985 old_postuninstall_cmds=$lt_old_postuninstall_cmds 10986 10987 # Create an old-style archive from a shared archive. 10988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10989 10990 # Create a temporary old-style archive to link instead of a shared archive. 10991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10992 10993 # Commands used to build and install a shared archive. 10994 archive_cmds=$lt_archive_cmds 10995 archive_expsym_cmds=$lt_archive_expsym_cmds 10996 postinstall_cmds=$lt_postinstall_cmds 10997 postuninstall_cmds=$lt_postuninstall_cmds 10998 10999 # Commands used to build a loadable module (assumed same as above if empty) 11000 module_cmds=$lt_module_cmds 11001 module_expsym_cmds=$lt_module_expsym_cmds 11002 11003 # Commands to strip libraries. 11004 old_striplib=$lt_old_striplib 11005 striplib=$lt_striplib 11006 11007 # Dependencies to place before the objects being linked to create a 11008 # shared library. 11009 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 11010 11011 # Dependencies to place after the objects being linked to create a 11012 # shared library. 11013 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 11014 11015 # Dependencies to place before the objects being linked to create a 11016 # shared library. 11017 predeps=$lt_predeps 11018 11019 # Dependencies to place after the objects being linked to create a 11020 # shared library. 11021 postdeps=$lt_postdeps 11022 11023 # The directories searched by this compiler when creating a shared 11024 # library 11025 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 11026 11027 # The library search path used internally by the compiler when linking 11028 # a shared library. 11029 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 11030 11031 # Method to check whether dependent libraries are shared objects. 11032 deplibs_check_method=$lt_deplibs_check_method 11033 11034 # Command to use when deplibs_check_method == file_magic. 11035 file_magic_cmd=$lt_file_magic_cmd 11036 11037 # Flag that allows shared libraries with undefined symbols to be built. 11038 allow_undefined_flag=$lt_allow_undefined_flag 11039 11040 # Flag that forces no undefined symbols. 11041 no_undefined_flag=$lt_no_undefined_flag 11042 11043 # Commands used to finish a libtool library installation in a directory. 11044 finish_cmds=$lt_finish_cmds 11045 11046 # Same as above, but a single script fragment to be evaled but not shown. 11047 finish_eval=$lt_finish_eval 11048 11049 # Take the output of nm and produce a listing of raw symbols and C names. 11050 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 11051 11052 # Transform the output of nm in a proper C declaration 11053 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 11054 11055 # Transform the output of nm in a C name address pair 11056 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 11057 11058 # This is the shared library runtime path variable. 11059 runpath_var=$runpath_var 11060 11061 # This is the shared library path variable. 11062 shlibpath_var=$shlibpath_var 11063 11064 # Is shlibpath searched before the hard-coded library search path? 11065 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 11066 11067 # How to hardcode a shared library path into an executable. 11068 hardcode_action=$hardcode_action 11069 11070 # Whether we should hardcode library paths into libraries. 11071 hardcode_into_libs=$hardcode_into_libs 11072 11073 # Flag to hardcode \$libdir into a binary during linking. 11074 # This must work even if \$libdir does not exist. 11075 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 11076 11077 # If ld is used when linking, flag to hardcode \$libdir into 11078 # a binary during linking. This must work even if \$libdir does 11079 # not exist. 11080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 11081 11082 # Whether we need a single -rpath flag with a separated argument. 11083 hardcode_libdir_separator=$lt_hardcode_libdir_separator 11084 11085 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 11086 # resulting binary. 11087 hardcode_direct=$hardcode_direct 11088 11089 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 11090 # resulting binary. 11091 hardcode_minus_L=$hardcode_minus_L 11092 11093 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 11094 # the resulting binary. 11095 hardcode_shlibpath_var=$hardcode_shlibpath_var 11096 11097 # Set to yes if building a shared library automatically hardcodes DIR into the library 11098 # and all subsequent libraries and executables linked against it. 11099 hardcode_automatic=$hardcode_automatic 11100 11101 # Variables whose values should be saved in libtool wrapper scripts and 11102 # restored at relink time. 11103 variables_saved_for_relink="$variables_saved_for_relink" 11104 11105 # Whether libtool must link a program against all its dependency libraries. 11106 link_all_deplibs=$link_all_deplibs 11107 11108 # Compile-time system search path for libraries 11109 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 11110 11111 # Run-time system search path for libraries 11112 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 11113 11114 # Fix the shell variable \$srcfile for the compiler. 11115 fix_srcfile_path=$lt_fix_srcfile_path 11116 11117 # Set to yes if exported symbols are required. 11118 always_export_symbols=$always_export_symbols 11119 11120 # The commands to list exported symbols. 11121 export_symbols_cmds=$lt_export_symbols_cmds 11122 11123 # The commands to extract the exported symbol list from a shared archive. 11124 extract_expsyms_cmds=$lt_extract_expsyms_cmds 11125 11126 # Symbols that should not be listed in the preloaded symbols. 11127 exclude_expsyms=$lt_exclude_expsyms 11128 11129 # Symbols that must always be exported. 11130 include_expsyms=$lt_include_expsyms 11131 11132 # ### END LIBTOOL CONFIG 11133 11134 __EOF__ 11135 11136 11409 fi 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 # Report which library types will actually be built 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11424 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11426 $as_echo "$can_build_shared" >&6; } 11427 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11429 $as_echo_n "checking whether to build shared libraries... " >&6; } 11430 test "$can_build_shared" = "no" && enable_shared=no 11431 11432 # On AIX, shared libraries and static libraries use the same namespace, and 11433 # are all built from PIC. 11137 11434 case $host_os in 11138 11435 aix3*) 11139 cat <<\EOF >> "$cfgfile" 11140 11141 # AIX sometimes has problems with the GCC collect2 program. For some 11142 # reason, if we set the COLLECT_NAMES environment variable, the problems 11143 # vanish in a puff of smoke. 11144 if test "X${COLLECT_NAMES+set}" != Xset; then 11145 COLLECT_NAMES= 11146 export COLLECT_NAMES 11147 fi 11148 EOF 11436 test "$enable_shared" = yes && enable_static=no 11437 if test -n "$RANLIB"; then 11438 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11439 postinstall_cmds='$RANLIB $lib' 11440 fi 11441 ;; 11442 11443 aix[4-9]*) 11444 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11445 test "$enable_shared" = yes && enable_static=no 11446 fi 11149 11447 ;; 11150 11448 esac 11151 11152 # We use sed instead of cat because bash on DJGPP gets confused if 11153 # if finds mixed CR/LF and LF-only lines. Since sed operates in 11154 # text mode, it properly converts lines to CR/LF. This bash problem 11155 # is reportedly fixed, but why not run on old versions too? 11156 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 11157 11158 mv -f "$cfgfile" "$ofile" || \ 11159 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 11160 chmod +x "$ofile" 11161 11162 else 11163 # If there is no Makefile yet, we rely on a make rule to execute 11164 # `config.status --recheck' to rerun these tests and create the 11165 # libtool script then. 11166 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 11167 if test -f "$ltmain_in"; then 11168 test -f Makefile && make "$ltmain" 11169 fi 11170 fi 11171 11172 11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11450 $as_echo "$enable_shared" >&6; } 11451 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11453 $as_echo_n "checking whether to build static libraries... " >&6; } 11454 # Make sure either enable_shared or enable_static is yes. 11455 test "$enable_shared" = yes || enable_static=yes 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11457 $as_echo "$enable_static" >&6; } 11458 11459 11460 11461 11462 fi 11173 11463 ac_ext=c 11174 11464 ac_cpp='$CPP $CPPFLAGS' … … 11180 11470 11181 11471 11182 # Check whether --with-tags was given. 11183 if test "${with_tags+set}" = set; then 11184 withval=$with_tags; tagnames="$withval" 11185 fi 11186 11187 11188 if test -f "$ltmain" && test -n "$tagnames"; then 11189 if test ! -f "${ofile}"; then 11190 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 11191 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 11192 fi 11193 11194 if test -z "$LTCC"; then 11195 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 11196 if test -z "$LTCC"; then 11197 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 11198 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 11199 else 11200 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 11201 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 11202 fi 11203 fi 11204 if test -z "$LTCFLAGS"; then 11205 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 11206 fi 11207 11208 # Extract list of available tagged configurations in $ofile. 11209 # Note that this assumes the entire list is on one line. 11210 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 11211 11212 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 11213 for tagname in $tagnames; do 11214 IFS="$lt_save_ifs" 11215 # Check whether tagname contains only valid characters 11216 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 11217 "") ;; 11218 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 11219 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;} 11220 { (exit 1); exit 1; }; } 11221 ;; 11222 esac 11223 11224 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 11225 then 11226 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 11227 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 11228 { (exit 1); exit 1; }; } 11229 fi 11230 11231 # Update the list of available tags. 11232 if test -n "$tagname"; then 11233 echo appending configuration tag \"$tagname\" to $ofile 11234 11235 case $tagname in 11236 CXX) 11237 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11238 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11239 (test "X$CXX" != "Xg++"))) ; then 11240 ac_ext=cpp 11472 ac_ext=cpp 11241 11473 ac_cpp='$CXXCPP $CPPFLAGS' 11242 11474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' … … 11244 11476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11245 11477 11246 11247 11248 11249 11478 archive_cmds_need_lc_CXX=no 11250 11479 allow_undefined_flag_CXX= 11251 11480 always_export_symbols_CXX=no 11252 11481 archive_expsym_cmds_CXX= 11482 compiler_needs_object_CXX=no 11253 11483 export_dynamic_flag_spec_CXX= 11254 11484 hardcode_direct_CXX=no 11485 hardcode_direct_absolute_CXX=no 11255 11486 hardcode_libdir_flag_spec_CXX= 11256 11487 hardcode_libdir_flag_spec_ld_CXX= … … 11259 11490 hardcode_shlibpath_var_CXX=unsupported 11260 11491 hardcode_automatic_CXX=no 11492 inherit_rpath_CXX=no 11261 11493 module_cmds_CXX= 11262 11494 module_expsym_cmds_CXX= … … 11267 11499 enable_shared_with_static_runtimes_CXX=no 11268 11500 11269 # Dependencies to place before and after the object being linked:11270 predep_objects_CXX=11271 postdep_objects_CXX=11272 predeps_CXX=11273 postdeps_CXX=11274 compiler_lib_search_path_CXX=11275 compiler_lib_search_dirs_CXX=11276 11277 11501 # Source file extension for C++ test sources. 11278 11502 ac_ext=cpp … … 11282 11506 objext_CXX=$objext 11283 11507 11284 # Code to be used in simple compile tests 11285 lt_simple_compile_test_code="int some_variable = 0;" 11286 11287 # Code to be used in simple link tests 11288 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11289 11290 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11508 # No sense in running all these tests if we already determined that 11509 # the CXX compiler isn't working. Some variables (like enable_shared) 11510 # are currently assumed to apply to all compilers on this platform, 11511 # and will be corrupted by setting them based on a non-working compiler. 11512 if test "$_lt_caught_CXX_error" != yes; then 11513 # Code to be used in simple compile tests 11514 lt_simple_compile_test_code="int some_variable = 0;" 11515 11516 # Code to be used in simple link tests 11517 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11518 11519 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11520 11521 11522 11523 11524 11291 11525 11292 11526 # If no C compiler was specified, use CC. … … 11300 11534 11301 11535 11302 # save warnings/boilerplate of simple test code11303 ac_outfile=conftest.$ac_objext11536 # save warnings/boilerplate of simple test code 11537 ac_outfile=conftest.$ac_objext 11304 11538 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11305 11539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11306 11540 _lt_compiler_boilerplate=`cat conftest.err` 11307 $ rmconftest*11308 11309 ac_outfile=conftest.$ac_objext11541 $RM conftest* 11542 11543 ac_outfile=conftest.$ac_objext 11310 11544 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11311 11545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11312 11546 _lt_linker_boilerplate=`cat conftest.err` 11313 $ rm-r conftest*11314 11315 11316 # Allow CC to be a program name with arguments.11317 lt_save_CC=$CC11318 lt_save_LD=$LD11319 lt_save_GCC=$GCC11320 GCC=$GXX11321 lt_save_with_gnu_ld=$with_gnu_ld11322 lt_save_path_LD=$lt_cv_path_LD11323 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then11324 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx11325 else11326 $as_unset lt_cv_prog_gnu_ld11327 fi11328 if test -n "${lt_cv_path_LDCXX+set}"; then11329 lt_cv_path_LD=$lt_cv_path_LDCXX11330 else11331 $as_unset lt_cv_path_LD11332 fi11333 test -z "${LDCXX+set}" || LD=$LDCXX11334 CC=${CXX-"c++"}11335 compiler=$CC11336 compiler_CXX=$CC11337 for cc_temp in $compiler""; do11547 $RM -r conftest* 11548 11549 11550 # Allow CC to be a program name with arguments. 11551 lt_save_CC=$CC 11552 lt_save_LD=$LD 11553 lt_save_GCC=$GCC 11554 GCC=$GXX 11555 lt_save_with_gnu_ld=$with_gnu_ld 11556 lt_save_path_LD=$lt_cv_path_LD 11557 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11558 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11559 else 11560 $as_unset lt_cv_prog_gnu_ld 11561 fi 11562 if test -n "${lt_cv_path_LDCXX+set}"; then 11563 lt_cv_path_LD=$lt_cv_path_LDCXX 11564 else 11565 $as_unset lt_cv_path_LD 11566 fi 11567 test -z "${LDCXX+set}" || LD=$LDCXX 11568 CC=${CXX-"c++"} 11569 compiler=$CC 11570 compiler_CXX=$CC 11571 for cc_temp in $compiler""; do 11338 11572 case $cc_temp in 11339 11573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; … … 11343 11577 esac 11344 11578 done 11345 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11346 11347 11348 # We don't want -fno-exception wen compiling C++ code, so set the 11349 # no_builtin_flag separately 11350 if test "$GXX" = yes; then 11351 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11352 else 11353 lt_prog_compiler_no_builtin_flag_CXX= 11354 fi 11355 11356 if test "$GXX" = yes; then 11357 # Set up default GNU C++ configuration 11579 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 11580 11581 11582 if test -n "$compiler"; then 11583 # We don't want -fno-exception when compiling C++ code, so set the 11584 # no_builtin_flag separately 11585 if test "$GXX" = yes; then 11586 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11587 else 11588 lt_prog_compiler_no_builtin_flag_CXX= 11589 fi 11590 11591 if test "$GXX" = yes; then 11592 # Set up default GNU C++ configuration 11593 11358 11594 11359 11595 11360 11596 # Check whether --with-gnu-ld was given. 11361 if test "${with_gnu_ld+set}" = set; then 11597 if test "${with_gnu_ld+set}" = set; then : 11362 11598 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11363 11599 else … … 11368 11604 if test "$GCC" = yes; then 11369 11605 # Check if gcc -print-prog-name=ld gives a path. 11370 { $as_echo "$as_me:$ LINENO: checking for ld used by $CC" >&511606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11371 11607 $as_echo_n "checking for ld used by $CC... " >&6; } 11372 11608 case $host in … … 11382 11618 re_direlt='/[^/][^/]*/\.\./' 11383 11619 # Canonicalize the pathname of ld 11384 ac_prog=` echo $ac_prog| $SED 's%\\\\%/%g'`11385 while echo $ac_prog | grep"$re_direlt" > /dev/null 2>&1; do11386 ac_prog=` echo$ac_prog| $SED "s%$re_direlt%/%"`11620 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11621 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11622 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11387 11623 done 11388 11624 test -z "$LD" && LD="$ac_prog" … … 11398 11634 esac 11399 11635 elif test "$with_gnu_ld" = yes; then 11400 { $as_echo "$as_me:$ LINENO: checking for GNU ld" >&511636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11401 11637 $as_echo_n "checking for GNU ld... " >&6; } 11402 11638 else 11403 { $as_echo "$as_me:$ LINENO: checking for non-GNU ld" >&511639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11404 11640 $as_echo_n "checking for non-GNU ld... " >&6; } 11405 11641 fi 11406 if test "${lt_cv_path_LD+set}" = set; then 11642 if test "${lt_cv_path_LD+set}" = set; then : 11407 11643 $as_echo_n "(cached) " >&6 11408 11644 else … … 11435 11671 LD="$lt_cv_path_LD" 11436 11672 if test -n "$LD"; then 11437 { $as_echo "$as_me:$ LINENO: result: $LD" >&511673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11438 11674 $as_echo "$LD" >&6; } 11439 11675 else 11440 { $as_echo "$as_me:$ LINENO: result: no" >&511676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11441 11677 $as_echo "no" >&6; } 11442 11678 fi 11443 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 11444 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 11445 { (exit 1); exit 1; }; } 11446 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 11679 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11447 11681 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11448 if test "${lt_cv_prog_gnu_ld+set}" = set; then 11682 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11449 11683 $as_echo_n "(cached) " >&6 11450 11684 else … … 11459 11693 esac 11460 11694 fi 11461 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_gnu_ld" >&511695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11462 11696 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 11463 11697 with_gnu_ld=$lt_cv_prog_gnu_ld … … 11465 11699 11466 11700 11467 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11468 # archiving commands below assume that GNU ld is being used. 11469 if test "$with_gnu_ld" = yes; then 11470 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11471 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11472 11473 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 11474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11475 11476 # If archive_cmds runs LD, not CC, wlarc should be empty 11477 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11478 # investigate it a little bit more. (MM) 11479 wlarc='${wl}' 11480 11481 # ancient GNU ld didn't support --whole-archive et. al. 11482 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 11483 grep 'no-whole-archive' > /dev/null; then 11484 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11701 11702 11703 11704 11705 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11706 # archiving commands below assume that GNU ld is being used. 11707 if test "$with_gnu_ld" = yes; then 11708 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11709 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11710 11711 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11712 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11713 11714 # If archive_cmds runs LD, not CC, wlarc should be empty 11715 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11716 # investigate it a little bit more. (MM) 11717 wlarc='${wl}' 11718 11719 # ancient GNU ld didn't support --whole-archive et. al. 11720 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11721 $GREP 'no-whole-archive' > /dev/null; then 11722 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11723 else 11724 whole_archive_flag_spec_CXX= 11725 fi 11726 else 11727 with_gnu_ld=no 11728 wlarc= 11729 11730 # A generic and very simple default shared library creation 11731 # command for GNU C++ for the case where it uses the native 11732 # linker, instead of GNU ld. If possible, this setting should 11733 # overridden to take advantage of the native linker features on 11734 # the platform it is being used on. 11735 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11736 fi 11737 11738 # Commands to make compiler produce verbose output that lists 11739 # what "hidden" libraries, object files and flags are used when 11740 # linking a shared library. 11741 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 11742 11485 11743 else 11486 whole_archive_flag_spec_CXX= 11744 GXX=no 11745 with_gnu_ld=no 11746 wlarc= 11487 11747 fi 11488 else 11489 with_gnu_ld=no 11490 wlarc= 11491 11492 # A generic and very simple default shared library creation 11493 # command for GNU C++ for the case where it uses the native 11494 # linker, instead of GNU ld. If possible, this setting should 11495 # overridden to take advantage of the native linker features on 11496 # the platform it is being used on. 11497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11498 fi 11499 11500 # Commands to make compiler produce verbose output that lists 11501 # what "hidden" libraries, object files and flags are used when 11502 # linking a shared library. 11503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 11504 11505 else 11506 GXX=no 11507 with_gnu_ld=no 11508 wlarc= 11509 fi 11510 11511 # PORTME: fill in a description of your system's C++ link characteristics 11512 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11748 11749 # PORTME: fill in a description of your system's C++ link characteristics 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11513 11751 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11514 ld_shlibs_CXX=yes 11515 case $host_os in 11516 aix3*) 11517 # FIXME: insert proper C++ library support 11518 ld_shlibs_CXX=no 11519 ;; 11520 aix[4-9]*) 11521 if test "$host_cpu" = ia64; then 11522 # On IA64, the linker does run time linking by default, so we don't 11523 # have to do anything special. 11524 aix_use_runtimelinking=no 11525 exp_sym_flag='-Bexport' 11526 no_entry_flag="" 11527 else 11528 aix_use_runtimelinking=no 11529 11530 # Test if we are trying to use run time linking or normal 11531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11532 # need to do runtime linking. 11533 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11534 for ld_flag in $LDFLAGS; do 11535 case $ld_flag in 11536 *-brtl*) 11537 aix_use_runtimelinking=yes 11538 break 11752 ld_shlibs_CXX=yes 11753 case $host_os in 11754 aix3*) 11755 # FIXME: insert proper C++ library support 11756 ld_shlibs_CXX=no 11757 ;; 11758 aix[4-9]*) 11759 if test "$host_cpu" = ia64; then 11760 # On IA64, the linker does run time linking by default, so we don't 11761 # have to do anything special. 11762 aix_use_runtimelinking=no 11763 exp_sym_flag='-Bexport' 11764 no_entry_flag="" 11765 else 11766 aix_use_runtimelinking=no 11767 11768 # Test if we are trying to use run time linking or normal 11769 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11770 # need to do runtime linking. 11771 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11772 for ld_flag in $LDFLAGS; do 11773 case $ld_flag in 11774 *-brtl*) 11775 aix_use_runtimelinking=yes 11776 break 11777 ;; 11778 esac 11779 done 11539 11780 ;; 11540 esac 11541 done 11542 ;; 11543 esac 11544 11545 exp_sym_flag='-bexport' 11546 no_entry_flag='-bnoentry' 11547 fi 11548 11549 # When large executables or shared objects are built, AIX ld can 11550 # have problems creating the table of contents. If linking a library 11551 # or program results in "error TOC overflow" add -mminimal-toc to 11552 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11553 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11554 11555 archive_cmds_CXX='' 11556 hardcode_direct_CXX=yes 11557 hardcode_libdir_separator_CXX=':' 11558 link_all_deplibs_CXX=yes 11559 11560 if test "$GXX" = yes; then 11561 case $host_os in aix4.[012]|aix4.[012].*) 11562 # We only want to do this on AIX 4.2 and lower, the check 11563 # below for broken collect2 doesn't work under 4.3+ 11564 collect2name=`${CC} -print-prog-name=collect2` 11565 if test -f "$collect2name" && \ 11566 strings "$collect2name" | grep resolve_lib_name >/dev/null 11567 then 11568 # We have reworked collect2 11569 : 11570 else 11571 # We have old collect2 11572 hardcode_direct_CXX=unsupported 11573 # It fails to find uninstalled libraries when the uninstalled 11574 # path is not listed in the libpath. Setting hardcode_minus_L 11575 # to unsupported forces relinking 11576 hardcode_minus_L_CXX=yes 11577 hardcode_libdir_flag_spec_CXX='-L$libdir' 11578 hardcode_libdir_separator_CXX= 11579 fi 11580 ;; 11581 esac 11582 shared_flag='-shared' 11583 if test "$aix_use_runtimelinking" = yes; then 11584 shared_flag="$shared_flag "'${wl}-G' 11585 fi 11586 else 11587 # not using gcc 11588 if test "$host_cpu" = ia64; then 11589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11590 # chokes on -Wl,-G. The following line is correct: 11591 shared_flag='-G' 11592 else 11593 if test "$aix_use_runtimelinking" = yes; then 11594 shared_flag='${wl}-G' 11595 else 11596 shared_flag='${wl}-bM:SRE' 11597 fi 11598 fi 11599 fi 11600 11601 # It seems that -bexpall does not export symbols beginning with 11602 # underscore (_), so it is better to generate a list of symbols to export. 11603 always_export_symbols_CXX=yes 11604 if test "$aix_use_runtimelinking" = yes; then 11605 # Warning - without using the other runtime loading flags (-brtl), 11606 # -berok will link without error, but may produce a broken library. 11607 allow_undefined_flag_CXX='-berok' 11608 # Determine the default libpath from the value encoded in an empty executable. 11609 cat >conftest.$ac_ext <<_ACEOF 11610 /* confdefs.h. */ 11611 _ACEOF 11612 cat confdefs.h >>conftest.$ac_ext 11613 cat >>conftest.$ac_ext <<_ACEOF 11781 esac 11782 11783 exp_sym_flag='-bexport' 11784 no_entry_flag='-bnoentry' 11785 fi 11786 11787 # When large executables or shared objects are built, AIX ld can 11788 # have problems creating the table of contents. If linking a library 11789 # or program results in "error TOC overflow" add -mminimal-toc to 11790 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11791 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11792 11793 archive_cmds_CXX='' 11794 hardcode_direct_CXX=yes 11795 hardcode_direct_absolute_CXX=yes 11796 hardcode_libdir_separator_CXX=':' 11797 link_all_deplibs_CXX=yes 11798 file_list_spec_CXX='${wl}-f,' 11799 11800 if test "$GXX" = yes; then 11801 case $host_os in aix4.[012]|aix4.[012].*) 11802 # We only want to do this on AIX 4.2 and lower, the check 11803 # below for broken collect2 doesn't work under 4.3+ 11804 collect2name=`${CC} -print-prog-name=collect2` 11805 if test -f "$collect2name" && 11806 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11807 then 11808 # We have reworked collect2 11809 : 11810 else 11811 # We have old collect2 11812 hardcode_direct_CXX=unsupported 11813 # It fails to find uninstalled libraries when the uninstalled 11814 # path is not listed in the libpath. Setting hardcode_minus_L 11815 # to unsupported forces relinking 11816 hardcode_minus_L_CXX=yes 11817 hardcode_libdir_flag_spec_CXX='-L$libdir' 11818 hardcode_libdir_separator_CXX= 11819 fi 11820 esac 11821 shared_flag='-shared' 11822 if test "$aix_use_runtimelinking" = yes; then 11823 shared_flag="$shared_flag "'${wl}-G' 11824 fi 11825 else 11826 # not using gcc 11827 if test "$host_cpu" = ia64; then 11828 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11829 # chokes on -Wl,-G. The following line is correct: 11830 shared_flag='-G' 11831 else 11832 if test "$aix_use_runtimelinking" = yes; then 11833 shared_flag='${wl}-G' 11834 else 11835 shared_flag='${wl}-bM:SRE' 11836 fi 11837 fi 11838 fi 11839 11840 export_dynamic_flag_spec_CXX='${wl}-bexpall' 11841 # It seems that -bexpall does not export symbols beginning with 11842 # underscore (_), so it is better to generate a list of symbols to 11843 # export. 11844 always_export_symbols_CXX=yes 11845 if test "$aix_use_runtimelinking" = yes; then 11846 # Warning - without using the other runtime loading flags (-brtl), 11847 # -berok will link without error, but may produce a broken library. 11848 allow_undefined_flag_CXX='-berok' 11849 # Determine the default libpath from the value encoded in an empty 11850 # executable. 11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11614 11852 /* end confdefs.h. */ 11615 11853 … … 11622 11860 } 11623 11861 _ACEOF 11624 rm -f conftest.$ac_objext conftest$ac_exeext 11625 if { (ac_try="$ac_link" 11626 case "(($ac_try" in 11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11628 *) ac_try_echo=$ac_try;; 11629 esac 11630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11631 $as_echo "$ac_try_echo") >&5 11632 (eval "$ac_link") 2>conftest.er1 11633 ac_status=$? 11634 grep -v '^ *+' conftest.er1 >conftest.err 11635 rm -f conftest.er1 11636 cat conftest.err >&5 11637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11638 (exit $ac_status); } && { 11639 test -z "$ac_cxx_werror_flag" || 11640 test ! -s conftest.err 11641 } && test -s conftest$ac_exeext && { 11642 test "$cross_compiling" = yes || 11643 $as_test_x conftest$ac_exeext 11644 }; then 11862 if ac_fn_cxx_try_link "$LINENO"; then : 11645 11863 11646 11864 lt_aix_libpath_sed=' … … 11656 11874 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11657 11875 fi 11658 else 11659 $as_echo "$as_me: failed program was:" >&5 11660 sed 's/^/| /' conftest.$ac_ext >&5 11661 11662 11663 fi 11664 11665 rm -rf conftest.dSYM 11666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11667 conftest$ac_exeext conftest.$ac_ext 11876 fi 11877 rm -f core conftest.err conftest.$ac_objext \ 11878 conftest$ac_exeext conftest.$ac_ext 11668 11879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11669 11880 11670 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11671 11672 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11673 else 11674 if test "$host_cpu" = ia64; then 11675 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11676 allow_undefined_flag_CXX="-z nodefs" 11677 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" 11678 else 11679 # Determine the default libpath from the value encoded in an empty executable. 11680 cat >conftest.$ac_ext <<_ACEOF 11681 /* confdefs.h. */ 11682 _ACEOF 11683 cat confdefs.h >>conftest.$ac_ext 11684 cat >>conftest.$ac_ext <<_ACEOF 11881 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11882 11883 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11884 else 11885 if test "$host_cpu" = ia64; then 11886 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11887 allow_undefined_flag_CXX="-z nodefs" 11888 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" 11889 else 11890 # Determine the default libpath from the value encoded in an 11891 # empty executable. 11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11685 11893 /* end confdefs.h. */ 11686 11894 … … 11693 11901 } 11694 11902 _ACEOF 11695 rm -f conftest.$ac_objext conftest$ac_exeext 11696 if { (ac_try="$ac_link" 11697 case "(($ac_try" in 11698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11699 *) ac_try_echo=$ac_try;; 11700 esac 11701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 11702 $as_echo "$ac_try_echo") >&5 11703 (eval "$ac_link") 2>conftest.er1 11704 ac_status=$? 11705 grep -v '^ *+' conftest.er1 >conftest.err 11706 rm -f conftest.er1 11707 cat conftest.err >&5 11708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 11709 (exit $ac_status); } && { 11710 test -z "$ac_cxx_werror_flag" || 11711 test ! -s conftest.err 11712 } && test -s conftest$ac_exeext && { 11713 test "$cross_compiling" = yes || 11714 $as_test_x conftest$ac_exeext 11715 }; then 11903 if ac_fn_cxx_try_link "$LINENO"; then : 11716 11904 11717 11905 lt_aix_libpath_sed=' … … 11727 11915 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11728 11916 fi 11729 else 11730 $as_echo "$as_me: failed program was:" >&5 11731 sed 's/^/| /' conftest.$ac_ext >&5 11732 11733 11734 fi 11735 11736 rm -rf conftest.dSYM 11737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 11738 conftest$ac_exeext conftest.$ac_ext 11917 fi 11918 rm -f core conftest.err conftest.$ac_objext \ 11919 conftest$ac_exeext conftest.$ac_ext 11739 11920 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11740 11921 11741 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11742 # Warning - without using the other run time loading flags, 11743 # -berok will link without error, but may produce a broken library. 11744 no_undefined_flag_CXX=' ${wl}-bernotok' 11745 allow_undefined_flag_CXX=' ${wl}-berok' 11746 # Exported symbols can be pulled into shared objects from archives 11747 whole_archive_flag_spec_CXX='$convenience' 11748 archive_cmds_need_lc_CXX=yes 11749 # This is similar to how AIX traditionally builds its shared libraries. 11750 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11751 fi 11752 fi 11753 ;; 11754 11755 beos*) 11756 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 11757 allow_undefined_flag_CXX=unsupported 11758 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11759 # support --undefined. This deserves some investigation. FIXME 11760 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11761 else 11762 ld_shlibs_CXX=no 11763 fi 11764 ;; 11765 11766 chorus*) 11767 case $cc_basename in 11768 *) 11769 # FIXME: insert proper C++ library support 11770 ld_shlibs_CXX=no 11771 ;; 11772 esac 11773 ;; 11774 11775 cygwin* | mingw* | pw32*) 11776 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11777 # as there is no search path for DLLs. 11778 hardcode_libdir_flag_spec_CXX='-L$libdir' 11779 allow_undefined_flag_CXX=unsupported 11780 always_export_symbols_CXX=no 11781 enable_shared_with_static_runtimes_CXX=yes 11782 11783 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 11784 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' 11785 # If the export-symbols file already is a .def file (1st line 11786 # is EXPORTS), use it as is; otherwise, prepend... 11787 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11788 cp $export_symbols $output_objdir/$soname.def; 11789 else 11790 echo EXPORTS > $output_objdir/$soname.def; 11791 cat $export_symbols >> $output_objdir/$soname.def; 11792 fi~ 11793 $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' 11794 else 11795 ld_shlibs_CXX=no 11796 fi 11797 ;; 11798 darwin* | rhapsody*) 11799 archive_cmds_need_lc_CXX=no 11800 hardcode_direct_CXX=no 11801 hardcode_automatic_CXX=yes 11802 hardcode_shlibpath_var_CXX=unsupported 11803 whole_archive_flag_spec_CXX='' 11804 link_all_deplibs_CXX=yes 11805 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11806 if test "$GXX" = yes ; then 11807 output_verbose_link_cmd='echo' 11808 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}" 11809 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11810 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}" 11811 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}" 11812 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11813 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}" 11814 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}" 11815 fi 11816 else 11817 case $cc_basename in 11818 xlc*) 11819 output_verbose_link_cmd='echo' 11820 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 11821 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11822 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11823 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11824 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11825 ;; 11826 *) 11827 ld_shlibs_CXX=no 11828 ;; 11829 esac 11830 fi 11922 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11923 # Warning - without using the other run time loading flags, 11924 # -berok will link without error, but may produce a broken library. 11925 no_undefined_flag_CXX=' ${wl}-bernotok' 11926 allow_undefined_flag_CXX=' ${wl}-berok' 11927 # Exported symbols can be pulled into shared objects from archives 11928 whole_archive_flag_spec_CXX='$convenience' 11929 archive_cmds_need_lc_CXX=yes 11930 # This is similar to how AIX traditionally builds its shared 11931 # libraries. 11932 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11933 fi 11934 fi 11831 11935 ;; 11832 11936 11833 dgux*) 11834 case $cc_basename in 11835 ec++*) 11836 # FIXME: insert proper C++ library support 11837 ld_shlibs_CXX=no 11838 ;; 11839 ghcx*) 11840 # Green Hills C++ Compiler 11841 # FIXME: insert proper C++ library support 11842 ld_shlibs_CXX=no 11843 ;; 11844 *) 11845 # FIXME: insert proper C++ library support 11846 ld_shlibs_CXX=no 11847 ;; 11848 esac 11849 ;; 11850 freebsd[12]*) 11851 # C++ shared libraries reported to be fairly broken before switch to ELF 11852 ld_shlibs_CXX=no 11853 ;; 11854 freebsd-elf*) 11855 archive_cmds_need_lc_CXX=no 11856 ;; 11857 freebsd* | dragonfly*) 11858 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11859 # conventions 11860 ld_shlibs_CXX=yes 11861 ;; 11862 gnu*) 11863 ;; 11864 hpux9*) 11865 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11866 hardcode_libdir_separator_CXX=: 11867 export_dynamic_flag_spec_CXX='${wl}-E' 11868 hardcode_direct_CXX=yes 11869 hardcode_minus_L_CXX=yes # Not in the search PATH, 11870 # but as the default 11871 # location of the library. 11872 11873 case $cc_basename in 11874 CC*) 11875 # FIXME: insert proper C++ library support 11876 ld_shlibs_CXX=no 11877 ;; 11878 aCC*) 11879 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11880 # Commands to make compiler produce verbose output that lists 11881 # what "hidden" libraries, object files and flags are used when 11882 # linking a shared library. 11883 # 11884 # There doesn't appear to be a way to prevent this compiler from 11885 # explicitly linking system object files so we need to strip them 11886 # from the output so that they don't get included in the library 11887 # dependencies. 11888 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11889 ;; 11890 *) 11891 if test "$GXX" = yes; then 11892 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11893 else 11894 # FIXME: insert proper C++ library support 11895 ld_shlibs_CXX=no 11896 fi 11897 ;; 11898 esac 11899 ;; 11900 hpux10*|hpux11*) 11901 if test $with_gnu_ld = no; then 11902 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11903 hardcode_libdir_separator_CXX=: 11904 11905 case $host_cpu in 11906 hppa*64*|ia64*) ;; 11907 *) 11908 export_dynamic_flag_spec_CXX='${wl}-E' 11909 ;; 11910 esac 11911 fi 11912 case $host_cpu in 11913 hppa*64*|ia64*) 11914 hardcode_direct_CXX=no 11915 hardcode_shlibpath_var_CXX=no 11916 ;; 11917 *) 11918 hardcode_direct_CXX=yes 11919 hardcode_minus_L_CXX=yes # Not in the search PATH, 11920 # but as the default 11921 # location of the library. 11922 ;; 11923 esac 11924 11925 case $cc_basename in 11926 CC*) 11927 # FIXME: insert proper C++ library support 11928 ld_shlibs_CXX=no 11929 ;; 11930 aCC*) 11931 case $host_cpu in 11932 hppa*64*) 11933 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11934 ;; 11935 ia64*) 11936 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11937 ;; 11938 *) 11939 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11940 ;; 11941 esac 11942 # Commands to make compiler produce verbose output that lists 11943 # what "hidden" libraries, object files and flags are used when 11944 # linking a shared library. 11945 # 11946 # There doesn't appear to be a way to prevent this compiler from 11947 # explicitly linking system object files so we need to strip them 11948 # from the output so that they don't get included in the library 11949 # dependencies. 11950 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 11951 ;; 11952 *) 11953 if test "$GXX" = yes; then 11954 if test $with_gnu_ld = no; then 11955 case $host_cpu in 11956 hppa*64*) 11957 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11958 ;; 11959 ia64*) 11960 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11961 ;; 11962 *) 11963 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11964 ;; 11965 esac 11966 fi 11937 beos*) 11938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11939 allow_undefined_flag_CXX=unsupported 11940 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11941 # support --undefined. This deserves some investigation. FIXME 11942 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11967 11943 else 11968 # FIXME: insert proper C++ library support11969 11944 ld_shlibs_CXX=no 11970 11945 fi 11971 11946 ;; 11972 esac 11973 ;; 11974 interix[3-9]*) 11975 hardcode_direct_CXX=no 11976 hardcode_shlibpath_var_CXX=no 11977 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11978 export_dynamic_flag_spec_CXX='${wl}-E' 11979 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11980 # Instead, shared libraries are loaded at an image base (0x10000000 by 11981 # default) and relocated if they conflict, which is a slow very memory 11982 # consuming and fragmenting process. To avoid this, we pick a random, 11983 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11984 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11985 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' 11986 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' 11987 ;; 11988 irix5* | irix6*) 11989 case $cc_basename in 11990 CC*) 11991 # SGI C++ 11992 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 11993 11994 # Archives containing C++ object files must be created using 11995 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11996 # necessary to make sure instantiated templates are included 11997 # in the archive. 11998 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 11947 11948 chorus*) 11949 case $cc_basename in 11950 *) 11951 # FIXME: insert proper C++ library support 11952 ld_shlibs_CXX=no 11953 ;; 11954 esac 11955 ;; 11956 11957 cygwin* | mingw* | pw32* | cegcc*) 11958 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11959 # as there is no search path for DLLs. 11960 hardcode_libdir_flag_spec_CXX='-L$libdir' 11961 allow_undefined_flag_CXX=unsupported 11962 always_export_symbols_CXX=no 11963 enable_shared_with_static_runtimes_CXX=yes 11964 11965 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11966 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' 11967 # If the export-symbols file already is a .def file (1st line 11968 # is EXPORTS), use it as is; otherwise, prepend... 11969 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11970 cp $export_symbols $output_objdir/$soname.def; 11971 else 11972 echo EXPORTS > $output_objdir/$soname.def; 11973 cat $export_symbols >> $output_objdir/$soname.def; 11974 fi~ 11975 $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' 11976 else 11977 ld_shlibs_CXX=no 11978 fi 11979 ;; 11980 darwin* | rhapsody*) 11981 11982 11983 archive_cmds_need_lc_CXX=no 11984 hardcode_direct_CXX=no 11985 hardcode_automatic_CXX=yes 11986 hardcode_shlibpath_var_CXX=unsupported 11987 whole_archive_flag_spec_CXX='' 11988 link_all_deplibs_CXX=yes 11989 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11990 case $cc_basename in 11991 ifort*) _lt_dar_can_shared=yes ;; 11992 *) _lt_dar_can_shared=$GCC ;; 11993 esac 11994 if test "$_lt_dar_can_shared" = "yes"; then 11995 output_verbose_link_cmd=echo 11996 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}" 11997 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11998 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}" 11999 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}" 12000 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12001 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}" 12002 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}" 12003 fi 12004 12005 else 12006 ld_shlibs_CXX=no 12007 fi 12008 11999 12009 ;; 12000 *) 12001 if test "$GXX" = yes; then 12002 if test "$with_gnu_ld" = no; then 12003 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12004 else 12005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 12006 fi 12007 fi 12008 link_all_deplibs_CXX=yes 12010 12011 dgux*) 12012 case $cc_basename in 12013 ec++*) 12014 # FIXME: insert proper C++ library support 12015 ld_shlibs_CXX=no 12016 ;; 12017 ghcx*) 12018 # Green Hills C++ Compiler 12019 # FIXME: insert proper C++ library support 12020 ld_shlibs_CXX=no 12021 ;; 12022 *) 12023 # FIXME: insert proper C++ library support 12024 ld_shlibs_CXX=no 12025 ;; 12026 esac 12027 ;; 12028 12029 freebsd[12]*) 12030 # C++ shared libraries reported to be fairly broken before 12031 # switch to ELF 12032 ld_shlibs_CXX=no 12033 ;; 12034 12035 freebsd-elf*) 12036 archive_cmds_need_lc_CXX=no 12037 ;; 12038 12039 freebsd* | dragonfly*) 12040 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12041 # conventions 12042 ld_shlibs_CXX=yes 12043 ;; 12044 12045 gnu*) 12046 ;; 12047 12048 hpux9*) 12049 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12050 hardcode_libdir_separator_CXX=: 12051 export_dynamic_flag_spec_CXX='${wl}-E' 12052 hardcode_direct_CXX=yes 12053 hardcode_minus_L_CXX=yes # Not in the search PATH, 12054 # but as the default 12055 # location of the library. 12056 12057 case $cc_basename in 12058 CC*) 12059 # FIXME: insert proper C++ library support 12060 ld_shlibs_CXX=no 12061 ;; 12062 aCC*) 12063 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12064 # Commands to make compiler produce verbose output that lists 12065 # what "hidden" libraries, object files and flags are used when 12066 # linking a shared library. 12067 # 12068 # There doesn't appear to be a way to prevent this compiler from 12069 # explicitly linking system object files so we need to strip them 12070 # from the output so that they don't get included in the library 12071 # dependencies. 12072 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; $ECHO "X$list" | $Xsed' 12073 ;; 12074 *) 12075 if test "$GXX" = yes; then 12076 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12077 else 12078 # FIXME: insert proper C++ library support 12079 ld_shlibs_CXX=no 12080 fi 12081 ;; 12082 esac 12083 ;; 12084 12085 hpux10*|hpux11*) 12086 if test $with_gnu_ld = no; then 12087 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12088 hardcode_libdir_separator_CXX=: 12089 12090 case $host_cpu in 12091 hppa*64*|ia64*) 12092 ;; 12093 *) 12094 export_dynamic_flag_spec_CXX='${wl}-E' 12095 ;; 12096 esac 12097 fi 12098 case $host_cpu in 12099 hppa*64*|ia64*) 12100 hardcode_direct_CXX=no 12101 hardcode_shlibpath_var_CXX=no 12102 ;; 12103 *) 12104 hardcode_direct_CXX=yes 12105 hardcode_direct_absolute_CXX=yes 12106 hardcode_minus_L_CXX=yes # Not in the search PATH, 12107 # but as the default 12108 # location of the library. 12109 ;; 12110 esac 12111 12112 case $cc_basename in 12113 CC*) 12114 # FIXME: insert proper C++ library support 12115 ld_shlibs_CXX=no 12116 ;; 12117 aCC*) 12118 case $host_cpu in 12119 hppa*64*) 12120 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12121 ;; 12122 ia64*) 12123 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12124 ;; 12125 *) 12126 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12127 ;; 12128 esac 12129 # Commands to make compiler produce verbose output that lists 12130 # what "hidden" libraries, object files and flags are used when 12131 # linking a shared library. 12132 # 12133 # There doesn't appear to be a way to prevent this compiler from 12134 # explicitly linking system object files so we need to strip them 12135 # from the output so that they don't get included in the library 12136 # dependencies. 12137 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12138 ;; 12139 *) 12140 if test "$GXX" = yes; then 12141 if test $with_gnu_ld = no; then 12142 case $host_cpu in 12143 hppa*64*) 12144 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12145 ;; 12146 ia64*) 12147 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12148 ;; 12149 *) 12150 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12151 ;; 12152 esac 12153 fi 12154 else 12155 # FIXME: insert proper C++ library support 12156 ld_shlibs_CXX=no 12157 fi 12158 ;; 12159 esac 12160 ;; 12161 12162 interix[3-9]*) 12163 hardcode_direct_CXX=no 12164 hardcode_shlibpath_var_CXX=no 12165 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12166 export_dynamic_flag_spec_CXX='${wl}-E' 12167 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12168 # Instead, shared libraries are loaded at an image base (0x10000000 by 12169 # default) and relocated if they conflict, which is a slow very memory 12170 # consuming and fragmenting process. To avoid this, we pick a random, 12171 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12172 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12173 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' 12174 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' 12009 12175 ;; 12010 esac 12011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12012 hardcode_libdir_separator_CXX=: 12013 ;; 12014 linux* | k*bsd*-gnu) 12015 case $cc_basename in 12016 KCC*) 12017 # Kuck and Associates, Inc. (KAI) C++ Compiler 12018 12019 # KCC will only create a shared library if the output file 12020 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12021 # to its proper name (with version) after linking. 12022 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' 12023 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' 12024 # Commands to make compiler produce verbose output that lists 12025 # what "hidden" libraries, object files and flags are used when 12026 # linking a shared library. 12027 # 12028 # There doesn't appear to be a way to prevent this compiler from 12029 # explicitly linking system object files so we need to strip them 12030 # from the output so that they don't get included in the library 12031 # dependencies. 12032 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; echo $list' 12033 12034 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 12035 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12036 12037 # Archives containing C++ object files must be created using 12038 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12039 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12040 ;; 12041 icpc*) 12042 # Intel C++ 12043 with_gnu_ld=yes 12044 # version 8.0 and above of icpc choke on multiply defined symbols 12045 # if we add $predep_objects and $postdep_objects, however 7.1 and 12046 # earlier do not add the objects themselves. 12047 case `$CC -V 2>&1` in 12048 *"Version 7."*) 12049 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12050 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' 12051 ;; 12052 *) # Version 8.0 or newer 12053 tmp_idyn= 12054 case $host_cpu in 12055 ia64*) tmp_idyn=' -i_dynamic';; 12056 esac 12057 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12058 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' 12059 ;; 12060 esac 12061 archive_cmds_need_lc_CXX=no 12062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12063 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12064 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12065 ;; 12066 pgCC* | pgcpp*) 12067 # Portland Group C++ compiler 12068 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12069 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' 12070 12071 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12073 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 12176 irix5* | irix6*) 12177 case $cc_basename in 12178 CC*) 12179 # SGI C++ 12180 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12181 12182 # Archives containing C++ object files must be created using 12183 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12184 # necessary to make sure instantiated templates are included 12185 # in the archive. 12186 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12187 ;; 12188 *) 12189 if test "$GXX" = yes; then 12190 if test "$with_gnu_ld" = no; then 12191 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12192 else 12193 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' 12194 fi 12195 fi 12196 link_all_deplibs_CXX=yes 12197 ;; 12198 esac 12199 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12200 hardcode_libdir_separator_CXX=: 12201 inherit_rpath_CXX=yes 12074 12202 ;; 12075 cxx*) 12076 # Compaq C++ 12077 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12078 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' 12079 12080 runpath_var=LD_RUN_PATH 12081 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12082 hardcode_libdir_separator_CXX=: 12083 12084 # Commands to make compiler produce verbose output that lists 12085 # what "hidden" libraries, object files and flags are used when 12086 # linking a shared library. 12087 # 12088 # There doesn't appear to be a way to prevent this compiler from 12089 # explicitly linking system object files so we need to strip them 12090 # from the output so that they don't get included in the library 12091 # dependencies. 12092 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12093 ;; 12094 *) 12095 case `$CC -V 2>&1 | sed 5q` in 12096 *Sun\ C*) 12097 # Sun C++ 5.9 12098 no_undefined_flag_CXX=' -zdefs' 12099 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12100 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' 12101 hardcode_libdir_flag_spec_CXX='-R$libdir' 12102 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 12103 12104 # Not sure whether something based on 12105 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12106 # would be better. 12107 output_verbose_link_cmd='echo' 12108 12109 # Archives containing C++ object files must be created using 12110 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12111 # necessary to make sure instantiated templates are included 12112 # in the archive. 12113 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12114 ;; 12203 12204 linux* | k*bsd*-gnu) 12205 case $cc_basename in 12206 KCC*) 12207 # Kuck and Associates, Inc. (KAI) C++ Compiler 12208 12209 # KCC will only create a shared library if the output file 12210 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12211 # to its proper name (with version) after linking. 12212 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' 12213 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' 12214 # Commands to make compiler produce verbose output that lists 12215 # what "hidden" libraries, object files and flags are used when 12216 # linking a shared library. 12217 # 12218 # There doesn't appear to be a way to prevent this compiler from 12219 # explicitly linking system object files so we need to strip them 12220 # from the output so that they don't get included in the library 12221 # dependencies. 12222 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; $ECHO "X$list" | $Xsed' 12223 12224 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12226 12227 # Archives containing C++ object files must be created using 12228 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12229 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12230 ;; 12231 icpc* | ecpc* ) 12232 # Intel C++ 12233 with_gnu_ld=yes 12234 # version 8.0 and above of icpc choke on multiply defined symbols 12235 # if we add $predep_objects and $postdep_objects, however 7.1 and 12236 # earlier do not add the objects themselves. 12237 case `$CC -V 2>&1` in 12238 *"Version 7."*) 12239 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12240 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' 12241 ;; 12242 *) # Version 8.0 or newer 12243 tmp_idyn= 12244 case $host_cpu in 12245 ia64*) tmp_idyn=' -i_dynamic';; 12246 esac 12247 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12248 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' 12249 ;; 12250 esac 12251 archive_cmds_need_lc_CXX=no 12252 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12253 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12254 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12255 ;; 12256 pgCC* | pgcpp*) 12257 # Portland Group C++ compiler 12258 case `$CC -V` in 12259 *pgCC\ [1-5]* | *pgcpp\ [1-5]*) 12260 prelink_cmds_CXX='tpldir=Template.dir~ 12261 rm -rf $tpldir~ 12262 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12263 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12264 old_archive_cmds_CXX='tpldir=Template.dir~ 12265 rm -rf $tpldir~ 12266 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12267 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12268 $RANLIB $oldlib' 12269 archive_cmds_CXX='tpldir=Template.dir~ 12270 rm -rf $tpldir~ 12271 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12272 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12273 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12274 rm -rf $tpldir~ 12275 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12276 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12277 ;; 12278 *) # Version 6 will use weak symbols 12279 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12280 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' 12281 ;; 12282 esac 12283 12284 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12285 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12286 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 12287 ;; 12288 cxx*) 12289 # Compaq C++ 12290 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12291 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' 12292 12293 runpath_var=LD_RUN_PATH 12294 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12295 hardcode_libdir_separator_CXX=: 12296 12297 # Commands to make compiler produce verbose output that lists 12298 # what "hidden" libraries, object files and flags are used when 12299 # linking a shared library. 12300 # 12301 # There doesn't appear to be a way to prevent this compiler from 12302 # explicitly linking system object files so we need to strip them 12303 # from the output so that they don't get included in the library 12304 # dependencies. 12305 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12306 ;; 12307 xl*) 12308 # IBM XL 8.0 on PPC, with GNU ld 12309 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12311 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12312 if test "x$supports_anon_versioning" = xyes; then 12313 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12314 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12315 echo "local: *; };" >> $output_objdir/$libname.ver~ 12316 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12317 fi 12318 ;; 12319 *) 12320 case `$CC -V 2>&1 | sed 5q` in 12321 *Sun\ C*) 12322 # Sun C++ 5.9 12323 no_undefined_flag_CXX=' -zdefs' 12324 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12325 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' 12326 hardcode_libdir_flag_spec_CXX='-R$libdir' 12327 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 12328 compiler_needs_object_CXX=yes 12329 12330 # Not sure whether something based on 12331 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12332 # would be better. 12333 output_verbose_link_cmd='echo' 12334 12335 # Archives containing C++ object files must be created using 12336 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12337 # necessary to make sure instantiated templates are included 12338 # in the archive. 12339 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12340 ;; 12341 esac 12342 ;; 12115 12343 esac 12116 12344 ;; 12117 esac 12118 ;; 12119 lynxos*) 12120 # FIXME: insert proper C++ library support 12121 ld_shlibs_CXX=no 12122 ;; 12123 m88k*) 12124 # FIXME: insert proper C++ library support 12125 ld_shlibs_CXX=no 12126 ;; 12127 mvs*) 12128 case $cc_basename in 12129 cxx*) 12130 # FIXME: insert proper C++ library support 12345 12346 lynxos*) 12347 # FIXME: insert proper C++ library support 12131 12348 ld_shlibs_CXX=no 12132 12349 ;; 12133 *) 12134 # FIXME: insert proper C++ library support 12350 12351 m88k*) 12352 # FIXME: insert proper C++ library support 12353 ld_shlibs_CXX=no 12354 ;; 12355 12356 mvs*) 12357 case $cc_basename in 12358 cxx*) 12359 # FIXME: insert proper C++ library support 12360 ld_shlibs_CXX=no 12361 ;; 12362 *) 12363 # FIXME: insert proper C++ library support 12364 ld_shlibs_CXX=no 12365 ;; 12366 esac 12367 ;; 12368 12369 netbsd*) 12370 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12371 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12372 wlarc= 12373 hardcode_libdir_flag_spec_CXX='-R$libdir' 12374 hardcode_direct_CXX=yes 12375 hardcode_shlibpath_var_CXX=no 12376 fi 12377 # Workaround some broken pre-1.5 toolchains 12378 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12379 ;; 12380 12381 *nto* | *qnx*) 12382 ld_shlibs_CXX=yes 12383 ;; 12384 12385 openbsd2*) 12386 # C++ shared libraries are fairly broken 12135 12387 ld_shlibs_CXX=no 12136 12388 ;; 12137 esac 12138 ;; 12139 netbsd*) 12140 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12141 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12142 wlarc= 12143 hardcode_libdir_flag_spec_CXX='-R$libdir' 12144 hardcode_direct_CXX=yes 12145 hardcode_shlibpath_var_CXX=no 12146 fi 12147 # Workaround some broken pre-1.5 toolchains 12148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12149 ;; 12150 openbsd2*) 12151 # C++ shared libraries are fairly broken 12152 ld_shlibs_CXX=no 12153 ;; 12154 openbsd*) 12155 if test -f /usr/libexec/ld.so; then 12156 hardcode_direct_CXX=yes 12157 hardcode_shlibpath_var_CXX=no 12158 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12160 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12161 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12162 export_dynamic_flag_spec_CXX='${wl}-E' 12163 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12164 fi 12165 output_verbose_link_cmd='echo' 12166 else 12167 ld_shlibs_CXX=no 12168 fi 12169 ;; 12170 osf3*) 12171 case $cc_basename in 12172 KCC*) 12173 # Kuck and Associates, Inc. (KAI) C++ Compiler 12174 12175 # KCC will only create a shared library if the output file 12176 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12177 # to its proper name (with version) after linking. 12178 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' 12179 12180 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12181 hardcode_libdir_separator_CXX=: 12182 12183 # Archives containing C++ object files must be created using 12184 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12185 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12186 12187 ;; 12188 RCC*) 12189 # Rational C++ 2.4.1 12190 # FIXME: insert proper C++ library support 12191 ld_shlibs_CXX=no 12192 ;; 12193 cxx*) 12194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12195 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12196 12197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12198 hardcode_libdir_separator_CXX=: 12199 12200 # Commands to make compiler produce verbose output that lists 12201 # what "hidden" libraries, object files and flags are used when 12202 # linking a shared library. 12203 # 12204 # There doesn't appear to be a way to prevent this compiler from 12205 # explicitly linking system object files so we need to strip them 12206 # from the output so that they don't get included in the library 12207 # dependencies. 12208 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12209 ;; 12210 *) 12211 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12212 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12213 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12214 12215 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12216 hardcode_libdir_separator_CXX=: 12217 12218 # Commands to make compiler produce verbose output that lists 12219 # what "hidden" libraries, object files and flags are used when 12220 # linking a shared library. 12221 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12222 12389 12390 openbsd*) 12391 if test -f /usr/libexec/ld.so; then 12392 hardcode_direct_CXX=yes 12393 hardcode_shlibpath_var_CXX=no 12394 hardcode_direct_absolute_CXX=yes 12395 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12396 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12397 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12398 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12399 export_dynamic_flag_spec_CXX='${wl}-E' 12400 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12401 fi 12402 output_verbose_link_cmd=echo 12223 12403 else 12224 # FIXME: insert proper C++ library support12225 12404 ld_shlibs_CXX=no 12226 12405 fi 12227 12406 ;; 12228 esac 12229 ;; 12230 osf4* | osf5*) 12231 case $cc_basename in 12232 KCC*) 12233 # Kuck and Associates, Inc. (KAI) C++ Compiler 12234 12235 # KCC will only create a shared library if the output file 12236 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12237 # to its proper name (with version) after linking. 12238 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' 12239 12240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12241 hardcode_libdir_separator_CXX=: 12242 12243 # Archives containing C++ object files must be created using 12244 # the KAI C++ compiler. 12245 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 12246 ;; 12247 RCC*) 12248 # Rational C++ 2.4.1 12249 # FIXME: insert proper C++ library support 12250 ld_shlibs_CXX=no 12251 ;; 12252 cxx*) 12253 allow_undefined_flag_CXX=' -expect_unresolved \*' 12254 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 12255 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12256 echo "-hidden">> $lib.exp~ 12257 $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~ 12258 $rm $lib.exp' 12259 12260 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12261 hardcode_libdir_separator_CXX=: 12262 12263 # Commands to make compiler produce verbose output that lists 12264 # what "hidden" libraries, object files and flags are used when 12265 # linking a shared library. 12266 # 12267 # There doesn't appear to be a way to prevent this compiler from 12268 # explicitly linking system object files so we need to strip them 12269 # from the output so that they don't get included in the library 12270 # dependencies. 12271 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 12272 ;; 12273 *) 12274 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12275 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12276 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12277 12278 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12279 hardcode_libdir_separator_CXX=: 12280 12281 # Commands to make compiler produce verbose output that lists 12282 # what "hidden" libraries, object files and flags are used when 12283 # linking a shared library. 12284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 12285 12286 else 12287 # FIXME: insert proper C++ library support 12288 ld_shlibs_CXX=no 12289 fi 12290 ;; 12291 esac 12292 ;; 12293 psos*) 12294 # FIXME: insert proper C++ library support 12295 ld_shlibs_CXX=no 12296 ;; 12297 sunos4*) 12298 case $cc_basename in 12299 CC*) 12300 # Sun C++ 4.x 12301 # FIXME: insert proper C++ library support 12302 ld_shlibs_CXX=no 12303 ;; 12304 lcc*) 12305 # Lucid 12306 # FIXME: insert proper C++ library support 12307 ld_shlibs_CXX=no 12308 ;; 12309 *) 12310 # FIXME: insert proper C++ library support 12311 ld_shlibs_CXX=no 12312 ;; 12313 esac 12314 ;; 12315 solaris*) 12316 case $cc_basename in 12317 CC*) 12318 # Sun C++ 4.2, 5.x and Centerline C++ 12319 archive_cmds_need_lc_CXX=yes 12320 no_undefined_flag_CXX=' -zdefs' 12321 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12322 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12323 $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' 12324 12325 hardcode_libdir_flag_spec_CXX='-R$libdir' 12326 hardcode_shlibpath_var_CXX=no 12327 case $host_os in 12328 solaris2.[0-5] | solaris2.[0-5].*) ;; 12329 *) 12330 # The compiler driver will combine and reorder linker options, 12331 # but understands `-z linker_flag'. 12332 # Supported since Solaris 2.6 (maybe 2.5.1?) 12333 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12407 12408 osf3* | osf4* | osf5*) 12409 case $cc_basename in 12410 KCC*) 12411 # Kuck and Associates, Inc. (KAI) C++ Compiler 12412 12413 # KCC will only create a shared library if the output file 12414 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12415 # to its proper name (with version) after linking. 12416 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' 12417 12418 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12419 hardcode_libdir_separator_CXX=: 12420 12421 # Archives containing C++ object files must be created using 12422 # the KAI C++ compiler. 12423 case $host in 12424 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12425 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12426 esac 12334 12427 ;; 12335 esac 12336 link_all_deplibs_CXX=yes 12337 12338 output_verbose_link_cmd='echo' 12339 12340 # Archives containing C++ object files must be created using 12341 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12342 # necessary to make sure instantiated templates are included 12343 # in the archive. 12344 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12345 ;; 12346 gcx*) 12347 # Green Hills C++ Compiler 12348 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12349 12350 # The C++ compiler must be used to create the archive. 12351 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12352 ;; 12353 *) 12354 # GNU C++ compiler with Solaris linker 12355 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12356 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12357 if $CC --version | grep -v '^2\.7' > /dev/null; then 12358 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12359 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12360 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12428 RCC*) 12429 # Rational C++ 2.4.1 12430 # FIXME: insert proper C++ library support 12431 ld_shlibs_CXX=no 12432 ;; 12433 cxx*) 12434 case $host in 12435 osf3*) 12436 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12437 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12438 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12439 ;; 12440 *) 12441 allow_undefined_flag_CXX=' -expect_unresolved \*' 12442 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12443 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12444 echo "-hidden">> $lib.exp~ 12445 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ 12446 $RM $lib.exp' 12447 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12448 ;; 12449 esac 12450 12451 hardcode_libdir_separator_CXX=: 12361 12452 12362 12453 # Commands to make compiler produce verbose output that lists 12363 12454 # what "hidden" libraries, object files and flags are used when 12364 12455 # linking a shared library. 12365 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12366 else 12367 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12368 # platform. 12369 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12370 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 12371 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 12372 12373 # Commands to make compiler produce verbose output that lists 12374 # what "hidden" libraries, object files and flags are used when 12375 # linking a shared library. 12376 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 12377 fi 12378 12379 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12380 case $host_os in 12381 solaris2.[0-5] | solaris2.[0-5].*) ;; 12456 # 12457 # There doesn't appear to be a way to prevent this compiler from 12458 # explicitly linking system object files so we need to strip them 12459 # from the output so that they don't get included in the library 12460 # dependencies. 12461 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' 12462 ;; 12382 12463 *) 12383 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12464 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12465 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12466 case $host in 12467 osf3*) 12468 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12469 ;; 12470 *) 12471 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12472 ;; 12473 esac 12474 12475 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12476 hardcode_libdir_separator_CXX=: 12477 12478 # Commands to make compiler produce verbose output that lists 12479 # what "hidden" libraries, object files and flags are used when 12480 # linking a shared library. 12481 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12482 12483 else 12484 # FIXME: insert proper C++ library support 12485 ld_shlibs_CXX=no 12486 fi 12384 12487 ;; 12385 esac 12386 fi 12387 ;; 12488 esac 12489 ;; 12490 12491 psos*) 12492 # FIXME: insert proper C++ library support 12493 ld_shlibs_CXX=no 12494 ;; 12495 12496 sunos4*) 12497 case $cc_basename in 12498 CC*) 12499 # Sun C++ 4.x 12500 # FIXME: insert proper C++ library support 12501 ld_shlibs_CXX=no 12502 ;; 12503 lcc*) 12504 # Lucid 12505 # FIXME: insert proper C++ library support 12506 ld_shlibs_CXX=no 12507 ;; 12508 *) 12509 # FIXME: insert proper C++ library support 12510 ld_shlibs_CXX=no 12511 ;; 12512 esac 12513 ;; 12514 12515 solaris*) 12516 case $cc_basename in 12517 CC*) 12518 # Sun C++ 4.2, 5.x and Centerline C++ 12519 archive_cmds_need_lc_CXX=yes 12520 no_undefined_flag_CXX=' -zdefs' 12521 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12522 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12523 $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' 12524 12525 hardcode_libdir_flag_spec_CXX='-R$libdir' 12526 hardcode_shlibpath_var_CXX=no 12527 case $host_os in 12528 solaris2.[0-5] | solaris2.[0-5].*) ;; 12529 *) 12530 # The compiler driver will combine and reorder linker options, 12531 # but understands `-z linker_flag'. 12532 # Supported since Solaris 2.6 (maybe 2.5.1?) 12533 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12534 ;; 12535 esac 12536 link_all_deplibs_CXX=yes 12537 12538 output_verbose_link_cmd='echo' 12539 12540 # Archives containing C++ object files must be created using 12541 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12542 # necessary to make sure instantiated templates are included 12543 # in the archive. 12544 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12545 ;; 12546 gcx*) 12547 # Green Hills C++ Compiler 12548 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12549 12550 # The C++ compiler must be used to create the archive. 12551 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12552 ;; 12553 *) 12554 # GNU C++ compiler with Solaris linker 12555 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12556 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12557 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12558 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12559 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12560 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12561 12562 # Commands to make compiler produce verbose output that lists 12563 # what "hidden" libraries, object files and flags are used when 12564 # linking a shared library. 12565 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12566 else 12567 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12568 # platform. 12569 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12570 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12571 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12572 12573 # Commands to make compiler produce verbose output that lists 12574 # what "hidden" libraries, object files and flags are used when 12575 # linking a shared library. 12576 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' 12577 fi 12578 12579 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12580 case $host_os in 12581 solaris2.[0-5] | solaris2.[0-5].*) ;; 12582 *) 12583 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12584 ;; 12585 esac 12586 fi 12587 ;; 12588 esac 12589 ;; 12590 12591 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12592 no_undefined_flag_CXX='${wl}-z,text' 12593 archive_cmds_need_lc_CXX=no 12594 hardcode_shlibpath_var_CXX=no 12595 runpath_var='LD_RUN_PATH' 12596 12597 case $cc_basename in 12598 CC*) 12599 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12600 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12601 ;; 12602 *) 12603 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12604 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12605 ;; 12606 esac 12607 ;; 12608 12609 sysv5* | sco3.2v5* | sco5v6*) 12610 # Note: We can NOT use -z defs as we might desire, because we do not 12611 # link with -lc, and that would cause any symbols used from libc to 12612 # always be unresolved, which means just about no library would 12613 # ever link correctly. If we're not using GNU ld we use -z text 12614 # though, which does catch some bad symbols but isn't as heavy-handed 12615 # as -z defs. 12616 no_undefined_flag_CXX='${wl}-z,text' 12617 allow_undefined_flag_CXX='${wl}-z,nodefs' 12618 archive_cmds_need_lc_CXX=no 12619 hardcode_shlibpath_var_CXX=no 12620 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12621 hardcode_libdir_separator_CXX=':' 12622 link_all_deplibs_CXX=yes 12623 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12624 runpath_var='LD_RUN_PATH' 12625 12626 case $cc_basename in 12627 CC*) 12628 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12629 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12630 ;; 12631 *) 12632 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12633 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12634 ;; 12635 esac 12636 ;; 12637 12638 tandem*) 12639 case $cc_basename in 12640 NCC*) 12641 # NonStop-UX NCC 3.20 12642 # FIXME: insert proper C++ library support 12643 ld_shlibs_CXX=no 12644 ;; 12645 *) 12646 # FIXME: insert proper C++ library support 12647 ld_shlibs_CXX=no 12648 ;; 12649 esac 12650 ;; 12651 12652 vxworks*) 12653 # FIXME: insert proper C++ library support 12654 ld_shlibs_CXX=no 12655 ;; 12656 12657 *) 12658 # FIXME: insert proper C++ library support 12659 ld_shlibs_CXX=no 12660 ;; 12388 12661 esac 12389 ;; 12390 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12391 no_undefined_flag_CXX='${wl}-z,text' 12392 archive_cmds_need_lc_CXX=no 12393 hardcode_shlibpath_var_CXX=no 12394 runpath_var='LD_RUN_PATH' 12395 12396 case $cc_basename in 12397 CC*) 12398 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12399 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12400 ;; 12401 *) 12402 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12403 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12404 ;; 12405 esac 12406 ;; 12407 sysv5* | sco3.2v5* | sco5v6*) 12408 # Note: We can NOT use -z defs as we might desire, because we do not 12409 # link with -lc, and that would cause any symbols used from libc to 12410 # always be unresolved, which means just about no library would 12411 # ever link correctly. If we're not using GNU ld we use -z text 12412 # though, which does catch some bad symbols but isn't as heavy-handed 12413 # as -z defs. 12414 # For security reasons, it is highly recommended that you always 12415 # use absolute paths for naming shared libraries, and exclude the 12416 # DT_RUNPATH tag from executables and libraries. But doing so 12417 # requires that you compile everything twice, which is a pain. 12418 # So that behaviour is only enabled if SCOABSPATH is set to a 12419 # non-empty value in the environment. Most likely only useful for 12420 # creating official distributions of packages. 12421 # This is a hack until libtool officially supports absolute path 12422 # names for shared libraries. 12423 no_undefined_flag_CXX='${wl}-z,text' 12424 allow_undefined_flag_CXX='${wl}-z,nodefs' 12425 archive_cmds_need_lc_CXX=no 12426 hardcode_shlibpath_var_CXX=no 12427 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 12428 hardcode_libdir_separator_CXX=':' 12429 link_all_deplibs_CXX=yes 12430 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12431 runpath_var='LD_RUN_PATH' 12432 12433 case $cc_basename in 12434 CC*) 12435 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12436 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12437 ;; 12438 *) 12439 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12440 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 12441 ;; 12442 esac 12443 ;; 12444 tandem*) 12445 case $cc_basename in 12446 NCC*) 12447 # NonStop-UX NCC 3.20 12448 # FIXME: insert proper C++ library support 12449 ld_shlibs_CXX=no 12450 ;; 12451 *) 12452 # FIXME: insert proper C++ library support 12453 ld_shlibs_CXX=no 12454 ;; 12455 esac 12456 ;; 12457 vxworks*) 12458 # FIXME: insert proper C++ library support 12459 ld_shlibs_CXX=no 12460 ;; 12461 *) 12462 # FIXME: insert proper C++ library support 12463 ld_shlibs_CXX=no 12464 ;; 12465 esac 12466 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 12662 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12467 12664 $as_echo "$ld_shlibs_CXX" >&6; } 12468 test "$ld_shlibs_CXX" = no && can_build_shared=no 12469 12470 GCC_CXX="$GXX" 12471 LD_CXX="$LD" 12472 12473 cat > conftest.$ac_ext <<EOF 12665 test "$ld_shlibs_CXX" = no && can_build_shared=no 12666 12667 GCC_CXX="$GXX" 12668 LD_CXX="$LD" 12669 12670 ## CAVEAT EMPTOR: 12671 ## There is no encapsulation within the following macros, do not change 12672 ## the running order or otherwise move them around unless you know exactly 12673 ## what you are doing... 12674 # Dependencies to place before and after the object being linked: 12675 predep_objects_CXX= 12676 postdep_objects_CXX= 12677 predeps_CXX= 12678 postdeps_CXX= 12679 compiler_lib_search_path_CXX= 12680 12681 cat > conftest.$ac_ext <<_LT_EOF 12474 12682 class Foo 12475 12683 { … … 12479 12687 int a; 12480 12688 }; 12481 EOF12482 12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"")>&512689 _LT_EOF 12690 12691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12484 12692 (eval $ac_compile) 2>&5 12485 12693 ac_status=$? 12486 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&512487 (exit $ac_status); }; then12694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12695 test $ac_status = 0; }; then 12488 12696 # Parse the compiler output and extract the necessary 12489 12697 # objects, libraries and library flags. … … 12493 12701 pre_test_object_deps_done=no 12494 12702 12495 # The `*' in the case matches for architectures that use `case' in 12496 # $output_verbose_cmd can trigger glob expansion during the loop 12497 # eval without this substitution. 12498 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 12499 12500 for p in `eval $output_verbose_link_cmd`; do 12703 for p in `eval "$output_verbose_link_cmd"`; do 12501 12704 case $p in 12502 12705 … … 12504 12707 # Some compilers place space between "-{L,R}" and the path. 12505 12708 # Remove the space. 12506 if test $p = "-L" \12507 ||test $p = "-R"; then12709 if test $p = "-L" || 12710 test $p = "-R"; then 12508 12711 prev=$p 12509 12712 continue … … 12570 12773 fi 12571 12774 12572 $rm -f confest.$objext 12573 12574 compiler_lib_search_dirs_CXX= 12575 if test -n "$compiler_lib_search_path_CXX"; then 12576 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12577 fi 12775 $RM -f confest.$objext 12578 12776 12579 12777 # PORTME: override above test on systems where it is broken … … 12591 12789 *Sun\ C*) 12592 12790 # Sun C++ 5.9 12593 # 12791 12594 12792 # The more standards-conforming stlport4 library is 12595 12793 # incompatible with the Cstd library. Avoid specifying … … 12601 12799 ;; 12602 12800 esac 12801 12603 12802 if test "$solaris_use_stlport4" != yes; then 12604 12803 postdeps_CXX='-library=Cstd -library=Crun' … … 12632 12831 esac 12633 12832 12833 12634 12834 case " $postdeps_CXX " in 12635 12835 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 12636 12836 esac 12637 12638 lt_prog_compiler_wl_CXX= 12837 compiler_lib_search_dirs_CXX= 12838 if test -n "${compiler_lib_search_path_CXX}"; then 12839 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12840 fi 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 lt_prog_compiler_wl_CXX= 12639 12873 lt_prog_compiler_pic_CXX= 12640 12874 lt_prog_compiler_static_CXX= 12641 12875 12642 { $as_echo "$as_me:$ LINENO: checking for $compiler option to produce PIC" >&512876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12643 12877 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12644 12878 … … 12656 12890 fi 12657 12891 ;; 12892 12658 12893 amigaos*) 12659 # FIXME: we need at least 68020 code to build shared libraries, but 12660 # adding the `-m68020' flag to GCC prevents building anything better, 12661 # like `-m68040'. 12662 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12894 case $host_cpu in 12895 powerpc) 12896 # see comment about AmigaOS4 .so support 12897 lt_prog_compiler_pic_CXX='-fPIC' 12898 ;; 12899 m68k) 12900 # FIXME: we need at least 68020 code to build shared libraries, but 12901 # adding the `-m68020' flag to GCC prevents building anything better, 12902 # like `-m68040'. 12903 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12904 ;; 12905 esac 12663 12906 ;; 12907 12664 12908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12665 12909 # PIC is the default for these OSes. 12666 12910 ;; 12667 mingw* | cygwin* | os2* | pw32* )12911 mingw* | cygwin* | os2* | pw32* | cegcc*) 12668 12912 # This hack is so that the source file can tell whether it is being 12669 12913 # built for inclusion in a dll (and should export symbols for example). … … 12691 12935 ;; 12692 12936 hpux*) 12693 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12694 # not for PA HP-UX. 12937 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12938 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12939 # sets the default TLS model and affects inlining. 12695 12940 case $host_cpu in 12696 hppa*64* |ia64*)12941 hppa*64*) 12697 12942 ;; 12698 12943 *) … … 12700 12945 ;; 12701 12946 esac 12947 ;; 12948 *qnx* | *nto*) 12949 # QNX uses GNU C++, but need to define -shared option too, otherwise 12950 # it will coredump. 12951 lt_prog_compiler_pic_CXX='-fPIC -shared' 12702 12952 ;; 12703 12953 *) … … 12720 12970 cxch68*) 12721 12971 # Green Hills C++ Compiler 12722 # _LT_ AC_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"12972 # _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" 12723 12973 ;; 12724 12974 esac 12725 12975 ;; 12726 darwin*)12727 # PIC is the default on this platform12728 # Common symbols not allowed in MH_DYLIB files12729 case $cc_basename in12730 xlc*)12731 lt_prog_compiler_pic_CXX='-qnocommon'12732 lt_prog_compiler_wl_CXX='-Wl,'12733 ;;12734 esac12735 ;;12736 12976 dgux*) 12737 12977 case $cc_basename in … … 12797 13037 lt_prog_compiler_pic_CXX='-fPIC' 12798 13038 ;; 12799 icpc* | ecpc*)12800 # Intel C++13039 ecpc* ) 13040 # old Intel C++ for x86_64 which still supported -KPIC. 12801 13041 lt_prog_compiler_wl_CXX='-Wl,' 12802 13042 lt_prog_compiler_pic_CXX='-KPIC' 12803 13043 lt_prog_compiler_static_CXX='-static' 12804 13044 ;; 13045 icpc* ) 13046 # Intel C++, used to be incompatible with GCC. 13047 # ICC 10 doesn't accept -KPIC any more. 13048 lt_prog_compiler_wl_CXX='-Wl,' 13049 lt_prog_compiler_pic_CXX='-fPIC' 13050 lt_prog_compiler_static_CXX='-static' 13051 ;; 12805 13052 pgCC* | pgcpp*) 12806 # Portland Group C++ compiler .13053 # Portland Group C++ compiler 12807 13054 lt_prog_compiler_wl_CXX='-Wl,' 12808 13055 lt_prog_compiler_pic_CXX='-fpic' … … 12815 13062 lt_prog_compiler_pic_CXX= 12816 13063 lt_prog_compiler_static_CXX='-non_shared' 13064 ;; 13065 xlc* | xlC*) 13066 # IBM XL 8.0 on PPC 13067 lt_prog_compiler_wl_CXX='-Wl,' 13068 lt_prog_compiler_pic_CXX='-qpic' 13069 lt_prog_compiler_static_CXX='-qstaticlink' 12817 13070 ;; 12818 13071 *) … … 12843 13096 netbsd*) 12844 13097 ;; 13098 *qnx* | *nto*) 13099 # QNX uses GNU C++, but need to define -shared option too, otherwise 13100 # it will coredump. 13101 lt_prog_compiler_pic_CXX='-fPIC -shared' 13102 ;; 12845 13103 osf3* | osf4* | osf5*) 12846 13104 case $cc_basename in … … 12897 13155 esac 12898 13156 ;; 13157 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13158 case $cc_basename in 13159 CC*) 13160 lt_prog_compiler_wl_CXX='-Wl,' 13161 lt_prog_compiler_pic_CXX='-KPIC' 13162 lt_prog_compiler_static_CXX='-Bstatic' 13163 ;; 13164 esac 13165 ;; 12899 13166 tandem*) 12900 13167 case $cc_basename in … … 12907 13174 esac 12908 13175 ;; 12909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)12910 case $cc_basename in12911 CC*)12912 lt_prog_compiler_wl_CXX='-Wl,'12913 lt_prog_compiler_pic_CXX='-KPIC'12914 lt_prog_compiler_static_CXX='-Bstatic'12915 ;;12916 esac12917 ;;12918 13176 vxworks*) 12919 13177 ;; … … 12924 13182 fi 12925 13183 12926 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 13184 case $host_os in 13185 # For platforms which do not support PIC, -DPIC is meaningless: 13186 *djgpp*) 13187 lt_prog_compiler_pic_CXX= 13188 ;; 13189 *) 13190 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13191 ;; 13192 esac 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 12927 13194 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13195 13196 12928 13197 12929 13198 # … … 12931 13200 # 12932 13201 if test -n "$lt_prog_compiler_pic_CXX"; then 12933 12934 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 12935 13203 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 12936 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then 13204 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 12937 13205 $as_echo_n "(cached) " >&6 12938 13206 else 12939 13207 lt_cv_prog_compiler_pic_works_CXX=no 12940 ac_outfile=conftest.$ac_objext13208 ac_outfile=conftest.$ac_objext 12941 13209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12942 13210 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" … … 12950 13218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12951 13219 -e 's:$: $lt_compiler_flag:'` 12952 (eval echo "\"\$as_me:1 2952: $lt_compile\"" >&5)13220 (eval echo "\"\$as_me:13220: $lt_compile\"" >&5) 12953 13221 (eval "$lt_compile" 2>conftest.err) 12954 13222 ac_status=$? 12955 13223 cat conftest.err >&5 12956 echo "$as_me:1 2956: \$? = $ac_status" >&513224 echo "$as_me:13224: \$? = $ac_status" >&5 12957 13225 if (exit $ac_status) && test -s "$ac_outfile"; then 12958 13226 # The compiler can only warn and ignore the option if not recognized 12959 13227 # So say no if there are warnings other than the usual output. 12960 $ echo"X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp13228 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 12961 13229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12962 13230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then … … 12964 13232 fi 12965 13233 fi 12966 $ rmconftest*12967 12968 fi 12969 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&513234 $RM conftest* 13235 13236 fi 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 12970 13238 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 12971 13239 … … 12981 13249 12982 13250 fi 12983 case $host_os in 12984 # For platforms which do not support PIC, -DPIC is meaningless: 12985 *djgpp*) 12986 lt_prog_compiler_pic_CXX= 12987 ;; 12988 *) 12989 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 12990 ;; 12991 esac 13251 13252 12992 13253 12993 13254 # … … 12995 13256 # 12996 13257 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 12997 { $as_echo "$as_me:$ LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&513258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 12998 13259 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 12999 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then 13260 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13000 13261 $as_echo_n "(cached) " >&6 13001 13262 else … … 13010 13271 # Append any errors to the config.log. 13011 13272 cat conftest.err 1>&5 13012 $ echo"X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp13273 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 13013 13274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13014 13275 if diff conftest.exp conftest.er2 >/dev/null; then … … 13019 13280 fi 13020 13281 fi 13021 $ rm-r conftest*13282 $RM -r conftest* 13022 13283 LDFLAGS="$save_LDFLAGS" 13023 13284 13024 13285 fi 13025 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&513286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13026 13287 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13027 13288 … … 13033 13294 13034 13295 13035 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13296 13297 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13036 13299 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13037 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 13300 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13038 13301 $as_echo_n "(cached) " >&6 13039 13302 else 13040 13303 lt_cv_prog_compiler_c_o_CXX=no 13041 $ rm-r conftest 2>/dev/null13304 $RM -r conftest 2>/dev/null 13042 13305 mkdir conftest 13043 13306 cd conftest … … 13054 13317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13055 13318 -e 's:$: $lt_compiler_flag:'` 13056 (eval echo "\"\$as_me:13 056: $lt_compile\"" >&5)13319 (eval echo "\"\$as_me:13319: $lt_compile\"" >&5) 13057 13320 (eval "$lt_compile" 2>out/conftest.err) 13058 13321 ac_status=$? 13059 13322 cat out/conftest.err >&5 13060 echo "$as_me:13 060: \$? = $ac_status" >&513323 echo "$as_me:13323: \$? = $ac_status" >&5 13061 13324 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13062 13325 then 13063 13326 # The compiler can only warn and ignore the option if not recognized 13064 13327 # So say no if there are warnings 13065 $ echo"X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp13328 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13066 13329 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13067 13330 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then … … 13070 13333 fi 13071 13334 chmod u+w . 2>&5 13072 $ rmconftest*13335 $RM conftest* 13073 13336 # SGI C++ compiler will create directory out/ii_files/ for 13074 13337 # template instantiation 13075 test -d out/ii_files && $ rmout/ii_files/* && rmdir out/ii_files13076 $ rmout/* && rmdir out13338 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13339 $RM out/* && rmdir out 13077 13340 cd .. 13078 rmdir conftest13079 $ rmconftest*13080 13081 fi 13082 { $as_echo "$as_me:$ LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&513341 $RM -r conftest 13342 $RM conftest* 13343 13344 fi 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13083 13346 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13347 13348 13349 13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13351 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13352 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13353 $as_echo_n "(cached) " >&6 13354 else 13355 lt_cv_prog_compiler_c_o_CXX=no 13356 $RM -r conftest 2>/dev/null 13357 mkdir conftest 13358 cd conftest 13359 mkdir out 13360 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13361 13362 lt_compiler_flag="-o out/conftest2.$ac_objext" 13363 # Insert the option either (1) after the last *FLAGS variable, or 13364 # (2) before a word containing "conftest.", or (3) at the end. 13365 # Note that $ac_compile itself does not contain backslashes and begins 13366 # with a dollar sign (not a hyphen), so the echo should work correctly. 13367 lt_compile=`echo "$ac_compile" | $SED \ 13368 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13369 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13370 -e 's:$: $lt_compiler_flag:'` 13371 (eval echo "\"\$as_me:13371: $lt_compile\"" >&5) 13372 (eval "$lt_compile" 2>out/conftest.err) 13373 ac_status=$? 13374 cat out/conftest.err >&5 13375 echo "$as_me:13375: \$? = $ac_status" >&5 13376 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13377 then 13378 # The compiler can only warn and ignore the option if not recognized 13379 # So say no if there are warnings 13380 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 13381 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13382 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13383 lt_cv_prog_compiler_c_o_CXX=yes 13384 fi 13385 fi 13386 chmod u+w . 2>&5 13387 $RM conftest* 13388 # SGI C++ compiler will create directory out/ii_files/ for 13389 # template instantiation 13390 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13391 $RM out/* && rmdir out 13392 cd .. 13393 $RM -r conftest 13394 $RM conftest* 13395 13396 fi 13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13398 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13399 13400 13084 13401 13085 13402 … … 13087 13404 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13088 13405 # do not overwrite the value of need_locks provided by the user 13089 { $as_echo "$as_me:$ LINENO: checking if we can lock with hard links" >&513406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13090 13407 $as_echo_n "checking if we can lock with hard links... " >&6; } 13091 13408 hard_links=yes 13092 $ rmconftest*13409 $RM conftest* 13093 13410 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13094 13411 touch conftest.a 13095 13412 ln conftest.a conftest.b 2>&5 || hard_links=no 13096 13413 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13097 { $as_echo "$as_me:$ LINENO: result: $hard_links" >&513414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13098 13415 $as_echo "$hard_links" >&6; } 13099 13416 if test "$hard_links" = no; then 13100 { $as_echo "$as_me:$ LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&513417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13101 13418 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13102 13419 need_locks=warn … … 13106 13423 fi 13107 13424 13108 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13425 13426 13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13109 13428 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13110 13429 … … 13114 13433 # If we're using GNU nm, then we don't want the "-C" option. 13115 13434 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13116 if $NM -V 2>&1 | grep'GNU' > /dev/null; then13117 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'13435 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13436 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13118 13437 else 13119 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'13438 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13120 13439 fi 13121 13440 ;; … … 13123 13442 export_symbols_cmds_CXX="$ltdll_cmds" 13124 13443 ;; 13125 cygwin* | mingw*) 13126 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 13444 cygwin* | mingw* | cegcc*) 13445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13446 ;; 13447 linux* | k*bsd*-gnu) 13448 link_all_deplibs_CXX=no 13127 13449 ;; 13128 13450 *) … … 13132 13454 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13133 13455 13134 { $as_echo "$as_me:$ LINENO: result: $ld_shlibs_CXX" >&513456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13135 13457 $as_echo "$ld_shlibs_CXX" >&6; } 13136 13458 test "$ld_shlibs_CXX" = no && can_build_shared=no 13459 13460 with_gnu_ld_CXX=$with_gnu_ld 13461 13462 13463 13464 13465 13137 13466 13138 13467 # … … 13153 13482 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13154 13483 # to ld, don't add -lc before -lgcc. 13155 { $as_echo "$as_me:$ LINENO: checking whether -lc should be explicitly linked in" >&513484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13156 13485 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13157 $ rmconftest*13486 $RM conftest* 13158 13487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13159 13488 13160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"")>&513489 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13161 13490 (eval $ac_compile) 2>&5 13162 13491 ac_status=$? 13163 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&513164 (exit $ac_status); } 2>conftest.err; then13492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13493 test $ac_status = 0; } 2>conftest.err; then 13165 13494 soname=conftest 13166 13495 lib=conftest … … 13176 13505 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13177 13506 allow_undefined_flag_CXX= 13178 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"")>&513179 (eval $archive_cmds_CXX 2\>\&1 \| grep\" -lc \" \>/dev/null 2\>\&1) 2>&513507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13508 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13180 13509 ac_status=$? 13181 $as_echo "$as_me:$ LINENO: \$? = $ac_status" >&513182 (exit $ac_status); }13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13511 test $ac_status = 0; } 13183 13512 then 13184 13513 archive_cmds_need_lc_CXX=no … … 13190 13519 cat conftest.err 1>&5 13191 13520 fi 13192 $ rmconftest*13193 { $as_echo "$as_me:$ LINENO: result: $archive_cmds_need_lc_CXX" >&513521 $RM conftest* 13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 13194 13523 $as_echo "$archive_cmds_need_lc_CXX" >&6; } 13195 13524 ;; … … 13199 13528 esac 13200 13529 13201 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13202 13594 $as_echo_n "checking dynamic linker characteristics... " >&6; } 13595 13203 13596 library_names_spec= 13204 13597 libname_spec='lib$name' … … 13214 13607 dynamic_linker="$host_os ld.so" 13215 13608 sys_lib_dlsearch_path_spec="/lib /usr/lib" 13216 13217 13609 need_lib_prefix=unknown 13218 13610 hardcode_into_libs=no … … 13251 13643 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13252 13644 echo ' yes ' 13253 echo '#endif'; } | ${CC} -E - | grepyes > /dev/null; then13645 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13254 13646 : 13255 13647 else … … 13277 13669 13278 13670 amigaos*) 13279 library_names_spec='$libname.ixlibrary $libname.a' 13280 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13281 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 13671 case $host_cpu in 13672 powerpc) 13673 # Since July 2007 AmigaOS4 officially supports .so libraries. 13674 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13676 ;; 13677 m68k) 13678 library_names_spec='$libname.ixlibrary $libname.a' 13679 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13680 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 13681 ;; 13682 esac 13282 13683 ;; 13283 13684 … … 13302 13703 ;; 13303 13704 13304 cygwin* | mingw* | pw32* )13705 cygwin* | mingw* | pw32* | cegcc*) 13305 13706 version_type=windows 13306 13707 shrext_cmds=".dll" … … 13309 13710 13310 13711 case $GCC,$host_os in 13311 yes,cygwin* | yes,mingw* | yes,pw32* )13712 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13312 13713 library_names_spec='$libname.dll.a' 13313 13714 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13314 13715 postinstall_cmds='base_file=`basename \${file}`~ 13315 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~13716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13316 13717 dldir=$destdir/`dirname \$dlpath`~ 13317 13718 test -d \$dldir || mkdir -p \$dldir~ 13318 13719 $install_prog $dir/$dlname \$dldir/$dlname~ 13319 chmod a+x \$dldir/$dlname' 13720 chmod a+x \$dldir/$dlname~ 13721 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13722 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13723 fi' 13320 13724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13321 13725 dlpath=$dir/\$dldll~ 13322 $ rm\$dlpath'13726 $RM \$dlpath' 13323 13727 shlibpath_overrides_runpath=yes 13324 13728 … … 13329 13733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13330 13734 ;; 13331 mingw* )13735 mingw* | cegcc*) 13332 13736 # MinGW DLLs use traditional 'lib' prefix 13333 13737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep"^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`13335 if echo "$sys_lib_search_path_spec" | grep';[c-zC-Z]:/' >/dev/null; then13738 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13739 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 13336 13740 # It is most probably a Windows format PATH printed by 13337 13741 # mingw gcc, but we are running on Cygwin. Gcc prints its search … … 13340 13744 # especially as we might pass files found there to a mingw objdump, 13341 13745 # which wouldn't understand a cygwinified path. Ahh. 13342 sys_lib_search_path_spec=` echo"$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`13746 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13343 13747 else 13344 sys_lib_search_path_spec=` echo"$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`13748 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13345 13749 fi 13346 13750 ;; … … 13366 13770 need_lib_prefix=no 13367 13771 need_version=no 13368 library_names_spec='${libname}${release}${ versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'13772 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13369 13773 soname_spec='${libname}${release}${major}$shared_ext' 13370 13774 shlibpath_overrides_runpath=yes … … 13464 13868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13465 13869 ;; 13466 hppa*64*)13467 shrext_cmds='.sl'13468 hardcode_into_libs=yes13469 dynamic_linker="$host_os dld.sl"13470 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH13471 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.13472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'13473 soname_spec='${libname}${release}${shared_ext}$major'13474 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"13475 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec13476 ;;13477 *)13870 hppa*64*) 13871 shrext_cmds='.sl' 13872 hardcode_into_libs=yes 13873 dynamic_linker="$host_os dld.sl" 13874 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13875 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13877 soname_spec='${libname}${release}${shared_ext}$major' 13878 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13879 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13880 ;; 13881 *) 13478 13882 shrext_cmds='.sl' 13479 13883 dynamic_linker="$host_os dld.sl" … … 13552 13956 shlibpath_var=LD_LIBRARY_PATH 13553 13957 shlibpath_overrides_runpath=no 13958 # Some binutils ld are patched to set DT_RUNPATH 13959 save_LDFLAGS=$LDFLAGS 13960 save_libdir=$libdir 13961 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 13962 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13964 /* end confdefs.h. */ 13965 13966 int 13967 main () 13968 { 13969 13970 ; 13971 return 0; 13972 } 13973 _ACEOF 13974 if ac_fn_cxx_try_link "$LINENO"; then : 13975 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13976 shlibpath_overrides_runpath=yes 13977 fi 13978 fi 13979 rm -f core conftest.err conftest.$ac_objext \ 13980 conftest$ac_exeext conftest.$ac_ext 13981 LDFLAGS=$save_LDFLAGS 13982 libdir=$save_libdir 13983 13554 13984 # This implies no fast_install, which is unacceptable. 13555 13985 # Some rework will be needed to allow for fast_install … … 13557 13987 hardcode_into_libs=yes 13558 13988 13989 # find out which ABI we are using 13990 libsuff= 13991 case "$host_cpu" in 13992 x86_64*|s390x*|powerpc64*) 13993 echo '#line 13993 "configure"' > conftest.$ac_ext 13994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13995 (eval $ac_compile) 2>&5 13996 ac_status=$? 13997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13998 test $ac_status = 0; }; then 13999 case `/usr/bin/file conftest.$ac_objext` in 14000 *64-bit*) 14001 libsuff=64 14002 ;; 14003 esac 14004 fi 14005 rm -rf conftest* 14006 ;; 14007 esac 14008 14009 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 14010 13559 14011 # Append ld.so.conf contents to the search path 13560 14012 if test -f /etc/ld.so.conf; then 13561 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`13562 sys_lib_dlsearch_path_spec=" /lib /usr/lib$lt_ld_extra"14013 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 14014 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13563 14015 fi 13564 14016 … … 13576 14028 need_lib_prefix=no 13577 14029 need_version=no 13578 if echo __ELF__ | $CC -E - | grep__ELF__ >/dev/null; then14030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13579 14031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13580 14032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 13597 14049 ;; 13598 14050 13599 nto-qnx*)13600 version_type= linux14051 *nto* | *qnx*) 14052 version_type=qnx 13601 14053 need_lib_prefix=no 13602 14054 need_version=no … … 13604 14056 soname_spec='${libname}${release}${shared_ext}$major' 13605 14057 shlibpath_var=LD_LIBRARY_PATH 13606 shlibpath_overrides_runpath=yes 14058 shlibpath_overrides_runpath=no 14059 hardcode_into_libs=yes 14060 dynamic_linker='ldqnx.so' 13607 14061 ;; 13608 14062 … … 13613 14067 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13614 14068 case $host_os in 13615 openbsd3.3 | openbsd3.3.*) need_version=yes ;;13616 *) need_version=no ;;14069 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14070 *) need_version=no ;; 13617 14071 esac 13618 14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13619 14073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13620 14074 shlibpath_var=LD_LIBRARY_PATH 13621 if test -z "`echo __ELF__ | $CC -E - | grep__ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then14075 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13622 14076 case $host_os in 13623 14077 openbsd2.[89] | openbsd2.[89].*) … … 13691 14145 shlibpath_overrides_runpath=no 13692 14146 need_lib_prefix=no 13693 export_dynamic_flag_spec='${wl}-Blargedynsym'13694 14147 runpath_var=LD_RUN_PATH 13695 14148 ;; … … 13722 14175 soname_spec='${libname}${release}${shared_ext}$major' 13723 14176 shlibpath_var=LD_LIBRARY_PATH 14177 shlibpath_overrides_runpath=yes 13724 14178 hardcode_into_libs=yes 13725 14179 if test "$with_gnu_ld" = yes; then 13726 14180 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13727 shlibpath_overrides_runpath=no13728 14181 else 13729 14182 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13730 shlibpath_overrides_runpath=yes13731 14183 case $host_os in 13732 14184 sco3.2v5*) … … 13738 14190 ;; 13739 14191 14192 tpf*) 14193 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14194 version_type=linux 14195 need_lib_prefix=no 14196 need_version=no 14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14198 shlibpath_var=LD_LIBRARY_PATH 14199 shlibpath_overrides_runpath=no 14200 hardcode_into_libs=yes 14201 ;; 14202 13740 14203 uts4*) 13741 14204 version_type=linux … … 13749 14212 ;; 13750 14213 esac 13751 { $as_echo "$as_me:$ LINENO: result: $dynamic_linker" >&514214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13752 14215 $as_echo "$dynamic_linker" >&6; } 13753 14216 test "$dynamic_linker" = no && can_build_shared=no 13754 13755 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then13756 $as_echo_n "(cached) " >&613757 else13758 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"13759 fi13760 13761 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"13762 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then13763 $as_echo_n "(cached) " >&613764 else13765 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"13766 fi13767 13768 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"13769 14217 13770 14218 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" … … 13773 14221 fi 13774 14222 13775 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14223 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14224 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14225 fi 14226 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14227 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14228 fi 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13776 14266 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13777 14267 hardcode_action_CXX= 13778 if test -n "$hardcode_libdir_flag_spec_CXX" || \13779 test -n "$runpath_var_CXX" || \14268 if test -n "$hardcode_libdir_flag_spec_CXX" || 14269 test -n "$runpath_var_CXX" || 13780 14270 test "X$hardcode_automatic_CXX" = "Xyes" ; then 13781 14271 13782 # We can hardcode non-exist ant directories.14272 # We can hardcode non-existent directories. 13783 14273 if test "$hardcode_direct_CXX" != no && 13784 14274 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13785 14275 # have to relink, otherwise we might link with an installed library 13786 14276 # when we should be linking with a yet-to-be-installed one 13787 ## test "$_LT_ AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&14277 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 13788 14278 test "$hardcode_minus_L_CXX" != no; then 13789 14279 # Linking always hardcodes the temporary library directory. … … 13798 14288 hardcode_action_CXX=unsupported 13799 14289 fi 13800 { $as_echo "$as_me:$ LINENO: result: $hardcode_action_CXX" >&514290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 13801 14291 $as_echo "$hardcode_action_CXX" >&6; } 13802 14292 13803 if test "$hardcode_action_CXX" = relink; then 14293 if test "$hardcode_action_CXX" = relink || 14294 test "$inherit_rpath_CXX" = yes; then 13804 14295 # Fast installation is not supported 13805 14296 enable_fast_install=no … … 13811 14302 13812 14303 13813 # The else clause should only fire when bootstrapping the 13814 # libtool distribution, otherwise you forgot to ship ltmain.sh 13815 # with your package, and you will get complaints that there are 13816 # no rules to generate ltmain.sh. 13817 if test -f "$ltmain"; then 13818 # See if we are running on zsh, and set the options which allow our commands through 13819 # without removal of \ escapes. 13820 if test -n "${ZSH_VERSION+set}" ; then 13821 setopt NO_GLOB_SUBST 13822 fi 13823 # Now quote all the things that may contain metacharacters while being 13824 # careful not to overquote the AC_SUBSTed values. We take copies of the 13825 # variables and quote the copies for generation of the libtool script. 13826 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 13827 SED SHELL STRIP \ 13828 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13829 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13830 deplibs_check_method reload_flag reload_cmds need_locks \ 13831 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13832 lt_cv_sys_global_symbol_to_c_name_address \ 13833 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13834 old_postinstall_cmds old_postuninstall_cmds \ 13835 compiler_CXX \ 13836 CC_CXX \ 13837 LD_CXX \ 13838 lt_prog_compiler_wl_CXX \ 13839 lt_prog_compiler_pic_CXX \ 13840 lt_prog_compiler_static_CXX \ 13841 lt_prog_compiler_no_builtin_flag_CXX \ 13842 export_dynamic_flag_spec_CXX \ 13843 thread_safe_flag_spec_CXX \ 13844 whole_archive_flag_spec_CXX \ 13845 enable_shared_with_static_runtimes_CXX \ 13846 old_archive_cmds_CXX \ 13847 old_archive_from_new_cmds_CXX \ 13848 predep_objects_CXX \ 13849 postdep_objects_CXX \ 13850 predeps_CXX \ 13851 postdeps_CXX \ 13852 compiler_lib_search_path_CXX \ 13853 compiler_lib_search_dirs_CXX \ 13854 archive_cmds_CXX \ 13855 archive_expsym_cmds_CXX \ 13856 postinstall_cmds_CXX \ 13857 postuninstall_cmds_CXX \ 13858 old_archive_from_expsyms_cmds_CXX \ 13859 allow_undefined_flag_CXX \ 13860 no_undefined_flag_CXX \ 13861 export_symbols_cmds_CXX \ 13862 hardcode_libdir_flag_spec_CXX \ 13863 hardcode_libdir_flag_spec_ld_CXX \ 13864 hardcode_libdir_separator_CXX \ 13865 hardcode_automatic_CXX \ 13866 module_cmds_CXX \ 13867 module_expsym_cmds_CXX \ 13868 lt_cv_prog_compiler_c_o_CXX \ 13869 fix_srcfile_path_CXX \ 13870 exclude_expsyms_CXX \ 13871 include_expsyms_CXX; do 13872 13873 case $var in 13874 old_archive_cmds_CXX | \ 13875 old_archive_from_new_cmds_CXX | \ 13876 archive_cmds_CXX | \ 13877 archive_expsym_cmds_CXX | \ 13878 module_cmds_CXX | \ 13879 module_expsym_cmds_CXX | \ 13880 old_archive_from_expsyms_cmds_CXX | \ 13881 export_symbols_cmds_CXX | \ 13882 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13883 postinstall_cmds | postuninstall_cmds | \ 13884 old_postinstall_cmds | old_postuninstall_cmds | \ 13885 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13886 # Double-quote double-evaled strings. 13887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13888 ;; 13889 *) 13890 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13891 ;; 13892 esac 13893 done 13894 13895 case $lt_echo in 13896 *'\$0 --fallback-echo"') 13897 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13898 ;; 13899 esac 13900 13901 cfgfile="$ofile" 13902 13903 cat <<__EOF__ >> "$cfgfile" 13904 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 13905 13906 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13907 13908 # Shell to use when invoking shell scripts. 13909 SHELL=$lt_SHELL 13910 13911 # Whether or not to build shared libraries. 13912 build_libtool_libs=$enable_shared 13913 13914 # Whether or not to build static libraries. 13915 build_old_libs=$enable_static 13916 13917 # Whether or not to add -lc for building shared libraries. 13918 build_libtool_need_lc=$archive_cmds_need_lc_CXX 13919 13920 # Whether or not to disallow shared libs when runtime libs are static 13921 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13922 13923 # Whether or not to optimize for fast installation. 13924 fast_install=$enable_fast_install 13925 13926 # The host system. 13927 host_alias=$host_alias 13928 host=$host 13929 host_os=$host_os 13930 13931 # The build system. 13932 build_alias=$build_alias 13933 build=$build 13934 build_os=$build_os 13935 13936 # An echo program that does not interpret backslashes. 13937 echo=$lt_echo 13938 13939 # The archiver. 13940 AR=$lt_AR 13941 AR_FLAGS=$lt_AR_FLAGS 13942 13943 # A C compiler. 13944 LTCC=$lt_LTCC 13945 13946 # LTCC compiler flags. 13947 LTCFLAGS=$lt_LTCFLAGS 13948 13949 # A language-specific compiler. 13950 CC=$lt_compiler_CXX 13951 13952 # Is the compiler the GNU C compiler? 13953 with_gcc=$GCC_CXX 13954 13955 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\` 13956 gcc_ver=\`gcc -dumpversion\` 13957 13958 # An ERE matcher. 13959 EGREP=$lt_EGREP 13960 13961 # The linker used to build libraries. 13962 LD=$lt_LD_CXX 13963 13964 # Whether we need hard or soft links. 13965 LN_S=$lt_LN_S 13966 13967 # A BSD-compatible nm program. 13968 NM=$lt_NM 13969 13970 # A symbol stripping program 13971 STRIP=$lt_STRIP 13972 13973 # Used to examine libraries when file_magic_cmd begins "file" 13974 MAGIC_CMD=$MAGIC_CMD 13975 13976 # Used on cygwin: DLL creation program. 13977 DLLTOOL="$DLLTOOL" 13978 13979 # Used on cygwin: object dumper. 13980 OBJDUMP="$OBJDUMP" 13981 13982 # Used on cygwin: assembler. 13983 AS="$AS" 13984 13985 # The name of the directory that contains temporary libtool files. 13986 objdir=$objdir 13987 13988 # How to create reloadable object files. 13989 reload_flag=$lt_reload_flag 13990 reload_cmds=$lt_reload_cmds 13991 13992 # How to pass a linker flag through the compiler. 13993 wl=$lt_lt_prog_compiler_wl_CXX 13994 13995 # Object file suffix (normally "o"). 13996 objext="$ac_objext" 13997 13998 # Old archive suffix (normally "a"). 13999 libext="$libext" 14000 14001 # Shared library suffix (normally ".so"). 14002 shrext_cmds='$shrext_cmds' 14003 14004 # Executable file suffix (normally ""). 14005 exeext="$exeext" 14006 14007 # Additional compiler flags for building library objects. 14008 pic_flag=$lt_lt_prog_compiler_pic_CXX 14009 pic_mode=$pic_mode 14010 14011 # What is the maximum length of a command? 14012 max_cmd_len=$lt_cv_sys_max_cmd_len 14013 14014 # Does compiler simultaneously support -c and -o options? 14015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 14016 14017 # Must we lock files when doing compilation? 14018 need_locks=$lt_need_locks 14019 14020 # Do we need the lib prefix for modules? 14021 need_lib_prefix=$need_lib_prefix 14022 14023 # Do we need a version for libraries? 14024 need_version=$need_version 14025 14026 # Whether dlopen is supported. 14027 dlopen_support=$enable_dlopen 14028 14029 # Whether dlopen of programs is supported. 14030 dlopen_self=$enable_dlopen_self 14031 14032 # Whether dlopen of statically linked programs is supported. 14033 dlopen_self_static=$enable_dlopen_self_static 14034 14035 # Compiler flag to prevent dynamic linking. 14036 link_static_flag=$lt_lt_prog_compiler_static_CXX 14037 14038 # Compiler flag to turn off builtin functions. 14039 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 14040 14041 # Compiler flag to allow reflexive dlopens. 14042 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 14043 14044 # Compiler flag to generate shared objects directly from archives. 14045 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 14046 14047 # Compiler flag to generate thread-safe objects. 14048 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 14049 14050 # Library versioning type. 14051 version_type=$version_type 14052 14053 # Format of library name prefix. 14054 libname_spec=$lt_libname_spec 14055 14056 # List of archive names. First name is the real one, the rest are links. 14057 # The last name is the one that the linker finds with -lNAME. 14058 library_names_spec=$lt_library_names_spec 14059 14060 # The coded name of the library, if different from the real name. 14061 soname_spec=$lt_soname_spec 14062 14063 # Commands used to build and install an old-style archive. 14064 RANLIB=$lt_RANLIB 14065 old_archive_cmds=$lt_old_archive_cmds_CXX 14066 old_postinstall_cmds=$lt_old_postinstall_cmds 14067 old_postuninstall_cmds=$lt_old_postuninstall_cmds 14068 14069 # Create an old-style archive from a shared archive. 14070 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 14071 14072 # Create a temporary old-style archive to link instead of a shared archive. 14073 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 14074 14075 # Commands used to build and install a shared archive. 14076 archive_cmds=$lt_archive_cmds_CXX 14077 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 14078 postinstall_cmds=$lt_postinstall_cmds 14079 postuninstall_cmds=$lt_postuninstall_cmds 14080 14081 # Commands used to build a loadable module (assumed same as above if empty) 14082 module_cmds=$lt_module_cmds_CXX 14083 module_expsym_cmds=$lt_module_expsym_cmds_CXX 14084 14085 # Commands to strip libraries. 14086 old_striplib=$lt_old_striplib 14087 striplib=$lt_striplib 14088 14089 # Dependencies to place before the objects being linked to create a 14090 # shared library. 14091 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 14092 14093 # Dependencies to place after the objects being linked to create a 14094 # shared library. 14095 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 14096 14097 # Dependencies to place before the objects being linked to create a 14098 # shared library. 14099 predeps=$lt_predeps_CXX 14100 14101 # Dependencies to place after the objects being linked to create a 14102 # shared library. 14103 postdeps=$lt_postdeps_CXX 14104 14105 # The directories searched by this compiler when creating a shared 14106 # library 14107 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 14108 14109 # The library search path used internally by the compiler when linking 14110 # a shared library. 14111 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 14112 14113 # Method to check whether dependent libraries are shared objects. 14114 deplibs_check_method=$lt_deplibs_check_method 14115 14116 # Command to use when deplibs_check_method == file_magic. 14117 file_magic_cmd=$lt_file_magic_cmd 14118 14119 # Flag that allows shared libraries with undefined symbols to be built. 14120 allow_undefined_flag=$lt_allow_undefined_flag_CXX 14121 14122 # Flag that forces no undefined symbols. 14123 no_undefined_flag=$lt_no_undefined_flag_CXX 14124 14125 # Commands used to finish a libtool library installation in a directory. 14126 finish_cmds=$lt_finish_cmds 14127 14128 # Same as above, but a single script fragment to be evaled but not shown. 14129 finish_eval=$lt_finish_eval 14130 14131 # Take the output of nm and produce a listing of raw symbols and C names. 14132 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14133 14134 # Transform the output of nm in a proper C declaration 14135 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14136 14137 # Transform the output of nm in a C name address pair 14138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14139 14140 # This is the shared library runtime path variable. 14141 runpath_var=$runpath_var 14142 14143 # This is the shared library path variable. 14144 shlibpath_var=$shlibpath_var 14145 14146 # Is shlibpath searched before the hard-coded library search path? 14147 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14148 14149 # How to hardcode a shared library path into an executable. 14150 hardcode_action=$hardcode_action_CXX 14151 14152 # Whether we should hardcode library paths into libraries. 14153 hardcode_into_libs=$hardcode_into_libs 14154 14155 # Flag to hardcode \$libdir into a binary during linking. 14156 # This must work even if \$libdir does not exist. 14157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 14158 14159 # If ld is used when linking, flag to hardcode \$libdir into 14160 # a binary during linking. This must work even if \$libdir does 14161 # not exist. 14162 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 14163 14164 # Whether we need a single -rpath flag with a separated argument. 14165 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 14166 14167 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14168 # resulting binary. 14169 hardcode_direct=$hardcode_direct_CXX 14170 14171 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14172 # resulting binary. 14173 hardcode_minus_L=$hardcode_minus_L_CXX 14174 14175 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14176 # the resulting binary. 14177 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 14178 14179 # Set to yes if building a shared library automatically hardcodes DIR into the library 14180 # and all subsequent libraries and executables linked against it. 14181 hardcode_automatic=$hardcode_automatic_CXX 14182 14183 # Variables whose values should be saved in libtool wrapper scripts and 14184 # restored at relink time. 14185 variables_saved_for_relink="$variables_saved_for_relink" 14186 14187 # Whether libtool must link a program against all its dependency libraries. 14188 link_all_deplibs=$link_all_deplibs_CXX 14189 14190 # Compile-time system search path for libraries 14191 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\` 14192 14193 # Run-time system search path for libraries 14194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14195 14196 # Fix the shell variable \$srcfile for the compiler. 14197 fix_srcfile_path=$lt_fix_srcfile_path 14198 14199 # Set to yes if exported symbols are required. 14200 always_export_symbols=$always_export_symbols_CXX 14201 14202 # The commands to list exported symbols. 14203 export_symbols_cmds=$lt_export_symbols_cmds_CXX 14204 14205 # The commands to extract the exported symbol list from a shared archive. 14206 extract_expsyms_cmds=$lt_extract_expsyms_cmds 14207 14208 # Symbols that should not be listed in the preloaded symbols. 14209 exclude_expsyms=$lt_exclude_expsyms_CXX 14210 14211 # Symbols that must always be exported. 14212 include_expsyms=$lt_include_expsyms_CXX 14213 14214 # ### END LIBTOOL TAG CONFIG: $tagname 14215 14216 __EOF__ 14217 14218 14219 else 14220 # If there is no Makefile yet, we rely on a make rule to execute 14221 # `config.status --recheck' to rerun these tests and create the 14222 # libtool script then. 14223 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14224 if test -f "$ltmain_in"; then 14225 test -f Makefile && make "$ltmain" 14226 fi 14227 fi 14228 14304 14305 14306 14307 14308 14309 fi # test -n "$compiler" 14310 14311 CC=$lt_save_CC 14312 LDCXX=$LD 14313 LD=$lt_save_LD 14314 GCC=$lt_save_GCC 14315 with_gnu_ld=$lt_save_with_gnu_ld 14316 lt_cv_path_LDCXX=$lt_cv_path_LD 14317 lt_cv_path_LD=$lt_save_path_LD 14318 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14319 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14320 fi # test "$_lt_caught_CXX_error" != yes 14229 14321 14230 14322 ac_ext=c … … 14234 14326 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14235 14327 14236 CC=$lt_save_CC 14237 LDCXX=$LD 14238 LD=$lt_save_LD 14239 GCC=$lt_save_GCC 14240 with_gnu_ldcxx=$with_gnu_ld 14241 with_gnu_ld=$lt_save_with_gnu_ld 14242 lt_cv_path_LDCXX=$lt_cv_path_LD 14243 lt_cv_path_LD=$lt_save_path_LD 14244 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14245 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14246 14247 else 14248 tagname="" 14249 fi 14250 ;; 14251 14252 F77) 14253 if test -n "$F77" && test "X$F77" != "Xno"; then 14254 14255 ac_ext=f 14256 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 14257 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14258 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 14259 14260 14261 archive_cmds_need_lc_F77=no 14262 allow_undefined_flag_F77= 14263 always_export_symbols_F77=no 14264 archive_expsym_cmds_F77= 14265 export_dynamic_flag_spec_F77= 14266 hardcode_direct_F77=no 14267 hardcode_libdir_flag_spec_F77= 14268 hardcode_libdir_flag_spec_ld_F77= 14269 hardcode_libdir_separator_F77= 14270 hardcode_minus_L_F77=no 14271 hardcode_automatic_F77=no 14272 module_cmds_F77= 14273 module_expsym_cmds_F77= 14274 link_all_deplibs_F77=unknown 14275 old_archive_cmds_F77=$old_archive_cmds 14276 no_undefined_flag_F77= 14277 whole_archive_flag_spec_F77= 14278 enable_shared_with_static_runtimes_F77=no 14279 14280 # Source file extension for f77 test sources. 14281 ac_ext=f 14282 14283 # Object file extension for compiled f77 test sources. 14284 objext=o 14285 objext_F77=$objext 14286 14287 # Code to be used in simple compile tests 14288 lt_simple_compile_test_code="\ 14289 subroutine t 14290 return 14291 end 14292 " 14293 14294 # Code to be used in simple link tests 14295 lt_simple_link_test_code="\ 14296 program t 14297 end 14298 " 14299 14300 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14301 14302 # If no C compiler was specified, use CC. 14303 LTCC=${LTCC-"$CC"} 14304 14305 # If no C compiler flags were specified, use CFLAGS. 14306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14307 14308 # Allow CC to be a program name with arguments. 14309 compiler=$CC 14310 14311 14312 # save warnings/boilerplate of simple test code 14313 ac_outfile=conftest.$ac_objext 14314 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14315 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14316 _lt_compiler_boilerplate=`cat conftest.err` 14317 $rm conftest* 14318 14319 ac_outfile=conftest.$ac_objext 14320 echo "$lt_simple_link_test_code" >conftest.$ac_ext 14321 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14322 _lt_linker_boilerplate=`cat conftest.err` 14323 $rm -r conftest* 14324 14325 14326 # Allow CC to be a program name with arguments. 14327 lt_save_CC="$CC" 14328 CC=${F77-"f77"} 14329 compiler=$CC 14330 compiler_F77=$CC 14331 for cc_temp in $compiler""; do 14332 case $cc_temp in 14333 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14334 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14335 \-*) ;; 14336 *) break;; 14337 esac 14338 done 14339 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14340 14341 14342 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 14343 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 14344 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5 14345 $as_echo "$can_build_shared" >&6; } 14346 14347 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 14348 $as_echo_n "checking whether to build shared libraries... " >&6; } 14349 test "$can_build_shared" = "no" && enable_shared=no 14350 14351 # On AIX, shared libraries and static libraries use the same namespace, and 14352 # are all built from PIC. 14353 case $host_os in 14354 aix3*) 14355 test "$enable_shared" = yes && enable_static=no 14356 if test -n "$RANLIB"; then 14357 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14358 postinstall_cmds='$RANLIB $lib' 14359 fi 14360 ;; 14361 aix[4-9]*) 14362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14363 test "$enable_shared" = yes && enable_static=no 14364 fi 14365 ;; 14366 esac 14367 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5 14368 $as_echo "$enable_shared" >&6; } 14369 14370 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5 14371 $as_echo_n "checking whether to build static libraries... " >&6; } 14372 # Make sure either enable_shared or enable_static is yes. 14373 test "$enable_shared" = yes || enable_static=yes 14374 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5 14375 $as_echo "$enable_static" >&6; } 14376 14377 GCC_F77="$G77" 14378 LD_F77="$LD" 14379 14380 lt_prog_compiler_wl_F77= 14381 lt_prog_compiler_pic_F77= 14382 lt_prog_compiler_static_F77= 14383 14384 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 14385 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14386 14387 if test "$GCC" = yes; then 14388 lt_prog_compiler_wl_F77='-Wl,' 14389 lt_prog_compiler_static_F77='-static' 14390 14391 case $host_os in 14392 aix*) 14393 # All AIX code is PIC. 14394 if test "$host_cpu" = ia64; then 14395 # AIX 5 now supports IA64 processor 14396 lt_prog_compiler_static_F77='-Bstatic' 14397 fi 14398 ;; 14399 14400 amigaos*) 14401 # FIXME: we need at least 68020 code to build shared libraries, but 14402 # adding the `-m68020' flag to GCC prevents building anything better, 14403 # like `-m68040'. 14404 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 14405 ;; 14406 14407 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14408 # PIC is the default for these OSes. 14409 ;; 14410 14411 mingw* | cygwin* | pw32* | os2*) 14412 # This hack is so that the source file can tell whether it is being 14413 # built for inclusion in a dll (and should export symbols for example). 14414 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14415 # (--disable-auto-import) libraries 14416 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14417 ;; 14418 14419 darwin* | rhapsody*) 14420 # PIC is the default on this platform 14421 # Common symbols not allowed in MH_DYLIB files 14422 lt_prog_compiler_pic_F77='-fno-common' 14423 ;; 14424 14425 interix[3-9]*) 14426 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14427 # Instead, we relocate shared libraries at runtime. 14428 ;; 14429 14430 msdosdjgpp*) 14431 # Just because we use GCC doesn't mean we suddenly get shared libraries 14432 # on systems that don't support them. 14433 lt_prog_compiler_can_build_shared_F77=no 14434 enable_shared=no 14435 ;; 14436 14437 sysv4*MP*) 14438 if test -d /usr/nec; then 14439 lt_prog_compiler_pic_F77=-Kconform_pic 14440 fi 14441 ;; 14442 14443 hpux*) 14444 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14445 # not for PA HP-UX. 14446 case $host_cpu in 14447 hppa*64*|ia64*) 14448 # +Z the default 14449 ;; 14450 *) 14451 lt_prog_compiler_pic_F77='-fPIC' 14452 ;; 14453 esac 14454 ;; 14455 14456 *) 14457 lt_prog_compiler_pic_F77='-fPIC' 14458 ;; 14459 esac 14460 else 14461 # PORTME Check for flag to pass linker flags through the system compiler. 14462 case $host_os in 14463 aix*) 14464 lt_prog_compiler_wl_F77='-Wl,' 14465 if test "$host_cpu" = ia64; then 14466 # AIX 5 now supports IA64 processor 14467 lt_prog_compiler_static_F77='-Bstatic' 14468 else 14469 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 14470 fi 14471 ;; 14472 darwin*) 14473 # PIC is the default on this platform 14474 # Common symbols not allowed in MH_DYLIB files 14475 case $cc_basename in 14476 xlc*) 14477 lt_prog_compiler_pic_F77='-qnocommon' 14478 lt_prog_compiler_wl_F77='-Wl,' 14479 ;; 14480 esac 14481 ;; 14482 14483 mingw* | cygwin* | pw32* | os2*) 14484 # This hack is so that the source file can tell whether it is being 14485 # built for inclusion in a dll (and should export symbols for example). 14486 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 14487 ;; 14488 14489 hpux9* | hpux10* | hpux11*) 14490 lt_prog_compiler_wl_F77='-Wl,' 14491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14492 # not for PA HP-UX. 14493 case $host_cpu in 14494 hppa*64*|ia64*) 14495 # +Z the default 14496 ;; 14497 *) 14498 lt_prog_compiler_pic_F77='+Z' 14499 ;; 14500 esac 14501 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14502 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 14503 ;; 14504 14505 irix5* | irix6* | nonstopux*) 14506 lt_prog_compiler_wl_F77='-Wl,' 14507 # PIC (with -KPIC) is the default. 14508 lt_prog_compiler_static_F77='-non_shared' 14509 ;; 14510 14511 newsos6) 14512 lt_prog_compiler_pic_F77='-KPIC' 14513 lt_prog_compiler_static_F77='-Bstatic' 14514 ;; 14515 14516 linux* | k*bsd*-gnu) 14517 case $cc_basename in 14518 icc* | ecc*) 14519 lt_prog_compiler_wl_F77='-Wl,' 14520 lt_prog_compiler_pic_F77='-KPIC' 14521 lt_prog_compiler_static_F77='-static' 14522 ;; 14523 pgcc* | pgf77* | pgf90* | pgf95*) 14524 # Portland Group compilers (*not* the Pentium gcc compiler, 14525 # which looks to be a dead project) 14526 lt_prog_compiler_wl_F77='-Wl,' 14527 lt_prog_compiler_pic_F77='-fpic' 14528 lt_prog_compiler_static_F77='-Bstatic' 14529 ;; 14530 ccc*) 14531 lt_prog_compiler_wl_F77='-Wl,' 14532 # All Alpha code is PIC. 14533 lt_prog_compiler_static_F77='-non_shared' 14534 ;; 14535 *) 14536 case `$CC -V 2>&1 | sed 5q` in 14537 *Sun\ C*) 14538 # Sun C 5.9 14539 lt_prog_compiler_pic_F77='-KPIC' 14540 lt_prog_compiler_static_F77='-Bstatic' 14541 lt_prog_compiler_wl_F77='-Wl,' 14542 ;; 14543 *Sun\ F*) 14544 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14545 lt_prog_compiler_pic_F77='-KPIC' 14546 lt_prog_compiler_static_F77='-Bstatic' 14547 lt_prog_compiler_wl_F77='' 14548 ;; 14549 esac 14550 ;; 14551 esac 14552 ;; 14553 14554 osf3* | osf4* | osf5*) 14555 lt_prog_compiler_wl_F77='-Wl,' 14556 # All OSF/1 code is PIC. 14557 lt_prog_compiler_static_F77='-non_shared' 14558 ;; 14559 14560 rdos*) 14561 lt_prog_compiler_static_F77='-non_shared' 14562 ;; 14563 14564 solaris*) 14565 lt_prog_compiler_pic_F77='-KPIC' 14566 lt_prog_compiler_static_F77='-Bstatic' 14567 case $cc_basename in 14568 f77* | f90* | f95*) 14569 lt_prog_compiler_wl_F77='-Qoption ld ';; 14570 *) 14571 lt_prog_compiler_wl_F77='-Wl,';; 14572 esac 14573 ;; 14574 14575 sunos4*) 14576 lt_prog_compiler_wl_F77='-Qoption ld ' 14577 lt_prog_compiler_pic_F77='-PIC' 14578 lt_prog_compiler_static_F77='-Bstatic' 14579 ;; 14580 14581 sysv4 | sysv4.2uw2* | sysv4.3*) 14582 lt_prog_compiler_wl_F77='-Wl,' 14583 lt_prog_compiler_pic_F77='-KPIC' 14584 lt_prog_compiler_static_F77='-Bstatic' 14585 ;; 14586 14587 sysv4*MP*) 14588 if test -d /usr/nec ;then 14589 lt_prog_compiler_pic_F77='-Kconform_pic' 14590 lt_prog_compiler_static_F77='-Bstatic' 14591 fi 14592 ;; 14593 14594 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14595 lt_prog_compiler_wl_F77='-Wl,' 14596 lt_prog_compiler_pic_F77='-KPIC' 14597 lt_prog_compiler_static_F77='-Bstatic' 14598 ;; 14599 14600 unicos*) 14601 lt_prog_compiler_wl_F77='-Wl,' 14602 lt_prog_compiler_can_build_shared_F77=no 14603 ;; 14604 14605 uts4*) 14606 lt_prog_compiler_pic_F77='-pic' 14607 lt_prog_compiler_static_F77='-Bstatic' 14608 ;; 14609 14610 *) 14611 lt_prog_compiler_can_build_shared_F77=no 14612 ;; 14613 esac 14614 fi 14615 14616 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 14617 $as_echo "$lt_prog_compiler_pic_F77" >&6; } 14618 14619 # 14620 # Check to make sure the PIC flag actually works. 14621 # 14622 if test -n "$lt_prog_compiler_pic_F77"; then 14623 14624 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 14625 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 14626 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then 14627 $as_echo_n "(cached) " >&6 14628 else 14629 lt_cv_prog_compiler_pic_works_F77=no 14630 ac_outfile=conftest.$ac_objext 14631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14632 lt_compiler_flag="$lt_prog_compiler_pic_F77" 14633 # Insert the option either (1) after the last *FLAGS variable, or 14634 # (2) before a word containing "conftest.", or (3) at the end. 14635 # Note that $ac_compile itself does not contain backslashes and begins 14636 # with a dollar sign (not a hyphen), so the echo should work correctly. 14637 # The option is referenced via a variable to avoid confusing sed. 14638 lt_compile=`echo "$ac_compile" | $SED \ 14639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14641 -e 's:$: $lt_compiler_flag:'` 14642 (eval echo "\"\$as_me:14642: $lt_compile\"" >&5) 14643 (eval "$lt_compile" 2>conftest.err) 14644 ac_status=$? 14645 cat conftest.err >&5 14646 echo "$as_me:14646: \$? = $ac_status" >&5 14647 if (exit $ac_status) && test -s "$ac_outfile"; then 14648 # The compiler can only warn and ignore the option if not recognized 14649 # So say no if there are warnings other than the usual output. 14650 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 14651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14653 lt_cv_prog_compiler_pic_works_F77=yes 14654 fi 14655 fi 14656 $rm conftest* 14657 14658 fi 14659 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 14660 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 14661 14662 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 14663 case $lt_prog_compiler_pic_F77 in 14664 "" | " "*) ;; 14665 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 14666 esac 14667 else 14668 lt_prog_compiler_pic_F77= 14669 lt_prog_compiler_can_build_shared_F77=no 14670 fi 14671 14672 fi 14673 case $host_os in 14674 # For platforms which do not support PIC, -DPIC is meaningless: 14675 *djgpp*) 14676 lt_prog_compiler_pic_F77= 14677 ;; 14678 *) 14679 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 14680 ;; 14681 esac 14682 14683 # 14684 # Check to make sure the static flag actually works. 14685 # 14686 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 14687 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14688 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14689 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then 14690 $as_echo_n "(cached) " >&6 14691 else 14692 lt_cv_prog_compiler_static_works_F77=no 14693 save_LDFLAGS="$LDFLAGS" 14694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14695 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14697 # The linker can only warn and ignore the option if not recognized 14698 # So say no if there are warnings 14699 if test -s conftest.err; then 14700 # Append any errors to the config.log. 14701 cat conftest.err 1>&5 14702 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 14703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14704 if diff conftest.exp conftest.er2 >/dev/null; then 14705 lt_cv_prog_compiler_static_works_F77=yes 14706 fi 14707 else 14708 lt_cv_prog_compiler_static_works_F77=yes 14709 fi 14710 fi 14711 $rm -r conftest* 14712 LDFLAGS="$save_LDFLAGS" 14713 14714 fi 14715 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 14716 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 14717 14718 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 14719 : 14720 else 14721 lt_prog_compiler_static_F77= 14722 fi 14723 14724 14725 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 14726 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14727 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 14728 $as_echo_n "(cached) " >&6 14729 else 14730 lt_cv_prog_compiler_c_o_F77=no 14731 $rm -r conftest 2>/dev/null 14732 mkdir conftest 14733 cd conftest 14734 mkdir out 14735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14736 14737 lt_compiler_flag="-o out/conftest2.$ac_objext" 14738 # Insert the option either (1) after the last *FLAGS variable, or 14739 # (2) before a word containing "conftest.", or (3) at the end. 14740 # Note that $ac_compile itself does not contain backslashes and begins 14741 # with a dollar sign (not a hyphen), so the echo should work correctly. 14742 lt_compile=`echo "$ac_compile" | $SED \ 14743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14745 -e 's:$: $lt_compiler_flag:'` 14746 (eval echo "\"\$as_me:14746: $lt_compile\"" >&5) 14747 (eval "$lt_compile" 2>out/conftest.err) 14748 ac_status=$? 14749 cat out/conftest.err >&5 14750 echo "$as_me:14750: \$? = $ac_status" >&5 14751 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14752 then 14753 # The compiler can only warn and ignore the option if not recognized 14754 # So say no if there are warnings 14755 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 14756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14758 lt_cv_prog_compiler_c_o_F77=yes 14759 fi 14760 fi 14761 chmod u+w . 2>&5 14762 $rm conftest* 14763 # SGI C++ compiler will create directory out/ii_files/ for 14764 # template instantiation 14765 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 14766 $rm out/* && rmdir out 14767 cd .. 14768 rmdir conftest 14769 $rm conftest* 14770 14771 fi 14772 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 14773 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 14774 14775 14776 hard_links="nottested" 14777 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 14778 # do not overwrite the value of need_locks provided by the user 14779 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 14780 $as_echo_n "checking if we can lock with hard links... " >&6; } 14781 hard_links=yes 14782 $rm conftest* 14783 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14784 touch conftest.a 14785 ln conftest.a conftest.b 2>&5 || hard_links=no 14786 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14787 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5 14788 $as_echo "$hard_links" >&6; } 14789 if test "$hard_links" = no; then 14790 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14791 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14792 need_locks=warn 14793 fi 14794 else 14795 need_locks=no 14796 fi 14797 14798 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14799 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14800 14801 runpath_var= 14802 allow_undefined_flag_F77= 14803 enable_shared_with_static_runtimes_F77=no 14804 archive_cmds_F77= 14805 archive_expsym_cmds_F77= 14806 old_archive_From_new_cmds_F77= 14807 old_archive_from_expsyms_cmds_F77= 14808 export_dynamic_flag_spec_F77= 14809 whole_archive_flag_spec_F77= 14810 thread_safe_flag_spec_F77= 14811 hardcode_libdir_flag_spec_F77= 14812 hardcode_libdir_flag_spec_ld_F77= 14813 hardcode_libdir_separator_F77= 14814 hardcode_direct_F77=no 14815 hardcode_minus_L_F77=no 14816 hardcode_shlibpath_var_F77=unsupported 14817 link_all_deplibs_F77=unknown 14818 hardcode_automatic_F77=no 14819 module_cmds_F77= 14820 module_expsym_cmds_F77= 14821 always_export_symbols_F77=no 14822 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14823 # include_expsyms should be a list of space-separated symbols to be *always* 14824 # included in the symbol list 14825 include_expsyms_F77= 14826 # exclude_expsyms can be an extended regexp of symbols to exclude 14827 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14828 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14829 # as well as any symbol that contains `d'. 14830 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14831 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14832 # platforms (ab)use it in PIC code, but their linkers get confused if 14833 # the symbol is explicitly referenced. Since portable code cannot 14834 # rely on this symbol name, it's probably fine to never include it in 14835 # preloaded symbol tables. 14836 # Exclude shared library initialization/finalization symbols. 14837 extract_expsyms_cmds= 14838 # Just being paranoid about ensuring that cc_basename is set. 14839 for cc_temp in $compiler""; do 14840 case $cc_temp in 14841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14843 \-*) ;; 14844 *) break;; 14845 esac 14846 done 14847 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14848 14849 case $host_os in 14850 cygwin* | mingw* | pw32*) 14851 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14852 # When not using gcc, we currently assume that we are using 14853 # Microsoft Visual C++. 14854 if test "$GCC" != yes; then 14855 with_gnu_ld=no 14856 fi 14857 ;; 14858 interix*) 14859 # we just hope/assume this is gcc and not c89 (= MSVC++) 14860 with_gnu_ld=yes 14861 ;; 14862 openbsd*) 14863 with_gnu_ld=no 14864 ;; 14865 esac 14866 14867 ld_shlibs_F77=yes 14868 if test "$with_gnu_ld" = yes; then 14869 # If archive_cmds runs LD, not CC, wlarc should be empty 14870 wlarc='${wl}' 14871 14872 # Set some defaults for GNU ld with shared library support. These 14873 # are reset later if shared libraries are not supported. Putting them 14874 # here allows them to be overridden if necessary. 14875 runpath_var=LD_RUN_PATH 14876 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14877 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14878 # ancient GNU ld didn't support --whole-archive et. al. 14879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14880 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14881 else 14882 whole_archive_flag_spec_F77= 14883 fi 14884 supports_anon_versioning=no 14885 case `$LD -v 2>/dev/null` in 14886 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14887 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14888 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14889 *\ 2.11.*) ;; # other 2.11 versions 14890 *) supports_anon_versioning=yes ;; 14891 esac 14892 14893 # See if GNU ld supports shared libraries. 14894 case $host_os in 14895 aix[3-9]*) 14896 # On AIX/PPC, the GNU linker is very broken 14897 if test "$host_cpu" != ia64; then 14898 ld_shlibs_F77=no 14899 cat <<EOF 1>&2 14900 14901 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 14902 *** to be unable to reliably create shared libraries on AIX. 14903 *** Therefore, libtool is disabling shared libraries support. If you 14904 *** really care for shared libraries, you may want to modify your PATH 14905 *** so that a non-GNU linker is found, and then restart. 14906 14907 EOF 14908 fi 14909 ;; 14910 14911 amigaos*) 14912 archive_cmds_F77='$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)' 14913 hardcode_libdir_flag_spec_F77='-L$libdir' 14914 hardcode_minus_L_F77=yes 14915 14916 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14917 # that the semantics of dynamic libraries on AmigaOS, at least up 14918 # to version 4, is to share data among multiple programs linked 14919 # with the same dynamic library. Since this doesn't match the 14920 # behavior of shared libraries on other platforms, we can't use 14921 # them. 14922 ld_shlibs_F77=no 14923 ;; 14924 14925 beos*) 14926 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14927 allow_undefined_flag_F77=unsupported 14928 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14929 # support --undefined. This deserves some investigation. FIXME 14930 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14931 else 14932 ld_shlibs_F77=no 14933 fi 14934 ;; 14935 14936 cygwin* | mingw* | pw32*) 14937 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14938 # as there is no search path for DLLs. 14939 hardcode_libdir_flag_spec_F77='-L$libdir' 14940 allow_undefined_flag_F77=unsupported 14941 always_export_symbols_F77=no 14942 enable_shared_with_static_runtimes_F77=yes 14943 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 14944 14945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14946 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14947 # If the export-symbols file already is a .def file (1st line 14948 # is EXPORTS), use it as is; otherwise, prepend... 14949 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14950 cp $export_symbols $output_objdir/$soname.def; 14951 else 14952 echo EXPORTS > $output_objdir/$soname.def; 14953 cat $export_symbols >> $output_objdir/$soname.def; 14954 fi~ 14955 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14956 else 14957 ld_shlibs_F77=no 14958 fi 14959 ;; 14960 14961 interix[3-9]*) 14962 hardcode_direct_F77=no 14963 hardcode_shlibpath_var_F77=no 14964 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14965 export_dynamic_flag_spec_F77='${wl}-E' 14966 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14967 # Instead, shared libraries are loaded at an image base (0x10000000 by 14968 # default) and relocated if they conflict, which is a slow very memory 14969 # consuming and fragmenting process. To avoid this, we pick a random, 14970 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14971 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14972 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14973 archive_expsym_cmds_F77='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' 14974 ;; 14975 14976 gnu* | linux* | k*bsd*-gnu) 14977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14978 tmp_addflag= 14979 case $cc_basename,$host_cpu in 14980 pgcc*) # Portland Group C compiler 14981 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14982 tmp_addflag=' $pic_flag' 14983 ;; 14984 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14985 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14986 tmp_addflag=' $pic_flag -Mnomain' ;; 14987 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14988 tmp_addflag=' -i_dynamic' ;; 14989 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14990 tmp_addflag=' -i_dynamic -nofor_main' ;; 14991 ifc* | ifort*) # Intel Fortran compiler 14992 tmp_addflag=' -nofor_main' ;; 14993 esac 14994 case `$CC -V 2>&1 | sed 5q` in 14995 *Sun\ C*) # Sun C 5.9 14996 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14997 tmp_sharedflag='-G' ;; 14998 *Sun\ F*) # Sun Fortran 8.3 14999 tmp_sharedflag='-G' ;; 15000 *) 15001 tmp_sharedflag='-shared' ;; 15002 esac 15003 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15004 15005 if test $supports_anon_versioning = yes; then 15006 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 15007 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15008 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15009 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15010 fi 15011 else 15012 ld_shlibs_F77=no 15013 fi 15014 ;; 15015 15016 netbsd*) 15017 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15018 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15019 wlarc= 15020 else 15021 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15022 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15023 fi 15024 ;; 15025 15026 solaris*) 15027 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15028 ld_shlibs_F77=no 15029 cat <<EOF 1>&2 15030 15031 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 15032 *** create shared libraries on Solaris systems. Therefore, libtool 15033 *** is disabling shared libraries support. We urge you to upgrade GNU 15034 *** binutils to release 2.9.1 or newer. Another option is to modify 15035 *** your PATH or compiler configuration so that the native linker is 15036 *** used, and then restart. 15037 15038 EOF 15039 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15041 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15042 else 15043 ld_shlibs_F77=no 15044 fi 15045 ;; 15046 15047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15048 case `$LD -v 2>&1` in 15049 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15050 ld_shlibs_F77=no 15051 cat <<_LT_EOF 1>&2 15052 15053 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15054 *** reliably create shared libraries on SCO systems. Therefore, libtool 15055 *** is disabling shared libraries support. We urge you to upgrade GNU 15056 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15057 *** your PATH or compiler configuration so that the native linker is 15058 *** used, and then restart. 15059 15060 _LT_EOF 15061 ;; 15062 *) 15063 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15064 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 15065 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 15066 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 15067 else 15068 ld_shlibs_F77=no 15069 fi 15070 ;; 15071 esac 15072 ;; 15073 15074 sunos4*) 15075 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15076 wlarc= 15077 hardcode_direct_F77=yes 15078 hardcode_shlibpath_var_F77=no 15079 ;; 15080 15081 *) 15082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15084 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15085 else 15086 ld_shlibs_F77=no 15087 fi 15088 ;; 15089 esac 15090 15091 if test "$ld_shlibs_F77" = no; then 15092 runpath_var= 15093 hardcode_libdir_flag_spec_F77= 15094 export_dynamic_flag_spec_F77= 15095 whole_archive_flag_spec_F77= 15096 fi 15097 else 15098 # PORTME fill in a description of your system's linker (not GNU ld) 15099 case $host_os in 15100 aix3*) 15101 allow_undefined_flag_F77=unsupported 15102 always_export_symbols_F77=yes 15103 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15104 # Note: this linker hardcodes the directories in LIBPATH if there 15105 # are no directories specified by -L. 15106 hardcode_minus_L_F77=yes 15107 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15108 # Neither direct hardcoding nor static linking is supported with a 15109 # broken collect2. 15110 hardcode_direct_F77=unsupported 15111 fi 15112 ;; 15113 15114 aix[4-9]*) 15115 if test "$host_cpu" = ia64; then 15116 # On IA64, the linker does run time linking by default, so we don't 15117 # have to do anything special. 15118 aix_use_runtimelinking=no 15119 exp_sym_flag='-Bexport' 15120 no_entry_flag="" 15121 else 15122 # If we're using GNU nm, then we don't want the "-C" option. 15123 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15124 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15125 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15126 else 15127 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15128 fi 15129 aix_use_runtimelinking=no 15130 15131 # Test if we are trying to use run time linking or normal 15132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15133 # need to do runtime linking. 15134 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15135 for ld_flag in $LDFLAGS; do 15136 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15137 aix_use_runtimelinking=yes 15138 break 15139 fi 15140 done 15141 ;; 15142 esac 15143 15144 exp_sym_flag='-bexport' 15145 no_entry_flag='-bnoentry' 15146 fi 15147 15148 # When large executables or shared objects are built, AIX ld can 15149 # have problems creating the table of contents. If linking a library 15150 # or program results in "error TOC overflow" add -mminimal-toc to 15151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15153 15154 archive_cmds_F77='' 15155 hardcode_direct_F77=yes 15156 hardcode_libdir_separator_F77=':' 15157 link_all_deplibs_F77=yes 15158 15159 if test "$GCC" = yes; then 15160 case $host_os in aix4.[012]|aix4.[012].*) 15161 # We only want to do this on AIX 4.2 and lower, the check 15162 # below for broken collect2 doesn't work under 4.3+ 15163 collect2name=`${CC} -print-prog-name=collect2` 15164 if test -f "$collect2name" && \ 15165 strings "$collect2name" | grep resolve_lib_name >/dev/null 15166 then 15167 # We have reworked collect2 15168 : 15169 else 15170 # We have old collect2 15171 hardcode_direct_F77=unsupported 15172 # It fails to find uninstalled libraries when the uninstalled 15173 # path is not listed in the libpath. Setting hardcode_minus_L 15174 # to unsupported forces relinking 15175 hardcode_minus_L_F77=yes 15176 hardcode_libdir_flag_spec_F77='-L$libdir' 15177 hardcode_libdir_separator_F77= 15178 fi 15179 ;; 15180 esac 15181 shared_flag='-shared' 15182 if test "$aix_use_runtimelinking" = yes; then 15183 shared_flag="$shared_flag "'${wl}-G' 15184 fi 15185 else 15186 # not using gcc 15187 if test "$host_cpu" = ia64; then 15188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15189 # chokes on -Wl,-G. The following line is correct: 15190 shared_flag='-G' 15191 else 15192 if test "$aix_use_runtimelinking" = yes; then 15193 shared_flag='${wl}-G' 15194 else 15195 shared_flag='${wl}-bM:SRE' 15196 fi 15197 fi 15198 fi 15199 15200 # It seems that -bexpall does not export symbols beginning with 15201 # underscore (_), so it is better to generate a list of symbols to export. 15202 always_export_symbols_F77=yes 15203 if test "$aix_use_runtimelinking" = yes; then 15204 # Warning - without using the other runtime loading flags (-brtl), 15205 # -berok will link without error, but may produce a broken library. 15206 allow_undefined_flag_F77='-berok' 15207 # Determine the default libpath from the value encoded in an empty executable. 15208 cat >conftest.$ac_ext <<_ACEOF 15209 program main 15210 15211 end 15212 _ACEOF 15213 rm -f conftest.$ac_objext conftest$ac_exeext 15214 if { (ac_try="$ac_link" 15215 case "(($ac_try" in 15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15217 *) ac_try_echo=$ac_try;; 15218 esac 15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15220 $as_echo "$ac_try_echo") >&5 15221 (eval "$ac_link") 2>conftest.er1 15222 ac_status=$? 15223 grep -v '^ *+' conftest.er1 >conftest.err 15224 rm -f conftest.er1 15225 cat conftest.err >&5 15226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15227 (exit $ac_status); } && { 15228 test -z "$ac_f77_werror_flag" || 15229 test ! -s conftest.err 15230 } && test -s conftest$ac_exeext && { 15231 test "$cross_compiling" = yes || 15232 $as_test_x conftest$ac_exeext 15233 }; then 15234 15235 lt_aix_libpath_sed=' 15236 /Import File Strings/,/^$/ { 15237 /^0/ { 15238 s/^0 *\(.*\)$/\1/ 15239 p 15240 } 15241 }' 15242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15243 # Check for a 64-bit object if we didn't find anything. 15244 if test -z "$aix_libpath"; then 15245 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15246 fi 15247 else 15248 $as_echo "$as_me: failed program was:" >&5 15249 sed 's/^/| /' conftest.$ac_ext >&5 15250 15251 15252 fi 15253 15254 rm -rf conftest.dSYM 15255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15256 conftest$ac_exeext conftest.$ac_ext 15257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15258 15259 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15260 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15261 else 15262 if test "$host_cpu" = ia64; then 15263 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 15264 allow_undefined_flag_F77="-z nodefs" 15265 archive_expsym_cmds_F77="\$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" 15266 else 15267 # Determine the default libpath from the value encoded in an empty executable. 15268 cat >conftest.$ac_ext <<_ACEOF 15269 program main 15270 15271 end 15272 _ACEOF 15273 rm -f conftest.$ac_objext conftest$ac_exeext 15274 if { (ac_try="$ac_link" 15275 case "(($ac_try" in 15276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15277 *) ac_try_echo=$ac_try;; 15278 esac 15279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 15280 $as_echo "$ac_try_echo") >&5 15281 (eval "$ac_link") 2>conftest.er1 15282 ac_status=$? 15283 grep -v '^ *+' conftest.er1 >conftest.err 15284 rm -f conftest.er1 15285 cat conftest.err >&5 15286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 15287 (exit $ac_status); } && { 15288 test -z "$ac_f77_werror_flag" || 15289 test ! -s conftest.err 15290 } && test -s conftest$ac_exeext && { 15291 test "$cross_compiling" = yes || 15292 $as_test_x conftest$ac_exeext 15293 }; then 15294 15295 lt_aix_libpath_sed=' 15296 /Import File Strings/,/^$/ { 15297 /^0/ { 15298 s/^0 *\(.*\)$/\1/ 15299 p 15300 } 15301 }' 15302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15303 # Check for a 64-bit object if we didn't find anything. 15304 if test -z "$aix_libpath"; then 15305 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15306 fi 15307 else 15308 $as_echo "$as_me: failed program was:" >&5 15309 sed 's/^/| /' conftest.$ac_ext >&5 15310 15311 15312 fi 15313 15314 rm -rf conftest.dSYM 15315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 15316 conftest$ac_exeext conftest.$ac_ext 15317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15318 15319 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 15320 # Warning - without using the other run time loading flags, 15321 # -berok will link without error, but may produce a broken library. 15322 no_undefined_flag_F77=' ${wl}-bernotok' 15323 allow_undefined_flag_F77=' ${wl}-berok' 15324 # Exported symbols can be pulled into shared objects from archives 15325 whole_archive_flag_spec_F77='$convenience' 15326 archive_cmds_need_lc_F77=yes 15327 # This is similar to how AIX traditionally builds its shared libraries. 15328 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15329 fi 15330 fi 15331 ;; 15332 15333 amigaos*) 15334 archive_cmds_F77='$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)' 15335 hardcode_libdir_flag_spec_F77='-L$libdir' 15336 hardcode_minus_L_F77=yes 15337 # see comment about different semantics on the GNU ld section 15338 ld_shlibs_F77=no 15339 ;; 15340 15341 bsdi[45]*) 15342 export_dynamic_flag_spec_F77=-rdynamic 15343 ;; 15344 15345 cygwin* | mingw* | pw32*) 15346 # When not using gcc, we currently assume that we are using 15347 # Microsoft Visual C++. 15348 # hardcode_libdir_flag_spec is actually meaningless, as there is 15349 # no search path for DLLs. 15350 hardcode_libdir_flag_spec_F77=' ' 15351 allow_undefined_flag_F77=unsupported 15352 # Tell ltmain to make .lib files, not .a files. 15353 libext=lib 15354 # Tell ltmain to make .dll files, not .so files. 15355 shrext_cmds=".dll" 15356 # FIXME: Setting linknames here is a bad hack. 15357 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15358 # The linker will automatically build a .lib file if we build a DLL. 15359 old_archive_From_new_cmds_F77='true' 15360 # FIXME: Should let the user specify the lib program. 15361 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 15362 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 15363 enable_shared_with_static_runtimes_F77=yes 15364 ;; 15365 15366 darwin* | rhapsody*) 15367 case $host_os in 15368 rhapsody* | darwin1.[012]) 15369 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 15370 ;; 15371 *) # Darwin 1.3 on 15372 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15373 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15374 else 15375 case ${MACOSX_DEPLOYMENT_TARGET} in 15376 10.[012]) 15377 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 15378 ;; 15379 10.*) 15380 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 15381 ;; 15382 esac 15383 fi 15384 ;; 15385 esac 15386 archive_cmds_need_lc_F77=no 15387 hardcode_direct_F77=no 15388 hardcode_automatic_F77=yes 15389 hardcode_shlibpath_var_F77=unsupported 15390 whole_archive_flag_spec_F77='' 15391 link_all_deplibs_F77=yes 15392 if test "$GCC" = yes ; then 15393 output_verbose_link_cmd='echo' 15394 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15395 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15396 archive_expsym_cmds_F77="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}" 15397 module_expsym_cmds_F77="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}" 15398 else 15399 case $cc_basename in 15400 xlc*) 15401 output_verbose_link_cmd='echo' 15402 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 15403 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 15405 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15406 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15407 ;; 15408 *) 15409 ld_shlibs_F77=no 15410 ;; 15411 esac 15412 fi 15413 ;; 15414 15415 dgux*) 15416 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15417 hardcode_libdir_flag_spec_F77='-L$libdir' 15418 hardcode_shlibpath_var_F77=no 15419 ;; 15420 15421 freebsd1*) 15422 ld_shlibs_F77=no 15423 ;; 15424 15425 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15426 # support. Future versions do this automatically, but an explicit c++rt0.o 15427 # does not break anything, and helps significantly (at the cost of a little 15428 # extra space). 15429 freebsd2.2*) 15430 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15431 hardcode_libdir_flag_spec_F77='-R$libdir' 15432 hardcode_direct_F77=yes 15433 hardcode_shlibpath_var_F77=no 15434 ;; 15435 15436 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15437 freebsd2*) 15438 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15439 hardcode_direct_F77=yes 15440 hardcode_minus_L_F77=yes 15441 hardcode_shlibpath_var_F77=no 15442 ;; 15443 15444 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15445 freebsd* | dragonfly*) 15446 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15447 hardcode_libdir_flag_spec_F77='-R$libdir' 15448 hardcode_direct_F77=yes 15449 hardcode_shlibpath_var_F77=no 15450 ;; 15451 15452 hpux9*) 15453 if test "$GCC" = yes; then 15454 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15455 else 15456 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15457 fi 15458 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15459 hardcode_libdir_separator_F77=: 15460 hardcode_direct_F77=yes 15461 15462 # hardcode_minus_L: Not really in the search PATH, 15463 # but as the default location of the library. 15464 hardcode_minus_L_F77=yes 15465 export_dynamic_flag_spec_F77='${wl}-E' 15466 ;; 15467 15468 hpux10*) 15469 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15470 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15471 else 15472 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15473 fi 15474 if test "$with_gnu_ld" = no; then 15475 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15476 hardcode_libdir_separator_F77=: 15477 15478 hardcode_direct_F77=yes 15479 export_dynamic_flag_spec_F77='${wl}-E' 15480 15481 # hardcode_minus_L: Not really in the search PATH, 15482 # but as the default location of the library. 15483 hardcode_minus_L_F77=yes 15484 fi 15485 ;; 15486 15487 hpux11*) 15488 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15489 case $host_cpu in 15490 hppa*64*) 15491 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15492 ;; 15493 ia64*) 15494 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15495 ;; 15496 *) 15497 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15498 ;; 15499 esac 15500 else 15501 case $host_cpu in 15502 hppa*64*) 15503 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15504 ;; 15505 ia64*) 15506 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15507 ;; 15508 *) 15509 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15510 ;; 15511 esac 15512 fi 15513 if test "$with_gnu_ld" = no; then 15514 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 15515 hardcode_libdir_separator_F77=: 15516 15517 case $host_cpu in 15518 hppa*64*|ia64*) 15519 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 15520 hardcode_direct_F77=no 15521 hardcode_shlibpath_var_F77=no 15522 ;; 15523 *) 15524 hardcode_direct_F77=yes 15525 export_dynamic_flag_spec_F77='${wl}-E' 15526 15527 # hardcode_minus_L: Not really in the search PATH, 15528 # but as the default location of the library. 15529 hardcode_minus_L_F77=yes 15530 ;; 15531 esac 15532 fi 15533 ;; 15534 15535 irix5* | irix6* | nonstopux*) 15536 if test "$GCC" = yes; then 15537 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15538 else 15539 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15540 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 15541 fi 15542 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15543 hardcode_libdir_separator_F77=: 15544 link_all_deplibs_F77=yes 15545 ;; 15546 15547 netbsd*) 15548 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15549 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15550 else 15551 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15552 fi 15553 hardcode_libdir_flag_spec_F77='-R$libdir' 15554 hardcode_direct_F77=yes 15555 hardcode_shlibpath_var_F77=no 15556 ;; 15557 15558 newsos6) 15559 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15560 hardcode_direct_F77=yes 15561 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15562 hardcode_libdir_separator_F77=: 15563 hardcode_shlibpath_var_F77=no 15564 ;; 15565 15566 openbsd*) 15567 if test -f /usr/libexec/ld.so; then 15568 hardcode_direct_F77=yes 15569 hardcode_shlibpath_var_F77=no 15570 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15571 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15572 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15573 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15574 export_dynamic_flag_spec_F77='${wl}-E' 15575 else 15576 case $host_os in 15577 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15578 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15579 hardcode_libdir_flag_spec_F77='-R$libdir' 15580 ;; 15581 *) 15582 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15583 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 15584 ;; 15585 esac 15586 fi 15587 else 15588 ld_shlibs_F77=no 15589 fi 15590 ;; 15591 15592 os2*) 15593 hardcode_libdir_flag_spec_F77='-L$libdir' 15594 hardcode_minus_L_F77=yes 15595 allow_undefined_flag_F77=unsupported 15596 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15597 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15598 ;; 15599 15600 osf3*) 15601 if test "$GCC" = yes; then 15602 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15603 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15604 else 15605 allow_undefined_flag_F77=' -expect_unresolved \*' 15606 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15607 fi 15608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15609 hardcode_libdir_separator_F77=: 15610 ;; 15611 15612 osf4* | osf5*) # as osf3* with the addition of -msym flag 15613 if test "$GCC" = yes; then 15614 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 15615 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15616 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 15617 else 15618 allow_undefined_flag_F77=' -expect_unresolved \*' 15619 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15620 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 15621 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 15622 15623 # Both c and cxx compiler support -rpath directly 15624 hardcode_libdir_flag_spec_F77='-rpath $libdir' 15625 fi 15626 hardcode_libdir_separator_F77=: 15627 ;; 15628 15629 solaris*) 15630 no_undefined_flag_F77=' -z text' 15631 if test "$GCC" = yes; then 15632 wlarc='${wl}' 15633 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15634 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15635 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 15636 else 15637 wlarc='' 15638 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15639 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 15640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 15641 fi 15642 hardcode_libdir_flag_spec_F77='-R$libdir' 15643 hardcode_shlibpath_var_F77=no 15644 case $host_os in 15645 solaris2.[0-5] | solaris2.[0-5].*) ;; 15646 *) 15647 # The compiler driver will combine and reorder linker options, 15648 # but understands `-z linker_flag'. GCC discards it without `$wl', 15649 # but is careful enough not to reorder. 15650 # Supported since Solaris 2.6 (maybe 2.5.1?) 15651 if test "$GCC" = yes; then 15652 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15653 else 15654 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 15655 fi 15656 ;; 15657 esac 15658 link_all_deplibs_F77=yes 15659 ;; 15660 15661 sunos4*) 15662 if test "x$host_vendor" = xsequent; then 15663 # Use $CC to link under sequent, because it throws in some extra .o 15664 # files that make .init and .fini sections work. 15665 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15666 else 15667 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15668 fi 15669 hardcode_libdir_flag_spec_F77='-L$libdir' 15670 hardcode_direct_F77=yes 15671 hardcode_minus_L_F77=yes 15672 hardcode_shlibpath_var_F77=no 15673 ;; 15674 15675 sysv4) 15676 case $host_vendor in 15677 sni) 15678 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15679 hardcode_direct_F77=yes # is this really true??? 15680 ;; 15681 siemens) 15682 ## LD is ld it makes a PLAMLIB 15683 ## CC just makes a GrossModule. 15684 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15685 reload_cmds_F77='$CC -r -o $output$reload_objs' 15686 hardcode_direct_F77=no 15687 ;; 15688 motorola) 15689 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15690 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 15691 ;; 15692 esac 15693 runpath_var='LD_RUN_PATH' 15694 hardcode_shlibpath_var_F77=no 15695 ;; 15696 15697 sysv4.3*) 15698 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15699 hardcode_shlibpath_var_F77=no 15700 export_dynamic_flag_spec_F77='-Bexport' 15701 ;; 15702 15703
