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

http://macfuse.googlecode.com/ · Patch · 55794 lines · 53768 code · 2026 blank · 0 comment · 0 complexity · ed96b5cbba27551834293a2455db19a9 MD5 · raw file

  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. +# HINSTANCE __hDllInstance_base;
  12359. +#
  12360. +# BOOL APIENTRY
  12361. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12362. +# {
  12363. +# __hDllInstance_base = hInst;
  12364. +# return TRUE;
  12365. +# }
  12366. +# /* ltdll.c ends here */
  12367. +])# _LT_AC_FILE_LTDLL_C
  12368. -# Old name:
  12369. -AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  12370. -dnl aclocal-1.4 backwards compatibility:
  12371. -dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  12372. +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12373. +# ---------------------------------
  12374. +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12375. -# LT_PROG_RC
  12376. -# ----------
  12377. -AC_DEFUN([LT_PROG_RC],
  12378. -[AC_CHECK_TOOL(RC, windres,)
  12379. -])
  12380. -# Old name:
  12381. -AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  12382. -dnl aclocal-1.4 backwards compatibility:
  12383. -dnl AC_DEFUN([LT_AC_PROG_RC], [])
  12384. +# old names
  12385. +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12386. +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12387. +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12388. +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12389. +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12390. +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12391. +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12392. +# This is just to silence aclocal about the macro not being used
  12393. +ifelse([AC_DISABLE_FAST_INSTALL])
  12394. -# _LT_DECL_EGREP
  12395. -# --------------
  12396. -# If we don't have a new enough Autoconf to choose the best grep
  12397. -# available, choose the one first in the user's PATH.
  12398. -m4_defun([_LT_DECL_EGREP],
  12399. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  12400. -AC_REQUIRE([AC_PROG_FGREP])dnl
  12401. -test -z "$GREP" && GREP=grep
  12402. -_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  12403. -_LT_DECL([], [EGREP], [1], [An ERE matcher])
  12404. -_LT_DECL([], [FGREP], [1], [A literal string matcher])
  12405. -dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  12406. -AC_SUBST([GREP])
  12407. +AC_DEFUN([LT_AC_PROG_GCJ],
  12408. +[AC_CHECK_TOOL(GCJ, gcj, no)
  12409. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12410. + AC_SUBST(GCJFLAGS)
  12411. ])
  12412. +AC_DEFUN([LT_AC_PROG_RC],
  12413. +[AC_CHECK_TOOL(RC, windres, no)
  12414. +])
  12415. -# _LT_DECL_SED
  12416. -# ------------
  12417. -# Check for a fully-functional sed program, that truncates
  12418. -# as few characters as possible. Prefer GNU sed if found.
  12419. -m4_defun([_LT_DECL_SED],
  12420. -[AC_PROG_SED
  12421. -test -z "$SED" && SED=sed
  12422. -_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  12423. -_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  12424. - [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  12425. -])# _LT_DECL_SED
  12426. -
  12427. -m4_ifndef([AC_PROG_SED], [
  12428. # NOTE: This macro has been submitted for inclusion into #
  12429. # GNU Autoconf as AC_PROG_SED. When it is available in #
  12430. # a released version of Autoconf we should remove this #
  12431. # macro and use it instead. #
  12432. -
  12433. -AC_DEFUN([AC_PROG_SED],
  12434. +# LT_AC_PROG_SED
  12435. +# --------------
  12436. +# Check for a fully-functional sed program, that truncates
  12437. +# as few characters as possible. Prefer GNU sed if found.
  12438. +AC_DEFUN([LT_AC_PROG_SED],
  12439. [AC_MSG_CHECKING([for a sed that does not truncate output])
  12440. AC_CACHE_VAL(lt_cv_path_SED,
  12441. [# Loop through the user's path and test for sed and gsed.
  12442. @@ -7830,622 +6390,10 @@
  12443. done
  12444. ])
  12445. SED=$lt_cv_path_SED
  12446. -AC_SUBST([SED])
  12447. AC_MSG_RESULT([$SED])
  12448. -])#AC_PROG_SED
  12449. -])#m4_ifndef
  12450. -
  12451. -
  12452. -# _LT_CHECK_XSI_SHELL
  12453. -# -------------------
  12454. -# define func_basename as either Bourne or XSI compatible
  12455. -m4_defun([_LT_CHECK_XSI_SHELL],
  12456. -[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  12457. -# Try some XSI features
  12458. -xsi_shell=no
  12459. -( _lt_dummy="a/b/c"
  12460. - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  12461. - = c,a/b,, ) >/dev/null 2>&1 \
  12462. - && xsi_shell=yes
  12463. -AC_MSG_RESULT([$xsi_shell])
  12464. -_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  12465. -])# _LT_CHECK_XSI_SHELL
  12466. -
  12467. -
  12468. -# _LT_PROG_XSI_SHELLFNS
  12469. -# ---------------------
  12470. -# Bourne and XSI compatible variants of some useful shell functions.
  12471. -m4_defun([_LT_PROG_XSI_SHELLFNS],
  12472. -[case $xsi_shell in
  12473. - yes)
  12474. - cat << \_LT_EOF >> "$cfgfile"
  12475. -# func_dirname file append nondir_replacement
  12476. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12477. -# otherwise set result to NONDIR_REPLACEMENT.
  12478. -func_dirname ()
  12479. -{
  12480. - case ${1} in
  12481. - */*) func_dirname_result="${1%/*}${2}" ;;
  12482. - * ) func_dirname_result="${3}" ;;
  12483. - esac
  12484. -}
  12485. -
  12486. -# func_basename file
  12487. -func_basename ()
  12488. -{
  12489. - func_basename_result="${1##*/}"
  12490. -}
  12491. -
  12492. -# func_stripname prefix suffix name
  12493. -# strip PREFIX and SUFFIX off of NAME.
  12494. -# PREFIX and SUFFIX must not contain globbing or regex special
  12495. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  12496. -# dot (in which case that matches only a dot).
  12497. -func_stripname ()
  12498. -{
  12499. - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12500. - # positional parameters, so assign one to ordinary parameter first.
  12501. - func_stripname_result=${3}
  12502. - func_stripname_result=${func_stripname_result#"${1}"}
  12503. - func_stripname_result=${func_stripname_result%"${2}"}
  12504. -}
  12505. -_LT_EOF
  12506. - ;;
  12507. - *) # Bourne compatible functions.
  12508. - cat << \_LT_EOF >> "$cfgfile"
  12509. -# func_dirname file append nondir_replacement
  12510. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12511. -# otherwise set result to NONDIR_REPLACEMENT.
  12512. -func_dirname ()
  12513. -{
  12514. - # Extract subdirectory from the argument.
  12515. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  12516. - if test "X$func_dirname_result" = "X${1}"; then
  12517. - func_dirname_result="${3}"
  12518. - else
  12519. - func_dirname_result="$func_dirname_result${2}"
  12520. - fi
  12521. -}
  12522. -
  12523. -# func_basename file
  12524. -func_basename ()
  12525. -{
  12526. - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  12527. -}
  12528. -
  12529. -# func_stripname prefix suffix name
  12530. -# strip PREFIX and SUFFIX off of NAME.
  12531. -# PREFIX and SUFFIX must not contain globbing or regex special
  12532. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  12533. -# dot (in which case that matches only a dot).
  12534. -# func_strip_suffix prefix name
  12535. -func_stripname ()
  12536. -{
  12537. - case ${2} in
  12538. - .*) func_stripname_result=`$ECHO "X${3}" \
  12539. - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  12540. - *) func_stripname_result=`$ECHO "X${3}" \
  12541. - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  12542. - esac
  12543. -}
  12544. -_LT_EOF
  12545. -esac
  12546. -])
  12547. -
  12548. -# Helper functions for option handling. -*- Autoconf -*-
  12549. -
  12550. -# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  12551. -# Written by Gary V. Vaughan <gary@gnu.org>
  12552. -#
  12553. -# This file is free software; the Free Software Foundation gives
  12554. -# unlimited permission to copy and/or distribute it, with or without
  12555. -# modifications, as long as this notice is preserved.
  12556. -
  12557. -# serial 3 ltoptions.m4
  12558. -
  12559. -# This is to help aclocal find these macros, as it can't see m4_define.
  12560. -AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  12561. -
  12562. -
  12563. -# _LT_MANGLE_OPTION(NAME)
  12564. -# -----------------------
  12565. -m4_define([_LT_MANGLE_OPTION],
  12566. -[[_LT_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  12567. -
  12568. -
  12569. -# _LT_SET_OPTION(NAME)
  12570. -# --------------------
  12571. -# Set option NAME, and if there is a matching handler defined,
  12572. -# dispatch to it. Other NAMEs are saved as a flag.
  12573. -m4_define([_LT_SET_OPTION],
  12574. -[m4_define(_LT_MANGLE_OPTION([$1]))dnl
  12575. -m4_ifdef(_LT_MANGLE_DEFUN([$1]),
  12576. - _LT_MANGLE_DEFUN([$1]),
  12577. - [m4_warning([Unknown Libtool option `$1'])])[]dnl
  12578. -])
  12579. -
  12580. -
  12581. -# _LT_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  12582. -# -------------------------------------------
  12583. -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  12584. -m4_define([_LT_IF_OPTION],
  12585. -[m4_ifdef(_LT_MANGLE_OPTION([$1]), [$2], [$3])])
  12586. -
  12587. -
  12588. -# _LT_UNLESS_OPTIONS(OPTIONS, IF-NOT-SET)
  12589. -# ---------------------------------------
  12590. -# Execute IF-NOT-SET if all OPTIONS are not set.
  12591. -m4_define([_LT_UNLESS_OPTIONS],
  12592. -[m4_foreach([_LT_Option], m4_split(m4_normalize([$1])),
  12593. - [m4_ifdef(_LT_MANGLE_OPTION(_LT_Option),
  12594. - [m4_define([$0_found])])])[]dnl
  12595. -m4_ifdef([$0_found], [m4_undefine([$0_found])], [$2
  12596. -])[]dnl
  12597. -])
  12598. -
  12599. -
  12600. -# _LT_SET_OPTIONS(OPTIONS)
  12601. -# ------------------------
  12602. -# OPTIONS is a space-separated list of Libtool options.
  12603. -# If any OPTION has a handler macro declared with LT_OPTION_DEFINE,
  12604. -# dispatch to that macro; otherwise complain about the unknown option
  12605. -# and exit.
  12606. -m4_defun([_LT_SET_OPTIONS],
  12607. -[# Set options
  12608. -m4_foreach([_LT_Option], m4_split(m4_normalize([$1])),
  12609. - [_LT_SET_OPTION(_LT_Option)])
  12610. -dnl
  12611. -dnl Simply set some default values (i.e off) if boolean options were not
  12612. -dnl specified:
  12613. -_LT_UNLESS_OPTIONS([dlopen], [enable_dlopen=no
  12614. -])
  12615. -_LT_UNLESS_OPTIONS([win32-dll], [enable_win32_dll=no
  12616. -])
  12617. -dnl
  12618. -dnl If no reference was made to various pairs of opposing options, then
  12619. -dnl we run the default mode handler for the pair. For example, if neither
  12620. -dnl `shared' nor `disable-shared' was passed, we enable building of shared
  12621. -dnl archives by default:
  12622. -_LT_UNLESS_OPTIONS([shared disable-shared], [_LT_ENABLE_SHARED])
  12623. -_LT_UNLESS_OPTIONS([static disable-static], [_LT_ENABLE_STATIC])
  12624. -_LT_UNLESS_OPTIONS([pic-only no-pic], [_LT_WITH_PIC])
  12625. -_LT_UNLESS_OPTIONS([fast-install disable-fast-install],
  12626. - [_LT_ENABLE_FAST_INSTALL])
  12627. -])# _LT_SET_OPTIONS
  12628. -
  12629. -
  12630. -
  12631. -m4_define([_LT_MANGLE_DEFUN],
  12632. -[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1]), [[^A-Z0-9_]], [_])])
  12633. -
  12634. -
  12635. -# LT_OPTION_DEFINE(NAME, CODE)
  12636. -# ----------------------------
  12637. -m4_define([LT_OPTION_DEFINE],
  12638. -[m4_define(_LT_MANGLE_DEFUN([$1]), [$2])[]dnl
  12639. -])# LT_OPTION_DEFINE
  12640. -
  12641. -
  12642. -# dlopen
  12643. -# ------
  12644. -LT_OPTION_DEFINE([dlopen], [enable_dlopen=yes
  12645. -])
  12646. -
  12647. -AU_DEFUN([AC_LIBTOOL_DLOPEN],
  12648. -[_LT_SET_OPTION([dlopen])
  12649. -AC_DIAGNOSE([obsolete],
  12650. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12651. -put the `dlopen' option into LT_INIT's first parameter.])
  12652. -])
  12653. -
  12654. -dnl aclocal-1.4 backwards compatibility:
  12655. -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  12656. -
  12657. -
  12658. -# win32-dll
  12659. -# ---------
  12660. -# Declare package support for building win32 dll's.
  12661. -LT_OPTION_DEFINE([win32-dll],
  12662. -[enable_win32_dll=yes
  12663. -
  12664. -case $host in
  12665. -*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  12666. - AC_CHECK_TOOL(AS, as, false)
  12667. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  12668. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  12669. - ;;
  12670. -esac
  12671. -
  12672. -test -z "$AS" && AS=as
  12673. -_LT_DECL([], [AS], [0], [Assembler program])dnl
  12674. -
  12675. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  12676. -_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  12677. -
  12678. -test -z "$OBJDUMP" && OBJDUMP=objdump
  12679. -_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  12680. -])# win32-dll
  12681. -
  12682. -AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  12683. -[_LT_SET_OPTION([win32-dll])
  12684. -AC_DIAGNOSE([obsolete],
  12685. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12686. -put the `win32-dll' option into LT_INIT's first parameter.])
  12687. -])
  12688. -
  12689. -dnl aclocal-1.4 backwards compatibility:
  12690. -dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12691. -
  12692. -
  12693. -# _LT_ENABLE_SHARED([DEFAULT])
  12694. -# ----------------------------
  12695. -# implement the --enable-shared flag, and supports the `shared' and
  12696. -# `disable-shared' LT_INIT options.
  12697. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12698. -m4_define([_LT_ENABLE_SHARED],
  12699. -[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12700. -AC_ARG_ENABLE([shared],
  12701. - [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12702. - [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12703. - [p=${PACKAGE-default}
  12704. - case $enableval in
  12705. - yes) enable_shared=yes ;;
  12706. - no) enable_shared=no ;;
  12707. - *)
  12708. - enable_shared=no
  12709. - # Look at the argument we got. We use all the common list separators.
  12710. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12711. - for pkg in $enableval; do
  12712. - IFS="$lt_save_ifs"
  12713. - if test "X$pkg" = "X$p"; then
  12714. - enable_shared=yes
  12715. - fi
  12716. - done
  12717. - IFS="$lt_save_ifs"
  12718. - ;;
  12719. - esac],
  12720. - [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12721. -
  12722. - _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12723. - [Whether or not to build shared libraries])
  12724. -])# _LT_ENABLE_SHARED
  12725. -
  12726. -LT_OPTION_DEFINE([shared], [_LT_ENABLE_SHARED([yes])])
  12727. -LT_OPTION_DEFINE([disable-shared], [_LT_ENABLE_SHARED([no])])
  12728. -
  12729. -# Old names:
  12730. -AU_DEFUN([AC_ENABLE_SHARED],
  12731. -[_LT_SET_OPTION([shared])
  12732. -AC_DIAGNOSE([obsolete],
  12733. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12734. -put the `shared' option into LT_INIT's first parameter.])
  12735. -])
  12736. -
  12737. -AU_DEFUN([AM_ENABLE_SHARED],
  12738. -[_LT_SET_OPTION([shared])
  12739. -AC_DIAGNOSE([obsolete],
  12740. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12741. -put the `shared' option into LT_INIT's first parameter.])
  12742. -])
  12743. -
  12744. -AU_DEFUN([AC_DISABLE_SHARED],
  12745. -[_LT_SET_OPTION([disable-shared])
  12746. -AC_DIAGNOSE([obsolete],
  12747. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12748. -the `disable-shared' option into LT_INIT's first parameter.])
  12749. -])
  12750. -
  12751. -AU_DEFUN([AM_DISABLE_SHARED],
  12752. -[_LT_SET_OPTION([disable-shared])
  12753. -AC_DIAGNOSE([obsolete],
  12754. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12755. -the `disable-shared' option into LT_INIT's first parameter.])
  12756. -])
  12757. -
  12758. -dnl aclocal-1.4 backwards compatibility:
  12759. -dnl AC_DEFUN([AC_ENABLE_SHARED], [])
  12760. -dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12761. -dnl AC_DEFUN([AC_DISABLE_SHARED], [])
  12762. -dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12763. -
  12764. -
  12765. -
  12766. -# _LT_ENABLE_STATIC([DEFAULT])
  12767. -# ----------------------------
  12768. -# implement the --enable-static flag, and support the `static' and
  12769. -# `disable-static' LT_INIT options.
  12770. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12771. -m4_define([_LT_ENABLE_STATIC],
  12772. -[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12773. -AC_ARG_ENABLE([static],
  12774. - [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12775. - [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12776. - [p=${PACKAGE-default}
  12777. - case $enableval in
  12778. - yes) enable_static=yes ;;
  12779. - no) enable_static=no ;;
  12780. - *)
  12781. - enable_static=no
  12782. - # Look at the argument we got. We use all the common list separators.
  12783. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12784. - for pkg in $enableval; do
  12785. - IFS="$lt_save_ifs"
  12786. - if test "X$pkg" = "X$p"; then
  12787. - enable_static=yes
  12788. - fi
  12789. - done
  12790. - IFS="$lt_save_ifs"
  12791. - ;;
  12792. - esac],
  12793. - [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12794. -
  12795. - _LT_DECL([build_old_libs], [enable_static], [0],
  12796. - [Whether or not to build static libraries])
  12797. -])# _LT_ENABLE_STATIC
  12798. -
  12799. -LT_OPTION_DEFINE([static], [_LT_ENABLE_STATIC([yes])])
  12800. -LT_OPTION_DEFINE([disable-static], [_LT_ENABLE_STATIC([no])])
  12801. -
  12802. -# Old names:
  12803. -AU_DEFUN([AC_ENABLE_STATIC],
  12804. -[_LT_SET_OPTION([static])
  12805. -AC_DIAGNOSE([obsolete],
  12806. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12807. -put the `static' option into LT_INIT's first parameter.])
  12808. -])
  12809. -
  12810. -AU_DEFUN([AM_ENABLE_STATIC],
  12811. -[_LT_SET_OPTION([static])
  12812. -AC_DIAGNOSE([obsolete],
  12813. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12814. -put the `static' option into LT_INIT's first parameter.])
  12815. -])
  12816. -
  12817. -AU_DEFUN([AC_DISABLE_STATIC],
  12818. -[_LT_SET_OPTION([disable-static])
  12819. -AC_DIAGNOSE([obsolete],
  12820. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12821. -the `disable-static' option into LT_INIT's first parameter.])
  12822. -])
  12823. -
  12824. -AU_DEFUN([AM_DISABLE_STATIC],
  12825. -[_LT_SET_OPTION([disable-static])
  12826. -AC_DIAGNOSE([obsolete],
  12827. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12828. -the `disable-static' option into LT_INIT's first parameter.])
  12829. -])
  12830. -
  12831. -dnl aclocal-1.4 backwards compatibility:
  12832. -dnl AC_DEFUN([AC_ENABLE_STATIC], [])
  12833. -dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12834. -dnl AC_DEFUN([AC_DISABLE_STATIC], [])
  12835. -dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12836. -
  12837. -
  12838. -
  12839. -# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12840. -# ----------------------------------
  12841. -# implement the --enable-fast-install flag, and support the `fast-install'
  12842. -# and `disable-fast-install' LT_INIT options.
  12843. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12844. -m4_define([_LT_ENABLE_FAST_INSTALL],
  12845. -[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12846. -AC_ARG_ENABLE([fast-install],
  12847. - [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12848. - [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12849. - [p=${PACKAGE-default}
  12850. - case $enableval in
  12851. - yes) enable_fast_install=yes ;;
  12852. - no) enable_fast_install=no ;;
  12853. - *)
  12854. - enable_fast_install=no
  12855. - # Look at the argument we got. We use all the common list separators.
  12856. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12857. - for pkg in $enableval; do
  12858. - IFS="$lt_save_ifs"
  12859. - if test "X$pkg" = "X$p"; then
  12860. - enable_fast_install=yes
  12861. - fi
  12862. - done
  12863. - IFS="$lt_save_ifs"
  12864. - ;;
  12865. - esac],
  12866. - [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12867. -
  12868. -_LT_DECL([fast_install], [enable_fast_install], [0],
  12869. - [Whether or not to optimize for fast installation])dnl
  12870. -])# _LT_ENABLE_FAST_INSTALL
  12871. -
  12872. -LT_OPTION_DEFINE([fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12873. -LT_OPTION_DEFINE([disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12874. -
  12875. -# Old names:
  12876. -AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12877. -[_LT_SET_OPTION([fast-install])
  12878. -AC_DIAGNOSE([obsolete],
  12879. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12880. -the `fast-install' option into LT_INIT's first parameter.])
  12881. -])
  12882. -
  12883. -AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12884. -[_LT_SET_OPTION([disable-fast-install])
  12885. -AC_DIAGNOSE([obsolete],
  12886. -[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12887. -the `disable-fast-install' option into LT_INIT's first parameter.])
  12888. -])
  12889. -
  12890. -dnl aclocal-1.4 backwards compatibility:
  12891. -dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12892. -dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12893. -
  12894. -
  12895. -# _LT_WITH_PIC([MODE])
  12896. -# --------------------
  12897. -# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12898. -# LT_INIT options.
  12899. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12900. -m4_define([_LT_WITH_PIC],
  12901. -[AC_ARG_WITH([pic],
  12902. - [AS_HELP_STRING([--with-pic],
  12903. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12904. - [pic_mode="$withval"],
  12905. - [pic_mode=default])
  12906. -
  12907. -test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12908. -
  12909. -_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12910. -])# _LT_WITH_PIC
  12911. -
  12912. -LT_OPTION_DEFINE([pic-only], [_LT_WITH_PIC([yes])])
  12913. -LT_OPTION_DEFINE([no-pic], [_LT_WITH_PIC([no])])
  12914. -
  12915. -# Old name:
  12916. -AU_DEFUN([AC_LIBTOOL_PICMODE],
  12917. -[_LT_SET_OPTION([pic-only])
  12918. -AC_DIAGNOSE([obsolete],
  12919. -[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12920. -put the `pic-only' option into LT_INIT's first parameter.])
  12921. -])
  12922. -
  12923. -dnl aclocal-1.4 backwards compatibility:
  12924. -dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12925. -
  12926. -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12927. -#
  12928. -# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  12929. -# Written by Gary V. Vaughan.
  12930. -#
  12931. -# This file is free software; the Free Software Foundation gives
  12932. -# unlimited permission to copy and/or distribute it, with or without
  12933. -# modifications, as long as this notice is preserved.
  12934. -
  12935. -# serial 3 ltsugar.m4
  12936. -
  12937. -# This is to help aclocal find these macros, as it can't see m4_define.
  12938. -AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12939. -
  12940. -
  12941. -# lt_join(SEP, ARG1, [ARG2...])
  12942. -# -----------------------------
  12943. -# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12944. -# associated separator.
  12945. -m4_define([lt_join],
  12946. -[m4_case([$#],
  12947. - [0], [m4_fatal([$0: too few arguments: $#])],
  12948. - [1], [],
  12949. - [2], [[$2]],
  12950. - [m4_ifval([$2],
  12951. - [[$2][]m4_foreach(_lt_Arg, lt_car([m4_shiftn(2, $@)]),
  12952. - [_$0([$1], _lt_Arg)])],
  12953. - [$0([$1], m4_shiftn(2, $@))])])[]dnl
  12954. -])
  12955. -m4_define([_lt_join],
  12956. -[m4_ifval([$2],[$1][$2])[]dnl
  12957. -])
  12958. -
  12959. -
  12960. -# lt_car(LIST)
  12961. -# lt_cdr(LIST)
  12962. -# ------------
  12963. -# Manipulate m4 lists.
  12964. -# These macros are necessary as long as will still need to support
  12965. -# Autoconf-2.59 which quotes differently.
  12966. -m4_define([lt_car], [[$1]])
  12967. -m4_define([lt_cdr],
  12968. -[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12969. - [$#], 1, [],
  12970. - [m4_dquote(m4_shift($@))])])
  12971. -m4_define([lt_unquote], $1)
  12972. -
  12973. -
  12974. -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12975. -# ----------------------------------------------------------
  12976. -# Produce a SEP delimited list of all paired combinations of elements of
  12977. -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12978. -# has the form PREFIXmINFIXSUFFIXn.
  12979. -m4_define([lt_combine],
  12980. -[m4_if([$2], [], [],
  12981. - [m4_if([$4], [], [],
  12982. - [lt_join(m4_quote(m4_default([$1], [[, ]])),
  12983. - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
  12984. - [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
  12985. - [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
  12986. -])
  12987. -
  12988. -
  12989. -# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12990. -# -----------------------------------------------------------------------
  12991. -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12992. -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12993. -m4_define([lt_if_append_uniq],
  12994. -[m4_ifdef([$1],
  12995. - [m4_bmatch($3[]m4_defn([$1])$3, $3[]m4_re_escape([$2])$3,
  12996. - [$5],
  12997. - [m4_append([$1], [$2], [$3])$4])],
  12998. - [m4_append([$1], [$2], [$3])$4])])
  12999. -
  13000. -
  13001. -# lt_dict_add(DICT, KEY, VALUE)
  13002. -# -----------------------------
  13003. -m4_define([lt_dict_add],
  13004. -[m4_define([$1($2)], [$4])])
  13005. -
  13006. -
  13007. -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  13008. -# --------------------------------------------
  13009. -m4_define([lt_dict_add_subkey],
  13010. -[m4_define([$1($2:$3)], [$4])])
  13011. -
  13012. -
  13013. -# lt_dict_fetch(DICT, KEY, [SUBKEY])
  13014. -# ----------------------------------
  13015. -m4_define([lt_dict_fetch],
  13016. -[m4_ifval([$3],
  13017. - m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  13018. - m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  13019. -
  13020. -
  13021. -# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  13022. -# -----------------------------------------------------------------
  13023. -m4_define([lt_if_dict_fetch],
  13024. -[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  13025. - [$5],
  13026. - [$6])])
  13027. -
  13028. -
  13029. -# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  13030. -# --------------------------------------------------------------
  13031. -m4_define([lt_dict_filter],
  13032. -[m4_if([$5], [], [],
  13033. - [lt_join(m4_quote(m4_default([$4], [[, ]])),
  13034. - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  13035. - [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  13036. -])
  13037. -
  13038. -# ltversion.m4 -- version numbers -*- Autoconf -*-
  13039. -#
  13040. -# Copyright (C) 2004 Free Software Foundation, Inc.
  13041. -# Written by Scott James Remnant.
  13042. -#
  13043. -# unlimited permission to copy and/or distribute it, with or without
  13044. -# modifications, as long as this notice is preserved.
  13045. -
  13046. -# Generated from ltversion.in; do not edit by hand
  13047. -
  13048. -# serial 2237 ltversion.m4
  13049. -# This file is part of GNU Libtool
  13050. -
  13051. -m4_define([LT_PACKAGE_VERSION], [2.1a])
  13052. -m4_define([LT_PACKAGE_REVISION], [1.2237])
  13053. -
  13054. -AC_DEFUN([LTVERSION_VERSION],
  13055. -[macro_version='2.1a'
  13056. -macro_revision='1.2237'
  13057. -_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  13058. -_LT_DECL(, macro_revision, 0)
  13059. ])
  13060. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  13061. +# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
  13062. #
  13063. # This file is free software; the Free Software Foundation
  13064. # gives unlimited permission to copy and/or distribute it,
  13065. @@ -8455,14 +6403,29 @@
  13066. # ----------------------------
  13067. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  13068. # generated from the m4 files accompanying Automake X.Y.
  13069. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  13070. +# (This private macro should not be called outside this file.)
  13071. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  13072. +[am__api_version='1.10'
  13073. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  13074. +dnl require some minimum version. Point them to the right macro.
  13075. +m4_if([$1], [1.10], [],
  13076. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  13077. +])
  13078. +
  13079. +# _AM_AUTOCONF_VERSION(VERSION)
  13080. +# -----------------------------
  13081. +# aclocal traces this macro to find the Autoconf version.
  13082. +# This is a private macro too. Using m4_define simplifies
  13083. +# the logic in aclocal, which can simply ignore this definition.
  13084. +m4_define([_AM_AUTOCONF_VERSION], [])
  13085. # AM_SET_CURRENT_AUTOMAKE_VERSION
  13086. # -------------------------------
  13087. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  13088. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  13089. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  13090. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  13091. - [AM_AUTOMAKE_VERSION([1.9.6])])
  13092. +[AM_AUTOMAKE_VERSION([1.10])dnl
  13093. +_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
  13094. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  13095. @@ -8519,14 +6482,14 @@
  13096. # AM_CONDITIONAL -*- Autoconf -*-
  13097. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  13098. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
  13099. # Free Software Foundation, Inc.
  13100. #
  13101. # This file is free software; the Free Software Foundation
  13102. # gives unlimited permission to copy and/or distribute it,
  13103. # with or without modifications, as long as this notice is preserved.
  13104. -# serial 7
  13105. +# serial 8
  13106. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  13107. # -------------------------------------
  13108. @@ -8535,8 +6498,10 @@
  13109. [AC_PREREQ(2.52)dnl
  13110. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  13111. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  13112. -AC_SUBST([$1_TRUE])
  13113. -AC_SUBST([$1_FALSE])
  13114. +AC_SUBST([$1_TRUE])dnl
  13115. +AC_SUBST([$1_FALSE])dnl
  13116. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  13117. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  13118. if $2; then
  13119. $1_TRUE=
  13120. $1_FALSE='#'
  13121. @@ -8550,15 +6515,14 @@
  13122. Usually this means the macro was only invoked conditionally.]])
  13123. fi])])
  13124. -
  13125. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13126. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
  13127. # Free Software Foundation, Inc.
  13128. #
  13129. # This file is free software; the Free Software Foundation
  13130. # gives unlimited permission to copy and/or distribute it,
  13131. # with or without modifications, as long as this notice is preserved.
  13132. -# serial 8
  13133. +# serial 9
  13134. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  13135. # written in clear, in which case automake, when reading aclocal.m4,
  13136. @@ -8586,6 +6550,7 @@
  13137. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  13138. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  13139. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  13140. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  13141. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  13142. [depcc="$$1" am_compiler_list=])
  13143. @@ -8651,6 +6616,7 @@
  13144. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13145. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13146. >/dev/null 2>conftest.err &&
  13147. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13148. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13149. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13150. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13151. @@ -8703,7 +6669,8 @@
  13152. AMDEPBACKSLASH='\'
  13153. fi
  13154. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  13155. -AC_SUBST([AMDEPBACKSLASH])
  13156. +AC_SUBST([AMDEPBACKSLASH])dnl
  13157. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  13158. ])
  13159. # Generate code to set up dependency tracking. -*- Autoconf -*-
  13160. @@ -8728,8 +6695,9 @@
  13161. # some people rename them; so instead we look at the file content.
  13162. # Grep'ing the first line is not enough: some people post-process
  13163. # each Makefile.in and add a new line on top of each file to say so.
  13164. - # So let's grep whole file.
  13165. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13166. + # Grep'ing the whole file is not good either: AIX grep has a line
  13167. + # limit of 2048, but all sed's we know have understand at least 4000.
  13168. + if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  13169. dirpart=`AS_DIRNAME("$mf")`
  13170. else
  13171. continue
  13172. @@ -8788,8 +6756,8 @@
  13173. # Do all the work for Automake. -*- Autoconf -*-
  13174. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13175. -# Free Software Foundation, Inc.
  13176. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13177. +# 2005, 2006 Free Software Foundation, Inc.
  13178. #
  13179. # This file is free software; the Free Software Foundation
  13180. # gives unlimited permission to copy and/or distribute it,
  13181. @@ -8812,16 +6780,20 @@
  13182. # arguments mandatory, and then we can depend on a new Autoconf
  13183. # release and drop the old call support.
  13184. AC_DEFUN([AM_INIT_AUTOMAKE],
  13185. -[AC_PREREQ([2.58])dnl
  13186. +[AC_PREREQ([2.60])dnl
  13187. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13188. dnl the ones we care about.
  13189. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13190. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  13191. AC_REQUIRE([AC_PROG_INSTALL])dnl
  13192. -# test to see if srcdir already configured
  13193. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13194. - test -f $srcdir/config.status; then
  13195. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13196. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13197. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13198. + # is not polluted with repeated "-I."
  13199. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  13200. + # test to see if srcdir already configured
  13201. + if test -f $srcdir/config.status; then
  13202. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13203. + fi
  13204. fi
  13205. # test whether we have cygpath
  13206. @@ -8841,6 +6813,9 @@
  13207. AC_SUBST([PACKAGE], [$1])dnl
  13208. AC_SUBST([VERSION], [$2])],
  13209. [_AM_SET_OPTIONS([$1])dnl
  13210. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  13211. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  13212. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  13213. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  13214. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  13215. @@ -8876,6 +6851,10 @@
  13216. [_AM_DEPENDENCIES(CXX)],
  13217. [define([AC_PROG_CXX],
  13218. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13219. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13220. + [_AM_DEPENDENCIES(OBJC)],
  13221. + [define([AC_PROG_OBJC],
  13222. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13223. ])
  13224. ])
  13225. @@ -8911,7 +6890,7 @@
  13226. # Define $install_sh.
  13227. AC_DEFUN([AM_PROG_INSTALL_SH],
  13228. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13229. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13230. +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  13231. AC_SUBST(install_sh)])
  13232. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13233. @@ -8987,13 +6966,14 @@
  13234. rm -f confinc confmf
  13235. ])
  13236. -# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
  13237. +# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
  13238. +# Free Software Foundation, Inc.
  13239. #
  13240. # This file is free software; the Free Software Foundation
  13241. # gives unlimited permission to copy and/or distribute it,
  13242. # with or without modifications, as long as this notice is preserved.
  13243. -# serial 3
  13244. +# serial 5
  13245. # AM_PROG_CC_C_O
  13246. # --------------
  13247. @@ -9001,6 +6981,7 @@
  13248. AC_DEFUN([AM_PROG_CC_C_O],
  13249. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  13250. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13251. +AC_REQUIRE_AUX_FILE([compile])dnl
  13252. # FIXME: we rely on the cache variable name because
  13253. # there is no other way.
  13254. set dummy $CC
  13255. @@ -9013,18 +6994,22 @@
  13256. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  13257. CC="$am_aux_dir/compile $CC"
  13258. fi
  13259. +dnl Make sure AC_PROG_CC is never called again, or it will override our
  13260. +dnl setting of CC.
  13261. +m4_define([AC_PROG_CC],
  13262. + [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  13263. ])
  13264. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13265. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  13266. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
  13267. # Free Software Foundation, Inc.
  13268. #
  13269. # This file is free software; the Free Software Foundation
  13270. # gives unlimited permission to copy and/or distribute it,
  13271. # with or without modifications, as long as this notice is preserved.
  13272. -# serial 4
  13273. +# serial 5
  13274. # AM_MISSING_PROG(NAME, PROGRAM)
  13275. # ------------------------------
  13276. @@ -9040,6 +7025,7 @@
  13277. # If it does, set am_missing_run to use it, otherwise, to nothing.
  13278. AC_DEFUN([AM_MISSING_HAS_RUN],
  13279. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13280. +AC_REQUIRE_AUX_FILE([missing])dnl
  13281. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13282. # Use eval to expand $SHELL
  13283. if eval "$MISSING --run true"; then
  13284. @@ -9050,7 +7036,7 @@
  13285. fi
  13286. ])
  13287. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  13288. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13289. #
  13290. # This file is free software; the Free Software Foundation
  13291. # gives unlimited permission to copy and/or distribute it,
  13292. @@ -9058,60 +7044,23 @@
  13293. # AM_PROG_MKDIR_P
  13294. # ---------------
  13295. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  13296. -#
  13297. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  13298. -# created by `make install' are always world readable, even if the
  13299. -# installer happens to have an overly restrictive umask (e.g. 077).
  13300. -# This was a mistake. There are at least two reasons why we must not
  13301. -# use `-m 0755':
  13302. -# - it causes special bits like SGID to be ignored,
  13303. -# - it may be too restrictive (some setups expect 775 directories).
  13304. -#
  13305. -# Do not use -m 0755 and let people choose whatever they expect by
  13306. -# setting umask.
  13307. -#
  13308. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  13309. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  13310. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  13311. -# concurrently, both version can detect that a/ is missing, but only
  13312. -# one can create it and the other will error out. Consequently we
  13313. -# restrict ourselves to GNU make (using the --version option ensures
  13314. -# this.)
  13315. +# Check for `mkdir -p'.
  13316. AC_DEFUN([AM_PROG_MKDIR_P],
  13317. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  13318. - # We used to keeping the `.' as first argument, in order to
  13319. - # allow $(mkdir_p) to be used without argument. As in
  13320. - # $(mkdir_p) $(somedir)
  13321. - # where $(somedir) is conditionally defined. However this is wrong
  13322. - # for two reasons:
  13323. - # 1. if the package is installed by a user who cannot write `.'
  13324. - # make install will fail,
  13325. - # 2. the above comment should most certainly read
  13326. - # $(mkdir_p) $(DESTDIR)$(somedir)
  13327. - # so it does not work when $(somedir) is undefined and
  13328. - # $(DESTDIR) is not.
  13329. - # To support the latter case, we have to write
  13330. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  13331. - # so the `.' trick is pointless.
  13332. - mkdir_p='mkdir -p --'
  13333. -else
  13334. - # On NextStep and OpenStep, the `mkdir' command does not
  13335. - # recognize any option. It will interpret all options as
  13336. - # directories to create, and then abort because `.' already
  13337. - # exists.
  13338. - for d in ./-p ./--version;
  13339. - do
  13340. - test -d $d && rmdir $d
  13341. - done
  13342. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13343. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13344. - mkdir_p='$(mkinstalldirs)'
  13345. - else
  13346. - mkdir_p='$(install_sh) -d'
  13347. - fi
  13348. -fi
  13349. -AC_SUBST([mkdir_p])])
  13350. +[AC_PREREQ([2.60])dnl
  13351. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13352. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13353. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13354. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13355. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13356. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13357. +dnl adjustment using top_builddir (which is defined more often than
  13358. +dnl MKDIR_P).
  13359. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13360. +case $mkdir_p in
  13361. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13362. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13363. +esac
  13364. +])
  13365. # Helper functions for option handling. -*- Autoconf -*-
  13366. @@ -9223,9 +7172,21 @@
  13367. if test "$cross_compiling" != no; then
  13368. AC_CHECK_TOOL([STRIP], [strip], :)
  13369. fi
  13370. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13371. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13372. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13373. +# Copyright (C) 2006 Free Software Foundation, Inc.
  13374. +#
  13375. +# This file is free software; the Free Software Foundation
  13376. +# gives unlimited permission to copy and/or distribute it,
  13377. +# with or without modifications, as long as this notice is preserved.
  13378. +
  13379. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13380. +# ---------------------------
  13381. +# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
  13382. +# This macro is traced by Automake.
  13383. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13384. +
  13385. # Check how to create a tarball. -*- Autoconf -*-
  13386. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13387. @@ -9322,3 +7283,4 @@
  13388. AC_SUBST([am__untar])
  13389. ]) # _AM_PROG_TAR
  13390. +m4_include([iconv.m4])
  13391. diff -Naur old/configure new/configure
  13392. --- old/configure 2008-02-19 12:00:42.000000000 -0800
  13393. +++ new/configure 2008-11-26 22:23:12.000000000 -0800
  13394. @@ -553,22 +553,22 @@
  13395. # Check that we are running under the correct shell.
  13396. SHELL=${CONFIG_SHELL-/bin/sh}
  13397. -case X$lt_ECHO in
  13398. +case X$ECHO in
  13399. X*--fallback-echo)
  13400. # Remove one level of quotation (which was required for Make).
  13401. - ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13402. + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  13403. ;;
  13404. esac
  13405. -ECHO=${lt_ECHO-echo}
  13406. +echo=${ECHO-echo}
  13407. if test "X$1" = X--no-reexec; then
  13408. # Discard the --no-reexec flag, and continue.
  13409. shift
  13410. elif test "X$1" = X--fallback-echo; then
  13411. # Avoid inline document here, it may be left over
  13412. :
  13413. -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  13414. - # Yippee, $ECHO works!
  13415. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  13416. + # Yippee, $echo works!
  13417. :
  13418. else
  13419. # Restart under the correct shell.
  13420. @@ -578,9 +578,9 @@
  13421. if test "X$1" = X--fallback-echo; then
  13422. # used as fallback echo
  13423. shift
  13424. - cat <<_LT_EOF
  13425. + cat <<EOF
  13426. $*
  13427. -_LT_EOF
  13428. +EOF
  13429. exit 0
  13430. fi
  13431. @@ -588,116 +588,121 @@
  13432. # if CDPATH is set.
  13433. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13434. -if test -z "$lt_ECHO"; then
  13435. - if test "X${echo_test_string+set}" != Xset; then
  13436. - # find a string as large as possible, as long as the shell can cope with it
  13437. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13438. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13439. - if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  13440. - { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  13441. - then
  13442. - break
  13443. - fi
  13444. - done
  13445. - fi
  13446. +if test -z "$ECHO"; then
  13447. +if test "X${echo_test_string+set}" != Xset; then
  13448. +# find a string as large as possible, as long as the shell can cope with it
  13449. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  13450. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13451. + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  13452. + echo_test_string=`eval $cmd` &&
  13453. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  13454. + then
  13455. + break
  13456. + fi
  13457. + done
  13458. +fi
  13459. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13460. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13461. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13462. - :
  13463. - else
  13464. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  13465. - # backslashes. This makes it impossible to quote backslashes using
  13466. - # echo "$something" | sed 's/\\/\\\\/g'
  13467. - #
  13468. - # So, first we look for a working echo in the user's PATH.
  13469. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13470. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13471. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13472. + :
  13473. +else
  13474. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  13475. + # backslashes. This makes it impossible to quote backslashes using
  13476. + # echo "$something" | sed 's/\\/\\\\/g'
  13477. + #
  13478. + # So, first we look for a working echo in the user's PATH.
  13479. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13480. - for dir in $PATH /usr/ucb; do
  13481. - IFS="$lt_save_ifs"
  13482. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13483. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13484. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13485. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13486. - ECHO="$dir/echo"
  13487. - break
  13488. - fi
  13489. - done
  13490. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13491. + for dir in $PATH /usr/ucb; do
  13492. IFS="$lt_save_ifs"
  13493. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13494. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13495. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13496. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13497. + echo="$dir/echo"
  13498. + break
  13499. + fi
  13500. + done
  13501. + IFS="$lt_save_ifs"
  13502. - if test "X$ECHO" = Xecho; then
  13503. - # We didn't find a better echo, so look for alternatives.
  13504. - if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  13505. - echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  13506. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13507. - # This shell has a builtin print -r that does the trick.
  13508. - ECHO='print -r'
  13509. - elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  13510. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  13511. - # If we have ksh, try running configure again with it.
  13512. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13513. - export ORIGINAL_CONFIG_SHELL
  13514. - CONFIG_SHELL=/bin/ksh
  13515. - export CONFIG_SHELL
  13516. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13517. - else
  13518. - # Try using printf.
  13519. - ECHO='printf %s\n'
  13520. - if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  13521. - echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  13522. + if test "X$echo" = Xecho; then
  13523. + # We didn't find a better echo, so look for alternatives.
  13524. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  13525. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  13526. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13527. + # This shell has a builtin print -r that does the trick.
  13528. + echo='print -r'
  13529. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  13530. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  13531. + # If we have ksh, try running configure again with it.
  13532. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13533. + export ORIGINAL_CONFIG_SHELL
  13534. + CONFIG_SHELL=/bin/ksh
  13535. + export CONFIG_SHELL
  13536. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  13537. + else
  13538. + # Try using printf.
  13539. + echo='printf %s\n'
  13540. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13541. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13542. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13543. + # Cool, printf works
  13544. + :
  13545. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13546. + test "X$echo_testing_string" = 'X\t' &&
  13547. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13548. test "X$echo_testing_string" = "X$echo_test_string"; then
  13549. - # Cool, printf works
  13550. - :
  13551. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13552. - test "X$echo_testing_string" = 'X\t' &&
  13553. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13554. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13555. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13556. - export CONFIG_SHELL
  13557. - SHELL="$CONFIG_SHELL"
  13558. - export SHELL
  13559. - ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13560. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13561. - test "X$echo_testing_string" = 'X\t' &&
  13562. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13563. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13564. - ECHO="$CONFIG_SHELL $0 --fallback-echo"
  13565. - else
  13566. - # maybe with a smaller string...
  13567. - prev=:
  13568. -
  13569. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13570. - if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  13571. - then
  13572. - break
  13573. - fi
  13574. - prev="$cmd"
  13575. - done
  13576. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13577. + export CONFIG_SHELL
  13578. + SHELL="$CONFIG_SHELL"
  13579. + export SHELL
  13580. + echo="$CONFIG_SHELL $0 --fallback-echo"
  13581. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  13582. + test "X$echo_testing_string" = 'X\t' &&
  13583. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13584. + test "X$echo_testing_string" = "X$echo_test_string"; then
  13585. + echo="$CONFIG_SHELL $0 --fallback-echo"
  13586. + else
  13587. + # maybe with a smaller string...
  13588. + prev=:
  13589. - if test "$prev" != 'sed 50q "$0"'; then
  13590. - echo_test_string=`eval $prev`
  13591. - export echo_test_string
  13592. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13593. - else
  13594. - # Oops. We lost completely, so just stick with echo.
  13595. - ECHO=echo
  13596. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13597. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  13598. + then
  13599. + break
  13600. fi
  13601. - fi
  13602. + prev="$cmd"
  13603. + done
  13604. +
  13605. + if test "$prev" != 'sed 50q "$0"'; then
  13606. + echo_test_string=`eval $prev`
  13607. + export echo_test_string
  13608. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  13609. + else
  13610. + # Oops. We lost completely, so just stick with echo.
  13611. + echo=echo
  13612. + fi
  13613. fi
  13614. fi
  13615. fi
  13616. fi
  13617. +fi
  13618. # Copy echo and quote the copy suitably for passing to libtool from
  13619. # the Makefile, instead of quoting the original, which is used later.
  13620. -lt_ECHO=$ECHO
  13621. -if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  13622. - lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  13623. +ECHO=$echo
  13624. +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  13625. + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  13626. fi
  13627. +tagnames=${tagnames+${tagnames},}CXX
  13628. +
  13629. +tagnames=${tagnames+${tagnames},}F77
  13630. +
  13631. exec 7<&0 </dev/null 6>&1
  13632. # Name of the host.
  13633. @@ -813,6 +818,7 @@
  13634. INSTALL_PROGRAM
  13635. INSTALL_SCRIPT
  13636. INSTALL_DATA
  13637. +am__isrc
  13638. CYGPATH_W
  13639. PACKAGE
  13640. VERSION
  13641. @@ -831,7 +837,6 @@
  13642. AMTAR
  13643. am__tar
  13644. am__untar
  13645. -LIBTOOL
  13646. CC
  13647. CFLAGS
  13648. LDFLAGS
  13649. @@ -848,23 +853,27 @@
  13650. CCDEPMODE
  13651. am__fastdepCC_TRUE
  13652. am__fastdepCC_FALSE
  13653. -SED
  13654. GREP
  13655. EGREP
  13656. -FGREP
  13657. -LD
  13658. -DUMPBIN
  13659. -ac_ct_DUMPBIN
  13660. -NM
  13661. LN_S
  13662. +ECHO
  13663. AR
  13664. RANLIB
  13665. -lt_ECHO
  13666. CPP
  13667. +CXX
  13668. +CXXFLAGS
  13669. +ac_ct_CXX
  13670. +CXXDEPMODE
  13671. +am__fastdepCXX_TRUE
  13672. +am__fastdepCXX_FALSE
  13673. +CXXCPP
  13674. +F77
  13675. +FFLAGS
  13676. +ac_ct_F77
  13677. +LIBTOOL
  13678. pkgconfigdir
  13679. subdirs
  13680. LIBICONV
  13681. -LTLIBICONV
  13682. ICONV_TRUE
  13683. ICONV_FALSE
  13684. libfuse_libs
  13685. @@ -876,6 +885,8 @@
  13686. LINUX_FALSE
  13687. BSD_TRUE
  13688. BSD_FALSE
  13689. +DARWIN_TRUE
  13690. +DARWIN_FALSE
  13691. LIBOBJS
  13692. LTLIBOBJS'
  13693. ac_subst_files=''
  13694. @@ -887,7 +898,13 @@
  13695. LDFLAGS
  13696. LIBS
  13697. CPPFLAGS
  13698. -CPP'
  13699. +CPP
  13700. +CXX
  13701. +CXXFLAGS
  13702. +CCC
  13703. +CXXCPP
  13704. +F77
  13705. +FFLAGS'
  13706. ac_subdirs_all='kernel'
  13707. # Initialize some variables set by options.
  13708. @@ -1480,19 +1497,16 @@
  13709. --enable-util Compile with util
  13710. --enable-example Compile with examples
  13711. --disable-mtab Disable and ignore usage of /etc/mtab
  13712. - --disable-rpath do not hardcode runtime library paths
  13713. Optional Packages:
  13714. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  13715. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  13716. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13717. --with-pic try to use only PIC/non-PIC objects [default=use
  13718. both]
  13719. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  13720. + --with-tags[=TAGS] include additional configurations [automatic]
  13721. --with-pkgconfigdir=DIR pkgconfig file in DIR [LIBDIR/pkgconfig]
  13722. --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
  13723. - --with-gnu-ld assume the C compiler uses GNU ld default=no
  13724. - --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  13725. - --without-libiconv-prefix don't search for libiconv in includedir and libdir
  13726. Some influential environment variables:
  13727. CC C compiler command
  13728. @@ -1503,6 +1517,11 @@
  13729. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  13730. you have headers in a nonstandard directory <include dir>
  13731. CPP C preprocessor
  13732. + CXX C++ compiler command
  13733. + CXXFLAGS C++ compiler flags
  13734. + CXXCPP C++ preprocessor
  13735. + F77 Fortran 77 compiler command
  13736. + FFLAGS Fortran 77 compiler flags
  13737. Use these variables to override the choices made by `configure' or to help
  13738. it to find libraries and programs with nonstandard names/locations.
  13739. @@ -2091,7 +2110,8 @@
  13740. test "$program_prefix$program_suffix$program_transform_name" = \
  13741. NONENONEs,x,x, &&
  13742. program_prefix=${target_alias}-
  13743. -am__api_version="1.9"
  13744. +am__api_version='1.10'
  13745. +
  13746. # Find a good install program. We prefer a C program (faster),
  13747. # so one script is as good as another. But avoid the broken or
  13748. # incompatible versions:
  13749. @@ -2243,38 +2263,53 @@
  13750. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  13751. fi
  13752. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  13753. - # We used to keeping the `.' as first argument, in order to
  13754. - # allow $(mkdir_p) to be used without argument. As in
  13755. - # $(mkdir_p) $(somedir)
  13756. - # where $(somedir) is conditionally defined. However this is wrong
  13757. - # for two reasons:
  13758. - # 1. if the package is installed by a user who cannot write `.'
  13759. - # make install will fail,
  13760. - # 2. the above comment should most certainly read
  13761. - # $(mkdir_p) $(DESTDIR)$(somedir)
  13762. - # so it does not work when $(somedir) is undefined and
  13763. - # $(DESTDIR) is not.
  13764. - # To support the latter case, we have to write
  13765. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  13766. - # so the `.' trick is pointless.
  13767. - mkdir_p='mkdir -p --'
  13768. -else
  13769. - # On NextStep and OpenStep, the `mkdir' command does not
  13770. - # recognize any option. It will interpret all options as
  13771. - # directories to create, and then abort because `.' already
  13772. - # exists.
  13773. - for d in ./-p ./--version;
  13774. - do
  13775. - test -d $d && rmdir $d
  13776. - done
  13777. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13778. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13779. - mkdir_p='$(mkinstalldirs)'
  13780. +{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  13781. +echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  13782. +if test -z "$MKDIR_P"; then
  13783. + if test "${ac_cv_path_mkdir+set}" = set; then
  13784. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13785. +else
  13786. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13787. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  13788. +do
  13789. + IFS=$as_save_IFS
  13790. + test -z "$as_dir" && as_dir=.
  13791. + for ac_prog in mkdir gmkdir; do
  13792. + for ac_exec_ext in '' $ac_executable_extensions; do
  13793. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  13794. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  13795. + 'mkdir (GNU coreutils) '* | \
  13796. + 'mkdir (coreutils) '* | \
  13797. + 'mkdir (fileutils) '4.1*)
  13798. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  13799. + break 3;;
  13800. + esac
  13801. + done
  13802. + done
  13803. +done
  13804. +IFS=$as_save_IFS
  13805. +
  13806. +fi
  13807. +
  13808. + if test "${ac_cv_path_mkdir+set}" = set; then
  13809. + MKDIR_P="$ac_cv_path_mkdir -p"
  13810. else
  13811. - mkdir_p='$(install_sh) -d'
  13812. + # As a last resort, use the slow shell script. Don't cache a
  13813. + # value for MKDIR_P within a source directory, because that will
  13814. + # break other packages using the cache if that directory is
  13815. + # removed, or if the value is a relative name.
  13816. + test -d ./--version && rmdir ./--version
  13817. + MKDIR_P="$ac_install_sh -d"
  13818. fi
  13819. fi
  13820. +{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  13821. +echo "${ECHO_T}$MKDIR_P" >&6; }
  13822. +
  13823. +mkdir_p="$MKDIR_P"
  13824. +case $mkdir_p in
  13825. + [\\/$]* | ?:[\\/]*) ;;
  13826. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13827. +esac
  13828. for ac_prog in gawk mawk nawk awk
  13829. do
  13830. @@ -2357,12 +2392,16 @@
  13831. fi
  13832. rmdir .tst 2>/dev/null
  13833. -# test to see if srcdir already configured
  13834. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13835. - test -f $srcdir/config.status; then
  13836. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  13837. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13838. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13839. + # is not polluted with repeated "-I."
  13840. + am__isrc=' -I$(srcdir)'
  13841. + # test to see if srcdir already configured
  13842. + if test -f $srcdir/config.status; then
  13843. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  13844. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  13845. { (exit 1); exit 1; }; }
  13846. + fi
  13847. fi
  13848. # test whether we have cygpath
  13849. @@ -2405,7 +2444,7 @@
  13850. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13851. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13852. +install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  13853. # Installed binaries are usually stripped using `strip' when the user
  13854. # run `make install-strip'. However `strip' might not be the right
  13855. @@ -2509,7 +2548,7 @@
  13856. fi
  13857. fi
  13858. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13859. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13860. # We need awk for the "check" target. The system "awk" is bad on
  13861. # some platforms.
  13862. @@ -2526,32 +2565,6 @@
  13863. ac_config_headers="$ac_config_headers include/config.h"
  13864. -
  13865. -
  13866. -macro_version='2.1a'
  13867. -macro_revision='1.2237'
  13868. -
  13869. -
  13870. -
  13871. -
  13872. -
  13873. -
  13874. -
  13875. -
  13876. -
  13877. -
  13878. -
  13879. -
  13880. -ltmain="$ac_aux_dir/ltmain.sh"
  13881. -
  13882. -# Set options
  13883. -
  13884. -enable_dlopen=no
  13885. -
  13886. -
  13887. -enable_win32_dll=no
  13888. -
  13889. -
  13890. # Check whether --enable-shared was given.
  13891. if test "${enable_shared+set}" = set; then
  13892. enableval=$enable_shared; p=${PACKAGE-default}
  13893. @@ -2576,13 +2589,6 @@
  13894. fi
  13895. -
  13896. -
  13897. -
  13898. -
  13899. -
  13900. -
  13901. -
  13902. # Check whether --enable-static was given.
  13903. if test "${enable_static+set}" = set; then
  13904. enableval=$enable_static; p=${PACKAGE-default}
  13905. @@ -2607,30 +2613,6 @@
  13906. fi
  13907. -
  13908. -
  13909. -
  13910. -
  13911. -
  13912. -
  13913. -
  13914. -
  13915. -# Check whether --with-pic was given.
  13916. -if test "${with_pic+set}" = set; then
  13917. - withval=$with_pic; pic_mode="$withval"
  13918. -else
  13919. - pic_mode=default
  13920. -fi
  13921. -
  13922. -
  13923. -test -z "$pic_mode" && pic_mode=default
  13924. -
  13925. -
  13926. -
  13927. -
  13928. -
  13929. -
  13930. -
  13931. # Check whether --enable-fast-install was given.
  13932. if test "${enable_fast_install+set}" = set; then
  13933. enableval=$enable_fast_install; p=${PACKAGE-default}
  13934. @@ -2655,13 +2637,6 @@
  13935. fi
  13936. -
  13937. -
  13938. -
  13939. -
  13940. -
  13941. -
  13942. -
  13943. DEPDIR="${am__leading_dot}deps"
  13944. ac_config_commands="$ac_config_commands depfiles"
  13945. @@ -2715,9 +2690,7 @@
  13946. am_depcomp="$ac_aux_dir/depcomp"
  13947. AMDEPBACKSLASH='\'
  13948. fi
  13949. -
  13950. -
  13951. -if test "x$enable_dependency_tracking" != xno; then
  13952. + if test "x$enable_dependency_tracking" != xno; then
  13953. AMDEP_TRUE=
  13954. AMDEP_FALSE='#'
  13955. else
  13956. @@ -2726,7 +2699,6 @@
  13957. fi
  13958. -
  13959. ac_ext=c
  13960. ac_cpp='$CPP $CPPFLAGS'
  13961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13962. @@ -3713,6 +3685,7 @@
  13963. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13964. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13965. >/dev/null 2>conftest.err &&
  13966. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13967. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13968. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13969. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13970. @@ -3742,9 +3715,7 @@
  13971. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  13972. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13973. -
  13974. -
  13975. -if
  13976. + if
  13977. test "x$enable_dependency_tracking" != xno \
  13978. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13979. am__fastdepCC_TRUE=
  13980. @@ -3757,99 +3728,60 @@
  13981. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  13982. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  13983. -if test "${ac_cv_path_SED+set}" = set; then
  13984. +if test "${lt_cv_path_SED+set}" = set; then
  13985. echo $ECHO_N "(cached) $ECHO_C" >&6
  13986. else
  13987. - ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  13988. - for ac_i in 1 2 3 4 5 6 7; do
  13989. - ac_script="$ac_script$as_nl$ac_script"
  13990. - done
  13991. - echo "$ac_script" | sed 99q >conftest.sed
  13992. - $as_unset ac_script || ac_script=
  13993. - # Extract the first word of "sed gsed" to use in msg output
  13994. -if test -z "$SED"; then
  13995. -set dummy sed gsed; ac_prog_name=$2
  13996. -if test "${ac_cv_path_SED+set}" = set; then
  13997. - echo $ECHO_N "(cached) $ECHO_C" >&6
  13998. -else
  13999. - ac_path_SED_found=false
  14000. -# Loop through the user's path and test for each of PROGNAME-LIST
  14001. + # Loop through the user's path and test for sed and gsed.
  14002. +# Then use that list of sed's as ones to test for truncation.
  14003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14004. for as_dir in $PATH
  14005. do
  14006. IFS=$as_save_IFS
  14007. test -z "$as_dir" && as_dir=.
  14008. - for ac_prog in sed gsed; do
  14009. - for ac_exec_ext in '' $ac_executable_extensions; do
  14010. - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  14011. - { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  14012. - # Check for GNU ac_path_SED and select it if it is found.
  14013. - # Check for GNU $ac_path_SED
  14014. -case `"$ac_path_SED" --version 2>&1` in
  14015. -*GNU*)
  14016. - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  14017. -*)
  14018. - ac_count=0
  14019. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  14020. - while :
  14021. - do
  14022. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  14023. - mv "conftest.tmp" "conftest.in"
  14024. - cp "conftest.in" "conftest.nl"
  14025. - echo '' >> "conftest.nl"
  14026. - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14027. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14028. - ac_count=`expr $ac_count + 1`
  14029. - if test $ac_count -gt ${ac_path_SED_max-0}; then
  14030. - # Best one so far, save it but keep looking for a better one
  14031. - ac_cv_path_SED="$ac_path_SED"
  14032. - ac_path_SED_max=$ac_count
  14033. - fi
  14034. - # 10*(2^10) chars as input seems more than enough
  14035. - test $ac_count -gt 10 && break
  14036. - done
  14037. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14038. -esac
  14039. -
  14040. -
  14041. - $ac_path_SED_found && break 3
  14042. + for lt_ac_prog in sed gsed; do
  14043. + for ac_exec_ext in '' $ac_executable_extensions; do
  14044. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  14045. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  14046. + fi
  14047. + done
  14048. done
  14049. done
  14050. -
  14051. +lt_ac_max=0
  14052. +lt_ac_count=0
  14053. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  14054. +# along with /bin/sed that truncates output.
  14055. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  14056. + test ! -f $lt_ac_sed && continue
  14057. + cat /dev/null > conftest.in
  14058. + lt_ac_count=0
  14059. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  14060. + # Check for GNU sed and select it if it is found.
  14061. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  14062. + lt_cv_path_SED=$lt_ac_sed
  14063. + break
  14064. + fi
  14065. + while true; do
  14066. + cat conftest.in conftest.in >conftest.tmp
  14067. + mv conftest.tmp conftest.in
  14068. + cp conftest.in conftest.nl
  14069. + echo >>conftest.nl
  14070. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  14071. + cmp -s conftest.out conftest.nl || break
  14072. + # 10000 chars as input seems more than enough
  14073. + test $lt_ac_count -gt 10 && break
  14074. + lt_ac_count=`expr $lt_ac_count + 1`
  14075. + if test $lt_ac_count -gt $lt_ac_max; then
  14076. + lt_ac_max=$lt_ac_count
  14077. + lt_cv_path_SED=$lt_ac_sed
  14078. + fi
  14079. + done
  14080. done
  14081. -IFS=$as_save_IFS
  14082. -
  14083. -
  14084. -fi
  14085. -
  14086. -SED="$ac_cv_path_SED"
  14087. -if test -z "$SED"; then
  14088. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
  14089. -echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
  14090. - { (exit 1); exit 1; }; }
  14091. -fi
  14092. -
  14093. -else
  14094. - ac_cv_path_SED=$SED
  14095. -fi
  14096. fi
  14097. -{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  14098. -echo "${ECHO_T}$ac_cv_path_SED" >&6; }
  14099. - SED="$ac_cv_path_SED"
  14100. - rm -f conftest.sed
  14101. -
  14102. -test -z "$SED" && SED=sed
  14103. -
  14104. -
  14105. -
  14106. -
  14107. -
  14108. -
  14109. -
  14110. -
  14111. -
  14112. +SED=$lt_cv_path_SED
  14113. +{ echo "$as_me:$LINENO: result: $SED" >&5
  14114. +echo "${ECHO_T}$SED" >&6; }
  14115. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  14116. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  14117. @@ -4013,114 +3945,12 @@
  14118. EGREP="$ac_cv_path_EGREP"
  14119. -{ echo "$as_me:$LINENO: checking for fgrep" >&5
  14120. -echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
  14121. -if test "${ac_cv_path_FGREP+set}" = set; then
  14122. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14123. -else
  14124. - if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  14125. - then ac_cv_path_FGREP="$GREP -F"
  14126. - else
  14127. - # Extract the first word of "fgrep" to use in msg output
  14128. -if test -z "$FGREP"; then
  14129. -set dummy fgrep; ac_prog_name=$2
  14130. -if test "${ac_cv_path_FGREP+set}" = set; then
  14131. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14132. -else
  14133. - ac_path_FGREP_found=false
  14134. -# Loop through the user's path and test for each of PROGNAME-LIST
  14135. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14136. -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  14137. -do
  14138. - IFS=$as_save_IFS
  14139. - test -z "$as_dir" && as_dir=.
  14140. - for ac_prog in fgrep; do
  14141. - for ac_exec_ext in '' $ac_executable_extensions; do
  14142. - ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  14143. - { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  14144. - # Check for GNU ac_path_FGREP and select it if it is found.
  14145. - # Check for GNU $ac_path_FGREP
  14146. -case `"$ac_path_FGREP" --version 2>&1` in
  14147. -*GNU*)
  14148. - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  14149. -*)
  14150. - ac_count=0
  14151. - echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  14152. - while :
  14153. - do
  14154. - cat "conftest.in" "conftest.in" >"conftest.tmp"
  14155. - mv "conftest.tmp" "conftest.in"
  14156. - cp "conftest.in" "conftest.nl"
  14157. - echo 'FGREP' >> "conftest.nl"
  14158. - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  14159. - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  14160. - ac_count=`expr $ac_count + 1`
  14161. - if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  14162. - # Best one so far, save it but keep looking for a better one
  14163. - ac_cv_path_FGREP="$ac_path_FGREP"
  14164. - ac_path_FGREP_max=$ac_count
  14165. - fi
  14166. - # 10*(2^10) chars as input seems more than enough
  14167. - test $ac_count -gt 10 && break
  14168. - done
  14169. - rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  14170. -esac
  14171. -
  14172. -
  14173. - $ac_path_FGREP_found && break 3
  14174. - done
  14175. -done
  14176. -
  14177. -done
  14178. -IFS=$as_save_IFS
  14179. -
  14180. -
  14181. -fi
  14182. -
  14183. -FGREP="$ac_cv_path_FGREP"
  14184. -if test -z "$FGREP"; then
  14185. - { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  14186. -echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  14187. - { (exit 1); exit 1; }; }
  14188. -fi
  14189. +# Check whether --with-gnu-ld was given.
  14190. +if test "${with_gnu_ld+set}" = set; then
  14191. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  14192. else
  14193. - ac_cv_path_FGREP=$FGREP
  14194. -fi
  14195. -
  14196. -
  14197. - fi
  14198. -fi
  14199. -{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  14200. -echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
  14201. - FGREP="$ac_cv_path_FGREP"
  14202. -
  14203. -
  14204. -test -z "$GREP" && GREP=grep
  14205. -
  14206. -
  14207. -
  14208. -
  14209. -
  14210. -
  14211. -
  14212. -
  14213. -
  14214. -
  14215. -
  14216. -
  14217. -
  14218. -
  14219. -
  14220. -
  14221. -
  14222. -
  14223. -
  14224. -# Check whether --with-gnu-ld was given.
  14225. -if test "${with_gnu_ld+set}" = set; then
  14226. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  14227. -else
  14228. - with_gnu_ld=no
  14229. + with_gnu_ld=no
  14230. fi
  14231. ac_prog=ld
  14232. @@ -4140,9 +3970,9 @@
  14233. [\\/]* | ?:[\\/]*)
  14234. re_direlt='/[^/][^/]*/\.\./'
  14235. # Canonicalize the pathname of ld
  14236. - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  14237. - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  14238. - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  14239. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  14240. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  14241. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  14242. done
  14243. test -z "$LD" && LD="$ac_prog"
  14244. ;;
  14245. @@ -4222,16 +4052,33 @@
  14246. with_gnu_ld=$lt_cv_prog_gnu_ld
  14247. +{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  14248. +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  14249. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  14250. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14251. +else
  14252. + lt_cv_ld_reload_flag='-r'
  14253. +fi
  14254. +{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  14255. +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  14256. +reload_flag=$lt_cv_ld_reload_flag
  14257. +case $reload_flag in
  14258. +"" | " "*) ;;
  14259. +*) reload_flag=" $reload_flag" ;;
  14260. +esac
  14261. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  14262. +case $host_os in
  14263. + darwin*)
  14264. + if test "$GCC" = yes; then
  14265. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  14266. + else
  14267. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  14268. + fi
  14269. + ;;
  14270. +esac
  14271. -
  14272. -
  14273. -
  14274. -
  14275. -
  14276. -
  14277. -
  14278. -{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  14279. -echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
  14280. +{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  14281. +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  14282. if test "${lt_cv_path_NM+set}" = set; then
  14283. echo $ECHO_N "(cached) $ECHO_C" >&6
  14284. else
  14285. @@ -4276,772 +4123,1073 @@
  14286. done
  14287. IFS="$lt_save_ifs"
  14288. done
  14289. - : ${lt_cv_path_NM=no}
  14290. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  14291. fi
  14292. fi
  14293. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  14294. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  14295. -if test "$lt_cv_path_NM" != "no"; then
  14296. - NM="$lt_cv_path_NM"
  14297. -else
  14298. - # Didn't find any BSD compatible name lister, look for dumpbin.
  14299. - if test -n "$ac_tool_prefix"; then
  14300. - for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  14301. - do
  14302. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  14303. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  14304. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14305. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14306. -if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  14307. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14308. -else
  14309. - if test -n "$DUMPBIN"; then
  14310. - ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  14311. -else
  14312. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14313. -for as_dir in $PATH
  14314. -do
  14315. - IFS=$as_save_IFS
  14316. - test -z "$as_dir" && as_dir=.
  14317. - for ac_exec_ext in '' $ac_executable_extensions; do
  14318. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14319. - ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  14320. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14321. - break 2
  14322. - fi
  14323. -done
  14324. -done
  14325. -IFS=$as_save_IFS
  14326. +NM="$lt_cv_path_NM"
  14327. -fi
  14328. -fi
  14329. -DUMPBIN=$ac_cv_prog_DUMPBIN
  14330. -if test -n "$DUMPBIN"; then
  14331. - { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  14332. -echo "${ECHO_T}$DUMPBIN" >&6; }
  14333. +{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  14334. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  14335. +LN_S=$as_ln_s
  14336. +if test "$LN_S" = "ln -s"; then
  14337. + { echo "$as_me:$LINENO: result: yes" >&5
  14338. +echo "${ECHO_T}yes" >&6; }
  14339. else
  14340. - { echo "$as_me:$LINENO: result: no" >&5
  14341. -echo "${ECHO_T}no" >&6; }
  14342. + { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  14343. +echo "${ECHO_T}no, using $LN_S" >&6; }
  14344. fi
  14345. -
  14346. - test -n "$DUMPBIN" && break
  14347. - done
  14348. -fi
  14349. -if test -z "$DUMPBIN"; then
  14350. - ac_ct_DUMPBIN=$DUMPBIN
  14351. - for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  14352. -do
  14353. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  14354. -set dummy $ac_prog; ac_word=$2
  14355. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  14356. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14357. -if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  14358. +{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  14359. +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  14360. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  14361. echo $ECHO_N "(cached) $ECHO_C" >&6
  14362. else
  14363. - if test -n "$ac_ct_DUMPBIN"; then
  14364. - ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  14365. -else
  14366. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14367. -for as_dir in $PATH
  14368. -do
  14369. - IFS=$as_save_IFS
  14370. - test -z "$as_dir" && as_dir=.
  14371. - for ac_exec_ext in '' $ac_executable_extensions; do
  14372. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14373. - ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  14374. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14375. - break 2
  14376. - fi
  14377. -done
  14378. -done
  14379. -IFS=$as_save_IFS
  14380. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  14381. +lt_cv_file_magic_test_file=
  14382. +lt_cv_deplibs_check_method='unknown'
  14383. +# Need to set the preceding variable on all platforms that support
  14384. +# interlibrary dependencies.
  14385. +# 'none' -- dependencies not supported.
  14386. +# `unknown' -- same as none, but documents that we really don't know.
  14387. +# 'pass_all' -- all dependencies passed with no checks.
  14388. +# 'test_compile' -- check by making test program.
  14389. +# 'file_magic [[regex]]' -- check by looking for files in library path
  14390. +# which responds to the $file_magic_cmd with a given extended regex.
  14391. +# If you have `file' or equivalent on your system and you're not sure
  14392. +# whether `pass_all' will *always* work, you probably want this one.
  14393. -fi
  14394. -fi
  14395. -ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  14396. -if test -n "$ac_ct_DUMPBIN"; then
  14397. - { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  14398. -echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
  14399. -else
  14400. - { echo "$as_me:$LINENO: result: no" >&5
  14401. -echo "${ECHO_T}no" >&6; }
  14402. -fi
  14403. +case $host_os in
  14404. +aix4* | aix5*)
  14405. + lt_cv_deplibs_check_method=pass_all
  14406. + ;;
  14407. +
  14408. +beos*)
  14409. + lt_cv_deplibs_check_method=pass_all
  14410. + ;;
  14411. +bsdi[45]*)
  14412. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  14413. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  14414. + lt_cv_file_magic_test_file=/shlib/libc.so
  14415. + ;;
  14416. - test -n "$ac_ct_DUMPBIN" && break
  14417. -done
  14418. +cygwin*)
  14419. + # func_win32_libid is a shell function defined in ltmain.sh
  14420. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  14421. + lt_cv_file_magic_cmd='func_win32_libid'
  14422. + ;;
  14423. - if test "x$ac_ct_DUMPBIN" = x; then
  14424. - DUMPBIN=":"
  14425. - else
  14426. - case $cross_compiling:$ac_tool_warned in
  14427. -yes:)
  14428. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14429. -whose name does not start with the host triplet. If you think this
  14430. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  14431. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14432. -whose name does not start with the host triplet. If you think this
  14433. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14434. -ac_tool_warned=yes ;;
  14435. -esac
  14436. - DUMPBIN=$ac_ct_DUMPBIN
  14437. - fi
  14438. -fi
  14439. +mingw* | pw32*)
  14440. + # Base MSYS/MinGW do not provide the 'file' command needed by
  14441. + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  14442. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  14443. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  14444. + ;;
  14445. +darwin* | rhapsody*)
  14446. + lt_cv_deplibs_check_method=pass_all
  14447. + ;;
  14448. - if test "$DUMPBIN" != ":"; then
  14449. - NM="$DUMPBIN"
  14450. +freebsd* | kfreebsd*-gnu | dragonfly*)
  14451. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  14452. + case $host_cpu in
  14453. + i*86 )
  14454. + # Not sure whether the presence of OpenBSD here was a mistake.
  14455. + # Let's accept both of them until this is cleared up.
  14456. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  14457. + lt_cv_file_magic_cmd=/usr/bin/file
  14458. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  14459. + ;;
  14460. + esac
  14461. + else
  14462. + lt_cv_deplibs_check_method=pass_all
  14463. fi
  14464. -fi
  14465. -test -z "$NM" && NM=nm
  14466. + ;;
  14467. +gnu*)
  14468. + lt_cv_deplibs_check_method=pass_all
  14469. + ;;
  14470. +hpux10.20* | hpux11*)
  14471. + lt_cv_file_magic_cmd=/usr/bin/file
  14472. + case $host_cpu in
  14473. + ia64*)
  14474. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  14475. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  14476. + ;;
  14477. + hppa*64*)
  14478. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  14479. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  14480. + ;;
  14481. + *)
  14482. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  14483. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  14484. + ;;
  14485. + esac
  14486. + ;;
  14487. +interix3*)
  14488. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  14489. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  14490. + ;;
  14491. +irix5* | irix6* | nonstopux*)
  14492. + case $LD in
  14493. + *-32|*"-32 ") libmagic=32-bit;;
  14494. + *-n32|*"-n32 ") libmagic=N32;;
  14495. + *-64|*"-64 ") libmagic=64-bit;;
  14496. + *) libmagic=never-match;;
  14497. + esac
  14498. + lt_cv_deplibs_check_method=pass_all
  14499. + ;;
  14500. +# This must be Linux ELF.
  14501. +linux*)
  14502. + lt_cv_deplibs_check_method=pass_all
  14503. + ;;
  14504. -{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  14505. -echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
  14506. -if test "${lt_cv_nm_interface+set}" = set; then
  14507. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14508. -else
  14509. - lt_cv_nm_interface="BSD nm"
  14510. - echo "int some_variable = 0;" > conftest.$ac_ext
  14511. - (eval echo "\"\$as_me:4411: $ac_compile\"" >&5)
  14512. - (eval "$ac_compile" 2>conftest.err)
  14513. - cat conftest.err >&5
  14514. - (eval echo "\"\$as_me:4414: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  14515. - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  14516. - cat conftest.err >&5
  14517. - (eval echo "\"\$as_me:4417: output\"" >&5)
  14518. - cat conftest.out >&5
  14519. - if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  14520. - lt_cv_nm_interface="MS dumpbin"
  14521. +netbsd*)
  14522. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  14523. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  14524. + else
  14525. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  14526. fi
  14527. - rm -f conftest*
  14528. -fi
  14529. -{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  14530. -echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
  14531. -
  14532. -{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
  14533. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  14534. -LN_S=$as_ln_s
  14535. -if test "$LN_S" = "ln -s"; then
  14536. - { echo "$as_me:$LINENO: result: yes" >&5
  14537. -echo "${ECHO_T}yes" >&6; }
  14538. -else
  14539. - { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  14540. -echo "${ECHO_T}no, using $LN_S" >&6; }
  14541. -fi
  14542. + ;;
  14543. -# find the maximum length of command line arguments
  14544. -{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  14545. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  14546. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  14547. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14548. -else
  14549. - i=0
  14550. - teststring="ABCD"
  14551. +newos6*)
  14552. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  14553. + lt_cv_file_magic_cmd=/usr/bin/file
  14554. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  14555. + ;;
  14556. - case $build_os in
  14557. - msdosdjgpp*)
  14558. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  14559. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  14560. - # during glob expansion). Even if it were fixed, the result of this
  14561. - # check would be larger than it should be.
  14562. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  14563. - ;;
  14564. +nto-qnx*)
  14565. + lt_cv_deplibs_check_method=unknown
  14566. + ;;
  14567. - gnu*)
  14568. - # Under GNU Hurd, this test is not required because there is
  14569. - # no limit to the length of command line arguments.
  14570. - # Libtool will interpret -1 as no limit whatsoever
  14571. - lt_cv_sys_max_cmd_len=-1;
  14572. - ;;
  14573. +openbsd*)
  14574. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14575. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  14576. + else
  14577. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  14578. + fi
  14579. + ;;
  14580. - cygwin* | mingw*)
  14581. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  14582. - # about 5 minutes as the teststring grows exponentially.
  14583. - # Worse, since 9x/ME are not pre-emptively multitasking,
  14584. - # you end up with a "frozen" computer, even though with patience
  14585. - # the test eventually succeeds (with a max line length of 256k).
  14586. - # Instead, let's just punt: use the minimum linelength reported by
  14587. - # all of the supported platforms: 8192 (on NT/2K/XP).
  14588. - lt_cv_sys_max_cmd_len=8192;
  14589. - ;;
  14590. +osf3* | osf4* | osf5*)
  14591. + lt_cv_deplibs_check_method=pass_all
  14592. + ;;
  14593. - amigaos*)
  14594. - # On AmigaOS with pdksh, this test takes hours, literally.
  14595. - # So we just punt and use a minimum line length of 8192.
  14596. - lt_cv_sys_max_cmd_len=8192;
  14597. - ;;
  14598. +solaris*)
  14599. + lt_cv_deplibs_check_method=pass_all
  14600. + ;;
  14601. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  14602. - # This has been around since 386BSD, at least. Likely further.
  14603. - if test -x /sbin/sysctl; then
  14604. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  14605. - elif test -x /usr/sbin/sysctl; then
  14606. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  14607. - else
  14608. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  14609. - fi
  14610. - # And add a safety zone
  14611. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  14612. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  14613. +sysv4 | sysv4.3*)
  14614. + case $host_vendor in
  14615. + motorola)
  14616. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  14617. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  14618. ;;
  14619. -
  14620. - interix*)
  14621. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  14622. - lt_cv_sys_max_cmd_len=196608
  14623. + ncr)
  14624. + lt_cv_deplibs_check_method=pass_all
  14625. ;;
  14626. -
  14627. - osf*)
  14628. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  14629. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  14630. - # nice to cause kernel panics so lets avoid the loop below.
  14631. - # First set a reasonable default.
  14632. - lt_cv_sys_max_cmd_len=16384
  14633. - #
  14634. - if test -x /sbin/sysconfig; then
  14635. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  14636. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  14637. - esac
  14638. - fi
  14639. + sequent)
  14640. + lt_cv_file_magic_cmd='/bin/file'
  14641. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  14642. ;;
  14643. - sco3.2v5*)
  14644. - lt_cv_sys_max_cmd_len=102400
  14645. + sni)
  14646. + lt_cv_file_magic_cmd='/bin/file'
  14647. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  14648. + lt_cv_file_magic_test_file=/lib/libc.so
  14649. ;;
  14650. - sysv5* | sco5v6* | sysv4.2uw2*)
  14651. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  14652. - if test -n "$kargmax"; then
  14653. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  14654. - else
  14655. - lt_cv_sys_max_cmd_len=32768
  14656. - fi
  14657. + siemens)
  14658. + lt_cv_deplibs_check_method=pass_all
  14659. ;;
  14660. - *)
  14661. - # Make teststring a little bigger before we do anything with it.
  14662. - # a 1K string should be a reasonable start.
  14663. - for i in 1 2 3 4 5 6 7 8 ; do
  14664. - teststring=$teststring$teststring
  14665. - done
  14666. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  14667. - # If test is not a shell built-in, we'll probably end up computing a
  14668. - # maximum length that is only half of the actual maximum length, but
  14669. - # we can't tell.
  14670. - while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  14671. - = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  14672. - test $i != 17 # 1/2 MB should be enough
  14673. - do
  14674. - i=`expr $i + 1`
  14675. - teststring=$teststring$teststring
  14676. - done
  14677. - # Only check the string length outside the loop.
  14678. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  14679. - teststring=
  14680. - # Add a significant safety factor because C++ compilers can tack on massive
  14681. - # amounts of additional arguments before passing them to the linker.
  14682. - # It appears as though 1/2 is a usable value.
  14683. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  14684. + pc)
  14685. + lt_cv_deplibs_check_method=pass_all
  14686. ;;
  14687. esac
  14688. + ;;
  14689. -fi
  14690. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14691. + lt_cv_deplibs_check_method=pass_all
  14692. + ;;
  14693. +esac
  14694. -if test -n $lt_cv_sys_max_cmd_len ; then
  14695. - { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  14696. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  14697. -else
  14698. - { echo "$as_me:$LINENO: result: none" >&5
  14699. -echo "${ECHO_T}none" >&6; }
  14700. fi
  14701. -max_cmd_len=$lt_cv_sys_max_cmd_len
  14702. -
  14703. +{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  14704. +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  14705. +file_magic_cmd=$lt_cv_file_magic_cmd
  14706. +deplibs_check_method=$lt_cv_deplibs_check_method
  14707. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  14708. +# If no C compiler was specified, use CC.
  14709. +LTCC=${LTCC-"$CC"}
  14710. +# If no C compiler flags were specified, use CFLAGS.
  14711. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14712. -: ${CP="cp -f"}
  14713. -: ${MV="mv -f"}
  14714. -: ${RM="rm -f"}
  14715. -
  14716. -{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  14717. -echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
  14718. -# Try some XSI features
  14719. -xsi_shell=no
  14720. -( _lt_dummy="a/b/c"
  14721. - test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  14722. - = c,a/b,, ) >/dev/null 2>&1 \
  14723. - && xsi_shell=yes
  14724. -{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
  14725. -echo "${ECHO_T}$xsi_shell" >&6; }
  14726. +# Allow CC to be a program name with arguments.
  14727. +compiler=$CC
  14728. -{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  14729. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  14730. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  14731. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14732. -else
  14733. - lt_cv_ld_reload_flag='-r'
  14734. +# Check whether --enable-libtool-lock was given.
  14735. +if test "${enable_libtool_lock+set}" = set; then
  14736. + enableval=$enable_libtool_lock;
  14737. fi
  14738. -{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  14739. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  14740. -reload_flag=$lt_cv_ld_reload_flag
  14741. -case $reload_flag in
  14742. -"" | " "*) ;;
  14743. -*) reload_flag=" $reload_flag" ;;
  14744. -esac
  14745. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  14746. -case $host_os in
  14747. - darwin*)
  14748. - if test "$GCC" = yes; then
  14749. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  14750. - else
  14751. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  14752. - fi
  14753. - ;;
  14754. -esac
  14755. -
  14756. -
  14757. -
  14758. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  14759. -
  14760. -
  14761. -
  14762. -
  14763. -
  14764. -{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  14765. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  14766. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  14767. - echo $ECHO_N "(cached) $ECHO_C" >&6
  14768. -else
  14769. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  14770. -lt_cv_file_magic_test_file=
  14771. -lt_cv_deplibs_check_method='unknown'
  14772. -# Need to set the preceding variable on all platforms that support
  14773. -# interlibrary dependencies.
  14774. -# 'none' -- dependencies not supported.
  14775. -# `unknown' -- same as none, but documents that we really don't know.
  14776. -# 'pass_all' -- all dependencies passed with no checks.
  14777. -# 'test_compile' -- check by making test program.
  14778. -# 'file_magic [[regex]]' -- check by looking for files in library path
  14779. -# which responds to the $file_magic_cmd with a given extended regex.
  14780. -# If you have `file' or equivalent on your system and you're not sure
  14781. -# whether `pass_all' will *always* work, you probably want this one.
  14782. -
  14783. -case $host_os in
  14784. -aix4* | aix5*)
  14785. - lt_cv_deplibs_check_method=pass_all
  14786. +# Some flags need to be propagated to the compiler or linker for good
  14787. +# libtool support.
  14788. +case $host in
  14789. +ia64-*-hpux*)
  14790. + # Find out which ABI we are using.
  14791. + echo 'int i;' > conftest.$ac_ext
  14792. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14793. + (eval $ac_compile) 2>&5
  14794. + ac_status=$?
  14795. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14796. + (exit $ac_status); }; then
  14797. + case `/usr/bin/file conftest.$ac_objext` in
  14798. + *ELF-32*)
  14799. + HPUX_IA64_MODE="32"
  14800. + ;;
  14801. + *ELF-64*)
  14802. + HPUX_IA64_MODE="64"
  14803. + ;;
  14804. + esac
  14805. + fi
  14806. + rm -rf conftest*
  14807. ;;
  14808. -
  14809. -beos*)
  14810. - lt_cv_deplibs_check_method=pass_all
  14811. +*-*-irix6*)
  14812. + # Find out which ABI we are using.
  14813. + echo '#line 4370 "configure"' > conftest.$ac_ext
  14814. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14815. + (eval $ac_compile) 2>&5
  14816. + ac_status=$?
  14817. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14818. + (exit $ac_status); }; then
  14819. + if test "$lt_cv_prog_gnu_ld" = yes; then
  14820. + case `/usr/bin/file conftest.$ac_objext` in
  14821. + *32-bit*)
  14822. + LD="${LD-ld} -melf32bsmip"
  14823. + ;;
  14824. + *N32*)
  14825. + LD="${LD-ld} -melf32bmipn32"
  14826. + ;;
  14827. + *64-bit*)
  14828. + LD="${LD-ld} -melf64bmip"
  14829. + ;;
  14830. + esac
  14831. + else
  14832. + case `/usr/bin/file conftest.$ac_objext` in
  14833. + *32-bit*)
  14834. + LD="${LD-ld} -32"
  14835. + ;;
  14836. + *N32*)
  14837. + LD="${LD-ld} -n32"
  14838. + ;;
  14839. + *64-bit*)
  14840. + LD="${LD-ld} -64"
  14841. + ;;
  14842. + esac
  14843. + fi
  14844. + fi
  14845. + rm -rf conftest*
  14846. ;;
  14847. -bsdi[45]*)
  14848. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  14849. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  14850. - lt_cv_file_magic_test_file=/shlib/libc.so
  14851. +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  14852. + # Find out which ABI we are using.
  14853. + echo 'int i;' > conftest.$ac_ext
  14854. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14855. + (eval $ac_compile) 2>&5
  14856. + ac_status=$?
  14857. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14858. + (exit $ac_status); }; then
  14859. + case `/usr/bin/file conftest.o` in
  14860. + *32-bit*)
  14861. + case $host in
  14862. + x86_64-*linux*)
  14863. + LD="${LD-ld} -m elf_i386"
  14864. + ;;
  14865. + ppc64-*linux*|powerpc64-*linux*)
  14866. + LD="${LD-ld} -m elf32ppclinux"
  14867. + ;;
  14868. + s390x-*linux*)
  14869. + LD="${LD-ld} -m elf_s390"
  14870. + ;;
  14871. + sparc64-*linux*)
  14872. + LD="${LD-ld} -m elf32_sparc"
  14873. + ;;
  14874. + esac
  14875. + ;;
  14876. + *64-bit*)
  14877. + case $host in
  14878. + x86_64-*linux*)
  14879. + LD="${LD-ld} -m elf_x86_64"
  14880. + ;;
  14881. + ppc*-*linux*|powerpc*-*linux*)
  14882. + LD="${LD-ld} -m elf64ppc"
  14883. + ;;
  14884. + s390*-*linux*)
  14885. + LD="${LD-ld} -m elf64_s390"
  14886. + ;;
  14887. + sparc*-*linux*)
  14888. + LD="${LD-ld} -m elf64_sparc"
  14889. + ;;
  14890. + esac
  14891. + ;;
  14892. + esac
  14893. + fi
  14894. + rm -rf conftest*
  14895. ;;
  14896. -cygwin*)
  14897. - # func_win32_libid is a shell function defined in ltmain.sh
  14898. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  14899. - lt_cv_file_magic_cmd='func_win32_libid'
  14900. - ;;
  14901. -
  14902. - # Base MSYS/MinGW do not provide the 'file' command needed by
  14903. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  14904. -mingw* | pw32*)
  14905. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  14906. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  14907. - ;;
  14908. -
  14909. -darwin* | rhapsody*)
  14910. - lt_cv_deplibs_check_method=pass_all
  14911. - ;;
  14912. -
  14913. -freebsd* | kfreebsd*-gnu | dragonfly*)
  14914. - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  14915. - case $host_cpu in
  14916. - i*86 )
  14917. - # Not sure whether the presence of OpenBSD here was a mistake.
  14918. - # Let's accept both of them until this is cleared up.
  14919. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  14920. - lt_cv_file_magic_cmd=/usr/bin/file
  14921. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  14922. - ;;
  14923. - esac
  14924. - else
  14925. - lt_cv_deplibs_check_method=pass_all
  14926. - fi
  14927. - ;;
  14928. +*-*-sco3.2v5*)
  14929. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  14930. + SAVE_CFLAGS="$CFLAGS"
  14931. + CFLAGS="$CFLAGS -belf"
  14932. + { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  14933. +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  14934. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  14935. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14936. +else
  14937. + ac_ext=c
  14938. +ac_cpp='$CPP $CPPFLAGS'
  14939. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14940. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14941. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14942. -gnu*)
  14943. - lt_cv_deplibs_check_method=pass_all
  14944. - ;;
  14945. + cat >conftest.$ac_ext <<_ACEOF
  14946. +/* confdefs.h. */
  14947. +_ACEOF
  14948. +cat confdefs.h >>conftest.$ac_ext
  14949. +cat >>conftest.$ac_ext <<_ACEOF
  14950. +/* end confdefs.h. */
  14951. -hpux10.20* | hpux11*)
  14952. - lt_cv_file_magic_cmd=/usr/bin/file
  14953. - case $host_cpu in
  14954. - ia64*)
  14955. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  14956. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  14957. - ;;
  14958. - hppa*64*)
  14959. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  14960. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  14961. - ;;
  14962. - *)
  14963. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  14964. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  14965. - ;;
  14966. - esac
  14967. - ;;
  14968. +int
  14969. +main ()
  14970. +{
  14971. -interix3*)
  14972. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  14973. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  14974. - ;;
  14975. + ;
  14976. + return 0;
  14977. +}
  14978. +_ACEOF
  14979. +rm -f conftest.$ac_objext conftest$ac_exeext
  14980. +if { (ac_try="$ac_link"
  14981. +case "(($ac_try" in
  14982. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14983. + *) ac_try_echo=$ac_try;;
  14984. +esac
  14985. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14986. + (eval "$ac_link") 2>conftest.er1
  14987. + ac_status=$?
  14988. + grep -v '^ *+' conftest.er1 >conftest.err
  14989. + rm -f conftest.er1
  14990. + cat conftest.err >&5
  14991. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14992. + (exit $ac_status); } && {
  14993. + test -z "$ac_c_werror_flag" ||
  14994. + test ! -s conftest.err
  14995. + } && test -s conftest$ac_exeext &&
  14996. + $as_test_x conftest$ac_exeext; then
  14997. + lt_cv_cc_needs_belf=yes
  14998. +else
  14999. + echo "$as_me: failed program was:" >&5
  15000. +sed 's/^/| /' conftest.$ac_ext >&5
  15001. -irix5* | irix6* | nonstopux*)
  15002. - case $LD in
  15003. - *-32|*"-32 ") libmagic=32-bit;;
  15004. - *-n32|*"-n32 ") libmagic=N32;;
  15005. - *-64|*"-64 ") libmagic=64-bit;;
  15006. - *) libmagic=never-match;;
  15007. - esac
  15008. - lt_cv_deplibs_check_method=pass_all
  15009. - ;;
  15010. + lt_cv_cc_needs_belf=no
  15011. +fi
  15012. -# This must be Linux ELF.
  15013. -linux*)
  15014. - lt_cv_deplibs_check_method=pass_all
  15015. - ;;
  15016. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15017. + conftest$ac_exeext conftest.$ac_ext
  15018. + ac_ext=c
  15019. +ac_cpp='$CPP $CPPFLAGS'
  15020. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15021. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15022. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15023. -netbsd* | knetbsd*-gnu | netbsdelf*-gnu)
  15024. - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  15025. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  15026. - else
  15027. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  15028. +fi
  15029. +{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  15030. +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  15031. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  15032. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  15033. + CFLAGS="$SAVE_CFLAGS"
  15034. fi
  15035. ;;
  15036. -
  15037. -newos6*)
  15038. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  15039. - lt_cv_file_magic_cmd=/usr/bin/file
  15040. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  15041. - ;;
  15042. -
  15043. -*nto* | *qnx*)
  15044. - lt_cv_deplibs_check_method=pass_all
  15045. - ;;
  15046. -
  15047. -openbsd*)
  15048. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15049. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  15050. - else
  15051. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  15052. +sparc*-*solaris*)
  15053. + # Find out which ABI we are using.
  15054. + echo 'int i;' > conftest.$ac_ext
  15055. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  15056. + (eval $ac_compile) 2>&5
  15057. + ac_status=$?
  15058. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15059. + (exit $ac_status); }; then
  15060. + case `/usr/bin/file conftest.o` in
  15061. + *64-bit*)
  15062. + case $lt_cv_prog_gnu_ld in
  15063. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  15064. + *) LD="${LD-ld} -64" ;;
  15065. + esac
  15066. + ;;
  15067. + esac
  15068. fi
  15069. + rm -rf conftest*
  15070. ;;
  15071. -osf3* | osf4* | osf5*)
  15072. - lt_cv_deplibs_check_method=pass_all
  15073. - ;;
  15074. -
  15075. -solaris*)
  15076. - lt_cv_deplibs_check_method=pass_all
  15077. - ;;
  15078. -
  15079. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15080. - lt_cv_deplibs_check_method=pass_all
  15081. - ;;
  15082. -
  15083. -sysv4 | sysv4.3*)
  15084. - case $host_vendor in
  15085. - motorola)
  15086. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  15087. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  15088. - ;;
  15089. - ncr)
  15090. - lt_cv_deplibs_check_method=pass_all
  15091. - ;;
  15092. - sequent)
  15093. - lt_cv_file_magic_cmd='/bin/file'
  15094. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  15095. - ;;
  15096. - sni)
  15097. - lt_cv_file_magic_cmd='/bin/file'
  15098. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  15099. - lt_cv_file_magic_test_file=/lib/libc.so
  15100. - ;;
  15101. - siemens)
  15102. - lt_cv_deplibs_check_method=pass_all
  15103. - ;;
  15104. - pc)
  15105. - lt_cv_deplibs_check_method=pass_all
  15106. - ;;
  15107. - esac
  15108. - ;;
  15109. -tpf*)
  15110. - lt_cv_deplibs_check_method=pass_all
  15111. - ;;
  15112. esac
  15113. -fi
  15114. -{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  15115. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  15116. -file_magic_cmd=$lt_cv_file_magic_cmd
  15117. -deplibs_check_method=$lt_cv_deplibs_check_method
  15118. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  15119. -
  15120. -
  15121. -
  15122. -
  15123. -
  15124. -
  15125. -
  15126. -
  15127. -
  15128. -
  15129. +need_locks="$enable_libtool_lock"
  15130. -if test -n "$ac_tool_prefix"; then
  15131. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  15132. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  15133. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15134. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15135. -if test "${ac_cv_prog_AR+set}" = set; then
  15136. +ac_ext=c
  15137. +ac_cpp='$CPP $CPPFLAGS'
  15138. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15139. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15140. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15141. +{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  15142. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  15143. +# On Suns, sometimes $CPP names a directory.
  15144. +if test -n "$CPP" && test -d "$CPP"; then
  15145. + CPP=
  15146. +fi
  15147. +if test -z "$CPP"; then
  15148. + if test "${ac_cv_prog_CPP+set}" = set; then
  15149. echo $ECHO_N "(cached) $ECHO_C" >&6
  15150. else
  15151. - if test -n "$AR"; then
  15152. - ac_cv_prog_AR="$AR" # Let the user override the test.
  15153. -else
  15154. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15155. -for as_dir in $PATH
  15156. + # Double quotes because CPP needs to be expanded
  15157. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  15158. + do
  15159. + ac_preproc_ok=false
  15160. +for ac_c_preproc_warn_flag in '' yes
  15161. do
  15162. - IFS=$as_save_IFS
  15163. - test -z "$as_dir" && as_dir=.
  15164. - for ac_exec_ext in '' $ac_executable_extensions; do
  15165. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15166. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  15167. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15168. - break 2
  15169. - fi
  15170. -done
  15171. -done
  15172. -IFS=$as_save_IFS
  15173. + # Use a header file that comes with gcc, so configuring glibc
  15174. + # with a fresh cross-compiler works.
  15175. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15176. + # <limits.h> exists even on freestanding compilers.
  15177. + # On the NeXT, cc -E runs the code through the compiler's parser,
  15178. + # not just through cpp. "Syntax error" is here to catch this case.
  15179. + cat >conftest.$ac_ext <<_ACEOF
  15180. +/* confdefs.h. */
  15181. +_ACEOF
  15182. +cat confdefs.h >>conftest.$ac_ext
  15183. +cat >>conftest.$ac_ext <<_ACEOF
  15184. +/* end confdefs.h. */
  15185. +#ifdef __STDC__
  15186. +# include <limits.h>
  15187. +#else
  15188. +# include <assert.h>
  15189. +#endif
  15190. + Syntax error
  15191. +_ACEOF
  15192. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  15193. +case "(($ac_try" in
  15194. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15195. + *) ac_try_echo=$ac_try;;
  15196. +esac
  15197. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15198. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15199. + ac_status=$?
  15200. + grep -v '^ *+' conftest.er1 >conftest.err
  15201. + rm -f conftest.er1
  15202. + cat conftest.err >&5
  15203. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15204. + (exit $ac_status); } >/dev/null && {
  15205. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15206. + test ! -s conftest.err
  15207. + }; then
  15208. + :
  15209. +else
  15210. + echo "$as_me: failed program was:" >&5
  15211. +sed 's/^/| /' conftest.$ac_ext >&5
  15212. + # Broken: fails on valid input.
  15213. +continue
  15214. fi
  15215. -fi
  15216. -AR=$ac_cv_prog_AR
  15217. -if test -n "$AR"; then
  15218. - { echo "$as_me:$LINENO: result: $AR" >&5
  15219. -echo "${ECHO_T}$AR" >&6; }
  15220. +
  15221. +rm -f conftest.err conftest.$ac_ext
  15222. +
  15223. + # OK, works on sane cases. Now check whether nonexistent headers
  15224. + # can be detected and how.
  15225. + cat >conftest.$ac_ext <<_ACEOF
  15226. +/* confdefs.h. */
  15227. +_ACEOF
  15228. +cat confdefs.h >>conftest.$ac_ext
  15229. +cat >>conftest.$ac_ext <<_ACEOF
  15230. +/* end confdefs.h. */
  15231. +#include <ac_nonexistent.h>
  15232. +_ACEOF
  15233. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  15234. +case "(($ac_try" in
  15235. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15236. + *) ac_try_echo=$ac_try;;
  15237. +esac
  15238. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15239. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15240. + ac_status=$?
  15241. + grep -v '^ *+' conftest.er1 >conftest.err
  15242. + rm -f conftest.er1
  15243. + cat conftest.err >&5
  15244. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15245. + (exit $ac_status); } >/dev/null && {
  15246. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15247. + test ! -s conftest.err
  15248. + }; then
  15249. + # Broken: success on invalid input.
  15250. +continue
  15251. else
  15252. - { echo "$as_me:$LINENO: result: no" >&5
  15253. -echo "${ECHO_T}no" >&6; }
  15254. + echo "$as_me: failed program was:" >&5
  15255. +sed 's/^/| /' conftest.$ac_ext >&5
  15256. +
  15257. + # Passes both tests.
  15258. +ac_preproc_ok=:
  15259. +break
  15260. fi
  15261. +rm -f conftest.err conftest.$ac_ext
  15262. -fi
  15263. -if test -z "$ac_cv_prog_AR"; then
  15264. - ac_ct_AR=$AR
  15265. - # Extract the first word of "ar", so it can be a program name with args.
  15266. -set dummy ar; ac_word=$2
  15267. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15268. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15269. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  15270. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15271. -else
  15272. - if test -n "$ac_ct_AR"; then
  15273. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  15274. -else
  15275. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15276. -for as_dir in $PATH
  15277. -do
  15278. - IFS=$as_save_IFS
  15279. - test -z "$as_dir" && as_dir=.
  15280. - for ac_exec_ext in '' $ac_executable_extensions; do
  15281. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15282. - ac_cv_prog_ac_ct_AR="ar"
  15283. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15284. - break 2
  15285. - fi
  15286. done
  15287. -done
  15288. -IFS=$as_save_IFS
  15289. -
  15290. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15291. +rm -f conftest.err conftest.$ac_ext
  15292. +if $ac_preproc_ok; then
  15293. + break
  15294. fi
  15295. +
  15296. + done
  15297. + ac_cv_prog_CPP=$CPP
  15298. +
  15299. fi
  15300. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  15301. -if test -n "$ac_ct_AR"; then
  15302. - { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  15303. -echo "${ECHO_T}$ac_ct_AR" >&6; }
  15304. + CPP=$ac_cv_prog_CPP
  15305. else
  15306. - { echo "$as_me:$LINENO: result: no" >&5
  15307. -echo "${ECHO_T}no" >&6; }
  15308. + ac_cv_prog_CPP=$CPP
  15309. fi
  15310. -
  15311. - if test "x$ac_ct_AR" = x; then
  15312. - AR="false"
  15313. - else
  15314. - case $cross_compiling:$ac_tool_warned in
  15315. -yes:)
  15316. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15317. -whose name does not start with the host triplet. If you think this
  15318. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15319. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15320. -whose name does not start with the host triplet. If you think this
  15321. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15322. -ac_tool_warned=yes ;;
  15323. +{ echo "$as_me:$LINENO: result: $CPP" >&5
  15324. +echo "${ECHO_T}$CPP" >&6; }
  15325. +ac_preproc_ok=false
  15326. +for ac_c_preproc_warn_flag in '' yes
  15327. +do
  15328. + # Use a header file that comes with gcc, so configuring glibc
  15329. + # with a fresh cross-compiler works.
  15330. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15331. + # <limits.h> exists even on freestanding compilers.
  15332. + # On the NeXT, cc -E runs the code through the compiler's parser,
  15333. + # not just through cpp. "Syntax error" is here to catch this case.
  15334. + cat >conftest.$ac_ext <<_ACEOF
  15335. +/* confdefs.h. */
  15336. +_ACEOF
  15337. +cat confdefs.h >>conftest.$ac_ext
  15338. +cat >>conftest.$ac_ext <<_ACEOF
  15339. +/* end confdefs.h. */
  15340. +#ifdef __STDC__
  15341. +# include <limits.h>
  15342. +#else
  15343. +# include <assert.h>
  15344. +#endif
  15345. + Syntax error
  15346. +_ACEOF
  15347. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  15348. +case "(($ac_try" in
  15349. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15350. + *) ac_try_echo=$ac_try;;
  15351. esac
  15352. - AR=$ac_ct_AR
  15353. - fi
  15354. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15355. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15356. + ac_status=$?
  15357. + grep -v '^ *+' conftest.er1 >conftest.err
  15358. + rm -f conftest.er1
  15359. + cat conftest.err >&5
  15360. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15361. + (exit $ac_status); } >/dev/null && {
  15362. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15363. + test ! -s conftest.err
  15364. + }; then
  15365. + :
  15366. else
  15367. - AR="$ac_cv_prog_AR"
  15368. -fi
  15369. -
  15370. -test -z "$AR" && AR=ar
  15371. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  15372. -
  15373. -
  15374. + echo "$as_me: failed program was:" >&5
  15375. +sed 's/^/| /' conftest.$ac_ext >&5
  15376. + # Broken: fails on valid input.
  15377. +continue
  15378. +fi
  15379. +rm -f conftest.err conftest.$ac_ext
  15380. + # OK, works on sane cases. Now check whether nonexistent headers
  15381. + # can be detected and how.
  15382. + cat >conftest.$ac_ext <<_ACEOF
  15383. +/* confdefs.h. */
  15384. +_ACEOF
  15385. +cat confdefs.h >>conftest.$ac_ext
  15386. +cat >>conftest.$ac_ext <<_ACEOF
  15387. +/* end confdefs.h. */
  15388. +#include <ac_nonexistent.h>
  15389. +_ACEOF
  15390. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  15391. +case "(($ac_try" in
  15392. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15393. + *) ac_try_echo=$ac_try;;
  15394. +esac
  15395. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15396. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15397. + ac_status=$?
  15398. + grep -v '^ *+' conftest.er1 >conftest.err
  15399. + rm -f conftest.er1
  15400. + cat conftest.err >&5
  15401. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15402. + (exit $ac_status); } >/dev/null && {
  15403. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15404. + test ! -s conftest.err
  15405. + }; then
  15406. + # Broken: success on invalid input.
  15407. +continue
  15408. +else
  15409. + echo "$as_me: failed program was:" >&5
  15410. +sed 's/^/| /' conftest.$ac_ext >&5
  15411. + # Passes both tests.
  15412. +ac_preproc_ok=:
  15413. +break
  15414. +fi
  15415. +rm -f conftest.err conftest.$ac_ext
  15416. +done
  15417. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15418. +rm -f conftest.err conftest.$ac_ext
  15419. +if $ac_preproc_ok; then
  15420. + :
  15421. +else
  15422. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  15423. +See \`config.log' for more details." >&5
  15424. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  15425. +See \`config.log' for more details." >&2;}
  15426. + { (exit 1); exit 1; }; }
  15427. +fi
  15428. +ac_ext=c
  15429. +ac_cpp='$CPP $CPPFLAGS'
  15430. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15431. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15432. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  15433. -if test -n "$ac_tool_prefix"; then
  15434. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  15435. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  15436. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15437. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15438. -if test "${ac_cv_prog_STRIP+set}" = set; then
  15439. +{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  15440. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  15441. +if test "${ac_cv_header_stdc+set}" = set; then
  15442. echo $ECHO_N "(cached) $ECHO_C" >&6
  15443. else
  15444. - if test -n "$STRIP"; then
  15445. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  15446. + cat >conftest.$ac_ext <<_ACEOF
  15447. +/* confdefs.h. */
  15448. +_ACEOF
  15449. +cat confdefs.h >>conftest.$ac_ext
  15450. +cat >>conftest.$ac_ext <<_ACEOF
  15451. +/* end confdefs.h. */
  15452. +#include <stdlib.h>
  15453. +#include <stdarg.h>
  15454. +#include <string.h>
  15455. +#include <float.h>
  15456. +
  15457. +int
  15458. +main ()
  15459. +{
  15460. +
  15461. + ;
  15462. + return 0;
  15463. +}
  15464. +_ACEOF
  15465. +rm -f conftest.$ac_objext
  15466. +if { (ac_try="$ac_compile"
  15467. +case "(($ac_try" in
  15468. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15469. + *) ac_try_echo=$ac_try;;
  15470. +esac
  15471. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15472. + (eval "$ac_compile") 2>conftest.er1
  15473. + ac_status=$?
  15474. + grep -v '^ *+' conftest.er1 >conftest.err
  15475. + rm -f conftest.er1
  15476. + cat conftest.err >&5
  15477. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15478. + (exit $ac_status); } && {
  15479. + test -z "$ac_c_werror_flag" ||
  15480. + test ! -s conftest.err
  15481. + } && test -s conftest.$ac_objext; then
  15482. + ac_cv_header_stdc=yes
  15483. else
  15484. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15485. -for as_dir in $PATH
  15486. -do
  15487. - IFS=$as_save_IFS
  15488. - test -z "$as_dir" && as_dir=.
  15489. - for ac_exec_ext in '' $ac_executable_extensions; do
  15490. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15491. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  15492. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15493. - break 2
  15494. - fi
  15495. -done
  15496. -done
  15497. -IFS=$as_save_IFS
  15498. + echo "$as_me: failed program was:" >&5
  15499. +sed 's/^/| /' conftest.$ac_ext >&5
  15500. + ac_cv_header_stdc=no
  15501. fi
  15502. -fi
  15503. -STRIP=$ac_cv_prog_STRIP
  15504. -if test -n "$STRIP"; then
  15505. - { echo "$as_me:$LINENO: result: $STRIP" >&5
  15506. -echo "${ECHO_T}$STRIP" >&6; }
  15507. +
  15508. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15509. +
  15510. +if test $ac_cv_header_stdc = yes; then
  15511. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15512. + cat >conftest.$ac_ext <<_ACEOF
  15513. +/* confdefs.h. */
  15514. +_ACEOF
  15515. +cat confdefs.h >>conftest.$ac_ext
  15516. +cat >>conftest.$ac_ext <<_ACEOF
  15517. +/* end confdefs.h. */
  15518. +#include <string.h>
  15519. +
  15520. +_ACEOF
  15521. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15522. + $EGREP "memchr" >/dev/null 2>&1; then
  15523. + :
  15524. else
  15525. - { echo "$as_me:$LINENO: result: no" >&5
  15526. -echo "${ECHO_T}no" >&6; }
  15527. + ac_cv_header_stdc=no
  15528. fi
  15529. +rm -f conftest*
  15530. +
  15531. +fi
  15532. +
  15533. +if test $ac_cv_header_stdc = yes; then
  15534. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15535. + cat >conftest.$ac_ext <<_ACEOF
  15536. +/* confdefs.h. */
  15537. +_ACEOF
  15538. +cat confdefs.h >>conftest.$ac_ext
  15539. +cat >>conftest.$ac_ext <<_ACEOF
  15540. +/* end confdefs.h. */
  15541. +#include <stdlib.h>
  15542. +_ACEOF
  15543. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15544. + $EGREP "free" >/dev/null 2>&1; then
  15545. + :
  15546. +else
  15547. + ac_cv_header_stdc=no
  15548. +fi
  15549. +rm -f conftest*
  15550. fi
  15551. -if test -z "$ac_cv_prog_STRIP"; then
  15552. - ac_ct_STRIP=$STRIP
  15553. - # Extract the first word of "strip", so it can be a program name with args.
  15554. -set dummy strip; ac_word=$2
  15555. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15556. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15557. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  15558. - echo $ECHO_N "(cached) $ECHO_C" >&6
  15559. +
  15560. +if test $ac_cv_header_stdc = yes; then
  15561. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15562. + if test "$cross_compiling" = yes; then
  15563. + :
  15564. else
  15565. - if test -n "$ac_ct_STRIP"; then
  15566. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  15567. + cat >conftest.$ac_ext <<_ACEOF
  15568. +/* confdefs.h. */
  15569. +_ACEOF
  15570. +cat confdefs.h >>conftest.$ac_ext
  15571. +cat >>conftest.$ac_ext <<_ACEOF
  15572. +/* end confdefs.h. */
  15573. +#include <ctype.h>
  15574. +#include <stdlib.h>
  15575. +#if ((' ' & 0x0FF) == 0x020)
  15576. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15577. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15578. +#else
  15579. +# define ISLOWER(c) \
  15580. + (('a' <= (c) && (c) <= 'i') \
  15581. + || ('j' <= (c) && (c) <= 'r') \
  15582. + || ('s' <= (c) && (c) <= 'z'))
  15583. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15584. +#endif
  15585. +
  15586. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15587. +int
  15588. +main ()
  15589. +{
  15590. + int i;
  15591. + for (i = 0; i < 256; i++)
  15592. + if (XOR (islower (i), ISLOWER (i))
  15593. + || toupper (i) != TOUPPER (i))
  15594. + return 2;
  15595. + return 0;
  15596. +}
  15597. +_ACEOF
  15598. +rm -f conftest$ac_exeext
  15599. +if { (ac_try="$ac_link"
  15600. +case "(($ac_try" in
  15601. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15602. + *) ac_try_echo=$ac_try;;
  15603. +esac
  15604. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15605. + (eval "$ac_link") 2>&5
  15606. + ac_status=$?
  15607. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15608. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15609. + { (case "(($ac_try" in
  15610. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15611. + *) ac_try_echo=$ac_try;;
  15612. +esac
  15613. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15614. + (eval "$ac_try") 2>&5
  15615. + ac_status=$?
  15616. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15617. + (exit $ac_status); }; }; then
  15618. + :
  15619. else
  15620. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15621. -for as_dir in $PATH
  15622. -do
  15623. - IFS=$as_save_IFS
  15624. - test -z "$as_dir" && as_dir=.
  15625. - for ac_exec_ext in '' $ac_executable_extensions; do
  15626. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15627. - ac_cv_prog_ac_ct_STRIP="strip"
  15628. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15629. - break 2
  15630. - fi
  15631. -done
  15632. -done
  15633. -IFS=$as_save_IFS
  15634. + echo "$as_me: program exited with status $ac_status" >&5
  15635. +echo "$as_me: failed program was:" >&5
  15636. +sed 's/^/| /' conftest.$ac_ext >&5
  15637. +( exit $ac_status )
  15638. +ac_cv_header_stdc=no
  15639. fi
  15640. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15641. +fi
  15642. +
  15643. +
  15644. fi
  15645. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  15646. -if test -n "$ac_ct_STRIP"; then
  15647. - { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  15648. -echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  15649. -else
  15650. - { echo "$as_me:$LINENO: result: no" >&5
  15651. -echo "${ECHO_T}no" >&6; }
  15652. fi
  15653. +{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  15654. +echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  15655. +if test $ac_cv_header_stdc = yes; then
  15656. +
  15657. +cat >>confdefs.h <<\_ACEOF
  15658. +#define STDC_HEADERS 1
  15659. +_ACEOF
  15660. - if test "x$ac_ct_STRIP" = x; then
  15661. - STRIP=":"
  15662. - else
  15663. - case $cross_compiling:$ac_tool_warned in
  15664. -yes:)
  15665. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15666. -whose name does not start with the host triplet. If you think this
  15667. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  15668. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15669. -whose name does not start with the host triplet. If you think this
  15670. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15671. -ac_tool_warned=yes ;;
  15672. -esac
  15673. - STRIP=$ac_ct_STRIP
  15674. - fi
  15675. -else
  15676. - STRIP="$ac_cv_prog_STRIP"
  15677. fi
  15678. -test -z "$STRIP" && STRIP=:
  15679. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  15680. -if test -n "$ac_tool_prefix"; then
  15681. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  15682. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  15683. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15684. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15685. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  15686. +
  15687. +
  15688. +
  15689. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  15690. + inttypes.h stdint.h unistd.h
  15691. +do
  15692. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15693. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  15694. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15695. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15696. echo $ECHO_N "(cached) $ECHO_C" >&6
  15697. else
  15698. - if test -n "$RANLIB"; then
  15699. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  15700. -else
  15701. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15702. -for as_dir in $PATH
  15703. -do
  15704. - IFS=$as_save_IFS
  15705. - test -z "$as_dir" && as_dir=.
  15706. + cat >conftest.$ac_ext <<_ACEOF
  15707. +/* confdefs.h. */
  15708. +_ACEOF
  15709. +cat confdefs.h >>conftest.$ac_ext
  15710. +cat >>conftest.$ac_ext <<_ACEOF
  15711. +/* end confdefs.h. */
  15712. +$ac_includes_default
  15713. +
  15714. +#include <$ac_header>
  15715. +_ACEOF
  15716. +rm -f conftest.$ac_objext
  15717. +if { (ac_try="$ac_compile"
  15718. +case "(($ac_try" in
  15719. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15720. + *) ac_try_echo=$ac_try;;
  15721. +esac
  15722. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15723. + (eval "$ac_compile") 2>conftest.er1
  15724. + ac_status=$?
  15725. + grep -v '^ *+' conftest.er1 >conftest.err
  15726. + rm -f conftest.er1
  15727. + cat conftest.err >&5
  15728. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15729. + (exit $ac_status); } && {
  15730. + test -z "$ac_c_werror_flag" ||
  15731. + test ! -s conftest.err
  15732. + } && test -s conftest.$ac_objext; then
  15733. + eval "$as_ac_Header=yes"
  15734. +else
  15735. + echo "$as_me: failed program was:" >&5
  15736. +sed 's/^/| /' conftest.$ac_ext >&5
  15737. +
  15738. + eval "$as_ac_Header=no"
  15739. +fi
  15740. +
  15741. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15742. +fi
  15743. +ac_res=`eval echo '${'$as_ac_Header'}'`
  15744. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  15745. +echo "${ECHO_T}$ac_res" >&6; }
  15746. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15747. + cat >>confdefs.h <<_ACEOF
  15748. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15749. +_ACEOF
  15750. +
  15751. +fi
  15752. +
  15753. +done
  15754. +
  15755. +
  15756. +
  15757. +for ac_header in dlfcn.h
  15758. +do
  15759. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15760. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15761. + { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15762. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15763. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15764. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15765. +fi
  15766. +ac_res=`eval echo '${'$as_ac_Header'}'`
  15767. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  15768. +echo "${ECHO_T}$ac_res" >&6; }
  15769. +else
  15770. + # Is the header compilable?
  15771. +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15772. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15773. +cat >conftest.$ac_ext <<_ACEOF
  15774. +/* confdefs.h. */
  15775. +_ACEOF
  15776. +cat confdefs.h >>conftest.$ac_ext
  15777. +cat >>conftest.$ac_ext <<_ACEOF
  15778. +/* end confdefs.h. */
  15779. +$ac_includes_default
  15780. +#include <$ac_header>
  15781. +_ACEOF
  15782. +rm -f conftest.$ac_objext
  15783. +if { (ac_try="$ac_compile"
  15784. +case "(($ac_try" in
  15785. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15786. + *) ac_try_echo=$ac_try;;
  15787. +esac
  15788. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15789. + (eval "$ac_compile") 2>conftest.er1
  15790. + ac_status=$?
  15791. + grep -v '^ *+' conftest.er1 >conftest.err
  15792. + rm -f conftest.er1
  15793. + cat conftest.err >&5
  15794. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15795. + (exit $ac_status); } && {
  15796. + test -z "$ac_c_werror_flag" ||
  15797. + test ! -s conftest.err
  15798. + } && test -s conftest.$ac_objext; then
  15799. + ac_header_compiler=yes
  15800. +else
  15801. + echo "$as_me: failed program was:" >&5
  15802. +sed 's/^/| /' conftest.$ac_ext >&5
  15803. +
  15804. + ac_header_compiler=no
  15805. +fi
  15806. +
  15807. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15808. +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15809. +echo "${ECHO_T}$ac_header_compiler" >&6; }
  15810. +
  15811. +# Is the header present?
  15812. +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15813. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15814. +cat >conftest.$ac_ext <<_ACEOF
  15815. +/* confdefs.h. */
  15816. +_ACEOF
  15817. +cat confdefs.h >>conftest.$ac_ext
  15818. +cat >>conftest.$ac_ext <<_ACEOF
  15819. +/* end confdefs.h. */
  15820. +#include <$ac_header>
  15821. +_ACEOF
  15822. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  15823. +case "(($ac_try" in
  15824. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15825. + *) ac_try_echo=$ac_try;;
  15826. +esac
  15827. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15828. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15829. + ac_status=$?
  15830. + grep -v '^ *+' conftest.er1 >conftest.err
  15831. + rm -f conftest.er1
  15832. + cat conftest.err >&5
  15833. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15834. + (exit $ac_status); } >/dev/null && {
  15835. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15836. + test ! -s conftest.err
  15837. + }; then
  15838. + ac_header_preproc=yes
  15839. +else
  15840. + echo "$as_me: failed program was:" >&5
  15841. +sed 's/^/| /' conftest.$ac_ext >&5
  15842. +
  15843. + ac_header_preproc=no
  15844. +fi
  15845. +
  15846. +rm -f conftest.err conftest.$ac_ext
  15847. +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15848. +echo "${ECHO_T}$ac_header_preproc" >&6; }
  15849. +
  15850. +# So? What about this header?
  15851. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15852. + yes:no: )
  15853. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15854. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15855. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15856. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15857. + ac_header_preproc=yes
  15858. + ;;
  15859. + no:yes:* )
  15860. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15861. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15862. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15863. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15864. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15865. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15866. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15867. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15868. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15869. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15870. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15871. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15872. +
  15873. + ;;
  15874. +esac
  15875. +{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  15876. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15877. +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15878. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15879. +else
  15880. + eval "$as_ac_Header=\$ac_header_preproc"
  15881. +fi
  15882. +ac_res=`eval echo '${'$as_ac_Header'}'`
  15883. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  15884. +echo "${ECHO_T}$ac_res" >&6; }
  15885. +
  15886. +fi
  15887. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15888. + cat >>confdefs.h <<_ACEOF
  15889. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15890. +_ACEOF
  15891. +
  15892. +fi
  15893. +
  15894. +done
  15895. +
  15896. +ac_ext=cpp
  15897. +ac_cpp='$CXXCPP $CPPFLAGS'
  15898. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15899. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15900. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15901. +if test -z "$CXX"; then
  15902. + if test -n "$CCC"; then
  15903. + CXX=$CCC
  15904. + else
  15905. + if test -n "$ac_tool_prefix"; then
  15906. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  15907. + do
  15908. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  15909. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  15910. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  15911. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15912. +if test "${ac_cv_prog_CXX+set}" = set; then
  15913. + echo $ECHO_N "(cached) $ECHO_C" >&6
  15914. +else
  15915. + if test -n "$CXX"; then
  15916. + ac_cv_prog_CXX="$CXX" # Let the user override the test.
  15917. +else
  15918. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15919. +for as_dir in $PATH
  15920. +do
  15921. + IFS=$as_save_IFS
  15922. + test -z "$as_dir" && as_dir=.
  15923. for ac_exec_ext in '' $ac_executable_extensions; do
  15924. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15925. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  15926. + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  15927. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15928. break 2
  15929. fi
  15930. @@ -5051,28 +5199,32 @@
  15931. fi
  15932. fi
  15933. -RANLIB=$ac_cv_prog_RANLIB
  15934. -if test -n "$RANLIB"; then
  15935. - { echo "$as_me:$LINENO: result: $RANLIB" >&5
  15936. -echo "${ECHO_T}$RANLIB" >&6; }
  15937. +CXX=$ac_cv_prog_CXX
  15938. +if test -n "$CXX"; then
  15939. + { echo "$as_me:$LINENO: result: $CXX" >&5
  15940. +echo "${ECHO_T}$CXX" >&6; }
  15941. else
  15942. { echo "$as_me:$LINENO: result: no" >&5
  15943. echo "${ECHO_T}no" >&6; }
  15944. fi
  15945. + test -n "$CXX" && break
  15946. + done
  15947. fi
  15948. -if test -z "$ac_cv_prog_RANLIB"; then
  15949. - ac_ct_RANLIB=$RANLIB
  15950. - # Extract the first word of "ranlib", so it can be a program name with args.
  15951. -set dummy ranlib; ac_word=$2
  15952. +if test -z "$CXX"; then
  15953. + ac_ct_CXX=$CXX
  15954. + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  15955. +do
  15956. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  15957. +set dummy $ac_prog; ac_word=$2
  15958. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15959. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15960. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  15961. +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  15962. echo $ECHO_N "(cached) $ECHO_C" >&6
  15963. else
  15964. - if test -n "$ac_ct_RANLIB"; then
  15965. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  15966. + if test -n "$ac_ct_CXX"; then
  15967. + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  15968. else
  15969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15970. for as_dir in $PATH
  15971. @@ -5081,7 +5233,7 @@
  15972. test -z "$as_dir" && as_dir=.
  15973. for ac_exec_ext in '' $ac_executable_extensions; do
  15974. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15975. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  15976. + ac_cv_prog_ac_ct_CXX="$ac_prog"
  15977. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15978. break 2
  15979. fi
  15980. @@ -5091,17 +5243,21 @@
  15981. fi
  15982. fi
  15983. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  15984. -if test -n "$ac_ct_RANLIB"; then
  15985. - { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  15986. -echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  15987. +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  15988. +if test -n "$ac_ct_CXX"; then
  15989. + { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  15990. +echo "${ECHO_T}$ac_ct_CXX" >&6; }
  15991. else
  15992. { echo "$as_me:$LINENO: result: no" >&5
  15993. echo "${ECHO_T}no" >&6; }
  15994. fi
  15995. - if test "x$ac_ct_RANLIB" = x; then
  15996. - RANLIB=":"
  15997. +
  15998. + test -n "$ac_ct_CXX" && break
  15999. +done
  16000. +
  16001. + if test "x$ac_ct_CXX" = x; then
  16002. + CXX="g++"
  16003. else
  16004. case $cross_compiling:$ac_tool_warned in
  16005. yes:)
  16006. @@ -5113,1205 +5269,1591 @@
  16007. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16008. ac_tool_warned=yes ;;
  16009. esac
  16010. - RANLIB=$ac_ct_RANLIB
  16011. + CXX=$ac_ct_CXX
  16012. fi
  16013. -else
  16014. - RANLIB="$ac_cv_prog_RANLIB"
  16015. fi
  16016. -test -z "$RANLIB" && RANLIB=:
  16017. -
  16018. -
  16019. -
  16020. -
  16021. -
  16022. -
  16023. -# Determine commands to create old-style static archives.
  16024. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  16025. -old_postinstall_cmds='chmod 644 $oldlib'
  16026. -old_postuninstall_cmds=
  16027. -
  16028. -if test -n "$RANLIB"; then
  16029. - case $host_os in
  16030. - openbsd*)
  16031. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  16032. - ;;
  16033. - *)
  16034. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  16035. - ;;
  16036. - esac
  16037. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  16038. -fi
  16039. -
  16040. -
  16041. -
  16042. -
  16043. -
  16044. -
  16045. -
  16046. -
  16047. + fi
  16048. +fi
  16049. +# Provide some information about the compiler.
  16050. +echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  16051. +ac_compiler=`set X $ac_compile; echo $2`
  16052. +{ (ac_try="$ac_compiler --version >&5"
  16053. +case "(($ac_try" in
  16054. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16055. + *) ac_try_echo=$ac_try;;
  16056. +esac
  16057. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16058. + (eval "$ac_compiler --version >&5") 2>&5
  16059. + ac_status=$?
  16060. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16061. + (exit $ac_status); }
  16062. +{ (ac_try="$ac_compiler -v >&5"
  16063. +case "(($ac_try" in
  16064. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16065. + *) ac_try_echo=$ac_try;;
  16066. +esac
  16067. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16068. + (eval "$ac_compiler -v >&5") 2>&5
  16069. + ac_status=$?
  16070. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16071. + (exit $ac_status); }
  16072. +{ (ac_try="$ac_compiler -V >&5"
  16073. +case "(($ac_try" in
  16074. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16075. + *) ac_try_echo=$ac_try;;
  16076. +esac
  16077. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16078. + (eval "$ac_compiler -V >&5") 2>&5
  16079. + ac_status=$?
  16080. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16081. + (exit $ac_status); }
  16082. +{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  16083. +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  16084. +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  16085. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16086. +else
  16087. + cat >conftest.$ac_ext <<_ACEOF
  16088. +/* confdefs.h. */
  16089. +_ACEOF
  16090. +cat confdefs.h >>conftest.$ac_ext
  16091. +cat >>conftest.$ac_ext <<_ACEOF
  16092. +/* end confdefs.h. */
  16093. +int
  16094. +main ()
  16095. +{
  16096. +#ifndef __GNUC__
  16097. + choke me
  16098. +#endif
  16099. + ;
  16100. + return 0;
  16101. +}
  16102. +_ACEOF
  16103. +rm -f conftest.$ac_objext
  16104. +if { (ac_try="$ac_compile"
  16105. +case "(($ac_try" in
  16106. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16107. + *) ac_try_echo=$ac_try;;
  16108. +esac
  16109. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16110. + (eval "$ac_compile") 2>conftest.er1
  16111. + ac_status=$?
  16112. + grep -v '^ *+' conftest.er1 >conftest.err
  16113. + rm -f conftest.er1
  16114. + cat conftest.err >&5
  16115. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16116. + (exit $ac_status); } && {
  16117. + test -z "$ac_cxx_werror_flag" ||
  16118. + test ! -s conftest.err
  16119. + } && test -s conftest.$ac_objext; then
  16120. + ac_compiler_gnu=yes
  16121. +else
  16122. + echo "$as_me: failed program was:" >&5
  16123. +sed 's/^/| /' conftest.$ac_ext >&5
  16124. + ac_compiler_gnu=no
  16125. +fi
  16126. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16127. +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  16128. +fi
  16129. +{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  16130. +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  16131. +GXX=`test $ac_compiler_gnu = yes && echo yes`
  16132. +ac_test_CXXFLAGS=${CXXFLAGS+set}
  16133. +ac_save_CXXFLAGS=$CXXFLAGS
  16134. +{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  16135. +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  16136. +if test "${ac_cv_prog_cxx_g+set}" = set; then
  16137. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16138. +else
  16139. + ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  16140. + ac_cxx_werror_flag=yes
  16141. + ac_cv_prog_cxx_g=no
  16142. + CXXFLAGS="-g"
  16143. + cat >conftest.$ac_ext <<_ACEOF
  16144. +/* confdefs.h. */
  16145. +_ACEOF
  16146. +cat confdefs.h >>conftest.$ac_ext
  16147. +cat >>conftest.$ac_ext <<_ACEOF
  16148. +/* end confdefs.h. */
  16149. +int
  16150. +main ()
  16151. +{
  16152. + ;
  16153. + return 0;
  16154. +}
  16155. +_ACEOF
  16156. +rm -f conftest.$ac_objext
  16157. +if { (ac_try="$ac_compile"
  16158. +case "(($ac_try" in
  16159. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16160. + *) ac_try_echo=$ac_try;;
  16161. +esac
  16162. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16163. + (eval "$ac_compile") 2>conftest.er1
  16164. + ac_status=$?
  16165. + grep -v '^ *+' conftest.er1 >conftest.err
  16166. + rm -f conftest.er1
  16167. + cat conftest.err >&5
  16168. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16169. + (exit $ac_status); } && {
  16170. + test -z "$ac_cxx_werror_flag" ||
  16171. + test ! -s conftest.err
  16172. + } && test -s conftest.$ac_objext; then
  16173. + ac_cv_prog_cxx_g=yes
  16174. +else
  16175. + echo "$as_me: failed program was:" >&5
  16176. +sed 's/^/| /' conftest.$ac_ext >&5
  16177. + CXXFLAGS=""
  16178. + cat >conftest.$ac_ext <<_ACEOF
  16179. +/* confdefs.h. */
  16180. +_ACEOF
  16181. +cat confdefs.h >>conftest.$ac_ext
  16182. +cat >>conftest.$ac_ext <<_ACEOF
  16183. +/* end confdefs.h. */
  16184. +int
  16185. +main ()
  16186. +{
  16187. + ;
  16188. + return 0;
  16189. +}
  16190. +_ACEOF
  16191. +rm -f conftest.$ac_objext
  16192. +if { (ac_try="$ac_compile"
  16193. +case "(($ac_try" in
  16194. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16195. + *) ac_try_echo=$ac_try;;
  16196. +esac
  16197. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16198. + (eval "$ac_compile") 2>conftest.er1
  16199. + ac_status=$?
  16200. + grep -v '^ *+' conftest.er1 >conftest.err
  16201. + rm -f conftest.er1
  16202. + cat conftest.err >&5
  16203. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16204. + (exit $ac_status); } && {
  16205. + test -z "$ac_cxx_werror_flag" ||
  16206. + test ! -s conftest.err
  16207. + } && test -s conftest.$ac_objext; then
  16208. + :
  16209. +else
  16210. + echo "$as_me: failed program was:" >&5
  16211. +sed 's/^/| /' conftest.$ac_ext >&5
  16212. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  16213. + CXXFLAGS="-g"
  16214. + cat >conftest.$ac_ext <<_ACEOF
  16215. +/* confdefs.h. */
  16216. +_ACEOF
  16217. +cat confdefs.h >>conftest.$ac_ext
  16218. +cat >>conftest.$ac_ext <<_ACEOF
  16219. +/* end confdefs.h. */
  16220. +int
  16221. +main ()
  16222. +{
  16223. + ;
  16224. + return 0;
  16225. +}
  16226. +_ACEOF
  16227. +rm -f conftest.$ac_objext
  16228. +if { (ac_try="$ac_compile"
  16229. +case "(($ac_try" in
  16230. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16231. + *) ac_try_echo=$ac_try;;
  16232. +esac
  16233. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16234. + (eval "$ac_compile") 2>conftest.er1
  16235. + ac_status=$?
  16236. + grep -v '^ *+' conftest.er1 >conftest.err
  16237. + rm -f conftest.er1
  16238. + cat conftest.err >&5
  16239. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16240. + (exit $ac_status); } && {
  16241. + test -z "$ac_cxx_werror_flag" ||
  16242. + test ! -s conftest.err
  16243. + } && test -s conftest.$ac_objext; then
  16244. + ac_cv_prog_cxx_g=yes
  16245. +else
  16246. + echo "$as_me: failed program was:" >&5
  16247. +sed 's/^/| /' conftest.$ac_ext >&5
  16248. +fi
  16249. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16250. +fi
  16251. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16252. +fi
  16253. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16254. + ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  16255. +fi
  16256. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  16257. +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  16258. +if test "$ac_test_CXXFLAGS" = set; then
  16259. + CXXFLAGS=$ac_save_CXXFLAGS
  16260. +elif test $ac_cv_prog_cxx_g = yes; then
  16261. + if test "$GXX" = yes; then
  16262. + CXXFLAGS="-g -O2"
  16263. + else
  16264. + CXXFLAGS="-g"
  16265. + fi
  16266. +else
  16267. + if test "$GXX" = yes; then
  16268. + CXXFLAGS="-O2"
  16269. + else
  16270. + CXXFLAGS=
  16271. + fi
  16272. +fi
  16273. +ac_ext=cpp
  16274. +ac_cpp='$CXXCPP $CPPFLAGS'
  16275. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16276. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16277. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16278. +depcc="$CXX" am_compiler_list=
  16279. +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  16280. +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  16281. +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  16282. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16283. +else
  16284. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  16285. + # We make a subdir and do the tests there. Otherwise we can end up
  16286. + # making bogus files that we don't know about and never remove. For
  16287. + # instance it was reported that on HP-UX the gcc test will end up
  16288. + # making a dummy file named `D' -- because `-MD' means `put the output
  16289. + # in D'.
  16290. + mkdir conftest.dir
  16291. + # Copy depcomp to subdir because otherwise we won't find it if we're
  16292. + # using a relative directory.
  16293. + cp "$am_depcomp" conftest.dir
  16294. + cd conftest.dir
  16295. + # We will build objects and dependencies in a subdirectory because
  16296. + # it helps to detect inapplicable dependency modes. For instance
  16297. + # both Tru64's cc and ICC support -MD to output dependencies as a
  16298. + # side effect of compilation, but ICC will put the dependencies in
  16299. + # the current directory while Tru64 will put them in the object
  16300. + # directory.
  16301. + mkdir sub
  16302. + am_cv_CXX_dependencies_compiler_type=none
  16303. + if test "$am_compiler_list" = ""; then
  16304. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  16305. + fi
  16306. + for depmode in $am_compiler_list; do
  16307. + # Setup a source with many dependencies, because some compilers
  16308. + # like to wrap large dependency lists on column 80 (with \), and
  16309. + # we should not choose a depcomp mode which is confused by this.
  16310. + #
  16311. + # We need to recreate these files for each test, as the compiler may
  16312. + # overwrite some of them when testing with obscure command lines.
  16313. + # This happens at least with the AIX C compiler.
  16314. + : > sub/conftest.c
  16315. + for i in 1 2 3 4 5 6; do
  16316. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  16317. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  16318. + # Solaris 8's {/usr,}/bin/sh.
  16319. + touch sub/conftst$i.h
  16320. + done
  16321. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  16322. + case $depmode in
  16323. + nosideeffect)
  16324. + # after this tag, mechanisms are not by side-effect, so they'll
  16325. + # only be used when explicitly requested
  16326. + if test "x$enable_dependency_tracking" = xyes; then
  16327. + continue
  16328. + else
  16329. + break
  16330. + fi
  16331. + ;;
  16332. + none) break ;;
  16333. + esac
  16334. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  16335. + # mode. It turns out that the SunPro C++ compiler does not properly
  16336. + # handle `-M -o', and we need to detect this.
  16337. + if depmode=$depmode \
  16338. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  16339. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  16340. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  16341. + >/dev/null 2>conftest.err &&
  16342. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  16343. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  16344. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  16345. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  16346. + # icc doesn't choke on unknown options, it will just issue warnings
  16347. + # or remarks (even with -Werror). So we grep stderr for any message
  16348. + # that says an option was ignored or not supported.
  16349. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  16350. + # icc: Command line warning: ignoring option '-M'; no argument required
  16351. + # The diagnosis changed in icc 8.0:
  16352. + # icc: Command line remark: option '-MP' not supported
  16353. + if (grep 'ignoring option' conftest.err ||
  16354. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  16355. + am_cv_CXX_dependencies_compiler_type=$depmode
  16356. + break
  16357. + fi
  16358. + fi
  16359. + done
  16360. + cd ..
  16361. + rm -rf conftest.dir
  16362. +else
  16363. + am_cv_CXX_dependencies_compiler_type=none
  16364. +fi
  16365. +fi
  16366. +{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  16367. +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  16368. +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  16369. -# If no C compiler was specified, use CC.
  16370. -LTCC=${LTCC-"$CC"}
  16371. + if
  16372. + test "x$enable_dependency_tracking" != xno \
  16373. + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  16374. + am__fastdepCXX_TRUE=
  16375. + am__fastdepCXX_FALSE='#'
  16376. +else
  16377. + am__fastdepCXX_TRUE='#'
  16378. + am__fastdepCXX_FALSE=
  16379. +fi
  16380. -# If no C compiler flags were specified, use CFLAGS.
  16381. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  16382. -# Allow CC to be a program name with arguments.
  16383. -compiler=$CC
  16384. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  16385. -{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  16386. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  16387. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  16388. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  16389. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  16390. + (test "X$CXX" != "Xg++"))) ; then
  16391. + ac_ext=cpp
  16392. +ac_cpp='$CXXCPP $CPPFLAGS'
  16393. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16394. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16395. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16396. +{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  16397. +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  16398. +if test -z "$CXXCPP"; then
  16399. + if test "${ac_cv_prog_CXXCPP+set}" = set; then
  16400. echo $ECHO_N "(cached) $ECHO_C" >&6
  16401. else
  16402. -
  16403. -# These are sane defaults that work on at least a few old systems.
  16404. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  16405. -
  16406. -# Character class describing NM global symbol codes.
  16407. -symcode='[BCDEGRST]'
  16408. -
  16409. -# Regexp to match symbols that can be accessed directly from C.
  16410. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  16411. -
  16412. -# Define system-specific variables.
  16413. -case $host_os in
  16414. -aix*)
  16415. - symcode='[BCDT]'
  16416. - ;;
  16417. -cygwin* | mingw* | pw32*)
  16418. - symcode='[ABCDGISTW]'
  16419. - ;;
  16420. -hpux*)
  16421. - if test "$host_cpu" = ia64; then
  16422. - symcode='[ABCDEGRST]'
  16423. - fi
  16424. - ;;
  16425. -irix* | nonstopux*)
  16426. - symcode='[BCDEGRST]'
  16427. - ;;
  16428. -osf*)
  16429. - symcode='[BCDEGQRST]'
  16430. - ;;
  16431. -solaris*)
  16432. - symcode='[BDRT]'
  16433. - ;;
  16434. -sco3.2v5*)
  16435. - symcode='[DT]'
  16436. - ;;
  16437. -sysv4.2uw2*)
  16438. - symcode='[DT]'
  16439. - ;;
  16440. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  16441. - symcode='[ABDT]'
  16442. - ;;
  16443. -sysv4)
  16444. - symcode='[DFNSTU]'
  16445. - ;;
  16446. -esac
  16447. -
  16448. -# If we're using GNU nm, then use its standard symbol codes.
  16449. -case `$NM -V 2>&1` in
  16450. -*GNU* | *'with BFD'*)
  16451. - symcode='[ABCDGIRSTW]' ;;
  16452. + # Double quotes because CXXCPP needs to be expanded
  16453. + for CXXCPP in "$CXX -E" "/lib/cpp"
  16454. + do
  16455. + ac_preproc_ok=false
  16456. +for ac_cxx_preproc_warn_flag in '' yes
  16457. +do
  16458. + # Use a header file that comes with gcc, so configuring glibc
  16459. + # with a fresh cross-compiler works.
  16460. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16461. + # <limits.h> exists even on freestanding compilers.
  16462. + # On the NeXT, cc -E runs the code through the compiler's parser,
  16463. + # not just through cpp. "Syntax error" is here to catch this case.
  16464. + cat >conftest.$ac_ext <<_ACEOF
  16465. +/* confdefs.h. */
  16466. +_ACEOF
  16467. +cat confdefs.h >>conftest.$ac_ext
  16468. +cat >>conftest.$ac_ext <<_ACEOF
  16469. +/* end confdefs.h. */
  16470. +#ifdef __STDC__
  16471. +# include <limits.h>
  16472. +#else
  16473. +# include <assert.h>
  16474. +#endif
  16475. + Syntax error
  16476. +_ACEOF
  16477. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  16478. +case "(($ac_try" in
  16479. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16480. + *) ac_try_echo=$ac_try;;
  16481. esac
  16482. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16483. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16484. + ac_status=$?
  16485. + grep -v '^ *+' conftest.er1 >conftest.err
  16486. + rm -f conftest.er1
  16487. + cat conftest.err >&5
  16488. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16489. + (exit $ac_status); } >/dev/null && {
  16490. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16491. + test ! -s conftest.err
  16492. + }; then
  16493. + :
  16494. +else
  16495. + echo "$as_me: failed program was:" >&5
  16496. +sed 's/^/| /' conftest.$ac_ext >&5
  16497. -# Transform an extracted symbol line into a proper C declaration.
  16498. -# Some systems (esp. on ia64) link data and code symbols differently,
  16499. -# so use this general approach.
  16500. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  16501. + # Broken: fails on valid input.
  16502. +continue
  16503. +fi
  16504. -# Transform an extracted symbol line into symbol name and symbol address
  16505. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  16506. +rm -f conftest.err conftest.$ac_ext
  16507. -# Handle CRLF in mingw tool chain
  16508. -opt_cr=
  16509. -case $build_os in
  16510. -mingw*)
  16511. - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  16512. - ;;
  16513. + # OK, works on sane cases. Now check whether nonexistent headers
  16514. + # can be detected and how.
  16515. + cat >conftest.$ac_ext <<_ACEOF
  16516. +/* confdefs.h. */
  16517. +_ACEOF
  16518. +cat confdefs.h >>conftest.$ac_ext
  16519. +cat >>conftest.$ac_ext <<_ACEOF
  16520. +/* end confdefs.h. */
  16521. +#include <ac_nonexistent.h>
  16522. +_ACEOF
  16523. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  16524. +case "(($ac_try" in
  16525. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16526. + *) ac_try_echo=$ac_try;;
  16527. esac
  16528. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16529. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16530. + ac_status=$?
  16531. + grep -v '^ *+' conftest.er1 >conftest.err
  16532. + rm -f conftest.er1
  16533. + cat conftest.err >&5
  16534. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16535. + (exit $ac_status); } >/dev/null && {
  16536. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16537. + test ! -s conftest.err
  16538. + }; then
  16539. + # Broken: success on invalid input.
  16540. +continue
  16541. +else
  16542. + echo "$as_me: failed program was:" >&5
  16543. +sed 's/^/| /' conftest.$ac_ext >&5
  16544. -# Try without a prefix underscore, then with it.
  16545. -for ac_symprfx in "" "_"; do
  16546. + # Passes both tests.
  16547. +ac_preproc_ok=:
  16548. +break
  16549. +fi
  16550. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  16551. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  16552. +rm -f conftest.err conftest.$ac_ext
  16553. - # Write the raw and C identifiers.
  16554. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  16555. - # Fake it for dumpbin and say T for any non-static function
  16556. - # and D for any global variable.
  16557. - # Also find C++ and __fastcall symbols from MSVC++,
  16558. - # which start with @ or ?.
  16559. - lt_cv_sys_global_symbol_pipe="$AWK '"\
  16560. -" {last_section=section; section=\$ 3};"\
  16561. -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  16562. -" \$ 0!~/External *\|/{next};"\
  16563. -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  16564. -" {if(hide[section]) next};"\
  16565. -" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  16566. -" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  16567. -" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  16568. -" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  16569. -" ' prfx=^$ac_symprfx"
  16570. - else
  16571. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  16572. - fi
  16573. +done
  16574. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16575. +rm -f conftest.err conftest.$ac_ext
  16576. +if $ac_preproc_ok; then
  16577. + break
  16578. +fi
  16579. - # Check to see that the pipe works correctly.
  16580. - pipe_works=no
  16581. + done
  16582. + ac_cv_prog_CXXCPP=$CXXCPP
  16583. - rm -f conftest*
  16584. - cat > conftest.$ac_ext <<_LT_EOF
  16585. -#ifdef __cplusplus
  16586. -extern "C" {
  16587. -#endif
  16588. -char nm_test_var;
  16589. -void nm_test_func(){}
  16590. -#ifdef __cplusplus
  16591. -}
  16592. +fi
  16593. + CXXCPP=$ac_cv_prog_CXXCPP
  16594. +else
  16595. + ac_cv_prog_CXXCPP=$CXXCPP
  16596. +fi
  16597. +{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
  16598. +echo "${ECHO_T}$CXXCPP" >&6; }
  16599. +ac_preproc_ok=false
  16600. +for ac_cxx_preproc_warn_flag in '' yes
  16601. +do
  16602. + # Use a header file that comes with gcc, so configuring glibc
  16603. + # with a fresh cross-compiler works.
  16604. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16605. + # <limits.h> exists even on freestanding compilers.
  16606. + # On the NeXT, cc -E runs the code through the compiler's parser,
  16607. + # not just through cpp. "Syntax error" is here to catch this case.
  16608. + cat >conftest.$ac_ext <<_ACEOF
  16609. +/* confdefs.h. */
  16610. +_ACEOF
  16611. +cat confdefs.h >>conftest.$ac_ext
  16612. +cat >>conftest.$ac_ext <<_ACEOF
  16613. +/* end confdefs.h. */
  16614. +#ifdef __STDC__
  16615. +# include <limits.h>
  16616. +#else
  16617. +# include <assert.h>
  16618. #endif
  16619. -int main(){nm_test_var='a';nm_test_func();return(0);}
  16620. -_LT_EOF
  16621. -
  16622. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16623. - (eval $ac_compile) 2>&5
  16624. + Syntax error
  16625. +_ACEOF
  16626. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  16627. +case "(($ac_try" in
  16628. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16629. + *) ac_try_echo=$ac_try;;
  16630. +esac
  16631. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16632. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16633. ac_status=$?
  16634. + grep -v '^ *+' conftest.er1 >conftest.err
  16635. + rm -f conftest.er1
  16636. + cat conftest.err >&5
  16637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16638. - (exit $ac_status); }; then
  16639. - # Now try to grab the symbols.
  16640. - nlist=conftest.nm
  16641. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  16642. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  16643. + (exit $ac_status); } >/dev/null && {
  16644. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16645. + test ! -s conftest.err
  16646. + }; then
  16647. + :
  16648. +else
  16649. + echo "$as_me: failed program was:" >&5
  16650. +sed 's/^/| /' conftest.$ac_ext >&5
  16651. +
  16652. + # Broken: fails on valid input.
  16653. +continue
  16654. +fi
  16655. +
  16656. +rm -f conftest.err conftest.$ac_ext
  16657. +
  16658. + # OK, works on sane cases. Now check whether nonexistent headers
  16659. + # can be detected and how.
  16660. + cat >conftest.$ac_ext <<_ACEOF
  16661. +/* confdefs.h. */
  16662. +_ACEOF
  16663. +cat confdefs.h >>conftest.$ac_ext
  16664. +cat >>conftest.$ac_ext <<_ACEOF
  16665. +/* end confdefs.h. */
  16666. +#include <ac_nonexistent.h>
  16667. +_ACEOF
  16668. +if { (ac_try="$ac_cpp conftest.$ac_ext"
  16669. +case "(($ac_try" in
  16670. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16671. + *) ac_try_echo=$ac_try;;
  16672. +esac
  16673. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16674. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16675. ac_status=$?
  16676. + grep -v '^ *+' conftest.er1 >conftest.err
  16677. + rm -f conftest.er1
  16678. + cat conftest.err >&5
  16679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16680. - (exit $ac_status); } && test -s "$nlist"; then
  16681. - # Try sorting and uniquifying the output.
  16682. - if sort "$nlist" | uniq > "$nlist"T; then
  16683. - mv -f "$nlist"T "$nlist"
  16684. - else
  16685. - rm -f "$nlist"T
  16686. - fi
  16687. -
  16688. - # Make sure that we snagged all the symbols we need.
  16689. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  16690. - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  16691. - cat <<_LT_EOF > conftest.$ac_ext
  16692. -#ifdef __cplusplus
  16693. -extern "C" {
  16694. -#endif
  16695. + (exit $ac_status); } >/dev/null && {
  16696. + test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16697. + test ! -s conftest.err
  16698. + }; then
  16699. + # Broken: success on invalid input.
  16700. +continue
  16701. +else
  16702. + echo "$as_me: failed program was:" >&5
  16703. +sed 's/^/| /' conftest.$ac_ext >&5
  16704. -_LT_EOF
  16705. - # Now generate the symbol file.
  16706. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  16707. + # Passes both tests.
  16708. +ac_preproc_ok=:
  16709. +break
  16710. +fi
  16711. - cat <<_LT_EOF >> conftest.$ac_ext
  16712. +rm -f conftest.err conftest.$ac_ext
  16713. -/* The mapping between symbol names and symbols. */
  16714. -const struct {
  16715. - const char *name;
  16716. - void *address;
  16717. -}
  16718. -lt__PROGRAM__LTX_preloaded_symbols[] =
  16719. -{
  16720. - { "@PROGRAM@", (void *) 0 },
  16721. -_LT_EOF
  16722. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  16723. - cat <<\_LT_EOF >> conftest.$ac_ext
  16724. - {0, (void *) 0}
  16725. -};
  16726. +done
  16727. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  16728. +rm -f conftest.err conftest.$ac_ext
  16729. +if $ac_preproc_ok; then
  16730. + :
  16731. +else
  16732. + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  16733. +See \`config.log' for more details." >&5
  16734. +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  16735. +See \`config.log' for more details." >&2;}
  16736. + { (exit 1); exit 1; }; }
  16737. +fi
  16738. -/* This works around a problem in FreeBSD linker */
  16739. -#ifdef FREEBSD_WORKAROUND
  16740. -static const void *lt_preloaded_setup() {
  16741. - return lt__PROGRAM__LTX_preloaded_symbols;
  16742. -}
  16743. -#endif
  16744. +ac_ext=cpp
  16745. +ac_cpp='$CXXCPP $CPPFLAGS'
  16746. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  16747. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16748. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  16749. -#ifdef __cplusplus
  16750. -}
  16751. -#endif
  16752. -_LT_EOF
  16753. - # Now try linking the two files.
  16754. - mv conftest.$ac_objext conftstm.$ac_objext
  16755. - lt_save_LIBS="$LIBS"
  16756. - lt_save_CFLAGS="$CFLAGS"
  16757. - LIBS="conftstm.$ac_objext"
  16758. - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  16759. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16760. - (eval $ac_link) 2>&5
  16761. - ac_status=$?
  16762. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16763. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  16764. - pipe_works=yes
  16765. - fi
  16766. - LIBS="$lt_save_LIBS"
  16767. - CFLAGS="$lt_save_CFLAGS"
  16768. - else
  16769. - echo "cannot find nm_test_func in $nlist" >&5
  16770. - fi
  16771. - else
  16772. - echo "cannot find nm_test_var in $nlist" >&5
  16773. - fi
  16774. - else
  16775. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  16776. - fi
  16777. - else
  16778. - echo "$progname: failed program was:" >&5
  16779. - cat conftest.$ac_ext >&5
  16780. - fi
  16781. - rm -f conftest* conftst*
  16782. +fi
  16783. - # Do not use the global_symbol_pipe unless it works.
  16784. - if test "$pipe_works" = yes; then
  16785. - break
  16786. - else
  16787. - lt_cv_sys_global_symbol_pipe=
  16788. +
  16789. +ac_ext=f
  16790. +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  16791. +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  16792. +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  16793. +if test -n "$ac_tool_prefix"; then
  16794. + for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  16795. + do
  16796. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  16797. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  16798. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16799. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16800. +if test "${ac_cv_prog_F77+set}" = set; then
  16801. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16802. +else
  16803. + if test -n "$F77"; then
  16804. + ac_cv_prog_F77="$F77" # Let the user override the test.
  16805. +else
  16806. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16807. +for as_dir in $PATH
  16808. +do
  16809. + IFS=$as_save_IFS
  16810. + test -z "$as_dir" && as_dir=.
  16811. + for ac_exec_ext in '' $ac_executable_extensions; do
  16812. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16813. + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  16814. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16815. + break 2
  16816. fi
  16817. done
  16818. +done
  16819. +IFS=$as_save_IFS
  16820. fi
  16821. +fi
  16822. +F77=$ac_cv_prog_F77
  16823. +if test -n "$F77"; then
  16824. + { echo "$as_me:$LINENO: result: $F77" >&5
  16825. +echo "${ECHO_T}$F77" >&6; }
  16826. +else
  16827. + { echo "$as_me:$LINENO: result: no" >&5
  16828. +echo "${ECHO_T}no" >&6; }
  16829. +fi
  16830. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  16831. - lt_cv_sys_global_symbol_to_cdecl=
  16832. +
  16833. + test -n "$F77" && break
  16834. + done
  16835. fi
  16836. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  16837. - { echo "$as_me:$LINENO: result: failed" >&5
  16838. -echo "${ECHO_T}failed" >&6; }
  16839. +if test -z "$F77"; then
  16840. + ac_ct_F77=$F77
  16841. + for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  16842. +do
  16843. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  16844. +set dummy $ac_prog; ac_word=$2
  16845. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  16846. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  16847. +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  16848. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16849. else
  16850. - { echo "$as_me:$LINENO: result: ok" >&5
  16851. -echo "${ECHO_T}ok" >&6; }
  16852. + if test -n "$ac_ct_F77"; then
  16853. + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  16854. +else
  16855. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16856. +for as_dir in $PATH
  16857. +do
  16858. + IFS=$as_save_IFS
  16859. + test -z "$as_dir" && as_dir=.
  16860. + for ac_exec_ext in '' $ac_executable_extensions; do
  16861. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16862. + ac_cv_prog_ac_ct_F77="$ac_prog"
  16863. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16864. + break 2
  16865. + fi
  16866. +done
  16867. +done
  16868. +IFS=$as_save_IFS
  16869. +
  16870. +fi
  16871. +fi
  16872. +ac_ct_F77=$ac_cv_prog_ac_ct_F77
  16873. +if test -n "$ac_ct_F77"; then
  16874. + { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  16875. +echo "${ECHO_T}$ac_ct_F77" >&6; }
  16876. +else
  16877. + { echo "$as_me:$LINENO: result: no" >&5
  16878. +echo "${ECHO_T}no" >&6; }
  16879. fi
  16880. + test -n "$ac_ct_F77" && break
  16881. +done
  16882. + if test "x$ac_ct_F77" = x; then
  16883. + F77=""
  16884. + else
  16885. + case $cross_compiling:$ac_tool_warned in
  16886. +yes:)
  16887. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  16888. +whose name does not start with the host triplet. If you think this
  16889. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  16890. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  16891. +whose name does not start with the host triplet. If you think this
  16892. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  16893. +ac_tool_warned=yes ;;
  16894. +esac
  16895. + F77=$ac_ct_F77
  16896. + fi
  16897. +fi
  16898. +# Provide some information about the compiler.
  16899. +echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  16900. +ac_compiler=`set X $ac_compile; echo $2`
  16901. +{ (ac_try="$ac_compiler --version >&5"
  16902. +case "(($ac_try" in
  16903. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16904. + *) ac_try_echo=$ac_try;;
  16905. +esac
  16906. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16907. + (eval "$ac_compiler --version >&5") 2>&5
  16908. + ac_status=$?
  16909. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16910. + (exit $ac_status); }
  16911. +{ (ac_try="$ac_compiler -v >&5"
  16912. +case "(($ac_try" in
  16913. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16914. + *) ac_try_echo=$ac_try;;
  16915. +esac
  16916. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16917. + (eval "$ac_compiler -v >&5") 2>&5
  16918. + ac_status=$?
  16919. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16920. + (exit $ac_status); }
  16921. +{ (ac_try="$ac_compiler -V >&5"
  16922. +case "(($ac_try" in
  16923. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16924. + *) ac_try_echo=$ac_try;;
  16925. +esac
  16926. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16927. + (eval "$ac_compiler -V >&5") 2>&5
  16928. + ac_status=$?
  16929. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16930. + (exit $ac_status); }
  16931. +rm -f a.out
  16932. +# If we don't use `.F' as extension, the preprocessor is not run on the
  16933. +# input file. (Note that this only needs to work for GNU compilers.)
  16934. +ac_save_ext=$ac_ext
  16935. +ac_ext=F
  16936. +{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  16937. +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  16938. +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  16939. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16940. +else
  16941. + cat >conftest.$ac_ext <<_ACEOF
  16942. + program main
  16943. +#ifndef __GNUC__
  16944. + choke me
  16945. +#endif
  16946. + end
  16947. +_ACEOF
  16948. +rm -f conftest.$ac_objext
  16949. +if { (ac_try="$ac_compile"
  16950. +case "(($ac_try" in
  16951. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16952. + *) ac_try_echo=$ac_try;;
  16953. +esac
  16954. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16955. + (eval "$ac_compile") 2>conftest.er1
  16956. + ac_status=$?
  16957. + grep -v '^ *+' conftest.er1 >conftest.err
  16958. + rm -f conftest.er1
  16959. + cat conftest.err >&5
  16960. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16961. + (exit $ac_status); } && {
  16962. + test -z "$ac_f77_werror_flag" ||
  16963. + test ! -s conftest.err
  16964. + } && test -s conftest.$ac_objext; then
  16965. + ac_compiler_gnu=yes
  16966. +else
  16967. + echo "$as_me: failed program was:" >&5
  16968. +sed 's/^/| /' conftest.$ac_ext >&5
  16969. + ac_compiler_gnu=no
  16970. +fi
  16971. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16972. +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  16973. +fi
  16974. +{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  16975. +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  16976. +ac_ext=$ac_save_ext
  16977. +ac_test_FFLAGS=${FFLAGS+set}
  16978. +ac_save_FFLAGS=$FFLAGS
  16979. +FFLAGS=
  16980. +{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  16981. +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  16982. +if test "${ac_cv_prog_f77_g+set}" = set; then
  16983. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16984. +else
  16985. + FFLAGS=-g
  16986. +cat >conftest.$ac_ext <<_ACEOF
  16987. + program main
  16988. + end
  16989. +_ACEOF
  16990. +rm -f conftest.$ac_objext
  16991. +if { (ac_try="$ac_compile"
  16992. +case "(($ac_try" in
  16993. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16994. + *) ac_try_echo=$ac_try;;
  16995. +esac
  16996. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16997. + (eval "$ac_compile") 2>conftest.er1
  16998. + ac_status=$?
  16999. + grep -v '^ *+' conftest.er1 >conftest.err
  17000. + rm -f conftest.er1
  17001. + cat conftest.err >&5
  17002. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17003. + (exit $ac_status); } && {
  17004. + test -z "$ac_f77_werror_flag" ||
  17005. + test ! -s conftest.err
  17006. + } && test -s conftest.$ac_objext; then
  17007. + ac_cv_prog_f77_g=yes
  17008. +else
  17009. + echo "$as_me: failed program was:" >&5
  17010. +sed 's/^/| /' conftest.$ac_ext >&5
  17011. + ac_cv_prog_f77_g=no
  17012. +fi
  17013. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17014. +fi
  17015. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  17016. +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  17017. +if test "$ac_test_FFLAGS" = set; then
  17018. + FFLAGS=$ac_save_FFLAGS
  17019. +elif test $ac_cv_prog_f77_g = yes; then
  17020. + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  17021. + FFLAGS="-g -O2"
  17022. + else
  17023. + FFLAGS="-g"
  17024. + fi
  17025. +else
  17026. + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  17027. + FFLAGS="-O2"
  17028. + else
  17029. + FFLAGS=
  17030. + fi
  17031. +fi
  17032. +G77=`test $ac_compiler_gnu = yes && echo yes`
  17033. +ac_ext=c
  17034. +ac_cpp='$CPP $CPPFLAGS'
  17035. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17036. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17037. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17038. -# Check whether --enable-libtool-lock was given.
  17039. -if test "${enable_libtool_lock+set}" = set; then
  17040. - enableval=$enable_libtool_lock;
  17041. -fi
  17042. +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  17043. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  17044. +# find the maximum length of command line arguments
  17045. +{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  17046. +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  17047. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  17048. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17049. +else
  17050. + i=0
  17051. + teststring="ABCD"
  17052. -# Some flags need to be propagated to the compiler or linker for good
  17053. -# libtool support.
  17054. -case $host in
  17055. -ia64-*-hpux*)
  17056. - # Find out which ABI we are using.
  17057. - echo 'int i;' > conftest.$ac_ext
  17058. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17059. - (eval $ac_compile) 2>&5
  17060. - ac_status=$?
  17061. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17062. - (exit $ac_status); }; then
  17063. - case `/usr/bin/file conftest.$ac_objext` in
  17064. - *ELF-32*)
  17065. - HPUX_IA64_MODE="32"
  17066. - ;;
  17067. - *ELF-64*)
  17068. - HPUX_IA64_MODE="64"
  17069. - ;;
  17070. - esac
  17071. - fi
  17072. - rm -rf conftest*
  17073. - ;;
  17074. -*-*-irix6*)
  17075. - # Find out which ABI we are using.
  17076. - echo '#line 5463 "configure"' > conftest.$ac_ext
  17077. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17078. - (eval $ac_compile) 2>&5
  17079. - ac_status=$?
  17080. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17081. - (exit $ac_status); }; then
  17082. - if test "$lt_cv_prog_gnu_ld" = yes; then
  17083. - case `/usr/bin/file conftest.$ac_objext` in
  17084. - *32-bit*)
  17085. - LD="${LD-ld} -melf32bsmip"
  17086. - ;;
  17087. - *N32*)
  17088. - LD="${LD-ld} -melf32bmipn32"
  17089. - ;;
  17090. - *64-bit*)
  17091. - LD="${LD-ld} -melf64bmip"
  17092. - ;;
  17093. - esac
  17094. + case $build_os in
  17095. + msdosdjgpp*)
  17096. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  17097. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  17098. + # during glob expansion). Even if it were fixed, the result of this
  17099. + # check would be larger than it should be.
  17100. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  17101. + ;;
  17102. +
  17103. + gnu*)
  17104. + # Under GNU Hurd, this test is not required because there is
  17105. + # no limit to the length of command line arguments.
  17106. + # Libtool will interpret -1 as no limit whatsoever
  17107. + lt_cv_sys_max_cmd_len=-1;
  17108. + ;;
  17109. +
  17110. + cygwin* | mingw*)
  17111. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  17112. + # about 5 minutes as the teststring grows exponentially.
  17113. + # Worse, since 9x/ME are not pre-emptively multitasking,
  17114. + # you end up with a "frozen" computer, even though with patience
  17115. + # the test eventually succeeds (with a max line length of 256k).
  17116. + # Instead, let's just punt: use the minimum linelength reported by
  17117. + # all of the supported platforms: 8192 (on NT/2K/XP).
  17118. + lt_cv_sys_max_cmd_len=8192;
  17119. + ;;
  17120. +
  17121. + amigaos*)
  17122. + # On AmigaOS with pdksh, this test takes hours, literally.
  17123. + # So we just punt and use a minimum line length of 8192.
  17124. + lt_cv_sys_max_cmd_len=8192;
  17125. + ;;
  17126. +
  17127. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  17128. + # This has been around since 386BSD, at least. Likely further.
  17129. + if test -x /sbin/sysctl; then
  17130. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  17131. + elif test -x /usr/sbin/sysctl; then
  17132. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  17133. else
  17134. - case `/usr/bin/file conftest.$ac_objext` in
  17135. - *32-bit*)
  17136. - LD="${LD-ld} -32"
  17137. - ;;
  17138. - *N32*)
  17139. - LD="${LD-ld} -n32"
  17140. - ;;
  17141. - *64-bit*)
  17142. - LD="${LD-ld} -64"
  17143. - ;;
  17144. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  17145. + fi
  17146. + # And add a safety zone
  17147. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  17148. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  17149. + ;;
  17150. +
  17151. + interix*)
  17152. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  17153. + lt_cv_sys_max_cmd_len=196608
  17154. + ;;
  17155. +
  17156. + osf*)
  17157. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  17158. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  17159. + # nice to cause kernel panics so lets avoid the loop below.
  17160. + # First set a reasonable default.
  17161. + lt_cv_sys_max_cmd_len=16384
  17162. + #
  17163. + if test -x /sbin/sysconfig; then
  17164. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  17165. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  17166. esac
  17167. fi
  17168. - fi
  17169. - rm -rf conftest*
  17170. - ;;
  17171. + ;;
  17172. + sco3.2v5*)
  17173. + lt_cv_sys_max_cmd_len=102400
  17174. + ;;
  17175. + sysv5* | sco5v6* | sysv4.2uw2*)
  17176. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  17177. + if test -n "$kargmax"; then
  17178. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  17179. + else
  17180. + lt_cv_sys_max_cmd_len=32768
  17181. + fi
  17182. + ;;
  17183. + *)
  17184. + # If test is not a shell built-in, we'll probably end up computing a
  17185. + # maximum length that is only half of the actual maximum length, but
  17186. + # we can't tell.
  17187. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  17188. + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  17189. + = "XX$teststring") >/dev/null 2>&1 &&
  17190. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  17191. + lt_cv_sys_max_cmd_len=$new_result &&
  17192. + test $i != 17 # 1/2 MB should be enough
  17193. + do
  17194. + i=`expr $i + 1`
  17195. + teststring=$teststring$teststring
  17196. + done
  17197. + teststring=
  17198. + # Add a significant safety factor because C++ compilers can tack on massive
  17199. + # amounts of additional arguments before passing them to the linker.
  17200. + # It appears as though 1/2 is a usable value.
  17201. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  17202. + ;;
  17203. + esac
  17204. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  17205. - # Find out which ABI we are using.
  17206. - echo 'int i;' > conftest.$ac_ext
  17207. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17208. - (eval $ac_compile) 2>&5
  17209. - ac_status=$?
  17210. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17211. - (exit $ac_status); }; then
  17212. - case `/usr/bin/file conftest.o` in
  17213. - *32-bit*)
  17214. - case $host in
  17215. - x86_64-*linux*)
  17216. - LD="${LD-ld} -m elf_i386"
  17217. - ;;
  17218. - ppc64-*linux*|powerpc64-*linux*)
  17219. - LD="${LD-ld} -m elf32ppclinux"
  17220. - ;;
  17221. - s390x-*linux*)
  17222. - LD="${LD-ld} -m elf_s390"
  17223. - ;;
  17224. - sparc64-*linux*)
  17225. - LD="${LD-ld} -m elf32_sparc"
  17226. - ;;
  17227. - esac
  17228. - ;;
  17229. - *64-bit*)
  17230. - case $host in
  17231. - x86_64-*linux*)
  17232. - LD="${LD-ld} -m elf_x86_64"
  17233. - ;;
  17234. - ppc*-*linux*|powerpc*-*linux*)
  17235. - LD="${LD-ld} -m elf64ppc"
  17236. - ;;
  17237. - s390*-*linux*|s390*-*tpf*)
  17238. - LD="${LD-ld} -m elf64_s390"
  17239. - ;;
  17240. - sparc*-*linux*)
  17241. - LD="${LD-ld} -m elf64_sparc"
  17242. - ;;
  17243. - esac
  17244. - ;;
  17245. - esac
  17246. - fi
  17247. - rm -rf conftest*
  17248. - ;;
  17249. +fi
  17250. -*-*-sco3.2v5*)
  17251. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  17252. - SAVE_CFLAGS="$CFLAGS"
  17253. - CFLAGS="$CFLAGS -belf"
  17254. - { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  17255. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  17256. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  17257. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17258. +if test -n $lt_cv_sys_max_cmd_len ; then
  17259. + { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  17260. +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  17261. else
  17262. - ac_ext=c
  17263. -ac_cpp='$CPP $CPPFLAGS'
  17264. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17265. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17266. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17267. + { echo "$as_me:$LINENO: result: none" >&5
  17268. +echo "${ECHO_T}none" >&6; }
  17269. +fi
  17270. - cat >conftest.$ac_ext <<_ACEOF
  17271. -/* confdefs.h. */
  17272. -_ACEOF
  17273. -cat confdefs.h >>conftest.$ac_ext
  17274. -cat >>conftest.$ac_ext <<_ACEOF
  17275. -/* end confdefs.h. */
  17276. -int
  17277. -main ()
  17278. -{
  17279. - ;
  17280. - return 0;
  17281. -}
  17282. -_ACEOF
  17283. -rm -f conftest.$ac_objext conftest$ac_exeext
  17284. -if { (ac_try="$ac_link"
  17285. -case "(($ac_try" in
  17286. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17287. - *) ac_try_echo=$ac_try;;
  17288. -esac
  17289. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17290. - (eval "$ac_link") 2>conftest.er1
  17291. - ac_status=$?
  17292. - grep -v '^ *+' conftest.er1 >conftest.err
  17293. - rm -f conftest.er1
  17294. - cat conftest.err >&5
  17295. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17296. - (exit $ac_status); } && {
  17297. - test -z "$ac_c_werror_flag" ||
  17298. - test ! -s conftest.err
  17299. - } && test -s conftest$ac_exeext &&
  17300. - $as_test_x conftest$ac_exeext; then
  17301. - lt_cv_cc_needs_belf=yes
  17302. +
  17303. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  17304. +{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  17305. +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  17306. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  17307. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17308. else
  17309. - echo "$as_me: failed program was:" >&5
  17310. -sed 's/^/| /' conftest.$ac_ext >&5
  17311. - lt_cv_cc_needs_belf=no
  17312. -fi
  17313. +# These are sane defaults that work on at least a few old systems.
  17314. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  17315. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17316. - conftest$ac_exeext conftest.$ac_ext
  17317. - ac_ext=c
  17318. -ac_cpp='$CPP $CPPFLAGS'
  17319. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17320. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17321. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17322. +# Character class describing NM global symbol codes.
  17323. +symcode='[BCDEGRST]'
  17324. -fi
  17325. -{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  17326. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  17327. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  17328. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  17329. - CFLAGS="$SAVE_CFLAGS"
  17330. +# Regexp to match symbols that can be accessed directly from C.
  17331. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  17332. +
  17333. +# Transform an extracted symbol line into a proper C declaration
  17334. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  17335. +
  17336. +# Transform an extracted symbol line into symbol name and symbol address
  17337. +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'"
  17338. +
  17339. +# Define system-specific variables.
  17340. +case $host_os in
  17341. +aix*)
  17342. + symcode='[BCDT]'
  17343. + ;;
  17344. +cygwin* | mingw* | pw32*)
  17345. + symcode='[ABCDGISTW]'
  17346. + ;;
  17347. +hpux*) # Its linker distinguishes data from code symbols
  17348. + if test "$host_cpu" = ia64; then
  17349. + symcode='[ABCDEGRST]'
  17350. fi
  17351. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  17352. + 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'"
  17353. ;;
  17354. -sparc*-*solaris*)
  17355. - # Find out which ABI we are using.
  17356. - echo 'int i;' > conftest.$ac_ext
  17357. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17358. - (eval $ac_compile) 2>&5
  17359. - ac_status=$?
  17360. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17361. - (exit $ac_status); }; then
  17362. - case `/usr/bin/file conftest.o` in
  17363. - *64-bit*)
  17364. - case $lt_cv_prog_gnu_ld in
  17365. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  17366. - *) LD="${LD-ld} -64" ;;
  17367. - esac
  17368. - ;;
  17369. - esac
  17370. +linux*)
  17371. + if test "$host_cpu" = ia64; then
  17372. + symcode='[ABCDGIRSTW]'
  17373. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  17374. + 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'"
  17375. fi
  17376. - rm -rf conftest*
  17377. + ;;
  17378. +irix* | nonstopux*)
  17379. + symcode='[BCDEGRST]'
  17380. + ;;
  17381. +osf*)
  17382. + symcode='[BCDEGQRST]'
  17383. + ;;
  17384. +solaris*)
  17385. + symcode='[BDRT]'
  17386. + ;;
  17387. +sco3.2v5*)
  17388. + symcode='[DT]'
  17389. + ;;
  17390. +sysv4.2uw2*)
  17391. + symcode='[DT]'
  17392. + ;;
  17393. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  17394. + symcode='[ABDT]'
  17395. + ;;
  17396. +sysv4)
  17397. + symcode='[DFNSTU]'
  17398. ;;
  17399. esac
  17400. -need_locks="$enable_libtool_lock"
  17401. -
  17402. -ac_ext=c
  17403. -ac_cpp='$CPP $CPPFLAGS'
  17404. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17405. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17406. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17407. -{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  17408. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  17409. -# On Suns, sometimes $CPP names a directory.
  17410. -if test -n "$CPP" && test -d "$CPP"; then
  17411. - CPP=
  17412. -fi
  17413. -if test -z "$CPP"; then
  17414. - if test "${ac_cv_prog_CPP+set}" = set; then
  17415. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17416. -else
  17417. - # Double quotes because CPP needs to be expanded
  17418. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  17419. - do
  17420. - ac_preproc_ok=false
  17421. -for ac_c_preproc_warn_flag in '' yes
  17422. -do
  17423. - # Use a header file that comes with gcc, so configuring glibc
  17424. - # with a fresh cross-compiler works.
  17425. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17426. - # <limits.h> exists even on freestanding compilers.
  17427. - # On the NeXT, cc -E runs the code through the compiler's parser,
  17428. - # not just through cpp. "Syntax error" is here to catch this case.
  17429. - cat >conftest.$ac_ext <<_ACEOF
  17430. -/* confdefs.h. */
  17431. -_ACEOF
  17432. -cat confdefs.h >>conftest.$ac_ext
  17433. -cat >>conftest.$ac_ext <<_ACEOF
  17434. -/* end confdefs.h. */
  17435. -#ifdef __STDC__
  17436. -# include <limits.h>
  17437. -#else
  17438. -# include <assert.h>
  17439. -#endif
  17440. - Syntax error
  17441. -_ACEOF
  17442. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17443. -case "(($ac_try" in
  17444. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17445. - *) ac_try_echo=$ac_try;;
  17446. -esac
  17447. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17448. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17449. - ac_status=$?
  17450. - grep -v '^ *+' conftest.er1 >conftest.err
  17451. - rm -f conftest.er1
  17452. - cat conftest.err >&5
  17453. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17454. - (exit $ac_status); } >/dev/null && {
  17455. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17456. - test ! -s conftest.err
  17457. - }; then
  17458. - :
  17459. -else
  17460. - echo "$as_me: failed program was:" >&5
  17461. -sed 's/^/| /' conftest.$ac_ext >&5
  17462. -
  17463. - # Broken: fails on valid input.
  17464. -continue
  17465. -fi
  17466. -
  17467. -rm -f conftest.err conftest.$ac_ext
  17468. +# Handle CRLF in mingw tool chain
  17469. +opt_cr=
  17470. +case $build_os in
  17471. +mingw*)
  17472. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  17473. + ;;
  17474. +esac
  17475. - # OK, works on sane cases. Now check whether nonexistent headers
  17476. - # can be detected and how.
  17477. - cat >conftest.$ac_ext <<_ACEOF
  17478. -/* confdefs.h. */
  17479. -_ACEOF
  17480. -cat confdefs.h >>conftest.$ac_ext
  17481. -cat >>conftest.$ac_ext <<_ACEOF
  17482. -/* end confdefs.h. */
  17483. -#include <ac_nonexistent.h>
  17484. -_ACEOF
  17485. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17486. -case "(($ac_try" in
  17487. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17488. - *) ac_try_echo=$ac_try;;
  17489. +# If we're using GNU nm, then use its standard symbol codes.
  17490. +case `$NM -V 2>&1` in
  17491. +*GNU* | *'with BFD'*)
  17492. + symcode='[ABCDGIRSTW]' ;;
  17493. esac
  17494. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17495. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17496. - ac_status=$?
  17497. - grep -v '^ *+' conftest.er1 >conftest.err
  17498. - rm -f conftest.er1
  17499. - cat conftest.err >&5
  17500. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17501. - (exit $ac_status); } >/dev/null && {
  17502. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17503. - test ! -s conftest.err
  17504. - }; then
  17505. - # Broken: success on invalid input.
  17506. -continue
  17507. -else
  17508. - echo "$as_me: failed program was:" >&5
  17509. -sed 's/^/| /' conftest.$ac_ext >&5
  17510. - # Passes both tests.
  17511. -ac_preproc_ok=:
  17512. -break
  17513. -fi
  17514. +# Try without a prefix undercore, then with it.
  17515. +for ac_symprfx in "" "_"; do
  17516. -rm -f conftest.err conftest.$ac_ext
  17517. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  17518. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  17519. -done
  17520. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17521. -rm -f conftest.err conftest.$ac_ext
  17522. -if $ac_preproc_ok; then
  17523. - break
  17524. -fi
  17525. + # Write the raw and C identifiers.
  17526. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  17527. - done
  17528. - ac_cv_prog_CPP=$CPP
  17529. + # Check to see that the pipe works correctly.
  17530. + pipe_works=no
  17531. -fi
  17532. - CPP=$ac_cv_prog_CPP
  17533. -else
  17534. - ac_cv_prog_CPP=$CPP
  17535. -fi
  17536. -{ echo "$as_me:$LINENO: result: $CPP" >&5
  17537. -echo "${ECHO_T}$CPP" >&6; }
  17538. -ac_preproc_ok=false
  17539. -for ac_c_preproc_warn_flag in '' yes
  17540. -do
  17541. - # Use a header file that comes with gcc, so configuring glibc
  17542. - # with a fresh cross-compiler works.
  17543. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17544. - # <limits.h> exists even on freestanding compilers.
  17545. - # On the NeXT, cc -E runs the code through the compiler's parser,
  17546. - # not just through cpp. "Syntax error" is here to catch this case.
  17547. - cat >conftest.$ac_ext <<_ACEOF
  17548. -/* confdefs.h. */
  17549. -_ACEOF
  17550. -cat confdefs.h >>conftest.$ac_ext
  17551. -cat >>conftest.$ac_ext <<_ACEOF
  17552. -/* end confdefs.h. */
  17553. -#ifdef __STDC__
  17554. -# include <limits.h>
  17555. -#else
  17556. -# include <assert.h>
  17557. + rm -f conftest*
  17558. + cat > conftest.$ac_ext <<EOF
  17559. +#ifdef __cplusplus
  17560. +extern "C" {
  17561. #endif
  17562. - Syntax error
  17563. -_ACEOF
  17564. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17565. -case "(($ac_try" in
  17566. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17567. - *) ac_try_echo=$ac_try;;
  17568. -esac
  17569. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17570. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17571. +char nm_test_var;
  17572. +void nm_test_func(){}
  17573. +#ifdef __cplusplus
  17574. +}
  17575. +#endif
  17576. +int main(){nm_test_var='a';nm_test_func();return(0);}
  17577. +EOF
  17578. +
  17579. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  17580. + (eval $ac_compile) 2>&5
  17581. ac_status=$?
  17582. - grep -v '^ *+' conftest.er1 >conftest.err
  17583. - rm -f conftest.er1
  17584. - cat conftest.err >&5
  17585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17586. - (exit $ac_status); } >/dev/null && {
  17587. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17588. - test ! -s conftest.err
  17589. - }; then
  17590. - :
  17591. -else
  17592. - echo "$as_me: failed program was:" >&5
  17593. -sed 's/^/| /' conftest.$ac_ext >&5
  17594. -
  17595. - # Broken: fails on valid input.
  17596. -continue
  17597. -fi
  17598. -
  17599. -rm -f conftest.err conftest.$ac_ext
  17600. -
  17601. - # OK, works on sane cases. Now check whether nonexistent headers
  17602. - # can be detected and how.
  17603. - cat >conftest.$ac_ext <<_ACEOF
  17604. -/* confdefs.h. */
  17605. -_ACEOF
  17606. -cat confdefs.h >>conftest.$ac_ext
  17607. -cat >>conftest.$ac_ext <<_ACEOF
  17608. -/* end confdefs.h. */
  17609. -#include <ac_nonexistent.h>
  17610. -_ACEOF
  17611. -if { (ac_try="$ac_cpp conftest.$ac_ext"
  17612. -case "(($ac_try" in
  17613. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17614. - *) ac_try_echo=$ac_try;;
  17615. -esac
  17616. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17617. - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17618. + (exit $ac_status); }; then
  17619. + # Now try to grab the symbols.
  17620. + nlist=conftest.nm
  17621. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  17622. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  17623. ac_status=$?
  17624. - grep -v '^ *+' conftest.er1 >conftest.err
  17625. - rm -f conftest.er1
  17626. - cat conftest.err >&5
  17627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17628. - (exit $ac_status); } >/dev/null && {
  17629. - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17630. - test ! -s conftest.err
  17631. - }; then
  17632. - # Broken: success on invalid input.
  17633. -continue
  17634. -else
  17635. - echo "$as_me: failed program was:" >&5
  17636. -sed 's/^/| /' conftest.$ac_ext >&5
  17637. -
  17638. - # Passes both tests.
  17639. -ac_preproc_ok=:
  17640. -break
  17641. -fi
  17642. + (exit $ac_status); } && test -s "$nlist"; then
  17643. + # Try sorting and uniquifying the output.
  17644. + if sort "$nlist" | uniq > "$nlist"T; then
  17645. + mv -f "$nlist"T "$nlist"
  17646. + else
  17647. + rm -f "$nlist"T
  17648. + fi
  17649. -rm -f conftest.err conftest.$ac_ext
  17650. -
  17651. -done
  17652. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  17653. -rm -f conftest.err conftest.$ac_ext
  17654. -if $ac_preproc_ok; then
  17655. - :
  17656. -else
  17657. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  17658. -See \`config.log' for more details." >&5
  17659. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  17660. -See \`config.log' for more details." >&2;}
  17661. - { (exit 1); exit 1; }; }
  17662. -fi
  17663. -
  17664. -ac_ext=c
  17665. -ac_cpp='$CPP $CPPFLAGS'
  17666. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17667. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17668. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17669. + # Make sure that we snagged all the symbols we need.
  17670. + if grep ' nm_test_var$' "$nlist" >/dev/null; then
  17671. + if grep ' nm_test_func$' "$nlist" >/dev/null; then
  17672. + cat <<EOF > conftest.$ac_ext
  17673. +#ifdef __cplusplus
  17674. +extern "C" {
  17675. +#endif
  17676. +EOF
  17677. + # Now generate the symbol file.
  17678. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  17679. -{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  17680. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  17681. -if test "${ac_cv_header_stdc+set}" = set; then
  17682. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17683. -else
  17684. - cat >conftest.$ac_ext <<_ACEOF
  17685. -/* confdefs.h. */
  17686. -_ACEOF
  17687. -cat confdefs.h >>conftest.$ac_ext
  17688. -cat >>conftest.$ac_ext <<_ACEOF
  17689. -/* end confdefs.h. */
  17690. -#include <stdlib.h>
  17691. -#include <stdarg.h>
  17692. -#include <string.h>
  17693. -#include <float.h>
  17694. + cat <<EOF >> conftest.$ac_ext
  17695. +#if defined (__STDC__) && __STDC__
  17696. +# define lt_ptr_t void *
  17697. +#else
  17698. +# define lt_ptr_t char *
  17699. +# define const
  17700. +#endif
  17701. -int
  17702. -main ()
  17703. +/* The mapping between symbol names and symbols. */
  17704. +const struct {
  17705. + const char *name;
  17706. + lt_ptr_t address;
  17707. +}
  17708. +lt_preloaded_symbols[] =
  17709. {
  17710. +EOF
  17711. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  17712. + cat <<\EOF >> conftest.$ac_ext
  17713. + {0, (lt_ptr_t) 0}
  17714. +};
  17715. - ;
  17716. - return 0;
  17717. +#ifdef __cplusplus
  17718. }
  17719. -_ACEOF
  17720. -rm -f conftest.$ac_objext
  17721. -if { (ac_try="$ac_compile"
  17722. -case "(($ac_try" in
  17723. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17724. - *) ac_try_echo=$ac_try;;
  17725. -esac
  17726. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17727. - (eval "$ac_compile") 2>conftest.er1
  17728. +#endif
  17729. +EOF
  17730. + # Now try linking the two files.
  17731. + mv conftest.$ac_objext conftstm.$ac_objext
  17732. + lt_save_LIBS="$LIBS"
  17733. + lt_save_CFLAGS="$CFLAGS"
  17734. + LIBS="conftstm.$ac_objext"
  17735. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  17736. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17737. + (eval $ac_link) 2>&5
  17738. ac_status=$?
  17739. - grep -v '^ *+' conftest.er1 >conftest.err
  17740. - rm -f conftest.er1
  17741. - cat conftest.err >&5
  17742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17743. - (exit $ac_status); } && {
  17744. - test -z "$ac_c_werror_flag" ||
  17745. - test ! -s conftest.err
  17746. - } && test -s conftest.$ac_objext; then
  17747. - ac_cv_header_stdc=yes
  17748. -else
  17749. - echo "$as_me: failed program was:" >&5
  17750. -sed 's/^/| /' conftest.$ac_ext >&5
  17751. -
  17752. - ac_cv_header_stdc=no
  17753. -fi
  17754. -
  17755. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17756. + (exit $ac_status); } && test -s conftest${ac_exeext}; then
  17757. + pipe_works=yes
  17758. + fi
  17759. + LIBS="$lt_save_LIBS"
  17760. + CFLAGS="$lt_save_CFLAGS"
  17761. + else
  17762. + echo "cannot find nm_test_func in $nlist" >&5
  17763. + fi
  17764. + else
  17765. + echo "cannot find nm_test_var in $nlist" >&5
  17766. + fi
  17767. + else
  17768. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  17769. + fi
  17770. + else
  17771. + echo "$progname: failed program was:" >&5
  17772. + cat conftest.$ac_ext >&5
  17773. + fi
  17774. + rm -f conftest* conftst*
  17775. -if test $ac_cv_header_stdc = yes; then
  17776. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  17777. - cat >conftest.$ac_ext <<_ACEOF
  17778. -/* confdefs.h. */
  17779. -_ACEOF
  17780. -cat confdefs.h >>conftest.$ac_ext
  17781. -cat >>conftest.$ac_ext <<_ACEOF
  17782. -/* end confdefs.h. */
  17783. -#include <string.h>
  17784. + # Do not use the global_symbol_pipe unless it works.
  17785. + if test "$pipe_works" = yes; then
  17786. + break
  17787. + else
  17788. + lt_cv_sys_global_symbol_pipe=
  17789. + fi
  17790. +done
  17791. -_ACEOF
  17792. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17793. - $EGREP "memchr" >/dev/null 2>&1; then
  17794. - :
  17795. -else
  17796. - ac_cv_header_stdc=no
  17797. fi
  17798. -rm -f conftest*
  17799. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  17800. + lt_cv_sys_global_symbol_to_cdecl=
  17801. fi
  17802. -
  17803. -if test $ac_cv_header_stdc = yes; then
  17804. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  17805. - cat >conftest.$ac_ext <<_ACEOF
  17806. -/* confdefs.h. */
  17807. -_ACEOF
  17808. -cat confdefs.h >>conftest.$ac_ext
  17809. -cat >>conftest.$ac_ext <<_ACEOF
  17810. -/* end confdefs.h. */
  17811. -#include <stdlib.h>
  17812. -
  17813. -_ACEOF
  17814. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17815. - $EGREP "free" >/dev/null 2>&1; then
  17816. - :
  17817. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  17818. + { echo "$as_me:$LINENO: result: failed" >&5
  17819. +echo "${ECHO_T}failed" >&6; }
  17820. else
  17821. - ac_cv_header_stdc=no
  17822. -fi
  17823. -rm -f conftest*
  17824. -
  17825. + { echo "$as_me:$LINENO: result: ok" >&5
  17826. +echo "${ECHO_T}ok" >&6; }
  17827. fi
  17828. -if test $ac_cv_header_stdc = yes; then
  17829. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  17830. - if test "$cross_compiling" = yes; then
  17831. - :
  17832. +{ echo "$as_me:$LINENO: checking for objdir" >&5
  17833. +echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  17834. +if test "${lt_cv_objdir+set}" = set; then
  17835. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17836. else
  17837. - cat >conftest.$ac_ext <<_ACEOF
  17838. -/* confdefs.h. */
  17839. -_ACEOF
  17840. -cat confdefs.h >>conftest.$ac_ext
  17841. -cat >>conftest.$ac_ext <<_ACEOF
  17842. -/* end confdefs.h. */
  17843. -#include <ctype.h>
  17844. -#include <stdlib.h>
  17845. -#if ((' ' & 0x0FF) == 0x020)
  17846. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  17847. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  17848. -#else
  17849. -# define ISLOWER(c) \
  17850. - (('a' <= (c) && (c) <= 'i') \
  17851. - || ('j' <= (c) && (c) <= 'r') \
  17852. - || ('s' <= (c) && (c) <= 'z'))
  17853. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  17854. -#endif
  17855. -
  17856. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  17857. -int
  17858. -main ()
  17859. -{
  17860. - int i;
  17861. - for (i = 0; i < 256; i++)
  17862. - if (XOR (islower (i), ISLOWER (i))
  17863. - || toupper (i) != TOUPPER (i))
  17864. - return 2;
  17865. - return 0;
  17866. -}
  17867. -_ACEOF
  17868. -rm -f conftest$ac_exeext
  17869. -if { (ac_try="$ac_link"
  17870. -case "(($ac_try" in
  17871. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17872. - *) ac_try_echo=$ac_try;;
  17873. -esac
  17874. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17875. - (eval "$ac_link") 2>&5
  17876. - ac_status=$?
  17877. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17878. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17879. - { (case "(($ac_try" in
  17880. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17881. - *) ac_try_echo=$ac_try;;
  17882. -esac
  17883. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17884. - (eval "$ac_try") 2>&5
  17885. - ac_status=$?
  17886. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17887. - (exit $ac_status); }; }; then
  17888. - :
  17889. + rm -f .libs 2>/dev/null
  17890. +mkdir .libs 2>/dev/null
  17891. +if test -d .libs; then
  17892. + lt_cv_objdir=.libs
  17893. else
  17894. - echo "$as_me: program exited with status $ac_status" >&5
  17895. -echo "$as_me: failed program was:" >&5
  17896. -sed 's/^/| /' conftest.$ac_ext >&5
  17897. -
  17898. -( exit $ac_status )
  17899. -ac_cv_header_stdc=no
  17900. -fi
  17901. -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17902. -fi
  17903. -
  17904. -
  17905. + # MS-DOS does not allow filenames that begin with a dot.
  17906. + lt_cv_objdir=_libs
  17907. fi
  17908. +rmdir .libs 2>/dev/null
  17909. fi
  17910. -{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  17911. -echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  17912. -if test $ac_cv_header_stdc = yes; then
  17913. +{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  17914. +echo "${ECHO_T}$lt_cv_objdir" >&6; }
  17915. +objdir=$lt_cv_objdir
  17916. -cat >>confdefs.h <<\_ACEOF
  17917. -#define STDC_HEADERS 1
  17918. -_ACEOF
  17919. -fi
  17920. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  17921. +case $host_os in
  17922. +aix3*)
  17923. + # AIX sometimes has problems with the GCC collect2 program. For some
  17924. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  17925. + # vanish in a puff of smoke.
  17926. + if test "X${COLLECT_NAMES+set}" != Xset; then
  17927. + COLLECT_NAMES=
  17928. + export COLLECT_NAMES
  17929. + fi
  17930. + ;;
  17931. +esac
  17932. +# Sed substitution that helps us do robust quoting. It backslashifies
  17933. +# metacharacters that are still active within double-quoted strings.
  17934. +Xsed='sed -e 1s/^X//'
  17935. +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  17936. +# Same as above, but do not quote variable references.
  17937. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  17938. +# Sed substitution to delay expansion of an escaped shell variable in a
  17939. +# double_quote_subst'ed string.
  17940. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  17941. +# Sed substitution to avoid accidental globbing in evaled expressions
  17942. +no_glob_subst='s/\*/\\\*/g'
  17943. +# Constants:
  17944. +rm="rm -f"
  17945. +# Global variables:
  17946. +default_ofile=libtool
  17947. +can_build_shared=yes
  17948. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  17949. - inttypes.h stdint.h unistd.h
  17950. -do
  17951. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17952. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  17953. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17954. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17955. +# All known linkers require a `.a' archive for static linking (except MSVC,
  17956. +# which needs '.lib').
  17957. +libext=a
  17958. +ltmain="$ac_aux_dir/ltmain.sh"
  17959. +ofile="$default_ofile"
  17960. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  17961. +
  17962. +if test -n "$ac_tool_prefix"; then
  17963. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  17964. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  17965. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  17966. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  17967. +if test "${ac_cv_prog_AR+set}" = set; then
  17968. echo $ECHO_N "(cached) $ECHO_C" >&6
  17969. else
  17970. - cat >conftest.$ac_ext <<_ACEOF
  17971. -/* confdefs.h. */
  17972. -_ACEOF
  17973. -cat confdefs.h >>conftest.$ac_ext
  17974. -cat >>conftest.$ac_ext <<_ACEOF
  17975. -/* end confdefs.h. */
  17976. -$ac_includes_default
  17977. -
  17978. -#include <$ac_header>
  17979. -_ACEOF
  17980. -rm -f conftest.$ac_objext
  17981. -if { (ac_try="$ac_compile"
  17982. -case "(($ac_try" in
  17983. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17984. - *) ac_try_echo=$ac_try;;
  17985. -esac
  17986. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17987. - (eval "$ac_compile") 2>conftest.er1
  17988. - ac_status=$?
  17989. - grep -v '^ *+' conftest.er1 >conftest.err
  17990. - rm -f conftest.er1
  17991. - cat conftest.err >&5
  17992. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17993. - (exit $ac_status); } && {
  17994. - test -z "$ac_c_werror_flag" ||
  17995. - test ! -s conftest.err
  17996. - } && test -s conftest.$ac_objext; then
  17997. - eval "$as_ac_Header=yes"
  17998. + if test -n "$AR"; then
  17999. + ac_cv_prog_AR="$AR" # Let the user override the test.
  18000. else
  18001. - echo "$as_me: failed program was:" >&5
  18002. -sed 's/^/| /' conftest.$ac_ext >&5
  18003. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18004. +for as_dir in $PATH
  18005. +do
  18006. + IFS=$as_save_IFS
  18007. + test -z "$as_dir" && as_dir=.
  18008. + for ac_exec_ext in '' $ac_executable_extensions; do
  18009. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18010. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  18011. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18012. + break 2
  18013. + fi
  18014. +done
  18015. +done
  18016. +IFS=$as_save_IFS
  18017. - eval "$as_ac_Header=no"
  18018. fi
  18019. -
  18020. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18021. fi
  18022. -ac_res=`eval echo '${'$as_ac_Header'}'`
  18023. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  18024. -echo "${ECHO_T}$ac_res" >&6; }
  18025. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18026. - cat >>confdefs.h <<_ACEOF
  18027. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18028. -_ACEOF
  18029. -
  18030. +AR=$ac_cv_prog_AR
  18031. +if test -n "$AR"; then
  18032. + { echo "$as_me:$LINENO: result: $AR" >&5
  18033. +echo "${ECHO_T}$AR" >&6; }
  18034. +else
  18035. + { echo "$as_me:$LINENO: result: no" >&5
  18036. +echo "${ECHO_T}no" >&6; }
  18037. fi
  18038. -done
  18039. -
  18040. -
  18041. -for ac_header in dlfcn.h
  18042. -do
  18043. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18044. -{ echo "$as_me:$LINENO: checking for $ac_header" >&5
  18045. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  18046. -if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18047. +fi
  18048. +if test -z "$ac_cv_prog_AR"; then
  18049. + ac_ct_AR=$AR
  18050. + # Extract the first word of "ar", so it can be a program name with args.
  18051. +set dummy ar; ac_word=$2
  18052. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18053. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18054. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  18055. echo $ECHO_N "(cached) $ECHO_C" >&6
  18056. else
  18057. - cat >conftest.$ac_ext <<_ACEOF
  18058. -/* confdefs.h. */
  18059. -_ACEOF
  18060. -cat confdefs.h >>conftest.$ac_ext
  18061. -cat >>conftest.$ac_ext <<_ACEOF
  18062. -/* end confdefs.h. */
  18063. -$ac_includes_default
  18064. -
  18065. -#include <$ac_header>
  18066. -_ACEOF
  18067. -rm -f conftest.$ac_objext
  18068. -if { (ac_try="$ac_compile"
  18069. -case "(($ac_try" in
  18070. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18071. - *) ac_try_echo=$ac_try;;
  18072. -esac
  18073. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18074. - (eval "$ac_compile") 2>conftest.er1
  18075. - ac_status=$?
  18076. - grep -v '^ *+' conftest.er1 >conftest.err
  18077. - rm -f conftest.er1
  18078. - cat conftest.err >&5
  18079. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18080. - (exit $ac_status); } && {
  18081. - test -z "$ac_c_werror_flag" ||
  18082. - test ! -s conftest.err
  18083. - } && test -s conftest.$ac_objext; then
  18084. - eval "$as_ac_Header=yes"
  18085. + if test -n "$ac_ct_AR"; then
  18086. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  18087. else
  18088. - echo "$as_me: failed program was:" >&5
  18089. -sed 's/^/| /' conftest.$ac_ext >&5
  18090. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18091. +for as_dir in $PATH
  18092. +do
  18093. + IFS=$as_save_IFS
  18094. + test -z "$as_dir" && as_dir=.
  18095. + for ac_exec_ext in '' $ac_executable_extensions; do
  18096. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18097. + ac_cv_prog_ac_ct_AR="ar"
  18098. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18099. + break 2
  18100. + fi
  18101. +done
  18102. +done
  18103. +IFS=$as_save_IFS
  18104. - eval "$as_ac_Header=no"
  18105. fi
  18106. -
  18107. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18108. fi
  18109. -ac_res=`eval echo '${'$as_ac_Header'}'`
  18110. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  18111. -echo "${ECHO_T}$ac_res" >&6; }
  18112. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18113. - cat >>confdefs.h <<_ACEOF
  18114. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18115. -_ACEOF
  18116. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  18117. +if test -n "$ac_ct_AR"; then
  18118. + { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  18119. +echo "${ECHO_T}$ac_ct_AR" >&6; }
  18120. +else
  18121. + { echo "$as_me:$LINENO: result: no" >&5
  18122. +echo "${ECHO_T}no" >&6; }
  18123. +fi
  18124. + if test "x$ac_ct_AR" = x; then
  18125. + AR="false"
  18126. + else
  18127. + case $cross_compiling:$ac_tool_warned in
  18128. +yes:)
  18129. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18130. +whose name does not start with the host triplet. If you think this
  18131. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  18132. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18133. +whose name does not start with the host triplet. If you think this
  18134. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18135. +ac_tool_warned=yes ;;
  18136. +esac
  18137. + AR=$ac_ct_AR
  18138. + fi
  18139. +else
  18140. + AR="$ac_cv_prog_AR"
  18141. fi
  18142. +if test -n "$ac_tool_prefix"; then
  18143. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  18144. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  18145. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18146. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18147. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  18148. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18149. +else
  18150. + if test -n "$RANLIB"; then
  18151. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  18152. +else
  18153. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18154. +for as_dir in $PATH
  18155. +do
  18156. + IFS=$as_save_IFS
  18157. + test -z "$as_dir" && as_dir=.
  18158. + for ac_exec_ext in '' $ac_executable_extensions; do
  18159. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18160. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  18161. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18162. + break 2
  18163. + fi
  18164. done
  18165. +done
  18166. +IFS=$as_save_IFS
  18167. +fi
  18168. +fi
  18169. +RANLIB=$ac_cv_prog_RANLIB
  18170. +if test -n "$RANLIB"; then
  18171. + { echo "$as_me:$LINENO: result: $RANLIB" >&5
  18172. +echo "${ECHO_T}$RANLIB" >&6; }
  18173. +else
  18174. + { echo "$as_me:$LINENO: result: no" >&5
  18175. +echo "${ECHO_T}no" >&6; }
  18176. +fi
  18177. -# This can be used to rebuild libtool when needed
  18178. -LIBTOOL_DEPS="$ltmain"
  18179. -
  18180. -# Always use our own libtool.
  18181. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  18182. -
  18183. -
  18184. -
  18185. -
  18186. -
  18187. -
  18188. -
  18189. -
  18190. -
  18191. -
  18192. -
  18193. -
  18194. -
  18195. -
  18196. -
  18197. -
  18198. -
  18199. -
  18200. -
  18201. -
  18202. -
  18203. -
  18204. -
  18205. -
  18206. -
  18207. -test -z "$LN_S" && LN_S="ln -s"
  18208. -
  18209. -
  18210. -
  18211. -
  18212. -
  18213. -
  18214. -
  18215. -
  18216. -
  18217. -
  18218. -
  18219. -
  18220. +fi
  18221. +if test -z "$ac_cv_prog_RANLIB"; then
  18222. + ac_ct_RANLIB=$RANLIB
  18223. + # Extract the first word of "ranlib", so it can be a program name with args.
  18224. +set dummy ranlib; ac_word=$2
  18225. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18226. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18227. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  18228. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18229. +else
  18230. + if test -n "$ac_ct_RANLIB"; then
  18231. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  18232. +else
  18233. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18234. +for as_dir in $PATH
  18235. +do
  18236. + IFS=$as_save_IFS
  18237. + test -z "$as_dir" && as_dir=.
  18238. + for ac_exec_ext in '' $ac_executable_extensions; do
  18239. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18240. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  18241. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18242. + break 2
  18243. + fi
  18244. +done
  18245. +done
  18246. +IFS=$as_save_IFS
  18247. +fi
  18248. +fi
  18249. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  18250. +if test -n "$ac_ct_RANLIB"; then
  18251. + { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  18252. +echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  18253. +else
  18254. + { echo "$as_me:$LINENO: result: no" >&5
  18255. +echo "${ECHO_T}no" >&6; }
  18256. +fi
  18257. -if test -n "${ZSH_VERSION+set}" ; then
  18258. - setopt NO_GLOB_SUBST
  18259. + if test "x$ac_ct_RANLIB" = x; then
  18260. + RANLIB=":"
  18261. + else
  18262. + case $cross_compiling:$ac_tool_warned in
  18263. +yes:)
  18264. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18265. +whose name does not start with the host triplet. If you think this
  18266. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  18267. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18268. +whose name does not start with the host triplet. If you think this
  18269. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18270. +ac_tool_warned=yes ;;
  18271. +esac
  18272. + RANLIB=$ac_ct_RANLIB
  18273. + fi
  18274. +else
  18275. + RANLIB="$ac_cv_prog_RANLIB"
  18276. fi
  18277. -{ echo "$as_me:$LINENO: checking for objdir" >&5
  18278. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  18279. -if test "${lt_cv_objdir+set}" = set; then
  18280. +if test -n "$ac_tool_prefix"; then
  18281. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18282. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  18283. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18284. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18285. +if test "${ac_cv_prog_STRIP+set}" = set; then
  18286. echo $ECHO_N "(cached) $ECHO_C" >&6
  18287. else
  18288. - rm -f .libs 2>/dev/null
  18289. -mkdir .libs 2>/dev/null
  18290. -if test -d .libs; then
  18291. - lt_cv_objdir=.libs
  18292. + if test -n "$STRIP"; then
  18293. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18294. else
  18295. - # MS-DOS does not allow filenames that begin with a dot.
  18296. - lt_cv_objdir=_libs
  18297. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18298. +for as_dir in $PATH
  18299. +do
  18300. + IFS=$as_save_IFS
  18301. + test -z "$as_dir" && as_dir=.
  18302. + for ac_exec_ext in '' $ac_executable_extensions; do
  18303. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18304. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18305. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18306. + break 2
  18307. + fi
  18308. +done
  18309. +done
  18310. +IFS=$as_save_IFS
  18311. +
  18312. fi
  18313. -rmdir .libs 2>/dev/null
  18314. fi
  18315. -{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  18316. -echo "${ECHO_T}$lt_cv_objdir" >&6; }
  18317. -objdir=$lt_cv_objdir
  18318. -
  18319. -
  18320. -
  18321. -
  18322. -
  18323. -cat >>confdefs.h <<_ACEOF
  18324. -#define LT_OBJDIR "$lt_cv_objdir/"
  18325. -_ACEOF
  18326. -
  18327. -
  18328. -
  18329. -
  18330. -
  18331. -
  18332. -
  18333. -
  18334. -
  18335. -
  18336. -
  18337. -
  18338. -
  18339. -
  18340. -
  18341. +STRIP=$ac_cv_prog_STRIP
  18342. +if test -n "$STRIP"; then
  18343. + { echo "$as_me:$LINENO: result: $STRIP" >&5
  18344. +echo "${ECHO_T}$STRIP" >&6; }
  18345. +else
  18346. + { echo "$as_me:$LINENO: result: no" >&5
  18347. +echo "${ECHO_T}no" >&6; }
  18348. +fi
  18349. -case $host_os in
  18350. -aix3*)
  18351. - # AIX sometimes has problems with the GCC collect2 program. For some
  18352. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  18353. - # vanish in a puff of smoke.
  18354. - if test "X${COLLECT_NAMES+set}" != Xset; then
  18355. - COLLECT_NAMES=
  18356. - export COLLECT_NAMES
  18357. +fi
  18358. +if test -z "$ac_cv_prog_STRIP"; then
  18359. + ac_ct_STRIP=$STRIP
  18360. + # Extract the first word of "strip", so it can be a program name with args.
  18361. +set dummy strip; ac_word=$2
  18362. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  18363. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  18364. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  18365. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18366. +else
  18367. + if test -n "$ac_ct_STRIP"; then
  18368. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18369. +else
  18370. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18371. +for as_dir in $PATH
  18372. +do
  18373. + IFS=$as_save_IFS
  18374. + test -z "$as_dir" && as_dir=.
  18375. + for ac_exec_ext in '' $ac_executable_extensions; do
  18376. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18377. + ac_cv_prog_ac_ct_STRIP="strip"
  18378. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18379. + break 2
  18380. fi
  18381. - ;;
  18382. -esac
  18383. -
  18384. -# Sed substitution that helps us do robust quoting. It backslashifies
  18385. -# metacharacters that are still active within double-quoted strings.
  18386. -Xsed='sed -e 1s/^X//'
  18387. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  18388. -
  18389. -# Same as above, but do not quote variable references.
  18390. -double_quote_subst='s/\(["`\\]\)/\\\1/g'
  18391. -
  18392. -# Sed substitution to delay expansion of an escaped shell variable in a
  18393. -# double_quote_subst'ed string.
  18394. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  18395. -
  18396. -# Sed substitution to delay expansion of an escaped single quote.
  18397. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  18398. -
  18399. -# Sed substitution to avoid accidental globbing in evaled expressions
  18400. -no_glob_subst='s/\*/\\\*/g'
  18401. +done
  18402. +done
  18403. +IFS=$as_save_IFS
  18404. -# Global variables:
  18405. -ofile=libtool
  18406. -can_build_shared=yes
  18407. +fi
  18408. +fi
  18409. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18410. +if test -n "$ac_ct_STRIP"; then
  18411. + { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  18412. +echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  18413. +else
  18414. + { echo "$as_me:$LINENO: result: no" >&5
  18415. +echo "${ECHO_T}no" >&6; }
  18416. +fi
  18417. -# All known linkers require a `.a' archive for static linking (except MSVC,
  18418. -# which needs '.lib').
  18419. -libext=a
  18420. + if test "x$ac_ct_STRIP" = x; then
  18421. + STRIP=":"
  18422. + else
  18423. + case $cross_compiling:$ac_tool_warned in
  18424. +yes:)
  18425. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  18426. +whose name does not start with the host triplet. If you think this
  18427. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  18428. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  18429. +whose name does not start with the host triplet. If you think this
  18430. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  18431. +ac_tool_warned=yes ;;
  18432. +esac
  18433. + STRIP=$ac_ct_STRIP
  18434. + fi
  18435. +else
  18436. + STRIP="$ac_cv_prog_STRIP"
  18437. +fi
  18438. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  18439. old_CC="$CC"
  18440. old_CFLAGS="$CFLAGS"
  18441. # Set sane defaults for various variables
  18442. +test -z "$AR" && AR=ar
  18443. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  18444. +test -z "$AS" && AS=as
  18445. test -z "$CC" && CC=cc
  18446. test -z "$LTCC" && LTCC=$CC
  18447. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  18448. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  18449. test -z "$LD" && LD=ld
  18450. +test -z "$LN_S" && LN_S="ln -s"
  18451. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  18452. +test -z "$NM" && NM=nm
  18453. +test -z "$SED" && SED=sed
  18454. +test -z "$OBJDUMP" && OBJDUMP=objdump
  18455. +test -z "$RANLIB" && RANLIB=:
  18456. +test -z "$STRIP" && STRIP=:
  18457. test -z "$ac_objext" && ac_objext=o
  18458. +# Determine commands to create old-style static archives.
  18459. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  18460. +old_postinstall_cmds='chmod 644 $oldlib'
  18461. +old_postuninstall_cmds=
  18462. +
  18463. +if test -n "$RANLIB"; then
  18464. + case $host_os in
  18465. + openbsd*)
  18466. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  18467. + ;;
  18468. + *)
  18469. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  18470. + ;;
  18471. + esac
  18472. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  18473. +fi
  18474. +
  18475. for cc_temp in $compiler""; do
  18476. case $cc_temp in
  18477. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  18478. @@ -6320,11 +6862,10 @@
  18479. *) break;;
  18480. esac
  18481. done
  18482. -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  18483. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  18484. # Only perform the check for file, if the check method requires it
  18485. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  18486. case $deplibs_check_method in
  18487. file_magic*)
  18488. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  18489. @@ -6355,7 +6896,7 @@
  18490. $EGREP "$file_magic_regex" > /dev/null; then
  18491. :
  18492. else
  18493. - cat <<_LT_EOF 1>&2
  18494. + cat <<EOF 1>&2
  18495. *** Warning: the command libtool uses to detect shared libraries,
  18496. *** $file_magic_cmd, produces output that libtool cannot recognize.
  18497. @@ -6366,7 +6907,7 @@
  18498. *** may want to report the problem to your system manager and/or to
  18499. *** bug-libtool@gnu.org
  18500. -_LT_EOF
  18501. +EOF
  18502. fi ;;
  18503. esac
  18504. fi
  18505. @@ -6388,10 +6929,6 @@
  18506. echo "${ECHO_T}no" >&6; }
  18507. fi
  18508. -
  18509. -
  18510. -
  18511. -
  18512. if test -z "$lt_cv_path_MAGIC_CMD"; then
  18513. if test -n "$ac_tool_prefix"; then
  18514. { echo "$as_me:$LINENO: checking for file" >&5
  18515. @@ -6421,7 +6958,7 @@
  18516. $EGREP "$file_magic_regex" > /dev/null; then
  18517. :
  18518. else
  18519. - cat <<_LT_EOF 1>&2
  18520. + cat <<EOF 1>&2
  18521. *** Warning: the command libtool uses to detect shared libraries,
  18522. *** $file_magic_cmd, produces output that libtool cannot recognize.
  18523. @@ -6432,7 +6969,7 @@
  18524. *** may want to report the problem to your system manager and/or to
  18525. *** bug-libtool@gnu.org
  18526. -_LT_EOF
  18527. +EOF
  18528. fi ;;
  18529. esac
  18530. fi
  18531. @@ -6454,7 +6991,6 @@
  18532. echo "${ECHO_T}no" >&6; }
  18533. fi
  18534. -
  18535. else
  18536. MAGIC_CMD=:
  18537. fi
  18538. @@ -6464,15 +7000,35 @@
  18539. ;;
  18540. esac
  18541. -# Use C for the default configuration in the libtool script
  18542. -
  18543. -lt_save_CC="$CC"
  18544. -ac_ext=c
  18545. -ac_cpp='$CPP $CPPFLAGS'
  18546. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18547. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18548. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18549. -
  18550. +enable_dlopen=no
  18551. +enable_win32_dll=no
  18552. +
  18553. +# Check whether --enable-libtool-lock was given.
  18554. +if test "${enable_libtool_lock+set}" = set; then
  18555. + enableval=$enable_libtool_lock;
  18556. +fi
  18557. +
  18558. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  18559. +
  18560. +
  18561. +# Check whether --with-pic was given.
  18562. +if test "${with_pic+set}" = set; then
  18563. + withval=$with_pic; pic_mode="$withval"
  18564. +else
  18565. + pic_mode=default
  18566. +fi
  18567. +
  18568. +test -z "$pic_mode" && pic_mode=default
  18569. +
  18570. +# Use C for the default configuration in the libtool script
  18571. +tagname=
  18572. +lt_save_CC="$CC"
  18573. +ac_ext=c
  18574. +ac_cpp='$CPP $CPPFLAGS'
  18575. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18576. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18577. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18578. +
  18579. # Source file extension for C test sources.
  18580. ac_ext=c
  18581. @@ -6488,11 +7044,6 @@
  18582. lt_simple_link_test_code='int main(){return(0);}\n'
  18583. -
  18584. -
  18585. -
  18586. -
  18587. -
  18588. # If no C compiler was specified, use CC.
  18589. LTCC=${LTCC-"$CC"}
  18590. @@ -6502,38 +7053,35 @@
  18591. # Allow CC to be a program name with arguments.
  18592. compiler=$CC
  18593. -# Save the default compiler, since it gets overwritten when the other
  18594. -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  18595. -compiler_DEFAULT=$CC
  18596. # save warnings/boilerplate of simple test code
  18597. ac_outfile=conftest.$ac_objext
  18598. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  18599. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18600. _lt_compiler_boilerplate=`cat conftest.err`
  18601. -$RM conftest*
  18602. +$rm conftest*
  18603. ac_outfile=conftest.$ac_objext
  18604. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  18605. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  18606. _lt_linker_boilerplate=`cat conftest.err`
  18607. -$RM conftest*
  18608. +$rm conftest*
  18609. -if test -n "$compiler"; then
  18610. lt_prog_compiler_no_builtin_flag=
  18611. if test "$GCC" = yes; then
  18612. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  18613. - { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  18614. +
  18615. +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  18616. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  18617. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  18618. echo $ECHO_N "(cached) $ECHO_C" >&6
  18619. else
  18620. lt_cv_prog_compiler_rtti_exceptions=no
  18621. - ac_outfile=conftest.$ac_objext
  18622. + ac_outfile=conftest.$ac_objext
  18623. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  18624. lt_compiler_flag="-fno-rtti -fno-exceptions"
  18625. # Insert the option either (1) after the last *FLAGS variable, or
  18626. @@ -6545,21 +7093,21 @@
  18627. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18628. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18629. -e 's:$: $lt_compiler_flag:'`
  18630. - (eval echo "\"\$as_me:6548: $lt_compile\"" >&5)
  18631. + (eval echo "\"\$as_me:7096: $lt_compile\"" >&5)
  18632. (eval "$lt_compile" 2>conftest.err)
  18633. ac_status=$?
  18634. cat conftest.err >&5
  18635. - echo "$as_me:6552: \$? = $ac_status" >&5
  18636. + echo "$as_me:7100: \$? = $ac_status" >&5
  18637. if (exit $ac_status) && test -s "$ac_outfile"; then
  18638. # The compiler can only warn and ignore the option if not recognized
  18639. # So say no if there are warnings other than the usual output.
  18640. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  18641. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  18642. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  18643. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  18644. lt_cv_prog_compiler_rtti_exceptions=yes
  18645. fi
  18646. fi
  18647. - $RM conftest*
  18648. + $rm conftest*
  18649. fi
  18650. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  18651. @@ -6573,12 +7121,7 @@
  18652. fi
  18653. -
  18654. -
  18655. -
  18656. -
  18657. -
  18658. - lt_prog_compiler_wl=
  18659. +lt_prog_compiler_wl=
  18660. lt_prog_compiler_pic=
  18661. lt_prog_compiler_static=
  18662. @@ -6599,12 +7142,10 @@
  18663. ;;
  18664. amigaos*)
  18665. - if test "$host_cpu" = m68k; then
  18666. - # FIXME: we need at least 68020 code to build shared libraries, but
  18667. - # adding the `-m68020' flag to GCC prevents building anything better,
  18668. - # like `-m68040'.
  18669. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  18670. - fi
  18671. + # FIXME: we need at least 68020 code to build shared libraries, but
  18672. + # adding the `-m68020' flag to GCC prevents building anything better,
  18673. + # like `-m68040'.
  18674. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  18675. ;;
  18676. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  18677. @@ -6623,19 +7164,6 @@
  18678. lt_prog_compiler_pic='-fno-common'
  18679. ;;
  18680. - hpux*)
  18681. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  18682. - # not for PA HP-UX.
  18683. - case $host_cpu in
  18684. - hppa*64*|ia64*)
  18685. - # +Z the default
  18686. - ;;
  18687. - *)
  18688. - lt_prog_compiler_pic='-fPIC'
  18689. - ;;
  18690. - esac
  18691. - ;;
  18692. -
  18693. interix3*)
  18694. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  18695. # Instead, we relocate shared libraries at runtime.
  18696. @@ -6648,18 +7176,25 @@
  18697. enable_shared=no
  18698. ;;
  18699. - *nto* | *qnx*)
  18700. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  18701. - # it will coredump.
  18702. - lt_prog_compiler_pic='-fPIC -shared'
  18703. - ;;
  18704. -
  18705. sysv4*MP*)
  18706. if test -d /usr/nec; then
  18707. lt_prog_compiler_pic=-Kconform_pic
  18708. fi
  18709. ;;
  18710. + hpux*)
  18711. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  18712. + # not for PA HP-UX.
  18713. + case $host_cpu in
  18714. + hppa*64*|ia64*)
  18715. + # +Z the default
  18716. + ;;
  18717. + *)
  18718. + lt_prog_compiler_pic='-fPIC'
  18719. + ;;
  18720. + esac
  18721. + ;;
  18722. +
  18723. *)
  18724. lt_prog_compiler_pic='-fPIC'
  18725. ;;
  18726. @@ -6676,16 +7211,16 @@
  18727. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  18728. fi
  18729. ;;
  18730. - darwin*)
  18731. - # PIC is the default on this platform
  18732. - # Common symbols not allowed in MH_DYLIB files
  18733. - case $cc_basename in
  18734. - xlc*)
  18735. - lt_prog_compiler_pic='-qnocommon'
  18736. - lt_prog_compiler_wl='-Wl,'
  18737. - ;;
  18738. - esac
  18739. - ;;
  18740. + darwin*)
  18741. + # PIC is the default on this platform
  18742. + # Common symbols not allowed in MH_DYLIB files
  18743. + case $cc_basename in
  18744. + xlc*)
  18745. + lt_prog_compiler_pic='-qnocommon'
  18746. + lt_prog_compiler_wl='-Wl,'
  18747. + ;;
  18748. + esac
  18749. + ;;
  18750. mingw* | pw32* | os2*)
  18751. # This hack is so that the source file can tell whether it is being
  18752. @@ -6715,6 +7250,11 @@
  18753. lt_prog_compiler_static='-non_shared'
  18754. ;;
  18755. + newsos6)
  18756. + lt_prog_compiler_pic='-KPIC'
  18757. + lt_prog_compiler_static='-Bstatic'
  18758. + ;;
  18759. +
  18760. linux*)
  18761. case $cc_basename in
  18762. icc* | ecc*)
  18763. @@ -6737,17 +7277,6 @@
  18764. esac
  18765. ;;
  18766. - newsos6)
  18767. - lt_prog_compiler_pic='-KPIC'
  18768. - lt_prog_compiler_static='-Bstatic'
  18769. - ;;
  18770. -
  18771. - *nto* | *qnx*)
  18772. - # QNX uses GNU C++, but need to define -shared option too, otherwise
  18773. - # it will coredump.
  18774. - lt_prog_compiler_pic='-fPIC -shared'
  18775. - ;;
  18776. -
  18777. osf3* | osf4* | osf5*)
  18778. lt_prog_compiler_wl='-Wl,'
  18779. # All OSF/1 code is PIC.
  18780. @@ -6806,34 +7335,21 @@
  18781. esac
  18782. fi
  18783. -case $host_os in
  18784. - # For platforms which do not support PIC, -DPIC is meaningless:
  18785. - *djgpp*)
  18786. - lt_prog_compiler_pic=
  18787. - ;;
  18788. - *)
  18789. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  18790. - ;;
  18791. -esac
  18792. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  18793. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  18794. -
  18795. -
  18796. -
  18797. -
  18798. -
  18799. #
  18800. # Check to make sure the PIC flag actually works.
  18801. #
  18802. if test -n "$lt_prog_compiler_pic"; then
  18803. - { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  18804. +
  18805. +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  18806. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  18807. if test "${lt_prog_compiler_pic_works+set}" = set; then
  18808. echo $ECHO_N "(cached) $ECHO_C" >&6
  18809. else
  18810. lt_prog_compiler_pic_works=no
  18811. - ac_outfile=conftest.$ac_objext
  18812. + ac_outfile=conftest.$ac_objext
  18813. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  18814. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  18815. # Insert the option either (1) after the last *FLAGS variable, or
  18816. @@ -6845,21 +7361,21 @@
  18817. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18818. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18819. -e 's:$: $lt_compiler_flag:'`
  18820. - (eval echo "\"\$as_me:6848: $lt_compile\"" >&5)
  18821. + (eval echo "\"\$as_me:7364: $lt_compile\"" >&5)
  18822. (eval "$lt_compile" 2>conftest.err)
  18823. ac_status=$?
  18824. cat conftest.err >&5
  18825. - echo "$as_me:6852: \$? = $ac_status" >&5
  18826. + echo "$as_me:7368: \$? = $ac_status" >&5
  18827. if (exit $ac_status) && test -s "$ac_outfile"; then
  18828. # The compiler can only warn and ignore the option if not recognized
  18829. # So say no if there are warnings other than the usual output.
  18830. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  18831. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  18832. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  18833. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  18834. lt_prog_compiler_pic_works=yes
  18835. fi
  18836. fi
  18837. - $RM conftest*
  18838. + $rm conftest*
  18839. fi
  18840. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  18841. @@ -6876,11 +7392,15 @@
  18842. fi
  18843. fi
  18844. -
  18845. -
  18846. -
  18847. -
  18848. -
  18849. +case $host_os in
  18850. + # For platforms which do not support PIC, -DPIC is meaningless:
  18851. + *djgpp*)
  18852. + lt_prog_compiler_pic=
  18853. + ;;
  18854. + *)
  18855. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  18856. + ;;
  18857. +esac
  18858. #
  18859. # Check to make sure the static flag actually works.
  18860. @@ -6901,7 +7421,7 @@
  18861. if test -s conftest.err; then
  18862. # Append any errors to the config.log.
  18863. cat conftest.err 1>&5
  18864. - $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  18865. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  18866. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  18867. if diff conftest.exp conftest.er2 >/dev/null; then
  18868. lt_prog_compiler_static_works=yes
  18869. @@ -6910,7 +7430,7 @@
  18870. lt_prog_compiler_static_works=yes
  18871. fi
  18872. fi
  18873. - $RM conftest*
  18874. + $rm conftest*
  18875. LDFLAGS="$save_LDFLAGS"
  18876. fi
  18877. @@ -6924,73 +7444,13 @@
  18878. fi
  18879. -
  18880. -
  18881. -
  18882. -
  18883. -
  18884. - { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  18885. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  18886. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  18887. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18888. -else
  18889. - lt_cv_prog_compiler_c_o=no
  18890. - $RM -r conftest 2>/dev/null
  18891. - mkdir conftest
  18892. - cd conftest
  18893. - mkdir out
  18894. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  18895. -
  18896. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  18897. - # Insert the option either (1) after the last *FLAGS variable, or
  18898. - # (2) before a word containing "conftest.", or (3) at the end.
  18899. - # Note that $ac_compile itself does not contain backslashes and begins
  18900. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  18901. - lt_compile=`echo "$ac_compile" | $SED \
  18902. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18903. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18904. - -e 's:$: $lt_compiler_flag:'`
  18905. - (eval echo "\"\$as_me:6953: $lt_compile\"" >&5)
  18906. - (eval "$lt_compile" 2>out/conftest.err)
  18907. - ac_status=$?
  18908. - cat out/conftest.err >&5
  18909. - echo "$as_me:6957: \$? = $ac_status" >&5
  18910. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  18911. - then
  18912. - # The compiler can only warn and ignore the option if not recognized
  18913. - # So say no if there are warnings
  18914. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  18915. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  18916. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  18917. - lt_cv_prog_compiler_c_o=yes
  18918. - fi
  18919. - fi
  18920. - chmod u+w . 2>&5
  18921. - $RM conftest*
  18922. - # SGI C++ compiler will create directory out/ii_files/ for
  18923. - # template instantiation
  18924. - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  18925. - $RM out/* && rmdir out
  18926. - cd ..
  18927. - $RM -r conftest
  18928. - $RM conftest*
  18929. -
  18930. -fi
  18931. -{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  18932. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  18933. -
  18934. -
  18935. -
  18936. -
  18937. -
  18938. -
  18939. - { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  18940. +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  18941. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  18942. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  18943. echo $ECHO_N "(cached) $ECHO_C" >&6
  18944. else
  18945. lt_cv_prog_compiler_c_o=no
  18946. - $RM -r conftest 2>/dev/null
  18947. + $rm -r conftest 2>/dev/null
  18948. mkdir conftest
  18949. cd conftest
  18950. mkdir out
  18951. @@ -7005,45 +7465,43 @@
  18952. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  18953. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  18954. -e 's:$: $lt_compiler_flag:'`
  18955. - (eval echo "\"\$as_me:7008: $lt_compile\"" >&5)
  18956. + (eval echo "\"\$as_me:7468: $lt_compile\"" >&5)
  18957. (eval "$lt_compile" 2>out/conftest.err)
  18958. ac_status=$?
  18959. cat out/conftest.err >&5
  18960. - echo "$as_me:7012: \$? = $ac_status" >&5
  18961. + echo "$as_me:7472: \$? = $ac_status" >&5
  18962. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  18963. then
  18964. # The compiler can only warn and ignore the option if not recognized
  18965. # So say no if there are warnings
  18966. - $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  18967. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  18968. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  18969. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  18970. lt_cv_prog_compiler_c_o=yes
  18971. fi
  18972. fi
  18973. chmod u+w . 2>&5
  18974. - $RM conftest*
  18975. + $rm conftest*
  18976. # SGI C++ compiler will create directory out/ii_files/ for
  18977. # template instantiation
  18978. - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  18979. - $RM out/* && rmdir out
  18980. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  18981. + $rm out/* && rmdir out
  18982. cd ..
  18983. - $RM -r conftest
  18984. - $RM conftest*
  18985. + rmdir conftest
  18986. + $rm conftest*
  18987. fi
  18988. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  18989. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  18990. -
  18991. -
  18992. hard_links="nottested"
  18993. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  18994. # do not overwrite the value of need_locks provided by the user
  18995. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  18996. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  18997. hard_links=yes
  18998. - $RM conftest*
  18999. + $rm conftest*
  19000. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  19001. touch conftest.a
  19002. ln conftest.a conftest.b 2>&5 || hard_links=no
  19003. @@ -7059,37 +7517,31 @@
  19004. need_locks=no
  19005. fi
  19006. -
  19007. -
  19008. -
  19009. -
  19010. -
  19011. - { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  19012. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  19013. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  19014. runpath_var=
  19015. allow_undefined_flag=
  19016. - always_export_symbols=no
  19017. + enable_shared_with_static_runtimes=no
  19018. archive_cmds=
  19019. archive_expsym_cmds=
  19020. - enable_shared_with_static_runtimes=no
  19021. + old_archive_From_new_cmds=
  19022. + old_archive_from_expsyms_cmds=
  19023. export_dynamic_flag_spec=
  19024. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  19025. - hardcode_automatic=no
  19026. - hardcode_direct=no
  19027. + whole_archive_flag_spec=
  19028. + thread_safe_flag_spec=
  19029. hardcode_libdir_flag_spec=
  19030. hardcode_libdir_flag_spec_ld=
  19031. hardcode_libdir_separator=
  19032. + hardcode_direct=no
  19033. hardcode_minus_L=no
  19034. hardcode_shlibpath_var=unsupported
  19035. - inherit_rpath=no
  19036. link_all_deplibs=unknown
  19037. + hardcode_automatic=no
  19038. module_cmds=
  19039. module_expsym_cmds=
  19040. - old_archive_from_new_cmds=
  19041. - old_archive_from_expsyms_cmds=
  19042. - thread_safe_flag_spec=
  19043. - whole_archive_flag_spec=
  19044. + always_export_symbols=no
  19045. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  19046. # include_expsyms should be a list of space-separated symbols to be *always*
  19047. # included in the symbol list
  19048. include_expsyms=
  19049. @@ -7104,6 +7556,16 @@
  19050. # rely on this symbol name, it's probably fine to never include it in
  19051. # preloaded symbol tables.
  19052. extract_expsyms_cmds=
  19053. + # Just being paranoid about ensuring that cc_basename is set.
  19054. + for cc_temp in $compiler""; do
  19055. + case $cc_temp in
  19056. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  19057. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  19058. + \-*) ;;
  19059. + *) break;;
  19060. + esac
  19061. +done
  19062. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  19063. case $host_os in
  19064. cygwin* | mingw* | pw32*)
  19065. @@ -7132,16 +7594,16 @@
  19066. # are reset later if shared libraries are not supported. Putting them
  19067. # here allows them to be overridden if necessary.
  19068. runpath_var=LD_RUN_PATH
  19069. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19070. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  19071. export_dynamic_flag_spec='${wl}--export-dynamic'
  19072. # ancient GNU ld didn't support --whole-archive et. al.
  19073. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  19074. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  19075. - else
  19076. - whole_archive_flag_spec=
  19077. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  19078. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  19079. + else
  19080. + whole_archive_flag_spec=
  19081. fi
  19082. supports_anon_versioning=no
  19083. - case `$LD -v 2>&1` in
  19084. + case `$LD -v 2>/dev/null` in
  19085. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  19086. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  19087. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  19088. @@ -7155,7 +7617,7 @@
  19089. # On AIX/PPC, the GNU linker is very broken
  19090. if test "$host_cpu" != ia64; then
  19091. ld_shlibs=no
  19092. - cat <<_LT_EOF 1>&2
  19093. + cat <<EOF 1>&2
  19094. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  19095. *** to be unable to reliably create shared libraries on AIX.
  19096. @@ -7163,16 +7625,14 @@
  19097. *** really care for shared libraries, you may want to modify your PATH
  19098. *** so that a non-GNU linker is found, and then restart.
  19099. -_LT_EOF
  19100. +EOF
  19101. fi
  19102. ;;
  19103. amigaos*)
  19104. - if test "$host_cpu" = m68k; then
  19105. - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  19106. - hardcode_libdir_flag_spec='-L$libdir'
  19107. - hardcode_minus_L=yes
  19108. - fi
  19109. + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  19110. + hardcode_libdir_flag_spec='-L$libdir'
  19111. + hardcode_minus_L=yes
  19112. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  19113. # that the semantics of dynamic libraries on AmigaOS, at least up
  19114. @@ -7184,7 +7644,7 @@
  19115. ;;
  19116. beos*)
  19117. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  19118. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19119. allow_undefined_flag=unsupported
  19120. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  19121. # support --undefined. This deserves some investigation. FIXME
  19122. @@ -7195,7 +7655,7 @@
  19123. ;;
  19124. cygwin* | mingw* | pw32*)
  19125. - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  19126. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  19127. # as there is no search path for DLLs.
  19128. hardcode_libdir_flag_spec='-L$libdir'
  19129. allow_undefined_flag=unsupported
  19130. @@ -7203,7 +7663,7 @@
  19131. enable_shared_with_static_runtimes=yes
  19132. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  19133. - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  19134. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  19135. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  19136. # If the export-symbols file already is a .def file (1st line
  19137. # is EXPORTS), use it as is; otherwise, prepend...
  19138. @@ -7234,46 +7694,39 @@
  19139. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  19140. ;;
  19141. - linux*|tpf*)
  19142. - tmp_diet=no
  19143. - if test "$host_os" = linux-dietlibc; then
  19144. - case $cc_basename in
  19145. - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  19146. - esac
  19147. - fi
  19148. - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  19149. - && test "$tmp_diet" = no
  19150. - then
  19151. + linux*)
  19152. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19153. tmp_addflag=
  19154. case $cc_basename,$host_cpu in
  19155. - pgcc*) # Portland Group C compiler
  19156. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  19157. + pgcc*) # Portland Group C compiler
  19158. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  19159. tmp_addflag=' $pic_flag'
  19160. ;;
  19161. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  19162. - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  19163. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  19164. tmp_addflag=' $pic_flag -Mnomain' ;;
  19165. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  19166. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  19167. tmp_addflag=' -i_dynamic' ;;
  19168. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  19169. tmp_addflag=' -i_dynamic -nofor_main' ;;
  19170. ifc* | ifort*) # Intel Fortran compiler
  19171. tmp_addflag=' -nofor_main' ;;
  19172. esac
  19173. -
  19174. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19175. - if test "x$supports_anon_versioning" = xyes; then
  19176. - archive_expsym_cmds='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'
  19177. - fi
  19178. - link_all_deplibs=no
  19179. + if test $supports_anon_versioning = yes; then
  19180. + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  19181. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  19182. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  19183. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  19184. + fi
  19185. else
  19186. - ld_shlibs=no
  19187. + ld_shlibs=no
  19188. fi
  19189. ;;
  19190. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  19191. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  19192. + netbsd*)
  19193. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19194. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  19195. wlarc=
  19196. else
  19197. @@ -7283,9 +7736,9 @@
  19198. ;;
  19199. solaris*)
  19200. - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  19201. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  19202. ld_shlibs=no
  19203. - cat <<_LT_EOF 1>&2
  19204. + cat <<EOF 1>&2
  19205. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  19206. *** create shared libraries on Solaris systems. Therefore, libtool
  19207. @@ -7294,8 +7747,8 @@
  19208. *** your PATH or compiler configuration so that the native linker is
  19209. *** used, and then restart.
  19210. -_LT_EOF
  19211. - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  19212. +EOF
  19213. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19214. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19215. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19216. else
  19217. @@ -7319,14 +7772,10 @@
  19218. _LT_EOF
  19219. ;;
  19220. *)
  19221. - # For security reasons, it is highly recommended that you always
  19222. - # use absolute paths for naming shared libraries, and exclude the
  19223. - # DT_RUNPATH tag from executables and libraries. But doing so
  19224. - # requires that you compile everything twice, which is a pain.
  19225. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  19226. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19227. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19228. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19229. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19230. + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  19231. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  19232. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  19233. else
  19234. ld_shlibs=no
  19235. fi
  19236. @@ -7342,7 +7791,7 @@
  19237. ;;
  19238. *)
  19239. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  19240. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  19241. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  19242. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  19243. else
  19244. @@ -7384,10 +7833,10 @@
  19245. else
  19246. # If we're using GNU nm, then we don't want the "-C" option.
  19247. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  19248. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  19249. - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  19250. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  19251. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  19252. else
  19253. - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  19254. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  19255. fi
  19256. aix_use_runtimelinking=no
  19257. @@ -7418,15 +7867,14 @@
  19258. hardcode_direct=yes
  19259. hardcode_libdir_separator=':'
  19260. link_all_deplibs=yes
  19261. - file_list_spec='${wl}-f,'
  19262. if test "$GCC" = yes; then
  19263. case $host_os in aix4.[012]|aix4.[012].*)
  19264. # We only want to do this on AIX 4.2 and lower, the check
  19265. # below for broken collect2 doesn't work under 4.3+
  19266. collect2name=`${CC} -print-prog-name=collect2`
  19267. - if test -f "$collect2name" &&
  19268. - strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  19269. + if test -f "$collect2name" && \
  19270. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  19271. then
  19272. # We have reworked collect2
  19273. hardcode_direct=yes
  19274. @@ -7468,9 +7916,8 @@
  19275. # Warning - without using the other runtime loading flags (-brtl),
  19276. # -berok will link without error, but may produce a broken library.
  19277. allow_undefined_flag='-berok'
  19278. - # Determine the default libpath from the value encoded in an
  19279. - # empty executable.
  19280. - cat >conftest.$ac_ext <<_ACEOF
  19281. + # Determine the default libpath from the value encoded in an empty executable.
  19282. + cat >conftest.$ac_ext <<_ACEOF
  19283. /* confdefs.h. */
  19284. _ACEOF
  19285. cat confdefs.h >>conftest.$ac_ext
  19286. @@ -7520,16 +7967,15 @@
  19287. conftest$ac_exeext conftest.$ac_ext
  19288. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  19289. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  19290. - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  19291. - else
  19292. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  19293. + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  19294. + else
  19295. if test "$host_cpu" = ia64; then
  19296. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  19297. allow_undefined_flag="-z nodefs"
  19298. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  19299. else
  19300. - # Determine the default libpath from the value encoded in an
  19301. - # empty executable.
  19302. + # Determine the default libpath from the value encoded in an empty executable.
  19303. cat >conftest.$ac_ext <<_ACEOF
  19304. /* confdefs.h. */
  19305. _ACEOF
  19306. @@ -7595,11 +8041,9 @@
  19307. ;;
  19308. amigaos*)
  19309. - if test "$host_cpu" = m68k; then
  19310. - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  19311. - hardcode_libdir_flag_spec='-L$libdir'
  19312. - hardcode_minus_L=yes
  19313. - fi
  19314. + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  19315. + hardcode_libdir_flag_spec='-L$libdir'
  19316. + hardcode_minus_L=yes
  19317. # see comment about different semantics on the GNU ld section
  19318. ld_shlibs=no
  19319. ;;
  19320. @@ -7620,9 +8064,9 @@
  19321. # Tell ltmain to make .dll files, not .so files.
  19322. shrext_cmds=".dll"
  19323. # FIXME: Setting linknames here is a bad hack.
  19324. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  19325. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  19326. # The linker will automatically build a .lib file if we build a DLL.
  19327. - old_archive_from_new_cmds='true'
  19328. + old_archive_From_new_cmds='true'
  19329. # FIXME: Should let the user specify the lib program.
  19330. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  19331. fix_srcfile_path='`cygpath -w "$srcfile"`'
  19332. @@ -7631,19 +8075,23 @@
  19333. darwin* | rhapsody*)
  19334. case $host_os in
  19335. - rhapsody* | darwin1.[012])
  19336. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  19337. - ;;
  19338. - *) # Darwin 1.3 on
  19339. - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  19340. - 10.[012])
  19341. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19342. - ;;
  19343. - 10.*)
  19344. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  19345. - ;;
  19346. - esac
  19347. - ;;
  19348. + rhapsody* | darwin1.[012])
  19349. + allow_undefined_flag='${wl}-undefined ${wl}suppress'
  19350. + ;;
  19351. + *) # Darwin 1.3 on
  19352. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  19353. + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19354. + else
  19355. + case ${MACOSX_DEPLOYMENT_TARGET} in
  19356. + 10.[012])
  19357. + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  19358. + ;;
  19359. + 10.*)
  19360. + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  19361. + ;;
  19362. + esac
  19363. + fi
  19364. + ;;
  19365. esac
  19366. archive_cmds_need_lc=no
  19367. hardcode_direct=no
  19368. @@ -7651,52 +8099,28 @@
  19369. hardcode_shlibpath_var=unsupported
  19370. whole_archive_flag_spec=''
  19371. link_all_deplibs=yes
  19372. - if test "$GCC" = yes ; then
  19373. - if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  19374. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19375. -else
  19376. - lt_cv_apple_cc_single_mod=no
  19377. - if test -z "${LT_MULTI_MODULE}"; then
  19378. - # By default we will add the -single_module flag. You can override
  19379. - # by either setting the environment variable LT_MULTI_MODULE
  19380. - # non-empty at configure time, or by adding -multi-module to the
  19381. - # link flags.
  19382. - echo "int foo(void){return 1;}" > conftest.c
  19383. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  19384. - -dynamiclib ${wl}-single_module conftest.c
  19385. - if test -f libconftest.dylib; then
  19386. - lt_cv_apple_cc_single_mod=yes
  19387. - rm libconftest.dylib
  19388. - fi
  19389. - rm conftest.$ac_ext
  19390. - fi
  19391. -fi
  19392. -
  19393. - output_verbose_link_cmd=echo
  19394. - if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
  19395. - archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  19396. - archive_expsym_cmds='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}'
  19397. - else
  19398. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  19399. - archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  19400. - fi
  19401. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  19402. - module_expsym_cmds='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}'
  19403. - else
  19404. - case $cc_basename in
  19405. - xlc*)
  19406. - output_verbose_link_cmd=echo
  19407. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
  19408. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  19409. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  19410. - archive_expsym_cmds='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}'
  19411. - module_expsym_cmds='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}'
  19412. - ;;
  19413. - *)
  19414. - ld_shlibs=no
  19415. - ;;
  19416. - esac
  19417. - fi
  19418. + if test "$GCC" = yes ; then
  19419. + output_verbose_link_cmd='echo'
  19420. + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  19421. + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  19422. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  19423. + archive_expsym_cmds='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}'
  19424. + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  19425. + else
  19426. + case $cc_basename in
  19427. + xlc*)
  19428. + output_verbose_link_cmd='echo'
  19429. + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  19430. + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  19431. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  19432. + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  19433. + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  19434. + ;;
  19435. + *)
  19436. + ld_shlibs=no
  19437. + ;;
  19438. + esac
  19439. + fi
  19440. ;;
  19441. dgux*)
  19442. @@ -7729,27 +8153,18 @@
  19443. ;;
  19444. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  19445. - freebsd* | dragonfly*)
  19446. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  19447. - hardcode_libdir_flag_spec='-R$libdir'
  19448. - hardcode_direct=yes
  19449. - hardcode_shlibpath_var=no
  19450. - ;;
  19451. -
  19452. - # GNU/kFreeBSD uses gcc -shared to do shared libraries.
  19453. - kfreebsd*-gnu)
  19454. + freebsd* | kfreebsd*-gnu | dragonfly*)
  19455. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  19456. hardcode_libdir_flag_spec='-R$libdir'
  19457. hardcode_direct=yes
  19458. hardcode_shlibpath_var=no
  19459. - link_all_deplibs=no
  19460. ;;
  19461. hpux9*)
  19462. if test "$GCC" = yes; then
  19463. - archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  19464. + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  19465. else
  19466. - archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  19467. + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  19468. fi
  19469. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  19470. hardcode_libdir_separator=:
  19471. @@ -7769,10 +8184,11 @@
  19472. fi
  19473. if test "$with_gnu_ld" = no; then
  19474. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  19475. - hardcode_libdir_flag_spec_ld='+b $libdir'
  19476. hardcode_libdir_separator=:
  19477. +
  19478. hardcode_direct=yes
  19479. export_dynamic_flag_spec='${wl}-E'
  19480. +
  19481. # hardcode_minus_L: Not really in the search PATH,
  19482. # but as the default location of the library.
  19483. hardcode_minus_L=yes
  19484. @@ -7811,6 +8227,7 @@
  19485. case $host_cpu in
  19486. hppa*64*|ia64*)
  19487. + hardcode_libdir_flag_spec_ld='+b $libdir'
  19488. hardcode_direct=no
  19489. hardcode_shlibpath_var=no
  19490. ;;
  19491. @@ -7828,58 +8245,18 @@
  19492. irix5* | irix6* | nonstopux*)
  19493. if test "$GCC" = yes; then
  19494. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  19495. - # Try to use the -exported_symbol ld option, if it does not
  19496. - # work, assume that -exports_file does not work either and
  19497. - # implicitly export all symbols.
  19498. - save_LDFLAGS="$LDFLAGS"
  19499. - LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  19500. - cat >conftest.$ac_ext <<_ACEOF
  19501. -int foo(void) {}
  19502. -_ACEOF
  19503. -rm -f conftest.$ac_objext conftest$ac_exeext
  19504. -if { (ac_try="$ac_link"
  19505. -case "(($ac_try" in
  19506. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19507. - *) ac_try_echo=$ac_try;;
  19508. -esac
  19509. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19510. - (eval "$ac_link") 2>conftest.er1
  19511. - ac_status=$?
  19512. - grep -v '^ *+' conftest.er1 >conftest.err
  19513. - rm -f conftest.er1
  19514. - cat conftest.err >&5
  19515. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19516. - (exit $ac_status); } && {
  19517. - test -z "$ac_c_werror_flag" ||
  19518. - test ! -s conftest.err
  19519. - } && test -s conftest$ac_exeext &&
  19520. - $as_test_x conftest$ac_exeext; then
  19521. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  19522. -
  19523. -else
  19524. - echo "$as_me: failed program was:" >&5
  19525. -sed 's/^/| /' conftest.$ac_ext >&5
  19526. -
  19527. -
  19528. -fi
  19529. -
  19530. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19531. - conftest$ac_exeext conftest.$ac_ext
  19532. - LDFLAGS="$save_LDFLAGS"
  19533. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  19534. else
  19535. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  19536. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  19537. + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  19538. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  19539. fi
  19540. - archive_cmds_need_lc='no'
  19541. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19542. hardcode_libdir_separator=:
  19543. - inherit_rpath=yes
  19544. link_all_deplibs=yes
  19545. ;;
  19546. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  19547. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  19548. + netbsd*)
  19549. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  19550. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  19551. else
  19552. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  19553. @@ -7897,28 +8274,25 @@
  19554. hardcode_shlibpath_var=no
  19555. ;;
  19556. - *nto* | *qnx*)
  19557. - ;;
  19558. -
  19559. openbsd*)
  19560. hardcode_direct=yes
  19561. hardcode_shlibpath_var=no
  19562. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19563. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19564. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  19565. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  19566. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  19567. export_dynamic_flag_spec='${wl}-E'
  19568. else
  19569. - case $host_os in
  19570. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  19571. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  19572. - hardcode_libdir_flag_spec='-R$libdir'
  19573. - ;;
  19574. - *)
  19575. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  19576. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  19577. - ;;
  19578. - esac
  19579. + case $host_os in
  19580. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  19581. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  19582. + hardcode_libdir_flag_spec='-R$libdir'
  19583. + ;;
  19584. + *)
  19585. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  19586. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  19587. + ;;
  19588. + esac
  19589. fi
  19590. ;;
  19591. @@ -7926,19 +8300,18 @@
  19592. hardcode_libdir_flag_spec='-L$libdir'
  19593. hardcode_minus_L=yes
  19594. allow_undefined_flag=unsupported
  19595. - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  19596. - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  19597. + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  19598. + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  19599. ;;
  19600. osf3*)
  19601. if test "$GCC" = yes; then
  19602. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  19603. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  19604. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  19605. else
  19606. allow_undefined_flag=' -expect_unresolved \*'
  19607. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  19608. + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  19609. fi
  19610. - archive_cmds_need_lc='no'
  19611. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19612. hardcode_libdir_separator=:
  19613. ;;
  19614. @@ -7946,60 +8319,49 @@
  19615. osf4* | osf5*) # as osf3* with the addition of -msym flag
  19616. if test "$GCC" = yes; then
  19617. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  19618. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  19619. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  19620. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  19621. else
  19622. allow_undefined_flag=' -expect_unresolved \*'
  19623. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  19624. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  19625. - $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'
  19626. + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  19627. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  19628. + $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'
  19629. # Both c and cxx compiler support -rpath directly
  19630. hardcode_libdir_flag_spec='-rpath $libdir'
  19631. fi
  19632. - archive_cmds_need_lc='no'
  19633. hardcode_libdir_separator=:
  19634. ;;
  19635. solaris*)
  19636. - no_undefined_flag=' -z defs'
  19637. + no_undefined_flag=' -z text'
  19638. if test "$GCC" = yes; then
  19639. wlarc='${wl}'
  19640. - archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19641. - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  19642. - $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  19643. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19644. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  19645. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  19646. else
  19647. - case `$CC -V 2>&1` in
  19648. - *"Compilers 5.0"*)
  19649. - wlarc=''
  19650. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19651. - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  19652. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  19653. - ;;
  19654. - *)
  19655. - wlarc='${wl}'
  19656. - archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  19657. - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  19658. - $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  19659. - ;;
  19660. - esac
  19661. + wlarc=''
  19662. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  19663. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  19664. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  19665. fi
  19666. hardcode_libdir_flag_spec='-R$libdir'
  19667. hardcode_shlibpath_var=no
  19668. case $host_os in
  19669. solaris2.[0-5] | solaris2.[0-5].*) ;;
  19670. *)
  19671. - # The compiler driver will combine linker options so we
  19672. - # cannot just pass the convenience library names through
  19673. - # without $wl, iff we do not link with $LD.
  19674. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  19675. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  19676. - case $wlarc in
  19677. - '')
  19678. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  19679. - *)
  19680. - whole_archive_flag_spec='${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' ;;
  19681. - esac ;;
  19682. + # The compiler driver will combine linker options so we
  19683. + # cannot just pass the convience library names through
  19684. + # without $wl, iff we do not link with $LD.
  19685. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  19686. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  19687. + case $wlarc in
  19688. + '')
  19689. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  19690. + *)
  19691. + whole_archive_flag_spec='${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' ;;
  19692. + esac ;;
  19693. esac
  19694. link_all_deplibs=yes
  19695. ;;
  19696. @@ -8056,7 +8418,7 @@
  19697. fi
  19698. ;;
  19699. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  19700. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  19701. no_undefined_flag='${wl}-z,text'
  19702. archive_cmds_need_lc=no
  19703. hardcode_shlibpath_var=no
  19704. @@ -8082,18 +8444,18 @@
  19705. allow_undefined_flag='${wl}-z,nodefs'
  19706. archive_cmds_need_lc=no
  19707. hardcode_shlibpath_var=no
  19708. - hardcode_libdir_flag_spec='${wl}-R,$libdir'
  19709. + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  19710. hardcode_libdir_separator=':'
  19711. link_all_deplibs=yes
  19712. export_dynamic_flag_spec='${wl}-Bexport'
  19713. runpath_var='LD_RUN_PATH'
  19714. if test "$GCC" = yes; then
  19715. - archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19716. - archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19717. + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19718. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19719. else
  19720. - archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19721. - archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  19722. + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19723. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  19724. fi
  19725. ;;
  19726. @@ -8107,36 +8469,12 @@
  19727. ld_shlibs=no
  19728. ;;
  19729. esac
  19730. -
  19731. - if test x$host_vendor = xsni; then
  19732. - case $host in
  19733. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  19734. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  19735. - ;;
  19736. - esac
  19737. - fi
  19738. fi
  19739. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  19740. echo "${ECHO_T}$ld_shlibs" >&6; }
  19741. test "$ld_shlibs" = no && can_build_shared=no
  19742. -with_gnu_ld=$with_gnu_ld
  19743. -
  19744. -
  19745. -
  19746. -
  19747. -
  19748. -
  19749. -
  19750. -
  19751. -
  19752. -
  19753. -
  19754. -
  19755. -
  19756. -
  19757. -
  19758. #
  19759. # Do we need to explicitly link libc?
  19760. #
  19761. @@ -8156,7 +8494,7 @@
  19762. # to ld, don't add -lc before -lgcc.
  19763. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  19764. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  19765. - $RM conftest*
  19766. + $rm conftest*
  19767. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  19768. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19769. @@ -8177,8 +8515,8 @@
  19770. libname=conftest
  19771. lt_save_allow_undefined_flag=$allow_undefined_flag
  19772. allow_undefined_flag=
  19773. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  19774. - (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  19775. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  19776. + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  19777. ac_status=$?
  19778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19779. (exit $ac_status); }
  19780. @@ -8191,7 +8529,7 @@
  19781. else
  19782. cat conftest.err 1>&5
  19783. fi
  19784. - $RM conftest*
  19785. + $rm conftest*
  19786. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  19787. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  19788. ;;
  19789. @@ -8200,155 +8538,8 @@
  19790. ;;
  19791. esac
  19792. -
  19793. -
  19794. -
  19795. -
  19796. -
  19797. -
  19798. -
  19799. -
  19800. -
  19801. -
  19802. -
  19803. -
  19804. -
  19805. -
  19806. -
  19807. -
  19808. -
  19809. -
  19810. -
  19811. -
  19812. -
  19813. -
  19814. -
  19815. -
  19816. -
  19817. -
  19818. -
  19819. -
  19820. -
  19821. -
  19822. -
  19823. -
  19824. -
  19825. -
  19826. -
  19827. -
  19828. -
  19829. -
  19830. -
  19831. -
  19832. -
  19833. -
  19834. -
  19835. -
  19836. -
  19837. -
  19838. -
  19839. -
  19840. -
  19841. -
  19842. -
  19843. -
  19844. -
  19845. -
  19846. -
  19847. -
  19848. -
  19849. -
  19850. -
  19851. -
  19852. -
  19853. -
  19854. -
  19855. -
  19856. -
  19857. -
  19858. -
  19859. -
  19860. -
  19861. -
  19862. -
  19863. -
  19864. -
  19865. -
  19866. -
  19867. -
  19868. -
  19869. -
  19870. -
  19871. -
  19872. -
  19873. -
  19874. -
  19875. -
  19876. -
  19877. -
  19878. -
  19879. -
  19880. -
  19881. -
  19882. -
  19883. -
  19884. -
  19885. -
  19886. -
  19887. -
  19888. -
  19889. -
  19890. -
  19891. -
  19892. -
  19893. -
  19894. -
  19895. -
  19896. -
  19897. -
  19898. -
  19899. -
  19900. -
  19901. -
  19902. -
  19903. -
  19904. -
  19905. -
  19906. -
  19907. -
  19908. -
  19909. -
  19910. -
  19911. -
  19912. -
  19913. -
  19914. -
  19915. -
  19916. -
  19917. -
  19918. -
  19919. -
  19920. -
  19921. -
  19922. -
  19923. -
  19924. -
  19925. -
  19926. -
  19927. -
  19928. -
  19929. -
  19930. -
  19931. -
  19932. -
  19933. -
  19934. -
  19935. -
  19936. -
  19937. -
  19938. - { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  19939. +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  19940. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  19941. -withGCC=$GCC
  19942. library_names_spec=
  19943. libname_spec='lib$name'
  19944. soname_spec=
  19945. @@ -8362,16 +8553,16 @@
  19946. version_type=none
  19947. dynamic_linker="$host_os ld.so"
  19948. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  19949. -if test "$withGCC" = yes; then
  19950. - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19951. - if $ECHO "$sys_lib_search_path_spec" | $GREP ';' >/dev/null ; then
  19952. +if test "$GCC" = yes; then
  19953. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  19954. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  19955. # if the path contains ";" then we assume it to be the separator
  19956. # otherwise default to the standard path separator (i.e. ":") - it is
  19957. # assumed that no part of a normal pathname contains ";" but that should
  19958. # okay in the real world where ";" in dirpaths is itself problematic.
  19959. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19960. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  19961. else
  19962. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19963. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  19964. fi
  19965. else
  19966. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  19967. @@ -8412,7 +8603,7 @@
  19968. aix4 | aix4.[01] | aix4.[01].*)
  19969. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  19970. echo ' yes '
  19971. - echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  19972. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  19973. :
  19974. else
  19975. can_build_shared=no
  19976. @@ -8438,13 +8629,9 @@
  19977. ;;
  19978. amigaos*)
  19979. - if test "$host_cpu" = m68k; then
  19980. - library_names_spec='$libname.ixlibrary $libname.a'
  19981. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  19982. - 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'
  19983. - else
  19984. - dynamic_linker=no
  19985. - fi
  19986. + library_names_spec='$libname.ixlibrary $libname.a'
  19987. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  19988. + 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'
  19989. ;;
  19990. beos*)
  19991. @@ -8473,22 +8660,19 @@
  19992. need_version=no
  19993. need_lib_prefix=no
  19994. - case $withGCC,$host_os in
  19995. + case $GCC,$host_os in
  19996. yes,cygwin* | yes,mingw* | yes,pw32*)
  19997. library_names_spec='$libname.dll.a'
  19998. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  19999. postinstall_cmds='base_file=`basename \${file}`~
  20000. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  20001. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  20002. dldir=$destdir/`dirname \$dlpath`~
  20003. test -d \$dldir || mkdir -p \$dldir~
  20004. $install_prog $dir/$dlname \$dldir/$dlname~
  20005. - chmod a+x \$dldir/$dlname~
  20006. - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  20007. - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  20008. - fi'
  20009. + chmod a+x \$dldir/$dlname'
  20010. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  20011. dlpath=$dir/\$dldll~
  20012. - $RM \$dlpath'
  20013. + $rm \$dlpath'
  20014. shlibpath_overrides_runpath=yes
  20015. case $host_os in
  20016. @@ -8500,17 +8684,17 @@
  20017. mingw*)
  20018. # MinGW DLLs use traditional 'lib' prefix
  20019. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  20020. - sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20021. - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  20022. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  20023. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  20024. # It is most probably a Windows format PATH printed by
  20025. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  20026. # path with ; separators, and with drive letters. We can handle the
  20027. # drive letters (cygwin fileutils understands them), so leave them,
  20028. # especially as we might pass files found there to a mingw objdump,
  20029. # which wouldn't understand a cygwinified path. Ahh.
  20030. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  20031. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  20032. else
  20033. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20034. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  20035. fi
  20036. ;;
  20037. pw32*)
  20038. @@ -8534,14 +8718,14 @@
  20039. version_type=darwin
  20040. need_lib_prefix=no
  20041. need_version=no
  20042. - library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  20043. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  20044. soname_spec='${libname}${release}${major}$shared_ext'
  20045. shlibpath_overrides_runpath=yes
  20046. shlibpath_var=DYLD_LIBRARY_PATH
  20047. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  20048. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  20049. - if test "$withGCC" = yes; then
  20050. - 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"`
  20051. + if test "$GCC" = yes; then
  20052. + 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"`
  20053. else
  20054. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  20055. fi
  20056. @@ -8649,18 +8833,18 @@
  20057. fi
  20058. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20059. ;;
  20060. - hppa*64*)
  20061. - shrext_cmds='.sl'
  20062. - hardcode_into_libs=yes
  20063. - dynamic_linker="$host_os dld.sl"
  20064. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  20065. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20066. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20067. - soname_spec='${libname}${release}${shared_ext}$major'
  20068. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  20069. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20070. - ;;
  20071. - *)
  20072. + hppa*64*)
  20073. + shrext_cmds='.sl'
  20074. + hardcode_into_libs=yes
  20075. + dynamic_linker="$host_os dld.sl"
  20076. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  20077. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  20078. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20079. + soname_spec='${libname}${release}${shared_ext}$major'
  20080. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  20081. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  20082. + ;;
  20083. + *)
  20084. shrext_cmds='.sl'
  20085. dynamic_linker="$host_os dld.sl"
  20086. shlibpath_var=SHLIB_PATH
  20087. @@ -8757,18 +8941,6 @@
  20088. dynamic_linker='GNU/Linux ld.so'
  20089. ;;
  20090. -netbsdelf*-gnu)
  20091. - version_type=linux
  20092. - need_lib_prefix=no
  20093. - need_version=no
  20094. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  20095. - soname_spec='${libname}${release}${shared_ext}$major'
  20096. - shlibpath_var=LD_LIBRARY_PATH
  20097. - shlibpath_overrides_runpath=no
  20098. - hardcode_into_libs=yes
  20099. - dynamic_linker='NetBSD ld.elf_so'
  20100. - ;;
  20101. -
  20102. knetbsd*-gnu)
  20103. version_type=linux
  20104. need_lib_prefix=no
  20105. @@ -8785,7 +8957,7 @@
  20106. version_type=sunos
  20107. need_lib_prefix=no
  20108. need_version=no
  20109. - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  20110. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  20111. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  20112. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  20113. dynamic_linker='NetBSD (a.out) ld.so'
  20114. @@ -8806,16 +8978,14 @@
  20115. shlibpath_overrides_runpath=yes
  20116. ;;
  20117. -*nto* | *qnx*)
  20118. - version_type=qnx
  20119. +nto-qnx*)
  20120. + version_type=linux
  20121. need_lib_prefix=no
  20122. need_version=no
  20123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20124. soname_spec='${libname}${release}${shared_ext}$major'
  20125. shlibpath_var=LD_LIBRARY_PATH
  20126. - shlibpath_overrides_runpath=no
  20127. - hardcode_into_libs=yes
  20128. - dynamic_linker='ldqnx.so'
  20129. + shlibpath_overrides_runpath=yes
  20130. ;;
  20131. openbsd*)
  20132. @@ -8824,13 +8994,13 @@
  20133. need_lib_prefix=no
  20134. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  20135. case $host_os in
  20136. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  20137. - *) need_version=no ;;
  20138. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  20139. + *) need_version=no ;;
  20140. esac
  20141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  20142. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  20143. shlibpath_var=LD_LIBRARY_PATH
  20144. - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20145. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20146. case $host_os in
  20147. openbsd2.[89] | openbsd2.[89].*)
  20148. shlibpath_overrides_runpath=no
  20149. @@ -8898,6 +9068,7 @@
  20150. sni)
  20151. shlibpath_overrides_runpath=no
  20152. need_lib_prefix=no
  20153. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  20154. runpath_var=LD_RUN_PATH
  20155. ;;
  20156. siemens)
  20157. @@ -8928,12 +9099,13 @@
  20158. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  20159. soname_spec='${libname}${release}${shared_ext}$major'
  20160. shlibpath_var=LD_LIBRARY_PATH
  20161. - shlibpath_overrides_runpath=yes
  20162. hardcode_into_libs=yes
  20163. if test "$with_gnu_ld" = yes; then
  20164. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  20165. + shlibpath_overrides_runpath=no
  20166. else
  20167. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  20168. + shlibpath_overrides_runpath=yes
  20169. case $host_os in
  20170. sco3.2v5*)
  20171. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  20172. @@ -8943,17 +9115,6 @@
  20173. sys_lib_dlsearch_path_spec='/usr/lib'
  20174. ;;
  20175. -tpf*)
  20176. - # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  20177. - version_type=linux
  20178. - need_lib_prefix=no
  20179. - need_version=no
  20180. - library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20181. - shlibpath_var=LD_LIBRARY_PATH
  20182. - shlibpath_overrides_runpath=no
  20183. - hardcode_into_libs=yes
  20184. - ;;
  20185. -
  20186. uts4*)
  20187. version_type=linux
  20188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  20189. @@ -8974,105 +9135,19 @@
  20190. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  20191. fi
  20192. +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  20193. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  20194. +hardcode_action=
  20195. +if test -n "$hardcode_libdir_flag_spec" || \
  20196. + test -n "$runpath_var" || \
  20197. + test "X$hardcode_automatic" = "Xyes" ; then
  20198. -
  20199. -
  20200. -
  20201. -
  20202. -
  20203. -
  20204. -
  20205. -
  20206. -
  20207. -
  20208. -
  20209. -
  20210. -
  20211. -
  20212. -
  20213. -
  20214. -
  20215. -
  20216. -
  20217. -
  20218. -
  20219. -
  20220. -
  20221. -
  20222. -
  20223. -
  20224. -
  20225. -
  20226. -
  20227. -
  20228. -
  20229. -
  20230. -
  20231. -
  20232. -
  20233. -
  20234. -
  20235. -
  20236. -
  20237. -
  20238. -
  20239. -
  20240. -
  20241. -
  20242. -
  20243. -
  20244. -
  20245. -
  20246. -
  20247. -
  20248. -
  20249. -
  20250. -
  20251. -
  20252. -
  20253. -
  20254. -
  20255. -
  20256. -
  20257. -
  20258. -
  20259. -
  20260. -
  20261. -
  20262. -
  20263. -
  20264. -
  20265. -
  20266. -
  20267. -
  20268. -
  20269. -
  20270. -
  20271. -
  20272. -
  20273. -
  20274. -
  20275. -
  20276. -
  20277. -
  20278. -
  20279. -
  20280. -
  20281. -
  20282. -
  20283. - { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  20284. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  20285. -hardcode_action=
  20286. -if test -n "$hardcode_libdir_flag_spec" ||
  20287. - test -n "$runpath_var" ||
  20288. - test "X$hardcode_automatic" = "Xyes" ; then
  20289. -
  20290. - # We can hardcode non-existent directories.
  20291. + # We can hardcode non-existant directories.
  20292. if test "$hardcode_direct" != no &&
  20293. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  20294. # have to relink, otherwise we might link with an installed library
  20295. # when we should be linking with a yet-to-be-installed one
  20296. - ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  20297. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  20298. test "$hardcode_minus_L" != no; then
  20299. # Linking always hardcodes the temporary library directory.
  20300. hardcode_action=relink
  20301. @@ -9088,8 +9163,7 @@
  20302. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  20303. echo "${ECHO_T}$hardcode_action" >&6; }
  20304. -if test "$hardcode_action" = relink ||
  20305. - test "$inherit_rpath" = yes; then
  20306. +if test "$hardcode_action" = relink; then
  20307. # Fast installation is not supported
  20308. enable_fast_install=no
  20309. elif test "$shlibpath_overrides_runpath" = yes ||
  20310. @@ -9098,12 +9172,36 @@
  20311. enable_fast_install=needless
  20312. fi
  20313. +striplib=
  20314. +old_striplib=
  20315. +{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  20316. +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  20317. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  20318. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  20319. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  20320. + { echo "$as_me:$LINENO: result: yes" >&5
  20321. +echo "${ECHO_T}yes" >&6; }
  20322. +else
  20323. +# FIXME - insert some real tests, host_os isn't really good enough
  20324. + case $host_os in
  20325. + darwin*)
  20326. + if test -n "$STRIP" ; then
  20327. + striplib="$STRIP -x"
  20328. + { echo "$as_me:$LINENO: result: yes" >&5
  20329. +echo "${ECHO_T}yes" >&6; }
  20330. + else
  20331. + { echo "$as_me:$LINENO: result: no" >&5
  20332. +echo "${ECHO_T}no" >&6; }
  20333. +fi
  20334. + ;;
  20335. + *)
  20336. + { echo "$as_me:$LINENO: result: no" >&5
  20337. +echo "${ECHO_T}no" >&6; }
  20338. + ;;
  20339. + esac
  20340. +fi
  20341. -
  20342. -
  20343. -
  20344. -
  20345. - if test "x$enable_dlopen" != xyes; then
  20346. +if test "x$enable_dlopen" != xyes; then
  20347. enable_dlopen=unknown
  20348. enable_dlopen_self=unknown
  20349. enable_dlopen_self_static=unknown
  20350. @@ -9121,12 +9219,12 @@
  20351. mingw* | pw32*)
  20352. lt_cv_dlopen="LoadLibrary"
  20353. lt_cv_dlopen_libs=
  20354. - ;;
  20355. + ;;
  20356. cygwin*)
  20357. lt_cv_dlopen="dlopen"
  20358. lt_cv_dlopen_libs=
  20359. - ;;
  20360. + ;;
  20361. darwin*)
  20362. # if libdl is installed we need to link against it
  20363. @@ -9201,7 +9299,7 @@
  20364. fi
  20365. - ;;
  20366. + ;;
  20367. *)
  20368. { echo "$as_me:$LINENO: checking for shl_load" >&5
  20369. @@ -9674,8 +9772,8 @@
  20370. else
  20371. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  20372. lt_status=$lt_dlunknown
  20373. - cat > conftest.$ac_ext <<_LT_EOF
  20374. -#line 9678 "configure"
  20375. + cat > conftest.$ac_ext <<EOF
  20376. +#line 9776 "configure"
  20377. #include "confdefs.h"
  20378. #if HAVE_DLFCN_H
  20379. @@ -9737,7 +9835,7 @@
  20380. exit (status);
  20381. }
  20382. -_LT_EOF
  20383. +EOF
  20384. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20385. (eval $ac_link) 2>&5
  20386. ac_status=$?
  20387. @@ -9774,8 +9872,8 @@
  20388. else
  20389. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  20390. lt_status=$lt_dlunknown
  20391. - cat > conftest.$ac_ext <<_LT_EOF
  20392. -#line 9778 "configure"
  20393. + cat > conftest.$ac_ext <<EOF
  20394. +#line 9876 "configure"
  20395. #include "confdefs.h"
  20396. #if HAVE_DLFCN_H
  20397. @@ -9837,7 +9935,7 @@
  20398. exit (status);
  20399. }
  20400. -_LT_EOF
  20401. +EOF
  20402. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20403. (eval $ac_link) 2>&5
  20404. ac_status=$?
  20405. @@ -9881,799 +9979,522 @@
  20406. fi
  20407. +# Report which library types will actually be built
  20408. +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  20409. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  20410. +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  20411. +echo "${ECHO_T}$can_build_shared" >&6; }
  20412. +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  20413. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  20414. +test "$can_build_shared" = "no" && enable_shared=no
  20415. +# On AIX, shared libraries and static libraries use the same namespace, and
  20416. +# are all built from PIC.
  20417. +case $host_os in
  20418. +aix3*)
  20419. + test "$enable_shared" = yes && enable_static=no
  20420. + if test -n "$RANLIB"; then
  20421. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  20422. + postinstall_cmds='$RANLIB $lib'
  20423. + fi
  20424. + ;;
  20425. +aix4* | aix5*)
  20426. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  20427. + test "$enable_shared" = yes && enable_static=no
  20428. + fi
  20429. + ;;
  20430. +esac
  20431. +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  20432. +echo "${ECHO_T}$enable_shared" >&6; }
  20433. +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  20434. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  20435. +# Make sure either enable_shared or enable_static is yes.
  20436. +test "$enable_shared" = yes || enable_static=yes
  20437. +{ echo "$as_me:$LINENO: result: $enable_static" >&5
  20438. +echo "${ECHO_T}$enable_static" >&6; }
  20439. +# The else clause should only fire when bootstrapping the
  20440. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  20441. +# with your package, and you will get complaints that there are
  20442. +# no rules to generate ltmain.sh.
  20443. +if test -f "$ltmain"; then
  20444. + # See if we are running on zsh, and set the options which allow our commands through
  20445. + # without removal of \ escapes.
  20446. + if test -n "${ZSH_VERSION+set}" ; then
  20447. + setopt NO_GLOB_SUBST
  20448. + fi
  20449. + # Now quote all the things that may contain metacharacters while being
  20450. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  20451. + # variables and quote the copies for generation of the libtool script.
  20452. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  20453. + SED SHELL STRIP \
  20454. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  20455. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  20456. + deplibs_check_method reload_flag reload_cmds need_locks \
  20457. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  20458. + lt_cv_sys_global_symbol_to_c_name_address \
  20459. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  20460. + old_postinstall_cmds old_postuninstall_cmds \
  20461. + compiler \
  20462. + CC \
  20463. + LD \
  20464. + lt_prog_compiler_wl \
  20465. + lt_prog_compiler_pic \
  20466. + lt_prog_compiler_static \
  20467. + lt_prog_compiler_no_builtin_flag \
  20468. + export_dynamic_flag_spec \
  20469. + thread_safe_flag_spec \
  20470. + whole_archive_flag_spec \
  20471. + enable_shared_with_static_runtimes \
  20472. + old_archive_cmds \
  20473. + old_archive_from_new_cmds \
  20474. + predep_objects \
  20475. + postdep_objects \
  20476. + predeps \
  20477. + postdeps \
  20478. + compiler_lib_search_path \
  20479. + archive_cmds \
  20480. + archive_expsym_cmds \
  20481. + postinstall_cmds \
  20482. + postuninstall_cmds \
  20483. + old_archive_from_expsyms_cmds \
  20484. + allow_undefined_flag \
  20485. + no_undefined_flag \
  20486. + export_symbols_cmds \
  20487. + hardcode_libdir_flag_spec \
  20488. + hardcode_libdir_flag_spec_ld \
  20489. + hardcode_libdir_separator \
  20490. + hardcode_automatic \
  20491. + module_cmds \
  20492. + module_expsym_cmds \
  20493. + lt_cv_prog_compiler_c_o \
  20494. + exclude_expsyms \
  20495. + include_expsyms; do
  20496. +
  20497. + case $var in
  20498. + old_archive_cmds | \
  20499. + old_archive_from_new_cmds | \
  20500. + archive_cmds | \
  20501. + archive_expsym_cmds | \
  20502. + module_cmds | \
  20503. + module_expsym_cmds | \
  20504. + old_archive_from_expsyms_cmds | \
  20505. + export_symbols_cmds | \
  20506. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  20507. + postinstall_cmds | postuninstall_cmds | \
  20508. + old_postinstall_cmds | old_postuninstall_cmds | \
  20509. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  20510. + # Double-quote double-evaled strings.
  20511. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  20512. + ;;
  20513. + *)
  20514. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  20515. + ;;
  20516. + esac
  20517. + done
  20518. + case $lt_echo in
  20519. + *'\$0 --fallback-echo"')
  20520. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  20521. + ;;
  20522. + esac
  20523. +cfgfile="${ofile}T"
  20524. + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  20525. + $rm -f "$cfgfile"
  20526. + { echo "$as_me:$LINENO: creating $ofile" >&5
  20527. +echo "$as_me: creating $ofile" >&6;}
  20528. + cat <<__EOF__ >> "$cfgfile"
  20529. +#! $SHELL
  20530. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20531. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  20532. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20533. +#
  20534. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  20535. +# Free Software Foundation, Inc.
  20536. +#
  20537. +# This file is part of GNU Libtool:
  20538. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  20539. +#
  20540. +# This program is free software; you can redistribute it and/or modify
  20541. +# it under the terms of the GNU General Public License as published by
  20542. +# the Free Software Foundation; either version 2 of the License, or
  20543. +# (at your option) any later version.
  20544. +#
  20545. +# This program is distributed in the hope that it will be useful, but
  20546. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  20547. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20548. +# General Public License for more details.
  20549. +#
  20550. +# You should have received a copy of the GNU General Public License
  20551. +# along with this program; if not, write to the Free Software
  20552. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20553. +#
  20554. +# As a special exception to the GNU General Public License, if you
  20555. +# distribute this file as part of a program that contains a
  20556. +# configuration script generated by Autoconf, you may include it under
  20557. +# the same distribution terms that you use for the rest of that program.
  20558. +# A sed program that does not truncate output.
  20559. +SED=$lt_SED
  20560. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20561. +Xsed="$SED -e 1s/^X//"
  20562. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  20563. +# if CDPATH is set.
  20564. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20565. +# The names of the tagged configurations supported by this script.
  20566. +available_tags=
  20567. +# ### BEGIN LIBTOOL CONFIG
  20568. -striplib=
  20569. -old_striplib=
  20570. -{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  20571. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  20572. -if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  20573. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  20574. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  20575. - { echo "$as_me:$LINENO: result: yes" >&5
  20576. -echo "${ECHO_T}yes" >&6; }
  20577. -else
  20578. -# FIXME - insert some real tests, host_os isn't really good enough
  20579. - case $host_os in
  20580. - darwin*)
  20581. - if test -n "$STRIP" ; then
  20582. - striplib="$STRIP -x"
  20583. - old_striplib="$STRIP -S"
  20584. - { echo "$as_me:$LINENO: result: yes" >&5
  20585. -echo "${ECHO_T}yes" >&6; }
  20586. - else
  20587. - { echo "$as_me:$LINENO: result: no" >&5
  20588. -echo "${ECHO_T}no" >&6; }
  20589. - fi
  20590. - ;;
  20591. - *)
  20592. - { echo "$as_me:$LINENO: result: no" >&5
  20593. -echo "${ECHO_T}no" >&6; }
  20594. - ;;
  20595. - esac
  20596. -fi
  20597. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20598. +# Shell to use when invoking shell scripts.
  20599. +SHELL=$lt_SHELL
  20600. +# Whether or not to build shared libraries.
  20601. +build_libtool_libs=$enable_shared
  20602. +# Whether or not to build static libraries.
  20603. +build_old_libs=$enable_static
  20604. +# Whether or not to add -lc for building shared libraries.
  20605. +build_libtool_need_lc=$archive_cmds_need_lc
  20606. +# Whether or not to disallow shared libs when runtime libs are static
  20607. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20608. +# Whether or not to optimize for fast installation.
  20609. +fast_install=$enable_fast_install
  20610. +# The host system.
  20611. +host_alias=$host_alias
  20612. +host=$host
  20613. +host_os=$host_os
  20614. +# The build system.
  20615. +build_alias=$build_alias
  20616. +build=$build
  20617. +build_os=$build_os
  20618. +# An echo program that does not interpret backslashes.
  20619. +echo=$lt_echo
  20620. +# The archiver.
  20621. +AR=$lt_AR
  20622. +AR_FLAGS=$lt_AR_FLAGS
  20623. +# A C compiler.
  20624. +LTCC=$lt_LTCC
  20625. - # Report which library types will actually be built
  20626. - { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  20627. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  20628. - { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  20629. -echo "${ECHO_T}$can_build_shared" >&6; }
  20630. +# LTCC compiler flags.
  20631. +LTCFLAGS=$lt_LTCFLAGS
  20632. - { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  20633. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  20634. - test "$can_build_shared" = "no" && enable_shared=no
  20635. +# A language-specific compiler.
  20636. +CC=$lt_compiler
  20637. - # On AIX, shared libraries and static libraries use the same namespace, and
  20638. - # are all built from PIC.
  20639. - case $host_os in
  20640. - aix3*)
  20641. - test "$enable_shared" = yes && enable_static=no
  20642. - if test -n "$RANLIB"; then
  20643. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  20644. - postinstall_cmds='$RANLIB $lib'
  20645. - fi
  20646. - ;;
  20647. +# Is the compiler the GNU C compiler?
  20648. +with_gcc=$GCC
  20649. - aix4* | aix5*)
  20650. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  20651. - test "$enable_shared" = yes && enable_static=no
  20652. - fi
  20653. - ;;
  20654. - esac
  20655. - { echo "$as_me:$LINENO: result: $enable_shared" >&5
  20656. -echo "${ECHO_T}$enable_shared" >&6; }
  20657. +# An ERE matcher.
  20658. +EGREP=$lt_EGREP
  20659. - { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  20660. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  20661. - # Make sure either enable_shared or enable_static is yes.
  20662. - test "$enable_shared" = yes || enable_static=yes
  20663. - { echo "$as_me:$LINENO: result: $enable_static" >&5
  20664. -echo "${ECHO_T}$enable_static" >&6; }
  20665. +# The linker used to build libraries.
  20666. +LD=$lt_LD
  20667. +# Whether we need hard or soft links.
  20668. +LN_S=$lt_LN_S
  20669. +# A BSD-compatible nm program.
  20670. +NM=$lt_NM
  20671. +# A symbol stripping program
  20672. +STRIP=$lt_STRIP
  20673. -fi
  20674. -ac_ext=c
  20675. -ac_cpp='$CPP $CPPFLAGS'
  20676. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20677. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20678. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20679. +# Used to examine libraries when file_magic_cmd begins "file"
  20680. +MAGIC_CMD=$MAGIC_CMD
  20681. -CC="$lt_save_CC"
  20682. +# Used on cygwin: DLL creation program.
  20683. +DLLTOOL="$DLLTOOL"
  20684. +# Used on cygwin: object dumper.
  20685. +OBJDUMP="$OBJDUMP"
  20686. +# Used on cygwin: assembler.
  20687. +AS="$AS"
  20688. +# The name of the directory that contains temporary libtool files.
  20689. +objdir=$objdir
  20690. +# How to create reloadable object files.
  20691. +reload_flag=$lt_reload_flag
  20692. +reload_cmds=$lt_reload_cmds
  20693. +# How to pass a linker flag through the compiler.
  20694. +wl=$lt_lt_prog_compiler_wl
  20695. +# Object file suffix (normally "o").
  20696. +objext="$ac_objext"
  20697. +# Old archive suffix (normally "a").
  20698. +libext="$libext"
  20699. +# Shared library suffix (normally ".so").
  20700. +shrext_cmds='$shrext_cmds'
  20701. +# Executable file suffix (normally "").
  20702. +exeext="$exeext"
  20703. +# Additional compiler flags for building library objects.
  20704. +pic_flag=$lt_lt_prog_compiler_pic
  20705. +pic_mode=$pic_mode
  20706. +# What is the maximum length of a command?
  20707. +max_cmd_len=$lt_cv_sys_max_cmd_len
  20708. +# Does compiler simultaneously support -c and -o options?
  20709. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20710. - ac_config_commands="$ac_config_commands libtool"
  20711. +# Must we lock files when doing compilation?
  20712. +need_locks=$lt_need_locks
  20713. +# Do we need the lib prefix for modules?
  20714. +need_lib_prefix=$need_lib_prefix
  20715. +# Do we need a version for libraries?
  20716. +need_version=$need_version
  20717. +# Whether dlopen is supported.
  20718. +dlopen_support=$enable_dlopen
  20719. -# Only expand once:
  20720. +# Whether dlopen of programs is supported.
  20721. +dlopen_self=$enable_dlopen_self
  20722. +# Whether dlopen of statically linked programs is supported.
  20723. +dlopen_self_static=$enable_dlopen_self_static
  20724. -ac_ext=c
  20725. -ac_cpp='$CPP $CPPFLAGS'
  20726. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20727. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20728. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20729. -if test -n "$ac_tool_prefix"; then
  20730. - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  20731. -set dummy ${ac_tool_prefix}gcc; ac_word=$2
  20732. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20733. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20734. -if test "${ac_cv_prog_CC+set}" = set; then
  20735. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20736. -else
  20737. - if test -n "$CC"; then
  20738. - ac_cv_prog_CC="$CC" # Let the user override the test.
  20739. -else
  20740. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20741. -for as_dir in $PATH
  20742. -do
  20743. - IFS=$as_save_IFS
  20744. - test -z "$as_dir" && as_dir=.
  20745. - for ac_exec_ext in '' $ac_executable_extensions; do
  20746. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20747. - ac_cv_prog_CC="${ac_tool_prefix}gcc"
  20748. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20749. - break 2
  20750. - fi
  20751. -done
  20752. -done
  20753. -IFS=$as_save_IFS
  20754. +# Compiler flag to prevent dynamic linking.
  20755. +link_static_flag=$lt_lt_prog_compiler_static
  20756. -fi
  20757. -fi
  20758. -CC=$ac_cv_prog_CC
  20759. -if test -n "$CC"; then
  20760. - { echo "$as_me:$LINENO: result: $CC" >&5
  20761. -echo "${ECHO_T}$CC" >&6; }
  20762. -else
  20763. - { echo "$as_me:$LINENO: result: no" >&5
  20764. -echo "${ECHO_T}no" >&6; }
  20765. -fi
  20766. +# Compiler flag to turn off builtin functions.
  20767. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20768. +# Compiler flag to allow reflexive dlopens.
  20769. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20770. -fi
  20771. -if test -z "$ac_cv_prog_CC"; then
  20772. - ac_ct_CC=$CC
  20773. - # Extract the first word of "gcc", so it can be a program name with args.
  20774. -set dummy gcc; ac_word=$2
  20775. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20776. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20777. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  20778. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20779. -else
  20780. - if test -n "$ac_ct_CC"; then
  20781. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  20782. -else
  20783. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20784. -for as_dir in $PATH
  20785. -do
  20786. - IFS=$as_save_IFS
  20787. - test -z "$as_dir" && as_dir=.
  20788. - for ac_exec_ext in '' $ac_executable_extensions; do
  20789. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20790. - ac_cv_prog_ac_ct_CC="gcc"
  20791. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20792. - break 2
  20793. - fi
  20794. -done
  20795. -done
  20796. -IFS=$as_save_IFS
  20797. +# Compiler flag to generate shared objects directly from archives.
  20798. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20799. -fi
  20800. -fi
  20801. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  20802. -if test -n "$ac_ct_CC"; then
  20803. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  20804. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  20805. -else
  20806. - { echo "$as_me:$LINENO: result: no" >&5
  20807. -echo "${ECHO_T}no" >&6; }
  20808. -fi
  20809. +# Compiler flag to generate thread-safe objects.
  20810. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  20811. - if test "x$ac_ct_CC" = x; then
  20812. - CC=""
  20813. - else
  20814. - case $cross_compiling:$ac_tool_warned in
  20815. -yes:)
  20816. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  20817. -whose name does not start with the host triplet. If you think this
  20818. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  20819. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  20820. -whose name does not start with the host triplet. If you think this
  20821. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  20822. -ac_tool_warned=yes ;;
  20823. -esac
  20824. - CC=$ac_ct_CC
  20825. - fi
  20826. -else
  20827. - CC="$ac_cv_prog_CC"
  20828. -fi
  20829. +# Library versioning type.
  20830. +version_type=$version_type
  20831. -if test -z "$CC"; then
  20832. - if test -n "$ac_tool_prefix"; then
  20833. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  20834. -set dummy ${ac_tool_prefix}cc; ac_word=$2
  20835. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20836. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20837. -if test "${ac_cv_prog_CC+set}" = set; then
  20838. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20839. -else
  20840. - if test -n "$CC"; then
  20841. - ac_cv_prog_CC="$CC" # Let the user override the test.
  20842. -else
  20843. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20844. -for as_dir in $PATH
  20845. -do
  20846. - IFS=$as_save_IFS
  20847. - test -z "$as_dir" && as_dir=.
  20848. - for ac_exec_ext in '' $ac_executable_extensions; do
  20849. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20850. - ac_cv_prog_CC="${ac_tool_prefix}cc"
  20851. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20852. - break 2
  20853. - fi
  20854. -done
  20855. -done
  20856. -IFS=$as_save_IFS
  20857. +# Format of library name prefix.
  20858. +libname_spec=$lt_libname_spec
  20859. -fi
  20860. -fi
  20861. -CC=$ac_cv_prog_CC
  20862. -if test -n "$CC"; then
  20863. - { echo "$as_me:$LINENO: result: $CC" >&5
  20864. -echo "${ECHO_T}$CC" >&6; }
  20865. -else
  20866. - { echo "$as_me:$LINENO: result: no" >&5
  20867. -echo "${ECHO_T}no" >&6; }
  20868. -fi
  20869. +# List of archive names. First name is the real one, the rest are links.
  20870. +# The last name is the one that the linker finds with -lNAME.
  20871. +library_names_spec=$lt_library_names_spec
  20872. +# The coded name of the library, if different from the real name.
  20873. +soname_spec=$lt_soname_spec
  20874. - fi
  20875. -fi
  20876. -if test -z "$CC"; then
  20877. - # Extract the first word of "cc", so it can be a program name with args.
  20878. -set dummy cc; ac_word=$2
  20879. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20880. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20881. -if test "${ac_cv_prog_CC+set}" = set; then
  20882. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20883. -else
  20884. - if test -n "$CC"; then
  20885. - ac_cv_prog_CC="$CC" # Let the user override the test.
  20886. -else
  20887. - ac_prog_rejected=no
  20888. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20889. -for as_dir in $PATH
  20890. -do
  20891. - IFS=$as_save_IFS
  20892. - test -z "$as_dir" && as_dir=.
  20893. - for ac_exec_ext in '' $ac_executable_extensions; do
  20894. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20895. - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  20896. - ac_prog_rejected=yes
  20897. - continue
  20898. - fi
  20899. - ac_cv_prog_CC="cc"
  20900. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20901. - break 2
  20902. - fi
  20903. -done
  20904. -done
  20905. -IFS=$as_save_IFS
  20906. +# Commands used to build and install an old-style archive.
  20907. +RANLIB=$lt_RANLIB
  20908. +old_archive_cmds=$lt_old_archive_cmds
  20909. +old_postinstall_cmds=$lt_old_postinstall_cmds
  20910. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20911. -if test $ac_prog_rejected = yes; then
  20912. - # We found a bogon in the path, so make sure we never use it.
  20913. - set dummy $ac_cv_prog_CC
  20914. - shift
  20915. - if test $# != 0; then
  20916. - # We chose a different compiler from the bogus one.
  20917. - # However, it has the same basename, so the bogon will be chosen
  20918. - # first if we set CC to just the basename; use the full file name.
  20919. - shift
  20920. - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  20921. - fi
  20922. -fi
  20923. -fi
  20924. -fi
  20925. -CC=$ac_cv_prog_CC
  20926. -if test -n "$CC"; then
  20927. - { echo "$as_me:$LINENO: result: $CC" >&5
  20928. -echo "${ECHO_T}$CC" >&6; }
  20929. -else
  20930. - { echo "$as_me:$LINENO: result: no" >&5
  20931. -echo "${ECHO_T}no" >&6; }
  20932. -fi
  20933. +# Create an old-style archive from a shared archive.
  20934. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20935. +# Create a temporary old-style archive to link instead of a shared archive.
  20936. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20937. -fi
  20938. -if test -z "$CC"; then
  20939. - if test -n "$ac_tool_prefix"; then
  20940. - for ac_prog in cl.exe
  20941. - do
  20942. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20943. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20944. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20945. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20946. -if test "${ac_cv_prog_CC+set}" = set; then
  20947. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20948. -else
  20949. - if test -n "$CC"; then
  20950. - ac_cv_prog_CC="$CC" # Let the user override the test.
  20951. -else
  20952. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20953. -for as_dir in $PATH
  20954. -do
  20955. - IFS=$as_save_IFS
  20956. - test -z "$as_dir" && as_dir=.
  20957. - for ac_exec_ext in '' $ac_executable_extensions; do
  20958. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20959. - ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  20960. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20961. - break 2
  20962. - fi
  20963. -done
  20964. -done
  20965. -IFS=$as_save_IFS
  20966. +# Commands used to build and install a shared archive.
  20967. +archive_cmds=$lt_archive_cmds
  20968. +archive_expsym_cmds=$lt_archive_expsym_cmds
  20969. +postinstall_cmds=$lt_postinstall_cmds
  20970. +postuninstall_cmds=$lt_postuninstall_cmds
  20971. -fi
  20972. -fi
  20973. -CC=$ac_cv_prog_CC
  20974. -if test -n "$CC"; then
  20975. - { echo "$as_me:$LINENO: result: $CC" >&5
  20976. -echo "${ECHO_T}$CC" >&6; }
  20977. -else
  20978. - { echo "$as_me:$LINENO: result: no" >&5
  20979. -echo "${ECHO_T}no" >&6; }
  20980. -fi
  20981. +# Commands used to build a loadable module (assumed same as above if empty)
  20982. +module_cmds=$lt_module_cmds
  20983. +module_expsym_cmds=$lt_module_expsym_cmds
  20984. +# Commands to strip libraries.
  20985. +old_striplib=$lt_old_striplib
  20986. +striplib=$lt_striplib
  20987. - test -n "$CC" && break
  20988. - done
  20989. -fi
  20990. -if test -z "$CC"; then
  20991. - ac_ct_CC=$CC
  20992. - for ac_prog in cl.exe
  20993. -do
  20994. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  20995. -set dummy $ac_prog; ac_word=$2
  20996. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  20997. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  20998. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  20999. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21000. -else
  21001. - if test -n "$ac_ct_CC"; then
  21002. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  21003. -else
  21004. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21005. -for as_dir in $PATH
  21006. -do
  21007. - IFS=$as_save_IFS
  21008. - test -z "$as_dir" && as_dir=.
  21009. - for ac_exec_ext in '' $ac_executable_extensions; do
  21010. - if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21011. - ac_cv_prog_ac_ct_CC="$ac_prog"
  21012. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21013. - break 2
  21014. - fi
  21015. -done
  21016. -done
  21017. -IFS=$as_save_IFS
  21018. +# Dependencies to place before the objects being linked to create a
  21019. +# shared library.
  21020. +predep_objects=$lt_predep_objects
  21021. +
  21022. +# Dependencies to place after the objects being linked to create a
  21023. +# shared library.
  21024. +postdep_objects=$lt_postdep_objects
  21025. +
  21026. +# Dependencies to place before the objects being linked to create a
  21027. +# shared library.
  21028. +predeps=$lt_predeps
  21029. +
  21030. +# Dependencies to place after the objects being linked to create a
  21031. +# shared library.
  21032. +postdeps=$lt_postdeps
  21033. +
  21034. +# The library search path used internally by the compiler when linking
  21035. +# a shared library.
  21036. +compiler_lib_search_path=$lt_compiler_lib_search_path
  21037. -fi
  21038. -fi
  21039. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  21040. -if test -n "$ac_ct_CC"; then
  21041. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  21042. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  21043. -else
  21044. - { echo "$as_me:$LINENO: result: no" >&5
  21045. -echo "${ECHO_T}no" >&6; }
  21046. -fi
  21047. +# Method to check whether dependent libraries are shared objects.
  21048. +deplibs_check_method=$lt_deplibs_check_method
  21049. +# Command to use when deplibs_check_method == file_magic.
  21050. +file_magic_cmd=$lt_file_magic_cmd
  21051. - test -n "$ac_ct_CC" && break
  21052. -done
  21053. +# Flag that allows shared libraries with undefined symbols to be built.
  21054. +allow_undefined_flag=$lt_allow_undefined_flag
  21055. - if test "x$ac_ct_CC" = x; then
  21056. - CC=""
  21057. - else
  21058. - case $cross_compiling:$ac_tool_warned in
  21059. -yes:)
  21060. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  21061. -whose name does not start with the host triplet. If you think this
  21062. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  21063. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  21064. -whose name does not start with the host triplet. If you think this
  21065. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  21066. -ac_tool_warned=yes ;;
  21067. -esac
  21068. - CC=$ac_ct_CC
  21069. - fi
  21070. -fi
  21071. +# Flag that forces no undefined symbols.
  21072. +no_undefined_flag=$lt_no_undefined_flag
  21073. -fi
  21074. +# Commands used to finish a libtool library installation in a directory.
  21075. +finish_cmds=$lt_finish_cmds
  21076. +# Same as above, but a single script fragment to be evaled but not shown.
  21077. +finish_eval=$lt_finish_eval
  21078. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  21079. -See \`config.log' for more details." >&5
  21080. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  21081. -See \`config.log' for more details." >&2;}
  21082. - { (exit 1); exit 1; }; }
  21083. +# Take the output of nm and produce a listing of raw symbols and C names.
  21084. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21085. -# Provide some information about the compiler.
  21086. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  21087. -ac_compiler=`set X $ac_compile; echo $2`
  21088. -{ (ac_try="$ac_compiler --version >&5"
  21089. -case "(($ac_try" in
  21090. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21091. - *) ac_try_echo=$ac_try;;
  21092. -esac
  21093. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21094. - (eval "$ac_compiler --version >&5") 2>&5
  21095. - ac_status=$?
  21096. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21097. - (exit $ac_status); }
  21098. -{ (ac_try="$ac_compiler -v >&5"
  21099. -case "(($ac_try" in
  21100. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21101. - *) ac_try_echo=$ac_try;;
  21102. -esac
  21103. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21104. - (eval "$ac_compiler -v >&5") 2>&5
  21105. - ac_status=$?
  21106. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21107. - (exit $ac_status); }
  21108. -{ (ac_try="$ac_compiler -V >&5"
  21109. -case "(($ac_try" in
  21110. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21111. - *) ac_try_echo=$ac_try;;
  21112. -esac
  21113. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21114. - (eval "$ac_compiler -V >&5") 2>&5
  21115. - ac_status=$?
  21116. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21117. - (exit $ac_status); }
  21118. +# Transform the output of nm in a proper C declaration
  21119. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21120. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  21121. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  21122. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  21123. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21124. -else
  21125. - cat >conftest.$ac_ext <<_ACEOF
  21126. -/* confdefs.h. */
  21127. -_ACEOF
  21128. -cat confdefs.h >>conftest.$ac_ext
  21129. -cat >>conftest.$ac_ext <<_ACEOF
  21130. -/* end confdefs.h. */
  21131. +# Transform the output of nm in a C name address pair
  21132. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21133. -int
  21134. -main ()
  21135. -{
  21136. -#ifndef __GNUC__
  21137. - choke me
  21138. -#endif
  21139. +# This is the shared library runtime path variable.
  21140. +runpath_var=$runpath_var
  21141. - ;
  21142. - return 0;
  21143. -}
  21144. -_ACEOF
  21145. -rm -f conftest.$ac_objext
  21146. -if { (ac_try="$ac_compile"
  21147. -case "(($ac_try" in
  21148. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21149. - *) ac_try_echo=$ac_try;;
  21150. -esac
  21151. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21152. - (eval "$ac_compile") 2>conftest.er1
  21153. - ac_status=$?
  21154. - grep -v '^ *+' conftest.er1 >conftest.err
  21155. - rm -f conftest.er1
  21156. - cat conftest.err >&5
  21157. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21158. - (exit $ac_status); } && {
  21159. - test -z "$ac_c_werror_flag" ||
  21160. - test ! -s conftest.err
  21161. - } && test -s conftest.$ac_objext; then
  21162. - ac_compiler_gnu=yes
  21163. -else
  21164. - echo "$as_me: failed program was:" >&5
  21165. -sed 's/^/| /' conftest.$ac_ext >&5
  21166. +# This is the shared library path variable.
  21167. +shlibpath_var=$shlibpath_var
  21168. - ac_compiler_gnu=no
  21169. -fi
  21170. +# Is shlibpath searched before the hard-coded library search path?
  21171. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21172. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21173. -ac_cv_c_compiler_gnu=$ac_compiler_gnu
  21174. +# How to hardcode a shared library path into an executable.
  21175. +hardcode_action=$hardcode_action
  21176. -fi
  21177. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  21178. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  21179. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  21180. -ac_test_CFLAGS=${CFLAGS+set}
  21181. -ac_save_CFLAGS=$CFLAGS
  21182. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  21183. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  21184. -if test "${ac_cv_prog_cc_g+set}" = set; then
  21185. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21186. -else
  21187. - ac_save_c_werror_flag=$ac_c_werror_flag
  21188. - ac_c_werror_flag=yes
  21189. - ac_cv_prog_cc_g=no
  21190. - CFLAGS="-g"
  21191. - cat >conftest.$ac_ext <<_ACEOF
  21192. -/* confdefs.h. */
  21193. -_ACEOF
  21194. -cat confdefs.h >>conftest.$ac_ext
  21195. -cat >>conftest.$ac_ext <<_ACEOF
  21196. -/* end confdefs.h. */
  21197. +# Whether we should hardcode library paths into libraries.
  21198. +hardcode_into_libs=$hardcode_into_libs
  21199. -int
  21200. -main ()
  21201. -{
  21202. +# Flag to hardcode \$libdir into a binary during linking.
  21203. +# This must work even if \$libdir does not exist.
  21204. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  21205. - ;
  21206. - return 0;
  21207. -}
  21208. -_ACEOF
  21209. -rm -f conftest.$ac_objext
  21210. -if { (ac_try="$ac_compile"
  21211. -case "(($ac_try" in
  21212. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21213. - *) ac_try_echo=$ac_try;;
  21214. -esac
  21215. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21216. - (eval "$ac_compile") 2>conftest.er1
  21217. - ac_status=$?
  21218. - grep -v '^ *+' conftest.er1 >conftest.err
  21219. - rm -f conftest.er1
  21220. - cat conftest.err >&5
  21221. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21222. - (exit $ac_status); } && {
  21223. - test -z "$ac_c_werror_flag" ||
  21224. - test ! -s conftest.err
  21225. - } && test -s conftest.$ac_objext; then
  21226. - ac_cv_prog_cc_g=yes
  21227. -else
  21228. - echo "$as_me: failed program was:" >&5
  21229. -sed 's/^/| /' conftest.$ac_ext >&5
  21230. +# If ld is used when linking, flag to hardcode \$libdir into
  21231. +# a binary during linking. This must work even if \$libdir does
  21232. +# not exist.
  21233. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  21234. - CFLAGS=""
  21235. - cat >conftest.$ac_ext <<_ACEOF
  21236. -/* confdefs.h. */
  21237. -_ACEOF
  21238. -cat confdefs.h >>conftest.$ac_ext
  21239. -cat >>conftest.$ac_ext <<_ACEOF
  21240. -/* end confdefs.h. */
  21241. +# Whether we need a single -rpath flag with a separated argument.
  21242. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  21243. -int
  21244. -main ()
  21245. -{
  21246. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  21247. +# resulting binary.
  21248. +hardcode_direct=$hardcode_direct
  21249. - ;
  21250. - return 0;
  21251. -}
  21252. -_ACEOF
  21253. -rm -f conftest.$ac_objext
  21254. -if { (ac_try="$ac_compile"
  21255. -case "(($ac_try" in
  21256. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21257. - *) ac_try_echo=$ac_try;;
  21258. -esac
  21259. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21260. - (eval "$ac_compile") 2>conftest.er1
  21261. - ac_status=$?
  21262. - grep -v '^ *+' conftest.er1 >conftest.err
  21263. - rm -f conftest.er1
  21264. - cat conftest.err >&5
  21265. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21266. - (exit $ac_status); } && {
  21267. - test -z "$ac_c_werror_flag" ||
  21268. - test ! -s conftest.err
  21269. - } && test -s conftest.$ac_objext; then
  21270. - :
  21271. -else
  21272. - echo "$as_me: failed program was:" >&5
  21273. -sed 's/^/| /' conftest.$ac_ext >&5
  21274. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  21275. +# resulting binary.
  21276. +hardcode_minus_L=$hardcode_minus_L
  21277. - ac_c_werror_flag=$ac_save_c_werror_flag
  21278. - CFLAGS="-g"
  21279. - cat >conftest.$ac_ext <<_ACEOF
  21280. -/* confdefs.h. */
  21281. -_ACEOF
  21282. -cat confdefs.h >>conftest.$ac_ext
  21283. -cat >>conftest.$ac_ext <<_ACEOF
  21284. -/* end confdefs.h. */
  21285. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  21286. +# the resulting binary.
  21287. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  21288. -int
  21289. -main ()
  21290. -{
  21291. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  21292. +# and all subsequent libraries and executables linked against it.
  21293. +hardcode_automatic=$hardcode_automatic
  21294. - ;
  21295. - return 0;
  21296. -}
  21297. -_ACEOF
  21298. -rm -f conftest.$ac_objext
  21299. -if { (ac_try="$ac_compile"
  21300. -case "(($ac_try" in
  21301. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21302. - *) ac_try_echo=$ac_try;;
  21303. -esac
  21304. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21305. - (eval "$ac_compile") 2>conftest.er1
  21306. - ac_status=$?
  21307. - grep -v '^ *+' conftest.er1 >conftest.err
  21308. - rm -f conftest.er1
  21309. - cat conftest.err >&5
  21310. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21311. - (exit $ac_status); } && {
  21312. - test -z "$ac_c_werror_flag" ||
  21313. - test ! -s conftest.err
  21314. - } && test -s conftest.$ac_objext; then
  21315. - ac_cv_prog_cc_g=yes
  21316. -else
  21317. - echo "$as_me: failed program was:" >&5
  21318. -sed 's/^/| /' conftest.$ac_ext >&5
  21319. +# Variables whose values should be saved in libtool wrapper scripts and
  21320. +# restored at relink time.
  21321. +variables_saved_for_relink="$variables_saved_for_relink"
  21322. +# Whether libtool must link a program against all its dependency libraries.
  21323. +link_all_deplibs=$link_all_deplibs
  21324. -fi
  21325. +# Compile-time system search path for libraries
  21326. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21327. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21328. -fi
  21329. +# Run-time system search path for libraries
  21330. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21331. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21332. -fi
  21333. +# Fix the shell variable \$srcfile for the compiler.
  21334. +fix_srcfile_path="$fix_srcfile_path"
  21335. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21336. - ac_c_werror_flag=$ac_save_c_werror_flag
  21337. -fi
  21338. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  21339. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  21340. -if test "$ac_test_CFLAGS" = set; then
  21341. - CFLAGS=$ac_save_CFLAGS
  21342. -elif test $ac_cv_prog_cc_g = yes; then
  21343. - if test "$GCC" = yes; then
  21344. - CFLAGS="-g -O2"
  21345. - else
  21346. - CFLAGS="-g"
  21347. - fi
  21348. -else
  21349. - if test "$GCC" = yes; then
  21350. - CFLAGS="-O2"
  21351. - else
  21352. - CFLAGS=
  21353. - fi
  21354. -fi
  21355. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  21356. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  21357. -if test "${ac_cv_prog_cc_c89+set}" = set; then
  21358. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21359. -else
  21360. - ac_cv_prog_cc_c89=no
  21361. -ac_save_CC=$CC
  21362. -cat >conftest.$ac_ext <<_ACEOF
  21363. -/* confdefs.h. */
  21364. -_ACEOF
  21365. -cat confdefs.h >>conftest.$ac_ext
  21366. -cat >>conftest.$ac_ext <<_ACEOF
  21367. -/* end confdefs.h. */
  21368. -#include <stdarg.h>
  21369. -#include <stdio.h>
  21370. -#include <sys/types.h>
  21371. -#include <sys/stat.h>
  21372. -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  21373. -struct buf { int x; };
  21374. -FILE * (*rcsopen) (struct buf *, struct stat *, int);
  21375. -static char *e (p, i)
  21376. - char **p;
  21377. - int i;
  21378. -{
  21379. - return p[i];
  21380. -}
  21381. -static char *f (char * (*g) (char **, int), char **p, ...)
  21382. -{
  21383. - char *s;
  21384. - va_list v;
  21385. - va_start (v,p);
  21386. - s = g (p, va_arg (v,int));
  21387. - va_end (v);
  21388. - return s;
  21389. -}
  21390. +# Set to yes if exported symbols are required.
  21391. +always_export_symbols=$always_export_symbols
  21392. -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  21393. - function prototypes and stuff, but not '\xHH' hex character constants.
  21394. - These don't provoke an error unfortunately, instead are silently treated
  21395. - as 'x'. The following induces an error, until -std is added to get
  21396. - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  21397. - array size at least. It's necessary to write '\x00'==0 to get something
  21398. - that's true only with -std. */
  21399. -int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  21400. +# The commands to list exported symbols.
  21401. +export_symbols_cmds=$lt_export_symbols_cmds
  21402. -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  21403. - inside strings and character constants. */
  21404. -#define FOO(x) 'x'
  21405. -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  21406. +# The commands to extract the exported symbol list from a shared archive.
  21407. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21408. -int test (int i, double x);
  21409. -struct s1 {int (*f) (int a);};
  21410. -struct s2 {int (*f) (double a);};
  21411. -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  21412. -int argc;
  21413. -char **argv;
  21414. -int
  21415. -main ()
  21416. -{
  21417. -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  21418. - ;
  21419. - return 0;
  21420. -}
  21421. -_ACEOF
  21422. -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  21423. - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  21424. -do
  21425. - CC="$ac_save_CC $ac_arg"
  21426. - rm -f conftest.$ac_objext
  21427. -if { (ac_try="$ac_compile"
  21428. -case "(($ac_try" in
  21429. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21430. - *) ac_try_echo=$ac_try;;
  21431. -esac
  21432. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21433. - (eval "$ac_compile") 2>conftest.er1
  21434. - ac_status=$?
  21435. - grep -v '^ *+' conftest.er1 >conftest.err
  21436. - rm -f conftest.er1
  21437. - cat conftest.err >&5
  21438. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21439. - (exit $ac_status); } && {
  21440. - test -z "$ac_c_werror_flag" ||
  21441. - test ! -s conftest.err
  21442. - } && test -s conftest.$ac_objext; then
  21443. - ac_cv_prog_cc_c89=$ac_arg
  21444. -else
  21445. - echo "$as_me: failed program was:" >&5
  21446. -sed 's/^/| /' conftest.$ac_ext >&5
  21447. +# Symbols that should not be listed in the preloaded symbols.
  21448. +exclude_expsyms=$lt_exclude_expsyms
  21449. +
  21450. +# Symbols that must always be exported.
  21451. +include_expsyms=$lt_include_expsyms
  21452. +
  21453. +# ### END LIBTOOL CONFIG
  21454. +
  21455. +__EOF__
  21456. + case $host_os in
  21457. + aix3*)
  21458. + cat <<\EOF >> "$cfgfile"
  21459. +
  21460. +# AIX sometimes has problems with the GCC collect2 program. For some
  21461. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  21462. +# vanish in a puff of smoke.
  21463. +if test "X${COLLECT_NAMES+set}" != Xset; then
  21464. + COLLECT_NAMES=
  21465. + export COLLECT_NAMES
  21466. fi
  21467. +EOF
  21468. + ;;
  21469. + esac
  21470. -rm -f core conftest.err conftest.$ac_objext
  21471. - test "x$ac_cv_prog_cc_c89" != "xno" && break
  21472. -done
  21473. -rm -f conftest.$ac_ext
  21474. -CC=$ac_save_CC
  21475. + # We use sed instead of cat because bash on DJGPP gets confused if
  21476. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21477. + # text mode, it properly converts lines to CR/LF. This bash problem
  21478. + # is reportedly fixed, but why not run on old versions too?
  21479. + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  21480. + mv -f "$cfgfile" "$ofile" || \
  21481. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21482. + chmod +x "$ofile"
  21483. +
  21484. +else
  21485. + # If there is no Makefile yet, we rely on a make rule to execute
  21486. + # `config.status --recheck' to rerun these tests and create the
  21487. + # libtool script then.
  21488. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  21489. + if test -f "$ltmain_in"; then
  21490. + test -f Makefile && make "$ltmain"
  21491. + fi
  21492. fi
  21493. -# AC_CACHE_VAL
  21494. -case "x$ac_cv_prog_cc_c89" in
  21495. - x)
  21496. - { echo "$as_me:$LINENO: result: none needed" >&5
  21497. -echo "${ECHO_T}none needed" >&6; } ;;
  21498. - xno)
  21499. - { echo "$as_me:$LINENO: result: unsupported" >&5
  21500. -echo "${ECHO_T}unsupported" >&6; } ;;
  21501. - *)
  21502. - CC="$CC $ac_cv_prog_cc_c89"
  21503. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  21504. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  21505. -esac
  21506. ac_ext=c
  21507. @@ -10682,368 +10503,446 @@
  21508. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21509. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21510. -depcc="$CC" am_compiler_list=
  21511. +CC="$lt_save_CC"
  21512. -{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  21513. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  21514. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  21515. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21516. -else
  21517. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21518. - # We make a subdir and do the tests there. Otherwise we can end up
  21519. - # making bogus files that we don't know about and never remove. For
  21520. - # instance it was reported that on HP-UX the gcc test will end up
  21521. - # making a dummy file named `D' -- because `-MD' means `put the output
  21522. - # in D'.
  21523. - mkdir conftest.dir
  21524. - # Copy depcomp to subdir because otherwise we won't find it if we're
  21525. - # using a relative directory.
  21526. - cp "$am_depcomp" conftest.dir
  21527. - cd conftest.dir
  21528. - # We will build objects and dependencies in a subdirectory because
  21529. - # it helps to detect inapplicable dependency modes. For instance
  21530. - # both Tru64's cc and ICC support -MD to output dependencies as a
  21531. - # side effect of compilation, but ICC will put the dependencies in
  21532. - # the current directory while Tru64 will put them in the object
  21533. - # directory.
  21534. - mkdir sub
  21535. - am_cv_CC_dependencies_compiler_type=none
  21536. - if test "$am_compiler_list" = ""; then
  21537. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21538. - fi
  21539. - for depmode in $am_compiler_list; do
  21540. - # Setup a source with many dependencies, because some compilers
  21541. - # like to wrap large dependency lists on column 80 (with \), and
  21542. - # we should not choose a depcomp mode which is confused by this.
  21543. - #
  21544. - # We need to recreate these files for each test, as the compiler may
  21545. - # overwrite some of them when testing with obscure command lines.
  21546. - # This happens at least with the AIX C compiler.
  21547. - : > sub/conftest.c
  21548. - for i in 1 2 3 4 5 6; do
  21549. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21550. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21551. - # Solaris 8's {/usr,}/bin/sh.
  21552. - touch sub/conftst$i.h
  21553. - done
  21554. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21555. +# Check whether --with-tags was given.
  21556. +if test "${with_tags+set}" = set; then
  21557. + withval=$with_tags; tagnames="$withval"
  21558. +fi
  21559. - case $depmode in
  21560. - nosideeffect)
  21561. - # after this tag, mechanisms are not by side-effect, so they'll
  21562. - # only be used when explicitly requested
  21563. - if test "x$enable_dependency_tracking" = xyes; then
  21564. - continue
  21565. - else
  21566. - break
  21567. - fi
  21568. - ;;
  21569. - none) break ;;
  21570. +
  21571. +if test -f "$ltmain" && test -n "$tagnames"; then
  21572. + if test ! -f "${ofile}"; then
  21573. + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  21574. +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  21575. + fi
  21576. +
  21577. + if test -z "$LTCC"; then
  21578. + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  21579. + if test -z "$LTCC"; then
  21580. + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  21581. +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  21582. + else
  21583. + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  21584. +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  21585. + fi
  21586. + fi
  21587. + if test -z "$LTCFLAGS"; then
  21588. + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  21589. + fi
  21590. +
  21591. + # Extract list of available tagged configurations in $ofile.
  21592. + # Note that this assumes the entire list is on one line.
  21593. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  21594. +
  21595. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21596. + for tagname in $tagnames; do
  21597. + IFS="$lt_save_ifs"
  21598. + # Check whether tagname contains only valid characters
  21599. + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  21600. + "") ;;
  21601. + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  21602. +echo "$as_me: error: invalid tag name: $tagname" >&2;}
  21603. + { (exit 1); exit 1; }; }
  21604. + ;;
  21605. esac
  21606. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21607. - # mode. It turns out that the SunPro C++ compiler does not properly
  21608. - # handle `-M -o', and we need to detect this.
  21609. - if depmode=$depmode \
  21610. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  21611. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21612. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  21613. - >/dev/null 2>conftest.err &&
  21614. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21615. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  21616. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21617. - # icc doesn't choke on unknown options, it will just issue warnings
  21618. - # or remarks (even with -Werror). So we grep stderr for any message
  21619. - # that says an option was ignored or not supported.
  21620. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  21621. - # icc: Command line warning: ignoring option '-M'; no argument required
  21622. - # The diagnosis changed in icc 8.0:
  21623. - # icc: Command line remark: option '-MP' not supported
  21624. - if (grep 'ignoring option' conftest.err ||
  21625. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21626. - am_cv_CC_dependencies_compiler_type=$depmode
  21627. - break
  21628. - fi
  21629. +
  21630. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  21631. + then
  21632. + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  21633. +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  21634. + { (exit 1); exit 1; }; }
  21635. fi
  21636. - done
  21637. - cd ..
  21638. - rm -rf conftest.dir
  21639. -else
  21640. - am_cv_CC_dependencies_compiler_type=none
  21641. -fi
  21642. + # Update the list of available tags.
  21643. + if test -n "$tagname"; then
  21644. + echo appending configuration tag \"$tagname\" to $ofile
  21645. +
  21646. + case $tagname in
  21647. + CXX)
  21648. + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  21649. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  21650. + (test "X$CXX" != "Xg++"))) ; then
  21651. + ac_ext=cpp
  21652. +ac_cpp='$CXXCPP $CPPFLAGS'
  21653. +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21654. +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21655. +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21656. -fi
  21657. -{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  21658. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  21659. -CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  21660. -if
  21661. - test "x$enable_dependency_tracking" != xno \
  21662. - && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  21663. - am__fastdepCC_TRUE=
  21664. - am__fastdepCC_FALSE='#'
  21665. -else
  21666. - am__fastdepCC_TRUE='#'
  21667. - am__fastdepCC_FALSE=
  21668. -fi
  21669. +archive_cmds_need_lc_CXX=no
  21670. +allow_undefined_flag_CXX=
  21671. +always_export_symbols_CXX=no
  21672. +archive_expsym_cmds_CXX=
  21673. +export_dynamic_flag_spec_CXX=
  21674. +hardcode_direct_CXX=no
  21675. +hardcode_libdir_flag_spec_CXX=
  21676. +hardcode_libdir_flag_spec_ld_CXX=
  21677. +hardcode_libdir_separator_CXX=
  21678. +hardcode_minus_L_CXX=no
  21679. +hardcode_shlibpath_var_CXX=unsupported
  21680. +hardcode_automatic_CXX=no
  21681. +module_cmds_CXX=
  21682. +module_expsym_cmds_CXX=
  21683. +link_all_deplibs_CXX=unknown
  21684. +old_archive_cmds_CXX=$old_archive_cmds
  21685. +no_undefined_flag_CXX=
  21686. +whole_archive_flag_spec_CXX=
  21687. +enable_shared_with_static_runtimes_CXX=no
  21688. +
  21689. +# Dependencies to place before and after the object being linked:
  21690. +predep_objects_CXX=
  21691. +postdep_objects_CXX=
  21692. +predeps_CXX=
  21693. +postdeps_CXX=
  21694. +compiler_lib_search_path_CXX=
  21695. +# Source file extension for C++ test sources.
  21696. +ac_ext=cpp
  21697. -if test "x$CC" != xcc; then
  21698. - { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  21699. -echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  21700. -else
  21701. - { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  21702. -echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  21703. -fi
  21704. -set dummy $CC; ac_cc=`echo $2 |
  21705. - sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  21706. -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  21707. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21708. -else
  21709. - cat >conftest.$ac_ext <<_ACEOF
  21710. -/* confdefs.h. */
  21711. -_ACEOF
  21712. -cat confdefs.h >>conftest.$ac_ext
  21713. -cat >>conftest.$ac_ext <<_ACEOF
  21714. -/* end confdefs.h. */
  21715. +# Object file extension for compiled C++ test sources.
  21716. +objext=o
  21717. +objext_CXX=$objext
  21718. -int
  21719. -main ()
  21720. -{
  21721. +# Code to be used in simple compile tests
  21722. +lt_simple_compile_test_code="int some_variable = 0;\n"
  21723. - ;
  21724. - return 0;
  21725. -}
  21726. -_ACEOF
  21727. -# Make sure it works both with $CC and with simple cc.
  21728. -# We do the test twice because some compilers refuse to overwrite an
  21729. -# existing .o file with -o, though they will create one.
  21730. -ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  21731. -rm -f conftest2.*
  21732. -if { (case "(($ac_try" in
  21733. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21734. - *) ac_try_echo=$ac_try;;
  21735. -esac
  21736. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21737. - (eval "$ac_try") 2>&5
  21738. - ac_status=$?
  21739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21740. - (exit $ac_status); } &&
  21741. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  21742. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21743. - *) ac_try_echo=$ac_try;;
  21744. -esac
  21745. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21746. - (eval "$ac_try") 2>&5
  21747. - ac_status=$?
  21748. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21749. - (exit $ac_status); };
  21750. -then
  21751. - eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  21752. - if test "x$CC" != xcc; then
  21753. - # Test first that cc exists at all.
  21754. - if { ac_try='cc -c conftest.$ac_ext >&5'
  21755. - { (case "(($ac_try" in
  21756. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21757. - *) ac_try_echo=$ac_try;;
  21758. -esac
  21759. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21760. - (eval "$ac_try") 2>&5
  21761. - ac_status=$?
  21762. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21763. - (exit $ac_status); }; }; then
  21764. - ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  21765. - rm -f conftest2.*
  21766. - if { (case "(($ac_try" in
  21767. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21768. - *) ac_try_echo=$ac_try;;
  21769. -esac
  21770. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21771. - (eval "$ac_try") 2>&5
  21772. - ac_status=$?
  21773. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21774. - (exit $ac_status); } &&
  21775. - test -f conftest2.$ac_objext && { (case "(($ac_try" in
  21776. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  21777. - *) ac_try_echo=$ac_try;;
  21778. -esac
  21779. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  21780. - (eval "$ac_try") 2>&5
  21781. - ac_status=$?
  21782. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21783. - (exit $ac_status); };
  21784. - then
  21785. - # cc works too.
  21786. - :
  21787. - else
  21788. - # cc exists but doesn't like -o.
  21789. - eval ac_cv_prog_cc_${ac_cc}_c_o=no
  21790. - fi
  21791. - fi
  21792. - fi
  21793. -else
  21794. - eval ac_cv_prog_cc_${ac_cc}_c_o=no
  21795. -fi
  21796. -rm -f core conftest*
  21797. +# Code to be used in simple link tests
  21798. +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  21799. -fi
  21800. -if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  21801. - { echo "$as_me:$LINENO: result: yes" >&5
  21802. -echo "${ECHO_T}yes" >&6; }
  21803. -else
  21804. - { echo "$as_me:$LINENO: result: no" >&5
  21805. -echo "${ECHO_T}no" >&6; }
  21806. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  21807. -cat >>confdefs.h <<\_ACEOF
  21808. -#define NO_MINUS_C_MINUS_O 1
  21809. -_ACEOF
  21810. +# If no C compiler was specified, use CC.
  21811. +LTCC=${LTCC-"$CC"}
  21812. -fi
  21813. +# If no C compiler flags were specified, use CFLAGS.
  21814. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  21815. -# FIXME: we rely on the cache variable name because
  21816. -# there is no other way.
  21817. -set dummy $CC
  21818. -ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  21819. -if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  21820. - # Losing compiler, so override with the script.
  21821. - # FIXME: It is wrong to rewrite CC.
  21822. - # But if we don't then we get into trouble of one sort or another.
  21823. - # A longer-term fix would be to have automake use am__CC in this case,
  21824. - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  21825. - CC="$am_aux_dir/compile $CC"
  21826. -fi
  21827. +# Allow CC to be a program name with arguments.
  21828. +compiler=$CC
  21829. -# compatibility for automake < 1.8
  21830. -if test -z "$mkdir_p"; then
  21831. - mkdir_p="../mkinstalldirs"
  21832. +# save warnings/boilerplate of simple test code
  21833. +ac_outfile=conftest.$ac_objext
  21834. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  21835. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21836. +_lt_compiler_boilerplate=`cat conftest.err`
  21837. +$rm conftest*
  21838. -fi
  21839. +ac_outfile=conftest.$ac_objext
  21840. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  21841. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  21842. +_lt_linker_boilerplate=`cat conftest.err`
  21843. +$rm conftest*
  21844. -case $target_os in
  21845. - *linux*) arch=linux;;
  21846. - *bsd*) arch=bsd;;
  21847. - *) arch=unknown;;
  21848. -esac
  21849. -if test "$ac_env_CFLAGS_set" != set; then
  21850. - CFLAGS="-Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing"
  21851. +# Allow CC to be a program name with arguments.
  21852. +lt_save_CC=$CC
  21853. +lt_save_LD=$LD
  21854. +lt_save_GCC=$GCC
  21855. +GCC=$GXX
  21856. +lt_save_with_gnu_ld=$with_gnu_ld
  21857. +lt_save_path_LD=$lt_cv_path_LD
  21858. +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  21859. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  21860. +else
  21861. + $as_unset lt_cv_prog_gnu_ld
  21862. fi
  21863. -
  21864. -# Check whether --enable-kernel-module was given.
  21865. -if test "${enable_kernel_module+set}" = set; then
  21866. - enableval=$enable_kernel_module;
  21867. +if test -n "${lt_cv_path_LDCXX+set}"; then
  21868. + lt_cv_path_LD=$lt_cv_path_LDCXX
  21869. +else
  21870. + $as_unset lt_cv_path_LD
  21871. fi
  21872. +test -z "${LDCXX+set}" || LD=$LDCXX
  21873. +CC=${CXX-"c++"}
  21874. +compiler=$CC
  21875. +compiler_CXX=$CC
  21876. +for cc_temp in $compiler""; do
  21877. + case $cc_temp in
  21878. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  21879. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  21880. + \-*) ;;
  21881. + *) break;;
  21882. + esac
  21883. +done
  21884. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  21885. -# Check whether --enable-lib was given.
  21886. -if test "${enable_lib+set}" = set; then
  21887. - enableval=$enable_lib;
  21888. -fi
  21889. -# Check whether --enable-util was given.
  21890. -if test "${enable_util+set}" = set; then
  21891. - enableval=$enable_util;
  21892. +# We don't want -fno-exception wen compiling C++ code, so set the
  21893. +# no_builtin_flag separately
  21894. +if test "$GXX" = yes; then
  21895. + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  21896. +else
  21897. + lt_prog_compiler_no_builtin_flag_CXX=
  21898. fi
  21899. -# Check whether --enable-example was given.
  21900. -if test "${enable_example+set}" = set; then
  21901. - enableval=$enable_example;
  21902. -fi
  21903. +if test "$GXX" = yes; then
  21904. + # Set up default GNU C++ configuration
  21905. -# Check whether --enable-mtab was given.
  21906. -if test "${enable_mtab+set}" = set; then
  21907. - enableval=$enable_mtab;
  21908. -fi
  21909. +# Check whether --with-gnu-ld was given.
  21910. +if test "${with_gnu_ld+set}" = set; then
  21911. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  21912. +else
  21913. + with_gnu_ld=no
  21914. +fi
  21915. +ac_prog=ld
  21916. +if test "$GCC" = yes; then
  21917. + # Check if gcc -print-prog-name=ld gives a path.
  21918. + { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  21919. +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  21920. + case $host in
  21921. + *-*-mingw*)
  21922. + # gcc leaves a trailing carriage return which upsets mingw
  21923. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  21924. + *)
  21925. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  21926. + esac
  21927. + case $ac_prog in
  21928. + # Accept absolute paths.
  21929. + [\\/]* | ?:[\\/]*)
  21930. + re_direlt='/[^/][^/]*/\.\./'
  21931. + # Canonicalize the pathname of ld
  21932. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  21933. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  21934. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  21935. + done
  21936. + test -z "$LD" && LD="$ac_prog"
  21937. + ;;
  21938. + "")
  21939. + # If it fails, then pretend we aren't using GCC.
  21940. + ac_prog=ld
  21941. + ;;
  21942. + *)
  21943. + # If it is relative, then search for the first ld in PATH.
  21944. + with_gnu_ld=unknown
  21945. + ;;
  21946. + esac
  21947. +elif test "$with_gnu_ld" = yes; then
  21948. + { echo "$as_me:$LINENO: checking for GNU ld" >&5
  21949. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  21950. +else
  21951. + { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  21952. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  21953. +fi
  21954. +if test "${lt_cv_path_LD+set}" = set; then
  21955. + echo $ECHO_N "(cached) $ECHO_C" >&6
  21956. +else
  21957. + if test -z "$LD"; then
  21958. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21959. + for ac_dir in $PATH; do
  21960. + IFS="$lt_save_ifs"
  21961. + test -z "$ac_dir" && ac_dir=.
  21962. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  21963. + lt_cv_path_LD="$ac_dir/$ac_prog"
  21964. + # Check to see if the program is GNU ld. I'd rather use --version,
  21965. + # but apparently some variants of GNU ld only accept -v.
  21966. + # Break only if it was the GNU/non-GNU ld that we prefer.
  21967. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  21968. + *GNU* | *'with BFD'*)
  21969. + test "$with_gnu_ld" != no && break
  21970. + ;;
  21971. + *)
  21972. + test "$with_gnu_ld" != yes && break
  21973. + ;;
  21974. + esac
  21975. + fi
  21976. + done
  21977. + IFS="$lt_save_ifs"
  21978. +else
  21979. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  21980. +fi
  21981. +fi
  21982. -# Check whether --with-pkgconfigdir was given.
  21983. -if test "${with_pkgconfigdir+set}" = set; then
  21984. - withval=$with_pkgconfigdir; pkgconfigdir=$withval
  21985. +LD="$lt_cv_path_LD"
  21986. +if test -n "$LD"; then
  21987. + { echo "$as_me:$LINENO: result: $LD" >&5
  21988. +echo "${ECHO_T}$LD" >&6; }
  21989. else
  21990. - pkgconfigdir='${libdir}/pkgconfig'
  21991. + { echo "$as_me:$LINENO: result: no" >&5
  21992. +echo "${ECHO_T}no" >&6; }
  21993. +fi
  21994. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  21995. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  21996. + { (exit 1); exit 1; }; }
  21997. +{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  21998. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  21999. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  22000. + echo $ECHO_N "(cached) $ECHO_C" >&6
  22001. +else
  22002. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  22003. +case `$LD -v 2>&1 </dev/null` in
  22004. +*GNU* | *'with BFD'*)
  22005. + lt_cv_prog_gnu_ld=yes
  22006. + ;;
  22007. +*)
  22008. + lt_cv_prog_gnu_ld=no
  22009. + ;;
  22010. +esac
  22011. fi
  22012. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  22013. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  22014. +with_gnu_ld=$lt_cv_prog_gnu_ld
  22015. -subdirs2="include"
  22016. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  22017. + # archiving commands below assume that GNU ld is being used.
  22018. + if test "$with_gnu_ld" = yes; then
  22019. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22020. + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22021. -if test "$arch" = linux -a "$enable_kernel_module" != "no"; then
  22022. - subdirs="$subdirs kernel"
  22023. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  22024. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  22025. -fi
  22026. + # If archive_cmds runs LD, not CC, wlarc should be empty
  22027. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  22028. + # investigate it a little bit more. (MM)
  22029. + wlarc='${wl}'
  22030. -if test "$enable_lib" != "no"; then
  22031. - subdirs2="$subdirs2 lib";
  22032. -fi
  22033. -if test "$arch" = linux -a "$enable_util" != "no"; then
  22034. - subdirs2="$subdirs2 util";
  22035. -fi
  22036. -if test "$enable_example" != "no"; then
  22037. - subdirs2="$subdirs2 example";
  22038. -fi
  22039. -if test "$enable_mtab" = "no"; then
  22040. + # ancient GNU ld didn't support --whole-archive et. al.
  22041. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  22042. + grep 'no-whole-archive' > /dev/null; then
  22043. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22044. + else
  22045. + whole_archive_flag_spec_CXX=
  22046. + fi
  22047. + else
  22048. + with_gnu_ld=no
  22049. + wlarc=
  22050. -cat >>confdefs.h <<\_ACEOF
  22051. -#define IGNORE_MTAB 1
  22052. -_ACEOF
  22053. + # A generic and very simple default shared library creation
  22054. + # command for GNU C++ for the case where it uses the native
  22055. + # linker, instead of GNU ld. If possible, this setting should
  22056. + # overridden to take advantage of the native linker features on
  22057. + # the platform it is being used on.
  22058. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  22059. + fi
  22060. +
  22061. + # Commands to make compiler produce verbose output that lists
  22062. + # what "hidden" libraries, object files and flags are used when
  22063. + # linking a shared library.
  22064. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  22065. +else
  22066. + GXX=no
  22067. + with_gnu_ld=no
  22068. + wlarc=
  22069. fi
  22070. +# PORTME: fill in a description of your system's C++ link characteristics
  22071. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  22072. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  22073. +ld_shlibs_CXX=yes
  22074. +case $host_os in
  22075. + aix3*)
  22076. + # FIXME: insert proper C++ library support
  22077. + ld_shlibs_CXX=no
  22078. + ;;
  22079. + aix4* | aix5*)
  22080. + if test "$host_cpu" = ia64; then
  22081. + # On IA64, the linker does run time linking by default, so we don't
  22082. + # have to do anything special.
  22083. + aix_use_runtimelinking=no
  22084. + exp_sym_flag='-Bexport'
  22085. + no_entry_flag=""
  22086. + else
  22087. + aix_use_runtimelinking=no
  22088. +
  22089. + # Test if we are trying to use run time linking or normal
  22090. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22091. + # need to do runtime linking.
  22092. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  22093. + for ld_flag in $LDFLAGS; do
  22094. + case $ld_flag in
  22095. + *-brtl*)
  22096. + aix_use_runtimelinking=yes
  22097. + break
  22098. + ;;
  22099. + esac
  22100. + done
  22101. + ;;
  22102. + esac
  22103. + exp_sym_flag='-bexport'
  22104. + no_entry_flag='-bnoentry'
  22105. + fi
  22106. -for ac_func in fork setxattr fdatasync
  22107. -do
  22108. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  22109. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  22110. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  22111. -if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  22112. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22113. -else
  22114. - cat >conftest.$ac_ext <<_ACEOF
  22115. + # When large executables or shared objects are built, AIX ld can
  22116. + # have problems creating the table of contents. If linking a library
  22117. + # or program results in "error TOC overflow" add -mminimal-toc to
  22118. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22119. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22120. +
  22121. + archive_cmds_CXX=''
  22122. + hardcode_direct_CXX=yes
  22123. + hardcode_libdir_separator_CXX=':'
  22124. + link_all_deplibs_CXX=yes
  22125. +
  22126. + if test "$GXX" = yes; then
  22127. + case $host_os in aix4.[012]|aix4.[012].*)
  22128. + # We only want to do this on AIX 4.2 and lower, the check
  22129. + # below for broken collect2 doesn't work under 4.3+
  22130. + collect2name=`${CC} -print-prog-name=collect2`
  22131. + if test -f "$collect2name" && \
  22132. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  22133. + then
  22134. + # We have reworked collect2
  22135. + hardcode_direct_CXX=yes
  22136. + else
  22137. + # We have old collect2
  22138. + hardcode_direct_CXX=unsupported
  22139. + # It fails to find uninstalled libraries when the uninstalled
  22140. + # path is not listed in the libpath. Setting hardcode_minus_L
  22141. + # to unsupported forces relinking
  22142. + hardcode_minus_L_CXX=yes
  22143. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  22144. + hardcode_libdir_separator_CXX=
  22145. + fi
  22146. + ;;
  22147. + esac
  22148. + shared_flag='-shared'
  22149. + if test "$aix_use_runtimelinking" = yes; then
  22150. + shared_flag="$shared_flag "'${wl}-G'
  22151. + fi
  22152. + else
  22153. + # not using gcc
  22154. + if test "$host_cpu" = ia64; then
  22155. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  22156. + # chokes on -Wl,-G. The following line is correct:
  22157. + shared_flag='-G'
  22158. + else
  22159. + if test "$aix_use_runtimelinking" = yes; then
  22160. + shared_flag='${wl}-G'
  22161. + else
  22162. + shared_flag='${wl}-bM:SRE'
  22163. + fi
  22164. + fi
  22165. + fi
  22166. +
  22167. + # It seems that -bexpall does not export symbols beginning with
  22168. + # underscore (_), so it is better to generate a list of symbols to export.
  22169. + always_export_symbols_CXX=yes
  22170. + if test "$aix_use_runtimelinking" = yes; then
  22171. + # Warning - without using the other runtime loading flags (-brtl),
  22172. + # -berok will link without error, but may produce a broken library.
  22173. + allow_undefined_flag_CXX='-berok'
  22174. + # Determine the default libpath from the value encoded in an empty executable.
  22175. + cat >conftest.$ac_ext <<_ACEOF
  22176. /* confdefs.h. */
  22177. _ACEOF
  22178. cat confdefs.h >>conftest.$ac_ext
  22179. cat >>conftest.$ac_ext <<_ACEOF
  22180. /* end confdefs.h. */
  22181. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  22182. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  22183. -#define $ac_func innocuous_$ac_func
  22184. -
  22185. -/* System header to define __stub macros and hopefully few prototypes,
  22186. - which can conflict with char $ac_func (); below.
  22187. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22188. - <limits.h> exists even on freestanding compilers. */
  22189. -
  22190. -#ifdef __STDC__
  22191. -# include <limits.h>
  22192. -#else
  22193. -# include <assert.h>
  22194. -#endif
  22195. -
  22196. -#undef $ac_func
  22197. -
  22198. -/* Override any GCC internal prototype to avoid an error.
  22199. - Use char because int might match the return type of a GCC
  22200. - builtin and then its argument prototype would still apply. */
  22201. -#ifdef __cplusplus
  22202. -extern "C"
  22203. -#endif
  22204. -char $ac_func ();
  22205. -/* The GNU C library defines this for functions which it implements
  22206. - to always fail with ENOSYS. Some functions are actually named
  22207. - something starting with __ and the normal name is an alias. */
  22208. -#if defined __stub_$ac_func || defined __stub___$ac_func
  22209. -choke me
  22210. -#endif
  22211. int
  22212. main ()
  22213. {
  22214. -return $ac_func ();
  22215. +
  22216. ;
  22217. return 0;
  22218. }
  22219. @@ -11062,3385 +10961,11417 @@
  22220. cat conftest.err >&5
  22221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22222. (exit $ac_status); } && {
  22223. - test -z "$ac_c_werror_flag" ||
  22224. + test -z "$ac_cxx_werror_flag" ||
  22225. test ! -s conftest.err
  22226. } && test -s conftest$ac_exeext &&
  22227. $as_test_x conftest$ac_exeext; then
  22228. - eval "$as_ac_var=yes"
  22229. +
  22230. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22231. +}'`
  22232. +# Check for a 64-bit object if we didn't find anything.
  22233. +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; }
  22234. +}'`; fi
  22235. else
  22236. echo "$as_me: failed program was:" >&5
  22237. sed 's/^/| /' conftest.$ac_ext >&5
  22238. - eval "$as_ac_var=no"
  22239. +
  22240. fi
  22241. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22242. conftest$ac_exeext conftest.$ac_ext
  22243. -fi
  22244. -ac_res=`eval echo '${'$as_ac_var'}'`
  22245. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  22246. -echo "${ECHO_T}$ac_res" >&6; }
  22247. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  22248. - cat >>confdefs.h <<_ACEOF
  22249. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  22250. -_ACEOF
  22251. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22252. -fi
  22253. -done
  22254. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  22255. -{ echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
  22256. -echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; }
  22257. -if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
  22258. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22259. -else
  22260. - cat >conftest.$ac_ext <<_ACEOF
  22261. + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  22262. + else
  22263. + if test "$host_cpu" = ia64; then
  22264. + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  22265. + allow_undefined_flag_CXX="-z nodefs"
  22266. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  22267. + else
  22268. + # Determine the default libpath from the value encoded in an empty executable.
  22269. + cat >conftest.$ac_ext <<_ACEOF
  22270. /* confdefs.h. */
  22271. _ACEOF
  22272. cat confdefs.h >>conftest.$ac_ext
  22273. cat >>conftest.$ac_ext <<_ACEOF
  22274. /* end confdefs.h. */
  22275. -$ac_includes_default
  22276. +
  22277. int
  22278. main ()
  22279. {
  22280. -static struct stat ac_aggr;
  22281. -if (ac_aggr.st_atim)
  22282. -return 0;
  22283. +
  22284. ;
  22285. return 0;
  22286. }
  22287. _ACEOF
  22288. -rm -f conftest.$ac_objext
  22289. -if { (ac_try="$ac_compile"
  22290. +rm -f conftest.$ac_objext conftest$ac_exeext
  22291. +if { (ac_try="$ac_link"
  22292. case "(($ac_try" in
  22293. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22294. *) ac_try_echo=$ac_try;;
  22295. esac
  22296. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22297. - (eval "$ac_compile") 2>conftest.er1
  22298. + (eval "$ac_link") 2>conftest.er1
  22299. ac_status=$?
  22300. grep -v '^ *+' conftest.er1 >conftest.err
  22301. rm -f conftest.er1
  22302. cat conftest.err >&5
  22303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22304. (exit $ac_status); } && {
  22305. - test -z "$ac_c_werror_flag" ||
  22306. + test -z "$ac_cxx_werror_flag" ||
  22307. test ! -s conftest.err
  22308. - } && test -s conftest.$ac_objext; then
  22309. - ac_cv_member_struct_stat_st_atim=yes
  22310. -else
  22311. - echo "$as_me: failed program was:" >&5
  22312. -sed 's/^/| /' conftest.$ac_ext >&5
  22313. + } && test -s conftest$ac_exeext &&
  22314. + $as_test_x conftest$ac_exeext; then
  22315. - cat >conftest.$ac_ext <<_ACEOF
  22316. -/* confdefs.h. */
  22317. -_ACEOF
  22318. -cat confdefs.h >>conftest.$ac_ext
  22319. -cat >>conftest.$ac_ext <<_ACEOF
  22320. -/* end confdefs.h. */
  22321. -$ac_includes_default
  22322. -int
  22323. -main ()
  22324. -{
  22325. -static struct stat ac_aggr;
  22326. -if (sizeof ac_aggr.st_atim)
  22327. -return 0;
  22328. - ;
  22329. - return 0;
  22330. -}
  22331. -_ACEOF
  22332. -rm -f conftest.$ac_objext
  22333. -if { (ac_try="$ac_compile"
  22334. -case "(($ac_try" in
  22335. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22336. - *) ac_try_echo=$ac_try;;
  22337. -esac
  22338. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22339. - (eval "$ac_compile") 2>conftest.er1
  22340. - ac_status=$?
  22341. - grep -v '^ *+' conftest.er1 >conftest.err
  22342. - rm -f conftest.er1
  22343. - cat conftest.err >&5
  22344. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22345. - (exit $ac_status); } && {
  22346. - test -z "$ac_c_werror_flag" ||
  22347. - test ! -s conftest.err
  22348. - } && test -s conftest.$ac_objext; then
  22349. - ac_cv_member_struct_stat_st_atim=yes
  22350. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  22351. +}'`
  22352. +# Check for a 64-bit object if we didn't find anything.
  22353. +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; }
  22354. +}'`; fi
  22355. else
  22356. echo "$as_me: failed program was:" >&5
  22357. sed 's/^/| /' conftest.$ac_ext >&5
  22358. - ac_cv_member_struct_stat_st_atim=no
  22359. -fi
  22360. -
  22361. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22362. -fi
  22363. -
  22364. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22365. -fi
  22366. -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
  22367. -echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; }
  22368. -if test $ac_cv_member_struct_stat_st_atim = yes; then
  22369. -
  22370. -cat >>confdefs.h <<_ACEOF
  22371. -#define HAVE_STRUCT_STAT_ST_ATIM 1
  22372. -_ACEOF
  22373. -
  22374. fi
  22375. -{ echo "$as_me:$LINENO: checking for struct stat.st_atimespec" >&5
  22376. -echo $ECHO_N "checking for struct stat.st_atimespec... $ECHO_C" >&6; }
  22377. -if test "${ac_cv_member_struct_stat_st_atimespec+set}" = set; then
  22378. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22379. -else
  22380. - cat >conftest.$ac_ext <<_ACEOF
  22381. -/* confdefs.h. */
  22382. -_ACEOF
  22383. -cat confdefs.h >>conftest.$ac_ext
  22384. -cat >>conftest.$ac_ext <<_ACEOF
  22385. -/* end confdefs.h. */
  22386. -$ac_includes_default
  22387. -int
  22388. -main ()
  22389. -{
  22390. -static struct stat ac_aggr;
  22391. -if (ac_aggr.st_atimespec)
  22392. -return 0;
  22393. - ;
  22394. - return 0;
  22395. -}
  22396. -_ACEOF
  22397. -rm -f conftest.$ac_objext
  22398. -if { (ac_try="$ac_compile"
  22399. -case "(($ac_try" in
  22400. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22401. - *) ac_try_echo=$ac_try;;
  22402. -esac
  22403. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22404. - (eval "$ac_compile") 2>conftest.er1
  22405. - ac_status=$?
  22406. - grep -v '^ *+' conftest.er1 >conftest.err
  22407. - rm -f conftest.er1
  22408. - cat conftest.err >&5
  22409. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22410. - (exit $ac_status); } && {
  22411. - test -z "$ac_c_werror_flag" ||
  22412. - test ! -s conftest.err
  22413. - } && test -s conftest.$ac_objext; then
  22414. - ac_cv_member_struct_stat_st_atimespec=yes
  22415. -else
  22416. - echo "$as_me: failed program was:" >&5
  22417. -sed 's/^/| /' conftest.$ac_ext >&5
  22418. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  22419. + conftest$ac_exeext conftest.$ac_ext
  22420. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  22421. - cat >conftest.$ac_ext <<_ACEOF
  22422. -/* confdefs.h. */
  22423. -_ACEOF
  22424. -cat confdefs.h >>conftest.$ac_ext
  22425. -cat >>conftest.$ac_ext <<_ACEOF
  22426. -/* end confdefs.h. */
  22427. -$ac_includes_default
  22428. -int
  22429. -main ()
  22430. -{
  22431. -static struct stat ac_aggr;
  22432. -if (sizeof ac_aggr.st_atimespec)
  22433. -return 0;
  22434. - ;
  22435. - return 0;
  22436. -}
  22437. -_ACEOF
  22438. -rm -f conftest.$ac_objext
  22439. -if { (ac_try="$ac_compile"
  22440. -case "(($ac_try" in
  22441. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22442. - *) ac_try_echo=$ac_try;;
  22443. -esac
  22444. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22445. - (eval "$ac_compile") 2>conftest.er1
  22446. - ac_status=$?
  22447. - grep -v '^ *+' conftest.er1 >conftest.err
  22448. - rm -f conftest.er1
  22449. - cat conftest.err >&5
  22450. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22451. - (exit $ac_status); } && {
  22452. - test -z "$ac_c_werror_flag" ||
  22453. - test ! -s conftest.err
  22454. - } && test -s conftest.$ac_objext; then
  22455. - ac_cv_member_struct_stat_st_atimespec=yes
  22456. -else
  22457. - echo "$as_me: failed program was:" >&5
  22458. -sed 's/^/| /' conftest.$ac_ext >&5
  22459. + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  22460. + # Warning - without using the other run time loading flags,
  22461. + # -berok will link without error, but may produce a broken library.
  22462. + no_undefined_flag_CXX=' ${wl}-bernotok'
  22463. + allow_undefined_flag_CXX=' ${wl}-berok'
  22464. + # Exported symbols can be pulled into shared objects from archives
  22465. + whole_archive_flag_spec_CXX='$convenience'
  22466. + archive_cmds_need_lc_CXX=yes
  22467. + # This is similar to how AIX traditionally builds its shared libraries.
  22468. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  22469. + fi
  22470. + fi
  22471. + ;;
  22472. - ac_cv_member_struct_stat_st_atimespec=no
  22473. -fi
  22474. + beos*)
  22475. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  22476. + allow_undefined_flag_CXX=unsupported
  22477. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22478. + # support --undefined. This deserves some investigation. FIXME
  22479. + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22480. + else
  22481. + ld_shlibs_CXX=no
  22482. + fi
  22483. + ;;
  22484. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22485. -fi
  22486. + chorus*)
  22487. + case $cc_basename in
  22488. + *)
  22489. + # FIXME: insert proper C++ library support
  22490. + ld_shlibs_CXX=no
  22491. + ;;
  22492. + esac
  22493. + ;;
  22494. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22495. -fi
  22496. -{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec" >&5
  22497. -echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec" >&6; }
  22498. -if test $ac_cv_member_struct_stat_st_atimespec = yes; then
  22499. + cygwin* | mingw* | pw32*)
  22500. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  22501. + # as there is no search path for DLLs.
  22502. + hardcode_libdir_flag_spec_CXX='-L$libdir'
  22503. + allow_undefined_flag_CXX=unsupported
  22504. + always_export_symbols_CXX=no
  22505. + enable_shared_with_static_runtimes_CXX=yes
  22506. +
  22507. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  22508. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  22509. + # If the export-symbols file already is a .def file (1st line
  22510. + # is EXPORTS), use it as is; otherwise, prepend...
  22511. + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22512. + cp $export_symbols $output_objdir/$soname.def;
  22513. + else
  22514. + echo EXPORTS > $output_objdir/$soname.def;
  22515. + cat $export_symbols >> $output_objdir/$soname.def;
  22516. + fi~
  22517. + $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'
  22518. + else
  22519. + ld_shlibs_CXX=no
  22520. + fi
  22521. + ;;
  22522. + darwin* | rhapsody*)
  22523. + case $host_os in
  22524. + rhapsody* | darwin1.[012])
  22525. + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  22526. + ;;
  22527. + *) # Darwin 1.3 on
  22528. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  22529. + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22530. + else
  22531. + case ${MACOSX_DEPLOYMENT_TARGET} in
  22532. + 10.[012])
  22533. + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  22534. + ;;
  22535. + 10.*)
  22536. + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  22537. + ;;
  22538. + esac
  22539. + fi
  22540. + ;;
  22541. + esac
  22542. + archive_cmds_need_lc_CXX=no
  22543. + hardcode_direct_CXX=no
  22544. + hardcode_automatic_CXX=yes
  22545. + hardcode_shlibpath_var_CXX=unsupported
  22546. + whole_archive_flag_spec_CXX=''
  22547. + link_all_deplibs_CXX=yes
  22548. +
  22549. + if test "$GXX" = yes ; then
  22550. + lt_int_apple_cc_single_mod=no
  22551. + output_verbose_link_cmd='echo'
  22552. + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  22553. + lt_int_apple_cc_single_mod=yes
  22554. + fi
  22555. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  22556. + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  22557. + else
  22558. + archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  22559. + fi
  22560. + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22561. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22562. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  22563. + archive_expsym_cmds_CXX='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}'
  22564. + else
  22565. + archive_expsym_cmds_CXX='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}'
  22566. + fi
  22567. + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22568. + else
  22569. + case $cc_basename in
  22570. + xlc*)
  22571. + output_verbose_link_cmd='echo'
  22572. + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  22573. + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  22574. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  22575. + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22576. + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  22577. + ;;
  22578. + *)
  22579. + ld_shlibs_CXX=no
  22580. + ;;
  22581. + esac
  22582. + fi
  22583. + ;;
  22584. -cat >>confdefs.h <<_ACEOF
  22585. -#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
  22586. -_ACEOF
  22587. + dgux*)
  22588. + case $cc_basename in
  22589. + ec++*)
  22590. + # FIXME: insert proper C++ library support
  22591. + ld_shlibs_CXX=no
  22592. + ;;
  22593. + ghcx*)
  22594. + # Green Hills C++ Compiler
  22595. + # FIXME: insert proper C++ library support
  22596. + ld_shlibs_CXX=no
  22597. + ;;
  22598. + *)
  22599. + # FIXME: insert proper C++ library support
  22600. + ld_shlibs_CXX=no
  22601. + ;;
  22602. + esac
  22603. + ;;
  22604. + freebsd[12]*)
  22605. + # C++ shared libraries reported to be fairly broken before switch to ELF
  22606. + ld_shlibs_CXX=no
  22607. + ;;
  22608. + freebsd-elf*)
  22609. + archive_cmds_need_lc_CXX=no
  22610. + ;;
  22611. + freebsd* | kfreebsd*-gnu | dragonfly*)
  22612. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  22613. + # conventions
  22614. + ld_shlibs_CXX=yes
  22615. + ;;
  22616. + gnu*)
  22617. + ;;
  22618. + hpux9*)
  22619. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  22620. + hardcode_libdir_separator_CXX=:
  22621. + export_dynamic_flag_spec_CXX='${wl}-E'
  22622. + hardcode_direct_CXX=yes
  22623. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  22624. + # but as the default
  22625. + # location of the library.
  22626. +
  22627. + case $cc_basename in
  22628. + CC*)
  22629. + # FIXME: insert proper C++ library support
  22630. + ld_shlibs_CXX=no
  22631. + ;;
  22632. + aCC*)
  22633. + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  22634. + # Commands to make compiler produce verbose output that lists
  22635. + # what "hidden" libraries, object files and flags are used when
  22636. + # linking a shared library.
  22637. + #
  22638. + # There doesn't appear to be a way to prevent this compiler from
  22639. + # explicitly linking system object files so we need to strip them
  22640. + # from the output so that they don't get included in the library
  22641. + # dependencies.
  22642. + 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'
  22643. + ;;
  22644. + *)
  22645. + if test "$GXX" = yes; then
  22646. + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  22647. + else
  22648. + # FIXME: insert proper C++ library support
  22649. + ld_shlibs_CXX=no
  22650. + fi
  22651. + ;;
  22652. + esac
  22653. + ;;
  22654. + hpux10*|hpux11*)
  22655. + if test $with_gnu_ld = no; then
  22656. + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  22657. + hardcode_libdir_separator_CXX=:
  22658. + case $host_cpu in
  22659. + hppa*64*|ia64*)
  22660. + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  22661. + ;;
  22662. + *)
  22663. + export_dynamic_flag_spec_CXX='${wl}-E'
  22664. + ;;
  22665. + esac
  22666. + fi
  22667. + case $host_cpu in
  22668. + hppa*64*|ia64*)
  22669. + hardcode_direct_CXX=no
  22670. + hardcode_shlibpath_var_CXX=no
  22671. + ;;
  22672. + *)
  22673. + hardcode_direct_CXX=yes
  22674. + hardcode_minus_L_CXX=yes # Not in the search PATH,
  22675. + # but as the default
  22676. + # location of the library.
  22677. + ;;
  22678. + esac
  22679. -fi
  22680. + case $cc_basename in
  22681. + CC*)
  22682. + # FIXME: insert proper C++ library support
  22683. + ld_shlibs_CXX=no
  22684. + ;;
  22685. + aCC*)
  22686. + case $host_cpu in
  22687. + hppa*64*)
  22688. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22689. + ;;
  22690. + ia64*)
  22691. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22692. + ;;
  22693. + *)
  22694. + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22695. + ;;
  22696. + esac
  22697. + # Commands to make compiler produce verbose output that lists
  22698. + # what "hidden" libraries, object files and flags are used when
  22699. + # linking a shared library.
  22700. + #
  22701. + # There doesn't appear to be a way to prevent this compiler from
  22702. + # explicitly linking system object files so we need to strip them
  22703. + # from the output so that they don't get included in the library
  22704. + # dependencies.
  22705. + 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'
  22706. + ;;
  22707. + *)
  22708. + if test "$GXX" = yes; then
  22709. + if test $with_gnu_ld = no; then
  22710. + case $host_cpu in
  22711. + hppa*64*)
  22712. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22713. + ;;
  22714. + ia64*)
  22715. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22716. + ;;
  22717. + *)
  22718. + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22719. + ;;
  22720. + esac
  22721. + fi
  22722. + else
  22723. + # FIXME: insert proper C++ library support
  22724. + ld_shlibs_CXX=no
  22725. + fi
  22726. + ;;
  22727. + esac
  22728. + ;;
  22729. + interix3*)
  22730. + hardcode_direct_CXX=no
  22731. + hardcode_shlibpath_var_CXX=no
  22732. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  22733. + export_dynamic_flag_spec_CXX='${wl}-E'
  22734. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  22735. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  22736. + # default) and relocated if they conflict, which is a slow very memory
  22737. + # consuming and fragmenting process. To avoid this, we pick a random,
  22738. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  22739. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  22740. + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  22741. + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  22742. + ;;
  22743. + irix5* | irix6*)
  22744. + case $cc_basename in
  22745. + CC*)
  22746. + # SGI C++
  22747. + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  22748. +
  22749. + # Archives containing C++ object files must be created using
  22750. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  22751. + # necessary to make sure instantiated templates are included
  22752. + # in the archive.
  22753. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  22754. + ;;
  22755. + *)
  22756. + if test "$GXX" = yes; then
  22757. + if test "$with_gnu_ld" = no; then
  22758. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  22759. + else
  22760. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  22761. + fi
  22762. + fi
  22763. + link_all_deplibs_CXX=yes
  22764. + ;;
  22765. + esac
  22766. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  22767. + hardcode_libdir_separator_CXX=:
  22768. + ;;
  22769. + linux*)
  22770. + case $cc_basename in
  22771. + KCC*)
  22772. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  22773. +
  22774. + # KCC will only create a shared library if the output file
  22775. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  22776. + # to its proper name (with version) after linking.
  22777. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  22778. + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  22779. + # Commands to make compiler produce verbose output that lists
  22780. + # what "hidden" libraries, object files and flags are used when
  22781. + # linking a shared library.
  22782. + #
  22783. + # There doesn't appear to be a way to prevent this compiler from
  22784. + # explicitly linking system object files so we need to strip them
  22785. + # from the output so that they don't get included in the library
  22786. + # dependencies.
  22787. + 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'
  22788. +
  22789. + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  22790. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  22791. +
  22792. + # Archives containing C++ object files must be created using
  22793. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  22794. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  22795. + ;;
  22796. + icpc*)
  22797. + # Intel C++
  22798. + with_gnu_ld=yes
  22799. + # version 8.0 and above of icpc choke on multiply defined symbols
  22800. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  22801. + # earlier do not add the objects themselves.
  22802. + case `$CC -V 2>&1` in
  22803. + *"Version 7."*)
  22804. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22805. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22806. + ;;
  22807. + *) # Version 8.0 or newer
  22808. + tmp_idyn=
  22809. + case $host_cpu in
  22810. + ia64*) tmp_idyn=' -i_dynamic';;
  22811. + esac
  22812. + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22813. + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  22814. + ;;
  22815. + esac
  22816. + archive_cmds_need_lc_CXX=no
  22817. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  22818. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  22819. + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  22820. + ;;
  22821. + pgCC*)
  22822. + # Portland Group C++ compiler
  22823. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  22824. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  22825. +
  22826. + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  22827. + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  22828. + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  22829. + ;;
  22830. + cxx*)
  22831. + # Compaq C++
  22832. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22833. + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  22834. + runpath_var=LD_RUN_PATH
  22835. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  22836. + hardcode_libdir_separator_CXX=:
  22837. -libfuse_libs="-pthread"
  22838. -LIBS=
  22839. -{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  22840. -echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  22841. -if test "${ac_cv_search_dlopen+set}" = set; then
  22842. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22843. -else
  22844. - ac_func_search_save_LIBS=$LIBS
  22845. -cat >conftest.$ac_ext <<_ACEOF
  22846. -/* confdefs.h. */
  22847. -_ACEOF
  22848. -cat confdefs.h >>conftest.$ac_ext
  22849. -cat >>conftest.$ac_ext <<_ACEOF
  22850. -/* end confdefs.h. */
  22851. + # Commands to make compiler produce verbose output that lists
  22852. + # what "hidden" libraries, object files and flags are used when
  22853. + # linking a shared library.
  22854. + #
  22855. + # There doesn't appear to be a way to prevent this compiler from
  22856. + # explicitly linking system object files so we need to strip them
  22857. + # from the output so that they don't get included in the library
  22858. + # dependencies.
  22859. + 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'
  22860. + ;;
  22861. + esac
  22862. + ;;
  22863. + lynxos*)
  22864. + # FIXME: insert proper C++ library support
  22865. + ld_shlibs_CXX=no
  22866. + ;;
  22867. + m88k*)
  22868. + # FIXME: insert proper C++ library support
  22869. + ld_shlibs_CXX=no
  22870. + ;;
  22871. + mvs*)
  22872. + case $cc_basename in
  22873. + cxx*)
  22874. + # FIXME: insert proper C++ library support
  22875. + ld_shlibs_CXX=no
  22876. + ;;
  22877. + *)
  22878. + # FIXME: insert proper C++ library support
  22879. + ld_shlibs_CXX=no
  22880. + ;;
  22881. + esac
  22882. + ;;
  22883. + netbsd*)
  22884. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  22885. + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  22886. + wlarc=
  22887. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  22888. + hardcode_direct_CXX=yes
  22889. + hardcode_shlibpath_var_CXX=no
  22890. + fi
  22891. + # Workaround some broken pre-1.5 toolchains
  22892. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  22893. + ;;
  22894. + openbsd2*)
  22895. + # C++ shared libraries are fairly broken
  22896. + ld_shlibs_CXX=no
  22897. + ;;
  22898. + openbsd*)
  22899. + hardcode_direct_CXX=yes
  22900. + hardcode_shlibpath_var_CXX=no
  22901. + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  22902. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  22903. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22904. + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  22905. + export_dynamic_flag_spec_CXX='${wl}-E'
  22906. + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22907. + fi
  22908. + output_verbose_link_cmd='echo'
  22909. + ;;
  22910. + osf3*)
  22911. + case $cc_basename in
  22912. + KCC*)
  22913. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  22914. +
  22915. + # KCC will only create a shared library if the output file
  22916. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  22917. + # to its proper name (with version) after linking.
  22918. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  22919. +
  22920. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  22921. + hardcode_libdir_separator_CXX=:
  22922. +
  22923. + # Archives containing C++ object files must be created using
  22924. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  22925. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  22926. -/* Override any GCC internal prototype to avoid an error.
  22927. - Use char because int might match the return type of a GCC
  22928. - builtin and then its argument prototype would still apply. */
  22929. -#ifdef __cplusplus
  22930. -extern "C"
  22931. -#endif
  22932. -char dlopen ();
  22933. -int
  22934. -main ()
  22935. -{
  22936. -return dlopen ();
  22937. - ;
  22938. - return 0;
  22939. -}
  22940. -_ACEOF
  22941. -for ac_lib in '' dl; do
  22942. - if test -z "$ac_lib"; then
  22943. - ac_res="none required"
  22944. - else
  22945. - ac_res=-l$ac_lib
  22946. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  22947. - fi
  22948. - rm -f conftest.$ac_objext conftest$ac_exeext
  22949. -if { (ac_try="$ac_link"
  22950. -case "(($ac_try" in
  22951. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  22952. - *) ac_try_echo=$ac_try;;
  22953. -esac
  22954. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  22955. - (eval "$ac_link") 2>conftest.er1
  22956. - ac_status=$?
  22957. - grep -v '^ *+' conftest.er1 >conftest.err
  22958. - rm -f conftest.er1
  22959. - cat conftest.err >&5
  22960. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22961. - (exit $ac_status); } && {
  22962. - test -z "$ac_c_werror_flag" ||
  22963. - test ! -s conftest.err
  22964. - } && test -s conftest$ac_exeext &&
  22965. - $as_test_x conftest$ac_exeext; then
  22966. - ac_cv_search_dlopen=$ac_res
  22967. -else
  22968. - echo "$as_me: failed program was:" >&5
  22969. -sed 's/^/| /' conftest.$ac_ext >&5
  22970. + ;;
  22971. + RCC*)
  22972. + # Rational C++ 2.4.1
  22973. + # FIXME: insert proper C++ library support
  22974. + ld_shlibs_CXX=no
  22975. + ;;
  22976. + cxx*)
  22977. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  22978. + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  22979. +
  22980. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  22981. + hardcode_libdir_separator_CXX=:
  22982. +
  22983. + # Commands to make compiler produce verbose output that lists
  22984. + # what "hidden" libraries, object files and flags are used when
  22985. + # linking a shared library.
  22986. + #
  22987. + # There doesn't appear to be a way to prevent this compiler from
  22988. + # explicitly linking system object files so we need to strip them
  22989. + # from the output so that they don't get included in the library
  22990. + # dependencies.
  22991. + 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'
  22992. + ;;
  22993. + *)
  22994. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  22995. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  22996. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  22997. +
  22998. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  22999. + hardcode_libdir_separator_CXX=:
  23000. +
  23001. + # Commands to make compiler produce verbose output that lists
  23002. + # what "hidden" libraries, object files and flags are used when
  23003. + # linking a shared library.
  23004. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  23005. + else
  23006. + # FIXME: insert proper C++ library support
  23007. + ld_shlibs_CXX=no
  23008. + fi
  23009. + ;;
  23010. + esac
  23011. + ;;
  23012. + osf4* | osf5*)
  23013. + case $cc_basename in
  23014. + KCC*)
  23015. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  23016. +
  23017. + # KCC will only create a shared library if the output file
  23018. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  23019. + # to its proper name (with version) after linking.
  23020. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  23021. +
  23022. + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  23023. + hardcode_libdir_separator_CXX=:
  23024. +
  23025. + # Archives containing C++ object files must be created using
  23026. + # the KAI C++ compiler.
  23027. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  23028. + ;;
  23029. + RCC*)
  23030. + # Rational C++ 2.4.1
  23031. + # FIXME: insert proper C++ library support
  23032. + ld_shlibs_CXX=no
  23033. + ;;
  23034. + cxx*)
  23035. + allow_undefined_flag_CXX=' -expect_unresolved \*'
  23036. + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  23037. + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  23038. + echo "-hidden">> $lib.exp~
  23039. + $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~
  23040. + $rm $lib.exp'
  23041. +
  23042. + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  23043. + hardcode_libdir_separator_CXX=:
  23044. +
  23045. + # Commands to make compiler produce verbose output that lists
  23046. + # what "hidden" libraries, object files and flags are used when
  23047. + # linking a shared library.
  23048. + #
  23049. + # There doesn't appear to be a way to prevent this compiler from
  23050. + # explicitly linking system object files so we need to strip them
  23051. + # from the output so that they don't get included in the library
  23052. + # dependencies.
  23053. + 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'
  23054. + ;;
  23055. + *)
  23056. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  23057. + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  23058. + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  23059. +
  23060. + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  23061. + hardcode_libdir_separator_CXX=:
  23062. +
  23063. + # Commands to make compiler produce verbose output that lists
  23064. + # what "hidden" libraries, object files and flags are used when
  23065. + # linking a shared library.
  23066. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  23067. -fi
  23068. + else
  23069. + # FIXME: insert proper C++ library support
  23070. + ld_shlibs_CXX=no
  23071. + fi
  23072. + ;;
  23073. + esac
  23074. + ;;
  23075. + psos*)
  23076. + # FIXME: insert proper C++ library support
  23077. + ld_shlibs_CXX=no
  23078. + ;;
  23079. + sunos4*)
  23080. + case $cc_basename in
  23081. + CC*)
  23082. + # Sun C++ 4.x
  23083. + # FIXME: insert proper C++ library support
  23084. + ld_shlibs_CXX=no
  23085. + ;;
  23086. + lcc*)
  23087. + # Lucid
  23088. + # FIXME: insert proper C++ library support
  23089. + ld_shlibs_CXX=no
  23090. + ;;
  23091. + *)
  23092. + # FIXME: insert proper C++ library support
  23093. + ld_shlibs_CXX=no
  23094. + ;;
  23095. + esac
  23096. + ;;
  23097. + solaris*)
  23098. + case $cc_basename in
  23099. + CC*)
  23100. + # Sun C++ 4.2, 5.x and Centerline C++
  23101. + archive_cmds_need_lc_CXX=yes
  23102. + no_undefined_flag_CXX=' -zdefs'
  23103. + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  23104. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23105. + $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'
  23106. +
  23107. + hardcode_libdir_flag_spec_CXX='-R$libdir'
  23108. + hardcode_shlibpath_var_CXX=no
  23109. + case $host_os in
  23110. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  23111. + *)
  23112. + # The C++ compiler is used as linker so we must use $wl
  23113. + # flag to pass the commands to the underlying system
  23114. + # linker. We must also pass each convience library through
  23115. + # to the system linker between allextract/defaultextract.
  23116. + # The C++ compiler will combine linker options so we
  23117. + # cannot just pass the convience library names through
  23118. + # without $wl.
  23119. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  23120. + whole_archive_flag_spec_CXX='${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'
  23121. + ;;
  23122. + esac
  23123. + link_all_deplibs_CXX=yes
  23124. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23125. - conftest$ac_exeext
  23126. - if test "${ac_cv_search_dlopen+set}" = set; then
  23127. - break
  23128. -fi
  23129. -done
  23130. -if test "${ac_cv_search_dlopen+set}" = set; then
  23131. - :
  23132. -else
  23133. - ac_cv_search_dlopen=no
  23134. -fi
  23135. -rm conftest.$ac_ext
  23136. -LIBS=$ac_func_search_save_LIBS
  23137. -fi
  23138. -{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  23139. -echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
  23140. -ac_res=$ac_cv_search_dlopen
  23141. -if test "$ac_res" != no; then
  23142. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  23143. + output_verbose_link_cmd='echo'
  23144. -fi
  23145. + # Archives containing C++ object files must be created using
  23146. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  23147. + # necessary to make sure instantiated templates are included
  23148. + # in the archive.
  23149. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  23150. + ;;
  23151. + gcx*)
  23152. + # Green Hills C++ Compiler
  23153. + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23154. -{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
  23155. -echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
  23156. -if test "${ac_cv_search_clock_gettime+set}" = set; then
  23157. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23158. -else
  23159. - ac_func_search_save_LIBS=$LIBS
  23160. -cat >conftest.$ac_ext <<_ACEOF
  23161. -/* confdefs.h. */
  23162. -_ACEOF
  23163. -cat confdefs.h >>conftest.$ac_ext
  23164. -cat >>conftest.$ac_ext <<_ACEOF
  23165. -/* end confdefs.h. */
  23166. + # The C++ compiler must be used to create the archive.
  23167. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  23168. + ;;
  23169. + *)
  23170. + # GNU C++ compiler with Solaris linker
  23171. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  23172. + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  23173. + if $CC --version | grep -v '^2\.7' > /dev/null; then
  23174. + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23175. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23176. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  23177. +
  23178. + # Commands to make compiler produce verbose output that lists
  23179. + # what "hidden" libraries, object files and flags are used when
  23180. + # linking a shared library.
  23181. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  23182. + else
  23183. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  23184. + # platform.
  23185. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  23186. + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  23187. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  23188. +
  23189. + # Commands to make compiler produce verbose output that lists
  23190. + # what "hidden" libraries, object files and flags are used when
  23191. + # linking a shared library.
  23192. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  23193. + fi
  23194. -/* Override any GCC internal prototype to avoid an error.
  23195. - Use char because int might match the return type of a GCC
  23196. - builtin and then its argument prototype would still apply. */
  23197. -#ifdef __cplusplus
  23198. -extern "C"
  23199. -#endif
  23200. -char clock_gettime ();
  23201. -int
  23202. -main ()
  23203. -{
  23204. -return clock_gettime ();
  23205. - ;
  23206. - return 0;
  23207. -}
  23208. -_ACEOF
  23209. -for ac_lib in '' rt; do
  23210. - if test -z "$ac_lib"; then
  23211. - ac_res="none required"
  23212. - else
  23213. - ac_res=-l$ac_lib
  23214. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  23215. - fi
  23216. - rm -f conftest.$ac_objext conftest$ac_exeext
  23217. -if { (ac_try="$ac_link"
  23218. -case "(($ac_try" in
  23219. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  23220. - *) ac_try_echo=$ac_try;;
  23221. + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  23222. + fi
  23223. + ;;
  23224. + esac
  23225. + ;;
  23226. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  23227. + no_undefined_flag_CXX='${wl}-z,text'
  23228. + archive_cmds_need_lc_CXX=no
  23229. + hardcode_shlibpath_var_CXX=no
  23230. + runpath_var='LD_RUN_PATH'
  23231. +
  23232. + case $cc_basename in
  23233. + CC*)
  23234. + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23235. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23236. + ;;
  23237. + *)
  23238. + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23239. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23240. + ;;
  23241. + esac
  23242. + ;;
  23243. + sysv5* | sco3.2v5* | sco5v6*)
  23244. + # Note: We can NOT use -z defs as we might desire, because we do not
  23245. + # link with -lc, and that would cause any symbols used from libc to
  23246. + # always be unresolved, which means just about no library would
  23247. + # ever link correctly. If we're not using GNU ld we use -z text
  23248. + # though, which does catch some bad symbols but isn't as heavy-handed
  23249. + # as -z defs.
  23250. + # For security reasons, it is highly recommended that you always
  23251. + # use absolute paths for naming shared libraries, and exclude the
  23252. + # DT_RUNPATH tag from executables and libraries. But doing so
  23253. + # requires that you compile everything twice, which is a pain.
  23254. + # So that behaviour is only enabled if SCOABSPATH is set to a
  23255. + # non-empty value in the environment. Most likely only useful for
  23256. + # creating official distributions of packages.
  23257. + # This is a hack until libtool officially supports absolute path
  23258. + # names for shared libraries.
  23259. + no_undefined_flag_CXX='${wl}-z,text'
  23260. + allow_undefined_flag_CXX='${wl}-z,nodefs'
  23261. + archive_cmds_need_lc_CXX=no
  23262. + hardcode_shlibpath_var_CXX=no
  23263. + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  23264. + hardcode_libdir_separator_CXX=':'
  23265. + link_all_deplibs_CXX=yes
  23266. + export_dynamic_flag_spec_CXX='${wl}-Bexport'
  23267. + runpath_var='LD_RUN_PATH'
  23268. +
  23269. + case $cc_basename in
  23270. + CC*)
  23271. + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23272. + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23273. + ;;
  23274. + *)
  23275. + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23276. + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  23277. + ;;
  23278. + esac
  23279. + ;;
  23280. + tandem*)
  23281. + case $cc_basename in
  23282. + NCC*)
  23283. + # NonStop-UX NCC 3.20
  23284. + # FIXME: insert proper C++ library support
  23285. + ld_shlibs_CXX=no
  23286. + ;;
  23287. + *)
  23288. + # FIXME: insert proper C++ library support
  23289. + ld_shlibs_CXX=no
  23290. + ;;
  23291. + esac
  23292. + ;;
  23293. + vxworks*)
  23294. + # FIXME: insert proper C++ library support
  23295. + ld_shlibs_CXX=no
  23296. + ;;
  23297. + *)
  23298. + # FIXME: insert proper C++ library support
  23299. + ld_shlibs_CXX=no
  23300. + ;;
  23301. esac
  23302. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  23303. - (eval "$ac_link") 2>conftest.er1
  23304. - ac_status=$?
  23305. - grep -v '^ *+' conftest.er1 >conftest.err
  23306. - rm -f conftest.er1
  23307. - cat conftest.err >&5
  23308. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23309. - (exit $ac_status); } && {
  23310. - test -z "$ac_c_werror_flag" ||
  23311. - test ! -s conftest.err
  23312. - } && test -s conftest$ac_exeext &&
  23313. - $as_test_x conftest$ac_exeext; then
  23314. - ac_cv_search_clock_gettime=$ac_res
  23315. -else
  23316. - echo "$as_me: failed program was:" >&5
  23317. -sed 's/^/| /' conftest.$ac_ext >&5
  23318. +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  23319. +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  23320. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  23321. +GCC_CXX="$GXX"
  23322. +LD_CXX="$LD"
  23323. -fi
  23324. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  23325. - conftest$ac_exeext
  23326. - if test "${ac_cv_search_clock_gettime+set}" = set; then
  23327. - break
  23328. -fi
  23329. -done
  23330. -if test "${ac_cv_search_clock_gettime+set}" = set; then
  23331. - :
  23332. -else
  23333. - ac_cv_search_clock_gettime=no
  23334. -fi
  23335. -rm conftest.$ac_ext
  23336. -LIBS=$ac_func_search_save_LIBS
  23337. -fi
  23338. -{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
  23339. -echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
  23340. -ac_res=$ac_cv_search_clock_gettime
  23341. -if test "$ac_res" != no; then
  23342. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  23343. +cat > conftest.$ac_ext <<EOF
  23344. +class Foo
  23345. +{
  23346. +public:
  23347. + Foo (void) { a = 0; }
  23348. +private:
  23349. + int a;
  23350. +};
  23351. +EOF
  23352. -fi
  23353. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23354. + (eval $ac_compile) 2>&5
  23355. + ac_status=$?
  23356. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23357. + (exit $ac_status); }; then
  23358. + # Parse the compiler output and extract the necessary
  23359. + # objects, libraries and library flags.
  23360. -libfuse_libs="$libfuse_libs $LIBS"
  23361. -LIBS=
  23362. + # Sentinel used to keep track of whether or not we are before
  23363. + # the conftest object file.
  23364. + pre_test_object_deps_done=no
  23365. +
  23366. + # The `*' in the case matches for architectures that use `case' in
  23367. + # $output_verbose_cmd can trigger glob expansion during the loop
  23368. + # eval without this substitution.
  23369. + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  23370. +
  23371. + for p in `eval $output_verbose_link_cmd`; do
  23372. + case $p in
  23373. +
  23374. + -L* | -R* | -l*)
  23375. + # Some compilers place space between "-{L,R}" and the path.
  23376. + # Remove the space.
  23377. + if test $p = "-L" \
  23378. + || test $p = "-R"; then
  23379. + prev=$p
  23380. + continue
  23381. + else
  23382. + prev=
  23383. + fi
  23384. -# Check whether --with-libiconv-prefix was given.
  23385. -if test "${with_libiconv_prefix+set}" = set; then
  23386. - withval=$with_libiconv_prefix;
  23387. - for dir in `echo "$withval" | tr : ' '`; do
  23388. - if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
  23389. - if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
  23390. - done
  23391. + if test "$pre_test_object_deps_done" = no; then
  23392. + case $p in
  23393. + -L* | -R*)
  23394. + # Internal compiler library paths should come after those
  23395. + # provided the user. The postdeps already come after the
  23396. + # user supplied libs so there is no need to process them.
  23397. + if test -z "$compiler_lib_search_path_CXX"; then
  23398. + compiler_lib_search_path_CXX="${prev}${p}"
  23399. + else
  23400. + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  23401. + fi
  23402. + ;;
  23403. + # The "-l" case would never come before the object being
  23404. + # linked, so don't bother handling this case.
  23405. + esac
  23406. + else
  23407. + if test -z "$postdeps_CXX"; then
  23408. + postdeps_CXX="${prev}${p}"
  23409. + else
  23410. + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  23411. + fi
  23412. + fi
  23413. + ;;
  23414. -fi
  23415. + *.$objext)
  23416. + # This assumes that the test object file only shows up
  23417. + # once in the compiler output.
  23418. + if test "$p" = "conftest.$objext"; then
  23419. + pre_test_object_deps_done=yes
  23420. + continue
  23421. + fi
  23422. + if test "$pre_test_object_deps_done" = no; then
  23423. + if test -z "$predep_objects_CXX"; then
  23424. + predep_objects_CXX="$p"
  23425. + else
  23426. + predep_objects_CXX="$predep_objects_CXX $p"
  23427. + fi
  23428. + else
  23429. + if test -z "$postdep_objects_CXX"; then
  23430. + postdep_objects_CXX="$p"
  23431. + else
  23432. + postdep_objects_CXX="$postdep_objects_CXX $p"
  23433. + fi
  23434. + fi
  23435. + ;;
  23436. - if test "X$prefix" = "XNONE"; then
  23437. - acl_final_prefix="$ac_default_prefix"
  23438. - else
  23439. - acl_final_prefix="$prefix"
  23440. - fi
  23441. - if test "X$exec_prefix" = "XNONE"; then
  23442. - acl_final_exec_prefix='${prefix}'
  23443. - else
  23444. - acl_final_exec_prefix="$exec_prefix"
  23445. - fi
  23446. - acl_save_prefix="$prefix"
  23447. - prefix="$acl_final_prefix"
  23448. - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  23449. - prefix="$acl_save_prefix"
  23450. + *) ;; # Ignore the rest.
  23451. + esac
  23452. + done
  23453. -# Check whether --with-gnu-ld was given.
  23454. -if test "${with_gnu_ld+set}" = set; then
  23455. - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  23456. + # Clean up.
  23457. + rm -f a.out a.exe
  23458. else
  23459. - with_gnu_ld=no
  23460. + echo "libtool.m4: error: problem compiling CXX test program"
  23461. fi
  23462. -# Prepare PATH_SEPARATOR.
  23463. -# The user is always right.
  23464. -if test "${PATH_SEPARATOR+set}" != set; then
  23465. - echo "#! /bin/sh" >conf$$.sh
  23466. - echo "exit 0" >>conf$$.sh
  23467. - chmod +x conf$$.sh
  23468. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  23469. - PATH_SEPARATOR=';'
  23470. - else
  23471. - PATH_SEPARATOR=:
  23472. - fi
  23473. - rm -f conf$$.sh
  23474. -fi
  23475. -ac_prog=ld
  23476. -if test "$GCC" = yes; then
  23477. - # Check if gcc -print-prog-name=ld gives a path.
  23478. - { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  23479. -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  23480. - case $host in
  23481. - *-*-mingw*)
  23482. - # gcc leaves a trailing carriage return which upsets mingw
  23483. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  23484. - *)
  23485. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  23486. - esac
  23487. - case $ac_prog in
  23488. - # Accept absolute paths.
  23489. - [\\/]* | [A-Za-z]:[\\/]*)
  23490. - re_direlt='/[^/][^/]*/\.\./'
  23491. - # Canonicalize the path of ld
  23492. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  23493. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  23494. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  23495. - done
  23496. - test -z "$LD" && LD="$ac_prog"
  23497. - ;;
  23498. - "")
  23499. - # If it fails, then pretend we aren't using GCC.
  23500. - ac_prog=ld
  23501. - ;;
  23502. - *)
  23503. - # If it is relative, then search for the first ld in PATH.
  23504. - with_gnu_ld=unknown
  23505. +$rm -f confest.$objext
  23506. +
  23507. +# PORTME: override above test on systems where it is broken
  23508. +case $host_os in
  23509. +interix3*)
  23510. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  23511. + # hack all around it, let's just trust "g++" to DTRT.
  23512. + predep_objects_CXX=
  23513. + postdep_objects_CXX=
  23514. + postdeps_CXX=
  23515. + ;;
  23516. +
  23517. +solaris*)
  23518. + case $cc_basename in
  23519. + CC*)
  23520. + # Adding this requires a known-good setup of shared libraries for
  23521. + # Sun compiler versions before 5.6, else PIC objects from an old
  23522. + # archive will be linked into the output, leading to subtle bugs.
  23523. + postdeps_CXX='-lCstd -lCrun'
  23524. ;;
  23525. esac
  23526. -elif test "$with_gnu_ld" = yes; then
  23527. - { echo "$as_me:$LINENO: checking for GNU ld" >&5
  23528. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  23529. -else
  23530. - { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  23531. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  23532. -fi
  23533. -if test "${acl_cv_path_LD+set}" = set; then
  23534. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23535. -else
  23536. - if test -z "$LD"; then
  23537. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  23538. - for ac_dir in $PATH; do
  23539. - test -z "$ac_dir" && ac_dir=.
  23540. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  23541. - acl_cv_path_LD="$ac_dir/$ac_prog"
  23542. - # Check to see if the program is GNU ld. I'd rather use --version,
  23543. - # but apparently some GNU ld's only accept -v.
  23544. - # Break only if it was the GNU/non-GNU ld that we prefer.
  23545. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  23546. - *GNU* | *'with BFD'*)
  23547. - test "$with_gnu_ld" != no && break ;;
  23548. - *)
  23549. - test "$with_gnu_ld" != yes && break ;;
  23550. - esac
  23551. - fi
  23552. - done
  23553. - IFS="$ac_save_ifs"
  23554. -else
  23555. - acl_cv_path_LD="$LD" # Let the user override the test with a path.
  23556. -fi
  23557. -fi
  23558. -
  23559. -LD="$acl_cv_path_LD"
  23560. -if test -n "$LD"; then
  23561. - { echo "$as_me:$LINENO: result: $LD" >&5
  23562. -echo "${ECHO_T}$LD" >&6; }
  23563. -else
  23564. - { echo "$as_me:$LINENO: result: no" >&5
  23565. -echo "${ECHO_T}no" >&6; }
  23566. -fi
  23567. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  23568. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  23569. - { (exit 1); exit 1; }; }
  23570. -{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  23571. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  23572. -if test "${acl_cv_prog_gnu_ld+set}" = set; then
  23573. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23574. -else
  23575. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  23576. -case `$LD -v 2>&1 </dev/null` in
  23577. -*GNU* | *'with BFD'*)
  23578. - acl_cv_prog_gnu_ld=yes ;;
  23579. -*)
  23580. - acl_cv_prog_gnu_ld=no ;;
  23581. + ;;
  23582. esac
  23583. -fi
  23584. -{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  23585. -echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  23586. -with_gnu_ld=$acl_cv_prog_gnu_ld
  23587. +case " $postdeps_CXX " in
  23588. +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  23589. +esac
  23590. +lt_prog_compiler_wl_CXX=
  23591. +lt_prog_compiler_pic_CXX=
  23592. +lt_prog_compiler_static_CXX=
  23593. - { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  23594. -echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  23595. -if test "${acl_cv_rpath+set}" = set; then
  23596. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23597. -else
  23598. -
  23599. - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  23600. - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  23601. - . ./conftest.sh
  23602. - rm -f ./conftest.sh
  23603. - acl_cv_rpath=done
  23604. -
  23605. -fi
  23606. -{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  23607. -echo "${ECHO_T}$acl_cv_rpath" >&6; }
  23608. - wl="$acl_cv_wl"
  23609. - libext="$acl_cv_libext"
  23610. - shlibext="$acl_cv_shlibext"
  23611. - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  23612. - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  23613. - hardcode_direct="$acl_cv_hardcode_direct"
  23614. - hardcode_minus_L="$acl_cv_hardcode_minus_L"
  23615. - # Check whether --enable-rpath was given.
  23616. -if test "${enable_rpath+set}" = set; then
  23617. - enableval=$enable_rpath; :
  23618. -else
  23619. - enable_rpath=yes
  23620. -fi
  23621. -
  23622. +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  23623. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  23624. + # C++ specific cases for pic, static, wl, etc.
  23625. + if test "$GXX" = yes; then
  23626. + lt_prog_compiler_wl_CXX='-Wl,'
  23627. + lt_prog_compiler_static_CXX='-static'
  23628. - acl_libdirstem=lib
  23629. - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  23630. - if test -n "$searchpath"; then
  23631. - acl_save_IFS="${IFS= }"; IFS=":"
  23632. - for searchdir in $searchpath; do
  23633. - if test -d "$searchdir"; then
  23634. - case "$searchdir" in
  23635. - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  23636. - *) searchdir=`cd "$searchdir" && pwd`
  23637. - case "$searchdir" in
  23638. - */lib64 ) acl_libdirstem=lib64 ;;
  23639. - esac ;;
  23640. - esac
  23641. + case $host_os in
  23642. + aix*)
  23643. + # All AIX code is PIC.
  23644. + if test "$host_cpu" = ia64; then
  23645. + # AIX 5 now supports IA64 processor
  23646. + lt_prog_compiler_static_CXX='-Bstatic'
  23647. fi
  23648. - done
  23649. - IFS="$acl_save_IFS"
  23650. + ;;
  23651. + amigaos*)
  23652. + # FIXME: we need at least 68020 code to build shared libraries, but
  23653. + # adding the `-m68020' flag to GCC prevents building anything better,
  23654. + # like `-m68040'.
  23655. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  23656. + ;;
  23657. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  23658. + # PIC is the default for these OSes.
  23659. + ;;
  23660. + mingw* | os2* | pw32*)
  23661. + # This hack is so that the source file can tell whether it is being
  23662. + # built for inclusion in a dll (and should export symbols for example).
  23663. + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  23664. + ;;
  23665. + darwin* | rhapsody*)
  23666. + # PIC is the default on this platform
  23667. + # Common symbols not allowed in MH_DYLIB files
  23668. + lt_prog_compiler_pic_CXX='-fno-common'
  23669. + ;;
  23670. + *djgpp*)
  23671. + # DJGPP does not support shared libraries at all
  23672. + lt_prog_compiler_pic_CXX=
  23673. + ;;
  23674. + interix3*)
  23675. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  23676. + # Instead, we relocate shared libraries at runtime.
  23677. + ;;
  23678. + sysv4*MP*)
  23679. + if test -d /usr/nec; then
  23680. + lt_prog_compiler_pic_CXX=-Kconform_pic
  23681. + fi
  23682. + ;;
  23683. + hpux*)
  23684. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23685. + # not for PA HP-UX.
  23686. + case $host_cpu in
  23687. + hppa*64*|ia64*)
  23688. + ;;
  23689. + *)
  23690. + lt_prog_compiler_pic_CXX='-fPIC'
  23691. + ;;
  23692. + esac
  23693. + ;;
  23694. + *)
  23695. + lt_prog_compiler_pic_CXX='-fPIC'
  23696. + ;;
  23697. + esac
  23698. + else
  23699. + case $host_os in
  23700. + aix4* | aix5*)
  23701. + # All AIX code is PIC.
  23702. + if test "$host_cpu" = ia64; then
  23703. + # AIX 5 now supports IA64 processor
  23704. + lt_prog_compiler_static_CXX='-Bstatic'
  23705. + else
  23706. + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  23707. + fi
  23708. + ;;
  23709. + chorus*)
  23710. + case $cc_basename in
  23711. + cxch68*)
  23712. + # Green Hills C++ Compiler
  23713. + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  23714. + ;;
  23715. + esac
  23716. + ;;
  23717. + darwin*)
  23718. + # PIC is the default on this platform
  23719. + # Common symbols not allowed in MH_DYLIB files
  23720. + case $cc_basename in
  23721. + xlc*)
  23722. + lt_prog_compiler_pic_CXX='-qnocommon'
  23723. + lt_prog_compiler_wl_CXX='-Wl,'
  23724. + ;;
  23725. + esac
  23726. + ;;
  23727. + dgux*)
  23728. + case $cc_basename in
  23729. + ec++*)
  23730. + lt_prog_compiler_pic_CXX='-KPIC'
  23731. + ;;
  23732. + ghcx*)
  23733. + # Green Hills C++ Compiler
  23734. + lt_prog_compiler_pic_CXX='-pic'
  23735. + ;;
  23736. + *)
  23737. + ;;
  23738. + esac
  23739. + ;;
  23740. + freebsd* | kfreebsd*-gnu | dragonfly*)
  23741. + # FreeBSD uses GNU C++
  23742. + ;;
  23743. + hpux9* | hpux10* | hpux11*)
  23744. + case $cc_basename in
  23745. + CC*)
  23746. + lt_prog_compiler_wl_CXX='-Wl,'
  23747. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  23748. + if test "$host_cpu" != ia64; then
  23749. + lt_prog_compiler_pic_CXX='+Z'
  23750. + fi
  23751. + ;;
  23752. + aCC*)
  23753. + lt_prog_compiler_wl_CXX='-Wl,'
  23754. + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  23755. + case $host_cpu in
  23756. + hppa*64*|ia64*)
  23757. + # +Z the default
  23758. + ;;
  23759. + *)
  23760. + lt_prog_compiler_pic_CXX='+Z'
  23761. + ;;
  23762. + esac
  23763. + ;;
  23764. + *)
  23765. + ;;
  23766. + esac
  23767. + ;;
  23768. + interix*)
  23769. + # This is c89, which is MS Visual C++ (no shared libs)
  23770. + # Anyone wants to do a port?
  23771. + ;;
  23772. + irix5* | irix6* | nonstopux*)
  23773. + case $cc_basename in
  23774. + CC*)
  23775. + lt_prog_compiler_wl_CXX='-Wl,'
  23776. + lt_prog_compiler_static_CXX='-non_shared'
  23777. + # CC pic flag -KPIC is the default.
  23778. + ;;
  23779. + *)
  23780. + ;;
  23781. + esac
  23782. + ;;
  23783. + linux*)
  23784. + case $cc_basename in
  23785. + KCC*)
  23786. + # KAI C++ Compiler
  23787. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  23788. + lt_prog_compiler_pic_CXX='-fPIC'
  23789. + ;;
  23790. + icpc* | ecpc*)
  23791. + # Intel C++
  23792. + lt_prog_compiler_wl_CXX='-Wl,'
  23793. + lt_prog_compiler_pic_CXX='-KPIC'
  23794. + lt_prog_compiler_static_CXX='-static'
  23795. + ;;
  23796. + pgCC*)
  23797. + # Portland Group C++ compiler.
  23798. + lt_prog_compiler_wl_CXX='-Wl,'
  23799. + lt_prog_compiler_pic_CXX='-fpic'
  23800. + lt_prog_compiler_static_CXX='-Bstatic'
  23801. + ;;
  23802. + cxx*)
  23803. + # Compaq C++
  23804. + # Make sure the PIC flag is empty. It appears that all Alpha
  23805. + # Linux and Compaq Tru64 Unix objects are PIC.
  23806. + lt_prog_compiler_pic_CXX=
  23807. + lt_prog_compiler_static_CXX='-non_shared'
  23808. + ;;
  23809. + *)
  23810. + ;;
  23811. + esac
  23812. + ;;
  23813. + lynxos*)
  23814. + ;;
  23815. + m88k*)
  23816. + ;;
  23817. + mvs*)
  23818. + case $cc_basename in
  23819. + cxx*)
  23820. + lt_prog_compiler_pic_CXX='-W c,exportall'
  23821. + ;;
  23822. + *)
  23823. + ;;
  23824. + esac
  23825. + ;;
  23826. + netbsd*)
  23827. + ;;
  23828. + osf3* | osf4* | osf5*)
  23829. + case $cc_basename in
  23830. + KCC*)
  23831. + lt_prog_compiler_wl_CXX='--backend -Wl,'
  23832. + ;;
  23833. + RCC*)
  23834. + # Rational C++ 2.4.1
  23835. + lt_prog_compiler_pic_CXX='-pic'
  23836. + ;;
  23837. + cxx*)
  23838. + # Digital/Compaq C++
  23839. + lt_prog_compiler_wl_CXX='-Wl,'
  23840. + # Make sure the PIC flag is empty. It appears that all Alpha
  23841. + # Linux and Compaq Tru64 Unix objects are PIC.
  23842. + lt_prog_compiler_pic_CXX=
  23843. + lt_prog_compiler_static_CXX='-non_shared'
  23844. + ;;
  23845. + *)
  23846. + ;;
  23847. + esac
  23848. + ;;
  23849. + psos*)
  23850. + ;;
  23851. + solaris*)
  23852. + case $cc_basename in
  23853. + CC*)
  23854. + # Sun C++ 4.2, 5.x and Centerline C++
  23855. + lt_prog_compiler_pic_CXX='-KPIC'
  23856. + lt_prog_compiler_static_CXX='-Bstatic'
  23857. + lt_prog_compiler_wl_CXX='-Qoption ld '
  23858. + ;;
  23859. + gcx*)
  23860. + # Green Hills C++ Compiler
  23861. + lt_prog_compiler_pic_CXX='-PIC'
  23862. + ;;
  23863. + *)
  23864. + ;;
  23865. + esac
  23866. + ;;
  23867. + sunos4*)
  23868. + case $cc_basename in
  23869. + CC*)
  23870. + # Sun C++ 4.x
  23871. + lt_prog_compiler_pic_CXX='-pic'
  23872. + lt_prog_compiler_static_CXX='-Bstatic'
  23873. + ;;
  23874. + lcc*)
  23875. + # Lucid
  23876. + lt_prog_compiler_pic_CXX='-pic'
  23877. + ;;
  23878. + *)
  23879. + ;;
  23880. + esac
  23881. + ;;
  23882. + tandem*)
  23883. + case $cc_basename in
  23884. + NCC*)
  23885. + # NonStop-UX NCC 3.20
  23886. + lt_prog_compiler_pic_CXX='-KPIC'
  23887. + ;;
  23888. + *)
  23889. + ;;
  23890. + esac
  23891. + ;;
  23892. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  23893. + case $cc_basename in
  23894. + CC*)
  23895. + lt_prog_compiler_wl_CXX='-Wl,'
  23896. + lt_prog_compiler_pic_CXX='-KPIC'
  23897. + lt_prog_compiler_static_CXX='-Bstatic'
  23898. + ;;
  23899. + esac
  23900. + ;;
  23901. + vxworks*)
  23902. + ;;
  23903. + *)
  23904. + lt_prog_compiler_can_build_shared_CXX=no
  23905. + ;;
  23906. + esac
  23907. fi
  23908. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  23909. +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  23910. +#
  23911. +# Check to make sure the PIC flag actually works.
  23912. +#
  23913. +if test -n "$lt_prog_compiler_pic_CXX"; then
  23914. +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  23915. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  23916. +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  23917. + echo $ECHO_N "(cached) $ECHO_C" >&6
  23918. +else
  23919. + lt_prog_compiler_pic_works_CXX=no
  23920. + ac_outfile=conftest.$ac_objext
  23921. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23922. + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  23923. + # Insert the option either (1) after the last *FLAGS variable, or
  23924. + # (2) before a word containing "conftest.", or (3) at the end.
  23925. + # Note that $ac_compile itself does not contain backslashes and begins
  23926. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  23927. + # The option is referenced via a variable to avoid confusing sed.
  23928. + lt_compile=`echo "$ac_compile" | $SED \
  23929. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  23930. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23931. + -e 's:$: $lt_compiler_flag:'`
  23932. + (eval echo "\"\$as_me:12212: $lt_compile\"" >&5)
  23933. + (eval "$lt_compile" 2>conftest.err)
  23934. + ac_status=$?
  23935. + cat conftest.err >&5
  23936. + echo "$as_me:12216: \$? = $ac_status" >&5
  23937. + if (exit $ac_status) && test -s "$ac_outfile"; then
  23938. + # The compiler can only warn and ignore the option if not recognized
  23939. + # So say no if there are warnings other than the usual output.
  23940. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  23941. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23942. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  23943. + lt_prog_compiler_pic_works_CXX=yes
  23944. + fi
  23945. + fi
  23946. + $rm conftest*
  23947. +fi
  23948. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  23949. +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  23950. +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  23951. + case $lt_prog_compiler_pic_CXX in
  23952. + "" | " "*) ;;
  23953. + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  23954. + esac
  23955. +else
  23956. + lt_prog_compiler_pic_CXX=
  23957. + lt_prog_compiler_can_build_shared_CXX=no
  23958. +fi
  23959. +fi
  23960. +case $host_os in
  23961. + # For platforms which do not support PIC, -DPIC is meaningless:
  23962. + *djgpp*)
  23963. + lt_prog_compiler_pic_CXX=
  23964. + ;;
  23965. + *)
  23966. + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  23967. + ;;
  23968. +esac
  23969. +
  23970. +#
  23971. +# Check to make sure the static flag actually works.
  23972. +#
  23973. +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  23974. +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  23975. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  23976. +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  23977. + echo $ECHO_N "(cached) $ECHO_C" >&6
  23978. +else
  23979. + lt_prog_compiler_static_works_CXX=no
  23980. + save_LDFLAGS="$LDFLAGS"
  23981. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  23982. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  23983. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  23984. + # The linker can only warn and ignore the option if not recognized
  23985. + # So say no if there are warnings
  23986. + if test -s conftest.err; then
  23987. + # Append any errors to the config.log.
  23988. + cat conftest.err 1>&5
  23989. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  23990. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  23991. + if diff conftest.exp conftest.er2 >/dev/null; then
  23992. + lt_prog_compiler_static_works_CXX=yes
  23993. + fi
  23994. + else
  23995. + lt_prog_compiler_static_works_CXX=yes
  23996. + fi
  23997. + fi
  23998. + $rm conftest*
  23999. + LDFLAGS="$save_LDFLAGS"
  24000. +fi
  24001. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  24002. +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  24003. - use_additional=yes
  24004. -
  24005. - acl_save_prefix="$prefix"
  24006. - prefix="$acl_final_prefix"
  24007. - acl_save_exec_prefix="$exec_prefix"
  24008. - exec_prefix="$acl_final_exec_prefix"
  24009. -
  24010. - eval additional_includedir=\"$includedir\"
  24011. - eval additional_libdir=\"$libdir\"
  24012. -
  24013. - exec_prefix="$acl_save_exec_prefix"
  24014. - prefix="$acl_save_prefix"
  24015. -
  24016. +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  24017. + :
  24018. +else
  24019. + lt_prog_compiler_static_CXX=
  24020. +fi
  24021. -# Check whether --with-libiconv-prefix was given.
  24022. -if test "${with_libiconv_prefix+set}" = set; then
  24023. - withval=$with_libiconv_prefix;
  24024. - if test "X$withval" = "Xno"; then
  24025. - use_additional=no
  24026. - else
  24027. - if test "X$withval" = "X"; then
  24028. - acl_save_prefix="$prefix"
  24029. - prefix="$acl_final_prefix"
  24030. - acl_save_exec_prefix="$exec_prefix"
  24031. - exec_prefix="$acl_final_exec_prefix"
  24032. +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  24033. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  24034. +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  24035. + echo $ECHO_N "(cached) $ECHO_C" >&6
  24036. +else
  24037. + lt_cv_prog_compiler_c_o_CXX=no
  24038. + $rm -r conftest 2>/dev/null
  24039. + mkdir conftest
  24040. + cd conftest
  24041. + mkdir out
  24042. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24043. - eval additional_includedir=\"$includedir\"
  24044. - eval additional_libdir=\"$libdir\"
  24045. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  24046. + # Insert the option either (1) after the last *FLAGS variable, or
  24047. + # (2) before a word containing "conftest.", or (3) at the end.
  24048. + # Note that $ac_compile itself does not contain backslashes and begins
  24049. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  24050. + lt_compile=`echo "$ac_compile" | $SED \
  24051. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  24052. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  24053. + -e 's:$: $lt_compiler_flag:'`
  24054. + (eval echo "\"\$as_me:12316: $lt_compile\"" >&5)
  24055. + (eval "$lt_compile" 2>out/conftest.err)
  24056. + ac_status=$?
  24057. + cat out/conftest.err >&5
  24058. + echo "$as_me:12320: \$? = $ac_status" >&5
  24059. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  24060. + then
  24061. + # The compiler can only warn and ignore the option if not recognized
  24062. + # So say no if there are warnings
  24063. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  24064. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  24065. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  24066. + lt_cv_prog_compiler_c_o_CXX=yes
  24067. + fi
  24068. + fi
  24069. + chmod u+w . 2>&5
  24070. + $rm conftest*
  24071. + # SGI C++ compiler will create directory out/ii_files/ for
  24072. + # template instantiation
  24073. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  24074. + $rm out/* && rmdir out
  24075. + cd ..
  24076. + rmdir conftest
  24077. + $rm conftest*
  24078. - exec_prefix="$acl_save_exec_prefix"
  24079. - prefix="$acl_save_prefix"
  24080. +fi
  24081. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  24082. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  24083. - else
  24084. - additional_includedir="$withval/include"
  24085. - additional_libdir="$withval/$acl_libdirstem"
  24086. - fi
  24087. - fi
  24088. +hard_links="nottested"
  24089. +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  24090. + # do not overwrite the value of need_locks provided by the user
  24091. + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  24092. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  24093. + hard_links=yes
  24094. + $rm conftest*
  24095. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24096. + touch conftest.a
  24097. + ln conftest.a conftest.b 2>&5 || hard_links=no
  24098. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  24099. + { echo "$as_me:$LINENO: result: $hard_links" >&5
  24100. +echo "${ECHO_T}$hard_links" >&6; }
  24101. + if test "$hard_links" = no; then
  24102. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  24103. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  24104. + need_locks=warn
  24105. + fi
  24106. +else
  24107. + need_locks=no
  24108. fi
  24109. - LIBICONV=
  24110. - LTLIBICONV=
  24111. - INCICONV=
  24112. - rpathdirs=
  24113. - ltrpathdirs=
  24114. - names_already_handled=
  24115. - names_next_round='iconv '
  24116. - while test -n "$names_next_round"; do
  24117. - names_this_round="$names_next_round"
  24118. - names_next_round=
  24119. - for name in $names_this_round; do
  24120. - already_handled=
  24121. - for n in $names_already_handled; do
  24122. - if test "$n" = "$name"; then
  24123. - already_handled=yes
  24124. - break
  24125. - fi
  24126. - done
  24127. - if test -z "$already_handled"; then
  24128. - names_already_handled="$names_already_handled $name"
  24129. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  24130. - eval value=\"\$HAVE_LIB$uppername\"
  24131. - if test -n "$value"; then
  24132. - if test "$value" = yes; then
  24133. - eval value=\"\$LIB$uppername\"
  24134. - test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  24135. - eval value=\"\$LTLIB$uppername\"
  24136. - test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  24137. - else
  24138. - :
  24139. - fi
  24140. - else
  24141. - found_dir=
  24142. - found_la=
  24143. - found_so=
  24144. - found_a=
  24145. - if test $use_additional = yes; then
  24146. - if test -n "$shlibext" \
  24147. - && { test -f "$additional_libdir/lib$name.$shlibext" \
  24148. - || { test "$shlibext" = dll \
  24149. - && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
  24150. - found_dir="$additional_libdir"
  24151. - if test -f "$additional_libdir/lib$name.$shlibext"; then
  24152. - found_so="$additional_libdir/lib$name.$shlibext"
  24153. - else
  24154. - found_so="$additional_libdir/lib$name.dll.a"
  24155. - fi
  24156. - if test -f "$additional_libdir/lib$name.la"; then
  24157. - found_la="$additional_libdir/lib$name.la"
  24158. - fi
  24159. - else
  24160. - if test -f "$additional_libdir/lib$name.$libext"; then
  24161. - found_dir="$additional_libdir"
  24162. - found_a="$additional_libdir/lib$name.$libext"
  24163. - if test -f "$additional_libdir/lib$name.la"; then
  24164. - found_la="$additional_libdir/lib$name.la"
  24165. - fi
  24166. - fi
  24167. - fi
  24168. - fi
  24169. - if test "X$found_dir" = "X"; then
  24170. - for x in $LDFLAGS $LTLIBICONV; do
  24171. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  24172. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  24173. - acl_save_prefix="$prefix"
  24174. - prefix="$acl_final_prefix"
  24175. - acl_save_exec_prefix="$exec_prefix"
  24176. - exec_prefix="$acl_final_exec_prefix"
  24177. - eval x=\"$x\"
  24178. - exec_prefix="$acl_save_exec_prefix"
  24179. - prefix="$acl_save_prefix"
  24180. -
  24181. - case "$x" in
  24182. - -L*)
  24183. - dir=`echo "X$x" | sed -e 's/^X-L//'`
  24184. - if test -n "$shlibext" \
  24185. - && { test -f "$dir/lib$name.$shlibext" \
  24186. - || { test "$shlibext" = dll \
  24187. - && test -f "$dir/lib$name.dll.a"; }; }; then
  24188. - found_dir="$dir"
  24189. - if test -f "$dir/lib$name.$shlibext"; then
  24190. - found_so="$dir/lib$name.$shlibext"
  24191. - else
  24192. - found_so="$dir/lib$name.dll.a"
  24193. - fi
  24194. - if test -f "$dir/lib$name.la"; then
  24195. - found_la="$dir/lib$name.la"
  24196. - fi
  24197. - else
  24198. - if test -f "$dir/lib$name.$libext"; then
  24199. - found_dir="$dir"
  24200. - found_a="$dir/lib$name.$libext"
  24201. - if test -f "$dir/lib$name.la"; then
  24202. - found_la="$dir/lib$name.la"
  24203. - fi
  24204. - fi
  24205. - fi
  24206. - ;;
  24207. - esac
  24208. - if test "X$found_dir" != "X"; then
  24209. - break
  24210. - fi
  24211. - done
  24212. - fi
  24213. - if test "X$found_dir" != "X"; then
  24214. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  24215. - if test "X$found_so" != "X"; then
  24216. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  24217. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  24218. - else
  24219. - haveit=
  24220. - for x in $ltrpathdirs; do
  24221. - if test "X$x" = "X$found_dir"; then
  24222. - haveit=yes
  24223. - break
  24224. - fi
  24225. - done
  24226. - if test -z "$haveit"; then
  24227. - ltrpathdirs="$ltrpathdirs $found_dir"
  24228. - fi
  24229. - if test "$hardcode_direct" = yes; then
  24230. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  24231. - else
  24232. - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  24233. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  24234. - haveit=
  24235. - for x in $rpathdirs; do
  24236. - if test "X$x" = "X$found_dir"; then
  24237. - haveit=yes
  24238. - break
  24239. - fi
  24240. - done
  24241. - if test -z "$haveit"; then
  24242. - rpathdirs="$rpathdirs $found_dir"
  24243. - fi
  24244. - else
  24245. - haveit=
  24246. - for x in $LDFLAGS $LIBICONV; do
  24247. -
  24248. - acl_save_prefix="$prefix"
  24249. - prefix="$acl_final_prefix"
  24250. - acl_save_exec_prefix="$exec_prefix"
  24251. - exec_prefix="$acl_final_exec_prefix"
  24252. - eval x=\"$x\"
  24253. - exec_prefix="$acl_save_exec_prefix"
  24254. - prefix="$acl_save_prefix"
  24255. -
  24256. - if test "X$x" = "X-L$found_dir"; then
  24257. - haveit=yes
  24258. - break
  24259. - fi
  24260. - done
  24261. - if test -z "$haveit"; then
  24262. - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  24263. - fi
  24264. - if test "$hardcode_minus_L" != no; then
  24265. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  24266. - else
  24267. - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  24268. - fi
  24269. - fi
  24270. - fi
  24271. - fi
  24272. - else
  24273. - if test "X$found_a" != "X"; then
  24274. - LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  24275. - else
  24276. - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  24277. - fi
  24278. - fi
  24279. - additional_includedir=
  24280. - case "$found_dir" in
  24281. - */$acl_libdirstem | */$acl_libdirstem/)
  24282. - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  24283. - additional_includedir="$basedir/include"
  24284. - ;;
  24285. - esac
  24286. - if test "X$additional_includedir" != "X"; then
  24287. - if test "X$additional_includedir" != "X/usr/include"; then
  24288. - haveit=
  24289. - if test "X$additional_includedir" = "X/usr/local/include"; then
  24290. - if test -n "$GCC"; then
  24291. - case $host_os in
  24292. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  24293. - esac
  24294. - fi
  24295. - fi
  24296. - if test -z "$haveit"; then
  24297. - for x in $CPPFLAGS $INCICONV; do
  24298. -
  24299. - acl_save_prefix="$prefix"
  24300. - prefix="$acl_final_prefix"
  24301. - acl_save_exec_prefix="$exec_prefix"
  24302. - exec_prefix="$acl_final_exec_prefix"
  24303. - eval x=\"$x\"
  24304. - exec_prefix="$acl_save_exec_prefix"
  24305. - prefix="$acl_save_prefix"
  24306. -
  24307. - if test "X$x" = "X-I$additional_includedir"; then
  24308. - haveit=yes
  24309. - break
  24310. - fi
  24311. - done
  24312. - if test -z "$haveit"; then
  24313. - if test -d "$additional_includedir"; then
  24314. - INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  24315. - fi
  24316. - fi
  24317. - fi
  24318. - fi
  24319. - fi
  24320. - if test -n "$found_la"; then
  24321. - save_libdir="$libdir"
  24322. - case "$found_la" in
  24323. - */* | *\\*) . "$found_la" ;;
  24324. - *) . "./$found_la" ;;
  24325. - esac
  24326. - libdir="$save_libdir"
  24327. - for dep in $dependency_libs; do
  24328. - case "$dep" in
  24329. - -L*)
  24330. - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  24331. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  24332. - haveit=
  24333. - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  24334. - if test -n "$GCC"; then
  24335. - case $host_os in
  24336. - linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  24337. - esac
  24338. - fi
  24339. - fi
  24340. - if test -z "$haveit"; then
  24341. - haveit=
  24342. - for x in $LDFLAGS $LIBICONV; do
  24343. -
  24344. - acl_save_prefix="$prefix"
  24345. - prefix="$acl_final_prefix"
  24346. - acl_save_exec_prefix="$exec_prefix"
  24347. - exec_prefix="$acl_final_exec_prefix"
  24348. - eval x=\"$x\"
  24349. - exec_prefix="$acl_save_exec_prefix"
  24350. - prefix="$acl_save_prefix"
  24351. -
  24352. - if test "X$x" = "X-L$additional_libdir"; then
  24353. - haveit=yes
  24354. - break
  24355. - fi
  24356. - done
  24357. - if test -z "$haveit"; then
  24358. - if test -d "$additional_libdir"; then
  24359. - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  24360. - fi
  24361. - fi
  24362. - haveit=
  24363. - for x in $LDFLAGS $LTLIBICONV; do
  24364. -
  24365. - acl_save_prefix="$prefix"
  24366. - prefix="$acl_final_prefix"
  24367. - acl_save_exec_prefix="$exec_prefix"
  24368. - exec_prefix="$acl_final_exec_prefix"
  24369. - eval x=\"$x\"
  24370. - exec_prefix="$acl_save_exec_prefix"
  24371. - prefix="$acl_save_prefix"
  24372. -
  24373. - if test "X$x" = "X-L$additional_libdir"; then
  24374. - haveit=yes
  24375. - break
  24376. - fi
  24377. - done
  24378. - if test -z "$haveit"; then
  24379. - if test -d "$additional_libdir"; then
  24380. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  24381. - fi
  24382. - fi
  24383. - fi
  24384. - fi
  24385. - ;;
  24386. - -R*)
  24387. - dir=`echo "X$dep" | sed -e 's/^X-R//'`
  24388. - if test "$enable_rpath" != no; then
  24389. - haveit=
  24390. - for x in $rpathdirs; do
  24391. - if test "X$x" = "X$dir"; then
  24392. - haveit=yes
  24393. - break
  24394. - fi
  24395. - done
  24396. - if test -z "$haveit"; then
  24397. - rpathdirs="$rpathdirs $dir"
  24398. - fi
  24399. - haveit=
  24400. - for x in $ltrpathdirs; do
  24401. - if test "X$x" = "X$dir"; then
  24402. - haveit=yes
  24403. - break
  24404. - fi
  24405. - done
  24406. - if test -z "$haveit"; then
  24407. - ltrpathdirs="$ltrpathdirs $dir"
  24408. - fi
  24409. - fi
  24410. - ;;
  24411. - -l*)
  24412. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  24413. - ;;
  24414. - *.la)
  24415. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  24416. - ;;
  24417. - *)
  24418. - LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  24419. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  24420. - ;;
  24421. - esac
  24422. - done
  24423. - fi
  24424. - else
  24425. - LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  24426. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  24427. - fi
  24428. - fi
  24429. - fi
  24430. - done
  24431. - done
  24432. - if test "X$rpathdirs" != "X"; then
  24433. - if test -n "$hardcode_libdir_separator"; then
  24434. - alldirs=
  24435. - for found_dir in $rpathdirs; do
  24436. - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  24437. - done
  24438. - acl_save_libdir="$libdir"
  24439. - libdir="$alldirs"
  24440. - eval flag=\"$hardcode_libdir_flag_spec\"
  24441. - libdir="$acl_save_libdir"
  24442. - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  24443. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24444. + case $host_os in
  24445. + aix4* | aix5*)
  24446. + # If we're using GNU nm, then we don't want the "-C" option.
  24447. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  24448. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  24449. + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  24450. else
  24451. - for found_dir in $rpathdirs; do
  24452. - acl_save_libdir="$libdir"
  24453. - libdir="$found_dir"
  24454. - eval flag=\"$hardcode_libdir_flag_spec\"
  24455. - libdir="$acl_save_libdir"
  24456. - LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  24457. - done
  24458. + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  24459. fi
  24460. - fi
  24461. - if test "X$ltrpathdirs" != "X"; then
  24462. - for found_dir in $ltrpathdirs; do
  24463. - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  24464. - done
  24465. - fi
  24466. + ;;
  24467. + pw32*)
  24468. + export_symbols_cmds_CXX="$ltdll_cmds"
  24469. + ;;
  24470. + cygwin* | mingw*)
  24471. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  24472. + ;;
  24473. + *)
  24474. + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  24475. + ;;
  24476. + esac
  24477. +{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  24478. +echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  24479. +test "$ld_shlibs_CXX" = no && can_build_shared=no
  24480. +#
  24481. +# Do we need to explicitly link libc?
  24482. +#
  24483. +case "x$archive_cmds_need_lc_CXX" in
  24484. +x|xyes)
  24485. + # Assume -lc should be added
  24486. + archive_cmds_need_lc_CXX=yes
  24487. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  24488. + case $archive_cmds_CXX in
  24489. + *'~'*)
  24490. + # FIXME: we may have to deal with multi-command sequences.
  24491. + ;;
  24492. + '$CC '*)
  24493. + # Test whether the compiler implicitly links with -lc since on some
  24494. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  24495. + # to ld, don't add -lc before -lgcc.
  24496. + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  24497. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  24498. + $rm conftest*
  24499. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24500. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24501. + (eval $ac_compile) 2>&5
  24502. + ac_status=$?
  24503. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24504. + (exit $ac_status); } 2>conftest.err; then
  24505. + soname=conftest
  24506. + lib=conftest
  24507. + libobjs=conftest.$ac_objext
  24508. + deplibs=
  24509. + wl=$lt_prog_compiler_wl_CXX
  24510. + pic_flag=$lt_prog_compiler_pic_CXX
  24511. + compiler_flags=-v
  24512. + linker_flags=-v
  24513. + verstring=
  24514. + output_objdir=.
  24515. + libname=conftest
  24516. + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  24517. + allow_undefined_flag_CXX=
  24518. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  24519. + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  24520. + ac_status=$?
  24521. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24522. + (exit $ac_status); }
  24523. + then
  24524. + archive_cmds_need_lc_CXX=no
  24525. + else
  24526. + archive_cmds_need_lc_CXX=yes
  24527. + fi
  24528. + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  24529. + else
  24530. + cat conftest.err 1>&5
  24531. + fi
  24532. + $rm conftest*
  24533. + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  24534. +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  24535. + ;;
  24536. + esac
  24537. + fi
  24538. + ;;
  24539. +esac
  24540. +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  24541. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  24542. +library_names_spec=
  24543. +libname_spec='lib$name'
  24544. +soname_spec=
  24545. +shrext_cmds=".so"
  24546. +postinstall_cmds=
  24547. +postuninstall_cmds=
  24548. +finish_cmds=
  24549. +finish_eval=
  24550. +shlibpath_var=
  24551. +shlibpath_overrides_runpath=unknown
  24552. +version_type=none
  24553. +dynamic_linker="$host_os ld.so"
  24554. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  24555. +if test "$GCC" = yes; then
  24556. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24557. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  24558. + # if the path contains ";" then we assume it to be the separator
  24559. + # otherwise default to the standard path separator (i.e. ":") - it is
  24560. + # assumed that no part of a normal pathname contains ";" but that should
  24561. + # okay in the real world where ";" in dirpaths is itself problematic.
  24562. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  24563. + else
  24564. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  24565. + fi
  24566. +else
  24567. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  24568. +fi
  24569. +need_lib_prefix=unknown
  24570. +hardcode_into_libs=no
  24571. +# when you set need_version to no, make sure it does not cause -set_version
  24572. +# flags to be left without arguments
  24573. +need_version=unknown
  24574. - am_save_CPPFLAGS="$CPPFLAGS"
  24575. +case $host_os in
  24576. +aix3*)
  24577. + version_type=linux
  24578. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  24579. + shlibpath_var=LIBPATH
  24580. - for element in $INCICONV; do
  24581. - haveit=
  24582. - for x in $CPPFLAGS; do
  24583. -
  24584. - acl_save_prefix="$prefix"
  24585. - prefix="$acl_final_prefix"
  24586. - acl_save_exec_prefix="$exec_prefix"
  24587. - exec_prefix="$acl_final_exec_prefix"
  24588. - eval x=\"$x\"
  24589. - exec_prefix="$acl_save_exec_prefix"
  24590. - prefix="$acl_save_prefix"
  24591. + # AIX 3 has no versioning support, so we append a major version to the name.
  24592. + soname_spec='${libname}${release}${shared_ext}$major'
  24593. + ;;
  24594. - if test "X$x" = "X$element"; then
  24595. - haveit=yes
  24596. - break
  24597. +aix4* | aix5*)
  24598. + version_type=linux
  24599. + need_lib_prefix=no
  24600. + need_version=no
  24601. + hardcode_into_libs=yes
  24602. + if test "$host_cpu" = ia64; then
  24603. + # AIX 5 supports IA64
  24604. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  24605. + shlibpath_var=LD_LIBRARY_PATH
  24606. + else
  24607. + # With GCC up to 2.95.x, collect2 would create an import file
  24608. + # for dependence libraries. The import file would start with
  24609. + # the line `#! .'. This would cause the generated library to
  24610. + # depend on `.', always an invalid library. This was fixed in
  24611. + # development snapshots of GCC prior to 3.0.
  24612. + case $host_os in
  24613. + aix4 | aix4.[01] | aix4.[01].*)
  24614. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  24615. + echo ' yes '
  24616. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  24617. + :
  24618. + else
  24619. + can_build_shared=no
  24620. fi
  24621. - done
  24622. - if test -z "$haveit"; then
  24623. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  24624. + ;;
  24625. + esac
  24626. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  24627. + # soname into executable. Probably we can add versioning support to
  24628. + # collect2, so additional links can be useful in future.
  24629. + if test "$aix_use_runtimelinking" = yes; then
  24630. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  24631. + # instead of lib<name>.a to let people know that these are not
  24632. + # typical AIX shared libraries.
  24633. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24634. + else
  24635. + # We preserve .a as extension for shared libraries through AIX4.2
  24636. + # and later when we are not doing run time linking.
  24637. + library_names_spec='${libname}${release}.a $libname.a'
  24638. + soname_spec='${libname}${release}${shared_ext}$major'
  24639. fi
  24640. - done
  24641. -
  24642. + shlibpath_var=LIBPATH
  24643. + fi
  24644. + ;;
  24645. - { echo "$as_me:$LINENO: checking for iconv" >&5
  24646. -echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  24647. -if test "${am_cv_func_iconv+set}" = set; then
  24648. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24649. -else
  24650. +amigaos*)
  24651. + library_names_spec='$libname.ixlibrary $libname.a'
  24652. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  24653. + 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'
  24654. + ;;
  24655. - am_cv_func_iconv="no, consider installing GNU libiconv"
  24656. - am_cv_lib_iconv=no
  24657. - cat >conftest.$ac_ext <<_ACEOF
  24658. -/* confdefs.h. */
  24659. -_ACEOF
  24660. -cat confdefs.h >>conftest.$ac_ext
  24661. -cat >>conftest.$ac_ext <<_ACEOF
  24662. -/* end confdefs.h. */
  24663. -#include <stdlib.h>
  24664. -#include <iconv.h>
  24665. -int
  24666. -main ()
  24667. -{
  24668. -iconv_t cd = iconv_open("","");
  24669. - iconv(cd,NULL,NULL,NULL,NULL);
  24670. - iconv_close(cd);
  24671. - ;
  24672. - return 0;
  24673. -}
  24674. -_ACEOF
  24675. -rm -f conftest.$ac_objext conftest$ac_exeext
  24676. -if { (ac_try="$ac_link"
  24677. -case "(($ac_try" in
  24678. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24679. - *) ac_try_echo=$ac_try;;
  24680. -esac
  24681. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24682. - (eval "$ac_link") 2>conftest.er1
  24683. - ac_status=$?
  24684. - grep -v '^ *+' conftest.er1 >conftest.err
  24685. - rm -f conftest.er1
  24686. - cat conftest.err >&5
  24687. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24688. - (exit $ac_status); } && {
  24689. - test -z "$ac_c_werror_flag" ||
  24690. - test ! -s conftest.err
  24691. - } && test -s conftest$ac_exeext &&
  24692. - $as_test_x conftest$ac_exeext; then
  24693. - am_cv_func_iconv=yes
  24694. -else
  24695. - echo "$as_me: failed program was:" >&5
  24696. -sed 's/^/| /' conftest.$ac_ext >&5
  24697. +beos*)
  24698. + library_names_spec='${libname}${shared_ext}'
  24699. + dynamic_linker="$host_os ld.so"
  24700. + shlibpath_var=LIBRARY_PATH
  24701. + ;;
  24702. +bsdi[45]*)
  24703. + version_type=linux
  24704. + need_version=no
  24705. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24706. + soname_spec='${libname}${release}${shared_ext}$major'
  24707. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  24708. + shlibpath_var=LD_LIBRARY_PATH
  24709. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  24710. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  24711. + # the default ld.so.conf also contains /usr/contrib/lib and
  24712. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  24713. + # libtool to hard-code these into programs
  24714. + ;;
  24715. -fi
  24716. +cygwin* | mingw* | pw32*)
  24717. + version_type=windows
  24718. + shrext_cmds=".dll"
  24719. + need_version=no
  24720. + need_lib_prefix=no
  24721. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24722. - conftest$ac_exeext conftest.$ac_ext
  24723. - if test "$am_cv_func_iconv" != yes; then
  24724. - am_save_LIBS="$LIBS"
  24725. - LIBS="$LIBS $LIBICONV"
  24726. - cat >conftest.$ac_ext <<_ACEOF
  24727. -/* confdefs.h. */
  24728. -_ACEOF
  24729. -cat confdefs.h >>conftest.$ac_ext
  24730. -cat >>conftest.$ac_ext <<_ACEOF
  24731. -/* end confdefs.h. */
  24732. -#include <stdlib.h>
  24733. -#include <iconv.h>
  24734. -int
  24735. -main ()
  24736. -{
  24737. -iconv_t cd = iconv_open("","");
  24738. - iconv(cd,NULL,NULL,NULL,NULL);
  24739. - iconv_close(cd);
  24740. - ;
  24741. - return 0;
  24742. -}
  24743. -_ACEOF
  24744. -rm -f conftest.$ac_objext conftest$ac_exeext
  24745. -if { (ac_try="$ac_link"
  24746. -case "(($ac_try" in
  24747. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  24748. - *) ac_try_echo=$ac_try;;
  24749. -esac
  24750. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  24751. - (eval "$ac_link") 2>conftest.er1
  24752. - ac_status=$?
  24753. - grep -v '^ *+' conftest.er1 >conftest.err
  24754. - rm -f conftest.er1
  24755. - cat conftest.err >&5
  24756. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24757. - (exit $ac_status); } && {
  24758. - test -z "$ac_c_werror_flag" ||
  24759. - test ! -s conftest.err
  24760. - } && test -s conftest$ac_exeext &&
  24761. - $as_test_x conftest$ac_exeext; then
  24762. - am_cv_lib_iconv=yes
  24763. - am_cv_func_iconv=yes
  24764. -else
  24765. - echo "$as_me: failed program was:" >&5
  24766. -sed 's/^/| /' conftest.$ac_ext >&5
  24767. + case $GCC,$host_os in
  24768. + yes,cygwin* | yes,mingw* | yes,pw32*)
  24769. + library_names_spec='$libname.dll.a'
  24770. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  24771. + postinstall_cmds='base_file=`basename \${file}`~
  24772. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  24773. + dldir=$destdir/`dirname \$dlpath`~
  24774. + test -d \$dldir || mkdir -p \$dldir~
  24775. + $install_prog $dir/$dlname \$dldir/$dlname~
  24776. + chmod a+x \$dldir/$dlname'
  24777. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  24778. + dlpath=$dir/\$dldll~
  24779. + $rm \$dlpath'
  24780. + shlibpath_overrides_runpath=yes
  24781. +
  24782. + case $host_os in
  24783. + cygwin*)
  24784. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  24785. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24786. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  24787. + ;;
  24788. + mingw*)
  24789. + # MinGW DLLs use traditional 'lib' prefix
  24790. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24791. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24792. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  24793. + # It is most probably a Windows format PATH printed by
  24794. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  24795. + # path with ; separators, and with drive letters. We can handle the
  24796. + # drive letters (cygwin fileutils understands them), so leave them,
  24797. + # especially as we might pass files found there to a mingw objdump,
  24798. + # which wouldn't understand a cygwinified path. Ahh.
  24799. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  24800. + else
  24801. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  24802. + fi
  24803. + ;;
  24804. + pw32*)
  24805. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  24806. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24807. + ;;
  24808. + esac
  24809. + ;;
  24810. + *)
  24811. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  24812. + ;;
  24813. + esac
  24814. + dynamic_linker='Win32 ld.exe'
  24815. + # FIXME: first we should search . and the directory the executable is in
  24816. + shlibpath_var=PATH
  24817. + ;;
  24818. -fi
  24819. +darwin* | rhapsody*)
  24820. + dynamic_linker="$host_os dyld"
  24821. + version_type=darwin
  24822. + need_lib_prefix=no
  24823. + need_version=no
  24824. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  24825. + soname_spec='${libname}${release}${major}$shared_ext'
  24826. + shlibpath_overrides_runpath=yes
  24827. + shlibpath_var=DYLD_LIBRARY_PATH
  24828. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  24829. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  24830. + if test "$GCC" = yes; then
  24831. + 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"`
  24832. + else
  24833. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  24834. + fi
  24835. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  24836. + ;;
  24837. -rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  24838. - conftest$ac_exeext conftest.$ac_ext
  24839. - LIBS="$am_save_LIBS"
  24840. - fi
  24841. +dgux*)
  24842. + version_type=linux
  24843. + need_lib_prefix=no
  24844. + need_version=no
  24845. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  24846. + soname_spec='${libname}${release}${shared_ext}$major'
  24847. + shlibpath_var=LD_LIBRARY_PATH
  24848. + ;;
  24849. -fi
  24850. -{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  24851. -echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  24852. - if test "$am_cv_func_iconv" = yes; then
  24853. +freebsd1*)
  24854. + dynamic_linker=no
  24855. + ;;
  24856. -cat >>confdefs.h <<\_ACEOF
  24857. -#define HAVE_ICONV 1
  24858. -_ACEOF
  24859. +kfreebsd*-gnu)
  24860. + version_type=linux
  24861. + need_lib_prefix=no
  24862. + need_version=no
  24863. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  24864. + soname_spec='${libname}${release}${shared_ext}$major'
  24865. + shlibpath_var=LD_LIBRARY_PATH
  24866. + shlibpath_overrides_runpath=no
  24867. + hardcode_into_libs=yes
  24868. + dynamic_linker='GNU ld.so'
  24869. + ;;
  24870. +freebsd* | dragonfly*)
  24871. + # DragonFly does not have aout. When/if they implement a new
  24872. + # versioning mechanism, adjust this.
  24873. + if test -x /usr/bin/objformat; then
  24874. + objformat=`/usr/bin/objformat`
  24875. + else
  24876. + case $host_os in
  24877. + freebsd[123]*) objformat=aout ;;
  24878. + *) objformat=elf ;;
  24879. + esac
  24880. fi
  24881. - if test "$am_cv_lib_iconv" = yes; then
  24882. - { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  24883. -echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  24884. - { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  24885. -echo "${ECHO_T}$LIBICONV" >&6; }
  24886. - else
  24887. - CPPFLAGS="$am_save_CPPFLAGS"
  24888. - LIBICONV=
  24889. - LTLIBICONV=
  24890. - fi
  24891. -
  24892. + version_type=freebsd-$objformat
  24893. + case $version_type in
  24894. + freebsd-elf*)
  24895. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  24896. + need_version=no
  24897. + need_lib_prefix=no
  24898. + ;;
  24899. + freebsd-*)
  24900. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  24901. + need_version=yes
  24902. + ;;
  24903. + esac
  24904. + shlibpath_var=LD_LIBRARY_PATH
  24905. + case $host_os in
  24906. + freebsd2*)
  24907. + shlibpath_overrides_runpath=yes
  24908. + ;;
  24909. + freebsd3.[01]* | freebsdelf3.[01]*)
  24910. + shlibpath_overrides_runpath=yes
  24911. + hardcode_into_libs=yes
  24912. + ;;
  24913. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  24914. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  24915. + shlibpath_overrides_runpath=no
  24916. + hardcode_into_libs=yes
  24917. + ;;
  24918. + freebsd*) # from 4.6 on
  24919. + shlibpath_overrides_runpath=yes
  24920. + hardcode_into_libs=yes
  24921. + ;;
  24922. + esac
  24923. + ;;
  24924. +gnu*)
  24925. + version_type=linux
  24926. + need_lib_prefix=no
  24927. + need_version=no
  24928. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  24929. + soname_spec='${libname}${release}${shared_ext}$major'
  24930. + shlibpath_var=LD_LIBRARY_PATH
  24931. + hardcode_into_libs=yes
  24932. + ;;
  24933. - if test "$am_cv_func_iconv" = yes; then
  24934. - { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  24935. -echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  24936. - if test "${am_cv_proto_iconv+set}" = set; then
  24937. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24938. -else
  24939. -
  24940. - cat >conftest.$ac_ext <<_ACEOF
  24941. -/* confdefs.h. */
  24942. -_ACEOF
  24943. -cat confdefs.h >>conftest.$ac_ext
  24944. -cat >>conftest.$ac_ext <<_ACEOF
  24945. -/* end confdefs.h. */
  24946. +hpux9* | hpux10* | hpux11*)
  24947. + # Give a soname corresponding to the major version so that dld.sl refuses to
  24948. + # link against other versions.
  24949. + version_type=sunos
  24950. + need_lib_prefix=no
  24951. + need_version=no
  24952. + case $host_cpu in
  24953. + ia64*)
  24954. + shrext_cmds='.so'
  24955. + hardcode_into_libs=yes
  24956. + dynamic_linker="$host_os dld.so"
  24957. + shlibpath_var=LD_LIBRARY_PATH
  24958. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  24959. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24960. + soname_spec='${libname}${release}${shared_ext}$major'
  24961. + if test "X$HPUX_IA64_MODE" = X32; then
  24962. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  24963. + else
  24964. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  24965. + fi
  24966. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  24967. + ;;
  24968. + hppa*64*)
  24969. + shrext_cmds='.sl'
  24970. + hardcode_into_libs=yes
  24971. + dynamic_linker="$host_os dld.sl"
  24972. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  24973. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  24974. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24975. + soname_spec='${libname}${release}${shared_ext}$major'
  24976. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  24977. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  24978. + ;;
  24979. + *)
  24980. + shrext_cmds='.sl'
  24981. + dynamic_linker="$host_os dld.sl"
  24982. + shlibpath_var=SHLIB_PATH
  24983. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  24984. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24985. + soname_spec='${libname}${release}${shared_ext}$major'
  24986. + ;;
  24987. + esac
  24988. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  24989. + postinstall_cmds='chmod 555 $lib'
  24990. + ;;
  24991. -#include <stdlib.h>
  24992. -#include <iconv.h>
  24993. -extern
  24994. -#ifdef __cplusplus
  24995. -"C"
  24996. -#endif
  24997. -#if defined(__STDC__) || defined(__cplusplus)
  24998. -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  24999. -#else
  25000. -size_t iconv();
  25001. -#endif
  25002. +interix3*)
  25003. + version_type=linux
  25004. + need_lib_prefix=no
  25005. + need_version=no
  25006. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25007. + soname_spec='${libname}${release}${shared_ext}$major'
  25008. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  25009. + shlibpath_var=LD_LIBRARY_PATH
  25010. + shlibpath_overrides_runpath=no
  25011. + hardcode_into_libs=yes
  25012. + ;;
  25013. -int
  25014. -main ()
  25015. -{
  25016. +irix5* | irix6* | nonstopux*)
  25017. + case $host_os in
  25018. + nonstopux*) version_type=nonstopux ;;
  25019. + *)
  25020. + if test "$lt_cv_prog_gnu_ld" = yes; then
  25021. + version_type=linux
  25022. + else
  25023. + version_type=irix
  25024. + fi ;;
  25025. + esac
  25026. + need_lib_prefix=no
  25027. + need_version=no
  25028. + soname_spec='${libname}${release}${shared_ext}$major'
  25029. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  25030. + case $host_os in
  25031. + irix5* | nonstopux*)
  25032. + libsuff= shlibsuff=
  25033. + ;;
  25034. + *)
  25035. + case $LD in # libtool.m4 will add one of these switches to LD
  25036. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  25037. + libsuff= shlibsuff= libmagic=32-bit;;
  25038. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  25039. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  25040. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  25041. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  25042. + *) libsuff= shlibsuff= libmagic=never-match;;
  25043. + esac
  25044. + ;;
  25045. + esac
  25046. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  25047. + shlibpath_overrides_runpath=no
  25048. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  25049. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  25050. + hardcode_into_libs=yes
  25051. + ;;
  25052. - ;
  25053. - return 0;
  25054. -}
  25055. -_ACEOF
  25056. -rm -f conftest.$ac_objext
  25057. -if { (ac_try="$ac_compile"
  25058. -case "(($ac_try" in
  25059. - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  25060. - *) ac_try_echo=$ac_try;;
  25061. -esac
  25062. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  25063. - (eval "$ac_compile") 2>conftest.er1
  25064. - ac_status=$?
  25065. - grep -v '^ *+' conftest.er1 >conftest.err
  25066. - rm -f conftest.er1
  25067. - cat conftest.err >&5
  25068. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25069. - (exit $ac_status); } && {
  25070. - test -z "$ac_c_werror_flag" ||
  25071. - test ! -s conftest.err
  25072. - } && test -s conftest.$ac_objext; then
  25073. - am_cv_proto_iconv_arg1=""
  25074. -else
  25075. - echo "$as_me: failed program was:" >&5
  25076. -sed 's/^/| /' conftest.$ac_ext >&5
  25077. +# No shared lib support for Linux oldld, aout, or coff.
  25078. +linux*oldld* | linux*aout* | linux*coff*)
  25079. + dynamic_linker=no
  25080. + ;;
  25081. - am_cv_proto_iconv_arg1="const"
  25082. -fi
  25083. +# This must be Linux ELF.
  25084. +linux*)
  25085. + version_type=linux
  25086. + need_lib_prefix=no
  25087. + need_version=no
  25088. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25089. + soname_spec='${libname}${release}${shared_ext}$major'
  25090. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  25091. + shlibpath_var=LD_LIBRARY_PATH
  25092. + shlibpath_overrides_runpath=no
  25093. + # This implies no fast_install, which is unacceptable.
  25094. + # Some rework will be needed to allow for fast_install
  25095. + # before this can be enabled.
  25096. + hardcode_into_libs=yes
  25097. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25098. - 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);"
  25099. -fi
  25100. + # Append ld.so.conf contents to the search path
  25101. + if test -f /etc/ld.so.conf; then
  25102. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  25103. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  25104. + fi
  25105. - am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  25106. - { echo "$as_me:$LINENO: result: ${ac_t:-
  25107. - }$am_cv_proto_iconv" >&5
  25108. -echo "${ECHO_T}${ac_t:-
  25109. - }$am_cv_proto_iconv" >&6; }
  25110. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  25111. + # powerpc, because MkLinux only supported shared libraries with the
  25112. + # GNU dynamic linker. Since this was broken with cross compilers,
  25113. + # most powerpc-linux boxes support dynamic linking these days and
  25114. + # people can always --disable-shared, the test was removed, and we
  25115. + # assume the GNU/Linux dynamic linker is in use.
  25116. + dynamic_linker='GNU/Linux ld.so'
  25117. + ;;
  25118. -cat >>confdefs.h <<_ACEOF
  25119. -#define ICONV_CONST $am_cv_proto_iconv_arg1
  25120. -_ACEOF
  25121. +knetbsd*-gnu)
  25122. + version_type=linux
  25123. + need_lib_prefix=no
  25124. + need_version=no
  25125. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25126. + soname_spec='${libname}${release}${shared_ext}$major'
  25127. + shlibpath_var=LD_LIBRARY_PATH
  25128. + shlibpath_overrides_runpath=no
  25129. + hardcode_into_libs=yes
  25130. + dynamic_linker='GNU ld.so'
  25131. + ;;
  25132. +netbsd*)
  25133. + version_type=sunos
  25134. + need_lib_prefix=no
  25135. + need_version=no
  25136. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25137. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25138. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25139. + dynamic_linker='NetBSD (a.out) ld.so'
  25140. + else
  25141. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25142. + soname_spec='${libname}${release}${shared_ext}$major'
  25143. + dynamic_linker='NetBSD ld.elf_so'
  25144. fi
  25145. + shlibpath_var=LD_LIBRARY_PATH
  25146. + shlibpath_overrides_runpath=yes
  25147. + hardcode_into_libs=yes
  25148. + ;;
  25149. -libfuse_libs="$libfuse_libs $LIBICONV"
  25150. -
  25151. +newsos6)
  25152. + version_type=linux
  25153. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25154. + shlibpath_var=LD_LIBRARY_PATH
  25155. + shlibpath_overrides_runpath=yes
  25156. + ;;
  25157. -if test "$am_cv_func_iconv" = yes; then
  25158. - ICONV_TRUE=
  25159. - ICONV_FALSE='#'
  25160. -else
  25161. - ICONV_TRUE='#'
  25162. - ICONV_FALSE=
  25163. -fi
  25164. +nto-qnx*)
  25165. + version_type=linux
  25166. + need_lib_prefix=no
  25167. + need_version=no
  25168. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25169. + soname_spec='${libname}${release}${shared_ext}$major'
  25170. + shlibpath_var=LD_LIBRARY_PATH
  25171. + shlibpath_overrides_runpath=yes
  25172. + ;;
  25173. +openbsd*)
  25174. + version_type=sunos
  25175. + sys_lib_dlsearch_path_spec="/usr/lib"
  25176. + need_lib_prefix=no
  25177. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  25178. + case $host_os in
  25179. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  25180. + *) need_version=no ;;
  25181. + esac
  25182. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25183. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25184. + shlibpath_var=LD_LIBRARY_PATH
  25185. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25186. + case $host_os in
  25187. + openbsd2.[89] | openbsd2.[89].*)
  25188. + shlibpath_overrides_runpath=no
  25189. + ;;
  25190. + *)
  25191. + shlibpath_overrides_runpath=yes
  25192. + ;;
  25193. + esac
  25194. + else
  25195. + shlibpath_overrides_runpath=yes
  25196. + fi
  25197. + ;;
  25198. +os2*)
  25199. + libname_spec='$name'
  25200. + shrext_cmds=".dll"
  25201. + need_lib_prefix=no
  25202. + library_names_spec='$libname${shared_ext} $libname.a'
  25203. + dynamic_linker='OS/2 ld.exe'
  25204. + shlibpath_var=LIBPATH
  25205. + ;;
  25206. -if test -z "$MOUNT_FUSE_PATH"; then
  25207. - MOUNT_FUSE_PATH=/sbin
  25208. -fi
  25209. +osf3* | osf4* | osf5*)
  25210. + version_type=osf
  25211. + need_lib_prefix=no
  25212. + need_version=no
  25213. + soname_spec='${libname}${release}${shared_ext}$major'
  25214. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25215. + shlibpath_var=LD_LIBRARY_PATH
  25216. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  25217. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  25218. + ;;
  25219. -if test -z "$UDEV_RULES_PATH"; then
  25220. - UDEV_RULES_PATH=/etc/udev/rules.d
  25221. -fi
  25222. +solaris*)
  25223. + version_type=linux
  25224. + need_lib_prefix=no
  25225. + need_version=no
  25226. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25227. + soname_spec='${libname}${release}${shared_ext}$major'
  25228. + shlibpath_var=LD_LIBRARY_PATH
  25229. + shlibpath_overrides_runpath=yes
  25230. + hardcode_into_libs=yes
  25231. + # ldd complains unless libraries are executable
  25232. + postinstall_cmds='chmod +x $lib'
  25233. + ;;
  25234. -if test -z "$INIT_D_PATH"; then
  25235. - INIT_D_PATH=/etc/init.d
  25236. -fi
  25237. +sunos4*)
  25238. + version_type=sunos
  25239. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25240. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  25241. + shlibpath_var=LD_LIBRARY_PATH
  25242. + shlibpath_overrides_runpath=yes
  25243. + if test "$with_gnu_ld" = yes; then
  25244. + need_lib_prefix=no
  25245. + fi
  25246. + need_version=yes
  25247. + ;;
  25248. +sysv4 | sysv4.3*)
  25249. + version_type=linux
  25250. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25251. + soname_spec='${libname}${release}${shared_ext}$major'
  25252. + shlibpath_var=LD_LIBRARY_PATH
  25253. + case $host_vendor in
  25254. + sni)
  25255. + shlibpath_overrides_runpath=no
  25256. + need_lib_prefix=no
  25257. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  25258. + runpath_var=LD_RUN_PATH
  25259. + ;;
  25260. + siemens)
  25261. + need_lib_prefix=no
  25262. + ;;
  25263. + motorola)
  25264. + need_lib_prefix=no
  25265. + need_version=no
  25266. + shlibpath_overrides_runpath=no
  25267. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  25268. + ;;
  25269. + esac
  25270. + ;;
  25271. +sysv4*MP*)
  25272. + if test -d /usr/nec ;then
  25273. + version_type=linux
  25274. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  25275. + soname_spec='$libname${shared_ext}.$major'
  25276. + shlibpath_var=LD_LIBRARY_PATH
  25277. + fi
  25278. + ;;
  25279. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  25280. + version_type=freebsd-elf
  25281. + need_lib_prefix=no
  25282. + need_version=no
  25283. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25284. + soname_spec='${libname}${release}${shared_ext}$major'
  25285. + shlibpath_var=LD_LIBRARY_PATH
  25286. + hardcode_into_libs=yes
  25287. + if test "$with_gnu_ld" = yes; then
  25288. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  25289. + shlibpath_overrides_runpath=no
  25290. + else
  25291. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  25292. + shlibpath_overrides_runpath=yes
  25293. + case $host_os in
  25294. + sco3.2v5*)
  25295. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  25296. + ;;
  25297. + esac
  25298. + fi
  25299. + sys_lib_dlsearch_path_spec='/usr/lib'
  25300. + ;;
  25301. +uts4*)
  25302. + version_type=linux
  25303. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25304. + soname_spec='${libname}${release}${shared_ext}$major'
  25305. + shlibpath_var=LD_LIBRARY_PATH
  25306. + ;;
  25307. +*)
  25308. + dynamic_linker=no
  25309. + ;;
  25310. +esac
  25311. +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  25312. +echo "${ECHO_T}$dynamic_linker" >&6; }
  25313. +test "$dynamic_linker" = no && can_build_shared=no
  25314. -if test "$arch" = linux; then
  25315. - LINUX_TRUE=
  25316. - LINUX_FALSE='#'
  25317. -else
  25318. - LINUX_TRUE='#'
  25319. - LINUX_FALSE=
  25320. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  25321. +if test "$GCC" = yes; then
  25322. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  25323. fi
  25324. +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  25325. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  25326. +hardcode_action_CXX=
  25327. +if test -n "$hardcode_libdir_flag_spec_CXX" || \
  25328. + test -n "$runpath_var_CXX" || \
  25329. + test "X$hardcode_automatic_CXX" = "Xyes" ; then
  25330. -
  25331. -if test "$arch" = bsd; then
  25332. - BSD_TRUE=
  25333. - BSD_FALSE='#'
  25334. + # We can hardcode non-existant directories.
  25335. + if test "$hardcode_direct_CXX" != no &&
  25336. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  25337. + # have to relink, otherwise we might link with an installed library
  25338. + # when we should be linking with a yet-to-be-installed one
  25339. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  25340. + test "$hardcode_minus_L_CXX" != no; then
  25341. + # Linking always hardcodes the temporary library directory.
  25342. + hardcode_action_CXX=relink
  25343. + else
  25344. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  25345. + hardcode_action_CXX=immediate
  25346. + fi
  25347. else
  25348. - BSD_TRUE='#'
  25349. - BSD_FALSE=
  25350. + # We cannot hardcode anything, or else we can only hardcode existing
  25351. + # directories.
  25352. + hardcode_action_CXX=unsupported
  25353. fi
  25354. +{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  25355. +echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  25356. +if test "$hardcode_action_CXX" = relink; then
  25357. + # Fast installation is not supported
  25358. + enable_fast_install=no
  25359. +elif test "$shlibpath_overrides_runpath" = yes ||
  25360. + test "$enable_shared" = no; then
  25361. + # Fast installation is not necessary
  25362. + enable_fast_install=needless
  25363. +fi
  25364. -ac_config_files="$ac_config_files fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile"
  25365. -
  25366. -cat >confcache <<\_ACEOF
  25367. -# This file is a shell script that caches the results of configure
  25368. -# tests run on this system so they can be shared between configure
  25369. -# scripts and configure runs, see configure's option --config-cache.
  25370. -# It is not useful on other systems. If it contains results you don't
  25371. -# want to keep, you may remove or edit it.
  25372. -#
  25373. -# config.status only pays attention to the cache file if you give it
  25374. -# the --recheck option to rerun configure.
  25375. -#
  25376. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  25377. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  25378. -# following values.
  25379. -
  25380. -_ACEOF
  25381. -# The following way of writing the cache mishandles newlines in values,
  25382. -# but we know of no workaround that is simple, portable, and efficient.
  25383. -# So, we kill variables containing newlines.
  25384. -# Ultrix sh set writes to stderr and can't be redirected directly,
  25385. -# and sets the high bit in the cache file unless we assign to the vars.
  25386. -(
  25387. - for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  25388. - eval ac_val=\$$ac_var
  25389. - case $ac_val in #(
  25390. - *${as_nl}*)
  25391. - case $ac_var in #(
  25392. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  25393. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  25394. - esac
  25395. - case $ac_var in #(
  25396. - _ | IFS | as_nl) ;; #(
  25397. - *) $as_unset $ac_var ;;
  25398. - esac ;;
  25399. +# The else clause should only fire when bootstrapping the
  25400. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  25401. +# with your package, and you will get complaints that there are
  25402. +# no rules to generate ltmain.sh.
  25403. +if test -f "$ltmain"; then
  25404. + # See if we are running on zsh, and set the options which allow our commands through
  25405. + # without removal of \ escapes.
  25406. + if test -n "${ZSH_VERSION+set}" ; then
  25407. + setopt NO_GLOB_SUBST
  25408. + fi
  25409. + # Now quote all the things that may contain metacharacters while being
  25410. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  25411. + # variables and quote the copies for generation of the libtool script.
  25412. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  25413. + SED SHELL STRIP \
  25414. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  25415. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  25416. + deplibs_check_method reload_flag reload_cmds need_locks \
  25417. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  25418. + lt_cv_sys_global_symbol_to_c_name_address \
  25419. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  25420. + old_postinstall_cmds old_postuninstall_cmds \
  25421. + compiler_CXX \
  25422. + CC_CXX \
  25423. + LD_CXX \
  25424. + lt_prog_compiler_wl_CXX \
  25425. + lt_prog_compiler_pic_CXX \
  25426. + lt_prog_compiler_static_CXX \
  25427. + lt_prog_compiler_no_builtin_flag_CXX \
  25428. + export_dynamic_flag_spec_CXX \
  25429. + thread_safe_flag_spec_CXX \
  25430. + whole_archive_flag_spec_CXX \
  25431. + enable_shared_with_static_runtimes_CXX \
  25432. + old_archive_cmds_CXX \
  25433. + old_archive_from_new_cmds_CXX \
  25434. + predep_objects_CXX \
  25435. + postdep_objects_CXX \
  25436. + predeps_CXX \
  25437. + postdeps_CXX \
  25438. + compiler_lib_search_path_CXX \
  25439. + archive_cmds_CXX \
  25440. + archive_expsym_cmds_CXX \
  25441. + postinstall_cmds_CXX \
  25442. + postuninstall_cmds_CXX \
  25443. + old_archive_from_expsyms_cmds_CXX \
  25444. + allow_undefined_flag_CXX \
  25445. + no_undefined_flag_CXX \
  25446. + export_symbols_cmds_CXX \
  25447. + hardcode_libdir_flag_spec_CXX \
  25448. + hardcode_libdir_flag_spec_ld_CXX \
  25449. + hardcode_libdir_separator_CXX \
  25450. + hardcode_automatic_CXX \
  25451. + module_cmds_CXX \
  25452. + module_expsym_cmds_CXX \
  25453. + lt_cv_prog_compiler_c_o_CXX \
  25454. + exclude_expsyms_CXX \
  25455. + include_expsyms_CXX; do
  25456. +
  25457. + case $var in
  25458. + old_archive_cmds_CXX | \
  25459. + old_archive_from_new_cmds_CXX | \
  25460. + archive_cmds_CXX | \
  25461. + archive_expsym_cmds_CXX | \
  25462. + module_cmds_CXX | \
  25463. + module_expsym_cmds_CXX | \
  25464. + old_archive_from_expsyms_cmds_CXX | \
  25465. + export_symbols_cmds_CXX | \
  25466. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  25467. + postinstall_cmds | postuninstall_cmds | \
  25468. + old_postinstall_cmds | old_postuninstall_cmds | \
  25469. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  25470. + # Double-quote double-evaled strings.
  25471. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  25472. + ;;
  25473. + *)
  25474. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  25475. + ;;
  25476. esac
  25477. done
  25478. - (set) 2>&1 |
  25479. - case $as_nl`(ac_space=' '; set) 2>&1` in #(
  25480. - *${as_nl}ac_space=\ *)
  25481. - # `set' does not quote correctly, so add quotes (double-quote
  25482. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  25483. - sed -n \
  25484. - "s/'/'\\\\''/g;
  25485. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  25486. - ;; #(
  25487. - *)
  25488. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  25489. - sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  25490. - ;;
  25491. - esac |
  25492. - sort
  25493. -) |
  25494. - sed '
  25495. - /^ac_cv_env_/b end
  25496. - t clear
  25497. - :clear
  25498. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  25499. - t end
  25500. - s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  25501. - :end' >>confcache
  25502. -if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  25503. - if test -w "$cache_file"; then
  25504. - test "x$cache_file" != "x/dev/null" &&
  25505. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  25506. -echo "$as_me: updating cache $cache_file" >&6;}
  25507. - cat confcache >$cache_file
  25508. - else
  25509. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  25510. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  25511. - fi
  25512. -fi
  25513. -rm -f confcache
  25514. + case $lt_echo in
  25515. + *'\$0 --fallback-echo"')
  25516. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  25517. + ;;
  25518. + esac
  25519. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  25520. -# Let make expand exec_prefix.
  25521. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  25522. +cfgfile="$ofile"
  25523. -DEFS=-DHAVE_CONFIG_H
  25524. + cat <<__EOF__ >> "$cfgfile"
  25525. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  25526. -ac_libobjs=
  25527. -ac_ltlibobjs=
  25528. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  25529. - # 1. Remove the extension, and $U if already installed.
  25530. - ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  25531. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  25532. - # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  25533. - # will be set to the directory where LIBOBJS objects are built.
  25534. - ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  25535. - ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  25536. -done
  25537. -LIBOBJS=$ac_libobjs
  25538. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  25539. -LTLIBOBJS=$ac_ltlibobjs
  25540. +# Shell to use when invoking shell scripts.
  25541. +SHELL=$lt_SHELL
  25542. +# Whether or not to build shared libraries.
  25543. +build_libtool_libs=$enable_shared
  25544. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  25545. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  25546. -Usually this means the macro was only invoked conditionally." >&5
  25547. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  25548. -Usually this means the macro was only invoked conditionally." >&2;}
  25549. - { (exit 1); exit 1; }; }
  25550. -fi
  25551. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25552. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  25553. -Usually this means the macro was only invoked conditionally." >&5
  25554. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  25555. -Usually this means the macro was only invoked conditionally." >&2;}
  25556. - { (exit 1); exit 1; }; }
  25557. -fi
  25558. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  25559. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  25560. -Usually this means the macro was only invoked conditionally." >&5
  25561. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  25562. -Usually this means the macro was only invoked conditionally." >&2;}
  25563. - { (exit 1); exit 1; }; }
  25564. -fi
  25565. -if test -z "${ICONV_TRUE}" && test -z "${ICONV_FALSE}"; then
  25566. - { { echo "$as_me:$LINENO: error: conditional \"ICONV\" was never defined.
  25567. -Usually this means the macro was only invoked conditionally." >&5
  25568. -echo "$as_me: error: conditional \"ICONV\" was never defined.
  25569. -Usually this means the macro was only invoked conditionally." >&2;}
  25570. - { (exit 1); exit 1; }; }
  25571. -fi
  25572. -if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
  25573. - { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
  25574. -Usually this means the macro was only invoked conditionally." >&5
  25575. -echo "$as_me: error: conditional \"LINUX\" was never defined.
  25576. -Usually this means the macro was only invoked conditionally." >&2;}
  25577. - { (exit 1); exit 1; }; }
  25578. -fi
  25579. -if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
  25580. - { { echo "$as_me:$LINENO: error: conditional \"BSD\" was never defined.
  25581. -Usually this means the macro was only invoked conditionally." >&5
  25582. -echo "$as_me: error: conditional \"BSD\" was never defined.
  25583. -Usually this means the macro was only invoked conditionally." >&2;}
  25584. - { (exit 1); exit 1; }; }
  25585. -fi
  25586. +# Whether or not to build static libraries.
  25587. +build_old_libs=$enable_static
  25588. -: ${CONFIG_STATUS=./config.status}
  25589. -ac_clean_files_save=$ac_clean_files
  25590. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  25591. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  25592. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  25593. -cat >$CONFIG_STATUS <<_ACEOF
  25594. -#! $SHELL
  25595. -# Generated by $as_me.
  25596. -# Run this file to recreate the current configuration.
  25597. -# Compiler output produced by configure, useful for debugging
  25598. -# configure, is in config.log if it exists.
  25599. +# Whether or not to add -lc for building shared libraries.
  25600. +build_libtool_need_lc=$archive_cmds_need_lc_CXX
  25601. -debug=false
  25602. -ac_cs_recheck=false
  25603. -ac_cs_silent=false
  25604. -SHELL=\${CONFIG_SHELL-$SHELL}
  25605. -_ACEOF
  25606. +# Whether or not to disallow shared libs when runtime libs are static
  25607. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  25608. -cat >>$CONFIG_STATUS <<\_ACEOF
  25609. -## --------------------- ##
  25610. -## M4sh Initialization. ##
  25611. -## --------------------- ##
  25612. +# Whether or not to optimize for fast installation.
  25613. +fast_install=$enable_fast_install
  25614. -# Be more Bourne compatible
  25615. -DUALCASE=1; export DUALCASE # for MKS sh
  25616. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  25617. - emulate sh
  25618. - NULLCMD=:
  25619. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  25620. - # is contrary to our usage. Disable this feature.
  25621. - alias -g '${1+"$@"}'='"$@"'
  25622. - setopt NO_GLOB_SUBST
  25623. -else
  25624. - case `(set -o) 2>/dev/null` in
  25625. - *posix*) set -o posix ;;
  25626. -esac
  25627. +# The host system.
  25628. +host_alias=$host_alias
  25629. +host=$host
  25630. +host_os=$host_os
  25631. -fi
  25632. +# The build system.
  25633. +build_alias=$build_alias
  25634. +build=$build
  25635. +build_os=$build_os
  25636. +# An echo program that does not interpret backslashes.
  25637. +echo=$lt_echo
  25638. +# The archiver.
  25639. +AR=$lt_AR
  25640. +AR_FLAGS=$lt_AR_FLAGS
  25641. +# A C compiler.
  25642. +LTCC=$lt_LTCC
  25643. -# PATH needs CR
  25644. -# Avoid depending upon Character Ranges.
  25645. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  25646. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  25647. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  25648. -as_cr_digits='0123456789'
  25649. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  25650. +# LTCC compiler flags.
  25651. +LTCFLAGS=$lt_LTCFLAGS
  25652. -# The user is always right.
  25653. -if test "${PATH_SEPARATOR+set}" != set; then
  25654. - echo "#! /bin/sh" >conf$$.sh
  25655. - echo "exit 0" >>conf$$.sh
  25656. - chmod +x conf$$.sh
  25657. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  25658. - PATH_SEPARATOR=';'
  25659. - else
  25660. - PATH_SEPARATOR=:
  25661. - fi
  25662. - rm -f conf$$.sh
  25663. -fi
  25664. +# A language-specific compiler.
  25665. +CC=$lt_compiler_CXX
  25666. -# Support unset when possible.
  25667. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  25668. - as_unset=unset
  25669. -else
  25670. - as_unset=false
  25671. -fi
  25672. +# Is the compiler the GNU C compiler?
  25673. +with_gcc=$GCC_CXX
  25674. +# An ERE matcher.
  25675. +EGREP=$lt_EGREP
  25676. -# IFS
  25677. -# We need space, tab and new line, in precisely that order. Quoting is
  25678. -# there to prevent editors from complaining about space-tab.
  25679. -# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  25680. -# splitting by setting IFS to empty value.)
  25681. -as_nl='
  25682. -'
  25683. -IFS=" "" $as_nl"
  25684. +# The linker used to build libraries.
  25685. +LD=$lt_LD_CXX
  25686. -# Find who we are. Look in the path if we contain no directory separator.
  25687. -case $0 in
  25688. - *[\\/]* ) as_myself=$0 ;;
  25689. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25690. -for as_dir in $PATH
  25691. -do
  25692. - IFS=$as_save_IFS
  25693. - test -z "$as_dir" && as_dir=.
  25694. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  25695. -done
  25696. -IFS=$as_save_IFS
  25697. +# Whether we need hard or soft links.
  25698. +LN_S=$lt_LN_S
  25699. - ;;
  25700. -esac
  25701. -# We did not find ourselves, most probably we were run as `sh COMMAND'
  25702. -# in which case we are not to be found in the path.
  25703. -if test "x$as_myself" = x; then
  25704. - as_myself=$0
  25705. -fi
  25706. -if test ! -f "$as_myself"; then
  25707. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  25708. - { (exit 1); exit 1; }
  25709. -fi
  25710. +# A BSD-compatible nm program.
  25711. +NM=$lt_NM
  25712. -# Work around bugs in pre-3.0 UWIN ksh.
  25713. -for as_var in ENV MAIL MAILPATH
  25714. -do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  25715. -done
  25716. -PS1='$ '
  25717. -PS2='> '
  25718. -PS4='+ '
  25719. +# A symbol stripping program
  25720. +STRIP=$lt_STRIP
  25721. -# NLS nuisances.
  25722. -for as_var in \
  25723. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  25724. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  25725. - LC_TELEPHONE LC_TIME
  25726. -do
  25727. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  25728. - eval $as_var=C; export $as_var
  25729. - else
  25730. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  25731. - fi
  25732. -done
  25733. +# Used to examine libraries when file_magic_cmd begins "file"
  25734. +MAGIC_CMD=$MAGIC_CMD
  25735. -# Required to use basename.
  25736. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  25737. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25738. - as_expr=expr
  25739. -else
  25740. - as_expr=false
  25741. -fi
  25742. +# Used on cygwin: DLL creation program.
  25743. +DLLTOOL="$DLLTOOL"
  25744. -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  25745. - as_basename=basename
  25746. -else
  25747. - as_basename=false
  25748. -fi
  25749. +# Used on cygwin: object dumper.
  25750. +OBJDUMP="$OBJDUMP"
  25751. +# Used on cygwin: assembler.
  25752. +AS="$AS"
  25753. -# Name of the executable.
  25754. -as_me=`$as_basename -- "$0" ||
  25755. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  25756. - X"$0" : 'X\(//\)$' \| \
  25757. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  25758. -echo X/"$0" |
  25759. - sed '/^.*\/\([^/][^/]*\)\/*$/{
  25760. - s//\1/
  25761. - q
  25762. - }
  25763. - /^X\/\(\/\/\)$/{
  25764. - s//\1/
  25765. - q
  25766. - }
  25767. - /^X\/\(\/\).*/{
  25768. - s//\1/
  25769. - q
  25770. - }
  25771. - s/.*/./; q'`
  25772. +# The name of the directory that contains temporary libtool files.
  25773. +objdir=$objdir
  25774. -# CDPATH.
  25775. -$as_unset CDPATH
  25776. +# How to create reloadable object files.
  25777. +reload_flag=$lt_reload_flag
  25778. +reload_cmds=$lt_reload_cmds
  25779. +# How to pass a linker flag through the compiler.
  25780. +wl=$lt_lt_prog_compiler_wl_CXX
  25781. +# Object file suffix (normally "o").
  25782. +objext="$ac_objext"
  25783. - as_lineno_1=$LINENO
  25784. - as_lineno_2=$LINENO
  25785. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  25786. - test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  25787. +# Old archive suffix (normally "a").
  25788. +libext="$libext"
  25789. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  25790. - # uniformly replaced by the line number. The first 'sed' inserts a
  25791. - # line-number line after each line using $LINENO; the second 'sed'
  25792. - # does the real work. The second script uses 'N' to pair each
  25793. - # line-number line with the line containing $LINENO, and appends
  25794. - # trailing '-' during substitution so that $LINENO is not a special
  25795. - # case at line end.
  25796. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  25797. - # scripts with optimization help from Paolo Bonzini. Blame Lee
  25798. - # E. McMahon (1931-1989) for sed's syntax. :-)
  25799. - sed -n '
  25800. - p
  25801. - /[$]LINENO/=
  25802. - ' <$as_myself |
  25803. - sed '
  25804. - s/[$]LINENO.*/&-/
  25805. - t lineno
  25806. - b
  25807. - :lineno
  25808. - N
  25809. - :loop
  25810. - s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  25811. - t loop
  25812. - s/-\n.*//
  25813. - ' >$as_me.lineno &&
  25814. - chmod +x "$as_me.lineno" ||
  25815. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  25816. - { (exit 1); exit 1; }; }
  25817. +# Shared library suffix (normally ".so").
  25818. +shrext_cmds='$shrext_cmds'
  25819. - # Don't try to exec as it changes $[0], causing all sort of problems
  25820. - # (the dirname of $[0] is not the place where we might find the
  25821. - # original and so on. Autoconf is especially sensitive to this).
  25822. - . "./$as_me.lineno"
  25823. - # Exit status is that of the last command.
  25824. - exit
  25825. -}
  25826. +# Executable file suffix (normally "").
  25827. +exeext="$exeext"
  25828. +# Additional compiler flags for building library objects.
  25829. +pic_flag=$lt_lt_prog_compiler_pic_CXX
  25830. +pic_mode=$pic_mode
  25831. -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  25832. - as_dirname=dirname
  25833. -else
  25834. - as_dirname=false
  25835. -fi
  25836. +# What is the maximum length of a command?
  25837. +max_cmd_len=$lt_cv_sys_max_cmd_len
  25838. -ECHO_C= ECHO_N= ECHO_T=
  25839. -case `echo -n x` in
  25840. --n*)
  25841. - case `echo 'x\c'` in
  25842. - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  25843. - *) ECHO_C='\c';;
  25844. - esac;;
  25845. -*)
  25846. - ECHO_N='-n';;
  25847. -esac
  25848. +# Does compiler simultaneously support -c and -o options?
  25849. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  25850. -if expr a : '\(a\)' >/dev/null 2>&1 &&
  25851. - test "X`expr 00001 : '.*\(...\)'`" = X001; then
  25852. - as_expr=expr
  25853. -else
  25854. - as_expr=false
  25855. -fi
  25856. +# Must we lock files when doing compilation?
  25857. +need_locks=$lt_need_locks
  25858. -rm -f conf$$ conf$$.exe conf$$.file
  25859. -if test -d conf$$.dir; then
  25860. - rm -f conf$$.dir/conf$$.file
  25861. -else
  25862. - rm -f conf$$.dir
  25863. - mkdir conf$$.dir
  25864. -fi
  25865. -echo >conf$$.file
  25866. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  25867. - as_ln_s='ln -s'
  25868. - # ... but there are two gotchas:
  25869. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  25870. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  25871. - # In both cases, we have to default to `cp -p'.
  25872. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  25873. - as_ln_s='cp -p'
  25874. -elif ln conf$$.file conf$$ 2>/dev/null; then
  25875. - as_ln_s=ln
  25876. -else
  25877. - as_ln_s='cp -p'
  25878. -fi
  25879. -rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  25880. -rmdir conf$$.dir 2>/dev/null
  25881. +# Do we need the lib prefix for modules?
  25882. +need_lib_prefix=$need_lib_prefix
  25883. -if mkdir -p . 2>/dev/null; then
  25884. - as_mkdir_p=:
  25885. -else
  25886. - test -d ./-p && rmdir ./-p
  25887. - as_mkdir_p=false
  25888. -fi
  25889. +# Do we need a version for libraries?
  25890. +need_version=$need_version
  25891. -if test -x / >/dev/null 2>&1; then
  25892. - as_test_x='test -x'
  25893. -else
  25894. - if ls -dL / >/dev/null 2>&1; then
  25895. - as_ls_L_option=L
  25896. - else
  25897. - as_ls_L_option=
  25898. - fi
  25899. - as_test_x='
  25900. - eval sh -c '\''
  25901. - if test -d "$1"; then
  25902. - test -d "$1/.";
  25903. - else
  25904. - case $1 in
  25905. - -*)set "./$1";;
  25906. - esac;
  25907. - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  25908. - ???[sx]*):;;*)false;;esac;fi
  25909. - '\'' sh
  25910. - '
  25911. -fi
  25912. -as_executable_p=$as_test_x
  25913. +# Whether dlopen is supported.
  25914. +dlopen_support=$enable_dlopen
  25915. -# Sed expression to map a string onto a valid CPP name.
  25916. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  25917. +# Whether dlopen of programs is supported.
  25918. +dlopen_self=$enable_dlopen_self
  25919. -# Sed expression to map a string onto a valid variable name.
  25920. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  25921. +# Whether dlopen of statically linked programs is supported.
  25922. +dlopen_self_static=$enable_dlopen_self_static
  25923. +# Compiler flag to prevent dynamic linking.
  25924. +link_static_flag=$lt_lt_prog_compiler_static_CXX
  25925. -exec 6>&1
  25926. +# Compiler flag to turn off builtin functions.
  25927. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  25928. -# Save the log message, to keep $[0] and so on meaningful, and to
  25929. -# report actual input values of CONFIG_FILES etc. instead of their
  25930. -# values after options handling.
  25931. -ac_log="
  25932. -This file was extended by fuse $as_me 2.7.3, which was
  25933. -generated by GNU Autoconf 2.61. Invocation command line was
  25934. +# Compiler flag to allow reflexive dlopens.
  25935. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  25936. - CONFIG_FILES = $CONFIG_FILES
  25937. - CONFIG_HEADERS = $CONFIG_HEADERS
  25938. - CONFIG_LINKS = $CONFIG_LINKS
  25939. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  25940. - $ $0 $@
  25941. +# Compiler flag to generate shared objects directly from archives.
  25942. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  25943. -on `(hostname || uname -n) 2>/dev/null | sed 1q`
  25944. -"
  25945. +# Compiler flag to generate thread-safe objects.
  25946. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  25947. -_ACEOF
  25948. +# Library versioning type.
  25949. +version_type=$version_type
  25950. -cat >>$CONFIG_STATUS <<_ACEOF
  25951. -# Files that config.status was made for.
  25952. -config_files="$ac_config_files"
  25953. -config_headers="$ac_config_headers"
  25954. -config_commands="$ac_config_commands"
  25955. +# Format of library name prefix.
  25956. +libname_spec=$lt_libname_spec
  25957. -_ACEOF
  25958. +# List of archive names. First name is the real one, the rest are links.
  25959. +# The last name is the one that the linker finds with -lNAME.
  25960. +library_names_spec=$lt_library_names_spec
  25961. -cat >>$CONFIG_STATUS <<\_ACEOF
  25962. -ac_cs_usage="\
  25963. -\`$as_me' instantiates files from templates according to the
  25964. -current configuration.
  25965. +# The coded name of the library, if different from the real name.
  25966. +soname_spec=$lt_soname_spec
  25967. -Usage: $0 [OPTIONS] [FILE]...
  25968. +# Commands used to build and install an old-style archive.
  25969. +RANLIB=$lt_RANLIB
  25970. +old_archive_cmds=$lt_old_archive_cmds_CXX
  25971. +old_postinstall_cmds=$lt_old_postinstall_cmds
  25972. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  25973. - -h, --help print this help, then exit
  25974. - -V, --version print version number and configuration settings, then exit
  25975. - -q, --quiet do not print progress messages
  25976. - -d, --debug don't remove temporary files
  25977. - --recheck update $as_me by reconfiguring in the same conditions
  25978. - --file=FILE[:TEMPLATE]
  25979. - instantiate the configuration file FILE
  25980. - --header=FILE[:TEMPLATE]
  25981. - instantiate the configuration header FILE
  25982. +# Create an old-style archive from a shared archive.
  25983. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  25984. -Configuration files:
  25985. -$config_files
  25986. +# Create a temporary old-style archive to link instead of a shared archive.
  25987. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  25988. -Configuration headers:
  25989. -$config_headers
  25990. +# Commands used to build and install a shared archive.
  25991. +archive_cmds=$lt_archive_cmds_CXX
  25992. +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  25993. +postinstall_cmds=$lt_postinstall_cmds
  25994. +postuninstall_cmds=$lt_postuninstall_cmds
  25995. -Configuration commands:
  25996. -$config_commands
  25997. +# Commands used to build a loadable module (assumed same as above if empty)
  25998. +module_cmds=$lt_module_cmds_CXX
  25999. +module_expsym_cmds=$lt_module_expsym_cmds_CXX
  26000. -Report bugs to <bug-autoconf@gnu.org>."
  26001. +# Commands to strip libraries.
  26002. +old_striplib=$lt_old_striplib
  26003. +striplib=$lt_striplib
  26004. -_ACEOF
  26005. -cat >>$CONFIG_STATUS <<_ACEOF
  26006. -ac_cs_version="\\
  26007. -fuse config.status 2.7.3
  26008. -configured by $0, generated by GNU Autoconf 2.61,
  26009. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  26010. +# Dependencies to place before the objects being linked to create a
  26011. +# shared library.
  26012. +predep_objects=$lt_predep_objects_CXX
  26013. +
  26014. +# Dependencies to place after the objects being linked to create a
  26015. +# shared library.
  26016. +postdep_objects=$lt_postdep_objects_CXX
  26017. +
  26018. +# Dependencies to place before the objects being linked to create a
  26019. +# shared library.
  26020. +predeps=$lt_predeps_CXX
  26021. +
  26022. +# Dependencies to place after the objects being linked to create a
  26023. +# shared library.
  26024. +postdeps=$lt_postdeps_CXX
  26025. +
  26026. +# The library search path used internally by the compiler when linking
  26027. +# a shared library.
  26028. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  26029. -Copyright (C) 2006 Free Software Foundation, Inc.
  26030. -This config.status script is free software; the Free Software Foundation
  26031. -gives unlimited permission to copy, distribute and modify it."
  26032. +# Method to check whether dependent libraries are shared objects.
  26033. +deplibs_check_method=$lt_deplibs_check_method
  26034. -ac_pwd='$ac_pwd'
  26035. -srcdir='$srcdir'
  26036. -INSTALL='$INSTALL'
  26037. -_ACEOF
  26038. +# Command to use when deplibs_check_method == file_magic.
  26039. +file_magic_cmd=$lt_file_magic_cmd
  26040. -cat >>$CONFIG_STATUS <<\_ACEOF
  26041. -# If no file are specified by the user, then we need to provide default
  26042. -# value. By we need to know if files were specified by the user.
  26043. -ac_need_defaults=:
  26044. -while test $# != 0
  26045. -do
  26046. - case $1 in
  26047. - --*=*)
  26048. - ac_option=`expr "X$1" : 'X\([^=]*\)='`
  26049. - ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  26050. - ac_shift=:
  26051. - ;;
  26052. - *)
  26053. - ac_option=$1
  26054. - ac_optarg=$2
  26055. - ac_shift=shift
  26056. - ;;
  26057. - esac
  26058. +# Flag that allows shared libraries with undefined symbols to be built.
  26059. +allow_undefined_flag=$lt_allow_undefined_flag_CXX
  26060. - case $ac_option in
  26061. - # Handling of the options.
  26062. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  26063. - ac_cs_recheck=: ;;
  26064. - --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  26065. - echo "$ac_cs_version"; exit ;;
  26066. - --debug | --debu | --deb | --de | --d | -d )
  26067. - debug=: ;;
  26068. - --file | --fil | --fi | --f )
  26069. - $ac_shift
  26070. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  26071. - ac_need_defaults=false;;
  26072. - --header | --heade | --head | --hea )
  26073. - $ac_shift
  26074. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  26075. - ac_need_defaults=false;;
  26076. - --he | --h)
  26077. - # Conflict between --help and --header
  26078. - { echo "$as_me: error: ambiguous option: $1
  26079. -Try \`$0 --help' for more information." >&2
  26080. - { (exit 1); exit 1; }; };;
  26081. - --help | --hel | -h )
  26082. - echo "$ac_cs_usage"; exit ;;
  26083. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  26084. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  26085. - ac_cs_silent=: ;;
  26086. +# Flag that forces no undefined symbols.
  26087. +no_undefined_flag=$lt_no_undefined_flag_CXX
  26088. - # This is an error.
  26089. - -*) { echo "$as_me: error: unrecognized option: $1
  26090. -Try \`$0 --help' for more information." >&2
  26091. - { (exit 1); exit 1; }; } ;;
  26092. +# Commands used to finish a libtool library installation in a directory.
  26093. +finish_cmds=$lt_finish_cmds
  26094. - *) ac_config_targets="$ac_config_targets $1"
  26095. - ac_need_defaults=false ;;
  26096. +# Same as above, but a single script fragment to be evaled but not shown.
  26097. +finish_eval=$lt_finish_eval
  26098. - esac
  26099. - shift
  26100. -done
  26101. +# Take the output of nm and produce a listing of raw symbols and C names.
  26102. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26103. -ac_configure_extra_args=
  26104. +# Transform the output of nm in a proper C declaration
  26105. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26106. -if $ac_cs_silent; then
  26107. - exec 6>/dev/null
  26108. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  26109. -fi
  26110. +# Transform the output of nm in a C name address pair
  26111. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26112. -_ACEOF
  26113. -cat >>$CONFIG_STATUS <<_ACEOF
  26114. -if \$ac_cs_recheck; then
  26115. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  26116. - CONFIG_SHELL=$SHELL
  26117. - export CONFIG_SHELL
  26118. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  26119. -fi
  26120. +# This is the shared library runtime path variable.
  26121. +runpath_var=$runpath_var
  26122. -_ACEOF
  26123. -cat >>$CONFIG_STATUS <<\_ACEOF
  26124. -exec 5>>config.log
  26125. -{
  26126. - echo
  26127. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  26128. -## Running $as_me. ##
  26129. -_ASBOX
  26130. - echo "$ac_log"
  26131. -} >&5
  26132. +# This is the shared library path variable.
  26133. +shlibpath_var=$shlibpath_var
  26134. -_ACEOF
  26135. -cat >>$CONFIG_STATUS <<_ACEOF
  26136. -#
  26137. -# INIT-COMMANDS
  26138. -#
  26139. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  26140. +# Is shlibpath searched before the hard-coded library search path?
  26141. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26142. +# How to hardcode a shared library path into an executable.
  26143. +hardcode_action=$hardcode_action_CXX
  26144. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  26145. -# if CDPATH is set.
  26146. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  26147. +# Whether we should hardcode library paths into libraries.
  26148. +hardcode_into_libs=$hardcode_into_libs
  26149. -sed_quote_subst='$sed_quote_subst'
  26150. -double_quote_subst='$double_quote_subst'
  26151. -delay_variable_subst='$delay_variable_subst'
  26152. -macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  26153. -macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  26154. -enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  26155. -enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  26156. -pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  26157. -enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  26158. -host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  26159. -host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  26160. -host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  26161. -build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  26162. -build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  26163. -build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  26164. -SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  26165. -Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  26166. -GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  26167. -EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  26168. -FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  26169. -LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  26170. -NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  26171. -LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  26172. -max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  26173. -ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  26174. -exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  26175. -reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  26176. -reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26177. -deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  26178. -file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  26179. -AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  26180. -AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  26181. -STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  26182. -RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  26183. -old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26184. -old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26185. -old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26186. -CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  26187. -CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  26188. -compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  26189. -GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  26190. -lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  26191. -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  26192. -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  26193. -objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  26194. -SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  26195. -ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  26196. -MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  26197. -lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  26198. -lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  26199. -lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  26200. -lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  26201. -lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  26202. -need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  26203. -libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  26204. -shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26205. -extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26206. -archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  26207. -enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  26208. -export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26209. -whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26210. -old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26211. -old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26212. -archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26213. -archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26214. -module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26215. -module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26216. -with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  26217. -allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  26218. -no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  26219. -hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26220. -hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  26221. -hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  26222. -hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  26223. -hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  26224. -hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  26225. -hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  26226. -inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  26227. -link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  26228. -fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  26229. -always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  26230. -export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26231. -exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  26232. -include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  26233. -prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26234. -file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26235. -variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  26236. -need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  26237. -need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  26238. -version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  26239. -runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  26240. -shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  26241. -shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  26242. -libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26243. -library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26244. -soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26245. -postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26246. -postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26247. -finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  26248. -finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  26249. -hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  26250. -sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26251. -sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  26252. -hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  26253. -enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  26254. -enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  26255. -enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  26256. -old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  26257. -striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  26258. -
  26259. -LTCC='$LTCC'
  26260. -LTCFLAGS='$LTCFLAGS'
  26261. -compiler='$compiler_DEFAULT'
  26262. -
  26263. -# Quote evaled strings.
  26264. -for var in SED \
  26265. -GREP \
  26266. -EGREP \
  26267. -FGREP \
  26268. -LD \
  26269. -NM \
  26270. -LN_S \
  26271. -reload_flag \
  26272. -deplibs_check_method \
  26273. -file_magic_cmd \
  26274. -AR \
  26275. -AR_FLAGS \
  26276. -STRIP \
  26277. -RANLIB \
  26278. -CC \
  26279. -CFLAGS \
  26280. -compiler \
  26281. -lt_cv_sys_global_symbol_pipe \
  26282. -lt_cv_sys_global_symbol_to_cdecl \
  26283. -lt_cv_sys_global_symbol_to_c_name_address \
  26284. -SHELL \
  26285. -ECHO \
  26286. -lt_prog_compiler_no_builtin_flag \
  26287. -lt_prog_compiler_wl \
  26288. -lt_prog_compiler_pic \
  26289. -lt_prog_compiler_static \
  26290. -lt_cv_prog_compiler_c_o \
  26291. -need_locks \
  26292. -shrext_cmds \
  26293. -export_dynamic_flag_spec \
  26294. -whole_archive_flag_spec \
  26295. -with_gnu_ld \
  26296. -allow_undefined_flag \
  26297. -no_undefined_flag \
  26298. -hardcode_libdir_flag_spec \
  26299. -hardcode_libdir_flag_spec_ld \
  26300. -hardcode_libdir_separator \
  26301. -fix_srcfile_path \
  26302. -exclude_expsyms \
  26303. -include_expsyms \
  26304. -file_list_spec \
  26305. -variables_saved_for_relink \
  26306. -libname_spec \
  26307. -library_names_spec \
  26308. -soname_spec \
  26309. -finish_eval \
  26310. -old_striplib \
  26311. -striplib; do
  26312. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  26313. - *[\\\\\\\`\\"\\\$]*)
  26314. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  26315. - ;;
  26316. - *)
  26317. - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26318. - ;;
  26319. - esac
  26320. -done
  26321. +# Flag to hardcode \$libdir into a binary during linking.
  26322. +# This must work even if \$libdir does not exist.
  26323. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  26324. -# Double-quote double-evaled strings.
  26325. -for var in reload_cmds \
  26326. -old_postinstall_cmds \
  26327. -old_postuninstall_cmds \
  26328. -old_archive_cmds \
  26329. -extract_expsyms_cmds \
  26330. -old_archive_from_new_cmds \
  26331. -old_archive_from_expsyms_cmds \
  26332. -archive_cmds \
  26333. -archive_expsym_cmds \
  26334. -module_cmds \
  26335. -module_expsym_cmds \
  26336. -export_symbols_cmds \
  26337. -prelink_cmds \
  26338. -postinstall_cmds \
  26339. -postuninstall_cmds \
  26340. -finish_cmds \
  26341. -sys_lib_search_path_spec \
  26342. -sys_lib_dlsearch_path_spec; do
  26343. - case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  26344. - *[\\\\\\\`\\"\\\$]*)
  26345. - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  26346. - ;;
  26347. - *)
  26348. - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  26349. - ;;
  26350. - esac
  26351. -done
  26352. +# If ld is used when linking, flag to hardcode \$libdir into
  26353. +# a binary during linking. This must work even if \$libdir does
  26354. +# not exist.
  26355. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  26356. +
  26357. +# Whether we need a single -rpath flag with a separated argument.
  26358. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  26359. +
  26360. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26361. +# resulting binary.
  26362. +hardcode_direct=$hardcode_direct_CXX
  26363. +
  26364. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26365. +# resulting binary.
  26366. +hardcode_minus_L=$hardcode_minus_L_CXX
  26367. +
  26368. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26369. +# the resulting binary.
  26370. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  26371. +
  26372. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  26373. +# and all subsequent libraries and executables linked against it.
  26374. +hardcode_automatic=$hardcode_automatic_CXX
  26375. -# Fix-up fallback echo if it was mangled by the above quoting rules.
  26376. -case \$lt_ECHO in
  26377. -*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  26378. - ;;
  26379. -esac
  26380. +# Variables whose values should be saved in libtool wrapper scripts and
  26381. +# restored at relink time.
  26382. +variables_saved_for_relink="$variables_saved_for_relink"
  26383. -ac_aux_dir='$ac_aux_dir'
  26384. -xsi_shell='$xsi_shell'
  26385. +# Whether libtool must link a program against all its dependency libraries.
  26386. +link_all_deplibs=$link_all_deplibs_CXX
  26387. -# See if we are running on zsh, and set the options which allow our
  26388. -# commands through without removal of \ escapes INIT.
  26389. -if test -n "\${ZSH_VERSION+set}" ; then
  26390. - setopt NO_GLOB_SUBST
  26391. -fi
  26392. +# Compile-time system search path for libraries
  26393. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26394. +# Run-time system search path for libraries
  26395. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26396. - PACKAGE='$PACKAGE'
  26397. - VERSION='$VERSION'
  26398. - TIMESTAMP='$TIMESTAMP'
  26399. - RM='$RM'
  26400. - ofile='$ofile'
  26401. +# Fix the shell variable \$srcfile for the compiler.
  26402. +fix_srcfile_path="$fix_srcfile_path_CXX"
  26403. +# Set to yes if exported symbols are required.
  26404. +always_export_symbols=$always_export_symbols_CXX
  26405. +# The commands to list exported symbols.
  26406. +export_symbols_cmds=$lt_export_symbols_cmds_CXX
  26407. +# The commands to extract the exported symbol list from a shared archive.
  26408. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26409. -_ACEOF
  26410. +# Symbols that should not be listed in the preloaded symbols.
  26411. +exclude_expsyms=$lt_exclude_expsyms_CXX
  26412. -cat >>$CONFIG_STATUS <<\_ACEOF
  26413. +# Symbols that must always be exported.
  26414. +include_expsyms=$lt_include_expsyms_CXX
  26415. -# Handling of arguments.
  26416. -for ac_config_target in $ac_config_targets
  26417. -do
  26418. - case $ac_config_target in
  26419. - "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  26420. - "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  26421. - "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  26422. - "fuse.pc") CONFIG_FILES="$CONFIG_FILES fuse.pc" ;;
  26423. - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  26424. - "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  26425. - "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
  26426. - "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
  26427. - "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  26428. +# ### END LIBTOOL TAG CONFIG: $tagname
  26429. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  26430. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  26431. - { (exit 1); exit 1; }; };;
  26432. - esac
  26433. -done
  26434. +__EOF__
  26435. -# If the user did not use the arguments to specify the items to instantiate,
  26436. -# then the envvar interface is used. Set only those that are not.
  26437. -# We use the long form for the default assignment because of an extremely
  26438. -# bizarre bug on SunOS 4.1.3.
  26439. -if $ac_need_defaults; then
  26440. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  26441. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  26442. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  26443. +else
  26444. + # If there is no Makefile yet, we rely on a make rule to execute
  26445. + # `config.status --recheck' to rerun these tests and create the
  26446. + # libtool script then.
  26447. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  26448. + if test -f "$ltmain_in"; then
  26449. + test -f Makefile && make "$ltmain"
  26450. + fi
  26451. fi
  26452. -# Have a temporary directory for convenience. Make it in the build tree
  26453. -# simply because there is no reason against having it here, and in addition,
  26454. -# creating and moving files from /tmp can sometimes cause problems.
  26455. -# Hook for its removal unless debugging.
  26456. -# Note that there is a small window in which the directory will not be cleaned:
  26457. -# after its creation but before its name has been assigned to `$tmp'.
  26458. -$debug ||
  26459. -{
  26460. - tmp=
  26461. - trap 'exit_status=$?
  26462. - { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  26463. -' 0
  26464. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  26465. -}
  26466. -# Create a (secure) tmp directory for tmp files.
  26467. -
  26468. -{
  26469. - tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  26470. - test -n "$tmp" && test -d "$tmp"
  26471. -} ||
  26472. -{
  26473. - tmp=./conf$$-$RANDOM
  26474. - (umask 077 && mkdir "$tmp")
  26475. -} ||
  26476. -{
  26477. - echo "$me: cannot create a temporary directory in ." >&2
  26478. - { (exit 1); exit 1; }
  26479. -}
  26480. -#
  26481. -# Set up the sed scripts for CONFIG_FILES section.
  26482. -#
  26483. +ac_ext=c
  26484. +ac_cpp='$CPP $CPPFLAGS'
  26485. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26486. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26487. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26488. -# No need to generate the scripts if there are no CONFIG_FILES.
  26489. -# This happens for instance when ./config.status config.h
  26490. -if test -n "$CONFIG_FILES"; then
  26491. +CC=$lt_save_CC
  26492. +LDCXX=$LD
  26493. +LD=$lt_save_LD
  26494. +GCC=$lt_save_GCC
  26495. +with_gnu_ldcxx=$with_gnu_ld
  26496. +with_gnu_ld=$lt_save_with_gnu_ld
  26497. +lt_cv_path_LDCXX=$lt_cv_path_LD
  26498. +lt_cv_path_LD=$lt_save_path_LD
  26499. +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  26500. +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  26501. -_ACEOF
  26502. + else
  26503. + tagname=""
  26504. + fi
  26505. + ;;
  26506. + F77)
  26507. + if test -n "$F77" && test "X$F77" != "Xno"; then
  26508. +ac_ext=f
  26509. +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  26510. +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26511. +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  26512. +
  26513. +
  26514. +archive_cmds_need_lc_F77=no
  26515. +allow_undefined_flag_F77=
  26516. +always_export_symbols_F77=no
  26517. +archive_expsym_cmds_F77=
  26518. +export_dynamic_flag_spec_F77=
  26519. +hardcode_direct_F77=no
  26520. +hardcode_libdir_flag_spec_F77=
  26521. +hardcode_libdir_flag_spec_ld_F77=
  26522. +hardcode_libdir_separator_F77=
  26523. +hardcode_minus_L_F77=no
  26524. +hardcode_automatic_F77=no
  26525. +module_cmds_F77=
  26526. +module_expsym_cmds_F77=
  26527. +link_all_deplibs_F77=unknown
  26528. +old_archive_cmds_F77=$old_archive_cmds
  26529. +no_undefined_flag_F77=
  26530. +whole_archive_flag_spec_F77=
  26531. +enable_shared_with_static_runtimes_F77=no
  26532. -ac_delim='%!_!# '
  26533. -for ac_last_try in false false false false false :; do
  26534. - cat >conf$$subs.sed <<_ACEOF
  26535. -SHELL!$SHELL$ac_delim
  26536. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  26537. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  26538. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  26539. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  26540. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  26541. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  26542. -exec_prefix!$exec_prefix$ac_delim
  26543. -prefix!$prefix$ac_delim
  26544. -program_transform_name!$program_transform_name$ac_delim
  26545. -bindir!$bindir$ac_delim
  26546. -sbindir!$sbindir$ac_delim
  26547. -libexecdir!$libexecdir$ac_delim
  26548. -datarootdir!$datarootdir$ac_delim
  26549. -datadir!$datadir$ac_delim
  26550. -sysconfdir!$sysconfdir$ac_delim
  26551. -sharedstatedir!$sharedstatedir$ac_delim
  26552. -localstatedir!$localstatedir$ac_delim
  26553. -includedir!$includedir$ac_delim
  26554. -oldincludedir!$oldincludedir$ac_delim
  26555. -docdir!$docdir$ac_delim
  26556. -infodir!$infodir$ac_delim
  26557. -htmldir!$htmldir$ac_delim
  26558. -dvidir!$dvidir$ac_delim
  26559. -pdfdir!$pdfdir$ac_delim
  26560. -psdir!$psdir$ac_delim
  26561. -libdir!$libdir$ac_delim
  26562. -localedir!$localedir$ac_delim
  26563. -mandir!$mandir$ac_delim
  26564. -DEFS!$DEFS$ac_delim
  26565. -ECHO_C!$ECHO_C$ac_delim
  26566. -ECHO_N!$ECHO_N$ac_delim
  26567. -ECHO_T!$ECHO_T$ac_delim
  26568. -LIBS!$LIBS$ac_delim
  26569. -build_alias!$build_alias$ac_delim
  26570. -host_alias!$host_alias$ac_delim
  26571. -target_alias!$target_alias$ac_delim
  26572. -build!$build$ac_delim
  26573. -build_cpu!$build_cpu$ac_delim
  26574. -build_vendor!$build_vendor$ac_delim
  26575. -build_os!$build_os$ac_delim
  26576. -host!$host$ac_delim
  26577. -host_cpu!$host_cpu$ac_delim
  26578. -host_vendor!$host_vendor$ac_delim
  26579. -host_os!$host_os$ac_delim
  26580. -target!$target$ac_delim
  26581. -target_cpu!$target_cpu$ac_delim
  26582. -target_vendor!$target_vendor$ac_delim
  26583. -target_os!$target_os$ac_delim
  26584. -INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  26585. -INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  26586. -INSTALL_DATA!$INSTALL_DATA$ac_delim
  26587. -CYGPATH_W!$CYGPATH_W$ac_delim
  26588. -PACKAGE!$PACKAGE$ac_delim
  26589. -VERSION!$VERSION$ac_delim
  26590. -ACLOCAL!$ACLOCAL$ac_delim
  26591. -AUTOCONF!$AUTOCONF$ac_delim
  26592. -AUTOMAKE!$AUTOMAKE$ac_delim
  26593. -AUTOHEADER!$AUTOHEADER$ac_delim
  26594. -MAKEINFO!$MAKEINFO$ac_delim
  26595. -install_sh!$install_sh$ac_delim
  26596. -STRIP!$STRIP$ac_delim
  26597. -INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  26598. -mkdir_p!$mkdir_p$ac_delim
  26599. -AWK!$AWK$ac_delim
  26600. -SET_MAKE!$SET_MAKE$ac_delim
  26601. -am__leading_dot!$am__leading_dot$ac_delim
  26602. -AMTAR!$AMTAR$ac_delim
  26603. -am__tar!$am__tar$ac_delim
  26604. -am__untar!$am__untar$ac_delim
  26605. -LIBTOOL!$LIBTOOL$ac_delim
  26606. -CC!$CC$ac_delim
  26607. -CFLAGS!$CFLAGS$ac_delim
  26608. -LDFLAGS!$LDFLAGS$ac_delim
  26609. -CPPFLAGS!$CPPFLAGS$ac_delim
  26610. -ac_ct_CC!$ac_ct_CC$ac_delim
  26611. -EXEEXT!$EXEEXT$ac_delim
  26612. -OBJEXT!$OBJEXT$ac_delim
  26613. -DEPDIR!$DEPDIR$ac_delim
  26614. -am__include!$am__include$ac_delim
  26615. -am__quote!$am__quote$ac_delim
  26616. -AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  26617. -AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  26618. -AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  26619. -CCDEPMODE!$CCDEPMODE$ac_delim
  26620. -am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  26621. -am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  26622. -SED!$SED$ac_delim
  26623. -GREP!$GREP$ac_delim
  26624. -EGREP!$EGREP$ac_delim
  26625. -FGREP!$FGREP$ac_delim
  26626. -LD!$LD$ac_delim
  26627. -DUMPBIN!$DUMPBIN$ac_delim
  26628. -ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
  26629. -NM!$NM$ac_delim
  26630. -LN_S!$LN_S$ac_delim
  26631. -AR!$AR$ac_delim
  26632. -_ACEOF
  26633. +# Source file extension for f77 test sources.
  26634. +ac_ext=f
  26635. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  26636. - break
  26637. - elif $ac_last_try; then
  26638. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  26639. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  26640. - { (exit 1); exit 1; }; }
  26641. - else
  26642. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26643. - fi
  26644. -done
  26645. +# Object file extension for compiled f77 test sources.
  26646. +objext=o
  26647. +objext_F77=$objext
  26648. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  26649. -if test -n "$ac_eof"; then
  26650. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  26651. - ac_eof=`expr $ac_eof + 1`
  26652. -fi
  26653. +# Code to be used in simple compile tests
  26654. +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  26655. -cat >>$CONFIG_STATUS <<_ACEOF
  26656. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  26657. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  26658. -_ACEOF
  26659. -sed '
  26660. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  26661. -s/^/s,@/; s/!/@,|#_!!_#|/
  26662. -:n
  26663. -t n
  26664. -s/'"$ac_delim"'$/,g/; t
  26665. -s/$/\\/; p
  26666. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  26667. -' >>$CONFIG_STATUS <conf$$subs.sed
  26668. -rm -f conf$$subs.sed
  26669. -cat >>$CONFIG_STATUS <<_ACEOF
  26670. -CEOF$ac_eof
  26671. -_ACEOF
  26672. +# Code to be used in simple link tests
  26673. +lt_simple_link_test_code=" program t\n end\n"
  26674. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  26675. -ac_delim='%!_!# '
  26676. -for ac_last_try in false false false false false :; do
  26677. - cat >conf$$subs.sed <<_ACEOF
  26678. -RANLIB!$RANLIB$ac_delim
  26679. -lt_ECHO!$lt_ECHO$ac_delim
  26680. -CPP!$CPP$ac_delim
  26681. -pkgconfigdir!$pkgconfigdir$ac_delim
  26682. -subdirs!$subdirs$ac_delim
  26683. -LIBICONV!$LIBICONV$ac_delim
  26684. -LTLIBICONV!$LTLIBICONV$ac_delim
  26685. -ICONV_TRUE!$ICONV_TRUE$ac_delim
  26686. -ICONV_FALSE!$ICONV_FALSE$ac_delim
  26687. -libfuse_libs!$libfuse_libs$ac_delim
  26688. -MOUNT_FUSE_PATH!$MOUNT_FUSE_PATH$ac_delim
  26689. -UDEV_RULES_PATH!$UDEV_RULES_PATH$ac_delim
  26690. -INIT_D_PATH!$INIT_D_PATH$ac_delim
  26691. -subdirs2!$subdirs2$ac_delim
  26692. -LINUX_TRUE!$LINUX_TRUE$ac_delim
  26693. -LINUX_FALSE!$LINUX_FALSE$ac_delim
  26694. -BSD_TRUE!$BSD_TRUE$ac_delim
  26695. -BSD_FALSE!$BSD_FALSE$ac_delim
  26696. -LIBOBJS!$LIBOBJS$ac_delim
  26697. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  26698. -_ACEOF
  26699. +# If no C compiler was specified, use CC.
  26700. +LTCC=${LTCC-"$CC"}
  26701. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
  26702. - break
  26703. - elif $ac_last_try; then
  26704. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  26705. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  26706. - { (exit 1); exit 1; }; }
  26707. - else
  26708. - ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  26709. - fi
  26710. -done
  26711. +# If no C compiler flags were specified, use CFLAGS.
  26712. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26713. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  26714. -if test -n "$ac_eof"; then
  26715. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  26716. - ac_eof=`expr $ac_eof + 1`
  26717. -fi
  26718. -
  26719. -cat >>$CONFIG_STATUS <<_ACEOF
  26720. -cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  26721. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  26722. -_ACEOF
  26723. -sed '
  26724. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  26725. -s/^/s,@/; s/!/@,|#_!!_#|/
  26726. -:n
  26727. -t n
  26728. -s/'"$ac_delim"'$/,g/; t
  26729. -s/$/\\/; p
  26730. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  26731. -' >>$CONFIG_STATUS <conf$$subs.sed
  26732. -rm -f conf$$subs.sed
  26733. -cat >>$CONFIG_STATUS <<_ACEOF
  26734. -:end
  26735. -s/|#_!!_#|//g
  26736. -CEOF$ac_eof
  26737. -_ACEOF
  26738. +# Allow CC to be a program name with arguments.
  26739. +compiler=$CC
  26740. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  26741. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  26742. -# trailing colons and then remove the whole line if VPATH becomes empty
  26743. -# (actually we leave an empty line to preserve line numbers).
  26744. -if test "x$srcdir" = x.; then
  26745. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  26746. -s/:*\$(srcdir):*/:/
  26747. -s/:*\${srcdir}:*/:/
  26748. -s/:*@srcdir@:*/:/
  26749. -s/^\([^=]*=[ ]*\):*/\1/
  26750. -s/:*$//
  26751. -s/^[^=]*=[ ]*$//
  26752. -}'
  26753. -fi
  26754. +# save warnings/boilerplate of simple test code
  26755. +ac_outfile=conftest.$ac_objext
  26756. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  26757. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26758. +_lt_compiler_boilerplate=`cat conftest.err`
  26759. +$rm conftest*
  26760. -cat >>$CONFIG_STATUS <<\_ACEOF
  26761. -fi # test -n "$CONFIG_FILES"
  26762. +ac_outfile=conftest.$ac_objext
  26763. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  26764. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26765. +_lt_linker_boilerplate=`cat conftest.err`
  26766. +$rm conftest*
  26767. -for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  26768. -do
  26769. - case $ac_tag in
  26770. - :[FHLC]) ac_mode=$ac_tag; continue;;
  26771. - esac
  26772. - case $ac_mode$ac_tag in
  26773. - :[FHL]*:*);;
  26774. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  26775. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  26776. - { (exit 1); exit 1; }; };;
  26777. - :[FH]-) ac_tag=-:-;;
  26778. - :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  26779. +# Allow CC to be a program name with arguments.
  26780. +lt_save_CC="$CC"
  26781. +CC=${F77-"f77"}
  26782. +compiler=$CC
  26783. +compiler_F77=$CC
  26784. +for cc_temp in $compiler""; do
  26785. + case $cc_temp in
  26786. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26787. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26788. + \-*) ;;
  26789. + *) break;;
  26790. esac
  26791. - ac_save_IFS=$IFS
  26792. - IFS=:
  26793. - set x $ac_tag
  26794. - IFS=$ac_save_IFS
  26795. - shift
  26796. - ac_file=$1
  26797. - shift
  26798. -
  26799. - case $ac_mode in
  26800. - :L) ac_source=$1;;
  26801. - :[FH])
  26802. - ac_file_inputs=
  26803. - for ac_f
  26804. - do
  26805. - case $ac_f in
  26806. - -) ac_f="$tmp/stdin";;
  26807. - *) # Look for the file first in the build tree, then in the source tree
  26808. - # (if the path is not absolute). The absolute path cannot be DOS-style,
  26809. - # because $ac_f cannot contain `:'.
  26810. - test -f "$ac_f" ||
  26811. - case $ac_f in
  26812. - [\\/$]*) false;;
  26813. - *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  26814. - esac ||
  26815. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  26816. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  26817. - { (exit 1); exit 1; }; };;
  26818. - esac
  26819. - ac_file_inputs="$ac_file_inputs $ac_f"
  26820. - done
  26821. +done
  26822. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26823. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  26824. - # use $as_me), people would be surprised to read:
  26825. - # /* config.h. Generated by config.status. */
  26826. - configure_input="Generated from "`IFS=:
  26827. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  26828. - if test x"$ac_file" != x-; then
  26829. - configure_input="$ac_file. $configure_input"
  26830. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  26831. -echo "$as_me: creating $ac_file" >&6;}
  26832. - fi
  26833. - case $ac_tag in
  26834. - *:-:* | *:-) cat >"$tmp/stdin";;
  26835. - esac
  26836. - ;;
  26837. - esac
  26838. +{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  26839. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  26840. +{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
  26841. +echo "${ECHO_T}$can_build_shared" >&6; }
  26842. - ac_dir=`$as_dirname -- "$ac_file" ||
  26843. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26844. - X"$ac_file" : 'X\(//\)[^/]' \| \
  26845. - X"$ac_file" : 'X\(//\)$' \| \
  26846. - X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  26847. -echo X"$ac_file" |
  26848. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26849. - s//\1/
  26850. - q
  26851. - }
  26852. - /^X\(\/\/\)[^/].*/{
  26853. - s//\1/
  26854. - q
  26855. - }
  26856. - /^X\(\/\/\)$/{
  26857. - s//\1/
  26858. - q
  26859. - }
  26860. - /^X\(\/\).*/{
  26861. - s//\1/
  26862. - q
  26863. - }
  26864. - s/.*/./; q'`
  26865. - { as_dir="$ac_dir"
  26866. - case $as_dir in #(
  26867. - -*) as_dir=./$as_dir;;
  26868. - esac
  26869. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  26870. - as_dirs=
  26871. - while :; do
  26872. - case $as_dir in #(
  26873. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  26874. - *) as_qdir=$as_dir;;
  26875. - esac
  26876. - as_dirs="'$as_qdir' $as_dirs"
  26877. - as_dir=`$as_dirname -- "$as_dir" ||
  26878. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  26879. - X"$as_dir" : 'X\(//\)[^/]' \| \
  26880. - X"$as_dir" : 'X\(//\)$' \| \
  26881. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  26882. -echo X"$as_dir" |
  26883. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  26884. - s//\1/
  26885. - q
  26886. - }
  26887. - /^X\(\/\/\)[^/].*/{
  26888. - s//\1/
  26889. - q
  26890. - }
  26891. - /^X\(\/\/\)$/{
  26892. - s//\1/
  26893. - q
  26894. - }
  26895. - /^X\(\/\).*/{
  26896. - s//\1/
  26897. - q
  26898. - }
  26899. - s/.*/./; q'`
  26900. - test -d "$as_dir" && break
  26901. - done
  26902. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  26903. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  26904. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  26905. - { (exit 1); exit 1; }; }; }
  26906. - ac_builddir=.
  26907. +{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  26908. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  26909. +test "$can_build_shared" = "no" && enable_shared=no
  26910. -case "$ac_dir" in
  26911. -.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26912. -*)
  26913. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  26914. - # A ".." for each directory in $ac_dir_suffix.
  26915. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  26916. - case $ac_top_builddir_sub in
  26917. - "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  26918. - *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  26919. - esac ;;
  26920. +# On AIX, shared libraries and static libraries use the same namespace, and
  26921. +# are all built from PIC.
  26922. +case $host_os in
  26923. +aix3*)
  26924. + test "$enable_shared" = yes && enable_static=no
  26925. + if test -n "$RANLIB"; then
  26926. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  26927. + postinstall_cmds='$RANLIB $lib'
  26928. + fi
  26929. + ;;
  26930. +aix4* | aix5*)
  26931. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  26932. + test "$enable_shared" = yes && enable_static=no
  26933. + fi
  26934. + ;;
  26935. esac
  26936. -ac_abs_top_builddir=$ac_pwd
  26937. -ac_abs_builddir=$ac_pwd$ac_dir_suffix
  26938. -# for backward compatibility:
  26939. -ac_top_builddir=$ac_top_build_prefix
  26940. +{ echo "$as_me:$LINENO: result: $enable_shared" >&5
  26941. +echo "${ECHO_T}$enable_shared" >&6; }
  26942. -case $srcdir in
  26943. - .) # We are building in place.
  26944. - ac_srcdir=.
  26945. - ac_top_srcdir=$ac_top_builddir_sub
  26946. - ac_abs_top_srcdir=$ac_pwd ;;
  26947. - [\\/]* | ?:[\\/]* ) # Absolute name.
  26948. - ac_srcdir=$srcdir$ac_dir_suffix;
  26949. - ac_top_srcdir=$srcdir
  26950. - ac_abs_top_srcdir=$srcdir ;;
  26951. - *) # Relative name.
  26952. - ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  26953. - ac_top_srcdir=$ac_top_build_prefix$srcdir
  26954. - ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  26955. -esac
  26956. -ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  26957. +{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  26958. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  26959. +# Make sure either enable_shared or enable_static is yes.
  26960. +test "$enable_shared" = yes || enable_static=yes
  26961. +{ echo "$as_me:$LINENO: result: $enable_static" >&5
  26962. +echo "${ECHO_T}$enable_static" >&6; }
  26963. +GCC_F77="$G77"
  26964. +LD_F77="$LD"
  26965. - case $ac_mode in
  26966. - :F)
  26967. - #
  26968. - # CONFIG_FILE
  26969. - #
  26970. +lt_prog_compiler_wl_F77=
  26971. +lt_prog_compiler_pic_F77=
  26972. +lt_prog_compiler_static_F77=
  26973. - case $INSTALL in
  26974. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  26975. - *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  26976. - esac
  26977. -_ACEOF
  26978. +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  26979. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  26980. -cat >>$CONFIG_STATUS <<\_ACEOF
  26981. -# If the template does not know about datarootdir, expand it.
  26982. -# FIXME: This hack should be removed a few years after 2.60.
  26983. -ac_datarootdir_hack=; ac_datarootdir_seen=
  26984. + if test "$GCC" = yes; then
  26985. + lt_prog_compiler_wl_F77='-Wl,'
  26986. + lt_prog_compiler_static_F77='-static'
  26987. -case `sed -n '/datarootdir/ {
  26988. - p
  26989. - q
  26990. -}
  26991. -/@datadir@/p
  26992. -/@docdir@/p
  26993. -/@infodir@/p
  26994. -/@localedir@/p
  26995. -/@mandir@/p
  26996. -' $ac_file_inputs` in
  26997. -*datarootdir*) ac_datarootdir_seen=yes;;
  26998. -*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  26999. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  27000. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  27001. -_ACEOF
  27002. -cat >>$CONFIG_STATUS <<_ACEOF
  27003. - ac_datarootdir_hack='
  27004. - s&@datadir@&$datadir&g
  27005. - s&@docdir@&$docdir&g
  27006. - s&@infodir@&$infodir&g
  27007. - s&@localedir@&$localedir&g
  27008. - s&@mandir@&$mandir&g
  27009. - s&\\\${datarootdir}&$datarootdir&g' ;;
  27010. -esac
  27011. -_ACEOF
  27012. -
  27013. -# Neutralize VPATH when `$srcdir' = `.'.
  27014. -# Shell code in configure.ac might set extrasub.
  27015. -# FIXME: do we really want to maintain this feature?
  27016. -cat >>$CONFIG_STATUS <<_ACEOF
  27017. - sed "$ac_vpsub
  27018. -$extrasub
  27019. -_ACEOF
  27020. -cat >>$CONFIG_STATUS <<\_ACEOF
  27021. -:t
  27022. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  27023. -s&@configure_input@&$configure_input&;t t
  27024. -s&@top_builddir@&$ac_top_builddir_sub&;t t
  27025. -s&@srcdir@&$ac_srcdir&;t t
  27026. -s&@abs_srcdir@&$ac_abs_srcdir&;t t
  27027. -s&@top_srcdir@&$ac_top_srcdir&;t t
  27028. -s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  27029. -s&@builddir@&$ac_builddir&;t t
  27030. -s&@abs_builddir@&$ac_abs_builddir&;t t
  27031. -s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  27032. -s&@INSTALL@&$ac_INSTALL&;t t
  27033. -$ac_datarootdir_hack
  27034. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  27035. + case $host_os in
  27036. + aix*)
  27037. + # All AIX code is PIC.
  27038. + if test "$host_cpu" = ia64; then
  27039. + # AIX 5 now supports IA64 processor
  27040. + lt_prog_compiler_static_F77='-Bstatic'
  27041. + fi
  27042. + ;;
  27043. -test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  27044. - { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  27045. - { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  27046. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27047. -which seems to be undefined. Please make sure it is defined." >&5
  27048. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  27049. -which seems to be undefined. Please make sure it is defined." >&2;}
  27050. + amigaos*)
  27051. + # FIXME: we need at least 68020 code to build shared libraries, but
  27052. + # adding the `-m68020' flag to GCC prevents building anything better,
  27053. + # like `-m68040'.
  27054. + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  27055. + ;;
  27056. - rm -f "$tmp/stdin"
  27057. - case $ac_file in
  27058. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  27059. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  27060. - esac
  27061. - ;;
  27062. - :H)
  27063. - #
  27064. - # CONFIG_HEADER
  27065. - #
  27066. -_ACEOF
  27067. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  27068. + # PIC is the default for these OSes.
  27069. + ;;
  27070. -# Transform confdefs.h into a sed script `conftest.defines', that
  27071. -# substitutes the proper values into config.h.in to produce config.h.
  27072. -rm -f conftest.defines conftest.tail
  27073. -# First, append a space to every undef/define line, to ease matching.
  27074. -echo 's/$/ /' >conftest.defines
  27075. -# Then, protect against being on the right side of a sed subst, or in
  27076. -# an unquoted here document, in config.status. If some macros were
  27077. -# called several times there might be several #defines for the same
  27078. -# symbol, which is useless. But do not sort them, since the last
  27079. -# AC_DEFINE must be honored.
  27080. -ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  27081. -# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  27082. -# NAME is the cpp macro being defined, VALUE is the value it is being given.
  27083. -# PARAMS is the parameter list in the macro definition--in most cases, it's
  27084. -# just an empty string.
  27085. -ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  27086. -ac_dB='\\)[ (].*,\\1define\\2'
  27087. -ac_dC=' '
  27088. -ac_dD=' ,'
  27089. + mingw* | pw32* | os2*)
  27090. + # This hack is so that the source file can tell whether it is being
  27091. + # built for inclusion in a dll (and should export symbols for example).
  27092. + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  27093. + ;;
  27094. -uniq confdefs.h |
  27095. - sed -n '
  27096. - t rset
  27097. - :rset
  27098. - s/^[ ]*#[ ]*define[ ][ ]*//
  27099. - t ok
  27100. - d
  27101. - :ok
  27102. - s/[\\&,]/\\&/g
  27103. - s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  27104. - s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  27105. - ' >>conftest.defines
  27106. + darwin* | rhapsody*)
  27107. + # PIC is the default on this platform
  27108. + # Common symbols not allowed in MH_DYLIB files
  27109. + lt_prog_compiler_pic_F77='-fno-common'
  27110. + ;;
  27111. -# Remove the space that was appended to ease matching.
  27112. -# Then replace #undef with comments. This is necessary, for
  27113. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  27114. -# on some systems where configure will not decide to define it.
  27115. -# (The regexp can be short, since the line contains either #define or #undef.)
  27116. -echo 's/ $//
  27117. -s,^[ #]*u.*,/* & */,' >>conftest.defines
  27118. + interix3*)
  27119. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  27120. + # Instead, we relocate shared libraries at runtime.
  27121. + ;;
  27122. -# Break up conftest.defines:
  27123. -ac_max_sed_lines=50
  27124. + msdosdjgpp*)
  27125. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  27126. + # on systems that don't support them.
  27127. + lt_prog_compiler_can_build_shared_F77=no
  27128. + enable_shared=no
  27129. + ;;
  27130. -# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  27131. -# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  27132. -# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  27133. -# et cetera.
  27134. -ac_in='$ac_file_inputs'
  27135. -ac_out='"$tmp/out1"'
  27136. -ac_nxt='"$tmp/out2"'
  27137. + sysv4*MP*)
  27138. + if test -d /usr/nec; then
  27139. + lt_prog_compiler_pic_F77=-Kconform_pic
  27140. + fi
  27141. + ;;
  27142. -while :
  27143. -do
  27144. - # Write a here document:
  27145. - cat >>$CONFIG_STATUS <<_ACEOF
  27146. - # First, check the format of the line:
  27147. - cat >"\$tmp/defines.sed" <<\\CEOF
  27148. -/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  27149. -/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  27150. -b
  27151. -:def
  27152. -_ACEOF
  27153. - sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  27154. - echo 'CEOF
  27155. - sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  27156. - ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  27157. - sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  27158. - grep . conftest.tail >/dev/null || break
  27159. - rm -f conftest.defines
  27160. - mv conftest.tail conftest.defines
  27161. -done
  27162. -rm -f conftest.defines conftest.tail
  27163. + hpux*)
  27164. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27165. + # not for PA HP-UX.
  27166. + case $host_cpu in
  27167. + hppa*64*|ia64*)
  27168. + # +Z the default
  27169. + ;;
  27170. + *)
  27171. + lt_prog_compiler_pic_F77='-fPIC'
  27172. + ;;
  27173. + esac
  27174. + ;;
  27175. -echo "ac_result=$ac_in" >>$CONFIG_STATUS
  27176. -cat >>$CONFIG_STATUS <<\_ACEOF
  27177. - if test x"$ac_file" != x-; then
  27178. - echo "/* $configure_input */" >"$tmp/config.h"
  27179. - cat "$ac_result" >>"$tmp/config.h"
  27180. - if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  27181. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  27182. -echo "$as_me: $ac_file is unchanged" >&6;}
  27183. - else
  27184. - rm -f $ac_file
  27185. - mv "$tmp/config.h" $ac_file
  27186. - fi
  27187. + *)
  27188. + lt_prog_compiler_pic_F77='-fPIC'
  27189. + ;;
  27190. + esac
  27191. else
  27192. - echo "/* $configure_input */"
  27193. - cat "$ac_result"
  27194. - fi
  27195. - rm -f "$tmp/out12"
  27196. -# Compute $ac_file's index in $config_headers.
  27197. -_am_stamp_count=1
  27198. -for _am_header in $config_headers :; do
  27199. - case $_am_header in
  27200. - $ac_file | $ac_file:* )
  27201. - break ;;
  27202. - * )
  27203. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  27204. - esac
  27205. -done
  27206. -echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  27207. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27208. - X$ac_file : 'X\(//\)[^/]' \| \
  27209. - X$ac_file : 'X\(//\)$' \| \
  27210. - X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  27211. -echo X$ac_file |
  27212. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27213. - s//\1/
  27214. - q
  27215. - }
  27216. - /^X\(\/\/\)[^/].*/{
  27217. - s//\1/
  27218. - q
  27219. - }
  27220. - /^X\(\/\/\)$/{
  27221. - s//\1/
  27222. - q
  27223. - }
  27224. - /^X\(\/\).*/{
  27225. - s//\1/
  27226. - q
  27227. - }
  27228. - s/.*/./; q'`/stamp-h$_am_stamp_count
  27229. - ;;
  27230. + # PORTME Check for flag to pass linker flags through the system compiler.
  27231. + case $host_os in
  27232. + aix*)
  27233. + lt_prog_compiler_wl_F77='-Wl,'
  27234. + if test "$host_cpu" = ia64; then
  27235. + # AIX 5 now supports IA64 processor
  27236. + lt_prog_compiler_static_F77='-Bstatic'
  27237. + else
  27238. + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  27239. + fi
  27240. + ;;
  27241. + darwin*)
  27242. + # PIC is the default on this platform
  27243. + # Common symbols not allowed in MH_DYLIB files
  27244. + case $cc_basename in
  27245. + xlc*)
  27246. + lt_prog_compiler_pic_F77='-qnocommon'
  27247. + lt_prog_compiler_wl_F77='-Wl,'
  27248. + ;;
  27249. + esac
  27250. + ;;
  27251. - :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  27252. -echo "$as_me: executing $ac_file commands" >&6;}
  27253. - ;;
  27254. - esac
  27255. + mingw* | pw32* | os2*)
  27256. + # This hack is so that the source file can tell whether it is being
  27257. + # built for inclusion in a dll (and should export symbols for example).
  27258. + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  27259. + ;;
  27260. + hpux9* | hpux10* | hpux11*)
  27261. + lt_prog_compiler_wl_F77='-Wl,'
  27262. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  27263. + # not for PA HP-UX.
  27264. + case $host_cpu in
  27265. + hppa*64*|ia64*)
  27266. + # +Z the default
  27267. + ;;
  27268. + *)
  27269. + lt_prog_compiler_pic_F77='+Z'
  27270. + ;;
  27271. + esac
  27272. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  27273. + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  27274. + ;;
  27275. - case $ac_file$ac_mode in
  27276. - "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  27277. - # Strip MF so we end up with the name of the file.
  27278. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  27279. - # Check whether this is an Automake generated Makefile or not.
  27280. - # We used to match only the files named `Makefile.in', but
  27281. - # some people rename them; so instead we look at the file content.
  27282. - # Grep'ing the first line is not enough: some people post-process
  27283. - # each Makefile.in and add a new line on top of each file to say so.
  27284. - # So let's grep whole file.
  27285. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  27286. - dirpart=`$as_dirname -- "$mf" ||
  27287. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27288. - X"$mf" : 'X\(//\)[^/]' \| \
  27289. - X"$mf" : 'X\(//\)$' \| \
  27290. - X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  27291. -echo X"$mf" |
  27292. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27293. - s//\1/
  27294. - q
  27295. - }
  27296. - /^X\(\/\/\)[^/].*/{
  27297. - s//\1/
  27298. - q
  27299. - }
  27300. - /^X\(\/\/\)$/{
  27301. - s//\1/
  27302. - q
  27303. - }
  27304. - /^X\(\/\).*/{
  27305. - s//\1/
  27306. - q
  27307. - }
  27308. - s/.*/./; q'`
  27309. - else
  27310. - continue
  27311. - fi
  27312. - # Extract the definition of DEPDIR, am__include, and am__quote
  27313. - # from the Makefile without running `make'.
  27314. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  27315. - test -z "$DEPDIR" && continue
  27316. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  27317. - test -z "am__include" && continue
  27318. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  27319. - # When using ansi2knr, U may be empty or an underscore; expand it
  27320. - U=`sed -n 's/^U = //p' < "$mf"`
  27321. - # Find all dependency output files, they are included files with
  27322. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  27323. - # simplest approach to changing $(DEPDIR) to its actual value in the
  27324. - # expansion.
  27325. - for file in `sed -n "
  27326. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  27327. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  27328. - # Make sure the directory exists.
  27329. - test -f "$dirpart/$file" && continue
  27330. - fdir=`$as_dirname -- "$file" ||
  27331. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27332. - X"$file" : 'X\(//\)[^/]' \| \
  27333. - X"$file" : 'X\(//\)$' \| \
  27334. - X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  27335. -echo X"$file" |
  27336. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27337. - s//\1/
  27338. - q
  27339. - }
  27340. - /^X\(\/\/\)[^/].*/{
  27341. - s//\1/
  27342. - q
  27343. - }
  27344. - /^X\(\/\/\)$/{
  27345. - s//\1/
  27346. - q
  27347. - }
  27348. - /^X\(\/\).*/{
  27349. - s//\1/
  27350. - q
  27351. - }
  27352. - s/.*/./; q'`
  27353. - { as_dir=$dirpart/$fdir
  27354. - case $as_dir in #(
  27355. - -*) as_dir=./$as_dir;;
  27356. - esac
  27357. - test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  27358. - as_dirs=
  27359. - while :; do
  27360. - case $as_dir in #(
  27361. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  27362. - *) as_qdir=$as_dir;;
  27363. + irix5* | irix6* | nonstopux*)
  27364. + lt_prog_compiler_wl_F77='-Wl,'
  27365. + # PIC (with -KPIC) is the default.
  27366. + lt_prog_compiler_static_F77='-non_shared'
  27367. + ;;
  27368. +
  27369. + newsos6)
  27370. + lt_prog_compiler_pic_F77='-KPIC'
  27371. + lt_prog_compiler_static_F77='-Bstatic'
  27372. + ;;
  27373. +
  27374. + linux*)
  27375. + case $cc_basename in
  27376. + icc* | ecc*)
  27377. + lt_prog_compiler_wl_F77='-Wl,'
  27378. + lt_prog_compiler_pic_F77='-KPIC'
  27379. + lt_prog_compiler_static_F77='-static'
  27380. + ;;
  27381. + pgcc* | pgf77* | pgf90* | pgf95*)
  27382. + # Portland Group compilers (*not* the Pentium gcc compiler,
  27383. + # which looks to be a dead project)
  27384. + lt_prog_compiler_wl_F77='-Wl,'
  27385. + lt_prog_compiler_pic_F77='-fpic'
  27386. + lt_prog_compiler_static_F77='-Bstatic'
  27387. + ;;
  27388. + ccc*)
  27389. + lt_prog_compiler_wl_F77='-Wl,'
  27390. + # All Alpha code is PIC.
  27391. + lt_prog_compiler_static_F77='-non_shared'
  27392. + ;;
  27393. esac
  27394. - as_dirs="'$as_qdir' $as_dirs"
  27395. - as_dir=`$as_dirname -- "$as_dir" ||
  27396. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  27397. - X"$as_dir" : 'X\(//\)[^/]' \| \
  27398. - X"$as_dir" : 'X\(//\)$' \| \
  27399. - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  27400. -echo X"$as_dir" |
  27401. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  27402. - s//\1/
  27403. - q
  27404. - }
  27405. - /^X\(\/\/\)[^/].*/{
  27406. - s//\1/
  27407. - q
  27408. - }
  27409. - /^X\(\/\/\)$/{
  27410. - s//\1/
  27411. - q
  27412. - }
  27413. - /^X\(\/\).*/{
  27414. - s//\1/
  27415. - q
  27416. - }
  27417. - s/.*/./; q'`
  27418. - test -d "$as_dir" && break
  27419. - done
  27420. - test -z "$as_dirs" || eval "mkdir $as_dirs"
  27421. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  27422. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  27423. - { (exit 1); exit 1; }; }; }
  27424. - # echo "creating $dirpart/$file"
  27425. - echo '# dummy' > "$dirpart/$file"
  27426. - done
  27427. -done
  27428. - ;;
  27429. - "libtool":C)
  27430. + ;;
  27431. - # See if we are running on zsh, and set the options which allow our
  27432. - # commands through without removal of \ escapes.
  27433. - if test -n "${ZSH_VERSION+set}" ; then
  27434. - setopt NO_GLOB_SUBST
  27435. - fi
  27436. + osf3* | osf4* | osf5*)
  27437. + lt_prog_compiler_wl_F77='-Wl,'
  27438. + # All OSF/1 code is PIC.
  27439. + lt_prog_compiler_static_F77='-non_shared'
  27440. + ;;
  27441. - cfgfile="${ofile}T"
  27442. - trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  27443. - $RM "$cfgfile"
  27444. + solaris*)
  27445. + lt_prog_compiler_pic_F77='-KPIC'
  27446. + lt_prog_compiler_static_F77='-Bstatic'
  27447. + case $cc_basename in
  27448. + f77* | f90* | f95*)
  27449. + lt_prog_compiler_wl_F77='-Qoption ld ';;
  27450. + *)
  27451. + lt_prog_compiler_wl_F77='-Wl,';;
  27452. + esac
  27453. + ;;
  27454. - cat <<_LT_EOF >> "$cfgfile"
  27455. -#! $SHELL
  27456. + sunos4*)
  27457. + lt_prog_compiler_wl_F77='-Qoption ld '
  27458. + lt_prog_compiler_pic_F77='-PIC'
  27459. + lt_prog_compiler_static_F77='-Bstatic'
  27460. + ;;
  27461. +
  27462. + sysv4 | sysv4.2uw2* | sysv4.3*)
  27463. + lt_prog_compiler_wl_F77='-Wl,'
  27464. + lt_prog_compiler_pic_F77='-KPIC'
  27465. + lt_prog_compiler_static_F77='-Bstatic'
  27466. + ;;
  27467. +
  27468. + sysv4*MP*)
  27469. + if test -d /usr/nec ;then
  27470. + lt_prog_compiler_pic_F77='-Kconform_pic'
  27471. + lt_prog_compiler_static_F77='-Bstatic'
  27472. + fi
  27473. + ;;
  27474. +
  27475. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  27476. + lt_prog_compiler_wl_F77='-Wl,'
  27477. + lt_prog_compiler_pic_F77='-KPIC'
  27478. + lt_prog_compiler_static_F77='-Bstatic'
  27479. + ;;
  27480. +
  27481. + unicos*)
  27482. + lt_prog_compiler_wl_F77='-Wl,'
  27483. + lt_prog_compiler_can_build_shared_F77=no
  27484. + ;;
  27485. +
  27486. + uts4*)
  27487. + lt_prog_compiler_pic_F77='-pic'
  27488. + lt_prog_compiler_static_F77='-Bstatic'
  27489. + ;;
  27490. +
  27491. + *)
  27492. + lt_prog_compiler_can_build_shared_F77=no
  27493. + ;;
  27494. + esac
  27495. + fi
  27496. +
  27497. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  27498. +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  27499. -# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  27500. -# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
  27501. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  27502. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  27503. -#
  27504. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  27505. -# Free Software Foundation, Inc.
  27506. -#
  27507. -# This file is part of GNU Libtool:
  27508. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  27509. #
  27510. -# This program is free software; you can redistribute it and/or modify
  27511. -# it under the terms of the GNU General Public License as published by
  27512. -# the Free Software Foundation; either version 2 of the License, or
  27513. -# (at your option) any later version.
  27514. +# Check to make sure the PIC flag actually works.
  27515. #
  27516. -# This program is distributed in the hope that it will be useful, but
  27517. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  27518. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  27519. -# General Public License for more details.
  27520. +if test -n "$lt_prog_compiler_pic_F77"; then
  27521. +
  27522. +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  27523. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  27524. +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  27525. + echo $ECHO_N "(cached) $ECHO_C" >&6
  27526. +else
  27527. + lt_prog_compiler_pic_works_F77=no
  27528. + ac_outfile=conftest.$ac_objext
  27529. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  27530. + lt_compiler_flag="$lt_prog_compiler_pic_F77"
  27531. + # Insert the option either (1) after the last *FLAGS variable, or
  27532. + # (2) before a word containing "conftest.", or (3) at the end.
  27533. + # Note that $ac_compile itself does not contain backslashes and begins
  27534. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  27535. + # The option is referenced via a variable to avoid confusing sed.
  27536. + lt_compile=`echo "$ac_compile" | $SED \
  27537. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27538. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27539. + -e 's:$: $lt_compiler_flag:'`
  27540. + (eval echo "\"\$as_me:13886: $lt_compile\"" >&5)
  27541. + (eval "$lt_compile" 2>conftest.err)
  27542. + ac_status=$?
  27543. + cat conftest.err >&5
  27544. + echo "$as_me:13890: \$? = $ac_status" >&5
  27545. + if (exit $ac_status) && test -s "$ac_outfile"; then
  27546. + # The compiler can only warn and ignore the option if not recognized
  27547. + # So say no if there are warnings other than the usual output.
  27548. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  27549. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27550. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  27551. + lt_prog_compiler_pic_works_F77=yes
  27552. + fi
  27553. + fi
  27554. + $rm conftest*
  27555. +
  27556. +fi
  27557. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  27558. +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  27559. +
  27560. +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  27561. + case $lt_prog_compiler_pic_F77 in
  27562. + "" | " "*) ;;
  27563. + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  27564. + esac
  27565. +else
  27566. + lt_prog_compiler_pic_F77=
  27567. + lt_prog_compiler_can_build_shared_F77=no
  27568. +fi
  27569. +
  27570. +fi
  27571. +case $host_os in
  27572. + # For platforms which do not support PIC, -DPIC is meaningless:
  27573. + *djgpp*)
  27574. + lt_prog_compiler_pic_F77=
  27575. + ;;
  27576. + *)
  27577. + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  27578. + ;;
  27579. +esac
  27580. +
  27581. #
  27582. -# You should have received a copy of the GNU General Public License
  27583. -# along with this program; if not, write to the Free Software
  27584. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  27585. +# Check to make sure the static flag actually works.
  27586. #
  27587. -# As a special exception to the GNU General Public License, if you
  27588. -# distribute this file as part of a program that contains a
  27589. -# configuration script generated by Autoconf, you may include it under
  27590. -# the same distribution terms that you use for the rest of that program.
  27591. +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  27592. +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  27593. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  27594. +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  27595. + echo $ECHO_N "(cached) $ECHO_C" >&6
  27596. +else
  27597. + lt_prog_compiler_static_works_F77=no
  27598. + save_LDFLAGS="$LDFLAGS"
  27599. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  27600. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  27601. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  27602. + # The linker can only warn and ignore the option if not recognized
  27603. + # So say no if there are warnings
  27604. + if test -s conftest.err; then
  27605. + # Append any errors to the config.log.
  27606. + cat conftest.err 1>&5
  27607. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  27608. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27609. + if diff conftest.exp conftest.er2 >/dev/null; then
  27610. + lt_prog_compiler_static_works_F77=yes
  27611. + fi
  27612. + else
  27613. + lt_prog_compiler_static_works_F77=yes
  27614. + fi
  27615. + fi
  27616. + $rm conftest*
  27617. + LDFLAGS="$save_LDFLAGS"
  27618. -# TEST SUITE MARKER ## BEGIN SOURCABLE
  27619. +fi
  27620. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  27621. +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  27622. +
  27623. +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  27624. + :
  27625. +else
  27626. + lt_prog_compiler_static_F77=
  27627. +fi
  27628. +
  27629. +
  27630. +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  27631. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  27632. +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  27633. + echo $ECHO_N "(cached) $ECHO_C" >&6
  27634. +else
  27635. + lt_cv_prog_compiler_c_o_F77=no
  27636. + $rm -r conftest 2>/dev/null
  27637. + mkdir conftest
  27638. + cd conftest
  27639. + mkdir out
  27640. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  27641. +
  27642. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  27643. + # Insert the option either (1) after the last *FLAGS variable, or
  27644. + # (2) before a word containing "conftest.", or (3) at the end.
  27645. + # Note that $ac_compile itself does not contain backslashes and begins
  27646. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  27647. + lt_compile=`echo "$ac_compile" | $SED \
  27648. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27649. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27650. + -e 's:$: $lt_compiler_flag:'`
  27651. + (eval echo "\"\$as_me:13990: $lt_compile\"" >&5)
  27652. + (eval "$lt_compile" 2>out/conftest.err)
  27653. + ac_status=$?
  27654. + cat out/conftest.err >&5
  27655. + echo "$as_me:13994: \$? = $ac_status" >&5
  27656. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  27657. + then
  27658. + # The compiler can only warn and ignore the option if not recognized
  27659. + # So say no if there are warnings
  27660. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  27661. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  27662. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  27663. + lt_cv_prog_compiler_c_o_F77=yes
  27664. + fi
  27665. + fi
  27666. + chmod u+w . 2>&5
  27667. + $rm conftest*
  27668. + # SGI C++ compiler will create directory out/ii_files/ for
  27669. + # template instantiation
  27670. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  27671. + $rm out/* && rmdir out
  27672. + cd ..
  27673. + rmdir conftest
  27674. + $rm conftest*
  27675. +
  27676. +fi
  27677. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  27678. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  27679. +
  27680. +
  27681. +hard_links="nottested"
  27682. +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  27683. + # do not overwrite the value of need_locks provided by the user
  27684. + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  27685. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  27686. + hard_links=yes
  27687. + $rm conftest*
  27688. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27689. + touch conftest.a
  27690. + ln conftest.a conftest.b 2>&5 || hard_links=no
  27691. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27692. + { echo "$as_me:$LINENO: result: $hard_links" >&5
  27693. +echo "${ECHO_T}$hard_links" >&6; }
  27694. + if test "$hard_links" = no; then
  27695. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  27696. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  27697. + need_locks=warn
  27698. + fi
  27699. +else
  27700. + need_locks=no
  27701. +fi
  27702. +
  27703. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27704. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  27705. +
  27706. + runpath_var=
  27707. + allow_undefined_flag_F77=
  27708. + enable_shared_with_static_runtimes_F77=no
  27709. + archive_cmds_F77=
  27710. + archive_expsym_cmds_F77=
  27711. + old_archive_From_new_cmds_F77=
  27712. + old_archive_from_expsyms_cmds_F77=
  27713. + export_dynamic_flag_spec_F77=
  27714. + whole_archive_flag_spec_F77=
  27715. + thread_safe_flag_spec_F77=
  27716. + hardcode_libdir_flag_spec_F77=
  27717. + hardcode_libdir_flag_spec_ld_F77=
  27718. + hardcode_libdir_separator_F77=
  27719. + hardcode_direct_F77=no
  27720. + hardcode_minus_L_F77=no
  27721. + hardcode_shlibpath_var_F77=unsupported
  27722. + link_all_deplibs_F77=unknown
  27723. + hardcode_automatic_F77=no
  27724. + module_cmds_F77=
  27725. + module_expsym_cmds_F77=
  27726. + always_export_symbols_F77=no
  27727. + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27728. + # include_expsyms should be a list of space-separated symbols to be *always*
  27729. + # included in the symbol list
  27730. + include_expsyms_F77=
  27731. + # exclude_expsyms can be an extended regexp of symbols to exclude
  27732. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  27733. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  27734. + # as well as any symbol that contains `d'.
  27735. + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  27736. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  27737. + # platforms (ab)use it in PIC code, but their linkers get confused if
  27738. + # the symbol is explicitly referenced. Since portable code cannot
  27739. + # rely on this symbol name, it's probably fine to never include it in
  27740. + # preloaded symbol tables.
  27741. + extract_expsyms_cmds=
  27742. + # Just being paranoid about ensuring that cc_basename is set.
  27743. + for cc_temp in $compiler""; do
  27744. + case $cc_temp in
  27745. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27746. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27747. + \-*) ;;
  27748. + *) break;;
  27749. + esac
  27750. +done
  27751. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27752. +
  27753. + case $host_os in
  27754. + cygwin* | mingw* | pw32*)
  27755. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  27756. + # When not using gcc, we currently assume that we are using
  27757. + # Microsoft Visual C++.
  27758. + if test "$GCC" != yes; then
  27759. + with_gnu_ld=no
  27760. + fi
  27761. + ;;
  27762. + interix*)
  27763. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  27764. + with_gnu_ld=yes
  27765. + ;;
  27766. + openbsd*)
  27767. + with_gnu_ld=no
  27768. + ;;
  27769. + esac
  27770. +
  27771. + ld_shlibs_F77=yes
  27772. + if test "$with_gnu_ld" = yes; then
  27773. + # If archive_cmds runs LD, not CC, wlarc should be empty
  27774. + wlarc='${wl}'
  27775. +
  27776. + # Set some defaults for GNU ld with shared library support. These
  27777. + # are reset later if shared libraries are not supported. Putting them
  27778. + # here allows them to be overridden if necessary.
  27779. + runpath_var=LD_RUN_PATH
  27780. + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  27781. + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  27782. + # ancient GNU ld didn't support --whole-archive et. al.
  27783. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  27784. + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27785. + else
  27786. + whole_archive_flag_spec_F77=
  27787. + fi
  27788. + supports_anon_versioning=no
  27789. + case `$LD -v 2>/dev/null` in
  27790. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  27791. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  27792. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  27793. + *\ 2.11.*) ;; # other 2.11 versions
  27794. + *) supports_anon_versioning=yes ;;
  27795. + esac
  27796. +
  27797. + # See if GNU ld supports shared libraries.
  27798. + case $host_os in
  27799. + aix3* | aix4* | aix5*)
  27800. + # On AIX/PPC, the GNU linker is very broken
  27801. + if test "$host_cpu" != ia64; then
  27802. + ld_shlibs_F77=no
  27803. + cat <<EOF 1>&2
  27804. +
  27805. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  27806. +*** to be unable to reliably create shared libraries on AIX.
  27807. +*** Therefore, libtool is disabling shared libraries support. If you
  27808. +*** really care for shared libraries, you may want to modify your PATH
  27809. +*** so that a non-GNU linker is found, and then restart.
  27810. +
  27811. +EOF
  27812. + fi
  27813. + ;;
  27814. +
  27815. + amigaos*)
  27816. + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  27817. + hardcode_libdir_flag_spec_F77='-L$libdir'
  27818. + hardcode_minus_L_F77=yes
  27819. +
  27820. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  27821. + # that the semantics of dynamic libraries on AmigaOS, at least up
  27822. + # to version 4, is to share data among multiple programs linked
  27823. + # with the same dynamic library. Since this doesn't match the
  27824. + # behavior of shared libraries on other platforms, we can't use
  27825. + # them.
  27826. + ld_shlibs_F77=no
  27827. + ;;
  27828. +
  27829. + beos*)
  27830. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27831. + allow_undefined_flag_F77=unsupported
  27832. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  27833. + # support --undefined. This deserves some investigation. FIXME
  27834. + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27835. + else
  27836. + ld_shlibs_F77=no
  27837. + fi
  27838. + ;;
  27839. +
  27840. + cygwin* | mingw* | pw32*)
  27841. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  27842. + # as there is no search path for DLLs.
  27843. + hardcode_libdir_flag_spec_F77='-L$libdir'
  27844. + allow_undefined_flag_F77=unsupported
  27845. + always_export_symbols_F77=no
  27846. + enable_shared_with_static_runtimes_F77=yes
  27847. + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  27848. +
  27849. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27850. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  27851. + # If the export-symbols file already is a .def file (1st line
  27852. + # is EXPORTS), use it as is; otherwise, prepend...
  27853. + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27854. + cp $export_symbols $output_objdir/$soname.def;
  27855. + else
  27856. + echo EXPORTS > $output_objdir/$soname.def;
  27857. + cat $export_symbols >> $output_objdir/$soname.def;
  27858. + fi~
  27859. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  27860. + else
  27861. + ld_shlibs_F77=no
  27862. + fi
  27863. + ;;
  27864. +
  27865. + interix3*)
  27866. + hardcode_direct_F77=no
  27867. + hardcode_shlibpath_var_F77=no
  27868. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  27869. + export_dynamic_flag_spec_F77='${wl}-E'
  27870. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  27871. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  27872. + # default) and relocated if they conflict, which is a slow very memory
  27873. + # consuming and fragmenting process. To avoid this, we pick a random,
  27874. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  27875. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  27876. + archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  27877. + archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  27878. + ;;
  27879. +
  27880. + linux*)
  27881. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27882. + tmp_addflag=
  27883. + case $cc_basename,$host_cpu in
  27884. + pgcc*) # Portland Group C compiler
  27885. + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  27886. + tmp_addflag=' $pic_flag'
  27887. + ;;
  27888. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  27889. + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  27890. + tmp_addflag=' $pic_flag -Mnomain' ;;
  27891. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  27892. + tmp_addflag=' -i_dynamic' ;;
  27893. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  27894. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  27895. + ifc* | ifort*) # Intel Fortran compiler
  27896. + tmp_addflag=' -nofor_main' ;;
  27897. + esac
  27898. + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27899. +
  27900. + if test $supports_anon_versioning = yes; then
  27901. + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  27902. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  27903. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  27904. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  27905. + fi
  27906. + else
  27907. + ld_shlibs_F77=no
  27908. + fi
  27909. + ;;
  27910. +
  27911. + netbsd*)
  27912. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27913. + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  27914. + wlarc=
  27915. + else
  27916. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27917. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27918. + fi
  27919. + ;;
  27920. +
  27921. + solaris*)
  27922. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  27923. + ld_shlibs_F77=no
  27924. + cat <<EOF 1>&2
  27925. +
  27926. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  27927. +*** create shared libraries on Solaris systems. Therefore, libtool
  27928. +*** is disabling shared libraries support. We urge you to upgrade GNU
  27929. +*** binutils to release 2.9.1 or newer. Another option is to modify
  27930. +*** your PATH or compiler configuration so that the native linker is
  27931. +*** used, and then restart.
  27932. +
  27933. +EOF
  27934. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27935. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27936. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27937. + else
  27938. + ld_shlibs_F77=no
  27939. + fi
  27940. + ;;
  27941. +
  27942. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  27943. + case `$LD -v 2>&1` in
  27944. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  27945. + ld_shlibs_F77=no
  27946. + cat <<_LT_EOF 1>&2
  27947. +
  27948. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  27949. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  27950. +*** is disabling shared libraries support. We urge you to upgrade GNU
  27951. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  27952. +*** your PATH or compiler configuration so that the native linker is
  27953. +*** used, and then restart.
  27954. +
  27955. +_LT_EOF
  27956. + ;;
  27957. + *)
  27958. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27959. + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  27960. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  27961. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  27962. + else
  27963. + ld_shlibs_F77=no
  27964. + fi
  27965. + ;;
  27966. + esac
  27967. + ;;
  27968. +
  27969. + sunos4*)
  27970. + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27971. + wlarc=
  27972. + hardcode_direct_F77=yes
  27973. + hardcode_shlibpath_var_F77=no
  27974. + ;;
  27975. +
  27976. + *)
  27977. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27978. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27979. + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27980. + else
  27981. + ld_shlibs_F77=no
  27982. + fi
  27983. + ;;
  27984. + esac
  27985. +
  27986. + if test "$ld_shlibs_F77" = no; then
  27987. + runpath_var=
  27988. + hardcode_libdir_flag_spec_F77=
  27989. + export_dynamic_flag_spec_F77=
  27990. + whole_archive_flag_spec_F77=
  27991. + fi
  27992. + else
  27993. + # PORTME fill in a description of your system's linker (not GNU ld)
  27994. + case $host_os in
  27995. + aix3*)
  27996. + allow_undefined_flag_F77=unsupported
  27997. + always_export_symbols_F77=yes
  27998. + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  27999. + # Note: this linker hardcodes the directories in LIBPATH if there
  28000. + # are no directories specified by -L.
  28001. + hardcode_minus_L_F77=yes
  28002. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  28003. + # Neither direct hardcoding nor static linking is supported with a
  28004. + # broken collect2.
  28005. + hardcode_direct_F77=unsupported
  28006. + fi
  28007. + ;;
  28008. +
  28009. + aix4* | aix5*)
  28010. + if test "$host_cpu" = ia64; then
  28011. + # On IA64, the linker does run time linking by default, so we don't
  28012. + # have to do anything special.
  28013. + aix_use_runtimelinking=no
  28014. + exp_sym_flag='-Bexport'
  28015. + no_entry_flag=""
  28016. + else
  28017. + # If we're using GNU nm, then we don't want the "-C" option.
  28018. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  28019. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  28020. + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  28021. + else
  28022. + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  28023. + fi
  28024. + aix_use_runtimelinking=no
  28025. +
  28026. + # Test if we are trying to use run time linking or normal
  28027. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  28028. + # need to do runtime linking.
  28029. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  28030. + for ld_flag in $LDFLAGS; do
  28031. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  28032. + aix_use_runtimelinking=yes
  28033. + break
  28034. + fi
  28035. + done
  28036. + ;;
  28037. + esac
  28038. +
  28039. + exp_sym_flag='-bexport'
  28040. + no_entry_flag='-bnoentry'
  28041. + fi
  28042. +
  28043. + # When large executables or shared objects are built, AIX ld can
  28044. + # have problems creating the table of contents. If linking a library
  28045. + # or program results in "error TOC overflow" add -mminimal-toc to
  28046. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  28047. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  28048. +
  28049. + archive_cmds_F77=''
  28050. + hardcode_direct_F77=yes
  28051. + hardcode_libdir_separator_F77=':'
  28052. + link_all_deplibs_F77=yes
  28053. +
  28054. + if test "$GCC" = yes; then
  28055. + case $host_os in aix4.[012]|aix4.[012].*)
  28056. + # We only want to do this on AIX 4.2 and lower, the check
  28057. + # below for broken collect2 doesn't work under 4.3+
  28058. + collect2name=`${CC} -print-prog-name=collect2`
  28059. + if test -f "$collect2name" && \
  28060. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  28061. + then
  28062. + # We have reworked collect2
  28063. + hardcode_direct_F77=yes
  28064. + else
  28065. + # We have old collect2
  28066. + hardcode_direct_F77=unsupported
  28067. + # It fails to find uninstalled libraries when the uninstalled
  28068. + # path is not listed in the libpath. Setting hardcode_minus_L
  28069. + # to unsupported forces relinking
  28070. + hardcode_minus_L_F77=yes
  28071. + hardcode_libdir_flag_spec_F77='-L$libdir'
  28072. + hardcode_libdir_separator_F77=
  28073. + fi
  28074. + ;;
  28075. + esac
  28076. + shared_flag='-shared'
  28077. + if test "$aix_use_runtimelinking" = yes; then
  28078. + shared_flag="$shared_flag "'${wl}-G'
  28079. + fi
  28080. + else
  28081. + # not using gcc
  28082. + if test "$host_cpu" = ia64; then
  28083. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  28084. + # chokes on -Wl,-G. The following line is correct:
  28085. + shared_flag='-G'
  28086. + else
  28087. + if test "$aix_use_runtimelinking" = yes; then
  28088. + shared_flag='${wl}-G'
  28089. + else
  28090. + shared_flag='${wl}-bM:SRE'
  28091. + fi
  28092. + fi
  28093. + fi
  28094. +
  28095. + # It seems that -bexpall does not export symbols beginning with
  28096. + # underscore (_), so it is better to generate a list of symbols to export.
  28097. + always_export_symbols_F77=yes
  28098. + if test "$aix_use_runtimelinking" = yes; then
  28099. + # Warning - without using the other runtime loading flags (-brtl),
  28100. + # -berok will link without error, but may produce a broken library.
  28101. + allow_undefined_flag_F77='-berok'
  28102. + # Determine the default libpath from the value encoded in an empty executable.
  28103. + cat >conftest.$ac_ext <<_ACEOF
  28104. + program main
  28105. +
  28106. + end
  28107. +_ACEOF
  28108. +rm -f conftest.$ac_objext conftest$ac_exeext
  28109. +if { (ac_try="$ac_link"
  28110. +case "(($ac_try" in
  28111. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28112. + *) ac_try_echo=$ac_try;;
  28113. +esac
  28114. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28115. + (eval "$ac_link") 2>conftest.er1
  28116. + ac_status=$?
  28117. + grep -v '^ *+' conftest.er1 >conftest.err
  28118. + rm -f conftest.er1
  28119. + cat conftest.err >&5
  28120. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28121. + (exit $ac_status); } && {
  28122. + test -z "$ac_f77_werror_flag" ||
  28123. + test ! -s conftest.err
  28124. + } && test -s conftest$ac_exeext &&
  28125. + $as_test_x conftest$ac_exeext; then
  28126. +
  28127. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28128. +}'`
  28129. +# Check for a 64-bit object if we didn't find anything.
  28130. +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; }
  28131. +}'`; fi
  28132. +else
  28133. + echo "$as_me: failed program was:" >&5
  28134. +sed 's/^/| /' conftest.$ac_ext >&5
  28135. +
  28136. +
  28137. +fi
  28138. +
  28139. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28140. + conftest$ac_exeext conftest.$ac_ext
  28141. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28142. +
  28143. + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  28144. + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  28145. + else
  28146. + if test "$host_cpu" = ia64; then
  28147. + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  28148. + allow_undefined_flag_F77="-z nodefs"
  28149. + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  28150. + else
  28151. + # Determine the default libpath from the value encoded in an empty executable.
  28152. + cat >conftest.$ac_ext <<_ACEOF
  28153. + program main
  28154. +
  28155. + end
  28156. +_ACEOF
  28157. +rm -f conftest.$ac_objext conftest$ac_exeext
  28158. +if { (ac_try="$ac_link"
  28159. +case "(($ac_try" in
  28160. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  28161. + *) ac_try_echo=$ac_try;;
  28162. +esac
  28163. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  28164. + (eval "$ac_link") 2>conftest.er1
  28165. + ac_status=$?
  28166. + grep -v '^ *+' conftest.er1 >conftest.err
  28167. + rm -f conftest.er1
  28168. + cat conftest.err >&5
  28169. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28170. + (exit $ac_status); } && {
  28171. + test -z "$ac_f77_werror_flag" ||
  28172. + test ! -s conftest.err
  28173. + } && test -s conftest$ac_exeext &&
  28174. + $as_test_x conftest$ac_exeext; then
  28175. +
  28176. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  28177. +}'`
  28178. +# Check for a 64-bit object if we didn't find anything.
  28179. +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; }
  28180. +}'`; fi
  28181. +else
  28182. + echo "$as_me: failed program was:" >&5
  28183. +sed 's/^/| /' conftest.$ac_ext >&5
  28184. +
  28185. +
  28186. +fi
  28187. +
  28188. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  28189. + conftest$ac_exeext conftest.$ac_ext
  28190. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  28191. +
  28192. + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  28193. + # Warning - without using the other run time loading flags,
  28194. + # -berok will link without error, but may produce a broken library.
  28195. + no_undefined_flag_F77=' ${wl}-bernotok'
  28196. + allow_undefined_flag_F77=' ${wl}-berok'
  28197. + # Exported symbols can be pulled into shared objects from archives
  28198. + whole_archive_flag_spec_F77='$convenience'
  28199. + archive_cmds_need_lc_F77=yes
  28200. + # This is similar to how AIX traditionally builds its shared libraries.
  28201. + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  28202. + fi
  28203. + fi
  28204. + ;;
  28205. +
  28206. + amigaos*)
  28207. + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  28208. + hardcode_libdir_flag_spec_F77='-L$libdir'
  28209. + hardcode_minus_L_F77=yes
  28210. + # see comment about different semantics on the GNU ld section
  28211. + ld_shlibs_F77=no
  28212. + ;;
  28213. +
  28214. + bsdi[45]*)
  28215. + export_dynamic_flag_spec_F77=-rdynamic
  28216. + ;;
  28217. +
  28218. + cygwin* | mingw* | pw32*)
  28219. + # When not using gcc, we currently assume that we are using
  28220. + # Microsoft Visual C++.
  28221. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  28222. + # no search path for DLLs.
  28223. + hardcode_libdir_flag_spec_F77=' '
  28224. + allow_undefined_flag_F77=unsupported
  28225. + # Tell ltmain to make .lib files, not .a files.
  28226. + libext=lib
  28227. + # Tell ltmain to make .dll files, not .so files.
  28228. + shrext_cmds=".dll"
  28229. + # FIXME: Setting linknames here is a bad hack.
  28230. + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  28231. + # The linker will automatically build a .lib file if we build a DLL.
  28232. + old_archive_From_new_cmds_F77='true'
  28233. + # FIXME: Should let the user specify the lib program.
  28234. + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  28235. + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  28236. + enable_shared_with_static_runtimes_F77=yes
  28237. + ;;
  28238. +
  28239. + darwin* | rhapsody*)
  28240. + case $host_os in
  28241. + rhapsody* | darwin1.[012])
  28242. + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  28243. + ;;
  28244. + *) # Darwin 1.3 on
  28245. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  28246. + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28247. + else
  28248. + case ${MACOSX_DEPLOYMENT_TARGET} in
  28249. + 10.[012])
  28250. + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  28251. + ;;
  28252. + 10.*)
  28253. + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  28254. + ;;
  28255. + esac
  28256. + fi
  28257. + ;;
  28258. + esac
  28259. + archive_cmds_need_lc_F77=no
  28260. + hardcode_direct_F77=no
  28261. + hardcode_automatic_F77=yes
  28262. + hardcode_shlibpath_var_F77=unsupported
  28263. + whole_archive_flag_spec_F77=''
  28264. + link_all_deplibs_F77=yes
  28265. + if test "$GCC" = yes ; then
  28266. + output_verbose_link_cmd='echo'
  28267. + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  28268. + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28269. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28270. + archive_expsym_cmds_F77='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}'
  28271. + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28272. + else
  28273. + case $cc_basename in
  28274. + xlc*)
  28275. + output_verbose_link_cmd='echo'
  28276. + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  28277. + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  28278. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  28279. + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28280. + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  28281. + ;;
  28282. + *)
  28283. + ld_shlibs_F77=no
  28284. + ;;
  28285. + esac
  28286. + fi
  28287. + ;;
  28288. +
  28289. + dgux*)
  28290. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28291. + hardcode_libdir_flag_spec_F77='-L$libdir'
  28292. + hardcode_shlibpath_var_F77=no
  28293. + ;;
  28294. +
  28295. + freebsd1*)
  28296. + ld_shlibs_F77=no
  28297. + ;;
  28298. +
  28299. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  28300. + # support. Future versions do this automatically, but an explicit c++rt0.o
  28301. + # does not break anything, and helps significantly (at the cost of a little
  28302. + # extra space).
  28303. + freebsd2.2*)
  28304. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  28305. + hardcode_libdir_flag_spec_F77='-R$libdir'
  28306. + hardcode_direct_F77=yes
  28307. + hardcode_shlibpath_var_F77=no
  28308. + ;;
  28309. +
  28310. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  28311. + freebsd2*)
  28312. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28313. + hardcode_direct_F77=yes
  28314. + hardcode_minus_L_F77=yes
  28315. + hardcode_shlibpath_var_F77=no
  28316. + ;;
  28317. +
  28318. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  28319. + freebsd* | kfreebsd*-gnu | dragonfly*)
  28320. + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  28321. + hardcode_libdir_flag_spec_F77='-R$libdir'
  28322. + hardcode_direct_F77=yes
  28323. + hardcode_shlibpath_var_F77=no
  28324. + ;;
  28325. +
  28326. + hpux9*)
  28327. + if test "$GCC" = yes; then
  28328. + archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  28329. + else
  28330. + archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  28331. + fi
  28332. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  28333. + hardcode_libdir_separator_F77=:
  28334. + hardcode_direct_F77=yes
  28335. +
  28336. + # hardcode_minus_L: Not really in the search PATH,
  28337. + # but as the default location of the library.
  28338. + hardcode_minus_L_F77=yes
  28339. + export_dynamic_flag_spec_F77='${wl}-E'
  28340. + ;;
  28341. +
  28342. + hpux10*)
  28343. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  28344. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28345. + else
  28346. + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  28347. + fi
  28348. + if test "$with_gnu_ld" = no; then
  28349. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  28350. + hardcode_libdir_separator_F77=:
  28351. +
  28352. + hardcode_direct_F77=yes
  28353. + export_dynamic_flag_spec_F77='${wl}-E'
  28354. +
  28355. + # hardcode_minus_L: Not really in the search PATH,
  28356. + # but as the default location of the library.
  28357. + hardcode_minus_L_F77=yes
  28358. + fi
  28359. + ;;
  28360. +
  28361. + hpux11*)
  28362. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  28363. + case $host_cpu in
  28364. + hppa*64*)
  28365. + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28366. + ;;
  28367. + ia64*)
  28368. + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  28369. + ;;
  28370. + *)
  28371. + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28372. + ;;
  28373. + esac
  28374. + else
  28375. + case $host_cpu in
  28376. + hppa*64*)
  28377. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28378. + ;;
  28379. + ia64*)
  28380. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  28381. + ;;
  28382. + *)
  28383. + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28384. + ;;
  28385. + esac
  28386. + fi
  28387. + if test "$with_gnu_ld" = no; then
  28388. + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  28389. + hardcode_libdir_separator_F77=:
  28390. +
  28391. + case $host_cpu in
  28392. + hppa*64*|ia64*)
  28393. + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  28394. + hardcode_direct_F77=no
  28395. + hardcode_shlibpath_var_F77=no
  28396. + ;;
  28397. + *)
  28398. + hardcode_direct_F77=yes
  28399. + export_dynamic_flag_spec_F77='${wl}-E'
  28400. +
  28401. + # hardcode_minus_L: Not really in the search PATH,
  28402. + # but as the default location of the library.
  28403. + hardcode_minus_L_F77=yes
  28404. + ;;
  28405. + esac
  28406. + fi
  28407. + ;;
  28408. +
  28409. + irix5* | irix6* | nonstopux*)
  28410. + if test "$GCC" = yes; then
  28411. + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28412. + else
  28413. + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  28414. + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  28415. + fi
  28416. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  28417. + hardcode_libdir_separator_F77=:
  28418. + link_all_deplibs_F77=yes
  28419. + ;;
  28420. +
  28421. + netbsd*)
  28422. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28423. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  28424. + else
  28425. + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  28426. + fi
  28427. + hardcode_libdir_flag_spec_F77='-R$libdir'
  28428. + hardcode_direct_F77=yes
  28429. + hardcode_shlibpath_var_F77=no
  28430. + ;;
  28431. +
  28432. + newsos6)
  28433. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28434. + hardcode_direct_F77=yes
  28435. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  28436. + hardcode_libdir_separator_F77=:
  28437. + hardcode_shlibpath_var_F77=no
  28438. + ;;
  28439. +
  28440. + openbsd*)
  28441. + hardcode_direct_F77=yes
  28442. + hardcode_shlibpath_var_F77=no
  28443. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28444. + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28445. + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  28446. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  28447. + export_dynamic_flag_spec_F77='${wl}-E'
  28448. + else
  28449. + case $host_os in
  28450. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  28451. + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28452. + hardcode_libdir_flag_spec_F77='-R$libdir'
  28453. + ;;
  28454. + *)
  28455. + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28456. + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  28457. + ;;
  28458. + esac
  28459. + fi
  28460. + ;;
  28461. +
  28462. + os2*)
  28463. + hardcode_libdir_flag_spec_F77='-L$libdir'
  28464. + hardcode_minus_L_F77=yes
  28465. + allow_undefined_flag_F77=unsupported
  28466. + archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  28467. + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  28468. + ;;
  28469. +
  28470. + osf3*)
  28471. + if test "$GCC" = yes; then
  28472. + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  28473. + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28474. + else
  28475. + allow_undefined_flag_F77=' -expect_unresolved \*'
  28476. + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  28477. + fi
  28478. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  28479. + hardcode_libdir_separator_F77=:
  28480. + ;;
  28481. +
  28482. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  28483. + if test "$GCC" = yes; then
  28484. + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  28485. + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28486. + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  28487. + else
  28488. + allow_undefined_flag_F77=' -expect_unresolved \*'
  28489. + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  28490. + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  28491. + $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'
  28492. +
  28493. + # Both c and cxx compiler support -rpath directly
  28494. + hardcode_libdir_flag_spec_F77='-rpath $libdir'
  28495. + fi
  28496. + hardcode_libdir_separator_F77=:
  28497. + ;;
  28498. +
  28499. + solaris*)
  28500. + no_undefined_flag_F77=' -z text'
  28501. + if test "$GCC" = yes; then
  28502. + wlarc='${wl}'
  28503. + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28504. + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28505. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  28506. + else
  28507. + wlarc=''
  28508. + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28509. + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28510. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  28511. + fi
  28512. + hardcode_libdir_flag_spec_F77='-R$libdir'
  28513. + hardcode_shlibpath_var_F77=no
  28514. + case $host_os in
  28515. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  28516. + *)
  28517. + # The compiler driver will combine linker options so we
  28518. + # cannot just pass the convience library names through
  28519. + # without $wl, iff we do not link with $LD.
  28520. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  28521. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  28522. + case $wlarc in
  28523. + '')
  28524. + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  28525. + *)
  28526. + whole_archive_flag_spec_F77='${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' ;;
  28527. + esac ;;
  28528. + esac
  28529. + link_all_deplibs_F77=yes
  28530. + ;;
  28531. +
  28532. + sunos4*)
  28533. + if test "x$host_vendor" = xsequent; then
  28534. + # Use $CC to link under sequent, because it throws in some extra .o
  28535. + # files that make .init and .fini sections work.
  28536. + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  28537. + else
  28538. + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  28539. + fi
  28540. + hardcode_libdir_flag_spec_F77='-L$libdir'
  28541. + hardcode_direct_F77=yes
  28542. + hardcode_minus_L_F77=yes
  28543. + hardcode_shlibpath_var_F77=no
  28544. + ;;
  28545. +
  28546. + sysv4)
  28547. + case $host_vendor in
  28548. + sni)
  28549. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28550. + hardcode_direct_F77=yes # is this really true???
  28551. + ;;
  28552. + siemens)
  28553. + ## LD is ld it makes a PLAMLIB
  28554. + ## CC just makes a GrossModule.
  28555. + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  28556. + reload_cmds_F77='$CC -r -o $output$reload_objs'
  28557. + hardcode_direct_F77=no
  28558. + ;;
  28559. + motorola)
  28560. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28561. + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  28562. + ;;
  28563. + esac
  28564. + runpath_var='LD_RUN_PATH'
  28565. + hardcode_shlibpath_var_F77=no
  28566. + ;;
  28567. +
  28568. + sysv4.3*)
  28569. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28570. + hardcode_shlibpath_var_F77=no
  28571. + export_dynamic_flag_spec_F77='-Bexport'
  28572. + ;;
  28573. +
  28574. + sysv4*MP*)
  28575. + if test -d /usr/nec; then
  28576. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28577. + hardcode_shlibpath_var_F77=no
  28578. + runpath_var=LD_RUN_PATH
  28579. + hardcode_runpath_var=yes
  28580. + ld_shlibs_F77=yes
  28581. + fi
  28582. + ;;
  28583. +
  28584. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  28585. + no_undefined_flag_F77='${wl}-z,text'
  28586. + archive_cmds_need_lc_F77=no
  28587. + hardcode_shlibpath_var_F77=no
  28588. + runpath_var='LD_RUN_PATH'
  28589. +
  28590. + if test "$GCC" = yes; then
  28591. + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28592. + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28593. + else
  28594. + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28595. + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28596. + fi
  28597. + ;;
  28598. +
  28599. + sysv5* | sco3.2v5* | sco5v6*)
  28600. + # Note: We can NOT use -z defs as we might desire, because we do not
  28601. + # link with -lc, and that would cause any symbols used from libc to
  28602. + # always be unresolved, which means just about no library would
  28603. + # ever link correctly. If we're not using GNU ld we use -z text
  28604. + # though, which does catch some bad symbols but isn't as heavy-handed
  28605. + # as -z defs.
  28606. + no_undefined_flag_F77='${wl}-z,text'
  28607. + allow_undefined_flag_F77='${wl}-z,nodefs'
  28608. + archive_cmds_need_lc_F77=no
  28609. + hardcode_shlibpath_var_F77=no
  28610. + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  28611. + hardcode_libdir_separator_F77=':'
  28612. + link_all_deplibs_F77=yes
  28613. + export_dynamic_flag_spec_F77='${wl}-Bexport'
  28614. + runpath_var='LD_RUN_PATH'
  28615. +
  28616. + if test "$GCC" = yes; then
  28617. + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28618. + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28619. + else
  28620. + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28621. + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28622. + fi
  28623. + ;;
  28624. +
  28625. + uts4*)
  28626. + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28627. + hardcode_libdir_flag_spec_F77='-L$libdir'
  28628. + hardcode_shlibpath_var_F77=no
  28629. + ;;
  28630. +
  28631. + *)
  28632. + ld_shlibs_F77=no
  28633. + ;;
  28634. + esac
  28635. + fi
  28636. +
  28637. +{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  28638. +echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  28639. +test "$ld_shlibs_F77" = no && can_build_shared=no
  28640. +
  28641. +#
  28642. +# Do we need to explicitly link libc?
  28643. +#
  28644. +case "x$archive_cmds_need_lc_F77" in
  28645. +x|xyes)
  28646. + # Assume -lc should be added
  28647. + archive_cmds_need_lc_F77=yes
  28648. +
  28649. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  28650. + case $archive_cmds_F77 in
  28651. + *'~'*)
  28652. + # FIXME: we may have to deal with multi-command sequences.
  28653. + ;;
  28654. + '$CC '*)
  28655. + # Test whether the compiler implicitly links with -lc since on some
  28656. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28657. + # to ld, don't add -lc before -lgcc.
  28658. + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  28659. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  28660. + $rm conftest*
  28661. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  28662. +
  28663. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28664. + (eval $ac_compile) 2>&5
  28665. + ac_status=$?
  28666. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28667. + (exit $ac_status); } 2>conftest.err; then
  28668. + soname=conftest
  28669. + lib=conftest
  28670. + libobjs=conftest.$ac_objext
  28671. + deplibs=
  28672. + wl=$lt_prog_compiler_wl_F77
  28673. + pic_flag=$lt_prog_compiler_pic_F77
  28674. + compiler_flags=-v
  28675. + linker_flags=-v
  28676. + verstring=
  28677. + output_objdir=.
  28678. + libname=conftest
  28679. + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  28680. + allow_undefined_flag_F77=
  28681. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  28682. + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28683. + ac_status=$?
  28684. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28685. + (exit $ac_status); }
  28686. + then
  28687. + archive_cmds_need_lc_F77=no
  28688. + else
  28689. + archive_cmds_need_lc_F77=yes
  28690. + fi
  28691. + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  28692. + else
  28693. + cat conftest.err 1>&5
  28694. + fi
  28695. + $rm conftest*
  28696. + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  28697. +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  28698. + ;;
  28699. + esac
  28700. + fi
  28701. + ;;
  28702. +esac
  28703. +
  28704. +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  28705. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  28706. +library_names_spec=
  28707. +libname_spec='lib$name'
  28708. +soname_spec=
  28709. +shrext_cmds=".so"
  28710. +postinstall_cmds=
  28711. +postuninstall_cmds=
  28712. +finish_cmds=
  28713. +finish_eval=
  28714. +shlibpath_var=
  28715. +shlibpath_overrides_runpath=unknown
  28716. +version_type=none
  28717. +dynamic_linker="$host_os ld.so"
  28718. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28719. +if test "$GCC" = yes; then
  28720. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28721. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  28722. + # if the path contains ";" then we assume it to be the separator
  28723. + # otherwise default to the standard path separator (i.e. ":") - it is
  28724. + # assumed that no part of a normal pathname contains ";" but that should
  28725. + # okay in the real world where ";" in dirpaths is itself problematic.
  28726. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28727. + else
  28728. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28729. + fi
  28730. +else
  28731. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  28732. +fi
  28733. +need_lib_prefix=unknown
  28734. +hardcode_into_libs=no
  28735. +
  28736. +# when you set need_version to no, make sure it does not cause -set_version
  28737. +# flags to be left without arguments
  28738. +need_version=unknown
  28739. +
  28740. +case $host_os in
  28741. +aix3*)
  28742. + version_type=linux
  28743. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28744. + shlibpath_var=LIBPATH
  28745. +
  28746. + # AIX 3 has no versioning support, so we append a major version to the name.
  28747. + soname_spec='${libname}${release}${shared_ext}$major'
  28748. + ;;
  28749. +
  28750. +aix4* | aix5*)
  28751. + version_type=linux
  28752. + need_lib_prefix=no
  28753. + need_version=no
  28754. + hardcode_into_libs=yes
  28755. + if test "$host_cpu" = ia64; then
  28756. + # AIX 5 supports IA64
  28757. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  28758. + shlibpath_var=LD_LIBRARY_PATH
  28759. + else
  28760. + # With GCC up to 2.95.x, collect2 would create an import file
  28761. + # for dependence libraries. The import file would start with
  28762. + # the line `#! .'. This would cause the generated library to
  28763. + # depend on `.', always an invalid library. This was fixed in
  28764. + # development snapshots of GCC prior to 3.0.
  28765. + case $host_os in
  28766. + aix4 | aix4.[01] | aix4.[01].*)
  28767. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28768. + echo ' yes '
  28769. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28770. + :
  28771. + else
  28772. + can_build_shared=no
  28773. + fi
  28774. + ;;
  28775. + esac
  28776. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  28777. + # soname into executable. Probably we can add versioning support to
  28778. + # collect2, so additional links can be useful in future.
  28779. + if test "$aix_use_runtimelinking" = yes; then
  28780. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  28781. + # instead of lib<name>.a to let people know that these are not
  28782. + # typical AIX shared libraries.
  28783. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28784. + else
  28785. + # We preserve .a as extension for shared libraries through AIX4.2
  28786. + # and later when we are not doing run time linking.
  28787. + library_names_spec='${libname}${release}.a $libname.a'
  28788. + soname_spec='${libname}${release}${shared_ext}$major'
  28789. + fi
  28790. + shlibpath_var=LIBPATH
  28791. + fi
  28792. + ;;
  28793. +
  28794. +amigaos*)
  28795. + library_names_spec='$libname.ixlibrary $libname.a'
  28796. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28797. + 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'
  28798. + ;;
  28799. +
  28800. +beos*)
  28801. + library_names_spec='${libname}${shared_ext}'
  28802. + dynamic_linker="$host_os ld.so"
  28803. + shlibpath_var=LIBRARY_PATH
  28804. + ;;
  28805. +
  28806. +bsdi[45]*)
  28807. + version_type=linux
  28808. + need_version=no
  28809. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28810. + soname_spec='${libname}${release}${shared_ext}$major'
  28811. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  28812. + shlibpath_var=LD_LIBRARY_PATH
  28813. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  28814. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  28815. + # the default ld.so.conf also contains /usr/contrib/lib and
  28816. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  28817. + # libtool to hard-code these into programs
  28818. + ;;
  28819. +
  28820. +cygwin* | mingw* | pw32*)
  28821. + version_type=windows
  28822. + shrext_cmds=".dll"
  28823. + need_version=no
  28824. + need_lib_prefix=no
  28825. +
  28826. + case $GCC,$host_os in
  28827. + yes,cygwin* | yes,mingw* | yes,pw32*)
  28828. + library_names_spec='$libname.dll.a'
  28829. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28830. + postinstall_cmds='base_file=`basename \${file}`~
  28831. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  28832. + dldir=$destdir/`dirname \$dlpath`~
  28833. + test -d \$dldir || mkdir -p \$dldir~
  28834. + $install_prog $dir/$dlname \$dldir/$dlname~
  28835. + chmod a+x \$dldir/$dlname'
  28836. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28837. + dlpath=$dir/\$dldll~
  28838. + $rm \$dlpath'
  28839. + shlibpath_overrides_runpath=yes
  28840. +
  28841. + case $host_os in
  28842. + cygwin*)
  28843. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  28844. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28845. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28846. + ;;
  28847. + mingw*)
  28848. + # MinGW DLLs use traditional 'lib' prefix
  28849. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28850. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28851. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  28852. + # It is most probably a Windows format PATH printed by
  28853. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  28854. + # path with ; separators, and with drive letters. We can handle the
  28855. + # drive letters (cygwin fileutils understands them), so leave them,
  28856. + # especially as we might pass files found there to a mingw objdump,
  28857. + # which wouldn't understand a cygwinified path. Ahh.
  28858. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28859. + else
  28860. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28861. + fi
  28862. + ;;
  28863. + pw32*)
  28864. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  28865. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28866. + ;;
  28867. + esac
  28868. + ;;
  28869. +
  28870. + *)
  28871. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  28872. + ;;
  28873. + esac
  28874. + dynamic_linker='Win32 ld.exe'
  28875. + # FIXME: first we should search . and the directory the executable is in
  28876. + shlibpath_var=PATH
  28877. + ;;
  28878. +
  28879. +darwin* | rhapsody*)
  28880. + dynamic_linker="$host_os dyld"
  28881. + version_type=darwin
  28882. + need_lib_prefix=no
  28883. + need_version=no
  28884. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  28885. + soname_spec='${libname}${release}${major}$shared_ext'
  28886. + shlibpath_overrides_runpath=yes
  28887. + shlibpath_var=DYLD_LIBRARY_PATH
  28888. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  28889. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  28890. + if test "$GCC" = yes; then
  28891. + 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"`
  28892. + else
  28893. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  28894. + fi
  28895. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  28896. + ;;
  28897. +
  28898. +dgux*)
  28899. + version_type=linux
  28900. + need_lib_prefix=no
  28901. + need_version=no
  28902. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  28903. + soname_spec='${libname}${release}${shared_ext}$major'
  28904. + shlibpath_var=LD_LIBRARY_PATH
  28905. + ;;
  28906. +
  28907. +freebsd1*)
  28908. + dynamic_linker=no
  28909. + ;;
  28910. +
  28911. +kfreebsd*-gnu)
  28912. + version_type=linux
  28913. + need_lib_prefix=no
  28914. + need_version=no
  28915. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28916. + soname_spec='${libname}${release}${shared_ext}$major'
  28917. + shlibpath_var=LD_LIBRARY_PATH
  28918. + shlibpath_overrides_runpath=no
  28919. + hardcode_into_libs=yes
  28920. + dynamic_linker='GNU ld.so'
  28921. + ;;
  28922. +
  28923. +freebsd* | dragonfly*)
  28924. + # DragonFly does not have aout. When/if they implement a new
  28925. + # versioning mechanism, adjust this.
  28926. + if test -x /usr/bin/objformat; then
  28927. + objformat=`/usr/bin/objformat`
  28928. + else
  28929. + case $host_os in
  28930. + freebsd[123]*) objformat=aout ;;
  28931. + *) objformat=elf ;;
  28932. + esac
  28933. + fi
  28934. + version_type=freebsd-$objformat
  28935. + case $version_type in
  28936. + freebsd-elf*)
  28937. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28938. + need_version=no
  28939. + need_lib_prefix=no
  28940. + ;;
  28941. + freebsd-*)
  28942. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  28943. + need_version=yes
  28944. + ;;
  28945. + esac
  28946. + shlibpath_var=LD_LIBRARY_PATH
  28947. + case $host_os in
  28948. + freebsd2*)
  28949. + shlibpath_overrides_runpath=yes
  28950. + ;;
  28951. + freebsd3.[01]* | freebsdelf3.[01]*)
  28952. + shlibpath_overrides_runpath=yes
  28953. + hardcode_into_libs=yes
  28954. + ;;
  28955. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  28956. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  28957. + shlibpath_overrides_runpath=no
  28958. + hardcode_into_libs=yes
  28959. + ;;
  28960. + freebsd*) # from 4.6 on
  28961. + shlibpath_overrides_runpath=yes
  28962. + hardcode_into_libs=yes
  28963. + ;;
  28964. + esac
  28965. + ;;
  28966. +
  28967. +gnu*)
  28968. + version_type=linux
  28969. + need_lib_prefix=no
  28970. + need_version=no
  28971. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  28972. + soname_spec='${libname}${release}${shared_ext}$major'
  28973. + shlibpath_var=LD_LIBRARY_PATH
  28974. + hardcode_into_libs=yes
  28975. + ;;
  28976. +
  28977. +hpux9* | hpux10* | hpux11*)
  28978. + # Give a soname corresponding to the major version so that dld.sl refuses to
  28979. + # link against other versions.
  28980. + version_type=sunos
  28981. + need_lib_prefix=no
  28982. + need_version=no
  28983. + case $host_cpu in
  28984. + ia64*)
  28985. + shrext_cmds='.so'
  28986. + hardcode_into_libs=yes
  28987. + dynamic_linker="$host_os dld.so"
  28988. + shlibpath_var=LD_LIBRARY_PATH
  28989. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28990. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28991. + soname_spec='${libname}${release}${shared_ext}$major'
  28992. + if test "X$HPUX_IA64_MODE" = X32; then
  28993. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  28994. + else
  28995. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  28996. + fi
  28997. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28998. + ;;
  28999. + hppa*64*)
  29000. + shrext_cmds='.sl'
  29001. + hardcode_into_libs=yes
  29002. + dynamic_linker="$host_os dld.sl"
  29003. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  29004. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  29005. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29006. + soname_spec='${libname}${release}${shared_ext}$major'
  29007. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  29008. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  29009. + ;;
  29010. + *)
  29011. + shrext_cmds='.sl'
  29012. + dynamic_linker="$host_os dld.sl"
  29013. + shlibpath_var=SHLIB_PATH
  29014. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  29015. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29016. + soname_spec='${libname}${release}${shared_ext}$major'
  29017. + ;;
  29018. + esac
  29019. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  29020. + postinstall_cmds='chmod 555 $lib'
  29021. + ;;
  29022. +
  29023. +interix3*)
  29024. + version_type=linux
  29025. + need_lib_prefix=no
  29026. + need_version=no
  29027. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29028. + soname_spec='${libname}${release}${shared_ext}$major'
  29029. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  29030. + shlibpath_var=LD_LIBRARY_PATH
  29031. + shlibpath_overrides_runpath=no
  29032. + hardcode_into_libs=yes
  29033. + ;;
  29034. +
  29035. +irix5* | irix6* | nonstopux*)
  29036. + case $host_os in
  29037. + nonstopux*) version_type=nonstopux ;;
  29038. + *)
  29039. + if test "$lt_cv_prog_gnu_ld" = yes; then
  29040. + version_type=linux
  29041. + else
  29042. + version_type=irix
  29043. + fi ;;
  29044. + esac
  29045. + need_lib_prefix=no
  29046. + need_version=no
  29047. + soname_spec='${libname}${release}${shared_ext}$major'
  29048. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  29049. + case $host_os in
  29050. + irix5* | nonstopux*)
  29051. + libsuff= shlibsuff=
  29052. + ;;
  29053. + *)
  29054. + case $LD in # libtool.m4 will add one of these switches to LD
  29055. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  29056. + libsuff= shlibsuff= libmagic=32-bit;;
  29057. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  29058. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  29059. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  29060. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  29061. + *) libsuff= shlibsuff= libmagic=never-match;;
  29062. + esac
  29063. + ;;
  29064. + esac
  29065. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  29066. + shlibpath_overrides_runpath=no
  29067. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  29068. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  29069. + hardcode_into_libs=yes
  29070. + ;;
  29071. +
  29072. +# No shared lib support for Linux oldld, aout, or coff.
  29073. +linux*oldld* | linux*aout* | linux*coff*)
  29074. + dynamic_linker=no
  29075. + ;;
  29076. +
  29077. +# This must be Linux ELF.
  29078. +linux*)
  29079. + version_type=linux
  29080. + need_lib_prefix=no
  29081. + need_version=no
  29082. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29083. + soname_spec='${libname}${release}${shared_ext}$major'
  29084. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  29085. + shlibpath_var=LD_LIBRARY_PATH
  29086. + shlibpath_overrides_runpath=no
  29087. + # This implies no fast_install, which is unacceptable.
  29088. + # Some rework will be needed to allow for fast_install
  29089. + # before this can be enabled.
  29090. + hardcode_into_libs=yes
  29091. +
  29092. + # Append ld.so.conf contents to the search path
  29093. + if test -f /etc/ld.so.conf; then
  29094. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  29095. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  29096. + fi
  29097. +
  29098. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  29099. + # powerpc, because MkLinux only supported shared libraries with the
  29100. + # GNU dynamic linker. Since this was broken with cross compilers,
  29101. + # most powerpc-linux boxes support dynamic linking these days and
  29102. + # people can always --disable-shared, the test was removed, and we
  29103. + # assume the GNU/Linux dynamic linker is in use.
  29104. + dynamic_linker='GNU/Linux ld.so'
  29105. + ;;
  29106. +
  29107. +knetbsd*-gnu)
  29108. + version_type=linux
  29109. + need_lib_prefix=no
  29110. + need_version=no
  29111. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29112. + soname_spec='${libname}${release}${shared_ext}$major'
  29113. + shlibpath_var=LD_LIBRARY_PATH
  29114. + shlibpath_overrides_runpath=no
  29115. + hardcode_into_libs=yes
  29116. + dynamic_linker='GNU ld.so'
  29117. + ;;
  29118. +
  29119. +netbsd*)
  29120. + version_type=sunos
  29121. + need_lib_prefix=no
  29122. + need_version=no
  29123. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29124. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29125. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29126. + dynamic_linker='NetBSD (a.out) ld.so'
  29127. + else
  29128. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  29129. + soname_spec='${libname}${release}${shared_ext}$major'
  29130. + dynamic_linker='NetBSD ld.elf_so'
  29131. + fi
  29132. + shlibpath_var=LD_LIBRARY_PATH
  29133. + shlibpath_overrides_runpath=yes
  29134. + hardcode_into_libs=yes
  29135. + ;;
  29136. +
  29137. +newsos6)
  29138. + version_type=linux
  29139. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29140. + shlibpath_var=LD_LIBRARY_PATH
  29141. + shlibpath_overrides_runpath=yes
  29142. + ;;
  29143. +
  29144. +nto-qnx*)
  29145. + version_type=linux
  29146. + need_lib_prefix=no
  29147. + need_version=no
  29148. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29149. + soname_spec='${libname}${release}${shared_ext}$major'
  29150. + shlibpath_var=LD_LIBRARY_PATH
  29151. + shlibpath_overrides_runpath=yes
  29152. + ;;
  29153. +
  29154. +openbsd*)
  29155. + version_type=sunos
  29156. + sys_lib_dlsearch_path_spec="/usr/lib"
  29157. + need_lib_prefix=no
  29158. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  29159. + case $host_os in
  29160. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  29161. + *) need_version=no ;;
  29162. + esac
  29163. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29164. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29165. + shlibpath_var=LD_LIBRARY_PATH
  29166. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29167. + case $host_os in
  29168. + openbsd2.[89] | openbsd2.[89].*)
  29169. + shlibpath_overrides_runpath=no
  29170. + ;;
  29171. + *)
  29172. + shlibpath_overrides_runpath=yes
  29173. + ;;
  29174. + esac
  29175. + else
  29176. + shlibpath_overrides_runpath=yes
  29177. + fi
  29178. + ;;
  29179. +
  29180. +os2*)
  29181. + libname_spec='$name'
  29182. + shrext_cmds=".dll"
  29183. + need_lib_prefix=no
  29184. + library_names_spec='$libname${shared_ext} $libname.a'
  29185. + dynamic_linker='OS/2 ld.exe'
  29186. + shlibpath_var=LIBPATH
  29187. + ;;
  29188. +
  29189. +osf3* | osf4* | osf5*)
  29190. + version_type=osf
  29191. + need_lib_prefix=no
  29192. + need_version=no
  29193. + soname_spec='${libname}${release}${shared_ext}$major'
  29194. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29195. + shlibpath_var=LD_LIBRARY_PATH
  29196. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  29197. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  29198. + ;;
  29199. +
  29200. +solaris*)
  29201. + version_type=linux
  29202. + need_lib_prefix=no
  29203. + need_version=no
  29204. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29205. + soname_spec='${libname}${release}${shared_ext}$major'
  29206. + shlibpath_var=LD_LIBRARY_PATH
  29207. + shlibpath_overrides_runpath=yes
  29208. + hardcode_into_libs=yes
  29209. + # ldd complains unless libraries are executable
  29210. + postinstall_cmds='chmod +x $lib'
  29211. + ;;
  29212. +
  29213. +sunos4*)
  29214. + version_type=sunos
  29215. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29216. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  29217. + shlibpath_var=LD_LIBRARY_PATH
  29218. + shlibpath_overrides_runpath=yes
  29219. + if test "$with_gnu_ld" = yes; then
  29220. + need_lib_prefix=no
  29221. + fi
  29222. + need_version=yes
  29223. + ;;
  29224. +
  29225. +sysv4 | sysv4.3*)
  29226. + version_type=linux
  29227. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29228. + soname_spec='${libname}${release}${shared_ext}$major'
  29229. + shlibpath_var=LD_LIBRARY_PATH
  29230. + case $host_vendor in
  29231. + sni)
  29232. + shlibpath_overrides_runpath=no
  29233. + need_lib_prefix=no
  29234. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  29235. + runpath_var=LD_RUN_PATH
  29236. + ;;
  29237. + siemens)
  29238. + need_lib_prefix=no
  29239. + ;;
  29240. + motorola)
  29241. + need_lib_prefix=no
  29242. + need_version=no
  29243. + shlibpath_overrides_runpath=no
  29244. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  29245. + ;;
  29246. + esac
  29247. + ;;
  29248. +
  29249. +sysv4*MP*)
  29250. + if test -d /usr/nec ;then
  29251. + version_type=linux
  29252. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  29253. + soname_spec='$libname${shared_ext}.$major'
  29254. + shlibpath_var=LD_LIBRARY_PATH
  29255. + fi
  29256. + ;;
  29257. +
  29258. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  29259. + version_type=freebsd-elf
  29260. + need_lib_prefix=no
  29261. + need_version=no
  29262. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29263. + soname_spec='${libname}${release}${shared_ext}$major'
  29264. + shlibpath_var=LD_LIBRARY_PATH
  29265. + hardcode_into_libs=yes
  29266. + if test "$with_gnu_ld" = yes; then
  29267. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  29268. + shlibpath_overrides_runpath=no
  29269. + else
  29270. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  29271. + shlibpath_overrides_runpath=yes
  29272. + case $host_os in
  29273. + sco3.2v5*)
  29274. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  29275. + ;;
  29276. + esac
  29277. + fi
  29278. + sys_lib_dlsearch_path_spec='/usr/lib'
  29279. + ;;
  29280. +
  29281. +uts4*)
  29282. + version_type=linux
  29283. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29284. + soname_spec='${libname}${release}${shared_ext}$major'
  29285. + shlibpath_var=LD_LIBRARY_PATH
  29286. + ;;
  29287. +
  29288. +*)
  29289. + dynamic_linker=no
  29290. + ;;
  29291. +esac
  29292. +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  29293. +echo "${ECHO_T}$dynamic_linker" >&6; }
  29294. +test "$dynamic_linker" = no && can_build_shared=no
  29295. +
  29296. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  29297. +if test "$GCC" = yes; then
  29298. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  29299. +fi
  29300. +
  29301. +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  29302. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  29303. +hardcode_action_F77=
  29304. +if test -n "$hardcode_libdir_flag_spec_F77" || \
  29305. + test -n "$runpath_var_F77" || \
  29306. + test "X$hardcode_automatic_F77" = "Xyes" ; then
  29307. +
  29308. + # We can hardcode non-existant directories.
  29309. + if test "$hardcode_direct_F77" != no &&
  29310. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  29311. + # have to relink, otherwise we might link with an installed library
  29312. + # when we should be linking with a yet-to-be-installed one
  29313. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  29314. + test "$hardcode_minus_L_F77" != no; then
  29315. + # Linking always hardcodes the temporary library directory.
  29316. + hardcode_action_F77=relink
  29317. + else
  29318. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  29319. + hardcode_action_F77=immediate
  29320. + fi
  29321. +else
  29322. + # We cannot hardcode anything, or else we can only hardcode existing
  29323. + # directories.
  29324. + hardcode_action_F77=unsupported
  29325. +fi
  29326. +{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  29327. +echo "${ECHO_T}$hardcode_action_F77" >&6; }
  29328. +
  29329. +if test "$hardcode_action_F77" = relink; then
  29330. + # Fast installation is not supported
  29331. + enable_fast_install=no
  29332. +elif test "$shlibpath_overrides_runpath" = yes ||
  29333. + test "$enable_shared" = no; then
  29334. + # Fast installation is not necessary
  29335. + enable_fast_install=needless
  29336. +fi
  29337. +
  29338. +
  29339. +# The else clause should only fire when bootstrapping the
  29340. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  29341. +# with your package, and you will get complaints that there are
  29342. +# no rules to generate ltmain.sh.
  29343. +if test -f "$ltmain"; then
  29344. + # See if we are running on zsh, and set the options which allow our commands through
  29345. + # without removal of \ escapes.
  29346. + if test -n "${ZSH_VERSION+set}" ; then
  29347. + setopt NO_GLOB_SUBST
  29348. + fi
  29349. + # Now quote all the things that may contain metacharacters while being
  29350. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  29351. + # variables and quote the copies for generation of the libtool script.
  29352. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  29353. + SED SHELL STRIP \
  29354. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  29355. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  29356. + deplibs_check_method reload_flag reload_cmds need_locks \
  29357. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  29358. + lt_cv_sys_global_symbol_to_c_name_address \
  29359. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  29360. + old_postinstall_cmds old_postuninstall_cmds \
  29361. + compiler_F77 \
  29362. + CC_F77 \
  29363. + LD_F77 \
  29364. + lt_prog_compiler_wl_F77 \
  29365. + lt_prog_compiler_pic_F77 \
  29366. + lt_prog_compiler_static_F77 \
  29367. + lt_prog_compiler_no_builtin_flag_F77 \
  29368. + export_dynamic_flag_spec_F77 \
  29369. + thread_safe_flag_spec_F77 \
  29370. + whole_archive_flag_spec_F77 \
  29371. + enable_shared_with_static_runtimes_F77 \
  29372. + old_archive_cmds_F77 \
  29373. + old_archive_from_new_cmds_F77 \
  29374. + predep_objects_F77 \
  29375. + postdep_objects_F77 \
  29376. + predeps_F77 \
  29377. + postdeps_F77 \
  29378. + compiler_lib_search_path_F77 \
  29379. + archive_cmds_F77 \
  29380. + archive_expsym_cmds_F77 \
  29381. + postinstall_cmds_F77 \
  29382. + postuninstall_cmds_F77 \
  29383. + old_archive_from_expsyms_cmds_F77 \
  29384. + allow_undefined_flag_F77 \
  29385. + no_undefined_flag_F77 \
  29386. + export_symbols_cmds_F77 \
  29387. + hardcode_libdir_flag_spec_F77 \
  29388. + hardcode_libdir_flag_spec_ld_F77 \
  29389. + hardcode_libdir_separator_F77 \
  29390. + hardcode_automatic_F77 \
  29391. + module_cmds_F77 \
  29392. + module_expsym_cmds_F77 \
  29393. + lt_cv_prog_compiler_c_o_F77 \
  29394. + exclude_expsyms_F77 \
  29395. + include_expsyms_F77; do
  29396. +
  29397. + case $var in
  29398. + old_archive_cmds_F77 | \
  29399. + old_archive_from_new_cmds_F77 | \
  29400. + archive_cmds_F77 | \
  29401. + archive_expsym_cmds_F77 | \
  29402. + module_cmds_F77 | \
  29403. + module_expsym_cmds_F77 | \
  29404. + old_archive_from_expsyms_cmds_F77 | \
  29405. + export_symbols_cmds_F77 | \
  29406. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  29407. + postinstall_cmds | postuninstall_cmds | \
  29408. + old_postinstall_cmds | old_postuninstall_cmds | \
  29409. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  29410. + # Double-quote double-evaled strings.
  29411. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  29412. + ;;
  29413. + *)
  29414. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  29415. + ;;
  29416. + esac
  29417. + done
  29418. +
  29419. + case $lt_echo in
  29420. + *'\$0 --fallback-echo"')
  29421. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  29422. + ;;
  29423. + esac
  29424. +
  29425. +cfgfile="$ofile"
  29426. +
  29427. + cat <<__EOF__ >> "$cfgfile"
  29428. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  29429. +
  29430. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  29431. +
  29432. +# Shell to use when invoking shell scripts.
  29433. +SHELL=$lt_SHELL
  29434. +
  29435. +# Whether or not to build shared libraries.
  29436. +build_libtool_libs=$enable_shared
  29437. +
  29438. +# Whether or not to build static libraries.
  29439. +build_old_libs=$enable_static
  29440. +
  29441. +# Whether or not to add -lc for building shared libraries.
  29442. +build_libtool_need_lc=$archive_cmds_need_lc_F77
  29443. +
  29444. +# Whether or not to disallow shared libs when runtime libs are static
  29445. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  29446. +
  29447. +# Whether or not to optimize for fast installation.
  29448. +fast_install=$enable_fast_install
  29449. +
  29450. +# The host system.
  29451. +host_alias=$host_alias
  29452. +host=$host
  29453. +host_os=$host_os
  29454. +
  29455. +# The build system.
  29456. +build_alias=$build_alias
  29457. +build=$build
  29458. +build_os=$build_os
  29459. +
  29460. +# An echo program that does not interpret backslashes.
  29461. +echo=$lt_echo
  29462. +
  29463. +# The archiver.
  29464. +AR=$lt_AR
  29465. +AR_FLAGS=$lt_AR_FLAGS
  29466. +
  29467. +# A C compiler.
  29468. +LTCC=$lt_LTCC
  29469. +
  29470. +# LTCC compiler flags.
  29471. +LTCFLAGS=$lt_LTCFLAGS
  29472. +
  29473. +# A language-specific compiler.
  29474. +CC=$lt_compiler_F77
  29475. +
  29476. +# Is the compiler the GNU C compiler?
  29477. +with_gcc=$GCC_F77
  29478. +
  29479. +# An ERE matcher.
  29480. +EGREP=$lt_EGREP
  29481. +
  29482. +# The linker used to build libraries.
  29483. +LD=$lt_LD_F77
  29484. +
  29485. +# Whether we need hard or soft links.
  29486. +LN_S=$lt_LN_S
  29487. +
  29488. +# A BSD-compatible nm program.
  29489. +NM=$lt_NM
  29490. +
  29491. +# A symbol stripping program
  29492. +STRIP=$lt_STRIP
  29493. +
  29494. +# Used to examine libraries when file_magic_cmd begins "file"
  29495. +MAGIC_CMD=$MAGIC_CMD
  29496. +
  29497. +# Used on cygwin: DLL creation program.
  29498. +DLLTOOL="$DLLTOOL"
  29499. +
  29500. +# Used on cygwin: object dumper.
  29501. +OBJDUMP="$OBJDUMP"
  29502. +
  29503. +# Used on cygwin: assembler.
  29504. +AS="$AS"
  29505. +
  29506. +# The name of the directory that contains temporary libtool files.
  29507. +objdir=$objdir
  29508. +
  29509. +# How to create reloadable object files.
  29510. +reload_flag=$lt_reload_flag
  29511. +reload_cmds=$lt_reload_cmds
  29512. +
  29513. +# How to pass a linker flag through the compiler.
  29514. +wl=$lt_lt_prog_compiler_wl_F77
  29515. +
  29516. +# Object file suffix (normally "o").
  29517. +objext="$ac_objext"
  29518. +
  29519. +# Old archive suffix (normally "a").
  29520. +libext="$libext"
  29521. +
  29522. +# Shared library suffix (normally ".so").
  29523. +shrext_cmds='$shrext_cmds'
  29524. +
  29525. +# Executable file suffix (normally "").
  29526. +exeext="$exeext"
  29527. +
  29528. +# Additional compiler flags for building library objects.
  29529. +pic_flag=$lt_lt_prog_compiler_pic_F77
  29530. +pic_mode=$pic_mode
  29531. +
  29532. +# What is the maximum length of a command?
  29533. +max_cmd_len=$lt_cv_sys_max_cmd_len
  29534. +
  29535. +# Does compiler simultaneously support -c and -o options?
  29536. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  29537. +
  29538. +# Must we lock files when doing compilation?
  29539. +need_locks=$lt_need_locks
  29540. +
  29541. +# Do we need the lib prefix for modules?
  29542. +need_lib_prefix=$need_lib_prefix
  29543. +
  29544. +# Do we need a version for libraries?
  29545. +need_version=$need_version
  29546. +
  29547. +# Whether dlopen is supported.
  29548. +dlopen_support=$enable_dlopen
  29549. +
  29550. +# Whether dlopen of programs is supported.
  29551. +dlopen_self=$enable_dlopen_self
  29552. +
  29553. +# Whether dlopen of statically linked programs is supported.
  29554. +dlopen_self_static=$enable_dlopen_self_static
  29555. +
  29556. +# Compiler flag to prevent dynamic linking.
  29557. +link_static_flag=$lt_lt_prog_compiler_static_F77
  29558. +
  29559. +# Compiler flag to turn off builtin functions.
  29560. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  29561. +
  29562. +# Compiler flag to allow reflexive dlopens.
  29563. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  29564. +
  29565. +# Compiler flag to generate shared objects directly from archives.
  29566. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  29567. +
  29568. +# Compiler flag to generate thread-safe objects.
  29569. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  29570. +
  29571. +# Library versioning type.
  29572. +version_type=$version_type
  29573. +
  29574. +# Format of library name prefix.
  29575. +libname_spec=$lt_libname_spec
  29576. +
  29577. +# List of archive names. First name is the real one, the rest are links.
  29578. +# The last name is the one that the linker finds with -lNAME.
  29579. +library_names_spec=$lt_library_names_spec
  29580. +
  29581. +# The coded name of the library, if different from the real name.
  29582. +soname_spec=$lt_soname_spec
  29583. +
  29584. +# Commands used to build and install an old-style archive.
  29585. +RANLIB=$lt_RANLIB
  29586. +old_archive_cmds=$lt_old_archive_cmds_F77
  29587. +old_postinstall_cmds=$lt_old_postinstall_cmds
  29588. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  29589. +
  29590. +# Create an old-style archive from a shared archive.
  29591. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  29592. +
  29593. +# Create a temporary old-style archive to link instead of a shared archive.
  29594. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  29595. +
  29596. +# Commands used to build and install a shared archive.
  29597. +archive_cmds=$lt_archive_cmds_F77
  29598. +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  29599. +postinstall_cmds=$lt_postinstall_cmds
  29600. +postuninstall_cmds=$lt_postuninstall_cmds
  29601. +
  29602. +# Commands used to build a loadable module (assumed same as above if empty)
  29603. +module_cmds=$lt_module_cmds_F77
  29604. +module_expsym_cmds=$lt_module_expsym_cmds_F77
  29605. +
  29606. +# Commands to strip libraries.
  29607. +old_striplib=$lt_old_striplib
  29608. +striplib=$lt_striplib
  29609. +
  29610. +# Dependencies to place before the objects being linked to create a
  29611. +# shared library.
  29612. +predep_objects=$lt_predep_objects_F77
  29613. +
  29614. +# Dependencies to place after the objects being linked to create a
  29615. +# shared library.
  29616. +postdep_objects=$lt_postdep_objects_F77
  29617. +
  29618. +# Dependencies to place before the objects being linked to create a
  29619. +# shared library.
  29620. +predeps=$lt_predeps_F77
  29621. +
  29622. +# Dependencies to place after the objects being linked to create a
  29623. +# shared library.
  29624. +postdeps=$lt_postdeps_F77
  29625. +
  29626. +# The library search path used internally by the compiler when linking
  29627. +# a shared library.
  29628. +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  29629. +
  29630. +# Method to check whether dependent libraries are shared objects.
  29631. +deplibs_check_method=$lt_deplibs_check_method
  29632. +
  29633. +# Command to use when deplibs_check_method == file_magic.
  29634. +file_magic_cmd=$lt_file_magic_cmd
  29635. +
  29636. +# Flag that allows shared libraries with undefined symbols to be built.
  29637. +allow_undefined_flag=$lt_allow_undefined_flag_F77
  29638. +
  29639. +# Flag that forces no undefined symbols.
  29640. +no_undefined_flag=$lt_no_undefined_flag_F77
  29641. +
  29642. +# Commands used to finish a libtool library installation in a directory.
  29643. +finish_cmds=$lt_finish_cmds
  29644. +
  29645. +# Same as above, but a single script fragment to be evaled but not shown.
  29646. +finish_eval=$lt_finish_eval
  29647. +
  29648. +# Take the output of nm and produce a listing of raw symbols and C names.
  29649. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  29650. +
  29651. +# Transform the output of nm in a proper C declaration
  29652. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  29653. +
  29654. +# Transform the output of nm in a C name address pair
  29655. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  29656. +
  29657. +# This is the shared library runtime path variable.
  29658. +runpath_var=$runpath_var
  29659. +
  29660. +# This is the shared library path variable.
  29661. +shlibpath_var=$shlibpath_var
  29662. +
  29663. +# Is shlibpath searched before the hard-coded library search path?
  29664. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  29665. +
  29666. +# How to hardcode a shared library path into an executable.
  29667. +hardcode_action=$hardcode_action_F77
  29668. +
  29669. +# Whether we should hardcode library paths into libraries.
  29670. +hardcode_into_libs=$hardcode_into_libs
  29671. +
  29672. +# Flag to hardcode \$libdir into a binary during linking.
  29673. +# This must work even if \$libdir does not exist.
  29674. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  29675. +
  29676. +# If ld is used when linking, flag to hardcode \$libdir into
  29677. +# a binary during linking. This must work even if \$libdir does
  29678. +# not exist.
  29679. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  29680. +
  29681. +# Whether we need a single -rpath flag with a separated argument.
  29682. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  29683. +
  29684. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  29685. +# resulting binary.
  29686. +hardcode_direct=$hardcode_direct_F77
  29687. +
  29688. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  29689. +# resulting binary.
  29690. +hardcode_minus_L=$hardcode_minus_L_F77
  29691. +
  29692. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  29693. +# the resulting binary.
  29694. +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  29695. +
  29696. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  29697. +# and all subsequent libraries and executables linked against it.
  29698. +hardcode_automatic=$hardcode_automatic_F77
  29699. +
  29700. +# Variables whose values should be saved in libtool wrapper scripts and
  29701. +# restored at relink time.
  29702. +variables_saved_for_relink="$variables_saved_for_relink"
  29703. +
  29704. +# Whether libtool must link a program against all its dependency libraries.
  29705. +link_all_deplibs=$link_all_deplibs_F77
  29706. +
  29707. +# Compile-time system search path for libraries
  29708. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  29709. +
  29710. +# Run-time system search path for libraries
  29711. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  29712. +
  29713. +# Fix the shell variable \$srcfile for the compiler.
  29714. +fix_srcfile_path="$fix_srcfile_path_F77"
  29715. +
  29716. +# Set to yes if exported symbols are required.
  29717. +always_export_symbols=$always_export_symbols_F77
  29718. +
  29719. +# The commands to list exported symbols.
  29720. +export_symbols_cmds=$lt_export_symbols_cmds_F77
  29721. +
  29722. +# The commands to extract the exported symbol list from a shared archive.
  29723. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  29724. +
  29725. +# Symbols that should not be listed in the preloaded symbols.
  29726. +exclude_expsyms=$lt_exclude_expsyms_F77
  29727. +
  29728. +# Symbols that must always be exported.
  29729. +include_expsyms=$lt_include_expsyms_F77
  29730. +
  29731. +# ### END LIBTOOL TAG CONFIG: $tagname
  29732. +
  29733. +__EOF__
  29734. +
  29735. +
  29736. +else
  29737. + # If there is no Makefile yet, we rely on a make rule to execute
  29738. + # `config.status --recheck' to rerun these tests and create the
  29739. + # libtool script then.
  29740. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  29741. + if test -f "$ltmain_in"; then
  29742. + test -f Makefile && make "$ltmain"
  29743. + fi
  29744. +fi
  29745. +
  29746. +
  29747. +ac_ext=c
  29748. +ac_cpp='$CPP $CPPFLAGS'
  29749. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29750. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29751. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29752. +
  29753. +CC="$lt_save_CC"
  29754. +
  29755. + else
  29756. + tagname=""
  29757. + fi
  29758. + ;;
  29759. +
  29760. + GCJ)
  29761. + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  29762. +
  29763. +
  29764. +# Source file extension for Java test sources.
  29765. +ac_ext=java
  29766. +
  29767. +# Object file extension for compiled Java test sources.
  29768. +objext=o
  29769. +objext_GCJ=$objext
  29770. +
  29771. +# Code to be used in simple compile tests
  29772. +lt_simple_compile_test_code="class foo {}\n"
  29773. +
  29774. +# Code to be used in simple link tests
  29775. +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  29776. +
  29777. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  29778. +
  29779. +# If no C compiler was specified, use CC.
  29780. +LTCC=${LTCC-"$CC"}
  29781. +
  29782. +# If no C compiler flags were specified, use CFLAGS.
  29783. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  29784. +
  29785. +# Allow CC to be a program name with arguments.
  29786. +compiler=$CC
  29787. +
  29788. +
  29789. +# save warnings/boilerplate of simple test code
  29790. +ac_outfile=conftest.$ac_objext
  29791. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  29792. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29793. +_lt_compiler_boilerplate=`cat conftest.err`
  29794. +$rm conftest*
  29795. +
  29796. +ac_outfile=conftest.$ac_objext
  29797. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  29798. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  29799. +_lt_linker_boilerplate=`cat conftest.err`
  29800. +$rm conftest*
  29801. +
  29802. +
  29803. +# Allow CC to be a program name with arguments.
  29804. +lt_save_CC="$CC"
  29805. +CC=${GCJ-"gcj"}
  29806. +compiler=$CC
  29807. +compiler_GCJ=$CC
  29808. +for cc_temp in $compiler""; do
  29809. + case $cc_temp in
  29810. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  29811. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  29812. + \-*) ;;
  29813. + *) break;;
  29814. + esac
  29815. +done
  29816. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  29817. +
  29818. +
  29819. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  29820. +archive_cmds_need_lc_GCJ=no
  29821. +
  29822. +old_archive_cmds_GCJ=$old_archive_cmds
  29823. +
  29824. +
  29825. +lt_prog_compiler_no_builtin_flag_GCJ=
  29826. +
  29827. +if test "$GCC" = yes; then
  29828. + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  29829. +
  29830. +
  29831. +{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  29832. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  29833. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  29834. + echo $ECHO_N "(cached) $ECHO_C" >&6
  29835. +else
  29836. + lt_cv_prog_compiler_rtti_exceptions=no
  29837. + ac_outfile=conftest.$ac_objext
  29838. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  29839. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  29840. + # Insert the option either (1) after the last *FLAGS variable, or
  29841. + # (2) before a word containing "conftest.", or (3) at the end.
  29842. + # Note that $ac_compile itself does not contain backslashes and begins
  29843. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  29844. + # The option is referenced via a variable to avoid confusing sed.
  29845. + lt_compile=`echo "$ac_compile" | $SED \
  29846. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  29847. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  29848. + -e 's:$: $lt_compiler_flag:'`
  29849. + (eval echo "\"\$as_me:16188: $lt_compile\"" >&5)
  29850. + (eval "$lt_compile" 2>conftest.err)
  29851. + ac_status=$?
  29852. + cat conftest.err >&5
  29853. + echo "$as_me:16192: \$? = $ac_status" >&5
  29854. + if (exit $ac_status) && test -s "$ac_outfile"; then
  29855. + # The compiler can only warn and ignore the option if not recognized
  29856. + # So say no if there are warnings other than the usual output.
  29857. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  29858. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  29859. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  29860. + lt_cv_prog_compiler_rtti_exceptions=yes
  29861. + fi
  29862. + fi
  29863. + $rm conftest*
  29864. +
  29865. +fi
  29866. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  29867. +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  29868. +
  29869. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  29870. + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  29871. +else
  29872. + :
  29873. +fi
  29874. +
  29875. +fi
  29876. +
  29877. +lt_prog_compiler_wl_GCJ=
  29878. +lt_prog_compiler_pic_GCJ=
  29879. +lt_prog_compiler_static_GCJ=
  29880. +
  29881. +{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  29882. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  29883. +
  29884. + if test "$GCC" = yes; then
  29885. + lt_prog_compiler_wl_GCJ='-Wl,'
  29886. + lt_prog_compiler_static_GCJ='-static'
  29887. +
  29888. + case $host_os in
  29889. + aix*)
  29890. + # All AIX code is PIC.
  29891. + if test "$host_cpu" = ia64; then
  29892. + # AIX 5 now supports IA64 processor
  29893. + lt_prog_compiler_static_GCJ='-Bstatic'
  29894. + fi
  29895. + ;;
  29896. +
  29897. + amigaos*)
  29898. + # FIXME: we need at least 68020 code to build shared libraries, but
  29899. + # adding the `-m68020' flag to GCC prevents building anything better,
  29900. + # like `-m68040'.
  29901. + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  29902. + ;;
  29903. +
  29904. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  29905. + # PIC is the default for these OSes.
  29906. + ;;
  29907. +
  29908. + mingw* | pw32* | os2*)
  29909. + # This hack is so that the source file can tell whether it is being
  29910. + # built for inclusion in a dll (and should export symbols for example).
  29911. + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  29912. + ;;
  29913. +
  29914. + darwin* | rhapsody*)
  29915. + # PIC is the default on this platform
  29916. + # Common symbols not allowed in MH_DYLIB files
  29917. + lt_prog_compiler_pic_GCJ='-fno-common'
  29918. + ;;
  29919. +
  29920. + interix3*)
  29921. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  29922. + # Instead, we relocate shared libraries at runtime.
  29923. + ;;
  29924. +
  29925. + msdosdjgpp*)
  29926. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  29927. + # on systems that don't support them.
  29928. + lt_prog_compiler_can_build_shared_GCJ=no
  29929. + enable_shared=no
  29930. + ;;
  29931. +
  29932. + sysv4*MP*)
  29933. + if test -d /usr/nec; then
  29934. + lt_prog_compiler_pic_GCJ=-Kconform_pic
  29935. + fi
  29936. + ;;
  29937. +
  29938. + hpux*)
  29939. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29940. + # not for PA HP-UX.
  29941. + case $host_cpu in
  29942. + hppa*64*|ia64*)
  29943. + # +Z the default
  29944. + ;;
  29945. + *)
  29946. + lt_prog_compiler_pic_GCJ='-fPIC'
  29947. + ;;
  29948. + esac
  29949. + ;;
  29950. +
  29951. + *)
  29952. + lt_prog_compiler_pic_GCJ='-fPIC'
  29953. + ;;
  29954. + esac
  29955. + else
  29956. + # PORTME Check for flag to pass linker flags through the system compiler.
  29957. + case $host_os in
  29958. + aix*)
  29959. + lt_prog_compiler_wl_GCJ='-Wl,'
  29960. + if test "$host_cpu" = ia64; then
  29961. + # AIX 5 now supports IA64 processor
  29962. + lt_prog_compiler_static_GCJ='-Bstatic'
  29963. + else
  29964. + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  29965. + fi
  29966. + ;;
  29967. + darwin*)
  29968. + # PIC is the default on this platform
  29969. + # Common symbols not allowed in MH_DYLIB files
  29970. + case $cc_basename in
  29971. + xlc*)
  29972. + lt_prog_compiler_pic_GCJ='-qnocommon'
  29973. + lt_prog_compiler_wl_GCJ='-Wl,'
  29974. + ;;
  29975. + esac
  29976. + ;;
  29977. +
  29978. + mingw* | pw32* | os2*)
  29979. + # This hack is so that the source file can tell whether it is being
  29980. + # built for inclusion in a dll (and should export symbols for example).
  29981. + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  29982. + ;;
  29983. +
  29984. + hpux9* | hpux10* | hpux11*)
  29985. + lt_prog_compiler_wl_GCJ='-Wl,'
  29986. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  29987. + # not for PA HP-UX.
  29988. + case $host_cpu in
  29989. + hppa*64*|ia64*)
  29990. + # +Z the default
  29991. + ;;
  29992. + *)
  29993. + lt_prog_compiler_pic_GCJ='+Z'
  29994. + ;;
  29995. + esac
  29996. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  29997. + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  29998. + ;;
  29999. +
  30000. + irix5* | irix6* | nonstopux*)
  30001. + lt_prog_compiler_wl_GCJ='-Wl,'
  30002. + # PIC (with -KPIC) is the default.
  30003. + lt_prog_compiler_static_GCJ='-non_shared'
  30004. + ;;
  30005. +
  30006. + newsos6)
  30007. + lt_prog_compiler_pic_GCJ='-KPIC'
  30008. + lt_prog_compiler_static_GCJ='-Bstatic'
  30009. + ;;
  30010. +
  30011. + linux*)
  30012. + case $cc_basename in
  30013. + icc* | ecc*)
  30014. + lt_prog_compiler_wl_GCJ='-Wl,'
  30015. + lt_prog_compiler_pic_GCJ='-KPIC'
  30016. + lt_prog_compiler_static_GCJ='-static'
  30017. + ;;
  30018. + pgcc* | pgf77* | pgf90* | pgf95*)
  30019. + # Portland Group compilers (*not* the Pentium gcc compiler,
  30020. + # which looks to be a dead project)
  30021. + lt_prog_compiler_wl_GCJ='-Wl,'
  30022. + lt_prog_compiler_pic_GCJ='-fpic'
  30023. + lt_prog_compiler_static_GCJ='-Bstatic'
  30024. + ;;
  30025. + ccc*)
  30026. + lt_prog_compiler_wl_GCJ='-Wl,'
  30027. + # All Alpha code is PIC.
  30028. + lt_prog_compiler_static_GCJ='-non_shared'
  30029. + ;;
  30030. + esac
  30031. + ;;
  30032. +
  30033. + osf3* | osf4* | osf5*)
  30034. + lt_prog_compiler_wl_GCJ='-Wl,'
  30035. + # All OSF/1 code is PIC.
  30036. + lt_prog_compiler_static_GCJ='-non_shared'
  30037. + ;;
  30038. +
  30039. + solaris*)
  30040. + lt_prog_compiler_pic_GCJ='-KPIC'
  30041. + lt_prog_compiler_static_GCJ='-Bstatic'
  30042. + case $cc_basename in
  30043. + f77* | f90* | f95*)
  30044. + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  30045. + *)
  30046. + lt_prog_compiler_wl_GCJ='-Wl,';;
  30047. + esac
  30048. + ;;
  30049. +
  30050. + sunos4*)
  30051. + lt_prog_compiler_wl_GCJ='-Qoption ld '
  30052. + lt_prog_compiler_pic_GCJ='-PIC'
  30053. + lt_prog_compiler_static_GCJ='-Bstatic'
  30054. + ;;
  30055. +
  30056. + sysv4 | sysv4.2uw2* | sysv4.3*)
  30057. + lt_prog_compiler_wl_GCJ='-Wl,'
  30058. + lt_prog_compiler_pic_GCJ='-KPIC'
  30059. + lt_prog_compiler_static_GCJ='-Bstatic'
  30060. + ;;
  30061. +
  30062. + sysv4*MP*)
  30063. + if test -d /usr/nec ;then
  30064. + lt_prog_compiler_pic_GCJ='-Kconform_pic'
  30065. + lt_prog_compiler_static_GCJ='-Bstatic'
  30066. + fi
  30067. + ;;
  30068. +
  30069. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  30070. + lt_prog_compiler_wl_GCJ='-Wl,'
  30071. + lt_prog_compiler_pic_GCJ='-KPIC'
  30072. + lt_prog_compiler_static_GCJ='-Bstatic'
  30073. + ;;
  30074. +
  30075. + unicos*)
  30076. + lt_prog_compiler_wl_GCJ='-Wl,'
  30077. + lt_prog_compiler_can_build_shared_GCJ=no
  30078. + ;;
  30079. +
  30080. + uts4*)
  30081. + lt_prog_compiler_pic_GCJ='-pic'
  30082. + lt_prog_compiler_static_GCJ='-Bstatic'
  30083. + ;;
  30084. +
  30085. + *)
  30086. + lt_prog_compiler_can_build_shared_GCJ=no
  30087. + ;;
  30088. + esac
  30089. + fi
  30090. +
  30091. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  30092. +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  30093. +
  30094. +#
  30095. +# Check to make sure the PIC flag actually works.
  30096. +#
  30097. +if test -n "$lt_prog_compiler_pic_GCJ"; then
  30098. +
  30099. +{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  30100. +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  30101. +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  30102. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30103. +else
  30104. + lt_prog_compiler_pic_works_GCJ=no
  30105. + ac_outfile=conftest.$ac_objext
  30106. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30107. + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  30108. + # Insert the option either (1) after the last *FLAGS variable, or
  30109. + # (2) before a word containing "conftest.", or (3) at the end.
  30110. + # Note that $ac_compile itself does not contain backslashes and begins
  30111. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30112. + # The option is referenced via a variable to avoid confusing sed.
  30113. + lt_compile=`echo "$ac_compile" | $SED \
  30114. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30115. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30116. + -e 's:$: $lt_compiler_flag:'`
  30117. + (eval echo "\"\$as_me:16456: $lt_compile\"" >&5)
  30118. + (eval "$lt_compile" 2>conftest.err)
  30119. + ac_status=$?
  30120. + cat conftest.err >&5
  30121. + echo "$as_me:16460: \$? = $ac_status" >&5
  30122. + if (exit $ac_status) && test -s "$ac_outfile"; then
  30123. + # The compiler can only warn and ignore the option if not recognized
  30124. + # So say no if there are warnings other than the usual output.
  30125. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  30126. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30127. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  30128. + lt_prog_compiler_pic_works_GCJ=yes
  30129. + fi
  30130. + fi
  30131. + $rm conftest*
  30132. +
  30133. +fi
  30134. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  30135. +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  30136. +
  30137. +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  30138. + case $lt_prog_compiler_pic_GCJ in
  30139. + "" | " "*) ;;
  30140. + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  30141. + esac
  30142. +else
  30143. + lt_prog_compiler_pic_GCJ=
  30144. + lt_prog_compiler_can_build_shared_GCJ=no
  30145. +fi
  30146. +
  30147. +fi
  30148. +case $host_os in
  30149. + # For platforms which do not support PIC, -DPIC is meaningless:
  30150. + *djgpp*)
  30151. + lt_prog_compiler_pic_GCJ=
  30152. + ;;
  30153. + *)
  30154. + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  30155. + ;;
  30156. +esac
  30157. +
  30158. +#
  30159. +# Check to make sure the static flag actually works.
  30160. +#
  30161. +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  30162. +{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  30163. +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  30164. +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  30165. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30166. +else
  30167. + lt_prog_compiler_static_works_GCJ=no
  30168. + save_LDFLAGS="$LDFLAGS"
  30169. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  30170. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  30171. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  30172. + # The linker can only warn and ignore the option if not recognized
  30173. + # So say no if there are warnings
  30174. + if test -s conftest.err; then
  30175. + # Append any errors to the config.log.
  30176. + cat conftest.err 1>&5
  30177. + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  30178. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  30179. + if diff conftest.exp conftest.er2 >/dev/null; then
  30180. + lt_prog_compiler_static_works_GCJ=yes
  30181. + fi
  30182. + else
  30183. + lt_prog_compiler_static_works_GCJ=yes
  30184. + fi
  30185. + fi
  30186. + $rm conftest*
  30187. + LDFLAGS="$save_LDFLAGS"
  30188. +
  30189. +fi
  30190. +{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  30191. +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  30192. +
  30193. +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  30194. + :
  30195. +else
  30196. + lt_prog_compiler_static_GCJ=
  30197. +fi
  30198. +
  30199. +
  30200. +{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30201. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  30202. +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  30203. + echo $ECHO_N "(cached) $ECHO_C" >&6
  30204. +else
  30205. + lt_cv_prog_compiler_c_o_GCJ=no
  30206. + $rm -r conftest 2>/dev/null
  30207. + mkdir conftest
  30208. + cd conftest
  30209. + mkdir out
  30210. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30211. +
  30212. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  30213. + # Insert the option either (1) after the last *FLAGS variable, or
  30214. + # (2) before a word containing "conftest.", or (3) at the end.
  30215. + # Note that $ac_compile itself does not contain backslashes and begins
  30216. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  30217. + lt_compile=`echo "$ac_compile" | $SED \
  30218. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  30219. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30220. + -e 's:$: $lt_compiler_flag:'`
  30221. + (eval echo "\"\$as_me:16560: $lt_compile\"" >&5)
  30222. + (eval "$lt_compile" 2>out/conftest.err)
  30223. + ac_status=$?
  30224. + cat out/conftest.err >&5
  30225. + echo "$as_me:16564: \$? = $ac_status" >&5
  30226. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30227. + then
  30228. + # The compiler can only warn and ignore the option if not recognized
  30229. + # So say no if there are warnings
  30230. + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  30231. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  30232. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  30233. + lt_cv_prog_compiler_c_o_GCJ=yes
  30234. + fi
  30235. + fi
  30236. + chmod u+w . 2>&5
  30237. + $rm conftest*
  30238. + # SGI C++ compiler will create directory out/ii_files/ for
  30239. + # template instantiation
  30240. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  30241. + $rm out/* && rmdir out
  30242. + cd ..
  30243. + rmdir conftest
  30244. + $rm conftest*
  30245. +
  30246. +fi
  30247. +{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  30248. +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  30249. +
  30250. +
  30251. +hard_links="nottested"
  30252. +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  30253. + # do not overwrite the value of need_locks provided by the user
  30254. + { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  30255. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  30256. + hard_links=yes
  30257. + $rm conftest*
  30258. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30259. + touch conftest.a
  30260. + ln conftest.a conftest.b 2>&5 || hard_links=no
  30261. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30262. + { echo "$as_me:$LINENO: result: $hard_links" >&5
  30263. +echo "${ECHO_T}$hard_links" >&6; }
  30264. + if test "$hard_links" = no; then
  30265. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30266. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30267. + need_locks=warn
  30268. + fi
  30269. +else
  30270. + need_locks=no
  30271. +fi
  30272. +
  30273. +{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30274. +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  30275. +
  30276. + runpath_var=
  30277. + allow_undefined_flag_GCJ=
  30278. + enable_shared_with_static_runtimes_GCJ=no
  30279. + archive_cmds_GCJ=
  30280. + archive_expsym_cmds_GCJ=
  30281. + old_archive_From_new_cmds_GCJ=
  30282. + old_archive_from_expsyms_cmds_GCJ=
  30283. + export_dynamic_flag_spec_GCJ=
  30284. + whole_archive_flag_spec_GCJ=
  30285. + thread_safe_flag_spec_GCJ=
  30286. + hardcode_libdir_flag_spec_GCJ=
  30287. + hardcode_libdir_flag_spec_ld_GCJ=
  30288. + hardcode_libdir_separator_GCJ=
  30289. + hardcode_direct_GCJ=no
  30290. + hardcode_minus_L_GCJ=no
  30291. + hardcode_shlibpath_var_GCJ=unsupported
  30292. + link_all_deplibs_GCJ=unknown
  30293. + hardcode_automatic_GCJ=no
  30294. + module_cmds_GCJ=
  30295. + module_expsym_cmds_GCJ=
  30296. + always_export_symbols_GCJ=no
  30297. + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30298. + # include_expsyms should be a list of space-separated symbols to be *always*
  30299. + # included in the symbol list
  30300. + include_expsyms_GCJ=
  30301. + # exclude_expsyms can be an extended regexp of symbols to exclude
  30302. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  30303. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  30304. + # as well as any symbol that contains `d'.
  30305. + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  30306. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  30307. + # platforms (ab)use it in PIC code, but their linkers get confused if
  30308. + # the symbol is explicitly referenced. Since portable code cannot
  30309. + # rely on this symbol name, it's probably fine to never include it in
  30310. + # preloaded symbol tables.
  30311. + extract_expsyms_cmds=
  30312. + # Just being paranoid about ensuring that cc_basename is set.
  30313. + for cc_temp in $compiler""; do
  30314. + case $cc_temp in
  30315. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  30316. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  30317. + \-*) ;;
  30318. + *) break;;
  30319. + esac
  30320. +done
  30321. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  30322. +
  30323. + case $host_os in
  30324. + cygwin* | mingw* | pw32*)
  30325. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  30326. + # When not using gcc, we currently assume that we are using
  30327. + # Microsoft Visual C++.
  30328. + if test "$GCC" != yes; then
  30329. + with_gnu_ld=no
  30330. + fi
  30331. + ;;
  30332. + interix*)
  30333. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  30334. + with_gnu_ld=yes
  30335. + ;;
  30336. + openbsd*)
  30337. + with_gnu_ld=no
  30338. + ;;
  30339. + esac
  30340. +
  30341. + ld_shlibs_GCJ=yes
  30342. + if test "$with_gnu_ld" = yes; then
  30343. + # If archive_cmds runs LD, not CC, wlarc should be empty
  30344. + wlarc='${wl}'
  30345. +
  30346. + # Set some defaults for GNU ld with shared library support. These
  30347. + # are reset later if shared libraries are not supported. Putting them
  30348. + # here allows them to be overridden if necessary.
  30349. + runpath_var=LD_RUN_PATH
  30350. + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  30351. + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  30352. + # ancient GNU ld didn't support --whole-archive et. al.
  30353. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  30354. + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30355. + else
  30356. + whole_archive_flag_spec_GCJ=
  30357. + fi
  30358. + supports_anon_versioning=no
  30359. + case `$LD -v 2>/dev/null` in
  30360. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  30361. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  30362. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  30363. + *\ 2.11.*) ;; # other 2.11 versions
  30364. + *) supports_anon_versioning=yes ;;
  30365. + esac
  30366. +
  30367. + # See if GNU ld supports shared libraries.
  30368. + case $host_os in
  30369. + aix3* | aix4* | aix5*)
  30370. + # On AIX/PPC, the GNU linker is very broken
  30371. + if test "$host_cpu" != ia64; then
  30372. + ld_shlibs_GCJ=no
  30373. + cat <<EOF 1>&2
  30374. +
  30375. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  30376. +*** to be unable to reliably create shared libraries on AIX.
  30377. +*** Therefore, libtool is disabling shared libraries support. If you
  30378. +*** really care for shared libraries, you may want to modify your PATH
  30379. +*** so that a non-GNU linker is found, and then restart.
  30380. +
  30381. +EOF
  30382. + fi
  30383. + ;;
  30384. +
  30385. + amigaos*)
  30386. + archive_cmds_GCJ='$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)'
  30387. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30388. + hardcode_minus_L_GCJ=yes
  30389. +
  30390. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  30391. + # that the semantics of dynamic libraries on AmigaOS, at least up
  30392. + # to version 4, is to share data among multiple programs linked
  30393. + # with the same dynamic library. Since this doesn't match the
  30394. + # behavior of shared libraries on other platforms, we can't use
  30395. + # them.
  30396. + ld_shlibs_GCJ=no
  30397. + ;;
  30398. +
  30399. + beos*)
  30400. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30401. + allow_undefined_flag_GCJ=unsupported
  30402. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  30403. + # support --undefined. This deserves some investigation. FIXME
  30404. + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30405. + else
  30406. + ld_shlibs_GCJ=no
  30407. + fi
  30408. + ;;
  30409. +
  30410. + cygwin* | mingw* | pw32*)
  30411. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  30412. + # as there is no search path for DLLs.
  30413. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30414. + allow_undefined_flag_GCJ=unsupported
  30415. + always_export_symbols_GCJ=no
  30416. + enable_shared_with_static_runtimes_GCJ=yes
  30417. + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  30418. +
  30419. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  30420. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30421. + # If the export-symbols file already is a .def file (1st line
  30422. + # is EXPORTS), use it as is; otherwise, prepend...
  30423. + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  30424. + cp $export_symbols $output_objdir/$soname.def;
  30425. + else
  30426. + echo EXPORTS > $output_objdir/$soname.def;
  30427. + cat $export_symbols >> $output_objdir/$soname.def;
  30428. + fi~
  30429. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  30430. + else
  30431. + ld_shlibs_GCJ=no
  30432. + fi
  30433. + ;;
  30434. +
  30435. + interix3*)
  30436. + hardcode_direct_GCJ=no
  30437. + hardcode_shlibpath_var_GCJ=no
  30438. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  30439. + export_dynamic_flag_spec_GCJ='${wl}-E'
  30440. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  30441. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  30442. + # default) and relocated if they conflict, which is a slow very memory
  30443. + # consuming and fragmenting process. To avoid this, we pick a random,
  30444. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  30445. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  30446. + archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  30447. + archive_expsym_cmds_GCJ='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'
  30448. + ;;
  30449. +
  30450. + linux*)
  30451. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30452. + tmp_addflag=
  30453. + case $cc_basename,$host_cpu in
  30454. + pgcc*) # Portland Group C compiler
  30455. + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  30456. + tmp_addflag=' $pic_flag'
  30457. + ;;
  30458. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  30459. + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  30460. + tmp_addflag=' $pic_flag -Mnomain' ;;
  30461. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  30462. + tmp_addflag=' -i_dynamic' ;;
  30463. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  30464. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  30465. + ifc* | ifort*) # Intel Fortran compiler
  30466. + tmp_addflag=' -nofor_main' ;;
  30467. + esac
  30468. + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30469. +
  30470. + if test $supports_anon_versioning = yes; then
  30471. + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  30472. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  30473. + $echo "local: *; };" >> $output_objdir/$libname.ver~
  30474. + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  30475. + fi
  30476. + else
  30477. + ld_shlibs_GCJ=no
  30478. + fi
  30479. + ;;
  30480. +
  30481. + netbsd*)
  30482. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30483. + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  30484. + wlarc=
  30485. + else
  30486. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30487. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30488. + fi
  30489. + ;;
  30490. +
  30491. + solaris*)
  30492. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  30493. + ld_shlibs_GCJ=no
  30494. + cat <<EOF 1>&2
  30495. +
  30496. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  30497. +*** create shared libraries on Solaris systems. Therefore, libtool
  30498. +*** is disabling shared libraries support. We urge you to upgrade GNU
  30499. +*** binutils to release 2.9.1 or newer. Another option is to modify
  30500. +*** your PATH or compiler configuration so that the native linker is
  30501. +*** used, and then restart.
  30502. +
  30503. +EOF
  30504. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30505. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30506. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30507. + else
  30508. + ld_shlibs_GCJ=no
  30509. + fi
  30510. + ;;
  30511. +
  30512. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  30513. + case `$LD -v 2>&1` in
  30514. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  30515. + ld_shlibs_GCJ=no
  30516. + cat <<_LT_EOF 1>&2
  30517. +
  30518. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  30519. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  30520. +*** is disabling shared libraries support. We urge you to upgrade GNU
  30521. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  30522. +*** your PATH or compiler configuration so that the native linker is
  30523. +*** used, and then restart.
  30524. +
  30525. +_LT_EOF
  30526. + ;;
  30527. + *)
  30528. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30529. + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  30530. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  30531. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  30532. + else
  30533. + ld_shlibs_GCJ=no
  30534. + fi
  30535. + ;;
  30536. + esac
  30537. + ;;
  30538. +
  30539. + sunos4*)
  30540. + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30541. + wlarc=
  30542. + hardcode_direct_GCJ=yes
  30543. + hardcode_shlibpath_var_GCJ=no
  30544. + ;;
  30545. +
  30546. + *)
  30547. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30548. + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30549. + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30550. + else
  30551. + ld_shlibs_GCJ=no
  30552. + fi
  30553. + ;;
  30554. + esac
  30555. +
  30556. + if test "$ld_shlibs_GCJ" = no; then
  30557. + runpath_var=
  30558. + hardcode_libdir_flag_spec_GCJ=
  30559. + export_dynamic_flag_spec_GCJ=
  30560. + whole_archive_flag_spec_GCJ=
  30561. + fi
  30562. + else
  30563. + # PORTME fill in a description of your system's linker (not GNU ld)
  30564. + case $host_os in
  30565. + aix3*)
  30566. + allow_undefined_flag_GCJ=unsupported
  30567. + always_export_symbols_GCJ=yes
  30568. + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  30569. + # Note: this linker hardcodes the directories in LIBPATH if there
  30570. + # are no directories specified by -L.
  30571. + hardcode_minus_L_GCJ=yes
  30572. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  30573. + # Neither direct hardcoding nor static linking is supported with a
  30574. + # broken collect2.
  30575. + hardcode_direct_GCJ=unsupported
  30576. + fi
  30577. + ;;
  30578. +
  30579. + aix4* | aix5*)
  30580. + if test "$host_cpu" = ia64; then
  30581. + # On IA64, the linker does run time linking by default, so we don't
  30582. + # have to do anything special.
  30583. + aix_use_runtimelinking=no
  30584. + exp_sym_flag='-Bexport'
  30585. + no_entry_flag=""
  30586. + else
  30587. + # If we're using GNU nm, then we don't want the "-C" option.
  30588. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  30589. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  30590. + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  30591. + else
  30592. + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  30593. + fi
  30594. + aix_use_runtimelinking=no
  30595. +
  30596. + # Test if we are trying to use run time linking or normal
  30597. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  30598. + # need to do runtime linking.
  30599. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  30600. + for ld_flag in $LDFLAGS; do
  30601. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  30602. + aix_use_runtimelinking=yes
  30603. + break
  30604. + fi
  30605. + done
  30606. + ;;
  30607. + esac
  30608. +
  30609. + exp_sym_flag='-bexport'
  30610. + no_entry_flag='-bnoentry'
  30611. + fi
  30612. +
  30613. + # When large executables or shared objects are built, AIX ld can
  30614. + # have problems creating the table of contents. If linking a library
  30615. + # or program results in "error TOC overflow" add -mminimal-toc to
  30616. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  30617. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  30618. +
  30619. + archive_cmds_GCJ=''
  30620. + hardcode_direct_GCJ=yes
  30621. + hardcode_libdir_separator_GCJ=':'
  30622. + link_all_deplibs_GCJ=yes
  30623. +
  30624. + if test "$GCC" = yes; then
  30625. + case $host_os in aix4.[012]|aix4.[012].*)
  30626. + # We only want to do this on AIX 4.2 and lower, the check
  30627. + # below for broken collect2 doesn't work under 4.3+
  30628. + collect2name=`${CC} -print-prog-name=collect2`
  30629. + if test -f "$collect2name" && \
  30630. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  30631. + then
  30632. + # We have reworked collect2
  30633. + hardcode_direct_GCJ=yes
  30634. + else
  30635. + # We have old collect2
  30636. + hardcode_direct_GCJ=unsupported
  30637. + # It fails to find uninstalled libraries when the uninstalled
  30638. + # path is not listed in the libpath. Setting hardcode_minus_L
  30639. + # to unsupported forces relinking
  30640. + hardcode_minus_L_GCJ=yes
  30641. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30642. + hardcode_libdir_separator_GCJ=
  30643. + fi
  30644. + ;;
  30645. + esac
  30646. + shared_flag='-shared'
  30647. + if test "$aix_use_runtimelinking" = yes; then
  30648. + shared_flag="$shared_flag "'${wl}-G'
  30649. + fi
  30650. + else
  30651. + # not using gcc
  30652. + if test "$host_cpu" = ia64; then
  30653. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  30654. + # chokes on -Wl,-G. The following line is correct:
  30655. + shared_flag='-G'
  30656. + else
  30657. + if test "$aix_use_runtimelinking" = yes; then
  30658. + shared_flag='${wl}-G'
  30659. + else
  30660. + shared_flag='${wl}-bM:SRE'
  30661. + fi
  30662. + fi
  30663. + fi
  30664. +
  30665. + # It seems that -bexpall does not export symbols beginning with
  30666. + # underscore (_), so it is better to generate a list of symbols to export.
  30667. + always_export_symbols_GCJ=yes
  30668. + if test "$aix_use_runtimelinking" = yes; then
  30669. + # Warning - without using the other runtime loading flags (-brtl),
  30670. + # -berok will link without error, but may produce a broken library.
  30671. + allow_undefined_flag_GCJ='-berok'
  30672. + # Determine the default libpath from the value encoded in an empty executable.
  30673. + cat >conftest.$ac_ext <<_ACEOF
  30674. +/* confdefs.h. */
  30675. +_ACEOF
  30676. +cat confdefs.h >>conftest.$ac_ext
  30677. +cat >>conftest.$ac_ext <<_ACEOF
  30678. +/* end confdefs.h. */
  30679. +
  30680. +int
  30681. +main ()
  30682. +{
  30683. +
  30684. + ;
  30685. + return 0;
  30686. +}
  30687. +_ACEOF
  30688. +rm -f conftest.$ac_objext conftest$ac_exeext
  30689. +if { (ac_try="$ac_link"
  30690. +case "(($ac_try" in
  30691. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30692. + *) ac_try_echo=$ac_try;;
  30693. +esac
  30694. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30695. + (eval "$ac_link") 2>conftest.er1
  30696. + ac_status=$?
  30697. + grep -v '^ *+' conftest.er1 >conftest.err
  30698. + rm -f conftest.er1
  30699. + cat conftest.err >&5
  30700. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30701. + (exit $ac_status); } && {
  30702. + test -z "$ac_c_werror_flag" ||
  30703. + test ! -s conftest.err
  30704. + } && test -s conftest$ac_exeext &&
  30705. + $as_test_x conftest$ac_exeext; then
  30706. +
  30707. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  30708. +}'`
  30709. +# Check for a 64-bit object if we didn't find anything.
  30710. +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; }
  30711. +}'`; fi
  30712. +else
  30713. + echo "$as_me: failed program was:" >&5
  30714. +sed 's/^/| /' conftest.$ac_ext >&5
  30715. +
  30716. +
  30717. +fi
  30718. +
  30719. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30720. + conftest$ac_exeext conftest.$ac_ext
  30721. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30722. +
  30723. + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  30724. + archive_expsym_cmds_GCJ="\$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"
  30725. + else
  30726. + if test "$host_cpu" = ia64; then
  30727. + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  30728. + allow_undefined_flag_GCJ="-z nodefs"
  30729. + archive_expsym_cmds_GCJ="\$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"
  30730. + else
  30731. + # Determine the default libpath from the value encoded in an empty executable.
  30732. + cat >conftest.$ac_ext <<_ACEOF
  30733. +/* confdefs.h. */
  30734. +_ACEOF
  30735. +cat confdefs.h >>conftest.$ac_ext
  30736. +cat >>conftest.$ac_ext <<_ACEOF
  30737. +/* end confdefs.h. */
  30738. +
  30739. +int
  30740. +main ()
  30741. +{
  30742. +
  30743. + ;
  30744. + return 0;
  30745. +}
  30746. +_ACEOF
  30747. +rm -f conftest.$ac_objext conftest$ac_exeext
  30748. +if { (ac_try="$ac_link"
  30749. +case "(($ac_try" in
  30750. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  30751. + *) ac_try_echo=$ac_try;;
  30752. +esac
  30753. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  30754. + (eval "$ac_link") 2>conftest.er1
  30755. + ac_status=$?
  30756. + grep -v '^ *+' conftest.er1 >conftest.err
  30757. + rm -f conftest.er1
  30758. + cat conftest.err >&5
  30759. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30760. + (exit $ac_status); } && {
  30761. + test -z "$ac_c_werror_flag" ||
  30762. + test ! -s conftest.err
  30763. + } && test -s conftest$ac_exeext &&
  30764. + $as_test_x conftest$ac_exeext; then
  30765. +
  30766. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  30767. +}'`
  30768. +# Check for a 64-bit object if we didn't find anything.
  30769. +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; }
  30770. +}'`; fi
  30771. +else
  30772. + echo "$as_me: failed program was:" >&5
  30773. +sed 's/^/| /' conftest.$ac_ext >&5
  30774. +
  30775. +
  30776. +fi
  30777. +
  30778. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  30779. + conftest$ac_exeext conftest.$ac_ext
  30780. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  30781. +
  30782. + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  30783. + # Warning - without using the other run time loading flags,
  30784. + # -berok will link without error, but may produce a broken library.
  30785. + no_undefined_flag_GCJ=' ${wl}-bernotok'
  30786. + allow_undefined_flag_GCJ=' ${wl}-berok'
  30787. + # Exported symbols can be pulled into shared objects from archives
  30788. + whole_archive_flag_spec_GCJ='$convenience'
  30789. + archive_cmds_need_lc_GCJ=yes
  30790. + # This is similar to how AIX traditionally builds its shared libraries.
  30791. + archive_expsym_cmds_GCJ="\$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'
  30792. + fi
  30793. + fi
  30794. + ;;
  30795. +
  30796. + amigaos*)
  30797. + archive_cmds_GCJ='$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)'
  30798. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30799. + hardcode_minus_L_GCJ=yes
  30800. + # see comment about different semantics on the GNU ld section
  30801. + ld_shlibs_GCJ=no
  30802. + ;;
  30803. +
  30804. + bsdi[45]*)
  30805. + export_dynamic_flag_spec_GCJ=-rdynamic
  30806. + ;;
  30807. +
  30808. + cygwin* | mingw* | pw32*)
  30809. + # When not using gcc, we currently assume that we are using
  30810. + # Microsoft Visual C++.
  30811. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  30812. + # no search path for DLLs.
  30813. + hardcode_libdir_flag_spec_GCJ=' '
  30814. + allow_undefined_flag_GCJ=unsupported
  30815. + # Tell ltmain to make .lib files, not .a files.
  30816. + libext=lib
  30817. + # Tell ltmain to make .dll files, not .so files.
  30818. + shrext_cmds=".dll"
  30819. + # FIXME: Setting linknames here is a bad hack.
  30820. + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  30821. + # The linker will automatically build a .lib file if we build a DLL.
  30822. + old_archive_From_new_cmds_GCJ='true'
  30823. + # FIXME: Should let the user specify the lib program.
  30824. + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  30825. + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  30826. + enable_shared_with_static_runtimes_GCJ=yes
  30827. + ;;
  30828. +
  30829. + darwin* | rhapsody*)
  30830. + case $host_os in
  30831. + rhapsody* | darwin1.[012])
  30832. + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  30833. + ;;
  30834. + *) # Darwin 1.3 on
  30835. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  30836. + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30837. + else
  30838. + case ${MACOSX_DEPLOYMENT_TARGET} in
  30839. + 10.[012])
  30840. + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  30841. + ;;
  30842. + 10.*)
  30843. + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  30844. + ;;
  30845. + esac
  30846. + fi
  30847. + ;;
  30848. + esac
  30849. + archive_cmds_need_lc_GCJ=no
  30850. + hardcode_direct_GCJ=no
  30851. + hardcode_automatic_GCJ=yes
  30852. + hardcode_shlibpath_var_GCJ=unsupported
  30853. + whole_archive_flag_spec_GCJ=''
  30854. + link_all_deplibs_GCJ=yes
  30855. + if test "$GCC" = yes ; then
  30856. + output_verbose_link_cmd='echo'
  30857. + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  30858. + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30859. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  30860. + archive_expsym_cmds_GCJ='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}'
  30861. + module_expsym_cmds_GCJ='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}'
  30862. + else
  30863. + case $cc_basename in
  30864. + xlc*)
  30865. + output_verbose_link_cmd='echo'
  30866. + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  30867. + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30868. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  30869. + archive_expsym_cmds_GCJ='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}'
  30870. + module_expsym_cmds_GCJ='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}'
  30871. + ;;
  30872. + *)
  30873. + ld_shlibs_GCJ=no
  30874. + ;;
  30875. + esac
  30876. + fi
  30877. + ;;
  30878. +
  30879. + dgux*)
  30880. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  30881. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  30882. + hardcode_shlibpath_var_GCJ=no
  30883. + ;;
  30884. +
  30885. + freebsd1*)
  30886. + ld_shlibs_GCJ=no
  30887. + ;;
  30888. +
  30889. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  30890. + # support. Future versions do this automatically, but an explicit c++rt0.o
  30891. + # does not break anything, and helps significantly (at the cost of a little
  30892. + # extra space).
  30893. + freebsd2.2*)
  30894. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  30895. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30896. + hardcode_direct_GCJ=yes
  30897. + hardcode_shlibpath_var_GCJ=no
  30898. + ;;
  30899. +
  30900. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  30901. + freebsd2*)
  30902. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30903. + hardcode_direct_GCJ=yes
  30904. + hardcode_minus_L_GCJ=yes
  30905. + hardcode_shlibpath_var_GCJ=no
  30906. + ;;
  30907. +
  30908. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  30909. + freebsd* | kfreebsd*-gnu | dragonfly*)
  30910. + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  30911. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  30912. + hardcode_direct_GCJ=yes
  30913. + hardcode_shlibpath_var_GCJ=no
  30914. + ;;
  30915. +
  30916. + hpux9*)
  30917. + if test "$GCC" = yes; then
  30918. + archive_cmds_GCJ='$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'
  30919. + else
  30920. + archive_cmds_GCJ='$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'
  30921. + fi
  30922. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30923. + hardcode_libdir_separator_GCJ=:
  30924. + hardcode_direct_GCJ=yes
  30925. +
  30926. + # hardcode_minus_L: Not really in the search PATH,
  30927. + # but as the default location of the library.
  30928. + hardcode_minus_L_GCJ=yes
  30929. + export_dynamic_flag_spec_GCJ='${wl}-E'
  30930. + ;;
  30931. +
  30932. + hpux10*)
  30933. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30934. + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30935. + else
  30936. + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  30937. + fi
  30938. + if test "$with_gnu_ld" = no; then
  30939. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30940. + hardcode_libdir_separator_GCJ=:
  30941. +
  30942. + hardcode_direct_GCJ=yes
  30943. + export_dynamic_flag_spec_GCJ='${wl}-E'
  30944. +
  30945. + # hardcode_minus_L: Not really in the search PATH,
  30946. + # but as the default location of the library.
  30947. + hardcode_minus_L_GCJ=yes
  30948. + fi
  30949. + ;;
  30950. +
  30951. + hpux11*)
  30952. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  30953. + case $host_cpu in
  30954. + hppa*64*)
  30955. + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30956. + ;;
  30957. + ia64*)
  30958. + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30959. + ;;
  30960. + *)
  30961. + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30962. + ;;
  30963. + esac
  30964. + else
  30965. + case $host_cpu in
  30966. + hppa*64*)
  30967. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  30968. + ;;
  30969. + ia64*)
  30970. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  30971. + ;;
  30972. + *)
  30973. + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  30974. + ;;
  30975. + esac
  30976. + fi
  30977. + if test "$with_gnu_ld" = no; then
  30978. + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  30979. + hardcode_libdir_separator_GCJ=:
  30980. +
  30981. + case $host_cpu in
  30982. + hppa*64*|ia64*)
  30983. + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  30984. + hardcode_direct_GCJ=no
  30985. + hardcode_shlibpath_var_GCJ=no
  30986. + ;;
  30987. + *)
  30988. + hardcode_direct_GCJ=yes
  30989. + export_dynamic_flag_spec_GCJ='${wl}-E'
  30990. +
  30991. + # hardcode_minus_L: Not really in the search PATH,
  30992. + # but as the default location of the library.
  30993. + hardcode_minus_L_GCJ=yes
  30994. + ;;
  30995. + esac
  30996. + fi
  30997. + ;;
  30998. +
  30999. + irix5* | irix6* | nonstopux*)
  31000. + if test "$GCC" = yes; then
  31001. + archive_cmds_GCJ='$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'
  31002. + else
  31003. + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31004. + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  31005. + fi
  31006. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  31007. + hardcode_libdir_separator_GCJ=:
  31008. + link_all_deplibs_GCJ=yes
  31009. + ;;
  31010. +
  31011. + netbsd*)
  31012. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31013. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  31014. + else
  31015. + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  31016. + fi
  31017. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  31018. + hardcode_direct_GCJ=yes
  31019. + hardcode_shlibpath_var_GCJ=no
  31020. + ;;
  31021. +
  31022. + newsos6)
  31023. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31024. + hardcode_direct_GCJ=yes
  31025. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  31026. + hardcode_libdir_separator_GCJ=:
  31027. + hardcode_shlibpath_var_GCJ=no
  31028. + ;;
  31029. +
  31030. + openbsd*)
  31031. + hardcode_direct_GCJ=yes
  31032. + hardcode_shlibpath_var_GCJ=no
  31033. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31034. + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31035. + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  31036. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  31037. + export_dynamic_flag_spec_GCJ='${wl}-E'
  31038. + else
  31039. + case $host_os in
  31040. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  31041. + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31042. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  31043. + ;;
  31044. + *)
  31045. + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31046. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  31047. + ;;
  31048. + esac
  31049. + fi
  31050. + ;;
  31051. +
  31052. + os2*)
  31053. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  31054. + hardcode_minus_L_GCJ=yes
  31055. + allow_undefined_flag_GCJ=unsupported
  31056. + archive_cmds_GCJ='$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'
  31057. + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  31058. + ;;
  31059. +
  31060. + osf3*)
  31061. + if test "$GCC" = yes; then
  31062. + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  31063. + archive_cmds_GCJ='$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'
  31064. + else
  31065. + allow_undefined_flag_GCJ=' -expect_unresolved \*'
  31066. + archive_cmds_GCJ='$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'
  31067. + fi
  31068. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  31069. + hardcode_libdir_separator_GCJ=:
  31070. + ;;
  31071. +
  31072. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  31073. + if test "$GCC" = yes; then
  31074. + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  31075. + archive_cmds_GCJ='$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'
  31076. + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  31077. + else
  31078. + allow_undefined_flag_GCJ=' -expect_unresolved \*'
  31079. + archive_cmds_GCJ='$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'
  31080. + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  31081. + $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'
  31082. +
  31083. + # Both c and cxx compiler support -rpath directly
  31084. + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  31085. + fi
  31086. + hardcode_libdir_separator_GCJ=:
  31087. + ;;
  31088. +
  31089. + solaris*)
  31090. + no_undefined_flag_GCJ=' -z text'
  31091. + if test "$GCC" = yes; then
  31092. + wlarc='${wl}'
  31093. + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31094. + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31095. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  31096. + else
  31097. + wlarc=''
  31098. + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31099. + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31100. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  31101. + fi
  31102. + hardcode_libdir_flag_spec_GCJ='-R$libdir'
  31103. + hardcode_shlibpath_var_GCJ=no
  31104. + case $host_os in
  31105. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  31106. + *)
  31107. + # The compiler driver will combine linker options so we
  31108. + # cannot just pass the convience library names through
  31109. + # without $wl, iff we do not link with $LD.
  31110. + # Luckily, gcc supports the same syntax we need for Sun Studio.
  31111. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  31112. + case $wlarc in
  31113. + '')
  31114. + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  31115. + *)
  31116. + whole_archive_flag_spec_GCJ='${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' ;;
  31117. + esac ;;
  31118. + esac
  31119. + link_all_deplibs_GCJ=yes
  31120. + ;;
  31121. +
  31122. + sunos4*)
  31123. + if test "x$host_vendor" = xsequent; then
  31124. + # Use $CC to link under sequent, because it throws in some extra .o
  31125. + # files that make .init and .fini sections work.
  31126. + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  31127. + else
  31128. + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  31129. + fi
  31130. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  31131. + hardcode_direct_GCJ=yes
  31132. + hardcode_minus_L_GCJ=yes
  31133. + hardcode_shlibpath_var_GCJ=no
  31134. + ;;
  31135. +
  31136. + sysv4)
  31137. + case $host_vendor in
  31138. + sni)
  31139. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31140. + hardcode_direct_GCJ=yes # is this really true???
  31141. + ;;
  31142. + siemens)
  31143. + ## LD is ld it makes a PLAMLIB
  31144. + ## CC just makes a GrossModule.
  31145. + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  31146. + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  31147. + hardcode_direct_GCJ=no
  31148. + ;;
  31149. + motorola)
  31150. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31151. + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  31152. + ;;
  31153. + esac
  31154. + runpath_var='LD_RUN_PATH'
  31155. + hardcode_shlibpath_var_GCJ=no
  31156. + ;;
  31157. +
  31158. + sysv4.3*)
  31159. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31160. + hardcode_shlibpath_var_GCJ=no
  31161. + export_dynamic_flag_spec_GCJ='-Bexport'
  31162. + ;;
  31163. +
  31164. + sysv4*MP*)
  31165. + if test -d /usr/nec; then
  31166. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31167. + hardcode_shlibpath_var_GCJ=no
  31168. + runpath_var=LD_RUN_PATH
  31169. + hardcode_runpath_var=yes
  31170. + ld_shlibs_GCJ=yes
  31171. + fi
  31172. + ;;
  31173. +
  31174. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  31175. + no_undefined_flag_GCJ='${wl}-z,text'
  31176. + archive_cmds_need_lc_GCJ=no
  31177. + hardcode_shlibpath_var_GCJ=no
  31178. + runpath_var='LD_RUN_PATH'
  31179. +
  31180. + if test "$GCC" = yes; then
  31181. + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31182. + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31183. + else
  31184. + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31185. + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  31186. + fi
  31187. + ;;
  31188. +
  31189. + sysv5* | sco3.2v5* | sco5v6*)
  31190. + # Note: We can NOT use -z defs as we might desire, because we do not
  31191. + # link with -lc, and that would cause any symbols used from libc to
  31192. + # always be unresolved, which means just about no library would
  31193. + # ever link correctly. If we're not using GNU ld we use -z text
  31194. + # though, which does catch some bad symbols but isn't as heavy-handed
  31195. + # as -z defs.
  31196. + no_undefined_flag_GCJ='${wl}-z,text'
  31197. + allow_undefined_flag_GCJ='${wl}-z,nodefs'
  31198. + archive_cmds_need_lc_GCJ=no
  31199. + hardcode_shlibpath_var_GCJ=no
  31200. + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  31201. + hardcode_libdir_separator_GCJ=':'
  31202. + link_all_deplibs_GCJ=yes
  31203. + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  31204. + runpath_var='LD_RUN_PATH'
  31205. +
  31206. + if test "$GCC" = yes; then
  31207. + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31208. + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31209. + else
  31210. + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31211. + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31212. + fi
  31213. + ;;
  31214. +
  31215. + uts4*)
  31216. + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31217. + hardcode_libdir_flag_spec_GCJ='-L$libdir'
  31218. + hardcode_shlibpath_var_GCJ=no
  31219. + ;;
  31220. +
  31221. + *)
  31222. + ld_shlibs_GCJ=no
  31223. + ;;
  31224. + esac
  31225. + fi
  31226. +
  31227. +{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  31228. +echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  31229. +test "$ld_shlibs_GCJ" = no && can_build_shared=no
  31230. +
  31231. +#
  31232. +# Do we need to explicitly link libc?
  31233. +#
  31234. +case "x$archive_cmds_need_lc_GCJ" in
  31235. +x|xyes)
  31236. + # Assume -lc should be added
  31237. + archive_cmds_need_lc_GCJ=yes
  31238. +
  31239. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  31240. + case $archive_cmds_GCJ in
  31241. + *'~'*)
  31242. + # FIXME: we may have to deal with multi-command sequences.
  31243. + ;;
  31244. + '$CC '*)
  31245. + # Test whether the compiler implicitly links with -lc since on some
  31246. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  31247. + # to ld, don't add -lc before -lgcc.
  31248. + { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  31249. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  31250. + $rm conftest*
  31251. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31252. +
  31253. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31254. + (eval $ac_compile) 2>&5
  31255. + ac_status=$?
  31256. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31257. + (exit $ac_status); } 2>conftest.err; then
  31258. + soname=conftest
  31259. + lib=conftest
  31260. + libobjs=conftest.$ac_objext
  31261. + deplibs=
  31262. + wl=$lt_prog_compiler_wl_GCJ
  31263. + pic_flag=$lt_prog_compiler_pic_GCJ
  31264. + compiler_flags=-v
  31265. + linker_flags=-v
  31266. + verstring=
  31267. + output_objdir=.
  31268. + libname=conftest
  31269. + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  31270. + allow_undefined_flag_GCJ=
  31271. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  31272. + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  31273. + ac_status=$?
  31274. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31275. + (exit $ac_status); }
  31276. + then
  31277. + archive_cmds_need_lc_GCJ=no
  31278. + else
  31279. + archive_cmds_need_lc_GCJ=yes
  31280. + fi
  31281. + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  31282. + else
  31283. + cat conftest.err 1>&5
  31284. + fi
  31285. + $rm conftest*
  31286. + { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  31287. +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  31288. + ;;
  31289. + esac
  31290. + fi
  31291. + ;;
  31292. +esac
  31293. +
  31294. +{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  31295. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  31296. +library_names_spec=
  31297. +libname_spec='lib$name'
  31298. +soname_spec=
  31299. +shrext_cmds=".so"
  31300. +postinstall_cmds=
  31301. +postuninstall_cmds=
  31302. +finish_cmds=
  31303. +finish_eval=
  31304. +shlibpath_var=
  31305. +shlibpath_overrides_runpath=unknown
  31306. +version_type=none
  31307. +dynamic_linker="$host_os ld.so"
  31308. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31309. +if test "$GCC" = yes; then
  31310. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31311. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  31312. + # if the path contains ";" then we assume it to be the separator
  31313. + # otherwise default to the standard path separator (i.e. ":") - it is
  31314. + # assumed that no part of a normal pathname contains ";" but that should
  31315. + # okay in the real world where ";" in dirpaths is itself problematic.
  31316. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31317. + else
  31318. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31319. + fi
  31320. +else
  31321. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  31322. +fi
  31323. +need_lib_prefix=unknown
  31324. +hardcode_into_libs=no
  31325. +
  31326. +# when you set need_version to no, make sure it does not cause -set_version
  31327. +# flags to be left without arguments
  31328. +need_version=unknown
  31329. +
  31330. +case $host_os in
  31331. +aix3*)
  31332. + version_type=linux
  31333. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31334. + shlibpath_var=LIBPATH
  31335. +
  31336. + # AIX 3 has no versioning support, so we append a major version to the name.
  31337. + soname_spec='${libname}${release}${shared_ext}$major'
  31338. + ;;
  31339. +
  31340. +aix4* | aix5*)
  31341. + version_type=linux
  31342. + need_lib_prefix=no
  31343. + need_version=no
  31344. + hardcode_into_libs=yes
  31345. + if test "$host_cpu" = ia64; then
  31346. + # AIX 5 supports IA64
  31347. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31348. + shlibpath_var=LD_LIBRARY_PATH
  31349. + else
  31350. + # With GCC up to 2.95.x, collect2 would create an import file
  31351. + # for dependence libraries. The import file would start with
  31352. + # the line `#! .'. This would cause the generated library to
  31353. + # depend on `.', always an invalid library. This was fixed in
  31354. + # development snapshots of GCC prior to 3.0.
  31355. + case $host_os in
  31356. + aix4 | aix4.[01] | aix4.[01].*)
  31357. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31358. + echo ' yes '
  31359. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  31360. + :
  31361. + else
  31362. + can_build_shared=no
  31363. + fi
  31364. + ;;
  31365. + esac
  31366. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31367. + # soname into executable. Probably we can add versioning support to
  31368. + # collect2, so additional links can be useful in future.
  31369. + if test "$aix_use_runtimelinking" = yes; then
  31370. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31371. + # instead of lib<name>.a to let people know that these are not
  31372. + # typical AIX shared libraries.
  31373. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31374. + else
  31375. + # We preserve .a as extension for shared libraries through AIX4.2
  31376. + # and later when we are not doing run time linking.
  31377. + library_names_spec='${libname}${release}.a $libname.a'
  31378. + soname_spec='${libname}${release}${shared_ext}$major'
  31379. + fi
  31380. + shlibpath_var=LIBPATH
  31381. + fi
  31382. + ;;
  31383. +
  31384. +amigaos*)
  31385. + library_names_spec='$libname.ixlibrary $libname.a'
  31386. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31387. + 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'
  31388. + ;;
  31389. +
  31390. +beos*)
  31391. + library_names_spec='${libname}${shared_ext}'
  31392. + dynamic_linker="$host_os ld.so"
  31393. + shlibpath_var=LIBRARY_PATH
  31394. + ;;
  31395. +
  31396. +bsdi[45]*)
  31397. + version_type=linux
  31398. + need_version=no
  31399. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31400. + soname_spec='${libname}${release}${shared_ext}$major'
  31401. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31402. + shlibpath_var=LD_LIBRARY_PATH
  31403. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31404. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31405. + # the default ld.so.conf also contains /usr/contrib/lib and
  31406. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31407. + # libtool to hard-code these into programs
  31408. + ;;
  31409. +
  31410. +cygwin* | mingw* | pw32*)
  31411. + version_type=windows
  31412. + shrext_cmds=".dll"
  31413. + need_version=no
  31414. + need_lib_prefix=no
  31415. +
  31416. + case $GCC,$host_os in
  31417. + yes,cygwin* | yes,mingw* | yes,pw32*)
  31418. + library_names_spec='$libname.dll.a'
  31419. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31420. + postinstall_cmds='base_file=`basename \${file}`~
  31421. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  31422. + dldir=$destdir/`dirname \$dlpath`~
  31423. + test -d \$dldir || mkdir -p \$dldir~
  31424. + $install_prog $dir/$dlname \$dldir/$dlname~
  31425. + chmod a+x \$dldir/$dlname'
  31426. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31427. + dlpath=$dir/\$dldll~
  31428. + $rm \$dlpath'
  31429. + shlibpath_overrides_runpath=yes
  31430. +
  31431. + case $host_os in
  31432. + cygwin*)
  31433. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  31434. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31435. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  31436. + ;;
  31437. + mingw*)
  31438. + # MinGW DLLs use traditional 'lib' prefix
  31439. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31440. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31441. + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  31442. + # It is most probably a Windows format PATH printed by
  31443. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  31444. + # path with ; separators, and with drive letters. We can handle the
  31445. + # drive letters (cygwin fileutils understands them), so leave them,
  31446. + # especially as we might pass files found there to a mingw objdump,
  31447. + # which wouldn't understand a cygwinified path. Ahh.
  31448. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31449. + else
  31450. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31451. + fi
  31452. + ;;
  31453. + pw32*)
  31454. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  31455. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31456. + ;;
  31457. + esac
  31458. + ;;
  31459. +
  31460. + *)
  31461. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  31462. + ;;
  31463. + esac
  31464. + dynamic_linker='Win32 ld.exe'
  31465. + # FIXME: first we should search . and the directory the executable is in
  31466. + shlibpath_var=PATH
  31467. + ;;
  31468. +
  31469. +darwin* | rhapsody*)
  31470. + dynamic_linker="$host_os dyld"
  31471. + version_type=darwin
  31472. + need_lib_prefix=no
  31473. + need_version=no
  31474. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
  31475. + soname_spec='${libname}${release}${major}$shared_ext'
  31476. + shlibpath_overrides_runpath=yes
  31477. + shlibpath_var=DYLD_LIBRARY_PATH
  31478. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  31479. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  31480. + if test "$GCC" = yes; then
  31481. + 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"`
  31482. + else
  31483. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  31484. + fi
  31485. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31486. + ;;
  31487. +
  31488. +dgux*)
  31489. + version_type=linux
  31490. + need_lib_prefix=no
  31491. + need_version=no
  31492. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  31493. + soname_spec='${libname}${release}${shared_ext}$major'
  31494. + shlibpath_var=LD_LIBRARY_PATH
  31495. + ;;
  31496. +
  31497. +freebsd1*)
  31498. + dynamic_linker=no
  31499. + ;;
  31500. +
  31501. +kfreebsd*-gnu)
  31502. + version_type=linux
  31503. + need_lib_prefix=no
  31504. + need_version=no
  31505. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31506. + soname_spec='${libname}${release}${shared_ext}$major'
  31507. + shlibpath_var=LD_LIBRARY_PATH
  31508. + shlibpath_overrides_runpath=no
  31509. + hardcode_into_libs=yes
  31510. + dynamic_linker='GNU ld.so'
  31511. + ;;
  31512. +
  31513. +freebsd* | dragonfly*)
  31514. + # DragonFly does not have aout. When/if they implement a new
  31515. + # versioning mechanism, adjust this.
  31516. + if test -x /usr/bin/objformat; then
  31517. + objformat=`/usr/bin/objformat`
  31518. + else
  31519. + case $host_os in
  31520. + freebsd[123]*) objformat=aout ;;
  31521. + *) objformat=elf ;;
  31522. + esac
  31523. + fi
  31524. + version_type=freebsd-$objformat
  31525. + case $version_type in
  31526. + freebsd-elf*)
  31527. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31528. + need_version=no
  31529. + need_lib_prefix=no
  31530. + ;;
  31531. + freebsd-*)
  31532. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  31533. + need_version=yes
  31534. + ;;
  31535. + esac
  31536. + shlibpath_var=LD_LIBRARY_PATH
  31537. + case $host_os in
  31538. + freebsd2*)
  31539. + shlibpath_overrides_runpath=yes
  31540. + ;;
  31541. + freebsd3.[01]* | freebsdelf3.[01]*)
  31542. + shlibpath_overrides_runpath=yes
  31543. + hardcode_into_libs=yes
  31544. + ;;
  31545. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  31546. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  31547. + shlibpath_overrides_runpath=no
  31548. + hardcode_into_libs=yes
  31549. + ;;
  31550. + freebsd*) # from 4.6 on
  31551. + shlibpath_overrides_runpath=yes
  31552. + hardcode_into_libs=yes
  31553. + ;;
  31554. + esac
  31555. + ;;
  31556. +
  31557. +gnu*)
  31558. + version_type=linux
  31559. + need_lib_prefix=no
  31560. + need_version=no
  31561. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31562. + soname_spec='${libname}${release}${shared_ext}$major'
  31563. + shlibpath_var=LD_LIBRARY_PATH
  31564. + hardcode_into_libs=yes
  31565. + ;;
  31566. +
  31567. +hpux9* | hpux10* | hpux11*)
  31568. + # Give a soname corresponding to the major version so that dld.sl refuses to
  31569. + # link against other versions.
  31570. + version_type=sunos
  31571. + need_lib_prefix=no
  31572. + need_version=no
  31573. + case $host_cpu in
  31574. + ia64*)
  31575. + shrext_cmds='.so'
  31576. + hardcode_into_libs=yes
  31577. + dynamic_linker="$host_os dld.so"
  31578. + shlibpath_var=LD_LIBRARY_PATH
  31579. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31580. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31581. + soname_spec='${libname}${release}${shared_ext}$major'
  31582. + if test "X$HPUX_IA64_MODE" = X32; then
  31583. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  31584. + else
  31585. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  31586. + fi
  31587. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31588. + ;;
  31589. + hppa*64*)
  31590. + shrext_cmds='.sl'
  31591. + hardcode_into_libs=yes
  31592. + dynamic_linker="$host_os dld.sl"
  31593. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31594. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31595. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31596. + soname_spec='${libname}${release}${shared_ext}$major'
  31597. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31598. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31599. + ;;
  31600. + *)
  31601. + shrext_cmds='.sl'
  31602. + dynamic_linker="$host_os dld.sl"
  31603. + shlibpath_var=SHLIB_PATH
  31604. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  31605. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31606. + soname_spec='${libname}${release}${shared_ext}$major'
  31607. + ;;
  31608. + esac
  31609. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  31610. + postinstall_cmds='chmod 555 $lib'
  31611. + ;;
  31612. +
  31613. +interix3*)
  31614. + version_type=linux
  31615. + need_lib_prefix=no
  31616. + need_version=no
  31617. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31618. + soname_spec='${libname}${release}${shared_ext}$major'
  31619. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  31620. + shlibpath_var=LD_LIBRARY_PATH
  31621. + shlibpath_overrides_runpath=no
  31622. + hardcode_into_libs=yes
  31623. + ;;
  31624. +
  31625. +irix5* | irix6* | nonstopux*)
  31626. + case $host_os in
  31627. + nonstopux*) version_type=nonstopux ;;
  31628. + *)
  31629. + if test "$lt_cv_prog_gnu_ld" = yes; then
  31630. + version_type=linux
  31631. + else
  31632. + version_type=irix
  31633. + fi ;;
  31634. + esac
  31635. + need_lib_prefix=no
  31636. + need_version=no
  31637. + soname_spec='${libname}${release}${shared_ext}$major'
  31638. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  31639. + case $host_os in
  31640. + irix5* | nonstopux*)
  31641. + libsuff= shlibsuff=
  31642. + ;;
  31643. + *)
  31644. + case $LD in # libtool.m4 will add one of these switches to LD
  31645. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  31646. + libsuff= shlibsuff= libmagic=32-bit;;
  31647. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  31648. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  31649. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  31650. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  31651. + *) libsuff= shlibsuff= libmagic=never-match;;
  31652. + esac
  31653. + ;;
  31654. + esac
  31655. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  31656. + shlibpath_overrides_runpath=no
  31657. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31658. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31659. + hardcode_into_libs=yes
  31660. + ;;
  31661. +
  31662. +# No shared lib support for Linux oldld, aout, or coff.
  31663. +linux*oldld* | linux*aout* | linux*coff*)
  31664. + dynamic_linker=no
  31665. + ;;
  31666. +
  31667. +# This must be Linux ELF.
  31668. +linux*)
  31669. + version_type=linux
  31670. + need_lib_prefix=no
  31671. + need_version=no
  31672. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31673. + soname_spec='${libname}${release}${shared_ext}$major'
  31674. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31675. + shlibpath_var=LD_LIBRARY_PATH
  31676. + shlibpath_overrides_runpath=no
  31677. + # This implies no fast_install, which is unacceptable.
  31678. + # Some rework will be needed to allow for fast_install
  31679. + # before this can be enabled.
  31680. + hardcode_into_libs=yes
  31681. +
  31682. + # Append ld.so.conf contents to the search path
  31683. + if test -f /etc/ld.so.conf; then
  31684. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  31685. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  31686. + fi
  31687. +
  31688. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  31689. + # powerpc, because MkLinux only supported shared libraries with the
  31690. + # GNU dynamic linker. Since this was broken with cross compilers,
  31691. + # most powerpc-linux boxes support dynamic linking these days and
  31692. + # people can always --disable-shared, the test was removed, and we
  31693. + # assume the GNU/Linux dynamic linker is in use.
  31694. + dynamic_linker='GNU/Linux ld.so'
  31695. + ;;
  31696. +
  31697. +knetbsd*-gnu)
  31698. + version_type=linux
  31699. + need_lib_prefix=no
  31700. + need_version=no
  31701. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31702. + soname_spec='${libname}${release}${shared_ext}$major'
  31703. + shlibpath_var=LD_LIBRARY_PATH
  31704. + shlibpath_overrides_runpath=no
  31705. + hardcode_into_libs=yes
  31706. + dynamic_linker='GNU ld.so'
  31707. + ;;
  31708. +
  31709. +netbsd*)
  31710. + version_type=sunos
  31711. + need_lib_prefix=no
  31712. + need_version=no
  31713. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31714. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31715. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31716. + dynamic_linker='NetBSD (a.out) ld.so'
  31717. + else
  31718. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31719. + soname_spec='${libname}${release}${shared_ext}$major'
  31720. + dynamic_linker='NetBSD ld.elf_so'
  31721. + fi
  31722. + shlibpath_var=LD_LIBRARY_PATH
  31723. + shlibpath_overrides_runpath=yes
  31724. + hardcode_into_libs=yes
  31725. + ;;
  31726. +
  31727. +newsos6)
  31728. + version_type=linux
  31729. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31730. + shlibpath_var=LD_LIBRARY_PATH
  31731. + shlibpath_overrides_runpath=yes
  31732. + ;;
  31733. +
  31734. +nto-qnx*)
  31735. + version_type=linux
  31736. + need_lib_prefix=no
  31737. + need_version=no
  31738. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31739. + soname_spec='${libname}${release}${shared_ext}$major'
  31740. + shlibpath_var=LD_LIBRARY_PATH
  31741. + shlibpath_overrides_runpath=yes
  31742. + ;;
  31743. +
  31744. +openbsd*)
  31745. + version_type=sunos
  31746. + sys_lib_dlsearch_path_spec="/usr/lib"
  31747. + need_lib_prefix=no
  31748. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  31749. + case $host_os in
  31750. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  31751. + *) need_version=no ;;
  31752. + esac
  31753. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31754. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31755. + shlibpath_var=LD_LIBRARY_PATH
  31756. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31757. + case $host_os in
  31758. + openbsd2.[89] | openbsd2.[89].*)
  31759. + shlibpath_overrides_runpath=no
  31760. + ;;
  31761. + *)
  31762. + shlibpath_overrides_runpath=yes
  31763. + ;;
  31764. + esac
  31765. + else
  31766. + shlibpath_overrides_runpath=yes
  31767. + fi
  31768. + ;;
  31769. +
  31770. +os2*)
  31771. + libname_spec='$name'
  31772. + shrext_cmds=".dll"
  31773. + need_lib_prefix=no
  31774. + library_names_spec='$libname${shared_ext} $libname.a'
  31775. + dynamic_linker='OS/2 ld.exe'
  31776. + shlibpath_var=LIBPATH
  31777. + ;;
  31778. +
  31779. +osf3* | osf4* | osf5*)
  31780. + version_type=osf
  31781. + need_lib_prefix=no
  31782. + need_version=no
  31783. + soname_spec='${libname}${release}${shared_ext}$major'
  31784. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31785. + shlibpath_var=LD_LIBRARY_PATH
  31786. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  31787. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  31788. + ;;
  31789. +
  31790. +solaris*)
  31791. + version_type=linux
  31792. + need_lib_prefix=no
  31793. + need_version=no
  31794. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31795. + soname_spec='${libname}${release}${shared_ext}$major'
  31796. + shlibpath_var=LD_LIBRARY_PATH
  31797. + shlibpath_overrides_runpath=yes
  31798. + hardcode_into_libs=yes
  31799. + # ldd complains unless libraries are executable
  31800. + postinstall_cmds='chmod +x $lib'
  31801. + ;;
  31802. +
  31803. +sunos4*)
  31804. + version_type=sunos
  31805. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31806. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  31807. + shlibpath_var=LD_LIBRARY_PATH
  31808. + shlibpath_overrides_runpath=yes
  31809. + if test "$with_gnu_ld" = yes; then
  31810. + need_lib_prefix=no
  31811. + fi
  31812. + need_version=yes
  31813. + ;;
  31814. +
  31815. +sysv4 | sysv4.3*)
  31816. + version_type=linux
  31817. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31818. + soname_spec='${libname}${release}${shared_ext}$major'
  31819. + shlibpath_var=LD_LIBRARY_PATH
  31820. + case $host_vendor in
  31821. + sni)
  31822. + shlibpath_overrides_runpath=no
  31823. + need_lib_prefix=no
  31824. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  31825. + runpath_var=LD_RUN_PATH
  31826. + ;;
  31827. + siemens)
  31828. + need_lib_prefix=no
  31829. + ;;
  31830. + motorola)
  31831. + need_lib_prefix=no
  31832. + need_version=no
  31833. + shlibpath_overrides_runpath=no
  31834. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  31835. + ;;
  31836. + esac
  31837. + ;;
  31838. +
  31839. +sysv4*MP*)
  31840. + if test -d /usr/nec ;then
  31841. + version_type=linux
  31842. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  31843. + soname_spec='$libname${shared_ext}.$major'
  31844. + shlibpath_var=LD_LIBRARY_PATH
  31845. + fi
  31846. + ;;
  31847. +
  31848. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  31849. + version_type=freebsd-elf
  31850. + need_lib_prefix=no
  31851. + need_version=no
  31852. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31853. + soname_spec='${libname}${release}${shared_ext}$major'
  31854. + shlibpath_var=LD_LIBRARY_PATH
  31855. + hardcode_into_libs=yes
  31856. + if test "$with_gnu_ld" = yes; then
  31857. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  31858. + shlibpath_overrides_runpath=no
  31859. + else
  31860. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  31861. + shlibpath_overrides_runpath=yes
  31862. + case $host_os in
  31863. + sco3.2v5*)
  31864. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  31865. + ;;
  31866. + esac
  31867. + fi
  31868. + sys_lib_dlsearch_path_spec='/usr/lib'
  31869. + ;;
  31870. +
  31871. +uts4*)
  31872. + version_type=linux
  31873. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31874. + soname_spec='${libname}${release}${shared_ext}$major'
  31875. + shlibpath_var=LD_LIBRARY_PATH
  31876. + ;;
  31877. +
  31878. +*)
  31879. + dynamic_linker=no
  31880. + ;;
  31881. +esac
  31882. +{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  31883. +echo "${ECHO_T}$dynamic_linker" >&6; }
  31884. +test "$dynamic_linker" = no && can_build_shared=no
  31885. +
  31886. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  31887. +if test "$GCC" = yes; then
  31888. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  31889. +fi
  31890. +
  31891. +{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  31892. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  31893. +hardcode_action_GCJ=
  31894. +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  31895. + test -n "$runpath_var_GCJ" || \
  31896. + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  31897. +
  31898. + # We can hardcode non-existant directories.
  31899. + if test "$hardcode_direct_GCJ" != no &&
  31900. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  31901. + # have to relink, otherwise we might link with an installed library
  31902. + # when we should be linking with a yet-to-be-installed one
  31903. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  31904. + test "$hardcode_minus_L_GCJ" != no; then
  31905. + # Linking always hardcodes the temporary library directory.
  31906. + hardcode_action_GCJ=relink
  31907. + else
  31908. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  31909. + hardcode_action_GCJ=immediate
  31910. + fi
  31911. +else
  31912. + # We cannot hardcode anything, or else we can only hardcode existing
  31913. + # directories.
  31914. + hardcode_action_GCJ=unsupported
  31915. +fi
  31916. +{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  31917. +echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  31918. +
  31919. +if test "$hardcode_action_GCJ" = relink; then
  31920. + # Fast installation is not supported
  31921. + enable_fast_install=no
  31922. +elif test "$shlibpath_overrides_runpath" = yes ||
  31923. + test "$enable_shared" = no; then
  31924. + # Fast installation is not necessary
  31925. + enable_fast_install=needless
  31926. +fi
  31927. +
  31928. +
  31929. +# The else clause should only fire when bootstrapping the
  31930. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  31931. +# with your package, and you will get complaints that there are
  31932. +# no rules to generate ltmain.sh.
  31933. +if test -f "$ltmain"; then
  31934. + # See if we are running on zsh, and set the options which allow our commands through
  31935. + # without removal of \ escapes.
  31936. + if test -n "${ZSH_VERSION+set}" ; then
  31937. + setopt NO_GLOB_SUBST
  31938. + fi
  31939. + # Now quote all the things that may contain metacharacters while being
  31940. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  31941. + # variables and quote the copies for generation of the libtool script.
  31942. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  31943. + SED SHELL STRIP \
  31944. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  31945. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  31946. + deplibs_check_method reload_flag reload_cmds need_locks \
  31947. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  31948. + lt_cv_sys_global_symbol_to_c_name_address \
  31949. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  31950. + old_postinstall_cmds old_postuninstall_cmds \
  31951. + compiler_GCJ \
  31952. + CC_GCJ \
  31953. + LD_GCJ \
  31954. + lt_prog_compiler_wl_GCJ \
  31955. + lt_prog_compiler_pic_GCJ \
  31956. + lt_prog_compiler_static_GCJ \
  31957. + lt_prog_compiler_no_builtin_flag_GCJ \
  31958. + export_dynamic_flag_spec_GCJ \
  31959. + thread_safe_flag_spec_GCJ \
  31960. + whole_archive_flag_spec_GCJ \
  31961. + enable_shared_with_static_runtimes_GCJ \
  31962. + old_archive_cmds_GCJ \
  31963. + old_archive_from_new_cmds_GCJ \
  31964. + predep_objects_GCJ \
  31965. + postdep_objects_GCJ \
  31966. + predeps_GCJ \
  31967. + postdeps_GCJ \
  31968. + compiler_lib_search_path_GCJ \
  31969. + archive_cmds_GCJ \
  31970. + archive_expsym_cmds_GCJ \
  31971. + postinstall_cmds_GCJ \
  31972. + postuninstall_cmds_GCJ \
  31973. + old_archive_from_expsyms_cmds_GCJ \
  31974. + allow_undefined_flag_GCJ \
  31975. + no_undefined_flag_GCJ \
  31976. + export_symbols_cmds_GCJ \
  31977. + hardcode_libdir_flag_spec_GCJ \
  31978. + hardcode_libdir_flag_spec_ld_GCJ \
  31979. + hardcode_libdir_separator_GCJ \
  31980. + hardcode_automatic_GCJ \
  31981. + module_cmds_GCJ \
  31982. + module_expsym_cmds_GCJ \
  31983. + lt_cv_prog_compiler_c_o_GCJ \
  31984. + exclude_expsyms_GCJ \
  31985. + include_expsyms_GCJ; do
  31986. +
  31987. + case $var in
  31988. + old_archive_cmds_GCJ | \
  31989. + old_archive_from_new_cmds_GCJ | \
  31990. + archive_cmds_GCJ | \
  31991. + archive_expsym_cmds_GCJ | \
  31992. + module_cmds_GCJ | \
  31993. + module_expsym_cmds_GCJ | \
  31994. + old_archive_from_expsyms_cmds_GCJ | \
  31995. + export_symbols_cmds_GCJ | \
  31996. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  31997. + postinstall_cmds | postuninstall_cmds | \
  31998. + old_postinstall_cmds | old_postuninstall_cmds | \
  31999. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32000. + # Double-quote double-evaled strings.
  32001. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32002. + ;;
  32003. + *)
  32004. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32005. + ;;
  32006. + esac
  32007. + done
  32008. +
  32009. + case $lt_echo in
  32010. + *'\$0 --fallback-echo"')
  32011. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32012. + ;;
  32013. + esac
  32014. +
  32015. +cfgfile="$ofile"
  32016. +
  32017. + cat <<__EOF__ >> "$cfgfile"
  32018. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32019. +
  32020. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32021. +
  32022. +# Shell to use when invoking shell scripts.
  32023. +SHELL=$lt_SHELL
  32024. +
  32025. +# Whether or not to build shared libraries.
  32026. +build_libtool_libs=$enable_shared
  32027. +
  32028. +# Whether or not to build static libraries.
  32029. +build_old_libs=$enable_static
  32030. +
  32031. +# Whether or not to add -lc for building shared libraries.
  32032. +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  32033. +
  32034. +# Whether or not to disallow shared libs when runtime libs are static
  32035. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  32036. +
  32037. +# Whether or not to optimize for fast installation.
  32038. +fast_install=$enable_fast_install
  32039. +
  32040. +# The host system.
  32041. +host_alias=$host_alias
  32042. +host=$host
  32043. +host_os=$host_os
  32044. +
  32045. +# The build system.
  32046. +build_alias=$build_alias
  32047. +build=$build
  32048. +build_os=$build_os
  32049. +
  32050. +# An echo program that does not interpret backslashes.
  32051. +echo=$lt_echo
  32052. +
  32053. +# The archiver.
  32054. +AR=$lt_AR
  32055. +AR_FLAGS=$lt_AR_FLAGS
  32056. +
  32057. +# A C compiler.
  32058. +LTCC=$lt_LTCC
  32059. +
  32060. +# LTCC compiler flags.
  32061. +LTCFLAGS=$lt_LTCFLAGS
  32062. +
  32063. +# A language-specific compiler.
  32064. +CC=$lt_compiler_GCJ
  32065. +
  32066. +# Is the compiler the GNU C compiler?
  32067. +with_gcc=$GCC_GCJ
  32068. +
  32069. +# An ERE matcher.
  32070. +EGREP=$lt_EGREP
  32071. +
  32072. +# The linker used to build libraries.
  32073. +LD=$lt_LD_GCJ
  32074. +
  32075. +# Whether we need hard or soft links.
  32076. +LN_S=$lt_LN_S
  32077. +
  32078. +# A BSD-compatible nm program.
  32079. +NM=$lt_NM
  32080. +
  32081. +# A symbol stripping program
  32082. +STRIP=$lt_STRIP
  32083. +
  32084. +# Used to examine libraries when file_magic_cmd begins "file"
  32085. +MAGIC_CMD=$MAGIC_CMD
  32086. +
  32087. +# Used on cygwin: DLL creation program.
  32088. +DLLTOOL="$DLLTOOL"
  32089. +
  32090. +# Used on cygwin: object dumper.
  32091. +OBJDUMP="$OBJDUMP"
  32092. +
  32093. +# Used on cygwin: assembler.
  32094. +AS="$AS"
  32095. +
  32096. +# The name of the directory that contains temporary libtool files.
  32097. +objdir=$objdir
  32098. +
  32099. +# How to create reloadable object files.
  32100. +reload_flag=$lt_reload_flag
  32101. +reload_cmds=$lt_reload_cmds
  32102. +
  32103. +# How to pass a linker flag through the compiler.
  32104. +wl=$lt_lt_prog_compiler_wl_GCJ
  32105. +
  32106. +# Object file suffix (normally "o").
  32107. +objext="$ac_objext"
  32108. +
  32109. +# Old archive suffix (normally "a").
  32110. +libext="$libext"
  32111. +
  32112. +# Shared library suffix (normally ".so").
  32113. +shrext_cmds='$shrext_cmds'
  32114. +
  32115. +# Executable file suffix (normally "").
  32116. +exeext="$exeext"
  32117. +
  32118. +# Additional compiler flags for building library objects.
  32119. +pic_flag=$lt_lt_prog_compiler_pic_GCJ
  32120. +pic_mode=$pic_mode
  32121. +
  32122. +# What is the maximum length of a command?
  32123. +max_cmd_len=$lt_cv_sys_max_cmd_len
  32124. +
  32125. +# Does compiler simultaneously support -c and -o options?
  32126. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  32127. +
  32128. +# Must we lock files when doing compilation?
  32129. +need_locks=$lt_need_locks
  32130. +
  32131. +# Do we need the lib prefix for modules?
  32132. +need_lib_prefix=$need_lib_prefix
  32133. +
  32134. +# Do we need a version for libraries?
  32135. +need_version=$need_version
  32136. +
  32137. +# Whether dlopen is supported.
  32138. +dlopen_support=$enable_dlopen
  32139. +
  32140. +# Whether dlopen of programs is supported.
  32141. +dlopen_self=$enable_dlopen_self
  32142. +
  32143. +# Whether dlopen of statically linked programs is supported.
  32144. +dlopen_self_static=$enable_dlopen_self_static
  32145. +
  32146. +# Compiler flag to prevent dynamic linking.
  32147. +link_static_flag=$lt_lt_prog_compiler_static_GCJ
  32148. +
  32149. +# Compiler flag to turn off builtin functions.
  32150. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  32151. +
  32152. +# Compiler flag to allow reflexive dlopens.
  32153. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  32154. +
  32155. +# Compiler flag to generate shared objects directly from archives.
  32156. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  32157. +
  32158. +# Compiler flag to generate thread-safe objects.
  32159. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  32160. +
  32161. +# Library versioning type.
  32162. +version_type=$version_type
  32163. +
  32164. +# Format of library name prefix.
  32165. +libname_spec=$lt_libname_spec
  32166. +
  32167. +# List of archive names. First name is the real one, the rest are links.
  32168. +# The last name is the one that the linker finds with -lNAME.
  32169. +library_names_spec=$lt_library_names_spec
  32170. +
  32171. +# The coded name of the library, if different from the real name.
  32172. +soname_spec=$lt_soname_spec
  32173. +
  32174. +# Commands used to build and install an old-style archive.
  32175. +RANLIB=$lt_RANLIB
  32176. +old_archive_cmds=$lt_old_archive_cmds_GCJ
  32177. +old_postinstall_cmds=$lt_old_postinstall_cmds
  32178. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32179. +
  32180. +# Create an old-style archive from a shared archive.
  32181. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  32182. +
  32183. +# Create a temporary old-style archive to link instead of a shared archive.
  32184. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  32185. +
  32186. +# Commands used to build and install a shared archive.
  32187. +archive_cmds=$lt_archive_cmds_GCJ
  32188. +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  32189. +postinstall_cmds=$lt_postinstall_cmds
  32190. +postuninstall_cmds=$lt_postuninstall_cmds
  32191. +
  32192. +# Commands used to build a loadable module (assumed same as above if empty)
  32193. +module_cmds=$lt_module_cmds_GCJ
  32194. +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  32195. +
  32196. +# Commands to strip libraries.
  32197. +old_striplib=$lt_old_striplib
  32198. +striplib=$lt_striplib
  32199. +
  32200. +# Dependencies to place before the objects being linked to create a
  32201. +# shared library.
  32202. +predep_objects=$lt_predep_objects_GCJ
  32203. +
  32204. +# Dependencies to place after the objects being linked to create a
  32205. +# shared library.
  32206. +postdep_objects=$lt_postdep_objects_GCJ
  32207. +
  32208. +# Dependencies to place before the objects being linked to create a
  32209. +# shared library.
  32210. +predeps=$lt_predeps_GCJ
  32211. +
  32212. +# Dependencies to place after the objects being linked to create a
  32213. +# shared library.
  32214. +postdeps=$lt_postdeps_GCJ
  32215. +
  32216. +# The library search path used internally by the compiler when linking
  32217. +# a shared library.
  32218. +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  32219. +
  32220. +# Method to check whether dependent libraries are shared objects.
  32221. +deplibs_check_method=$lt_deplibs_check_method
  32222. +
  32223. +# Command to use when deplibs_check_method == file_magic.
  32224. +file_magic_cmd=$lt_file_magic_cmd
  32225. +
  32226. +# Flag that allows shared libraries with undefined symbols to be built.
  32227. +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  32228. +
  32229. +# Flag that forces no undefined symbols.
  32230. +no_undefined_flag=$lt_no_undefined_flag_GCJ
  32231. +
  32232. +# Commands used to finish a libtool library installation in a directory.
  32233. +finish_cmds=$lt_finish_cmds
  32234. +
  32235. +# Same as above, but a single script fragment to be evaled but not shown.
  32236. +finish_eval=$lt_finish_eval
  32237. +
  32238. +# Take the output of nm and produce a listing of raw symbols and C names.
  32239. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32240. +
  32241. +# Transform the output of nm in a proper C declaration
  32242. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32243. +
  32244. +# Transform the output of nm in a C name address pair
  32245. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32246. +
  32247. +# This is the shared library runtime path variable.
  32248. +runpath_var=$runpath_var
  32249. +
  32250. +# This is the shared library path variable.
  32251. +shlibpath_var=$shlibpath_var
  32252. +
  32253. +# Is shlibpath searched before the hard-coded library search path?
  32254. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32255. +
  32256. +# How to hardcode a shared library path into an executable.
  32257. +hardcode_action=$hardcode_action_GCJ
  32258. +
  32259. +# Whether we should hardcode library paths into libraries.
  32260. +hardcode_into_libs=$hardcode_into_libs
  32261. +
  32262. +# Flag to hardcode \$libdir into a binary during linking.
  32263. +# This must work even if \$libdir does not exist.
  32264. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  32265. +
  32266. +# If ld is used when linking, flag to hardcode \$libdir into
  32267. +# a binary during linking. This must work even if \$libdir does
  32268. +# not exist.
  32269. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  32270. +
  32271. +# Whether we need a single -rpath flag with a separated argument.
  32272. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  32273. +
  32274. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  32275. +# resulting binary.
  32276. +hardcode_direct=$hardcode_direct_GCJ
  32277. +
  32278. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  32279. +# resulting binary.
  32280. +hardcode_minus_L=$hardcode_minus_L_GCJ
  32281. +
  32282. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  32283. +# the resulting binary.
  32284. +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  32285. +
  32286. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  32287. +# and all subsequent libraries and executables linked against it.
  32288. +hardcode_automatic=$hardcode_automatic_GCJ
  32289. +
  32290. +# Variables whose values should be saved in libtool wrapper scripts and
  32291. +# restored at relink time.
  32292. +variables_saved_for_relink="$variables_saved_for_relink"
  32293. +
  32294. +# Whether libtool must link a program against all its dependency libraries.
  32295. +link_all_deplibs=$link_all_deplibs_GCJ
  32296. +
  32297. +# Compile-time system search path for libraries
  32298. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32299. +
  32300. +# Run-time system search path for libraries
  32301. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  32302. +
  32303. +# Fix the shell variable \$srcfile for the compiler.
  32304. +fix_srcfile_path="$fix_srcfile_path_GCJ"
  32305. +
  32306. +# Set to yes if exported symbols are required.
  32307. +always_export_symbols=$always_export_symbols_GCJ
  32308. +
  32309. +# The commands to list exported symbols.
  32310. +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  32311. +
  32312. +# The commands to extract the exported symbol list from a shared archive.
  32313. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32314. +
  32315. +# Symbols that should not be listed in the preloaded symbols.
  32316. +exclude_expsyms=$lt_exclude_expsyms_GCJ
  32317. +
  32318. +# Symbols that must always be exported.
  32319. +include_expsyms=$lt_include_expsyms_GCJ
  32320. +
  32321. +# ### END LIBTOOL TAG CONFIG: $tagname
  32322. +
  32323. +__EOF__
  32324. +
  32325. +
  32326. +else
  32327. + # If there is no Makefile yet, we rely on a make rule to execute
  32328. + # `config.status --recheck' to rerun these tests and create the
  32329. + # libtool script then.
  32330. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  32331. + if test -f "$ltmain_in"; then
  32332. + test -f Makefile && make "$ltmain"
  32333. + fi
  32334. +fi
  32335. +
  32336. +
  32337. +ac_ext=c
  32338. +ac_cpp='$CPP $CPPFLAGS'
  32339. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32340. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32341. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32342. +
  32343. +CC="$lt_save_CC"
  32344. +
  32345. + else
  32346. + tagname=""
  32347. + fi
  32348. + ;;
  32349. +
  32350. + RC)
  32351. +
  32352. +
  32353. +# Source file extension for RC test sources.
  32354. +ac_ext=rc
  32355. +
  32356. +# Object file extension for compiled RC test sources.
  32357. +objext=o
  32358. +objext_RC=$objext
  32359. +
  32360. +# Code to be used in simple compile tests
  32361. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  32362. +
  32363. +# Code to be used in simple link tests
  32364. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  32365. +
  32366. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  32367. +
  32368. +# If no C compiler was specified, use CC.
  32369. +LTCC=${LTCC-"$CC"}
  32370. +
  32371. +# If no C compiler flags were specified, use CFLAGS.
  32372. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  32373. +
  32374. +# Allow CC to be a program name with arguments.
  32375. +compiler=$CC
  32376. +
  32377. +
  32378. +# save warnings/boilerplate of simple test code
  32379. +ac_outfile=conftest.$ac_objext
  32380. +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  32381. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32382. +_lt_compiler_boilerplate=`cat conftest.err`
  32383. +$rm conftest*
  32384. +
  32385. +ac_outfile=conftest.$ac_objext
  32386. +printf "$lt_simple_link_test_code" >conftest.$ac_ext
  32387. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  32388. +_lt_linker_boilerplate=`cat conftest.err`
  32389. +$rm conftest*
  32390. +
  32391. +
  32392. +# Allow CC to be a program name with arguments.
  32393. +lt_save_CC="$CC"
  32394. +CC=${RC-"windres"}
  32395. +compiler=$CC
  32396. +compiler_RC=$CC
  32397. +for cc_temp in $compiler""; do
  32398. + case $cc_temp in
  32399. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  32400. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  32401. + \-*) ;;
  32402. + *) break;;
  32403. + esac
  32404. +done
  32405. +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  32406. +
  32407. +lt_cv_prog_compiler_c_o_RC=yes
  32408. +
  32409. +# The else clause should only fire when bootstrapping the
  32410. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  32411. +# with your package, and you will get complaints that there are
  32412. +# no rules to generate ltmain.sh.
  32413. +if test -f "$ltmain"; then
  32414. + # See if we are running on zsh, and set the options which allow our commands through
  32415. + # without removal of \ escapes.
  32416. + if test -n "${ZSH_VERSION+set}" ; then
  32417. + setopt NO_GLOB_SUBST
  32418. + fi
  32419. + # Now quote all the things that may contain metacharacters while being
  32420. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  32421. + # variables and quote the copies for generation of the libtool script.
  32422. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  32423. + SED SHELL STRIP \
  32424. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32425. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32426. + deplibs_check_method reload_flag reload_cmds need_locks \
  32427. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32428. + lt_cv_sys_global_symbol_to_c_name_address \
  32429. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32430. + old_postinstall_cmds old_postuninstall_cmds \
  32431. + compiler_RC \
  32432. + CC_RC \
  32433. + LD_RC \
  32434. + lt_prog_compiler_wl_RC \
  32435. + lt_prog_compiler_pic_RC \
  32436. + lt_prog_compiler_static_RC \
  32437. + lt_prog_compiler_no_builtin_flag_RC \
  32438. + export_dynamic_flag_spec_RC \
  32439. + thread_safe_flag_spec_RC \
  32440. + whole_archive_flag_spec_RC \
  32441. + enable_shared_with_static_runtimes_RC \
  32442. + old_archive_cmds_RC \
  32443. + old_archive_from_new_cmds_RC \
  32444. + predep_objects_RC \
  32445. + postdep_objects_RC \
  32446. + predeps_RC \
  32447. + postdeps_RC \
  32448. + compiler_lib_search_path_RC \
  32449. + archive_cmds_RC \
  32450. + archive_expsym_cmds_RC \
  32451. + postinstall_cmds_RC \
  32452. + postuninstall_cmds_RC \
  32453. + old_archive_from_expsyms_cmds_RC \
  32454. + allow_undefined_flag_RC \
  32455. + no_undefined_flag_RC \
  32456. + export_symbols_cmds_RC \
  32457. + hardcode_libdir_flag_spec_RC \
  32458. + hardcode_libdir_flag_spec_ld_RC \
  32459. + hardcode_libdir_separator_RC \
  32460. + hardcode_automatic_RC \
  32461. + module_cmds_RC \
  32462. + module_expsym_cmds_RC \
  32463. + lt_cv_prog_compiler_c_o_RC \
  32464. + exclude_expsyms_RC \
  32465. + include_expsyms_RC; do
  32466. +
  32467. + case $var in
  32468. + old_archive_cmds_RC | \
  32469. + old_archive_from_new_cmds_RC | \
  32470. + archive_cmds_RC | \
  32471. + archive_expsym_cmds_RC | \
  32472. + module_cmds_RC | \
  32473. + module_expsym_cmds_RC | \
  32474. + old_archive_from_expsyms_cmds_RC | \
  32475. + export_symbols_cmds_RC | \
  32476. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32477. + postinstall_cmds | postuninstall_cmds | \
  32478. + old_postinstall_cmds | old_postuninstall_cmds | \
  32479. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32480. + # Double-quote double-evaled strings.
  32481. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32482. + ;;
  32483. + *)
  32484. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32485. + ;;
  32486. + esac
  32487. + done
  32488. +
  32489. + case $lt_echo in
  32490. + *'\$0 --fallback-echo"')
  32491. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32492. + ;;
  32493. + esac
  32494. +
  32495. +cfgfile="$ofile"
  32496. +
  32497. + cat <<__EOF__ >> "$cfgfile"
  32498. +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32499. +
  32500. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32501. +
  32502. +# Shell to use when invoking shell scripts.
  32503. +SHELL=$lt_SHELL
  32504. +
  32505. +# Whether or not to build shared libraries.
  32506. +build_libtool_libs=$enable_shared
  32507. +
  32508. +# Whether or not to build static libraries.
  32509. +build_old_libs=$enable_static
  32510. +
  32511. +# Whether or not to add -lc for building shared libraries.
  32512. +build_libtool_need_lc=$archive_cmds_need_lc_RC
  32513. +
  32514. +# Whether or not to disallow shared libs when runtime libs are static
  32515. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  32516. +
  32517. +# Whether or not to optimize for fast installation.
  32518. +fast_install=$enable_fast_install
  32519. +
  32520. +# The host system.
  32521. +host_alias=$host_alias
  32522. +host=$host
  32523. +host_os=$host_os
  32524. +
  32525. +# The build system.
  32526. +build_alias=$build_alias
  32527. +build=$build
  32528. +build_os=$build_os
  32529. +
  32530. +# An echo program that does not interpret backslashes.
  32531. +echo=$lt_echo
  32532. +
  32533. +# The archiver.
  32534. +AR=$lt_AR
  32535. +AR_FLAGS=$lt_AR_FLAGS
  32536. +
  32537. +# A C compiler.
  32538. +LTCC=$lt_LTCC
  32539. +
  32540. +# LTCC compiler flags.
  32541. +LTCFLAGS=$lt_LTCFLAGS
  32542. +
  32543. +# A language-specific compiler.
  32544. +CC=$lt_compiler_RC
  32545. +
  32546. +# Is the compiler the GNU C compiler?
  32547. +with_gcc=$GCC_RC
  32548. +
  32549. +# An ERE matcher.
  32550. +EGREP=$lt_EGREP
  32551. +
  32552. +# The linker used to build libraries.
  32553. +LD=$lt_LD_RC
  32554. +
  32555. +# Whether we need hard or soft links.
  32556. +LN_S=$lt_LN_S
  32557. +
  32558. +# A BSD-compatible nm program.
  32559. +NM=$lt_NM
  32560. +
  32561. +# A symbol stripping program
  32562. +STRIP=$lt_STRIP
  32563. +
  32564. +# Used to examine libraries when file_magic_cmd begins "file"
  32565. +MAGIC_CMD=$MAGIC_CMD
  32566. +
  32567. +# Used on cygwin: DLL creation program.
  32568. +DLLTOOL="$DLLTOOL"
  32569. +
  32570. +# Used on cygwin: object dumper.
  32571. +OBJDUMP="$OBJDUMP"
  32572. +
  32573. +# Used on cygwin: assembler.
  32574. +AS="$AS"
  32575. +
  32576. +# The name of the directory that contains temporary libtool files.
  32577. +objdir=$objdir
  32578. +
  32579. +# How to create reloadable object files.
  32580. +reload_flag=$lt_reload_flag
  32581. +reload_cmds=$lt_reload_cmds
  32582. +
  32583. +# How to pass a linker flag through the compiler.
  32584. +wl=$lt_lt_prog_compiler_wl_RC
  32585. +
  32586. +# Object file suffix (normally "o").
  32587. +objext="$ac_objext"
  32588. +
  32589. +# Old archive suffix (normally "a").
  32590. +libext="$libext"
  32591. +
  32592. +# Shared library suffix (normally ".so").
  32593. +shrext_cmds='$shrext_cmds'
  32594. +
  32595. +# Executable file suffix (normally "").
  32596. +exeext="$exeext"
  32597. +
  32598. +# Additional compiler flags for building library objects.
  32599. +pic_flag=$lt_lt_prog_compiler_pic_RC
  32600. +pic_mode=$pic_mode
  32601. +
  32602. +# What is the maximum length of a command?
  32603. +max_cmd_len=$lt_cv_sys_max_cmd_len
  32604. +
  32605. +# Does compiler simultaneously support -c and -o options?
  32606. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  32607. +
  32608. +# Must we lock files when doing compilation?
  32609. +need_locks=$lt_need_locks
  32610. +
  32611. +# Do we need the lib prefix for modules?
  32612. +need_lib_prefix=$need_lib_prefix
  32613. +
  32614. +# Do we need a version for libraries?
  32615. +need_version=$need_version
  32616. +
  32617. +# Whether dlopen is supported.
  32618. +dlopen_support=$enable_dlopen
  32619. +
  32620. +# Whether dlopen of programs is supported.
  32621. +dlopen_self=$enable_dlopen_self
  32622. +
  32623. +# Whether dlopen of statically linked programs is supported.
  32624. +dlopen_self_static=$enable_dlopen_self_static
  32625. +
  32626. +# Compiler flag to prevent dynamic linking.
  32627. +link_static_flag=$lt_lt_prog_compiler_static_RC
  32628. +
  32629. +# Compiler flag to turn off builtin functions.
  32630. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  32631. +
  32632. +# Compiler flag to allow reflexive dlopens.
  32633. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  32634. +
  32635. +# Compiler flag to generate shared objects directly from archives.
  32636. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  32637. +
  32638. +# Compiler flag to generate thread-safe objects.
  32639. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  32640. +
  32641. +# Library versioning type.
  32642. +version_type=$version_type
  32643. +
  32644. +# Format of library name prefix.
  32645. +libname_spec=$lt_libname_spec
  32646. +
  32647. +# List of archive names. First name is the real one, the rest are links.
  32648. +# The last name is the one that the linker finds with -lNAME.
  32649. +library_names_spec=$lt_library_names_spec
  32650. +
  32651. +# The coded name of the library, if different from the real name.
  32652. +soname_spec=$lt_soname_spec
  32653. +
  32654. +# Commands used to build and install an old-style archive.
  32655. +RANLIB=$lt_RANLIB
  32656. +old_archive_cmds=$lt_old_archive_cmds_RC
  32657. +old_postinstall_cmds=$lt_old_postinstall_cmds
  32658. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32659. +
  32660. +# Create an old-style archive from a shared archive.
  32661. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  32662. +
  32663. +# Create a temporary old-style archive to link instead of a shared archive.
  32664. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  32665. +
  32666. +# Commands used to build and install a shared archive.
  32667. +archive_cmds=$lt_archive_cmds_RC
  32668. +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  32669. +postinstall_cmds=$lt_postinstall_cmds
  32670. +postuninstall_cmds=$lt_postuninstall_cmds
  32671. +
  32672. +# Commands used to build a loadable module (assumed same as above if empty)
  32673. +module_cmds=$lt_module_cmds_RC
  32674. +module_expsym_cmds=$lt_module_expsym_cmds_RC
  32675. +
  32676. +# Commands to strip libraries.
  32677. +old_striplib=$lt_old_striplib
  32678. +striplib=$lt_striplib
  32679. +
  32680. +# Dependencies to place before the objects being linked to create a
  32681. +# shared library.
  32682. +predep_objects=$lt_predep_objects_RC
  32683. +
  32684. +# Dependencies to place after the objects being linked to create a
  32685. +# shared library.
  32686. +postdep_objects=$lt_postdep_objects_RC
  32687. +
  32688. +# Dependencies to place before the objects being linked to create a
  32689. +# shared library.
  32690. +predeps=$lt_predeps_RC
  32691. +
  32692. +# Dependencies to place after the objects being linked to create a
  32693. +# shared library.
  32694. +postdeps=$lt_postdeps_RC
  32695. +
  32696. +# The library search path used internally by the compiler when linking
  32697. +# a shared library.
  32698. +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  32699. +
  32700. +# Method to check whether dependent libraries are shared objects.
  32701. +deplibs_check_method=$lt_deplibs_check_method
  32702. +
  32703. +# Command to use when deplibs_check_method == file_magic.
  32704. +file_magic_cmd=$lt_file_magic_cmd
  32705. +
  32706. +# Flag that allows shared libraries with undefined symbols to be built.
  32707. +allow_undefined_flag=$lt_allow_undefined_flag_RC
  32708. +
  32709. +# Flag that forces no undefined symbols.
  32710. +no_undefined_flag=$lt_no_undefined_flag_RC
  32711. +
  32712. +# Commands used to finish a libtool library installation in a directory.
  32713. +finish_cmds=$lt_finish_cmds
  32714. +
  32715. +# Same as above, but a single script fragment to be evaled but not shown.
  32716. +finish_eval=$lt_finish_eval
  32717. +
  32718. +# Take the output of nm and produce a listing of raw symbols and C names.
  32719. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32720. +
  32721. +# Transform the output of nm in a proper C declaration
  32722. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32723. +
  32724. +# Transform the output of nm in a C name address pair
  32725. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32726. +
  32727. +# This is the shared library runtime path variable.
  32728. +runpath_var=$runpath_var
  32729. +
  32730. +# This is the shared library path variable.
  32731. +shlibpath_var=$shlibpath_var
  32732. +
  32733. +# Is shlibpath searched before the hard-coded library search path?
  32734. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32735. +
  32736. +# How to hardcode a shared library path into an executable.
  32737. +hardcode_action=$hardcode_action_RC
  32738. +
  32739. +# Whether we should hardcode library paths into libraries.
  32740. +hardcode_into_libs=$hardcode_into_libs
  32741. +
  32742. +# Flag to hardcode \$libdir into a binary during linking.
  32743. +# This must work even if \$libdir does not exist.
  32744. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  32745. +
  32746. +# If ld is used when linking, flag to hardcode \$libdir into
  32747. +# a binary during linking. This must work even if \$libdir does
  32748. +# not exist.
  32749. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  32750. +
  32751. +# Whether we need a single -rpath flag with a separated argument.
  32752. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  32753. +
  32754. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  32755. +# resulting binary.
  32756. +hardcode_direct=$hardcode_direct_RC
  32757. +
  32758. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  32759. +# resulting binary.
  32760. +hardcode_minus_L=$hardcode_minus_L_RC
  32761. +
  32762. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  32763. +# the resulting binary.
  32764. +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  32765. +
  32766. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  32767. +# and all subsequent libraries and executables linked against it.
  32768. +hardcode_automatic=$hardcode_automatic_RC
  32769. +
  32770. +# Variables whose values should be saved in libtool wrapper scripts and
  32771. +# restored at relink time.
  32772. +variables_saved_for_relink="$variables_saved_for_relink"
  32773. +
  32774. +# Whether libtool must link a program against all its dependency libraries.
  32775. +link_all_deplibs=$link_all_deplibs_RC
  32776. +
  32777. +# Compile-time system search path for libraries
  32778. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32779. +
  32780. +# Run-time system search path for libraries
  32781. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  32782. +
  32783. +# Fix the shell variable \$srcfile for the compiler.
  32784. +fix_srcfile_path="$fix_srcfile_path_RC"
  32785. +
  32786. +# Set to yes if exported symbols are required.
  32787. +always_export_symbols=$always_export_symbols_RC
  32788. +
  32789. +# The commands to list exported symbols.
  32790. +export_symbols_cmds=$lt_export_symbols_cmds_RC
  32791. +
  32792. +# The commands to extract the exported symbol list from a shared archive.
  32793. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32794. +
  32795. +# Symbols that should not be listed in the preloaded symbols.
  32796. +exclude_expsyms=$lt_exclude_expsyms_RC
  32797. +
  32798. +# Symbols that must always be exported.
  32799. +include_expsyms=$lt_include_expsyms_RC
  32800. +
  32801. +# ### END LIBTOOL TAG CONFIG: $tagname
  32802. +
  32803. +__EOF__
  32804. +
  32805. +
  32806. +else
  32807. + # If there is no Makefile yet, we rely on a make rule to execute
  32808. + # `config.status --recheck' to rerun these tests and create the
  32809. + # libtool script then.
  32810. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  32811. + if test -f "$ltmain_in"; then
  32812. + test -f Makefile && make "$ltmain"
  32813. + fi
  32814. +fi
  32815. +
  32816. +
  32817. +ac_ext=c
  32818. +ac_cpp='$CPP $CPPFLAGS'
  32819. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32820. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32821. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32822. +
  32823. +CC="$lt_save_CC"
  32824. +
  32825. + ;;
  32826. +
  32827. + *)
  32828. + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  32829. +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  32830. + { (exit 1); exit 1; }; }
  32831. + ;;
  32832. + esac
  32833. +
  32834. + # Append the new tag name to the list of available tags.
  32835. + if test -n "$tagname" ; then
  32836. + available_tags="$available_tags $tagname"
  32837. + fi
  32838. + fi
  32839. + done
  32840. + IFS="$lt_save_ifs"
  32841. +
  32842. + # Now substitute the updated list of available tags.
  32843. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  32844. + mv "${ofile}T" "$ofile"
  32845. + chmod +x "$ofile"
  32846. + else
  32847. + rm -f "${ofile}T"
  32848. + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  32849. +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  32850. + { (exit 1); exit 1; }; }
  32851. + fi
  32852. +fi
  32853. +
  32854. +
  32855. +
  32856. +# This can be used to rebuild libtool when needed
  32857. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  32858. +
  32859. +# Always use our own libtool.
  32860. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  32861. +
  32862. +# Prevent multiple expansion
  32863. +
  32864. +
  32865. +
  32866. +
  32867. +
  32868. +
  32869. +
  32870. +
  32871. +
  32872. +
  32873. +
  32874. +
  32875. +
  32876. +
  32877. +
  32878. +
  32879. +
  32880. +
  32881. +
  32882. +
  32883. +ac_ext=c
  32884. +ac_cpp='$CPP $CPPFLAGS'
  32885. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  32886. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  32887. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  32888. +if test -n "$ac_tool_prefix"; then
  32889. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  32890. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  32891. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  32892. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  32893. +if test "${ac_cv_prog_CC+set}" = set; then
  32894. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32895. +else
  32896. + if test -n "$CC"; then
  32897. + ac_cv_prog_CC="$CC" # Let the user override the test.
  32898. +else
  32899. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32900. +for as_dir in $PATH
  32901. +do
  32902. + IFS=$as_save_IFS
  32903. + test -z "$as_dir" && as_dir=.
  32904. + for ac_exec_ext in '' $ac_executable_extensions; do
  32905. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32906. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  32907. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32908. + break 2
  32909. + fi
  32910. +done
  32911. +done
  32912. +IFS=$as_save_IFS
  32913. +
  32914. +fi
  32915. +fi
  32916. +CC=$ac_cv_prog_CC
  32917. +if test -n "$CC"; then
  32918. + { echo "$as_me:$LINENO: result: $CC" >&5
  32919. +echo "${ECHO_T}$CC" >&6; }
  32920. +else
  32921. + { echo "$as_me:$LINENO: result: no" >&5
  32922. +echo "${ECHO_T}no" >&6; }
  32923. +fi
  32924. +
  32925. +
  32926. +fi
  32927. +if test -z "$ac_cv_prog_CC"; then
  32928. + ac_ct_CC=$CC
  32929. + # Extract the first word of "gcc", so it can be a program name with args.
  32930. +set dummy gcc; ac_word=$2
  32931. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  32932. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  32933. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  32934. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32935. +else
  32936. + if test -n "$ac_ct_CC"; then
  32937. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  32938. +else
  32939. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32940. +for as_dir in $PATH
  32941. +do
  32942. + IFS=$as_save_IFS
  32943. + test -z "$as_dir" && as_dir=.
  32944. + for ac_exec_ext in '' $ac_executable_extensions; do
  32945. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  32946. + ac_cv_prog_ac_ct_CC="gcc"
  32947. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  32948. + break 2
  32949. + fi
  32950. +done
  32951. +done
  32952. +IFS=$as_save_IFS
  32953. +
  32954. +fi
  32955. +fi
  32956. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  32957. +if test -n "$ac_ct_CC"; then
  32958. + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  32959. +echo "${ECHO_T}$ac_ct_CC" >&6; }
  32960. +else
  32961. + { echo "$as_me:$LINENO: result: no" >&5
  32962. +echo "${ECHO_T}no" >&6; }
  32963. +fi
  32964. +
  32965. + if test "x$ac_ct_CC" = x; then
  32966. + CC=""
  32967. + else
  32968. + case $cross_compiling:$ac_tool_warned in
  32969. +yes:)
  32970. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  32971. +whose name does not start with the host triplet. If you think this
  32972. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  32973. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  32974. +whose name does not start with the host triplet. If you think this
  32975. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  32976. +ac_tool_warned=yes ;;
  32977. +esac
  32978. + CC=$ac_ct_CC
  32979. + fi
  32980. +else
  32981. + CC="$ac_cv_prog_CC"
  32982. +fi
  32983. +
  32984. +if test -z "$CC"; then
  32985. + if test -n "$ac_tool_prefix"; then
  32986. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  32987. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  32988. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  32989. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  32990. +if test "${ac_cv_prog_CC+set}" = set; then
  32991. + echo $ECHO_N "(cached) $ECHO_C" >&6
  32992. +else
  32993. + if test -n "$CC"; then
  32994. + ac_cv_prog_CC="$CC" # Let the user override the test.
  32995. +else
  32996. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  32997. +for as_dir in $PATH
  32998. +do
  32999. + IFS=$as_save_IFS
  33000. + test -z "$as_dir" && as_dir=.
  33001. + for ac_exec_ext in '' $ac_executable_extensions; do
  33002. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  33003. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  33004. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33005. + break 2
  33006. + fi
  33007. +done
  33008. +done
  33009. +IFS=$as_save_IFS
  33010. +
  33011. +fi
  33012. +fi
  33013. +CC=$ac_cv_prog_CC
  33014. +if test -n "$CC"; then
  33015. + { echo "$as_me:$LINENO: result: $CC" >&5
  33016. +echo "${ECHO_T}$CC" >&6; }
  33017. +else
  33018. + { echo "$as_me:$LINENO: result: no" >&5
  33019. +echo "${ECHO_T}no" >&6; }
  33020. +fi
  33021. +
  33022. +
  33023. + fi
  33024. +fi
  33025. +if test -z "$CC"; then
  33026. + # Extract the first word of "cc", so it can be a program name with args.
  33027. +set dummy cc; ac_word=$2
  33028. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  33029. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  33030. +if test "${ac_cv_prog_CC+set}" = set; then
  33031. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33032. +else
  33033. + if test -n "$CC"; then
  33034. + ac_cv_prog_CC="$CC" # Let the user override the test.
  33035. +else
  33036. + ac_prog_rejected=no
  33037. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33038. +for as_dir in $PATH
  33039. +do
  33040. + IFS=$as_save_IFS
  33041. + test -z "$as_dir" && as_dir=.
  33042. + for ac_exec_ext in '' $ac_executable_extensions; do
  33043. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  33044. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  33045. + ac_prog_rejected=yes
  33046. + continue
  33047. + fi
  33048. + ac_cv_prog_CC="cc"
  33049. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33050. + break 2
  33051. + fi
  33052. +done
  33053. +done
  33054. +IFS=$as_save_IFS
  33055. +
  33056. +if test $ac_prog_rejected = yes; then
  33057. + # We found a bogon in the path, so make sure we never use it.
  33058. + set dummy $ac_cv_prog_CC
  33059. + shift
  33060. + if test $# != 0; then
  33061. + # We chose a different compiler from the bogus one.
  33062. + # However, it has the same basename, so the bogon will be chosen
  33063. + # first if we set CC to just the basename; use the full file name.
  33064. + shift
  33065. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  33066. + fi
  33067. +fi
  33068. +fi
  33069. +fi
  33070. +CC=$ac_cv_prog_CC
  33071. +if test -n "$CC"; then
  33072. + { echo "$as_me:$LINENO: result: $CC" >&5
  33073. +echo "${ECHO_T}$CC" >&6; }
  33074. +else
  33075. + { echo "$as_me:$LINENO: result: no" >&5
  33076. +echo "${ECHO_T}no" >&6; }
  33077. +fi
  33078. +
  33079. +
  33080. +fi
  33081. +if test -z "$CC"; then
  33082. + if test -n "$ac_tool_prefix"; then
  33083. + for ac_prog in cl.exe
  33084. + do
  33085. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  33086. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  33087. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  33088. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  33089. +if test "${ac_cv_prog_CC+set}" = set; then
  33090. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33091. +else
  33092. + if test -n "$CC"; then
  33093. + ac_cv_prog_CC="$CC" # Let the user override the test.
  33094. +else
  33095. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33096. +for as_dir in $PATH
  33097. +do
  33098. + IFS=$as_save_IFS
  33099. + test -z "$as_dir" && as_dir=.
  33100. + for ac_exec_ext in '' $ac_executable_extensions; do
  33101. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  33102. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  33103. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33104. + break 2
  33105. + fi
  33106. +done
  33107. +done
  33108. +IFS=$as_save_IFS
  33109. +
  33110. +fi
  33111. +fi
  33112. +CC=$ac_cv_prog_CC
  33113. +if test -n "$CC"; then
  33114. + { echo "$as_me:$LINENO: result: $CC" >&5
  33115. +echo "${ECHO_T}$CC" >&6; }
  33116. +else
  33117. + { echo "$as_me:$LINENO: result: no" >&5
  33118. +echo "${ECHO_T}no" >&6; }
  33119. +fi
  33120. +
  33121. +
  33122. + test -n "$CC" && break
  33123. + done
  33124. +fi
  33125. +if test -z "$CC"; then
  33126. + ac_ct_CC=$CC
  33127. + for ac_prog in cl.exe
  33128. +do
  33129. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  33130. +set dummy $ac_prog; ac_word=$2
  33131. +{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  33132. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  33133. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  33134. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33135. +else
  33136. + if test -n "$ac_ct_CC"; then
  33137. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  33138. +else
  33139. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  33140. +for as_dir in $PATH
  33141. +do
  33142. + IFS=$as_save_IFS
  33143. + test -z "$as_dir" && as_dir=.
  33144. + for ac_exec_ext in '' $ac_executable_extensions; do
  33145. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  33146. + ac_cv_prog_ac_ct_CC="$ac_prog"
  33147. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  33148. + break 2
  33149. + fi
  33150. +done
  33151. +done
  33152. +IFS=$as_save_IFS
  33153. +
  33154. +fi
  33155. +fi
  33156. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  33157. +if test -n "$ac_ct_CC"; then
  33158. + { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  33159. +echo "${ECHO_T}$ac_ct_CC" >&6; }
  33160. +else
  33161. + { echo "$as_me:$LINENO: result: no" >&5
  33162. +echo "${ECHO_T}no" >&6; }
  33163. +fi
  33164. +
  33165. +
  33166. + test -n "$ac_ct_CC" && break
  33167. +done
  33168. +
  33169. + if test "x$ac_ct_CC" = x; then
  33170. + CC=""
  33171. + else
  33172. + case $cross_compiling:$ac_tool_warned in
  33173. +yes:)
  33174. +{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  33175. +whose name does not start with the host triplet. If you think this
  33176. +configuration is useful to you, please write to autoconf@gnu.org." >&5
  33177. +echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  33178. +whose name does not start with the host triplet. If you think this
  33179. +configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  33180. +ac_tool_warned=yes ;;
  33181. +esac
  33182. + CC=$ac_ct_CC
  33183. + fi
  33184. +fi
  33185. +
  33186. +fi
  33187. +
  33188. +
  33189. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  33190. +See \`config.log' for more details." >&5
  33191. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  33192. +See \`config.log' for more details." >&2;}
  33193. + { (exit 1); exit 1; }; }
  33194. +
  33195. +# Provide some information about the compiler.
  33196. +echo "$as_me:$LINENO: checking for C compiler version" >&5
  33197. +ac_compiler=`set X $ac_compile; echo $2`
  33198. +{ (ac_try="$ac_compiler --version >&5"
  33199. +case "(($ac_try" in
  33200. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33201. + *) ac_try_echo=$ac_try;;
  33202. +esac
  33203. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33204. + (eval "$ac_compiler --version >&5") 2>&5
  33205. + ac_status=$?
  33206. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33207. + (exit $ac_status); }
  33208. +{ (ac_try="$ac_compiler -v >&5"
  33209. +case "(($ac_try" in
  33210. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33211. + *) ac_try_echo=$ac_try;;
  33212. +esac
  33213. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33214. + (eval "$ac_compiler -v >&5") 2>&5
  33215. + ac_status=$?
  33216. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33217. + (exit $ac_status); }
  33218. +{ (ac_try="$ac_compiler -V >&5"
  33219. +case "(($ac_try" in
  33220. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33221. + *) ac_try_echo=$ac_try;;
  33222. +esac
  33223. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33224. + (eval "$ac_compiler -V >&5") 2>&5
  33225. + ac_status=$?
  33226. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33227. + (exit $ac_status); }
  33228. +
  33229. +{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  33230. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  33231. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  33232. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33233. +else
  33234. + cat >conftest.$ac_ext <<_ACEOF
  33235. +/* confdefs.h. */
  33236. +_ACEOF
  33237. +cat confdefs.h >>conftest.$ac_ext
  33238. +cat >>conftest.$ac_ext <<_ACEOF
  33239. +/* end confdefs.h. */
  33240. +
  33241. +int
  33242. +main ()
  33243. +{
  33244. +#ifndef __GNUC__
  33245. + choke me
  33246. +#endif
  33247. +
  33248. + ;
  33249. + return 0;
  33250. +}
  33251. +_ACEOF
  33252. +rm -f conftest.$ac_objext
  33253. +if { (ac_try="$ac_compile"
  33254. +case "(($ac_try" in
  33255. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33256. + *) ac_try_echo=$ac_try;;
  33257. +esac
  33258. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33259. + (eval "$ac_compile") 2>conftest.er1
  33260. + ac_status=$?
  33261. + grep -v '^ *+' conftest.er1 >conftest.err
  33262. + rm -f conftest.er1
  33263. + cat conftest.err >&5
  33264. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33265. + (exit $ac_status); } && {
  33266. + test -z "$ac_c_werror_flag" ||
  33267. + test ! -s conftest.err
  33268. + } && test -s conftest.$ac_objext; then
  33269. + ac_compiler_gnu=yes
  33270. +else
  33271. + echo "$as_me: failed program was:" >&5
  33272. +sed 's/^/| /' conftest.$ac_ext >&5
  33273. +
  33274. + ac_compiler_gnu=no
  33275. +fi
  33276. +
  33277. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33278. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  33279. +
  33280. +fi
  33281. +{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  33282. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  33283. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  33284. +ac_test_CFLAGS=${CFLAGS+set}
  33285. +ac_save_CFLAGS=$CFLAGS
  33286. +{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  33287. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  33288. +if test "${ac_cv_prog_cc_g+set}" = set; then
  33289. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33290. +else
  33291. + ac_save_c_werror_flag=$ac_c_werror_flag
  33292. + ac_c_werror_flag=yes
  33293. + ac_cv_prog_cc_g=no
  33294. + CFLAGS="-g"
  33295. + cat >conftest.$ac_ext <<_ACEOF
  33296. +/* confdefs.h. */
  33297. +_ACEOF
  33298. +cat confdefs.h >>conftest.$ac_ext
  33299. +cat >>conftest.$ac_ext <<_ACEOF
  33300. +/* end confdefs.h. */
  33301. +
  33302. +int
  33303. +main ()
  33304. +{
  33305. +
  33306. + ;
  33307. + return 0;
  33308. +}
  33309. +_ACEOF
  33310. +rm -f conftest.$ac_objext
  33311. +if { (ac_try="$ac_compile"
  33312. +case "(($ac_try" in
  33313. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33314. + *) ac_try_echo=$ac_try;;
  33315. +esac
  33316. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33317. + (eval "$ac_compile") 2>conftest.er1
  33318. + ac_status=$?
  33319. + grep -v '^ *+' conftest.er1 >conftest.err
  33320. + rm -f conftest.er1
  33321. + cat conftest.err >&5
  33322. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33323. + (exit $ac_status); } && {
  33324. + test -z "$ac_c_werror_flag" ||
  33325. + test ! -s conftest.err
  33326. + } && test -s conftest.$ac_objext; then
  33327. + ac_cv_prog_cc_g=yes
  33328. +else
  33329. + echo "$as_me: failed program was:" >&5
  33330. +sed 's/^/| /' conftest.$ac_ext >&5
  33331. +
  33332. + CFLAGS=""
  33333. + cat >conftest.$ac_ext <<_ACEOF
  33334. +/* confdefs.h. */
  33335. +_ACEOF
  33336. +cat confdefs.h >>conftest.$ac_ext
  33337. +cat >>conftest.$ac_ext <<_ACEOF
  33338. +/* end confdefs.h. */
  33339. +
  33340. +int
  33341. +main ()
  33342. +{
  33343. +
  33344. + ;
  33345. + return 0;
  33346. +}
  33347. +_ACEOF
  33348. +rm -f conftest.$ac_objext
  33349. +if { (ac_try="$ac_compile"
  33350. +case "(($ac_try" in
  33351. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33352. + *) ac_try_echo=$ac_try;;
  33353. +esac
  33354. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33355. + (eval "$ac_compile") 2>conftest.er1
  33356. + ac_status=$?
  33357. + grep -v '^ *+' conftest.er1 >conftest.err
  33358. + rm -f conftest.er1
  33359. + cat conftest.err >&5
  33360. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33361. + (exit $ac_status); } && {
  33362. + test -z "$ac_c_werror_flag" ||
  33363. + test ! -s conftest.err
  33364. + } && test -s conftest.$ac_objext; then
  33365. + :
  33366. +else
  33367. + echo "$as_me: failed program was:" >&5
  33368. +sed 's/^/| /' conftest.$ac_ext >&5
  33369. +
  33370. + ac_c_werror_flag=$ac_save_c_werror_flag
  33371. + CFLAGS="-g"
  33372. + cat >conftest.$ac_ext <<_ACEOF
  33373. +/* confdefs.h. */
  33374. +_ACEOF
  33375. +cat confdefs.h >>conftest.$ac_ext
  33376. +cat >>conftest.$ac_ext <<_ACEOF
  33377. +/* end confdefs.h. */
  33378. +
  33379. +int
  33380. +main ()
  33381. +{
  33382. +
  33383. + ;
  33384. + return 0;
  33385. +}
  33386. +_ACEOF
  33387. +rm -f conftest.$ac_objext
  33388. +if { (ac_try="$ac_compile"
  33389. +case "(($ac_try" in
  33390. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33391. + *) ac_try_echo=$ac_try;;
  33392. +esac
  33393. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33394. + (eval "$ac_compile") 2>conftest.er1
  33395. + ac_status=$?
  33396. + grep -v '^ *+' conftest.er1 >conftest.err
  33397. + rm -f conftest.er1
  33398. + cat conftest.err >&5
  33399. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33400. + (exit $ac_status); } && {
  33401. + test -z "$ac_c_werror_flag" ||
  33402. + test ! -s conftest.err
  33403. + } && test -s conftest.$ac_objext; then
  33404. + ac_cv_prog_cc_g=yes
  33405. +else
  33406. + echo "$as_me: failed program was:" >&5
  33407. +sed 's/^/| /' conftest.$ac_ext >&5
  33408. +
  33409. +
  33410. +fi
  33411. +
  33412. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33413. +fi
  33414. +
  33415. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33416. +fi
  33417. +
  33418. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  33419. + ac_c_werror_flag=$ac_save_c_werror_flag
  33420. +fi
  33421. +{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  33422. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  33423. +if test "$ac_test_CFLAGS" = set; then
  33424. + CFLAGS=$ac_save_CFLAGS
  33425. +elif test $ac_cv_prog_cc_g = yes; then
  33426. + if test "$GCC" = yes; then
  33427. + CFLAGS="-g -O2"
  33428. + else
  33429. + CFLAGS="-g"
  33430. + fi
  33431. +else
  33432. + if test "$GCC" = yes; then
  33433. + CFLAGS="-O2"
  33434. + else
  33435. + CFLAGS=
  33436. + fi
  33437. +fi
  33438. +{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  33439. +echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  33440. +if test "${ac_cv_prog_cc_c89+set}" = set; then
  33441. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33442. +else
  33443. + ac_cv_prog_cc_c89=no
  33444. +ac_save_CC=$CC
  33445. +cat >conftest.$ac_ext <<_ACEOF
  33446. +/* confdefs.h. */
  33447. +_ACEOF
  33448. +cat confdefs.h >>conftest.$ac_ext
  33449. +cat >>conftest.$ac_ext <<_ACEOF
  33450. +/* end confdefs.h. */
  33451. +#include <stdarg.h>
  33452. +#include <stdio.h>
  33453. +#include <sys/types.h>
  33454. +#include <sys/stat.h>
  33455. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  33456. +struct buf { int x; };
  33457. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  33458. +static char *e (p, i)
  33459. + char **p;
  33460. + int i;
  33461. +{
  33462. + return p[i];
  33463. +}
  33464. +static char *f (char * (*g) (char **, int), char **p, ...)
  33465. +{
  33466. + char *s;
  33467. + va_list v;
  33468. + va_start (v,p);
  33469. + s = g (p, va_arg (v,int));
  33470. + va_end (v);
  33471. + return s;
  33472. +}
  33473. +
  33474. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  33475. + function prototypes and stuff, but not '\xHH' hex character constants.
  33476. + These don't provoke an error unfortunately, instead are silently treated
  33477. + as 'x'. The following induces an error, until -std is added to get
  33478. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  33479. + array size at least. It's necessary to write '\x00'==0 to get something
  33480. + that's true only with -std. */
  33481. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  33482. +
  33483. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  33484. + inside strings and character constants. */
  33485. +#define FOO(x) 'x'
  33486. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  33487. +
  33488. +int test (int i, double x);
  33489. +struct s1 {int (*f) (int a);};
  33490. +struct s2 {int (*f) (double a);};
  33491. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  33492. +int argc;
  33493. +char **argv;
  33494. +int
  33495. +main ()
  33496. +{
  33497. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  33498. + ;
  33499. + return 0;
  33500. +}
  33501. +_ACEOF
  33502. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  33503. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  33504. +do
  33505. + CC="$ac_save_CC $ac_arg"
  33506. + rm -f conftest.$ac_objext
  33507. +if { (ac_try="$ac_compile"
  33508. +case "(($ac_try" in
  33509. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33510. + *) ac_try_echo=$ac_try;;
  33511. +esac
  33512. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33513. + (eval "$ac_compile") 2>conftest.er1
  33514. + ac_status=$?
  33515. + grep -v '^ *+' conftest.er1 >conftest.err
  33516. + rm -f conftest.er1
  33517. + cat conftest.err >&5
  33518. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33519. + (exit $ac_status); } && {
  33520. + test -z "$ac_c_werror_flag" ||
  33521. + test ! -s conftest.err
  33522. + } && test -s conftest.$ac_objext; then
  33523. + ac_cv_prog_cc_c89=$ac_arg
  33524. +else
  33525. + echo "$as_me: failed program was:" >&5
  33526. +sed 's/^/| /' conftest.$ac_ext >&5
  33527. +
  33528. +
  33529. +fi
  33530. +
  33531. +rm -f core conftest.err conftest.$ac_objext
  33532. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  33533. +done
  33534. +rm -f conftest.$ac_ext
  33535. +CC=$ac_save_CC
  33536. +
  33537. +fi
  33538. +# AC_CACHE_VAL
  33539. +case "x$ac_cv_prog_cc_c89" in
  33540. + x)
  33541. + { echo "$as_me:$LINENO: result: none needed" >&5
  33542. +echo "${ECHO_T}none needed" >&6; } ;;
  33543. + xno)
  33544. + { echo "$as_me:$LINENO: result: unsupported" >&5
  33545. +echo "${ECHO_T}unsupported" >&6; } ;;
  33546. + *)
  33547. + CC="$CC $ac_cv_prog_cc_c89"
  33548. + { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  33549. +echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  33550. +esac
  33551. +
  33552. +
  33553. +ac_ext=c
  33554. +ac_cpp='$CPP $CPPFLAGS'
  33555. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33556. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33557. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33558. +
  33559. +depcc="$CC" am_compiler_list=
  33560. +
  33561. +{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  33562. +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  33563. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  33564. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33565. +else
  33566. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  33567. + # We make a subdir and do the tests there. Otherwise we can end up
  33568. + # making bogus files that we don't know about and never remove. For
  33569. + # instance it was reported that on HP-UX the gcc test will end up
  33570. + # making a dummy file named `D' -- because `-MD' means `put the output
  33571. + # in D'.
  33572. + mkdir conftest.dir
  33573. + # Copy depcomp to subdir because otherwise we won't find it if we're
  33574. + # using a relative directory.
  33575. + cp "$am_depcomp" conftest.dir
  33576. + cd conftest.dir
  33577. + # We will build objects and dependencies in a subdirectory because
  33578. + # it helps to detect inapplicable dependency modes. For instance
  33579. + # both Tru64's cc and ICC support -MD to output dependencies as a
  33580. + # side effect of compilation, but ICC will put the dependencies in
  33581. + # the current directory while Tru64 will put them in the object
  33582. + # directory.
  33583. + mkdir sub
  33584. +
  33585. + am_cv_CC_dependencies_compiler_type=none
  33586. + if test "$am_compiler_list" = ""; then
  33587. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  33588. + fi
  33589. + for depmode in $am_compiler_list; do
  33590. + # Setup a source with many dependencies, because some compilers
  33591. + # like to wrap large dependency lists on column 80 (with \), and
  33592. + # we should not choose a depcomp mode which is confused by this.
  33593. + #
  33594. + # We need to recreate these files for each test, as the compiler may
  33595. + # overwrite some of them when testing with obscure command lines.
  33596. + # This happens at least with the AIX C compiler.
  33597. + : > sub/conftest.c
  33598. + for i in 1 2 3 4 5 6; do
  33599. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  33600. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  33601. + # Solaris 8's {/usr,}/bin/sh.
  33602. + touch sub/conftst$i.h
  33603. + done
  33604. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  33605. +
  33606. + case $depmode in
  33607. + nosideeffect)
  33608. + # after this tag, mechanisms are not by side-effect, so they'll
  33609. + # only be used when explicitly requested
  33610. + if test "x$enable_dependency_tracking" = xyes; then
  33611. + continue
  33612. + else
  33613. + break
  33614. + fi
  33615. + ;;
  33616. + none) break ;;
  33617. + esac
  33618. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  33619. + # mode. It turns out that the SunPro C++ compiler does not properly
  33620. + # handle `-M -o', and we need to detect this.
  33621. + if depmode=$depmode \
  33622. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  33623. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  33624. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  33625. + >/dev/null 2>conftest.err &&
  33626. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  33627. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  33628. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  33629. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  33630. + # icc doesn't choke on unknown options, it will just issue warnings
  33631. + # or remarks (even with -Werror). So we grep stderr for any message
  33632. + # that says an option was ignored or not supported.
  33633. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  33634. + # icc: Command line warning: ignoring option '-M'; no argument required
  33635. + # The diagnosis changed in icc 8.0:
  33636. + # icc: Command line remark: option '-MP' not supported
  33637. + if (grep 'ignoring option' conftest.err ||
  33638. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  33639. + am_cv_CC_dependencies_compiler_type=$depmode
  33640. + break
  33641. + fi
  33642. + fi
  33643. + done
  33644. +
  33645. + cd ..
  33646. + rm -rf conftest.dir
  33647. +else
  33648. + am_cv_CC_dependencies_compiler_type=none
  33649. +fi
  33650. +
  33651. +fi
  33652. +{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  33653. +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  33654. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  33655. +
  33656. + if
  33657. + test "x$enable_dependency_tracking" != xno \
  33658. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  33659. + am__fastdepCC_TRUE=
  33660. + am__fastdepCC_FALSE='#'
  33661. +else
  33662. + am__fastdepCC_TRUE='#'
  33663. + am__fastdepCC_FALSE=
  33664. +fi
  33665. +
  33666. +
  33667. +if test "x$CC" != xcc; then
  33668. + { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  33669. +echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  33670. +else
  33671. + { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  33672. +echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  33673. +fi
  33674. +set dummy $CC; ac_cc=`echo $2 |
  33675. + sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  33676. +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  33677. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33678. +else
  33679. + cat >conftest.$ac_ext <<_ACEOF
  33680. +/* confdefs.h. */
  33681. +_ACEOF
  33682. +cat confdefs.h >>conftest.$ac_ext
  33683. +cat >>conftest.$ac_ext <<_ACEOF
  33684. +/* end confdefs.h. */
  33685. +
  33686. +int
  33687. +main ()
  33688. +{
  33689. +
  33690. + ;
  33691. + return 0;
  33692. +}
  33693. +_ACEOF
  33694. +# Make sure it works both with $CC and with simple cc.
  33695. +# We do the test twice because some compilers refuse to overwrite an
  33696. +# existing .o file with -o, though they will create one.
  33697. +ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  33698. +rm -f conftest2.*
  33699. +if { (case "(($ac_try" in
  33700. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33701. + *) ac_try_echo=$ac_try;;
  33702. +esac
  33703. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33704. + (eval "$ac_try") 2>&5
  33705. + ac_status=$?
  33706. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33707. + (exit $ac_status); } &&
  33708. + test -f conftest2.$ac_objext && { (case "(($ac_try" in
  33709. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33710. + *) ac_try_echo=$ac_try;;
  33711. +esac
  33712. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33713. + (eval "$ac_try") 2>&5
  33714. + ac_status=$?
  33715. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33716. + (exit $ac_status); };
  33717. +then
  33718. + eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  33719. + if test "x$CC" != xcc; then
  33720. + # Test first that cc exists at all.
  33721. + if { ac_try='cc -c conftest.$ac_ext >&5'
  33722. + { (case "(($ac_try" in
  33723. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33724. + *) ac_try_echo=$ac_try;;
  33725. +esac
  33726. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33727. + (eval "$ac_try") 2>&5
  33728. + ac_status=$?
  33729. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33730. + (exit $ac_status); }; }; then
  33731. + ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  33732. + rm -f conftest2.*
  33733. + if { (case "(($ac_try" in
  33734. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33735. + *) ac_try_echo=$ac_try;;
  33736. +esac
  33737. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33738. + (eval "$ac_try") 2>&5
  33739. + ac_status=$?
  33740. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33741. + (exit $ac_status); } &&
  33742. + test -f conftest2.$ac_objext && { (case "(($ac_try" in
  33743. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33744. + *) ac_try_echo=$ac_try;;
  33745. +esac
  33746. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33747. + (eval "$ac_try") 2>&5
  33748. + ac_status=$?
  33749. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33750. + (exit $ac_status); };
  33751. + then
  33752. + # cc works too.
  33753. + :
  33754. + else
  33755. + # cc exists but doesn't like -o.
  33756. + eval ac_cv_prog_cc_${ac_cc}_c_o=no
  33757. + fi
  33758. + fi
  33759. + fi
  33760. +else
  33761. + eval ac_cv_prog_cc_${ac_cc}_c_o=no
  33762. +fi
  33763. +rm -f core conftest*
  33764. +
  33765. +fi
  33766. +if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  33767. + { echo "$as_me:$LINENO: result: yes" >&5
  33768. +echo "${ECHO_T}yes" >&6; }
  33769. +else
  33770. + { echo "$as_me:$LINENO: result: no" >&5
  33771. +echo "${ECHO_T}no" >&6; }
  33772. +
  33773. +cat >>confdefs.h <<\_ACEOF
  33774. +#define NO_MINUS_C_MINUS_O 1
  33775. +_ACEOF
  33776. +
  33777. +fi
  33778. +
  33779. +# FIXME: we rely on the cache variable name because
  33780. +# there is no other way.
  33781. +set dummy $CC
  33782. +ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  33783. +if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  33784. + # Losing compiler, so override with the script.
  33785. + # FIXME: It is wrong to rewrite CC.
  33786. + # But if we don't then we get into trouble of one sort or another.
  33787. + # A longer-term fix would be to have automake use am__CC in this case,
  33788. + # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  33789. + CC="$am_aux_dir/compile $CC"
  33790. +fi
  33791. +
  33792. +
  33793. +
  33794. +# compatibility for automake < 1.8
  33795. +if test -z "$mkdir_p"; then
  33796. + mkdir_p="../mkinstalldirs"
  33797. +
  33798. +fi
  33799. +
  33800. +case $target_os in
  33801. + *linux*) arch=linux;;
  33802. + *bsd*) arch=bsd;;
  33803. + *darwin*) arch=darwin;;
  33804. + *) arch=unknown;;
  33805. +esac
  33806. +
  33807. +if test "$ac_env_CFLAGS_set" != set; then
  33808. + CFLAGS="-Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing"
  33809. +fi
  33810. +
  33811. +# Check whether --enable-kernel-module was given.
  33812. +if test "${enable_kernel_module+set}" = set; then
  33813. + enableval=$enable_kernel_module;
  33814. +fi
  33815. +
  33816. +# Check whether --enable-lib was given.
  33817. +if test "${enable_lib+set}" = set; then
  33818. + enableval=$enable_lib;
  33819. +fi
  33820. +
  33821. +# Check whether --enable-util was given.
  33822. +if test "${enable_util+set}" = set; then
  33823. + enableval=$enable_util;
  33824. +fi
  33825. +
  33826. +# Check whether --enable-example was given.
  33827. +if test "${enable_example+set}" = set; then
  33828. + enableval=$enable_example;
  33829. +fi
  33830. +
  33831. +# Check whether --enable-mtab was given.
  33832. +if test "${enable_mtab+set}" = set; then
  33833. + enableval=$enable_mtab;
  33834. +fi
  33835. +
  33836. +
  33837. +
  33838. +# Check whether --with-pkgconfigdir was given.
  33839. +if test "${with_pkgconfigdir+set}" = set; then
  33840. + withval=$with_pkgconfigdir; pkgconfigdir=$withval
  33841. +else
  33842. + pkgconfigdir='${libdir}/pkgconfig'
  33843. +fi
  33844. +
  33845. +
  33846. +
  33847. +subdirs2="include"
  33848. +
  33849. +if test "$arch" = linux -a "$enable_kernel_module" != "no"; then
  33850. + subdirs="$subdirs kernel"
  33851. +
  33852. +fi
  33853. +
  33854. +if test "$enable_lib" != "no"; then
  33855. + subdirs2="$subdirs2 lib";
  33856. +fi
  33857. +if test "$arch" = linux -a "$enable_util" != "no"; then
  33858. + subdirs2="$subdirs2 util";
  33859. +fi
  33860. +if test "$enable_example" != "no"; then
  33861. + subdirs2="$subdirs2 example";
  33862. +fi
  33863. +if test "$enable_mtab" = "no"; then
  33864. +
  33865. +cat >>confdefs.h <<\_ACEOF
  33866. +#define IGNORE_MTAB 1
  33867. +_ACEOF
  33868. +
  33869. +fi
  33870. +
  33871. +
  33872. +
  33873. +for ac_func in fork setxattr fdatasync
  33874. +do
  33875. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  33876. +{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  33877. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  33878. +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  33879. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33880. +else
  33881. + cat >conftest.$ac_ext <<_ACEOF
  33882. +/* confdefs.h. */
  33883. +_ACEOF
  33884. +cat confdefs.h >>conftest.$ac_ext
  33885. +cat >>conftest.$ac_ext <<_ACEOF
  33886. +/* end confdefs.h. */
  33887. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  33888. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  33889. +#define $ac_func innocuous_$ac_func
  33890. +
  33891. +/* System header to define __stub macros and hopefully few prototypes,
  33892. + which can conflict with char $ac_func (); below.
  33893. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  33894. + <limits.h> exists even on freestanding compilers. */
  33895. +
  33896. +#ifdef __STDC__
  33897. +# include <limits.h>
  33898. +#else
  33899. +# include <assert.h>
  33900. +#endif
  33901. +
  33902. +#undef $ac_func
  33903. +
  33904. +/* Override any GCC internal prototype to avoid an error.
  33905. + Use char because int might match the return type of a GCC
  33906. + builtin and then its argument prototype would still apply. */
  33907. +#ifdef __cplusplus
  33908. +extern "C"
  33909. +#endif
  33910. +char $ac_func ();
  33911. +/* The GNU C library defines this for functions which it implements
  33912. + to always fail with ENOSYS. Some functions are actually named
  33913. + something starting with __ and the normal name is an alias. */
  33914. +#if defined __stub_$ac_func || defined __stub___$ac_func
  33915. +choke me
  33916. +#endif
  33917. +
  33918. +int
  33919. +main ()
  33920. +{
  33921. +return $ac_func ();
  33922. + ;
  33923. + return 0;
  33924. +}
  33925. +_ACEOF
  33926. +rm -f conftest.$ac_objext conftest$ac_exeext
  33927. +if { (ac_try="$ac_link"
  33928. +case "(($ac_try" in
  33929. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33930. + *) ac_try_echo=$ac_try;;
  33931. +esac
  33932. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33933. + (eval "$ac_link") 2>conftest.er1
  33934. + ac_status=$?
  33935. + grep -v '^ *+' conftest.er1 >conftest.err
  33936. + rm -f conftest.er1
  33937. + cat conftest.err >&5
  33938. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33939. + (exit $ac_status); } && {
  33940. + test -z "$ac_c_werror_flag" ||
  33941. + test ! -s conftest.err
  33942. + } && test -s conftest$ac_exeext &&
  33943. + $as_test_x conftest$ac_exeext; then
  33944. + eval "$as_ac_var=yes"
  33945. +else
  33946. + echo "$as_me: failed program was:" >&5
  33947. +sed 's/^/| /' conftest.$ac_ext >&5
  33948. +
  33949. + eval "$as_ac_var=no"
  33950. +fi
  33951. +
  33952. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  33953. + conftest$ac_exeext conftest.$ac_ext
  33954. +fi
  33955. +ac_res=`eval echo '${'$as_ac_var'}'`
  33956. + { echo "$as_me:$LINENO: result: $ac_res" >&5
  33957. +echo "${ECHO_T}$ac_res" >&6; }
  33958. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  33959. + cat >>confdefs.h <<_ACEOF
  33960. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  33961. +_ACEOF
  33962. +
  33963. +fi
  33964. +done
  33965. +
  33966. +{ echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5
  33967. +echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; }
  33968. +if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then
  33969. + echo $ECHO_N "(cached) $ECHO_C" >&6
  33970. +else
  33971. + cat >conftest.$ac_ext <<_ACEOF
  33972. +/* confdefs.h. */
  33973. +_ACEOF
  33974. +cat confdefs.h >>conftest.$ac_ext
  33975. +cat >>conftest.$ac_ext <<_ACEOF
  33976. +/* end confdefs.h. */
  33977. +$ac_includes_default
  33978. +int
  33979. +main ()
  33980. +{
  33981. +static struct stat ac_aggr;
  33982. +if (ac_aggr.st_atim)
  33983. +return 0;
  33984. + ;
  33985. + return 0;
  33986. +}
  33987. +_ACEOF
  33988. +rm -f conftest.$ac_objext
  33989. +if { (ac_try="$ac_compile"
  33990. +case "(($ac_try" in
  33991. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  33992. + *) ac_try_echo=$ac_try;;
  33993. +esac
  33994. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  33995. + (eval "$ac_compile") 2>conftest.er1
  33996. + ac_status=$?
  33997. + grep -v '^ *+' conftest.er1 >conftest.err
  33998. + rm -f conftest.er1
  33999. + cat conftest.err >&5
  34000. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34001. + (exit $ac_status); } && {
  34002. + test -z "$ac_c_werror_flag" ||
  34003. + test ! -s conftest.err
  34004. + } && test -s conftest.$ac_objext; then
  34005. + ac_cv_member_struct_stat_st_atim=yes
  34006. +else
  34007. + echo "$as_me: failed program was:" >&5
  34008. +sed 's/^/| /' conftest.$ac_ext >&5
  34009. +
  34010. + cat >conftest.$ac_ext <<_ACEOF
  34011. +/* confdefs.h. */
  34012. +_ACEOF
  34013. +cat confdefs.h >>conftest.$ac_ext
  34014. +cat >>conftest.$ac_ext <<_ACEOF
  34015. +/* end confdefs.h. */
  34016. +$ac_includes_default
  34017. +int
  34018. +main ()
  34019. +{
  34020. +static struct stat ac_aggr;
  34021. +if (sizeof ac_aggr.st_atim)
  34022. +return 0;
  34023. + ;
  34024. + return 0;
  34025. +}
  34026. +_ACEOF
  34027. +rm -f conftest.$ac_objext
  34028. +if { (ac_try="$ac_compile"
  34029. +case "(($ac_try" in
  34030. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34031. + *) ac_try_echo=$ac_try;;
  34032. +esac
  34033. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34034. + (eval "$ac_compile") 2>conftest.er1
  34035. + ac_status=$?
  34036. + grep -v '^ *+' conftest.er1 >conftest.err
  34037. + rm -f conftest.er1
  34038. + cat conftest.err >&5
  34039. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34040. + (exit $ac_status); } && {
  34041. + test -z "$ac_c_werror_flag" ||
  34042. + test ! -s conftest.err
  34043. + } && test -s conftest.$ac_objext; then
  34044. + ac_cv_member_struct_stat_st_atim=yes
  34045. +else
  34046. + echo "$as_me: failed program was:" >&5
  34047. +sed 's/^/| /' conftest.$ac_ext >&5
  34048. +
  34049. + ac_cv_member_struct_stat_st_atim=no
  34050. +fi
  34051. +
  34052. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34053. +fi
  34054. +
  34055. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34056. +fi
  34057. +{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5
  34058. +echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; }
  34059. +if test $ac_cv_member_struct_stat_st_atim = yes; then
  34060. +
  34061. +cat >>confdefs.h <<_ACEOF
  34062. +#define HAVE_STRUCT_STAT_ST_ATIM 1
  34063. +_ACEOF
  34064. +
  34065. +
  34066. +fi
  34067. +
  34068. +{ echo "$as_me:$LINENO: checking for struct stat.st_atimespec" >&5
  34069. +echo $ECHO_N "checking for struct stat.st_atimespec... $ECHO_C" >&6; }
  34070. +if test "${ac_cv_member_struct_stat_st_atimespec+set}" = set; then
  34071. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34072. +else
  34073. + cat >conftest.$ac_ext <<_ACEOF
  34074. +/* confdefs.h. */
  34075. +_ACEOF
  34076. +cat confdefs.h >>conftest.$ac_ext
  34077. +cat >>conftest.$ac_ext <<_ACEOF
  34078. +/* end confdefs.h. */
  34079. +$ac_includes_default
  34080. +int
  34081. +main ()
  34082. +{
  34083. +static struct stat ac_aggr;
  34084. +if (ac_aggr.st_atimespec)
  34085. +return 0;
  34086. + ;
  34087. + return 0;
  34088. +}
  34089. +_ACEOF
  34090. +rm -f conftest.$ac_objext
  34091. +if { (ac_try="$ac_compile"
  34092. +case "(($ac_try" in
  34093. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34094. + *) ac_try_echo=$ac_try;;
  34095. +esac
  34096. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34097. + (eval "$ac_compile") 2>conftest.er1
  34098. + ac_status=$?
  34099. + grep -v '^ *+' conftest.er1 >conftest.err
  34100. + rm -f conftest.er1
  34101. + cat conftest.err >&5
  34102. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34103. + (exit $ac_status); } && {
  34104. + test -z "$ac_c_werror_flag" ||
  34105. + test ! -s conftest.err
  34106. + } && test -s conftest.$ac_objext; then
  34107. + ac_cv_member_struct_stat_st_atimespec=yes
  34108. +else
  34109. + echo "$as_me: failed program was:" >&5
  34110. +sed 's/^/| /' conftest.$ac_ext >&5
  34111. +
  34112. + cat >conftest.$ac_ext <<_ACEOF
  34113. +/* confdefs.h. */
  34114. +_ACEOF
  34115. +cat confdefs.h >>conftest.$ac_ext
  34116. +cat >>conftest.$ac_ext <<_ACEOF
  34117. +/* end confdefs.h. */
  34118. +$ac_includes_default
  34119. +int
  34120. +main ()
  34121. +{
  34122. +static struct stat ac_aggr;
  34123. +if (sizeof ac_aggr.st_atimespec)
  34124. +return 0;
  34125. + ;
  34126. + return 0;
  34127. +}
  34128. +_ACEOF
  34129. +rm -f conftest.$ac_objext
  34130. +if { (ac_try="$ac_compile"
  34131. +case "(($ac_try" in
  34132. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34133. + *) ac_try_echo=$ac_try;;
  34134. +esac
  34135. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34136. + (eval "$ac_compile") 2>conftest.er1
  34137. + ac_status=$?
  34138. + grep -v '^ *+' conftest.er1 >conftest.err
  34139. + rm -f conftest.er1
  34140. + cat conftest.err >&5
  34141. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34142. + (exit $ac_status); } && {
  34143. + test -z "$ac_c_werror_flag" ||
  34144. + test ! -s conftest.err
  34145. + } && test -s conftest.$ac_objext; then
  34146. + ac_cv_member_struct_stat_st_atimespec=yes
  34147. +else
  34148. + echo "$as_me: failed program was:" >&5
  34149. +sed 's/^/| /' conftest.$ac_ext >&5
  34150. +
  34151. + ac_cv_member_struct_stat_st_atimespec=no
  34152. +fi
  34153. +
  34154. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34155. +fi
  34156. +
  34157. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34158. +fi
  34159. +{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec" >&5
  34160. +echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec" >&6; }
  34161. +if test $ac_cv_member_struct_stat_st_atimespec = yes; then
  34162. +
  34163. +cat >>confdefs.h <<_ACEOF
  34164. +#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
  34165. +_ACEOF
  34166. +
  34167. +
  34168. +fi
  34169. +
  34170. +
  34171. +if test "$arch" != darwin; then
  34172. +libfuse_libs="-pthread"
  34173. +fi
  34174. +LIBS=
  34175. +{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  34176. +echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
  34177. +if test "${ac_cv_search_dlopen+set}" = set; then
  34178. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34179. +else
  34180. + ac_func_search_save_LIBS=$LIBS
  34181. +cat >conftest.$ac_ext <<_ACEOF
  34182. +/* confdefs.h. */
  34183. +_ACEOF
  34184. +cat confdefs.h >>conftest.$ac_ext
  34185. +cat >>conftest.$ac_ext <<_ACEOF
  34186. +/* end confdefs.h. */
  34187. +
  34188. +/* Override any GCC internal prototype to avoid an error.
  34189. + Use char because int might match the return type of a GCC
  34190. + builtin and then its argument prototype would still apply. */
  34191. +#ifdef __cplusplus
  34192. +extern "C"
  34193. +#endif
  34194. +char dlopen ();
  34195. +int
  34196. +main ()
  34197. +{
  34198. +return dlopen ();
  34199. + ;
  34200. + return 0;
  34201. +}
  34202. +_ACEOF
  34203. +for ac_lib in '' dl; do
  34204. + if test -z "$ac_lib"; then
  34205. + ac_res="none required"
  34206. + else
  34207. + ac_res=-l$ac_lib
  34208. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  34209. + fi
  34210. + rm -f conftest.$ac_objext conftest$ac_exeext
  34211. +if { (ac_try="$ac_link"
  34212. +case "(($ac_try" in
  34213. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34214. + *) ac_try_echo=$ac_try;;
  34215. +esac
  34216. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34217. + (eval "$ac_link") 2>conftest.er1
  34218. + ac_status=$?
  34219. + grep -v '^ *+' conftest.er1 >conftest.err
  34220. + rm -f conftest.er1
  34221. + cat conftest.err >&5
  34222. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34223. + (exit $ac_status); } && {
  34224. + test -z "$ac_c_werror_flag" ||
  34225. + test ! -s conftest.err
  34226. + } && test -s conftest$ac_exeext &&
  34227. + $as_test_x conftest$ac_exeext; then
  34228. + ac_cv_search_dlopen=$ac_res
  34229. +else
  34230. + echo "$as_me: failed program was:" >&5
  34231. +sed 's/^/| /' conftest.$ac_ext >&5
  34232. +
  34233. +
  34234. +fi
  34235. +
  34236. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34237. + conftest$ac_exeext
  34238. + if test "${ac_cv_search_dlopen+set}" = set; then
  34239. + break
  34240. +fi
  34241. +done
  34242. +if test "${ac_cv_search_dlopen+set}" = set; then
  34243. + :
  34244. +else
  34245. + ac_cv_search_dlopen=no
  34246. +fi
  34247. +rm conftest.$ac_ext
  34248. +LIBS=$ac_func_search_save_LIBS
  34249. +fi
  34250. +{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  34251. +echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
  34252. +ac_res=$ac_cv_search_dlopen
  34253. +if test "$ac_res" != no; then
  34254. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  34255. +
  34256. +fi
  34257. +
  34258. +{ echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
  34259. +echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
  34260. +if test "${ac_cv_search_clock_gettime+set}" = set; then
  34261. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34262. +else
  34263. + ac_func_search_save_LIBS=$LIBS
  34264. +cat >conftest.$ac_ext <<_ACEOF
  34265. +/* confdefs.h. */
  34266. +_ACEOF
  34267. +cat confdefs.h >>conftest.$ac_ext
  34268. +cat >>conftest.$ac_ext <<_ACEOF
  34269. +/* end confdefs.h. */
  34270. +
  34271. +/* Override any GCC internal prototype to avoid an error.
  34272. + Use char because int might match the return type of a GCC
  34273. + builtin and then its argument prototype would still apply. */
  34274. +#ifdef __cplusplus
  34275. +extern "C"
  34276. +#endif
  34277. +char clock_gettime ();
  34278. +int
  34279. +main ()
  34280. +{
  34281. +return clock_gettime ();
  34282. + ;
  34283. + return 0;
  34284. +}
  34285. +_ACEOF
  34286. +for ac_lib in '' rt; do
  34287. + if test -z "$ac_lib"; then
  34288. + ac_res="none required"
  34289. + else
  34290. + ac_res=-l$ac_lib
  34291. + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  34292. + fi
  34293. + rm -f conftest.$ac_objext conftest$ac_exeext
  34294. +if { (ac_try="$ac_link"
  34295. +case "(($ac_try" in
  34296. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34297. + *) ac_try_echo=$ac_try;;
  34298. +esac
  34299. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34300. + (eval "$ac_link") 2>conftest.er1
  34301. + ac_status=$?
  34302. + grep -v '^ *+' conftest.er1 >conftest.err
  34303. + rm -f conftest.er1
  34304. + cat conftest.err >&5
  34305. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34306. + (exit $ac_status); } && {
  34307. + test -z "$ac_c_werror_flag" ||
  34308. + test ! -s conftest.err
  34309. + } && test -s conftest$ac_exeext &&
  34310. + $as_test_x conftest$ac_exeext; then
  34311. + ac_cv_search_clock_gettime=$ac_res
  34312. +else
  34313. + echo "$as_me: failed program was:" >&5
  34314. +sed 's/^/| /' conftest.$ac_ext >&5
  34315. +
  34316. +
  34317. +fi
  34318. +
  34319. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34320. + conftest$ac_exeext
  34321. + if test "${ac_cv_search_clock_gettime+set}" = set; then
  34322. + break
  34323. +fi
  34324. +done
  34325. +if test "${ac_cv_search_clock_gettime+set}" = set; then
  34326. + :
  34327. +else
  34328. + ac_cv_search_clock_gettime=no
  34329. +fi
  34330. +rm conftest.$ac_ext
  34331. +LIBS=$ac_func_search_save_LIBS
  34332. +fi
  34333. +{ echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
  34334. +echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
  34335. +ac_res=$ac_cv_search_clock_gettime
  34336. +if test "$ac_res" != no; then
  34337. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  34338. +
  34339. +fi
  34340. +
  34341. +libfuse_libs="$libfuse_libs $LIBS"
  34342. +LIBS=
  34343. +
  34344. +# Check whether --with-libiconv-prefix was given.
  34345. +if test "${with_libiconv_prefix+set}" = set; then
  34346. + withval=$with_libiconv_prefix;
  34347. + for dir in `echo "$withval" | tr : ' '`; do
  34348. + if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
  34349. + if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
  34350. + done
  34351. +
  34352. +fi
  34353. +
  34354. +
  34355. +
  34356. +
  34357. +# Check whether --with-libiconv-prefix was given.
  34358. +if test "${with_libiconv_prefix+set}" = set; then
  34359. + withval=$with_libiconv_prefix;
  34360. + for dir in `echo "$withval" | tr : ' '`; do
  34361. + if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
  34362. + if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
  34363. + done
  34364. +
  34365. +fi
  34366. +
  34367. +
  34368. + { echo "$as_me:$LINENO: checking for iconv" >&5
  34369. +echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  34370. +if test "${am_cv_func_iconv+set}" = set; then
  34371. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34372. +else
  34373. +
  34374. + am_cv_func_iconv="no, consider installing GNU libiconv"
  34375. + am_cv_lib_iconv=no
  34376. + cat >conftest.$ac_ext <<_ACEOF
  34377. +/* confdefs.h. */
  34378. +_ACEOF
  34379. +cat confdefs.h >>conftest.$ac_ext
  34380. +cat >>conftest.$ac_ext <<_ACEOF
  34381. +/* end confdefs.h. */
  34382. +#include <stdlib.h>
  34383. +#include <iconv.h>
  34384. +int
  34385. +main ()
  34386. +{
  34387. +iconv_t cd = iconv_open("","");
  34388. + iconv(cd,NULL,NULL,NULL,NULL);
  34389. + iconv_close(cd);
  34390. + ;
  34391. + return 0;
  34392. +}
  34393. +_ACEOF
  34394. +rm -f conftest.$ac_objext conftest$ac_exeext
  34395. +if { (ac_try="$ac_link"
  34396. +case "(($ac_try" in
  34397. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34398. + *) ac_try_echo=$ac_try;;
  34399. +esac
  34400. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34401. + (eval "$ac_link") 2>conftest.er1
  34402. + ac_status=$?
  34403. + grep -v '^ *+' conftest.er1 >conftest.err
  34404. + rm -f conftest.er1
  34405. + cat conftest.err >&5
  34406. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34407. + (exit $ac_status); } && {
  34408. + test -z "$ac_c_werror_flag" ||
  34409. + test ! -s conftest.err
  34410. + } && test -s conftest$ac_exeext &&
  34411. + $as_test_x conftest$ac_exeext; then
  34412. + am_cv_func_iconv=yes
  34413. +else
  34414. + echo "$as_me: failed program was:" >&5
  34415. +sed 's/^/| /' conftest.$ac_ext >&5
  34416. +
  34417. +
  34418. +fi
  34419. +
  34420. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34421. + conftest$ac_exeext conftest.$ac_ext
  34422. + if test "$am_cv_func_iconv" != yes; then
  34423. + am_save_LIBS="$LIBS"
  34424. + LIBS="$LIBS -liconv"
  34425. + cat >conftest.$ac_ext <<_ACEOF
  34426. +/* confdefs.h. */
  34427. +_ACEOF
  34428. +cat confdefs.h >>conftest.$ac_ext
  34429. +cat >>conftest.$ac_ext <<_ACEOF
  34430. +/* end confdefs.h. */
  34431. +#include <stdlib.h>
  34432. +#include <iconv.h>
  34433. +int
  34434. +main ()
  34435. +{
  34436. +iconv_t cd = iconv_open("","");
  34437. + iconv(cd,NULL,NULL,NULL,NULL);
  34438. + iconv_close(cd);
  34439. + ;
  34440. + return 0;
  34441. +}
  34442. +_ACEOF
  34443. +rm -f conftest.$ac_objext conftest$ac_exeext
  34444. +if { (ac_try="$ac_link"
  34445. +case "(($ac_try" in
  34446. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34447. + *) ac_try_echo=$ac_try;;
  34448. +esac
  34449. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34450. + (eval "$ac_link") 2>conftest.er1
  34451. + ac_status=$?
  34452. + grep -v '^ *+' conftest.er1 >conftest.err
  34453. + rm -f conftest.er1
  34454. + cat conftest.err >&5
  34455. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34456. + (exit $ac_status); } && {
  34457. + test -z "$ac_c_werror_flag" ||
  34458. + test ! -s conftest.err
  34459. + } && test -s conftest$ac_exeext &&
  34460. + $as_test_x conftest$ac_exeext; then
  34461. + am_cv_lib_iconv=yes
  34462. + am_cv_func_iconv=yes
  34463. +else
  34464. + echo "$as_me: failed program was:" >&5
  34465. +sed 's/^/| /' conftest.$ac_ext >&5
  34466. +
  34467. +
  34468. +fi
  34469. +
  34470. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  34471. + conftest$ac_exeext conftest.$ac_ext
  34472. + LIBS="$am_save_LIBS"
  34473. + fi
  34474. +
  34475. +fi
  34476. +{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  34477. +echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  34478. + if test "$am_cv_func_iconv" = yes; then
  34479. +
  34480. +cat >>confdefs.h <<\_ACEOF
  34481. +#define HAVE_ICONV 1
  34482. +_ACEOF
  34483. +
  34484. + { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  34485. +echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  34486. + if test "${am_cv_proto_iconv+set}" = set; then
  34487. + echo $ECHO_N "(cached) $ECHO_C" >&6
  34488. +else
  34489. +
  34490. + cat >conftest.$ac_ext <<_ACEOF
  34491. +/* confdefs.h. */
  34492. +_ACEOF
  34493. +cat confdefs.h >>conftest.$ac_ext
  34494. +cat >>conftest.$ac_ext <<_ACEOF
  34495. +/* end confdefs.h. */
  34496. +
  34497. +#include <stdlib.h>
  34498. +#include <iconv.h>
  34499. +extern
  34500. +#ifdef __cplusplus
  34501. +"C"
  34502. +#endif
  34503. +#if defined(__STDC__) || defined(__cplusplus)
  34504. +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  34505. +#else
  34506. +size_t iconv();
  34507. +#endif
  34508. +
  34509. +int
  34510. +main ()
  34511. +{
  34512. +
  34513. + ;
  34514. + return 0;
  34515. +}
  34516. +_ACEOF
  34517. +rm -f conftest.$ac_objext
  34518. +if { (ac_try="$ac_compile"
  34519. +case "(($ac_try" in
  34520. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  34521. + *) ac_try_echo=$ac_try;;
  34522. +esac
  34523. +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  34524. + (eval "$ac_compile") 2>conftest.er1
  34525. + ac_status=$?
  34526. + grep -v '^ *+' conftest.er1 >conftest.err
  34527. + rm -f conftest.er1
  34528. + cat conftest.err >&5
  34529. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34530. + (exit $ac_status); } && {
  34531. + test -z "$ac_c_werror_flag" ||
  34532. + test ! -s conftest.err
  34533. + } && test -s conftest.$ac_objext; then
  34534. + am_cv_proto_iconv_arg1=""
  34535. +else
  34536. + echo "$as_me: failed program was:" >&5
  34537. +sed 's/^/| /' conftest.$ac_ext >&5
  34538. +
  34539. + am_cv_proto_iconv_arg1="const"
  34540. +fi
  34541. +
  34542. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  34543. + 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);"
  34544. +fi
  34545. +
  34546. + am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  34547. + { echo "$as_me:$LINENO: result: ${ac_t:-
  34548. + }$am_cv_proto_iconv" >&5
  34549. +echo "${ECHO_T}${ac_t:-
  34550. + }$am_cv_proto_iconv" >&6; }
  34551. +
  34552. +cat >>confdefs.h <<_ACEOF
  34553. +#define ICONV_CONST $am_cv_proto_iconv_arg1
  34554. +_ACEOF
  34555. +
  34556. + fi
  34557. + LIBICONV=
  34558. + if test "$am_cv_lib_iconv" = yes; then
  34559. + LIBICONV="-liconv"
  34560. + fi
  34561. +
  34562. +
  34563. +libfuse_libs="$libfuse_libs $LIBICONV"
  34564. + if test "$am_cv_func_iconv" = yes; then
  34565. + ICONV_TRUE=
  34566. + ICONV_FALSE='#'
  34567. +else
  34568. + ICONV_TRUE='#'
  34569. + ICONV_FALSE=
  34570. +fi
  34571. +
  34572. +
  34573. +
  34574. +if test -z "$MOUNT_FUSE_PATH"; then
  34575. + MOUNT_FUSE_PATH=/sbin
  34576. +fi
  34577. +
  34578. +if test -z "$UDEV_RULES_PATH"; then
  34579. + UDEV_RULES_PATH=/etc/udev/rules.d
  34580. +fi
  34581. +
  34582. +if test -z "$INIT_D_PATH"; then
  34583. + INIT_D_PATH=/etc/init.d
  34584. +fi
  34585. +
  34586. +
  34587. +
  34588. +
  34589. + if test "$arch" = linux; then
  34590. + LINUX_TRUE=
  34591. + LINUX_FALSE='#'
  34592. +else
  34593. + LINUX_TRUE='#'
  34594. + LINUX_FALSE=
  34595. +fi
  34596. +
  34597. + if test "$arch" = bsd; then
  34598. + BSD_TRUE=
  34599. + BSD_FALSE='#'
  34600. +else
  34601. + BSD_TRUE='#'
  34602. + BSD_FALSE=
  34603. +fi
  34604. +
  34605. + if test "$arch" = darwin; then
  34606. + DARWIN_TRUE=
  34607. + DARWIN_FALSE='#'
  34608. +else
  34609. + DARWIN_TRUE='#'
  34610. + DARWIN_FALSE=
  34611. +fi
  34612. +
  34613. +
  34614. +ac_config_files="$ac_config_files fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile"
  34615. +
  34616. +cat >confcache <<\_ACEOF
  34617. +# This file is a shell script that caches the results of configure
  34618. +# tests run on this system so they can be shared between configure
  34619. +# scripts and configure runs, see configure's option --config-cache.
  34620. +# It is not useful on other systems. If it contains results you don't
  34621. +# want to keep, you may remove or edit it.
  34622. +#
  34623. +# config.status only pays attention to the cache file if you give it
  34624. +# the --recheck option to rerun configure.
  34625. +#
  34626. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  34627. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  34628. +# following values.
  34629. +
  34630. +_ACEOF
  34631. +
  34632. +# The following way of writing the cache mishandles newlines in values,
  34633. +# but we know of no workaround that is simple, portable, and efficient.
  34634. +# So, we kill variables containing newlines.
  34635. +# Ultrix sh set writes to stderr and can't be redirected directly,
  34636. +# and sets the high bit in the cache file unless we assign to the vars.
  34637. +(
  34638. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  34639. + eval ac_val=\$$ac_var
  34640. + case $ac_val in #(
  34641. + *${as_nl}*)
  34642. + case $ac_var in #(
  34643. + *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  34644. +echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  34645. + esac
  34646. + case $ac_var in #(
  34647. + _ | IFS | as_nl) ;; #(
  34648. + *) $as_unset $ac_var ;;
  34649. + esac ;;
  34650. + esac
  34651. + done
  34652. +
  34653. + (set) 2>&1 |
  34654. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  34655. + *${as_nl}ac_space=\ *)
  34656. + # `set' does not quote correctly, so add quotes (double-quote
  34657. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  34658. + sed -n \
  34659. + "s/'/'\\\\''/g;
  34660. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  34661. + ;; #(
  34662. + *)
  34663. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  34664. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  34665. + ;;
  34666. + esac |
  34667. + sort
  34668. +) |
  34669. + sed '
  34670. + /^ac_cv_env_/b end
  34671. + t clear
  34672. + :clear
  34673. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  34674. + t end
  34675. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  34676. + :end' >>confcache
  34677. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  34678. + if test -w "$cache_file"; then
  34679. + test "x$cache_file" != "x/dev/null" &&
  34680. + { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  34681. +echo "$as_me: updating cache $cache_file" >&6;}
  34682. + cat confcache >$cache_file
  34683. + else
  34684. + { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  34685. +echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  34686. + fi
  34687. +fi
  34688. +rm -f confcache
  34689. +
  34690. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  34691. +# Let make expand exec_prefix.
  34692. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  34693. +
  34694. +DEFS=-DHAVE_CONFIG_H
  34695. +
  34696. +ac_libobjs=
  34697. +ac_ltlibobjs=
  34698. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  34699. + # 1. Remove the extension, and $U if already installed.
  34700. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  34701. + ac_i=`echo "$ac_i" | sed "$ac_script"`
  34702. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  34703. + # will be set to the directory where LIBOBJS objects are built.
  34704. + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  34705. + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  34706. +done
  34707. +LIBOBJS=$ac_libobjs
  34708. +
  34709. +LTLIBOBJS=$ac_ltlibobjs
  34710. +
  34711. +
  34712. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  34713. + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  34714. +Usually this means the macro was only invoked conditionally." >&5
  34715. +echo "$as_me: error: conditional \"AMDEP\" was never defined.
  34716. +Usually this means the macro was only invoked conditionally." >&2;}
  34717. + { (exit 1); exit 1; }; }
  34718. +fi
  34719. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  34720. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  34721. +Usually this means the macro was only invoked conditionally." >&5
  34722. +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  34723. +Usually this means the macro was only invoked conditionally." >&2;}
  34724. + { (exit 1); exit 1; }; }
  34725. +fi
  34726. +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  34727. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  34728. +Usually this means the macro was only invoked conditionally." >&5
  34729. +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  34730. +Usually this means the macro was only invoked conditionally." >&2;}
  34731. + { (exit 1); exit 1; }; }
  34732. +fi
  34733. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  34734. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  34735. +Usually this means the macro was only invoked conditionally." >&5
  34736. +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  34737. +Usually this means the macro was only invoked conditionally." >&2;}
  34738. + { (exit 1); exit 1; }; }
  34739. +fi
  34740. +if test -z "${ICONV_TRUE}" && test -z "${ICONV_FALSE}"; then
  34741. + { { echo "$as_me:$LINENO: error: conditional \"ICONV\" was never defined.
  34742. +Usually this means the macro was only invoked conditionally." >&5
  34743. +echo "$as_me: error: conditional \"ICONV\" was never defined.
  34744. +Usually this means the macro was only invoked conditionally." >&2;}
  34745. + { (exit 1); exit 1; }; }
  34746. +fi
  34747. +if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
  34748. + { { echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
  34749. +Usually this means the macro was only invoked conditionally." >&5
  34750. +echo "$as_me: error: conditional \"LINUX\" was never defined.
  34751. +Usually this means the macro was only invoked conditionally." >&2;}
  34752. + { (exit 1); exit 1; }; }
  34753. +fi
  34754. +if test -z "${BSD_TRUE}" && test -z "${BSD_FALSE}"; then
  34755. + { { echo "$as_me:$LINENO: error: conditional \"BSD\" was never defined.
  34756. +Usually this means the macro was only invoked conditionally." >&5
  34757. +echo "$as_me: error: conditional \"BSD\" was never defined.
  34758. +Usually this means the macro was only invoked conditionally." >&2;}
  34759. + { (exit 1); exit 1; }; }
  34760. +fi
  34761. +if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
  34762. + { { echo "$as_me:$LINENO: error: conditional \"DARWIN\" was never defined.
  34763. +Usually this means the macro was only invoked conditionally." >&5
  34764. +echo "$as_me: error: conditional \"DARWIN\" was never defined.
  34765. +Usually this means the macro was only invoked conditionally." >&2;}
  34766. + { (exit 1); exit 1; }; }
  34767. +fi
  34768. +
  34769. +: ${CONFIG_STATUS=./config.status}
  34770. +ac_clean_files_save=$ac_clean_files
  34771. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  34772. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  34773. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  34774. +cat >$CONFIG_STATUS <<_ACEOF
  34775. +#! $SHELL
  34776. +# Generated by $as_me.
  34777. +# Run this file to recreate the current configuration.
  34778. +# Compiler output produced by configure, useful for debugging
  34779. +# configure, is in config.log if it exists.
  34780. +
  34781. +debug=false
  34782. +ac_cs_recheck=false
  34783. +ac_cs_silent=false
  34784. +SHELL=\${CONFIG_SHELL-$SHELL}
  34785. +_ACEOF
  34786. +
  34787. +cat >>$CONFIG_STATUS <<\_ACEOF
  34788. +## --------------------- ##
  34789. +## M4sh Initialization. ##
  34790. +## --------------------- ##
  34791. +
  34792. +# Be more Bourne compatible
  34793. +DUALCASE=1; export DUALCASE # for MKS sh
  34794. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  34795. + emulate sh
  34796. + NULLCMD=:
  34797. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  34798. + # is contrary to our usage. Disable this feature.
  34799. + alias -g '${1+"$@"}'='"$@"'
  34800. + setopt NO_GLOB_SUBST
  34801. +else
  34802. + case `(set -o) 2>/dev/null` in
  34803. + *posix*) set -o posix ;;
  34804. +esac
  34805. -# The names of the tagged configurations supported by this script.
  34806. -available_tags=""
  34807. +fi
  34808. -# ### BEGIN LIBTOOL CONFIG
  34809. -# Which release of libtool.m4 was used?
  34810. -macro_version=$macro_version
  34811. -macro_revision=$macro_revision
  34812. -# Whether or not to build shared libraries.
  34813. -build_libtool_libs=$enable_shared
  34814. -# Whether or not to build static libraries.
  34815. -build_old_libs=$enable_static
  34816. +# PATH needs CR
  34817. +# Avoid depending upon Character Ranges.
  34818. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  34819. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  34820. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34821. +as_cr_digits='0123456789'
  34822. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  34823. -# What type of objects to build.
  34824. -pic_mode=$pic_mode
  34825. +# The user is always right.
  34826. +if test "${PATH_SEPARATOR+set}" != set; then
  34827. + echo "#! /bin/sh" >conf$$.sh
  34828. + echo "exit 0" >>conf$$.sh
  34829. + chmod +x conf$$.sh
  34830. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  34831. + PATH_SEPARATOR=';'
  34832. + else
  34833. + PATH_SEPARATOR=:
  34834. + fi
  34835. + rm -f conf$$.sh
  34836. +fi
  34837. -# Whether or not to optimize for fast installation.
  34838. -fast_install=$enable_fast_install
  34839. +# Support unset when possible.
  34840. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  34841. + as_unset=unset
  34842. +else
  34843. + as_unset=false
  34844. +fi
  34845. -# The host system.
  34846. -host_alias=$host_alias
  34847. -host=$host
  34848. -host_os=$host_os
  34849. -# The build system.
  34850. -build_alias=$build_alias
  34851. -build=$build
  34852. -build_os=$build_os
  34853. +# IFS
  34854. +# We need space, tab and new line, in precisely that order. Quoting is
  34855. +# there to prevent editors from complaining about space-tab.
  34856. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  34857. +# splitting by setting IFS to empty value.)
  34858. +as_nl='
  34859. +'
  34860. +IFS=" "" $as_nl"
  34861. -# A sed program that does not truncate output.
  34862. -SED=$lt_SED
  34863. +# Find who we are. Look in the path if we contain no directory separator.
  34864. +case $0 in
  34865. + *[\\/]* ) as_myself=$0 ;;
  34866. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  34867. +for as_dir in $PATH
  34868. +do
  34869. + IFS=$as_save_IFS
  34870. + test -z "$as_dir" && as_dir=.
  34871. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  34872. +done
  34873. +IFS=$as_save_IFS
  34874. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  34875. -Xsed="\$SED -e 1s/^X//"
  34876. + ;;
  34877. +esac
  34878. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  34879. +# in which case we are not to be found in the path.
  34880. +if test "x$as_myself" = x; then
  34881. + as_myself=$0
  34882. +fi
  34883. +if test ! -f "$as_myself"; then
  34884. + echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  34885. + { (exit 1); exit 1; }
  34886. +fi
  34887. -# A grep program that handles long lines.
  34888. -GREP=$lt_GREP
  34889. +# Work around bugs in pre-3.0 UWIN ksh.
  34890. +for as_var in ENV MAIL MAILPATH
  34891. +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  34892. +done
  34893. +PS1='$ '
  34894. +PS2='> '
  34895. +PS4='+ '
  34896. -# An ERE matcher.
  34897. -EGREP=$lt_EGREP
  34898. +# NLS nuisances.
  34899. +for as_var in \
  34900. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  34901. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  34902. + LC_TELEPHONE LC_TIME
  34903. +do
  34904. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  34905. + eval $as_var=C; export $as_var
  34906. + else
  34907. + ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  34908. + fi
  34909. +done
  34910. -# A literal string matcher.
  34911. -FGREP=$lt_FGREP
  34912. +# Required to use basename.
  34913. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  34914. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  34915. + as_expr=expr
  34916. +else
  34917. + as_expr=false
  34918. +fi
  34919. -# A BSD- or MS-compatible name lister.
  34920. -NM=$lt_NM
  34921. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  34922. + as_basename=basename
  34923. +else
  34924. + as_basename=false
  34925. +fi
  34926. -# Whether we need soft or hard links.
  34927. -LN_S=$lt_LN_S
  34928. -# What is the maximum length of a command?
  34929. -max_cmd_len=$max_cmd_len
  34930. +# Name of the executable.
  34931. +as_me=`$as_basename -- "$0" ||
  34932. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  34933. + X"$0" : 'X\(//\)$' \| \
  34934. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  34935. +echo X/"$0" |
  34936. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  34937. + s//\1/
  34938. + q
  34939. + }
  34940. + /^X\/\(\/\/\)$/{
  34941. + s//\1/
  34942. + q
  34943. + }
  34944. + /^X\/\(\/\).*/{
  34945. + s//\1/
  34946. + q
  34947. + }
  34948. + s/.*/./; q'`
  34949. -# Object file suffix (normally "o").
  34950. -objext=$ac_objext
  34951. +# CDPATH.
  34952. +$as_unset CDPATH
  34953. -# Executable file suffix (normally "").
  34954. -exeext=$exeext
  34955. -# How to create reloadable object files.
  34956. -reload_flag=$lt_reload_flag
  34957. -reload_cmds=$lt_reload_cmds
  34958. -# Method to check whether dependent libraries are shared objects.
  34959. -deplibs_check_method=$lt_deplibs_check_method
  34960. + as_lineno_1=$LINENO
  34961. + as_lineno_2=$LINENO
  34962. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  34963. + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  34964. -# Command to use when deplibs_check_method == "file_magic".
  34965. -file_magic_cmd=$lt_file_magic_cmd
  34966. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  34967. + # uniformly replaced by the line number. The first 'sed' inserts a
  34968. + # line-number line after each line using $LINENO; the second 'sed'
  34969. + # does the real work. The second script uses 'N' to pair each
  34970. + # line-number line with the line containing $LINENO, and appends
  34971. + # trailing '-' during substitution so that $LINENO is not a special
  34972. + # case at line end.
  34973. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  34974. + # scripts with optimization help from Paolo Bonzini. Blame Lee
  34975. + # E. McMahon (1931-1989) for sed's syntax. :-)
  34976. + sed -n '
  34977. + p
  34978. + /[$]LINENO/=
  34979. + ' <$as_myself |
  34980. + sed '
  34981. + s/[$]LINENO.*/&-/
  34982. + t lineno
  34983. + b
  34984. + :lineno
  34985. + N
  34986. + :loop
  34987. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  34988. + t loop
  34989. + s/-\n.*//
  34990. + ' >$as_me.lineno &&
  34991. + chmod +x "$as_me.lineno" ||
  34992. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  34993. + { (exit 1); exit 1; }; }
  34994. -# The archiver.
  34995. -AR=$lt_AR
  34996. -AR_FLAGS=$lt_AR_FLAGS
  34997. + # Don't try to exec as it changes $[0], causing all sort of problems
  34998. + # (the dirname of $[0] is not the place where we might find the
  34999. + # original and so on. Autoconf is especially sensitive to this).
  35000. + . "./$as_me.lineno"
  35001. + # Exit status is that of the last command.
  35002. + exit
  35003. +}
  35004. -# A symbol stripping program.
  35005. -STRIP=$lt_STRIP
  35006. -# Commands used to install an old-style archive.
  35007. -RANLIB=$lt_RANLIB
  35008. -old_postinstall_cmds=$lt_old_postinstall_cmds
  35009. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  35010. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  35011. + as_dirname=dirname
  35012. +else
  35013. + as_dirname=false
  35014. +fi
  35015. -# A C compiler.
  35016. -LTCC=$lt_CC
  35017. +ECHO_C= ECHO_N= ECHO_T=
  35018. +case `echo -n x` in
  35019. +-n*)
  35020. + case `echo 'x\c'` in
  35021. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  35022. + *) ECHO_C='\c';;
  35023. + esac;;
  35024. +*)
  35025. + ECHO_N='-n';;
  35026. +esac
  35027. -# LTCC compiler flags.
  35028. -LTCFLAGS=$lt_CFLAGS
  35029. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  35030. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  35031. + as_expr=expr
  35032. +else
  35033. + as_expr=false
  35034. +fi
  35035. -# Take the output of nm and produce a listing of raw symbols and C names.
  35036. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  35037. +rm -f conf$$ conf$$.exe conf$$.file
  35038. +if test -d conf$$.dir; then
  35039. + rm -f conf$$.dir/conf$$.file
  35040. +else
  35041. + rm -f conf$$.dir
  35042. + mkdir conf$$.dir
  35043. +fi
  35044. +echo >conf$$.file
  35045. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  35046. + as_ln_s='ln -s'
  35047. + # ... but there are two gotchas:
  35048. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  35049. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  35050. + # In both cases, we have to default to `cp -p'.
  35051. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  35052. + as_ln_s='cp -p'
  35053. +elif ln conf$$.file conf$$ 2>/dev/null; then
  35054. + as_ln_s=ln
  35055. +else
  35056. + as_ln_s='cp -p'
  35057. +fi
  35058. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  35059. +rmdir conf$$.dir 2>/dev/null
  35060. -# Transform the output of nm in a proper C declaration.
  35061. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35062. +if mkdir -p . 2>/dev/null; then
  35063. + as_mkdir_p=:
  35064. +else
  35065. + test -d ./-p && rmdir ./-p
  35066. + as_mkdir_p=false
  35067. +fi
  35068. -# Transform the output of nm in a C name address pair.
  35069. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35070. +if test -x / >/dev/null 2>&1; then
  35071. + as_test_x='test -x'
  35072. +else
  35073. + if ls -dL / >/dev/null 2>&1; then
  35074. + as_ls_L_option=L
  35075. + else
  35076. + as_ls_L_option=
  35077. + fi
  35078. + as_test_x='
  35079. + eval sh -c '\''
  35080. + if test -d "$1"; then
  35081. + test -d "$1/.";
  35082. + else
  35083. + case $1 in
  35084. + -*)set "./$1";;
  35085. + esac;
  35086. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  35087. + ???[sx]*):;;*)false;;esac;fi
  35088. + '\'' sh
  35089. + '
  35090. +fi
  35091. +as_executable_p=$as_test_x
  35092. -# The name of the directory that contains temporary libtool files.
  35093. -objdir=$objdir
  35094. +# Sed expression to map a string onto a valid CPP name.
  35095. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  35096. -# Shell to use when invoking shell scripts.
  35097. -SHELL=$lt_SHELL
  35098. +# Sed expression to map a string onto a valid variable name.
  35099. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  35100. -# An echo program that does not interpret backslashes.
  35101. -ECHO=$lt_ECHO
  35102. -# Used to examine libraries when file_magic_cmd begins with "file".
  35103. -MAGIC_CMD=$MAGIC_CMD
  35104. +exec 6>&1
  35105. -# Must we lock files when doing compilation?
  35106. -need_locks=$lt_need_locks
  35107. +# Save the log message, to keep $[0] and so on meaningful, and to
  35108. +# report actual input values of CONFIG_FILES etc. instead of their
  35109. +# values after options handling.
  35110. +ac_log="
  35111. +This file was extended by fuse $as_me 2.7.3, which was
  35112. +generated by GNU Autoconf 2.61. Invocation command line was
  35113. -# Old archive suffix (normally "a").
  35114. -libext=$libext
  35115. + CONFIG_FILES = $CONFIG_FILES
  35116. + CONFIG_HEADERS = $CONFIG_HEADERS
  35117. + CONFIG_LINKS = $CONFIG_LINKS
  35118. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  35119. + $ $0 $@
  35120. -# Shared library suffix (normally ".so").
  35121. -shrext_cmds=$lt_shrext_cmds
  35122. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  35123. +"
  35124. -# The commands to extract the exported symbol list from a shared archive.
  35125. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35126. +_ACEOF
  35127. -# Variables whose values should be saved in libtool wrapper scripts and
  35128. -# restored at link time.
  35129. -variables_saved_for_relink=$lt_variables_saved_for_relink
  35130. +cat >>$CONFIG_STATUS <<_ACEOF
  35131. +# Files that config.status was made for.
  35132. +config_files="$ac_config_files"
  35133. +config_headers="$ac_config_headers"
  35134. +config_commands="$ac_config_commands"
  35135. -# Do we need the "lib" prefix for modules?
  35136. -need_lib_prefix=$need_lib_prefix
  35137. +_ACEOF
  35138. -# Do we need a version for libraries?
  35139. -need_version=$need_version
  35140. +cat >>$CONFIG_STATUS <<\_ACEOF
  35141. +ac_cs_usage="\
  35142. +\`$as_me' instantiates files from templates according to the
  35143. +current configuration.
  35144. -# Library versioning type.
  35145. -version_type=$version_type
  35146. +Usage: $0 [OPTIONS] [FILE]...
  35147. -# Shared library runtime path variable.
  35148. -runpath_var=$runpath_var
  35149. + -h, --help print this help, then exit
  35150. + -V, --version print version number and configuration settings, then exit
  35151. + -q, --quiet do not print progress messages
  35152. + -d, --debug don't remove temporary files
  35153. + --recheck update $as_me by reconfiguring in the same conditions
  35154. + --file=FILE[:TEMPLATE]
  35155. + instantiate the configuration file FILE
  35156. + --header=FILE[:TEMPLATE]
  35157. + instantiate the configuration header FILE
  35158. -# Shared library path variable.
  35159. -shlibpath_var=$shlibpath_var
  35160. +Configuration files:
  35161. +$config_files
  35162. -# Is shlibpath searched before the hard-coded library search path?
  35163. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35164. +Configuration headers:
  35165. +$config_headers
  35166. -# Format of library name prefix.
  35167. -libname_spec=$lt_libname_spec
  35168. +Configuration commands:
  35169. +$config_commands
  35170. -# List of archive names. First name is the real one, the rest are links.
  35171. -# The last name is the one that the linker finds with -lNAME
  35172. -library_names_spec=$lt_library_names_spec
  35173. +Report bugs to <bug-autoconf@gnu.org>."
  35174. -# The coded name of the library, if different from the real name.
  35175. -soname_spec=$lt_soname_spec
  35176. +_ACEOF
  35177. +cat >>$CONFIG_STATUS <<_ACEOF
  35178. +ac_cs_version="\\
  35179. +fuse config.status 2.7.3
  35180. +configured by $0, generated by GNU Autoconf 2.61,
  35181. + with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  35182. -# Command to use after installation of a shared archive.
  35183. -postinstall_cmds=$lt_postinstall_cmds
  35184. +Copyright (C) 2006 Free Software Foundation, Inc.
  35185. +This config.status script is free software; the Free Software Foundation
  35186. +gives unlimited permission to copy, distribute and modify it."
  35187. -# Command to use after uninstallation of a shared archive.
  35188. -postuninstall_cmds=$lt_postuninstall_cmds
  35189. +ac_pwd='$ac_pwd'
  35190. +srcdir='$srcdir'
  35191. +INSTALL='$INSTALL'
  35192. +MKDIR_P='$MKDIR_P'
  35193. +_ACEOF
  35194. -# Commands used to finish a libtool library installation in a directory.
  35195. -finish_cmds=$lt_finish_cmds
  35196. +cat >>$CONFIG_STATUS <<\_ACEOF
  35197. +# If no file are specified by the user, then we need to provide default
  35198. +# value. By we need to know if files were specified by the user.
  35199. +ac_need_defaults=:
  35200. +while test $# != 0
  35201. +do
  35202. + case $1 in
  35203. + --*=*)
  35204. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  35205. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  35206. + ac_shift=:
  35207. + ;;
  35208. + *)
  35209. + ac_option=$1
  35210. + ac_optarg=$2
  35211. + ac_shift=shift
  35212. + ;;
  35213. + esac
  35214. -# As "finish_cmds", except a single script fragment to be evaled but
  35215. -# not shown.
  35216. -finish_eval=$lt_finish_eval
  35217. + case $ac_option in
  35218. + # Handling of the options.
  35219. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  35220. + ac_cs_recheck=: ;;
  35221. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  35222. + echo "$ac_cs_version"; exit ;;
  35223. + --debug | --debu | --deb | --de | --d | -d )
  35224. + debug=: ;;
  35225. + --file | --fil | --fi | --f )
  35226. + $ac_shift
  35227. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  35228. + ac_need_defaults=false;;
  35229. + --header | --heade | --head | --hea )
  35230. + $ac_shift
  35231. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  35232. + ac_need_defaults=false;;
  35233. + --he | --h)
  35234. + # Conflict between --help and --header
  35235. + { echo "$as_me: error: ambiguous option: $1
  35236. +Try \`$0 --help' for more information." >&2
  35237. + { (exit 1); exit 1; }; };;
  35238. + --help | --hel | -h )
  35239. + echo "$ac_cs_usage"; exit ;;
  35240. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  35241. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  35242. + ac_cs_silent=: ;;
  35243. -# Whether we should hardcode library paths into libraries.
  35244. -hardcode_into_libs=$hardcode_into_libs
  35245. + # This is an error.
  35246. + -*) { echo "$as_me: error: unrecognized option: $1
  35247. +Try \`$0 --help' for more information." >&2
  35248. + { (exit 1); exit 1; }; } ;;
  35249. -# Compile-time system search path for libraries.
  35250. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35251. + *) ac_config_targets="$ac_config_targets $1"
  35252. + ac_need_defaults=false ;;
  35253. -# Run-time system search path for libraries.
  35254. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35255. + esac
  35256. + shift
  35257. +done
  35258. -# Whether dlopen is supported.
  35259. -dlopen_support=$enable_dlopen
  35260. +ac_configure_extra_args=
  35261. -# Whether dlopen of programs is supported.
  35262. -dlopen_self=$enable_dlopen_self
  35263. +if $ac_cs_silent; then
  35264. + exec 6>/dev/null
  35265. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  35266. +fi
  35267. -# Whether dlopen of statically linked programs is supported.
  35268. -dlopen_self_static=$enable_dlopen_self_static
  35269. +_ACEOF
  35270. +cat >>$CONFIG_STATUS <<_ACEOF
  35271. +if \$ac_cs_recheck; then
  35272. + echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  35273. + CONFIG_SHELL=$SHELL
  35274. + export CONFIG_SHELL
  35275. + exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  35276. +fi
  35277. -# Commands to strip libraries.
  35278. -old_striplib=$lt_old_striplib
  35279. -striplib=$lt_striplib
  35280. +_ACEOF
  35281. +cat >>$CONFIG_STATUS <<\_ACEOF
  35282. +exec 5>>config.log
  35283. +{
  35284. + echo
  35285. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  35286. +## Running $as_me. ##
  35287. +_ASBOX
  35288. + echo "$ac_log"
  35289. +} >&5
  35290. +_ACEOF
  35291. +cat >>$CONFIG_STATUS <<_ACEOF
  35292. +#
  35293. +# INIT-COMMANDS
  35294. +#
  35295. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  35296. -# The linker used to build libraries.
  35297. -LD=$lt_LD
  35298. +_ACEOF
  35299. -# Commands used to build an old-style archive.
  35300. -old_archive_cmds=$lt_old_archive_cmds
  35301. +cat >>$CONFIG_STATUS <<\_ACEOF
  35302. -# A language specific compiler.
  35303. -CC=$lt_compiler
  35304. +# Handling of arguments.
  35305. +for ac_config_target in $ac_config_targets
  35306. +do
  35307. + case $ac_config_target in
  35308. + "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  35309. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  35310. + "fuse.pc") CONFIG_FILES="$CONFIG_FILES fuse.pc" ;;
  35311. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  35312. + "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  35313. + "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
  35314. + "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
  35315. + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  35316. -# Is the compiler the GNU compiler?
  35317. -with_gcc=$GCC
  35318. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  35319. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  35320. + { (exit 1); exit 1; }; };;
  35321. + esac
  35322. +done
  35323. -# Compiler flag to turn off builtin functions.
  35324. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  35325. -# How to pass a linker flag through the compiler.
  35326. -wl=$lt_lt_prog_compiler_wl
  35327. +# If the user did not use the arguments to specify the items to instantiate,
  35328. +# then the envvar interface is used. Set only those that are not.
  35329. +# We use the long form for the default assignment because of an extremely
  35330. +# bizarre bug on SunOS 4.1.3.
  35331. +if $ac_need_defaults; then
  35332. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  35333. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  35334. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  35335. +fi
  35336. -# Additional compiler flags for building library objects.
  35337. -pic_flag=$lt_lt_prog_compiler_pic
  35338. +# Have a temporary directory for convenience. Make it in the build tree
  35339. +# simply because there is no reason against having it here, and in addition,
  35340. +# creating and moving files from /tmp can sometimes cause problems.
  35341. +# Hook for its removal unless debugging.
  35342. +# Note that there is a small window in which the directory will not be cleaned:
  35343. +# after its creation but before its name has been assigned to `$tmp'.
  35344. +$debug ||
  35345. +{
  35346. + tmp=
  35347. + trap 'exit_status=$?
  35348. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  35349. +' 0
  35350. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  35351. +}
  35352. +# Create a (secure) tmp directory for tmp files.
  35353. -# Compiler flag to prevent dynamic linking.
  35354. -link_static_flag=$lt_lt_prog_compiler_static
  35355. +{
  35356. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  35357. + test -n "$tmp" && test -d "$tmp"
  35358. +} ||
  35359. +{
  35360. + tmp=./conf$$-$RANDOM
  35361. + (umask 077 && mkdir "$tmp")
  35362. +} ||
  35363. +{
  35364. + echo "$me: cannot create a temporary directory in ." >&2
  35365. + { (exit 1); exit 1; }
  35366. +}
  35367. -# Does compiler simultaneously support -c and -o options?
  35368. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  35369. +#
  35370. +# Set up the sed scripts for CONFIG_FILES section.
  35371. +#
  35372. -# Whether or not to add -lc for building shared libraries.
  35373. -build_libtool_need_lc=$archive_cmds_need_lc
  35374. +# No need to generate the scripts if there are no CONFIG_FILES.
  35375. +# This happens for instance when ./config.status config.h
  35376. +if test -n "$CONFIG_FILES"; then
  35377. -# Whether or not to disallow shared libs when runtime libs are static.
  35378. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  35379. +_ACEOF
  35380. -# Compiler flag to allow reflexive dlopens.
  35381. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  35382. -# Compiler flag to generate shared objects directly from archives.
  35383. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  35384. -# Create an old-style archive from a shared archive.
  35385. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  35386. +ac_delim='%!_!# '
  35387. +for ac_last_try in false false false false false :; do
  35388. + cat >conf$$subs.sed <<_ACEOF
  35389. +SHELL!$SHELL$ac_delim
  35390. +PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  35391. +PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  35392. +PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  35393. +PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  35394. +PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  35395. +PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  35396. +exec_prefix!$exec_prefix$ac_delim
  35397. +prefix!$prefix$ac_delim
  35398. +program_transform_name!$program_transform_name$ac_delim
  35399. +bindir!$bindir$ac_delim
  35400. +sbindir!$sbindir$ac_delim
  35401. +libexecdir!$libexecdir$ac_delim
  35402. +datarootdir!$datarootdir$ac_delim
  35403. +datadir!$datadir$ac_delim
  35404. +sysconfdir!$sysconfdir$ac_delim
  35405. +sharedstatedir!$sharedstatedir$ac_delim
  35406. +localstatedir!$localstatedir$ac_delim
  35407. +includedir!$includedir$ac_delim
  35408. +oldincludedir!$oldincludedir$ac_delim
  35409. +docdir!$docdir$ac_delim
  35410. +infodir!$infodir$ac_delim
  35411. +htmldir!$htmldir$ac_delim
  35412. +dvidir!$dvidir$ac_delim
  35413. +pdfdir!$pdfdir$ac_delim
  35414. +psdir!$psdir$ac_delim
  35415. +libdir!$libdir$ac_delim
  35416. +localedir!$localedir$ac_delim
  35417. +mandir!$mandir$ac_delim
  35418. +DEFS!$DEFS$ac_delim
  35419. +ECHO_C!$ECHO_C$ac_delim
  35420. +ECHO_N!$ECHO_N$ac_delim
  35421. +ECHO_T!$ECHO_T$ac_delim
  35422. +LIBS!$LIBS$ac_delim
  35423. +build_alias!$build_alias$ac_delim
  35424. +host_alias!$host_alias$ac_delim
  35425. +target_alias!$target_alias$ac_delim
  35426. +build!$build$ac_delim
  35427. +build_cpu!$build_cpu$ac_delim
  35428. +build_vendor!$build_vendor$ac_delim
  35429. +build_os!$build_os$ac_delim
  35430. +host!$host$ac_delim
  35431. +host_cpu!$host_cpu$ac_delim
  35432. +host_vendor!$host_vendor$ac_delim
  35433. +host_os!$host_os$ac_delim
  35434. +target!$target$ac_delim
  35435. +target_cpu!$target_cpu$ac_delim
  35436. +target_vendor!$target_vendor$ac_delim
  35437. +target_os!$target_os$ac_delim
  35438. +INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  35439. +INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  35440. +INSTALL_DATA!$INSTALL_DATA$ac_delim
  35441. +am__isrc!$am__isrc$ac_delim
  35442. +CYGPATH_W!$CYGPATH_W$ac_delim
  35443. +PACKAGE!$PACKAGE$ac_delim
  35444. +VERSION!$VERSION$ac_delim
  35445. +ACLOCAL!$ACLOCAL$ac_delim
  35446. +AUTOCONF!$AUTOCONF$ac_delim
  35447. +AUTOMAKE!$AUTOMAKE$ac_delim
  35448. +AUTOHEADER!$AUTOHEADER$ac_delim
  35449. +MAKEINFO!$MAKEINFO$ac_delim
  35450. +install_sh!$install_sh$ac_delim
  35451. +STRIP!$STRIP$ac_delim
  35452. +INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  35453. +mkdir_p!$mkdir_p$ac_delim
  35454. +AWK!$AWK$ac_delim
  35455. +SET_MAKE!$SET_MAKE$ac_delim
  35456. +am__leading_dot!$am__leading_dot$ac_delim
  35457. +AMTAR!$AMTAR$ac_delim
  35458. +am__tar!$am__tar$ac_delim
  35459. +am__untar!$am__untar$ac_delim
  35460. +CC!$CC$ac_delim
  35461. +CFLAGS!$CFLAGS$ac_delim
  35462. +LDFLAGS!$LDFLAGS$ac_delim
  35463. +CPPFLAGS!$CPPFLAGS$ac_delim
  35464. +ac_ct_CC!$ac_ct_CC$ac_delim
  35465. +EXEEXT!$EXEEXT$ac_delim
  35466. +OBJEXT!$OBJEXT$ac_delim
  35467. +DEPDIR!$DEPDIR$ac_delim
  35468. +am__include!$am__include$ac_delim
  35469. +am__quote!$am__quote$ac_delim
  35470. +AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  35471. +AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  35472. +AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  35473. +CCDEPMODE!$CCDEPMODE$ac_delim
  35474. +am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  35475. +am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  35476. +GREP!$GREP$ac_delim
  35477. +EGREP!$EGREP$ac_delim
  35478. +LN_S!$LN_S$ac_delim
  35479. +ECHO!$ECHO$ac_delim
  35480. +AR!$AR$ac_delim
  35481. +RANLIB!$RANLIB$ac_delim
  35482. +CPP!$CPP$ac_delim
  35483. +CXX!$CXX$ac_delim
  35484. +CXXFLAGS!$CXXFLAGS$ac_delim
  35485. +ac_ct_CXX!$ac_ct_CXX$ac_delim
  35486. +_ACEOF
  35487. -# Create a temporary old-style archive to link instead of a shared archive.
  35488. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  35489. + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  35490. + break
  35491. + elif $ac_last_try; then
  35492. + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  35493. +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  35494. + { (exit 1); exit 1; }; }
  35495. + else
  35496. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  35497. + fi
  35498. +done
  35499. -# Commands used to build a shared archive.
  35500. -archive_cmds=$lt_archive_cmds
  35501. -archive_expsym_cmds=$lt_archive_expsym_cmds
  35502. +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  35503. +if test -n "$ac_eof"; then
  35504. + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  35505. + ac_eof=`expr $ac_eof + 1`
  35506. +fi
  35507. -# Commands used to build a loadable module if different from building
  35508. -# a shared archive.
  35509. -module_cmds=$lt_module_cmds
  35510. -module_expsym_cmds=$lt_module_expsym_cmds
  35511. +cat >>$CONFIG_STATUS <<_ACEOF
  35512. +cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  35513. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  35514. +_ACEOF
  35515. +sed '
  35516. +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  35517. +s/^/s,@/; s/!/@,|#_!!_#|/
  35518. +:n
  35519. +t n
  35520. +s/'"$ac_delim"'$/,g/; t
  35521. +s/$/\\/; p
  35522. +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  35523. +' >>$CONFIG_STATUS <conf$$subs.sed
  35524. +rm -f conf$$subs.sed
  35525. +cat >>$CONFIG_STATUS <<_ACEOF
  35526. +CEOF$ac_eof
  35527. +_ACEOF
  35528. -# Whether we are building with GNU ld or not.
  35529. -with_gnu_ld=$lt_with_gnu_ld
  35530. -# Flag that allows shared libraries with undefined symbols to be built.
  35531. -allow_undefined_flag=$lt_allow_undefined_flag
  35532. +ac_delim='%!_!# '
  35533. +for ac_last_try in false false false false false :; do
  35534. + cat >conf$$subs.sed <<_ACEOF
  35535. +CXXDEPMODE!$CXXDEPMODE$ac_delim
  35536. +am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  35537. +am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  35538. +CXXCPP!$CXXCPP$ac_delim
  35539. +F77!$F77$ac_delim
  35540. +FFLAGS!$FFLAGS$ac_delim
  35541. +ac_ct_F77!$ac_ct_F77$ac_delim
  35542. +LIBTOOL!$LIBTOOL$ac_delim
  35543. +pkgconfigdir!$pkgconfigdir$ac_delim
  35544. +subdirs!$subdirs$ac_delim
  35545. +LIBICONV!$LIBICONV$ac_delim
  35546. +ICONV_TRUE!$ICONV_TRUE$ac_delim
  35547. +ICONV_FALSE!$ICONV_FALSE$ac_delim
  35548. +libfuse_libs!$libfuse_libs$ac_delim
  35549. +MOUNT_FUSE_PATH!$MOUNT_FUSE_PATH$ac_delim
  35550. +UDEV_RULES_PATH!$UDEV_RULES_PATH$ac_delim
  35551. +INIT_D_PATH!$INIT_D_PATH$ac_delim
  35552. +subdirs2!$subdirs2$ac_delim
  35553. +LINUX_TRUE!$LINUX_TRUE$ac_delim
  35554. +LINUX_FALSE!$LINUX_FALSE$ac_delim
  35555. +BSD_TRUE!$BSD_TRUE$ac_delim
  35556. +BSD_FALSE!$BSD_FALSE$ac_delim
  35557. +DARWIN_TRUE!$DARWIN_TRUE$ac_delim
  35558. +DARWIN_FALSE!$DARWIN_FALSE$ac_delim
  35559. +LIBOBJS!$LIBOBJS$ac_delim
  35560. +LTLIBOBJS!$LTLIBOBJS$ac_delim
  35561. +_ACEOF
  35562. -# Flag that enforces no undefined symbols.
  35563. -no_undefined_flag=$lt_no_undefined_flag
  35564. + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
  35565. + break
  35566. + elif $ac_last_try; then
  35567. + { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  35568. +echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  35569. + { (exit 1); exit 1; }; }
  35570. + else
  35571. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  35572. + fi
  35573. +done
  35574. -# Flag to hardcode \$libdir into a binary during linking.
  35575. -# This must work even if \$libdir does not exist
  35576. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  35577. +ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  35578. +if test -n "$ac_eof"; then
  35579. + ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  35580. + ac_eof=`expr $ac_eof + 1`
  35581. +fi
  35582. -# If ld is used when linking, flag to hardcode \$libdir into a binary
  35583. -# during linking. This must work even if \$libdir does not exist.
  35584. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  35585. +cat >>$CONFIG_STATUS <<_ACEOF
  35586. +cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  35587. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  35588. +_ACEOF
  35589. +sed '
  35590. +s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  35591. +s/^/s,@/; s/!/@,|#_!!_#|/
  35592. +:n
  35593. +t n
  35594. +s/'"$ac_delim"'$/,g/; t
  35595. +s/$/\\/; p
  35596. +N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  35597. +' >>$CONFIG_STATUS <conf$$subs.sed
  35598. +rm -f conf$$subs.sed
  35599. +cat >>$CONFIG_STATUS <<_ACEOF
  35600. +:end
  35601. +s/|#_!!_#|//g
  35602. +CEOF$ac_eof
  35603. +_ACEOF
  35604. -# Whether we need a single "-rpath" flag with a separated argument.
  35605. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  35606. -# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  35607. -# DIR into the resulting binary.
  35608. -hardcode_direct=$hardcode_direct
  35609. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  35610. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  35611. +# trailing colons and then remove the whole line if VPATH becomes empty
  35612. +# (actually we leave an empty line to preserve line numbers).
  35613. +if test "x$srcdir" = x.; then
  35614. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  35615. +s/:*\$(srcdir):*/:/
  35616. +s/:*\${srcdir}:*/:/
  35617. +s/:*@srcdir@:*/:/
  35618. +s/^\([^=]*=[ ]*\):*/\1/
  35619. +s/:*$//
  35620. +s/^[^=]*=[ ]*$//
  35621. +}'
  35622. +fi
  35623. -# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  35624. -# into the resulting binary.
  35625. -hardcode_minus_L=$hardcode_minus_L
  35626. +cat >>$CONFIG_STATUS <<\_ACEOF
  35627. +fi # test -n "$CONFIG_FILES"
  35628. -# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  35629. -# into the resulting binary.
  35630. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  35631. -# Set to "yes" if building a shared library automatically hardcodes DIR
  35632. -# into the library and all subsequent libraries and executables linked
  35633. -# against it.
  35634. -hardcode_automatic=$hardcode_automatic
  35635. +for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  35636. +do
  35637. + case $ac_tag in
  35638. + :[FHLC]) ac_mode=$ac_tag; continue;;
  35639. + esac
  35640. + case $ac_mode$ac_tag in
  35641. + :[FHL]*:*);;
  35642. + :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  35643. +echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  35644. + { (exit 1); exit 1; }; };;
  35645. + :[FH]-) ac_tag=-:-;;
  35646. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  35647. + esac
  35648. + ac_save_IFS=$IFS
  35649. + IFS=:
  35650. + set x $ac_tag
  35651. + IFS=$ac_save_IFS
  35652. + shift
  35653. + ac_file=$1
  35654. + shift
  35655. -# Set to yes if linker adds runtime paths of dependent libraries
  35656. -# to runtime path list.
  35657. -inherit_rpath=$inherit_rpath
  35658. + case $ac_mode in
  35659. + :L) ac_source=$1;;
  35660. + :[FH])
  35661. + ac_file_inputs=
  35662. + for ac_f
  35663. + do
  35664. + case $ac_f in
  35665. + -) ac_f="$tmp/stdin";;
  35666. + *) # Look for the file first in the build tree, then in the source tree
  35667. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  35668. + # because $ac_f cannot contain `:'.
  35669. + test -f "$ac_f" ||
  35670. + case $ac_f in
  35671. + [\\/$]*) false;;
  35672. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  35673. + esac ||
  35674. + { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  35675. +echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  35676. + { (exit 1); exit 1; }; };;
  35677. + esac
  35678. + ac_file_inputs="$ac_file_inputs $ac_f"
  35679. + done
  35680. -# Whether libtool must link a program against all its dependency libraries.
  35681. -link_all_deplibs=$link_all_deplibs
  35682. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  35683. + # use $as_me), people would be surprised to read:
  35684. + # /* config.h. Generated by config.status. */
  35685. + configure_input="Generated from "`IFS=:
  35686. + echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  35687. + if test x"$ac_file" != x-; then
  35688. + configure_input="$ac_file. $configure_input"
  35689. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  35690. +echo "$as_me: creating $ac_file" >&6;}
  35691. + fi
  35692. -# Fix the shell variable \$srcfile for the compiler.
  35693. -fix_srcfile_path=$lt_fix_srcfile_path
  35694. + case $ac_tag in
  35695. + *:-:* | *:-) cat >"$tmp/stdin";;
  35696. + esac
  35697. + ;;
  35698. + esac
  35699. -# Set to "yes" if exported symbols are required.
  35700. -always_export_symbols=$always_export_symbols
  35701. + ac_dir=`$as_dirname -- "$ac_file" ||
  35702. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35703. + X"$ac_file" : 'X\(//\)[^/]' \| \
  35704. + X"$ac_file" : 'X\(//\)$' \| \
  35705. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  35706. +echo X"$ac_file" |
  35707. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35708. + s//\1/
  35709. + q
  35710. + }
  35711. + /^X\(\/\/\)[^/].*/{
  35712. + s//\1/
  35713. + q
  35714. + }
  35715. + /^X\(\/\/\)$/{
  35716. + s//\1/
  35717. + q
  35718. + }
  35719. + /^X\(\/\).*/{
  35720. + s//\1/
  35721. + q
  35722. + }
  35723. + s/.*/./; q'`
  35724. + { as_dir="$ac_dir"
  35725. + case $as_dir in #(
  35726. + -*) as_dir=./$as_dir;;
  35727. + esac
  35728. + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  35729. + as_dirs=
  35730. + while :; do
  35731. + case $as_dir in #(
  35732. + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  35733. + *) as_qdir=$as_dir;;
  35734. + esac
  35735. + as_dirs="'$as_qdir' $as_dirs"
  35736. + as_dir=`$as_dirname -- "$as_dir" ||
  35737. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  35738. + X"$as_dir" : 'X\(//\)[^/]' \| \
  35739. + X"$as_dir" : 'X\(//\)$' \| \
  35740. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  35741. +echo X"$as_dir" |
  35742. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  35743. + s//\1/
  35744. + q
  35745. + }
  35746. + /^X\(\/\/\)[^/].*/{
  35747. + s//\1/
  35748. + q
  35749. + }
  35750. + /^X\(\/\/\)$/{
  35751. + s//\1/
  35752. + q
  35753. + }
  35754. + /^X\(\/\).*/{
  35755. + s//\1/
  35756. + q
  35757. + }
  35758. + s/.*/./; q'`
  35759. + test -d "$as_dir" && break
  35760. + done
  35761. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  35762. + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  35763. +echo "$as_me: error: cannot create directory $as_dir" >&2;}
  35764. + { (exit 1); exit 1; }; }; }
  35765. + ac_builddir=.
  35766. -# The commands to list exported symbols.
  35767. -export_symbols_cmds=$lt_export_symbols_cmds
  35768. +case "$ac_dir" in
  35769. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  35770. +*)
  35771. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  35772. + # A ".." for each directory in $ac_dir_suffix.
  35773. + ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  35774. + case $ac_top_builddir_sub in
  35775. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  35776. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  35777. + esac ;;
  35778. +esac
  35779. +ac_abs_top_builddir=$ac_pwd
  35780. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  35781. +# for backward compatibility:
  35782. +ac_top_builddir=$ac_top_build_prefix
  35783. -# Symbols that should not be listed in the preloaded symbols.
  35784. -exclude_expsyms=$lt_exclude_expsyms
  35785. +case $srcdir in
  35786. + .) # We are building in place.
  35787. + ac_srcdir=.
  35788. + ac_top_srcdir=$ac_top_builddir_sub
  35789. + ac_abs_top_srcdir=$ac_pwd ;;
  35790. + [\\/]* | ?:[\\/]* ) # Absolute name.
  35791. + ac_srcdir=$srcdir$ac_dir_suffix;
  35792. + ac_top_srcdir=$srcdir
  35793. + ac_abs_top_srcdir=$srcdir ;;
  35794. + *) # Relative name.
  35795. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  35796. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  35797. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  35798. +esac
  35799. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  35800. -# Symbols that must always be exported.
  35801. -include_expsyms=$lt_include_expsyms
  35802. -# Commands necessary for linking programs (against libraries) with templates.
  35803. -prelink_cmds=$lt_prelink_cmds
  35804. + case $ac_mode in
  35805. + :F)
  35806. + #
  35807. + # CONFIG_FILE
  35808. + #
  35809. -# Specify filename containing input files.
  35810. -file_list_spec=$lt_file_list_spec
  35811. + case $INSTALL in
  35812. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  35813. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  35814. + esac
  35815. + ac_MKDIR_P=$MKDIR_P
  35816. + case $MKDIR_P in
  35817. + [\\/$]* | ?:[\\/]* ) ;;
  35818. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  35819. + esac
  35820. +_ACEOF
  35821. -# How to hardcode a shared library path into an executable.
  35822. -hardcode_action=$hardcode_action
  35823. +cat >>$CONFIG_STATUS <<\_ACEOF
  35824. +# If the template does not know about datarootdir, expand it.
  35825. +# FIXME: This hack should be removed a few years after 2.60.
  35826. +ac_datarootdir_hack=; ac_datarootdir_seen=
  35827. -# ### END LIBTOOL CONFIG
  35828. +case `sed -n '/datarootdir/ {
  35829. + p
  35830. + q
  35831. +}
  35832. +/@datadir@/p
  35833. +/@docdir@/p
  35834. +/@infodir@/p
  35835. +/@localedir@/p
  35836. +/@mandir@/p
  35837. +' $ac_file_inputs` in
  35838. +*datarootdir*) ac_datarootdir_seen=yes;;
  35839. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  35840. + { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  35841. +echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  35842. +_ACEOF
  35843. +cat >>$CONFIG_STATUS <<_ACEOF
  35844. + ac_datarootdir_hack='
  35845. + s&@datadir@&$datadir&g
  35846. + s&@docdir@&$docdir&g
  35847. + s&@infodir@&$infodir&g
  35848. + s&@localedir@&$localedir&g
  35849. + s&@mandir@&$mandir&g
  35850. + s&\\\${datarootdir}&$datarootdir&g' ;;
  35851. +esac
  35852. +_ACEOF
  35853. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  35854. -# if CDPATH is set.
  35855. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  35856. +# Neutralize VPATH when `$srcdir' = `.'.
  35857. +# Shell code in configure.ac might set extrasub.
  35858. +# FIXME: do we really want to maintain this feature?
  35859. +cat >>$CONFIG_STATUS <<_ACEOF
  35860. + sed "$ac_vpsub
  35861. +$extrasub
  35862. +_ACEOF
  35863. +cat >>$CONFIG_STATUS <<\_ACEOF
  35864. +:t
  35865. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  35866. +s&@configure_input@&$configure_input&;t t
  35867. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  35868. +s&@srcdir@&$ac_srcdir&;t t
  35869. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  35870. +s&@top_srcdir@&$ac_top_srcdir&;t t
  35871. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  35872. +s&@builddir@&$ac_builddir&;t t
  35873. +s&@abs_builddir@&$ac_abs_builddir&;t t
  35874. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  35875. +s&@INSTALL@&$ac_INSTALL&;t t
  35876. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  35877. +$ac_datarootdir_hack
  35878. +" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  35879. -_LT_EOF
  35880. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  35881. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  35882. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  35883. + { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  35884. +which seems to be undefined. Please make sure it is defined." >&5
  35885. +echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  35886. +which seems to be undefined. Please make sure it is defined." >&2;}
  35887. - case $host_os in
  35888. - aix3*)
  35889. - cat <<\_LT_EOF >> "$cfgfile"
  35890. -# AIX sometimes has problems with the GCC collect2 program. For some
  35891. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  35892. -# vanish in a puff of smoke.
  35893. -if test "X${COLLECT_NAMES+set}" != Xset; then
  35894. - COLLECT_NAMES=
  35895. - export COLLECT_NAMES
  35896. -fi
  35897. -_LT_EOF
  35898. - ;;
  35899. + rm -f "$tmp/stdin"
  35900. + case $ac_file in
  35901. + -) cat "$tmp/out"; rm -f "$tmp/out";;
  35902. + *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  35903. esac
  35904. + ;;
  35905. + :H)
  35906. + #
  35907. + # CONFIG_HEADER
  35908. + #
  35909. +_ACEOF
  35910. +# Transform confdefs.h into a sed script `conftest.defines', that
  35911. +# substitutes the proper values into config.h.in to produce config.h.
  35912. +rm -f conftest.defines conftest.tail
  35913. +# First, append a space to every undef/define line, to ease matching.
  35914. +echo 's/$/ /' >conftest.defines
  35915. +# Then, protect against being on the right side of a sed subst, or in
  35916. +# an unquoted here document, in config.status. If some macros were
  35917. +# called several times there might be several #defines for the same
  35918. +# symbol, which is useless. But do not sort them, since the last
  35919. +# AC_DEFINE must be honored.
  35920. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  35921. +# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  35922. +# NAME is the cpp macro being defined, VALUE is the value it is being given.
  35923. +# PARAMS is the parameter list in the macro definition--in most cases, it's
  35924. +# just an empty string.
  35925. +ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  35926. +ac_dB='\\)[ (].*,\\1define\\2'
  35927. +ac_dC=' '
  35928. +ac_dD=' ,'
  35929. -ltmain="$ac_aux_dir/ltmain.sh"
  35930. +uniq confdefs.h |
  35931. + sed -n '
  35932. + t rset
  35933. + :rset
  35934. + s/^[ ]*#[ ]*define[ ][ ]*//
  35935. + t ok
  35936. + d
  35937. + :ok
  35938. + s/[\\&,]/\\&/g
  35939. + s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  35940. + s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  35941. + ' >>conftest.defines
  35942. +# Remove the space that was appended to ease matching.
  35943. +# Then replace #undef with comments. This is necessary, for
  35944. +# example, in the case of _POSIX_SOURCE, which is predefined and required
  35945. +# on some systems where configure will not decide to define it.
  35946. +# (The regexp can be short, since the line contains either #define or #undef.)
  35947. +echo 's/ $//
  35948. +s,^[ #]*u.*,/* & */,' >>conftest.defines
  35949. - # We use sed instead of cat because bash on DJGPP gets confused if
  35950. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  35951. - # text mode, it properly converts lines to CR/LF. This bash problem
  35952. - # is reportedly fixed, but why not run on old versions too?
  35953. - sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  35954. - || (rm -f "$cfgfile"; exit 1)
  35955. +# Break up conftest.defines:
  35956. +ac_max_sed_lines=50
  35957. - case $xsi_shell in
  35958. - yes)
  35959. - cat << \_LT_EOF >> "$cfgfile"
  35960. -# func_dirname file append nondir_replacement
  35961. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  35962. -# otherwise set result to NONDIR_REPLACEMENT.
  35963. -func_dirname ()
  35964. -{
  35965. - case ${1} in
  35966. - */*) func_dirname_result="${1%/*}${2}" ;;
  35967. - * ) func_dirname_result="${3}" ;;
  35968. - esac
  35969. -}
  35970. +# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  35971. +# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  35972. +# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  35973. +# et cetera.
  35974. +ac_in='$ac_file_inputs'
  35975. +ac_out='"$tmp/out1"'
  35976. +ac_nxt='"$tmp/out2"'
  35977. -# func_basename file
  35978. -func_basename ()
  35979. -{
  35980. - func_basename_result="${1##*/}"
  35981. -}
  35982. +while :
  35983. +do
  35984. + # Write a here document:
  35985. + cat >>$CONFIG_STATUS <<_ACEOF
  35986. + # First, check the format of the line:
  35987. + cat >"\$tmp/defines.sed" <<\\CEOF
  35988. +/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  35989. +/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  35990. +b
  35991. +:def
  35992. +_ACEOF
  35993. + sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  35994. + echo 'CEOF
  35995. + sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  35996. + ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  35997. + sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  35998. + grep . conftest.tail >/dev/null || break
  35999. + rm -f conftest.defines
  36000. + mv conftest.tail conftest.defines
  36001. +done
  36002. +rm -f conftest.defines conftest.tail
  36003. -# func_stripname prefix suffix name
  36004. -# strip PREFIX and SUFFIX off of NAME.
  36005. -# PREFIX and SUFFIX must not contain globbing or regex special
  36006. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  36007. -# dot (in which case that matches only a dot).
  36008. -func_stripname ()
  36009. -{
  36010. - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  36011. - # positional parameters, so assign one to ordinary parameter first.
  36012. - func_stripname_result=${3}
  36013. - func_stripname_result=${func_stripname_result#"${1}"}
  36014. - func_stripname_result=${func_stripname_result%"${2}"}
  36015. -}
  36016. -_LT_EOF
  36017. - ;;
  36018. - *) # Bourne compatible functions.
  36019. - cat << \_LT_EOF >> "$cfgfile"
  36020. -# func_dirname file append nondir_replacement
  36021. -# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  36022. -# otherwise set result to NONDIR_REPLACEMENT.
  36023. -func_dirname ()
  36024. -{
  36025. - # Extract subdirectory from the argument.
  36026. - func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  36027. - if test "X$func_dirname_result" = "X${1}"; then
  36028. - func_dirname_result="${3}"
  36029. +echo "ac_result=$ac_in" >>$CONFIG_STATUS
  36030. +cat >>$CONFIG_STATUS <<\_ACEOF
  36031. + if test x"$ac_file" != x-; then
  36032. + echo "/* $configure_input */" >"$tmp/config.h"
  36033. + cat "$ac_result" >>"$tmp/config.h"
  36034. + if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  36035. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  36036. +echo "$as_me: $ac_file is unchanged" >&6;}
  36037. + else
  36038. + rm -f $ac_file
  36039. + mv "$tmp/config.h" $ac_file
  36040. + fi
  36041. else
  36042. - func_dirname_result="$func_dirname_result${2}"
  36043. + echo "/* $configure_input */"
  36044. + cat "$ac_result"
  36045. fi
  36046. -}
  36047. -
  36048. -# func_basename file
  36049. -func_basename ()
  36050. -{
  36051. - func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  36052. -}
  36053. -
  36054. -# func_stripname prefix suffix name
  36055. -# strip PREFIX and SUFFIX off of NAME.
  36056. -# PREFIX and SUFFIX must not contain globbing or regex special
  36057. -# characters, hashes, percent signs, but SUFFIX may contain a leading
  36058. -# dot (in which case that matches only a dot).
  36059. -# func_strip_suffix prefix name
  36060. -func_stripname ()
  36061. -{
  36062. - case ${2} in
  36063. - .*) func_stripname_result=`$ECHO "X${3}" \
  36064. - | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  36065. - *) func_stripname_result=`$ECHO "X${3}" \
  36066. - | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  36067. + rm -f "$tmp/out12"
  36068. +# Compute $ac_file's index in $config_headers.
  36069. +_am_stamp_count=1
  36070. +for _am_header in $config_headers :; do
  36071. + case $_am_header in
  36072. + $ac_file | $ac_file:* )
  36073. + break ;;
  36074. + * )
  36075. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  36076. esac
  36077. -}
  36078. -_LT_EOF
  36079. -esac
  36080. -
  36081. +done
  36082. +echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  36083. +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36084. + X$ac_file : 'X\(//\)[^/]' \| \
  36085. + X$ac_file : 'X\(//\)$' \| \
  36086. + X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  36087. +echo X$ac_file |
  36088. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36089. + s//\1/
  36090. + q
  36091. + }
  36092. + /^X\(\/\/\)[^/].*/{
  36093. + s//\1/
  36094. + q
  36095. + }
  36096. + /^X\(\/\/\)$/{
  36097. + s//\1/
  36098. + q
  36099. + }
  36100. + /^X\(\/\).*/{
  36101. + s//\1/
  36102. + q
  36103. + }
  36104. + s/.*/./; q'`/stamp-h$_am_stamp_count
  36105. + ;;
  36106. - sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  36107. - || (rm -f "$cfgfile"; exit 1)
  36108. + :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  36109. +echo "$as_me: executing $ac_file commands" >&6;}
  36110. + ;;
  36111. + esac
  36112. - mv -f "$cfgfile" "$ofile" ||
  36113. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  36114. - chmod +x "$ofile"
  36115. + case $ac_file$ac_mode in
  36116. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  36117. + # Strip MF so we end up with the name of the file.
  36118. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  36119. + # Check whether this is an Automake generated Makefile or not.
  36120. + # We used to match only the files named `Makefile.in', but
  36121. + # some people rename them; so instead we look at the file content.
  36122. + # Grep'ing the first line is not enough: some people post-process
  36123. + # each Makefile.in and add a new line on top of each file to say so.
  36124. + # Grep'ing the whole file is not good either: AIX grep has a line
  36125. + # limit of 2048, but all sed's we know have understand at least 4000.
  36126. + if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  36127. + dirpart=`$as_dirname -- "$mf" ||
  36128. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36129. + X"$mf" : 'X\(//\)[^/]' \| \
  36130. + X"$mf" : 'X\(//\)$' \| \
  36131. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  36132. +echo X"$mf" |
  36133. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36134. + s//\1/
  36135. + q
  36136. + }
  36137. + /^X\(\/\/\)[^/].*/{
  36138. + s//\1/
  36139. + q
  36140. + }
  36141. + /^X\(\/\/\)$/{
  36142. + s//\1/
  36143. + q
  36144. + }
  36145. + /^X\(\/\).*/{
  36146. + s//\1/
  36147. + q
  36148. + }
  36149. + s/.*/./; q'`
  36150. + else
  36151. + continue
  36152. + fi
  36153. + # Extract the definition of DEPDIR, am__include, and am__quote
  36154. + # from the Makefile without running `make'.
  36155. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  36156. + test -z "$DEPDIR" && continue
  36157. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  36158. + test -z "am__include" && continue
  36159. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  36160. + # When using ansi2knr, U may be empty or an underscore; expand it
  36161. + U=`sed -n 's/^U = //p' < "$mf"`
  36162. + # Find all dependency output files, they are included files with
  36163. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  36164. + # simplest approach to changing $(DEPDIR) to its actual value in the
  36165. + # expansion.
  36166. + for file in `sed -n "
  36167. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  36168. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  36169. + # Make sure the directory exists.
  36170. + test -f "$dirpart/$file" && continue
  36171. + fdir=`$as_dirname -- "$file" ||
  36172. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36173. + X"$file" : 'X\(//\)[^/]' \| \
  36174. + X"$file" : 'X\(//\)$' \| \
  36175. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  36176. +echo X"$file" |
  36177. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36178. + s//\1/
  36179. + q
  36180. + }
  36181. + /^X\(\/\/\)[^/].*/{
  36182. + s//\1/
  36183. + q
  36184. + }
  36185. + /^X\(\/\/\)$/{
  36186. + s//\1/
  36187. + q
  36188. + }
  36189. + /^X\(\/\).*/{
  36190. + s//\1/
  36191. + q
  36192. + }
  36193. + s/.*/./; q'`
  36194. + { as_dir=$dirpart/$fdir
  36195. + case $as_dir in #(
  36196. + -*) as_dir=./$as_dir;;
  36197. + esac
  36198. + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  36199. + as_dirs=
  36200. + while :; do
  36201. + case $as_dir in #(
  36202. + *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  36203. + *) as_qdir=$as_dir;;
  36204. + esac
  36205. + as_dirs="'$as_qdir' $as_dirs"
  36206. + as_dir=`$as_dirname -- "$as_dir" ||
  36207. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  36208. + X"$as_dir" : 'X\(//\)[^/]' \| \
  36209. + X"$as_dir" : 'X\(//\)$' \| \
  36210. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  36211. +echo X"$as_dir" |
  36212. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  36213. + s//\1/
  36214. + q
  36215. + }
  36216. + /^X\(\/\/\)[^/].*/{
  36217. + s//\1/
  36218. + q
  36219. + }
  36220. + /^X\(\/\/\)$/{
  36221. + s//\1/
  36222. + q
  36223. + }
  36224. + /^X\(\/\).*/{
  36225. + s//\1/
  36226. + q
  36227. + }
  36228. + s/.*/./; q'`
  36229. + test -d "$as_dir" && break
  36230. + done
  36231. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  36232. + } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  36233. +echo "$as_me: error: cannot create directory $as_dir" >&2;}
  36234. + { (exit 1); exit 1; }; }; }
  36235. + # echo "creating $dirpart/$file"
  36236. + echo '# dummy' > "$dirpart/$file"
  36237. + done
  36238. +done
  36239. ;;
  36240. esac
  36241. diff -Naur old/configure.in new/configure.in
  36242. --- old/configure.in 2008-02-19 11:51:21.000000000 -0800
  36243. +++ new/configure.in 2008-11-26 22:23:12.000000000 -0800
  36244. @@ -16,6 +16,7 @@
  36245. case $target_os in
  36246. *linux*) arch=linux;;
  36247. *bsd*) arch=bsd;;
  36248. + *darwin*) arch=darwin;;
  36249. *) arch=unknown;;
  36250. esac
  36251. @@ -75,7 +76,7 @@
  36252. if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
  36253. done
  36254. ])
  36255. -AM_ICONV
  36256. +#AM_ICONV
  36257. libfuse_libs="$libfuse_libs $LIBICONV"
  36258. AM_CONDITIONAL(ICONV, test "$am_cv_func_iconv" = yes)
  36259. AC_SUBST(libfuse_libs)
  36260. @@ -97,6 +98,7 @@
  36261. AM_CONDITIONAL(LINUX, test "$arch" = linux)
  36262. AM_CONDITIONAL(BSD, test "$arch" = bsd)
  36263. +AM_CONDITIONAL(DARWIN, test "$arch" = darwin)
  36264. AC_CONFIG_FILES([fuse.pc Makefile lib/Makefile util/Makefile example/Makefile include/Makefile])
  36265. AC_OUTPUT
  36266. diff -Naur old/darwin_configure.sh new/darwin_configure.sh
  36267. --- old/darwin_configure.sh 1969-12-31 16:00:00.000000000 -0800
  36268. +++ new/darwin_configure.sh 2008-11-26 22:23:12.000000000 -0800
  36269. @@ -0,0 +1,6 @@
  36270. +#! /bin/sh
  36271. +
  36272. +MACFUSE_SRCROOT=${MACFUSE_SRCROOT:-$1}
  36273. +MACFUSE_SRCROOT=${MACFUSE_SRCROOT:?}
  36274. +
  36275. +CC=gcc-4.0 CFLAGS="-D__FreeBSD__=10 -D_POSIX_C_SOURCE=200112L -I$MACFUSE_SRCROOT/common -O -g -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4" LDFLAGS="-arch i386 -arch ppc -Wl,-no_uuid -framework CoreFoundation" ./configure --prefix=/usr/local --disable-dependency-tracking --disable-static
  36276. diff -Naur old/example/Makefile.am new/example/Makefile.am
  36277. --- old/example/Makefile.am 2008-02-19 11:51:22.000000000 -0800
  36278. +++ new/example/Makefile.am 2008-11-26 22:23:12.000000000 -0800
  36279. @@ -4,4 +4,8 @@
  36280. noinst_PROGRAMS = fusexmp fusexmp_fh null hello hello_ll
  36281. LDADD = ../lib/libfuse.la @libfuse_libs@
  36282. +if DARWIN
  36283. fusexmp_fh_LDADD = ../lib/libfuse.la ../lib/libulockmgr.la @libfuse_libs@
  36284. +else
  36285. +fusexmp_fh_LDADD = ../lib/libfuse.la @libfuse_libs@
  36286. +endif
  36287. diff -Naur old/example/Makefile.in new/example/Makefile.in
  36288. --- old/example/Makefile.in 2008-02-19 12:00:53.000000000 -0800
  36289. +++ new/example/Makefile.in 2008-11-26 22:23:12.000000000 -0800
  36290. @@ -1,8 +1,8 @@
  36291. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  36292. +# Makefile.in generated by automake 1.10 from Makefile.am.
  36293. # @configure_input@
  36294. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  36295. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  36296. +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  36297. # This Makefile.in is free software; the Free Software Foundation
  36298. # gives unlimited permission to copy and/or distribute it,
  36299. # with or without modifications, as long as this notice is preserved.
  36300. @@ -14,15 +14,11 @@
  36301. @SET_MAKE@
  36302. -srcdir = @srcdir@
  36303. -top_srcdir = @top_srcdir@
  36304. VPATH = @srcdir@
  36305. pkgdatadir = $(datadir)/@PACKAGE@
  36306. pkglibdir = $(libdir)/@PACKAGE@
  36307. pkgincludedir = $(includedir)/@PACKAGE@
  36308. -top_builddir = ..
  36309. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  36310. -INSTALL = @INSTALL@
  36311. install_sh_DATA = $(install_sh) -c -m 644
  36312. install_sh_PROGRAM = $(install_sh) -c
  36313. install_sh_SCRIPT = $(install_sh) -c
  36314. @@ -42,7 +38,8 @@
  36315. subdir = example
  36316. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  36317. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  36318. -am__aclocal_m4_deps = $(top_srcdir)/configure.in
  36319. +am__aclocal_m4_deps = $(top_srcdir)/iconv.m4 \
  36320. + $(top_srcdir)/configure.in
  36321. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  36322. $(ACLOCAL_M4)
  36323. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  36324. @@ -55,7 +52,8 @@
  36325. fusexmp_DEPENDENCIES = ../lib/libfuse.la
  36326. fusexmp_fh_SOURCES = fusexmp_fh.c
  36327. fusexmp_fh_OBJECTS = fusexmp_fh.$(OBJEXT)
  36328. -fusexmp_fh_DEPENDENCIES = ../lib/libfuse.la ../lib/libulockmgr.la
  36329. +@DARWIN_FALSE@fusexmp_fh_DEPENDENCIES = ../lib/libfuse.la ../lib/libulockmgr.la
  36330. +@DARWIN_TRUE@fusexmp_fh_DEPENDENCIES = ../lib/libfuse.la
  36331. hello_SOURCES = hello.c
  36332. hello_OBJECTS = hello.$(OBJEXT)
  36333. hello_LDADD = $(LDADD)
  36334. @@ -68,70 +66,67 @@
  36335. null_OBJECTS = null.$(OBJEXT)
  36336. null_LDADD = $(LDADD)
  36337. null_DEPENDENCIES = ../lib/libfuse.la
  36338. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
  36339. +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include@am__isrc@
  36340. depcomp = $(SHELL) $(top_srcdir)/depcomp
  36341. am__depfiles_maybe = depfiles
  36342. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  36343. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  36344. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  36345. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  36346. - $(AM_CFLAGS) $(CFLAGS)
  36347. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  36348. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  36349. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  36350. CCLD = $(CC)
  36351. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  36352. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  36353. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  36354. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  36355. + $(LDFLAGS) -o $@
  36356. SOURCES = fusexmp.c fusexmp_fh.c hello.c hello_ll.c null.c
  36357. DIST_SOURCES = fusexmp.c fusexmp_fh.c hello.c hello_ll.c null.c
  36358. ETAGS = etags
  36359. CTAGS = ctags
  36360. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  36361. ACLOCAL = @ACLOCAL@
  36362. -AMDEP_FALSE = @AMDEP_FALSE@
  36363. -AMDEP_TRUE = @AMDEP_TRUE@
  36364. AMTAR = @AMTAR@
  36365. AR = @AR@
  36366. AUTOCONF = @AUTOCONF@
  36367. AUTOHEADER = @AUTOHEADER@
  36368. AUTOMAKE = @AUTOMAKE@
  36369. AWK = @AWK@
  36370. -BSD_FALSE = @BSD_FALSE@
  36371. -BSD_TRUE = @BSD_TRUE@
  36372. CC = @CC@
  36373. CCDEPMODE = @CCDEPMODE@
  36374. CFLAGS = @CFLAGS@
  36375. CPP = @CPP@
  36376. CPPFLAGS = @CPPFLAGS@
  36377. +CXX = @CXX@
  36378. +CXXCPP = @CXXCPP@
  36379. +CXXDEPMODE = @CXXDEPMODE@
  36380. +CXXFLAGS = @CXXFLAGS@
  36381. CYGPATH_W = @CYGPATH_W@
  36382. DEFS = @DEFS@
  36383. DEPDIR = @DEPDIR@
  36384. -DUMPBIN = @DUMPBIN@
  36385. +ECHO = @ECHO@
  36386. ECHO_C = @ECHO_C@
  36387. ECHO_N = @ECHO_N@
  36388. ECHO_T = @ECHO_T@
  36389. EGREP = @EGREP@
  36390. EXEEXT = @EXEEXT@
  36391. -FGREP = @FGREP@
  36392. +F77 = @F77@
  36393. +FFLAGS = @FFLAGS@
  36394. GREP = @GREP@
  36395. -ICONV_FALSE = @ICONV_FALSE@
  36396. -ICONV_TRUE = @ICONV_TRUE@
  36397. INIT_D_PATH = @INIT_D_PATH@
  36398. +INSTALL = @INSTALL@
  36399. INSTALL_DATA = @INSTALL_DATA@
  36400. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  36401. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  36402. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  36403. -LD = @LD@
  36404. LDFLAGS = @LDFLAGS@
  36405. LIBICONV = @LIBICONV@
  36406. LIBOBJS = @LIBOBJS@
  36407. LIBS = @LIBS@
  36408. LIBTOOL = @LIBTOOL@
  36409. -LINUX_FALSE = @LINUX_FALSE@
  36410. -LINUX_TRUE = @LINUX_TRUE@
  36411. LN_S = @LN_S@
  36412. -LTLIBICONV = @LTLIBICONV@
  36413. LTLIBOBJS = @LTLIBOBJS@
  36414. MAKEINFO = @MAKEINFO@
  36415. +MKDIR_P = @MKDIR_P@
  36416. MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
  36417. -NM = @NM@
  36418. OBJEXT = @OBJEXT@
  36419. PACKAGE = @PACKAGE@
  36420. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  36421. @@ -141,16 +136,18 @@
  36422. PACKAGE_VERSION = @PACKAGE_VERSION@
  36423. PATH_SEPARATOR = @PATH_SEPARATOR@
  36424. RANLIB = @RANLIB@
  36425. -SED = @SED@
  36426. SET_MAKE = @SET_MAKE@
  36427. SHELL = @SHELL@
  36428. STRIP = @STRIP@
  36429. UDEV_RULES_PATH = @UDEV_RULES_PATH@
  36430. VERSION = @VERSION@
  36431. +abs_builddir = @abs_builddir@
  36432. +abs_srcdir = @abs_srcdir@
  36433. +abs_top_builddir = @abs_top_builddir@
  36434. +abs_top_srcdir = @abs_top_srcdir@
  36435. ac_ct_CC = @ac_ct_CC@
  36436. -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  36437. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  36438. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  36439. +ac_ct_CXX = @ac_ct_CXX@
  36440. +ac_ct_F77 = @ac_ct_F77@
  36441. am__include = @am__include@
  36442. am__leading_dot = @am__leading_dot@
  36443. am__quote = @am__quote@
  36444. @@ -162,6 +159,7 @@
  36445. build_cpu = @build_cpu@
  36446. build_os = @build_os@
  36447. build_vendor = @build_vendor@
  36448. +builddir = @builddir@
  36449. datadir = @datadir@
  36450. datarootdir = @datarootdir@
  36451. docdir = @docdir@
  36452. @@ -181,7 +179,6 @@
  36453. libfuse_libs = @libfuse_libs@
  36454. localedir = @localedir@
  36455. localstatedir = @localstatedir@
  36456. -lt_ECHO = @lt_ECHO@
  36457. mandir = @mandir@
  36458. mkdir_p = @mkdir_p@
  36459. oldincludedir = @oldincludedir@
  36460. @@ -192,6 +189,7 @@
  36461. psdir = @psdir@
  36462. sbindir = @sbindir@
  36463. sharedstatedir = @sharedstatedir@
  36464. +srcdir = @srcdir@
  36465. subdirs = @subdirs@
  36466. subdirs2 = @subdirs2@
  36467. sysconfdir = @sysconfdir@
  36468. @@ -200,9 +198,12 @@
  36469. target_cpu = @target_cpu@
  36470. target_os = @target_os@
  36471. target_vendor = @target_vendor@
  36472. +top_builddir = @top_builddir@
  36473. +top_srcdir = @top_srcdir@
  36474. AM_CPPFLAGS = -I$(top_srcdir)/include -D_FILE_OFFSET_BITS=64 -D_REENTRANT
  36475. LDADD = ../lib/libfuse.la @libfuse_libs@
  36476. -fusexmp_fh_LDADD = ../lib/libfuse.la ../lib/libulockmgr.la @libfuse_libs@
  36477. +@DARWIN_FALSE@fusexmp_fh_LDADD = ../lib/libfuse.la ../lib/libulockmgr.la @libfuse_libs@
  36478. +@DARWIN_TRUE@fusexmp_fh_LDADD = ../lib/libfuse.la @libfuse_libs@
  36479. all: all-am
  36480. .SUFFIXES:
  36481. @@ -245,19 +246,19 @@
  36482. done
  36483. fusexmp$(EXEEXT): $(fusexmp_OBJECTS) $(fusexmp_DEPENDENCIES)
  36484. @rm -f fusexmp$(EXEEXT)
  36485. - $(LINK) $(fusexmp_LDFLAGS) $(fusexmp_OBJECTS) $(fusexmp_LDADD) $(LIBS)
  36486. + $(LINK) $(fusexmp_OBJECTS) $(fusexmp_LDADD) $(LIBS)
  36487. fusexmp_fh$(EXEEXT): $(fusexmp_fh_OBJECTS) $(fusexmp_fh_DEPENDENCIES)
  36488. @rm -f fusexmp_fh$(EXEEXT)
  36489. - $(LINK) $(fusexmp_fh_LDFLAGS) $(fusexmp_fh_OBJECTS) $(fusexmp_fh_LDADD) $(LIBS)
  36490. + $(LINK) $(fusexmp_fh_OBJECTS) $(fusexmp_fh_LDADD) $(LIBS)
  36491. hello$(EXEEXT): $(hello_OBJECTS) $(hello_DEPENDENCIES)
  36492. @rm -f hello$(EXEEXT)
  36493. - $(LINK) $(hello_LDFLAGS) $(hello_OBJECTS) $(hello_LDADD) $(LIBS)
  36494. + $(LINK) $(hello_OBJECTS) $(hello_LDADD) $(LIBS)
  36495. hello_ll$(EXEEXT): $(hello_ll_OBJECTS) $(hello_ll_DEPENDENCIES)
  36496. @rm -f hello_ll$(EXEEXT)
  36497. - $(LINK) $(hello_ll_LDFLAGS) $(hello_ll_OBJECTS) $(hello_ll_LDADD) $(LIBS)
  36498. + $(LINK) $(hello_ll_OBJECTS) $(hello_ll_LDADD) $(LIBS)
  36499. null$(EXEEXT): $(null_OBJECTS) $(null_DEPENDENCIES)
  36500. @rm -f null$(EXEEXT)
  36501. - $(LINK) $(null_LDFLAGS) $(null_OBJECTS) $(null_LDADD) $(LIBS)
  36502. + $(LINK) $(null_OBJECTS) $(null_LDADD) $(LIBS)
  36503. mostlyclean-compile:
  36504. -rm -f *.$(OBJEXT)
  36505. @@ -272,22 +273,22 @@
  36506. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/null.Po@am__quote@
  36507. .c.o:
  36508. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  36509. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  36510. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  36511. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  36512. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  36513. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  36514. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  36515. .c.obj:
  36516. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  36517. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  36518. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  36519. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  36520. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  36521. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  36522. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  36523. .c.lo:
  36524. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  36525. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  36526. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  36527. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  36528. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  36529. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  36530. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  36531. @@ -298,10 +299,6 @@
  36532. clean-libtool:
  36533. -rm -rf .libs _libs
  36534. -distclean-libtool:
  36535. - -rm -f libtool
  36536. -uninstall-info-am:
  36537. -
  36538. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  36539. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  36540. unique=`for i in $$list; do \
  36541. @@ -351,22 +348,21 @@
  36542. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  36543. distdir: $(DISTFILES)
  36544. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  36545. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  36546. - list='$(DISTFILES)'; for file in $$list; do \
  36547. - case $$file in \
  36548. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  36549. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  36550. - esac; \
  36551. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  36552. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  36553. + list='$(DISTFILES)'; \
  36554. + dist_files=`for file in $$list; do echo $$file; done | \
  36555. + sed -e "s|^$$srcdirstrip/||;t" \
  36556. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  36557. + case $$dist_files in \
  36558. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  36559. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  36560. + sort -u` ;; \
  36561. + esac; \
  36562. + for file in $$dist_files; do \
  36563. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  36564. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  36565. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  36566. - dir="/$$dir"; \
  36567. - $(mkdir_p) "$(distdir)$$dir"; \
  36568. - else \
  36569. - dir=''; \
  36570. - fi; \
  36571. if test -d $$d/$$file; then \
  36572. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  36573. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  36574. cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  36575. fi; \
  36576. @@ -414,7 +410,7 @@
  36577. -rm -rf ./$(DEPDIR)
  36578. -rm -f Makefile
  36579. distclean-am: clean-am distclean-compile distclean-generic \
  36580. - distclean-libtool distclean-tags
  36581. + distclean-tags
  36582. dvi: dvi-am
  36583. @@ -428,12 +424,20 @@
  36584. install-data-am:
  36585. +install-dvi: install-dvi-am
  36586. +
  36587. install-exec-am:
  36588. +install-html: install-html-am
  36589. +
  36590. install-info: install-info-am
  36591. install-man:
  36592. +install-pdf: install-pdf-am
  36593. +
  36594. +install-ps: install-ps-am
  36595. +
  36596. installcheck-am:
  36597. maintainer-clean: maintainer-clean-am
  36598. @@ -454,19 +458,22 @@
  36599. ps-am:
  36600. -uninstall-am: uninstall-info-am
  36601. +uninstall-am:
  36602. +
  36603. +.MAKE: install-am install-strip
  36604. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  36605. clean-libtool clean-noinstPROGRAMS ctags distclean \
  36606. distclean-compile distclean-generic distclean-libtool \
  36607. distclean-tags distdir dvi dvi-am html html-am info info-am \
  36608. - install install-am install-data install-data-am install-exec \
  36609. - install-exec-am install-info install-info-am install-man \
  36610. + install install-am install-data install-data-am install-dvi \
  36611. + install-dvi-am install-exec install-exec-am install-html \
  36612. + install-html-am install-info install-info-am install-man \
  36613. + install-pdf install-pdf-am install-ps install-ps-am \
  36614. install-strip installcheck installcheck-am installdirs \
  36615. maintainer-clean maintainer-clean-generic mostlyclean \
  36616. mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  36617. - pdf pdf-am ps ps-am tags uninstall uninstall-am \
  36618. - uninstall-info-am
  36619. + pdf pdf-am ps ps-am tags uninstall uninstall-am
  36620. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  36621. # Otherwise a system limit (for SysV at least) may be exceeded.
  36622. diff -Naur old/example/fusexmp.c new/example/fusexmp.c
  36623. --- old/example/fusexmp.c 2008-02-19 11:51:22.000000000 -0800
  36624. +++ new/example/fusexmp.c 2008-11-26 22:23:12.000000000 -0800
  36625. @@ -31,6 +31,8 @@
  36626. #include <sys/xattr.h>
  36627. #endif
  36628. +#if !(__FreeBSD__ >= 10)
  36629. +
  36630. static int xmp_getattr(const char *path, struct stat *stbuf)
  36631. {
  36632. int res;
  36633. @@ -383,3 +385,14 @@
  36634. umask(0);
  36635. return fuse_main(argc, argv, &xmp_oper, NULL);
  36636. }
  36637. +
  36638. +#else
  36639. +
  36640. +int
  36641. +main(void)
  36642. +{
  36643. + fprintf(stderr, "Please use fusexmp_fh instead of this program.\n");
  36644. + return 1;
  36645. +}
  36646. +
  36647. +#endif
  36648. diff -Naur old/example/fusexmp_fh.c new/example/fusexmp_fh.c
  36649. --- old/example/fusexmp_fh.c 2008-02-19 11:51:22.000000000 -0800
  36650. +++ new/example/fusexmp_fh.c 2008-11-26 22:23:12.000000000 -0800
  36651. @@ -19,6 +19,7 @@
  36652. #include <fuse.h>
  36653. #include <ulockmgr.h>
  36654. #include <stdio.h>
  36655. +#include <stdlib.h>
  36656. #include <string.h>
  36657. #include <unistd.h>
  36658. #include <fcntl.h>
  36659. @@ -29,6 +30,26 @@
  36660. #include <sys/xattr.h>
  36661. #endif
  36662. +#include <sys/param.h>
  36663. +
  36664. +#if (__FreeBSD__ >= 10)
  36665. +
  36666. +#if defined(_POSIX_C_SOURCE)
  36667. +typedef unsigned char u_char;
  36668. +typedef unsigned short u_short;
  36669. +typedef unsigned int u_int;
  36670. +typedef unsigned long u_long;
  36671. +#endif
  36672. +
  36673. +#include <sys/attr.h>
  36674. +
  36675. +#define G_PREFIX "org"
  36676. +#define G_KAUTH_FILESEC_XATTR G_PREFIX ".apple.system.Security"
  36677. +#define A_PREFIX "com"
  36678. +#define A_KAUTH_FILESEC_XATTR A_PREFIX ".apple.system.Security"
  36679. +#define XATTR_APPLE_PREFIX "com.apple."
  36680. +#endif
  36681. +
  36682. static int xmp_getattr(const char *path, struct stat *stbuf)
  36683. {
  36684. int res;
  36685. @@ -77,36 +98,67 @@
  36686. return 0;
  36687. }
  36688. +struct xmp_dirp {
  36689. + DIR *dp;
  36690. + struct dirent *entry;
  36691. + off_t offset;
  36692. +};
  36693. +
  36694. static int xmp_opendir(const char *path, struct fuse_file_info *fi)
  36695. {
  36696. - DIR *dp = opendir(path);
  36697. - if (dp == NULL)
  36698. - return -errno;
  36699. + int res;
  36700. + struct xmp_dirp *d = malloc(sizeof(struct xmp_dirp));
  36701. + if (d == NULL)
  36702. + return -ENOMEM;
  36703. - fi->fh = (unsigned long) dp;
  36704. + d->dp = opendir(path);
  36705. + if (d->dp == NULL) {
  36706. + res = -errno;
  36707. + free(d);
  36708. + return res;
  36709. + }
  36710. + d->offset = 0;
  36711. + d->entry = NULL;
  36712. +
  36713. + fi->fh = (unsigned long) d;
  36714. return 0;
  36715. }
  36716. -static inline DIR *get_dirp(struct fuse_file_info *fi)
  36717. +static inline struct xmp_dirp *get_dirp(struct fuse_file_info *fi)
  36718. {
  36719. - return (DIR *) (uintptr_t) fi->fh;
  36720. + return (struct xmp_dirp *) (uintptr_t) fi->fh;
  36721. }
  36722. static int xmp_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
  36723. off_t offset, struct fuse_file_info *fi)
  36724. {
  36725. - DIR *dp = get_dirp(fi);
  36726. - struct dirent *de;
  36727. + struct xmp_dirp *d = get_dirp(fi);
  36728. (void) path;
  36729. - seekdir(dp, offset);
  36730. - while ((de = readdir(dp)) != NULL) {
  36731. + if (offset != d->offset) {
  36732. + seekdir(d->dp, offset);
  36733. + d->entry = NULL;
  36734. + d->offset = offset;
  36735. + }
  36736. + while (1) {
  36737. struct stat st;
  36738. + off_t nextoff;
  36739. +
  36740. + if (!d->entry) {
  36741. + d->entry = readdir(d->dp);
  36742. + if (!d->entry)
  36743. + break;
  36744. + }
  36745. +
  36746. memset(&st, 0, sizeof(st));
  36747. - st.st_ino = de->d_ino;
  36748. - st.st_mode = de->d_type << 12;
  36749. - if (filler(buf, de->d_name, &st, telldir(dp)))
  36750. + st.st_ino = d->entry->d_ino;
  36751. + st.st_mode = d->entry->d_type << 12;
  36752. + nextoff = telldir(d->dp);
  36753. + if (filler(buf, d->entry->d_name, &st, nextoff))
  36754. break;
  36755. +
  36756. + d->entry = NULL;
  36757. + d->offset = nextoff;
  36758. }
  36759. return 0;
  36760. @@ -114,9 +166,10 @@
  36761. static int xmp_releasedir(const char *path, struct fuse_file_info *fi)
  36762. {
  36763. - DIR *dp = get_dirp(fi);
  36764. + struct xmp_dirp *d = get_dirp(fi);
  36765. (void) path;
  36766. - closedir(dp);
  36767. + closedir(d->dp);
  36768. + free(d);
  36769. return 0;
  36770. }
  36771. @@ -189,6 +242,28 @@
  36772. return 0;
  36773. }
  36774. +#if (__FreeBSD__ >= 10)
  36775. +
  36776. +static int xmp_setvolname(const char *volname)
  36777. +{
  36778. + (void)volname;
  36779. + return 0;
  36780. +}
  36781. +
  36782. +static int xmp_exchange(const char *path1, const char *path2,
  36783. + unsigned long options)
  36784. +{
  36785. + int res;
  36786. +
  36787. + res = exchangedata(path1, path2, options);
  36788. + if (res == -1)
  36789. + return -errno;
  36790. +
  36791. + return 0;
  36792. +}
  36793. +
  36794. +#endif /* __FreeBSD__ >= 10 */
  36795. +
  36796. static int xmp_link(const char *from, const char *to)
  36797. {
  36798. int res;
  36799. @@ -200,6 +275,249 @@
  36800. return 0;
  36801. }
  36802. +#if (__FreeBSD__ >= 10)
  36803. +
  36804. +static int xmp_fsetattr_x(const char *path, struct setattr_x *attr,
  36805. + struct fuse_file_info *fi)
  36806. +{
  36807. + int res;
  36808. + uid_t uid = -1;
  36809. + gid_t gid = -1;
  36810. +
  36811. + if (SETATTR_WANTS_MODE(attr)) {
  36812. + res = chmod(path, attr->mode);
  36813. + if (res == -1)
  36814. + return -errno;
  36815. + }
  36816. +
  36817. + if (SETATTR_WANTS_UID(attr))
  36818. + uid = attr->uid;
  36819. +
  36820. + if (SETATTR_WANTS_GID(attr))
  36821. + gid = attr->gid;
  36822. +
  36823. + if ((uid != -1) || (gid != -1)) {
  36824. + res = lchown(path, uid, gid);
  36825. + if (res == -1)
  36826. + return -errno;
  36827. + }
  36828. +
  36829. + if (SETATTR_WANTS_SIZE(attr)) {
  36830. + if (fi)
  36831. + res = ftruncate(fi->fh, attr->size);
  36832. + else
  36833. + res = truncate(path, attr->size);
  36834. + if (res == -1)
  36835. + return -errno;
  36836. + }
  36837. +
  36838. + if (SETATTR_WANTS_MODTIME(attr)) {
  36839. + struct timeval tv[2];
  36840. + if (!SETATTR_WANTS_ACCTIME(attr))
  36841. + gettimeofday(&tv[0], NULL);
  36842. + else {
  36843. + tv[0].tv_sec = attr->acctime.tv_sec;
  36844. + tv[0].tv_usec = attr->acctime.tv_nsec / 1000;
  36845. + }
  36846. + tv[1].tv_sec = attr->modtime.tv_sec;
  36847. + tv[1].tv_usec = attr->modtime.tv_nsec / 1000;
  36848. + res = utimes(path, tv);
  36849. + if (res == -1)
  36850. + return -errno;
  36851. + }
  36852. +
  36853. + if (SETATTR_WANTS_CRTIME(attr)) {
  36854. + struct attrlist attributes;
  36855. +
  36856. + attributes.bitmapcount = ATTR_BIT_MAP_COUNT;
  36857. + attributes.reserved = 0;
  36858. + attributes.commonattr = ATTR_CMN_CRTIME;
  36859. + attributes.dirattr = 0;
  36860. + attributes.fileattr = 0;
  36861. + attributes.forkattr = 0;
  36862. + attributes.volattr = 0;
  36863. +
  36864. + res = setattrlist(path, &attributes, &attr->crtime,
  36865. + sizeof(struct timespec), FSOPT_NOFOLLOW);
  36866. +
  36867. + if (res == -1)
  36868. + return -errno;
  36869. + }
  36870. +
  36871. + if (SETATTR_WANTS_CHGTIME(attr)) {
  36872. + struct attrlist attributes;
  36873. +
  36874. + attributes.bitmapcount = ATTR_BIT_MAP_COUNT;
  36875. + attributes.reserved = 0;
  36876. + attributes.commonattr = ATTR_CMN_CHGTIME;
  36877. + attributes.dirattr = 0;
  36878. + attributes.fileattr = 0;
  36879. + attributes.forkattr = 0;
  36880. + attributes.volattr = 0;
  36881. +
  36882. + res = setattrlist(path, &attributes, &attr->chgtime,
  36883. + sizeof(struct timespec), FSOPT_NOFOLLOW);
  36884. +
  36885. + if (res == -1)
  36886. + return -errno;
  36887. + }
  36888. +
  36889. + if (SETATTR_WANTS_BKUPTIME(attr)) {
  36890. + struct attrlist attributes;
  36891. +
  36892. + attributes.bitmapcount = ATTR_BIT_MAP_COUNT;
  36893. + attributes.reserved = 0;
  36894. + attributes.commonattr = ATTR_CMN_BKUPTIME;
  36895. + attributes.dirattr = 0;
  36896. + attributes.fileattr = 0;
  36897. + attributes.forkattr = 0;
  36898. + attributes.volattr = 0;
  36899. +
  36900. + res = setattrlist(path, &attributes, &attr->bkuptime,
  36901. + sizeof(struct timespec), FSOPT_NOFOLLOW);
  36902. +
  36903. + if (res == -1)
  36904. + return -errno;
  36905. + }
  36906. +
  36907. + if (SETATTR_WANTS_FLAGS(attr)) {
  36908. + res = chflags(path, attr->flags);
  36909. + if (res == -1)
  36910. + return -errno;
  36911. + }
  36912. +
  36913. + return 0;
  36914. +}
  36915. +
  36916. +static int xmp_setattr_x(const char *path, struct setattr_x *attr)
  36917. +{
  36918. + return xmp_fsetattr_x(path, attr, (struct fuse_file_info *)0);
  36919. +}
  36920. +
  36921. +static int xmp_chflags(const char *path, uint32_t flags)
  36922. +{
  36923. + int res;
  36924. +
  36925. + res = chflags(path, flags);
  36926. +
  36927. + if (res == -1)
  36928. + return -errno;
  36929. +
  36930. + return 0;
  36931. +}
  36932. +
  36933. +static int xmp_getxtimes(const char *path, struct timespec *bkuptime,
  36934. + struct timespec *crtime)
  36935. +{
  36936. + int res = 0;
  36937. + struct attrlist attributes;
  36938. +
  36939. + attributes.bitmapcount = ATTR_BIT_MAP_COUNT;
  36940. + attributes.reserved = 0;
  36941. + attributes.commonattr = 0;
  36942. + attributes.dirattr = 0;
  36943. + attributes.fileattr = 0;
  36944. + attributes.forkattr = 0;
  36945. + attributes.volattr = 0;
  36946. +
  36947. +
  36948. +
  36949. + struct xtimeattrbuf {
  36950. + uint32_t size;
  36951. + struct timespec xtime;
  36952. + } __attribute__ ((packed));
  36953. +
  36954. +
  36955. + struct xtimeattrbuf buf;
  36956. +
  36957. + attributes.commonattr = ATTR_CMN_BKUPTIME;
  36958. + res = getattrlist(path, &attributes, &buf, sizeof(buf), FSOPT_NOFOLLOW);
  36959. + if (res == 0)
  36960. + (void)memcpy(bkuptime, &(buf.xtime), sizeof(struct timespec));
  36961. + else
  36962. + (void)memset(bkuptime, 0, sizeof(struct timespec));
  36963. +
  36964. + attributes.commonattr = ATTR_CMN_CRTIME;
  36965. + res = getattrlist(path, &attributes, &buf, sizeof(buf), FSOPT_NOFOLLOW);
  36966. + if (res == 0)
  36967. + (void)memcpy(crtime, &(buf.xtime), sizeof(struct timespec));
  36968. + else
  36969. + (void)memset(crtime, 0, sizeof(struct timespec));
  36970. +
  36971. + return 0;
  36972. +}
  36973. +
  36974. +static int xmp_setbkuptime(const char *path, const struct timespec *bkuptime)
  36975. +{
  36976. + int res;
  36977. +
  36978. + struct attrlist attributes;
  36979. +
  36980. + attributes.bitmapcount = ATTR_BIT_MAP_COUNT;
  36981. + attributes.reserved = 0;
  36982. + attributes.commonattr = ATTR_CMN_BKUPTIME;
  36983. + attributes.dirattr = 0;
  36984. + attributes.fileattr = 0;
  36985. + attributes.forkattr = 0;
  36986. + attributes.volattr = 0;
  36987. +
  36988. + res = setattrlist(path, &attributes, bkuptime,
  36989. + sizeof(struct timespec), FSOPT_NOFOLLOW);
  36990. +
  36991. + if (res == -1)
  36992. + return -errno;
  36993. +
  36994. + return 0;
  36995. +}
  36996. +
  36997. +static int xmp_setchgtime(const char *path, const struct timespec *chgtime)
  36998. +{
  36999. + int res;
  37000. +
  37001. + struct attrlist attributes;
  37002. +
  37003. + attributes.bitmapcount = ATTR_BIT_MAP_COUNT;
  37004. + attributes.reserved = 0;
  37005. + attributes.commonattr = ATTR_CMN_CHGTIME;
  37006. + attributes.dirattr = 0;
  37007. + attributes.fileattr = 0;
  37008. + attributes.forkattr = 0;
  37009. + attributes.volattr = 0;
  37010. +
  37011. + res = setattrlist(path, &attributes, chgtime,
  37012. + sizeof(struct timespec), FSOPT_NOFOLLOW);
  37013. +
  37014. + if (res == -1)
  37015. + return -errno;
  37016. +
  37017. + return 0;
  37018. +}
  37019. +
  37020. +static int xmp_setcrtime(const char *path, const struct timespec *crtime)
  37021. +{
  37022. + int res;
  37023. +
  37024. + struct attrlist attributes;
  37025. +
  37026. + attributes.bitmapcount = ATTR_BIT_MAP_COUNT;
  37027. + attributes.reserved = 0;
  37028. + attributes.commonattr = ATTR_CMN_CRTIME;
  37029. + attributes.dirattr = 0;
  37030. + attributes.fileattr = 0;
  37031. + attributes.forkattr = 0;
  37032. + attributes.volattr = 0;
  37033. +
  37034. + res = setattrlist(path, &attributes, crtime,
  37035. + sizeof(struct timespec), FSOPT_NOFOLLOW);
  37036. +
  37037. + if (res == -1)
  37038. + return -errno;
  37039. +
  37040. + return 0;
  37041. +}
  37042. +
  37043. +#endif /* __FreeBSD__ >= 10 */
  37044. +
  37045. static int xmp_chmod(const char *path, mode_t mode)
  37046. {
  37047. int res;
  37048. @@ -373,18 +691,53 @@
  37049. #ifdef HAVE_SETXATTR
  37050. /* xattr operations are optional and can safely be left unimplemented */
  37051. static int xmp_setxattr(const char *path, const char *name, const char *value,
  37052. +#if (__FreeBSD__ >= 10)
  37053. + size_t size, int flags, uint32_t position)
  37054. +#else
  37055. size_t size, int flags)
  37056. +#endif
  37057. {
  37058. +#if (__FreeBSD__ >= 10)
  37059. + int res;
  37060. + if (!strncmp(name, XATTR_APPLE_PREFIX, sizeof(XATTR_APPLE_PREFIX) - 1)) {
  37061. + flags &= ~(XATTR_NOSECURITY);
  37062. + }
  37063. + if (!strcmp(name, A_KAUTH_FILESEC_XATTR)) {
  37064. + char new_name[MAXPATHLEN];
  37065. + memcpy(new_name, A_KAUTH_FILESEC_XATTR, sizeof(A_KAUTH_FILESEC_XATTR));
  37066. + memcpy(new_name, G_PREFIX, sizeof(G_PREFIX) - 1);
  37067. + res = setxattr(path, new_name, value, size, position, flags);
  37068. + } else {
  37069. + res = setxattr(path, name, value, size, position, flags);
  37070. + }
  37071. +#else
  37072. int res = lsetxattr(path, name, value, size, flags);
  37073. +#endif
  37074. if (res == -1)
  37075. return -errno;
  37076. return 0;
  37077. }
  37078. static int xmp_getxattr(const char *path, const char *name, char *value,
  37079. +#if (__FreeBSD__ >= 10)
  37080. + size_t size, uint32_t position)
  37081. +#else
  37082. size_t size)
  37083. +#endif
  37084. {
  37085. +#if (__FreeBSD__ >= 10)
  37086. + int res;
  37087. + if (strcmp(name, A_KAUTH_FILESEC_XATTR) == 0) {
  37088. + char new_name[MAXPATHLEN];
  37089. + memcpy(new_name, A_KAUTH_FILESEC_XATTR, sizeof(A_KAUTH_FILESEC_XATTR));
  37090. + memcpy(new_name, G_PREFIX, sizeof(G_PREFIX) - 1);
  37091. + res = getxattr(path, new_name, value, size, position, XATTR_NOFOLLOW);
  37092. + } else {
  37093. + res = getxattr(path, name, value, size, position, XATTR_NOFOLLOW);
  37094. + }
  37095. +#else
  37096. int res = lgetxattr(path, name, value, size);
  37097. +#endif
  37098. if (res == -1)
  37099. return -errno;
  37100. return res;
  37101. @@ -392,7 +745,35 @@
  37102. static int xmp_listxattr(const char *path, char *list, size_t size)
  37103. {
  37104. +#if (__FreeBSD__ >= 10)
  37105. + ssize_t res = listxattr(path, list, size, XATTR_NOFOLLOW);
  37106. + if (res > 0) {
  37107. + if (list) {
  37108. + size_t len = 0;
  37109. + char *curr = list;
  37110. + do {
  37111. + size_t thislen = strlen(curr) + 1;
  37112. + if (strcmp(curr, G_KAUTH_FILESEC_XATTR) == 0) {
  37113. + memmove(curr, curr + thislen, res - len - thislen);
  37114. + res -= thislen;
  37115. + break;
  37116. + }
  37117. + curr += thislen;
  37118. + len += thislen;
  37119. + } while (len < res);
  37120. + } else {
  37121. + /*
  37122. + ssize_t res2 = getxattr(path, G_KAUTH_FILESEC_XATTR, NULL, 0, 0,
  37123. + XATTR_NOFOLLOW);
  37124. + if (res2 >= 0) {
  37125. + res -= sizeof(G_KAUTH_FILESEC_XATTR);
  37126. + }
  37127. + */
  37128. + }
  37129. + }
  37130. +#else
  37131. int res = llistxattr(path, list, size);
  37132. +#endif
  37133. if (res == -1)
  37134. return -errno;
  37135. return res;
  37136. @@ -400,13 +781,26 @@
  37137. static int xmp_removexattr(const char *path, const char *name)
  37138. {
  37139. +#if (__FreeBSD__ >= 10)
  37140. + int res;
  37141. + if (strcmp(name, A_KAUTH_FILESEC_XATTR) == 0) {
  37142. + char new_name[MAXPATHLEN];
  37143. + memcpy(new_name, A_KAUTH_FILESEC_XATTR, sizeof(A_KAUTH_FILESEC_XATTR));
  37144. + memcpy(new_name, G_PREFIX, sizeof(G_PREFIX) - 1);
  37145. + res = removexattr(path, new_name, XATTR_NOFOLLOW);
  37146. + } else {
  37147. + res = removexattr(path, name, XATTR_NOFOLLOW);
  37148. + }
  37149. +#else
  37150. int res = lremovexattr(path, name);
  37151. +#endif
  37152. if (res == -1)
  37153. return -errno;
  37154. return 0;
  37155. }
  37156. #endif /* HAVE_SETXATTR */
  37157. +#if !(__FreeBSD__ >= 10)
  37158. static int xmp_lock(const char *path, struct fuse_file_info *fi, int cmd,
  37159. struct flock *lock)
  37160. {
  37161. @@ -415,11 +809,31 @@
  37162. return ulockmgr_op(fi->fh, cmd, lock, &fi->lock_owner,
  37163. sizeof(fi->lock_owner));
  37164. }
  37165. +#endif /* __FreeBSD__ >= 10 */
  37166. +
  37167. +void *
  37168. +xmp_init(struct fuse_conn_info *conn)
  37169. +{
  37170. +#if (__FreeBSD__ >= 10)
  37171. + FUSE_ENABLE_SETVOLNAME(conn);
  37172. + FUSE_ENABLE_XTIMES(conn);
  37173. +#endif /* __FreeBSD__ >= 10 */
  37174. + return NULL;
  37175. +}
  37176. +
  37177. +void
  37178. +xmp_destroy(void *userdata)
  37179. +{
  37180. +}
  37181. static struct fuse_operations xmp_oper = {
  37182. + .init = xmp_init,
  37183. + .destroy = xmp_destroy,
  37184. .getattr = xmp_getattr,
  37185. .fgetattr = xmp_fgetattr,
  37186. +#if !(__FreeBSD__ >= 10)
  37187. .access = xmp_access,
  37188. +#endif /* !__FreeBSD__ >= 10 */
  37189. .readlink = xmp_readlink,
  37190. .opendir = xmp_opendir,
  37191. .readdir = xmp_readdir,
  37192. @@ -450,7 +864,20 @@
  37193. .listxattr = xmp_listxattr,
  37194. .removexattr = xmp_removexattr,
  37195. #endif
  37196. +#if !(__FreeBSD__ >= 10)
  37197. .lock = xmp_lock,
  37198. +#endif /* __FreeBSD__ >= 10 */
  37199. +#if (__FreeBSD__ >= 10)
  37200. + .setvolname = xmp_setvolname,
  37201. + .exchange = xmp_exchange,
  37202. + .getxtimes = xmp_getxtimes,
  37203. + .setbkuptime = xmp_setbkuptime,
  37204. + .setchgtime = xmp_setchgtime,
  37205. + .setcrtime = xmp_setcrtime,
  37206. + .chflags = xmp_chflags,
  37207. + .setattr_x = xmp_setattr_x,
  37208. + .fsetattr_x = xmp_fsetattr_x,
  37209. +#endif /* __FreeBSD__ >= 10 */
  37210. };
  37211. int main(int argc, char *argv[])
  37212. diff -Naur old/fuse.pc.in new/fuse.pc.in
  37213. --- old/fuse.pc.in 2008-02-19 11:51:21.000000000 -0800
  37214. +++ new/fuse.pc.in 2008-11-26 22:23:12.000000000 -0800
  37215. @@ -4,7 +4,7 @@
  37216. includedir=@includedir@
  37217. Name: fuse
  37218. -Description: Filesystem in Userspace
  37219. +Description: File System in User Space (MacFUSE)
  37220. Version: @VERSION@
  37221. Libs: -L${libdir} -lfuse @libfuse_libs@
  37222. -Cflags: -I${includedir}/fuse -D_FILE_OFFSET_BITS=64
  37223. +Cflags: -I${includedir}/fuse -D__FreeBSD__=10 -D_FILE_OFFSET_BITS=64
  37224. diff -Naur old/iconv.m4 new/iconv.m4
  37225. --- old/iconv.m4 1969-12-31 16:00:00.000000000 -0800
  37226. +++ new/iconv.m4 2008-11-26 22:23:12.000000000 -0800
  37227. @@ -0,0 +1,65 @@
  37228. +AC_DEFUN([AM_ICONV],
  37229. +[
  37230. + dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
  37231. + dnl those with the standalone portable GNU libiconv installed).
  37232. +
  37233. + AC_ARG_WITH([libiconv-prefix],
  37234. +[ --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib], [
  37235. + for dir in `echo "$withval" | tr : ' '`; do
  37236. + if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
  37237. + if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
  37238. + done
  37239. + ])
  37240. +
  37241. + AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
  37242. + am_cv_func_iconv="no, consider installing GNU libiconv"
  37243. + am_cv_lib_iconv=no
  37244. + AC_TRY_LINK([#include <stdlib.h>
  37245. +#include <iconv.h>],
  37246. + [iconv_t cd = iconv_open("","");
  37247. + iconv(cd,NULL,NULL,NULL,NULL);
  37248. + iconv_close(cd);],
  37249. + am_cv_func_iconv=yes)
  37250. + if test "$am_cv_func_iconv" != yes; then
  37251. + am_save_LIBS="$LIBS"
  37252. + LIBS="$LIBS -liconv"
  37253. + AC_TRY_LINK([#include <stdlib.h>
  37254. +#include <iconv.h>],
  37255. + [iconv_t cd = iconv_open("","");
  37256. + iconv(cd,NULL,NULL,NULL,NULL);
  37257. + iconv_close(cd);],
  37258. + am_cv_lib_iconv=yes
  37259. + am_cv_func_iconv=yes)
  37260. + LIBS="$am_save_LIBS"
  37261. + fi
  37262. + ])
  37263. + if test "$am_cv_func_iconv" = yes; then
  37264. + AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
  37265. + AC_MSG_CHECKING([for iconv declaration])
  37266. + AC_CACHE_VAL(am_cv_proto_iconv, [
  37267. + AC_TRY_COMPILE([
  37268. +#include <stdlib.h>
  37269. +#include <iconv.h>
  37270. +extern
  37271. +#ifdef __cplusplus
  37272. +"C"
  37273. +#endif
  37274. +#if defined(__STDC__) || defined(__cplusplus)
  37275. +size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  37276. +#else
  37277. +size_t iconv();
  37278. +#endif
  37279. +], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
  37280. + 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);"])
  37281. + am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  37282. + AC_MSG_RESULT([$]{ac_t:-
  37283. + }[$]am_cv_proto_iconv)
  37284. + AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
  37285. + [Define as const if the declaration of iconv() needs const.])
  37286. + fi
  37287. + LIBICONV=
  37288. + if test "$am_cv_lib_iconv" = yes; then
  37289. + LIBICONV="-liconv"
  37290. + fi
  37291. + AC_SUBST(LIBICONV)
  37292. +])
  37293. diff -Naur old/include/Makefile.am new/include/Makefile.am
  37294. --- old/include/Makefile.am 2006-12-09 10:51:13.000000000 -0800
  37295. +++ new/include/Makefile.am 2008-11-26 22:23:12.000000000 -0800
  37296. @@ -2,7 +2,16 @@
  37297. fuseincludedir=$(includedir)/fuse
  37298. +if DARWIN
  37299. +darwin_headers = fuse_darwin.h
  37300. +darwin_headers_private = fuse_darwin_private.h
  37301. +else
  37302. +darwin_headers =
  37303. +darwin_headers_private =
  37304. +endif
  37305. +
  37306. fuseinclude_HEADERS = \
  37307. + $(darwin_headers) \
  37308. fuse.h \
  37309. fuse_compat.h \
  37310. fuse_common.h \
  37311. @@ -13,4 +22,4 @@
  37312. include_HEADERS = old/fuse.h ulockmgr.h
  37313. -noinst_HEADERS = fuse_kernel.h
  37314. +noinst_HEADERS = fuse_kernel.h $(darwin_headers_private)
  37315. diff -Naur old/include/Makefile.in new/include/Makefile.in
  37316. --- old/include/Makefile.in 2008-02-19 12:00:53.000000000 -0800
  37317. +++ new/include/Makefile.in 2008-11-26 22:23:12.000000000 -0800
  37318. @@ -1,8 +1,8 @@
  37319. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  37320. +# Makefile.in generated by automake 1.10 from Makefile.am.
  37321. # @configure_input@
  37322. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  37323. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  37324. +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  37325. # This Makefile.in is free software; the Free Software Foundation
  37326. # gives unlimited permission to copy and/or distribute it,
  37327. # with or without modifications, as long as this notice is preserved.
  37328. @@ -14,15 +14,11 @@
  37329. @SET_MAKE@
  37330. -srcdir = @srcdir@
  37331. -top_srcdir = @top_srcdir@
  37332. VPATH = @srcdir@
  37333. pkgdatadir = $(datadir)/@PACKAGE@
  37334. pkglibdir = $(libdir)/@PACKAGE@
  37335. pkgincludedir = $(includedir)/@PACKAGE@
  37336. -top_builddir = ..
  37337. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  37338. -INSTALL = @INSTALL@
  37339. install_sh_DATA = $(install_sh) -c -m 644
  37340. install_sh_PROGRAM = $(install_sh) -c
  37341. install_sh_SCRIPT = $(install_sh) -c
  37342. @@ -38,11 +34,12 @@
  37343. host_triplet = @host@
  37344. target_triplet = @target@
  37345. subdir = include
  37346. -DIST_COMMON = $(fuseinclude_HEADERS) $(include_HEADERS) \
  37347. +DIST_COMMON = $(am__fuseinclude_HEADERS_DIST) $(include_HEADERS) \
  37348. $(noinst_HEADERS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  37349. $(srcdir)/config.h.in
  37350. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  37351. -am__aclocal_m4_deps = $(top_srcdir)/configure.in
  37352. +am__aclocal_m4_deps = $(top_srcdir)/iconv.m4 \
  37353. + $(top_srcdir)/configure.in
  37354. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  37355. $(ACLOCAL_M4)
  37356. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  37357. @@ -50,6 +47,9 @@
  37358. CONFIG_CLEAN_FILES =
  37359. SOURCES =
  37360. DIST_SOURCES =
  37361. +am__fuseinclude_HEADERS_DIST = fuse_darwin.h fuse.h fuse_compat.h \
  37362. + fuse_common.h fuse_common_compat.h fuse_lowlevel.h \
  37363. + fuse_lowlevel_compat.h fuse_opt.h
  37364. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  37365. am__vpath_adj = case $$p in \
  37366. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  37367. @@ -65,53 +65,49 @@
  37368. CTAGS = ctags
  37369. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  37370. ACLOCAL = @ACLOCAL@
  37371. -AMDEP_FALSE = @AMDEP_FALSE@
  37372. -AMDEP_TRUE = @AMDEP_TRUE@
  37373. AMTAR = @AMTAR@
  37374. AR = @AR@
  37375. AUTOCONF = @AUTOCONF@
  37376. AUTOHEADER = @AUTOHEADER@
  37377. AUTOMAKE = @AUTOMAKE@
  37378. AWK = @AWK@
  37379. -BSD_FALSE = @BSD_FALSE@
  37380. -BSD_TRUE = @BSD_TRUE@
  37381. CC = @CC@
  37382. CCDEPMODE = @CCDEPMODE@
  37383. CFLAGS = @CFLAGS@
  37384. CPP = @CPP@
  37385. CPPFLAGS = @CPPFLAGS@
  37386. +CXX = @CXX@
  37387. +CXXCPP = @CXXCPP@
  37388. +CXXDEPMODE = @CXXDEPMODE@
  37389. +CXXFLAGS = @CXXFLAGS@
  37390. CYGPATH_W = @CYGPATH_W@
  37391. DEFS = @DEFS@
  37392. DEPDIR = @DEPDIR@
  37393. -DUMPBIN = @DUMPBIN@
  37394. +ECHO = @ECHO@
  37395. ECHO_C = @ECHO_C@
  37396. ECHO_N = @ECHO_N@
  37397. ECHO_T = @ECHO_T@
  37398. EGREP = @EGREP@
  37399. EXEEXT = @EXEEXT@
  37400. -FGREP = @FGREP@
  37401. +F77 = @F77@
  37402. +FFLAGS = @FFLAGS@
  37403. GREP = @GREP@
  37404. -ICONV_FALSE = @ICONV_FALSE@
  37405. -ICONV_TRUE = @ICONV_TRUE@
  37406. INIT_D_PATH = @INIT_D_PATH@
  37407. +INSTALL = @INSTALL@
  37408. INSTALL_DATA = @INSTALL_DATA@
  37409. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  37410. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  37411. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  37412. -LD = @LD@
  37413. LDFLAGS = @LDFLAGS@
  37414. LIBICONV = @LIBICONV@
  37415. LIBOBJS = @LIBOBJS@
  37416. LIBS = @LIBS@
  37417. LIBTOOL = @LIBTOOL@
  37418. -LINUX_FALSE = @LINUX_FALSE@
  37419. -LINUX_TRUE = @LINUX_TRUE@
  37420. LN_S = @LN_S@
  37421. -LTLIBICONV = @LTLIBICONV@
  37422. LTLIBOBJS = @LTLIBOBJS@
  37423. MAKEINFO = @MAKEINFO@
  37424. +MKDIR_P = @MKDIR_P@
  37425. MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
  37426. -NM = @NM@
  37427. OBJEXT = @OBJEXT@
  37428. PACKAGE = @PACKAGE@
  37429. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  37430. @@ -121,16 +117,18 @@
  37431. PACKAGE_VERSION = @PACKAGE_VERSION@
  37432. PATH_SEPARATOR = @PATH_SEPARATOR@
  37433. RANLIB = @RANLIB@
  37434. -SED = @SED@
  37435. SET_MAKE = @SET_MAKE@
  37436. SHELL = @SHELL@
  37437. STRIP = @STRIP@
  37438. UDEV_RULES_PATH = @UDEV_RULES_PATH@
  37439. VERSION = @VERSION@
  37440. +abs_builddir = @abs_builddir@
  37441. +abs_srcdir = @abs_srcdir@
  37442. +abs_top_builddir = @abs_top_builddir@
  37443. +abs_top_srcdir = @abs_top_srcdir@
  37444. ac_ct_CC = @ac_ct_CC@
  37445. -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  37446. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  37447. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  37448. +ac_ct_CXX = @ac_ct_CXX@
  37449. +ac_ct_F77 = @ac_ct_F77@
  37450. am__include = @am__include@
  37451. am__leading_dot = @am__leading_dot@
  37452. am__quote = @am__quote@
  37453. @@ -142,6 +140,7 @@
  37454. build_cpu = @build_cpu@
  37455. build_os = @build_os@
  37456. build_vendor = @build_vendor@
  37457. +builddir = @builddir@
  37458. datadir = @datadir@
  37459. datarootdir = @datarootdir@
  37460. docdir = @docdir@
  37461. @@ -161,7 +160,6 @@
  37462. libfuse_libs = @libfuse_libs@
  37463. localedir = @localedir@
  37464. localstatedir = @localstatedir@
  37465. -lt_ECHO = @lt_ECHO@
  37466. mandir = @mandir@
  37467. mkdir_p = @mkdir_p@
  37468. oldincludedir = @oldincludedir@
  37469. @@ -172,6 +170,7 @@
  37470. psdir = @psdir@
  37471. sbindir = @sbindir@
  37472. sharedstatedir = @sharedstatedir@
  37473. +srcdir = @srcdir@
  37474. subdirs = @subdirs@
  37475. subdirs2 = @subdirs2@
  37476. sysconfdir = @sysconfdir@
  37477. @@ -180,8 +179,15 @@
  37478. target_cpu = @target_cpu@
  37479. target_os = @target_os@
  37480. target_vendor = @target_vendor@
  37481. +top_builddir = @top_builddir@
  37482. +top_srcdir = @top_srcdir@
  37483. fuseincludedir = $(includedir)/fuse
  37484. +@DARWIN_FALSE@darwin_headers =
  37485. +@DARWIN_FALSE@darwin_headers_private =
  37486. +@DARWIN_TRUE@darwin_headers = fuse_darwin.h
  37487. +@DARWIN_TRUE@darwin_headers_private = fuse_darwin_private.h
  37488. fuseinclude_HEADERS = \
  37489. + $(darwin_headers) \
  37490. fuse.h \
  37491. fuse_compat.h \
  37492. fuse_common.h \
  37493. @@ -191,7 +197,7 @@
  37494. fuse_opt.h
  37495. include_HEADERS = old/fuse.h ulockmgr.h
  37496. -noinst_HEADERS = fuse_kernel.h
  37497. +noinst_HEADERS = fuse_kernel.h $(darwin_headers_private)
  37498. all: config.h
  37499. $(MAKE) $(AM_MAKEFLAGS) all-am
  37500. @@ -229,7 +235,7 @@
  37501. config.h: stamp-h1
  37502. @if test ! -f $@; then \
  37503. rm -f stamp-h1; \
  37504. - $(MAKE) stamp-h1; \
  37505. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  37506. else :; fi
  37507. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  37508. @@ -248,13 +254,9 @@
  37509. clean-libtool:
  37510. -rm -rf .libs _libs
  37511. -
  37512. -distclean-libtool:
  37513. - -rm -f libtool
  37514. -uninstall-info-am:
  37515. install-fuseincludeHEADERS: $(fuseinclude_HEADERS)
  37516. @$(NORMAL_INSTALL)
  37517. - test -z "$(fuseincludedir)" || $(mkdir_p) "$(DESTDIR)$(fuseincludedir)"
  37518. + test -z "$(fuseincludedir)" || $(MKDIR_P) "$(DESTDIR)$(fuseincludedir)"
  37519. @list='$(fuseinclude_HEADERS)'; for p in $$list; do \
  37520. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  37521. f=$(am__strip_dir) \
  37522. @@ -271,7 +273,7 @@
  37523. done
  37524. install-includeHEADERS: $(include_HEADERS)
  37525. @$(NORMAL_INSTALL)
  37526. - test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  37527. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  37528. @list='$(include_HEADERS)'; for p in $$list; do \
  37529. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  37530. f=$(am__strip_dir) \
  37531. @@ -336,23 +338,21 @@
  37532. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  37533. distdir: $(DISTFILES)
  37534. - $(mkdir_p) $(distdir)/old
  37535. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  37536. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  37537. - list='$(DISTFILES)'; for file in $$list; do \
  37538. - case $$file in \
  37539. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  37540. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  37541. - esac; \
  37542. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  37543. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  37544. + list='$(DISTFILES)'; \
  37545. + dist_files=`for file in $$list; do echo $$file; done | \
  37546. + sed -e "s|^$$srcdirstrip/||;t" \
  37547. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  37548. + case $$dist_files in \
  37549. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  37550. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  37551. + sort -u` ;; \
  37552. + esac; \
  37553. + for file in $$dist_files; do \
  37554. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  37555. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  37556. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  37557. - dir="/$$dir"; \
  37558. - $(mkdir_p) "$(distdir)$$dir"; \
  37559. - else \
  37560. - dir=''; \
  37561. - fi; \
  37562. if test -d $$d/$$file; then \
  37563. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  37564. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  37565. cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  37566. fi; \
  37567. @@ -368,7 +368,7 @@
  37568. all-am: Makefile $(HEADERS) config.h
  37569. installdirs:
  37570. for dir in "$(DESTDIR)$(fuseincludedir)" "$(DESTDIR)$(includedir)"; do \
  37571. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  37572. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  37573. done
  37574. install: install-am
  37575. install-exec: install-exec-am
  37576. @@ -400,8 +400,7 @@
  37577. distclean: distclean-am
  37578. -rm -f Makefile
  37579. -distclean-am: clean-am distclean-generic distclean-hdr \
  37580. - distclean-libtool distclean-tags
  37581. +distclean-am: clean-am distclean-generic distclean-hdr distclean-tags
  37582. dvi: dvi-am
  37583. @@ -415,12 +414,20 @@
  37584. install-data-am: install-fuseincludeHEADERS install-includeHEADERS
  37585. +install-dvi: install-dvi-am
  37586. +
  37587. install-exec-am:
  37588. +install-html: install-html-am
  37589. +
  37590. install-info: install-info-am
  37591. install-man:
  37592. +install-pdf: install-pdf-am
  37593. +
  37594. +install-ps: install-ps-am
  37595. +
  37596. installcheck-am:
  37597. maintainer-clean: maintainer-clean-am
  37598. @@ -439,21 +446,24 @@
  37599. ps-am:
  37600. -uninstall-am: uninstall-fuseincludeHEADERS uninstall-includeHEADERS \
  37601. - uninstall-info-am
  37602. +uninstall-am: uninstall-fuseincludeHEADERS uninstall-includeHEADERS
  37603. +
  37604. +.MAKE: install-am install-strip
  37605. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  37606. clean-libtool ctags distclean distclean-generic distclean-hdr \
  37607. distclean-libtool distclean-tags distdir dvi dvi-am html \
  37608. html-am info info-am install install-am install-data \
  37609. - install-data-am install-exec install-exec-am \
  37610. - install-fuseincludeHEADERS install-includeHEADERS install-info \
  37611. - install-info-am install-man install-strip installcheck \
  37612. + install-data-am install-dvi install-dvi-am install-exec \
  37613. + install-exec-am install-fuseincludeHEADERS install-html \
  37614. + install-html-am install-includeHEADERS install-info \
  37615. + install-info-am install-man install-pdf install-pdf-am \
  37616. + install-ps install-ps-am install-strip installcheck \
  37617. installcheck-am installdirs maintainer-clean \
  37618. maintainer-clean-generic mostlyclean mostlyclean-generic \
  37619. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  37620. uninstall-am uninstall-fuseincludeHEADERS \
  37621. - uninstall-includeHEADERS uninstall-info-am
  37622. + uninstall-includeHEADERS
  37623. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  37624. # Otherwise a system limit (for SysV at least) may be exceeded.
  37625. diff -Naur old/include/config.h.in new/include/config.h.in
  37626. --- old/include/config.h.in 2008-02-19 12:00:50.000000000 -0800
  37627. +++ new/include/config.h.in 2008-11-26 22:23:12.000000000 -0800
  37628. @@ -54,10 +54,6 @@
  37629. /* Don't update /etc/mtab */
  37630. #undef IGNORE_MTAB
  37631. -/* Define to the sub-directory in which libtool stores uninstalled libraries.
  37632. - */
  37633. -#undef LT_OBJDIR
  37634. -
  37635. /* Define to 1 if your C compiler doesn't accept -c and -o together. */
  37636. #undef NO_MINUS_C_MINUS_O
  37637. diff -Naur old/include/fuse.h new/include/fuse.h
  37638. --- old/include/fuse.h 2008-02-19 11:51:23.000000000 -0800
  37639. +++ new/include/fuse.h 2008-11-26 22:23:12.000000000 -0800
  37640. @@ -236,10 +236,18 @@
  37641. int (*fsync) (const char *, int, struct fuse_file_info *);
  37642. /** Set extended attributes */
  37643. +#if (__FreeBSD__ >= 10)
  37644. + int (*setxattr) (const char *, const char *, const char *, size_t, int, uint32_t);
  37645. +#else
  37646. int (*setxattr) (const char *, const char *, const char *, size_t, int);
  37647. +#endif /* __FreeBSD__ >= 10 */
  37648. /** Get extended attributes */
  37649. +#if (__FreeBSD__ >= 10)
  37650. + int (*getxattr) (const char *, const char *, char *, size_t, uint32_t);
  37651. +#else
  37652. int (*getxattr) (const char *, const char *, char *, size_t);
  37653. +#endif /* __FreeBSD__ >= 10 */
  37654. /** List extended attributes */
  37655. int (*listxattr) (const char *, char *, size_t);
  37656. @@ -423,6 +431,52 @@
  37657. * Introduced in version 2.6
  37658. */
  37659. int (*bmap) (const char *, size_t blocksize, uint64_t *idx);
  37660. +
  37661. +#if (__FreeBSD__ >= 10)
  37662. + int (*reserved00)(void *, void *, void *, void *, void *, void *,
  37663. + void *, void *);
  37664. + int (*reserved01)(void *, void *, void *, void *, void *, void *,
  37665. + void *, void *);
  37666. + int (*reserved02)(void *, void *, void *, void *, void *, void *,
  37667. + void *, void *);
  37668. + int (*reserved03)(void *, void *, void *, void *, void *, void *,
  37669. + void *, void *);
  37670. + int (*reserved04)(void *, void *, void *, void *, void *, void *,
  37671. + void *, void *);
  37672. + int (*reserved05)(void *, void *, void *, void *, void *, void *,
  37673. + void *, void *);
  37674. + int (*reserved06)(void *, void *, void *, void *, void *, void *,
  37675. + void *, void *);
  37676. + int (*reserved07)(void *, void *, void *, void *, void *, void *,
  37677. + void *, void *);
  37678. + int (*reserved08)(void *, void *, void *, void *, void *, void *,
  37679. + void *, void *);
  37680. + int (*reserved09)(void *, void *, void *, void *, void *, void *,
  37681. + void *, void *);
  37682. + int (*reserved10)(void *, void *, void *, void *, void *, void *,
  37683. + void *, void *);
  37684. +
  37685. + int (*setvolname) (const char *);
  37686. +
  37687. + int (*exchange) (const char *, const char *, unsigned long);
  37688. +
  37689. + int (*getxtimes) (const char *, struct timespec *bkuptime,
  37690. + struct timespec *crtime);
  37691. +
  37692. + int (*setbkuptime) (const char *, const struct timespec *tv);
  37693. +
  37694. + int (*setchgtime) (const char *, const struct timespec *tv);
  37695. +
  37696. + int (*setcrtime) (const char *, const struct timespec *tv);
  37697. +
  37698. + int (*chflags) (const char *, uint32_t);
  37699. +
  37700. + int (*setattr_x) (const char *, struct setattr_x *);
  37701. +
  37702. + int (*fsetattr_x) (const char *, struct setattr_x *,
  37703. + struct fuse_file_info *);
  37704. +
  37705. +#endif /* __FreeBSD__ >= 10 */
  37706. };
  37707. /** Extra context that may be needed by some filesystems
  37708. @@ -601,6 +655,11 @@
  37709. struct fuse_file_info *fi);
  37710. int fuse_fs_rename(struct fuse_fs *fs, const char *oldpath,
  37711. const char *newpath);
  37712. +#if (__FreeBSD__ >= 10)
  37713. +int fuse_fs_setvolname(struct fuse_fs *fs, const char *volname);
  37714. +int fuse_fs_exchange(struct fuse_fs *fs, const char *oldpath,
  37715. + const char *newpath, unsigned long flags);
  37716. +#endif /* __FreeBSD__ >= 10 */
  37717. int fuse_fs_unlink(struct fuse_fs *fs, const char *path);
  37718. int fuse_fs_rmdir(struct fuse_fs *fs, const char *path);
  37719. int fuse_fs_symlink(struct fuse_fs *fs, const char *linkname,
  37720. @@ -632,6 +691,17 @@
  37721. struct fuse_file_info *fi);
  37722. int fuse_fs_lock(struct fuse_fs *fs, const char *path,
  37723. struct fuse_file_info *fi, int cmd, struct flock *lock);
  37724. +#if (__FreeBSD__ >= 10)
  37725. +int fuse_fs_chflags(struct fuse_fs *fs, const char *path, uint32_t flags);
  37726. +int fuse_fs_getxtimes(struct fuse_fs *fs, const char *path,
  37727. + struct timespec *bkuptime, struct timespec *crtime);
  37728. +int fuse_fs_setbkuptime(struct fuse_fs *fs, const char *path,
  37729. + const struct timespec *tv);
  37730. +int fuse_fs_setchgtime(struct fuse_fs *fs, const char *path,
  37731. + const struct timespec *tv);
  37732. +int fuse_fs_setcrtime(struct fuse_fs *fs, const char *path,
  37733. + const struct timespec *tv);
  37734. +#endif /* __FreeBSD__ >= 10 */
  37735. int fuse_fs_chmod(struct fuse_fs *fs, const char *path, mode_t mode);
  37736. int fuse_fs_chown(struct fuse_fs *fs, const char *path, uid_t uid, gid_t gid);
  37737. int fuse_fs_truncate(struct fuse_fs *fs, const char *path, off_t size);
  37738. @@ -645,10 +715,17 @@
  37739. int fuse_fs_mknod(struct fuse_fs *fs, const char *path, mode_t mode,
  37740. dev_t rdev);
  37741. int fuse_fs_mkdir(struct fuse_fs *fs, const char *path, mode_t mode);
  37742. +#if (__FreeBSD__ >= 10)
  37743. +int fuse_fs_setxattr(struct fuse_fs *fs, const char *path, const char *name,
  37744. + const char *value, size_t size, int flags, uint32_t position);
  37745. +int fuse_fs_getxattr(struct fuse_fs *fs, const char *path, const char *name,
  37746. + char *value, size_t size, uint32_t position);
  37747. +#else
  37748. int fuse_fs_setxattr(struct fuse_fs *fs, const char *path, const char *name,
  37749. const char *value, size_t size, int flags);
  37750. int fuse_fs_getxattr(struct fuse_fs *fs, const char *path, const char *name,
  37751. char *value, size_t size);
  37752. +#endif /* __FreeBSD__ >= 10 */
  37753. int fuse_fs_listxattr(struct fuse_fs *fs, const char *path, char *list,
  37754. size_t size);
  37755. int fuse_fs_removexattr(struct fuse_fs *fs, const char *path,
  37756. diff -Naur old/include/fuse_common.h new/include/fuse_common.h
  37757. --- old/include/fuse_common.h 2008-02-19 11:51:23.000000000 -0800
  37758. +++ new/include/fuse_common.h 2008-11-26 22:23:12.000000000 -0800
  37759. @@ -36,6 +36,39 @@
  37760. extern "C" {
  37761. #endif
  37762. +#if (__FreeBSD__ >= 10)
  37763. +
  37764. +#include <sys/stat.h>
  37765. +
  37766. +/* The following bits must be in lockstep with those in fuse_lowlevel.h */
  37767. +
  37768. +#define SETATTR_WANTS_MODE(attr) ((attr)->valid & (1 << 0))
  37769. +#define SETATTR_WANTS_UID(attr) ((attr)->valid & (1 << 1))
  37770. +#define SETATTR_WANTS_GID(attr) ((attr)->valid & (1 << 2))
  37771. +#define SETATTR_WANTS_SIZE(attr) ((attr)->valid & (1 << 3))
  37772. +#define SETATTR_WANTS_ACCTIME(attr) ((attr)->valid & (1 << 4))
  37773. +#define SETATTR_WANTS_MODTIME(attr) ((attr)->valid & (1 << 5))
  37774. +#define SETATTR_WANTS_CRTIME(attr) ((attr)->valid & (1 << 28))
  37775. +#define SETATTR_WANTS_CHGTIME(attr) ((attr)->valid & (1 << 29))
  37776. +#define SETATTR_WANTS_BKUPTIME(attr) ((attr)->valid & (1 << 30))
  37777. +#define SETATTR_WANTS_FLAGS(attr) ((attr)->valid & (1 << 31))
  37778. +
  37779. +struct setattr_x {
  37780. + int32_t valid;
  37781. + mode_t mode;
  37782. + uid_t uid;
  37783. + gid_t gid;
  37784. + off_t size;
  37785. + struct timespec acctime;
  37786. + struct timespec modtime;
  37787. + struct timespec crtime;
  37788. + struct timespec chgtime;
  37789. + struct timespec bkuptime;
  37790. + uint32_t flags;
  37791. +};
  37792. +
  37793. +#endif /* __FreeBSD__ >= 10 */
  37794. +
  37795. /**
  37796. * Information about open files
  37797. *
  37798. @@ -65,8 +98,15 @@
  37799. operation. Introduced in version 2.6 */
  37800. unsigned int flush : 1;
  37801. +#if (__FreeBSD__ >= 10)
  37802. + /** Padding. Do not use*/
  37803. + unsigned int padding : 27;
  37804. + unsigned int purge_attr : 1;
  37805. + unsigned int purge_ubc : 1;
  37806. +#else
  37807. /** Padding. Do not use*/
  37808. unsigned int padding : 29;
  37809. +#endif
  37810. /** File handle. May be filled in by filesystem in open().
  37811. Available in all other file operations */
  37812. @@ -112,9 +152,23 @@
  37813. /**
  37814. * For future use.
  37815. */
  37816. +#if (__FreeBSD__ >= 10)
  37817. + struct {
  37818. + unsigned case_insensitive :1;
  37819. + unsigned setvolname :1;
  37820. + unsigned xtimes :1;
  37821. + } enable;
  37822. + unsigned reserved[26];
  37823. +#else
  37824. unsigned reserved[27];
  37825. +#endif /* __FreeBSD__ >= 10 */
  37826. };
  37827. +#if (__FreeBSD__ >= 10)
  37828. +#define FUSE_ENABLE_SETVOLNAME(i) (i)->enable.setvolname = 1
  37829. +#define FUSE_ENABLE_XTIMES(i) (i)->enable.xtimes = 1
  37830. +#endif /* __FreeBSD__ >= 10 */
  37831. +
  37832. struct fuse_session;
  37833. struct fuse_chan;
  37834. diff -Naur old/include/fuse_darwin.h new/include/fuse_darwin.h
  37835. --- old/include/fuse_darwin.h 1969-12-31 16:00:00.000000000 -0800
  37836. +++ new/include/fuse_darwin.h 2008-11-26 22:23:12.000000000 -0800
  37837. @@ -0,0 +1,105 @@
  37838. +/*
  37839. + * Copyright (C) 2006-2008 Google. All Rights Reserved.
  37840. + * Amit Singh <singh@>
  37841. + */
  37842. +
  37843. +#if (__FreeBSD__ >= 10)
  37844. +
  37845. +#ifndef _FUSE_DARWIN_H_
  37846. +#define _FUSE_DARWIN_H_
  37847. +
  37848. +#ifdef __cplusplus
  37849. +extern "C" {
  37850. +#endif
  37851. +
  37852. +#include <errno.h>
  37853. +#include <stdint.h>
  37854. +#include <sys/types.h>
  37855. +#include <limits.h>
  37856. +#include <pthread.h>
  37857. +#include <time.h>
  37858. +
  37859. +/* Semaphores */
  37860. +
  37861. +struct __local_sem_t
  37862. +{
  37863. + unsigned int count;
  37864. + pthread_mutex_t count_lock;
  37865. + pthread_cond_t count_cond;
  37866. +};
  37867. +
  37868. +typedef struct fuse_sem {
  37869. + int id;
  37870. + union {
  37871. + struct __local_sem_t local;
  37872. + } __data;
  37873. +} fuse_sem_t;
  37874. +
  37875. +#define FUSE_SEM_VALUE_MAX ((int32_t)32767)
  37876. +
  37877. +int fuse_sem_init(fuse_sem_t *sem, int pshared, unsigned int value);
  37878. +int fuse_sem_destroy(fuse_sem_t *sem);
  37879. +int fuse_sem_getvalue(fuse_sem_t *sem, unsigned int *value);
  37880. +int fuse_sem_post(fuse_sem_t *sem);
  37881. +int fuse_sem_timedwait(fuse_sem_t *sem, const struct timespec *abs_timeout);
  37882. +int fuse_sem_trywait(fuse_sem_t *sem);
  37883. +int fuse_sem_wait(fuse_sem_t *sem);
  37884. +
  37885. +#ifdef DARWIN_SEMAPHORE_COMPAT
  37886. +
  37887. +/* Caller must not include <semaphore.h> */
  37888. +
  37889. +typedef fuse_sem_t sem_t;
  37890. +
  37891. +#define sem_init(s, p, v) fuse_sem_init(s, p, v)
  37892. +#define sem_destroy(s) fuse_sem_destroy(s)
  37893. +#define sem_getvalue(s, v) fuse_sem_getvalue(s, v)
  37894. +#define sem_post(s) fuse_sem_post(s)
  37895. +#define sem_timedwait(s, t) fuse_sem_timedwait(s, t)
  37896. +#define sem_trywait(s) fuse_sem_trywait(s)
  37897. +#define sem_wait(s) fuse_sem_wait(s)
  37898. +
  37899. +#define SEM_VALUE_MAX FUSE_SEM_VALUE_MAX
  37900. +
  37901. +#endif /* DARWIN_SEMAPHORE_COMPAT */
  37902. +
  37903. +/* Notifications */
  37904. +
  37905. +#define LIBFUSE_BUNDLE_IDENTIFIER "com.google.filesystems.libfuse"
  37906. +
  37907. +#define LIBFUSE_UNOTIFICATIONS_OBJECT \
  37908. + LIBFUSE_BUNDLE_IDENTIFIER ".unotifications"
  37909. +
  37910. +#define LIBFUSE_UNOTIFICATIONS_NOTIFY_OSISTOONEW \
  37911. + LIBFUSE_BUNDLE_IDENTIFIER ".osistoonew"
  37912. +
  37913. +#define LIBFUSE_UNOTIFICATIONS_NOTIFY_OSISTOOOLD \
  37914. + LIBFUSE_BUNDLE_IDENTIFIER ".osistooold"
  37915. +
  37916. +#define LIBFUSE_UNOTIFICATIONS_NOTIFY_RUNTIMEVERSIONMISMATCH \
  37917. + LIBFUSE_BUNDLE_IDENTIFIER ".runtimeversionmismatch"
  37918. +
  37919. +#define LIBFUSE_UNOTIFICATIONS_NOTIFY_VERSIONMISMATCH \
  37920. + LIBFUSE_BUNDLE_IDENTIFIER ".versionmismatch"
  37921. +
  37922. +/* Versioning */
  37923. +
  37924. +const char *macfuse_version(void);
  37925. +long fuse_os_version_major_np(void);
  37926. +
  37927. +/* Advanced */
  37928. +
  37929. +struct fuse_fs;
  37930. +
  37931. +int fuse_device_fd_np(const char *mountpoint);
  37932. +const char *fuse_mountpoint_for_fs_np(struct fuse_fs *fs);
  37933. +int fuse_knote_np(const char *mountpoint, const char *path, uint32_t note);
  37934. +int fuse_purge_np(const char *mountpoint, const char *path, off_t *newsize);
  37935. +
  37936. +#ifdef __cplusplus
  37937. +}
  37938. +#endif
  37939. +
  37940. +#endif /* _FUSE_DARWIN_H_ */
  37941. +
  37942. +#endif /* __FreeBSD__ >= 10 */
  37943. diff -Naur old/include/fuse_darwin_private.h new/include/fuse_darwin_private.h
  37944. --- old/include/fuse_darwin_private.h 1969-12-31 16:00:00.000000000 -0800
  37945. +++ new/include/fuse_darwin_private.h 2008-11-26 22:23:12.000000000 -0800
  37946. @@ -0,0 +1,62 @@
  37947. +/*
  37948. + * Copyright (C) 2006-2008 Google. All Rights Reserved.
  37949. + * Amit Singh <singh@>
  37950. + */
  37951. +
  37952. +#if (__FreeBSD__ >= 10)
  37953. +
  37954. +#ifndef _FUSE_DARWIN_PRIVATE_H_
  37955. +#define _FUSE_DARWIN_PRIVATE_H_
  37956. +
  37957. +#ifdef __cplusplus
  37958. +extern "C" {
  37959. +#endif
  37960. +
  37961. +#include "fuse_lowlevel.h"
  37962. +#include "fuse_darwin.h"
  37963. +
  37964. +#include <fuse_param.h>
  37965. +#include <fuse_ioctl.h>
  37966. +#include <fuse_version.h>
  37967. +#include <pthread.h>
  37968. +#include <strhash.h>
  37969. +
  37970. +#ifdef __cplusplus
  37971. +}
  37972. +#endif
  37973. +
  37974. +fuse_ino_t fuse_lookup_inode_internal_np(const char *mountpoint,
  37975. + const char *path);
  37976. +
  37977. +int fuse_resize_node_internal_np(const char *mountpoint, const char *path,
  37978. + off_t newsize);
  37979. +
  37980. +void fuse_exit_handler_internal_np(void);
  37981. +
  37982. +int fuse_remove_signal_handlers_internal_np(void);
  37983. +
  37984. +struct fuse *fuse_get_internal_np(const char *mountpoint);
  37985. +
  37986. +void fuse_put_internal_np(struct fuse *fuse);
  37987. +
  37988. +void fuse_set_fuse_internal_np(int fd, struct fuse *f);
  37989. +
  37990. +void fuse_unset_fuse_internal_np(struct fuse *f);
  37991. +
  37992. +/*
  37993. + * The mount_hash maps char* mountpoint -> struct mount_info. It is protected
  37994. + * by the mount_lock mutex, which is held across a mount operation.
  37995. + */
  37996. +struct mount_info {
  37997. + int fd; /* Valid when under mount_lock. */
  37998. + struct fuse *fuse; /* Non-NULL only if user fs created a struct fuse. */
  37999. +};
  38000. +
  38001. +extern pthread_mutex_t mount_lock;
  38002. +extern hash_table *mount_hash;
  38003. +extern int mount_count; /* also the # of entries in mount_hash */
  38004. +extern int did_daemonize;
  38005. +
  38006. +#endif /* _FUSE_DARWIN_PRIVATE_H_ */
  38007. +
  38008. +#endif /* __FreeBSD__ >= 10 */
  38009. diff -Naur old/include/fuse_kernel.h new/include/fuse_kernel.h
  38010. --- old/include/fuse_kernel.h 2008-02-19 11:51:24.000000000 -0800
  38011. +++ new/include/fuse_kernel.h 2008-11-26 22:23:12.000000000 -0800
  38012. @@ -75,6 +75,10 @@
  38013. __u32 uid;
  38014. __u32 gid;
  38015. __u32 rdev;
  38016. +#if (__FreeBSD__ >= 10)
  38017. + __u32 flags; /* file flags; see chflags(2) */
  38018. + __u32 padding;
  38019. +#endif /* __FreeBSD__ >= 10 */
  38020. };
  38021. struct fuse_kstatfs {
  38022. @@ -107,6 +111,12 @@
  38023. #define FATTR_ATIME (1 << 4)
  38024. #define FATTR_MTIME (1 << 5)
  38025. #define FATTR_FH (1 << 6)
  38026. +#if (__FreeBSD__ >= 10)
  38027. +#define FATTR_CRTIME (1 << 28)
  38028. +#define FATTR_CHGTIME (1 << 29)
  38029. +#define FATTR_BKUPTIME (1 << 30)
  38030. +#define FATTR_FLAGS (1 << 31)
  38031. +#endif /* __FreeBSD__ >= 10 */
  38032. /**
  38033. * Flags returned by the OPEN request
  38034. @@ -116,12 +126,21 @@
  38035. */
  38036. #define FOPEN_DIRECT_IO (1 << 0)
  38037. #define FOPEN_KEEP_CACHE (1 << 1)
  38038. +#if (__FreeBSD__ >= 10)
  38039. +#define FOPEN_PURGE_ATTR (1 << 30)
  38040. +#define FOPEN_PURGE_UBC (1 << 31)
  38041. +#endif
  38042. /**
  38043. * INIT request/reply flags
  38044. */
  38045. #define FUSE_ASYNC_READ (1 << 0)
  38046. #define FUSE_POSIX_LOCKS (1 << 1)
  38047. +#if (__FreeBSD__ >= 10)
  38048. +#define FUSE_CASE_INSENSITIVE (1 << 29)
  38049. +#define FUSE_VOL_RENAME (1 << 30)
  38050. +#define FUSE_XTIMES (1 << 31)
  38051. +#endif /* __FreeBSD__ >= 10 */
  38052. /**
  38053. * Release flags
  38054. @@ -165,6 +184,11 @@
  38055. FUSE_INTERRUPT = 36,
  38056. FUSE_BMAP = 37,
  38057. FUSE_DESTROY = 38,
  38058. +#if (__FreeBSD__ >= 10)
  38059. + FUSE_SETVOLNAME = 61,
  38060. + FUSE_GETXTIMES = 62,
  38061. + FUSE_EXCHANGE = 63,
  38062. +#endif /* __FreeBSD__ >= 10 */
  38063. };
  38064. /* The read buffer is required to be at least 8k, but may be much larger */
  38065. @@ -192,6 +216,15 @@
  38066. struct fuse_attr attr;
  38067. };
  38068. +#if (__FreeBSD__ >= 10)
  38069. +struct fuse_getxtimes_out {
  38070. + __u64 bkuptime;
  38071. + __u64 crtime;
  38072. + __u32 bkuptimensec;
  38073. + __u32 crtimensec;
  38074. +};
  38075. +#endif /* __FreeBSD__ >= 10 */
  38076. +
  38077. struct fuse_mknod_in {
  38078. __u32 mode;
  38079. __u32 rdev;
  38080. @@ -206,6 +239,14 @@
  38081. __u64 newdir;
  38082. };
  38083. +#if (__FreeBSD__ >= 10)
  38084. +struct fuse_exchange_in {
  38085. + __u64 olddir;
  38086. + __u64 newdir;
  38087. + __u64 options;
  38088. +};
  38089. +#endif /* __FreeBSD__ >= 10 */
  38090. +
  38091. struct fuse_link_in {
  38092. __u64 oldnodeid;
  38093. };
  38094. @@ -227,6 +268,15 @@
  38095. __u32 uid;
  38096. __u32 gid;
  38097. __u32 unused5;
  38098. +#if (__FreeBSD__ >= 10)
  38099. + __u64 bkuptime;
  38100. + __u64 chgtime;
  38101. + __u64 crtime;
  38102. + __u32 bkuptimensec;
  38103. + __u32 chgtimensec;
  38104. + __u32 crtimensec;
  38105. + __u32 flags; /* file flags; see chflags(2) */
  38106. +#endif /* __FreeBSD__ >= 10 */
  38107. };
  38108. struct fuse_open_in {
  38109. @@ -288,11 +338,19 @@
  38110. struct fuse_setxattr_in {
  38111. __u32 size;
  38112. __u32 flags;
  38113. +#if (__FreeBSD__ >= 10)
  38114. + __u32 position;
  38115. + __u32 padding;
  38116. +#endif /* __FreeBSD__ >= 10 */
  38117. };
  38118. struct fuse_getxattr_in {
  38119. __u32 size;
  38120. __u32 padding;
  38121. +#if (__FreeBSD__ >= 10)
  38122. + __u32 position;
  38123. + __u32 padding2;
  38124. +#endif /* __FreeBSD__ >= 10 */
  38125. };
  38126. struct fuse_getxattr_out {
  38127. diff -Naur old/include/fuse_lowlevel.h new/include/fuse_lowlevel.h
  38128. --- old/include/fuse_lowlevel.h 2008-02-19 11:51:23.000000000 -0800
  38129. +++ new/include/fuse_lowlevel.h 2008-11-26 22:23:12.000000000 -0800
  38130. @@ -118,6 +118,12 @@
  38131. #define FUSE_SET_ATTR_SIZE (1 << 3)
  38132. #define FUSE_SET_ATTR_ATIME (1 << 4)
  38133. #define FUSE_SET_ATTR_MTIME (1 << 5)
  38134. +#if (__FreeBSD__ >= 10)
  38135. +#define FUSE_SET_ATTR_CRTIME (1 << 28)
  38136. +#define FUSE_SET_ATTR_CHGTIME (1 << 29)
  38137. +#define FUSE_SET_ATTR_BKUPTIME (1 << 30)
  38138. +#define FUSE_SET_ATTR_FLAGS (1 << 31)
  38139. +#endif /* __FreeBSD__ >= 10 */
  38140. /* ----------------------------------------------------------- *
  38141. * Request methods and replies *
  38142. @@ -623,8 +629,13 @@
  38143. * Valid replies:
  38144. * fuse_reply_err
  38145. */
  38146. +#if (__FreeBSD__ >= 10)
  38147. + void (*setxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
  38148. + const char *value, size_t size, int flags, uint32_t position);
  38149. +#else
  38150. void (*setxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
  38151. const char *value, size_t size, int flags);
  38152. +#endif /* __FreeBSD__ >= 10 */
  38153. /**
  38154. * Get an extended attribute
  38155. @@ -648,8 +659,13 @@
  38156. * @param name of the extended attribute
  38157. * @param size maximum size of the value to send
  38158. */
  38159. +#if (__FreeBSD__ >= 10)
  38160. + void (*getxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
  38161. + size_t size, uint32_t position);
  38162. +#else
  38163. void (*getxattr) (fuse_req_t req, fuse_ino_t ino, const char *name,
  38164. size_t size);
  38165. +#endif /* __FreeBSD__ >= 10 */
  38166. /**
  38167. * List extended attribute names
  38168. @@ -807,6 +823,46 @@
  38169. */
  38170. void (*bmap) (fuse_req_t req, fuse_ino_t ino, size_t blocksize,
  38171. uint64_t idx);
  38172. +
  38173. +#if (__FreeBSD__ >= 10)
  38174. +
  38175. + void (*reserved00) (fuse_req_t req, fuse_ino_t ino,
  38176. + void *, void *, void *, void *, void *, void *);
  38177. + void (*reserved01) (fuse_req_t req, fuse_ino_t ino,
  38178. + void *, void *, void *, void *, void *, void *);
  38179. + void (*reserved02) (fuse_req_t req, fuse_ino_t ino,
  38180. + void *, void *, void *, void *, void *, void *);
  38181. + void (*reserved03) (fuse_req_t req, fuse_ino_t ino,
  38182. + void *, void *, void *, void *, void *, void *);
  38183. + void (*reserved04) (fuse_req_t req, fuse_ino_t ino,
  38184. + void *, void *, void *, void *, void *, void *);
  38185. + void (*reserved05) (fuse_req_t req, fuse_ino_t ino,
  38186. + void *, void *, void *, void *, void *, void *);
  38187. + void (*reserved06) (fuse_req_t req, fuse_ino_t ino,
  38188. + void *, void *, void *, void *, void *, void *);
  38189. + void (*reserved07) (fuse_req_t req, fuse_ino_t ino,
  38190. + void *, void *, void *, void *, void *, void *);
  38191. + void (*reserved08) (fuse_req_t req, fuse_ino_t ino,
  38192. + void *, void *, void *, void *, void *, void *);
  38193. + void (*reserved09) (fuse_req_t req, fuse_ino_t ino,
  38194. + void *, void *, void *, void *, void *, void *);
  38195. + void (*reserved10) (fuse_req_t req, fuse_ino_t ino,
  38196. + void *, void *, void *, void *, void *, void *);
  38197. +
  38198. + void (*setvolname) (fuse_req_t req, const char *name);
  38199. +
  38200. + void (*exchange) (fuse_req_t req, fuse_ino_t parent, const char *name,
  38201. + fuse_ino_t newparent, const char *newname,
  38202. + unsigned long options);
  38203. +
  38204. + void (*getxtimes) (fuse_req_t req, fuse_ino_t ino,
  38205. + struct fuse_file_info *);
  38206. +
  38207. + void (*setattr_x) (fuse_req_t req, fuse_ino_t ino,
  38208. + struct setattr_x *attr, int to_set,
  38209. + struct fuse_file_info *fi);
  38210. +
  38211. +#endif /* __FreeBSD__ >= 10 */
  38212. };
  38213. /**
  38214. diff -Naur old/kernel/fuse_kernel.h new/kernel/fuse_kernel.h
  38215. --- old/kernel/fuse_kernel.h 2008-02-19 11:51:24.000000000 -0800
  38216. +++ new/kernel/fuse_kernel.h 2008-11-26 22:23:12.000000000 -0800
  38217. @@ -75,6 +75,10 @@
  38218. __u32 uid;
  38219. __u32 gid;
  38220. __u32 rdev;
  38221. +#if (__FreeBSD__ >= 10)
  38222. + __u32 flags; /* file flags; see chflags(2) */
  38223. + __u32 padding;
  38224. +#endif /* __FreeBSD__ >= 10 */
  38225. };
  38226. struct fuse_kstatfs {
  38227. @@ -107,6 +111,12 @@
  38228. #define FATTR_ATIME (1 << 4)
  38229. #define FATTR_MTIME (1 << 5)
  38230. #define FATTR_FH (1 << 6)
  38231. +#if (__FreeBSD__ >= 10)
  38232. +#define FATTR_CRTIME (1 << 28)
  38233. +#define FATTR_CHGTIME (1 << 29)
  38234. +#define FATTR_BKUPTIME (1 << 30)
  38235. +#define FATTR_FLAGS (1 << 31)
  38236. +#endif /* __FreeBSD__ >= 10 */
  38237. /**
  38238. * Flags returned by the OPEN request
  38239. @@ -116,12 +126,21 @@
  38240. */
  38241. #define FOPEN_DIRECT_IO (1 << 0)
  38242. #define FOPEN_KEEP_CACHE (1 << 1)
  38243. +#if (__FreeBSD__ >= 10)
  38244. +#define FOPEN_PURGE_ATTR (1 << 30)
  38245. +#define FOPEN_PURGE_UBC (1 << 31)
  38246. +#endif
  38247. /**
  38248. * INIT request/reply flags
  38249. */
  38250. #define FUSE_ASYNC_READ (1 << 0)
  38251. #define FUSE_POSIX_LOCKS (1 << 1)
  38252. +#if (__FreeBSD__ >= 10)
  38253. +#define FUSE_CASE_INSENSITIVE (1 << 29)
  38254. +#define FUSE_VOL_RENAME (1 << 30)
  38255. +#define FUSE_XTIMES (1 << 31)
  38256. +#endif /* __FreeBSD__ >= 10 */
  38257. /**
  38258. * Release flags
  38259. @@ -165,6 +184,11 @@
  38260. FUSE_INTERRUPT = 36,
  38261. FUSE_BMAP = 37,
  38262. FUSE_DESTROY = 38,
  38263. +#if (__FreeBSD__ >= 10)
  38264. + FUSE_SETVOLNAME = 61,
  38265. + FUSE_GETXTIMES = 62,
  38266. + FUSE_EXCHANGE = 63,
  38267. +#endif /* __FreeBSD__ >= 10 */
  38268. };
  38269. /* The read buffer is required to be at least 8k, but may be much larger */
  38270. @@ -192,6 +216,15 @@
  38271. struct fuse_attr attr;
  38272. };
  38273. +#if (__FreeBSD__ >= 10)
  38274. +struct fuse_getxtimes_out {
  38275. + __u64 bkuptime;
  38276. + __u64 crtime;
  38277. + __u32 bkuptimensec;
  38278. + __u32 crtimensec;
  38279. +};
  38280. +#endif /* __FreeBSD__ >= 10 */
  38281. +
  38282. struct fuse_mknod_in {
  38283. __u32 mode;
  38284. __u32 rdev;
  38285. @@ -206,6 +239,14 @@
  38286. __u64 newdir;
  38287. };
  38288. +#if (__FreeBSD__ >= 10)
  38289. +struct fuse_exchange_in {
  38290. + __u64 olddir;
  38291. + __u64 newdir;
  38292. + __u64 options;
  38293. +};
  38294. +#endif /* __FreeBSD__ >= 10 */
  38295. +
  38296. struct fuse_link_in {
  38297. __u64 oldnodeid;
  38298. };
  38299. @@ -227,6 +268,15 @@
  38300. __u32 uid;
  38301. __u32 gid;
  38302. __u32 unused5;
  38303. +#if (__FreeBSD__ >= 10)
  38304. + __u64 bkuptime;
  38305. + __u64 chgtime;
  38306. + __u64 crtime;
  38307. + __u32 bkuptimensec;
  38308. + __u32 chgtimensec;
  38309. + __u32 crtimensec;
  38310. + __u32 flags; /* file flags; see chflags(2) */
  38311. +#endif /* __FreeBSD__ >= 10 */
  38312. };
  38313. struct fuse_open_in {
  38314. @@ -288,11 +338,19 @@
  38315. struct fuse_setxattr_in {
  38316. __u32 size;
  38317. __u32 flags;
  38318. +#if (__FreeBSD__ >= 10)
  38319. + __u32 position;
  38320. + __u32 padding;
  38321. +#endif /* __FreeBSD__ >= 10 */
  38322. };
  38323. struct fuse_getxattr_in {
  38324. __u32 size;
  38325. __u32 padding;
  38326. +#if (__FreeBSD__ >= 10)
  38327. + __u32 position;
  38328. + __u32 padding2;
  38329. +#endif /* __FreeBSD__ >= 10 */
  38330. };
  38331. struct fuse_getxattr_out {
  38332. diff -Naur old/lib/Makefile.am new/lib/Makefile.am
  38333. --- old/lib/Makefile.am 2008-02-19 11:51:24.000000000 -0800
  38334. +++ new/lib/Makefile.am 2008-11-26 22:23:12.000000000 -0800
  38335. @@ -1,14 +1,29 @@
  38336. ## Process this file with automake to produce Makefile.in
  38337. +if DARWIN
  38338. +AM_CPPFLAGS_DARWIN = -D__FreeBSD__=10
  38339. +else
  38340. +AM_CPPFLAGS_DARWIN =
  38341. +endif
  38342. +
  38343. AM_CPPFLAGS = -I$(top_srcdir)/include -DFUSERMOUNT_DIR=\"$(bindir)\" \
  38344. - -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26
  38345. + -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 $(AM_CPPFLAGS_DARWIN)
  38346. lib_LTLIBRARIES = libfuse.la libulockmgr.la
  38347. if BSD
  38348. mount_source = mount_bsd.c
  38349. -else
  38350. +extra_source =
  38351. +endif
  38352. +
  38353. +if DARWIN
  38354. +mount_source = mount_darwin.c
  38355. +extra_source = fuse_darwin.c modules/volicon.c
  38356. +endif
  38357. +
  38358. +if LINUX
  38359. mount_source = mount.c mount_util.c mount_util.h
  38360. +extra_source =
  38361. endif
  38362. if ICONV
  38363. @@ -31,11 +46,16 @@
  38364. fuse_signals.c \
  38365. helper.c \
  38366. modules/subdir.c \
  38367. + $(extra_source) \
  38368. $(iconv_source) \
  38369. $(mount_source)
  38370. +if !DARWIN
  38371. libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:7:3 \
  38372. -Wl,--version-script,$(srcdir)/fuse_versionscript
  38373. +else
  38374. +libfuse_la_LDFLAGS = -version-number 2:7:3
  38375. +endif
  38376. libulockmgr_la_SOURCES = ulockmgr.c
  38377. libulockmgr_la_LDFLAGS = -version-number 1:0:1
  38378. diff -Naur old/lib/Makefile.in new/lib/Makefile.in
  38379. --- old/lib/Makefile.in 2008-02-19 12:00:54.000000000 -0800
  38380. +++ new/lib/Makefile.in 2008-11-26 22:23:12.000000000 -0800
  38381. @@ -1,8 +1,8 @@
  38382. -# Makefile.in generated by automake 1.9.6 from Makefile.am.
  38383. +# Makefile.in generated by automake 1.10 from Makefile.am.
  38384. # @configure_input@
  38385. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  38386. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  38387. +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  38388. # This Makefile.in is free software; the Free Software Foundation
  38389. # gives unlimited permission to copy and/or distribute it,
  38390. # with or without modifications, as long as this notice is preserved.
  38391. @@ -14,15 +14,11 @@
  38392. @SET_MAKE@
  38393. -srcdir = @srcdir@
  38394. -top_srcdir = @top_srcdir@
  38395. VPATH = @srcdir@
  38396. pkgdatadir = $(datadir)/@PACKAGE@
  38397. pkglibdir = $(libdir)/@PACKAGE@
  38398. pkgincludedir = $(includedir)/@PACKAGE@
  38399. -top_builddir = ..
  38400. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  38401. -INSTALL = @INSTALL@
  38402. install_sh_DATA = $(install_sh) -c -m 644
  38403. install_sh_PROGRAM = $(install_sh) -c
  38404. install_sh_SCRIPT = $(install_sh) -c
  38405. @@ -40,7 +36,8 @@
  38406. subdir = lib
  38407. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  38408. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  38409. -am__aclocal_m4_deps = $(top_srcdir)/configure.in
  38410. +am__aclocal_m4_deps = $(top_srcdir)/iconv.m4 \
  38411. + $(top_srcdir)/configure.in
  38412. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  38413. $(ACLOCAL_M4)
  38414. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  38415. @@ -59,30 +56,41 @@
  38416. am__libfuse_la_SOURCES_DIST = fuse.c fuse_i.h fuse_kern_chan.c \
  38417. fuse_loop.c fuse_loop_mt.c fuse_lowlevel.c fuse_misc.h \
  38418. fuse_mt.c fuse_opt.c fuse_session.c fuse_signals.c helper.c \
  38419. - modules/subdir.c modules/iconv.c mount.c mount_util.c \
  38420. - mount_util.h mount_bsd.c
  38421. -@ICONV_TRUE@am__objects_1 = iconv.lo
  38422. -@BSD_FALSE@am__objects_2 = mount.lo mount_util.lo
  38423. -@BSD_TRUE@am__objects_2 = mount_bsd.lo
  38424. + modules/subdir.c fuse_darwin.c \
  38425. + modules/volicon.c modules/iconv.c mount_bsd.c mount_darwin.c \
  38426. + mount.c mount_util.c mount_util.h
  38427. +@DARWIN_TRUE@am__objects_1 = fuse_darwin.lo volicon.lo
  38428. +@ICONV_TRUE@am__objects_2 = iconv.lo
  38429. +@BSD_FALSE@@DARWIN_FALSE@@LINUX_TRUE@am__objects_3 = mount.lo \
  38430. +@BSD_FALSE@@DARWIN_FALSE@@LINUX_TRUE@ mount_util.lo
  38431. +@BSD_FALSE@@DARWIN_TRUE@am__objects_3 = mount_darwin.lo
  38432. +@BSD_TRUE@am__objects_3 = mount_bsd.lo
  38433. am_libfuse_la_OBJECTS = fuse.lo fuse_kern_chan.lo fuse_loop.lo \
  38434. fuse_loop_mt.lo fuse_lowlevel.lo fuse_mt.lo fuse_opt.lo \
  38435. fuse_session.lo fuse_signals.lo helper.lo subdir.lo \
  38436. - $(am__objects_1) $(am__objects_2)
  38437. + $(am__objects_1) $(am__objects_2) $(am__objects_3)
  38438. libfuse_la_OBJECTS = $(am_libfuse_la_OBJECTS)
  38439. +libfuse_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  38440. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  38441. + $(libfuse_la_LDFLAGS) $(LDFLAGS) -o $@
  38442. libulockmgr_la_LIBADD =
  38443. am_libulockmgr_la_OBJECTS = ulockmgr.lo
  38444. libulockmgr_la_OBJECTS = $(am_libulockmgr_la_OBJECTS)
  38445. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
  38446. +libulockmgr_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  38447. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  38448. + $(libulockmgr_la_LDFLAGS) $(LDFLAGS) -o $@
  38449. +DEFAULT_INCLUDES = -I. -I$(top_builddir)/include@am__isrc@
  38450. depcomp = $(SHELL) $(top_srcdir)/depcomp
  38451. am__depfiles_maybe = depfiles
  38452. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  38453. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  38454. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  38455. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  38456. - $(AM_CFLAGS) $(CFLAGS)
  38457. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  38458. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  38459. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  38460. CCLD = $(CC)
  38461. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  38462. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  38463. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  38464. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  38465. + $(LDFLAGS) -o $@
  38466. SOURCES = $(libfuse_la_SOURCES) $(libulockmgr_la_SOURCES)
  38467. DIST_SOURCES = $(am__libfuse_la_SOURCES_DIST) \
  38468. $(libulockmgr_la_SOURCES)
  38469. @@ -90,53 +98,49 @@
  38470. CTAGS = ctags
  38471. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  38472. ACLOCAL = @ACLOCAL@
  38473. -AMDEP_FALSE = @AMDEP_FALSE@
  38474. -AMDEP_TRUE = @AMDEP_TRUE@
  38475. AMTAR = @AMTAR@
  38476. AR = @AR@
  38477. AUTOCONF = @AUTOCONF@
  38478. AUTOHEADER = @AUTOHEADER@
  38479. AUTOMAKE = @AUTOMAKE@
  38480. AWK = @AWK@
  38481. -BSD_FALSE = @BSD_FALSE@
  38482. -BSD_TRUE = @BSD_TRUE@
  38483. CC = @CC@
  38484. CCDEPMODE = @CCDEPMODE@
  38485. CFLAGS = @CFLAGS@
  38486. CPP = @CPP@
  38487. CPPFLAGS = @CPPFLAGS@
  38488. +CXX = @CXX@
  38489. +CXXCPP = @CXXCPP@
  38490. +CXXDEPMODE = @CXXDEPMODE@
  38491. +CXXFLAGS = @CXXFLAGS@
  38492. CYGPATH_W = @CYGPATH_W@
  38493. DEFS = @DEFS@
  38494. DEPDIR = @DEPDIR@
  38495. -DUMPBIN = @DUMPBIN@
  38496. +ECHO = @ECHO@
  38497. ECHO_C = @ECHO_C@
  38498. ECHO_N = @ECHO_N@
  38499. ECHO_T = @ECHO_T@
  38500. EGREP = @EGREP@
  38501. EXEEXT = @EXEEXT@
  38502. -FGREP = @FGREP@
  38503. +F77 = @F77@
  38504. +FFLAGS = @FFLAGS@
  38505. GREP = @GREP@
  38506. -ICONV_FALSE = @ICONV_FALSE@
  38507. -ICONV_TRUE = @ICONV_TRUE@
  38508. INIT_D_PATH = @INIT_D_PATH@
  38509. +INSTALL = @INSTALL@
  38510. INSTALL_DATA = @INSTALL_DATA@
  38511. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  38512. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  38513. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  38514. -LD = @LD@
  38515. LDFLAGS = @LDFLAGS@
  38516. LIBICONV = @LIBICONV@
  38517. LIBOBJS = @LIBOBJS@
  38518. LIBS = @LIBS@
  38519. LIBTOOL = @LIBTOOL@
  38520. -LINUX_FALSE = @LINUX_FALSE@
  38521. -LINUX_TRUE = @LINUX_TRUE@
  38522. LN_S = @LN_S@
  38523. -LTLIBICONV = @LTLIBICONV@
  38524. LTLIBOBJS = @LTLIBOBJS@
  38525. MAKEINFO = @MAKEINFO@
  38526. +MKDIR_P = @MKDIR_P@
  38527. MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
  38528. -NM = @NM@
  38529. OBJEXT = @OBJEXT@
  38530. PACKAGE = @PACKAGE@
  38531. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  38532. @@ -146,16 +150,18 @@
  38533. PACKAGE_VERSION = @PACKAGE_VERSION@
  38534. PATH_SEPARATOR = @PATH_SEPARATOR@
  38535. RANLIB = @RANLIB@
  38536. -SED = @SED@
  38537. SET_MAKE = @SET_MAKE@
  38538. SHELL = @SHELL@
  38539. STRIP = @STRIP@
  38540. UDEV_RULES_PATH = @UDEV_RULES_PATH@
  38541. VERSION = @VERSION@
  38542. +abs_builddir = @abs_builddir@
  38543. +abs_srcdir = @abs_srcdir@
  38544. +abs_top_builddir = @abs_top_builddir@
  38545. +abs_top_srcdir = @abs_top_srcdir@
  38546. ac_ct_CC = @ac_ct_CC@
  38547. -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  38548. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  38549. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  38550. +ac_ct_CXX = @ac_ct_CXX@
  38551. +ac_ct_F77 = @ac_ct_F77@
  38552. am__include = @am__include@
  38553. am__leading_dot = @am__leading_dot@
  38554. am__quote = @am__quote@
  38555. @@ -167,6 +173,7 @@
  38556. build_cpu = @build_cpu@
  38557. build_os = @build_os@
  38558. build_vendor = @build_vendor@
  38559. +builddir = @builddir@
  38560. datadir = @datadir@
  38561. datarootdir = @datarootdir@
  38562. docdir = @docdir@
  38563. @@ -186,7 +193,6 @@
  38564. libfuse_libs = @libfuse_libs@
  38565. localedir = @localedir@
  38566. localstatedir = @localstatedir@
  38567. -lt_ECHO = @lt_ECHO@
  38568. mandir = @mandir@
  38569. mkdir_p = @mkdir_p@
  38570. oldincludedir = @oldincludedir@
  38571. @@ -197,6 +203,7 @@
  38572. psdir = @psdir@
  38573. sbindir = @sbindir@
  38574. sharedstatedir = @sharedstatedir@
  38575. +srcdir = @srcdir@
  38576. subdirs = @subdirs@
  38577. subdirs2 = @subdirs2@
  38578. sysconfdir = @sysconfdir@
  38579. @@ -205,12 +212,20 @@
  38580. target_cpu = @target_cpu@
  38581. target_os = @target_os@
  38582. target_vendor = @target_vendor@
  38583. +top_builddir = @top_builddir@
  38584. +top_srcdir = @top_srcdir@
  38585. +@DARWIN_FALSE@AM_CPPFLAGS_DARWIN =
  38586. +@DARWIN_TRUE@AM_CPPFLAGS_DARWIN = -D__FreeBSD__=10
  38587. AM_CPPFLAGS = -I$(top_srcdir)/include -DFUSERMOUNT_DIR=\"$(bindir)\" \
  38588. - -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26
  38589. + -D_FILE_OFFSET_BITS=64 -D_REENTRANT -DFUSE_USE_VERSION=26 $(AM_CPPFLAGS_DARWIN)
  38590. lib_LTLIBRARIES = libfuse.la libulockmgr.la
  38591. -@BSD_FALSE@mount_source = mount.c mount_util.c mount_util.h
  38592. @BSD_TRUE@mount_source = mount_bsd.c
  38593. +@DARWIN_TRUE@mount_source = mount_darwin.c
  38594. +@LINUX_TRUE@mount_source = mount.c mount_util.c mount_util.h
  38595. +@BSD_TRUE@extra_source =
  38596. +@DARWIN_TRUE@extra_source = fuse_darwin.c modules/volicon.c
  38597. +@LINUX_TRUE@extra_source =
  38598. @ICONV_FALSE@iconv_source =
  38599. @ICONV_TRUE@iconv_source = modules/iconv.c
  38600. libfuse_la_SOURCES = \
  38601. @@ -227,11 +242,13 @@
  38602. fuse_signals.c \
  38603. helper.c \
  38604. modules/subdir.c \
  38605. + $(extra_source) \
  38606. $(iconv_source) \
  38607. $(mount_source)
  38608. -libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:7:3 \
  38609. - -Wl,--version-script,$(srcdir)/fuse_versionscript
  38610. +@DARWIN_FALSE@libfuse_la_LDFLAGS = @libfuse_libs@ -version-number 2:7:3 \
  38611. +@DARWIN_FALSE@ -Wl,--version-script,$(srcdir)/fuse_versionscript
  38612. +@DARWIN_TRUE@libfuse_la_LDFLAGS = -version-number 2:7:3
  38613. libulockmgr_la_SOURCES = ulockmgr.c
  38614. libulockmgr_la_LDFLAGS = -version-number 1:0:1
  38615. @@ -271,7 +288,7 @@
  38616. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  38617. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  38618. @$(NORMAL_INSTALL)
  38619. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  38620. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  38621. @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  38622. if test -f $$p; then \
  38623. f=$(am__strip_dir) \
  38624. @@ -282,7 +299,7 @@
  38625. uninstall-libLTLIBRARIES:
  38626. @$(NORMAL_UNINSTALL)
  38627. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  38628. + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  38629. p=$(am__strip_dir) \
  38630. echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  38631. $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  38632. @@ -297,9 +314,9 @@
  38633. rm -f "$${dir}/so_locations"; \
  38634. done
  38635. libfuse.la: $(libfuse_la_OBJECTS) $(libfuse_la_DEPENDENCIES)
  38636. - $(LINK) -rpath $(libdir) $(libfuse_la_LDFLAGS) $(libfuse_la_OBJECTS) $(libfuse_la_LIBADD) $(LIBS)
  38637. + $(libfuse_la_LINK) -rpath $(libdir) $(libfuse_la_OBJECTS) $(libfuse_la_LIBADD) $(LIBS)
  38638. libulockmgr.la: $(libulockmgr_la_OBJECTS) $(libulockmgr_la_DEPENDENCIES)
  38639. - $(LINK) -rpath $(libdir) $(libulockmgr_la_LDFLAGS) $(libulockmgr_la_OBJECTS) $(libulockmgr_la_LIBADD) $(LIBS)
  38640. + $(libulockmgr_la_LINK) -rpath $(libdir) $(libulockmgr_la_OBJECTS) $(libulockmgr_la_LIBADD) $(LIBS)
  38641. mostlyclean-compile:
  38642. -rm -f *.$(OBJEXT)
  38643. @@ -308,6 +325,7 @@
  38644. -rm -f *.tab.c
  38645. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fuse.Plo@am__quote@
  38646. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fuse_darwin.Plo@am__quote@
  38647. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fuse_kern_chan.Plo@am__quote@
  38648. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fuse_loop.Plo@am__quote@
  38649. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fuse_loop_mt.Plo@am__quote@
  38650. @@ -320,44 +338,53 @@
  38651. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/iconv.Plo@am__quote@
  38652. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount.Plo@am__quote@
  38653. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_bsd.Plo@am__quote@
  38654. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_darwin.Plo@am__quote@
  38655. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mount_util.Plo@am__quote@
  38656. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/subdir.Plo@am__quote@
  38657. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ulockmgr.Plo@am__quote@
  38658. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/volicon.Plo@am__quote@
  38659. .c.o:
  38660. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  38661. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  38662. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  38663. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  38664. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  38665. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38666. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  38667. .c.obj:
  38668. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  38669. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  38670. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  38671. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  38672. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  38673. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38674. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  38675. .c.lo:
  38676. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  38677. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  38678. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  38679. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  38680. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  38681. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38682. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  38683. subdir.lo: modules/subdir.c
  38684. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT subdir.lo -MD -MP -MF "$(DEPDIR)/subdir.Tpo" -c -o subdir.lo `test -f 'modules/subdir.c' || echo '$(srcdir)/'`modules/subdir.c; \
  38685. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/subdir.Tpo" "$(DEPDIR)/subdir.Plo"; else rm -f "$(DEPDIR)/subdir.Tpo"; exit 1; fi
  38686. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT subdir.lo -MD -MP -MF $(DEPDIR)/subdir.Tpo -c -o subdir.lo `test -f 'modules/subdir.c' || echo '$(srcdir)/'`modules/subdir.c
  38687. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/subdir.Tpo $(DEPDIR)/subdir.Plo
  38688. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='modules/subdir.c' object='subdir.lo' libtool=yes @AMDEPBACKSLASH@
  38689. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38690. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o subdir.lo `test -f 'modules/subdir.c' || echo '$(srcdir)/'`modules/subdir.c
  38691. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o subdir.lo `test -f 'modules/subdir.c' || echo '$(srcdir)/'`modules/subdir.c
  38692. +
  38693. +volicon.lo: modules/volicon.c
  38694. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT volicon.lo -MD -MP -MF $(DEPDIR)/volicon.Tpo -c -o volicon.lo `test -f 'modules/volicon.c' || echo '$(srcdir)/'`modules/volicon.c
  38695. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/volicon.Tpo $(DEPDIR)/volicon.Plo
  38696. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='modules/volicon.c' object='volicon.lo' libtool=yes @AMDEPBACKSLASH@
  38697. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38698. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o volicon.lo `test -f 'modules/volicon.c' || echo '$(srcdir)/'`modules/volicon.c
  38699. iconv.lo: modules/iconv.c
  38700. -@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT iconv.lo -MD -MP -MF "$(DEPDIR)/iconv.Tpo" -c -o iconv.lo `test -f 'modules/iconv.c' || echo '$(srcdir)/'`modules/iconv.c; \
  38701. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/iconv.Tpo" "$(DEPDIR)/iconv.Plo"; else rm -f "$(DEPDIR)/iconv.Tpo"; exit 1; fi
  38702. +@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT iconv.lo -MD -MP -MF $(DEPDIR)/iconv.Tpo -c -o iconv.lo `test -f 'modules/iconv.c' || echo '$(srcdir)/'`modules/iconv.c
  38703. +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/iconv.Tpo $(DEPDIR)/iconv.Plo
  38704. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='modules/iconv.c' object='iconv.lo' libtool=yes @AMDEPBACKSLASH@
  38705. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  38706. -@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o iconv.lo `test -f 'modules/iconv.c' || echo '$(srcdir)/'`modules/iconv.c
  38707. +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o iconv.lo `test -f 'modules/iconv.c' || echo '$(srcdir)/'`modules/iconv.c
  38708. mostlyclean-libtool:
  38709. -rm -f *.lo
  38710. @@ -365,10 +392,6 @@
  38711. clean-libtool:
  38712. -rm -rf .libs _libs
  38713. -distclean-libtool:
  38714. - -rm -f libtool
  38715. -uninstall-info-am:
  38716. -
  38717. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  38718. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  38719. unique=`for i in $$list; do \
  38720. @@ -418,22 +441,21 @@
  38721. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  38722. distdir: $(DISTFILES)
  38723. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  38724. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  38725. - list='$(DISTFILES)'; for file in $$list; do \
  38726. - case $$file in \
  38727. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  38728. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  38729. - esac; \
  38730. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  38731. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  38732. + list='$(DISTFILES)'; \
  38733. + dist_files=`for file in $$list; do echo $$file; done | \
  38734. + sed -e "s|^$$srcdirstrip/||;t" \
  38735. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  38736. + case $$dist_files in \
  38737. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  38738. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  38739. + sort -u` ;; \
  38740. + esac; \
  38741. + for file in $$dist_files; do \
  38742. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  38743. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  38744. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  38745. - dir="/$$dir"; \
  38746. - $(mkdir_p) "$(distdir)$$dir"; \
  38747. - else \
  38748. - dir=''; \
  38749. - fi; \
  38750. if test -d $$d/$$file; then \
  38751. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  38752. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  38753. cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  38754. fi; \
  38755. @@ -449,7 +471,7 @@
  38756. all-am: Makefile $(LTLIBRARIES)
  38757. installdirs:
  38758. for dir in "$(DESTDIR)$(libdir)"; do \
  38759. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  38760. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  38761. done
  38762. install: install-am
  38763. install-exec: install-exec-am
  38764. @@ -484,7 +506,7 @@
  38765. -rm -rf ./$(DEPDIR)
  38766. -rm -f Makefile
  38767. distclean-am: clean-am distclean-compile distclean-generic \
  38768. - distclean-libtool distclean-tags
  38769. + distclean-tags
  38770. dvi: dvi-am
  38771. @@ -498,12 +520,20 @@
  38772. install-data-am:
  38773. +install-dvi: install-dvi-am
  38774. +
  38775. install-exec-am: install-libLTLIBRARIES
  38776. +install-html: install-html-am
  38777. +
  38778. install-info: install-info-am
  38779. install-man:
  38780. +install-pdf: install-pdf-am
  38781. +
  38782. +install-ps: install-ps-am
  38783. +
  38784. installcheck-am:
  38785. maintainer-clean: maintainer-clean-am
  38786. @@ -524,20 +554,23 @@
  38787. ps-am:
  38788. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
  38789. +uninstall-am: uninstall-libLTLIBRARIES
  38790. +
  38791. +.MAKE: install-am install-strip
  38792. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  38793. clean-libLTLIBRARIES clean-libtool ctags distclean \
  38794. distclean-compile distclean-generic distclean-libtool \
  38795. distclean-tags distdir dvi dvi-am html html-am info info-am \
  38796. - install install-am install-data install-data-am install-exec \
  38797. - install-exec-am install-info install-info-am \
  38798. - install-libLTLIBRARIES install-man install-strip installcheck \
  38799. + install install-am install-data install-data-am install-dvi \
  38800. + install-dvi-am install-exec install-exec-am install-html \
  38801. + install-html-am install-info install-info-am \
  38802. + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  38803. + install-ps install-ps-am install-strip installcheck \
  38804. installcheck-am installdirs maintainer-clean \
  38805. maintainer-clean-generic mostlyclean mostlyclean-compile \
  38806. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  38807. - tags uninstall uninstall-am uninstall-info-am \
  38808. - uninstall-libLTLIBRARIES
  38809. + tags uninstall uninstall-am uninstall-libLTLIBRARIES
  38810. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  38811. # Otherwise a system limit (for SysV at least) may be exceeded.
  38812. diff -Naur old/lib/fuse.c new/lib/fuse.c
  38813. --- old/lib/fuse.c 2008-02-19 11:51:25.000000000 -0800
  38814. +++ new/lib/fuse.c 2008-11-26 22:23:12.000000000 -0800
  38815. @@ -16,6 +16,9 @@
  38816. #include "fuse_misc.h"
  38817. #include "fuse_common_compat.h"
  38818. #include "fuse_compat.h"
  38819. +#if (__FreeBSD__ >= 10)
  38820. +#include "fuse_darwin_private.h"
  38821. +#endif /* __FreeBSD__ >= 10 */
  38822. #include <stdio.h>
  38823. #include <string.h>
  38824. @@ -69,6 +72,9 @@
  38825. struct fuse_module *m;
  38826. void *user_data;
  38827. int compat;
  38828. +#if (__FreeBSD__ >= 10)
  38829. + struct fuse *fuse;
  38830. +#endif /* __FreeBSD__ >= 10 */
  38831. };
  38832. struct fusemod_so {
  38833. @@ -747,6 +753,26 @@
  38834. return fs->op.statfs(fs->compat == 25 ? "/" : path, buf);
  38835. }
  38836. +int fuse_fs_setattr_x(struct fuse_fs *fs, const char *path,
  38837. + struct setattr_x *attr)
  38838. +{
  38839. + fuse_get_context()->private_data = fs->user_data;
  38840. + if (fs->op.setattr_x)
  38841. + return fs->op.setattr_x(path, attr);
  38842. + else
  38843. + return -ENOSYS;
  38844. +}
  38845. +
  38846. +int fuse_fs_fsetattr_x(struct fuse_fs *fs, const char *path,
  38847. + struct setattr_x *attr, struct fuse_file_info *fi)
  38848. +{
  38849. + fuse_get_context()->private_data = fs->user_data;
  38850. + if (fs->op.fsetattr_x)
  38851. + return fs->op.fsetattr_x(path, attr, fi);
  38852. + else
  38853. + return -ENOSYS;
  38854. +}
  38855. +
  38856. #endif /* __FreeBSD__ */
  38857. int fuse_fs_getattr(struct fuse_fs *fs, const char *path, struct stat *buf)
  38858. @@ -780,6 +806,69 @@
  38859. return -ENOSYS;
  38860. }
  38861. +#if (__FreeBSD__ >= 10)
  38862. +
  38863. +int fuse_fs_setvolname(struct fuse_fs *fs, const char *volname)
  38864. +{
  38865. + fuse_get_context()->private_data = fs->user_data;
  38866. + if (fs->op.setvolname)
  38867. + return fs->op.setvolname(volname);
  38868. + else
  38869. + return -ENOSYS;
  38870. +}
  38871. +
  38872. +int fuse_fs_exchange(struct fuse_fs *fs, const char *path1,
  38873. + const char *path2, unsigned long options)
  38874. +{
  38875. + fuse_get_context()->private_data = fs->user_data;
  38876. + if (fs->op.exchange)
  38877. + return fs->op.exchange(path1, path2, options);
  38878. + else
  38879. + return -ENOSYS;
  38880. +}
  38881. +
  38882. +int fuse_fs_getxtimes(struct fuse_fs *fs, const char *path,
  38883. + struct timespec *bkuptime, struct timespec *crtime)
  38884. +{
  38885. + fuse_get_context()->private_data = fs->user_data;
  38886. + if (fs->op.getxtimes)
  38887. + return fs->op.getxtimes(path, bkuptime, crtime);
  38888. + else
  38889. + return -ENOSYS;
  38890. +}
  38891. +
  38892. +int fuse_fs_setbkuptime(struct fuse_fs *fs, const char *path,
  38893. + const struct timespec *tv)
  38894. +{
  38895. + fuse_get_context()->private_data = fs->user_data;
  38896. + if (fs->op.setbkuptime)
  38897. + return fs->op.setbkuptime(path, tv);
  38898. + else
  38899. + return -ENOSYS;
  38900. +}
  38901. +
  38902. +int fuse_fs_setchgtime(struct fuse_fs *fs, const char *path,
  38903. + const struct timespec *tv)
  38904. +{
  38905. + fuse_get_context()->private_data = fs->user_data;
  38906. + if (fs->op.setchgtime)
  38907. + return fs->op.setchgtime(path, tv);
  38908. + else
  38909. + return -ENOSYS;
  38910. +}
  38911. +
  38912. +int fuse_fs_setcrtime(struct fuse_fs *fs, const char *path,
  38913. + const struct timespec *tv)
  38914. +{
  38915. + fuse_get_context()->private_data = fs->user_data;
  38916. + if (fs->op.setcrtime)
  38917. + return fs->op.setcrtime(path, tv);
  38918. + else
  38919. + return -ENOSYS;
  38920. +}
  38921. +
  38922. +#endif /* __FreeBSD__ >= 10 */
  38923. +
  38924. int fuse_fs_unlink(struct fuse_fs *fs, const char *path)
  38925. {
  38926. fuse_get_context()->private_data = fs->user_data;
  38927. @@ -841,7 +930,7 @@
  38928. {
  38929. fuse_get_context()->private_data = fs->user_data;
  38930. if (fs->op.open)
  38931. - return fuse_compat_open(fs, path, fi);
  38932. + return fuse_compat_open(fs, (char *)path, fi);
  38933. else
  38934. return 0;
  38935. }
  38936. @@ -1052,21 +1141,37 @@
  38937. }
  38938. int fuse_fs_setxattr(struct fuse_fs *fs, const char *path, const char *name,
  38939. - const char *value, size_t size, int flags)
  38940. +#if (__FreeBSD__ >= 10)
  38941. + const char *value, size_t size, int flags, uint32_t position)
  38942. +#else
  38943. + const char *value, size_t size, int flags);
  38944. +#endif /* __FreeBSD__ >= 10 */
  38945. {
  38946. fuse_get_context()->private_data = fs->user_data;
  38947. if (fs->op.setxattr)
  38948. +#if (__FreeBSD__ >= 10)
  38949. + return fs->op.setxattr(path, name, value, size, flags, position);
  38950. +#else
  38951. return fs->op.setxattr(path, name, value, size, flags);
  38952. +#endif /* __FreeBSD__ >= 10 */
  38953. else
  38954. return -ENOSYS;
  38955. }
  38956. int fuse_fs_getxattr(struct fuse_fs *fs, const char *path, const char *name,
  38957. - char *value, size_t size)
  38958. +#if (__FreeBSD__ >= 10)
  38959. + char *value, size_t size, uint32_t position)
  38960. +#else
  38961. + char *value, size_t size);
  38962. +#endif /* __FreeBSD__ >= 10 */
  38963. {
  38964. fuse_get_context()->private_data = fs->user_data;
  38965. if (fs->op.getxattr)
  38966. +#if (__FreeBSD__ >= 10)
  38967. + return fs->op.getxattr(path, name, value, size, position);
  38968. +#else
  38969. return fs->op.getxattr(path, name, value, size);
  38970. +#endif /* __FreeBSD__ >= 10 */
  38971. else
  38972. return -ENOSYS;
  38973. }
  38974. @@ -1180,6 +1285,16 @@
  38975. static void curr_time(struct timespec *now)
  38976. {
  38977. +#if (__FreeBSD__ >= 10)
  38978. +#define MACFUSE_TIMEVAL_TO_TIMESPEC(tv, ts) { \
  38979. + (ts)->tv_sec = (tv)->tv_sec; \
  38980. + (ts)->tv_nsec = (tv)->tv_usec * 1000; \
  38981. + }
  38982. + struct timeval tp;
  38983. + gettimeofday(&tp, NULL);
  38984. + /* XXX: TBD: We are losing resolution here. */
  38985. + MACFUSE_TIMEVAL_TO_TIMESPEC(&tp, now);
  38986. +#else
  38987. static clockid_t clockid = CLOCK_MONOTONIC;
  38988. int res = clock_gettime(clockid, now);
  38989. if (res == -1 && errno == EINVAL) {
  38990. @@ -1190,6 +1305,7 @@
  38991. perror("fuse: clock_gettime");
  38992. abort();
  38993. }
  38994. +#endif
  38995. }
  38996. static void update_stat(struct node *node, const struct stat *stbuf)
  38997. @@ -1444,6 +1560,108 @@
  38998. return -ENOSYS;
  38999. }
  39000. +#if (__FreeBSD__ >= 10)
  39001. +
  39002. +int fuse_fs_chflags(struct fuse_fs *fs, const char *path, uint32_t flags)
  39003. +{
  39004. + fuse_get_context()->private_data = fs->user_data;
  39005. + if (fs->op.chflags)
  39006. + return fs->op.chflags(path, flags);
  39007. + else
  39008. + return -ENOSYS;
  39009. +}
  39010. +
  39011. +static void fuse_lib_setattr_x(fuse_req_t req, fuse_ino_t ino,
  39012. + struct setattr_x *attr,
  39013. + int valid, struct fuse_file_info *fi)
  39014. +{
  39015. + struct fuse *f = req_fuse_prepare(req);
  39016. + struct stat buf;
  39017. + char *path;
  39018. + int err;
  39019. +
  39020. + err = -ENOENT;
  39021. + pthread_rwlock_rdlock(&f->tree_lock);
  39022. + path = get_path(f, ino);
  39023. + if (path != NULL) {
  39024. + struct fuse_intr_data d;
  39025. + fuse_prepare_interrupt(f, req, &d);
  39026. + err = 0;
  39027. + if (!err && valid) {
  39028. + if (fi)
  39029. + err = fuse_fs_fsetattr_x(f->fs, path, attr, fi);
  39030. + else
  39031. + err = fuse_fs_setattr_x(f->fs, path, attr);
  39032. + if (err == -ENOSYS)
  39033. + err = 0;
  39034. + else
  39035. + goto done;
  39036. + }
  39037. + if (!err && (valid & FUSE_SET_ATTR_FLAGS)) {
  39038. + err = fuse_fs_chflags(f->fs, path, attr->flags);
  39039. + /* XXX: don't complain if flags couldn't be written */
  39040. + if (err == -ENOSYS)
  39041. + err = 0;
  39042. + }
  39043. + if (!err && (valid & FUSE_SET_ATTR_BKUPTIME)) {
  39044. + err = fuse_fs_setbkuptime(f->fs, path, &attr->bkuptime);
  39045. + }
  39046. + if (!err && (valid & FUSE_SET_ATTR_CHGTIME)) {
  39047. + err = fuse_fs_setchgtime(f->fs, path, &attr->chgtime);
  39048. + }
  39049. + if (!err && (valid & FUSE_SET_ATTR_CRTIME)) {
  39050. + err = fuse_fs_setcrtime(f->fs, path, &attr->crtime);
  39051. + }
  39052. + if (!err && (valid & FUSE_SET_ATTR_MODE))
  39053. + err = fuse_fs_chmod(f->fs, path, attr->mode);
  39054. + if (!err && (valid & (FUSE_SET_ATTR_UID | FUSE_SET_ATTR_GID))) {
  39055. + uid_t uid = (valid & FUSE_SET_ATTR_UID) ?
  39056. + attr->uid : (uid_t) -1;
  39057. + gid_t gid = (valid & FUSE_SET_ATTR_GID) ?
  39058. + attr->gid : (gid_t) -1;
  39059. + err = fuse_fs_chown(f->fs, path, uid, gid);
  39060. + }
  39061. + if (!err && (valid & FUSE_SET_ATTR_SIZE)) {
  39062. + if (fi)
  39063. + err = fuse_fs_ftruncate(f->fs, path,
  39064. + attr->size, fi);
  39065. + else
  39066. + err = fuse_fs_truncate(f->fs, path, attr->size);
  39067. + }
  39068. + if (!err && (valid & FUSE_SET_ATTR_MTIME)) {
  39069. + struct timespec tv[2];
  39070. + if (valid & FUSE_SET_ATTR_ATIME) {
  39071. + tv[0] = attr->acctime;
  39072. + } else {
  39073. + struct timeval now;
  39074. + gettimeofday(&now, NULL);
  39075. + tv[0].tv_sec = now.tv_sec;
  39076. + tv[0].tv_nsec = now.tv_usec * 1000;
  39077. + }
  39078. + tv[1] = attr->modtime;
  39079. + err = fuse_fs_utimens(f->fs, path, tv);
  39080. + }
  39081. +done:
  39082. + if (!err)
  39083. + err = fuse_fs_getattr(f->fs, path, &buf);
  39084. + fuse_finish_interrupt(f, req, &d);
  39085. + free(path);
  39086. + }
  39087. + pthread_rwlock_unlock(&f->tree_lock);
  39088. + if (!err) {
  39089. + if (f->conf.auto_cache) {
  39090. + pthread_mutex_lock(&f->lock);
  39091. + update_stat(get_node(f, ino), &buf);
  39092. + pthread_mutex_unlock(&f->lock);
  39093. + }
  39094. + set_stat(f, ino, &buf);
  39095. + fuse_reply_attr(req, &buf, f->conf.attr_timeout);
  39096. + } else
  39097. + reply_err(req, err);
  39098. +}
  39099. +
  39100. +#endif /* __FreeBSD__ >= 10 */
  39101. +
  39102. static void fuse_lib_setattr(fuse_req_t req, fuse_ino_t ino, struct stat *attr,
  39103. int valid, struct fuse_file_info *fi)
  39104. {
  39105. @@ -1459,6 +1677,32 @@
  39106. struct fuse_intr_data d;
  39107. fuse_prepare_interrupt(f, req, &d);
  39108. err = 0;
  39109. +#if (__FreeBSD__ >= 10)
  39110. + if (!err && (valid & FUSE_SET_ATTR_FLAGS)) {
  39111. + err = fuse_fs_chflags(f->fs, path, attr->st_flags);
  39112. + /* XXX: don't complain if flags couldn't be written */
  39113. + if (err == -ENOSYS)
  39114. + err = 0;
  39115. + }
  39116. + if (!err && (valid & FUSE_SET_ATTR_BKUPTIME)) {
  39117. + struct timespec tv;
  39118. + tv.tv_sec = (uint64_t)(attr->st_qspare[0]);
  39119. + tv.tv_nsec = (uint32_t)(attr->st_lspare);
  39120. + err = fuse_fs_setbkuptime(f->fs, path, &tv);
  39121. + }
  39122. + if (!err && (valid & FUSE_SET_ATTR_CHGTIME)) {
  39123. + struct timespec tv;
  39124. + tv.tv_sec = (uint64_t)(attr->st_ctime);
  39125. + tv.tv_nsec = (uint32_t)(attr->st_ctimensec);
  39126. + err = fuse_fs_setchgtime(f->fs, path, &tv);
  39127. + }
  39128. + if (!err && (valid & FUSE_SET_ATTR_CRTIME)) {
  39129. + struct timespec tv;
  39130. + tv.tv_sec = (uint64_t)(attr->st_qspare[1]);
  39131. + tv.tv_nsec = (uint32_t)(attr->st_gen);
  39132. + err = fuse_fs_setcrtime(f->fs, path, &tv);
  39133. + }
  39134. +#endif /* __FreeBSD__ >= 10 */
  39135. if (!err && (valid & FUSE_SET_ATTR_MODE))
  39136. err = fuse_fs_chmod(f->fs, path, attr->st_mode);
  39137. if (!err && (valid & (FUSE_SET_ATTR_UID | FUSE_SET_ATTR_GID))) {
  39138. @@ -1476,6 +1720,23 @@
  39139. err = fuse_fs_truncate(f->fs, path,
  39140. attr->st_size);
  39141. }
  39142. +#if (__FreeBSD__ >= 10)
  39143. + if (!err && (valid & FUSE_SET_ATTR_MTIME)) {
  39144. + struct timespec tv[2];
  39145. + if (valid & FUSE_SET_ATTR_ATIME) {
  39146. + tv[0].tv_sec = attr->st_atime;
  39147. + tv[0].tv_nsec = ST_ATIM_NSEC(attr);
  39148. + } else {
  39149. + struct timeval now;
  39150. + gettimeofday(&now, NULL);
  39151. + tv[0].tv_sec = now.tv_sec;
  39152. + tv[0].tv_nsec = now.tv_usec * 1000;
  39153. + }
  39154. + tv[1].tv_sec = attr->st_mtime;
  39155. + tv[1].tv_nsec = ST_MTIM_NSEC(attr);
  39156. + err = fuse_fs_utimens(f->fs, path, tv);
  39157. + }
  39158. +#else
  39159. if (!err &&
  39160. (valid & (FUSE_SET_ATTR_ATIME | FUSE_SET_ATTR_MTIME)) ==
  39161. (FUSE_SET_ATTR_ATIME | FUSE_SET_ATTR_MTIME)) {
  39162. @@ -1486,6 +1747,7 @@
  39163. tv[1].tv_nsec = ST_MTIM_NSEC(attr);
  39164. err = fuse_fs_utimens(f->fs, path, tv);
  39165. }
  39166. +#endif /* __FreeBSD__ >= 10 */
  39167. if (!err)
  39168. err = fuse_fs_getattr(f->fs, path, &buf);
  39169. fuse_finish_interrupt(f, req, &d);
  39170. @@ -1736,6 +1998,134 @@
  39171. reply_err(req, err);
  39172. }
  39173. +#if (__FreeBSD__ >= 10)
  39174. +
  39175. +static int exchange_node(struct fuse *f, fuse_ino_t olddir, const char *oldname,
  39176. + fuse_ino_t newdir, const char *newname,
  39177. + unsigned long options)
  39178. +{
  39179. + struct node *node;
  39180. + struct node *newnode;
  39181. + int err = 0;
  39182. +
  39183. + pthread_mutex_lock(&f->lock);
  39184. + node = lookup_node(f, olddir, oldname);
  39185. + newnode = lookup_node(f, newdir, newname);
  39186. + if (node == NULL)
  39187. + goto out;
  39188. +
  39189. + if (newnode != NULL) {
  39190. +
  39191. + off_t tmpsize;
  39192. + struct timespec tmpspec;
  39193. +
  39194. + tmpsize = node->size;
  39195. + node->size = newnode->size;
  39196. + newnode->size = tmpsize;
  39197. +
  39198. + tmpspec.tv_sec = node->mtime.tv_sec;
  39199. + tmpspec.tv_nsec = node->mtime.tv_nsec;
  39200. + node->mtime.tv_sec = newnode->mtime.tv_sec;
  39201. + node->mtime.tv_nsec = newnode->mtime.tv_nsec;
  39202. + newnode->mtime.tv_sec = tmpspec.tv_sec;
  39203. + newnode->mtime.tv_nsec = tmpspec.tv_nsec;
  39204. +
  39205. + node->cache_valid = newnode->cache_valid = 0;
  39206. +
  39207. + curr_time(&node->stat_updated);
  39208. + curr_time(&newnode->stat_updated);
  39209. + }
  39210. +
  39211. +out:
  39212. + pthread_mutex_unlock(&f->lock);
  39213. + return err;
  39214. +}
  39215. +
  39216. +static void fuse_lib_setvolname(fuse_req_t req, const char *volname)
  39217. +{
  39218. + struct fuse *f = req_fuse_prepare(req);
  39219. + int err;
  39220. +
  39221. + pthread_rwlock_rdlock(&f->tree_lock);
  39222. + struct fuse_intr_data d;
  39223. + fuse_prepare_interrupt(f, req, &d);
  39224. + err = fuse_fs_setvolname(f->fs, volname);
  39225. + fuse_finish_interrupt(f, req, &d);
  39226. + pthread_rwlock_unlock(&f->tree_lock);
  39227. +
  39228. + reply_err(req, err);
  39229. +}
  39230. +
  39231. +static void fuse_lib_exchange(fuse_req_t req, fuse_ino_t olddir,
  39232. + const char *oldname, fuse_ino_t newdir,
  39233. + const char *newname, unsigned long options)
  39234. +{
  39235. + struct fuse *f = req_fuse_prepare(req);
  39236. + char *oldpath;
  39237. + char *newpath;
  39238. + int err;
  39239. +
  39240. + err = -ENOENT;
  39241. + pthread_rwlock_wrlock(&f->tree_lock);
  39242. + oldpath = get_path_name(f, olddir, oldname);
  39243. + if (oldpath != NULL) {
  39244. + newpath = get_path_name(f, newdir, newname);
  39245. + if (newpath != NULL) {
  39246. + struct fuse_intr_data d;
  39247. + if (f->conf.debug)
  39248. + fprintf(stderr, "EXCHANGE %s -> %s\n", oldpath,
  39249. + newpath);
  39250. + err = 0;
  39251. + fuse_prepare_interrupt(f, req, &d);
  39252. + if (!err) {
  39253. + err = fuse_fs_exchange(f->fs, oldpath, newpath,
  39254. + options);
  39255. + if (!err)
  39256. + err = exchange_node(f, olddir, oldname,
  39257. + newdir, newname,
  39258. + options);
  39259. + }
  39260. + fuse_finish_interrupt(f, req, &d);
  39261. + free(newpath);
  39262. + }
  39263. + free(oldpath);
  39264. + }
  39265. + pthread_rwlock_unlock(&f->tree_lock);
  39266. + reply_err(req, err);
  39267. +}
  39268. +
  39269. +static void fuse_lib_getxtimes(fuse_req_t req, fuse_ino_t ino,
  39270. + struct fuse_file_info *fi)
  39271. +{
  39272. + struct fuse *f = req_fuse_prepare(req);
  39273. + struct timespec bkuptime;
  39274. + struct timespec crtime;
  39275. + char *path;
  39276. + int err;
  39277. +
  39278. + (void) fi;
  39279. + memset(&bkuptime, 0, sizeof(bkuptime));
  39280. + memset(&crtime, 0, sizeof(crtime));
  39281. +
  39282. + err = -ENOENT;
  39283. + pthread_rwlock_rdlock(&f->tree_lock);
  39284. + path = get_path(f, ino);
  39285. + if (path != NULL) {
  39286. + struct fuse_intr_data d;
  39287. + fuse_prepare_interrupt(f, req, &d);
  39288. + err = fuse_fs_getxtimes(f->fs, path, &bkuptime, &crtime);
  39289. + fuse_finish_interrupt(f, req, &d);
  39290. + free(path);
  39291. + }
  39292. + pthread_rwlock_unlock(&f->tree_lock);
  39293. + if (!err) {
  39294. + fuse_reply_xtimes(req, &bkuptime, &crtime);
  39295. + } else
  39296. + reply_err(req, err);
  39297. +}
  39298. +
  39299. +#endif /* __FreeBSD__ >= 10 */
  39300. +
  39301. static void fuse_lib_link(fuse_req_t req, fuse_ino_t ino, fuse_ino_t newparent,
  39302. const char *newname)
  39303. {
  39304. @@ -1873,14 +2263,27 @@
  39305. pthread_mutex_unlock(&f->lock);
  39306. err = fuse_fs_fgetattr(f->fs, path, &stbuf, fi);
  39307. pthread_mutex_lock(&f->lock);
  39308. +#if (__FreeBSD__ >= 10)
  39309. + if (!err) {
  39310. + if (stbuf.st_size != node->size)
  39311. + fi->purge_attr = 1;
  39312. + update_stat(node, &stbuf);
  39313. + } else
  39314. + node->cache_valid = 0;
  39315. +#else
  39316. if (!err)
  39317. update_stat(node, &stbuf);
  39318. else
  39319. node->cache_valid = 0;
  39320. +#endif
  39321. }
  39322. }
  39323. if (node->cache_valid)
  39324. fi->keep_cache = 1;
  39325. +#if (__FreeBSD__ >= 10)
  39326. + else
  39327. + fi->purge_ubc = 1;
  39328. +#endif
  39329. node->cache_valid = 1;
  39330. pthread_mutex_unlock(&f->lock);
  39331. @@ -2097,6 +2500,7 @@
  39332. }
  39333. } else {
  39334. reply_err(req, err);
  39335. + pthread_mutex_destroy(&dh->lock);
  39336. free(dh);
  39337. }
  39338. free(path);
  39339. @@ -2320,7 +2724,11 @@
  39340. }
  39341. static void fuse_lib_setxattr(fuse_req_t req, fuse_ino_t ino, const char *name,
  39342. +#if (__FreeBSD__ >= 10)
  39343. + const char *value, size_t size, int flags, uint32_t position)
  39344. +#else
  39345. const char *value, size_t size, int flags)
  39346. +#endif /* __FreeBSD__ >= 10 */
  39347. {
  39348. struct fuse *f = req_fuse_prepare(req);
  39349. char *path;
  39350. @@ -2332,7 +2740,11 @@
  39351. if (path != NULL) {
  39352. struct fuse_intr_data d;
  39353. fuse_prepare_interrupt(f, req, &d);
  39354. +#if (__FreeBSD__ >= 10)
  39355. + err = fuse_fs_setxattr(f->fs, path, name, value, size, flags, position);
  39356. +#else
  39357. err = fuse_fs_setxattr(f->fs, path, name, value, size, flags);
  39358. +#endif /* __FreeBSD__ >= 10 */
  39359. fuse_finish_interrupt(f, req, &d);
  39360. free(path);
  39361. }
  39362. @@ -2341,7 +2753,11 @@
  39363. }
  39364. static int common_getxattr(struct fuse *f, fuse_req_t req, fuse_ino_t ino,
  39365. +#if (__FreeBSD__ >= 10)
  39366. + const char *name, char *value, size_t size, uint32_t position)
  39367. +#else
  39368. const char *name, char *value, size_t size)
  39369. +#endif /* __FreeBSD__ >= 10 */
  39370. {
  39371. int err;
  39372. char *path;
  39373. @@ -2352,7 +2768,11 @@
  39374. if (path != NULL) {
  39375. struct fuse_intr_data d;
  39376. fuse_prepare_interrupt(f, req, &d);
  39377. +#if (__FreeBSD__ >= 10)
  39378. + err = fuse_fs_getxattr(f->fs, path, name, value, size, position);
  39379. +#else
  39380. err = fuse_fs_getxattr(f->fs, path, name, value, size);
  39381. +#endif /* __FreeBSD__ >= 10 */
  39382. fuse_finish_interrupt(f, req, &d);
  39383. free(path);
  39384. }
  39385. @@ -2361,7 +2781,11 @@
  39386. }
  39387. static void fuse_lib_getxattr(fuse_req_t req, fuse_ino_t ino, const char *name,
  39388. +#if (__FreeBSD__ >= 10)
  39389. + size_t size, uint32_t position)
  39390. +#else
  39391. size_t size)
  39392. +#endif /* __FreeBSD__ >= 10 */
  39393. {
  39394. struct fuse *f = req_fuse_prepare(req);
  39395. int res;
  39396. @@ -2372,14 +2796,22 @@
  39397. reply_err(req, -ENOMEM);
  39398. return;
  39399. }
  39400. +#if (__FreeBSD__ >= 10)
  39401. + res = common_getxattr(f, req, ino, name, value, size, position);
  39402. +#else
  39403. res = common_getxattr(f, req, ino, name, value, size);
  39404. +#endif /* __FreeBSD__ >= 10 */
  39405. if (res > 0)
  39406. fuse_reply_buf(req, value, res);
  39407. else
  39408. reply_err(req, res);
  39409. free(value);
  39410. } else {
  39411. +#if (__FreeBSD__ >= 10)
  39412. + res = common_getxattr(f, req, ino, name, NULL, 0, position);
  39413. +#else
  39414. res = common_getxattr(f, req, ino, name, NULL, 0);
  39415. +#endif /* __FreeBSD__ >= 10 */
  39416. if (res >= 0)
  39417. fuse_reply_xattr(req, res);
  39418. else
  39419. @@ -2777,6 +3209,12 @@
  39420. .getlk = fuse_lib_getlk,
  39421. .setlk = fuse_lib_setlk,
  39422. .bmap = fuse_lib_bmap,
  39423. +#if (__FreeBSD__ >= 10)
  39424. + .setvolname = fuse_lib_setvolname,
  39425. + .exchange = fuse_lib_exchange,
  39426. + .getxtimes = fuse_lib_getxtimes,
  39427. + .setattr_x = fuse_lib_setattr_x,
  39428. +#endif
  39429. };
  39430. static void free_cmd(struct fuse_cmd *cmd)
  39431. @@ -3043,6 +3481,9 @@
  39432. }
  39433. fs->user_data = user_data;
  39434. +#if (__FreeBSD__ >= 10)
  39435. + fs->fuse = NULL;
  39436. +#endif /* __FreeBSD__ >= 10 */
  39437. if (op)
  39438. memcpy(&fs->op, op, op_size);
  39439. return fs;
  39440. @@ -3174,6 +3615,11 @@
  39441. root->nlookup = 1;
  39442. hash_id(f, root);
  39443. +#if (__FreeBSD__ >= 10)
  39444. + f->fs->fuse = f;
  39445. + fuse_set_fuse_internal_np(fuse_chan_fd(ch), f);
  39446. +#endif /* __FreeBSD__ >= 10 */
  39447. +
  39448. return f;
  39449. out_free_root_name:
  39450. @@ -3211,6 +3657,10 @@
  39451. {
  39452. size_t i;
  39453. +#if (__FreeBSD__ >= 10)
  39454. + fuse_unset_fuse_internal_np(f);
  39455. +#endif /* __FreeBSD__ >= 10 */
  39456. +
  39457. if (f->conf.intr && f->intr_installed)
  39458. fuse_restore_intr_signal(f->conf.intr_signal);
  39459. @@ -3279,6 +3729,185 @@
  39460. fuse_modules = mod;
  39461. }
  39462. +#if (__FreeBSD__ >= 10)
  39463. +
  39464. +struct find_mountpoint_arg {
  39465. + struct fuse *fuse;
  39466. + const char *mountpoint;
  39467. +};
  39468. +
  39469. +static int
  39470. +find_mountpoint_helper(const char *mountpoint, struct mount_info *mi,
  39471. + struct find_mountpoint_arg *arg)
  39472. +{
  39473. + if (mi->fuse == arg->fuse) {
  39474. + arg->mountpoint = mountpoint;
  39475. + return 0;
  39476. + }
  39477. +
  39478. + return 1;
  39479. +}
  39480. +
  39481. +const char *
  39482. +fuse_mountpoint_for_fs_np(struct fuse_fs *fs)
  39483. +{
  39484. + if (!fs) {
  39485. + return (const char *)0;
  39486. + }
  39487. +
  39488. + struct find_mountpoint_arg arg;
  39489. +
  39490. + arg.fuse = fs->fuse;
  39491. + arg.mountpoint = NULL;
  39492. +
  39493. + pthread_mutex_lock(&mount_lock);
  39494. + hash_traverse(mount_hash, (int(*)())find_mountpoint_helper, &arg);
  39495. + pthread_mutex_unlock(&mount_lock);
  39496. +
  39497. + return arg.mountpoint;
  39498. +}
  39499. +
  39500. +struct fuse *
  39501. +fuse_get_internal_np(const char *mountpoint)
  39502. +{
  39503. + struct fuse *fuse = NULL;
  39504. + if (mountpoint) {
  39505. + pthread_mutex_lock(&mount_lock);
  39506. + struct mount_info *mi =
  39507. + hash_search(mount_hash, (char *)mountpoint, NULL, NULL);
  39508. + if (mi) {
  39509. + fuse = mi->fuse;
  39510. + pthread_mutex_lock(&fuse->lock);
  39511. + }
  39512. + pthread_mutex_unlock(&mount_lock);
  39513. + }
  39514. + return fuse;
  39515. +}
  39516. +
  39517. +void
  39518. +fuse_put_internal_np(struct fuse *fuse)
  39519. +{
  39520. + if (fuse) {
  39521. + pthread_mutex_unlock(&fuse->lock);
  39522. + }
  39523. +}
  39524. +
  39525. +fuse_ino_t
  39526. +fuse_lookup_inode_internal_np(const char *mountpoint, const char *path)
  39527. +{
  39528. + fuse_ino_t ino = 0; /* invalid */
  39529. + fuse_ino_t parent_ino = FUSE_ROOT_ID;
  39530. + char scratch[MAXPATHLEN];
  39531. +
  39532. + if (!path) {
  39533. + return ino;
  39534. + }
  39535. +
  39536. + if (*path != '/') {
  39537. + return ino;
  39538. + }
  39539. +
  39540. + strncpy(scratch, path + 1, sizeof(scratch));
  39541. + char* p = scratch;
  39542. + char* q = p; /* First (and maybe last) path component */
  39543. +
  39544. + struct node *node = NULL;
  39545. +
  39546. + struct fuse *f = fuse_get_internal_np(mountpoint);
  39547. + if (f == NULL) {
  39548. + return ino;
  39549. + }
  39550. +
  39551. + while (p) {
  39552. + p = strchr(p, '/');
  39553. + if (p) {
  39554. + *p = '\0'; /* Terminate string for use by q */
  39555. + ++p; /* One past the NULL (or former '/') */
  39556. + }
  39557. + if (*q == '.' && *(q+1) == '\0') {
  39558. + fuse_put_internal_np(f);
  39559. + goto out;
  39560. + }
  39561. + if (*q) { /* ignore consecutive '/'s */
  39562. + node = lookup_node(f, parent_ino, q);
  39563. + if (!node) {
  39564. + fuse_put_internal_np(f);
  39565. + goto out;
  39566. + }
  39567. + parent_ino = node->nodeid;
  39568. + }
  39569. + q = p;
  39570. + }
  39571. + if (node) {
  39572. + ino = node->nodeid;
  39573. + }
  39574. + fuse_put_internal_np(f);
  39575. +
  39576. +out:
  39577. + return ino;
  39578. +}
  39579. +
  39580. +__private_extern__
  39581. +int
  39582. +fuse_resize_node_internal_np(const char *mountpoint, const char *path,
  39583. + off_t newsize)
  39584. +{
  39585. + int ret = ENOENT;
  39586. + fuse_ino_t parent_ino = FUSE_ROOT_ID;
  39587. + char scratch[MAXPATHLEN];
  39588. +
  39589. + if (!path) {
  39590. + return EINVAL;
  39591. + }
  39592. +
  39593. + if (*path != '/') {
  39594. + return EINVAL;
  39595. + }
  39596. +
  39597. + strncpy(scratch, path + 1, sizeof(scratch));
  39598. + char* p = scratch;
  39599. + char* q = p; /* First (and maybe last) path component */
  39600. +
  39601. + struct node *node = NULL;
  39602. +
  39603. + struct fuse *f = fuse_get_internal_np(mountpoint);
  39604. + if (f == NULL) {
  39605. + return EINVAL;
  39606. + }
  39607. +
  39608. + while (p) {
  39609. + p = strchr(p, '/');
  39610. + if (p) {
  39611. + *p = '\0'; /* Terminate string for use by q */
  39612. + ++p; /* One past the NULL (or former '/') */
  39613. + }
  39614. + if (*q == '.' && *(q+1) == '\0') {
  39615. + fuse_put_internal_np(f);
  39616. + goto out;
  39617. + }
  39618. + if (*q) { /* ignore consecutive '/'s */
  39619. + node = lookup_node(f, parent_ino, q);
  39620. + if (!node) {
  39621. + fuse_put_internal_np(f);
  39622. + goto out;
  39623. + }
  39624. + parent_ino = node->nodeid;
  39625. + }
  39626. + q = p;
  39627. + }
  39628. + if (node) {
  39629. + node->size = newsize;
  39630. + node->cache_valid = 0;
  39631. + ret = 0;
  39632. + }
  39633. + fuse_put_internal_np(f);
  39634. +
  39635. +out:
  39636. + return ret;
  39637. +}
  39638. +
  39639. +#endif /* __FreeBSD__ >= 10 */
  39640. +
  39641. #ifndef __FreeBSD__
  39642. static struct fuse *fuse_new_common_compat(int fd, const char *opts,
  39643. @@ -3329,12 +3958,14 @@
  39644. 11);
  39645. }
  39646. +#if !(__FreeBSD__ >= 10)
  39647. FUSE_SYMVER(".symver fuse_exited,__fuse_exited@");
  39648. FUSE_SYMVER(".symver fuse_process_cmd,__fuse_process_cmd@");
  39649. FUSE_SYMVER(".symver fuse_read_cmd,__fuse_read_cmd@");
  39650. FUSE_SYMVER(".symver fuse_set_getcontext_func,__fuse_set_getcontext_func@");
  39651. FUSE_SYMVER(".symver fuse_new_compat2,fuse_new@");
  39652. FUSE_SYMVER(".symver fuse_new_compat22,fuse_new@FUSE_2.2");
  39653. +#endif
  39654. #endif /* __FreeBSD__ */
  39655. @@ -3346,4 +3977,6 @@
  39656. op_size, 25);
  39657. }
  39658. +#if !(__FreeBSD__ >= 10)
  39659. FUSE_SYMVER(".symver fuse_new_compat25,fuse_new@FUSE_2.5");
  39660. +#endif
  39661. diff -Naur old/lib/fuse_darwin.c new/lib/fuse_darwin.c
  39662. --- old/lib/fuse_darwin.c 1969-12-31 16:00:00.000000000 -0800
  39663. +++ new/lib/fuse_darwin.c 2008-11-26 22:23:12.000000000 -0800
  39664. @@ -0,0 +1,449 @@
  39665. +/*
  39666. + * Copyright (C) 2006-2008 Google. All Rights Reserved.
  39667. + * Amit Singh <singh@>
  39668. + */
  39669. +
  39670. +#include <errno.h>
  39671. +#include <sys/types.h>
  39672. +#include <unistd.h>
  39673. +#include <pthread.h>
  39674. +
  39675. +#include <fuse_lowlevel.h>
  39676. +#include "fuse_darwin_private.h"
  39677. +
  39678. +/*
  39679. + * Semaphore implementation based on:
  39680. + *
  39681. + * Copyright (C) 2000,02 Free Software Foundation, Inc.
  39682. + * This file is part of the GNU C Library.
  39683. + * Written by Ga<EB>l Le Mignot <address@hidden>
  39684. + *
  39685. + * The GNU C Library is free software; you can redistribute it and/or
  39686. + * modify it under the terms of the GNU Library General Public License as
  39687. + * published by the Free Software Foundation; either version 2 of the
  39688. + * License, or (at your option) any later version.
  39689. + *
  39690. + * The GNU C Library is distributed in the hope that it will be useful,
  39691. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  39692. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  39693. + * Library General Public License for more details.
  39694. + *
  39695. + * You should have received a copy of the GNU Library General Public
  39696. + * License along with the GNU C Library; see the file COPYING.LIB. If not,
  39697. + * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  39698. + * Boston, MA 02111-1307, USA.
  39699. + */
  39700. +
  39701. +#include <assert.h>
  39702. +
  39703. +/* Semaphores */
  39704. +
  39705. +#define __SEM_ID_NONE 0x0
  39706. +#define __SEM_ID_LOCAL 0xcafef00d
  39707. +
  39708. +/* http://www.opengroup.org/onlinepubs/007908799/xsh/sem_init.html */
  39709. +int
  39710. +fuse_sem_init(fuse_sem_t *sem, int pshared, unsigned int value)
  39711. +{
  39712. + if (pshared) {
  39713. + errno = ENOSYS;
  39714. + return -1;
  39715. + }
  39716. +
  39717. + sem->id = __SEM_ID_NONE;
  39718. +
  39719. + if (pthread_cond_init(&sem->__data.local.count_cond, NULL)) {
  39720. + goto cond_init_fail;
  39721. + }
  39722. +
  39723. + if (pthread_mutex_init(&sem->__data.local.count_lock, NULL)) {
  39724. + goto mutex_init_fail;
  39725. + }
  39726. +
  39727. + sem->__data.local.count = value;
  39728. + sem->id = __SEM_ID_LOCAL;
  39729. +
  39730. + return 0;
  39731. +
  39732. +mutex_init_fail:
  39733. +
  39734. + pthread_cond_destroy(&sem->__data.local.count_cond);
  39735. +
  39736. +cond_init_fail:
  39737. +
  39738. + return -1;
  39739. +}
  39740. +
  39741. +/* http://www.opengroup.org/onlinepubs/007908799/xsh/sem_destroy.html */
  39742. +int
  39743. +fuse_sem_destroy(fuse_sem_t *sem)
  39744. +{
  39745. + int res = 0;
  39746. +
  39747. + pthread_mutex_lock(&sem->__data.local.count_lock);
  39748. +
  39749. + sem->id = __SEM_ID_NONE;
  39750. + pthread_cond_broadcast(&sem->__data.local.count_cond);
  39751. +
  39752. + if (pthread_cond_destroy(&sem->__data.local.count_cond)) {
  39753. + res = -1;
  39754. + }
  39755. +
  39756. + pthread_mutex_unlock(&sem->__data.local.count_lock);
  39757. +
  39758. + if (pthread_mutex_destroy(&sem->__data.local.count_lock)) {
  39759. + res = -1;
  39760. + }
  39761. +
  39762. + return res;
  39763. +}
  39764. +
  39765. +int
  39766. +fuse_sem_getvalue(fuse_sem_t *sem, unsigned int *sval)
  39767. +{
  39768. + int res = 0;
  39769. +
  39770. + pthread_mutex_lock(&sem->__data.local.count_lock);
  39771. +
  39772. + if (sem->id != __SEM_ID_LOCAL) {
  39773. + res = -1;
  39774. + errno = EINVAL;
  39775. + } else {
  39776. + *sval = sem->__data.local.count;
  39777. + }
  39778. +
  39779. + pthread_mutex_unlock(&sem->__data.local.count_lock);
  39780. +
  39781. + return res;
  39782. +}
  39783. +
  39784. +/* http://www.opengroup.org/onlinepubs/007908799/xsh/sem_post.html */
  39785. +int
  39786. +fuse_sem_post(fuse_sem_t *sem)
  39787. +{
  39788. + int res = 0;
  39789. +
  39790. + pthread_mutex_lock(&sem->__data.local.count_lock);
  39791. +
  39792. + if (sem->id != __SEM_ID_LOCAL) {
  39793. + res = -1;
  39794. + errno = EINVAL;
  39795. + } else if (sem->__data.local.count < FUSE_SEM_VALUE_MAX) {
  39796. + sem->__data.local.count++;
  39797. + if (sem->__data.local.count == 1) {
  39798. + pthread_cond_signal(&sem->__data.local.count_cond);
  39799. + }
  39800. + } else {
  39801. + errno = ERANGE;
  39802. + res = -1;
  39803. + }
  39804. +
  39805. + pthread_mutex_unlock(&sem->__data.local.count_lock);
  39806. +
  39807. + return res;
  39808. +}
  39809. +
  39810. +/* http://www.opengroup.org/onlinepubs/009695399/functions/sem_timedwait.html */
  39811. +int
  39812. +fuse_sem_timedwait(fuse_sem_t *sem, const struct timespec *abs_timeout)
  39813. +{
  39814. + int res = 0;
  39815. +
  39816. + if (abs_timeout &&
  39817. + (abs_timeout->tv_nsec < 0 || abs_timeout->tv_nsec >= 1000000000)) {
  39818. + errno = EINVAL;
  39819. + return -1;
  39820. + }
  39821. +
  39822. + pthread_cleanup_push((void(*)(void*))&pthread_mutex_unlock,
  39823. + &sem->__data.local.count_lock);
  39824. +
  39825. + pthread_mutex_lock(&sem->__data.local.count_lock);
  39826. +
  39827. + if (sem->id != __SEM_ID_LOCAL) {
  39828. + errno = EINVAL;
  39829. + res = -1;
  39830. + } else {
  39831. + if (!sem->__data.local.count) {
  39832. + res = pthread_cond_timedwait(&sem->__data.local.count_cond,
  39833. + &sem->__data.local.count_lock,
  39834. + abs_timeout);
  39835. + }
  39836. + if (res) {
  39837. + assert(res == ETIMEDOUT);
  39838. + res = -1;
  39839. + errno = ETIMEDOUT;
  39840. + } else if (sem->id != __SEM_ID_LOCAL) {
  39841. + res = -1;
  39842. + errno = EINVAL;
  39843. + } else {
  39844. + sem->__data.local.count--;
  39845. + }
  39846. + }
  39847. +
  39848. + pthread_cleanup_pop(1);
  39849. +
  39850. + return res;
  39851. +}
  39852. +
  39853. +/* http://www.opengroup.org/onlinepubs/007908799/xsh/sem_trywait.html */
  39854. +int
  39855. +fuse_sem_trywait(fuse_sem_t *sem)
  39856. +{
  39857. + int res = 0;
  39858. +
  39859. + pthread_mutex_lock(&sem->__data.local.count_lock);
  39860. +
  39861. + if (sem->id != __SEM_ID_LOCAL) {
  39862. + res = -1;
  39863. + errno = EINVAL;
  39864. + } else if (sem->__data.local.count) {
  39865. + sem->__data.local.count--;
  39866. + } else {
  39867. + res = -1;
  39868. + errno = EAGAIN;
  39869. + }
  39870. +
  39871. + pthread_mutex_unlock (&sem->__data.local.count_lock);
  39872. +
  39873. + return res;
  39874. +}
  39875. +
  39876. +/* http://www.opengroup.org/onlinepubs/007908799/xsh/sem_wait.html */
  39877. +int
  39878. +fuse_sem_wait(fuse_sem_t *sem)
  39879. +{
  39880. + int res = 0;
  39881. +
  39882. + pthread_cleanup_push((void(*)(void*))&pthread_mutex_unlock,
  39883. + &sem->__data.local.count_lock);
  39884. +
  39885. + pthread_mutex_lock(&sem->__data.local.count_lock);
  39886. +
  39887. + if (sem->id != __SEM_ID_LOCAL) {
  39888. + errno = EINVAL;
  39889. + res = -1;
  39890. + } else {
  39891. + while (!sem->__data.local.count) {
  39892. + pthread_cond_wait(&sem->__data.local.count_cond,
  39893. + &sem->__data.local.count_lock);
  39894. + }
  39895. + if (sem->id != __SEM_ID_LOCAL) {
  39896. + res = -1;
  39897. + errno = EINVAL;
  39898. + } else {
  39899. + sem->__data.local.count--;
  39900. + }
  39901. + }
  39902. +
  39903. + pthread_cleanup_pop(1);
  39904. +
  39905. + return res;
  39906. +}
  39907. +
  39908. +/********************/
  39909. +
  39910. +static int
  39911. +schedule_umount(char* mountpoint, struct mount_info* mi, void* arg)
  39912. +{
  39913. + int fd;
  39914. + pid_t pid;
  39915. +
  39916. + fd = mi->fd;
  39917. + pid = fork();
  39918. + if (pid == 0) { /* child */
  39919. + fcntl(fd, F_SETFD, 1); /* close-on-exec */
  39920. + execl("/sbin/umount", "/sbin/umount", mountpoint, NULL);
  39921. + } else {
  39922. + /* We do nothing in the parent. */
  39923. + }
  39924. + return 1; /* Keep processing mountpoints. */
  39925. +}
  39926. +
  39927. +void
  39928. +fuse_exit_handler_internal_np(void)
  39929. +{
  39930. + pthread_mutex_lock(&mount_lock);
  39931. + hash_traverse(mount_hash, (int(*)())schedule_umount, NULL);
  39932. + pthread_mutex_unlock(&mount_lock);
  39933. +}
  39934. +
  39935. +int
  39936. +fuse_remove_signal_handlers_internal_np(void)
  39937. +{
  39938. + int res = 0;
  39939. + pthread_mutex_lock(&mount_lock);
  39940. + if (mount_count > 1) {
  39941. + /* Leave signal handlers up if we have > 1 mouned fs. */
  39942. + res = -1;
  39943. + }
  39944. + pthread_mutex_unlock(&mount_lock);
  39945. + return res;
  39946. +}
  39947. +
  39948. +static int
  39949. +set_fuse_helper(char *mountpoint, struct mount_info *mi, struct mount_info *arg)
  39950. +{
  39951. + if (mi->fd == arg->fd) {
  39952. + mi->fuse = arg->fuse;
  39953. + return 0;
  39954. + }
  39955. + return 1;
  39956. +}
  39957. +
  39958. +static int
  39959. +unset_fuse_helper(char *mountpoint, struct mount_info *mi, struct fuse *f)
  39960. +{
  39961. + if (mi->fuse == f) {
  39962. + mi->fuse = NULL;
  39963. + return 0;
  39964. + }
  39965. + return 1;
  39966. +}
  39967. +
  39968. +void
  39969. +fuse_set_fuse_internal_np(int fd, struct fuse *f)
  39970. +{
  39971. + struct mount_info mi;
  39972. +
  39973. + mi.fd = fd;
  39974. + mi.fuse = f;
  39975. +
  39976. + pthread_mutex_lock(&mount_lock);
  39977. + hash_traverse(mount_hash, (int(*)())set_fuse_helper, &mi);
  39978. + pthread_mutex_unlock(&mount_lock);
  39979. +}
  39980. +
  39981. +void
  39982. +fuse_unset_fuse_internal_np(struct fuse *f)
  39983. +{
  39984. + pthread_mutex_lock(&mount_lock);
  39985. + hash_traverse(mount_hash, (int(*)())unset_fuse_helper, f);
  39986. + pthread_mutex_unlock(&mount_lock);
  39987. +}
  39988. +
  39989. +const char *
  39990. +macfuse_version(void)
  39991. +{
  39992. + return MACFUSE_VERSION;
  39993. +}
  39994. +
  39995. +int
  39996. +fuse_device_fd_np(const char *mountpoint)
  39997. +{
  39998. + int fd = -1;
  39999. + pthread_mutex_lock(&mount_lock);
  40000. + struct mount_info* mi =
  40001. + hash_search(mount_hash, (char *)mountpoint, NULL, NULL);
  40002. + if (mi != NULL) {
  40003. + fd = mi->fd;
  40004. + }
  40005. + pthread_mutex_unlock(&mount_lock);
  40006. + return fd;
  40007. +}
  40008. +
  40009. +/* XXX: <sys/ubc.h> */
  40010. +#define UBC_INVALIDATE 0x04
  40011. +
  40012. +int
  40013. +fuse_purge_np(const char *mountpoint, const char *path, off_t *newsize)
  40014. +{
  40015. + struct fuse_avfi_ioctl avfi;
  40016. + fuse_ino_t ino = 0;
  40017. + int fd = -1;
  40018. +
  40019. + if (!path) {
  40020. + return EINVAL;
  40021. + }
  40022. +
  40023. + ino = fuse_lookup_inode_internal_np(mountpoint, path);
  40024. + if (ino == 0) { /* invalid */
  40025. + return ENOENT;
  40026. + }
  40027. +
  40028. + fd = fuse_device_fd_np(mountpoint);
  40029. + if (fd < 0) {
  40030. + return ENXIO;
  40031. + }
  40032. +
  40033. + avfi.inode = ino;
  40034. + avfi.cmd = FUSE_AVFI_UBC | FUSE_AVFI_PURGEATTRCACHE;
  40035. + avfi.ubc_flags = UBC_INVALIDATE;
  40036. +
  40037. + if (newsize) {
  40038. + avfi.cmd |= FUSE_AVFI_UBC_SETSIZE;
  40039. + avfi.size = *newsize;
  40040. + }
  40041. +
  40042. + int ret = ioctl(fd, FUSEDEVIOCALTERVNODEFORINODE, (void *)&avfi);
  40043. + if ((ret == 0) && newsize) {
  40044. + ret = fuse_resize_node_internal_np(mountpoint, path, *newsize);;
  40045. + }
  40046. +
  40047. + return ret;
  40048. +}
  40049. +
  40050. +int
  40051. +fuse_knote_np(const char *mountpoint, const char *path, uint32_t note)
  40052. +{
  40053. + struct fuse_avfi_ioctl avfi;
  40054. + fuse_ino_t ino = 0;
  40055. + int fd = -1;
  40056. +
  40057. + if (!path) {
  40058. + return EINVAL;
  40059. + }
  40060. +
  40061. + ino = fuse_lookup_inode_internal_np(mountpoint, path);
  40062. + if (ino == 0) { /* invalid */
  40063. + return ENOENT;
  40064. + }
  40065. +
  40066. + fd = fuse_device_fd_np(mountpoint);
  40067. + if (fd < 0) {
  40068. + return ENXIO;
  40069. + }
  40070. +
  40071. + avfi.inode = ino;
  40072. + avfi.cmd = FUSE_AVFI_KNOTE;
  40073. + avfi.ubc_flags = 0;
  40074. + avfi.note = note;
  40075. + avfi.size = 0;
  40076. +
  40077. + return ioctl(fd, FUSEDEVIOCALTERVNODEFORINODE, (void *)&avfi);
  40078. +}
  40079. +
  40080. +/********************/
  40081. +
  40082. +pthread_mutex_t mount_lock;
  40083. +hash_table *mount_hash;
  40084. +int mount_count;
  40085. +int did_daemonize;
  40086. +
  40087. +static void macfuse_lib_constructor(void) __attribute__((constructor));
  40088. +static void macfuse_lib_destructor(void) __attribute__((destructor));
  40089. +
  40090. +static void
  40091. +macfuse_lib_constructor(void)
  40092. +{
  40093. + pthread_mutex_init(&mount_lock, NULL);
  40094. + mount_hash = hash_create(MACFUSE_NDEVICES);
  40095. + mount_count = 0;
  40096. + did_daemonize = 0;
  40097. +}
  40098. +
  40099. +static void
  40100. +mount_hash_purge_helper(char *key, void *value)
  40101. +{
  40102. + free(key);
  40103. + free(value);
  40104. +}
  40105. +
  40106. +static void
  40107. +macfuse_lib_destructor(void)
  40108. +{
  40109. + hash_purge(mount_hash, mount_hash_purge_helper);
  40110. + free(mount_hash);
  40111. + mount_hash = NULL;
  40112. + mount_count = 0;
  40113. +}
  40114. diff -Naur old/lib/fuse_kern_chan.c new/lib/fuse_kern_chan.c
  40115. --- old/lib/fuse_kern_chan.c 2008-02-19 11:51:25.000000000 -0800
  40116. +++ new/lib/fuse_kern_chan.c 2008-11-26 22:23:12.000000000 -0800
  40117. @@ -75,12 +75,26 @@
  40118. return 0;
  40119. }
  40120. +#if (__FreeBSD__ >= 10)
  40121. +#include "fuse_darwin_private.h"
  40122. +#endif
  40123. +
  40124. static void fuse_kern_chan_destroy(struct fuse_chan *ch)
  40125. {
  40126. +#if (__FreeBSD__ >= 10)
  40127. + int fd = fuse_chan_fd(ch);
  40128. + (void)ioctl(fd, FUSEDEVIOCSETDAEMONDEAD, &fd);
  40129. + close(fd);
  40130. +#else
  40131. close(fuse_chan_fd(ch));
  40132. +#endif
  40133. }
  40134. +#if (__FreeBSD__ >= 10)
  40135. +#define MIN_BUFSIZE ((FUSE_DEFAULT_USERKERNEL_BUFSIZE) + 0x1000)
  40136. +#else
  40137. #define MIN_BUFSIZE 0x21000
  40138. +#endif
  40139. struct fuse_chan *fuse_kern_chan_new(int fd)
  40140. {
  40141. diff -Naur old/lib/fuse_loop_mt.c new/lib/fuse_loop_mt.c
  40142. --- old/lib/fuse_loop_mt.c 2008-02-19 11:51:25.000000000 -0800
  40143. +++ new/lib/fuse_loop_mt.c 2008-11-26 22:23:12.000000000 -0800
  40144. @@ -15,7 +15,12 @@
  40145. #include <string.h>
  40146. #include <unistd.h>
  40147. #include <signal.h>
  40148. +#if (__FreeBSD__ >= 10)
  40149. +#define DARWIN_SEMAPHORE_COMPAT 1
  40150. +#include "fuse_darwin_private.h"
  40151. +#else
  40152. #include <semaphore.h>
  40153. +#endif
  40154. #include <errno.h>
  40155. #include <sys/time.h>
  40156. diff -Naur old/lib/fuse_lowlevel.c new/lib/fuse_lowlevel.c
  40157. --- old/lib/fuse_lowlevel.c 2008-02-19 11:51:26.000000000 -0800
  40158. +++ new/lib/fuse_lowlevel.c 2008-11-26 22:23:12.000000000 -0800
  40159. @@ -78,8 +78,36 @@
  40160. attr->atimensec = ST_ATIM_NSEC(stbuf);
  40161. attr->mtimensec = ST_MTIM_NSEC(stbuf);
  40162. attr->ctimensec = ST_CTIM_NSEC(stbuf);
  40163. +#if (__FreeBSD__ >= 10)
  40164. + attr->flags = stbuf->st_flags;
  40165. +#endif /* __FreeBSD__ >= 10 */
  40166. +
  40167. +}
  40168. +
  40169. +#if (__FreeBSD__ >= 10)
  40170. +
  40171. +static void convert_attr_x(const struct fuse_setattr_in *attr,
  40172. + struct setattr_x *stbuf)
  40173. +{
  40174. + stbuf->mode = attr->mode;
  40175. + stbuf->uid = attr->uid;
  40176. + stbuf->gid = attr->gid;
  40177. + stbuf->size = attr->size;
  40178. + stbuf->acctime.tv_sec = attr->atime;
  40179. + stbuf->modtime.tv_sec = attr->mtime;
  40180. + stbuf->crtime.tv_sec = attr->crtime;
  40181. + stbuf->chgtime.tv_sec = attr->chgtime;
  40182. + stbuf->bkuptime.tv_sec = attr->bkuptime;
  40183. + stbuf->acctime.tv_nsec = attr->atimensec;
  40184. + stbuf->modtime.tv_nsec = attr->mtimensec;
  40185. + stbuf->crtime.tv_nsec = attr->crtimensec;
  40186. + stbuf->chgtime.tv_nsec = attr->chgtimensec;
  40187. + stbuf->bkuptime.tv_nsec = attr->bkuptimensec;
  40188. + stbuf->flags = attr->flags;
  40189. }
  40190. +#endif /* __FreeBSD__ >= 10 */
  40191. +
  40192. static void convert_attr(const struct fuse_setattr_in *attr, struct stat *stbuf)
  40193. {
  40194. stbuf->st_mode = attr->mode;
  40195. @@ -90,6 +118,20 @@
  40196. stbuf->st_mtime = attr->mtime;
  40197. ST_ATIM_NSEC_SET(stbuf, attr->atimensec);
  40198. ST_MTIM_NSEC_SET(stbuf, attr->mtimensec);
  40199. +#if (__FreeBSD__ >= 10)
  40200. +
  40201. + stbuf->st_flags = attr->flags;
  40202. +
  40203. + stbuf->st_ctime = attr->chgtime;
  40204. + stbuf->st_ctimensec = attr->chgtimensec;
  40205. +
  40206. + /* XXX: aaaaaaaaaaaargh */
  40207. + stbuf->st_qspare[0] = attr->bkuptime;
  40208. + stbuf->st_lspare = attr->bkuptimensec;
  40209. + stbuf->st_qspare[1] = attr->crtime;
  40210. + stbuf->st_gen = attr->crtimensec;
  40211. +
  40212. +#endif /* __FreeBSD__ >= 10 */
  40213. }
  40214. static size_t iov_length(const struct iovec *iov, size_t count)
  40215. @@ -315,8 +357,31 @@
  40216. arg->open_flags |= FOPEN_DIRECT_IO;
  40217. if (f->keep_cache)
  40218. arg->open_flags |= FOPEN_KEEP_CACHE;
  40219. +#if (__FreeBSD__ >= 10)
  40220. + if (f->purge_attr)
  40221. + arg->open_flags |= FOPEN_PURGE_ATTR;
  40222. + if (f->purge_ubc)
  40223. + arg->open_flags |= FOPEN_PURGE_UBC;
  40224. +#endif
  40225. }
  40226. +#if (__FreeBSD__ >= 10)
  40227. +
  40228. +int fuse_reply_xtimes(fuse_req_t req, const struct timespec *bkuptime,
  40229. + const struct timespec *crtime)
  40230. +{
  40231. + struct fuse_getxtimes_out arg;
  40232. +
  40233. + arg.bkuptime = bkuptime->tv_sec;
  40234. + arg.bkuptimensec = bkuptime->tv_nsec;
  40235. + arg.crtime = crtime->tv_sec;
  40236. + arg.crtimensec = crtime->tv_nsec;
  40237. +
  40238. + return send_reply_ok(req, &arg, sizeof(arg));
  40239. +}
  40240. +
  40241. +#endif /* __FreeBSD__ >= 10 */
  40242. +
  40243. int fuse_reply_entry(fuse_req_t req, const struct fuse_entry_param *e)
  40244. {
  40245. struct fuse_entry_out arg;
  40246. @@ -470,6 +535,24 @@
  40247. {
  40248. struct fuse_setattr_in *arg = (struct fuse_setattr_in *) inarg;
  40249. +#if (__FreeBSD__ >= 10)
  40250. + if (req->f->op.setattr_x) {
  40251. + struct fuse_file_info *fi = NULL;
  40252. + struct fuse_file_info fi_store;
  40253. + struct setattr_x stbuf;
  40254. + memset(&stbuf, 0, sizeof(stbuf));
  40255. + convert_attr_x(arg, &stbuf);
  40256. + if (arg->valid & FATTR_FH) {
  40257. + arg->valid &= ~FATTR_FH;
  40258. + memset(&fi_store, 0, sizeof(fi_store));
  40259. + fi = &fi_store;
  40260. + fi->fh = arg->fh;
  40261. + fi->fh_old = fi->fh;
  40262. + }
  40263. + stbuf.valid = arg->valid;
  40264. + req->f->op.setattr_x(req, nodeid, &stbuf, arg->valid, fi);
  40265. + } else
  40266. +#endif /* __FreeBSD__ >= 10 */
  40267. if (req->f->op.setattr) {
  40268. struct fuse_file_info *fi = NULL;
  40269. struct fuse_file_info fi_store;
  40270. @@ -571,6 +654,41 @@
  40271. fuse_reply_err(req, ENOSYS);
  40272. }
  40273. +#if (__FreeBSD__ >= 10)
  40274. +
  40275. +static void do_setvolname(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
  40276. +{
  40277. + const char *volname = (const char *)inarg;
  40278. + if (req->f->op.setvolname)
  40279. + req->f->op.setvolname(req, volname);
  40280. + else
  40281. + fuse_reply_err(req, ENOSYS);
  40282. +}
  40283. +
  40284. +static void do_exchange(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
  40285. +{
  40286. + struct fuse_exchange_in *arg = (struct fuse_exchange_in *) inarg;
  40287. + char *oldname = PARAM(arg);
  40288. + char *newname = oldname + strlen(oldname) + 1;
  40289. +
  40290. + if (req->f->op.exchange)
  40291. + req->f->op.exchange(req, arg->olddir, oldname, arg->newdir,
  40292. + newname, (unsigned long)(arg->options));
  40293. + else
  40294. + fuse_reply_err(req, ENOSYS);
  40295. +}
  40296. +
  40297. +static void do_getxtimes(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
  40298. +{
  40299. + (void) inarg;
  40300. +
  40301. + if (req->f->op.getxtimes)
  40302. + req->f->op.getxtimes(req, nodeid, NULL);
  40303. + else
  40304. + fuse_reply_err(req, ENOSYS);
  40305. +}
  40306. +#endif /* __FreeBSD__ >= 10 */
  40307. +
  40308. static void do_link(fuse_req_t req, fuse_ino_t nodeid, const void *inarg)
  40309. {
  40310. struct fuse_link_in *arg = (struct fuse_link_in *) inarg;
  40311. @@ -779,7 +897,11 @@
  40312. if (req->f->op.setxattr)
  40313. req->f->op.setxattr(req, nodeid, name, value, arg->size,
  40314. +#if (__FreeBSD__ >= 10)
  40315. + arg->flags, arg->position);
  40316. +#else
  40317. arg->flags);
  40318. +#endif /* __FreeBSD__ >= 10 */
  40319. else
  40320. fuse_reply_err(req, ENOSYS);
  40321. }
  40322. @@ -789,7 +911,11 @@
  40323. struct fuse_getxattr_in *arg = (struct fuse_getxattr_in *) inarg;
  40324. if (req->f->op.getxattr)
  40325. +#if (__FreeBSD__ >= 10)
  40326. + req->f->op.getxattr(req, nodeid, PARAM(arg), arg->size, arg->position);
  40327. +#else
  40328. req->f->op.getxattr(req, nodeid, PARAM(arg), arg->size);
  40329. +#endif /* __FreeBSD__ >= 10 */
  40330. else
  40331. fuse_reply_err(req, ENOSYS);
  40332. }
  40333. @@ -1019,6 +1145,13 @@
  40334. outarg.max_readahead = f->conn.max_readahead;
  40335. outarg.max_write = f->conn.max_write;
  40336. +#if (__FreeBSD__ >= 10)
  40337. + if (f->conn.enable.setvolname)
  40338. + outarg.flags |= FUSE_VOL_RENAME;
  40339. + if (f->conn.enable.xtimes)
  40340. + outarg.flags |= FUSE_XTIMES;
  40341. +#endif /* __FreeBSD__ >= 10 */
  40342. +
  40343. if (f->debug) {
  40344. fprintf(stderr, " INIT: %u.%u\n", outarg.major, outarg.minor);
  40345. fprintf(stderr, " flags=0x%08x\n", outarg.flags);
  40346. @@ -1116,6 +1249,11 @@
  40347. [FUSE_INTERRUPT] = { do_interrupt, "INTERRUPT" },
  40348. [FUSE_BMAP] = { do_bmap, "BMAP" },
  40349. [FUSE_DESTROY] = { do_destroy, "DESTROY" },
  40350. +#if (__FreeBSD__ >= 10)
  40351. + [FUSE_SETVOLNAME] = { do_setvolname, "SETVOLNAME" },
  40352. + [FUSE_EXCHANGE] = { do_exchange, "EXCHANGE" },
  40353. + [FUSE_GETXTIMES] = { do_getxtimes, "GETXTIMES" },
  40354. +#endif /* __FreeBSD__ >= 10 */
  40355. };
  40356. #define FUSE_MAXOP (sizeof(fuse_ll_ops) / sizeof(fuse_ll_ops[0]))
  40357. @@ -1206,8 +1344,13 @@
  40358. static void fuse_ll_version(void)
  40359. {
  40360. +#if (__FreeBSD__ >= 10)
  40361. + fprintf(stderr, "MacFUSE kernel interface version %i.%i\n",
  40362. + FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
  40363. +#else
  40364. fprintf(stderr, "using FUSE kernel interface version %i.%i\n",
  40365. FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
  40366. +#endif
  40367. }
  40368. static void fuse_ll_help(void)
  40369. @@ -1419,9 +1562,11 @@
  40370. return 0;
  40371. }
  40372. +#if !(__FreeBSD__ >= 10)
  40373. FUSE_SYMVER(".symver fuse_reply_statfs_compat,fuse_reply_statfs@FUSE_2.4");
  40374. FUSE_SYMVER(".symver fuse_reply_open_compat,fuse_reply_open@FUSE_2.4");
  40375. FUSE_SYMVER(".symver fuse_lowlevel_new_compat,fuse_lowlevel_new@FUSE_2.4");
  40376. +#endif
  40377. #else /* __FreeBSD__ */
  40378. @@ -1445,4 +1590,6 @@
  40379. op_size, userdata);
  40380. }
  40381. +#if !(__FreeBSD__ >= 10)
  40382. FUSE_SYMVER(".symver fuse_lowlevel_new_compat25,fuse_lowlevel_new@FUSE_2.5");
  40383. +#endif
  40384. diff -Naur old/lib/fuse_mt.c new/lib/fuse_mt.c
  40385. --- old/lib/fuse_mt.c 2008-02-19 11:51:26.000000000 -0800
  40386. +++ new/lib/fuse_mt.c 2008-11-26 22:23:12.000000000 -0800
  40387. @@ -113,4 +113,6 @@
  40388. return fuse_session_loop_mt(fuse_get_session(f));
  40389. }
  40390. +#if !(__FreeBSD__ >= 10)
  40391. FUSE_SYMVER(".symver fuse_loop_mt_proc,__fuse_loop_mt@");
  40392. +#endif
  40393. diff -Naur old/lib/fuse_opt.c new/lib/fuse_opt.c
  40394. --- old/lib/fuse_opt.c 2008-02-19 11:51:26.000000000 -0800
  40395. +++ new/lib/fuse_opt.c 2008-11-26 22:23:12.000000000 -0800
  40396. @@ -382,5 +382,7 @@
  40397. return res;
  40398. }
  40399. +#if !(__FreeBSD__ >= 10)
  40400. /* This symbol version was mistakenly added to the version script */
  40401. FUSE_SYMVER(".symver fuse_opt_insert_arg_compat,fuse_opt_insert_arg@FUSE_2.5");
  40402. +#endif
  40403. diff -Naur old/lib/fuse_session.c new/lib/fuse_session.c
  40404. --- old/lib/fuse_session.c 2008-02-19 11:51:26.000000000 -0800
  40405. +++ new/lib/fuse_session.c 2008-11-26 22:23:12.000000000 -0800
  40406. @@ -16,6 +16,9 @@
  40407. #include <string.h>
  40408. #include <assert.h>
  40409. #include <errno.h>
  40410. +#if (__FreeBSD__ >= 10)
  40411. +#include <sys/param.h>
  40412. +#endif
  40413. struct fuse_session {
  40414. struct fuse_session_ops op;
  40415. diff -Naur old/lib/fuse_signals.c new/lib/fuse_signals.c
  40416. --- old/lib/fuse_signals.c 2008-02-19 11:51:26.000000000 -0800
  40417. +++ new/lib/fuse_signals.c 2008-11-26 22:23:12.000000000 -0800
  40418. @@ -7,18 +7,24 @@
  40419. */
  40420. #include "fuse_lowlevel.h"
  40421. -
  40422. #include <stdio.h>
  40423. #include <string.h>
  40424. #include <signal.h>
  40425. +#if (__FreeBSD__ >= 10)
  40426. +#include "fuse_darwin_private.h"
  40427. +#endif /* __FreeBSD__ >= 10 */
  40428. static struct fuse_session *fuse_instance;
  40429. static void exit_handler(int sig)
  40430. {
  40431. (void) sig;
  40432. +#if (__FreeBSD__ >= 10)
  40433. + fuse_exit_handler_internal_np();
  40434. +#else
  40435. if (fuse_instance)
  40436. fuse_session_exit(fuse_instance);
  40437. +#endif
  40438. }
  40439. static int set_one_signal_handler(int sig, void (*handler)(int))
  40440. @@ -58,12 +64,17 @@
  40441. void fuse_remove_signal_handlers(struct fuse_session *se)
  40442. {
  40443. +#if (__FreeBSD__ >= 10)
  40444. + if (fuse_remove_signal_handlers_internal_np() != 0) {
  40445. + return;
  40446. + }
  40447. +#else
  40448. if (fuse_instance != se)
  40449. fprintf(stderr,
  40450. "fuse: fuse_remove_signal_handlers: unknown session\n");
  40451. else
  40452. fuse_instance = NULL;
  40453. -
  40454. +#endif /* __FreeBSD__ >= 10 */
  40455. set_one_signal_handler(SIGHUP, SIG_DFL);
  40456. set_one_signal_handler(SIGINT, SIG_DFL);
  40457. set_one_signal_handler(SIGTERM, SIG_DFL);
  40458. diff -Naur old/lib/helper.c new/lib/helper.c
  40459. --- old/lib/helper.c 2008-02-19 11:51:27.000000000 -0800
  40460. +++ new/lib/helper.c 2008-11-26 22:23:12.000000000 -0800
  40461. @@ -12,6 +12,9 @@
  40462. #include "fuse_opt.h"
  40463. #include "fuse_lowlevel.h"
  40464. #include "fuse_common_compat.h"
  40465. +#if (__FreeBSD__ >= 10)
  40466. +#include "fuse_darwin_private.h"
  40467. +#endif
  40468. #include <stdio.h>
  40469. #include <stdlib.h>
  40470. @@ -81,7 +84,12 @@
  40471. static void helper_version(void)
  40472. {
  40473. +#if (__FreeBSD__ >= 10)
  40474. + fprintf(stderr, "MacFUSE library version: FUSE %s / MacFUSE %s\n",
  40475. + PACKAGE_VERSION, MACFUSE_VERSION);
  40476. +#else
  40477. fprintf(stderr, "FUSE library version: %s\n", PACKAGE_VERSION);
  40478. +#endif
  40479. }
  40480. static int fuse_helper_opt_proc(void *data, const char *arg, int key,
  40481. @@ -111,6 +119,19 @@
  40482. arg, strerror(errno));
  40483. return -1;
  40484. }
  40485. +#if (__FreeBSD__ >= 10)
  40486. + else {
  40487. + struct stat sb;
  40488. + if (stat(mountpoint, &sb) != 0) {
  40489. + fprintf(stderr, "fuse: failed to stat mount point `%s': %s\n", mountpoint, strerror(errno));
  40490. + return -1;
  40491. + }
  40492. + if ((sb.st_mode & S_IFMT) != S_IFDIR) {
  40493. + fprintf(stderr, "fuse: mount point is not a directory `%s'\n", mountpoint);
  40494. + return -1;
  40495. + }
  40496. + }
  40497. +#endif
  40498. return fuse_opt_add_opt(&hopts->mountpoint, mountpoint);
  40499. } else {
  40500. fprintf(stderr, "fuse: invalid argument `%s'\n", arg);
  40501. @@ -186,6 +207,9 @@
  40502. perror("fuse: failed to daemonize program\n");
  40503. return -1;
  40504. }
  40505. +#if (__FreeBSD__ >= 10)
  40506. + did_daemonize = 1;
  40507. +#endif /* __FreeBSD__ >= 10 */
  40508. }
  40509. return 0;
  40510. }
  40511. @@ -253,6 +277,13 @@
  40512. if (res == -1)
  40513. return NULL;
  40514. +#if (__FreeBSD__ >= 10)
  40515. + if (!*mountpoint) {
  40516. + fprintf(stderr, "no mount point\n");
  40517. + return NULL;
  40518. + }
  40519. +#endif /* __FreeBSD__ >= 10 */
  40520. +
  40521. ch = fuse_mount_common(*mountpoint, &args);
  40522. if (!ch) {
  40523. fuse_opt_free_args(&args);
  40524. @@ -408,11 +439,13 @@
  40525. return fuse_mount_compat22(mountpoint, NULL);
  40526. }
  40527. +#if !(__FreeBSD__ >= 10)
  40528. FUSE_SYMVER(".symver fuse_setup_compat2,__fuse_setup@");
  40529. FUSE_SYMVER(".symver fuse_setup_compat22,fuse_setup@FUSE_2.2");
  40530. FUSE_SYMVER(".symver fuse_teardown,__fuse_teardown@");
  40531. FUSE_SYMVER(".symver fuse_main_compat2,fuse_main@");
  40532. FUSE_SYMVER(".symver fuse_main_real_compat22,fuse_main_real@FUSE_2.2");
  40533. +#endif
  40534. #endif /* __FreeBSD__ */
  40535. @@ -446,7 +479,9 @@
  40536. return fuse_kern_mount(mountpoint, args);
  40537. }
  40538. +#if !(__FreeBSD__ >= 10)
  40539. FUSE_SYMVER(".symver fuse_setup_compat25,fuse_setup@FUSE_2.5");
  40540. FUSE_SYMVER(".symver fuse_teardown_compat22,fuse_teardown@FUSE_2.2");
  40541. FUSE_SYMVER(".symver fuse_main_real_compat25,fuse_main_real@FUSE_2.5");
  40542. FUSE_SYMVER(".symver fuse_mount_compat25,fuse_mount@FUSE_2.5");
  40543. +#endif
  40544. diff -Naur old/lib/modules/iconv.c new/lib/modules/iconv.c
  40545. --- old/lib/modules/iconv.c 2007-12-12 06:25:40.000000000 -0800
  40546. +++ new/lib/modules/iconv.c 2008-11-26 22:23:12.000000000 -0800
  40547. @@ -267,6 +267,40 @@
  40548. return err;
  40549. }
  40550. +#if (__FreeBSD__ >= 10)
  40551. +
  40552. +static int iconv_setvolname(const char *volname)
  40553. +{
  40554. + struct iconv *ic = iconv_get();
  40555. + char *newvolname;
  40556. + int err = iconv_convpath(ic, volname, &newvolname, 0);
  40557. + if (!err) {
  40558. + err = fuse_fs_setvolname(ic->next, newvolname);
  40559. + free(newvolname);
  40560. + }
  40561. + return err;
  40562. +}
  40563. +
  40564. +static int iconv_exchange(const char *path1, const char *path2,
  40565. + unsigned long options)
  40566. +{
  40567. + struct iconv *ic = iconv_get();
  40568. + char *new1;
  40569. + char *new2;
  40570. + int err = iconv_convpath(ic, path1, &new1, 0);
  40571. + if (!err) {
  40572. + err = iconv_convpath(ic, path2, &new2, 0);
  40573. + if (!err) {
  40574. + err = fuse_fs_exchange(ic->next, new1, new2, options);
  40575. + free(new1);
  40576. + }
  40577. + free(new2);
  40578. + }
  40579. + return err;
  40580. +}
  40581. +
  40582. +#endif /* __FreeBSD__ >= 10 */
  40583. +
  40584. static int iconv_rename(const char *from, const char *to)
  40585. {
  40586. struct iconv *ic = iconv_get();
  40587. @@ -301,6 +335,95 @@
  40588. return err;
  40589. }
  40590. +#if (__FreeBSD__ >= 10)
  40591. +static int iconv_setattr_x(const char *path, struct setattr_x *attr)
  40592. +{
  40593. + struct iconv *ic = iconv_get();
  40594. + char *newpath;
  40595. + int err = iconv_convpath(ic, path, &newpath, 0);
  40596. + if (!err) {
  40597. + err = fuse_fs_setattr_x(ic->next, newpath, attr);
  40598. + free(newpath);
  40599. + }
  40600. + return err;
  40601. +}
  40602. +
  40603. +static int iconv_fsetattr_x(const char *path, struct setattr_x *attr,
  40604. + struct fuse_file_info *fi)
  40605. +{
  40606. + struct iconv *ic = iconv_get();
  40607. + char *newpath;
  40608. + int err = iconv_convpath(ic, path, &newpath, 0);
  40609. + if (!err) {
  40610. + err = fuse_fs_fsetattr_x(ic->next, newpath, attr, fi);
  40611. + free(newpath);
  40612. + }
  40613. + return err;
  40614. +}
  40615. +
  40616. +static int iconv_chflags(const char *path, uint32_t flags)
  40617. +{
  40618. + struct iconv *ic = iconv_get();
  40619. + char *newpath;
  40620. + int err = iconv_convpath(ic, path, &newpath, 0);
  40621. + if (!err) {
  40622. + err = fuse_fs_chflags(ic->next, newpath, flags);
  40623. + free(newpath);
  40624. + }
  40625. + return err;
  40626. +}
  40627. +
  40628. +static int iconv_getxtimes(const char *path, struct timespec *bkuptime,
  40629. + struct timespec *crtime)
  40630. +{
  40631. + struct iconv *ic = iconv_get();
  40632. + char *newpath;
  40633. + int err = iconv_convpath(ic, path, &newpath, 0);
  40634. + if (!err) {
  40635. + err = fuse_fs_getxtimes(ic->next, newpath, bkuptime, crtime);
  40636. + free(newpath);
  40637. + }
  40638. + return err;
  40639. +}
  40640. +
  40641. +static int iconv_setbkuptime(const char *path, const struct timespec *bkuptime)
  40642. +{
  40643. + struct iconv *ic = iconv_get();
  40644. + char *newpath;
  40645. + int err = iconv_convpath(ic, path, &newpath, 0);
  40646. + if (!err) {
  40647. + err = fuse_fs_setbkuptime(ic->next, newpath, bkuptime);
  40648. + free(newpath);
  40649. + }
  40650. + return err;
  40651. +}
  40652. +
  40653. +static int iconv_setchgtime(const char *path, const struct timespec *chgtime)
  40654. +{
  40655. + struct iconv *ic = iconv_get();
  40656. + char *newpath;
  40657. + int err = iconv_convpath(ic, path, &newpath, 0);
  40658. + if (!err) {
  40659. + err = fuse_fs_setchgtime(ic->next, newpath, chgtime);
  40660. + free(newpath);
  40661. + }
  40662. + return err;
  40663. +}
  40664. +
  40665. +static int iconv_setcrtime(const char *path, const struct timespec *crtime)
  40666. +{
  40667. + struct iconv *ic = iconv_get();
  40668. + char *newpath;
  40669. + int err = iconv_convpath(ic, path, &newpath, 0);
  40670. + if (!err) {
  40671. + err = fuse_fs_setcrtime(ic->next, newpath, crtime);
  40672. + free(newpath);
  40673. + }
  40674. + return err;
  40675. +}
  40676. +
  40677. +#endif /* __FreeBSD__ >= 10 */
  40678. +
  40679. static int iconv_chmod(const char *path, mode_t mode)
  40680. {
  40681. struct iconv *ic = iconv_get();
  40682. @@ -476,27 +599,43 @@
  40683. }
  40684. static int iconv_setxattr(const char *path, const char *name,
  40685. +#if (__FreeBSD__ >= 10)
  40686. + const char *value, size_t size, int flags, uint32_t position)
  40687. +#else
  40688. const char *value, size_t size, int flags)
  40689. +#endif
  40690. {
  40691. struct iconv *ic = iconv_get();
  40692. char *newpath;
  40693. int err = iconv_convpath(ic, path, &newpath, 0);
  40694. if (!err) {
  40695. err = fuse_fs_setxattr(ic->next, newpath, name, value, size,
  40696. +#if (__FreeBSD__ >= 10)
  40697. + flags, position);
  40698. +#else
  40699. flags);
  40700. +#endif
  40701. free(newpath);
  40702. }
  40703. return err;
  40704. }
  40705. static int iconv_getxattr(const char *path, const char *name, char *value,
  40706. +#if (__FreeBSD__ >= 10)
  40707. + size_t size, uint32_t position)
  40708. +#else
  40709. size_t size)
  40710. +#endif
  40711. {
  40712. struct iconv *ic = iconv_get();
  40713. char *newpath;
  40714. int err = iconv_convpath(ic, path, &newpath, 0);
  40715. if (!err) {
  40716. +#if (__FreeBSD__ >= 10)
  40717. + err = fuse_fs_getxattr(ic->next, newpath, name, value, size, position);
  40718. +#else
  40719. err = fuse_fs_getxattr(ic->next, newpath, name, value, size);
  40720. +#endif
  40721. free(newpath);
  40722. }
  40723. return err;
  40724. @@ -607,6 +746,17 @@
  40725. .removexattr = iconv_removexattr,
  40726. .lock = iconv_lock,
  40727. .bmap = iconv_bmap,
  40728. +#if (__FreeBSD__ >= 10)
  40729. + .setvolname = iconv_setvolname,
  40730. + .exchange = iconv_exchange,
  40731. + .getxtimes = iconv_getxtimes,
  40732. + .setbkuptime = iconv_setbkuptime,
  40733. + .setchgtime = iconv_setchgtime,
  40734. + .setcrtime = iconv_setcrtime,
  40735. + .chflags = iconv_chflags,
  40736. + .setattr_x = iconv_setattr_x,
  40737. + .fsetattr_x = iconv_fsetattr_x,
  40738. +#endif
  40739. };
  40740. static struct fuse_opt iconv_opts[] = {
  40741. diff -Naur old/lib/modules/subdir.c new/lib/modules/subdir.c
  40742. --- old/lib/modules/subdir.c 2007-12-12 06:25:40.000000000 -0800
  40743. +++ new/lib/modules/subdir.c 2008-11-26 22:23:12.000000000 -0800
  40744. @@ -256,6 +256,29 @@
  40745. return err;
  40746. }
  40747. +#if (__FreeBSD__ >= 10)
  40748. +
  40749. +static int subdir_setvolname(const char *volname)
  40750. +{
  40751. + return fuse_fs_setvolname(subdir_get()->next, volname);
  40752. +}
  40753. +
  40754. +static int subdir_exchange(const char *path1, const char *path2,
  40755. + unsigned long options)
  40756. +{
  40757. + struct subdir *d = subdir_get();
  40758. + char *new1 = subdir_addpath(d, path1);
  40759. + char *new2 = subdir_addpath(d, path2);
  40760. + int err = -ENOMEM;
  40761. + if (new1 && new2)
  40762. + err = fuse_fs_exchange(d->next, new1, new2, options);
  40763. + free(new1);
  40764. + free(new2);
  40765. + return err;
  40766. +}
  40767. +
  40768. +#endif /* __FreeBSD__ >= 10 */
  40769. +
  40770. static int subdir_rename(const char *from, const char *to)
  40771. {
  40772. struct subdir *d = subdir_get();
  40773. @@ -282,6 +305,94 @@
  40774. return err;
  40775. }
  40776. +#if (__FreeBSD__ >= 10)
  40777. +static int subdir_setattr_x(const char *path, struct setattr_x *attr)
  40778. +{
  40779. + struct subdir *d = subdir_get();
  40780. + char *newpath = subdir_addpath(d, path);
  40781. + int err = -ENOMEM;
  40782. + if (newpath) {
  40783. + err = fuse_fs_setattr_x(d->next, newpath, attr);
  40784. + free(newpath);
  40785. + }
  40786. + return err;
  40787. +}
  40788. +
  40789. +static int subdir_fsetattr_x(const char *path, struct setattr_x *attr,
  40790. + struct fuse_file_info *fi)
  40791. +{
  40792. + struct subdir *d = subdir_get();
  40793. + char *newpath = subdir_addpath(d, path);
  40794. + int err = -ENOMEM;
  40795. + if (newpath) {
  40796. + err = fuse_fs_fsetattr_x(d->next, newpath, attr, fi);
  40797. + free(newpath);
  40798. + }
  40799. + return err;
  40800. +}
  40801. +
  40802. +static int subdir_chflags(const char *path, uint32_t flags)
  40803. +{
  40804. + struct subdir *d = subdir_get();
  40805. + char *newpath = subdir_addpath(d, path);
  40806. + int err = -ENOMEM;
  40807. + if (newpath) {
  40808. + err = fuse_fs_chflags(d->next, newpath, flags);
  40809. + free(newpath);
  40810. + }
  40811. + return err;
  40812. +}
  40813. +
  40814. +static int subdir_getxtimes(const char *path, struct timespec *bkuptime,
  40815. + struct timespec *crtime)
  40816. +{
  40817. + struct subdir *d = subdir_get();
  40818. + char *newpath = subdir_addpath(d, path);
  40819. + int err = -ENOMEM;
  40820. + if (newpath) {
  40821. + err = fuse_fs_getxtimes(d->next, newpath, bkuptime, crtime);
  40822. + free(newpath);
  40823. + }
  40824. + return err;
  40825. +}
  40826. +
  40827. +static int subdir_setbkuptime(const char *path, const struct timespec *bkuptime)
  40828. +{
  40829. + struct subdir *d = subdir_get();
  40830. + char *newpath = subdir_addpath(d, path);
  40831. + int err = -ENOMEM;
  40832. + if (newpath) {
  40833. + err = fuse_fs_setbkuptime(d->next, newpath, bkuptime);
  40834. + free(newpath);
  40835. + }
  40836. + return err;
  40837. +}
  40838. +
  40839. +static int subdir_setchgtime(const char *path, const struct timespec *chgtime)
  40840. +{
  40841. + struct subdir *d = subdir_get();
  40842. + char *newpath = subdir_addpath(d, path);
  40843. + int err = -ENOMEM;
  40844. + if (newpath) {
  40845. + err = fuse_fs_setchgtime(d->next, newpath, chgtime);
  40846. + free(newpath);
  40847. + }
  40848. + return err;
  40849. +}
  40850. +
  40851. +static int subdir_setcrtime(const char *path, const struct timespec *crtime)
  40852. +{
  40853. + struct subdir *d = subdir_get();
  40854. + char *newpath = subdir_addpath(d, path);
  40855. + int err = -ENOMEM;
  40856. + if (newpath) {
  40857. + err = fuse_fs_setcrtime(d->next, newpath, crtime);
  40858. + free(newpath);
  40859. + }
  40860. + return err;
  40861. +}
  40862. +#endif /* __FreeBSD__ >= 10 */
  40863. +
  40864. static int subdir_chmod(const char *path, mode_t mode)
  40865. {
  40866. struct subdir *d = subdir_get();
  40867. @@ -457,27 +568,43 @@
  40868. }
  40869. static int subdir_setxattr(const char *path, const char *name,
  40870. +#if (__FreeBSD__ >= 10)
  40871. + const char *value, size_t size, int flags, uint32_t position)
  40872. +#else
  40873. const char *value, size_t size, int flags)
  40874. +#endif
  40875. {
  40876. struct subdir *d = subdir_get();
  40877. char *newpath = subdir_addpath(d, path);
  40878. int err = -ENOMEM;
  40879. if (newpath) {
  40880. err = fuse_fs_setxattr(d->next, newpath, name, value, size,
  40881. +#if (__FreeBSD__ >= 10)
  40882. + flags, position);
  40883. +#else
  40884. flags);
  40885. +#endif
  40886. free(newpath);
  40887. }
  40888. return err;
  40889. }
  40890. static int subdir_getxattr(const char *path, const char *name, char *value,
  40891. +#if (__FreeBSD__ >= 10)
  40892. + size_t size, uint32_t position)
  40893. +#else
  40894. size_t size)
  40895. +#endif
  40896. {
  40897. struct subdir *d = subdir_get();
  40898. char *newpath = subdir_addpath(d, path);
  40899. int err = -ENOMEM;
  40900. if (newpath) {
  40901. +#if (__FreeBSD__ >= 10)
  40902. + err = fuse_fs_getxattr(d->next, newpath, name, value, size, position);
  40903. +#else
  40904. err = fuse_fs_getxattr(d->next, newpath, name, value, size);
  40905. +#endif
  40906. free(newpath);
  40907. }
  40908. return err;
  40909. @@ -584,6 +711,17 @@
  40910. .removexattr = subdir_removexattr,
  40911. .lock = subdir_lock,
  40912. .bmap = subdir_bmap,
  40913. +#if (__FreeBSD__ >= 10)
  40914. + .setvolname = subdir_setvolname,
  40915. + .exchange = subdir_exchange,
  40916. + .getxtimes = subdir_getxtimes,
  40917. + .setbkuptime = subdir_setbkuptime,
  40918. + .setchgtime = subdir_setchgtime,
  40919. + .setcrtime = subdir_setcrtime,
  40920. + .chflags = subdir_chflags,
  40921. + .setattr_x = subdir_setattr_x,
  40922. + .fsetattr_x = subdir_fsetattr_x,
  40923. +#endif /* __FreeBSD__ >= 10 */
  40924. };
  40925. static struct fuse_opt subdir_opts[] = {
  40926. diff -Naur old/lib/modules/volicon.c new/lib/modules/volicon.c
  40927. --- old/lib/modules/volicon.c 1969-12-31 16:00:00.000000000 -0800
  40928. +++ new/lib/modules/volicon.c 2008-11-26 22:23:12.000000000 -0800
  40929. @@ -0,0 +1,859 @@
  40930. +/*
  40931. + * Custom volume icon support for MacFUSE.
  40932. + *
  40933. + * - Made into a libfuse stack module by Andrew de los Reyes <adlr@google>
  40934. + * - Original "volicon" code by Amit Singh <singh@>
  40935. + *
  40936. + * This program can be distributed under the terms of the GNU LGPL.
  40937. + * See the file COPYING.LIB for details.
  40938. + */
  40939. +
  40940. +#define FUSE_USE_VERSION 26
  40941. +
  40942. +#undef _POSIX_C_SOURCE
  40943. +#include <sys/types.h>
  40944. +#define _POSIX_C_SOURCE 200112L
  40945. +#include <sys/attr.h>
  40946. +#include <sys/vnode.h>
  40947. +#include <fuse.h>
  40948. +#include <libgen.h>
  40949. +#include <stdio.h>
  40950. +#include <stdlib.h>
  40951. +#include <stddef.h>
  40952. +#include <string.h>
  40953. +#include <unistd.h>
  40954. +#include <errno.h>
  40955. +
  40956. +#include <crt_externs.h>
  40957. +#include "fuse_darwin.h"
  40958. +
  40959. +#define VOLICON_DOTUDOT_MAGIC_PATH "/._."
  40960. +#define VOLICON_ICON_MAGIC_PATH "/.VolumeIcon.icns"
  40961. +#define VOLICON_ICON_MAXSIZE (1024 * 1024)
  40962. +
  40963. +#define VOLICON_CREATOR 0x46555345 /* FUSE */
  40964. +#define VOLICON_TYPE_ROOT 0x524f4f54 /* ROOT */
  40965. +
  40966. +static int FinderInfoSet(const char *path, uint32_t *type, uint32_t *creator);
  40967. +static int FinderInfoGet(const char *path, uint32_t *type, uint32_t *creator);
  40968. +
  40969. +static const char dotudot_data[] = {
  40970. + 0x00, 0x05, 0x16, 0x07, 0x00, 0x02, 0x00, 0x00,
  40971. + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  40972. + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  40973. + 0x00, 0x02, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00,
  40974. + 0x00, 0x32, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00,
  40975. + 0x00, 0x02, 0x00, 0x00, 0x00, 0x52, 0x00, 0x00,
  40976. + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  40977. + 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00,
  40978. + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  40979. + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  40980. + 0x00, 0x00
  40981. +};
  40982. +#define DOTUDOT_DATA_LEN (sizeof(dotudot_data)/sizeof(dotudot_data[0]))
  40983. +
  40984. +struct volicon {
  40985. + struct fuse_fs *next;
  40986. +
  40987. + char *volicon;
  40988. + char *volicon_data;
  40989. + off_t volicon_size;
  40990. + uid_t volicon_uid;
  40991. + const char *mntpath;
  40992. +};
  40993. +
  40994. +static struct volicon *
  40995. +volicon_get(void)
  40996. +{
  40997. + return fuse_get_context()->private_data;
  40998. +}
  40999. +
  41000. +static __inline__ int
  41001. +volicon_is_icon_magic_file(const char *path)
  41002. +{
  41003. + return (!strcmp(path, VOLICON_ICON_MAGIC_PATH));
  41004. +}
  41005. +
  41006. +static __inline__ int
  41007. +volicon_is_dotudot_magic_file(const char *path)
  41008. +{
  41009. + return (!strcmp(path, VOLICON_DOTUDOT_MAGIC_PATH));
  41010. +}
  41011. +
  41012. +#define volicon_is_a_magic_file(p) volicon_is_icon_magic_file(p)
  41013. +
  41014. +#define ERROR_IF_MAGIC_FILE(path, e) \
  41015. + if (volicon_is_a_magic_file(path)) { \
  41016. + return -e; \
  41017. + }
  41018. +
  41019. +/*
  41020. + * FUSE API Operations
  41021. + * Listed in the same order as in struct fuse_operations in <fuse.h>
  41022. + */
  41023. +
  41024. +static int
  41025. +volicon_getattr(const char *path, struct stat *buf)
  41026. +{
  41027. + int res = 0;
  41028. +
  41029. + if (volicon_is_icon_magic_file(path)) {
  41030. +
  41031. + memset((void *)buf, 0, sizeof(struct stat));
  41032. +
  41033. + buf->st_mode = S_IFREG | 0444;
  41034. + buf->st_nlink = 1;
  41035. + buf->st_uid = volicon_get()->volicon_uid;
  41036. + buf->st_gid = 0;
  41037. + buf->st_size = volicon_get()->volicon_size;
  41038. + buf->st_atime = buf->st_ctime = buf->st_mtime = time(NULL);
  41039. +
  41040. + } else {
  41041. + res = fuse_fs_getattr(volicon_get()->next, path, buf);
  41042. + }
  41043. +
  41044. + return res;
  41045. +}
  41046. +
  41047. +static int
  41048. +volicon_readlink(const char *path, char *buf, size_t size)
  41049. +{
  41050. + ERROR_IF_MAGIC_FILE(path, EINVAL);
  41051. +
  41052. + return fuse_fs_readlink(volicon_get()->next, path, buf, size);
  41053. +}
  41054. +
  41055. +static int
  41056. +volicon_mknod(const char *path, mode_t mode, dev_t rdev)
  41057. +{
  41058. + ERROR_IF_MAGIC_FILE(path, EEXIST);
  41059. +
  41060. + return fuse_fs_mknod(volicon_get()->next, path, mode, rdev);
  41061. +}
  41062. +
  41063. +static int
  41064. +volicon_mkdir(const char *path, mode_t mode)
  41065. +{
  41066. + ERROR_IF_MAGIC_FILE(path, EEXIST);
  41067. +
  41068. + return fuse_fs_mkdir(volicon_get()->next, path, mode);
  41069. +}
  41070. +
  41071. +static int
  41072. +volicon_unlink(const char *path)
  41073. +{
  41074. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41075. +
  41076. + return fuse_fs_unlink(volicon_get()->next, path);
  41077. +}
  41078. +
  41079. +static int
  41080. +volicon_rmdir(const char *path)
  41081. +{
  41082. + ERROR_IF_MAGIC_FILE(path, ENOTDIR);
  41083. +
  41084. + return fuse_fs_rmdir(volicon_get()->next, path);
  41085. +}
  41086. +
  41087. +static int
  41088. +volicon_symlink(const char *from, const char *path)
  41089. +{
  41090. + ERROR_IF_MAGIC_FILE(path, EEXIST);
  41091. +
  41092. + return fuse_fs_symlink(volicon_get()->next, from, path);
  41093. +}
  41094. +
  41095. +static int volicon_setvolname(const char *volname)
  41096. +{
  41097. + return fuse_fs_setvolname(volicon_get()->next, volname);
  41098. +}
  41099. +
  41100. +static int volicon_exchange(const char *path1, const char *path2,
  41101. + unsigned long options)
  41102. +{
  41103. + ERROR_IF_MAGIC_FILE(path1, EACCES);
  41104. + ERROR_IF_MAGIC_FILE(path2, EACCES);
  41105. +
  41106. + return fuse_fs_exchange(volicon_get()->next, path1, path2, options);
  41107. +}
  41108. +
  41109. +static int volicon_rename(const char *from, const char *to)
  41110. +{
  41111. + ERROR_IF_MAGIC_FILE(from, EACCES);
  41112. + ERROR_IF_MAGIC_FILE(to, EACCES);
  41113. +
  41114. + return fuse_fs_rename(volicon_get()->next, from, to);
  41115. +}
  41116. +
  41117. +static int
  41118. +volicon_link(const char *from, const char *to)
  41119. +{
  41120. + ERROR_IF_MAGIC_FILE(from, EACCES);
  41121. + ERROR_IF_MAGIC_FILE(to, EACCES);
  41122. +
  41123. + return fuse_fs_link(volicon_get()->next, from, to);
  41124. +}
  41125. +
  41126. +static int
  41127. +volicon_setattr_x(const char *path, struct setattr_x *attr)
  41128. +{
  41129. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41130. +
  41131. + return fuse_fs_setattr_x(volicon_get()->next, path, attr);
  41132. +}
  41133. +
  41134. +static int
  41135. +volicon_fsetattr_x(const char *path, struct setattr_x *attr,
  41136. + struct fuse_file_info *fi)
  41137. +{
  41138. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41139. +
  41140. + return fuse_fs_fsetattr_x(volicon_get()->next, path, attr, fi);
  41141. +}
  41142. +
  41143. +static int
  41144. +volicon_chflags(const char *path, uint32_t flags)
  41145. +{
  41146. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41147. +
  41148. + return fuse_fs_chflags(volicon_get()->next, path, flags);
  41149. +}
  41150. +
  41151. +static int
  41152. +volicon_getxtimes(const char *path, struct timespec *bkuptime,
  41153. + struct timespec *crtime)
  41154. +{
  41155. + if (volicon_is_a_magic_file(path)) {
  41156. + bkuptime->tv_sec = 0;
  41157. + bkuptime->tv_nsec = 0;
  41158. + crtime->tv_sec = 0;
  41159. + crtime->tv_nsec = 0;
  41160. + return 0;
  41161. + }
  41162. +
  41163. + return fuse_fs_getxtimes(volicon_get()->next, path, bkuptime, crtime);
  41164. +}
  41165. +
  41166. +static int
  41167. +volicon_setbkuptime(const char *path, const struct timespec *bkuptime)
  41168. +{
  41169. + ERROR_IF_MAGIC_FILE(path, EPERM);
  41170. +
  41171. + return fuse_fs_setbkuptime(volicon_get()->next, path, bkuptime);
  41172. +}
  41173. +
  41174. +static int
  41175. +volicon_setchgtime(const char *path, const struct timespec *chgtime)
  41176. +{
  41177. + ERROR_IF_MAGIC_FILE(path, EPERM);
  41178. +
  41179. + return fuse_fs_setchgtime(volicon_get()->next, path, chgtime);
  41180. +}
  41181. +
  41182. +static int
  41183. +volicon_setcrtime(const char *path, const struct timespec *crtime)
  41184. +{
  41185. + ERROR_IF_MAGIC_FILE(path, EPERM);
  41186. +
  41187. + return fuse_fs_setcrtime(volicon_get()->next, path, crtime);
  41188. +}
  41189. +
  41190. +static int
  41191. +volicon_chmod(const char *path, mode_t mode)
  41192. +{
  41193. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41194. +
  41195. + return fuse_fs_chmod(volicon_get()->next, path, mode);
  41196. +}
  41197. +
  41198. +static int
  41199. +volicon_chown(const char *path, uid_t uid, gid_t gid)
  41200. +{
  41201. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41202. +
  41203. + return fuse_fs_chown(volicon_get()->next, path, uid, gid);
  41204. +}
  41205. +
  41206. +static int
  41207. +volicon_truncate(const char *path, off_t size)
  41208. +{
  41209. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41210. +
  41211. + return fuse_fs_truncate(volicon_get()->next, path, size);
  41212. +}
  41213. +
  41214. +static int
  41215. +volicon_open(const char *path, struct fuse_file_info *fi)
  41216. +{
  41217. + if (volicon_is_a_magic_file(path)) {
  41218. + if (fi && ((fi->flags & O_ACCMODE) != O_RDONLY)) {
  41219. + return -EACCES;
  41220. + }
  41221. +
  41222. + return 0;
  41223. + }
  41224. +
  41225. + return fuse_fs_open(volicon_get()->next, path, fi);
  41226. +}
  41227. +
  41228. +static int
  41229. +volicon_read(const char *path, char *buf, size_t size, off_t off,
  41230. + struct fuse_file_info *fi)
  41231. +{
  41232. + int res = 0;
  41233. +
  41234. + if (volicon_is_icon_magic_file(path)) {
  41235. + size_t a_size = size;
  41236. + if (off < volicon_get()->volicon_size) {
  41237. + if ((off + size) > volicon_get()->volicon_size) {
  41238. + a_size = volicon_get()->volicon_size - off;
  41239. + }
  41240. + memcpy(buf, (char *)(volicon_get()->volicon_data) + off, a_size);
  41241. + res = a_size;
  41242. + }
  41243. + } else {
  41244. + res = fuse_fs_read(volicon_get()->next, path, buf, size, off, fi);
  41245. + }
  41246. +
  41247. + return res;
  41248. +}
  41249. +
  41250. +static int
  41251. +volicon_write(const char *path, const char *buf, size_t size, off_t off,
  41252. + struct fuse_file_info *fi)
  41253. +{
  41254. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41255. +
  41256. + return fuse_fs_write(volicon_get()->next, path, buf, size, off, fi);
  41257. +}
  41258. +
  41259. +static int
  41260. +volicon_statfs(const char *path, struct statvfs *stbuf)
  41261. +{
  41262. + if (volicon_is_a_magic_file(path)) {
  41263. + return fuse_fs_statfs(volicon_get()->next, "/", stbuf);
  41264. + }
  41265. +
  41266. + return fuse_fs_statfs(volicon_get()->next, path, stbuf);
  41267. +}
  41268. +
  41269. +static int
  41270. +volicon_flush(const char *path, struct fuse_file_info *fi)
  41271. +{
  41272. + ERROR_IF_MAGIC_FILE(path, 0);
  41273. +
  41274. + return fuse_fs_flush(volicon_get()->next, path, fi);
  41275. +}
  41276. +
  41277. +static int
  41278. +volicon_release(const char *path, struct fuse_file_info *fi)
  41279. +{
  41280. + ERROR_IF_MAGIC_FILE(path, 0);
  41281. +
  41282. + return fuse_fs_release(volicon_get()->next, path, fi);
  41283. +}
  41284. +
  41285. +static int
  41286. +volicon_fsync(const char *path, int isdatasync,
  41287. + struct fuse_file_info *fi)
  41288. +{
  41289. + ERROR_IF_MAGIC_FILE(path, 0);
  41290. +
  41291. + return fuse_fs_fsync(volicon_get()->next, path, isdatasync, fi);
  41292. +}
  41293. +
  41294. +static int
  41295. +volicon_setxattr(const char *path, const char *name, const char *value,
  41296. + size_t size, int flags, uint32_t position)
  41297. +{
  41298. + ERROR_IF_MAGIC_FILE(path, EPERM);
  41299. +
  41300. + return fuse_fs_setxattr(volicon_get()->next, path, name, value, size,
  41301. + flags, position);
  41302. +}
  41303. +
  41304. +static int
  41305. +volicon_getxattr(const char *path, const char *name, char *value, size_t size,
  41306. + uint32_t position)
  41307. +{
  41308. + ERROR_IF_MAGIC_FILE(path, EPERM);
  41309. +
  41310. + return fuse_fs_getxattr(volicon_get()->next, path, name, value, size,
  41311. + position);
  41312. +}
  41313. +
  41314. +static int
  41315. +volicon_listxattr(const char *path, char *list, size_t size)
  41316. +{
  41317. + ERROR_IF_MAGIC_FILE(path, EPERM);
  41318. +
  41319. + return fuse_fs_listxattr(volicon_get()->next, path, list, size);
  41320. +}
  41321. +
  41322. +static int
  41323. +volicon_removexattr(const char *path, const char *name)
  41324. +{
  41325. + ERROR_IF_MAGIC_FILE(path, EPERM);
  41326. +
  41327. + return fuse_fs_removexattr(volicon_get()->next, path, name);
  41328. +}
  41329. +
  41330. +static int
  41331. +volicon_opendir(const char *path, struct fuse_file_info *fi)
  41332. +{
  41333. + ERROR_IF_MAGIC_FILE(path, ENOTDIR);
  41334. +
  41335. + return fuse_fs_opendir(volicon_get()->next, path, fi);
  41336. +}
  41337. +
  41338. +static int
  41339. +volicon_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
  41340. + off_t offset, struct fuse_file_info *fi)
  41341. +{
  41342. + ERROR_IF_MAGIC_FILE(path, ENOTDIR);
  41343. +
  41344. + return fuse_fs_readdir(volicon_get()->next, path, buf, filler, offset, fi);
  41345. +}
  41346. +
  41347. +static int
  41348. +volicon_releasedir(const char *path, struct fuse_file_info *fi)
  41349. +{
  41350. + ERROR_IF_MAGIC_FILE(path, ENOTDIR);
  41351. +
  41352. + return fuse_fs_releasedir(volicon_get()->next, path, fi);
  41353. +}
  41354. +
  41355. +static int
  41356. +volicon_fsyncdir(const char *path, int isdatasync, struct fuse_file_info *fi)
  41357. +{
  41358. + ERROR_IF_MAGIC_FILE(path, ENOTDIR);
  41359. +
  41360. + return fuse_fs_fsyncdir(volicon_get()->next, path, isdatasync, fi);
  41361. +}
  41362. +
  41363. +static void *
  41364. +volicon_init(struct fuse_conn_info *conn)
  41365. +{
  41366. + struct volicon *d = volicon_get();
  41367. +
  41368. + fuse_fs_init(d->next, conn);
  41369. +
  41370. + return d;
  41371. +}
  41372. +
  41373. +static void
  41374. +volicon_destroy(void *data)
  41375. +{
  41376. + struct volicon *d = data;
  41377. +
  41378. + fuse_fs_destroy(d->next);
  41379. +
  41380. + {
  41381. + int ret;
  41382. + size_t len;
  41383. + char *p1, *p2;
  41384. + char dot_path[MAXPATHLEN + 1];
  41385. + uint32_t type, creator;
  41386. +
  41387. + if (!d->volicon) {
  41388. + return;
  41389. + }
  41390. +
  41391. + len = strlen(d->mntpath) + 2;
  41392. + p1 = dirname(d->mntpath);
  41393. + p2 = basename(d->mntpath);
  41394. + if (!p1 || !p2 || (len > MAXPATHLEN)) {
  41395. + return;
  41396. + }
  41397. +
  41398. + ret = snprintf(dot_path, MAXPATHLEN + 1, "%s/._%s", p1, p2);
  41399. + if (ret != len) {
  41400. + return;
  41401. + }
  41402. +
  41403. + ret = FinderInfoGet(dot_path, &type, &creator);
  41404. + if (ret) {
  41405. + return;
  41406. + }
  41407. +
  41408. + if ((creator == 'FUSE') && (type == 'ROOT')) {
  41409. + (void)unlink(dot_path);
  41410. + }
  41411. + }
  41412. +
  41413. + free(d->volicon);
  41414. + free(d->volicon_data);
  41415. +
  41416. + /* free(d->mntpath); */
  41417. +
  41418. + free(d);
  41419. +
  41420. + return;
  41421. +}
  41422. +
  41423. +static int
  41424. +volicon_access(const char *path, int mask)
  41425. +{
  41426. + if (volicon_is_a_magic_file(path)) {
  41427. + if ((mask & W_OK) || (mask & X_OK)) {
  41428. + return -EACCES;
  41429. + }
  41430. +
  41431. + return 0;
  41432. + }
  41433. +
  41434. + return fuse_fs_access(volicon_get()->next, path, mask);
  41435. +}
  41436. +
  41437. +static int
  41438. +volicon_create(const char *path, mode_t mode, struct fuse_file_info *fi)
  41439. +{
  41440. + ERROR_IF_MAGIC_FILE(path, EEXIST);
  41441. +
  41442. + return fuse_fs_create(volicon_get()->next, path, mode, fi);
  41443. +}
  41444. +
  41445. +static int
  41446. +volicon_ftruncate(const char *path, off_t size, struct fuse_file_info *fi)
  41447. +{
  41448. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41449. +
  41450. + return fuse_fs_ftruncate(volicon_get()->next, path, size, fi);
  41451. +}
  41452. +
  41453. +static int
  41454. +volicon_fgetattr(const char *path, struct stat *buf, struct fuse_file_info *fi)
  41455. +{
  41456. + int res = 0;
  41457. +
  41458. + if (volicon_is_icon_magic_file(path)) {
  41459. +
  41460. + memset((void *)buf, 0, sizeof(struct stat));
  41461. +
  41462. + buf->st_mode = S_IFREG | 0444;
  41463. + buf->st_nlink = 1;
  41464. + buf->st_uid = volicon_get()->volicon_uid;
  41465. + buf->st_gid = 0;
  41466. + buf->st_size = volicon_get()->volicon_size;
  41467. + buf->st_atime = buf->st_ctime = buf->st_mtime = time(NULL);
  41468. +
  41469. + } else {
  41470. + res = fuse_fs_fgetattr(volicon_get()->next, path, buf, fi);
  41471. + }
  41472. +
  41473. + return res;
  41474. +}
  41475. +
  41476. +static int
  41477. +volicon_lock(const char *path, struct fuse_file_info *fi, int cmd,
  41478. + struct flock *lock)
  41479. +{
  41480. + ERROR_IF_MAGIC_FILE(path, ENOTSUP);
  41481. +
  41482. + return fuse_fs_lock(volicon_get()->next, path, fi, cmd, lock);
  41483. +}
  41484. +
  41485. +static int
  41486. +volicon_utimens(const char *path, const struct timespec ts[2])
  41487. +{
  41488. + ERROR_IF_MAGIC_FILE(path, EACCES);
  41489. +
  41490. + return fuse_fs_utimens(volicon_get()->next, path, ts);
  41491. +}
  41492. +
  41493. +static int
  41494. +volicon_bmap(const char *path, size_t blocksize, uint64_t *idx)
  41495. +{
  41496. + ERROR_IF_MAGIC_FILE(path, ENOTSUP);
  41497. +
  41498. + return fuse_fs_bmap(volicon_get()->next, path, blocksize, idx);
  41499. +}
  41500. +
  41501. +/*
  41502. + * Listed in the same order as in struct fuse_operations in <fuse.h>
  41503. + */
  41504. +static struct fuse_operations volicon_oper = {
  41505. + .getattr = volicon_getattr,
  41506. + .readlink = volicon_readlink,
  41507. + .mknod = volicon_mknod,
  41508. + .mkdir = volicon_mkdir,
  41509. + .unlink = volicon_unlink,
  41510. + .rmdir = volicon_rmdir,
  41511. + .symlink = volicon_symlink,
  41512. + .rename = volicon_rename,
  41513. + .link = volicon_link,
  41514. + .chmod = volicon_chmod,
  41515. + .chown = volicon_chown,
  41516. + .truncate = volicon_truncate,
  41517. + .open = volicon_open,
  41518. + .read = volicon_read,
  41519. + .write = volicon_write,
  41520. + .statfs = volicon_statfs,
  41521. + .flush = volicon_flush,
  41522. + .release = volicon_release,
  41523. + .fsync = volicon_fsync,
  41524. + .setxattr = volicon_setxattr,
  41525. + .getxattr = volicon_getxattr,
  41526. + .listxattr = volicon_listxattr,
  41527. + .removexattr = volicon_removexattr,
  41528. + .opendir = volicon_opendir,
  41529. + .readdir = volicon_readdir,
  41530. + .releasedir = volicon_releasedir,
  41531. + .fsyncdir = volicon_fsyncdir,
  41532. + .init = volicon_init,
  41533. + .destroy = volicon_destroy,
  41534. + .access = volicon_access,
  41535. + .create = volicon_create,
  41536. + .ftruncate = volicon_ftruncate,
  41537. + .fgetattr = volicon_fgetattr,
  41538. + .lock = volicon_lock,
  41539. + .utimens = volicon_utimens,
  41540. + .bmap = volicon_bmap,
  41541. + .setvolname = volicon_setvolname,
  41542. + .exchange = volicon_exchange,
  41543. + .getxtimes = volicon_getxtimes,
  41544. + .setbkuptime = volicon_setbkuptime,
  41545. + .setchgtime = volicon_setchgtime,
  41546. + .setcrtime = volicon_setcrtime,
  41547. + .chflags = volicon_chflags,
  41548. + .setattr_x = volicon_setattr_x,
  41549. + .fsetattr_x = volicon_fsetattr_x,
  41550. +};
  41551. +
  41552. +static struct fuse_opt volicon_opts[] = {
  41553. + FUSE_OPT_KEY("-h", 0),
  41554. + FUSE_OPT_KEY("--help", 0),
  41555. + { "iconpath=%s", offsetof(struct volicon, volicon), 0 },
  41556. + FUSE_OPT_END
  41557. +};
  41558. +
  41559. +static void
  41560. +volicon_help(void)
  41561. +{
  41562. + fprintf(stderr,
  41563. + " -o iconpath=<icon path> display volume with custom icon\n");
  41564. +}
  41565. +
  41566. +static int
  41567. +volicon_opt_proc(void *data, const char *arg, int key,
  41568. + struct fuse_args *outargs)
  41569. +{
  41570. + (void)data;
  41571. + (void)arg;
  41572. + (void)outargs;
  41573. +
  41574. + if (!key) {
  41575. + volicon_help();
  41576. + return -1;
  41577. + }
  41578. +
  41579. + return 1;
  41580. +}
  41581. +
  41582. +typedef struct attrlist attrlist_t;
  41583. +
  41584. +struct FinderInfoAttrBuf {
  41585. + unsigned long length;
  41586. + fsobj_type_t objType;
  41587. + char finderInfo[32];
  41588. +};
  41589. +typedef struct FinderInfoAttrBuf FinderInfoAttrBuf;
  41590. +
  41591. +static struct fuse_fs *
  41592. +volicon_new(struct fuse_args *args, struct fuse_fs *next[])
  41593. +{
  41594. + int ret;
  41595. + int voliconfd = -1;
  41596. + struct stat sb;
  41597. + struct fuse_fs *fs;
  41598. + struct volicon *d;
  41599. +
  41600. + d = calloc(1, sizeof(*d));
  41601. + if (d == NULL) {
  41602. + fprintf(stderr, "volicon: memory allocation failed\n");
  41603. + return NULL;
  41604. + }
  41605. +
  41606. + if (fuse_opt_parse(args, d, volicon_opts, volicon_opt_proc) == -1) {
  41607. + goto out_free;
  41608. + }
  41609. +
  41610. + if (!next[0] || next[1]) {
  41611. + fprintf(stderr, "volicon: exactly one next filesystem required\n");
  41612. + goto out_free;
  41613. + }
  41614. +
  41615. + d->mntpath = fuse_mountpoint_for_fs_np(next[0]);
  41616. + if (!d->mntpath) {
  41617. + goto out_free;
  41618. + }
  41619. +
  41620. + if (!d->volicon) {
  41621. + fprintf(stderr, "volicon: missing 'iconpath' option\n");
  41622. + goto out_free;
  41623. + }
  41624. +
  41625. + voliconfd = open(d->volicon, O_RDONLY);
  41626. + if (voliconfd < 0) {
  41627. + fprintf(stderr, "volicon: failed to access volume icon file (%d)\n",
  41628. + errno);
  41629. + goto out_free;
  41630. + }
  41631. +
  41632. + ret = fstat(voliconfd, &sb);
  41633. + if (ret) {
  41634. + fprintf(stderr, "volicon: failed to stat volume icon file (%d)\n",
  41635. + errno);
  41636. + goto out_free;
  41637. + }
  41638. +
  41639. + if (sb.st_size > (VOLICON_ICON_MAXSIZE)) {
  41640. + fprintf(stderr, "volicon: size limit exceeded for volume icon file\n");
  41641. + goto out_free;
  41642. + }
  41643. +
  41644. + d->volicon_data = malloc(sb.st_size);
  41645. + if (!d->volicon_data) {
  41646. + fprintf(stderr,
  41647. + "volicon: failed to allocate memory for volume icon data\n");
  41648. + goto out_free;
  41649. + }
  41650. +
  41651. + ret = read(voliconfd, d->volicon_data, sb.st_size);
  41652. + if (ret != sb.st_size) {
  41653. + fprintf(stderr, "volicon: failed to read data from volume icon file\n");
  41654. + goto out_free;
  41655. + }
  41656. +
  41657. + close(voliconfd);
  41658. + voliconfd = -1;
  41659. +
  41660. + d->volicon_size = sb.st_size;
  41661. + d->volicon_uid = getuid();
  41662. +
  41663. + {
  41664. + size_t len = strlen(d->mntpath) + 2;
  41665. + char *p1 = dirname(d->mntpath);
  41666. + char *p2 = basename(d->mntpath);
  41667. + char dot_path[MAXPATHLEN + 1];
  41668. + int dot_fd;
  41669. + if (p1 && p2 && (len <= MAXPATHLEN)) {
  41670. + ret = snprintf(dot_path, MAXPATHLEN + 1, "%s/._%s", p1, p2);
  41671. + if (ret == (int)len) {
  41672. + dot_fd = open(dot_path, O_RDWR | O_CREAT | O_EXCL, 0644);
  41673. + if (dot_fd >= 0) {
  41674. + uint32_t creator = VOLICON_CREATOR;
  41675. + uint32_t type = VOLICON_TYPE_ROOT;
  41676. + /* assume no interruption... just best effort */
  41677. + (void)write(dot_fd, dotudot_data, DOTUDOT_DATA_LEN);
  41678. + close(dot_fd);
  41679. + FinderInfoSet(dot_path, &type, &creator);
  41680. + }
  41681. + }
  41682. + }
  41683. + }
  41684. +
  41685. + d->next = next[0];
  41686. +
  41687. + fs = fuse_fs_new(&volicon_oper, sizeof(volicon_oper), d);
  41688. + if (!fs) {
  41689. + goto out_free;
  41690. + }
  41691. +
  41692. + return fs;
  41693. +
  41694. + out_free:
  41695. +
  41696. + if (d->volicon_data) {
  41697. + free(d->volicon_data);
  41698. + }
  41699. +
  41700. + if (voliconfd >= 0) {
  41701. + close(voliconfd);
  41702. + }
  41703. +
  41704. + if (d->volicon) {
  41705. + free(d->volicon);
  41706. + }
  41707. +
  41708. +/*
  41709. + if (d->mntpath) {
  41710. + free(d->mntpath);
  41711. + }
  41712. +*/
  41713. +
  41714. + free(d);
  41715. +
  41716. + return NULL;
  41717. +}
  41718. +
  41719. +static int
  41720. +FinderInfoSet(const char *path, uint32_t *type, uint32_t *creator)
  41721. +{
  41722. + int ret;
  41723. + attrlist_t attrList;
  41724. + FinderInfoAttrBuf attrBuf;
  41725. +
  41726. + attrList.commonattr = ATTR_CMN_FNDRINFO;
  41727. +
  41728. + memset(&attrList, 0, sizeof(attrList));
  41729. + attrList.bitmapcount = ATTR_BIT_MAP_COUNT;
  41730. + attrList.commonattr = ATTR_CMN_OBJTYPE | ATTR_CMN_FNDRINFO;
  41731. +
  41732. + ret = getattrlist(path, &attrList, &attrBuf, sizeof(attrBuf), 0);
  41733. + if (ret != 0) {
  41734. + return errno;
  41735. + }
  41736. +
  41737. + if ((ret == 0) && (attrBuf.objType != VREG) ) {
  41738. + return EINVAL;
  41739. + } else {
  41740. + uint32_t be_type = htonl(*type);
  41741. + uint32_t be_creator = htonl(*creator);
  41742. + memcpy(&attrBuf.finderInfo[0], &be_type, sizeof(uint32_t));
  41743. + memcpy(&attrBuf.finderInfo[4], &be_creator, sizeof(uint32_t));
  41744. + attrList.commonattr = ATTR_CMN_FNDRINFO;
  41745. + ret = setattrlist(path, &attrList, attrBuf.finderInfo,
  41746. + sizeof(attrBuf.finderInfo), 0);
  41747. + }
  41748. +
  41749. + return ret;
  41750. +}
  41751. +
  41752. +static int
  41753. +FinderInfoGet(const char *path, uint32_t *type, uint32_t *creator)
  41754. +{
  41755. + int ret;
  41756. + attrlist_t attrList;
  41757. + FinderInfoAttrBuf attrBuf;
  41758. +
  41759. + if (!type || !creator) {
  41760. + return EINVAL;
  41761. + }
  41762. +
  41763. + *type = 0;
  41764. + *creator = 0;
  41765. +
  41766. + memset(&attrList, 0, sizeof(attrList));
  41767. + attrList.bitmapcount = ATTR_BIT_MAP_COUNT;
  41768. + attrList.commonattr = ATTR_CMN_OBJTYPE | ATTR_CMN_FNDRINFO;
  41769. +
  41770. + ret = getattrlist(path, &attrList, &attrBuf, sizeof(attrBuf), 0);
  41771. + if (ret != 0) {
  41772. + return errno;
  41773. + }
  41774. +
  41775. + if ((ret == 0) && (attrBuf.objType != VREG) ) {
  41776. + return EINVAL;
  41777. + } else {
  41778. + memcpy(type, &attrBuf.finderInfo[0], sizeof(uint32_t));
  41779. + memcpy(creator, &attrBuf.finderInfo[4], sizeof(uint32_t));
  41780. + }
  41781. +
  41782. + *type = ntohl(*type);
  41783. + *creator = ntohl(*creator);
  41784. +
  41785. + return 0;
  41786. +}
  41787. +
  41788. +FUSE_REGISTER_MODULE(volicon, volicon_new);
  41789. diff -Naur old/lib/mount_darwin.c new/lib/mount_darwin.c
  41790. --- old/lib/mount_darwin.c 1969-12-31 16:00:00.000000000 -0800
  41791. +++ new/lib/mount_darwin.c 2008-11-26 22:23:48.000000000 -0800
  41792. @@ -0,0 +1,824 @@
  41793. +/*
  41794. + * Amit Singh <singh@>
  41795. + *
  41796. + * Derived from mount_bsd.c from the fuse distribution.
  41797. + *
  41798. + * FUSE: Filesystem in Userspace
  41799. + * Copyright (C) 2005-2006 Csaba Henk <csaba.henk@creo.hu>
  41800. + *
  41801. + * This program can be distributed under the terms of the GNU LGPLv2.
  41802. + * See the file COPYING.LIB.
  41803. +*/
  41804. +
  41805. +#undef _POSIX_C_SOURCE
  41806. +#include <sys/types.h>
  41807. +#include <CoreFoundation/CoreFoundation.h>
  41808. +
  41809. +#include "fuse_i.h"
  41810. +#include "fuse_opt.h"
  41811. +
  41812. +#include <sys/stat.h>
  41813. +#include <sys/wait.h>
  41814. +#include <sys/sysctl.h>
  41815. +#include <stdio.h>
  41816. +#include <stdlib.h>
  41817. +#include <unistd.h>
  41818. +#include <stddef.h>
  41819. +#include <fcntl.h>
  41820. +#include <errno.h>
  41821. +#include <string.h>
  41822. +#include <paths.h>
  41823. +
  41824. +#include <sys/utsname.h>
  41825. +
  41826. +#include <sys/param.h>
  41827. +#include <sys/mount.h>
  41828. +#include <AssertMacros.h>
  41829. +
  41830. +#include "fuse_darwin_private.h"
  41831. +
  41832. +static int quiet_mode = 0;
  41833. +
  41834. +static char *
  41835. +getproctitle(pid_t pid, char **title, int *len)
  41836. +{
  41837. + size_t size;
  41838. + int mib[3];
  41839. + int argmax, target_argc;
  41840. + char *target_argv;
  41841. + char *cp;
  41842. +
  41843. + mib[0] = CTL_KERN;
  41844. + mib[1] = KERN_ARGMAX;
  41845. +
  41846. + size = sizeof(argmax);
  41847. + if (sysctl(mib, 2, &argmax, &size, NULL, 0) == -1) {
  41848. + goto failed;
  41849. + }
  41850. +
  41851. + target_argv = (char *)malloc(argmax);
  41852. + if (target_argv == NULL) {
  41853. + goto failed;
  41854. + }
  41855. +
  41856. + mib[0] = CTL_KERN;
  41857. + mib[1] = KERN_PROCARGS2;
  41858. + mib[2] = pid;
  41859. +
  41860. + size = (size_t)argmax;
  41861. + if (sysctl(mib, 3, target_argv, &size, NULL, 0) == -1) {
  41862. + free(target_argv);
  41863. + goto failed;
  41864. + }
  41865. +
  41866. + memcpy(&target_argc, target_argv, sizeof(target_argc));
  41867. + cp = target_argv + sizeof(target_argc);
  41868. +
  41869. + for (; cp < &target_argv[size]; cp++) {
  41870. + if (*cp == '\0') {
  41871. + break;
  41872. + }
  41873. + }
  41874. +
  41875. + if (cp == &target_argv[size]) {
  41876. + free(target_argv);
  41877. + goto failed;
  41878. + }
  41879. +
  41880. + for (; cp < &target_argv[size]; cp++) {
  41881. + if (*cp != '\0') {
  41882. + break;
  41883. + }
  41884. + }
  41885. +
  41886. + if (cp == &target_argv[size]) {
  41887. + free(target_argv);
  41888. + goto failed;
  41889. + }
  41890. +
  41891. + *len = asprintf(title, "%s", basename(cp));
  41892. +
  41893. + free(target_argv);
  41894. + goto out;
  41895. +
  41896. +failed:
  41897. + *title = NULL;
  41898. + *len = 0;
  41899. +
  41900. +out:
  41901. + return *title;
  41902. +}
  41903. +
  41904. +long
  41905. +fuse_os_version_major_np(void)
  41906. +{
  41907. + int ret = 0;
  41908. + long major = 0;
  41909. + char *c = NULL;
  41910. + struct utsname u;
  41911. + size_t oldlen;
  41912. + int mib[2];
  41913. +
  41914. + oldlen = sizeof(u.release);
  41915. +
  41916. + mib[0] = CTL_KERN;
  41917. + mib[1] = KERN_OSRELEASE;
  41918. + ret = sysctl(mib, 2, u.release, &oldlen, NULL, 0);
  41919. + if (ret != 0) {
  41920. + return -1;
  41921. + }
  41922. +
  41923. + c = strchr(u.release, '.');
  41924. + if (c == NULL) {
  41925. + return -1;
  41926. + }
  41927. +
  41928. + *c = '\0';
  41929. +
  41930. + errno = 0;
  41931. + major = strtol(u.release, NULL, 10);
  41932. + if ((errno == EINVAL) || (errno == ERANGE)) {
  41933. + return -1;
  41934. + }
  41935. +
  41936. + return major;
  41937. +}
  41938. +
  41939. +int
  41940. +fuse_running_under_rosetta(void)
  41941. +{
  41942. + int result = 0;
  41943. + int is_native = 1;
  41944. + size_t sz = sizeof(result);
  41945. +
  41946. + int ret = sysctlbyname("sysctl.proc_native", &result, &sz, NULL, (size_t)0);
  41947. + if ((ret == 0) && !result) {
  41948. + is_native = 0;
  41949. + }
  41950. +
  41951. + return !is_native;
  41952. +}
  41953. +
  41954. +static int
  41955. +loadkmod(void)
  41956. +{
  41957. + int result = -1;
  41958. + int pid, terminated_pid;
  41959. + union wait status;
  41960. + long major;
  41961. +
  41962. + major = fuse_os_version_major_np();
  41963. +
  41964. + if (major != 8) { /* not Mac OS X 10.4 */
  41965. + return EINVAL;
  41966. + }
  41967. +
  41968. + pid = fork();
  41969. +
  41970. + if (pid == 0) {
  41971. + result = execl(MACFUSE_LOAD_PROG, MACFUSE_LOAD_PROG, NULL);
  41972. +
  41973. + /* exec failed */
  41974. + goto Return;
  41975. + }
  41976. +
  41977. + require_action(pid != -1, Return, result = errno);
  41978. +
  41979. + while ((terminated_pid = wait4(pid, (int *)&status, 0, NULL)) < 0) {
  41980. + /* retry if EINTR, else break out with error */
  41981. + if (errno != EINTR) {
  41982. + break;
  41983. + }
  41984. + }
  41985. +
  41986. + if ((terminated_pid == pid) && (WIFEXITED(status))) {
  41987. + result = WEXITSTATUS(status);
  41988. + } else {
  41989. + result = -1;
  41990. + }
  41991. +
  41992. +Return:
  41993. + check_noerr_string(result, strerror(errno));
  41994. +
  41995. + return result;
  41996. +}
  41997. +
  41998. +static int
  41999. +post_notification(char *name,
  42000. + char *udata_keys[],
  42001. + char *udata_values[],
  42002. + CFIndex nf_num)
  42003. +{
  42004. + CFIndex i;
  42005. + CFStringRef nf_name = NULL;
  42006. + CFStringRef nf_object = NULL;
  42007. + CFMutableDictionaryRef nf_udata = NULL;
  42008. +
  42009. + CFNotificationCenterRef distributedCenter;
  42010. + CFStringEncoding encoding = kCFStringEncodingUTF8;
  42011. +
  42012. + distributedCenter = CFNotificationCenterGetDistributedCenter();
  42013. +
  42014. + if (!distributedCenter) {
  42015. + return -1;
  42016. + }
  42017. +
  42018. + nf_name = CFStringCreateWithCString(kCFAllocatorDefault, name, encoding);
  42019. +
  42020. + nf_object = CFStringCreateWithCString(kCFAllocatorDefault,
  42021. + LIBFUSE_UNOTIFICATIONS_OBJECT,
  42022. + encoding);
  42023. +
  42024. + nf_udata = CFDictionaryCreateMutable(kCFAllocatorDefault,
  42025. + nf_num,
  42026. + &kCFCopyStringDictionaryKeyCallBacks,
  42027. + &kCFTypeDictionaryValueCallBacks);
  42028. +
  42029. + if (!nf_name || !nf_object || !nf_udata) {
  42030. + goto out;
  42031. + }
  42032. +
  42033. + for (i = 0; i < nf_num; i++) {
  42034. + CFStringRef a_key = CFStringCreateWithCString(kCFAllocatorDefault,
  42035. + udata_keys[i],
  42036. + kCFStringEncodingUTF8);
  42037. + CFStringRef a_value = CFStringCreateWithCString(kCFAllocatorDefault,
  42038. + udata_values[i],
  42039. + kCFStringEncodingUTF8);
  42040. + CFDictionarySetValue(nf_udata, a_key, a_value);
  42041. + CFRelease(a_key);
  42042. + CFRelease(a_value);
  42043. + }
  42044. +
  42045. + CFNotificationCenterPostNotification(distributedCenter,
  42046. + nf_name, nf_object, nf_udata, false);
  42047. +
  42048. +out:
  42049. + if (nf_name) {
  42050. + CFRelease(nf_name);
  42051. + }
  42052. +
  42053. + if (nf_object) {
  42054. + CFRelease(nf_object);
  42055. + }
  42056. +
  42057. + if (nf_udata) {
  42058. + CFRelease(nf_udata);
  42059. + }
  42060. +
  42061. + return 0;
  42062. +}
  42063. +
  42064. +enum {
  42065. + KEY_AUTO_CACHE,
  42066. + KEY_ALLOW_ROOT,
  42067. + KEY_DIO,
  42068. + KEY_HELP,
  42069. + KEY_IGNORED,
  42070. + KEY_KERN,
  42071. + KEY_QUIET,
  42072. + KEY_RO,
  42073. + KEY_VERSION,
  42074. + KEY_VOLICON,
  42075. +};
  42076. +
  42077. +struct mount_opts {
  42078. + int allow_other;
  42079. + int allow_root;
  42080. + int ishelp;
  42081. + char *kernel_opts;
  42082. +};
  42083. +
  42084. +static const struct fuse_opt fuse_mount_opts[] = {
  42085. + { "allow_other", offsetof(struct mount_opts, allow_other), 1 },
  42086. + { "allow_root", offsetof(struct mount_opts, allow_root), 1 },
  42087. + FUSE_OPT_KEY("allow_root", KEY_ALLOW_ROOT),
  42088. + FUSE_OPT_KEY("-r", KEY_RO),
  42089. + FUSE_OPT_KEY("-h", KEY_HELP),
  42090. + FUSE_OPT_KEY("--help", KEY_HELP),
  42091. + FUSE_OPT_KEY("-V", KEY_VERSION),
  42092. + FUSE_OPT_KEY("--version", KEY_VERSION),
  42093. + /* standard FreeBSD mount options */
  42094. + FUSE_OPT_KEY("dev", KEY_KERN),
  42095. + FUSE_OPT_KEY("async", KEY_KERN),
  42096. + FUSE_OPT_KEY("atime", KEY_KERN),
  42097. + FUSE_OPT_KEY("dev", KEY_KERN),
  42098. + FUSE_OPT_KEY("exec", KEY_KERN),
  42099. + FUSE_OPT_KEY("suid", KEY_KERN),
  42100. + FUSE_OPT_KEY("symfollow", KEY_KERN),
  42101. + FUSE_OPT_KEY("rdonly", KEY_KERN),
  42102. + FUSE_OPT_KEY("sync", KEY_KERN),
  42103. + FUSE_OPT_KEY("union", KEY_KERN),
  42104. + FUSE_OPT_KEY("userquota", KEY_KERN),
  42105. + FUSE_OPT_KEY("groupquota", KEY_KERN),
  42106. + FUSE_OPT_KEY("clusterr", KEY_KERN),
  42107. + FUSE_OPT_KEY("clusterw", KEY_KERN),
  42108. + FUSE_OPT_KEY("suiddir", KEY_KERN),
  42109. + FUSE_OPT_KEY("snapshot", KEY_KERN),
  42110. + FUSE_OPT_KEY("multilabel", KEY_KERN),
  42111. + FUSE_OPT_KEY("acls", KEY_KERN),
  42112. + FUSE_OPT_KEY("force", KEY_KERN),
  42113. + FUSE_OPT_KEY("update", KEY_KERN),
  42114. + FUSE_OPT_KEY("ro", KEY_KERN),
  42115. + FUSE_OPT_KEY("rw", KEY_KERN),
  42116. + FUSE_OPT_KEY("auto", KEY_KERN),
  42117. + /* options supported under both Linux and FBSD */
  42118. + FUSE_OPT_KEY("allow_other", KEY_KERN),
  42119. + FUSE_OPT_KEY("default_permissions", KEY_KERN),
  42120. + /* FBSD FUSE specific mount options */
  42121. + FUSE_OPT_KEY("private", KEY_KERN),
  42122. + FUSE_OPT_KEY("neglect_shares", KEY_KERN),
  42123. + FUSE_OPT_KEY("push_symlinks_in", KEY_KERN),
  42124. + /* stock FBSD mountopt parsing routine lets anything be negated... */
  42125. + FUSE_OPT_KEY("nodev", KEY_KERN),
  42126. + FUSE_OPT_KEY("noasync", KEY_KERN),
  42127. + FUSE_OPT_KEY("noatime", KEY_KERN),
  42128. + FUSE_OPT_KEY("nodev", KEY_KERN),
  42129. + FUSE_OPT_KEY("noexec", KEY_KERN),
  42130. + FUSE_OPT_KEY("nosuid", KEY_KERN),
  42131. + FUSE_OPT_KEY("nosymfollow", KEY_KERN),
  42132. + FUSE_OPT_KEY("nordonly", KEY_KERN),
  42133. + FUSE_OPT_KEY("nosync", KEY_KERN),
  42134. + FUSE_OPT_KEY("nounion", KEY_KERN),
  42135. + FUSE_OPT_KEY("nouserquota", KEY_KERN),
  42136. + FUSE_OPT_KEY("nogroupquota", KEY_KERN),
  42137. + FUSE_OPT_KEY("noclusterr", KEY_KERN),
  42138. + FUSE_OPT_KEY("noclusterw", KEY_KERN),
  42139. + FUSE_OPT_KEY("nosuiddir", KEY_KERN),
  42140. + FUSE_OPT_KEY("nosnapshot", KEY_KERN),
  42141. + FUSE_OPT_KEY("nomultilabel", KEY_KERN),
  42142. + FUSE_OPT_KEY("noacls", KEY_KERN),
  42143. + FUSE_OPT_KEY("noforce", KEY_KERN),
  42144. + FUSE_OPT_KEY("noupdate", KEY_KERN),
  42145. + FUSE_OPT_KEY("noro", KEY_KERN),
  42146. + FUSE_OPT_KEY("norw", KEY_KERN),
  42147. + FUSE_OPT_KEY("noauto", KEY_KERN),
  42148. + FUSE_OPT_KEY("noallow_other", KEY_KERN),
  42149. + FUSE_OPT_KEY("nodefault_permissions", KEY_KERN),
  42150. + FUSE_OPT_KEY("noprivate", KEY_KERN),
  42151. + FUSE_OPT_KEY("noneglect_shares", KEY_KERN),
  42152. + FUSE_OPT_KEY("nopush_symlinks_in", KEY_KERN),
  42153. + /* Mac OS X options */
  42154. + FUSE_OPT_KEY("allow_recursion", KEY_KERN),
  42155. + FUSE_OPT_KEY("allow_root", KEY_KERN), /* need to pass this on */
  42156. + FUSE_OPT_KEY("auto_xattr", KEY_KERN),
  42157. + FUSE_OPT_KEY("blocksize=", KEY_KERN),
  42158. + FUSE_OPT_KEY("daemon_timeout=", KEY_KERN),
  42159. + FUSE_OPT_KEY("default_permissions", KEY_KERN),
  42160. + FUSE_OPT_KEY("defer_permissions", KEY_KERN),
  42161. + FUSE_OPT_KEY("direct_io", KEY_DIO),
  42162. + FUSE_OPT_KEY("extended_security", KEY_KERN),
  42163. + FUSE_OPT_KEY("fsid=", KEY_KERN),
  42164. + FUSE_OPT_KEY("fsname=", KEY_KERN),
  42165. + FUSE_OPT_KEY("fssubtype=", KEY_KERN),
  42166. + FUSE_OPT_KEY("fstypename=", KEY_KERN),
  42167. + FUSE_OPT_KEY("init_timeout=", KEY_KERN),
  42168. + FUSE_OPT_KEY("iosize=", KEY_KERN),
  42169. + FUSE_OPT_KEY("jail_symlinks", KEY_KERN),
  42170. + FUSE_OPT_KEY("kill_on_unmount", KEY_KERN),
  42171. + FUSE_OPT_KEY("local", KEY_KERN),
  42172. + FUSE_OPT_KEY("negative_vncache", KEY_KERN),
  42173. + FUSE_OPT_KEY("noalerts", KEY_KERN),
  42174. + FUSE_OPT_KEY("noappledouble", KEY_KERN),
  42175. + FUSE_OPT_KEY("noapplexattr", KEY_KERN),
  42176. + FUSE_OPT_KEY("noattrcache", KEY_KERN),
  42177. + FUSE_OPT_KEY("nobrowse", KEY_KERN),
  42178. + FUSE_OPT_KEY("nolocalcaches", KEY_KERN),
  42179. + FUSE_OPT_KEY("noping_diskarb", KEY_KERN),
  42180. + FUSE_OPT_KEY("noreadahead", KEY_KERN),
  42181. + FUSE_OPT_KEY("nosynconclose", KEY_KERN),
  42182. + FUSE_OPT_KEY("nosyncwrites", KEY_KERN),
  42183. + FUSE_OPT_KEY("noubc", KEY_KERN),
  42184. + FUSE_OPT_KEY("novncache", KEY_KERN),
  42185. + FUSE_OPT_KEY("ping_diskarb", KEY_KERN),
  42186. + FUSE_OPT_KEY("quiet", KEY_QUIET),
  42187. + FUSE_OPT_KEY("sparse", KEY_KERN),
  42188. + FUSE_OPT_KEY("subtype=", KEY_IGNORED),
  42189. + FUSE_OPT_KEY("volicon=", KEY_VOLICON),
  42190. + FUSE_OPT_KEY("volname=", KEY_KERN),
  42191. + FUSE_OPT_END
  42192. +};
  42193. +
  42194. +static void
  42195. +mount_help(void)
  42196. +{
  42197. + system(MACFUSE_MOUNT_PROG " --help");
  42198. + fputc('\n', stderr);
  42199. +}
  42200. +
  42201. +static void
  42202. +mount_version(void)
  42203. +{
  42204. + system(MACFUSE_MOUNT_PROG " --version");
  42205. +}
  42206. +
  42207. +static int
  42208. +fuse_mount_opt_proc(void *data, const char *arg, int key,
  42209. + struct fuse_args *outargs)
  42210. +{
  42211. + struct mount_opts *mo = data;
  42212. +
  42213. + switch (key) {
  42214. +
  42215. + case KEY_AUTO_CACHE:
  42216. + if (fuse_opt_add_opt(&mo->kernel_opts, "auto_cache") == -1 ||
  42217. + fuse_opt_add_arg(outargs, "-outo_cache") == -1)
  42218. + return -1;
  42219. + return 0;
  42220. +
  42221. + case KEY_ALLOW_ROOT:
  42222. + if (fuse_opt_add_opt(&mo->kernel_opts, "allow_other") == -1 ||
  42223. + fuse_opt_add_arg(outargs, "-oallow_root") == -1)
  42224. + return -1;
  42225. + return 0;
  42226. +
  42227. + case KEY_RO:
  42228. + arg = "ro";
  42229. + /* fall through */
  42230. +
  42231. + case KEY_KERN:
  42232. + return fuse_opt_add_opt(&mo->kernel_opts, arg);
  42233. +
  42234. + case KEY_DIO:
  42235. + if (fuse_opt_add_opt(&mo->kernel_opts, "direct_io") == -1 ||
  42236. + (fuse_opt_add_arg(outargs, "-odirect_io") == -1))
  42237. + return -1;
  42238. + return 0;
  42239. +
  42240. + case KEY_IGNORED:
  42241. + return 0;
  42242. +
  42243. + case KEY_QUIET:
  42244. + quiet_mode = 1;
  42245. + return 0;
  42246. +
  42247. + case KEY_VOLICON:
  42248. + {
  42249. + char volicon_arg[MAXPATHLEN + 32];
  42250. + char *volicon_path = strchr(arg, '=');
  42251. + if (!volicon_path) {
  42252. + return -1;
  42253. + }
  42254. + if (snprintf(volicon_arg, sizeof(volicon_arg),
  42255. + "-omodules=volicon,iconpath%s", volicon_path) <= 0) {
  42256. + return -1;
  42257. + }
  42258. + if (fuse_opt_add_arg(outargs, volicon_arg) == -1) {
  42259. + return -1;
  42260. + }
  42261. +
  42262. + return 0;
  42263. + }
  42264. +
  42265. + case KEY_HELP:
  42266. + mount_help();
  42267. + mo->ishelp = 1;
  42268. + break;
  42269. +
  42270. + case KEY_VERSION:
  42271. + mount_version();
  42272. + mo->ishelp = 1;
  42273. + break;
  42274. + }
  42275. + return 1;
  42276. +}
  42277. +
  42278. +static void
  42279. +mount_hash_purge_helper(char *key, void *data)
  42280. +{
  42281. + free(key);
  42282. + free(data);
  42283. +}
  42284. +
  42285. +void
  42286. +fuse_kern_unmount(const char *mountpoint, int fd)
  42287. +{
  42288. + int ret;
  42289. + struct stat sbuf;
  42290. + char dev[128];
  42291. + char resolved_path[PATH_MAX];
  42292. + char *ep, *rp = NULL, *umount_cmd;
  42293. +
  42294. + unsigned int hs_complete = 0;
  42295. +
  42296. + pthread_mutex_lock(&mount_lock);
  42297. + if ((mount_count > 0) && mountpoint) {
  42298. + struct mount_info* mi =
  42299. + hash_search(mount_hash, (char *)mountpoint, NULL, NULL);
  42300. + if (mi) {
  42301. + hash_destroy(mount_hash, (char *)mountpoint,
  42302. + mount_hash_purge_helper);
  42303. + --mount_count;
  42304. + }
  42305. + }
  42306. + pthread_mutex_unlock(&mount_lock);
  42307. +
  42308. + ret = ioctl(fd, FUSEDEVIOCGETHANDSHAKECOMPLETE, &hs_complete);
  42309. + if (ret || !hs_complete) {
  42310. + return;
  42311. + }
  42312. +
  42313. + if (fstat(fd, &sbuf) == -1) {
  42314. + return;
  42315. + }
  42316. +
  42317. + devname_r(sbuf.st_rdev, S_IFCHR, dev, 128);
  42318. +
  42319. + if (strncmp(dev, MACFUSE_DEVICE_BASENAME,
  42320. + sizeof(MACFUSE_DEVICE_BASENAME) - 1)) {
  42321. + return;
  42322. + }
  42323. +
  42324. + strtol(dev + 4, &ep, 10);
  42325. + if (*ep != '\0') {
  42326. + return;
  42327. + }
  42328. +
  42329. + rp = realpath(mountpoint, resolved_path);
  42330. + if (rp) {
  42331. + ret = unmount(resolved_path, 0);
  42332. + }
  42333. +
  42334. + return;
  42335. +}
  42336. +
  42337. +void
  42338. +fuse_unmount_compat22(const char *mountpoint)
  42339. +{
  42340. + char resolved_path[PATH_MAX];
  42341. + char *rp = realpath(mountpoint, resolved_path);
  42342. + if (rp) {
  42343. + (void)unmount(resolved_path, 0);
  42344. + }
  42345. +
  42346. + return;
  42347. +}
  42348. +
  42349. +static int
  42350. +fuse_mount_core(const char *mountpoint, const char *opts)
  42351. +{
  42352. + int fd, pid;
  42353. + int result;
  42354. + char *fdnam, *dev;
  42355. + const char *mountprog = MACFUSE_MOUNT_PROG;
  42356. +
  42357. + if (!mountpoint) {
  42358. + fprintf(stderr, "missing or invalid mount point\n");
  42359. + return -1;
  42360. + }
  42361. +
  42362. + if (fuse_running_under_rosetta()) {
  42363. + fprintf(stderr, "MacFUSE does not work under Rosetta\n");
  42364. + return -1;
  42365. + }
  42366. +
  42367. + signal(SIGCHLD, SIG_DFL); /* So that we can wait4() below. */
  42368. +
  42369. + result = loadkmod();
  42370. + if (result) {
  42371. + CFOptionFlags responseFlags;
  42372. + if (result == EINVAL) {
  42373. + if (!quiet_mode) {
  42374. + CFUserNotificationDisplayNotice(
  42375. + (CFTimeInterval)0,
  42376. + kCFUserNotificationCautionAlertLevel,
  42377. + (CFURLRef)0,
  42378. + (CFURLRef)0,
  42379. + (CFURLRef)0,
  42380. + CFSTR("Operating System Too Old"),
  42381. + CFSTR("The installed MacFUSE version is too new for the operating system. Please downgrade your MacFUSE installation to one that is compatible with the currently running operating system."),
  42382. + CFSTR("OK")
  42383. + );
  42384. + }
  42385. + post_notification(
  42386. + LIBFUSE_UNOTIFICATIONS_NOTIFY_OSISTOOOLD, NULL, NULL, 0);
  42387. + } else if (result == EBUSY) {
  42388. + if (!quiet_mode) {
  42389. + CFUserNotificationDisplayNotice(
  42390. + (CFTimeInterval)0,
  42391. + kCFUserNotificationCautionAlertLevel,
  42392. + (CFURLRef)0,
  42393. + (CFURLRef)0,
  42394. + (CFURLRef)0,
  42395. + CFSTR("MacFUSE Version Mismatch"),
  42396. + CFSTR("MacFUSE has been updated but an incompatible or old version of the MacFUSE kernel extension is already loaded. It failed to unload, possibly because a MacFUSE volume is currently mounted.\n\nPlease eject all MacFUSE volumes and try again, or simply restart the system for changes to take effect."),
  42397. + CFSTR("OK")
  42398. + );
  42399. + }
  42400. + post_notification(LIBFUSE_UNOTIFICATIONS_NOTIFY_VERSIONMISMATCH,
  42401. + NULL, NULL, 0);
  42402. + }
  42403. + fprintf(stderr, "the MacFUSE file system is not available (%d)\n",
  42404. + result);
  42405. + return -1;
  42406. + } else {
  42407. +
  42408. + /* Module loaded, but now need to check for user<->kernel match. */
  42409. +
  42410. + char version[MAXHOSTNAMELEN + 1] = { 0 };
  42411. + size_t version_len = MAXHOSTNAMELEN;
  42412. + size_t version_len_desired = 0;
  42413. +
  42414. + result = sysctlbyname(SYSCTL_MACFUSE_VERSION_NUMBER, version,
  42415. + &version_len, NULL, (size_t)0);
  42416. + if (result == 0) {
  42417. + /* sysctlbyname() includes the trailing '\0' in version_len */
  42418. + version_len_desired = strlen(MACFUSE_VERSION) + 1;
  42419. +
  42420. + if ((version_len != version_len_desired) ||
  42421. + strncmp(MACFUSE_VERSION, version, version_len)) {
  42422. + result = -1;
  42423. + }
  42424. + }
  42425. + }
  42426. +
  42427. + if (result) {
  42428. + if (!quiet_mode) {
  42429. + CFUserNotificationDisplayNotice(
  42430. + (CFTimeInterval)0,
  42431. + kCFUserNotificationCautionAlertLevel,
  42432. + (CFURLRef)0,
  42433. + (CFURLRef)0,
  42434. + (CFURLRef)0,
  42435. + CFSTR("MacFUSE Runtime Version Mismatch"),
  42436. + CFSTR("The MacFUSE library version this program is using is incompatible with the loaded MacFUSE kernel extension."),
  42437. + CFSTR("OK")
  42438. + );
  42439. + }
  42440. + post_notification(LIBFUSE_UNOTIFICATIONS_NOTIFY_RUNTIMEVERSIONMISMATCH,
  42441. + NULL, NULL, 0);
  42442. + fprintf(stderr,
  42443. + "this MacFUSE library version is incompatible with "
  42444. + "the MacFUSE kernel extension\n");
  42445. + return -1;
  42446. + }
  42447. +
  42448. + fdnam = getenv("FUSE_DEV_FD");
  42449. +
  42450. + if (fdnam) {
  42451. +
  42452. + char *ep;
  42453. +
  42454. + fd = strtol(fdnam, &ep, 10);
  42455. +
  42456. + if (*ep != '\0') {
  42457. + fprintf(stderr, "invalid value given in FUSE_DEV_FD\n");
  42458. + return -1;
  42459. + }
  42460. +
  42461. + if (fd < 0)
  42462. + return -1;
  42463. +
  42464. + goto mount;
  42465. + }
  42466. +
  42467. + dev = getenv("FUSE_DEV_NAME");
  42468. +
  42469. + if (dev) {
  42470. + if ((fd = open(dev, O_RDWR)) < 0) {
  42471. + perror("MacFUSE: failed to open device");
  42472. + return -1;
  42473. + }
  42474. + } else {
  42475. + int r, devidx = -1;
  42476. + char devpath[MAXPATHLEN];
  42477. +
  42478. + for (r = 0; r < MACFUSE_NDEVICES; r++) {
  42479. + snprintf(devpath, MAXPATHLEN - 1,
  42480. + _PATH_DEV MACFUSE_DEVICE_BASENAME "%d", r);
  42481. + fd = open(devpath, O_RDWR);
  42482. + if (fd >= 0) {
  42483. + dev = devpath;
  42484. + devidx = r;
  42485. + break;
  42486. + }
  42487. + }
  42488. + if (devidx == -1) {
  42489. + perror("MacFUSE: failed to open device");
  42490. + return -1;
  42491. + }
  42492. + }
  42493. +
  42494. +mount:
  42495. + if (getenv("FUSE_NO_MOUNT") || ! mountpoint)
  42496. + goto out;
  42497. +
  42498. + signal(SIGCHLD, SIG_IGN);
  42499. +
  42500. + pid = fork();
  42501. +
  42502. + if (pid == -1) {
  42503. + perror("MacFUSE: fork() failed");
  42504. + close(fd);
  42505. + return -1;
  42506. + }
  42507. +
  42508. + if (pid == 0) {
  42509. +
  42510. + pid = fork();
  42511. + if (pid == -1) {
  42512. + perror("MacFUSE: fork() failed");
  42513. + close(fd);
  42514. + exit(1);
  42515. + }
  42516. +
  42517. + if (pid == 0) {
  42518. + const char *argv[32];
  42519. + int a = 0;
  42520. +
  42521. + if (! fdnam)
  42522. + asprintf(&fdnam, "%d", fd);
  42523. +
  42524. + argv[a++] = mountprog;
  42525. + if (opts) {
  42526. + argv[a++] = "-o";
  42527. + argv[a++] = opts;
  42528. + }
  42529. + argv[a++] = fdnam;
  42530. + argv[a++] = mountpoint;
  42531. + argv[a++] = NULL;
  42532. +
  42533. + {
  42534. + int len;
  42535. + char *title = NULL;
  42536. + title = getproctitle(getpid(), &title, &len);
  42537. + if (title) {
  42538. + setenv("MOUNT_FUSEFS_DAEMON_PATH", title, 1);
  42539. + free(title);
  42540. + }
  42541. + }
  42542. + execvp(mountprog, (char **) argv);
  42543. + perror("MacFUSE: failed to exec mount program");
  42544. + exit(1);
  42545. + }
  42546. +
  42547. + _exit(0);
  42548. + }
  42549. +
  42550. +out:
  42551. + return fd;
  42552. +}
  42553. +
  42554. +int
  42555. +fuse_kern_mount(const char *mountpoint, struct fuse_args *args)
  42556. +{
  42557. + struct mount_opts mo;
  42558. + int res = -1;
  42559. +
  42560. + memset(&mo, 0, sizeof(mo));
  42561. +
  42562. + /* mount_fusefs should not try to spawn the daemon */
  42563. + setenv("MOUNT_FUSEFS_SAFE", "1", 1);
  42564. +
  42565. + /* to notify mount_fusefs it's called from lib */
  42566. + setenv("MOUNT_FUSEFS_CALL_BY_LIB", "1", 1);
  42567. +
  42568. + if (args &&
  42569. + fuse_opt_parse(args, &mo, fuse_mount_opts, fuse_mount_opt_proc) == -1) {
  42570. + return -1;
  42571. + }
  42572. +
  42573. + if (mo.allow_other && mo.allow_root) {
  42574. + fprintf(stderr,
  42575. + "MacFUSE: allow_other and allow_root are mutually exclusive\n");
  42576. + goto out;
  42577. + }
  42578. +
  42579. + if (mo.ishelp) {
  42580. + res = 0;
  42581. + goto out;
  42582. + }
  42583. +
  42584. + pthread_mutex_lock(&mount_lock);
  42585. + if (hash_search(mount_hash, (char *)mountpoint, NULL, NULL) != NULL) {
  42586. + fprintf(stderr, "MacFUSE: attempt to remount on active mount point: %s",
  42587. + mountpoint);
  42588. + goto out_unlock;
  42589. + }
  42590. + if (did_daemonize && mount_count > 0) {
  42591. + fprintf(stderr, "MacFUSE: attempt to multi-mount after daemonized: %s",
  42592. + mountpoint);
  42593. + goto out_unlock;
  42594. + }
  42595. + struct mount_info *mi = calloc(1, sizeof(struct mount_info));
  42596. + if (!mi) {
  42597. + goto out_unlock;
  42598. + }
  42599. +
  42600. + res = fuse_mount_core(mountpoint, mo.kernel_opts);
  42601. + if (res < 0) {
  42602. + free(mi);
  42603. + } else {
  42604. + mi->fd = res;
  42605. + hash_search(mount_hash, (char *)mountpoint, mi, NULL);
  42606. + ++mount_count;
  42607. + }
  42608. +
  42609. +out_unlock:
  42610. + pthread_mutex_unlock(&mount_lock);
  42611. +
  42612. +out:
  42613. + free(mo.kernel_opts);
  42614. +
  42615. + return res;
  42616. +}
  42617. diff -Naur old/lib/ulockmgr.c new/lib/ulockmgr.c
  42618. --- old/lib/ulockmgr.c 2008-02-19 11:51:27.000000000 -0800
  42619. +++ new/lib/ulockmgr.c 2008-11-26 22:23:12.000000000 -0800
  42620. @@ -18,9 +18,19 @@
  42621. #include <assert.h>
  42622. #include <signal.h>
  42623. #include <sys/stat.h>
  42624. +#if (__FreeBSD__ >= 10)
  42625. +#undef _POSIX_C_SOURCE
  42626. #include <sys/socket.h>
  42627. +#define _POSIX_C_SOURCE 200112L
  42628. +#else
  42629. +#include <sys/socket.h>
  42630. +#endif
  42631. #include <sys/wait.h>
  42632. +#if (__FreeBSD__ >= 10)
  42633. +#define MSG_NOSIGNAL 0
  42634. +#endif
  42635. +
  42636. struct message {
  42637. unsigned intr : 1;
  42638. unsigned nofd : 1;
  42639. @@ -139,6 +149,13 @@
  42640. close(sv[1]);
  42641. return -1;
  42642. }
  42643. +#if (__FreeBSD__ >= 10)
  42644. + {
  42645. + int on = 1;
  42646. + res = setsockopt(ulockmgr_cfd, SOL_SOCKET, SO_NOSIGPIPE,
  42647. + (void *)&on, sizeof(on));
  42648. + }
  42649. +#endif
  42650. ulockmgr_cfd = sv[1];
  42651. return 0;
  42652. }
  42653. diff -Naur old/ltmain.sh new/ltmain.sh
  42654. --- old/ltmain.sh 2005-12-26 13:43:10.000000000 -0800
  42655. +++ new/ltmain.sh 2008-11-26 22:23:12.000000000 -0800
  42656. @@ -1,12 +1,10 @@
  42657. -# Generated from ltmain.m4sh; do not edit by hand
  42658. -
  42659. -# ltmain.sh (GNU libtool 1.2237 2005/12/21 11:40:47) 2.1a
  42660. -# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  42661. -
  42662. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc.
  42663. -# This is free software; see the source for copying conditions. There is NO
  42664. -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  42665. -
  42666. +# ltmain.sh - Provide generalized library-building support services.
  42667. +# NOTE: Changing this file will not affect anything until you rerun configure.
  42668. +#
  42669. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
  42670. +# Free Software Foundation, Inc.
  42671. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  42672. +#
  42673. # This program is free software; you can redistribute it and/or modify
  42674. # it under the terms of the GNU General Public License as published by
  42675. # the Free Software Foundation; either version 2 of the License, or
  42676. @@ -26,209 +24,69 @@
  42677. # configuration script generated by Autoconf, you may include it under
  42678. # the same distribution terms that you use for the rest of that program.
  42679. -# Usage: $progname [OPTION]... [MODE-ARG]...
  42680. -#
  42681. -# Provide generalized library-building support services.
  42682. -#
  42683. -# --config show all configuration variables
  42684. -# --debug enable verbose shell tracing
  42685. -# -n, --dry-run display commands without modifying any files
  42686. -# --features display basic configuration information and exit
  42687. -# --mode=MODE use operation mode MODE
  42688. -# --preserve-dup-deps don't remove duplicate dependency libraries
  42689. -# --quiet, --silent don't print informational messages
  42690. -# --tag=TAG use configuration variables from tag TAG
  42691. -# -v, --verbose print informational messages (default)
  42692. -# --version print version information
  42693. -# -h, --help print short or long help message
  42694. -#
  42695. -# MODE must be one of the following:
  42696. -#
  42697. -# clean remove files from the build directory
  42698. -# compile compile a source file into a libtool object
  42699. -# execute automatically set library path, then run a program
  42700. -# finish complete the installation of libtool libraries
  42701. -# install install libraries or executables
  42702. -# link create a library or an executable
  42703. -# uninstall remove libraries from an installed directory
  42704. -#
  42705. -# MODE-ARGS vary depending on the MODE.
  42706. -# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  42707. -#
  42708. -# When reporting a bug, please describe a test case to reproduce it and
  42709. -# include the following information:
  42710. -#
  42711. -# host-triplet: i486-pc-linux-gnu
  42712. -# shell: $SHELL
  42713. -# compiler: $LTCC
  42714. -# compiler flags: $LTCFLAGS
  42715. -# linker: $LD (gnu? $with_gnu_ld)
  42716. -# $progname: (GNU libtool 1.2237 2005/12/21 11:40:47) 2.1a
  42717. -# automake: $automake_version
  42718. -# autoconf: $autoconf_version
  42719. -#
  42720. -# Report bugs to <bug-libtool@gnu.org>.
  42721. -
  42722. -PROGRAM=ltmain.sh
  42723. -PACKAGE=libtool
  42724. -VERSION="2.1a Debian 1.9+20051221-1"
  42725. -TIMESTAMP=" 1.2237 2005/12/21 11:40:47"
  42726. -package_revision=1.2237
  42727. -
  42728. -## --------------------- ##
  42729. -## M4sh Initialization. ##
  42730. -## --------------------- ##
  42731. -
  42732. -# Be Bourne compatible
  42733. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  42734. - emulate sh
  42735. - NULLCMD=:
  42736. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  42737. - # is contrary to our usage. Disable this feature.
  42738. - alias -g '${1+"$@"}'='"$@"'
  42739. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  42740. - set -o posix
  42741. -fi
  42742. -DUALCASE=1; export DUALCASE # for MKS sh
  42743. -
  42744. -# Support unset when possible.
  42745. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  42746. - as_unset=unset
  42747. -else
  42748. - as_unset=false
  42749. -fi
  42750. -
  42751. -
  42752. -# Work around bugs in pre-3.0 UWIN ksh.
  42753. -$as_unset ENV MAIL MAILPATH
  42754. -PS1='$ '
  42755. -PS2='> '
  42756. -PS4='+ '
  42757. -
  42758. -# NLS nuisances.
  42759. -for as_var in \
  42760. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  42761. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  42762. - LC_TELEPHONE LC_TIME
  42763. -do
  42764. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  42765. - eval $as_var=C; export $as_var
  42766. - else
  42767. - $as_unset $as_var
  42768. - fi
  42769. -done
  42770. -
  42771. -# Required to use basename.
  42772. -if expr a : '\(a\)' >/dev/null 2>&1; then
  42773. - as_expr=expr
  42774. -else
  42775. - as_expr=false
  42776. -fi
  42777. -
  42778. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  42779. - as_basename=basename
  42780. -else
  42781. - as_basename=false
  42782. -fi
  42783. -
  42784. -
  42785. -# Name of the executable.
  42786. -as_me=`$as_basename "$0" ||
  42787. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  42788. - X"$0" : 'X\(//\)$' \| \
  42789. - X"$0" : 'X\(/\)$' \| \
  42790. - . : '\(.\)' 2>/dev/null ||
  42791. -echo X/"$0" |
  42792. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  42793. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  42794. - /^X\/\(\/\).*/{ s//\1/; q; }
  42795. - s/.*/./; q'`
  42796. -
  42797. -
  42798. -$as_unset CDPATH
  42799. -
  42800. +basename="s,^.*/,,g"
  42801. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  42802. +# is ksh but when the shell is invoked as "sh" and the current value of
  42803. +# the _XPG environment variable is not equal to 1 (one), the special
  42804. +# positional parameter $0, within a function call, is the name of the
  42805. +# function.
  42806. +progpath="$0"
  42807. -: ${CP="cp -f"}
  42808. -: ${ECHO="echo"}
  42809. -: ${EGREP="grep -E"}
  42810. -: ${FGREP="grep -F"}
  42811. -: ${GREP="grep"}
  42812. -: ${LN_S="ln -s"}
  42813. -: ${MAKE="make"}
  42814. -: ${MKDIR="mkdir"}
  42815. -: ${MV="mv -f"}
  42816. -: ${RM="rm -f"}
  42817. -: ${SED="/bin/sed"}
  42818. -: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  42819. -: ${Xsed="$SED -e 1s/^X//"}
  42820. +# The name of this program:
  42821. +progname=`echo "$progpath" | $SED $basename`
  42822. +modename="$progname"
  42823. # Global variables:
  42824. EXIT_SUCCESS=0
  42825. EXIT_FAILURE=1
  42826. -EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  42827. -EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  42828. -exit_status=$EXIT_SUCCESS
  42829. +PROGRAM=ltmain.sh
  42830. +PACKAGE=libtool
  42831. +VERSION=1.5.22
  42832. +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
  42833. -# Make sure IFS has a sensible default
  42834. -lt_nl='
  42835. -'
  42836. -IFS=" $lt_nl"
  42837. +# See if we are running on zsh, and set the options which allow our
  42838. +# commands through without removal of \ escapes.
  42839. +if test -n "${ZSH_VERSION+set}" ; then
  42840. + setopt NO_GLOB_SUBST
  42841. +fi
  42842. -dirname="s,/[^/]*$,,"
  42843. -basename="s,^.*/,,"
  42844. +# Check that we have a working $echo.
  42845. +if test "X$1" = X--no-reexec; then
  42846. + # Discard the --no-reexec flag, and continue.
  42847. + shift
  42848. +elif test "X$1" = X--fallback-echo; then
  42849. + # Avoid inline document here, it may be left over
  42850. + :
  42851. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  42852. + # Yippee, $echo works!
  42853. + :
  42854. +else
  42855. + # Restart under the correct shell, and then maybe $echo will work.
  42856. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  42857. +fi
  42858. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  42859. -# is ksh but when the shell is invoked as "sh" and the current value of
  42860. -# the _XPG environment variable is not equal to 1 (one), the special
  42861. -# positional parameter $0, within a function call, is the name of the
  42862. -# function.
  42863. -progpath="$0"
  42864. +if test "X$1" = X--fallback-echo; then
  42865. + # used as fallback echo
  42866. + shift
  42867. + cat <<EOF
  42868. +$*
  42869. +EOF
  42870. + exit $EXIT_SUCCESS
  42871. +fi
  42872. -# The name of this program:
  42873. -# In the unlikely event $progname began with a '-', it would play havoc with
  42874. -# func_echo (imagine progname=-n), so we prepend ./ in that case:
  42875. -progname=`$ECHO "X$progpath" | $Xsed -e "$basename" -e 's,^-,./-,'`
  42876. -
  42877. -# Make sure we have an absolute path for reexecution:
  42878. -case $progpath in
  42879. - [\\/]*|[A-Za-z]:\\*) ;;
  42880. - *[\\/]*)
  42881. - progdir=`$ECHO "X$progpath" | $Xsed -e "$dirname"`
  42882. - progdir=`cd "$progdir" && pwd`
  42883. - progpath="$progdir/$progname"
  42884. - ;;
  42885. - *)
  42886. - save_IFS="$IFS"
  42887. - IFS=:
  42888. - for progdir in $PATH; do
  42889. - IFS="$save_IFS"
  42890. - test -x "$progdir/$progname" && break
  42891. - done
  42892. - IFS="$save_IFS"
  42893. - test -n "$progdir" || progdir=`pwd`
  42894. - progpath="$progdir/$progname"
  42895. - ;;
  42896. -esac
  42897. +default_mode=
  42898. +help="Try \`$progname --help' for more information."
  42899. +magic="%%%MAGIC variable%%%"
  42900. +mkdir="mkdir"
  42901. +mv="mv -f"
  42902. +rm="rm -f"
  42903. # Sed substitution that helps us do robust quoting. It backslashifies
  42904. # metacharacters that are still active within double-quoted strings.
  42905. Xsed="${SED}"' -e 1s/^X//'
  42906. -sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  42907. -
  42908. -# Same as above, but do not quote variable references.
  42909. -double_quote_subst='s/\(["`\\]\)/\\\1/g'
  42910. -
  42911. -# Re-`\' parameter expansions in output of double_quote_subst that were
  42912. -# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  42913. -# in input to double_quote_subst, that '$' was protected from expansion.
  42914. -# Since each input `\' is now two `\'s, look for any number of runs of
  42915. -# four `\'s followed by two `\'s and then a '$'. `\' that '$'. Note
  42916. -# that the embedded single quotes serve only to enhance readability.
  42917. -sed_double_backslash='s/^\(\(''\\\\''\\\\''\)*''\\\\''\)\$/\1\\$/;
  42918. - s/\([^\\]\(''\\\\''\\\\''\)*''\\\\''\)\$/\1\\$/g'
  42919. -
  42920. +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  42921. # test EBCDIC or ASCII
  42922. case `echo X|tr X '\101'` in
  42923. A) # ASCII based system
  42924. @@ -242,117 +100,46 @@
  42925. ;;
  42926. esac
  42927. -# Standard options:
  42928. -opt_dry_run=false
  42929. -opt_help=false
  42930. -opt_quiet=false
  42931. -opt_verbose=false
  42932. -
  42933. -# func_echo arg...
  42934. -# Echo program name prefixed message, along with the current mode
  42935. -# name if it has been set yet.
  42936. -func_echo ()
  42937. -{
  42938. - $ECHO "$progname${mode+: }$mode: "${1+"$@"}
  42939. -}
  42940. -
  42941. -# func_verbose arg...
  42942. -# Echo program name prefixed message in verbose mode only.
  42943. -func_verbose ()
  42944. -{
  42945. - $opt_verbose && func_echo ${1+"$@"}
  42946. -
  42947. - # A bug in bash halts the script if the last line of a function
  42948. - # fails when set -e is in force, so we need another command to
  42949. - # work around that:
  42950. - :
  42951. -}
  42952. -
  42953. -# func_error arg...
  42954. -# Echo program name prefixed message to standard error.
  42955. -func_error ()
  42956. -{
  42957. - $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  42958. -}
  42959. -
  42960. -# func_warning arg...
  42961. -# Echo program name prefixed warning message to standard error.
  42962. -func_warning ()
  42963. -{
  42964. - $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  42965. -}
  42966. -
  42967. -# func_fatal_error arg...
  42968. -# Echo program name prefixed message to standard error, and exit.
  42969. -func_fatal_error ()
  42970. -{
  42971. - func_error ${1+"$@"}
  42972. - exit $EXIT_FAILURE
  42973. -}
  42974. -
  42975. -# func_fatal_help arg...
  42976. -# Echo program name prefixed message to standard error, followed by
  42977. -# a help hint, and exit.
  42978. -func_fatal_help ()
  42979. -{
  42980. - func_error ${1+"$@"}
  42981. - func_fatal_error "$help"
  42982. -}
  42983. -help="Try \`$progname --help' for more information." ## default
  42984. -
  42985. -
  42986. -# func_grep expression filename
  42987. -# Check whether EXPRESSION matches any line of FILENAME, without output.
  42988. -func_grep ()
  42989. -{
  42990. - $GREP "$1" "$2" >/dev/null 2>&1
  42991. -}
  42992. -
  42993. -
  42994. -# func_mkdir_p directory-path
  42995. -# Make sure the entire path to DIRECTORY-PATH is available.
  42996. -func_mkdir_p ()
  42997. -{
  42998. - my_directory_path="$1"
  42999. - my_dir_list=
  43000. -
  43001. - if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  43002. -
  43003. - # Protect directory names starting with `-'
  43004. - case $my_directory_path in
  43005. - -*) my_directory_path="./$my_directory_path" ;;
  43006. - esac
  43007. -
  43008. - # While some portion of DIR does not yet exist...
  43009. - while test ! -d "$my_directory_path"; do
  43010. - # ...make a list in topmost first order. Use a colon delimited
  43011. - # list incase some portion of path contains whitespace.
  43012. - my_dir_list="$my_directory_path:$my_dir_list"
  43013. -
  43014. - # If the last portion added has no slash in it, the list is done
  43015. - case $my_directory_path in */*) ;; *) break ;; esac
  43016. +# NLS nuisances.
  43017. +# Only set LANG and LC_ALL to C if already set.
  43018. +# These must not be set unconditionally because not all systems understand
  43019. +# e.g. LANG=C (notably SCO).
  43020. +# We save the old values to restore during execute mode.
  43021. +if test "${LC_ALL+set}" = set; then
  43022. + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  43023. +fi
  43024. +if test "${LANG+set}" = set; then
  43025. + save_LANG="$LANG"; LANG=C; export LANG
  43026. +fi
  43027. - # ...otherwise throw away the child directory and loop
  43028. - my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  43029. - done
  43030. - my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  43031. +# Make sure IFS has a sensible default
  43032. +lt_nl='
  43033. +'
  43034. +IFS=" $lt_nl"
  43035. - save_mkdir_p_IFS="$IFS"; IFS=':'
  43036. - for my_dir in $my_dir_list; do
  43037. - IFS="$save_mkdir_p_IFS"
  43038. - # mkdir can fail with a `File exist' error if two processes
  43039. - # try to create one of the directories concurrently. Don't
  43040. - # stop in that case!
  43041. - $MKDIR "$my_dir" 2>/dev/null || :
  43042. - done
  43043. - IFS="$save_mkdir_p_IFS"
  43044. +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  43045. + $echo "$modename: not configured to build any kind of library" 1>&2
  43046. + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  43047. + exit $EXIT_FAILURE
  43048. +fi
  43049. - # Bail out if we (or some other process) failed to create a directory.
  43050. - test -d "$my_directory_path" || \
  43051. - func_fatal_error "Failed to create \`$1'"
  43052. - fi
  43053. -}
  43054. +# Global variables.
  43055. +mode=$default_mode
  43056. +nonopt=
  43057. +prev=
  43058. +prevopt=
  43059. +run=
  43060. +show="$echo"
  43061. +show_help=
  43062. +execute_dlfiles=
  43063. +duplicate_deps=no
  43064. +preserve_args=
  43065. +lo2o="s/\\.lo\$/.${objext}/"
  43066. +o2lo="s/\\.${objext}\$/.lo/"
  43067. +#####################################
  43068. +# Shell function definitions:
  43069. +# This seems to be the best place for them
  43070. # func_mktempdir [string]
  43071. # Make a temporary directory that won't clash with other running
  43072. @@ -362,7 +149,7 @@
  43073. {
  43074. my_template="${TMPDIR-/tmp}/${1-$progname}"
  43075. - if test "$opt_dry_run" = ":"; then
  43076. + if test "$run" = ":"; then
  43077. # Return a directory name, but don't create it in dry-run mode
  43078. my_tmpdir="${my_template}-$$"
  43079. else
  43080. @@ -371,3156 +158,1935 @@
  43081. my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  43082. if test ! -d "$my_tmpdir"; then
  43083. - # Failing that, at least try and use $RANDOM to avoid a race
  43084. - my_tmpdir="${my_template}-${RANDOM-0}$$"
  43085. + # Failing that, at least try and use $RANDOM to avoid a race
  43086. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  43087. - save_mktempdir_umask=`umask`
  43088. - umask 0077
  43089. - $MKDIR "$my_tmpdir"
  43090. - umask $save_mktempdir_umask
  43091. + save_mktempdir_umask=`umask`
  43092. + umask 0077
  43093. + $mkdir "$my_tmpdir"
  43094. + umask $save_mktempdir_umask
  43095. fi
  43096. # If we're not in dry-run mode, bomb out on failure
  43097. - test -d "$my_tmpdir" || \
  43098. - func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  43099. + test -d "$my_tmpdir" || {
  43100. + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
  43101. + exit $EXIT_FAILURE
  43102. + }
  43103. fi
  43104. - $ECHO "X$my_tmpdir" | $Xsed
  43105. + $echo "X$my_tmpdir" | $Xsed
  43106. }
  43107. -# func_quote_for_eval arg
  43108. -# Aesthetically quote ARG to be evaled later.
  43109. -# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  43110. -# is double-quoted, suitable for a subsequent eval, whereas
  43111. -# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  43112. -# which are still active within double quotes backslashified.
  43113. -func_quote_for_eval ()
  43114. +# func_win32_libid arg
  43115. +# return the library type of file 'arg'
  43116. +#
  43117. +# Need a lot of goo to handle *both* DLLs and import libs
  43118. +# Has to be a shell function in order to 'eat' the argument
  43119. +# that is supplied when $file_magic_command is called.
  43120. +func_win32_libid ()
  43121. {
  43122. - case $1 in
  43123. - *[\\\`\"\$]*)
  43124. - func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  43125. - *)
  43126. - func_quote_for_eval_unquoted_result="$1" ;;
  43127. - esac
  43128. -
  43129. - case $func_quote_for_eval_unquoted_result in
  43130. - # Double-quote args containing shell metacharacters to delay
  43131. - # word splitting, command substitution and and variable
  43132. - # expansion for a subsequent eval.
  43133. - # Many Bourne shells cannot handle close brackets correctly
  43134. - # in scan sets, so we specify it separately.
  43135. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43136. - func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  43137. - ;;
  43138. - *)
  43139. - func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  43140. + win32_libid_type="unknown"
  43141. + win32_fileres=`file -L $1 2>/dev/null`
  43142. + case $win32_fileres in
  43143. + *ar\ archive\ import\ library*) # definitely import
  43144. + win32_libid_type="x86 archive import"
  43145. + ;;
  43146. + *ar\ archive*) # could be an import, or static
  43147. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  43148. + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  43149. + win32_nmres=`eval $NM -f posix -A $1 | \
  43150. + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  43151. + case $win32_nmres in
  43152. + import*) win32_libid_type="x86 archive import";;
  43153. + *) win32_libid_type="x86 archive static";;
  43154. + esac
  43155. + fi
  43156. + ;;
  43157. + *DLL*)
  43158. + win32_libid_type="x86 DLL"
  43159. + ;;
  43160. + *executable*) # but shell scripts are "executable" too...
  43161. + case $win32_fileres in
  43162. + *MS\ Windows\ PE\ Intel*)
  43163. + win32_libid_type="x86 DLL"
  43164. + ;;
  43165. esac
  43166. + ;;
  43167. + esac
  43168. + $echo $win32_libid_type
  43169. }
  43170. -# func_quote_for_expand arg
  43171. -# Aesthetically quote ARG to be evaled later; same as above,
  43172. -# but do not quote variable references.
  43173. -func_quote_for_expand ()
  43174. +# func_infer_tag arg
  43175. +# Infer tagged configuration to use if any are available and
  43176. +# if one wasn't chosen via the "--tag" command line option.
  43177. +# Only attempt this if the compiler in the base compile
  43178. +# command doesn't match the default compiler.
  43179. +# arg is usually of the form 'gcc ...'
  43180. +func_infer_tag ()
  43181. {
  43182. - case $1 in
  43183. - *[\\\`\"]*)
  43184. - my_arg=`$ECHO "X$1" | $Xsed \
  43185. - -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  43186. - *)
  43187. - my_arg="$1" ;;
  43188. - esac
  43189. + # FreeBSD-specific: where we install compilers with non-standard names
  43190. + tag_compilers_CC="*cc cc* *gcc gcc*"
  43191. + tag_compilers_CXX="*c++ c++* *g++ g++*"
  43192. + base_compiler=`set -- "$@"; echo $1`
  43193. +
  43194. + # If $tagname isn't set, then try to infer if the default "CC" tag applies
  43195. + if test -z "$tagname"; then
  43196. + for zp in $tag_compilers_CC; do
  43197. + case $base_compiler in
  43198. + $zp) tagname="CC"; break;;
  43199. + esac
  43200. + done
  43201. + fi
  43202. - case $my_arg in
  43203. - # Double-quote args containing shell metacharacters to delay
  43204. - # word splitting and command substitution for a subsequent eval.
  43205. - # Many Bourne shells cannot handle close brackets correctly
  43206. - # in scan sets, so we specify it separately.
  43207. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43208. - my_arg="\"$my_arg\""
  43209. - ;;
  43210. - esac
  43211. + if test -n "$available_tags" && test -z "$tagname"; then
  43212. + CC_quoted=
  43213. + for arg in $CC; do
  43214. + case $arg in
  43215. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43216. + arg="\"$arg\""
  43217. + ;;
  43218. + esac
  43219. + CC_quoted="$CC_quoted $arg"
  43220. + done
  43221. + case $@ in
  43222. + # Blanks in the command may have been stripped by the calling shell,
  43223. + # but not from the CC environment variable when configure was run.
  43224. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  43225. + # Blanks at the start of $base_compile will cause this to fail
  43226. + # if we don't check for them as well.
  43227. + *)
  43228. + for z in $available_tags; do
  43229. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  43230. + # Evaluate the configuration.
  43231. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  43232. + CC_quoted=
  43233. + for arg in $CC; do
  43234. + # Double-quote args containing other shell metacharacters.
  43235. + case $arg in
  43236. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43237. + arg="\"$arg\""
  43238. + ;;
  43239. + esac
  43240. + CC_quoted="$CC_quoted $arg"
  43241. + done
  43242. + case "$@ " in
  43243. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  43244. + # The compiler in the base compile command matches
  43245. + # the one in the tagged configuration.
  43246. + # Assume this is the tagged configuration we want.
  43247. + tagname=$z
  43248. + break
  43249. + ;;
  43250. + esac
  43251. - func_quote_for_expand_result="$my_arg"
  43252. + # FreeBSD-specific: try compilers based on inferred tag
  43253. + if test -z "$tagname"; then
  43254. + eval "tag_compilers=\$tag_compilers_${z}"
  43255. + if test -n "$tag_compilers"; then
  43256. + for zp in $tag_compilers; do
  43257. + case $base_compiler in
  43258. + $zp) tagname=$z; break;;
  43259. + esac
  43260. + done
  43261. + if test -n "$tagname"; then
  43262. + break
  43263. + fi
  43264. + fi
  43265. + fi
  43266. + fi
  43267. + done
  43268. + # If $tagname still isn't set, then no tagged configuration
  43269. + # was found and let the user know that the "--tag" command
  43270. + # line option must be used.
  43271. + if test -z "$tagname"; then
  43272. + $echo "$modename: unable to infer tagged configuration"
  43273. + $echo "$modename: specify a tag with \`--tag'" 1>&2
  43274. + exit $EXIT_FAILURE
  43275. +# else
  43276. +# $echo "$modename: using $tagname tagged configuration"
  43277. + fi
  43278. + ;;
  43279. + esac
  43280. + fi
  43281. }
  43282. -# func_show_eval cmd [fail_exp]
  43283. -# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  43284. -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  43285. -# is given, then evaluate it.
  43286. -func_show_eval ()
  43287. +# func_extract_an_archive dir oldlib
  43288. +func_extract_an_archive ()
  43289. {
  43290. - my_cmd="$1"
  43291. - my_fail_exp="${2-:}"
  43292. -
  43293. - ${opt_silent-false} || {
  43294. - func_quote_for_expand "$my_cmd"
  43295. - eval "func_echo $func_quote_for_expand_result"
  43296. - }
  43297. + f_ex_an_ar_dir="$1"; shift
  43298. + f_ex_an_ar_oldlib="$1"
  43299. - if ${opt_dry_run-false}; then :; else
  43300. - eval "$my_cmd"
  43301. - my_status=$?
  43302. - if test "$my_status" -eq 0; then :; else
  43303. - eval "(exit $my_status); $my_fail_exp"
  43304. - fi
  43305. + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
  43306. + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
  43307. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  43308. + :
  43309. + else
  43310. + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
  43311. + exit $EXIT_FAILURE
  43312. fi
  43313. }
  43314. -
  43315. -# func_version
  43316. -# Echo version message to standard output and exit.
  43317. -func_version ()
  43318. +# func_extract_archives gentop oldlib ...
  43319. +func_extract_archives ()
  43320. {
  43321. - $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  43322. - s/^# //; s/^# *$//;
  43323. - s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/;
  43324. - p;
  43325. - }' < "$progpath"
  43326. - exit $?
  43327. -}
  43328. + my_gentop="$1"; shift
  43329. + my_oldlibs=${1+"$@"}
  43330. + my_oldobjs=""
  43331. + my_xlib=""
  43332. + my_xabs=""
  43333. + my_xdir=""
  43334. + my_status=""
  43335. -# func_usage
  43336. -# Echo short help message to standard output and exit.
  43337. -func_usage ()
  43338. -{
  43339. - $SED -n '/^# Usage:/,/# -h/ {
  43340. - s/^# //; s/^# *$//;
  43341. - s/\$progname/'$progname'/;
  43342. - p;
  43343. - }' < "$progpath"
  43344. - $ECHO
  43345. - $ECHO "run \`$progname --help | more' for full usage"
  43346. - exit $?
  43347. -}
  43348. + $show "${rm}r $my_gentop"
  43349. + $run ${rm}r "$my_gentop"
  43350. + $show "$mkdir $my_gentop"
  43351. + $run $mkdir "$my_gentop"
  43352. + my_status=$?
  43353. + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
  43354. + exit $my_status
  43355. + fi
  43356. -# func_help
  43357. -# Echo long help message to standard output and exit.
  43358. -func_help ()
  43359. -{
  43360. - $SED -n '/^# Usage:/,/# Report bugs to/ {
  43361. - s/^# //; s/^# *$//;
  43362. - s*\$progname*'$progname'*;
  43363. - s*\$SHELL*'"$SHELL"'*;
  43364. - s*\$LTCC*'"$LTCC"'*;
  43365. - s*\$LTCFLAGS*'"$LTCFLAGS"'*;
  43366. - s*\$LD*'"$LD"'*;
  43367. - s/\$with_gnu_ld/'"$with_gnu_ld"'/;
  43368. - s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/;
  43369. - s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/;
  43370. - p;
  43371. - }' < "$progpath"
  43372. - exit $?
  43373. -}
  43374. + for my_xlib in $my_oldlibs; do
  43375. + # Extract the objects.
  43376. + case $my_xlib in
  43377. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  43378. + *) my_xabs=`pwd`"/$my_xlib" ;;
  43379. + esac
  43380. + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
  43381. + my_xdir="$my_gentop/$my_xlib"
  43382. -# func_missing_arg argname
  43383. -# Echo program name prefixed message to standard error and set global
  43384. -# exit_cmd.
  43385. -func_missing_arg ()
  43386. -{
  43387. - func_error "missing argument for $1"
  43388. - exit_cmd=exit
  43389. + $show "${rm}r $my_xdir"
  43390. + $run ${rm}r "$my_xdir"
  43391. + $show "$mkdir $my_xdir"
  43392. + $run $mkdir "$my_xdir"
  43393. + exit_status=$?
  43394. + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
  43395. + exit $exit_status
  43396. + fi
  43397. + case $host in
  43398. + *-darwin*)
  43399. + $show "Extracting $my_xabs"
  43400. + # Do not bother doing anything if just a dry run
  43401. + if test -z "$run"; then
  43402. + darwin_orig_dir=`pwd`
  43403. + cd $my_xdir || exit $?
  43404. + darwin_archive=$my_xabs
  43405. + darwin_curdir=`pwd`
  43406. + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
  43407. + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
  43408. + if test -n "$darwin_arches"; then
  43409. + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
  43410. + darwin_arch=
  43411. + $show "$darwin_base_archive has multiple architectures $darwin_arches"
  43412. + for darwin_arch in $darwin_arches ; do
  43413. + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  43414. + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  43415. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  43416. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  43417. + cd "$darwin_curdir"
  43418. + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  43419. + done # $darwin_arches
  43420. + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
  43421. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  43422. + darwin_file=
  43423. + darwin_files=
  43424. + for darwin_file in $darwin_filelist; do
  43425. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  43426. + lipo -create -output "$darwin_file" $darwin_files
  43427. + done # $darwin_filelist
  43428. + ${rm}r unfat-$$
  43429. + cd "$darwin_orig_dir"
  43430. + else
  43431. + cd "$darwin_orig_dir"
  43432. + func_extract_an_archive "$my_xdir" "$my_xabs"
  43433. + fi # $darwin_arches
  43434. + fi # $run
  43435. + ;;
  43436. + *)
  43437. + func_extract_an_archive "$my_xdir" "$my_xabs"
  43438. + ;;
  43439. + esac
  43440. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  43441. + done
  43442. + func_extract_archives_result="$my_oldobjs"
  43443. }
  43444. +# End of Shell function definitions
  43445. +#####################################
  43446. -exit_cmd=:
  43447. -
  43448. +# Darwin sucks
  43449. +eval std_shrext=\"$shrext_cmds\"
  43450. -# Check that we have a working $ECHO.
  43451. -if test "X$1" = X--no-reexec; then
  43452. - # Discard the --no-reexec flag, and continue.
  43453. - shift
  43454. -elif test "X$1" = X--fallback-echo; then
  43455. - # Avoid inline document here, it may be left over
  43456. - :
  43457. -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  43458. - # Yippee, $ECHO works!
  43459. - :
  43460. -else
  43461. - # Restart under the correct shell, and then maybe $ECHO will work.
  43462. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  43463. -fi
  43464. +disable_libs=no
  43465. -if test "X$1" = X--fallback-echo; then
  43466. - # used as fallback echo
  43467. +# Parse our command line options once, thoroughly.
  43468. +while test "$#" -gt 0
  43469. +do
  43470. + arg="$1"
  43471. shift
  43472. - cat <<EOF
  43473. -$*
  43474. -EOF
  43475. - exit $EXIT_SUCCESS
  43476. -fi
  43477. -
  43478. -magic="%%%MAGIC variable%%%"
  43479. + case $arg in
  43480. + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  43481. + *) optarg= ;;
  43482. + esac
  43483. -# Global variables.
  43484. -# $mode is unset
  43485. -nonopt=
  43486. -execute_dlfiles=
  43487. -preserve_args=
  43488. -lo2o="s/\\.lo\$/.${objext}/"
  43489. -o2lo="s/\\.${objext}\$/.lo/"
  43490. -
  43491. -opt_dry_run=false
  43492. -opt_duplicate_deps=false
  43493. -opt_silent=false
  43494. -opt_debug=:
  43495. -
  43496. -# If this variable is set in any of the actions, the command in it
  43497. -# will be execed at the end. This prevents here-documents from being
  43498. -# left over by shells.
  43499. -exec_cmd=
  43500. + # If the previous option needs an argument, assign it.
  43501. + if test -n "$prev"; then
  43502. + case $prev in
  43503. + execute_dlfiles)
  43504. + execute_dlfiles="$execute_dlfiles $arg"
  43505. + ;;
  43506. + tag)
  43507. + tagname="$arg"
  43508. + preserve_args="${preserve_args}=$arg"
  43509. +
  43510. + # Check whether tagname contains only valid characters
  43511. + case $tagname in
  43512. + *[!-_A-Za-z0-9,/]*)
  43513. + $echo "$progname: invalid tag name: $tagname" 1>&2
  43514. + exit $EXIT_FAILURE
  43515. + ;;
  43516. + esac
  43517. -# func_fatal_configuration arg...
  43518. -# Echo program name prefixed message to standard error, followed by
  43519. -# a configuration failure hint, and exit.
  43520. -func_fatal_configuration ()
  43521. -{
  43522. - func_error ${1+"$@"}
  43523. - func_error "See the $PACKAGE documentation for more information."
  43524. - func_fatal_error "Fatal configuration error."
  43525. -}
  43526. + case $tagname in
  43527. + CC)
  43528. + # Don't test for the "default" C tag, as we know, it's there, but
  43529. + # not specially marked.
  43530. + ;;
  43531. + *)
  43532. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  43533. + taglist="$taglist $tagname"
  43534. + # Evaluate the configuration.
  43535. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  43536. + else
  43537. + $echo "$progname: ignoring unknown tag $tagname" 1>&2
  43538. + fi
  43539. + ;;
  43540. + esac
  43541. + ;;
  43542. + *)
  43543. + eval "$prev=\$arg"
  43544. + ;;
  43545. + esac
  43546. + prev=
  43547. + prevopt=
  43548. + continue
  43549. + fi
  43550. -# func_config
  43551. -# Display the configuration for all the tags in this script.
  43552. -func_config ()
  43553. -{
  43554. - re_begincf='^# ### BEGIN LIBTOOL'
  43555. - re_endcf='^# ### END LIBTOOL'
  43556. + # Have we seen a non-optional argument yet?
  43557. + case $arg in
  43558. + --help)
  43559. + show_help=yes
  43560. + ;;
  43561. - # Default configuration.
  43562. - $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  43563. + --version)
  43564. + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  43565. + $echo
  43566. + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
  43567. + $echo "This is free software; see the source for copying conditions. There is NO"
  43568. + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  43569. + exit $?
  43570. + ;;
  43571. + --config)
  43572. + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  43573. # Now print the configurations for the tags.
  43574. for tagname in $taglist; do
  43575. - $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  43576. + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  43577. done
  43578. -
  43579. exit $?
  43580. -}
  43581. + ;;
  43582. -# func_features
  43583. -# Display the features supported by this script.
  43584. -func_features ()
  43585. -{
  43586. - $ECHO "host: $host"
  43587. + --debug)
  43588. + $echo "$progname: enabling shell trace mode"
  43589. + set -x
  43590. + preserve_args="$preserve_args $arg"
  43591. + ;;
  43592. +
  43593. + --dry-run | -n)
  43594. + run=:
  43595. + ;;
  43596. +
  43597. + --features)
  43598. + $echo "host: $host"
  43599. if test "$build_libtool_libs" = yes; then
  43600. - $ECHO "enable shared libraries"
  43601. + $echo "enable shared libraries"
  43602. else
  43603. - $ECHO "disable shared libraries"
  43604. + $echo "disable shared libraries"
  43605. fi
  43606. if test "$build_old_libs" = yes; then
  43607. - $ECHO "enable static libraries"
  43608. + $echo "enable static libraries"
  43609. else
  43610. - $ECHO "disable static libraries"
  43611. + $echo "disable static libraries"
  43612. fi
  43613. -
  43614. exit $?
  43615. -}
  43616. -
  43617. -# func_enable_tag tagname
  43618. -# Verify that TAGNAME is valid, and either flag an error and exit, or
  43619. -# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  43620. -# variable here.
  43621. -func_enable_tag ()
  43622. -{
  43623. - # Global variable:
  43624. - tagname="$1"
  43625. -
  43626. - re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  43627. - re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  43628. - sed_extractcf="/$re_begincf/,/$re_endcf/p"
  43629. -
  43630. - # Validate tagname.
  43631. - case $tagname in
  43632. - *[!-_A-Za-z0-9,/]*)
  43633. - func_fatal_error "invalid tag name: $tagname"
  43634. - ;;
  43635. - esac
  43636. -
  43637. - # Don't test for the "default" C tag, as we know it's
  43638. - # there but not specially marked.
  43639. - case $tagname in
  43640. - CC) ;;
  43641. - *)
  43642. - if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  43643. - taglist="$taglist $tagname"
  43644. + ;;
  43645. - # Evaluate the configuration. Be careful to quote the path
  43646. - # and the sed script, to avoid splitting on whitespace, but
  43647. - # also don't use non-portable quotes within backquotes within
  43648. - # quotes we have to do it in 2 steps:
  43649. - extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  43650. - eval "$extractedcf"
  43651. - else
  43652. - func_error "ignoring unknown tag $tagname"
  43653. - fi
  43654. - ;;
  43655. - esac
  43656. -}
  43657. + --finish) mode="finish" ;;
  43658. + --mode) prevopt="--mode" prev=mode ;;
  43659. + --mode=*) mode="$optarg" ;;
  43660. -func_mode_help ()
  43661. -{
  43662. - # We need to display help for each of the modes.
  43663. - case $mode in
  43664. - "")
  43665. - # Generic help is extracted from the usage comments
  43666. - # at the start of this file.
  43667. - func_help
  43668. - ;;
  43669. + --preserve-dup-deps) duplicate_deps="yes" ;;
  43670. - clean)
  43671. - $ECHO \
  43672. -"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  43673. + --quiet | --silent)
  43674. + show=:
  43675. + preserve_args="$preserve_args $arg"
  43676. + ;;
  43677. -Remove files from the build directory.
  43678. + --tag)
  43679. + prevopt="--tag"
  43680. + prev=tag
  43681. + preserve_args="$preserve_args --tag"
  43682. + ;;
  43683. + --tag=*)
  43684. + set tag "$optarg" ${1+"$@"}
  43685. + shift
  43686. + prev=tag
  43687. + preserve_args="$preserve_args --tag"
  43688. + ;;
  43689. -RM is the name of the program to use to delete files associated with each FILE
  43690. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  43691. -to RM.
  43692. + -dlopen)
  43693. + prevopt="-dlopen"
  43694. + prev=execute_dlfiles
  43695. + ;;
  43696. -If FILE is a libtool library, object or program, all the files associated
  43697. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  43698. - ;;
  43699. + -*)
  43700. + $echo "$modename: unrecognized option \`$arg'" 1>&2
  43701. + $echo "$help" 1>&2
  43702. + exit $EXIT_FAILURE
  43703. + ;;
  43704. - compile)
  43705. - $ECHO \
  43706. -"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  43707. + *)
  43708. + nonopt="$arg"
  43709. + break
  43710. + ;;
  43711. + esac
  43712. +done
  43713. -Compile a source file into a libtool library object.
  43714. +if test -n "$prevopt"; then
  43715. + $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  43716. + $echo "$help" 1>&2
  43717. + exit $EXIT_FAILURE
  43718. +fi
  43719. -This mode accepts the following additional options:
  43720. +case $disable_libs in
  43721. +no)
  43722. + ;;
  43723. +shared)
  43724. + build_libtool_libs=no
  43725. + build_old_libs=yes
  43726. + ;;
  43727. +static)
  43728. + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  43729. + ;;
  43730. +esac
  43731. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  43732. - -no-suppress do not suppress compiler output for multiple passes
  43733. - -prefer-pic try to building PIC objects only
  43734. - -prefer-non-pic try to building non-PIC objects only
  43735. - -shared do not build a \`.o' file suitable for static linking
  43736. - -static only build a \`.o' file suitable for static linking
  43737. +# If this variable is set in any of the actions, the command in it
  43738. +# will be execed at the end. This prevents here-documents from being
  43739. +# left over by shells.
  43740. +exec_cmd=
  43741. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  43742. -from the given SOURCEFILE.
  43743. +if test -z "$show_help"; then
  43744. -The output file name is determined by removing the directory component from
  43745. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  43746. -library object suffix, \`.lo'."
  43747. - ;;
  43748. + # Infer the operation mode.
  43749. + if test -z "$mode"; then
  43750. + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  43751. + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
  43752. + case $nonopt in
  43753. + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  43754. + mode=link
  43755. + for arg
  43756. + do
  43757. + case $arg in
  43758. + -c)
  43759. + mode=compile
  43760. + break
  43761. + ;;
  43762. + esac
  43763. + done
  43764. + ;;
  43765. + *db | *dbx | *strace | *truss)
  43766. + mode=execute
  43767. + ;;
  43768. + *install*|cp|mv)
  43769. + mode=install
  43770. + ;;
  43771. + *rm)
  43772. + mode=uninstall
  43773. + ;;
  43774. + *)
  43775. + # If we have no mode, but dlfiles were specified, then do execute mode.
  43776. + test -n "$execute_dlfiles" && mode=execute
  43777. - execute)
  43778. - $ECHO \
  43779. -"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  43780. + # Just use the default operation mode.
  43781. + if test -z "$mode"; then
  43782. + if test -n "$nonopt"; then
  43783. + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  43784. + else
  43785. + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  43786. + fi
  43787. + fi
  43788. + ;;
  43789. + esac
  43790. + fi
  43791. -Automatically set library path, then run a program.
  43792. + # Only execute mode is allowed to have -dlopen flags.
  43793. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  43794. + $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  43795. + $echo "$help" 1>&2
  43796. + exit $EXIT_FAILURE
  43797. + fi
  43798. -This mode accepts the following additional options:
  43799. + # Change the help message to a mode-specific one.
  43800. + generic_help="$help"
  43801. + help="Try \`$modename --help --mode=$mode' for more information."
  43802. - -dlopen FILE add the directory containing FILE to the library path
  43803. + # These modes are in order of execution frequency so that they run quickly.
  43804. + case $mode in
  43805. + # libtool compile mode
  43806. + compile)
  43807. + modename="$modename: compile"
  43808. + # Get the compilation command and the source file.
  43809. + base_compile=
  43810. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  43811. + suppress_opt=yes
  43812. + suppress_output=
  43813. + arg_mode=normal
  43814. + libobj=
  43815. + later=
  43816. -This mode sets the library path environment variable according to \`-dlopen'
  43817. -flags.
  43818. + for arg
  43819. + do
  43820. + case $arg_mode in
  43821. + arg )
  43822. + # do not "continue". Instead, add this to base_compile
  43823. + lastarg="$arg"
  43824. + arg_mode=normal
  43825. + ;;
  43826. -If any of the ARGS are libtool executable wrappers, then they are translated
  43827. -into their corresponding uninstalled binary, and any of their required library
  43828. -directories are added to the library path.
  43829. + target )
  43830. + libobj="$arg"
  43831. + arg_mode=normal
  43832. + continue
  43833. + ;;
  43834. -Then, COMMAND is executed, with ARGS as arguments."
  43835. - ;;
  43836. + normal )
  43837. + # Accept any command-line options.
  43838. + case $arg in
  43839. + -o)
  43840. + if test -n "$libobj" ; then
  43841. + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  43842. + exit $EXIT_FAILURE
  43843. + fi
  43844. + arg_mode=target
  43845. + continue
  43846. + ;;
  43847. - finish)
  43848. - $ECHO \
  43849. -"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  43850. + -static | -prefer-pic | -prefer-non-pic)
  43851. + later="$later $arg"
  43852. + continue
  43853. + ;;
  43854. -Complete the installation of libtool libraries.
  43855. + -no-suppress)
  43856. + suppress_opt=no
  43857. + continue
  43858. + ;;
  43859. -Each LIBDIR is a directory that contains libtool libraries.
  43860. + -Xcompiler)
  43861. + arg_mode=arg # the next one goes into the "base_compile" arg list
  43862. + continue # The current "srcfile" will either be retained or
  43863. + ;; # replaced later. I would guess that would be a bug.
  43864. -The commands that this mode executes may require superuser privileges. Use
  43865. -the \`--dry-run' option if you just want to see what would be executed."
  43866. - ;;
  43867. + -Wc,*)
  43868. + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  43869. + lastarg=
  43870. + save_ifs="$IFS"; IFS=','
  43871. + for arg in $args; do
  43872. + IFS="$save_ifs"
  43873. - install)
  43874. - $ECHO \
  43875. -"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  43876. + # Double-quote args containing other shell metacharacters.
  43877. + # Many Bourne shells cannot handle close brackets correctly
  43878. + # in scan sets, so we specify it separately.
  43879. + case $arg in
  43880. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43881. + arg="\"$arg\""
  43882. + ;;
  43883. + esac
  43884. + lastarg="$lastarg $arg"
  43885. + done
  43886. + IFS="$save_ifs"
  43887. + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  43888. -Install executables or libraries.
  43889. + # Add the arguments to base_compile.
  43890. + base_compile="$base_compile $lastarg"
  43891. + continue
  43892. + ;;
  43893. -INSTALL-COMMAND is the installation command. The first component should be
  43894. -either the \`install' or \`cp' program.
  43895. -
  43896. -The following components of INSTALL-COMMAND are treated specially:
  43897. -
  43898. - -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  43899. + * )
  43900. + # Accept the current argument as the source file.
  43901. + # The previous "srcfile" becomes the current argument.
  43902. + #
  43903. + lastarg="$srcfile"
  43904. + srcfile="$arg"
  43905. + ;;
  43906. + esac # case $arg
  43907. + ;;
  43908. + esac # case $arg_mode
  43909. -The rest of the components are interpreted as arguments to that command (only
  43910. -BSD-compatible install options are recognized)."
  43911. - ;;
  43912. + # Aesthetically quote the previous argument.
  43913. + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  43914. - link)
  43915. - $ECHO \
  43916. -"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  43917. + case $lastarg in
  43918. + # Double-quote args containing other shell metacharacters.
  43919. + # Many Bourne shells cannot handle close brackets correctly
  43920. + # in scan sets, and some SunOS ksh mistreat backslash-escaping
  43921. + # in scan sets (worked around with variable expansion),
  43922. + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
  43923. + # at all, so we specify them separately.
  43924. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  43925. + lastarg="\"$lastarg\""
  43926. + ;;
  43927. + esac
  43928. -Link object files or libraries together to form another library, or to
  43929. -create an executable program.
  43930. + base_compile="$base_compile $lastarg"
  43931. + done # for arg
  43932. -LINK-COMMAND is a command using the C compiler that you would use to create
  43933. -a program from several object files.
  43934. + case $arg_mode in
  43935. + arg)
  43936. + $echo "$modename: you must specify an argument for -Xcompile"
  43937. + exit $EXIT_FAILURE
  43938. + ;;
  43939. + target)
  43940. + $echo "$modename: you must specify a target with \`-o'" 1>&2
  43941. + exit $EXIT_FAILURE
  43942. + ;;
  43943. + *)
  43944. + # Get the name of the library object.
  43945. + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  43946. + ;;
  43947. + esac
  43948. -The following components of LINK-COMMAND are treated specially:
  43949. + # Recognize several different file suffixes.
  43950. + # If the user specifies -o file.o, it is replaced with file.lo
  43951. + xform='[cCFSifmso]'
  43952. + case $libobj in
  43953. + *.ada) xform=ada ;;
  43954. + *.adb) xform=adb ;;
  43955. + *.ads) xform=ads ;;
  43956. + *.asm) xform=asm ;;
  43957. + *.c++) xform=c++ ;;
  43958. + *.cc) xform=cc ;;
  43959. + *.ii) xform=ii ;;
  43960. + *.class) xform=class ;;
  43961. + *.cpp) xform=cpp ;;
  43962. + *.cxx) xform=cxx ;;
  43963. + *.f90) xform=f90 ;;
  43964. + *.for) xform=for ;;
  43965. + *.java) xform=java ;;
  43966. + esac
  43967. - -all-static do not do any dynamic linking at all
  43968. - -avoid-version do not add a version suffix if possible
  43969. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  43970. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  43971. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  43972. - -export-symbols SYMFILE
  43973. - try to export only the symbols listed in SYMFILE
  43974. - -export-symbols-regex REGEX
  43975. - try to export only the symbols matching REGEX
  43976. - -LLIBDIR search LIBDIR for required installed libraries
  43977. - -lNAME OUTPUT-FILE requires the installed library libNAME
  43978. - -module build a library that can dlopened
  43979. - -no-fast-install disable the fast-install mode
  43980. - -no-install link a not-installable executable
  43981. - -no-undefined declare that a library does not refer to external symbols
  43982. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  43983. - -objectlist FILE Use a list of object files found in FILE to specify objects
  43984. - -precious-files-regex REGEX
  43985. - don't remove output files matching REGEX
  43986. - -release RELEASE specify package release information
  43987. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  43988. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  43989. - -shared only do dynamic linking of libtool libraries
  43990. - -shrext SUFFIX override the standard shared library file extension
  43991. - -static do not do any dynamic linking of libtool libraries
  43992. - -version-info CURRENT[:REVISION[:AGE]]
  43993. - specify library version info [each variable defaults to 0]
  43994. - -weak LIBNAME declare that the target provides the LIBNAME interface
  43995. + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  43996. -All other options (arguments beginning with \`-') are ignored.
  43997. + case $libobj in
  43998. + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  43999. + *)
  44000. + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  44001. + exit $EXIT_FAILURE
  44002. + ;;
  44003. + esac
  44004. -Every other argument is treated as a filename. Files ending in \`.la' are
  44005. -treated as uninstalled libtool libraries, other files are standard or library
  44006. -object files.
  44007. + func_infer_tag $base_compile
  44008. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  44009. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  44010. -required, except when creating a convenience library.
  44011. + for arg in $later; do
  44012. + case $arg in
  44013. + -static)
  44014. + build_old_libs=yes
  44015. + continue
  44016. + ;;
  44017. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  44018. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  44019. + -prefer-pic)
  44020. + pic_mode=yes
  44021. + continue
  44022. + ;;
  44023. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  44024. -is created, otherwise an executable program is created."
  44025. - ;;
  44026. + -prefer-non-pic)
  44027. + pic_mode=no
  44028. + continue
  44029. + ;;
  44030. + esac
  44031. + done
  44032. - uninstall)
  44033. - $ECHO \
  44034. -"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  44035. + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
  44036. + case $qlibobj in
  44037. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44038. + qlibobj="\"$qlibobj\"" ;;
  44039. + esac
  44040. + test "X$libobj" != "X$qlibobj" \
  44041. + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
  44042. + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
  44043. + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  44044. + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  44045. + if test "X$xdir" = "X$obj"; then
  44046. + xdir=
  44047. + else
  44048. + xdir=$xdir/
  44049. + fi
  44050. + lobj=${xdir}$objdir/$objname
  44051. -Remove libraries from an installation directory.
  44052. + if test -z "$base_compile"; then
  44053. + $echo "$modename: you must specify a compilation command" 1>&2
  44054. + $echo "$help" 1>&2
  44055. + exit $EXIT_FAILURE
  44056. + fi
  44057. -RM is the name of the program to use to delete files associated with each FILE
  44058. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  44059. -to RM.
  44060. + # Delete any leftover library objects.
  44061. + if test "$build_old_libs" = yes; then
  44062. + removelist="$obj $lobj $libobj ${libobj}T"
  44063. + else
  44064. + removelist="$lobj $libobj ${libobj}T"
  44065. + fi
  44066. -If FILE is a libtool library, all the files associated with it are deleted.
  44067. -Otherwise, only FILE itself is deleted using RM."
  44068. - ;;
  44069. + $run $rm $removelist
  44070. + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  44071. - *)
  44072. - func_fatal_help "invalid operation mode \`$mode'"
  44073. - ;;
  44074. + # On Cygwin there's no "real" PIC flag so we must build both object types
  44075. + case $host_os in
  44076. + cygwin* | mingw* | pw32* | os2*)
  44077. + pic_mode=default
  44078. + ;;
  44079. esac
  44080. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  44081. + # non-PIC code in shared libraries is not supported
  44082. + pic_mode=default
  44083. + fi
  44084. - $ECHO
  44085. - $ECHO "Try \`$progname --help' for more information about other modes."
  44086. + # Calculate the filename of the output object if compiler does
  44087. + # not support -o with -c
  44088. + if test "$compiler_c_o" = no; then
  44089. + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  44090. + lockfile="$output_obj.lock"
  44091. + removelist="$removelist $output_obj $lockfile"
  44092. + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  44093. + else
  44094. + output_obj=
  44095. + need_locks=no
  44096. + lockfile=
  44097. + fi
  44098. - exit $?
  44099. -}
  44100. + # Lock this critical section if it is needed
  44101. + # We use this script file to make the link, it avoids creating a new file
  44102. + if test "$need_locks" = yes; then
  44103. + until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  44104. + $show "Waiting for $lockfile to be removed"
  44105. + sleep 2
  44106. + done
  44107. + elif test "$need_locks" = warn; then
  44108. + if test -f "$lockfile"; then
  44109. + $echo "\
  44110. +*** ERROR, $lockfile exists and contains:
  44111. +`cat $lockfile 2>/dev/null`
  44112. -# TEST SUITE MARKER ## NON-FUNCTION
  44113. -# Parse options once, thoroughly. This comes as soon as possible in
  44114. -# the script to make things like `libtool --version' happen quickly.
  44115. -{
  44116. - # sed scripts:
  44117. - my_sed_single_opt='1s/^\(..\).*$/\1/;q'
  44118. - my_sed_single_rest='1s/^..\(.*\)$/\1/;q'
  44119. - my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  44120. - my_sed_long_arg='1s/^-[^=]*=//'
  44121. -
  44122. - # Shorthand for --mode=foo, only valid as the first argument
  44123. - case $1 in
  44124. - clean|clea|cle|cl)
  44125. - shift; set dummy --mode clean ${1+"$@"}; shift
  44126. - ;;
  44127. - compile|compil|compi|comp|com|co|c)
  44128. - shift; set dummy --mode compile ${1+"$@"}; shift
  44129. - ;;
  44130. - execute|execut|execu|exec|exe|ex|e)
  44131. - shift; set dummy --mode execute ${1+"$@"}; shift
  44132. - ;;
  44133. - finish|finis|fini|fin|fi|f)
  44134. - shift; set dummy --mode finish ${1+"$@"}; shift
  44135. - ;;
  44136. - install|instal|insta|inst|ins|in|i)
  44137. - shift; set dummy --mode install ${1+"$@"}; shift
  44138. - ;;
  44139. - link|lin|li|l)
  44140. - shift; set dummy --mode link ${1+"$@"}; shift
  44141. - ;;
  44142. - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  44143. - shift; set dummy --mode uninstall ${1+"$@"}; shift
  44144. - ;;
  44145. - esac
  44146. +This indicates that another process is trying to use the same
  44147. +temporary object file, and libtool could not work around it because
  44148. +your compiler does not support \`-c' and \`-o' together. If you
  44149. +repeat this compilation, it may succeed, by chance, but you had better
  44150. +avoid parallel builds (make -j) in this platform, or get a better
  44151. +compiler."
  44152. - # Parse non-mode specific arguments:
  44153. - while test "$#" -gt 0; do
  44154. - opt="$1"
  44155. - shift
  44156. + $run $rm $removelist
  44157. + exit $EXIT_FAILURE
  44158. + fi
  44159. + $echo "$srcfile" > "$lockfile"
  44160. + fi
  44161. - case $opt in
  44162. - --config) func_config ;;
  44163. + if test -n "$fix_srcfile_path"; then
  44164. + eval srcfile=\"$fix_srcfile_path\"
  44165. + fi
  44166. + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
  44167. + case $qsrcfile in
  44168. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44169. + qsrcfile="\"$qsrcfile\"" ;;
  44170. + esac
  44171. - --debug) preserve_args="$preserve_args $opt"
  44172. - func_echo "enabling shell trace mode"
  44173. - opt_debug='set -x'
  44174. - $opt_debug
  44175. - ;;
  44176. + $run $rm "$libobj" "${libobj}T"
  44177. - -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  44178. - execute_dlfiles="$execute_dlfiles $1"
  44179. - shift
  44180. - ;;
  44181. + # Create a libtool object file (analogous to a ".la" file),
  44182. + # but don't create it if we're doing a dry run.
  44183. + test -z "$run" && cat > ${libobj}T <<EOF
  44184. +# $libobj - a libtool object file
  44185. +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  44186. +#
  44187. +# Please DO NOT delete this file!
  44188. +# It is necessary for linking the library.
  44189. - --dry-run | -n) opt_dry_run=: ;;
  44190. - --features) func_features ;;
  44191. - --finish) mode="finish" ;;
  44192. -
  44193. - --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  44194. - case $1 in
  44195. - # Valid mode arguments:
  44196. - clean) ;;
  44197. - compile) ;;
  44198. - execute) ;;
  44199. - finish) ;;
  44200. - install) ;;
  44201. - link) ;;
  44202. - relink) ;;
  44203. - uninstall) ;;
  44204. -
  44205. - # Catch anything else as an error
  44206. - *) func_error "invalid argument for $opt"
  44207. - exit_cmd=exit
  44208. - break
  44209. - ;;
  44210. - esac
  44211. +# Name of the PIC object.
  44212. +EOF
  44213. - mode="$1"
  44214. - shift
  44215. - ;;
  44216. + # Only build a PIC object if we are building libtool libraries.
  44217. + if test "$build_libtool_libs" = yes; then
  44218. + # Without this assignment, base_compile gets emptied.
  44219. + fbsd_hideous_sh_bug=$base_compile
  44220. - --preserve-dup-deps)
  44221. - opt_duplicate_deps=: ;;
  44222. + if test "$pic_mode" != no; then
  44223. + command="$base_compile $qsrcfile $pic_flag"
  44224. + else
  44225. + # Don't build PIC code
  44226. + command="$base_compile $qsrcfile"
  44227. + fi
  44228. - --quiet|--silent) preserve_args="$preserve_args $opt"
  44229. - opt_silent=:
  44230. - ;;
  44231. + if test ! -d "${xdir}$objdir"; then
  44232. + $show "$mkdir ${xdir}$objdir"
  44233. + $run $mkdir ${xdir}$objdir
  44234. + exit_status=$?
  44235. + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
  44236. + exit $exit_status
  44237. + fi
  44238. + fi
  44239. - --verbose| -v) preserve_args="$preserve_args $opt"
  44240. - opt_silent=false
  44241. - ;;
  44242. + if test -z "$output_obj"; then
  44243. + # Place PIC objects in $objdir
  44244. + command="$command -o $lobj"
  44245. + fi
  44246. - --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  44247. - preserve_args="$preserve_args $opt $1"
  44248. - func_enable_tag "$1" # tagname is set here
  44249. - shift
  44250. - ;;
  44251. + $run $rm "$lobj" "$output_obj"
  44252. - # Separate optargs to long options:
  44253. - -dlopen=*|--mode=*|--tag=*)
  44254. - arg=`$ECHO "X$opt" | $Xsed -e "$my_sed_long_arg"`
  44255. - opt=`$ECHO "X$opt" | $Xsed -e "$my_sed_long_opt"`
  44256. - set dummy "$opt" "$arg" ${1+"$@"}
  44257. - shift
  44258. - ;;
  44259. + $show "$command"
  44260. + if $run eval "$command"; then :
  44261. + else
  44262. + test -n "$output_obj" && $run $rm $removelist
  44263. + exit $EXIT_FAILURE
  44264. + fi
  44265. +
  44266. + if test "$need_locks" = warn &&
  44267. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  44268. + $echo "\
  44269. +*** ERROR, $lockfile contains:
  44270. +`cat $lockfile 2>/dev/null`
  44271. - # Separate optargs to short options:
  44272. -# -x*|-y*)
  44273. -# arg=`$ECHO "X$opt" |$Xsed -e "$my_sed_single_rest"`
  44274. -# opt=`$ECHO "X$opt" |$Xsed -e "$my_sed_single_opt"`
  44275. -# set dummy "$opt" "$arg" ${1+"$@"}
  44276. -# shift
  44277. -# ;;
  44278. -
  44279. - # Separate non-argument short options:
  44280. -# -z*|-z*|-y*)
  44281. -# rest=`$ECHO "X$opt" |$Xsed -e "$my_sed_single_rest"`
  44282. -# opt=`$ECHO "X$opt" |$Xsed -e "$my_sed_single_opt"`
  44283. -# set dummy "$opt" "-$rest" ${1+"$@"}
  44284. -# shift
  44285. -# ;;
  44286. -
  44287. - -\?|-h) func_usage ;;
  44288. - --help) opt_help=: ;;
  44289. - --version) func_version ;;
  44290. +but it should contain:
  44291. +$srcfile
  44292. - -*) func_fatal_help "unrecognized option \`$opt'" ;;
  44293. +This indicates that another process is trying to use the same
  44294. +temporary object file, and libtool could not work around it because
  44295. +your compiler does not support \`-c' and \`-o' together. If you
  44296. +repeat this compilation, it may succeed, by chance, but you had better
  44297. +avoid parallel builds (make -j) in this platform, or get a better
  44298. +compiler."
  44299. - *) nonopt="$opt"
  44300. - break
  44301. - ;;
  44302. - esac
  44303. - done
  44304. + $run $rm $removelist
  44305. + exit $EXIT_FAILURE
  44306. + fi
  44307. - # Now that we've collected a possible --mode arg, show help if necessary
  44308. - $opt_help && func_mode_help
  44309. + # Just move the object if needed, then go on to compile the next one
  44310. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  44311. + $show "$mv $output_obj $lobj"
  44312. + if $run $mv $output_obj $lobj; then :
  44313. + else
  44314. + error=$?
  44315. + $run $rm $removelist
  44316. + exit $error
  44317. + fi
  44318. + fi
  44319. - case $host in
  44320. - *cygwin* | *mingw* | *pw32*)
  44321. - # don't eliminate duplications in $postdeps and $predeps
  44322. - opt_duplicate_compiler_generated_deps=:
  44323. - ;;
  44324. - *)
  44325. - opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  44326. - ;;
  44327. - esac
  44328. + # Append the name of the PIC object to the libtool object file.
  44329. + test -z "$run" && cat >> ${libobj}T <<EOF
  44330. +pic_object='$objdir/$objname'
  44331. - # Having warned about all mis-specified options, bail out if
  44332. - # anything was wrong.
  44333. - $exit_cmd $EXIT_FAILURE
  44334. -}
  44335. -# TEST SUITE MARKER ## BEGIN SOURCABLE
  44336. +EOF
  44337. -# func_check_version_match
  44338. -# Ensure that we are using m4 macros, and libtool script from the same
  44339. -# release of libtool.
  44340. -func_check_version_match ()
  44341. -{
  44342. - if test "$package_revision" != "$macro_revision"; then
  44343. - if test "$VERSION" != "$macro_version"; then
  44344. - if test -z "$macro_version"; then
  44345. - cat >&2 <<_LT_EOF
  44346. -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  44347. -$progname: definition of this LT_INIT comes from an older release.
  44348. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  44349. -$progname: and run autoconf again.
  44350. -_LT_EOF
  44351. - else
  44352. - cat >&2 <<_LT_EOF
  44353. -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  44354. -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  44355. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  44356. -$progname: and run autoconf again.
  44357. -_LT_EOF
  44358. + # Allow error messages only from the first compilation.
  44359. + if test "$suppress_opt" = yes; then
  44360. + suppress_output=' >/dev/null 2>&1'
  44361. fi
  44362. else
  44363. - cat >&2 <<_LT_EOF
  44364. -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  44365. -$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  44366. -$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  44367. -$progname: of $PACKAGE $VERSION and run autoconf again.
  44368. -_LT_EOF
  44369. - fi
  44370. + # No PIC object so indicate it doesn't exist in the libtool
  44371. + # object file.
  44372. + test -z "$run" && cat >> ${libobj}T <<EOF
  44373. +pic_object=none
  44374. - exit $EXIT_MISMATCH
  44375. - fi
  44376. -}
  44377. +EOF
  44378. + fi
  44379. + # Only build a position-dependent object if we build old libraries.
  44380. + if test "$build_old_libs" = yes; then
  44381. + if test "$pic_mode" != yes; then
  44382. + # Don't build PIC code
  44383. + command="$base_compile $qsrcfile"
  44384. + else
  44385. + command="$base_compile $qsrcfile $pic_flag"
  44386. + fi
  44387. + if test "$compiler_c_o" = yes; then
  44388. + command="$command -o $obj"
  44389. + fi
  44390. -# func_lalib_p file
  44391. -# True iff FILE is a libtool `.la' library or `.lo' object file.
  44392. -# This function is only a basic sanity check; it will hardly flush out
  44393. -# determined imposters.
  44394. -func_lalib_p ()
  44395. -{
  44396. - $SED -e 4q "$1" 2>/dev/null \
  44397. - | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  44398. -}
  44399. + # Suppress compiler output if we already did a PIC compilation.
  44400. + command="$command$suppress_output"
  44401. + $run $rm "$obj" "$output_obj"
  44402. + $show "$command"
  44403. + if $run eval "$command"; then :
  44404. + else
  44405. + $run $rm $removelist
  44406. + exit $EXIT_FAILURE
  44407. + fi
  44408. -# func_lalib_unsafe_p file
  44409. -# True iff FILE is a libtool `.la' library or `.lo' object file.
  44410. -# This function implements the same check as func_lalib_p without
  44411. -# resorting to external programs. To this end, it redirects stdin and
  44412. -# closes it afterwards, without saving the original file descriptor.
  44413. -# As a safety measure, use it only where a negative result would be
  44414. -# fatal anyway. Works if `file' does not exist.
  44415. -func_lalib_unsafe_p ()
  44416. -{
  44417. - lalib_p=no
  44418. - if test -r "$1" && exec 5<&1 <"$1"; then
  44419. - for lalib_p_l in 1 2 3 4
  44420. - do
  44421. - read lalib_p_line
  44422. - case "$lalib_p_line" in
  44423. - \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  44424. - esac
  44425. - done
  44426. - exec 1<&5 5<&-
  44427. - fi
  44428. - test "$lalib_p" = yes
  44429. -}
  44430. + if test "$need_locks" = warn &&
  44431. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  44432. + $echo "\
  44433. +*** ERROR, $lockfile contains:
  44434. +`cat $lockfile 2>/dev/null`
  44435. -# func_ltwrapper_p file
  44436. -# True iff FILE is a libtool wrapper script.
  44437. -# This function is only a basic sanity check; it will hardly flush out
  44438. -# determined imposters.
  44439. -func_ltwrapper_p ()
  44440. -{
  44441. - func_lalib_p "$1"
  44442. -}
  44443. +but it should contain:
  44444. +$srcfile
  44445. +This indicates that another process is trying to use the same
  44446. +temporary object file, and libtool could not work around it because
  44447. +your compiler does not support \`-c' and \`-o' together. If you
  44448. +repeat this compilation, it may succeed, by chance, but you had better
  44449. +avoid parallel builds (make -j) in this platform, or get a better
  44450. +compiler."
  44451. -# func_execute_cmds commands fail_cmd
  44452. -# Execute tilde-delimited COMMANDS.
  44453. -# If FAIL_CMD is given, eval that upon failure.
  44454. -# FAIL_CMD may read-access the current command in variable CMD!
  44455. -func_execute_cmds ()
  44456. -{
  44457. - $opt_debug
  44458. - save_ifs=$IFS; IFS='~'
  44459. - for cmd in $1; do
  44460. - IFS=$save_ifs
  44461. - eval cmd=\"$cmd\"
  44462. - func_show_eval "$cmd" "${2-:}"
  44463. - done
  44464. - IFS=$save_ifs
  44465. -}
  44466. + $run $rm $removelist
  44467. + exit $EXIT_FAILURE
  44468. + fi
  44469. + # Just move the object if needed
  44470. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  44471. + $show "$mv $output_obj $obj"
  44472. + if $run $mv $output_obj $obj; then :
  44473. + else
  44474. + error=$?
  44475. + $run $rm $removelist
  44476. + exit $error
  44477. + fi
  44478. + fi
  44479. -# func_source file
  44480. -# Source FILE, adding directory component if necessary.
  44481. -# Note that it is not necessary on cygwin/mingw to append a dot to
  44482. -# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  44483. -# behavior happens only for exec(3), not for open(2)! Also, sourcing
  44484. -# `FILE.' does not work on cygwin managed mounts.
  44485. -func_source ()
  44486. -{
  44487. - $opt_debug
  44488. - case $1 in
  44489. - */* | *\\*) . "$1" ;;
  44490. - *) . "./$1" ;;
  44491. - esac
  44492. -}
  44493. + # Append the name of the non-PIC object the libtool object file.
  44494. + # Only append if the libtool object file exists.
  44495. + test -z "$run" && cat >> ${libobj}T <<EOF
  44496. +# Name of the non-PIC object.
  44497. +non_pic_object='$objname'
  44498. +EOF
  44499. + else
  44500. + # Append the name of the non-PIC object the libtool object file.
  44501. + # Only append if the libtool object file exists.
  44502. + test -z "$run" && cat >> ${libobj}T <<EOF
  44503. +# Name of the non-PIC object.
  44504. +non_pic_object=none
  44505. -# Generated shell functions inserted here.
  44506. +EOF
  44507. + fi
  44508. + $run $mv "${libobj}T" "${libobj}"
  44509. -# func_win32_libid arg
  44510. -# return the library type of file 'arg'
  44511. -#
  44512. -# Need a lot of goo to handle *both* DLLs and import libs
  44513. -# Has to be a shell function in order to 'eat' the argument
  44514. -# that is supplied when $file_magic_command is called.
  44515. -func_win32_libid ()
  44516. -{
  44517. - $opt_debug
  44518. - win32_libid_type="unknown"
  44519. - win32_fileres=`file -L $1 2>/dev/null`
  44520. - case $win32_fileres in
  44521. - *ar\ archive\ import\ library*) # definitely import
  44522. - win32_libid_type="x86 archive import"
  44523. - ;;
  44524. - *ar\ archive*) # could be an import, or static
  44525. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  44526. - $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  44527. - win32_nmres=`eval $NM -f posix -A $1 |
  44528. - $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
  44529. - case $win32_nmres in
  44530. - import*) win32_libid_type="x86 archive import";;
  44531. - *) win32_libid_type="x86 archive static";;
  44532. - esac
  44533. + # Unlock the critical section if it was locked
  44534. + if test "$need_locks" != no; then
  44535. + $run $rm "$lockfile"
  44536. fi
  44537. +
  44538. + exit $EXIT_SUCCESS
  44539. ;;
  44540. - *DLL*)
  44541. - win32_libid_type="x86 DLL"
  44542. - ;;
  44543. - *executable*) # but shell scripts are "executable" too...
  44544. - case $win32_fileres in
  44545. - *MS\ Windows\ PE\ Intel*)
  44546. - win32_libid_type="x86 DLL"
  44547. +
  44548. + # libtool link mode
  44549. + link | relink)
  44550. + modename="$modename: link"
  44551. + case $host in
  44552. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  44553. + # It is impossible to link a dll without this setting, and
  44554. + # we shouldn't force the makefile maintainer to figure out
  44555. + # which system we are compiling for in order to pass an extra
  44556. + # flag for every libtool invocation.
  44557. + # allow_undefined=no
  44558. +
  44559. + # FIXME: Unfortunately, there are problems with the above when trying
  44560. + # to make a dll which has undefined symbols, in which case not
  44561. + # even a static library is built. For now, we need to specify
  44562. + # -no-undefined on the libtool link line when we can be certain
  44563. + # that all symbols are satisfied, otherwise we get a static library.
  44564. + allow_undefined=yes
  44565. + ;;
  44566. + *)
  44567. + allow_undefined=yes
  44568. ;;
  44569. esac
  44570. - ;;
  44571. - esac
  44572. - $ECHO "$win32_libid_type"
  44573. -}
  44574. + libtool_args="$nonopt"
  44575. + base_compile="$nonopt $@"
  44576. + compile_command="$nonopt"
  44577. + finalize_command="$nonopt"
  44578. +
  44579. + compile_rpath=
  44580. + finalize_rpath=
  44581. + compile_shlibpath=
  44582. + finalize_shlibpath=
  44583. + convenience=
  44584. + old_convenience=
  44585. + deplibs=
  44586. + old_deplibs=
  44587. + compiler_flags=
  44588. + linker_flags=
  44589. + dllsearchpath=
  44590. + lib_search_path=`pwd`
  44591. + inst_prefix_dir=
  44592. + avoid_version=no
  44593. + dlfiles=
  44594. + dlprefiles=
  44595. + dlself=no
  44596. + export_dynamic=no
  44597. + export_symbols=
  44598. + export_symbols_regex=
  44599. + generated=
  44600. + libobjs=
  44601. + ltlibs=
  44602. + module=no
  44603. + no_install=no
  44604. + objs=
  44605. + non_pic_objects=
  44606. + notinst_path= # paths that contain not-installed libtool libraries
  44607. + precious_files_regex=
  44608. + prefer_static_libs=no
  44609. + preload=no
  44610. + prev=
  44611. + prevarg=
  44612. + release=
  44613. + rpath=
  44614. + xrpath=
  44615. + perm_rpath=
  44616. + temp_rpath=
  44617. + thread_safe=no
  44618. + vinfo=
  44619. + vinfo_number=no
  44620. + func_infer_tag $base_compile
  44621. -# func_infer_tag arg
  44622. -# Infer tagged configuration to use if any are available and
  44623. -# if one wasn't chosen via the "--tag" command line option.
  44624. -# Only attempt this if the compiler in the base compile
  44625. -# command doesn't match the default compiler.
  44626. -# arg is usually of the form 'gcc ...'
  44627. -func_infer_tag ()
  44628. -{
  44629. - $opt_debug
  44630. - if test -n "$available_tags" && test -z "$tagname"; then
  44631. - CC_quoted=
  44632. - for arg in $CC; do
  44633. - func_quote_for_eval "$arg"
  44634. - CC_quoted="$CC_quoted $func_quote_for_eval_result"
  44635. - done
  44636. - case $@ in
  44637. - # Blanks in the command may have been stripped by the calling shell,
  44638. - # but not from the CC environment variable when configure was run.
  44639. - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  44640. - # Blanks at the start of $base_compile will cause this to fail
  44641. - # if we don't check for them as well.
  44642. - *)
  44643. - for z in $available_tags; do
  44644. - if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  44645. - # Evaluate the configuration.
  44646. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  44647. - CC_quoted=
  44648. - for arg in $CC; do
  44649. - # Double-quote args containing other shell metacharacters.
  44650. - func_quote_for_eval "$arg"
  44651. - CC_quoted="$CC_quoted $func_quote_for_eval_result"
  44652. - done
  44653. - case "$@ " in
  44654. - " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  44655. - # The compiler in the base compile command matches
  44656. - # the one in the tagged configuration.
  44657. - # Assume this is the tagged configuration we want.
  44658. - tagname=$z
  44659. - break
  44660. - ;;
  44661. - esac
  44662. + # We need to know -static, to get the right output filenames.
  44663. + for arg
  44664. + do
  44665. + case $arg in
  44666. + -all-static | -static)
  44667. + if test "X$arg" = "X-all-static"; then
  44668. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  44669. + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  44670. fi
  44671. - done
  44672. - # If $tagname still isn't set, then no tagged configuration
  44673. - # was found and let the user know that the "--tag" command
  44674. - # line option must be used.
  44675. - if test -z "$tagname"; then
  44676. - func_echo "unable to infer tagged configuration"
  44677. - func_fatal_error "specify a tag with \`--tag'"
  44678. -# else
  44679. -# func_verbose "using $tagname tagged configuration"
  44680. + if test -n "$link_static_flag"; then
  44681. + dlopen_self=$dlopen_self_static
  44682. + fi
  44683. + prefer_static_libs=yes
  44684. + else
  44685. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  44686. + dlopen_self=$dlopen_self_static
  44687. + fi
  44688. + prefer_static_libs=built
  44689. fi
  44690. + build_libtool_libs=no
  44691. + build_old_libs=yes
  44692. + break
  44693. ;;
  44694. esac
  44695. - fi
  44696. -}
  44697. -
  44698. -
  44699. -
  44700. -# func_generate_dlsyms outputname originator pic_p
  44701. -# Extract symbols from dlprefiles and create ${outputname}S.o with
  44702. -# a dlpreopen symbol table.
  44703. -func_generate_dlsyms ()
  44704. -{
  44705. - $opt_debug
  44706. - my_outputname="$1"
  44707. - my_originator="$2"
  44708. - my_pic_p="${3-no}"
  44709. - my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  44710. - my_dlsyms=
  44711. -
  44712. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  44713. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  44714. - my_dlsyms="${my_outputname}S.c"
  44715. - else
  44716. - func_error "not configured to extract global symbols from dlpreopened files"
  44717. - fi
  44718. - fi
  44719. -
  44720. - if test -n "$my_dlsyms"; then
  44721. - case $my_dlsyms in
  44722. - "") ;;
  44723. - *.c)
  44724. - # Discover the nlist of each of the dlfiles.
  44725. - nlist="$output_objdir/${my_outputname}.nm"
  44726. + done
  44727. - func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  44728. + # See if our shared archives depend on static archives.
  44729. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  44730. - # Parse the name list into a source file.
  44731. - func_echo "creating $output_objdir/$my_dlsyms"
  44732. + # Go through the arguments, transforming them on the way.
  44733. + while test "$#" -gt 0; do
  44734. + arg="$1"
  44735. + shift
  44736. + case $arg in
  44737. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  44738. + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  44739. + ;;
  44740. + *) qarg=$arg ;;
  44741. + esac
  44742. + libtool_args="$libtool_args $qarg"
  44743. - $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  44744. -/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  44745. -/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  44746. + # If the previous option needs an argument, assign it.
  44747. + if test -n "$prev"; then
  44748. + case $prev in
  44749. + output)
  44750. + compile_command="$compile_command @OUTPUT@"
  44751. + finalize_command="$finalize_command @OUTPUT@"
  44752. + ;;
  44753. + esac
  44754. -#ifdef __cplusplus
  44755. -extern \"C\" {
  44756. -#endif
  44757. + case $prev in
  44758. + dlfiles|dlprefiles)
  44759. + if test "$preload" = no; then
  44760. + # Add the symbol object into the linking commands.
  44761. + compile_command="$compile_command @SYMFILE@"
  44762. + finalize_command="$finalize_command @SYMFILE@"
  44763. + preload=yes
  44764. + fi
  44765. + case $arg in
  44766. + *.la | *.lo) ;; # We handle these cases below.
  44767. + force)
  44768. + if test "$dlself" = no; then
  44769. + dlself=needless
  44770. + export_dynamic=yes
  44771. + fi
  44772. + prev=
  44773. + continue
  44774. + ;;
  44775. + self)
  44776. + if test "$prev" = dlprefiles; then
  44777. + dlself=yes
  44778. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  44779. + dlself=yes
  44780. + else
  44781. + dlself=needless
  44782. + export_dynamic=yes
  44783. + fi
  44784. + prev=
  44785. + continue
  44786. + ;;
  44787. + *)
  44788. + if test "$prev" = dlfiles; then
  44789. + dlfiles="$dlfiles $arg"
  44790. + else
  44791. + dlprefiles="$dlprefiles $arg"
  44792. + fi
  44793. + prev=
  44794. + continue
  44795. + ;;
  44796. + esac
  44797. + ;;
  44798. + expsyms)
  44799. + export_symbols="$arg"
  44800. + if test ! -f "$arg"; then
  44801. + $echo "$modename: symbol file \`$arg' does not exist"
  44802. + exit $EXIT_FAILURE
  44803. + fi
  44804. + prev=
  44805. + continue
  44806. + ;;
  44807. + expsyms_regex)
  44808. + export_symbols_regex="$arg"
  44809. + prev=
  44810. + continue
  44811. + ;;
  44812. + inst_prefix)
  44813. + inst_prefix_dir="$arg"
  44814. + prev=
  44815. + continue
  44816. + ;;
  44817. + precious_regex)
  44818. + precious_files_regex="$arg"
  44819. + prev=
  44820. + continue
  44821. + ;;
  44822. + release)
  44823. + release="-$arg"
  44824. + prev=
  44825. + continue
  44826. + ;;
  44827. + objectlist)
  44828. + if test -f "$arg"; then
  44829. + save_arg=$arg
  44830. + moreargs=
  44831. + for fil in `cat $save_arg`
  44832. + do
  44833. +# moreargs="$moreargs $fil"
  44834. + arg=$fil
  44835. + # A libtool-controlled object.
  44836. -/* External symbol declarations for the compiler. */\
  44837. -"
  44838. + # Check to see that this really is a libtool object.
  44839. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  44840. + pic_object=
  44841. + non_pic_object=
  44842. - if test "$dlself" = yes; then
  44843. - func_echo "generating symbol list for \`$output'"
  44844. + # Read the .lo file
  44845. + # If there is no directory component, then add one.
  44846. + case $arg in
  44847. + */* | *\\*) . $arg ;;
  44848. + *) . ./$arg ;;
  44849. + esac
  44850. - $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  44851. + if test -z "$pic_object" || \
  44852. + test -z "$non_pic_object" ||
  44853. + test "$pic_object" = none && \
  44854. + test "$non_pic_object" = none; then
  44855. + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  44856. + exit $EXIT_FAILURE
  44857. + fi
  44858. - # Add our own program objects to the symbol list.
  44859. - progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  44860. - for progfile in $progfiles; do
  44861. - func_echo "extracting global C symbols from \`$progfile'"
  44862. - $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  44863. - done
  44864. + # Extract subdirectory from the argument.
  44865. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  44866. + if test "X$xdir" = "X$arg"; then
  44867. + xdir=
  44868. + else
  44869. + xdir="$xdir/"
  44870. + fi
  44871. - if test -n "$exclude_expsyms"; then
  44872. - $opt_dry_run || {
  44873. - eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  44874. - eval '$MV "$nlist"T "$nlist"'
  44875. - }
  44876. - fi
  44877. + if test "$pic_object" != none; then
  44878. + # Prepend the subdirectory the object is found in.
  44879. + pic_object="$xdir$pic_object"
  44880. - if test -n "$export_symbols_regex"; then
  44881. - $opt_dry_run || {
  44882. - eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  44883. - eval '$MV "$nlist"T "$nlist"'
  44884. - }
  44885. - fi
  44886. + if test "$prev" = dlfiles; then
  44887. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  44888. + dlfiles="$dlfiles $pic_object"
  44889. + prev=
  44890. + continue
  44891. + else
  44892. + # If libtool objects are unsupported, then we need to preload.
  44893. + prev=dlprefiles
  44894. + fi
  44895. + fi
  44896. - # Prepare the list of exported symbols
  44897. - if test -z "$export_symbols"; then
  44898. - export_symbols="$output_objdir/$outputname.exp"
  44899. - $opt_dry_run || {
  44900. - $RM $export_symbols
  44901. - eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  44902. - case $host in
  44903. - *cygwin* | *mingw* )
  44904. - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  44905. - eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  44906. - ;;
  44907. - esac
  44908. - }
  44909. - else
  44910. - $opt_dry_run || {
  44911. - eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  44912. - eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  44913. - eval '$MV "$nlist"T "$nlist"'
  44914. - case $host in
  44915. - *cygwin | *mingw* )
  44916. - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  44917. - eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  44918. - ;;
  44919. - esac
  44920. - }
  44921. - fi
  44922. - fi
  44923. + # CHECK ME: I think I busted this. -Ossama
  44924. + if test "$prev" = dlprefiles; then
  44925. + # Preload the old-style object.
  44926. + dlprefiles="$dlprefiles $pic_object"
  44927. + prev=
  44928. + fi
  44929. - for dlprefile in $dlprefiles; do
  44930. - func_echo "extracting global C symbols from \`$dlprefile'"
  44931. - func_basename "$dlprefile"
  44932. - name="$func_basename_result"
  44933. - $opt_dry_run || {
  44934. - eval '$ECHO ": $name " >> "$nlist"'
  44935. - eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  44936. - }
  44937. - done
  44938. + # A PIC object.
  44939. + libobjs="$libobjs $pic_object"
  44940. + arg="$pic_object"
  44941. + fi
  44942. - $opt_dry_run || {
  44943. - # Make sure we have at least an empty file.
  44944. - test -f "$nlist" || : > "$nlist"
  44945. -
  44946. - if test -n "$exclude_expsyms"; then
  44947. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  44948. - $MV "$nlist"T "$nlist"
  44949. - fi
  44950. + # Non-PIC object.
  44951. + if test "$non_pic_object" != none; then
  44952. + # Prepend the subdirectory the object is found in.
  44953. + non_pic_object="$xdir$non_pic_object"
  44954. - # Try sorting and uniquifying the output.
  44955. - if $GREP -v "^: " < "$nlist" |
  44956. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  44957. - sort -k 3
  44958. + # A standard non-PIC object
  44959. + non_pic_objects="$non_pic_objects $non_pic_object"
  44960. + if test -z "$pic_object" || test "$pic_object" = none ; then
  44961. + arg="$non_pic_object"
  44962. + fi
  44963. + else
  44964. + # If the PIC object exists, use it instead.
  44965. + # $xdir was prepended to $pic_object above.
  44966. + non_pic_object="$pic_object"
  44967. + non_pic_objects="$non_pic_objects $non_pic_object"
  44968. + fi
  44969. else
  44970. - sort +2
  44971. - fi |
  44972. - uniq > "$nlist"S; then
  44973. - :
  44974. - else
  44975. - $GREP -v "^: " < "$nlist" > "$nlist"S
  44976. - fi
  44977. + # Only an error if not doing a dry-run.
  44978. + if test -z "$run"; then
  44979. + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  44980. + exit $EXIT_FAILURE
  44981. + else
  44982. + # Dry-run case.
  44983. +
  44984. + # Extract subdirectory from the argument.
  44985. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  44986. + if test "X$xdir" = "X$arg"; then
  44987. + xdir=
  44988. + else
  44989. + xdir="$xdir/"
  44990. + fi
  44991. - if test -f "$nlist"S; then
  44992. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  44993. + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  44994. + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  44995. + libobjs="$libobjs $pic_object"
  44996. + non_pic_objects="$non_pic_objects $non_pic_object"
  44997. + fi
  44998. + fi
  44999. + done
  45000. else
  45001. - $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  45002. + $echo "$modename: link input file \`$save_arg' does not exist"
  45003. + exit $EXIT_FAILURE
  45004. fi
  45005. -
  45006. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  45007. -
  45008. -/* The mapping between symbol names and symbols. */
  45009. -"
  45010. - case $host in
  45011. - *cygwin* | *mingw* )
  45012. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  45013. -/* DATA imports from DLLs on WIN32 con't be const, because
  45014. - runtime relocations are performed -- see ld's documentation
  45015. - on pseudo-relocs. */
  45016. - struct {
  45017. -"
  45018. - ;;
  45019. + arg=$save_arg
  45020. + prev=
  45021. + continue
  45022. + ;;
  45023. + rpath | xrpath)
  45024. + # We need an absolute path.
  45025. + case $arg in
  45026. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  45027. *)
  45028. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  45029. -const struct {
  45030. -"
  45031. + $echo "$modename: only absolute run-paths are allowed" 1>&2
  45032. + exit $EXIT_FAILURE
  45033. ;;
  45034. esac
  45035. + if test "$prev" = rpath; then
  45036. + case "$rpath " in
  45037. + *" $arg "*) ;;
  45038. + *) rpath="$rpath $arg" ;;
  45039. + esac
  45040. + else
  45041. + case "$xrpath " in
  45042. + *" $arg "*) ;;
  45043. + *) xrpath="$xrpath $arg" ;;
  45044. + esac
  45045. + fi
  45046. + prev=
  45047. + continue
  45048. + ;;
  45049. + xcompiler)
  45050. + compiler_flags="$compiler_flags $qarg"
  45051. + prev=
  45052. + compile_command="$compile_command $qarg"
  45053. + finalize_command="$finalize_command $qarg"
  45054. + continue
  45055. + ;;
  45056. + xlinker)
  45057. + linker_flags="$linker_flags $qarg"
  45058. + compiler_flags="$compiler_flags $wl$qarg"
  45059. + prev=
  45060. + compile_command="$compile_command $wl$qarg"
  45061. + finalize_command="$finalize_command $wl$qarg"
  45062. + continue
  45063. + ;;
  45064. + xcclinker)
  45065. + linker_flags="$linker_flags $qarg"
  45066. + compiler_flags="$compiler_flags $qarg"
  45067. + prev=
  45068. + compile_command="$compile_command $qarg"
  45069. + finalize_command="$finalize_command $qarg"
  45070. + continue
  45071. + ;;
  45072. + shrext)
  45073. + shrext_cmds="$arg"
  45074. + prev=
  45075. + continue
  45076. + ;;
  45077. + darwin_framework|darwin_framework_skip)
  45078. + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
  45079. + compile_command="$compile_command $arg"
  45080. + finalize_command="$finalize_command $arg"
  45081. + prev=
  45082. + continue
  45083. + ;;
  45084. + *)
  45085. + eval "$prev=\"\$arg\""
  45086. + prev=
  45087. + continue
  45088. + ;;
  45089. + esac
  45090. + fi # test -n "$prev"
  45091. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  45092. - const char *name;
  45093. - void *address;
  45094. -}
  45095. -lt_${my_prefix}_LTX_preloaded_symbols[] =
  45096. -{\
  45097. - { \"$my_originator\", (void *) 0 },
  45098. -"
  45099. + prevarg="$arg"
  45100. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  45101. + case $arg in
  45102. + -all-static)
  45103. + if test -n "$link_static_flag"; then
  45104. + compile_command="$compile_command $link_static_flag"
  45105. + finalize_command="$finalize_command $link_static_flag"
  45106. + fi
  45107. + continue
  45108. + ;;
  45109. - $ECHO >> "$output_objdir/$my_dlsyms" "\
  45110. - {0, (void *) 0}
  45111. -};
  45112. + -allow-undefined)
  45113. + # FIXME: remove this flag sometime in the future.
  45114. + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  45115. + continue
  45116. + ;;
  45117. -/* This works around a problem in FreeBSD linker */
  45118. -#ifdef FREEBSD_WORKAROUND
  45119. -static const void *lt_preloaded_setup() {
  45120. - return lt_${my_prefix}_LTX_preloaded_symbols;
  45121. -}
  45122. -#endif
  45123. + -avoid-version)
  45124. + avoid_version=yes
  45125. + continue
  45126. + ;;
  45127. -#ifdef __cplusplus
  45128. -}
  45129. -#endif\
  45130. -"
  45131. - } # !$opt_dry_run
  45132. + -dlopen)
  45133. + prev=dlfiles
  45134. + continue
  45135. + ;;
  45136. - pic_flag_for_symtable=
  45137. - case "$compile_command " in
  45138. - *" -static "*) ;;
  45139. - *)
  45140. - case $host in
  45141. - # compiling the symbol table file with pic_flag works around
  45142. - # a FreeBSD bug that causes programs to crash when -lm is
  45143. - # linked before any other PIC object. But we must not use
  45144. - # pic_flag when linking with -static. The problem exists in
  45145. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  45146. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  45147. - pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  45148. - *-*-hpux*)
  45149. - pic_flag_for_symtable=" $pic_flag" ;;
  45150. - *)
  45151. - if test "X$my_pic_p" != Xno; then
  45152. - pic_flag_for_symtable=" $pic_flag"
  45153. - fi
  45154. - ;;
  45155. - esac
  45156. - ;;
  45157. + -dlpreopen)
  45158. + prev=dlprefiles
  45159. + continue
  45160. + ;;
  45161. +
  45162. + -export-dynamic)
  45163. + export_dynamic=yes
  45164. + continue
  45165. + ;;
  45166. +
  45167. + -export-symbols | -export-symbols-regex)
  45168. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  45169. + $echo "$modename: more than one -exported-symbols argument is not allowed"
  45170. + exit $EXIT_FAILURE
  45171. + fi
  45172. + if test "X$arg" = "X-export-symbols"; then
  45173. + prev=expsyms
  45174. + else
  45175. + prev=expsyms_regex
  45176. + fi
  45177. + continue
  45178. + ;;
  45179. +
  45180. + -framework|-arch|-isysroot)
  45181. + case " $CC " in
  45182. + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
  45183. + prev=darwin_framework_skip ;;
  45184. + *) compiler_flags="$compiler_flags $arg"
  45185. + prev=darwin_framework ;;
  45186. esac
  45187. - symtab_cflags=
  45188. - for arg in $LTCFLAGS; do
  45189. - case $arg in
  45190. - -pie | -fpie | -fPIE) ;;
  45191. - *) symtab_cflags="$symtab_cflags $arg" ;;
  45192. - esac
  45193. - done
  45194. + compile_command="$compile_command $arg"
  45195. + finalize_command="$finalize_command $arg"
  45196. + continue
  45197. + ;;
  45198. - # Now compile the dynamic symbol file.
  45199. - func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  45200. + -inst-prefix-dir)
  45201. + prev=inst_prefix
  45202. + continue
  45203. + ;;
  45204. - # Clean up the generated files.
  45205. - func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  45206. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  45207. + # so, if we see these flags be careful not to treat them like -L
  45208. + -L[A-Z][A-Z]*:*)
  45209. + case $with_gcc/$host in
  45210. + no/*-*-irix* | /*-*-irix*)
  45211. + compile_command="$compile_command $arg"
  45212. + finalize_command="$finalize_command $arg"
  45213. + ;;
  45214. + esac
  45215. + continue
  45216. + ;;
  45217. - # Transform the symbol file into the correct name.
  45218. - symfileobj="$output_objdir/${my_outputname}S.$objext"
  45219. - case $host in
  45220. - *cygwin* | *mingw* )
  45221. - if test -f "$output_objdir/$my_outputname.def"; then
  45222. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  45223. - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  45224. - else
  45225. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  45226. - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  45227. + -L*)
  45228. + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  45229. + # We need an absolute path.
  45230. + case $dir in
  45231. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  45232. + *)
  45233. + absdir=`cd "$dir" && pwd`
  45234. + if test -z "$absdir"; then
  45235. + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  45236. + absdir="$dir"
  45237. + notinst_path="$notinst_path $dir"
  45238. fi
  45239. + dir="$absdir"
  45240. ;;
  45241. + esac
  45242. + case "$deplibs " in
  45243. + *" -L$dir "*) ;;
  45244. *)
  45245. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  45246. - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  45247. + deplibs="$deplibs -L$dir"
  45248. + lib_search_path="$lib_search_path $dir"
  45249. + ;;
  45250. + esac
  45251. + case $host in
  45252. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  45253. + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  45254. + case :$dllsearchpath: in
  45255. + *":$dir:"*) ;;
  45256. + *) dllsearchpath="$dllsearchpath:$dir";;
  45257. + esac
  45258. + case :$dllsearchpath: in
  45259. + *":$testbindir:"*) ;;
  45260. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  45261. + esac
  45262. ;;
  45263. esac
  45264. + continue
  45265. ;;
  45266. - *)
  45267. - func_fatal_error "unknown suffix for \`$my_dlsyms'"
  45268. +
  45269. + -l*)
  45270. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  45271. + case $host in
  45272. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  45273. + # These systems don't actually have a C or math library (as such)
  45274. + continue
  45275. + ;;
  45276. + *-*-os2*)
  45277. + # These systems don't actually have a C library (as such)
  45278. + test "X$arg" = "X-lc" && continue
  45279. + ;;
  45280. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  45281. + # Do not include libc due to us having libc/libc_r.
  45282. + test "X$arg" = "X-lc" && continue
  45283. + ;;
  45284. + *-*-rhapsody* | *-*-darwin1.[012])
  45285. + # Rhapsody C and math libraries are in the System framework
  45286. + deplibs="$deplibs -framework System"
  45287. + continue
  45288. + ;;
  45289. + *-*-sco3.2v5* | *-*-sco5v6*)
  45290. + # Causes problems with __ctype
  45291. + test "X$arg" = "X-lc" && continue
  45292. + ;;
  45293. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  45294. + # Compiler inserts libc in the correct place for threads to work
  45295. + test "X$arg" = "X-lc" && continue
  45296. + ;;
  45297. + esac
  45298. + elif test "X$arg" = "X-lc_r"; then
  45299. + case $host in
  45300. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  45301. + # Do not include libc_r directly, use -pthread flag.
  45302. + continue
  45303. + ;;
  45304. + esac
  45305. + fi
  45306. + deplibs="$deplibs $arg"
  45307. + continue
  45308. ;;
  45309. - esac
  45310. - else
  45311. - # We keep going just in case the user didn't refer to
  45312. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  45313. - # really was required.
  45314. -
  45315. - # Nullify the symbol file.
  45316. - compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  45317. - finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  45318. - fi
  45319. -}
  45320. -# func_extract_an_archive dir oldlib
  45321. -func_extract_an_archive ()
  45322. -{
  45323. - $opt_debug
  45324. - f_ex_an_ar_dir="$1"; shift
  45325. - f_ex_an_ar_oldlib="$1"
  45326. - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" 'exit $?'
  45327. - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  45328. - :
  45329. - else
  45330. - func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  45331. - fi
  45332. -}
  45333. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  45334. + # classes, name mangling, and exception handling.
  45335. + -model)
  45336. + compile_command="$compile_command $arg"
  45337. + compiler_flags="$compiler_flags $arg"
  45338. + finalize_command="$finalize_command $arg"
  45339. + prev=xcompiler
  45340. + continue
  45341. + ;;
  45342. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  45343. + compiler_flags="$compiler_flags $arg"
  45344. + compile_command="$compile_command $arg"
  45345. + finalize_command="$finalize_command $arg"
  45346. + deplibs="$deplibs $arg"
  45347. + continue
  45348. + ;;
  45349. -# func_extract_archives gentop oldlib ...
  45350. -func_extract_archives ()
  45351. -{
  45352. - $opt_debug
  45353. - my_gentop="$1"; shift
  45354. - my_oldlibs=${1+"$@"}
  45355. - my_oldobjs=""
  45356. - my_xlib=""
  45357. - my_xabs=""
  45358. - my_xdir=""
  45359. + -module)
  45360. + module=yes
  45361. + continue
  45362. + ;;
  45363. - for my_xlib in $my_oldlibs; do
  45364. - # Extract the objects.
  45365. - case $my_xlib in
  45366. - [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  45367. - *) my_xabs=`pwd`"/$my_xlib" ;;
  45368. - esac
  45369. - func_basename "$my_xlib"
  45370. - my_xlib="$func_basename_result"
  45371. - my_xdir="$my_gentop/$my_xlib"
  45372. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  45373. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  45374. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  45375. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  45376. + # -q* pass through compiler args for the IBM compiler
  45377. + # -m* pass through architecture-specific compiler args for GCC
  45378. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  45379. + # compiler args for GCC
  45380. + # -pg pass through profiling flag for GCC
  45381. + # @file GCC response files
  45382. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
  45383. + -t[45]*|-txscale*|@*)
  45384. - func_mkdir_p "$my_xdir"
  45385. + # Unknown arguments in both finalize_command and compile_command need
  45386. + # to be aesthetically quoted because they are evaled later.
  45387. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  45388. + case $arg in
  45389. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45390. + arg="\"$arg\""
  45391. + ;;
  45392. + esac
  45393. + compile_command="$compile_command $arg"
  45394. + finalize_command="$finalize_command $arg"
  45395. + compiler_flags="$compiler_flags $arg"
  45396. + continue
  45397. + ;;
  45398. - case $host in
  45399. - *-darwin*)
  45400. - func_echo "Extracting $my_xabs"
  45401. - # Do not bother doing anything if just a dry run
  45402. - $opt_dry_run || {
  45403. - darwin_orig_dir=`pwd`
  45404. - cd $my_xdir || exit $?
  45405. - darwin_archive=$my_xabs
  45406. - darwin_curdir=`pwd`
  45407. - darwin_base_archive=`basename $darwin_archive`
  45408. - darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  45409. - if test -n "$darwin_arches"; then
  45410. - darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  45411. - darwin_arch=
  45412. - func_echo "$darwin_base_archive has multiple architectures $darwin_arches"
  45413. - for darwin_arch in $darwin_arches ; do
  45414. - func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  45415. - lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  45416. - cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  45417. - func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  45418. - cd "$darwin_curdir"
  45419. - $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  45420. - done # $darwin_arches
  45421. - ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  45422. - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
  45423. - darwin_file=
  45424. - darwin_files=
  45425. - for darwin_file in $darwin_filelist; do
  45426. - darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  45427. - lipo -create -output "$darwin_file" $darwin_files
  45428. - done # $darwin_filelist
  45429. - $RM -rf unfat-$$
  45430. - cd "$darwin_orig_dir"
  45431. - else
  45432. - cd $darwin_orig_dir
  45433. - func_extract_an_archive "$my_xdir" "$my_xabs"
  45434. - fi # $darwin_arches
  45435. - } # !$opt_dry_run
  45436. + -shrext)
  45437. + prev=shrext
  45438. + continue
  45439. ;;
  45440. - *)
  45441. - func_extract_an_archive "$my_xdir" "$my_xabs"
  45442. +
  45443. + -no-fast-install)
  45444. + fast_install=no
  45445. + continue
  45446. ;;
  45447. - esac
  45448. - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  45449. - done
  45450. - func_extract_archives_result="$my_oldobjs"
  45451. -}
  45452. + -no-install)
  45453. + case $host in
  45454. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  45455. + # The PATH hackery in wrapper scripts is required on Windows
  45456. + # in order for the loader to find any dlls it needs.
  45457. + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  45458. + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  45459. + fast_install=no
  45460. + ;;
  45461. + *) no_install=yes ;;
  45462. + esac
  45463. + continue
  45464. + ;;
  45465. + -no-undefined)
  45466. + allow_undefined=no
  45467. + continue
  45468. + ;;
  45469. -# func_mode_compile arg...
  45470. -func_mode_compile ()
  45471. -{
  45472. - $opt_debug
  45473. - # Get the compilation command and the source file.
  45474. - base_compile=
  45475. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  45476. - suppress_opt=yes
  45477. - suppress_output=
  45478. - arg_mode=normal
  45479. - libobj=
  45480. - later=
  45481. - pie_flag=
  45482. -
  45483. - for arg
  45484. - do
  45485. - case $arg_mode in
  45486. - arg )
  45487. - # do not "continue". Instead, add this to base_compile
  45488. - lastarg="$arg"
  45489. - arg_mode=normal
  45490. - ;;
  45491. -
  45492. - target )
  45493. - libobj="$arg"
  45494. - arg_mode=normal
  45495. + -objectlist)
  45496. + prev=objectlist
  45497. continue
  45498. ;;
  45499. - normal )
  45500. - # Accept any command-line options.
  45501. - case $arg in
  45502. - -o)
  45503. - test -n "$libobj" && \
  45504. - func_fatal_error "you cannot specify \`-o' more than once"
  45505. - arg_mode=target
  45506. - continue
  45507. - ;;
  45508. -
  45509. - -pie | -fpie | -fPIE)
  45510. - pie_flag="$pie_flag $arg"
  45511. - continue
  45512. - ;;
  45513. -
  45514. - -shared | -static | -prefer-pic | -prefer-non-pic)
  45515. - later="$later $arg"
  45516. - continue
  45517. - ;;
  45518. + -o) prev=output ;;
  45519. - -no-suppress)
  45520. - suppress_opt=no
  45521. - continue
  45522. - ;;
  45523. + -precious-files-regex)
  45524. + prev=precious_regex
  45525. + continue
  45526. + ;;
  45527. - -Xcompiler)
  45528. - arg_mode=arg # the next one goes into the "base_compile" arg list
  45529. - continue # The current "srcfile" will either be retained or
  45530. - ;; # replaced later. I would guess that would be a bug.
  45531. + -release)
  45532. + prev=release
  45533. + continue
  45534. + ;;
  45535. - -Wc,*)
  45536. - func_stripname '-Wc,' '' "$arg"
  45537. - args=$func_stripname_result
  45538. - lastarg=
  45539. - save_ifs="$IFS"; IFS=','
  45540. - for arg in $args; do
  45541. - IFS="$save_ifs"
  45542. - func_quote_for_eval "$arg"
  45543. - lastarg="$lastarg $func_quote_for_eval_result"
  45544. - done
  45545. - IFS="$save_ifs"
  45546. - func_stripname ' ' '' "$lastarg"
  45547. - lastarg=$func_stripname_result
  45548. + -rpath)
  45549. + prev=rpath
  45550. + continue
  45551. + ;;
  45552. - # Add the arguments to base_compile.
  45553. - base_compile="$base_compile $lastarg"
  45554. - continue
  45555. - ;;
  45556. + -R)
  45557. + prev=xrpath
  45558. + continue
  45559. + ;;
  45560. + -R*)
  45561. + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  45562. + # We need an absolute path.
  45563. + case $dir in
  45564. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  45565. *)
  45566. - # Accept the current argument as the source file.
  45567. - # The previous "srcfile" becomes the current argument.
  45568. - #
  45569. - lastarg="$srcfile"
  45570. - srcfile="$arg"
  45571. + $echo "$modename: only absolute run-paths are allowed" 1>&2
  45572. + exit $EXIT_FAILURE
  45573. ;;
  45574. - esac # case $arg
  45575. + esac
  45576. + case "$xrpath " in
  45577. + *" $dir "*) ;;
  45578. + *) xrpath="$xrpath $dir" ;;
  45579. + esac
  45580. + continue
  45581. ;;
  45582. - esac # case $arg_mode
  45583. -
  45584. - # Aesthetically quote the previous argument.
  45585. - func_quote_for_eval "$lastarg"
  45586. - base_compile="$base_compile $func_quote_for_eval_result"
  45587. - done # for arg
  45588. -
  45589. - case $arg_mode in
  45590. - arg)
  45591. - func_fatal_error "you must specify an argument for -Xcompile"
  45592. - ;;
  45593. - target)
  45594. - func_fatal_error "you must specify a target with \`-o'"
  45595. - ;;
  45596. - *)
  45597. - # Get the name of the library object.
  45598. - test -z "$libobj" && {
  45599. - func_basename "$srcfile"
  45600. - libobj="$func_basename_result"
  45601. - }
  45602. - ;;
  45603. - esac
  45604. - # Recognize several different file suffixes.
  45605. - # If the user specifies -o file.o, it is replaced with file.lo
  45606. - xform='[cCFSifmso]'
  45607. - case $libobj in
  45608. - *.ada) xform=ada ;;
  45609. - *.adb) xform=adb ;;
  45610. - *.ads) xform=ads ;;
  45611. - *.asm) xform=asm ;;
  45612. - *.c++) xform=c++ ;;
  45613. - *.cc) xform=cc ;;
  45614. - *.ii) xform=ii ;;
  45615. - *.class) xform=class ;;
  45616. - *.cpp) xform=cpp ;;
  45617. - *.cxx) xform=cxx ;;
  45618. - *.f90) xform=f90 ;;
  45619. - *.for) xform=for ;;
  45620. - *.java) xform=java ;;
  45621. - esac
  45622. + -static)
  45623. + # The effects of -static are defined in a previous loop.
  45624. + # We used to do the same as -all-static on platforms that
  45625. + # didn't have a PIC flag, but the assumption that the effects
  45626. + # would be equivalent was wrong. It would break on at least
  45627. + # Digital Unix and AIX.
  45628. + continue
  45629. + ;;
  45630. - libobj=`$ECHO "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  45631. + -thread-safe)
  45632. + thread_safe=yes
  45633. + continue
  45634. + ;;
  45635. - case $libobj in
  45636. - *.lo) obj=`$ECHO "X$libobj" | $Xsed -e "$lo2o"` ;;
  45637. - *)
  45638. - func_fatal_error "cannot determine name of library object from \`$libobj'"
  45639. - ;;
  45640. - esac
  45641. + -version-info)
  45642. + prev=vinfo
  45643. + continue
  45644. + ;;
  45645. + -version-number)
  45646. + prev=vinfo
  45647. + vinfo_number=yes
  45648. + continue
  45649. + ;;
  45650. - func_infer_tag $base_compile
  45651. + -Wc,*)
  45652. + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  45653. + arg=
  45654. + save_ifs="$IFS"; IFS=','
  45655. + for flag in $args; do
  45656. + IFS="$save_ifs"
  45657. + case $flag in
  45658. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45659. + flag="\"$flag\""
  45660. + ;;
  45661. + esac
  45662. + arg="$arg $wl$flag"
  45663. + compiler_flags="$compiler_flags $flag"
  45664. + done
  45665. + IFS="$save_ifs"
  45666. + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  45667. + ;;
  45668. - for arg in $later; do
  45669. - case $arg in
  45670. - -shared)
  45671. - test "$build_libtool_libs" != yes && \
  45672. - func_fatal_configuration "can not build a shared library"
  45673. - build_old_libs=no
  45674. - continue
  45675. + -Wl,*)
  45676. + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  45677. + arg=
  45678. + save_ifs="$IFS"; IFS=','
  45679. + for flag in $args; do
  45680. + IFS="$save_ifs"
  45681. + case $flag in
  45682. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45683. + flag="\"$flag\""
  45684. + ;;
  45685. + esac
  45686. + arg="$arg $wl$flag"
  45687. + compiler_flags="$compiler_flags $wl$flag"
  45688. + linker_flags="$linker_flags $flag"
  45689. + done
  45690. + IFS="$save_ifs"
  45691. + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  45692. ;;
  45693. - -static)
  45694. - build_libtool_libs=no
  45695. - build_old_libs=yes
  45696. + -Xcompiler)
  45697. + prev=xcompiler
  45698. continue
  45699. ;;
  45700. - -prefer-pic)
  45701. - pic_mode=yes
  45702. + -Xlinker)
  45703. + prev=xlinker
  45704. continue
  45705. ;;
  45706. - -prefer-non-pic)
  45707. - pic_mode=no
  45708. + -XCClinker)
  45709. + prev=xcclinker
  45710. continue
  45711. ;;
  45712. - esac
  45713. - done
  45714. -
  45715. - func_quote_for_eval "$libobj"
  45716. - test "X$libobj" != "X$func_quote_for_eval_result" \
  45717. - && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  45718. - && func_warning "libobj name \`$libobj' may not contain shell special characters."
  45719. - func_basename "$obj"
  45720. - objname="$func_basename_result"
  45721. - func_dirname "$obj" "/" ""
  45722. - xdir="$func_dirname_result"
  45723. - lobj=${xdir}$objdir/$objname
  45724. - test -z "$base_compile" && \
  45725. - func_fatal_help "you must specify a compilation command"
  45726. + # Some other compiler flag.
  45727. + -* | +*)
  45728. + # Unknown arguments in both finalize_command and compile_command need
  45729. + # to be aesthetically quoted because they are evaled later.
  45730. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  45731. + case $arg in
  45732. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45733. + arg="\"$arg\""
  45734. + ;;
  45735. + esac
  45736. + ;;
  45737. - # Delete any leftover library objects.
  45738. - if test "$build_old_libs" = yes; then
  45739. - removelist="$obj $lobj $libobj ${libobj}T"
  45740. - else
  45741. - removelist="$lobj $libobj ${libobj}T"
  45742. - fi
  45743. + *.$objext)
  45744. + # A standard object.
  45745. + objs="$objs $arg"
  45746. + ;;
  45747. - $opt_dry_run || $RM $removelist
  45748. - trap "$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE" 1 2 15
  45749. + *.lo)
  45750. + # A libtool-controlled object.
  45751. - # On Cygwin there's no "real" PIC flag so we must build both object types
  45752. - case $host_os in
  45753. - cygwin* | mingw* | pw32* | os2*)
  45754. - pic_mode=default
  45755. - ;;
  45756. - esac
  45757. - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  45758. - # non-PIC code in shared libraries is not supported
  45759. - pic_mode=default
  45760. - fi
  45761. + # Check to see that this really is a libtool object.
  45762. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  45763. + pic_object=
  45764. + non_pic_object=
  45765. - # Calculate the filename of the output object if compiler does
  45766. - # not support -o with -c
  45767. - if test "$compiler_c_o" = no; then
  45768. - output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  45769. - lockfile="$output_obj.lock"
  45770. - removelist="$removelist $output_obj $lockfile"
  45771. - trap "$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE" 1 2 15
  45772. - else
  45773. - output_obj=
  45774. - need_locks=no
  45775. - lockfile=
  45776. - fi
  45777. + # Read the .lo file
  45778. + # If there is no directory component, then add one.
  45779. + case $arg in
  45780. + */* | *\\*) . $arg ;;
  45781. + *) . ./$arg ;;
  45782. + esac
  45783. - # Lock this critical section if it is needed
  45784. - # We use this script file to make the link, it avoids creating a new file
  45785. - if test "$need_locks" = yes; then
  45786. - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  45787. - func_echo "Waiting for $lockfile to be removed"
  45788. - sleep 2
  45789. - done
  45790. - elif test "$need_locks" = warn; then
  45791. - if test -f "$lockfile"; then
  45792. - $ECHO "\
  45793. -*** ERROR, $lockfile exists and contains:
  45794. -`cat $lockfile 2>/dev/null`
  45795. + if test -z "$pic_object" || \
  45796. + test -z "$non_pic_object" ||
  45797. + test "$pic_object" = none && \
  45798. + test "$non_pic_object" = none; then
  45799. + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  45800. + exit $EXIT_FAILURE
  45801. + fi
  45802. -This indicates that another process is trying to use the same
  45803. -temporary object file, and libtool could not work around it because
  45804. -your compiler does not support \`-c' and \`-o' together. If you
  45805. -repeat this compilation, it may succeed, by chance, but you had better
  45806. -avoid parallel builds (make -j) in this platform, or get a better
  45807. -compiler."
  45808. + # Extract subdirectory from the argument.
  45809. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  45810. + if test "X$xdir" = "X$arg"; then
  45811. + xdir=
  45812. + else
  45813. + xdir="$xdir/"
  45814. + fi
  45815. - $opt_dry_run || $RM $removelist
  45816. - exit $EXIT_FAILURE
  45817. - fi
  45818. - $ECHO "$srcfile" > "$lockfile"
  45819. - fi
  45820. + if test "$pic_object" != none; then
  45821. + # Prepend the subdirectory the object is found in.
  45822. + pic_object="$xdir$pic_object"
  45823. - if test -n "$fix_srcfile_path"; then
  45824. - eval srcfile=\"$fix_srcfile_path\"
  45825. - fi
  45826. - func_quote_for_eval "$srcfile"
  45827. - qsrcfile=$func_quote_for_eval_result
  45828. -
  45829. - $opt_dry_run || $RM "$libobj" "${libobj}T"
  45830. -
  45831. - # Create a libtool object file (analogous to a ".la" file),
  45832. - # but don't create it if we're doing a dry run.
  45833. - $opt_dry_run || cat > ${libobj}T <<EOF
  45834. -# $libobj - a libtool object file
  45835. -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  45836. -#
  45837. -# Please DO NOT delete this file!
  45838. -# It is necessary for linking the library.
  45839. + if test "$prev" = dlfiles; then
  45840. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  45841. + dlfiles="$dlfiles $pic_object"
  45842. + prev=
  45843. + continue
  45844. + else
  45845. + # If libtool objects are unsupported, then we need to preload.
  45846. + prev=dlprefiles
  45847. + fi
  45848. + fi
  45849. -# Name of the PIC object.
  45850. -EOF
  45851. + # CHECK ME: I think I busted this. -Ossama
  45852. + if test "$prev" = dlprefiles; then
  45853. + # Preload the old-style object.
  45854. + dlprefiles="$dlprefiles $pic_object"
  45855. + prev=
  45856. + fi
  45857. - # Only build a PIC object if we are building libtool libraries.
  45858. - if test "$build_libtool_libs" = yes; then
  45859. - # Without this assignment, base_compile gets emptied.
  45860. - fbsd_hideous_sh_bug=$base_compile
  45861. + # A PIC object.
  45862. + libobjs="$libobjs $pic_object"
  45863. + arg="$pic_object"
  45864. + fi
  45865. - if test "$pic_mode" != no; then
  45866. - command="$base_compile $qsrcfile $pic_flag"
  45867. - else
  45868. - # Don't build PIC code
  45869. - command="$base_compile $qsrcfile"
  45870. - fi
  45871. + # Non-PIC object.
  45872. + if test "$non_pic_object" != none; then
  45873. + # Prepend the subdirectory the object is found in.
  45874. + non_pic_object="$xdir$non_pic_object"
  45875. - func_mkdir_p "$xdir$objdir"
  45876. + # A standard non-PIC object
  45877. + non_pic_objects="$non_pic_objects $non_pic_object"
  45878. + if test -z "$pic_object" || test "$pic_object" = none ; then
  45879. + arg="$non_pic_object"
  45880. + fi
  45881. + else
  45882. + # If the PIC object exists, use it instead.
  45883. + # $xdir was prepended to $pic_object above.
  45884. + non_pic_object="$pic_object"
  45885. + non_pic_objects="$non_pic_objects $non_pic_object"
  45886. + fi
  45887. + else
  45888. + # Only an error if not doing a dry-run.
  45889. + if test -z "$run"; then
  45890. + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  45891. + exit $EXIT_FAILURE
  45892. + else
  45893. + # Dry-run case.
  45894. - if test -z "$output_obj"; then
  45895. - # Place PIC objects in $objdir
  45896. - command="$command -o $lobj"
  45897. - fi
  45898. + # Extract subdirectory from the argument.
  45899. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  45900. + if test "X$xdir" = "X$arg"; then
  45901. + xdir=
  45902. + else
  45903. + xdir="$xdir/"
  45904. + fi
  45905. - $opt_dry_run || $RM "$lobj" "$output_obj"
  45906. + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  45907. + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  45908. + libobjs="$libobjs $pic_object"
  45909. + non_pic_objects="$non_pic_objects $non_pic_object"
  45910. + fi
  45911. + fi
  45912. + ;;
  45913. - func_show_eval "$command" \
  45914. - 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  45915. + *.$libext)
  45916. + # An archive.
  45917. + deplibs="$deplibs $arg"
  45918. + old_deplibs="$old_deplibs $arg"
  45919. + continue
  45920. + ;;
  45921. - if test "$need_locks" = warn &&
  45922. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  45923. - $ECHO "\
  45924. -*** ERROR, $lockfile contains:
  45925. -`cat $lockfile 2>/dev/null`
  45926. + *.la)
  45927. + # A libtool-controlled library.
  45928. -but it should contain:
  45929. -$srcfile
  45930. + if test "$prev" = dlfiles; then
  45931. + # This library was specified with -dlopen.
  45932. + dlfiles="$dlfiles $arg"
  45933. + prev=
  45934. + elif test "$prev" = dlprefiles; then
  45935. + # The library was specified with -dlpreopen.
  45936. + dlprefiles="$dlprefiles $arg"
  45937. + prev=
  45938. + else
  45939. + deplibs="$deplibs $arg"
  45940. + fi
  45941. + continue
  45942. + ;;
  45943. -This indicates that another process is trying to use the same
  45944. -temporary object file, and libtool could not work around it because
  45945. -your compiler does not support \`-c' and \`-o' together. If you
  45946. -repeat this compilation, it may succeed, by chance, but you had better
  45947. -avoid parallel builds (make -j) in this platform, or get a better
  45948. -compiler."
  45949. + # Some other compiler argument.
  45950. + *)
  45951. + # Unknown arguments in both finalize_command and compile_command need
  45952. + # to be aesthetically quoted because they are evaled later.
  45953. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  45954. + case $arg in
  45955. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  45956. + arg="\"$arg\""
  45957. + ;;
  45958. + esac
  45959. + ;;
  45960. + esac # arg
  45961. - $opt_dry_run || $RM $removelist
  45962. - exit $EXIT_FAILURE
  45963. + # Now actually substitute the argument into the commands.
  45964. + if test -n "$arg"; then
  45965. + compile_command="$compile_command $arg"
  45966. + finalize_command="$finalize_command $arg"
  45967. fi
  45968. + done # argument parsing loop
  45969. - # Just move the object if needed, then go on to compile the next one
  45970. - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  45971. - func_show_eval '$MV "$output_obj" "$lobj"' \
  45972. - 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  45973. - fi
  45974. + if test -n "$prev"; then
  45975. + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  45976. + $echo "$help" 1>&2
  45977. + exit $EXIT_FAILURE
  45978. + fi
  45979. - # Append the name of the PIC object to the libtool object file.
  45980. - $opt_dry_run || cat >> ${libobj}T <<EOF
  45981. -pic_object='$objdir/$objname'
  45982. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  45983. + eval arg=\"$export_dynamic_flag_spec\"
  45984. + compile_command="$compile_command $arg"
  45985. + finalize_command="$finalize_command $arg"
  45986. + fi
  45987. -EOF
  45988. + oldlibs=
  45989. + # calculate the name of the file, without its directory
  45990. + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  45991. + libobjs_save="$libobjs"
  45992. - # Allow error messages only from the first compilation.
  45993. - if test "$suppress_opt" = yes; then
  45994. - suppress_output=' >/dev/null 2>&1'
  45995. - fi
  45996. + if test -n "$shlibpath_var"; then
  45997. + # get the directories listed in $shlibpath_var
  45998. + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  45999. else
  46000. - # No PIC object so indicate it doesn't exist in the libtool
  46001. - # object file.
  46002. - $opt_dry_run || cat >> ${libobj}T <<EOF
  46003. -pic_object=none
  46004. -
  46005. -EOF
  46006. + shlib_search_path=
  46007. fi
  46008. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  46009. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  46010. - # Only build a position-dependent object if we build old libraries.
  46011. - if test "$build_old_libs" = yes; then
  46012. - if test "$pic_mode" != yes; then
  46013. - # Don't build PIC code
  46014. - command="$base_compile $qsrcfile$pie_flag"
  46015. - else
  46016. - command="$base_compile $qsrcfile $pic_flag"
  46017. - fi
  46018. - if test "$compiler_c_o" = yes; then
  46019. - command="$command -o $obj"
  46020. + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  46021. + if test "X$output_objdir" = "X$output"; then
  46022. + output_objdir="$objdir"
  46023. + else
  46024. + output_objdir="$output_objdir/$objdir"
  46025. + fi
  46026. + # Create the object directory.
  46027. + if test ! -d "$output_objdir"; then
  46028. + $show "$mkdir $output_objdir"
  46029. + $run $mkdir $output_objdir
  46030. + exit_status=$?
  46031. + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
  46032. + exit $exit_status
  46033. fi
  46034. + fi
  46035. - # Suppress compiler output if we already did a PIC compilation.
  46036. - command="$command$suppress_output"
  46037. - $opt_dry_run || $RM "$obj" "$output_obj"
  46038. - func_show_eval "$command" \
  46039. - '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  46040. -
  46041. - if test "$need_locks" = warn &&
  46042. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  46043. - $ECHO "\
  46044. -*** ERROR, $lockfile contains:
  46045. -`cat $lockfile 2>/dev/null`
  46046. -
  46047. -but it should contain:
  46048. -$srcfile
  46049. -
  46050. -This indicates that another process is trying to use the same
  46051. -temporary object file, and libtool could not work around it because
  46052. -your compiler does not support \`-c' and \`-o' together. If you
  46053. -repeat this compilation, it may succeed, by chance, but you had better
  46054. -avoid parallel builds (make -j) in this platform, or get a better
  46055. -compiler."
  46056. + # Determine the type of output
  46057. + case $output in
  46058. + "")
  46059. + $echo "$modename: you must specify an output file" 1>&2
  46060. + $echo "$help" 1>&2
  46061. + exit $EXIT_FAILURE
  46062. + ;;
  46063. + *.$libext) linkmode=oldlib ;;
  46064. + *.lo | *.$objext) linkmode=obj ;;
  46065. + *.la) linkmode=lib ;;
  46066. + *) linkmode=prog ;; # Anything else should be a program.
  46067. + esac
  46068. - $opt_dry_run || $RM $removelist
  46069. - exit $EXIT_FAILURE
  46070. - fi
  46071. + case $host in
  46072. + *cygwin* | *mingw* | *pw32*)
  46073. + # don't eliminate duplications in $postdeps and $predeps
  46074. + duplicate_compiler_generated_deps=yes
  46075. + ;;
  46076. + *)
  46077. + duplicate_compiler_generated_deps=$duplicate_deps
  46078. + ;;
  46079. + esac
  46080. + specialdeplibs=
  46081. - # Just move the object if needed
  46082. - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  46083. - func_show_eval '$MV "$output_obj" "$obj"' \
  46084. - 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  46085. + libs=
  46086. + # Find all interdependent deplibs by searching for libraries
  46087. + # that are linked more than once (e.g. -la -lb -la)
  46088. + for deplib in $deplibs; do
  46089. + if test "X$duplicate_deps" = "Xyes" ; then
  46090. + case "$libs " in
  46091. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  46092. + esac
  46093. fi
  46094. + libs="$libs $deplib"
  46095. + done
  46096. - # Append the name of the non-PIC object the libtool object file.
  46097. - # Only append if the libtool object file exists.
  46098. - $opt_dry_run || cat >> ${libobj}T <<EOF
  46099. -# Name of the non-PIC object.
  46100. -non_pic_object='$objname'
  46101. -
  46102. -EOF
  46103. - else
  46104. - # Append the name of the non-PIC object the libtool object file.
  46105. - # Only append if the libtool object file exists.
  46106. - $opt_dry_run || cat >> ${libobj}T <<EOF
  46107. -# Name of the non-PIC object.
  46108. -non_pic_object=none
  46109. -
  46110. -EOF
  46111. - fi
  46112. -
  46113. - $opt_dry_run || {
  46114. - $MV "${libobj}T" "${libobj}"
  46115. + if test "$linkmode" = lib; then
  46116. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  46117. - # Unlock the critical section if it was locked
  46118. - if test "$need_locks" != no; then
  46119. - $RM "$lockfile"
  46120. + # Compute libraries that are listed more than once in $predeps
  46121. + # $postdeps and mark them as special (i.e., whose duplicates are
  46122. + # not to be eliminated).
  46123. + pre_post_deps=
  46124. + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  46125. + for pre_post_dep in $predeps $postdeps; do
  46126. + case "$pre_post_deps " in
  46127. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  46128. + esac
  46129. + pre_post_deps="$pre_post_deps $pre_post_dep"
  46130. + done
  46131. fi
  46132. - }
  46133. -
  46134. - exit $EXIT_SUCCESS
  46135. -}
  46136. -
  46137. -
  46138. -# func_mode_execute arg...
  46139. -func_mode_execute ()
  46140. -{
  46141. - $opt_debug
  46142. - # The first argument is the command name.
  46143. - cmd="$nonopt"
  46144. - test -z "$cmd" && \
  46145. - func_fatal_help "you must specify a COMMAND"
  46146. -
  46147. - # Handle -dlopen flags immediately.
  46148. - for file in $execute_dlfiles; do
  46149. - test -f "$file" \
  46150. - || func_fatal_help "\`$file' is not a file"
  46151. -
  46152. - dir=
  46153. - case $file in
  46154. - *.la)
  46155. - # Check to see that this really is a libtool archive.
  46156. - func_lalib_unsafe_p "$file" \
  46157. - || func_fatal_help "\`$lib' is not a valid libtool archive"
  46158. -
  46159. - # Read the libtool library.
  46160. - dlname=
  46161. - library_names=
  46162. - func_source "$file"
  46163. -
  46164. - # Skip this library if it cannot be dlopened.
  46165. - if test -z "$dlname"; then
  46166. - # Warn if it was a shared library.
  46167. - test -n "$library_names" && \
  46168. - func_warning "\`$file' was not linked with \`-export-dynamic'"
  46169. - continue
  46170. - fi
  46171. -
  46172. - func_dirname "$file" "" "."
  46173. - dir="$func_dirname_result"
  46174. -
  46175. - if test -f "$dir/$objdir/$dlname"; then
  46176. - dir="$dir/$objdir"
  46177. - else
  46178. - func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  46179. - fi
  46180. - ;;
  46181. -
  46182. - *.lo)
  46183. - # Just add the directory containing the .lo file.
  46184. - func_dirname "$file" "" "."
  46185. - dir="$func_dirname_result"
  46186. - ;;
  46187. -
  46188. - *)
  46189. - func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  46190. - continue
  46191. - ;;
  46192. - esac
  46193. -
  46194. - # Get the absolute pathname.
  46195. - absdir=`cd "$dir" && pwd`
  46196. - test -n "$absdir" && dir="$absdir"
  46197. -
  46198. - # Now add the directory to shlibpath_var.
  46199. - if eval "test -z \"\$$shlibpath_var\""; then
  46200. - eval "$shlibpath_var=\"\$dir\""
  46201. - else
  46202. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  46203. - fi
  46204. - done
  46205. -
  46206. - # This variable tells wrapper scripts just to set shlibpath_var
  46207. - # rather than running their programs.
  46208. - libtool_execute_magic="$magic"
  46209. -
  46210. - # Check if any of the arguments is a wrapper script.
  46211. - args=
  46212. - for file
  46213. - do
  46214. - case $file in
  46215. - -*) ;;
  46216. - *)
  46217. - # Do a test to see if this is really a libtool program.
  46218. - if func_ltwrapper_p "$file"; then
  46219. - func_source "$file"
  46220. -
  46221. - # Transform arg to wrapped name.
  46222. - file="$progdir/$program"
  46223. - fi
  46224. - ;;
  46225. - esac
  46226. - # Quote arguments (to preserve shell metacharacters).
  46227. - func_quote_for_eval "$file"
  46228. - args="$args $func_quote_for_eval_result"
  46229. - done
  46230. -
  46231. - if test "X$opt_dry_run" = Xfalse; then
  46232. - if test -n "$shlibpath_var"; then
  46233. - # Export the shlibpath_var.
  46234. - eval "export $shlibpath_var"
  46235. - fi
  46236. -
  46237. - # Restore saved environment variables
  46238. - if test "${save_LC_ALL+set}" = set; then
  46239. - LC_ALL="$save_LC_ALL"; export LC_ALL
  46240. - fi
  46241. - if test "${save_LANG+set}" = set; then
  46242. - LANG="$save_LANG"; export LANG
  46243. - fi
  46244. -
  46245. - # Now prepare to actually exec the command.
  46246. - exec_cmd="\$cmd$args"
  46247. - else
  46248. - # Display what would be done.
  46249. - if test -n "$shlibpath_var"; then
  46250. - eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  46251. - $ECHO "export $shlibpath_var"
  46252. - fi
  46253. - $ECHO "$cmd$args"
  46254. - exit $EXIT_SUCCESS
  46255. - fi
  46256. -}
  46257. -
  46258. -
  46259. -# func_mode_finish arg...
  46260. -func_mode_finish ()
  46261. -{
  46262. - $opt_debug
  46263. - libdirs="$nonopt"
  46264. - admincmds=
  46265. -
  46266. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  46267. - for dir
  46268. - do
  46269. - libdirs="$libdirs $dir"
  46270. - done
  46271. -
  46272. - for libdir in $libdirs; do
  46273. - if test -n "$finish_cmds"; then
  46274. - # Do each command in the finish commands.
  46275. - func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  46276. -'"$cmd"'"'
  46277. - fi
  46278. - if test -n "$finish_eval"; then
  46279. - # Do the single finish_eval.
  46280. - eval cmds=\"$finish_eval\"
  46281. - $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  46282. - $cmds"
  46283. - fi
  46284. - done
  46285. - fi
  46286. -
  46287. - # Exit here if they wanted silent mode.
  46288. - $opt_silent && exit $EXIT_SUCCESS
  46289. -
  46290. - $ECHO "X----------------------------------------------------------------------" | $Xsed
  46291. - $ECHO "Libraries have been installed in:"
  46292. - for libdir in $libdirs; do
  46293. - $ECHO " $libdir"
  46294. - done
  46295. - $ECHO
  46296. - $ECHO "If you ever happen to want to link against installed libraries"
  46297. - $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  46298. - $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  46299. - $ECHO "flag during linking and do at least one of the following:"
  46300. - if test -n "$shlibpath_var"; then
  46301. - $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  46302. - $ECHO " during execution"
  46303. - fi
  46304. - if test -n "$runpath_var"; then
  46305. - $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  46306. - $ECHO " during linking"
  46307. - fi
  46308. - if test -n "$hardcode_libdir_flag_spec"; then
  46309. - libdir=LIBDIR
  46310. - eval flag=\"$hardcode_libdir_flag_spec\"
  46311. -
  46312. - $ECHO " - use the \`$flag' linker flag"
  46313. - fi
  46314. - if test -n "$admincmds"; then
  46315. - $ECHO " - have your system administrator run these commands:$admincmds"
  46316. - fi
  46317. - if test -f /etc/ld.so.conf; then
  46318. - $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  46319. - fi
  46320. - $ECHO
  46321. -
  46322. - $ECHO "See any operating system documentation about shared libraries for"
  46323. - case $host in
  46324. - solaris2.[6789]|solaris2.1[0-9])
  46325. - $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  46326. - $ECHO "pages."
  46327. - ;;
  46328. - *)
  46329. - $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  46330. - ;;
  46331. - esac
  46332. - $ECHO "X----------------------------------------------------------------------" | $Xsed
  46333. - exit $EXIT_SUCCESS
  46334. -}
  46335. -
  46336. -
  46337. -# func_mode_install arg...
  46338. -func_mode_install ()
  46339. -{
  46340. - $opt_debug
  46341. - # There may be an optional sh(1) argument at the beginning of
  46342. - # install_prog (especially on Windows NT).
  46343. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  46344. - # Allow the use of GNU shtool's install command.
  46345. - $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  46346. - # Aesthetically quote it.
  46347. - func_quote_for_eval "$nonopt"
  46348. - install_prog="$func_quote_for_eval_result "
  46349. - arg=$1
  46350. - shift
  46351. - else
  46352. - install_prog=
  46353. - arg=$nonopt
  46354. - fi
  46355. -
  46356. - # The real first argument should be the name of the installation program.
  46357. - # Aesthetically quote it.
  46358. - func_quote_for_eval "$arg"
  46359. - install_prog="$install_prog$func_quote_for_eval_result"
  46360. -
  46361. - # We need to accept at least all the BSD install flags.
  46362. - dest=
  46363. - files=
  46364. - opts=
  46365. - prev=
  46366. - install_type=
  46367. - isdir=no
  46368. - stripme=
  46369. - for arg
  46370. - do
  46371. - if test -n "$dest"; then
  46372. - files="$files $dest"
  46373. - dest=$arg
  46374. - continue
  46375. - fi
  46376. -
  46377. - case $arg in
  46378. - -d) isdir=yes ;;
  46379. - -f)
  46380. - case " $install_prog " in
  46381. - *[\\\ /]cp\ *) ;;
  46382. - *) prev=$arg ;;
  46383. - esac
  46384. - ;;
  46385. - -g | -m | -o)
  46386. - prev=$arg
  46387. - ;;
  46388. - -s)
  46389. - stripme=" -s"
  46390. - continue
  46391. - ;;
  46392. - -*)
  46393. - ;;
  46394. - *)
  46395. - # If the previous option needed an argument, then skip it.
  46396. - if test -n "$prev"; then
  46397. - prev=
  46398. - else
  46399. - dest=$arg
  46400. - continue
  46401. - fi
  46402. - ;;
  46403. - esac
  46404. -
  46405. - # Aesthetically quote the argument.
  46406. - func_quote_for_eval "$arg"
  46407. - install_prog="$install_prog $func_quote_for_eval_result"
  46408. - done
  46409. -
  46410. - test -z "$install_prog" && \
  46411. - func_fatal_help "you must specify an install program"
  46412. -
  46413. - test -n "$prev" && \
  46414. - func_fatal_help "the \`$prev' option requires an argument"
  46415. -
  46416. - if test -z "$files"; then
  46417. - if test -z "$dest"; then
  46418. - func_fatal_help "no file or destination specified"
  46419. - else
  46420. - func_fatal_help "you must specify a destination"
  46421. - fi
  46422. - fi
  46423. -
  46424. - # Strip any trailing slash from the destination.
  46425. - func_stripname '' '/' "$dest"
  46426. - dest=$func_stripname_result
  46427. -
  46428. - # Check to see that the destination is a directory.
  46429. - test -d "$dest" && isdir=yes
  46430. - if test "$isdir" = yes; then
  46431. - destdir="$dest"
  46432. - destname=
  46433. - else
  46434. - func_dirname "$dest" "" "."
  46435. - destdir="$func_dirname_result"
  46436. - func_basename "$dest"
  46437. - destname="$func_basename_result"
  46438. -
  46439. - # Not a directory, so check to see that there is only one file specified.
  46440. - set dummy $files; shift
  46441. - test "$#" -gt 1 && \
  46442. - func_fatal_help "\`$dest' is not a directory"
  46443. - fi
  46444. - case $destdir in
  46445. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  46446. - *)
  46447. - for file in $files; do
  46448. - case $file in
  46449. - *.lo) ;;
  46450. - *)
  46451. - func_fatal_help "\`$destdir' must be an absolute directory name"
  46452. - ;;
  46453. - esac
  46454. - done
  46455. - ;;
  46456. - esac
  46457. -
  46458. - # This variable tells wrapper scripts just to set variables rather
  46459. - # than running their programs.
  46460. - libtool_install_magic="$magic"
  46461. -
  46462. - staticlibs=
  46463. - future_libdirs=
  46464. - current_libdirs=
  46465. - for file in $files; do
  46466. -
  46467. - # Do each installation.
  46468. - case $file in
  46469. - *.$libext)
  46470. - # Do the static libraries later.
  46471. - staticlibs="$staticlibs $file"
  46472. - ;;
  46473. -
  46474. - *.la)
  46475. - # Check to see that this really is a libtool archive.
  46476. - func_lalib_unsafe_p "$file" \
  46477. - || func_fatal_help "\`$file' is not a valid libtool archive"
  46478. -
  46479. - library_names=
  46480. - old_library=
  46481. - relink_command=
  46482. - func_source "$file"
  46483. -
  46484. - # Add the libdir to current_libdirs if it is the destination.
  46485. - if test "X$destdir" = "X$libdir"; then
  46486. - case "$current_libdirs " in
  46487. - *" $libdir "*) ;;
  46488. - *) current_libdirs="$current_libdirs $libdir" ;;
  46489. - esac
  46490. - else
  46491. - # Note the libdir as a future libdir.
  46492. - case "$future_libdirs " in
  46493. - *" $libdir "*) ;;
  46494. - *) future_libdirs="$future_libdirs $libdir" ;;
  46495. - esac
  46496. - fi
  46497. -
  46498. - func_dirname "$file" "/" ""
  46499. - dir="$func_dirname_result"
  46500. - dir="$dir$objdir"
  46501. -
  46502. - if test -n "$relink_command"; then
  46503. - # Determine the prefix the user has applied to our future dir.
  46504. - inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  46505. -
  46506. - # Don't allow the user to place us outside of our expected
  46507. - # location b/c this prevents finding dependent libraries that
  46508. - # are installed to the same prefix.
  46509. - # At present, this check doesn't affect windows .dll's that
  46510. - # are installed into $libdir/../bin (currently, that works fine)
  46511. - # but it's something to keep an eye on.
  46512. - test "$inst_prefix_dir" = "$destdir" && \
  46513. - func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  46514. -
  46515. - if test -n "$inst_prefix_dir"; then
  46516. - # Stick the inst_prefix_dir data into the link command.
  46517. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  46518. - else
  46519. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  46520. - fi
  46521. -
  46522. - func_warning "relinking \`$file'"
  46523. - func_show_eval "$relink_command" \
  46524. - 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  46525. - fi
  46526. -
  46527. - # See the names of the shared library.
  46528. - set dummy $library_names; shift
  46529. - if test -n "$1"; then
  46530. - realname="$1"
  46531. - shift
  46532. -
  46533. - srcname="$realname"
  46534. - test -n "$relink_command" && srcname="$realname"T
  46535. -
  46536. - # Install the shared library and build the symlinks.
  46537. - func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  46538. - 'exit $?'
  46539. - tstripme="$stripme"
  46540. - case $host_os in
  46541. - cygwin* | mingw* | pw32*)
  46542. - case $realname in
  46543. - *.dll.a)
  46544. - tstripme=""
  46545. - ;;
  46546. - esac
  46547. - ;;
  46548. - esac
  46549. - if test -n "$tstripme" && test -n "$striplib"; then
  46550. - func_show_eval "$striplib $destdir/$realname" 'exit $?'
  46551. - fi
  46552. -
  46553. - if test "$#" -gt 0; then
  46554. - # Delete the old symlinks, and create new ones.
  46555. - # Try `ln -sf' first, because the `ln' binary might depend on
  46556. - # the symlink we replace! Solaris /bin/ln does not understand -f,
  46557. - # so we also need to try rm && ln -s.
  46558. - for linkname
  46559. - do
  46560. - test "$linkname" != "$realname" \
  46561. - && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  46562. - done
  46563. - fi
  46564. -
  46565. - # Do each command in the postinstall commands.
  46566. - lib="$destdir/$realname"
  46567. - func_execute_cmds "$postinstall_cmds" 'exit $?'
  46568. - fi
  46569. -
  46570. - # Install the pseudo-library for information purposes.
  46571. - func_basename "$file"
  46572. - name="$func_basename_result"
  46573. - instname="$dir/$name"i
  46574. - func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  46575. -
  46576. - # Maybe install the static library, too.
  46577. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  46578. - ;;
  46579. -
  46580. - *.lo)
  46581. - # Install (i.e. copy) a libtool object.
  46582. -
  46583. - # Figure out destination file name, if it wasn't already specified.
  46584. - if test -n "$destname"; then
  46585. - destfile="$destdir/$destname"
  46586. - else
  46587. - func_basename "$file"
  46588. - destfile="$func_basename_result"
  46589. - destfile="$destdir/$destfile"
  46590. - fi
  46591. -
  46592. - # Deduce the name of the destination old-style object file.
  46593. - case $destfile in
  46594. - *.lo)
  46595. - staticdest=`$ECHO "X$destfile" | $Xsed -e "$lo2o"`
  46596. - ;;
  46597. - *.$objext)
  46598. - staticdest="$destfile"
  46599. - destfile=
  46600. - ;;
  46601. - *)
  46602. - func_fatal_help "cannot copy a libtool object to \`$destfile'"
  46603. - ;;
  46604. - esac
  46605. -
  46606. - # Install the libtool object if requested.
  46607. - test -n "$destfile" && \
  46608. - func_show_eval "$install_prog $file $destfile" 'exit $?'
  46609. -
  46610. - # Install the old object if enabled.
  46611. - if test "$build_old_libs" = yes; then
  46612. - # Deduce the name of the old-style object file.
  46613. - staticobj=`$ECHO "X$file" | $Xsed -e "$lo2o"`
  46614. - func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  46615. - fi
  46616. - exit $EXIT_SUCCESS
  46617. - ;;
  46618. -
  46619. - *)
  46620. - # Figure out destination file name, if it wasn't already specified.
  46621. - if test -n "$destname"; then
  46622. - destfile="$destdir/$destname"
  46623. - else
  46624. - func_basename "$file"
  46625. - destfile="$func_basename_result"
  46626. - destfile="$destdir/$destfile"
  46627. - fi
  46628. -
  46629. - # If the file is missing, and there is a .exe on the end, strip it
  46630. - # because it is most likely a libtool script we actually want to
  46631. - # install
  46632. - stripped_ext=""
  46633. - case $file in
  46634. - *.exe)
  46635. - if test ! -f "$file"; then
  46636. - func_stripname '' '.exe' "$file"
  46637. - file=$func_stripname_result
  46638. - stripped_ext=".exe"
  46639. - fi
  46640. - ;;
  46641. - esac
  46642. -
  46643. - # Do a test to see if this is really a libtool program.
  46644. - case $host in
  46645. - *cygwin*|*mingw*)
  46646. - func_stripname '' '.exe' "$file"
  46647. - wrapper=$func_stripname_result
  46648. - ;;
  46649. - *)
  46650. - wrapper=$file
  46651. - ;;
  46652. - esac
  46653. - if func_ltwrapper_p "$wrapper"; then
  46654. - notinst_deplibs=
  46655. - relink_command=
  46656. -
  46657. - func_source "$wrapper"
  46658. -
  46659. - # Check the variables that should have been set.
  46660. - test -z "$generated_by_libtool_version" && \
  46661. - func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  46662. -
  46663. - finalize=yes
  46664. - for lib in $notinst_deplibs; do
  46665. - # Check to see that each library is installed.
  46666. - libdir=
  46667. - if test -f "$lib"; then
  46668. - func_source "$lib"
  46669. - fi
  46670. - libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  46671. - if test -n "$libdir" && test ! -f "$libfile"; then
  46672. - func_warning "\`$lib' has not been installed in \`$libdir'"
  46673. - finalize=no
  46674. - fi
  46675. - done
  46676. -
  46677. - relink_command=
  46678. - func_source "$wrapper"
  46679. -
  46680. - outputname=
  46681. - if test "$fast_install" = no && test -n "$relink_command"; then
  46682. - $opt_dry_run || {
  46683. - if test "$finalize" = yes; then
  46684. - tmpdir=`func_mktempdir`
  46685. - func_basename "$file$stripped_ext"
  46686. - file="$func_basename_result"
  46687. - outputname="$tmpdir/$file"
  46688. - # Replace the output file specification.
  46689. - relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  46690. -
  46691. - $opt_silent || {
  46692. - func_quote_for_expand "$relink_command"
  46693. - eval "func_echo $func_quote_for_expand_result"
  46694. - }
  46695. - if eval "$relink_command"; then :
  46696. - else
  46697. - func_error "error: relink \`$file' with the above command before installing it"
  46698. - $opt_dry_run || ${RM}r "$tmpdir"
  46699. - continue
  46700. - fi
  46701. - file="$outputname"
  46702. - else
  46703. - func_warning "cannot relink \`$file'"
  46704. - fi
  46705. - }
  46706. - else
  46707. - # Install the binary that we compiled earlier.
  46708. - file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  46709. - fi
  46710. - fi
  46711. -
  46712. - # remove .exe since cygwin /usr/bin/install will append another
  46713. - # one anyway
  46714. - case $install_prog,$host in
  46715. - */usr/bin/install*,*cygwin*)
  46716. - case $file:$destfile in
  46717. - *.exe:*.exe)
  46718. - # this is ok
  46719. - ;;
  46720. - *.exe:*)
  46721. - destfile=$destfile.exe
  46722. - ;;
  46723. - *:*.exe)
  46724. - func_stripname '' '.exe' "$destfile"
  46725. - destfile=$func_stripname_result
  46726. - ;;
  46727. - esac
  46728. - ;;
  46729. - esac
  46730. - func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  46731. - $opt_dry_run || if test -n "$outputname"; then
  46732. - ${RM}r "$tmpdir"
  46733. - fi
  46734. - ;;
  46735. - esac
  46736. - done
  46737. -
  46738. - for file in $staticlibs; do
  46739. - func_basename "$file"
  46740. - name="$func_basename_result"
  46741. -
  46742. - # Set up the ranlib parameters.
  46743. - oldlib="$destdir/$name"
  46744. -
  46745. - func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  46746. -
  46747. - if test -n "$stripme" && test -n "$old_striplib"; then
  46748. - func_show_eval "$old_striplib $oldlib" 'exit $?'
  46749. - fi
  46750. -
  46751. - # Do each command in the postinstall commands.
  46752. - func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  46753. - done
  46754. -
  46755. - test -n "$future_libdirs" && \
  46756. - func_warning "remember to run \`$progname --finish$future_libdirs'"
  46757. -
  46758. - if test -n "$current_libdirs"; then
  46759. - # Maybe just do a dry run.
  46760. - $opt_dry_run && current_libdirs=" -n$current_libdirs"
  46761. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  46762. - else
  46763. - exit $EXIT_SUCCESS
  46764. - fi
  46765. -}
  46766. -
  46767. -
  46768. -# func_mode_link arg...
  46769. -func_mode_link ()
  46770. -{
  46771. - $opt_debug
  46772. - case $host in
  46773. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  46774. - # It is impossible to link a dll without this setting, and
  46775. - # we shouldn't force the makefile maintainer to figure out
  46776. - # which system we are compiling for in order to pass an extra
  46777. - # flag for every libtool invocation.
  46778. - # allow_undefined=no
  46779. -
  46780. - # FIXME: Unfortunately, there are problems with the above when trying
  46781. - # to make a dll which has undefined symbols, in which case not
  46782. - # even a static library is built. For now, we need to specify
  46783. - # -no-undefined on the libtool link line when we can be certain
  46784. - # that all symbols are satisfied, otherwise we get a static library.
  46785. - allow_undefined=yes
  46786. - ;;
  46787. - *)
  46788. - allow_undefined=yes
  46789. - ;;
  46790. - esac
  46791. - libtool_args="$nonopt"
  46792. - base_compile="$nonopt $@"
  46793. - compile_command="$nonopt"
  46794. - finalize_command="$nonopt"
  46795. -
  46796. - compile_rpath=
  46797. - finalize_rpath=
  46798. - compile_shlibpath=
  46799. - finalize_shlibpath=
  46800. - convenience=
  46801. - old_convenience=
  46802. - deplibs=
  46803. - old_deplibs=
  46804. - compiler_flags=
  46805. - linker_flags=
  46806. - dllsearchpath=
  46807. - lib_search_path=`pwd`
  46808. - inst_prefix_dir=
  46809. - new_inherited_linker_flags=
  46810. -
  46811. - avoid_version=no
  46812. - dlfiles=
  46813. - dlprefiles=
  46814. - dlself=no
  46815. - export_dynamic=no
  46816. - export_symbols=
  46817. - export_symbols_regex=
  46818. - generated=
  46819. - libobjs=
  46820. - ltlibs=
  46821. - module=no
  46822. - no_install=no
  46823. - objs=
  46824. - non_pic_objects=
  46825. - precious_files_regex=
  46826. - prefer_static_libs=no
  46827. - preload=no
  46828. - prev=
  46829. - prevarg=
  46830. - release=
  46831. - rpath=
  46832. - xrpath=
  46833. - perm_rpath=
  46834. - temp_rpath=
  46835. - thread_safe=no
  46836. - vinfo=
  46837. - vinfo_number=no
  46838. - weak_libs=
  46839. - single_module="${wl}-single_module"
  46840. - func_infer_tag $base_compile
  46841. -
  46842. - # We need to know -static, to get the right output filenames.
  46843. - for arg
  46844. - do
  46845. - case $arg in
  46846. - -shared)
  46847. - test "$build_libtool_libs" != yes && \
  46848. - func_fatal_configuration "can not build a shared library"
  46849. - build_old_libs=no
  46850. - break
  46851. - ;;
  46852. - -all-static | -static)
  46853. - if test "X$arg" = "X-all-static"; then
  46854. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  46855. - func_warning "complete static linking is impossible in this configuration"
  46856. - fi
  46857. - if test -n "$link_static_flag"; then
  46858. - dlopen_self=$dlopen_self_static
  46859. - # See comment for -static flag below, for more details.
  46860. - compile_command="$compile_command $link_static_flag"
  46861. - finalize_command="$finalize_command $link_static_flag"
  46862. - fi
  46863. - prefer_static_libs=yes
  46864. - else
  46865. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  46866. - dlopen_self=$dlopen_self_static
  46867. - fi
  46868. - prefer_static_libs=built
  46869. - fi
  46870. - build_libtool_libs=no
  46871. - build_old_libs=yes
  46872. - break
  46873. - ;;
  46874. - esac
  46875. - done
  46876. -
  46877. - # See if our shared archives depend on static archives.
  46878. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  46879. -
  46880. - # Go through the arguments, transforming them on the way.
  46881. - while test "$#" -gt 0; do
  46882. - arg="$1"
  46883. - shift
  46884. - func_quote_for_eval "$arg"
  46885. - qarg="$func_quote_for_eval_unquoted_result"
  46886. - libtool_args="$libtool_args $func_quote_for_eval_result"
  46887. -
  46888. - # If the previous option needs an argument, assign it.
  46889. - if test -n "$prev"; then
  46890. - case $prev in
  46891. - output)
  46892. - compile_command="$compile_command @OUTPUT@"
  46893. - finalize_command="$finalize_command @OUTPUT@"
  46894. - ;;
  46895. - esac
  46896. -
  46897. - case $prev in
  46898. - dlfiles|dlprefiles)
  46899. - if test "$preload" = no; then
  46900. - # Add the symbol object into the linking commands.
  46901. - compile_command="$compile_command @SYMFILE@"
  46902. - finalize_command="$finalize_command @SYMFILE@"
  46903. - preload=yes
  46904. - fi
  46905. - case $arg in
  46906. - *.la | *.lo) ;; # We handle these cases below.
  46907. - force)
  46908. - if test "$dlself" = no; then
  46909. - dlself=needless
  46910. - export_dynamic=yes
  46911. - fi
  46912. - prev=
  46913. - continue
  46914. - ;;
  46915. - self)
  46916. - if test "$prev" = dlprefiles; then
  46917. - dlself=yes
  46918. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  46919. - dlself=yes
  46920. - else
  46921. - dlself=needless
  46922. - export_dynamic=yes
  46923. - fi
  46924. - prev=
  46925. - continue
  46926. - ;;
  46927. - *)
  46928. - if test "$prev" = dlfiles; then
  46929. - dlfiles="$dlfiles $arg"
  46930. - else
  46931. - dlprefiles="$dlprefiles $arg"
  46932. - fi
  46933. - prev=
  46934. - continue
  46935. - ;;
  46936. - esac
  46937. - ;;
  46938. - expsyms)
  46939. - export_symbols="$arg"
  46940. - test -f "$arg" \
  46941. - || func_fatal_error "symbol file \`$arg' does not exist"
  46942. - prev=
  46943. - continue
  46944. - ;;
  46945. - expsyms_regex)
  46946. - export_symbols_regex="$arg"
  46947. - prev=
  46948. - continue
  46949. - ;;
  46950. - framework)
  46951. - case $host in
  46952. - *-*-darwin*)
  46953. - case "$deplibs " in
  46954. - *" $qarg.ltframework "*) ;;
  46955. - *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  46956. - ;;
  46957. - esac
  46958. - ;;
  46959. - esac
  46960. - prev=
  46961. - continue
  46962. - ;;
  46963. - inst_prefix)
  46964. - inst_prefix_dir="$arg"
  46965. - prev=
  46966. - continue
  46967. - ;;
  46968. - objectlist)
  46969. - if test -f "$arg"; then
  46970. - save_arg=$arg
  46971. - moreargs=
  46972. - for fil in `cat "$save_arg"`
  46973. - do
  46974. -# moreargs="$moreargs $fil"
  46975. - arg=$fil
  46976. - # A libtool-controlled object.
  46977. -
  46978. - # Check to see that this really is a libtool object.
  46979. - if func_lalib_unsafe_p "$arg"; then
  46980. - pic_object=
  46981. - non_pic_object=
  46982. -
  46983. - # Read the .lo file
  46984. - func_source "$arg"
  46985. -
  46986. - if test -z "$pic_object" ||
  46987. - test -z "$non_pic_object" ||
  46988. - test "$pic_object" = none &&
  46989. - test "$non_pic_object" = none; then
  46990. - func_fatal_error "cannot find name of object for \`$arg'"
  46991. - fi
  46992. -
  46993. - # Extract subdirectory from the argument.
  46994. - func_dirname "$arg" "/" ""
  46995. - xdir="$func_dirname_result"
  46996. -
  46997. - if test "$pic_object" != none; then
  46998. - # Prepend the subdirectory the object is found in.
  46999. - pic_object="$xdir$pic_object"
  47000. -
  47001. - if test "$prev" = dlfiles; then
  47002. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47003. - dlfiles="$dlfiles $pic_object"
  47004. - prev=
  47005. - continue
  47006. - else
  47007. - # If libtool objects are unsupported, then we need to preload.
  47008. - prev=dlprefiles
  47009. - fi
  47010. - fi
  47011. -
  47012. - # CHECK ME: I think I busted this. -Ossama
  47013. - if test "$prev" = dlprefiles; then
  47014. - # Preload the old-style object.
  47015. - dlprefiles="$dlprefiles $pic_object"
  47016. - prev=
  47017. - fi
  47018. -
  47019. - # A PIC object.
  47020. - libobjs="$libobjs $pic_object"
  47021. - arg="$pic_object"
  47022. - fi
  47023. -
  47024. - # Non-PIC object.
  47025. - if test "$non_pic_object" != none; then
  47026. - # Prepend the subdirectory the object is found in.
  47027. - non_pic_object="$xdir$non_pic_object"
  47028. -
  47029. - # A standard non-PIC object
  47030. - non_pic_objects="$non_pic_objects $non_pic_object"
  47031. - if test -z "$pic_object" || test "$pic_object" = none ; then
  47032. - arg="$non_pic_object"
  47033. - fi
  47034. - else
  47035. - # If the PIC object exists, use it instead.
  47036. - # $xdir was prepended to $pic_object above.
  47037. - non_pic_object="$pic_object"
  47038. - non_pic_objects="$non_pic_objects $non_pic_object"
  47039. - fi
  47040. - else
  47041. - # Only an error if not doing a dry-run.
  47042. - if $opt_dry_run; then
  47043. - # Extract subdirectory from the argument.
  47044. - func_dirname "$arg" "/" ""
  47045. - xdir="$func_dirname_result"
  47046. -
  47047. - pic_object=`$ECHO "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  47048. - non_pic_object=`$ECHO "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  47049. - libobjs="$libobjs $pic_object"
  47050. - non_pic_objects="$non_pic_objects $non_pic_object"
  47051. - else
  47052. - func_fatal_error "\`$arg' is not a valid libtool object"
  47053. - fi
  47054. - fi
  47055. - done
  47056. - else
  47057. - func_fatal_error "link input file \`$arg' does not exist"
  47058. - fi
  47059. - arg=$save_arg
  47060. - prev=
  47061. - continue
  47062. - ;;
  47063. - precious_regex)
  47064. - precious_files_regex="$arg"
  47065. - prev=
  47066. - continue
  47067. - ;;
  47068. - release)
  47069. - release="-$arg"
  47070. - prev=
  47071. - continue
  47072. - ;;
  47073. - rpath | xrpath)
  47074. - # We need an absolute path.
  47075. - case $arg in
  47076. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47077. - *)
  47078. - func_fatal_error "only absolute run-paths are allowed"
  47079. - ;;
  47080. - esac
  47081. - if test "$prev" = rpath; then
  47082. - case "$rpath " in
  47083. - *" $arg "*) ;;
  47084. - *) rpath="$rpath $arg" ;;
  47085. - esac
  47086. - else
  47087. - case "$xrpath " in
  47088. - *" $arg "*) ;;
  47089. - *) xrpath="$xrpath $arg" ;;
  47090. - esac
  47091. - fi
  47092. - prev=
  47093. - continue
  47094. - ;;
  47095. - shrext)
  47096. - shrext_cmds="$arg"
  47097. - prev=
  47098. - continue
  47099. - ;;
  47100. - weak)
  47101. - weak_libs="$weak_libs $arg"
  47102. - prev=
  47103. - continue
  47104. - ;;
  47105. - xcclinker)
  47106. - linker_flags="$linker_flags $qarg"
  47107. - compiler_flags="$compiler_flags $qarg"
  47108. - prev=
  47109. - compile_command="$compile_command $qarg"
  47110. - finalize_command="$finalize_command $qarg"
  47111. - continue
  47112. - ;;
  47113. - xcompiler)
  47114. - compiler_flags="$compiler_flags $qarg"
  47115. - prev=
  47116. - compile_command="$compile_command $qarg"
  47117. - finalize_command="$finalize_command $qarg"
  47118. - continue
  47119. - ;;
  47120. - xlinker)
  47121. - linker_flags="$linker_flags $qarg"
  47122. - compiler_flags="$compiler_flags $wl$qarg"
  47123. - prev=
  47124. - compile_command="$compile_command $wl$qarg"
  47125. - finalize_command="$finalize_command $wl$qarg"
  47126. - continue
  47127. - ;;
  47128. - *)
  47129. - eval "$prev=\"\$arg\""
  47130. - prev=
  47131. - continue
  47132. - ;;
  47133. - esac
  47134. - fi # test -n "$prev"
  47135. -
  47136. - prevarg="$arg"
  47137. -
  47138. - case $arg in
  47139. - -all-static)
  47140. - # The effects of -all-static are defined in a previous loop.
  47141. - continue
  47142. - ;;
  47143. -
  47144. - -allow-undefined)
  47145. - # FIXME: remove this flag sometime in the future.
  47146. - func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  47147. - ;;
  47148. -
  47149. - -avoid-version)
  47150. - avoid_version=yes
  47151. - continue
  47152. - ;;
  47153. -
  47154. - -dlopen)
  47155. - prev=dlfiles
  47156. - continue
  47157. - ;;
  47158. -
  47159. - -dlpreopen)
  47160. - prev=dlprefiles
  47161. - continue
  47162. - ;;
  47163. -
  47164. - -export-dynamic)
  47165. - export_dynamic=yes
  47166. - continue
  47167. - ;;
  47168. -
  47169. - -export-symbols | -export-symbols-regex)
  47170. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  47171. - func_fatal_error "more than one -exported-symbols argument is not allowed"
  47172. - fi
  47173. - if test "X$arg" = "X-export-symbols"; then
  47174. - prev=expsyms
  47175. - else
  47176. - prev=expsyms_regex
  47177. - fi
  47178. - continue
  47179. - ;;
  47180. -
  47181. - -framework)
  47182. - prev=framework
  47183. - continue
  47184. - ;;
  47185. -
  47186. - -inst-prefix-dir)
  47187. - prev=inst_prefix
  47188. - continue
  47189. - ;;
  47190. -
  47191. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  47192. - # so, if we see these flags be careful not to treat them like -L
  47193. - -L[A-Z][A-Z]*:*)
  47194. - case $with_gcc/$host in
  47195. - no/*-*-irix* | /*-*-irix*)
  47196. - compile_command="$compile_command $arg"
  47197. - finalize_command="$finalize_command $arg"
  47198. - ;;
  47199. - esac
  47200. - continue
  47201. - ;;
  47202. -
  47203. - -L*)
  47204. - func_stripname '-L' '' "$arg"
  47205. - dir=$func_stripname_result
  47206. - # We need an absolute path.
  47207. - case $dir in
  47208. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47209. - *)
  47210. - absdir=`cd "$dir" && pwd`
  47211. - test -z "$absdir" && \
  47212. - func_fatal_error "cannot determine absolute directory name of \`$dir'"
  47213. - dir="$absdir"
  47214. - ;;
  47215. - esac
  47216. - case "$deplibs " in
  47217. - *" -L$dir "*) ;;
  47218. - *)
  47219. - deplibs="$deplibs -L$dir"
  47220. - lib_search_path="$lib_search_path $dir"
  47221. - ;;
  47222. - esac
  47223. - case $host in
  47224. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47225. - testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  47226. - case :$dllsearchpath: in
  47227. - *":$dir:"*) ;;
  47228. - *) dllsearchpath="$dllsearchpath:$dir";;
  47229. - esac
  47230. - case :$dllsearchpath: in
  47231. - *":$testbindir:"*) ;;
  47232. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  47233. - esac
  47234. - ;;
  47235. - esac
  47236. - continue
  47237. - ;;
  47238. -
  47239. - -l*)
  47240. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  47241. - case $host in
  47242. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
  47243. - # These systems don't actually have a C or math library (as such)
  47244. - continue
  47245. - ;;
  47246. - *-*-os2*)
  47247. - # These systems don't actually have a C library (as such)
  47248. - test "X$arg" = "X-lc" && continue
  47249. - ;;
  47250. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47251. - # Do not include libc due to us having libc/libc_r.
  47252. - test "X$arg" = "X-lc" && continue
  47253. - ;;
  47254. - *-*-rhapsody* | *-*-darwin1.[012])
  47255. - # Rhapsody C and math libraries are in the System framework
  47256. - deplibs="$deplibs System.ltframework"
  47257. - continue
  47258. - ;;
  47259. - *-*-sco3.2v5* | *-*-sco5v6*)
  47260. - # Causes problems with __ctype
  47261. - test "X$arg" = "X-lc" && continue
  47262. - ;;
  47263. - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  47264. - # Compiler inserts libc in the correct place for threads to work
  47265. - test "X$arg" = "X-lc" && continue
  47266. - ;;
  47267. - esac
  47268. - elif test "X$arg" = "X-lc_r"; then
  47269. - case $host in
  47270. - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  47271. - # Do not include libc_r directly, use -pthread flag.
  47272. - continue
  47273. - ;;
  47274. - esac
  47275. - fi
  47276. - deplibs="$deplibs $arg"
  47277. - continue
  47278. - ;;
  47279. -
  47280. - -module)
  47281. - module=yes
  47282. - continue
  47283. - ;;
  47284. -
  47285. - # Tru64 UNIX uses -model [arg] to determine the layout of C++
  47286. - # classes, name mangling, and exception handling.
  47287. - # Darwin uses the -arch flag to determine output architecture.
  47288. - -model|-arch|-isysroot)
  47289. - compile_command="$compile_command $arg"
  47290. - compiler_flags="$compiler_flags $arg"
  47291. - finalize_command="$finalize_command $arg"
  47292. - prev=xcompiler
  47293. - continue
  47294. - ;;
  47295. -
  47296. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  47297. - compiler_flags="$compiler_flags $arg"
  47298. - compile_command="$compile_command $arg"
  47299. - finalize_command="$finalize_command $arg"
  47300. - case "$new_inherited_linker_flags " in
  47301. - *" $arg "*) ;;
  47302. - * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  47303. - esac
  47304. - continue
  47305. - ;;
  47306. -
  47307. - -multi_module)
  47308. - single_module="${wl}-multi_module"
  47309. - continue
  47310. - ;;
  47311. -
  47312. - -no-fast-install)
  47313. - fast_install=no
  47314. - continue
  47315. - ;;
  47316. -
  47317. - -no-install)
  47318. - case $host in
  47319. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  47320. - # The PATH hackery in wrapper scripts is required on Windows
  47321. - # in order for the loader to find any dlls it needs.
  47322. - func_warning "\`-no-install' is ignored for $host"
  47323. - func_warning "assuming \`-no-fast-install' instead"
  47324. - fast_install=no
  47325. - ;;
  47326. - *) no_install=yes ;;
  47327. - esac
  47328. - continue
  47329. - ;;
  47330. -
  47331. - -no-undefined)
  47332. - allow_undefined=no
  47333. - continue
  47334. - ;;
  47335. -
  47336. - -objectlist)
  47337. - prev=objectlist
  47338. - continue
  47339. - ;;
  47340. -
  47341. - -o) prev=output ;;
  47342. -
  47343. - -precious-files-regex)
  47344. - prev=precious_regex
  47345. - continue
  47346. - ;;
  47347. -
  47348. - -release)
  47349. - prev=release
  47350. - continue
  47351. - ;;
  47352. -
  47353. - -rpath)
  47354. - prev=rpath
  47355. - continue
  47356. - ;;
  47357. -
  47358. - -R)
  47359. - prev=xrpath
  47360. - continue
  47361. - ;;
  47362. -
  47363. - -R*)
  47364. - func_stripname '-R' '' "$arg"
  47365. - dir=$func_stripname_result
  47366. - # We need an absolute path.
  47367. - case $dir in
  47368. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  47369. - *)
  47370. - func_fatal_error "only absolute run-paths are allowed"
  47371. - ;;
  47372. - esac
  47373. - case "$xrpath " in
  47374. - *" $dir "*) ;;
  47375. - *) xrpath="$xrpath $dir" ;;
  47376. - esac
  47377. - continue
  47378. - ;;
  47379. -
  47380. - -shared)
  47381. - # The effects of -shared are defined in a previous loop.
  47382. - continue
  47383. - ;;
  47384. -
  47385. - -shrext)
  47386. - prev=shrext
  47387. - continue
  47388. - ;;
  47389. -
  47390. - -static)
  47391. - # The effects of -static are defined in a previous loop.
  47392. - # We used to do the same as -all-static on platforms that
  47393. - # didn't have a PIC flag, but the assumption that the effects
  47394. - # would be equivalent was wrong. It would break on at least
  47395. - # Digital Unix and AIX.
  47396. - continue
  47397. - ;;
  47398. -
  47399. - -thread-safe)
  47400. - thread_safe=yes
  47401. - continue
  47402. - ;;
  47403. -
  47404. - -version-info)
  47405. - prev=vinfo
  47406. - continue
  47407. - ;;
  47408. -
  47409. - -version-number)
  47410. - prev=vinfo
  47411. - vinfo_number=yes
  47412. - continue
  47413. - ;;
  47414. -
  47415. - -weak)
  47416. - prev=weak
  47417. - continue
  47418. - ;;
  47419. -
  47420. - -Wc,*)
  47421. - func_stripname '-Wc,' '' "$arg"
  47422. - args=$func_stripname_result
  47423. - arg=
  47424. - save_ifs="$IFS"; IFS=','
  47425. - for flag in $args; do
  47426. - IFS="$save_ifs"
  47427. - func_quote_for_eval "$flag"
  47428. - arg="$arg $wl$func_quote_for_eval_result"
  47429. - compiler_flags="$compiler_flags $func_quote_for_eval_result"
  47430. - done
  47431. - IFS="$save_ifs"
  47432. - func_stripname ' ' '' "$arg"
  47433. - arg=$func_stripname_result
  47434. - ;;
  47435. -
  47436. - -Wl,*)
  47437. - func_stripname '-Wl,' '' "$arg"
  47438. - args=$func_stripname_result
  47439. - arg=
  47440. - save_ifs="$IFS"; IFS=','
  47441. - for flag in $args; do
  47442. - IFS="$save_ifs"
  47443. - func_quote_for_eval "$flag"
  47444. - arg="$arg $wl$func_quote_for_eval_result"
  47445. - compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  47446. - linker_flags="$linker_flags $func_quote_for_eval_result"
  47447. - done
  47448. - IFS="$save_ifs"
  47449. - func_stripname ' ' '' "$arg"
  47450. - arg=$func_stripname_result
  47451. - ;;
  47452. -
  47453. - -Xcompiler)
  47454. - prev=xcompiler
  47455. - continue
  47456. - ;;
  47457. -
  47458. - -Xlinker)
  47459. - prev=xlinker
  47460. - continue
  47461. - ;;
  47462. -
  47463. - -XCClinker)
  47464. - prev=xcclinker
  47465. - continue
  47466. - ;;
  47467. -
  47468. - # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  47469. - # -r[0-9][0-9]* specifies the processor on the SGI compiler
  47470. - # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  47471. - # +DA*, +DD* enable 64-bit mode on the HP compiler
  47472. - # -q* pass through compiler args for the IBM compiler
  47473. - # -m*, -t[45]*, -txscale* pass through architecture-specific
  47474. - # compiler args for GCC
  47475. - # @file GCC response files
  47476. - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  47477. - -t[45]*|-txscale*|@*)
  47478. - func_quote_for_eval "$arg"
  47479. - arg="$func_quote_for_eval_result"
  47480. - compile_command="$compile_command $arg"
  47481. - finalize_command="$finalize_command $arg"
  47482. - compiler_flags="$compiler_flags $arg"
  47483. - continue
  47484. - ;;
  47485. -
  47486. - # Some other compiler flag.
  47487. - -* | +*)
  47488. - func_quote_for_eval "$arg"
  47489. - arg="$func_quote_for_eval_result"
  47490. - ;;
  47491. -
  47492. - *.$objext)
  47493. - # A standard object.
  47494. - objs="$objs $arg"
  47495. - ;;
  47496. -
  47497. - *.lo)
  47498. - # A libtool-controlled object.
  47499. -
  47500. - # Check to see that this really is a libtool object.
  47501. - if func_lalib_unsafe_p "$arg"; then
  47502. - pic_object=
  47503. - non_pic_object=
  47504. -
  47505. - # Read the .lo file
  47506. - func_source "$arg"
  47507. -
  47508. - if test -z "$pic_object" ||
  47509. - test -z "$non_pic_object" ||
  47510. - test "$pic_object" = none &&
  47511. - test "$non_pic_object" = none; then
  47512. - func_fatal_error "cannot find name of object for \`$arg'"
  47513. - fi
  47514. -
  47515. - # Extract subdirectory from the argument.
  47516. - func_dirname "$arg" "/" ""
  47517. - xdir="$func_dirname_result"
  47518. -
  47519. - if test "$pic_object" != none; then
  47520. - # Prepend the subdirectory the object is found in.
  47521. - pic_object="$xdir$pic_object"
  47522. -
  47523. - if test "$prev" = dlfiles; then
  47524. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  47525. - dlfiles="$dlfiles $pic_object"
  47526. - prev=
  47527. - continue
  47528. - else
  47529. - # If libtool objects are unsupported, then we need to preload.
  47530. - prev=dlprefiles
  47531. - fi
  47532. - fi
  47533. -
  47534. - # CHECK ME: I think I busted this. -Ossama
  47535. - if test "$prev" = dlprefiles; then
  47536. - # Preload the old-style object.
  47537. - dlprefiles="$dlprefiles $pic_object"
  47538. - prev=
  47539. - fi
  47540. -
  47541. - # A PIC object.
  47542. - libobjs="$libobjs $pic_object"
  47543. - arg="$pic_object"
  47544. - fi
  47545. -
  47546. - # Non-PIC object.
  47547. - if test "$non_pic_object" != none; then
  47548. - # Prepend the subdirectory the object is found in.
  47549. - non_pic_object="$xdir$non_pic_object"
  47550. -
  47551. - # A standard non-PIC object
  47552. - non_pic_objects="$non_pic_objects $non_pic_object"
  47553. - if test -z "$pic_object" || test "$pic_object" = none ; then
  47554. - arg="$non_pic_object"
  47555. - fi
  47556. - else
  47557. - # If the PIC object exists, use it instead.
  47558. - # $xdir was prepended to $pic_object above.
  47559. - non_pic_object="$pic_object"
  47560. - non_pic_objects="$non_pic_objects $non_pic_object"
  47561. - fi
  47562. - else
  47563. - # Only an error if not doing a dry-run.
  47564. - if $opt_dry_run; then
  47565. - # Extract subdirectory from the argument.
  47566. - func_dirname "$arg" "/" ""
  47567. - xdir="$func_dirname_result"
  47568. -
  47569. - pic_object=`$ECHO "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  47570. - non_pic_object=`$ECHO "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  47571. - libobjs="$libobjs $pic_object"
  47572. - non_pic_objects="$non_pic_objects $non_pic_object"
  47573. - else
  47574. - func_fatal_error "\`$arg' is not a valid libtool object"
  47575. - fi
  47576. - fi
  47577. - ;;
  47578. -
  47579. - *.$libext)
  47580. - # An archive.
  47581. - deplibs="$deplibs $arg"
  47582. - old_deplibs="$old_deplibs $arg"
  47583. - continue
  47584. - ;;
  47585. -
  47586. - *.la)
  47587. - # A libtool-controlled library.
  47588. -
  47589. - if test "$prev" = dlfiles; then
  47590. - # This library was specified with -dlopen.
  47591. - dlfiles="$dlfiles $arg"
  47592. - prev=
  47593. - elif test "$prev" = dlprefiles; then
  47594. - # The library was specified with -dlpreopen.
  47595. - dlprefiles="$dlprefiles $arg"
  47596. - prev=
  47597. - else
  47598. - deplibs="$deplibs $arg"
  47599. - fi
  47600. - continue
  47601. - ;;
  47602. -
  47603. - # Some other compiler argument.
  47604. - *)
  47605. - # Unknown arguments in both finalize_command and compile_command need
  47606. - # to be aesthetically quoted because they are evaled later.
  47607. - func_quote_for_eval "$arg"
  47608. - arg="$func_quote_for_eval_result"
  47609. - ;;
  47610. - esac # arg
  47611. -
  47612. - # Now actually substitute the argument into the commands.
  47613. - if test -n "$arg"; then
  47614. - compile_command="$compile_command $arg"
  47615. - finalize_command="$finalize_command $arg"
  47616. - fi
  47617. - done # argument parsing loop
  47618. -
  47619. - test -n "$prev" && \
  47620. - func_fatal_help "the \`$prevarg' option requires an argument"
  47621. -
  47622. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  47623. - eval arg=\"$export_dynamic_flag_spec\"
  47624. - compile_command="$compile_command $arg"
  47625. - finalize_command="$finalize_command $arg"
  47626. - fi
  47627. -
  47628. - oldlibs=
  47629. - # calculate the name of the file, without its directory
  47630. - func_basename "$output"
  47631. - outputname="$func_basename_result"
  47632. - libobjs_save="$libobjs"
  47633. -
  47634. - if test -n "$shlibpath_var"; then
  47635. - # get the directories listed in $shlibpath_var
  47636. - eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  47637. - else
  47638. - shlib_search_path=
  47639. - fi
  47640. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  47641. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  47642. -
  47643. - func_dirname "$output" "/" ""
  47644. - output_objdir="$func_dirname_result$objdir"
  47645. - # Create the object directory.
  47646. - func_mkdir_p "$output_objdir"
  47647. -
  47648. - # Determine the type of output
  47649. - case $output in
  47650. - "")
  47651. - func_fatal_help "you must specify an output file"
  47652. - ;;
  47653. - *.$libext) linkmode=oldlib ;;
  47654. - *.lo | *.$objext) linkmode=obj ;;
  47655. - *.la) linkmode=lib ;;
  47656. - *) linkmode=prog ;; # Anything else should be a program.
  47657. - esac
  47658. -
  47659. - specialdeplibs=
  47660. -
  47661. - libs=
  47662. - # Find all interdependent deplibs by searching for libraries
  47663. - # that are linked more than once (e.g. -la -lb -la)
  47664. - for deplib in $deplibs; do
  47665. - if $opt_duplicate_deps ; then
  47666. - case "$libs " in
  47667. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  47668. - esac
  47669. - fi
  47670. - libs="$libs $deplib"
  47671. - done
  47672. -
  47673. - if test "$linkmode" = lib; then
  47674. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  47675. -
  47676. - # Compute libraries that are listed more than once in $predeps
  47677. - # $postdeps and mark them as special (i.e., whose duplicates are
  47678. - # not to be eliminated).
  47679. - pre_post_deps=
  47680. - if $opt_duplicate_compiler_generated_deps; then
  47681. - for pre_post_dep in $predeps $postdeps; do
  47682. - case "$pre_post_deps " in
  47683. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  47684. - esac
  47685. - pre_post_deps="$pre_post_deps $pre_post_dep"
  47686. - done
  47687. - fi
  47688. - pre_post_deps=
  47689. - fi
  47690. + pre_post_deps=
  47691. + fi
  47692. deplibs=
  47693. newdependency_libs=
  47694. newlib_search_path=
  47695. need_relink=no # whether we're linking any uninstalled libtool libraries
  47696. notinst_deplibs= # not-installed libtool libraries
  47697. - notinst_path= # paths that contain not-installed libtool libraries
  47698. -
  47699. case $linkmode in
  47700. lib)
  47701. - passes="conv dlpreopen link"
  47702. + passes="conv link"
  47703. for file in $dlfiles $dlprefiles; do
  47704. case $file in
  47705. *.la) ;;
  47706. *)
  47707. - func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  47708. + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  47709. + exit $EXIT_FAILURE
  47710. ;;
  47711. esac
  47712. done
  47713. @@ -3536,20 +2102,7 @@
  47714. *) passes="conv"
  47715. ;;
  47716. esac
  47717. -
  47718. for pass in $passes; do
  47719. - # The preopen pass in lib mode reverses $deplibs; put it back here
  47720. - # so that -L comes before libs that need it for instance...
  47721. - if test "$linkmode,$pass" = "lib,link"; then
  47722. - ## FIXME: Find the place where the list is rebuilt in the wrong
  47723. - ## order, and fix it there properly
  47724. - tmp_deplibs=
  47725. - for deplib in $deplibs; do
  47726. - tmp_deplibs="$deplib $tmp_deplibs"
  47727. - done
  47728. - deplibs="$tmp_deplibs"
  47729. - fi
  47730. -
  47731. if test "$linkmode,$pass" = "lib,link" ||
  47732. test "$linkmode,$pass" = "prog,scan"; then
  47733. libs="$deplibs"
  47734. @@ -3559,39 +2112,14 @@
  47735. case $pass in
  47736. dlopen) libs="$dlfiles" ;;
  47737. dlpreopen) libs="$dlprefiles" ;;
  47738. - link)
  47739. - libs="$deplibs %DEPLIBS%"
  47740. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  47741. - ;;
  47742. + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  47743. esac
  47744. fi
  47745. - if test "$linkmode,$pass" = "lib,dlpreopen"; then
  47746. - # Collect and forward deplibs of preopened libtool libs
  47747. - for lib in $dlprefiles; do
  47748. - # Ignore non-libtool-libs
  47749. - dependency_libs=
  47750. - case $lib in
  47751. - *.la) func_source "$lib" ;;
  47752. - esac
  47753. -
  47754. - # Collect preopened libtool deplibs, except any this library
  47755. - # has declared as weak libs
  47756. - for deplib in $dependency_libs; do
  47757. - deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  47758. - case " $weak_libs " in
  47759. - *" $deplib_base "*) ;;
  47760. - *) deplibs="$deplibs $deplib" ;;
  47761. - esac
  47762. - done
  47763. - done
  47764. - libs="$dlprefiles"
  47765. - fi
  47766. if test "$pass" = dlopen; then
  47767. # Collect dlpreopened libraries
  47768. save_deplibs="$deplibs"
  47769. deplibs=
  47770. fi
  47771. -
  47772. for deplib in $libs; do
  47773. lib=
  47774. found=no
  47775. @@ -3602,22 +2130,38 @@
  47776. finalize_deplibs="$deplib $finalize_deplibs"
  47777. else
  47778. compiler_flags="$compiler_flags $deplib"
  47779. - if test "$linkmode" = lib ; then
  47780. - case "$new_inherited_linker_flags " in
  47781. - *" $deplib "*) ;;
  47782. - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  47783. - esac
  47784. - fi
  47785. fi
  47786. +
  47787. + case $linkmode in
  47788. + lib)
  47789. + deplibs="$deplib $deplibs"
  47790. + test "$pass" = conv && continue
  47791. + newdependency_libs="$deplib $newdependency_libs"
  47792. + ;;
  47793. + prog)
  47794. + if test "$pass" = conv; then
  47795. + deplibs="$deplib $deplibs"
  47796. + continue
  47797. + fi
  47798. + if test "$pass" = scan; then
  47799. + deplibs="$deplib $deplibs"
  47800. + else
  47801. + compile_deplibs="$deplib $compile_deplibs"
  47802. + finalize_deplibs="$deplib $finalize_deplibs"
  47803. + fi
  47804. + ;;
  47805. + *)
  47806. + ;;
  47807. + esac # linkmode
  47808. +
  47809. continue
  47810. ;;
  47811. -l*)
  47812. if test "$linkmode" != lib && test "$linkmode" != prog; then
  47813. - func_warning "\`-l' is ignored for archives/objects"
  47814. + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  47815. continue
  47816. fi
  47817. - func_stripname '-l' '' "$deplib"
  47818. - name=$func_stripname_result
  47819. + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  47820. for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  47821. for search_ext in .la $std_shrext .so .a; do
  47822. # Search the libtool library
  47823. @@ -3648,17 +2192,21 @@
  47824. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  47825. case " $predeps $postdeps " in
  47826. *" $deplib "*)
  47827. - if func_lalib_p "$lib"; then
  47828. + if (${SED} -e '2q' $lib |
  47829. + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  47830. library_names=
  47831. old_library=
  47832. - func_source "$lib"
  47833. + case $lib in
  47834. + */* | *\\*) . $lib ;;
  47835. + *) . ./$lib ;;
  47836. + esac
  47837. for l in $old_library $library_names; do
  47838. ll="$l"
  47839. done
  47840. if test "X$ll" = "X$old_library" ; then # only static version available
  47841. found=no
  47842. - func_dirname "$lib" "" "."
  47843. - ladir="$func_dirname_result"
  47844. + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  47845. + test "X$ladir" = "X$lib" && ladir="."
  47846. lib=$ladir/$old_library
  47847. if test "$linkmode,$pass" = "prog,link"; then
  47848. compile_deplibs="$deplib $compile_deplibs"
  47849. @@ -3670,35 +2218,19 @@
  47850. continue
  47851. fi
  47852. fi
  47853. - ;;
  47854. + ;;
  47855. *) ;;
  47856. esac
  47857. fi
  47858. fi
  47859. ;; # -l
  47860. - *.ltframework)
  47861. - if test "$linkmode,$pass" = "prog,link"; then
  47862. - compile_deplibs="$deplib $compile_deplibs"
  47863. - finalize_deplibs="$deplib $finalize_deplibs"
  47864. - else
  47865. - deplibs="$deplib $deplibs"
  47866. - if test "$linkmode" = lib ; then
  47867. - case "$new_inherited_linker_flags " in
  47868. - *" $deplib "*) ;;
  47869. - * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  47870. - esac
  47871. - fi
  47872. - fi
  47873. - continue
  47874. - ;;
  47875. -L*)
  47876. case $linkmode in
  47877. lib)
  47878. deplibs="$deplib $deplibs"
  47879. test "$pass" = conv && continue
  47880. newdependency_libs="$deplib $newdependency_libs"
  47881. - func_stripname '-L' '' "$deplib"
  47882. - newlib_search_path="$newlib_search_path $func_stripname_result"
  47883. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  47884. ;;
  47885. prog)
  47886. if test "$pass" = conv; then
  47887. @@ -3711,19 +2243,17 @@
  47888. compile_deplibs="$deplib $compile_deplibs"
  47889. finalize_deplibs="$deplib $finalize_deplibs"
  47890. fi
  47891. - func_stripname '-L' '' "$deplib"
  47892. - newlib_search_path="$newlib_search_path $func_stripname_result"
  47893. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  47894. ;;
  47895. *)
  47896. - func_warning "\`-L' is ignored for archives/objects"
  47897. + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  47898. ;;
  47899. esac # linkmode
  47900. continue
  47901. ;; # -L
  47902. -R*)
  47903. if test "$pass" = link; then
  47904. - func_stripname '-R' '' "$deplib"
  47905. - dir=$func_stripname_result
  47906. + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  47907. # Make sure the xrpath contains only unique directories.
  47908. case "$xrpath " in
  47909. *" $dir "*) ;;
  47910. @@ -3741,41 +2271,35 @@
  47911. fi
  47912. case $linkmode in
  47913. lib)
  47914. - # Linking convenience modules into shared libraries is allowed,
  47915. - # but linking other static libraries is non-portable.
  47916. - case " $dlpreconveniencelibs " in
  47917. - *" $lib "*) ;;
  47918. - *)
  47919. - valid_a_lib=no
  47920. - case $deplibs_check_method in
  47921. - match_pattern*)
  47922. - set dummy $deplibs_check_method; shift
  47923. - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  47924. - if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  47925. + valid_a_lib=no
  47926. + case $deplibs_check_method in
  47927. + match_pattern*)
  47928. + set dummy $deplibs_check_method
  47929. + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  47930. + if eval $echo \"$deplib\" 2>/dev/null \
  47931. + | $SED 10q \
  47932. | $EGREP "$match_pattern_regex" > /dev/null; then
  47933. - valid_a_lib=yes
  47934. - fi
  47935. - ;;
  47936. - pass_all)
  47937. valid_a_lib=yes
  47938. + fi
  47939. ;;
  47940. - esac
  47941. - if test "$valid_a_lib" != yes; then
  47942. - $ECHO
  47943. - $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  47944. - $ECHO "*** I have the capability to make that library automatically link in when"
  47945. - $ECHO "*** you link to this library. But I can only do this if you have a"
  47946. - $ECHO "*** shared version of the library, which you do not appear to have"
  47947. - $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  47948. - $ECHO "*** that it is just a static archive that I should not use here."
  47949. - else
  47950. - $ECHO
  47951. - $ECHO "*** Warning: Linking the shared library $output against the"
  47952. - $ECHO "*** static library $deplib is not portable!"
  47953. - deplibs="$deplib $deplibs"
  47954. - fi
  47955. - ;;
  47956. - esac
  47957. + pass_all)
  47958. + valid_a_lib=yes
  47959. + ;;
  47960. + esac
  47961. + if test "$valid_a_lib" != yes; then
  47962. + $echo
  47963. + $echo "*** Warning: Trying to link with static lib archive $deplib."
  47964. + $echo "*** I have the capability to make that library automatically link in when"
  47965. + $echo "*** you link to this library. But I can only do this if you have a"
  47966. + $echo "*** shared version of the library, which you do not appear to have"
  47967. + $echo "*** because the file extensions .$libext of this argument makes me believe"
  47968. + $echo "*** that it is just a static archive that I should not used here."
  47969. + else
  47970. + $echo
  47971. + $echo "*** Warning: Linking the shared library $output against the"
  47972. + $echo "*** static library $deplib is not portable!"
  47973. + deplibs="$deplib $deplibs"
  47974. + fi
  47975. continue
  47976. ;;
  47977. prog)
  47978. @@ -3810,18 +2334,21 @@
  47979. continue
  47980. ;;
  47981. esac # case $deplib
  47982. -
  47983. if test "$found" = yes || test -f "$lib"; then :
  47984. else
  47985. - func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  47986. + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
  47987. + exit $EXIT_FAILURE
  47988. fi
  47989. # Check to see that this really is a libtool archive.
  47990. - func_lalib_unsafe_p "$lib" \
  47991. - || func_fatal_error "\`$lib' is not a valid libtool archive"
  47992. + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  47993. + else
  47994. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  47995. + exit $EXIT_FAILURE
  47996. + fi
  47997. - func_dirname "$lib" "" "."
  47998. - ladir="$func_dirname_result"
  47999. + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  48000. + test "X$ladir" = "X$lib" && ladir="."
  48001. dlname=
  48002. dlopen=
  48003. @@ -3829,7 +2356,6 @@
  48004. libdir=
  48005. library_names=
  48006. old_library=
  48007. - inherited_linker_flags=
  48008. # If the library was installed with an old release of libtool,
  48009. # it will not redefine variables installed, or shouldnotlink
  48010. installed=yes
  48011. @@ -3838,25 +2364,11 @@
  48012. # Read the .la file
  48013. - func_source "$lib"
  48014. + case $lib in
  48015. + */* | *\\*) . $lib ;;
  48016. + *) . ./$lib ;;
  48017. + esac
  48018. - # Convert "-framework foo" to "foo.ltframework"
  48019. - if test -n "$inherited_linker_flags"; then
  48020. - tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  48021. - for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  48022. - case " $new_inherited_linker_flags " in
  48023. - *" $tmp_inherited_linker_flag "*) ;;
  48024. - *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  48025. - esac
  48026. - done
  48027. - fi
  48028. - dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  48029. - if test "$linkmode,$pass" = "prog,link"; then
  48030. - compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  48031. - finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  48032. - else
  48033. - compiler_flags="$compiler_flags $inherited_linker_flags"
  48034. - fi
  48035. if test "$linkmode,$pass" = "lib,link" ||
  48036. test "$linkmode,$pass" = "prog,scan" ||
  48037. { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  48038. @@ -3869,24 +2381,26 @@
  48039. deplibs="$lib $deplibs"
  48040. if test -z "$libdir"; then
  48041. if test -z "$old_library"; then
  48042. - func_fatal_error "cannot find name of link library for \`$lib'"
  48043. + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  48044. + exit $EXIT_FAILURE
  48045. fi
  48046. # It is a libtool convenience library, so add in its objects.
  48047. convenience="$convenience $ladir/$objdir/$old_library"
  48048. old_convenience="$old_convenience $ladir/$objdir/$old_library"
  48049. + tmp_libs=
  48050. + for deplib in $dependency_libs; do
  48051. + deplibs="$deplib $deplibs"
  48052. + if test "X$duplicate_deps" = "Xyes" ; then
  48053. + case "$tmp_libs " in
  48054. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48055. + esac
  48056. + fi
  48057. + tmp_libs="$tmp_libs $deplib"
  48058. + done
  48059. elif test "$linkmode" != prog && test "$linkmode" != lib; then
  48060. - func_fatal_error "\`$lib' is not a convenience library"
  48061. + $echo "$modename: \`$lib' is not a convenience library" 1>&2
  48062. + exit $EXIT_FAILURE
  48063. fi
  48064. - tmp_libs=
  48065. - for deplib in $dependency_libs; do
  48066. - deplibs="$deplib $deplibs"
  48067. - if $opt_duplicate_deps ; then
  48068. - case "$tmp_libs " in
  48069. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48070. - esac
  48071. - fi
  48072. - tmp_libs="$tmp_libs $deplib"
  48073. - done
  48074. continue
  48075. fi # $pass = conv
  48076. @@ -3897,13 +2411,15 @@
  48077. linklib="$l"
  48078. done
  48079. if test -z "$linklib"; then
  48080. - func_fatal_error "cannot find name of link library for \`$lib'"
  48081. + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  48082. + exit $EXIT_FAILURE
  48083. fi
  48084. # This library was specified with -dlopen.
  48085. if test "$pass" = dlopen; then
  48086. if test -z "$libdir"; then
  48087. - func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  48088. + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  48089. + exit $EXIT_FAILURE
  48090. fi
  48091. if test -z "$dlname" ||
  48092. test "$dlopen_support" != yes ||
  48093. @@ -3925,19 +2441,18 @@
  48094. *)
  48095. abs_ladir=`cd "$ladir" && pwd`
  48096. if test -z "$abs_ladir"; then
  48097. - func_warning "cannot determine absolute directory name of \`$ladir'"
  48098. - func_warning "passing it literally to the linker, although it might fail"
  48099. + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  48100. + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  48101. abs_ladir="$ladir"
  48102. fi
  48103. ;;
  48104. esac
  48105. - func_basename "$lib"
  48106. - laname="$func_basename_result"
  48107. + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  48108. # Find the relevant object directory and library name.
  48109. if test "X$installed" = Xyes; then
  48110. if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  48111. - func_warning "library \`$lib' was moved."
  48112. + $echo "$modename: warning: library \`$lib' was moved." 1>&2
  48113. dir="$ladir"
  48114. absdir="$abs_ladir"
  48115. libdir="$abs_ladir"
  48116. @@ -3959,22 +2474,18 @@
  48117. notinst_path="$notinst_path $abs_ladir"
  48118. fi
  48119. fi # $installed = yes
  48120. - func_stripname 'lib' '.la' "$laname"
  48121. - name=$func_stripname_result
  48122. + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  48123. # This library was specified with -dlpreopen.
  48124. if test "$pass" = dlpreopen; then
  48125. - if test -z "$libdir" && test "$linkmode" = prog; then
  48126. - func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  48127. + if test -z "$libdir"; then
  48128. + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  48129. + exit $EXIT_FAILURE
  48130. fi
  48131. # Prefer using a static library (so that no silly _DYNAMIC symbols
  48132. # are required to link).
  48133. if test -n "$old_library"; then
  48134. newdlprefiles="$newdlprefiles $dir/$old_library"
  48135. - # Keep a list of preopened convenience libraries to check
  48136. - # that they are being used correctly in the link pass.
  48137. - test -z "$libdir" && \
  48138. - dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  48139. # Otherwise, use the dlname, so that lt_dlopen finds it.
  48140. elif test -n "$dlname"; then
  48141. newdlprefiles="$newdlprefiles $dir/$dlname"
  48142. @@ -4010,9 +2521,7 @@
  48143. tmp_libs=
  48144. for deplib in $dependency_libs; do
  48145. case $deplib in
  48146. - -L*) func_stripname '-L' '' "$deplib"
  48147. - newlib_search_path="$newlib_search_path $func_stripname_result"
  48148. - ;;
  48149. + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  48150. esac
  48151. # Need to link against all dependency_libs?
  48152. if test "$linkalldeplibs" = yes; then
  48153. @@ -4022,7 +2531,7 @@
  48154. # or/and link against static libraries
  48155. newdependency_libs="$deplib $newdependency_libs"
  48156. fi
  48157. - if $opt_duplicate_deps ; then
  48158. + if test "X$duplicate_deps" = "Xyes" ; then
  48159. case "$tmp_libs " in
  48160. *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48161. esac
  48162. @@ -4039,8 +2548,9 @@
  48163. if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  48164. # Make sure the rpath contains only unique directories.
  48165. case "$temp_rpath " in
  48166. - *"$absdir:"*) ;;
  48167. - *) temp_rpath="$temp_rpath:$absdir" ;;
  48168. + *" $dir "*) ;;
  48169. + *" $absdir "*) ;;
  48170. + *) temp_rpath="$temp_rpath $absdir" ;;
  48171. esac
  48172. fi
  48173. @@ -4078,43 +2588,27 @@
  48174. link_static=no # Whether the deplib will be linked statically
  48175. use_static_libs=$prefer_static_libs
  48176. - if test "$use_static_libs" = built && test "$installed" = yes; then
  48177. + if test "$use_static_libs" = built && test "$installed" = yes ; then
  48178. use_static_libs=no
  48179. fi
  48180. if test -n "$library_names" &&
  48181. { test "$use_static_libs" = no || test -z "$old_library"; }; then
  48182. - case $host in
  48183. - *cygwin* | *mingw*)
  48184. - # No point in relinking DLLs because paths are not encoded
  48185. - notinst_deplibs="$notinst_deplibs $lib"
  48186. - need_relink=no
  48187. - ;;
  48188. - *)
  48189. - if test "$installed" = no; then
  48190. - notinst_deplibs="$notinst_deplibs $lib"
  48191. - need_relink=yes
  48192. - fi
  48193. - ;;
  48194. - esac
  48195. + if test "$installed" = no; then
  48196. + notinst_deplibs="$notinst_deplibs $lib"
  48197. + need_relink=yes
  48198. + fi
  48199. # This is a shared library
  48200. - # Warn about portability, can't link against -module's on some
  48201. - # systems (darwin). Don't bleat about dlopened modules though!
  48202. - dlopenmodule=""
  48203. - for dlpremoduletest in $dlprefiles; do
  48204. - if test "X$dlpremoduletest" = "X$lib"; then
  48205. - dlopenmodule="$dlpremoduletest"
  48206. - break
  48207. - fi
  48208. - done
  48209. - if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  48210. - $ECHO
  48211. + # Warn about portability, can't link against -module's on
  48212. + # some systems (darwin)
  48213. + if test "$shouldnotlink" = yes && test "$pass" = link ; then
  48214. + $echo
  48215. if test "$linkmode" = prog; then
  48216. - $ECHO "*** Warning: Linking the executable $output against the loadable module"
  48217. + $echo "*** Warning: Linking the executable $output against the loadable module"
  48218. else
  48219. - $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  48220. + $echo "*** Warning: Linking the shared library $output against the loadable module"
  48221. fi
  48222. - $ECHO "*** $linklib is not portable!"
  48223. + $echo "*** $linklib is not portable!"
  48224. fi
  48225. if test "$linkmode" = lib &&
  48226. test "$hardcode_into_libs" = yes; then
  48227. @@ -4144,10 +2638,9 @@
  48228. if test -n "$old_archive_from_expsyms_cmds"; then
  48229. # figure out the soname
  48230. set dummy $library_names
  48231. - shift
  48232. - realname="$1"
  48233. - shift
  48234. - libname=`eval "\\$ECHO \"$libname_spec\""`
  48235. + realname="$2"
  48236. + shift; shift
  48237. + libname=`eval \\$echo \"$libname_spec\"`
  48238. # use dlname if we got it. it's perfectly good, no?
  48239. if test -n "$dlname"; then
  48240. soname="$dlname"
  48241. @@ -4166,22 +2659,36 @@
  48242. # Make a new name for the extract_expsyms_cmds to use
  48243. soroot="$soname"
  48244. - func_basename "$soroot"
  48245. - soname="$func_basename_result"
  48246. - func_stripname 'lib' '.dll' "$soname"
  48247. - newlib=libimp-$func_stripname_result.a
  48248. + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  48249. + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  48250. # If the library has no export list, then create one now
  48251. if test -f "$output_objdir/$soname-def"; then :
  48252. else
  48253. - func_echo "extracting exported symbol list from \`$soname'"
  48254. - func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  48255. + $show "extracting exported symbol list from \`$soname'"
  48256. + save_ifs="$IFS"; IFS='~'
  48257. + cmds=$extract_expsyms_cmds
  48258. + for cmd in $cmds; do
  48259. + IFS="$save_ifs"
  48260. + eval cmd=\"$cmd\"
  48261. + $show "$cmd"
  48262. + $run eval "$cmd" || exit $?
  48263. + done
  48264. + IFS="$save_ifs"
  48265. fi
  48266. # Create $newlib
  48267. if test -f "$output_objdir/$newlib"; then :; else
  48268. - func_echo "generating import library for \`$soname'"
  48269. - func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  48270. + $show "generating import library for \`$soname'"
  48271. + save_ifs="$IFS"; IFS='~'
  48272. + cmds=$old_archive_from_expsyms_cmds
  48273. + for cmd in $cmds; do
  48274. + IFS="$save_ifs"
  48275. + eval cmd=\"$cmd\"
  48276. + $show "$cmd"
  48277. + $run eval "$cmd" || exit $?
  48278. + done
  48279. + IFS="$save_ifs"
  48280. fi
  48281. # make sure the library variables are pointing to the new library
  48282. dir=$output_objdir
  48283. @@ -4203,21 +2710,17 @@
  48284. *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  48285. *-*-unixware7*) add_dir="-L$dir" ;;
  48286. *-*-darwin* )
  48287. - # if the lib is a (non-dlopened) module then we can not
  48288. - # link against it, someone is ignoring the earlier warnings
  48289. + # if the lib is a module then we can not link against
  48290. + # it, someone is ignoring the new warnings I added
  48291. if /usr/bin/file -L $add 2> /dev/null |
  48292. - $GREP ": [^:]* bundle" >/dev/null ; then
  48293. - if test "X$dlopenmodule" != "X$lib"; then
  48294. - $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  48295. - if test -z "$old_library" ; then
  48296. - $ECHO
  48297. - $ECHO "*** And there doesn't seem to be a static archive available"
  48298. - $ECHO "*** The link will probably fail, sorry"
  48299. - else
  48300. - add="$dir/$old_library"
  48301. - fi
  48302. - elif test -n "$old_library"; then
  48303. - add="$dir/$old_library"
  48304. + $EGREP ": [^:]* bundle" >/dev/null ; then
  48305. + $echo "** Warning, lib $linklib is a module, not a shared library"
  48306. + if test -z "$old_library" ; then
  48307. + $echo
  48308. + $echo "** And there doesn't seem to be a static archive available"
  48309. + $echo "** The link will probably fail, sorry"
  48310. + else
  48311. + add="$dir/$old_library"
  48312. fi
  48313. fi
  48314. esac
  48315. @@ -4259,7 +2762,8 @@
  48316. esac
  48317. if test "$lib_linked" != yes; then
  48318. - func_fatal_configuration "unsupported hardcode properties"
  48319. + $echo "$modename: configuration error: unsupported hardcode properties"
  48320. + exit $EXIT_FAILURE
  48321. fi
  48322. if test -n "$add_shlibpath"; then
  48323. @@ -4274,8 +2778,8 @@
  48324. else
  48325. test -n "$add_dir" && deplibs="$add_dir $deplibs"
  48326. test -n "$add" && deplibs="$add $deplibs"
  48327. - if test "$hardcode_direct" != yes &&
  48328. - test "$hardcode_minus_L" != yes &&
  48329. + if test "$hardcode_direct" != yes && \
  48330. + test "$hardcode_minus_L" != yes && \
  48331. test "$hardcode_shlibpath_var" = yes; then
  48332. case :$finalize_shlibpath: in
  48333. *":$libdir:"*) ;;
  48334. @@ -4304,9 +2808,9 @@
  48335. elif test "$hardcode_automatic" = yes; then
  48336. if test -n "$inst_prefix_dir" &&
  48337. test -f "$inst_prefix_dir$libdir/$linklib" ; then
  48338. - add="$inst_prefix_dir$libdir/$linklib"
  48339. + add="$inst_prefix_dir$libdir/$linklib"
  48340. else
  48341. - add="$libdir/$linklib"
  48342. + add="$libdir/$linklib"
  48343. fi
  48344. else
  48345. # We cannot seem to hardcode it, guess we'll fake it.
  48346. @@ -4350,21 +2854,21 @@
  48347. # Just print a warning and add the library to dependency_libs so
  48348. # that the program can be linked against the static library.
  48349. - $ECHO
  48350. - $ECHO "*** Warning: This system can not link to static lib archive $lib."
  48351. - $ECHO "*** I have the capability to make that library automatically link in when"
  48352. - $ECHO "*** you link to this library. But I can only do this if you have a"
  48353. - $ECHO "*** shared version of the library, which you do not appear to have."
  48354. + $echo
  48355. + $echo "*** Warning: This system can not link to static lib archive $lib."
  48356. + $echo "*** I have the capability to make that library automatically link in when"
  48357. + $echo "*** you link to this library. But I can only do this if you have a"
  48358. + $echo "*** shared version of the library, which you do not appear to have."
  48359. if test "$module" = yes; then
  48360. - $ECHO "*** But as you try to build a module library, libtool will still create "
  48361. - $ECHO "*** a static module, that should work as long as the dlopening application"
  48362. - $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  48363. + $echo "*** But as you try to build a module library, libtool will still create "
  48364. + $echo "*** a static module, that should work as long as the dlopening application"
  48365. + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  48366. if test -z "$global_symbol_pipe"; then
  48367. - $ECHO
  48368. - $ECHO "*** However, this would only work if libtool was able to extract symbol"
  48369. - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  48370. - $ECHO "*** not find such a program. So, this module is probably useless."
  48371. - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  48372. + $echo
  48373. + $echo "*** However, this would only work if libtool was able to extract symbol"
  48374. + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  48375. + $echo "*** not find such a program. So, this module is probably useless."
  48376. + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  48377. fi
  48378. if test "$build_old_libs" = no; then
  48379. build_libtool_libs=module
  48380. @@ -4388,8 +2892,7 @@
  48381. temp_deplibs=
  48382. for libdir in $dependency_libs; do
  48383. case $libdir in
  48384. - -R*) func_stripname '-R' '' "$libdir"
  48385. - temp_xrpath=$func_stripname_result
  48386. + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  48387. case " $xrpath " in
  48388. *" $temp_xrpath "*) ;;
  48389. *) xrpath="$xrpath $temp_xrpath";;
  48390. @@ -4407,7 +2910,7 @@
  48391. tmp_libs=
  48392. for deplib in $dependency_libs; do
  48393. newdependency_libs="$deplib $newdependency_libs"
  48394. - if $opt_duplicate_deps ; then
  48395. + if test "X$duplicate_deps" = "Xyes" ; then
  48396. case "$tmp_libs " in
  48397. *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  48398. esac
  48399. @@ -4421,57 +2924,84 @@
  48400. case $deplib in
  48401. -L*) path="$deplib" ;;
  48402. *.la)
  48403. - func_dirname "$deplib" "" "."
  48404. - dir="$func_dirname_result"
  48405. + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  48406. + test "X$dir" = "X$deplib" && dir="."
  48407. # We need an absolute path.
  48408. case $dir in
  48409. [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  48410. *)
  48411. absdir=`cd "$dir" && pwd`
  48412. if test -z "$absdir"; then
  48413. - func_warning "cannot determine absolute directory name of \`$dir'"
  48414. + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  48415. absdir="$dir"
  48416. fi
  48417. ;;
  48418. esac
  48419. - if $GREP "^installed=no" $deplib > /dev/null; then
  48420. + if grep "^installed=no" $deplib > /dev/null; then
  48421. + path="$absdir/$objdir"
  48422. + else
  48423. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  48424. + if test -z "$libdir"; then
  48425. + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  48426. + exit $EXIT_FAILURE
  48427. + fi
  48428. + if test "$absdir" != "$libdir"; then
  48429. + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  48430. + fi
  48431. + path="$absdir"
  48432. + fi
  48433. + depdepl=
  48434. case $host in
  48435. *-*-darwin*)
  48436. - depdepl=
  48437. + # we do not want to link against static libs,
  48438. + # but need to link against shared
  48439. eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  48440. if test -n "$deplibrary_names" ; then
  48441. for tmp in $deplibrary_names ; do
  48442. depdepl=$tmp
  48443. done
  48444. - if test -f "$absdir/$objdir/$depdepl" ; then
  48445. - depdepl="$absdir/$objdir/$depdepl"
  48446. - darwin_install_name=`otool -L $depdepl | $SED -n -e '3q;2,2p' | $SED -e 's/(.*//'`
  48447. - darwin_install_name=`$ECHO $darwin_install_name`
  48448. - compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  48449. - linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  48450. - path=
  48451. + if test -f "$path/$depdepl" ; then
  48452. + depdepl="$path/$depdepl"
  48453. fi
  48454. + # do not add paths which are already there
  48455. + case " $newlib_search_path " in
  48456. + *" $path "*) ;;
  48457. + *) newlib_search_path="$newlib_search_path $path";;
  48458. + esac
  48459. fi
  48460. + path=""
  48461. ;;
  48462. *)
  48463. - path="-L$absdir/$objdir"
  48464. + path="-L$path"
  48465. ;;
  48466. esac
  48467. - else
  48468. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  48469. - test -z "$libdir" && \
  48470. - func_fatal_error "\`$deplib' is not a valid libtool archive"
  48471. - test "$absdir" != "$libdir" && \
  48472. - func_warning "\`$deplib' seems to be moved"
  48473. -
  48474. - path="-L$absdir"
  48475. - fi
  48476. ;;
  48477. + -l*)
  48478. + case $host in
  48479. + *-*-darwin*)
  48480. + # Again, we only want to link against shared libraries
  48481. + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  48482. + for tmp in $newlib_search_path ; do
  48483. + if test -f "$tmp/lib$tmp_libs.dylib" ; then
  48484. + eval depdepl="$tmp/lib$tmp_libs.dylib"
  48485. + break
  48486. + fi
  48487. + done
  48488. + path=""
  48489. + ;;
  48490. + *) continue ;;
  48491. + esac
  48492. + ;;
  48493. + *) continue ;;
  48494. esac
  48495. case " $deplibs " in
  48496. *" $path "*) ;;
  48497. *) deplibs="$path $deplibs" ;;
  48498. esac
  48499. + case " $deplibs " in
  48500. + *" $depdepl "*) ;;
  48501. + *) deplibs="$depdepl $deplibs" ;;
  48502. + esac
  48503. done
  48504. fi # link_all_deplibs != no
  48505. fi # linkmode = lib
  48506. @@ -4574,35 +3104,38 @@
  48507. done # for pass
  48508. if test "$linkmode" = prog; then
  48509. dlfiles="$newdlfiles"
  48510. - fi
  48511. - if test "$linkmode" = prog || test "$linkmode" = lib; then
  48512. dlprefiles="$newdlprefiles"
  48513. fi
  48514. case $linkmode in
  48515. oldlib)
  48516. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  48517. - func_warning "\`-dlopen' is ignored for archives"
  48518. + if test -n "$deplibs"; then
  48519. + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  48520. fi
  48521. - test -n "$deplibs" && \
  48522. - func_warning "\`-l' and \`-L' are ignored for archives"
  48523. -
  48524. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  48525. + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  48526. + fi
  48527. - test -n "$rpath" && \
  48528. - func_warning "\`-rpath' is ignored for archives"
  48529. + if test -n "$rpath"; then
  48530. + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  48531. + fi
  48532. - test -n "$xrpath" && \
  48533. - func_warning "\`-R' is ignored for archives"
  48534. + if test -n "$xrpath"; then
  48535. + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  48536. + fi
  48537. - test -n "$vinfo" && \
  48538. - func_warning "\`-version-info/-version-number' is ignored for archives"
  48539. + if test -n "$vinfo"; then
  48540. + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  48541. + fi
  48542. - test -n "$release" && \
  48543. - func_warning "\`-release' is ignored for archives"
  48544. + if test -n "$release"; then
  48545. + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  48546. + fi
  48547. - test -n "$export_symbols$export_symbols_regex" && \
  48548. - func_warning "\`-export-symbols' is ignored for archives"
  48549. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  48550. + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  48551. + fi
  48552. # Now set the variables for building old libraries.
  48553. build_libtool_libs=no
  48554. @@ -4614,48 +3147,48 @@
  48555. # Make sure we only generate libraries of the form `libNAME.la'.
  48556. case $outputname in
  48557. lib*)
  48558. - func_stripname 'lib' '.la' "$outputname"
  48559. - name=$func_stripname_result
  48560. + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  48561. eval shared_ext=\"$shrext_cmds\"
  48562. eval libname=\"$libname_spec\"
  48563. ;;
  48564. *)
  48565. - test "$module" = no && \
  48566. - func_fatal_help "libtool library \`$output' must begin with \`lib'"
  48567. -
  48568. + if test "$module" = no; then
  48569. + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  48570. + $echo "$help" 1>&2
  48571. + exit $EXIT_FAILURE
  48572. + fi
  48573. if test "$need_lib_prefix" != no; then
  48574. # Add the "lib" prefix for modules if required
  48575. - func_stripname '' '.la' "$outputname"
  48576. - name=$func_stripname_result
  48577. + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  48578. eval shared_ext=\"$shrext_cmds\"
  48579. eval libname=\"$libname_spec\"
  48580. else
  48581. - func_stripname '' '.la' "$outputname"
  48582. - libname=$func_stripname_result
  48583. + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  48584. fi
  48585. ;;
  48586. esac
  48587. if test -n "$objs"; then
  48588. if test "$deplibs_check_method" != pass_all; then
  48589. - func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  48590. + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  48591. + exit $EXIT_FAILURE
  48592. else
  48593. - $ECHO
  48594. - $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  48595. - $ECHO "*** objects $objs is not portable!"
  48596. + $echo
  48597. + $echo "*** Warning: Linking the shared library $output against the non-libtool"
  48598. + $echo "*** objects $objs is not portable!"
  48599. libobjs="$libobjs $objs"
  48600. fi
  48601. fi
  48602. - test "$dlself" != no && \
  48603. - func_warning "\`-dlopen self' is ignored for libtool libraries"
  48604. + if test "$dlself" != no; then
  48605. + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  48606. + fi
  48607. set dummy $rpath
  48608. - shift
  48609. - test "$#" -gt 1 && \
  48610. - func_warning "ignoring multiple \`-rpath's for a libtool library"
  48611. -
  48612. - install_libdir="$1"
  48613. + if test "$#" -gt 2; then
  48614. + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  48615. + fi
  48616. + install_libdir="$2"
  48617. oldlibs=
  48618. if test -z "$rpath"; then
  48619. @@ -4669,21 +3202,25 @@
  48620. build_old_libs=yes
  48621. fi
  48622. - test -n "$vinfo" && \
  48623. - func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  48624. + if test -n "$vinfo"; then
  48625. + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  48626. + fi
  48627. - test -n "$release" && \
  48628. - func_warning "\`-release' is ignored for convenience libraries"
  48629. + if test -n "$release"; then
  48630. + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  48631. + fi
  48632. else
  48633. # Parse the version information argument.
  48634. save_ifs="$IFS"; IFS=':'
  48635. set dummy $vinfo 0 0 0
  48636. - shift
  48637. IFS="$save_ifs"
  48638. - test -n "$7" && \
  48639. - func_fatal_help "too many parameters to \`-version-info'"
  48640. + if test -n "$8"; then
  48641. + $echo "$modename: too many parameters to \`-version-info'" 1>&2
  48642. + $echo "$help" 1>&2
  48643. + exit $EXIT_FAILURE
  48644. + fi
  48645. # convert absolute version numbers to libtool ages
  48646. # this retains compatibility with .la files and attempts
  48647. @@ -4691,9 +3228,9 @@
  48648. case $vinfo_number in
  48649. yes)
  48650. - number_major="$1"
  48651. - number_minor="$2"
  48652. - number_revision="$3"
  48653. + number_major="$2"
  48654. + number_minor="$3"
  48655. + number_revision="$4"
  48656. #
  48657. # There are really only two kinds -- those that
  48658. # use the current revision as the major version
  48659. @@ -4717,17 +3254,12 @@
  48660. age="$number_minor"
  48661. revision="$number_minor"
  48662. ;;
  48663. - *)
  48664. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  48665. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  48666. - exit $EXIT_FAILURE
  48667. - ;;
  48668. esac
  48669. ;;
  48670. no)
  48671. - current="$1"
  48672. - revision="$2"
  48673. - age="$3"
  48674. + current="$2"
  48675. + revision="$3"
  48676. + age="$4"
  48677. ;;
  48678. esac
  48679. @@ -4735,30 +3267,34 @@
  48680. case $current in
  48681. 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  48682. *)
  48683. - func_error "CURRENT \`$current' must be a nonnegative integer"
  48684. - func_fatal_error "\`$vinfo' is not valid version information"
  48685. + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
  48686. + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  48687. + exit $EXIT_FAILURE
  48688. ;;
  48689. esac
  48690. case $revision in
  48691. 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  48692. *)
  48693. - func_error "REVISION \`$revision' must be a nonnegative integer"
  48694. - func_fatal_error "\`$vinfo' is not valid version information"
  48695. + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
  48696. + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  48697. + exit $EXIT_FAILURE
  48698. ;;
  48699. esac
  48700. case $age in
  48701. 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  48702. *)
  48703. - func_error "AGE \`$age' must be a nonnegative integer"
  48704. - func_fatal_error "\`$vinfo' is not valid version information"
  48705. + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
  48706. + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  48707. + exit $EXIT_FAILURE
  48708. ;;
  48709. esac
  48710. if test "$age" -gt "$current"; then
  48711. - func_error "AGE \`$age' is greater than the current interface number \`$current'"
  48712. - func_fatal_error "\`$vinfo' is not valid version information"
  48713. + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  48714. + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  48715. + exit $EXIT_FAILURE
  48716. fi
  48717. # Calculate the version variables.
  48718. @@ -4775,7 +3311,9 @@
  48719. versuffix="$major.$age.$revision"
  48720. # Darwin ld doesn't like 0 for these options...
  48721. minor_current=`expr $current + 1`
  48722. - verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  48723. + #verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  48724. + number_major_adjusted=`expr $number_major + 8`
  48725. + verstring="${wl}-compatibility_version ${wl}10.0.0 ${wl}-current_version ${wl}$number_major_adjusted.$number_minor.$number_revision"
  48726. ;;
  48727. freebsd-aout)
  48728. @@ -4785,7 +3323,7 @@
  48729. freebsd-elf)
  48730. major=".$current"
  48731. - versuffix=".$current"
  48732. + versuffix=".$current";
  48733. ;;
  48734. irix | nonstopux)
  48735. @@ -4832,11 +3370,6 @@
  48736. verstring="$verstring:${current}.0"
  48737. ;;
  48738. - qnx)
  48739. - major=".$current"
  48740. - versuffix=".$current"
  48741. - ;;
  48742. -
  48743. sunos)
  48744. major=".$current"
  48745. versuffix=".$current.$revision"
  48746. @@ -4850,7 +3383,9 @@
  48747. ;;
  48748. *)
  48749. - func_fatal_configuration "unknown library version type \`$version_type'"
  48750. + $echo "$modename: unknown library version type \`$version_type'" 1>&2
  48751. + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  48752. + exit $EXIT_FAILURE
  48753. ;;
  48754. esac
  48755. @@ -4884,7 +3419,7 @@
  48756. # Check to see if the archive will have undefined symbols.
  48757. if test "$allow_undefined" = yes; then
  48758. if test "$allow_undefined_flag" = unsupported; then
  48759. - func_warning "undefined symbols not allowed in $host shared libraries"
  48760. + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  48761. build_libtool_libs=no
  48762. build_old_libs=yes
  48763. fi
  48764. @@ -4892,25 +3427,21 @@
  48765. # Don't allow undefined symbols.
  48766. allow_undefined_flag="$no_undefined_flag"
  48767. fi
  48768. -
  48769. fi
  48770. - func_generate_dlsyms "$libname" "$libname" "yes"
  48771. - libobjs="$libobjs $symfileobj"
  48772. -
  48773. if test "$mode" != relink; then
  48774. # Remove our outputs, but don't remove object files since they
  48775. # may have been created when compiling PIC objects.
  48776. removelist=
  48777. - tempremovelist=`$ECHO "$output_objdir/*"`
  48778. + tempremovelist=`$echo "$output_objdir/*"`
  48779. for p in $tempremovelist; do
  48780. case $p in
  48781. *.$objext)
  48782. ;;
  48783. $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  48784. if test "X$precious_files_regex" != "X"; then
  48785. - if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  48786. - then
  48787. + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  48788. + then
  48789. continue
  48790. fi
  48791. fi
  48792. @@ -4919,8 +3450,10 @@
  48793. *) ;;
  48794. esac
  48795. done
  48796. - test -n "$removelist" && \
  48797. - func_show_eval "${RM}r \$removelist"
  48798. + if test -n "$removelist"; then
  48799. + $show "${rm}r $removelist"
  48800. + $run ${rm}r $removelist
  48801. + fi
  48802. fi
  48803. # Now set the variables for building old libraries.
  48804. @@ -4928,14 +3461,14 @@
  48805. oldlibs="$oldlibs $output_objdir/$libname.$libext"
  48806. # Transform .lo files to .o files.
  48807. - oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  48808. + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  48809. fi
  48810. # Eliminate all temporary directories.
  48811. for path in $notinst_path; do
  48812. - lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e 's% $path % %g'`
  48813. - deplibs=`$ECHO "X$deplibs " | $Xsed -e 's% -L$path % %g'`
  48814. - dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e 's% -L$path % %g'`
  48815. + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
  48816. + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
  48817. + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
  48818. done
  48819. if test -n "$xrpath"; then
  48820. @@ -4981,7 +3514,7 @@
  48821. ;;
  48822. *-*-rhapsody* | *-*-darwin1.[012])
  48823. # Rhapsody C library is in the System framework
  48824. - deplibs="$deplibs System.ltframework"
  48825. + deplibs="$deplibs -framework System"
  48826. ;;
  48827. *-*-netbsd*)
  48828. # Don't link with libc until the a.out ld.so is fixed.
  48829. @@ -4994,7 +3527,7 @@
  48830. ;;
  48831. *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  48832. # Compiler inserts libc in the correct place for threads to work
  48833. - ;;
  48834. + ;;
  48835. *)
  48836. # Add libc to deplibs on all other systems if necessary.
  48837. if test "$build_libtool_need_lc" = "yes"; then
  48838. @@ -5032,18 +3565,18 @@
  48839. # limits. Maybe even breaks it. We compile a program, linking it
  48840. # against the deplibs as a proxy for the library. Then we can check
  48841. # whether they linked in statically or dynamically with ldd.
  48842. - $opt_dry_run || $RM conftest.c
  48843. + $rm conftest.c
  48844. cat > conftest.c <<EOF
  48845. int main() { return 0; }
  48846. EOF
  48847. - $opt_dry_run || $RM conftest
  48848. + $rm conftest
  48849. $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
  48850. if test "$?" -eq 0 ; then
  48851. ldd_output=`ldd conftest`
  48852. for i in $deplibs; do
  48853. name=`expr $i : '-l\(.*\)'`
  48854. # If $name is empty we are operating on a -L argument.
  48855. - if test "$name" != "" && test "$name" -ne "0"; then
  48856. + if test "$name" != "" && test "$name" -ne "0"; then
  48857. if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48858. case " $predeps $postdeps " in
  48859. *" $i "*)
  48860. @@ -5051,291 +3584,829 @@
  48861. i=""
  48862. ;;
  48863. esac
  48864. + fi
  48865. + if test -n "$i" ; then
  48866. + libname=`eval \\$echo \"$libname_spec\"`
  48867. + deplib_matches=`eval \\$echo \"$library_names_spec\"`
  48868. + set dummy $deplib_matches
  48869. + deplib_match=$2
  48870. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  48871. + newdeplibs="$newdeplibs $i"
  48872. + else
  48873. + droppeddeps=yes
  48874. + $echo
  48875. + $echo "*** Warning: dynamic linker does not accept needed library $i."
  48876. + $echo "*** I have the capability to make that library automatically link in when"
  48877. + $echo "*** you link to this library. But I can only do this if you have a"
  48878. + $echo "*** shared version of the library, which I believe you do not have"
  48879. + $echo "*** because a test_compile did reveal that the linker did not use it for"
  48880. + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  48881. + fi
  48882. + fi
  48883. + else
  48884. + newdeplibs="$newdeplibs $i"
  48885. + fi
  48886. + done
  48887. + else
  48888. + # Error occurred in the first compile. Let's try to salvage
  48889. + # the situation: Compile a separate program for each library.
  48890. + for i in $deplibs; do
  48891. + name=`expr $i : '-l\(.*\)'`
  48892. + # If $name is empty we are operating on a -L argument.
  48893. + if test "$name" != "" && test "$name" != "0"; then
  48894. + $rm conftest
  48895. + $LTCC $LTCFLAGS -o conftest conftest.c $i
  48896. + # Did it work?
  48897. + if test "$?" -eq 0 ; then
  48898. + ldd_output=`ldd conftest`
  48899. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48900. + case " $predeps $postdeps " in
  48901. + *" $i "*)
  48902. + newdeplibs="$newdeplibs $i"
  48903. + i=""
  48904. + ;;
  48905. + esac
  48906. + fi
  48907. + if test -n "$i" ; then
  48908. + libname=`eval \\$echo \"$libname_spec\"`
  48909. + deplib_matches=`eval \\$echo \"$library_names_spec\"`
  48910. + set dummy $deplib_matches
  48911. + deplib_match=$2
  48912. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  48913. + newdeplibs="$newdeplibs $i"
  48914. + else
  48915. + droppeddeps=yes
  48916. + $echo
  48917. + $echo "*** Warning: dynamic linker does not accept needed library $i."
  48918. + $echo "*** I have the capability to make that library automatically link in when"
  48919. + $echo "*** you link to this library. But I can only do this if you have a"
  48920. + $echo "*** shared version of the library, which you do not appear to have"
  48921. + $echo "*** because a test_compile did reveal that the linker did not use this one"
  48922. + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  48923. + fi
  48924. + fi
  48925. + else
  48926. + droppeddeps=yes
  48927. + $echo
  48928. + $echo "*** Warning! Library $i is needed by this library but I was not able to"
  48929. + $echo "*** make it link in! You will probably need to install it or some"
  48930. + $echo "*** library that it depends on before this library will be fully"
  48931. + $echo "*** functional. Installing it before continuing would be even better."
  48932. + fi
  48933. + else
  48934. + newdeplibs="$newdeplibs $i"
  48935. + fi
  48936. + done
  48937. + fi
  48938. + ;;
  48939. + file_magic*)
  48940. + set dummy $deplibs_check_method
  48941. + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  48942. + for a_deplib in $deplibs; do
  48943. + name=`expr $a_deplib : '-l\(.*\)'`
  48944. + # If $name is empty we are operating on a -L argument.
  48945. + if test "$name" != "" && test "$name" != "0"; then
  48946. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  48947. + case " $predeps $postdeps " in
  48948. + *" $a_deplib "*)
  48949. + newdeplibs="$newdeplibs $a_deplib"
  48950. + a_deplib=""
  48951. + ;;
  48952. + esac
  48953. + fi
  48954. + if test -n "$a_deplib" ; then
  48955. + libname=`eval \\$echo \"$libname_spec\"`
  48956. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  48957. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  48958. + for potent_lib in $potential_libs; do
  48959. + # Follow soft links.
  48960. + if ls -lLd "$potent_lib" 2>/dev/null \
  48961. + | grep " -> " >/dev/null; then
  48962. + continue
  48963. + fi
  48964. + # The statement above tries to avoid entering an
  48965. + # endless loop below, in case of cyclic links.
  48966. + # We might still enter an endless loop, since a link
  48967. + # loop can be closed while we follow links,
  48968. + # but so what?
  48969. + potlib="$potent_lib"
  48970. + while test -h "$potlib" 2>/dev/null; do
  48971. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  48972. + case $potliblink in
  48973. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  48974. + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  48975. + esac
  48976. + done
  48977. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  48978. + | ${SED} 10q \
  48979. + | $EGREP "$file_magic_regex" > /dev/null; then
  48980. + newdeplibs="$newdeplibs $a_deplib"
  48981. + a_deplib=""
  48982. + break 2
  48983. + fi
  48984. + done
  48985. + done
  48986. + fi
  48987. + if test -n "$a_deplib" ; then
  48988. + droppeddeps=yes
  48989. + $echo
  48990. + $echo "*** Warning: linker path does not have real file for library $a_deplib."
  48991. + $echo "*** I have the capability to make that library automatically link in when"
  48992. + $echo "*** you link to this library. But I can only do this if you have a"
  48993. + $echo "*** shared version of the library, which you do not appear to have"
  48994. + $echo "*** because I did check the linker path looking for a file starting"
  48995. + if test -z "$potlib" ; then
  48996. + $echo "*** with $libname but no candidates were found. (...for file magic test)"
  48997. + else
  48998. + $echo "*** with $libname and none of the candidates passed a file format test"
  48999. + $echo "*** using a file magic. Last file checked: $potlib"
  49000. + fi
  49001. + fi
  49002. + else
  49003. + # Add a -L argument.
  49004. + newdeplibs="$newdeplibs $a_deplib"
  49005. + fi
  49006. + done # Gone through all deplibs.
  49007. + ;;
  49008. + match_pattern*)
  49009. + set dummy $deplibs_check_method
  49010. + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  49011. + for a_deplib in $deplibs; do
  49012. + name=`expr $a_deplib : '-l\(.*\)'`
  49013. + # If $name is empty we are operating on a -L argument.
  49014. + if test -n "$name" && test "$name" != "0"; then
  49015. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49016. + case " $predeps $postdeps " in
  49017. + *" $a_deplib "*)
  49018. + newdeplibs="$newdeplibs $a_deplib"
  49019. + a_deplib=""
  49020. + ;;
  49021. + esac
  49022. + fi
  49023. + if test -n "$a_deplib" ; then
  49024. + libname=`eval \\$echo \"$libname_spec\"`
  49025. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  49026. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  49027. + for potent_lib in $potential_libs; do
  49028. + potlib="$potent_lib" # see symlink-check above in file_magic test
  49029. + if eval $echo \"$potent_lib\" 2>/dev/null \
  49030. + | ${SED} 10q \
  49031. + | $EGREP "$match_pattern_regex" > /dev/null; then
  49032. + newdeplibs="$newdeplibs $a_deplib"
  49033. + a_deplib=""
  49034. + break 2
  49035. + fi
  49036. + done
  49037. + done
  49038. + fi
  49039. + if test -n "$a_deplib" ; then
  49040. + droppeddeps=yes
  49041. + $echo
  49042. + $echo "*** Warning: linker path does not have real file for library $a_deplib."
  49043. + $echo "*** I have the capability to make that library automatically link in when"
  49044. + $echo "*** you link to this library. But I can only do this if you have a"
  49045. + $echo "*** shared version of the library, which you do not appear to have"
  49046. + $echo "*** because I did check the linker path looking for a file starting"
  49047. + if test -z "$potlib" ; then
  49048. + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  49049. + else
  49050. + $echo "*** with $libname and none of the candidates passed a file format test"
  49051. + $echo "*** using a regex pattern. Last file checked: $potlib"
  49052. + fi
  49053. + fi
  49054. + else
  49055. + # Add a -L argument.
  49056. + newdeplibs="$newdeplibs $a_deplib"
  49057. + fi
  49058. + done # Gone through all deplibs.
  49059. + ;;
  49060. + none | unknown | *)
  49061. + newdeplibs=""
  49062. + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  49063. + -e 's/ -[LR][^ ]*//g'`
  49064. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49065. + for i in $predeps $postdeps ; do
  49066. + # can't use Xsed below, because $i might contain '/'
  49067. + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  49068. + done
  49069. + fi
  49070. + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  49071. + | grep . >/dev/null; then
  49072. + $echo
  49073. + if test "X$deplibs_check_method" = "Xnone"; then
  49074. + $echo "*** Warning: inter-library dependencies are not supported in this platform."
  49075. + else
  49076. + $echo "*** Warning: inter-library dependencies are not known to be supported."
  49077. + fi
  49078. + $echo "*** All declared inter-library dependencies are being dropped."
  49079. + droppeddeps=yes
  49080. + fi
  49081. + ;;
  49082. + esac
  49083. + versuffix=$versuffix_save
  49084. + major=$major_save
  49085. + release=$release_save
  49086. + libname=$libname_save
  49087. + name=$name_save
  49088. +
  49089. + case $host in
  49090. + *-*-rhapsody* | *-*-darwin1.[012])
  49091. + # On Rhapsody replace the C library is the System framework
  49092. + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  49093. + ;;
  49094. + esac
  49095. +
  49096. + if test "$droppeddeps" = yes; then
  49097. + if test "$module" = yes; then
  49098. + $echo
  49099. + $echo "*** Warning: libtool could not satisfy all declared inter-library"
  49100. + $echo "*** dependencies of module $libname. Therefore, libtool will create"
  49101. + $echo "*** a static module, that should work as long as the dlopening"
  49102. + $echo "*** application is linked with the -dlopen flag."
  49103. + if test -z "$global_symbol_pipe"; then
  49104. + $echo
  49105. + $echo "*** However, this would only work if libtool was able to extract symbol"
  49106. + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  49107. + $echo "*** not find such a program. So, this module is probably useless."
  49108. + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  49109. + fi
  49110. + if test "$build_old_libs" = no; then
  49111. + oldlibs="$output_objdir/$libname.$libext"
  49112. + build_libtool_libs=module
  49113. + build_old_libs=yes
  49114. + else
  49115. + build_libtool_libs=no
  49116. + fi
  49117. + else
  49118. + $echo "*** The inter-library dependencies that have been dropped here will be"
  49119. + $echo "*** automatically added whenever a program is linked with this library"
  49120. + $echo "*** or is declared to -dlopen it."
  49121. +
  49122. + if test "$allow_undefined" = no; then
  49123. + $echo
  49124. + $echo "*** Since this library must not contain undefined symbols,"
  49125. + $echo "*** because either the platform does not support them or"
  49126. + $echo "*** it was explicitly requested with -no-undefined,"
  49127. + $echo "*** libtool will only create a static version of it."
  49128. + if test "$build_old_libs" = no; then
  49129. + oldlibs="$output_objdir/$libname.$libext"
  49130. + build_libtool_libs=module
  49131. + build_old_libs=yes
  49132. + else
  49133. + build_libtool_libs=no
  49134. + fi
  49135. + fi
  49136. + fi
  49137. + fi
  49138. + # Done checking deplibs!
  49139. + deplibs=$newdeplibs
  49140. + fi
  49141. +
  49142. +
  49143. + # move library search paths that coincide with paths to not yet
  49144. + # installed libraries to the beginning of the library search list
  49145. + new_libs=
  49146. + for path in $notinst_path; do
  49147. + case " $new_libs " in
  49148. + *" -L$path/$objdir "*) ;;
  49149. + *)
  49150. + case " $deplibs " in
  49151. + *" -L$path/$objdir "*)
  49152. + new_libs="$new_libs -L$path/$objdir" ;;
  49153. + esac
  49154. + ;;
  49155. + esac
  49156. + done
  49157. + for deplib in $deplibs; do
  49158. + case $deplib in
  49159. + -L*)
  49160. + case " $new_libs " in
  49161. + *" $deplib "*) ;;
  49162. + *) new_libs="$new_libs $deplib" ;;
  49163. + esac
  49164. + ;;
  49165. + *) new_libs="$new_libs $deplib" ;;
  49166. + esac
  49167. + done
  49168. + deplibs="$new_libs"
  49169. +
  49170. +
  49171. + # All the library-specific variables (install_libdir is set above).
  49172. + library_names=
  49173. + old_library=
  49174. + dlname=
  49175. +
  49176. + # Test again, we may have decided not to build it any more
  49177. + if test "$build_libtool_libs" = yes; then
  49178. + if test "$hardcode_into_libs" = yes; then
  49179. + # Hardcode the library paths
  49180. + hardcode_libdirs=
  49181. + dep_rpath=
  49182. + rpath="$finalize_rpath"
  49183. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  49184. + for libdir in $rpath; do
  49185. + if test -n "$hardcode_libdir_flag_spec"; then
  49186. + if test -n "$hardcode_libdir_separator"; then
  49187. + if test -z "$hardcode_libdirs"; then
  49188. + hardcode_libdirs="$libdir"
  49189. + else
  49190. + # Just accumulate the unique libdirs.
  49191. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  49192. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  49193. + ;;
  49194. + *)
  49195. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  49196. + ;;
  49197. + esac
  49198. fi
  49199. - if test -n "$i" ; then
  49200. - libname=`eval "\\$ECHO \"$libname_spec\""`
  49201. - deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  49202. - set dummy $deplib_matches; shift
  49203. - deplib_match=$1
  49204. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  49205. - newdeplibs="$newdeplibs $i"
  49206. - else
  49207. - droppeddeps=yes
  49208. - $ECHO
  49209. - $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  49210. - $ECHO "*** I have the capability to make that library automatically link in when"
  49211. - $ECHO "*** you link to this library. But I can only do this if you have a"
  49212. - $ECHO "*** shared version of the library, which I believe you do not have"
  49213. - $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  49214. - $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  49215. - fi
  49216. - fi
  49217. else
  49218. - newdeplibs="$newdeplibs $i"
  49219. + eval flag=\"$hardcode_libdir_flag_spec\"
  49220. + dep_rpath="$dep_rpath $flag"
  49221. fi
  49222. + elif test -n "$runpath_var"; then
  49223. + case "$perm_rpath " in
  49224. + *" $libdir "*) ;;
  49225. + *) perm_rpath="$perm_rpath $libdir" ;;
  49226. + esac
  49227. + fi
  49228. + done
  49229. + # Substitute the hardcoded libdirs into the rpath.
  49230. + if test -n "$hardcode_libdir_separator" &&
  49231. + test -n "$hardcode_libdirs"; then
  49232. + libdir="$hardcode_libdirs"
  49233. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  49234. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  49235. + else
  49236. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  49237. + fi
  49238. + fi
  49239. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  49240. + # We should set the runpath_var.
  49241. + rpath=
  49242. + for dir in $perm_rpath; do
  49243. + rpath="$rpath$dir:"
  49244. done
  49245. - else
  49246. - # Error occurred in the first compile. Let's try to salvage
  49247. - # the situation: Compile a separate program for each library.
  49248. - for i in $deplibs; do
  49249. - name=`expr $i : '-l\(.*\)'`
  49250. - # If $name is empty we are operating on a -L argument.
  49251. - if test "$name" != "" && test "$name" != "0"; then
  49252. - $opt_dry_run || $RM conftest
  49253. - $LTCC $LTCFLAGS -o conftest conftest.c $i
  49254. - # Did it work?
  49255. - if test "$?" -eq 0 ; then
  49256. - ldd_output=`ldd conftest`
  49257. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49258. - case " $predeps $postdeps " in
  49259. - *" $i "*)
  49260. - newdeplibs="$newdeplibs $i"
  49261. - i=""
  49262. - ;;
  49263. - esac
  49264. - fi
  49265. - if test -n "$i" ; then
  49266. - libname=`eval "\\$ECHO \"$libname_spec\""`
  49267. - deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  49268. - set dummy $deplib_matches; shift
  49269. - deplib_match=$1
  49270. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  49271. - newdeplibs="$newdeplibs $i"
  49272. - else
  49273. - droppeddeps=yes
  49274. - $ECHO
  49275. - $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  49276. - $ECHO "*** I have the capability to make that library automatically link in when"
  49277. - $ECHO "*** you link to this library. But I can only do this if you have a"
  49278. - $ECHO "*** shared version of the library, which you do not appear to have"
  49279. - $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  49280. - $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  49281. - fi
  49282. - fi
  49283. - else
  49284. - droppeddeps=yes
  49285. - $ECHO
  49286. - $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  49287. - $ECHO "*** make it link in! You will probably need to install it or some"
  49288. - $ECHO "*** library that it depends on before this library will be fully"
  49289. - $ECHO "*** functional. Installing it before continuing would be even better."
  49290. - fi
  49291. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  49292. + fi
  49293. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  49294. + fi
  49295. +
  49296. + shlibpath="$finalize_shlibpath"
  49297. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  49298. + if test -n "$shlibpath"; then
  49299. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  49300. + fi
  49301. +
  49302. + # Get the real and link names of the library.
  49303. + eval shared_ext=\"$shrext_cmds\"
  49304. + eval library_names=\"$library_names_spec\"
  49305. + set dummy $library_names
  49306. + realname="$2"
  49307. + shift; shift
  49308. +
  49309. + if test -n "$soname_spec"; then
  49310. + eval soname=\"$soname_spec\"
  49311. + else
  49312. + soname="$realname"
  49313. + fi
  49314. + if test -z "$dlname"; then
  49315. + dlname=$soname
  49316. + fi
  49317. +
  49318. + lib="$output_objdir/$realname"
  49319. + linknames=
  49320. + for link
  49321. + do
  49322. + linknames="$linknames $link"
  49323. + done
  49324. +
  49325. + # Use standard objects if they are pic
  49326. + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  49327. +
  49328. + # Prepare the list of exported symbols
  49329. + if test -z "$export_symbols"; then
  49330. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  49331. + $show "generating symbol list for \`$libname.la'"
  49332. + export_symbols="$output_objdir/$libname.exp"
  49333. + $run $rm $export_symbols
  49334. + cmds=$export_symbols_cmds
  49335. + save_ifs="$IFS"; IFS='~'
  49336. + for cmd in $cmds; do
  49337. + IFS="$save_ifs"
  49338. + eval cmd=\"$cmd\"
  49339. + if len=`expr "X$cmd" : ".*"` &&
  49340. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  49341. + $show "$cmd"
  49342. + $run eval "$cmd" || exit $?
  49343. + skipped_export=false
  49344. else
  49345. - newdeplibs="$newdeplibs $i"
  49346. + # The command line is too long to execute in one step.
  49347. + $show "using reloadable object file for export list..."
  49348. + skipped_export=:
  49349. + # Break out early, otherwise skipped_export may be
  49350. + # set to false by a later but shorter cmd.
  49351. + break
  49352. fi
  49353. done
  49354. + IFS="$save_ifs"
  49355. + if test -n "$export_symbols_regex"; then
  49356. + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  49357. + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  49358. + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  49359. + $run eval '$mv "${export_symbols}T" "$export_symbols"'
  49360. + fi
  49361. fi
  49362. - ;;
  49363. - file_magic*)
  49364. - set dummy $deplibs_check_method; shift
  49365. - file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  49366. - for a_deplib in $deplibs; do
  49367. - name=`expr $a_deplib : '-l\(.*\)'`
  49368. - # If $name is empty we are operating on a -L argument.
  49369. - if test "$name" != "" && test "$name" != "0"; then
  49370. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49371. - case " $predeps $postdeps " in
  49372. - *" $a_deplib "*)
  49373. - newdeplibs="$newdeplibs $a_deplib"
  49374. - a_deplib=""
  49375. - ;;
  49376. + fi
  49377. +
  49378. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  49379. + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  49380. + fi
  49381. +
  49382. + tmp_deplibs=
  49383. + for test_deplib in $deplibs; do
  49384. + case " $convenience " in
  49385. + *" $test_deplib "*) ;;
  49386. + *)
  49387. + tmp_deplibs="$tmp_deplibs $test_deplib"
  49388. + ;;
  49389. esac
  49390. - fi
  49391. - if test -n "$a_deplib" ; then
  49392. - libname=`eval "\\$ECHO \"$libname_spec\""`
  49393. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  49394. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  49395. - for potent_lib in $potential_libs; do
  49396. - # Follow soft links.
  49397. - if ls -lLd "$potent_lib" 2>/dev/null |
  49398. - $GREP " -> " >/dev/null; then
  49399. - continue
  49400. - fi
  49401. - # The statement above tries to avoid entering an
  49402. - # endless loop below, in case of cyclic links.
  49403. - # We might still enter an endless loop, since a link
  49404. - # loop can be closed while we follow links,
  49405. - # but so what?
  49406. - potlib="$potent_lib"
  49407. - while test -h "$potlib" 2>/dev/null; do
  49408. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  49409. - case $potliblink in
  49410. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  49411. - *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  49412. - esac
  49413. - done
  49414. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  49415. - $SED -e 10q |
  49416. - $EGREP "$file_magic_regex" > /dev/null; then
  49417. - newdeplibs="$newdeplibs $a_deplib"
  49418. - a_deplib=""
  49419. - break 2
  49420. - fi
  49421. - done
  49422. - done
  49423. - fi
  49424. - if test -n "$a_deplib" ; then
  49425. - droppeddeps=yes
  49426. - $ECHO
  49427. - $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  49428. - $ECHO "*** I have the capability to make that library automatically link in when"
  49429. - $ECHO "*** you link to this library. But I can only do this if you have a"
  49430. - $ECHO "*** shared version of the library, which you do not appear to have"
  49431. - $ECHO "*** because I did check the linker path looking for a file starting"
  49432. - if test -z "$potlib" ; then
  49433. - $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  49434. - else
  49435. - $ECHO "*** with $libname and none of the candidates passed a file format test"
  49436. - $ECHO "*** using a file magic. Last file checked: $potlib"
  49437. - fi
  49438. - fi
  49439. + done
  49440. + deplibs="$tmp_deplibs"
  49441. +
  49442. + if test -n "$convenience"; then
  49443. + if test -n "$whole_archive_flag_spec"; then
  49444. + save_libobjs=$libobjs
  49445. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  49446. + else
  49447. + gentop="$output_objdir/${outputname}x"
  49448. + generated="$generated $gentop"
  49449. +
  49450. + func_extract_archives $gentop $convenience
  49451. + libobjs="$libobjs $func_extract_archives_result"
  49452. + fi
  49453. + fi
  49454. +
  49455. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  49456. + eval flag=\"$thread_safe_flag_spec\"
  49457. + linker_flags="$linker_flags $flag"
  49458. + fi
  49459. +
  49460. + # Make a backup of the uninstalled library when relinking
  49461. + if test "$mode" = relink; then
  49462. + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  49463. + fi
  49464. +
  49465. + # Do each of the archive commands.
  49466. + if test "$module" = yes && test -n "$module_cmds" ; then
  49467. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  49468. + eval test_cmds=\"$module_expsym_cmds\"
  49469. + cmds=$module_expsym_cmds
  49470. + else
  49471. + eval test_cmds=\"$module_cmds\"
  49472. + cmds=$module_cmds
  49473. + fi
  49474. + else
  49475. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  49476. + eval test_cmds=\"$archive_expsym_cmds\"
  49477. + cmds=$archive_expsym_cmds
  49478. + else
  49479. + eval test_cmds=\"$archive_cmds\"
  49480. + cmds=$archive_cmds
  49481. + fi
  49482. + fi
  49483. +
  49484. + if test "X$skipped_export" != "X:" &&
  49485. + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  49486. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  49487. + :
  49488. + else
  49489. + # The command line is too long to link in one step, link piecewise.
  49490. + $echo "creating reloadable object files..."
  49491. +
  49492. + # Save the value of $output and $libobjs because we want to
  49493. + # use them later. If we have whole_archive_flag_spec, we
  49494. + # want to use save_libobjs as it was before
  49495. + # whole_archive_flag_spec was expanded, because we can't
  49496. + # assume the linker understands whole_archive_flag_spec.
  49497. + # This may have to be revisited, in case too many
  49498. + # convenience libraries get linked in and end up exceeding
  49499. + # the spec.
  49500. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  49501. + save_libobjs=$libobjs
  49502. + fi
  49503. + save_output=$output
  49504. + output_la=`$echo "X$output" | $Xsed -e "$basename"`
  49505. +
  49506. + # Clear the reloadable object creation command queue and
  49507. + # initialize k to one.
  49508. + test_cmds=
  49509. + concat_cmds=
  49510. + objlist=
  49511. + delfiles=
  49512. + last_robj=
  49513. + k=1
  49514. + output=$output_objdir/$output_la-${k}.$objext
  49515. + # Loop over the list of objects to be linked.
  49516. + for obj in $save_libobjs
  49517. + do
  49518. + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  49519. + if test "X$objlist" = X ||
  49520. + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  49521. + test "$len" -le "$max_cmd_len"; }; then
  49522. + objlist="$objlist $obj"
  49523. else
  49524. - # Add a -L argument.
  49525. - newdeplibs="$newdeplibs $a_deplib"
  49526. - fi
  49527. - done # Gone through all deplibs.
  49528. - ;;
  49529. - match_pattern*)
  49530. - set dummy $deplibs_check_method; shift
  49531. - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  49532. - for a_deplib in $deplibs; do
  49533. - name=`expr $a_deplib : '-l\(.*\)'`
  49534. - # If $name is empty we are operating on a -L argument.
  49535. - if test -n "$name" && test "$name" != "0"; then
  49536. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49537. - case " $predeps $postdeps " in
  49538. - *" $a_deplib "*)
  49539. - newdeplibs="$newdeplibs $a_deplib"
  49540. - a_deplib=""
  49541. - ;;
  49542. - esac
  49543. - fi
  49544. - if test -n "$a_deplib" ; then
  49545. - libname=`eval "\\$ECHO \"$libname_spec\""`
  49546. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  49547. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  49548. - for potent_lib in $potential_libs; do
  49549. - potlib="$potent_lib" # see symlink-check above in file_magic test
  49550. - if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  49551. - $EGREP "$match_pattern_regex" > /dev/null; then
  49552. - newdeplibs="$newdeplibs $a_deplib"
  49553. - a_deplib=""
  49554. - break 2
  49555. - fi
  49556. - done
  49557. - done
  49558. - fi
  49559. - if test -n "$a_deplib" ; then
  49560. - droppeddeps=yes
  49561. - $ECHO
  49562. - $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  49563. - $ECHO "*** I have the capability to make that library automatically link in when"
  49564. - $ECHO "*** you link to this library. But I can only do this if you have a"
  49565. - $ECHO "*** shared version of the library, which you do not appear to have"
  49566. - $ECHO "*** because I did check the linker path looking for a file starting"
  49567. - if test -z "$potlib" ; then
  49568. - $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  49569. - else
  49570. - $ECHO "*** with $libname and none of the candidates passed a file format test"
  49571. - $ECHO "*** using a regex pattern. Last file checked: $potlib"
  49572. - fi
  49573. + # The command $test_cmds is almost too long, add a
  49574. + # command to the queue.
  49575. + if test "$k" -eq 1 ; then
  49576. + # The first file doesn't have a previous command to add.
  49577. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  49578. + else
  49579. + # All subsequent reloadable object files will link in
  49580. + # the last one created.
  49581. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  49582. fi
  49583. - else
  49584. - # Add a -L argument.
  49585. - newdeplibs="$newdeplibs $a_deplib"
  49586. + last_robj=$output_objdir/$output_la-${k}.$objext
  49587. + k=`expr $k + 1`
  49588. + output=$output_objdir/$output_la-${k}.$objext
  49589. + objlist=$obj
  49590. + len=1
  49591. fi
  49592. - done # Gone through all deplibs.
  49593. - ;;
  49594. - none | unknown | *)
  49595. - newdeplibs=""
  49596. - tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  49597. - -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  49598. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  49599. - for i in $predeps $postdeps ; do
  49600. - # can't use Xsed below, because $i might contain '/'
  49601. - tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  49602. - done
  49603. + done
  49604. + # Handle the remaining objects by creating one last
  49605. + # reloadable object file. All subsequent reloadable object
  49606. + # files will link in the last one created.
  49607. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  49608. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  49609. +
  49610. + if ${skipped_export-false}; then
  49611. + $show "generating symbol list for \`$libname.la'"
  49612. + export_symbols="$output_objdir/$libname.exp"
  49613. + $run $rm $export_symbols
  49614. + libobjs=$output
  49615. + # Append the command to create the export file.
  49616. + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  49617. + fi
  49618. +
  49619. + # Set up a command to remove the reloadable object files
  49620. + # after they are used.
  49621. + i=0
  49622. + while test "$i" -lt "$k"
  49623. + do
  49624. + i=`expr $i + 1`
  49625. + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  49626. + done
  49627. +
  49628. + $echo "creating a temporary reloadable object file: $output"
  49629. +
  49630. + # Loop through the commands generated above and execute them.
  49631. + save_ifs="$IFS"; IFS='~'
  49632. + for cmd in $concat_cmds; do
  49633. + IFS="$save_ifs"
  49634. + $show "$cmd"
  49635. + $run eval "$cmd" || exit $?
  49636. + done
  49637. + IFS="$save_ifs"
  49638. +
  49639. + libobjs=$output
  49640. + # Restore the value of output.
  49641. + output=$save_output
  49642. +
  49643. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  49644. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  49645. fi
  49646. - if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  49647. - $GREP . >/dev/null; then
  49648. - $ECHO
  49649. - if test "X$deplibs_check_method" = "Xnone"; then
  49650. - $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  49651. + # Expand the library linking commands again to reset the
  49652. + # value of $libobjs for piecewise linking.
  49653. +
  49654. + # Do each of the archive commands.
  49655. + if test "$module" = yes && test -n "$module_cmds" ; then
  49656. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  49657. + cmds=$module_expsym_cmds
  49658. else
  49659. - $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  49660. + cmds=$module_cmds
  49661. + fi
  49662. + else
  49663. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  49664. + cmds=$archive_expsym_cmds
  49665. + else
  49666. + cmds=$archive_cmds
  49667. fi
  49668. - $ECHO "*** All declared inter-library dependencies are being dropped."
  49669. - droppeddeps=yes
  49670. fi
  49671. - ;;
  49672. - esac
  49673. - versuffix=$versuffix_save
  49674. - major=$major_save
  49675. - release=$release_save
  49676. - libname=$libname_save
  49677. - name=$name_save
  49678. - case $host in
  49679. - *-*-rhapsody* | *-*-darwin1.[012])
  49680. - # On Rhapsody replace the C library with the System framework
  49681. - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  49682. - ;;
  49683. - esac
  49684. + # Append the command to remove the reloadable object files
  49685. + # to the just-reset $cmds.
  49686. + eval cmds=\"\$cmds~\$rm $delfiles\"
  49687. + fi
  49688. + save_ifs="$IFS"; IFS='~'
  49689. + for cmd in $cmds; do
  49690. + IFS="$save_ifs"
  49691. + eval cmd=\"$cmd\"
  49692. + $show "$cmd"
  49693. + $run eval "$cmd" || {
  49694. + lt_exit=$?
  49695. - if test "$droppeddeps" = yes; then
  49696. - if test "$module" = yes; then
  49697. - $ECHO
  49698. - $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  49699. - $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  49700. - $ECHO "*** a static module, that should work as long as the dlopening"
  49701. - $ECHO "*** application is linked with the -dlopen flag."
  49702. - if test -z "$global_symbol_pipe"; then
  49703. - $ECHO
  49704. - $ECHO "*** However, this would only work if libtool was able to extract symbol"
  49705. - $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  49706. - $ECHO "*** not find such a program. So, this module is probably useless."
  49707. - $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  49708. - fi
  49709. - if test "$build_old_libs" = no; then
  49710. - oldlibs="$output_objdir/$libname.$libext"
  49711. - build_libtool_libs=module
  49712. - build_old_libs=yes
  49713. - else
  49714. - build_libtool_libs=no
  49715. + # Restore the uninstalled library and exit
  49716. + if test "$mode" = relink; then
  49717. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  49718. fi
  49719. - else
  49720. - $ECHO "*** The inter-library dependencies that have been dropped here will be"
  49721. - $ECHO "*** automatically added whenever a program is linked with this library"
  49722. - $ECHO "*** or is declared to -dlopen it."
  49723. - if test "$allow_undefined" = no; then
  49724. - $ECHO
  49725. - $ECHO "*** Since this library must not contain undefined symbols,"
  49726. - $ECHO "*** because either the platform does not support them or"
  49727. - $ECHO "*** it was explicitly requested with -no-undefined,"
  49728. - $ECHO "*** libtool will only create a static version of it."
  49729. - if test "$build_old_libs" = no; then
  49730. - oldlibs="$output_objdir/$libname.$libext"
  49731. - build_libtool_libs=module
  49732. - build_old_libs=yes
  49733. - else
  49734. - build_libtool_libs=no
  49735. - fi
  49736. + exit $lt_exit
  49737. + }
  49738. + done
  49739. + IFS="$save_ifs"
  49740. +
  49741. + # Restore the uninstalled library and exit
  49742. + if test "$mode" = relink; then
  49743. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  49744. +
  49745. + if test -n "$convenience"; then
  49746. + if test -z "$whole_archive_flag_spec"; then
  49747. + $show "${rm}r $gentop"
  49748. + $run ${rm}r "$gentop"
  49749. fi
  49750. fi
  49751. +
  49752. + exit $EXIT_SUCCESS
  49753. + fi
  49754. +
  49755. + # Create links to the real library.
  49756. + for linkname in $linknames; do
  49757. + if test "$realname" != "$linkname"; then
  49758. + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  49759. + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  49760. + fi
  49761. + done
  49762. +
  49763. + # If -module or -export-dynamic was specified, set the dlname.
  49764. + if test "$module" = yes || test "$export_dynamic" = yes; then
  49765. + # On all known operating systems, these are identical.
  49766. + dlname="$soname"
  49767. + fi
  49768. + fi
  49769. + ;;
  49770. +
  49771. + obj)
  49772. + if test -n "$deplibs"; then
  49773. + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  49774. + fi
  49775. +
  49776. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  49777. + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  49778. + fi
  49779. +
  49780. + if test -n "$rpath"; then
  49781. + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  49782. + fi
  49783. +
  49784. + if test -n "$xrpath"; then
  49785. + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  49786. + fi
  49787. +
  49788. + if test -n "$vinfo"; then
  49789. + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  49790. + fi
  49791. +
  49792. + if test -n "$release"; then
  49793. + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  49794. + fi
  49795. +
  49796. + case $output in
  49797. + *.lo)
  49798. + if test -n "$objs$old_deplibs"; then
  49799. + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  49800. + exit $EXIT_FAILURE
  49801. + fi
  49802. + libobj="$output"
  49803. + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  49804. + ;;
  49805. + *)
  49806. + libobj=
  49807. + obj="$output"
  49808. + ;;
  49809. + esac
  49810. +
  49811. + # Delete the old objects.
  49812. + $run $rm $obj $libobj
  49813. +
  49814. + # Objects from convenience libraries. This assumes
  49815. + # single-version convenience libraries. Whenever we create
  49816. + # different ones for PIC/non-PIC, this we'll have to duplicate
  49817. + # the extraction.
  49818. + reload_conv_objs=
  49819. + gentop=
  49820. + # reload_cmds runs $LD directly, so let us get rid of
  49821. + # -Wl from whole_archive_flag_spec
  49822. + wl=
  49823. +
  49824. + if test -n "$convenience"; then
  49825. + if test -n "$whole_archive_flag_spec"; then
  49826. + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  49827. + else
  49828. + gentop="$output_objdir/${obj}x"
  49829. + generated="$generated $gentop"
  49830. +
  49831. + func_extract_archives $gentop $convenience
  49832. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  49833. + fi
  49834. + fi
  49835. +
  49836. + # Create the old-style object.
  49837. + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  49838. +
  49839. + output="$obj"
  49840. + cmds=$reload_cmds
  49841. + save_ifs="$IFS"; IFS='~'
  49842. + for cmd in $cmds; do
  49843. + IFS="$save_ifs"
  49844. + eval cmd=\"$cmd\"
  49845. + $show "$cmd"
  49846. + $run eval "$cmd" || exit $?
  49847. + done
  49848. + IFS="$save_ifs"
  49849. +
  49850. + # Exit if we aren't doing a library object file.
  49851. + if test -z "$libobj"; then
  49852. + if test -n "$gentop"; then
  49853. + $show "${rm}r $gentop"
  49854. + $run ${rm}r $gentop
  49855. + fi
  49856. +
  49857. + exit $EXIT_SUCCESS
  49858. + fi
  49859. +
  49860. + if test "$build_libtool_libs" != yes; then
  49861. + if test -n "$gentop"; then
  49862. + $show "${rm}r $gentop"
  49863. + $run ${rm}r $gentop
  49864. + fi
  49865. +
  49866. + # Create an invalid libtool object if no PIC, so that we don't
  49867. + # accidentally link it into a program.
  49868. + # $show "echo timestamp > $libobj"
  49869. + # $run eval "echo timestamp > $libobj" || exit $?
  49870. + exit $EXIT_SUCCESS
  49871. + fi
  49872. +
  49873. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  49874. + # Only do commands if we really have different PIC objects.
  49875. + reload_objs="$libobjs $reload_conv_objs"
  49876. + output="$libobj"
  49877. + cmds=$reload_cmds
  49878. + save_ifs="$IFS"; IFS='~'
  49879. + for cmd in $cmds; do
  49880. + IFS="$save_ifs"
  49881. + eval cmd=\"$cmd\"
  49882. + $show "$cmd"
  49883. + $run eval "$cmd" || exit $?
  49884. + done
  49885. + IFS="$save_ifs"
  49886. + fi
  49887. +
  49888. + if test -n "$gentop"; then
  49889. + $show "${rm}r $gentop"
  49890. + $run ${rm}r $gentop
  49891. + fi
  49892. +
  49893. + exit $EXIT_SUCCESS
  49894. + ;;
  49895. +
  49896. + prog)
  49897. + case $host in
  49898. + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  49899. + esac
  49900. + if test -n "$vinfo"; then
  49901. + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  49902. + fi
  49903. +
  49904. + if test -n "$release"; then
  49905. + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  49906. + fi
  49907. +
  49908. + if test "$preload" = yes; then
  49909. + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  49910. + test "$dlopen_self_static" = unknown; then
  49911. + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  49912. fi
  49913. - # Done checking deplibs!
  49914. - deplibs=$newdeplibs
  49915. fi
  49916. - # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  49917. +
  49918. case $host in
  49919. - *-*-darwin*)
  49920. - newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  49921. - new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  49922. - deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  49923. - ;;
  49924. + *-*-rhapsody* | *-*-darwin1.[012])
  49925. + # On Rhapsody replace the C library is the System framework
  49926. + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  49927. + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  49928. + ;;
  49929. + esac
  49930. +
  49931. + case $host in
  49932. + *darwin*)
  49933. + # Don't allow lazy linking, it breaks C++ global constructors
  49934. + if test "$tagname" = CXX ; then
  49935. + compile_command="$compile_command ${wl}-bind_at_load"
  49936. + finalize_command="$finalize_command ${wl}-bind_at_load"
  49937. + fi
  49938. + ;;
  49939. esac
  49940. +
  49941. # move library search paths that coincide with paths to not yet
  49942. # installed libraries to the beginning of the library search list
  49943. new_libs=
  49944. @@ -5343,14 +4414,14 @@
  49945. case " $new_libs " in
  49946. *" -L$path/$objdir "*) ;;
  49947. *)
  49948. - case " $deplibs " in
  49949. + case " $compile_deplibs " in
  49950. *" -L$path/$objdir "*)
  49951. new_libs="$new_libs -L$path/$objdir" ;;
  49952. esac
  49953. ;;
  49954. esac
  49955. done
  49956. - for deplib in $deplibs; do
  49957. + for deplib in $compile_deplibs; do
  49958. case $deplib in
  49959. -L*)
  49960. case " $new_libs " in
  49961. @@ -5361,1736 +4432,2069 @@
  49962. *) new_libs="$new_libs $deplib" ;;
  49963. esac
  49964. done
  49965. - deplibs="$new_libs"
  49966. + compile_deplibs="$new_libs"
  49967. - # All the library-specific variables (install_libdir is set above).
  49968. - library_names=
  49969. - old_library=
  49970. - dlname=
  49971. - # Test again, we may have decided not to build it any more
  49972. - if test "$build_libtool_libs" = yes; then
  49973. - if test "$hardcode_into_libs" = yes; then
  49974. - # Hardcode the library paths
  49975. - hardcode_libdirs=
  49976. - dep_rpath=
  49977. - rpath="$finalize_rpath"
  49978. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  49979. - for libdir in $rpath; do
  49980. - if test -n "$hardcode_libdir_flag_spec"; then
  49981. - if test -n "$hardcode_libdir_separator"; then
  49982. - if test -z "$hardcode_libdirs"; then
  49983. - hardcode_libdirs="$libdir"
  49984. - else
  49985. - # Just accumulate the unique libdirs.
  49986. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  49987. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  49988. - ;;
  49989. - *)
  49990. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  49991. - ;;
  49992. - esac
  49993. - fi
  49994. - else
  49995. - eval flag=\"$hardcode_libdir_flag_spec\"
  49996. - dep_rpath="$dep_rpath $flag"
  49997. - fi
  49998. - elif test -n "$runpath_var"; then
  49999. - case "$perm_rpath " in
  50000. - *" $libdir "*) ;;
  50001. - *) perm_rpath="$perm_rpath $libdir" ;;
  50002. - esac
  50003. - fi
  50004. - done
  50005. - # Substitute the hardcoded libdirs into the rpath.
  50006. - if test -n "$hardcode_libdir_separator" &&
  50007. - test -n "$hardcode_libdirs"; then
  50008. - libdir="$hardcode_libdirs"
  50009. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  50010. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  50011. + compile_command="$compile_command $compile_deplibs"
  50012. + finalize_command="$finalize_command $finalize_deplibs"
  50013. +
  50014. + if test -n "$rpath$xrpath"; then
  50015. + # If the user specified any rpath flags, then add them.
  50016. + for libdir in $rpath $xrpath; do
  50017. + # This is the magic to use -rpath.
  50018. + case "$finalize_rpath " in
  50019. + *" $libdir "*) ;;
  50020. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  50021. + esac
  50022. + done
  50023. + fi
  50024. +
  50025. + # Now hardcode the library paths
  50026. + rpath=
  50027. + hardcode_libdirs=
  50028. + for libdir in $compile_rpath $finalize_rpath; do
  50029. + if test -n "$hardcode_libdir_flag_spec"; then
  50030. + if test -n "$hardcode_libdir_separator"; then
  50031. + if test -z "$hardcode_libdirs"; then
  50032. + hardcode_libdirs="$libdir"
  50033. else
  50034. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  50035. + # Just accumulate the unique libdirs.
  50036. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  50037. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  50038. + ;;
  50039. + *)
  50040. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  50041. + ;;
  50042. + esac
  50043. fi
  50044. + else
  50045. + eval flag=\"$hardcode_libdir_flag_spec\"
  50046. + rpath="$rpath $flag"
  50047. fi
  50048. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  50049. - # We should set the runpath_var.
  50050. - rpath=
  50051. - for dir in $perm_rpath; do
  50052. - rpath="$rpath$dir:"
  50053. - done
  50054. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  50055. - fi
  50056. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  50057. + elif test -n "$runpath_var"; then
  50058. + case "$perm_rpath " in
  50059. + *" $libdir "*) ;;
  50060. + *) perm_rpath="$perm_rpath $libdir" ;;
  50061. + esac
  50062. fi
  50063. + case $host in
  50064. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  50065. + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
  50066. + case :$dllsearchpath: in
  50067. + *":$libdir:"*) ;;
  50068. + *) dllsearchpath="$dllsearchpath:$libdir";;
  50069. + esac
  50070. + case :$dllsearchpath: in
  50071. + *":$testbindir:"*) ;;
  50072. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  50073. + esac
  50074. + ;;
  50075. + esac
  50076. + done
  50077. + # Substitute the hardcoded libdirs into the rpath.
  50078. + if test -n "$hardcode_libdir_separator" &&
  50079. + test -n "$hardcode_libdirs"; then
  50080. + libdir="$hardcode_libdirs"
  50081. + eval rpath=\" $hardcode_libdir_flag_spec\"
  50082. + fi
  50083. + compile_rpath="$rpath"
  50084. - shlibpath="$finalize_shlibpath"
  50085. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  50086. - if test -n "$shlibpath"; then
  50087. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  50088. + rpath=
  50089. + hardcode_libdirs=
  50090. + for libdir in $finalize_rpath; do
  50091. + if test -n "$hardcode_libdir_flag_spec"; then
  50092. + if test -n "$hardcode_libdir_separator"; then
  50093. + if test -z "$hardcode_libdirs"; then
  50094. + hardcode_libdirs="$libdir"
  50095. + else
  50096. + # Just accumulate the unique libdirs.
  50097. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  50098. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  50099. + ;;
  50100. + *)
  50101. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  50102. + ;;
  50103. + esac
  50104. + fi
  50105. + else
  50106. + eval flag=\"$hardcode_libdir_flag_spec\"
  50107. + rpath="$rpath $flag"
  50108. + fi
  50109. + elif test -n "$runpath_var"; then
  50110. + case "$finalize_perm_rpath " in
  50111. + *" $libdir "*) ;;
  50112. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  50113. + esac
  50114. fi
  50115. + done
  50116. + # Substitute the hardcoded libdirs into the rpath.
  50117. + if test -n "$hardcode_libdir_separator" &&
  50118. + test -n "$hardcode_libdirs"; then
  50119. + libdir="$hardcode_libdirs"
  50120. + eval rpath=\" $hardcode_libdir_flag_spec\"
  50121. + fi
  50122. + finalize_rpath="$rpath"
  50123. - # Get the real and link names of the library.
  50124. - eval shared_ext=\"$shrext_cmds\"
  50125. - eval library_names=\"$library_names_spec\"
  50126. - set dummy $library_names
  50127. - shift
  50128. - realname="$1"
  50129. - shift
  50130. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  50131. + # Transform all the library objects into standard objects.
  50132. + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  50133. + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  50134. + fi
  50135. - if test -n "$soname_spec"; then
  50136. - eval soname=\"$soname_spec\"
  50137. + dlsyms=
  50138. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  50139. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  50140. + dlsyms="${outputname}S.c"
  50141. else
  50142. - soname="$realname"
  50143. - fi
  50144. - if test -z "$dlname"; then
  50145. - dlname=$soname
  50146. + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  50147. fi
  50148. + fi
  50149. - lib="$output_objdir/$realname"
  50150. - linknames=
  50151. - for link
  50152. - do
  50153. - linknames="$linknames $link"
  50154. - done
  50155. + if test -n "$dlsyms"; then
  50156. + case $dlsyms in
  50157. + "") ;;
  50158. + *.c)
  50159. + # Discover the nlist of each of the dlfiles.
  50160. + nlist="$output_objdir/${outputname}.nm"
  50161. - # Use standard objects if they are pic
  50162. - test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  50163. + $show "$rm $nlist ${nlist}S ${nlist}T"
  50164. + $run $rm "$nlist" "${nlist}S" "${nlist}T"
  50165. +
  50166. + # Parse the name list into a source file.
  50167. + $show "creating $output_objdir/$dlsyms"
  50168. +
  50169. + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  50170. +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  50171. +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  50172. +
  50173. +#ifdef __cplusplus
  50174. +extern \"C\" {
  50175. +#endif
  50176. +
  50177. +/* Prevent the only kind of declaration conflicts we can make. */
  50178. +#define lt_preloaded_symbols some_other_symbol
  50179. +
  50180. +/* External symbol declarations for the compiler. */\
  50181. +"
  50182. +
  50183. + if test "$dlself" = yes; then
  50184. + $show "generating symbol list for \`$output'"
  50185. +
  50186. + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  50187. +
  50188. + # Add our own program objects to the symbol list.
  50189. + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  50190. + for arg in $progfiles; do
  50191. + $show "extracting global C symbols from \`$arg'"
  50192. + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  50193. + done
  50194. +
  50195. + if test -n "$exclude_expsyms"; then
  50196. + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  50197. + $run eval '$mv "$nlist"T "$nlist"'
  50198. + fi
  50199. +
  50200. + if test -n "$export_symbols_regex"; then
  50201. + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  50202. + $run eval '$mv "$nlist"T "$nlist"'
  50203. + fi
  50204. +
  50205. + # Prepare the list of exported symbols
  50206. + if test -z "$export_symbols"; then
  50207. + export_symbols="$output_objdir/$outputname.exp"
  50208. + $run $rm $export_symbols
  50209. + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  50210. + case $host in
  50211. + *cygwin* | *mingw* )
  50212. + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  50213. + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  50214. + ;;
  50215. + esac
  50216. + else
  50217. + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  50218. + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  50219. + $run eval 'mv "$nlist"T "$nlist"'
  50220. + case $host in
  50221. + *cygwin* | *mingw* )
  50222. + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  50223. + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  50224. + ;;
  50225. + esac
  50226. + fi
  50227. + fi
  50228. +
  50229. + for arg in $dlprefiles; do
  50230. + $show "extracting global C symbols from \`$arg'"
  50231. + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  50232. + $run eval '$echo ": $name " >> "$nlist"'
  50233. + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  50234. + done
  50235. +
  50236. + if test -z "$run"; then
  50237. + # Make sure we have at least an empty file.
  50238. + test -f "$nlist" || : > "$nlist"
  50239. +
  50240. + if test -n "$exclude_expsyms"; then
  50241. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  50242. + $mv "$nlist"T "$nlist"
  50243. + fi
  50244. +
  50245. + # Try sorting and uniquifying the output.
  50246. + if grep -v "^: " < "$nlist" |
  50247. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  50248. + sort -k 3
  50249. + else
  50250. + sort +2
  50251. + fi |
  50252. + uniq > "$nlist"S; then
  50253. + :
  50254. + else
  50255. + grep -v "^: " < "$nlist" > "$nlist"S
  50256. + fi
  50257. +
  50258. + if test -f "$nlist"S; then
  50259. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  50260. + else
  50261. + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  50262. + fi
  50263. +
  50264. + $echo >> "$output_objdir/$dlsyms" "\
  50265. +
  50266. +#undef lt_preloaded_symbols
  50267. +
  50268. +#if defined (__STDC__) && __STDC__
  50269. +# define lt_ptr void *
  50270. +#else
  50271. +# define lt_ptr char *
  50272. +# define const
  50273. +#endif
  50274. +
  50275. +/* The mapping between symbol names and symbols. */
  50276. +"
  50277. +
  50278. + case $host in
  50279. + *cygwin* | *mingw* )
  50280. + $echo >> "$output_objdir/$dlsyms" "\
  50281. +/* DATA imports from DLLs on WIN32 can't be const, because
  50282. + runtime relocations are performed -- see ld's documentation
  50283. + on pseudo-relocs */
  50284. +struct {
  50285. +"
  50286. + ;;
  50287. + * )
  50288. + $echo >> "$output_objdir/$dlsyms" "\
  50289. +const struct {
  50290. +"
  50291. + ;;
  50292. + esac
  50293. +
  50294. +
  50295. + $echo >> "$output_objdir/$dlsyms" "\
  50296. + const char *name;
  50297. + lt_ptr address;
  50298. +}
  50299. +lt_preloaded_symbols[] =
  50300. +{\
  50301. +"
  50302. +
  50303. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  50304. +
  50305. + $echo >> "$output_objdir/$dlsyms" "\
  50306. + {0, (lt_ptr) 0}
  50307. +};
  50308. +
  50309. +/* This works around a problem in FreeBSD linker */
  50310. +#ifdef FREEBSD_WORKAROUND
  50311. +static const void *lt_preloaded_setup() {
  50312. + return lt_preloaded_symbols;
  50313. +}
  50314. +#endif
  50315. - delfiles=
  50316. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  50317. - $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  50318. - export_symbols="$output_objdir/$libname.uexp"
  50319. - delfiles="$delfiles $export_symbols"
  50320. - fi
  50321. -
  50322. - orig_export_symbols=
  50323. - case $host_os in
  50324. - cygwin* | mingw*)
  50325. - if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  50326. - # exporting using user supplied symfile
  50327. - if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  50328. - # and it's NOT already a .def file. Must figure out
  50329. - # which of the given symbols are data symbols and tag
  50330. - # them as such. So, trigger use of export_symbols_cmds.
  50331. - # export_symbols gets reassigned inside the "prepare
  50332. - # the list of exported symbols" if statement, so the
  50333. - # include_expsyms logic still works.
  50334. - orig_export_symbols="$export_symbols"
  50335. - export_symbols=
  50336. - always_export_symbols=yes
  50337. - fi
  50338. +#ifdef __cplusplus
  50339. +}
  50340. +#endif\
  50341. +"
  50342. fi
  50343. +
  50344. + pic_flag_for_symtable=
  50345. + case $host in
  50346. + # compiling the symbol table file with pic_flag works around
  50347. + # a FreeBSD bug that causes programs to crash when -lm is
  50348. + # linked before any other PIC object. But we must not use
  50349. + # pic_flag when linking with -static. The problem exists in
  50350. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  50351. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  50352. + case "$compile_command " in
  50353. + *" -static "*) ;;
  50354. + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  50355. + esac;;
  50356. + *-*-hpux*)
  50357. + case "$compile_command " in
  50358. + *" -static "*) ;;
  50359. + *) pic_flag_for_symtable=" $pic_flag";;
  50360. + esac
  50361. + esac
  50362. +
  50363. + # Now compile the dynamic symbol file.
  50364. + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  50365. + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  50366. +
  50367. + # Clean up the generated files.
  50368. + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  50369. + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  50370. +
  50371. + # Transform the symbol file into the correct name.
  50372. + case $host in
  50373. + *cygwin* | *mingw* )
  50374. + if test -f "$output_objdir/${outputname}.def" ; then
  50375. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  50376. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
  50377. + else
  50378. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  50379. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  50380. + fi
  50381. + ;;
  50382. + * )
  50383. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  50384. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  50385. + ;;
  50386. + esac
  50387. + ;;
  50388. + *-*-freebsd*)
  50389. + # FreeBSD doesn't need this...
  50390. + ;;
  50391. + *)
  50392. + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  50393. + exit $EXIT_FAILURE
  50394. ;;
  50395. esac
  50396. + else
  50397. + # We keep going just in case the user didn't refer to
  50398. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  50399. + # really was required.
  50400. - # Prepare the list of exported symbols
  50401. - if test -z "$export_symbols"; then
  50402. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  50403. - func_echo "generating symbol list for \`$libname.la'"
  50404. - export_symbols="$output_objdir/$libname.exp"
  50405. - $opt_dry_run || $RM $export_symbols
  50406. - cmds=$export_symbols_cmds
  50407. - save_ifs="$IFS"; IFS='~'
  50408. - for cmd in $cmds; do
  50409. - IFS="$save_ifs"
  50410. - eval cmd=\"$cmd\"
  50411. - if len=`expr "X$cmd" : ".*"` &&
  50412. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  50413. - func_show_eval "$cmd" 'exit $?'
  50414. - skipped_export=false
  50415. - else
  50416. - # The command line is too long to execute in one step.
  50417. - func_echo "using reloadable object file for export list..."
  50418. - skipped_export=:
  50419. - # Break out early, otherwise skipped_export may be
  50420. - # set to false by a later but shorter cmd.
  50421. - break
  50422. - fi
  50423. - done
  50424. - IFS="$save_ifs"
  50425. - if test -n "$export_symbols_regex"; then
  50426. - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  50427. - func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  50428. - fi
  50429. - fi
  50430. - fi
  50431. + # Nullify the symbol file.
  50432. + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  50433. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  50434. + fi
  50435. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  50436. - tmp_export_symbols="$export_symbols"
  50437. - test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  50438. - $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  50439. - fi
  50440. -
  50441. - if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  50442. - # The given exports_symbols file has to be filtered, so filter it.
  50443. - func_echo "filter symbol list for \`$libname.la' to tag DATA exports"
  50444. - # FIXME: $output_objdir/$libname.filter potentially contains lots of
  50445. - # 's' commands which not all seds can handle. GNU sed should be fine
  50446. - # though. Also, the filter scales superlinearly with the number of
  50447. - # global variables. join(1) would be nice here, but unfortunately
  50448. - # isn't a blessed tool.
  50449. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  50450. - delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  50451. - export_symbols=$output_objdir/$libname.def
  50452. - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  50453. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  50454. + # Replace the output file specification.
  50455. + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  50456. + link_command="$compile_command$compile_rpath"
  50457. +
  50458. + # We have no uninstalled library dependencies, so finalize right now.
  50459. + $show "$link_command"
  50460. + $run eval "$link_command"
  50461. + exit_status=$?
  50462. +
  50463. + # Delete the generated files.
  50464. + if test -n "$dlsyms"; then
  50465. + $show "$rm $output_objdir/${outputname}S.${objext}"
  50466. + $run $rm "$output_objdir/${outputname}S.${objext}"
  50467. fi
  50468. - tmp_deplibs=
  50469. - for test_deplib in $deplibs; do
  50470. - case " $convenience " in
  50471. - *" $test_deplib "*) ;;
  50472. + exit $exit_status
  50473. + fi
  50474. +
  50475. + if test -n "$shlibpath_var"; then
  50476. + # We should set the shlibpath_var
  50477. + rpath=
  50478. + for dir in $temp_rpath; do
  50479. + case $dir in
  50480. + [\\/]* | [A-Za-z]:[\\/]*)
  50481. + # Absolute path.
  50482. + rpath="$rpath$dir:"
  50483. + ;;
  50484. *)
  50485. - tmp_deplibs="$tmp_deplibs $test_deplib"
  50486. + # Relative path: add a thisdir entry.
  50487. + rpath="$rpath\$thisdir/$dir:"
  50488. ;;
  50489. esac
  50490. done
  50491. - deplibs="$tmp_deplibs"
  50492. + temp_rpath="$rpath"
  50493. + fi
  50494. - if test -n "$convenience"; then
  50495. - if test -n "$whole_archive_flag_spec"; then
  50496. - save_libobjs=$libobjs
  50497. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  50498. - else
  50499. - gentop="$output_objdir/${outputname}x"
  50500. - generated="$generated $gentop"
  50501. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  50502. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  50503. + fi
  50504. + if test -n "$finalize_shlibpath"; then
  50505. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  50506. + fi
  50507. - func_extract_archives $gentop $convenience
  50508. - libobjs="$libobjs $func_extract_archives_result"
  50509. - fi
  50510. + compile_var=
  50511. + finalize_var=
  50512. + if test -n "$runpath_var"; then
  50513. + if test -n "$perm_rpath"; then
  50514. + # We should set the runpath_var.
  50515. + rpath=
  50516. + for dir in $perm_rpath; do
  50517. + rpath="$rpath$dir:"
  50518. + done
  50519. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  50520. fi
  50521. -
  50522. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  50523. - eval flag=\"$thread_safe_flag_spec\"
  50524. - linker_flags="$linker_flags $flag"
  50525. + if test -n "$finalize_perm_rpath"; then
  50526. + # We should set the runpath_var.
  50527. + rpath=
  50528. + for dir in $finalize_perm_rpath; do
  50529. + rpath="$rpath$dir:"
  50530. + done
  50531. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  50532. fi
  50533. + fi
  50534. - # Make a backup of the uninstalled library when relinking
  50535. - if test "$mode" = relink; then
  50536. - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  50537. - fi
  50538. + if test "$no_install" = yes; then
  50539. + # We don't need to create a wrapper script.
  50540. + link_command="$compile_var$compile_command$compile_rpath"
  50541. + # Replace the output file specification.
  50542. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  50543. + # Delete the old output file.
  50544. + $run $rm $output
  50545. + # Link the executable and exit
  50546. + $show "$link_command"
  50547. + $run eval "$link_command" || exit $?
  50548. + exit $EXIT_SUCCESS
  50549. + fi
  50550. - # Do each of the archive commands.
  50551. - if test "$module" = yes && test -n "$module_cmds" ; then
  50552. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  50553. - eval test_cmds=\"$module_expsym_cmds\"
  50554. - cmds=$module_expsym_cmds
  50555. + if test "$hardcode_action" = relink; then
  50556. + # Fast installation is not supported
  50557. + link_command="$compile_var$compile_command$compile_rpath"
  50558. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  50559. +
  50560. + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  50561. + $echo "$modename: \`$output' will be relinked during installation" 1>&2
  50562. + else
  50563. + if test "$fast_install" != no; then
  50564. + link_command="$finalize_var$compile_command$finalize_rpath"
  50565. + if test "$fast_install" = yes; then
  50566. + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  50567. else
  50568. - eval test_cmds=\"$module_cmds\"
  50569. - cmds=$module_cmds
  50570. + # fast_install is set to needless
  50571. + relink_command=
  50572. fi
  50573. else
  50574. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  50575. - eval test_cmds=\"$archive_expsym_cmds\"
  50576. - cmds=$archive_expsym_cmds
  50577. - else
  50578. - eval test_cmds=\"$archive_cmds\"
  50579. - cmds=$archive_cmds
  50580. - fi
  50581. + link_command="$compile_var$compile_command$compile_rpath"
  50582. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  50583. fi
  50584. + fi
  50585. - if test "X$skipped_export" != "X:" &&
  50586. - len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  50587. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  50588. - :
  50589. - else
  50590. - # The command line is too long to link in one step, link piecewise
  50591. - # or, if using GNU ld and skipped_export is not :, use a linker
  50592. - # script.
  50593. + # Replace the output file specification.
  50594. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  50595. - # Save the value of $output and $libobjs because we want to
  50596. - # use them later. If we have whole_archive_flag_spec, we
  50597. - # want to use save_libobjs as it was before
  50598. - # whole_archive_flag_spec was expanded, because we can't
  50599. - # assume the linker understands whole_archive_flag_spec.
  50600. - # This may have to be revisited, in case too many
  50601. - # convenience libraries get linked in and end up exceeding
  50602. - # the spec.
  50603. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  50604. - save_libobjs=$libobjs
  50605. - fi
  50606. - save_output=$output
  50607. - output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  50608. + # Delete the old output files.
  50609. + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  50610. - # Clear the reloadable object creation command queue and
  50611. - # initialize k to one.
  50612. - test_cmds=
  50613. - concat_cmds=
  50614. - objlist=
  50615. - last_robj=
  50616. - k=1
  50617. + $show "$link_command"
  50618. + $run eval "$link_command" || exit $?
  50619. - if test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  50620. - output=${output_objdir}/${output_la}.lnkscript
  50621. - func_echo "creating GNU ld script: $output"
  50622. - $ECHO 'INPUT (' > $output
  50623. - for obj in $save_libobjs
  50624. - do
  50625. - $ECHO \""$obj"\" >> $output
  50626. - done
  50627. - $ECHO ')' >> $output
  50628. - delfiles="$delfiles $output"
  50629. - elif test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  50630. - output=${output_objdir}/${output_la}.lnk
  50631. - func_echo "creating linker input file list: $output"
  50632. - : > $output
  50633. - for obj in $save_libobjs
  50634. - do
  50635. - $ECHO "$obj" >> $output
  50636. - done
  50637. - delfiles="$delfiles $output"
  50638. - output=\"$file_list_spec$output\"
  50639. + # Now create the wrapper script.
  50640. + $show "creating $output"
  50641. +
  50642. + # Quote the relink command for shipping.
  50643. + if test -n "$relink_command"; then
  50644. + # Preserve any variables that may affect compiler behavior
  50645. + for var in $variables_saved_for_relink; do
  50646. + if eval test -z \"\${$var+set}\"; then
  50647. + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  50648. + elif eval var_value=\$$var; test -z "$var_value"; then
  50649. + relink_command="$var=; export $var; $relink_command"
  50650. else
  50651. - func_echo "creating reloadable object files..."
  50652. - output=$output_objdir/$output_la-${k}.$objext
  50653. - # Loop over the list of objects to be linked.
  50654. - for obj in $save_libobjs
  50655. - do
  50656. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  50657. - if test "X$objlist" = X ||
  50658. - { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  50659. - test "$len" -le "$max_cmd_len"; }; then
  50660. - objlist="$objlist $obj"
  50661. - else
  50662. - # The command $test_cmds is almost too long, add a
  50663. - # command to the queue.
  50664. - if test "$k" -eq 1 ; then
  50665. - # The first file doesn't have a previous command to add.
  50666. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  50667. - else
  50668. - # All subsequent reloadable object files will link in
  50669. - # the last one created.
  50670. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  50671. - fi
  50672. - last_robj=$output_objdir/$output_la-${k}.$objext
  50673. - k=`expr $k + 1`
  50674. - output=$output_objdir/$output_la-${k}.$objext
  50675. - objlist=$obj
  50676. - len=1
  50677. - fi
  50678. - done
  50679. - # Handle the remaining objects by creating one last
  50680. - # reloadable object file. All subsequent reloadable object
  50681. - # files will link in the last one created.
  50682. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  50683. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  50684. -
  50685. - if ${skipped_export-false}; then
  50686. - func_echo "generating symbol list for \`$libname.la'"
  50687. - export_symbols="$output_objdir/$libname.exp"
  50688. - $opt_dry_run || $RM $export_symbols
  50689. - libobjs=$output
  50690. - # Append the command to create the export file.
  50691. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  50692. - fi
  50693. -
  50694. - # Set up a command to remove the reloadable object files
  50695. - # after they are used.
  50696. - i=0
  50697. - while test "$i" -lt "$k"
  50698. - do
  50699. - i=`expr $i + 1`
  50700. - delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
  50701. - done
  50702. + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  50703. + relink_command="$var=\"$var_value\"; export $var; $relink_command"
  50704. + fi
  50705. + done
  50706. + relink_command="(cd `pwd`; $relink_command)"
  50707. + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  50708. + fi
  50709. +
  50710. + # Quote $echo for shipping.
  50711. + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  50712. + case $progpath in
  50713. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  50714. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  50715. + esac
  50716. + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  50717. + else
  50718. + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  50719. + fi
  50720. - func_echo "creating a temporary reloadable object file: $output"
  50721. + # Only actually do things if our run command is non-null.
  50722. + if test -z "$run"; then
  50723. + # win32 will think the script is a binary if it has
  50724. + # a .exe suffix, so we strip it off here.
  50725. + case $output in
  50726. + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  50727. + esac
  50728. + # test for cygwin because mv fails w/o .exe extensions
  50729. + case $host in
  50730. + *cygwin*)
  50731. + exeext=.exe
  50732. + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  50733. + *) exeext= ;;
  50734. + esac
  50735. + case $host in
  50736. + *cygwin* | *mingw* )
  50737. + output_name=`basename $output`
  50738. + output_path=`dirname $output`
  50739. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  50740. + cwrapper="$output_path/$output_name.exe"
  50741. + $rm $cwrappersource $cwrapper
  50742. + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  50743. - # Loop through the commands generated above and execute them.
  50744. - save_ifs="$IFS"; IFS='~'
  50745. - for cmd in $concat_cmds; do
  50746. - IFS="$save_ifs"
  50747. - $opt_silent || {
  50748. - func_quote_for_expand "$cmd"
  50749. - eval "func_echo $func_quote_for_expand_result"
  50750. - }
  50751. - $opt_dry_run || eval "$cmd" || {
  50752. - lt_exit=$?
  50753. -
  50754. - # Restore the uninstalled library and exit
  50755. - if test "$mode" = relink; then
  50756. - ( cd "$output_objdir" && \
  50757. - $RM "${realname}T" && \
  50758. - $MV "${realname}U" "$realname" )
  50759. - fi
  50760. + cat > $cwrappersource <<EOF
  50761. - exit $lt_exit
  50762. - }
  50763. - done
  50764. - IFS="$save_ifs"
  50765. - fi
  50766. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  50767. + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  50768. - libobjs=$output
  50769. - # Restore the value of output.
  50770. - output=$save_output
  50771. + The $output program cannot be directly executed until all the libtool
  50772. + libraries that it depends on are installed.
  50773. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  50774. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  50775. - fi
  50776. - # Expand the library linking commands again to reset the
  50777. - # value of $libobjs for piecewise linking.
  50778. + This wrapper executable should never be moved out of the build directory.
  50779. + If it is, it will not operate correctly.
  50780. - # Do each of the archive commands.
  50781. - if test "$module" = yes && test -n "$module_cmds" ; then
  50782. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  50783. - cmds=$module_expsym_cmds
  50784. - else
  50785. - cmds=$module_cmds
  50786. - fi
  50787. - else
  50788. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  50789. - cmds=$archive_expsym_cmds
  50790. - else
  50791. - cmds=$archive_cmds
  50792. - fi
  50793. - fi
  50794. - fi
  50795. + Currently, it simply execs the wrapper *script* "/bin/sh $output",
  50796. + but could eventually absorb all of the scripts functionality and
  50797. + exec $objdir/$outputname directly.
  50798. +*/
  50799. +EOF
  50800. + cat >> $cwrappersource<<"EOF"
  50801. +#include <stdio.h>
  50802. +#include <stdlib.h>
  50803. +#include <unistd.h>
  50804. +#include <malloc.h>
  50805. +#include <stdarg.h>
  50806. +#include <assert.h>
  50807. +#include <string.h>
  50808. +#include <ctype.h>
  50809. +#include <sys/stat.h>
  50810. - if test -n "$delfiles"; then
  50811. - # Append the command to remove temporary files to $cmds.
  50812. - eval cmds=\"\$cmds~\$RM $delfiles\"
  50813. - fi
  50814. +#if defined(PATH_MAX)
  50815. +# define LT_PATHMAX PATH_MAX
  50816. +#elif defined(MAXPATHLEN)
  50817. +# define LT_PATHMAX MAXPATHLEN
  50818. +#else
  50819. +# define LT_PATHMAX 1024
  50820. +#endif
  50821. - # Add any objects from preloaded convenience libraries
  50822. - if test -n "$dlprefiles"; then
  50823. - gentop="$output_objdir/${outputname}x"
  50824. - generated="$generated $gentop"
  50825. +#ifndef DIR_SEPARATOR
  50826. +# define DIR_SEPARATOR '/'
  50827. +# define PATH_SEPARATOR ':'
  50828. +#endif
  50829. - func_extract_archives $gentop $dlprefiles
  50830. - libobjs="$libobjs $func_extract_archives_result"
  50831. - fi
  50832. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  50833. + defined (__OS2__)
  50834. +# define HAVE_DOS_BASED_FILE_SYSTEM
  50835. +# ifndef DIR_SEPARATOR_2
  50836. +# define DIR_SEPARATOR_2 '\\'
  50837. +# endif
  50838. +# ifndef PATH_SEPARATOR_2
  50839. +# define PATH_SEPARATOR_2 ';'
  50840. +# endif
  50841. +#endif
  50842. - save_ifs="$IFS"; IFS='~'
  50843. - for cmd in $cmds; do
  50844. - IFS="$save_ifs"
  50845. - eval cmd=\"$cmd\"
  50846. - $opt_silent || {
  50847. - func_quote_for_expand "$cmd"
  50848. - eval "func_echo $func_quote_for_expand_result"
  50849. - }
  50850. - $opt_dry_run || eval "$cmd" || {
  50851. - lt_exit=$?
  50852. +#ifndef DIR_SEPARATOR_2
  50853. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  50854. +#else /* DIR_SEPARATOR_2 */
  50855. +# define IS_DIR_SEPARATOR(ch) \
  50856. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  50857. +#endif /* DIR_SEPARATOR_2 */
  50858. - # Restore the uninstalled library and exit
  50859. - if test "$mode" = relink; then
  50860. - ( cd "$output_objdir" && \
  50861. - $RM "${realname}T" && \
  50862. - $MV "${realname}U" "$realname" )
  50863. - fi
  50864. +#ifndef PATH_SEPARATOR_2
  50865. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  50866. +#else /* PATH_SEPARATOR_2 */
  50867. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  50868. +#endif /* PATH_SEPARATOR_2 */
  50869. - exit $lt_exit
  50870. - }
  50871. - done
  50872. - IFS="$save_ifs"
  50873. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  50874. +#define XFREE(stale) do { \
  50875. + if (stale) { free ((void *) stale); stale = 0; } \
  50876. +} while (0)
  50877. - # Restore the uninstalled library and exit
  50878. - if test "$mode" = relink; then
  50879. - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  50880. +/* -DDEBUG is fairly common in CFLAGS. */
  50881. +#undef DEBUG
  50882. +#if defined DEBUGWRAPPER
  50883. +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  50884. +#else
  50885. +# define DEBUG(format, ...)
  50886. +#endif
  50887. - if test -n "$convenience"; then
  50888. - if test -z "$whole_archive_flag_spec"; then
  50889. - func_show_eval '${RM}r "$gentop"'
  50890. - fi
  50891. - fi
  50892. +const char *program_name = NULL;
  50893. - exit $EXIT_SUCCESS
  50894. - fi
  50895. +void * xmalloc (size_t num);
  50896. +char * xstrdup (const char *string);
  50897. +const char * base_name (const char *name);
  50898. +char * find_executable(const char *wrapper);
  50899. +int check_executable(const char *path);
  50900. +char * strendzap(char *str, const char *pat);
  50901. +void lt_fatal (const char *message, ...);
  50902. - # Create links to the real library.
  50903. - for linkname in $linknames; do
  50904. - if test "$realname" != "$linkname"; then
  50905. - func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  50906. - fi
  50907. - done
  50908. +int
  50909. +main (int argc, char *argv[])
  50910. +{
  50911. + char **newargz;
  50912. + int i;
  50913. - # If -module or -export-dynamic was specified, set the dlname.
  50914. - if test "$module" = yes || test "$export_dynamic" = yes; then
  50915. - # On all known operating systems, these are identical.
  50916. - dlname="$soname"
  50917. - fi
  50918. - fi
  50919. - ;;
  50920. + program_name = (char *) xstrdup (base_name (argv[0]));
  50921. + DEBUG("(main) argv[0] : %s\n",argv[0]);
  50922. + DEBUG("(main) program_name : %s\n",program_name);
  50923. + newargz = XMALLOC(char *, argc+2);
  50924. +EOF
  50925. - obj)
  50926. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  50927. - func_warning "\`-dlopen' is ignored for objects"
  50928. - fi
  50929. + cat >> $cwrappersource <<EOF
  50930. + newargz[0] = (char *) xstrdup("$SHELL");
  50931. +EOF
  50932. - test -n "$deplibs" && \
  50933. - func_warning "\`-l' and \`-L' are ignored for objects"
  50934. + cat >> $cwrappersource <<"EOF"
  50935. + newargz[1] = find_executable(argv[0]);
  50936. + if (newargz[1] == NULL)
  50937. + lt_fatal("Couldn't find %s", argv[0]);
  50938. + DEBUG("(main) found exe at : %s\n",newargz[1]);
  50939. + /* we know the script has the same name, without the .exe */
  50940. + /* so make sure newargz[1] doesn't end in .exe */
  50941. + strendzap(newargz[1],".exe");
  50942. + for (i = 1; i < argc; i++)
  50943. + newargz[i+1] = xstrdup(argv[i]);
  50944. + newargz[argc+1] = NULL;
  50945. - test -n "$rpath" && \
  50946. - func_warning "\`-rpath' is ignored for objects"
  50947. + for (i=0; i<argc+1; i++)
  50948. + {
  50949. + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  50950. + ;
  50951. + }
  50952. - test -n "$xrpath" && \
  50953. - func_warning "\`-R' is ignored for objects"
  50954. +EOF
  50955. - test -n "$vinfo" && \
  50956. - func_warning "\`-version-info' is ignored for objects"
  50957. + case $host_os in
  50958. + mingw*)
  50959. + cat >> $cwrappersource <<EOF
  50960. + execv("$SHELL",(char const **)newargz);
  50961. +EOF
  50962. + ;;
  50963. + *)
  50964. + cat >> $cwrappersource <<EOF
  50965. + execv("$SHELL",newargz);
  50966. +EOF
  50967. + ;;
  50968. + esac
  50969. - test -n "$release" && \
  50970. - func_warning "\`-release' is ignored for objects"
  50971. + cat >> $cwrappersource <<"EOF"
  50972. + return 127;
  50973. +}
  50974. - case $output in
  50975. - *.lo)
  50976. - test -n "$objs$old_deplibs" && \
  50977. - func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  50978. +void *
  50979. +xmalloc (size_t num)
  50980. +{
  50981. + void * p = (void *) malloc (num);
  50982. + if (!p)
  50983. + lt_fatal ("Memory exhausted");
  50984. - libobj="$output"
  50985. - obj=`$ECHO "X$output" | $Xsed -e "$lo2o"`
  50986. - ;;
  50987. - *)
  50988. - libobj=
  50989. - obj="$output"
  50990. - ;;
  50991. - esac
  50992. + return p;
  50993. +}
  50994. - # Delete the old objects.
  50995. - $opt_dry_run || $RM $obj $libobj
  50996. +char *
  50997. +xstrdup (const char *string)
  50998. +{
  50999. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  51000. +;
  51001. +}
  51002. - # Objects from convenience libraries. This assumes
  51003. - # single-version convenience libraries. Whenever we create
  51004. - # different ones for PIC/non-PIC, this we'll have to duplicate
  51005. - # the extraction.
  51006. - reload_conv_objs=
  51007. - gentop=
  51008. - # reload_cmds runs $LD directly, so let us get rid of
  51009. - # -Wl from whole_archive_flag_spec
  51010. - wl=
  51011. +const char *
  51012. +base_name (const char *name)
  51013. +{
  51014. + const char *base;
  51015. - if test -n "$convenience"; then
  51016. - if test -n "$whole_archive_flag_spec"; then
  51017. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  51018. - else
  51019. - gentop="$output_objdir/${obj}x"
  51020. - generated="$generated $gentop"
  51021. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51022. + /* Skip over the disk name in MSDOS pathnames. */
  51023. + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  51024. + name += 2;
  51025. +#endif
  51026. - func_extract_archives $gentop $convenience
  51027. - reload_conv_objs="$reload_objs $func_extract_archives_result"
  51028. - fi
  51029. - fi
  51030. + for (base = name; *name; name++)
  51031. + if (IS_DIR_SEPARATOR (*name))
  51032. + base = name + 1;
  51033. + return base;
  51034. +}
  51035. - # Create the old-style object.
  51036. - reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  51037. +int
  51038. +check_executable(const char * path)
  51039. +{
  51040. + struct stat st;
  51041. - output="$obj"
  51042. - func_execute_cmds "$reload_cmds" 'exit $?'
  51043. + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  51044. + if ((!path) || (!*path))
  51045. + return 0;
  51046. - # Exit if we aren't doing a library object file.
  51047. - if test -z "$libobj"; then
  51048. - if test -n "$gentop"; then
  51049. - func_show_eval '${RM}r "$gentop"'
  51050. - fi
  51051. + if ((stat (path, &st) >= 0) &&
  51052. + (
  51053. + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  51054. +#if defined (S_IXOTH)
  51055. + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  51056. +#endif
  51057. +#if defined (S_IXGRP)
  51058. + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  51059. +#endif
  51060. + ((st.st_mode & S_IXUSR) == S_IXUSR))
  51061. + )
  51062. + return 1;
  51063. + else
  51064. + return 0;
  51065. +}
  51066. - exit $EXIT_SUCCESS
  51067. - fi
  51068. +/* Searches for the full path of the wrapper. Returns
  51069. + newly allocated full path name if found, NULL otherwise */
  51070. +char *
  51071. +find_executable (const char* wrapper)
  51072. +{
  51073. + int has_slash = 0;
  51074. + const char* p;
  51075. + const char* p_next;
  51076. + /* static buffer for getcwd */
  51077. + char tmp[LT_PATHMAX + 1];
  51078. + int tmp_len;
  51079. + char* concat_name;
  51080. - if test "$build_libtool_libs" != yes; then
  51081. - if test -n "$gentop"; then
  51082. - func_show_eval '${RM}r "$gentop"'
  51083. - fi
  51084. + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  51085. - # Create an invalid libtool object if no PIC, so that we don't
  51086. - # accidentally link it into a program.
  51087. - # $show "echo timestamp > $libobj"
  51088. - # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  51089. - exit $EXIT_SUCCESS
  51090. - fi
  51091. + if ((wrapper == NULL) || (*wrapper == '\0'))
  51092. + return NULL;
  51093. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  51094. - # Only do commands if we really have different PIC objects.
  51095. - reload_objs="$libobjs $reload_conv_objs"
  51096. - output="$libobj"
  51097. - func_execute_cmds "$reload_cmds" 'exit $?'
  51098. - fi
  51099. + /* Absolute path? */
  51100. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51101. + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  51102. + {
  51103. + concat_name = xstrdup (wrapper);
  51104. + if (check_executable(concat_name))
  51105. + return concat_name;
  51106. + XFREE(concat_name);
  51107. + }
  51108. + else
  51109. + {
  51110. +#endif
  51111. + if (IS_DIR_SEPARATOR (wrapper[0]))
  51112. + {
  51113. + concat_name = xstrdup (wrapper);
  51114. + if (check_executable(concat_name))
  51115. + return concat_name;
  51116. + XFREE(concat_name);
  51117. + }
  51118. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  51119. + }
  51120. +#endif
  51121. - if test -n "$gentop"; then
  51122. - func_show_eval '${RM}r "$gentop"'
  51123. - fi
  51124. + for (p = wrapper; *p; p++)
  51125. + if (*p == '/')
  51126. + {
  51127. + has_slash = 1;
  51128. + break;
  51129. + }
  51130. + if (!has_slash)
  51131. + {
  51132. + /* no slashes; search PATH */
  51133. + const char* path = getenv ("PATH");
  51134. + if (path != NULL)
  51135. + {
  51136. + for (p = path; *p; p = p_next)
  51137. + {
  51138. + const char* q;
  51139. + size_t p_len;
  51140. + for (q = p; *q; q++)
  51141. + if (IS_PATH_SEPARATOR(*q))
  51142. + break;
  51143. + p_len = q - p;
  51144. + p_next = (*q == '\0' ? q : q + 1);
  51145. + if (p_len == 0)
  51146. + {
  51147. + /* empty path: current directory */
  51148. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  51149. + lt_fatal ("getcwd failed");
  51150. + tmp_len = strlen(tmp);
  51151. + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  51152. + memcpy (concat_name, tmp, tmp_len);
  51153. + concat_name[tmp_len] = '/';
  51154. + strcpy (concat_name + tmp_len + 1, wrapper);
  51155. + }
  51156. + else
  51157. + {
  51158. + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  51159. + memcpy (concat_name, p, p_len);
  51160. + concat_name[p_len] = '/';
  51161. + strcpy (concat_name + p_len + 1, wrapper);
  51162. + }
  51163. + if (check_executable(concat_name))
  51164. + return concat_name;
  51165. + XFREE(concat_name);
  51166. + }
  51167. + }
  51168. + /* not found in PATH; assume curdir */
  51169. + }
  51170. + /* Relative path | not found in path: prepend cwd */
  51171. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  51172. + lt_fatal ("getcwd failed");
  51173. + tmp_len = strlen(tmp);
  51174. + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  51175. + memcpy (concat_name, tmp, tmp_len);
  51176. + concat_name[tmp_len] = '/';
  51177. + strcpy (concat_name + tmp_len + 1, wrapper);
  51178. - exit $EXIT_SUCCESS
  51179. - ;;
  51180. + if (check_executable(concat_name))
  51181. + return concat_name;
  51182. + XFREE(concat_name);
  51183. + return NULL;
  51184. +}
  51185. - prog)
  51186. - case $host in
  51187. - *cygwin*) func_stripname '' '.exe' "$output"
  51188. - output=$func_stripname_result.exe;;
  51189. - esac
  51190. - test -n "$vinfo" && \
  51191. - func_warning "\`-version-info' is ignored for programs"
  51192. +char *
  51193. +strendzap(char *str, const char *pat)
  51194. +{
  51195. + size_t len, patlen;
  51196. - test -n "$release" && \
  51197. - func_warning "\`-release' is ignored for programs"
  51198. + assert(str != NULL);
  51199. + assert(pat != NULL);
  51200. - test "$preload" = yes \
  51201. - && test "$dlopen_support" = unknown \
  51202. - && test "$dlopen_self" = unknown \
  51203. - && test "$dlopen_self_static" = unknown && \
  51204. - func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  51205. + len = strlen(str);
  51206. + patlen = strlen(pat);
  51207. - case $host in
  51208. - *-*-rhapsody* | *-*-darwin1.[012])
  51209. - # On Rhapsody replace the C library is the System framework
  51210. - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  51211. - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  51212. - ;;
  51213. - esac
  51214. + if (patlen <= len)
  51215. + {
  51216. + str += len - patlen;
  51217. + if (strcmp(str, pat) == 0)
  51218. + *str = '\0';
  51219. + }
  51220. + return str;
  51221. +}
  51222. - case $host in
  51223. - *-*-darwin*)
  51224. - # Don't allow lazy linking, it breaks C++ global constructors
  51225. - # But is supposedly fixed on 10.4 or later (yay!).
  51226. - if test "$tagname" = CXX ; then
  51227. - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  51228. - 10.[0123])
  51229. - compile_command="$compile_command ${wl}-bind_at_load"
  51230. - finalize_command="$finalize_command ${wl}-bind_at_load"
  51231. - ;;
  51232. - esac
  51233. - fi
  51234. - # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  51235. - compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  51236. - finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  51237. - ;;
  51238. - esac
  51239. +static void
  51240. +lt_error_core (int exit_status, const char * mode,
  51241. + const char * message, va_list ap)
  51242. +{
  51243. + fprintf (stderr, "%s: %s: ", program_name, mode);
  51244. + vfprintf (stderr, message, ap);
  51245. + fprintf (stderr, ".\n");
  51246. + if (exit_status >= 0)
  51247. + exit (exit_status);
  51248. +}
  51249. - # move library search paths that coincide with paths to not yet
  51250. - # installed libraries to the beginning of the library search list
  51251. - new_libs=
  51252. - for path in $notinst_path; do
  51253. - case " $new_libs " in
  51254. - *" -L$path/$objdir "*) ;;
  51255. - *)
  51256. - case " $compile_deplibs " in
  51257. - *" -L$path/$objdir "*)
  51258. - new_libs="$new_libs -L$path/$objdir" ;;
  51259. - esac
  51260. - ;;
  51261. - esac
  51262. - done
  51263. - for deplib in $compile_deplibs; do
  51264. - case $deplib in
  51265. - -L*)
  51266. - case " $new_libs " in
  51267. - *" $deplib "*) ;;
  51268. - *) new_libs="$new_libs $deplib" ;;
  51269. - esac
  51270. - ;;
  51271. - *) new_libs="$new_libs $deplib" ;;
  51272. - esac
  51273. - done
  51274. - compile_deplibs="$new_libs"
  51275. +void
  51276. +lt_fatal (const char *message, ...)
  51277. +{
  51278. + va_list ap;
  51279. + va_start (ap, message);
  51280. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  51281. + va_end (ap);
  51282. +}
  51283. +EOF
  51284. + # we should really use a build-platform specific compiler
  51285. + # here, but OTOH, the wrappers (shell script and this C one)
  51286. + # are only useful if you want to execute the "real" binary.
  51287. + # Since the "real" binary is built for $host, then this
  51288. + # wrapper might as well be built for $host, too.
  51289. + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  51290. + ;;
  51291. + esac
  51292. + $rm $output
  51293. + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  51294. + $echo > $output "\
  51295. +#! $SHELL
  51296. - compile_command="$compile_command $compile_deplibs"
  51297. - finalize_command="$finalize_command $finalize_deplibs"
  51298. +# $output - temporary wrapper script for $objdir/$outputname
  51299. +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  51300. +#
  51301. +# The $output program cannot be directly executed until all the libtool
  51302. +# libraries that it depends on are installed.
  51303. +#
  51304. +# This wrapper script should never be moved out of the build directory.
  51305. +# If it is, it will not operate correctly.
  51306. - if test -n "$rpath$xrpath"; then
  51307. - # If the user specified any rpath flags, then add them.
  51308. - for libdir in $rpath $xrpath; do
  51309. - # This is the magic to use -rpath.
  51310. - case "$finalize_rpath " in
  51311. - *" $libdir "*) ;;
  51312. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  51313. - esac
  51314. - done
  51315. - fi
  51316. +# Sed substitution that helps us do robust quoting. It backslashifies
  51317. +# metacharacters that are still active within double-quoted strings.
  51318. +Xsed='${SED} -e 1s/^X//'
  51319. +sed_quote_subst='$sed_quote_subst'
  51320. - # Now hardcode the library paths
  51321. - rpath=
  51322. - hardcode_libdirs=
  51323. - for libdir in $compile_rpath $finalize_rpath; do
  51324. - if test -n "$hardcode_libdir_flag_spec"; then
  51325. - if test -n "$hardcode_libdir_separator"; then
  51326. - if test -z "$hardcode_libdirs"; then
  51327. - hardcode_libdirs="$libdir"
  51328. - else
  51329. - # Just accumulate the unique libdirs.
  51330. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  51331. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  51332. - ;;
  51333. - *)
  51334. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  51335. - ;;
  51336. - esac
  51337. - fi
  51338. - else
  51339. - eval flag=\"$hardcode_libdir_flag_spec\"
  51340. - rpath="$rpath $flag"
  51341. - fi
  51342. - elif test -n "$runpath_var"; then
  51343. - case "$perm_rpath " in
  51344. - *" $libdir "*) ;;
  51345. - *) perm_rpath="$perm_rpath $libdir" ;;
  51346. - esac
  51347. - fi
  51348. - case $host in
  51349. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  51350. - testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  51351. - case :$dllsearchpath: in
  51352. - *":$libdir:"*) ;;
  51353. - *) dllsearchpath="$dllsearchpath:$libdir";;
  51354. - esac
  51355. - case :$dllsearchpath: in
  51356. - *":$testbindir:"*) ;;
  51357. - *) dllsearchpath="$dllsearchpath:$testbindir";;
  51358. - esac
  51359. - ;;
  51360. - esac
  51361. - done
  51362. - # Substitute the hardcoded libdirs into the rpath.
  51363. - if test -n "$hardcode_libdir_separator" &&
  51364. - test -n "$hardcode_libdirs"; then
  51365. - libdir="$hardcode_libdirs"
  51366. - eval rpath=\" $hardcode_libdir_flag_spec\"
  51367. - fi
  51368. - compile_rpath="$rpath"
  51369. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  51370. +# if CDPATH is set.
  51371. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  51372. - rpath=
  51373. - hardcode_libdirs=
  51374. - for libdir in $finalize_rpath; do
  51375. - if test -n "$hardcode_libdir_flag_spec"; then
  51376. - if test -n "$hardcode_libdir_separator"; then
  51377. - if test -z "$hardcode_libdirs"; then
  51378. - hardcode_libdirs="$libdir"
  51379. - else
  51380. - # Just accumulate the unique libdirs.
  51381. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  51382. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  51383. - ;;
  51384. - *)
  51385. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  51386. - ;;
  51387. - esac
  51388. - fi
  51389. - else
  51390. - eval flag=\"$hardcode_libdir_flag_spec\"
  51391. - rpath="$rpath $flag"
  51392. - fi
  51393. - elif test -n "$runpath_var"; then
  51394. - case "$finalize_perm_rpath " in
  51395. - *" $libdir "*) ;;
  51396. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  51397. - esac
  51398. - fi
  51399. - done
  51400. - # Substitute the hardcoded libdirs into the rpath.
  51401. - if test -n "$hardcode_libdir_separator" &&
  51402. - test -n "$hardcode_libdirs"; then
  51403. - libdir="$hardcode_libdirs"
  51404. - eval rpath=\" $hardcode_libdir_flag_spec\"
  51405. - fi
  51406. - finalize_rpath="$rpath"
  51407. +relink_command=\"$relink_command\"
  51408. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  51409. - # Transform all the library objects into standard objects.
  51410. - compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51411. - finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  51412. - fi
  51413. +# This environment variable determines our operation mode.
  51414. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  51415. + # install mode needs the following variable:
  51416. + notinst_deplibs='$notinst_deplibs'
  51417. +else
  51418. + # When we are sourced in execute mode, \$file and \$echo are already set.
  51419. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  51420. + echo=\"$qecho\"
  51421. + file=\"\$0\"
  51422. + # Make sure echo works.
  51423. + if test \"X\$1\" = X--no-reexec; then
  51424. + # Discard the --no-reexec flag, and continue.
  51425. + shift
  51426. + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  51427. + # Yippee, \$echo works!
  51428. + :
  51429. + else
  51430. + # Restart under the correct shell, and then maybe \$echo will work.
  51431. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  51432. + fi
  51433. + fi\
  51434. +"
  51435. + $echo >> $output "\
  51436. - func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  51437. + # Find the directory that this script lives in.
  51438. + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  51439. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  51440. - # template prelinking step
  51441. - if test -n "$prelink_cmds"; then
  51442. - func_execute_cmds "$prelink_cmds" 'exit $?'
  51443. - fi
  51444. + # Follow symbolic links until we get to the real thisdir.
  51445. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  51446. + while test -n \"\$file\"; do
  51447. + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  51448. - wrappers_required=yes
  51449. - case $host in
  51450. - *cygwin* | *mingw* )
  51451. - if test "$build_libtool_libs" != yes; then
  51452. - wrappers_required=no
  51453. - fi
  51454. - ;;
  51455. - *)
  51456. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  51457. - wrappers_required=no
  51458. - fi
  51459. - ;;
  51460. + # If there was a directory component, then change thisdir.
  51461. + if test \"x\$destdir\" != \"x\$file\"; then
  51462. + case \"\$destdir\" in
  51463. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  51464. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  51465. esac
  51466. - if test "$wrappers_required" = no; then
  51467. - # Replace the output file specification.
  51468. - compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  51469. - link_command="$compile_command$compile_rpath"
  51470. + fi
  51471. - # We have no uninstalled library dependencies, so finalize right now.
  51472. - exit_status=0
  51473. - func_show_eval "$link_command" 'exit_status=$?'
  51474. + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  51475. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  51476. + done
  51477. - # Delete the generated files.
  51478. - if test -f "$output_objdir/${outputname}S.${objext}"; then
  51479. - func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  51480. - fi
  51481. + # Try to get the absolute directory name.
  51482. + absdir=\`cd \"\$thisdir\" && pwd\`
  51483. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  51484. +"
  51485. - exit $exit_status
  51486. - fi
  51487. + if test "$fast_install" = yes; then
  51488. + $echo >> $output "\
  51489. + program=lt-'$outputname'$exeext
  51490. + progdir=\"\$thisdir/$objdir\"
  51491. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  51492. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  51493. - fi
  51494. - if test -n "$finalize_shlibpath"; then
  51495. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  51496. - fi
  51497. + if test ! -f \"\$progdir/\$program\" || \\
  51498. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  51499. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  51500. - compile_var=
  51501. - finalize_var=
  51502. - if test -n "$runpath_var"; then
  51503. - if test -n "$perm_rpath"; then
  51504. - # We should set the runpath_var.
  51505. - rpath=
  51506. - for dir in $perm_rpath; do
  51507. - rpath="$rpath$dir:"
  51508. - done
  51509. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  51510. - fi
  51511. - if test -n "$finalize_perm_rpath"; then
  51512. - # We should set the runpath_var.
  51513. - rpath=
  51514. - for dir in $finalize_perm_rpath; do
  51515. - rpath="$rpath$dir:"
  51516. - done
  51517. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  51518. - fi
  51519. - fi
  51520. + file=\"\$\$-\$program\"
  51521. - if test "$no_install" = yes; then
  51522. - # We don't need to create a wrapper script.
  51523. - link_command="$compile_var$compile_command$compile_rpath"
  51524. - # Replace the output file specification.
  51525. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  51526. - # Delete the old output file.
  51527. - $opt_dry_run || $RM $output
  51528. - # Link the executable and exit
  51529. - func_show_eval "$link_command" 'exit $?'
  51530. - exit $EXIT_SUCCESS
  51531. - fi
  51532. + if test ! -d \"\$progdir\"; then
  51533. + $mkdir \"\$progdir\"
  51534. + else
  51535. + $rm \"\$progdir/\$file\"
  51536. + fi"
  51537. - if test "$hardcode_action" = relink; then
  51538. - # Fast installation is not supported
  51539. - link_command="$compile_var$compile_command$compile_rpath"
  51540. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  51541. + $echo >> $output "\
  51542. - func_warning "this platform does not like uninstalled shared libraries"
  51543. - func_warning "\`$output' will be relinked during installation"
  51544. + # relink executable if necessary
  51545. + if test -n \"\$relink_command\"; then
  51546. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  51547. else
  51548. - if test "$fast_install" != no; then
  51549. - link_command="$finalize_var$compile_command$finalize_rpath"
  51550. - if test "$fast_install" = yes; then
  51551. - relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  51552. - else
  51553. - # fast_install is set to needless
  51554. - relink_command=
  51555. - fi
  51556. + $echo \"\$relink_command_output\" >&2
  51557. + $rm \"\$progdir/\$file\"
  51558. + exit $EXIT_FAILURE
  51559. + fi
  51560. + fi
  51561. +
  51562. + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  51563. + { $rm \"\$progdir/\$program\";
  51564. + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  51565. + $rm \"\$progdir/\$file\"
  51566. + fi"
  51567. else
  51568. - link_command="$compile_var$compile_command$compile_rpath"
  51569. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  51570. + $echo >> $output "\
  51571. + program='$outputname'
  51572. + progdir=\"\$thisdir/$objdir\"
  51573. +"
  51574. fi
  51575. - fi
  51576. - # Replace the output file specification.
  51577. - link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  51578. + $echo >> $output "\
  51579. - # Delete the old output files.
  51580. - $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  51581. + if test -f \"\$progdir/\$program\"; then"
  51582. - func_show_eval "$link_command" 'exit $?'
  51583. + # Export our shlibpath_var if we have one.
  51584. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  51585. + $echo >> $output "\
  51586. + # Add our own library path to $shlibpath_var
  51587. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  51588. - # Now create the wrapper script.
  51589. - func_echo "creating $output"
  51590. + # Some systems cannot cope with colon-terminated $shlibpath_var
  51591. + # The second colon is a workaround for a bug in BeOS R4 sed
  51592. + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  51593. - # Quote the relink command for shipping.
  51594. - if test -n "$relink_command"; then
  51595. - # Preserve any variables that may affect compiler behavior
  51596. - for var in $variables_saved_for_relink; do
  51597. - if eval test -z \"\${$var+set}\"; then
  51598. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  51599. - elif eval var_value=\$$var; test -z "$var_value"; then
  51600. - relink_command="$var=; export $var; $relink_command"
  51601. - else
  51602. - func_quote_for_eval "$var_value"
  51603. - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  51604. - fi
  51605. - done
  51606. - relink_command="(cd `pwd`; $relink_command)"
  51607. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  51608. - fi
  51609. + export $shlibpath_var
  51610. +"
  51611. + fi
  51612. - # Quote $ECHO for shipping.
  51613. - if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  51614. - case $progpath in
  51615. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  51616. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  51617. - esac
  51618. - qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  51619. - else
  51620. - qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  51621. - fi
  51622. + # fixup the dll searchpath if we need to.
  51623. + if test -n "$dllsearchpath"; then
  51624. + $echo >> $output "\
  51625. + # Add the dll search path components to the executable PATH
  51626. + PATH=$dllsearchpath:\$PATH
  51627. +"
  51628. + fi
  51629. - # Only actually do things if not in dry run mode.
  51630. - $opt_dry_run || {
  51631. - # win32 will think the script is a binary if it has
  51632. - # a .exe suffix, so we strip it off here.
  51633. - case $output in
  51634. - *.exe) func_stripname '' '.exe' "$output"
  51635. - output=$func_stripname_result ;;
  51636. - esac
  51637. - # test for cygwin because mv fails w/o .exe extensions
  51638. - case $host in
  51639. - *cygwin*)
  51640. - exeext=.exe
  51641. - func_stripname '' '.exe' "$outputname"
  51642. - outputname=$func_stripname_result ;;
  51643. - *) exeext= ;;
  51644. - esac
  51645. + $echo >> $output "\
  51646. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  51647. + # Run the actual program with our arguments.
  51648. +"
  51649. case $host in
  51650. - *cygwin* | *mingw* )
  51651. - output_name=`basename $output`
  51652. - output_path=`dirname $output`
  51653. - cwrappersource="$output_path/$objdir/lt-$output_name.c"
  51654. - cwrapper="$output_path/$output_name.exe"
  51655. - $RM $cwrappersource $cwrapper
  51656. - trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  51657. -
  51658. - cat > $cwrappersource <<EOF
  51659. + # Backslashes separate directories on plain windows
  51660. + *-*-mingw | *-*-os2*)
  51661. + $echo >> $output "\
  51662. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  51663. +"
  51664. + ;;
  51665. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  51666. - Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  51667. + *)
  51668. + $echo >> $output "\
  51669. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  51670. +"
  51671. + ;;
  51672. + esac
  51673. + $echo >> $output "\
  51674. + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  51675. + exit $EXIT_FAILURE
  51676. + fi
  51677. + else
  51678. + # The program doesn't exist.
  51679. + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  51680. + \$echo \"This script is just a wrapper for \$program.\" 1>&2
  51681. + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  51682. + exit $EXIT_FAILURE
  51683. + fi
  51684. +fi\
  51685. +"
  51686. + chmod +x $output
  51687. + fi
  51688. + exit $EXIT_SUCCESS
  51689. + ;;
  51690. + esac
  51691. - The $output program cannot be directly executed until all the libtool
  51692. - libraries that it depends on are installed.
  51693. + # See if we need to build an old-fashioned archive.
  51694. + for oldlib in $oldlibs; do
  51695. - This wrapper executable should never be moved out of the build directory.
  51696. - If it is, it will not operate correctly.
  51697. + if test "$build_libtool_libs" = convenience; then
  51698. + oldobjs="$libobjs_save"
  51699. + addlibs="$convenience"
  51700. + build_libtool_libs=no
  51701. + else
  51702. + if test "$build_libtool_libs" = module; then
  51703. + oldobjs="$libobjs_save"
  51704. + build_libtool_libs=no
  51705. + else
  51706. + oldobjs="$old_deplibs $non_pic_objects"
  51707. + fi
  51708. + addlibs="$old_convenience"
  51709. + fi
  51710. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  51711. - but could eventually absorb all of the scripts functionality and
  51712. - exec $objdir/$outputname directly.
  51713. -*/
  51714. -EOF
  51715. - cat >> $cwrappersource<<"EOF"
  51716. -#include <stdio.h>
  51717. -#include <stdlib.h>
  51718. -#include <unistd.h>
  51719. -#include <malloc.h>
  51720. -#include <stdarg.h>
  51721. -#include <assert.h>
  51722. -#include <string.h>
  51723. -#include <ctype.h>
  51724. -#include <sys/stat.h>
  51725. + if test -n "$addlibs"; then
  51726. + gentop="$output_objdir/${outputname}x"
  51727. + generated="$generated $gentop"
  51728. -#if defined(PATH_MAX)
  51729. -# define LT_PATHMAX PATH_MAX
  51730. -#elif defined(MAXPATHLEN)
  51731. -# define LT_PATHMAX MAXPATHLEN
  51732. -#else
  51733. -# define LT_PATHMAX 1024
  51734. -#endif
  51735. + func_extract_archives $gentop $addlibs
  51736. + oldobjs="$oldobjs $func_extract_archives_result"
  51737. + fi
  51738. -#ifndef DIR_SEPARATOR
  51739. -# define DIR_SEPARATOR '/'
  51740. -# define PATH_SEPARATOR ':'
  51741. -#endif
  51742. + # Do each command in the archive commands.
  51743. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  51744. + cmds=$old_archive_from_new_cmds
  51745. + else
  51746. + # POSIX demands no paths to be encoded in archives. We have
  51747. + # to avoid creating archives with duplicate basenames if we
  51748. + # might have to extract them afterwards, e.g., when creating a
  51749. + # static archive out of a convenience library, or when linking
  51750. + # the entirety of a libtool archive into another (currently
  51751. + # not supported by libtool).
  51752. + if (for obj in $oldobjs
  51753. + do
  51754. + $echo "X$obj" | $Xsed -e 's%^.*/%%'
  51755. + done | sort | sort -uc >/dev/null 2>&1); then
  51756. + :
  51757. + else
  51758. + $echo "copying selected object files to avoid basename conflicts..."
  51759. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  51760. - defined (__OS2__)
  51761. -# define HAVE_DOS_BASED_FILE_SYSTEM
  51762. -# ifndef DIR_SEPARATOR_2
  51763. -# define DIR_SEPARATOR_2 '\\'
  51764. -# endif
  51765. -# ifndef PATH_SEPARATOR_2
  51766. -# define PATH_SEPARATOR_2 ';'
  51767. -# endif
  51768. -#endif
  51769. + if test -z "$gentop"; then
  51770. + gentop="$output_objdir/${outputname}x"
  51771. + generated="$generated $gentop"
  51772. -#ifndef DIR_SEPARATOR_2
  51773. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  51774. -#else /* DIR_SEPARATOR_2 */
  51775. -# define IS_DIR_SEPARATOR(ch) \
  51776. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  51777. -#endif /* DIR_SEPARATOR_2 */
  51778. + $show "${rm}r $gentop"
  51779. + $run ${rm}r "$gentop"
  51780. + $show "$mkdir $gentop"
  51781. + $run $mkdir "$gentop"
  51782. + exit_status=$?
  51783. + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
  51784. + exit $exit_status
  51785. + fi
  51786. + fi
  51787. -#ifndef PATH_SEPARATOR_2
  51788. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  51789. -#else /* PATH_SEPARATOR_2 */
  51790. -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  51791. -#endif /* PATH_SEPARATOR_2 */
  51792. + save_oldobjs=$oldobjs
  51793. + oldobjs=
  51794. + counter=1
  51795. + for obj in $save_oldobjs
  51796. + do
  51797. + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  51798. + case " $oldobjs " in
  51799. + " ") oldobjs=$obj ;;
  51800. + *[\ /]"$objbase "*)
  51801. + while :; do
  51802. + # Make sure we don't pick an alternate name that also
  51803. + # overlaps.
  51804. + newobj=lt$counter-$objbase
  51805. + counter=`expr $counter + 1`
  51806. + case " $oldobjs " in
  51807. + *[\ /]"$newobj "*) ;;
  51808. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  51809. + esac
  51810. + done
  51811. + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  51812. + $run ln "$obj" "$gentop/$newobj" ||
  51813. + $run cp "$obj" "$gentop/$newobj"
  51814. + oldobjs="$oldobjs $gentop/$newobj"
  51815. + ;;
  51816. + *) oldobjs="$oldobjs $obj" ;;
  51817. + esac
  51818. + done
  51819. + fi
  51820. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  51821. -#define XFREE(stale) do { \
  51822. - if (stale) { free ((void *) stale); stale = 0; } \
  51823. -} while (0)
  51824. + eval cmds=\"$old_archive_cmds\"
  51825. -/* -DDEBUG is fairly common in CFLAGS. */
  51826. -#undef DEBUG
  51827. -#if defined DEBUGWRAPPER
  51828. -# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
  51829. -#else
  51830. -# define DEBUG(format, ...)
  51831. -#endif
  51832. + if len=`expr "X$cmds" : ".*"` &&
  51833. + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  51834. + cmds=$old_archive_cmds
  51835. + else
  51836. + # the command line is too long to link in one step, link in parts
  51837. + $echo "using piecewise archive linking..."
  51838. + save_RANLIB=$RANLIB
  51839. + RANLIB=:
  51840. + objlist=
  51841. + concat_cmds=
  51842. + save_oldobjs=$oldobjs
  51843. -const char *program_name = NULL;
  51844. + # Is there a better way of finding the last object in the list?
  51845. + for obj in $save_oldobjs
  51846. + do
  51847. + last_oldobj=$obj
  51848. + done
  51849. + for obj in $save_oldobjs
  51850. + do
  51851. + oldobjs="$objlist $obj"
  51852. + objlist="$objlist $obj"
  51853. + eval test_cmds=\"$old_archive_cmds\"
  51854. + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  51855. + test "$len" -le "$max_cmd_len"; then
  51856. + :
  51857. + else
  51858. + # the above command should be used before it gets too long
  51859. + oldobjs=$objlist
  51860. + if test "$obj" = "$last_oldobj" ; then
  51861. + RANLIB=$save_RANLIB
  51862. + fi
  51863. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  51864. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  51865. + objlist=
  51866. + fi
  51867. + done
  51868. + RANLIB=$save_RANLIB
  51869. + oldobjs=$objlist
  51870. + if test "X$oldobjs" = "X" ; then
  51871. + eval cmds=\"\$concat_cmds\"
  51872. + else
  51873. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  51874. + fi
  51875. + fi
  51876. + fi
  51877. + save_ifs="$IFS"; IFS='~'
  51878. + for cmd in $cmds; do
  51879. + eval cmd=\"$cmd\"
  51880. + IFS="$save_ifs"
  51881. + $show "$cmd"
  51882. + $run eval "$cmd" || exit $?
  51883. + done
  51884. + IFS="$save_ifs"
  51885. + done
  51886. -void * xmalloc (size_t num);
  51887. -char * xstrdup (const char *string);
  51888. -const char * base_name (const char *name);
  51889. -char * find_executable(const char *wrapper);
  51890. -int check_executable(const char *path);
  51891. -char * strendzap(char *str, const char *pat);
  51892. -void lt_fatal (const char *message, ...);
  51893. + if test -n "$generated"; then
  51894. + $show "${rm}r$generated"
  51895. + $run ${rm}r$generated
  51896. + fi
  51897. -int
  51898. -main (int argc, char *argv[])
  51899. -{
  51900. - char **newargz;
  51901. - int i;
  51902. + # Now create the libtool archive.
  51903. + case $output in
  51904. + *.la)
  51905. + old_library=
  51906. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  51907. + $show "creating $output"
  51908. - program_name = (char *) xstrdup (base_name (argv[0]));
  51909. - DEBUG("(main) argv[0] : %s\n",argv[0]);
  51910. - DEBUG("(main) program_name : %s\n",program_name);
  51911. - newargz = XMALLOC(char *, argc+2);
  51912. -EOF
  51913. + # Preserve any variables that may affect compiler behavior
  51914. + for var in $variables_saved_for_relink; do
  51915. + if eval test -z \"\${$var+set}\"; then
  51916. + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  51917. + elif eval var_value=\$$var; test -z "$var_value"; then
  51918. + relink_command="$var=; export $var; $relink_command"
  51919. + else
  51920. + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  51921. + relink_command="$var=\"$var_value\"; export $var; $relink_command"
  51922. + fi
  51923. + done
  51924. + # Quote the link command for shipping.
  51925. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  51926. + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  51927. + if test "$hardcode_automatic" = yes ; then
  51928. + relink_command=
  51929. + fi
  51930. - cat >> $cwrappersource <<EOF
  51931. - newargz[0] = (char *) xstrdup("$SHELL");
  51932. -EOF
  51933. - cat >> $cwrappersource <<"EOF"
  51934. - newargz[1] = find_executable(argv[0]);
  51935. - if (newargz[1] == NULL)
  51936. - lt_fatal("Couldn't find %s", argv[0]);
  51937. - DEBUG("(main) found exe at : %s\n",newargz[1]);
  51938. - /* we know the script has the same name, without the .exe */
  51939. - /* so make sure newargz[1] doesn't end in .exe */
  51940. - strendzap(newargz[1],".exe");
  51941. - for (i = 1; i < argc; i++)
  51942. - newargz[i+1] = xstrdup(argv[i]);
  51943. - newargz[argc+1] = NULL;
  51944. + # Only create the output if not a dry run.
  51945. + if test -z "$run"; then
  51946. + for installed in no yes; do
  51947. + if test "$installed" = yes; then
  51948. + if test -z "$install_libdir"; then
  51949. + break
  51950. + fi
  51951. + output="$output_objdir/$outputname"i
  51952. + # Replace all uninstalled libtool libraries with the installed ones
  51953. + newdependency_libs=
  51954. + for deplib in $dependency_libs; do
  51955. + case $deplib in
  51956. + *.la)
  51957. + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  51958. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  51959. + if test -z "$libdir"; then
  51960. + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  51961. + exit $EXIT_FAILURE
  51962. + fi
  51963. + newdependency_libs="$newdependency_libs $libdir/$name"
  51964. + ;;
  51965. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  51966. + esac
  51967. + done
  51968. + dependency_libs="$newdependency_libs"
  51969. + newdlfiles=
  51970. + for lib in $dlfiles; do
  51971. + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  51972. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  51973. + if test -z "$libdir"; then
  51974. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  51975. + exit $EXIT_FAILURE
  51976. + fi
  51977. + newdlfiles="$newdlfiles $libdir/$name"
  51978. + done
  51979. + dlfiles="$newdlfiles"
  51980. + newdlprefiles=
  51981. + for lib in $dlprefiles; do
  51982. + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  51983. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  51984. + if test -z "$libdir"; then
  51985. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  51986. + exit $EXIT_FAILURE
  51987. + fi
  51988. + newdlprefiles="$newdlprefiles $libdir/$name"
  51989. + done
  51990. + dlprefiles="$newdlprefiles"
  51991. + else
  51992. + newdlfiles=
  51993. + for lib in $dlfiles; do
  51994. + case $lib in
  51995. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  51996. + *) abs=`pwd`"/$lib" ;;
  51997. + esac
  51998. + newdlfiles="$newdlfiles $abs"
  51999. + done
  52000. + dlfiles="$newdlfiles"
  52001. + newdlprefiles=
  52002. + for lib in $dlprefiles; do
  52003. + case $lib in
  52004. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  52005. + *) abs=`pwd`"/$lib" ;;
  52006. + esac
  52007. + newdlprefiles="$newdlprefiles $abs"
  52008. + done
  52009. + dlprefiles="$newdlprefiles"
  52010. + fi
  52011. + $rm $output
  52012. + # place dlname in correct position for cygwin
  52013. + tdlname=$dlname
  52014. + case $host,$output,$installed,$module,$dlname in
  52015. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  52016. + esac
  52017. + $echo > $output "\
  52018. +# $outputname - a libtool library file
  52019. +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  52020. +#
  52021. +# Please DO NOT delete this file!
  52022. +# It is necessary for linking the library.
  52023. - for (i=0; i<argc+1; i++)
  52024. - {
  52025. - DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
  52026. - ;
  52027. - }
  52028. +# The name that we can dlopen(3).
  52029. +dlname='$tdlname'
  52030. -EOF
  52031. +# Names of this library.
  52032. +library_names='$library_names'
  52033. - case $host_os in
  52034. - mingw*)
  52035. - cat >> $cwrappersource <<EOF
  52036. - execv("$SHELL",(char const **)newargz);
  52037. -EOF
  52038. - ;;
  52039. - *)
  52040. - cat >> $cwrappersource <<EOF
  52041. - execv("$SHELL",newargz);
  52042. -EOF
  52043. - ;;
  52044. - esac
  52045. +# The name of the static archive.
  52046. +old_library='$old_library'
  52047. - cat >> $cwrappersource <<"EOF"
  52048. - return 127;
  52049. -}
  52050. +# Libraries that this one depends upon.
  52051. +dependency_libs='$dependency_libs'
  52052. -void *
  52053. -xmalloc (size_t num)
  52054. -{
  52055. - void * p = (void *) malloc (num);
  52056. - if (!p)
  52057. - lt_fatal ("Memory exhausted");
  52058. +# Version information for $libname.
  52059. +current=$current
  52060. +age=$age
  52061. +revision=$revision
  52062. - return p;
  52063. -}
  52064. +# Is this an already installed library?
  52065. +installed=$installed
  52066. -char *
  52067. -xstrdup (const char *string)
  52068. -{
  52069. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  52070. -;
  52071. -}
  52072. +# Should we warn about portability when linking against -modules?
  52073. +shouldnotlink=$module
  52074. -const char *
  52075. -base_name (const char *name)
  52076. -{
  52077. - const char *base;
  52078. +# Files to dlopen/dlpreopen
  52079. +dlopen='$dlfiles'
  52080. +dlpreopen='$dlprefiles'
  52081. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52082. - /* Skip over the disk name in MSDOS pathnames. */
  52083. - if (isalpha ((unsigned char)name[0]) && name[1] == ':')
  52084. - name += 2;
  52085. -#endif
  52086. +# Directory that this library needs to be installed in:
  52087. +libdir='$install_libdir'"
  52088. + if test "$installed" = no && test "$need_relink" = yes; then
  52089. + $echo >> $output "\
  52090. +relink_command=\"$relink_command\""
  52091. + fi
  52092. + done
  52093. + fi
  52094. - for (base = name; *name; name++)
  52095. - if (IS_DIR_SEPARATOR (*name))
  52096. - base = name + 1;
  52097. - return base;
  52098. -}
  52099. + # Do a symbolic link so that the libtool archive can be found in
  52100. + # LD_LIBRARY_PATH before the program is installed.
  52101. + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  52102. + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  52103. + ;;
  52104. + esac
  52105. + exit $EXIT_SUCCESS
  52106. + ;;
  52107. -int
  52108. -check_executable(const char * path)
  52109. -{
  52110. - struct stat st;
  52111. + # libtool install mode
  52112. + install)
  52113. + modename="$modename: install"
  52114. - DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
  52115. - if ((!path) || (!*path))
  52116. - return 0;
  52117. + # There may be an optional sh(1) argument at the beginning of
  52118. + # install_prog (especially on Windows NT).
  52119. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  52120. + # Allow the use of GNU shtool's install command.
  52121. + $echo "X$nonopt" | grep shtool > /dev/null; then
  52122. + # Aesthetically quote it.
  52123. + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  52124. + case $arg in
  52125. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  52126. + arg="\"$arg\""
  52127. + ;;
  52128. + esac
  52129. + install_prog="$arg "
  52130. + arg="$1"
  52131. + shift
  52132. + else
  52133. + install_prog=
  52134. + arg=$nonopt
  52135. + fi
  52136. - if ((stat (path, &st) >= 0) &&
  52137. - (
  52138. - /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
  52139. -#if defined (S_IXOTH)
  52140. - ((st.st_mode & S_IXOTH) == S_IXOTH) ||
  52141. -#endif
  52142. -#if defined (S_IXGRP)
  52143. - ((st.st_mode & S_IXGRP) == S_IXGRP) ||
  52144. -#endif
  52145. - ((st.st_mode & S_IXUSR) == S_IXUSR))
  52146. - )
  52147. - return 1;
  52148. - else
  52149. - return 0;
  52150. -}
  52151. + # The real first argument should be the name of the installation program.
  52152. + # Aesthetically quote it.
  52153. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  52154. + case $arg in
  52155. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  52156. + arg="\"$arg\""
  52157. + ;;
  52158. + esac
  52159. + install_prog="$install_prog$arg"
  52160. -/* Searches for the full path of the wrapper. Returns
  52161. - newly allocated full path name if found, NULL otherwise */
  52162. -char *
  52163. -find_executable (const char* wrapper)
  52164. -{
  52165. - int has_slash = 0;
  52166. - const char* p;
  52167. - const char* p_next;
  52168. - /* static buffer for getcwd */
  52169. - char tmp[LT_PATHMAX + 1];
  52170. - int tmp_len;
  52171. - char* concat_name;
  52172. + # We need to accept at least all the BSD install flags.
  52173. + dest=
  52174. + files=
  52175. + opts=
  52176. + prev=
  52177. + install_type=
  52178. + isdir=no
  52179. + stripme=
  52180. + for arg
  52181. + do
  52182. + if test -n "$dest"; then
  52183. + files="$files $dest"
  52184. + dest=$arg
  52185. + continue
  52186. + fi
  52187. - DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
  52188. + case $arg in
  52189. + -d) isdir=yes ;;
  52190. + -f)
  52191. + case " $install_prog " in
  52192. + *[\\\ /]cp\ *) ;;
  52193. + *) prev=$arg ;;
  52194. + esac
  52195. + ;;
  52196. + -g | -m | -o) prev=$arg ;;
  52197. + -s)
  52198. + stripme=" -s"
  52199. + continue
  52200. + ;;
  52201. + -*)
  52202. + ;;
  52203. + *)
  52204. + # If the previous option needed an argument, then skip it.
  52205. + if test -n "$prev"; then
  52206. + prev=
  52207. + else
  52208. + dest=$arg
  52209. + continue
  52210. + fi
  52211. + ;;
  52212. + esac
  52213. - if ((wrapper == NULL) || (*wrapper == '\0'))
  52214. - return NULL;
  52215. + # Aesthetically quote the argument.
  52216. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  52217. + case $arg in
  52218. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  52219. + arg="\"$arg\""
  52220. + ;;
  52221. + esac
  52222. + install_prog="$install_prog $arg"
  52223. + done
  52224. - /* Absolute path? */
  52225. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52226. - if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
  52227. - {
  52228. - concat_name = xstrdup (wrapper);
  52229. - if (check_executable(concat_name))
  52230. - return concat_name;
  52231. - XFREE(concat_name);
  52232. - }
  52233. - else
  52234. - {
  52235. -#endif
  52236. - if (IS_DIR_SEPARATOR (wrapper[0]))
  52237. - {
  52238. - concat_name = xstrdup (wrapper);
  52239. - if (check_executable(concat_name))
  52240. - return concat_name;
  52241. - XFREE(concat_name);
  52242. - }
  52243. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  52244. - }
  52245. -#endif
  52246. + if test -z "$install_prog"; then
  52247. + $echo "$modename: you must specify an install program" 1>&2
  52248. + $echo "$help" 1>&2
  52249. + exit $EXIT_FAILURE
  52250. + fi
  52251. - for (p = wrapper; *p; p++)
  52252. - if (*p == '/')
  52253. - {
  52254. - has_slash = 1;
  52255. - break;
  52256. - }
  52257. - if (!has_slash)
  52258. - {
  52259. - /* no slashes; search PATH */
  52260. - const char* path = getenv ("PATH");
  52261. - if (path != NULL)
  52262. - {
  52263. - for (p = path; *p; p = p_next)
  52264. - {
  52265. - const char* q;
  52266. - size_t p_len;
  52267. - for (q = p; *q; q++)
  52268. - if (IS_PATH_SEPARATOR(*q))
  52269. - break;
  52270. - p_len = q - p;
  52271. - p_next = (*q == '\0' ? q : q + 1);
  52272. - if (p_len == 0)
  52273. - {
  52274. - /* empty path: current directory */
  52275. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  52276. - lt_fatal ("getcwd failed");
  52277. - tmp_len = strlen(tmp);
  52278. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  52279. - memcpy (concat_name, tmp, tmp_len);
  52280. - concat_name[tmp_len] = '/';
  52281. - strcpy (concat_name + tmp_len + 1, wrapper);
  52282. - }
  52283. - else
  52284. - {
  52285. - concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
  52286. - memcpy (concat_name, p, p_len);
  52287. - concat_name[p_len] = '/';
  52288. - strcpy (concat_name + p_len + 1, wrapper);
  52289. - }
  52290. - if (check_executable(concat_name))
  52291. - return concat_name;
  52292. - XFREE(concat_name);
  52293. - }
  52294. - }
  52295. - /* not found in PATH; assume curdir */
  52296. - }
  52297. - /* Relative path | not found in path: prepend cwd */
  52298. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  52299. - lt_fatal ("getcwd failed");
  52300. - tmp_len = strlen(tmp);
  52301. - concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
  52302. - memcpy (concat_name, tmp, tmp_len);
  52303. - concat_name[tmp_len] = '/';
  52304. - strcpy (concat_name + tmp_len + 1, wrapper);
  52305. + if test -n "$prev"; then
  52306. + $echo "$modename: the \`$prev' option requires an argument" 1>&2
  52307. + $echo "$help" 1>&2
  52308. + exit $EXIT_FAILURE
  52309. + fi
  52310. - if (check_executable(concat_name))
  52311. - return concat_name;
  52312. - XFREE(concat_name);
  52313. - return NULL;
  52314. -}
  52315. + if test -z "$files"; then
  52316. + if test -z "$dest"; then
  52317. + $echo "$modename: no file or destination specified" 1>&2
  52318. + else
  52319. + $echo "$modename: you must specify a destination" 1>&2
  52320. + fi
  52321. + $echo "$help" 1>&2
  52322. + exit $EXIT_FAILURE
  52323. + fi
  52324. -char *
  52325. -strendzap(char *str, const char *pat)
  52326. -{
  52327. - size_t len, patlen;
  52328. + # Strip any trailing slash from the destination.
  52329. + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  52330. - assert(str != NULL);
  52331. - assert(pat != NULL);
  52332. + # Check to see that the destination is a directory.
  52333. + test -d "$dest" && isdir=yes
  52334. + if test "$isdir" = yes; then
  52335. + destdir="$dest"
  52336. + destname=
  52337. + else
  52338. + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  52339. + test "X$destdir" = "X$dest" && destdir=.
  52340. + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  52341. - len = strlen(str);
  52342. - patlen = strlen(pat);
  52343. + # Not a directory, so check to see that there is only one file specified.
  52344. + set dummy $files
  52345. + if test "$#" -gt 2; then
  52346. + $echo "$modename: \`$dest' is not a directory" 1>&2
  52347. + $echo "$help" 1>&2
  52348. + exit $EXIT_FAILURE
  52349. + fi
  52350. + fi
  52351. + case $destdir in
  52352. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  52353. + *)
  52354. + for file in $files; do
  52355. + case $file in
  52356. + *.lo) ;;
  52357. + *)
  52358. + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  52359. + $echo "$help" 1>&2
  52360. + exit $EXIT_FAILURE
  52361. + ;;
  52362. + esac
  52363. + done
  52364. + ;;
  52365. + esac
  52366. - if (patlen <= len)
  52367. - {
  52368. - str += len - patlen;
  52369. - if (strcmp(str, pat) == 0)
  52370. - *str = '\0';
  52371. - }
  52372. - return str;
  52373. -}
  52374. + # This variable tells wrapper scripts just to set variables rather
  52375. + # than running their programs.
  52376. + libtool_install_magic="$magic"
  52377. -static void
  52378. -lt_error_core (int exit_status, const char * mode,
  52379. - const char * message, va_list ap)
  52380. -{
  52381. - fprintf (stderr, "%s: %s: ", program_name, mode);
  52382. - vfprintf (stderr, message, ap);
  52383. - fprintf (stderr, ".\n");
  52384. + staticlibs=
  52385. + future_libdirs=
  52386. + current_libdirs=
  52387. + for file in $files; do
  52388. - if (exit_status >= 0)
  52389. - exit (exit_status);
  52390. -}
  52391. + # Do each installation.
  52392. + case $file in
  52393. + *.$libext)
  52394. + # Do the static libraries later.
  52395. + staticlibs="$staticlibs $file"
  52396. + ;;
  52397. -void
  52398. -lt_fatal (const char *message, ...)
  52399. -{
  52400. - va_list ap;
  52401. - va_start (ap, message);
  52402. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  52403. - va_end (ap);
  52404. -}
  52405. -EOF
  52406. - # we should really use a build-platform specific compiler
  52407. - # here, but OTOH, the wrappers (shell script and this C one)
  52408. - # are only useful if you want to execute the "real" binary.
  52409. - # Since the "real" binary is built for $host, then this
  52410. - # wrapper might as well be built for $host, too.
  52411. - $opt_dry_run || $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
  52412. - ;;
  52413. + *.la)
  52414. + # Check to see that this really is a libtool archive.
  52415. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  52416. + else
  52417. + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  52418. + $echo "$help" 1>&2
  52419. + exit $EXIT_FAILURE
  52420. + fi
  52421. +
  52422. + library_names=
  52423. + old_library=
  52424. + relink_command=
  52425. + # If there is no directory component, then add one.
  52426. + case $file in
  52427. + */* | *\\*) . $file ;;
  52428. + *) . ./$file ;;
  52429. esac
  52430. - $RM $output
  52431. - trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  52432. - $ECHO > $output "\
  52433. -#! $SHELL
  52434. + # Add the libdir to current_libdirs if it is the destination.
  52435. + if test "X$destdir" = "X$libdir"; then
  52436. + case "$current_libdirs " in
  52437. + *" $libdir "*) ;;
  52438. + *) current_libdirs="$current_libdirs $libdir" ;;
  52439. + esac
  52440. + else
  52441. + # Note the libdir as a future libdir.
  52442. + case "$future_libdirs " in
  52443. + *" $libdir "*) ;;
  52444. + *) future_libdirs="$future_libdirs $libdir" ;;
  52445. + esac
  52446. + fi
  52447. +
  52448. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  52449. + test "X$dir" = "X$file/" && dir=
  52450. + dir="$dir$objdir"
  52451. +
  52452. + if test -n "$relink_command"; then
  52453. + # Determine the prefix the user has applied to our future dir.
  52454. + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  52455. -# $output - temporary wrapper script for $objdir/$outputname
  52456. -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  52457. -#
  52458. -# The $output program cannot be directly executed until all the libtool
  52459. -# libraries that it depends on are installed.
  52460. -#
  52461. -# This wrapper script should never be moved out of the build directory.
  52462. -# If it is, it will not operate correctly.
  52463. + # Don't allow the user to place us outside of our expected
  52464. + # location b/c this prevents finding dependent libraries that
  52465. + # are installed to the same prefix.
  52466. + # At present, this check doesn't affect windows .dll's that
  52467. + # are installed into $libdir/../bin (currently, that works fine)
  52468. + # but it's something to keep an eye on.
  52469. + if test "$inst_prefix_dir" = "$destdir"; then
  52470. + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  52471. + exit $EXIT_FAILURE
  52472. + fi
  52473. -# Sed substitution that helps us do robust quoting. It backslashifies
  52474. -# metacharacters that are still active within double-quoted strings.
  52475. -Xsed='${SED} -e 1s/^X//'
  52476. -sed_quote_subst='$sed_quote_subst'
  52477. + if test -n "$inst_prefix_dir"; then
  52478. + # Stick the inst_prefix_dir data into the link command.
  52479. + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  52480. + else
  52481. + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  52482. + fi
  52483. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  52484. -# if CDPATH is set.
  52485. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  52486. + $echo "$modename: warning: relinking \`$file'" 1>&2
  52487. + $show "$relink_command"
  52488. + if $run eval "$relink_command"; then :
  52489. + else
  52490. + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  52491. + exit $EXIT_FAILURE
  52492. + fi
  52493. + fi
  52494. -relink_command=\"$relink_command\"
  52495. + # See the names of the shared library.
  52496. + set dummy $library_names
  52497. + if test -n "$2"; then
  52498. + realname="$2"
  52499. + shift
  52500. + shift
  52501. -# This environment variable determines our operation mode.
  52502. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  52503. - # install mode needs the following variables:
  52504. - generated_by_libtool_version='$macro_version'
  52505. - notinst_deplibs='$notinst_deplibs'
  52506. -else
  52507. - # When we are sourced in execute mode, \$file and \$ECHO are already set.
  52508. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52509. - ECHO=\"$qecho\"
  52510. - file=\"\$0\"
  52511. - # Make sure echo works.
  52512. - if test \"X\$1\" = X--no-reexec; then
  52513. - # Discard the --no-reexec flag, and continue.
  52514. - shift
  52515. - elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  52516. - # Yippee, \$ECHO works!
  52517. - :
  52518. - else
  52519. - # Restart under the correct shell, and then maybe \$ECHO will work.
  52520. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  52521. - fi
  52522. - fi\
  52523. -"
  52524. - $ECHO >> $output "\
  52525. + srcname="$realname"
  52526. + test -n "$relink_command" && srcname="$realname"T
  52527. - # Find the directory that this script lives in.
  52528. - thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  52529. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  52530. + # Install the shared library and build the symlinks.
  52531. + $show "$install_prog $dir/$srcname $destdir/$realname"
  52532. + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  52533. + if test -n "$stripme" && test -n "$striplib"; then
  52534. + $show "$striplib $destdir/$realname"
  52535. + $run eval "$striplib $destdir/$realname" || exit $?
  52536. + fi
  52537. - # Follow symbolic links until we get to the real thisdir.
  52538. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  52539. - while test -n \"\$file\"; do
  52540. - destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  52541. + if test "$#" -gt 0; then
  52542. + # Delete the old symlinks, and create new ones.
  52543. + # Try `ln -sf' first, because the `ln' binary might depend on
  52544. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  52545. + # so we also need to try rm && ln -s.
  52546. + for linkname
  52547. + do
  52548. + if test "$linkname" != "$realname"; then
  52549. + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  52550. + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
  52551. + fi
  52552. + done
  52553. + fi
  52554. - # If there was a directory component, then change thisdir.
  52555. - if test \"x\$destdir\" != \"x\$file\"; then
  52556. - case \"\$destdir\" in
  52557. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  52558. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  52559. - esac
  52560. - fi
  52561. + # Do each command in the postinstall commands.
  52562. + lib="$destdir/$realname"
  52563. + cmds=$postinstall_cmds
  52564. + save_ifs="$IFS"; IFS='~'
  52565. + for cmd in $cmds; do
  52566. + IFS="$save_ifs"
  52567. + eval cmd=\"$cmd\"
  52568. + $show "$cmd"
  52569. + $run eval "$cmd" || {
  52570. + lt_exit=$?
  52571. +
  52572. + # Restore the uninstalled library and exit
  52573. + if test "$mode" = relink; then
  52574. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
  52575. + fi
  52576. - file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  52577. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  52578. - done
  52579. + exit $lt_exit
  52580. + }
  52581. + done
  52582. + IFS="$save_ifs"
  52583. + fi
  52584. - # Try to get the absolute directory name.
  52585. - absdir=\`cd \"\$thisdir\" && pwd\`
  52586. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  52587. -"
  52588. + # Install the pseudo-library for information purposes.
  52589. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52590. + instname="$dir/$name"i
  52591. + $show "$install_prog $instname $destdir/$name"
  52592. + $run eval "$install_prog $instname $destdir/$name" || exit $?
  52593. - if test "$fast_install" = yes; then
  52594. - $ECHO >> $output "\
  52595. - program=lt-'$outputname'$exeext
  52596. - progdir=\"\$thisdir/$objdir\"
  52597. + # Maybe install the static library, too.
  52598. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  52599. + ;;
  52600. - if test ! -f \"\$progdir/\$program\" ||
  52601. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  52602. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  52603. + *.lo)
  52604. + # Install (i.e. copy) a libtool object.
  52605. - file=\"\$\$-\$program\"
  52606. + # Figure out destination file name, if it wasn't already specified.
  52607. + if test -n "$destname"; then
  52608. + destfile="$destdir/$destname"
  52609. + else
  52610. + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52611. + destfile="$destdir/$destfile"
  52612. + fi
  52613. - if test ! -d \"\$progdir\"; then
  52614. - $MKDIR \"\$progdir\"
  52615. - else
  52616. - $RM \"\$progdir/\$file\"
  52617. - fi"
  52618. + # Deduce the name of the destination old-style object file.
  52619. + case $destfile in
  52620. + *.lo)
  52621. + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  52622. + ;;
  52623. + *.$objext)
  52624. + staticdest="$destfile"
  52625. + destfile=
  52626. + ;;
  52627. + *)
  52628. + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  52629. + $echo "$help" 1>&2
  52630. + exit $EXIT_FAILURE
  52631. + ;;
  52632. + esac
  52633. +
  52634. + # Install the libtool object if requested.
  52635. + if test -n "$destfile"; then
  52636. + $show "$install_prog $file $destfile"
  52637. + $run eval "$install_prog $file $destfile" || exit $?
  52638. + fi
  52639. - $ECHO >> $output "\
  52640. + # Install the old object if enabled.
  52641. + if test "$build_old_libs" = yes; then
  52642. + # Deduce the name of the old-style object file.
  52643. + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  52644. - # relink executable if necessary
  52645. - if test -n \"\$relink_command\"; then
  52646. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  52647. - else
  52648. - $ECHO \"\$relink_command_output\" >&2
  52649. - $RM \"\$progdir/\$file\"
  52650. - exit 1
  52651. - fi
  52652. - fi
  52653. + $show "$install_prog $staticobj $staticdest"
  52654. + $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  52655. + fi
  52656. + exit $EXIT_SUCCESS
  52657. + ;;
  52658. - $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  52659. - { $RM \"\$progdir/\$program\";
  52660. - $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  52661. - $RM \"\$progdir/\$file\"
  52662. - fi"
  52663. + *)
  52664. + # Figure out destination file name, if it wasn't already specified.
  52665. + if test -n "$destname"; then
  52666. + destfile="$destdir/$destname"
  52667. else
  52668. - $ECHO >> $output "\
  52669. - program='$outputname'
  52670. - progdir=\"\$thisdir/$objdir\"
  52671. -"
  52672. + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52673. + destfile="$destdir/$destfile"
  52674. fi
  52675. - $ECHO >> $output "\
  52676. + # If the file is missing, and there is a .exe on the end, strip it
  52677. + # because it is most likely a libtool script we actually want to
  52678. + # install
  52679. + stripped_ext=""
  52680. + case $file in
  52681. + *.exe)
  52682. + if test ! -f "$file"; then
  52683. + file=`$echo $file|${SED} 's,.exe$,,'`
  52684. + stripped_ext=".exe"
  52685. + fi
  52686. + ;;
  52687. + esac
  52688. - if test -f \"\$progdir/\$program\"; then"
  52689. + # Do a test to see if this is really a libtool program.
  52690. + case $host in
  52691. + *cygwin*|*mingw*)
  52692. + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  52693. + ;;
  52694. + *)
  52695. + wrapper=$file
  52696. + ;;
  52697. + esac
  52698. + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  52699. + notinst_deplibs=
  52700. + relink_command=
  52701. - # Export our shlibpath_var if we have one.
  52702. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  52703. - $ECHO >> $output "\
  52704. - # Add our own library path to $shlibpath_var
  52705. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  52706. + # Note that it is not necessary on cygwin/mingw to append a dot to
  52707. + # foo even if both foo and FILE.exe exist: automatic-append-.exe
  52708. + # behavior happens only for exec(3), not for open(2)! Also, sourcing
  52709. + # `FILE.' does not work on cygwin managed mounts.
  52710. + #
  52711. + # If there is no directory component, then add one.
  52712. + case $wrapper in
  52713. + */* | *\\*) . ${wrapper} ;;
  52714. + *) . ./${wrapper} ;;
  52715. + esac
  52716. - # Some systems cannot cope with colon-terminated $shlibpath_var
  52717. - # The second colon is a workaround for a bug in BeOS R4 sed
  52718. - $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  52719. + # Check the variables that should have been set.
  52720. + if test -z "$notinst_deplibs"; then
  52721. + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  52722. + exit $EXIT_FAILURE
  52723. + fi
  52724. - export $shlibpath_var
  52725. -"
  52726. - fi
  52727. + finalize=yes
  52728. + for lib in $notinst_deplibs; do
  52729. + # Check to see that each library is installed.
  52730. + libdir=
  52731. + if test -f "$lib"; then
  52732. + # If there is no directory component, then add one.
  52733. + case $lib in
  52734. + */* | *\\*) . $lib ;;
  52735. + *) . ./$lib ;;
  52736. + esac
  52737. + fi
  52738. + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  52739. + if test -n "$libdir" && test ! -f "$libfile"; then
  52740. + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  52741. + finalize=no
  52742. + fi
  52743. + done
  52744. - # fixup the dll searchpath if we need to.
  52745. - if test -n "$dllsearchpath"; then
  52746. - $ECHO >> $output "\
  52747. - # Add the dll search path components to the executable PATH
  52748. - PATH=$dllsearchpath:\$PATH
  52749. -"
  52750. - fi
  52751. + relink_command=
  52752. + # Note that it is not necessary on cygwin/mingw to append a dot to
  52753. + # foo even if both foo and FILE.exe exist: automatic-append-.exe
  52754. + # behavior happens only for exec(3), not for open(2)! Also, sourcing
  52755. + # `FILE.' does not work on cygwin managed mounts.
  52756. + #
  52757. + # If there is no directory component, then add one.
  52758. + case $wrapper in
  52759. + */* | *\\*) . ${wrapper} ;;
  52760. + *) . ./${wrapper} ;;
  52761. + esac
  52762. - $ECHO >> $output "\
  52763. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  52764. - # Run the actual program with our arguments.
  52765. -"
  52766. - case $host in
  52767. - # Backslashes separate directories on plain windows
  52768. - *-*-mingw | *-*-os2*)
  52769. - $ECHO >> $output "\
  52770. - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  52771. -"
  52772. - ;;
  52773. + outputname=
  52774. + if test "$fast_install" = no && test -n "$relink_command"; then
  52775. + if test "$finalize" = yes && test -z "$run"; then
  52776. + tmpdir=`func_mktempdir`
  52777. + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  52778. + outputname="$tmpdir/$file"
  52779. + # Replace the output file specification.
  52780. + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  52781. - *)
  52782. - $ECHO >> $output "\
  52783. - exec \"\$progdir/\$program\" \${1+\"\$@\"}
  52784. -"
  52785. + $show "$relink_command"
  52786. + if $run eval "$relink_command"; then :
  52787. + else
  52788. + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  52789. + ${rm}r "$tmpdir"
  52790. + continue
  52791. + fi
  52792. + file="$outputname"
  52793. + else
  52794. + $echo "$modename: warning: cannot relink \`$file'" 1>&2
  52795. + fi
  52796. + else
  52797. + # Install the binary that we compiled earlier.
  52798. + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  52799. + fi
  52800. + fi
  52801. +
  52802. + # remove .exe since cygwin /usr/bin/install will append another
  52803. + # one anyway
  52804. + case $install_prog,$host in
  52805. + */usr/bin/install*,*cygwin*)
  52806. + case $file:$destfile in
  52807. + *.exe:*.exe)
  52808. + # this is ok
  52809. + ;;
  52810. + *.exe:*)
  52811. + destfile=$destfile.exe
  52812. + ;;
  52813. + *:*.exe)
  52814. + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  52815. + ;;
  52816. + esac
  52817. ;;
  52818. esac
  52819. - $ECHO >> $output "\
  52820. - \$ECHO \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  52821. - exit 1
  52822. - fi
  52823. - else
  52824. - # The program doesn't exist.
  52825. - \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  52826. - \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  52827. - $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  52828. - exit 1
  52829. - fi
  52830. -fi\
  52831. -"
  52832. - chmod +x $output
  52833. - }
  52834. - exit $EXIT_SUCCESS
  52835. - ;;
  52836. - esac
  52837. + $show "$install_prog$stripme $file $destfile"
  52838. + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  52839. + test -n "$outputname" && ${rm}r "$tmpdir"
  52840. + ;;
  52841. + esac
  52842. + done
  52843. - # See if we need to build an old-fashioned archive.
  52844. - for oldlib in $oldlibs; do
  52845. + for file in $staticlibs; do
  52846. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  52847. - if test "$build_libtool_libs" = convenience; then
  52848. - oldobjs="$libobjs_save $symfileobj"
  52849. - addlibs="$convenience"
  52850. - build_libtool_libs=no
  52851. - else
  52852. - if test "$build_libtool_libs" = module; then
  52853. - oldobjs="$libobjs_save"
  52854. - build_libtool_libs=no
  52855. - else
  52856. - oldobjs="$old_deplibs $non_pic_objects"
  52857. - if test "$preload" = yes && test -f "$symfileobj"; then
  52858. - oldobjs="$oldobjs $symfileobj"
  52859. - fi
  52860. - fi
  52861. - addlibs="$old_convenience"
  52862. - fi
  52863. + # Set up the ranlib parameters.
  52864. + oldlib="$destdir/$name"
  52865. - if test -n "$addlibs"; then
  52866. - gentop="$output_objdir/${outputname}x"
  52867. - generated="$generated $gentop"
  52868. + $show "$install_prog $file $oldlib"
  52869. + $run eval "$install_prog \$file \$oldlib" || exit $?
  52870. - func_extract_archives $gentop $addlibs
  52871. - oldobjs="$oldobjs $func_extract_archives_result"
  52872. + if test -n "$stripme" && test -n "$old_striplib"; then
  52873. + $show "$old_striplib $oldlib"
  52874. + $run eval "$old_striplib $oldlib" || exit $?
  52875. fi
  52876. - # Do each command in the archive commands.
  52877. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  52878. - cmds=$old_archive_from_new_cmds
  52879. - else
  52880. + # Do each command in the postinstall commands.
  52881. + cmds=$old_postinstall_cmds
  52882. + save_ifs="$IFS"; IFS='~'
  52883. + for cmd in $cmds; do
  52884. + IFS="$save_ifs"
  52885. + eval cmd=\"$cmd\"
  52886. + $show "$cmd"
  52887. + $run eval "$cmd" || exit $?
  52888. + done
  52889. + IFS="$save_ifs"
  52890. + done
  52891. - # Add any objects from preloaded convenience libraries
  52892. - if test -n "$dlprefiles"; then
  52893. - gentop="$output_objdir/${outputname}x"
  52894. - generated="$generated $gentop"
  52895. + if test -n "$future_libdirs"; then
  52896. + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  52897. + fi
  52898. - func_extract_archives $gentop $dlprefiles
  52899. - oldobjs="$oldobjs $func_extract_archives_result"
  52900. - fi
  52901. + if test -n "$current_libdirs"; then
  52902. + # Maybe just do a dry run.
  52903. + test -n "$run" && current_libdirs=" -n$current_libdirs"
  52904. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  52905. + else
  52906. + exit $EXIT_SUCCESS
  52907. + fi
  52908. + ;;
  52909. - # POSIX demands no paths to be encoded in archives. We have
  52910. - # to avoid creating archives with duplicate basenames if we
  52911. - # might have to extract them afterwards, e.g., when creating a
  52912. - # static archive out of a convenience library, or when linking
  52913. - # the entirety of a libtool archive into another (currently
  52914. - # not supported by libtool).
  52915. - if (for obj in $oldobjs
  52916. - do
  52917. - func_basename "$obj"
  52918. - $ECHO "$func_basename_result"
  52919. - done | sort | sort -uc >/dev/null 2>&1); then
  52920. - :
  52921. - else
  52922. - $ECHO "copying selected object files to avoid basename conflicts..."
  52923. - gentop="$output_objdir/${outputname}x"
  52924. - generated="$generated $gentop"
  52925. - func_mkdir_p "$gentop"
  52926. - save_oldobjs=$oldobjs
  52927. - oldobjs=
  52928. - counter=1
  52929. - for obj in $save_oldobjs
  52930. - do
  52931. - func_basename "$obj"
  52932. - objbase="$func_basename_result"
  52933. - case " $oldobjs " in
  52934. - " ") oldobjs=$obj ;;
  52935. - *[\ /]"$objbase "*)
  52936. - while :; do
  52937. - # Make sure we don't pick an alternate name that also
  52938. - # overlaps.
  52939. - newobj=lt$counter-$objbase
  52940. - counter=`expr $counter + 1`
  52941. - case " $oldobjs " in
  52942. - *[\ /]"$newobj "*) ;;
  52943. - *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  52944. - esac
  52945. - done
  52946. - func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  52947. - oldobjs="$oldobjs $gentop/$newobj"
  52948. - ;;
  52949. - *) oldobjs="$oldobjs $obj" ;;
  52950. - esac
  52951. - done
  52952. - fi
  52953. - eval cmds=\"$old_archive_cmds\"
  52954. + # libtool finish mode
  52955. + finish)
  52956. + modename="$modename: finish"
  52957. + libdirs="$nonopt"
  52958. + admincmds=
  52959. - if len=`expr "X$cmds" : ".*" 2>/dev/null` &&
  52960. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52961. - cmds=$old_archive_cmds
  52962. - else
  52963. - # the command line is too long to link in one step, link in parts
  52964. - func_echo "using piecewise archive linking..."
  52965. - save_RANLIB=$RANLIB
  52966. - RANLIB=:
  52967. - objlist=
  52968. - concat_cmds=
  52969. - save_oldobjs=$oldobjs
  52970. - # Is there a better way of finding the last object in the list?
  52971. - for obj in $save_oldobjs
  52972. - do
  52973. - last_oldobj=$obj
  52974. - done
  52975. - for obj in $save_oldobjs
  52976. - do
  52977. - oldobjs="$objlist $obj"
  52978. - objlist="$objlist $obj"
  52979. - eval test_cmds=\"$old_archive_cmds\"
  52980. - if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
  52981. - test "$len" -le "$max_cmd_len"; then
  52982. - :
  52983. - else
  52984. - # the above command should be used before it gets too long
  52985. - oldobjs=$objlist
  52986. - if test "$obj" = "$last_oldobj" ; then
  52987. - RANLIB=$save_RANLIB
  52988. - fi
  52989. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  52990. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  52991. - objlist=
  52992. - fi
  52993. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  52994. + for dir
  52995. + do
  52996. + libdirs="$libdirs $dir"
  52997. + done
  52998. +
  52999. + for libdir in $libdirs; do
  53000. + if test -n "$finish_cmds"; then
  53001. + # Do each command in the finish commands.
  53002. + cmds=$finish_cmds
  53003. + save_ifs="$IFS"; IFS='~'
  53004. + for cmd in $cmds; do
  53005. + IFS="$save_ifs"
  53006. + eval cmd=\"$cmd\"
  53007. + $show "$cmd"
  53008. + $run eval "$cmd" || admincmds="$admincmds
  53009. + $cmd"
  53010. done
  53011. - RANLIB=$save_RANLIB
  53012. - oldobjs=$objlist
  53013. - if test "X$oldobjs" = "X" ; then
  53014. - eval cmds=\"\$concat_cmds\"
  53015. - else
  53016. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  53017. - fi
  53018. + IFS="$save_ifs"
  53019. fi
  53020. - fi
  53021. - func_execute_cmds "$cmds" 'exit $?'
  53022. + if test -n "$finish_eval"; then
  53023. + # Do the single finish_eval.
  53024. + eval cmds=\"$finish_eval\"
  53025. + $run eval "$cmds" || admincmds="$admincmds
  53026. + $cmds"
  53027. + fi
  53028. + done
  53029. + fi
  53030. +
  53031. + # Exit here if they wanted silent mode.
  53032. + test "$show" = : && exit $EXIT_SUCCESS
  53033. +
  53034. + $echo "X----------------------------------------------------------------------" | $Xsed
  53035. + $echo "Libraries have been installed in:"
  53036. + for libdir in $libdirs; do
  53037. + $echo " $libdir"
  53038. done
  53039. + $echo
  53040. + $echo "If you ever happen to want to link against installed libraries"
  53041. + $echo "in a given directory, LIBDIR, you must either use libtool, and"
  53042. + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  53043. + $echo "flag during linking and do at least one of the following:"
  53044. + if test -n "$shlibpath_var"; then
  53045. + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  53046. + $echo " during execution"
  53047. + fi
  53048. + if test -n "$runpath_var"; then
  53049. + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  53050. + $echo " during linking"
  53051. + fi
  53052. + if test -n "$hardcode_libdir_flag_spec"; then
  53053. + libdir=LIBDIR
  53054. + eval flag=\"$hardcode_libdir_flag_spec\"
  53055. - test -n "$generated" && \
  53056. - func_show_eval "${RM}r$generated"
  53057. + $echo " - use the \`$flag' linker flag"
  53058. + fi
  53059. + if test -n "$admincmds"; then
  53060. + $echo " - have your system administrator run these commands:$admincmds"
  53061. + fi
  53062. + if test -f /etc/ld.so.conf; then
  53063. + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  53064. + fi
  53065. + $echo
  53066. + $echo "See any operating system documentation about shared libraries for"
  53067. + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  53068. + $echo "X----------------------------------------------------------------------" | $Xsed
  53069. + exit $EXIT_SUCCESS
  53070. + ;;
  53071. - # Now create the libtool archive.
  53072. - case $output in
  53073. - *.la)
  53074. - old_library=
  53075. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  53076. - func_echo "creating $output"
  53077. + # libtool execute mode
  53078. + execute)
  53079. + modename="$modename: execute"
  53080. - # Preserve any variables that may affect compiler behavior
  53081. - for var in $variables_saved_for_relink; do
  53082. - if eval test -z \"\${$var+set}\"; then
  53083. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  53084. - elif eval var_value=\$$var; test -z "$var_value"; then
  53085. - relink_command="$var=; export $var; $relink_command"
  53086. - else
  53087. - func_quote_for_eval "$var_value"
  53088. - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  53089. - fi
  53090. - done
  53091. - # Quote the link command for shipping.
  53092. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  53093. - relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  53094. - if test "$hardcode_automatic" = yes ; then
  53095. - relink_command=
  53096. + # The first argument is the command name.
  53097. + cmd="$nonopt"
  53098. + if test -z "$cmd"; then
  53099. + $echo "$modename: you must specify a COMMAND" 1>&2
  53100. + $echo "$help"
  53101. + exit $EXIT_FAILURE
  53102. + fi
  53103. +
  53104. + # Handle -dlopen flags immediately.
  53105. + for file in $execute_dlfiles; do
  53106. + if test ! -f "$file"; then
  53107. + $echo "$modename: \`$file' is not a file" 1>&2
  53108. + $echo "$help" 1>&2
  53109. + exit $EXIT_FAILURE
  53110. fi
  53111. - # Only create the output if not a dry run.
  53112. - $opt_dry_run || {
  53113. - for installed in no yes; do
  53114. - if test "$installed" = yes; then
  53115. - if test -z "$install_libdir"; then
  53116. - break
  53117. - fi
  53118. - output="$output_objdir/$outputname"i
  53119. - # Replace all uninstalled libtool libraries with the installed ones
  53120. - newdependency_libs=
  53121. - for deplib in $dependency_libs; do
  53122. - case $deplib in
  53123. - *.la)
  53124. - func_basename "$deplib"
  53125. - name="$func_basename_result"
  53126. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  53127. - test -z "$libdir" && \
  53128. - func_fatal_error "\`$deplib' is not a valid libtool archive"
  53129. - newdependency_libs="$newdependency_libs $libdir/$name"
  53130. - ;;
  53131. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  53132. - esac
  53133. - done
  53134. - dependency_libs="$newdependency_libs"
  53135. - newdlfiles=
  53136. + dir=
  53137. + case $file in
  53138. + *.la)
  53139. + # Check to see that this really is a libtool archive.
  53140. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  53141. + else
  53142. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  53143. + $echo "$help" 1>&2
  53144. + exit $EXIT_FAILURE
  53145. + fi
  53146. - for lib in $dlfiles; do
  53147. - case $lib in
  53148. - *.la)
  53149. - func_basename "$lib"
  53150. - name="$func_basename_result"
  53151. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  53152. - test -z "$libdir" && \
  53153. - func_fatal_error "\`$lib' is not a valid libtool archive"
  53154. - newdlfiles="$newdlfiles $libdir/$name"
  53155. - ;;
  53156. - *) newdlfiles="$newdlfiles $lib" ;;
  53157. - esac
  53158. - done
  53159. - dlfiles="$newdlfiles"
  53160. - newdlprefiles=
  53161. - for lib in $dlprefiles; do
  53162. - case $lib in
  53163. - *.la)
  53164. - # Only pass preopened files to the pseudo-archive (for
  53165. - # eventual linking with the app. that links it) if we
  53166. - # didn't already link the preopened objects directly into
  53167. - # the library:
  53168. - func_basename "$lib"
  53169. - name="$func_basename_result"
  53170. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  53171. - test -z "$libdir" && \
  53172. - func_fatal_error "\`$lib' is not a valid libtool archive"
  53173. - newdlprefiles="$newdlprefiles $libdir/$name"
  53174. - ;;
  53175. - esac
  53176. - done
  53177. - dlprefiles="$newdlprefiles"
  53178. - else
  53179. - newdlfiles=
  53180. - for lib in $dlfiles; do
  53181. - case $lib in
  53182. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  53183. - *) abs=`pwd`"/$lib" ;;
  53184. - esac
  53185. - newdlfiles="$newdlfiles $abs"
  53186. - done
  53187. - dlfiles="$newdlfiles"
  53188. - newdlprefiles=
  53189. - for lib in $dlprefiles; do
  53190. - case $lib in
  53191. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  53192. - *) abs=`pwd`"/$lib" ;;
  53193. - esac
  53194. - newdlprefiles="$newdlprefiles $abs"
  53195. - done
  53196. - dlprefiles="$newdlprefiles"
  53197. - fi
  53198. - $RM $output
  53199. - # place dlname in correct position for cygwin
  53200. - tdlname=$dlname
  53201. - case $host,$output,$installed,$module,$dlname in
  53202. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  53203. - esac
  53204. - $ECHO > $output "\
  53205. -# $outputname - a libtool library file
  53206. -# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  53207. -#
  53208. -# Please DO NOT delete this file!
  53209. -# It is necessary for linking the library.
  53210. + # Read the libtool library.
  53211. + dlname=
  53212. + library_names=
  53213. -# The name that we can dlopen(3).
  53214. -dlname='$tdlname'
  53215. + # If there is no directory component, then add one.
  53216. + case $file in
  53217. + */* | *\\*) . $file ;;
  53218. + *) . ./$file ;;
  53219. + esac
  53220. -# Names of this library.
  53221. -library_names='$library_names'
  53222. + # Skip this library if it cannot be dlopened.
  53223. + if test -z "$dlname"; then
  53224. + # Warn if it was a shared library.
  53225. + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  53226. + continue
  53227. + fi
  53228. -# The name of the static archive.
  53229. -old_library='$old_library'
  53230. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  53231. + test "X$dir" = "X$file" && dir=.
  53232. -# Linker flags that can not go in dependency_libs.
  53233. -inherited_linker_flags='$new_inherited_linker_flags'
  53234. + if test -f "$dir/$objdir/$dlname"; then
  53235. + dir="$dir/$objdir"
  53236. + else
  53237. + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  53238. + exit $EXIT_FAILURE
  53239. + fi
  53240. + ;;
  53241. -# Libraries that this one depends upon.
  53242. -dependency_libs='$dependency_libs'
  53243. + *.lo)
  53244. + # Just add the directory containing the .lo file.
  53245. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  53246. + test "X$dir" = "X$file" && dir=.
  53247. + ;;
  53248. -# Names of additional weak libraries provided by this library
  53249. -weak_library_names='$weak_libs'
  53250. + *)
  53251. + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  53252. + continue
  53253. + ;;
  53254. + esac
  53255. -# Version information for $libname.
  53256. -current=$current
  53257. -age=$age
  53258. -revision=$revision
  53259. + # Get the absolute pathname.
  53260. + absdir=`cd "$dir" && pwd`
  53261. + test -n "$absdir" && dir="$absdir"
  53262. -# Is this an already installed library?
  53263. -installed=$installed
  53264. + # Now add the directory to shlibpath_var.
  53265. + if eval "test -z \"\$$shlibpath_var\""; then
  53266. + eval "$shlibpath_var=\"\$dir\""
  53267. + else
  53268. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  53269. + fi
  53270. + done
  53271. -# Should we warn about portability when linking against -modules?
  53272. -shouldnotlink=$module
  53273. + # This variable tells wrapper scripts just to set shlibpath_var
  53274. + # rather than running their programs.
  53275. + libtool_execute_magic="$magic"
  53276. -# Files to dlopen/dlpreopen
  53277. -dlopen='$dlfiles'
  53278. -dlpreopen='$dlprefiles'
  53279. + # Check if any of the arguments is a wrapper script.
  53280. + args=
  53281. + for file
  53282. + do
  53283. + case $file in
  53284. + -*) ;;
  53285. + *)
  53286. + # Do a test to see if this is really a libtool program.
  53287. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53288. + # If there is no directory component, then add one.
  53289. + case $file in
  53290. + */* | *\\*) . $file ;;
  53291. + *) . ./$file ;;
  53292. + esac
  53293. -# Directory that this library needs to be installed in:
  53294. -libdir='$install_libdir'"
  53295. - if test "$installed" = no && test "$need_relink" = yes; then
  53296. - $ECHO >> $output "\
  53297. -relink_command=\"$relink_command\""
  53298. - fi
  53299. - done
  53300. - }
  53301. + # Transform arg to wrapped name.
  53302. + file="$progdir/$program"
  53303. + fi
  53304. + ;;
  53305. + esac
  53306. + # Quote arguments (to preserve shell metacharacters).
  53307. + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  53308. + args="$args \"$file\""
  53309. + done
  53310. - # Do a symbolic link so that the libtool archive can be found in
  53311. - # LD_LIBRARY_PATH before the program is installed.
  53312. - func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  53313. - ;;
  53314. - esac
  53315. - exit $EXIT_SUCCESS
  53316. -}
  53317. + if test -z "$run"; then
  53318. + if test -n "$shlibpath_var"; then
  53319. + # Export the shlibpath_var.
  53320. + eval "export $shlibpath_var"
  53321. + fi
  53322. + # Restore saved environment variables
  53323. + if test "${save_LC_ALL+set}" = set; then
  53324. + LC_ALL="$save_LC_ALL"; export LC_ALL
  53325. + fi
  53326. + if test "${save_LANG+set}" = set; then
  53327. + LANG="$save_LANG"; export LANG
  53328. + fi
  53329. -# func_mode_uninstall arg...
  53330. -func_mode_uninstall ()
  53331. -{
  53332. - $opt_debug
  53333. - RM="$nonopt"
  53334. + # Now prepare to actually exec the command.
  53335. + exec_cmd="\$cmd$args"
  53336. + else
  53337. + # Display what would be done.
  53338. + if test -n "$shlibpath_var"; then
  53339. + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  53340. + $echo "export $shlibpath_var"
  53341. + fi
  53342. + $echo "$cmd$args"
  53343. + exit $EXIT_SUCCESS
  53344. + fi
  53345. + ;;
  53346. +
  53347. + # libtool clean and uninstall mode
  53348. + clean | uninstall)
  53349. + modename="$modename: $mode"
  53350. + rm="$nonopt"
  53351. files=
  53352. rmforce=
  53353. exit_status=0
  53354. @@ -7102,28 +6506,30 @@
  53355. for arg
  53356. do
  53357. case $arg in
  53358. - -f) RM="$RM $arg"; rmforce=yes ;;
  53359. - -*) RM="$RM $arg" ;;
  53360. + -f) rm="$rm $arg"; rmforce=yes ;;
  53361. + -*) rm="$rm $arg" ;;
  53362. *) files="$files $arg" ;;
  53363. esac
  53364. done
  53365. - test -z "$RM" && \
  53366. - func_fatal_help "you must specify an RM program"
  53367. + if test -z "$rm"; then
  53368. + $echo "$modename: you must specify an RM program" 1>&2
  53369. + $echo "$help" 1>&2
  53370. + exit $EXIT_FAILURE
  53371. + fi
  53372. rmdirs=
  53373. origobjdir="$objdir"
  53374. for file in $files; do
  53375. - func_dirname "$file" "" "."
  53376. - dir="$func_dirname_result"
  53377. - if test "X$dir" = X.; then
  53378. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  53379. + if test "X$dir" = "X$file"; then
  53380. + dir=.
  53381. objdir="$origobjdir"
  53382. else
  53383. objdir="$dir/$origobjdir"
  53384. fi
  53385. - func_basename "$file"
  53386. - name="$func_basename_result"
  53387. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  53388. test "$mode" = uninstall && objdir="$dir"
  53389. # Remember objdir for removal later, being careful to avoid duplicates
  53390. @@ -7135,9 +6541,9 @@
  53391. fi
  53392. # Don't error if the file doesn't exist and rm -f was used.
  53393. - if { test -L "$file"; } >/dev/null 2>&1 ||
  53394. - { test -h "$file"; } >/dev/null 2>&1 ||
  53395. - test -f "$file"; then
  53396. + if (test -L "$file") >/dev/null 2>&1 \
  53397. + || (test -h "$file") >/dev/null 2>&1 \
  53398. + || test -f "$file"; then
  53399. :
  53400. elif test -d "$file"; then
  53401. exit_status=1
  53402. @@ -7151,7 +6557,7 @@
  53403. case $name in
  53404. *.la)
  53405. # Possibly a libtool archive, so verify it.
  53406. - if func_lalib_p "$file"; then
  53407. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53408. . $dir/$name
  53409. # Delete the libtool libraries and symlinks.
  53410. @@ -7167,17 +6573,39 @@
  53411. *" $dlname "*) ;;
  53412. *) rmfiles="$rmfiles $objdir/$dlname" ;;
  53413. esac
  53414. - test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  53415. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  53416. ;;
  53417. uninstall)
  53418. if test -n "$library_names"; then
  53419. # Do each command in the postuninstall commands.
  53420. - func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  53421. + cmds=$postuninstall_cmds
  53422. + save_ifs="$IFS"; IFS='~'
  53423. + for cmd in $cmds; do
  53424. + IFS="$save_ifs"
  53425. + eval cmd=\"$cmd\"
  53426. + $show "$cmd"
  53427. + $run eval "$cmd"
  53428. + if test "$?" -ne 0 && test "$rmforce" != yes; then
  53429. + exit_status=1
  53430. + fi
  53431. + done
  53432. + IFS="$save_ifs"
  53433. fi
  53434. if test -n "$old_library"; then
  53435. # Do each command in the old_postuninstall commands.
  53436. - func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  53437. + cmds=$old_postuninstall_cmds
  53438. + save_ifs="$IFS"; IFS='~'
  53439. + for cmd in $cmds; do
  53440. + IFS="$save_ifs"
  53441. + eval cmd=\"$cmd\"
  53442. + $show "$cmd"
  53443. + $run eval "$cmd"
  53444. + if test "$?" -ne 0 && test "$rmforce" != yes; then
  53445. + exit_status=1
  53446. + fi
  53447. + done
  53448. + IFS="$save_ifs"
  53449. fi
  53450. # FIXME: should reinstall the best remaining shared library.
  53451. ;;
  53452. @@ -7187,20 +6615,20 @@
  53453. *.lo)
  53454. # Possibly a libtool object, so verify it.
  53455. - if func_lalib_p "$file"; then
  53456. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53457. # Read the .lo file
  53458. . $dir/$name
  53459. # Add PIC object to the list of files to remove.
  53460. - if test -n "$pic_object" &&
  53461. - test "$pic_object" != none; then
  53462. + if test -n "$pic_object" \
  53463. + && test "$pic_object" != none; then
  53464. rmfiles="$rmfiles $dir/$pic_object"
  53465. fi
  53466. # Add non-PIC object to the list of files to remove.
  53467. - if test -n "$non_pic_object" &&
  53468. - test "$non_pic_object" != none; then
  53469. + if test -n "$non_pic_object" \
  53470. + && test "$non_pic_object" != none; then
  53471. rmfiles="$rmfiles $dir/$non_pic_object"
  53472. fi
  53473. fi
  53474. @@ -7211,17 +6639,15 @@
  53475. noexename=$name
  53476. case $file in
  53477. *.exe)
  53478. - func_stripname '' '.exe' "$file"
  53479. - file=$func_stripname_result
  53480. - func_stripname '' '.exe' "$name"
  53481. - noexename=$func_stripname_result
  53482. + file=`$echo $file|${SED} 's,.exe$,,'`
  53483. + noexename=`$echo $name|${SED} 's,.exe$,,'`
  53484. # $file with .exe has already been added to rmfiles,
  53485. # add $file without .exe
  53486. rmfiles="$rmfiles $file"
  53487. ;;
  53488. esac
  53489. # Do a test to see if this is a libtool program.
  53490. - if func_ltwrapper_p "$file"; then
  53491. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  53492. relink_command=
  53493. . $dir/$noexename
  53494. @@ -7238,76 +6664,237 @@
  53495. fi
  53496. ;;
  53497. esac
  53498. - func_show_eval "$RM $rmfiles" 'exit_status=1'
  53499. + $show "$rm $rmfiles"
  53500. + $run $rm $rmfiles || exit_status=1
  53501. done
  53502. objdir="$origobjdir"
  53503. # Try to remove the ${objdir}s in the directories where we deleted files
  53504. for dir in $rmdirs; do
  53505. if test -d "$dir"; then
  53506. - func_show_eval "rmdir $dir >/dev/null 2>&1"
  53507. + $show "rmdir $dir"
  53508. + $run rmdir $dir >/dev/null 2>&1
  53509. fi
  53510. done
  53511. exit $exit_status
  53512. -}
  53513. + ;;
  53514. + "")
  53515. + $echo "$modename: you must specify a MODE" 1>&2
  53516. + $echo "$generic_help" 1>&2
  53517. + exit $EXIT_FAILURE
  53518. + ;;
  53519. + esac
  53520. -# TEST SUITE MARKER ## NON-FUNCTION
  53521. -## ----------- ##
  53522. -## Main. ##
  53523. -## ----------- ##
  53524. + if test -z "$exec_cmd"; then
  53525. + $echo "$modename: invalid operation mode \`$mode'" 1>&2
  53526. + $echo "$generic_help" 1>&2
  53527. + exit $EXIT_FAILURE
  53528. + fi
  53529. +fi # test -z "$show_help"
  53530. -{
  53531. - # Sanity checks first:
  53532. - func_check_version_match
  53533. +if test -n "$exec_cmd"; then
  53534. + eval exec $exec_cmd
  53535. + exit $EXIT_FAILURE
  53536. +fi
  53537. - if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  53538. - func_fatal_configuration "not configured to build any kind of library"
  53539. - fi
  53540. +# We need to display help for each of the modes.
  53541. +case $mode in
  53542. +"") $echo \
  53543. +"Usage: $modename [OPTION]... [MODE-ARG]...
  53544. +
  53545. +Provide generalized library-building support services.
  53546. +
  53547. + --config show all configuration variables
  53548. + --debug enable verbose shell tracing
  53549. +-n, --dry-run display commands without modifying any files
  53550. + --features display basic configuration information and exit
  53551. + --finish same as \`--mode=finish'
  53552. + --help display this help message and exit
  53553. + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  53554. + --quiet same as \`--silent'
  53555. + --silent don't print informational messages
  53556. + --tag=TAG use configuration variables from tag TAG
  53557. + --version print version information
  53558. +
  53559. +MODE must be one of the following:
  53560. +
  53561. + clean remove files from the build directory
  53562. + compile compile a source file into a libtool object
  53563. + execute automatically set library path, then run a program
  53564. + finish complete the installation of libtool libraries
  53565. + install install libraries or executables
  53566. + link create a library or an executable
  53567. + uninstall remove libraries from an installed directory
  53568. - test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  53569. +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  53570. +a more detailed description of MODE.
  53571. +Report bugs to <bug-libtool@gnu.org>."
  53572. + exit $EXIT_SUCCESS
  53573. + ;;
  53574. - # Darwin sucks
  53575. - eval std_shrext=\"$shrext_cmds\"
  53576. +clean)
  53577. + $echo \
  53578. +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  53579. +Remove files from the build directory.
  53580. - # Only execute mode is allowed to have -dlopen flags.
  53581. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  53582. - func_error "unrecognized option \`-dlopen'"
  53583. - $ECHO "$help" 1>&2
  53584. - exit $EXIT_FAILURE
  53585. - fi
  53586. +RM is the name of the program to use to delete files associated with each FILE
  53587. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  53588. +to RM.
  53589. - # Change the help message to a mode-specific one.
  53590. - generic_help="$help"
  53591. - help="Try \`$progname --help --mode=$mode' for more information."
  53592. +If FILE is a libtool library, object or program, all the files associated
  53593. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  53594. + ;;
  53595. - case $mode in
  53596. - compile) func_mode_compile ${1+"$@"} ;;
  53597. - execute) func_mode_execute ${1+"$@"} ;;
  53598. - finish) func_mode_finish ${1+"$@"} ;;
  53599. - install) func_mode_install ${1+"$@"} ;;
  53600. - link|relink) func_mode_link ${1+"$@"} ;;
  53601. - uninstall|clean) func_mode_uninstall ${1+"$@"} ;;
  53602. +compile)
  53603. + $echo \
  53604. +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  53605. - "") help="$generic_help"
  53606. - func_fatal_help "you must specify a MODE"
  53607. - ;;
  53608. - esac
  53609. +Compile a source file into a libtool library object.
  53610. - test -z "$exec_cmd" && \
  53611. - func_fatal_help "invalid operation mode \`$mode'"
  53612. +This mode accepts the following additional options:
  53613. - if test -n "$exec_cmd"; then
  53614. - eval exec "$exec_cmd"
  53615. - exit $EXIT_FAILURE
  53616. - fi
  53617. -}
  53618. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  53619. + -prefer-pic try to building PIC objects only
  53620. + -prefer-non-pic try to building non-PIC objects only
  53621. + -static always build a \`.o' file suitable for static linking
  53622. +
  53623. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  53624. +from the given SOURCEFILE.
  53625. +
  53626. +The output file name is determined by removing the directory component from
  53627. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  53628. +library object suffix, \`.lo'."
  53629. + ;;
  53630. +
  53631. +execute)
  53632. + $echo \
  53633. +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  53634. +
  53635. +Automatically set library path, then run a program.
  53636. +
  53637. +This mode accepts the following additional options:
  53638. +
  53639. + -dlopen FILE add the directory containing FILE to the library path
  53640. +
  53641. +This mode sets the library path environment variable according to \`-dlopen'
  53642. +flags.
  53643. +
  53644. +If any of the ARGS are libtool executable wrappers, then they are translated
  53645. +into their corresponding uninstalled binary, and any of their required library
  53646. +directories are added to the library path.
  53647. +
  53648. +Then, COMMAND is executed, with ARGS as arguments."
  53649. + ;;
  53650. +
  53651. +finish)
  53652. + $echo \
  53653. +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  53654. +
  53655. +Complete the installation of libtool libraries.
  53656. +
  53657. +Each LIBDIR is a directory that contains libtool libraries.
  53658. +
  53659. +The commands that this mode executes may require superuser privileges. Use
  53660. +the \`--dry-run' option if you just want to see what would be executed."
  53661. + ;;
  53662. +
  53663. +install)
  53664. + $echo \
  53665. +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  53666. +
  53667. +Install executables or libraries.
  53668. +
  53669. +INSTALL-COMMAND is the installation command. The first component should be
  53670. +either the \`install' or \`cp' program.
  53671. +
  53672. +The rest of the components are interpreted as arguments to that command (only
  53673. +BSD-compatible install options are recognized)."
  53674. + ;;
  53675. +
  53676. +link)
  53677. + $echo \
  53678. +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  53679. +
  53680. +Link object files or libraries together to form another library, or to
  53681. +create an executable program.
  53682. +
  53683. +LINK-COMMAND is a command using the C compiler that you would use to create
  53684. +a program from several object files.
  53685. +
  53686. +The following components of LINK-COMMAND are treated specially:
  53687. +
  53688. + -all-static do not do any dynamic linking at all
  53689. + -avoid-version do not add a version suffix if possible
  53690. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  53691. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  53692. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  53693. + -export-symbols SYMFILE
  53694. + try to export only the symbols listed in SYMFILE
  53695. + -export-symbols-regex REGEX
  53696. + try to export only the symbols matching REGEX
  53697. + -LLIBDIR search LIBDIR for required installed libraries
  53698. + -lNAME OUTPUT-FILE requires the installed library libNAME
  53699. + -module build a library that can dlopened
  53700. + -no-fast-install disable the fast-install mode
  53701. + -no-install link a not-installable executable
  53702. + -no-undefined declare that a library does not refer to external symbols
  53703. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  53704. + -objectlist FILE Use a list of object files found in FILE to specify objects
  53705. + -precious-files-regex REGEX
  53706. + don't remove output files matching REGEX
  53707. + -release RELEASE specify package release information
  53708. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  53709. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  53710. + -static do not do any dynamic linking of libtool libraries
  53711. + -version-info CURRENT[:REVISION[:AGE]]
  53712. + specify library version info [each variable defaults to 0]
  53713. +
  53714. +All other options (arguments beginning with \`-') are ignored.
  53715. +
  53716. +Every other argument is treated as a filename. Files ending in \`.la' are
  53717. +treated as uninstalled libtool libraries, other files are standard or library
  53718. +object files.
  53719. +
  53720. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  53721. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  53722. +required, except when creating a convenience library.
  53723. +
  53724. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  53725. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  53726. +
  53727. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  53728. +is created, otherwise an executable program is created."
  53729. + ;;
  53730. +
  53731. +uninstall)
  53732. + $echo \
  53733. +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  53734. +
  53735. +Remove libraries from an installation directory.
  53736. +
  53737. +RM is the name of the program to use to delete files associated with each FILE
  53738. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  53739. +to RM.
  53740. +
  53741. +If FILE is a libtool library, all the files associated with it are deleted.
  53742. +Otherwise, only FILE itself is deleted using RM."
  53743. + ;;
  53744. +
  53745. +*)
  53746. + $echo "$modename: invalid operation mode \`$mode'" 1>&2
  53747. + $echo "$help" 1>&2
  53748. + exit $EXIT_FAILURE
  53749. + ;;
  53750. +esac
  53751. -exit $exit_status
  53752. +$echo
  53753. +$echo "Try \`$modename --help' for more information about other modes."
  53754. +exit $?
  53755. # The TAGs below are defined such that we never get into a situation
  53756. # in which we disable both kinds of libraries. Given conflicting
  53757. @@ -7321,12 +6908,11 @@
  53758. # configuration. But we'll never go from static-only to shared-only.
  53759. # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
  53760. -build_libtool_libs=no
  53761. -build_old_libs=yes
  53762. +disable_libs=shared
  53763. # ### END LIBTOOL TAG CONFIG: disable-shared
  53764. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  53765. -build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  53766. +disable_libs=static
  53767. # ### END LIBTOOL TAG CONFIG: disable-static
  53768. # Local Variables: