PageRenderTime 134ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 1ms

/core/10.4/libfuse/fuse-current-macosx.patch

http://macfuse.googlecode.com/
Patch | 12796 lines | 12358 code | 438 blank | 0 comment | 0 complexity | ed96b5cbba27551834293a2455db19a9 MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, GPL-2.0
  1. diff -Naur old/Makefile.in new/Makefile.in
  2. --- old/Makefile.in 2008-02-19 12:00:55.000000000 -0800
  3. +++ new/Makefile.in 2008-11-26 22:23:12.000000000 -0800
  4. @@ -1,8 +1,8 @@
  5. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  6. +# Makefile.in generated by automake 1.10 from Makefile.am.
  7. # @configure_input@
  8. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  9. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  10. +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  11. # This Makefile.in is free software; the Free Software Foundation
  12. # gives unlimited permission to copy and/or distribute it,
  13. # with or without modifications, as long as this notice is preserved.
  14. @@ -14,15 +14,11 @@
  15. @SET_MAKE@
  16. -srcdir = @srcdir@
  17. -top_srcdir = @top_srcdir@
  18. VPATH = @srcdir@
  19. pkgdatadir = $(datadir)/@PACKAGE@
  20. pkglibdir = $(libdir)/@PACKAGE@
  21. pkgincludedir = $(includedir)/@PACKAGE@
  22. -top_builddir = .
  23. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  24. -INSTALL = @INSTALL@
  25. install_sh_DATA = $(install_sh) -c -m 644
  26. install_sh_PROGRAM = $(install_sh) -c
  27. install_sh_SCRIPT = $(install_sh) -c
  28. @@ -37,18 +33,19 @@
  29. build_triplet = @build@
  30. host_triplet = @host@
  31. target_triplet = @target@
  32. +subdir = .
  33. DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  34. $(srcdir)/Makefile.in $(srcdir)/fuse.pc.in \
  35. $(top_srcdir)/configure AUTHORS COPYING COPYING.LIB ChangeLog \
  36. INSTALL NEWS compile config.guess config.rpath config.sub \
  37. depcomp install-sh ltmain.sh missing mkinstalldirs
  38. -subdir = .
  39. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  40. -am__aclocal_m4_deps = $(top_srcdir)/configure.in
  41. +am__aclocal_m4_deps = $(top_srcdir)/iconv.m4 \
  42. + $(top_srcdir)/configure.in
  43. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  44. $(ACLOCAL_M4)
  45. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  46. - configure.lineno configure.status.lineno
  47. + configure.lineno config.status.lineno
  48. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  49. CONFIG_HEADER = $(top_builddir)/include/config.h
  50. CONFIG_CLEAN_FILES = fuse.pc
  51. @@ -56,10 +53,11 @@
  52. DIST_SOURCES =
  53. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  54. html-recursive info-recursive install-data-recursive \
  55. - install-exec-recursive install-info-recursive \
  56. - install-recursive installcheck-recursive installdirs-recursive \
  57. - pdf-recursive ps-recursive uninstall-info-recursive \
  58. - uninstall-recursive
  59. + install-dvi-recursive install-exec-recursive \
  60. + install-html-recursive install-info-recursive \
  61. + install-pdf-recursive install-ps-recursive install-recursive \
  62. + installcheck-recursive installdirs-recursive pdf-recursive \
  63. + ps-recursive uninstall-recursive
  64. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  65. am__vpath_adj = case $$p in \
  66. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  67. @@ -69,6 +67,8 @@
  68. am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
  69. pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  70. DATA = $(pkgconfig_DATA)
  71. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  72. + distclean-recursive maintainer-clean-recursive
  73. ETAGS = etags
  74. CTAGS = ctags
  75. DIST_SUBDIRS = $(SUBDIRS)
  76. @@ -84,53 +84,49 @@
  77. distuninstallcheck_listfiles = find . -type f -print
  78. distcleancheck_listfiles = find . -type f -print
  79. ACLOCAL = @ACLOCAL@
  80. -AMDEP_FALSE = @AMDEP_FALSE@
  81. -AMDEP_TRUE = @AMDEP_TRUE@
  82. AMTAR = @AMTAR@
  83. AR = @AR@
  84. AUTOCONF = @AUTOCONF@
  85. AUTOHEADER = @AUTOHEADER@
  86. AUTOMAKE = @AUTOMAKE@
  87. AWK = @AWK@
  88. -BSD_FALSE = @BSD_FALSE@
  89. -BSD_TRUE = @BSD_TRUE@
  90. CC = @CC@
  91. CCDEPMODE = @CCDEPMODE@
  92. CFLAGS = @CFLAGS@
  93. CPP = @CPP@
  94. CPPFLAGS = @CPPFLAGS@
  95. +CXX = @CXX@
  96. +CXXCPP = @CXXCPP@
  97. +CXXDEPMODE = @CXXDEPMODE@
  98. +CXXFLAGS = @CXXFLAGS@
  99. CYGPATH_W = @CYGPATH_W@
  100. DEFS = @DEFS@
  101. DEPDIR = @DEPDIR@
  102. -DUMPBIN = @DUMPBIN@
  103. +ECHO = @ECHO@
  104. ECHO_C = @ECHO_C@
  105. ECHO_N = @ECHO_N@
  106. ECHO_T = @ECHO_T@
  107. EGREP = @EGREP@
  108. EXEEXT = @EXEEXT@
  109. -FGREP = @FGREP@
  110. +F77 = @F77@
  111. +FFLAGS = @FFLAGS@
  112. GREP = @GREP@
  113. -ICONV_FALSE = @ICONV_FALSE@
  114. -ICONV_TRUE = @ICONV_TRUE@
  115. INIT_D_PATH = @INIT_D_PATH@
  116. +INSTALL = @INSTALL@
  117. INSTALL_DATA = @INSTALL_DATA@
  118. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  119. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  120. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  121. -LD = @LD@
  122. LDFLAGS = @LDFLAGS@
  123. LIBICONV = @LIBICONV@
  124. LIBOBJS = @LIBOBJS@
  125. LIBS = @LIBS@
  126. LIBTOOL = @LIBTOOL@
  127. -LINUX_FALSE = @LINUX_FALSE@
  128. -LINUX_TRUE = @LINUX_TRUE@
  129. LN_S = @LN_S@
  130. -LTLIBICONV = @LTLIBICONV@
  131. LTLIBOBJS = @LTLIBOBJS@
  132. MAKEINFO = @MAKEINFO@
  133. +MKDIR_P = @MKDIR_P@
  134. MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
  135. -NM = @NM@
  136. OBJEXT = @OBJEXT@
  137. PACKAGE = @PACKAGE@
  138. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  139. @@ -140,16 +136,18 @@
  140. PACKAGE_VERSION = @PACKAGE_VERSION@
  141. PATH_SEPARATOR = @PATH_SEPARATOR@
  142. RANLIB = @RANLIB@
  143. -SED = @SED@
  144. SET_MAKE = @SET_MAKE@
  145. SHELL = @SHELL@
  146. STRIP = @STRIP@
  147. UDEV_RULES_PATH = @UDEV_RULES_PATH@
  148. VERSION = @VERSION@
  149. +abs_builddir = @abs_builddir@
  150. +abs_srcdir = @abs_srcdir@
  151. +abs_top_builddir = @abs_top_builddir@
  152. +abs_top_srcdir = @abs_top_srcdir@
  153. ac_ct_CC = @ac_ct_CC@
  154. -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  155. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  156. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  157. +ac_ct_CXX = @ac_ct_CXX@
  158. +ac_ct_F77 = @ac_ct_F77@
  159. am__include = @am__include@
  160. am__leading_dot = @am__leading_dot@
  161. am__quote = @am__quote@
  162. @@ -161,6 +159,7 @@
  163. build_cpu = @build_cpu@
  164. build_os = @build_os@
  165. build_vendor = @build_vendor@
  166. +builddir = @builddir@
  167. datadir = @datadir@
  168. datarootdir = @datarootdir@
  169. docdir = @docdir@
  170. @@ -180,7 +179,6 @@
  171. libfuse_libs = @libfuse_libs@
  172. localedir = @localedir@
  173. localstatedir = @localstatedir@
  174. -lt_ECHO = @lt_ECHO@
  175. mandir = @mandir@
  176. mkdir_p = @mkdir_p@
  177. oldincludedir = @oldincludedir@
  178. @@ -191,6 +189,7 @@
  179. psdir = @psdir@
  180. sbindir = @sbindir@
  181. sharedstatedir = @sharedstatedir@
  182. +srcdir = @srcdir@
  183. subdirs = @subdirs@
  184. subdirs2 = @subdirs2@
  185. sysconfdir = @sysconfdir@
  186. @@ -199,6 +198,8 @@
  187. target_cpu = @target_cpu@
  188. target_os = @target_os@
  189. target_vendor = @target_vendor@
  190. +top_builddir = @top_builddir@
  191. +top_srcdir = @top_srcdir@
  192. SUBDIRS = @subdirs@ @subdirs2@
  193. EXTRA_DIST = \
  194. fuse.pc.in \
  195. @@ -257,10 +258,9 @@
  196. distclean-libtool:
  197. -rm -f libtool
  198. -uninstall-info-am:
  199. install-pkgconfigDATA: $(pkgconfig_DATA)
  200. @$(NORMAL_INSTALL)
  201. - test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
  202. + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  203. @list='$(pkgconfig_DATA)'; for p in $$list; do \
  204. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  205. f=$(am__strip_dir) \
  206. @@ -307,8 +307,7 @@
  207. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  208. fi; test -z "$$fail"
  209. -mostlyclean-recursive clean-recursive distclean-recursive \
  210. -maintainer-clean-recursive:
  211. +$(RECURSIVE_CLEAN_TARGETS):
  212. @failcom='exit 1'; \
  213. for f in x $$MAKEFLAGS; do \
  214. case $$f in \
  215. @@ -410,24 +409,22 @@
  216. distdir: $(DISTFILES)
  217. $(am__remove_distdir)
  218. - mkdir $(distdir)
  219. - $(mkdir_p) $(distdir)/. $(distdir)/doc
  220. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  221. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  222. - list='$(DISTFILES)'; for file in $$list; do \
  223. - case $$file in \
  224. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  225. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  226. - esac; \
  227. + test -d $(distdir) || mkdir $(distdir)
  228. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  229. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  230. + list='$(DISTFILES)'; \
  231. + dist_files=`for file in $$list; do echo $$file; done | \
  232. + sed -e "s|^$$srcdirstrip/||;t" \
  233. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  234. + case $$dist_files in \
  235. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  236. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  237. + sort -u` ;; \
  238. + esac; \
  239. + for file in $$dist_files; do \
  240. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  241. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  242. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  243. - dir="/$$dir"; \
  244. - $(mkdir_p) "$(distdir)$$dir"; \
  245. - else \
  246. - dir=''; \
  247. - fi; \
  248. if test -d $$d/$$file; then \
  249. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  250. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  251. cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  252. fi; \
  253. @@ -441,7 +438,7 @@
  254. list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  255. if test "$$subdir" = .; then :; else \
  256. test -d "$(distdir)/$$subdir" \
  257. - || $(mkdir_p) "$(distdir)/$$subdir" \
  258. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  259. || exit 1; \
  260. distdir=`$(am__cd) $(distdir) && pwd`; \
  261. top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  262. @@ -449,6 +446,8 @@
  263. $(MAKE) $(AM_MAKEFLAGS) \
  264. top_distdir="$$top_distdir" \
  265. distdir="$$distdir/$$subdir" \
  266. + am__remove_distdir=: \
  267. + am__skip_length_check=: \
  268. distdir) \
  269. || exit 1; \
  270. fi; \
  271. @@ -456,7 +455,7 @@
  272. -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  273. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  274. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  275. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  276. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  277. || chmod -R a+r $(distdir)
  278. dist-gzip: distdir
  279. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  280. @@ -531,7 +530,7 @@
  281. $(am__remove_distdir)
  282. @(echo "$(distdir) archives ready for distribution: "; \
  283. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  284. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  285. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  286. distuninstallcheck:
  287. @cd $(distuninstallcheck_dir) \
  288. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  289. @@ -556,7 +555,7 @@
  290. installdirs: installdirs-recursive
  291. installdirs-am:
  292. for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
  293. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  294. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  295. done
  296. install: install-recursive
  297. install-exec: install-exec-recursive
  298. @@ -604,12 +603,20 @@
  299. install-data-am: install-pkgconfigDATA
  300. +install-dvi: install-dvi-recursive
  301. +
  302. install-exec-am:
  303. +install-html: install-html-recursive
  304. +
  305. install-info: install-info-recursive
  306. install-man:
  307. +install-pdf: install-pdf-recursive
  308. +
  309. +install-ps: install-ps-recursive
  310. +
  311. installcheck-am:
  312. maintainer-clean: maintainer-clean-recursive
  313. @@ -630,24 +637,26 @@
  314. ps-am:
  315. -uninstall-am: uninstall-info-am uninstall-pkgconfigDATA
  316. +uninstall-am: uninstall-pkgconfigDATA
  317. -uninstall-info: uninstall-info-recursive
  318. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
  319. + install-strip
  320. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  321. - check-am clean clean-generic clean-libtool clean-recursive \
  322. - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  323. - dist-shar dist-tarZ dist-zip distcheck distclean \
  324. - distclean-generic distclean-libtool distclean-recursive \
  325. - distclean-tags distcleancheck distdir distuninstallcheck dvi \
  326. - dvi-am html html-am info info-am install install-am \
  327. - install-data install-data-am install-exec install-exec-am \
  328. - install-info install-info-am install-man install-pkgconfigDATA \
  329. - install-strip installcheck installcheck-am installdirs \
  330. - installdirs-am maintainer-clean maintainer-clean-generic \
  331. - maintainer-clean-recursive mostlyclean mostlyclean-generic \
  332. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  333. - tags tags-recursive uninstall uninstall-am uninstall-info-am \
  334. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  335. + all all-am am--refresh check check-am clean clean-generic \
  336. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  337. + dist-gzip dist-shar dist-tarZ dist-zip distcheck distclean \
  338. + distclean-generic distclean-libtool distclean-tags \
  339. + distcleancheck distdir distuninstallcheck dvi dvi-am html \
  340. + html-am info info-am install install-am install-data \
  341. + install-data-am install-dvi install-dvi-am install-exec \
  342. + install-exec-am install-html install-html-am install-info \
  343. + install-info-am install-man install-pdf install-pdf-am \
  344. + install-pkgconfigDATA install-ps install-ps-am install-strip \
  345. + installcheck installcheck-am installdirs installdirs-am \
  346. + maintainer-clean maintainer-clean-generic mostlyclean \
  347. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  348. + tags tags-recursive uninstall uninstall-am \
  349. uninstall-pkgconfigDATA
  350. diff -Naur old/README.MacFUSE new/README.MacFUSE
  351. --- old/README.MacFUSE 1969-12-31 16:00:00.000000000 -0800
  352. +++ new/README.MacFUSE 2008-11-26 22:23:12.000000000 -0800
  353. @@ -0,0 +1,12 @@
  354. +MacFUSE Project Page:
  355. +
  356. +http://code.google.com/p/macfuse/
  357. +
  358. +Making a Universal build of libfuse:
  359. +
  360. +1. Run "/bin/sh ./darwin_configure.sh /path/to/macfuse/core/10.5/fusefs/"
  361. +2. Run make
  362. +
  363. +If you begin with the "raw" patch, you need to perform a step 0 as follows:
  364. +
  365. +aclocal -I . && autoheader && autoconf && automake -a
  366. diff -Naur old/aclocal.m4 new/aclocal.m4
  367. --- old/aclocal.m4 2008-02-19 12:00:31.000000000 -0800
  368. +++ new/aclocal.m4 2008-11-26 22:23:12.000000000 -0800
  369. @@ -1,7 +1,7 @@
  370. -# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
  371. +# generated automatically by aclocal 1.10 -*- Autoconf -*-
  372. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  373. -# 2005 Free Software Foundation, Inc.
  374. +# 2005, 2006 Free Software Foundation, Inc.
  375. # This file is free software; the Free Software Foundation
  376. # gives unlimited permission to copy and/or distribute it,
  377. # with or without modifications, as long as this notice is preserved.
  378. @@ -11,3269 +11,1519 @@
  379. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  380. # PARTICULAR PURPOSE.
  381. -# iconv.m4 serial AM4 (gettext-0.11.3)
  382. -dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
  383. -dnl This file is free software; the Free Software Foundation
  384. -dnl gives unlimited permission to copy and/or distribute it,
  385. -dnl with or without modifications, as long as this notice is preserved.
  386. +m4_if(m4_PACKAGE_VERSION, [2.61],,
  387. +[m4_fatal([this file was generated for autoconf 2.61.
  388. +You have another version of autoconf. If you want to use that,
  389. +you should regenerate the build system entirely.], [63])])
  390. -dnl From Bruno Haible.
  391. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  392. -AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
  393. -[
  394. - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
  395. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  396. - AC_REQUIRE([AC_LIB_RPATH])
  397. -
  398. - dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  399. - dnl accordingly.
  400. - AC_LIB_LINKFLAGS_BODY([iconv])
  401. -])
  402. +# serial 48 AC_PROG_LIBTOOL
  403. -AC_DEFUN([AM_ICONV_LINK],
  404. -[
  405. - dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
  406. - dnl those with the standalone portable GNU libiconv installed).
  407. - dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
  408. - dnl accordingly.
  409. - AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
  410. -
  411. - dnl Add $INCICONV to CPPFLAGS before performing the following checks,
  412. - dnl because if the user has installed libiconv and not disabled its use
  413. - dnl via --without-libiconv-prefix, he wants to use it. The first
  414. - dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
  415. - am_save_CPPFLAGS="$CPPFLAGS"
  416. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
  417. -
  418. - AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
  419. - am_cv_func_iconv="no, consider installing GNU libiconv"
  420. - am_cv_lib_iconv=no
  421. - AC_TRY_LINK([#include <stdlib.h>
  422. -#include <iconv.h>],
  423. - [iconv_t cd = iconv_open("","");
  424. - iconv(cd,NULL,NULL,NULL,NULL);
  425. - iconv_close(cd);],
  426. - am_cv_func_iconv=yes)
  427. - if test "$am_cv_func_iconv" != yes; then
  428. - am_save_LIBS="$LIBS"
  429. - LIBS="$LIBS $LIBICONV"
  430. - AC_TRY_LINK([#include <stdlib.h>
  431. -#include <iconv.h>],
  432. - [iconv_t cd = iconv_open("","");
  433. - iconv(cd,NULL,NULL,NULL,NULL);
  434. - iconv_close(cd);],
  435. - am_cv_lib_iconv=yes
  436. - am_cv_func_iconv=yes)
  437. - LIBS="$am_save_LIBS"
  438. - fi
  439. - ])
  440. - if test "$am_cv_func_iconv" = yes; then
  441. - AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
  442. - fi
  443. - if test "$am_cv_lib_iconv" = yes; then
  444. - AC_MSG_CHECKING([how to link with libiconv])
  445. - AC_MSG_RESULT([$LIBICONV])
  446. - else
  447. - dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
  448. - dnl either.
  449. - CPPFLAGS="$am_save_CPPFLAGS"
  450. - LIBICONV=
  451. - LTLIBICONV=
  452. - fi
  453. - AC_SUBST(LIBICONV)
  454. - AC_SUBST(LTLIBICONV)
  455. -])
  456. +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  457. +# -----------------------------------------------------------
  458. +# If this macro is not defined by Autoconf, define it here.
  459. +m4_ifdef([AC_PROVIDE_IFELSE],
  460. + [],
  461. + [m4_define([AC_PROVIDE_IFELSE],
  462. + [m4_ifdef([AC_PROVIDE_$1],
  463. + [$2], [$3])])])
  464. -AC_DEFUN([AM_ICONV],
  465. -[
  466. - AM_ICONV_LINK
  467. - if test "$am_cv_func_iconv" = yes; then
  468. - AC_MSG_CHECKING([for iconv declaration])
  469. - AC_CACHE_VAL(am_cv_proto_iconv, [
  470. - AC_TRY_COMPILE([
  471. -#include <stdlib.h>
  472. -#include <iconv.h>
  473. -extern
  474. -#ifdef __cplusplus
  475. -"C"
  476. -#endif
  477. -#if defined(__STDC__) || defined(__cplusplus)
  478. -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  479. -#else
  480. -size_t iconv();
  481. -#endif
  482. -], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
  483. - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
  484. - am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  485. - AC_MSG_RESULT([$]{ac_t:-
  486. - }[$]am_cv_proto_iconv)
  487. - AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
  488. - [Define as const if the declaration of iconv() needs const.])
  489. - fi
  490. -])
  491. -# lib-ld.m4 serial 3 (gettext-0.13)
  492. -dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  493. -dnl This file is free software; the Free Software Foundation
  494. -dnl gives unlimited permission to copy and/or distribute it,
  495. -dnl with or without modifications, as long as this notice is preserved.
  496. -
  497. -dnl Subroutines of libtool.m4,
  498. -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  499. -dnl with libtool.m4.
  500. -
  501. -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  502. -AC_DEFUN([AC_LIB_PROG_LD_GNU],
  503. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  504. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  505. -case `$LD -v 2>&1 </dev/null` in
  506. -*GNU* | *'with BFD'*)
  507. - acl_cv_prog_gnu_ld=yes ;;
  508. -*)
  509. - acl_cv_prog_gnu_ld=no ;;
  510. -esac])
  511. -with_gnu_ld=$acl_cv_prog_gnu_ld
  512. -])
  513. +# AC_PROG_LIBTOOL
  514. +# ---------------
  515. +AC_DEFUN([AC_PROG_LIBTOOL],
  516. +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  517. +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  518. +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  519. + AC_PROVIDE_IFELSE([AC_PROG_CXX],
  520. + [AC_LIBTOOL_CXX],
  521. + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  522. + ])])
  523. +dnl And a similar setup for Fortran 77 support
  524. + AC_PROVIDE_IFELSE([AC_PROG_F77],
  525. + [AC_LIBTOOL_F77],
  526. + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  527. +])])
  528. +
  529. +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  530. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  531. +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  532. + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  533. + [AC_LIBTOOL_GCJ],
  534. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  535. + [AC_LIBTOOL_GCJ],
  536. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  537. + [AC_LIBTOOL_GCJ],
  538. + [ifdef([AC_PROG_GCJ],
  539. + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  540. + ifdef([A][M_PROG_GCJ],
  541. + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  542. + ifdef([LT_AC_PROG_GCJ],
  543. + [define([LT_AC_PROG_GCJ],
  544. + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  545. +])])# AC_PROG_LIBTOOL
  546. -dnl From libtool-1.4. Sets the variable LD.
  547. -AC_DEFUN([AC_LIB_PROG_LD],
  548. -[AC_ARG_WITH(gnu-ld,
  549. -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  550. -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  551. -AC_REQUIRE([AC_PROG_CC])dnl
  552. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  553. -# Prepare PATH_SEPARATOR.
  554. -# The user is always right.
  555. -if test "${PATH_SEPARATOR+set}" != set; then
  556. - echo "#! /bin/sh" >conf$$.sh
  557. - echo "exit 0" >>conf$$.sh
  558. - chmod +x conf$$.sh
  559. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  560. - PATH_SEPARATOR=';'
  561. - else
  562. - PATH_SEPARATOR=:
  563. - fi
  564. - rm -f conf$$.sh
  565. -fi
  566. -ac_prog=ld
  567. -if test "$GCC" = yes; then
  568. - # Check if gcc -print-prog-name=ld gives a path.
  569. - AC_MSG_CHECKING([for ld used by GCC])
  570. - case $host in
  571. - *-*-mingw*)
  572. - # gcc leaves a trailing carriage return which upsets mingw
  573. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  574. - *)
  575. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  576. - esac
  577. - case $ac_prog in
  578. - # Accept absolute paths.
  579. - [[\\/]* | [A-Za-z]:[\\/]*)]
  580. - [re_direlt='/[^/][^/]*/\.\./']
  581. - # Canonicalize the path of ld
  582. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  583. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  584. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  585. - done
  586. - test -z "$LD" && LD="$ac_prog"
  587. - ;;
  588. - "")
  589. - # If it fails, then pretend we aren't using GCC.
  590. - ac_prog=ld
  591. - ;;
  592. - *)
  593. - # If it is relative, then search for the first ld in PATH.
  594. - with_gnu_ld=unknown
  595. - ;;
  596. - esac
  597. -elif test "$with_gnu_ld" = yes; then
  598. - AC_MSG_CHECKING([for GNU ld])
  599. -else
  600. - AC_MSG_CHECKING([for non-GNU ld])
  601. -fi
  602. -AC_CACHE_VAL(acl_cv_path_LD,
  603. -[if test -z "$LD"; then
  604. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  605. - for ac_dir in $PATH; do
  606. - test -z "$ac_dir" && ac_dir=.
  607. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  608. - acl_cv_path_LD="$ac_dir/$ac_prog"
  609. - # Check to see if the program is GNU ld. I'd rather use --version,
  610. - # but apparently some GNU ld's only accept -v.
  611. - # Break only if it was the GNU/non-GNU ld that we prefer.
  612. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  613. - *GNU* | *'with BFD'*)
  614. - test "$with_gnu_ld" != no && break ;;
  615. - *)
  616. - test "$with_gnu_ld" != yes && break ;;
  617. - esac
  618. - fi
  619. - done
  620. - IFS="$ac_save_ifs"
  621. -else
  622. - acl_cv_path_LD="$LD" # Let the user override the test with a path.
  623. -fi])
  624. -LD="$acl_cv_path_LD"
  625. -if test -n "$LD"; then
  626. - AC_MSG_RESULT($LD)
  627. -else
  628. - AC_MSG_RESULT(no)
  629. -fi
  630. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  631. -AC_LIB_PROG_LD_GNU
  632. -])
  633. -# lib-link.m4 serial 9 (gettext-0.16)
  634. -dnl Copyright (C) 2001-2006 Free Software Foundation, Inc.
  635. -dnl This file is free software; the Free Software Foundation
  636. -dnl gives unlimited permission to copy and/or distribute it,
  637. -dnl with or without modifications, as long as this notice is preserved.
  638. -
  639. -dnl From Bruno Haible.
  640. -
  641. -AC_PREREQ(2.50)
  642. -
  643. -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  644. -dnl the libraries corresponding to explicit and implicit dependencies.
  645. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  646. -dnl augments the CPPFLAGS variable.
  647. -AC_DEFUN([AC_LIB_LINKFLAGS],
  648. -[
  649. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  650. - AC_REQUIRE([AC_LIB_RPATH])
  651. - define([Name],[translit([$1],[./-], [___])])
  652. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  653. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  654. - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  655. - AC_LIB_LINKFLAGS_BODY([$1], [$2])
  656. - ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  657. - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  658. - ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  659. - ])
  660. - LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  661. - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  662. - INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  663. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  664. - AC_SUBST([LIB]NAME)
  665. - AC_SUBST([LTLIB]NAME)
  666. - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  667. - dnl results of this search when this library appears as a dependency.
  668. - HAVE_LIB[]NAME=yes
  669. - undefine([Name])
  670. - undefine([NAME])
  671. -])
  672. +# _AC_PROG_LIBTOOL
  673. +# ----------------
  674. +AC_DEFUN([_AC_PROG_LIBTOOL],
  675. +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  676. +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  677. +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  678. +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  679. -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  680. -dnl searches for libname and the libraries corresponding to explicit and
  681. -dnl implicit dependencies, together with the specified include files and
  682. -dnl the ability to compile and link the specified testcode. If found, it
  683. -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  684. -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  685. -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  686. -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  687. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  688. -[
  689. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  690. - AC_REQUIRE([AC_LIB_RPATH])
  691. - define([Name],[translit([$1],[./-], [___])])
  692. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  693. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  694. -
  695. - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  696. - dnl accordingly.
  697. - AC_LIB_LINKFLAGS_BODY([$1], [$2])
  698. -
  699. - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  700. - dnl because if the user has installed lib[]Name and not disabled its use
  701. - dnl via --without-lib[]Name-prefix, he wants to use it.
  702. - ac_save_CPPFLAGS="$CPPFLAGS"
  703. - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  704. -
  705. - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  706. - ac_save_LIBS="$LIBS"
  707. - LIBS="$LIBS $LIB[]NAME"
  708. - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  709. - LIBS="$ac_save_LIBS"
  710. - ])
  711. - if test "$ac_cv_lib[]Name" = yes; then
  712. - HAVE_LIB[]NAME=yes
  713. - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  714. - AC_MSG_CHECKING([how to link with lib[]$1])
  715. - AC_MSG_RESULT([$LIB[]NAME])
  716. - else
  717. - HAVE_LIB[]NAME=no
  718. - dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  719. - dnl $INC[]NAME either.
  720. - CPPFLAGS="$ac_save_CPPFLAGS"
  721. - LIB[]NAME=
  722. - LTLIB[]NAME=
  723. - fi
  724. - AC_SUBST([HAVE_LIB]NAME)
  725. - AC_SUBST([LIB]NAME)
  726. - AC_SUBST([LTLIB]NAME)
  727. - undefine([Name])
  728. - undefine([NAME])
  729. -])
  730. +# This can be used to rebuild libtool when needed
  731. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  732. -dnl Determine the platform dependent parameters needed to use rpath:
  733. -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
  734. -dnl hardcode_direct, hardcode_minus_L.
  735. -AC_DEFUN([AC_LIB_RPATH],
  736. -[
  737. - dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  738. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  739. - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  740. - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  741. - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  742. - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  743. - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  744. - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  745. - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  746. - . ./conftest.sh
  747. - rm -f ./conftest.sh
  748. - acl_cv_rpath=done
  749. - ])
  750. - wl="$acl_cv_wl"
  751. - libext="$acl_cv_libext"
  752. - shlibext="$acl_cv_shlibext"
  753. - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  754. - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  755. - hardcode_direct="$acl_cv_hardcode_direct"
  756. - hardcode_minus_L="$acl_cv_hardcode_minus_L"
  757. - dnl Determine whether the user wants rpath handling at all.
  758. - AC_ARG_ENABLE(rpath,
  759. - [ --disable-rpath do not hardcode runtime library paths],
  760. - :, enable_rpath=yes)
  761. -])
  762. +# Always use our own libtool.
  763. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  764. +AC_SUBST(LIBTOOL)dnl
  765. -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  766. -dnl the libraries corresponding to explicit and implicit dependencies.
  767. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  768. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  769. -[
  770. - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  771. - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  772. - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  773. - dnl By default, look in $includedir and $libdir.
  774. - use_additional=yes
  775. - AC_LIB_WITH_FINAL_PREFIX([
  776. - eval additional_includedir=\"$includedir\"
  777. - eval additional_libdir=\"$libdir\"
  778. - ])
  779. - AC_LIB_ARG_WITH([lib$1-prefix],
  780. -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  781. - --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
  782. -[
  783. - if test "X$withval" = "Xno"; then
  784. - use_additional=no
  785. - else
  786. - if test "X$withval" = "X"; then
  787. - AC_LIB_WITH_FINAL_PREFIX([
  788. - eval additional_includedir=\"$includedir\"
  789. - eval additional_libdir=\"$libdir\"
  790. - ])
  791. - else
  792. - additional_includedir="$withval/include"
  793. - additional_libdir="$withval/$acl_libdirstem"
  794. - fi
  795. - fi
  796. -])
  797. - dnl Search the library and its dependencies in $additional_libdir and
  798. - dnl $LDFLAGS. Using breadth-first-seach.
  799. - LIB[]NAME=
  800. - LTLIB[]NAME=
  801. - INC[]NAME=
  802. - rpathdirs=
  803. - ltrpathdirs=
  804. - names_already_handled=
  805. - names_next_round='$1 $2'
  806. - while test -n "$names_next_round"; do
  807. - names_this_round="$names_next_round"
  808. - names_next_round=
  809. - for name in $names_this_round; do
  810. - already_handled=
  811. - for n in $names_already_handled; do
  812. - if test "$n" = "$name"; then
  813. - already_handled=yes
  814. - break
  815. - fi
  816. - done
  817. - if test -z "$already_handled"; then
  818. - names_already_handled="$names_already_handled $name"
  819. - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  820. - dnl or AC_LIB_HAVE_LINKFLAGS call.
  821. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  822. - eval value=\"\$HAVE_LIB$uppername\"
  823. - if test -n "$value"; then
  824. - if test "$value" = yes; then
  825. - eval value=\"\$LIB$uppername\"
  826. - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  827. - eval value=\"\$LTLIB$uppername\"
  828. - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  829. - else
  830. - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  831. - dnl that this library doesn't exist. So just drop it.
  832. - :
  833. - fi
  834. - else
  835. - dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  836. - dnl and the already constructed $LIBNAME/$LTLIBNAME.
  837. - found_dir=
  838. - found_la=
  839. - found_so=
  840. - found_a=
  841. - if test $use_additional = yes; then
  842. - if test -n "$shlibext" \
  843. - && { test -f "$additional_libdir/lib$name.$shlibext" \
  844. - || { test "$shlibext" = dll \
  845. - && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
  846. - found_dir="$additional_libdir"
  847. - if test -f "$additional_libdir/lib$name.$shlibext"; then
  848. - found_so="$additional_libdir/lib$name.$shlibext"
  849. - else
  850. - found_so="$additional_libdir/lib$name.dll.a"
  851. - fi
  852. - if test -f "$additional_libdir/lib$name.la"; then
  853. - found_la="$additional_libdir/lib$name.la"
  854. - fi
  855. - else
  856. - if test -f "$additional_libdir/lib$name.$libext"; then
  857. - found_dir="$additional_libdir"
  858. - found_a="$additional_libdir/lib$name.$libext"
  859. - if test -f "$additional_libdir/lib$name.la"; then
  860. - found_la="$additional_libdir/lib$name.la"
  861. - fi
  862. - fi
  863. - fi
  864. - fi
  865. - if test "X$found_dir" = "X"; then
  866. - for x in $LDFLAGS $LTLIB[]NAME; do
  867. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  868. - case "$x" in
  869. - -L*)
  870. - dir=`echo "X$x" | sed -e 's/^X-L//'`
  871. - if test -n "$shlibext" \
  872. - && { test -f "$dir/lib$name.$shlibext" \
  873. - || { test "$shlibext" = dll \
  874. - && test -f "$dir/lib$name.dll.a"; }; }; then
  875. - found_dir="$dir"
  876. - if test -f "$dir/lib$name.$shlibext"; then
  877. - found_so="$dir/lib$name.$shlibext"
  878. - else
  879. - found_so="$dir/lib$name.dll.a"
  880. - fi
  881. - if test -f "$dir/lib$name.la"; then
  882. - found_la="$dir/lib$name.la"
  883. - fi
  884. - else
  885. - if test -f "$dir/lib$name.$libext"; then
  886. - found_dir="$dir"
  887. - found_a="$dir/lib$name.$libext"
  888. - if test -f "$dir/lib$name.la"; then
  889. - found_la="$dir/lib$name.la"
  890. - fi
  891. - fi
  892. - fi
  893. - ;;
  894. - esac
  895. - if test "X$found_dir" != "X"; then
  896. - break
  897. - fi
  898. - done
  899. - fi
  900. - if test "X$found_dir" != "X"; then
  901. - dnl Found the library.
  902. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  903. - if test "X$found_so" != "X"; then
  904. - dnl Linking with a shared library. We attempt to hardcode its
  905. - dnl directory into the executable's runpath, unless it's the
  906. - dnl standard /usr/lib.
  907. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  908. - dnl No hardcoding is needed.
  909. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  910. - else
  911. - dnl Use an explicit option to hardcode DIR into the resulting
  912. - dnl binary.
  913. - dnl Potentially add DIR to ltrpathdirs.
  914. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  915. - haveit=
  916. - for x in $ltrpathdirs; do
  917. - if test "X$x" = "X$found_dir"; then
  918. - haveit=yes
  919. - break
  920. - fi
  921. - done
  922. - if test -z "$haveit"; then
  923. - ltrpathdirs="$ltrpathdirs $found_dir"
  924. - fi
  925. - dnl The hardcoding into $LIBNAME is system dependent.
  926. - if test "$hardcode_direct" = yes; then
  927. - dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  928. - dnl resulting binary.
  929. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  930. - else
  931. - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  932. - dnl Use an explicit option to hardcode DIR into the resulting
  933. - dnl binary.
  934. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  935. - dnl Potentially add DIR to rpathdirs.
  936. - dnl The rpathdirs will be appended to $LIBNAME at the end.
  937. - haveit=
  938. - for x in $rpathdirs; do
  939. - if test "X$x" = "X$found_dir"; then
  940. - haveit=yes
  941. - break
  942. - fi
  943. - done
  944. - if test -z "$haveit"; then
  945. - rpathdirs="$rpathdirs $found_dir"
  946. - fi
  947. - else
  948. - dnl Rely on "-L$found_dir".
  949. - dnl But don't add it if it's already contained in the LDFLAGS
  950. - dnl or the already constructed $LIBNAME
  951. - haveit=
  952. - for x in $LDFLAGS $LIB[]NAME; do
  953. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  954. - if test "X$x" = "X-L$found_dir"; then
  955. - haveit=yes
  956. - break
  957. - fi
  958. - done
  959. - if test -z "$haveit"; then
  960. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  961. - fi
  962. - if test "$hardcode_minus_L" != no; then
  963. - dnl FIXME: Not sure whether we should use
  964. - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  965. - dnl here.
  966. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  967. - else
  968. - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
  969. - dnl here, because this doesn't fit in flags passed to the
  970. - dnl compiler. So give up. No hardcoding. This affects only
  971. - dnl very old systems.
  972. - dnl FIXME: Not sure whether we should use
  973. - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  974. - dnl here.
  975. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  976. - fi
  977. - fi
  978. - fi
  979. - fi
  980. - else
  981. - if test "X$found_a" != "X"; then
  982. - dnl Linking with a static library.
  983. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  984. - else
  985. - dnl We shouldn't come here, but anyway it's good to have a
  986. - dnl fallback.
  987. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  988. - fi
  989. - fi
  990. - dnl Assume the include files are nearby.
  991. - additional_includedir=
  992. - case "$found_dir" in
  993. - */$acl_libdirstem | */$acl_libdirstem/)
  994. - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  995. - additional_includedir="$basedir/include"
  996. - ;;
  997. - esac
  998. - if test "X$additional_includedir" != "X"; then
  999. - dnl Potentially add $additional_includedir to $INCNAME.
  1000. - dnl But don't add it
  1001. - dnl 1. if it's the standard /usr/include,
  1002. - dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  1003. - dnl 3. if it's already present in $CPPFLAGS or the already
  1004. - dnl constructed $INCNAME,
  1005. - dnl 4. if it doesn't exist as a directory.
  1006. - if test "X$additional_includedir" != "X/usr/include"; then
  1007. - haveit=
  1008. - if test "X$additional_includedir" = "X/usr/local/include"; then
  1009. - if test -n "$GCC"; then
  1010. - case $host_os in
  1011. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  1012. - esac
  1013. - fi
  1014. - fi
  1015. - if test -z "$haveit"; then
  1016. - for x in $CPPFLAGS $INC[]NAME; do
  1017. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1018. - if test "X$x" = "X-I$additional_includedir"; then
  1019. - haveit=yes
  1020. - break
  1021. - fi
  1022. - done
  1023. - if test -z "$haveit"; then
  1024. - if test -d "$additional_includedir"; then
  1025. - dnl Really add $additional_includedir to $INCNAME.
  1026. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  1027. - fi
  1028. - fi
  1029. - fi
  1030. - fi
  1031. - fi
  1032. - dnl Look for dependencies.
  1033. - if test -n "$found_la"; then
  1034. - dnl Read the .la file. It defines the variables
  1035. - dnl dlname, library_names, old_library, dependency_libs, current,
  1036. - dnl age, revision, installed, dlopen, dlpreopen, libdir.
  1037. - save_libdir="$libdir"
  1038. - case "$found_la" in
  1039. - */* | *\\*) . "$found_la" ;;
  1040. - *) . "./$found_la" ;;
  1041. - esac
  1042. - libdir="$save_libdir"
  1043. - dnl We use only dependency_libs.
  1044. - for dep in $dependency_libs; do
  1045. - case "$dep" in
  1046. - -L*)
  1047. - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  1048. - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  1049. - dnl But don't add it
  1050. - dnl 1. if it's the standard /usr/lib,
  1051. - dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  1052. - dnl 3. if it's already present in $LDFLAGS or the already
  1053. - dnl constructed $LIBNAME,
  1054. - dnl 4. if it doesn't exist as a directory.
  1055. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  1056. - haveit=
  1057. - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  1058. - if test -n "$GCC"; then
  1059. - case $host_os in
  1060. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  1061. - esac
  1062. - fi
  1063. - fi
  1064. - if test -z "$haveit"; then
  1065. - haveit=
  1066. - for x in $LDFLAGS $LIB[]NAME; do
  1067. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1068. - if test "X$x" = "X-L$additional_libdir"; then
  1069. - haveit=yes
  1070. - break
  1071. - fi
  1072. - done
  1073. - if test -z "$haveit"; then
  1074. - if test -d "$additional_libdir"; then
  1075. - dnl Really add $additional_libdir to $LIBNAME.
  1076. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  1077. - fi
  1078. - fi
  1079. - haveit=
  1080. - for x in $LDFLAGS $LTLIB[]NAME; do
  1081. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1082. - if test "X$x" = "X-L$additional_libdir"; then
  1083. - haveit=yes
  1084. - break
  1085. - fi
  1086. - done
  1087. - if test -z "$haveit"; then
  1088. - if test -d "$additional_libdir"; then
  1089. - dnl Really add $additional_libdir to $LTLIBNAME.
  1090. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  1091. - fi
  1092. - fi
  1093. - fi
  1094. - fi
  1095. - ;;
  1096. - -R*)
  1097. - dir=`echo "X$dep" | sed -e 's/^X-R//'`
  1098. - if test "$enable_rpath" != no; then
  1099. - dnl Potentially add DIR to rpathdirs.
  1100. - dnl The rpathdirs will be appended to $LIBNAME at the end.
  1101. - haveit=
  1102. - for x in $rpathdirs; do
  1103. - if test "X$x" = "X$dir"; then
  1104. - haveit=yes
  1105. - break
  1106. - fi
  1107. - done
  1108. - if test -z "$haveit"; then
  1109. - rpathdirs="$rpathdirs $dir"
  1110. - fi
  1111. - dnl Potentially add DIR to ltrpathdirs.
  1112. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  1113. - haveit=
  1114. - for x in $ltrpathdirs; do
  1115. - if test "X$x" = "X$dir"; then
  1116. - haveit=yes
  1117. - break
  1118. - fi
  1119. - done
  1120. - if test -z "$haveit"; then
  1121. - ltrpathdirs="$ltrpathdirs $dir"
  1122. - fi
  1123. - fi
  1124. - ;;
  1125. - -l*)
  1126. - dnl Handle this in the next round.
  1127. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  1128. - ;;
  1129. - *.la)
  1130. - dnl Handle this in the next round. Throw away the .la's
  1131. - dnl directory; it is already contained in a preceding -L
  1132. - dnl option.
  1133. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  1134. - ;;
  1135. - *)
  1136. - dnl Most likely an immediate library name.
  1137. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  1138. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  1139. - ;;
  1140. - esac
  1141. - done
  1142. - fi
  1143. - else
  1144. - dnl Didn't find the library; assume it is in the system directories
  1145. - dnl known to the linker and runtime loader. (All the system
  1146. - dnl directories known to the linker should also be known to the
  1147. - dnl runtime loader, otherwise the system is severely misconfigured.)
  1148. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  1149. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  1150. - fi
  1151. - fi
  1152. - fi
  1153. - done
  1154. - done
  1155. - if test "X$rpathdirs" != "X"; then
  1156. - if test -n "$hardcode_libdir_separator"; then
  1157. - dnl Weird platform: only the last -rpath option counts, the user must
  1158. - dnl pass all path elements in one option. We can arrange that for a
  1159. - dnl single library, but not when more than one $LIBNAMEs are used.
  1160. - alldirs=
  1161. - for found_dir in $rpathdirs; do
  1162. - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  1163. - done
  1164. - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
  1165. - acl_save_libdir="$libdir"
  1166. - libdir="$alldirs"
  1167. - eval flag=\"$hardcode_libdir_flag_spec\"
  1168. - libdir="$acl_save_libdir"
  1169. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  1170. - else
  1171. - dnl The -rpath options are cumulative.
  1172. - for found_dir in $rpathdirs; do
  1173. - acl_save_libdir="$libdir"
  1174. - libdir="$found_dir"
  1175. - eval flag=\"$hardcode_libdir_flag_spec\"
  1176. - libdir="$acl_save_libdir"
  1177. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  1178. - done
  1179. - fi
  1180. - fi
  1181. - if test "X$ltrpathdirs" != "X"; then
  1182. - dnl When using libtool, the option that works for both libraries and
  1183. - dnl executables is -R. The -R options are cumulative.
  1184. - for found_dir in $ltrpathdirs; do
  1185. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  1186. - done
  1187. - fi
  1188. -])
  1189. +# Prevent multiple expansion
  1190. +define([AC_PROG_LIBTOOL], [])
  1191. +])# _AC_PROG_LIBTOOL
  1192. -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  1193. -dnl unless already present in VAR.
  1194. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  1195. -dnl contains two or three consecutive elements that belong together.
  1196. -AC_DEFUN([AC_LIB_APPENDTOVAR],
  1197. -[
  1198. - for element in [$2]; do
  1199. - haveit=
  1200. - for x in $[$1]; do
  1201. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1202. - if test "X$x" = "X$element"; then
  1203. - haveit=yes
  1204. - break
  1205. - fi
  1206. - done
  1207. - if test -z "$haveit"; then
  1208. - [$1]="${[$1]}${[$1]:+ }$element"
  1209. - fi
  1210. - done
  1211. -])
  1212. -dnl For those cases where a variable contains several -L and -l options
  1213. -dnl referring to unknown libraries and directories, this macro determines the
  1214. -dnl necessary additional linker options for the runtime path.
  1215. -dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
  1216. -dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
  1217. -dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
  1218. -dnl otherwise linking without libtool is assumed.
  1219. -AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
  1220. -[
  1221. - AC_REQUIRE([AC_LIB_RPATH])
  1222. - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  1223. - $1=
  1224. - if test "$enable_rpath" != no; then
  1225. - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  1226. - dnl Use an explicit option to hardcode directories into the resulting
  1227. - dnl binary.
  1228. - rpathdirs=
  1229. - next=
  1230. - for opt in $2; do
  1231. - if test -n "$next"; then
  1232. - dir="$next"
  1233. - dnl No need to hardcode the standard /usr/lib.
  1234. - if test "X$dir" != "X/usr/$acl_libdirstem"; then
  1235. - rpathdirs="$rpathdirs $dir"
  1236. - fi
  1237. - next=
  1238. - else
  1239. - case $opt in
  1240. - -L) next=yes ;;
  1241. - -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
  1242. - dnl No need to hardcode the standard /usr/lib.
  1243. - if test "X$dir" != "X/usr/$acl_libdirstem"; then
  1244. - rpathdirs="$rpathdirs $dir"
  1245. - fi
  1246. - next= ;;
  1247. - *) next= ;;
  1248. - esac
  1249. - fi
  1250. - done
  1251. - if test "X$rpathdirs" != "X"; then
  1252. - if test -n ""$3""; then
  1253. - dnl libtool is used for linking. Use -R options.
  1254. - for dir in $rpathdirs; do
  1255. - $1="${$1}${$1:+ }-R$dir"
  1256. - done
  1257. - else
  1258. - dnl The linker is used for linking directly.
  1259. - if test -n "$hardcode_libdir_separator"; then
  1260. - dnl Weird platform: only the last -rpath option counts, the user
  1261. - dnl must pass all path elements in one option.
  1262. - alldirs=
  1263. - for dir in $rpathdirs; do
  1264. - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir"
  1265. - done
  1266. - acl_save_libdir="$libdir"
  1267. - libdir="$alldirs"
  1268. - eval flag=\"$hardcode_libdir_flag_spec\"
  1269. - libdir="$acl_save_libdir"
  1270. - $1="$flag"
  1271. - else
  1272. - dnl The -rpath options are cumulative.
  1273. - for dir in $rpathdirs; do
  1274. - acl_save_libdir="$libdir"
  1275. - libdir="$dir"
  1276. - eval flag=\"$hardcode_libdir_flag_spec\"
  1277. - libdir="$acl_save_libdir"
  1278. - $1="${$1}${$1:+ }$flag"
  1279. - done
  1280. - fi
  1281. - fi
  1282. - fi
  1283. - fi
  1284. - fi
  1285. - AC_SUBST([$1])
  1286. -])
  1287. +# AC_LIBTOOL_SETUP
  1288. +# ----------------
  1289. +AC_DEFUN([AC_LIBTOOL_SETUP],
  1290. +[AC_PREREQ(2.50)dnl
  1291. +AC_REQUIRE([AC_ENABLE_SHARED])dnl
  1292. +AC_REQUIRE([AC_ENABLE_STATIC])dnl
  1293. +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  1294. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1295. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1296. +AC_REQUIRE([AC_PROG_CC])dnl
  1297. +AC_REQUIRE([AC_PROG_LD])dnl
  1298. +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  1299. +AC_REQUIRE([AC_PROG_NM])dnl
  1300. -# lib-prefix.m4 serial 5 (gettext-0.15)
  1301. -dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  1302. -dnl This file is free software; the Free Software Foundation
  1303. -dnl gives unlimited permission to copy and/or distribute it,
  1304. -dnl with or without modifications, as long as this notice is preserved.
  1305. -
  1306. -dnl From Bruno Haible.
  1307. -
  1308. -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  1309. -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  1310. -dnl require excessive bracketing.
  1311. -ifdef([AC_HELP_STRING],
  1312. -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  1313. -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  1314. -
  1315. -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  1316. -dnl to access previously installed libraries. The basic assumption is that
  1317. -dnl a user will want packages to use other packages he previously installed
  1318. -dnl with the same --prefix option.
  1319. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  1320. -dnl libraries, but is otherwise very convenient.
  1321. -AC_DEFUN([AC_LIB_PREFIX],
  1322. -[
  1323. - AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  1324. - AC_REQUIRE([AC_PROG_CC])
  1325. - AC_REQUIRE([AC_CANONICAL_HOST])
  1326. - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
  1327. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  1328. - dnl By default, look in $includedir and $libdir.
  1329. - use_additional=yes
  1330. - AC_LIB_WITH_FINAL_PREFIX([
  1331. - eval additional_includedir=\"$includedir\"
  1332. - eval additional_libdir=\"$libdir\"
  1333. - ])
  1334. - AC_LIB_ARG_WITH([lib-prefix],
  1335. -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  1336. - --without-lib-prefix don't search for libraries in includedir and libdir],
  1337. -[
  1338. - if test "X$withval" = "Xno"; then
  1339. - use_additional=no
  1340. - else
  1341. - if test "X$withval" = "X"; then
  1342. - AC_LIB_WITH_FINAL_PREFIX([
  1343. - eval additional_includedir=\"$includedir\"
  1344. - eval additional_libdir=\"$libdir\"
  1345. - ])
  1346. - else
  1347. - additional_includedir="$withval/include"
  1348. - additional_libdir="$withval/$acl_libdirstem"
  1349. - fi
  1350. - fi
  1351. -])
  1352. - if test $use_additional = yes; then
  1353. - dnl Potentially add $additional_includedir to $CPPFLAGS.
  1354. - dnl But don't add it
  1355. - dnl 1. if it's the standard /usr/include,
  1356. - dnl 2. if it's already present in $CPPFLAGS,
  1357. - dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  1358. - dnl 4. if it doesn't exist as a directory.
  1359. - if test "X$additional_includedir" != "X/usr/include"; then
  1360. - haveit=
  1361. - for x in $CPPFLAGS; do
  1362. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1363. - if test "X$x" = "X-I$additional_includedir"; then
  1364. - haveit=yes
  1365. - break
  1366. - fi
  1367. - done
  1368. - if test -z "$haveit"; then
  1369. - if test "X$additional_includedir" = "X/usr/local/include"; then
  1370. - if test -n "$GCC"; then
  1371. - case $host_os in
  1372. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  1373. - esac
  1374. - fi
  1375. - fi
  1376. - if test -z "$haveit"; then
  1377. - if test -d "$additional_includedir"; then
  1378. - dnl Really add $additional_includedir to $CPPFLAGS.
  1379. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  1380. - fi
  1381. - fi
  1382. - fi
  1383. - fi
  1384. - dnl Potentially add $additional_libdir to $LDFLAGS.
  1385. - dnl But don't add it
  1386. - dnl 1. if it's the standard /usr/lib,
  1387. - dnl 2. if it's already present in $LDFLAGS,
  1388. - dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  1389. - dnl 4. if it doesn't exist as a directory.
  1390. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  1391. - haveit=
  1392. - for x in $LDFLAGS; do
  1393. - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  1394. - if test "X$x" = "X-L$additional_libdir"; then
  1395. - haveit=yes
  1396. - break
  1397. - fi
  1398. - done
  1399. - if test -z "$haveit"; then
  1400. - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  1401. - if test -n "$GCC"; then
  1402. - case $host_os in
  1403. - linux*) haveit=yes;;
  1404. - esac
  1405. - fi
  1406. - fi
  1407. - if test -z "$haveit"; then
  1408. - if test -d "$additional_libdir"; then
  1409. - dnl Really add $additional_libdir to $LDFLAGS.
  1410. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  1411. - fi
  1412. - fi
  1413. - fi
  1414. - fi
  1415. - fi
  1416. -])
  1417. +AC_REQUIRE([AC_PROG_LN_S])dnl
  1418. +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  1419. +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  1420. +AC_REQUIRE([AC_OBJEXT])dnl
  1421. +AC_REQUIRE([AC_EXEEXT])dnl
  1422. +dnl
  1423. -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  1424. -dnl acl_final_exec_prefix, containing the values to which $prefix and
  1425. -dnl $exec_prefix will expand at the end of the configure script.
  1426. -AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  1427. -[
  1428. - dnl Unfortunately, prefix and exec_prefix get only finally determined
  1429. - dnl at the end of configure.
  1430. - if test "X$prefix" = "XNONE"; then
  1431. - acl_final_prefix="$ac_default_prefix"
  1432. - else
  1433. - acl_final_prefix="$prefix"
  1434. - fi
  1435. - if test "X$exec_prefix" = "XNONE"; then
  1436. - acl_final_exec_prefix='${prefix}'
  1437. - else
  1438. - acl_final_exec_prefix="$exec_prefix"
  1439. - fi
  1440. - acl_save_prefix="$prefix"
  1441. - prefix="$acl_final_prefix"
  1442. - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  1443. - prefix="$acl_save_prefix"
  1444. -])
  1445. +AC_LIBTOOL_SYS_MAX_CMD_LEN
  1446. +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1447. +AC_LIBTOOL_OBJDIR
  1448. -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  1449. -dnl variables prefix and exec_prefix bound to the values they will have
  1450. -dnl at the end of the configure script.
  1451. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  1452. -[
  1453. - acl_save_prefix="$prefix"
  1454. - prefix="$acl_final_prefix"
  1455. - acl_save_exec_prefix="$exec_prefix"
  1456. - exec_prefix="$acl_final_exec_prefix"
  1457. - $1
  1458. - exec_prefix="$acl_save_exec_prefix"
  1459. - prefix="$acl_save_prefix"
  1460. -])
  1461. +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1462. +_LT_AC_PROG_ECHO_BACKSLASH
  1463. -dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
  1464. -dnl the basename of the libdir, either "lib" or "lib64".
  1465. -AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
  1466. -[
  1467. - dnl There is no formal standard regarding lib and lib64. The current
  1468. - dnl practice is that on a system supporting 32-bit and 64-bit instruction
  1469. - dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
  1470. - dnl libraries go under $prefix/lib. We determine the compiler's default
  1471. - dnl mode by looking at the compiler's library search path. If at least
  1472. - dnl of its elements ends in /lib64 or points to a directory whose absolute
  1473. - dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
  1474. - dnl default, namely "lib".
  1475. - acl_libdirstem=lib
  1476. - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  1477. - if test -n "$searchpath"; then
  1478. - acl_save_IFS="${IFS= }"; IFS=":"
  1479. - for searchdir in $searchpath; do
  1480. - if test -d "$searchdir"; then
  1481. - case "$searchdir" in
  1482. - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  1483. - *) searchdir=`cd "$searchdir" && pwd`
  1484. - case "$searchdir" in
  1485. - */lib64 ) acl_libdirstem=lib64 ;;
  1486. - esac ;;
  1487. - esac
  1488. - fi
  1489. - done
  1490. - IFS="$acl_save_IFS"
  1491. +case $host_os in
  1492. +aix3*)
  1493. + # AIX sometimes has problems with the GCC collect2 program. For some
  1494. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  1495. + # vanish in a puff of smoke.
  1496. + if test "X${COLLECT_NAMES+set}" != Xset; then
  1497. + COLLECT_NAMES=
  1498. + export COLLECT_NAMES
  1499. fi
  1500. -])
  1501. + ;;
  1502. +esac
  1503. -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  1504. -#
  1505. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  1506. -# Free Software Foundation, Inc.
  1507. -#
  1508. -# This file is part of GNU Libtool:
  1509. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1510. -#
  1511. -# This file is free software; the Free Software Foundation gives
  1512. -# unlimited permission to copy and/or distribute it, with or without
  1513. -# modifications, as long as this notice is preserved.
  1514. +# Sed substitution that helps us do robust quoting. It backslashifies
  1515. +# metacharacters that are still active within double-quoted strings.
  1516. +Xsed='sed -e 1s/^X//'
  1517. +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  1518. -m4_define([_LT_COPYING], [dnl
  1519. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  1520. -# Free Software Foundation, Inc.
  1521. -#
  1522. -# This file is part of GNU Libtool:
  1523. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1524. -#
  1525. -# This program is free software; you can redistribute it and/or modify
  1526. -# it under the terms of the GNU General Public License as published by
  1527. -# the Free Software Foundation; either version 2 of the License, or
  1528. -# (at your option) any later version.
  1529. -#
  1530. -# This program is distributed in the hope that it will be useful, but
  1531. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  1532. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  1533. -# General Public License for more details.
  1534. -#
  1535. -# You should have received a copy of the GNU General Public License
  1536. -# along with this program; if not, write to the Free Software
  1537. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  1538. -#
  1539. -# As a special exception to the GNU General Public License, if you
  1540. -# distribute this file as part of a program that contains a
  1541. -# configuration script generated by Autoconf, you may include it under
  1542. -# the same distribution terms that you use for the rest of that program.
  1543. -])
  1544. +# Same as above, but do not quote variable references.
  1545. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  1546. -# serial 51 LT_INIT
  1547. +# Sed substitution to delay expansion of an escaped shell variable in a
  1548. +# double_quote_subst'ed string.
  1549. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  1550. +# Sed substitution to avoid accidental globbing in evaled expressions
  1551. +no_glob_subst='s/\*/\\\*/g'
  1552. -# LT_PREREQ(VERSION)
  1553. -# ------------------
  1554. -# Complain and exit if this libtool version is less that VERSION.
  1555. -m4_defun([LT_PREREQ],
  1556. -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  1557. - [m4_default([$3],
  1558. - [m4_fatal([Libtool version $1 or higher is required],
  1559. - 63)])],
  1560. - [$2])])
  1561. +# Constants:
  1562. +rm="rm -f"
  1563. +# Global variables:
  1564. +default_ofile=libtool
  1565. +can_build_shared=yes
  1566. -# LT_INIT([OPTIONS])
  1567. -# ------------------
  1568. -AC_DEFUN([LT_INIT],
  1569. -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  1570. -AC_BEFORE([$0], [LT_LANG])dnl
  1571. -AC_BEFORE([$0], [LT_OUTPUT])dnl
  1572. -
  1573. -dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  1574. -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  1575. -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  1576. -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  1577. -dnl unless we require an AC_DEFUNed macro:
  1578. -AC_REQUIRE([LTOPTIONS_VERSION])dnl
  1579. -AC_REQUIRE([LTSUGAR_VERSION])dnl
  1580. -AC_REQUIRE([LTVERSION_VERSION])dnl
  1581. -m4_require([_LT_PROG_LTMAIN])dnl
  1582. -m4_require([_LT_SET_OPTIONS], [_LT_SET_OPTIONS([$1])])dnl
  1583. +# All known linkers require a `.a' archive for static linking (except MSVC,
  1584. +# which needs '.lib').
  1585. +libext=a
  1586. +ltmain="$ac_aux_dir/ltmain.sh"
  1587. +ofile="$default_ofile"
  1588. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  1589. -# This can be used to rebuild libtool when needed
  1590. -LIBTOOL_DEPS="$ltmain"
  1591. +AC_CHECK_TOOL(AR, ar, false)
  1592. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1593. +AC_CHECK_TOOL(STRIP, strip, :)
  1594. -# Always use our own libtool.
  1595. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  1596. -AC_SUBST(LIBTOOL)dnl
  1597. -
  1598. -_LT_SETUP
  1599. -
  1600. -# Only expand once:
  1601. -m4_define([LT_INIT])
  1602. -])# _LT_INIT
  1603. -
  1604. -# Old names:
  1605. -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  1606. -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  1607. -dnl aclocal-1.4 backwards compatibility:
  1608. -dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  1609. -dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  1610. -
  1611. -
  1612. -# _LT_CC_BASENAME(CC)
  1613. -# -------------------
  1614. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  1615. -m4_defun([_LT_CC_BASENAME],
  1616. -[for cc_temp in $1""; do
  1617. - case $cc_temp in
  1618. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  1619. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  1620. - \-*) ;;
  1621. - *) break;;
  1622. - esac
  1623. -done
  1624. -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  1625. -])
  1626. -
  1627. -
  1628. -# _LT_FILEUTILS_DEFAULTS
  1629. -# ----------------------
  1630. -# It is okay to use these file commands and assume they have been set
  1631. -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  1632. -m4_defun([_LT_FILEUTILS_DEFAULTS],
  1633. -[: ${CP="cp -f"}
  1634. -: ${MV="mv -f"}
  1635. -: ${RM="rm -f"}
  1636. -])# _LT_FILEUTILS_DEFAULTS
  1637. -
  1638. -
  1639. -# _LT_SETUP
  1640. -# ---------
  1641. -m4_defun([_LT_SETUP],
  1642. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1643. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1644. -_LT_DECL([], [host_alias], [0], [The host system])dnl
  1645. -_LT_DECL([], [host], [0])dnl
  1646. -_LT_DECL([], [host_os], [0])dnl
  1647. -dnl
  1648. -_LT_DECL([], [build_alias], [0], [The build system])dnl
  1649. -_LT_DECL([], [build], [0])dnl
  1650. -_LT_DECL([], [build_os], [0])dnl
  1651. -dnl
  1652. -AC_REQUIRE([AC_PROG_CC])dnl
  1653. -AC_REQUIRE([LT_PATH_LD])dnl
  1654. -AC_REQUIRE([LT_PATH_NM])dnl
  1655. -dnl
  1656. -AC_REQUIRE([AC_PROG_LN_S])dnl
  1657. -test -z "$LN_S" && LN_S="ln -s"
  1658. -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  1659. -dnl
  1660. -AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  1661. -AC_REQUIRE([AC_OBJEXT])dnl
  1662. -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  1663. -AC_REQUIRE([AC_EXEEXT])dnl
  1664. -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  1665. -dnl
  1666. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1667. -m4_require([_LT_CHECK_XSI_SHELL])dnl
  1668. -m4_require([_LT_CMD_RELOAD])dnl
  1669. -m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  1670. -m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  1671. -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  1672. -
  1673. -_LT_CONFIG_LIBTOOL_INIT([
  1674. -# See if we are running on zsh, and set the options which allow our
  1675. -# commands through without removal of \ escapes INIT.
  1676. -if test -n "\${ZSH_VERSION+set}" ; then
  1677. - setopt NO_GLOB_SUBST
  1678. -fi
  1679. -])
  1680. -if test -n "${ZSH_VERSION+set}" ; then
  1681. - setopt NO_GLOB_SUBST
  1682. -fi
  1683. -
  1684. -_LT_CHECK_OBJDIR
  1685. -
  1686. -m4_require([_LT_TAG_COMPILER])dnl
  1687. -_LT_PROG_ECHO_BACKSLASH
  1688. -
  1689. -case $host_os in
  1690. -aix3*)
  1691. - # AIX sometimes has problems with the GCC collect2 program. For some
  1692. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  1693. - # vanish in a puff of smoke.
  1694. - if test "X${COLLECT_NAMES+set}" != Xset; then
  1695. - COLLECT_NAMES=
  1696. - export COLLECT_NAMES
  1697. - fi
  1698. - ;;
  1699. -esac
  1700. -
  1701. -# Sed substitution that helps us do robust quoting. It backslashifies
  1702. -# metacharacters that are still active within double-quoted strings.
  1703. -Xsed='sed -e 1s/^X//'
  1704. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  1705. -
  1706. -# Same as above, but do not quote variable references.
  1707. -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  1708. -
  1709. -# Sed substitution to delay expansion of an escaped shell variable in a
  1710. -# double_quote_subst'ed string.
  1711. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  1712. -
  1713. -# Sed substitution to delay expansion of an escaped single quote.
  1714. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  1715. -
  1716. -# Sed substitution to avoid accidental globbing in evaled expressions
  1717. -no_glob_subst='s/\*/\\\*/g'
  1718. -
  1719. -# Global variables:
  1720. -ofile=libtool
  1721. -can_build_shared=yes
  1722. -
  1723. -# All known linkers require a `.a' archive for static linking (except MSVC,
  1724. -# which needs '.lib').
  1725. -libext=a
  1726. -
  1727. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  1728. -
  1729. -old_CC="$CC"
  1730. -old_CFLAGS="$CFLAGS"
  1731. +old_CC="$CC"
  1732. +old_CFLAGS="$CFLAGS"
  1733. # Set sane defaults for various variables
  1734. +test -z "$AR" && AR=ar
  1735. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1736. +test -z "$AS" && AS=as
  1737. test -z "$CC" && CC=cc
  1738. test -z "$LTCC" && LTCC=$CC
  1739. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  1740. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  1741. test -z "$LD" && LD=ld
  1742. +test -z "$LN_S" && LN_S="ln -s"
  1743. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  1744. +test -z "$NM" && NM=nm
  1745. +test -z "$SED" && SED=sed
  1746. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1747. +test -z "$RANLIB" && RANLIB=:
  1748. +test -z "$STRIP" && STRIP=:
  1749. test -z "$ac_objext" && ac_objext=o
  1750. +# Determine commands to create old-style static archives.
  1751. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  1752. +old_postinstall_cmds='chmod 644 $oldlib'
  1753. +old_postuninstall_cmds=
  1754. +
  1755. +if test -n "$RANLIB"; then
  1756. + case $host_os in
  1757. + openbsd*)
  1758. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1759. + ;;
  1760. + *)
  1761. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1762. + ;;
  1763. + esac
  1764. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1765. +fi
  1766. +
  1767. _LT_CC_BASENAME([$compiler])
  1768. # Only perform the check for file, if the check method requires it
  1769. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  1770. case $deplibs_check_method in
  1771. file_magic*)
  1772. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  1773. - _LT_PATH_MAGIC
  1774. + AC_PATH_MAGIC
  1775. fi
  1776. ;;
  1777. esac
  1778. -# Use C for the default configuration in the libtool script
  1779. -LT_SUPPORTED_TAG([CC])
  1780. -_LT_LANG_C_CONFIG
  1781. -_LT_LANG_DEFAULT_CONFIG
  1782. -_LT_CONFIG_COMMANDS
  1783. -])# _LT_SETUP
  1784. +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1785. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1786. +enable_win32_dll=yes, enable_win32_dll=no)
  1787. +AC_ARG_ENABLE([libtool-lock],
  1788. + [AC_HELP_STRING([--disable-libtool-lock],
  1789. + [avoid locking (might break parallel builds)])])
  1790. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1791. -# _LT_PROG_LTMAIN
  1792. -# ---------------
  1793. -# Note that this code is called both from `configure', and `config.status'
  1794. -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  1795. -# `config.status' has no value for ac_aux_dir unless we are using Automake,
  1796. -# so we pass a copy along to make sure it has a sensible value anyway.
  1797. -m4_defun([_LT_PROG_LTMAIN],
  1798. -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  1799. -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  1800. -ltmain="$ac_aux_dir/ltmain.sh"
  1801. -])# _LT_PROG_LTMAIN
  1802. +AC_ARG_WITH([pic],
  1803. + [AC_HELP_STRING([--with-pic],
  1804. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  1805. + [pic_mode="$withval"],
  1806. + [pic_mode=default])
  1807. +test -z "$pic_mode" && pic_mode=default
  1808. +# Use C for the default configuration in the libtool script
  1809. +tagname=
  1810. +AC_LIBTOOL_LANG_C_CONFIG
  1811. +_LT_AC_TAGCONFIG
  1812. +])# AC_LIBTOOL_SETUP
  1813. -# So that we can recreate a full libtool script including additional
  1814. -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  1815. -# in macros and then make a single call at the end using the `libtool'
  1816. -# label.
  1817. +# _LT_AC_SYS_COMPILER
  1818. +# -------------------
  1819. +AC_DEFUN([_LT_AC_SYS_COMPILER],
  1820. +[AC_REQUIRE([AC_PROG_CC])dnl
  1821. +# If no C compiler was specified, use CC.
  1822. +LTCC=${LTCC-"$CC"}
  1823. -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  1824. -# ----------------------------------------
  1825. -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  1826. -m4_define([_LT_CONFIG_LIBTOOL_INIT],
  1827. -[m4_ifval([$1],
  1828. - [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  1829. - [$1
  1830. -])])])
  1831. +# If no C compiler flags were specified, use CFLAGS.
  1832. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1833. -# Initialize.
  1834. -m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  1835. +# Allow CC to be a program name with arguments.
  1836. +compiler=$CC
  1837. +])# _LT_AC_SYS_COMPILER
  1838. -# _LT_CONFIG_LIBTOOL([COMMANDS])
  1839. -# ------------------------------
  1840. -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  1841. -m4_define([_LT_CONFIG_LIBTOOL],
  1842. -[m4_ifval([$1],
  1843. - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  1844. - [$1
  1845. -])])])
  1846. -
  1847. -# Initialize.
  1848. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  1849. -
  1850. -
  1851. -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  1852. -# -----------------------------------------------------
  1853. -m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  1854. -[_LT_CONFIG_LIBTOOL([$1])
  1855. -_LT_CONFIG_LIBTOOL_INIT([$2])
  1856. +# _LT_CC_BASENAME(CC)
  1857. +# -------------------
  1858. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  1859. +AC_DEFUN([_LT_CC_BASENAME],
  1860. +[for cc_temp in $1""; do
  1861. + case $cc_temp in
  1862. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  1863. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  1864. + \-*) ;;
  1865. + *) break;;
  1866. + esac
  1867. +done
  1868. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  1869. ])
  1870. -# _LT_FORMAT_COMMENT([COMMENT])
  1871. -# -----------------------------
  1872. -# Add leading comment marks to the start of each line, and a trailing
  1873. -# full-stop to the whole comment if one is not present already.
  1874. -m4_define([_LT_FORMAT_COMMENT],
  1875. -[m4_ifval([$1], [
  1876. -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  1877. - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  1878. -)])
  1879. -
  1880. -
  1881. -
  1882. -
  1883. -
  1884. -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  1885. -# -------------------------------------------------------------------
  1886. -# CONFIGNAME is the name given to the value in the libtool script.
  1887. -# VARNAME is the (base) name used in the configure script.
  1888. -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  1889. -# VARNAME. Any other value will be used directly.
  1890. -m4_define([_LT_DECL],
  1891. -[lt_if_append_uniq([lt_decl_varnames], [$2], [[, ]],
  1892. - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  1893. - [m4_ifval([$1], [$1], [$2])])
  1894. - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  1895. - m4_ifval([$4],
  1896. - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  1897. - lt_dict_add_subkey([lt_decl_dict], [$2],
  1898. - [tagged?], [m4_ifval([$5], [yes], [no])])])
  1899. -])
  1900. +# _LT_COMPILER_BOILERPLATE
  1901. +# ------------------------
  1902. +# Check for compiler boilerplate output or warnings with
  1903. +# the simple compiler test code.
  1904. +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  1905. +[ac_outfile=conftest.$ac_objext
  1906. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  1907. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1908. +_lt_compiler_boilerplate=`cat conftest.err`
  1909. +$rm conftest*
  1910. +])# _LT_COMPILER_BOILERPLATE
  1911. -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  1912. -# --------------------------------------------------------
  1913. -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  1914. -
  1915. -
  1916. -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  1917. -# ------------------------------------------------
  1918. -m4_define([lt_decl_tag_varnames],
  1919. -[_lt_decl_filter([tagged?], [yes], $@)])
  1920. -
  1921. -
  1922. -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  1923. -# ---------------------------------------------------------
  1924. -m4_define([_lt_decl_filter],
  1925. -[m4_case([$#],
  1926. - [0], [m4_fatal([$0: too few arguments: $#])],
  1927. - [1], [m4_fatal([$0: too few arguments: $#: $1])],
  1928. - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  1929. - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  1930. - [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  1931. -])
  1932. +# _LT_LINKER_BOILERPLATE
  1933. +# ----------------------
  1934. +# Check for linker boilerplate output or warnings with
  1935. +# the simple link test code.
  1936. +AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1937. +[ac_outfile=conftest.$ac_objext
  1938. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  1939. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1940. +_lt_linker_boilerplate=`cat conftest.err`
  1941. +$rm conftest*
  1942. +])# _LT_LINKER_BOILERPLATE
  1943. -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  1944. -# --------------------------------------------------
  1945. -m4_define([lt_decl_quote_varnames],
  1946. -[_lt_decl_filter([value], [1], $@)])
  1947. -
  1948. -
  1949. -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  1950. -# ---------------------------------------------------
  1951. -m4_define([lt_decl_dquote_varnames],
  1952. -[_lt_decl_filter([value], [2], $@)])
  1953. -
  1954. -
  1955. -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  1956. -# ---------------------------------------------------
  1957. -m4_define([lt_decl_varnames_tagged],
  1958. -[_$0(m4_quote(m4_default([$1], [[, ]])),
  1959. - m4_quote(m4_if([$2], [],
  1960. - m4_quote(lt_decl_tag_varnames),
  1961. - m4_quote(m4_shift($@)))),
  1962. - m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
  1963. -m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
  1964. -
  1965. -
  1966. -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  1967. -# ------------------------------------------------
  1968. -m4_define([lt_decl_all_varnames],
  1969. -[_$0(m4_quote(m4_default([$1], [[, ]])),
  1970. - m4_if([$2], [],
  1971. - m4_quote(lt_decl_varnames),
  1972. - m4_quote(m4_shift($@))))[]dnl
  1973. -])
  1974. -m4_define([_lt_decl_all_varnames],
  1975. -[lt_join($@, lt_decl_varnames_tagged([$1],
  1976. - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  1977. -])
  1978. +# _LT_AC_SYS_LIBPATH_AIX
  1979. +# ----------------------
  1980. +# Links a minimal program and checks the executable
  1981. +# for the system default hardcoded library path. In most cases,
  1982. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1983. +# the location of the communication and MPI libs are included too.
  1984. +# If we don't find anything, use the default library path according
  1985. +# to the aix ld manual.
  1986. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1987. +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1988. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1989. +}'`
  1990. +# Check for a 64-bit object if we didn't find anything.
  1991. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1992. +}'`; fi],[])
  1993. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1994. +])# _LT_AC_SYS_LIBPATH_AIX
  1995. -# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  1996. -# ------------------------------------
  1997. -# Quote a variable value, and forward it to `config.status' so that its
  1998. -# declaration there will have the same value as in `configure'. VARNAME
  1999. -# must have a single quote delimited value for this to work.
  2000. -m4_define([_LT_CONFIG_STATUS_DECLARE],
  2001. -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  2002. +# _LT_AC_SHELL_INIT(ARG)
  2003. +# ----------------------
  2004. +AC_DEFUN([_LT_AC_SHELL_INIT],
  2005. +[ifdef([AC_DIVERSION_NOTICE],
  2006. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  2007. + [AC_DIVERT_PUSH(NOTICE)])
  2008. +$1
  2009. +AC_DIVERT_POP
  2010. +])# _LT_AC_SHELL_INIT
  2011. -# _LT_CONFIG_STATUS_DECLARATIONS
  2012. -# ------------------------------
  2013. -# We delimit libtool config variables with single quotes, so when
  2014. -# we write them to config.status, we have to be sure to quote all
  2015. -# embedded single quotes properly. In configure, this macro expands
  2016. -# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  2017. -#
  2018. -# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  2019. -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  2020. -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  2021. - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  2022. +# _LT_AC_PROG_ECHO_BACKSLASH
  2023. +# --------------------------
  2024. +# Add some code to the start of the generated configure script which
  2025. +# will find an echo command which doesn't interpret backslashes.
  2026. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  2027. +[_LT_AC_SHELL_INIT([
  2028. +# Check that we are running under the correct shell.
  2029. +SHELL=${CONFIG_SHELL-/bin/sh}
  2030. +case X$ECHO in
  2031. +X*--fallback-echo)
  2032. + # Remove one level of quotation (which was required for Make).
  2033. + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  2034. + ;;
  2035. +esac
  2036. -# _LT_LIBTOOL_TAGS
  2037. -# ----------------
  2038. -# Output comment and list of tags supported by the script
  2039. -m4_defun([_LT_LIBTOOL_TAGS],
  2040. -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  2041. -available_tags="_LT_TAGS"dnl
  2042. -])
  2043. +echo=${ECHO-echo}
  2044. +if test "X[$]1" = X--no-reexec; then
  2045. + # Discard the --no-reexec flag, and continue.
  2046. + shift
  2047. +elif test "X[$]1" = X--fallback-echo; then
  2048. + # Avoid inline document here, it may be left over
  2049. + :
  2050. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  2051. + # Yippee, $echo works!
  2052. + :
  2053. +else
  2054. + # Restart under the correct shell.
  2055. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  2056. +fi
  2057. +if test "X[$]1" = X--fallback-echo; then
  2058. + # used as fallback echo
  2059. + shift
  2060. + cat <<EOF
  2061. +[$]*
  2062. +EOF
  2063. + exit 0
  2064. +fi
  2065. -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  2066. -# -----------------------------------
  2067. -# Extract the dictionary values for VARNAME (optionally with TAG) and
  2068. -# expand to a commented shell variable setting:
  2069. -#
  2070. -# # Some comment about what VAR is for.
  2071. -# visible_name=$lt_internal_name
  2072. -m4_define([_LT_LIBTOOL_DECLARE],
  2073. -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  2074. - [description])))[]dnl
  2075. -m4_pushdef([_libtool_name],
  2076. - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  2077. -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  2078. - [0], [_libtool_name=[$]$1],
  2079. - [1], [_libtool_name=$lt_[]$1],
  2080. - [2], [_libtool_name=$lt_[]$1],
  2081. - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  2082. -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  2083. -])
  2084. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  2085. +# if CDPATH is set.
  2086. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2087. +if test -z "$ECHO"; then
  2088. +if test "X${echo_test_string+set}" != Xset; then
  2089. +# find a string as large as possible, as long as the shell can cope with it
  2090. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  2091. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  2092. + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  2093. + echo_test_string=`eval $cmd` &&
  2094. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  2095. + then
  2096. + break
  2097. + fi
  2098. + done
  2099. +fi
  2100. -# _LT_LIBTOOL_CONFIG_VARS
  2101. -# -----------------------
  2102. -# Produce commented declarations of non-tagged libtool config variables
  2103. -# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  2104. -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  2105. -# section) are produced by _LT_LIBTOOL_TAG_VARS.
  2106. -m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  2107. -[m4_foreach([_lt_var],
  2108. - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  2109. - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  2110. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  2111. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  2112. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2113. + :
  2114. +else
  2115. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  2116. + # backslashes. This makes it impossible to quote backslashes using
  2117. + # echo "$something" | sed 's/\\/\\\\/g'
  2118. + #
  2119. + # So, first we look for a working echo in the user's PATH.
  2120. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2121. + for dir in $PATH /usr/ucb; do
  2122. + IFS="$lt_save_ifs"
  2123. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  2124. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  2125. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  2126. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2127. + echo="$dir/echo"
  2128. + break
  2129. + fi
  2130. + done
  2131. + IFS="$lt_save_ifs"
  2132. -# _LT_LIBTOOL_TAG_VARS(TAG)
  2133. -# -------------------------
  2134. -m4_define([_LT_LIBTOOL_TAG_VARS],
  2135. -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  2136. - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  2137. + if test "X$echo" = Xecho; then
  2138. + # We didn't find a better echo, so look for alternatives.
  2139. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  2140. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  2141. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2142. + # This shell has a builtin print -r that does the trick.
  2143. + echo='print -r'
  2144. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  2145. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  2146. + # If we have ksh, try running configure again with it.
  2147. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  2148. + export ORIGINAL_CONFIG_SHELL
  2149. + CONFIG_SHELL=/bin/ksh
  2150. + export CONFIG_SHELL
  2151. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  2152. + else
  2153. + # Try using printf.
  2154. + echo='printf %s\n'
  2155. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  2156. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  2157. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2158. + # Cool, printf works
  2159. + :
  2160. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2161. + test "X$echo_testing_string" = 'X\t' &&
  2162. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2163. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2164. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  2165. + export CONFIG_SHELL
  2166. + SHELL="$CONFIG_SHELL"
  2167. + export SHELL
  2168. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  2169. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2170. + test "X$echo_testing_string" = 'X\t' &&
  2171. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2172. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2173. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  2174. + else
  2175. + # maybe with a smaller string...
  2176. + prev=:
  2177. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2178. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  2179. + then
  2180. + break
  2181. + fi
  2182. + prev="$cmd"
  2183. + done
  2184. -# _LT_TAGVAR(VARNAME, [TAGNAME])
  2185. -# ------------------------------
  2186. -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  2187. + if test "$prev" != 'sed 50q "[$]0"'; then
  2188. + echo_test_string=`eval $prev`
  2189. + export echo_test_string
  2190. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2191. + else
  2192. + # Oops. We lost completely, so just stick with echo.
  2193. + echo=echo
  2194. + fi
  2195. + fi
  2196. + fi
  2197. + fi
  2198. +fi
  2199. +fi
  2200. +# Copy echo and quote the copy suitably for passing to libtool from
  2201. +# the Makefile, instead of quoting the original, which is used later.
  2202. +ECHO=$echo
  2203. +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2204. + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2205. +fi
  2206. -# _LT_CONFIG_COMMANDS
  2207. -# -------------------
  2208. -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  2209. -# variables for single and double quote escaping we saved from calls
  2210. -# to _LT_DECL, we can put quote escaped variables declarations
  2211. -# into `config.status', and then the shell code to quote escape them in
  2212. -# for loops in `config.status'. Finally, any additional code accumulated
  2213. -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  2214. -m4_defun([_LT_CONFIG_COMMANDS],
  2215. -[AC_PROVIDE_IFELSE([LT_OUTPUT],
  2216. - dnl If the libtool generation code has been placed in $CONFIG_LT,
  2217. - dnl instead of duplicating it all over again into config.status,
  2218. - dnl then we will have config.status run $CONFIG_LT later, so it
  2219. - dnl needs to know what name is stored there:
  2220. - [AC_CONFIG_COMMANDS([libtool],
  2221. - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  2222. - dnl If the libtool generation code is destined for config.status,
  2223. - dnl expand the accumulated commands and init code now:
  2224. - [AC_CONFIG_COMMANDS([libtool],
  2225. - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  2226. -])#_LT_CONFIG_COMMANDS
  2227. +AC_SUBST(ECHO)
  2228. +])])# _LT_AC_PROG_ECHO_BACKSLASH
  2229. -# Initialize.
  2230. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  2231. -[
  2232. +# _LT_AC_LOCK
  2233. +# -----------
  2234. +AC_DEFUN([_LT_AC_LOCK],
  2235. +[AC_ARG_ENABLE([libtool-lock],
  2236. + [AC_HELP_STRING([--disable-libtool-lock],
  2237. + [avoid locking (might break parallel builds)])])
  2238. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2239. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  2240. -# if CDPATH is set.
  2241. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2242. -
  2243. -sed_quote_subst='$sed_quote_subst'
  2244. -double_quote_subst='$double_quote_subst'
  2245. -delay_variable_subst='$delay_variable_subst'
  2246. -_LT_CONFIG_STATUS_DECLARATIONS
  2247. -LTCC='$LTCC'
  2248. -LTCFLAGS='$LTCFLAGS'
  2249. -compiler='$compiler_DEFAULT'
  2250. -
  2251. -# Quote evaled strings.
  2252. -for var in lt_decl_all_varnames([[ \
  2253. -]], lt_decl_quote_varnames); do
  2254. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  2255. - *[[\\\\\\\`\\"\\\$]]*)
  2256. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  2257. +# Some flags need to be propagated to the compiler or linker for good
  2258. +# libtool support.
  2259. +case $host in
  2260. +ia64-*-hpux*)
  2261. + # Find out which ABI we are using.
  2262. + echo 'int i;' > conftest.$ac_ext
  2263. + if AC_TRY_EVAL(ac_compile); then
  2264. + case `/usr/bin/file conftest.$ac_objext` in
  2265. + *ELF-32*)
  2266. + HPUX_IA64_MODE="32"
  2267. ;;
  2268. - *)
  2269. - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  2270. + *ELF-64*)
  2271. + HPUX_IA64_MODE="64"
  2272. ;;
  2273. esac
  2274. -done
  2275. -
  2276. -# Double-quote double-evaled strings.
  2277. -for var in lt_decl_all_varnames([[ \
  2278. -]], lt_decl_dquote_varnames); do
  2279. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  2280. - *[[\\\\\\\`\\"\\\$]]*)
  2281. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  2282. + fi
  2283. + rm -rf conftest*
  2284. + ;;
  2285. +*-*-irix6*)
  2286. + # Find out which ABI we are using.
  2287. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2288. + if AC_TRY_EVAL(ac_compile); then
  2289. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2290. + case `/usr/bin/file conftest.$ac_objext` in
  2291. + *32-bit*)
  2292. + LD="${LD-ld} -melf32bsmip"
  2293. ;;
  2294. - *)
  2295. - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  2296. + *N32*)
  2297. + LD="${LD-ld} -melf32bmipn32"
  2298. + ;;
  2299. + *64-bit*)
  2300. + LD="${LD-ld} -melf64bmip"
  2301. ;;
  2302. esac
  2303. -done
  2304. -
  2305. -# Fix-up fallback echo if it was mangled by the above quoting rules.
  2306. -case \$lt_ECHO in
  2307. -*'\\\[$]0 --fallback-echo"')dnl "
  2308. - lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  2309. + else
  2310. + case `/usr/bin/file conftest.$ac_objext` in
  2311. + *32-bit*)
  2312. + LD="${LD-ld} -32"
  2313. + ;;
  2314. + *N32*)
  2315. + LD="${LD-ld} -n32"
  2316. + ;;
  2317. + *64-bit*)
  2318. + LD="${LD-ld} -64"
  2319. + ;;
  2320. + esac
  2321. + fi
  2322. + fi
  2323. + rm -rf conftest*
  2324. ;;
  2325. -esac
  2326. -
  2327. -_LT_OUTPUT_LIBTOOL_INIT
  2328. -])
  2329. +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  2330. + # Find out which ABI we are using.
  2331. + echo 'int i;' > conftest.$ac_ext
  2332. + if AC_TRY_EVAL(ac_compile); then
  2333. + case `/usr/bin/file conftest.o` in
  2334. + *32-bit*)
  2335. + case $host in
  2336. + x86_64-*linux*)
  2337. + LD="${LD-ld} -m elf_i386"
  2338. + ;;
  2339. + ppc64-*linux*|powerpc64-*linux*)
  2340. + LD="${LD-ld} -m elf32ppclinux"
  2341. + ;;
  2342. + s390x-*linux*)
  2343. + LD="${LD-ld} -m elf_s390"
  2344. + ;;
  2345. + sparc64-*linux*)
  2346. + LD="${LD-ld} -m elf32_sparc"
  2347. + ;;
  2348. + esac
  2349. + ;;
  2350. + *64-bit*)
  2351. + case $host in
  2352. + x86_64-*linux*)
  2353. + LD="${LD-ld} -m elf_x86_64"
  2354. + ;;
  2355. + ppc*-*linux*|powerpc*-*linux*)
  2356. + LD="${LD-ld} -m elf64ppc"
  2357. + ;;
  2358. + s390*-*linux*)
  2359. + LD="${LD-ld} -m elf64_s390"
  2360. + ;;
  2361. + sparc*-*linux*)
  2362. + LD="${LD-ld} -m elf64_sparc"
  2363. + ;;
  2364. + esac
  2365. + ;;
  2366. + esac
  2367. + fi
  2368. + rm -rf conftest*
  2369. + ;;
  2370. -# LT_OUTPUT
  2371. -# ---------
  2372. -# This macro allows early generation of the libtool script (before
  2373. -# AC_OUTPUT is called), incase it is used in configure for compilation
  2374. -# tests.
  2375. -AC_DEFUN([LT_OUTPUT],
  2376. -[: ${CONFIG_LT=./config.lt}
  2377. -AC_MSG_NOTICE([creating $CONFIG_LT])
  2378. -cat >"$CONFIG_LT" <<_LTEOF
  2379. -#! $SHELL
  2380. -# Generated by $as_me.
  2381. -# Run this file to recreate a libtool stub with the current configuration.
  2382. -
  2383. -lt_cl_silent=false
  2384. -SHELL=\${CONFIG_SHELL-$SHELL}
  2385. -_LTEOF
  2386. -
  2387. -cat >>"$CONFIG_LT" <<\_LTEOF
  2388. -AS_SHELL_SANITIZE
  2389. -_AS_PREPARE
  2390. +*-*-sco3.2v5*)
  2391. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2392. + SAVE_CFLAGS="$CFLAGS"
  2393. + CFLAGS="$CFLAGS -belf"
  2394. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2395. + [AC_LANG_PUSH(C)
  2396. + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2397. + AC_LANG_POP])
  2398. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2399. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2400. + CFLAGS="$SAVE_CFLAGS"
  2401. + fi
  2402. + ;;
  2403. +sparc*-*solaris*)
  2404. + # Find out which ABI we are using.
  2405. + echo 'int i;' > conftest.$ac_ext
  2406. + if AC_TRY_EVAL(ac_compile); then
  2407. + case `/usr/bin/file conftest.o` in
  2408. + *64-bit*)
  2409. + case $lt_cv_prog_gnu_ld in
  2410. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2411. + *) LD="${LD-ld} -64" ;;
  2412. + esac
  2413. + ;;
  2414. + esac
  2415. + fi
  2416. + rm -rf conftest*
  2417. + ;;
  2418. -exec AS_MESSAGE_FD>&1
  2419. -exec AS_MESSAGE_LOG_FD>>config.log
  2420. -{
  2421. - echo
  2422. - AS_BOX([Running $as_me.])
  2423. -} >&AS_MESSAGE_LOG_FD
  2424. -
  2425. -lt_cl_help="\
  2426. -\`$as_me' creates a local libtool stub from the current configuration,
  2427. -for use in further configure time tests before the real libtool is
  2428. -generated.
  2429. -
  2430. -Usage: $[0] [[OPTIONS]]
  2431. -
  2432. - -h, --help print this help, then exit
  2433. - -V, --version print version number, then exit
  2434. - -q, --quiet do not print progress messages
  2435. - -d, --debug don't remove temporary files
  2436. -
  2437. -Report bugs to <bug-libtool@gnu.org>."
  2438. -
  2439. -lt_cl_version="\
  2440. -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  2441. -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  2442. -configured by $[0], generated by m4_PACKAGE_STRING.
  2443. -
  2444. -Copyright (C) 2005 Free Software Foundation, Inc.
  2445. -This config.lt script is free software; the Free Software Foundation
  2446. -gives unlimited permision to copy, distribute and modify it."
  2447. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  2448. +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  2449. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  2450. + AC_CHECK_TOOL(AS, as, false)
  2451. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  2452. + ;;
  2453. + ])
  2454. +esac
  2455. -while test $[#] != 0
  2456. -do
  2457. - case $[1] in
  2458. - --version | --v* | -V )
  2459. - echo "$lt_cl_version"; exit 0 ;;
  2460. - --help | --h* | -h )
  2461. - echo "$lt_cl_help"; exit 0 ;;
  2462. - --debug | --d* | -d )
  2463. - debug=: ;;
  2464. - --quiet | --q* | --silent | --s* | -q )
  2465. - lt_cl_silent=: ;;
  2466. +need_locks="$enable_libtool_lock"
  2467. - -*) AC_MSG_ERROR([unrecognized option: $[1]
  2468. -Try `$[0] --help' for more information.]) ;;
  2469. +])# _LT_AC_LOCK
  2470. - *) AC_MSG_ERROR([unrecognised argument: $[1]
  2471. -Try `$[0] --help for more information.]) ;;
  2472. - esac
  2473. - shift
  2474. -done
  2475. -if $lt_cl_silent; then
  2476. - exec AS_MESSAGE_FD>/dev/null
  2477. -fi
  2478. -_LTEOF
  2479. +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2480. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2481. +# ----------------------------------------------------------------
  2482. +# Check whether the given compiler option works
  2483. +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  2484. +[AC_REQUIRE([LT_AC_PROG_SED])
  2485. +AC_CACHE_CHECK([$1], [$2],
  2486. + [$2=no
  2487. + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2488. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  2489. + lt_compiler_flag="$3"
  2490. + # Insert the option either (1) after the last *FLAGS variable, or
  2491. + # (2) before a word containing "conftest.", or (3) at the end.
  2492. + # Note that $ac_compile itself does not contain backslashes and begins
  2493. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2494. + # The option is referenced via a variable to avoid confusing sed.
  2495. + lt_compile=`echo "$ac_compile" | $SED \
  2496. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2497. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2498. + -e 's:$: $lt_compiler_flag:'`
  2499. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2500. + (eval "$lt_compile" 2>conftest.err)
  2501. + ac_status=$?
  2502. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2503. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2504. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2505. + # The compiler can only warn and ignore the option if not recognized
  2506. + # So say no if there are warnings other than the usual output.
  2507. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2508. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2509. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2510. + $2=yes
  2511. + fi
  2512. + fi
  2513. + $rm conftest*
  2514. +])
  2515. -cat >>"$CONFIG_LT" <<_LTEOF
  2516. -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  2517. -_LTEOF
  2518. -
  2519. -cat >>"$CONFIG_LT" <<\_LTEOF
  2520. -AC_MSG_NOTICE([creating $ofile])
  2521. -_LT_OUTPUT_LIBTOOL_COMMANDS
  2522. -AS_EXIT(0)
  2523. -_LTEOF
  2524. -chmod +x "$CONFIG_LT"
  2525. -
  2526. -# configure is writing to config.log, but config.lt does its own redirection,
  2527. -# appending to config.log, which fails on DOS, as config.log is still kept
  2528. -# open by configure. Here we exec the FD to /dev/null, effectively closing
  2529. -# config.log, so it can be properly (re)opened and appended to by config.lt.
  2530. -if test "$no_create" != yes; then
  2531. - lt_cl_success=:
  2532. - test "$silent" = yes &&
  2533. - lt_config_lt_args="$lt_config_lt_args --quiet"
  2534. - exec AS_MESSAGE_LOG_FD>/dev/null
  2535. - $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  2536. - exec AS_MESSAGE_LOG_FD>>config.log
  2537. - $lt_cl_success || AS_EXIT(1)
  2538. +if test x"[$]$2" = xyes; then
  2539. + ifelse([$5], , :, [$5])
  2540. +else
  2541. + ifelse([$6], , :, [$6])
  2542. fi
  2543. -])# LT_OUTPUT
  2544. -
  2545. -
  2546. -# _LT_CONFIG(TAG)
  2547. -# ---------------
  2548. -# If TAG is the built-in tag, create an initial libtool script with a
  2549. -# default configuration from the untagged config vars. Otherwise add code
  2550. -# to config.status for appending the configuration named by TAG from the
  2551. -# matching tagged config vars.
  2552. -m4_defun([_LT_CONFIG],
  2553. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2554. -_LT_CONFIG_SAVE_COMMANDS([
  2555. - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  2556. - m4_if(_LT_TAG, [C], [
  2557. - # See if we are running on zsh, and set the options which allow our
  2558. - # commands through without removal of \ escapes.
  2559. - if test -n "${ZSH_VERSION+set}" ; then
  2560. - setopt NO_GLOB_SUBST
  2561. - fi
  2562. -
  2563. - cfgfile="${ofile}T"
  2564. - trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  2565. - $RM "$cfgfile"
  2566. -
  2567. - cat <<_LT_EOF >> "$cfgfile"
  2568. -#! $SHELL
  2569. -
  2570. -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  2571. -# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
  2572. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  2573. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  2574. -#
  2575. -_LT_COPYING
  2576. -# TEST SUITE MARKER ## BEGIN SOURCABLE
  2577. -_LT_LIBTOOL_TAGS
  2578. -
  2579. -# ### BEGIN LIBTOOL CONFIG
  2580. -_LT_LIBTOOL_CONFIG_VARS
  2581. -_LT_LIBTOOL_TAG_VARS
  2582. -# ### END LIBTOOL CONFIG
  2583. +])# AC_LIBTOOL_COMPILER_OPTION
  2584. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  2585. -# if CDPATH is set.
  2586. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  2587. -_LT_EOF
  2588. +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2589. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2590. +# ------------------------------------------------------------
  2591. +# Check whether the given compiler option works
  2592. +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  2593. +[AC_CACHE_CHECK([$1], [$2],
  2594. + [$2=no
  2595. + save_LDFLAGS="$LDFLAGS"
  2596. + LDFLAGS="$LDFLAGS $3"
  2597. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  2598. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2599. + # The linker can only warn and ignore the option if not recognized
  2600. + # So say no if there are warnings
  2601. + if test -s conftest.err; then
  2602. + # Append any errors to the config.log.
  2603. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2604. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2605. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2606. + if diff conftest.exp conftest.er2 >/dev/null; then
  2607. + $2=yes
  2608. + fi
  2609. + else
  2610. + $2=yes
  2611. + fi
  2612. + fi
  2613. + $rm conftest*
  2614. + LDFLAGS="$save_LDFLAGS"
  2615. +])
  2616. - case $host_os in
  2617. - aix3*)
  2618. - cat <<\_LT_EOF >> "$cfgfile"
  2619. -# AIX sometimes has problems with the GCC collect2 program. For some
  2620. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  2621. -# vanish in a puff of smoke.
  2622. -if test "X${COLLECT_NAMES+set}" != Xset; then
  2623. - COLLECT_NAMES=
  2624. - export COLLECT_NAMES
  2625. +if test x"[$]$2" = xyes; then
  2626. + ifelse([$4], , :, [$4])
  2627. +else
  2628. + ifelse([$5], , :, [$5])
  2629. fi
  2630. -_LT_EOF
  2631. - ;;
  2632. - esac
  2633. -
  2634. - _LT_PROG_LTMAIN
  2635. -
  2636. - # We use sed instead of cat because bash on DJGPP gets confused if
  2637. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  2638. - # text mode, it properly converts lines to CR/LF. This bash problem
  2639. - # is reportedly fixed, but why not run on old versions too?
  2640. - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  2641. - || (rm -f "$cfgfile"; exit 1)
  2642. -
  2643. - _LT_PROG_XSI_SHELLFNS
  2644. -
  2645. - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  2646. - || (rm -f "$cfgfile"; exit 1)
  2647. -
  2648. - mv -f "$cfgfile" "$ofile" ||
  2649. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  2650. - chmod +x "$ofile"
  2651. -],
  2652. -[cat <<_LT_EOF >> "$ofile"
  2653. -
  2654. -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  2655. -dnl in a comment (ie after a #).
  2656. -# ### BEGIN LIBTOOL TAG CONFIG: $1
  2657. -_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  2658. -# ### END LIBTOOL TAG CONFIG: $1
  2659. -_LT_EOF
  2660. -])dnl /m4_if
  2661. -],
  2662. -[m4_if([$1], [], [
  2663. - PACKAGE='$PACKAGE'
  2664. - VERSION='$VERSION'
  2665. - TIMESTAMP='$TIMESTAMP'
  2666. - RM='$RM'
  2667. - ofile='$ofile'], [])
  2668. -])dnl /_LT_CONFIG_SAVE_COMMANDS
  2669. -])# _LT_CONFIG
  2670. -
  2671. -
  2672. -# LT_SUPPORTED_TAG(TAG)
  2673. -# ---------------------
  2674. -# Trace this macro to discover what tags are supported by the libtool
  2675. -# --tag option, using:
  2676. -# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  2677. -AC_DEFUN([LT_SUPPORTED_TAG], [])
  2678. +])# AC_LIBTOOL_LINKER_OPTION
  2679. -# C support is built-in for now
  2680. -m4_define([_LT_LANG_C_enabled], [])
  2681. -m4_define([_LT_TAGS], [])
  2682. -
  2683. +# AC_LIBTOOL_SYS_MAX_CMD_LEN
  2684. +# --------------------------
  2685. +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  2686. +[# find the maximum length of command line arguments
  2687. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2688. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2689. + i=0
  2690. + teststring="ABCD"
  2691. -# LT_LANG(LANG)
  2692. -# -------------
  2693. -# Enable libtool support for the given language if not already enabled.
  2694. -AC_DEFUN([LT_LANG],
  2695. -[AC_BEFORE([$0], [LT_OUTPUT])dnl
  2696. -m4_case([$1],
  2697. - [C], [_LT_LANG(C)],
  2698. - [C++], [_LT_LANG(CXX)],
  2699. - [Java], [_LT_LANG(GCJ)],
  2700. - [Fortran 77], [_LT_LANG(F77)],
  2701. - [Fortran], [_LT_LANG(FC)],
  2702. - [Windows Resource], [_LT_LANG(RC)],
  2703. - [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  2704. - [_LT_LANG($1)],
  2705. - [m4_fatal([$0: unsupported language: "$1"])])])dnl
  2706. -])# LT_LANG
  2707. + case $build_os in
  2708. + msdosdjgpp*)
  2709. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2710. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2711. + # during glob expansion). Even if it were fixed, the result of this
  2712. + # check would be larger than it should be.
  2713. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2714. + ;;
  2715. + gnu*)
  2716. + # Under GNU Hurd, this test is not required because there is
  2717. + # no limit to the length of command line arguments.
  2718. + # Libtool will interpret -1 as no limit whatsoever
  2719. + lt_cv_sys_max_cmd_len=-1;
  2720. + ;;
  2721. -# _LT_LANG(LANGNAME)
  2722. -# ------------------
  2723. -m4_defun([_LT_LANG],
  2724. -[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  2725. - [LT_SUPPORTED_TAG([$1])dnl
  2726. - m4_append([_LT_TAGS], [$1 ])dnl
  2727. - m4_define([_LT_LANG_]$1[_enabled], [])dnl
  2728. - _LT_LANG_$1_CONFIG($1)])dnl
  2729. -])# _LT_LANG
  2730. + cygwin* | mingw*)
  2731. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2732. + # about 5 minutes as the teststring grows exponentially.
  2733. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2734. + # you end up with a "frozen" computer, even though with patience
  2735. + # the test eventually succeeds (with a max line length of 256k).
  2736. + # Instead, let's just punt: use the minimum linelength reported by
  2737. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2738. + lt_cv_sys_max_cmd_len=8192;
  2739. + ;;
  2740. + amigaos*)
  2741. + # On AmigaOS with pdksh, this test takes hours, literally.
  2742. + # So we just punt and use a minimum line length of 8192.
  2743. + lt_cv_sys_max_cmd_len=8192;
  2744. + ;;
  2745. -# _LT_LANG_DEFAULT_CONFIG
  2746. -# -----------------------
  2747. -m4_defun([_LT_LANG_DEFAULT_CONFIG],
  2748. -[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  2749. - [LT_LANG(CXX)],
  2750. - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  2751. -
  2752. -AC_PROVIDE_IFELSE([AC_PROG_F77],
  2753. - [LT_LANG(F77)],
  2754. - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  2755. -
  2756. -AC_PROVIDE_IFELSE([AC_PROG_FC],
  2757. - [LT_LANG(FC)],
  2758. - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  2759. -
  2760. -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  2761. -dnl pulling things in needlessly.
  2762. -AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  2763. - [LT_LANG(GCJ)],
  2764. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  2765. - [LT_LANG(GCJ)],
  2766. - [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  2767. - [LT_LANG(GCJ)],
  2768. - [m4_ifdef([AC_PROG_GCJ],
  2769. - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  2770. - m4_ifdef([A][M_PROG_GCJ],
  2771. - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  2772. - m4_ifdef([LT_PROG_GCJ],
  2773. - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  2774. -
  2775. -AC_PROVIDE_IFELSE([LT_PROG_RC],
  2776. - [LT_LANG(RC)],
  2777. - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  2778. -])# _LT_LANG_DEFAULT_CONFIG
  2779. -
  2780. -# Obsolete macros:
  2781. -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  2782. -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  2783. -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  2784. -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  2785. -dnl aclocal-1.4 backwards compatibility:
  2786. -dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  2787. -dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  2788. -dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  2789. -dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  2790. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2791. + # This has been around since 386BSD, at least. Likely further.
  2792. + if test -x /sbin/sysctl; then
  2793. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2794. + elif test -x /usr/sbin/sysctl; then
  2795. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2796. + else
  2797. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2798. + fi
  2799. + # And add a safety zone
  2800. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2801. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2802. + ;;
  2803. + interix*)
  2804. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2805. + lt_cv_sys_max_cmd_len=196608
  2806. + ;;
  2807. -# _LT_TAG_COMPILER
  2808. -# ----------------
  2809. -m4_defun([_LT_TAG_COMPILER],
  2810. -[AC_REQUIRE([AC_PROG_CC])dnl
  2811. + osf*)
  2812. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2813. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2814. + # nice to cause kernel panics so lets avoid the loop below.
  2815. + # First set a reasonable default.
  2816. + lt_cv_sys_max_cmd_len=16384
  2817. + #
  2818. + if test -x /sbin/sysconfig; then
  2819. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2820. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2821. + esac
  2822. + fi
  2823. + ;;
  2824. + sco3.2v5*)
  2825. + lt_cv_sys_max_cmd_len=102400
  2826. + ;;
  2827. + sysv5* | sco5v6* | sysv4.2uw2*)
  2828. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2829. + if test -n "$kargmax"; then
  2830. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2831. + else
  2832. + lt_cv_sys_max_cmd_len=32768
  2833. + fi
  2834. + ;;
  2835. + *)
  2836. + # If test is not a shell built-in, we'll probably end up computing a
  2837. + # maximum length that is only half of the actual maximum length, but
  2838. + # we can't tell.
  2839. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2840. + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  2841. + = "XX$teststring") >/dev/null 2>&1 &&
  2842. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  2843. + lt_cv_sys_max_cmd_len=$new_result &&
  2844. + test $i != 17 # 1/2 MB should be enough
  2845. + do
  2846. + i=`expr $i + 1`
  2847. + teststring=$teststring$teststring
  2848. + done
  2849. + teststring=
  2850. + # Add a significant safety factor because C++ compilers can tack on massive
  2851. + # amounts of additional arguments before passing them to the linker.
  2852. + # It appears as though 1/2 is a usable value.
  2853. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2854. + ;;
  2855. + esac
  2856. +])
  2857. +if test -n $lt_cv_sys_max_cmd_len ; then
  2858. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2859. +else
  2860. + AC_MSG_RESULT(none)
  2861. +fi
  2862. +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  2863. -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  2864. -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  2865. -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  2866. -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  2867. -# If no C compiler was specified, use CC.
  2868. -LTCC=${LTCC-"$CC"}
  2869. +# _LT_AC_CHECK_DLFCN
  2870. +# ------------------
  2871. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  2872. +[AC_CHECK_HEADERS(dlfcn.h)dnl
  2873. +])# _LT_AC_CHECK_DLFCN
  2874. -# If no C compiler flags were specified, use CFLAGS.
  2875. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  2876. -# Allow CC to be a program name with arguments.
  2877. -compiler=$CC
  2878. -])# _LT_TAG_COMPILER
  2879. +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2880. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2881. +# ---------------------------------------------------------------------
  2882. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  2883. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  2884. +if test "$cross_compiling" = yes; then :
  2885. + [$4]
  2886. +else
  2887. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2888. + lt_status=$lt_dlunknown
  2889. + cat > conftest.$ac_ext <<EOF
  2890. +[#line __oline__ "configure"
  2891. +#include "confdefs.h"
  2892. +#if HAVE_DLFCN_H
  2893. +#include <dlfcn.h>
  2894. +#endif
  2895. -# _LT_COMPILER_BOILERPLATE
  2896. -# ------------------------
  2897. -# Check for compiler boilerplate output or warnings with
  2898. -# the simple compiler test code.
  2899. -m4_defun([_LT_COMPILER_BOILERPLATE],
  2900. -[ac_outfile=conftest.$ac_objext
  2901. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  2902. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  2903. -_lt_compiler_boilerplate=`cat conftest.err`
  2904. -$RM conftest*
  2905. -])# _LT_COMPILER_BOILERPLATE
  2906. +#include <stdio.h>
  2907. +#ifdef RTLD_GLOBAL
  2908. +# define LT_DLGLOBAL RTLD_GLOBAL
  2909. +#else
  2910. +# ifdef DL_GLOBAL
  2911. +# define LT_DLGLOBAL DL_GLOBAL
  2912. +# else
  2913. +# define LT_DLGLOBAL 0
  2914. +# endif
  2915. +#endif
  2916. -# _LT_LINKER_BOILERPLATE
  2917. -# ----------------------
  2918. -# Check for linker boilerplate output or warnings with
  2919. -# the simple link test code.
  2920. -m4_defun([_LT_LINKER_BOILERPLATE],
  2921. -[ac_outfile=conftest.$ac_objext
  2922. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  2923. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  2924. -_lt_linker_boilerplate=`cat conftest.err`
  2925. -$RM conftest*
  2926. -])# _LT_LINKER_BOILERPLATE
  2927. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2928. + find out it does not work in some platform. */
  2929. +#ifndef LT_DLLAZY_OR_NOW
  2930. +# ifdef RTLD_LAZY
  2931. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2932. +# else
  2933. +# ifdef DL_LAZY
  2934. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2935. +# else
  2936. +# ifdef RTLD_NOW
  2937. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2938. +# else
  2939. +# ifdef DL_NOW
  2940. +# define LT_DLLAZY_OR_NOW DL_NOW
  2941. +# else
  2942. +# define LT_DLLAZY_OR_NOW 0
  2943. +# endif
  2944. +# endif
  2945. +# endif
  2946. +# endif
  2947. +#endif
  2948. +#ifdef __cplusplus
  2949. +extern "C" void exit (int);
  2950. +#endif
  2951. -# _LT_SYS_MODULE_PATH_AIX
  2952. -# -----------------------
  2953. -# Links a minimal program and checks the executable
  2954. -# for the system default hardcoded library path. In most cases,
  2955. -# this is /usr/lib:/lib, but when the MPI compilers are used
  2956. -# the location of the communication and MPI libs are included too.
  2957. -# If we don't find anything, use the default library path according
  2958. -# to the aix ld manual.
  2959. -m4_defun([_LT_SYS_MODULE_PATH_AIX],
  2960. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  2961. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  2962. -}'`
  2963. -# Check for a 64-bit object if we didn't find anything.
  2964. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  2965. -}'`; fi],[])
  2966. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  2967. -])# _LT_SYS_MODULE_PATH_AIX
  2968. +void fnord() { int i=42;}
  2969. +int main ()
  2970. +{
  2971. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2972. + int status = $lt_dlunknown;
  2973. + if (self)
  2974. + {
  2975. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2976. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2977. + /* dlclose (self); */
  2978. + }
  2979. + else
  2980. + puts (dlerror ());
  2981. -# _LT_SHELL_INIT(ARG)
  2982. -# -------------------
  2983. -m4_define([_LT_SHELL_INIT],
  2984. -[ifdef([AC_DIVERSION_NOTICE],
  2985. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  2986. - [AC_DIVERT_PUSH(NOTICE)])
  2987. -$1
  2988. -AC_DIVERT_POP
  2989. -])# _LT_SHELL_INIT
  2990. + exit (status);
  2991. +}]
  2992. +EOF
  2993. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2994. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2995. + lt_status=$?
  2996. + case x$lt_status in
  2997. + x$lt_dlno_uscore) $1 ;;
  2998. + x$lt_dlneed_uscore) $2 ;;
  2999. + x$lt_dlunknown|x*) $3 ;;
  3000. + esac
  3001. + else :
  3002. + # compilation failed
  3003. + $3
  3004. + fi
  3005. +fi
  3006. +rm -fr conftest*
  3007. +])# _LT_AC_TRY_DLOPEN_SELF
  3008. -# _LT_PROG_ECHO_BACKSLASH
  3009. -# -----------------------
  3010. -# Add some code to the start of the generated configure script which
  3011. -# will find an echo command which doesn't interpret backslashes.
  3012. -m4_defun([_LT_PROG_ECHO_BACKSLASH],
  3013. -[_LT_SHELL_INIT([
  3014. -# Check that we are running under the correct shell.
  3015. -SHELL=${CONFIG_SHELL-/bin/sh}
  3016. +# AC_LIBTOOL_DLOPEN_SELF
  3017. +# ----------------------
  3018. +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  3019. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  3020. +if test "x$enable_dlopen" != xyes; then
  3021. + enable_dlopen=unknown
  3022. + enable_dlopen_self=unknown
  3023. + enable_dlopen_self_static=unknown
  3024. +else
  3025. + lt_cv_dlopen=no
  3026. + lt_cv_dlopen_libs=
  3027. -case X$lt_ECHO in
  3028. -X*--fallback-echo)
  3029. - # Remove one level of quotation (which was required for Make).
  3030. - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  3031. - ;;
  3032. -esac
  3033. + case $host_os in
  3034. + beos*)
  3035. + lt_cv_dlopen="load_add_on"
  3036. + lt_cv_dlopen_libs=
  3037. + lt_cv_dlopen_self=yes
  3038. + ;;
  3039. -ECHO=${lt_ECHO-echo}
  3040. -if test "X[$]1" = X--no-reexec; then
  3041. - # Discard the --no-reexec flag, and continue.
  3042. - shift
  3043. -elif test "X[$]1" = X--fallback-echo; then
  3044. - # Avoid inline document here, it may be left over
  3045. - :
  3046. -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  3047. - # Yippee, $ECHO works!
  3048. - :
  3049. -else
  3050. - # Restart under the correct shell.
  3051. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  3052. -fi
  3053. + mingw* | pw32*)
  3054. + lt_cv_dlopen="LoadLibrary"
  3055. + lt_cv_dlopen_libs=
  3056. + ;;
  3057. -if test "X[$]1" = X--fallback-echo; then
  3058. - # used as fallback echo
  3059. - shift
  3060. - cat <<_LT_EOF
  3061. -[$]*
  3062. -_LT_EOF
  3063. - exit 0
  3064. -fi
  3065. + cygwin*)
  3066. + lt_cv_dlopen="dlopen"
  3067. + lt_cv_dlopen_libs=
  3068. + ;;
  3069. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  3070. -# if CDPATH is set.
  3071. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  3072. + darwin*)
  3073. + # if libdl is installed we need to link against it
  3074. + AC_CHECK_LIB([dl], [dlopen],
  3075. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3076. + lt_cv_dlopen="dyld"
  3077. + lt_cv_dlopen_libs=
  3078. + lt_cv_dlopen_self=yes
  3079. + ])
  3080. + ;;
  3081. -if test -z "$lt_ECHO"; then
  3082. - if test "X${echo_test_string+set}" != Xset; then
  3083. - # find a string as large as possible, as long as the shell can cope with it
  3084. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  3085. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  3086. - if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  3087. - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  3088. - then
  3089. - break
  3090. - fi
  3091. - done
  3092. - fi
  3093. + *)
  3094. + AC_CHECK_FUNC([shl_load],
  3095. + [lt_cv_dlopen="shl_load"],
  3096. + [AC_CHECK_LIB([dld], [shl_load],
  3097. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  3098. + [AC_CHECK_FUNC([dlopen],
  3099. + [lt_cv_dlopen="dlopen"],
  3100. + [AC_CHECK_LIB([dl], [dlopen],
  3101. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3102. + [AC_CHECK_LIB([svld], [dlopen],
  3103. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3104. + [AC_CHECK_LIB([dld], [dld_link],
  3105. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  3106. + ])
  3107. + ])
  3108. + ])
  3109. + ])
  3110. + ])
  3111. + ;;
  3112. + esac
  3113. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  3114. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  3115. - test "X$echo_testing_string" = "X$echo_test_string"; then
  3116. - :
  3117. + if test "x$lt_cv_dlopen" != xno; then
  3118. + enable_dlopen=yes
  3119. else
  3120. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  3121. - # backslashes. This makes it impossible to quote backslashes using
  3122. - # echo "$something" | sed 's/\\/\\\\/g'
  3123. - #
  3124. - # So, first we look for a working echo in the user's PATH.
  3125. + enable_dlopen=no
  3126. + fi
  3127. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3128. - for dir in $PATH /usr/ucb; do
  3129. - IFS="$lt_save_ifs"
  3130. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  3131. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  3132. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  3133. - test "X$echo_testing_string" = "X$echo_test_string"; then
  3134. - ECHO="$dir/echo"
  3135. - break
  3136. - fi
  3137. - done
  3138. - IFS="$lt_save_ifs"
  3139. -
  3140. - if test "X$ECHO" = Xecho; then
  3141. - # We didn't find a better echo, so look for alternatives.
  3142. - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  3143. - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  3144. - test "X$echo_testing_string" = "X$echo_test_string"; then
  3145. - # This shell has a builtin print -r that does the trick.
  3146. - ECHO='print -r'
  3147. - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  3148. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  3149. - # If we have ksh, try running configure again with it.
  3150. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  3151. - export ORIGINAL_CONFIG_SHELL
  3152. - CONFIG_SHELL=/bin/ksh
  3153. - export CONFIG_SHELL
  3154. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  3155. - else
  3156. - # Try using printf.
  3157. - ECHO='printf %s\n'
  3158. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  3159. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  3160. - test "X$echo_testing_string" = "X$echo_test_string"; then
  3161. - # Cool, printf works
  3162. - :
  3163. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  3164. - test "X$echo_testing_string" = 'X\t' &&
  3165. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  3166. - test "X$echo_testing_string" = "X$echo_test_string"; then
  3167. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  3168. - export CONFIG_SHELL
  3169. - SHELL="$CONFIG_SHELL"
  3170. - export SHELL
  3171. - ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  3172. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  3173. - test "X$echo_testing_string" = 'X\t' &&
  3174. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  3175. - test "X$echo_testing_string" = "X$echo_test_string"; then
  3176. - ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  3177. - else
  3178. - # maybe with a smaller string...
  3179. - prev=:
  3180. -
  3181. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  3182. - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  3183. - then
  3184. - break
  3185. - fi
  3186. - prev="$cmd"
  3187. - done
  3188. -
  3189. - if test "$prev" != 'sed 50q "[$]0"'; then
  3190. - echo_test_string=`eval $prev`
  3191. - export echo_test_string
  3192. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  3193. - else
  3194. - # Oops. We lost completely, so just stick with echo.
  3195. - ECHO=echo
  3196. - fi
  3197. - fi
  3198. - fi
  3199. - fi
  3200. - fi
  3201. -fi
  3202. -
  3203. -# Copy echo and quote the copy suitably for passing to libtool from
  3204. -# the Makefile, instead of quoting the original, which is used later.
  3205. -lt_ECHO=$ECHO
  3206. -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  3207. - lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  3208. -fi
  3209. + case $lt_cv_dlopen in
  3210. + dlopen)
  3211. + save_CPPFLAGS="$CPPFLAGS"
  3212. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3213. -AC_SUBST(lt_ECHO)
  3214. -])
  3215. -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  3216. -_LT_DECL([], [ECHO], [1],
  3217. - [An echo program that does not interpret backslashes])
  3218. -])# _LT_PROG_ECHO_BACKSLASH
  3219. + save_LDFLAGS="$LDFLAGS"
  3220. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3221. + save_LIBS="$LIBS"
  3222. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3223. -# _LT_ENABLE_LOCK
  3224. -# ---------------
  3225. -m4_defun([_LT_ENABLE_LOCK],
  3226. -[AC_REQUIRE([AC_OBJEXT])dnl
  3227. -AC_ARG_ENABLE([libtool-lock],
  3228. - [AS_HELP_STRING([--disable-libtool-lock],
  3229. - [avoid locking (might break parallel builds)])])
  3230. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  3231. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3232. + lt_cv_dlopen_self, [dnl
  3233. + _LT_AC_TRY_DLOPEN_SELF(
  3234. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3235. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3236. + ])
  3237. -# Some flags need to be propagated to the compiler or linker for good
  3238. -# libtool support.
  3239. -case $host in
  3240. -ia64-*-hpux*)
  3241. - # Find out which ABI we are using.
  3242. - echo 'int i;' > conftest.$ac_ext
  3243. - if AC_TRY_EVAL(ac_compile); then
  3244. - case `/usr/bin/file conftest.$ac_objext` in
  3245. - *ELF-32*)
  3246. - HPUX_IA64_MODE="32"
  3247. - ;;
  3248. - *ELF-64*)
  3249. - HPUX_IA64_MODE="64"
  3250. - ;;
  3251. - esac
  3252. - fi
  3253. - rm -rf conftest*
  3254. - ;;
  3255. -*-*-irix6*)
  3256. - # Find out which ABI we are using.
  3257. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  3258. - if AC_TRY_EVAL(ac_compile); then
  3259. - if test "$lt_cv_prog_gnu_ld" = yes; then
  3260. - case `/usr/bin/file conftest.$ac_objext` in
  3261. - *32-bit*)
  3262. - LD="${LD-ld} -melf32bsmip"
  3263. - ;;
  3264. - *N32*)
  3265. - LD="${LD-ld} -melf32bmipn32"
  3266. - ;;
  3267. - *64-bit*)
  3268. - LD="${LD-ld} -melf64bmip"
  3269. - ;;
  3270. - esac
  3271. - else
  3272. - case `/usr/bin/file conftest.$ac_objext` in
  3273. - *32-bit*)
  3274. - LD="${LD-ld} -32"
  3275. - ;;
  3276. - *N32*)
  3277. - LD="${LD-ld} -n32"
  3278. - ;;
  3279. - *64-bit*)
  3280. - LD="${LD-ld} -64"
  3281. - ;;
  3282. - esac
  3283. + if test "x$lt_cv_dlopen_self" = xyes; then
  3284. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3285. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3286. + lt_cv_dlopen_self_static, [dnl
  3287. + _LT_AC_TRY_DLOPEN_SELF(
  3288. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3289. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3290. + ])
  3291. fi
  3292. - fi
  3293. - rm -rf conftest*
  3294. - ;;
  3295. -
  3296. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  3297. - # Find out which ABI we are using.
  3298. - echo 'int i;' > conftest.$ac_ext
  3299. - if AC_TRY_EVAL(ac_compile); then
  3300. - case `/usr/bin/file conftest.o` in
  3301. - *32-bit*)
  3302. - case $host in
  3303. - x86_64-*linux*)
  3304. - LD="${LD-ld} -m elf_i386"
  3305. - ;;
  3306. - ppc64-*linux*|powerpc64-*linux*)
  3307. - LD="${LD-ld} -m elf32ppclinux"
  3308. - ;;
  3309. - s390x-*linux*)
  3310. - LD="${LD-ld} -m elf_s390"
  3311. - ;;
  3312. - sparc64-*linux*)
  3313. - LD="${LD-ld} -m elf32_sparc"
  3314. - ;;
  3315. - esac
  3316. - ;;
  3317. - *64-bit*)
  3318. - case $host in
  3319. - x86_64-*linux*)
  3320. - LD="${LD-ld} -m elf_x86_64"
  3321. - ;;
  3322. - ppc*-*linux*|powerpc*-*linux*)
  3323. - LD="${LD-ld} -m elf64ppc"
  3324. - ;;
  3325. - s390*-*linux*|s390*-*tpf*)
  3326. - LD="${LD-ld} -m elf64_s390"
  3327. - ;;
  3328. - sparc*-*linux*)
  3329. - LD="${LD-ld} -m elf64_sparc"
  3330. - ;;
  3331. - esac
  3332. - ;;
  3333. - esac
  3334. - fi
  3335. - rm -rf conftest*
  3336. - ;;
  3337. -
  3338. -*-*-sco3.2v5*)
  3339. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  3340. - SAVE_CFLAGS="$CFLAGS"
  3341. - CFLAGS="$CFLAGS -belf"
  3342. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  3343. - [AC_LANG_PUSH(C)
  3344. - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  3345. - AC_LANG_POP])
  3346. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  3347. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  3348. - CFLAGS="$SAVE_CFLAGS"
  3349. - fi
  3350. - ;;
  3351. -sparc*-*solaris*)
  3352. - # Find out which ABI we are using.
  3353. - echo 'int i;' > conftest.$ac_ext
  3354. - if AC_TRY_EVAL(ac_compile); then
  3355. - case `/usr/bin/file conftest.o` in
  3356. - *64-bit*)
  3357. - case $lt_cv_prog_gnu_ld in
  3358. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  3359. - *) LD="${LD-ld} -64" ;;
  3360. - esac
  3361. - ;;
  3362. - esac
  3363. - fi
  3364. - rm -rf conftest*
  3365. - ;;
  3366. -esac
  3367. -
  3368. -need_locks="$enable_libtool_lock"
  3369. -])# _LT_ENABLE_LOCK
  3370. + CPPFLAGS="$save_CPPFLAGS"
  3371. + LDFLAGS="$save_LDFLAGS"
  3372. + LIBS="$save_LIBS"
  3373. + ;;
  3374. + esac
  3375. -# _LT_CMD_OLD_ARCHIVE
  3376. -# -------------------
  3377. -m4_defun([_LT_CMD_OLD_ARCHIVE],
  3378. -[AC_CHECK_TOOL(AR, ar, false)
  3379. -test -z "$AR" && AR=ar
  3380. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  3381. -_LT_DECL([], [AR], [1], [The archiver])
  3382. -_LT_DECL([], [AR_FLAGS], [1])
  3383. -
  3384. -AC_CHECK_TOOL(STRIP, strip, :)
  3385. -test -z "$STRIP" && STRIP=:
  3386. -_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  3387. -
  3388. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  3389. -test -z "$RANLIB" && RANLIB=:
  3390. -_LT_DECL([], [RANLIB], [1],
  3391. - [Commands used to install an old-style archive])
  3392. -
  3393. -# Determine commands to create old-style static archives.
  3394. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  3395. -old_postinstall_cmds='chmod 644 $oldlib'
  3396. -old_postuninstall_cmds=
  3397. + case $lt_cv_dlopen_self in
  3398. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3399. + *) enable_dlopen_self=unknown ;;
  3400. + esac
  3401. -if test -n "$RANLIB"; then
  3402. - case $host_os in
  3403. - openbsd*)
  3404. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  3405. - ;;
  3406. - *)
  3407. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  3408. - ;;
  3409. + case $lt_cv_dlopen_self_static in
  3410. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3411. + *) enable_dlopen_self_static=unknown ;;
  3412. esac
  3413. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  3414. fi
  3415. -_LT_DECL([], [old_postinstall_cmds], [2])
  3416. -_LT_DECL([], [old_postuninstall_cmds], [2])
  3417. -_LT_TAGDECL([], [old_archive_cmds], [2],
  3418. - [Commands used to build an old-style archive])
  3419. -])# _LT_CMD_OLD_ARCHIVE
  3420. +])# AC_LIBTOOL_DLOPEN_SELF
  3421. -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  3422. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  3423. -# ----------------------------------------------------------------
  3424. -# Check whether the given compiler option works
  3425. -AC_DEFUN([_LT_COMPILER_OPTION],
  3426. -[AC_REQUIRE([AC_OBJEXT])dnl
  3427. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3428. -m4_require([_LT_DECL_SED])dnl
  3429. -AC_CACHE_CHECK([$1], [$2],
  3430. - [$2=no
  3431. - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  3432. +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  3433. +# ---------------------------------
  3434. +# Check to see if options -c and -o are simultaneously supported by compiler
  3435. +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  3436. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  3437. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3438. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3439. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3440. + $rm -r conftest 2>/dev/null
  3441. + mkdir conftest
  3442. + cd conftest
  3443. + mkdir out
  3444. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  3445. - lt_compiler_flag="$3"
  3446. +
  3447. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3448. # Insert the option either (1) after the last *FLAGS variable, or
  3449. # (2) before a word containing "conftest.", or (3) at the end.
  3450. # Note that $ac_compile itself does not contain backslashes and begins
  3451. # with a dollar sign (not a hyphen), so the echo should work correctly.
  3452. - # The option is referenced via a variable to avoid confusing sed.
  3453. lt_compile=`echo "$ac_compile" | $SED \
  3454. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3455. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3456. -e 's:$: $lt_compiler_flag:'`
  3457. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3458. - (eval "$lt_compile" 2>conftest.err)
  3459. + (eval "$lt_compile" 2>out/conftest.err)
  3460. ac_status=$?
  3461. - cat conftest.err >&AS_MESSAGE_LOG_FD
  3462. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3463. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3464. - if (exit $ac_status) && test -s "$ac_outfile"; then
  3465. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3466. + then
  3467. # The compiler can only warn and ignore the option if not recognized
  3468. - # So say no if there are warnings other than the usual output.
  3469. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  3470. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  3471. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  3472. - $2=yes
  3473. + # So say no if there are warnings
  3474. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3475. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3476. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3477. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3478. fi
  3479. fi
  3480. - $RM conftest*
  3481. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3482. + $rm conftest*
  3483. + # SGI C++ compiler will create directory out/ii_files/ for
  3484. + # template instantiation
  3485. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  3486. + $rm out/* && rmdir out
  3487. + cd ..
  3488. + rmdir conftest
  3489. + $rm conftest*
  3490. ])
  3491. +])# AC_LIBTOOL_PROG_CC_C_O
  3492. -if test x"[$]$2" = xyes; then
  3493. - m4_if([$5], , :, [$5])
  3494. +
  3495. +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  3496. +# -----------------------------------------
  3497. +# Check to see if we can do hard links to lock some files if needed
  3498. +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  3499. +[AC_REQUIRE([_LT_AC_LOCK])dnl
  3500. +
  3501. +hard_links="nottested"
  3502. +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3503. + # do not overwrite the value of need_locks provided by the user
  3504. + AC_MSG_CHECKING([if we can lock with hard links])
  3505. + hard_links=yes
  3506. + $rm conftest*
  3507. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3508. + touch conftest.a
  3509. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3510. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3511. + AC_MSG_RESULT([$hard_links])
  3512. + if test "$hard_links" = no; then
  3513. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3514. + need_locks=warn
  3515. + fi
  3516. else
  3517. - m4_if([$6], , :, [$6])
  3518. + need_locks=no
  3519. fi
  3520. -])# _LT_COMPILER_OPTION
  3521. +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  3522. -# Old name:
  3523. -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  3524. -dnl aclocal-1.4 backwards compatibility:
  3525. -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  3526. -
  3527. -
  3528. -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  3529. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  3530. -# ----------------------------------------------------
  3531. -# Check whether the given linker option works
  3532. -AC_DEFUN([_LT_LINKER_OPTION],
  3533. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3534. -AC_CACHE_CHECK([$1], [$2],
  3535. - [$2=no
  3536. - save_LDFLAGS="$LDFLAGS"
  3537. - LDFLAGS="$LDFLAGS $3"
  3538. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  3539. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  3540. - # The linker can only warn and ignore the option if not recognized
  3541. - # So say no if there are warnings
  3542. - if test -s conftest.err; then
  3543. - # Append any errors to the config.log.
  3544. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  3545. - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  3546. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  3547. - if diff conftest.exp conftest.er2 >/dev/null; then
  3548. - $2=yes
  3549. - fi
  3550. - else
  3551. - $2=yes
  3552. - fi
  3553. - fi
  3554. - $RM conftest*
  3555. - LDFLAGS="$save_LDFLAGS"
  3556. -])
  3557. -if test x"[$]$2" = xyes; then
  3558. - m4_if([$4], , :, [$4])
  3559. +# AC_LIBTOOL_OBJDIR
  3560. +# -----------------
  3561. +AC_DEFUN([AC_LIBTOOL_OBJDIR],
  3562. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3563. +[rm -f .libs 2>/dev/null
  3564. +mkdir .libs 2>/dev/null
  3565. +if test -d .libs; then
  3566. + lt_cv_objdir=.libs
  3567. else
  3568. - m4_if([$5], , :, [$5])
  3569. + # MS-DOS does not allow filenames that begin with a dot.
  3570. + lt_cv_objdir=_libs
  3571. fi
  3572. -])# _LT_LINKER_OPTION
  3573. -
  3574. -# Old name:
  3575. -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  3576. -dnl aclocal-1.4 backwards compatibility:
  3577. -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  3578. +rmdir .libs 2>/dev/null])
  3579. +objdir=$lt_cv_objdir
  3580. +])# AC_LIBTOOL_OBJDIR
  3581. -# LT_CMD_MAX_LEN
  3582. -#---------------
  3583. -AC_DEFUN([LT_CMD_MAX_LEN],
  3584. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3585. -# find the maximum length of command line arguments
  3586. -AC_MSG_CHECKING([the maximum length of command line arguments])
  3587. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  3588. - i=0
  3589. - teststring="ABCD"
  3590. +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  3591. +# ----------------------------------------------
  3592. +# Check hardcoding attributes.
  3593. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  3594. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3595. +_LT_AC_TAGVAR(hardcode_action, $1)=
  3596. +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  3597. + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  3598. + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3599. - case $build_os in
  3600. - msdosdjgpp*)
  3601. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  3602. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  3603. - # during glob expansion). Even if it were fixed, the result of this
  3604. - # check would be larger than it should be.
  3605. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  3606. - ;;
  3607. -
  3608. - gnu*)
  3609. - # Under GNU Hurd, this test is not required because there is
  3610. - # no limit to the length of command line arguments.
  3611. - # Libtool will interpret -1 as no limit whatsoever
  3612. - lt_cv_sys_max_cmd_len=-1;
  3613. - ;;
  3614. + # We can hardcode non-existant directories.
  3615. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  3616. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3617. + # have to relink, otherwise we might link with an installed library
  3618. + # when we should be linking with a yet-to-be-installed one
  3619. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3620. + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  3621. + # Linking always hardcodes the temporary library directory.
  3622. + _LT_AC_TAGVAR(hardcode_action, $1)=relink
  3623. + else
  3624. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3625. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  3626. + fi
  3627. +else
  3628. + # We cannot hardcode anything, or else we can only hardcode existing
  3629. + # directories.
  3630. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  3631. +fi
  3632. +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  3633. - cygwin* | mingw*)
  3634. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  3635. - # about 5 minutes as the teststring grows exponentially.
  3636. - # Worse, since 9x/ME are not pre-emptively multitasking,
  3637. - # you end up with a "frozen" computer, even though with patience
  3638. - # the test eventually succeeds (with a max line length of 256k).
  3639. - # Instead, let's just punt: use the minimum linelength reported by
  3640. - # all of the supported platforms: 8192 (on NT/2K/XP).
  3641. - lt_cv_sys_max_cmd_len=8192;
  3642. - ;;
  3643. +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  3644. + # Fast installation is not supported
  3645. + enable_fast_install=no
  3646. +elif test "$shlibpath_overrides_runpath" = yes ||
  3647. + test "$enable_shared" = no; then
  3648. + # Fast installation is not necessary
  3649. + enable_fast_install=needless
  3650. +fi
  3651. +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  3652. - amigaos*)
  3653. - # On AmigaOS with pdksh, this test takes hours, literally.
  3654. - # So we just punt and use a minimum line length of 8192.
  3655. - lt_cv_sys_max_cmd_len=8192;
  3656. - ;;
  3657. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  3658. - # This has been around since 386BSD, at least. Likely further.
  3659. - if test -x /sbin/sysctl; then
  3660. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  3661. - elif test -x /usr/sbin/sysctl; then
  3662. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  3663. - else
  3664. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  3665. - fi
  3666. - # And add a safety zone
  3667. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  3668. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  3669. +# AC_LIBTOOL_SYS_LIB_STRIP
  3670. +# ------------------------
  3671. +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  3672. +[striplib=
  3673. +old_striplib=
  3674. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3675. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  3676. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3677. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3678. + AC_MSG_RESULT([yes])
  3679. +else
  3680. +# FIXME - insert some real tests, host_os isn't really good enough
  3681. + case $host_os in
  3682. + darwin*)
  3683. + if test -n "$STRIP" ; then
  3684. + striplib="$STRIP -x"
  3685. + AC_MSG_RESULT([yes])
  3686. + else
  3687. + AC_MSG_RESULT([no])
  3688. +fi
  3689. + ;;
  3690. + *)
  3691. + AC_MSG_RESULT([no])
  3692. ;;
  3693. + esac
  3694. +fi
  3695. +])# AC_LIBTOOL_SYS_LIB_STRIP
  3696. - interix*)
  3697. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  3698. - lt_cv_sys_max_cmd_len=196608
  3699. - ;;
  3700. - osf*)
  3701. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  3702. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  3703. - # nice to cause kernel panics so lets avoid the loop below.
  3704. - # First set a reasonable default.
  3705. - lt_cv_sys_max_cmd_len=16384
  3706. - #
  3707. - if test -x /sbin/sysconfig; then
  3708. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  3709. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  3710. - esac
  3711. - fi
  3712. - ;;
  3713. - sco3.2v5*)
  3714. - lt_cv_sys_max_cmd_len=102400
  3715. - ;;
  3716. - sysv5* | sco5v6* | sysv4.2uw2*)
  3717. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  3718. - if test -n "$kargmax"; then
  3719. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  3720. - else
  3721. - lt_cv_sys_max_cmd_len=32768
  3722. - fi
  3723. - ;;
  3724. - *)
  3725. - # Make teststring a little bigger before we do anything with it.
  3726. - # a 1K string should be a reasonable start.
  3727. - for i in 1 2 3 4 5 6 7 8 ; do
  3728. - teststring=$teststring$teststring
  3729. - done
  3730. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  3731. - # If test is not a shell built-in, we'll probably end up computing a
  3732. - # maximum length that is only half of the actual maximum length, but
  3733. - # we can't tell.
  3734. - while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  3735. - = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  3736. - test $i != 17 # 1/2 MB should be enough
  3737. - do
  3738. - i=`expr $i + 1`
  3739. - teststring=$teststring$teststring
  3740. - done
  3741. - # Only check the string length outside the loop.
  3742. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  3743. - teststring=
  3744. - # Add a significant safety factor because C++ compilers can tack on massive
  3745. - # amounts of additional arguments before passing them to the linker.
  3746. - # It appears as though 1/2 is a usable value.
  3747. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  3748. - ;;
  3749. - esac
  3750. -])
  3751. -if test -n $lt_cv_sys_max_cmd_len ; then
  3752. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  3753. +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3754. +# -----------------------------
  3755. +# PORTME Fill in your ld.so characteristics
  3756. +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  3757. +[AC_MSG_CHECKING([dynamic linker characteristics])
  3758. +library_names_spec=
  3759. +libname_spec='lib$name'
  3760. +soname_spec=
  3761. +shrext_cmds=".so"
  3762. +postinstall_cmds=
  3763. +postuninstall_cmds=
  3764. +finish_cmds=
  3765. +finish_eval=
  3766. +shlibpath_var=
  3767. +shlibpath_overrides_runpath=unknown
  3768. +version_type=none
  3769. +dynamic_linker="$host_os ld.so"
  3770. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3771. +if test "$GCC" = yes; then
  3772. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3773. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  3774. + # if the path contains ";" then we assume it to be the separator
  3775. + # otherwise default to the standard path separator (i.e. ":") - it is
  3776. + # assumed that no part of a normal pathname contains ";" but that should
  3777. + # okay in the real world where ";" in dirpaths is itself problematic.
  3778. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3779. + else
  3780. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3781. + fi
  3782. else
  3783. - AC_MSG_RESULT(none)
  3784. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3785. fi
  3786. -max_cmd_len=$lt_cv_sys_max_cmd_len
  3787. -_LT_DECL([], [max_cmd_len], [0],
  3788. - [What is the maximum length of a command?])
  3789. -])# LT_CMD_MAX_LEN
  3790. +need_lib_prefix=unknown
  3791. +hardcode_into_libs=no
  3792. -# Old name:
  3793. -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  3794. -dnl aclocal-1.4 backwards compatibility:
  3795. -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  3796. +# when you set need_version to no, make sure it does not cause -set_version
  3797. +# flags to be left without arguments
  3798. +need_version=unknown
  3799. +case $host_os in
  3800. +aix3*)
  3801. + version_type=linux
  3802. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3803. + shlibpath_var=LIBPATH
  3804. -# _LT_HEADER_DLFCN
  3805. -# ----------------
  3806. -m4_defun([_LT_HEADER_DLFCN],
  3807. -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  3808. -])# _LT_HEADER_DLFCN
  3809. + # AIX 3 has no versioning support, so we append a major version to the name.
  3810. + soname_spec='${libname}${release}${shared_ext}$major'
  3811. + ;;
  3812. +aix4* | aix5*)
  3813. + version_type=linux
  3814. + need_lib_prefix=no
  3815. + need_version=no
  3816. + hardcode_into_libs=yes
  3817. + if test "$host_cpu" = ia64; then
  3818. + # AIX 5 supports IA64
  3819. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3820. + shlibpath_var=LD_LIBRARY_PATH
  3821. + else
  3822. + # With GCC up to 2.95.x, collect2 would create an import file
  3823. + # for dependence libraries. The import file would start with
  3824. + # the line `#! .'. This would cause the generated library to
  3825. + # depend on `.', always an invalid library. This was fixed in
  3826. + # development snapshots of GCC prior to 3.0.
  3827. + case $host_os in
  3828. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3829. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3830. + echo ' yes '
  3831. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  3832. + :
  3833. + else
  3834. + can_build_shared=no
  3835. + fi
  3836. + ;;
  3837. + esac
  3838. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3839. + # soname into executable. Probably we can add versioning support to
  3840. + # collect2, so additional links can be useful in future.
  3841. + if test "$aix_use_runtimelinking" = yes; then
  3842. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3843. + # instead of lib<name>.a to let people know that these are not
  3844. + # typical AIX shared libraries.
  3845. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3846. + else
  3847. + # We preserve .a as extension for shared libraries through AIX4.2
  3848. + # and later when we are not doing run time linking.
  3849. + library_names_spec='${libname}${release}.a $libname.a'
  3850. + soname_spec='${libname}${release}${shared_ext}$major'
  3851. + fi
  3852. + shlibpath_var=LIBPATH
  3853. + fi
  3854. + ;;
  3855. -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  3856. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  3857. -# ----------------------------------------------------------------
  3858. -m4_defun([_LT_TRY_DLOPEN_SELF],
  3859. -[m4_require([_LT_HEADER_DLFCN])dnl
  3860. -if test "$cross_compiling" = yes; then :
  3861. - [$4]
  3862. -else
  3863. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  3864. - lt_status=$lt_dlunknown
  3865. - cat > conftest.$ac_ext <<_LT_EOF
  3866. -[#line __oline__ "configure"
  3867. -#include "confdefs.h"
  3868. +amigaos*)
  3869. + library_names_spec='$libname.ixlibrary $libname.a'
  3870. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3871. + 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'
  3872. + ;;
  3873. -#if HAVE_DLFCN_H
  3874. -#include <dlfcn.h>
  3875. -#endif
  3876. +beos*)
  3877. + library_names_spec='${libname}${shared_ext}'
  3878. + dynamic_linker="$host_os ld.so"
  3879. + shlibpath_var=LIBRARY_PATH
  3880. + ;;
  3881. -#include <stdio.h>
  3882. +bsdi[[45]]*)
  3883. + version_type=linux
  3884. + need_version=no
  3885. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3886. + soname_spec='${libname}${release}${shared_ext}$major'
  3887. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3888. + shlibpath_var=LD_LIBRARY_PATH
  3889. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3890. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3891. + # the default ld.so.conf also contains /usr/contrib/lib and
  3892. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3893. + # libtool to hard-code these into programs
  3894. + ;;
  3895. -#ifdef RTLD_GLOBAL
  3896. -# define LT_DLGLOBAL RTLD_GLOBAL
  3897. -#else
  3898. -# ifdef DL_GLOBAL
  3899. -# define LT_DLGLOBAL DL_GLOBAL
  3900. -# else
  3901. -# define LT_DLGLOBAL 0
  3902. -# endif
  3903. -#endif
  3904. +cygwin* | mingw* | pw32*)
  3905. + version_type=windows
  3906. + shrext_cmds=".dll"
  3907. + need_version=no
  3908. + need_lib_prefix=no
  3909. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  3910. - find out it does not work in some platform. */
  3911. -#ifndef LT_DLLAZY_OR_NOW
  3912. -# ifdef RTLD_LAZY
  3913. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  3914. -# else
  3915. -# ifdef DL_LAZY
  3916. -# define LT_DLLAZY_OR_NOW DL_LAZY
  3917. -# else
  3918. -# ifdef RTLD_NOW
  3919. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  3920. -# else
  3921. -# ifdef DL_NOW
  3922. -# define LT_DLLAZY_OR_NOW DL_NOW
  3923. -# else
  3924. -# define LT_DLLAZY_OR_NOW 0
  3925. -# endif
  3926. -# endif
  3927. -# endif
  3928. -# endif
  3929. -#endif
  3930. -
  3931. -#ifdef __cplusplus
  3932. -extern "C" void exit (int);
  3933. -#endif
  3934. -
  3935. -void fnord() { int i=42;}
  3936. -int main ()
  3937. -{
  3938. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  3939. - int status = $lt_dlunknown;
  3940. -
  3941. - if (self)
  3942. - {
  3943. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  3944. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  3945. - /* dlclose (self); */
  3946. - }
  3947. - else
  3948. - puts (dlerror ());
  3949. + case $GCC,$host_os in
  3950. + yes,cygwin* | yes,mingw* | yes,pw32*)
  3951. + library_names_spec='$libname.dll.a'
  3952. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3953. + postinstall_cmds='base_file=`basename \${file}`~
  3954. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  3955. + dldir=$destdir/`dirname \$dlpath`~
  3956. + test -d \$dldir || mkdir -p \$dldir~
  3957. + $install_prog $dir/$dlname \$dldir/$dlname~
  3958. + chmod a+x \$dldir/$dlname'
  3959. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3960. + dlpath=$dir/\$dldll~
  3961. + $rm \$dlpath'
  3962. + shlibpath_overrides_runpath=yes
  3963. - exit (status);
  3964. -}]
  3965. -_LT_EOF
  3966. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  3967. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  3968. - lt_status=$?
  3969. - case x$lt_status in
  3970. - x$lt_dlno_uscore) $1 ;;
  3971. - x$lt_dlneed_uscore) $2 ;;
  3972. - x$lt_dlunknown|x*) $3 ;;
  3973. + case $host_os in
  3974. + cygwin*)
  3975. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3976. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3977. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3978. + ;;
  3979. + mingw*)
  3980. + # MinGW DLLs use traditional 'lib' prefix
  3981. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3982. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3983. + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  3984. + # It is most probably a Windows format PATH printed by
  3985. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3986. + # path with ; separators, and with drive letters. We can handle the
  3987. + # drive letters (cygwin fileutils understands them), so leave them,
  3988. + # especially as we might pass files found there to a mingw objdump,
  3989. + # which wouldn't understand a cygwinified path. Ahh.
  3990. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3991. + else
  3992. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3993. + fi
  3994. + ;;
  3995. + pw32*)
  3996. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  3997. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3998. + ;;
  3999. esac
  4000. - else :
  4001. - # compilation failed
  4002. - $3
  4003. - fi
  4004. -fi
  4005. -rm -fr conftest*
  4006. -])# _LT_TRY_DLOPEN_SELF
  4007. -
  4008. -
  4009. -# LT_SYS_DLOPEN_SELF
  4010. -# ------------------
  4011. -AC_DEFUN([LT_SYS_DLOPEN_SELF],
  4012. -[m4_require([_LT_HEADER_DLFCN])dnl
  4013. -if test "x$enable_dlopen" != xyes; then
  4014. - enable_dlopen=unknown
  4015. - enable_dlopen_self=unknown
  4016. - enable_dlopen_self_static=unknown
  4017. -else
  4018. - lt_cv_dlopen=no
  4019. - lt_cv_dlopen_libs=
  4020. -
  4021. - case $host_os in
  4022. - beos*)
  4023. - lt_cv_dlopen="load_add_on"
  4024. - lt_cv_dlopen_libs=
  4025. - lt_cv_dlopen_self=yes
  4026. - ;;
  4027. -
  4028. - mingw* | pw32*)
  4029. - lt_cv_dlopen="LoadLibrary"
  4030. - lt_cv_dlopen_libs=
  4031. - ;;
  4032. -
  4033. - cygwin*)
  4034. - lt_cv_dlopen="dlopen"
  4035. - lt_cv_dlopen_libs=
  4036. - ;;
  4037. -
  4038. - darwin*)
  4039. - # if libdl is installed we need to link against it
  4040. - AC_CHECK_LIB([dl], [dlopen],
  4041. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  4042. - lt_cv_dlopen="dyld"
  4043. - lt_cv_dlopen_libs=
  4044. - lt_cv_dlopen_self=yes
  4045. - ])
  4046. ;;
  4047. *)
  4048. - AC_CHECK_FUNC([shl_load],
  4049. - [lt_cv_dlopen="shl_load"],
  4050. - [AC_CHECK_LIB([dld], [shl_load],
  4051. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  4052. - [AC_CHECK_FUNC([dlopen],
  4053. - [lt_cv_dlopen="dlopen"],
  4054. - [AC_CHECK_LIB([dl], [dlopen],
  4055. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  4056. - [AC_CHECK_LIB([svld], [dlopen],
  4057. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  4058. - [AC_CHECK_LIB([dld], [dld_link],
  4059. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  4060. - ])
  4061. - ])
  4062. - ])
  4063. - ])
  4064. - ])
  4065. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4066. ;;
  4067. esac
  4068. + dynamic_linker='Win32 ld.exe'
  4069. + # FIXME: first we should search . and the directory the executable is in
  4070. + shlibpath_var=PATH
  4071. + ;;
  4072. - if test "x$lt_cv_dlopen" != xno; then
  4073. - enable_dlopen=yes
  4074. +darwin* | rhapsody*)
  4075. + dynamic_linker="$host_os dyld"
  4076. + version_type=darwin
  4077. + need_lib_prefix=no
  4078. + need_version=no
  4079. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  4080. + soname_spec='${libname}${release}${major}$shared_ext'
  4081. + shlibpath_overrides_runpath=yes
  4082. + shlibpath_var=DYLD_LIBRARY_PATH
  4083. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4084. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  4085. + if test "$GCC" = yes; then
  4086. + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  4087. else
  4088. - enable_dlopen=no
  4089. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  4090. fi
  4091. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4092. + ;;
  4093. - case $lt_cv_dlopen in
  4094. - dlopen)
  4095. - save_CPPFLAGS="$CPPFLAGS"
  4096. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  4097. -
  4098. - save_LDFLAGS="$LDFLAGS"
  4099. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  4100. -
  4101. - save_LIBS="$LIBS"
  4102. - LIBS="$lt_cv_dlopen_libs $LIBS"
  4103. -
  4104. - AC_CACHE_CHECK([whether a program can dlopen itself],
  4105. - lt_cv_dlopen_self, [dnl
  4106. - _LT_TRY_DLOPEN_SELF(
  4107. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  4108. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  4109. - ])
  4110. +dgux*)
  4111. + version_type=linux
  4112. + need_lib_prefix=no
  4113. + need_version=no
  4114. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4115. + soname_spec='${libname}${release}${shared_ext}$major'
  4116. + shlibpath_var=LD_LIBRARY_PATH
  4117. + ;;
  4118. - if test "x$lt_cv_dlopen_self" = xyes; then
  4119. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  4120. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  4121. - lt_cv_dlopen_self_static, [dnl
  4122. - _LT_TRY_DLOPEN_SELF(
  4123. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  4124. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  4125. - ])
  4126. - fi
  4127. +freebsd1*)
  4128. + dynamic_linker=no
  4129. + ;;
  4130. - CPPFLAGS="$save_CPPFLAGS"
  4131. - LDFLAGS="$save_LDFLAGS"
  4132. - LIBS="$save_LIBS"
  4133. - ;;
  4134. - esac
  4135. +kfreebsd*-gnu)
  4136. + version_type=linux
  4137. + need_lib_prefix=no
  4138. + need_version=no
  4139. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4140. + soname_spec='${libname}${release}${shared_ext}$major'
  4141. + shlibpath_var=LD_LIBRARY_PATH
  4142. + shlibpath_overrides_runpath=no
  4143. + hardcode_into_libs=yes
  4144. + dynamic_linker='GNU ld.so'
  4145. + ;;
  4146. - case $lt_cv_dlopen_self in
  4147. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  4148. - *) enable_dlopen_self=unknown ;;
  4149. +freebsd* | dragonfly*)
  4150. + # DragonFly does not have aout. When/if they implement a new
  4151. + # versioning mechanism, adjust this.
  4152. + if test -x /usr/bin/objformat; then
  4153. + objformat=`/usr/bin/objformat`
  4154. + else
  4155. + case $host_os in
  4156. + freebsd[[123]]*) objformat=aout ;;
  4157. + *) objformat=elf ;;
  4158. + esac
  4159. + fi
  4160. + version_type=freebsd-$objformat
  4161. + case $version_type in
  4162. + freebsd-elf*)
  4163. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4164. + need_version=no
  4165. + need_lib_prefix=no
  4166. + ;;
  4167. + freebsd-*)
  4168. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4169. + need_version=yes
  4170. + ;;
  4171. esac
  4172. -
  4173. - case $lt_cv_dlopen_self_static in
  4174. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  4175. - *) enable_dlopen_self_static=unknown ;;
  4176. + shlibpath_var=LD_LIBRARY_PATH
  4177. + case $host_os in
  4178. + freebsd2*)
  4179. + shlibpath_overrides_runpath=yes
  4180. + ;;
  4181. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4182. + shlibpath_overrides_runpath=yes
  4183. + hardcode_into_libs=yes
  4184. + ;;
  4185. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4186. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4187. + shlibpath_overrides_runpath=no
  4188. + hardcode_into_libs=yes
  4189. + ;;
  4190. + freebsd*) # from 4.6 on
  4191. + shlibpath_overrides_runpath=yes
  4192. + hardcode_into_libs=yes
  4193. + ;;
  4194. esac
  4195. -fi
  4196. -_LT_DECL([dlopen_support], [enable_dlopen], [0],
  4197. - [Whether dlopen is supported])
  4198. -_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  4199. - [Whether dlopen of programs is supported])
  4200. -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  4201. - [Whether dlopen of statically linked programs is supported])
  4202. -])# LT_SYS_DLOPEN_SELF
  4203. -
  4204. -# Old name:
  4205. -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  4206. -dnl aclocal-1.4 backwards compatibility:
  4207. -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  4208. -
  4209. + ;;
  4210. -# _LT_COMPILER_C_O([TAGNAME])
  4211. -# ---------------------------
  4212. -# Check to see if options -c and -o are simultaneously supported by compiler.
  4213. -# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  4214. -m4_defun([_LT_COMPILER_C_O],
  4215. -[AC_REQUIRE([AC_OBJEXT])dnl
  4216. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4217. -m4_require([_LT_TAG_COMPILER])dnl
  4218. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  4219. - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  4220. - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  4221. - $RM -r conftest 2>/dev/null
  4222. - mkdir conftest
  4223. - cd conftest
  4224. - mkdir out
  4225. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  4226. -
  4227. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  4228. - # Insert the option either (1) after the last *FLAGS variable, or
  4229. - # (2) before a word containing "conftest.", or (3) at the end.
  4230. - # Note that $ac_compile itself does not contain backslashes and begins
  4231. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  4232. - lt_compile=`echo "$ac_compile" | $SED \
  4233. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  4234. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  4235. - -e 's:$: $lt_compiler_flag:'`
  4236. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  4237. - (eval "$lt_compile" 2>out/conftest.err)
  4238. - ac_status=$?
  4239. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  4240. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  4241. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  4242. - then
  4243. - # The compiler can only warn and ignore the option if not recognized
  4244. - # So say no if there are warnings
  4245. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  4246. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  4247. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  4248. - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  4249. - fi
  4250. - fi
  4251. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  4252. - $RM conftest*
  4253. - # SGI C++ compiler will create directory out/ii_files/ for
  4254. - # template instantiation
  4255. - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  4256. - $RM out/* && rmdir out
  4257. - cd ..
  4258. - $RM -r conftest
  4259. - $RM conftest*
  4260. -])
  4261. -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  4262. - [Does compiler simultaneously support -c and -o options?])
  4263. -])# _LT_COMPILER_C_O
  4264. -
  4265. -
  4266. -# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  4267. -# ----------------------------------
  4268. -# Check to see if we can do hard links to lock some files if needed
  4269. -m4_defun([_LT_COMPILER_FILE_LOCKS],
  4270. -[m4_require([_LT_ENABLE_LOCK])dnl
  4271. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4272. -_LT_COMPILER_C_O([$1])
  4273. -
  4274. -hard_links="nottested"
  4275. -if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  4276. - # do not overwrite the value of need_locks provided by the user
  4277. - AC_MSG_CHECKING([if we can lock with hard links])
  4278. - hard_links=yes
  4279. - $RM conftest*
  4280. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4281. - touch conftest.a
  4282. - ln conftest.a conftest.b 2>&5 || hard_links=no
  4283. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  4284. - AC_MSG_RESULT([$hard_links])
  4285. - if test "$hard_links" = no; then
  4286. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  4287. - need_locks=warn
  4288. - fi
  4289. -else
  4290. - need_locks=no
  4291. -fi
  4292. -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  4293. -])# _LT_COMPILER_FILE_LOCKS
  4294. -
  4295. -
  4296. -# _LT_CHECK_OBJDIR
  4297. -# ----------------
  4298. -m4_defun([_LT_CHECK_OBJDIR],
  4299. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  4300. -[rm -f .libs 2>/dev/null
  4301. -mkdir .libs 2>/dev/null
  4302. -if test -d .libs; then
  4303. - lt_cv_objdir=.libs
  4304. -else
  4305. - # MS-DOS does not allow filenames that begin with a dot.
  4306. - lt_cv_objdir=_libs
  4307. -fi
  4308. -rmdir .libs 2>/dev/null])
  4309. -objdir=$lt_cv_objdir
  4310. -_LT_DECL([], [objdir], [0],
  4311. - [The name of the directory that contains temporary libtool files])dnl
  4312. -m4_pattern_allow([LT_OBJDIR])dnl
  4313. -AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  4314. - [Define to the sub-directory in which libtool stores uninstalled libraries.])
  4315. -])# _LT_CHECK_OBJDIR
  4316. -
  4317. -
  4318. -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  4319. -# --------------------------------------
  4320. -# Check hardcoding attributes.
  4321. -m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  4322. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  4323. -_LT_TAGVAR(hardcode_action, $1)=
  4324. -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  4325. - test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  4326. - test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  4327. -
  4328. - # We can hardcode non-existent directories.
  4329. - if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  4330. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  4331. - # have to relink, otherwise we might link with an installed library
  4332. - # when we should be linking with a yet-to-be-installed one
  4333. - ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  4334. - test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  4335. - # Linking always hardcodes the temporary library directory.
  4336. - _LT_TAGVAR(hardcode_action, $1)=relink
  4337. - else
  4338. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  4339. - _LT_TAGVAR(hardcode_action, $1)=immediate
  4340. - fi
  4341. -else
  4342. - # We cannot hardcode anything, or else we can only hardcode existing
  4343. - # directories.
  4344. - _LT_TAGVAR(hardcode_action, $1)=unsupported
  4345. -fi
  4346. -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  4347. -
  4348. -if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  4349. - test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  4350. - # Fast installation is not supported
  4351. - enable_fast_install=no
  4352. -elif test "$shlibpath_overrides_runpath" = yes ||
  4353. - test "$enable_shared" = no; then
  4354. - # Fast installation is not necessary
  4355. - enable_fast_install=needless
  4356. -fi
  4357. -_LT_TAGDECL([], [hardcode_action], [0],
  4358. - [How to hardcode a shared library path into an executable])
  4359. -])# _LT_LINKER_HARDCODE_LIBPATH
  4360. -
  4361. -
  4362. -# _LT_CMD_STRIPLIB
  4363. -# ----------------
  4364. -m4_defun([_LT_CMD_STRIPLIB],
  4365. -[m4_require([_LT_DECL_EGREP])
  4366. -striplib=
  4367. -old_striplib=
  4368. -AC_MSG_CHECKING([whether stripping libraries is possible])
  4369. -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  4370. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  4371. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  4372. - AC_MSG_RESULT([yes])
  4373. -else
  4374. -# FIXME - insert some real tests, host_os isn't really good enough
  4375. - case $host_os in
  4376. - darwin*)
  4377. - if test -n "$STRIP" ; then
  4378. - striplib="$STRIP -x"
  4379. - old_striplib="$STRIP -S"
  4380. - AC_MSG_RESULT([yes])
  4381. - else
  4382. - AC_MSG_RESULT([no])
  4383. - fi
  4384. - ;;
  4385. - *)
  4386. - AC_MSG_RESULT([no])
  4387. - ;;
  4388. - esac
  4389. -fi
  4390. -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  4391. -_LT_DECL([], [striplib], [1])
  4392. -])# _LT_CMD_STRIPLIB
  4393. -
  4394. -
  4395. -# _LT_SYS_DYNAMIC_LINKER([TAG])
  4396. -# -----------------------------
  4397. -# PORTME Fill in your ld.so characteristics
  4398. -m4_defun([_LT_SYS_DYNAMIC_LINKER],
  4399. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4400. -m4_require([_LT_DECL_EGREP])dnl
  4401. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4402. -m4_require([_LT_DECL_SED])dnl
  4403. -AC_MSG_CHECKING([dynamic linker characteristics])
  4404. -m4_case([$1],
  4405. - [C], [withGCC=$GCC],
  4406. - [CXX], [withGCC=$GXX],
  4407. - [F77], [withGCC=$G77],
  4408. - [FC], [withGCC=$ac_cv_fc_compiler_gnu],
  4409. - [withGCC=$GCC])
  4410. -library_names_spec=
  4411. -libname_spec='lib$name'
  4412. -soname_spec=
  4413. -shrext_cmds=".so"
  4414. -postinstall_cmds=
  4415. -postuninstall_cmds=
  4416. -finish_cmds=
  4417. -finish_eval=
  4418. -shlibpath_var=
  4419. -shlibpath_overrides_runpath=unknown
  4420. -version_type=none
  4421. -dynamic_linker="$host_os ld.so"
  4422. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  4423. -if test "$withGCC" = yes; then
  4424. - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4425. - if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
  4426. - # if the path contains ";" then we assume it to be the separator
  4427. - # otherwise default to the standard path separator (i.e. ":") - it is
  4428. - # assumed that no part of a normal pathname contains ";" but that should
  4429. - # okay in the real world where ";" in dirpaths is itself problematic.
  4430. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4431. - else
  4432. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4433. - fi
  4434. -else
  4435. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  4436. -fi
  4437. -need_lib_prefix=unknown
  4438. -hardcode_into_libs=no
  4439. -
  4440. -# when you set need_version to no, make sure it does not cause -set_version
  4441. -# flags to be left without arguments
  4442. -need_version=unknown
  4443. -
  4444. -case $host_os in
  4445. -aix3*)
  4446. +gnu*)
  4447. version_type=linux
  4448. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  4449. - shlibpath_var=LIBPATH
  4450. -
  4451. - # AIX 3 has no versioning support, so we append a major version to the name.
  4452. + need_lib_prefix=no
  4453. + need_version=no
  4454. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4455. soname_spec='${libname}${release}${shared_ext}$major'
  4456. + shlibpath_var=LD_LIBRARY_PATH
  4457. + hardcode_into_libs=yes
  4458. ;;
  4459. -aix4* | aix5*)
  4460. - version_type=linux
  4461. +hpux9* | hpux10* | hpux11*)
  4462. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4463. + # link against other versions.
  4464. + version_type=sunos
  4465. need_lib_prefix=no
  4466. need_version=no
  4467. - hardcode_into_libs=yes
  4468. - if test "$host_cpu" = ia64; then
  4469. - # AIX 5 supports IA64
  4470. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  4471. + case $host_cpu in
  4472. + ia64*)
  4473. + shrext_cmds='.so'
  4474. + hardcode_into_libs=yes
  4475. + dynamic_linker="$host_os dld.so"
  4476. shlibpath_var=LD_LIBRARY_PATH
  4477. - else
  4478. - # With GCC up to 2.95.x, collect2 would create an import file
  4479. - # for dependence libraries. The import file would start with
  4480. - # the line `#! .'. This would cause the generated library to
  4481. - # depend on `.', always an invalid library. This was fixed in
  4482. - # development snapshots of GCC prior to 3.0.
  4483. - case $host_os in
  4484. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  4485. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  4486. - echo ' yes '
  4487. - echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  4488. - :
  4489. - else
  4490. - can_build_shared=no
  4491. - fi
  4492. - ;;
  4493. - esac
  4494. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  4495. - # soname into executable. Probably we can add versioning support to
  4496. - # collect2, so additional links can be useful in future.
  4497. - if test "$aix_use_runtimelinking" = yes; then
  4498. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  4499. - # instead of lib<name>.a to let people know that these are not
  4500. - # typical AIX shared libraries.
  4501. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4502. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4503. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4504. + soname_spec='${libname}${release}${shared_ext}$major'
  4505. + if test "X$HPUX_IA64_MODE" = X32; then
  4506. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4507. else
  4508. - # We preserve .a as extension for shared libraries through AIX4.2
  4509. - # and later when we are not doing run time linking.
  4510. - library_names_spec='${libname}${release}.a $libname.a'
  4511. - soname_spec='${libname}${release}${shared_ext}$major'
  4512. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4513. fi
  4514. - shlibpath_var=LIBPATH
  4515. - fi
  4516. - ;;
  4517. -
  4518. -amigaos*)
  4519. - if test "$host_cpu" = m68k; then
  4520. - library_names_spec='$libname.ixlibrary $libname.a'
  4521. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  4522. - 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'
  4523. - else
  4524. - dynamic_linker=no
  4525. - fi
  4526. - ;;
  4527. -
  4528. -beos*)
  4529. - library_names_spec='${libname}${shared_ext}'
  4530. - dynamic_linker="$host_os ld.so"
  4531. - shlibpath_var=LIBRARY_PATH
  4532. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4533. + ;;
  4534. + hppa*64*)
  4535. + shrext_cmds='.sl'
  4536. + hardcode_into_libs=yes
  4537. + dynamic_linker="$host_os dld.sl"
  4538. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4539. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4540. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4541. + soname_spec='${libname}${release}${shared_ext}$major'
  4542. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4543. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4544. + ;;
  4545. + *)
  4546. + shrext_cmds='.sl'
  4547. + dynamic_linker="$host_os dld.sl"
  4548. + shlibpath_var=SHLIB_PATH
  4549. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4550. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4551. + soname_spec='${libname}${release}${shared_ext}$major'
  4552. + ;;
  4553. + esac
  4554. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4555. + postinstall_cmds='chmod 555 $lib'
  4556. ;;
  4557. -bsdi[[45]]*)
  4558. +interix3*)
  4559. version_type=linux
  4560. + need_lib_prefix=no
  4561. need_version=no
  4562. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4563. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4564. soname_spec='${libname}${release}${shared_ext}$major'
  4565. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  4566. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4567. shlibpath_var=LD_LIBRARY_PATH
  4568. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  4569. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  4570. - # the default ld.so.conf also contains /usr/contrib/lib and
  4571. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  4572. - # libtool to hard-code these into programs
  4573. - ;;
  4574. -
  4575. -cygwin* | mingw* | pw32*)
  4576. - version_type=windows
  4577. - shrext_cmds=".dll"
  4578. - need_version=no
  4579. - need_lib_prefix=no
  4580. -
  4581. - case $withGCC,$host_os in
  4582. - yes,cygwin* | yes,mingw* | yes,pw32*)
  4583. - library_names_spec='$libname.dll.a'
  4584. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4585. - postinstall_cmds='base_file=`basename \${file}`~
  4586. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4587. - dldir=$destdir/`dirname \$dlpath`~
  4588. - test -d \$dldir || mkdir -p \$dldir~
  4589. - $install_prog $dir/$dlname \$dldir/$dlname~
  4590. - chmod a+x \$dldir/$dlname~
  4591. - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  4592. - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  4593. - fi'
  4594. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4595. - dlpath=$dir/\$dldll~
  4596. - $RM \$dlpath'
  4597. - shlibpath_overrides_runpath=yes
  4598. -
  4599. - case $host_os in
  4600. - cygwin*)
  4601. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4602. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4603. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4604. - ;;
  4605. - mingw*)
  4606. - # MinGW DLLs use traditional 'lib' prefix
  4607. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4608. - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4609. - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  4610. - # It is most probably a Windows format PATH printed by
  4611. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4612. - # path with ; separators, and with drive letters. We can handle the
  4613. - # drive letters (cygwin fileutils understands them), so leave them,
  4614. - # especially as we might pass files found there to a mingw objdump,
  4615. - # which wouldn't understand a cygwinified path. Ahh.
  4616. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4617. - else
  4618. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4619. - fi
  4620. - ;;
  4621. - pw32*)
  4622. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  4623. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4624. - ;;
  4625. - esac
  4626. - ;;
  4627. -
  4628. - *)
  4629. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4630. - ;;
  4631. - esac
  4632. - dynamic_linker='Win32 ld.exe'
  4633. - # FIXME: first we should search . and the directory the executable is in
  4634. - shlibpath_var=PATH
  4635. - ;;
  4636. -
  4637. -darwin* | rhapsody*)
  4638. - dynamic_linker="$host_os dyld"
  4639. - version_type=darwin
  4640. - need_lib_prefix=no
  4641. - need_version=no
  4642. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4643. - soname_spec='${libname}${release}${major}$shared_ext'
  4644. - shlibpath_overrides_runpath=yes
  4645. - shlibpath_var=DYLD_LIBRARY_PATH
  4646. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4647. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  4648. - if test "$withGCC" = yes; then
  4649. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | $GREP "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  4650. - else
  4651. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  4652. - fi
  4653. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4654. - ;;
  4655. -
  4656. -dgux*)
  4657. - version_type=linux
  4658. - need_lib_prefix=no
  4659. - need_version=no
  4660. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4661. - soname_spec='${libname}${release}${shared_ext}$major'
  4662. - shlibpath_var=LD_LIBRARY_PATH
  4663. - ;;
  4664. -
  4665. -freebsd1*)
  4666. - dynamic_linker=no
  4667. - ;;
  4668. -
  4669. -kfreebsd*-gnu)
  4670. - version_type=linux
  4671. - need_lib_prefix=no
  4672. - need_version=no
  4673. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4674. - soname_spec='${libname}${release}${shared_ext}$major'
  4675. - shlibpath_var=LD_LIBRARY_PATH
  4676. - shlibpath_overrides_runpath=no
  4677. - hardcode_into_libs=yes
  4678. - dynamic_linker='GNU ld.so'
  4679. - ;;
  4680. -
  4681. -freebsd* | dragonfly*)
  4682. - # DragonFly does not have aout. When/if they implement a new
  4683. - # versioning mechanism, adjust this.
  4684. - if test -x /usr/bin/objformat; then
  4685. - objformat=`/usr/bin/objformat`
  4686. - else
  4687. - case $host_os in
  4688. - freebsd[[123]]*) objformat=aout ;;
  4689. - *) objformat=elf ;;
  4690. - esac
  4691. - fi
  4692. - version_type=freebsd-$objformat
  4693. - case $version_type in
  4694. - freebsd-elf*)
  4695. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4696. - need_version=no
  4697. - need_lib_prefix=no
  4698. - ;;
  4699. - freebsd-*)
  4700. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4701. - need_version=yes
  4702. - ;;
  4703. - esac
  4704. - shlibpath_var=LD_LIBRARY_PATH
  4705. - case $host_os in
  4706. - freebsd2*)
  4707. - shlibpath_overrides_runpath=yes
  4708. - ;;
  4709. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4710. - shlibpath_overrides_runpath=yes
  4711. - hardcode_into_libs=yes
  4712. - ;;
  4713. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4714. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4715. - shlibpath_overrides_runpath=no
  4716. - hardcode_into_libs=yes
  4717. - ;;
  4718. - freebsd*) # from 4.6 on
  4719. - shlibpath_overrides_runpath=yes
  4720. - hardcode_into_libs=yes
  4721. - ;;
  4722. - esac
  4723. - ;;
  4724. -
  4725. -gnu*)
  4726. - version_type=linux
  4727. - need_lib_prefix=no
  4728. - need_version=no
  4729. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4730. - soname_spec='${libname}${release}${shared_ext}$major'
  4731. - shlibpath_var=LD_LIBRARY_PATH
  4732. - hardcode_into_libs=yes
  4733. - ;;
  4734. -
  4735. -hpux9* | hpux10* | hpux11*)
  4736. - # Give a soname corresponding to the major version so that dld.sl refuses to
  4737. - # link against other versions.
  4738. - version_type=sunos
  4739. - need_lib_prefix=no
  4740. - need_version=no
  4741. - case $host_cpu in
  4742. - ia64*)
  4743. - shrext_cmds='.so'
  4744. - hardcode_into_libs=yes
  4745. - dynamic_linker="$host_os dld.so"
  4746. - shlibpath_var=LD_LIBRARY_PATH
  4747. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4748. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4749. - soname_spec='${libname}${release}${shared_ext}$major'
  4750. - if test "X$HPUX_IA64_MODE" = X32; then
  4751. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4752. - else
  4753. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4754. - fi
  4755. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4756. - ;;
  4757. - hppa*64*)
  4758. - shrext_cmds='.sl'
  4759. - hardcode_into_libs=yes
  4760. - dynamic_linker="$host_os dld.sl"
  4761. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4762. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4763. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4764. - soname_spec='${libname}${release}${shared_ext}$major'
  4765. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4766. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4767. - ;;
  4768. - *)
  4769. - shrext_cmds='.sl'
  4770. - dynamic_linker="$host_os dld.sl"
  4771. - shlibpath_var=SHLIB_PATH
  4772. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4773. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4774. - soname_spec='${libname}${release}${shared_ext}$major'
  4775. - ;;
  4776. - esac
  4777. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4778. - postinstall_cmds='chmod 555 $lib'
  4779. - ;;
  4780. -
  4781. -interix3*)
  4782. - version_type=linux
  4783. - need_lib_prefix=no
  4784. - need_version=no
  4785. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4786. - soname_spec='${libname}${release}${shared_ext}$major'
  4787. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4788. - shlibpath_var=LD_LIBRARY_PATH
  4789. - shlibpath_overrides_runpath=no
  4790. - hardcode_into_libs=yes
  4791. + shlibpath_overrides_runpath=no
  4792. + hardcode_into_libs=yes
  4793. ;;
  4794. irix5* | irix6* | nonstopux*)
  4795. @@ -3348,18 +1598,6 @@
  4796. dynamic_linker='GNU/Linux ld.so'
  4797. ;;
  4798. -netbsdelf*-gnu)
  4799. - version_type=linux
  4800. - need_lib_prefix=no
  4801. - need_version=no
  4802. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4803. - soname_spec='${libname}${release}${shared_ext}$major'
  4804. - shlibpath_var=LD_LIBRARY_PATH
  4805. - shlibpath_overrides_runpath=no
  4806. - hardcode_into_libs=yes
  4807. - dynamic_linker='NetBSD ld.elf_so'
  4808. - ;;
  4809. -
  4810. knetbsd*-gnu)
  4811. version_type=linux
  4812. need_lib_prefix=no
  4813. @@ -3376,7 +1614,7 @@
  4814. version_type=sunos
  4815. need_lib_prefix=no
  4816. need_version=no
  4817. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4818. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4820. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4821. dynamic_linker='NetBSD (a.out) ld.so'
  4822. @@ -3397,16 +1635,14 @@
  4823. shlibpath_overrides_runpath=yes
  4824. ;;
  4825. -*nto* | *qnx*)
  4826. - version_type=qnx
  4827. +nto-qnx*)
  4828. + version_type=linux
  4829. need_lib_prefix=no
  4830. need_version=no
  4831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4832. soname_spec='${libname}${release}${shared_ext}$major'
  4833. shlibpath_var=LD_LIBRARY_PATH
  4834. - shlibpath_overrides_runpath=no
  4835. - hardcode_into_libs=yes
  4836. - dynamic_linker='ldqnx.so'
  4837. + shlibpath_overrides_runpath=yes
  4838. ;;
  4839. openbsd*)
  4840. @@ -3415,13 +1651,13 @@
  4841. need_lib_prefix=no
  4842. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4843. case $host_os in
  4844. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4845. - *) need_version=no ;;
  4846. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4847. + *) need_version=no ;;
  4848. esac
  4849. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4850. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4851. shlibpath_var=LD_LIBRARY_PATH
  4852. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4853. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4854. case $host_os in
  4855. openbsd2.[[89]] | openbsd2.[[89]].*)
  4856. shlibpath_overrides_runpath=no
  4857. @@ -3489,6 +1725,7 @@
  4858. sni)
  4859. shlibpath_overrides_runpath=no
  4860. need_lib_prefix=no
  4861. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  4862. runpath_var=LD_RUN_PATH
  4863. ;;
  4864. siemens)
  4865. @@ -3519,12 +1756,13 @@
  4866. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4867. soname_spec='${libname}${release}${shared_ext}$major'
  4868. shlibpath_var=LD_LIBRARY_PATH
  4869. - shlibpath_overrides_runpath=yes
  4870. hardcode_into_libs=yes
  4871. if test "$with_gnu_ld" = yes; then
  4872. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4873. + shlibpath_overrides_runpath=no
  4874. else
  4875. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4876. + shlibpath_overrides_runpath=yes
  4877. case $host_os in
  4878. sco3.2v5*)
  4879. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4880. @@ -3534,17 +1772,6 @@
  4881. sys_lib_dlsearch_path_spec='/usr/lib'
  4882. ;;
  4883. -tpf*)
  4884. - # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4885. - version_type=linux
  4886. - need_lib_prefix=no
  4887. - need_version=no
  4888. - library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4889. - shlibpath_var=LD_LIBRARY_PATH
  4890. - shlibpath_overrides_runpath=no
  4891. - hardcode_into_libs=yes
  4892. - ;;
  4893. -
  4894. uts4*)
  4895. version_type=linux
  4896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4897. @@ -3563,78 +1790,307 @@
  4898. if test "$GCC" = yes; then
  4899. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4900. fi
  4901. +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  4902. -_LT_DECL([], [variables_saved_for_relink], [1],
  4903. - [Variables whose values should be saved in libtool wrapper scripts and
  4904. - restored at link time])
  4905. -_LT_DECL([], [need_lib_prefix], [0],
  4906. - [Do we need the "lib" prefix for modules?])
  4907. -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4908. -_LT_DECL([], [version_type], [0], [Library versioning type])
  4909. -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4910. -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4911. -_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4912. - [Is shlibpath searched before the hard-coded library search path?])
  4913. -_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4914. -_LT_DECL([], [library_names_spec], [1],
  4915. - [[List of archive names. First name is the real one, the rest are links.
  4916. - The last name is the one that the linker finds with -lNAME]])
  4917. -_LT_DECL([], [soname_spec], [1],
  4918. - [[The coded name of the library, if different from the real name]])
  4919. -_LT_DECL([], [postinstall_cmds], [2],
  4920. - [Command to use after installation of a shared archive])
  4921. -_LT_DECL([], [postuninstall_cmds], [2],
  4922. - [Command to use after uninstallation of a shared archive])
  4923. -_LT_DECL([], [finish_cmds], [2],
  4924. - [Commands used to finish a libtool library installation in a directory])
  4925. -_LT_DECL([], [finish_eval], [1],
  4926. - [[As "finish_cmds", except a single script fragment to be evaled but
  4927. - not shown]])
  4928. -_LT_DECL([], [hardcode_into_libs], [0],
  4929. - [Whether we should hardcode library paths into libraries])
  4930. -_LT_DECL([], [sys_lib_search_path_spec], [2],
  4931. - [Compile-time system search path for libraries])
  4932. -_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4933. - [Run-time system search path for libraries])
  4934. -])# _LT_SYS_DYNAMIC_LINKER
  4935. +# _LT_AC_TAGCONFIG
  4936. +# ----------------
  4937. +AC_DEFUN([_LT_AC_TAGCONFIG],
  4938. +[AC_ARG_WITH([tags],
  4939. + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  4940. + [include additional configurations @<:@automatic@:>@])],
  4941. + [tagnames="$withval"])
  4942. +
  4943. +if test -f "$ltmain" && test -n "$tagnames"; then
  4944. + if test ! -f "${ofile}"; then
  4945. + AC_MSG_WARN([output file `$ofile' does not exist])
  4946. + fi
  4947. -# _LT_PATH_TOOL_PREFIX(TOOL)
  4948. -# --------------------------
  4949. -# find a file program which can recognise shared library
  4950. -AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4951. -[m4_require([_LT_DECL_EGREP])dnl
  4952. -AC_MSG_CHECKING([for $1])
  4953. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4954. -[case $MAGIC_CMD in
  4955. -[[\\/*] | ?:[\\/]*])
  4956. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4957. - ;;
  4958. -*)
  4959. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  4960. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4961. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  4962. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  4963. -dnl not every word. This closes a longstanding sh security hole.
  4964. - ac_dummy="m4_if([$2], , $PATH, [$2])"
  4965. - for ac_dir in $ac_dummy; do
  4966. + if test -z "$LTCC"; then
  4967. + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  4968. + if test -z "$LTCC"; then
  4969. + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  4970. + else
  4971. + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  4972. + fi
  4973. + fi
  4974. + if test -z "$LTCFLAGS"; then
  4975. + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  4976. + fi
  4977. +
  4978. + # Extract list of available tagged configurations in $ofile.
  4979. + # Note that this assumes the entire list is on one line.
  4980. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  4981. +
  4982. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4983. + for tagname in $tagnames; do
  4984. IFS="$lt_save_ifs"
  4985. - test -z "$ac_dir" && ac_dir=.
  4986. - if test -f $ac_dir/$1; then
  4987. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4988. - if test -n "$file_magic_test_file"; then
  4989. - case $deplibs_check_method in
  4990. - "file_magic "*)
  4991. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4992. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4993. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4994. - $EGREP "$file_magic_regex" > /dev/null; then
  4995. - :
  4996. - else
  4997. - cat <<_LT_EOF 1>&2
  4998. + # Check whether tagname contains only valid characters
  4999. + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  5000. + "") ;;
  5001. + *) AC_MSG_ERROR([invalid tag name: $tagname])
  5002. + ;;
  5003. + esac
  5004. -*** Warning: the command libtool uses to detect shared libraries,
  5005. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  5006. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  5007. + then
  5008. + AC_MSG_ERROR([tag name \"$tagname\" already exists])
  5009. + fi
  5010. +
  5011. + # Update the list of available tags.
  5012. + if test -n "$tagname"; then
  5013. + echo appending configuration tag \"$tagname\" to $ofile
  5014. +
  5015. + case $tagname in
  5016. + CXX)
  5017. + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5018. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5019. + (test "X$CXX" != "Xg++"))) ; then
  5020. + AC_LIBTOOL_LANG_CXX_CONFIG
  5021. + else
  5022. + tagname=""
  5023. + fi
  5024. + ;;
  5025. +
  5026. + F77)
  5027. + if test -n "$F77" && test "X$F77" != "Xno"; then
  5028. + AC_LIBTOOL_LANG_F77_CONFIG
  5029. + else
  5030. + tagname=""
  5031. + fi
  5032. + ;;
  5033. +
  5034. + GCJ)
  5035. + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  5036. + AC_LIBTOOL_LANG_GCJ_CONFIG
  5037. + else
  5038. + tagname=""
  5039. + fi
  5040. + ;;
  5041. +
  5042. + RC)
  5043. + AC_LIBTOOL_LANG_RC_CONFIG
  5044. + ;;
  5045. +
  5046. + *)
  5047. + AC_MSG_ERROR([Unsupported tag name: $tagname])
  5048. + ;;
  5049. + esac
  5050. +
  5051. + # Append the new tag name to the list of available tags.
  5052. + if test -n "$tagname" ; then
  5053. + available_tags="$available_tags $tagname"
  5054. + fi
  5055. + fi
  5056. + done
  5057. + IFS="$lt_save_ifs"
  5058. +
  5059. + # Now substitute the updated list of available tags.
  5060. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  5061. + mv "${ofile}T" "$ofile"
  5062. + chmod +x "$ofile"
  5063. + else
  5064. + rm -f "${ofile}T"
  5065. + AC_MSG_ERROR([unable to update list of available tagged configurations.])
  5066. + fi
  5067. +fi
  5068. +])# _LT_AC_TAGCONFIG
  5069. +
  5070. +
  5071. +# AC_LIBTOOL_DLOPEN
  5072. +# -----------------
  5073. +# enable checks for dlopen support
  5074. +AC_DEFUN([AC_LIBTOOL_DLOPEN],
  5075. + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  5076. +])# AC_LIBTOOL_DLOPEN
  5077. +
  5078. +
  5079. +# AC_LIBTOOL_WIN32_DLL
  5080. +# --------------------
  5081. +# declare package support for building win32 DLLs
  5082. +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  5083. +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  5084. +])# AC_LIBTOOL_WIN32_DLL
  5085. +
  5086. +
  5087. +# AC_ENABLE_SHARED([DEFAULT])
  5088. +# ---------------------------
  5089. +# implement the --enable-shared flag
  5090. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  5091. +AC_DEFUN([AC_ENABLE_SHARED],
  5092. +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  5093. +AC_ARG_ENABLE([shared],
  5094. + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  5095. + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  5096. + [p=${PACKAGE-default}
  5097. + case $enableval in
  5098. + yes) enable_shared=yes ;;
  5099. + no) enable_shared=no ;;
  5100. + *)
  5101. + enable_shared=no
  5102. + # Look at the argument we got. We use all the common list separators.
  5103. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5104. + for pkg in $enableval; do
  5105. + IFS="$lt_save_ifs"
  5106. + if test "X$pkg" = "X$p"; then
  5107. + enable_shared=yes
  5108. + fi
  5109. + done
  5110. + IFS="$lt_save_ifs"
  5111. + ;;
  5112. + esac],
  5113. + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  5114. +])# AC_ENABLE_SHARED
  5115. +
  5116. +
  5117. +# AC_DISABLE_SHARED
  5118. +# -----------------
  5119. +# set the default shared flag to --disable-shared
  5120. +AC_DEFUN([AC_DISABLE_SHARED],
  5121. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  5122. +AC_ENABLE_SHARED(no)
  5123. +])# AC_DISABLE_SHARED
  5124. +
  5125. +
  5126. +# AC_ENABLE_STATIC([DEFAULT])
  5127. +# ---------------------------
  5128. +# implement the --enable-static flag
  5129. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  5130. +AC_DEFUN([AC_ENABLE_STATIC],
  5131. +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  5132. +AC_ARG_ENABLE([static],
  5133. + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  5134. + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  5135. + [p=${PACKAGE-default}
  5136. + case $enableval in
  5137. + yes) enable_static=yes ;;
  5138. + no) enable_static=no ;;
  5139. + *)
  5140. + enable_static=no
  5141. + # Look at the argument we got. We use all the common list separators.
  5142. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5143. + for pkg in $enableval; do
  5144. + IFS="$lt_save_ifs"
  5145. + if test "X$pkg" = "X$p"; then
  5146. + enable_static=yes
  5147. + fi
  5148. + done
  5149. + IFS="$lt_save_ifs"
  5150. + ;;
  5151. + esac],
  5152. + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  5153. +])# AC_ENABLE_STATIC
  5154. +
  5155. +
  5156. +# AC_DISABLE_STATIC
  5157. +# -----------------
  5158. +# set the default static flag to --disable-static
  5159. +AC_DEFUN([AC_DISABLE_STATIC],
  5160. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  5161. +AC_ENABLE_STATIC(no)
  5162. +])# AC_DISABLE_STATIC
  5163. +
  5164. +
  5165. +# AC_ENABLE_FAST_INSTALL([DEFAULT])
  5166. +# ---------------------------------
  5167. +# implement the --enable-fast-install flag
  5168. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  5169. +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  5170. +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  5171. +AC_ARG_ENABLE([fast-install],
  5172. + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  5173. + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  5174. + [p=${PACKAGE-default}
  5175. + case $enableval in
  5176. + yes) enable_fast_install=yes ;;
  5177. + no) enable_fast_install=no ;;
  5178. + *)
  5179. + enable_fast_install=no
  5180. + # Look at the argument we got. We use all the common list separators.
  5181. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5182. + for pkg in $enableval; do
  5183. + IFS="$lt_save_ifs"
  5184. + if test "X$pkg" = "X$p"; then
  5185. + enable_fast_install=yes
  5186. + fi
  5187. + done
  5188. + IFS="$lt_save_ifs"
  5189. + ;;
  5190. + esac],
  5191. + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  5192. +])# AC_ENABLE_FAST_INSTALL
  5193. +
  5194. +
  5195. +# AC_DISABLE_FAST_INSTALL
  5196. +# -----------------------
  5197. +# set the default to --disable-fast-install
  5198. +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  5199. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  5200. +AC_ENABLE_FAST_INSTALL(no)
  5201. +])# AC_DISABLE_FAST_INSTALL
  5202. +
  5203. +
  5204. +# AC_LIBTOOL_PICMODE([MODE])
  5205. +# --------------------------
  5206. +# implement the --with-pic flag
  5207. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  5208. +AC_DEFUN([AC_LIBTOOL_PICMODE],
  5209. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  5210. +pic_mode=ifelse($#,1,$1,default)
  5211. +])# AC_LIBTOOL_PICMODE
  5212. +
  5213. +
  5214. +# AC_PROG_EGREP
  5215. +# -------------
  5216. +# This is predefined starting with Autoconf 2.54, so this conditional
  5217. +# definition can be removed once we require Autoconf 2.54 or later.
  5218. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  5219. +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  5220. + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  5221. + then ac_cv_prog_egrep='grep -E'
  5222. + else ac_cv_prog_egrep='egrep'
  5223. + fi])
  5224. + EGREP=$ac_cv_prog_egrep
  5225. + AC_SUBST([EGREP])
  5226. +])])
  5227. +
  5228. +
  5229. +# AC_PATH_TOOL_PREFIX
  5230. +# -------------------
  5231. +# find a file program which can recognise shared library
  5232. +AC_DEFUN([AC_PATH_TOOL_PREFIX],
  5233. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  5234. +AC_MSG_CHECKING([for $1])
  5235. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  5236. +[case $MAGIC_CMD in
  5237. +[[\\/*] | ?:[\\/]*])
  5238. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5239. + ;;
  5240. +*)
  5241. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  5242. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5243. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  5244. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  5245. +dnl not every word. This closes a longstanding sh security hole.
  5246. + ac_dummy="ifelse([$2], , $PATH, [$2])"
  5247. + for ac_dir in $ac_dummy; do
  5248. + IFS="$lt_save_ifs"
  5249. + test -z "$ac_dir" && ac_dir=.
  5250. + if test -f $ac_dir/$1; then
  5251. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  5252. + if test -n "$file_magic_test_file"; then
  5253. + case $deplibs_check_method in
  5254. + "file_magic "*)
  5255. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5256. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5257. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5258. + $EGREP "$file_magic_regex" > /dev/null; then
  5259. + :
  5260. + else
  5261. + cat <<EOF 1>&2
  5262. +
  5263. +*** Warning: the command libtool uses to detect shared libraries,
  5264. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  5265. *** The result is that libtool may fail to recognize shared libraries
  5266. *** as such. This will affect the creation of libtool libraries that
  5267. *** depend on shared libraries, but programs linked with such libtool
  5268. @@ -3642,7 +2098,7 @@
  5269. *** may want to report the problem to your system manager and/or to
  5270. *** bug-libtool@gnu.org
  5271. -_LT_EOF
  5272. +EOF
  5273. fi ;;
  5274. esac
  5275. fi
  5276. @@ -3659,47 +2115,37 @@
  5277. else
  5278. AC_MSG_RESULT(no)
  5279. fi
  5280. -_LT_DECL([], [MAGIC_CMD], [0],
  5281. - [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  5282. -])# _LT_PATH_TOOL_PREFIX
  5283. -
  5284. -# Old name:
  5285. -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  5286. -dnl aclocal-1.4 backwards compatibility:
  5287. -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  5288. +])# AC_PATH_TOOL_PREFIX
  5289. -# _LT_PATH_MAGIC
  5290. -# --------------
  5291. +# AC_PATH_MAGIC
  5292. +# -------------
  5293. # find a file program which can recognise a shared library
  5294. -m4_defun([_LT_PATH_MAGIC],
  5295. -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  5296. +AC_DEFUN([AC_PATH_MAGIC],
  5297. +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  5298. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5299. if test -n "$ac_tool_prefix"; then
  5300. - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5301. + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5302. else
  5303. MAGIC_CMD=:
  5304. fi
  5305. fi
  5306. -])# _LT_PATH_MAGIC
  5307. +])# AC_PATH_MAGIC
  5308. -# LT_PATH_LD
  5309. +# AC_PROG_LD
  5310. # ----------
  5311. # find the pathname to the GNU or non-GNU linker
  5312. -AC_DEFUN([LT_PATH_LD],
  5313. -[AC_REQUIRE([AC_PROG_CC])dnl
  5314. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5315. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5316. -m4_require([_LT_DECL_SED])dnl
  5317. -m4_require([_LT_DECL_EGREP])dnl
  5318. -
  5319. -AC_ARG_WITH([gnu-ld],
  5320. - [AS_HELP_STRING([--with-gnu-ld],
  5321. +AC_DEFUN([AC_PROG_LD],
  5322. +[AC_ARG_WITH([gnu-ld],
  5323. + [AC_HELP_STRING([--with-gnu-ld],
  5324. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5325. [test "$withval" = no || with_gnu_ld=yes],
  5326. - [with_gnu_ld=no])dnl
  5327. -
  5328. + [with_gnu_ld=no])
  5329. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  5330. +AC_REQUIRE([AC_PROG_CC])dnl
  5331. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5332. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5333. ac_prog=ld
  5334. if test "$GCC" = yes; then
  5335. # Check if gcc -print-prog-name=ld gives a path.
  5336. @@ -3716,9 +2162,9 @@
  5337. [[\\/]]* | ?:[[\\/]]*)
  5338. re_direlt='/[[^/]][[^/]]*/\.\./'
  5339. # Canonicalize the pathname of ld
  5340. - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5341. - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5342. - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5343. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5344. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5345. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5346. done
  5347. test -z "$LD" && LD="$ac_prog"
  5348. ;;
  5349. @@ -3768,24 +2214,15 @@
  5350. AC_MSG_RESULT(no)
  5351. fi
  5352. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5353. -_LT_PATH_LD_GNU
  5354. -AC_SUBST([LD])
  5355. +AC_PROG_LD_GNU
  5356. +])# AC_PROG_LD
  5357. -_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5358. -])# LT_PATH_LD
  5359. -# Old names:
  5360. -AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5361. -AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5362. -dnl aclocal-1.4 backwards compatibility:
  5363. -dnl AC_DEFUN([AM_PROG_LD], [])
  5364. -dnl AC_DEFUN([AC_PROG_LD], [])
  5365. -
  5366. -
  5367. -# _LT_PATH_LD_GNU
  5368. -#- --------------
  5369. -m4_defun([_LT_PATH_LD_GNU],
  5370. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5371. +# AC_PROG_LD_GNU
  5372. +# --------------
  5373. +AC_DEFUN([AC_PROG_LD_GNU],
  5374. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  5375. +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5376. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5377. case `$LD -v 2>&1 </dev/null` in
  5378. *GNU* | *'with BFD'*)
  5379. @@ -3796,14 +2233,14 @@
  5380. ;;
  5381. esac])
  5382. with_gnu_ld=$lt_cv_prog_gnu_ld
  5383. -])# _LT_PATH_LD_GNU
  5384. +])# AC_PROG_LD_GNU
  5385. -# _LT_CMD_RELOAD
  5386. -# --------------
  5387. +# AC_PROG_LD_RELOAD_FLAG
  5388. +# ----------------------
  5389. # find reload flag for linker
  5390. # -- PORTME Some linkers may need a different reload flag.
  5391. -m4_defun([_LT_CMD_RELOAD],
  5392. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  5393. [AC_CACHE_CHECK([for $LD option to reload object files],
  5394. lt_cv_ld_reload_flag,
  5395. [lt_cv_ld_reload_flag='-r'])
  5396. @@ -3822,18 +2259,15 @@
  5397. fi
  5398. ;;
  5399. esac
  5400. -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5401. -_LT_DECL([], [reload_cmds], [2])dnl
  5402. -])# _LT_CMD_RELOAD
  5403. +])# AC_PROG_LD_RELOAD_FLAG
  5404. -# _LT_CHECK_MAGIC_METHOD
  5405. -# ----------------------
  5406. +# AC_DEPLIBS_CHECK_METHOD
  5407. +# -----------------------
  5408. # how to check for library dependencies
  5409. # -- PORTME fill in with the dynamic library characteristics
  5410. -m4_defun([_LT_CHECK_MAGIC_METHOD],
  5411. -[m4_require([_LT_DECL_EGREP])
  5412. -AC_CACHE_CHECK([how to recognise dependent libraries],
  5413. +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  5414. +[AC_CACHE_CHECK([how to recognise dependent libraries],
  5415. lt_cv_deplibs_check_method,
  5416. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  5417. lt_cv_file_magic_test_file=
  5418. @@ -3870,9 +2304,9 @@
  5419. lt_cv_file_magic_cmd='func_win32_libid'
  5420. ;;
  5421. +mingw* | pw32*)
  5422. # Base MSYS/MinGW do not provide the 'file' command needed by
  5423. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  5424. -mingw* | pw32*)
  5425. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5426. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5427. ;;
  5428. @@ -3882,7 +2316,7 @@
  5429. ;;
  5430. freebsd* | kfreebsd*-gnu | dragonfly*)
  5431. - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5432. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5433. case $host_cpu in
  5434. i*86 )
  5435. # Not sure whether the presence of OpenBSD here was a mistake.
  5436. @@ -3939,8 +2373,8 @@
  5437. lt_cv_deplibs_check_method=pass_all
  5438. ;;
  5439. -netbsd* | knetbsd*-gnu | netbsdelf*-gnu)
  5440. - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5441. +netbsd*)
  5442. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5443. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5444. else
  5445. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5446. @@ -3953,12 +2387,12 @@
  5447. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5448. ;;
  5449. -*nto* | *qnx*)
  5450. - lt_cv_deplibs_check_method=pass_all
  5451. +nto-qnx*)
  5452. + lt_cv_deplibs_check_method=unknown
  5453. ;;
  5454. openbsd*)
  5455. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5456. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5457. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  5458. else
  5459. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5460. @@ -3973,10 +2407,6 @@
  5461. lt_cv_deplibs_check_method=pass_all
  5462. ;;
  5463. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5464. - lt_cv_deplibs_check_method=pass_all
  5465. - ;;
  5466. -
  5467. sysv4 | sysv4.3*)
  5468. case $host_vendor in
  5469. motorola)
  5470. @@ -4004,7 +2434,7 @@
  5471. esac
  5472. ;;
  5473. -tpf*)
  5474. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5475. lt_cv_deplibs_check_method=pass_all
  5476. ;;
  5477. esac
  5478. @@ -4012,27 +2442,20 @@
  5479. file_magic_cmd=$lt_cv_file_magic_cmd
  5480. deplibs_check_method=$lt_cv_deplibs_check_method
  5481. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5482. +])# AC_DEPLIBS_CHECK_METHOD
  5483. -_LT_DECL([], [deplibs_check_method], [1],
  5484. - [Method to check whether dependent libraries are shared objects])
  5485. -_LT_DECL([], [file_magic_cmd], [1],
  5486. - [Command to use when deplibs_check_method == "file_magic"])
  5487. -])# _LT_CHECK_MAGIC_METHOD
  5488. -
  5489. -# LT_PATH_NM
  5490. +# AC_PROG_NM
  5491. # ----------
  5492. -# find the pathname to a BSD- or MS-compatible name lister
  5493. -AC_DEFUN([LT_PATH_NM],
  5494. -[AC_REQUIRE([AC_PROG_CC])dnl
  5495. -AC_REQUIRE([AC_OBJEXT])dnl
  5496. -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  5497. +# find the pathname to a BSD-compatible name lister
  5498. +AC_DEFUN([AC_PROG_NM],
  5499. +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  5500. [if test -n "$NM"; then
  5501. # Let the user override the test.
  5502. lt_cv_path_NM="$NM"
  5503. else
  5504. lt_nm_to_check="${ac_tool_prefix}nm"
  5505. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5506. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5507. lt_nm_to_check="$lt_nm_to_check nm"
  5508. fi
  5509. for lt_tmp_nm in $lt_nm_to_check; do
  5510. @@ -4068,51 +2491,16 @@
  5511. done
  5512. IFS="$lt_save_ifs"
  5513. done
  5514. - : ${lt_cv_path_NM=no}
  5515. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  5516. fi])
  5517. -if test "$lt_cv_path_NM" != "no"; then
  5518. - NM="$lt_cv_path_NM"
  5519. -else
  5520. - # Didn't find any BSD compatible name lister, look for dumpbin.
  5521. - AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  5522. - AC_SUBST([DUMPBIN])
  5523. - if test "$DUMPBIN" != ":"; then
  5524. - NM="$DUMPBIN"
  5525. - fi
  5526. -fi
  5527. -test -z "$NM" && NM=nm
  5528. -AC_SUBST([NM])
  5529. -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  5530. -
  5531. -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  5532. - [lt_cv_nm_interface="BSD nm"
  5533. - echo "int some_variable = 0;" > conftest.$ac_ext
  5534. - (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  5535. - (eval "$ac_compile" 2>conftest.err)
  5536. - cat conftest.err >&AS_MESSAGE_LOG_FD
  5537. - (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  5538. - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5539. - cat conftest.err >&AS_MESSAGE_LOG_FD
  5540. - (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  5541. - cat conftest.out >&AS_MESSAGE_LOG_FD
  5542. - if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5543. - lt_cv_nm_interface="MS dumpbin"
  5544. - fi
  5545. - rm -f conftest*])
  5546. -])# LT_PATH_NM
  5547. -
  5548. -# Old names:
  5549. -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  5550. -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  5551. -dnl aclocal-1.4 backwards compatibility:
  5552. -dnl AC_DEFUN([AM_PROG_NM], [])
  5553. -dnl AC_DEFUN([AC_PROG_NM], [])
  5554. +NM="$lt_cv_path_NM"
  5555. +])# AC_PROG_NM
  5556. -# LT_LIB_M
  5557. -# --------
  5558. +# AC_CHECK_LIBM
  5559. +# -------------
  5560. # check for math library
  5561. -AC_DEFUN([LT_LIB_M],
  5562. +AC_DEFUN([AC_CHECK_LIBM],
  5563. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5564. LIBM=
  5565. case $host in
  5566. @@ -4127,3660 +2515,3832 @@
  5567. AC_CHECK_LIB(m, cos, LIBM="-lm")
  5568. ;;
  5569. esac
  5570. -AC_SUBST([LIBM])
  5571. -])# LT_LIB_M
  5572. +])# AC_CHECK_LIBM
  5573. -# Old name:
  5574. -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  5575. -dnl aclocal-1.4 backwards compatibility:
  5576. -dnl AC_DEFUN([AC_CHECK_LIBM], [])
  5577. +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  5578. +# -----------------------------------
  5579. +# sets LIBLTDL to the link flags for the libltdl convenience library and
  5580. +# LTDLINCL to the include flags for the libltdl header and adds
  5581. +# --enable-ltdl-convenience to the configure arguments. Note that
  5582. +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  5583. +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  5584. +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  5585. +# (note the single quotes!). If your package is not flat and you're not
  5586. +# using automake, define top_builddir and top_srcdir appropriately in
  5587. +# the Makefiles.
  5588. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  5589. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  5590. + case $enable_ltdl_convenience in
  5591. + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  5592. + "") enable_ltdl_convenience=yes
  5593. + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  5594. + esac
  5595. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  5596. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  5597. + # For backwards non-gettext consistent compatibility...
  5598. + INCLTDL="$LTDLINCL"
  5599. +])# AC_LIBLTDL_CONVENIENCE
  5600. -# _LT_COMPILER_NO_RTTI([TAGNAME])
  5601. -# -------------------------------
  5602. -m4_defun([_LT_COMPILER_NO_RTTI],
  5603. -[m4_require([_LT_TAG_COMPILER])dnl
  5604. -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5605. +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  5606. +# -----------------------------------
  5607. +# sets LIBLTDL to the link flags for the libltdl installable library and
  5608. +# LTDLINCL to the include flags for the libltdl header and adds
  5609. +# --enable-ltdl-install to the configure arguments. Note that
  5610. +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  5611. +# and an installed libltdl is not found, it is assumed to be `libltdl'.
  5612. +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  5613. +# '${top_srcdir}/' (note the single quotes!). If your package is not
  5614. +# flat and you're not using automake, define top_builddir and top_srcdir
  5615. +# appropriately in the Makefiles.
  5616. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  5617. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  5618. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  5619. + AC_CHECK_LIB(ltdl, lt_dlinit,
  5620. + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  5621. + [if test x"$enable_ltdl_install" = xno; then
  5622. + AC_MSG_WARN([libltdl not installed, but installation disabled])
  5623. + else
  5624. + enable_ltdl_install=yes
  5625. + fi
  5626. + ])
  5627. + if test x"$enable_ltdl_install" = x"yes"; then
  5628. + ac_configure_args="$ac_configure_args --enable-ltdl-install"
  5629. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  5630. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  5631. + else
  5632. + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  5633. + LIBLTDL="-lltdl"
  5634. + LTDLINCL=
  5635. + fi
  5636. + # For backwards non-gettext consistent compatibility...
  5637. + INCLTDL="$LTDLINCL"
  5638. +])# AC_LIBLTDL_INSTALLABLE
  5639. -if test "$GCC" = yes; then
  5640. - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5641. - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  5642. - lt_cv_prog_compiler_rtti_exceptions,
  5643. - [-fno-rtti -fno-exceptions], [],
  5644. - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  5645. -fi
  5646. -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  5647. - [Compiler flag to turn off builtin functions])
  5648. -])# _LT_COMPILER_NO_RTTI
  5649. +# AC_LIBTOOL_CXX
  5650. +# --------------
  5651. +# enable support for C++ libraries
  5652. +AC_DEFUN([AC_LIBTOOL_CXX],
  5653. +[AC_REQUIRE([_LT_AC_LANG_CXX])
  5654. +])# AC_LIBTOOL_CXX
  5655. -# _LT_CMD_GLOBAL_SYMBOLS
  5656. -# ----------------------
  5657. -m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  5658. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5659. -AC_REQUIRE([AC_PROG_CC])dnl
  5660. -AC_REQUIRE([AC_OBJEXT])dnl
  5661. -AC_REQUIRE([LT_PATH_NM])dnl
  5662. -AC_REQUIRE([LT_PATH_LD])dnl
  5663. -m4_require([_LT_DECL_EGREP])dnl
  5664. -m4_require([_LT_TAG_COMPILER])dnl
  5665. +# _LT_AC_LANG_CXX
  5666. +# ---------------
  5667. +AC_DEFUN([_LT_AC_LANG_CXX],
  5668. +[AC_REQUIRE([AC_PROG_CXX])
  5669. +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  5670. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  5671. +])# _LT_AC_LANG_CXX
  5672. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  5673. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  5674. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  5675. +# _LT_AC_PROG_CXXCPP
  5676. +# ------------------
  5677. +AC_DEFUN([_LT_AC_PROG_CXXCPP],
  5678. [
  5679. -# These are sane defaults that work on at least a few old systems.
  5680. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5681. +AC_REQUIRE([AC_PROG_CXX])
  5682. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5683. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5684. + (test "X$CXX" != "Xg++"))) ; then
  5685. + AC_PROG_CXXCPP
  5686. +fi
  5687. +])# _LT_AC_PROG_CXXCPP
  5688. -# Character class describing NM global symbol codes.
  5689. -symcode='[[BCDEGRST]]'
  5690. +# AC_LIBTOOL_F77
  5691. +# --------------
  5692. +# enable support for Fortran 77 libraries
  5693. +AC_DEFUN([AC_LIBTOOL_F77],
  5694. +[AC_REQUIRE([_LT_AC_LANG_F77])
  5695. +])# AC_LIBTOOL_F77
  5696. -# Regexp to match symbols that can be accessed directly from C.
  5697. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  5698. -# Define system-specific variables.
  5699. -case $host_os in
  5700. -aix*)
  5701. - symcode='[[BCDT]]'
  5702. - ;;
  5703. -cygwin* | mingw* | pw32*)
  5704. - symcode='[[ABCDGISTW]]'
  5705. - ;;
  5706. -hpux*)
  5707. - if test "$host_cpu" = ia64; then
  5708. - symcode='[[ABCDEGRST]]'
  5709. - fi
  5710. - ;;
  5711. -irix* | nonstopux*)
  5712. - symcode='[[BCDEGRST]]'
  5713. - ;;
  5714. -osf*)
  5715. - symcode='[[BCDEGQRST]]'
  5716. - ;;
  5717. -solaris*)
  5718. - symcode='[[BDRT]]'
  5719. - ;;
  5720. -sco3.2v5*)
  5721. - symcode='[[DT]]'
  5722. - ;;
  5723. -sysv4.2uw2*)
  5724. - symcode='[[DT]]'
  5725. - ;;
  5726. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5727. - symcode='[[ABDT]]'
  5728. - ;;
  5729. -sysv4)
  5730. - symcode='[[DFNSTU]]'
  5731. - ;;
  5732. -esac
  5733. +# _LT_AC_LANG_F77
  5734. +# ---------------
  5735. +AC_DEFUN([_LT_AC_LANG_F77],
  5736. +[AC_REQUIRE([AC_PROG_F77])
  5737. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  5738. +])# _LT_AC_LANG_F77
  5739. -# If we're using GNU nm, then use its standard symbol codes.
  5740. -case `$NM -V 2>&1` in
  5741. -*GNU* | *'with BFD'*)
  5742. - symcode='[[ABCDGIRSTW]]' ;;
  5743. -esac
  5744. -# Transform an extracted symbol line into a proper C declaration.
  5745. -# Some systems (esp. on ia64) link data and code symbols differently,
  5746. -# so use this general approach.
  5747. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5748. +# AC_LIBTOOL_GCJ
  5749. +# --------------
  5750. +# enable support for GCJ libraries
  5751. +AC_DEFUN([AC_LIBTOOL_GCJ],
  5752. +[AC_REQUIRE([_LT_AC_LANG_GCJ])
  5753. +])# AC_LIBTOOL_GCJ
  5754. -# Transform an extracted symbol line into symbol name and symbol address
  5755. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5756. -# Handle CRLF in mingw tool chain
  5757. -opt_cr=
  5758. -case $build_os in
  5759. -mingw*)
  5760. - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5761. +# _LT_AC_LANG_GCJ
  5762. +# ---------------
  5763. +AC_DEFUN([_LT_AC_LANG_GCJ],
  5764. +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  5765. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  5766. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  5767. + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  5768. + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  5769. + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  5770. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  5771. +])# _LT_AC_LANG_GCJ
  5772. +
  5773. +
  5774. +# AC_LIBTOOL_RC
  5775. +# -------------
  5776. +# enable support for Windows resource files
  5777. +AC_DEFUN([AC_LIBTOOL_RC],
  5778. +[AC_REQUIRE([LT_AC_PROG_RC])
  5779. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  5780. +])# AC_LIBTOOL_RC
  5781. +
  5782. +
  5783. +# AC_LIBTOOL_LANG_C_CONFIG
  5784. +# ------------------------
  5785. +# Ensure that the configuration vars for the C compiler are
  5786. +# suitably defined. Those variables are subsequently used by
  5787. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5788. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  5789. +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  5790. +[lt_save_CC="$CC"
  5791. +AC_LANG_PUSH(C)
  5792. +
  5793. +# Source file extension for C test sources.
  5794. +ac_ext=c
  5795. +
  5796. +# Object file extension for compiled C test sources.
  5797. +objext=o
  5798. +_LT_AC_TAGVAR(objext, $1)=$objext
  5799. +
  5800. +# Code to be used in simple compile tests
  5801. +lt_simple_compile_test_code="int some_variable = 0;\n"
  5802. +
  5803. +# Code to be used in simple link tests
  5804. +lt_simple_link_test_code='int main(){return(0);}\n'
  5805. +
  5806. +_LT_AC_SYS_COMPILER
  5807. +
  5808. +# save warnings/boilerplate of simple test code
  5809. +_LT_COMPILER_BOILERPLATE
  5810. +_LT_LINKER_BOILERPLATE
  5811. +
  5812. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5813. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5814. +AC_LIBTOOL_PROG_CC_C_O($1)
  5815. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5816. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5817. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5818. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5819. +AC_LIBTOOL_SYS_LIB_STRIP
  5820. +AC_LIBTOOL_DLOPEN_SELF
  5821. +
  5822. +# Report which library types will actually be built
  5823. +AC_MSG_CHECKING([if libtool supports shared libraries])
  5824. +AC_MSG_RESULT([$can_build_shared])
  5825. +
  5826. +AC_MSG_CHECKING([whether to build shared libraries])
  5827. +test "$can_build_shared" = "no" && enable_shared=no
  5828. +
  5829. +# On AIX, shared libraries and static libraries use the same namespace, and
  5830. +# are all built from PIC.
  5831. +case $host_os in
  5832. +aix3*)
  5833. + test "$enable_shared" = yes && enable_static=no
  5834. + if test -n "$RANLIB"; then
  5835. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5836. + postinstall_cmds='$RANLIB $lib'
  5837. + fi
  5838. ;;
  5839. +
  5840. +aix4* | aix5*)
  5841. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5842. + test "$enable_shared" = yes && enable_static=no
  5843. + fi
  5844. + ;;
  5845. esac
  5846. +AC_MSG_RESULT([$enable_shared])
  5847. -# Try without a prefix underscore, then with it.
  5848. -for ac_symprfx in "" "_"; do
  5849. +AC_MSG_CHECKING([whether to build static libraries])
  5850. +# Make sure either enable_shared or enable_static is yes.
  5851. +test "$enable_shared" = yes || enable_static=yes
  5852. +AC_MSG_RESULT([$enable_static])
  5853. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5854. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  5855. +AC_LIBTOOL_CONFIG($1)
  5856. - # Write the raw and C identifiers.
  5857. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5858. - # Fake it for dumpbin and say T for any non-static function
  5859. - # and D for any global variable.
  5860. - # Also find C++ and __fastcall symbols from MSVC++,
  5861. - # which start with @ or ?.
  5862. - lt_cv_sys_global_symbol_pipe="$AWK ['"\
  5863. -" {last_section=section; section=\$ 3};"\
  5864. -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5865. -" \$ 0!~/External *\|/{next};"\
  5866. -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5867. -" {if(hide[section]) next};"\
  5868. -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5869. -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5870. -" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5871. -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5872. -" ' prfx=^$ac_symprfx]"
  5873. - else
  5874. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5875. - fi
  5876. +AC_LANG_POP
  5877. +CC="$lt_save_CC"
  5878. +])# AC_LIBTOOL_LANG_C_CONFIG
  5879. - # Check to see that the pipe works correctly.
  5880. - pipe_works=no
  5881. - rm -f conftest*
  5882. - cat > conftest.$ac_ext <<_LT_EOF
  5883. -#ifdef __cplusplus
  5884. -extern "C" {
  5885. -#endif
  5886. -char nm_test_var;
  5887. -void nm_test_func(){}
  5888. -#ifdef __cplusplus
  5889. -}
  5890. -#endif
  5891. -int main(){nm_test_var='a';nm_test_func();return(0);}
  5892. -_LT_EOF
  5893. +# AC_LIBTOOL_LANG_CXX_CONFIG
  5894. +# --------------------------
  5895. +# Ensure that the configuration vars for the C compiler are
  5896. +# suitably defined. Those variables are subsequently used by
  5897. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5898. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  5899. +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  5900. +[AC_LANG_PUSH(C++)
  5901. +AC_REQUIRE([AC_PROG_CXX])
  5902. +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  5903. +
  5904. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5905. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5906. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5907. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5908. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5909. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5910. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5911. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5912. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5913. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5914. +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5915. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5916. +_LT_AC_TAGVAR(module_cmds, $1)=
  5917. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5918. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5919. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5920. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5921. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5922. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5923. - if AC_TRY_EVAL(ac_compile); then
  5924. - # Now try to grab the symbols.
  5925. - nlist=conftest.nm
  5926. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  5927. - # Try sorting and uniquifying the output.
  5928. - if sort "$nlist" | uniq > "$nlist"T; then
  5929. - mv -f "$nlist"T "$nlist"
  5930. - else
  5931. - rm -f "$nlist"T
  5932. - fi
  5933. +# Dependencies to place before and after the object being linked:
  5934. +_LT_AC_TAGVAR(predep_objects, $1)=
  5935. +_LT_AC_TAGVAR(postdep_objects, $1)=
  5936. +_LT_AC_TAGVAR(predeps, $1)=
  5937. +_LT_AC_TAGVAR(postdeps, $1)=
  5938. +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  5939. - # Make sure that we snagged all the symbols we need.
  5940. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5941. - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5942. - cat <<_LT_EOF > conftest.$ac_ext
  5943. -#ifdef __cplusplus
  5944. -extern "C" {
  5945. -#endif
  5946. +# Source file extension for C++ test sources.
  5947. +ac_ext=cpp
  5948. -_LT_EOF
  5949. - # Now generate the symbol file.
  5950. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5951. +# Object file extension for compiled C++ test sources.
  5952. +objext=o
  5953. +_LT_AC_TAGVAR(objext, $1)=$objext
  5954. - cat <<_LT_EOF >> conftest.$ac_ext
  5955. +# Code to be used in simple compile tests
  5956. +lt_simple_compile_test_code="int some_variable = 0;\n"
  5957. -/* The mapping between symbol names and symbols. */
  5958. -const struct {
  5959. - const char *name;
  5960. - void *address;
  5961. -}
  5962. -lt__PROGRAM__LTX_preloaded_symbols[[]] =
  5963. -{
  5964. - { "@PROGRAM@", (void *) 0 },
  5965. -_LT_EOF
  5966. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5967. - cat <<\_LT_EOF >> conftest.$ac_ext
  5968. - {0, (void *) 0}
  5969. -};
  5970. +# Code to be used in simple link tests
  5971. +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  5972. -/* This works around a problem in FreeBSD linker */
  5973. -#ifdef FREEBSD_WORKAROUND
  5974. -static const void *lt_preloaded_setup() {
  5975. - return lt__PROGRAM__LTX_preloaded_symbols;
  5976. -}
  5977. -#endif
  5978. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5979. +_LT_AC_SYS_COMPILER
  5980. -#ifdef __cplusplus
  5981. -}
  5982. -#endif
  5983. -_LT_EOF
  5984. - # Now try linking the two files.
  5985. - mv conftest.$ac_objext conftstm.$ac_objext
  5986. - lt_save_LIBS="$LIBS"
  5987. - lt_save_CFLAGS="$CFLAGS"
  5988. - LIBS="conftstm.$ac_objext"
  5989. - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  5990. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  5991. - pipe_works=yes
  5992. - fi
  5993. - LIBS="$lt_save_LIBS"
  5994. - CFLAGS="$lt_save_CFLAGS"
  5995. - else
  5996. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  5997. - fi
  5998. - else
  5999. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6000. - fi
  6001. +# save warnings/boilerplate of simple test code
  6002. +_LT_COMPILER_BOILERPLATE
  6003. +_LT_LINKER_BOILERPLATE
  6004. +
  6005. +# Allow CC to be a program name with arguments.
  6006. +lt_save_CC=$CC
  6007. +lt_save_LD=$LD
  6008. +lt_save_GCC=$GCC
  6009. +GCC=$GXX
  6010. +lt_save_with_gnu_ld=$with_gnu_ld
  6011. +lt_save_path_LD=$lt_cv_path_LD
  6012. +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  6013. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  6014. +else
  6015. + $as_unset lt_cv_prog_gnu_ld
  6016. +fi
  6017. +if test -n "${lt_cv_path_LDCXX+set}"; then
  6018. + lt_cv_path_LD=$lt_cv_path_LDCXX
  6019. +else
  6020. + $as_unset lt_cv_path_LD
  6021. +fi
  6022. +test -z "${LDCXX+set}" || LD=$LDCXX
  6023. +CC=${CXX-"c++"}
  6024. +compiler=$CC
  6025. +_LT_AC_TAGVAR(compiler, $1)=$CC
  6026. +_LT_CC_BASENAME([$compiler])
  6027. +
  6028. +# We don't want -fno-exception wen compiling C++ code, so set the
  6029. +# no_builtin_flag separately
  6030. +if test "$GXX" = yes; then
  6031. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6032. +else
  6033. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6034. +fi
  6035. +
  6036. +if test "$GXX" = yes; then
  6037. + # Set up default GNU C++ configuration
  6038. +
  6039. + AC_PROG_LD
  6040. +
  6041. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  6042. + # archiving commands below assume that GNU ld is being used.
  6043. + if test "$with_gnu_ld" = yes; then
  6044. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6045. + _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'
  6046. +
  6047. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  6048. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6049. +
  6050. + # If archive_cmds runs LD, not CC, wlarc should be empty
  6051. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  6052. + # investigate it a little bit more. (MM)
  6053. + wlarc='${wl}'
  6054. +
  6055. + # ancient GNU ld didn't support --whole-archive et. al.
  6056. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  6057. + grep 'no-whole-archive' > /dev/null; then
  6058. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6059. else
  6060. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6061. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6062. fi
  6063. else
  6064. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6065. - cat conftest.$ac_ext >&5
  6066. - fi
  6067. - rm -f conftest* conftst*
  6068. + with_gnu_ld=no
  6069. + wlarc=
  6070. - # Do not use the global_symbol_pipe unless it works.
  6071. - if test "$pipe_works" = yes; then
  6072. - break
  6073. - else
  6074. - lt_cv_sys_global_symbol_pipe=
  6075. + # A generic and very simple default shared library creation
  6076. + # command for GNU C++ for the case where it uses the native
  6077. + # linker, instead of GNU ld. If possible, this setting should
  6078. + # overridden to take advantage of the native linker features on
  6079. + # the platform it is being used on.
  6080. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6081. fi
  6082. -done
  6083. -])
  6084. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6085. - lt_cv_sys_global_symbol_to_cdecl=
  6086. -fi
  6087. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6088. - AC_MSG_RESULT(failed)
  6089. +
  6090. + # Commands to make compiler produce verbose output that lists
  6091. + # what "hidden" libraries, object files and flags are used when
  6092. + # linking a shared library.
  6093. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  6094. +
  6095. else
  6096. - AC_MSG_RESULT(ok)
  6097. + GXX=no
  6098. + with_gnu_ld=no
  6099. + wlarc=
  6100. fi
  6101. -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6102. - [Take the output of nm and produce a listing of raw symbols and C names])
  6103. -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6104. - [Transform the output of nm in a proper C declaration])
  6105. -_LT_DECL([global_symbol_to_c_name_address],
  6106. - [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6107. - [Transform the output of nm in a C name address pair])
  6108. -]) # _LT_CMD_GLOBAL_SYMBOLS
  6109. +# PORTME: fill in a description of your system's C++ link characteristics
  6110. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  6111. +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  6112. +case $host_os in
  6113. + aix3*)
  6114. + # FIXME: insert proper C++ library support
  6115. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6116. + ;;
  6117. + aix4* | aix5*)
  6118. + if test "$host_cpu" = ia64; then
  6119. + # On IA64, the linker does run time linking by default, so we don't
  6120. + # have to do anything special.
  6121. + aix_use_runtimelinking=no
  6122. + exp_sym_flag='-Bexport'
  6123. + no_entry_flag=""
  6124. + else
  6125. + aix_use_runtimelinking=no
  6126. + # Test if we are trying to use run time linking or normal
  6127. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6128. + # need to do runtime linking.
  6129. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  6130. + for ld_flag in $LDFLAGS; do
  6131. + case $ld_flag in
  6132. + *-brtl*)
  6133. + aix_use_runtimelinking=yes
  6134. + break
  6135. + ;;
  6136. + esac
  6137. + done
  6138. + ;;
  6139. + esac
  6140. -# _LT_COMPILER_PIC([TAGNAME])
  6141. -# ---------------------------
  6142. -m4_defun([_LT_COMPILER_PIC],
  6143. -[m4_require([_LT_TAG_COMPILER])dnl
  6144. -_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6145. -_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6146. -_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6147. + exp_sym_flag='-bexport'
  6148. + no_entry_flag='-bnoentry'
  6149. + fi
  6150. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  6151. -m4_if([$1], [CXX], [
  6152. - # C++ specific cases for pic, static, wl, etc.
  6153. - if test "$GXX" = yes; then
  6154. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6155. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6156. + # When large executables or shared objects are built, AIX ld can
  6157. + # have problems creating the table of contents. If linking a library
  6158. + # or program results in "error TOC overflow" add -mminimal-toc to
  6159. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6160. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6161. +
  6162. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  6163. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6164. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6165. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6166. - case $host_os in
  6167. - aix*)
  6168. - # All AIX code is PIC.
  6169. - if test "$host_cpu" = ia64; then
  6170. - # AIX 5 now supports IA64 processor
  6171. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6172. + if test "$GXX" = yes; then
  6173. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6174. + # We only want to do this on AIX 4.2 and lower, the check
  6175. + # below for broken collect2 doesn't work under 4.3+
  6176. + collect2name=`${CC} -print-prog-name=collect2`
  6177. + if test -f "$collect2name" && \
  6178. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  6179. + then
  6180. + # We have reworked collect2
  6181. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6182. + else
  6183. + # We have old collect2
  6184. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  6185. + # It fails to find uninstalled libraries when the uninstalled
  6186. + # path is not listed in the libpath. Setting hardcode_minus_L
  6187. + # to unsupported forces relinking
  6188. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6189. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6190. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6191. + fi
  6192. + ;;
  6193. + esac
  6194. + shared_flag='-shared'
  6195. + if test "$aix_use_runtimelinking" = yes; then
  6196. + shared_flag="$shared_flag "'${wl}-G'
  6197. fi
  6198. - ;;
  6199. - amigaos*)
  6200. - if test "$host_cpu" = m68k; then
  6201. - # FIXME: we need at least 68020 code to build shared libraries, but
  6202. - # adding the `-m68020' flag to GCC prevents building anything better,
  6203. - # like `-m68040'.
  6204. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6205. + else
  6206. + # not using gcc
  6207. + if test "$host_cpu" = ia64; then
  6208. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6209. + # chokes on -Wl,-G. The following line is correct:
  6210. + shared_flag='-G'
  6211. + else
  6212. + if test "$aix_use_runtimelinking" = yes; then
  6213. + shared_flag='${wl}-G'
  6214. + else
  6215. + shared_flag='${wl}-bM:SRE'
  6216. + fi
  6217. fi
  6218. - ;;
  6219. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6220. - # PIC is the default for these OSes.
  6221. - ;;
  6222. - mingw* | os2* | pw32*)
  6223. - # This hack is so that the source file can tell whether it is being
  6224. - # built for inclusion in a dll (and should export symbols for example).
  6225. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  6226. - ;;
  6227. - darwin* | rhapsody*)
  6228. - # PIC is the default on this platform
  6229. - # Common symbols not allowed in MH_DYLIB files
  6230. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6231. - ;;
  6232. - *djgpp*)
  6233. - # DJGPP does not support shared libraries at all
  6234. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6235. - ;;
  6236. - interix3*)
  6237. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6238. - # Instead, we relocate shared libraries at runtime.
  6239. - ;;
  6240. - sysv4*MP*)
  6241. - if test -d /usr/nec; then
  6242. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6243. + fi
  6244. +
  6245. + # It seems that -bexpall does not export symbols beginning with
  6246. + # underscore (_), so it is better to generate a list of symbols to export.
  6247. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  6248. + if test "$aix_use_runtimelinking" = yes; then
  6249. + # Warning - without using the other runtime loading flags (-brtl),
  6250. + # -berok will link without error, but may produce a broken library.
  6251. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  6252. + # Determine the default libpath from the value encoded in an empty executable.
  6253. + _LT_AC_SYS_LIBPATH_AIX
  6254. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6255. +
  6256. + _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"
  6257. + else
  6258. + if test "$host_cpu" = ia64; then
  6259. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6260. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6261. + _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"
  6262. + else
  6263. + # Determine the default libpath from the value encoded in an empty executable.
  6264. + _LT_AC_SYS_LIBPATH_AIX
  6265. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6266. + # Warning - without using the other run time loading flags,
  6267. + # -berok will link without error, but may produce a broken library.
  6268. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6269. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6270. + # Exported symbols can be pulled into shared objects from archives
  6271. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6272. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6273. + # This is similar to how AIX traditionally builds its shared libraries.
  6274. + _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'
  6275. fi
  6276. - ;;
  6277. - hpux*)
  6278. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6279. - # not for PA HP-UX.
  6280. - case $host_cpu in
  6281. - hppa*64*|ia64*)
  6282. - ;;
  6283. + fi
  6284. + ;;
  6285. +
  6286. + beos*)
  6287. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6288. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6289. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6290. + # support --undefined. This deserves some investigation. FIXME
  6291. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6292. + else
  6293. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6294. + fi
  6295. + ;;
  6296. +
  6297. + chorus*)
  6298. + case $cc_basename in
  6299. *)
  6300. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6301. + # FIXME: insert proper C++ library support
  6302. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6303. ;;
  6304. - esac
  6305. - ;;
  6306. - *qnx* | *nto*)
  6307. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  6308. - # it will coredump.
  6309. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6310. - ;;
  6311. - *)
  6312. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6313. - ;;
  6314. esac
  6315. - else
  6316. - case $host_os in
  6317. - aix4* | aix5*)
  6318. - # All AIX code is PIC.
  6319. - if test "$host_cpu" = ia64; then
  6320. - # AIX 5 now supports IA64 processor
  6321. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6322. - else
  6323. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6324. - fi
  6325. + ;;
  6326. +
  6327. + cygwin* | mingw* | pw32*)
  6328. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6329. + # as there is no search path for DLLs.
  6330. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6331. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6332. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  6333. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6334. +
  6335. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6336. + _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'
  6337. + # If the export-symbols file already is a .def file (1st line
  6338. + # is EXPORTS), use it as is; otherwise, prepend...
  6339. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6340. + cp $export_symbols $output_objdir/$soname.def;
  6341. + else
  6342. + echo EXPORTS > $output_objdir/$soname.def;
  6343. + cat $export_symbols >> $output_objdir/$soname.def;
  6344. + fi~
  6345. + $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'
  6346. + else
  6347. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6348. + fi
  6349. + ;;
  6350. + darwin* | rhapsody*)
  6351. + case $host_os in
  6352. + rhapsody* | darwin1.[[012]])
  6353. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  6354. + ;;
  6355. + *) # Darwin 1.3 on
  6356. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6357. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6358. + else
  6359. + case ${MACOSX_DEPLOYMENT_TARGET} in
  6360. + 10.[[012]])
  6361. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6362. + ;;
  6363. + 10.*)
  6364. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  6365. + ;;
  6366. + esac
  6367. + fi
  6368. + ;;
  6369. + esac
  6370. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6371. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6372. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  6373. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6374. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  6375. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6376. +
  6377. + if test "$GXX" = yes ; then
  6378. + lt_int_apple_cc_single_mod=no
  6379. + output_verbose_link_cmd='echo'
  6380. + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  6381. + lt_int_apple_cc_single_mod=yes
  6382. + fi
  6383. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  6384. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6385. + else
  6386. + _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'
  6387. + fi
  6388. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6389. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6390. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  6391. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6392. + else
  6393. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6394. + fi
  6395. + _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}'
  6396. + else
  6397. + case $cc_basename in
  6398. + xlc*)
  6399. + output_verbose_link_cmd='echo'
  6400. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6401. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6402. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6403. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6404. + _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}'
  6405. + ;;
  6406. + *)
  6407. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6408. + ;;
  6409. + esac
  6410. + fi
  6411. + ;;
  6412. +
  6413. + dgux*)
  6414. + case $cc_basename in
  6415. + ec++*)
  6416. + # FIXME: insert proper C++ library support
  6417. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6418. + ;;
  6419. + ghcx*)
  6420. + # Green Hills C++ Compiler
  6421. + # FIXME: insert proper C++ library support
  6422. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6423. ;;
  6424. - chorus*)
  6425. - case $cc_basename in
  6426. - cxch68*)
  6427. - # Green Hills C++ Compiler
  6428. - # _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"
  6429. - ;;
  6430. - esac
  6431. + *)
  6432. + # FIXME: insert proper C++ library support
  6433. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6434. ;;
  6435. - darwin*)
  6436. - # PIC is the default on this platform
  6437. - # Common symbols not allowed in MH_DYLIB files
  6438. - case $cc_basename in
  6439. - xlc*)
  6440. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  6441. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6442. - ;;
  6443. - esac
  6444. + esac
  6445. + ;;
  6446. + freebsd[[12]]*)
  6447. + # C++ shared libraries reported to be fairly broken before switch to ELF
  6448. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6449. + ;;
  6450. + freebsd-elf*)
  6451. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6452. + ;;
  6453. + freebsd* | kfreebsd*-gnu | dragonfly*)
  6454. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6455. + # conventions
  6456. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  6457. + ;;
  6458. + gnu*)
  6459. + ;;
  6460. + hpux9*)
  6461. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6462. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6463. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6464. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6465. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6466. + # but as the default
  6467. + # location of the library.
  6468. +
  6469. + case $cc_basename in
  6470. + CC*)
  6471. + # FIXME: insert proper C++ library support
  6472. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6473. + ;;
  6474. + aCC*)
  6475. + _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'
  6476. + # Commands to make compiler produce verbose output that lists
  6477. + # what "hidden" libraries, object files and flags are used when
  6478. + # linking a shared library.
  6479. + #
  6480. + # There doesn't appear to be a way to prevent this compiler from
  6481. + # explicitly linking system object files so we need to strip them
  6482. + # from the output so that they don't get included in the library
  6483. + # dependencies.
  6484. + 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'
  6485. + ;;
  6486. + *)
  6487. + if test "$GXX" = yes; then
  6488. + _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'
  6489. + else
  6490. + # FIXME: insert proper C++ library support
  6491. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6492. + fi
  6493. + ;;
  6494. + esac
  6495. + ;;
  6496. + hpux10*|hpux11*)
  6497. + if test $with_gnu_ld = no; then
  6498. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6499. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6500. +
  6501. + case $host_cpu in
  6502. + hppa*64*|ia64*)
  6503. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6504. ;;
  6505. - dgux*)
  6506. - case $cc_basename in
  6507. - ec++*)
  6508. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6509. - ;;
  6510. - ghcx*)
  6511. - # Green Hills C++ Compiler
  6512. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6513. - ;;
  6514. - *)
  6515. - ;;
  6516. - esac
  6517. + *)
  6518. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6519. + ;;
  6520. + esac
  6521. + fi
  6522. + case $host_cpu in
  6523. + hppa*64*|ia64*)
  6524. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6525. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6526. + ;;
  6527. + *)
  6528. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6529. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6530. + # but as the default
  6531. + # location of the library.
  6532. + ;;
  6533. + esac
  6534. +
  6535. + case $cc_basename in
  6536. + CC*)
  6537. + # FIXME: insert proper C++ library support
  6538. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6539. ;;
  6540. - freebsd* | kfreebsd*-gnu | dragonfly*)
  6541. - # FreeBSD uses GNU C++
  6542. + aCC*)
  6543. + case $host_cpu in
  6544. + hppa*64*)
  6545. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6546. + ;;
  6547. + ia64*)
  6548. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6549. + ;;
  6550. + *)
  6551. + _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'
  6552. + ;;
  6553. + esac
  6554. + # Commands to make compiler produce verbose output that lists
  6555. + # what "hidden" libraries, object files and flags are used when
  6556. + # linking a shared library.
  6557. + #
  6558. + # There doesn't appear to be a way to prevent this compiler from
  6559. + # explicitly linking system object files so we need to strip them
  6560. + # from the output so that they don't get included in the library
  6561. + # dependencies.
  6562. + 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'
  6563. ;;
  6564. - hpux9* | hpux10* | hpux11*)
  6565. - case $cc_basename in
  6566. - CC*)
  6567. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6568. - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6569. - if test "$host_cpu" != ia64; then
  6570. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6571. - fi
  6572. - ;;
  6573. - aCC*)
  6574. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6575. - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6576. + *)
  6577. + if test "$GXX" = yes; then
  6578. + if test $with_gnu_ld = no; then
  6579. case $host_cpu in
  6580. - hppa*64*|ia64*)
  6581. - # +Z the default
  6582. + hppa*64*)
  6583. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6584. + ;;
  6585. + ia64*)
  6586. + _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'
  6587. ;;
  6588. *)
  6589. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6590. + _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'
  6591. ;;
  6592. esac
  6593. - ;;
  6594. - *)
  6595. - ;;
  6596. - esac
  6597. + fi
  6598. + else
  6599. + # FIXME: insert proper C++ library support
  6600. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6601. + fi
  6602. ;;
  6603. - interix*)
  6604. - # This is c89, which is MS Visual C++ (no shared libs)
  6605. - # Anyone wants to do a port?
  6606. + esac
  6607. + ;;
  6608. + interix3*)
  6609. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6610. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6611. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6612. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6613. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6614. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  6615. + # default) and relocated if they conflict, which is a slow very memory
  6616. + # consuming and fragmenting process. To avoid this, we pick a random,
  6617. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6618. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6619. + _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'
  6620. + _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'
  6621. + ;;
  6622. + irix5* | irix6*)
  6623. + case $cc_basename in
  6624. + CC*)
  6625. + # SGI C++
  6626. + _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'
  6627. +
  6628. + # Archives containing C++ object files must be created using
  6629. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  6630. + # necessary to make sure instantiated templates are included
  6631. + # in the archive.
  6632. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6633. ;;
  6634. - irix5* | irix6* | nonstopux*)
  6635. - case $cc_basename in
  6636. - CC*)
  6637. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6638. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6639. - # CC pic flag -KPIC is the default.
  6640. - ;;
  6641. - *)
  6642. - ;;
  6643. - esac
  6644. + *)
  6645. + if test "$GXX" = yes; then
  6646. + if test "$with_gnu_ld" = no; then
  6647. + _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'
  6648. + else
  6649. + _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'
  6650. + fi
  6651. + fi
  6652. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6653. ;;
  6654. - linux*)
  6655. - case $cc_basename in
  6656. - KCC*)
  6657. - # KAI C++ Compiler
  6658. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6659. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6660. - ;;
  6661. - icpc* | ecpc* )
  6662. - # Intel C++
  6663. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6664. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6665. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6666. - ;;
  6667. - pgCC*)
  6668. - # Portland Group C++ compiler
  6669. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6670. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6671. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6672. - ;;
  6673. - cxx*)
  6674. - # Compaq C++
  6675. - # Make sure the PIC flag is empty. It appears that all Alpha
  6676. - # Linux and Compaq Tru64 Unix objects are PIC.
  6677. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6678. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6679. - ;;
  6680. - *)
  6681. - ;;
  6682. + esac
  6683. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6684. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6685. + ;;
  6686. + linux*)
  6687. + case $cc_basename in
  6688. + KCC*)
  6689. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  6690. +
  6691. + # KCC will only create a shared library if the output file
  6692. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6693. + # to its proper name (with version) after linking.
  6694. + _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'
  6695. + _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'
  6696. + # Commands to make compiler produce verbose output that lists
  6697. + # what "hidden" libraries, object files and flags are used when
  6698. + # linking a shared library.
  6699. + #
  6700. + # There doesn't appear to be a way to prevent this compiler from
  6701. + # explicitly linking system object files so we need to strip them
  6702. + # from the output so that they don't get included in the library
  6703. + # dependencies.
  6704. + 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'
  6705. +
  6706. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  6707. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6708. +
  6709. + # Archives containing C++ object files must be created using
  6710. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6711. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6712. + ;;
  6713. + icpc*)
  6714. + # Intel C++
  6715. + with_gnu_ld=yes
  6716. + # version 8.0 and above of icpc choke on multiply defined symbols
  6717. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  6718. + # earlier do not add the objects themselves.
  6719. + case `$CC -V 2>&1` in
  6720. + *"Version 7."*)
  6721. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6722. + _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'
  6723. + ;;
  6724. + *) # Version 8.0 or newer
  6725. + tmp_idyn=
  6726. + case $host_cpu in
  6727. + ia64*) tmp_idyn=' -i_dynamic';;
  6728. + esac
  6729. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6730. + _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'
  6731. + ;;
  6732. esac
  6733. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6734. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6735. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6736. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6737. + ;;
  6738. + pgCC*)
  6739. + # Portland Group C++ compiler
  6740. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6741. + _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'
  6742. +
  6743. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  6744. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6745. + _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'
  6746. + ;;
  6747. + cxx*)
  6748. + # Compaq C++
  6749. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6750. + _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'
  6751. +
  6752. + runpath_var=LD_RUN_PATH
  6753. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6754. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6755. +
  6756. + # Commands to make compiler produce verbose output that lists
  6757. + # what "hidden" libraries, object files and flags are used when
  6758. + # linking a shared library.
  6759. + #
  6760. + # There doesn't appear to be a way to prevent this compiler from
  6761. + # explicitly linking system object files so we need to strip them
  6762. + # from the output so that they don't get included in the library
  6763. + # dependencies.
  6764. + 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'
  6765. ;;
  6766. - lynxos*)
  6767. - ;;
  6768. - m88k*)
  6769. + esac
  6770. + ;;
  6771. + lynxos*)
  6772. + # FIXME: insert proper C++ library support
  6773. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6774. + ;;
  6775. + m88k*)
  6776. + # FIXME: insert proper C++ library support
  6777. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6778. + ;;
  6779. + mvs*)
  6780. + case $cc_basename in
  6781. + cxx*)
  6782. + # FIXME: insert proper C++ library support
  6783. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6784. ;;
  6785. - mvs*)
  6786. - case $cc_basename in
  6787. - cxx*)
  6788. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  6789. - ;;
  6790. - *)
  6791. - ;;
  6792. - esac
  6793. + *)
  6794. + # FIXME: insert proper C++ library support
  6795. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6796. ;;
  6797. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  6798. + esac
  6799. + ;;
  6800. + netbsd*)
  6801. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6802. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6803. + wlarc=
  6804. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6805. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6806. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6807. + fi
  6808. + # Workaround some broken pre-1.5 toolchains
  6809. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6810. + ;;
  6811. + openbsd2*)
  6812. + # C++ shared libraries are fairly broken
  6813. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6814. + ;;
  6815. + openbsd*)
  6816. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6817. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6818. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6819. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6820. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6821. + _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'
  6822. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6823. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6824. + fi
  6825. + output_verbose_link_cmd='echo'
  6826. + ;;
  6827. + osf3*)
  6828. + case $cc_basename in
  6829. + KCC*)
  6830. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  6831. +
  6832. + # KCC will only create a shared library if the output file
  6833. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6834. + # to its proper name (with version) after linking.
  6835. + _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'
  6836. +
  6837. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6838. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6839. +
  6840. + # Archives containing C++ object files must be created using
  6841. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6842. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6843. +
  6844. + ;;
  6845. + RCC*)
  6846. + # Rational C++ 2.4.1
  6847. + # FIXME: insert proper C++ library support
  6848. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6849. + ;;
  6850. + cxx*)
  6851. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6852. + _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'
  6853. +
  6854. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6855. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6856. +
  6857. + # Commands to make compiler produce verbose output that lists
  6858. + # what "hidden" libraries, object files and flags are used when
  6859. + # linking a shared library.
  6860. + #
  6861. + # There doesn't appear to be a way to prevent this compiler from
  6862. + # explicitly linking system object files so we need to strip them
  6863. + # from the output so that they don't get included in the library
  6864. + # dependencies.
  6865. + 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'
  6866. ;;
  6867. - *qnx* | *nto*)
  6868. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  6869. - # it will coredump.
  6870. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6871. - ;;
  6872. - osf3* | osf4* | osf5*)
  6873. - case $cc_basename in
  6874. - KCC*)
  6875. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6876. - ;;
  6877. - RCC*)
  6878. - # Rational C++ 2.4.1
  6879. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6880. - ;;
  6881. - cxx*)
  6882. - # Digital/Compaq C++
  6883. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6884. - # Make sure the PIC flag is empty. It appears that all Alpha
  6885. - # Linux and Compaq Tru64 Unix objects are PIC.
  6886. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6887. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6888. - ;;
  6889. - *)
  6890. - ;;
  6891. - esac
  6892. + *)
  6893. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6894. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6895. + _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'
  6896. +
  6897. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6898. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6899. +
  6900. + # Commands to make compiler produce verbose output that lists
  6901. + # what "hidden" libraries, object files and flags are used when
  6902. + # linking a shared library.
  6903. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  6904. +
  6905. + else
  6906. + # FIXME: insert proper C++ library support
  6907. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6908. + fi
  6909. ;;
  6910. - psos*)
  6911. + esac
  6912. + ;;
  6913. + osf4* | osf5*)
  6914. + case $cc_basename in
  6915. + KCC*)
  6916. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  6917. +
  6918. + # KCC will only create a shared library if the output file
  6919. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6920. + # to its proper name (with version) after linking.
  6921. + _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'
  6922. +
  6923. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6924. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6925. +
  6926. + # Archives containing C++ object files must be created using
  6927. + # the KAI C++ compiler.
  6928. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  6929. + ;;
  6930. + RCC*)
  6931. + # Rational C++ 2.4.1
  6932. + # FIXME: insert proper C++ library support
  6933. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6934. + ;;
  6935. + cxx*)
  6936. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6937. + _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'
  6938. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6939. + echo "-hidden">> $lib.exp~
  6940. + $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~
  6941. + $rm $lib.exp'
  6942. +
  6943. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6944. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6945. +
  6946. + # Commands to make compiler produce verbose output that lists
  6947. + # what "hidden" libraries, object files and flags are used when
  6948. + # linking a shared library.
  6949. + #
  6950. + # There doesn't appear to be a way to prevent this compiler from
  6951. + # explicitly linking system object files so we need to strip them
  6952. + # from the output so that they don't get included in the library
  6953. + # dependencies.
  6954. + 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'
  6955. ;;
  6956. - solaris*)
  6957. - case $cc_basename in
  6958. - CC*)
  6959. - # Sun C++ 4.2, 5.x and Centerline C++
  6960. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6961. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6962. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6963. - ;;
  6964. - gcx*)
  6965. - # Green Hills C++ Compiler
  6966. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6967. - ;;
  6968. - *)
  6969. - ;;
  6970. - esac
  6971. + *)
  6972. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6973. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6974. + _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'
  6975. +
  6976. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6977. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6978. +
  6979. + # Commands to make compiler produce verbose output that lists
  6980. + # what "hidden" libraries, object files and flags are used when
  6981. + # linking a shared library.
  6982. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  6983. +
  6984. + else
  6985. + # FIXME: insert proper C++ library support
  6986. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6987. + fi
  6988. ;;
  6989. - sunos4*)
  6990. - case $cc_basename in
  6991. - CC*)
  6992. - # Sun C++ 4.x
  6993. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6994. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6995. - ;;
  6996. - lcc*)
  6997. - # Lucid
  6998. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6999. - ;;
  7000. - *)
  7001. - ;;
  7002. - esac
  7003. + esac
  7004. + ;;
  7005. + psos*)
  7006. + # FIXME: insert proper C++ library support
  7007. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7008. + ;;
  7009. + sunos4*)
  7010. + case $cc_basename in
  7011. + CC*)
  7012. + # Sun C++ 4.x
  7013. + # FIXME: insert proper C++ library support
  7014. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7015. + ;;
  7016. + lcc*)
  7017. + # Lucid
  7018. + # FIXME: insert proper C++ library support
  7019. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7020. ;;
  7021. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7022. - case $cc_basename in
  7023. - CC*)
  7024. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7025. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7026. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7027. - ;;
  7028. - esac
  7029. + *)
  7030. + # FIXME: insert proper C++ library support
  7031. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7032. ;;
  7033. - tandem*)
  7034. - case $cc_basename in
  7035. - NCC*)
  7036. - # NonStop-UX NCC 3.20
  7037. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7038. - ;;
  7039. + esac
  7040. + ;;
  7041. + solaris*)
  7042. + case $cc_basename in
  7043. + CC*)
  7044. + # Sun C++ 4.2, 5.x and Centerline C++
  7045. + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  7046. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7047. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7048. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7049. + $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'
  7050. +
  7051. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7052. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7053. + case $host_os in
  7054. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7055. *)
  7056. + # The C++ compiler is used as linker so we must use $wl
  7057. + # flag to pass the commands to the underlying system
  7058. + # linker. We must also pass each convience library through
  7059. + # to the system linker between allextract/defaultextract.
  7060. + # The C++ compiler will combine linker options so we
  7061. + # cannot just pass the convience library names through
  7062. + # without $wl.
  7063. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7064. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  7065. ;;
  7066. esac
  7067. - ;;
  7068. - vxworks*)
  7069. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7070. +
  7071. + output_verbose_link_cmd='echo'
  7072. +
  7073. + # Archives containing C++ object files must be created using
  7074. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7075. + # necessary to make sure instantiated templates are included
  7076. + # in the archive.
  7077. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7078. + ;;
  7079. + gcx*)
  7080. + # Green Hills C++ Compiler
  7081. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7082. +
  7083. + # The C++ compiler must be used to create the archive.
  7084. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  7085. ;;
  7086. *)
  7087. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7088. + # GNU C++ compiler with Solaris linker
  7089. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7090. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  7091. + if $CC --version | grep -v '^2\.7' > /dev/null; then
  7092. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7093. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7094. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  7095. +
  7096. + # Commands to make compiler produce verbose output that lists
  7097. + # what "hidden" libraries, object files and flags are used when
  7098. + # linking a shared library.
  7099. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  7100. + else
  7101. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  7102. + # platform.
  7103. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  7104. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7105. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  7106. +
  7107. + # Commands to make compiler produce verbose output that lists
  7108. + # what "hidden" libraries, object files and flags are used when
  7109. + # linking a shared library.
  7110. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  7111. + fi
  7112. +
  7113. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  7114. + fi
  7115. ;;
  7116. esac
  7117. - fi
  7118. -],
  7119. -[
  7120. - if test "$GCC" = yes; then
  7121. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7122. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7123. + ;;
  7124. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7125. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7126. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7127. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7128. + runpath_var='LD_RUN_PATH'
  7129. +
  7130. + case $cc_basename in
  7131. + CC*)
  7132. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7133. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7134. + ;;
  7135. + *)
  7136. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7137. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7138. + ;;
  7139. + esac
  7140. + ;;
  7141. + sysv5* | sco3.2v5* | sco5v6*)
  7142. + # Note: We can NOT use -z defs as we might desire, because we do not
  7143. + # link with -lc, and that would cause any symbols used from libc to
  7144. + # always be unresolved, which means just about no library would
  7145. + # ever link correctly. If we're not using GNU ld we use -z text
  7146. + # though, which does catch some bad symbols but isn't as heavy-handed
  7147. + # as -z defs.
  7148. + # For security reasons, it is highly recommended that you always
  7149. + # use absolute paths for naming shared libraries, and exclude the
  7150. + # DT_RUNPATH tag from executables and libraries. But doing so
  7151. + # requires that you compile everything twice, which is a pain.
  7152. + # So that behaviour is only enabled if SCOABSPATH is set to a
  7153. + # non-empty value in the environment. Most likely only useful for
  7154. + # creating official distributions of packages.
  7155. + # This is a hack until libtool officially supports absolute path
  7156. + # names for shared libraries.
  7157. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7158. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7159. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7160. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7161. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7162. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  7163. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7164. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7165. + runpath_var='LD_RUN_PATH'
  7166. +
  7167. + case $cc_basename in
  7168. + CC*)
  7169. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7170. + _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'
  7171. + ;;
  7172. + *)
  7173. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7174. + _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'
  7175. + ;;
  7176. + esac
  7177. + ;;
  7178. + tandem*)
  7179. + case $cc_basename in
  7180. + NCC*)
  7181. + # NonStop-UX NCC 3.20
  7182. + # FIXME: insert proper C++ library support
  7183. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7184. + ;;
  7185. + *)
  7186. + # FIXME: insert proper C++ library support
  7187. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7188. + ;;
  7189. + esac
  7190. + ;;
  7191. + vxworks*)
  7192. + # FIXME: insert proper C++ library support
  7193. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7194. + ;;
  7195. + *)
  7196. + # FIXME: insert proper C++ library support
  7197. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7198. + ;;
  7199. +esac
  7200. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  7201. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  7202. - case $host_os in
  7203. - aix*)
  7204. - # All AIX code is PIC.
  7205. - if test "$host_cpu" = ia64; then
  7206. - # AIX 5 now supports IA64 processor
  7207. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7208. - fi
  7209. +_LT_AC_TAGVAR(GCC, $1)="$GXX"
  7210. +_LT_AC_TAGVAR(LD, $1)="$LD"
  7211. +
  7212. +AC_LIBTOOL_POSTDEP_PREDEP($1)
  7213. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  7214. +AC_LIBTOOL_PROG_CC_C_O($1)
  7215. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  7216. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  7217. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  7218. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  7219. +
  7220. +AC_LIBTOOL_CONFIG($1)
  7221. +
  7222. +AC_LANG_POP
  7223. +CC=$lt_save_CC
  7224. +LDCXX=$LD
  7225. +LD=$lt_save_LD
  7226. +GCC=$lt_save_GCC
  7227. +with_gnu_ldcxx=$with_gnu_ld
  7228. +with_gnu_ld=$lt_save_with_gnu_ld
  7229. +lt_cv_path_LDCXX=$lt_cv_path_LD
  7230. +lt_cv_path_LD=$lt_save_path_LD
  7231. +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  7232. +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  7233. +])# AC_LIBTOOL_LANG_CXX_CONFIG
  7234. +
  7235. +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  7236. +# ------------------------------------
  7237. +# Figure out "hidden" library dependencies from verbose
  7238. +# compiler output when linking a shared library.
  7239. +# Parse the compiler output and extract the necessary
  7240. +# objects, libraries and library flags.
  7241. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  7242. +dnl we can't use the lt_simple_compile_test_code here,
  7243. +dnl because it contains code intended for an executable,
  7244. +dnl not a library. It's possible we should let each
  7245. +dnl tag define a new lt_????_link_test_code variable,
  7246. +dnl but it's only used here...
  7247. +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  7248. +int a;
  7249. +void foo (void) { a = 0; }
  7250. +EOF
  7251. +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  7252. +class Foo
  7253. +{
  7254. +public:
  7255. + Foo (void) { a = 0; }
  7256. +private:
  7257. + int a;
  7258. +};
  7259. +EOF
  7260. +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  7261. + subroutine foo
  7262. + implicit none
  7263. + integer*4 a
  7264. + a=0
  7265. + return
  7266. + end
  7267. +EOF
  7268. +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  7269. +public class foo {
  7270. + private int a;
  7271. + public void bar (void) {
  7272. + a = 0;
  7273. + }
  7274. +};
  7275. +EOF
  7276. +])
  7277. +dnl Parse the compiler output and extract the necessary
  7278. +dnl objects, libraries and library flags.
  7279. +if AC_TRY_EVAL(ac_compile); then
  7280. + # Parse the compiler output and extract the necessary
  7281. + # objects, libraries and library flags.
  7282. +
  7283. + # Sentinel used to keep track of whether or not we are before
  7284. + # the conftest object file.
  7285. + pre_test_object_deps_done=no
  7286. +
  7287. + # The `*' in the case matches for architectures that use `case' in
  7288. + # $output_verbose_cmd can trigger glob expansion during the loop
  7289. + # eval without this substitution.
  7290. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  7291. +
  7292. + for p in `eval $output_verbose_link_cmd`; do
  7293. + case $p in
  7294. +
  7295. + -L* | -R* | -l*)
  7296. + # Some compilers place space between "-{L,R}" and the path.
  7297. + # Remove the space.
  7298. + if test $p = "-L" \
  7299. + || test $p = "-R"; then
  7300. + prev=$p
  7301. + continue
  7302. + else
  7303. + prev=
  7304. + fi
  7305. +
  7306. + if test "$pre_test_object_deps_done" = no; then
  7307. + case $p in
  7308. + -L* | -R*)
  7309. + # Internal compiler library paths should come after those
  7310. + # provided the user. The postdeps already come after the
  7311. + # user supplied libs so there is no need to process them.
  7312. + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  7313. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  7314. + else
  7315. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  7316. + fi
  7317. + ;;
  7318. + # The "-l" case would never come before the object being
  7319. + # linked, so don't bother handling this case.
  7320. + esac
  7321. + else
  7322. + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  7323. + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  7324. + else
  7325. + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  7326. + fi
  7327. + fi
  7328. + ;;
  7329. +
  7330. + *.$objext)
  7331. + # This assumes that the test object file only shows up
  7332. + # once in the compiler output.
  7333. + if test "$p" = "conftest.$objext"; then
  7334. + pre_test_object_deps_done=yes
  7335. + continue
  7336. + fi
  7337. +
  7338. + if test "$pre_test_object_deps_done" = no; then
  7339. + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  7340. + _LT_AC_TAGVAR(predep_objects, $1)="$p"
  7341. + else
  7342. + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  7343. + fi
  7344. + else
  7345. + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  7346. + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  7347. + else
  7348. + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  7349. + fi
  7350. + fi
  7351. + ;;
  7352. +
  7353. + *) ;; # Ignore the rest.
  7354. +
  7355. + esac
  7356. + done
  7357. +
  7358. + # Clean up.
  7359. + rm -f a.out a.exe
  7360. +else
  7361. + echo "libtool.m4: error: problem compiling $1 test program"
  7362. +fi
  7363. +
  7364. +$rm -f confest.$objext
  7365. +
  7366. +# PORTME: override above test on systems where it is broken
  7367. +ifelse([$1],[CXX],
  7368. +[case $host_os in
  7369. +interix3*)
  7370. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  7371. + # hack all around it, let's just trust "g++" to DTRT.
  7372. + _LT_AC_TAGVAR(predep_objects,$1)=
  7373. + _LT_AC_TAGVAR(postdep_objects,$1)=
  7374. + _LT_AC_TAGVAR(postdeps,$1)=
  7375. + ;;
  7376. +
  7377. +solaris*)
  7378. + case $cc_basename in
  7379. + CC*)
  7380. + # Adding this requires a known-good setup of shared libraries for
  7381. + # Sun compiler versions before 5.6, else PIC objects from an old
  7382. + # archive will be linked into the output, leading to subtle bugs.
  7383. + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  7384. + ;;
  7385. + esac
  7386. + ;;
  7387. +esac
  7388. +])
  7389. +
  7390. +case " $_LT_AC_TAGVAR(postdeps, $1) " in
  7391. +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  7392. +esac
  7393. +])# AC_LIBTOOL_POSTDEP_PREDEP
  7394. +
  7395. +# AC_LIBTOOL_LANG_F77_CONFIG
  7396. +# --------------------------
  7397. +# Ensure that the configuration vars for the C compiler are
  7398. +# suitably defined. Those variables are subsequently used by
  7399. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  7400. +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  7401. +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  7402. +[AC_REQUIRE([AC_PROG_F77])
  7403. +AC_LANG_PUSH(Fortran 77)
  7404. +
  7405. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7406. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  7407. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  7408. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  7409. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  7410. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  7411. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7412. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7413. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  7414. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  7415. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  7416. +_LT_AC_TAGVAR(module_cmds, $1)=
  7417. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  7418. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  7419. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7420. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  7421. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7422. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7423. +
  7424. +# Source file extension for f77 test sources.
  7425. +ac_ext=f
  7426. +
  7427. +# Object file extension for compiled f77 test sources.
  7428. +objext=o
  7429. +_LT_AC_TAGVAR(objext, $1)=$objext
  7430. +
  7431. +# Code to be used in simple compile tests
  7432. +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  7433. +
  7434. +# Code to be used in simple link tests
  7435. +lt_simple_link_test_code=" program t\n end\n"
  7436. +
  7437. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7438. +_LT_AC_SYS_COMPILER
  7439. +
  7440. +# save warnings/boilerplate of simple test code
  7441. +_LT_COMPILER_BOILERPLATE
  7442. +_LT_LINKER_BOILERPLATE
  7443. +
  7444. +# Allow CC to be a program name with arguments.
  7445. +lt_save_CC="$CC"
  7446. +CC=${F77-"f77"}
  7447. +compiler=$CC
  7448. +_LT_AC_TAGVAR(compiler, $1)=$CC
  7449. +_LT_CC_BASENAME([$compiler])
  7450. +
  7451. +AC_MSG_CHECKING([if libtool supports shared libraries])
  7452. +AC_MSG_RESULT([$can_build_shared])
  7453. +
  7454. +AC_MSG_CHECKING([whether to build shared libraries])
  7455. +test "$can_build_shared" = "no" && enable_shared=no
  7456. +
  7457. +# On AIX, shared libraries and static libraries use the same namespace, and
  7458. +# are all built from PIC.
  7459. +case $host_os in
  7460. +aix3*)
  7461. + test "$enable_shared" = yes && enable_static=no
  7462. + if test -n "$RANLIB"; then
  7463. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7464. + postinstall_cmds='$RANLIB $lib'
  7465. + fi
  7466. + ;;
  7467. +aix4* | aix5*)
  7468. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7469. + test "$enable_shared" = yes && enable_static=no
  7470. + fi
  7471. + ;;
  7472. +esac
  7473. +AC_MSG_RESULT([$enable_shared])
  7474. +
  7475. +AC_MSG_CHECKING([whether to build static libraries])
  7476. +# Make sure either enable_shared or enable_static is yes.
  7477. +test "$enable_shared" = yes || enable_static=yes
  7478. +AC_MSG_RESULT([$enable_static])
  7479. +
  7480. +_LT_AC_TAGVAR(GCC, $1)="$G77"
  7481. +_LT_AC_TAGVAR(LD, $1)="$LD"
  7482. +
  7483. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  7484. +AC_LIBTOOL_PROG_CC_C_O($1)
  7485. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  7486. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  7487. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  7488. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  7489. +
  7490. +AC_LIBTOOL_CONFIG($1)
  7491. +
  7492. +AC_LANG_POP
  7493. +CC="$lt_save_CC"
  7494. +])# AC_LIBTOOL_LANG_F77_CONFIG
  7495. +
  7496. +
  7497. +# AC_LIBTOOL_LANG_GCJ_CONFIG
  7498. +# --------------------------
  7499. +# Ensure that the configuration vars for the C compiler are
  7500. +# suitably defined. Those variables are subsequently used by
  7501. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  7502. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  7503. +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  7504. +[AC_LANG_SAVE
  7505. +
  7506. +# Source file extension for Java test sources.
  7507. +ac_ext=java
  7508. +
  7509. +# Object file extension for compiled Java test sources.
  7510. +objext=o
  7511. +_LT_AC_TAGVAR(objext, $1)=$objext
  7512. +
  7513. +# Code to be used in simple compile tests
  7514. +lt_simple_compile_test_code="class foo {}\n"
  7515. +
  7516. +# Code to be used in simple link tests
  7517. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  7518. +
  7519. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7520. +_LT_AC_SYS_COMPILER
  7521. +
  7522. +# save warnings/boilerplate of simple test code
  7523. +_LT_COMPILER_BOILERPLATE
  7524. +_LT_LINKER_BOILERPLATE
  7525. +
  7526. +# Allow CC to be a program name with arguments.
  7527. +lt_save_CC="$CC"
  7528. +CC=${GCJ-"gcj"}
  7529. +compiler=$CC
  7530. +_LT_AC_TAGVAR(compiler, $1)=$CC
  7531. +_LT_CC_BASENAME([$compiler])
  7532. +
  7533. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  7534. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7535. +
  7536. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7537. +
  7538. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  7539. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  7540. +AC_LIBTOOL_PROG_CC_C_O($1)
  7541. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  7542. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  7543. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  7544. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  7545. +
  7546. +AC_LIBTOOL_CONFIG($1)
  7547. +
  7548. +AC_LANG_RESTORE
  7549. +CC="$lt_save_CC"
  7550. +])# AC_LIBTOOL_LANG_GCJ_CONFIG
  7551. +
  7552. +
  7553. +# AC_LIBTOOL_LANG_RC_CONFIG
  7554. +# -------------------------
  7555. +# Ensure that the configuration vars for the Windows resource compiler are
  7556. +# suitably defined. Those variables are subsequently used by
  7557. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  7558. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  7559. +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  7560. +[AC_LANG_SAVE
  7561. +
  7562. +# Source file extension for RC test sources.
  7563. +ac_ext=rc
  7564. +
  7565. +# Object file extension for compiled RC test sources.
  7566. +objext=o
  7567. +_LT_AC_TAGVAR(objext, $1)=$objext
  7568. +
  7569. +# Code to be used in simple compile tests
  7570. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  7571. +
  7572. +# Code to be used in simple link tests
  7573. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  7574. +
  7575. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7576. +_LT_AC_SYS_COMPILER
  7577. +
  7578. +# save warnings/boilerplate of simple test code
  7579. +_LT_COMPILER_BOILERPLATE
  7580. +_LT_LINKER_BOILERPLATE
  7581. +
  7582. +# Allow CC to be a program name with arguments.
  7583. +lt_save_CC="$CC"
  7584. +CC=${RC-"windres"}
  7585. +compiler=$CC
  7586. +_LT_AC_TAGVAR(compiler, $1)=$CC
  7587. +_LT_CC_BASENAME([$compiler])
  7588. +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7589. +
  7590. +AC_LIBTOOL_CONFIG($1)
  7591. +
  7592. +AC_LANG_RESTORE
  7593. +CC="$lt_save_CC"
  7594. +])# AC_LIBTOOL_LANG_RC_CONFIG
  7595. +
  7596. +
  7597. +# AC_LIBTOOL_CONFIG([TAGNAME])
  7598. +# ----------------------------
  7599. +# If TAGNAME is not passed, then create an initial libtool script
  7600. +# with a default configuration from the untagged config vars. Otherwise
  7601. +# add code to config.status for appending the configuration named by
  7602. +# TAGNAME from the matching tagged config vars.
  7603. +AC_DEFUN([AC_LIBTOOL_CONFIG],
  7604. +[# The else clause should only fire when bootstrapping the
  7605. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  7606. +# with your package, and you will get complaints that there are
  7607. +# no rules to generate ltmain.sh.
  7608. +if test -f "$ltmain"; then
  7609. + # See if we are running on zsh, and set the options which allow our commands through
  7610. + # without removal of \ escapes.
  7611. + if test -n "${ZSH_VERSION+set}" ; then
  7612. + setopt NO_GLOB_SUBST
  7613. + fi
  7614. + # Now quote all the things that may contain metacharacters while being
  7615. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  7616. + # variables and quote the copies for generation of the libtool script.
  7617. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  7618. + SED SHELL STRIP \
  7619. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7620. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7621. + deplibs_check_method reload_flag reload_cmds need_locks \
  7622. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7623. + lt_cv_sys_global_symbol_to_c_name_address \
  7624. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7625. + old_postinstall_cmds old_postuninstall_cmds \
  7626. + _LT_AC_TAGVAR(compiler, $1) \
  7627. + _LT_AC_TAGVAR(CC, $1) \
  7628. + _LT_AC_TAGVAR(LD, $1) \
  7629. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  7630. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  7631. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  7632. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  7633. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  7634. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  7635. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  7636. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  7637. + _LT_AC_TAGVAR(old_archive_cmds, $1) \
  7638. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  7639. + _LT_AC_TAGVAR(predep_objects, $1) \
  7640. + _LT_AC_TAGVAR(postdep_objects, $1) \
  7641. + _LT_AC_TAGVAR(predeps, $1) \
  7642. + _LT_AC_TAGVAR(postdeps, $1) \
  7643. + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  7644. + _LT_AC_TAGVAR(archive_cmds, $1) \
  7645. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  7646. + _LT_AC_TAGVAR(postinstall_cmds, $1) \
  7647. + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  7648. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  7649. + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  7650. + _LT_AC_TAGVAR(no_undefined_flag, $1) \
  7651. + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  7652. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  7653. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  7654. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  7655. + _LT_AC_TAGVAR(hardcode_automatic, $1) \
  7656. + _LT_AC_TAGVAR(module_cmds, $1) \
  7657. + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  7658. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  7659. + _LT_AC_TAGVAR(exclude_expsyms, $1) \
  7660. + _LT_AC_TAGVAR(include_expsyms, $1); do
  7661. +
  7662. + case $var in
  7663. + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  7664. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  7665. + _LT_AC_TAGVAR(archive_cmds, $1) | \
  7666. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  7667. + _LT_AC_TAGVAR(module_cmds, $1) | \
  7668. + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  7669. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  7670. + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  7671. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7672. + postinstall_cmds | postuninstall_cmds | \
  7673. + old_postinstall_cmds | old_postuninstall_cmds | \
  7674. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7675. + # Double-quote double-evaled strings.
  7676. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7677. + ;;
  7678. + *)
  7679. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7680. ;;
  7681. + esac
  7682. + done
  7683. - amigaos*)
  7684. - if test "$host_cpu" = m68k; then
  7685. - # FIXME: we need at least 68020 code to build shared libraries, but
  7686. - # adding the `-m68020' flag to GCC prevents building anything better,
  7687. - # like `-m68040'.
  7688. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7689. - fi
  7690. - ;;
  7691. + case $lt_echo in
  7692. + *'\[$]0 --fallback-echo"')
  7693. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  7694. + ;;
  7695. + esac
  7696. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7697. - # PIC is the default for these OSes.
  7698. - ;;
  7699. +ifelse([$1], [],
  7700. + [cfgfile="${ofile}T"
  7701. + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7702. + $rm -f "$cfgfile"
  7703. + AC_MSG_NOTICE([creating $ofile])],
  7704. + [cfgfile="$ofile"])
  7705. +
  7706. + cat <<__EOF__ >> "$cfgfile"
  7707. +ifelse([$1], [],
  7708. +[#! $SHELL
  7709. - mingw* | pw32* | os2*)
  7710. - # This hack is so that the source file can tell whether it is being
  7711. - # built for inclusion in a dll (and should export symbols for example).
  7712. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7713. - ;;
  7714. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7715. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7716. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7717. +#
  7718. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7719. +# Free Software Foundation, Inc.
  7720. +#
  7721. +# This file is part of GNU Libtool:
  7722. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7723. +#
  7724. +# This program is free software; you can redistribute it and/or modify
  7725. +# it under the terms of the GNU General Public License as published by
  7726. +# the Free Software Foundation; either version 2 of the License, or
  7727. +# (at your option) any later version.
  7728. +#
  7729. +# This program is distributed in the hope that it will be useful, but
  7730. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  7731. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7732. +# General Public License for more details.
  7733. +#
  7734. +# You should have received a copy of the GNU General Public License
  7735. +# along with this program; if not, write to the Free Software
  7736. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7737. +#
  7738. +# As a special exception to the GNU General Public License, if you
  7739. +# distribute this file as part of a program that contains a
  7740. +# configuration script generated by Autoconf, you may include it under
  7741. +# the same distribution terms that you use for the rest of that program.
  7742. - darwin* | rhapsody*)
  7743. - # PIC is the default on this platform
  7744. - # Common symbols not allowed in MH_DYLIB files
  7745. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7746. - ;;
  7747. +# A sed program that does not truncate output.
  7748. +SED=$lt_SED
  7749. - hpux*)
  7750. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7751. - # not for PA HP-UX.
  7752. - case $host_cpu in
  7753. - hppa*64*|ia64*)
  7754. - # +Z the default
  7755. - ;;
  7756. - *)
  7757. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7758. - ;;
  7759. - esac
  7760. - ;;
  7761. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7762. +Xsed="$SED -e 1s/^X//"
  7763. - interix3*)
  7764. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7765. - # Instead, we relocate shared libraries at runtime.
  7766. - ;;
  7767. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  7768. +# if CDPATH is set.
  7769. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7770. - msdosdjgpp*)
  7771. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  7772. - # on systems that don't support them.
  7773. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7774. - enable_shared=no
  7775. - ;;
  7776. +# The names of the tagged configurations supported by this script.
  7777. +available_tags=
  7778. - *nto* | *qnx*)
  7779. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  7780. - # it will coredump.
  7781. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7782. - ;;
  7783. +# ### BEGIN LIBTOOL CONFIG],
  7784. +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7785. - sysv4*MP*)
  7786. - if test -d /usr/nec; then
  7787. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7788. - fi
  7789. - ;;
  7790. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7791. - *)
  7792. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7793. - ;;
  7794. - esac
  7795. - else
  7796. - # PORTME Check for flag to pass linker flags through the system compiler.
  7797. - case $host_os in
  7798. - aix*)
  7799. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7800. - if test "$host_cpu" = ia64; then
  7801. - # AIX 5 now supports IA64 processor
  7802. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7803. - else
  7804. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7805. - fi
  7806. - ;;
  7807. - darwin*)
  7808. - # PIC is the default on this platform
  7809. - # Common symbols not allowed in MH_DYLIB files
  7810. - case $cc_basename in
  7811. - xlc*)
  7812. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  7813. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7814. - ;;
  7815. - esac
  7816. - ;;
  7817. +# Shell to use when invoking shell scripts.
  7818. +SHELL=$lt_SHELL
  7819. - mingw* | pw32* | os2*)
  7820. - # This hack is so that the source file can tell whether it is being
  7821. - # built for inclusion in a dll (and should export symbols for example).
  7822. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7823. - ;;
  7824. +# Whether or not to build shared libraries.
  7825. +build_libtool_libs=$enable_shared
  7826. - hpux9* | hpux10* | hpux11*)
  7827. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7828. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7829. - # not for PA HP-UX.
  7830. - case $host_cpu in
  7831. - hppa*64*|ia64*)
  7832. - # +Z the default
  7833. - ;;
  7834. - *)
  7835. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7836. - ;;
  7837. - esac
  7838. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7839. - _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7840. - ;;
  7841. +# Whether or not to build static libraries.
  7842. +build_old_libs=$enable_static
  7843. - irix5* | irix6* | nonstopux*)
  7844. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7845. - # PIC (with -KPIC) is the default.
  7846. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7847. - ;;
  7848. +# Whether or not to add -lc for building shared libraries.
  7849. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7850. - linux*)
  7851. - case $cc_basename in
  7852. - icc* | ecc*)
  7853. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7854. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7855. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7856. - ;;
  7857. - pgcc* | pgf77* | pgf90* | pgf95*)
  7858. - # Portland Group compilers (*not* the Pentium gcc compiler,
  7859. - # which looks to be a dead project)
  7860. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7861. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7862. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7863. - ;;
  7864. - ccc*)
  7865. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7866. - # All Alpha code is PIC.
  7867. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7868. - ;;
  7869. - esac
  7870. - ;;
  7871. +# Whether or not to disallow shared libs when runtime libs are static
  7872. +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7873. - newsos6)
  7874. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7875. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7876. - ;;
  7877. +# Whether or not to optimize for fast installation.
  7878. +fast_install=$enable_fast_install
  7879. - *nto* | *qnx*)
  7880. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  7881. - # it will coredump.
  7882. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7883. - ;;
  7884. +# The host system.
  7885. +host_alias=$host_alias
  7886. +host=$host
  7887. +host_os=$host_os
  7888. - osf3* | osf4* | osf5*)
  7889. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7890. - # All OSF/1 code is PIC.
  7891. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7892. - ;;
  7893. +# The build system.
  7894. +build_alias=$build_alias
  7895. +build=$build
  7896. +build_os=$build_os
  7897. - solaris*)
  7898. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7899. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7900. - case $cc_basename in
  7901. - f77* | f90* | f95*)
  7902. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7903. - *)
  7904. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7905. - esac
  7906. - ;;
  7907. +# An echo program that does not interpret backslashes.
  7908. +echo=$lt_echo
  7909. - sunos4*)
  7910. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7911. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7912. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7913. - ;;
  7914. +# The archiver.
  7915. +AR=$lt_AR
  7916. +AR_FLAGS=$lt_AR_FLAGS
  7917. - sysv4 | sysv4.2uw2* | sysv4.3*)
  7918. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7919. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7920. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7921. - ;;
  7922. +# A C compiler.
  7923. +LTCC=$lt_LTCC
  7924. - sysv4*MP*)
  7925. - if test -d /usr/nec ;then
  7926. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7927. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7928. - fi
  7929. - ;;
  7930. +# LTCC compiler flags.
  7931. +LTCFLAGS=$lt_LTCFLAGS
  7932. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7933. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7934. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7935. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7936. - ;;
  7937. +# A language-specific compiler.
  7938. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7939. - unicos*)
  7940. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7941. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7942. - ;;
  7943. +# Is the compiler the GNU C compiler?
  7944. +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7945. - uts4*)
  7946. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7947. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7948. - ;;
  7949. +# An ERE matcher.
  7950. +EGREP=$lt_EGREP
  7951. - *)
  7952. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7953. - ;;
  7954. - esac
  7955. - fi
  7956. -])
  7957. -case $host_os in
  7958. - # For platforms which do not support PIC, -DPIC is meaningless:
  7959. - *djgpp*)
  7960. - _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7961. - ;;
  7962. - *)
  7963. - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7964. - ;;
  7965. -esac
  7966. -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7967. -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7968. - [How to pass a linker flag through the compiler])
  7969. +# The linker used to build libraries.
  7970. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7971. -#
  7972. -# Check to make sure the PIC flag actually works.
  7973. -#
  7974. -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7975. - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7976. - [_LT_TAGVAR(lt_prog_compiler_pic_works, $1)],
  7977. - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7978. - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7979. - "" | " "*) ;;
  7980. - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7981. - esac],
  7982. - [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7983. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7984. -fi
  7985. -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7986. - [Additional compiler flags for building library objects])
  7987. +# Whether we need hard or soft links.
  7988. +LN_S=$lt_LN_S
  7989. -#
  7990. -# Check to make sure the static flag actually works.
  7991. -#
  7992. -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7993. -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7994. - _LT_TAGVAR(lt_prog_compiler_static_works, $1),
  7995. - $lt_tmp_static_flag,
  7996. - [],
  7997. - [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7998. -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7999. - [Compiler flag to prevent dynamic linking])
  8000. -])# _LT_COMPILER_PIC
  8001. +# A BSD-compatible nm program.
  8002. +NM=$lt_NM
  8003. +# A symbol stripping program
  8004. +STRIP=$lt_STRIP
  8005. -# _LT_LINKER_SHLIBS([TAGNAME])
  8006. -# ----------------------------
  8007. -# See if the linker supports building shared libraries.
  8008. -m4_defun([_LT_LINKER_SHLIBS],
  8009. -[AC_REQUIRE([LT_PATH_LD])dnl
  8010. -AC_REQUIRE([LT_PATH_NM])dnl
  8011. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8012. -m4_require([_LT_DECL_EGREP])dnl
  8013. -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  8014. -m4_require([_LT_TAG_COMPILER])dnl
  8015. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  8016. -m4_if([$1], [CXX], [
  8017. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8018. - case $host_os in
  8019. - aix4* | aix5*)
  8020. - # If we're using GNU nm, then we don't want the "-C" option.
  8021. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8022. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8023. - _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'
  8024. - else
  8025. - _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'
  8026. - fi
  8027. - ;;
  8028. - pw32*)
  8029. - _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  8030. - ;;
  8031. - cygwin* | mingw*)
  8032. - _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'
  8033. - ;;
  8034. - kfreebsd*-gnu)
  8035. - _LT_TAGVAR(link_all_deplibs, $1)=no
  8036. - ;;
  8037. - linux*)
  8038. - _LT_TAGVAR(link_all_deplibs, $1)=no
  8039. - ;;
  8040. - *)
  8041. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8042. - ;;
  8043. - esac
  8044. -], [
  8045. - runpath_var=
  8046. - _LT_TAGVAR(allow_undefined_flag, $1)=
  8047. - _LT_TAGVAR(always_export_symbols, $1)=no
  8048. - _LT_TAGVAR(archive_cmds, $1)=
  8049. - _LT_TAGVAR(archive_expsym_cmds, $1)=
  8050. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8051. - _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8052. - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8053. - _LT_TAGVAR(hardcode_automatic, $1)=no
  8054. - _LT_TAGVAR(hardcode_direct, $1)=no
  8055. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8056. - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8057. - _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8058. - _LT_TAGVAR(hardcode_minus_L, $1)=no
  8059. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8060. - _LT_TAGVAR(inherit_rpath, $1)=no
  8061. - _LT_TAGVAR(link_all_deplibs, $1)=unknown
  8062. - _LT_TAGVAR(module_cmds, $1)=
  8063. - _LT_TAGVAR(module_expsym_cmds, $1)=
  8064. - _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  8065. - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  8066. - _LT_TAGVAR(thread_safe_flag_spec, $1)=
  8067. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8068. - # include_expsyms should be a list of space-separated symbols to be *always*
  8069. - # included in the symbol list
  8070. - _LT_TAGVAR(include_expsyms, $1)=
  8071. - # exclude_expsyms can be an extended regexp of symbols to exclude
  8072. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8073. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8074. - # as well as any symbol that contains `d'.
  8075. - _LT_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  8076. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8077. - # platforms (ab)use it in PIC code, but their linkers get confused if
  8078. - # the symbol is explicitly referenced. Since portable code cannot
  8079. - # rely on this symbol name, it's probably fine to never include it in
  8080. - # preloaded symbol tables.
  8081. - extract_expsyms_cmds=
  8082. +# Used to examine libraries when file_magic_cmd begins "file"
  8083. +MAGIC_CMD=$MAGIC_CMD
  8084. - case $host_os in
  8085. - cygwin* | mingw* | pw32*)
  8086. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8087. - # When not using gcc, we currently assume that we are using
  8088. - # Microsoft Visual C++.
  8089. - if test "$GCC" != yes; then
  8090. - with_gnu_ld=no
  8091. - fi
  8092. - ;;
  8093. - interix*)
  8094. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  8095. - with_gnu_ld=yes
  8096. - ;;
  8097. - openbsd*)
  8098. - with_gnu_ld=no
  8099. - ;;
  8100. - esac
  8101. +# Used on cygwin: DLL creation program.
  8102. +DLLTOOL="$DLLTOOL"
  8103. - _LT_TAGVAR(ld_shlibs, $1)=yes
  8104. - if test "$with_gnu_ld" = yes; then
  8105. - # If archive_cmds runs LD, not CC, wlarc should be empty
  8106. - wlarc='${wl}'
  8107. +# Used on cygwin: object dumper.
  8108. +OBJDUMP="$OBJDUMP"
  8109. - # Set some defaults for GNU ld with shared library support. These
  8110. - # are reset later if shared libraries are not supported. Putting them
  8111. - # here allows them to be overridden if necessary.
  8112. - runpath_var=LD_RUN_PATH
  8113. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8114. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8115. - # ancient GNU ld didn't support --whole-archive et. al.
  8116. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8117. - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8118. - else
  8119. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8120. - fi
  8121. - supports_anon_versioning=no
  8122. - case `$LD -v 2>&1` in
  8123. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  8124. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8125. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8126. - *\ 2.11.*) ;; # other 2.11 versions
  8127. - *) supports_anon_versioning=yes ;;
  8128. - esac
  8129. +# Used on cygwin: assembler.
  8130. +AS="$AS"
  8131. - # See if GNU ld supports shared libraries.
  8132. - case $host_os in
  8133. - aix3* | aix4* | aix5*)
  8134. - # On AIX/PPC, the GNU linker is very broken
  8135. - if test "$host_cpu" != ia64; then
  8136. - _LT_TAGVAR(ld_shlibs, $1)=no
  8137. - cat <<_LT_EOF 1>&2
  8138. +# The name of the directory that contains temporary libtool files.
  8139. +objdir=$objdir
  8140. +
  8141. +# How to create reloadable object files.
  8142. +reload_flag=$lt_reload_flag
  8143. +reload_cmds=$lt_reload_cmds
  8144. +
  8145. +# How to pass a linker flag through the compiler.
  8146. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  8147. +
  8148. +# Object file suffix (normally "o").
  8149. +objext="$ac_objext"
  8150. +
  8151. +# Old archive suffix (normally "a").
  8152. +libext="$libext"
  8153. +
  8154. +# Shared library suffix (normally ".so").
  8155. +shrext_cmds='$shrext_cmds'
  8156. +
  8157. +# Executable file suffix (normally "").
  8158. +exeext="$exeext"
  8159. +
  8160. +# Additional compiler flags for building library objects.
  8161. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  8162. +pic_mode=$pic_mode
  8163. +
  8164. +# What is the maximum length of a command?
  8165. +max_cmd_len=$lt_cv_sys_max_cmd_len
  8166. +
  8167. +# Does compiler simultaneously support -c and -o options?
  8168. +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  8169. +
  8170. +# Must we lock files when doing compilation?
  8171. +need_locks=$lt_need_locks
  8172. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8173. -*** to be unable to reliably create shared libraries on AIX.
  8174. -*** Therefore, libtool is disabling shared libraries support. If you
  8175. -*** really care for shared libraries, you may want to modify your PATH
  8176. -*** so that a non-GNU linker is found, and then restart.
  8177. +# Do we need the lib prefix for modules?
  8178. +need_lib_prefix=$need_lib_prefix
  8179. -_LT_EOF
  8180. - fi
  8181. - ;;
  8182. +# Do we need a version for libraries?
  8183. +need_version=$need_version
  8184. - amigaos*)
  8185. - if test "$host_cpu" = m68k; then
  8186. - _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)'
  8187. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8188. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8189. - fi
  8190. +# Whether dlopen is supported.
  8191. +dlopen_support=$enable_dlopen
  8192. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  8193. - # that the semantics of dynamic libraries on AmigaOS, at least up
  8194. - # to version 4, is to share data among multiple programs linked
  8195. - # with the same dynamic library. Since this doesn't match the
  8196. - # behavior of shared libraries on other platforms, we can't use
  8197. - # them.
  8198. - _LT_TAGVAR(ld_shlibs, $1)=no
  8199. - ;;
  8200. +# Whether dlopen of programs is supported.
  8201. +dlopen_self=$enable_dlopen_self
  8202. - beos*)
  8203. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8204. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8205. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8206. - # support --undefined. This deserves some investigation. FIXME
  8207. - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8208. - else
  8209. - _LT_TAGVAR(ld_shlibs, $1)=no
  8210. - fi
  8211. - ;;
  8212. +# Whether dlopen of statically linked programs is supported.
  8213. +dlopen_self_static=$enable_dlopen_self_static
  8214. - cygwin* | mingw* | pw32*)
  8215. - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  8216. - # as there is no search path for DLLs.
  8217. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8218. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8219. - _LT_TAGVAR(always_export_symbols, $1)=no
  8220. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8221. - _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'
  8222. +# Compiler flag to prevent dynamic linking.
  8223. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  8224. - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8225. - _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'
  8226. - # If the export-symbols file already is a .def file (1st line
  8227. - # is EXPORTS), use it as is; otherwise, prepend...
  8228. - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8229. - cp $export_symbols $output_objdir/$soname.def;
  8230. - else
  8231. - echo EXPORTS > $output_objdir/$soname.def;
  8232. - cat $export_symbols >> $output_objdir/$soname.def;
  8233. - fi~
  8234. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8235. - else
  8236. - _LT_TAGVAR(ld_shlibs, $1)=no
  8237. - fi
  8238. - ;;
  8239. +# Compiler flag to turn off builtin functions.
  8240. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  8241. - interix3*)
  8242. - _LT_TAGVAR(hardcode_direct, $1)=no
  8243. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8244. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8245. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8246. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8247. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  8248. - # default) and relocated if they conflict, which is a slow very memory
  8249. - # consuming and fragmenting process. To avoid this, we pick a random,
  8250. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8251. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8252. - _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'
  8253. - _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'
  8254. - ;;
  8255. +# Compiler flag to allow reflexive dlopens.
  8256. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  8257. - linux*|tpf*)
  8258. - tmp_diet=no
  8259. - if test "$host_os" = linux-dietlibc; then
  8260. - case $cc_basename in
  8261. - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8262. - esac
  8263. - fi
  8264. - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8265. - && test "$tmp_diet" = no
  8266. - then
  8267. - tmp_addflag=
  8268. - case $cc_basename,$host_cpu in
  8269. - pgcc*) # Portland Group C compiler
  8270. - _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'
  8271. - tmp_addflag=' $pic_flag'
  8272. - ;;
  8273. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8274. - _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'
  8275. - tmp_addflag=' $pic_flag -Mnomain' ;;
  8276. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8277. - tmp_addflag=' -i_dynamic' ;;
  8278. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8279. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  8280. - ifc* | ifort*) # Intel Fortran compiler
  8281. - tmp_addflag=' -nofor_main' ;;
  8282. - esac
  8283. +# Compiler flag to generate shared objects directly from archives.
  8284. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  8285. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8286. +# Compiler flag to generate thread-safe objects.
  8287. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  8288. - if test "x$supports_anon_versioning" = xyes; then
  8289. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~echo "local: *; };" >> $output_objdir/$libname.ver~$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8290. - fi
  8291. - _LT_TAGVAR(link_all_deplibs, $1)=no
  8292. - else
  8293. - _LT_TAGVAR(ld_shlibs, $1)=no
  8294. - fi
  8295. - ;;
  8296. +# Library versioning type.
  8297. +version_type=$version_type
  8298. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  8299. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8300. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8301. - wlarc=
  8302. - else
  8303. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8304. - _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'
  8305. - fi
  8306. - ;;
  8307. +# Format of library name prefix.
  8308. +libname_spec=$lt_libname_spec
  8309. - solaris*)
  8310. - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8311. - _LT_TAGVAR(ld_shlibs, $1)=no
  8312. - cat <<_LT_EOF 1>&2
  8313. +# List of archive names. First name is the real one, the rest are links.
  8314. +# The last name is the one that the linker finds with -lNAME.
  8315. +library_names_spec=$lt_library_names_spec
  8316. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8317. -*** create shared libraries on Solaris systems. Therefore, libtool
  8318. -*** is disabling shared libraries support. We urge you to upgrade GNU
  8319. -*** binutils to release 2.9.1 or newer. Another option is to modify
  8320. -*** your PATH or compiler configuration so that the native linker is
  8321. -*** used, and then restart.
  8322. +# The coded name of the library, if different from the real name.
  8323. +soname_spec=$lt_soname_spec
  8324. -_LT_EOF
  8325. - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8326. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8327. - _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'
  8328. - else
  8329. - _LT_TAGVAR(ld_shlibs, $1)=no
  8330. - fi
  8331. - ;;
  8332. +# Commands used to build and install an old-style archive.
  8333. +RANLIB=$lt_RANLIB
  8334. +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  8335. +old_postinstall_cmds=$lt_old_postinstall_cmds
  8336. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8337. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8338. - case `$LD -v 2>&1` in
  8339. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8340. - _LT_TAGVAR(ld_shlibs, $1)=no
  8341. - cat <<_LT_EOF 1>&2
  8342. +# Create an old-style archive from a shared archive.
  8343. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  8344. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8345. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  8346. -*** is disabling shared libraries support. We urge you to upgrade GNU
  8347. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8348. -*** your PATH or compiler configuration so that the native linker is
  8349. -*** used, and then restart.
  8350. +# Create a temporary old-style archive to link instead of a shared archive.
  8351. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  8352. -_LT_EOF
  8353. - ;;
  8354. - *)
  8355. - # For security reasons, it is highly recommended that you always
  8356. - # use absolute paths for naming shared libraries, and exclude the
  8357. - # DT_RUNPATH tag from executables and libraries. But doing so
  8358. - # requires that you compile everything twice, which is a pain.
  8359. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8360. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8361. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8362. - _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'
  8363. - else
  8364. - _LT_TAGVAR(ld_shlibs, $1)=no
  8365. - fi
  8366. - ;;
  8367. - esac
  8368. - ;;
  8369. +# Commands used to build and install a shared archive.
  8370. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  8371. +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  8372. +postinstall_cmds=$lt_postinstall_cmds
  8373. +postuninstall_cmds=$lt_postuninstall_cmds
  8374. - sunos4*)
  8375. - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8376. - wlarc=
  8377. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8378. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8379. - ;;
  8380. +# Commands used to build a loadable module (assumed same as above if empty)
  8381. +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  8382. +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  8383. - *)
  8384. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8385. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8386. - _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'
  8387. - else
  8388. - _LT_TAGVAR(ld_shlibs, $1)=no
  8389. - fi
  8390. - ;;
  8391. - esac
  8392. +# Commands to strip libraries.
  8393. +old_striplib=$lt_old_striplib
  8394. +striplib=$lt_striplib
  8395. - if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8396. - runpath_var=
  8397. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8398. - _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8399. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8400. - fi
  8401. - else
  8402. - # PORTME fill in a description of your system's linker (not GNU ld)
  8403. - case $host_os in
  8404. - aix3*)
  8405. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8406. - _LT_TAGVAR(always_export_symbols, $1)=yes
  8407. - _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'
  8408. - # Note: this linker hardcodes the directories in LIBPATH if there
  8409. - # are no directories specified by -L.
  8410. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8411. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8412. - # Neither direct hardcoding nor static linking is supported with a
  8413. - # broken collect2.
  8414. - _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8415. - fi
  8416. - ;;
  8417. +# Dependencies to place before the objects being linked to create a
  8418. +# shared library.
  8419. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  8420. - aix4* | aix5*)
  8421. - if test "$host_cpu" = ia64; then
  8422. - # On IA64, the linker does run time linking by default, so we don't
  8423. - # have to do anything special.
  8424. - aix_use_runtimelinking=no
  8425. - exp_sym_flag='-Bexport'
  8426. - no_entry_flag=""
  8427. - else
  8428. - # If we're using GNU nm, then we don't want the "-C" option.
  8429. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8430. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8431. - _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'
  8432. - else
  8433. - _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'
  8434. - fi
  8435. - aix_use_runtimelinking=no
  8436. +# Dependencies to place after the objects being linked to create a
  8437. +# shared library.
  8438. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  8439. - # Test if we are trying to use run time linking or normal
  8440. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8441. - # need to do runtime linking.
  8442. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  8443. - for ld_flag in $LDFLAGS; do
  8444. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8445. - aix_use_runtimelinking=yes
  8446. - break
  8447. - fi
  8448. - done
  8449. - ;;
  8450. - esac
  8451. +# Dependencies to place before the objects being linked to create a
  8452. +# shared library.
  8453. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  8454. - exp_sym_flag='-bexport'
  8455. - no_entry_flag='-bnoentry'
  8456. - fi
  8457. +# Dependencies to place after the objects being linked to create a
  8458. +# shared library.
  8459. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  8460. - # When large executables or shared objects are built, AIX ld can
  8461. - # have problems creating the table of contents. If linking a library
  8462. - # or program results in "error TOC overflow" add -mminimal-toc to
  8463. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8464. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8465. +# The library search path used internally by the compiler when linking
  8466. +# a shared library.
  8467. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  8468. - _LT_TAGVAR(archive_cmds, $1)=''
  8469. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8470. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8471. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  8472. - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8473. +# Method to check whether dependent libraries are shared objects.
  8474. +deplibs_check_method=$lt_deplibs_check_method
  8475. - if test "$GCC" = yes; then
  8476. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8477. - # We only want to do this on AIX 4.2 and lower, the check
  8478. - # below for broken collect2 doesn't work under 4.3+
  8479. - collect2name=`${CC} -print-prog-name=collect2`
  8480. - if test -f "$collect2name" &&
  8481. - strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8482. - then
  8483. - # We have reworked collect2
  8484. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8485. - else
  8486. - # We have old collect2
  8487. - _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8488. - # It fails to find uninstalled libraries when the uninstalled
  8489. - # path is not listed in the libpath. Setting hardcode_minus_L
  8490. - # to unsupported forces relinking
  8491. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8492. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8493. - _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8494. - fi
  8495. - ;;
  8496. - esac
  8497. - shared_flag='-shared'
  8498. - if test "$aix_use_runtimelinking" = yes; then
  8499. - shared_flag="$shared_flag "'${wl}-G'
  8500. - fi
  8501. - else
  8502. - # not using gcc
  8503. - if test "$host_cpu" = ia64; then
  8504. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8505. - # chokes on -Wl,-G. The following line is correct:
  8506. - shared_flag='-G'
  8507. - else
  8508. - if test "$aix_use_runtimelinking" = yes; then
  8509. - shared_flag='${wl}-G'
  8510. - else
  8511. - shared_flag='${wl}-bM:SRE'
  8512. - fi
  8513. - fi
  8514. - fi
  8515. +# Command to use when deplibs_check_method == file_magic.
  8516. +file_magic_cmd=$lt_file_magic_cmd
  8517. - # It seems that -bexpall does not export symbols beginning with
  8518. - # underscore (_), so it is better to generate a list of symbols to export.
  8519. - _LT_TAGVAR(always_export_symbols, $1)=yes
  8520. - if test "$aix_use_runtimelinking" = yes; then
  8521. - # Warning - without using the other runtime loading flags (-brtl),
  8522. - # -berok will link without error, but may produce a broken library.
  8523. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8524. - # Determine the default libpath from the value encoded in an
  8525. - # empty executable.
  8526. - _LT_SYS_MODULE_PATH_AIX
  8527. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8528. - _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"
  8529. - else
  8530. - if test "$host_cpu" = ia64; then
  8531. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8532. - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8533. - _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"
  8534. - else
  8535. - # Determine the default libpath from the value encoded in an
  8536. - # empty executable.
  8537. - _LT_SYS_MODULE_PATH_AIX
  8538. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8539. - # Warning - without using the other run time loading flags,
  8540. - # -berok will link without error, but may produce a broken library.
  8541. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8542. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8543. - # Exported symbols can be pulled into shared objects from archives
  8544. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8545. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8546. - # This is similar to how AIX traditionally builds its shared libraries.
  8547. - _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'
  8548. - fi
  8549. - fi
  8550. - ;;
  8551. +# Flag that allows shared libraries with undefined symbols to be built.
  8552. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8553. - amigaos*)
  8554. - if test "$host_cpu" = m68k; then
  8555. - _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)'
  8556. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8557. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8558. - fi
  8559. - # see comment about different semantics on the GNU ld section
  8560. - _LT_TAGVAR(ld_shlibs, $1)=no
  8561. - ;;
  8562. +# Flag that forces no undefined symbols.
  8563. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  8564. - bsdi[[45]]*)
  8565. - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8566. - ;;
  8567. +# Commands used to finish a libtool library installation in a directory.
  8568. +finish_cmds=$lt_finish_cmds
  8569. - cygwin* | mingw* | pw32*)
  8570. - # When not using gcc, we currently assume that we are using
  8571. - # Microsoft Visual C++.
  8572. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  8573. - # no search path for DLLs.
  8574. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8575. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8576. - # Tell ltmain to make .lib files, not .a files.
  8577. - libext=lib
  8578. - # Tell ltmain to make .dll files, not .so files.
  8579. - shrext_cmds=".dll"
  8580. - # FIXME: Setting linknames here is a bad hack.
  8581. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8582. - # The linker will automatically build a .lib file if we build a DLL.
  8583. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8584. - # FIXME: Should let the user specify the lib program.
  8585. - _LT_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  8586. - _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8587. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8588. - ;;
  8589. +# Same as above, but a single script fragment to be evaled but not shown.
  8590. +finish_eval=$lt_finish_eval
  8591. - darwin* | rhapsody*)
  8592. - case $host_os in
  8593. - rhapsody* | darwin1.[[012]])
  8594. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  8595. - ;;
  8596. - *) # Darwin 1.3 on
  8597. - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  8598. - 10.[[012]])
  8599. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8600. - ;;
  8601. - 10.*)
  8602. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  8603. - ;;
  8604. - esac
  8605. - ;;
  8606. - esac
  8607. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8608. - _LT_TAGVAR(hardcode_direct, $1)=no
  8609. - _LT_TAGVAR(hardcode_automatic, $1)=yes
  8610. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8611. - _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  8612. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  8613. - if test "$GCC" = yes ; then
  8614. - AC_CACHE_VAL([lt_cv_apple_cc_single_mod],
  8615. - [lt_cv_apple_cc_single_mod=no
  8616. - if test -z "${LT_MULTI_MODULE}"; then
  8617. - # By default we will add the -single_module flag. You can override
  8618. - # by either setting the environment variable LT_MULTI_MODULE
  8619. - # non-empty at configure time, or by adding -multi-module to the
  8620. - # link flags.
  8621. - echo "int foo(void){return 1;}" > conftest.c
  8622. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  8623. - -dynamiclib ${wl}-single_module conftest.c
  8624. - if test -f libconftest.dylib; then
  8625. - lt_cv_apple_cc_single_mod=yes
  8626. - rm libconftest.dylib
  8627. - fi
  8628. - rm conftest.$ac_ext
  8629. - fi])
  8630. - output_verbose_link_cmd=echo
  8631. - if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
  8632. - _LT_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8633. - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8634. - else
  8635. - _LT_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8636. - _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8637. - fi
  8638. - _LT_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8639. - _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8640. - else
  8641. - case $cc_basename in
  8642. - xlc*)
  8643. - output_verbose_link_cmd=echo
  8644. - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
  8645. - _LT_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8646. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8647. - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8648. - _LT_TAGVAR(module_expsym_cmds, $1)='sed "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}'
  8649. - ;;
  8650. - *)
  8651. - _LT_TAGVAR(ld_shlibs, $1)=no
  8652. - ;;
  8653. - esac
  8654. - fi
  8655. - ;;
  8656. +# Take the output of nm and produce a listing of raw symbols and C names.
  8657. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8658. - dgux*)
  8659. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8660. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8661. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8662. - ;;
  8663. +# Transform the output of nm in a proper C declaration
  8664. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8665. - freebsd1*)
  8666. - _LT_TAGVAR(ld_shlibs, $1)=no
  8667. - ;;
  8668. +# Transform the output of nm in a C name address pair
  8669. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8670. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8671. - # support. Future versions do this automatically, but an explicit c++rt0.o
  8672. - # does not break anything, and helps significantly (at the cost of a little
  8673. - # extra space).
  8674. - freebsd2.2*)
  8675. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8676. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8677. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8678. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8679. - ;;
  8680. +# This is the shared library runtime path variable.
  8681. +runpath_var=$runpath_var
  8682. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8683. - freebsd2*)
  8684. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8685. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8686. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8687. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8688. - ;;
  8689. +# This is the shared library path variable.
  8690. +shlibpath_var=$shlibpath_var
  8691. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8692. - freebsd* | dragonfly*)
  8693. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8694. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8695. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8696. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8697. - ;;
  8698. +# Is shlibpath searched before the hard-coded library search path?
  8699. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8700. +
  8701. +# How to hardcode a shared library path into an executable.
  8702. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  8703. +
  8704. +# Whether we should hardcode library paths into libraries.
  8705. +hardcode_into_libs=$hardcode_into_libs
  8706. +
  8707. +# Flag to hardcode \$libdir into a binary during linking.
  8708. +# This must work even if \$libdir does not exist.
  8709. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  8710. +
  8711. +# If ld is used when linking, flag to hardcode \$libdir into
  8712. +# a binary during linking. This must work even if \$libdir does
  8713. +# not exist.
  8714. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  8715. - # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  8716. - kfreebsd*-gnu)
  8717. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8718. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8719. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8720. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8721. - _LT_TAGVAR(link_all_deplibs, $1)=no
  8722. - ;;
  8723. +# Whether we need a single -rpath flag with a separated argument.
  8724. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  8725. - hpux9*)
  8726. - if test "$GCC" = yes; then
  8727. - _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'
  8728. - else
  8729. - _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'
  8730. - fi
  8731. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8732. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8733. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8734. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8735. +# resulting binary.
  8736. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  8737. - # hardcode_minus_L: Not really in the search PATH,
  8738. - # but as the default location of the library.
  8739. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8740. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8741. - ;;
  8742. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8743. +# resulting binary.
  8744. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  8745. - hpux10*)
  8746. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8747. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8748. - else
  8749. - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8750. - fi
  8751. - if test "$with_gnu_ld" = no; then
  8752. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8753. - _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8754. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8755. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8756. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8757. - # hardcode_minus_L: Not really in the search PATH,
  8758. - # but as the default location of the library.
  8759. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8760. - fi
  8761. - ;;
  8762. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8763. +# the resulting binary.
  8764. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8765. - hpux11*)
  8766. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8767. - case $host_cpu in
  8768. - hppa*64*)
  8769. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8770. - ;;
  8771. - ia64*)
  8772. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8773. - ;;
  8774. - *)
  8775. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8776. - ;;
  8777. - esac
  8778. - else
  8779. - case $host_cpu in
  8780. - hppa*64*)
  8781. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8782. - ;;
  8783. - ia64*)
  8784. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8785. - ;;
  8786. - *)
  8787. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8788. - ;;
  8789. - esac
  8790. - fi
  8791. - if test "$with_gnu_ld" = no; then
  8792. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8793. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8794. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  8795. +# and all subsequent libraries and executables linked against it.
  8796. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8797. - case $host_cpu in
  8798. - hppa*64*|ia64*)
  8799. - _LT_TAGVAR(hardcode_direct, $1)=no
  8800. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8801. - ;;
  8802. - *)
  8803. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8804. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8805. +# Variables whose values should be saved in libtool wrapper scripts and
  8806. +# restored at relink time.
  8807. +variables_saved_for_relink="$variables_saved_for_relink"
  8808. - # hardcode_minus_L: Not really in the search PATH,
  8809. - # but as the default location of the library.
  8810. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8811. - ;;
  8812. - esac
  8813. - fi
  8814. - ;;
  8815. +# Whether libtool must link a program against all its dependency libraries.
  8816. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8817. - irix5* | irix6* | nonstopux*)
  8818. - if test "$GCC" = yes; then
  8819. - _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'
  8820. - # Try to use the -exported_symbol ld option, if it does not
  8821. - # work, assume that -exports_file does not work either and
  8822. - # implicitly export all symbols.
  8823. - save_LDFLAGS="$LDFLAGS"
  8824. - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8825. - AC_LINK_IFELSE(int foo(void) {},
  8826. - _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'
  8827. - )
  8828. - LDFLAGS="$save_LDFLAGS"
  8829. - else
  8830. - _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'
  8831. - _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'
  8832. - fi
  8833. - _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8834. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8835. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8836. - _LT_TAGVAR(inherit_rpath, $1)=yes
  8837. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  8838. - ;;
  8839. +# Compile-time system search path for libraries
  8840. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8841. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  8842. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8843. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8844. - else
  8845. - _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8846. - fi
  8847. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8848. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8849. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8850. - ;;
  8851. +# Run-time system search path for libraries
  8852. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8853. - newsos6)
  8854. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8855. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8856. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8857. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8858. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8859. - ;;
  8860. +# Fix the shell variable \$srcfile for the compiler.
  8861. +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8862. - *nto* | *qnx*)
  8863. - ;;
  8864. +# Set to yes if exported symbols are required.
  8865. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8866. - openbsd*)
  8867. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8868. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8869. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8870. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8871. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8872. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8873. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8874. - else
  8875. - case $host_os in
  8876. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8877. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8878. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8879. - ;;
  8880. - *)
  8881. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8882. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8883. - ;;
  8884. - esac
  8885. - fi
  8886. - ;;
  8887. +# The commands to list exported symbols.
  8888. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8889. - os2*)
  8890. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8891. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8892. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8893. - _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'
  8894. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8895. - ;;
  8896. +# The commands to extract the exported symbol list from a shared archive.
  8897. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8898. - osf3*)
  8899. - if test "$GCC" = yes; then
  8900. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8901. - _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'
  8902. - else
  8903. - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8904. - _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'
  8905. - fi
  8906. - _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8907. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8908. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8909. - ;;
  8910. +# Symbols that should not be listed in the preloaded symbols.
  8911. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8912. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  8913. - if test "$GCC" = yes; then
  8914. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8915. - _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'
  8916. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8917. - else
  8918. - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8919. - _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'
  8920. - _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~
  8921. - $CC -shared${allow_undefined_flag} -input $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'
  8922. +# Symbols that must always be exported.
  8923. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8924. - # Both c and cxx compiler support -rpath directly
  8925. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8926. - fi
  8927. - _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8928. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8929. - ;;
  8930. +ifelse([$1],[],
  8931. +[# ### END LIBTOOL CONFIG],
  8932. +[# ### END LIBTOOL TAG CONFIG: $tagname])
  8933. - solaris*)
  8934. - _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8935. - if test "$GCC" = yes; then
  8936. - wlarc='${wl}'
  8937. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8938. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8939. - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8940. - else
  8941. - case `$CC -V 2>&1` in
  8942. - *"Compilers 5.0"*)
  8943. - wlarc=''
  8944. - _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8945. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8946. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8947. - ;;
  8948. - *)
  8949. - wlarc='${wl}'
  8950. - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8951. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8952. - $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8953. - ;;
  8954. - esac
  8955. - fi
  8956. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8957. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8958. - case $host_os in
  8959. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8960. - *)
  8961. - # The compiler driver will combine linker options so we
  8962. - # cannot just pass the convenience library names through
  8963. - # without $wl, iff we do not link with $LD.
  8964. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  8965. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  8966. - case $wlarc in
  8967. - '')
  8968. - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  8969. - *)
  8970. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  8971. - esac ;;
  8972. - esac
  8973. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  8974. - ;;
  8975. +__EOF__
  8976. - sunos4*)
  8977. - if test "x$host_vendor" = xsequent; then
  8978. - # Use $CC to link under sequent, because it throws in some extra .o
  8979. - # files that make .init and .fini sections work.
  8980. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8981. - else
  8982. - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8983. - fi
  8984. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8985. - _LT_TAGVAR(hardcode_direct, $1)=yes
  8986. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8987. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8988. - ;;
  8989. +ifelse([$1],[], [
  8990. + case $host_os in
  8991. + aix3*)
  8992. + cat <<\EOF >> "$cfgfile"
  8993. - sysv4)
  8994. - case $host_vendor in
  8995. - sni)
  8996. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8997. - _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8998. - ;;
  8999. - siemens)
  9000. - ## LD is ld it makes a PLAMLIB
  9001. - ## CC just makes a GrossModule.
  9002. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9003. - _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  9004. - _LT_TAGVAR(hardcode_direct, $1)=no
  9005. - ;;
  9006. - motorola)
  9007. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9008. - _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  9009. - ;;
  9010. - esac
  9011. - runpath_var='LD_RUN_PATH'
  9012. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9013. - ;;
  9014. +# AIX sometimes has problems with the GCC collect2 program. For some
  9015. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  9016. +# vanish in a puff of smoke.
  9017. +if test "X${COLLECT_NAMES+set}" != Xset; then
  9018. + COLLECT_NAMES=
  9019. + export COLLECT_NAMES
  9020. +fi
  9021. +EOF
  9022. + ;;
  9023. + esac
  9024. - sysv4.3*)
  9025. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9026. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9027. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  9028. - ;;
  9029. + # We use sed instead of cat because bash on DJGPP gets confused if
  9030. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9031. + # text mode, it properly converts lines to CR/LF. This bash problem
  9032. + # is reportedly fixed, but why not run on old versions too?
  9033. + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9034. - sysv4*MP*)
  9035. - if test -d /usr/nec; then
  9036. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9037. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9038. - runpath_var=LD_RUN_PATH
  9039. - hardcode_runpath_var=yes
  9040. - _LT_TAGVAR(ld_shlibs, $1)=yes
  9041. - fi
  9042. - ;;
  9043. + mv -f "$cfgfile" "$ofile" || \
  9044. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9045. + chmod +x "$ofile"
  9046. +])
  9047. +else
  9048. + # If there is no Makefile yet, we rely on a make rule to execute
  9049. + # `config.status --recheck' to rerun these tests and create the
  9050. + # libtool script then.
  9051. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9052. + if test -f "$ltmain_in"; then
  9053. + test -f Makefile && make "$ltmain"
  9054. + fi
  9055. +fi
  9056. +])# AC_LIBTOOL_CONFIG
  9057. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  9058. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9059. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9060. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9061. - runpath_var='LD_RUN_PATH'
  9062. - if test "$GCC" = yes; then
  9063. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9064. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9065. - else
  9066. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9067. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9068. - fi
  9069. - ;;
  9070. +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  9071. +# -------------------------------------------
  9072. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  9073. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  9074. - sysv5* | sco3.2v5* | sco5v6*)
  9075. - # Note: We can NOT use -z defs as we might desire, because we do not
  9076. - # link with -lc, and that would cause any symbols used from libc to
  9077. - # always be unresolved, which means just about no library would
  9078. - # ever link correctly. If we're not using GNU ld we use -z text
  9079. - # though, which does catch some bad symbols but isn't as heavy-handed
  9080. - # as -z defs.
  9081. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9082. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  9083. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9084. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9085. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  9086. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9087. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  9088. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  9089. - runpath_var='LD_RUN_PATH'
  9090. +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9091. - if test "$GCC" = yes; then
  9092. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9093. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9094. - else
  9095. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9096. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9097. - fi
  9098. - ;;
  9099. +if test "$GCC" = yes; then
  9100. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9101. - uts4*)
  9102. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9103. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9104. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9105. - ;;
  9106. + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  9107. + lt_cv_prog_compiler_rtti_exceptions,
  9108. + [-fno-rtti -fno-exceptions], [],
  9109. + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  9110. +fi
  9111. +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  9112. - *)
  9113. - _LT_TAGVAR(ld_shlibs, $1)=no
  9114. - ;;
  9115. - esac
  9116. - if test x$host_vendor = xsni; then
  9117. - case $host in
  9118. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9119. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  9120. - ;;
  9121. - esac
  9122. - fi
  9123. - fi
  9124. -])
  9125. -AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  9126. -test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  9127. +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  9128. +# ---------------------------------
  9129. +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  9130. +[AC_REQUIRE([AC_CANONICAL_HOST])
  9131. +AC_REQUIRE([AC_PROG_NM])
  9132. +AC_REQUIRE([AC_OBJEXT])
  9133. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  9134. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  9135. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  9136. +[
  9137. +# These are sane defaults that work on at least a few old systems.
  9138. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  9139. -_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  9140. +# Character class describing NM global symbol codes.
  9141. +symcode='[[BCDEGRST]]'
  9142. -_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  9143. -_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  9144. -_LT_DECL([], [extract_expsyms_cmds], [2],
  9145. - [The commands to extract the exported symbol list from a shared archive])
  9146. +# Regexp to match symbols that can be accessed directly from C.
  9147. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  9148. -#
  9149. -# Do we need to explicitly link libc?
  9150. -#
  9151. -case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  9152. -x|xyes)
  9153. - # Assume -lc should be added
  9154. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9155. +# Transform an extracted symbol line into a proper C declaration
  9156. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  9157. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  9158. - case $_LT_TAGVAR(archive_cmds, $1) in
  9159. - *'~'*)
  9160. - # FIXME: we may have to deal with multi-command sequences.
  9161. - ;;
  9162. - '$CC '*)
  9163. - # Test whether the compiler implicitly links with -lc since on some
  9164. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9165. - # to ld, don't add -lc before -lgcc.
  9166. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  9167. - $RM conftest*
  9168. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9169. +# Transform an extracted symbol line into symbol name and symbol address
  9170. +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'"
  9171. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  9172. - soname=conftest
  9173. - lib=conftest
  9174. - libobjs=conftest.$ac_objext
  9175. - deplibs=
  9176. - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  9177. - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  9178. - compiler_flags=-v
  9179. - linker_flags=-v
  9180. - verstring=
  9181. - output_objdir=.
  9182. - libname=conftest
  9183. - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  9184. - _LT_TAGVAR(allow_undefined_flag, $1)=
  9185. - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  9186. - then
  9187. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9188. - else
  9189. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9190. - fi
  9191. - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  9192. - else
  9193. - cat conftest.err 1>&5
  9194. - fi
  9195. - $RM conftest*
  9196. - AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  9197. - ;;
  9198. - esac
  9199. +# Define system-specific variables.
  9200. +case $host_os in
  9201. +aix*)
  9202. + symcode='[[BCDT]]'
  9203. + ;;
  9204. +cygwin* | mingw* | pw32*)
  9205. + symcode='[[ABCDGISTW]]'
  9206. + ;;
  9207. +hpux*) # Its linker distinguishes data from code symbols
  9208. + if test "$host_cpu" = ia64; then
  9209. + symcode='[[ABCDEGRST]]'
  9210. + fi
  9211. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  9212. + 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'"
  9213. + ;;
  9214. +linux*)
  9215. + if test "$host_cpu" = ia64; then
  9216. + symcode='[[ABCDGIRSTW]]'
  9217. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  9218. + 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'"
  9219. fi
  9220. ;;
  9221. +irix* | nonstopux*)
  9222. + symcode='[[BCDEGRST]]'
  9223. + ;;
  9224. +osf*)
  9225. + symcode='[[BCDEGQRST]]'
  9226. + ;;
  9227. +solaris*)
  9228. + symcode='[[BDRT]]'
  9229. + ;;
  9230. +sco3.2v5*)
  9231. + symcode='[[DT]]'
  9232. + ;;
  9233. +sysv4.2uw2*)
  9234. + symcode='[[DT]]'
  9235. + ;;
  9236. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  9237. + symcode='[[ABDT]]'
  9238. + ;;
  9239. +sysv4)
  9240. + symcode='[[DFNSTU]]'
  9241. + ;;
  9242. esac
  9243. -_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  9244. - [Whether or not to add -lc for building shared libraries])
  9245. -_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  9246. - [enable_shared_with_static_runtimes], [0],
  9247. - [Whether or not to disallow shared libs when runtime libs are static])
  9248. -_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  9249. - [Compiler flag to allow reflexive dlopens])
  9250. -_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  9251. - [Compiler flag to generate shared objects directly from archives])
  9252. -_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  9253. - [Create an old-style archive from a shared archive])
  9254. -_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  9255. - [Create a temporary old-style archive to link instead of a shared archive])
  9256. -_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  9257. -_LT_TAGDECL([], [archive_expsym_cmds], [2])
  9258. -_LT_TAGDECL([], [module_cmds], [2],
  9259. - [Commands used to build a loadable module if different from building
  9260. - a shared archive.])
  9261. -_LT_TAGDECL([], [module_expsym_cmds], [2])
  9262. -_LT_TAGDECL([], [with_gnu_ld], [1],
  9263. - [Whether we are building with GNU ld or not])
  9264. -_LT_TAGDECL([], [allow_undefined_flag], [1],
  9265. - [Flag that allows shared libraries with undefined symbols to be built])
  9266. -_LT_TAGDECL([], [no_undefined_flag], [1],
  9267. - [Flag that enforces no undefined symbols])
  9268. -_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  9269. - [Flag to hardcode $libdir into a binary during linking.
  9270. - This must work even if $libdir does not exist])
  9271. -_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  9272. - [[If ld is used when linking, flag to hardcode $libdir into a binary
  9273. - during linking. This must work even if $libdir does not exist]])
  9274. -_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  9275. - [Whether we need a single "-rpath" flag with a separated argument])
  9276. -_LT_TAGDECL([], [hardcode_direct], [0],
  9277. - [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9278. - DIR into the resulting binary])
  9279. -_LT_TAGDECL([], [hardcode_minus_L], [0],
  9280. - [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  9281. - into the resulting binary])
  9282. -_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  9283. - [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  9284. - into the resulting binary])
  9285. -_LT_TAGDECL([], [hardcode_automatic], [0],
  9286. - [Set to "yes" if building a shared library automatically hardcodes DIR
  9287. - into the library and all subsequent libraries and executables linked
  9288. - against it])
  9289. -_LT_TAGDECL([], [inherit_rpath], [0],
  9290. - [Set to yes if linker adds runtime paths of dependent libraries
  9291. - to runtime path list])
  9292. -_LT_TAGDECL([], [link_all_deplibs], [0],
  9293. - [Whether libtool must link a program against all its dependency libraries])
  9294. -_LT_TAGDECL([], [fix_srcfile_path], [1],
  9295. - [Fix the shell variable $srcfile for the compiler])
  9296. -_LT_TAGDECL([], [always_export_symbols], [0],
  9297. - [Set to "yes" if exported symbols are required])
  9298. -_LT_TAGDECL([], [export_symbols_cmds], [2],
  9299. - [The commands to list exported symbols])
  9300. -_LT_TAGDECL([], [exclude_expsyms], [1],
  9301. - [Symbols that should not be listed in the preloaded symbols])
  9302. -_LT_TAGDECL([], [include_expsyms], [1],
  9303. - [Symbols that must always be exported])
  9304. -_LT_TAGDECL([], [prelink_cmds], [2],
  9305. - [Commands necessary for linking programs (against libraries) with templates])
  9306. -_LT_TAGDECL([], [file_list_spec], [1],
  9307. - [Specify filename containing input files])
  9308. -dnl FIXME: Not yet implemented
  9309. -dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  9310. -dnl [Compiler flag to generate thread safe objects])
  9311. -])# _LT_LINKER_SHLIBS
  9312. +# Handle CRLF in mingw tool chain
  9313. +opt_cr=
  9314. +case $build_os in
  9315. +mingw*)
  9316. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  9317. + ;;
  9318. +esac
  9319. +# If we're using GNU nm, then use its standard symbol codes.
  9320. +case `$NM -V 2>&1` in
  9321. +*GNU* | *'with BFD'*)
  9322. + symcode='[[ABCDGIRSTW]]' ;;
  9323. +esac
  9324. -# _LT_LANG_C_CONFIG([TAG])
  9325. -# ------------------------
  9326. -# Ensure that the configuration variables for a C compiler are suitably
  9327. -# defined. These variables are subsequently used by _LT_CONFIG to write
  9328. -# the compiler configuration to `libtool'.
  9329. -m4_defun([_LT_LANG_C_CONFIG],
  9330. -[m4_require([_LT_DECL_EGREP])dnl
  9331. -lt_save_CC="$CC"
  9332. -AC_LANG_PUSH(C)
  9333. +# Try without a prefix undercore, then with it.
  9334. +for ac_symprfx in "" "_"; do
  9335. -# Source file extension for C test sources.
  9336. -ac_ext=c
  9337. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9338. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  9339. -# Object file extension for compiled C test sources.
  9340. -objext=o
  9341. -_LT_TAGVAR(objext, $1)=$objext
  9342. + # Write the raw and C identifiers.
  9343. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9344. -# Code to be used in simple compile tests
  9345. -lt_simple_compile_test_code="int some_variable = 0;\n"
  9346. + # Check to see that the pipe works correctly.
  9347. + pipe_works=no
  9348. -# Code to be used in simple link tests
  9349. -lt_simple_link_test_code='int main(){return(0);}\n'
  9350. + rm -f conftest*
  9351. + cat > conftest.$ac_ext <<EOF
  9352. +#ifdef __cplusplus
  9353. +extern "C" {
  9354. +#endif
  9355. +char nm_test_var;
  9356. +void nm_test_func(){}
  9357. +#ifdef __cplusplus
  9358. +}
  9359. +#endif
  9360. +int main(){nm_test_var='a';nm_test_func();return(0);}
  9361. +EOF
  9362. -_LT_TAG_COMPILER
  9363. -# Save the default compiler, since it gets overwritten when the other
  9364. -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9365. -compiler_DEFAULT=$CC
  9366. + if AC_TRY_EVAL(ac_compile); then
  9367. + # Now try to grab the symbols.
  9368. + nlist=conftest.nm
  9369. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  9370. + # Try sorting and uniquifying the output.
  9371. + if sort "$nlist" | uniq > "$nlist"T; then
  9372. + mv -f "$nlist"T "$nlist"
  9373. + else
  9374. + rm -f "$nlist"T
  9375. + fi
  9376. -# save warnings/boilerplate of simple test code
  9377. -_LT_COMPILER_BOILERPLATE
  9378. -_LT_LINKER_BOILERPLATE
  9379. + # Make sure that we snagged all the symbols we need.
  9380. + if grep ' nm_test_var$' "$nlist" >/dev/null; then
  9381. + if grep ' nm_test_func$' "$nlist" >/dev/null; then
  9382. + cat <<EOF > conftest.$ac_ext
  9383. +#ifdef __cplusplus
  9384. +extern "C" {
  9385. +#endif
  9386. -if test -n "$compiler"; then
  9387. - _LT_COMPILER_NO_RTTI($1)
  9388. - _LT_COMPILER_PIC($1)
  9389. - _LT_COMPILER_C_O($1)
  9390. - _LT_COMPILER_FILE_LOCKS($1)
  9391. - _LT_LINKER_SHLIBS($1)
  9392. - _LT_SYS_DYNAMIC_LINKER($1)
  9393. - _LT_LINKER_HARDCODE_LIBPATH($1)
  9394. - LT_SYS_DLOPEN_SELF
  9395. - _LT_CMD_STRIPLIB
  9396. -
  9397. - # Report which library types will actually be built
  9398. - AC_MSG_CHECKING([if libtool supports shared libraries])
  9399. - AC_MSG_RESULT([$can_build_shared])
  9400. +EOF
  9401. + # Now generate the symbol file.
  9402. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  9403. - AC_MSG_CHECKING([whether to build shared libraries])
  9404. - test "$can_build_shared" = "no" && enable_shared=no
  9405. + cat <<EOF >> conftest.$ac_ext
  9406. +#if defined (__STDC__) && __STDC__
  9407. +# define lt_ptr_t void *
  9408. +#else
  9409. +# define lt_ptr_t char *
  9410. +# define const
  9411. +#endif
  9412. - # On AIX, shared libraries and static libraries use the same namespace, and
  9413. - # are all built from PIC.
  9414. - case $host_os in
  9415. - aix3*)
  9416. - test "$enable_shared" = yes && enable_static=no
  9417. - if test -n "$RANLIB"; then
  9418. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9419. - postinstall_cmds='$RANLIB $lib'
  9420. - fi
  9421. - ;;
  9422. +/* The mapping between symbol names and symbols. */
  9423. +const struct {
  9424. + const char *name;
  9425. + lt_ptr_t address;
  9426. +}
  9427. +lt_preloaded_symbols[[]] =
  9428. +{
  9429. +EOF
  9430. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  9431. + cat <<\EOF >> conftest.$ac_ext
  9432. + {0, (lt_ptr_t) 0}
  9433. +};
  9434. - aix4* | aix5*)
  9435. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9436. - test "$enable_shared" = yes && enable_static=no
  9437. +#ifdef __cplusplus
  9438. +}
  9439. +#endif
  9440. +EOF
  9441. + # Now try linking the two files.
  9442. + mv conftest.$ac_objext conftstm.$ac_objext
  9443. + lt_save_LIBS="$LIBS"
  9444. + lt_save_CFLAGS="$CFLAGS"
  9445. + LIBS="conftstm.$ac_objext"
  9446. + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  9447. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  9448. + pipe_works=yes
  9449. + fi
  9450. + LIBS="$lt_save_LIBS"
  9451. + CFLAGS="$lt_save_CFLAGS"
  9452. + else
  9453. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  9454. + fi
  9455. + else
  9456. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  9457. + fi
  9458. + else
  9459. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  9460. fi
  9461. - ;;
  9462. - esac
  9463. - AC_MSG_RESULT([$enable_shared])
  9464. -
  9465. - AC_MSG_CHECKING([whether to build static libraries])
  9466. - # Make sure either enable_shared or enable_static is yes.
  9467. - test "$enable_shared" = yes || enable_static=yes
  9468. - AC_MSG_RESULT([$enable_static])
  9469. -
  9470. - _LT_CONFIG($1)
  9471. -fi
  9472. -AC_LANG_POP
  9473. -CC="$lt_save_CC"
  9474. -])# _LT_LANG_C_CONFIG
  9475. -
  9476. -
  9477. -# _LT_PROG_CXX
  9478. -# ------------
  9479. -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9480. -# compiler, we have our own version here.
  9481. -m4_defun([_LT_PROG_CXX],
  9482. -[
  9483. -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9484. -AC_PROG_CXX
  9485. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9486. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9487. - (test "X$CXX" != "Xg++"))) ; then
  9488. - AC_PROG_CXXCPP
  9489. -else
  9490. - _lt_caught_CXX_error=yes
  9491. -fi
  9492. -popdef([AC_MSG_ERROR])
  9493. -])# _LT_PROG_CXX
  9494. -
  9495. -dnl aclocal-1.4 backwards compatibility:
  9496. -dnl AC_DEFUN([_LT_PROG_CXX], [])
  9497. -
  9498. -
  9499. -# _LT_LANG_CXX_CONFIG([TAG])
  9500. -# --------------------------
  9501. -# Ensure that the configuration variables for a C++ compiler are suitably
  9502. -# defined. These variables are subsequently used by _LT_CONFIG to write
  9503. -# the compiler configuration to `libtool'.
  9504. -m4_defun([_LT_LANG_CXX_CONFIG],
  9505. -[AC_REQUIRE([_LT_PROG_CXX])dnl
  9506. -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9507. -m4_require([_LT_DECL_EGREP])dnl
  9508. -
  9509. -AC_LANG_PUSH(C++)
  9510. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9511. -_LT_TAGVAR(allow_undefined_flag, $1)=
  9512. -_LT_TAGVAR(always_export_symbols, $1)=no
  9513. -_LT_TAGVAR(archive_expsym_cmds, $1)=
  9514. -_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9515. -_LT_TAGVAR(hardcode_direct, $1)=no
  9516. -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9517. -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9518. -_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9519. -_LT_TAGVAR(hardcode_minus_L, $1)=no
  9520. -_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9521. -_LT_TAGVAR(hardcode_automatic, $1)=no
  9522. -_LT_TAGVAR(inherit_rpath, $1)=no
  9523. -_LT_TAGVAR(module_cmds, $1)=
  9524. -_LT_TAGVAR(module_expsym_cmds, $1)=
  9525. -_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9526. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9527. -_LT_TAGVAR(no_undefined_flag, $1)=
  9528. -_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9529. -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9530. -
  9531. -# Source file extension for C++ test sources.
  9532. -ac_ext=cpp
  9533. -
  9534. -# Object file extension for compiled C++ test sources.
  9535. -objext=o
  9536. -_LT_TAGVAR(objext, $1)=$objext
  9537. -
  9538. -# No sense in running all these tests if we already determined that
  9539. -# the CXX compiler isn't working. Some variables (like enable_shared)
  9540. -# are currently assumed to apply to all compilers on this platform,
  9541. -# and will be corrupted by setting them based on a non-working compiler.
  9542. -if test "$_lt_caught_CXX_error" != yes; then
  9543. - # Code to be used in simple compile tests
  9544. - lt_simple_compile_test_code="int some_variable = 0;\n"
  9545. -
  9546. - # Code to be used in simple link tests
  9547. - lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  9548. -
  9549. - # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9550. - _LT_TAG_COMPILER
  9551. -
  9552. - # save warnings/boilerplate of simple test code
  9553. - _LT_COMPILER_BOILERPLATE
  9554. - _LT_LINKER_BOILERPLATE
  9555. -
  9556. - # Allow CC to be a program name with arguments.
  9557. - lt_save_CC=$CC
  9558. - lt_save_LD=$LD
  9559. - lt_save_GCC=$GCC
  9560. - GCC=$GXX
  9561. - lt_save_with_gnu_ld=$with_gnu_ld
  9562. - lt_save_path_LD=$lt_cv_path_LD
  9563. - if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9564. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9565. else
  9566. - $as_unset lt_cv_prog_gnu_ld
  9567. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  9568. + cat conftest.$ac_ext >&5
  9569. fi
  9570. - if test -n "${lt_cv_path_LDCXX+set}"; then
  9571. - lt_cv_path_LD=$lt_cv_path_LDCXX
  9572. + rm -f conftest* conftst*
  9573. +
  9574. + # Do not use the global_symbol_pipe unless it works.
  9575. + if test "$pipe_works" = yes; then
  9576. + break
  9577. else
  9578. - $as_unset lt_cv_path_LD
  9579. + lt_cv_sys_global_symbol_pipe=
  9580. fi
  9581. - test -z "${LDCXX+set}" || LD=$LDCXX
  9582. - CC=${CXX-"c++"}
  9583. - compiler=$CC
  9584. - _LT_TAGVAR(compiler, $1)=$CC
  9585. - _LT_CC_BASENAME([$compiler])
  9586. -
  9587. - if test -n "$compiler"; then
  9588. - # We don't want -fno-exception when compiling C++ code, so set the
  9589. - # no_builtin_flag separately
  9590. - if test "$GXX" = yes; then
  9591. - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9592. - else
  9593. - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9594. - fi
  9595. +done
  9596. +])
  9597. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9598. + lt_cv_sys_global_symbol_to_cdecl=
  9599. +fi
  9600. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9601. + AC_MSG_RESULT(failed)
  9602. +else
  9603. + AC_MSG_RESULT(ok)
  9604. +fi
  9605. +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  9606. - if test "$GXX" = yes; then
  9607. - # Set up default GNU C++ configuration
  9608. - LT_PATH_LD
  9609. +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  9610. +# ---------------------------------------
  9611. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  9612. +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  9613. +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9614. +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  9615. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9616. - # archiving commands below assume that GNU ld is being used.
  9617. - if test "$with_gnu_ld" = yes; then
  9618. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9619. - _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'
  9620. -
  9621. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9622. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9623. -
  9624. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9625. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9626. - # investigate it a little bit more. (MM)
  9627. - wlarc='${wl}'
  9628. -
  9629. - # ancient GNU ld didn't support --whole-archive et. al.
  9630. - if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9631. - $GREP 'no-whole-archive' > /dev/null; then
  9632. - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9633. - else
  9634. - _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9635. - fi
  9636. - else
  9637. - with_gnu_ld=no
  9638. - wlarc=
  9639. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  9640. + ifelse([$1],[CXX],[
  9641. + # C++ specific cases for pic, static, wl, etc.
  9642. + if test "$GXX" = yes; then
  9643. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9644. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9645. - # A generic and very simple default shared library creation
  9646. - # command for GNU C++ for the case where it uses the native
  9647. - # linker, instead of GNU ld. If possible, this setting should
  9648. - # overridden to take advantage of the native linker features on
  9649. - # the platform it is being used on.
  9650. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9651. + case $host_os in
  9652. + aix*)
  9653. + # All AIX code is PIC.
  9654. + if test "$host_cpu" = ia64; then
  9655. + # AIX 5 now supports IA64 processor
  9656. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9657. fi
  9658. -
  9659. - # Commands to make compiler produce verbose output that lists
  9660. - # what "hidden" libraries, object files and flags are used when
  9661. - # linking a shared library.
  9662. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9663. -
  9664. - else
  9665. - GXX=no
  9666. - with_gnu_ld=no
  9667. - wlarc=
  9668. - fi
  9669. -
  9670. - # PORTME: fill in a description of your system's C++ link characteristics
  9671. - AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9672. - _LT_TAGVAR(ld_shlibs, $1)=yes
  9673. + ;;
  9674. + amigaos*)
  9675. + # FIXME: we need at least 68020 code to build shared libraries, but
  9676. + # adding the `-m68020' flag to GCC prevents building anything better,
  9677. + # like `-m68040'.
  9678. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9679. + ;;
  9680. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9681. + # PIC is the default for these OSes.
  9682. + ;;
  9683. + mingw* | os2* | pw32*)
  9684. + # This hack is so that the source file can tell whether it is being
  9685. + # built for inclusion in a dll (and should export symbols for example).
  9686. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9687. + ;;
  9688. + darwin* | rhapsody*)
  9689. + # PIC is the default on this platform
  9690. + # Common symbols not allowed in MH_DYLIB files
  9691. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9692. + ;;
  9693. + *djgpp*)
  9694. + # DJGPP does not support shared libraries at all
  9695. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9696. + ;;
  9697. + interix3*)
  9698. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9699. + # Instead, we relocate shared libraries at runtime.
  9700. + ;;
  9701. + sysv4*MP*)
  9702. + if test -d /usr/nec; then
  9703. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9704. + fi
  9705. + ;;
  9706. + hpux*)
  9707. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9708. + # not for PA HP-UX.
  9709. + case $host_cpu in
  9710. + hppa*64*|ia64*)
  9711. + ;;
  9712. + *)
  9713. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9714. + ;;
  9715. + esac
  9716. + ;;
  9717. + *)
  9718. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9719. + ;;
  9720. + esac
  9721. + else
  9722. case $host_os in
  9723. - aix3*)
  9724. - # FIXME: insert proper C++ library support
  9725. - _LT_TAGVAR(ld_shlibs, $1)=no
  9726. - ;;
  9727. aix4* | aix5*)
  9728. - if test "$host_cpu" = ia64; then
  9729. - # On IA64, the linker does run time linking by default, so we don't
  9730. - # have to do anything special.
  9731. - aix_use_runtimelinking=no
  9732. - exp_sym_flag='-Bexport'
  9733. - no_entry_flag=""
  9734. - else
  9735. - aix_use_runtimelinking=no
  9736. -
  9737. - # Test if we are trying to use run time linking or normal
  9738. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9739. - # need to do runtime linking.
  9740. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  9741. - for ld_flag in $LDFLAGS; do
  9742. - case $ld_flag in
  9743. - *-brtl*)
  9744. - aix_use_runtimelinking=yes
  9745. - break
  9746. - ;;
  9747. - esac
  9748. - done
  9749. - ;;
  9750. - esac
  9751. -
  9752. - exp_sym_flag='-bexport'
  9753. - no_entry_flag='-bnoentry'
  9754. - fi
  9755. -
  9756. - # When large executables or shared objects are built, AIX ld can
  9757. - # have problems creating the table of contents. If linking a library
  9758. - # or program results in "error TOC overflow" add -mminimal-toc to
  9759. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9760. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9761. -
  9762. - _LT_TAGVAR(archive_cmds, $1)=''
  9763. - _LT_TAGVAR(hardcode_direct, $1)=yes
  9764. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9765. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  9766. - _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9767. -
  9768. - if test "$GXX" = yes; then
  9769. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9770. - # We only want to do this on AIX 4.2 and lower, the check
  9771. - # below for broken collect2 doesn't work under 4.3+
  9772. - collect2name=`${CC} -print-prog-name=collect2`
  9773. - if test -f "$collect2name" &&
  9774. - strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9775. - then
  9776. - # We have reworked collect2
  9777. - _LT_TAGVAR(hardcode_direct, $1)=yes
  9778. - else
  9779. - # We have old collect2
  9780. - _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9781. - # It fails to find uninstalled libraries when the uninstalled
  9782. - # path is not listed in the libpath. Setting hardcode_minus_L
  9783. - # to unsupported forces relinking
  9784. - _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9785. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9786. - _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9787. - fi
  9788. - esac
  9789. - shared_flag='-shared'
  9790. - if test "$aix_use_runtimelinking" = yes; then
  9791. - shared_flag="$shared_flag "'${wl}-G'
  9792. - fi
  9793. - else
  9794. - # not using gcc
  9795. - if test "$host_cpu" = ia64; then
  9796. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9797. - # chokes on -Wl,-G. The following line is correct:
  9798. - shared_flag='-G'
  9799. - else
  9800. - if test "$aix_use_runtimelinking" = yes; then
  9801. - shared_flag='${wl}-G'
  9802. - else
  9803. - shared_flag='${wl}-bM:SRE'
  9804. - fi
  9805. - fi
  9806. - fi
  9807. -
  9808. - # It seems that -bexpall does not export symbols beginning with
  9809. - # underscore (_), so it is better to generate a list of symbols to
  9810. - # export.
  9811. - _LT_TAGVAR(always_export_symbols, $1)=yes
  9812. - if test "$aix_use_runtimelinking" = yes; then
  9813. - # Warning - without using the other runtime loading flags (-brtl),
  9814. - # -berok will link without error, but may produce a broken library.
  9815. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9816. - # Determine the default libpath from the value encoded in an empty
  9817. - # executable.
  9818. - _LT_SYS_MODULE_PATH_AIX
  9819. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9820. -
  9821. - _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"
  9822. - else
  9823. - if test "$host_cpu" = ia64; then
  9824. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9825. - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9826. - _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"
  9827. - else
  9828. - # Determine the default libpath from the value encoded in an
  9829. - # empty executable.
  9830. - _LT_SYS_MODULE_PATH_AIX
  9831. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9832. - # Warning - without using the other run time loading flags,
  9833. - # -berok will link without error, but may produce a broken library.
  9834. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9835. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9836. - # Exported symbols can be pulled into shared objects from archives
  9837. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9838. - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9839. - # This is similar to how AIX traditionally builds its shared
  9840. - # libraries.
  9841. - _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'
  9842. - fi
  9843. - fi
  9844. - ;;
  9845. -
  9846. - beos*)
  9847. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9848. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9849. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9850. - # support --undefined. This deserves some investigation. FIXME
  9851. - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9852. + # All AIX code is PIC.
  9853. + if test "$host_cpu" = ia64; then
  9854. + # AIX 5 now supports IA64 processor
  9855. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9856. else
  9857. - _LT_TAGVAR(ld_shlibs, $1)=no
  9858. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9859. fi
  9860. ;;
  9861. -
  9862. chorus*)
  9863. - case $cc_basename in
  9864. - *)
  9865. - # FIXME: insert proper C++ library support
  9866. - _LT_TAGVAR(ld_shlibs, $1)=no
  9867. - ;;
  9868. - esac
  9869. - ;;
  9870. -
  9871. - cygwin* | mingw* | pw32*)
  9872. - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9873. - # as there is no search path for DLLs.
  9874. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9875. - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9876. - _LT_TAGVAR(always_export_symbols, $1)=no
  9877. - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9878. -
  9879. - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9880. - _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'
  9881. - # If the export-symbols file already is a .def file (1st line
  9882. - # is EXPORTS), use it as is; otherwise, prepend...
  9883. - _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9884. - cp $export_symbols $output_objdir/$soname.def;
  9885. - else
  9886. - echo EXPORTS > $output_objdir/$soname.def;
  9887. - cat $export_symbols >> $output_objdir/$soname.def;
  9888. - fi~
  9889. - $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'
  9890. - else
  9891. - _LT_TAGVAR(ld_shlibs, $1)=no
  9892. - fi
  9893. - ;;
  9894. - darwin* | rhapsody*)
  9895. - case $host_os in
  9896. - rhapsody* | darwin1.[[012]])
  9897. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  9898. + case $cc_basename in
  9899. + cxch68*)
  9900. + # Green Hills C++ Compiler
  9901. + # _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"
  9902. + ;;
  9903. + esac
  9904. + ;;
  9905. + darwin*)
  9906. + # PIC is the default on this platform
  9907. + # Common symbols not allowed in MH_DYLIB files
  9908. + case $cc_basename in
  9909. + xlc*)
  9910. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9911. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9912. + ;;
  9913. + esac
  9914. + ;;
  9915. + dgux*)
  9916. + case $cc_basename in
  9917. + ec++*)
  9918. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9919. ;;
  9920. - *) # Darwin 1.3 on
  9921. - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  9922. - 10.[[012]])
  9923. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9924. - ;;
  9925. - 10.*)
  9926. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  9927. - ;;
  9928. - esac
  9929. + ghcx*)
  9930. + # Green Hills C++ Compiler
  9931. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9932. + ;;
  9933. + *)
  9934. ;;
  9935. esac
  9936. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9937. - _LT_TAGVAR(hardcode_direct, $1)=no
  9938. - _LT_TAGVAR(hardcode_automatic, $1)=yes
  9939. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9940. - _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  9941. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  9942. -
  9943. - if test "$GXX" = yes ; then
  9944. - AC_CACHE_VAL([lt_cv_apple_cc_single_mod],
  9945. - [lt_cv_apple_cc_single_mod=no
  9946. - if test -z "${LT_MULTI_MODULE}"; then
  9947. - # By default we will add the -single_module flag. You can override
  9948. - # by either setting the environment variable LT_MULTI_MODULE
  9949. - # non-empty at configure time, or by adding -multi-module to the
  9950. - # link flags.
  9951. - echo "int foo(void){return 1;}" > conftest.c
  9952. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  9953. - -dynamiclib ${wl}-single_module conftest.c
  9954. - if test -f libconftest.dylib; then
  9955. - lt_cv_apple_cc_single_mod=yes
  9956. - rm libconftest.dylib
  9957. + ;;
  9958. + freebsd* | kfreebsd*-gnu | dragonfly*)
  9959. + # FreeBSD uses GNU C++
  9960. + ;;
  9961. + hpux9* | hpux10* | hpux11*)
  9962. + case $cc_basename in
  9963. + CC*)
  9964. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9965. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9966. + if test "$host_cpu" != ia64; then
  9967. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9968. fi
  9969. - rm conftest.$ac_ext
  9970. - fi])
  9971. - output_verbose_link_cmd=echo
  9972. - if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
  9973. - _LT_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9974. - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9975. - else
  9976. - _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'
  9977. - _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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9978. - fi
  9979. - _LT_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9980. - _LT_TAGVAR(module_expsym_cmds, $1)='sed "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}'
  9981. - else
  9982. - case $cc_basename in
  9983. - xlc*)
  9984. - output_verbose_link_cmd=echo
  9985. - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
  9986. - _LT_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9987. - # Don't fix this by using the ld -exported_symbols_list flag,
  9988. - # it doesn't exist in older darwin lds
  9989. - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9990. - _LT_TAGVAR(module_expsym_cmds, $1)='sed "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}'
  9991. + ;;
  9992. + aCC*)
  9993. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9994. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9995. + case $host_cpu in
  9996. + hppa*64*|ia64*)
  9997. + # +Z the default
  9998. ;;
  9999. *)
  10000. - _LT_TAGVAR(ld_shlibs, $1)=no
  10001. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  10002. ;;
  10003. - esac
  10004. - fi
  10005. + esac
  10006. + ;;
  10007. + *)
  10008. + ;;
  10009. + esac
  10010. + ;;
  10011. + interix*)
  10012. + # This is c89, which is MS Visual C++ (no shared libs)
  10013. + # Anyone wants to do a port?
  10014. + ;;
  10015. + irix5* | irix6* | nonstopux*)
  10016. + case $cc_basename in
  10017. + CC*)
  10018. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10019. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10020. + # CC pic flag -KPIC is the default.
  10021. + ;;
  10022. + *)
  10023. + ;;
  10024. + esac
  10025. ;;
  10026. -
  10027. - dgux*)
  10028. - case $cc_basename in
  10029. - ec++*)
  10030. - # FIXME: insert proper C++ library support
  10031. - _LT_TAGVAR(ld_shlibs, $1)=no
  10032. - ;;
  10033. - ghcx*)
  10034. - # Green Hills C++ Compiler
  10035. - # FIXME: insert proper C++ library support
  10036. - _LT_TAGVAR(ld_shlibs, $1)=no
  10037. - ;;
  10038. - *)
  10039. - # FIXME: insert proper C++ library support
  10040. - _LT_TAGVAR(ld_shlibs, $1)=no
  10041. - ;;
  10042. - esac
  10043. - ;;
  10044. -
  10045. - freebsd[[12]]*)
  10046. - # C++ shared libraries reported to be fairly broken before
  10047. - # switch to ELF
  10048. - _LT_TAGVAR(ld_shlibs, $1)=no
  10049. - ;;
  10050. -
  10051. - freebsd-elf*)
  10052. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10053. - ;;
  10054. -
  10055. - freebsd* | kfreebsd*-gnu | dragonfly*)
  10056. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10057. - # conventions
  10058. - _LT_TAGVAR(ld_shlibs, $1)=yes
  10059. - ;;
  10060. -
  10061. - gnu*)
  10062. - ;;
  10063. -
  10064. - hpux9*)
  10065. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10066. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10067. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10068. - _LT_TAGVAR(hardcode_direct, $1)=yes
  10069. - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  10070. - # but as the default
  10071. - # location of the library.
  10072. -
  10073. - case $cc_basename in
  10074. - CC*)
  10075. - # FIXME: insert proper C++ library support
  10076. - _LT_TAGVAR(ld_shlibs, $1)=no
  10077. - ;;
  10078. - aCC*)
  10079. - _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'
  10080. - # Commands to make compiler produce verbose output that lists
  10081. - # what "hidden" libraries, object files and flags are used when
  10082. - # linking a shared library.
  10083. - #
  10084. - # There doesn't appear to be a way to prevent this compiler from
  10085. - # explicitly linking system object files so we need to strip them
  10086. - # from the output so that they don't get included in the library
  10087. - # dependencies.
  10088. - 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'
  10089. - ;;
  10090. - *)
  10091. - if test "$GXX" = yes; then
  10092. - _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'
  10093. - else
  10094. - # FIXME: insert proper C++ library support
  10095. - _LT_TAGVAR(ld_shlibs, $1)=no
  10096. - fi
  10097. - ;;
  10098. - esac
  10099. - ;;
  10100. -
  10101. - hpux10*|hpux11*)
  10102. - if test $with_gnu_ld = no; then
  10103. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10104. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10105. -
  10106. - case $host_cpu in
  10107. - hppa*64*|ia64*)
  10108. - ;;
  10109. - *)
  10110. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10111. - ;;
  10112. - esac
  10113. - fi
  10114. - case $host_cpu in
  10115. - hppa*64*|ia64*)
  10116. - _LT_TAGVAR(hardcode_direct, $1)=no
  10117. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10118. - ;;
  10119. - *)
  10120. - _LT_TAGVAR(hardcode_direct, $1)=yes
  10121. - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  10122. - # but as the default
  10123. - # location of the library.
  10124. - ;;
  10125. - esac
  10126. -
  10127. - case $cc_basename in
  10128. - CC*)
  10129. - # FIXME: insert proper C++ library support
  10130. - _LT_TAGVAR(ld_shlibs, $1)=no
  10131. - ;;
  10132. - aCC*)
  10133. - case $host_cpu in
  10134. - hppa*64*)
  10135. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10136. - ;;
  10137. - ia64*)
  10138. - _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10139. - ;;
  10140. - *)
  10141. - _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'
  10142. - ;;
  10143. - esac
  10144. - # Commands to make compiler produce verbose output that lists
  10145. - # what "hidden" libraries, object files and flags are used when
  10146. - # linking a shared library.
  10147. - #
  10148. - # There doesn't appear to be a way to prevent this compiler from
  10149. - # explicitly linking system object files so we need to strip them
  10150. - # from the output so that they don't get included in the library
  10151. - # dependencies.
  10152. - 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'
  10153. - ;;
  10154. - *)
  10155. - if test "$GXX" = yes; then
  10156. - if test $with_gnu_ld = no; then
  10157. - case $host_cpu in
  10158. - hppa*64*)
  10159. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10160. - ;;
  10161. - ia64*)
  10162. - _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'
  10163. - ;;
  10164. - *)
  10165. - _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'
  10166. - ;;
  10167. - esac
  10168. - fi
  10169. - else
  10170. - # FIXME: insert proper C++ library support
  10171. - _LT_TAGVAR(ld_shlibs, $1)=no
  10172. - fi
  10173. - ;;
  10174. - esac
  10175. - ;;
  10176. -
  10177. - interix3*)
  10178. - _LT_TAGVAR(hardcode_direct, $1)=no
  10179. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10180. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10181. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10182. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10183. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  10184. - # default) and relocated if they conflict, which is a slow very memory
  10185. - # consuming and fragmenting process. To avoid this, we pick a random,
  10186. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10187. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10188. - _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'
  10189. - _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'
  10190. - ;;
  10191. - irix5* | irix6*)
  10192. - case $cc_basename in
  10193. - CC*)
  10194. - # SGI C++
  10195. - _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'
  10196. -
  10197. - # Archives containing C++ object files must be created using
  10198. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10199. - # necessary to make sure instantiated templates are included
  10200. - # in the archive.
  10201. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10202. - ;;
  10203. - *)
  10204. - if test "$GXX" = yes; then
  10205. - if test "$with_gnu_ld" = no; then
  10206. - _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'
  10207. - else
  10208. - _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'
  10209. - fi
  10210. - fi
  10211. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  10212. - ;;
  10213. - esac
  10214. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10215. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10216. - _LT_TAGVAR(inherit_rpath, $1)=yes
  10217. - ;;
  10218. -
  10219. linux*)
  10220. - case $cc_basename in
  10221. - KCC*)
  10222. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  10223. -
  10224. - # KCC will only create a shared library if the output file
  10225. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10226. - # to its proper name (with version) after linking.
  10227. - _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'
  10228. - _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'
  10229. - # Commands to make compiler produce verbose output that lists
  10230. - # what "hidden" libraries, object files and flags are used when
  10231. - # linking a shared library.
  10232. - #
  10233. - # There doesn't appear to be a way to prevent this compiler from
  10234. - # explicitly linking system object files so we need to strip them
  10235. - # from the output so that they don't get included in the library
  10236. - # dependencies.
  10237. - 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'
  10238. -
  10239. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10240. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10241. -
  10242. - # Archives containing C++ object files must be created using
  10243. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10244. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  10245. + case $cc_basename in
  10246. + KCC*)
  10247. + # KAI C++ Compiler
  10248. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  10249. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10250. ;;
  10251. - icpc* | ecpc* )
  10252. + icpc* | ecpc*)
  10253. # Intel C++
  10254. - with_gnu_ld=yes
  10255. - # version 8.0 and above of icpc choke on multiply defined symbols
  10256. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  10257. - # earlier do not add the objects themselves.
  10258. - case `$CC -V 2>&1` in
  10259. - *"Version 7."*)
  10260. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10261. - _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'
  10262. - ;;
  10263. - *) # Version 8.0 or newer
  10264. - tmp_idyn=
  10265. - case $host_cpu in
  10266. - ia64*) tmp_idyn=' -i_dynamic';;
  10267. - esac
  10268. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10269. - _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'
  10270. - ;;
  10271. - esac
  10272. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10273. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10274. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10275. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10276. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10277. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10278. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10279. + ;;
  10280. + pgCC*)
  10281. + # Portland Group C++ compiler.
  10282. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10283. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  10284. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10285. ;;
  10286. - pgCC*)
  10287. - # Portland Group C++ compiler
  10288. - case `$CC -V` in
  10289. - *pgCC\ [[1-5]]*)
  10290. - _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  10291. - rm -rf $tpldir~
  10292. - $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10293. - compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10294. - _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  10295. - rm -rf $tpldir~
  10296. - $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10297. - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10298. - $RANLIB $oldlib'
  10299. - _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  10300. - rm -rf $tpldir~
  10301. - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10302. - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10303. - _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  10304. - rm -rf $tpldir~
  10305. - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10306. - $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'
  10307. - ;;
  10308. - *) # Version 6 will use weak symbols
  10309. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10310. - _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'
  10311. - ;;
  10312. - esac
  10313. -
  10314. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  10315. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10316. - _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'
  10317. - ;;
  10318. cxx*)
  10319. # Compaq C++
  10320. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10321. - _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'
  10322. -
  10323. - runpath_var=LD_RUN_PATH
  10324. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10325. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10326. -
  10327. - # Commands to make compiler produce verbose output that lists
  10328. - # what "hidden" libraries, object files and flags are used when
  10329. - # linking a shared library.
  10330. - #
  10331. - # There doesn't appear to be a way to prevent this compiler from
  10332. - # explicitly linking system object files so we need to strip them
  10333. - # from the output so that they don't get included in the library
  10334. - # dependencies.
  10335. - 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'
  10336. + # Make sure the PIC flag is empty. It appears that all Alpha
  10337. + # Linux and Compaq Tru64 Unix objects are PIC.
  10338. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10339. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10340. + ;;
  10341. + *)
  10342. ;;
  10343. esac
  10344. ;;
  10345. -
  10346. lynxos*)
  10347. - # FIXME: insert proper C++ library support
  10348. - _LT_TAGVAR(ld_shlibs, $1)=no
  10349. ;;
  10350. -
  10351. m88k*)
  10352. - # FIXME: insert proper C++ library support
  10353. - _LT_TAGVAR(ld_shlibs, $1)=no
  10354. ;;
  10355. -
  10356. mvs*)
  10357. - case $cc_basename in
  10358. - cxx*)
  10359. - # FIXME: insert proper C++ library support
  10360. - _LT_TAGVAR(ld_shlibs, $1)=no
  10361. + case $cc_basename in
  10362. + cxx*)
  10363. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  10364. ;;
  10365. *)
  10366. - # FIXME: insert proper C++ library support
  10367. - _LT_TAGVAR(ld_shlibs, $1)=no
  10368. ;;
  10369. esac
  10370. ;;
  10371. -
  10372. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  10373. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10374. - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10375. - wlarc=
  10376. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10377. - _LT_TAGVAR(hardcode_direct, $1)=yes
  10378. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10379. - fi
  10380. - # Workaround some broken pre-1.5 toolchains
  10381. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10382. + netbsd*)
  10383. ;;
  10384. -
  10385. - *nto* | *qnx*)
  10386. - _LT_TAGVAR(ld_shlibs, $1)=yes
  10387. + osf3* | osf4* | osf5*)
  10388. + case $cc_basename in
  10389. + KCC*)
  10390. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  10391. + ;;
  10392. + RCC*)
  10393. + # Rational C++ 2.4.1
  10394. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10395. + ;;
  10396. + cxx*)
  10397. + # Digital/Compaq C++
  10398. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10399. + # Make sure the PIC flag is empty. It appears that all Alpha
  10400. + # Linux and Compaq Tru64 Unix objects are PIC.
  10401. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10402. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10403. + ;;
  10404. + *)
  10405. + ;;
  10406. + esac
  10407. ;;
  10408. -
  10409. - openbsd2*)
  10410. - # C++ shared libraries are fairly broken
  10411. - _LT_TAGVAR(ld_shlibs, $1)=no
  10412. + psos*)
  10413. ;;
  10414. -
  10415. - openbsd*)
  10416. - _LT_TAGVAR(hardcode_direct, $1)=yes
  10417. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10418. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10419. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10420. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10421. - _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'
  10422. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10423. - _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10424. - fi
  10425. - output_verbose_link_cmd=echo
  10426. + solaris*)
  10427. + case $cc_basename in
  10428. + CC*)
  10429. + # Sun C++ 4.2, 5.x and Centerline C++
  10430. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10431. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10432. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10433. + ;;
  10434. + gcx*)
  10435. + # Green Hills C++ Compiler
  10436. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10437. + ;;
  10438. + *)
  10439. + ;;
  10440. + esac
  10441. ;;
  10442. -
  10443. - osf3* | osf4* | osf5*)
  10444. - case $cc_basename in
  10445. - KCC*)
  10446. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  10447. -
  10448. - # KCC will only create a shared library if the output file
  10449. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10450. - # to its proper name (with version) after linking.
  10451. - _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'
  10452. -
  10453. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10454. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10455. -
  10456. - # Archives containing C++ object files must be created using
  10457. - # the KAI C++ compiler.
  10458. - case $host in
  10459. - osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10460. - *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10461. - esac
  10462. + sunos4*)
  10463. + case $cc_basename in
  10464. + CC*)
  10465. + # Sun C++ 4.x
  10466. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10467. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10468. + ;;
  10469. + lcc*)
  10470. + # Lucid
  10471. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10472. ;;
  10473. - RCC*)
  10474. - # Rational C++ 2.4.1
  10475. - # FIXME: insert proper C++ library support
  10476. - _LT_TAGVAR(ld_shlibs, $1)=no
  10477. + *)
  10478. ;;
  10479. - cxx*)
  10480. - case $host in
  10481. - osf3*)
  10482. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10483. - _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'
  10484. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10485. - ;;
  10486. - *)
  10487. - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10488. - _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'
  10489. - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10490. - echo "-hidden">> $lib.exp~
  10491. - $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~
  10492. - $RM $lib.exp'
  10493. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10494. - ;;
  10495. - esac
  10496. -
  10497. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10498. -
  10499. - # Commands to make compiler produce verbose output that lists
  10500. - # what "hidden" libraries, object files and flags are used when
  10501. - # linking a shared library.
  10502. - #
  10503. - # There doesn't appear to be a way to prevent this compiler from
  10504. - # explicitly linking system object files so we need to strip them
  10505. - # from the output so that they don't get included in the library
  10506. - # dependencies.
  10507. - 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'
  10508. + esac
  10509. + ;;
  10510. + tandem*)
  10511. + case $cc_basename in
  10512. + NCC*)
  10513. + # NonStop-UX NCC 3.20
  10514. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10515. ;;
  10516. *)
  10517. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10518. - _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10519. - case $host in
  10520. - osf3*)
  10521. - _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'
  10522. - ;;
  10523. - *)
  10524. - _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'
  10525. - ;;
  10526. - esac
  10527. -
  10528. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10529. - _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10530. -
  10531. - # Commands to make compiler produce verbose output that lists
  10532. - # what "hidden" libraries, object files and flags are used when
  10533. - # linking a shared library.
  10534. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10535. -
  10536. - else
  10537. - # FIXME: insert proper C++ library support
  10538. - _LT_TAGVAR(ld_shlibs, $1)=no
  10539. - fi
  10540. ;;
  10541. - esac
  10542. - ;;
  10543. + esac
  10544. + ;;
  10545. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10546. + case $cc_basename in
  10547. + CC*)
  10548. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10549. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10550. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10551. + ;;
  10552. + esac
  10553. + ;;
  10554. + vxworks*)
  10555. + ;;
  10556. + *)
  10557. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10558. + ;;
  10559. + esac
  10560. + fi
  10561. +],
  10562. +[
  10563. + if test "$GCC" = yes; then
  10564. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10565. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10566. - psos*)
  10567. - # FIXME: insert proper C++ library support
  10568. - _LT_TAGVAR(ld_shlibs, $1)=no
  10569. - ;;
  10570. + case $host_os in
  10571. + aix*)
  10572. + # All AIX code is PIC.
  10573. + if test "$host_cpu" = ia64; then
  10574. + # AIX 5 now supports IA64 processor
  10575. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10576. + fi
  10577. + ;;
  10578. - sunos4*)
  10579. - case $cc_basename in
  10580. - CC*)
  10581. - # Sun C++ 4.x
  10582. - # FIXME: insert proper C++ library support
  10583. - _LT_TAGVAR(ld_shlibs, $1)=no
  10584. - ;;
  10585. - lcc*)
  10586. - # Lucid
  10587. - # FIXME: insert proper C++ library support
  10588. - _LT_TAGVAR(ld_shlibs, $1)=no
  10589. - ;;
  10590. - *)
  10591. - # FIXME: insert proper C++ library support
  10592. - _LT_TAGVAR(ld_shlibs, $1)=no
  10593. - ;;
  10594. - esac
  10595. - ;;
  10596. + amigaos*)
  10597. + # FIXME: we need at least 68020 code to build shared libraries, but
  10598. + # adding the `-m68020' flag to GCC prevents building anything better,
  10599. + # like `-m68040'.
  10600. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10601. + ;;
  10602. - solaris*)
  10603. - case $cc_basename in
  10604. - CC*)
  10605. - # Sun C++ 4.2, 5.x and Centerline C++
  10606. - _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10607. - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10608. - _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10609. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10610. - $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'
  10611. -
  10612. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10613. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10614. - case $host_os in
  10615. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10616. - *)
  10617. - # The C++ compiler is used as linker so we must use $wl
  10618. - # flag to pass the commands to the underlying system
  10619. - # linker. We must also pass each convenience library through
  10620. - # to the system linker between allextract/defaultextract.
  10621. - # The C++ compiler will combine linker options so we
  10622. - # cannot just pass the convenience library names through
  10623. - # without $wl.
  10624. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  10625. - _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  10626. - ;;
  10627. - esac
  10628. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  10629. -
  10630. - output_verbose_link_cmd='echo'
  10631. -
  10632. - # Archives containing C++ object files must be created using
  10633. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10634. - # necessary to make sure instantiated templates are included
  10635. - # in the archive.
  10636. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10637. - ;;
  10638. - gcx*)
  10639. - # Green Hills C++ Compiler
  10640. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10641. -
  10642. - # The C++ compiler must be used to create the archive.
  10643. - _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10644. - ;;
  10645. - *)
  10646. - # GNU C++ compiler with Solaris linker
  10647. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10648. - _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10649. - if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10650. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10651. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10652. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10653. -
  10654. - # Commands to make compiler produce verbose output that lists
  10655. - # what "hidden" libraries, object files and flags are used when
  10656. - # linking a shared library.
  10657. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10658. - else
  10659. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10660. - # platform.
  10661. - _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10662. - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10663. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10664. -
  10665. - # Commands to make compiler produce verbose output that lists
  10666. - # what "hidden" libraries, object files and flags are used when
  10667. - # linking a shared library.
  10668. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10669. - fi
  10670. -
  10671. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10672. - fi
  10673. - ;;
  10674. - esac
  10675. - ;;
  10676. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10677. + # PIC is the default for these OSes.
  10678. + ;;
  10679. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10680. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10681. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10682. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10683. - runpath_var='LD_RUN_PATH'
  10684. + mingw* | pw32* | os2*)
  10685. + # This hack is so that the source file can tell whether it is being
  10686. + # built for inclusion in a dll (and should export symbols for example).
  10687. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10688. + ;;
  10689. - case $cc_basename in
  10690. - CC*)
  10691. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10692. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10693. - ;;
  10694. - *)
  10695. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10696. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10697. - ;;
  10698. + darwin* | rhapsody*)
  10699. + # PIC is the default on this platform
  10700. + # Common symbols not allowed in MH_DYLIB files
  10701. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10702. + ;;
  10703. +
  10704. + interix3*)
  10705. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10706. + # Instead, we relocate shared libraries at runtime.
  10707. + ;;
  10708. +
  10709. + msdosdjgpp*)
  10710. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  10711. + # on systems that don't support them.
  10712. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10713. + enable_shared=no
  10714. + ;;
  10715. +
  10716. + sysv4*MP*)
  10717. + if test -d /usr/nec; then
  10718. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  10719. + fi
  10720. + ;;
  10721. +
  10722. + hpux*)
  10723. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10724. + # not for PA HP-UX.
  10725. + case $host_cpu in
  10726. + hppa*64*|ia64*)
  10727. + # +Z the default
  10728. + ;;
  10729. + *)
  10730. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10731. + ;;
  10732. + esac
  10733. + ;;
  10734. +
  10735. + *)
  10736. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10737. + ;;
  10738. + esac
  10739. + else
  10740. + # PORTME Check for flag to pass linker flags through the system compiler.
  10741. + case $host_os in
  10742. + aix*)
  10743. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10744. + if test "$host_cpu" = ia64; then
  10745. + # AIX 5 now supports IA64 processor
  10746. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10747. + else
  10748. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  10749. + fi
  10750. + ;;
  10751. + darwin*)
  10752. + # PIC is the default on this platform
  10753. + # Common symbols not allowed in MH_DYLIB files
  10754. + case $cc_basename in
  10755. + xlc*)
  10756. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  10757. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10758. + ;;
  10759. + esac
  10760. + ;;
  10761. +
  10762. + mingw* | pw32* | os2*)
  10763. + # This hack is so that the source file can tell whether it is being
  10764. + # built for inclusion in a dll (and should export symbols for example).
  10765. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10766. + ;;
  10767. +
  10768. + hpux9* | hpux10* | hpux11*)
  10769. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10770. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10771. + # not for PA HP-UX.
  10772. + case $host_cpu in
  10773. + hppa*64*|ia64*)
  10774. + # +Z the default
  10775. + ;;
  10776. + *)
  10777. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  10778. + ;;
  10779. esac
  10780. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10781. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  10782. ;;
  10783. - sysv5* | sco3.2v5* | sco5v6*)
  10784. - # Note: We can NOT use -z defs as we might desire, because we do not
  10785. - # link with -lc, and that would cause any symbols used from libc to
  10786. - # always be unresolved, which means just about no library would
  10787. - # ever link correctly. If we're not using GNU ld we use -z text
  10788. - # though, which does catch some bad symbols but isn't as heavy-handed
  10789. - # as -z defs.
  10790. - _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10791. - _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10792. - _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10793. - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10794. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10795. - _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10796. - _LT_TAGVAR(link_all_deplibs, $1)=yes
  10797. - _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10798. - runpath_var='LD_RUN_PATH'
  10799. + irix5* | irix6* | nonstopux*)
  10800. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10801. + # PIC (with -KPIC) is the default.
  10802. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10803. + ;;
  10804. - case $cc_basename in
  10805. - CC*)
  10806. - _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10807. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10808. - ;;
  10809. - *)
  10810. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10811. - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10812. - ;;
  10813. - esac
  10814. + newsos6)
  10815. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10816. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10817. ;;
  10818. - tandem*)
  10819. - case $cc_basename in
  10820. - NCC*)
  10821. - # NonStop-UX NCC 3.20
  10822. - # FIXME: insert proper C++ library support
  10823. - _LT_TAGVAR(ld_shlibs, $1)=no
  10824. - ;;
  10825. - *)
  10826. - # FIXME: insert proper C++ library support
  10827. - _LT_TAGVAR(ld_shlibs, $1)=no
  10828. - ;;
  10829. - esac
  10830. + linux*)
  10831. + case $cc_basename in
  10832. + icc* | ecc*)
  10833. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10834. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10835. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10836. ;;
  10837. -
  10838. - vxworks*)
  10839. - # FIXME: insert proper C++ library support
  10840. - _LT_TAGVAR(ld_shlibs, $1)=no
  10841. + pgcc* | pgf77* | pgf90* | pgf95*)
  10842. + # Portland Group compilers (*not* the Pentium gcc compiler,
  10843. + # which looks to be a dead project)
  10844. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10845. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  10846. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10847. + ;;
  10848. + ccc*)
  10849. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10850. + # All Alpha code is PIC.
  10851. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10852. ;;
  10853. + esac
  10854. + ;;
  10855. +
  10856. + osf3* | osf4* | osf5*)
  10857. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10858. + # All OSF/1 code is PIC.
  10859. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10860. + ;;
  10861. + solaris*)
  10862. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10863. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10864. + case $cc_basename in
  10865. + f77* | f90* | f95*)
  10866. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  10867. *)
  10868. - # FIXME: insert proper C++ library support
  10869. - _LT_TAGVAR(ld_shlibs, $1)=no
  10870. - ;;
  10871. - esac
  10872. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  10873. + esac
  10874. + ;;
  10875. - AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10876. - test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10877. + sunos4*)
  10878. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10879. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10880. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10881. + ;;
  10882. - _LT_TAGVAR(GCC, $1)="$GXX"
  10883. - _LT_TAGVAR(LD, $1)="$LD"
  10884. + sysv4 | sysv4.2uw2* | sysv4.3*)
  10885. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10886. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10887. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10888. + ;;
  10889. - ## CAVEAT EMPTOR:
  10890. - ## There is no encapsulation within the following macros, do not change
  10891. - ## the running order or otherwise move them around unless you know exactly
  10892. - ## what you are doing...
  10893. - _LT_SYS_HIDDEN_LIBDEPS($1)
  10894. - _LT_COMPILER_PIC($1)
  10895. - _LT_COMPILER_C_O($1)
  10896. - _LT_COMPILER_FILE_LOCKS($1)
  10897. - _LT_LINKER_SHLIBS($1)
  10898. - _LT_SYS_DYNAMIC_LINKER($1)
  10899. - _LT_LINKER_HARDCODE_LIBPATH($1)
  10900. -
  10901. - _LT_CONFIG($1)
  10902. - fi # test -n "$compiler"
  10903. -
  10904. - CC=$lt_save_CC
  10905. - LDCXX=$LD
  10906. - LD=$lt_save_LD
  10907. - GCC=$lt_save_GCC
  10908. - with_gnu_ld=$lt_save_with_gnu_ld
  10909. - lt_cv_path_LDCXX=$lt_cv_path_LD
  10910. - lt_cv_path_LD=$lt_save_path_LD
  10911. - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10912. - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10913. -fi # test "$_lt_caught_CXX_error" != yes
  10914. + sysv4*MP*)
  10915. + if test -d /usr/nec ;then
  10916. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  10917. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10918. + fi
  10919. + ;;
  10920. -AC_LANG_POP
  10921. -])# _LT_LANG_CXX_CONFIG
  10922. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10923. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10924. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10925. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10926. + ;;
  10927. + unicos*)
  10928. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10929. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10930. + ;;
  10931. -# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10932. -# ---------------------------------
  10933. -# Figure out "hidden" library dependencies from verbose
  10934. -# compiler output when linking a shared library.
  10935. -# Parse the compiler output and extract the necessary
  10936. -# objects, libraries and library flags.
  10937. -m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10938. -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10939. -# Dependencies to place before and after the object being linked:
  10940. -_LT_TAGVAR(predep_objects, $1)=
  10941. -_LT_TAGVAR(postdep_objects, $1)=
  10942. -_LT_TAGVAR(predeps, $1)=
  10943. -_LT_TAGVAR(postdeps, $1)=
  10944. -_LT_TAGVAR(compiler_lib_search_path, $1)=
  10945. + uts4*)
  10946. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10947. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10948. + ;;
  10949. -dnl we can't use the lt_simple_compile_test_code here,
  10950. -dnl because it contains code intended for an executable,
  10951. -dnl not a library. It's possible we should let each
  10952. -dnl tag define a new lt_????_link_test_code variable,
  10953. -dnl but it's only used here...
  10954. -m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10955. -int a;
  10956. -void foo (void) { a = 0; }
  10957. -_LT_EOF
  10958. -], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10959. -class Foo
  10960. -{
  10961. -public:
  10962. - Foo (void) { a = 0; }
  10963. -private:
  10964. - int a;
  10965. -};
  10966. -_LT_EOF
  10967. -], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10968. - subroutine foo
  10969. - implicit none
  10970. - integer*4 a
  10971. - a=0
  10972. - return
  10973. - end
  10974. -_LT_EOF
  10975. -], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10976. - subroutine foo
  10977. - implicit none
  10978. - integer a
  10979. - a=0
  10980. - return
  10981. - end
  10982. -_LT_EOF
  10983. -], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10984. -public class foo {
  10985. - private int a;
  10986. - public void bar (void) {
  10987. - a = 0;
  10988. - }
  10989. -};
  10990. -_LT_EOF
  10991. + *)
  10992. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10993. + ;;
  10994. + esac
  10995. + fi
  10996. ])
  10997. -dnl Parse the compiler output and extract the necessary
  10998. -dnl objects, libraries and library flags.
  10999. -if AC_TRY_EVAL(ac_compile); then
  11000. - # Parse the compiler output and extract the necessary
  11001. - # objects, libraries and library flags.
  11002. -
  11003. - # Sentinel used to keep track of whether or not we are before
  11004. - # the conftest object file.
  11005. - pre_test_object_deps_done=no
  11006. +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11007. - # The `*' in the case matches for architectures that use `case' in
  11008. - # $output_verbose_cmd can trigger glob expansion during the loop
  11009. - # eval without this substitution.
  11010. - output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  11011. +#
  11012. +# Check to make sure the PIC flag actually works.
  11013. +#
  11014. +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11015. + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11016. + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11017. + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11018. + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11019. + "" | " "*) ;;
  11020. + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11021. + esac],
  11022. + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11023. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11024. +fi
  11025. +case $host_os in
  11026. + # For platforms which do not support PIC, -DPIC is meaningless:
  11027. + *djgpp*)
  11028. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11029. + ;;
  11030. + *)
  11031. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11032. + ;;
  11033. +esac
  11034. - for p in `eval $output_verbose_link_cmd`; do
  11035. - case $p in
  11036. +#
  11037. +# Check to make sure the static flag actually works.
  11038. +#
  11039. +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  11040. +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  11041. + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  11042. + $lt_tmp_static_flag,
  11043. + [],
  11044. + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  11045. +])
  11046. - -L* | -R* | -l*)
  11047. - # Some compilers place space between "-{L,R}" and the path.
  11048. - # Remove the space.
  11049. - if test $p = "-L" ||
  11050. - test $p = "-R"; then
  11051. - prev=$p
  11052. - continue
  11053. - else
  11054. - prev=
  11055. - fi
  11056. - if test "$pre_test_object_deps_done" = no; then
  11057. - case $p in
  11058. - -L* | -R*)
  11059. - # Internal compiler library paths should come after those
  11060. - # provided the user. The postdeps already come after the
  11061. - # user supplied libs so there is no need to process them.
  11062. - if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  11063. - _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  11064. - else
  11065. - _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  11066. - fi
  11067. - ;;
  11068. - # The "-l" case would never come before the object being
  11069. - # linked, so don't bother handling this case.
  11070. - esac
  11071. - else
  11072. - if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  11073. - _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  11074. - else
  11075. - _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  11076. - fi
  11077. - fi
  11078. - ;;
  11079. +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11080. +# ------------------------------------
  11081. +# See if the linker supports building shared libraries.
  11082. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11083. +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11084. +ifelse([$1],[CXX],[
  11085. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11086. + case $host_os in
  11087. + aix4* | aix5*)
  11088. + # If we're using GNU nm, then we don't want the "-C" option.
  11089. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11090. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11091. + _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'
  11092. + else
  11093. + _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'
  11094. + fi
  11095. + ;;
  11096. + pw32*)
  11097. + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11098. + ;;
  11099. + cygwin* | mingw*)
  11100. + _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'
  11101. + ;;
  11102. + *)
  11103. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11104. + ;;
  11105. + esac
  11106. +],[
  11107. + runpath_var=
  11108. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11109. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11110. + _LT_AC_TAGVAR(archive_cmds, $1)=
  11111. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11112. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11113. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11114. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11115. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11116. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11117. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11118. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11119. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11120. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11121. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11122. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11123. + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11124. + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11125. + _LT_AC_TAGVAR(module_cmds, $1)=
  11126. + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11127. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11128. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11129. + # include_expsyms should be a list of space-separated symbols to be *always*
  11130. + # included in the symbol list
  11131. + _LT_AC_TAGVAR(include_expsyms, $1)=
  11132. + # exclude_expsyms can be an extended regexp of symbols to exclude
  11133. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11134. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11135. + # as well as any symbol that contains `d'.
  11136. + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11137. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11138. + # platforms (ab)use it in PIC code, but their linkers get confused if
  11139. + # the symbol is explicitly referenced. Since portable code cannot
  11140. + # rely on this symbol name, it's probably fine to never include it in
  11141. + # preloaded symbol tables.
  11142. + extract_expsyms_cmds=
  11143. + # Just being paranoid about ensuring that cc_basename is set.
  11144. + _LT_CC_BASENAME([$compiler])
  11145. + case $host_os in
  11146. + cygwin* | mingw* | pw32*)
  11147. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11148. + # When not using gcc, we currently assume that we are using
  11149. + # Microsoft Visual C++.
  11150. + if test "$GCC" != yes; then
  11151. + with_gnu_ld=no
  11152. + fi
  11153. + ;;
  11154. + interix*)
  11155. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  11156. + with_gnu_ld=yes
  11157. + ;;
  11158. + openbsd*)
  11159. + with_gnu_ld=no
  11160. + ;;
  11161. + esac
  11162. - *.$objext)
  11163. - # This assumes that the test object file only shows up
  11164. - # once in the compiler output.
  11165. - if test "$p" = "conftest.$objext"; then
  11166. - pre_test_object_deps_done=yes
  11167. - continue
  11168. - fi
  11169. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11170. + if test "$with_gnu_ld" = yes; then
  11171. + # If archive_cmds runs LD, not CC, wlarc should be empty
  11172. + wlarc='${wl}'
  11173. - if test "$pre_test_object_deps_done" = no; then
  11174. - if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  11175. - _LT_TAGVAR(predep_objects, $1)="$p"
  11176. - else
  11177. - _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  11178. - fi
  11179. - else
  11180. - if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  11181. - _LT_TAGVAR(postdep_objects, $1)="$p"
  11182. - else
  11183. - _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  11184. - fi
  11185. - fi
  11186. - ;;
  11187. + # Set some defaults for GNU ld with shared library support. These
  11188. + # are reset later if shared libraries are not supported. Putting them
  11189. + # here allows them to be overridden if necessary.
  11190. + runpath_var=LD_RUN_PATH
  11191. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11192. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11193. + # ancient GNU ld didn't support --whole-archive et. al.
  11194. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11195. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11196. + else
  11197. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11198. + fi
  11199. + supports_anon_versioning=no
  11200. + case `$LD -v 2>/dev/null` in
  11201. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11202. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11203. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11204. + *\ 2.11.*) ;; # other 2.11 versions
  11205. + *) supports_anon_versioning=yes ;;
  11206. + esac
  11207. - *) ;; # Ignore the rest.
  11208. + # See if GNU ld supports shared libraries.
  11209. + case $host_os in
  11210. + aix3* | aix4* | aix5*)
  11211. + # On AIX/PPC, the GNU linker is very broken
  11212. + if test "$host_cpu" != ia64; then
  11213. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11214. + cat <<EOF 1>&2
  11215. - esac
  11216. - done
  11217. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11218. +*** to be unable to reliably create shared libraries on AIX.
  11219. +*** Therefore, libtool is disabling shared libraries support. If you
  11220. +*** really care for shared libraries, you may want to modify your PATH
  11221. +*** so that a non-GNU linker is found, and then restart.
  11222. - # Clean up.
  11223. - rm -f a.out a.exe
  11224. -else
  11225. - echo "libtool.m4: error: problem compiling $1 test program"
  11226. -fi
  11227. +EOF
  11228. + fi
  11229. + ;;
  11230. -$RM -f confest.$objext
  11231. + amigaos*)
  11232. + _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)'
  11233. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11234. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11235. -# PORTME: override above test on systems where it is broken
  11236. -m4_if([$1], [CXX],
  11237. -[case $host_os in
  11238. -interix3*)
  11239. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11240. - # hack all around it, let's just trust "g++" to DTRT.
  11241. - _LT_TAGVAR(predep_objects,$1)=
  11242. - _LT_TAGVAR(postdep_objects,$1)=
  11243. - _LT_TAGVAR(postdeps,$1)=
  11244. - ;;
  11245. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11246. + # that the semantics of dynamic libraries on AmigaOS, at least up
  11247. + # to version 4, is to share data among multiple programs linked
  11248. + # with the same dynamic library. Since this doesn't match the
  11249. + # behavior of shared libraries on other platforms, we can't use
  11250. + # them.
  11251. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11252. + ;;
  11253. -solaris*)
  11254. - case $cc_basename in
  11255. - CC*)
  11256. - # Adding this requires a known-good setup of shared libraries for
  11257. - # Sun compiler versions before 5.6, else PIC objects from an old
  11258. - # archive will be linked into the output, leading to subtle bugs.
  11259. - _LT_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  11260. - ;;
  11261. - esac
  11262. - ;;
  11263. -esac
  11264. -])
  11265. + beos*)
  11266. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11267. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11268. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11269. + # support --undefined. This deserves some investigation. FIXME
  11270. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11271. + else
  11272. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11273. + fi
  11274. + ;;
  11275. -case " $_LT_TAGVAR(postdeps, $1) " in
  11276. -*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  11277. -esac
  11278. -_LT_TAGDECL([], [predep_objects], [1],
  11279. - [Dependencies to place before and after the objects being linked to
  11280. - create a shared library])
  11281. -_LT_TAGDECL([], [postdep_objects], [1])
  11282. -_LT_TAGDECL([], [predeps], [1])
  11283. -_LT_TAGDECL([], [postdeps], [1])
  11284. -_LT_TAGDECL([], [compiler_lib_search_path], [1],
  11285. - [The library search path used internally by the compiler when linking
  11286. - a shared library])
  11287. -])# _LT_SYS_HIDDEN_LIBDEPS
  11288. + cygwin* | mingw* | pw32*)
  11289. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11290. + # as there is no search path for DLLs.
  11291. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11292. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11293. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11294. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11295. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11296. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11297. + _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'
  11298. + # If the export-symbols file already is a .def file (1st line
  11299. + # is EXPORTS), use it as is; otherwise, prepend...
  11300. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11301. + cp $export_symbols $output_objdir/$soname.def;
  11302. + else
  11303. + echo EXPORTS > $output_objdir/$soname.def;
  11304. + cat $export_symbols >> $output_objdir/$soname.def;
  11305. + fi~
  11306. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11307. + else
  11308. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11309. + fi
  11310. + ;;
  11311. -# _LT_PROG_F77
  11312. -# ------------
  11313. -# Since AC_PROG_F77 is broken, in that it returns the empty string
  11314. -# if there is no fortran compiler, we have our own version here.
  11315. -m4_defun([_LT_PROG_F77],
  11316. -[
  11317. -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  11318. -AC_PROG_F77
  11319. -if test -z "$F77" || test "X$F77" = "Xno"; then
  11320. - _lt_disable_F77=yes
  11321. -fi
  11322. -popdef([AC_MSG_ERROR])
  11323. -])# _LT_PROG_F77
  11324. + interix3*)
  11325. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11326. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11327. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11328. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11329. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11330. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  11331. + # default) and relocated if they conflict, which is a slow very memory
  11332. + # consuming and fragmenting process. To avoid this, we pick a random,
  11333. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11334. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11335. + _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'
  11336. + _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'
  11337. + ;;
  11338. +
  11339. + linux*)
  11340. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11341. + tmp_addflag=
  11342. + case $cc_basename,$host_cpu in
  11343. + pgcc*) # Portland Group C compiler
  11344. + _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'
  11345. + tmp_addflag=' $pic_flag'
  11346. + ;;
  11347. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11348. + _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'
  11349. + tmp_addflag=' $pic_flag -Mnomain' ;;
  11350. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11351. + tmp_addflag=' -i_dynamic' ;;
  11352. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11353. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  11354. + ifc* | ifort*) # Intel Fortran compiler
  11355. + tmp_addflag=' -nofor_main' ;;
  11356. + esac
  11357. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11358. -dnl aclocal-1.4 backwards compatibility:
  11359. -dnl AC_DEFUN([_LT_PROG_F77], [])
  11360. + if test $supports_anon_versioning = yes; then
  11361. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11362. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11363. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  11364. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11365. + fi
  11366. + else
  11367. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11368. + fi
  11369. + ;;
  11370. + netbsd*)
  11371. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11372. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11373. + wlarc=
  11374. + else
  11375. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11376. + _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'
  11377. + fi
  11378. + ;;
  11379. -# _LT_LANG_F77_CONFIG([TAG])
  11380. -# --------------------------
  11381. -# Ensure that the configuration variables for a Fortran 77 compiler are
  11382. -# suitably defined. These variables are subsequently used by _LT_CONFIG
  11383. -# to write the compiler configuration to `libtool'.
  11384. -m4_defun([_LT_LANG_F77_CONFIG],
  11385. -[AC_REQUIRE([_LT_PROG_F77])dnl
  11386. -AC_LANG_PUSH(Fortran 77)
  11387. + solaris*)
  11388. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11389. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11390. + cat <<EOF 1>&2
  11391. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11392. -_LT_TAGVAR(allow_undefined_flag, $1)=
  11393. -_LT_TAGVAR(always_export_symbols, $1)=no
  11394. -_LT_TAGVAR(archive_expsym_cmds, $1)=
  11395. -_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11396. -_LT_TAGVAR(hardcode_direct, $1)=no
  11397. -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11398. -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11399. -_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11400. -_LT_TAGVAR(hardcode_minus_L, $1)=no
  11401. -_LT_TAGVAR(hardcode_automatic, $1)=no
  11402. -_LT_TAGVAR(inherit_rpath, $1)=no
  11403. -_LT_TAGVAR(module_cmds, $1)=
  11404. -_LT_TAGVAR(module_expsym_cmds, $1)=
  11405. -_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11406. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11407. -_LT_TAGVAR(no_undefined_flag, $1)=
  11408. -_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11409. -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11410. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11411. +*** create shared libraries on Solaris systems. Therefore, libtool
  11412. +*** is disabling shared libraries support. We urge you to upgrade GNU
  11413. +*** binutils to release 2.9.1 or newer. Another option is to modify
  11414. +*** your PATH or compiler configuration so that the native linker is
  11415. +*** used, and then restart.
  11416. -# Source file extension for f77 test sources.
  11417. -ac_ext=f
  11418. +EOF
  11419. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11420. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11421. + _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'
  11422. + else
  11423. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11424. + fi
  11425. + ;;
  11426. -# Object file extension for compiled f77 test sources.
  11427. -objext=o
  11428. -_LT_TAGVAR(objext, $1)=$objext
  11429. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11430. + case `$LD -v 2>&1` in
  11431. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  11432. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11433. + cat <<_LT_EOF 1>&2
  11434. -# No sense in running all these tests if we already determined that
  11435. -# the F77 compiler isn't working. Some variables (like enable_shared)
  11436. -# are currently assumed to apply to all compilers on this platform,
  11437. -# and will be corrupted by setting them based on a non-working compiler.
  11438. -if test "$_lt_disable_F77" != yes; then
  11439. - # Code to be used in simple compile tests
  11440. - lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11441. -
  11442. - # Code to be used in simple link tests
  11443. - lt_simple_link_test_code=" program t\n end\n"
  11444. -
  11445. - # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11446. - _LT_TAG_COMPILER
  11447. -
  11448. - # save warnings/boilerplate of simple test code
  11449. - _LT_COMPILER_BOILERPLATE
  11450. - _LT_LINKER_BOILERPLATE
  11451. -
  11452. - # Allow CC to be a program name with arguments.
  11453. - lt_save_CC="$CC"
  11454. - CC=${F77-"f77"}
  11455. - compiler=$CC
  11456. - _LT_TAGVAR(compiler, $1)=$CC
  11457. - _LT_CC_BASENAME([$compiler])
  11458. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11459. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  11460. +*** is disabling shared libraries support. We urge you to upgrade GNU
  11461. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11462. +*** your PATH or compiler configuration so that the native linker is
  11463. +*** used, and then restart.
  11464. +
  11465. +_LT_EOF
  11466. + ;;
  11467. + *)
  11468. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11469. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11470. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11471. + _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'
  11472. + else
  11473. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11474. + fi
  11475. + ;;
  11476. + esac
  11477. + ;;
  11478. - if test -n "$compiler"; then
  11479. - AC_MSG_CHECKING([if libtool supports shared libraries])
  11480. - AC_MSG_RESULT([$can_build_shared])
  11481. + sunos4*)
  11482. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11483. + wlarc=
  11484. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11485. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11486. + ;;
  11487. - AC_MSG_CHECKING([whether to build shared libraries])
  11488. - test "$can_build_shared" = "no" && enable_shared=no
  11489. + *)
  11490. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11491. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11492. + _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'
  11493. + else
  11494. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11495. + fi
  11496. + ;;
  11497. + esac
  11498. - # On AIX, shared libraries and static libraries use the same namespace, and
  11499. - # are all built from PIC.
  11500. + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  11501. + runpath_var=
  11502. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11503. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11504. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11505. + fi
  11506. + else
  11507. + # PORTME fill in a description of your system's linker (not GNU ld)
  11508. case $host_os in
  11509. - aix3*)
  11510. - test "$enable_shared" = yes && enable_static=no
  11511. - if test -n "$RANLIB"; then
  11512. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11513. - postinstall_cmds='$RANLIB $lib'
  11514. - fi
  11515. - ;;
  11516. - aix4* | aix5*)
  11517. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11518. - test "$enable_shared" = yes && enable_static=no
  11519. + aix3*)
  11520. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11521. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11522. + _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'
  11523. + # Note: this linker hardcodes the directories in LIBPATH if there
  11524. + # are no directories specified by -L.
  11525. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11526. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11527. + # Neither direct hardcoding nor static linking is supported with a
  11528. + # broken collect2.
  11529. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11530. + fi
  11531. + ;;
  11532. +
  11533. + aix4* | aix5*)
  11534. + if test "$host_cpu" = ia64; then
  11535. + # On IA64, the linker does run time linking by default, so we don't
  11536. + # have to do anything special.
  11537. + aix_use_runtimelinking=no
  11538. + exp_sym_flag='-Bexport'
  11539. + no_entry_flag=""
  11540. + else
  11541. + # If we're using GNU nm, then we don't want the "-C" option.
  11542. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11543. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11544. + _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'
  11545. + else
  11546. + _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'
  11547. fi
  11548. - ;;
  11549. - esac
  11550. - AC_MSG_RESULT([$enable_shared])
  11551. + aix_use_runtimelinking=no
  11552. +
  11553. + # Test if we are trying to use run time linking or normal
  11554. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11555. + # need to do runtime linking.
  11556. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11557. + for ld_flag in $LDFLAGS; do
  11558. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11559. + aix_use_runtimelinking=yes
  11560. + break
  11561. + fi
  11562. + done
  11563. + ;;
  11564. + esac
  11565. - AC_MSG_CHECKING([whether to build static libraries])
  11566. - # Make sure either enable_shared or enable_static is yes.
  11567. - test "$enable_shared" = yes || enable_static=yes
  11568. - AC_MSG_RESULT([$enable_static])
  11569. -
  11570. - _LT_TAGVAR(GCC, $1)="$G77"
  11571. - _LT_TAGVAR(LD, $1)="$LD"
  11572. -
  11573. - ## CAVEAT EMPTOR:
  11574. - ## There is no encapsulation within the following macros, do not change
  11575. - ## the running order or otherwise move them around unless you know exactly
  11576. - ## what you are doing...
  11577. - _LT_COMPILER_PIC($1)
  11578. - _LT_COMPILER_C_O($1)
  11579. - _LT_COMPILER_FILE_LOCKS($1)
  11580. - _LT_LINKER_SHLIBS($1)
  11581. - _LT_SYS_DYNAMIC_LINKER($1)
  11582. - _LT_LINKER_HARDCODE_LIBPATH($1)
  11583. + exp_sym_flag='-bexport'
  11584. + no_entry_flag='-bnoentry'
  11585. + fi
  11586. - _LT_CONFIG($1)
  11587. - fi # test -n "$compiler"
  11588. + # When large executables or shared objects are built, AIX ld can
  11589. + # have problems creating the table of contents. If linking a library
  11590. + # or program results in "error TOC overflow" add -mminimal-toc to
  11591. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11592. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11593. - CC="$lt_save_CC"
  11594. -fi # test "$_lt_disable_F77" != yes
  11595. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  11596. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11597. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  11598. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11599. -AC_LANG_POP
  11600. -])# _LT_LANG_F77_CONFIG
  11601. + if test "$GCC" = yes; then
  11602. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  11603. + # We only want to do this on AIX 4.2 and lower, the check
  11604. + # below for broken collect2 doesn't work under 4.3+
  11605. + collect2name=`${CC} -print-prog-name=collect2`
  11606. + if test -f "$collect2name" && \
  11607. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  11608. + then
  11609. + # We have reworked collect2
  11610. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11611. + else
  11612. + # We have old collect2
  11613. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11614. + # It fails to find uninstalled libraries when the uninstalled
  11615. + # path is not listed in the libpath. Setting hardcode_minus_L
  11616. + # to unsupported forces relinking
  11617. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11618. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11619. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11620. + fi
  11621. + ;;
  11622. + esac
  11623. + shared_flag='-shared'
  11624. + if test "$aix_use_runtimelinking" = yes; then
  11625. + shared_flag="$shared_flag "'${wl}-G'
  11626. + fi
  11627. + else
  11628. + # not using gcc
  11629. + if test "$host_cpu" = ia64; then
  11630. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11631. + # chokes on -Wl,-G. The following line is correct:
  11632. + shared_flag='-G'
  11633. + else
  11634. + if test "$aix_use_runtimelinking" = yes; then
  11635. + shared_flag='${wl}-G'
  11636. + else
  11637. + shared_flag='${wl}-bM:SRE'
  11638. + fi
  11639. + fi
  11640. + fi
  11641. + # It seems that -bexpall does not export symbols beginning with
  11642. + # underscore (_), so it is better to generate a list of symbols to export.
  11643. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11644. + if test "$aix_use_runtimelinking" = yes; then
  11645. + # Warning - without using the other runtime loading flags (-brtl),
  11646. + # -berok will link without error, but may produce a broken library.
  11647. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  11648. + # Determine the default libpath from the value encoded in an empty executable.
  11649. + _LT_AC_SYS_LIBPATH_AIX
  11650. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11651. + _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"
  11652. + else
  11653. + if test "$host_cpu" = ia64; then
  11654. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  11655. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  11656. + _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"
  11657. + else
  11658. + # Determine the default libpath from the value encoded in an empty executable.
  11659. + _LT_AC_SYS_LIBPATH_AIX
  11660. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11661. + # Warning - without using the other run time loading flags,
  11662. + # -berok will link without error, but may produce a broken library.
  11663. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  11664. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  11665. + # Exported symbols can be pulled into shared objects from archives
  11666. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  11667. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  11668. + # This is similar to how AIX traditionally builds its shared libraries.
  11669. + _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'
  11670. + fi
  11671. + fi
  11672. + ;;
  11673. -# _LT_PROG_FC
  11674. -# -----------
  11675. -# Since AC_PROG_FC is broken, in that it returns the empty string
  11676. -# if there is no fortran compiler, we have our own version here.
  11677. -m4_defun([_LT_PROG_FC],
  11678. -[
  11679. -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  11680. -AC_PROG_FC
  11681. -if test -z "$FC" || test "X$FC" = "Xno"; then
  11682. - _lt_disable_FC=yes
  11683. -fi
  11684. -popdef([AC_MSG_ERROR])
  11685. -])# _LT_PROG_FC
  11686. + amigaos*)
  11687. + _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)'
  11688. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11689. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11690. + # see comment about different semantics on the GNU ld section
  11691. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11692. + ;;
  11693. -dnl aclocal-1.4 backwards compatibility:
  11694. -dnl AC_DEFUN([_LT_PROG_FC], [])
  11695. + bsdi[[45]]*)
  11696. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  11697. + ;;
  11698. + cygwin* | mingw* | pw32*)
  11699. + # When not using gcc, we currently assume that we are using
  11700. + # Microsoft Visual C++.
  11701. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  11702. + # no search path for DLLs.
  11703. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  11704. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11705. + # Tell ltmain to make .lib files, not .a files.
  11706. + libext=lib
  11707. + # Tell ltmain to make .dll files, not .so files.
  11708. + shrext_cmds=".dll"
  11709. + # FIXME: Setting linknames here is a bad hack.
  11710. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  11711. + # The linker will automatically build a .lib file if we build a DLL.
  11712. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  11713. + # FIXME: Should let the user specify the lib program.
  11714. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  11715. + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  11716. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11717. + ;;
  11718. -# _LT_LANG_FC_CONFIG([TAG])
  11719. -# -------------------------
  11720. -# Ensure that the configuration variables for a Fortran compiler are
  11721. -# suitably defined. These variables are subsequently used by _LT_CONFIG
  11722. -# to write the compiler configuration to `libtool'.
  11723. -m4_defun([_LT_LANG_FC_CONFIG],
  11724. -[AC_REQUIRE([_LT_PROG_FC])dnl
  11725. -AC_LANG_PUSH(Fortran)
  11726. -
  11727. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11728. -_LT_TAGVAR(allow_undefined_flag, $1)=
  11729. -_LT_TAGVAR(always_export_symbols, $1)=no
  11730. -_LT_TAGVAR(archive_expsym_cmds, $1)=
  11731. -_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11732. -_LT_TAGVAR(hardcode_direct, $1)=no
  11733. -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11734. -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11735. -_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11736. -_LT_TAGVAR(hardcode_minus_L, $1)=no
  11737. -_LT_TAGVAR(hardcode_automatic, $1)=no
  11738. -_LT_TAGVAR(inherit_rpath, $1)=no
  11739. -_LT_TAGVAR(module_cmds, $1)=
  11740. -_LT_TAGVAR(module_expsym_cmds, $1)=
  11741. -_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11742. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11743. -_LT_TAGVAR(no_undefined_flag, $1)=
  11744. -_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11745. -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11746. + darwin* | rhapsody*)
  11747. + case $host_os in
  11748. + rhapsody* | darwin1.[[012]])
  11749. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  11750. + ;;
  11751. + *) # Darwin 1.3 on
  11752. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11753. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11754. + else
  11755. + case ${MACOSX_DEPLOYMENT_TARGET} in
  11756. + 10.[[012]])
  11757. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11758. + ;;
  11759. + 10.*)
  11760. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  11761. + ;;
  11762. + esac
  11763. + fi
  11764. + ;;
  11765. + esac
  11766. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  11767. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11768. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  11769. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11770. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  11771. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11772. + if test "$GCC" = yes ; then
  11773. + output_verbose_link_cmd='echo'
  11774. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11775. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11776. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11777. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11778. + _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}'
  11779. + else
  11780. + case $cc_basename in
  11781. + xlc*)
  11782. + output_verbose_link_cmd='echo'
  11783. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  11784. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11785. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11786. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11787. + _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}'
  11788. + ;;
  11789. + *)
  11790. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11791. + ;;
  11792. + esac
  11793. + fi
  11794. + ;;
  11795. -# Source file extension for fc test sources.
  11796. -ac_ext=${ac_fc_srcext-f}
  11797. + dgux*)
  11798. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11799. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11800. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11801. + ;;
  11802. -# Object file extension for compiled fc test sources.
  11803. -objext=o
  11804. -_LT_TAGVAR(objext, $1)=$objext
  11805. + freebsd1*)
  11806. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11807. + ;;
  11808. -# No sense in running all these tests if we already determined that
  11809. -# the FC compiler isn't working. Some variables (like enable_shared)
  11810. -# are currently assumed to apply to all compilers on this platform,
  11811. -# and will be corrupted by setting them based on a non-working compiler.
  11812. -if test "$_lt_disable_FC" != yes; then
  11813. - # Code to be used in simple compile tests
  11814. - lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  11815. -
  11816. - # Code to be used in simple link tests
  11817. - lt_simple_link_test_code=" program t\n end\n"
  11818. -
  11819. - # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11820. - _LT_TAG_COMPILER
  11821. -
  11822. - # save warnings/boilerplate of simple test code
  11823. - _LT_COMPILER_BOILERPLATE
  11824. - _LT_LINKER_BOILERPLATE
  11825. -
  11826. - # Allow CC to be a program name with arguments.
  11827. - lt_save_CC="$CC"
  11828. - CC=${FC-"f95"}
  11829. - compiler=$CC
  11830. - _LT_TAGVAR(compiler, $1)=$CC
  11831. - _LT_CC_BASENAME([$compiler])
  11832. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11833. + # support. Future versions do this automatically, but an explicit c++rt0.o
  11834. + # does not break anything, and helps significantly (at the cost of a little
  11835. + # extra space).
  11836. + freebsd2.2*)
  11837. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11838. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11839. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11840. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11841. + ;;
  11842. - if test -n "$compiler"; then
  11843. - AC_MSG_CHECKING([if libtool supports shared libraries])
  11844. - AC_MSG_RESULT([$can_build_shared])
  11845. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11846. + freebsd2*)
  11847. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11848. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11849. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11850. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11851. + ;;
  11852. - AC_MSG_CHECKING([whether to build shared libraries])
  11853. - test "$can_build_shared" = "no" && enable_shared=no
  11854. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11855. + freebsd* | kfreebsd*-gnu | dragonfly*)
  11856. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11857. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11858. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11859. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11860. + ;;
  11861. - # On AIX, shared libraries and static libraries use the same namespace, and
  11862. - # are all built from PIC.
  11863. - case $host_os in
  11864. - aix3*)
  11865. - test "$enable_shared" = yes && enable_static=no
  11866. - if test -n "$RANLIB"; then
  11867. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11868. - postinstall_cmds='$RANLIB $lib'
  11869. - fi
  11870. - ;;
  11871. - aix4* | aix5*)
  11872. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11873. - test "$enable_shared" = yes && enable_static=no
  11874. - fi
  11875. - ;;
  11876. - esac
  11877. - AC_MSG_RESULT([$enable_shared])
  11878. + hpux9*)
  11879. + if test "$GCC" = yes; then
  11880. + _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'
  11881. + else
  11882. + _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'
  11883. + fi
  11884. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11885. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11886. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11887. - AC_MSG_CHECKING([whether to build static libraries])
  11888. - # Make sure either enable_shared or enable_static is yes.
  11889. - test "$enable_shared" = yes || enable_static=yes
  11890. - AC_MSG_RESULT([$enable_static])
  11891. -
  11892. - _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  11893. - _LT_TAGVAR(LD, $1)="$LD"
  11894. -
  11895. - ## CAVEAT EMPTOR:
  11896. - ## There is no encapsulation within the following macros, do not change
  11897. - ## the running order or otherwise move them around unless you know exactly
  11898. - ## what you are doing...
  11899. - _LT_SYS_HIDDEN_LIBDEPS($1)
  11900. - _LT_COMPILER_PIC($1)
  11901. - _LT_COMPILER_C_O($1)
  11902. - _LT_COMPILER_FILE_LOCKS($1)
  11903. - _LT_LINKER_SHLIBS($1)
  11904. - _LT_SYS_DYNAMIC_LINKER($1)
  11905. - _LT_LINKER_HARDCODE_LIBPATH($1)
  11906. + # hardcode_minus_L: Not really in the search PATH,
  11907. + # but as the default location of the library.
  11908. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11909. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11910. + ;;
  11911. - _LT_CONFIG($1)
  11912. - fi # test -n "$compiler"
  11913. + hpux10*)
  11914. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  11915. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11916. + else
  11917. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11918. + fi
  11919. + if test "$with_gnu_ld" = no; then
  11920. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11921. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11922. - CC="$lt_save_CC"
  11923. -fi # test "$_lt_disable_FC" != yes
  11924. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11925. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11926. -AC_LANG_POP
  11927. -])# _LT_LANG_FC_CONFIG
  11928. + # hardcode_minus_L: Not really in the search PATH,
  11929. + # but as the default location of the library.
  11930. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11931. + fi
  11932. + ;;
  11933. + hpux11*)
  11934. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  11935. + case $host_cpu in
  11936. + hppa*64*)
  11937. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11938. + ;;
  11939. + ia64*)
  11940. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11941. + ;;
  11942. + *)
  11943. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11944. + ;;
  11945. + esac
  11946. + else
  11947. + case $host_cpu in
  11948. + hppa*64*)
  11949. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11950. + ;;
  11951. + ia64*)
  11952. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11953. + ;;
  11954. + *)
  11955. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11956. + ;;
  11957. + esac
  11958. + fi
  11959. + if test "$with_gnu_ld" = no; then
  11960. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11961. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11962. -# _LT_LANG_GCJ_CONFIG([TAG])
  11963. -# --------------------------
  11964. -# Ensure that the configuration variables for the GNU Java Compiler compiler
  11965. -# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11966. -# to write the compiler configuration to `libtool'.
  11967. -m4_defun([_LT_LANG_GCJ_CONFIG],
  11968. -[AC_REQUIRE([LT_PROG_GCJ])dnl
  11969. -AC_LANG_SAVE
  11970. + case $host_cpu in
  11971. + hppa*64*|ia64*)
  11972. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  11973. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11974. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11975. + ;;
  11976. + *)
  11977. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11978. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11979. -# Source file extension for Java test sources.
  11980. -ac_ext=java
  11981. + # hardcode_minus_L: Not really in the search PATH,
  11982. + # but as the default location of the library.
  11983. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11984. + ;;
  11985. + esac
  11986. + fi
  11987. + ;;
  11988. -# Object file extension for compiled Java test sources.
  11989. -objext=o
  11990. -_LT_TAGVAR(objext, $1)=$objext
  11991. + irix5* | irix6* | nonstopux*)
  11992. + if test "$GCC" = yes; then
  11993. + _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'
  11994. + else
  11995. + _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'
  11996. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  11997. + fi
  11998. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11999. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12000. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12001. + ;;
  12002. -# Code to be used in simple compile tests
  12003. -lt_simple_compile_test_code="class foo {}\n"
  12004. + netbsd*)
  12005. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12006. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12007. + else
  12008. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12009. + fi
  12010. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12011. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12012. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12013. + ;;
  12014. -# Code to be used in simple link tests
  12015. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  12016. + newsos6)
  12017. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12018. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12019. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12020. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12021. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12022. + ;;
  12023. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12024. -_LT_TAG_COMPILER
  12025. + openbsd*)
  12026. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12027. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12028. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12029. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12030. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12031. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12032. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12033. + else
  12034. + case $host_os in
  12035. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12036. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12037. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12038. + ;;
  12039. + *)
  12040. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12041. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12042. + ;;
  12043. + esac
  12044. + fi
  12045. + ;;
  12046. -# save warnings/boilerplate of simple test code
  12047. -_LT_COMPILER_BOILERPLATE
  12048. -_LT_LINKER_BOILERPLATE
  12049. + os2*)
  12050. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12051. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12052. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12053. + _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~$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'
  12054. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12055. + ;;
  12056. -# Allow CC to be a program name with arguments.
  12057. -lt_save_CC="$CC"
  12058. -CC=${GCJ-"gcj"}
  12059. -compiler=$CC
  12060. -_LT_TAGVAR(compiler, $1)=$CC
  12061. -_LT_CC_BASENAME([$compiler])
  12062. + osf3*)
  12063. + if test "$GCC" = yes; then
  12064. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12065. + _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'
  12066. + else
  12067. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12068. + _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'
  12069. + fi
  12070. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12071. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12072. + ;;
  12073. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  12074. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  12075. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  12076. + if test "$GCC" = yes; then
  12077. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12078. + _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'
  12079. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12080. + else
  12081. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12082. + _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'
  12083. + _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~
  12084. + $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'
  12085. -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  12086. + # Both c and cxx compiler support -rpath directly
  12087. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12088. + fi
  12089. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12090. + ;;
  12091. -if test -n "$compiler"; then
  12092. - _LT_COMPILER_NO_RTTI($1)
  12093. - _LT_COMPILER_PIC($1)
  12094. - _LT_COMPILER_C_O($1)
  12095. - _LT_COMPILER_FILE_LOCKS($1)
  12096. - _LT_LINKER_SHLIBS($1)
  12097. - _LT_SYS_DYNAMIC_LINKER($1)
  12098. - _LT_LINKER_HARDCODE_LIBPATH($1)
  12099. + solaris*)
  12100. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12101. + if test "$GCC" = yes; then
  12102. + wlarc='${wl}'
  12103. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12104. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12105. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12106. + else
  12107. + wlarc=''
  12108. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12109. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12110. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12111. + fi
  12112. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12113. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12114. + case $host_os in
  12115. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12116. + *)
  12117. + # The compiler driver will combine linker options so we
  12118. + # cannot just pass the convience library names through
  12119. + # without $wl, iff we do not link with $LD.
  12120. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  12121. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  12122. + case $wlarc in
  12123. + '')
  12124. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12125. + *)
  12126. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12127. + esac ;;
  12128. + esac
  12129. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12130. + ;;
  12131. - _LT_CONFIG($1)
  12132. -fi
  12133. + sunos4*)
  12134. + if test "x$host_vendor" = xsequent; then
  12135. + # Use $CC to link under sequent, because it throws in some extra .o
  12136. + # files that make .init and .fini sections work.
  12137. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12138. + else
  12139. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12140. + fi
  12141. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12142. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12143. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12144. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12145. + ;;
  12146. -AC_LANG_RESTORE
  12147. -CC="$lt_save_CC"
  12148. -])# _LT_LANG_GCJ_CONFIG
  12149. + sysv4)
  12150. + case $host_vendor in
  12151. + sni)
  12152. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12153. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12154. + ;;
  12155. + siemens)
  12156. + ## LD is ld it makes a PLAMLIB
  12157. + ## CC just makes a GrossModule.
  12158. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12159. + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12160. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12161. + ;;
  12162. + motorola)
  12163. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12164. + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12165. + ;;
  12166. + esac
  12167. + runpath_var='LD_RUN_PATH'
  12168. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12169. + ;;
  12170. + sysv4.3*)
  12171. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12172. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12173. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12174. + ;;
  12175. -# _LT_LANG_RC_CONFIG([TAG])
  12176. -# -------------------------
  12177. -# Ensure that the configuration variables for the Windows resource compiler
  12178. -# are suitably defined. These variables are subsequently used by _LT_CONFIG
  12179. -# to write the compiler configuration to `libtool'.
  12180. -m4_defun([_LT_LANG_RC_CONFIG],
  12181. -[AC_REQUIRE([LT_PROG_RC])dnl
  12182. -AC_LANG_SAVE
  12183. + sysv4*MP*)
  12184. + if test -d /usr/nec; then
  12185. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12186. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12187. + runpath_var=LD_RUN_PATH
  12188. + hardcode_runpath_var=yes
  12189. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12190. + fi
  12191. + ;;
  12192. -# Source file extension for RC test sources.
  12193. -ac_ext=rc
  12194. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  12195. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12196. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12197. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12198. + runpath_var='LD_RUN_PATH'
  12199. -# Object file extension for compiled RC test sources.
  12200. -objext=o
  12201. -_LT_TAGVAR(objext, $1)=$objext
  12202. + if test "$GCC" = yes; then
  12203. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12204. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12205. + else
  12206. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12207. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12208. + fi
  12209. + ;;
  12210. -# Code to be used in simple compile tests
  12211. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  12212. + sysv5* | sco3.2v5* | sco5v6*)
  12213. + # Note: We can NOT use -z defs as we might desire, because we do not
  12214. + # link with -lc, and that would cause any symbols used from libc to
  12215. + # always be unresolved, which means just about no library would
  12216. + # ever link correctly. If we're not using GNU ld we use -z text
  12217. + # though, which does catch some bad symbols but isn't as heavy-handed
  12218. + # as -z defs.
  12219. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12220. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  12221. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12222. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12223. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12224. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12225. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12226. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12227. + runpath_var='LD_RUN_PATH'
  12228. -# Code to be used in simple link tests
  12229. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  12230. + if test "$GCC" = yes; then
  12231. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12232. + _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'
  12233. + else
  12234. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12235. + _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'
  12236. + fi
  12237. + ;;
  12238. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12239. -_LT_TAG_COMPILER
  12240. + uts4*)
  12241. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12242. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12243. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12244. + ;;
  12245. -# save warnings/boilerplate of simple test code
  12246. -_LT_COMPILER_BOILERPLATE
  12247. -_LT_LINKER_BOILERPLATE
  12248. + *)
  12249. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12250. + ;;
  12251. + esac
  12252. + fi
  12253. +])
  12254. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12255. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12256. -# Allow CC to be a program name with arguments.
  12257. -lt_save_CC="$CC"
  12258. -CC=${RC-"windres"}
  12259. -compiler=$CC
  12260. -_LT_TAGVAR(compiler, $1)=$CC
  12261. -_LT_CC_BASENAME([$compiler])
  12262. -_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  12263. +#
  12264. +# Do we need to explicitly link libc?
  12265. +#
  12266. +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12267. +x|xyes)
  12268. + # Assume -lc should be added
  12269. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12270. -if test -n "$compiler"; then
  12271. - :
  12272. - _LT_CONFIG($1)
  12273. -fi
  12274. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  12275. + case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12276. + *'~'*)
  12277. + # FIXME: we may have to deal with multi-command sequences.
  12278. + ;;
  12279. + '$CC '*)
  12280. + # Test whether the compiler implicitly links with -lc since on some
  12281. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12282. + # to ld, don't add -lc before -lgcc.
  12283. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12284. + $rm conftest*
  12285. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12286. -AC_LANG_RESTORE
  12287. -CC="$lt_save_CC"
  12288. -])# _LT_LANG_RC_CONFIG
  12289. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12290. + soname=conftest
  12291. + lib=conftest
  12292. + libobjs=conftest.$ac_objext
  12293. + deplibs=
  12294. + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12295. + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  12296. + compiler_flags=-v
  12297. + linker_flags=-v
  12298. + verstring=
  12299. + output_objdir=.
  12300. + libname=conftest
  12301. + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12302. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12303. + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12304. + then
  12305. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12306. + else
  12307. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12308. + fi
  12309. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12310. + else
  12311. + cat conftest.err 1>&5
  12312. + fi
  12313. + $rm conftest*
  12314. + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12315. + ;;
  12316. + esac
  12317. + fi
  12318. + ;;
  12319. +esac
  12320. +])# AC_LIBTOOL_PROG_LD_SHLIBS
  12321. -# LT_PROG_GCJ
  12322. -# -----------
  12323. -AC_DEFUN([LT_PROG_GCJ],
  12324. -[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  12325. - [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  12326. - [AC_CHECK_TOOL(GCJ, gcj,)
  12327. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12328. - AC_SUBST(GCJFLAGS)])])dnl
  12329. -])
  12330. +# _LT_AC_FILE_LTDLL_C
  12331. +# -------------------
  12332. +# Be careful that the start marker always follows a newline.
  12333. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12334. +# /* ltdll.c starts here */
  12335. +# #define WIN32_LEAN_AND_MEAN
  12336. +# #include <windows.h>
  12337. +# #undef WIN32_LEAN_AND_MEAN
  12338. +# #include <stdio.h>
  12339. +#
  12340. +# #ifndef __CYGWIN__
  12341. +# # ifdef __CYGWIN32__
  12342. +# # define __CYGWIN__ __CYGWIN32__
  12343. +# # endif
  12344. +# #endif
  12345. +#
  12346. +# #ifdef __cplusplus
  12347. +# extern "C" {
  12348. +# #endif
  12349. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12350. +# #ifdef __cplusplus
  12351. +# }
  12352. +# #endif
  12353. +#
  12354. +# #ifdef __CYGWIN__
  12355. +# #include <cygwin/cygwin_dll.h>
  12356. +# DECLARE_CYGWIN_DLL( DllMain );
  12357. +# #endif
  12358. +# HI