Codebase list libfolia / e99daa5
remove autogenerated files proycon 4 years ago
16 changed file(s) with 0 addition(s) and 46775 deletion(s). Raw diff Collapse all Expand all
+0
-897
Makefile.in less more
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 subdir = .
91 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_osx_pkg.m4 \
93 $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
94 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
95 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
96 $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
97 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
98 $(ACLOCAL_M4)
99 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
100 $(am__configure_deps) $(am__DIST_COMMON)
101 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
102 configure.lineno config.status.lineno
103 mkinstalldirs = $(install_sh) -d
104 CONFIG_HEADER = config.h
105 CONFIG_CLEAN_FILES = folia.pc
106 CONFIG_CLEAN_VPATH_FILES =
107 AM_V_P = $(am__v_P_@AM_V@)
108 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
109 am__v_P_0 = false
110 am__v_P_1 = :
111 AM_V_GEN = $(am__v_GEN_@AM_V@)
112 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
113 am__v_GEN_0 = @echo " GEN " $@;
114 am__v_GEN_1 =
115 AM_V_at = $(am__v_at_@AM_V@)
116 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
117 am__v_at_0 = @
118 am__v_at_1 =
119 SOURCES =
120 DIST_SOURCES =
121 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
122 ctags-recursive dvi-recursive html-recursive info-recursive \
123 install-data-recursive install-dvi-recursive \
124 install-exec-recursive install-html-recursive \
125 install-info-recursive install-pdf-recursive \
126 install-ps-recursive install-recursive installcheck-recursive \
127 installdirs-recursive pdf-recursive ps-recursive \
128 tags-recursive uninstall-recursive
129 am__can_run_installinfo = \
130 case $$AM_UPDATE_INFO_DIR in \
131 n|no|NO) false;; \
132 *) (install-info --version) >/dev/null 2>&1;; \
133 esac
134 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
135 am__vpath_adj = case $$p in \
136 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
137 *) f=$$p;; \
138 esac;
139 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
140 am__install_max = 40
141 am__nobase_strip_setup = \
142 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
143 am__nobase_strip = \
144 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
145 am__nobase_list = $(am__nobase_strip_setup); \
146 for p in $$list; do echo "$$p $$p"; done | \
147 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
148 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
149 if (++n[$$2] == $(am__install_max)) \
150 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
151 END { for (dir in files) print dir, files[dir] }'
152 am__base_list = \
153 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
154 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
155 am__uninstall_files_from_dir = { \
156 test -z "$$files" \
157 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
158 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
159 $(am__cd) "$$dir" && rm -f $$files; }; \
160 }
161 am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
162 DATA = $(pkgconfig_DATA)
163 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
164 distclean-recursive maintainer-clean-recursive
165 am__recursive_targets = \
166 $(RECURSIVE_TARGETS) \
167 $(RECURSIVE_CLEAN_TARGETS) \
168 $(am__extra_recursive_targets)
169 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
170 cscope distdir distdir-am dist dist-all distcheck
171 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
172 $(LISP)config.h.in
173 # Read a list of newline-separated strings from the standard input,
174 # and print each of them once, without duplicates. Input order is
175 # *not* preserved.
176 am__uniquify_input = $(AWK) '\
177 BEGIN { nonempty = 0; } \
178 { items[$$0] = 1; nonempty = 1; } \
179 END { if (nonempty) { for (i in items) print i; }; } \
180 '
181 # Make sure the list of sources is unique. This is necessary because,
182 # e.g., the same source file might be shared among _SOURCES variables
183 # for different programs/libraries.
184 am__define_uniq_tagged_files = \
185 list='$(am__tagged_files)'; \
186 unique=`for i in $$list; do \
187 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
188 done | $(am__uniquify_input)`
189 ETAGS = etags
190 CTAGS = ctags
191 CSCOPE = cscope
192 DIST_SUBDIRS = $(SUBDIRS)
193 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
194 $(srcdir)/folia.pc.in AUTHORS COPYING ChangeLog NEWS README \
195 TODO compile config.guess config.sub depcomp install-sh \
196 ltmain.sh missing
197 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
198 distdir = $(PACKAGE)-$(VERSION)
199 top_distdir = $(distdir)
200 am__remove_distdir = \
201 if test -d "$(distdir)"; then \
202 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
203 && rm -rf "$(distdir)" \
204 || { sleep 5 && rm -rf "$(distdir)"; }; \
205 else :; fi
206 am__post_remove_distdir = $(am__remove_distdir)
207 am__relativize = \
208 dir0=`pwd`; \
209 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
210 sed_rest='s,^[^/]*/*,,'; \
211 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
212 sed_butlast='s,/*[^/]*$$,,'; \
213 while test -n "$$dir1"; do \
214 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
215 if test "$$first" != "."; then \
216 if test "$$first" = ".."; then \
217 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
218 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
219 else \
220 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
221 if test "$$first2" = "$$first"; then \
222 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
223 else \
224 dir2="../$$dir2"; \
225 fi; \
226 dir0="$$dir0"/"$$first"; \
227 fi; \
228 fi; \
229 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
230 done; \
231 reldir="$$dir2"
232 DIST_ARCHIVES = $(distdir).tar.gz
233 GZIP_ENV = --best
234 DIST_TARGETS = dist-gzip
235 distuninstallcheck_listfiles = find . -type f -print
236 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
237 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
238 distcleancheck_listfiles = find . -type f -print
239 ACLOCAL = @ACLOCAL@
240 AMTAR = @AMTAR@
241 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
242 AR = @AR@
243 AUTOCONF = @AUTOCONF@
244 AUTOHEADER = @AUTOHEADER@
245 AUTOMAKE = @AUTOMAKE@
246 AWK = @AWK@
247 CC = @CC@
248 CCDEPMODE = @CCDEPMODE@
249 CFLAGS = @CFLAGS@
250 CPP = @CPP@
251 CPPFLAGS = @CPPFLAGS@
252 CXX = @CXX@
253 CXXCPP = @CXXCPP@
254 CXXDEPMODE = @CXXDEPMODE@
255 CXXFLAGS = @CXXFLAGS@
256 CYGPATH_W = @CYGPATH_W@
257 DEFS = @DEFS@
258 DEPDIR = @DEPDIR@
259 DLLTOOL = @DLLTOOL@
260 DSYMUTIL = @DSYMUTIL@
261 DUMPBIN = @DUMPBIN@
262 ECHO_C = @ECHO_C@
263 ECHO_N = @ECHO_N@
264 ECHO_T = @ECHO_T@
265 EGREP = @EGREP@
266 EXEEXT = @EXEEXT@
267 FGREP = @FGREP@
268 GREP = @GREP@
269 ICU_CFLAGS = @ICU_CFLAGS@
270 ICU_LIBS = @ICU_LIBS@
271 INSTALL = @INSTALL@
272 INSTALL_DATA = @INSTALL_DATA@
273 INSTALL_PROGRAM = @INSTALL_PROGRAM@
274 INSTALL_SCRIPT = @INSTALL_SCRIPT@
275 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
276 LD = @LD@
277 LDFLAGS = @LDFLAGS@
278 LIBOBJS = @LIBOBJS@
279 LIBS = @LIBS@
280 LIBTOOL = @LIBTOOL@
281 LIPO = @LIPO@
282 LN_S = @LN_S@
283 LTLIBOBJS = @LTLIBOBJS@
284 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
285 MAKEINFO = @MAKEINFO@
286 MANIFEST_TOOL = @MANIFEST_TOOL@
287 MKDIR_P = @MKDIR_P@
288 NM = @NM@
289 NMEDIT = @NMEDIT@
290 OBJDUMP = @OBJDUMP@
291 OBJEXT = @OBJEXT@
292 OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
293 OTOOL = @OTOOL@
294 OTOOL64 = @OTOOL64@
295 PACKAGE = @PACKAGE@
296 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
297 PACKAGE_NAME = @PACKAGE_NAME@
298 PACKAGE_STRING = @PACKAGE_STRING@
299 PACKAGE_TARNAME = @PACKAGE_TARNAME@
300 PACKAGE_URL = @PACKAGE_URL@
301 PACKAGE_VERSION = @PACKAGE_VERSION@
302 PATH_SEPARATOR = @PATH_SEPARATOR@
303 PKG_CONFIG = @PKG_CONFIG@
304 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
305 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
306 PTHREAD_CC = @PTHREAD_CC@
307 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
308 PTHREAD_LIBS = @PTHREAD_LIBS@
309 RANLIB = @RANLIB@
310 SED = @SED@
311 SET_MAKE = @SET_MAKE@
312 SHELL = @SHELL@
313 STRIP = @STRIP@
314 VERSION = @VERSION@
315 XML2_CFLAGS = @XML2_CFLAGS@
316 XML2_LIBS = @XML2_LIBS@
317 abs_builddir = @abs_builddir@
318 abs_srcdir = @abs_srcdir@
319 abs_top_builddir = @abs_top_builddir@
320 abs_top_srcdir = @abs_top_srcdir@
321 ac_ct_AR = @ac_ct_AR@
322 ac_ct_CC = @ac_ct_CC@
323 ac_ct_CXX = @ac_ct_CXX@
324 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
325 am__include = @am__include@
326 am__leading_dot = @am__leading_dot@
327 am__quote = @am__quote@
328 am__tar = @am__tar@
329 am__untar = @am__untar@
330 ax_pthread_config = @ax_pthread_config@
331 bindir = @bindir@
332 build = @build@
333 build_alias = @build_alias@
334 build_cpu = @build_cpu@
335 build_os = @build_os@
336 build_vendor = @build_vendor@
337 builddir = @builddir@
338 datadir = @datadir@
339 datarootdir = @datarootdir@
340 docdir = @docdir@
341 dvidir = @dvidir@
342 exec_prefix = @exec_prefix@
343 host = @host@
344 host_alias = @host_alias@
345 host_cpu = @host_cpu@
346 host_os = @host_os@
347 host_vendor = @host_vendor@
348 htmldir = @htmldir@
349 includedir = @includedir@
350 infodir = @infodir@
351 install_sh = @install_sh@
352 libdir = @libdir@
353 libexecdir = @libexecdir@
354 localedir = @localedir@
355 localstatedir = @localstatedir@
356 mandir = @mandir@
357 mkdir_p = @mkdir_p@
358 oldincludedir = @oldincludedir@
359 pdfdir = @pdfdir@
360 prefix = @prefix@
361 program_transform_name = @program_transform_name@
362 psdir = @psdir@
363 runstatedir = @runstatedir@
364 sbindir = @sbindir@
365 sharedstatedir = @sharedstatedir@
366 srcdir = @srcdir@
367 sysconfdir = @sysconfdir@
368 target_alias = @target_alias@
369 ticcutils_CFLAGS = @ticcutils_CFLAGS@
370 ticcutils_LIBS = @ticcutils_LIBS@
371 top_build_prefix = @top_build_prefix@
372 top_builddir = @top_builddir@
373 top_srcdir = @top_srcdir@
374 ACLOCAL_AMFLAGS = -I m4 --install
375 SUBDIRS = src include m4
376 EXTRA_DIST = bootstrap.sh AUTHORS TODO NEWS README.md folia.pc.in codemeta.json
377 pkgconfigdir = $(libdir)/pkgconfig
378 pkgconfig_DATA = folia.pc
379 all: config.h
380 $(MAKE) $(AM_MAKEFLAGS) all-recursive
381
382 .SUFFIXES:
383 am--refresh: Makefile
384 @:
385 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
386 @for dep in $?; do \
387 case '$(am__configure_deps)' in \
388 *$$dep*) \
389 echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
390 $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
391 && exit 0; \
392 exit 1;; \
393 esac; \
394 done; \
395 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
396 $(am__cd) $(top_srcdir) && \
397 $(AUTOMAKE) --foreign Makefile
398 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
399 @case '$?' in \
400 *config.status*) \
401 echo ' $(SHELL) ./config.status'; \
402 $(SHELL) ./config.status;; \
403 *) \
404 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
405 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
406 esac;
407
408 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
409 $(SHELL) ./config.status --recheck
410
411 $(top_srcdir)/configure: $(am__configure_deps)
412 $(am__cd) $(srcdir) && $(AUTOCONF)
413 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
414 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
415 $(am__aclocal_m4_deps):
416
417 config.h: stamp-h1
418 @test -f $@ || rm -f stamp-h1
419 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
420
421 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
422 @rm -f stamp-h1
423 cd $(top_builddir) && $(SHELL) ./config.status config.h
424 $(srcdir)/config.h.in: $(am__configure_deps)
425 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
426 rm -f stamp-h1
427 touch $@
428
429 distclean-hdr:
430 -rm -f config.h stamp-h1
431 folia.pc: $(top_builddir)/config.status $(srcdir)/folia.pc.in
432 cd $(top_builddir) && $(SHELL) ./config.status $@
433
434 mostlyclean-libtool:
435 -rm -f *.lo
436
437 clean-libtool:
438 -rm -rf .libs _libs
439
440 distclean-libtool:
441 -rm -f libtool config.lt
442 install-pkgconfigDATA: $(pkgconfig_DATA)
443 @$(NORMAL_INSTALL)
444 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
445 if test -n "$$list"; then \
446 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
447 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
448 fi; \
449 for p in $$list; do \
450 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
451 echo "$$d$$p"; \
452 done | $(am__base_list) | \
453 while read files; do \
454 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
455 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
456 done
457
458 uninstall-pkgconfigDATA:
459 @$(NORMAL_UNINSTALL)
460 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
461 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
462 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
463
464 # This directory's subdirectories are mostly independent; you can cd
465 # into them and run 'make' without going through this Makefile.
466 # To change the values of 'make' variables: instead of editing Makefiles,
467 # (1) if the variable is set in 'config.status', edit 'config.status'
468 # (which will cause the Makefiles to be regenerated when you run 'make');
469 # (2) otherwise, pass the desired values on the 'make' command line.
470 $(am__recursive_targets):
471 @fail=; \
472 if $(am__make_keepgoing); then \
473 failcom='fail=yes'; \
474 else \
475 failcom='exit 1'; \
476 fi; \
477 dot_seen=no; \
478 target=`echo $@ | sed s/-recursive//`; \
479 case "$@" in \
480 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
481 *) list='$(SUBDIRS)' ;; \
482 esac; \
483 for subdir in $$list; do \
484 echo "Making $$target in $$subdir"; \
485 if test "$$subdir" = "."; then \
486 dot_seen=yes; \
487 local_target="$$target-am"; \
488 else \
489 local_target="$$target"; \
490 fi; \
491 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
492 || eval $$failcom; \
493 done; \
494 if test "$$dot_seen" = "no"; then \
495 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
496 fi; test -z "$$fail"
497
498 ID: $(am__tagged_files)
499 $(am__define_uniq_tagged_files); mkid -fID $$unique
500 tags: tags-recursive
501 TAGS: tags
502
503 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
504 set x; \
505 here=`pwd`; \
506 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
507 include_option=--etags-include; \
508 empty_fix=.; \
509 else \
510 include_option=--include; \
511 empty_fix=; \
512 fi; \
513 list='$(SUBDIRS)'; for subdir in $$list; do \
514 if test "$$subdir" = .; then :; else \
515 test ! -f $$subdir/TAGS || \
516 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
517 fi; \
518 done; \
519 $(am__define_uniq_tagged_files); \
520 shift; \
521 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
522 test -n "$$unique" || unique=$$empty_fix; \
523 if test $$# -gt 0; then \
524 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
525 "$$@" $$unique; \
526 else \
527 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
528 $$unique; \
529 fi; \
530 fi
531 ctags: ctags-recursive
532
533 CTAGS: ctags
534 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
535 $(am__define_uniq_tagged_files); \
536 test -z "$(CTAGS_ARGS)$$unique" \
537 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
538 $$unique
539
540 GTAGS:
541 here=`$(am__cd) $(top_builddir) && pwd` \
542 && $(am__cd) $(top_srcdir) \
543 && gtags -i $(GTAGS_ARGS) "$$here"
544 cscope: cscope.files
545 test ! -s cscope.files \
546 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
547 clean-cscope:
548 -rm -f cscope.files
549 cscope.files: clean-cscope cscopelist
550 cscopelist: cscopelist-recursive
551
552 cscopelist-am: $(am__tagged_files)
553 list='$(am__tagged_files)'; \
554 case "$(srcdir)" in \
555 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
556 *) sdir=$(subdir)/$(srcdir) ;; \
557 esac; \
558 for i in $$list; do \
559 if test -f "$$i"; then \
560 echo "$(subdir)/$$i"; \
561 else \
562 echo "$$sdir/$$i"; \
563 fi; \
564 done >> $(top_builddir)/cscope.files
565
566 distclean-tags:
567 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
568 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
569
570 distdir: $(BUILT_SOURCES)
571 $(MAKE) $(AM_MAKEFLAGS) distdir-am
572
573 distdir-am: $(DISTFILES)
574 $(am__remove_distdir)
575 test -d "$(distdir)" || mkdir "$(distdir)"
576 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
577 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
578 list='$(DISTFILES)'; \
579 dist_files=`for file in $$list; do echo $$file; done | \
580 sed -e "s|^$$srcdirstrip/||;t" \
581 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
582 case $$dist_files in \
583 */*) $(MKDIR_P) `echo "$$dist_files" | \
584 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
585 sort -u` ;; \
586 esac; \
587 for file in $$dist_files; do \
588 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
589 if test -d $$d/$$file; then \
590 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
591 if test -d "$(distdir)/$$file"; then \
592 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
593 fi; \
594 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
595 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
596 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
597 fi; \
598 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
599 else \
600 test -f "$(distdir)/$$file" \
601 || cp -p $$d/$$file "$(distdir)/$$file" \
602 || exit 1; \
603 fi; \
604 done
605 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
606 if test "$$subdir" = .; then :; else \
607 $(am__make_dryrun) \
608 || test -d "$(distdir)/$$subdir" \
609 || $(MKDIR_P) "$(distdir)/$$subdir" \
610 || exit 1; \
611 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
612 $(am__relativize); \
613 new_distdir=$$reldir; \
614 dir1=$$subdir; dir2="$(top_distdir)"; \
615 $(am__relativize); \
616 new_top_distdir=$$reldir; \
617 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
618 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
619 ($(am__cd) $$subdir && \
620 $(MAKE) $(AM_MAKEFLAGS) \
621 top_distdir="$$new_top_distdir" \
622 distdir="$$new_distdir" \
623 am__remove_distdir=: \
624 am__skip_length_check=: \
625 am__skip_mode_fix=: \
626 distdir) \
627 || exit 1; \
628 fi; \
629 done
630 -test -n "$(am__skip_mode_fix)" \
631 || find "$(distdir)" -type d ! -perm -755 \
632 -exec chmod u+rwx,go+rx {} \; -o \
633 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
634 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
635 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
636 || chmod -R a+r "$(distdir)"
637 dist-gzip: distdir
638 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
639 $(am__post_remove_distdir)
640
641 dist-bzip2: distdir
642 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
643 $(am__post_remove_distdir)
644
645 dist-lzip: distdir
646 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
647 $(am__post_remove_distdir)
648
649 dist-xz: distdir
650 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
651 $(am__post_remove_distdir)
652
653 dist-tarZ: distdir
654 @echo WARNING: "Support for distribution archives compressed with" \
655 "legacy program 'compress' is deprecated." >&2
656 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
657 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
658 $(am__post_remove_distdir)
659
660 dist-shar: distdir
661 @echo WARNING: "Support for shar distribution archives is" \
662 "deprecated." >&2
663 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
664 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
665 $(am__post_remove_distdir)
666
667 dist-zip: distdir
668 -rm -f $(distdir).zip
669 zip -rq $(distdir).zip $(distdir)
670 $(am__post_remove_distdir)
671
672 dist dist-all:
673 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
674 $(am__post_remove_distdir)
675
676 # This target untars the dist file and tries a VPATH configuration. Then
677 # it guarantees that the distribution is self-contained by making another
678 # tarfile.
679 distcheck: dist
680 case '$(DIST_ARCHIVES)' in \
681 *.tar.gz*) \
682 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
683 *.tar.bz2*) \
684 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
685 *.tar.lz*) \
686 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
687 *.tar.xz*) \
688 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
689 *.tar.Z*) \
690 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
691 *.shar.gz*) \
692 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
693 *.zip*) \
694 unzip $(distdir).zip ;;\
695 esac
696 chmod -R a-w $(distdir)
697 chmod u+w $(distdir)
698 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
699 chmod a-w $(distdir)
700 test -d $(distdir)/_build || exit 0; \
701 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
702 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
703 && am__cwd=`pwd` \
704 && $(am__cd) $(distdir)/_build/sub \
705 && ../../configure \
706 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
707 $(DISTCHECK_CONFIGURE_FLAGS) \
708 --srcdir=../.. --prefix="$$dc_install_base" \
709 && $(MAKE) $(AM_MAKEFLAGS) \
710 && $(MAKE) $(AM_MAKEFLAGS) dvi \
711 && $(MAKE) $(AM_MAKEFLAGS) check \
712 && $(MAKE) $(AM_MAKEFLAGS) install \
713 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
714 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
715 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
716 distuninstallcheck \
717 && chmod -R a-w "$$dc_install_base" \
718 && ({ \
719 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
720 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
721 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
722 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
723 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
724 } || { rm -rf "$$dc_destdir"; exit 1; }) \
725 && rm -rf "$$dc_destdir" \
726 && $(MAKE) $(AM_MAKEFLAGS) dist \
727 && rm -rf $(DIST_ARCHIVES) \
728 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
729 && cd "$$am__cwd" \
730 || exit 1
731 $(am__post_remove_distdir)
732 @(echo "$(distdir) archives ready for distribution: "; \
733 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
734 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
735 distuninstallcheck:
736 @test -n '$(distuninstallcheck_dir)' || { \
737 echo 'ERROR: trying to run $@ with an empty' \
738 '$$(distuninstallcheck_dir)' >&2; \
739 exit 1; \
740 }; \
741 $(am__cd) '$(distuninstallcheck_dir)' || { \
742 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
743 exit 1; \
744 }; \
745 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
746 || { echo "ERROR: files left after uninstall:" ; \
747 if test -n "$(DESTDIR)"; then \
748 echo " (check DESTDIR support)"; \
749 fi ; \
750 $(distuninstallcheck_listfiles) ; \
751 exit 1; } >&2
752 distcleancheck: distclean
753 @if test '$(srcdir)' = . ; then \
754 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
755 exit 1 ; \
756 fi
757 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
758 || { echo "ERROR: files left in build directory after distclean:" ; \
759 $(distcleancheck_listfiles) ; \
760 exit 1; } >&2
761 check-am: all-am
762 check: check-recursive
763 all-am: Makefile $(DATA) config.h
764 installdirs: installdirs-recursive
765 installdirs-am:
766 for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
767 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
768 done
769 install: install-recursive
770 install-exec: install-exec-recursive
771 install-data: install-data-recursive
772 uninstall: uninstall-recursive
773
774 install-am: all-am
775 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
776
777 installcheck: installcheck-recursive
778 install-strip:
779 if test -z '$(STRIP)'; then \
780 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
781 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
782 install; \
783 else \
784 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
785 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
786 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
787 fi
788 mostlyclean-generic:
789
790 clean-generic:
791
792 distclean-generic:
793 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
794 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
795
796 maintainer-clean-generic:
797 @echo "This command is intended for maintainers to use"
798 @echo "it deletes files that may require special tools to rebuild."
799 clean: clean-recursive
800
801 clean-am: clean-generic clean-libtool mostlyclean-am
802
803 distclean: distclean-recursive
804 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
805 -rm -f Makefile
806 distclean-am: clean-am distclean-generic distclean-hdr \
807 distclean-libtool distclean-tags
808
809 dvi: dvi-recursive
810
811 dvi-am:
812
813 html: html-recursive
814
815 html-am:
816
817 info: info-recursive
818
819 info-am:
820
821 install-data-am: install-pkgconfigDATA
822
823 install-dvi: install-dvi-recursive
824
825 install-dvi-am:
826
827 install-exec-am:
828
829 install-html: install-html-recursive
830
831 install-html-am:
832
833 install-info: install-info-recursive
834
835 install-info-am:
836
837 install-man:
838
839 install-pdf: install-pdf-recursive
840
841 install-pdf-am:
842
843 install-ps: install-ps-recursive
844
845 install-ps-am:
846
847 installcheck-am:
848
849 maintainer-clean: maintainer-clean-recursive
850 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
851 -rm -rf $(top_srcdir)/autom4te.cache
852 -rm -f Makefile
853 maintainer-clean-am: distclean-am maintainer-clean-generic
854
855 mostlyclean: mostlyclean-recursive
856
857 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
858
859 pdf: pdf-recursive
860
861 pdf-am:
862
863 ps: ps-recursive
864
865 ps-am:
866
867 uninstall-am: uninstall-pkgconfigDATA
868
869 .MAKE: $(am__recursive_targets) all install-am install-strip
870
871 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
872 am--refresh check check-am clean clean-cscope clean-generic \
873 clean-libtool cscope cscopelist-am ctags ctags-am dist \
874 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
875 dist-xz dist-zip distcheck distclean distclean-generic \
876 distclean-hdr distclean-libtool distclean-tags distcleancheck \
877 distdir distuninstallcheck dvi dvi-am html html-am info \
878 info-am install install-am install-data install-data-am \
879 install-dvi install-dvi-am install-exec install-exec-am \
880 install-html install-html-am install-info install-info-am \
881 install-man install-pdf install-pdf-am install-pkgconfigDATA \
882 install-ps install-ps-am install-strip installcheck \
883 installcheck-am installdirs installdirs-am maintainer-clean \
884 maintainer-clean-generic mostlyclean mostlyclean-generic \
885 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
886 uninstall-am uninstall-pkgconfigDATA
887
888 .PRECIOUS: Makefile
889
890
891 ChangeLog: NEWS
892 git pull; git2cl > ChangeLog
893
894 # Tell versions [3.59,3.63) of GNU make to not export all variables.
895 # Otherwise a system limit (for SysV at least) may be exceeded.
896 .NOEXPORT:
+0
-1143
aclocal.m4 less more
0 # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
3
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
23 #
24 # This file is free software; the Free Software Foundation
25 # gives unlimited permission to copy and/or distribute it,
26 # with or without modifications, as long as this notice is preserved.
27
28 # AM_AUTOMAKE_VERSION(VERSION)
29 # ----------------------------
30 # Automake X.Y traces this macro to ensure aclocal.m4 has been
31 # generated from the m4 files accompanying Automake X.Y.
32 # (This private macro should not be called outside this file.)
33 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.16'
35 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.16.1], [],
38 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
39 ])
40
41 # _AM_AUTOCONF_VERSION(VERSION)
42 # -----------------------------
43 # aclocal traces this macro to find the Autoconf version.
44 # This is a private macro too. Using m4_define simplifies
45 # the logic in aclocal, which can simply ignore this definition.
46 m4_define([_AM_AUTOCONF_VERSION], [])
47
48 # AM_SET_CURRENT_AUTOMAKE_VERSION
49 # -------------------------------
50 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
52 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.16.1])dnl
54 m4_ifndef([AC_AUTOCONF_VERSION],
55 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
57
58 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
59
60 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
61 #
62 # This file is free software; the Free Software Foundation
63 # gives unlimited permission to copy and/or distribute it,
64 # with or without modifications, as long as this notice is preserved.
65
66 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
68 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
69 #
70 # Of course, Automake must honor this variable whenever it calls a
71 # tool from the auxiliary directory. The problem is that $srcdir (and
72 # therefore $ac_aux_dir as well) can be either absolute or relative,
73 # depending on how configure is run. This is pretty annoying, since
74 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
75 # source directory, any form will work fine, but in subdirectories a
76 # relative path needs to be adjusted first.
77 #
78 # $ac_aux_dir/missing
79 # fails when called from a subdirectory if $ac_aux_dir is relative
80 # $top_srcdir/$ac_aux_dir/missing
81 # fails if $ac_aux_dir is absolute,
82 # fails when called from a subdirectory in a VPATH build with
83 # a relative $ac_aux_dir
84 #
85 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86 # are both prefixed by $srcdir. In an in-source build this is usually
87 # harmless because $srcdir is '.', but things will broke when you
88 # start a VPATH build or use an absolute $srcdir.
89 #
90 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93 # and then we would define $MISSING as
94 # MISSING="\${SHELL} $am_aux_dir/missing"
95 # This will work as long as MISSING is not called from configure, because
96 # unfortunately $(top_srcdir) has no meaning in configure.
97 # However there are other variables, like CC, which are often used in
98 # configure, and could therefore not use this "fixed" $ac_aux_dir.
99 #
100 # Another solution, used here, is to always expand $ac_aux_dir to an
101 # absolute PATH. The drawback is that using absolute paths prevent a
102 # configured tree to be moved without reconfiguration.
103
104 AC_DEFUN([AM_AUX_DIR_EXPAND],
105 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
106 # Expand $ac_aux_dir to an absolute path.
107 am_aux_dir=`cd "$ac_aux_dir" && pwd`
108 ])
109
110 # AM_CONDITIONAL -*- Autoconf -*-
111
112 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
113 #
114 # This file is free software; the Free Software Foundation
115 # gives unlimited permission to copy and/or distribute it,
116 # with or without modifications, as long as this notice is preserved.
117
118 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
119 # -------------------------------------
120 # Define a conditional.
121 AC_DEFUN([AM_CONDITIONAL],
122 [AC_PREREQ([2.52])dnl
123 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
124 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
125 AC_SUBST([$1_TRUE])dnl
126 AC_SUBST([$1_FALSE])dnl
127 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
128 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
129 m4_define([_AM_COND_VALUE_$1], [$2])dnl
130 if $2; then
131 $1_TRUE=
132 $1_FALSE='#'
133 else
134 $1_TRUE='#'
135 $1_FALSE=
136 fi
137 AC_CONFIG_COMMANDS_PRE(
138 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
139 AC_MSG_ERROR([[conditional "$1" was never defined.
140 Usually this means the macro was only invoked conditionally.]])
141 fi])])
142
143 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
144 #
145 # This file is free software; the Free Software Foundation
146 # gives unlimited permission to copy and/or distribute it,
147 # with or without modifications, as long as this notice is preserved.
148
149
150 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
151 # written in clear, in which case automake, when reading aclocal.m4,
152 # will think it sees a *use*, and therefore will trigger all it's
153 # C support machinery. Also note that it means that autoscan, seeing
154 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
155
156
157 # _AM_DEPENDENCIES(NAME)
158 # ----------------------
159 # See how the compiler implements dependency checking.
160 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
161 # We try a few techniques and use that to set a single cache variable.
162 #
163 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
164 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
165 # dependency, and given that the user is not expected to run this macro,
166 # just rely on AC_PROG_CC.
167 AC_DEFUN([_AM_DEPENDENCIES],
168 [AC_REQUIRE([AM_SET_DEPDIR])dnl
169 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
170 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
171 AC_REQUIRE([AM_DEP_TRACK])dnl
172
173 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
174 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
175 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
176 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
177 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
178 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
179 [depcc="$$1" am_compiler_list=])
180
181 AC_CACHE_CHECK([dependency style of $depcc],
182 [am_cv_$1_dependencies_compiler_type],
183 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
184 # We make a subdir and do the tests there. Otherwise we can end up
185 # making bogus files that we don't know about and never remove. For
186 # instance it was reported that on HP-UX the gcc test will end up
187 # making a dummy file named 'D' -- because '-MD' means "put the output
188 # in D".
189 rm -rf conftest.dir
190 mkdir conftest.dir
191 # Copy depcomp to subdir because otherwise we won't find it if we're
192 # using a relative directory.
193 cp "$am_depcomp" conftest.dir
194 cd conftest.dir
195 # We will build objects and dependencies in a subdirectory because
196 # it helps to detect inapplicable dependency modes. For instance
197 # both Tru64's cc and ICC support -MD to output dependencies as a
198 # side effect of compilation, but ICC will put the dependencies in
199 # the current directory while Tru64 will put them in the object
200 # directory.
201 mkdir sub
202
203 am_cv_$1_dependencies_compiler_type=none
204 if test "$am_compiler_list" = ""; then
205 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
206 fi
207 am__universal=false
208 m4_case([$1], [CC],
209 [case " $depcc " in #(
210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
211 esac],
212 [CXX],
213 [case " $depcc " in #(
214 *\ -arch\ *\ -arch\ *) am__universal=true ;;
215 esac])
216
217 for depmode in $am_compiler_list; do
218 # Setup a source with many dependencies, because some compilers
219 # like to wrap large dependency lists on column 80 (with \), and
220 # we should not choose a depcomp mode which is confused by this.
221 #
222 # We need to recreate these files for each test, as the compiler may
223 # overwrite some of them when testing with obscure command lines.
224 # This happens at least with the AIX C compiler.
225 : > sub/conftest.c
226 for i in 1 2 3 4 5 6; do
227 echo '#include "conftst'$i'.h"' >> sub/conftest.c
228 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
229 # Solaris 10 /bin/sh.
230 echo '/* dummy */' > sub/conftst$i.h
231 done
232 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
233
234 # We check with '-c' and '-o' for the sake of the "dashmstdout"
235 # mode. It turns out that the SunPro C++ compiler does not properly
236 # handle '-M -o', and we need to detect this. Also, some Intel
237 # versions had trouble with output in subdirs.
238 am__obj=sub/conftest.${OBJEXT-o}
239 am__minus_obj="-o $am__obj"
240 case $depmode in
241 gcc)
242 # This depmode causes a compiler race in universal mode.
243 test "$am__universal" = false || continue
244 ;;
245 nosideeffect)
246 # After this tag, mechanisms are not by side-effect, so they'll
247 # only be used when explicitly requested.
248 if test "x$enable_dependency_tracking" = xyes; then
249 continue
250 else
251 break
252 fi
253 ;;
254 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
255 # This compiler won't grok '-c -o', but also, the minuso test has
256 # not run yet. These depmodes are late enough in the game, and
257 # so weak that their functioning should not be impacted.
258 am__obj=conftest.${OBJEXT-o}
259 am__minus_obj=
260 ;;
261 none) break ;;
262 esac
263 if depmode=$depmode \
264 source=sub/conftest.c object=$am__obj \
265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
266 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
267 >/dev/null 2>conftest.err &&
268 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
270 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
272 # icc doesn't choke on unknown options, it will just issue warnings
273 # or remarks (even with -Werror). So we grep stderr for any message
274 # that says an option was ignored or not supported.
275 # When given -MP, icc 7.0 and 7.1 complain thusly:
276 # icc: Command line warning: ignoring option '-M'; no argument required
277 # The diagnosis changed in icc 8.0:
278 # icc: Command line remark: option '-MP' not supported
279 if (grep 'ignoring option' conftest.err ||
280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
281 am_cv_$1_dependencies_compiler_type=$depmode
282 break
283 fi
284 fi
285 done
286
287 cd ..
288 rm -rf conftest.dir
289 else
290 am_cv_$1_dependencies_compiler_type=none
291 fi
292 ])
293 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
294 AM_CONDITIONAL([am__fastdep$1], [
295 test "x$enable_dependency_tracking" != xno \
296 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
297 ])
298
299
300 # AM_SET_DEPDIR
301 # -------------
302 # Choose a directory name for dependency files.
303 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
304 AC_DEFUN([AM_SET_DEPDIR],
305 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
306 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
307 ])
308
309
310 # AM_DEP_TRACK
311 # ------------
312 AC_DEFUN([AM_DEP_TRACK],
313 [AC_ARG_ENABLE([dependency-tracking], [dnl
314 AS_HELP_STRING(
315 [--enable-dependency-tracking],
316 [do not reject slow dependency extractors])
317 AS_HELP_STRING(
318 [--disable-dependency-tracking],
319 [speeds up one-time build])])
320 if test "x$enable_dependency_tracking" != xno; then
321 am_depcomp="$ac_aux_dir/depcomp"
322 AMDEPBACKSLASH='\'
323 am__nodep='_no'
324 fi
325 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
326 AC_SUBST([AMDEPBACKSLASH])dnl
327 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
328 AC_SUBST([am__nodep])dnl
329 _AM_SUBST_NOTMAKE([am__nodep])dnl
330 ])
331
332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333
334 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
335 #
336 # This file is free software; the Free Software Foundation
337 # gives unlimited permission to copy and/or distribute it,
338 # with or without modifications, as long as this notice is preserved.
339
340 # _AM_OUTPUT_DEPENDENCY_COMMANDS
341 # ------------------------------
342 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
343 [{
344 # Older Autoconf quotes --file arguments for eval, but not when files
345 # are listed without --file. Let's play safe and only enable the eval
346 # if we detect the quoting.
347 # TODO: see whether this extra hack can be removed once we start
348 # requiring Autoconf 2.70 or later.
349 AS_CASE([$CONFIG_FILES],
350 [*\'*], [eval set x "$CONFIG_FILES"],
351 [*], [set x $CONFIG_FILES])
352 shift
353 # Used to flag and report bootstrapping failures.
354 am_rc=0
355 for am_mf
356 do
357 # Strip MF so we end up with the name of the file.
358 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
359 # Check whether this is an Automake generated Makefile which includes
360 # dependency-tracking related rules and includes.
361 # Grep'ing the whole file directly is not great: AIX grep has a line
362 # limit of 2048, but all sed's we know have understand at least 4000.
363 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
364 || continue
365 am_dirpart=`AS_DIRNAME(["$am_mf"])`
366 am_filepart=`AS_BASENAME(["$am_mf"])`
367 AM_RUN_LOG([cd "$am_dirpart" \
368 && sed -e '/# am--include-marker/d' "$am_filepart" \
369 | $MAKE -f - am--depfiles]) || am_rc=$?
370 done
371 if test $am_rc -ne 0; then
372 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
373 for automatic dependency tracking. Try re-running configure with the
374 '--disable-dependency-tracking' option to at least be able to build
375 the package (albeit without support for automatic dependency tracking).])
376 fi
377 AS_UNSET([am_dirpart])
378 AS_UNSET([am_filepart])
379 AS_UNSET([am_mf])
380 AS_UNSET([am_rc])
381 rm -f conftest-deps.mk
382 }
383 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
384
385
386 # AM_OUTPUT_DEPENDENCY_COMMANDS
387 # -----------------------------
388 # This macro should only be invoked once -- use via AC_REQUIRE.
389 #
390 # This code is only required when automatic dependency tracking is enabled.
391 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
392 # order to bootstrap the dependency handling code.
393 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
394 [AC_CONFIG_COMMANDS([depfiles],
395 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
396 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
397
398 # Do all the work for Automake. -*- Autoconf -*-
399
400 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
401 #
402 # This file is free software; the Free Software Foundation
403 # gives unlimited permission to copy and/or distribute it,
404 # with or without modifications, as long as this notice is preserved.
405
406 # This macro actually does too much. Some checks are only needed if
407 # your package does certain things. But this isn't really a big deal.
408
409 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
410 m4_define([AC_PROG_CC],
411 m4_defn([AC_PROG_CC])
412 [_AM_PROG_CC_C_O
413 ])
414
415 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
416 # AM_INIT_AUTOMAKE([OPTIONS])
417 # -----------------------------------------------
418 # The call with PACKAGE and VERSION arguments is the old style
419 # call (pre autoconf-2.50), which is being phased out. PACKAGE
420 # and VERSION should now be passed to AC_INIT and removed from
421 # the call to AM_INIT_AUTOMAKE.
422 # We support both call styles for the transition. After
423 # the next Automake release, Autoconf can make the AC_INIT
424 # arguments mandatory, and then we can depend on a new Autoconf
425 # release and drop the old call support.
426 AC_DEFUN([AM_INIT_AUTOMAKE],
427 [AC_PREREQ([2.65])dnl
428 dnl Autoconf wants to disallow AM_ names. We explicitly allow
429 dnl the ones we care about.
430 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
431 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
432 AC_REQUIRE([AC_PROG_INSTALL])dnl
433 if test "`cd $srcdir && pwd`" != "`pwd`"; then
434 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
435 # is not polluted with repeated "-I."
436 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
437 # test to see if srcdir already configured
438 if test -f $srcdir/config.status; then
439 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
440 fi
441 fi
442
443 # test whether we have cygpath
444 if test -z "$CYGPATH_W"; then
445 if (cygpath --version) >/dev/null 2>/dev/null; then
446 CYGPATH_W='cygpath -w'
447 else
448 CYGPATH_W=echo
449 fi
450 fi
451 AC_SUBST([CYGPATH_W])
452
453 # Define the identity of the package.
454 dnl Distinguish between old-style and new-style calls.
455 m4_ifval([$2],
456 [AC_DIAGNOSE([obsolete],
457 [$0: two- and three-arguments forms are deprecated.])
458 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
459 AC_SUBST([PACKAGE], [$1])dnl
460 AC_SUBST([VERSION], [$2])],
461 [_AM_SET_OPTIONS([$1])dnl
462 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
463 m4_if(
464 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
465 [ok:ok],,
466 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
467 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
468 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
469
470 _AM_IF_OPTION([no-define],,
471 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
472 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
473
474 # Some tools Automake needs.
475 AC_REQUIRE([AM_SANITY_CHECK])dnl
476 AC_REQUIRE([AC_ARG_PROGRAM])dnl
477 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
478 AM_MISSING_PROG([AUTOCONF], [autoconf])
479 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
480 AM_MISSING_PROG([AUTOHEADER], [autoheader])
481 AM_MISSING_PROG([MAKEINFO], [makeinfo])
482 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
483 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
484 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
485 # For better backward compatibility. To be removed once Automake 1.9.x
486 # dies out for good. For more background, see:
487 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
488 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
489 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
490 # We need awk for the "check" target (and possibly the TAP driver). The
491 # system "awk" is bad on some platforms.
492 AC_REQUIRE([AC_PROG_AWK])dnl
493 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
494 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
495 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
496 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
497 [_AM_PROG_TAR([v7])])])
498 _AM_IF_OPTION([no-dependencies],,
499 [AC_PROVIDE_IFELSE([AC_PROG_CC],
500 [_AM_DEPENDENCIES([CC])],
501 [m4_define([AC_PROG_CC],
502 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
503 AC_PROVIDE_IFELSE([AC_PROG_CXX],
504 [_AM_DEPENDENCIES([CXX])],
505 [m4_define([AC_PROG_CXX],
506 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
507 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
508 [_AM_DEPENDENCIES([OBJC])],
509 [m4_define([AC_PROG_OBJC],
510 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
511 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
512 [_AM_DEPENDENCIES([OBJCXX])],
513 [m4_define([AC_PROG_OBJCXX],
514 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
515 ])
516 AC_REQUIRE([AM_SILENT_RULES])dnl
517 dnl The testsuite driver may need to know about EXEEXT, so add the
518 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
519 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
520 AC_CONFIG_COMMANDS_PRE(dnl
521 [m4_provide_if([_AM_COMPILER_EXEEXT],
522 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
523
524 # POSIX will say in a future version that running "rm -f" with no argument
525 # is OK; and we want to be able to make that assumption in our Makefile
526 # recipes. So use an aggressive probe to check that the usage we want is
527 # actually supported "in the wild" to an acceptable degree.
528 # See automake bug#10828.
529 # To make any issue more visible, cause the running configure to be aborted
530 # by default if the 'rm' program in use doesn't match our expectations; the
531 # user can still override this though.
532 if rm -f && rm -fr && rm -rf; then : OK; else
533 cat >&2 <<'END'
534 Oops!
535
536 Your 'rm' program seems unable to run without file operands specified
537 on the command line, even when the '-f' option is present. This is contrary
538 to the behaviour of most rm programs out there, and not conforming with
539 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
540
541 Please tell bug-automake@gnu.org about your system, including the value
542 of your $PATH and any error possibly output before this message. This
543 can help us improve future automake versions.
544
545 END
546 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
547 echo 'Configuration will proceed anyway, since you have set the' >&2
548 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
549 echo >&2
550 else
551 cat >&2 <<'END'
552 Aborting the configuration process, to ensure you take notice of the issue.
553
554 You can download and install GNU coreutils to get an 'rm' implementation
555 that behaves properly: <https://www.gnu.org/software/coreutils/>.
556
557 If you want to complete the configuration process using your problematic
558 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
559 to "yes", and re-run configure.
560
561 END
562 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
563 fi
564 fi
565 dnl The trailing newline in this macro's definition is deliberate, for
566 dnl backward compatibility and to allow trailing 'dnl'-style comments
567 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
568 ])
569
570 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
571 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
572 dnl mangled by Autoconf and run in a shell conditional statement.
573 m4_define([_AC_COMPILER_EXEEXT],
574 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
575
576 # When config.status generates a header, we must update the stamp-h file.
577 # This file resides in the same directory as the config header
578 # that is generated. The stamp files are numbered to have different names.
579
580 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
581 # loop where config.status creates the headers, so we can generate
582 # our stamp files there.
583 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
584 [# Compute $1's index in $config_headers.
585 _am_arg=$1
586 _am_stamp_count=1
587 for _am_header in $config_headers :; do
588 case $_am_header in
589 $_am_arg | $_am_arg:* )
590 break ;;
591 * )
592 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
593 esac
594 done
595 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
596
597 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
598 #
599 # This file is free software; the Free Software Foundation
600 # gives unlimited permission to copy and/or distribute it,
601 # with or without modifications, as long as this notice is preserved.
602
603 # AM_PROG_INSTALL_SH
604 # ------------------
605 # Define $install_sh.
606 AC_DEFUN([AM_PROG_INSTALL_SH],
607 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
608 if test x"${install_sh+set}" != xset; then
609 case $am_aux_dir in
610 *\ * | *\ *)
611 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
612 *)
613 install_sh="\${SHELL} $am_aux_dir/install-sh"
614 esac
615 fi
616 AC_SUBST([install_sh])])
617
618 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
619 #
620 # This file is free software; the Free Software Foundation
621 # gives unlimited permission to copy and/or distribute it,
622 # with or without modifications, as long as this notice is preserved.
623
624 # Check whether the underlying file-system supports filenames
625 # with a leading dot. For instance MS-DOS doesn't.
626 AC_DEFUN([AM_SET_LEADING_DOT],
627 [rm -rf .tst 2>/dev/null
628 mkdir .tst 2>/dev/null
629 if test -d .tst; then
630 am__leading_dot=.
631 else
632 am__leading_dot=_
633 fi
634 rmdir .tst 2>/dev/null
635 AC_SUBST([am__leading_dot])])
636
637 # Check to see how 'make' treats includes. -*- Autoconf -*-
638
639 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
640 #
641 # This file is free software; the Free Software Foundation
642 # gives unlimited permission to copy and/or distribute it,
643 # with or without modifications, as long as this notice is preserved.
644
645 # AM_MAKE_INCLUDE()
646 # -----------------
647 # Check whether make has an 'include' directive that can support all
648 # the idioms we need for our automatic dependency tracking code.
649 AC_DEFUN([AM_MAKE_INCLUDE],
650 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
651 cat > confinc.mk << 'END'
652 am__doit:
653 @echo this is the am__doit target >confinc.out
654 .PHONY: am__doit
655 END
656 am__include="#"
657 am__quote=
658 # BSD make does it like this.
659 echo '.include "confinc.mk" # ignored' > confmf.BSD
660 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
661 echo 'include confinc.mk # ignored' > confmf.GNU
662 _am_result=no
663 for s in GNU BSD; do
664 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
665 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
666 ['0:this is the am__doit target'],
667 [AS_CASE([$s],
668 [BSD], [am__include='.include' am__quote='"'],
669 [am__include='include' am__quote=''])])
670 if test "$am__include" != "#"; then
671 _am_result="yes ($s style)"
672 break
673 fi
674 done
675 rm -f confinc.* confmf.*
676 AC_MSG_RESULT([${_am_result}])
677 AC_SUBST([am__include])])
678 AC_SUBST([am__quote])])
679
680 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
681
682 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
683 #
684 # This file is free software; the Free Software Foundation
685 # gives unlimited permission to copy and/or distribute it,
686 # with or without modifications, as long as this notice is preserved.
687
688 # AM_MISSING_PROG(NAME, PROGRAM)
689 # ------------------------------
690 AC_DEFUN([AM_MISSING_PROG],
691 [AC_REQUIRE([AM_MISSING_HAS_RUN])
692 $1=${$1-"${am_missing_run}$2"}
693 AC_SUBST($1)])
694
695 # AM_MISSING_HAS_RUN
696 # ------------------
697 # Define MISSING if not defined so far and test if it is modern enough.
698 # If it is, set am_missing_run to use it, otherwise, to nothing.
699 AC_DEFUN([AM_MISSING_HAS_RUN],
700 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
701 AC_REQUIRE_AUX_FILE([missing])dnl
702 if test x"${MISSING+set}" != xset; then
703 case $am_aux_dir in
704 *\ * | *\ *)
705 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
706 *)
707 MISSING="\${SHELL} $am_aux_dir/missing" ;;
708 esac
709 fi
710 # Use eval to expand $SHELL
711 if eval "$MISSING --is-lightweight"; then
712 am_missing_run="$MISSING "
713 else
714 am_missing_run=
715 AC_MSG_WARN(['missing' script is too old or missing])
716 fi
717 ])
718
719 # Helper functions for option handling. -*- Autoconf -*-
720
721 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
722 #
723 # This file is free software; the Free Software Foundation
724 # gives unlimited permission to copy and/or distribute it,
725 # with or without modifications, as long as this notice is preserved.
726
727 # _AM_MANGLE_OPTION(NAME)
728 # -----------------------
729 AC_DEFUN([_AM_MANGLE_OPTION],
730 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
731
732 # _AM_SET_OPTION(NAME)
733 # --------------------
734 # Set option NAME. Presently that only means defining a flag for this option.
735 AC_DEFUN([_AM_SET_OPTION],
736 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
737
738 # _AM_SET_OPTIONS(OPTIONS)
739 # ------------------------
740 # OPTIONS is a space-separated list of Automake options.
741 AC_DEFUN([_AM_SET_OPTIONS],
742 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
743
744 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
745 # -------------------------------------------
746 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
747 AC_DEFUN([_AM_IF_OPTION],
748 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
749
750 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
751 #
752 # This file is free software; the Free Software Foundation
753 # gives unlimited permission to copy and/or distribute it,
754 # with or without modifications, as long as this notice is preserved.
755
756 # _AM_PROG_CC_C_O
757 # ---------------
758 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
759 # to automatically call this.
760 AC_DEFUN([_AM_PROG_CC_C_O],
761 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
762 AC_REQUIRE_AUX_FILE([compile])dnl
763 AC_LANG_PUSH([C])dnl
764 AC_CACHE_CHECK(
765 [whether $CC understands -c and -o together],
766 [am_cv_prog_cc_c_o],
767 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
768 # Make sure it works both with $CC and with simple cc.
769 # Following AC_PROG_CC_C_O, we do the test twice because some
770 # compilers refuse to overwrite an existing .o file with -o,
771 # though they will create one.
772 am_cv_prog_cc_c_o=yes
773 for am_i in 1 2; do
774 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
775 && test -f conftest2.$ac_objext; then
776 : OK
777 else
778 am_cv_prog_cc_c_o=no
779 break
780 fi
781 done
782 rm -f core conftest*
783 unset am_i])
784 if test "$am_cv_prog_cc_c_o" != yes; then
785 # Losing compiler, so override with the script.
786 # FIXME: It is wrong to rewrite CC.
787 # But if we don't then we get into trouble of one sort or another.
788 # A longer-term fix would be to have automake use am__CC in this case,
789 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
790 CC="$am_aux_dir/compile $CC"
791 fi
792 AC_LANG_POP([C])])
793
794 # For backward compatibility.
795 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
796
797 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
798 #
799 # This file is free software; the Free Software Foundation
800 # gives unlimited permission to copy and/or distribute it,
801 # with or without modifications, as long as this notice is preserved.
802
803 # AM_RUN_LOG(COMMAND)
804 # -------------------
805 # Run COMMAND, save the exit status in ac_status, and log it.
806 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
807 AC_DEFUN([AM_RUN_LOG],
808 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
809 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
810 ac_status=$?
811 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
812 (exit $ac_status); }])
813
814 # Check to make sure that the build environment is sane. -*- Autoconf -*-
815
816 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
817 #
818 # This file is free software; the Free Software Foundation
819 # gives unlimited permission to copy and/or distribute it,
820 # with or without modifications, as long as this notice is preserved.
821
822 # AM_SANITY_CHECK
823 # ---------------
824 AC_DEFUN([AM_SANITY_CHECK],
825 [AC_MSG_CHECKING([whether build environment is sane])
826 # Reject unsafe characters in $srcdir or the absolute working directory
827 # name. Accept space and tab only in the latter.
828 am_lf='
829 '
830 case `pwd` in
831 *[[\\\"\#\$\&\'\`$am_lf]]*)
832 AC_MSG_ERROR([unsafe absolute working directory name]);;
833 esac
834 case $srcdir in
835 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
836 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
837 esac
838
839 # Do 'set' in a subshell so we don't clobber the current shell's
840 # arguments. Must try -L first in case configure is actually a
841 # symlink; some systems play weird games with the mod time of symlinks
842 # (eg FreeBSD returns the mod time of the symlink's containing
843 # directory).
844 if (
845 am_has_slept=no
846 for am_try in 1 2; do
847 echo "timestamp, slept: $am_has_slept" > conftest.file
848 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
849 if test "$[*]" = "X"; then
850 # -L didn't work.
851 set X `ls -t "$srcdir/configure" conftest.file`
852 fi
853 if test "$[*]" != "X $srcdir/configure conftest.file" \
854 && test "$[*]" != "X conftest.file $srcdir/configure"; then
855
856 # If neither matched, then we have a broken ls. This can happen
857 # if, for instance, CONFIG_SHELL is bash and it inherits a
858 # broken ls alias from the environment. This has actually
859 # happened. Such a system could not be considered "sane".
860 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
861 alias in your environment])
862 fi
863 if test "$[2]" = conftest.file || test $am_try -eq 2; then
864 break
865 fi
866 # Just in case.
867 sleep 1
868 am_has_slept=yes
869 done
870 test "$[2]" = conftest.file
871 )
872 then
873 # Ok.
874 :
875 else
876 AC_MSG_ERROR([newly created file is older than distributed files!
877 Check your system clock])
878 fi
879 AC_MSG_RESULT([yes])
880 # If we didn't sleep, we still need to ensure time stamps of config.status and
881 # generated files are strictly newer.
882 am_sleep_pid=
883 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
884 ( sleep 1 ) &
885 am_sleep_pid=$!
886 fi
887 AC_CONFIG_COMMANDS_PRE(
888 [AC_MSG_CHECKING([that generated files are newer than configure])
889 if test -n "$am_sleep_pid"; then
890 # Hide warnings about reused PIDs.
891 wait $am_sleep_pid 2>/dev/null
892 fi
893 AC_MSG_RESULT([done])])
894 rm -f conftest.file
895 ])
896
897 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
898 #
899 # This file is free software; the Free Software Foundation
900 # gives unlimited permission to copy and/or distribute it,
901 # with or without modifications, as long as this notice is preserved.
902
903 # AM_SILENT_RULES([DEFAULT])
904 # --------------------------
905 # Enable less verbose build rules; with the default set to DEFAULT
906 # ("yes" being less verbose, "no" or empty being verbose).
907 AC_DEFUN([AM_SILENT_RULES],
908 [AC_ARG_ENABLE([silent-rules], [dnl
909 AS_HELP_STRING(
910 [--enable-silent-rules],
911 [less verbose build output (undo: "make V=1")])
912 AS_HELP_STRING(
913 [--disable-silent-rules],
914 [verbose build output (undo: "make V=0")])dnl
915 ])
916 case $enable_silent_rules in @%:@ (((
917 yes) AM_DEFAULT_VERBOSITY=0;;
918 no) AM_DEFAULT_VERBOSITY=1;;
919 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
920 esac
921 dnl
922 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
923 dnl do not support nested variable expansions.
924 dnl See automake bug#9928 and bug#10237.
925 am_make=${MAKE-make}
926 AC_CACHE_CHECK([whether $am_make supports nested variables],
927 [am_cv_make_support_nested_variables],
928 [if AS_ECHO([['TRUE=$(BAR$(V))
929 BAR0=false
930 BAR1=true
931 V=1
932 am__doit:
933 @$(TRUE)
934 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
935 am_cv_make_support_nested_variables=yes
936 else
937 am_cv_make_support_nested_variables=no
938 fi])
939 if test $am_cv_make_support_nested_variables = yes; then
940 dnl Using '$V' instead of '$(V)' breaks IRIX make.
941 AM_V='$(V)'
942 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
943 else
944 AM_V=$AM_DEFAULT_VERBOSITY
945 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
946 fi
947 AC_SUBST([AM_V])dnl
948 AM_SUBST_NOTMAKE([AM_V])dnl
949 AC_SUBST([AM_DEFAULT_V])dnl
950 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
951 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
952 AM_BACKSLASH='\'
953 AC_SUBST([AM_BACKSLASH])dnl
954 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
955 ])
956
957 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
958 #
959 # This file is free software; the Free Software Foundation
960 # gives unlimited permission to copy and/or distribute it,
961 # with or without modifications, as long as this notice is preserved.
962
963 # AM_PROG_INSTALL_STRIP
964 # ---------------------
965 # One issue with vendor 'install' (even GNU) is that you can't
966 # specify the program used to strip binaries. This is especially
967 # annoying in cross-compiling environments, where the build's strip
968 # is unlikely to handle the host's binaries.
969 # Fortunately install-sh will honor a STRIPPROG variable, so we
970 # always use install-sh in "make install-strip", and initialize
971 # STRIPPROG with the value of the STRIP variable (set by the user).
972 AC_DEFUN([AM_PROG_INSTALL_STRIP],
973 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
974 # Installed binaries are usually stripped using 'strip' when the user
975 # run "make install-strip". However 'strip' might not be the right
976 # tool to use in cross-compilation environments, therefore Automake
977 # will honor the 'STRIP' environment variable to overrule this program.
978 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
979 if test "$cross_compiling" != no; then
980 AC_CHECK_TOOL([STRIP], [strip], :)
981 fi
982 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
983 AC_SUBST([INSTALL_STRIP_PROGRAM])])
984
985 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
986 #
987 # This file is free software; the Free Software Foundation
988 # gives unlimited permission to copy and/or distribute it,
989 # with or without modifications, as long as this notice is preserved.
990
991 # _AM_SUBST_NOTMAKE(VARIABLE)
992 # ---------------------------
993 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
994 # This macro is traced by Automake.
995 AC_DEFUN([_AM_SUBST_NOTMAKE])
996
997 # AM_SUBST_NOTMAKE(VARIABLE)
998 # --------------------------
999 # Public sister of _AM_SUBST_NOTMAKE.
1000 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1001
1002 # Check how to create a tarball. -*- Autoconf -*-
1003
1004 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
1005 #
1006 # This file is free software; the Free Software Foundation
1007 # gives unlimited permission to copy and/or distribute it,
1008 # with or without modifications, as long as this notice is preserved.
1009
1010 # _AM_PROG_TAR(FORMAT)
1011 # --------------------
1012 # Check how to create a tarball in format FORMAT.
1013 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1014 #
1015 # Substitute a variable $(am__tar) that is a command
1016 # writing to stdout a FORMAT-tarball containing the directory
1017 # $tardir.
1018 # tardir=directory && $(am__tar) > result.tar
1019 #
1020 # Substitute a variable $(am__untar) that extract such
1021 # a tarball read from stdin.
1022 # $(am__untar) < result.tar
1023 #
1024 AC_DEFUN([_AM_PROG_TAR],
1025 [# Always define AMTAR for backward compatibility. Yes, it's still used
1026 # in the wild :-( We should find a proper way to deprecate it ...
1027 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1028
1029 # We'll loop over all known methods to create a tar archive until one works.
1030 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1031
1032 m4_if([$1], [v7],
1033 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1034
1035 [m4_case([$1],
1036 [ustar],
1037 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1038 # There is notably a 21 bits limit for the UID and the GID. In fact,
1039 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1040 # and bug#13588).
1041 am_max_uid=2097151 # 2^21 - 1
1042 am_max_gid=$am_max_uid
1043 # The $UID and $GID variables are not portable, so we need to resort
1044 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1045 # below are definitely unexpected, so allow the users to see them
1046 # (that is, avoid stderr redirection).
1047 am_uid=`id -u || echo unknown`
1048 am_gid=`id -g || echo unknown`
1049 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1050 if test $am_uid -le $am_max_uid; then
1051 AC_MSG_RESULT([yes])
1052 else
1053 AC_MSG_RESULT([no])
1054 _am_tools=none
1055 fi
1056 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1057 if test $am_gid -le $am_max_gid; then
1058 AC_MSG_RESULT([yes])
1059 else
1060 AC_MSG_RESULT([no])
1061 _am_tools=none
1062 fi],
1063
1064 [pax],
1065 [],
1066
1067 [m4_fatal([Unknown tar format])])
1068
1069 AC_MSG_CHECKING([how to create a $1 tar archive])
1070
1071 # Go ahead even if we have the value already cached. We do so because we
1072 # need to set the values for the 'am__tar' and 'am__untar' variables.
1073 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1074
1075 for _am_tool in $_am_tools; do
1076 case $_am_tool in
1077 gnutar)
1078 for _am_tar in tar gnutar gtar; do
1079 AM_RUN_LOG([$_am_tar --version]) && break
1080 done
1081 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1082 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1083 am__untar="$_am_tar -xf -"
1084 ;;
1085 plaintar)
1086 # Must skip GNU tar: if it does not support --format= it doesn't create
1087 # ustar tarball either.
1088 (tar --version) >/dev/null 2>&1 && continue
1089 am__tar='tar chf - "$$tardir"'
1090 am__tar_='tar chf - "$tardir"'
1091 am__untar='tar xf -'
1092 ;;
1093 pax)
1094 am__tar='pax -L -x $1 -w "$$tardir"'
1095 am__tar_='pax -L -x $1 -w "$tardir"'
1096 am__untar='pax -r'
1097 ;;
1098 cpio)
1099 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1100 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1101 am__untar='cpio -i -H $1 -d'
1102 ;;
1103 none)
1104 am__tar=false
1105 am__tar_=false
1106 am__untar=false
1107 ;;
1108 esac
1109
1110 # If the value was cached, stop now. We just wanted to have am__tar
1111 # and am__untar set.
1112 test -n "${am_cv_prog_tar_$1}" && break
1113
1114 # tar/untar a dummy directory, and stop if the command works.
1115 rm -rf conftest.dir
1116 mkdir conftest.dir
1117 echo GrepMe > conftest.dir/file
1118 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1119 rm -rf conftest.dir
1120 if test -s conftest.tar; then
1121 AM_RUN_LOG([$am__untar <conftest.tar])
1122 AM_RUN_LOG([cat conftest.dir/file])
1123 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1124 fi
1125 done
1126 rm -rf conftest.dir
1127
1128 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1129 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1130
1131 AC_SUBST([am__tar])
1132 AC_SUBST([am__untar])
1133 ]) # _AM_PROG_TAR
1134
1135 m4_include([m4/ac_osx_pkg.m4])
1136 m4_include([m4/ax_pthread.m4])
1137 m4_include([m4/libtool.m4])
1138 m4_include([m4/ltoptions.m4])
1139 m4_include([m4/ltsugar.m4])
1140 m4_include([m4/ltversion.m4])
1141 m4_include([m4/lt~obsolete.m4])
1142 m4_include([m4/pkg.m4])
+0
-348
compile less more
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
258 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
259 func_cl_wrapper "$@" # Doesn't return...
260 ;;
261 esac
262
263 ofile=
264 cfile=
265
266 for arg
267 do
268 if test -n "$eat"; then
269 eat=
270 else
271 case $1 in
272 -o)
273 # configure might choose to run compile as 'compile cc -o foo foo.c'.
274 # So we strip '-o arg' only if arg is an object.
275 eat=1
276 case $2 in
277 *.o | *.obj)
278 ofile=$2
279 ;;
280 *)
281 set x "$@" -o "$2"
282 shift
283 ;;
284 esac
285 ;;
286 *.c)
287 cfile=$1
288 set x "$@" "$1"
289 shift
290 ;;
291 *)
292 set x "$@" "$1"
293 shift
294 ;;
295 esac
296 fi
297 shift
298 done
299
300 if test -z "$ofile" || test -z "$cfile"; then
301 # If no '-o' option was seen then we might have been invoked from a
302 # pattern rule where we don't need one. That is ok -- this is a
303 # normal compilation that the losing compiler can handle. If no
304 # '.c' file was seen then we are probably linking. That is also
305 # ok.
306 exec "$@"
307 fi
308
309 # Name of file we expect compiler to create.
310 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
311
312 # Create the lock directory.
313 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
314 # that we are using for the .o file. Also, base the name on the expected
315 # object file name, since that is what matters with a parallel build.
316 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
317 while true; do
318 if mkdir "$lockdir" >/dev/null 2>&1; then
319 break
320 fi
321 sleep 1
322 done
323 # FIXME: race condition here if user kills between mkdir and trap.
324 trap "rmdir '$lockdir'; exit 1" 1 2 15
325
326 # Run the compile.
327 "$@"
328 ret=$?
329
330 if test -f "$cofile"; then
331 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
332 elif test -f "${cofile}bj"; then
333 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
334 fi
335
336 rmdir "$lockdir"
337 exit $ret
338
339 # Local Variables:
340 # mode: shell-script
341 # sh-indentation: 2
342 # eval: (add-hook 'before-save-hook 'time-stamp)
343 # time-stamp-start: "scriptversion="
344 # time-stamp-format: "%:y-%02m-%02d.%02H"
345 # time-stamp-time-zone: "UTC0"
346 # time-stamp-end: "; # UTC"
347 # End:
+0
-19888
configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libfolia 2.4.
3 #
4 # Report bugs to <lamasoftware@science.ru.nl>.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
208 test \$(( 1 + 1 )) = 2 || exit 1"
209 if (eval "$as_required") 2>/dev/null; then :
210 as_have_required=yes
211 else
212 as_have_required=no
213 fi
214 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215
216 else
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 as_found=false
219 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 do
221 IFS=$as_save_IFS
222 test -z "$as_dir" && as_dir=.
223 as_found=:
224 case $as_dir in #(
225 /*)
226 for as_base in sh bash ksh sh5; do
227 # Try only shells that exist, to save several forks.
228 as_shell=$as_dir/$as_base
229 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
230 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 CONFIG_SHELL=$as_shell as_have_required=yes
232 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 break 2
234 fi
235 fi
236 done;;
237 esac
238 as_found=false
239 done
240 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
241 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi; }
244 IFS=$as_save_IFS
245
246
247 if test "x$CONFIG_SHELL" != x; then :
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
267 fi
268
269 if test x$as_have_required = xno; then :
270 $as_echo "$0: This script requires a shell more modern than all"
271 $as_echo "$0: the shells that I found on your system."
272 if test x${ZSH_VERSION+set} = xset ; then
273 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 $as_echo "$0: Please tell bug-autoconf@gnu.org and
277 $0: lamasoftware@science.ru.nl about your system, including
278 $0: any error possibly output before this message. Then
279 $0: install a modern shell, or manually run the script
280 $0: under such a shell if you do have one."
281 fi
282 exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405 else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508 }
509
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519 *)
520 ECHO_N='-n';;
521 esac
522
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
529 fi
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
543 fi
544 else
545 as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577 #
578 # Initializations.
579 #
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='libfolia'
591 PACKAGE_TARNAME='libfolia'
592 PACKAGE_VERSION='2.4'
593 PACKAGE_STRING='libfolia 2.4'
594 PACKAGE_BUGREPORT='lamasoftware@science.ru.nl'
595 PACKAGE_URL=''
596
597 ac_unique_file="configure.ac"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 ICU_LIBS
639 ICU_CFLAGS
640 ticcutils_LIBS
641 ticcutils_CFLAGS
642 XML2_LIBS
643 XML2_CFLAGS
644 PKG_CONFIG_LIBDIR
645 PKG_CONFIG_PATH
646 PKG_CONFIG
647 PTHREAD_CFLAGS
648 PTHREAD_LIBS
649 PTHREAD_CC
650 ax_pthread_config
651 OPENMP_CXXFLAGS
652 CXXCPP
653 CPP
654 LT_SYS_LIBRARY_PATH
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 MANIFEST_TOOL
661 RANLIB
662 ac_ct_AR
663 AR
664 DLLTOOL
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LD
671 FGREP
672 EGREP
673 GREP
674 SED
675 am__fastdepCC_FALSE
676 am__fastdepCC_TRUE
677 CCDEPMODE
678 ac_ct_CC
679 CFLAGS
680 CC
681 host_os
682 host_vendor
683 host_cpu
684 host
685 build_os
686 build_vendor
687 build_cpu
688 build
689 LIBTOOL
690 am__fastdepCXX_FALSE
691 am__fastdepCXX_TRUE
692 CXXDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CXX
702 CPPFLAGS
703 LDFLAGS
704 CXXFLAGS
705 CXX
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 runstatedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL
772 am__quote'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_silent_rules
777 enable_dependency_tracking
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 with_aix_soname
783 with_gnu_ld
784 with_sysroot
785 enable_libtool_lock
786 enable_openmp
787 '
788 ac_precious_vars='build_alias
789 host_alias
790 target_alias
791 CXX
792 CXXFLAGS
793 LDFLAGS
794 LIBS
795 CPPFLAGS
796 CCC
797 CC
798 CFLAGS
799 LT_SYS_LIBRARY_PATH
800 CPP
801 CXXCPP
802 PKG_CONFIG
803 PKG_CONFIG_PATH
804 PKG_CONFIG_LIBDIR
805 XML2_CFLAGS
806 XML2_LIBS
807 ticcutils_CFLAGS
808 ticcutils_LIBS
809 ICU_CFLAGS
810 ICU_LIBS'
811
812
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
834
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 runstatedir='${localstatedir}/run'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
854 htmldir='${docdir}'
855 dvidir='${docdir}'
856 pdfdir='${docdir}'
857 psdir='${docdir}'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
861
862 ac_prev=
863 ac_dashdash=
864 for ac_option
865 do
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
869 ac_prev=
870 continue
871 fi
872
873 case $ac_option in
874 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 *=) ac_optarg= ;;
876 *) ac_optarg=yes ;;
877 esac
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -runstatedir | --runstatedir | --runstatedi | --runstated \
1103 | --runstate | --runstat | --runsta | --runst | --runs \
1104 | --run | --ru | --r)
1105 ac_prev=runstatedir ;;
1106 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1107 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1108 | --run=* | --ru=* | --r=*)
1109 runstatedir=$ac_optarg ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir runstatedir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1264
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1271
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures libfolia 2.4 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/libfolia]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1415 _ACEOF
1416
1417 cat <<\_ACEOF
1418
1419 Program names:
1420 --program-prefix=PREFIX prepend PREFIX to installed program names
1421 --program-suffix=SUFFIX append SUFFIX to installed program names
1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423
1424 System types:
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 _ACEOF
1428 fi
1429
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of libfolia 2.4:";;
1433 esac
1434 cat <<\_ACEOF
1435
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --enable-dependency-tracking
1443 do not reject slow dependency extractors
1444 --disable-dependency-tracking
1445 speeds up one-time build
1446 --enable-shared[=PKGS] build shared libraries [default=yes]
1447 --enable-static[=PKGS] build static libraries [default=yes]
1448 --enable-fast-install[=PKGS]
1449 optimize for fast installation [default=yes]
1450 --disable-libtool-lock avoid locking (might break parallel builds)
1451 --disable-openmp do not use OpenMP
1452
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1457 both]
1458 --with-aix-soname=aix|svr4|both
1459 shared library versioning (aka "SONAME") variant to
1460 provide on AIX, [default=aix].
1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1463 compiler's sysroot if not specified).
1464
1465 Some influential environment variables:
1466 CXX C++ compiler command
1467 CXXFLAGS C++ compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LT_SYS_LIBRARY_PATH
1476 User-defined run-time library search path.
1477 CPP C preprocessor
1478 CXXCPP C++ preprocessor
1479 PKG_CONFIG path to pkg-config utility
1480 PKG_CONFIG_PATH
1481 directories to add to pkg-config's search path
1482 PKG_CONFIG_LIBDIR
1483 path overriding pkg-config's built-in search path
1484 XML2_CFLAGS C compiler flags for XML2, overriding pkg-config
1485 XML2_LIBS linker flags for XML2, overriding pkg-config
1486 ticcutils_CFLAGS
1487 C compiler flags for ticcutils, overriding pkg-config
1488 ticcutils_LIBS
1489 linker flags for ticcutils, overriding pkg-config
1490 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1491 ICU_LIBS linker flags for ICU, overriding pkg-config
1492
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1495
1496 Report bugs to <lamasoftware@science.ru.nl>.
1497 _ACEOF
1498 ac_status=$?
1499 fi
1500
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
1507 ac_builddir=.
1508
1509 case "$ac_dir" in
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519 esac
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1524
1525 case $srcdir in
1526 .) # We are building in place.
1527 ac_srcdir=.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538 esac
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1549 else
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1553 done
1554 fi
1555
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1558 cat <<\_ACEOF
1559 libfolia configure 2.4
1560 generated by GNU Autoconf 2.69
1561
1562 Copyright (C) 2012 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1565 _ACEOF
1566 exit
1567 fi
1568
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1572
1573 # ac_fn_cxx_try_compile LINENO
1574 # ----------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_cxx_try_compile ()
1577 {
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581 case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584 esac
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_cxx_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605 fi
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
1608
1609 } # ac_fn_cxx_try_compile
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_link
1694
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713 eval "$3=yes"
1714 else
1715 eval "$3=no"
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 fi
1719 eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724 } # ac_fn_c_check_header_compile
1725
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_cpp ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } > conftest.i && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_cpp
1762
1763 # ac_fn_c_try_run LINENO
1764 # ----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766 # that executables *can* be run.
1767 ac_fn_c_try_run ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=$ac_status
1798 fi
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_run
1804
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1821
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1832
1833 #undef $2
1834
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1848
1849 int
1850 main ()
1851 {
1852 return $2 ();
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_func
1871
1872 # ac_fn_cxx_try_cpp LINENO
1873 # ------------------------
1874 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_cxx_try_cpp ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1891 fi
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } > conftest.i && {
1894 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1895 test ! -s conftest.err
1896 }; then :
1897 ac_retval=0
1898 else
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1901
1902 ac_retval=1
1903 fi
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1906
1907 } # ac_fn_cxx_try_cpp
1908
1909 # ac_fn_cxx_try_link LINENO
1910 # -------------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_cxx_try_link ()
1913 {
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1929 fi
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_cxx_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1942
1943 ac_retval=1
1944 fi
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1952
1953 } # ac_fn_cxx_try_link
1954
1955 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1956 # ---------------------------------------------
1957 # Tests whether TYPE exists after having included INCLUDES, setting cache
1958 # variable VAR accordingly.
1959 ac_fn_cxx_check_type ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 eval "$3=no"
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 int
1972 main ()
1973 {
1974 if (sizeof ($2))
1975 return 0;
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_cxx_try_compile "$LINENO"; then :
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 $4
1984 int
1985 main ()
1986 {
1987 if (sizeof (($2)))
1988 return 0;
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_cxx_try_compile "$LINENO"; then :
1994
1995 else
1996 eval "$3=yes"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 fi
2002 eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006
2007 } # ac_fn_cxx_check_type
2008
2009 # ac_fn_cxx_check_func LINENO FUNC VAR
2010 # ------------------------------------
2011 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2012 ac_fn_cxx_check_func ()
2013 {
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2024 #define $2 innocuous_$2
2025
2026 /* System header to define __stub macros and hopefully few prototypes,
2027 which can conflict with char $2 (); below.
2028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2029 <limits.h> exists even on freestanding compilers. */
2030
2031 #ifdef __STDC__
2032 # include <limits.h>
2033 #else
2034 # include <assert.h>
2035 #endif
2036
2037 #undef $2
2038
2039 /* Override any GCC internal prototype to avoid an error.
2040 Use char because int might match the return type of a GCC
2041 builtin and then its argument prototype would still apply. */
2042 #ifdef __cplusplus
2043 extern "C"
2044 #endif
2045 char $2 ();
2046 /* The GNU C library defines this for functions which it implements
2047 to always fail with ENOSYS. Some functions are actually named
2048 something starting with __ and the normal name is an alias. */
2049 #if defined __stub_$2 || defined __stub___$2
2050 choke me
2051 #endif
2052
2053 int
2054 main ()
2055 {
2056 return $2 ();
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_cxx_try_link "$LINENO"; then :
2062 eval "$3=yes"
2063 else
2064 eval "$3=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext \
2067 conftest$ac_exeext conftest.$ac_ext
2068 fi
2069 eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074 } # ac_fn_cxx_check_func
2075 cat >config.log <<_ACEOF
2076 This file contains any messages produced by compilers while
2077 running configure, to aid debugging if configure makes a mistake.
2078
2079 It was created by libfolia $as_me 2.4, which was
2080 generated by GNU Autoconf 2.69. Invocation command line was
2081
2082 $ $0 $@
2083
2084 _ACEOF
2085 exec 5>>config.log
2086 {
2087 cat <<_ASUNAME
2088 ## --------- ##
2089 ## Platform. ##
2090 ## --------- ##
2091
2092 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097
2098 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2100
2101 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2102 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2103 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2104 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2105 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2106 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2107 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2108
2109 _ASUNAME
2110
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
2116 $as_echo "PATH: $as_dir"
2117 done
2118 IFS=$as_save_IFS
2119
2120 } >&5
2121
2122 cat >&5 <<_ACEOF
2123
2124
2125 ## ----------- ##
2126 ## Core tests. ##
2127 ## ----------- ##
2128
2129 _ACEOF
2130
2131
2132 # Keep a trace of the command line.
2133 # Strip out --no-create and --no-recursion so they do not pile up.
2134 # Strip out --silent because we don't want to record it for future runs.
2135 # Also quote any args containing shell meta-characters.
2136 # Make two passes to allow for proper duplicate-argument suppression.
2137 ac_configure_args=
2138 ac_configure_args0=
2139 ac_configure_args1=
2140 ac_must_keep_next=false
2141 for ac_pass in 1 2
2142 do
2143 for ac_arg
2144 do
2145 case $ac_arg in
2146 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148 | -silent | --silent | --silen | --sile | --sil)
2149 continue ;;
2150 *\'*)
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 esac
2153 case $ac_pass in
2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2155 2)
2156 as_fn_append ac_configure_args1 " '$ac_arg'"
2157 if test $ac_must_keep_next = true; then
2158 ac_must_keep_next=false # Got value, back to normal.
2159 else
2160 case $ac_arg in
2161 *=* | --config-cache | -C | -disable-* | --disable-* \
2162 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164 | -with-* | --with-* | -without-* | --without-* | --x)
2165 case "$ac_configure_args0 " in
2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167 esac
2168 ;;
2169 -* ) ac_must_keep_next=true ;;
2170 esac
2171 fi
2172 as_fn_append ac_configure_args " '$ac_arg'"
2173 ;;
2174 esac
2175 done
2176 done
2177 { ac_configure_args0=; unset ac_configure_args0;}
2178 { ac_configure_args1=; unset ac_configure_args1;}
2179
2180 # When interrupted or exit'd, cleanup temporary files, and complete
2181 # config.log. We remove comments because anyway the quotes in there
2182 # would cause problems or look ugly.
2183 # WARNING: Use '\'' to represent an apostrophe within the trap.
2184 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2185 trap 'exit_status=$?
2186 # Save into config.log some information that might help in debugging.
2187 {
2188 echo
2189
2190 $as_echo "## ---------------- ##
2191 ## Cache variables. ##
2192 ## ---------------- ##"
2193 echo
2194 # The following way of writing the cache mishandles newlines in values,
2195 (
2196 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2197 eval ac_val=\$$ac_var
2198 case $ac_val in #(
2199 *${as_nl}*)
2200 case $ac_var in #(
2201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2203 esac
2204 case $ac_var in #(
2205 _ | IFS | as_nl) ;; #(
2206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2207 *) { eval $ac_var=; unset $ac_var;} ;;
2208 esac ;;
2209 esac
2210 done
2211 (set) 2>&1 |
2212 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2213 *${as_nl}ac_space=\ *)
2214 sed -n \
2215 "s/'\''/'\''\\\\'\'''\''/g;
2216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217 ;; #(
2218 *)
2219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2220 ;;
2221 esac |
2222 sort
2223 )
2224 echo
2225
2226 $as_echo "## ----------------- ##
2227 ## Output variables. ##
2228 ## ----------------- ##"
2229 echo
2230 for ac_var in $ac_subst_vars
2231 do
2232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
2237 done | sort
2238 echo
2239
2240 if test -n "$ac_subst_files"; then
2241 $as_echo "## ------------------- ##
2242 ## File substitutions. ##
2243 ## ------------------- ##"
2244 echo
2245 for ac_var in $ac_subst_files
2246 do
2247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
2252 done | sort
2253 echo
2254 fi
2255
2256 if test -s confdefs.h; then
2257 $as_echo "## ----------- ##
2258 ## confdefs.h. ##
2259 ## ----------- ##"
2260 echo
2261 cat confdefs.h
2262 echo
2263 fi
2264 test "$ac_signal" != 0 &&
2265 $as_echo "$as_me: caught signal $ac_signal"
2266 $as_echo "$as_me: exit $exit_status"
2267 } >&5
2268 rm -f core *.core core.conftest.* &&
2269 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2270 exit $exit_status
2271 ' 0
2272 for ac_signal in 1 2 13 15; do
2273 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2274 done
2275 ac_signal=0
2276
2277 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2278 rm -f -r conftest* confdefs.h
2279
2280 $as_echo "/* confdefs.h */" > confdefs.h
2281
2282 # Predefined preprocessor variables.
2283
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_NAME "$PACKAGE_NAME"
2286 _ACEOF
2287
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2290 _ACEOF
2291
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2294 _ACEOF
2295
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_STRING "$PACKAGE_STRING"
2298 _ACEOF
2299
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2302 _ACEOF
2303
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_URL "$PACKAGE_URL"
2306 _ACEOF
2307
2308
2309 # Let the site file select an alternate cache file if it wants to.
2310 # Prefer an explicitly selected file to automatically selected ones.
2311 ac_site_file1=NONE
2312 ac_site_file2=NONE
2313 if test -n "$CONFIG_SITE"; then
2314 # We do not want a PATH search for config.site.
2315 case $CONFIG_SITE in #((
2316 -*) ac_site_file1=./$CONFIG_SITE;;
2317 */*) ac_site_file1=$CONFIG_SITE;;
2318 *) ac_site_file1=./$CONFIG_SITE;;
2319 esac
2320 elif test "x$prefix" != xNONE; then
2321 ac_site_file1=$prefix/share/config.site
2322 ac_site_file2=$prefix/etc/config.site
2323 else
2324 ac_site_file1=$ac_default_prefix/share/config.site
2325 ac_site_file2=$ac_default_prefix/etc/config.site
2326 fi
2327 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2328 do
2329 test "x$ac_site_file" = xNONE && continue
2330 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2332 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2333 sed 's/^/| /' "$ac_site_file" >&5
2334 . "$ac_site_file" \
2335 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337 as_fn_error $? "failed to load site script $ac_site_file
2338 See \`config.log' for more details" "$LINENO" 5; }
2339 fi
2340 done
2341
2342 if test -r "$cache_file"; then
2343 # Some versions of bash will fail to source /dev/null (special files
2344 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2345 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2347 $as_echo "$as_me: loading cache $cache_file" >&6;}
2348 case $cache_file in
2349 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2350 *) . "./$cache_file";;
2351 esac
2352 fi
2353 else
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2355 $as_echo "$as_me: creating cache $cache_file" >&6;}
2356 >$cache_file
2357 fi
2358
2359 # Check that the precious variables saved in the cache have kept the same
2360 # value.
2361 ac_cache_corrupted=false
2362 for ac_var in $ac_precious_vars; do
2363 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2364 eval ac_new_set=\$ac_env_${ac_var}_set
2365 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2366 eval ac_new_val=\$ac_env_${ac_var}_value
2367 case $ac_old_set,$ac_new_set in
2368 set,)
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2370 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2371 ac_cache_corrupted=: ;;
2372 ,set)
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2374 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2375 ac_cache_corrupted=: ;;
2376 ,);;
2377 *)
2378 if test "x$ac_old_val" != "x$ac_new_val"; then
2379 # differences in whitespace do not lead to failure.
2380 ac_old_val_w=`echo x $ac_old_val`
2381 ac_new_val_w=`echo x $ac_new_val`
2382 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2384 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2385 ac_cache_corrupted=:
2386 else
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2388 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2389 eval $ac_var=\$ac_old_val
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2392 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2394 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2395 fi;;
2396 esac
2397 # Pass precious variables to config.status.
2398 if test "$ac_new_set" = set; then
2399 case $ac_new_val in
2400 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 *) ac_arg=$ac_var=$ac_new_val ;;
2402 esac
2403 case " $ac_configure_args " in
2404 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2405 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2406 esac
2407 fi
2408 done
2409 if $ac_cache_corrupted; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2413 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2414 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2415 fi
2416 ## -------------------- ##
2417 ## Main body of script. ##
2418 ## -------------------- ##
2419
2420 ac_ext=c
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2425
2426 #also adapt in codemeta.json!
2427 am__api_version='1.16'
2428
2429 ac_aux_dir=
2430 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2431 if test -f "$ac_dir/install-sh"; then
2432 ac_aux_dir=$ac_dir
2433 ac_install_sh="$ac_aux_dir/install-sh -c"
2434 break
2435 elif test -f "$ac_dir/install.sh"; then
2436 ac_aux_dir=$ac_dir
2437 ac_install_sh="$ac_aux_dir/install.sh -c"
2438 break
2439 elif test -f "$ac_dir/shtool"; then
2440 ac_aux_dir=$ac_dir
2441 ac_install_sh="$ac_aux_dir/shtool install -c"
2442 break
2443 fi
2444 done
2445 if test -z "$ac_aux_dir"; then
2446 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2447 fi
2448
2449 # These three variables are undocumented and unsupported,
2450 # and are intended to be withdrawn in a future Autoconf release.
2451 # They can cause serious problems if a builder's source tree is in a directory
2452 # whose full name contains unusual characters.
2453 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2454 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2455 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2456
2457
2458 # Find a good install program. We prefer a C program (faster),
2459 # so one script is as good as another. But avoid the broken or
2460 # incompatible versions:
2461 # SysV /etc/install, /usr/sbin/install
2462 # SunOS /usr/etc/install
2463 # IRIX /sbin/install
2464 # AIX /bin/install
2465 # AmigaOS /C/install, which installs bootblocks on floppy discs
2466 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2467 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2468 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2469 # OS/2's system install, which has a completely different semantic
2470 # ./install, which can be erroneously created by make from ./install.sh.
2471 # Reject install programs that cannot install multiple files.
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2473 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2474 if test -z "$INSTALL"; then
2475 if ${ac_cv_path_install+:} false; then :
2476 $as_echo_n "(cached) " >&6
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 # Account for people who put trailing slashes in PATH elements.
2484 case $as_dir/ in #((
2485 ./ | .// | /[cC]/* | \
2486 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2487 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2488 /usr/ucb/* ) ;;
2489 *)
2490 # OSF1 and SCO ODT 3.0 have their own names for install.
2491 # Don't use installbsd from OSF since it installs stuff as root
2492 # by default.
2493 for ac_prog in ginstall scoinst install; do
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2496 if test $ac_prog = install &&
2497 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2498 # AIX install. It has an incompatible calling convention.
2499 :
2500 elif test $ac_prog = install &&
2501 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2502 # program-specific install script used by HP pwplus--don't use.
2503 :
2504 else
2505 rm -rf conftest.one conftest.two conftest.dir
2506 echo one > conftest.one
2507 echo two > conftest.two
2508 mkdir conftest.dir
2509 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2510 test -s conftest.one && test -s conftest.two &&
2511 test -s conftest.dir/conftest.one &&
2512 test -s conftest.dir/conftest.two
2513 then
2514 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2515 break 3
2516 fi
2517 fi
2518 fi
2519 done
2520 done
2521 ;;
2522 esac
2523
2524 done
2525 IFS=$as_save_IFS
2526
2527 rm -rf conftest.one conftest.two conftest.dir
2528
2529 fi
2530 if test "${ac_cv_path_install+set}" = set; then
2531 INSTALL=$ac_cv_path_install
2532 else
2533 # As a last resort, use the slow shell script. Don't cache a
2534 # value for INSTALL within a source directory, because that will
2535 # break other packages using the cache if that directory is
2536 # removed, or if the value is a relative name.
2537 INSTALL=$ac_install_sh
2538 fi
2539 fi
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2541 $as_echo "$INSTALL" >&6; }
2542
2543 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2544 # It thinks the first close brace ends the variable substitution.
2545 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2546
2547 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2548
2549 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2550
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2552 $as_echo_n "checking whether build environment is sane... " >&6; }
2553 # Reject unsafe characters in $srcdir or the absolute working directory
2554 # name. Accept space and tab only in the latter.
2555 am_lf='
2556 '
2557 case `pwd` in
2558 *[\\\"\#\$\&\'\`$am_lf]*)
2559 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2560 esac
2561 case $srcdir in
2562 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2563 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2564 esac
2565
2566 # Do 'set' in a subshell so we don't clobber the current shell's
2567 # arguments. Must try -L first in case configure is actually a
2568 # symlink; some systems play weird games with the mod time of symlinks
2569 # (eg FreeBSD returns the mod time of the symlink's containing
2570 # directory).
2571 if (
2572 am_has_slept=no
2573 for am_try in 1 2; do
2574 echo "timestamp, slept: $am_has_slept" > conftest.file
2575 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2576 if test "$*" = "X"; then
2577 # -L didn't work.
2578 set X `ls -t "$srcdir/configure" conftest.file`
2579 fi
2580 if test "$*" != "X $srcdir/configure conftest.file" \
2581 && test "$*" != "X conftest.file $srcdir/configure"; then
2582
2583 # If neither matched, then we have a broken ls. This can happen
2584 # if, for instance, CONFIG_SHELL is bash and it inherits a
2585 # broken ls alias from the environment. This has actually
2586 # happened. Such a system could not be considered "sane".
2587 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2588 alias in your environment" "$LINENO" 5
2589 fi
2590 if test "$2" = conftest.file || test $am_try -eq 2; then
2591 break
2592 fi
2593 # Just in case.
2594 sleep 1
2595 am_has_slept=yes
2596 done
2597 test "$2" = conftest.file
2598 )
2599 then
2600 # Ok.
2601 :
2602 else
2603 as_fn_error $? "newly created file is older than distributed files!
2604 Check your system clock" "$LINENO" 5
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2607 $as_echo "yes" >&6; }
2608 # If we didn't sleep, we still need to ensure time stamps of config.status and
2609 # generated files are strictly newer.
2610 am_sleep_pid=
2611 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2612 ( sleep 1 ) &
2613 am_sleep_pid=$!
2614 fi
2615
2616 rm -f conftest.file
2617
2618 test "$program_prefix" != NONE &&
2619 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2620 # Use a double $ so make ignores it.
2621 test "$program_suffix" != NONE &&
2622 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2623 # Double any \ or $.
2624 # By default was `s,x,x', remove it if useless.
2625 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2626 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2627
2628 # Expand $ac_aux_dir to an absolute path.
2629 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2630
2631 if test x"${MISSING+set}" != xset; then
2632 case $am_aux_dir in
2633 *\ * | *\ *)
2634 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2635 *)
2636 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2637 esac
2638 fi
2639 # Use eval to expand $SHELL
2640 if eval "$MISSING --is-lightweight"; then
2641 am_missing_run="$MISSING "
2642 else
2643 am_missing_run=
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2645 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2646 fi
2647
2648 if test x"${install_sh+set}" != xset; then
2649 case $am_aux_dir in
2650 *\ * | *\ *)
2651 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2652 *)
2653 install_sh="\${SHELL} $am_aux_dir/install-sh"
2654 esac
2655 fi
2656
2657 # Installed binaries are usually stripped using 'strip' when the user
2658 # run "make install-strip". However 'strip' might not be the right
2659 # tool to use in cross-compilation environments, therefore Automake
2660 # will honor the 'STRIP' environment variable to overrule this program.
2661 if test "$cross_compiling" != no; then
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}strip; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if ${ac_cv_prog_STRIP+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$STRIP"; then
2671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684 done
2685 done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 STRIP=$ac_cv_prog_STRIP
2691 if test -n "$STRIP"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2693 $as_echo "$STRIP" >&6; }
2694 else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700 fi
2701 if test -z "$ac_cv_prog_STRIP"; then
2702 ac_ct_STRIP=$STRIP
2703 # Extract the first word of "strip", so it can be a program name with args.
2704 set dummy strip; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 if test -n "$ac_ct_STRIP"; then
2711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716 IFS=$as_save_IFS
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720 ac_cv_prog_ac_ct_STRIP="strip"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 break 2
2723 fi
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2731 if test -n "$ac_ct_STRIP"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2733 $as_echo "$ac_ct_STRIP" >&6; }
2734 else
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 fi
2738
2739 if test "x$ac_ct_STRIP" = x; then
2740 STRIP=":"
2741 else
2742 case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748 STRIP=$ac_ct_STRIP
2749 fi
2750 else
2751 STRIP="$ac_cv_prog_STRIP"
2752 fi
2753
2754 fi
2755 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2756
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2758 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2759 if test -z "$MKDIR_P"; then
2760 if ${ac_cv_path_mkdir+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2765 do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_prog in mkdir gmkdir; do
2769 for ac_exec_ext in '' $ac_executable_extensions; do
2770 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2771 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2772 'mkdir (GNU coreutils) '* | \
2773 'mkdir (coreutils) '* | \
2774 'mkdir (fileutils) '4.1*)
2775 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2776 break 3;;
2777 esac
2778 done
2779 done
2780 done
2781 IFS=$as_save_IFS
2782
2783 fi
2784
2785 test -d ./--version && rmdir ./--version
2786 if test "${ac_cv_path_mkdir+set}" = set; then
2787 MKDIR_P="$ac_cv_path_mkdir -p"
2788 else
2789 # As a last resort, use the slow shell script. Don't cache a
2790 # value for MKDIR_P within a source directory, because that will
2791 # break other packages using the cache if that directory is
2792 # removed, or if the value is a relative name.
2793 MKDIR_P="$ac_install_sh -d"
2794 fi
2795 fi
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2797 $as_echo "$MKDIR_P" >&6; }
2798
2799 for ac_prog in gawk mawk nawk awk
2800 do
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_AWK+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test -n "$AWK"; then
2809 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_AWK="$ac_prog"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 break 2
2821 fi
2822 done
2823 done
2824 IFS=$as_save_IFS
2825
2826 fi
2827 fi
2828 AWK=$ac_cv_prog_AWK
2829 if test -n "$AWK"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2831 $as_echo "$AWK" >&6; }
2832 else
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2835 fi
2836
2837
2838 test -n "$AWK" && break
2839 done
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2842 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2843 set x ${MAKE-make}
2844 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2845 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 cat >conftest.make <<\_ACEOF
2849 SHELL = /bin/sh
2850 all:
2851 @echo '@@@%%%=$(MAKE)=@@@%%%'
2852 _ACEOF
2853 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2854 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2855 *@@@%%%=?*=@@@%%%*)
2856 eval ac_cv_prog_make_${ac_make}_set=yes;;
2857 *)
2858 eval ac_cv_prog_make_${ac_make}_set=no;;
2859 esac
2860 rm -f conftest.make
2861 fi
2862 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2864 $as_echo "yes" >&6; }
2865 SET_MAKE=
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 SET_MAKE="MAKE=${MAKE-make}"
2870 fi
2871
2872 rm -rf .tst 2>/dev/null
2873 mkdir .tst 2>/dev/null
2874 if test -d .tst; then
2875 am__leading_dot=.
2876 else
2877 am__leading_dot=_
2878 fi
2879 rmdir .tst 2>/dev/null
2880
2881 # Check whether --enable-silent-rules was given.
2882 if test "${enable_silent_rules+set}" = set; then :
2883 enableval=$enable_silent_rules;
2884 fi
2885
2886 case $enable_silent_rules in # (((
2887 yes) AM_DEFAULT_VERBOSITY=0;;
2888 no) AM_DEFAULT_VERBOSITY=1;;
2889 *) AM_DEFAULT_VERBOSITY=1;;
2890 esac
2891 am_make=${MAKE-make}
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2893 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2894 if ${am_cv_make_support_nested_variables+:} false; then :
2895 $as_echo_n "(cached) " >&6
2896 else
2897 if $as_echo 'TRUE=$(BAR$(V))
2898 BAR0=false
2899 BAR1=true
2900 V=1
2901 am__doit:
2902 @$(TRUE)
2903 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2904 am_cv_make_support_nested_variables=yes
2905 else
2906 am_cv_make_support_nested_variables=no
2907 fi
2908 fi
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2910 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2911 if test $am_cv_make_support_nested_variables = yes; then
2912 AM_V='$(V)'
2913 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2914 else
2915 AM_V=$AM_DEFAULT_VERBOSITY
2916 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2917 fi
2918 AM_BACKSLASH='\'
2919
2920 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2921 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2922 # is not polluted with repeated "-I."
2923 am__isrc=' -I$(srcdir)'
2924 # test to see if srcdir already configured
2925 if test -f $srcdir/config.status; then
2926 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2927 fi
2928 fi
2929
2930 # test whether we have cygpath
2931 if test -z "$CYGPATH_W"; then
2932 if (cygpath --version) >/dev/null 2>/dev/null; then
2933 CYGPATH_W='cygpath -w'
2934 else
2935 CYGPATH_W=echo
2936 fi
2937 fi
2938
2939
2940 # Define the identity of the package.
2941 PACKAGE='libfolia'
2942 VERSION='2.4'
2943
2944
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE "$PACKAGE"
2947 _ACEOF
2948
2949
2950 cat >>confdefs.h <<_ACEOF
2951 #define VERSION "$VERSION"
2952 _ACEOF
2953
2954 # Some tools Automake needs.
2955
2956 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2957
2958
2959 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2960
2961
2962 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2963
2964
2965 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2966
2967
2968 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2969
2970 # For better backward compatibility. To be removed once Automake 1.9.x
2971 # dies out for good. For more background, see:
2972 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2973 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2974 mkdir_p='$(MKDIR_P)'
2975
2976 # We need awk for the "check" target (and possibly the TAP driver). The
2977 # system "awk" is bad on some platforms.
2978 # Always define AMTAR for backward compatibility. Yes, it's still used
2979 # in the wild :-( We should find a proper way to deprecate it ...
2980 AMTAR='$${TAR-tar}'
2981
2982
2983 # We'll loop over all known methods to create a tar archive until one works.
2984 _am_tools='gnutar pax cpio none'
2985
2986 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2987
2988
2989
2990
2991
2992
2993 # POSIX will say in a future version that running "rm -f" with no argument
2994 # is OK; and we want to be able to make that assumption in our Makefile
2995 # recipes. So use an aggressive probe to check that the usage we want is
2996 # actually supported "in the wild" to an acceptable degree.
2997 # See automake bug#10828.
2998 # To make any issue more visible, cause the running configure to be aborted
2999 # by default if the 'rm' program in use doesn't match our expectations; the
3000 # user can still override this though.
3001 if rm -f && rm -fr && rm -rf; then : OK; else
3002 cat >&2 <<'END'
3003 Oops!
3004
3005 Your 'rm' program seems unable to run without file operands specified
3006 on the command line, even when the '-f' option is present. This is contrary
3007 to the behaviour of most rm programs out there, and not conforming with
3008 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3009
3010 Please tell bug-automake@gnu.org about your system, including the value
3011 of your $PATH and any error possibly output before this message. This
3012 can help us improve future automake versions.
3013
3014 END
3015 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3016 echo 'Configuration will proceed anyway, since you have set the' >&2
3017 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3018 echo >&2
3019 else
3020 cat >&2 <<'END'
3021 Aborting the configuration process, to ensure you take notice of the issue.
3022
3023 You can download and install GNU coreutils to get an 'rm' implementation
3024 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3025
3026 If you want to complete the configuration process using your problematic
3027 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3028 to "yes", and re-run configure.
3029
3030 END
3031 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3032 fi
3033 fi
3034
3035
3036
3037 ac_config_headers="$ac_config_headers config.h"
3038
3039
3040 if test x"${CXXFLAGS+set}" = xset; then
3041 # the user set CXXFLAGS; don't override it.
3042 cxx_flags_were_set=true
3043 else
3044 cxx_flags_were_set=false
3045 fi
3046
3047 # Checks for programs.
3048 ac_ext=cpp
3049 ac_cpp='$CXXCPP $CPPFLAGS'
3050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3053 if test -z "$CXX"; then
3054 if test -n "$CCC"; then
3055 CXX=$CCC
3056 else
3057 if test -n "$ac_tool_prefix"; then
3058 for ac_prog in g++ c++
3059 do
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_CXX+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$CXX"; then
3068 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3077 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CXX=$ac_cv_prog_CXX
3088 if test -n "$CXX"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3090 $as_echo "$CXX" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097 test -n "$CXX" && break
3098 done
3099 fi
3100 if test -z "$CXX"; then
3101 ac_ct_CXX=$CXX
3102 for ac_prog in g++ c++
3103 do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$ac_ct_CXX"; then
3112 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_ac_ct_CXX="$ac_prog"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3134 $as_echo "$ac_ct_CXX" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141 test -n "$ac_ct_CXX" && break
3142 done
3143
3144 if test "x$ac_ct_CXX" = x; then
3145 CXX="g++"
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3151 ac_tool_warned=yes ;;
3152 esac
3153 CXX=$ac_ct_CXX
3154 fi
3155 fi
3156
3157 fi
3158 fi
3159 # Provide some information about the compiler.
3160 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3161 set X $ac_compile
3162 ac_compiler=$2
3163 for ac_option in --version -v -V -qversion; do
3164 { { ac_try="$ac_compiler $ac_option >&5"
3165 case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3172 ac_status=$?
3173 if test -s conftest.err; then
3174 sed '10a\
3175 ... rest of stderr output deleted ...
3176 10q' conftest.err >conftest.er1
3177 cat conftest.er1 >&5
3178 fi
3179 rm -f conftest.er1 conftest.err
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }
3182 done
3183
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3186
3187 int
3188 main ()
3189 {
3190
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 ac_clean_files_save=$ac_clean_files
3196 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3197 # Try to create an executable without -o first, disregard a.out.
3198 # It will help us diagnose broken compilers, and finding out an intuition
3199 # of exeext.
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3201 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3202 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3203
3204 # The possible output files:
3205 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3206
3207 ac_rmfiles=
3208 for ac_file in $ac_files
3209 do
3210 case $ac_file in
3211 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3212 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3213 esac
3214 done
3215 rm -f $ac_rmfiles
3216
3217 if { { ac_try="$ac_link_default"
3218 case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221 esac
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link_default") 2>&5
3225 ac_status=$?
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; then :
3228 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3229 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3230 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3231 # so that the user can short-circuit this test for compilers unknown to
3232 # Autoconf.
3233 for ac_file in $ac_files ''
3234 do
3235 test -f "$ac_file" || continue
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3238 ;;
3239 [ab].out )
3240 # We found the default executable, but exeext='' is most
3241 # certainly right.
3242 break;;
3243 *.* )
3244 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3245 then :; else
3246 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3247 fi
3248 # We set ac_cv_exeext here because the later test for it is not
3249 # safe: cross compilers may not add the suffix if given an `-o'
3250 # argument, so we may need to know it at that point already.
3251 # Even if this section looks crufty: it has the advantage of
3252 # actually working.
3253 break;;
3254 * )
3255 break;;
3256 esac
3257 done
3258 test "$ac_cv_exeext" = no && ac_cv_exeext=
3259
3260 else
3261 ac_file=''
3262 fi
3263 if test -z "$ac_file"; then :
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3271 as_fn_error 77 "C++ compiler cannot create executables
3272 See \`config.log' for more details" "$LINENO" 5; }
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3276 fi
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3278 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3280 $as_echo "$ac_file" >&6; }
3281 ac_exeext=$ac_cv_exeext
3282
3283 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3284 ac_clean_files=$ac_clean_files_save
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3286 $as_echo_n "checking for suffix of executables... " >&6; }
3287 if { { ac_try="$ac_link"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3293 $as_echo "$ac_try_echo"; } >&5
3294 (eval "$ac_link") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3297 test $ac_status = 0; }; then :
3298 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3299 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3300 # work properly (i.e., refer to `conftest.exe'), while it won't with
3301 # `rm'.
3302 for ac_file in conftest.exe conftest conftest.*; do
3303 test -f "$ac_file" || continue
3304 case $ac_file in
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307 break;;
3308 * ) break;;
3309 esac
3310 done
3311 else
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3315 See \`config.log' for more details" "$LINENO" 5; }
3316 fi
3317 rm -f conftest conftest$ac_cv_exeext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3319 $as_echo "$ac_cv_exeext" >&6; }
3320
3321 rm -f conftest.$ac_ext
3322 EXEEXT=$ac_cv_exeext
3323 ac_exeext=$EXEEXT
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3326 #include <stdio.h>
3327 int
3328 main ()
3329 {
3330 FILE *f = fopen ("conftest.out", "w");
3331 return ferror (f) || fclose (f) != 0;
3332
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 ac_clean_files="$ac_clean_files conftest.out"
3338 # Check that the compiler produces executables we can run. If not, either
3339 # the compiler is broken, or we cross compile.
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3341 $as_echo_n "checking whether we are cross compiling... " >&6; }
3342 if test "$cross_compiling" != yes; then
3343 { { ac_try="$ac_link"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_link") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }
3354 if { ac_try='./conftest$ac_cv_exeext'
3355 { { case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360 $as_echo "$ac_try_echo"; } >&5
3361 (eval "$ac_try") 2>&5
3362 ac_status=$?
3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364 test $ac_status = 0; }; }; then
3365 cross_compiling=no
3366 else
3367 if test "$cross_compiling" = maybe; then
3368 cross_compiling=yes
3369 else
3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372 as_fn_error $? "cannot run C++ compiled programs.
3373 If you meant to cross compile, use \`--host'.
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 fi
3376 fi
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3379 $as_echo "$cross_compiling" >&6; }
3380
3381 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3382 ac_clean_files=$ac_clean_files_save
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3384 $as_echo_n "checking for suffix of object files... " >&6; }
3385 if ${ac_cv_objext+:} false; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390
3391 int
3392 main ()
3393 {
3394
3395 ;
3396 return 0;
3397 }
3398 _ACEOF
3399 rm -f conftest.o conftest.obj
3400 if { { ac_try="$ac_compile"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_compile") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; then :
3411 for ac_file in conftest.o conftest.obj conftest.*; do
3412 test -f "$ac_file" || continue;
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3415 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3416 break;;
3417 esac
3418 done
3419 else
3420 $as_echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425 as_fn_error $? "cannot compute suffix of object files: cannot compile
3426 See \`config.log' for more details" "$LINENO" 5; }
3427 fi
3428 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3431 $as_echo "$ac_cv_objext" >&6; }
3432 OBJEXT=$ac_cv_objext
3433 ac_objext=$OBJEXT
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3435 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3436 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3437 $as_echo_n "(cached) " >&6
3438 else
3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440 /* end confdefs.h. */
3441
3442 int
3443 main ()
3444 {
3445 #ifndef __GNUC__
3446 choke me
3447 #endif
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 if ac_fn_cxx_try_compile "$LINENO"; then :
3454 ac_compiler_gnu=yes
3455 else
3456 ac_compiler_gnu=no
3457 fi
3458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3460
3461 fi
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3463 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3464 if test $ac_compiler_gnu = yes; then
3465 GXX=yes
3466 else
3467 GXX=
3468 fi
3469 ac_test_CXXFLAGS=${CXXFLAGS+set}
3470 ac_save_CXXFLAGS=$CXXFLAGS
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3472 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3473 if ${ac_cv_prog_cxx_g+:} false; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3477 ac_cxx_werror_flag=yes
3478 ac_cv_prog_cxx_g=no
3479 CXXFLAGS="-g"
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 if ac_fn_cxx_try_compile "$LINENO"; then :
3492 ac_cv_prog_cxx_g=yes
3493 else
3494 CXXFLAGS=""
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498 int
3499 main ()
3500 {
3501
3502 ;
3503 return 0;
3504 }
3505 _ACEOF
3506 if ac_fn_cxx_try_compile "$LINENO"; then :
3507
3508 else
3509 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3510 CXXFLAGS="-g"
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3513
3514 int
3515 main ()
3516 {
3517
3518 ;
3519 return 0;
3520 }
3521 _ACEOF
3522 if ac_fn_cxx_try_compile "$LINENO"; then :
3523 ac_cv_prog_cxx_g=yes
3524 fi
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3531 fi
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3533 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3534 if test "$ac_test_CXXFLAGS" = set; then
3535 CXXFLAGS=$ac_save_CXXFLAGS
3536 elif test $ac_cv_prog_cxx_g = yes; then
3537 if test "$GXX" = yes; then
3538 CXXFLAGS="-g -O2"
3539 else
3540 CXXFLAGS="-g"
3541 fi
3542 else
3543 if test "$GXX" = yes; then
3544 CXXFLAGS="-O2"
3545 else
3546 CXXFLAGS=
3547 fi
3548 fi
3549 ac_ext=c
3550 ac_cpp='$CPP $CPPFLAGS'
3551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 DEPDIR="${am__leading_dot}deps"
3555
3556 ac_config_commands="$ac_config_commands depfiles"
3557
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3559 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3560 cat > confinc.mk << 'END'
3561 am__doit:
3562 @echo this is the am__doit target >confinc.out
3563 .PHONY: am__doit
3564 END
3565 am__include="#"
3566 am__quote=
3567 # BSD make does it like this.
3568 echo '.include "confinc.mk" # ignored' > confmf.BSD
3569 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3570 echo 'include confinc.mk # ignored' > confmf.GNU
3571 _am_result=no
3572 for s in GNU BSD; do
3573 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3574 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }
3578 case $?:`cat confinc.out 2>/dev/null` in #(
3579 '0:this is the am__doit target') :
3580 case $s in #(
3581 BSD) :
3582 am__include='.include' am__quote='"' ;; #(
3583 *) :
3584 am__include='include' am__quote='' ;;
3585 esac ;; #(
3586 *) :
3587 ;;
3588 esac
3589 if test "$am__include" != "#"; then
3590 _am_result="yes ($s style)"
3591 break
3592 fi
3593 done
3594 rm -f confinc.* confmf.*
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3596 $as_echo "${_am_result}" >&6; }
3597
3598 # Check whether --enable-dependency-tracking was given.
3599 if test "${enable_dependency_tracking+set}" = set; then :
3600 enableval=$enable_dependency_tracking;
3601 fi
3602
3603 if test "x$enable_dependency_tracking" != xno; then
3604 am_depcomp="$ac_aux_dir/depcomp"
3605 AMDEPBACKSLASH='\'
3606 am__nodep='_no'
3607 fi
3608 if test "x$enable_dependency_tracking" != xno; then
3609 AMDEP_TRUE=
3610 AMDEP_FALSE='#'
3611 else
3612 AMDEP_TRUE='#'
3613 AMDEP_FALSE=
3614 fi
3615
3616
3617
3618 depcc="$CXX" am_compiler_list=
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3621 $as_echo_n "checking dependency style of $depcc... " >&6; }
3622 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626 # We make a subdir and do the tests there. Otherwise we can end up
3627 # making bogus files that we don't know about and never remove. For
3628 # instance it was reported that on HP-UX the gcc test will end up
3629 # making a dummy file named 'D' -- because '-MD' means "put the output
3630 # in D".
3631 rm -rf conftest.dir
3632 mkdir conftest.dir
3633 # Copy depcomp to subdir because otherwise we won't find it if we're
3634 # using a relative directory.
3635 cp "$am_depcomp" conftest.dir
3636 cd conftest.dir
3637 # We will build objects and dependencies in a subdirectory because
3638 # it helps to detect inapplicable dependency modes. For instance
3639 # both Tru64's cc and ICC support -MD to output dependencies as a
3640 # side effect of compilation, but ICC will put the dependencies in
3641 # the current directory while Tru64 will put them in the object
3642 # directory.
3643 mkdir sub
3644
3645 am_cv_CXX_dependencies_compiler_type=none
3646 if test "$am_compiler_list" = ""; then
3647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3648 fi
3649 am__universal=false
3650 case " $depcc " in #(
3651 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3652 esac
3653
3654 for depmode in $am_compiler_list; do
3655 # Setup a source with many dependencies, because some compilers
3656 # like to wrap large dependency lists on column 80 (with \), and
3657 # we should not choose a depcomp mode which is confused by this.
3658 #
3659 # We need to recreate these files for each test, as the compiler may
3660 # overwrite some of them when testing with obscure command lines.
3661 # This happens at least with the AIX C compiler.
3662 : > sub/conftest.c
3663 for i in 1 2 3 4 5 6; do
3664 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3665 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3666 # Solaris 10 /bin/sh.
3667 echo '/* dummy */' > sub/conftst$i.h
3668 done
3669 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3670
3671 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3672 # mode. It turns out that the SunPro C++ compiler does not properly
3673 # handle '-M -o', and we need to detect this. Also, some Intel
3674 # versions had trouble with output in subdirs.
3675 am__obj=sub/conftest.${OBJEXT-o}
3676 am__minus_obj="-o $am__obj"
3677 case $depmode in
3678 gcc)
3679 # This depmode causes a compiler race in universal mode.
3680 test "$am__universal" = false || continue
3681 ;;
3682 nosideeffect)
3683 # After this tag, mechanisms are not by side-effect, so they'll
3684 # only be used when explicitly requested.
3685 if test "x$enable_dependency_tracking" = xyes; then
3686 continue
3687 else
3688 break
3689 fi
3690 ;;
3691 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3692 # This compiler won't grok '-c -o', but also, the minuso test has
3693 # not run yet. These depmodes are late enough in the game, and
3694 # so weak that their functioning should not be impacted.
3695 am__obj=conftest.${OBJEXT-o}
3696 am__minus_obj=
3697 ;;
3698 none) break ;;
3699 esac
3700 if depmode=$depmode \
3701 source=sub/conftest.c object=$am__obj \
3702 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3703 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3704 >/dev/null 2>conftest.err &&
3705 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3707 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3709 # icc doesn't choke on unknown options, it will just issue warnings
3710 # or remarks (even with -Werror). So we grep stderr for any message
3711 # that says an option was ignored or not supported.
3712 # When given -MP, icc 7.0 and 7.1 complain thusly:
3713 # icc: Command line warning: ignoring option '-M'; no argument required
3714 # The diagnosis changed in icc 8.0:
3715 # icc: Command line remark: option '-MP' not supported
3716 if (grep 'ignoring option' conftest.err ||
3717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3718 am_cv_CXX_dependencies_compiler_type=$depmode
3719 break
3720 fi
3721 fi
3722 done
3723
3724 cd ..
3725 rm -rf conftest.dir
3726 else
3727 am_cv_CXX_dependencies_compiler_type=none
3728 fi
3729
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3732 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3733 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3734
3735 if
3736 test "x$enable_dependency_tracking" != xno \
3737 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3738 am__fastdepCXX_TRUE=
3739 am__fastdepCXX_FALSE='#'
3740 else
3741 am__fastdepCXX_TRUE='#'
3742 am__fastdepCXX_FALSE=
3743 fi
3744
3745
3746
3747 if $cxx_flags_were_set; then
3748 CXXFLAGS=$CXXFLAGS
3749 fi
3750
3751 # use libtool
3752 case `pwd` in
3753 *\ * | *\ *)
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3755 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3756 esac
3757
3758
3759
3760 macro_version='2.4.6'
3761 macro_revision='2.4.6'
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775 ltmain=$ac_aux_dir/ltmain.sh
3776
3777 # Make sure we can run config.sub.
3778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3780
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3782 $as_echo_n "checking build system type... " >&6; }
3783 if ${ac_cv_build+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 ac_build_alias=$build_alias
3787 test "x$ac_build_alias" = x &&
3788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3789 test "x$ac_build_alias" = x &&
3790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3793
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3796 $as_echo "$ac_cv_build" >&6; }
3797 case $ac_cv_build in
3798 *-*-*) ;;
3799 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3800 esac
3801 build=$ac_cv_build
3802 ac_save_IFS=$IFS; IFS='-'
3803 set x $ac_cv_build
3804 shift
3805 build_cpu=$1
3806 build_vendor=$2
3807 shift; shift
3808 # Remember, the first character of IFS is used to create $*,
3809 # except with old shells:
3810 build_os=$*
3811 IFS=$ac_save_IFS
3812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3813
3814
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3816 $as_echo_n "checking host system type... " >&6; }
3817 if ${ac_cv_host+:} false; then :
3818 $as_echo_n "(cached) " >&6
3819 else
3820 if test "x$host_alias" = x; then
3821 ac_cv_host=$ac_cv_build
3822 else
3823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3825 fi
3826
3827 fi
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3829 $as_echo "$ac_cv_host" >&6; }
3830 case $ac_cv_host in
3831 *-*-*) ;;
3832 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3833 esac
3834 host=$ac_cv_host
3835 ac_save_IFS=$IFS; IFS='-'
3836 set x $ac_cv_host
3837 shift
3838 host_cpu=$1
3839 host_vendor=$2
3840 shift; shift
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3843 host_os=$*
3844 IFS=$ac_save_IFS
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3846
3847
3848 # Backslashify metacharacters that are still active within
3849 # double-quoted strings.
3850 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3851
3852 # Same as above, but do not quote variable references.
3853 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3854
3855 # Sed substitution to delay expansion of an escaped shell variable in a
3856 # double_quote_subst'ed string.
3857 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3858
3859 # Sed substitution to delay expansion of an escaped single quote.
3860 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3861
3862 # Sed substitution to avoid accidental globbing in evaled expressions
3863 no_glob_subst='s/\*/\\\*/g'
3864
3865 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3866 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3867 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3868
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3870 $as_echo_n "checking how to print strings... " >&6; }
3871 # Test print first, because it will be a builtin if present.
3872 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3873 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3874 ECHO='print -r --'
3875 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3876 ECHO='printf %s\n'
3877 else
3878 # Use this function as a fallback that always works.
3879 func_fallback_echo ()
3880 {
3881 eval 'cat <<_LTECHO_EOF
3882 $1
3883 _LTECHO_EOF'
3884 }
3885 ECHO='func_fallback_echo'
3886 fi
3887
3888 # func_echo_all arg...
3889 # Invoke $ECHO with all args, space-separated.
3890 func_echo_all ()
3891 {
3892 $ECHO ""
3893 }
3894
3895 case $ECHO in
3896 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3897 $as_echo "printf" >&6; } ;;
3898 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3899 $as_echo "print -r" >&6; } ;;
3900 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3901 $as_echo "cat" >&6; } ;;
3902 esac
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917 ac_ext=c
3918 ac_cpp='$CPP $CPPFLAGS'
3919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3924 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_prog_CC+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 if test -n "$CC"; then
3931 ac_cv_prog_CC="$CC" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944 done
3945 done
3946 IFS=$as_save_IFS
3947
3948 fi
3949 fi
3950 CC=$ac_cv_prog_CC
3951 if test -n "$CC"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953 $as_echo "$CC" >&6; }
3954 else
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3957 fi
3958
3959
3960 fi
3961 if test -z "$ac_cv_prog_CC"; then
3962 ac_ct_CC=$CC
3963 # Extract the first word of "gcc", so it can be a program name with args.
3964 set dummy gcc; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$ac_ct_CC"; then
3971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_ac_ct_CC="gcc"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3991 if test -n "$ac_ct_CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3993 $as_echo "$ac_ct_CC" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999 if test "x$ac_ct_CC" = x; then
4000 CC=""
4001 else
4002 case $cross_compiling:$ac_tool_warned in
4003 yes:)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4006 ac_tool_warned=yes ;;
4007 esac
4008 CC=$ac_ct_CC
4009 fi
4010 else
4011 CC="$ac_cv_prog_CC"
4012 fi
4013
4014 if test -z "$CC"; then
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}cc; ac_word=$2
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if ${ac_cv_prog_CC+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 if test -n "$CC"; then
4024 ac_cv_prog_CC="$CC" # Let the user override the test.
4025 else
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_CC="${ac_tool_prefix}cc"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 break 2
4036 fi
4037 done
4038 done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 CC=$ac_cv_prog_CC
4044 if test -n "$CC"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4046 $as_echo "$CC" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4050 fi
4051
4052
4053 fi
4054 fi
4055 if test -z "$CC"; then
4056 # Extract the first word of "cc", so it can be a program name with args.
4057 set dummy cc; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_prog_CC+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 if test -n "$CC"; then
4064 ac_cv_prog_CC="$CC" # Let the user override the test.
4065 else
4066 ac_prog_rejected=no
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4075 ac_prog_rejected=yes
4076 continue
4077 fi
4078 ac_cv_prog_CC="cc"
4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084 IFS=$as_save_IFS
4085
4086 if test $ac_prog_rejected = yes; then
4087 # We found a bogon in the path, so make sure we never use it.
4088 set dummy $ac_cv_prog_CC
4089 shift
4090 if test $# != 0; then
4091 # We chose a different compiler from the bogus one.
4092 # However, it has the same basename, so the bogon will be chosen
4093 # first if we set CC to just the basename; use the full file name.
4094 shift
4095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4096 fi
4097 fi
4098 fi
4099 fi
4100 CC=$ac_cv_prog_CC
4101 if test -n "$CC"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4103 $as_echo "$CC" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4107 fi
4108
4109
4110 fi
4111 if test -z "$CC"; then
4112 if test -n "$ac_tool_prefix"; then
4113 for ac_prog in cl.exe
4114 do
4115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_prog_CC+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$CC"; then
4123 ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136 done
4137 done
4138 IFS=$as_save_IFS
4139
4140 fi
4141 fi
4142 CC=$ac_cv_prog_CC
4143 if test -n "$CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145 $as_echo "$CC" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4149 fi
4150
4151
4152 test -n "$CC" && break
4153 done
4154 fi
4155 if test -z "$CC"; then
4156 ac_ct_CC=$CC
4157 for ac_prog in cl.exe
4158 do
4159 # Extract the first word of "$ac_prog", so it can be a program name with args.
4160 set dummy $ac_prog; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -n "$ac_ct_CC"; then
4167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4176 ac_cv_prog_ac_ct_CC="$ac_prog"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4179 fi
4180 done
4181 done
4182 IFS=$as_save_IFS
4183
4184 fi
4185 fi
4186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4187 if test -n "$ac_ct_CC"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4189 $as_echo "$ac_ct_CC" >&6; }
4190 else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4193 fi
4194
4195
4196 test -n "$ac_ct_CC" && break
4197 done
4198
4199 if test "x$ac_ct_CC" = x; then
4200 CC=""
4201 else
4202 case $cross_compiling:$ac_tool_warned in
4203 yes:)
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4206 ac_tool_warned=yes ;;
4207 esac
4208 CC=$ac_ct_CC
4209 fi
4210 fi
4211
4212 fi
4213
4214
4215 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217 as_fn_error $? "no acceptable C compiler found in \$PATH
4218 See \`config.log' for more details" "$LINENO" 5; }
4219
4220 # Provide some information about the compiler.
4221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4222 set X $ac_compile
4223 ac_compiler=$2
4224 for ac_option in --version -v -V -qversion; do
4225 { { ac_try="$ac_compiler $ac_option >&5"
4226 case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4233 ac_status=$?
4234 if test -s conftest.err; then
4235 sed '10a\
4236 ... rest of stderr output deleted ...
4237 10q' conftest.err >conftest.er1
4238 cat conftest.er1 >&5
4239 fi
4240 rm -f conftest.er1 conftest.err
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }
4243 done
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4246 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4247 if ${ac_cv_c_compiler_gnu+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4252
4253 int
4254 main ()
4255 {
4256 #ifndef __GNUC__
4257 choke me
4258 #endif
4259
4260 ;
4261 return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_c_try_compile "$LINENO"; then :
4265 ac_compiler_gnu=yes
4266 else
4267 ac_compiler_gnu=no
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4271
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4274 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4275 if test $ac_compiler_gnu = yes; then
4276 GCC=yes
4277 else
4278 GCC=
4279 fi
4280 ac_test_CFLAGS=${CFLAGS+set}
4281 ac_save_CFLAGS=$CFLAGS
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4283 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4284 if ${ac_cv_prog_cc_g+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 ac_save_c_werror_flag=$ac_c_werror_flag
4288 ac_c_werror_flag=yes
4289 ac_cv_prog_cc_g=no
4290 CFLAGS="-g"
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293
4294 int
4295 main ()
4296 {
4297
4298 ;
4299 return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_c_try_compile "$LINENO"; then :
4303 ac_cv_prog_cc_g=yes
4304 else
4305 CFLAGS=""
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308
4309 int
4310 main ()
4311 {
4312
4313 ;
4314 return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_c_try_compile "$LINENO"; then :
4318
4319 else
4320 ac_c_werror_flag=$ac_save_c_werror_flag
4321 CFLAGS="-g"
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4324
4325 int
4326 main ()
4327 {
4328
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_c_try_compile "$LINENO"; then :
4334 ac_cv_prog_cc_g=yes
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341 ac_c_werror_flag=$ac_save_c_werror_flag
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4344 $as_echo "$ac_cv_prog_cc_g" >&6; }
4345 if test "$ac_test_CFLAGS" = set; then
4346 CFLAGS=$ac_save_CFLAGS
4347 elif test $ac_cv_prog_cc_g = yes; then
4348 if test "$GCC" = yes; then
4349 CFLAGS="-g -O2"
4350 else
4351 CFLAGS="-g"
4352 fi
4353 else
4354 if test "$GCC" = yes; then
4355 CFLAGS="-O2"
4356 else
4357 CFLAGS=
4358 fi
4359 fi
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4361 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4362 if ${ac_cv_prog_cc_c89+:} false; then :
4363 $as_echo_n "(cached) " >&6
4364 else
4365 ac_cv_prog_cc_c89=no
4366 ac_save_CC=$CC
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 #include <stdarg.h>
4370 #include <stdio.h>
4371 struct stat;
4372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4373 struct buf { int x; };
4374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4375 static char *e (p, i)
4376 char **p;
4377 int i;
4378 {
4379 return p[i];
4380 }
4381 static char *f (char * (*g) (char **, int), char **p, ...)
4382 {
4383 char *s;
4384 va_list v;
4385 va_start (v,p);
4386 s = g (p, va_arg (v,int));
4387 va_end (v);
4388 return s;
4389 }
4390
4391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4392 function prototypes and stuff, but not '\xHH' hex character constants.
4393 These don't provoke an error unfortunately, instead are silently treated
4394 as 'x'. The following induces an error, until -std is added to get
4395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4396 array size at least. It's necessary to write '\x00'==0 to get something
4397 that's true only with -std. */
4398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4399
4400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4401 inside strings and character constants. */
4402 #define FOO(x) 'x'
4403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4404
4405 int test (int i, double x);
4406 struct s1 {int (*f) (int a);};
4407 struct s2 {int (*f) (double a);};
4408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4409 int argc;
4410 char **argv;
4411 int
4412 main ()
4413 {
4414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4421 do
4422 CC="$ac_save_CC $ac_arg"
4423 if ac_fn_c_try_compile "$LINENO"; then :
4424 ac_cv_prog_cc_c89=$ac_arg
4425 fi
4426 rm -f core conftest.err conftest.$ac_objext
4427 test "x$ac_cv_prog_cc_c89" != "xno" && break
4428 done
4429 rm -f conftest.$ac_ext
4430 CC=$ac_save_CC
4431
4432 fi
4433 # AC_CACHE_VAL
4434 case "x$ac_cv_prog_cc_c89" in
4435 x)
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4437 $as_echo "none needed" >&6; } ;;
4438 xno)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4440 $as_echo "unsupported" >&6; } ;;
4441 *)
4442 CC="$CC $ac_cv_prog_cc_c89"
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4445 esac
4446 if test "x$ac_cv_prog_cc_c89" != xno; then :
4447
4448 fi
4449
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456 ac_ext=c
4457 ac_cpp='$CPP $CPPFLAGS'
4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4462 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4463 if ${am_cv_prog_cc_c_o+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468
4469 int
4470 main ()
4471 {
4472
4473 ;
4474 return 0;
4475 }
4476 _ACEOF
4477 # Make sure it works both with $CC and with simple cc.
4478 # Following AC_PROG_CC_C_O, we do the test twice because some
4479 # compilers refuse to overwrite an existing .o file with -o,
4480 # though they will create one.
4481 am_cv_prog_cc_c_o=yes
4482 for am_i in 1 2; do
4483 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4484 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4485 ac_status=$?
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } \
4488 && test -f conftest2.$ac_objext; then
4489 : OK
4490 else
4491 am_cv_prog_cc_c_o=no
4492 break
4493 fi
4494 done
4495 rm -f core conftest*
4496 unset am_i
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4499 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4500 if test "$am_cv_prog_cc_c_o" != yes; then
4501 # Losing compiler, so override with the script.
4502 # FIXME: It is wrong to rewrite CC.
4503 # But if we don't then we get into trouble of one sort or another.
4504 # A longer-term fix would be to have automake use am__CC in this case,
4505 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4506 CC="$am_aux_dir/compile $CC"
4507 fi
4508 ac_ext=c
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514
4515 depcc="$CC" am_compiler_list=
4516
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4518 $as_echo_n "checking dependency style of $depcc... " >&6; }
4519 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4523 # We make a subdir and do the tests there. Otherwise we can end up
4524 # making bogus files that we don't know about and never remove. For
4525 # instance it was reported that on HP-UX the gcc test will end up
4526 # making a dummy file named 'D' -- because '-MD' means "put the output
4527 # in D".
4528 rm -rf conftest.dir
4529 mkdir conftest.dir
4530 # Copy depcomp to subdir because otherwise we won't find it if we're
4531 # using a relative directory.
4532 cp "$am_depcomp" conftest.dir
4533 cd conftest.dir
4534 # We will build objects and dependencies in a subdirectory because
4535 # it helps to detect inapplicable dependency modes. For instance
4536 # both Tru64's cc and ICC support -MD to output dependencies as a
4537 # side effect of compilation, but ICC will put the dependencies in
4538 # the current directory while Tru64 will put them in the object
4539 # directory.
4540 mkdir sub
4541
4542 am_cv_CC_dependencies_compiler_type=none
4543 if test "$am_compiler_list" = ""; then
4544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4545 fi
4546 am__universal=false
4547 case " $depcc " in #(
4548 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4549 esac
4550
4551 for depmode in $am_compiler_list; do
4552 # Setup a source with many dependencies, because some compilers
4553 # like to wrap large dependency lists on column 80 (with \), and
4554 # we should not choose a depcomp mode which is confused by this.
4555 #
4556 # We need to recreate these files for each test, as the compiler may
4557 # overwrite some of them when testing with obscure command lines.
4558 # This happens at least with the AIX C compiler.
4559 : > sub/conftest.c
4560 for i in 1 2 3 4 5 6; do
4561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4562 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4563 # Solaris 10 /bin/sh.
4564 echo '/* dummy */' > sub/conftst$i.h
4565 done
4566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4567
4568 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4569 # mode. It turns out that the SunPro C++ compiler does not properly
4570 # handle '-M -o', and we need to detect this. Also, some Intel
4571 # versions had trouble with output in subdirs.
4572 am__obj=sub/conftest.${OBJEXT-o}
4573 am__minus_obj="-o $am__obj"
4574 case $depmode in
4575 gcc)
4576 # This depmode causes a compiler race in universal mode.
4577 test "$am__universal" = false || continue
4578 ;;
4579 nosideeffect)
4580 # After this tag, mechanisms are not by side-effect, so they'll
4581 # only be used when explicitly requested.
4582 if test "x$enable_dependency_tracking" = xyes; then
4583 continue
4584 else
4585 break
4586 fi
4587 ;;
4588 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4589 # This compiler won't grok '-c -o', but also, the minuso test has
4590 # not run yet. These depmodes are late enough in the game, and
4591 # so weak that their functioning should not be impacted.
4592 am__obj=conftest.${OBJEXT-o}
4593 am__minus_obj=
4594 ;;
4595 none) break ;;
4596 esac
4597 if depmode=$depmode \
4598 source=sub/conftest.c object=$am__obj \
4599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4601 >/dev/null 2>conftest.err &&
4602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4606 # icc doesn't choke on unknown options, it will just issue warnings
4607 # or remarks (even with -Werror). So we grep stderr for any message
4608 # that says an option was ignored or not supported.
4609 # When given -MP, icc 7.0 and 7.1 complain thusly:
4610 # icc: Command line warning: ignoring option '-M'; no argument required
4611 # The diagnosis changed in icc 8.0:
4612 # icc: Command line remark: option '-MP' not supported
4613 if (grep 'ignoring option' conftest.err ||
4614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4615 am_cv_CC_dependencies_compiler_type=$depmode
4616 break
4617 fi
4618 fi
4619 done
4620
4621 cd ..
4622 rm -rf conftest.dir
4623 else
4624 am_cv_CC_dependencies_compiler_type=none
4625 fi
4626
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4629 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4631
4632 if
4633 test "x$enable_dependency_tracking" != xno \
4634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4635 am__fastdepCC_TRUE=
4636 am__fastdepCC_FALSE='#'
4637 else
4638 am__fastdepCC_TRUE='#'
4639 am__fastdepCC_FALSE=
4640 fi
4641
4642
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4644 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4645 if ${ac_cv_path_SED+:} false; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4649 for ac_i in 1 2 3 4 5 6 7; do
4650 ac_script="$ac_script$as_nl$ac_script"
4651 done
4652 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4653 { ac_script=; unset ac_script;}
4654 if test -z "$SED"; then
4655 ac_path_SED_found=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_prog in sed gsed; do
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4665 as_fn_executable_p "$ac_path_SED" || continue
4666 # Check for GNU ac_path_SED and select it if it is found.
4667 # Check for GNU $ac_path_SED
4668 case `"$ac_path_SED" --version 2>&1` in
4669 *GNU*)
4670 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4671 *)
4672 ac_count=0
4673 $as_echo_n 0123456789 >"conftest.in"
4674 while :
4675 do
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo '' >> "conftest.nl"
4680 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682 as_fn_arith $ac_count + 1 && ac_count=$as_val
4683 if test $ac_count -gt ${ac_path_SED_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_SED="$ac_path_SED"
4686 ac_path_SED_max=$ac_count
4687 fi
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4690 done
4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4692 esac
4693
4694 $ac_path_SED_found && break 3
4695 done
4696 done
4697 done
4698 IFS=$as_save_IFS
4699 if test -z "$ac_cv_path_SED"; then
4700 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4701 fi
4702 else
4703 ac_cv_path_SED=$SED
4704 fi
4705
4706 fi
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4708 $as_echo "$ac_cv_path_SED" >&6; }
4709 SED="$ac_cv_path_SED"
4710 rm -f conftest.sed
4711
4712 test -z "$SED" && SED=sed
4713 Xsed="$SED -e 1s/^X//"
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4726 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4727 if ${ac_cv_path_GREP+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -z "$GREP"; then
4731 ac_path_GREP_found=false
4732 # Loop through the user's path and test for each of PROGNAME-LIST
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4735 do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_prog in grep ggrep; do
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4741 as_fn_executable_p "$ac_path_GREP" || continue
4742 # Check for GNU ac_path_GREP and select it if it is found.
4743 # Check for GNU $ac_path_GREP
4744 case `"$ac_path_GREP" --version 2>&1` in
4745 *GNU*)
4746 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4747 *)
4748 ac_count=0
4749 $as_echo_n 0123456789 >"conftest.in"
4750 while :
4751 do
4752 cat "conftest.in" "conftest.in" >"conftest.tmp"
4753 mv "conftest.tmp" "conftest.in"
4754 cp "conftest.in" "conftest.nl"
4755 $as_echo 'GREP' >> "conftest.nl"
4756 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4758 as_fn_arith $ac_count + 1 && ac_count=$as_val
4759 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4760 # Best one so far, save it but keep looking for a better one
4761 ac_cv_path_GREP="$ac_path_GREP"
4762 ac_path_GREP_max=$ac_count
4763 fi
4764 # 10*(2^10) chars as input seems more than enough
4765 test $ac_count -gt 10 && break
4766 done
4767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4768 esac
4769
4770 $ac_path_GREP_found && break 3
4771 done
4772 done
4773 done
4774 IFS=$as_save_IFS
4775 if test -z "$ac_cv_path_GREP"; then
4776 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4777 fi
4778 else
4779 ac_cv_path_GREP=$GREP
4780 fi
4781
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4784 $as_echo "$ac_cv_path_GREP" >&6; }
4785 GREP="$ac_cv_path_GREP"
4786
4787
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4789 $as_echo_n "checking for egrep... " >&6; }
4790 if ${ac_cv_path_EGREP+:} false; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4794 then ac_cv_path_EGREP="$GREP -E"
4795 else
4796 if test -z "$EGREP"; then
4797 ac_path_EGREP_found=false
4798 # Loop through the user's path and test for each of PROGNAME-LIST
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4801 do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_prog in egrep; do
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4807 as_fn_executable_p "$ac_path_EGREP" || continue
4808 # Check for GNU ac_path_EGREP and select it if it is found.
4809 # Check for GNU $ac_path_EGREP
4810 case `"$ac_path_EGREP" --version 2>&1` in
4811 *GNU*)
4812 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4813 *)
4814 ac_count=0
4815 $as_echo_n 0123456789 >"conftest.in"
4816 while :
4817 do
4818 cat "conftest.in" "conftest.in" >"conftest.tmp"
4819 mv "conftest.tmp" "conftest.in"
4820 cp "conftest.in" "conftest.nl"
4821 $as_echo 'EGREP' >> "conftest.nl"
4822 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4823 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4824 as_fn_arith $ac_count + 1 && ac_count=$as_val
4825 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4826 # Best one so far, save it but keep looking for a better one
4827 ac_cv_path_EGREP="$ac_path_EGREP"
4828 ac_path_EGREP_max=$ac_count
4829 fi
4830 # 10*(2^10) chars as input seems more than enough
4831 test $ac_count -gt 10 && break
4832 done
4833 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4834 esac
4835
4836 $ac_path_EGREP_found && break 3
4837 done
4838 done
4839 done
4840 IFS=$as_save_IFS
4841 if test -z "$ac_cv_path_EGREP"; then
4842 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4843 fi
4844 else
4845 ac_cv_path_EGREP=$EGREP
4846 fi
4847
4848 fi
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4851 $as_echo "$ac_cv_path_EGREP" >&6; }
4852 EGREP="$ac_cv_path_EGREP"
4853
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4856 $as_echo_n "checking for fgrep... " >&6; }
4857 if ${ac_cv_path_FGREP+:} false; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4861 then ac_cv_path_FGREP="$GREP -F"
4862 else
4863 if test -z "$FGREP"; then
4864 ac_path_FGREP_found=false
4865 # Loop through the user's path and test for each of PROGNAME-LIST
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4868 do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_prog in fgrep; do
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4874 as_fn_executable_p "$ac_path_FGREP" || continue
4875 # Check for GNU ac_path_FGREP and select it if it is found.
4876 # Check for GNU $ac_path_FGREP
4877 case `"$ac_path_FGREP" --version 2>&1` in
4878 *GNU*)
4879 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4880 *)
4881 ac_count=0
4882 $as_echo_n 0123456789 >"conftest.in"
4883 while :
4884 do
4885 cat "conftest.in" "conftest.in" >"conftest.tmp"
4886 mv "conftest.tmp" "conftest.in"
4887 cp "conftest.in" "conftest.nl"
4888 $as_echo 'FGREP' >> "conftest.nl"
4889 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4891 as_fn_arith $ac_count + 1 && ac_count=$as_val
4892 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4893 # Best one so far, save it but keep looking for a better one
4894 ac_cv_path_FGREP="$ac_path_FGREP"
4895 ac_path_FGREP_max=$ac_count
4896 fi
4897 # 10*(2^10) chars as input seems more than enough
4898 test $ac_count -gt 10 && break
4899 done
4900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4901 esac
4902
4903 $ac_path_FGREP_found && break 3
4904 done
4905 done
4906 done
4907 IFS=$as_save_IFS
4908 if test -z "$ac_cv_path_FGREP"; then
4909 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4910 fi
4911 else
4912 ac_cv_path_FGREP=$FGREP
4913 fi
4914
4915 fi
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4918 $as_echo "$ac_cv_path_FGREP" >&6; }
4919 FGREP="$ac_cv_path_FGREP"
4920
4921
4922 test -z "$GREP" && GREP=grep
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942 # Check whether --with-gnu-ld was given.
4943 if test "${with_gnu_ld+set}" = set; then :
4944 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4945 else
4946 with_gnu_ld=no
4947 fi
4948
4949 ac_prog=ld
4950 if test yes = "$GCC"; then
4951 # Check if gcc -print-prog-name=ld gives a path.
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4953 $as_echo_n "checking for ld used by $CC... " >&6; }
4954 case $host in
4955 *-*-mingw*)
4956 # gcc leaves a trailing carriage return, which upsets mingw
4957 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4958 *)
4959 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4960 esac
4961 case $ac_prog in
4962 # Accept absolute paths.
4963 [\\/]* | ?:[\\/]*)
4964 re_direlt='/[^/][^/]*/\.\./'
4965 # Canonicalize the pathname of ld
4966 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4967 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4968 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4969 done
4970 test -z "$LD" && LD=$ac_prog
4971 ;;
4972 "")
4973 # If it fails, then pretend we aren't using GCC.
4974 ac_prog=ld
4975 ;;
4976 *)
4977 # If it is relative, then search for the first ld in PATH.
4978 with_gnu_ld=unknown
4979 ;;
4980 esac
4981 elif test yes = "$with_gnu_ld"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4983 $as_echo_n "checking for GNU ld... " >&6; }
4984 else
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4986 $as_echo_n "checking for non-GNU ld... " >&6; }
4987 fi
4988 if ${lt_cv_path_LD+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -z "$LD"; then
4992 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4993 for ac_dir in $PATH; do
4994 IFS=$lt_save_ifs
4995 test -z "$ac_dir" && ac_dir=.
4996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4997 lt_cv_path_LD=$ac_dir/$ac_prog
4998 # Check to see if the program is GNU ld. I'd rather use --version,
4999 # but apparently some variants of GNU ld only accept -v.
5000 # Break only if it was the GNU/non-GNU ld that we prefer.
5001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5002 *GNU* | *'with BFD'*)
5003 test no != "$with_gnu_ld" && break
5004 ;;
5005 *)
5006 test yes != "$with_gnu_ld" && break
5007 ;;
5008 esac
5009 fi
5010 done
5011 IFS=$lt_save_ifs
5012 else
5013 lt_cv_path_LD=$LD # Let the user override the test with a path.
5014 fi
5015 fi
5016
5017 LD=$lt_cv_path_LD
5018 if test -n "$LD"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5020 $as_echo "$LD" >&6; }
5021 else
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5027 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5028 if ${lt_cv_prog_gnu_ld+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5032 case `$LD -v 2>&1 </dev/null` in
5033 *GNU* | *'with BFD'*)
5034 lt_cv_prog_gnu_ld=yes
5035 ;;
5036 *)
5037 lt_cv_prog_gnu_ld=no
5038 ;;
5039 esac
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5042 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5043 with_gnu_ld=$lt_cv_prog_gnu_ld
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5054 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5055 if ${lt_cv_path_NM+:} false; then :
5056 $as_echo_n "(cached) " >&6
5057 else
5058 if test -n "$NM"; then
5059 # Let the user override the test.
5060 lt_cv_path_NM=$NM
5061 else
5062 lt_nm_to_check=${ac_tool_prefix}nm
5063 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5064 lt_nm_to_check="$lt_nm_to_check nm"
5065 fi
5066 for lt_tmp_nm in $lt_nm_to_check; do
5067 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5068 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5069 IFS=$lt_save_ifs
5070 test -z "$ac_dir" && ac_dir=.
5071 tmp_nm=$ac_dir/$lt_tmp_nm
5072 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5073 # Check to see if the nm accepts a BSD-compat flag.
5074 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5075 # nm: unknown option "B" ignored
5076 # Tru64's nm complains that /dev/null is an invalid object file
5077 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5078 case $build_os in
5079 mingw*) lt_bad_file=conftest.nm/nofile ;;
5080 *) lt_bad_file=/dev/null ;;
5081 esac
5082 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5083 *$lt_bad_file* | *'Invalid file or object type'*)
5084 lt_cv_path_NM="$tmp_nm -B"
5085 break 2
5086 ;;
5087 *)
5088 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5089 */dev/null*)
5090 lt_cv_path_NM="$tmp_nm -p"
5091 break 2
5092 ;;
5093 *)
5094 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5095 continue # so that we can try to find one that supports BSD flags
5096 ;;
5097 esac
5098 ;;
5099 esac
5100 fi
5101 done
5102 IFS=$lt_save_ifs
5103 done
5104 : ${lt_cv_path_NM=no}
5105 fi
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5108 $as_echo "$lt_cv_path_NM" >&6; }
5109 if test no != "$lt_cv_path_NM"; then
5110 NM=$lt_cv_path_NM
5111 else
5112 # Didn't find any BSD compatible name lister, look for dumpbin.
5113 if test -n "$DUMPBIN"; then :
5114 # Let the user override the test.
5115 else
5116 if test -n "$ac_tool_prefix"; then
5117 for ac_prog in dumpbin "link -dump"
5118 do
5119 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_DUMPBIN+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -n "$DUMPBIN"; then
5127 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5139 fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 DUMPBIN=$ac_cv_prog_DUMPBIN
5147 if test -n "$DUMPBIN"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5149 $as_echo "$DUMPBIN" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155
5156 test -n "$DUMPBIN" && break
5157 done
5158 fi
5159 if test -z "$DUMPBIN"; then
5160 ac_ct_DUMPBIN=$DUMPBIN
5161 for ac_prog in dumpbin "link -dump"
5162 do
5163 # Extract the first word of "$ac_prog", so it can be a program name with args.
5164 set dummy $ac_prog; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$ac_ct_DUMPBIN"; then
5171 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5191 if test -n "$ac_ct_DUMPBIN"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5193 $as_echo "$ac_ct_DUMPBIN" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 test -n "$ac_ct_DUMPBIN" && break
5201 done
5202
5203 if test "x$ac_ct_DUMPBIN" = x; then
5204 DUMPBIN=":"
5205 else
5206 case $cross_compiling:$ac_tool_warned in
5207 yes:)
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned=yes ;;
5211 esac
5212 DUMPBIN=$ac_ct_DUMPBIN
5213 fi
5214 fi
5215
5216 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5217 *COFF*)
5218 DUMPBIN="$DUMPBIN -symbols -headers"
5219 ;;
5220 *)
5221 DUMPBIN=:
5222 ;;
5223 esac
5224 fi
5225
5226 if test : != "$DUMPBIN"; then
5227 NM=$DUMPBIN
5228 fi
5229 fi
5230 test -z "$NM" && NM=nm
5231
5232
5233
5234
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5238 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5239 if ${lt_cv_nm_interface+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 lt_cv_nm_interface="BSD nm"
5243 echo "int some_variable = 0;" > conftest.$ac_ext
5244 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5245 (eval "$ac_compile" 2>conftest.err)
5246 cat conftest.err >&5
5247 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5248 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5249 cat conftest.err >&5
5250 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5251 cat conftest.out >&5
5252 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5253 lt_cv_nm_interface="MS dumpbin"
5254 fi
5255 rm -f conftest*
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5258 $as_echo "$lt_cv_nm_interface" >&6; }
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5261 $as_echo_n "checking whether ln -s works... " >&6; }
5262 LN_S=$as_ln_s
5263 if test "$LN_S" = "ln -s"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5265 $as_echo "yes" >&6; }
5266 else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5268 $as_echo "no, using $LN_S" >&6; }
5269 fi
5270
5271 # find the maximum length of command line arguments
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5273 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5274 if ${lt_cv_sys_max_cmd_len+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 i=0
5278 teststring=ABCD
5279
5280 case $build_os in
5281 msdosdjgpp*)
5282 # On DJGPP, this test can blow up pretty badly due to problems in libc
5283 # (any single argument exceeding 2000 bytes causes a buffer overrun
5284 # during glob expansion). Even if it were fixed, the result of this
5285 # check would be larger than it should be.
5286 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5287 ;;
5288
5289 gnu*)
5290 # Under GNU Hurd, this test is not required because there is
5291 # no limit to the length of command line arguments.
5292 # Libtool will interpret -1 as no limit whatsoever
5293 lt_cv_sys_max_cmd_len=-1;
5294 ;;
5295
5296 cygwin* | mingw* | cegcc*)
5297 # On Win9x/ME, this test blows up -- it succeeds, but takes
5298 # about 5 minutes as the teststring grows exponentially.
5299 # Worse, since 9x/ME are not pre-emptively multitasking,
5300 # you end up with a "frozen" computer, even though with patience
5301 # the test eventually succeeds (with a max line length of 256k).
5302 # Instead, let's just punt: use the minimum linelength reported by
5303 # all of the supported platforms: 8192 (on NT/2K/XP).
5304 lt_cv_sys_max_cmd_len=8192;
5305 ;;
5306
5307 mint*)
5308 # On MiNT this can take a long time and run out of memory.
5309 lt_cv_sys_max_cmd_len=8192;
5310 ;;
5311
5312 amigaos*)
5313 # On AmigaOS with pdksh, this test takes hours, literally.
5314 # So we just punt and use a minimum line length of 8192.
5315 lt_cv_sys_max_cmd_len=8192;
5316 ;;
5317
5318 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5319 # This has been around since 386BSD, at least. Likely further.
5320 if test -x /sbin/sysctl; then
5321 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5322 elif test -x /usr/sbin/sysctl; then
5323 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5324 else
5325 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5326 fi
5327 # And add a safety zone
5328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5330 ;;
5331
5332 interix*)
5333 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5334 lt_cv_sys_max_cmd_len=196608
5335 ;;
5336
5337 os2*)
5338 # The test takes a long time on OS/2.
5339 lt_cv_sys_max_cmd_len=8192
5340 ;;
5341
5342 osf*)
5343 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5344 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5345 # nice to cause kernel panics so lets avoid the loop below.
5346 # First set a reasonable default.
5347 lt_cv_sys_max_cmd_len=16384
5348 #
5349 if test -x /sbin/sysconfig; then
5350 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5351 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352 esac
5353 fi
5354 ;;
5355 sco3.2v5*)
5356 lt_cv_sys_max_cmd_len=102400
5357 ;;
5358 sysv5* | sco5v6* | sysv4.2uw2*)
5359 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5360 if test -n "$kargmax"; then
5361 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5362 else
5363 lt_cv_sys_max_cmd_len=32768
5364 fi
5365 ;;
5366 *)
5367 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5368 if test -n "$lt_cv_sys_max_cmd_len" && \
5369 test undefined != "$lt_cv_sys_max_cmd_len"; then
5370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5372 else
5373 # Make teststring a little bigger before we do anything with it.
5374 # a 1K string should be a reasonable start.
5375 for i in 1 2 3 4 5 6 7 8; do
5376 teststring=$teststring$teststring
5377 done
5378 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5379 # If test is not a shell built-in, we'll probably end up computing a
5380 # maximum length that is only half of the actual maximum length, but
5381 # we can't tell.
5382 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5383 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5384 test 17 != "$i" # 1/2 MB should be enough
5385 do
5386 i=`expr $i + 1`
5387 teststring=$teststring$teststring
5388 done
5389 # Only check the string length outside the loop.
5390 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5391 teststring=
5392 # Add a significant safety factor because C++ compilers can tack on
5393 # massive amounts of additional arguments before passing them to the
5394 # linker. It appears as though 1/2 is a usable value.
5395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5396 fi
5397 ;;
5398 esac
5399
5400 fi
5401
5402 if test -n "$lt_cv_sys_max_cmd_len"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5404 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5407 $as_echo "none" >&6; }
5408 fi
5409 max_cmd_len=$lt_cv_sys_max_cmd_len
5410
5411
5412
5413
5414
5415
5416 : ${CP="cp -f"}
5417 : ${MV="mv -f"}
5418 : ${RM="rm -f"}
5419
5420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5421 lt_unset=unset
5422 else
5423 lt_unset=false
5424 fi
5425
5426
5427
5428
5429
5430 # test EBCDIC or ASCII
5431 case `echo X|tr X '\101'` in
5432 A) # ASCII based system
5433 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5434 lt_SP2NL='tr \040 \012'
5435 lt_NL2SP='tr \015\012 \040\040'
5436 ;;
5437 *) # EBCDIC based system
5438 lt_SP2NL='tr \100 \n'
5439 lt_NL2SP='tr \r\n \100\100'
5440 ;;
5441 esac
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5452 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5453 if ${lt_cv_to_host_file_cmd+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 case $host in
5457 *-*-mingw* )
5458 case $build in
5459 *-*-mingw* ) # actually msys
5460 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5461 ;;
5462 *-*-cygwin* )
5463 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5464 ;;
5465 * ) # otherwise, assume *nix
5466 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5467 ;;
5468 esac
5469 ;;
5470 *-*-cygwin* )
5471 case $build in
5472 *-*-mingw* ) # actually msys
5473 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5474 ;;
5475 *-*-cygwin* )
5476 lt_cv_to_host_file_cmd=func_convert_file_noop
5477 ;;
5478 * ) # otherwise, assume *nix
5479 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5480 ;;
5481 esac
5482 ;;
5483 * ) # unhandled hosts (and "normal" native builds)
5484 lt_cv_to_host_file_cmd=func_convert_file_noop
5485 ;;
5486 esac
5487
5488 fi
5489
5490 to_host_file_cmd=$lt_cv_to_host_file_cmd
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5492 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5493
5494
5495
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5499 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5500 if ${lt_cv_to_tool_file_cmd+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 #assume ordinary cross tools, or native build.
5504 lt_cv_to_tool_file_cmd=func_convert_file_noop
5505 case $host in
5506 *-*-mingw* )
5507 case $build in
5508 *-*-mingw* ) # actually msys
5509 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5510 ;;
5511 esac
5512 ;;
5513 esac
5514
5515 fi
5516
5517 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5519 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5520
5521
5522
5523
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5526 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5527 if ${lt_cv_ld_reload_flag+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 lt_cv_ld_reload_flag='-r'
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5533 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5534 reload_flag=$lt_cv_ld_reload_flag
5535 case $reload_flag in
5536 "" | " "*) ;;
5537 *) reload_flag=" $reload_flag" ;;
5538 esac
5539 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5540 case $host_os in
5541 cygwin* | mingw* | pw32* | cegcc*)
5542 if test yes != "$GCC"; then
5543 reload_cmds=false
5544 fi
5545 ;;
5546 darwin*)
5547 if test yes = "$GCC"; then
5548 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5549 else
5550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5551 fi
5552 ;;
5553 esac
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563 if test -n "$ac_tool_prefix"; then
5564 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5565 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_OBJDUMP+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$OBJDUMP"; then
5572 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 OBJDUMP=$ac_cv_prog_OBJDUMP
5592 if test -n "$OBJDUMP"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5594 $as_echo "$OBJDUMP" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 fi
5602 if test -z "$ac_cv_prog_OBJDUMP"; then
5603 ac_ct_OBJDUMP=$OBJDUMP
5604 # Extract the first word of "objdump", so it can be a program name with args.
5605 set dummy objdump; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if test -n "$ac_ct_OBJDUMP"; then
5612 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625 done
5626 done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5632 if test -n "$ac_ct_OBJDUMP"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5634 $as_echo "$ac_ct_OBJDUMP" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640 if test "x$ac_ct_OBJDUMP" = x; then
5641 OBJDUMP="false"
5642 else
5643 case $cross_compiling:$ac_tool_warned in
5644 yes:)
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5647 ac_tool_warned=yes ;;
5648 esac
5649 OBJDUMP=$ac_ct_OBJDUMP
5650 fi
5651 else
5652 OBJDUMP="$ac_cv_prog_OBJDUMP"
5653 fi
5654
5655 test -z "$OBJDUMP" && OBJDUMP=objdump
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5666 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5667 if ${lt_cv_deplibs_check_method+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669 else
5670 lt_cv_file_magic_cmd='$MAGIC_CMD'
5671 lt_cv_file_magic_test_file=
5672 lt_cv_deplibs_check_method='unknown'
5673 # Need to set the preceding variable on all platforms that support
5674 # interlibrary dependencies.
5675 # 'none' -- dependencies not supported.
5676 # 'unknown' -- same as none, but documents that we really don't know.
5677 # 'pass_all' -- all dependencies passed with no checks.
5678 # 'test_compile' -- check by making test program.
5679 # 'file_magic [[regex]]' -- check by looking for files in library path
5680 # that responds to the $file_magic_cmd with a given extended regex.
5681 # If you have 'file' or equivalent on your system and you're not sure
5682 # whether 'pass_all' will *always* work, you probably want this one.
5683
5684 case $host_os in
5685 aix[4-9]*)
5686 lt_cv_deplibs_check_method=pass_all
5687 ;;
5688
5689 beos*)
5690 lt_cv_deplibs_check_method=pass_all
5691 ;;
5692
5693 bsdi[45]*)
5694 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5695 lt_cv_file_magic_cmd='/usr/bin/file -L'
5696 lt_cv_file_magic_test_file=/shlib/libc.so
5697 ;;
5698
5699 cygwin*)
5700 # func_win32_libid is a shell function defined in ltmain.sh
5701 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5702 lt_cv_file_magic_cmd='func_win32_libid'
5703 ;;
5704
5705 mingw* | pw32*)
5706 # Base MSYS/MinGW do not provide the 'file' command needed by
5707 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5708 # unless we find 'file', for example because we are cross-compiling.
5709 if ( file / ) >/dev/null 2>&1; then
5710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5711 lt_cv_file_magic_cmd='func_win32_libid'
5712 else
5713 # Keep this pattern in sync with the one in func_win32_libid.
5714 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5715 lt_cv_file_magic_cmd='$OBJDUMP -f'
5716 fi
5717 ;;
5718
5719 cegcc*)
5720 # use the weaker test based on 'objdump'. See mingw*.
5721 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5722 lt_cv_file_magic_cmd='$OBJDUMP -f'
5723 ;;
5724
5725 darwin* | rhapsody*)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728
5729 freebsd* | dragonfly*)
5730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5731 case $host_cpu in
5732 i*86 )
5733 # Not sure whether the presence of OpenBSD here was a mistake.
5734 # Let's accept both of them until this is cleared up.
5735 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5736 lt_cv_file_magic_cmd=/usr/bin/file
5737 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5738 ;;
5739 esac
5740 else
5741 lt_cv_deplibs_check_method=pass_all
5742 fi
5743 ;;
5744
5745 haiku*)
5746 lt_cv_deplibs_check_method=pass_all
5747 ;;
5748
5749 hpux10.20* | hpux11*)
5750 lt_cv_file_magic_cmd=/usr/bin/file
5751 case $host_cpu in
5752 ia64*)
5753 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5754 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5755 ;;
5756 hppa*64*)
5757 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5758 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5759 ;;
5760 *)
5761 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5762 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5763 ;;
5764 esac
5765 ;;
5766
5767 interix[3-9]*)
5768 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5769 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5770 ;;
5771
5772 irix5* | irix6* | nonstopux*)
5773 case $LD in
5774 *-32|*"-32 ") libmagic=32-bit;;
5775 *-n32|*"-n32 ") libmagic=N32;;
5776 *-64|*"-64 ") libmagic=64-bit;;
5777 *) libmagic=never-match;;
5778 esac
5779 lt_cv_deplibs_check_method=pass_all
5780 ;;
5781
5782 # This must be glibc/ELF.
5783 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787 netbsd* | netbsdelf*-gnu)
5788 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5790 else
5791 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5792 fi
5793 ;;
5794
5795 newos6*)
5796 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5797 lt_cv_file_magic_cmd=/usr/bin/file
5798 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5799 ;;
5800
5801 *nto* | *qnx*)
5802 lt_cv_deplibs_check_method=pass_all
5803 ;;
5804
5805 openbsd* | bitrig*)
5806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5808 else
5809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5810 fi
5811 ;;
5812
5813 osf3* | osf4* | osf5*)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816
5817 rdos*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820
5821 solaris*)
5822 lt_cv_deplibs_check_method=pass_all
5823 ;;
5824
5825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5826 lt_cv_deplibs_check_method=pass_all
5827 ;;
5828
5829 sysv4 | sysv4.3*)
5830 case $host_vendor in
5831 motorola)
5832 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]'
5833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5834 ;;
5835 ncr)
5836 lt_cv_deplibs_check_method=pass_all
5837 ;;
5838 sequent)
5839 lt_cv_file_magic_cmd='/bin/file'
5840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5841 ;;
5842 sni)
5843 lt_cv_file_magic_cmd='/bin/file'
5844 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5845 lt_cv_file_magic_test_file=/lib/libc.so
5846 ;;
5847 siemens)
5848 lt_cv_deplibs_check_method=pass_all
5849 ;;
5850 pc)
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853 esac
5854 ;;
5855
5856 tpf*)
5857 lt_cv_deplibs_check_method=pass_all
5858 ;;
5859 os2*)
5860 lt_cv_deplibs_check_method=pass_all
5861 ;;
5862 esac
5863
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5866 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5867
5868 file_magic_glob=
5869 want_nocaseglob=no
5870 if test "$build" = "$host"; then
5871 case $host_os in
5872 mingw* | pw32*)
5873 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5874 want_nocaseglob=yes
5875 else
5876 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5877 fi
5878 ;;
5879 esac
5880 fi
5881
5882 file_magic_cmd=$lt_cv_file_magic_cmd
5883 deplibs_check_method=$lt_cv_deplibs_check_method
5884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5909 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_DLLTOOL+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$DLLTOOL"; then
5916 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929 done
5930 done
5931 IFS=$as_save_IFS
5932
5933 fi
5934 fi
5935 DLLTOOL=$ac_cv_prog_DLLTOOL
5936 if test -n "$DLLTOOL"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5938 $as_echo "$DLLTOOL" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944
5945 fi
5946 if test -z "$ac_cv_prog_DLLTOOL"; then
5947 ac_ct_DLLTOOL=$DLLTOOL
5948 # Extract the first word of "dlltool", so it can be a program name with args.
5949 set dummy dlltool; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$ac_ct_DLLTOOL"; then
5956 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969 done
5970 done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5976 if test -n "$ac_ct_DLLTOOL"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5978 $as_echo "$ac_ct_DLLTOOL" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984 if test "x$ac_ct_DLLTOOL" = x; then
5985 DLLTOOL="false"
5986 else
5987 case $cross_compiling:$ac_tool_warned in
5988 yes:)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993 DLLTOOL=$ac_ct_DLLTOOL
5994 fi
5995 else
5996 DLLTOOL="$ac_cv_prog_DLLTOOL"
5997 fi
5998
5999 test -z "$DLLTOOL" && DLLTOOL=dlltool
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6011 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6012 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 lt_cv_sharedlib_from_linklib_cmd='unknown'
6016
6017 case $host_os in
6018 cygwin* | mingw* | pw32* | cegcc*)
6019 # two different shell functions defined in ltmain.sh;
6020 # decide which one to use based on capabilities of $DLLTOOL
6021 case `$DLLTOOL --help 2>&1` in
6022 *--identify-strict*)
6023 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6024 ;;
6025 *)
6026 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6027 ;;
6028 esac
6029 ;;
6030 *)
6031 # fallback: assume linklib IS sharedlib
6032 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6033 ;;
6034 esac
6035
6036 fi
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6038 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6039 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6040 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6041
6042
6043
6044
6045
6046
6047
6048
6049 if test -n "$ac_tool_prefix"; then
6050 for ac_prog in ar
6051 do
6052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if ${ac_cv_prog_AR+:} false; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 if test -n "$AR"; then
6060 ac_cv_prog_AR="$AR" # Let the user override the test.
6061 else
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 for as_dir in $PATH
6064 do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073 done
6074 done
6075 IFS=$as_save_IFS
6076
6077 fi
6078 fi
6079 AR=$ac_cv_prog_AR
6080 if test -n "$AR"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6082 $as_echo "$AR" >&6; }
6083 else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6086 fi
6087
6088
6089 test -n "$AR" && break
6090 done
6091 fi
6092 if test -z "$AR"; then
6093 ac_ct_AR=$AR
6094 for ac_prog in ar
6095 do
6096 # Extract the first word of "$ac_prog", so it can be a program name with args.
6097 set dummy $ac_prog; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 if test -n "$ac_ct_AR"; then
6104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109 IFS=$as_save_IFS
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113 ac_cv_prog_ac_ct_AR="$ac_prog"
6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115 break 2
6116 fi
6117 done
6118 done
6119 IFS=$as_save_IFS
6120
6121 fi
6122 fi
6123 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6124 if test -n "$ac_ct_AR"; then
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6126 $as_echo "$ac_ct_AR" >&6; }
6127 else
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6130 fi
6131
6132
6133 test -n "$ac_ct_AR" && break
6134 done
6135
6136 if test "x$ac_ct_AR" = x; then
6137 AR="false"
6138 else
6139 case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145 AR=$ac_ct_AR
6146 fi
6147 fi
6148
6149 : ${AR=ar}
6150 : ${AR_FLAGS=cru}
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6163 $as_echo_n "checking for archiver @FILE support... " >&6; }
6164 if ${lt_cv_ar_at_file+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 lt_cv_ar_at_file=no
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170
6171 int
6172 main ()
6173 {
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180 echo conftest.$ac_objext > conftest.lst
6181 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6183 (eval $lt_ar_try) 2>&5
6184 ac_status=$?
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; }
6187 if test 0 -eq "$ac_status"; then
6188 # Ensure the archiver fails upon bogus file names.
6189 rm -f conftest.$ac_objext libconftest.a
6190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6191 (eval $lt_ar_try) 2>&5
6192 ac_status=$?
6193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194 test $ac_status = 0; }
6195 if test 0 -ne "$ac_status"; then
6196 lt_cv_ar_at_file=@
6197 fi
6198 fi
6199 rm -f conftest.* libconftest.a
6200
6201 fi
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203
6204 fi
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6206 $as_echo "$lt_cv_ar_at_file" >&6; }
6207
6208 if test no = "$lt_cv_ar_at_file"; then
6209 archiver_list_spec=
6210 else
6211 archiver_list_spec=$lt_cv_ar_at_file
6212 fi
6213
6214
6215
6216
6217
6218
6219
6220 if test -n "$ac_tool_prefix"; then
6221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6222 set dummy ${ac_tool_prefix}strip; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_STRIP+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$STRIP"; then
6229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 STRIP=$ac_cv_prog_STRIP
6249 if test -n "$STRIP"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6251 $as_echo "$STRIP" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257
6258 fi
6259 if test -z "$ac_cv_prog_STRIP"; then
6260 ac_ct_STRIP=$STRIP
6261 # Extract the first word of "strip", so it can be a program name with args.
6262 set dummy strip; ac_word=$2
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6264 $as_echo_n "checking for $ac_word... " >&6; }
6265 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 if test -n "$ac_ct_STRIP"; then
6269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6270 else
6271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6272 for as_dir in $PATH
6273 do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
6276 for ac_exec_ext in '' $ac_executable_extensions; do
6277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6278 ac_cv_prog_ac_ct_STRIP="strip"
6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6280 break 2
6281 fi
6282 done
6283 done
6284 IFS=$as_save_IFS
6285
6286 fi
6287 fi
6288 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6289 if test -n "$ac_ct_STRIP"; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6291 $as_echo "$ac_ct_STRIP" >&6; }
6292 else
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6294 $as_echo "no" >&6; }
6295 fi
6296
6297 if test "x$ac_ct_STRIP" = x; then
6298 STRIP=":"
6299 else
6300 case $cross_compiling:$ac_tool_warned in
6301 yes:)
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6304 ac_tool_warned=yes ;;
6305 esac
6306 STRIP=$ac_ct_STRIP
6307 fi
6308 else
6309 STRIP="$ac_cv_prog_STRIP"
6310 fi
6311
6312 test -z "$STRIP" && STRIP=:
6313
6314
6315
6316
6317
6318
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_RANLIB+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -n "$RANLIB"; then
6328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 RANLIB=$ac_cv_prog_RANLIB
6348 if test -n "$RANLIB"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6350 $as_echo "$RANLIB" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356
6357 fi
6358 if test -z "$ac_cv_prog_RANLIB"; then
6359 ac_ct_RANLIB=$RANLIB
6360 # Extract the first word of "ranlib", so it can be a program name with args.
6361 set dummy ranlib; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 if test -n "$ac_ct_RANLIB"; then
6368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_ac_ct_RANLIB="ranlib"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381 done
6382 done
6383 IFS=$as_save_IFS
6384
6385 fi
6386 fi
6387 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6388 if test -n "$ac_ct_RANLIB"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6390 $as_echo "$ac_ct_RANLIB" >&6; }
6391 else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6394 fi
6395
6396 if test "x$ac_ct_RANLIB" = x; then
6397 RANLIB=":"
6398 else
6399 case $cross_compiling:$ac_tool_warned in
6400 yes:)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6404 esac
6405 RANLIB=$ac_ct_RANLIB
6406 fi
6407 else
6408 RANLIB="$ac_cv_prog_RANLIB"
6409 fi
6410
6411 test -z "$RANLIB" && RANLIB=:
6412
6413
6414
6415
6416
6417
6418 # Determine commands to create old-style static archives.
6419 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6420 old_postinstall_cmds='chmod 644 $oldlib'
6421 old_postuninstall_cmds=
6422
6423 if test -n "$RANLIB"; then
6424 case $host_os in
6425 bitrig* | openbsd*)
6426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6427 ;;
6428 *)
6429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6430 ;;
6431 esac
6432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6433 fi
6434
6435 case $host_os in
6436 darwin*)
6437 lock_old_archive_extraction=yes ;;
6438 *)
6439 lock_old_archive_extraction=no ;;
6440 esac
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480 # If no C compiler was specified, use CC.
6481 LTCC=${LTCC-"$CC"}
6482
6483 # If no C compiler flags were specified, use CFLAGS.
6484 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6485
6486 # Allow CC to be a program name with arguments.
6487 compiler=$CC
6488
6489
6490 # Check for command to grab the raw symbol name followed by C symbol from nm.
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6492 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6493 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496
6497 # These are sane defaults that work on at least a few old systems.
6498 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6499
6500 # Character class describing NM global symbol codes.
6501 symcode='[BCDEGRST]'
6502
6503 # Regexp to match symbols that can be accessed directly from C.
6504 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6505
6506 # Define system-specific variables.
6507 case $host_os in
6508 aix*)
6509 symcode='[BCDT]'
6510 ;;
6511 cygwin* | mingw* | pw32* | cegcc*)
6512 symcode='[ABCDGISTW]'
6513 ;;
6514 hpux*)
6515 if test ia64 = "$host_cpu"; then
6516 symcode='[ABCDEGRST]'
6517 fi
6518 ;;
6519 irix* | nonstopux*)
6520 symcode='[BCDEGRST]'
6521 ;;
6522 osf*)
6523 symcode='[BCDEGQRST]'
6524 ;;
6525 solaris*)
6526 symcode='[BDRT]'
6527 ;;
6528 sco3.2v5*)
6529 symcode='[DT]'
6530 ;;
6531 sysv4.2uw2*)
6532 symcode='[DT]'
6533 ;;
6534 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6535 symcode='[ABDT]'
6536 ;;
6537 sysv4)
6538 symcode='[DFNSTU]'
6539 ;;
6540 esac
6541
6542 # If we're using GNU nm, then use its standard symbol codes.
6543 case `$NM -V 2>&1` in
6544 *GNU* | *'with BFD'*)
6545 symcode='[ABCDGIRSTW]' ;;
6546 esac
6547
6548 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6549 # Gets list of data symbols to import.
6550 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6551 # Adjust the below global symbol transforms to fixup imported variables.
6552 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6553 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6554 lt_c_name_lib_hook="\
6555 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6556 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6557 else
6558 # Disable hooks by default.
6559 lt_cv_sys_global_symbol_to_import=
6560 lt_cdecl_hook=
6561 lt_c_name_hook=
6562 lt_c_name_lib_hook=
6563 fi
6564
6565 # Transform an extracted symbol line into a proper C declaration.
6566 # Some systems (esp. on ia64) link data and code symbols differently,
6567 # so use this general approach.
6568 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6569 $lt_cdecl_hook\
6570 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6571 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6572
6573 # Transform an extracted symbol line into symbol name and symbol address
6574 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6575 $lt_c_name_hook\
6576 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6577 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6578
6579 # Transform an extracted symbol line into symbol name with lib prefix and
6580 # symbol address.
6581 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6582 $lt_c_name_lib_hook\
6583 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6584 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6585 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6586
6587 # Handle CRLF in mingw tool chain
6588 opt_cr=
6589 case $build_os in
6590 mingw*)
6591 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6592 ;;
6593 esac
6594
6595 # Try without a prefix underscore, then with it.
6596 for ac_symprfx in "" "_"; do
6597
6598 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6599 symxfrm="\\1 $ac_symprfx\\2 \\2"
6600
6601 # Write the raw and C identifiers.
6602 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6603 # Fake it for dumpbin and say T for any non-static function,
6604 # D for any global variable and I for any imported variable.
6605 # Also find C++ and __fastcall symbols from MSVC++,
6606 # which start with @ or ?.
6607 lt_cv_sys_global_symbol_pipe="$AWK '"\
6608 " {last_section=section; section=\$ 3};"\
6609 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6610 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6611 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6612 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6613 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6614 " \$ 0!~/External *\|/{next};"\
6615 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6616 " {if(hide[section]) next};"\
6617 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6618 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6619 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6620 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6621 " ' prfx=^$ac_symprfx"
6622 else
6623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6624 fi
6625 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6626
6627 # Check to see that the pipe works correctly.
6628 pipe_works=no
6629
6630 rm -f conftest*
6631 cat > conftest.$ac_ext <<_LT_EOF
6632 #ifdef __cplusplus
6633 extern "C" {
6634 #endif
6635 char nm_test_var;
6636 void nm_test_func(void);
6637 void nm_test_func(void){}
6638 #ifdef __cplusplus
6639 }
6640 #endif
6641 int main(){nm_test_var='a';nm_test_func();return(0);}
6642 _LT_EOF
6643
6644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648 test $ac_status = 0; }; then
6649 # Now try to grab the symbols.
6650 nlist=conftest.nm
6651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6652 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6655 test $ac_status = 0; } && test -s "$nlist"; then
6656 # Try sorting and uniquifying the output.
6657 if sort "$nlist" | uniq > "$nlist"T; then
6658 mv -f "$nlist"T "$nlist"
6659 else
6660 rm -f "$nlist"T
6661 fi
6662
6663 # Make sure that we snagged all the symbols we need.
6664 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6665 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6666 cat <<_LT_EOF > conftest.$ac_ext
6667 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6668 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6669 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6670 relocations are performed -- see ld's documentation on pseudo-relocs. */
6671 # define LT_DLSYM_CONST
6672 #elif defined __osf__
6673 /* This system does not cope well with relocations in const data. */
6674 # define LT_DLSYM_CONST
6675 #else
6676 # define LT_DLSYM_CONST const
6677 #endif
6678
6679 #ifdef __cplusplus
6680 extern "C" {
6681 #endif
6682
6683 _LT_EOF
6684 # Now generate the symbol file.
6685 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6686
6687 cat <<_LT_EOF >> conftest.$ac_ext
6688
6689 /* The mapping between symbol names and symbols. */
6690 LT_DLSYM_CONST struct {
6691 const char *name;
6692 void *address;
6693 }
6694 lt__PROGRAM__LTX_preloaded_symbols[] =
6695 {
6696 { "@PROGRAM@", (void *) 0 },
6697 _LT_EOF
6698 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6699 cat <<\_LT_EOF >> conftest.$ac_ext
6700 {0, (void *) 0}
6701 };
6702
6703 /* This works around a problem in FreeBSD linker */
6704 #ifdef FREEBSD_WORKAROUND
6705 static const void *lt_preloaded_setup() {
6706 return lt__PROGRAM__LTX_preloaded_symbols;
6707 }
6708 #endif
6709
6710 #ifdef __cplusplus
6711 }
6712 #endif
6713 _LT_EOF
6714 # Now try linking the two files.
6715 mv conftest.$ac_objext conftstm.$ac_objext
6716 lt_globsym_save_LIBS=$LIBS
6717 lt_globsym_save_CFLAGS=$CFLAGS
6718 LIBS=conftstm.$ac_objext
6719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6721 (eval $ac_link) 2>&5
6722 ac_status=$?
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6725 pipe_works=yes
6726 fi
6727 LIBS=$lt_globsym_save_LIBS
6728 CFLAGS=$lt_globsym_save_CFLAGS
6729 else
6730 echo "cannot find nm_test_func in $nlist" >&5
6731 fi
6732 else
6733 echo "cannot find nm_test_var in $nlist" >&5
6734 fi
6735 else
6736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6737 fi
6738 else
6739 echo "$progname: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6741 fi
6742 rm -rf conftest* conftst*
6743
6744 # Do not use the global_symbol_pipe unless it works.
6745 if test yes = "$pipe_works"; then
6746 break
6747 else
6748 lt_cv_sys_global_symbol_pipe=
6749 fi
6750 done
6751
6752 fi
6753
6754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6755 lt_cv_sys_global_symbol_to_cdecl=
6756 fi
6757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6759 $as_echo "failed" >&6; }
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6762 $as_echo "ok" >&6; }
6763 fi
6764
6765 # Response file support.
6766 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6767 nm_file_list_spec='@'
6768 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6769 nm_file_list_spec='@'
6770 fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6809 $as_echo_n "checking for sysroot... " >&6; }
6810
6811 # Check whether --with-sysroot was given.
6812 if test "${with_sysroot+set}" = set; then :
6813 withval=$with_sysroot;
6814 else
6815 with_sysroot=no
6816 fi
6817
6818
6819 lt_sysroot=
6820 case $with_sysroot in #(
6821 yes)
6822 if test yes = "$GCC"; then
6823 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6824 fi
6825 ;; #(
6826 /*)
6827 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6828 ;; #(
6829 no|'')
6830 ;; #(
6831 *)
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6833 $as_echo "$with_sysroot" >&6; }
6834 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6835 ;;
6836 esac
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6839 $as_echo "${lt_sysroot:-no}" >&6; }
6840
6841
6842
6843
6844
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6846 $as_echo_n "checking for a working dd... " >&6; }
6847 if ${ac_cv_path_lt_DD+:} false; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 printf 0123456789abcdef0123456789abcdef >conftest.i
6851 cat conftest.i conftest.i >conftest2.i
6852 : ${lt_DD:=$DD}
6853 if test -z "$lt_DD"; then
6854 ac_path_lt_DD_found=false
6855 # Loop through the user's path and test for each of PROGNAME-LIST
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859 IFS=$as_save_IFS
6860 test -z "$as_dir" && as_dir=.
6861 for ac_prog in dd; do
6862 for ac_exec_ext in '' $ac_executable_extensions; do
6863 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6864 as_fn_executable_p "$ac_path_lt_DD" || continue
6865 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6866 cmp -s conftest.i conftest.out \
6867 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6868 fi
6869 $ac_path_lt_DD_found && break 3
6870 done
6871 done
6872 done
6873 IFS=$as_save_IFS
6874 if test -z "$ac_cv_path_lt_DD"; then
6875 :
6876 fi
6877 else
6878 ac_cv_path_lt_DD=$lt_DD
6879 fi
6880
6881 rm -f conftest.i conftest2.i conftest.out
6882 fi
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6884 $as_echo "$ac_cv_path_lt_DD" >&6; }
6885
6886
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6888 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6889 if ${lt_cv_truncate_bin+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 printf 0123456789abcdef0123456789abcdef >conftest.i
6893 cat conftest.i conftest.i >conftest2.i
6894 lt_cv_truncate_bin=
6895 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6896 cmp -s conftest.i conftest.out \
6897 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6898 fi
6899 rm -f conftest.i conftest2.i conftest.out
6900 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6903 $as_echo "$lt_cv_truncate_bin" >&6; }
6904
6905
6906
6907
6908
6909
6910
6911 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6912 func_cc_basename ()
6913 {
6914 for cc_temp in $*""; do
6915 case $cc_temp in
6916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6918 \-*) ;;
6919 *) break;;
6920 esac
6921 done
6922 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6923 }
6924
6925 # Check whether --enable-libtool-lock was given.
6926 if test "${enable_libtool_lock+set}" = set; then :
6927 enableval=$enable_libtool_lock;
6928 fi
6929
6930 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6931
6932 # Some flags need to be propagated to the compiler or linker for good
6933 # libtool support.
6934 case $host in
6935 ia64-*-hpux*)
6936 # Find out what ABI is being produced by ac_compile, and set mode
6937 # options accordingly.
6938 echo 'int i;' > conftest.$ac_ext
6939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6940 (eval $ac_compile) 2>&5
6941 ac_status=$?
6942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943 test $ac_status = 0; }; then
6944 case `/usr/bin/file conftest.$ac_objext` in
6945 *ELF-32*)
6946 HPUX_IA64_MODE=32
6947 ;;
6948 *ELF-64*)
6949 HPUX_IA64_MODE=64
6950 ;;
6951 esac
6952 fi
6953 rm -rf conftest*
6954 ;;
6955 *-*-irix6*)
6956 # Find out what ABI is being produced by ac_compile, and set linker
6957 # options accordingly.
6958 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6960 (eval $ac_compile) 2>&5
6961 ac_status=$?
6962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6963 test $ac_status = 0; }; then
6964 if test yes = "$lt_cv_prog_gnu_ld"; then
6965 case `/usr/bin/file conftest.$ac_objext` in
6966 *32-bit*)
6967 LD="${LD-ld} -melf32bsmip"
6968 ;;
6969 *N32*)
6970 LD="${LD-ld} -melf32bmipn32"
6971 ;;
6972 *64-bit*)
6973 LD="${LD-ld} -melf64bmip"
6974 ;;
6975 esac
6976 else
6977 case `/usr/bin/file conftest.$ac_objext` in
6978 *32-bit*)
6979 LD="${LD-ld} -32"
6980 ;;
6981 *N32*)
6982 LD="${LD-ld} -n32"
6983 ;;
6984 *64-bit*)
6985 LD="${LD-ld} -64"
6986 ;;
6987 esac
6988 fi
6989 fi
6990 rm -rf conftest*
6991 ;;
6992
6993 mips64*-*linux*)
6994 # Find out what ABI is being produced by ac_compile, and set linker
6995 # options accordingly.
6996 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998 (eval $ac_compile) 2>&5
6999 ac_status=$?
7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001 test $ac_status = 0; }; then
7002 emul=elf
7003 case `/usr/bin/file conftest.$ac_objext` in
7004 *32-bit*)
7005 emul="${emul}32"
7006 ;;
7007 *64-bit*)
7008 emul="${emul}64"
7009 ;;
7010 esac
7011 case `/usr/bin/file conftest.$ac_objext` in
7012 *MSB*)
7013 emul="${emul}btsmip"
7014 ;;
7015 *LSB*)
7016 emul="${emul}ltsmip"
7017 ;;
7018 esac
7019 case `/usr/bin/file conftest.$ac_objext` in
7020 *N32*)
7021 emul="${emul}n32"
7022 ;;
7023 esac
7024 LD="${LD-ld} -m $emul"
7025 fi
7026 rm -rf conftest*
7027 ;;
7028
7029 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7030 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7031 # Find out what ABI is being produced by ac_compile, and set linker
7032 # options accordingly. Note that the listed cases only cover the
7033 # situations where additional linker options are needed (such as when
7034 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7035 # vice versa); the common cases where no linker options are needed do
7036 # not appear in the list.
7037 echo 'int i;' > conftest.$ac_ext
7038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7039 (eval $ac_compile) 2>&5
7040 ac_status=$?
7041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7042 test $ac_status = 0; }; then
7043 case `/usr/bin/file conftest.o` in
7044 *32-bit*)
7045 case $host in
7046 x86_64-*kfreebsd*-gnu)
7047 LD="${LD-ld} -m elf_i386_fbsd"
7048 ;;
7049 x86_64-*linux*)
7050 case `/usr/bin/file conftest.o` in
7051 *x86-64*)
7052 LD="${LD-ld} -m elf32_x86_64"
7053 ;;
7054 *)
7055 LD="${LD-ld} -m elf_i386"
7056 ;;
7057 esac
7058 ;;
7059 powerpc64le-*linux*)
7060 LD="${LD-ld} -m elf32lppclinux"
7061 ;;
7062 powerpc64-*linux*)
7063 LD="${LD-ld} -m elf32ppclinux"
7064 ;;
7065 s390x-*linux*)
7066 LD="${LD-ld} -m elf_s390"
7067 ;;
7068 sparc64-*linux*)
7069 LD="${LD-ld} -m elf32_sparc"
7070 ;;
7071 esac
7072 ;;
7073 *64-bit*)
7074 case $host in
7075 x86_64-*kfreebsd*-gnu)
7076 LD="${LD-ld} -m elf_x86_64_fbsd"
7077 ;;
7078 x86_64-*linux*)
7079 LD="${LD-ld} -m elf_x86_64"
7080 ;;
7081 powerpcle-*linux*)
7082 LD="${LD-ld} -m elf64lppc"
7083 ;;
7084 powerpc-*linux*)
7085 LD="${LD-ld} -m elf64ppc"
7086 ;;
7087 s390*-*linux*|s390*-*tpf*)
7088 LD="${LD-ld} -m elf64_s390"
7089 ;;
7090 sparc*-*linux*)
7091 LD="${LD-ld} -m elf64_sparc"
7092 ;;
7093 esac
7094 ;;
7095 esac
7096 fi
7097 rm -rf conftest*
7098 ;;
7099
7100 *-*-sco3.2v5*)
7101 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7102 SAVE_CFLAGS=$CFLAGS
7103 CFLAGS="$CFLAGS -belf"
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7105 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7106 if ${lt_cv_cc_needs_belf+:} false; then :
7107 $as_echo_n "(cached) " >&6
7108 else
7109 ac_ext=c
7110 ac_cpp='$CPP $CPPFLAGS'
7111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117
7118 int
7119 main ()
7120 {
7121
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_c_try_link "$LINENO"; then :
7127 lt_cv_cc_needs_belf=yes
7128 else
7129 lt_cv_cc_needs_belf=no
7130 fi
7131 rm -f core conftest.err conftest.$ac_objext \
7132 conftest$ac_exeext conftest.$ac_ext
7133 ac_ext=c
7134 ac_cpp='$CPP $CPPFLAGS'
7135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7141 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7142 if test yes != "$lt_cv_cc_needs_belf"; then
7143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7144 CFLAGS=$SAVE_CFLAGS
7145 fi
7146 ;;
7147 *-*solaris*)
7148 # Find out what ABI is being produced by ac_compile, and set linker
7149 # options accordingly.
7150 echo 'int i;' > conftest.$ac_ext
7151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7152 (eval $ac_compile) 2>&5
7153 ac_status=$?
7154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; }; then
7156 case `/usr/bin/file conftest.o` in
7157 *64-bit*)
7158 case $lt_cv_prog_gnu_ld in
7159 yes*)
7160 case $host in
7161 i?86-*-solaris*|x86_64-*-solaris*)
7162 LD="${LD-ld} -m elf_x86_64"
7163 ;;
7164 sparc*-*-solaris*)
7165 LD="${LD-ld} -m elf64_sparc"
7166 ;;
7167 esac
7168 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7169 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7170 LD=${LD-ld}_sol2
7171 fi
7172 ;;
7173 *)
7174 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7175 LD="${LD-ld} -64"
7176 fi
7177 ;;
7178 esac
7179 ;;
7180 esac
7181 fi
7182 rm -rf conftest*
7183 ;;
7184 esac
7185
7186 need_locks=$enable_libtool_lock
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}mt; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$MANIFEST_TOOL"; then
7197 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7217 if test -n "$MANIFEST_TOOL"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7219 $as_echo "$MANIFEST_TOOL" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7228 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7229 # Extract the first word of "mt", so it can be a program name with args.
7230 set dummy mt; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_MANIFEST_TOOL"; then
7237 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7257 if test -n "$ac_ct_MANIFEST_TOOL"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7259 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7266 MANIFEST_TOOL=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7275 fi
7276 else
7277 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7278 fi
7279
7280 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7282 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7283 if ${lt_cv_path_mainfest_tool+:} false; then :
7284 $as_echo_n "(cached) " >&6
7285 else
7286 lt_cv_path_mainfest_tool=no
7287 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7288 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7289 cat conftest.err >&5
7290 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7291 lt_cv_path_mainfest_tool=yes
7292 fi
7293 rm -f conftest*
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7296 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7297 if test yes != "$lt_cv_path_mainfest_tool"; then
7298 MANIFEST_TOOL=:
7299 fi
7300
7301
7302
7303
7304
7305
7306 case $host_os in
7307 rhapsody* | darwin*)
7308 if test -n "$ac_tool_prefix"; then
7309 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315 else
7316 if test -n "$DSYMUTIL"; then
7317 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330 done
7331 done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7337 if test -n "$DSYMUTIL"; then
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7339 $as_echo "$DSYMUTIL" >&6; }
7340 else
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345
7346 fi
7347 if test -z "$ac_cv_prog_DSYMUTIL"; then
7348 ac_ct_DSYMUTIL=$DSYMUTIL
7349 # Extract the first word of "dsymutil", so it can be a program name with args.
7350 set dummy dsymutil; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7354 $as_echo_n "(cached) " >&6
7355 else
7356 if test -n "$ac_ct_DSYMUTIL"; then
7357 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370 done
7371 done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7377 if test -n "$ac_ct_DSYMUTIL"; then
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7379 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7380 else
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385 if test "x$ac_ct_DSYMUTIL" = x; then
7386 DSYMUTIL=":"
7387 else
7388 case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394 DSYMUTIL=$ac_ct_DSYMUTIL
7395 fi
7396 else
7397 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7398 fi
7399
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_NMEDIT+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$NMEDIT"; then
7409 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 NMEDIT=$ac_cv_prog_NMEDIT
7429 if test -n "$NMEDIT"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7431 $as_echo "$NMEDIT" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_NMEDIT"; then
7440 ac_ct_NMEDIT=$NMEDIT
7441 # Extract the first word of "nmedit", so it can be a program name with args.
7442 set dummy nmedit; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 if test -n "$ac_ct_NMEDIT"; then
7449 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462 done
7463 done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7469 if test -n "$ac_ct_NMEDIT"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7471 $as_echo "$ac_ct_NMEDIT" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477 if test "x$ac_ct_NMEDIT" = x; then
7478 NMEDIT=":"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486 NMEDIT=$ac_ct_NMEDIT
7487 fi
7488 else
7489 NMEDIT="$ac_cv_prog_NMEDIT"
7490 fi
7491
7492 if test -n "$ac_tool_prefix"; then
7493 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_LIPO+:} false; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$LIPO"; then
7501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 LIPO=$ac_cv_prog_LIPO
7521 if test -n "$LIPO"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7523 $as_echo "$LIPO" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_LIPO"; then
7532 ac_ct_LIPO=$LIPO
7533 # Extract the first word of "lipo", so it can be a program name with args.
7534 set dummy lipo; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 if test -n "$ac_ct_LIPO"; then
7541 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550 ac_cv_prog_ac_ct_LIPO="lipo"
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554 done
7555 done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7561 if test -n "$ac_ct_LIPO"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7563 $as_echo "$ac_ct_LIPO" >&6; }
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569 if test "x$ac_ct_LIPO" = x; then
7570 LIPO=":"
7571 else
7572 case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578 LIPO=$ac_ct_LIPO
7579 fi
7580 else
7581 LIPO="$ac_cv_prog_LIPO"
7582 fi
7583
7584 if test -n "$ac_tool_prefix"; then
7585 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7586 set dummy ${ac_tool_prefix}otool; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_OTOOL+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -n "$OTOOL"; then
7593 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 OTOOL=$ac_cv_prog_OTOOL
7613 if test -n "$OTOOL"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7615 $as_echo "$OTOOL" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621
7622 fi
7623 if test -z "$ac_cv_prog_OTOOL"; then
7624 ac_ct_OTOOL=$OTOOL
7625 # Extract the first word of "otool", so it can be a program name with args.
7626 set dummy otool; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 if test -n "$ac_ct_OTOOL"; then
7633 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642 ac_cv_prog_ac_ct_OTOOL="otool"
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646 done
7647 done
7648 IFS=$as_save_IFS
7649
7650 fi
7651 fi
7652 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7653 if test -n "$ac_ct_OTOOL"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7655 $as_echo "$ac_ct_OTOOL" >&6; }
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7659 fi
7660
7661 if test "x$ac_ct_OTOOL" = x; then
7662 OTOOL=":"
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665 yes:)
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668 ac_tool_warned=yes ;;
7669 esac
7670 OTOOL=$ac_ct_OTOOL
7671 fi
7672 else
7673 OTOOL="$ac_cv_prog_OTOOL"
7674 fi
7675
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if ${ac_cv_prog_OTOOL64+:} false; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 if test -n "$OTOOL64"; then
7685 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7694 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 OTOOL64=$ac_cv_prog_OTOOL64
7705 if test -n "$OTOOL64"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7707 $as_echo "$OTOOL64" >&6; }
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713
7714 fi
7715 if test -z "$ac_cv_prog_OTOOL64"; then
7716 ac_ct_OTOOL64=$OTOOL64
7717 # Extract the first word of "otool64", so it can be a program name with args.
7718 set dummy otool64; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 if test -n "$ac_ct_OTOOL64"; then
7725 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7726 else
7727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728 for as_dir in $PATH
7729 do
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_ac_ct_OTOOL64="otool64"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738 done
7739 done
7740 IFS=$as_save_IFS
7741
7742 fi
7743 fi
7744 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7745 if test -n "$ac_ct_OTOOL64"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7747 $as_echo "$ac_ct_OTOOL64" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753 if test "x$ac_ct_OTOOL64" = x; then
7754 OTOOL64=":"
7755 else
7756 case $cross_compiling:$ac_tool_warned in
7757 yes:)
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760 ac_tool_warned=yes ;;
7761 esac
7762 OTOOL64=$ac_ct_OTOOL64
7763 fi
7764 else
7765 OTOOL64="$ac_cv_prog_OTOOL64"
7766 fi
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7795 $as_echo_n "checking for -single_module linker flag... " >&6; }
7796 if ${lt_cv_apple_cc_single_mod+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 lt_cv_apple_cc_single_mod=no
7800 if test -z "$LT_MULTI_MODULE"; then
7801 # By default we will add the -single_module flag. You can override
7802 # by either setting the environment variable LT_MULTI_MODULE
7803 # non-empty at configure time, or by adding -multi_module to the
7804 # link flags.
7805 rm -rf libconftest.dylib*
7806 echo "int foo(void){return 1;}" > conftest.c
7807 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7808 -dynamiclib -Wl,-single_module conftest.c" >&5
7809 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7810 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7811 _lt_result=$?
7812 # If there is a non-empty error log, and "single_module"
7813 # appears in it, assume the flag caused a linker warning
7814 if test -s conftest.err && $GREP single_module conftest.err; then
7815 cat conftest.err >&5
7816 # Otherwise, if the output was created with a 0 exit code from
7817 # the compiler, it worked.
7818 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7819 lt_cv_apple_cc_single_mod=yes
7820 else
7821 cat conftest.err >&5
7822 fi
7823 rm -rf libconftest.dylib*
7824 rm -f conftest.*
7825 fi
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7828 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7829
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7831 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7832 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 lt_cv_ld_exported_symbols_list=no
7836 save_LDFLAGS=$LDFLAGS
7837 echo "_main" > conftest.sym
7838 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841
7842 int
7843 main ()
7844 {
7845
7846 ;
7847 return 0;
7848 }
7849 _ACEOF
7850 if ac_fn_c_try_link "$LINENO"; then :
7851 lt_cv_ld_exported_symbols_list=yes
7852 else
7853 lt_cv_ld_exported_symbols_list=no
7854 fi
7855 rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
7857 LDFLAGS=$save_LDFLAGS
7858
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7861 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7862
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7864 $as_echo_n "checking for -force_load linker flag... " >&6; }
7865 if ${lt_cv_ld_force_load+:} false; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868 lt_cv_ld_force_load=no
7869 cat > conftest.c << _LT_EOF
7870 int forced_loaded() { return 2;}
7871 _LT_EOF
7872 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7873 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7874 echo "$AR cru libconftest.a conftest.o" >&5
7875 $AR cru libconftest.a conftest.o 2>&5
7876 echo "$RANLIB libconftest.a" >&5
7877 $RANLIB libconftest.a 2>&5
7878 cat > conftest.c << _LT_EOF
7879 int main() { return 0;}
7880 _LT_EOF
7881 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7882 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7883 _lt_result=$?
7884 if test -s conftest.err && $GREP force_load conftest.err; then
7885 cat conftest.err >&5
7886 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7887 lt_cv_ld_force_load=yes
7888 else
7889 cat conftest.err >&5
7890 fi
7891 rm -f conftest.err libconftest.a conftest conftest.c
7892 rm -rf conftest.dSYM
7893
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7896 $as_echo "$lt_cv_ld_force_load" >&6; }
7897 case $host_os in
7898 rhapsody* | darwin1.[012])
7899 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7900 darwin1.*)
7901 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7902 darwin*) # darwin 5.x on
7903 # if running on 10.5 or later, the deployment target defaults
7904 # to the OS version, if on x86, and 10.4, the deployment
7905 # target defaults to 10.4. Don't you love it?
7906 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7907 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7908 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7909 10.[012][,.]*)
7910 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7911 10.*)
7912 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7913 esac
7914 ;;
7915 esac
7916 if test yes = "$lt_cv_apple_cc_single_mod"; then
7917 _lt_dar_single_mod='$single_module'
7918 fi
7919 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7920 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7921 else
7922 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7923 fi
7924 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7925 _lt_dsymutil='~$DSYMUTIL $lib || :'
7926 else
7927 _lt_dsymutil=
7928 fi
7929 ;;
7930 esac
7931
7932 # func_munge_path_list VARIABLE PATH
7933 # -----------------------------------
7934 # VARIABLE is name of variable containing _space_ separated list of
7935 # directories to be munged by the contents of PATH, which is string
7936 # having a format:
7937 # "DIR[:DIR]:"
7938 # string "DIR[ DIR]" will be prepended to VARIABLE
7939 # ":DIR[:DIR]"
7940 # string "DIR[ DIR]" will be appended to VARIABLE
7941 # "DIRP[:DIRP]::[DIRA:]DIRA"
7942 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7943 # "DIRA[ DIRA]" will be appended to VARIABLE
7944 # "DIR[:DIR]"
7945 # VARIABLE will be replaced by "DIR[ DIR]"
7946 func_munge_path_list ()
7947 {
7948 case x$2 in
7949 x)
7950 ;;
7951 *:)
7952 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7953 ;;
7954 x:*)
7955 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7956 ;;
7957 *::*)
7958 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7959 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7960 ;;
7961 *)
7962 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7963 ;;
7964 esac
7965 }
7966
7967 ac_ext=c
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7973 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7974 # On Suns, sometimes $CPP names a directory.
7975 if test -n "$CPP" && test -d "$CPP"; then
7976 CPP=
7977 fi
7978 if test -z "$CPP"; then
7979 if ${ac_cv_prog_CPP+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981 else
7982 # Double quotes because CPP needs to be expanded
7983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7984 do
7985 ac_preproc_ok=false
7986 for ac_c_preproc_warn_flag in '' yes
7987 do
7988 # Use a header file that comes with gcc, so configuring glibc
7989 # with a fresh cross-compiler works.
7990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7991 # <limits.h> exists even on freestanding compilers.
7992 # On the NeXT, cc -E runs the code through the compiler's parser,
7993 # not just through cpp. "Syntax error" is here to catch this case.
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 #ifdef __STDC__
7997 # include <limits.h>
7998 #else
7999 # include <assert.h>
8000 #endif
8001 Syntax error
8002 _ACEOF
8003 if ac_fn_c_try_cpp "$LINENO"; then :
8004
8005 else
8006 # Broken: fails on valid input.
8007 continue
8008 fi
8009 rm -f conftest.err conftest.i conftest.$ac_ext
8010
8011 # OK, works on sane cases. Now check whether nonexistent headers
8012 # can be detected and how.
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8015 #include <ac_nonexistent.h>
8016 _ACEOF
8017 if ac_fn_c_try_cpp "$LINENO"; then :
8018 # Broken: success on invalid input.
8019 continue
8020 else
8021 # Passes both tests.
8022 ac_preproc_ok=:
8023 break
8024 fi
8025 rm -f conftest.err conftest.i conftest.$ac_ext
8026
8027 done
8028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8029 rm -f conftest.i conftest.err conftest.$ac_ext
8030 if $ac_preproc_ok; then :
8031 break
8032 fi
8033
8034 done
8035 ac_cv_prog_CPP=$CPP
8036
8037 fi
8038 CPP=$ac_cv_prog_CPP
8039 else
8040 ac_cv_prog_CPP=$CPP
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8043 $as_echo "$CPP" >&6; }
8044 ac_preproc_ok=false
8045 for ac_c_preproc_warn_flag in '' yes
8046 do
8047 # Use a header file that comes with gcc, so configuring glibc
8048 # with a fresh cross-compiler works.
8049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8050 # <limits.h> exists even on freestanding compilers.
8051 # On the NeXT, cc -E runs the code through the compiler's parser,
8052 # not just through cpp. "Syntax error" is here to catch this case.
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 #ifdef __STDC__
8056 # include <limits.h>
8057 #else
8058 # include <assert.h>
8059 #endif
8060 Syntax error
8061 _ACEOF
8062 if ac_fn_c_try_cpp "$LINENO"; then :
8063
8064 else
8065 # Broken: fails on valid input.
8066 continue
8067 fi
8068 rm -f conftest.err conftest.i conftest.$ac_ext
8069
8070 # OK, works on sane cases. Now check whether nonexistent headers
8071 # can be detected and how.
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8074 #include <ac_nonexistent.h>
8075 _ACEOF
8076 if ac_fn_c_try_cpp "$LINENO"; then :
8077 # Broken: success on invalid input.
8078 continue
8079 else
8080 # Passes both tests.
8081 ac_preproc_ok=:
8082 break
8083 fi
8084 rm -f conftest.err conftest.i conftest.$ac_ext
8085
8086 done
8087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8088 rm -f conftest.i conftest.err conftest.$ac_ext
8089 if $ac_preproc_ok; then :
8090
8091 else
8092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8094 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8095 See \`config.log' for more details" "$LINENO" 5; }
8096 fi
8097
8098 ac_ext=c
8099 ac_cpp='$CPP $CPPFLAGS'
8100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103
8104
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8106 $as_echo_n "checking for ANSI C header files... " >&6; }
8107 if ${ac_cv_header_stdc+:} false; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <stdlib.h>
8113 #include <stdarg.h>
8114 #include <string.h>
8115 #include <float.h>
8116
8117 int
8118 main ()
8119 {
8120
8121 ;
8122 return 0;
8123 }
8124 _ACEOF
8125 if ac_fn_c_try_compile "$LINENO"; then :
8126 ac_cv_header_stdc=yes
8127 else
8128 ac_cv_header_stdc=no
8129 fi
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131
8132 if test $ac_cv_header_stdc = yes; then
8133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 #include <string.h>
8137
8138 _ACEOF
8139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8140 $EGREP "memchr" >/dev/null 2>&1; then :
8141
8142 else
8143 ac_cv_header_stdc=no
8144 fi
8145 rm -f conftest*
8146
8147 fi
8148
8149 if test $ac_cv_header_stdc = yes; then
8150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8153 #include <stdlib.h>
8154
8155 _ACEOF
8156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8157 $EGREP "free" >/dev/null 2>&1; then :
8158
8159 else
8160 ac_cv_header_stdc=no
8161 fi
8162 rm -f conftest*
8163
8164 fi
8165
8166 if test $ac_cv_header_stdc = yes; then
8167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8168 if test "$cross_compiling" = yes; then :
8169 :
8170 else
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 #include <ctype.h>
8174 #include <stdlib.h>
8175 #if ((' ' & 0x0FF) == 0x020)
8176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8178 #else
8179 # define ISLOWER(c) \
8180 (('a' <= (c) && (c) <= 'i') \
8181 || ('j' <= (c) && (c) <= 'r') \
8182 || ('s' <= (c) && (c) <= 'z'))
8183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8184 #endif
8185
8186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8187 int
8188 main ()
8189 {
8190 int i;
8191 for (i = 0; i < 256; i++)
8192 if (XOR (islower (i), ISLOWER (i))
8193 || toupper (i) != TOUPPER (i))
8194 return 2;
8195 return 0;
8196 }
8197 _ACEOF
8198 if ac_fn_c_try_run "$LINENO"; then :
8199
8200 else
8201 ac_cv_header_stdc=no
8202 fi
8203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8204 conftest.$ac_objext conftest.beam conftest.$ac_ext
8205 fi
8206
8207 fi
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8210 $as_echo "$ac_cv_header_stdc" >&6; }
8211 if test $ac_cv_header_stdc = yes; then
8212
8213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8214
8215 fi
8216
8217 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8219 inttypes.h stdint.h unistd.h
8220 do :
8221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8222 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8223 "
8224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8225 cat >>confdefs.h <<_ACEOF
8226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8227 _ACEOF
8228
8229 fi
8230
8231 done
8232
8233
8234 for ac_header in dlfcn.h
8235 do :
8236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8237 "
8238 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8239 cat >>confdefs.h <<_ACEOF
8240 #define HAVE_DLFCN_H 1
8241 _ACEOF
8242
8243 fi
8244
8245 done
8246
8247
8248
8249
8250 func_stripname_cnf ()
8251 {
8252 case $2 in
8253 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8254 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8255 esac
8256 } # func_stripname_cnf
8257
8258
8259
8260
8261
8262 # Set options
8263
8264
8265
8266 enable_dlopen=no
8267
8268
8269 enable_win32_dll=no
8270
8271
8272 # Check whether --enable-shared was given.
8273 if test "${enable_shared+set}" = set; then :
8274 enableval=$enable_shared; p=${PACKAGE-default}
8275 case $enableval in
8276 yes) enable_shared=yes ;;
8277 no) enable_shared=no ;;
8278 *)
8279 enable_shared=no
8280 # Look at the argument we got. We use all the common list separators.
8281 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8282 for pkg in $enableval; do
8283 IFS=$lt_save_ifs
8284 if test "X$pkg" = "X$p"; then
8285 enable_shared=yes
8286 fi
8287 done
8288 IFS=$lt_save_ifs
8289 ;;
8290 esac
8291 else
8292 enable_shared=yes
8293 fi
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 # Check whether --enable-static was given.
8304 if test "${enable_static+set}" = set; then :
8305 enableval=$enable_static; p=${PACKAGE-default}
8306 case $enableval in
8307 yes) enable_static=yes ;;
8308 no) enable_static=no ;;
8309 *)
8310 enable_static=no
8311 # Look at the argument we got. We use all the common list separators.
8312 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8313 for pkg in $enableval; do
8314 IFS=$lt_save_ifs
8315 if test "X$pkg" = "X$p"; then
8316 enable_static=yes
8317 fi
8318 done
8319 IFS=$lt_save_ifs
8320 ;;
8321 esac
8322 else
8323 enable_static=yes
8324 fi
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335 # Check whether --with-pic was given.
8336 if test "${with_pic+set}" = set; then :
8337 withval=$with_pic; lt_p=${PACKAGE-default}
8338 case $withval in
8339 yes|no) pic_mode=$withval ;;
8340 *)
8341 pic_mode=default
8342 # Look at the argument we got. We use all the common list separators.
8343 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8344 for lt_pkg in $withval; do
8345 IFS=$lt_save_ifs
8346 if test "X$lt_pkg" = "X$lt_p"; then
8347 pic_mode=yes
8348 fi
8349 done
8350 IFS=$lt_save_ifs
8351 ;;
8352 esac
8353 else
8354 pic_mode=default
8355 fi
8356
8357
8358
8359
8360
8361
8362
8363
8364 # Check whether --enable-fast-install was given.
8365 if test "${enable_fast_install+set}" = set; then :
8366 enableval=$enable_fast_install; p=${PACKAGE-default}
8367 case $enableval in
8368 yes) enable_fast_install=yes ;;
8369 no) enable_fast_install=no ;;
8370 *)
8371 enable_fast_install=no
8372 # Look at the argument we got. We use all the common list separators.
8373 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8374 for pkg in $enableval; do
8375 IFS=$lt_save_ifs
8376 if test "X$pkg" = "X$p"; then
8377 enable_fast_install=yes
8378 fi
8379 done
8380 IFS=$lt_save_ifs
8381 ;;
8382 esac
8383 else
8384 enable_fast_install=yes
8385 fi
8386
8387
8388
8389
8390
8391
8392
8393
8394 shared_archive_member_spec=
8395 case $host,$enable_shared in
8396 power*-*-aix[5-9]*,yes)
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8398 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8399
8400 # Check whether --with-aix-soname was given.
8401 if test "${with_aix_soname+set}" = set; then :
8402 withval=$with_aix_soname; case $withval in
8403 aix|svr4|both)
8404 ;;
8405 *)
8406 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8407 ;;
8408 esac
8409 lt_cv_with_aix_soname=$with_aix_soname
8410 else
8411 if ${lt_cv_with_aix_soname+:} false; then :
8412 $as_echo_n "(cached) " >&6
8413 else
8414 lt_cv_with_aix_soname=aix
8415 fi
8416
8417 with_aix_soname=$lt_cv_with_aix_soname
8418 fi
8419
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8421 $as_echo "$with_aix_soname" >&6; }
8422 if test aix != "$with_aix_soname"; then
8423 # For the AIX way of multilib, we name the shared archive member
8424 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8425 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8426 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8427 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8428 if test 64 = "${OBJECT_MODE-32}"; then
8429 shared_archive_member_spec=shr_64
8430 else
8431 shared_archive_member_spec=shr
8432 fi
8433 fi
8434 ;;
8435 *)
8436 with_aix_soname=aix
8437 ;;
8438 esac
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449 # This can be used to rebuild libtool when needed
8450 LIBTOOL_DEPS=$ltmain
8451
8452 # Always use our own libtool.
8453 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484 test -z "$LN_S" && LN_S="ln -s"
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499 if test -n "${ZSH_VERSION+set}"; then
8500 setopt NO_GLOB_SUBST
8501 fi
8502
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8504 $as_echo_n "checking for objdir... " >&6; }
8505 if ${lt_cv_objdir+:} false; then :
8506 $as_echo_n "(cached) " >&6
8507 else
8508 rm -f .libs 2>/dev/null
8509 mkdir .libs 2>/dev/null
8510 if test -d .libs; then
8511 lt_cv_objdir=.libs
8512 else
8513 # MS-DOS does not allow filenames that begin with a dot.
8514 lt_cv_objdir=_libs
8515 fi
8516 rmdir .libs 2>/dev/null
8517 fi
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8519 $as_echo "$lt_cv_objdir" >&6; }
8520 objdir=$lt_cv_objdir
8521
8522
8523
8524
8525
8526 cat >>confdefs.h <<_ACEOF
8527 #define LT_OBJDIR "$lt_cv_objdir/"
8528 _ACEOF
8529
8530
8531
8532
8533 case $host_os in
8534 aix3*)
8535 # AIX sometimes has problems with the GCC collect2 program. For some
8536 # reason, if we set the COLLECT_NAMES environment variable, the problems
8537 # vanish in a puff of smoke.
8538 if test set != "${COLLECT_NAMES+set}"; then
8539 COLLECT_NAMES=
8540 export COLLECT_NAMES
8541 fi
8542 ;;
8543 esac
8544
8545 # Global variables:
8546 ofile=libtool
8547 can_build_shared=yes
8548
8549 # All known linkers require a '.a' archive for static linking (except MSVC,
8550 # which needs '.lib').
8551 libext=a
8552
8553 with_gnu_ld=$lt_cv_prog_gnu_ld
8554
8555 old_CC=$CC
8556 old_CFLAGS=$CFLAGS
8557
8558 # Set sane defaults for various variables
8559 test -z "$CC" && CC=cc
8560 test -z "$LTCC" && LTCC=$CC
8561 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8562 test -z "$LD" && LD=ld
8563 test -z "$ac_objext" && ac_objext=o
8564
8565 func_cc_basename $compiler
8566 cc_basename=$func_cc_basename_result
8567
8568
8569 # Only perform the check for file, if the check method requires it
8570 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8571 case $deplibs_check_method in
8572 file_magic*)
8573 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8575 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8576 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 case $MAGIC_CMD in
8580 [\\/*] | ?:[\\/]*)
8581 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8582 ;;
8583 *)
8584 lt_save_MAGIC_CMD=$MAGIC_CMD
8585 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8586 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8587 for ac_dir in $ac_dummy; do
8588 IFS=$lt_save_ifs
8589 test -z "$ac_dir" && ac_dir=.
8590 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8591 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8592 if test -n "$file_magic_test_file"; then
8593 case $deplibs_check_method in
8594 "file_magic "*)
8595 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8596 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8597 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8598 $EGREP "$file_magic_regex" > /dev/null; then
8599 :
8600 else
8601 cat <<_LT_EOF 1>&2
8602
8603 *** Warning: the command libtool uses to detect shared libraries,
8604 *** $file_magic_cmd, produces output that libtool cannot recognize.
8605 *** The result is that libtool may fail to recognize shared libraries
8606 *** as such. This will affect the creation of libtool libraries that
8607 *** depend on shared libraries, but programs linked with such libtool
8608 *** libraries will work regardless of this problem. Nevertheless, you
8609 *** may want to report the problem to your system manager and/or to
8610 *** bug-libtool@gnu.org
8611
8612 _LT_EOF
8613 fi ;;
8614 esac
8615 fi
8616 break
8617 fi
8618 done
8619 IFS=$lt_save_ifs
8620 MAGIC_CMD=$lt_save_MAGIC_CMD
8621 ;;
8622 esac
8623 fi
8624
8625 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8626 if test -n "$MAGIC_CMD"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8628 $as_echo "$MAGIC_CMD" >&6; }
8629 else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8632 fi
8633
8634
8635
8636
8637
8638 if test -z "$lt_cv_path_MAGIC_CMD"; then
8639 if test -n "$ac_tool_prefix"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8641 $as_echo_n "checking for file... " >&6; }
8642 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8643 $as_echo_n "(cached) " >&6
8644 else
8645 case $MAGIC_CMD in
8646 [\\/*] | ?:[\\/]*)
8647 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8648 ;;
8649 *)
8650 lt_save_MAGIC_CMD=$MAGIC_CMD
8651 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8652 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8653 for ac_dir in $ac_dummy; do
8654 IFS=$lt_save_ifs
8655 test -z "$ac_dir" && ac_dir=.
8656 if test -f "$ac_dir/file"; then
8657 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8658 if test -n "$file_magic_test_file"; then
8659 case $deplibs_check_method in
8660 "file_magic "*)
8661 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8662 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8663 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8664 $EGREP "$file_magic_regex" > /dev/null; then
8665 :
8666 else
8667 cat <<_LT_EOF 1>&2
8668
8669 *** Warning: the command libtool uses to detect shared libraries,
8670 *** $file_magic_cmd, produces output that libtool cannot recognize.
8671 *** The result is that libtool may fail to recognize shared libraries
8672 *** as such. This will affect the creation of libtool libraries that
8673 *** depend on shared libraries, but programs linked with such libtool
8674 *** libraries will work regardless of this problem. Nevertheless, you
8675 *** may want to report the problem to your system manager and/or to
8676 *** bug-libtool@gnu.org
8677
8678 _LT_EOF
8679 fi ;;
8680 esac
8681 fi
8682 break
8683 fi
8684 done
8685 IFS=$lt_save_ifs
8686 MAGIC_CMD=$lt_save_MAGIC_CMD
8687 ;;
8688 esac
8689 fi
8690
8691 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8692 if test -n "$MAGIC_CMD"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8694 $as_echo "$MAGIC_CMD" >&6; }
8695 else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8698 fi
8699
8700
8701 else
8702 MAGIC_CMD=:
8703 fi
8704 fi
8705
8706 fi
8707 ;;
8708 esac
8709
8710 # Use C for the default configuration in the libtool script
8711
8712 lt_save_CC=$CC
8713 ac_ext=c
8714 ac_cpp='$CPP $CPPFLAGS'
8715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718
8719
8720 # Source file extension for C test sources.
8721 ac_ext=c
8722
8723 # Object file extension for compiled C test sources.
8724 objext=o
8725 objext=$objext
8726
8727 # Code to be used in simple compile tests
8728 lt_simple_compile_test_code="int some_variable = 0;"
8729
8730 # Code to be used in simple link tests
8731 lt_simple_link_test_code='int main(){return(0);}'
8732
8733
8734
8735
8736
8737
8738
8739 # If no C compiler was specified, use CC.
8740 LTCC=${LTCC-"$CC"}
8741
8742 # If no C compiler flags were specified, use CFLAGS.
8743 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8744
8745 # Allow CC to be a program name with arguments.
8746 compiler=$CC
8747
8748 # Save the default compiler, since it gets overwritten when the other
8749 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8750 compiler_DEFAULT=$CC
8751
8752 # save warnings/boilerplate of simple test code
8753 ac_outfile=conftest.$ac_objext
8754 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8755 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8756 _lt_compiler_boilerplate=`cat conftest.err`
8757 $RM conftest*
8758
8759 ac_outfile=conftest.$ac_objext
8760 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8761 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8762 _lt_linker_boilerplate=`cat conftest.err`
8763 $RM -r conftest*
8764
8765
8766 ## CAVEAT EMPTOR:
8767 ## There is no encapsulation within the following macros, do not change
8768 ## the running order or otherwise move them around unless you know exactly
8769 ## what you are doing...
8770 if test -n "$compiler"; then
8771
8772 lt_prog_compiler_no_builtin_flag=
8773
8774 if test yes = "$GCC"; then
8775 case $cc_basename in
8776 nvcc*)
8777 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8778 *)
8779 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8780 esac
8781
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8783 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8784 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 lt_cv_prog_compiler_rtti_exceptions=no
8788 ac_outfile=conftest.$ac_objext
8789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8790 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8791 # Insert the option either (1) after the last *FLAGS variable, or
8792 # (2) before a word containing "conftest.", or (3) at the end.
8793 # Note that $ac_compile itself does not contain backslashes and begins
8794 # with a dollar sign (not a hyphen), so the echo should work correctly.
8795 # The option is referenced via a variable to avoid confusing sed.
8796 lt_compile=`echo "$ac_compile" | $SED \
8797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799 -e 's:$: $lt_compiler_flag:'`
8800 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8801 (eval "$lt_compile" 2>conftest.err)
8802 ac_status=$?
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 if (exit $ac_status) && test -s "$ac_outfile"; then
8806 # The compiler can only warn and ignore the option if not recognized
8807 # So say no if there are warnings other than the usual output.
8808 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_cv_prog_compiler_rtti_exceptions=yes
8812 fi
8813 fi
8814 $RM conftest*
8815
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8818 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8819
8820 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8821 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8822 else
8823 :
8824 fi
8825
8826 fi
8827
8828
8829
8830
8831
8832
8833 lt_prog_compiler_wl=
8834 lt_prog_compiler_pic=
8835 lt_prog_compiler_static=
8836
8837
8838 if test yes = "$GCC"; then
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_static='-static'
8841
8842 case $host_os in
8843 aix*)
8844 # All AIX code is PIC.
8845 if test ia64 = "$host_cpu"; then
8846 # AIX 5 now supports IA64 processor
8847 lt_prog_compiler_static='-Bstatic'
8848 fi
8849 lt_prog_compiler_pic='-fPIC'
8850 ;;
8851
8852 amigaos*)
8853 case $host_cpu in
8854 powerpc)
8855 # see comment about AmigaOS4 .so support
8856 lt_prog_compiler_pic='-fPIC'
8857 ;;
8858 m68k)
8859 # FIXME: we need at least 68020 code to build shared libraries, but
8860 # adding the '-m68020' flag to GCC prevents building anything better,
8861 # like '-m68040'.
8862 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8863 ;;
8864 esac
8865 ;;
8866
8867 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8868 # PIC is the default for these OSes.
8869 ;;
8870
8871 mingw* | cygwin* | pw32* | os2* | cegcc*)
8872 # This hack is so that the source file can tell whether it is being
8873 # built for inclusion in a dll (and should export symbols for example).
8874 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8875 # (--disable-auto-import) libraries
8876 lt_prog_compiler_pic='-DDLL_EXPORT'
8877 case $host_os in
8878 os2*)
8879 lt_prog_compiler_static='$wl-static'
8880 ;;
8881 esac
8882 ;;
8883
8884 darwin* | rhapsody*)
8885 # PIC is the default on this platform
8886 # Common symbols not allowed in MH_DYLIB files
8887 lt_prog_compiler_pic='-fno-common'
8888 ;;
8889
8890 haiku*)
8891 # PIC is the default for Haiku.
8892 # The "-static" flag exists, but is broken.
8893 lt_prog_compiler_static=
8894 ;;
8895
8896 hpux*)
8897 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8898 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8899 # sets the default TLS model and affects inlining.
8900 case $host_cpu in
8901 hppa*64*)
8902 # +Z the default
8903 ;;
8904 *)
8905 lt_prog_compiler_pic='-fPIC'
8906 ;;
8907 esac
8908 ;;
8909
8910 interix[3-9]*)
8911 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8912 # Instead, we relocate shared libraries at runtime.
8913 ;;
8914
8915 msdosdjgpp*)
8916 # Just because we use GCC doesn't mean we suddenly get shared libraries
8917 # on systems that don't support them.
8918 lt_prog_compiler_can_build_shared=no
8919 enable_shared=no
8920 ;;
8921
8922 *nto* | *qnx*)
8923 # QNX uses GNU C++, but need to define -shared option too, otherwise
8924 # it will coredump.
8925 lt_prog_compiler_pic='-fPIC -shared'
8926 ;;
8927
8928 sysv4*MP*)
8929 if test -d /usr/nec; then
8930 lt_prog_compiler_pic=-Kconform_pic
8931 fi
8932 ;;
8933
8934 *)
8935 lt_prog_compiler_pic='-fPIC'
8936 ;;
8937 esac
8938
8939 case $cc_basename in
8940 nvcc*) # Cuda Compiler Driver 2.2
8941 lt_prog_compiler_wl='-Xlinker '
8942 if test -n "$lt_prog_compiler_pic"; then
8943 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8944 fi
8945 ;;
8946 esac
8947 else
8948 # PORTME Check for flag to pass linker flags through the system compiler.
8949 case $host_os in
8950 aix*)
8951 lt_prog_compiler_wl='-Wl,'
8952 if test ia64 = "$host_cpu"; then
8953 # AIX 5 now supports IA64 processor
8954 lt_prog_compiler_static='-Bstatic'
8955 else
8956 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8957 fi
8958 ;;
8959
8960 darwin* | rhapsody*)
8961 # PIC is the default on this platform
8962 # Common symbols not allowed in MH_DYLIB files
8963 lt_prog_compiler_pic='-fno-common'
8964 case $cc_basename in
8965 nagfor*)
8966 # NAG Fortran compiler
8967 lt_prog_compiler_wl='-Wl,-Wl,,'
8968 lt_prog_compiler_pic='-PIC'
8969 lt_prog_compiler_static='-Bstatic'
8970 ;;
8971 esac
8972 ;;
8973
8974 mingw* | cygwin* | pw32* | os2* | cegcc*)
8975 # This hack is so that the source file can tell whether it is being
8976 # built for inclusion in a dll (and should export symbols for example).
8977 lt_prog_compiler_pic='-DDLL_EXPORT'
8978 case $host_os in
8979 os2*)
8980 lt_prog_compiler_static='$wl-static'
8981 ;;
8982 esac
8983 ;;
8984
8985 hpux9* | hpux10* | hpux11*)
8986 lt_prog_compiler_wl='-Wl,'
8987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8988 # not for PA HP-UX.
8989 case $host_cpu in
8990 hppa*64*|ia64*)
8991 # +Z the default
8992 ;;
8993 *)
8994 lt_prog_compiler_pic='+Z'
8995 ;;
8996 esac
8997 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8998 lt_prog_compiler_static='$wl-a ${wl}archive'
8999 ;;
9000
9001 irix5* | irix6* | nonstopux*)
9002 lt_prog_compiler_wl='-Wl,'
9003 # PIC (with -KPIC) is the default.
9004 lt_prog_compiler_static='-non_shared'
9005 ;;
9006
9007 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9008 case $cc_basename in
9009 # old Intel for x86_64, which still supported -KPIC.
9010 ecc*)
9011 lt_prog_compiler_wl='-Wl,'
9012 lt_prog_compiler_pic='-KPIC'
9013 lt_prog_compiler_static='-static'
9014 ;;
9015 # icc used to be incompatible with GCC.
9016 # ICC 10 doesn't accept -KPIC any more.
9017 icc* | ifort*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-fPIC'
9020 lt_prog_compiler_static='-static'
9021 ;;
9022 # Lahey Fortran 8.1.
9023 lf95*)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_pic='--shared'
9026 lt_prog_compiler_static='--static'
9027 ;;
9028 nagfor*)
9029 # NAG Fortran compiler
9030 lt_prog_compiler_wl='-Wl,-Wl,,'
9031 lt_prog_compiler_pic='-PIC'
9032 lt_prog_compiler_static='-Bstatic'
9033 ;;
9034 tcc*)
9035 # Fabrice Bellard et al's Tiny C Compiler
9036 lt_prog_compiler_wl='-Wl,'
9037 lt_prog_compiler_pic='-fPIC'
9038 lt_prog_compiler_static='-static'
9039 ;;
9040 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9041 # Portland Group compilers (*not* the Pentium gcc compiler,
9042 # which looks to be a dead project)
9043 lt_prog_compiler_wl='-Wl,'
9044 lt_prog_compiler_pic='-fpic'
9045 lt_prog_compiler_static='-Bstatic'
9046 ;;
9047 ccc*)
9048 lt_prog_compiler_wl='-Wl,'
9049 # All Alpha code is PIC.
9050 lt_prog_compiler_static='-non_shared'
9051 ;;
9052 xl* | bgxl* | bgf* | mpixl*)
9053 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9054 lt_prog_compiler_wl='-Wl,'
9055 lt_prog_compiler_pic='-qpic'
9056 lt_prog_compiler_static='-qstaticlink'
9057 ;;
9058 *)
9059 case `$CC -V 2>&1 | sed 5q` in
9060 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9061 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9062 lt_prog_compiler_pic='-KPIC'
9063 lt_prog_compiler_static='-Bstatic'
9064 lt_prog_compiler_wl=''
9065 ;;
9066 *Sun\ F* | *Sun*Fortran*)
9067 lt_prog_compiler_pic='-KPIC'
9068 lt_prog_compiler_static='-Bstatic'
9069 lt_prog_compiler_wl='-Qoption ld '
9070 ;;
9071 *Sun\ C*)
9072 # Sun C 5.9
9073 lt_prog_compiler_pic='-KPIC'
9074 lt_prog_compiler_static='-Bstatic'
9075 lt_prog_compiler_wl='-Wl,'
9076 ;;
9077 *Intel*\ [CF]*Compiler*)
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_pic='-fPIC'
9080 lt_prog_compiler_static='-static'
9081 ;;
9082 *Portland\ Group*)
9083 lt_prog_compiler_wl='-Wl,'
9084 lt_prog_compiler_pic='-fpic'
9085 lt_prog_compiler_static='-Bstatic'
9086 ;;
9087 esac
9088 ;;
9089 esac
9090 ;;
9091
9092 newsos6)
9093 lt_prog_compiler_pic='-KPIC'
9094 lt_prog_compiler_static='-Bstatic'
9095 ;;
9096
9097 *nto* | *qnx*)
9098 # QNX uses GNU C++, but need to define -shared option too, otherwise
9099 # it will coredump.
9100 lt_prog_compiler_pic='-fPIC -shared'
9101 ;;
9102
9103 osf3* | osf4* | osf5*)
9104 lt_prog_compiler_wl='-Wl,'
9105 # All OSF/1 code is PIC.
9106 lt_prog_compiler_static='-non_shared'
9107 ;;
9108
9109 rdos*)
9110 lt_prog_compiler_static='-non_shared'
9111 ;;
9112
9113 solaris*)
9114 lt_prog_compiler_pic='-KPIC'
9115 lt_prog_compiler_static='-Bstatic'
9116 case $cc_basename in
9117 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9118 lt_prog_compiler_wl='-Qoption ld ';;
9119 *)
9120 lt_prog_compiler_wl='-Wl,';;
9121 esac
9122 ;;
9123
9124 sunos4*)
9125 lt_prog_compiler_wl='-Qoption ld '
9126 lt_prog_compiler_pic='-PIC'
9127 lt_prog_compiler_static='-Bstatic'
9128 ;;
9129
9130 sysv4 | sysv4.2uw2* | sysv4.3*)
9131 lt_prog_compiler_wl='-Wl,'
9132 lt_prog_compiler_pic='-KPIC'
9133 lt_prog_compiler_static='-Bstatic'
9134 ;;
9135
9136 sysv4*MP*)
9137 if test -d /usr/nec; then
9138 lt_prog_compiler_pic='-Kconform_pic'
9139 lt_prog_compiler_static='-Bstatic'
9140 fi
9141 ;;
9142
9143 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9144 lt_prog_compiler_wl='-Wl,'
9145 lt_prog_compiler_pic='-KPIC'
9146 lt_prog_compiler_static='-Bstatic'
9147 ;;
9148
9149 unicos*)
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_can_build_shared=no
9152 ;;
9153
9154 uts4*)
9155 lt_prog_compiler_pic='-pic'
9156 lt_prog_compiler_static='-Bstatic'
9157 ;;
9158
9159 *)
9160 lt_prog_compiler_can_build_shared=no
9161 ;;
9162 esac
9163 fi
9164
9165 case $host_os in
9166 # For platforms that do not support PIC, -DPIC is meaningless:
9167 *djgpp*)
9168 lt_prog_compiler_pic=
9169 ;;
9170 *)
9171 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9172 ;;
9173 esac
9174
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9176 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9177 if ${lt_cv_prog_compiler_pic+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9181 fi
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9183 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9184 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9185
9186 #
9187 # Check to make sure the PIC flag actually works.
9188 #
9189 if test -n "$lt_prog_compiler_pic"; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9191 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9192 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 lt_cv_prog_compiler_pic_works=no
9196 ac_outfile=conftest.$ac_objext
9197 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9198 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9199 # Insert the option either (1) after the last *FLAGS variable, or
9200 # (2) before a word containing "conftest.", or (3) at the end.
9201 # Note that $ac_compile itself does not contain backslashes and begins
9202 # with a dollar sign (not a hyphen), so the echo should work correctly.
9203 # The option is referenced via a variable to avoid confusing sed.
9204 lt_compile=`echo "$ac_compile" | $SED \
9205 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9206 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9207 -e 's:$: $lt_compiler_flag:'`
9208 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9209 (eval "$lt_compile" 2>conftest.err)
9210 ac_status=$?
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 if (exit $ac_status) && test -s "$ac_outfile"; then
9214 # The compiler can only warn and ignore the option if not recognized
9215 # So say no if there are warnings other than the usual output.
9216 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9217 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9218 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9219 lt_cv_prog_compiler_pic_works=yes
9220 fi
9221 fi
9222 $RM conftest*
9223
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9226 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9227
9228 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9229 case $lt_prog_compiler_pic in
9230 "" | " "*) ;;
9231 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9232 esac
9233 else
9234 lt_prog_compiler_pic=
9235 lt_prog_compiler_can_build_shared=no
9236 fi
9237
9238 fi
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250 #
9251 # Check to make sure the static flag actually works.
9252 #
9253 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9255 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9256 if ${lt_cv_prog_compiler_static_works+:} false; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 lt_cv_prog_compiler_static_works=no
9260 save_LDFLAGS=$LDFLAGS
9261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9264 # The linker can only warn and ignore the option if not recognized
9265 # So say no if there are warnings
9266 if test -s conftest.err; then
9267 # Append any errors to the config.log.
9268 cat conftest.err 1>&5
9269 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9271 if diff conftest.exp conftest.er2 >/dev/null; then
9272 lt_cv_prog_compiler_static_works=yes
9273 fi
9274 else
9275 lt_cv_prog_compiler_static_works=yes
9276 fi
9277 fi
9278 $RM -r conftest*
9279 LDFLAGS=$save_LDFLAGS
9280
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9283 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9284
9285 if test yes = "$lt_cv_prog_compiler_static_works"; then
9286 :
9287 else
9288 lt_prog_compiler_static=
9289 fi
9290
9291
9292
9293
9294
9295
9296
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9298 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9299 if ${lt_cv_prog_compiler_c_o+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 lt_cv_prog_compiler_c_o=no
9303 $RM -r conftest 2>/dev/null
9304 mkdir conftest
9305 cd conftest
9306 mkdir out
9307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9308
9309 lt_compiler_flag="-o out/conftest2.$ac_objext"
9310 # Insert the option either (1) after the last *FLAGS variable, or
9311 # (2) before a word containing "conftest.", or (3) at the end.
9312 # Note that $ac_compile itself does not contain backslashes and begins
9313 # with a dollar sign (not a hyphen), so the echo should work correctly.
9314 lt_compile=`echo "$ac_compile" | $SED \
9315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9317 -e 's:$: $lt_compiler_flag:'`
9318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9319 (eval "$lt_compile" 2>out/conftest.err)
9320 ac_status=$?
9321 cat out/conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9324 then
9325 # The compiler can only warn and ignore the option if not recognized
9326 # So say no if there are warnings
9327 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9328 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9329 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9330 lt_cv_prog_compiler_c_o=yes
9331 fi
9332 fi
9333 chmod u+w . 2>&5
9334 $RM conftest*
9335 # SGI C++ compiler will create directory out/ii_files/ for
9336 # template instantiation
9337 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9338 $RM out/* && rmdir out
9339 cd ..
9340 $RM -r conftest
9341 $RM conftest*
9342
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9345 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9346
9347
9348
9349
9350
9351
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9353 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9354 if ${lt_cv_prog_compiler_c_o+:} false; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 lt_cv_prog_compiler_c_o=no
9358 $RM -r conftest 2>/dev/null
9359 mkdir conftest
9360 cd conftest
9361 mkdir out
9362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9363
9364 lt_compiler_flag="-o out/conftest2.$ac_objext"
9365 # Insert the option either (1) after the last *FLAGS variable, or
9366 # (2) before a word containing "conftest.", or (3) at the end.
9367 # Note that $ac_compile itself does not contain backslashes and begins
9368 # with a dollar sign (not a hyphen), so the echo should work correctly.
9369 lt_compile=`echo "$ac_compile" | $SED \
9370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372 -e 's:$: $lt_compiler_flag:'`
9373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9374 (eval "$lt_compile" 2>out/conftest.err)
9375 ac_status=$?
9376 cat out/conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9379 then
9380 # The compiler can only warn and ignore the option if not recognized
9381 # So say no if there are warnings
9382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler_c_o=yes
9386 fi
9387 fi
9388 chmod u+w . 2>&5
9389 $RM conftest*
9390 # SGI C++ compiler will create directory out/ii_files/ for
9391 # template instantiation
9392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9393 $RM out/* && rmdir out
9394 cd ..
9395 $RM -r conftest
9396 $RM conftest*
9397
9398 fi
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9400 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9401
9402
9403
9404
9405 hard_links=nottested
9406 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9407 # do not overwrite the value of need_locks provided by the user
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9409 $as_echo_n "checking if we can lock with hard links... " >&6; }
9410 hard_links=yes
9411 $RM conftest*
9412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9413 touch conftest.a
9414 ln conftest.a conftest.b 2>&5 || hard_links=no
9415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9417 $as_echo "$hard_links" >&6; }
9418 if test no = "$hard_links"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9420 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9421 need_locks=warn
9422 fi
9423 else
9424 need_locks=no
9425 fi
9426
9427
9428
9429
9430
9431
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9433 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9434
9435 runpath_var=
9436 allow_undefined_flag=
9437 always_export_symbols=no
9438 archive_cmds=
9439 archive_expsym_cmds=
9440 compiler_needs_object=no
9441 enable_shared_with_static_runtimes=no
9442 export_dynamic_flag_spec=
9443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9444 hardcode_automatic=no
9445 hardcode_direct=no
9446 hardcode_direct_absolute=no
9447 hardcode_libdir_flag_spec=
9448 hardcode_libdir_separator=
9449 hardcode_minus_L=no
9450 hardcode_shlibpath_var=unsupported
9451 inherit_rpath=no
9452 link_all_deplibs=unknown
9453 module_cmds=
9454 module_expsym_cmds=
9455 old_archive_from_new_cmds=
9456 old_archive_from_expsyms_cmds=
9457 thread_safe_flag_spec=
9458 whole_archive_flag_spec=
9459 # include_expsyms should be a list of space-separated symbols to be *always*
9460 # included in the symbol list
9461 include_expsyms=
9462 # exclude_expsyms can be an extended regexp of symbols to exclude
9463 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9464 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9465 # as well as any symbol that contains 'd'.
9466 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9467 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9468 # platforms (ab)use it in PIC code, but their linkers get confused if
9469 # the symbol is explicitly referenced. Since portable code cannot
9470 # rely on this symbol name, it's probably fine to never include it in
9471 # preloaded symbol tables.
9472 # Exclude shared library initialization/finalization symbols.
9473 extract_expsyms_cmds=
9474
9475 case $host_os in
9476 cygwin* | mingw* | pw32* | cegcc*)
9477 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9478 # When not using gcc, we currently assume that we are using
9479 # Microsoft Visual C++.
9480 if test yes != "$GCC"; then
9481 with_gnu_ld=no
9482 fi
9483 ;;
9484 interix*)
9485 # we just hope/assume this is gcc and not c89 (= MSVC++)
9486 with_gnu_ld=yes
9487 ;;
9488 openbsd* | bitrig*)
9489 with_gnu_ld=no
9490 ;;
9491 linux* | k*bsd*-gnu | gnu*)
9492 link_all_deplibs=no
9493 ;;
9494 esac
9495
9496 ld_shlibs=yes
9497
9498 # On some targets, GNU ld is compatible enough with the native linker
9499 # that we're better off using the native interface for both.
9500 lt_use_gnu_ld_interface=no
9501 if test yes = "$with_gnu_ld"; then
9502 case $host_os in
9503 aix*)
9504 # The AIX port of GNU ld has always aspired to compatibility
9505 # with the native linker. However, as the warning in the GNU ld
9506 # block says, versions before 2.19.5* couldn't really create working
9507 # shared libraries, regardless of the interface used.
9508 case `$LD -v 2>&1` in
9509 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9510 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9511 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9512 *)
9513 lt_use_gnu_ld_interface=yes
9514 ;;
9515 esac
9516 ;;
9517 *)
9518 lt_use_gnu_ld_interface=yes
9519 ;;
9520 esac
9521 fi
9522
9523 if test yes = "$lt_use_gnu_ld_interface"; then
9524 # If archive_cmds runs LD, not CC, wlarc should be empty
9525 wlarc='$wl'
9526
9527 # Set some defaults for GNU ld with shared library support. These
9528 # are reset later if shared libraries are not supported. Putting them
9529 # here allows them to be overridden if necessary.
9530 runpath_var=LD_RUN_PATH
9531 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9532 export_dynamic_flag_spec='$wl--export-dynamic'
9533 # ancient GNU ld didn't support --whole-archive et. al.
9534 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9535 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9536 else
9537 whole_archive_flag_spec=
9538 fi
9539 supports_anon_versioning=no
9540 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9541 *GNU\ gold*) supports_anon_versioning=yes ;;
9542 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9543 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9544 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9545 *\ 2.11.*) ;; # other 2.11 versions
9546 *) supports_anon_versioning=yes ;;
9547 esac
9548
9549 # See if GNU ld supports shared libraries.
9550 case $host_os in
9551 aix[3-9]*)
9552 # On AIX/PPC, the GNU linker is very broken
9553 if test ia64 != "$host_cpu"; then
9554 ld_shlibs=no
9555 cat <<_LT_EOF 1>&2
9556
9557 *** Warning: the GNU linker, at least up to release 2.19, is reported
9558 *** to be unable to reliably create shared libraries on AIX.
9559 *** Therefore, libtool is disabling shared libraries support. If you
9560 *** really care for shared libraries, you may want to install binutils
9561 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9562 *** You will then need to restart the configuration process.
9563
9564 _LT_EOF
9565 fi
9566 ;;
9567
9568 amigaos*)
9569 case $host_cpu in
9570 powerpc)
9571 # see comment about AmigaOS4 .so support
9572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9573 archive_expsym_cmds=''
9574 ;;
9575 m68k)
9576 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)'
9577 hardcode_libdir_flag_spec='-L$libdir'
9578 hardcode_minus_L=yes
9579 ;;
9580 esac
9581 ;;
9582
9583 beos*)
9584 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9585 allow_undefined_flag=unsupported
9586 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9587 # support --undefined. This deserves some investigation. FIXME
9588 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589 else
9590 ld_shlibs=no
9591 fi
9592 ;;
9593
9594 cygwin* | mingw* | pw32* | cegcc*)
9595 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9596 # as there is no search path for DLLs.
9597 hardcode_libdir_flag_spec='-L$libdir'
9598 export_dynamic_flag_spec='$wl--export-all-symbols'
9599 allow_undefined_flag=unsupported
9600 always_export_symbols=no
9601 enable_shared_with_static_runtimes=yes
9602 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9603 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9604
9605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9607 # If the export-symbols file already is a .def file, use it as
9608 # is; otherwise, prepend EXPORTS...
9609 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9610 cp $export_symbols $output_objdir/$soname.def;
9611 else
9612 echo EXPORTS > $output_objdir/$soname.def;
9613 cat $export_symbols >> $output_objdir/$soname.def;
9614 fi~
9615 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9616 else
9617 ld_shlibs=no
9618 fi
9619 ;;
9620
9621 haiku*)
9622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9623 link_all_deplibs=yes
9624 ;;
9625
9626 os2*)
9627 hardcode_libdir_flag_spec='-L$libdir'
9628 hardcode_minus_L=yes
9629 allow_undefined_flag=unsupported
9630 shrext_cmds=.dll
9631 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9632 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9633 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9634 $ECHO EXPORTS >> $output_objdir/$libname.def~
9635 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9636 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9637 emximp -o $lib $output_objdir/$libname.def'
9638 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9639 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9640 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9641 $ECHO EXPORTS >> $output_objdir/$libname.def~
9642 prefix_cmds="$SED"~
9643 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9644 prefix_cmds="$prefix_cmds -e 1d";
9645 fi~
9646 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9647 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9648 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9649 emximp -o $lib $output_objdir/$libname.def'
9650 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9651 enable_shared_with_static_runtimes=yes
9652 ;;
9653
9654 interix[3-9]*)
9655 hardcode_direct=no
9656 hardcode_shlibpath_var=no
9657 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9658 export_dynamic_flag_spec='$wl-E'
9659 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9660 # Instead, shared libraries are loaded at an image base (0x10000000 by
9661 # default) and relocated if they conflict, which is a slow very memory
9662 # consuming and fragmenting process. To avoid this, we pick a random,
9663 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9664 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9665 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9666 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'
9667 ;;
9668
9669 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9670 tmp_diet=no
9671 if test linux-dietlibc = "$host_os"; then
9672 case $cc_basename in
9673 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9674 esac
9675 fi
9676 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9677 && test no = "$tmp_diet"
9678 then
9679 tmp_addflag=' $pic_flag'
9680 tmp_sharedflag='-shared'
9681 case $cc_basename,$host_cpu in
9682 pgcc*) # Portland Group C compiler
9683 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9684 tmp_addflag=' $pic_flag'
9685 ;;
9686 pgf77* | pgf90* | pgf95* | pgfortran*)
9687 # Portland Group f77 and f90 compilers
9688 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9689 tmp_addflag=' $pic_flag -Mnomain' ;;
9690 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9691 tmp_addflag=' -i_dynamic' ;;
9692 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9693 tmp_addflag=' -i_dynamic -nofor_main' ;;
9694 ifc* | ifort*) # Intel Fortran compiler
9695 tmp_addflag=' -nofor_main' ;;
9696 lf95*) # Lahey Fortran 8.1
9697 whole_archive_flag_spec=
9698 tmp_sharedflag='--shared' ;;
9699 nagfor*) # NAGFOR 5.3
9700 tmp_sharedflag='-Wl,-shared' ;;
9701 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9702 tmp_sharedflag='-qmkshrobj'
9703 tmp_addflag= ;;
9704 nvcc*) # Cuda Compiler Driver 2.2
9705 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9706 compiler_needs_object=yes
9707 ;;
9708 esac
9709 case `$CC -V 2>&1 | sed 5q` in
9710 *Sun\ C*) # Sun C 5.9
9711 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9712 compiler_needs_object=yes
9713 tmp_sharedflag='-G' ;;
9714 *Sun\ F*) # Sun Fortran 8.3
9715 tmp_sharedflag='-G' ;;
9716 esac
9717 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9718
9719 if test yes = "$supports_anon_versioning"; then
9720 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9721 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9722 echo "local: *; };" >> $output_objdir/$libname.ver~
9723 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9724 fi
9725
9726 case $cc_basename in
9727 tcc*)
9728 export_dynamic_flag_spec='-rdynamic'
9729 ;;
9730 xlf* | bgf* | bgxlf* | mpixlf*)
9731 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9732 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9733 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9734 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9735 if test yes = "$supports_anon_versioning"; then
9736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9738 echo "local: *; };" >> $output_objdir/$libname.ver~
9739 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9740 fi
9741 ;;
9742 esac
9743 else
9744 ld_shlibs=no
9745 fi
9746 ;;
9747
9748 netbsd* | netbsdelf*-gnu)
9749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9750 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9751 wlarc=
9752 else
9753 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9754 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9755 fi
9756 ;;
9757
9758 solaris*)
9759 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9760 ld_shlibs=no
9761 cat <<_LT_EOF 1>&2
9762
9763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9764 *** create shared libraries on Solaris systems. Therefore, libtool
9765 *** is disabling shared libraries support. We urge you to upgrade GNU
9766 *** binutils to release 2.9.1 or newer. Another option is to modify
9767 *** your PATH or compiler configuration so that the native linker is
9768 *** used, and then restart.
9769
9770 _LT_EOF
9771 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9773 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9774 else
9775 ld_shlibs=no
9776 fi
9777 ;;
9778
9779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9780 case `$LD -v 2>&1` in
9781 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9782 ld_shlibs=no
9783 cat <<_LT_EOF 1>&2
9784
9785 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9786 *** reliably create shared libraries on SCO systems. Therefore, libtool
9787 *** is disabling shared libraries support. We urge you to upgrade GNU
9788 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9789 *** your PATH or compiler configuration so that the native linker is
9790 *** used, and then restart.
9791
9792 _LT_EOF
9793 ;;
9794 *)
9795 # For security reasons, it is highly recommended that you always
9796 # use absolute paths for naming shared libraries, and exclude the
9797 # DT_RUNPATH tag from executables and libraries. But doing so
9798 # requires that you compile everything twice, which is a pain.
9799 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9800 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9803 else
9804 ld_shlibs=no
9805 fi
9806 ;;
9807 esac
9808 ;;
9809
9810 sunos4*)
9811 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9812 wlarc=
9813 hardcode_direct=yes
9814 hardcode_shlibpath_var=no
9815 ;;
9816
9817 *)
9818 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9819 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9820 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9821 else
9822 ld_shlibs=no
9823 fi
9824 ;;
9825 esac
9826
9827 if test no = "$ld_shlibs"; then
9828 runpath_var=
9829 hardcode_libdir_flag_spec=
9830 export_dynamic_flag_spec=
9831 whole_archive_flag_spec=
9832 fi
9833 else
9834 # PORTME fill in a description of your system's linker (not GNU ld)
9835 case $host_os in
9836 aix3*)
9837 allow_undefined_flag=unsupported
9838 always_export_symbols=yes
9839 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9840 # Note: this linker hardcodes the directories in LIBPATH if there
9841 # are no directories specified by -L.
9842 hardcode_minus_L=yes
9843 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9844 # Neither direct hardcoding nor static linking is supported with a
9845 # broken collect2.
9846 hardcode_direct=unsupported
9847 fi
9848 ;;
9849
9850 aix[4-9]*)
9851 if test ia64 = "$host_cpu"; then
9852 # On IA64, the linker does run time linking by default, so we don't
9853 # have to do anything special.
9854 aix_use_runtimelinking=no
9855 exp_sym_flag='-Bexport'
9856 no_entry_flag=
9857 else
9858 # If we're using GNU nm, then we don't want the "-C" option.
9859 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9860 # Without the "-l" option, or with the "-B" option, AIX nm treats
9861 # weak defined symbols like other global defined symbols, whereas
9862 # GNU nm marks them as "W".
9863 # While the 'weak' keyword is ignored in the Export File, we need
9864 # it in the Import File for the 'aix-soname' feature, so we have
9865 # to replace the "-B" option with "-P" for AIX nm.
9866 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9867 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9868 else
9869 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9870 fi
9871 aix_use_runtimelinking=no
9872
9873 # Test if we are trying to use run time linking or normal
9874 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9875 # have runtime linking enabled, and use it for executables.
9876 # For shared libraries, we enable/disable runtime linking
9877 # depending on the kind of the shared library created -
9878 # when "with_aix_soname,aix_use_runtimelinking" is:
9879 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9880 # "aix,yes" lib.so shared, rtl:yes, for executables
9881 # lib.a static archive
9882 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9883 # lib.a(lib.so.V) shared, rtl:no, for executables
9884 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9885 # lib.a(lib.so.V) shared, rtl:no
9886 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9887 # lib.a static archive
9888 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9889 for ld_flag in $LDFLAGS; do
9890 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9891 aix_use_runtimelinking=yes
9892 break
9893 fi
9894 done
9895 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9896 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9897 # so we don't have lib.a shared libs to link our executables.
9898 # We have to force runtime linking in this case.
9899 aix_use_runtimelinking=yes
9900 LDFLAGS="$LDFLAGS -Wl,-brtl"
9901 fi
9902 ;;
9903 esac
9904
9905 exp_sym_flag='-bexport'
9906 no_entry_flag='-bnoentry'
9907 fi
9908
9909 # When large executables or shared objects are built, AIX ld can
9910 # have problems creating the table of contents. If linking a library
9911 # or program results in "error TOC overflow" add -mminimal-toc to
9912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9914
9915 archive_cmds=''
9916 hardcode_direct=yes
9917 hardcode_direct_absolute=yes
9918 hardcode_libdir_separator=':'
9919 link_all_deplibs=yes
9920 file_list_spec='$wl-f,'
9921 case $with_aix_soname,$aix_use_runtimelinking in
9922 aix,*) ;; # traditional, no import file
9923 svr4,* | *,yes) # use import file
9924 # The Import File defines what to hardcode.
9925 hardcode_direct=no
9926 hardcode_direct_absolute=no
9927 ;;
9928 esac
9929
9930 if test yes = "$GCC"; then
9931 case $host_os in aix4.[012]|aix4.[012].*)
9932 # We only want to do this on AIX 4.2 and lower, the check
9933 # below for broken collect2 doesn't work under 4.3+
9934 collect2name=`$CC -print-prog-name=collect2`
9935 if test -f "$collect2name" &&
9936 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9937 then
9938 # We have reworked collect2
9939 :
9940 else
9941 # We have old collect2
9942 hardcode_direct=unsupported
9943 # It fails to find uninstalled libraries when the uninstalled
9944 # path is not listed in the libpath. Setting hardcode_minus_L
9945 # to unsupported forces relinking
9946 hardcode_minus_L=yes
9947 hardcode_libdir_flag_spec='-L$libdir'
9948 hardcode_libdir_separator=
9949 fi
9950 ;;
9951 esac
9952 shared_flag='-shared'
9953 if test yes = "$aix_use_runtimelinking"; then
9954 shared_flag="$shared_flag "'$wl-G'
9955 fi
9956 # Need to ensure runtime linking is disabled for the traditional
9957 # shared library, or the linker may eventually find shared libraries
9958 # /with/ Import File - we do not want to mix them.
9959 shared_flag_aix='-shared'
9960 shared_flag_svr4='-shared $wl-G'
9961 else
9962 # not using gcc
9963 if test ia64 = "$host_cpu"; then
9964 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9965 # chokes on -Wl,-G. The following line is correct:
9966 shared_flag='-G'
9967 else
9968 if test yes = "$aix_use_runtimelinking"; then
9969 shared_flag='$wl-G'
9970 else
9971 shared_flag='$wl-bM:SRE'
9972 fi
9973 shared_flag_aix='$wl-bM:SRE'
9974 shared_flag_svr4='$wl-G'
9975 fi
9976 fi
9977
9978 export_dynamic_flag_spec='$wl-bexpall'
9979 # It seems that -bexpall does not export symbols beginning with
9980 # underscore (_), so it is better to generate a list of symbols to export.
9981 always_export_symbols=yes
9982 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9983 # Warning - without using the other runtime loading flags (-brtl),
9984 # -berok will link without error, but may produce a broken library.
9985 allow_undefined_flag='-berok'
9986 # Determine the default libpath from the value encoded in an
9987 # empty executable.
9988 if test set = "${lt_cv_aix_libpath+set}"; then
9989 aix_libpath=$lt_cv_aix_libpath
9990 else
9991 if ${lt_cv_aix_libpath_+:} false; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9996
9997 int
9998 main ()
9999 {
10000
10001 ;
10002 return 0;
10003 }
10004 _ACEOF
10005 if ac_fn_c_try_link "$LINENO"; then :
10006
10007 lt_aix_libpath_sed='
10008 /Import File Strings/,/^$/ {
10009 /^0/ {
10010 s/^0 *\([^ ]*\) *$/\1/
10011 p
10012 }
10013 }'
10014 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10015 # Check for a 64-bit object if we didn't find anything.
10016 if test -z "$lt_cv_aix_libpath_"; then
10017 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018 fi
10019 fi
10020 rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
10022 if test -z "$lt_cv_aix_libpath_"; then
10023 lt_cv_aix_libpath_=/usr/lib:/lib
10024 fi
10025
10026 fi
10027
10028 aix_libpath=$lt_cv_aix_libpath_
10029 fi
10030
10031 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10032 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10033 else
10034 if test ia64 = "$host_cpu"; then
10035 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10036 allow_undefined_flag="-z nodefs"
10037 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"
10038 else
10039 # Determine the default libpath from the value encoded in an
10040 # empty executable.
10041 if test set = "${lt_cv_aix_libpath+set}"; then
10042 aix_libpath=$lt_cv_aix_libpath
10043 else
10044 if ${lt_cv_aix_libpath_+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049
10050 int
10051 main ()
10052 {
10053
10054 ;
10055 return 0;
10056 }
10057 _ACEOF
10058 if ac_fn_c_try_link "$LINENO"; then :
10059
10060 lt_aix_libpath_sed='
10061 /Import File Strings/,/^$/ {
10062 /^0/ {
10063 s/^0 *\([^ ]*\) *$/\1/
10064 p
10065 }
10066 }'
10067 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10068 # Check for a 64-bit object if we didn't find anything.
10069 if test -z "$lt_cv_aix_libpath_"; then
10070 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10071 fi
10072 fi
10073 rm -f core conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075 if test -z "$lt_cv_aix_libpath_"; then
10076 lt_cv_aix_libpath_=/usr/lib:/lib
10077 fi
10078
10079 fi
10080
10081 aix_libpath=$lt_cv_aix_libpath_
10082 fi
10083
10084 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10085 # Warning - without using the other run time loading flags,
10086 # -berok will link without error, but may produce a broken library.
10087 no_undefined_flag=' $wl-bernotok'
10088 allow_undefined_flag=' $wl-berok'
10089 if test yes = "$with_gnu_ld"; then
10090 # We only use this code for GNU lds that support --whole-archive.
10091 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10092 else
10093 # Exported symbols can be pulled into shared objects from archives
10094 whole_archive_flag_spec='$convenience'
10095 fi
10096 archive_cmds_need_lc=yes
10097 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10098 # -brtl affects multiple linker settings, -berok does not and is overridden later
10099 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10100 if test svr4 != "$with_aix_soname"; then
10101 # This is similar to how AIX traditionally builds its shared libraries.
10102 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10103 fi
10104 if test aix != "$with_aix_soname"; then
10105 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10106 else
10107 # used by -dlpreopen to get the symbols
10108 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10109 fi
10110 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10111 fi
10112 fi
10113 ;;
10114
10115 amigaos*)
10116 case $host_cpu in
10117 powerpc)
10118 # see comment about AmigaOS4 .so support
10119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10120 archive_expsym_cmds=''
10121 ;;
10122 m68k)
10123 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)'
10124 hardcode_libdir_flag_spec='-L$libdir'
10125 hardcode_minus_L=yes
10126 ;;
10127 esac
10128 ;;
10129
10130 bsdi[45]*)
10131 export_dynamic_flag_spec=-rdynamic
10132 ;;
10133
10134 cygwin* | mingw* | pw32* | cegcc*)
10135 # When not using gcc, we currently assume that we are using
10136 # Microsoft Visual C++.
10137 # hardcode_libdir_flag_spec is actually meaningless, as there is
10138 # no search path for DLLs.
10139 case $cc_basename in
10140 cl*)
10141 # Native MSVC
10142 hardcode_libdir_flag_spec=' '
10143 allow_undefined_flag=unsupported
10144 always_export_symbols=yes
10145 file_list_spec='@'
10146 # Tell ltmain to make .lib files, not .a files.
10147 libext=lib
10148 # Tell ltmain to make .dll files, not .so files.
10149 shrext_cmds=.dll
10150 # FIXME: Setting linknames here is a bad hack.
10151 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10152 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10153 cp "$export_symbols" "$output_objdir/$soname.def";
10154 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10155 else
10156 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10157 fi~
10158 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10159 linknames='
10160 # The linker will not automatically build a static lib if we build a DLL.
10161 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10162 enable_shared_with_static_runtimes=yes
10163 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10165 # Don't use ranlib
10166 old_postinstall_cmds='chmod 644 $oldlib'
10167 postlink_cmds='lt_outputfile="@OUTPUT@"~
10168 lt_tool_outputfile="@TOOL_OUTPUT@"~
10169 case $lt_outputfile in
10170 *.exe|*.EXE) ;;
10171 *)
10172 lt_outputfile=$lt_outputfile.exe
10173 lt_tool_outputfile=$lt_tool_outputfile.exe
10174 ;;
10175 esac~
10176 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10177 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10178 $RM "$lt_outputfile.manifest";
10179 fi'
10180 ;;
10181 *)
10182 # Assume MSVC wrapper
10183 hardcode_libdir_flag_spec=' '
10184 allow_undefined_flag=unsupported
10185 # Tell ltmain to make .lib files, not .a files.
10186 libext=lib
10187 # Tell ltmain to make .dll files, not .so files.
10188 shrext_cmds=.dll
10189 # FIXME: Setting linknames here is a bad hack.
10190 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10191 # The linker will automatically build a .lib file if we build a DLL.
10192 old_archive_from_new_cmds='true'
10193 # FIXME: Should let the user specify the lib program.
10194 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10195 enable_shared_with_static_runtimes=yes
10196 ;;
10197 esac
10198 ;;
10199
10200 darwin* | rhapsody*)
10201
10202
10203 archive_cmds_need_lc=no
10204 hardcode_direct=no
10205 hardcode_automatic=yes
10206 hardcode_shlibpath_var=unsupported
10207 if test yes = "$lt_cv_ld_force_load"; then
10208 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10209
10210 else
10211 whole_archive_flag_spec=''
10212 fi
10213 link_all_deplibs=yes
10214 allow_undefined_flag=$_lt_dar_allow_undefined
10215 case $cc_basename in
10216 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10217 *) _lt_dar_can_shared=$GCC ;;
10218 esac
10219 if test yes = "$_lt_dar_can_shared"; then
10220 output_verbose_link_cmd=func_echo_all
10221 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10222 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10223 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10224 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10225
10226 else
10227 ld_shlibs=no
10228 fi
10229
10230 ;;
10231
10232 dgux*)
10233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10234 hardcode_libdir_flag_spec='-L$libdir'
10235 hardcode_shlibpath_var=no
10236 ;;
10237
10238 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10239 # support. Future versions do this automatically, but an explicit c++rt0.o
10240 # does not break anything, and helps significantly (at the cost of a little
10241 # extra space).
10242 freebsd2.2*)
10243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10244 hardcode_libdir_flag_spec='-R$libdir'
10245 hardcode_direct=yes
10246 hardcode_shlibpath_var=no
10247 ;;
10248
10249 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10250 freebsd2.*)
10251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_direct=yes
10253 hardcode_minus_L=yes
10254 hardcode_shlibpath_var=no
10255 ;;
10256
10257 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10258 freebsd* | dragonfly*)
10259 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10260 hardcode_libdir_flag_spec='-R$libdir'
10261 hardcode_direct=yes
10262 hardcode_shlibpath_var=no
10263 ;;
10264
10265 hpux9*)
10266 if test yes = "$GCC"; then
10267 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10268 else
10269 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10270 fi
10271 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10272 hardcode_libdir_separator=:
10273 hardcode_direct=yes
10274
10275 # hardcode_minus_L: Not really in the search PATH,
10276 # but as the default location of the library.
10277 hardcode_minus_L=yes
10278 export_dynamic_flag_spec='$wl-E'
10279 ;;
10280
10281 hpux10*)
10282 if test yes,no = "$GCC,$with_gnu_ld"; then
10283 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10284 else
10285 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10286 fi
10287 if test no = "$with_gnu_ld"; then
10288 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10289 hardcode_libdir_separator=:
10290 hardcode_direct=yes
10291 hardcode_direct_absolute=yes
10292 export_dynamic_flag_spec='$wl-E'
10293 # hardcode_minus_L: Not really in the search PATH,
10294 # but as the default location of the library.
10295 hardcode_minus_L=yes
10296 fi
10297 ;;
10298
10299 hpux11*)
10300 if test yes,no = "$GCC,$with_gnu_ld"; then
10301 case $host_cpu in
10302 hppa*64*)
10303 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10304 ;;
10305 ia64*)
10306 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10307 ;;
10308 *)
10309 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10310 ;;
10311 esac
10312 else
10313 case $host_cpu in
10314 hppa*64*)
10315 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 ;;
10317 ia64*)
10318 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10319 ;;
10320 *)
10321
10322 # Older versions of the 11.00 compiler do not understand -b yet
10323 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10325 $as_echo_n "checking if $CC understands -b... " >&6; }
10326 if ${lt_cv_prog_compiler__b+:} false; then :
10327 $as_echo_n "(cached) " >&6
10328 else
10329 lt_cv_prog_compiler__b=no
10330 save_LDFLAGS=$LDFLAGS
10331 LDFLAGS="$LDFLAGS -b"
10332 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10333 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10334 # The linker can only warn and ignore the option if not recognized
10335 # So say no if there are warnings
10336 if test -s conftest.err; then
10337 # Append any errors to the config.log.
10338 cat conftest.err 1>&5
10339 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10341 if diff conftest.exp conftest.er2 >/dev/null; then
10342 lt_cv_prog_compiler__b=yes
10343 fi
10344 else
10345 lt_cv_prog_compiler__b=yes
10346 fi
10347 fi
10348 $RM -r conftest*
10349 LDFLAGS=$save_LDFLAGS
10350
10351 fi
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10353 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10354
10355 if test yes = "$lt_cv_prog_compiler__b"; then
10356 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10357 else
10358 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10359 fi
10360
10361 ;;
10362 esac
10363 fi
10364 if test no = "$with_gnu_ld"; then
10365 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10366 hardcode_libdir_separator=:
10367
10368 case $host_cpu in
10369 hppa*64*|ia64*)
10370 hardcode_direct=no
10371 hardcode_shlibpath_var=no
10372 ;;
10373 *)
10374 hardcode_direct=yes
10375 hardcode_direct_absolute=yes
10376 export_dynamic_flag_spec='$wl-E'
10377
10378 # hardcode_minus_L: Not really in the search PATH,
10379 # but as the default location of the library.
10380 hardcode_minus_L=yes
10381 ;;
10382 esac
10383 fi
10384 ;;
10385
10386 irix5* | irix6* | nonstopux*)
10387 if test yes = "$GCC"; then
10388 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10389 # Try to use the -exported_symbol ld option, if it does not
10390 # work, assume that -exports_file does not work either and
10391 # implicitly export all symbols.
10392 # This should be the same for all languages, so no per-tag cache variable.
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10394 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10395 if ${lt_cv_irix_exported_symbol+:} false; then :
10396 $as_echo_n "(cached) " >&6
10397 else
10398 save_LDFLAGS=$LDFLAGS
10399 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 int foo (void) { return 0; }
10403 _ACEOF
10404 if ac_fn_c_try_link "$LINENO"; then :
10405 lt_cv_irix_exported_symbol=yes
10406 else
10407 lt_cv_irix_exported_symbol=no
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 LDFLAGS=$save_LDFLAGS
10412 fi
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10414 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10415 if test yes = "$lt_cv_irix_exported_symbol"; then
10416 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10417 fi
10418 link_all_deplibs=no
10419 else
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10421 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10422 fi
10423 archive_cmds_need_lc='no'
10424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10425 hardcode_libdir_separator=:
10426 inherit_rpath=yes
10427 link_all_deplibs=yes
10428 ;;
10429
10430 linux*)
10431 case $cc_basename in
10432 tcc*)
10433 # Fabrice Bellard et al's Tiny C Compiler
10434 ld_shlibs=yes
10435 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10436 ;;
10437 esac
10438 ;;
10439
10440 netbsd* | netbsdelf*-gnu)
10441 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10442 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10443 else
10444 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10445 fi
10446 hardcode_libdir_flag_spec='-R$libdir'
10447 hardcode_direct=yes
10448 hardcode_shlibpath_var=no
10449 ;;
10450
10451 newsos6)
10452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10453 hardcode_direct=yes
10454 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10455 hardcode_libdir_separator=:
10456 hardcode_shlibpath_var=no
10457 ;;
10458
10459 *nto* | *qnx*)
10460 ;;
10461
10462 openbsd* | bitrig*)
10463 if test -f /usr/libexec/ld.so; then
10464 hardcode_direct=yes
10465 hardcode_shlibpath_var=no
10466 hardcode_direct_absolute=yes
10467 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10469 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10470 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10471 export_dynamic_flag_spec='$wl-E'
10472 else
10473 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10474 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10475 fi
10476 else
10477 ld_shlibs=no
10478 fi
10479 ;;
10480
10481 os2*)
10482 hardcode_libdir_flag_spec='-L$libdir'
10483 hardcode_minus_L=yes
10484 allow_undefined_flag=unsupported
10485 shrext_cmds=.dll
10486 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10487 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10488 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10489 $ECHO EXPORTS >> $output_objdir/$libname.def~
10490 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10491 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10492 emximp -o $lib $output_objdir/$libname.def'
10493 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10494 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10495 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10496 $ECHO EXPORTS >> $output_objdir/$libname.def~
10497 prefix_cmds="$SED"~
10498 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10499 prefix_cmds="$prefix_cmds -e 1d";
10500 fi~
10501 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10502 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10503 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10504 emximp -o $lib $output_objdir/$libname.def'
10505 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10506 enable_shared_with_static_runtimes=yes
10507 ;;
10508
10509 osf3*)
10510 if test yes = "$GCC"; then
10511 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10512 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10513 else
10514 allow_undefined_flag=' -expect_unresolved \*'
10515 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10516 fi
10517 archive_cmds_need_lc='no'
10518 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10519 hardcode_libdir_separator=:
10520 ;;
10521
10522 osf4* | osf5*) # as osf3* with the addition of -msym flag
10523 if test yes = "$GCC"; then
10524 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10525 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10527 else
10528 allow_undefined_flag=' -expect_unresolved \*'
10529 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10530 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~
10531 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10532
10533 # Both c and cxx compiler support -rpath directly
10534 hardcode_libdir_flag_spec='-rpath $libdir'
10535 fi
10536 archive_cmds_need_lc='no'
10537 hardcode_libdir_separator=:
10538 ;;
10539
10540 solaris*)
10541 no_undefined_flag=' -z defs'
10542 if test yes = "$GCC"; then
10543 wlarc='$wl'
10544 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10545 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10546 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10547 else
10548 case `$CC -V 2>&1` in
10549 *"Compilers 5.0"*)
10550 wlarc=''
10551 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10553 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10554 ;;
10555 *)
10556 wlarc='$wl'
10557 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10558 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10559 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10560 ;;
10561 esac
10562 fi
10563 hardcode_libdir_flag_spec='-R$libdir'
10564 hardcode_shlibpath_var=no
10565 case $host_os in
10566 solaris2.[0-5] | solaris2.[0-5].*) ;;
10567 *)
10568 # The compiler driver will combine and reorder linker options,
10569 # but understands '-z linker_flag'. GCC discards it without '$wl',
10570 # but is careful enough not to reorder.
10571 # Supported since Solaris 2.6 (maybe 2.5.1?)
10572 if test yes = "$GCC"; then
10573 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10574 else
10575 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10576 fi
10577 ;;
10578 esac
10579 link_all_deplibs=yes
10580 ;;
10581
10582 sunos4*)
10583 if test sequent = "$host_vendor"; then
10584 # Use $CC to link under sequent, because it throws in some extra .o
10585 # files that make .init and .fini sections work.
10586 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10587 else
10588 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10589 fi
10590 hardcode_libdir_flag_spec='-L$libdir'
10591 hardcode_direct=yes
10592 hardcode_minus_L=yes
10593 hardcode_shlibpath_var=no
10594 ;;
10595
10596 sysv4)
10597 case $host_vendor in
10598 sni)
10599 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600 hardcode_direct=yes # is this really true???
10601 ;;
10602 siemens)
10603 ## LD is ld it makes a PLAMLIB
10604 ## CC just makes a GrossModule.
10605 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10606 reload_cmds='$CC -r -o $output$reload_objs'
10607 hardcode_direct=no
10608 ;;
10609 motorola)
10610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10612 ;;
10613 esac
10614 runpath_var='LD_RUN_PATH'
10615 hardcode_shlibpath_var=no
10616 ;;
10617
10618 sysv4.3*)
10619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10620 hardcode_shlibpath_var=no
10621 export_dynamic_flag_spec='-Bexport'
10622 ;;
10623
10624 sysv4*MP*)
10625 if test -d /usr/nec; then
10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10627 hardcode_shlibpath_var=no
10628 runpath_var=LD_RUN_PATH
10629 hardcode_runpath_var=yes
10630 ld_shlibs=yes
10631 fi
10632 ;;
10633
10634 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10635 no_undefined_flag='$wl-z,text'
10636 archive_cmds_need_lc=no
10637 hardcode_shlibpath_var=no
10638 runpath_var='LD_RUN_PATH'
10639
10640 if test yes = "$GCC"; then
10641 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10642 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10643 else
10644 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10645 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 fi
10647 ;;
10648
10649 sysv5* | sco3.2v5* | sco5v6*)
10650 # Note: We CANNOT use -z defs as we might desire, because we do not
10651 # link with -lc, and that would cause any symbols used from libc to
10652 # always be unresolved, which means just about no library would
10653 # ever link correctly. If we're not using GNU ld we use -z text
10654 # though, which does catch some bad symbols but isn't as heavy-handed
10655 # as -z defs.
10656 no_undefined_flag='$wl-z,text'
10657 allow_undefined_flag='$wl-z,nodefs'
10658 archive_cmds_need_lc=no
10659 hardcode_shlibpath_var=no
10660 hardcode_libdir_flag_spec='$wl-R,$libdir'
10661 hardcode_libdir_separator=':'
10662 link_all_deplibs=yes
10663 export_dynamic_flag_spec='$wl-Bexport'
10664 runpath_var='LD_RUN_PATH'
10665
10666 if test yes = "$GCC"; then
10667 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10669 else
10670 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10671 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 fi
10673 ;;
10674
10675 uts4*)
10676 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10677 hardcode_libdir_flag_spec='-L$libdir'
10678 hardcode_shlibpath_var=no
10679 ;;
10680
10681 *)
10682 ld_shlibs=no
10683 ;;
10684 esac
10685
10686 if test sni = "$host_vendor"; then
10687 case $host in
10688 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10689 export_dynamic_flag_spec='$wl-Blargedynsym'
10690 ;;
10691 esac
10692 fi
10693 fi
10694
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10696 $as_echo "$ld_shlibs" >&6; }
10697 test no = "$ld_shlibs" && can_build_shared=no
10698
10699 with_gnu_ld=$with_gnu_ld
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715 #
10716 # Do we need to explicitly link libc?
10717 #
10718 case "x$archive_cmds_need_lc" in
10719 x|xyes)
10720 # Assume -lc should be added
10721 archive_cmds_need_lc=yes
10722
10723 if test yes,yes = "$GCC,$enable_shared"; then
10724 case $archive_cmds in
10725 *'~'*)
10726 # FIXME: we may have to deal with multi-command sequences.
10727 ;;
10728 '$CC '*)
10729 # Test whether the compiler implicitly links with -lc since on some
10730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10731 # to ld, don't add -lc before -lgcc.
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10734 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 $RM conftest*
10738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10739
10740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10741 (eval $ac_compile) 2>&5
10742 ac_status=$?
10743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10744 test $ac_status = 0; } 2>conftest.err; then
10745 soname=conftest
10746 lib=conftest
10747 libobjs=conftest.$ac_objext
10748 deplibs=
10749 wl=$lt_prog_compiler_wl
10750 pic_flag=$lt_prog_compiler_pic
10751 compiler_flags=-v
10752 linker_flags=-v
10753 verstring=
10754 output_objdir=.
10755 libname=conftest
10756 lt_save_allow_undefined_flag=$allow_undefined_flag
10757 allow_undefined_flag=
10758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10759 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10760 ac_status=$?
10761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762 test $ac_status = 0; }
10763 then
10764 lt_cv_archive_cmds_need_lc=no
10765 else
10766 lt_cv_archive_cmds_need_lc=yes
10767 fi
10768 allow_undefined_flag=$lt_save_allow_undefined_flag
10769 else
10770 cat conftest.err 1>&5
10771 fi
10772 $RM conftest*
10773
10774 fi
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10776 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10777 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10778 ;;
10779 esac
10780 fi
10781 ;;
10782 esac
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10936 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10937
10938 if test yes = "$GCC"; then
10939 case $host_os in
10940 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10941 *) lt_awk_arg='/^libraries:/' ;;
10942 esac
10943 case $host_os in
10944 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10945 *) lt_sed_strip_eq='s|=/|/|g' ;;
10946 esac
10947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10948 case $lt_search_path_spec in
10949 *\;*)
10950 # if the path contains ";" then we assume it to be the separator
10951 # otherwise default to the standard path separator (i.e. ":") - it is
10952 # assumed that no part of a normal pathname contains ";" but that should
10953 # okay in the real world where ";" in dirpaths is itself problematic.
10954 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10955 ;;
10956 *)
10957 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10958 ;;
10959 esac
10960 # Ok, now we have the path, separated by spaces, we can step through it
10961 # and add multilib dir if necessary...
10962 lt_tmp_lt_search_path_spec=
10963 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10964 # ...but if some path component already ends with the multilib dir we assume
10965 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10966 case "$lt_multi_os_dir; $lt_search_path_spec " in
10967 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10968 lt_multi_os_dir=
10969 ;;
10970 esac
10971 for lt_sys_path in $lt_search_path_spec; do
10972 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10973 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10974 elif test -n "$lt_multi_os_dir"; then
10975 test -d "$lt_sys_path" && \
10976 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10977 fi
10978 done
10979 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10980 BEGIN {RS = " "; FS = "/|\n";} {
10981 lt_foo = "";
10982 lt_count = 0;
10983 for (lt_i = NF; lt_i > 0; lt_i--) {
10984 if ($lt_i != "" && $lt_i != ".") {
10985 if ($lt_i == "..") {
10986 lt_count++;
10987 } else {
10988 if (lt_count == 0) {
10989 lt_foo = "/" $lt_i lt_foo;
10990 } else {
10991 lt_count--;
10992 }
10993 }
10994 }
10995 }
10996 if (lt_foo != "") { lt_freq[lt_foo]++; }
10997 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10998 }'`
10999 # AWK program above erroneously prepends '/' to C:/dos/paths
11000 # for these hosts.
11001 case $host_os in
11002 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11003 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11004 esac
11005 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11006 else
11007 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11008 fi
11009 library_names_spec=
11010 libname_spec='lib$name'
11011 soname_spec=
11012 shrext_cmds=.so
11013 postinstall_cmds=
11014 postuninstall_cmds=
11015 finish_cmds=
11016 finish_eval=
11017 shlibpath_var=
11018 shlibpath_overrides_runpath=unknown
11019 version_type=none
11020 dynamic_linker="$host_os ld.so"
11021 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11022 need_lib_prefix=unknown
11023 hardcode_into_libs=no
11024
11025 # when you set need_version to no, make sure it does not cause -set_version
11026 # flags to be left without arguments
11027 need_version=unknown
11028
11029
11030
11031 case $host_os in
11032 aix3*)
11033 version_type=linux # correct to gnu/linux during the next big refactor
11034 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11035 shlibpath_var=LIBPATH
11036
11037 # AIX 3 has no versioning support, so we append a major version to the name.
11038 soname_spec='$libname$release$shared_ext$major'
11039 ;;
11040
11041 aix[4-9]*)
11042 version_type=linux # correct to gnu/linux during the next big refactor
11043 need_lib_prefix=no
11044 need_version=no
11045 hardcode_into_libs=yes
11046 if test ia64 = "$host_cpu"; then
11047 # AIX 5 supports IA64
11048 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 else
11051 # With GCC up to 2.95.x, collect2 would create an import file
11052 # for dependence libraries. The import file would start with
11053 # the line '#! .'. This would cause the generated library to
11054 # depend on '.', always an invalid library. This was fixed in
11055 # development snapshots of GCC prior to 3.0.
11056 case $host_os in
11057 aix4 | aix4.[01] | aix4.[01].*)
11058 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11059 echo ' yes '
11060 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11061 :
11062 else
11063 can_build_shared=no
11064 fi
11065 ;;
11066 esac
11067 # Using Import Files as archive members, it is possible to support
11068 # filename-based versioning of shared library archives on AIX. While
11069 # this would work for both with and without runtime linking, it will
11070 # prevent static linking of such archives. So we do filename-based
11071 # shared library versioning with .so extension only, which is used
11072 # when both runtime linking and shared linking is enabled.
11073 # Unfortunately, runtime linking may impact performance, so we do
11074 # not want this to be the default eventually. Also, we use the
11075 # versioned .so libs for executables only if there is the -brtl
11076 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11077 # To allow for filename-based versioning support, we need to create
11078 # libNAME.so.V as an archive file, containing:
11079 # *) an Import File, referring to the versioned filename of the
11080 # archive as well as the shared archive member, telling the
11081 # bitwidth (32 or 64) of that shared object, and providing the
11082 # list of exported symbols of that shared object, eventually
11083 # decorated with the 'weak' keyword
11084 # *) the shared object with the F_LOADONLY flag set, to really avoid
11085 # it being seen by the linker.
11086 # At run time we better use the real file rather than another symlink,
11087 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11088
11089 case $with_aix_soname,$aix_use_runtimelinking in
11090 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11091 # soname into executable. Probably we can add versioning support to
11092 # collect2, so additional links can be useful in future.
11093 aix,yes) # traditional libtool
11094 dynamic_linker='AIX unversionable lib.so'
11095 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11096 # instead of lib<name>.a to let people know that these are not
11097 # typical AIX shared libraries.
11098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11099 ;;
11100 aix,no) # traditional AIX only
11101 dynamic_linker='AIX lib.a(lib.so.V)'
11102 # We preserve .a as extension for shared libraries through AIX4.2
11103 # and later when we are not doing run time linking.
11104 library_names_spec='$libname$release.a $libname.a'
11105 soname_spec='$libname$release$shared_ext$major'
11106 ;;
11107 svr4,*) # full svr4 only
11108 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11109 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11110 # We do not specify a path in Import Files, so LIBPATH fires.
11111 shlibpath_overrides_runpath=yes
11112 ;;
11113 *,yes) # both, prefer svr4
11114 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11115 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11116 # unpreferred sharedlib libNAME.a needs extra handling
11117 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11118 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11119 # We do not specify a path in Import Files, so LIBPATH fires.
11120 shlibpath_overrides_runpath=yes
11121 ;;
11122 *,no) # both, prefer aix
11123 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11124 library_names_spec='$libname$release.a $libname.a'
11125 soname_spec='$libname$release$shared_ext$major'
11126 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11127 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11128 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11129 ;;
11130 esac
11131 shlibpath_var=LIBPATH
11132 fi
11133 ;;
11134
11135 amigaos*)
11136 case $host_cpu in
11137 powerpc)
11138 # Since July 2007 AmigaOS4 officially supports .so libraries.
11139 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11141 ;;
11142 m68k)
11143 library_names_spec='$libname.ixlibrary $libname.a'
11144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11145 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11146 ;;
11147 esac
11148 ;;
11149
11150 beos*)
11151 library_names_spec='$libname$shared_ext'
11152 dynamic_linker="$host_os ld.so"
11153 shlibpath_var=LIBRARY_PATH
11154 ;;
11155
11156 bsdi[45]*)
11157 version_type=linux # correct to gnu/linux during the next big refactor
11158 need_version=no
11159 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11160 soname_spec='$libname$release$shared_ext$major'
11161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11165 # the default ld.so.conf also contains /usr/contrib/lib and
11166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11167 # libtool to hard-code these into programs
11168 ;;
11169
11170 cygwin* | mingw* | pw32* | cegcc*)
11171 version_type=windows
11172 shrext_cmds=.dll
11173 need_version=no
11174 need_lib_prefix=no
11175
11176 case $GCC,$cc_basename in
11177 yes,*)
11178 # gcc
11179 library_names_spec='$libname.dll.a'
11180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11181 postinstall_cmds='base_file=`basename \$file`~
11182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11183 dldir=$destdir/`dirname \$dlpath`~
11184 test -d \$dldir || mkdir -p \$dldir~
11185 $install_prog $dir/$dlname \$dldir/$dlname~
11186 chmod a+x \$dldir/$dlname~
11187 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11188 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11189 fi'
11190 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11191 dlpath=$dir/\$dldll~
11192 $RM \$dlpath'
11193 shlibpath_overrides_runpath=yes
11194
11195 case $host_os in
11196 cygwin*)
11197 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11198 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11199
11200 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11201 ;;
11202 mingw* | cegcc*)
11203 # MinGW DLLs use traditional 'lib' prefix
11204 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11205 ;;
11206 pw32*)
11207 # pw32 DLLs use 'pw' prefix rather than 'lib'
11208 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11209 ;;
11210 esac
11211 dynamic_linker='Win32 ld.exe'
11212 ;;
11213
11214 *,cl*)
11215 # Native MSVC
11216 libname_spec='$name'
11217 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11218 library_names_spec='$libname.dll.lib'
11219
11220 case $build_os in
11221 mingw*)
11222 sys_lib_search_path_spec=
11223 lt_save_ifs=$IFS
11224 IFS=';'
11225 for lt_path in $LIB
11226 do
11227 IFS=$lt_save_ifs
11228 # Let DOS variable expansion print the short 8.3 style file name.
11229 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11230 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11231 done
11232 IFS=$lt_save_ifs
11233 # Convert to MSYS style.
11234 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11235 ;;
11236 cygwin*)
11237 # Convert to unix form, then to dos form, then back to unix form
11238 # but this time dos style (no spaces!) so that the unix form looks
11239 # like /cygdrive/c/PROGRA~1:/cygdr...
11240 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11241 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11242 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11243 ;;
11244 *)
11245 sys_lib_search_path_spec=$LIB
11246 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11247 # It is most probably a Windows format PATH.
11248 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11249 else
11250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11251 fi
11252 # FIXME: find the short name or the path components, as spaces are
11253 # common. (e.g. "Program Files" -> "PROGRA~1")
11254 ;;
11255 esac
11256
11257 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11258 postinstall_cmds='base_file=`basename \$file`~
11259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11260 dldir=$destdir/`dirname \$dlpath`~
11261 test -d \$dldir || mkdir -p \$dldir~
11262 $install_prog $dir/$dlname \$dldir/$dlname'
11263 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11264 dlpath=$dir/\$dldll~
11265 $RM \$dlpath'
11266 shlibpath_overrides_runpath=yes
11267 dynamic_linker='Win32 link.exe'
11268 ;;
11269
11270 *)
11271 # Assume MSVC wrapper
11272 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11273 dynamic_linker='Win32 ld.exe'
11274 ;;
11275 esac
11276 # FIXME: first we should search . and the directory the executable is in
11277 shlibpath_var=PATH
11278 ;;
11279
11280 darwin* | rhapsody*)
11281 dynamic_linker="$host_os dyld"
11282 version_type=darwin
11283 need_lib_prefix=no
11284 need_version=no
11285 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11286 soname_spec='$libname$release$major$shared_ext'
11287 shlibpath_overrides_runpath=yes
11288 shlibpath_var=DYLD_LIBRARY_PATH
11289 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11290
11291 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11292 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11293 ;;
11294
11295 dgux*)
11296 version_type=linux # correct to gnu/linux during the next big refactor
11297 need_lib_prefix=no
11298 need_version=no
11299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11300 soname_spec='$libname$release$shared_ext$major'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 ;;
11303
11304 freebsd* | dragonfly*)
11305 # DragonFly does not have aout. When/if they implement a new
11306 # versioning mechanism, adjust this.
11307 if test -x /usr/bin/objformat; then
11308 objformat=`/usr/bin/objformat`
11309 else
11310 case $host_os in
11311 freebsd[23].*) objformat=aout ;;
11312 *) objformat=elf ;;
11313 esac
11314 fi
11315 version_type=freebsd-$objformat
11316 case $version_type in
11317 freebsd-elf*)
11318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11319 soname_spec='$libname$release$shared_ext$major'
11320 need_version=no
11321 need_lib_prefix=no
11322 ;;
11323 freebsd-*)
11324 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11325 need_version=yes
11326 ;;
11327 esac
11328 shlibpath_var=LD_LIBRARY_PATH
11329 case $host_os in
11330 freebsd2.*)
11331 shlibpath_overrides_runpath=yes
11332 ;;
11333 freebsd3.[01]* | freebsdelf3.[01]*)
11334 shlibpath_overrides_runpath=yes
11335 hardcode_into_libs=yes
11336 ;;
11337 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11338 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11339 shlibpath_overrides_runpath=no
11340 hardcode_into_libs=yes
11341 ;;
11342 *) # from 4.6 on, and DragonFly
11343 shlibpath_overrides_runpath=yes
11344 hardcode_into_libs=yes
11345 ;;
11346 esac
11347 ;;
11348
11349 haiku*)
11350 version_type=linux # correct to gnu/linux during the next big refactor
11351 need_lib_prefix=no
11352 need_version=no
11353 dynamic_linker="$host_os runtime_loader"
11354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11355 soname_spec='$libname$release$shared_ext$major'
11356 shlibpath_var=LIBRARY_PATH
11357 shlibpath_overrides_runpath=no
11358 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11359 hardcode_into_libs=yes
11360 ;;
11361
11362 hpux9* | hpux10* | hpux11*)
11363 # Give a soname corresponding to the major version so that dld.sl refuses to
11364 # link against other versions.
11365 version_type=sunos
11366 need_lib_prefix=no
11367 need_version=no
11368 case $host_cpu in
11369 ia64*)
11370 shrext_cmds='.so'
11371 hardcode_into_libs=yes
11372 dynamic_linker="$host_os dld.so"
11373 shlibpath_var=LD_LIBRARY_PATH
11374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11376 soname_spec='$libname$release$shared_ext$major'
11377 if test 32 = "$HPUX_IA64_MODE"; then
11378 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11379 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11380 else
11381 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11382 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11383 fi
11384 ;;
11385 hppa*64*)
11386 shrext_cmds='.sl'
11387 hardcode_into_libs=yes
11388 dynamic_linker="$host_os dld.sl"
11389 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392 soname_spec='$libname$release$shared_ext$major'
11393 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11395 ;;
11396 *)
11397 shrext_cmds='.sl'
11398 dynamic_linker="$host_os dld.sl"
11399 shlibpath_var=SHLIB_PATH
11400 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11402 soname_spec='$libname$release$shared_ext$major'
11403 ;;
11404 esac
11405 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11406 postinstall_cmds='chmod 555 $lib'
11407 # or fails outright, so override atomically:
11408 install_override_mode=555
11409 ;;
11410
11411 interix[3-9]*)
11412 version_type=linux # correct to gnu/linux during the next big refactor
11413 need_lib_prefix=no
11414 need_version=no
11415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11416 soname_spec='$libname$release$shared_ext$major'
11417 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11418 shlibpath_var=LD_LIBRARY_PATH
11419 shlibpath_overrides_runpath=no
11420 hardcode_into_libs=yes
11421 ;;
11422
11423 irix5* | irix6* | nonstopux*)
11424 case $host_os in
11425 nonstopux*) version_type=nonstopux ;;
11426 *)
11427 if test yes = "$lt_cv_prog_gnu_ld"; then
11428 version_type=linux # correct to gnu/linux during the next big refactor
11429 else
11430 version_type=irix
11431 fi ;;
11432 esac
11433 need_lib_prefix=no
11434 need_version=no
11435 soname_spec='$libname$release$shared_ext$major'
11436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11437 case $host_os in
11438 irix5* | nonstopux*)
11439 libsuff= shlibsuff=
11440 ;;
11441 *)
11442 case $LD in # libtool.m4 will add one of these switches to LD
11443 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11444 libsuff= shlibsuff= libmagic=32-bit;;
11445 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11446 libsuff=32 shlibsuff=N32 libmagic=N32;;
11447 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11448 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11449 *) libsuff= shlibsuff= libmagic=never-match;;
11450 esac
11451 ;;
11452 esac
11453 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11454 shlibpath_overrides_runpath=no
11455 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11456 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11457 hardcode_into_libs=yes
11458 ;;
11459
11460 # No shared lib support for Linux oldld, aout, or coff.
11461 linux*oldld* | linux*aout* | linux*coff*)
11462 dynamic_linker=no
11463 ;;
11464
11465 linux*android*)
11466 version_type=none # Android doesn't support versioned libraries.
11467 need_lib_prefix=no
11468 need_version=no
11469 library_names_spec='$libname$release$shared_ext'
11470 soname_spec='$libname$release$shared_ext'
11471 finish_cmds=
11472 shlibpath_var=LD_LIBRARY_PATH
11473 shlibpath_overrides_runpath=yes
11474
11475 # This implies no fast_install, which is unacceptable.
11476 # Some rework will be needed to allow for fast_install
11477 # before this can be enabled.
11478 hardcode_into_libs=yes
11479
11480 dynamic_linker='Android linker'
11481 # Don't embed -rpath directories since the linker doesn't support them.
11482 hardcode_libdir_flag_spec='-L$libdir'
11483 ;;
11484
11485 # This must be glibc/ELF.
11486 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11487 version_type=linux # correct to gnu/linux during the next big refactor
11488 need_lib_prefix=no
11489 need_version=no
11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11491 soname_spec='$libname$release$shared_ext$major'
11492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 shlibpath_overrides_runpath=no
11495
11496 # Some binutils ld are patched to set DT_RUNPATH
11497 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11498 $as_echo_n "(cached) " >&6
11499 else
11500 lt_cv_shlibpath_overrides_runpath=no
11501 save_LDFLAGS=$LDFLAGS
11502 save_libdir=$libdir
11503 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11504 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11506 /* end confdefs.h. */
11507
11508 int
11509 main ()
11510 {
11511
11512 ;
11513 return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_link "$LINENO"; then :
11517 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11518 lt_cv_shlibpath_overrides_runpath=yes
11519 fi
11520 fi
11521 rm -f core conftest.err conftest.$ac_objext \
11522 conftest$ac_exeext conftest.$ac_ext
11523 LDFLAGS=$save_LDFLAGS
11524 libdir=$save_libdir
11525
11526 fi
11527
11528 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11529
11530 # This implies no fast_install, which is unacceptable.
11531 # Some rework will be needed to allow for fast_install
11532 # before this can be enabled.
11533 hardcode_into_libs=yes
11534
11535 # Ideally, we could use ldconfig to report *all* directores which are
11536 # searched for libraries, however this is still not possible. Aside from not
11537 # being certain /sbin/ldconfig is available, command
11538 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11539 # even though it is searched at run-time. Try to do the best guess by
11540 # appending ld.so.conf contents (and includes) to the search path.
11541 if test -f /etc/ld.so.conf; then
11542 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11543 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11544 fi
11545
11546 # We used to test for /lib/ld.so.1 and disable shared libraries on
11547 # powerpc, because MkLinux only supported shared libraries with the
11548 # GNU dynamic linker. Since this was broken with cross compilers,
11549 # most powerpc-linux boxes support dynamic linking these days and
11550 # people can always --disable-shared, the test was removed, and we
11551 # assume the GNU/Linux dynamic linker is in use.
11552 dynamic_linker='GNU/Linux ld.so'
11553 ;;
11554
11555 netbsdelf*-gnu)
11556 version_type=linux
11557 need_lib_prefix=no
11558 need_version=no
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 shlibpath_overrides_runpath=no
11563 hardcode_into_libs=yes
11564 dynamic_linker='NetBSD ld.elf_so'
11565 ;;
11566
11567 netbsd*)
11568 version_type=sunos
11569 need_lib_prefix=no
11570 need_version=no
11571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11572 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11574 dynamic_linker='NetBSD (a.out) ld.so'
11575 else
11576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11577 soname_spec='$libname$release$shared_ext$major'
11578 dynamic_linker='NetBSD ld.elf_so'
11579 fi
11580 shlibpath_var=LD_LIBRARY_PATH
11581 shlibpath_overrides_runpath=yes
11582 hardcode_into_libs=yes
11583 ;;
11584
11585 newsos6)
11586 version_type=linux # correct to gnu/linux during the next big refactor
11587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11588 shlibpath_var=LD_LIBRARY_PATH
11589 shlibpath_overrides_runpath=yes
11590 ;;
11591
11592 *nto* | *qnx*)
11593 version_type=qnx
11594 need_lib_prefix=no
11595 need_version=no
11596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11597 soname_spec='$libname$release$shared_ext$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=no
11600 hardcode_into_libs=yes
11601 dynamic_linker='ldqnx.so'
11602 ;;
11603
11604 openbsd* | bitrig*)
11605 version_type=sunos
11606 sys_lib_dlsearch_path_spec=/usr/lib
11607 need_lib_prefix=no
11608 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11609 need_version=no
11610 else
11611 need_version=yes
11612 fi
11613 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11615 shlibpath_var=LD_LIBRARY_PATH
11616 shlibpath_overrides_runpath=yes
11617 ;;
11618
11619 os2*)
11620 libname_spec='$name'
11621 version_type=windows
11622 shrext_cmds=.dll
11623 need_version=no
11624 need_lib_prefix=no
11625 # OS/2 can only load a DLL with a base name of 8 characters or less.
11626 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11627 v=$($ECHO $release$versuffix | tr -d .-);
11628 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11629 $ECHO $n$v`$shared_ext'
11630 library_names_spec='${libname}_dll.$libext'
11631 dynamic_linker='OS/2 ld.exe'
11632 shlibpath_var=BEGINLIBPATH
11633 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11635 postinstall_cmds='base_file=`basename \$file`~
11636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11637 dldir=$destdir/`dirname \$dlpath`~
11638 test -d \$dldir || mkdir -p \$dldir~
11639 $install_prog $dir/$dlname \$dldir/$dlname~
11640 chmod a+x \$dldir/$dlname~
11641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11643 fi'
11644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11645 dlpath=$dir/\$dldll~
11646 $RM \$dlpath'
11647 ;;
11648
11649 osf3* | osf4* | osf5*)
11650 version_type=osf
11651 need_lib_prefix=no
11652 need_version=no
11653 soname_spec='$libname$release$shared_ext$major'
11654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11658 ;;
11659
11660 rdos*)
11661 dynamic_linker=no
11662 ;;
11663
11664 solaris*)
11665 version_type=linux # correct to gnu/linux during the next big refactor
11666 need_lib_prefix=no
11667 need_version=no
11668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11669 soname_spec='$libname$release$shared_ext$major'
11670 shlibpath_var=LD_LIBRARY_PATH
11671 shlibpath_overrides_runpath=yes
11672 hardcode_into_libs=yes
11673 # ldd complains unless libraries are executable
11674 postinstall_cmds='chmod +x $lib'
11675 ;;
11676
11677 sunos4*)
11678 version_type=sunos
11679 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11680 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11683 if test yes = "$with_gnu_ld"; then
11684 need_lib_prefix=no
11685 fi
11686 need_version=yes
11687 ;;
11688
11689 sysv4 | sysv4.3*)
11690 version_type=linux # correct to gnu/linux during the next big refactor
11691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11692 soname_spec='$libname$release$shared_ext$major'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 case $host_vendor in
11695 sni)
11696 shlibpath_overrides_runpath=no
11697 need_lib_prefix=no
11698 runpath_var=LD_RUN_PATH
11699 ;;
11700 siemens)
11701 need_lib_prefix=no
11702 ;;
11703 motorola)
11704 need_lib_prefix=no
11705 need_version=no
11706 shlibpath_overrides_runpath=no
11707 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11708 ;;
11709 esac
11710 ;;
11711
11712 sysv4*MP*)
11713 if test -d /usr/nec; then
11714 version_type=linux # correct to gnu/linux during the next big refactor
11715 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11716 soname_spec='$libname$shared_ext.$major'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 fi
11719 ;;
11720
11721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11722 version_type=sco
11723 need_lib_prefix=no
11724 need_version=no
11725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11726 soname_spec='$libname$release$shared_ext$major'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 shlibpath_overrides_runpath=yes
11729 hardcode_into_libs=yes
11730 if test yes = "$with_gnu_ld"; then
11731 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11732 else
11733 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11734 case $host_os in
11735 sco3.2v5*)
11736 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11737 ;;
11738 esac
11739 fi
11740 sys_lib_dlsearch_path_spec='/usr/lib'
11741 ;;
11742
11743 tpf*)
11744 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11745 version_type=linux # correct to gnu/linux during the next big refactor
11746 need_lib_prefix=no
11747 need_version=no
11748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=no
11751 hardcode_into_libs=yes
11752 ;;
11753
11754 uts4*)
11755 version_type=linux # correct to gnu/linux during the next big refactor
11756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11757 soname_spec='$libname$release$shared_ext$major'
11758 shlibpath_var=LD_LIBRARY_PATH
11759 ;;
11760
11761 *)
11762 dynamic_linker=no
11763 ;;
11764 esac
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11766 $as_echo "$dynamic_linker" >&6; }
11767 test no = "$dynamic_linker" && can_build_shared=no
11768
11769 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11770 if test yes = "$GCC"; then
11771 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11772 fi
11773
11774 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11775 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11776 fi
11777
11778 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11779 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11780 fi
11781
11782 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11783 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11784
11785 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11786 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11787
11788 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11789 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11888 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11889 hardcode_action=
11890 if test -n "$hardcode_libdir_flag_spec" ||
11891 test -n "$runpath_var" ||
11892 test yes = "$hardcode_automatic"; then
11893
11894 # We can hardcode non-existent directories.
11895 if test no != "$hardcode_direct" &&
11896 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11897 # have to relink, otherwise we might link with an installed library
11898 # when we should be linking with a yet-to-be-installed one
11899 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11900 test no != "$hardcode_minus_L"; then
11901 # Linking always hardcodes the temporary library directory.
11902 hardcode_action=relink
11903 else
11904 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11905 hardcode_action=immediate
11906 fi
11907 else
11908 # We cannot hardcode anything, or else we can only hardcode existing
11909 # directories.
11910 hardcode_action=unsupported
11911 fi
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11913 $as_echo "$hardcode_action" >&6; }
11914
11915 if test relink = "$hardcode_action" ||
11916 test yes = "$inherit_rpath"; then
11917 # Fast installation is not supported
11918 enable_fast_install=no
11919 elif test yes = "$shlibpath_overrides_runpath" ||
11920 test no = "$enable_shared"; then
11921 # Fast installation is not necessary
11922 enable_fast_install=needless
11923 fi
11924
11925
11926
11927
11928
11929
11930 if test yes != "$enable_dlopen"; then
11931 enable_dlopen=unknown
11932 enable_dlopen_self=unknown
11933 enable_dlopen_self_static=unknown
11934 else
11935 lt_cv_dlopen=no
11936 lt_cv_dlopen_libs=
11937
11938 case $host_os in
11939 beos*)
11940 lt_cv_dlopen=load_add_on
11941 lt_cv_dlopen_libs=
11942 lt_cv_dlopen_self=yes
11943 ;;
11944
11945 mingw* | pw32* | cegcc*)
11946 lt_cv_dlopen=LoadLibrary
11947 lt_cv_dlopen_libs=
11948 ;;
11949
11950 cygwin*)
11951 lt_cv_dlopen=dlopen
11952 lt_cv_dlopen_libs=
11953 ;;
11954
11955 darwin*)
11956 # if libdl is installed we need to link against it
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11958 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11959 if ${ac_cv_lib_dl_dlopen+:} false; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 ac_check_lib_save_LIBS=$LIBS
11963 LIBS="-ldl $LIBS"
11964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966
11967 /* Override any GCC internal prototype to avoid an error.
11968 Use char because int might match the return type of a GCC
11969 builtin and then its argument prototype would still apply. */
11970 #ifdef __cplusplus
11971 extern "C"
11972 #endif
11973 char dlopen ();
11974 int
11975 main ()
11976 {
11977 return dlopen ();
11978 ;
11979 return 0;
11980 }
11981 _ACEOF
11982 if ac_fn_c_try_link "$LINENO"; then :
11983 ac_cv_lib_dl_dlopen=yes
11984 else
11985 ac_cv_lib_dl_dlopen=no
11986 fi
11987 rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11992 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11993 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11994 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11995 else
11996
11997 lt_cv_dlopen=dyld
11998 lt_cv_dlopen_libs=
11999 lt_cv_dlopen_self=yes
12000
12001 fi
12002
12003 ;;
12004
12005 tpf*)
12006 # Don't try to run any link tests for TPF. We know it's impossible
12007 # because TPF is a cross-compiler, and we know how we open DSOs.
12008 lt_cv_dlopen=dlopen
12009 lt_cv_dlopen_libs=
12010 lt_cv_dlopen_self=no
12011 ;;
12012
12013 *)
12014 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12015 if test "x$ac_cv_func_shl_load" = xyes; then :
12016 lt_cv_dlopen=shl_load
12017 else
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12019 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12020 if ${ac_cv_lib_dld_shl_load+:} false; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 ac_check_lib_save_LIBS=$LIBS
12024 LIBS="-ldld $LIBS"
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12027
12028 /* Override any GCC internal prototype to avoid an error.
12029 Use char because int might match the return type of a GCC
12030 builtin and then its argument prototype would still apply. */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 char shl_load ();
12035 int
12036 main ()
12037 {
12038 return shl_load ();
12039 ;
12040 return 0;
12041 }
12042 _ACEOF
12043 if ac_fn_c_try_link "$LINENO"; then :
12044 ac_cv_lib_dld_shl_load=yes
12045 else
12046 ac_cv_lib_dld_shl_load=no
12047 fi
12048 rm -f core conftest.err conftest.$ac_objext \
12049 conftest$ac_exeext conftest.$ac_ext
12050 LIBS=$ac_check_lib_save_LIBS
12051 fi
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12053 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12054 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12055 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12056 else
12057 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12058 if test "x$ac_cv_func_dlopen" = xyes; then :
12059 lt_cv_dlopen=dlopen
12060 else
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12062 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12063 if ${ac_cv_lib_dl_dlopen+:} false; then :
12064 $as_echo_n "(cached) " >&6
12065 else
12066 ac_check_lib_save_LIBS=$LIBS
12067 LIBS="-ldl $LIBS"
12068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12069 /* end confdefs.h. */
12070
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 char dlopen ();
12078 int
12079 main ()
12080 {
12081 return dlopen ();
12082 ;
12083 return 0;
12084 }
12085 _ACEOF
12086 if ac_fn_c_try_link "$LINENO"; then :
12087 ac_cv_lib_dl_dlopen=yes
12088 else
12089 ac_cv_lib_dl_dlopen=no
12090 fi
12091 rm -f core conftest.err conftest.$ac_objext \
12092 conftest$ac_exeext conftest.$ac_ext
12093 LIBS=$ac_check_lib_save_LIBS
12094 fi
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12096 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12097 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12098 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12099 else
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12101 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12102 if ${ac_cv_lib_svld_dlopen+:} false; then :
12103 $as_echo_n "(cached) " >&6
12104 else
12105 ac_check_lib_save_LIBS=$LIBS
12106 LIBS="-lsvld $LIBS"
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char dlopen ();
12117 int
12118 main ()
12119 {
12120 return dlopen ();
12121 ;
12122 return 0;
12123 }
12124 _ACEOF
12125 if ac_fn_c_try_link "$LINENO"; then :
12126 ac_cv_lib_svld_dlopen=yes
12127 else
12128 ac_cv_lib_svld_dlopen=no
12129 fi
12130 rm -f core conftest.err conftest.$ac_objext \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12133 fi
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12135 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12136 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12137 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12140 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12141 if ${ac_cv_lib_dld_dld_link+:} false; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 ac_check_lib_save_LIBS=$LIBS
12145 LIBS="-ldld $LIBS"
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148
12149 /* Override any GCC internal prototype to avoid an error.
12150 Use char because int might match the return type of a GCC
12151 builtin and then its argument prototype would still apply. */
12152 #ifdef __cplusplus
12153 extern "C"
12154 #endif
12155 char dld_link ();
12156 int
12157 main ()
12158 {
12159 return dld_link ();
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 if ac_fn_c_try_link "$LINENO"; then :
12165 ac_cv_lib_dld_dld_link=yes
12166 else
12167 ac_cv_lib_dld_dld_link=no
12168 fi
12169 rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 LIBS=$ac_check_lib_save_LIBS
12172 fi
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12174 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12175 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12176 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12177 fi
12178
12179
12180 fi
12181
12182
12183 fi
12184
12185
12186 fi
12187
12188
12189 fi
12190
12191
12192 fi
12193
12194 ;;
12195 esac
12196
12197 if test no = "$lt_cv_dlopen"; then
12198 enable_dlopen=no
12199 else
12200 enable_dlopen=yes
12201 fi
12202
12203 case $lt_cv_dlopen in
12204 dlopen)
12205 save_CPPFLAGS=$CPPFLAGS
12206 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12207
12208 save_LDFLAGS=$LDFLAGS
12209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12210
12211 save_LIBS=$LIBS
12212 LIBS="$lt_cv_dlopen_libs $LIBS"
12213
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12215 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12216 if ${lt_cv_dlopen_self+:} false; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 if test yes = "$cross_compiling"; then :
12220 lt_cv_dlopen_self=cross
12221 else
12222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12223 lt_status=$lt_dlunknown
12224 cat > conftest.$ac_ext <<_LT_EOF
12225 #line $LINENO "configure"
12226 #include "confdefs.h"
12227
12228 #if HAVE_DLFCN_H
12229 #include <dlfcn.h>
12230 #endif
12231
12232 #include <stdio.h>
12233
12234 #ifdef RTLD_GLOBAL
12235 # define LT_DLGLOBAL RTLD_GLOBAL
12236 #else
12237 # ifdef DL_GLOBAL
12238 # define LT_DLGLOBAL DL_GLOBAL
12239 # else
12240 # define LT_DLGLOBAL 0
12241 # endif
12242 #endif
12243
12244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12245 find out it does not work in some platform. */
12246 #ifndef LT_DLLAZY_OR_NOW
12247 # ifdef RTLD_LAZY
12248 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12249 # else
12250 # ifdef DL_LAZY
12251 # define LT_DLLAZY_OR_NOW DL_LAZY
12252 # else
12253 # ifdef RTLD_NOW
12254 # define LT_DLLAZY_OR_NOW RTLD_NOW
12255 # else
12256 # ifdef DL_NOW
12257 # define LT_DLLAZY_OR_NOW DL_NOW
12258 # else
12259 # define LT_DLLAZY_OR_NOW 0
12260 # endif
12261 # endif
12262 # endif
12263 # endif
12264 #endif
12265
12266 /* When -fvisibility=hidden is used, assume the code has been annotated
12267 correspondingly for the symbols needed. */
12268 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12269 int fnord () __attribute__((visibility("default")));
12270 #endif
12271
12272 int fnord () { return 42; }
12273 int main ()
12274 {
12275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12276 int status = $lt_dlunknown;
12277
12278 if (self)
12279 {
12280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12281 else
12282 {
12283 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12284 else puts (dlerror ());
12285 }
12286 /* dlclose (self); */
12287 }
12288 else
12289 puts (dlerror ());
12290
12291 return status;
12292 }
12293 _LT_EOF
12294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12295 (eval $ac_link) 2>&5
12296 ac_status=$?
12297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12299 (./conftest; exit; ) >&5 2>/dev/null
12300 lt_status=$?
12301 case x$lt_status in
12302 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12303 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12304 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12305 esac
12306 else :
12307 # compilation failed
12308 lt_cv_dlopen_self=no
12309 fi
12310 fi
12311 rm -fr conftest*
12312
12313
12314 fi
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12316 $as_echo "$lt_cv_dlopen_self" >&6; }
12317
12318 if test yes = "$lt_cv_dlopen_self"; then
12319 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12321 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12322 if ${lt_cv_dlopen_self_static+:} false; then :
12323 $as_echo_n "(cached) " >&6
12324 else
12325 if test yes = "$cross_compiling"; then :
12326 lt_cv_dlopen_self_static=cross
12327 else
12328 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12329 lt_status=$lt_dlunknown
12330 cat > conftest.$ac_ext <<_LT_EOF
12331 #line $LINENO "configure"
12332 #include "confdefs.h"
12333
12334 #if HAVE_DLFCN_H
12335 #include <dlfcn.h>
12336 #endif
12337
12338 #include <stdio.h>
12339
12340 #ifdef RTLD_GLOBAL
12341 # define LT_DLGLOBAL RTLD_GLOBAL
12342 #else
12343 # ifdef DL_GLOBAL
12344 # define LT_DLGLOBAL DL_GLOBAL
12345 # else
12346 # define LT_DLGLOBAL 0
12347 # endif
12348 #endif
12349
12350 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12351 find out it does not work in some platform. */
12352 #ifndef LT_DLLAZY_OR_NOW
12353 # ifdef RTLD_LAZY
12354 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12355 # else
12356 # ifdef DL_LAZY
12357 # define LT_DLLAZY_OR_NOW DL_LAZY
12358 # else
12359 # ifdef RTLD_NOW
12360 # define LT_DLLAZY_OR_NOW RTLD_NOW
12361 # else
12362 # ifdef DL_NOW
12363 # define LT_DLLAZY_OR_NOW DL_NOW
12364 # else
12365 # define LT_DLLAZY_OR_NOW 0
12366 # endif
12367 # endif
12368 # endif
12369 # endif
12370 #endif
12371
12372 /* When -fvisibility=hidden is used, assume the code has been annotated
12373 correspondingly for the symbols needed. */
12374 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12375 int fnord () __attribute__((visibility("default")));
12376 #endif
12377
12378 int fnord () { return 42; }
12379 int main ()
12380 {
12381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12382 int status = $lt_dlunknown;
12383
12384 if (self)
12385 {
12386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12387 else
12388 {
12389 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12390 else puts (dlerror ());
12391 }
12392 /* dlclose (self); */
12393 }
12394 else
12395 puts (dlerror ());
12396
12397 return status;
12398 }
12399 _LT_EOF
12400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12401 (eval $ac_link) 2>&5
12402 ac_status=$?
12403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12404 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12405 (./conftest; exit; ) >&5 2>/dev/null
12406 lt_status=$?
12407 case x$lt_status in
12408 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12409 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12410 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12411 esac
12412 else :
12413 # compilation failed
12414 lt_cv_dlopen_self_static=no
12415 fi
12416 fi
12417 rm -fr conftest*
12418
12419
12420 fi
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12422 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12423 fi
12424
12425 CPPFLAGS=$save_CPPFLAGS
12426 LDFLAGS=$save_LDFLAGS
12427 LIBS=$save_LIBS
12428 ;;
12429 esac
12430
12431 case $lt_cv_dlopen_self in
12432 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12433 *) enable_dlopen_self=unknown ;;
12434 esac
12435
12436 case $lt_cv_dlopen_self_static in
12437 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12438 *) enable_dlopen_self_static=unknown ;;
12439 esac
12440 fi
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458 striplib=
12459 old_striplib=
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12461 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12462 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12463 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12464 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12466 $as_echo "yes" >&6; }
12467 else
12468 # FIXME - insert some real tests, host_os isn't really good enough
12469 case $host_os in
12470 darwin*)
12471 if test -n "$STRIP"; then
12472 striplib="$STRIP -x"
12473 old_striplib="$STRIP -S"
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12475 $as_echo "yes" >&6; }
12476 else
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12478 $as_echo "no" >&6; }
12479 fi
12480 ;;
12481 *)
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 ;;
12485 esac
12486 fi
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499 # Report what library types will actually be built
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12501 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12503 $as_echo "$can_build_shared" >&6; }
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12506 $as_echo_n "checking whether to build shared libraries... " >&6; }
12507 test no = "$can_build_shared" && enable_shared=no
12508
12509 # On AIX, shared libraries and static libraries use the same namespace, and
12510 # are all built from PIC.
12511 case $host_os in
12512 aix3*)
12513 test yes = "$enable_shared" && enable_static=no
12514 if test -n "$RANLIB"; then
12515 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12516 postinstall_cmds='$RANLIB $lib'
12517 fi
12518 ;;
12519
12520 aix[4-9]*)
12521 if test ia64 != "$host_cpu"; then
12522 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12523 yes,aix,yes) ;; # shared object as lib.so file only
12524 yes,svr4,*) ;; # shared object as lib.so archive member only
12525 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12526 esac
12527 fi
12528 ;;
12529 esac
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12531 $as_echo "$enable_shared" >&6; }
12532
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12534 $as_echo_n "checking whether to build static libraries... " >&6; }
12535 # Make sure either enable_shared or enable_static is yes.
12536 test yes = "$enable_shared" || enable_static=yes
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12538 $as_echo "$enable_static" >&6; }
12539
12540
12541
12542
12543 fi
12544 ac_ext=c
12545 ac_cpp='$CPP $CPPFLAGS'
12546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12549
12550 CC=$lt_save_CC
12551
12552 if test -n "$CXX" && ( test no != "$CXX" &&
12553 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12554 (test g++ != "$CXX"))); then
12555 ac_ext=cpp
12556 ac_cpp='$CXXCPP $CPPFLAGS'
12557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12561 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12562 if test -z "$CXXCPP"; then
12563 if ${ac_cv_prog_CXXCPP+:} false; then :
12564 $as_echo_n "(cached) " >&6
12565 else
12566 # Double quotes because CXXCPP needs to be expanded
12567 for CXXCPP in "$CXX -E" "/lib/cpp"
12568 do
12569 ac_preproc_ok=false
12570 for ac_cxx_preproc_warn_flag in '' yes
12571 do
12572 # Use a header file that comes with gcc, so configuring glibc
12573 # with a fresh cross-compiler works.
12574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12575 # <limits.h> exists even on freestanding compilers.
12576 # On the NeXT, cc -E runs the code through the compiler's parser,
12577 # not just through cpp. "Syntax error" is here to catch this case.
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12580 #ifdef __STDC__
12581 # include <limits.h>
12582 #else
12583 # include <assert.h>
12584 #endif
12585 Syntax error
12586 _ACEOF
12587 if ac_fn_cxx_try_cpp "$LINENO"; then :
12588
12589 else
12590 # Broken: fails on valid input.
12591 continue
12592 fi
12593 rm -f conftest.err conftest.i conftest.$ac_ext
12594
12595 # OK, works on sane cases. Now check whether nonexistent headers
12596 # can be detected and how.
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 #include <ac_nonexistent.h>
12600 _ACEOF
12601 if ac_fn_cxx_try_cpp "$LINENO"; then :
12602 # Broken: success on invalid input.
12603 continue
12604 else
12605 # Passes both tests.
12606 ac_preproc_ok=:
12607 break
12608 fi
12609 rm -f conftest.err conftest.i conftest.$ac_ext
12610
12611 done
12612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12613 rm -f conftest.i conftest.err conftest.$ac_ext
12614 if $ac_preproc_ok; then :
12615 break
12616 fi
12617
12618 done
12619 ac_cv_prog_CXXCPP=$CXXCPP
12620
12621 fi
12622 CXXCPP=$ac_cv_prog_CXXCPP
12623 else
12624 ac_cv_prog_CXXCPP=$CXXCPP
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12627 $as_echo "$CXXCPP" >&6; }
12628 ac_preproc_ok=false
12629 for ac_cxx_preproc_warn_flag in '' yes
12630 do
12631 # Use a header file that comes with gcc, so configuring glibc
12632 # with a fresh cross-compiler works.
12633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12634 # <limits.h> exists even on freestanding compilers.
12635 # On the NeXT, cc -E runs the code through the compiler's parser,
12636 # not just through cpp. "Syntax error" is here to catch this case.
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h. */
12639 #ifdef __STDC__
12640 # include <limits.h>
12641 #else
12642 # include <assert.h>
12643 #endif
12644 Syntax error
12645 _ACEOF
12646 if ac_fn_cxx_try_cpp "$LINENO"; then :
12647
12648 else
12649 # Broken: fails on valid input.
12650 continue
12651 fi
12652 rm -f conftest.err conftest.i conftest.$ac_ext
12653
12654 # OK, works on sane cases. Now check whether nonexistent headers
12655 # can be detected and how.
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 #include <ac_nonexistent.h>
12659 _ACEOF
12660 if ac_fn_cxx_try_cpp "$LINENO"; then :
12661 # Broken: success on invalid input.
12662 continue
12663 else
12664 # Passes both tests.
12665 ac_preproc_ok=:
12666 break
12667 fi
12668 rm -f conftest.err conftest.i conftest.$ac_ext
12669
12670 done
12671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12672 rm -f conftest.i conftest.err conftest.$ac_ext
12673 if $ac_preproc_ok; then :
12674
12675 else
12676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12678 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12679 See \`config.log' for more details" "$LINENO" 5; }
12680 fi
12681
12682 ac_ext=c
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687
12688 else
12689 _lt_caught_CXX_error=yes
12690 fi
12691
12692 ac_ext=cpp
12693 ac_cpp='$CXXCPP $CPPFLAGS'
12694 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12695 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12696 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12697
12698 archive_cmds_need_lc_CXX=no
12699 allow_undefined_flag_CXX=
12700 always_export_symbols_CXX=no
12701 archive_expsym_cmds_CXX=
12702 compiler_needs_object_CXX=no
12703 export_dynamic_flag_spec_CXX=
12704 hardcode_direct_CXX=no
12705 hardcode_direct_absolute_CXX=no
12706 hardcode_libdir_flag_spec_CXX=
12707 hardcode_libdir_separator_CXX=
12708 hardcode_minus_L_CXX=no
12709 hardcode_shlibpath_var_CXX=unsupported
12710 hardcode_automatic_CXX=no
12711 inherit_rpath_CXX=no
12712 module_cmds_CXX=
12713 module_expsym_cmds_CXX=
12714 link_all_deplibs_CXX=unknown
12715 old_archive_cmds_CXX=$old_archive_cmds
12716 reload_flag_CXX=$reload_flag
12717 reload_cmds_CXX=$reload_cmds
12718 no_undefined_flag_CXX=
12719 whole_archive_flag_spec_CXX=
12720 enable_shared_with_static_runtimes_CXX=no
12721
12722 # Source file extension for C++ test sources.
12723 ac_ext=cpp
12724
12725 # Object file extension for compiled C++ test sources.
12726 objext=o
12727 objext_CXX=$objext
12728
12729 # No sense in running all these tests if we already determined that
12730 # the CXX compiler isn't working. Some variables (like enable_shared)
12731 # are currently assumed to apply to all compilers on this platform,
12732 # and will be corrupted by setting them based on a non-working compiler.
12733 if test yes != "$_lt_caught_CXX_error"; then
12734 # Code to be used in simple compile tests
12735 lt_simple_compile_test_code="int some_variable = 0;"
12736
12737 # Code to be used in simple link tests
12738 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12739
12740 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12741
12742
12743
12744
12745
12746
12747 # If no C compiler was specified, use CC.
12748 LTCC=${LTCC-"$CC"}
12749
12750 # If no C compiler flags were specified, use CFLAGS.
12751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12752
12753 # Allow CC to be a program name with arguments.
12754 compiler=$CC
12755
12756
12757 # save warnings/boilerplate of simple test code
12758 ac_outfile=conftest.$ac_objext
12759 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12760 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12761 _lt_compiler_boilerplate=`cat conftest.err`
12762 $RM conftest*
12763
12764 ac_outfile=conftest.$ac_objext
12765 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12766 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12767 _lt_linker_boilerplate=`cat conftest.err`
12768 $RM -r conftest*
12769
12770
12771 # Allow CC to be a program name with arguments.
12772 lt_save_CC=$CC
12773 lt_save_CFLAGS=$CFLAGS
12774 lt_save_LD=$LD
12775 lt_save_GCC=$GCC
12776 GCC=$GXX
12777 lt_save_with_gnu_ld=$with_gnu_ld
12778 lt_save_path_LD=$lt_cv_path_LD
12779 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12780 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12781 else
12782 $as_unset lt_cv_prog_gnu_ld
12783 fi
12784 if test -n "${lt_cv_path_LDCXX+set}"; then
12785 lt_cv_path_LD=$lt_cv_path_LDCXX
12786 else
12787 $as_unset lt_cv_path_LD
12788 fi
12789 test -z "${LDCXX+set}" || LD=$LDCXX
12790 CC=${CXX-"c++"}
12791 CFLAGS=$CXXFLAGS
12792 compiler=$CC
12793 compiler_CXX=$CC
12794 func_cc_basename $compiler
12795 cc_basename=$func_cc_basename_result
12796
12797
12798 if test -n "$compiler"; then
12799 # We don't want -fno-exception when compiling C++ code, so set the
12800 # no_builtin_flag separately
12801 if test yes = "$GXX"; then
12802 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12803 else
12804 lt_prog_compiler_no_builtin_flag_CXX=
12805 fi
12806
12807 if test yes = "$GXX"; then
12808 # Set up default GNU C++ configuration
12809
12810
12811
12812 # Check whether --with-gnu-ld was given.
12813 if test "${with_gnu_ld+set}" = set; then :
12814 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12815 else
12816 with_gnu_ld=no
12817 fi
12818
12819 ac_prog=ld
12820 if test yes = "$GCC"; then
12821 # Check if gcc -print-prog-name=ld gives a path.
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12823 $as_echo_n "checking for ld used by $CC... " >&6; }
12824 case $host in
12825 *-*-mingw*)
12826 # gcc leaves a trailing carriage return, which upsets mingw
12827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12828 *)
12829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12830 esac
12831 case $ac_prog in
12832 # Accept absolute paths.
12833 [\\/]* | ?:[\\/]*)
12834 re_direlt='/[^/][^/]*/\.\./'
12835 # Canonicalize the pathname of ld
12836 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12837 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12838 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12839 done
12840 test -z "$LD" && LD=$ac_prog
12841 ;;
12842 "")
12843 # If it fails, then pretend we aren't using GCC.
12844 ac_prog=ld
12845 ;;
12846 *)
12847 # If it is relative, then search for the first ld in PATH.
12848 with_gnu_ld=unknown
12849 ;;
12850 esac
12851 elif test yes = "$with_gnu_ld"; then
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12853 $as_echo_n "checking for GNU ld... " >&6; }
12854 else
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12856 $as_echo_n "checking for non-GNU ld... " >&6; }
12857 fi
12858 if ${lt_cv_path_LD+:} false; then :
12859 $as_echo_n "(cached) " >&6
12860 else
12861 if test -z "$LD"; then
12862 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12863 for ac_dir in $PATH; do
12864 IFS=$lt_save_ifs
12865 test -z "$ac_dir" && ac_dir=.
12866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12867 lt_cv_path_LD=$ac_dir/$ac_prog
12868 # Check to see if the program is GNU ld. I'd rather use --version,
12869 # but apparently some variants of GNU ld only accept -v.
12870 # Break only if it was the GNU/non-GNU ld that we prefer.
12871 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12872 *GNU* | *'with BFD'*)
12873 test no != "$with_gnu_ld" && break
12874 ;;
12875 *)
12876 test yes != "$with_gnu_ld" && break
12877 ;;
12878 esac
12879 fi
12880 done
12881 IFS=$lt_save_ifs
12882 else
12883 lt_cv_path_LD=$LD # Let the user override the test with a path.
12884 fi
12885 fi
12886
12887 LD=$lt_cv_path_LD
12888 if test -n "$LD"; then
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12890 $as_echo "$LD" >&6; }
12891 else
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893 $as_echo "no" >&6; }
12894 fi
12895 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12897 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12898 if ${lt_cv_prog_gnu_ld+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12902 case `$LD -v 2>&1 </dev/null` in
12903 *GNU* | *'with BFD'*)
12904 lt_cv_prog_gnu_ld=yes
12905 ;;
12906 *)
12907 lt_cv_prog_gnu_ld=no
12908 ;;
12909 esac
12910 fi
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12912 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12913 with_gnu_ld=$lt_cv_prog_gnu_ld
12914
12915
12916
12917
12918
12919
12920
12921 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12922 # archiving commands below assume that GNU ld is being used.
12923 if test yes = "$with_gnu_ld"; then
12924 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12925 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12926
12927 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12928 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12929
12930 # If archive_cmds runs LD, not CC, wlarc should be empty
12931 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12932 # investigate it a little bit more. (MM)
12933 wlarc='$wl'
12934
12935 # ancient GNU ld didn't support --whole-archive et. al.
12936 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12937 $GREP 'no-whole-archive' > /dev/null; then
12938 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12939 else
12940 whole_archive_flag_spec_CXX=
12941 fi
12942 else
12943 with_gnu_ld=no
12944 wlarc=
12945
12946 # A generic and very simple default shared library creation
12947 # command for GNU C++ for the case where it uses the native
12948 # linker, instead of GNU ld. If possible, this setting should
12949 # overridden to take advantage of the native linker features on
12950 # the platform it is being used on.
12951 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12952 fi
12953
12954 # Commands to make compiler produce verbose output that lists
12955 # what "hidden" libraries, object files and flags are used when
12956 # linking a shared library.
12957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12958
12959 else
12960 GXX=no
12961 with_gnu_ld=no
12962 wlarc=
12963 fi
12964
12965 # PORTME: fill in a description of your system's C++ link characteristics
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12967 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12968 ld_shlibs_CXX=yes
12969 case $host_os in
12970 aix3*)
12971 # FIXME: insert proper C++ library support
12972 ld_shlibs_CXX=no
12973 ;;
12974 aix[4-9]*)
12975 if test ia64 = "$host_cpu"; then
12976 # On IA64, the linker does run time linking by default, so we don't
12977 # have to do anything special.
12978 aix_use_runtimelinking=no
12979 exp_sym_flag='-Bexport'
12980 no_entry_flag=
12981 else
12982 aix_use_runtimelinking=no
12983
12984 # Test if we are trying to use run time linking or normal
12985 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12986 # have runtime linking enabled, and use it for executables.
12987 # For shared libraries, we enable/disable runtime linking
12988 # depending on the kind of the shared library created -
12989 # when "with_aix_soname,aix_use_runtimelinking" is:
12990 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12991 # "aix,yes" lib.so shared, rtl:yes, for executables
12992 # lib.a static archive
12993 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12994 # lib.a(lib.so.V) shared, rtl:no, for executables
12995 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12996 # lib.a(lib.so.V) shared, rtl:no
12997 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12998 # lib.a static archive
12999 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13000 for ld_flag in $LDFLAGS; do
13001 case $ld_flag in
13002 *-brtl*)
13003 aix_use_runtimelinking=yes
13004 break
13005 ;;
13006 esac
13007 done
13008 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13009 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13010 # so we don't have lib.a shared libs to link our executables.
13011 # We have to force runtime linking in this case.
13012 aix_use_runtimelinking=yes
13013 LDFLAGS="$LDFLAGS -Wl,-brtl"
13014 fi
13015 ;;
13016 esac
13017
13018 exp_sym_flag='-bexport'
13019 no_entry_flag='-bnoentry'
13020 fi
13021
13022 # When large executables or shared objects are built, AIX ld can
13023 # have problems creating the table of contents. If linking a library
13024 # or program results in "error TOC overflow" add -mminimal-toc to
13025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13027
13028 archive_cmds_CXX=''
13029 hardcode_direct_CXX=yes
13030 hardcode_direct_absolute_CXX=yes
13031 hardcode_libdir_separator_CXX=':'
13032 link_all_deplibs_CXX=yes
13033 file_list_spec_CXX='$wl-f,'
13034 case $with_aix_soname,$aix_use_runtimelinking in
13035 aix,*) ;; # no import file
13036 svr4,* | *,yes) # use import file
13037 # The Import File defines what to hardcode.
13038 hardcode_direct_CXX=no
13039 hardcode_direct_absolute_CXX=no
13040 ;;
13041 esac
13042
13043 if test yes = "$GXX"; then
13044 case $host_os in aix4.[012]|aix4.[012].*)
13045 # We only want to do this on AIX 4.2 and lower, the check
13046 # below for broken collect2 doesn't work under 4.3+
13047 collect2name=`$CC -print-prog-name=collect2`
13048 if test -f "$collect2name" &&
13049 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13050 then
13051 # We have reworked collect2
13052 :
13053 else
13054 # We have old collect2
13055 hardcode_direct_CXX=unsupported
13056 # It fails to find uninstalled libraries when the uninstalled
13057 # path is not listed in the libpath. Setting hardcode_minus_L
13058 # to unsupported forces relinking
13059 hardcode_minus_L_CXX=yes
13060 hardcode_libdir_flag_spec_CXX='-L$libdir'
13061 hardcode_libdir_separator_CXX=
13062 fi
13063 esac
13064 shared_flag='-shared'
13065 if test yes = "$aix_use_runtimelinking"; then
13066 shared_flag=$shared_flag' $wl-G'
13067 fi
13068 # Need to ensure runtime linking is disabled for the traditional
13069 # shared library, or the linker may eventually find shared libraries
13070 # /with/ Import File - we do not want to mix them.
13071 shared_flag_aix='-shared'
13072 shared_flag_svr4='-shared $wl-G'
13073 else
13074 # not using gcc
13075 if test ia64 = "$host_cpu"; then
13076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13077 # chokes on -Wl,-G. The following line is correct:
13078 shared_flag='-G'
13079 else
13080 if test yes = "$aix_use_runtimelinking"; then
13081 shared_flag='$wl-G'
13082 else
13083 shared_flag='$wl-bM:SRE'
13084 fi
13085 shared_flag_aix='$wl-bM:SRE'
13086 shared_flag_svr4='$wl-G'
13087 fi
13088 fi
13089
13090 export_dynamic_flag_spec_CXX='$wl-bexpall'
13091 # It seems that -bexpall does not export symbols beginning with
13092 # underscore (_), so it is better to generate a list of symbols to
13093 # export.
13094 always_export_symbols_CXX=yes
13095 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13096 # Warning - without using the other runtime loading flags (-brtl),
13097 # -berok will link without error, but may produce a broken library.
13098 # The "-G" linker flag allows undefined symbols.
13099 no_undefined_flag_CXX='-bernotok'
13100 # Determine the default libpath from the value encoded in an empty
13101 # executable.
13102 if test set = "${lt_cv_aix_libpath+set}"; then
13103 aix_libpath=$lt_cv_aix_libpath
13104 else
13105 if ${lt_cv_aix_libpath__CXX+:} false; then :
13106 $as_echo_n "(cached) " >&6
13107 else
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110
13111 int
13112 main ()
13113 {
13114
13115 ;
13116 return 0;
13117 }
13118 _ACEOF
13119 if ac_fn_cxx_try_link "$LINENO"; then :
13120
13121 lt_aix_libpath_sed='
13122 /Import File Strings/,/^$/ {
13123 /^0/ {
13124 s/^0 *\([^ ]*\) *$/\1/
13125 p
13126 }
13127 }'
13128 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13129 # Check for a 64-bit object if we didn't find anything.
13130 if test -z "$lt_cv_aix_libpath__CXX"; then
13131 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13132 fi
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext \
13135 conftest$ac_exeext conftest.$ac_ext
13136 if test -z "$lt_cv_aix_libpath__CXX"; then
13137 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13138 fi
13139
13140 fi
13141
13142 aix_libpath=$lt_cv_aix_libpath__CXX
13143 fi
13144
13145 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13146
13147 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13148 else
13149 if test ia64 = "$host_cpu"; then
13150 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13151 allow_undefined_flag_CXX="-z nodefs"
13152 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"
13153 else
13154 # Determine the default libpath from the value encoded in an
13155 # empty executable.
13156 if test set = "${lt_cv_aix_libpath+set}"; then
13157 aix_libpath=$lt_cv_aix_libpath
13158 else
13159 if ${lt_cv_aix_libpath__CXX+:} false; then :
13160 $as_echo_n "(cached) " >&6
13161 else
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164
13165 int
13166 main ()
13167 {
13168
13169 ;
13170 return 0;
13171 }
13172 _ACEOF
13173 if ac_fn_cxx_try_link "$LINENO"; then :
13174
13175 lt_aix_libpath_sed='
13176 /Import File Strings/,/^$/ {
13177 /^0/ {
13178 s/^0 *\([^ ]*\) *$/\1/
13179 p
13180 }
13181 }'
13182 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13183 # Check for a 64-bit object if we didn't find anything.
13184 if test -z "$lt_cv_aix_libpath__CXX"; then
13185 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13186 fi
13187 fi
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13190 if test -z "$lt_cv_aix_libpath__CXX"; then
13191 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13192 fi
13193
13194 fi
13195
13196 aix_libpath=$lt_cv_aix_libpath__CXX
13197 fi
13198
13199 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13200 # Warning - without using the other run time loading flags,
13201 # -berok will link without error, but may produce a broken library.
13202 no_undefined_flag_CXX=' $wl-bernotok'
13203 allow_undefined_flag_CXX=' $wl-berok'
13204 if test yes = "$with_gnu_ld"; then
13205 # We only use this code for GNU lds that support --whole-archive.
13206 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13207 else
13208 # Exported symbols can be pulled into shared objects from archives
13209 whole_archive_flag_spec_CXX='$convenience'
13210 fi
13211 archive_cmds_need_lc_CXX=yes
13212 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13213 # -brtl affects multiple linker settings, -berok does not and is overridden later
13214 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13215 if test svr4 != "$with_aix_soname"; then
13216 # This is similar to how AIX traditionally builds its shared
13217 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13218 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13219 fi
13220 if test aix != "$with_aix_soname"; then
13221 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13222 else
13223 # used by -dlpreopen to get the symbols
13224 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13225 fi
13226 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13227 fi
13228 fi
13229 ;;
13230
13231 beos*)
13232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13233 allow_undefined_flag_CXX=unsupported
13234 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13235 # support --undefined. This deserves some investigation. FIXME
13236 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13237 else
13238 ld_shlibs_CXX=no
13239 fi
13240 ;;
13241
13242 chorus*)
13243 case $cc_basename in
13244 *)
13245 # FIXME: insert proper C++ library support
13246 ld_shlibs_CXX=no
13247 ;;
13248 esac
13249 ;;
13250
13251 cygwin* | mingw* | pw32* | cegcc*)
13252 case $GXX,$cc_basename in
13253 ,cl* | no,cl*)
13254 # Native MSVC
13255 # hardcode_libdir_flag_spec is actually meaningless, as there is
13256 # no search path for DLLs.
13257 hardcode_libdir_flag_spec_CXX=' '
13258 allow_undefined_flag_CXX=unsupported
13259 always_export_symbols_CXX=yes
13260 file_list_spec_CXX='@'
13261 # Tell ltmain to make .lib files, not .a files.
13262 libext=lib
13263 # Tell ltmain to make .dll files, not .so files.
13264 shrext_cmds=.dll
13265 # FIXME: Setting linknames here is a bad hack.
13266 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13267 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13268 cp "$export_symbols" "$output_objdir/$soname.def";
13269 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13270 else
13271 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13272 fi~
13273 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13274 linknames='
13275 # The linker will not automatically build a static lib if we build a DLL.
13276 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13277 enable_shared_with_static_runtimes_CXX=yes
13278 # Don't use ranlib
13279 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13280 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13281 lt_tool_outputfile="@TOOL_OUTPUT@"~
13282 case $lt_outputfile in
13283 *.exe|*.EXE) ;;
13284 *)
13285 lt_outputfile=$lt_outputfile.exe
13286 lt_tool_outputfile=$lt_tool_outputfile.exe
13287 ;;
13288 esac~
13289 func_to_tool_file "$lt_outputfile"~
13290 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13291 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13292 $RM "$lt_outputfile.manifest";
13293 fi'
13294 ;;
13295 *)
13296 # g++
13297 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13298 # as there is no search path for DLLs.
13299 hardcode_libdir_flag_spec_CXX='-L$libdir'
13300 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13301 allow_undefined_flag_CXX=unsupported
13302 always_export_symbols_CXX=no
13303 enable_shared_with_static_runtimes_CXX=yes
13304
13305 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13306 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'
13307 # If the export-symbols file already is a .def file, use it as
13308 # is; otherwise, prepend EXPORTS...
13309 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13310 cp $export_symbols $output_objdir/$soname.def;
13311 else
13312 echo EXPORTS > $output_objdir/$soname.def;
13313 cat $export_symbols >> $output_objdir/$soname.def;
13314 fi~
13315 $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'
13316 else
13317 ld_shlibs_CXX=no
13318 fi
13319 ;;
13320 esac
13321 ;;
13322 darwin* | rhapsody*)
13323
13324
13325 archive_cmds_need_lc_CXX=no
13326 hardcode_direct_CXX=no
13327 hardcode_automatic_CXX=yes
13328 hardcode_shlibpath_var_CXX=unsupported
13329 if test yes = "$lt_cv_ld_force_load"; then
13330 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13331
13332 else
13333 whole_archive_flag_spec_CXX=''
13334 fi
13335 link_all_deplibs_CXX=yes
13336 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13337 case $cc_basename in
13338 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13339 *) _lt_dar_can_shared=$GCC ;;
13340 esac
13341 if test yes = "$_lt_dar_can_shared"; then
13342 output_verbose_link_cmd=func_echo_all
13343 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13344 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13345 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13346 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13347 if test yes != "$lt_cv_apple_cc_single_mod"; then
13348 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
13349 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
13350 fi
13351
13352 else
13353 ld_shlibs_CXX=no
13354 fi
13355
13356 ;;
13357
13358 os2*)
13359 hardcode_libdir_flag_spec_CXX='-L$libdir'
13360 hardcode_minus_L_CXX=yes
13361 allow_undefined_flag_CXX=unsupported
13362 shrext_cmds=.dll
13363 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13364 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13365 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13366 $ECHO EXPORTS >> $output_objdir/$libname.def~
13367 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13368 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13369 emximp -o $lib $output_objdir/$libname.def'
13370 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13371 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13372 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13373 $ECHO EXPORTS >> $output_objdir/$libname.def~
13374 prefix_cmds="$SED"~
13375 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13376 prefix_cmds="$prefix_cmds -e 1d";
13377 fi~
13378 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13379 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13380 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13381 emximp -o $lib $output_objdir/$libname.def'
13382 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13383 enable_shared_with_static_runtimes_CXX=yes
13384 ;;
13385
13386 dgux*)
13387 case $cc_basename in
13388 ec++*)
13389 # FIXME: insert proper C++ library support
13390 ld_shlibs_CXX=no
13391 ;;
13392 ghcx*)
13393 # Green Hills C++ Compiler
13394 # FIXME: insert proper C++ library support
13395 ld_shlibs_CXX=no
13396 ;;
13397 *)
13398 # FIXME: insert proper C++ library support
13399 ld_shlibs_CXX=no
13400 ;;
13401 esac
13402 ;;
13403
13404 freebsd2.*)
13405 # C++ shared libraries reported to be fairly broken before
13406 # switch to ELF
13407 ld_shlibs_CXX=no
13408 ;;
13409
13410 freebsd-elf*)
13411 archive_cmds_need_lc_CXX=no
13412 ;;
13413
13414 freebsd* | dragonfly*)
13415 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13416 # conventions
13417 ld_shlibs_CXX=yes
13418 ;;
13419
13420 haiku*)
13421 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13422 link_all_deplibs_CXX=yes
13423 ;;
13424
13425 hpux9*)
13426 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13427 hardcode_libdir_separator_CXX=:
13428 export_dynamic_flag_spec_CXX='$wl-E'
13429 hardcode_direct_CXX=yes
13430 hardcode_minus_L_CXX=yes # Not in the search PATH,
13431 # but as the default
13432 # location of the library.
13433
13434 case $cc_basename in
13435 CC*)
13436 # FIXME: insert proper C++ library support
13437 ld_shlibs_CXX=no
13438 ;;
13439 aCC*)
13440 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13441 # Commands to make compiler produce verbose output that lists
13442 # what "hidden" libraries, object files and flags are used when
13443 # linking a shared library.
13444 #
13445 # There doesn't appear to be a way to prevent this compiler from
13446 # explicitly linking system object files so we need to strip them
13447 # from the output so that they don't get included in the library
13448 # dependencies.
13449 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13450 ;;
13451 *)
13452 if test yes = "$GXX"; then
13453 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13454 else
13455 # FIXME: insert proper C++ library support
13456 ld_shlibs_CXX=no
13457 fi
13458 ;;
13459 esac
13460 ;;
13461
13462 hpux10*|hpux11*)
13463 if test no = "$with_gnu_ld"; then
13464 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13465 hardcode_libdir_separator_CXX=:
13466
13467 case $host_cpu in
13468 hppa*64*|ia64*)
13469 ;;
13470 *)
13471 export_dynamic_flag_spec_CXX='$wl-E'
13472 ;;
13473 esac
13474 fi
13475 case $host_cpu in
13476 hppa*64*|ia64*)
13477 hardcode_direct_CXX=no
13478 hardcode_shlibpath_var_CXX=no
13479 ;;
13480 *)
13481 hardcode_direct_CXX=yes
13482 hardcode_direct_absolute_CXX=yes
13483 hardcode_minus_L_CXX=yes # Not in the search PATH,
13484 # but as the default
13485 # location of the library.
13486 ;;
13487 esac
13488
13489 case $cc_basename in
13490 CC*)
13491 # FIXME: insert proper C++ library support
13492 ld_shlibs_CXX=no
13493 ;;
13494 aCC*)
13495 case $host_cpu in
13496 hppa*64*)
13497 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13498 ;;
13499 ia64*)
13500 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13501 ;;
13502 *)
13503 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13504 ;;
13505 esac
13506 # Commands to make compiler produce verbose output that lists
13507 # what "hidden" libraries, object files and flags are used when
13508 # linking a shared library.
13509 #
13510 # There doesn't appear to be a way to prevent this compiler from
13511 # explicitly linking system object files so we need to strip them
13512 # from the output so that they don't get included in the library
13513 # dependencies.
13514 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13515 ;;
13516 *)
13517 if test yes = "$GXX"; then
13518 if test no = "$with_gnu_ld"; then
13519 case $host_cpu in
13520 hppa*64*)
13521 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13522 ;;
13523 ia64*)
13524 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13525 ;;
13526 *)
13527 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13528 ;;
13529 esac
13530 fi
13531 else
13532 # FIXME: insert proper C++ library support
13533 ld_shlibs_CXX=no
13534 fi
13535 ;;
13536 esac
13537 ;;
13538
13539 interix[3-9]*)
13540 hardcode_direct_CXX=no
13541 hardcode_shlibpath_var_CXX=no
13542 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13543 export_dynamic_flag_spec_CXX='$wl-E'
13544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13545 # Instead, shared libraries are loaded at an image base (0x10000000 by
13546 # default) and relocated if they conflict, which is a slow very memory
13547 # consuming and fragmenting process. To avoid this, we pick a random,
13548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13549 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13550 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'
13551 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'
13552 ;;
13553 irix5* | irix6*)
13554 case $cc_basename in
13555 CC*)
13556 # SGI C++
13557 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13558
13559 # Archives containing C++ object files must be created using
13560 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13561 # necessary to make sure instantiated templates are included
13562 # in the archive.
13563 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13564 ;;
13565 *)
13566 if test yes = "$GXX"; then
13567 if test no = "$with_gnu_ld"; then
13568 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13569 else
13570 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13571 fi
13572 fi
13573 link_all_deplibs_CXX=yes
13574 ;;
13575 esac
13576 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13577 hardcode_libdir_separator_CXX=:
13578 inherit_rpath_CXX=yes
13579 ;;
13580
13581 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13582 case $cc_basename in
13583 KCC*)
13584 # Kuck and Associates, Inc. (KAI) C++ Compiler
13585
13586 # KCC will only create a shared library if the output file
13587 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13588 # to its proper name (with version) after linking.
13589 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'
13590 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'
13591 # Commands to make compiler produce verbose output that lists
13592 # what "hidden" libraries, object files and flags are used when
13593 # linking a shared library.
13594 #
13595 # There doesn't appear to be a way to prevent this compiler from
13596 # explicitly linking system object files so we need to strip them
13597 # from the output so that they don't get included in the library
13598 # dependencies.
13599 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13600
13601 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13602 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13603
13604 # Archives containing C++ object files must be created using
13605 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13606 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13607 ;;
13608 icpc* | ecpc* )
13609 # Intel C++
13610 with_gnu_ld=yes
13611 # version 8.0 and above of icpc choke on multiply defined symbols
13612 # if we add $predep_objects and $postdep_objects, however 7.1 and
13613 # earlier do not add the objects themselves.
13614 case `$CC -V 2>&1` in
13615 *"Version 7."*)
13616 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13617 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'
13618 ;;
13619 *) # Version 8.0 or newer
13620 tmp_idyn=
13621 case $host_cpu in
13622 ia64*) tmp_idyn=' -i_dynamic';;
13623 esac
13624 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13625 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'
13626 ;;
13627 esac
13628 archive_cmds_need_lc_CXX=no
13629 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13630 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13631 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13632 ;;
13633 pgCC* | pgcpp*)
13634 # Portland Group C++ compiler
13635 case `$CC -V` in
13636 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13637 prelink_cmds_CXX='tpldir=Template.dir~
13638 rm -rf $tpldir~
13639 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13640 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13641 old_archive_cmds_CXX='tpldir=Template.dir~
13642 rm -rf $tpldir~
13643 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13644 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13645 $RANLIB $oldlib'
13646 archive_cmds_CXX='tpldir=Template.dir~
13647 rm -rf $tpldir~
13648 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13649 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13650 archive_expsym_cmds_CXX='tpldir=Template.dir~
13651 rm -rf $tpldir~
13652 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13653 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13654 ;;
13655 *) # Version 6 and above use weak symbols
13656 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13657 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'
13658 ;;
13659 esac
13660
13661 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13662 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13663 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13664 ;;
13665 cxx*)
13666 # Compaq C++
13667 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13668 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'
13669
13670 runpath_var=LD_RUN_PATH
13671 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13672 hardcode_libdir_separator_CXX=:
13673
13674 # Commands to make compiler produce verbose output that lists
13675 # what "hidden" libraries, object files and flags are used when
13676 # linking a shared library.
13677 #
13678 # There doesn't appear to be a way to prevent this compiler from
13679 # explicitly linking system object files so we need to strip them
13680 # from the output so that they don't get included in the library
13681 # dependencies.
13682 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13683 ;;
13684 xl* | mpixl* | bgxl*)
13685 # IBM XL 8.0 on PPC, with GNU ld
13686 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13687 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13688 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13689 if test yes = "$supports_anon_versioning"; then
13690 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13691 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13692 echo "local: *; };" >> $output_objdir/$libname.ver~
13693 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13694 fi
13695 ;;
13696 *)
13697 case `$CC -V 2>&1 | sed 5q` in
13698 *Sun\ C*)
13699 # Sun C++ 5.9
13700 no_undefined_flag_CXX=' -zdefs'
13701 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13702 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
13703 hardcode_libdir_flag_spec_CXX='-R$libdir'
13704 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13705 compiler_needs_object_CXX=yes
13706
13707 # Not sure whether something based on
13708 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13709 # would be better.
13710 output_verbose_link_cmd='func_echo_all'
13711
13712 # Archives containing C++ object files must be created using
13713 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13714 # necessary to make sure instantiated templates are included
13715 # in the archive.
13716 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13717 ;;
13718 esac
13719 ;;
13720 esac
13721 ;;
13722
13723 lynxos*)
13724 # FIXME: insert proper C++ library support
13725 ld_shlibs_CXX=no
13726 ;;
13727
13728 m88k*)
13729 # FIXME: insert proper C++ library support
13730 ld_shlibs_CXX=no
13731 ;;
13732
13733 mvs*)
13734 case $cc_basename in
13735 cxx*)
13736 # FIXME: insert proper C++ library support
13737 ld_shlibs_CXX=no
13738 ;;
13739 *)
13740 # FIXME: insert proper C++ library support
13741 ld_shlibs_CXX=no
13742 ;;
13743 esac
13744 ;;
13745
13746 netbsd*)
13747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13748 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13749 wlarc=
13750 hardcode_libdir_flag_spec_CXX='-R$libdir'
13751 hardcode_direct_CXX=yes
13752 hardcode_shlibpath_var_CXX=no
13753 fi
13754 # Workaround some broken pre-1.5 toolchains
13755 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13756 ;;
13757
13758 *nto* | *qnx*)
13759 ld_shlibs_CXX=yes
13760 ;;
13761
13762 openbsd* | bitrig*)
13763 if test -f /usr/libexec/ld.so; then
13764 hardcode_direct_CXX=yes
13765 hardcode_shlibpath_var_CXX=no
13766 hardcode_direct_absolute_CXX=yes
13767 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13768 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13770 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13771 export_dynamic_flag_spec_CXX='$wl-E'
13772 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13773 fi
13774 output_verbose_link_cmd=func_echo_all
13775 else
13776 ld_shlibs_CXX=no
13777 fi
13778 ;;
13779
13780 osf3* | osf4* | osf5*)
13781 case $cc_basename in
13782 KCC*)
13783 # Kuck and Associates, Inc. (KAI) C++ Compiler
13784
13785 # KCC will only create a shared library if the output file
13786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13787 # to its proper name (with version) after linking.
13788 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'
13789
13790 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13791 hardcode_libdir_separator_CXX=:
13792
13793 # Archives containing C++ object files must be created using
13794 # the KAI C++ compiler.
13795 case $host in
13796 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13797 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13798 esac
13799 ;;
13800 RCC*)
13801 # Rational C++ 2.4.1
13802 # FIXME: insert proper C++ library support
13803 ld_shlibs_CXX=no
13804 ;;
13805 cxx*)
13806 case $host in
13807 osf3*)
13808 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13809 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13810 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13811 ;;
13812 *)
13813 allow_undefined_flag_CXX=' -expect_unresolved \*'
13814 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13815 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13816 echo "-hidden">> $lib.exp~
13817 $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~
13818 $RM $lib.exp'
13819 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13820 ;;
13821 esac
13822
13823 hardcode_libdir_separator_CXX=:
13824
13825 # Commands to make compiler produce verbose output that lists
13826 # what "hidden" libraries, object files and flags are used when
13827 # linking a shared library.
13828 #
13829 # There doesn't appear to be a way to prevent this compiler from
13830 # explicitly linking system object files so we need to strip them
13831 # from the output so that they don't get included in the library
13832 # dependencies.
13833 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13834 ;;
13835 *)
13836 if test yes,no = "$GXX,$with_gnu_ld"; then
13837 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13838 case $host in
13839 osf3*)
13840 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13841 ;;
13842 *)
13843 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13844 ;;
13845 esac
13846
13847 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13848 hardcode_libdir_separator_CXX=:
13849
13850 # Commands to make compiler produce verbose output that lists
13851 # what "hidden" libraries, object files and flags are used when
13852 # linking a shared library.
13853 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13854
13855 else
13856 # FIXME: insert proper C++ library support
13857 ld_shlibs_CXX=no
13858 fi
13859 ;;
13860 esac
13861 ;;
13862
13863 psos*)
13864 # FIXME: insert proper C++ library support
13865 ld_shlibs_CXX=no
13866 ;;
13867
13868 sunos4*)
13869 case $cc_basename in
13870 CC*)
13871 # Sun C++ 4.x
13872 # FIXME: insert proper C++ library support
13873 ld_shlibs_CXX=no
13874 ;;
13875 lcc*)
13876 # Lucid
13877 # FIXME: insert proper C++ library support
13878 ld_shlibs_CXX=no
13879 ;;
13880 *)
13881 # FIXME: insert proper C++ library support
13882 ld_shlibs_CXX=no
13883 ;;
13884 esac
13885 ;;
13886
13887 solaris*)
13888 case $cc_basename in
13889 CC* | sunCC*)
13890 # Sun C++ 4.2, 5.x and Centerline C++
13891 archive_cmds_need_lc_CXX=yes
13892 no_undefined_flag_CXX=' -zdefs'
13893 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13894 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13895 $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'
13896
13897 hardcode_libdir_flag_spec_CXX='-R$libdir'
13898 hardcode_shlibpath_var_CXX=no
13899 case $host_os in
13900 solaris2.[0-5] | solaris2.[0-5].*) ;;
13901 *)
13902 # The compiler driver will combine and reorder linker options,
13903 # but understands '-z linker_flag'.
13904 # Supported since Solaris 2.6 (maybe 2.5.1?)
13905 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13906 ;;
13907 esac
13908 link_all_deplibs_CXX=yes
13909
13910 output_verbose_link_cmd='func_echo_all'
13911
13912 # Archives containing C++ object files must be created using
13913 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13914 # necessary to make sure instantiated templates are included
13915 # in the archive.
13916 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13917 ;;
13918 gcx*)
13919 # Green Hills C++ Compiler
13920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13921
13922 # The C++ compiler must be used to create the archive.
13923 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13924 ;;
13925 *)
13926 # GNU C++ compiler with Solaris linker
13927 if test yes,no = "$GXX,$with_gnu_ld"; then
13928 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13929 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13930 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13931 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13932 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13933
13934 # Commands to make compiler produce verbose output that lists
13935 # what "hidden" libraries, object files and flags are used when
13936 # linking a shared library.
13937 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13938 else
13939 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13940 # platform.
13941 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13942 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13943 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13944
13945 # Commands to make compiler produce verbose output that lists
13946 # what "hidden" libraries, object files and flags are used when
13947 # linking a shared library.
13948 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13949 fi
13950
13951 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13952 case $host_os in
13953 solaris2.[0-5] | solaris2.[0-5].*) ;;
13954 *)
13955 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13956 ;;
13957 esac
13958 fi
13959 ;;
13960 esac
13961 ;;
13962
13963 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13964 no_undefined_flag_CXX='$wl-z,text'
13965 archive_cmds_need_lc_CXX=no
13966 hardcode_shlibpath_var_CXX=no
13967 runpath_var='LD_RUN_PATH'
13968
13969 case $cc_basename in
13970 CC*)
13971 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13972 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13973 ;;
13974 *)
13975 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13976 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13977 ;;
13978 esac
13979 ;;
13980
13981 sysv5* | sco3.2v5* | sco5v6*)
13982 # Note: We CANNOT use -z defs as we might desire, because we do not
13983 # link with -lc, and that would cause any symbols used from libc to
13984 # always be unresolved, which means just about no library would
13985 # ever link correctly. If we're not using GNU ld we use -z text
13986 # though, which does catch some bad symbols but isn't as heavy-handed
13987 # as -z defs.
13988 no_undefined_flag_CXX='$wl-z,text'
13989 allow_undefined_flag_CXX='$wl-z,nodefs'
13990 archive_cmds_need_lc_CXX=no
13991 hardcode_shlibpath_var_CXX=no
13992 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13993 hardcode_libdir_separator_CXX=':'
13994 link_all_deplibs_CXX=yes
13995 export_dynamic_flag_spec_CXX='$wl-Bexport'
13996 runpath_var='LD_RUN_PATH'
13997
13998 case $cc_basename in
13999 CC*)
14000 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14001 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14002 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14003 '"$old_archive_cmds_CXX"
14004 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14005 '"$reload_cmds_CXX"
14006 ;;
14007 *)
14008 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14009 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14010 ;;
14011 esac
14012 ;;
14013
14014 tandem*)
14015 case $cc_basename in
14016 NCC*)
14017 # NonStop-UX NCC 3.20
14018 # FIXME: insert proper C++ library support
14019 ld_shlibs_CXX=no
14020 ;;
14021 *)
14022 # FIXME: insert proper C++ library support
14023 ld_shlibs_CXX=no
14024 ;;
14025 esac
14026 ;;
14027
14028 vxworks*)
14029 # FIXME: insert proper C++ library support
14030 ld_shlibs_CXX=no
14031 ;;
14032
14033 *)
14034 # FIXME: insert proper C++ library support
14035 ld_shlibs_CXX=no
14036 ;;
14037 esac
14038
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14040 $as_echo "$ld_shlibs_CXX" >&6; }
14041 test no = "$ld_shlibs_CXX" && can_build_shared=no
14042
14043 GCC_CXX=$GXX
14044 LD_CXX=$LD
14045
14046 ## CAVEAT EMPTOR:
14047 ## There is no encapsulation within the following macros, do not change
14048 ## the running order or otherwise move them around unless you know exactly
14049 ## what you are doing...
14050 # Dependencies to place before and after the object being linked:
14051 predep_objects_CXX=
14052 postdep_objects_CXX=
14053 predeps_CXX=
14054 postdeps_CXX=
14055 compiler_lib_search_path_CXX=
14056
14057 cat > conftest.$ac_ext <<_LT_EOF
14058 class Foo
14059 {
14060 public:
14061 Foo (void) { a = 0; }
14062 private:
14063 int a;
14064 };
14065 _LT_EOF
14066
14067
14068 _lt_libdeps_save_CFLAGS=$CFLAGS
14069 case "$CC $CFLAGS " in #(
14070 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14071 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14072 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14073 esac
14074
14075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14076 (eval $ac_compile) 2>&5
14077 ac_status=$?
14078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079 test $ac_status = 0; }; then
14080 # Parse the compiler output and extract the necessary
14081 # objects, libraries and library flags.
14082
14083 # Sentinel used to keep track of whether or not we are before
14084 # the conftest object file.
14085 pre_test_object_deps_done=no
14086
14087 for p in `eval "$output_verbose_link_cmd"`; do
14088 case $prev$p in
14089
14090 -L* | -R* | -l*)
14091 # Some compilers place space between "-{L,R}" and the path.
14092 # Remove the space.
14093 if test x-L = "$p" ||
14094 test x-R = "$p"; then
14095 prev=$p
14096 continue
14097 fi
14098
14099 # Expand the sysroot to ease extracting the directories later.
14100 if test -z "$prev"; then
14101 case $p in
14102 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14103 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14104 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14105 esac
14106 fi
14107 case $p in
14108 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14109 esac
14110 if test no = "$pre_test_object_deps_done"; then
14111 case $prev in
14112 -L | -R)
14113 # Internal compiler library paths should come after those
14114 # provided the user. The postdeps already come after the
14115 # user supplied libs so there is no need to process them.
14116 if test -z "$compiler_lib_search_path_CXX"; then
14117 compiler_lib_search_path_CXX=$prev$p
14118 else
14119 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14120 fi
14121 ;;
14122 # The "-l" case would never come before the object being
14123 # linked, so don't bother handling this case.
14124 esac
14125 else
14126 if test -z "$postdeps_CXX"; then
14127 postdeps_CXX=$prev$p
14128 else
14129 postdeps_CXX="${postdeps_CXX} $prev$p"
14130 fi
14131 fi
14132 prev=
14133 ;;
14134
14135 *.lto.$objext) ;; # Ignore GCC LTO objects
14136 *.$objext)
14137 # This assumes that the test object file only shows up
14138 # once in the compiler output.
14139 if test "$p" = "conftest.$objext"; then
14140 pre_test_object_deps_done=yes
14141 continue
14142 fi
14143
14144 if test no = "$pre_test_object_deps_done"; then
14145 if test -z "$predep_objects_CXX"; then
14146 predep_objects_CXX=$p
14147 else
14148 predep_objects_CXX="$predep_objects_CXX $p"
14149 fi
14150 else
14151 if test -z "$postdep_objects_CXX"; then
14152 postdep_objects_CXX=$p
14153 else
14154 postdep_objects_CXX="$postdep_objects_CXX $p"
14155 fi
14156 fi
14157 ;;
14158
14159 *) ;; # Ignore the rest.
14160
14161 esac
14162 done
14163
14164 # Clean up.
14165 rm -f a.out a.exe
14166 else
14167 echo "libtool.m4: error: problem compiling CXX test program"
14168 fi
14169
14170 $RM -f confest.$objext
14171 CFLAGS=$_lt_libdeps_save_CFLAGS
14172
14173 # PORTME: override above test on systems where it is broken
14174 case $host_os in
14175 interix[3-9]*)
14176 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14177 # hack all around it, let's just trust "g++" to DTRT.
14178 predep_objects_CXX=
14179 postdep_objects_CXX=
14180 postdeps_CXX=
14181 ;;
14182 esac
14183
14184
14185 case " $postdeps_CXX " in
14186 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14187 esac
14188 compiler_lib_search_dirs_CXX=
14189 if test -n "${compiler_lib_search_path_CXX}"; then
14190 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14191 fi
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223 lt_prog_compiler_wl_CXX=
14224 lt_prog_compiler_pic_CXX=
14225 lt_prog_compiler_static_CXX=
14226
14227
14228 # C++ specific cases for pic, static, wl, etc.
14229 if test yes = "$GXX"; then
14230 lt_prog_compiler_wl_CXX='-Wl,'
14231 lt_prog_compiler_static_CXX='-static'
14232
14233 case $host_os in
14234 aix*)
14235 # All AIX code is PIC.
14236 if test ia64 = "$host_cpu"; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static_CXX='-Bstatic'
14239 fi
14240 lt_prog_compiler_pic_CXX='-fPIC'
14241 ;;
14242
14243 amigaos*)
14244 case $host_cpu in
14245 powerpc)
14246 # see comment about AmigaOS4 .so support
14247 lt_prog_compiler_pic_CXX='-fPIC'
14248 ;;
14249 m68k)
14250 # FIXME: we need at least 68020 code to build shared libraries, but
14251 # adding the '-m68020' flag to GCC prevents building anything better,
14252 # like '-m68040'.
14253 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14254 ;;
14255 esac
14256 ;;
14257
14258 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14259 # PIC is the default for these OSes.
14260 ;;
14261 mingw* | cygwin* | os2* | pw32* | cegcc*)
14262 # This hack is so that the source file can tell whether it is being
14263 # built for inclusion in a dll (and should export symbols for example).
14264 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14265 # (--disable-auto-import) libraries
14266 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14267 case $host_os in
14268 os2*)
14269 lt_prog_compiler_static_CXX='$wl-static'
14270 ;;
14271 esac
14272 ;;
14273 darwin* | rhapsody*)
14274 # PIC is the default on this platform
14275 # Common symbols not allowed in MH_DYLIB files
14276 lt_prog_compiler_pic_CXX='-fno-common'
14277 ;;
14278 *djgpp*)
14279 # DJGPP does not support shared libraries at all
14280 lt_prog_compiler_pic_CXX=
14281 ;;
14282 haiku*)
14283 # PIC is the default for Haiku.
14284 # The "-static" flag exists, but is broken.
14285 lt_prog_compiler_static_CXX=
14286 ;;
14287 interix[3-9]*)
14288 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14289 # Instead, we relocate shared libraries at runtime.
14290 ;;
14291 sysv4*MP*)
14292 if test -d /usr/nec; then
14293 lt_prog_compiler_pic_CXX=-Kconform_pic
14294 fi
14295 ;;
14296 hpux*)
14297 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14298 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14299 # sets the default TLS model and affects inlining.
14300 case $host_cpu in
14301 hppa*64*)
14302 ;;
14303 *)
14304 lt_prog_compiler_pic_CXX='-fPIC'
14305 ;;
14306 esac
14307 ;;
14308 *qnx* | *nto*)
14309 # QNX uses GNU C++, but need to define -shared option too, otherwise
14310 # it will coredump.
14311 lt_prog_compiler_pic_CXX='-fPIC -shared'
14312 ;;
14313 *)
14314 lt_prog_compiler_pic_CXX='-fPIC'
14315 ;;
14316 esac
14317 else
14318 case $host_os in
14319 aix[4-9]*)
14320 # All AIX code is PIC.
14321 if test ia64 = "$host_cpu"; then
14322 # AIX 5 now supports IA64 processor
14323 lt_prog_compiler_static_CXX='-Bstatic'
14324 else
14325 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14326 fi
14327 ;;
14328 chorus*)
14329 case $cc_basename in
14330 cxch68*)
14331 # Green Hills C++ Compiler
14332 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14333 ;;
14334 esac
14335 ;;
14336 mingw* | cygwin* | os2* | pw32* | cegcc*)
14337 # This hack is so that the source file can tell whether it is being
14338 # built for inclusion in a dll (and should export symbols for example).
14339 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14340 ;;
14341 dgux*)
14342 case $cc_basename in
14343 ec++*)
14344 lt_prog_compiler_pic_CXX='-KPIC'
14345 ;;
14346 ghcx*)
14347 # Green Hills C++ Compiler
14348 lt_prog_compiler_pic_CXX='-pic'
14349 ;;
14350 *)
14351 ;;
14352 esac
14353 ;;
14354 freebsd* | dragonfly*)
14355 # FreeBSD uses GNU C++
14356 ;;
14357 hpux9* | hpux10* | hpux11*)
14358 case $cc_basename in
14359 CC*)
14360 lt_prog_compiler_wl_CXX='-Wl,'
14361 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14362 if test ia64 != "$host_cpu"; then
14363 lt_prog_compiler_pic_CXX='+Z'
14364 fi
14365 ;;
14366 aCC*)
14367 lt_prog_compiler_wl_CXX='-Wl,'
14368 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14369 case $host_cpu in
14370 hppa*64*|ia64*)
14371 # +Z the default
14372 ;;
14373 *)
14374 lt_prog_compiler_pic_CXX='+Z'
14375 ;;
14376 esac
14377 ;;
14378 *)
14379 ;;
14380 esac
14381 ;;
14382 interix*)
14383 # This is c89, which is MS Visual C++ (no shared libs)
14384 # Anyone wants to do a port?
14385 ;;
14386 irix5* | irix6* | nonstopux*)
14387 case $cc_basename in
14388 CC*)
14389 lt_prog_compiler_wl_CXX='-Wl,'
14390 lt_prog_compiler_static_CXX='-non_shared'
14391 # CC pic flag -KPIC is the default.
14392 ;;
14393 *)
14394 ;;
14395 esac
14396 ;;
14397 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14398 case $cc_basename in
14399 KCC*)
14400 # KAI C++ Compiler
14401 lt_prog_compiler_wl_CXX='--backend -Wl,'
14402 lt_prog_compiler_pic_CXX='-fPIC'
14403 ;;
14404 ecpc* )
14405 # old Intel C++ for x86_64, which still supported -KPIC.
14406 lt_prog_compiler_wl_CXX='-Wl,'
14407 lt_prog_compiler_pic_CXX='-KPIC'
14408 lt_prog_compiler_static_CXX='-static'
14409 ;;
14410 icpc* )
14411 # Intel C++, used to be incompatible with GCC.
14412 # ICC 10 doesn't accept -KPIC any more.
14413 lt_prog_compiler_wl_CXX='-Wl,'
14414 lt_prog_compiler_pic_CXX='-fPIC'
14415 lt_prog_compiler_static_CXX='-static'
14416 ;;
14417 pgCC* | pgcpp*)
14418 # Portland Group C++ compiler
14419 lt_prog_compiler_wl_CXX='-Wl,'
14420 lt_prog_compiler_pic_CXX='-fpic'
14421 lt_prog_compiler_static_CXX='-Bstatic'
14422 ;;
14423 cxx*)
14424 # Compaq C++
14425 # Make sure the PIC flag is empty. It appears that all Alpha
14426 # Linux and Compaq Tru64 Unix objects are PIC.
14427 lt_prog_compiler_pic_CXX=
14428 lt_prog_compiler_static_CXX='-non_shared'
14429 ;;
14430 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14431 # IBM XL 8.0, 9.0 on PPC and BlueGene
14432 lt_prog_compiler_wl_CXX='-Wl,'
14433 lt_prog_compiler_pic_CXX='-qpic'
14434 lt_prog_compiler_static_CXX='-qstaticlink'
14435 ;;
14436 *)
14437 case `$CC -V 2>&1 | sed 5q` in
14438 *Sun\ C*)
14439 # Sun C++ 5.9
14440 lt_prog_compiler_pic_CXX='-KPIC'
14441 lt_prog_compiler_static_CXX='-Bstatic'
14442 lt_prog_compiler_wl_CXX='-Qoption ld '
14443 ;;
14444 esac
14445 ;;
14446 esac
14447 ;;
14448 lynxos*)
14449 ;;
14450 m88k*)
14451 ;;
14452 mvs*)
14453 case $cc_basename in
14454 cxx*)
14455 lt_prog_compiler_pic_CXX='-W c,exportall'
14456 ;;
14457 *)
14458 ;;
14459 esac
14460 ;;
14461 netbsd* | netbsdelf*-gnu)
14462 ;;
14463 *qnx* | *nto*)
14464 # QNX uses GNU C++, but need to define -shared option too, otherwise
14465 # it will coredump.
14466 lt_prog_compiler_pic_CXX='-fPIC -shared'
14467 ;;
14468 osf3* | osf4* | osf5*)
14469 case $cc_basename in
14470 KCC*)
14471 lt_prog_compiler_wl_CXX='--backend -Wl,'
14472 ;;
14473 RCC*)
14474 # Rational C++ 2.4.1
14475 lt_prog_compiler_pic_CXX='-pic'
14476 ;;
14477 cxx*)
14478 # Digital/Compaq C++
14479 lt_prog_compiler_wl_CXX='-Wl,'
14480 # Make sure the PIC flag is empty. It appears that all Alpha
14481 # Linux and Compaq Tru64 Unix objects are PIC.
14482 lt_prog_compiler_pic_CXX=
14483 lt_prog_compiler_static_CXX='-non_shared'
14484 ;;
14485 *)
14486 ;;
14487 esac
14488 ;;
14489 psos*)
14490 ;;
14491 solaris*)
14492 case $cc_basename in
14493 CC* | sunCC*)
14494 # Sun C++ 4.2, 5.x and Centerline C++
14495 lt_prog_compiler_pic_CXX='-KPIC'
14496 lt_prog_compiler_static_CXX='-Bstatic'
14497 lt_prog_compiler_wl_CXX='-Qoption ld '
14498 ;;
14499 gcx*)
14500 # Green Hills C++ Compiler
14501 lt_prog_compiler_pic_CXX='-PIC'
14502 ;;
14503 *)
14504 ;;
14505 esac
14506 ;;
14507 sunos4*)
14508 case $cc_basename in
14509 CC*)
14510 # Sun C++ 4.x
14511 lt_prog_compiler_pic_CXX='-pic'
14512 lt_prog_compiler_static_CXX='-Bstatic'
14513 ;;
14514 lcc*)
14515 # Lucid
14516 lt_prog_compiler_pic_CXX='-pic'
14517 ;;
14518 *)
14519 ;;
14520 esac
14521 ;;
14522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14523 case $cc_basename in
14524 CC*)
14525 lt_prog_compiler_wl_CXX='-Wl,'
14526 lt_prog_compiler_pic_CXX='-KPIC'
14527 lt_prog_compiler_static_CXX='-Bstatic'
14528 ;;
14529 esac
14530 ;;
14531 tandem*)
14532 case $cc_basename in
14533 NCC*)
14534 # NonStop-UX NCC 3.20
14535 lt_prog_compiler_pic_CXX='-KPIC'
14536 ;;
14537 *)
14538 ;;
14539 esac
14540 ;;
14541 vxworks*)
14542 ;;
14543 *)
14544 lt_prog_compiler_can_build_shared_CXX=no
14545 ;;
14546 esac
14547 fi
14548
14549 case $host_os in
14550 # For platforms that do not support PIC, -DPIC is meaningless:
14551 *djgpp*)
14552 lt_prog_compiler_pic_CXX=
14553 ;;
14554 *)
14555 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14556 ;;
14557 esac
14558
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14560 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14561 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14562 $as_echo_n "(cached) " >&6
14563 else
14564 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14565 fi
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14567 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14568 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14569
14570 #
14571 # Check to make sure the PIC flag actually works.
14572 #
14573 if test -n "$lt_prog_compiler_pic_CXX"; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14575 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14576 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 lt_cv_prog_compiler_pic_works_CXX=no
14580 ac_outfile=conftest.$ac_objext
14581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14582 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14583 # Insert the option either (1) after the last *FLAGS variable, or
14584 # (2) before a word containing "conftest.", or (3) at the end.
14585 # Note that $ac_compile itself does not contain backslashes and begins
14586 # with a dollar sign (not a hyphen), so the echo should work correctly.
14587 # The option is referenced via a variable to avoid confusing sed.
14588 lt_compile=`echo "$ac_compile" | $SED \
14589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14591 -e 's:$: $lt_compiler_flag:'`
14592 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14593 (eval "$lt_compile" 2>conftest.err)
14594 ac_status=$?
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 if (exit $ac_status) && test -s "$ac_outfile"; then
14598 # The compiler can only warn and ignore the option if not recognized
14599 # So say no if there are warnings other than the usual output.
14600 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14603 lt_cv_prog_compiler_pic_works_CXX=yes
14604 fi
14605 fi
14606 $RM conftest*
14607
14608 fi
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14610 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14611
14612 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14613 case $lt_prog_compiler_pic_CXX in
14614 "" | " "*) ;;
14615 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14616 esac
14617 else
14618 lt_prog_compiler_pic_CXX=
14619 lt_prog_compiler_can_build_shared_CXX=no
14620 fi
14621
14622 fi
14623
14624
14625
14626
14627
14628 #
14629 # Check to make sure the static flag actually works.
14630 #
14631 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14633 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14634 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637 lt_cv_prog_compiler_static_works_CXX=no
14638 save_LDFLAGS=$LDFLAGS
14639 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14640 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14641 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14642 # The linker can only warn and ignore the option if not recognized
14643 # So say no if there are warnings
14644 if test -s conftest.err; then
14645 # Append any errors to the config.log.
14646 cat conftest.err 1>&5
14647 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14649 if diff conftest.exp conftest.er2 >/dev/null; then
14650 lt_cv_prog_compiler_static_works_CXX=yes
14651 fi
14652 else
14653 lt_cv_prog_compiler_static_works_CXX=yes
14654 fi
14655 fi
14656 $RM -r conftest*
14657 LDFLAGS=$save_LDFLAGS
14658
14659 fi
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14661 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14662
14663 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14664 :
14665 else
14666 lt_prog_compiler_static_CXX=
14667 fi
14668
14669
14670
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14673 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14674 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677 lt_cv_prog_compiler_c_o_CXX=no
14678 $RM -r conftest 2>/dev/null
14679 mkdir conftest
14680 cd conftest
14681 mkdir out
14682 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14683
14684 lt_compiler_flag="-o out/conftest2.$ac_objext"
14685 # Insert the option either (1) after the last *FLAGS variable, or
14686 # (2) before a word containing "conftest.", or (3) at the end.
14687 # Note that $ac_compile itself does not contain backslashes and begins
14688 # with a dollar sign (not a hyphen), so the echo should work correctly.
14689 lt_compile=`echo "$ac_compile" | $SED \
14690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14692 -e 's:$: $lt_compiler_flag:'`
14693 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14694 (eval "$lt_compile" 2>out/conftest.err)
14695 ac_status=$?
14696 cat out/conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14699 then
14700 # The compiler can only warn and ignore the option if not recognized
14701 # So say no if there are warnings
14702 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14703 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14704 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14705 lt_cv_prog_compiler_c_o_CXX=yes
14706 fi
14707 fi
14708 chmod u+w . 2>&5
14709 $RM conftest*
14710 # SGI C++ compiler will create directory out/ii_files/ for
14711 # template instantiation
14712 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14713 $RM out/* && rmdir out
14714 cd ..
14715 $RM -r conftest
14716 $RM conftest*
14717
14718 fi
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14720 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14721
14722
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14725 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14726 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14727 $as_echo_n "(cached) " >&6
14728 else
14729 lt_cv_prog_compiler_c_o_CXX=no
14730 $RM -r conftest 2>/dev/null
14731 mkdir conftest
14732 cd conftest
14733 mkdir out
14734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14735
14736 lt_compiler_flag="-o out/conftest2.$ac_objext"
14737 # Insert the option either (1) after the last *FLAGS variable, or
14738 # (2) before a word containing "conftest.", or (3) at the end.
14739 # Note that $ac_compile itself does not contain backslashes and begins
14740 # with a dollar sign (not a hyphen), so the echo should work correctly.
14741 lt_compile=`echo "$ac_compile" | $SED \
14742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14744 -e 's:$: $lt_compiler_flag:'`
14745 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14746 (eval "$lt_compile" 2>out/conftest.err)
14747 ac_status=$?
14748 cat out/conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14751 then
14752 # The compiler can only warn and ignore the option if not recognized
14753 # So say no if there are warnings
14754 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14755 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14756 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14757 lt_cv_prog_compiler_c_o_CXX=yes
14758 fi
14759 fi
14760 chmod u+w . 2>&5
14761 $RM conftest*
14762 # SGI C++ compiler will create directory out/ii_files/ for
14763 # template instantiation
14764 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14765 $RM out/* && rmdir out
14766 cd ..
14767 $RM -r conftest
14768 $RM conftest*
14769
14770 fi
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14772 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14773
14774
14775
14776
14777 hard_links=nottested
14778 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14779 # do not overwrite the value of need_locks provided by the user
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14781 $as_echo_n "checking if we can lock with hard links... " >&6; }
14782 hard_links=yes
14783 $RM conftest*
14784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14785 touch conftest.a
14786 ln conftest.a conftest.b 2>&5 || hard_links=no
14787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14789 $as_echo "$hard_links" >&6; }
14790 if test no = "$hard_links"; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14792 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14793 need_locks=warn
14794 fi
14795 else
14796 need_locks=no
14797 fi
14798
14799
14800
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14802 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14803
14804 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14805 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14806 case $host_os in
14807 aix[4-9]*)
14808 # If we're using GNU nm, then we don't want the "-C" option.
14809 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14810 # Without the "-l" option, or with the "-B" option, AIX nm treats
14811 # weak defined symbols like other global defined symbols, whereas
14812 # GNU nm marks them as "W".
14813 # While the 'weak' keyword is ignored in the Export File, we need
14814 # it in the Import File for the 'aix-soname' feature, so we have
14815 # to replace the "-B" option with "-P" for AIX nm.
14816 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14817 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14818 else
14819 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14820 fi
14821 ;;
14822 pw32*)
14823 export_symbols_cmds_CXX=$ltdll_cmds
14824 ;;
14825 cygwin* | mingw* | cegcc*)
14826 case $cc_basename in
14827 cl*)
14828 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14829 ;;
14830 *)
14831 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14832 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14833 ;;
14834 esac
14835 ;;
14836 linux* | k*bsd*-gnu | gnu*)
14837 link_all_deplibs_CXX=no
14838 ;;
14839 *)
14840 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14841 ;;
14842 esac
14843
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14845 $as_echo "$ld_shlibs_CXX" >&6; }
14846 test no = "$ld_shlibs_CXX" && can_build_shared=no
14847
14848 with_gnu_ld_CXX=$with_gnu_ld
14849
14850
14851
14852
14853
14854
14855 #
14856 # Do we need to explicitly link libc?
14857 #
14858 case "x$archive_cmds_need_lc_CXX" in
14859 x|xyes)
14860 # Assume -lc should be added
14861 archive_cmds_need_lc_CXX=yes
14862
14863 if test yes,yes = "$GCC,$enable_shared"; then
14864 case $archive_cmds_CXX in
14865 *'~'*)
14866 # FIXME: we may have to deal with multi-command sequences.
14867 ;;
14868 '$CC '*)
14869 # Test whether the compiler implicitly links with -lc since on some
14870 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14871 # to ld, don't add -lc before -lgcc.
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14873 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14874 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14875 $as_echo_n "(cached) " >&6
14876 else
14877 $RM conftest*
14878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14879
14880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14881 (eval $ac_compile) 2>&5
14882 ac_status=$?
14883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14884 test $ac_status = 0; } 2>conftest.err; then
14885 soname=conftest
14886 lib=conftest
14887 libobjs=conftest.$ac_objext
14888 deplibs=
14889 wl=$lt_prog_compiler_wl_CXX
14890 pic_flag=$lt_prog_compiler_pic_CXX
14891 compiler_flags=-v
14892 linker_flags=-v
14893 verstring=
14894 output_objdir=.
14895 libname=conftest
14896 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14897 allow_undefined_flag_CXX=
14898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14899 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14900 ac_status=$?
14901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14902 test $ac_status = 0; }
14903 then
14904 lt_cv_archive_cmds_need_lc_CXX=no
14905 else
14906 lt_cv_archive_cmds_need_lc_CXX=yes
14907 fi
14908 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14909 else
14910 cat conftest.err 1>&5
14911 fi
14912 $RM conftest*
14913
14914 fi
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14916 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14917 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14918 ;;
14919 esac
14920 fi
14921 ;;
14922 esac
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14986 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14987
14988 library_names_spec=
14989 libname_spec='lib$name'
14990 soname_spec=
14991 shrext_cmds=.so
14992 postinstall_cmds=
14993 postuninstall_cmds=
14994 finish_cmds=
14995 finish_eval=
14996 shlibpath_var=
14997 shlibpath_overrides_runpath=unknown
14998 version_type=none
14999 dynamic_linker="$host_os ld.so"
15000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15001 need_lib_prefix=unknown
15002 hardcode_into_libs=no
15003
15004 # when you set need_version to no, make sure it does not cause -set_version
15005 # flags to be left without arguments
15006 need_version=unknown
15007
15008
15009
15010 case $host_os in
15011 aix3*)
15012 version_type=linux # correct to gnu/linux during the next big refactor
15013 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15014 shlibpath_var=LIBPATH
15015
15016 # AIX 3 has no versioning support, so we append a major version to the name.
15017 soname_spec='$libname$release$shared_ext$major'
15018 ;;
15019
15020 aix[4-9]*)
15021 version_type=linux # correct to gnu/linux during the next big refactor
15022 need_lib_prefix=no
15023 need_version=no
15024 hardcode_into_libs=yes
15025 if test ia64 = "$host_cpu"; then
15026 # AIX 5 supports IA64
15027 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15028 shlibpath_var=LD_LIBRARY_PATH
15029 else
15030 # With GCC up to 2.95.x, collect2 would create an import file
15031 # for dependence libraries. The import file would start with
15032 # the line '#! .'. This would cause the generated library to
15033 # depend on '.', always an invalid library. This was fixed in
15034 # development snapshots of GCC prior to 3.0.
15035 case $host_os in
15036 aix4 | aix4.[01] | aix4.[01].*)
15037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15038 echo ' yes '
15039 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15040 :
15041 else
15042 can_build_shared=no
15043 fi
15044 ;;
15045 esac
15046 # Using Import Files as archive members, it is possible to support
15047 # filename-based versioning of shared library archives on AIX. While
15048 # this would work for both with and without runtime linking, it will
15049 # prevent static linking of such archives. So we do filename-based
15050 # shared library versioning with .so extension only, which is used
15051 # when both runtime linking and shared linking is enabled.
15052 # Unfortunately, runtime linking may impact performance, so we do
15053 # not want this to be the default eventually. Also, we use the
15054 # versioned .so libs for executables only if there is the -brtl
15055 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15056 # To allow for filename-based versioning support, we need to create
15057 # libNAME.so.V as an archive file, containing:
15058 # *) an Import File, referring to the versioned filename of the
15059 # archive as well as the shared archive member, telling the
15060 # bitwidth (32 or 64) of that shared object, and providing the
15061 # list of exported symbols of that shared object, eventually
15062 # decorated with the 'weak' keyword
15063 # *) the shared object with the F_LOADONLY flag set, to really avoid
15064 # it being seen by the linker.
15065 # At run time we better use the real file rather than another symlink,
15066 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15067
15068 case $with_aix_soname,$aix_use_runtimelinking in
15069 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15070 # soname into executable. Probably we can add versioning support to
15071 # collect2, so additional links can be useful in future.
15072 aix,yes) # traditional libtool
15073 dynamic_linker='AIX unversionable lib.so'
15074 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15075 # instead of lib<name>.a to let people know that these are not
15076 # typical AIX shared libraries.
15077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15078 ;;
15079 aix,no) # traditional AIX only
15080 dynamic_linker='AIX lib.a(lib.so.V)'
15081 # We preserve .a as extension for shared libraries through AIX4.2
15082 # and later when we are not doing run time linking.
15083 library_names_spec='$libname$release.a $libname.a'
15084 soname_spec='$libname$release$shared_ext$major'
15085 ;;
15086 svr4,*) # full svr4 only
15087 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15088 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15089 # We do not specify a path in Import Files, so LIBPATH fires.
15090 shlibpath_overrides_runpath=yes
15091 ;;
15092 *,yes) # both, prefer svr4
15093 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15094 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15095 # unpreferred sharedlib libNAME.a needs extra handling
15096 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15097 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15098 # We do not specify a path in Import Files, so LIBPATH fires.
15099 shlibpath_overrides_runpath=yes
15100 ;;
15101 *,no) # both, prefer aix
15102 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15103 library_names_spec='$libname$release.a $libname.a'
15104 soname_spec='$libname$release$shared_ext$major'
15105 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15106 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15107 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15108 ;;
15109 esac
15110 shlibpath_var=LIBPATH
15111 fi
15112 ;;
15113
15114 amigaos*)
15115 case $host_cpu in
15116 powerpc)
15117 # Since July 2007 AmigaOS4 officially supports .so libraries.
15118 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15120 ;;
15121 m68k)
15122 library_names_spec='$libname.ixlibrary $libname.a'
15123 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15124 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15125 ;;
15126 esac
15127 ;;
15128
15129 beos*)
15130 library_names_spec='$libname$shared_ext'
15131 dynamic_linker="$host_os ld.so"
15132 shlibpath_var=LIBRARY_PATH
15133 ;;
15134
15135 bsdi[45]*)
15136 version_type=linux # correct to gnu/linux during the next big refactor
15137 need_version=no
15138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15139 soname_spec='$libname$release$shared_ext$major'
15140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15141 shlibpath_var=LD_LIBRARY_PATH
15142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15144 # the default ld.so.conf also contains /usr/contrib/lib and
15145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15146 # libtool to hard-code these into programs
15147 ;;
15148
15149 cygwin* | mingw* | pw32* | cegcc*)
15150 version_type=windows
15151 shrext_cmds=.dll
15152 need_version=no
15153 need_lib_prefix=no
15154
15155 case $GCC,$cc_basename in
15156 yes,*)
15157 # gcc
15158 library_names_spec='$libname.dll.a'
15159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15160 postinstall_cmds='base_file=`basename \$file`~
15161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15162 dldir=$destdir/`dirname \$dlpath`~
15163 test -d \$dldir || mkdir -p \$dldir~
15164 $install_prog $dir/$dlname \$dldir/$dlname~
15165 chmod a+x \$dldir/$dlname~
15166 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15167 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15168 fi'
15169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15170 dlpath=$dir/\$dldll~
15171 $RM \$dlpath'
15172 shlibpath_overrides_runpath=yes
15173
15174 case $host_os in
15175 cygwin*)
15176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15177 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15178
15179 ;;
15180 mingw* | cegcc*)
15181 # MinGW DLLs use traditional 'lib' prefix
15182 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15183 ;;
15184 pw32*)
15185 # pw32 DLLs use 'pw' prefix rather than 'lib'
15186 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15187 ;;
15188 esac
15189 dynamic_linker='Win32 ld.exe'
15190 ;;
15191
15192 *,cl*)
15193 # Native MSVC
15194 libname_spec='$name'
15195 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15196 library_names_spec='$libname.dll.lib'
15197
15198 case $build_os in
15199 mingw*)
15200 sys_lib_search_path_spec=
15201 lt_save_ifs=$IFS
15202 IFS=';'
15203 for lt_path in $LIB
15204 do
15205 IFS=$lt_save_ifs
15206 # Let DOS variable expansion print the short 8.3 style file name.
15207 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15208 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15209 done
15210 IFS=$lt_save_ifs
15211 # Convert to MSYS style.
15212 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15213 ;;
15214 cygwin*)
15215 # Convert to unix form, then to dos form, then back to unix form
15216 # but this time dos style (no spaces!) so that the unix form looks
15217 # like /cygdrive/c/PROGRA~1:/cygdr...
15218 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15219 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15220 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15221 ;;
15222 *)
15223 sys_lib_search_path_spec=$LIB
15224 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15225 # It is most probably a Windows format PATH.
15226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15227 else
15228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15229 fi
15230 # FIXME: find the short name or the path components, as spaces are
15231 # common. (e.g. "Program Files" -> "PROGRA~1")
15232 ;;
15233 esac
15234
15235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15236 postinstall_cmds='base_file=`basename \$file`~
15237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15238 dldir=$destdir/`dirname \$dlpath`~
15239 test -d \$dldir || mkdir -p \$dldir~
15240 $install_prog $dir/$dlname \$dldir/$dlname'
15241 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15242 dlpath=$dir/\$dldll~
15243 $RM \$dlpath'
15244 shlibpath_overrides_runpath=yes
15245 dynamic_linker='Win32 link.exe'
15246 ;;
15247
15248 *)
15249 # Assume MSVC wrapper
15250 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15251 dynamic_linker='Win32 ld.exe'
15252 ;;
15253 esac
15254 # FIXME: first we should search . and the directory the executable is in
15255 shlibpath_var=PATH
15256 ;;
15257
15258 darwin* | rhapsody*)
15259 dynamic_linker="$host_os dyld"
15260 version_type=darwin
15261 need_lib_prefix=no
15262 need_version=no
15263 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15264 soname_spec='$libname$release$major$shared_ext'
15265 shlibpath_overrides_runpath=yes
15266 shlibpath_var=DYLD_LIBRARY_PATH
15267 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15268
15269 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15270 ;;
15271
15272 dgux*)
15273 version_type=linux # correct to gnu/linux during the next big refactor
15274 need_lib_prefix=no
15275 need_version=no
15276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15277 soname_spec='$libname$release$shared_ext$major'
15278 shlibpath_var=LD_LIBRARY_PATH
15279 ;;
15280
15281 freebsd* | dragonfly*)
15282 # DragonFly does not have aout. When/if they implement a new
15283 # versioning mechanism, adjust this.
15284 if test -x /usr/bin/objformat; then
15285 objformat=`/usr/bin/objformat`
15286 else
15287 case $host_os in
15288 freebsd[23].*) objformat=aout ;;
15289 *) objformat=elf ;;
15290 esac
15291 fi
15292 version_type=freebsd-$objformat
15293 case $version_type in
15294 freebsd-elf*)
15295 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15296 soname_spec='$libname$release$shared_ext$major'
15297 need_version=no
15298 need_lib_prefix=no
15299 ;;
15300 freebsd-*)
15301 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15302 need_version=yes
15303 ;;
15304 esac
15305 shlibpath_var=LD_LIBRARY_PATH
15306 case $host_os in
15307 freebsd2.*)
15308 shlibpath_overrides_runpath=yes
15309 ;;
15310 freebsd3.[01]* | freebsdelf3.[01]*)
15311 shlibpath_overrides_runpath=yes
15312 hardcode_into_libs=yes
15313 ;;
15314 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15315 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15316 shlibpath_overrides_runpath=no
15317 hardcode_into_libs=yes
15318 ;;
15319 *) # from 4.6 on, and DragonFly
15320 shlibpath_overrides_runpath=yes
15321 hardcode_into_libs=yes
15322 ;;
15323 esac
15324 ;;
15325
15326 haiku*)
15327 version_type=linux # correct to gnu/linux during the next big refactor
15328 need_lib_prefix=no
15329 need_version=no
15330 dynamic_linker="$host_os runtime_loader"
15331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15332 soname_spec='$libname$release$shared_ext$major'
15333 shlibpath_var=LIBRARY_PATH
15334 shlibpath_overrides_runpath=no
15335 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15336 hardcode_into_libs=yes
15337 ;;
15338
15339 hpux9* | hpux10* | hpux11*)
15340 # Give a soname corresponding to the major version so that dld.sl refuses to
15341 # link against other versions.
15342 version_type=sunos
15343 need_lib_prefix=no
15344 need_version=no
15345 case $host_cpu in
15346 ia64*)
15347 shrext_cmds='.so'
15348 hardcode_into_libs=yes
15349 dynamic_linker="$host_os dld.so"
15350 shlibpath_var=LD_LIBRARY_PATH
15351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15352 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15353 soname_spec='$libname$release$shared_ext$major'
15354 if test 32 = "$HPUX_IA64_MODE"; then
15355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15356 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15357 else
15358 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15359 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15360 fi
15361 ;;
15362 hppa*64*)
15363 shrext_cmds='.sl'
15364 hardcode_into_libs=yes
15365 dynamic_linker="$host_os dld.sl"
15366 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15369 soname_spec='$libname$release$shared_ext$major'
15370 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15371 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15372 ;;
15373 *)
15374 shrext_cmds='.sl'
15375 dynamic_linker="$host_os dld.sl"
15376 shlibpath_var=SHLIB_PATH
15377 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15379 soname_spec='$libname$release$shared_ext$major'
15380 ;;
15381 esac
15382 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15383 postinstall_cmds='chmod 555 $lib'
15384 # or fails outright, so override atomically:
15385 install_override_mode=555
15386 ;;
15387
15388 interix[3-9]*)
15389 version_type=linux # correct to gnu/linux during the next big refactor
15390 need_lib_prefix=no
15391 need_version=no
15392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15393 soname_spec='$libname$release$shared_ext$major'
15394 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 shlibpath_overrides_runpath=no
15397 hardcode_into_libs=yes
15398 ;;
15399
15400 irix5* | irix6* | nonstopux*)
15401 case $host_os in
15402 nonstopux*) version_type=nonstopux ;;
15403 *)
15404 if test yes = "$lt_cv_prog_gnu_ld"; then
15405 version_type=linux # correct to gnu/linux during the next big refactor
15406 else
15407 version_type=irix
15408 fi ;;
15409 esac
15410 need_lib_prefix=no
15411 need_version=no
15412 soname_spec='$libname$release$shared_ext$major'
15413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15414 case $host_os in
15415 irix5* | nonstopux*)
15416 libsuff= shlibsuff=
15417 ;;
15418 *)
15419 case $LD in # libtool.m4 will add one of these switches to LD
15420 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15421 libsuff= shlibsuff= libmagic=32-bit;;
15422 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15423 libsuff=32 shlibsuff=N32 libmagic=N32;;
15424 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15425 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15426 *) libsuff= shlibsuff= libmagic=never-match;;
15427 esac
15428 ;;
15429 esac
15430 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15431 shlibpath_overrides_runpath=no
15432 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15433 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15434 hardcode_into_libs=yes
15435 ;;
15436
15437 # No shared lib support for Linux oldld, aout, or coff.
15438 linux*oldld* | linux*aout* | linux*coff*)
15439 dynamic_linker=no
15440 ;;
15441
15442 linux*android*)
15443 version_type=none # Android doesn't support versioned libraries.
15444 need_lib_prefix=no
15445 need_version=no
15446 library_names_spec='$libname$release$shared_ext'
15447 soname_spec='$libname$release$shared_ext'
15448 finish_cmds=
15449 shlibpath_var=LD_LIBRARY_PATH
15450 shlibpath_overrides_runpath=yes
15451
15452 # This implies no fast_install, which is unacceptable.
15453 # Some rework will be needed to allow for fast_install
15454 # before this can be enabled.
15455 hardcode_into_libs=yes
15456
15457 dynamic_linker='Android linker'
15458 # Don't embed -rpath directories since the linker doesn't support them.
15459 hardcode_libdir_flag_spec_CXX='-L$libdir'
15460 ;;
15461
15462 # This must be glibc/ELF.
15463 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15464 version_type=linux # correct to gnu/linux during the next big refactor
15465 need_lib_prefix=no
15466 need_version=no
15467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15468 soname_spec='$libname$release$shared_ext$major'
15469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15470 shlibpath_var=LD_LIBRARY_PATH
15471 shlibpath_overrides_runpath=no
15472
15473 # Some binutils ld are patched to set DT_RUNPATH
15474 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15475 $as_echo_n "(cached) " >&6
15476 else
15477 lt_cv_shlibpath_overrides_runpath=no
15478 save_LDFLAGS=$LDFLAGS
15479 save_libdir=$libdir
15480 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15481 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484
15485 int
15486 main ()
15487 {
15488
15489 ;
15490 return 0;
15491 }
15492 _ACEOF
15493 if ac_fn_cxx_try_link "$LINENO"; then :
15494 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15495 lt_cv_shlibpath_overrides_runpath=yes
15496 fi
15497 fi
15498 rm -f core conftest.err conftest.$ac_objext \
15499 conftest$ac_exeext conftest.$ac_ext
15500 LDFLAGS=$save_LDFLAGS
15501 libdir=$save_libdir
15502
15503 fi
15504
15505 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15506
15507 # This implies no fast_install, which is unacceptable.
15508 # Some rework will be needed to allow for fast_install
15509 # before this can be enabled.
15510 hardcode_into_libs=yes
15511
15512 # Ideally, we could use ldconfig to report *all* directores which are
15513 # searched for libraries, however this is still not possible. Aside from not
15514 # being certain /sbin/ldconfig is available, command
15515 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15516 # even though it is searched at run-time. Try to do the best guess by
15517 # appending ld.so.conf contents (and includes) to the search path.
15518 if test -f /etc/ld.so.conf; then
15519 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15520 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15521 fi
15522
15523 # We used to test for /lib/ld.so.1 and disable shared libraries on
15524 # powerpc, because MkLinux only supported shared libraries with the
15525 # GNU dynamic linker. Since this was broken with cross compilers,
15526 # most powerpc-linux boxes support dynamic linking these days and
15527 # people can always --disable-shared, the test was removed, and we
15528 # assume the GNU/Linux dynamic linker is in use.
15529 dynamic_linker='GNU/Linux ld.so'
15530 ;;
15531
15532 netbsdelf*-gnu)
15533 version_type=linux
15534 need_lib_prefix=no
15535 need_version=no
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=no
15540 hardcode_into_libs=yes
15541 dynamic_linker='NetBSD ld.elf_so'
15542 ;;
15543
15544 netbsd*)
15545 version_type=sunos
15546 need_lib_prefix=no
15547 need_version=no
15548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15549 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15550 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15551 dynamic_linker='NetBSD (a.out) ld.so'
15552 else
15553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15554 soname_spec='$libname$release$shared_ext$major'
15555 dynamic_linker='NetBSD ld.elf_so'
15556 fi
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15559 hardcode_into_libs=yes
15560 ;;
15561
15562 newsos6)
15563 version_type=linux # correct to gnu/linux during the next big refactor
15564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15565 shlibpath_var=LD_LIBRARY_PATH
15566 shlibpath_overrides_runpath=yes
15567 ;;
15568
15569 *nto* | *qnx*)
15570 version_type=qnx
15571 need_lib_prefix=no
15572 need_version=no
15573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15574 soname_spec='$libname$release$shared_ext$major'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=no
15577 hardcode_into_libs=yes
15578 dynamic_linker='ldqnx.so'
15579 ;;
15580
15581 openbsd* | bitrig*)
15582 version_type=sunos
15583 sys_lib_dlsearch_path_spec=/usr/lib
15584 need_lib_prefix=no
15585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15586 need_version=no
15587 else
15588 need_version=yes
15589 fi
15590 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15592 shlibpath_var=LD_LIBRARY_PATH
15593 shlibpath_overrides_runpath=yes
15594 ;;
15595
15596 os2*)
15597 libname_spec='$name'
15598 version_type=windows
15599 shrext_cmds=.dll
15600 need_version=no
15601 need_lib_prefix=no
15602 # OS/2 can only load a DLL with a base name of 8 characters or less.
15603 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15604 v=$($ECHO $release$versuffix | tr -d .-);
15605 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15606 $ECHO $n$v`$shared_ext'
15607 library_names_spec='${libname}_dll.$libext'
15608 dynamic_linker='OS/2 ld.exe'
15609 shlibpath_var=BEGINLIBPATH
15610 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15612 postinstall_cmds='base_file=`basename \$file`~
15613 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15614 dldir=$destdir/`dirname \$dlpath`~
15615 test -d \$dldir || mkdir -p \$dldir~
15616 $install_prog $dir/$dlname \$dldir/$dlname~
15617 chmod a+x \$dldir/$dlname~
15618 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15619 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15620 fi'
15621 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15622 dlpath=$dir/\$dldll~
15623 $RM \$dlpath'
15624 ;;
15625
15626 osf3* | osf4* | osf5*)
15627 version_type=osf
15628 need_lib_prefix=no
15629 need_version=no
15630 soname_spec='$libname$release$shared_ext$major'
15631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15635 ;;
15636
15637 rdos*)
15638 dynamic_linker=no
15639 ;;
15640
15641 solaris*)
15642 version_type=linux # correct to gnu/linux during the next big refactor
15643 need_lib_prefix=no
15644 need_version=no
15645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15646 soname_spec='$libname$release$shared_ext$major'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=yes
15649 hardcode_into_libs=yes
15650 # ldd complains unless libraries are executable
15651 postinstall_cmds='chmod +x $lib'
15652 ;;
15653
15654 sunos4*)
15655 version_type=sunos
15656 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15657 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 shlibpath_overrides_runpath=yes
15660 if test yes = "$with_gnu_ld"; then
15661 need_lib_prefix=no
15662 fi
15663 need_version=yes
15664 ;;
15665
15666 sysv4 | sysv4.3*)
15667 version_type=linux # correct to gnu/linux during the next big refactor
15668 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15669 soname_spec='$libname$release$shared_ext$major'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 case $host_vendor in
15672 sni)
15673 shlibpath_overrides_runpath=no
15674 need_lib_prefix=no
15675 runpath_var=LD_RUN_PATH
15676 ;;
15677 siemens)
15678 need_lib_prefix=no
15679 ;;
15680 motorola)
15681 need_lib_prefix=no
15682 need_version=no
15683 shlibpath_overrides_runpath=no
15684 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15685 ;;
15686 esac
15687 ;;
15688
15689 sysv4*MP*)
15690 if test -d /usr/nec; then
15691 version_type=linux # correct to gnu/linux during the next big refactor
15692 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15693 soname_spec='$libname$shared_ext.$major'
15694 shlibpath_var=LD_LIBRARY_PATH
15695 fi
15696 ;;
15697
15698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15699 version_type=sco
15700 need_lib_prefix=no
15701 need_version=no
15702 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15703 soname_spec='$libname$release$shared_ext$major'
15704 shlibpath_var=LD_LIBRARY_PATH
15705 shlibpath_overrides_runpath=yes
15706 hardcode_into_libs=yes
15707 if test yes = "$with_gnu_ld"; then
15708 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15709 else
15710 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15711 case $host_os in
15712 sco3.2v5*)
15713 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15714 ;;
15715 esac
15716 fi
15717 sys_lib_dlsearch_path_spec='/usr/lib'
15718 ;;
15719
15720 tpf*)
15721 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15722 version_type=linux # correct to gnu/linux during the next big refactor
15723 need_lib_prefix=no
15724 need_version=no
15725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15726 shlibpath_var=LD_LIBRARY_PATH
15727 shlibpath_overrides_runpath=no
15728 hardcode_into_libs=yes
15729 ;;
15730
15731 uts4*)
15732 version_type=linux # correct to gnu/linux during the next big refactor
15733 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15734 soname_spec='$libname$release$shared_ext$major'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 ;;
15737
15738 *)
15739 dynamic_linker=no
15740 ;;
15741 esac
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15743 $as_echo "$dynamic_linker" >&6; }
15744 test no = "$dynamic_linker" && can_build_shared=no
15745
15746 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15747 if test yes = "$GCC"; then
15748 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15749 fi
15750
15751 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15752 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15753 fi
15754
15755 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15756 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15757 fi
15758
15759 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15760 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15761
15762 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15763 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15764
15765 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15766 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15808 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15809 hardcode_action_CXX=
15810 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15811 test -n "$runpath_var_CXX" ||
15812 test yes = "$hardcode_automatic_CXX"; then
15813
15814 # We can hardcode non-existent directories.
15815 if test no != "$hardcode_direct_CXX" &&
15816 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15817 # have to relink, otherwise we might link with an installed library
15818 # when we should be linking with a yet-to-be-installed one
15819 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15820 test no != "$hardcode_minus_L_CXX"; then
15821 # Linking always hardcodes the temporary library directory.
15822 hardcode_action_CXX=relink
15823 else
15824 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15825 hardcode_action_CXX=immediate
15826 fi
15827 else
15828 # We cannot hardcode anything, or else we can only hardcode existing
15829 # directories.
15830 hardcode_action_CXX=unsupported
15831 fi
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15833 $as_echo "$hardcode_action_CXX" >&6; }
15834
15835 if test relink = "$hardcode_action_CXX" ||
15836 test yes = "$inherit_rpath_CXX"; then
15837 # Fast installation is not supported
15838 enable_fast_install=no
15839 elif test yes = "$shlibpath_overrides_runpath" ||
15840 test no = "$enable_shared"; then
15841 # Fast installation is not necessary
15842 enable_fast_install=needless
15843 fi
15844
15845
15846
15847
15848
15849
15850
15851 fi # test -n "$compiler"
15852
15853 CC=$lt_save_CC
15854 CFLAGS=$lt_save_CFLAGS
15855 LDCXX=$LD
15856 LD=$lt_save_LD
15857 GCC=$lt_save_GCC
15858 with_gnu_ld=$lt_save_with_gnu_ld
15859 lt_cv_path_LDCXX=$lt_cv_path_LD
15860 lt_cv_path_LD=$lt_save_path_LD
15861 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15862 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15863 fi # test yes != "$_lt_caught_CXX_error"
15864
15865 ac_ext=c
15866 ac_cpp='$CPP $CPPFLAGS'
15867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885 ac_config_commands="$ac_config_commands libtool"
15886
15887
15888
15889
15890 # Only expand once:
15891
15892
15893
15894
15895 # when running tests, use CXX
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
15902
15903 # check OpenMP support
15904
15905 OPENMP_CXXFLAGS=
15906 # Check whether --enable-openmp was given.
15907 if test "${enable_openmp+set}" = set; then :
15908 enableval=$enable_openmp;
15909 fi
15910
15911 if test "$enable_openmp" != no; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
15913 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
15914 if ${ac_cv_prog_cxx_openmp+:} false; then :
15915 $as_echo_n "(cached) " >&6
15916 else
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919
15920 #ifndef _OPENMP
15921 choke me
15922 #endif
15923 #include <omp.h>
15924 int main () { return omp_get_num_threads (); }
15925
15926 _ACEOF
15927 if ac_fn_cxx_try_link "$LINENO"; then :
15928 ac_cv_prog_cxx_openmp='none needed'
15929 else
15930 ac_cv_prog_cxx_openmp='unsupported'
15931 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
15932 -Popenmp --openmp; do
15933 ac_save_CXXFLAGS=$CXXFLAGS
15934 CXXFLAGS="$CXXFLAGS $ac_option"
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15937
15938 #ifndef _OPENMP
15939 choke me
15940 #endif
15941 #include <omp.h>
15942 int main () { return omp_get_num_threads (); }
15943
15944 _ACEOF
15945 if ac_fn_cxx_try_link "$LINENO"; then :
15946 ac_cv_prog_cxx_openmp=$ac_option
15947 fi
15948 rm -f core conftest.err conftest.$ac_objext \
15949 conftest$ac_exeext conftest.$ac_ext
15950 CXXFLAGS=$ac_save_CXXFLAGS
15951 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
15952 break
15953 fi
15954 done
15955 fi
15956 rm -f core conftest.err conftest.$ac_objext \
15957 conftest$ac_exeext conftest.$ac_ext
15958 fi
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
15960 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
15961 case $ac_cv_prog_cxx_openmp in #(
15962 "none needed" | unsupported)
15963 ;; #(
15964 *)
15965 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
15966 esac
15967 fi
15968
15969
15970
15971 # Checks for libraries.
15972
15973 # Checks for header files.
15974
15975 # Checks for typedefs, structures, and compiler characteristics.
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15977 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15978 if ${ac_cv_header_stdbool_h+:} false; then :
15979 $as_echo_n "(cached) " >&6
15980 else
15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15982 /* end confdefs.h. */
15983
15984 #include <stdbool.h>
15985 #ifndef bool
15986 "error: bool is not defined"
15987 #endif
15988 #ifndef false
15989 "error: false is not defined"
15990 #endif
15991 #if false
15992 "error: false is not 0"
15993 #endif
15994 #ifndef true
15995 "error: true is not defined"
15996 #endif
15997 #if true != 1
15998 "error: true is not 1"
15999 #endif
16000 #ifndef __bool_true_false_are_defined
16001 "error: __bool_true_false_are_defined is not defined"
16002 #endif
16003
16004 struct s { _Bool s: 1; _Bool t; } s;
16005
16006 char a[true == 1 ? 1 : -1];
16007 char b[false == 0 ? 1 : -1];
16008 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16009 char d[(bool) 0.5 == true ? 1 : -1];
16010 /* See body of main program for 'e'. */
16011 char f[(_Bool) 0.0 == false ? 1 : -1];
16012 char g[true];
16013 char h[sizeof (_Bool)];
16014 char i[sizeof s.t];
16015 enum { j = false, k = true, l = false * true, m = true * 256 };
16016 /* The following fails for
16017 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16018 _Bool n[m];
16019 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16020 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16021 /* Catch a bug in an HP-UX C compiler. See
16022 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16023 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16024 */
16025 _Bool q = true;
16026 _Bool *pq = &q;
16027
16028 int
16029 main ()
16030 {
16031
16032 bool e = &s;
16033 *pq |= q;
16034 *pq |= ! q;
16035 /* Refer to every declared value, to avoid compiler optimizations. */
16036 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16037 + !m + !n + !o + !p + !q + !pq);
16038
16039 ;
16040 return 0;
16041 }
16042 _ACEOF
16043 if ac_fn_cxx_try_compile "$LINENO"; then :
16044 ac_cv_header_stdbool_h=yes
16045 else
16046 ac_cv_header_stdbool_h=no
16047 fi
16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 fi
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
16051 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16052 ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
16053 if test "x$ac_cv_type__Bool" = xyes; then :
16054
16055 cat >>confdefs.h <<_ACEOF
16056 #define HAVE__BOOL 1
16057 _ACEOF
16058
16059
16060 fi
16061
16062
16063 if test $ac_cv_header_stdbool_h = yes; then
16064
16065 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
16066
16067 fi
16068
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16070 $as_echo_n "checking for inline... " >&6; }
16071 if ${ac_cv_c_inline+:} false; then :
16072 $as_echo_n "(cached) " >&6
16073 else
16074 ac_cv_c_inline=no
16075 for ac_kw in inline __inline__ __inline; do
16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077 /* end confdefs.h. */
16078 #ifndef __cplusplus
16079 typedef int foo_t;
16080 static $ac_kw foo_t static_foo () {return 0; }
16081 $ac_kw foo_t foo () {return 0; }
16082 #endif
16083
16084 _ACEOF
16085 if ac_fn_cxx_try_compile "$LINENO"; then :
16086 ac_cv_c_inline=$ac_kw
16087 fi
16088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16089 test "$ac_cv_c_inline" != no && break
16090 done
16091
16092 fi
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16094 $as_echo "$ac_cv_c_inline" >&6; }
16095
16096 case $ac_cv_c_inline in
16097 inline | yes) ;;
16098 *)
16099 case $ac_cv_c_inline in
16100 no) ac_val=;;
16101 *) ac_val=$ac_cv_c_inline;;
16102 esac
16103 cat >>confdefs.h <<_ACEOF
16104 #ifndef __cplusplus
16105 #define inline $ac_val
16106 #endif
16107 _ACEOF
16108 ;;
16109 esac
16110
16111 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16112 if test "x$ac_cv_type_size_t" = xyes; then :
16113
16114 else
16115
16116 cat >>confdefs.h <<_ACEOF
16117 #define size_t unsigned int
16118 _ACEOF
16119
16120 fi
16121
16122
16123 # Checks for library functions.
16124 for ac_func in localtime_r
16125 do :
16126 ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
16127 if test "x$ac_cv_func_localtime_r" = xyes; then :
16128 cat >>confdefs.h <<_ACEOF
16129 #define HAVE_LOCALTIME_R 1
16130 _ACEOF
16131
16132 fi
16133 done
16134
16135
16136
16137
16138
16139
16140 ac_ext=c
16141 ac_cpp='$CPP $CPPFLAGS'
16142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16145
16146 ax_pthread_ok=no
16147
16148 # We used to check for pthread.h first, but this fails if pthread.h
16149 # requires special compiler flags (e.g. on Tru64 or Sequent).
16150 # It gets checked for in the link test anyway.
16151
16152 # First of all, check if the user has set any of the PTHREAD_LIBS,
16153 # etcetera environment variables, and if threads linking works using
16154 # them:
16155 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
16156 ax_pthread_save_CC="$CC"
16157 ax_pthread_save_CFLAGS="$CFLAGS"
16158 ax_pthread_save_LIBS="$LIBS"
16159 if test "x$PTHREAD_CC" != "x"; then :
16160 CC="$PTHREAD_CC"
16161 fi
16162 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16163 LIBS="$PTHREAD_LIBS $LIBS"
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
16165 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
16166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16167 /* end confdefs.h. */
16168
16169 /* Override any GCC internal prototype to avoid an error.
16170 Use char because int might match the return type of a GCC
16171 builtin and then its argument prototype would still apply. */
16172 #ifdef __cplusplus
16173 extern "C"
16174 #endif
16175 char pthread_join ();
16176 int
16177 main ()
16178 {
16179 return pthread_join ();
16180 ;
16181 return 0;
16182 }
16183 _ACEOF
16184 if ac_fn_c_try_link "$LINENO"; then :
16185 ax_pthread_ok=yes
16186 fi
16187 rm -f core conftest.err conftest.$ac_objext \
16188 conftest$ac_exeext conftest.$ac_ext
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16190 $as_echo "$ax_pthread_ok" >&6; }
16191 if test "x$ax_pthread_ok" = "xno"; then
16192 PTHREAD_LIBS=""
16193 PTHREAD_CFLAGS=""
16194 fi
16195 CC="$ax_pthread_save_CC"
16196 CFLAGS="$ax_pthread_save_CFLAGS"
16197 LIBS="$ax_pthread_save_LIBS"
16198 fi
16199
16200 # We must check for the threads library under a number of different
16201 # names; the ordering is very important because some systems
16202 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16203 # libraries is broken (non-POSIX).
16204
16205 # Create a list of thread flags to try. Items starting with a "-" are
16206 # C compiler flags, and other items are library names, except for "none"
16207 # which indicates that we try without any flags at all, and "pthread-config"
16208 # which is a program returning the flags for the Pth emulation library.
16209
16210 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16211
16212 # The ordering *is* (sometimes) important. Some notes on the
16213 # individual items follow:
16214
16215 # pthreads: AIX (must check this before -lpthread)
16216 # none: in case threads are in libc; should be tried before -Kthread and
16217 # other compiler flags to prevent continual compiler warnings
16218 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16219 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
16220 # (Note: HP C rejects this with "bad form for `-t' option")
16221 # -pthreads: Solaris/gcc (Note: HP C also rejects)
16222 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16223 # doesn't hurt to check since this sometimes defines pthreads and
16224 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
16225 # is present but should not be used directly; and before -mthreads,
16226 # because the compiler interprets this as "-mt" + "-hreads")
16227 # -mthreads: Mingw32/gcc, Lynx/gcc
16228 # pthread: Linux, etcetera
16229 # --thread-safe: KAI C++
16230 # pthread-config: use pthread-config program (for GNU Pth library)
16231
16232 case $host_os in
16233
16234 freebsd*)
16235
16236 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16237 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16238
16239 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
16240 ;;
16241
16242 hpux*)
16243
16244 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
16245 # multi-threading and also sets -lpthread."
16246
16247 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
16248 ;;
16249
16250 openedition*)
16251
16252 # IBM z/OS requires a feature-test macro to be defined in order to
16253 # enable POSIX threads at all, so give the user a hint if this is
16254 # not set. (We don't define these ourselves, as they can affect
16255 # other portions of the system API in unpredictable ways.)
16256
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259
16260 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
16261 AX_PTHREAD_ZOS_MISSING
16262 # endif
16263
16264 _ACEOF
16265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16266 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
16268 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
16269 fi
16270 rm -f conftest*
16271
16272 ;;
16273
16274 solaris*)
16275
16276 # On Solaris (at least, for some versions), libc contains stubbed
16277 # (non-functional) versions of the pthreads routines, so link-based
16278 # tests will erroneously succeed. (N.B.: The stubs are missing
16279 # pthread_cleanup_push, or rather a function called by this macro,
16280 # so we could check for that, but who knows whether they'll stub
16281 # that too in a future libc.) So we'll check first for the
16282 # standard Solaris way of linking pthreads (-mt -lpthread).
16283
16284 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
16285 ;;
16286 esac
16287
16288 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
16289
16290 if test "x$GCC" = "xyes"; then :
16291 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
16292 fi
16293
16294 # The presence of a feature test macro requesting re-entrant function
16295 # definitions is, on some systems, a strong hint that pthreads support is
16296 # correctly enabled
16297
16298 case $host_os in
16299 darwin* | hpux* | linux* | osf* | solaris*)
16300 ax_pthread_check_macro="_REENTRANT"
16301 ;;
16302
16303 aix*)
16304 ax_pthread_check_macro="_THREAD_SAFE"
16305 ;;
16306
16307 *)
16308 ax_pthread_check_macro="--"
16309 ;;
16310 esac
16311 if test "x$ax_pthread_check_macro" = "x--"; then :
16312 ax_pthread_check_cond=0
16313 else
16314 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
16315 fi
16316
16317 # Are we compiling with Clang?
16318
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
16320 $as_echo_n "checking whether $CC is Clang... " >&6; }
16321 if ${ax_cv_PTHREAD_CLANG+:} false; then :
16322 $as_echo_n "(cached) " >&6
16323 else
16324 ax_cv_PTHREAD_CLANG=no
16325 # Note that Autoconf sets GCC=yes for Clang as well as GCC
16326 if test "x$GCC" = "xyes"; then
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16329 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
16330 # if defined(__clang__) && defined(__llvm__)
16331 AX_PTHREAD_CC_IS_CLANG
16332 # endif
16333
16334 _ACEOF
16335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16336 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
16337 ax_cv_PTHREAD_CLANG=yes
16338 fi
16339 rm -f conftest*
16340
16341 fi
16342
16343 fi
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
16345 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
16346 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
16347
16348 ax_pthread_clang_warning=no
16349
16350 # Clang needs special handling, because older versions handle the -pthread
16351 # option in a rather... idiosyncratic way
16352
16353 if test "x$ax_pthread_clang" = "xyes"; then
16354
16355 # Clang takes -pthread; it has never supported any other flag
16356
16357 # (Note 1: This will need to be revisited if a system that Clang
16358 # supports has POSIX threads in a separate library. This tends not
16359 # to be the way of modern systems, but it's conceivable.)
16360
16361 # (Note 2: On some systems, notably Darwin, -pthread is not needed
16362 # to get POSIX threads support; the API is always present and
16363 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
16364 # -pthread does define _REENTRANT, and while the Darwin headers
16365 # ignore this macro, third-party headers might not.)
16366
16367 PTHREAD_CFLAGS="-pthread"
16368 PTHREAD_LIBS=
16369
16370 ax_pthread_ok=yes
16371
16372 # However, older versions of Clang make a point of warning the user
16373 # that, in an invocation where only linking and no compilation is
16374 # taking place, the -pthread option has no effect ("argument unused
16375 # during compilation"). They expect -pthread to be passed in only
16376 # when source code is being compiled.
16377 #
16378 # Problem is, this is at odds with the way Automake and most other
16379 # C build frameworks function, which is that the same flags used in
16380 # compilation (CFLAGS) are also used in linking. Many systems
16381 # supported by AX_PTHREAD require exactly this for POSIX threads
16382 # support, and in fact it is often not straightforward to specify a
16383 # flag that is used only in the compilation phase and not in
16384 # linking. Such a scenario is extremely rare in practice.
16385 #
16386 # Even though use of the -pthread flag in linking would only print
16387 # a warning, this can be a nuisance for well-run software projects
16388 # that build with -Werror. So if the active version of Clang has
16389 # this misfeature, we search for an option to squash it.
16390
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
16392 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
16393 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
16394 $as_echo_n "(cached) " >&6
16395 else
16396 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
16397 # Create an alternate version of $ac_link that compiles and
16398 # links in two steps (.c -> .o, .o -> exe) instead of one
16399 # (.c -> exe), because the warning occurs only in the second
16400 # step
16401 ax_pthread_save_ac_link="$ac_link"
16402 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
16403 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
16404 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
16405 ax_pthread_save_CFLAGS="$CFLAGS"
16406 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
16407 if test "x$ax_pthread_try" = "xunknown"; then :
16408 break
16409 fi
16410 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
16411 ac_link="$ax_pthread_save_ac_link"
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413 /* end confdefs.h. */
16414 int main(void){return 0;}
16415 _ACEOF
16416 if ac_fn_c_try_link "$LINENO"; then :
16417 ac_link="$ax_pthread_2step_ac_link"
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16420 int main(void){return 0;}
16421 _ACEOF
16422 if ac_fn_c_try_link "$LINENO"; then :
16423 break
16424 fi
16425 rm -f core conftest.err conftest.$ac_objext \
16426 conftest$ac_exeext conftest.$ac_ext
16427
16428 fi
16429 rm -f core conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16431 done
16432 ac_link="$ax_pthread_save_ac_link"
16433 CFLAGS="$ax_pthread_save_CFLAGS"
16434 if test "x$ax_pthread_try" = "x"; then :
16435 ax_pthread_try=no
16436 fi
16437 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
16438
16439 fi
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
16441 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
16442
16443 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
16444 no | unknown) ;;
16445 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
16446 esac
16447
16448 fi # $ax_pthread_clang = yes
16449
16450 if test "x$ax_pthread_ok" = "xno"; then
16451 for ax_pthread_try_flag in $ax_pthread_flags; do
16452
16453 case $ax_pthread_try_flag in
16454 none)
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16456 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16457 ;;
16458
16459 -mt,pthread)
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
16461 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
16462 PTHREAD_CFLAGS="-mt"
16463 PTHREAD_LIBS="-lpthread"
16464 ;;
16465
16466 -*)
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
16468 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
16469 PTHREAD_CFLAGS="$ax_pthread_try_flag"
16470 ;;
16471
16472 pthread-config)
16473 # Extract the first word of "pthread-config", so it can be a program name with args.
16474 set dummy pthread-config; ac_word=$2
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16476 $as_echo_n "checking for $ac_word... " >&6; }
16477 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16478 $as_echo_n "(cached) " >&6
16479 else
16480 if test -n "$ax_pthread_config"; then
16481 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16482 else
16483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16484 for as_dir in $PATH
16485 do
16486 IFS=$as_save_IFS
16487 test -z "$as_dir" && as_dir=.
16488 for ac_exec_ext in '' $ac_executable_extensions; do
16489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16490 ac_cv_prog_ax_pthread_config="yes"
16491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16492 break 2
16493 fi
16494 done
16495 done
16496 IFS=$as_save_IFS
16497
16498 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16499 fi
16500 fi
16501 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16502 if test -n "$ax_pthread_config"; then
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16504 $as_echo "$ax_pthread_config" >&6; }
16505 else
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16507 $as_echo "no" >&6; }
16508 fi
16509
16510
16511 if test "x$ax_pthread_config" = "xno"; then :
16512 continue
16513 fi
16514 PTHREAD_CFLAGS="`pthread-config --cflags`"
16515 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16516 ;;
16517
16518 *)
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
16520 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
16521 PTHREAD_LIBS="-l$ax_pthread_try_flag"
16522 ;;
16523 esac
16524
16525 ax_pthread_save_CFLAGS="$CFLAGS"
16526 ax_pthread_save_LIBS="$LIBS"
16527 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16528 LIBS="$PTHREAD_LIBS $LIBS"
16529
16530 # Check for various functions. We must include pthread.h,
16531 # since some functions may be macros. (On the Sequent, we
16532 # need a special flag -Kthread to make this header compile.)
16533 # We check for pthread_join because it is in -lpthread on IRIX
16534 # while pthread_create is in libc. We check for pthread_attr_init
16535 # due to DEC craziness with -lpthreads. We check for
16536 # pthread_cleanup_push because it is one of the few pthread
16537 # functions on Solaris that doesn't have a non-functional libc stub.
16538 # We try pthread_create on general principles.
16539
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16542 #include <pthread.h>
16543 # if $ax_pthread_check_cond
16544 # error "$ax_pthread_check_macro must be defined"
16545 # endif
16546 static void routine(void *a) { a = 0; }
16547 static void *start_routine(void *a) { return a; }
16548 int
16549 main ()
16550 {
16551 pthread_t th; pthread_attr_t attr;
16552 pthread_create(&th, 0, start_routine, 0);
16553 pthread_join(th, 0);
16554 pthread_attr_init(&attr);
16555 pthread_cleanup_push(routine, 0);
16556 pthread_cleanup_pop(0) /* ; */
16557 ;
16558 return 0;
16559 }
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"; then :
16562 ax_pthread_ok=yes
16563 fi
16564 rm -f core conftest.err conftest.$ac_objext \
16565 conftest$ac_exeext conftest.$ac_ext
16566
16567 CFLAGS="$ax_pthread_save_CFLAGS"
16568 LIBS="$ax_pthread_save_LIBS"
16569
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16571 $as_echo "$ax_pthread_ok" >&6; }
16572 if test "x$ax_pthread_ok" = "xyes"; then :
16573 break
16574 fi
16575
16576 PTHREAD_LIBS=""
16577 PTHREAD_CFLAGS=""
16578 done
16579 fi
16580
16581 # Various other checks:
16582 if test "x$ax_pthread_ok" = "xyes"; then
16583 ax_pthread_save_CFLAGS="$CFLAGS"
16584 ax_pthread_save_LIBS="$LIBS"
16585 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16586 LIBS="$PTHREAD_LIBS $LIBS"
16587
16588 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16590 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16591 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
16592 $as_echo_n "(cached) " >&6
16593 else
16594 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
16595 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597 /* end confdefs.h. */
16598 #include <pthread.h>
16599 int
16600 main ()
16601 {
16602 int attr = $ax_pthread_attr; return attr /* ; */
16603 ;
16604 return 0;
16605 }
16606 _ACEOF
16607 if ac_fn_c_try_link "$LINENO"; then :
16608 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
16609 fi
16610 rm -f core conftest.err conftest.$ac_objext \
16611 conftest$ac_exeext conftest.$ac_ext
16612 done
16613
16614 fi
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
16616 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
16617 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
16618 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
16619 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
16620
16621 cat >>confdefs.h <<_ACEOF
16622 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
16623 _ACEOF
16624
16625 ax_pthread_joinable_attr_defined=yes
16626
16627 fi
16628
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
16630 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
16631 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
16632 $as_echo_n "(cached) " >&6
16633 else
16634 ax_cv_PTHREAD_SPECIAL_FLAGS=no
16635 case $host_os in
16636 solaris*)
16637 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
16638 ;;
16639 esac
16640
16641 fi
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
16643 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
16644 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
16645 test "x$ax_pthread_special_flags_added" != "xyes"; then :
16646 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
16647 ax_pthread_special_flags_added=yes
16648 fi
16649
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16651 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16652 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16653 $as_echo_n "(cached) " >&6
16654 else
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16657 #include <pthread.h>
16658 int
16659 main ()
16660 {
16661 int i = PTHREAD_PRIO_INHERIT;
16662 ;
16663 return 0;
16664 }
16665 _ACEOF
16666 if ac_fn_c_try_link "$LINENO"; then :
16667 ax_cv_PTHREAD_PRIO_INHERIT=yes
16668 else
16669 ax_cv_PTHREAD_PRIO_INHERIT=no
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext \
16672 conftest$ac_exeext conftest.$ac_ext
16673
16674 fi
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16676 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16677 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
16678 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
16679
16680 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16681
16682 ax_pthread_prio_inherit_defined=yes
16683
16684 fi
16685
16686 CFLAGS="$ax_pthread_save_CFLAGS"
16687 LIBS="$ax_pthread_save_LIBS"
16688
16689 # More AIX lossage: compile with *_r variant
16690 if test "x$GCC" != "xyes"; then
16691 case $host_os in
16692 aix*)
16693 case "x/$CC" in #(
16694 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16695 #handle absolute path differently from PATH based program lookup
16696 case "x$CC" in #(
16697 x/*) :
16698 if as_fn_executable_p ${CC}_r; then :
16699 PTHREAD_CC="${CC}_r"
16700 fi ;; #(
16701 *) :
16702 for ac_prog in ${CC}_r
16703 do
16704 # Extract the first word of "$ac_prog", so it can be a program name with args.
16705 set dummy $ac_prog; ac_word=$2
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16707 $as_echo_n "checking for $ac_word... " >&6; }
16708 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16709 $as_echo_n "(cached) " >&6
16710 else
16711 if test -n "$PTHREAD_CC"; then
16712 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16713 else
16714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16715 for as_dir in $PATH
16716 do
16717 IFS=$as_save_IFS
16718 test -z "$as_dir" && as_dir=.
16719 for ac_exec_ext in '' $ac_executable_extensions; do
16720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16721 ac_cv_prog_PTHREAD_CC="$ac_prog"
16722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16723 break 2
16724 fi
16725 done
16726 done
16727 IFS=$as_save_IFS
16728
16729 fi
16730 fi
16731 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16732 if test -n "$PTHREAD_CC"; then
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16734 $as_echo "$PTHREAD_CC" >&6; }
16735 else
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16737 $as_echo "no" >&6; }
16738 fi
16739
16740
16741 test -n "$PTHREAD_CC" && break
16742 done
16743 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16744 ;;
16745 esac ;; #(
16746 *) :
16747 ;;
16748 esac
16749 ;;
16750 esac
16751 fi
16752 fi
16753
16754 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16755
16756
16757
16758
16759
16760 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16761 if test "x$ax_pthread_ok" = "xyes"; then
16762
16763 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16764
16765 :
16766 else
16767 ax_pthread_ok=no
16768 as_fn_error $? "We need pthread support!" "$LINENO" 5
16769 fi
16770 ac_ext=cpp
16771 ac_cpp='$CXXCPP $CPPFLAGS'
16772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16775
16776
16777 LIBS="$PTHREAD_LIBS $LIBS"
16778 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
16779
16780
16781
16782
16783
16784
16785
16786
16787 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16788 if test -n "$ac_tool_prefix"; then
16789 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16790 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16792 $as_echo_n "checking for $ac_word... " >&6; }
16793 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16794 $as_echo_n "(cached) " >&6
16795 else
16796 case $PKG_CONFIG in
16797 [\\/]* | ?:[\\/]*)
16798 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16799 ;;
16800 *)
16801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16802 for as_dir in $PATH
16803 do
16804 IFS=$as_save_IFS
16805 test -z "$as_dir" && as_dir=.
16806 for ac_exec_ext in '' $ac_executable_extensions; do
16807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16808 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16810 break 2
16811 fi
16812 done
16813 done
16814 IFS=$as_save_IFS
16815
16816 ;;
16817 esac
16818 fi
16819 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16820 if test -n "$PKG_CONFIG"; then
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16822 $as_echo "$PKG_CONFIG" >&6; }
16823 else
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16825 $as_echo "no" >&6; }
16826 fi
16827
16828
16829 fi
16830 if test -z "$ac_cv_path_PKG_CONFIG"; then
16831 ac_pt_PKG_CONFIG=$PKG_CONFIG
16832 # Extract the first word of "pkg-config", so it can be a program name with args.
16833 set dummy pkg-config; ac_word=$2
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16835 $as_echo_n "checking for $ac_word... " >&6; }
16836 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16837 $as_echo_n "(cached) " >&6
16838 else
16839 case $ac_pt_PKG_CONFIG in
16840 [\\/]* | ?:[\\/]*)
16841 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16842 ;;
16843 *)
16844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16845 for as_dir in $PATH
16846 do
16847 IFS=$as_save_IFS
16848 test -z "$as_dir" && as_dir=.
16849 for ac_exec_ext in '' $ac_executable_extensions; do
16850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16851 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16853 break 2
16854 fi
16855 done
16856 done
16857 IFS=$as_save_IFS
16858
16859 ;;
16860 esac
16861 fi
16862 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16863 if test -n "$ac_pt_PKG_CONFIG"; then
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16865 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16866 else
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16868 $as_echo "no" >&6; }
16869 fi
16870
16871 if test "x$ac_pt_PKG_CONFIG" = x; then
16872 PKG_CONFIG=""
16873 else
16874 case $cross_compiling:$ac_tool_warned in
16875 yes:)
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16878 ac_tool_warned=yes ;;
16879 esac
16880 PKG_CONFIG=$ac_pt_PKG_CONFIG
16881 fi
16882 else
16883 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16884 fi
16885
16886 fi
16887 if test -n "$PKG_CONFIG"; then
16888 _pkg_min_version=0.9.0
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16890 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16891 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16893 $as_echo "yes" >&6; }
16894 else
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16897 PKG_CONFIG=""
16898 fi
16899 fi
16900 if test "x$prefix" = "xNONE"; then
16901 prefix="/usr/local"
16902 fi
16903
16904 if test "x$PKG_CONFIG_PATH" = x; then
16905 export PKG_CONFIG_PATH="$prefix/lib/pkgconfig"
16906 else
16907 export PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
16908 fi
16909
16910
16911 case ${host_os} in
16912 linux*)
16913 # linux is wellbehaved
16914 ;;
16915 darwin*)
16916 # darwin isn't
16917 for i in icu4c
16918 do
16919 if test -d "/usr/local/opt/$i/lib/pkgconfig"
16920 then
16921 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/$i/lib/pkgconfig"
16922 fi
16923 done
16924 ;;
16925 esac
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16936 if test -n "$ac_tool_prefix"; then
16937 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16938 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16940 $as_echo_n "checking for $ac_word... " >&6; }
16941 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16942 $as_echo_n "(cached) " >&6
16943 else
16944 case $PKG_CONFIG in
16945 [\\/]* | ?:[\\/]*)
16946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16947 ;;
16948 *)
16949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16950 for as_dir in $PATH
16951 do
16952 IFS=$as_save_IFS
16953 test -z "$as_dir" && as_dir=.
16954 for ac_exec_ext in '' $ac_executable_extensions; do
16955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16958 break 2
16959 fi
16960 done
16961 done
16962 IFS=$as_save_IFS
16963
16964 ;;
16965 esac
16966 fi
16967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16968 if test -n "$PKG_CONFIG"; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16970 $as_echo "$PKG_CONFIG" >&6; }
16971 else
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16973 $as_echo "no" >&6; }
16974 fi
16975
16976
16977 fi
16978 if test -z "$ac_cv_path_PKG_CONFIG"; then
16979 ac_pt_PKG_CONFIG=$PKG_CONFIG
16980 # Extract the first word of "pkg-config", so it can be a program name with args.
16981 set dummy pkg-config; ac_word=$2
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16983 $as_echo_n "checking for $ac_word... " >&6; }
16984 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16985 $as_echo_n "(cached) " >&6
16986 else
16987 case $ac_pt_PKG_CONFIG in
16988 [\\/]* | ?:[\\/]*)
16989 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16990 ;;
16991 *)
16992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16993 for as_dir in $PATH
16994 do
16995 IFS=$as_save_IFS
16996 test -z "$as_dir" && as_dir=.
16997 for ac_exec_ext in '' $ac_executable_extensions; do
16998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16999 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17001 break 2
17002 fi
17003 done
17004 done
17005 IFS=$as_save_IFS
17006
17007 ;;
17008 esac
17009 fi
17010 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17011 if test -n "$ac_pt_PKG_CONFIG"; then
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17013 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17014 else
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17016 $as_echo "no" >&6; }
17017 fi
17018
17019 if test "x$ac_pt_PKG_CONFIG" = x; then
17020 PKG_CONFIG=""
17021 else
17022 case $cross_compiling:$ac_tool_warned in
17023 yes:)
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17026 ac_tool_warned=yes ;;
17027 esac
17028 PKG_CONFIG=$ac_pt_PKG_CONFIG
17029 fi
17030 else
17031 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17032 fi
17033
17034 fi
17035 if test -n "$PKG_CONFIG"; then
17036 _pkg_min_version=0.9.0
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17038 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17039 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17041 $as_echo "yes" >&6; }
17042 else
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17044 $as_echo "no" >&6; }
17045 PKG_CONFIG=""
17046 fi
17047 fi
17048
17049 pkg_failed=no
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML2" >&5
17051 $as_echo_n "checking for XML2... " >&6; }
17052
17053 if test -n "$XML2_CFLAGS"; then
17054 pkg_cv_XML2_CFLAGS="$XML2_CFLAGS"
17055 elif test -n "$PKG_CONFIG"; then
17056 if test -n "$PKG_CONFIG" && \
17057 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.16 \""; } >&5
17058 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.16 ") 2>&5
17059 ac_status=$?
17060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17061 test $ac_status = 0; }; then
17062 pkg_cv_XML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.16 " 2>/dev/null`
17063 test "x$?" != "x0" && pkg_failed=yes
17064 else
17065 pkg_failed=yes
17066 fi
17067 else
17068 pkg_failed=untried
17069 fi
17070 if test -n "$XML2_LIBS"; then
17071 pkg_cv_XML2_LIBS="$XML2_LIBS"
17072 elif test -n "$PKG_CONFIG"; then
17073 if test -n "$PKG_CONFIG" && \
17074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.16 \""; } >&5
17075 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.16 ") 2>&5
17076 ac_status=$?
17077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17078 test $ac_status = 0; }; then
17079 pkg_cv_XML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.16 " 2>/dev/null`
17080 test "x$?" != "x0" && pkg_failed=yes
17081 else
17082 pkg_failed=yes
17083 fi
17084 else
17085 pkg_failed=untried
17086 fi
17087
17088
17089
17090 if test $pkg_failed = yes; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17092 $as_echo "no" >&6; }
17093
17094 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17095 _pkg_short_errors_supported=yes
17096 else
17097 _pkg_short_errors_supported=no
17098 fi
17099 if test $_pkg_short_errors_supported = yes; then
17100 XML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.16 " 2>&1`
17101 else
17102 XML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.16 " 2>&1`
17103 fi
17104 # Put the nasty error message in config.log where it belongs
17105 echo "$XML2_PKG_ERRORS" >&5
17106
17107 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6.16 ) were not met:
17108
17109 $XML2_PKG_ERRORS
17110
17111 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17112 installed software in a non-standard prefix.
17113
17114 Alternatively, you may set the environment variables XML2_CFLAGS
17115 and XML2_LIBS to avoid the need to call pkg-config.
17116 See the pkg-config man page for more details." "$LINENO" 5
17117 elif test $pkg_failed = untried; then
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17119 $as_echo "no" >&6; }
17120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17122 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17123 is in your PATH or set the PKG_CONFIG environment variable to the full
17124 path to pkg-config.
17125
17126 Alternatively, you may set the environment variables XML2_CFLAGS
17127 and XML2_LIBS to avoid the need to call pkg-config.
17128 See the pkg-config man page for more details.
17129
17130 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17131 See \`config.log' for more details" "$LINENO" 5; }
17132 else
17133 XML2_CFLAGS=$pkg_cv_XML2_CFLAGS
17134 XML2_LIBS=$pkg_cv_XML2_LIBS
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17136 $as_echo "yes" >&6; }
17137
17138 fi
17139 CXXFLAGS="$CXXFLAGS $XML2_CFLAGS"
17140 LIBS="$XML2_LIBS $LIBS"
17141
17142
17143 pkg_failed=no
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ticcutils" >&5
17145 $as_echo_n "checking for ticcutils... " >&6; }
17146
17147 if test -n "$ticcutils_CFLAGS"; then
17148 pkg_cv_ticcutils_CFLAGS="$ticcutils_CFLAGS"
17149 elif test -n "$PKG_CONFIG"; then
17150 if test -n "$PKG_CONFIG" && \
17151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ticcutils >= 0.24 \""; } >&5
17152 ($PKG_CONFIG --exists --print-errors "ticcutils >= 0.24 ") 2>&5
17153 ac_status=$?
17154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17155 test $ac_status = 0; }; then
17156 pkg_cv_ticcutils_CFLAGS=`$PKG_CONFIG --cflags "ticcutils >= 0.24 " 2>/dev/null`
17157 test "x$?" != "x0" && pkg_failed=yes
17158 else
17159 pkg_failed=yes
17160 fi
17161 else
17162 pkg_failed=untried
17163 fi
17164 if test -n "$ticcutils_LIBS"; then
17165 pkg_cv_ticcutils_LIBS="$ticcutils_LIBS"
17166 elif test -n "$PKG_CONFIG"; then
17167 if test -n "$PKG_CONFIG" && \
17168 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ticcutils >= 0.24 \""; } >&5
17169 ($PKG_CONFIG --exists --print-errors "ticcutils >= 0.24 ") 2>&5
17170 ac_status=$?
17171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17172 test $ac_status = 0; }; then
17173 pkg_cv_ticcutils_LIBS=`$PKG_CONFIG --libs "ticcutils >= 0.24 " 2>/dev/null`
17174 test "x$?" != "x0" && pkg_failed=yes
17175 else
17176 pkg_failed=yes
17177 fi
17178 else
17179 pkg_failed=untried
17180 fi
17181
17182
17183
17184 if test $pkg_failed = yes; then
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 $as_echo "no" >&6; }
17187
17188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17189 _pkg_short_errors_supported=yes
17190 else
17191 _pkg_short_errors_supported=no
17192 fi
17193 if test $_pkg_short_errors_supported = yes; then
17194 ticcutils_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ticcutils >= 0.24 " 2>&1`
17195 else
17196 ticcutils_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ticcutils >= 0.24 " 2>&1`
17197 fi
17198 # Put the nasty error message in config.log where it belongs
17199 echo "$ticcutils_PKG_ERRORS" >&5
17200
17201 as_fn_error $? "Package requirements (ticcutils >= 0.24 ) were not met:
17202
17203 $ticcutils_PKG_ERRORS
17204
17205 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17206 installed software in a non-standard prefix.
17207
17208 Alternatively, you may set the environment variables ticcutils_CFLAGS
17209 and ticcutils_LIBS to avoid the need to call pkg-config.
17210 See the pkg-config man page for more details." "$LINENO" 5
17211 elif test $pkg_failed = untried; then
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17213 $as_echo "no" >&6; }
17214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17216 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17217 is in your PATH or set the PKG_CONFIG environment variable to the full
17218 path to pkg-config.
17219
17220 Alternatively, you may set the environment variables ticcutils_CFLAGS
17221 and ticcutils_LIBS to avoid the need to call pkg-config.
17222 See the pkg-config man page for more details.
17223
17224 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17225 See \`config.log' for more details" "$LINENO" 5; }
17226 else
17227 ticcutils_CFLAGS=$pkg_cv_ticcutils_CFLAGS
17228 ticcutils_LIBS=$pkg_cv_ticcutils_LIBS
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17230 $as_echo "yes" >&6; }
17231
17232 fi
17233 CXXFLAGS="$CXXFLAGS $ticcutils_CFLAGS"
17234 LIBS="$ticcutils_LIBS $LIBS"
17235
17236
17237 pkg_failed=no
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
17239 $as_echo_n "checking for ICU... " >&6; }
17240
17241 if test -n "$ICU_CFLAGS"; then
17242 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
17243 elif test -n "$PKG_CONFIG"; then
17244 if test -n "$PKG_CONFIG" && \
17245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50 icu-io \""; } >&5
17246 ($PKG_CONFIG --exists --print-errors "icu-uc >= 50 icu-io ") 2>&5
17247 ac_status=$?
17248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17249 test $ac_status = 0; }; then
17250 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc >= 50 icu-io " 2>/dev/null`
17251 test "x$?" != "x0" && pkg_failed=yes
17252 else
17253 pkg_failed=yes
17254 fi
17255 else
17256 pkg_failed=untried
17257 fi
17258 if test -n "$ICU_LIBS"; then
17259 pkg_cv_ICU_LIBS="$ICU_LIBS"
17260 elif test -n "$PKG_CONFIG"; then
17261 if test -n "$PKG_CONFIG" && \
17262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc >= 50 icu-io \""; } >&5
17263 ($PKG_CONFIG --exists --print-errors "icu-uc >= 50 icu-io ") 2>&5
17264 ac_status=$?
17265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17266 test $ac_status = 0; }; then
17267 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc >= 50 icu-io " 2>/dev/null`
17268 test "x$?" != "x0" && pkg_failed=yes
17269 else
17270 pkg_failed=yes
17271 fi
17272 else
17273 pkg_failed=untried
17274 fi
17275
17276
17277
17278 if test $pkg_failed = yes; then
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17280 $as_echo "no" >&6; }
17281
17282 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17283 _pkg_short_errors_supported=yes
17284 else
17285 _pkg_short_errors_supported=no
17286 fi
17287 if test $_pkg_short_errors_supported = yes; then
17288 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc >= 50 icu-io " 2>&1`
17289 else
17290 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc >= 50 icu-io " 2>&1`
17291 fi
17292 # Put the nasty error message in config.log where it belongs
17293 echo "$ICU_PKG_ERRORS" >&5
17294
17295 as_fn_error $? "Package requirements (icu-uc >= 50 icu-io ) were not met:
17296
17297 $ICU_PKG_ERRORS
17298
17299 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17300 installed software in a non-standard prefix.
17301
17302 Alternatively, you may set the environment variables ICU_CFLAGS
17303 and ICU_LIBS to avoid the need to call pkg-config.
17304 See the pkg-config man page for more details." "$LINENO" 5
17305 elif test $pkg_failed = untried; then
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17307 $as_echo "no" >&6; }
17308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17310 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17311 is in your PATH or set the PKG_CONFIG environment variable to the full
17312 path to pkg-config.
17313
17314 Alternatively, you may set the environment variables ICU_CFLAGS
17315 and ICU_LIBS to avoid the need to call pkg-config.
17316 See the pkg-config man page for more details.
17317
17318 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17319 See \`config.log' for more details" "$LINENO" 5; }
17320 else
17321 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
17322 ICU_LIBS=$pkg_cv_ICU_LIBS
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17324 $as_echo "yes" >&6; }
17325
17326 fi
17327 CXXFLAGS="$CXXFLAGS $ICU_CFLAGS"
17328 LIBS="$ICU_LIBS $LIBS"
17329
17330 ac_config_files="$ac_config_files Makefile folia.pc m4/Makefile src/Makefile include/Makefile include/libfolia/Makefile"
17331
17332 cat >confcache <<\_ACEOF
17333 # This file is a shell script that caches the results of configure
17334 # tests run on this system so they can be shared between configure
17335 # scripts and configure runs, see configure's option --config-cache.
17336 # It is not useful on other systems. If it contains results you don't
17337 # want to keep, you may remove or edit it.
17338 #
17339 # config.status only pays attention to the cache file if you give it
17340 # the --recheck option to rerun configure.
17341 #
17342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17344 # following values.
17345
17346 _ACEOF
17347
17348 # The following way of writing the cache mishandles newlines in values,
17349 # but we know of no workaround that is simple, portable, and efficient.
17350 # So, we kill variables containing newlines.
17351 # Ultrix sh set writes to stderr and can't be redirected directly,
17352 # and sets the high bit in the cache file unless we assign to the vars.
17353 (
17354 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17355 eval ac_val=\$$ac_var
17356 case $ac_val in #(
17357 *${as_nl}*)
17358 case $ac_var in #(
17359 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17360 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17361 esac
17362 case $ac_var in #(
17363 _ | IFS | as_nl) ;; #(
17364 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17365 *) { eval $ac_var=; unset $ac_var;} ;;
17366 esac ;;
17367 esac
17368 done
17369
17370 (set) 2>&1 |
17371 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17372 *${as_nl}ac_space=\ *)
17373 # `set' does not quote correctly, so add quotes: double-quote
17374 # substitution turns \\\\ into \\, and sed turns \\ into \.
17375 sed -n \
17376 "s/'/'\\\\''/g;
17377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17378 ;; #(
17379 *)
17380 # `set' quotes correctly as required by POSIX, so do not add quotes.
17381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17382 ;;
17383 esac |
17384 sort
17385 ) |
17386 sed '
17387 /^ac_cv_env_/b end
17388 t clear
17389 :clear
17390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17391 t end
17392 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17393 :end' >>confcache
17394 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17395 if test -w "$cache_file"; then
17396 if test "x$cache_file" != "x/dev/null"; then
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17398 $as_echo "$as_me: updating cache $cache_file" >&6;}
17399 if test ! -f "$cache_file" || test -h "$cache_file"; then
17400 cat confcache >"$cache_file"
17401 else
17402 case $cache_file in #(
17403 */* | ?:*)
17404 mv -f confcache "$cache_file"$$ &&
17405 mv -f "$cache_file"$$ "$cache_file" ;; #(
17406 *)
17407 mv -f confcache "$cache_file" ;;
17408 esac
17409 fi
17410 fi
17411 else
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17413 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17414 fi
17415 fi
17416 rm -f confcache
17417
17418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17419 # Let make expand exec_prefix.
17420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17421
17422 DEFS=-DHAVE_CONFIG_H
17423
17424 ac_libobjs=
17425 ac_ltlibobjs=
17426 U=
17427 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17428 # 1. Remove the extension, and $U if already installed.
17429 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17430 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17431 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17432 # will be set to the directory where LIBOBJS objects are built.
17433 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17434 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17435 done
17436 LIBOBJS=$ac_libobjs
17437
17438 LTLIBOBJS=$ac_ltlibobjs
17439
17440
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17442 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17443 if test -n "$am_sleep_pid"; then
17444 # Hide warnings about reused PIDs.
17445 wait $am_sleep_pid 2>/dev/null
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17448 $as_echo "done" >&6; }
17449 if test -n "$EXEEXT"; then
17450 am__EXEEXT_TRUE=
17451 am__EXEEXT_FALSE='#'
17452 else
17453 am__EXEEXT_TRUE='#'
17454 am__EXEEXT_FALSE=
17455 fi
17456
17457 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17458 as_fn_error $? "conditional \"AMDEP\" was never defined.
17459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17460 fi
17461 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17462 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17464 fi
17465 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17466 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17468 fi
17469
17470 : "${CONFIG_STATUS=./config.status}"
17471 ac_write_fail=0
17472 ac_clean_files_save=$ac_clean_files
17473 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17475 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17476 as_write_fail=0
17477 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17478 #! $SHELL
17479 # Generated by $as_me.
17480 # Run this file to recreate the current configuration.
17481 # Compiler output produced by configure, useful for debugging
17482 # configure, is in config.log if it exists.
17483
17484 debug=false
17485 ac_cs_recheck=false
17486 ac_cs_silent=false
17487
17488 SHELL=\${CONFIG_SHELL-$SHELL}
17489 export SHELL
17490 _ASEOF
17491 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17492 ## -------------------- ##
17493 ## M4sh Initialization. ##
17494 ## -------------------- ##
17495
17496 # Be more Bourne compatible
17497 DUALCASE=1; export DUALCASE # for MKS sh
17498 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17499 emulate sh
17500 NULLCMD=:
17501 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17502 # is contrary to our usage. Disable this feature.
17503 alias -g '${1+"$@"}'='"$@"'
17504 setopt NO_GLOB_SUBST
17505 else
17506 case `(set -o) 2>/dev/null` in #(
17507 *posix*) :
17508 set -o posix ;; #(
17509 *) :
17510 ;;
17511 esac
17512 fi
17513
17514
17515 as_nl='
17516 '
17517 export as_nl
17518 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17519 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17520 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17522 # Prefer a ksh shell builtin over an external printf program on Solaris,
17523 # but without wasting forks for bash or zsh.
17524 if test -z "$BASH_VERSION$ZSH_VERSION" \
17525 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17526 as_echo='print -r --'
17527 as_echo_n='print -rn --'
17528 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17529 as_echo='printf %s\n'
17530 as_echo_n='printf %s'
17531 else
17532 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17533 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17534 as_echo_n='/usr/ucb/echo -n'
17535 else
17536 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17537 as_echo_n_body='eval
17538 arg=$1;
17539 case $arg in #(
17540 *"$as_nl"*)
17541 expr "X$arg" : "X\\(.*\\)$as_nl";
17542 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17543 esac;
17544 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17545 '
17546 export as_echo_n_body
17547 as_echo_n='sh -c $as_echo_n_body as_echo'
17548 fi
17549 export as_echo_body
17550 as_echo='sh -c $as_echo_body as_echo'
17551 fi
17552
17553 # The user is always right.
17554 if test "${PATH_SEPARATOR+set}" != set; then
17555 PATH_SEPARATOR=:
17556 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17557 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17558 PATH_SEPARATOR=';'
17559 }
17560 fi
17561
17562
17563 # IFS
17564 # We need space, tab and new line, in precisely that order. Quoting is
17565 # there to prevent editors from complaining about space-tab.
17566 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17567 # splitting by setting IFS to empty value.)
17568 IFS=" "" $as_nl"
17569
17570 # Find who we are. Look in the path if we contain no directory separator.
17571 as_myself=
17572 case $0 in #((
17573 *[\\/]* ) as_myself=$0 ;;
17574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17575 for as_dir in $PATH
17576 do
17577 IFS=$as_save_IFS
17578 test -z "$as_dir" && as_dir=.
17579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17580 done
17581 IFS=$as_save_IFS
17582
17583 ;;
17584 esac
17585 # We did not find ourselves, most probably we were run as `sh COMMAND'
17586 # in which case we are not to be found in the path.
17587 if test "x$as_myself" = x; then
17588 as_myself=$0
17589 fi
17590 if test ! -f "$as_myself"; then
17591 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17592 exit 1
17593 fi
17594
17595 # Unset variables that we do not need and which cause bugs (e.g. in
17596 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17597 # suppresses any "Segmentation fault" message there. '((' could
17598 # trigger a bug in pdksh 5.2.14.
17599 for as_var in BASH_ENV ENV MAIL MAILPATH
17600 do eval test x\${$as_var+set} = xset \
17601 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17602 done
17603 PS1='$ '
17604 PS2='> '
17605 PS4='+ '
17606
17607 # NLS nuisances.
17608 LC_ALL=C
17609 export LC_ALL
17610 LANGUAGE=C
17611 export LANGUAGE
17612
17613 # CDPATH.
17614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17615
17616
17617 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17618 # ----------------------------------------
17619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17621 # script with STATUS, using 1 if that was 0.
17622 as_fn_error ()
17623 {
17624 as_status=$1; test $as_status -eq 0 && as_status=1
17625 if test "$4"; then
17626 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17628 fi
17629 $as_echo "$as_me: error: $2" >&2
17630 as_fn_exit $as_status
17631 } # as_fn_error
17632
17633
17634 # as_fn_set_status STATUS
17635 # -----------------------
17636 # Set $? to STATUS, without forking.
17637 as_fn_set_status ()
17638 {
17639 return $1
17640 } # as_fn_set_status
17641
17642 # as_fn_exit STATUS
17643 # -----------------
17644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17645 as_fn_exit ()
17646 {
17647 set +e
17648 as_fn_set_status $1
17649 exit $1
17650 } # as_fn_exit
17651
17652 # as_fn_unset VAR
17653 # ---------------
17654 # Portably unset VAR.
17655 as_fn_unset ()
17656 {
17657 { eval $1=; unset $1;}
17658 }
17659 as_unset=as_fn_unset
17660 # as_fn_append VAR VALUE
17661 # ----------------------
17662 # Append the text in VALUE to the end of the definition contained in VAR. Take
17663 # advantage of any shell optimizations that allow amortized linear growth over
17664 # repeated appends, instead of the typical quadratic growth present in naive
17665 # implementations.
17666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17667 eval 'as_fn_append ()
17668 {
17669 eval $1+=\$2
17670 }'
17671 else
17672 as_fn_append ()
17673 {
17674 eval $1=\$$1\$2
17675 }
17676 fi # as_fn_append
17677
17678 # as_fn_arith ARG...
17679 # ------------------
17680 # Perform arithmetic evaluation on the ARGs, and store the result in the
17681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17682 # must be portable across $(()) and expr.
17683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17684 eval 'as_fn_arith ()
17685 {
17686 as_val=$(( $* ))
17687 }'
17688 else
17689 as_fn_arith ()
17690 {
17691 as_val=`expr "$@" || test $? -eq 1`
17692 }
17693 fi # as_fn_arith
17694
17695
17696 if expr a : '\(a\)' >/dev/null 2>&1 &&
17697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17698 as_expr=expr
17699 else
17700 as_expr=false
17701 fi
17702
17703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17704 as_basename=basename
17705 else
17706 as_basename=false
17707 fi
17708
17709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17710 as_dirname=dirname
17711 else
17712 as_dirname=false
17713 fi
17714
17715 as_me=`$as_basename -- "$0" ||
17716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17717 X"$0" : 'X\(//\)$' \| \
17718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17719 $as_echo X/"$0" |
17720 sed '/^.*\/\([^/][^/]*\)\/*$/{
17721 s//\1/
17722 q
17723 }
17724 /^X\/\(\/\/\)$/{
17725 s//\1/
17726 q
17727 }
17728 /^X\/\(\/\).*/{
17729 s//\1/
17730 q
17731 }
17732 s/.*/./; q'`
17733
17734 # Avoid depending upon Character Ranges.
17735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17738 as_cr_digits='0123456789'
17739 as_cr_alnum=$as_cr_Letters$as_cr_digits
17740
17741 ECHO_C= ECHO_N= ECHO_T=
17742 case `echo -n x` in #(((((
17743 -n*)
17744 case `echo 'xy\c'` in
17745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17746 xy) ECHO_C='\c';;
17747 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17748 ECHO_T=' ';;
17749 esac;;
17750 *)
17751 ECHO_N='-n';;
17752 esac
17753
17754 rm -f conf$$ conf$$.exe conf$$.file
17755 if test -d conf$$.dir; then
17756 rm -f conf$$.dir/conf$$.file
17757 else
17758 rm -f conf$$.dir
17759 mkdir conf$$.dir 2>/dev/null
17760 fi
17761 if (echo >conf$$.file) 2>/dev/null; then
17762 if ln -s conf$$.file conf$$ 2>/dev/null; then
17763 as_ln_s='ln -s'
17764 # ... but there are two gotchas:
17765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17767 # In both cases, we have to default to `cp -pR'.
17768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17769 as_ln_s='cp -pR'
17770 elif ln conf$$.file conf$$ 2>/dev/null; then
17771 as_ln_s=ln
17772 else
17773 as_ln_s='cp -pR'
17774 fi
17775 else
17776 as_ln_s='cp -pR'
17777 fi
17778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17779 rmdir conf$$.dir 2>/dev/null
17780
17781
17782 # as_fn_mkdir_p
17783 # -------------
17784 # Create "$as_dir" as a directory, including parents if necessary.
17785 as_fn_mkdir_p ()
17786 {
17787
17788 case $as_dir in #(
17789 -*) as_dir=./$as_dir;;
17790 esac
17791 test -d "$as_dir" || eval $as_mkdir_p || {
17792 as_dirs=
17793 while :; do
17794 case $as_dir in #(
17795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17796 *) as_qdir=$as_dir;;
17797 esac
17798 as_dirs="'$as_qdir' $as_dirs"
17799 as_dir=`$as_dirname -- "$as_dir" ||
17800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17801 X"$as_dir" : 'X\(//\)[^/]' \| \
17802 X"$as_dir" : 'X\(//\)$' \| \
17803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17804 $as_echo X"$as_dir" |
17805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17806 s//\1/
17807 q
17808 }
17809 /^X\(\/\/\)[^/].*/{
17810 s//\1/
17811 q
17812 }
17813 /^X\(\/\/\)$/{
17814 s//\1/
17815 q
17816 }
17817 /^X\(\/\).*/{
17818 s//\1/
17819 q
17820 }
17821 s/.*/./; q'`
17822 test -d "$as_dir" && break
17823 done
17824 test -z "$as_dirs" || eval "mkdir $as_dirs"
17825 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17826
17827
17828 } # as_fn_mkdir_p
17829 if mkdir -p . 2>/dev/null; then
17830 as_mkdir_p='mkdir -p "$as_dir"'
17831 else
17832 test -d ./-p && rmdir ./-p
17833 as_mkdir_p=false
17834 fi
17835
17836
17837 # as_fn_executable_p FILE
17838 # -----------------------
17839 # Test if FILE is an executable regular file.
17840 as_fn_executable_p ()
17841 {
17842 test -f "$1" && test -x "$1"
17843 } # as_fn_executable_p
17844 as_test_x='test -x'
17845 as_executable_p=as_fn_executable_p
17846
17847 # Sed expression to map a string onto a valid CPP name.
17848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17849
17850 # Sed expression to map a string onto a valid variable name.
17851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17852
17853
17854 exec 6>&1
17855 ## ----------------------------------- ##
17856 ## Main body of $CONFIG_STATUS script. ##
17857 ## ----------------------------------- ##
17858 _ASEOF
17859 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17860
17861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17862 # Save the log message, to keep $0 and so on meaningful, and to
17863 # report actual input values of CONFIG_FILES etc. instead of their
17864 # values after options handling.
17865 ac_log="
17866 This file was extended by libfolia $as_me 2.4, which was
17867 generated by GNU Autoconf 2.69. Invocation command line was
17868
17869 CONFIG_FILES = $CONFIG_FILES
17870 CONFIG_HEADERS = $CONFIG_HEADERS
17871 CONFIG_LINKS = $CONFIG_LINKS
17872 CONFIG_COMMANDS = $CONFIG_COMMANDS
17873 $ $0 $@
17874
17875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17876 "
17877
17878 _ACEOF
17879
17880 case $ac_config_files in *"
17881 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17882 esac
17883
17884 case $ac_config_headers in *"
17885 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17886 esac
17887
17888
17889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17890 # Files that config.status was made for.
17891 config_files="$ac_config_files"
17892 config_headers="$ac_config_headers"
17893 config_commands="$ac_config_commands"
17894
17895 _ACEOF
17896
17897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17898 ac_cs_usage="\
17899 \`$as_me' instantiates files and other configuration actions
17900 from templates according to the current configuration. Unless the files
17901 and actions are specified as TAGs, all are instantiated by default.
17902
17903 Usage: $0 [OPTION]... [TAG]...
17904
17905 -h, --help print this help, then exit
17906 -V, --version print version number and configuration settings, then exit
17907 --config print configuration, then exit
17908 -q, --quiet, --silent
17909 do not print progress messages
17910 -d, --debug don't remove temporary files
17911 --recheck update $as_me by reconfiguring in the same conditions
17912 --file=FILE[:TEMPLATE]
17913 instantiate the configuration file FILE
17914 --header=FILE[:TEMPLATE]
17915 instantiate the configuration header FILE
17916
17917 Configuration files:
17918 $config_files
17919
17920 Configuration headers:
17921 $config_headers
17922
17923 Configuration commands:
17924 $config_commands
17925
17926 Report bugs to <lamasoftware@science.ru.nl>."
17927
17928 _ACEOF
17929 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17930 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17931 ac_cs_version="\\
17932 libfolia config.status 2.4
17933 configured by $0, generated by GNU Autoconf 2.69,
17934 with options \\"\$ac_cs_config\\"
17935
17936 Copyright (C) 2012 Free Software Foundation, Inc.
17937 This config.status script is free software; the Free Software Foundation
17938 gives unlimited permission to copy, distribute and modify it."
17939
17940 ac_pwd='$ac_pwd'
17941 srcdir='$srcdir'
17942 INSTALL='$INSTALL'
17943 MKDIR_P='$MKDIR_P'
17944 AWK='$AWK'
17945 test -n "\$AWK" || AWK=awk
17946 _ACEOF
17947
17948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17949 # The default lists apply if the user does not specify any file.
17950 ac_need_defaults=:
17951 while test $# != 0
17952 do
17953 case $1 in
17954 --*=?*)
17955 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17956 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17957 ac_shift=:
17958 ;;
17959 --*=)
17960 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17961 ac_optarg=
17962 ac_shift=:
17963 ;;
17964 *)
17965 ac_option=$1
17966 ac_optarg=$2
17967 ac_shift=shift
17968 ;;
17969 esac
17970
17971 case $ac_option in
17972 # Handling of the options.
17973 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17974 ac_cs_recheck=: ;;
17975 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17976 $as_echo "$ac_cs_version"; exit ;;
17977 --config | --confi | --conf | --con | --co | --c )
17978 $as_echo "$ac_cs_config"; exit ;;
17979 --debug | --debu | --deb | --de | --d | -d )
17980 debug=: ;;
17981 --file | --fil | --fi | --f )
17982 $ac_shift
17983 case $ac_optarg in
17984 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17985 '') as_fn_error $? "missing file argument" ;;
17986 esac
17987 as_fn_append CONFIG_FILES " '$ac_optarg'"
17988 ac_need_defaults=false;;
17989 --header | --heade | --head | --hea )
17990 $ac_shift
17991 case $ac_optarg in
17992 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17993 esac
17994 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17995 ac_need_defaults=false;;
17996 --he | --h)
17997 # Conflict between --help and --header
17998 as_fn_error $? "ambiguous option: \`$1'
17999 Try \`$0 --help' for more information.";;
18000 --help | --hel | -h )
18001 $as_echo "$ac_cs_usage"; exit ;;
18002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18004 ac_cs_silent=: ;;
18005
18006 # This is an error.
18007 -*) as_fn_error $? "unrecognized option: \`$1'
18008 Try \`$0 --help' for more information." ;;
18009
18010 *) as_fn_append ac_config_targets " $1"
18011 ac_need_defaults=false ;;
18012
18013 esac
18014 shift
18015 done
18016
18017 ac_configure_extra_args=
18018
18019 if $ac_cs_silent; then
18020 exec 6>/dev/null
18021 ac_configure_extra_args="$ac_configure_extra_args --silent"
18022 fi
18023
18024 _ACEOF
18025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18026 if \$ac_cs_recheck; then
18027 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18028 shift
18029 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18030 CONFIG_SHELL='$SHELL'
18031 export CONFIG_SHELL
18032 exec "\$@"
18033 fi
18034
18035 _ACEOF
18036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18037 exec 5>>config.log
18038 {
18039 echo
18040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18041 ## Running $as_me. ##
18042 _ASBOX
18043 $as_echo "$ac_log"
18044 } >&5
18045
18046 _ACEOF
18047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18048 #
18049 # INIT-COMMANDS
18050 #
18051 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
18052
18053
18054 # The HP-UX ksh and POSIX shell print the target directory to stdout
18055 # if CDPATH is set.
18056 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18057
18058 sed_quote_subst='$sed_quote_subst'
18059 double_quote_subst='$double_quote_subst'
18060 delay_variable_subst='$delay_variable_subst'
18061 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18062 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18063 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18064 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18065 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18066 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18067 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18068 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18069 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18070 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18071 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18072 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18073 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18074 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18075 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18076 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18077 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18078 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18079 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18080 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18081 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18082 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18083 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18084 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18085 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18086 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18087 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18088 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18089 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18090 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18091 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18092 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18093 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18094 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18095 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18096 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18097 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18098 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18099 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18100 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18101 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18102 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18103 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18104 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18105 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18106 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18107 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18108 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18109 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18110 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18111 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18112 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18113 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18114 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18115 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18116 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18117 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18118 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18120 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18121 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18122 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18123 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18124 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18125 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18126 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18127 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18128 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18129 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18130 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18131 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18132 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18133 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18134 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18135 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18136 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18137 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18138 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18139 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18140 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18141 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18142 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18143 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18144 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18145 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18146 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18147 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18148 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18149 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18150 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18151 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18152 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18153 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18154 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18155 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18156 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18157 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18158 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18159 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18160 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18161 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18162 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18163 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18164 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18165 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18166 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18167 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18168 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18169 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18170 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18171 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18172 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18173 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18174 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18175 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18176 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18177 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18178 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18179 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18180 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18181 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18182 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18183 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18184 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18185 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18186 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18187 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18188 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18189 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18190 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18191 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18192 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18193 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18194 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18195 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18196 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18197 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18198 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18199 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18200 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18201 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18202 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18203 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18204 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18205 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18206 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18207 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18208 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18209 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18210 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18211 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18212 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18213 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18214 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18215 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18216 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18217 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18218 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18219 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18220 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18221 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18222 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18223 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18224 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18225 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18226 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18227 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18228 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18229 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18230 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18231 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18232 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18233 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18234 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18235 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18236 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18237 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18238 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18239 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18240 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18241 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18242 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18243 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18244 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18245 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18246 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18247 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18248 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18249 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18250
18251 LTCC='$LTCC'
18252 LTCFLAGS='$LTCFLAGS'
18253 compiler='$compiler_DEFAULT'
18254
18255 # A function that is used when there is no print builtin or printf.
18256 func_fallback_echo ()
18257 {
18258 eval 'cat <<_LTECHO_EOF
18259 \$1
18260 _LTECHO_EOF'
18261 }
18262
18263 # Quote evaled strings.
18264 for var in SHELL \
18265 ECHO \
18266 PATH_SEPARATOR \
18267 SED \
18268 GREP \
18269 EGREP \
18270 FGREP \
18271 LD \
18272 NM \
18273 LN_S \
18274 lt_SP2NL \
18275 lt_NL2SP \
18276 reload_flag \
18277 OBJDUMP \
18278 deplibs_check_method \
18279 file_magic_cmd \
18280 file_magic_glob \
18281 want_nocaseglob \
18282 DLLTOOL \
18283 sharedlib_from_linklib_cmd \
18284 AR \
18285 AR_FLAGS \
18286 archiver_list_spec \
18287 STRIP \
18288 RANLIB \
18289 CC \
18290 CFLAGS \
18291 compiler \
18292 lt_cv_sys_global_symbol_pipe \
18293 lt_cv_sys_global_symbol_to_cdecl \
18294 lt_cv_sys_global_symbol_to_import \
18295 lt_cv_sys_global_symbol_to_c_name_address \
18296 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18297 lt_cv_nm_interface \
18298 nm_file_list_spec \
18299 lt_cv_truncate_bin \
18300 lt_prog_compiler_no_builtin_flag \
18301 lt_prog_compiler_pic \
18302 lt_prog_compiler_wl \
18303 lt_prog_compiler_static \
18304 lt_cv_prog_compiler_c_o \
18305 need_locks \
18306 MANIFEST_TOOL \
18307 DSYMUTIL \
18308 NMEDIT \
18309 LIPO \
18310 OTOOL \
18311 OTOOL64 \
18312 shrext_cmds \
18313 export_dynamic_flag_spec \
18314 whole_archive_flag_spec \
18315 compiler_needs_object \
18316 with_gnu_ld \
18317 allow_undefined_flag \
18318 no_undefined_flag \
18319 hardcode_libdir_flag_spec \
18320 hardcode_libdir_separator \
18321 exclude_expsyms \
18322 include_expsyms \
18323 file_list_spec \
18324 variables_saved_for_relink \
18325 libname_spec \
18326 library_names_spec \
18327 soname_spec \
18328 install_override_mode \
18329 finish_eval \
18330 old_striplib \
18331 striplib \
18332 compiler_lib_search_dirs \
18333 predep_objects \
18334 postdep_objects \
18335 predeps \
18336 postdeps \
18337 compiler_lib_search_path \
18338 LD_CXX \
18339 reload_flag_CXX \
18340 compiler_CXX \
18341 lt_prog_compiler_no_builtin_flag_CXX \
18342 lt_prog_compiler_pic_CXX \
18343 lt_prog_compiler_wl_CXX \
18344 lt_prog_compiler_static_CXX \
18345 lt_cv_prog_compiler_c_o_CXX \
18346 export_dynamic_flag_spec_CXX \
18347 whole_archive_flag_spec_CXX \
18348 compiler_needs_object_CXX \
18349 with_gnu_ld_CXX \
18350 allow_undefined_flag_CXX \
18351 no_undefined_flag_CXX \
18352 hardcode_libdir_flag_spec_CXX \
18353 hardcode_libdir_separator_CXX \
18354 exclude_expsyms_CXX \
18355 include_expsyms_CXX \
18356 file_list_spec_CXX \
18357 compiler_lib_search_dirs_CXX \
18358 predep_objects_CXX \
18359 postdep_objects_CXX \
18360 predeps_CXX \
18361 postdeps_CXX \
18362 compiler_lib_search_path_CXX; do
18363 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18364 *[\\\\\\\`\\"\\\$]*)
18365 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18366 ;;
18367 *)
18368 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18369 ;;
18370 esac
18371 done
18372
18373 # Double-quote double-evaled strings.
18374 for var in reload_cmds \
18375 old_postinstall_cmds \
18376 old_postuninstall_cmds \
18377 old_archive_cmds \
18378 extract_expsyms_cmds \
18379 old_archive_from_new_cmds \
18380 old_archive_from_expsyms_cmds \
18381 archive_cmds \
18382 archive_expsym_cmds \
18383 module_cmds \
18384 module_expsym_cmds \
18385 export_symbols_cmds \
18386 prelink_cmds \
18387 postlink_cmds \
18388 postinstall_cmds \
18389 postuninstall_cmds \
18390 finish_cmds \
18391 sys_lib_search_path_spec \
18392 configure_time_dlsearch_path \
18393 configure_time_lt_sys_library_path \
18394 reload_cmds_CXX \
18395 old_archive_cmds_CXX \
18396 old_archive_from_new_cmds_CXX \
18397 old_archive_from_expsyms_cmds_CXX \
18398 archive_cmds_CXX \
18399 archive_expsym_cmds_CXX \
18400 module_cmds_CXX \
18401 module_expsym_cmds_CXX \
18402 export_symbols_cmds_CXX \
18403 prelink_cmds_CXX \
18404 postlink_cmds_CXX; do
18405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18406 *[\\\\\\\`\\"\\\$]*)
18407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18408 ;;
18409 *)
18410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18411 ;;
18412 esac
18413 done
18414
18415 ac_aux_dir='$ac_aux_dir'
18416
18417 # See if we are running on zsh, and set the options that allow our
18418 # commands through without removal of \ escapes INIT.
18419 if test -n "\${ZSH_VERSION+set}"; then
18420 setopt NO_GLOB_SUBST
18421 fi
18422
18423
18424 PACKAGE='$PACKAGE'
18425 VERSION='$VERSION'
18426 RM='$RM'
18427 ofile='$ofile'
18428
18429
18430
18431
18432
18433
18434 _ACEOF
18435
18436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18437
18438 # Handling of arguments.
18439 for ac_config_target in $ac_config_targets
18440 do
18441 case $ac_config_target in
18442 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18443 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18444 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18445 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18446 "folia.pc") CONFIG_FILES="$CONFIG_FILES folia.pc" ;;
18447 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18448 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18449 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18450 "include/libfolia/Makefile") CONFIG_FILES="$CONFIG_FILES include/libfolia/Makefile" ;;
18451
18452 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18453 esac
18454 done
18455
18456
18457 # If the user did not use the arguments to specify the items to instantiate,
18458 # then the envvar interface is used. Set only those that are not.
18459 # We use the long form for the default assignment because of an extremely
18460 # bizarre bug on SunOS 4.1.3.
18461 if $ac_need_defaults; then
18462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18465 fi
18466
18467 # Have a temporary directory for convenience. Make it in the build tree
18468 # simply because there is no reason against having it here, and in addition,
18469 # creating and moving files from /tmp can sometimes cause problems.
18470 # Hook for its removal unless debugging.
18471 # Note that there is a small window in which the directory will not be cleaned:
18472 # after its creation but before its name has been assigned to `$tmp'.
18473 $debug ||
18474 {
18475 tmp= ac_tmp=
18476 trap 'exit_status=$?
18477 : "${ac_tmp:=$tmp}"
18478 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18479 ' 0
18480 trap 'as_fn_exit 1' 1 2 13 15
18481 }
18482 # Create a (secure) tmp directory for tmp files.
18483
18484 {
18485 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18486 test -d "$tmp"
18487 } ||
18488 {
18489 tmp=./conf$$-$RANDOM
18490 (umask 077 && mkdir "$tmp")
18491 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18492 ac_tmp=$tmp
18493
18494 # Set up the scripts for CONFIG_FILES section.
18495 # No need to generate them if there are no CONFIG_FILES.
18496 # This happens for instance with `./config.status config.h'.
18497 if test -n "$CONFIG_FILES"; then
18498
18499
18500 ac_cr=`echo X | tr X '\015'`
18501 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18502 # But we know of no other shell where ac_cr would be empty at this
18503 # point, so we can use a bashism as a fallback.
18504 if test "x$ac_cr" = x; then
18505 eval ac_cr=\$\'\\r\'
18506 fi
18507 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18508 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18509 ac_cs_awk_cr='\\r'
18510 else
18511 ac_cs_awk_cr=$ac_cr
18512 fi
18513
18514 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18515 _ACEOF
18516
18517
18518 {
18519 echo "cat >conf$$subs.awk <<_ACEOF" &&
18520 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18521 echo "_ACEOF"
18522 } >conf$$subs.sh ||
18523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18524 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18525 ac_delim='%!_!# '
18526 for ac_last_try in false false false false false :; do
18527 . ./conf$$subs.sh ||
18528 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18529
18530 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18531 if test $ac_delim_n = $ac_delim_num; then
18532 break
18533 elif $ac_last_try; then
18534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18535 else
18536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18537 fi
18538 done
18539 rm -f conf$$subs.sh
18540
18541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18542 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18543 _ACEOF
18544 sed -n '
18545 h
18546 s/^/S["/; s/!.*/"]=/
18547 p
18548 g
18549 s/^[^!]*!//
18550 :repl
18551 t repl
18552 s/'"$ac_delim"'$//
18553 t delim
18554 :nl
18555 h
18556 s/\(.\{148\}\)..*/\1/
18557 t more1
18558 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18559 p
18560 n
18561 b repl
18562 :more1
18563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18564 p
18565 g
18566 s/.\{148\}//
18567 t nl
18568 :delim
18569 h
18570 s/\(.\{148\}\)..*/\1/
18571 t more2
18572 s/["\\]/\\&/g; s/^/"/; s/$/"/
18573 p
18574 b
18575 :more2
18576 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18577 p
18578 g
18579 s/.\{148\}//
18580 t delim
18581 ' <conf$$subs.awk | sed '
18582 /^[^""]/{
18583 N
18584 s/\n//
18585 }
18586 ' >>$CONFIG_STATUS || ac_write_fail=1
18587 rm -f conf$$subs.awk
18588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18589 _ACAWK
18590 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18591 for (key in S) S_is_set[key] = 1
18592 FS = ""
18593
18594 }
18595 {
18596 line = $ 0
18597 nfields = split(line, field, "@")
18598 substed = 0
18599 len = length(field[1])
18600 for (i = 2; i < nfields; i++) {
18601 key = field[i]
18602 keylen = length(key)
18603 if (S_is_set[key]) {
18604 value = S[key]
18605 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18606 len += length(value) + length(field[++i])
18607 substed = 1
18608 } else
18609 len += 1 + keylen
18610 }
18611
18612 print line
18613 }
18614
18615 _ACAWK
18616 _ACEOF
18617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18618 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18619 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18620 else
18621 cat
18622 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18623 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18624 _ACEOF
18625
18626 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18627 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18628 # trailing colons and then remove the whole line if VPATH becomes empty
18629 # (actually we leave an empty line to preserve line numbers).
18630 if test "x$srcdir" = x.; then
18631 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18632 h
18633 s///
18634 s/^/:/
18635 s/[ ]*$/:/
18636 s/:\$(srcdir):/:/g
18637 s/:\${srcdir}:/:/g
18638 s/:@srcdir@:/:/g
18639 s/^:*//
18640 s/:*$//
18641 x
18642 s/\(=[ ]*\).*/\1/
18643 G
18644 s/\n//
18645 s/^[^=]*=[ ]*$//
18646 }'
18647 fi
18648
18649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18650 fi # test -n "$CONFIG_FILES"
18651
18652 # Set up the scripts for CONFIG_HEADERS section.
18653 # No need to generate them if there are no CONFIG_HEADERS.
18654 # This happens for instance with `./config.status Makefile'.
18655 if test -n "$CONFIG_HEADERS"; then
18656 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18657 BEGIN {
18658 _ACEOF
18659
18660 # Transform confdefs.h into an awk script `defines.awk', embedded as
18661 # here-document in config.status, that substitutes the proper values into
18662 # config.h.in to produce config.h.
18663
18664 # Create a delimiter string that does not exist in confdefs.h, to ease
18665 # handling of long lines.
18666 ac_delim='%!_!# '
18667 for ac_last_try in false false :; do
18668 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18669 if test -z "$ac_tt"; then
18670 break
18671 elif $ac_last_try; then
18672 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18673 else
18674 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18675 fi
18676 done
18677
18678 # For the awk script, D is an array of macro values keyed by name,
18679 # likewise P contains macro parameters if any. Preserve backslash
18680 # newline sequences.
18681
18682 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18683 sed -n '
18684 s/.\{148\}/&'"$ac_delim"'/g
18685 t rset
18686 :rset
18687 s/^[ ]*#[ ]*define[ ][ ]*/ /
18688 t def
18689 d
18690 :def
18691 s/\\$//
18692 t bsnl
18693 s/["\\]/\\&/g
18694 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18695 D["\1"]=" \3"/p
18696 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18697 d
18698 :bsnl
18699 s/["\\]/\\&/g
18700 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18701 D["\1"]=" \3\\\\\\n"\\/p
18702 t cont
18703 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18704 t cont
18705 d
18706 :cont
18707 n
18708 s/.\{148\}/&'"$ac_delim"'/g
18709 t clear
18710 :clear
18711 s/\\$//
18712 t bsnlc
18713 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18714 d
18715 :bsnlc
18716 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18717 b cont
18718 ' <confdefs.h | sed '
18719 s/'"$ac_delim"'/"\\\
18720 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18721
18722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18723 for (key in D) D_is_set[key] = 1
18724 FS = ""
18725 }
18726 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18727 line = \$ 0
18728 split(line, arg, " ")
18729 if (arg[1] == "#") {
18730 defundef = arg[2]
18731 mac1 = arg[3]
18732 } else {
18733 defundef = substr(arg[1], 2)
18734 mac1 = arg[2]
18735 }
18736 split(mac1, mac2, "(") #)
18737 macro = mac2[1]
18738 prefix = substr(line, 1, index(line, defundef) - 1)
18739 if (D_is_set[macro]) {
18740 # Preserve the white space surrounding the "#".
18741 print prefix "define", macro P[macro] D[macro]
18742 next
18743 } else {
18744 # Replace #undef with comments. This is necessary, for example,
18745 # in the case of _POSIX_SOURCE, which is predefined and required
18746 # on some systems where configure will not decide to define it.
18747 if (defundef == "undef") {
18748 print "/*", prefix defundef, macro, "*/"
18749 next
18750 }
18751 }
18752 }
18753 { print }
18754 _ACAWK
18755 _ACEOF
18756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18757 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18758 fi # test -n "$CONFIG_HEADERS"
18759
18760
18761 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18762 shift
18763 for ac_tag
18764 do
18765 case $ac_tag in
18766 :[FHLC]) ac_mode=$ac_tag; continue;;
18767 esac
18768 case $ac_mode$ac_tag in
18769 :[FHL]*:*);;
18770 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18771 :[FH]-) ac_tag=-:-;;
18772 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18773 esac
18774 ac_save_IFS=$IFS
18775 IFS=:
18776 set x $ac_tag
18777 IFS=$ac_save_IFS
18778 shift
18779 ac_file=$1
18780 shift
18781
18782 case $ac_mode in
18783 :L) ac_source=$1;;
18784 :[FH])
18785 ac_file_inputs=
18786 for ac_f
18787 do
18788 case $ac_f in
18789 -) ac_f="$ac_tmp/stdin";;
18790 *) # Look for the file first in the build tree, then in the source tree
18791 # (if the path is not absolute). The absolute path cannot be DOS-style,
18792 # because $ac_f cannot contain `:'.
18793 test -f "$ac_f" ||
18794 case $ac_f in
18795 [\\/$]*) false;;
18796 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18797 esac ||
18798 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18799 esac
18800 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18801 as_fn_append ac_file_inputs " '$ac_f'"
18802 done
18803
18804 # Let's still pretend it is `configure' which instantiates (i.e., don't
18805 # use $as_me), people would be surprised to read:
18806 # /* config.h. Generated by config.status. */
18807 configure_input='Generated from '`
18808 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18809 `' by configure.'
18810 if test x"$ac_file" != x-; then
18811 configure_input="$ac_file. $configure_input"
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18813 $as_echo "$as_me: creating $ac_file" >&6;}
18814 fi
18815 # Neutralize special characters interpreted by sed in replacement strings.
18816 case $configure_input in #(
18817 *\&* | *\|* | *\\* )
18818 ac_sed_conf_input=`$as_echo "$configure_input" |
18819 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18820 *) ac_sed_conf_input=$configure_input;;
18821 esac
18822
18823 case $ac_tag in
18824 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18826 esac
18827 ;;
18828 esac
18829
18830 ac_dir=`$as_dirname -- "$ac_file" ||
18831 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18832 X"$ac_file" : 'X\(//\)[^/]' \| \
18833 X"$ac_file" : 'X\(//\)$' \| \
18834 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18835 $as_echo X"$ac_file" |
18836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18837 s//\1/
18838 q
18839 }
18840 /^X\(\/\/\)[^/].*/{
18841 s//\1/
18842 q
18843 }
18844 /^X\(\/\/\)$/{
18845 s//\1/
18846 q
18847 }
18848 /^X\(\/\).*/{
18849 s//\1/
18850 q
18851 }
18852 s/.*/./; q'`
18853 as_dir="$ac_dir"; as_fn_mkdir_p
18854 ac_builddir=.
18855
18856 case "$ac_dir" in
18857 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18858 *)
18859 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18860 # A ".." for each directory in $ac_dir_suffix.
18861 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18862 case $ac_top_builddir_sub in
18863 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18864 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18865 esac ;;
18866 esac
18867 ac_abs_top_builddir=$ac_pwd
18868 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18869 # for backward compatibility:
18870 ac_top_builddir=$ac_top_build_prefix
18871
18872 case $srcdir in
18873 .) # We are building in place.
18874 ac_srcdir=.
18875 ac_top_srcdir=$ac_top_builddir_sub
18876 ac_abs_top_srcdir=$ac_pwd ;;
18877 [\\/]* | ?:[\\/]* ) # Absolute name.
18878 ac_srcdir=$srcdir$ac_dir_suffix;
18879 ac_top_srcdir=$srcdir
18880 ac_abs_top_srcdir=$srcdir ;;
18881 *) # Relative name.
18882 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18883 ac_top_srcdir=$ac_top_build_prefix$srcdir
18884 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18885 esac
18886 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18887
18888
18889 case $ac_mode in
18890 :F)
18891 #
18892 # CONFIG_FILE
18893 #
18894
18895 case $INSTALL in
18896 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18897 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18898 esac
18899 ac_MKDIR_P=$MKDIR_P
18900 case $MKDIR_P in
18901 [\\/$]* | ?:[\\/]* ) ;;
18902 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18903 esac
18904 _ACEOF
18905
18906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18907 # If the template does not know about datarootdir, expand it.
18908 # FIXME: This hack should be removed a few years after 2.60.
18909 ac_datarootdir_hack=; ac_datarootdir_seen=
18910 ac_sed_dataroot='
18911 /datarootdir/ {
18912 p
18913 q
18914 }
18915 /@datadir@/p
18916 /@docdir@/p
18917 /@infodir@/p
18918 /@localedir@/p
18919 /@mandir@/p'
18920 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18921 *datarootdir*) ac_datarootdir_seen=yes;;
18922 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18924 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18925 _ACEOF
18926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18927 ac_datarootdir_hack='
18928 s&@datadir@&$datadir&g
18929 s&@docdir@&$docdir&g
18930 s&@infodir@&$infodir&g
18931 s&@localedir@&$localedir&g
18932 s&@mandir@&$mandir&g
18933 s&\\\${datarootdir}&$datarootdir&g' ;;
18934 esac
18935 _ACEOF
18936
18937 # Neutralize VPATH when `$srcdir' = `.'.
18938 # Shell code in configure.ac might set extrasub.
18939 # FIXME: do we really want to maintain this feature?
18940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18941 ac_sed_extra="$ac_vpsub
18942 $extrasub
18943 _ACEOF
18944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18945 :t
18946 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18947 s|@configure_input@|$ac_sed_conf_input|;t t
18948 s&@top_builddir@&$ac_top_builddir_sub&;t t
18949 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18950 s&@srcdir@&$ac_srcdir&;t t
18951 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18952 s&@top_srcdir@&$ac_top_srcdir&;t t
18953 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18954 s&@builddir@&$ac_builddir&;t t
18955 s&@abs_builddir@&$ac_abs_builddir&;t t
18956 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18957 s&@INSTALL@&$ac_INSTALL&;t t
18958 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18959 $ac_datarootdir_hack
18960 "
18961 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18962 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18963
18964 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18965 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18966 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18967 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18969 which seems to be undefined. Please make sure it is defined" >&5
18970 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18971 which seems to be undefined. Please make sure it is defined" >&2;}
18972
18973 rm -f "$ac_tmp/stdin"
18974 case $ac_file in
18975 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18976 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18977 esac \
18978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18979 ;;
18980 :H)
18981 #
18982 # CONFIG_HEADER
18983 #
18984 if test x"$ac_file" != x-; then
18985 {
18986 $as_echo "/* $configure_input */" \
18987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18988 } >"$ac_tmp/config.h" \
18989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18990 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18992 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18993 else
18994 rm -f "$ac_file"
18995 mv "$ac_tmp/config.h" "$ac_file" \
18996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18997 fi
18998 else
18999 $as_echo "/* $configure_input */" \
19000 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19001 || as_fn_error $? "could not create -" "$LINENO" 5
19002 fi
19003 # Compute "$ac_file"'s index in $config_headers.
19004 _am_arg="$ac_file"
19005 _am_stamp_count=1
19006 for _am_header in $config_headers :; do
19007 case $_am_header in
19008 $_am_arg | $_am_arg:* )
19009 break ;;
19010 * )
19011 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19012 esac
19013 done
19014 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19015 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19016 X"$_am_arg" : 'X\(//\)[^/]' \| \
19017 X"$_am_arg" : 'X\(//\)$' \| \
19018 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19019 $as_echo X"$_am_arg" |
19020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19021 s//\1/
19022 q
19023 }
19024 /^X\(\/\/\)[^/].*/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\/\)$/{
19029 s//\1/
19030 q
19031 }
19032 /^X\(\/\).*/{
19033 s//\1/
19034 q
19035 }
19036 s/.*/./; q'`/stamp-h$_am_stamp_count
19037 ;;
19038
19039 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19040 $as_echo "$as_me: executing $ac_file commands" >&6;}
19041 ;;
19042 esac
19043
19044
19045 case $ac_file$ac_mode in
19046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19047 # Older Autoconf quotes --file arguments for eval, but not when files
19048 # are listed without --file. Let's play safe and only enable the eval
19049 # if we detect the quoting.
19050 # TODO: see whether this extra hack can be removed once we start
19051 # requiring Autoconf 2.70 or later.
19052 case $CONFIG_FILES in #(
19053 *\'*) :
19054 eval set x "$CONFIG_FILES" ;; #(
19055 *) :
19056 set x $CONFIG_FILES ;; #(
19057 *) :
19058 ;;
19059 esac
19060 shift
19061 # Used to flag and report bootstrapping failures.
19062 am_rc=0
19063 for am_mf
19064 do
19065 # Strip MF so we end up with the name of the file.
19066 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
19067 # Check whether this is an Automake generated Makefile which includes
19068 # dependency-tracking related rules and includes.
19069 # Grep'ing the whole file directly is not great: AIX grep has a line
19070 # limit of 2048, but all sed's we know have understand at least 4000.
19071 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
19072 || continue
19073 am_dirpart=`$as_dirname -- "$am_mf" ||
19074 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19075 X"$am_mf" : 'X\(//\)[^/]' \| \
19076 X"$am_mf" : 'X\(//\)$' \| \
19077 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19078 $as_echo X"$am_mf" |
19079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19080 s//\1/
19081 q
19082 }
19083 /^X\(\/\/\)[^/].*/{
19084 s//\1/
19085 q
19086 }
19087 /^X\(\/\/\)$/{
19088 s//\1/
19089 q
19090 }
19091 /^X\(\/\).*/{
19092 s//\1/
19093 q
19094 }
19095 s/.*/./; q'`
19096 am_filepart=`$as_basename -- "$am_mf" ||
19097 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
19098 X"$am_mf" : 'X\(//\)$' \| \
19099 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
19100 $as_echo X/"$am_mf" |
19101 sed '/^.*\/\([^/][^/]*\)\/*$/{
19102 s//\1/
19103 q
19104 }
19105 /^X\/\(\/\/\)$/{
19106 s//\1/
19107 q
19108 }
19109 /^X\/\(\/\).*/{
19110 s//\1/
19111 q
19112 }
19113 s/.*/./; q'`
19114 { echo "$as_me:$LINENO: cd "$am_dirpart" \
19115 && sed -e '/# am--include-marker/d' "$am_filepart" \
19116 | $MAKE -f - am--depfiles" >&5
19117 (cd "$am_dirpart" \
19118 && sed -e '/# am--include-marker/d' "$am_filepart" \
19119 | $MAKE -f - am--depfiles) >&5 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); } || am_rc=$?
19123 done
19124 if test $am_rc -ne 0; then
19125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19127 as_fn_error $? "Something went wrong bootstrapping makefile fragments
19128 for automatic dependency tracking. Try re-running configure with the
19129 '--disable-dependency-tracking' option to at least be able to build
19130 the package (albeit without support for automatic dependency tracking).
19131 See \`config.log' for more details" "$LINENO" 5; }
19132 fi
19133 { am_dirpart=; unset am_dirpart;}
19134 { am_filepart=; unset am_filepart;}
19135 { am_mf=; unset am_mf;}
19136 { am_rc=; unset am_rc;}
19137 rm -f conftest-deps.mk
19138 }
19139 ;;
19140 "libtool":C)
19141
19142 # See if we are running on zsh, and set the options that allow our
19143 # commands through without removal of \ escapes.
19144 if test -n "${ZSH_VERSION+set}"; then
19145 setopt NO_GLOB_SUBST
19146 fi
19147
19148 cfgfile=${ofile}T
19149 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19150 $RM "$cfgfile"
19151
19152 cat <<_LT_EOF >> "$cfgfile"
19153 #! $SHELL
19154 # Generated automatically by $as_me ($PACKAGE) $VERSION
19155 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19156 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19157
19158 # Provide generalized library-building support services.
19159 # Written by Gordon Matzigkeit, 1996
19160
19161 # Copyright (C) 2014 Free Software Foundation, Inc.
19162 # This is free software; see the source for copying conditions. There is NO
19163 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19164
19165 # GNU Libtool is free software; you can redistribute it and/or modify
19166 # it under the terms of the GNU General Public License as published by
19167 # the Free Software Foundation; either version 2 of of the License, or
19168 # (at your option) any later version.
19169 #
19170 # As a special exception to the GNU General Public License, if you
19171 # distribute this file as part of a program or library that is built
19172 # using GNU Libtool, you may include this file under the same
19173 # distribution terms that you use for the rest of that program.
19174 #
19175 # GNU Libtool is distributed in the hope that it will be useful, but
19176 # WITHOUT ANY WARRANTY; without even the implied warranty of
19177 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19178 # GNU General Public License for more details.
19179 #
19180 # You should have received a copy of the GNU General Public License
19181 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19182
19183
19184 # The names of the tagged configurations supported by this script.
19185 available_tags='CXX '
19186
19187 # Configured defaults for sys_lib_dlsearch_path munging.
19188 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19189
19190 # ### BEGIN LIBTOOL CONFIG
19191
19192 # Which release of libtool.m4 was used?
19193 macro_version=$macro_version
19194 macro_revision=$macro_revision
19195
19196 # Whether or not to build shared libraries.
19197 build_libtool_libs=$enable_shared
19198
19199 # Whether or not to build static libraries.
19200 build_old_libs=$enable_static
19201
19202 # What type of objects to build.
19203 pic_mode=$pic_mode
19204
19205 # Whether or not to optimize for fast installation.
19206 fast_install=$enable_fast_install
19207
19208 # Shared archive member basename,for filename based shared library versioning on AIX.
19209 shared_archive_member_spec=$shared_archive_member_spec
19210
19211 # Shell to use when invoking shell scripts.
19212 SHELL=$lt_SHELL
19213
19214 # An echo program that protects backslashes.
19215 ECHO=$lt_ECHO
19216
19217 # The PATH separator for the build system.
19218 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19219
19220 # The host system.
19221 host_alias=$host_alias
19222 host=$host
19223 host_os=$host_os
19224
19225 # The build system.
19226 build_alias=$build_alias
19227 build=$build
19228 build_os=$build_os
19229
19230 # A sed program that does not truncate output.
19231 SED=$lt_SED
19232
19233 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19234 Xsed="\$SED -e 1s/^X//"
19235
19236 # A grep program that handles long lines.
19237 GREP=$lt_GREP
19238
19239 # An ERE matcher.
19240 EGREP=$lt_EGREP
19241
19242 # A literal string matcher.
19243 FGREP=$lt_FGREP
19244
19245 # A BSD- or MS-compatible name lister.
19246 NM=$lt_NM
19247
19248 # Whether we need soft or hard links.
19249 LN_S=$lt_LN_S
19250
19251 # What is the maximum length of a command?
19252 max_cmd_len=$max_cmd_len
19253
19254 # Object file suffix (normally "o").
19255 objext=$ac_objext
19256
19257 # Executable file suffix (normally "").
19258 exeext=$exeext
19259
19260 # whether the shell understands "unset".
19261 lt_unset=$lt_unset
19262
19263 # turn spaces into newlines.
19264 SP2NL=$lt_lt_SP2NL
19265
19266 # turn newlines into spaces.
19267 NL2SP=$lt_lt_NL2SP
19268
19269 # convert \$build file names to \$host format.
19270 to_host_file_cmd=$lt_cv_to_host_file_cmd
19271
19272 # convert \$build files to toolchain format.
19273 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19274
19275 # An object symbol dumper.
19276 OBJDUMP=$lt_OBJDUMP
19277
19278 # Method to check whether dependent libraries are shared objects.
19279 deplibs_check_method=$lt_deplibs_check_method
19280
19281 # Command to use when deplibs_check_method = "file_magic".
19282 file_magic_cmd=$lt_file_magic_cmd
19283
19284 # How to find potential files when deplibs_check_method = "file_magic".
19285 file_magic_glob=$lt_file_magic_glob
19286
19287 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19288 want_nocaseglob=$lt_want_nocaseglob
19289
19290 # DLL creation program.
19291 DLLTOOL=$lt_DLLTOOL
19292
19293 # Command to associate shared and link libraries.
19294 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19295
19296 # The archiver.
19297 AR=$lt_AR
19298
19299 # Flags to create an archive.
19300 AR_FLAGS=$lt_AR_FLAGS
19301
19302 # How to feed a file listing to the archiver.
19303 archiver_list_spec=$lt_archiver_list_spec
19304
19305 # A symbol stripping program.
19306 STRIP=$lt_STRIP
19307
19308 # Commands used to install an old-style archive.
19309 RANLIB=$lt_RANLIB
19310 old_postinstall_cmds=$lt_old_postinstall_cmds
19311 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19312
19313 # Whether to use a lock for old archive extraction.
19314 lock_old_archive_extraction=$lock_old_archive_extraction
19315
19316 # A C compiler.
19317 LTCC=$lt_CC
19318
19319 # LTCC compiler flags.
19320 LTCFLAGS=$lt_CFLAGS
19321
19322 # Take the output of nm and produce a listing of raw symbols and C names.
19323 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19324
19325 # Transform the output of nm in a proper C declaration.
19326 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19327
19328 # Transform the output of nm into a list of symbols to manually relocate.
19329 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19330
19331 # Transform the output of nm in a C name address pair.
19332 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19333
19334 # Transform the output of nm in a C name address pair when lib prefix is needed.
19335 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19336
19337 # The name lister interface.
19338 nm_interface=$lt_lt_cv_nm_interface
19339
19340 # Specify filename containing input files for \$NM.
19341 nm_file_list_spec=$lt_nm_file_list_spec
19342
19343 # The root where to search for dependent libraries,and where our libraries should be installed.
19344 lt_sysroot=$lt_sysroot
19345
19346 # Command to truncate a binary pipe.
19347 lt_truncate_bin=$lt_lt_cv_truncate_bin
19348
19349 # The name of the directory that contains temporary libtool files.
19350 objdir=$objdir
19351
19352 # Used to examine libraries when file_magic_cmd begins with "file".
19353 MAGIC_CMD=$MAGIC_CMD
19354
19355 # Must we lock files when doing compilation?
19356 need_locks=$lt_need_locks
19357
19358 # Manifest tool.
19359 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19360
19361 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19362 DSYMUTIL=$lt_DSYMUTIL
19363
19364 # Tool to change global to local symbols on Mac OS X.
19365 NMEDIT=$lt_NMEDIT
19366
19367 # Tool to manipulate fat objects and archives on Mac OS X.
19368 LIPO=$lt_LIPO
19369
19370 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19371 OTOOL=$lt_OTOOL
19372
19373 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19374 OTOOL64=$lt_OTOOL64
19375
19376 # Old archive suffix (normally "a").
19377 libext=$libext
19378
19379 # Shared library suffix (normally ".so").
19380 shrext_cmds=$lt_shrext_cmds
19381
19382 # The commands to extract the exported symbol list from a shared archive.
19383 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19384
19385 # Variables whose values should be saved in libtool wrapper scripts and
19386 # restored at link time.
19387 variables_saved_for_relink=$lt_variables_saved_for_relink
19388
19389 # Do we need the "lib" prefix for modules?
19390 need_lib_prefix=$need_lib_prefix
19391
19392 # Do we need a version for libraries?
19393 need_version=$need_version
19394
19395 # Library versioning type.
19396 version_type=$version_type
19397
19398 # Shared library runtime path variable.
19399 runpath_var=$runpath_var
19400
19401 # Shared library path variable.
19402 shlibpath_var=$shlibpath_var
19403
19404 # Is shlibpath searched before the hard-coded library search path?
19405 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19406
19407 # Format of library name prefix.
19408 libname_spec=$lt_libname_spec
19409
19410 # List of archive names. First name is the real one, the rest are links.
19411 # The last name is the one that the linker finds with -lNAME
19412 library_names_spec=$lt_library_names_spec
19413
19414 # The coded name of the library, if different from the real name.
19415 soname_spec=$lt_soname_spec
19416
19417 # Permission mode override for installation of shared libraries.
19418 install_override_mode=$lt_install_override_mode
19419
19420 # Command to use after installation of a shared archive.
19421 postinstall_cmds=$lt_postinstall_cmds
19422
19423 # Command to use after uninstallation of a shared archive.
19424 postuninstall_cmds=$lt_postuninstall_cmds
19425
19426 # Commands used to finish a libtool library installation in a directory.
19427 finish_cmds=$lt_finish_cmds
19428
19429 # As "finish_cmds", except a single script fragment to be evaled but
19430 # not shown.
19431 finish_eval=$lt_finish_eval
19432
19433 # Whether we should hardcode library paths into libraries.
19434 hardcode_into_libs=$hardcode_into_libs
19435
19436 # Compile-time system search path for libraries.
19437 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19438
19439 # Detected run-time system search path for libraries.
19440 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19441
19442 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19443 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19444
19445 # Whether dlopen is supported.
19446 dlopen_support=$enable_dlopen
19447
19448 # Whether dlopen of programs is supported.
19449 dlopen_self=$enable_dlopen_self
19450
19451 # Whether dlopen of statically linked programs is supported.
19452 dlopen_self_static=$enable_dlopen_self_static
19453
19454 # Commands to strip libraries.
19455 old_striplib=$lt_old_striplib
19456 striplib=$lt_striplib
19457
19458
19459 # The linker used to build libraries.
19460 LD=$lt_LD
19461
19462 # How to create reloadable object files.
19463 reload_flag=$lt_reload_flag
19464 reload_cmds=$lt_reload_cmds
19465
19466 # Commands used to build an old-style archive.
19467 old_archive_cmds=$lt_old_archive_cmds
19468
19469 # A language specific compiler.
19470 CC=$lt_compiler
19471
19472 # Is the compiler the GNU compiler?
19473 with_gcc=$GCC
19474
19475 # Compiler flag to turn off builtin functions.
19476 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19477
19478 # Additional compiler flags for building library objects.
19479 pic_flag=$lt_lt_prog_compiler_pic
19480
19481 # How to pass a linker flag through the compiler.
19482 wl=$lt_lt_prog_compiler_wl
19483
19484 # Compiler flag to prevent dynamic linking.
19485 link_static_flag=$lt_lt_prog_compiler_static
19486
19487 # Does compiler simultaneously support -c and -o options?
19488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19489
19490 # Whether or not to add -lc for building shared libraries.
19491 build_libtool_need_lc=$archive_cmds_need_lc
19492
19493 # Whether or not to disallow shared libs when runtime libs are static.
19494 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19495
19496 # Compiler flag to allow reflexive dlopens.
19497 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19498
19499 # Compiler flag to generate shared objects directly from archives.
19500 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19501
19502 # Whether the compiler copes with passing no objects directly.
19503 compiler_needs_object=$lt_compiler_needs_object
19504
19505 # Create an old-style archive from a shared archive.
19506 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19507
19508 # Create a temporary old-style archive to link instead of a shared archive.
19509 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19510
19511 # Commands used to build a shared archive.
19512 archive_cmds=$lt_archive_cmds
19513 archive_expsym_cmds=$lt_archive_expsym_cmds
19514
19515 # Commands used to build a loadable module if different from building
19516 # a shared archive.
19517 module_cmds=$lt_module_cmds
19518 module_expsym_cmds=$lt_module_expsym_cmds
19519
19520 # Whether we are building with GNU ld or not.
19521 with_gnu_ld=$lt_with_gnu_ld
19522
19523 # Flag that allows shared libraries with undefined symbols to be built.
19524 allow_undefined_flag=$lt_allow_undefined_flag
19525
19526 # Flag that enforces no undefined symbols.
19527 no_undefined_flag=$lt_no_undefined_flag
19528
19529 # Flag to hardcode \$libdir into a binary during linking.
19530 # This must work even if \$libdir does not exist
19531 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19532
19533 # Whether we need a single "-rpath" flag with a separated argument.
19534 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19535
19536 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19537 # DIR into the resulting binary.
19538 hardcode_direct=$hardcode_direct
19539
19540 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19541 # DIR into the resulting binary and the resulting library dependency is
19542 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19543 # library is relocated.
19544 hardcode_direct_absolute=$hardcode_direct_absolute
19545
19546 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19547 # into the resulting binary.
19548 hardcode_minus_L=$hardcode_minus_L
19549
19550 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19551 # into the resulting binary.
19552 hardcode_shlibpath_var=$hardcode_shlibpath_var
19553
19554 # Set to "yes" if building a shared library automatically hardcodes DIR
19555 # into the library and all subsequent libraries and executables linked
19556 # against it.
19557 hardcode_automatic=$hardcode_automatic
19558
19559 # Set to yes if linker adds runtime paths of dependent libraries
19560 # to runtime path list.
19561 inherit_rpath=$inherit_rpath
19562
19563 # Whether libtool must link a program against all its dependency libraries.
19564 link_all_deplibs=$link_all_deplibs
19565
19566 # Set to "yes" if exported symbols are required.
19567 always_export_symbols=$always_export_symbols
19568
19569 # The commands to list exported symbols.
19570 export_symbols_cmds=$lt_export_symbols_cmds
19571
19572 # Symbols that should not be listed in the preloaded symbols.
19573 exclude_expsyms=$lt_exclude_expsyms
19574
19575 # Symbols that must always be exported.
19576 include_expsyms=$lt_include_expsyms
19577
19578 # Commands necessary for linking programs (against libraries) with templates.
19579 prelink_cmds=$lt_prelink_cmds
19580
19581 # Commands necessary for finishing linking programs.
19582 postlink_cmds=$lt_postlink_cmds
19583
19584 # Specify filename containing input files.
19585 file_list_spec=$lt_file_list_spec
19586
19587 # How to hardcode a shared library path into an executable.
19588 hardcode_action=$hardcode_action
19589
19590 # The directories searched by this compiler when creating a shared library.
19591 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19592
19593 # Dependencies to place before and after the objects being linked to
19594 # create a shared library.
19595 predep_objects=$lt_predep_objects
19596 postdep_objects=$lt_postdep_objects
19597 predeps=$lt_predeps
19598 postdeps=$lt_postdeps
19599
19600 # The library search path used internally by the compiler when linking
19601 # a shared library.
19602 compiler_lib_search_path=$lt_compiler_lib_search_path
19603
19604 # ### END LIBTOOL CONFIG
19605
19606 _LT_EOF
19607
19608 cat <<'_LT_EOF' >> "$cfgfile"
19609
19610 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19611
19612 # func_munge_path_list VARIABLE PATH
19613 # -----------------------------------
19614 # VARIABLE is name of variable containing _space_ separated list of
19615 # directories to be munged by the contents of PATH, which is string
19616 # having a format:
19617 # "DIR[:DIR]:"
19618 # string "DIR[ DIR]" will be prepended to VARIABLE
19619 # ":DIR[:DIR]"
19620 # string "DIR[ DIR]" will be appended to VARIABLE
19621 # "DIRP[:DIRP]::[DIRA:]DIRA"
19622 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19623 # "DIRA[ DIRA]" will be appended to VARIABLE
19624 # "DIR[:DIR]"
19625 # VARIABLE will be replaced by "DIR[ DIR]"
19626 func_munge_path_list ()
19627 {
19628 case x$2 in
19629 x)
19630 ;;
19631 *:)
19632 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19633 ;;
19634 x:*)
19635 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19636 ;;
19637 *::*)
19638 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19639 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19640 ;;
19641 *)
19642 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19643 ;;
19644 esac
19645 }
19646
19647
19648 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19649 func_cc_basename ()
19650 {
19651 for cc_temp in $*""; do
19652 case $cc_temp in
19653 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19654 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19655 \-*) ;;
19656 *) break;;
19657 esac
19658 done
19659 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19660 }
19661
19662
19663 # ### END FUNCTIONS SHARED WITH CONFIGURE
19664
19665 _LT_EOF
19666
19667 case $host_os in
19668 aix3*)
19669 cat <<\_LT_EOF >> "$cfgfile"
19670 # AIX sometimes has problems with the GCC collect2 program. For some
19671 # reason, if we set the COLLECT_NAMES environment variable, the problems
19672 # vanish in a puff of smoke.
19673 if test set != "${COLLECT_NAMES+set}"; then
19674 COLLECT_NAMES=
19675 export COLLECT_NAMES
19676 fi
19677 _LT_EOF
19678 ;;
19679 esac
19680
19681
19682 ltmain=$ac_aux_dir/ltmain.sh
19683
19684
19685 # We use sed instead of cat because bash on DJGPP gets confused if
19686 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19687 # text mode, it properly converts lines to CR/LF. This bash problem
19688 # is reportedly fixed, but why not run on old versions too?
19689 sed '$q' "$ltmain" >> "$cfgfile" \
19690 || (rm -f "$cfgfile"; exit 1)
19691
19692 mv -f "$cfgfile" "$ofile" ||
19693 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19694 chmod +x "$ofile"
19695
19696
19697 cat <<_LT_EOF >> "$ofile"
19698
19699 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19700
19701 # The linker used to build libraries.
19702 LD=$lt_LD_CXX
19703
19704 # How to create reloadable object files.
19705 reload_flag=$lt_reload_flag_CXX
19706 reload_cmds=$lt_reload_cmds_CXX
19707
19708 # Commands used to build an old-style archive.
19709 old_archive_cmds=$lt_old_archive_cmds_CXX
19710
19711 # A language specific compiler.
19712 CC=$lt_compiler_CXX
19713
19714 # Is the compiler the GNU compiler?
19715 with_gcc=$GCC_CXX
19716
19717 # Compiler flag to turn off builtin functions.
19718 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19719
19720 # Additional compiler flags for building library objects.
19721 pic_flag=$lt_lt_prog_compiler_pic_CXX
19722
19723 # How to pass a linker flag through the compiler.
19724 wl=$lt_lt_prog_compiler_wl_CXX
19725
19726 # Compiler flag to prevent dynamic linking.
19727 link_static_flag=$lt_lt_prog_compiler_static_CXX
19728
19729 # Does compiler simultaneously support -c and -o options?
19730 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19731
19732 # Whether or not to add -lc for building shared libraries.
19733 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19734
19735 # Whether or not to disallow shared libs when runtime libs are static.
19736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19737
19738 # Compiler flag to allow reflexive dlopens.
19739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19740
19741 # Compiler flag to generate shared objects directly from archives.
19742 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19743
19744 # Whether the compiler copes with passing no objects directly.
19745 compiler_needs_object=$lt_compiler_needs_object_CXX
19746
19747 # Create an old-style archive from a shared archive.
19748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19749
19750 # Create a temporary old-style archive to link instead of a shared archive.
19751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19752
19753 # Commands used to build a shared archive.
19754 archive_cmds=$lt_archive_cmds_CXX
19755 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19756
19757 # Commands used to build a loadable module if different from building
19758 # a shared archive.
19759 module_cmds=$lt_module_cmds_CXX
19760 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19761
19762 # Whether we are building with GNU ld or not.
19763 with_gnu_ld=$lt_with_gnu_ld_CXX
19764
19765 # Flag that allows shared libraries with undefined symbols to be built.
19766 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19767
19768 # Flag that enforces no undefined symbols.
19769 no_undefined_flag=$lt_no_undefined_flag_CXX
19770
19771 # Flag to hardcode \$libdir into a binary during linking.
19772 # This must work even if \$libdir does not exist
19773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19774
19775 # Whether we need a single "-rpath" flag with a separated argument.
19776 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19777
19778 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19779 # DIR into the resulting binary.
19780 hardcode_direct=$hardcode_direct_CXX
19781
19782 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19783 # DIR into the resulting binary and the resulting library dependency is
19784 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19785 # library is relocated.
19786 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19787
19788 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19789 # into the resulting binary.
19790 hardcode_minus_L=$hardcode_minus_L_CXX
19791
19792 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19793 # into the resulting binary.
19794 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19795
19796 # Set to "yes" if building a shared library automatically hardcodes DIR
19797 # into the library and all subsequent libraries and executables linked
19798 # against it.
19799 hardcode_automatic=$hardcode_automatic_CXX
19800
19801 # Set to yes if linker adds runtime paths of dependent libraries
19802 # to runtime path list.
19803 inherit_rpath=$inherit_rpath_CXX
19804
19805 # Whether libtool must link a program against all its dependency libraries.
19806 link_all_deplibs=$link_all_deplibs_CXX
19807
19808 # Set to "yes" if exported symbols are required.
19809 always_export_symbols=$always_export_symbols_CXX
19810
19811 # The commands to list exported symbols.
19812 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19813
19814 # Symbols that should not be listed in the preloaded symbols.
19815 exclude_expsyms=$lt_exclude_expsyms_CXX
19816
19817 # Symbols that must always be exported.
19818 include_expsyms=$lt_include_expsyms_CXX
19819
19820 # Commands necessary for linking programs (against libraries) with templates.
19821 prelink_cmds=$lt_prelink_cmds_CXX
19822
19823 # Commands necessary for finishing linking programs.
19824 postlink_cmds=$lt_postlink_cmds_CXX
19825
19826 # Specify filename containing input files.
19827 file_list_spec=$lt_file_list_spec_CXX
19828
19829 # How to hardcode a shared library path into an executable.
19830 hardcode_action=$hardcode_action_CXX
19831
19832 # The directories searched by this compiler when creating a shared library.
19833 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19834
19835 # Dependencies to place before and after the objects being linked to
19836 # create a shared library.
19837 predep_objects=$lt_predep_objects_CXX
19838 postdep_objects=$lt_postdep_objects_CXX
19839 predeps=$lt_predeps_CXX
19840 postdeps=$lt_postdeps_CXX
19841
19842 # The library search path used internally by the compiler when linking
19843 # a shared library.
19844 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19845
19846 # ### END LIBTOOL TAG CONFIG: CXX
19847 _LT_EOF
19848
19849 ;;
19850
19851 esac
19852 done # for ac_tag
19853
19854
19855 as_fn_exit 0
19856 _ACEOF
19857 ac_clean_files=$ac_clean_files_save
19858
19859 test $ac_write_fail = 0 ||
19860 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19861
19862
19863 # configure is writing to config.log, and then calls config.status.
19864 # config.status does its own redirection, appending to config.log.
19865 # Unfortunately, on DOS this fails, as config.log is still kept open
19866 # by configure, so config.status won't be able to write to it; its
19867 # output is simply discarded. So we exec the FD to /dev/null,
19868 # effectively closing config.log, so it can be properly (re)opened and
19869 # appended to by config.status. When coming back to configure, we
19870 # need to make the FD available again.
19871 if test "$no_create" != yes; then
19872 ac_cs_success=:
19873 ac_config_status_args=
19874 test "$silent" = yes &&
19875 ac_config_status_args="$ac_config_status_args --quiet"
19876 exec 5>/dev/null
19877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19878 exec 5>>config.log
19879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19880 # would make configure fail if this is the last instruction.
19881 $ac_cs_success || as_fn_exit 1
19882 fi
19883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19885 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19886 fi
19887
+0
-791
depcomp less more
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
26
27 case $1 in
28 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
32 -h | --h*)
33 cat <<\EOF
34 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
35
36 Run PROGRAMS ARGS to compile a file, generating dependencies
37 as side-effects.
38
39 Environment variables:
40 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
43 DEPDIR directory where to store dependencies.
44 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 libtool Whether libtool is used (yes/no).
47
48 Report bugs to <bug-automake@gnu.org>.
49 EOF
50 exit $?
51 ;;
52 -v | --v*)
53 echo "depcomp $scriptversion"
54 exit $?
55 ;;
56 esac
57
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
120 exit 1
121 fi
122
123 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
124 depfile=${depfile-`echo "$object" |
125 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
127
128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
132
133 # Some modes work just like other modes, but use different flags. We
134 # parameterize here, but still list the modes in the big case below,
135 # to make depend.m4 easier to write. Note that we *cannot* use a case
136 # here, because this file can only contain one case statement.
137 if test "$depmode" = hp; then
138 # HP compiler uses -M and no extra arg.
139 gccflag=-M
140 depmode=gcc
141 fi
142
143 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
147 fi
148
149 cygpath_u="cygpath -u -f -"
150 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
170 fi
171
172 case "$depmode" in
173 gcc3)
174 ## gcc 3 implements dependency tracking that does exactly what
175 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
176 ## it if -MD -MP comes after the -MF stuff. Hmm.
177 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
178 ## the command line argument order; so add the flags where they
179 ## appear in depend2.am. Note that the slowdown incurred here
180 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
181 for arg
182 do
183 case $arg in
184 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
185 *) set fnord "$@" "$arg" ;;
186 esac
187 shift # fnord
188 shift # $arg
189 done
190 "$@"
191 stat=$?
192 if test $stat -ne 0; then
193 rm -f "$tmpdepfile"
194 exit $stat
195 fi
196 mv "$tmpdepfile" "$depfile"
197 ;;
198
199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203 ## There are various ways to get dependency output from gcc. Here's
204 ## why we pick this rather obscure method:
205 ## - Don't want to use -MD because we'd like the dependencies to end
206 ## up in a subdir. Having to rename by hand is ugly.
207 ## (We might end up doing this anyway to support other compilers.)
208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
211 ## - Using -M directly means running the compiler twice (even worse
212 ## than renaming).
213 if test -z "$gccflag"; then
214 gccflag=-MD,
215 fi
216 "$@" -Wp,"$gccflag$tmpdepfile"
217 stat=$?
218 if test $stat -ne 0; then
219 rm -f "$tmpdepfile"
220 exit $stat
221 fi
222 rm -f "$depfile"
223 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
226 sed -e 's/^[^:]*: / /' \
227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
229 ## The problem is that when a header file which appears in a .P file
230 ## is deleted, the dependency causes make to die (because there is
231 ## typically no way to rebuild the header). We avoid this by adding
232 ## dummy dependencies for each header file. Too bad gcc doesn't do
233 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
235 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
238 ## Some versions of the HPUX 10.20 sed can't process this invocation
239 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
243 rm -f "$tmpdepfile"
244 ;;
245
246 hp)
247 # This case exists only to let depend.m4 do its work. It works by
248 # looking at the text of this script. This case will never be run,
249 # since it is checked for above.
250 exit 1
251 ;;
252
253 sgi)
254 if test "$libtool" = yes; then
255 "$@" "-Wp,-MDupdate,$tmpdepfile"
256 else
257 "$@" -MDupdate "$tmpdepfile"
258 fi
259 stat=$?
260 if test $stat -ne 0; then
261 rm -f "$tmpdepfile"
262 exit $stat
263 fi
264 rm -f "$depfile"
265
266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267 echo "$object : \\" > "$depfile"
268 # Clip off the initial element (the dependent). Don't try to be
269 # clever and replace this with sed code, as IRIX sed won't handle
270 # lines with more than a fixed number of characters (4096 in
271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
273 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
277 echo >> "$depfile"
278 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
284 fi
285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293 ;;
294
295 aix)
296 # The C for AIX Compiler uses -M and outputs the dependencies
297 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
299 # start of each line; $object doesn't have directory information.
300 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
303 if test "$libtool" = yes; then
304 tmpdepfile1=$dir$base.u
305 tmpdepfile2=$base.u
306 tmpdepfile3=$dir.libs/$base.u
307 "$@" -Wc,-M
308 else
309 tmpdepfile1=$dir$base.u
310 tmpdepfile2=$dir$base.u
311 tmpdepfile3=$dir$base.u
312 "$@" -M
313 fi
314 stat=$?
315 if test $stat -ne 0; then
316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317 exit $stat
318 fi
319
320 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
321 do
322 test -f "$tmpdepfile" && break
323 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
355 rm -f "$tmpdepfile"
356 ;;
357
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
368 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
370 # foo.o: sub/foo.c ... \
371 # sub/foo.h ... \
372 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
418 rm -f "$tmpdepfile"
419 exit $stat
420 fi
421 rm -f "$depfile"
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
424 # Do two passes, one to just change these to
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
431 rm -f "$tmpdepfile"
432 ;;
433
434 hp2)
435 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
436 # compilers, which have integrated preprocessors. The correct option
437 # to use with these is +Maked; it writes dependencies to a file named
438 # 'foo.d', which lands next to the object file, wherever that
439 # happens to be.
440 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
443 if test "$libtool" = yes; then
444 tmpdepfile1=$dir$base.d
445 tmpdepfile2=$dir.libs/$base.d
446 "$@" -Wc,+Maked
447 else
448 tmpdepfile1=$dir$base.d
449 tmpdepfile2=$dir$base.d
450 "$@" +Maked
451 fi
452 stat=$?
453 if test $stat -ne 0; then
454 rm -f "$tmpdepfile1" "$tmpdepfile2"
455 exit $stat
456 fi
457
458 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
459 do
460 test -f "$tmpdepfile" && break
461 done
462 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
465 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
473 fi
474 rm -f "$tmpdepfile" "$tmpdepfile2"
475 ;;
476
477 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
564
565 #nosideeffect)
566 # This comment above is used by automake to tell side-effect
567 # dependency tracking mechanisms from slower ones.
568
569 dashmstdout)
570 # Important note: in order to support this mode, a compiler *must*
571 # always write the preprocessed file to stdout, regardless of -o.
572 "$@" || exit $?
573
574 # Remove the call to Libtool.
575 if test "$libtool" = yes; then
576 while test "X$1" != 'X--mode=compile'; do
577 shift
578 done
579 shift
580 fi
581
582 # Remove '-o $object'.
583 IFS=" "
584 for arg
585 do
586 case $arg in
587 -o)
588 shift
589 ;;
590 $object)
591 shift
592 ;;
593 *)
594 set fnord "$@" "$arg"
595 shift # fnord
596 shift # $arg
597 ;;
598 esac
599 done
600
601 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
603 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
605 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
607 rm -f "$depfile"
608 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
614 rm -f "$tmpdepfile"
615 ;;
616
617 dashXmstdout)
618 # This case only exists to satisfy depend.m4. It is never actually
619 # run, as this mode is specially recognized in the preamble.
620 exit 1
621 ;;
622
623 makedepend)
624 "$@" || exit $?
625 # Remove any Libtool call
626 if test "$libtool" = yes; then
627 while test "X$1" != 'X--mode=compile'; do
628 shift
629 done
630 shift
631 fi
632 # X makedepend
633 shift
634 cleared=no eat=no
635 for arg
636 do
637 case $cleared in
638 no)
639 set ""; shift
640 cleared=yes ;;
641 esac
642 if test $eat = yes; then
643 eat=no
644 continue
645 fi
646 case "$arg" in
647 -D*|-I*)
648 set fnord "$@" "$arg"; shift ;;
649 # Strip any option that makedepend may not understand. Remove
650 # the object too, otherwise makedepend will parse it as a source file.
651 -arch)
652 eat=yes ;;
653 -*|$object)
654 ;;
655 *)
656 set fnord "$@" "$arg"; shift ;;
657 esac
658 done
659 obj_suffix=`echo "$object" | sed 's/^.*\././'`
660 touch "$tmpdepfile"
661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
672 rm -f "$tmpdepfile" "$tmpdepfile".bak
673 ;;
674
675 cpp)
676 # Important note: in order to support this mode, a compiler *must*
677 # always write the preprocessed file to stdout.
678 "$@" || exit $?
679
680 # Remove the call to Libtool.
681 if test "$libtool" = yes; then
682 while test "X$1" != 'X--mode=compile'; do
683 shift
684 done
685 shift
686 fi
687
688 # Remove '-o $object'.
689 IFS=" "
690 for arg
691 do
692 case $arg in
693 -o)
694 shift
695 ;;
696 $object)
697 shift
698 ;;
699 *)
700 set fnord "$@" "$arg"
701 shift # fnord
702 shift # $arg
703 ;;
704 esac
705 done
706
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
711 rm -f "$depfile"
712 echo "$object : \\" > "$depfile"
713 cat < "$tmpdepfile" >> "$depfile"
714 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
715 rm -f "$tmpdepfile"
716 ;;
717
718 msvisualcpp)
719 # Important note: in order to support this mode, a compiler *must*
720 # always write the preprocessed file to stdout.
721 "$@" || exit $?
722
723 # Remove the call to Libtool.
724 if test "$libtool" = yes; then
725 while test "X$1" != 'X--mode=compile'; do
726 shift
727 done
728 shift
729 fi
730
731 IFS=" "
732 for arg
733 do
734 case "$arg" in
735 -o)
736 shift
737 ;;
738 $object)
739 shift
740 ;;
741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
746 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
751 esac
752 done
753 "$@" -E 2>/dev/null |
754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755 rm -f "$depfile"
756 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760 rm -f "$tmpdepfile"
761 ;;
762
763 msvcmsys)
764 # This case exists only to let depend.m4 do its work. It works by
765 # looking at the text of this script. This case will never be run,
766 # since it is checked for above.
767 exit 1
768 ;;
769
770 none)
771 exec "$@"
772 ;;
773
774 *)
775 echo "Unknown depmode $depmode" 1>&2
776 exit 1
777 ;;
778 esac
779
780 exit 0
781
782 # Local Variables:
783 # mode: shell-script
784 # sh-indentation: 2
785 # eval: (add-hook 'before-save-hook 'time-stamp)
786 # time-stamp-start: "scriptversion="
787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC0"
789 # time-stamp-end: "; # UTC"
790 # End:
+0
-641
include/Makefile.in less more
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 #AUTOMAKE_OPTIONS = foreign
17 VPATH = @srcdir@
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
29 am__make_running_with_option = \
30 case $${target_option-} in \
31 ?) ;; \
32 *) echo "am__make_running_with_option: internal error: invalid" \
33 "target option '$${target_option-}' specified" >&2; \
34 exit 1;; \
35 esac; \
36 has_opt=no; \
37 sane_makeflags=$$MAKEFLAGS; \
38 if $(am__is_gnu_make); then \
39 sane_makeflags=$$MFLAGS; \
40 else \
41 case $$MAKEFLAGS in \
42 *\\[\ \ ]*) \
43 bs=\\; \
44 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
45 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
46 esac; \
47 fi; \
48 skip_next=no; \
49 strip_trailopt () \
50 { \
51 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
52 }; \
53 for flg in $$sane_makeflags; do \
54 test $$skip_next = yes && { skip_next=no; continue; }; \
55 case $$flg in \
56 *=*|--*) continue;; \
57 -*I) strip_trailopt 'I'; skip_next=yes;; \
58 -*I?*) strip_trailopt 'I';; \
59 -*O) strip_trailopt 'O'; skip_next=yes;; \
60 -*O?*) strip_trailopt 'O';; \
61 -*l) strip_trailopt 'l'; skip_next=yes;; \
62 -*l?*) strip_trailopt 'l';; \
63 -[dEDm]) skip_next=yes;; \
64 -[JT]) skip_next=yes;; \
65 esac; \
66 case $$flg in \
67 *$$target_option*) has_opt=yes; break;; \
68 esac; \
69 done; \
70 test $$has_opt = yes
71 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
72 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
73 pkgdatadir = $(datadir)/@PACKAGE@
74 pkgincludedir = $(includedir)/@PACKAGE@
75 pkglibdir = $(libdir)/@PACKAGE@
76 pkglibexecdir = $(libexecdir)/@PACKAGE@
77 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
78 install_sh_DATA = $(install_sh) -c -m 644
79 install_sh_PROGRAM = $(install_sh) -c
80 install_sh_SCRIPT = $(install_sh) -c
81 INSTALL_HEADER = $(INSTALL_DATA)
82 transform = $(program_transform_name)
83 NORMAL_INSTALL = :
84 PRE_INSTALL = :
85 POST_INSTALL = :
86 NORMAL_UNINSTALL = :
87 PRE_UNINSTALL = :
88 POST_UNINSTALL = :
89 build_triplet = @build@
90 host_triplet = @host@
91 subdir = include
92 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_osx_pkg.m4 \
94 $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
95 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
96 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
97 $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
98 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
99 $(ACLOCAL_M4)
100 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
101 mkinstalldirs = $(install_sh) -d
102 CONFIG_HEADER = $(top_builddir)/config.h
103 CONFIG_CLEAN_FILES =
104 CONFIG_CLEAN_VPATH_FILES =
105 AM_V_P = $(am__v_P_@AM_V@)
106 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
107 am__v_P_0 = false
108 am__v_P_1 = :
109 AM_V_GEN = $(am__v_GEN_@AM_V@)
110 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
111 am__v_GEN_0 = @echo " GEN " $@;
112 am__v_GEN_1 =
113 AM_V_at = $(am__v_at_@AM_V@)
114 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
115 am__v_at_0 = @
116 am__v_at_1 =
117 SOURCES =
118 DIST_SOURCES =
119 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
120 ctags-recursive dvi-recursive html-recursive info-recursive \
121 install-data-recursive install-dvi-recursive \
122 install-exec-recursive install-html-recursive \
123 install-info-recursive install-pdf-recursive \
124 install-ps-recursive install-recursive installcheck-recursive \
125 installdirs-recursive pdf-recursive ps-recursive \
126 tags-recursive uninstall-recursive
127 am__can_run_installinfo = \
128 case $$AM_UPDATE_INFO_DIR in \
129 n|no|NO) false;; \
130 *) (install-info --version) >/dev/null 2>&1;; \
131 esac
132 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
133 distclean-recursive maintainer-clean-recursive
134 am__recursive_targets = \
135 $(RECURSIVE_TARGETS) \
136 $(RECURSIVE_CLEAN_TARGETS) \
137 $(am__extra_recursive_targets)
138 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
139 distdir distdir-am
140 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
141 # Read a list of newline-separated strings from the standard input,
142 # and print each of them once, without duplicates. Input order is
143 # *not* preserved.
144 am__uniquify_input = $(AWK) '\
145 BEGIN { nonempty = 0; } \
146 { items[$$0] = 1; nonempty = 1; } \
147 END { if (nonempty) { for (i in items) print i; }; } \
148 '
149 # Make sure the list of sources is unique. This is necessary because,
150 # e.g., the same source file might be shared among _SOURCES variables
151 # for different programs/libraries.
152 am__define_uniq_tagged_files = \
153 list='$(am__tagged_files)'; \
154 unique=`for i in $$list; do \
155 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
156 done | $(am__uniquify_input)`
157 ETAGS = etags
158 CTAGS = ctags
159 DIST_SUBDIRS = $(SUBDIRS)
160 am__DIST_COMMON = $(srcdir)/Makefile.in
161 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
162 am__relativize = \
163 dir0=`pwd`; \
164 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
165 sed_rest='s,^[^/]*/*,,'; \
166 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
167 sed_butlast='s,/*[^/]*$$,,'; \
168 while test -n "$$dir1"; do \
169 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
170 if test "$$first" != "."; then \
171 if test "$$first" = ".."; then \
172 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
173 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
174 else \
175 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
176 if test "$$first2" = "$$first"; then \
177 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
178 else \
179 dir2="../$$dir2"; \
180 fi; \
181 dir0="$$dir0"/"$$first"; \
182 fi; \
183 fi; \
184 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
185 done; \
186 reldir="$$dir2"
187 ACLOCAL = @ACLOCAL@
188 AMTAR = @AMTAR@
189 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
190 AR = @AR@
191 AUTOCONF = @AUTOCONF@
192 AUTOHEADER = @AUTOHEADER@
193 AUTOMAKE = @AUTOMAKE@
194 AWK = @AWK@
195 CC = @CC@
196 CCDEPMODE = @CCDEPMODE@
197 CFLAGS = @CFLAGS@
198 CPP = @CPP@
199 CPPFLAGS = @CPPFLAGS@
200 CXX = @CXX@
201 CXXCPP = @CXXCPP@
202 CXXDEPMODE = @CXXDEPMODE@
203 CXXFLAGS = @CXXFLAGS@
204 CYGPATH_W = @CYGPATH_W@
205 DEFS = @DEFS@
206 DEPDIR = @DEPDIR@
207 DLLTOOL = @DLLTOOL@
208 DSYMUTIL = @DSYMUTIL@
209 DUMPBIN = @DUMPBIN@
210 ECHO_C = @ECHO_C@
211 ECHO_N = @ECHO_N@
212 ECHO_T = @ECHO_T@
213 EGREP = @EGREP@
214 EXEEXT = @EXEEXT@
215 FGREP = @FGREP@
216 GREP = @GREP@
217 ICU_CFLAGS = @ICU_CFLAGS@
218 ICU_LIBS = @ICU_LIBS@
219 INSTALL = @INSTALL@
220 INSTALL_DATA = @INSTALL_DATA@
221 INSTALL_PROGRAM = @INSTALL_PROGRAM@
222 INSTALL_SCRIPT = @INSTALL_SCRIPT@
223 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
224 LD = @LD@
225 LDFLAGS = @LDFLAGS@
226 LIBOBJS = @LIBOBJS@
227 LIBS = @LIBS@
228 LIBTOOL = @LIBTOOL@
229 LIPO = @LIPO@
230 LN_S = @LN_S@
231 LTLIBOBJS = @LTLIBOBJS@
232 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
233 MAKEINFO = @MAKEINFO@
234 MANIFEST_TOOL = @MANIFEST_TOOL@
235 MKDIR_P = @MKDIR_P@
236 NM = @NM@
237 NMEDIT = @NMEDIT@
238 OBJDUMP = @OBJDUMP@
239 OBJEXT = @OBJEXT@
240 OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
241 OTOOL = @OTOOL@
242 OTOOL64 = @OTOOL64@
243 PACKAGE = @PACKAGE@
244 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
245 PACKAGE_NAME = @PACKAGE_NAME@
246 PACKAGE_STRING = @PACKAGE_STRING@
247 PACKAGE_TARNAME = @PACKAGE_TARNAME@
248 PACKAGE_URL = @PACKAGE_URL@
249 PACKAGE_VERSION = @PACKAGE_VERSION@
250 PATH_SEPARATOR = @PATH_SEPARATOR@
251 PKG_CONFIG = @PKG_CONFIG@
252 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
253 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
254 PTHREAD_CC = @PTHREAD_CC@
255 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
256 PTHREAD_LIBS = @PTHREAD_LIBS@
257 RANLIB = @RANLIB@
258 SED = @SED@
259 SET_MAKE = @SET_MAKE@
260 SHELL = @SHELL@
261 STRIP = @STRIP@
262 VERSION = @VERSION@
263 XML2_CFLAGS = @XML2_CFLAGS@
264 XML2_LIBS = @XML2_LIBS@
265 abs_builddir = @abs_builddir@
266 abs_srcdir = @abs_srcdir@
267 abs_top_builddir = @abs_top_builddir@
268 abs_top_srcdir = @abs_top_srcdir@
269 ac_ct_AR = @ac_ct_AR@
270 ac_ct_CC = @ac_ct_CC@
271 ac_ct_CXX = @ac_ct_CXX@
272 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
273 am__include = @am__include@
274 am__leading_dot = @am__leading_dot@
275 am__quote = @am__quote@
276 am__tar = @am__tar@
277 am__untar = @am__untar@
278 ax_pthread_config = @ax_pthread_config@
279 bindir = @bindir@
280 build = @build@
281 build_alias = @build_alias@
282 build_cpu = @build_cpu@
283 build_os = @build_os@
284 build_vendor = @build_vendor@
285 builddir = @builddir@
286 datadir = @datadir@
287 datarootdir = @datarootdir@
288 docdir = @docdir@
289 dvidir = @dvidir@
290 exec_prefix = @exec_prefix@
291 host = @host@
292 host_alias = @host_alias@
293 host_cpu = @host_cpu@
294 host_os = @host_os@
295 host_vendor = @host_vendor@
296 htmldir = @htmldir@
297 includedir = @includedir@
298 infodir = @infodir@
299 install_sh = @install_sh@
300 libdir = @libdir@
301 libexecdir = @libexecdir@
302 localedir = @localedir@
303 localstatedir = @localstatedir@
304 mandir = @mandir@
305 mkdir_p = @mkdir_p@
306 oldincludedir = @oldincludedir@
307 pdfdir = @pdfdir@
308 prefix = @prefix@
309 program_transform_name = @program_transform_name@
310 psdir = @psdir@
311 runstatedir = @runstatedir@
312 sbindir = @sbindir@
313 sharedstatedir = @sharedstatedir@
314 srcdir = @srcdir@
315 sysconfdir = @sysconfdir@
316 target_alias = @target_alias@
317 ticcutils_CFLAGS = @ticcutils_CFLAGS@
318 ticcutils_LIBS = @ticcutils_LIBS@
319 top_build_prefix = @top_build_prefix@
320 top_builddir = @top_builddir@
321 top_srcdir = @top_srcdir@
322 SUBDIRS = libfolia
323 all: all-recursive
324
325 .SUFFIXES:
326 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
327 @for dep in $?; do \
328 case '$(am__configure_deps)' in \
329 *$$dep*) \
330 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
331 && { if test -f $@; then exit 0; else break; fi; }; \
332 exit 1;; \
333 esac; \
334 done; \
335 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
336 $(am__cd) $(top_srcdir) && \
337 $(AUTOMAKE) --foreign include/Makefile
338 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
339 @case '$?' in \
340 *config.status*) \
341 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
342 *) \
343 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
344 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
345 esac;
346
347 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
348 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
349
350 $(top_srcdir)/configure: $(am__configure_deps)
351 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
352 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
353 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
354 $(am__aclocal_m4_deps):
355
356 mostlyclean-libtool:
357 -rm -f *.lo
358
359 clean-libtool:
360 -rm -rf .libs _libs
361
362 # This directory's subdirectories are mostly independent; you can cd
363 # into them and run 'make' without going through this Makefile.
364 # To change the values of 'make' variables: instead of editing Makefiles,
365 # (1) if the variable is set in 'config.status', edit 'config.status'
366 # (which will cause the Makefiles to be regenerated when you run 'make');
367 # (2) otherwise, pass the desired values on the 'make' command line.
368 $(am__recursive_targets):
369 @fail=; \
370 if $(am__make_keepgoing); then \
371 failcom='fail=yes'; \
372 else \
373 failcom='exit 1'; \
374 fi; \
375 dot_seen=no; \
376 target=`echo $@ | sed s/-recursive//`; \
377 case "$@" in \
378 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
379 *) list='$(SUBDIRS)' ;; \
380 esac; \
381 for subdir in $$list; do \
382 echo "Making $$target in $$subdir"; \
383 if test "$$subdir" = "."; then \
384 dot_seen=yes; \
385 local_target="$$target-am"; \
386 else \
387 local_target="$$target"; \
388 fi; \
389 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
390 || eval $$failcom; \
391 done; \
392 if test "$$dot_seen" = "no"; then \
393 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
394 fi; test -z "$$fail"
395
396 ID: $(am__tagged_files)
397 $(am__define_uniq_tagged_files); mkid -fID $$unique
398 tags: tags-recursive
399 TAGS: tags
400
401 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
402 set x; \
403 here=`pwd`; \
404 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
405 include_option=--etags-include; \
406 empty_fix=.; \
407 else \
408 include_option=--include; \
409 empty_fix=; \
410 fi; \
411 list='$(SUBDIRS)'; for subdir in $$list; do \
412 if test "$$subdir" = .; then :; else \
413 test ! -f $$subdir/TAGS || \
414 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
415 fi; \
416 done; \
417 $(am__define_uniq_tagged_files); \
418 shift; \
419 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
420 test -n "$$unique" || unique=$$empty_fix; \
421 if test $$# -gt 0; then \
422 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
423 "$$@" $$unique; \
424 else \
425 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
426 $$unique; \
427 fi; \
428 fi
429 ctags: ctags-recursive
430
431 CTAGS: ctags
432 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
433 $(am__define_uniq_tagged_files); \
434 test -z "$(CTAGS_ARGS)$$unique" \
435 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
436 $$unique
437
438 GTAGS:
439 here=`$(am__cd) $(top_builddir) && pwd` \
440 && $(am__cd) $(top_srcdir) \
441 && gtags -i $(GTAGS_ARGS) "$$here"
442 cscopelist: cscopelist-recursive
443
444 cscopelist-am: $(am__tagged_files)
445 list='$(am__tagged_files)'; \
446 case "$(srcdir)" in \
447 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
448 *) sdir=$(subdir)/$(srcdir) ;; \
449 esac; \
450 for i in $$list; do \
451 if test -f "$$i"; then \
452 echo "$(subdir)/$$i"; \
453 else \
454 echo "$$sdir/$$i"; \
455 fi; \
456 done >> $(top_builddir)/cscope.files
457
458 distclean-tags:
459 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
460
461 distdir: $(BUILT_SOURCES)
462 $(MAKE) $(AM_MAKEFLAGS) distdir-am
463
464 distdir-am: $(DISTFILES)
465 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
466 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
467 list='$(DISTFILES)'; \
468 dist_files=`for file in $$list; do echo $$file; done | \
469 sed -e "s|^$$srcdirstrip/||;t" \
470 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
471 case $$dist_files in \
472 */*) $(MKDIR_P) `echo "$$dist_files" | \
473 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
474 sort -u` ;; \
475 esac; \
476 for file in $$dist_files; do \
477 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
478 if test -d $$d/$$file; then \
479 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
480 if test -d "$(distdir)/$$file"; then \
481 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
482 fi; \
483 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
484 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
485 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
486 fi; \
487 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
488 else \
489 test -f "$(distdir)/$$file" \
490 || cp -p $$d/$$file "$(distdir)/$$file" \
491 || exit 1; \
492 fi; \
493 done
494 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
495 if test "$$subdir" = .; then :; else \
496 $(am__make_dryrun) \
497 || test -d "$(distdir)/$$subdir" \
498 || $(MKDIR_P) "$(distdir)/$$subdir" \
499 || exit 1; \
500 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
501 $(am__relativize); \
502 new_distdir=$$reldir; \
503 dir1=$$subdir; dir2="$(top_distdir)"; \
504 $(am__relativize); \
505 new_top_distdir=$$reldir; \
506 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
507 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
508 ($(am__cd) $$subdir && \
509 $(MAKE) $(AM_MAKEFLAGS) \
510 top_distdir="$$new_top_distdir" \
511 distdir="$$new_distdir" \
512 am__remove_distdir=: \
513 am__skip_length_check=: \
514 am__skip_mode_fix=: \
515 distdir) \
516 || exit 1; \
517 fi; \
518 done
519 check-am: all-am
520 check: check-recursive
521 all-am: Makefile
522 installdirs: installdirs-recursive
523 installdirs-am:
524 install: install-recursive
525 install-exec: install-exec-recursive
526 install-data: install-data-recursive
527 uninstall: uninstall-recursive
528
529 install-am: all-am
530 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
531
532 installcheck: installcheck-recursive
533 install-strip:
534 if test -z '$(STRIP)'; then \
535 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
536 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
537 install; \
538 else \
539 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
540 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
541 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
542 fi
543 mostlyclean-generic:
544
545 clean-generic:
546
547 distclean-generic:
548 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
549 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
550
551 maintainer-clean-generic:
552 @echo "This command is intended for maintainers to use"
553 @echo "it deletes files that may require special tools to rebuild."
554 clean: clean-recursive
555
556 clean-am: clean-generic clean-libtool mostlyclean-am
557
558 distclean: distclean-recursive
559 -rm -f Makefile
560 distclean-am: clean-am distclean-generic distclean-tags
561
562 dvi: dvi-recursive
563
564 dvi-am:
565
566 html: html-recursive
567
568 html-am:
569
570 info: info-recursive
571
572 info-am:
573
574 install-data-am:
575
576 install-dvi: install-dvi-recursive
577
578 install-dvi-am:
579
580 install-exec-am:
581
582 install-html: install-html-recursive
583
584 install-html-am:
585
586 install-info: install-info-recursive
587
588 install-info-am:
589
590 install-man:
591
592 install-pdf: install-pdf-recursive
593
594 install-pdf-am:
595
596 install-ps: install-ps-recursive
597
598 install-ps-am:
599
600 installcheck-am:
601
602 maintainer-clean: maintainer-clean-recursive
603 -rm -f Makefile
604 maintainer-clean-am: distclean-am maintainer-clean-generic
605
606 mostlyclean: mostlyclean-recursive
607
608 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
609
610 pdf: pdf-recursive
611
612 pdf-am:
613
614 ps: ps-recursive
615
616 ps-am:
617
618 uninstall-am:
619
620 .MAKE: $(am__recursive_targets) install-am install-strip
621
622 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
623 check-am clean clean-generic clean-libtool cscopelist-am ctags \
624 ctags-am distclean distclean-generic distclean-libtool \
625 distclean-tags distdir dvi dvi-am html html-am info info-am \
626 install install-am install-data install-data-am install-dvi \
627 install-dvi-am install-exec install-exec-am install-html \
628 install-html-am install-info install-info-am install-man \
629 install-pdf install-pdf-am install-ps install-ps-am \
630 install-strip installcheck installcheck-am installdirs \
631 installdirs-am maintainer-clean maintainer-clean-generic \
632 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
633 ps ps-am tags tags-am uninstall uninstall-am
634
635 .PRECIOUS: Makefile
636
637
638 # Tell versions [3.59,3.63) of GNU make to not export all variables.
639 # Otherwise a system limit (for SysV at least) may be exceeded.
640 .NOEXPORT:
+0
-583
include/libfolia/Makefile.in less more
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 subdir = include/libfolia
91 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
92 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_osx_pkg.m4 \
93 $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
94 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
95 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
96 $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
97 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
98 $(ACLOCAL_M4)
99 DIST_COMMON = $(srcdir)/Makefile.am $(pkginclude_HEADERS) \
100 $(am__DIST_COMMON)
101 mkinstalldirs = $(install_sh) -d
102 CONFIG_HEADER = $(top_builddir)/config.h
103 CONFIG_CLEAN_FILES =
104 CONFIG_CLEAN_VPATH_FILES =
105 AM_V_P = $(am__v_P_@AM_V@)
106 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
107 am__v_P_0 = false
108 am__v_P_1 = :
109 AM_V_GEN = $(am__v_GEN_@AM_V@)
110 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
111 am__v_GEN_0 = @echo " GEN " $@;
112 am__v_GEN_1 =
113 AM_V_at = $(am__v_at_@AM_V@)
114 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
115 am__v_at_0 = @
116 am__v_at_1 =
117 SOURCES =
118 DIST_SOURCES =
119 am__can_run_installinfo = \
120 case $$AM_UPDATE_INFO_DIR in \
121 n|no|NO) false;; \
122 *) (install-info --version) >/dev/null 2>&1;; \
123 esac
124 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
125 am__vpath_adj = case $$p in \
126 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
127 *) f=$$p;; \
128 esac;
129 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
130 am__install_max = 40
131 am__nobase_strip_setup = \
132 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
133 am__nobase_strip = \
134 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
135 am__nobase_list = $(am__nobase_strip_setup); \
136 for p in $$list; do echo "$$p $$p"; done | \
137 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
138 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
139 if (++n[$$2] == $(am__install_max)) \
140 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
141 END { for (dir in files) print dir, files[dir] }'
142 am__base_list = \
143 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
144 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
145 am__uninstall_files_from_dir = { \
146 test -z "$$files" \
147 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
148 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
149 $(am__cd) "$$dir" && rm -f $$files; }; \
150 }
151 am__installdirs = "$(DESTDIR)$(pkgincludedir)"
152 HEADERS = $(pkginclude_HEADERS)
153 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
154 # Read a list of newline-separated strings from the standard input,
155 # and print each of them once, without duplicates. Input order is
156 # *not* preserved.
157 am__uniquify_input = $(AWK) '\
158 BEGIN { nonempty = 0; } \
159 { items[$$0] = 1; nonempty = 1; } \
160 END { if (nonempty) { for (i in items) print i; }; } \
161 '
162 # Make sure the list of sources is unique. This is necessary because,
163 # e.g., the same source file might be shared among _SOURCES variables
164 # for different programs/libraries.
165 am__define_uniq_tagged_files = \
166 list='$(am__tagged_files)'; \
167 unique=`for i in $$list; do \
168 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
169 done | $(am__uniquify_input)`
170 ETAGS = etags
171 CTAGS = ctags
172 am__DIST_COMMON = $(srcdir)/Makefile.in
173 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
174 ACLOCAL = @ACLOCAL@
175 AMTAR = @AMTAR@
176 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
177 AR = @AR@
178 AUTOCONF = @AUTOCONF@
179 AUTOHEADER = @AUTOHEADER@
180 AUTOMAKE = @AUTOMAKE@
181 AWK = @AWK@
182 CC = @CC@
183 CCDEPMODE = @CCDEPMODE@
184 CFLAGS = @CFLAGS@
185 CPP = @CPP@
186 CPPFLAGS = @CPPFLAGS@
187 CXX = @CXX@
188 CXXCPP = @CXXCPP@
189 CXXDEPMODE = @CXXDEPMODE@
190 CXXFLAGS = @CXXFLAGS@
191 CYGPATH_W = @CYGPATH_W@
192 DEFS = @DEFS@
193 DEPDIR = @DEPDIR@
194 DLLTOOL = @DLLTOOL@
195 DSYMUTIL = @DSYMUTIL@
196 DUMPBIN = @DUMPBIN@
197 ECHO_C = @ECHO_C@
198 ECHO_N = @ECHO_N@
199 ECHO_T = @ECHO_T@
200 EGREP = @EGREP@
201 EXEEXT = @EXEEXT@
202 FGREP = @FGREP@
203 GREP = @GREP@
204 ICU_CFLAGS = @ICU_CFLAGS@
205 ICU_LIBS = @ICU_LIBS@
206 INSTALL = @INSTALL@
207 INSTALL_DATA = @INSTALL_DATA@
208 INSTALL_PROGRAM = @INSTALL_PROGRAM@
209 INSTALL_SCRIPT = @INSTALL_SCRIPT@
210 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
211 LD = @LD@
212 LDFLAGS = @LDFLAGS@
213 LIBOBJS = @LIBOBJS@
214 LIBS = @LIBS@
215 LIBTOOL = @LIBTOOL@
216 LIPO = @LIPO@
217 LN_S = @LN_S@
218 LTLIBOBJS = @LTLIBOBJS@
219 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
220 MAKEINFO = @MAKEINFO@
221 MANIFEST_TOOL = @MANIFEST_TOOL@
222 MKDIR_P = @MKDIR_P@
223 NM = @NM@
224 NMEDIT = @NMEDIT@
225 OBJDUMP = @OBJDUMP@
226 OBJEXT = @OBJEXT@
227 OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
228 OTOOL = @OTOOL@
229 OTOOL64 = @OTOOL64@
230 PACKAGE = @PACKAGE@
231 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
232 PACKAGE_NAME = @PACKAGE_NAME@
233 PACKAGE_STRING = @PACKAGE_STRING@
234 PACKAGE_TARNAME = @PACKAGE_TARNAME@
235 PACKAGE_URL = @PACKAGE_URL@
236 PACKAGE_VERSION = @PACKAGE_VERSION@
237 PATH_SEPARATOR = @PATH_SEPARATOR@
238 PKG_CONFIG = @PKG_CONFIG@
239 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
240 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
241 PTHREAD_CC = @PTHREAD_CC@
242 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
243 PTHREAD_LIBS = @PTHREAD_LIBS@
244 RANLIB = @RANLIB@
245 SED = @SED@
246 SET_MAKE = @SET_MAKE@
247 SHELL = @SHELL@
248 STRIP = @STRIP@
249 VERSION = @VERSION@
250 XML2_CFLAGS = @XML2_CFLAGS@
251 XML2_LIBS = @XML2_LIBS@
252 abs_builddir = @abs_builddir@
253 abs_srcdir = @abs_srcdir@
254 abs_top_builddir = @abs_top_builddir@
255 abs_top_srcdir = @abs_top_srcdir@
256 ac_ct_AR = @ac_ct_AR@
257 ac_ct_CC = @ac_ct_CC@
258 ac_ct_CXX = @ac_ct_CXX@
259 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
260 am__include = @am__include@
261 am__leading_dot = @am__leading_dot@
262 am__quote = @am__quote@
263 am__tar = @am__tar@
264 am__untar = @am__untar@
265 ax_pthread_config = @ax_pthread_config@
266 bindir = @bindir@
267 build = @build@
268 build_alias = @build_alias@
269 build_cpu = @build_cpu@
270 build_os = @build_os@
271 build_vendor = @build_vendor@
272 builddir = @builddir@
273 datadir = @datadir@
274 datarootdir = @datarootdir@
275 docdir = @docdir@
276 dvidir = @dvidir@
277 exec_prefix = @exec_prefix@
278 host = @host@
279 host_alias = @host_alias@
280 host_cpu = @host_cpu@
281 host_os = @host_os@
282 host_vendor = @host_vendor@
283 htmldir = @htmldir@
284 includedir = @includedir@
285 infodir = @infodir@
286 install_sh = @install_sh@
287 libdir = @libdir@
288 libexecdir = @libexecdir@
289 localedir = @localedir@
290 localstatedir = @localstatedir@
291 mandir = @mandir@
292 mkdir_p = @mkdir_p@
293 oldincludedir = @oldincludedir@
294 pdfdir = @pdfdir@
295 prefix = @prefix@
296 program_transform_name = @program_transform_name@
297 psdir = @psdir@
298 runstatedir = @runstatedir@
299 sbindir = @sbindir@
300 sharedstatedir = @sharedstatedir@
301 srcdir = @srcdir@
302 sysconfdir = @sysconfdir@
303 target_alias = @target_alias@
304 ticcutils_CFLAGS = @ticcutils_CFLAGS@
305 ticcutils_LIBS = @ticcutils_LIBS@
306 top_build_prefix = @top_build_prefix@
307 top_builddir = @top_builddir@
308 top_srcdir = @top_srcdir@
309 pkginclude_HEADERS = folia.h folia_impl.h folia_document.h folia_types.h \
310 folia_utils.h folia_properties.h folia_provenance.h \
311 folia_engine.h
312
313 all: all-am
314
315 .SUFFIXES:
316 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
317 @for dep in $?; do \
318 case '$(am__configure_deps)' in \
319 *$$dep*) \
320 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
321 && { if test -f $@; then exit 0; else break; fi; }; \
322 exit 1;; \
323 esac; \
324 done; \
325 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/libfolia/Makefile'; \
326 $(am__cd) $(top_srcdir) && \
327 $(AUTOMAKE) --foreign include/libfolia/Makefile
328 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
329 @case '$?' in \
330 *config.status*) \
331 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
332 *) \
333 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
334 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
335 esac;
336
337 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
338 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
339
340 $(top_srcdir)/configure: $(am__configure_deps)
341 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
342 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
343 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
344 $(am__aclocal_m4_deps):
345
346 mostlyclean-libtool:
347 -rm -f *.lo
348
349 clean-libtool:
350 -rm -rf .libs _libs
351 install-pkgincludeHEADERS: $(pkginclude_HEADERS)
352 @$(NORMAL_INSTALL)
353 @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
354 if test -n "$$list"; then \
355 echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
356 $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
357 fi; \
358 for p in $$list; do \
359 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
360 echo "$$d$$p"; \
361 done | $(am__base_list) | \
362 while read files; do \
363 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
364 $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
365 done
366
367 uninstall-pkgincludeHEADERS:
368 @$(NORMAL_UNINSTALL)
369 @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
370 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
371 dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
372
373 ID: $(am__tagged_files)
374 $(am__define_uniq_tagged_files); mkid -fID $$unique
375 tags: tags-am
376 TAGS: tags
377
378 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
379 set x; \
380 here=`pwd`; \
381 $(am__define_uniq_tagged_files); \
382 shift; \
383 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
384 test -n "$$unique" || unique=$$empty_fix; \
385 if test $$# -gt 0; then \
386 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
387 "$$@" $$unique; \
388 else \
389 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
390 $$unique; \
391 fi; \
392 fi
393 ctags: ctags-am
394
395 CTAGS: ctags
396 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
397 $(am__define_uniq_tagged_files); \
398 test -z "$(CTAGS_ARGS)$$unique" \
399 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
400 $$unique
401
402 GTAGS:
403 here=`$(am__cd) $(top_builddir) && pwd` \
404 && $(am__cd) $(top_srcdir) \
405 && gtags -i $(GTAGS_ARGS) "$$here"
406 cscopelist: cscopelist-am
407
408 cscopelist-am: $(am__tagged_files)
409 list='$(am__tagged_files)'; \
410 case "$(srcdir)" in \
411 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
412 *) sdir=$(subdir)/$(srcdir) ;; \
413 esac; \
414 for i in $$list; do \
415 if test -f "$$i"; then \
416 echo "$(subdir)/$$i"; \
417 else \
418 echo "$$sdir/$$i"; \
419 fi; \
420 done >> $(top_builddir)/cscope.files
421
422 distclean-tags:
423 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
424
425 distdir: $(BUILT_SOURCES)
426 $(MAKE) $(AM_MAKEFLAGS) distdir-am
427
428 distdir-am: $(DISTFILES)
429 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
430 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
431 list='$(DISTFILES)'; \
432 dist_files=`for file in $$list; do echo $$file; done | \
433 sed -e "s|^$$srcdirstrip/||;t" \
434 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
435 case $$dist_files in \
436 */*) $(MKDIR_P) `echo "$$dist_files" | \
437 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
438 sort -u` ;; \
439 esac; \
440 for file in $$dist_files; do \
441 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
442 if test -d $$d/$$file; then \
443 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
444 if test -d "$(distdir)/$$file"; then \
445 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
446 fi; \
447 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
448 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
449 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
450 fi; \
451 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
452 else \
453 test -f "$(distdir)/$$file" \
454 || cp -p $$d/$$file "$(distdir)/$$file" \
455 || exit 1; \
456 fi; \
457 done
458 check-am: all-am
459 check: check-am
460 all-am: Makefile $(HEADERS)
461 installdirs:
462 for dir in "$(DESTDIR)$(pkgincludedir)"; do \
463 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
464 done
465 install: install-am
466 install-exec: install-exec-am
467 install-data: install-data-am
468 uninstall: uninstall-am
469
470 install-am: all-am
471 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
472
473 installcheck: installcheck-am
474 install-strip:
475 if test -z '$(STRIP)'; then \
476 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
477 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
478 install; \
479 else \
480 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
481 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
482 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
483 fi
484 mostlyclean-generic:
485
486 clean-generic:
487
488 distclean-generic:
489 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
490 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
491
492 maintainer-clean-generic:
493 @echo "This command is intended for maintainers to use"
494 @echo "it deletes files that may require special tools to rebuild."
495 clean: clean-am
496
497 clean-am: clean-generic clean-libtool mostlyclean-am
498
499 distclean: distclean-am
500 -rm -f Makefile
501 distclean-am: clean-am distclean-generic distclean-tags
502
503 dvi: dvi-am
504
505 dvi-am:
506
507 html: html-am
508
509 html-am:
510
511 info: info-am
512
513 info-am:
514
515 install-data-am: install-pkgincludeHEADERS
516
517 install-dvi: install-dvi-am
518
519 install-dvi-am:
520
521 install-exec-am:
522
523 install-html: install-html-am
524
525 install-html-am:
526
527 install-info: install-info-am
528
529 install-info-am:
530
531 install-man:
532
533 install-pdf: install-pdf-am
534
535 install-pdf-am:
536
537 install-ps: install-ps-am
538
539 install-ps-am:
540
541 installcheck-am:
542
543 maintainer-clean: maintainer-clean-am
544 -rm -f Makefile
545 maintainer-clean-am: distclean-am maintainer-clean-generic
546
547 mostlyclean: mostlyclean-am
548
549 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
550
551 pdf: pdf-am
552
553 pdf-am:
554
555 ps: ps-am
556
557 ps-am:
558
559 uninstall-am: uninstall-pkgincludeHEADERS
560
561 .MAKE: install-am install-strip
562
563 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
564 clean-libtool cscopelist-am ctags ctags-am distclean \
565 distclean-generic distclean-libtool distclean-tags distdir dvi \
566 dvi-am html html-am info info-am install install-am \
567 install-data install-data-am install-dvi install-dvi-am \
568 install-exec install-exec-am install-html install-html-am \
569 install-info install-info-am install-man install-pdf \
570 install-pdf-am install-pkgincludeHEADERS install-ps \
571 install-ps-am install-strip installcheck installcheck-am \
572 installdirs maintainer-clean maintainer-clean-generic \
573 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
574 ps ps-am tags tags-am uninstall uninstall-am \
575 uninstall-pkgincludeHEADERS
576
577 .PRECIOUS: Makefile
578
579
580 # Tell versions [3.59,3.63) of GNU make to not export all variables.
581 # Otherwise a system limit (for SysV at least) may be exceeded.
582 .NOEXPORT:
+0
-518
install-sh less more
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2018-03-11.20; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # 'make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 tab=' '
44 nl='
45 '
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
50 doit=${DOITPROG-}
51 doit_exec=${doit:-exec}
52
53 # Put in absolute file names if you don't have them in your path;
54 # or use environment vars.
55
56 chgrpprog=${CHGRPPROG-chgrp}
57 chmodprog=${CHMODPROG-chmod}
58 chownprog=${CHOWNPROG-chown}
59 cmpprog=${CMPPROG-cmp}
60 cpprog=${CPPROG-cp}
61 mkdirprog=${MKDIRPROG-mkdir}
62 mvprog=${MVPROG-mv}
63 rmprog=${RMPROG-rm}
64 stripprog=${STRIPPROG-strip}
65
66 posix_mkdir=
67
68 # Desired mode of installed file.
69 mode=0755
70
71 chgrpcmd=
72 chmodcmd=$chmodprog
73 chowncmd=
74 mvcmd=$mvprog
75 rmcmd="$rmprog -f"
76 stripcmd=
77
78 src=
79 dst=
80 dir_arg=
81 dst_arg=
82
83 copy_on_change=false
84 is_target_a_directory=possibly
85
86 usage="\
87 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
88 or: $0 [OPTION]... SRCFILES... DIRECTORY
89 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
90 or: $0 [OPTION]... -d DIRECTORIES...
91
92 In the 1st form, copy SRCFILE to DSTFILE.
93 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
94 In the 4th, create DIRECTORIES.
95
96 Options:
97 --help display this help and exit.
98 --version display version info and exit.
99
100 -c (ignored)
101 -C install only if different (preserve the last data modification time)
102 -d create directories instead of installing files.
103 -g GROUP $chgrpprog installed files to GROUP.
104 -m MODE $chmodprog installed files to MODE.
105 -o USER $chownprog installed files to USER.
106 -s $stripprog installed files.
107 -t DIRECTORY install into DIRECTORY.
108 -T report an error if DSTFILE is a directory.
109
110 Environment variables override the default commands:
111 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112 RMPROG STRIPPROG
113 "
114
115 while test $# -ne 0; do
116 case $1 in
117 -c) ;;
118
119 -C) copy_on_change=true;;
120
121 -d) dir_arg=true;;
122
123 -g) chgrpcmd="$chgrpprog $2"
124 shift;;
125
126 --help) echo "$usage"; exit $?;;
127
128 -m) mode=$2
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
135
136 -o) chowncmd="$chownprog $2"
137 shift;;
138
139 -s) stripcmd=$stripprog;;
140
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
151
152 --version) echo "$0 $scriptversion"; exit $?;;
153
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
159
160 *) break;;
161 esac
162 shift
163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 # Protect names problematic for 'test' and other utilities.
189 case $dst_arg in
190 -* | [=\(\)!]) dst_arg=./$dst_arg;;
191 esac
192 done
193 fi
194
195 if test $# -eq 0; then
196 if test -z "$dir_arg"; then
197 echo "$0: no input file specified." >&2
198 exit 1
199 fi
200 # It's OK to call 'install-sh -d' without argument.
201 # This can happen when creating conditional directories.
202 exit 0
203 fi
204
205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
215 do_exit='(exit $ret); exit $ret'
216 trap "ret=129; $do_exit" 1
217 trap "ret=130; $do_exit" 2
218 trap "ret=141; $do_exit" 13
219 trap "ret=143; $do_exit" 15
220
221 # Set umask so as not to create temps with too-generous modes.
222 # However, 'strip' requires both read and write access to temps.
223 case $mode in
224 # Optimize common cases.
225 *644) cp_umask=133;;
226 *755) cp_umask=22;;
227
228 *[0-7])
229 if test -z "$stripcmd"; then
230 u_plus_rw=
231 else
232 u_plus_rw='% 200'
233 fi
234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
235 *)
236 if test -z "$stripcmd"; then
237 u_plus_rw=
238 else
239 u_plus_rw=,u+rw
240 fi
241 cp_umask=$mode$u_plus_rw;;
242 esac
243 fi
244
245 for src
246 do
247 # Protect names problematic for 'test' and other utilities.
248 case $src in
249 -* | [=\(\)!]) src=./$src;;
250 esac
251
252 if test -n "$dir_arg"; then
253 dst=$src
254 dstdir=$dst
255 test -d "$dstdir"
256 dstdir_status=$?
257 else
258
259 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
260 # might cause directories to be created, which would be especially bad
261 # if $src (and thus $dsttmp) contains '*'.
262 if test ! -f "$src" && test ! -d "$src"; then
263 echo "$0: $src does not exist." >&2
264 exit 1
265 fi
266
267 if test -z "$dst_arg"; then
268 echo "$0: no destination specified." >&2
269 exit 1
270 fi
271 dst=$dst_arg
272
273 # If destination is a directory, append the input filename.
274 if test -d "$dst"; then
275 if test "$is_target_a_directory" = never; then
276 echo "$0: $dst_arg: Is a directory" >&2
277 exit 1
278 fi
279 dstdir=$dst
280 dstbase=`basename "$src"`
281 case $dst in
282 */) dst=$dst$dstbase;;
283 *) dst=$dst/$dstbase;;
284 esac
285 dstdir_status=0
286 else
287 dstdir=`dirname "$dst"`
288 test -d "$dstdir"
289 dstdir_status=$?
290 fi
291 fi
292
293 case $dstdir in
294 */) dstdirslash=$dstdir;;
295 *) dstdirslash=$dstdir/;;
296 esac
297
298 obsolete_mkdir_used=false
299
300 if test $dstdir_status != 0; then
301 case $posix_mkdir in
302 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319 # With -d, create the new directory with the user-specified mode.
320 # Otherwise, rely on $mkdir_umask.
321 if test -n "$dir_arg"; then
322 mkdir_mode=-m$mode
323 else
324 mkdir_mode=
325 fi
326
327 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
374 esac
375
376 if
377 $posix_mkdir && (
378 umask $mkdir_umask &&
379 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
380 )
381 then :
382 else
383
384 # The umask is ridiculous, or mkdir does not conform to POSIX,
385 # or it failed possibly due to a race condition. Create the
386 # directory the slow way, step by step, checking for races as we go.
387
388 case $dstdir in
389 /*) prefix='/';;
390 [-=\(\)!]*) prefix='./';;
391 *) prefix='';;
392 esac
393
394 oIFS=$IFS
395 IFS=/
396 set -f
397 set fnord $dstdir
398 shift
399 set +f
400 IFS=$oIFS
401
402 prefixes=
403
404 for d
405 do
406 test X"$d" = X && continue
407
408 prefix=$prefix$d
409 if test -d "$prefix"; then
410 prefixes=
411 else
412 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
414 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415 # Don't fail if two instances are running concurrently.
416 test -d "$prefix" || exit 1
417 else
418 case $prefix in
419 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
420 *) qprefix=$prefix;;
421 esac
422 prefixes="$prefixes '$qprefix'"
423 fi
424 fi
425 prefix=$prefix/
426 done
427
428 if test -n "$prefixes"; then
429 # Don't fail if two instances are running concurrently.
430 (umask $mkdir_umask &&
431 eval "\$doit_exec \$mkdirprog $prefixes") ||
432 test -d "$dstdir" || exit 1
433 obsolete_mkdir_used=true
434 fi
435 fi
436 fi
437
438 if test -n "$dir_arg"; then
439 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
440 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
441 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
442 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
443 else
444
445 # Make a couple of temp file names in the proper directory.
446 dsttmp=${dstdirslash}_inst.$$_
447 rmtmp=${dstdirslash}_rm.$$_
448
449 # Trap to clean up those temp files at exit.
450 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451
452 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
454
455 # and set any options; do chmod last to preserve setuid bits.
456 #
457 # If any of these fail, we abort the whole thing. If we want to
458 # ignore errors from any of these, just make sure not to ignore
459 # errors from the above "$doit $cpprog $src $dsttmp" command.
460 #
461 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
462 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
463 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
464 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
465
466 # If -C, don't bother to copy if it wouldn't change the file.
467 if $copy_on_change &&
468 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
469 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
470 set -f &&
471 set X $old && old=:$2:$4:$5:$6 &&
472 set X $new && new=:$2:$4:$5:$6 &&
473 set +f &&
474 test "$old" = "$new" &&
475 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
476 then
477 rm -f "$dsttmp"
478 else
479 # Rename the file to the real destination.
480 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
481
482 # The rename failed, perhaps because mv can't rename something else
483 # to itself, or perhaps because mv is so ancient that it does not
484 # support -f.
485 {
486 # Now remove or move aside any old file at destination location.
487 # We try this two ways since rm can't unlink itself on some
488 # systems and the destination file might be busy for other
489 # reasons. In this case, the final cleanup might fail but the new
490 # file should still install successfully.
491 {
492 test ! -f "$dst" ||
493 $doit $rmcmd -f "$dst" 2>/dev/null ||
494 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
495 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
496 } ||
497 { echo "$0: cannot unlink or rename $dst" >&2
498 (exit 1); exit 1
499 }
500 } &&
501
502 # Now rename the file to the real destination.
503 $doit $mvcmd "$dsttmp" "$dst"
504 }
505 fi || exit 1
506
507 trap '' 0
508 fi
509 done
510
511 # Local variables:
512 # eval: (add-hook 'before-save-hook 'time-stamp)
513 # time-stamp-start: "scriptversion="
514 # time-stamp-format: "%:y-%02m-%02d.%02H"
515 # time-stamp-time-zone: "UTC0"
516 # time-stamp-end: "; # UTC"
517 # End:
+0
-11346
ltmain.sh less more
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
6 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
9 # This is free software; see the source for copying conditions. There is NO
10 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12 # GNU Libtool is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # As a special exception to the GNU General Public License,
18 # if you distribute this file as part of a program or library that
19 # is built using GNU Libtool, you may include this file under the
20 # same distribution terms that you use for the rest of that program.
21 #
22 # GNU Libtool is distributed in the hope that it will be useful, but
23 # WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 # General Public License for more details.
26 #
27 # You should have received a copy of the GNU General Public License
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
30
31 PROGRAM=libtool
32 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-4"
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-10-12.13; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
118 emulate sh
119 NULLCMD=:
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
121 # is contrary to our usage. Disable this feature.
122 alias -g '${1+"$@"}'='"$@"'
123 setopt NO_GLOB_SUBST
124 else
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
126 fi
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
132 do
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
139 fi"
140 done
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
401
402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
403 # is ksh but when the shell is invoked as "sh" and the current value of
404 # the _XPG environment variable is not equal to 1 (one), the special
405 # positional parameter $0, within a function call, is the name of the
406 # function.
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_arg pretty "$2"
583 eval "$1+=\\ \$func_quote_arg_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_arg pretty "$2"
591 eval "$1=\$$1\\ \$func_quote_arg_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
680 # otherwise set result to NONDIR_REPLACEMENT.
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
692 # call:
693 # dirname: Compute the dirname of FILE. If nonempty,
694 # add APPEND to the result, otherwise set result
695 # to NONDIR_REPLACEMENT.
696 # value returned in "$func_dirname_result"
697 # basename: Compute filename of FILE.
698 # value retuned in "$func_basename_result"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
898 else
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
916 fi
917
918 $ECHO "$_G_tmpdir"
919 }
920
921
922 # func_normal_abspath PATH
923 # ------------------------
924 # Remove doubled-up and trailing slashes, "." path components,
925 # and cancel out any ".." path components in PATH after making
926 # it an absolute path.
927 func_normal_abspath ()
928 {
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
984 fi
985 break
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
1020
1021 # A bug in bash halts the script if the last line of a function
1022 # fails when set -e is in force, so we need another command to
1023 # work around that:
1024 :
1025 }
1026
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
1089 :
1090 }
1091
1092
1093 # func_quote_portable EVAL ARG
1094 # ----------------------------
1095 # Internal function to portably implement func_quote_arg. Note that we still
1096 # keep attention to performance here so we as much as possible try to avoid
1097 # calling sed binary (so far O(N) complexity as long as func_append is O(1)).
1098 func_quote_portable ()
1099 {
1100 $debug_cmd
1101
1102 func_quote_portable_result=$2
1103
1104 # one-time-loop (easy break)
1105 while true
1106 do
1107 if $1; then
1108 func_quote_portable_result=`$ECHO "$2" | $SED \
1109 -e "$sed_double_quote_subst" -e "$sed_double_backslash"`
1110 break
1111 fi
1112
1113 # Quote for eval.
1114 case $func_quote_portable_result in
1115 *[\\\`\"\$]*)
1116 case $func_quote_portable_result in
1117 *[\[\*\?]*)
1118 func_quote_portable_result=`$ECHO "$func_quote_portable_result" | $SED "$sed_quote_subst"`
1119 break
1120 ;;
1121 esac
1122
1123 func_quote_portable_old_IFS=$IFS
1124 for _G_char in '\' '`' '"' '$'
1125 do
1126 # STATE($1) PREV($2) SEPARATOR($3)
1127 set start "" ""
1128 func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy
1129 IFS=$_G_char
1130 for _G_part in $func_quote_portable_result
1131 do
1132 case $1 in
1133 quote)
1134 func_append func_quote_portable_result "$3$2"
1135 set quote "$_G_part" "\\$_G_char"
1136 ;;
1137 start)
1138 set first "" ""
1139 func_quote_portable_result=
1140 ;;
1141 first)
1142 set quote "$_G_part" ""
1143 ;;
1144 esac
1145 done
1146 done
1147 IFS=$func_quote_portable_old_IFS
1148 ;;
1149 *) ;;
1150 esac
1151 break
1152 done
1153
1154 func_quote_portable_unquoted_result=$func_quote_portable_result
1155 case $func_quote_portable_result in
1156 # double-quote args containing shell metacharacters to delay
1157 # word splitting, command substitution and variable expansion
1158 # for a subsequent eval.
1159 # many bourne shells cannot handle close brackets correctly
1160 # in scan sets, so we specify it separately.
1161 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1162 func_quote_portable_result=\"$func_quote_portable_result\"
1163 ;;
1164 esac
1165 }
1166
1167
1168 # func_quotefast_eval ARG
1169 # -----------------------
1170 # Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG',
1171 # but optimized for speed. Result is stored in $func_quotefast_eval.
1172 if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then
1173 func_quotefast_eval ()
1174 {
1175 printf -v func_quotefast_eval_result %q "$1"
1176 }
1177 else
1178 func_quotefast_eval ()
1179 {
1180 func_quote_portable false "$1"
1181 func_quotefast_eval_result=$func_quote_portable_result
1182 }
1183 fi
1184
1185
1186 # func_quote_arg MODEs ARG
1187 # ------------------------
1188 # Quote one ARG to be evaled later. MODEs argument may contain zero ore more
1189 # specifiers listed below separated by ',' character. This function returns two
1190 # values:
1191 # i) func_quote_arg_result
1192 # double-quoted (when needed), suitable for a subsequent eval
1193 # ii) func_quote_arg_unquoted_result
1194 # has all characters that are still active within double
1195 # quotes backslashified. Available only if 'unquoted' is specified.
1196 #
1197 # Available modes:
1198 # ----------------
1199 # 'eval' (default)
1200 # - escape shell special characters
1201 # 'expand'
1202 # - the same as 'eval'; but do not quote variable references
1203 # 'pretty'
1204 # - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might
1205 # later used in func_quote to get output like: 'echo "a b"' instead of
1206 # 'echo a\ b'. This is slower than default on some shells.
1207 # 'unquoted'
1208 # - produce also $func_quote_arg_unquoted_result which does not contain
1209 # wrapping double-quotes.
1210 #
1211 # Examples for 'func_quote_arg pretty,unquoted string':
1212 #
1213 # string | *_result | *_unquoted_result
1214 # ------------+-----------------------+-------------------
1215 # " | \" | \"
1216 # a b | "a b" | a b
1217 # "a b" | "\"a b\"" | \"a b\"
1218 # * | "*" | *
1219 # z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\"
1220 #
1221 # Examples for 'func_quote_arg pretty,unquoted,expand string':
1222 #
1223 # string | *_result | *_unquoted_result
1224 # --------------+---------------------+--------------------
1225 # z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\"
1226 func_quote_arg ()
1227 {
1228 _G_quote_expand=false
1229 case ,$1, in
1230 *,expand,*)
1231 _G_quote_expand=:
1232 ;;
1233 esac
1234
1235 case ,$1, in
1236 *,pretty,*|*,expand,*|*,unquoted,*)
1237 func_quote_portable $_G_quote_expand "$2"
1238 func_quote_arg_result=$func_quote_portable_result
1239 func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result
1240 ;;
1241 *)
1242 # Faster quote-for-eval for some shells.
1243 func_quotefast_eval "$2"
1244 func_quote_arg_result=$func_quotefast_eval_result
1245 ;;
1246 esac
1247 }
1248
1249
1250 # func_quote MODEs ARGs...
1251 # ------------------------
1252 # Quote all ARGs to be evaled later and join them into single command. See
1253 # func_quote_arg's description for more info.
1254 func_quote ()
1255 {
1256 $debug_cmd
1257 _G_func_quote_mode=$1 ; shift
1258 func_quote_result=
1259 while test 0 -lt $#; do
1260 func_quote_arg "$_G_func_quote_mode" "$1"
1261 if test -n "$func_quote_result"; then
1262 func_append func_quote_result " $func_quote_arg_result"
1263 else
1264 func_append func_quote_result "$func_quote_arg_result"
1265 fi
1266 shift
1267 done
1268 }
1269
1270
1271 # func_stripname PREFIX SUFFIX NAME
1272 # ---------------------------------
1273 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1274 # PREFIX and SUFFIX must not contain globbing or regex special
1275 # characters, hashes, percent signs, but SUFFIX may contain a leading
1276 # dot (in which case that matches only a dot).
1277 if test yes = "$_G_HAVE_XSI_OPS"; then
1278 eval 'func_stripname ()
1279 {
1280 $debug_cmd
1281
1282 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1283 # positional parameters, so assign one to ordinary variable first.
1284 func_stripname_result=$3
1285 func_stripname_result=${func_stripname_result#"$1"}
1286 func_stripname_result=${func_stripname_result%"$2"}
1287 }'
1288 else
1289 func_stripname ()
1290 {
1291 $debug_cmd
1292
1293 case $2 in
1294 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1295 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1296 esac
1297 }
1298 fi
1299
1300
1301 # func_show_eval CMD [FAIL_EXP]
1302 # -----------------------------
1303 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
1304 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1305 # is given, then evaluate it.
1306 func_show_eval ()
1307 {
1308 $debug_cmd
1309
1310 _G_cmd=$1
1311 _G_fail_exp=${2-':'}
1312
1313 func_quote_arg pretty,expand "$_G_cmd"
1314 eval "func_notquiet $func_quote_arg_result"
1315
1316 $opt_dry_run || {
1317 eval "$_G_cmd"
1318 _G_status=$?
1319 if test 0 -ne "$_G_status"; then
1320 eval "(exit $_G_status); $_G_fail_exp"
1321 fi
1322 }
1323 }
1324
1325
1326 # func_show_eval_locale CMD [FAIL_EXP]
1327 # ------------------------------------
1328 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
1329 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1330 # is given, then evaluate it. Use the saved locale for evaluation.
1331 func_show_eval_locale ()
1332 {
1333 $debug_cmd
1334
1335 _G_cmd=$1
1336 _G_fail_exp=${2-':'}
1337
1338 $opt_quiet || {
1339 func_quote_arg expand,pretty "$_G_cmd"
1340 eval "func_echo $func_quote_arg_result"
1341 }
1342
1343 $opt_dry_run || {
1344 eval "$_G_user_locale
1345 $_G_cmd"
1346 _G_status=$?
1347 eval "$_G_safe_locale"
1348 if test 0 -ne "$_G_status"; then
1349 eval "(exit $_G_status); $_G_fail_exp"
1350 fi
1351 }
1352 }
1353
1354
1355 # func_tr_sh
1356 # ----------
1357 # Turn $1 into a string suitable for a shell variable name.
1358 # Result is stored in $func_tr_sh_result. All characters
1359 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1360 # if $1 begins with a digit, a '_' is prepended as well.
1361 func_tr_sh ()
1362 {
1363 $debug_cmd
1364
1365 case $1 in
1366 [0-9]* | *[!a-zA-Z0-9_]*)
1367 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1368 ;;
1369 * )
1370 func_tr_sh_result=$1
1371 ;;
1372 esac
1373 }
1374
1375
1376 # func_verbose ARG...
1377 # -------------------
1378 # Echo program name prefixed message in verbose mode only.
1379 func_verbose ()
1380 {
1381 $debug_cmd
1382
1383 $opt_verbose && func_echo "$*"
1384
1385 :
1386 }
1387
1388
1389 # func_warn_and_continue ARG...
1390 # -----------------------------
1391 # Echo program name prefixed warning message to standard error.
1392 func_warn_and_continue ()
1393 {
1394 $debug_cmd
1395
1396 $require_term_colors
1397
1398 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1399 }
1400
1401
1402 # func_warning CATEGORY ARG...
1403 # ----------------------------
1404 # Echo program name prefixed warning message to standard error. Warning
1405 # messages can be filtered according to CATEGORY, where this function
1406 # elides messages where CATEGORY is not listed in the global variable
1407 # 'opt_warning_types'.
1408 func_warning ()
1409 {
1410 $debug_cmd
1411
1412 # CATEGORY must be in the warning_categories list!
1413 case " $warning_categories " in
1414 *" $1 "*) ;;
1415 *) func_internal_error "invalid warning category '$1'" ;;
1416 esac
1417
1418 _G_category=$1
1419 shift
1420
1421 case " $opt_warning_types " in
1422 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1423 esac
1424 }
1425
1426
1427 # func_sort_ver VER1 VER2
1428 # -----------------------
1429 # 'sort -V' is not generally available.
1430 # Note this deviates from the version comparison in automake
1431 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1432 # but this should suffice as we won't be specifying old
1433 # version formats or redundant trailing .0 in bootstrap.conf.
1434 # If we did want full compatibility then we should probably
1435 # use m4_version_compare from autoconf.
1436 func_sort_ver ()
1437 {
1438 $debug_cmd
1439
1440 printf '%s\n%s\n' "$1" "$2" \
1441 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1442 }
1443
1444 # func_lt_ver PREV CURR
1445 # ---------------------
1446 # Return true if PREV and CURR are in the correct order according to
1447 # func_sort_ver, otherwise false. Use it like this:
1448 #
1449 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1450 func_lt_ver ()
1451 {
1452 $debug_cmd
1453
1454 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1455 }
1456
1457
1458 # Local variables:
1459 # mode: shell-script
1460 # sh-indentation: 2
1461 # eval: (add-hook 'before-save-hook 'time-stamp)
1462 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1463 # time-stamp-time-zone: "UTC"
1464 # End:
1465 #! /bin/sh
1466
1467 # Set a version string for this script.
1468 scriptversion=2015-10-12.13; # UTC
1469
1470 # A portable, pluggable option parser for Bourne shell.
1471 # Written by Gary V. Vaughan, 2010
1472
1473 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1474 # This is free software; see the source for copying conditions. There is NO
1475 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1476
1477 # This program is free software: you can redistribute it and/or modify
1478 # it under the terms of the GNU General Public License as published by
1479 # the Free Software Foundation, either version 3 of the License, or
1480 # (at your option) any later version.
1481
1482 # This program is distributed in the hope that it will be useful,
1483 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1484 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1485 # GNU General Public License for more details.
1486
1487 # You should have received a copy of the GNU General Public License
1488 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1489
1490 # Please report bugs or propose patches to gary@gnu.org.
1491
1492
1493 ## ------ ##
1494 ## Usage. ##
1495 ## ------ ##
1496
1497 # This file is a library for parsing options in your shell scripts along
1498 # with assorted other useful supporting features that you can make use
1499 # of too.
1500 #
1501 # For the simplest scripts you might need only:
1502 #
1503 # #!/bin/sh
1504 # . relative/path/to/funclib.sh
1505 # . relative/path/to/options-parser
1506 # scriptversion=1.0
1507 # func_options ${1+"$@"}
1508 # eval set dummy "$func_options_result"; shift
1509 # ...rest of your script...
1510 #
1511 # In order for the '--version' option to work, you will need to have a
1512 # suitably formatted comment like the one at the top of this file
1513 # starting with '# Written by ' and ending with '# warranty; '.
1514 #
1515 # For '-h' and '--help' to work, you will also need a one line
1516 # description of your script's purpose in a comment directly above the
1517 # '# Written by ' line, like the one at the top of this file.
1518 #
1519 # The default options also support '--debug', which will turn on shell
1520 # execution tracing (see the comment above debug_cmd below for another
1521 # use), and '--verbose' and the func_verbose function to allow your script
1522 # to display verbose messages only when your user has specified
1523 # '--verbose'.
1524 #
1525 # After sourcing this file, you can plug processing for additional
1526 # options by amending the variables from the 'Configuration' section
1527 # below, and following the instructions in the 'Option parsing'
1528 # section further down.
1529
1530 ## -------------- ##
1531 ## Configuration. ##
1532 ## -------------- ##
1533
1534 # You should override these variables in your script after sourcing this
1535 # file so that they reflect the customisations you have added to the
1536 # option parser.
1537
1538 # The usage line for option parsing errors and the start of '-h' and
1539 # '--help' output messages. You can embed shell variables for delayed
1540 # expansion at the time the message is displayed, but you will need to
1541 # quote other shell meta-characters carefully to prevent them being
1542 # expanded when the contents are evaled.
1543 usage='$progpath [OPTION]...'
1544
1545 # Short help message in response to '-h' and '--help'. Add to this or
1546 # override it after sourcing this library to reflect the full set of
1547 # options your script accepts.
1548 usage_message="\
1549 --debug enable verbose shell tracing
1550 -W, --warnings=CATEGORY
1551 report the warnings falling in CATEGORY [all]
1552 -v, --verbose verbosely report processing
1553 --version print version information and exit
1554 -h, --help print short or long help message and exit
1555 "
1556
1557 # Additional text appended to 'usage_message' in response to '--help'.
1558 long_help_message="
1559 Warning categories include:
1560 'all' show all warnings
1561 'none' turn off all the warnings
1562 'error' warnings are treated as fatal errors"
1563
1564 # Help message printed before fatal option parsing errors.
1565 fatal_help="Try '\$progname --help' for more information."
1566
1567
1568
1569 ## ------------------------- ##
1570 ## Hook function management. ##
1571 ## ------------------------- ##
1572
1573 # This section contains functions for adding, removing, and running hooks
1574 # to the main code. A hook is just a named list of of function, that can
1575 # be run in order later on.
1576
1577 # func_hookable FUNC_NAME
1578 # -----------------------
1579 # Declare that FUNC_NAME will run hooks added with
1580 # 'func_add_hook FUNC_NAME ...'.
1581 func_hookable ()
1582 {
1583 $debug_cmd
1584
1585 func_append hookable_fns " $1"
1586 }
1587
1588
1589 # func_add_hook FUNC_NAME HOOK_FUNC
1590 # ---------------------------------
1591 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1592 # first have been declared "hookable" by a call to 'func_hookable'.
1593 func_add_hook ()
1594 {
1595 $debug_cmd
1596
1597 case " $hookable_fns " in
1598 *" $1 "*) ;;
1599 *) func_fatal_error "'$1' does not accept hook functions." ;;
1600 esac
1601
1602 eval func_append ${1}_hooks '" $2"'
1603 }
1604
1605
1606 # func_remove_hook FUNC_NAME HOOK_FUNC
1607 # ------------------------------------
1608 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1609 func_remove_hook ()
1610 {
1611 $debug_cmd
1612
1613 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1614 }
1615
1616
1617 # func_run_hooks FUNC_NAME [ARG]...
1618 # ---------------------------------
1619 # Run all hook functions registered to FUNC_NAME.
1620 # It is assumed that the list of hook functions contains nothing more
1621 # than a whitespace-delimited list of legal shell function names, and
1622 # no effort is wasted trying to catch shell meta-characters or preserve
1623 # whitespace.
1624 func_run_hooks ()
1625 {
1626 $debug_cmd
1627
1628 _G_rc_run_hooks=false
1629
1630 case " $hookable_fns " in
1631 *" $1 "*) ;;
1632 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1633 esac
1634
1635 eval _G_hook_fns=\$$1_hooks; shift
1636
1637 for _G_hook in $_G_hook_fns; do
1638 if eval $_G_hook '"$@"'; then
1639 # store returned options list back into positional
1640 # parameters for next 'cmd' execution.
1641 eval _G_hook_result=\$${_G_hook}_result
1642 eval set dummy "$_G_hook_result"; shift
1643 _G_rc_run_hooks=:
1644 fi
1645 done
1646
1647 $_G_rc_run_hooks && func_run_hooks_result=$_G_hook_result
1648 }
1649
1650
1651
1652 ## --------------- ##
1653 ## Option parsing. ##
1654 ## --------------- ##
1655
1656 # In order to add your own option parsing hooks, you must accept the
1657 # full positional parameter list in your hook function, you may remove/edit
1658 # any options that you action, and then pass back the remaining unprocessed
1659 # options in '<hooked_function_name>_result', escaped suitably for
1660 # 'eval'. In this case you also must return $EXIT_SUCCESS to let the
1661 # hook's caller know that it should pay attention to
1662 # '<hooked_function_name>_result'. Returning $EXIT_FAILURE signalizes that
1663 # arguments are left untouched by the hook and therefore caller will ignore the
1664 # result variable.
1665 #
1666 # Like this:
1667 #
1668 # my_options_prep ()
1669 # {
1670 # $debug_cmd
1671 #
1672 # # Extend the existing usage message.
1673 # usage_message=$usage_message'
1674 # -s, --silent don'\''t print informational messages
1675 # '
1676 # # No change in '$@' (ignored completely by this hook). There is
1677 # # no need to do the equivalent (but slower) action:
1678 # # func_quote eval ${1+"$@"}
1679 # # my_options_prep_result=$func_quote_result
1680 # false
1681 # }
1682 # func_add_hook func_options_prep my_options_prep
1683 #
1684 #
1685 # my_silent_option ()
1686 # {
1687 # $debug_cmd
1688 #
1689 # args_changed=false
1690 #
1691 # # Note that for efficiency, we parse as many options as we can
1692 # # recognise in a loop before passing the remainder back to the
1693 # # caller on the first unrecognised argument we encounter.
1694 # while test $# -gt 0; do
1695 # opt=$1; shift
1696 # case $opt in
1697 # --silent|-s) opt_silent=:
1698 # args_changed=:
1699 # ;;
1700 # # Separate non-argument short options:
1701 # -s*) func_split_short_opt "$_G_opt"
1702 # set dummy "$func_split_short_opt_name" \
1703 # "-$func_split_short_opt_arg" ${1+"$@"}
1704 # shift
1705 # args_changed=:
1706 # ;;
1707 # *) # Make sure the first unrecognised option "$_G_opt"
1708 # # is added back to "$@", we could need that later
1709 # # if $args_changed is true.
1710 # set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1711 # esac
1712 # done
1713 #
1714 # if $args_changed; then
1715 # func_quote eval ${1+"$@"}
1716 # my_silent_option_result=$func_quote_result
1717 # fi
1718 #
1719 # $args_changed
1720 # }
1721 # func_add_hook func_parse_options my_silent_option
1722 #
1723 #
1724 # my_option_validation ()
1725 # {
1726 # $debug_cmd
1727 #
1728 # $opt_silent && $opt_verbose && func_fatal_help "\
1729 # '--silent' and '--verbose' options are mutually exclusive."
1730 #
1731 # false
1732 # }
1733 # func_add_hook func_validate_options my_option_validation
1734 #
1735 # You'll also need to manually amend $usage_message to reflect the extra
1736 # options you parse. It's preferable to append if you can, so that
1737 # multiple option parsing hooks can be added safely.
1738
1739
1740 # func_options_finish [ARG]...
1741 # ----------------------------
1742 # Finishing the option parse loop (call 'func_options' hooks ATM).
1743 func_options_finish ()
1744 {
1745 $debug_cmd
1746
1747 _G_func_options_finish_exit=false
1748 if func_run_hooks func_options ${1+"$@"}; then
1749 func_options_finish_result=$func_run_hooks_result
1750 _G_func_options_finish_exit=:
1751 fi
1752
1753 $_G_func_options_finish_exit
1754 }
1755
1756
1757 # func_options [ARG]...
1758 # ---------------------
1759 # All the functions called inside func_options are hookable. See the
1760 # individual implementations for details.
1761 func_hookable func_options
1762 func_options ()
1763 {
1764 $debug_cmd
1765
1766 _G_rc_options=false
1767
1768 for my_func in options_prep parse_options validate_options options_finish
1769 do
1770 if eval func_$my_func '${1+"$@"}'; then
1771 eval _G_res_var='$'"func_${my_func}_result"
1772 eval set dummy "$_G_res_var" ; shift
1773 _G_rc_options=:
1774 fi
1775 done
1776
1777 # Save modified positional parameters for caller. As a top-level
1778 # options-parser function we always need to set the 'func_options_result'
1779 # variable (regardless the $_G_rc_options value).
1780 if $_G_rc_options; then
1781 func_options_result=$_G_res_var
1782 else
1783 func_quote eval ${1+"$@"}
1784 func_options_result=$func_quote_result
1785 fi
1786
1787 $_G_rc_options
1788 }
1789
1790
1791 # func_options_prep [ARG]...
1792 # --------------------------
1793 # All initialisations required before starting the option parse loop.
1794 # Note that when calling hook functions, we pass through the list of
1795 # positional parameters. If a hook function modifies that list, and
1796 # needs to propagate that back to rest of this script, then the complete
1797 # modified list must be put in 'func_run_hooks_result' before
1798 # returning $EXIT_SUCCESS (otherwise $EXIT_FAILURE is returned).
1799 func_hookable func_options_prep
1800 func_options_prep ()
1801 {
1802 $debug_cmd
1803
1804 # Option defaults:
1805 opt_verbose=false
1806 opt_warning_types=
1807
1808 _G_rc_options_prep=false
1809 if func_run_hooks func_options_prep ${1+"$@"}; then
1810 _G_rc_options_prep=:
1811 # save modified positional parameters for caller
1812 func_options_prep_result=$func_run_hooks_result
1813 fi
1814
1815 $_G_rc_options_prep
1816 }
1817
1818
1819 # func_parse_options [ARG]...
1820 # ---------------------------
1821 # The main option parsing loop.
1822 func_hookable func_parse_options
1823 func_parse_options ()
1824 {
1825 $debug_cmd
1826
1827 func_parse_options_result=
1828
1829 _G_rc_parse_options=false
1830 # this just eases exit handling
1831 while test $# -gt 0; do
1832 # Defer to hook functions for initial option parsing, so they
1833 # get priority in the event of reusing an option name.
1834 if func_run_hooks func_parse_options ${1+"$@"}; then
1835 eval set dummy "$func_run_hooks_result"; shift
1836 _G_rc_parse_options=:
1837 fi
1838
1839 # Break out of the loop if we already parsed every option.
1840 test $# -gt 0 || break
1841
1842 _G_match_parse_options=:
1843 _G_opt=$1
1844 shift
1845 case $_G_opt in
1846 --debug|-x) debug_cmd='set -x'
1847 func_echo "enabling shell trace mode"
1848 $debug_cmd
1849 ;;
1850
1851 --no-warnings|--no-warning|--no-warn)
1852 set dummy --warnings none ${1+"$@"}
1853 shift
1854 ;;
1855
1856 --warnings|--warning|-W)
1857 if test $# = 0 && func_missing_arg $_G_opt; then
1858 _G_rc_parse_options=:
1859 break
1860 fi
1861 case " $warning_categories $1" in
1862 *" $1 "*)
1863 # trailing space prevents matching last $1 above
1864 func_append_uniq opt_warning_types " $1"
1865 ;;
1866 *all)
1867 opt_warning_types=$warning_categories
1868 ;;
1869 *none)
1870 opt_warning_types=none
1871 warning_func=:
1872 ;;
1873 *error)
1874 opt_warning_types=$warning_categories
1875 warning_func=func_fatal_error
1876 ;;
1877 *)
1878 func_fatal_error \
1879 "unsupported warning category: '$1'"
1880 ;;
1881 esac
1882 shift
1883 ;;
1884
1885 --verbose|-v) opt_verbose=: ;;
1886 --version) func_version ;;
1887 -\?|-h) func_usage ;;
1888 --help) func_help ;;
1889
1890 # Separate optargs to long options (plugins may need this):
1891 --*=*) func_split_equals "$_G_opt"
1892 set dummy "$func_split_equals_lhs" \
1893 "$func_split_equals_rhs" ${1+"$@"}
1894 shift
1895 ;;
1896
1897 # Separate optargs to short options:
1898 -W*)
1899 func_split_short_opt "$_G_opt"
1900 set dummy "$func_split_short_opt_name" \
1901 "$func_split_short_opt_arg" ${1+"$@"}
1902 shift
1903 ;;
1904
1905 # Separate non-argument short options:
1906 -\?*|-h*|-v*|-x*)
1907 func_split_short_opt "$_G_opt"
1908 set dummy "$func_split_short_opt_name" \
1909 "-$func_split_short_opt_arg" ${1+"$@"}
1910 shift
1911 ;;
1912
1913 --) _G_rc_parse_options=: ; break ;;
1914 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1915 *) set dummy "$_G_opt" ${1+"$@"}; shift
1916 _G_match_parse_options=false
1917 break
1918 ;;
1919 esac
1920
1921 $_G_match_parse_options && _G_rc_parse_options=:
1922 done
1923
1924
1925 if $_G_rc_parse_options; then
1926 # save modified positional parameters for caller
1927 func_quote eval ${1+"$@"}
1928 func_parse_options_result=$func_quote_result
1929 fi
1930
1931 $_G_rc_parse_options
1932 }
1933
1934
1935 # func_validate_options [ARG]...
1936 # ------------------------------
1937 # Perform any sanity checks on option settings and/or unconsumed
1938 # arguments.
1939 func_hookable func_validate_options
1940 func_validate_options ()
1941 {
1942 $debug_cmd
1943
1944 _G_rc_validate_options=false
1945
1946 # Display all warnings if -W was not given.
1947 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1948
1949 if func_run_hooks func_validate_options ${1+"$@"}; then
1950 # save modified positional parameters for caller
1951 func_validate_options_result=$func_run_hooks_result
1952 _G_rc_validate_options=:
1953 fi
1954
1955 # Bail if the options were screwed!
1956 $exit_cmd $EXIT_FAILURE
1957
1958 $_G_rc_validate_options
1959 }
1960
1961
1962
1963 ## ----------------- ##
1964 ## Helper functions. ##
1965 ## ----------------- ##
1966
1967 # This section contains the helper functions used by the rest of the
1968 # hookable option parser framework in ascii-betical order.
1969
1970
1971 # func_fatal_help ARG...
1972 # ----------------------
1973 # Echo program name prefixed message to standard error, followed by
1974 # a help hint, and exit.
1975 func_fatal_help ()
1976 {
1977 $debug_cmd
1978
1979 eval \$ECHO \""Usage: $usage"\"
1980 eval \$ECHO \""$fatal_help"\"
1981 func_error ${1+"$@"}
1982 exit $EXIT_FAILURE
1983 }
1984
1985
1986 # func_help
1987 # ---------
1988 # Echo long help message to standard output and exit.
1989 func_help ()
1990 {
1991 $debug_cmd
1992
1993 func_usage_message
1994 $ECHO "$long_help_message"
1995 exit 0
1996 }
1997
1998
1999 # func_missing_arg ARGNAME
2000 # ------------------------
2001 # Echo program name prefixed message to standard error and set global
2002 # exit_cmd.
2003 func_missing_arg ()
2004 {
2005 $debug_cmd
2006
2007 func_error "Missing argument for '$1'."
2008 exit_cmd=exit
2009 }
2010
2011
2012 # func_split_equals STRING
2013 # ------------------------
2014 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
2015 # splitting STRING at the '=' sign.
2016 test -z "$_G_HAVE_XSI_OPS" \
2017 && (eval 'x=a/b/c;
2018 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
2019 && _G_HAVE_XSI_OPS=yes
2020
2021 if test yes = "$_G_HAVE_XSI_OPS"
2022 then
2023 # This is an XSI compatible shell, allowing a faster implementation...
2024 eval 'func_split_equals ()
2025 {
2026 $debug_cmd
2027
2028 func_split_equals_lhs=${1%%=*}
2029 func_split_equals_rhs=${1#*=}
2030 test "x$func_split_equals_lhs" = "x$1" \
2031 && func_split_equals_rhs=
2032 }'
2033 else
2034 # ...otherwise fall back to using expr, which is often a shell builtin.
2035 func_split_equals ()
2036 {
2037 $debug_cmd
2038
2039 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
2040 func_split_equals_rhs=
2041 test "x$func_split_equals_lhs" = "x$1" \
2042 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
2043 }
2044 fi #func_split_equals
2045
2046
2047 # func_split_short_opt SHORTOPT
2048 # -----------------------------
2049 # Set func_split_short_opt_name and func_split_short_opt_arg shell
2050 # variables after splitting SHORTOPT after the 2nd character.
2051 if test yes = "$_G_HAVE_XSI_OPS"
2052 then
2053 # This is an XSI compatible shell, allowing a faster implementation...
2054 eval 'func_split_short_opt ()
2055 {
2056 $debug_cmd
2057
2058 func_split_short_opt_arg=${1#??}
2059 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
2060 }'
2061 else
2062 # ...otherwise fall back to using expr, which is often a shell builtin.
2063 func_split_short_opt ()
2064 {
2065 $debug_cmd
2066
2067 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
2068 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
2069 }
2070 fi #func_split_short_opt
2071
2072
2073 # func_usage
2074 # ----------
2075 # Echo short help message to standard output and exit.
2076 func_usage ()
2077 {
2078 $debug_cmd
2079
2080 func_usage_message
2081 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
2082 exit 0
2083 }
2084
2085
2086 # func_usage_message
2087 # ------------------
2088 # Echo short help message to standard output.
2089 func_usage_message ()
2090 {
2091 $debug_cmd
2092
2093 eval \$ECHO \""Usage: $usage"\"
2094 echo
2095 $SED -n 's|^# ||
2096 /^Written by/{
2097 x;p;x
2098 }
2099 h
2100 /^Written by/q' < "$progpath"
2101 echo
2102 eval \$ECHO \""$usage_message"\"
2103 }
2104
2105
2106 # func_version
2107 # ------------
2108 # Echo version message to standard output and exit.
2109 func_version ()
2110 {
2111 $debug_cmd
2112
2113 printf '%s\n' "$progname $scriptversion"
2114 $SED -n '
2115 /(C)/!b go
2116 :more
2117 /\./!{
2118 N
2119 s|\n# | |
2120 b more
2121 }
2122 :go
2123 /^# Written by /,/# warranty; / {
2124 s|^# ||
2125 s|^# *$||
2126 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
2127 p
2128 }
2129 /^# Written by / {
2130 s|^# ||
2131 p
2132 }
2133 /^warranty; /q' < "$progpath"
2134
2135 exit $?
2136 }
2137
2138
2139 # Local variables:
2140 # mode: shell-script
2141 # sh-indentation: 2
2142 # eval: (add-hook 'before-save-hook 'time-stamp)
2143 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
2144 # time-stamp-time-zone: "UTC"
2145 # End:
2146
2147 # Set a version string.
2148 scriptversion='(GNU libtool) 2.4.6'
2149
2150
2151 # func_echo ARG...
2152 # ----------------
2153 # Libtool also displays the current mode in messages, so override
2154 # funclib.sh func_echo with this custom definition.
2155 func_echo ()
2156 {
2157 $debug_cmd
2158
2159 _G_message=$*
2160
2161 func_echo_IFS=$IFS
2162 IFS=$nl
2163 for _G_line in $_G_message; do
2164 IFS=$func_echo_IFS
2165 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
2166 done
2167 IFS=$func_echo_IFS
2168 }
2169
2170
2171 # func_warning ARG...
2172 # -------------------
2173 # Libtool warnings are not categorized, so override funclib.sh
2174 # func_warning with this simpler definition.
2175 func_warning ()
2176 {
2177 $debug_cmd
2178
2179 $warning_func ${1+"$@"}
2180 }
2181
2182
2183 ## ---------------- ##
2184 ## Options parsing. ##
2185 ## ---------------- ##
2186
2187 # Hook in the functions to make sure our own options are parsed during
2188 # the option parsing loop.
2189
2190 usage='$progpath [OPTION]... [MODE-ARG]...'
2191
2192 # Short help message in response to '-h'.
2193 usage_message="Options:
2194 --config show all configuration variables
2195 --debug enable verbose shell tracing
2196 -n, --dry-run display commands without modifying any files
2197 --features display basic configuration information and exit
2198 --mode=MODE use operation mode MODE
2199 --no-warnings equivalent to '-Wnone'
2200 --preserve-dup-deps don't remove duplicate dependency libraries
2201 --quiet, --silent don't print informational messages
2202 --tag=TAG use configuration variables from tag TAG
2203 -v, --verbose print more informational messages than default
2204 --version print version information
2205 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2206 -h, --help, --help-all print short, long, or detailed help message
2207 "
2208
2209 # Additional text appended to 'usage_message' in response to '--help'.
2210 func_help ()
2211 {
2212 $debug_cmd
2213
2214 func_usage_message
2215 $ECHO "$long_help_message
2216
2217 MODE must be one of the following:
2218
2219 clean remove files from the build directory
2220 compile compile a source file into a libtool object
2221 execute automatically set library path, then run a program
2222 finish complete the installation of libtool libraries
2223 install install libraries or executables
2224 link create a library or an executable
2225 uninstall remove libraries from an installed directory
2226
2227 MODE-ARGS vary depending on the MODE. When passed as first option,
2228 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2229 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2230
2231 When reporting a bug, please describe a test case to reproduce it and
2232 include the following information:
2233
2234 host-triplet: $host
2235 shell: $SHELL
2236 compiler: $LTCC
2237 compiler flags: $LTCFLAGS
2238 linker: $LD (gnu? $with_gnu_ld)
2239 version: $progname $scriptversion Debian-2.4.6-4
2240 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2241 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2242
2243 Report bugs to <bug-libtool@gnu.org>.
2244 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2245 General help using GNU software: <http://www.gnu.org/gethelp/>."
2246 exit 0
2247 }
2248
2249
2250 # func_lo2o OBJECT-NAME
2251 # ---------------------
2252 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2253 # object suffix.
2254
2255 lo2o=s/\\.lo\$/.$objext/
2256 o2lo=s/\\.$objext\$/.lo/
2257
2258 if test yes = "$_G_HAVE_XSI_OPS"; then
2259 eval 'func_lo2o ()
2260 {
2261 case $1 in
2262 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2263 * ) func_lo2o_result=$1 ;;
2264 esac
2265 }'
2266
2267 # func_xform LIBOBJ-OR-SOURCE
2268 # ---------------------------
2269 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2270 # suffix to a '.lo' libtool-object suffix.
2271 eval 'func_xform ()
2272 {
2273 func_xform_result=${1%.*}.lo
2274 }'
2275 else
2276 # ...otherwise fall back to using sed.
2277 func_lo2o ()
2278 {
2279 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2280 }
2281
2282 func_xform ()
2283 {
2284 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2285 }
2286 fi
2287
2288
2289 # func_fatal_configuration ARG...
2290 # -------------------------------
2291 # Echo program name prefixed message to standard error, followed by
2292 # a configuration failure hint, and exit.
2293 func_fatal_configuration ()
2294 {
2295 func__fatal_error ${1+"$@"} \
2296 "See the $PACKAGE documentation for more information." \
2297 "Fatal configuration error."
2298 }
2299
2300
2301 # func_config
2302 # -----------
2303 # Display the configuration for all the tags in this script.
2304 func_config ()
2305 {
2306 re_begincf='^# ### BEGIN LIBTOOL'
2307 re_endcf='^# ### END LIBTOOL'
2308
2309 # Default configuration.
2310 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
2311
2312 # Now print the configurations for the tags.
2313 for tagname in $taglist; do
2314 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2315 done
2316
2317 exit $?
2318 }
2319
2320
2321 # func_features
2322 # -------------
2323 # Display the features supported by this script.
2324 func_features ()
2325 {
2326 echo "host: $host"
2327 if test yes = "$build_libtool_libs"; then
2328 echo "enable shared libraries"
2329 else
2330 echo "disable shared libraries"
2331 fi
2332 if test yes = "$build_old_libs"; then
2333 echo "enable static libraries"
2334 else
2335 echo "disable static libraries"
2336 fi
2337
2338 exit $?
2339 }
2340
2341
2342 # func_enable_tag TAGNAME
2343 # -----------------------
2344 # Verify that TAGNAME is valid, and either flag an error and exit, or
2345 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
2346 # variable here.
2347 func_enable_tag ()
2348 {
2349 # Global variable:
2350 tagname=$1
2351
2352 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2353 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2354 sed_extractcf=/$re_begincf/,/$re_endcf/p
2355
2356 # Validate tagname.
2357 case $tagname in
2358 *[!-_A-Za-z0-9,/]*)
2359 func_fatal_error "invalid tag name: $tagname"
2360 ;;
2361 esac
2362
2363 # Don't test for the "default" C tag, as we know it's
2364 # there but not specially marked.
2365 case $tagname in
2366 CC) ;;
2367 *)
2368 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2369 taglist="$taglist $tagname"
2370
2371 # Evaluate the configuration. Be careful to quote the path
2372 # and the sed script, to avoid splitting on whitespace, but
2373 # also don't use non-portable quotes within backquotes within
2374 # quotes we have to do it in 2 steps:
2375 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2376 eval "$extractedcf"
2377 else
2378 func_error "ignoring unknown tag $tagname"
2379 fi
2380 ;;
2381 esac
2382 }
2383
2384
2385 # func_check_version_match
2386 # ------------------------
2387 # Ensure that we are using m4 macros, and libtool script from the same
2388 # release of libtool.
2389 func_check_version_match ()
2390 {
2391 if test "$package_revision" != "$macro_revision"; then
2392 if test "$VERSION" != "$macro_version"; then
2393 if test -z "$macro_version"; then
2394 cat >&2 <<_LT_EOF
2395 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
2396 $progname: definition of this LT_INIT comes from an older release.
2397 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
2398 $progname: and run autoconf again.
2399 _LT_EOF
2400 else
2401 cat >&2 <<_LT_EOF
2402 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
2403 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
2404 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
2405 $progname: and run autoconf again.
2406 _LT_EOF
2407 fi
2408 else
2409 cat >&2 <<_LT_EOF
2410 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
2411 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
2412 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
2413 $progname: of $PACKAGE $VERSION and run autoconf again.
2414 _LT_EOF
2415 fi
2416
2417 exit $EXIT_MISMATCH
2418 fi
2419 }
2420
2421
2422 # libtool_options_prep [ARG]...
2423 # -----------------------------
2424 # Preparation for options parsed by libtool.
2425 libtool_options_prep ()
2426 {
2427 $debug_mode
2428
2429 # Option defaults:
2430 opt_config=false
2431 opt_dlopen=
2432 opt_dry_run=false
2433 opt_help=false
2434 opt_mode=
2435 opt_preserve_dup_deps=false
2436 opt_quiet=false
2437
2438 nonopt=
2439 preserve_args=
2440
2441 _G_rc_lt_options_prep=:
2442
2443 # Shorthand for --mode=foo, only valid as the first argument
2444 case $1 in
2445 clean|clea|cle|cl)
2446 shift; set dummy --mode clean ${1+"$@"}; shift
2447 ;;
2448 compile|compil|compi|comp|com|co|c)
2449 shift; set dummy --mode compile ${1+"$@"}; shift
2450 ;;
2451 execute|execut|execu|exec|exe|ex|e)
2452 shift; set dummy --mode execute ${1+"$@"}; shift
2453 ;;
2454 finish|finis|fini|fin|fi|f)
2455 shift; set dummy --mode finish ${1+"$@"}; shift
2456 ;;
2457 install|instal|insta|inst|ins|in|i)
2458 shift; set dummy --mode install ${1+"$@"}; shift
2459 ;;
2460 link|lin|li|l)
2461 shift; set dummy --mode link ${1+"$@"}; shift
2462 ;;
2463 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2464 shift; set dummy --mode uninstall ${1+"$@"}; shift
2465 ;;
2466 *)
2467 _G_rc_lt_options_prep=false
2468 ;;
2469 esac
2470
2471 if $_G_rc_lt_options_prep; then
2472 # Pass back the list of options.
2473 func_quote eval ${1+"$@"}
2474 libtool_options_prep_result=$func_quote_result
2475 fi
2476
2477 $_G_rc_lt_options_prep
2478 }
2479 func_add_hook func_options_prep libtool_options_prep
2480
2481
2482 # libtool_parse_options [ARG]...
2483 # ---------------------------------
2484 # Provide handling for libtool specific options.
2485 libtool_parse_options ()
2486 {
2487 $debug_cmd
2488
2489 _G_rc_lt_parse_options=false
2490
2491 # Perform our own loop to consume as many options as possible in
2492 # each iteration.
2493 while test $# -gt 0; do
2494 _G_match_lt_parse_options=:
2495 _G_opt=$1
2496 shift
2497 case $_G_opt in
2498 --dry-run|--dryrun|-n)
2499 opt_dry_run=:
2500 ;;
2501
2502 --config) func_config ;;
2503
2504 --dlopen|-dlopen)
2505 opt_dlopen="${opt_dlopen+$opt_dlopen
2506 }$1"
2507 shift
2508 ;;
2509
2510 --preserve-dup-deps)
2511 opt_preserve_dup_deps=: ;;
2512
2513 --features) func_features ;;
2514
2515 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2516
2517 --help) opt_help=: ;;
2518
2519 --help-all) opt_help=': help-all' ;;
2520
2521 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2522 opt_mode=$1
2523 case $1 in
2524 # Valid mode arguments:
2525 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2526
2527 # Catch anything else as an error
2528 *) func_error "invalid argument for $_G_opt"
2529 exit_cmd=exit
2530 break
2531 ;;
2532 esac
2533 shift
2534 ;;
2535
2536 --no-silent|--no-quiet)
2537 opt_quiet=false
2538 func_append preserve_args " $_G_opt"
2539 ;;
2540
2541 --no-warnings|--no-warning|--no-warn)
2542 opt_warning=false
2543 func_append preserve_args " $_G_opt"
2544 ;;
2545
2546 --no-verbose)
2547 opt_verbose=false
2548 func_append preserve_args " $_G_opt"
2549 ;;
2550
2551 --silent|--quiet)
2552 opt_quiet=:
2553 opt_verbose=false
2554 func_append preserve_args " $_G_opt"
2555 ;;
2556
2557 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2558 opt_tag=$1
2559 func_append preserve_args " $_G_opt $1"
2560 func_enable_tag "$1"
2561 shift
2562 ;;
2563
2564 --verbose|-v) opt_quiet=false
2565 opt_verbose=:
2566 func_append preserve_args " $_G_opt"
2567 ;;
2568
2569 # An option not handled by this hook function:
2570 *) set dummy "$_G_opt" ${1+"$@"} ; shift
2571 _G_match_lt_parse_options=false
2572 break
2573 ;;
2574 esac
2575 $_G_match_lt_parse_options && _G_rc_lt_parse_options=:
2576 done
2577
2578 if $_G_rc_lt_parse_options; then
2579 # save modified positional parameters for caller
2580 func_quote eval ${1+"$@"}
2581 libtool_parse_options_result=$func_quote_result
2582 fi
2583
2584 $_G_rc_lt_parse_options
2585 }
2586 func_add_hook func_parse_options libtool_parse_options
2587
2588
2589
2590 # libtool_validate_options [ARG]...
2591 # ---------------------------------
2592 # Perform any sanity checks on option settings and/or unconsumed
2593 # arguments.
2594 libtool_validate_options ()
2595 {
2596 # save first non-option argument
2597 if test 0 -lt $#; then
2598 nonopt=$1
2599 shift
2600 fi
2601
2602 # preserve --debug
2603 test : = "$debug_cmd" || func_append preserve_args " --debug"
2604
2605 case $host in
2606 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2607 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2608 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2609 # don't eliminate duplications in $postdeps and $predeps
2610 opt_duplicate_compiler_generated_deps=:
2611 ;;
2612 *)
2613 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2614 ;;
2615 esac
2616
2617 $opt_help || {
2618 # Sanity checks first:
2619 func_check_version_match
2620
2621 test yes != "$build_libtool_libs" \
2622 && test yes != "$build_old_libs" \
2623 && func_fatal_configuration "not configured to build any kind of library"
2624
2625 # Darwin sucks
2626 eval std_shrext=\"$shrext_cmds\"
2627
2628 # Only execute mode is allowed to have -dlopen flags.
2629 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2630 func_error "unrecognized option '-dlopen'"
2631 $ECHO "$help" 1>&2
2632 exit $EXIT_FAILURE
2633 fi
2634
2635 # Change the help message to a mode-specific one.
2636 generic_help=$help
2637 help="Try '$progname --help --mode=$opt_mode' for more information."
2638 }
2639
2640 # Pass back the unparsed argument list
2641 func_quote eval ${1+"$@"}
2642 libtool_validate_options_result=$func_quote_result
2643 }
2644 func_add_hook func_validate_options libtool_validate_options
2645
2646
2647 # Process options as early as possible so that --help and --version
2648 # can return quickly.
2649 func_options ${1+"$@"}
2650 eval set dummy "$func_options_result"; shift
2651
2652
2653
2654 ## ----------- ##
2655 ## Main. ##
2656 ## ----------- ##
2657
2658 magic='%%%MAGIC variable%%%'
2659 magic_exe='%%%MAGIC EXE variable%%%'
2660
2661 # Global variables.
2662 extracted_archives=
2663 extracted_serial=0
2664
2665 # If this variable is set in any of the actions, the command in it
2666 # will be execed at the end. This prevents here-documents from being
2667 # left over by shells.
2668 exec_cmd=
2669
2670
2671 # A function that is used when there is no print builtin or printf.
2672 func_fallback_echo ()
2673 {
2674 eval 'cat <<_LTECHO_EOF
2675 $1
2676 _LTECHO_EOF'
2677 }
2678
2679 # func_generated_by_libtool
2680 # True iff stdin has been generated by Libtool. This function is only
2681 # a basic sanity check; it will hardly flush out determined imposters.
2682 func_generated_by_libtool_p ()
2683 {
2684 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2685 }
2686
2687 # func_lalib_p file
2688 # True iff FILE is a libtool '.la' library or '.lo' object file.
2689 # This function is only a basic sanity check; it will hardly flush out
2690 # determined imposters.
2691 func_lalib_p ()
2692 {
2693 test -f "$1" &&
2694 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2695 }
2696
2697 # func_lalib_unsafe_p file
2698 # True iff FILE is a libtool '.la' library or '.lo' object file.
2699 # This function implements the same check as func_lalib_p without
2700 # resorting to external programs. To this end, it redirects stdin and
2701 # closes it afterwards, without saving the original file descriptor.
2702 # As a safety measure, use it only where a negative result would be
2703 # fatal anyway. Works if 'file' does not exist.
2704 func_lalib_unsafe_p ()
2705 {
2706 lalib_p=no
2707 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2708 for lalib_p_l in 1 2 3 4
2709 do
2710 read lalib_p_line
2711 case $lalib_p_line in
2712 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
2713 esac
2714 done
2715 exec 0<&5 5<&-
2716 fi
2717 test yes = "$lalib_p"
2718 }
2719
2720 # func_ltwrapper_script_p file
2721 # True iff FILE is a libtool wrapper script
2722 # This function is only a basic sanity check; it will hardly flush out
2723 # determined imposters.
2724 func_ltwrapper_script_p ()
2725 {
2726 test -f "$1" &&
2727 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
2728 }
2729
2730 # func_ltwrapper_executable_p file
2731 # True iff FILE is a libtool wrapper executable
2732 # This function is only a basic sanity check; it will hardly flush out
2733 # determined imposters.
2734 func_ltwrapper_executable_p ()
2735 {
2736 func_ltwrapper_exec_suffix=
2737 case $1 in
2738 *.exe) ;;
2739 *) func_ltwrapper_exec_suffix=.exe ;;
2740 esac
2741 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
2742 }
2743
2744 # func_ltwrapper_scriptname file
2745 # Assumes file is an ltwrapper_executable
2746 # uses $file to determine the appropriate filename for a
2747 # temporary ltwrapper_script.
2748 func_ltwrapper_scriptname ()
2749 {
2750 func_dirname_and_basename "$1" "" "."
2751 func_stripname '' '.exe' "$func_basename_result"
2752 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
2753 }
2754
2755 # func_ltwrapper_p file
2756 # True iff FILE is a libtool wrapper script or wrapper executable
2757 # This function is only a basic sanity check; it will hardly flush out
2758 # determined imposters.
2759 func_ltwrapper_p ()
2760 {
2761 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
2762 }
2763
2764
2765 # func_execute_cmds commands fail_cmd
2766 # Execute tilde-delimited COMMANDS.
2767 # If FAIL_CMD is given, eval that upon failure.
2768 # FAIL_CMD may read-access the current command in variable CMD!
2769 func_execute_cmds ()
2770 {
2771 $debug_cmd
2772
2773 save_ifs=$IFS; IFS='~'
2774 for cmd in $1; do
2775 IFS=$sp$nl
2776 eval cmd=\"$cmd\"
2777 IFS=$save_ifs
2778 func_show_eval "$cmd" "${2-:}"
2779 done
2780 IFS=$save_ifs
2781 }
2782
2783
2784 # func_source file
2785 # Source FILE, adding directory component if necessary.
2786 # Note that it is not necessary on cygwin/mingw to append a dot to
2787 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2788 # behavior happens only for exec(3), not for open(2)! Also, sourcing
2789 # 'FILE.' does not work on cygwin managed mounts.
2790 func_source ()
2791 {
2792 $debug_cmd
2793
2794 case $1 in
2795 */* | *\\*) . "$1" ;;
2796 *) . "./$1" ;;
2797 esac
2798 }
2799
2800
2801 # func_resolve_sysroot PATH
2802 # Replace a leading = in PATH with a sysroot. Store the result into
2803 # func_resolve_sysroot_result
2804 func_resolve_sysroot ()
2805 {
2806 func_resolve_sysroot_result=$1
2807 case $func_resolve_sysroot_result in
2808 =*)
2809 func_stripname '=' '' "$func_resolve_sysroot_result"
2810 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
2811 ;;
2812 esac
2813 }
2814
2815 # func_replace_sysroot PATH
2816 # If PATH begins with the sysroot, replace it with = and
2817 # store the result into func_replace_sysroot_result.
2818 func_replace_sysroot ()
2819 {
2820 case $lt_sysroot:$1 in
2821 ?*:"$lt_sysroot"*)
2822 func_stripname "$lt_sysroot" '' "$1"
2823 func_replace_sysroot_result='='$func_stripname_result
2824 ;;
2825 *)
2826 # Including no sysroot.
2827 func_replace_sysroot_result=$1
2828 ;;
2829 esac
2830 }
2831
2832 # func_infer_tag arg
2833 # Infer tagged configuration to use if any are available and
2834 # if one wasn't chosen via the "--tag" command line option.
2835 # Only attempt this if the compiler in the base compile
2836 # command doesn't match the default compiler.
2837 # arg is usually of the form 'gcc ...'
2838 func_infer_tag ()
2839 {
2840 $debug_cmd
2841
2842 if test -n "$available_tags" && test -z "$tagname"; then
2843 CC_quoted=
2844 for arg in $CC; do
2845 func_append_quoted CC_quoted "$arg"
2846 done
2847 CC_expanded=`func_echo_all $CC`
2848 CC_quoted_expanded=`func_echo_all $CC_quoted`
2849 case $@ in
2850 # Blanks in the command may have been stripped by the calling shell,
2851 # but not from the CC environment variable when configure was run.
2852 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
2853 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
2854 # Blanks at the start of $base_compile will cause this to fail
2855 # if we don't check for them as well.
2856 *)
2857 for z in $available_tags; do
2858 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
2859 # Evaluate the configuration.
2860 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2861 CC_quoted=
2862 for arg in $CC; do
2863 # Double-quote args containing other shell metacharacters.
2864 func_append_quoted CC_quoted "$arg"
2865 done
2866 CC_expanded=`func_echo_all $CC`
2867 CC_quoted_expanded=`func_echo_all $CC_quoted`
2868 case "$@ " in
2869 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
2870 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
2871 # The compiler in the base compile command matches
2872 # the one in the tagged configuration.
2873 # Assume this is the tagged configuration we want.
2874 tagname=$z
2875 break
2876 ;;
2877 esac
2878 fi
2879 done
2880 # If $tagname still isn't set, then no tagged configuration
2881 # was found and let the user know that the "--tag" command
2882 # line option must be used.
2883 if test -z "$tagname"; then
2884 func_echo "unable to infer tagged configuration"
2885 func_fatal_error "specify a tag with '--tag'"
2886 # else
2887 # func_verbose "using $tagname tagged configuration"
2888 fi
2889 ;;
2890 esac
2891 fi
2892 }
2893
2894
2895
2896 # func_write_libtool_object output_name pic_name nonpic_name
2897 # Create a libtool object file (analogous to a ".la" file),
2898 # but don't create it if we're doing a dry run.
2899 func_write_libtool_object ()
2900 {
2901 write_libobj=$1
2902 if test yes = "$build_libtool_libs"; then
2903 write_lobj=\'$2\'
2904 else
2905 write_lobj=none
2906 fi
2907
2908 if test yes = "$build_old_libs"; then
2909 write_oldobj=\'$3\'
2910 else
2911 write_oldobj=none
2912 fi
2913
2914 $opt_dry_run || {
2915 cat >${write_libobj}T <<EOF
2916 # $write_libobj - a libtool object file
2917 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
2918 #
2919 # Please DO NOT delete this file!
2920 # It is necessary for linking the library.
2921
2922 # Name of the PIC object.
2923 pic_object=$write_lobj
2924
2925 # Name of the non-PIC object
2926 non_pic_object=$write_oldobj
2927
2928 EOF
2929 $MV "${write_libobj}T" "$write_libobj"
2930 }
2931 }
2932
2933
2934 ##################################################
2935 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
2936 ##################################################
2937
2938 # func_convert_core_file_wine_to_w32 ARG
2939 # Helper function used by file name conversion functions when $build is *nix,
2940 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
2941 # correctly configured wine environment available, with the winepath program
2942 # in $build's $PATH.
2943 #
2944 # ARG is the $build file name to be converted to w32 format.
2945 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
2946 # be empty on error (or when ARG is empty)
2947 func_convert_core_file_wine_to_w32 ()
2948 {
2949 $debug_cmd
2950
2951 func_convert_core_file_wine_to_w32_result=$1
2952 if test -n "$1"; then
2953 # Unfortunately, winepath does not exit with a non-zero error code, so we
2954 # are forced to check the contents of stdout. On the other hand, if the
2955 # command is not found, the shell will set an exit code of 127 and print
2956 # *an error message* to stdout. So we must check for both error code of
2957 # zero AND non-empty stdout, which explains the odd construction:
2958 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
2959 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
2960 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
2961 $SED -e "$sed_naive_backslashify"`
2962 else
2963 func_convert_core_file_wine_to_w32_result=
2964 fi
2965 fi
2966 }
2967 # end: func_convert_core_file_wine_to_w32
2968
2969
2970 # func_convert_core_path_wine_to_w32 ARG
2971 # Helper function used by path conversion functions when $build is *nix, and
2972 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
2973 # configured wine environment available, with the winepath program in $build's
2974 # $PATH. Assumes ARG has no leading or trailing path separator characters.
2975 #
2976 # ARG is path to be converted from $build format to win32.
2977 # Result is available in $func_convert_core_path_wine_to_w32_result.
2978 # Unconvertible file (directory) names in ARG are skipped; if no directory names
2979 # are convertible, then the result may be empty.
2980 func_convert_core_path_wine_to_w32 ()
2981 {
2982 $debug_cmd
2983
2984 # unfortunately, winepath doesn't convert paths, only file names
2985 func_convert_core_path_wine_to_w32_result=
2986 if test -n "$1"; then
2987 oldIFS=$IFS
2988 IFS=:
2989 for func_convert_core_path_wine_to_w32_f in $1; do
2990 IFS=$oldIFS
2991 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
2992 if test -n "$func_convert_core_file_wine_to_w32_result"; then
2993 if test -z "$func_convert_core_path_wine_to_w32_result"; then
2994 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
2995 else
2996 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
2997 fi
2998 fi
2999 done
3000 IFS=$oldIFS
3001 fi
3002 }
3003 # end: func_convert_core_path_wine_to_w32
3004
3005
3006 # func_cygpath ARGS...
3007 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
3008 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
3009 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
3010 # (2), returns the Cygwin file name or path in func_cygpath_result (input
3011 # file name or path is assumed to be in w32 format, as previously converted
3012 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
3013 # or path in func_cygpath_result (input file name or path is assumed to be in
3014 # Cygwin format). Returns an empty string on error.
3015 #
3016 # ARGS are passed to cygpath, with the last one being the file name or path to
3017 # be converted.
3018 #
3019 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
3020 # environment variable; do not put it in $PATH.
3021 func_cygpath ()
3022 {
3023 $debug_cmd
3024
3025 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
3026 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
3027 if test "$?" -ne 0; then
3028 # on failure, ensure result is empty
3029 func_cygpath_result=
3030 fi
3031 else
3032 func_cygpath_result=
3033 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
3034 fi
3035 }
3036 #end: func_cygpath
3037
3038
3039 # func_convert_core_msys_to_w32 ARG
3040 # Convert file name or path ARG from MSYS format to w32 format. Return
3041 # result in func_convert_core_msys_to_w32_result.
3042 func_convert_core_msys_to_w32 ()
3043 {
3044 $debug_cmd
3045
3046 # awkward: cmd appends spaces to result
3047 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
3048 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
3049 }
3050 #end: func_convert_core_msys_to_w32
3051
3052
3053 # func_convert_file_check ARG1 ARG2
3054 # Verify that ARG1 (a file name in $build format) was converted to $host
3055 # format in ARG2. Otherwise, emit an error message, but continue (resetting
3056 # func_to_host_file_result to ARG1).
3057 func_convert_file_check ()
3058 {
3059 $debug_cmd
3060
3061 if test -z "$2" && test -n "$1"; then
3062 func_error "Could not determine host file name corresponding to"
3063 func_error " '$1'"
3064 func_error "Continuing, but uninstalled executables may not work."
3065 # Fallback:
3066 func_to_host_file_result=$1
3067 fi
3068 }
3069 # end func_convert_file_check
3070
3071
3072 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
3073 # Verify that FROM_PATH (a path in $build format) was converted to $host
3074 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
3075 # func_to_host_file_result to a simplistic fallback value (see below).
3076 func_convert_path_check ()
3077 {
3078 $debug_cmd
3079
3080 if test -z "$4" && test -n "$3"; then
3081 func_error "Could not determine the host path corresponding to"
3082 func_error " '$3'"
3083 func_error "Continuing, but uninstalled executables may not work."
3084 # Fallback. This is a deliberately simplistic "conversion" and
3085 # should not be "improved". See libtool.info.
3086 if test "x$1" != "x$2"; then
3087 lt_replace_pathsep_chars="s|$1|$2|g"
3088 func_to_host_path_result=`echo "$3" |
3089 $SED -e "$lt_replace_pathsep_chars"`
3090 else
3091 func_to_host_path_result=$3
3092 fi
3093 fi
3094 }
3095 # end func_convert_path_check
3096
3097
3098 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
3099 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
3100 # and appending REPL if ORIG matches BACKPAT.
3101 func_convert_path_front_back_pathsep ()
3102 {
3103 $debug_cmd
3104
3105 case $4 in
3106 $1 ) func_to_host_path_result=$3$func_to_host_path_result
3107 ;;
3108 esac
3109 case $4 in
3110 $2 ) func_append func_to_host_path_result "$3"
3111 ;;
3112 esac
3113 }
3114 # end func_convert_path_front_back_pathsep
3115
3116
3117 ##################################################
3118 # $build to $host FILE NAME CONVERSION FUNCTIONS #
3119 ##################################################
3120 # invoked via '$to_host_file_cmd ARG'
3121 #
3122 # In each case, ARG is the path to be converted from $build to $host format.
3123 # Result will be available in $func_to_host_file_result.
3124
3125
3126 # func_to_host_file ARG
3127 # Converts the file name ARG from $build format to $host format. Return result
3128 # in func_to_host_file_result.
3129 func_to_host_file ()
3130 {
3131 $debug_cmd
3132
3133 $to_host_file_cmd "$1"
3134 }
3135 # end func_to_host_file
3136
3137
3138 # func_to_tool_file ARG LAZY
3139 # converts the file name ARG from $build format to toolchain format. Return
3140 # result in func_to_tool_file_result. If the conversion in use is listed
3141 # in (the comma separated) LAZY, no conversion takes place.
3142 func_to_tool_file ()
3143 {
3144 $debug_cmd
3145
3146 case ,$2, in
3147 *,"$to_tool_file_cmd",*)
3148 func_to_tool_file_result=$1
3149 ;;
3150 *)
3151 $to_tool_file_cmd "$1"
3152 func_to_tool_file_result=$func_to_host_file_result
3153 ;;
3154 esac
3155 }
3156 # end func_to_tool_file
3157
3158
3159 # func_convert_file_noop ARG
3160 # Copy ARG to func_to_host_file_result.
3161 func_convert_file_noop ()
3162 {
3163 func_to_host_file_result=$1
3164 }
3165 # end func_convert_file_noop
3166
3167
3168 # func_convert_file_msys_to_w32 ARG
3169 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
3170 # conversion to w32 is not available inside the cwrapper. Returns result in
3171 # func_to_host_file_result.
3172 func_convert_file_msys_to_w32 ()
3173 {
3174 $debug_cmd
3175
3176 func_to_host_file_result=$1
3177 if test -n "$1"; then
3178 func_convert_core_msys_to_w32 "$1"
3179 func_to_host_file_result=$func_convert_core_msys_to_w32_result
3180 fi
3181 func_convert_file_check "$1" "$func_to_host_file_result"
3182 }
3183 # end func_convert_file_msys_to_w32
3184
3185
3186 # func_convert_file_cygwin_to_w32 ARG
3187 # Convert file name ARG from Cygwin to w32 format. Returns result in
3188 # func_to_host_file_result.
3189 func_convert_file_cygwin_to_w32 ()
3190 {
3191 $debug_cmd
3192
3193 func_to_host_file_result=$1
3194 if test -n "$1"; then
3195 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
3196 # LT_CYGPATH in this case.
3197 func_to_host_file_result=`cygpath -m "$1"`
3198 fi
3199 func_convert_file_check "$1" "$func_to_host_file_result"
3200 }
3201 # end func_convert_file_cygwin_to_w32
3202
3203
3204 # func_convert_file_nix_to_w32 ARG
3205 # Convert file name ARG from *nix to w32 format. Requires a wine environment
3206 # and a working winepath. Returns result in func_to_host_file_result.
3207 func_convert_file_nix_to_w32 ()
3208 {
3209 $debug_cmd
3210
3211 func_to_host_file_result=$1
3212 if test -n "$1"; then
3213 func_convert_core_file_wine_to_w32 "$1"
3214 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
3215 fi
3216 func_convert_file_check "$1" "$func_to_host_file_result"
3217 }
3218 # end func_convert_file_nix_to_w32
3219
3220
3221 # func_convert_file_msys_to_cygwin ARG
3222 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
3223 # Returns result in func_to_host_file_result.
3224 func_convert_file_msys_to_cygwin ()
3225 {
3226 $debug_cmd
3227
3228 func_to_host_file_result=$1
3229 if test -n "$1"; then
3230 func_convert_core_msys_to_w32 "$1"
3231 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3232 func_to_host_file_result=$func_cygpath_result
3233 fi
3234 func_convert_file_check "$1" "$func_to_host_file_result"
3235 }
3236 # end func_convert_file_msys_to_cygwin
3237
3238
3239 # func_convert_file_nix_to_cygwin ARG
3240 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
3241 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
3242 # in func_to_host_file_result.
3243 func_convert_file_nix_to_cygwin ()
3244 {
3245 $debug_cmd
3246
3247 func_to_host_file_result=$1
3248 if test -n "$1"; then
3249 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
3250 func_convert_core_file_wine_to_w32 "$1"
3251 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3252 func_to_host_file_result=$func_cygpath_result
3253 fi
3254 func_convert_file_check "$1" "$func_to_host_file_result"
3255 }
3256 # end func_convert_file_nix_to_cygwin
3257
3258
3259 #############################################
3260 # $build to $host PATH CONVERSION FUNCTIONS #
3261 #############################################
3262 # invoked via '$to_host_path_cmd ARG'
3263 #
3264 # In each case, ARG is the path to be converted from $build to $host format.
3265 # The result will be available in $func_to_host_path_result.
3266 #
3267 # Path separators are also converted from $build format to $host format. If
3268 # ARG begins or ends with a path separator character, it is preserved (but
3269 # converted to $host format) on output.
3270 #
3271 # All path conversion functions are named using the following convention:
3272 # file name conversion function : func_convert_file_X_to_Y ()
3273 # path conversion function : func_convert_path_X_to_Y ()
3274 # where, for any given $build/$host combination the 'X_to_Y' value is the
3275 # same. If conversion functions are added for new $build/$host combinations,
3276 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
3277 # will break.
3278
3279
3280 # func_init_to_host_path_cmd
3281 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
3282 # appropriate value, based on the value of $to_host_file_cmd.
3283 to_host_path_cmd=
3284 func_init_to_host_path_cmd ()
3285 {
3286 $debug_cmd
3287
3288 if test -z "$to_host_path_cmd"; then
3289 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
3290 to_host_path_cmd=func_convert_path_$func_stripname_result
3291 fi
3292 }
3293
3294
3295 # func_to_host_path ARG
3296 # Converts the path ARG from $build format to $host format. Return result
3297 # in func_to_host_path_result.
3298 func_to_host_path ()
3299 {
3300 $debug_cmd
3301
3302 func_init_to_host_path_cmd
3303 $to_host_path_cmd "$1"
3304 }
3305 # end func_to_host_path
3306
3307
3308 # func_convert_path_noop ARG
3309 # Copy ARG to func_to_host_path_result.
3310 func_convert_path_noop ()
3311 {
3312 func_to_host_path_result=$1
3313 }
3314 # end func_convert_path_noop
3315
3316
3317 # func_convert_path_msys_to_w32 ARG
3318 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
3319 # conversion to w32 is not available inside the cwrapper. Returns result in
3320 # func_to_host_path_result.
3321 func_convert_path_msys_to_w32 ()
3322 {
3323 $debug_cmd
3324
3325 func_to_host_path_result=$1
3326 if test -n "$1"; then
3327 # Remove leading and trailing path separator characters from ARG. MSYS
3328 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
3329 # and winepath ignores them completely.
3330 func_stripname : : "$1"
3331 func_to_host_path_tmp1=$func_stripname_result
3332 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
3333 func_to_host_path_result=$func_convert_core_msys_to_w32_result
3334 func_convert_path_check : ";" \
3335 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3336 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3337 fi
3338 }
3339 # end func_convert_path_msys_to_w32
3340
3341
3342 # func_convert_path_cygwin_to_w32 ARG
3343 # Convert path ARG from Cygwin to w32 format. Returns result in
3344 # func_to_host_file_result.
3345 func_convert_path_cygwin_to_w32 ()
3346 {
3347 $debug_cmd
3348
3349 func_to_host_path_result=$1
3350 if test -n "$1"; then
3351 # See func_convert_path_msys_to_w32:
3352 func_stripname : : "$1"
3353 func_to_host_path_tmp1=$func_stripname_result
3354 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3355 func_convert_path_check : ";" \
3356 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3357 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3358 fi
3359 }
3360 # end func_convert_path_cygwin_to_w32
3361
3362
3363 # func_convert_path_nix_to_w32 ARG
3364 # Convert path ARG from *nix to w32 format. Requires a wine environment and
3365 # a working winepath. Returns result in func_to_host_file_result.
3366 func_convert_path_nix_to_w32 ()
3367 {
3368 $debug_cmd
3369
3370 func_to_host_path_result=$1
3371 if test -n "$1"; then
3372 # See func_convert_path_msys_to_w32:
3373 func_stripname : : "$1"
3374 func_to_host_path_tmp1=$func_stripname_result
3375 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
3376 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
3377 func_convert_path_check : ";" \
3378 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3379 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3380 fi
3381 }
3382 # end func_convert_path_nix_to_w32
3383
3384
3385 # func_convert_path_msys_to_cygwin ARG
3386 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
3387 # Returns result in func_to_host_file_result.
3388 func_convert_path_msys_to_cygwin ()
3389 {
3390 $debug_cmd
3391
3392 func_to_host_path_result=$1
3393 if test -n "$1"; then
3394 # See func_convert_path_msys_to_w32:
3395 func_stripname : : "$1"
3396 func_to_host_path_tmp1=$func_stripname_result
3397 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
3398 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3399 func_to_host_path_result=$func_cygpath_result
3400 func_convert_path_check : : \
3401 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3402 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
3403 fi
3404 }
3405 # end func_convert_path_msys_to_cygwin
3406
3407
3408 # func_convert_path_nix_to_cygwin ARG
3409 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
3410 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
3411 # func_to_host_file_result.
3412 func_convert_path_nix_to_cygwin ()
3413 {
3414 $debug_cmd
3415
3416 func_to_host_path_result=$1
3417 if test -n "$1"; then
3418 # Remove leading and trailing path separator characters from
3419 # ARG. msys behavior is inconsistent here, cygpath turns them
3420 # into '.;' and ';.', and winepath ignores them completely.
3421 func_stripname : : "$1"
3422 func_to_host_path_tmp1=$func_stripname_result
3423 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
3424 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3425 func_to_host_path_result=$func_cygpath_result
3426 func_convert_path_check : : \
3427 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3428 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
3429 fi
3430 }
3431 # end func_convert_path_nix_to_cygwin
3432
3433
3434 # func_dll_def_p FILE
3435 # True iff FILE is a Windows DLL '.def' file.
3436 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3437 func_dll_def_p ()
3438 {
3439 $debug_cmd
3440
3441 func_dll_def_p_tmp=`$SED -n \
3442 -e 's/^[ ]*//' \
3443 -e '/^\(;.*\)*$/d' \
3444 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3445 -e q \
3446 "$1"`
3447 test DEF = "$func_dll_def_p_tmp"
3448 }
3449
3450
3451 # func_mode_compile arg...
3452 func_mode_compile ()
3453 {
3454 $debug_cmd
3455
3456 # Get the compilation command and the source file.
3457 base_compile=
3458 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3459 suppress_opt=yes
3460 suppress_output=
3461 arg_mode=normal
3462 libobj=
3463 later=
3464 pie_flag=
3465
3466 for arg
3467 do
3468 case $arg_mode in
3469 arg )
3470 # do not "continue". Instead, add this to base_compile
3471 lastarg=$arg
3472 arg_mode=normal
3473 ;;
3474
3475 target )
3476 libobj=$arg
3477 arg_mode=normal
3478 continue
3479 ;;
3480
3481 normal )
3482 # Accept any command-line options.
3483 case $arg in
3484 -o)
3485 test -n "$libobj" && \
3486 func_fatal_error "you cannot specify '-o' more than once"
3487 arg_mode=target
3488 continue
3489 ;;
3490
3491 -pie | -fpie | -fPIE)
3492 func_append pie_flag " $arg"
3493 continue
3494 ;;
3495
3496 -shared | -static | -prefer-pic | -prefer-non-pic)
3497 func_append later " $arg"
3498 continue
3499 ;;
3500
3501 -no-suppress)
3502 suppress_opt=no
3503 continue
3504 ;;
3505
3506 -Xcompiler)
3507 arg_mode=arg # the next one goes into the "base_compile" arg list
3508 continue # The current "srcfile" will either be retained or
3509 ;; # replaced later. I would guess that would be a bug.
3510
3511 -Wc,*)
3512 func_stripname '-Wc,' '' "$arg"
3513 args=$func_stripname_result
3514 lastarg=
3515 save_ifs=$IFS; IFS=,
3516 for arg in $args; do
3517 IFS=$save_ifs
3518 func_append_quoted lastarg "$arg"
3519 done
3520 IFS=$save_ifs
3521 func_stripname ' ' '' "$lastarg"
3522 lastarg=$func_stripname_result
3523
3524 # Add the arguments to base_compile.
3525 func_append base_compile " $lastarg"
3526 continue
3527 ;;
3528
3529 *)
3530 # Accept the current argument as the source file.
3531 # The previous "srcfile" becomes the current argument.
3532 #
3533 lastarg=$srcfile
3534 srcfile=$arg
3535 ;;
3536 esac # case $arg
3537 ;;
3538 esac # case $arg_mode
3539
3540 # Aesthetically quote the previous argument.
3541 func_append_quoted base_compile "$lastarg"
3542 done # for arg
3543
3544 case $arg_mode in
3545 arg)
3546 func_fatal_error "you must specify an argument for -Xcompile"
3547 ;;
3548 target)
3549 func_fatal_error "you must specify a target with '-o'"
3550 ;;
3551 *)
3552 # Get the name of the library object.
3553 test -z "$libobj" && {
3554 func_basename "$srcfile"
3555 libobj=$func_basename_result
3556 }
3557 ;;
3558 esac
3559
3560 # Recognize several different file suffixes.
3561 # If the user specifies -o file.o, it is replaced with file.lo
3562 case $libobj in
3563 *.[cCFSifmso] | \
3564 *.ada | *.adb | *.ads | *.asm | \
3565 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
3566 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
3567 func_xform "$libobj"
3568 libobj=$func_xform_result
3569 ;;
3570 esac
3571
3572 case $libobj in
3573 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
3574 *)
3575 func_fatal_error "cannot determine name of library object from '$libobj'"
3576 ;;
3577 esac
3578
3579 func_infer_tag $base_compile
3580
3581 for arg in $later; do
3582 case $arg in
3583 -shared)
3584 test yes = "$build_libtool_libs" \
3585 || func_fatal_configuration "cannot build a shared library"
3586 build_old_libs=no
3587 continue
3588 ;;
3589
3590 -static)
3591 build_libtool_libs=no
3592 build_old_libs=yes
3593 continue
3594 ;;
3595
3596 -prefer-pic)
3597 pic_mode=yes
3598 continue
3599 ;;
3600
3601 -prefer-non-pic)
3602 pic_mode=no
3603 continue
3604 ;;
3605 esac
3606 done
3607
3608 func_quote_arg pretty "$libobj"
3609 test "X$libobj" != "X$func_quote_arg_result" \
3610 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
3611 && func_warning "libobj name '$libobj' may not contain shell special characters."
3612 func_dirname_and_basename "$obj" "/" ""
3613 objname=$func_basename_result
3614 xdir=$func_dirname_result
3615 lobj=$xdir$objdir/$objname
3616
3617 test -z "$base_compile" && \
3618 func_fatal_help "you must specify a compilation command"
3619
3620 # Delete any leftover library objects.
3621 if test yes = "$build_old_libs"; then
3622 removelist="$obj $lobj $libobj ${libobj}T"
3623 else
3624 removelist="$lobj $libobj ${libobj}T"
3625 fi
3626
3627 # On Cygwin there's no "real" PIC flag so we must build both object types
3628 case $host_os in
3629 cygwin* | mingw* | pw32* | os2* | cegcc*)
3630 pic_mode=default
3631 ;;
3632 esac
3633 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
3634 # non-PIC code in shared libraries is not supported
3635 pic_mode=default
3636 fi
3637
3638 # Calculate the filename of the output object if compiler does
3639 # not support -o with -c
3640 if test no = "$compiler_c_o"; then
3641 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3642 lockfile=$output_obj.lock
3643 else
3644 output_obj=
3645 need_locks=no
3646 lockfile=
3647 fi
3648
3649 # Lock this critical section if it is needed
3650 # We use this script file to make the link, it avoids creating a new file
3651 if test yes = "$need_locks"; then
3652 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3653 func_echo "Waiting for $lockfile to be removed"
3654 sleep 2
3655 done
3656 elif test warn = "$need_locks"; then
3657 if test -f "$lockfile"; then
3658 $ECHO "\
3659 *** ERROR, $lockfile exists and contains:
3660 `cat $lockfile 2>/dev/null`
3661
3662 This indicates that another process is trying to use the same
3663 temporary object file, and libtool could not work around it because
3664 your compiler does not support '-c' and '-o' together. If you
3665 repeat this compilation, it may succeed, by chance, but you had better
3666 avoid parallel builds (make -j) in this platform, or get a better
3667 compiler."
3668
3669 $opt_dry_run || $RM $removelist
3670 exit $EXIT_FAILURE
3671 fi
3672 func_append removelist " $output_obj"
3673 $ECHO "$srcfile" > "$lockfile"
3674 fi
3675
3676 $opt_dry_run || $RM $removelist
3677 func_append removelist " $lockfile"
3678 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
3679
3680 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
3681 srcfile=$func_to_tool_file_result
3682 func_quote_arg pretty "$srcfile"
3683 qsrcfile=$func_quote_arg_result
3684
3685 # Only build a PIC object if we are building libtool libraries.
3686 if test yes = "$build_libtool_libs"; then
3687 # Without this assignment, base_compile gets emptied.
3688 fbsd_hideous_sh_bug=$base_compile
3689
3690 if test no != "$pic_mode"; then
3691 command="$base_compile $qsrcfile $pic_flag"
3692 else
3693 # Don't build PIC code
3694 command="$base_compile $qsrcfile"
3695 fi
3696
3697 func_mkdir_p "$xdir$objdir"
3698
3699 if test -z "$output_obj"; then
3700 # Place PIC objects in $objdir
3701 func_append command " -o $lobj"
3702 fi
3703
3704 func_show_eval_locale "$command" \
3705 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3706
3707 if test warn = "$need_locks" &&
3708 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3709 $ECHO "\
3710 *** ERROR, $lockfile contains:
3711 `cat $lockfile 2>/dev/null`
3712
3713 but it should contain:
3714 $srcfile
3715
3716 This indicates that another process is trying to use the same
3717 temporary object file, and libtool could not work around it because
3718 your compiler does not support '-c' and '-o' together. If you
3719 repeat this compilation, it may succeed, by chance, but you had better
3720 avoid parallel builds (make -j) in this platform, or get a better
3721 compiler."
3722
3723 $opt_dry_run || $RM $removelist
3724 exit $EXIT_FAILURE
3725 fi
3726
3727 # Just move the object if needed, then go on to compile the next one
3728 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3729 func_show_eval '$MV "$output_obj" "$lobj"' \
3730 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
3731 fi
3732
3733 # Allow error messages only from the first compilation.
3734 if test yes = "$suppress_opt"; then
3735 suppress_output=' >/dev/null 2>&1'
3736 fi
3737 fi
3738
3739 # Only build a position-dependent object if we build old libraries.
3740 if test yes = "$build_old_libs"; then
3741 if test yes != "$pic_mode"; then
3742 # Don't build PIC code
3743 command="$base_compile $qsrcfile$pie_flag"
3744 else
3745 command="$base_compile $qsrcfile $pic_flag"
3746 fi
3747 if test yes = "$compiler_c_o"; then
3748 func_append command " -o $obj"
3749 fi
3750
3751 # Suppress compiler output if we already did a PIC compilation.
3752 func_append command "$suppress_output"
3753 func_show_eval_locale "$command" \
3754 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
3755
3756 if test warn = "$need_locks" &&
3757 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3758 $ECHO "\
3759 *** ERROR, $lockfile contains:
3760 `cat $lockfile 2>/dev/null`
3761
3762 but it should contain:
3763 $srcfile
3764
3765 This indicates that another process is trying to use the same
3766 temporary object file, and libtool could not work around it because
3767 your compiler does not support '-c' and '-o' together. If you
3768 repeat this compilation, it may succeed, by chance, but you had better
3769 avoid parallel builds (make -j) in this platform, or get a better
3770 compiler."
3771
3772 $opt_dry_run || $RM $removelist
3773 exit $EXIT_FAILURE
3774 fi
3775
3776 # Just move the object if needed
3777 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3778 func_show_eval '$MV "$output_obj" "$obj"' \
3779 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
3780 fi
3781 fi
3782
3783 $opt_dry_run || {
3784 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
3785
3786 # Unlock the critical section if it was locked
3787 if test no != "$need_locks"; then
3788 removelist=$lockfile
3789 $RM "$lockfile"
3790 fi
3791 }
3792
3793 exit $EXIT_SUCCESS
3794 }
3795
3796 $opt_help || {
3797 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
3798 }
3799
3800 func_mode_help ()
3801 {
3802 # We need to display help for each of the modes.
3803 case $opt_mode in
3804 "")
3805 # Generic help is extracted from the usage comments
3806 # at the start of this file.
3807 func_help
3808 ;;
3809
3810 clean)
3811 $ECHO \
3812 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3813
3814 Remove files from the build directory.
3815
3816 RM is the name of the program to use to delete files associated with each FILE
3817 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3818 to RM.
3819
3820 If FILE is a libtool library, object or program, all the files associated
3821 with it are deleted. Otherwise, only FILE itself is deleted using RM."
3822 ;;
3823
3824 compile)
3825 $ECHO \
3826 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3827
3828 Compile a source file into a libtool library object.
3829
3830 This mode accepts the following additional options:
3831
3832 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3833 -no-suppress do not suppress compiler output for multiple passes
3834 -prefer-pic try to build PIC objects only
3835 -prefer-non-pic try to build non-PIC objects only
3836 -shared do not build a '.o' file suitable for static linking
3837 -static only build a '.o' file suitable for static linking
3838 -Wc,FLAG pass FLAG directly to the compiler
3839
3840 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3841 from the given SOURCEFILE.
3842
3843 The output file name is determined by removing the directory component from
3844 SOURCEFILE, then substituting the C source code suffix '.c' with the
3845 library object suffix, '.lo'."
3846 ;;
3847
3848 execute)
3849 $ECHO \
3850 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3851
3852 Automatically set library path, then run a program.
3853
3854 This mode accepts the following additional options:
3855
3856 -dlopen FILE add the directory containing FILE to the library path
3857
3858 This mode sets the library path environment variable according to '-dlopen'
3859 flags.
3860
3861 If any of the ARGS are libtool executable wrappers, then they are translated
3862 into their corresponding uninstalled binary, and any of their required library
3863 directories are added to the library path.
3864
3865 Then, COMMAND is executed, with ARGS as arguments."
3866 ;;
3867
3868 finish)
3869 $ECHO \
3870 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3871
3872 Complete the installation of libtool libraries.
3873
3874 Each LIBDIR is a directory that contains libtool libraries.
3875
3876 The commands that this mode executes may require superuser privileges. Use
3877 the '--dry-run' option if you just want to see what would be executed."
3878 ;;
3879
3880 install)
3881 $ECHO \
3882 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3883
3884 Install executables or libraries.
3885
3886 INSTALL-COMMAND is the installation command. The first component should be
3887 either the 'install' or 'cp' program.
3888
3889 The following components of INSTALL-COMMAND are treated specially:
3890
3891 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3892
3893 The rest of the components are interpreted as arguments to that command (only
3894 BSD-compatible install options are recognized)."
3895 ;;
3896
3897 link)
3898 $ECHO \
3899 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3900
3901 Link object files or libraries together to form another library, or to
3902 create an executable program.
3903
3904 LINK-COMMAND is a command using the C compiler that you would use to create
3905 a program from several object files.
3906
3907 The following components of LINK-COMMAND are treated specially:
3908
3909 -all-static do not do any dynamic linking at all
3910 -avoid-version do not add a version suffix if possible
3911 -bindir BINDIR specify path to binaries directory (for systems where
3912 libraries must be found in the PATH setting at runtime)
3913 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3914 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3915 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3916 -export-symbols SYMFILE
3917 try to export only the symbols listed in SYMFILE
3918 -export-symbols-regex REGEX
3919 try to export only the symbols matching REGEX
3920 -LLIBDIR search LIBDIR for required installed libraries
3921 -lNAME OUTPUT-FILE requires the installed library libNAME
3922 -module build a library that can dlopened
3923 -no-fast-install disable the fast-install mode
3924 -no-install link a not-installable executable
3925 -no-undefined declare that a library does not refer to external symbols
3926 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3927 -objectlist FILE use a list of object files found in FILE to specify objects
3928 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3929 -precious-files-regex REGEX
3930 don't remove output files matching REGEX
3931 -release RELEASE specify package release information
3932 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3933 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3934 -shared only do dynamic linking of libtool libraries
3935 -shrext SUFFIX override the standard shared library file extension
3936 -static do not do any dynamic linking of uninstalled libtool libraries
3937 -static-libtool-libs
3938 do not do any dynamic linking of libtool libraries
3939 -version-info CURRENT[:REVISION[:AGE]]
3940 specify library version info [each variable defaults to 0]
3941 -weak LIBNAME declare that the target provides the LIBNAME interface
3942 -Wc,FLAG
3943 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
3944 -Wl,FLAG
3945 -Xlinker FLAG pass linker-specific FLAG directly to the linker
3946 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
3947
3948 All other options (arguments beginning with '-') are ignored.
3949
3950 Every other argument is treated as a filename. Files ending in '.la' are
3951 treated as uninstalled libtool libraries, other files are standard or library
3952 object files.
3953
3954 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3955 only library objects ('.lo' files) may be specified, and '-rpath' is
3956 required, except when creating a convenience library.
3957
3958 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3959 using 'ar' and 'ranlib', or on Windows using 'lib'.
3960
3961 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
3962 is created, otherwise an executable program is created."
3963 ;;
3964
3965 uninstall)
3966 $ECHO \
3967 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
3968
3969 Remove libraries from an installation directory.
3970
3971 RM is the name of the program to use to delete files associated with each FILE
3972 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3973 to RM.
3974
3975 If FILE is a libtool library, all the files associated with it are deleted.
3976 Otherwise, only FILE itself is deleted using RM."
3977 ;;
3978
3979 *)
3980 func_fatal_help "invalid operation mode '$opt_mode'"
3981 ;;
3982 esac
3983
3984 echo
3985 $ECHO "Try '$progname --help' for more information about other modes."
3986 }
3987
3988 # Now that we've collected a possible --mode arg, show help if necessary
3989 if $opt_help; then
3990 if test : = "$opt_help"; then
3991 func_mode_help
3992 else
3993 {
3994 func_help noexit
3995 for opt_mode in compile link execute install finish uninstall clean; do
3996 func_mode_help
3997 done
3998 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
3999 {
4000 func_help noexit
4001 for opt_mode in compile link execute install finish uninstall clean; do
4002 echo
4003 func_mode_help
4004 done
4005 } |
4006 $SED '1d
4007 /^When reporting/,/^Report/{
4008 H
4009 d
4010 }
4011 $x
4012 /information about other modes/d
4013 /more detailed .*MODE/d
4014 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
4015 fi
4016 exit $?
4017 fi
4018
4019
4020 # func_mode_execute arg...
4021 func_mode_execute ()
4022 {
4023 $debug_cmd
4024
4025 # The first argument is the command name.
4026 cmd=$nonopt
4027 test -z "$cmd" && \
4028 func_fatal_help "you must specify a COMMAND"
4029
4030 # Handle -dlopen flags immediately.
4031 for file in $opt_dlopen; do
4032 test -f "$file" \
4033 || func_fatal_help "'$file' is not a file"
4034
4035 dir=
4036 case $file in
4037 *.la)
4038 func_resolve_sysroot "$file"
4039 file=$func_resolve_sysroot_result
4040
4041 # Check to see that this really is a libtool archive.
4042 func_lalib_unsafe_p "$file" \
4043 || func_fatal_help "'$lib' is not a valid libtool archive"
4044
4045 # Read the libtool library.
4046 dlname=
4047 library_names=
4048 func_source "$file"
4049
4050 # Skip this library if it cannot be dlopened.
4051 if test -z "$dlname"; then
4052 # Warn if it was a shared library.
4053 test -n "$library_names" && \
4054 func_warning "'$file' was not linked with '-export-dynamic'"
4055 continue
4056 fi
4057
4058 func_dirname "$file" "" "."
4059 dir=$func_dirname_result
4060
4061 if test -f "$dir/$objdir/$dlname"; then
4062 func_append dir "/$objdir"
4063 else
4064 if test ! -f "$dir/$dlname"; then
4065 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
4066 fi
4067 fi
4068 ;;
4069
4070 *.lo)
4071 # Just add the directory containing the .lo file.
4072 func_dirname "$file" "" "."
4073 dir=$func_dirname_result
4074 ;;
4075
4076 *)
4077 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
4078 continue
4079 ;;
4080 esac
4081
4082 # Get the absolute pathname.
4083 absdir=`cd "$dir" && pwd`
4084 test -n "$absdir" && dir=$absdir
4085
4086 # Now add the directory to shlibpath_var.
4087 if eval "test -z \"\$$shlibpath_var\""; then
4088 eval "$shlibpath_var=\"\$dir\""
4089 else
4090 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
4091 fi
4092 done
4093
4094 # This variable tells wrapper scripts just to set shlibpath_var
4095 # rather than running their programs.
4096 libtool_execute_magic=$magic
4097
4098 # Check if any of the arguments is a wrapper script.
4099 args=
4100 for file
4101 do
4102 case $file in
4103 -* | *.la | *.lo ) ;;
4104 *)
4105 # Do a test to see if this is really a libtool program.
4106 if func_ltwrapper_script_p "$file"; then
4107 func_source "$file"
4108 # Transform arg to wrapped name.
4109 file=$progdir/$program
4110 elif func_ltwrapper_executable_p "$file"; then
4111 func_ltwrapper_scriptname "$file"
4112 func_source "$func_ltwrapper_scriptname_result"
4113 # Transform arg to wrapped name.
4114 file=$progdir/$program
4115 fi
4116 ;;
4117 esac
4118 # Quote arguments (to preserve shell metacharacters).
4119 func_append_quoted args "$file"
4120 done
4121
4122 if $opt_dry_run; then
4123 # Display what would be done.
4124 if test -n "$shlibpath_var"; then
4125 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
4126 echo "export $shlibpath_var"
4127 fi
4128 $ECHO "$cmd$args"
4129 exit $EXIT_SUCCESS
4130 else
4131 if test -n "$shlibpath_var"; then
4132 # Export the shlibpath_var.
4133 eval "export $shlibpath_var"
4134 fi
4135
4136 # Restore saved environment variables
4137 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
4138 do
4139 eval "if test \"\${save_$lt_var+set}\" = set; then
4140 $lt_var=\$save_$lt_var; export $lt_var
4141 else
4142 $lt_unset $lt_var
4143 fi"
4144 done
4145
4146 # Now prepare to actually exec the command.
4147 exec_cmd=\$cmd$args
4148 fi
4149 }
4150
4151 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
4152
4153
4154 # func_mode_finish arg...
4155 func_mode_finish ()
4156 {
4157 $debug_cmd
4158
4159 libs=
4160 libdirs=
4161 admincmds=
4162
4163 for opt in "$nonopt" ${1+"$@"}
4164 do
4165 if test -d "$opt"; then
4166 func_append libdirs " $opt"
4167
4168 elif test -f "$opt"; then
4169 if func_lalib_unsafe_p "$opt"; then
4170 func_append libs " $opt"
4171 else
4172 func_warning "'$opt' is not a valid libtool archive"
4173 fi
4174
4175 else
4176 func_fatal_error "invalid argument '$opt'"
4177 fi
4178 done
4179
4180 if test -n "$libs"; then
4181 if test -n "$lt_sysroot"; then
4182 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
4183 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
4184 else
4185 sysroot_cmd=
4186 fi
4187
4188 # Remove sysroot references
4189 if $opt_dry_run; then
4190 for lib in $libs; do
4191 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
4192 done
4193 else
4194 tmpdir=`func_mktempdir`
4195 for lib in $libs; do
4196 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4197 > $tmpdir/tmp-la
4198 mv -f $tmpdir/tmp-la $lib
4199 done
4200 ${RM}r "$tmpdir"
4201 fi
4202 fi
4203
4204 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4205 for libdir in $libdirs; do
4206 if test -n "$finish_cmds"; then
4207 # Do each command in the finish commands.
4208 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
4209 '"$cmd"'"'
4210 fi
4211 if test -n "$finish_eval"; then
4212 # Do the single finish_eval.
4213 eval cmds=\"$finish_eval\"
4214 $opt_dry_run || eval "$cmds" || func_append admincmds "
4215 $cmds"
4216 fi
4217 done
4218 fi
4219
4220 # Exit here if they wanted silent mode.
4221 $opt_quiet && exit $EXIT_SUCCESS
4222
4223 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4224 echo "----------------------------------------------------------------------"
4225 echo "Libraries have been installed in:"
4226 for libdir in $libdirs; do
4227 $ECHO " $libdir"
4228 done
4229 echo
4230 echo "If you ever happen to want to link against installed libraries"
4231 echo "in a given directory, LIBDIR, you must either use libtool, and"
4232 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4233 echo "flag during linking and do at least one of the following:"
4234 if test -n "$shlibpath_var"; then
4235 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4236 echo " during execution"
4237 fi
4238 if test -n "$runpath_var"; then
4239 echo " - add LIBDIR to the '$runpath_var' environment variable"
4240 echo " during linking"
4241 fi
4242 if test -n "$hardcode_libdir_flag_spec"; then
4243 libdir=LIBDIR
4244 eval flag=\"$hardcode_libdir_flag_spec\"
4245
4246 $ECHO " - use the '$flag' linker flag"
4247 fi
4248 if test -n "$admincmds"; then
4249 $ECHO " - have your system administrator run these commands:$admincmds"
4250 fi
4251 if test -f /etc/ld.so.conf; then
4252 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4253 fi
4254 echo
4255
4256 echo "See any operating system documentation about shared libraries for"
4257 case $host in
4258 solaris2.[6789]|solaris2.1[0-9])
4259 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
4260 echo "pages."
4261 ;;
4262 *)
4263 echo "more information, such as the ld(1) and ld.so(8) manual pages."
4264 ;;
4265 esac
4266 echo "----------------------------------------------------------------------"
4267 fi
4268 exit $EXIT_SUCCESS
4269 }
4270
4271 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
4272
4273
4274 # func_mode_install arg...
4275 func_mode_install ()
4276 {
4277 $debug_cmd
4278
4279 # There may be an optional sh(1) argument at the beginning of
4280 # install_prog (especially on Windows NT).
4281 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
4282 # Allow the use of GNU shtool's install command.
4283 case $nonopt in *shtool*) :;; *) false;; esac
4284 then
4285 # Aesthetically quote it.
4286 func_quote_arg pretty "$nonopt"
4287 install_prog="$func_quote_arg_result "
4288 arg=$1
4289 shift
4290 else
4291 install_prog=
4292 arg=$nonopt
4293 fi
4294
4295 # The real first argument should be the name of the installation program.
4296 # Aesthetically quote it.
4297 func_quote_arg pretty "$arg"
4298 func_append install_prog "$func_quote_arg_result"
4299 install_shared_prog=$install_prog
4300 case " $install_prog " in
4301 *[\\\ /]cp\ *) install_cp=: ;;
4302 *) install_cp=false ;;
4303 esac
4304
4305 # We need to accept at least all the BSD install flags.
4306 dest=
4307 files=
4308 opts=
4309 prev=
4310 install_type=
4311 isdir=false
4312 stripme=
4313 no_mode=:
4314 for arg
4315 do
4316 arg2=
4317 if test -n "$dest"; then
4318 func_append files " $dest"
4319 dest=$arg
4320 continue
4321 fi
4322
4323 case $arg in
4324 -d) isdir=: ;;
4325 -f)
4326 if $install_cp; then :; else
4327 prev=$arg
4328 fi
4329 ;;
4330 -g | -m | -o)
4331 prev=$arg
4332 ;;
4333 -s)
4334 stripme=" -s"
4335 continue
4336 ;;
4337 -*)
4338 ;;
4339 *)
4340 # If the previous option needed an argument, then skip it.
4341 if test -n "$prev"; then
4342 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4343 arg2=$install_override_mode
4344 no_mode=false
4345 fi
4346 prev=
4347 else
4348 dest=$arg
4349 continue
4350 fi
4351 ;;
4352 esac
4353
4354 # Aesthetically quote the argument.
4355 func_quote_arg pretty "$arg"
4356 func_append install_prog " $func_quote_arg_result"
4357 if test -n "$arg2"; then
4358 func_quote_arg pretty "$arg2"
4359 fi
4360 func_append install_shared_prog " $func_quote_arg_result"
4361 done
4362
4363 test -z "$install_prog" && \
4364 func_fatal_help "you must specify an install program"
4365
4366 test -n "$prev" && \
4367 func_fatal_help "the '$prev' option requires an argument"
4368
4369 if test -n "$install_override_mode" && $no_mode; then
4370 if $install_cp; then :; else
4371 func_quote_arg pretty "$install_override_mode"
4372 func_append install_shared_prog " -m $func_quote_arg_result"
4373 fi
4374 fi
4375
4376 if test -z "$files"; then
4377 if test -z "$dest"; then
4378 func_fatal_help "no file or destination specified"
4379 else
4380 func_fatal_help "you must specify a destination"
4381 fi
4382 fi
4383
4384 # Strip any trailing slash from the destination.
4385 func_stripname '' '/' "$dest"
4386 dest=$func_stripname_result
4387
4388 # Check to see that the destination is a directory.
4389 test -d "$dest" && isdir=:
4390 if $isdir; then
4391 destdir=$dest
4392 destname=
4393 else
4394 func_dirname_and_basename "$dest" "" "."
4395 destdir=$func_dirname_result
4396 destname=$func_basename_result
4397
4398 # Not a directory, so check to see that there is only one file specified.
4399 set dummy $files; shift
4400 test "$#" -gt 1 && \
4401 func_fatal_help "'$dest' is not a directory"
4402 fi
4403 case $destdir in
4404 [\\/]* | [A-Za-z]:[\\/]*) ;;
4405 *)
4406 for file in $files; do
4407 case $file in
4408 *.lo) ;;
4409 *)
4410 func_fatal_help "'$destdir' must be an absolute directory name"
4411 ;;
4412 esac
4413 done
4414 ;;
4415 esac
4416
4417 # This variable tells wrapper scripts just to set variables rather
4418 # than running their programs.
4419 libtool_install_magic=$magic
4420
4421 staticlibs=
4422 future_libdirs=
4423 current_libdirs=
4424 for file in $files; do
4425
4426 # Do each installation.
4427 case $file in
4428 *.$libext)
4429 # Do the static libraries later.
4430 func_append staticlibs " $file"
4431 ;;
4432
4433 *.la)
4434 func_resolve_sysroot "$file"
4435 file=$func_resolve_sysroot_result
4436
4437 # Check to see that this really is a libtool archive.
4438 func_lalib_unsafe_p "$file" \
4439 || func_fatal_help "'$file' is not a valid libtool archive"
4440
4441 library_names=
4442 old_library=
4443 relink_command=
4444 func_source "$file"
4445
4446 # Add the libdir to current_libdirs if it is the destination.
4447 if test "X$destdir" = "X$libdir"; then
4448 case "$current_libdirs " in
4449 *" $libdir "*) ;;
4450 *) func_append current_libdirs " $libdir" ;;
4451 esac
4452 else
4453 # Note the libdir as a future libdir.
4454 case "$future_libdirs " in
4455 *" $libdir "*) ;;
4456 *) func_append future_libdirs " $libdir" ;;
4457 esac
4458 fi
4459
4460 func_dirname "$file" "/" ""
4461 dir=$func_dirname_result
4462 func_append dir "$objdir"
4463
4464 if test -n "$relink_command"; then
4465 # Determine the prefix the user has applied to our future dir.
4466 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4467
4468 # Don't allow the user to place us outside of our expected
4469 # location b/c this prevents finding dependent libraries that
4470 # are installed to the same prefix.
4471 # At present, this check doesn't affect windows .dll's that
4472 # are installed into $libdir/../bin (currently, that works fine)
4473 # but it's something to keep an eye on.
4474 test "$inst_prefix_dir" = "$destdir" && \
4475 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
4476
4477 if test -n "$inst_prefix_dir"; then
4478 # Stick the inst_prefix_dir data into the link command.
4479 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
4480 else
4481 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
4482 fi
4483
4484 func_warning "relinking '$file'"
4485 func_show_eval "$relink_command" \
4486 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
4487 fi
4488
4489 # See the names of the shared library.
4490 set dummy $library_names; shift
4491 if test -n "$1"; then
4492 realname=$1
4493 shift
4494
4495 srcname=$realname
4496 test -n "$relink_command" && srcname=${realname}T
4497
4498 # Install the shared library and build the symlinks.
4499 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
4500 'exit $?'
4501 tstripme=$stripme
4502 case $host_os in
4503 cygwin* | mingw* | pw32* | cegcc*)
4504 case $realname in
4505 *.dll.a)
4506 tstripme=
4507 ;;
4508 esac
4509 ;;
4510 os2*)
4511 case $realname in
4512 *_dll.a)
4513 tstripme=
4514 ;;
4515 esac
4516 ;;
4517 esac
4518 if test -n "$tstripme" && test -n "$striplib"; then
4519 func_show_eval "$striplib $destdir/$realname" 'exit $?'
4520 fi
4521
4522 if test "$#" -gt 0; then
4523 # Delete the old symlinks, and create new ones.
4524 # Try 'ln -sf' first, because the 'ln' binary might depend on
4525 # the symlink we replace! Solaris /bin/ln does not understand -f,
4526 # so we also need to try rm && ln -s.
4527 for linkname
4528 do
4529 test "$linkname" != "$realname" \
4530 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
4531 done
4532 fi
4533
4534 # Do each command in the postinstall commands.
4535 lib=$destdir/$realname
4536 func_execute_cmds "$postinstall_cmds" 'exit $?'
4537 fi
4538
4539 # Install the pseudo-library for information purposes.
4540 func_basename "$file"
4541 name=$func_basename_result
4542 instname=$dir/${name}i
4543 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
4544
4545 # Maybe install the static library, too.
4546 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4547 ;;
4548
4549 *.lo)
4550 # Install (i.e. copy) a libtool object.
4551
4552 # Figure out destination file name, if it wasn't already specified.
4553 if test -n "$destname"; then
4554 destfile=$destdir/$destname
4555 else
4556 func_basename "$file"
4557 destfile=$func_basename_result
4558 destfile=$destdir/$destfile
4559 fi
4560
4561 # Deduce the name of the destination old-style object file.
4562 case $destfile in
4563 *.lo)
4564 func_lo2o "$destfile"
4565 staticdest=$func_lo2o_result
4566 ;;
4567 *.$objext)
4568 staticdest=$destfile
4569 destfile=
4570 ;;
4571 *)
4572 func_fatal_help "cannot copy a libtool object to '$destfile'"
4573 ;;
4574 esac
4575
4576 # Install the libtool object if requested.
4577 test -n "$destfile" && \
4578 func_show_eval "$install_prog $file $destfile" 'exit $?'
4579
4580 # Install the old object if enabled.
4581 if test yes = "$build_old_libs"; then
4582 # Deduce the name of the old-style object file.
4583 func_lo2o "$file"
4584 staticobj=$func_lo2o_result
4585 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
4586 fi
4587 exit $EXIT_SUCCESS
4588 ;;
4589
4590 *)
4591 # Figure out destination file name, if it wasn't already specified.
4592 if test -n "$destname"; then
4593 destfile=$destdir/$destname
4594 else
4595 func_basename "$file"
4596 destfile=$func_basename_result
4597 destfile=$destdir/$destfile
4598 fi
4599
4600 # If the file is missing, and there is a .exe on the end, strip it
4601 # because it is most likely a libtool script we actually want to
4602 # install
4603 stripped_ext=
4604 case $file in
4605 *.exe)
4606 if test ! -f "$file"; then
4607 func_stripname '' '.exe' "$file"
4608 file=$func_stripname_result
4609 stripped_ext=.exe
4610 fi
4611 ;;
4612 esac
4613
4614 # Do a test to see if this is really a libtool program.
4615 case $host in
4616 *cygwin* | *mingw*)
4617 if func_ltwrapper_executable_p "$file"; then
4618 func_ltwrapper_scriptname "$file"
4619 wrapper=$func_ltwrapper_scriptname_result
4620 else
4621 func_stripname '' '.exe' "$file"
4622 wrapper=$func_stripname_result
4623 fi
4624 ;;
4625 *)
4626 wrapper=$file
4627 ;;
4628 esac
4629 if func_ltwrapper_script_p "$wrapper"; then
4630 notinst_deplibs=
4631 relink_command=
4632
4633 func_source "$wrapper"
4634
4635 # Check the variables that should have been set.
4636 test -z "$generated_by_libtool_version" && \
4637 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4638
4639 finalize=:
4640 for lib in $notinst_deplibs; do
4641 # Check to see that each library is installed.
4642 libdir=
4643 if test -f "$lib"; then
4644 func_source "$lib"
4645 fi
4646 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
4647 if test -n "$libdir" && test ! -f "$libfile"; then
4648 func_warning "'$lib' has not been installed in '$libdir'"
4649 finalize=false
4650 fi
4651 done
4652
4653 relink_command=
4654 func_source "$wrapper"
4655
4656 outputname=
4657 if test no = "$fast_install" && test -n "$relink_command"; then
4658 $opt_dry_run || {
4659 if $finalize; then
4660 tmpdir=`func_mktempdir`
4661 func_basename "$file$stripped_ext"
4662 file=$func_basename_result
4663 outputname=$tmpdir/$file
4664 # Replace the output file specification.
4665 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
4666
4667 $opt_quiet || {
4668 func_quote_arg expand,pretty "$relink_command"
4669 eval "func_echo $func_quote_arg_result"
4670 }
4671 if eval "$relink_command"; then :
4672 else
4673 func_error "error: relink '$file' with the above command before installing it"
4674 $opt_dry_run || ${RM}r "$tmpdir"
4675 continue
4676 fi
4677 file=$outputname
4678 else
4679 func_warning "cannot relink '$file'"
4680 fi
4681 }
4682 else
4683 # Install the binary that we compiled earlier.
4684 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
4685 fi
4686 fi
4687
4688 # remove .exe since cygwin /usr/bin/install will append another
4689 # one anyway
4690 case $install_prog,$host in
4691 */usr/bin/install*,*cygwin*)
4692 case $file:$destfile in
4693 *.exe:*.exe)
4694 # this is ok
4695 ;;
4696 *.exe:*)
4697 destfile=$destfile.exe
4698 ;;
4699 *:*.exe)
4700 func_stripname '' '.exe' "$destfile"
4701 destfile=$func_stripname_result
4702 ;;
4703 esac
4704 ;;
4705 esac
4706 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
4707 $opt_dry_run || if test -n "$outputname"; then
4708 ${RM}r "$tmpdir"
4709 fi
4710 ;;
4711 esac
4712 done
4713
4714 for file in $staticlibs; do
4715 func_basename "$file"
4716 name=$func_basename_result
4717
4718 # Set up the ranlib parameters.
4719 oldlib=$destdir/$name
4720 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
4721 tool_oldlib=$func_to_tool_file_result
4722
4723 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
4724
4725 if test -n "$stripme" && test -n "$old_striplib"; then
4726 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
4727 fi
4728
4729 # Do each command in the postinstall commands.
4730 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
4731 done
4732
4733 test -n "$future_libdirs" && \
4734 func_warning "remember to run '$progname --finish$future_libdirs'"
4735
4736 if test -n "$current_libdirs"; then
4737 # Maybe just do a dry run.
4738 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4739 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4740 else
4741 exit $EXIT_SUCCESS
4742 fi
4743 }
4744
4745 test install = "$opt_mode" && func_mode_install ${1+"$@"}
4746
4747
4748 # func_generate_dlsyms outputname originator pic_p
4749 # Extract symbols from dlprefiles and create ${outputname}S.o with
4750 # a dlpreopen symbol table.
4751 func_generate_dlsyms ()
4752 {
4753 $debug_cmd
4754
4755 my_outputname=$1
4756 my_originator=$2
4757 my_pic_p=${3-false}
4758 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4759 my_dlsyms=
4760
4761 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4762 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4763 my_dlsyms=${my_outputname}S.c
4764 else
4765 func_error "not configured to extract global symbols from dlpreopened files"
4766 fi
4767 fi
4768
4769 if test -n "$my_dlsyms"; then
4770 case $my_dlsyms in
4771 "") ;;
4772 *.c)
4773 # Discover the nlist of each of the dlfiles.
4774 nlist=$output_objdir/$my_outputname.nm
4775
4776 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
4777
4778 # Parse the name list into a source file.
4779 func_verbose "creating $output_objdir/$my_dlsyms"
4780
4781 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
4782 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4783 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
4784
4785 #ifdef __cplusplus
4786 extern \"C\" {
4787 #endif
4788
4789 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4790 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4791 #endif
4792
4793 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4794 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4795 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4796 relocations are performed -- see ld's documentation on pseudo-relocs. */
4797 # define LT_DLSYM_CONST
4798 #elif defined __osf__
4799 /* This system does not cope well with relocations in const data. */
4800 # define LT_DLSYM_CONST
4801 #else
4802 # define LT_DLSYM_CONST const
4803 #endif
4804
4805 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4806
4807 /* External symbol declarations for the compiler. */\
4808 "
4809
4810 if test yes = "$dlself"; then
4811 func_verbose "generating symbol list for '$output'"
4812
4813 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
4814
4815 # Add our own program objects to the symbol list.
4816 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
4817 for progfile in $progfiles; do
4818 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
4819 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
4820 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
4821 done
4822
4823 if test -n "$exclude_expsyms"; then
4824 $opt_dry_run || {
4825 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4826 eval '$MV "$nlist"T "$nlist"'
4827 }
4828 fi
4829
4830 if test -n "$export_symbols_regex"; then
4831 $opt_dry_run || {
4832 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4833 eval '$MV "$nlist"T "$nlist"'
4834 }
4835 fi
4836
4837 # Prepare the list of exported symbols
4838 if test -z "$export_symbols"; then
4839 export_symbols=$output_objdir/$outputname.exp
4840 $opt_dry_run || {
4841 $RM $export_symbols
4842 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4843 case $host in
4844 *cygwin* | *mingw* | *cegcc* )
4845 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4846 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4847 ;;
4848 esac
4849 }
4850 else
4851 $opt_dry_run || {
4852 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4853 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4854 eval '$MV "$nlist"T "$nlist"'
4855 case $host in
4856 *cygwin* | *mingw* | *cegcc* )
4857 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4858 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4859 ;;
4860 esac
4861 }
4862 fi
4863 fi
4864
4865 for dlprefile in $dlprefiles; do
4866 func_verbose "extracting global C symbols from '$dlprefile'"
4867 func_basename "$dlprefile"
4868 name=$func_basename_result
4869 case $host in
4870 *cygwin* | *mingw* | *cegcc* )
4871 # if an import library, we need to obtain dlname
4872 if func_win32_import_lib_p "$dlprefile"; then
4873 func_tr_sh "$dlprefile"
4874 eval "curr_lafile=\$libfile_$func_tr_sh_result"
4875 dlprefile_dlbasename=
4876 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4877 # Use subshell, to avoid clobbering current variable values
4878 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
4879 if test -n "$dlprefile_dlname"; then
4880 func_basename "$dlprefile_dlname"
4881 dlprefile_dlbasename=$func_basename_result
4882 else
4883 # no lafile. user explicitly requested -dlpreopen <import library>.
4884 $sharedlib_from_linklib_cmd "$dlprefile"
4885 dlprefile_dlbasename=$sharedlib_from_linklib_result
4886 fi
4887 fi
4888 $opt_dry_run || {
4889 if test -n "$dlprefile_dlbasename"; then
4890 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
4891 else
4892 func_warning "Could not compute DLL name from $name"
4893 eval '$ECHO ": $name " >> "$nlist"'
4894 fi
4895 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4896 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
4897 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4898 }
4899 else # not an import lib
4900 $opt_dry_run || {
4901 eval '$ECHO ": $name " >> "$nlist"'
4902 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4903 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4904 }
4905 fi
4906 ;;
4907 *)
4908 $opt_dry_run || {
4909 eval '$ECHO ": $name " >> "$nlist"'
4910 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4911 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4912 }
4913 ;;
4914 esac
4915 done
4916
4917 $opt_dry_run || {
4918 # Make sure we have at least an empty file.
4919 test -f "$nlist" || : > "$nlist"
4920
4921 if test -n "$exclude_expsyms"; then
4922 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4923 $MV "$nlist"T "$nlist"
4924 fi
4925
4926 # Try sorting and uniquifying the output.
4927 if $GREP -v "^: " < "$nlist" |
4928 if sort -k 3 </dev/null >/dev/null 2>&1; then
4929 sort -k 3
4930 else
4931 sort +2
4932 fi |
4933 uniq > "$nlist"S; then
4934 :
4935 else
4936 $GREP -v "^: " < "$nlist" > "$nlist"S
4937 fi
4938
4939 if test -f "$nlist"S; then
4940 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
4941 else
4942 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
4943 fi
4944
4945 func_show_eval '$RM "${nlist}I"'
4946 if test -n "$global_symbol_to_import"; then
4947 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4948 fi
4949
4950 echo >> "$output_objdir/$my_dlsyms" "\
4951
4952 /* The mapping between symbol names and symbols. */
4953 typedef struct {
4954 const char *name;
4955 void *address;
4956 } lt_dlsymlist;
4957 extern LT_DLSYM_CONST lt_dlsymlist
4958 lt_${my_prefix}_LTX_preloaded_symbols[];\
4959 "
4960
4961 if test -s "$nlist"I; then
4962 echo >> "$output_objdir/$my_dlsyms" "\
4963 static void lt_syminit(void)
4964 {
4965 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4966 for (; symbol->name; ++symbol)
4967 {"
4968 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4969 echo >> "$output_objdir/$my_dlsyms" "\
4970 }
4971 }"
4972 fi
4973 echo >> "$output_objdir/$my_dlsyms" "\
4974 LT_DLSYM_CONST lt_dlsymlist
4975 lt_${my_prefix}_LTX_preloaded_symbols[] =
4976 { {\"$my_originator\", (void *) 0},"
4977
4978 if test -s "$nlist"I; then
4979 echo >> "$output_objdir/$my_dlsyms" "\
4980 {\"@INIT@\", (void *) &lt_syminit},"
4981 fi
4982
4983 case $need_lib_prefix in
4984 no)
4985 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
4986 ;;
4987 *)
4988 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
4989 ;;
4990 esac
4991 echo >> "$output_objdir/$my_dlsyms" "\
4992 {0, (void *) 0}
4993 };
4994
4995 /* This works around a problem in FreeBSD linker */
4996 #ifdef FREEBSD_WORKAROUND
4997 static const void *lt_preloaded_setup() {
4998 return lt_${my_prefix}_LTX_preloaded_symbols;
4999 }
5000 #endif
5001
5002 #ifdef __cplusplus
5003 }
5004 #endif\
5005 "
5006 } # !$opt_dry_run
5007
5008 pic_flag_for_symtable=
5009 case "$compile_command " in
5010 *" -static "*) ;;
5011 *)
5012 case $host in
5013 # compiling the symbol table file with pic_flag works around
5014 # a FreeBSD bug that causes programs to crash when -lm is
5015 # linked before any other PIC object. But we must not use
5016 # pic_flag when linking with -static. The problem exists in
5017 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
5018 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
5019 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
5020 *-*-hpux*)
5021 pic_flag_for_symtable=" $pic_flag" ;;
5022 *)
5023 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
5024 ;;
5025 esac
5026 ;;
5027 esac
5028 symtab_cflags=
5029 for arg in $LTCFLAGS; do
5030 case $arg in
5031 -pie | -fpie | -fPIE) ;;
5032 *) func_append symtab_cflags " $arg" ;;
5033 esac
5034 done
5035
5036 # Now compile the dynamic symbol file.
5037 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
5038
5039 # Clean up the generated files.
5040 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
5041
5042 # Transform the symbol file into the correct name.
5043 symfileobj=$output_objdir/${my_outputname}S.$objext
5044 case $host in
5045 *cygwin* | *mingw* | *cegcc* )
5046 if test -f "$output_objdir/$my_outputname.def"; then
5047 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
5048 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
5049 else
5050 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
5051 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
5052 fi
5053 ;;
5054 *)
5055 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
5056 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
5057 ;;
5058 esac
5059 ;;
5060 *)
5061 func_fatal_error "unknown suffix for '$my_dlsyms'"
5062 ;;
5063 esac
5064 else
5065 # We keep going just in case the user didn't refer to
5066 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
5067 # really was required.
5068
5069 # Nullify the symbol file.
5070 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
5071 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
5072 fi
5073 }
5074
5075 # func_cygming_gnu_implib_p ARG
5076 # This predicate returns with zero status (TRUE) if
5077 # ARG is a GNU/binutils-style import library. Returns
5078 # with nonzero status (FALSE) otherwise.
5079 func_cygming_gnu_implib_p ()
5080 {
5081 $debug_cmd
5082
5083 func_to_tool_file "$1" func_convert_file_msys_to_w32
5084 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
5085 test -n "$func_cygming_gnu_implib_tmp"
5086 }
5087
5088 # func_cygming_ms_implib_p ARG
5089 # This predicate returns with zero status (TRUE) if
5090 # ARG is an MS-style import library. Returns
5091 # with nonzero status (FALSE) otherwise.
5092 func_cygming_ms_implib_p ()
5093 {
5094 $debug_cmd
5095
5096 func_to_tool_file "$1" func_convert_file_msys_to_w32
5097 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
5098 test -n "$func_cygming_ms_implib_tmp"
5099 }
5100
5101 # func_win32_libid arg
5102 # return the library type of file 'arg'
5103 #
5104 # Need a lot of goo to handle *both* DLLs and import libs
5105 # Has to be a shell function in order to 'eat' the argument
5106 # that is supplied when $file_magic_command is called.
5107 # Despite the name, also deal with 64 bit binaries.
5108 func_win32_libid ()
5109 {
5110 $debug_cmd
5111
5112 win32_libid_type=unknown
5113 win32_fileres=`file -L $1 2>/dev/null`
5114 case $win32_fileres in
5115 *ar\ archive\ import\ library*) # definitely import
5116 win32_libid_type="x86 archive import"
5117 ;;
5118 *ar\ archive*) # could be an import, or static
5119 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
5120 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
5121 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
5122 case $nm_interface in
5123 "MS dumpbin")
5124 if func_cygming_ms_implib_p "$1" ||
5125 func_cygming_gnu_implib_p "$1"
5126 then
5127 win32_nmres=import
5128 else
5129 win32_nmres=
5130 fi
5131 ;;
5132 *)
5133 func_to_tool_file "$1" func_convert_file_msys_to_w32
5134 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
5135 $SED -n -e '
5136 1,100{
5137 / I /{
5138 s|.*|import|
5139 p
5140 q
5141 }
5142 }'`
5143 ;;
5144 esac
5145 case $win32_nmres in
5146 import*) win32_libid_type="x86 archive import";;
5147 *) win32_libid_type="x86 archive static";;
5148 esac
5149 fi
5150 ;;
5151 *DLL*)
5152 win32_libid_type="x86 DLL"
5153 ;;
5154 *executable*) # but shell scripts are "executable" too...
5155 case $win32_fileres in
5156 *MS\ Windows\ PE\ Intel*)
5157 win32_libid_type="x86 DLL"
5158 ;;
5159 esac
5160 ;;
5161 esac
5162 $ECHO "$win32_libid_type"
5163 }
5164
5165 # func_cygming_dll_for_implib ARG
5166 #
5167 # Platform-specific function to extract the
5168 # name of the DLL associated with the specified
5169 # import library ARG.
5170 # Invoked by eval'ing the libtool variable
5171 # $sharedlib_from_linklib_cmd
5172 # Result is available in the variable
5173 # $sharedlib_from_linklib_result
5174 func_cygming_dll_for_implib ()
5175 {
5176 $debug_cmd
5177
5178 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
5179 }
5180
5181 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
5182 #
5183 # The is the core of a fallback implementation of a
5184 # platform-specific function to extract the name of the
5185 # DLL associated with the specified import library LIBNAME.
5186 #
5187 # SECTION_NAME is either .idata$6 or .idata$7, depending
5188 # on the platform and compiler that created the implib.
5189 #
5190 # Echos the name of the DLL associated with the
5191 # specified import library.
5192 func_cygming_dll_for_implib_fallback_core ()
5193 {
5194 $debug_cmd
5195
5196 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
5197 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5198 $SED '/^Contents of section '"$match_literal"':/{
5199 # Place marker at beginning of archive member dllname section
5200 s/.*/====MARK====/
5201 p
5202 d
5203 }
5204 # These lines can sometimes be longer than 43 characters, but
5205 # are always uninteresting
5206 /:[ ]*file format pe[i]\{,1\}-/d
5207 /^In archive [^:]*:/d
5208 # Ensure marker is printed
5209 /^====MARK====/p
5210 # Remove all lines with less than 43 characters
5211 /^.\{43\}/!d
5212 # From remaining lines, remove first 43 characters
5213 s/^.\{43\}//' |
5214 $SED -n '
5215 # Join marker and all lines until next marker into a single line
5216 /^====MARK====/ b para
5217 H
5218 $ b para
5219 b
5220 :para
5221 x
5222 s/\n//g
5223 # Remove the marker
5224 s/^====MARK====//
5225 # Remove trailing dots and whitespace
5226 s/[\. \t]*$//
5227 # Print
5228 /./p' |
5229 # we now have a list, one entry per line, of the stringified
5230 # contents of the appropriate section of all members of the
5231 # archive that possess that section. Heuristic: eliminate
5232 # all those that have a first or second character that is
5233 # a '.' (that is, objdump's representation of an unprintable
5234 # character.) This should work for all archives with less than
5235 # 0x302f exports -- but will fail for DLLs whose name actually
5236 # begins with a literal '.' or a single character followed by
5237 # a '.'.
5238 #
5239 # Of those that remain, print the first one.
5240 $SED -e '/^\./d;/^.\./d;q'
5241 }
5242
5243 # func_cygming_dll_for_implib_fallback ARG
5244 # Platform-specific function to extract the
5245 # name of the DLL associated with the specified
5246 # import library ARG.
5247 #
5248 # This fallback implementation is for use when $DLLTOOL
5249 # does not support the --identify-strict option.
5250 # Invoked by eval'ing the libtool variable
5251 # $sharedlib_from_linklib_cmd
5252 # Result is available in the variable
5253 # $sharedlib_from_linklib_result
5254 func_cygming_dll_for_implib_fallback ()
5255 {
5256 $debug_cmd
5257
5258 if func_cygming_gnu_implib_p "$1"; then
5259 # binutils import library
5260 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
5261 elif func_cygming_ms_implib_p "$1"; then
5262 # ms-generated import library
5263 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
5264 else
5265 # unknown
5266 sharedlib_from_linklib_result=
5267 fi
5268 }
5269
5270
5271 # func_extract_an_archive dir oldlib
5272 func_extract_an_archive ()
5273 {
5274 $debug_cmd
5275
5276 f_ex_an_ar_dir=$1; shift
5277 f_ex_an_ar_oldlib=$1
5278 if test yes = "$lock_old_archive_extraction"; then
5279 lockfile=$f_ex_an_ar_oldlib.lock
5280 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
5281 func_echo "Waiting for $lockfile to be removed"
5282 sleep 2
5283 done
5284 fi
5285 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
5286 'stat=$?; rm -f "$lockfile"; exit $stat'
5287 if test yes = "$lock_old_archive_extraction"; then
5288 $opt_dry_run || rm -f "$lockfile"
5289 fi
5290 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5291 :
5292 else
5293 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
5294 fi
5295 }
5296
5297
5298 # func_extract_archives gentop oldlib ...
5299 func_extract_archives ()
5300 {
5301 $debug_cmd
5302
5303 my_gentop=$1; shift
5304 my_oldlibs=${1+"$@"}
5305 my_oldobjs=
5306 my_xlib=
5307 my_xabs=
5308 my_xdir=
5309
5310 for my_xlib in $my_oldlibs; do
5311 # Extract the objects.
5312 case $my_xlib in
5313 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5314 *) my_xabs=`pwd`"/$my_xlib" ;;
5315 esac
5316 func_basename "$my_xlib"
5317 my_xlib=$func_basename_result
5318 my_xlib_u=$my_xlib
5319 while :; do
5320 case " $extracted_archives " in
5321 *" $my_xlib_u "*)
5322 func_arith $extracted_serial + 1
5323 extracted_serial=$func_arith_result
5324 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5325 *) break ;;
5326 esac
5327 done
5328 extracted_archives="$extracted_archives $my_xlib_u"
5329 my_xdir=$my_gentop/$my_xlib_u
5330
5331 func_mkdir_p "$my_xdir"
5332
5333 case $host in
5334 *-darwin*)
5335 func_verbose "Extracting $my_xabs"
5336 # Do not bother doing anything if just a dry run
5337 $opt_dry_run || {
5338 darwin_orig_dir=`pwd`
5339 cd $my_xdir || exit $?
5340 darwin_archive=$my_xabs
5341 darwin_curdir=`pwd`
5342 func_basename "$darwin_archive"
5343 darwin_base_archive=$func_basename_result
5344 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5345 if test -n "$darwin_arches"; then
5346 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5347 darwin_arch=
5348 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
5349 for darwin_arch in $darwin_arches; do
5350 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5351 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5352 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5353 func_extract_an_archive "`pwd`" "$darwin_base_archive"
5354 cd "$darwin_curdir"
5355 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5356 done # $darwin_arches
5357 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
5358 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
5359 darwin_file=
5360 darwin_files=
5361 for darwin_file in $darwin_filelist; do
5362 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5363 $LIPO -create -output "$darwin_file" $darwin_files
5364 done # $darwin_filelist
5365 $RM -rf unfat-$$
5366 cd "$darwin_orig_dir"
5367 else
5368 cd $darwin_orig_dir
5369 func_extract_an_archive "$my_xdir" "$my_xabs"
5370 fi # $darwin_arches
5371 } # !$opt_dry_run
5372 ;;
5373 *)
5374 func_extract_an_archive "$my_xdir" "$my_xabs"
5375 ;;
5376 esac
5377 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
5378 done
5379
5380 func_extract_archives_result=$my_oldobjs
5381 }
5382
5383
5384 # func_emit_wrapper [arg=no]
5385 #
5386 # Emit a libtool wrapper script on stdout.
5387 # Don't directly open a file because we may want to
5388 # incorporate the script contents within a cygwin/mingw
5389 # wrapper executable. Must ONLY be called from within
5390 # func_mode_link because it depends on a number of variables
5391 # set therein.
5392 #
5393 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
5394 # variable will take. If 'yes', then the emitted script
5395 # will assume that the directory where it is stored is
5396 # the $objdir directory. This is a cygwin/mingw-specific
5397 # behavior.
5398 func_emit_wrapper ()
5399 {
5400 func_emit_wrapper_arg1=${1-no}
5401
5402 $ECHO "\
5403 #! $SHELL
5404
5405 # $output - temporary wrapper script for $objdir/$outputname
5406 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
5407 #
5408 # The $output program cannot be directly executed until all the libtool
5409 # libraries that it depends on are installed.
5410 #
5411 # This wrapper script should never be moved out of the build directory.
5412 # If it is, it will not operate correctly.
5413
5414 # Sed substitution that helps us do robust quoting. It backslashifies
5415 # metacharacters that are still active within double-quoted strings.
5416 sed_quote_subst='$sed_quote_subst'
5417
5418 # Be Bourne compatible
5419 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5420 emulate sh
5421 NULLCMD=:
5422 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5423 # is contrary to our usage. Disable this feature.
5424 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5425 setopt NO_GLOB_SUBST
5426 else
5427 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5428 fi
5429 BIN_SH=xpg4; export BIN_SH # for Tru64
5430 DUALCASE=1; export DUALCASE # for MKS sh
5431
5432 # The HP-UX ksh and POSIX shell print the target directory to stdout
5433 # if CDPATH is set.
5434 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5435
5436 relink_command=\"$relink_command\"
5437
5438 # This environment variable determines our operation mode.
5439 if test \"\$libtool_install_magic\" = \"$magic\"; then
5440 # install mode needs the following variables:
5441 generated_by_libtool_version='$macro_version'
5442 notinst_deplibs='$notinst_deplibs'
5443 else
5444 # When we are sourced in execute mode, \$file and \$ECHO are already set.
5445 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5446 file=\"\$0\""
5447
5448 func_quote_arg pretty "$ECHO"
5449 qECHO=$func_quote_arg_result
5450 $ECHO "\
5451
5452 # A function that is used when there is no print builtin or printf.
5453 func_fallback_echo ()
5454 {
5455 eval 'cat <<_LTECHO_EOF
5456 \$1
5457 _LTECHO_EOF'
5458 }
5459 ECHO=$qECHO
5460 fi
5461
5462 # Very basic option parsing. These options are (a) specific to
5463 # the libtool wrapper, (b) are identical between the wrapper
5464 # /script/ and the wrapper /executable/ that is used only on
5465 # windows platforms, and (c) all begin with the string "--lt-"
5466 # (application programs are unlikely to have options that match
5467 # this pattern).
5468 #
5469 # There are only two supported options: --lt-debug and
5470 # --lt-dump-script. There is, deliberately, no --lt-help.
5471 #
5472 # The first argument to this parsing function should be the
5473 # script's $0 value, followed by "$@".
5474 lt_option_debug=
5475 func_parse_lt_options ()
5476 {
5477 lt_script_arg0=\$0
5478 shift
5479 for lt_opt
5480 do
5481 case \"\$lt_opt\" in
5482 --lt-debug) lt_option_debug=1 ;;
5483 --lt-dump-script)
5484 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5485 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
5486 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5487 cat \"\$lt_dump_D/\$lt_dump_F\"
5488 exit 0
5489 ;;
5490 --lt-*)
5491 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5492 exit 1
5493 ;;
5494 esac
5495 done
5496
5497 # Print the debug banner immediately:
5498 if test -n \"\$lt_option_debug\"; then
5499 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
5500 fi
5501 }
5502
5503 # Used when --lt-debug. Prints its arguments to stdout
5504 # (redirection is the responsibility of the caller)
5505 func_lt_dump_args ()
5506 {
5507 lt_dump_args_N=1;
5508 for lt_arg
5509 do
5510 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
5511 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
5512 done
5513 }
5514
5515 # Core function for launching the target application
5516 func_exec_program_core ()
5517 {
5518 "
5519 case $host in
5520 # Backslashes separate directories on plain windows
5521 *-*-mingw | *-*-os2* | *-cegcc*)
5522 $ECHO "\
5523 if test -n \"\$lt_option_debug\"; then
5524 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
5525 func_lt_dump_args \${1+\"\$@\"} 1>&2
5526 fi
5527 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5528 "
5529 ;;
5530
5531 *)
5532 $ECHO "\
5533 if test -n \"\$lt_option_debug\"; then
5534 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
5535 func_lt_dump_args \${1+\"\$@\"} 1>&2
5536 fi
5537 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5538 "
5539 ;;
5540 esac
5541 $ECHO "\
5542 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
5543 exit 1
5544 }
5545
5546 # A function to encapsulate launching the target application
5547 # Strips options in the --lt-* namespace from \$@ and
5548 # launches target application with the remaining arguments.
5549 func_exec_program ()
5550 {
5551 case \" \$* \" in
5552 *\\ --lt-*)
5553 for lt_wr_arg
5554 do
5555 case \$lt_wr_arg in
5556 --lt-*) ;;
5557 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
5558 esac
5559 shift
5560 done ;;
5561 esac
5562 func_exec_program_core \${1+\"\$@\"}
5563 }
5564
5565 # Parse options
5566 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
5567
5568 # Find the directory that this script lives in.
5569 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
5570 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5571
5572 # Follow symbolic links until we get to the real thisdir.
5573 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5574 while test -n \"\$file\"; do
5575 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
5576
5577 # If there was a directory component, then change thisdir.
5578 if test \"x\$destdir\" != \"x\$file\"; then
5579 case \"\$destdir\" in
5580 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5581 *) thisdir=\"\$thisdir/\$destdir\" ;;
5582 esac
5583 fi
5584
5585 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
5586 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5587 done
5588
5589 # Usually 'no', except on cygwin/mingw when embedded into
5590 # the cwrapper.
5591 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
5592 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
5593 # special case for '.'
5594 if test \"\$thisdir\" = \".\"; then
5595 thisdir=\`pwd\`
5596 fi
5597 # remove .libs from thisdir
5598 case \"\$thisdir\" in
5599 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
5600 $objdir ) thisdir=. ;;
5601 esac
5602 fi
5603
5604 # Try to get the absolute directory name.
5605 absdir=\`cd \"\$thisdir\" && pwd\`
5606 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5607 "
5608
5609 if test yes = "$fast_install"; then
5610 $ECHO "\
5611 program=lt-'$outputname'$exeext
5612 progdir=\"\$thisdir/$objdir\"
5613
5614 if test ! -f \"\$progdir/\$program\" ||
5615 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5616 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5617
5618 file=\"\$\$-\$program\"
5619
5620 if test ! -d \"\$progdir\"; then
5621 $MKDIR \"\$progdir\"
5622 else
5623 $RM \"\$progdir/\$file\"
5624 fi"
5625
5626 $ECHO "\
5627
5628 # relink executable if necessary
5629 if test -n \"\$relink_command\"; then
5630 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5631 else
5632 \$ECHO \"\$relink_command_output\" >&2
5633 $RM \"\$progdir/\$file\"
5634 exit 1
5635 fi
5636 fi
5637
5638 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5639 { $RM \"\$progdir/\$program\";
5640 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5641 $RM \"\$progdir/\$file\"
5642 fi"
5643 else
5644 $ECHO "\
5645 program='$outputname'
5646 progdir=\"\$thisdir/$objdir\"
5647 "
5648 fi
5649
5650 $ECHO "\
5651
5652 if test -f \"\$progdir/\$program\"; then"
5653
5654 # fixup the dll searchpath if we need to.
5655 #
5656 # Fix the DLL searchpath if we need to. Do this before prepending
5657 # to shlibpath, because on Windows, both are PATH and uninstalled
5658 # libraries must come first.
5659 if test -n "$dllsearchpath"; then
5660 $ECHO "\
5661 # Add the dll search path components to the executable PATH
5662 PATH=$dllsearchpath:\$PATH
5663 "
5664 fi
5665
5666 # Export our shlibpath_var if we have one.
5667 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5668 $ECHO "\
5669 # Add our own library path to $shlibpath_var
5670 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5671
5672 # Some systems cannot cope with colon-terminated $shlibpath_var
5673 # The second colon is a workaround for a bug in BeOS R4 sed
5674 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
5675
5676 export $shlibpath_var
5677 "
5678 fi
5679
5680 $ECHO "\
5681 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5682 # Run the actual program with our arguments.
5683 func_exec_program \${1+\"\$@\"}
5684 fi
5685 else
5686 # The program doesn't exist.
5687 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
5688 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
5689 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
5690 exit 1
5691 fi
5692 fi\
5693 "
5694 }
5695
5696
5697 # func_emit_cwrapperexe_src
5698 # emit the source code for a wrapper executable on stdout
5699 # Must ONLY be called from within func_mode_link because
5700 # it depends on a number of variable set therein.
5701 func_emit_cwrapperexe_src ()
5702 {
5703 cat <<EOF
5704
5705 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5706 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
5707
5708 The $output program cannot be directly executed until all the libtool
5709 libraries that it depends on are installed.
5710
5711 This wrapper executable should never be moved out of the build directory.
5712 If it is, it will not operate correctly.
5713 */
5714 EOF
5715 cat <<"EOF"
5716 #ifdef _MSC_VER
5717 # define _CRT_SECURE_NO_DEPRECATE 1
5718 #endif
5719 #include <stdio.h>
5720 #include <stdlib.h>
5721 #ifdef _MSC_VER
5722 # include <direct.h>
5723 # include <process.h>
5724 # include <io.h>
5725 #else
5726 # include <unistd.h>
5727 # include <stdint.h>
5728 # ifdef __CYGWIN__
5729 # include <io.h>
5730 # endif
5731 #endif
5732 #include <malloc.h>
5733 #include <stdarg.h>
5734 #include <assert.h>
5735 #include <string.h>
5736 #include <ctype.h>
5737 #include <errno.h>
5738 #include <fcntl.h>
5739 #include <sys/stat.h>
5740
5741 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5742
5743 /* declarations of non-ANSI functions */
5744 #if defined __MINGW32__
5745 # ifdef __STRICT_ANSI__
5746 int _putenv (const char *);
5747 # endif
5748 #elif defined __CYGWIN__
5749 # ifdef __STRICT_ANSI__
5750 char *realpath (const char *, char *);
5751 int putenv (char *);
5752 int setenv (const char *, const char *, int);
5753 # endif
5754 /* #elif defined other_platform || defined ... */
5755 #endif
5756
5757 /* portability defines, excluding path handling macros */
5758 #if defined _MSC_VER
5759 # define setmode _setmode
5760 # define stat _stat
5761 # define chmod _chmod
5762 # define getcwd _getcwd
5763 # define putenv _putenv
5764 # define S_IXUSR _S_IEXEC
5765 #elif defined __MINGW32__
5766 # define setmode _setmode
5767 # define stat _stat
5768 # define chmod _chmod
5769 # define getcwd _getcwd
5770 # define putenv _putenv
5771 #elif defined __CYGWIN__
5772 # define HAVE_SETENV
5773 # define FOPEN_WB "wb"
5774 /* #elif defined other platforms ... */
5775 #endif
5776
5777 #if defined PATH_MAX
5778 # define LT_PATHMAX PATH_MAX
5779 #elif defined MAXPATHLEN
5780 # define LT_PATHMAX MAXPATHLEN
5781 #else
5782 # define LT_PATHMAX 1024
5783 #endif
5784
5785 #ifndef S_IXOTH
5786 # define S_IXOTH 0
5787 #endif
5788 #ifndef S_IXGRP
5789 # define S_IXGRP 0
5790 #endif
5791
5792 /* path handling portability macros */
5793 #ifndef DIR_SEPARATOR
5794 # define DIR_SEPARATOR '/'
5795 # define PATH_SEPARATOR ':'
5796 #endif
5797
5798 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5799 defined __OS2__
5800 # define HAVE_DOS_BASED_FILE_SYSTEM
5801 # define FOPEN_WB "wb"
5802 # ifndef DIR_SEPARATOR_2
5803 # define DIR_SEPARATOR_2 '\\'
5804 # endif
5805 # ifndef PATH_SEPARATOR_2
5806 # define PATH_SEPARATOR_2 ';'
5807 # endif
5808 #endif
5809
5810 #ifndef DIR_SEPARATOR_2
5811 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5812 #else /* DIR_SEPARATOR_2 */
5813 # define IS_DIR_SEPARATOR(ch) \
5814 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5815 #endif /* DIR_SEPARATOR_2 */
5816
5817 #ifndef PATH_SEPARATOR_2
5818 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5819 #else /* PATH_SEPARATOR_2 */
5820 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5821 #endif /* PATH_SEPARATOR_2 */
5822
5823 #ifndef FOPEN_WB
5824 # define FOPEN_WB "w"
5825 #endif
5826 #ifndef _O_BINARY
5827 # define _O_BINARY 0
5828 #endif
5829
5830 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5831 #define XFREE(stale) do { \
5832 if (stale) { free (stale); stale = 0; } \
5833 } while (0)
5834
5835 #if defined LT_DEBUGWRAPPER
5836 static int lt_debug = 1;
5837 #else
5838 static int lt_debug = 0;
5839 #endif
5840
5841 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5842
5843 void *xmalloc (size_t num);
5844 char *xstrdup (const char *string);
5845 const char *base_name (const char *name);
5846 char *find_executable (const char *wrapper);
5847 char *chase_symlinks (const char *pathspec);
5848 int make_executable (const char *path);
5849 int check_executable (const char *path);
5850 char *strendzap (char *str, const char *pat);
5851 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
5852 void lt_fatal (const char *file, int line, const char *message, ...);
5853 static const char *nonnull (const char *s);
5854 static const char *nonempty (const char *s);
5855 void lt_setenv (const char *name, const char *value);
5856 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
5857 void lt_update_exe_path (const char *name, const char *value);
5858 void lt_update_lib_path (const char *name, const char *value);
5859 char **prepare_spawn (char **argv);
5860 void lt_dump_script (FILE *f);
5861 EOF
5862
5863 cat <<EOF
5864 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5865 # define externally_visible volatile
5866 #else
5867 # define externally_visible __attribute__((externally_visible)) volatile
5868 #endif
5869 externally_visible const char * MAGIC_EXE = "$magic_exe";
5870 const char * LIB_PATH_VARNAME = "$shlibpath_var";
5871 EOF
5872
5873 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5874 func_to_host_path "$temp_rpath"
5875 cat <<EOF
5876 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
5877 EOF
5878 else
5879 cat <<"EOF"
5880 const char * LIB_PATH_VALUE = "";
5881 EOF
5882 fi
5883
5884 if test -n "$dllsearchpath"; then
5885 func_to_host_path "$dllsearchpath:"
5886 cat <<EOF
5887 const char * EXE_PATH_VARNAME = "PATH";
5888 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
5889 EOF
5890 else
5891 cat <<"EOF"
5892 const char * EXE_PATH_VARNAME = "";
5893 const char * EXE_PATH_VALUE = "";
5894 EOF
5895 fi
5896
5897 if test yes = "$fast_install"; then
5898 cat <<EOF
5899 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5900 EOF
5901 else
5902 cat <<EOF
5903 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
5904 EOF
5905 fi
5906
5907
5908 cat <<"EOF"
5909
5910 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5911
5912 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
5913 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
5914 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
5915
5916 int
5917 main (int argc, char *argv[])
5918 {
5919 char **newargz;
5920 int newargc;
5921 char *tmp_pathspec;
5922 char *actual_cwrapper_path;
5923 char *actual_cwrapper_name;
5924 char *target_name;
5925 char *lt_argv_zero;
5926 int rval = 127;
5927
5928 int i;
5929
5930 program_name = (char *) xstrdup (base_name (argv[0]));
5931 newargz = XMALLOC (char *, (size_t) argc + 1);
5932
5933 /* very simple arg parsing; don't want to rely on getopt
5934 * also, copy all non cwrapper options to newargz, except
5935 * argz[0], which is handled differently
5936 */
5937 newargc=0;
5938 for (i = 1; i < argc; i++)
5939 {
5940 if (STREQ (argv[i], dumpscript_opt))
5941 {
5942 EOF
5943 case $host in
5944 *mingw* | *cygwin* )
5945 # make stdout use "unix" line endings
5946 echo " setmode(1,_O_BINARY);"
5947 ;;
5948 esac
5949
5950 cat <<"EOF"
5951 lt_dump_script (stdout);
5952 return 0;
5953 }
5954 if (STREQ (argv[i], debug_opt))
5955 {
5956 lt_debug = 1;
5957 continue;
5958 }
5959 if (STREQ (argv[i], ltwrapper_option_prefix))
5960 {
5961 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
5962 namespace, but it is not one of the ones we know about and
5963 have already dealt with, above (inluding dump-script), then
5964 report an error. Otherwise, targets might begin to believe
5965 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
5966 namespace. The first time any user complains about this, we'll
5967 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
5968 or a configure.ac-settable value.
5969 */
5970 lt_fatal (__FILE__, __LINE__,
5971 "unrecognized %s option: '%s'",
5972 ltwrapper_option_prefix, argv[i]);
5973 }
5974 /* otherwise ... */
5975 newargz[++newargc] = xstrdup (argv[i]);
5976 }
5977 newargz[++newargc] = NULL;
5978
5979 EOF
5980 cat <<EOF
5981 /* The GNU banner must be the first non-error debug message */
5982 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
5983 EOF
5984 cat <<"EOF"
5985 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
5986 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
5987
5988 tmp_pathspec = find_executable (argv[0]);
5989 if (tmp_pathspec == NULL)
5990 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
5991 lt_debugprintf (__FILE__, __LINE__,
5992 "(main) found exe (before symlink chase) at: %s\n",
5993 tmp_pathspec);
5994
5995 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
5996 lt_debugprintf (__FILE__, __LINE__,
5997 "(main) found exe (after symlink chase) at: %s\n",
5998 actual_cwrapper_path);
5999 XFREE (tmp_pathspec);
6000
6001 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
6002 strendzap (actual_cwrapper_path, actual_cwrapper_name);
6003
6004 /* wrapper name transforms */
6005 strendzap (actual_cwrapper_name, ".exe");
6006 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
6007 XFREE (actual_cwrapper_name);
6008 actual_cwrapper_name = tmp_pathspec;
6009 tmp_pathspec = 0;
6010
6011 /* target_name transforms -- use actual target program name; might have lt- prefix */
6012 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
6013 strendzap (target_name, ".exe");
6014 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
6015 XFREE (target_name);
6016 target_name = tmp_pathspec;
6017 tmp_pathspec = 0;
6018
6019 lt_debugprintf (__FILE__, __LINE__,
6020 "(main) libtool target name: %s\n",
6021 target_name);
6022 EOF
6023
6024 cat <<EOF
6025 newargz[0] =
6026 XMALLOC (char, (strlen (actual_cwrapper_path) +
6027 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
6028 strcpy (newargz[0], actual_cwrapper_path);
6029 strcat (newargz[0], "$objdir");
6030 strcat (newargz[0], "/");
6031 EOF
6032
6033 cat <<"EOF"
6034 /* stop here, and copy so we don't have to do this twice */
6035 tmp_pathspec = xstrdup (newargz[0]);
6036
6037 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
6038 strcat (newargz[0], actual_cwrapper_name);
6039
6040 /* DO want the lt- prefix here if it exists, so use target_name */
6041 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
6042 XFREE (tmp_pathspec);
6043 tmp_pathspec = NULL;
6044 EOF
6045
6046 case $host_os in
6047 mingw*)
6048 cat <<"EOF"
6049 {
6050 char* p;
6051 while ((p = strchr (newargz[0], '\\')) != NULL)
6052 {
6053 *p = '/';
6054 }
6055 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
6056 {
6057 *p = '/';
6058 }
6059 }
6060 EOF
6061 ;;
6062 esac
6063
6064 cat <<"EOF"
6065 XFREE (target_name);
6066 XFREE (actual_cwrapper_path);
6067 XFREE (actual_cwrapper_name);
6068
6069 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
6070 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
6071 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
6072 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
6073 because on Windows, both *_VARNAMEs are PATH but uninstalled
6074 libraries must come first. */
6075 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
6076 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
6077
6078 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
6079 nonnull (lt_argv_zero));
6080 for (i = 0; i < newargc; i++)
6081 {
6082 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
6083 i, nonnull (newargz[i]));
6084 }
6085
6086 EOF
6087
6088 case $host_os in
6089 mingw*)
6090 cat <<"EOF"
6091 /* execv doesn't actually work on mingw as expected on unix */
6092 newargz = prepare_spawn (newargz);
6093 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
6094 if (rval == -1)
6095 {
6096 /* failed to start process */
6097 lt_debugprintf (__FILE__, __LINE__,
6098 "(main) failed to launch target \"%s\": %s\n",
6099 lt_argv_zero, nonnull (strerror (errno)));
6100 return 127;
6101 }
6102 return rval;
6103 EOF
6104 ;;
6105 *)
6106 cat <<"EOF"
6107 execv (lt_argv_zero, newargz);
6108 return rval; /* =127, but avoids unused variable warning */
6109 EOF
6110 ;;
6111 esac
6112
6113 cat <<"EOF"
6114 }
6115
6116 void *
6117 xmalloc (size_t num)
6118 {
6119 void *p = (void *) malloc (num);
6120 if (!p)
6121 lt_fatal (__FILE__, __LINE__, "memory exhausted");
6122
6123 return p;
6124 }
6125
6126 char *
6127 xstrdup (const char *string)
6128 {
6129 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
6130 string) : NULL;
6131 }
6132
6133 const char *
6134 base_name (const char *name)
6135 {
6136 const char *base;
6137
6138 #if defined HAVE_DOS_BASED_FILE_SYSTEM
6139 /* Skip over the disk name in MSDOS pathnames. */
6140 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
6141 name += 2;
6142 #endif
6143
6144 for (base = name; *name; name++)
6145 if (IS_DIR_SEPARATOR (*name))
6146 base = name + 1;
6147 return base;
6148 }
6149
6150 int
6151 check_executable (const char *path)
6152 {
6153 struct stat st;
6154
6155 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
6156 nonempty (path));
6157 if ((!path) || (!*path))
6158 return 0;
6159
6160 if ((stat (path, &st) >= 0)
6161 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
6162 return 1;
6163 else
6164 return 0;
6165 }
6166
6167 int
6168 make_executable (const char *path)
6169 {
6170 int rval = 0;
6171 struct stat st;
6172
6173 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
6174 nonempty (path));
6175 if ((!path) || (!*path))
6176 return 0;
6177
6178 if (stat (path, &st) >= 0)
6179 {
6180 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
6181 }
6182 return rval;
6183 }
6184
6185 /* Searches for the full path of the wrapper. Returns
6186 newly allocated full path name if found, NULL otherwise
6187 Does not chase symlinks, even on platforms that support them.
6188 */
6189 char *
6190 find_executable (const char *wrapper)
6191 {
6192 int has_slash = 0;
6193 const char *p;
6194 const char *p_next;
6195 /* static buffer for getcwd */
6196 char tmp[LT_PATHMAX + 1];
6197 size_t tmp_len;
6198 char *concat_name;
6199
6200 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
6201 nonempty (wrapper));
6202
6203 if ((wrapper == NULL) || (*wrapper == '\0'))
6204 return NULL;
6205
6206 /* Absolute path? */
6207 #if defined HAVE_DOS_BASED_FILE_SYSTEM
6208 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
6209 {
6210 concat_name = xstrdup (wrapper);
6211 if (check_executable (concat_name))
6212 return concat_name;
6213 XFREE (concat_name);
6214 }
6215 else
6216 {
6217 #endif
6218 if (IS_DIR_SEPARATOR (wrapper[0]))
6219 {
6220 concat_name = xstrdup (wrapper);
6221 if (check_executable (concat_name))
6222 return concat_name;
6223 XFREE (concat_name);
6224 }
6225 #if defined HAVE_DOS_BASED_FILE_SYSTEM
6226 }
6227 #endif
6228
6229 for (p = wrapper; *p; p++)
6230 if (*p == '/')
6231 {
6232 has_slash = 1;
6233 break;
6234 }
6235 if (!has_slash)
6236 {
6237 /* no slashes; search PATH */
6238 const char *path = getenv ("PATH");
6239 if (path != NULL)
6240 {
6241 for (p = path; *p; p = p_next)
6242 {
6243 const char *q;
6244 size_t p_len;
6245 for (q = p; *q; q++)
6246 if (IS_PATH_SEPARATOR (*q))
6247 break;
6248 p_len = (size_t) (q - p);
6249 p_next = (*q == '\0' ? q : q + 1);
6250 if (p_len == 0)
6251 {
6252 /* empty path: current directory */
6253 if (getcwd (tmp, LT_PATHMAX) == NULL)
6254 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
6255 nonnull (strerror (errno)));
6256 tmp_len = strlen (tmp);
6257 concat_name =
6258 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
6259 memcpy (concat_name, tmp, tmp_len);
6260 concat_name[tmp_len] = '/';
6261 strcpy (concat_name + tmp_len + 1, wrapper);
6262 }
6263 else
6264 {
6265 concat_name =
6266 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
6267 memcpy (concat_name, p, p_len);
6268 concat_name[p_len] = '/';
6269 strcpy (concat_name + p_len + 1, wrapper);
6270 }
6271 if (check_executable (concat_name))
6272 return concat_name;
6273 XFREE (concat_name);
6274 }
6275 }
6276 /* not found in PATH; assume curdir */
6277 }
6278 /* Relative path | not found in path: prepend cwd */
6279 if (getcwd (tmp, LT_PATHMAX) == NULL)
6280 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
6281 nonnull (strerror (errno)));
6282 tmp_len = strlen (tmp);
6283 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
6284 memcpy (concat_name, tmp, tmp_len);
6285 concat_name[tmp_len] = '/';
6286 strcpy (concat_name + tmp_len + 1, wrapper);
6287
6288 if (check_executable (concat_name))
6289 return concat_name;
6290 XFREE (concat_name);
6291 return NULL;
6292 }
6293
6294 char *
6295 chase_symlinks (const char *pathspec)
6296 {
6297 #ifndef S_ISLNK
6298 return xstrdup (pathspec);
6299 #else
6300 char buf[LT_PATHMAX];
6301 struct stat s;
6302 char *tmp_pathspec = xstrdup (pathspec);
6303 char *p;
6304 int has_symlinks = 0;
6305 while (strlen (tmp_pathspec) && !has_symlinks)
6306 {
6307 lt_debugprintf (__FILE__, __LINE__,
6308 "checking path component for symlinks: %s\n",
6309 tmp_pathspec);
6310 if (lstat (tmp_pathspec, &s) == 0)
6311 {
6312 if (S_ISLNK (s.st_mode) != 0)
6313 {
6314 has_symlinks = 1;
6315 break;
6316 }
6317
6318 /* search backwards for last DIR_SEPARATOR */
6319 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6320 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
6321 p--;
6322 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
6323 {
6324 /* no more DIR_SEPARATORS left */
6325 break;
6326 }
6327 *p = '\0';
6328 }
6329 else
6330 {
6331 lt_fatal (__FILE__, __LINE__,
6332 "error accessing file \"%s\": %s",
6333 tmp_pathspec, nonnull (strerror (errno)));
6334 }
6335 }
6336 XFREE (tmp_pathspec);
6337
6338 if (!has_symlinks)
6339 {
6340 return xstrdup (pathspec);
6341 }
6342
6343 tmp_pathspec = realpath (pathspec, buf);
6344 if (tmp_pathspec == 0)
6345 {
6346 lt_fatal (__FILE__, __LINE__,
6347 "could not follow symlinks for %s", pathspec);
6348 }
6349 return xstrdup (tmp_pathspec);
6350 #endif
6351 }
6352
6353 char *
6354 strendzap (char *str, const char *pat)
6355 {
6356 size_t len, patlen;
6357
6358 assert (str != NULL);
6359 assert (pat != NULL);
6360
6361 len = strlen (str);
6362 patlen = strlen (pat);
6363
6364 if (patlen <= len)
6365 {
6366 str += len - patlen;
6367 if (STREQ (str, pat))
6368 *str = '\0';
6369 }
6370 return str;
6371 }
6372
6373 void
6374 lt_debugprintf (const char *file, int line, const char *fmt, ...)
6375 {
6376 va_list args;
6377 if (lt_debug)
6378 {
6379 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
6380 va_start (args, fmt);
6381 (void) vfprintf (stderr, fmt, args);
6382 va_end (args);
6383 }
6384 }
6385
6386 static void
6387 lt_error_core (int exit_status, const char *file,
6388 int line, const char *mode,
6389 const char *message, va_list ap)
6390 {
6391 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
6392 vfprintf (stderr, message, ap);
6393 fprintf (stderr, ".\n");
6394
6395 if (exit_status >= 0)
6396 exit (exit_status);
6397 }
6398
6399 void
6400 lt_fatal (const char *file, int line, const char *message, ...)
6401 {
6402 va_list ap;
6403 va_start (ap, message);
6404 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
6405 va_end (ap);
6406 }
6407
6408 static const char *
6409 nonnull (const char *s)
6410 {
6411 return s ? s : "(null)";
6412 }
6413
6414 static const char *
6415 nonempty (const char *s)
6416 {
6417 return (s && !*s) ? "(empty)" : nonnull (s);
6418 }
6419
6420 void
6421 lt_setenv (const char *name, const char *value)
6422 {
6423 lt_debugprintf (__FILE__, __LINE__,
6424 "(lt_setenv) setting '%s' to '%s'\n",
6425 nonnull (name), nonnull (value));
6426 {
6427 #ifdef HAVE_SETENV
6428 /* always make a copy, for consistency with !HAVE_SETENV */
6429 char *str = xstrdup (value);
6430 setenv (name, str, 1);
6431 #else
6432 size_t len = strlen (name) + 1 + strlen (value) + 1;
6433 char *str = XMALLOC (char, len);
6434 sprintf (str, "%s=%s", name, value);
6435 if (putenv (str) != EXIT_SUCCESS)
6436 {
6437 XFREE (str);
6438 }
6439 #endif
6440 }
6441 }
6442
6443 char *
6444 lt_extend_str (const char *orig_value, const char *add, int to_end)
6445 {
6446 char *new_value;
6447 if (orig_value && *orig_value)
6448 {
6449 size_t orig_value_len = strlen (orig_value);
6450 size_t add_len = strlen (add);
6451 new_value = XMALLOC (char, add_len + orig_value_len + 1);
6452 if (to_end)
6453 {
6454 strcpy (new_value, orig_value);
6455 strcpy (new_value + orig_value_len, add);
6456 }
6457 else
6458 {
6459 strcpy (new_value, add);
6460 strcpy (new_value + add_len, orig_value);
6461 }
6462 }
6463 else
6464 {
6465 new_value = xstrdup (add);
6466 }
6467 return new_value;
6468 }
6469
6470 void
6471 lt_update_exe_path (const char *name, const char *value)
6472 {
6473 lt_debugprintf (__FILE__, __LINE__,
6474 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
6475 nonnull (name), nonnull (value));
6476
6477 if (name && *name && value && *value)
6478 {
6479 char *new_value = lt_extend_str (getenv (name), value, 0);
6480 /* some systems can't cope with a ':'-terminated path #' */
6481 size_t len = strlen (new_value);
6482 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6483 {
6484 new_value[--len] = '\0';
6485 }
6486 lt_setenv (name, new_value);
6487 XFREE (new_value);
6488 }
6489 }
6490
6491 void
6492 lt_update_lib_path (const char *name, const char *value)
6493 {
6494 lt_debugprintf (__FILE__, __LINE__,
6495 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
6496 nonnull (name), nonnull (value));
6497
6498 if (name && *name && value && *value)
6499 {
6500 char *new_value = lt_extend_str (getenv (name), value, 0);
6501 lt_setenv (name, new_value);
6502 XFREE (new_value);
6503 }
6504 }
6505
6506 EOF
6507 case $host_os in
6508 mingw*)
6509 cat <<"EOF"
6510
6511 /* Prepares an argument vector before calling spawn().
6512 Note that spawn() does not by itself call the command interpreter
6513 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
6514 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
6515 GetVersionEx(&v);
6516 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
6517 }) ? "cmd.exe" : "command.com").
6518 Instead it simply concatenates the arguments, separated by ' ', and calls
6519 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
6520 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
6521 special way:
6522 - Space and tab are interpreted as delimiters. They are not treated as
6523 delimiters if they are surrounded by double quotes: "...".
6524 - Unescaped double quotes are removed from the input. Their only effect is
6525 that within double quotes, space and tab are treated like normal
6526 characters.
6527 - Backslashes not followed by double quotes are not special.
6528 - But 2*n+1 backslashes followed by a double quote become
6529 n backslashes followed by a double quote (n >= 0):
6530 \" -> "
6531 \\\" -> \"
6532 \\\\\" -> \\"
6533 */
6534 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
6535 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
6536 char **
6537 prepare_spawn (char **argv)
6538 {
6539 size_t argc;
6540 char **new_argv;
6541 size_t i;
6542
6543 /* Count number of arguments. */
6544 for (argc = 0; argv[argc] != NULL; argc++)
6545 ;
6546
6547 /* Allocate new argument vector. */
6548 new_argv = XMALLOC (char *, argc + 1);
6549
6550 /* Put quoted arguments into the new argument vector. */
6551 for (i = 0; i < argc; i++)
6552 {
6553 const char *string = argv[i];
6554
6555 if (string[0] == '\0')
6556 new_argv[i] = xstrdup ("\"\"");
6557 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
6558 {
6559 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
6560 size_t length;
6561 unsigned int backslashes;
6562 const char *s;
6563 char *quoted_string;
6564 char *p;
6565
6566 length = 0;
6567 backslashes = 0;
6568 if (quote_around)
6569 length++;
6570 for (s = string; *s != '\0'; s++)
6571 {
6572 char c = *s;
6573 if (c == '"')
6574 length += backslashes + 1;
6575 length++;
6576 if (c == '\\')
6577 backslashes++;
6578 else
6579 backslashes = 0;
6580 }
6581 if (quote_around)
6582 length += backslashes + 1;
6583
6584 quoted_string = XMALLOC (char, length + 1);
6585
6586 p = quoted_string;
6587 backslashes = 0;
6588 if (quote_around)
6589 *p++ = '"';
6590 for (s = string; *s != '\0'; s++)
6591 {
6592 char c = *s;
6593 if (c == '"')
6594 {
6595 unsigned int j;
6596 for (j = backslashes + 1; j > 0; j--)
6597 *p++ = '\\';
6598 }
6599 *p++ = c;
6600 if (c == '\\')
6601 backslashes++;
6602 else
6603 backslashes = 0;
6604 }
6605 if (quote_around)
6606 {
6607 unsigned int j;
6608 for (j = backslashes; j > 0; j--)
6609 *p++ = '\\';
6610 *p++ = '"';
6611 }
6612 *p = '\0';
6613
6614 new_argv[i] = quoted_string;
6615 }
6616 else
6617 new_argv[i] = (char *) string;
6618 }
6619 new_argv[argc] = NULL;
6620
6621 return new_argv;
6622 }
6623 EOF
6624 ;;
6625 esac
6626
6627 cat <<"EOF"
6628 void lt_dump_script (FILE* f)
6629 {
6630 EOF
6631 func_emit_wrapper yes |
6632 $SED -n -e '
6633 s/^\(.\{79\}\)\(..*\)/\1\
6634 \2/
6635 h
6636 s/\([\\"]\)/\\\1/g
6637 s/$/\\n/
6638 s/\([^\n]*\).*/ fputs ("\1", f);/p
6639 g
6640 D'
6641 cat <<"EOF"
6642 }
6643 EOF
6644 }
6645 # end: func_emit_cwrapperexe_src
6646
6647 # func_win32_import_lib_p ARG
6648 # True if ARG is an import lib, as indicated by $file_magic_cmd
6649 func_win32_import_lib_p ()
6650 {
6651 $debug_cmd
6652
6653 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6654 *import*) : ;;
6655 *) false ;;
6656 esac
6657 }
6658
6659 # func_suncc_cstd_abi
6660 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6661 # Several compiler flags select an ABI that is incompatible with the
6662 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6663 func_suncc_cstd_abi ()
6664 {
6665 $debug_cmd
6666
6667 case " $compile_command " in
6668 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6669 suncc_use_cstd_abi=no
6670 ;;
6671 *)
6672 suncc_use_cstd_abi=yes
6673 ;;
6674 esac
6675 }
6676
6677 # func_mode_link arg...
6678 func_mode_link ()
6679 {
6680 $debug_cmd
6681
6682 case $host in
6683 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6684 # It is impossible to link a dll without this setting, and
6685 # we shouldn't force the makefile maintainer to figure out
6686 # what system we are compiling for in order to pass an extra
6687 # flag for every libtool invocation.
6688 # allow_undefined=no
6689
6690 # FIXME: Unfortunately, there are problems with the above when trying
6691 # to make a dll that has undefined symbols, in which case not
6692 # even a static library is built. For now, we need to specify
6693 # -no-undefined on the libtool link line when we can be certain
6694 # that all symbols are satisfied, otherwise we get a static library.
6695 allow_undefined=yes
6696 ;;
6697 *)
6698 allow_undefined=yes
6699 ;;
6700 esac
6701 libtool_args=$nonopt
6702 base_compile="$nonopt $@"
6703 compile_command=$nonopt
6704 finalize_command=$nonopt
6705
6706 compile_rpath=
6707 finalize_rpath=
6708 compile_shlibpath=
6709 finalize_shlibpath=
6710 convenience=
6711 old_convenience=
6712 deplibs=
6713 old_deplibs=
6714 compiler_flags=
6715 linker_flags=
6716 dllsearchpath=
6717 lib_search_path=`pwd`
6718 inst_prefix_dir=
6719 new_inherited_linker_flags=
6720
6721 avoid_version=no
6722 bindir=
6723 dlfiles=
6724 dlprefiles=
6725 dlself=no
6726 export_dynamic=no
6727 export_symbols=
6728 export_symbols_regex=
6729 generated=
6730 libobjs=
6731 ltlibs=
6732 module=no
6733 no_install=no
6734 objs=
6735 os2dllname=
6736 non_pic_objects=
6737 precious_files_regex=
6738 prefer_static_libs=no
6739 preload=false
6740 prev=
6741 prevarg=
6742 release=
6743 rpath=
6744 xrpath=
6745 perm_rpath=
6746 temp_rpath=
6747 thread_safe=no
6748 vinfo=
6749 vinfo_number=no
6750 weak_libs=
6751 single_module=$wl-single_module
6752 func_infer_tag $base_compile
6753
6754 # We need to know -static, to get the right output filenames.
6755 for arg
6756 do
6757 case $arg in
6758 -shared)
6759 test yes != "$build_libtool_libs" \
6760 && func_fatal_configuration "cannot build a shared library"
6761 build_old_libs=no
6762 break
6763 ;;
6764 -all-static | -static | -static-libtool-libs)
6765 case $arg in
6766 -all-static)
6767 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6768 func_warning "complete static linking is impossible in this configuration"
6769 fi
6770 if test -n "$link_static_flag"; then
6771 dlopen_self=$dlopen_self_static
6772 fi
6773 prefer_static_libs=yes
6774 ;;
6775 -static)
6776 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6777 dlopen_self=$dlopen_self_static
6778 fi
6779 prefer_static_libs=built
6780 ;;
6781 -static-libtool-libs)
6782 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6783 dlopen_self=$dlopen_self_static
6784 fi
6785 prefer_static_libs=yes
6786 ;;
6787 esac
6788 build_libtool_libs=no
6789 build_old_libs=yes
6790 break
6791 ;;
6792 esac
6793 done
6794
6795 # See if our shared archives depend on static archives.
6796 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6797
6798 # Go through the arguments, transforming them on the way.
6799 while test "$#" -gt 0; do
6800 arg=$1
6801 shift
6802 func_quote_arg pretty,unquoted "$arg"
6803 qarg=$func_quote_arg_unquoted_result
6804 func_append libtool_args " $func_quote_arg_result"
6805
6806 # If the previous option needs an argument, assign it.
6807 if test -n "$prev"; then
6808 case $prev in
6809 output)
6810 func_append compile_command " @OUTPUT@"
6811 func_append finalize_command " @OUTPUT@"
6812 ;;
6813 esac
6814
6815 case $prev in
6816 bindir)
6817 bindir=$arg
6818 prev=
6819 continue
6820 ;;
6821 dlfiles|dlprefiles)
6822 $preload || {
6823 # Add the symbol object into the linking commands.
6824 func_append compile_command " @SYMFILE@"
6825 func_append finalize_command " @SYMFILE@"
6826 preload=:
6827 }
6828 case $arg in
6829 *.la | *.lo) ;; # We handle these cases below.
6830 force)
6831 if test no = "$dlself"; then
6832 dlself=needless
6833 export_dynamic=yes
6834 fi
6835 prev=
6836 continue
6837 ;;
6838 self)
6839 if test dlprefiles = "$prev"; then
6840 dlself=yes
6841 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
6842 dlself=yes
6843 else
6844 dlself=needless
6845 export_dynamic=yes
6846 fi
6847 prev=
6848 continue
6849 ;;
6850 *)
6851 if test dlfiles = "$prev"; then
6852 func_append dlfiles " $arg"
6853 else
6854 func_append dlprefiles " $arg"
6855 fi
6856 prev=
6857 continue
6858 ;;
6859 esac
6860 ;;
6861 expsyms)
6862 export_symbols=$arg
6863 test -f "$arg" \
6864 || func_fatal_error "symbol file '$arg' does not exist"
6865 prev=
6866 continue
6867 ;;
6868 expsyms_regex)
6869 export_symbols_regex=$arg
6870 prev=
6871 continue
6872 ;;
6873 framework)
6874 case $host in
6875 *-*-darwin*)
6876 case "$deplibs " in
6877 *" $qarg.ltframework "*) ;;
6878 *) func_append deplibs " $qarg.ltframework" # this is fixed later
6879 ;;
6880 esac
6881 ;;
6882 esac
6883 prev=
6884 continue
6885 ;;
6886 inst_prefix)
6887 inst_prefix_dir=$arg
6888 prev=
6889 continue
6890 ;;
6891 mllvm)
6892 # Clang does not use LLVM to link, so we can simply discard any
6893 # '-mllvm $arg' options when doing the link step.
6894 prev=
6895 continue
6896 ;;
6897 objectlist)
6898 if test -f "$arg"; then
6899 save_arg=$arg
6900 moreargs=
6901 for fil in `cat "$save_arg"`
6902 do
6903 # func_append moreargs " $fil"
6904 arg=$fil
6905 # A libtool-controlled object.
6906
6907 # Check to see that this really is a libtool object.
6908 if func_lalib_unsafe_p "$arg"; then
6909 pic_object=
6910 non_pic_object=
6911
6912 # Read the .lo file
6913 func_source "$arg"
6914
6915 if test -z "$pic_object" ||
6916 test -z "$non_pic_object" ||
6917 test none = "$pic_object" &&
6918 test none = "$non_pic_object"; then
6919 func_fatal_error "cannot find name of object for '$arg'"
6920 fi
6921
6922 # Extract subdirectory from the argument.
6923 func_dirname "$arg" "/" ""
6924 xdir=$func_dirname_result
6925
6926 if test none != "$pic_object"; then
6927 # Prepend the subdirectory the object is found in.
6928 pic_object=$xdir$pic_object
6929
6930 if test dlfiles = "$prev"; then
6931 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
6932 func_append dlfiles " $pic_object"
6933 prev=
6934 continue
6935 else
6936 # If libtool objects are unsupported, then we need to preload.
6937 prev=dlprefiles
6938 fi
6939 fi
6940
6941 # CHECK ME: I think I busted this. -Ossama
6942 if test dlprefiles = "$prev"; then
6943 # Preload the old-style object.
6944 func_append dlprefiles " $pic_object"
6945 prev=
6946 fi
6947
6948 # A PIC object.
6949 func_append libobjs " $pic_object"
6950 arg=$pic_object
6951 fi
6952
6953 # Non-PIC object.
6954 if test none != "$non_pic_object"; then
6955 # Prepend the subdirectory the object is found in.
6956 non_pic_object=$xdir$non_pic_object
6957
6958 # A standard non-PIC object
6959 func_append non_pic_objects " $non_pic_object"
6960 if test -z "$pic_object" || test none = "$pic_object"; then
6961 arg=$non_pic_object
6962 fi
6963 else
6964 # If the PIC object exists, use it instead.
6965 # $xdir was prepended to $pic_object above.
6966 non_pic_object=$pic_object
6967 func_append non_pic_objects " $non_pic_object"
6968 fi
6969 else
6970 # Only an error if not doing a dry-run.
6971 if $opt_dry_run; then
6972 # Extract subdirectory from the argument.
6973 func_dirname "$arg" "/" ""
6974 xdir=$func_dirname_result
6975
6976 func_lo2o "$arg"
6977 pic_object=$xdir$objdir/$func_lo2o_result
6978 non_pic_object=$xdir$func_lo2o_result
6979 func_append libobjs " $pic_object"
6980 func_append non_pic_objects " $non_pic_object"
6981 else
6982 func_fatal_error "'$arg' is not a valid libtool object"
6983 fi
6984 fi
6985 done
6986 else
6987 func_fatal_error "link input file '$arg' does not exist"
6988 fi
6989 arg=$save_arg
6990 prev=
6991 continue
6992 ;;
6993 os2dllname)
6994 os2dllname=$arg
6995 prev=
6996 continue
6997 ;;
6998 precious_regex)
6999 precious_files_regex=$arg
7000 prev=
7001 continue
7002 ;;
7003 release)
7004 release=-$arg
7005 prev=
7006 continue
7007 ;;
7008 rpath | xrpath)
7009 # We need an absolute path.
7010 case $arg in
7011 [\\/]* | [A-Za-z]:[\\/]*) ;;
7012 *)
7013 func_fatal_error "only absolute run-paths are allowed"
7014 ;;
7015 esac
7016 if test rpath = "$prev"; then
7017 case "$rpath " in
7018 *" $arg "*) ;;
7019 *) func_append rpath " $arg" ;;
7020 esac
7021 else
7022 case "$xrpath " in
7023 *" $arg "*) ;;
7024 *) func_append xrpath " $arg" ;;
7025 esac
7026 fi
7027 prev=
7028 continue
7029 ;;
7030 shrext)
7031 shrext_cmds=$arg
7032 prev=
7033 continue
7034 ;;
7035 weak)
7036 func_append weak_libs " $arg"
7037 prev=
7038 continue
7039 ;;
7040 xcclinker)
7041 func_append linker_flags " $qarg"
7042 func_append compiler_flags " $qarg"
7043 prev=
7044 func_append compile_command " $qarg"
7045 func_append finalize_command " $qarg"
7046 continue
7047 ;;
7048 xcompiler)
7049 func_append compiler_flags " $qarg"
7050 prev=
7051 func_append compile_command " $qarg"
7052 func_append finalize_command " $qarg"
7053 continue
7054 ;;
7055 xlinker)
7056 func_append linker_flags " $qarg"
7057 func_append compiler_flags " $wl$qarg"
7058 prev=
7059 func_append compile_command " $wl$qarg"
7060 func_append finalize_command " $wl$qarg"
7061 continue
7062 ;;
7063 *)
7064 eval "$prev=\"\$arg\""
7065 prev=
7066 continue
7067 ;;
7068 esac
7069 fi # test -n "$prev"
7070
7071 prevarg=$arg
7072
7073 case $arg in
7074 -all-static)
7075 if test -n "$link_static_flag"; then
7076 # See comment for -static flag below, for more details.
7077 func_append compile_command " $link_static_flag"
7078 func_append finalize_command " $link_static_flag"
7079 fi
7080 continue
7081 ;;
7082
7083 -allow-undefined)
7084 # FIXME: remove this flag sometime in the future.
7085 func_fatal_error "'-allow-undefined' must not be used because it is the default"
7086 ;;
7087
7088 -avoid-version)
7089 avoid_version=yes
7090 continue
7091 ;;
7092
7093 -bindir)
7094 prev=bindir
7095 continue
7096 ;;
7097
7098 -dlopen)
7099 prev=dlfiles
7100 continue
7101 ;;
7102
7103 -dlpreopen)
7104 prev=dlprefiles
7105 continue
7106 ;;
7107
7108 -export-dynamic)
7109 export_dynamic=yes
7110 continue
7111 ;;
7112
7113 -export-symbols | -export-symbols-regex)
7114 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
7115 func_fatal_error "more than one -exported-symbols argument is not allowed"
7116 fi
7117 if test X-export-symbols = "X$arg"; then
7118 prev=expsyms
7119 else
7120 prev=expsyms_regex
7121 fi
7122 continue
7123 ;;
7124
7125 -framework)
7126 prev=framework
7127 continue
7128 ;;
7129
7130 -inst-prefix-dir)
7131 prev=inst_prefix
7132 continue
7133 ;;
7134
7135 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
7136 # so, if we see these flags be careful not to treat them like -L
7137 -L[A-Z][A-Z]*:*)
7138 case $with_gcc/$host in
7139 no/*-*-irix* | /*-*-irix*)
7140 func_append compile_command " $arg"
7141 func_append finalize_command " $arg"
7142 ;;
7143 esac
7144 continue
7145 ;;
7146
7147 -L*)
7148 func_stripname "-L" '' "$arg"
7149 if test -z "$func_stripname_result"; then
7150 if test "$#" -gt 0; then
7151 func_fatal_error "require no space between '-L' and '$1'"
7152 else
7153 func_fatal_error "need path for '-L' option"
7154 fi
7155 fi
7156 func_resolve_sysroot "$func_stripname_result"
7157 dir=$func_resolve_sysroot_result
7158 # We need an absolute path.
7159 case $dir in
7160 [\\/]* | [A-Za-z]:[\\/]*) ;;
7161 *)
7162 absdir=`cd "$dir" && pwd`
7163 test -z "$absdir" && \
7164 func_fatal_error "cannot determine absolute directory name of '$dir'"
7165 dir=$absdir
7166 ;;
7167 esac
7168 case "$deplibs " in
7169 *" -L$dir "* | *" $arg "*)
7170 # Will only happen for absolute or sysroot arguments
7171 ;;
7172 *)
7173 # Preserve sysroot, but never include relative directories
7174 case $dir in
7175 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
7176 *) func_append deplibs " -L$dir" ;;
7177 esac
7178 func_append lib_search_path " $dir"
7179 ;;
7180 esac
7181 case $host in
7182 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
7183 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
7184 case :$dllsearchpath: in
7185 *":$dir:"*) ;;
7186 ::) dllsearchpath=$dir;;
7187 *) func_append dllsearchpath ":$dir";;
7188 esac
7189 case :$dllsearchpath: in
7190 *":$testbindir:"*) ;;
7191 ::) dllsearchpath=$testbindir;;
7192 *) func_append dllsearchpath ":$testbindir";;
7193 esac
7194 ;;
7195 esac
7196 continue
7197 ;;
7198
7199 -l*)
7200 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7201 case $host in
7202 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7203 # These systems don't actually have a C or math library (as such)
7204 continue
7205 ;;
7206 *-*-os2*)
7207 # These systems don't actually have a C library (as such)
7208 test X-lc = "X$arg" && continue
7209 ;;
7210 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7211 # Do not include libc due to us having libc/libc_r.
7212 test X-lc = "X$arg" && continue
7213 ;;
7214 *-*-rhapsody* | *-*-darwin1.[012])
7215 # Rhapsody C and math libraries are in the System framework
7216 func_append deplibs " System.ltframework"
7217 continue
7218 ;;
7219 *-*-sco3.2v5* | *-*-sco5v6*)
7220 # Causes problems with __ctype
7221 test X-lc = "X$arg" && continue
7222 ;;
7223 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7224 # Compiler inserts libc in the correct place for threads to work
7225 test X-lc = "X$arg" && continue
7226 ;;
7227 esac
7228 elif test X-lc_r = "X$arg"; then
7229 case $host in
7230 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7231 # Do not include libc_r directly, use -pthread flag.
7232 continue
7233 ;;
7234 esac
7235 fi
7236 func_append deplibs " $arg"
7237 continue
7238 ;;
7239
7240 -mllvm)
7241 prev=mllvm
7242 continue
7243 ;;
7244
7245 -module)
7246 module=yes
7247 continue
7248 ;;
7249
7250 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7251 # classes, name mangling, and exception handling.
7252 # Darwin uses the -arch flag to determine output architecture.
7253 -model|-arch|-isysroot|--sysroot)
7254 func_append compiler_flags " $arg"
7255 func_append compile_command " $arg"
7256 func_append finalize_command " $arg"
7257 prev=xcompiler
7258 continue
7259 ;;
7260
7261 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7262 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7263 func_append compiler_flags " $arg"
7264 func_append compile_command " $arg"
7265 func_append finalize_command " $arg"
7266 case "$new_inherited_linker_flags " in
7267 *" $arg "*) ;;
7268 * ) func_append new_inherited_linker_flags " $arg" ;;
7269 esac
7270 continue
7271 ;;
7272
7273 -multi_module)
7274 single_module=$wl-multi_module
7275 continue
7276 ;;
7277
7278 -no-fast-install)
7279 fast_install=no
7280 continue
7281 ;;
7282
7283 -no-install)
7284 case $host in
7285 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7286 # The PATH hackery in wrapper scripts is required on Windows
7287 # and Darwin in order for the loader to find any dlls it needs.
7288 func_warning "'-no-install' is ignored for $host"
7289 func_warning "assuming '-no-fast-install' instead"
7290 fast_install=no
7291 ;;
7292 *) no_install=yes ;;
7293 esac
7294 continue
7295 ;;
7296
7297 -no-undefined)
7298 allow_undefined=no
7299 continue
7300 ;;
7301
7302 -objectlist)
7303 prev=objectlist
7304 continue
7305 ;;
7306
7307 -os2dllname)
7308 prev=os2dllname
7309 continue
7310 ;;
7311
7312 -o) prev=output ;;
7313
7314 -precious-files-regex)
7315 prev=precious_regex
7316 continue
7317 ;;
7318
7319 -release)
7320 prev=release
7321 continue
7322 ;;
7323
7324 -rpath)
7325 prev=rpath
7326 continue
7327 ;;
7328
7329 -R)
7330 prev=xrpath
7331 continue
7332 ;;
7333
7334 -R*)
7335 func_stripname '-R' '' "$arg"
7336 dir=$func_stripname_result
7337 # We need an absolute path.
7338 case $dir in
7339 [\\/]* | [A-Za-z]:[\\/]*) ;;
7340 =*)
7341 func_stripname '=' '' "$dir"
7342 dir=$lt_sysroot$func_stripname_result
7343 ;;
7344 *)
7345 func_fatal_error "only absolute run-paths are allowed"
7346 ;;
7347 esac
7348 case "$xrpath " in
7349 *" $dir "*) ;;
7350 *) func_append xrpath " $dir" ;;
7351 esac
7352 continue
7353 ;;
7354
7355 -shared)
7356 # The effects of -shared are defined in a previous loop.
7357 continue
7358 ;;
7359
7360 -shrext)
7361 prev=shrext
7362 continue
7363 ;;
7364
7365 -static | -static-libtool-libs)
7366 # The effects of -static are defined in a previous loop.
7367 # We used to do the same as -all-static on platforms that
7368 # didn't have a PIC flag, but the assumption that the effects
7369 # would be equivalent was wrong. It would break on at least
7370 # Digital Unix and AIX.
7371 continue
7372 ;;
7373
7374 -thread-safe)
7375 thread_safe=yes
7376 continue
7377 ;;
7378
7379 -version-info)
7380 prev=vinfo
7381 continue
7382 ;;
7383
7384 -version-number)
7385 prev=vinfo
7386 vinfo_number=yes
7387 continue
7388 ;;
7389
7390 -weak)
7391 prev=weak
7392 continue
7393 ;;
7394
7395 -Wc,*)
7396 func_stripname '-Wc,' '' "$arg"
7397 args=$func_stripname_result
7398 arg=
7399 save_ifs=$IFS; IFS=,
7400 for flag in $args; do
7401 IFS=$save_ifs
7402 func_quote_arg pretty "$flag"
7403 func_append arg " $func_quote_arg_result"
7404 func_append compiler_flags " $func_quote_arg_result"
7405 done
7406 IFS=$save_ifs
7407 func_stripname ' ' '' "$arg"
7408 arg=$func_stripname_result
7409 ;;
7410
7411 -Wl,*)
7412 func_stripname '-Wl,' '' "$arg"
7413 args=$func_stripname_result
7414 arg=
7415 save_ifs=$IFS; IFS=,
7416 for flag in $args; do
7417 IFS=$save_ifs
7418 func_quote_arg pretty "$flag"
7419 func_append arg " $wl$func_quote_arg_result"
7420 func_append compiler_flags " $wl$func_quote_arg_result"
7421 func_append linker_flags " $func_quote_arg_result"
7422 done
7423 IFS=$save_ifs
7424 func_stripname ' ' '' "$arg"
7425 arg=$func_stripname_result
7426 ;;
7427
7428 -Xcompiler)
7429 prev=xcompiler
7430 continue
7431 ;;
7432
7433 -Xlinker)
7434 prev=xlinker
7435 continue
7436 ;;
7437
7438 -XCClinker)
7439 prev=xcclinker
7440 continue
7441 ;;
7442
7443 # -msg_* for osf cc
7444 -msg_*)
7445 func_quote_arg pretty "$arg"
7446 arg=$func_quote_arg_result
7447 ;;
7448
7449 # Flags to be passed through unchanged, with rationale:
7450 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7451 # -r[0-9][0-9]* specify processor for the SGI compiler
7452 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7453 # +DA*, +DD* enable 64-bit mode for the HP compiler
7454 # -q* compiler args for the IBM compiler
7455 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7456 # -F/path path to uninstalled frameworks, gcc on darwin
7457 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7458 # -fstack-protector* stack protector flags for GCC
7459 # @file GCC response files
7460 # -tp=* Portland pgcc target processor selection
7461 # --sysroot=* for sysroot support
7462 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7463 # -specs=* GCC specs files
7464 # -stdlib=* select c++ std lib with clang
7465 # -fsanitize=* Clang/GCC memory and address sanitizer
7466 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7467 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7468 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7469 -specs=*|-fsanitize=*)
7470 func_quote_arg pretty "$arg"
7471 arg=$func_quote_arg_result
7472 func_append compile_command " $arg"
7473 func_append finalize_command " $arg"
7474 func_append compiler_flags " $arg"
7475 continue
7476 ;;
7477
7478 -Z*)
7479 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7480 # OS/2 uses -Zxxx to specify OS/2-specific options
7481 compiler_flags="$compiler_flags $arg"
7482 func_append compile_command " $arg"
7483 func_append finalize_command " $arg"
7484 case $arg in
7485 -Zlinker | -Zstack)
7486 prev=xcompiler
7487 ;;
7488 esac
7489 continue
7490 else
7491 # Otherwise treat like 'Some other compiler flag' below
7492 func_quote_arg pretty "$arg"
7493 arg=$func_quote_arg_result
7494 fi
7495 ;;
7496
7497 # Some other compiler flag.
7498 -* | +*)
7499 func_quote_arg pretty "$arg"
7500 arg=$func_quote_arg_result
7501 ;;
7502
7503 *.$objext)
7504 # A standard object.
7505 func_append objs " $arg"
7506 ;;
7507
7508 *.lo)
7509 # A libtool-controlled object.
7510
7511 # Check to see that this really is a libtool object.
7512 if func_lalib_unsafe_p "$arg"; then
7513 pic_object=
7514 non_pic_object=
7515
7516 # Read the .lo file
7517 func_source "$arg"
7518
7519 if test -z "$pic_object" ||
7520 test -z "$non_pic_object" ||
7521 test none = "$pic_object" &&
7522 test none = "$non_pic_object"; then
7523 func_fatal_error "cannot find name of object for '$arg'"
7524 fi
7525
7526 # Extract subdirectory from the argument.
7527 func_dirname "$arg" "/" ""
7528 xdir=$func_dirname_result
7529
7530 test none = "$pic_object" || {
7531 # Prepend the subdirectory the object is found in.
7532 pic_object=$xdir$pic_object
7533
7534 if test dlfiles = "$prev"; then
7535 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
7536 func_append dlfiles " $pic_object"
7537 prev=
7538 continue
7539 else
7540 # If libtool objects are unsupported, then we need to preload.
7541 prev=dlprefiles
7542 fi
7543 fi
7544
7545 # CHECK ME: I think I busted this. -Ossama
7546 if test dlprefiles = "$prev"; then
7547 # Preload the old-style object.
7548 func_append dlprefiles " $pic_object"
7549 prev=
7550 fi
7551
7552 # A PIC object.
7553 func_append libobjs " $pic_object"
7554 arg=$pic_object
7555 }
7556
7557 # Non-PIC object.
7558 if test none != "$non_pic_object"; then
7559 # Prepend the subdirectory the object is found in.
7560 non_pic_object=$xdir$non_pic_object
7561
7562 # A standard non-PIC object
7563 func_append non_pic_objects " $non_pic_object"
7564 if test -z "$pic_object" || test none = "$pic_object"; then
7565 arg=$non_pic_object
7566 fi
7567 else
7568 # If the PIC object exists, use it instead.
7569 # $xdir was prepended to $pic_object above.
7570 non_pic_object=$pic_object
7571 func_append non_pic_objects " $non_pic_object"
7572 fi
7573 else
7574 # Only an error if not doing a dry-run.
7575 if $opt_dry_run; then
7576 # Extract subdirectory from the argument.
7577 func_dirname "$arg" "/" ""
7578 xdir=$func_dirname_result
7579
7580 func_lo2o "$arg"
7581 pic_object=$xdir$objdir/$func_lo2o_result
7582 non_pic_object=$xdir$func_lo2o_result
7583 func_append libobjs " $pic_object"
7584 func_append non_pic_objects " $non_pic_object"
7585 else
7586 func_fatal_error "'$arg' is not a valid libtool object"
7587 fi
7588 fi
7589 ;;
7590
7591 *.$libext)
7592 # An archive.
7593 func_append deplibs " $arg"
7594 func_append old_deplibs " $arg"
7595 continue
7596 ;;
7597
7598 *.la)
7599 # A libtool-controlled library.
7600
7601 func_resolve_sysroot "$arg"
7602 if test dlfiles = "$prev"; then
7603 # This library was specified with -dlopen.
7604 func_append dlfiles " $func_resolve_sysroot_result"
7605 prev=
7606 elif test dlprefiles = "$prev"; then
7607 # The library was specified with -dlpreopen.
7608 func_append dlprefiles " $func_resolve_sysroot_result"
7609 prev=
7610 else
7611 func_append deplibs " $func_resolve_sysroot_result"
7612 fi
7613 continue
7614 ;;
7615
7616 # Some other compiler argument.
7617 *)
7618 # Unknown arguments in both finalize_command and compile_command need
7619 # to be aesthetically quoted because they are evaled later.
7620 func_quote_arg pretty "$arg"
7621 arg=$func_quote_arg_result
7622 ;;
7623 esac # arg
7624
7625 # Now actually substitute the argument into the commands.
7626 if test -n "$arg"; then
7627 func_append compile_command " $arg"
7628 func_append finalize_command " $arg"
7629 fi
7630 done # argument parsing loop
7631
7632 test -n "$prev" && \
7633 func_fatal_help "the '$prevarg' option requires an argument"
7634
7635 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7636 eval arg=\"$export_dynamic_flag_spec\"
7637 func_append compile_command " $arg"
7638 func_append finalize_command " $arg"
7639 fi
7640
7641 oldlibs=
7642 # calculate the name of the file, without its directory
7643 func_basename "$output"
7644 outputname=$func_basename_result
7645 libobjs_save=$libobjs
7646
7647 if test -n "$shlibpath_var"; then
7648 # get the directories listed in $shlibpath_var
7649 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
7650 else
7651 shlib_search_path=
7652 fi
7653 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
7654 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
7655
7656 # Definition is injected by LT_CONFIG during libtool generation.
7657 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7658
7659 func_dirname "$output" "/" ""
7660 output_objdir=$func_dirname_result$objdir
7661 func_to_tool_file "$output_objdir/"
7662 tool_output_objdir=$func_to_tool_file_result
7663 # Create the object directory.
7664 func_mkdir_p "$output_objdir"
7665
7666 # Determine the type of output
7667 case $output in
7668 "")
7669 func_fatal_help "you must specify an output file"
7670 ;;
7671 *.$libext) linkmode=oldlib ;;
7672 *.lo | *.$objext) linkmode=obj ;;
7673 *.la) linkmode=lib ;;
7674 *) linkmode=prog ;; # Anything else should be a program.
7675 esac
7676
7677 specialdeplibs=
7678
7679 libs=
7680 # Find all interdependent deplibs by searching for libraries
7681 # that are linked more than once (e.g. -la -lb -la)
7682 for deplib in $deplibs; do
7683 if $opt_preserve_dup_deps; then
7684 case "$libs " in
7685 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7686 esac
7687 fi
7688 func_append libs " $deplib"
7689 done
7690
7691 if test lib = "$linkmode"; then
7692 libs="$predeps $libs $compiler_lib_search_path $postdeps"
7693
7694 # Compute libraries that are listed more than once in $predeps
7695 # $postdeps and mark them as special (i.e., whose duplicates are
7696 # not to be eliminated).
7697 pre_post_deps=
7698 if $opt_duplicate_compiler_generated_deps; then
7699 for pre_post_dep in $predeps $postdeps; do
7700 case "$pre_post_deps " in
7701 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
7702 esac
7703 func_append pre_post_deps " $pre_post_dep"
7704 done
7705 fi
7706 pre_post_deps=
7707 fi
7708
7709 deplibs=
7710 newdependency_libs=
7711 newlib_search_path=
7712 need_relink=no # whether we're linking any uninstalled libtool libraries
7713 notinst_deplibs= # not-installed libtool libraries
7714 notinst_path= # paths that contain not-installed libtool libraries
7715
7716 case $linkmode in
7717 lib)
7718 passes="conv dlpreopen link"
7719 for file in $dlfiles $dlprefiles; do
7720 case $file in
7721 *.la) ;;
7722 *)
7723 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7724 ;;
7725 esac
7726 done
7727 ;;
7728 prog)
7729 compile_deplibs=
7730 finalize_deplibs=
7731 alldeplibs=false
7732 newdlfiles=
7733 newdlprefiles=
7734 passes="conv scan dlopen dlpreopen link"
7735 ;;
7736 *) passes="conv"
7737 ;;
7738 esac
7739
7740 for pass in $passes; do
7741 # The preopen pass in lib mode reverses $deplibs; put it back here
7742 # so that -L comes before libs that need it for instance...
7743 if test lib,link = "$linkmode,$pass"; then
7744 ## FIXME: Find the place where the list is rebuilt in the wrong
7745 ## order, and fix it there properly
7746 tmp_deplibs=
7747 for deplib in $deplibs; do
7748 tmp_deplibs="$deplib $tmp_deplibs"
7749 done
7750 deplibs=$tmp_deplibs
7751 fi
7752
7753 if test lib,link = "$linkmode,$pass" ||
7754 test prog,scan = "$linkmode,$pass"; then
7755 libs=$deplibs
7756 deplibs=
7757 fi
7758 if test prog = "$linkmode"; then
7759 case $pass in
7760 dlopen) libs=$dlfiles ;;
7761 dlpreopen) libs=$dlprefiles ;;
7762 link)
7763 libs="$deplibs %DEPLIBS%"
7764 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7765 ;;
7766 esac
7767 fi
7768 if test lib,dlpreopen = "$linkmode,$pass"; then
7769 # Collect and forward deplibs of preopened libtool libs
7770 for lib in $dlprefiles; do
7771 # Ignore non-libtool-libs
7772 dependency_libs=
7773 func_resolve_sysroot "$lib"
7774 case $lib in
7775 *.la) func_source "$func_resolve_sysroot_result" ;;
7776 esac
7777
7778 # Collect preopened libtool deplibs, except any this library
7779 # has declared as weak libs
7780 for deplib in $dependency_libs; do
7781 func_basename "$deplib"
7782 deplib_base=$func_basename_result
7783 case " $weak_libs " in
7784 *" $deplib_base "*) ;;
7785 *) func_append deplibs " $deplib" ;;
7786 esac
7787 done
7788 done
7789 libs=$dlprefiles
7790 fi
7791 if test dlopen = "$pass"; then
7792 # Collect dlpreopened libraries
7793 save_deplibs=$deplibs
7794 deplibs=
7795 fi
7796
7797 for deplib in $libs; do
7798 lib=
7799 found=false
7800 case $deplib in
7801 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7802 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7803 if test prog,link = "$linkmode,$pass"; then
7804 compile_deplibs="$deplib $compile_deplibs"
7805 finalize_deplibs="$deplib $finalize_deplibs"
7806 else
7807 func_append compiler_flags " $deplib"
7808 if test lib = "$linkmode"; then
7809 case "$new_inherited_linker_flags " in
7810 *" $deplib "*) ;;
7811 * ) func_append new_inherited_linker_flags " $deplib" ;;
7812 esac
7813 fi
7814 fi
7815 continue
7816 ;;
7817 -l*)
7818 if test lib != "$linkmode" && test prog != "$linkmode"; then
7819 func_warning "'-l' is ignored for archives/objects"
7820 continue
7821 fi
7822 func_stripname '-l' '' "$deplib"
7823 name=$func_stripname_result
7824 if test lib = "$linkmode"; then
7825 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
7826 else
7827 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
7828 fi
7829 for searchdir in $searchdirs; do
7830 for search_ext in .la $std_shrext .so .a; do
7831 # Search the libtool library
7832 lib=$searchdir/lib$name$search_ext
7833 if test -f "$lib"; then
7834 if test .la = "$search_ext"; then
7835 found=:
7836 else
7837 found=false
7838 fi
7839 break 2
7840 fi
7841 done
7842 done
7843 if $found; then
7844 # deplib is a libtool library
7845 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
7846 # We need to do some special things here, and not later.
7847 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
7848 case " $predeps $postdeps " in
7849 *" $deplib "*)
7850 if func_lalib_p "$lib"; then
7851 library_names=
7852 old_library=
7853 func_source "$lib"
7854 for l in $old_library $library_names; do
7855 ll=$l
7856 done
7857 if test "X$ll" = "X$old_library"; then # only static version available
7858 found=false
7859 func_dirname "$lib" "" "."
7860 ladir=$func_dirname_result
7861 lib=$ladir/$old_library
7862 if test prog,link = "$linkmode,$pass"; then
7863 compile_deplibs="$deplib $compile_deplibs"
7864 finalize_deplibs="$deplib $finalize_deplibs"
7865 else
7866 deplibs="$deplib $deplibs"
7867 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7868 fi
7869 continue
7870 fi
7871 fi
7872 ;;
7873 *) ;;
7874 esac
7875 fi
7876 else
7877 # deplib doesn't seem to be a libtool library
7878 if test prog,link = "$linkmode,$pass"; then
7879 compile_deplibs="$deplib $compile_deplibs"
7880 finalize_deplibs="$deplib $finalize_deplibs"
7881 else
7882 deplibs="$deplib $deplibs"
7883 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7884 fi
7885 continue
7886 fi
7887 ;; # -l
7888 *.ltframework)
7889 if test prog,link = "$linkmode,$pass"; then
7890 compile_deplibs="$deplib $compile_deplibs"
7891 finalize_deplibs="$deplib $finalize_deplibs"
7892 else
7893 deplibs="$deplib $deplibs"
7894 if test lib = "$linkmode"; then
7895 case "$new_inherited_linker_flags " in
7896 *" $deplib "*) ;;
7897 * ) func_append new_inherited_linker_flags " $deplib" ;;
7898 esac
7899 fi
7900 fi
7901 continue
7902 ;;
7903 -L*)
7904 case $linkmode in
7905 lib)
7906 deplibs="$deplib $deplibs"
7907 test conv = "$pass" && continue
7908 newdependency_libs="$deplib $newdependency_libs"
7909 func_stripname '-L' '' "$deplib"
7910 func_resolve_sysroot "$func_stripname_result"
7911 func_append newlib_search_path " $func_resolve_sysroot_result"
7912 ;;
7913 prog)
7914 if test conv = "$pass"; then
7915 deplibs="$deplib $deplibs"
7916 continue
7917 fi
7918 if test scan = "$pass"; then
7919 deplibs="$deplib $deplibs"
7920 else
7921 compile_deplibs="$deplib $compile_deplibs"
7922 finalize_deplibs="$deplib $finalize_deplibs"
7923 fi
7924 func_stripname '-L' '' "$deplib"
7925 func_resolve_sysroot "$func_stripname_result"
7926 func_append newlib_search_path " $func_resolve_sysroot_result"
7927 ;;
7928 *)
7929 func_warning "'-L' is ignored for archives/objects"
7930 ;;
7931 esac # linkmode
7932 continue
7933 ;; # -L
7934 -R*)
7935 if test link = "$pass"; then
7936 func_stripname '-R' '' "$deplib"
7937 func_resolve_sysroot "$func_stripname_result"
7938 dir=$func_resolve_sysroot_result
7939 # Make sure the xrpath contains only unique directories.
7940 case "$xrpath " in
7941 *" $dir "*) ;;
7942 *) func_append xrpath " $dir" ;;
7943 esac
7944 fi
7945 deplibs="$deplib $deplibs"
7946 continue
7947 ;;
7948 *.la)
7949 func_resolve_sysroot "$deplib"
7950 lib=$func_resolve_sysroot_result
7951 ;;
7952 *.$libext)
7953 if test conv = "$pass"; then
7954 deplibs="$deplib $deplibs"
7955 continue
7956 fi
7957 case $linkmode in
7958 lib)
7959 # Linking convenience modules into shared libraries is allowed,
7960 # but linking other static libraries is non-portable.
7961 case " $dlpreconveniencelibs " in
7962 *" $deplib "*) ;;
7963 *)
7964 valid_a_lib=false
7965 case $deplibs_check_method in
7966 match_pattern*)
7967 set dummy $deplibs_check_method; shift
7968 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7969 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
7970 | $EGREP "$match_pattern_regex" > /dev/null; then
7971 valid_a_lib=:
7972 fi
7973 ;;
7974 pass_all)
7975 valid_a_lib=:
7976 ;;
7977 esac
7978 if $valid_a_lib; then
7979 echo
7980 $ECHO "*** Warning: Linking the shared library $output against the"
7981 $ECHO "*** static library $deplib is not portable!"
7982 deplibs="$deplib $deplibs"
7983 else
7984 echo
7985 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
7986 echo "*** I have the capability to make that library automatically link in when"
7987 echo "*** you link to this library. But I can only do this if you have a"
7988 echo "*** shared version of the library, which you do not appear to have"
7989 echo "*** because the file extensions .$libext of this argument makes me believe"
7990 echo "*** that it is just a static archive that I should not use here."
7991 fi
7992 ;;
7993 esac
7994 continue
7995 ;;
7996 prog)
7997 if test link != "$pass"; then
7998 deplibs="$deplib $deplibs"
7999 else
8000 compile_deplibs="$deplib $compile_deplibs"
8001 finalize_deplibs="$deplib $finalize_deplibs"
8002 fi
8003 continue
8004 ;;
8005 esac # linkmode
8006 ;; # *.$libext
8007 *.lo | *.$objext)
8008 if test conv = "$pass"; then
8009 deplibs="$deplib $deplibs"
8010 elif test prog = "$linkmode"; then
8011 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
8012 # If there is no dlopen support or we're linking statically,
8013 # we need to preload.
8014 func_append newdlprefiles " $deplib"
8015 compile_deplibs="$deplib $compile_deplibs"
8016 finalize_deplibs="$deplib $finalize_deplibs"
8017 else
8018 func_append newdlfiles " $deplib"
8019 fi
8020 fi
8021 continue
8022 ;;
8023 %DEPLIBS%)
8024 alldeplibs=:
8025 continue
8026 ;;
8027 esac # case $deplib
8028
8029 $found || test -f "$lib" \
8030 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
8031
8032 # Check to see that this really is a libtool archive.
8033 func_lalib_unsafe_p "$lib" \
8034 || func_fatal_error "'$lib' is not a valid libtool archive"
8035
8036 func_dirname "$lib" "" "."
8037 ladir=$func_dirname_result
8038
8039 dlname=
8040 dlopen=
8041 dlpreopen=
8042 libdir=
8043 library_names=
8044 old_library=
8045 inherited_linker_flags=
8046 # If the library was installed with an old release of libtool,
8047 # it will not redefine variables installed, or shouldnotlink
8048 installed=yes
8049 shouldnotlink=no
8050 avoidtemprpath=
8051
8052
8053 # Read the .la file
8054 func_source "$lib"
8055
8056 # Convert "-framework foo" to "foo.ltframework"
8057 if test -n "$inherited_linker_flags"; then
8058 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
8059 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
8060 case " $new_inherited_linker_flags " in
8061 *" $tmp_inherited_linker_flag "*) ;;
8062 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
8063 esac
8064 done
8065 fi
8066 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8067 if test lib,link = "$linkmode,$pass" ||
8068 test prog,scan = "$linkmode,$pass" ||
8069 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
8070 test -n "$dlopen" && func_append dlfiles " $dlopen"
8071 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
8072 fi
8073
8074 if test conv = "$pass"; then
8075 # Only check for convenience libraries
8076 deplibs="$lib $deplibs"
8077 if test -z "$libdir"; then
8078 if test -z "$old_library"; then
8079 func_fatal_error "cannot find name of link library for '$lib'"
8080 fi
8081 # It is a libtool convenience library, so add in its objects.
8082 func_append convenience " $ladir/$objdir/$old_library"
8083 func_append old_convenience " $ladir/$objdir/$old_library"
8084 tmp_libs=
8085 for deplib in $dependency_libs; do
8086 deplibs="$deplib $deplibs"
8087 if $opt_preserve_dup_deps; then
8088 case "$tmp_libs " in
8089 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
8090 esac
8091 fi
8092 func_append tmp_libs " $deplib"
8093 done
8094 elif test prog != "$linkmode" && test lib != "$linkmode"; then
8095 func_fatal_error "'$lib' is not a convenience library"
8096 fi
8097 continue
8098 fi # $pass = conv
8099
8100
8101 # Get the name of the library we link against.
8102 linklib=
8103 if test -n "$old_library" &&
8104 { test yes = "$prefer_static_libs" ||
8105 test built,no = "$prefer_static_libs,$installed"; }; then
8106 linklib=$old_library
8107 else
8108 for l in $old_library $library_names; do
8109 linklib=$l
8110 done
8111 fi
8112 if test -z "$linklib"; then
8113 func_fatal_error "cannot find name of link library for '$lib'"
8114 fi
8115
8116 # This library was specified with -dlopen.
8117 if test dlopen = "$pass"; then
8118 test -z "$libdir" \
8119 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
8120 if test -z "$dlname" ||
8121 test yes != "$dlopen_support" ||
8122 test no = "$build_libtool_libs"
8123 then
8124 # If there is no dlname, no dlopen support or we're linking
8125 # statically, we need to preload. We also need to preload any
8126 # dependent libraries so libltdl's deplib preloader doesn't
8127 # bomb out in the load deplibs phase.
8128 func_append dlprefiles " $lib $dependency_libs"
8129 else
8130 func_append newdlfiles " $lib"
8131 fi
8132 continue
8133 fi # $pass = dlopen
8134
8135 # We need an absolute path.
8136 case $ladir in
8137 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
8138 *)
8139 abs_ladir=`cd "$ladir" && pwd`
8140 if test -z "$abs_ladir"; then
8141 func_warning "cannot determine absolute directory name of '$ladir'"
8142 func_warning "passing it literally to the linker, although it might fail"
8143 abs_ladir=$ladir
8144 fi
8145 ;;
8146 esac
8147 func_basename "$lib"
8148 laname=$func_basename_result
8149
8150 # Find the relevant object directory and library name.
8151 if test yes = "$installed"; then
8152 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8153 func_warning "library '$lib' was moved."
8154 dir=$ladir
8155 absdir=$abs_ladir
8156 libdir=$abs_ladir
8157 else
8158 dir=$lt_sysroot$libdir
8159 absdir=$lt_sysroot$libdir
8160 fi
8161 test yes = "$hardcode_automatic" && avoidtemprpath=yes
8162 else
8163 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
8164 dir=$ladir
8165 absdir=$abs_ladir
8166 # Remove this search path later
8167 func_append notinst_path " $abs_ladir"
8168 else
8169 dir=$ladir/$objdir
8170 absdir=$abs_ladir/$objdir
8171 # Remove this search path later
8172 func_append notinst_path " $abs_ladir"
8173 fi
8174 fi # $installed = yes
8175 func_stripname 'lib' '.la' "$laname"
8176 name=$func_stripname_result
8177
8178 # This library was specified with -dlpreopen.
8179 if test dlpreopen = "$pass"; then
8180 if test -z "$libdir" && test prog = "$linkmode"; then
8181 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
8182 fi
8183 case $host in
8184 # special handling for platforms with PE-DLLs.
8185 *cygwin* | *mingw* | *cegcc* )
8186 # Linker will automatically link against shared library if both
8187 # static and shared are present. Therefore, ensure we extract
8188 # symbols from the import library if a shared library is present
8189 # (otherwise, the dlopen module name will be incorrect). We do
8190 # this by putting the import library name into $newdlprefiles.
8191 # We recover the dlopen module name by 'saving' the la file
8192 # name in a special purpose variable, and (later) extracting the
8193 # dlname from the la file.
8194 if test -n "$dlname"; then
8195 func_tr_sh "$dir/$linklib"
8196 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
8197 func_append newdlprefiles " $dir/$linklib"
8198 else
8199 func_append newdlprefiles " $dir/$old_library"
8200 # Keep a list of preopened convenience libraries to check
8201 # that they are being used correctly in the link pass.
8202 test -z "$libdir" && \
8203 func_append dlpreconveniencelibs " $dir/$old_library"
8204 fi
8205 ;;
8206 * )
8207 # Prefer using a static library (so that no silly _DYNAMIC symbols
8208 # are required to link).
8209 if test -n "$old_library"; then
8210 func_append newdlprefiles " $dir/$old_library"
8211 # Keep a list of preopened convenience libraries to check
8212 # that they are being used correctly in the link pass.
8213 test -z "$libdir" && \
8214 func_append dlpreconveniencelibs " $dir/$old_library"
8215 # Otherwise, use the dlname, so that lt_dlopen finds it.
8216 elif test -n "$dlname"; then
8217 func_append newdlprefiles " $dir/$dlname"
8218 else
8219 func_append newdlprefiles " $dir/$linklib"
8220 fi
8221 ;;
8222 esac
8223 fi # $pass = dlpreopen
8224
8225 if test -z "$libdir"; then
8226 # Link the convenience library
8227 if test lib = "$linkmode"; then
8228 deplibs="$dir/$old_library $deplibs"
8229 elif test prog,link = "$linkmode,$pass"; then
8230 compile_deplibs="$dir/$old_library $compile_deplibs"
8231 finalize_deplibs="$dir/$old_library $finalize_deplibs"
8232 else
8233 deplibs="$lib $deplibs" # used for prog,scan pass
8234 fi
8235 continue
8236 fi
8237
8238
8239 if test prog = "$linkmode" && test link != "$pass"; then
8240 func_append newlib_search_path " $ladir"
8241 deplibs="$lib $deplibs"
8242
8243 linkalldeplibs=false
8244 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8245 test no = "$build_libtool_libs"; then
8246 linkalldeplibs=:
8247 fi
8248
8249 tmp_libs=
8250 for deplib in $dependency_libs; do
8251 case $deplib in
8252 -L*) func_stripname '-L' '' "$deplib"
8253 func_resolve_sysroot "$func_stripname_result"
8254 func_append newlib_search_path " $func_resolve_sysroot_result"
8255 ;;
8256 esac
8257 # Need to link against all dependency_libs?
8258 if $linkalldeplibs; then
8259 deplibs="$deplib $deplibs"
8260 else
8261 # Need to hardcode shared library paths
8262 # or/and link against static libraries
8263 newdependency_libs="$deplib $newdependency_libs"
8264 fi
8265 if $opt_preserve_dup_deps; then
8266 case "$tmp_libs " in
8267 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
8268 esac
8269 fi
8270 func_append tmp_libs " $deplib"
8271 done # for deplib
8272 continue
8273 fi # $linkmode = prog...
8274
8275 if test prog,link = "$linkmode,$pass"; then
8276 if test -n "$library_names" &&
8277 { { test no = "$prefer_static_libs" ||
8278 test built,yes = "$prefer_static_libs,$installed"; } ||
8279 test -z "$old_library"; }; then
8280 # We need to hardcode the library path
8281 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8282 # Make sure the rpath contains only unique directories.
8283 case $temp_rpath: in
8284 *"$absdir:"*) ;;
8285 *) func_append temp_rpath "$absdir:" ;;
8286 esac
8287 fi
8288
8289 # Hardcode the library path.
8290 # Skip directories that are in the system default run-time
8291 # search path.
8292 case " $sys_lib_dlsearch_path " in
8293 *" $absdir "*) ;;
8294 *)
8295 case "$compile_rpath " in
8296 *" $absdir "*) ;;
8297 *) func_append compile_rpath " $absdir" ;;
8298 esac
8299 ;;
8300 esac
8301 case " $sys_lib_dlsearch_path " in
8302 *" $libdir "*) ;;
8303 *)
8304 case "$finalize_rpath " in
8305 *" $libdir "*) ;;
8306 *) func_append finalize_rpath " $libdir" ;;
8307 esac
8308 ;;
8309 esac
8310 fi # $linkmode,$pass = prog,link...
8311
8312 if $alldeplibs &&
8313 { test pass_all = "$deplibs_check_method" ||
8314 { test yes = "$build_libtool_libs" &&
8315 test -n "$library_names"; }; }; then
8316 # We only need to search for static libraries
8317 continue
8318 fi
8319 fi
8320
8321 link_static=no # Whether the deplib will be linked statically
8322 use_static_libs=$prefer_static_libs
8323 if test built = "$use_static_libs" && test yes = "$installed"; then
8324 use_static_libs=no
8325 fi
8326 if test -n "$library_names" &&
8327 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8328 case $host in
8329 *cygwin* | *mingw* | *cegcc* | *os2*)
8330 # No point in relinking DLLs because paths are not encoded
8331 func_append notinst_deplibs " $lib"
8332 need_relink=no
8333 ;;
8334 *)
8335 if test no = "$installed"; then
8336 func_append notinst_deplibs " $lib"
8337 need_relink=yes
8338 fi
8339 ;;
8340 esac
8341 # This is a shared library
8342
8343 # Warn about portability, can't link against -module's on some
8344 # systems (darwin). Don't bleat about dlopened modules though!
8345 dlopenmodule=
8346 for dlpremoduletest in $dlprefiles; do
8347 if test "X$dlpremoduletest" = "X$lib"; then
8348 dlopenmodule=$dlpremoduletest
8349 break
8350 fi
8351 done
8352 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8353 echo
8354 if test prog = "$linkmode"; then
8355 $ECHO "*** Warning: Linking the executable $output against the loadable module"
8356 else
8357 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
8358 fi
8359 $ECHO "*** $linklib is not portable!"
8360 fi
8361 if test lib = "$linkmode" &&
8362 test yes = "$hardcode_into_libs"; then
8363 # Hardcode the library path.
8364 # Skip directories that are in the system default run-time
8365 # search path.
8366 case " $sys_lib_dlsearch_path " in
8367 *" $absdir "*) ;;
8368 *)
8369 case "$compile_rpath " in
8370 *" $absdir "*) ;;
8371 *) func_append compile_rpath " $absdir" ;;
8372 esac
8373 ;;
8374 esac
8375 case " $sys_lib_dlsearch_path " in
8376 *" $libdir "*) ;;
8377 *)
8378 case "$finalize_rpath " in
8379 *" $libdir "*) ;;
8380 *) func_append finalize_rpath " $libdir" ;;
8381 esac
8382 ;;
8383 esac
8384 fi
8385
8386 if test -n "$old_archive_from_expsyms_cmds"; then
8387 # figure out the soname
8388 set dummy $library_names
8389 shift
8390 realname=$1
8391 shift
8392 libname=`eval "\\$ECHO \"$libname_spec\""`
8393 # use dlname if we got it. it's perfectly good, no?
8394 if test -n "$dlname"; then
8395 soname=$dlname
8396 elif test -n "$soname_spec"; then
8397 # bleh windows
8398 case $host in
8399 *cygwin* | mingw* | *cegcc* | *os2*)
8400 func_arith $current - $age
8401 major=$func_arith_result
8402 versuffix=-$major
8403 ;;
8404 esac
8405 eval soname=\"$soname_spec\"
8406 else
8407 soname=$realname
8408 fi
8409
8410 # Make a new name for the extract_expsyms_cmds to use
8411 soroot=$soname
8412 func_basename "$soroot"
8413 soname=$func_basename_result
8414 func_stripname 'lib' '.dll' "$soname"
8415 newlib=libimp-$func_stripname_result.a
8416
8417 # If the library has no export list, then create one now
8418 if test -f "$output_objdir/$soname-def"; then :
8419 else
8420 func_verbose "extracting exported symbol list from '$soname'"
8421 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
8422 fi
8423
8424 # Create $newlib
8425 if test -f "$output_objdir/$newlib"; then :; else
8426 func_verbose "generating import library for '$soname'"
8427 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
8428 fi
8429 # make sure the library variables are pointing to the new library
8430 dir=$output_objdir
8431 linklib=$newlib
8432 fi # test -n "$old_archive_from_expsyms_cmds"
8433
8434 if test prog = "$linkmode" || test relink != "$opt_mode"; then
8435 add_shlibpath=
8436 add_dir=
8437 add=
8438 lib_linked=yes
8439 case $hardcode_action in
8440 immediate | unsupported)
8441 if test no = "$hardcode_direct"; then
8442 add=$dir/$linklib
8443 case $host in
8444 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8445 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8446 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8447 *-*-unixware7*) add_dir=-L$dir ;;
8448 *-*-darwin* )
8449 # if the lib is a (non-dlopened) module then we cannot
8450 # link against it, someone is ignoring the earlier warnings
8451 if /usr/bin/file -L $add 2> /dev/null |
8452 $GREP ": [^:]* bundle" >/dev/null; then
8453 if test "X$dlopenmodule" != "X$lib"; then
8454 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
8455 if test -z "$old_library"; then
8456 echo
8457 echo "*** And there doesn't seem to be a static archive available"
8458 echo "*** The link will probably fail, sorry"
8459 else
8460 add=$dir/$old_library
8461 fi
8462 elif test -n "$old_library"; then
8463 add=$dir/$old_library
8464 fi
8465 fi
8466 esac
8467 elif test no = "$hardcode_minus_L"; then
8468 case $host in
8469 *-*-sunos*) add_shlibpath=$dir ;;
8470 esac
8471 add_dir=-L$dir
8472 add=-l$name
8473 elif test no = "$hardcode_shlibpath_var"; then
8474 add_shlibpath=$dir
8475 add=-l$name
8476 else
8477 lib_linked=no
8478 fi
8479 ;;
8480 relink)
8481 if test yes = "$hardcode_direct" &&
8482 test no = "$hardcode_direct_absolute"; then
8483 add=$dir/$linklib
8484 elif test yes = "$hardcode_minus_L"; then
8485 add_dir=-L$absdir
8486 # Try looking first in the location we're being installed to.
8487 if test -n "$inst_prefix_dir"; then
8488 case $libdir in
8489 [\\/]*)
8490 func_append add_dir " -L$inst_prefix_dir$libdir"
8491 ;;
8492 esac
8493 fi
8494 add=-l$name
8495 elif test yes = "$hardcode_shlibpath_var"; then
8496 add_shlibpath=$dir
8497 add=-l$name
8498 else
8499 lib_linked=no
8500 fi
8501 ;;
8502 *) lib_linked=no ;;
8503 esac
8504
8505 if test yes != "$lib_linked"; then
8506 func_fatal_configuration "unsupported hardcode properties"
8507 fi
8508
8509 if test -n "$add_shlibpath"; then
8510 case :$compile_shlibpath: in
8511 *":$add_shlibpath:"*) ;;
8512 *) func_append compile_shlibpath "$add_shlibpath:" ;;
8513 esac
8514 fi
8515 if test prog = "$linkmode"; then
8516 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8517 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8518 else
8519 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8520 test -n "$add" && deplibs="$add $deplibs"
8521 if test yes != "$hardcode_direct" &&
8522 test yes != "$hardcode_minus_L" &&
8523 test yes = "$hardcode_shlibpath_var"; then
8524 case :$finalize_shlibpath: in
8525 *":$libdir:"*) ;;
8526 *) func_append finalize_shlibpath "$libdir:" ;;
8527 esac
8528 fi
8529 fi
8530 fi
8531
8532 if test prog = "$linkmode" || test relink = "$opt_mode"; then
8533 add_shlibpath=
8534 add_dir=
8535 add=
8536 # Finalize command for both is simple: just hardcode it.
8537 if test yes = "$hardcode_direct" &&
8538 test no = "$hardcode_direct_absolute"; then
8539 add=$libdir/$linklib
8540 elif test yes = "$hardcode_minus_L"; then
8541 add_dir=-L$libdir
8542 add=-l$name
8543 elif test yes = "$hardcode_shlibpath_var"; then
8544 case :$finalize_shlibpath: in
8545 *":$libdir:"*) ;;
8546 *) func_append finalize_shlibpath "$libdir:" ;;
8547 esac
8548 add=-l$name
8549 elif test yes = "$hardcode_automatic"; then
8550 if test -n "$inst_prefix_dir" &&
8551 test -f "$inst_prefix_dir$libdir/$linklib"; then
8552 add=$inst_prefix_dir$libdir/$linklib
8553 else
8554 add=$libdir/$linklib
8555 fi
8556 else
8557 # We cannot seem to hardcode it, guess we'll fake it.
8558 add_dir=-L$libdir
8559 # Try looking first in the location we're being installed to.
8560 if test -n "$inst_prefix_dir"; then
8561 case $libdir in
8562 [\\/]*)
8563 func_append add_dir " -L$inst_prefix_dir$libdir"
8564 ;;
8565 esac
8566 fi
8567 add=-l$name
8568 fi
8569
8570 if test prog = "$linkmode"; then
8571 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8572 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8573 else
8574 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8575 test -n "$add" && deplibs="$add $deplibs"
8576 fi
8577 fi
8578 elif test prog = "$linkmode"; then
8579 # Here we assume that one of hardcode_direct or hardcode_minus_L
8580 # is not unsupported. This is valid on all known static and
8581 # shared platforms.
8582 if test unsupported != "$hardcode_direct"; then
8583 test -n "$old_library" && linklib=$old_library
8584 compile_deplibs="$dir/$linklib $compile_deplibs"
8585 finalize_deplibs="$dir/$linklib $finalize_deplibs"
8586 else
8587 compile_deplibs="-l$name -L$dir $compile_deplibs"
8588 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8589 fi
8590 elif test yes = "$build_libtool_libs"; then
8591 # Not a shared library
8592 if test pass_all != "$deplibs_check_method"; then
8593 # We're trying link a shared library against a static one
8594 # but the system doesn't support it.
8595
8596 # Just print a warning and add the library to dependency_libs so
8597 # that the program can be linked against the static library.
8598 echo
8599 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
8600 echo "*** I have the capability to make that library automatically link in when"
8601 echo "*** you link to this library. But I can only do this if you have a"
8602 echo "*** shared version of the library, which you do not appear to have."
8603 if test yes = "$module"; then
8604 echo "*** But as you try to build a module library, libtool will still create "
8605 echo "*** a static module, that should work as long as the dlopening application"
8606 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8607 if test -z "$global_symbol_pipe"; then
8608 echo
8609 echo "*** However, this would only work if libtool was able to extract symbol"
8610 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
8611 echo "*** not find such a program. So, this module is probably useless."
8612 echo "*** 'nm' from GNU binutils and a full rebuild may help."
8613 fi
8614 if test no = "$build_old_libs"; then
8615 build_libtool_libs=module
8616 build_old_libs=yes
8617 else
8618 build_libtool_libs=no
8619 fi
8620 fi
8621 else
8622 deplibs="$dir/$old_library $deplibs"
8623 link_static=yes
8624 fi
8625 fi # link shared/static library?
8626
8627 if test lib = "$linkmode"; then
8628 if test -n "$dependency_libs" &&
8629 { test yes != "$hardcode_into_libs" ||
8630 test yes = "$build_old_libs" ||
8631 test yes = "$link_static"; }; then
8632 # Extract -R from dependency_libs
8633 temp_deplibs=
8634 for libdir in $dependency_libs; do
8635 case $libdir in
8636 -R*) func_stripname '-R' '' "$libdir"
8637 temp_xrpath=$func_stripname_result
8638 case " $xrpath " in
8639 *" $temp_xrpath "*) ;;
8640 *) func_append xrpath " $temp_xrpath";;
8641 esac;;
8642 *) func_append temp_deplibs " $libdir";;
8643 esac
8644 done
8645 dependency_libs=$temp_deplibs
8646 fi
8647
8648 func_append newlib_search_path " $absdir"
8649 # Link against this library
8650 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8651 # ... and its dependency_libs
8652 tmp_libs=
8653 for deplib in $dependency_libs; do
8654 newdependency_libs="$deplib $newdependency_libs"
8655 case $deplib in
8656 -L*) func_stripname '-L' '' "$deplib"
8657 func_resolve_sysroot "$func_stripname_result";;
8658 *) func_resolve_sysroot "$deplib" ;;
8659 esac
8660 if $opt_preserve_dup_deps; then
8661 case "$tmp_libs " in
8662 *" $func_resolve_sysroot_result "*)
8663 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
8664 esac
8665 fi
8666 func_append tmp_libs " $func_resolve_sysroot_result"
8667 done
8668
8669 if test no != "$link_all_deplibs"; then
8670 # Add the search paths of all dependency libraries
8671 for deplib in $dependency_libs; do
8672 path=
8673 case $deplib in
8674 -L*) path=$deplib ;;
8675 *.la)
8676 func_resolve_sysroot "$deplib"
8677 deplib=$func_resolve_sysroot_result
8678 func_dirname "$deplib" "" "."
8679 dir=$func_dirname_result
8680 # We need an absolute path.
8681 case $dir in
8682 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8683 *)
8684 absdir=`cd "$dir" && pwd`
8685 if test -z "$absdir"; then
8686 func_warning "cannot determine absolute directory name of '$dir'"
8687 absdir=$dir
8688 fi
8689 ;;
8690 esac
8691 if $GREP "^installed=no" $deplib > /dev/null; then
8692 case $host in
8693 *-*-darwin*)
8694 depdepl=
8695 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8696 if test -n "$deplibrary_names"; then
8697 for tmp in $deplibrary_names; do
8698 depdepl=$tmp
8699 done
8700 if test -f "$absdir/$objdir/$depdepl"; then
8701 depdepl=$absdir/$objdir/$depdepl
8702 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8703 if test -z "$darwin_install_name"; then
8704 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8705 fi
8706 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8707 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8708 path=
8709 fi
8710 fi
8711 ;;
8712 *)
8713 path=-L$absdir/$objdir
8714 ;;
8715 esac
8716 else
8717 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8718 test -z "$libdir" && \
8719 func_fatal_error "'$deplib' is not a valid libtool archive"
8720 test "$absdir" != "$libdir" && \
8721 func_warning "'$deplib' seems to be moved"
8722
8723 path=-L$absdir
8724 fi
8725 ;;
8726 esac
8727 case " $deplibs " in
8728 *" $path "*) ;;
8729 *) deplibs="$path $deplibs" ;;
8730 esac
8731 done
8732 fi # link_all_deplibs != no
8733 fi # linkmode = lib
8734 done # for deplib in $libs
8735 if test link = "$pass"; then
8736 if test prog = "$linkmode"; then
8737 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
8738 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
8739 else
8740 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8741 fi
8742 fi
8743 dependency_libs=$newdependency_libs
8744 if test dlpreopen = "$pass"; then
8745 # Link the dlpreopened libraries before other libraries
8746 for deplib in $save_deplibs; do
8747 deplibs="$deplib $deplibs"
8748 done
8749 fi
8750 if test dlopen != "$pass"; then
8751 test conv = "$pass" || {
8752 # Make sure lib_search_path contains only unique directories.
8753 lib_search_path=
8754 for dir in $newlib_search_path; do
8755 case "$lib_search_path " in
8756 *" $dir "*) ;;
8757 *) func_append lib_search_path " $dir" ;;
8758 esac
8759 done
8760 newlib_search_path=
8761 }
8762
8763 if test prog,link = "$linkmode,$pass"; then
8764 vars="compile_deplibs finalize_deplibs"
8765 else
8766 vars=deplibs
8767 fi
8768 for var in $vars dependency_libs; do
8769 # Add libraries to $var in reverse order
8770 eval tmp_libs=\"\$$var\"
8771 new_libs=
8772 for deplib in $tmp_libs; do
8773 # FIXME: Pedantically, this is the right thing to do, so
8774 # that some nasty dependency loop isn't accidentally
8775 # broken:
8776 #new_libs="$deplib $new_libs"
8777 # Pragmatically, this seems to cause very few problems in
8778 # practice:
8779 case $deplib in
8780 -L*) new_libs="$deplib $new_libs" ;;
8781 -R*) ;;
8782 *)
8783 # And here is the reason: when a library appears more
8784 # than once as an explicit dependence of a library, or
8785 # is implicitly linked in more than once by the
8786 # compiler, it is considered special, and multiple
8787 # occurrences thereof are not removed. Compare this
8788 # with having the same library being listed as a
8789 # dependency of multiple other libraries: in this case,
8790 # we know (pedantically, we assume) the library does not
8791 # need to be listed more than once, so we keep only the
8792 # last copy. This is not always right, but it is rare
8793 # enough that we require users that really mean to play
8794 # such unportable linking tricks to link the library
8795 # using -Wl,-lname, so that libtool does not consider it
8796 # for duplicate removal.
8797 case " $specialdeplibs " in
8798 *" $deplib "*) new_libs="$deplib $new_libs" ;;
8799 *)
8800 case " $new_libs " in
8801 *" $deplib "*) ;;
8802 *) new_libs="$deplib $new_libs" ;;
8803 esac
8804 ;;
8805 esac
8806 ;;
8807 esac
8808 done
8809 tmp_libs=
8810 for deplib in $new_libs; do
8811 case $deplib in
8812 -L*)
8813 case " $tmp_libs " in
8814 *" $deplib "*) ;;
8815 *) func_append tmp_libs " $deplib" ;;
8816 esac
8817 ;;
8818 *) func_append tmp_libs " $deplib" ;;
8819 esac
8820 done
8821 eval $var=\"$tmp_libs\"
8822 done # for var
8823 fi
8824
8825 # Add Sun CC postdeps if required:
8826 test CXX = "$tagname" && {
8827 case $host_os in
8828 linux*)
8829 case `$CC -V 2>&1 | sed 5q` in
8830 *Sun\ C*) # Sun C++ 5.9
8831 func_suncc_cstd_abi
8832
8833 if test no != "$suncc_use_cstd_abi"; then
8834 func_append postdeps ' -library=Cstd -library=Crun'
8835 fi
8836 ;;
8837 esac
8838 ;;
8839
8840 solaris*)
8841 func_cc_basename "$CC"
8842 case $func_cc_basename_result in
8843 CC* | sunCC*)
8844 func_suncc_cstd_abi
8845
8846 if test no != "$suncc_use_cstd_abi"; then
8847 func_append postdeps ' -library=Cstd -library=Crun'
8848 fi
8849 ;;
8850 esac
8851 ;;
8852 esac
8853 }
8854
8855 # Last step: remove runtime libs from dependency_libs
8856 # (they stay in deplibs)
8857 tmp_libs=
8858 for i in $dependency_libs; do
8859 case " $predeps $postdeps $compiler_lib_search_path " in
8860 *" $i "*)
8861 i=
8862 ;;
8863 esac
8864 if test -n "$i"; then
8865 func_append tmp_libs " $i"
8866 fi
8867 done
8868 dependency_libs=$tmp_libs
8869 done # for pass
8870 if test prog = "$linkmode"; then
8871 dlfiles=$newdlfiles
8872 fi
8873 if test prog = "$linkmode" || test lib = "$linkmode"; then
8874 dlprefiles=$newdlprefiles
8875 fi
8876
8877 case $linkmode in
8878 oldlib)
8879 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8880 func_warning "'-dlopen' is ignored for archives"
8881 fi
8882
8883 case " $deplibs" in
8884 *\ -l* | *\ -L*)
8885 func_warning "'-l' and '-L' are ignored for archives" ;;
8886 esac
8887
8888 test -n "$rpath" && \
8889 func_warning "'-rpath' is ignored for archives"
8890
8891 test -n "$xrpath" && \
8892 func_warning "'-R' is ignored for archives"
8893
8894 test -n "$vinfo" && \
8895 func_warning "'-version-info/-version-number' is ignored for archives"
8896
8897 test -n "$release" && \
8898 func_warning "'-release' is ignored for archives"
8899
8900 test -n "$export_symbols$export_symbols_regex" && \
8901 func_warning "'-export-symbols' is ignored for archives"
8902
8903 # Now set the variables for building old libraries.
8904 build_libtool_libs=no
8905 oldlibs=$output
8906 func_append objs "$old_deplibs"
8907 ;;
8908
8909 lib)
8910 # Make sure we only generate libraries of the form 'libNAME.la'.
8911 case $outputname in
8912 lib*)
8913 func_stripname 'lib' '.la' "$outputname"
8914 name=$func_stripname_result
8915 eval shared_ext=\"$shrext_cmds\"
8916 eval libname=\"$libname_spec\"
8917 ;;
8918 *)
8919 test no = "$module" \
8920 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8921
8922 if test no != "$need_lib_prefix"; then
8923 # Add the "lib" prefix for modules if required
8924 func_stripname '' '.la' "$outputname"
8925 name=$func_stripname_result
8926 eval shared_ext=\"$shrext_cmds\"
8927 eval libname=\"$libname_spec\"
8928 else
8929 func_stripname '' '.la' "$outputname"
8930 libname=$func_stripname_result
8931 fi
8932 ;;
8933 esac
8934
8935 if test -n "$objs"; then
8936 if test pass_all != "$deplibs_check_method"; then
8937 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
8938 else
8939 echo
8940 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
8941 $ECHO "*** objects $objs is not portable!"
8942 func_append libobjs " $objs"
8943 fi
8944 fi
8945
8946 test no = "$dlself" \
8947 || func_warning "'-dlopen self' is ignored for libtool libraries"
8948
8949 set dummy $rpath
8950 shift
8951 test 1 -lt "$#" \
8952 && func_warning "ignoring multiple '-rpath's for a libtool library"
8953
8954 install_libdir=$1
8955
8956 oldlibs=
8957 if test -z "$rpath"; then
8958 if test yes = "$build_libtool_libs"; then
8959 # Building a libtool convenience library.
8960 # Some compilers have problems with a '.al' extension so
8961 # convenience libraries should have the same extension an
8962 # archive normally would.
8963 oldlibs="$output_objdir/$libname.$libext $oldlibs"
8964 build_libtool_libs=convenience
8965 build_old_libs=yes
8966 fi
8967
8968 test -n "$vinfo" && \
8969 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
8970
8971 test -n "$release" && \
8972 func_warning "'-release' is ignored for convenience libraries"
8973 else
8974
8975 # Parse the version information argument.
8976 save_ifs=$IFS; IFS=:
8977 set dummy $vinfo 0 0 0
8978 shift
8979 IFS=$save_ifs
8980
8981 test -n "$7" && \
8982 func_fatal_help "too many parameters to '-version-info'"
8983
8984 # convert absolute version numbers to libtool ages
8985 # this retains compatibility with .la files and attempts
8986 # to make the code below a bit more comprehensible
8987
8988 case $vinfo_number in
8989 yes)
8990 number_major=$1
8991 number_minor=$2
8992 number_revision=$3
8993 #
8994 # There are really only two kinds -- those that
8995 # use the current revision as the major version
8996 # and those that subtract age and use age as
8997 # a minor version. But, then there is irix
8998 # that has an extra 1 added just for fun
8999 #
9000 case $version_type in
9001 # correct linux to gnu/linux during the next big refactor
9002 darwin|freebsd-elf|linux|osf|windows|none)
9003 func_arith $number_major + $number_minor
9004 current=$func_arith_result
9005 age=$number_minor
9006 revision=$number_revision
9007 ;;
9008 freebsd-aout|qnx|sunos)
9009 current=$number_major
9010 revision=$number_minor
9011 age=0
9012 ;;
9013 irix|nonstopux)
9014 func_arith $number_major + $number_minor
9015 current=$func_arith_result
9016 age=$number_minor
9017 revision=$number_minor
9018 lt_irix_increment=no
9019 ;;
9020 *)
9021 func_fatal_configuration "$modename: unknown library version type '$version_type'"
9022 ;;
9023 esac
9024 ;;
9025 no)
9026 current=$1
9027 revision=$2
9028 age=$3
9029 ;;
9030 esac
9031
9032 # Check that each of the things are valid numbers.
9033 case $current in
9034 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]) ;;
9035 *)
9036 func_error "CURRENT '$current' must be a nonnegative integer"
9037 func_fatal_error "'$vinfo' is not valid version information"
9038 ;;
9039 esac
9040
9041 case $revision in
9042 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]) ;;
9043 *)
9044 func_error "REVISION '$revision' must be a nonnegative integer"
9045 func_fatal_error "'$vinfo' is not valid version information"
9046 ;;
9047 esac
9048
9049 case $age in
9050 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]) ;;
9051 *)
9052 func_error "AGE '$age' must be a nonnegative integer"
9053 func_fatal_error "'$vinfo' is not valid version information"
9054 ;;
9055 esac
9056
9057 if test "$age" -gt "$current"; then
9058 func_error "AGE '$age' is greater than the current interface number '$current'"
9059 func_fatal_error "'$vinfo' is not valid version information"
9060 fi
9061
9062 # Calculate the version variables.
9063 major=
9064 versuffix=
9065 verstring=
9066 case $version_type in
9067 none) ;;
9068
9069 darwin)
9070 # Like Linux, but with the current version available in
9071 # verstring for coding it into the library header
9072 func_arith $current - $age
9073 major=.$func_arith_result
9074 versuffix=$major.$age.$revision
9075 # Darwin ld doesn't like 0 for these options...
9076 func_arith $current + 1
9077 minor_current=$func_arith_result
9078 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
9079 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9080 # On Darwin other compilers
9081 case $CC in
9082 nagfor*)
9083 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
9084 ;;
9085 *)
9086 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
9087 ;;
9088 esac
9089 ;;
9090
9091 freebsd-aout)
9092 major=.$current
9093 versuffix=.$current.$revision
9094 ;;
9095
9096 freebsd-elf)
9097 func_arith $current - $age
9098 major=.$func_arith_result
9099 versuffix=$major.$age.$revision
9100 ;;
9101
9102 irix | nonstopux)
9103 if test no = "$lt_irix_increment"; then
9104 func_arith $current - $age
9105 else
9106 func_arith $current - $age + 1
9107 fi
9108 major=$func_arith_result
9109
9110 case $version_type in
9111 nonstopux) verstring_prefix=nonstopux ;;
9112 *) verstring_prefix=sgi ;;
9113 esac
9114 verstring=$verstring_prefix$major.$revision
9115
9116 # Add in all the interfaces that we are compatible with.
9117 loop=$revision
9118 while test 0 -ne "$loop"; do
9119 func_arith $revision - $loop
9120 iface=$func_arith_result
9121 func_arith $loop - 1
9122 loop=$func_arith_result
9123 verstring=$verstring_prefix$major.$iface:$verstring
9124 done
9125
9126 # Before this point, $major must not contain '.'.
9127 major=.$major
9128 versuffix=$major.$revision
9129 ;;
9130
9131 linux) # correct to gnu/linux during the next big refactor
9132 func_arith $current - $age
9133 major=.$func_arith_result
9134 versuffix=$major.$age.$revision
9135 ;;
9136
9137 osf)
9138 func_arith $current - $age
9139 major=.$func_arith_result
9140 versuffix=.$current.$age.$revision
9141 verstring=$current.$age.$revision
9142
9143 # Add in all the interfaces that we are compatible with.
9144 loop=$age
9145 while test 0 -ne "$loop"; do
9146 func_arith $current - $loop
9147 iface=$func_arith_result
9148 func_arith $loop - 1
9149 loop=$func_arith_result
9150 verstring=$verstring:$iface.0
9151 done
9152
9153 # Make executables depend on our current version.
9154 func_append verstring ":$current.0"
9155 ;;
9156
9157 qnx)
9158 major=.$current
9159 versuffix=.$current
9160 ;;
9161
9162 sco)
9163 major=.$current
9164 versuffix=.$current
9165 ;;
9166
9167 sunos)
9168 major=.$current
9169 versuffix=.$current.$revision
9170 ;;
9171
9172 windows)
9173 # Use '-' rather than '.', since we only want one
9174 # extension on DOS 8.3 file systems.
9175 func_arith $current - $age
9176 major=$func_arith_result
9177 versuffix=-$major
9178 ;;
9179
9180 *)
9181 func_fatal_configuration "unknown library version type '$version_type'"
9182 ;;
9183 esac
9184
9185 # Clear the version info if we defaulted, and they specified a release.
9186 if test -z "$vinfo" && test -n "$release"; then
9187 major=
9188 case $version_type in
9189 darwin)
9190 # we can't check for "0.0" in archive_cmds due to quoting
9191 # problems, so we reset it completely
9192 verstring=
9193 ;;
9194 *)
9195 verstring=0.0
9196 ;;
9197 esac
9198 if test no = "$need_version"; then
9199 versuffix=
9200 else
9201 versuffix=.0.0
9202 fi
9203 fi
9204
9205 # Remove version info from name if versioning should be avoided
9206 if test yes,no = "$avoid_version,$need_version"; then
9207 major=
9208 versuffix=
9209 verstring=
9210 fi
9211
9212 # Check to see if the archive will have undefined symbols.
9213 if test yes = "$allow_undefined"; then
9214 if test unsupported = "$allow_undefined_flag"; then
9215 if test yes = "$build_old_libs"; then
9216 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9217 build_libtool_libs=no
9218 else
9219 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9220 fi
9221 fi
9222 else
9223 # Don't allow undefined symbols.
9224 allow_undefined_flag=$no_undefined_flag
9225 fi
9226
9227 fi
9228
9229 func_generate_dlsyms "$libname" "$libname" :
9230 func_append libobjs " $symfileobj"
9231 test " " = "$libobjs" && libobjs=
9232
9233 if test relink != "$opt_mode"; then
9234 # Remove our outputs, but don't remove object files since they
9235 # may have been created when compiling PIC objects.
9236 removelist=
9237 tempremovelist=`$ECHO "$output_objdir/*"`
9238 for p in $tempremovelist; do
9239 case $p in
9240 *.$objext | *.gcno)
9241 ;;
9242 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9243 if test -n "$precious_files_regex"; then
9244 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9245 then
9246 continue
9247 fi
9248 fi
9249 func_append removelist " $p"
9250 ;;
9251 *) ;;
9252 esac
9253 done
9254 test -n "$removelist" && \
9255 func_show_eval "${RM}r \$removelist"
9256 fi
9257
9258 # Now set the variables for building old libraries.
9259 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
9260 func_append oldlibs " $output_objdir/$libname.$libext"
9261
9262 # Transform .lo files to .o files.
9263 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
9264 fi
9265
9266 # Eliminate all temporary directories.
9267 #for path in $notinst_path; do
9268 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
9269 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9270 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9271 #done
9272
9273 if test -n "$xrpath"; then
9274 # If the user specified any rpath flags, then add them.
9275 temp_xrpath=
9276 for libdir in $xrpath; do
9277 func_replace_sysroot "$libdir"
9278 func_append temp_xrpath " -R$func_replace_sysroot_result"
9279 case "$finalize_rpath " in
9280 *" $libdir "*) ;;
9281 *) func_append finalize_rpath " $libdir" ;;
9282 esac
9283 done
9284 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
9285 dependency_libs="$temp_xrpath $dependency_libs"
9286 fi
9287 fi
9288
9289 # Make sure dlfiles contains only unique files that won't be dlpreopened
9290 old_dlfiles=$dlfiles
9291 dlfiles=
9292 for lib in $old_dlfiles; do
9293 case " $dlprefiles $dlfiles " in
9294 *" $lib "*) ;;
9295 *) func_append dlfiles " $lib" ;;
9296 esac
9297 done
9298
9299 # Make sure dlprefiles contains only unique files
9300 old_dlprefiles=$dlprefiles
9301 dlprefiles=
9302 for lib in $old_dlprefiles; do
9303 case "$dlprefiles " in
9304 *" $lib "*) ;;
9305 *) func_append dlprefiles " $lib" ;;
9306 esac
9307 done
9308
9309 if test yes = "$build_libtool_libs"; then
9310 if test -n "$rpath"; then
9311 case $host in
9312 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9313 # these systems don't actually have a c library (as such)!
9314 ;;
9315 *-*-rhapsody* | *-*-darwin1.[012])
9316 # Rhapsody C library is in the System framework
9317 func_append deplibs " System.ltframework"
9318 ;;
9319 *-*-netbsd*)
9320 # Don't link with libc until the a.out ld.so is fixed.
9321 ;;
9322 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9323 # Do not include libc due to us having libc/libc_r.
9324 ;;
9325 *-*-sco3.2v5* | *-*-sco5v6*)
9326 # Causes problems with __ctype
9327 ;;
9328 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9329 # Compiler inserts libc in the correct place for threads to work
9330 ;;
9331 *)
9332 # Add libc to deplibs on all other systems if necessary.
9333 if test yes = "$build_libtool_need_lc"; then
9334 func_append deplibs " -lc"
9335 fi
9336 ;;
9337 esac
9338 fi
9339
9340 # Transform deplibs into only deplibs that can be linked in shared.
9341 name_save=$name
9342 libname_save=$libname
9343 release_save=$release
9344 versuffix_save=$versuffix
9345 major_save=$major
9346 # I'm not sure if I'm treating the release correctly. I think
9347 # release should show up in the -l (ie -lgmp5) so we don't want to
9348 # add it in twice. Is that correct?
9349 release=
9350 versuffix=
9351 major=
9352 newdeplibs=
9353 droppeddeps=no
9354 case $deplibs_check_method in
9355 pass_all)
9356 # Don't check for shared/static. Everything works.
9357 # This might be a little naive. We might want to check
9358 # whether the library exists or not. But this is on
9359 # osf3 & osf4 and I'm not really sure... Just
9360 # implementing what was already the behavior.
9361 newdeplibs=$deplibs
9362 ;;
9363 test_compile)
9364 # This code stresses the "libraries are programs" paradigm to its
9365 # limits. Maybe even breaks it. We compile a program, linking it
9366 # against the deplibs as a proxy for the library. Then we can check
9367 # whether they linked in statically or dynamically with ldd.
9368 $opt_dry_run || $RM conftest.c
9369 cat > conftest.c <<EOF
9370 int main() { return 0; }
9371 EOF
9372 $opt_dry_run || $RM conftest
9373 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9374 ldd_output=`ldd conftest`
9375 for i in $deplibs; do
9376 case $i in
9377 -l*)
9378 func_stripname -l '' "$i"
9379 name=$func_stripname_result
9380 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9381 case " $predeps $postdeps " in
9382 *" $i "*)
9383 func_append newdeplibs " $i"
9384 i=
9385 ;;
9386 esac
9387 fi
9388 if test -n "$i"; then
9389 libname=`eval "\\$ECHO \"$libname_spec\""`
9390 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
9391 set dummy $deplib_matches; shift
9392 deplib_match=$1
9393 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9394 func_append newdeplibs " $i"
9395 else
9396 droppeddeps=yes
9397 echo
9398 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
9399 echo "*** I have the capability to make that library automatically link in when"
9400 echo "*** you link to this library. But I can only do this if you have a"
9401 echo "*** shared version of the library, which I believe you do not have"
9402 echo "*** because a test_compile did reveal that the linker did not use it for"
9403 echo "*** its dynamic dependency list that programs get resolved with at runtime."
9404 fi
9405 fi
9406 ;;
9407 *)
9408 func_append newdeplibs " $i"
9409 ;;
9410 esac
9411 done
9412 else
9413 # Error occurred in the first compile. Let's try to salvage
9414 # the situation: Compile a separate program for each library.
9415 for i in $deplibs; do
9416 case $i in
9417 -l*)
9418 func_stripname -l '' "$i"
9419 name=$func_stripname_result
9420 $opt_dry_run || $RM conftest
9421 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9422 ldd_output=`ldd conftest`
9423 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9424 case " $predeps $postdeps " in
9425 *" $i "*)
9426 func_append newdeplibs " $i"
9427 i=
9428 ;;
9429 esac
9430 fi
9431 if test -n "$i"; then
9432 libname=`eval "\\$ECHO \"$libname_spec\""`
9433 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
9434 set dummy $deplib_matches; shift
9435 deplib_match=$1
9436 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9437 func_append newdeplibs " $i"
9438 else
9439 droppeddeps=yes
9440 echo
9441 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
9442 echo "*** I have the capability to make that library automatically link in when"
9443 echo "*** you link to this library. But I can only do this if you have a"
9444 echo "*** shared version of the library, which you do not appear to have"
9445 echo "*** because a test_compile did reveal that the linker did not use this one"
9446 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
9447 fi
9448 fi
9449 else
9450 droppeddeps=yes
9451 echo
9452 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
9453 echo "*** make it link in! You will probably need to install it or some"
9454 echo "*** library that it depends on before this library will be fully"
9455 echo "*** functional. Installing it before continuing would be even better."
9456 fi
9457 ;;
9458 *)
9459 func_append newdeplibs " $i"
9460 ;;
9461 esac
9462 done
9463 fi
9464 ;;
9465 file_magic*)
9466 set dummy $deplibs_check_method; shift
9467 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
9468 for a_deplib in $deplibs; do
9469 case $a_deplib in
9470 -l*)
9471 func_stripname -l '' "$a_deplib"
9472 name=$func_stripname_result
9473 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9474 case " $predeps $postdeps " in
9475 *" $a_deplib "*)
9476 func_append newdeplibs " $a_deplib"
9477 a_deplib=
9478 ;;
9479 esac
9480 fi
9481 if test -n "$a_deplib"; then
9482 libname=`eval "\\$ECHO \"$libname_spec\""`
9483 if test -n "$file_magic_glob"; then
9484 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9485 else
9486 libnameglob=$libname
9487 fi
9488 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9489 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
9490 if test yes = "$want_nocaseglob"; then
9491 shopt -s nocaseglob
9492 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9493 $nocaseglob
9494 else
9495 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9496 fi
9497 for potent_lib in $potential_libs; do
9498 # Follow soft links.
9499 if ls -lLd "$potent_lib" 2>/dev/null |
9500 $GREP " -> " >/dev/null; then
9501 continue
9502 fi
9503 # The statement above tries to avoid entering an
9504 # endless loop below, in case of cyclic links.
9505 # We might still enter an endless loop, since a link
9506 # loop can be closed while we follow links,
9507 # but so what?
9508 potlib=$potent_lib
9509 while test -h "$potlib" 2>/dev/null; do
9510 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9511 case $potliblink in
9512 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9513 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
9514 esac
9515 done
9516 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
9517 $SED -e 10q |
9518 $EGREP "$file_magic_regex" > /dev/null; then
9519 func_append newdeplibs " $a_deplib"
9520 a_deplib=
9521 break 2
9522 fi
9523 done
9524 done
9525 fi
9526 if test -n "$a_deplib"; then
9527 droppeddeps=yes
9528 echo
9529 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
9530 echo "*** I have the capability to make that library automatically link in when"
9531 echo "*** you link to this library. But I can only do this if you have a"
9532 echo "*** shared version of the library, which you do not appear to have"
9533 echo "*** because I did check the linker path looking for a file starting"
9534 if test -z "$potlib"; then
9535 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
9536 else
9537 $ECHO "*** with $libname and none of the candidates passed a file format test"
9538 $ECHO "*** using a file magic. Last file checked: $potlib"
9539 fi
9540 fi
9541 ;;
9542 *)
9543 # Add a -L argument.
9544 func_append newdeplibs " $a_deplib"
9545 ;;
9546 esac
9547 done # Gone through all deplibs.
9548 ;;
9549 match_pattern*)
9550 set dummy $deplibs_check_method; shift
9551 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
9552 for a_deplib in $deplibs; do
9553 case $a_deplib in
9554 -l*)
9555 func_stripname -l '' "$a_deplib"
9556 name=$func_stripname_result
9557 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9558 case " $predeps $postdeps " in
9559 *" $a_deplib "*)
9560 func_append newdeplibs " $a_deplib"
9561 a_deplib=
9562 ;;
9563 esac
9564 fi
9565 if test -n "$a_deplib"; then
9566 libname=`eval "\\$ECHO \"$libname_spec\""`
9567 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
9568 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9569 for potent_lib in $potential_libs; do
9570 potlib=$potent_lib # see symlink-check above in file_magic test
9571 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
9572 $EGREP "$match_pattern_regex" > /dev/null; then
9573 func_append newdeplibs " $a_deplib"
9574 a_deplib=
9575 break 2
9576 fi
9577 done
9578 done
9579 fi
9580 if test -n "$a_deplib"; then
9581 droppeddeps=yes
9582 echo
9583 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
9584 echo "*** I have the capability to make that library automatically link in when"
9585 echo "*** you link to this library. But I can only do this if you have a"
9586 echo "*** shared version of the library, which you do not appear to have"
9587 echo "*** because I did check the linker path looking for a file starting"
9588 if test -z "$potlib"; then
9589 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
9590 else
9591 $ECHO "*** with $libname and none of the candidates passed a file format test"
9592 $ECHO "*** using a regex pattern. Last file checked: $potlib"
9593 fi
9594 fi
9595 ;;
9596 *)
9597 # Add a -L argument.
9598 func_append newdeplibs " $a_deplib"
9599 ;;
9600 esac
9601 done # Gone through all deplibs.
9602 ;;
9603 none | unknown | *)
9604 newdeplibs=
9605 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9606 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9607 for i in $predeps $postdeps; do
9608 # can't use Xsed below, because $i might contain '/'
9609 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
9610 done
9611 fi
9612 case $tmp_deplibs in
9613 *[!\ \ ]*)
9614 echo
9615 if test none = "$deplibs_check_method"; then
9616 echo "*** Warning: inter-library dependencies are not supported in this platform."
9617 else
9618 echo "*** Warning: inter-library dependencies are not known to be supported."
9619 fi
9620 echo "*** All declared inter-library dependencies are being dropped."
9621 droppeddeps=yes
9622 ;;
9623 esac
9624 ;;
9625 esac
9626 versuffix=$versuffix_save
9627 major=$major_save
9628 release=$release_save
9629 libname=$libname_save
9630 name=$name_save
9631
9632 case $host in
9633 *-*-rhapsody* | *-*-darwin1.[012])
9634 # On Rhapsody replace the C library with the System framework
9635 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9636 ;;
9637 esac
9638
9639 if test yes = "$droppeddeps"; then
9640 if test yes = "$module"; then
9641 echo
9642 echo "*** Warning: libtool could not satisfy all declared inter-library"
9643 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
9644 echo "*** a static module, that should work as long as the dlopening"
9645 echo "*** application is linked with the -dlopen flag."
9646 if test -z "$global_symbol_pipe"; then
9647 echo
9648 echo "*** However, this would only work if libtool was able to extract symbol"
9649 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
9650 echo "*** not find such a program. So, this module is probably useless."
9651 echo "*** 'nm' from GNU binutils and a full rebuild may help."
9652 fi
9653 if test no = "$build_old_libs"; then
9654 oldlibs=$output_objdir/$libname.$libext
9655 build_libtool_libs=module
9656 build_old_libs=yes
9657 else
9658 build_libtool_libs=no
9659 fi
9660 else
9661 echo "*** The inter-library dependencies that have been dropped here will be"
9662 echo "*** automatically added whenever a program is linked with this library"
9663 echo "*** or is declared to -dlopen it."
9664
9665 if test no = "$allow_undefined"; then
9666 echo
9667 echo "*** Since this library must not contain undefined symbols,"
9668 echo "*** because either the platform does not support them or"
9669 echo "*** it was explicitly requested with -no-undefined,"
9670 echo "*** libtool will only create a static version of it."
9671 if test no = "$build_old_libs"; then
9672 oldlibs=$output_objdir/$libname.$libext
9673 build_libtool_libs=module
9674 build_old_libs=yes
9675 else
9676 build_libtool_libs=no
9677 fi
9678 fi
9679 fi
9680 fi
9681 # Done checking deplibs!
9682 deplibs=$newdeplibs
9683 fi
9684 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9685 case $host in
9686 *-*-darwin*)
9687 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9688 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9689 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9690 ;;
9691 esac
9692
9693 # move library search paths that coincide with paths to not yet
9694 # installed libraries to the beginning of the library search list
9695 new_libs=
9696 for path in $notinst_path; do
9697 case " $new_libs " in
9698 *" -L$path/$objdir "*) ;;
9699 *)
9700 case " $deplibs " in
9701 *" -L$path/$objdir "*)
9702 func_append new_libs " -L$path/$objdir" ;;
9703 esac
9704 ;;
9705 esac
9706 done
9707 for deplib in $deplibs; do
9708 case $deplib in
9709 -L*)
9710 case " $new_libs " in
9711 *" $deplib "*) ;;
9712 *) func_append new_libs " $deplib" ;;
9713 esac
9714 ;;
9715 *) func_append new_libs " $deplib" ;;
9716 esac
9717 done
9718 deplibs=$new_libs
9719
9720 # All the library-specific variables (install_libdir is set above).
9721 library_names=
9722 old_library=
9723 dlname=
9724
9725 # Test again, we may have decided not to build it any more
9726 if test yes = "$build_libtool_libs"; then
9727 # Remove $wl instances when linking with ld.
9728 # FIXME: should test the right _cmds variable.
9729 case $archive_cmds in
9730 *\$LD\ *) wl= ;;
9731 esac
9732 if test yes = "$hardcode_into_libs"; then
9733 # Hardcode the library paths
9734 hardcode_libdirs=
9735 dep_rpath=
9736 rpath=$finalize_rpath
9737 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
9738 for libdir in $rpath; do
9739 if test -n "$hardcode_libdir_flag_spec"; then
9740 if test -n "$hardcode_libdir_separator"; then
9741 func_replace_sysroot "$libdir"
9742 libdir=$func_replace_sysroot_result
9743 if test -z "$hardcode_libdirs"; then
9744 hardcode_libdirs=$libdir
9745 else
9746 # Just accumulate the unique libdirs.
9747 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
9748 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
9749 ;;
9750 *)
9751 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
9752 ;;
9753 esac
9754 fi
9755 else
9756 eval flag=\"$hardcode_libdir_flag_spec\"
9757 func_append dep_rpath " $flag"
9758 fi
9759 elif test -n "$runpath_var"; then
9760 case "$perm_rpath " in
9761 *" $libdir "*) ;;
9762 *) func_append perm_rpath " $libdir" ;;
9763 esac
9764 fi
9765 done
9766 # Substitute the hardcoded libdirs into the rpath.
9767 if test -n "$hardcode_libdir_separator" &&
9768 test -n "$hardcode_libdirs"; then
9769 libdir=$hardcode_libdirs
9770 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
9771 fi
9772 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9773 # We should set the runpath_var.
9774 rpath=
9775 for dir in $perm_rpath; do
9776 func_append rpath "$dir:"
9777 done
9778 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
9779 fi
9780 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9781 fi
9782
9783 shlibpath=$finalize_shlibpath
9784 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
9785 if test -n "$shlibpath"; then
9786 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
9787 fi
9788
9789 # Get the real and link names of the library.
9790 eval shared_ext=\"$shrext_cmds\"
9791 eval library_names=\"$library_names_spec\"
9792 set dummy $library_names
9793 shift
9794 realname=$1
9795 shift
9796
9797 if test -n "$soname_spec"; then
9798 eval soname=\"$soname_spec\"
9799 else
9800 soname=$realname
9801 fi
9802 if test -z "$dlname"; then
9803 dlname=$soname
9804 fi
9805
9806 lib=$output_objdir/$realname
9807 linknames=
9808 for link
9809 do
9810 func_append linknames " $link"
9811 done
9812
9813 # Use standard objects if they are pic
9814 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9815 test "X$libobjs" = "X " && libobjs=
9816
9817 delfiles=
9818 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9819 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
9820 export_symbols=$output_objdir/$libname.uexp
9821 func_append delfiles " $export_symbols"
9822 fi
9823
9824 orig_export_symbols=
9825 case $host_os in
9826 cygwin* | mingw* | cegcc*)
9827 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9828 # exporting using user supplied symfile
9829 func_dll_def_p "$export_symbols" || {
9830 # and it's NOT already a .def file. Must figure out
9831 # which of the given symbols are data symbols and tag
9832 # them as such. So, trigger use of export_symbols_cmds.
9833 # export_symbols gets reassigned inside the "prepare
9834 # the list of exported symbols" if statement, so the
9835 # include_expsyms logic still works.
9836 orig_export_symbols=$export_symbols
9837 export_symbols=
9838 always_export_symbols=yes
9839 }
9840 fi
9841 ;;
9842 esac
9843
9844 # Prepare the list of exported symbols
9845 if test -z "$export_symbols"; then
9846 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9847 func_verbose "generating symbol list for '$libname.la'"
9848 export_symbols=$output_objdir/$libname.exp
9849 $opt_dry_run || $RM $export_symbols
9850 cmds=$export_symbols_cmds
9851 save_ifs=$IFS; IFS='~'
9852 for cmd1 in $cmds; do
9853 IFS=$save_ifs
9854 # Take the normal branch if the nm_file_list_spec branch
9855 # doesn't work or if tool conversion is not needed.
9856 case $nm_file_list_spec~$to_tool_file_cmd in
9857 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
9858 try_normal_branch=yes
9859 eval cmd=\"$cmd1\"
9860 func_len " $cmd"
9861 len=$func_len_result
9862 ;;
9863 *)
9864 try_normal_branch=no
9865 ;;
9866 esac
9867 if test yes = "$try_normal_branch" \
9868 && { test "$len" -lt "$max_cmd_len" \
9869 || test "$max_cmd_len" -le -1; }
9870 then
9871 func_show_eval "$cmd" 'exit $?'
9872 skipped_export=false
9873 elif test -n "$nm_file_list_spec"; then
9874 func_basename "$output"
9875 output_la=$func_basename_result
9876 save_libobjs=$libobjs
9877 save_output=$output
9878 output=$output_objdir/$output_la.nm
9879 func_to_tool_file "$output"
9880 libobjs=$nm_file_list_spec$func_to_tool_file_result
9881 func_append delfiles " $output"
9882 func_verbose "creating $NM input file list: $output"
9883 for obj in $save_libobjs; do
9884 func_to_tool_file "$obj"
9885 $ECHO "$func_to_tool_file_result"
9886 done > "$output"
9887 eval cmd=\"$cmd1\"
9888 func_show_eval "$cmd" 'exit $?'
9889 output=$save_output
9890 libobjs=$save_libobjs
9891 skipped_export=false
9892 else
9893 # The command line is too long to execute in one step.
9894 func_verbose "using reloadable object file for export list..."
9895 skipped_export=:
9896 # Break out early, otherwise skipped_export may be
9897 # set to false by a later but shorter cmd.
9898 break
9899 fi
9900 done
9901 IFS=$save_ifs
9902 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9903 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9904 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
9905 fi
9906 fi
9907 fi
9908
9909 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9910 tmp_export_symbols=$export_symbols
9911 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9912 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
9913 fi
9914
9915 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
9916 # The given exports_symbols file has to be filtered, so filter it.
9917 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
9918 # FIXME: $output_objdir/$libname.filter potentially contains lots of
9919 # 's' commands, which not all seds can handle. GNU sed should be fine
9920 # though. Also, the filter scales superlinearly with the number of
9921 # global variables. join(1) would be nice here, but unfortunately
9922 # isn't a blessed tool.
9923 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
9924 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
9925 export_symbols=$output_objdir/$libname.def
9926 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9927 fi
9928
9929 tmp_deplibs=
9930 for test_deplib in $deplibs; do
9931 case " $convenience " in
9932 *" $test_deplib "*) ;;
9933 *)
9934 func_append tmp_deplibs " $test_deplib"
9935 ;;
9936 esac
9937 done
9938 deplibs=$tmp_deplibs
9939
9940 if test -n "$convenience"; then
9941 if test -n "$whole_archive_flag_spec" &&
9942 test yes = "$compiler_needs_object" &&
9943 test -z "$libobjs"; then
9944 # extract the archives, so we have objects to list.
9945 # TODO: could optimize this to just extract one archive.
9946 whole_archive_flag_spec=
9947 fi
9948 if test -n "$whole_archive_flag_spec"; then
9949 save_libobjs=$libobjs
9950 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
9951 test "X$libobjs" = "X " && libobjs=
9952 else
9953 gentop=$output_objdir/${outputname}x
9954 func_append generated " $gentop"
9955
9956 func_extract_archives $gentop $convenience
9957 func_append libobjs " $func_extract_archives_result"
9958 test "X$libobjs" = "X " && libobjs=
9959 fi
9960 fi
9961
9962 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
9963 eval flag=\"$thread_safe_flag_spec\"
9964 func_append linker_flags " $flag"
9965 fi
9966
9967 # Make a backup of the uninstalled library when relinking
9968 if test relink = "$opt_mode"; then
9969 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
9970 fi
9971
9972 # Do each of the archive commands.
9973 if test yes = "$module" && test -n "$module_cmds"; then
9974 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
9975 eval test_cmds=\"$module_expsym_cmds\"
9976 cmds=$module_expsym_cmds
9977 else
9978 eval test_cmds=\"$module_cmds\"
9979 cmds=$module_cmds
9980 fi
9981 else
9982 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
9983 eval test_cmds=\"$archive_expsym_cmds\"
9984 cmds=$archive_expsym_cmds
9985 else
9986 eval test_cmds=\"$archive_cmds\"
9987 cmds=$archive_cmds
9988 fi
9989 fi
9990
9991 if test : != "$skipped_export" &&
9992 func_len " $test_cmds" &&
9993 len=$func_len_result &&
9994 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9995 :
9996 else
9997 # The command line is too long to link in one step, link piecewise
9998 # or, if using GNU ld and skipped_export is not :, use a linker
9999 # script.
10000
10001 # Save the value of $output and $libobjs because we want to
10002 # use them later. If we have whole_archive_flag_spec, we
10003 # want to use save_libobjs as it was before
10004 # whole_archive_flag_spec was expanded, because we can't
10005 # assume the linker understands whole_archive_flag_spec.
10006 # This may have to be revisited, in case too many
10007 # convenience libraries get linked in and end up exceeding
10008 # the spec.
10009 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
10010 save_libobjs=$libobjs
10011 fi
10012 save_output=$output
10013 func_basename "$output"
10014 output_la=$func_basename_result
10015
10016 # Clear the reloadable object creation command queue and
10017 # initialize k to one.
10018 test_cmds=
10019 concat_cmds=
10020 objlist=
10021 last_robj=
10022 k=1
10023
10024 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
10025 output=$output_objdir/$output_la.lnkscript
10026 func_verbose "creating GNU ld script: $output"
10027 echo 'INPUT (' > $output
10028 for obj in $save_libobjs
10029 do
10030 func_to_tool_file "$obj"
10031 $ECHO "$func_to_tool_file_result" >> $output
10032 done
10033 echo ')' >> $output
10034 func_append delfiles " $output"
10035 func_to_tool_file "$output"
10036 output=$func_to_tool_file_result
10037 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
10038 output=$output_objdir/$output_la.lnk
10039 func_verbose "creating linker input file list: $output"
10040 : > $output
10041 set x $save_libobjs
10042 shift
10043 firstobj=
10044 if test yes = "$compiler_needs_object"; then
10045 firstobj="$1 "
10046 shift
10047 fi
10048 for obj
10049 do
10050 func_to_tool_file "$obj"
10051 $ECHO "$func_to_tool_file_result" >> $output
10052 done
10053 func_append delfiles " $output"
10054 func_to_tool_file "$output"
10055 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
10056 else
10057 if test -n "$save_libobjs"; then
10058 func_verbose "creating reloadable object files..."
10059 output=$output_objdir/$output_la-$k.$objext
10060 eval test_cmds=\"$reload_cmds\"
10061 func_len " $test_cmds"
10062 len0=$func_len_result
10063 len=$len0
10064
10065 # Loop over the list of objects to be linked.
10066 for obj in $save_libobjs
10067 do
10068 func_len " $obj"
10069 func_arith $len + $func_len_result
10070 len=$func_arith_result
10071 if test -z "$objlist" ||
10072 test "$len" -lt "$max_cmd_len"; then
10073 func_append objlist " $obj"
10074 else
10075 # The command $test_cmds is almost too long, add a
10076 # command to the queue.
10077 if test 1 -eq "$k"; then
10078 # The first file doesn't have a previous command to add.
10079 reload_objs=$objlist
10080 eval concat_cmds=\"$reload_cmds\"
10081 else
10082 # All subsequent reloadable object files will link in
10083 # the last one created.
10084 reload_objs="$objlist $last_robj"
10085 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
10086 fi
10087 last_robj=$output_objdir/$output_la-$k.$objext
10088 func_arith $k + 1
10089 k=$func_arith_result
10090 output=$output_objdir/$output_la-$k.$objext
10091 objlist=" $obj"
10092 func_len " $last_robj"
10093 func_arith $len0 + $func_len_result
10094 len=$func_arith_result
10095 fi
10096 done
10097 # Handle the remaining objects by creating one last
10098 # reloadable object file. All subsequent reloadable object
10099 # files will link in the last one created.
10100 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10101 reload_objs="$objlist $last_robj"
10102 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
10103 if test -n "$last_robj"; then
10104 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
10105 fi
10106 func_append delfiles " $output"
10107
10108 else
10109 output=
10110 fi
10111
10112 ${skipped_export-false} && {
10113 func_verbose "generating symbol list for '$libname.la'"
10114 export_symbols=$output_objdir/$libname.exp
10115 $opt_dry_run || $RM $export_symbols
10116 libobjs=$output
10117 # Append the command to create the export file.
10118 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10119 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
10120 if test -n "$last_robj"; then
10121 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
10122 fi
10123 }
10124
10125 test -n "$save_libobjs" &&
10126 func_verbose "creating a temporary reloadable object file: $output"
10127
10128 # Loop through the commands generated above and execute them.
10129 save_ifs=$IFS; IFS='~'
10130 for cmd in $concat_cmds; do
10131 IFS=$save_ifs
10132 $opt_quiet || {
10133 func_quote_arg expand,pretty "$cmd"
10134 eval "func_echo $func_quote_arg_result"
10135 }
10136 $opt_dry_run || eval "$cmd" || {
10137 lt_exit=$?
10138
10139 # Restore the uninstalled library and exit
10140 if test relink = "$opt_mode"; then
10141 ( cd "$output_objdir" && \
10142 $RM "${realname}T" && \
10143 $MV "${realname}U" "$realname" )
10144 fi
10145
10146 exit $lt_exit
10147 }
10148 done
10149 IFS=$save_ifs
10150
10151 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
10152 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
10153 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
10154 fi
10155 fi
10156
10157 ${skipped_export-false} && {
10158 if test -n "$export_symbols" && test -n "$include_expsyms"; then
10159 tmp_export_symbols=$export_symbols
10160 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
10161 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
10162 fi
10163
10164 if test -n "$orig_export_symbols"; then
10165 # The given exports_symbols file has to be filtered, so filter it.
10166 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
10167 # FIXME: $output_objdir/$libname.filter potentially contains lots of
10168 # 's' commands, which not all seds can handle. GNU sed should be fine
10169 # though. Also, the filter scales superlinearly with the number of
10170 # global variables. join(1) would be nice here, but unfortunately
10171 # isn't a blessed tool.
10172 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
10173 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
10174 export_symbols=$output_objdir/$libname.def
10175 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
10176 fi
10177 }
10178
10179 libobjs=$output
10180 # Restore the value of output.
10181 output=$save_output
10182
10183 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
10184 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
10185 test "X$libobjs" = "X " && libobjs=
10186 fi
10187 # Expand the library linking commands again to reset the
10188 # value of $libobjs for piecewise linking.
10189
10190 # Do each of the archive commands.
10191 if test yes = "$module" && test -n "$module_cmds"; then
10192 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10193 cmds=$module_expsym_cmds
10194 else
10195 cmds=$module_cmds
10196 fi
10197 else
10198 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10199 cmds=$archive_expsym_cmds
10200 else
10201 cmds=$archive_cmds
10202 fi
10203 fi
10204 fi
10205
10206 if test -n "$delfiles"; then
10207 # Append the command to remove temporary files to $cmds.
10208 eval cmds=\"\$cmds~\$RM $delfiles\"
10209 fi
10210
10211 # Add any objects from preloaded convenience libraries
10212 if test -n "$dlprefiles"; then
10213 gentop=$output_objdir/${outputname}x
10214 func_append generated " $gentop"
10215
10216 func_extract_archives $gentop $dlprefiles
10217 func_append libobjs " $func_extract_archives_result"
10218 test "X$libobjs" = "X " && libobjs=
10219 fi
10220
10221 save_ifs=$IFS; IFS='~'
10222 for cmd in $cmds; do
10223 IFS=$sp$nl
10224 eval cmd=\"$cmd\"
10225 IFS=$save_ifs
10226 $opt_quiet || {
10227 func_quote_arg expand,pretty "$cmd"
10228 eval "func_echo $func_quote_arg_result"
10229 }
10230 $opt_dry_run || eval "$cmd" || {
10231 lt_exit=$?
10232
10233 # Restore the uninstalled library and exit
10234 if test relink = "$opt_mode"; then
10235 ( cd "$output_objdir" && \
10236 $RM "${realname}T" && \
10237 $MV "${realname}U" "$realname" )
10238 fi
10239
10240 exit $lt_exit
10241 }
10242 done
10243 IFS=$save_ifs
10244
10245 # Restore the uninstalled library and exit
10246 if test relink = "$opt_mode"; then
10247 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
10248
10249 if test -n "$convenience"; then
10250 if test -z "$whole_archive_flag_spec"; then
10251 func_show_eval '${RM}r "$gentop"'
10252 fi
10253 fi
10254
10255 exit $EXIT_SUCCESS
10256 fi
10257
10258 # Create links to the real library.
10259 for linkname in $linknames; do
10260 if test "$realname" != "$linkname"; then
10261 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
10262 fi
10263 done
10264
10265 # If -module or -export-dynamic was specified, set the dlname.
10266 if test yes = "$module" || test yes = "$export_dynamic"; then
10267 # On all known operating systems, these are identical.
10268 dlname=$soname
10269 fi
10270 fi
10271 ;;
10272
10273 obj)
10274 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10275 func_warning "'-dlopen' is ignored for objects"
10276 fi
10277
10278 case " $deplibs" in
10279 *\ -l* | *\ -L*)
10280 func_warning "'-l' and '-L' are ignored for objects" ;;
10281 esac
10282
10283 test -n "$rpath" && \
10284 func_warning "'-rpath' is ignored for objects"
10285
10286 test -n "$xrpath" && \
10287 func_warning "'-R' is ignored for objects"
10288
10289 test -n "$vinfo" && \
10290 func_warning "'-version-info' is ignored for objects"
10291
10292 test -n "$release" && \
10293 func_warning "'-release' is ignored for objects"
10294
10295 case $output in
10296 *.lo)
10297 test -n "$objs$old_deplibs" && \
10298 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10299
10300 libobj=$output
10301 func_lo2o "$libobj"
10302 obj=$func_lo2o_result
10303 ;;
10304 *)
10305 libobj=
10306 obj=$output
10307 ;;
10308 esac
10309
10310 # Delete the old objects.
10311 $opt_dry_run || $RM $obj $libobj
10312
10313 # Objects from convenience libraries. This assumes
10314 # single-version convenience libraries. Whenever we create
10315 # different ones for PIC/non-PIC, this we'll have to duplicate
10316 # the extraction.
10317 reload_conv_objs=
10318 gentop=
10319 # if reload_cmds runs $LD directly, get rid of -Wl from
10320 # whole_archive_flag_spec and hope we can get by with turning comma
10321 # into space.
10322 case $reload_cmds in
10323 *\$LD[\ \$]*) wl= ;;
10324 esac
10325 if test -n "$convenience"; then
10326 if test -n "$whole_archive_flag_spec"; then
10327 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
10328 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10329 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
10330 else
10331 gentop=$output_objdir/${obj}x
10332 func_append generated " $gentop"
10333
10334 func_extract_archives $gentop $convenience
10335 reload_conv_objs="$reload_objs $func_extract_archives_result"
10336 fi
10337 fi
10338
10339 # If we're not building shared, we need to use non_pic_objs
10340 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
10341
10342 # Create the old-style object.
10343 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10344
10345 output=$obj
10346 func_execute_cmds "$reload_cmds" 'exit $?'
10347
10348 # Exit if we aren't doing a library object file.
10349 if test -z "$libobj"; then
10350 if test -n "$gentop"; then
10351 func_show_eval '${RM}r "$gentop"'
10352 fi
10353
10354 exit $EXIT_SUCCESS
10355 fi
10356
10357 test yes = "$build_libtool_libs" || {
10358 if test -n "$gentop"; then
10359 func_show_eval '${RM}r "$gentop"'
10360 fi
10361
10362 # Create an invalid libtool object if no PIC, so that we don't
10363 # accidentally link it into a program.
10364 # $show "echo timestamp > $libobj"
10365 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
10366 exit $EXIT_SUCCESS
10367 }
10368
10369 if test -n "$pic_flag" || test default != "$pic_mode"; then
10370 # Only do commands if we really have different PIC objects.
10371 reload_objs="$libobjs $reload_conv_objs"
10372 output=$libobj
10373 func_execute_cmds "$reload_cmds" 'exit $?'
10374 fi
10375
10376 if test -n "$gentop"; then
10377 func_show_eval '${RM}r "$gentop"'
10378 fi
10379
10380 exit $EXIT_SUCCESS
10381 ;;
10382
10383 prog)
10384 case $host in
10385 *cygwin*) func_stripname '' '.exe' "$output"
10386 output=$func_stripname_result.exe;;
10387 esac
10388 test -n "$vinfo" && \
10389 func_warning "'-version-info' is ignored for programs"
10390
10391 test -n "$release" && \
10392 func_warning "'-release' is ignored for programs"
10393
10394 $preload \
10395 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10396 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
10397
10398 case $host in
10399 *-*-rhapsody* | *-*-darwin1.[012])
10400 # On Rhapsody replace the C library is the System framework
10401 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10402 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10403 ;;
10404 esac
10405
10406 case $host in
10407 *-*-darwin*)
10408 # Don't allow lazy linking, it breaks C++ global constructors
10409 # But is supposedly fixed on 10.4 or later (yay!).
10410 if test CXX = "$tagname"; then
10411 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10412 10.[0123])
10413 func_append compile_command " $wl-bind_at_load"
10414 func_append finalize_command " $wl-bind_at_load"
10415 ;;
10416 esac
10417 fi
10418 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10419 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10420 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10421 ;;
10422 esac
10423
10424
10425 # move library search paths that coincide with paths to not yet
10426 # installed libraries to the beginning of the library search list
10427 new_libs=
10428 for path in $notinst_path; do
10429 case " $new_libs " in
10430 *" -L$path/$objdir "*) ;;
10431 *)
10432 case " $compile_deplibs " in
10433 *" -L$path/$objdir "*)
10434 func_append new_libs " -L$path/$objdir" ;;
10435 esac
10436 ;;
10437 esac
10438 done
10439 for deplib in $compile_deplibs; do
10440 case $deplib in
10441 -L*)
10442 case " $new_libs " in
10443 *" $deplib "*) ;;
10444 *) func_append new_libs " $deplib" ;;
10445 esac
10446 ;;
10447 *) func_append new_libs " $deplib" ;;
10448 esac
10449 done
10450 compile_deplibs=$new_libs
10451
10452
10453 func_append compile_command " $compile_deplibs"
10454 func_append finalize_command " $finalize_deplibs"
10455
10456 if test -n "$rpath$xrpath"; then
10457 # If the user specified any rpath flags, then add them.
10458 for libdir in $rpath $xrpath; do
10459 # This is the magic to use -rpath.
10460 case "$finalize_rpath " in
10461 *" $libdir "*) ;;
10462 *) func_append finalize_rpath " $libdir" ;;
10463 esac
10464 done
10465 fi
10466
10467 # Now hardcode the library paths
10468 rpath=
10469 hardcode_libdirs=
10470 for libdir in $compile_rpath $finalize_rpath; do
10471 if test -n "$hardcode_libdir_flag_spec"; then
10472 if test -n "$hardcode_libdir_separator"; then
10473 if test -z "$hardcode_libdirs"; then
10474 hardcode_libdirs=$libdir
10475 else
10476 # Just accumulate the unique libdirs.
10477 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
10478 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
10479 ;;
10480 *)
10481 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
10482 ;;
10483 esac
10484 fi
10485 else
10486 eval flag=\"$hardcode_libdir_flag_spec\"
10487 func_append rpath " $flag"
10488 fi
10489 elif test -n "$runpath_var"; then
10490 case "$perm_rpath " in
10491 *" $libdir "*) ;;
10492 *) func_append perm_rpath " $libdir" ;;
10493 esac
10494 fi
10495 case $host in
10496 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10497 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10498 case :$dllsearchpath: in
10499 *":$libdir:"*) ;;
10500 ::) dllsearchpath=$libdir;;
10501 *) func_append dllsearchpath ":$libdir";;
10502 esac
10503 case :$dllsearchpath: in
10504 *":$testbindir:"*) ;;
10505 ::) dllsearchpath=$testbindir;;
10506 *) func_append dllsearchpath ":$testbindir";;
10507 esac
10508 ;;
10509 esac
10510 done
10511 # Substitute the hardcoded libdirs into the rpath.
10512 if test -n "$hardcode_libdir_separator" &&
10513 test -n "$hardcode_libdirs"; then
10514 libdir=$hardcode_libdirs
10515 eval rpath=\" $hardcode_libdir_flag_spec\"
10516 fi
10517 compile_rpath=$rpath
10518
10519 rpath=
10520 hardcode_libdirs=
10521 for libdir in $finalize_rpath; do
10522 if test -n "$hardcode_libdir_flag_spec"; then
10523 if test -n "$hardcode_libdir_separator"; then
10524 if test -z "$hardcode_libdirs"; then
10525 hardcode_libdirs=$libdir
10526 else
10527 # Just accumulate the unique libdirs.
10528 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
10529 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
10530 ;;
10531 *)
10532 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
10533 ;;
10534 esac
10535 fi
10536 else
10537 eval flag=\"$hardcode_libdir_flag_spec\"
10538 func_append rpath " $flag"
10539 fi
10540 elif test -n "$runpath_var"; then
10541 case "$finalize_perm_rpath " in
10542 *" $libdir "*) ;;
10543 *) func_append finalize_perm_rpath " $libdir" ;;
10544 esac
10545 fi
10546 done
10547 # Substitute the hardcoded libdirs into the rpath.
10548 if test -n "$hardcode_libdir_separator" &&
10549 test -n "$hardcode_libdirs"; then
10550 libdir=$hardcode_libdirs
10551 eval rpath=\" $hardcode_libdir_flag_spec\"
10552 fi
10553 finalize_rpath=$rpath
10554
10555 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10556 # Transform all the library objects into standard objects.
10557 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
10558 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
10559 fi
10560
10561 func_generate_dlsyms "$outputname" "@PROGRAM@" false
10562
10563 # template prelinking step
10564 if test -n "$prelink_cmds"; then
10565 func_execute_cmds "$prelink_cmds" 'exit $?'
10566 fi
10567
10568 wrappers_required=:
10569 case $host in
10570 *cegcc* | *mingw32ce*)
10571 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
10572 wrappers_required=false
10573 ;;
10574 *cygwin* | *mingw* )
10575 test yes = "$build_libtool_libs" || wrappers_required=false
10576 ;;
10577 *)
10578 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10579 wrappers_required=false
10580 fi
10581 ;;
10582 esac
10583 $wrappers_required || {
10584 # Replace the output file specification.
10585 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
10586 link_command=$compile_command$compile_rpath
10587
10588 # We have no uninstalled library dependencies, so finalize right now.
10589 exit_status=0
10590 func_show_eval "$link_command" 'exit_status=$?'
10591
10592 if test -n "$postlink_cmds"; then
10593 func_to_tool_file "$output"
10594 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
10595 func_execute_cmds "$postlink_cmds" 'exit $?'
10596 fi
10597
10598 # Delete the generated files.
10599 if test -f "$output_objdir/${outputname}S.$objext"; then
10600 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
10601 fi
10602
10603 exit $exit_status
10604 }
10605
10606 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10607 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
10608 fi
10609 if test -n "$finalize_shlibpath"; then
10610 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
10611 fi
10612
10613 compile_var=
10614 finalize_var=
10615 if test -n "$runpath_var"; then
10616 if test -n "$perm_rpath"; then
10617 # We should set the runpath_var.
10618 rpath=
10619 for dir in $perm_rpath; do
10620 func_append rpath "$dir:"
10621 done
10622 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
10623 fi
10624 if test -n "$finalize_perm_rpath"; then
10625 # We should set the runpath_var.
10626 rpath=
10627 for dir in $finalize_perm_rpath; do
10628 func_append rpath "$dir:"
10629 done
10630 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
10631 fi
10632 fi
10633
10634 if test yes = "$no_install"; then
10635 # We don't need to create a wrapper script.
10636 link_command=$compile_var$compile_command$compile_rpath
10637 # Replace the output file specification.
10638 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
10639 # Delete the old output file.
10640 $opt_dry_run || $RM $output
10641 # Link the executable and exit
10642 func_show_eval "$link_command" 'exit $?'
10643
10644 if test -n "$postlink_cmds"; then
10645 func_to_tool_file "$output"
10646 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
10647 func_execute_cmds "$postlink_cmds" 'exit $?'
10648 fi
10649
10650 exit $EXIT_SUCCESS
10651 fi
10652
10653 case $hardcode_action,$fast_install in
10654 relink,*)
10655 # Fast installation is not supported
10656 link_command=$compile_var$compile_command$compile_rpath
10657 relink_command=$finalize_var$finalize_command$finalize_rpath
10658
10659 func_warning "this platform does not like uninstalled shared libraries"
10660 func_warning "'$output' will be relinked during installation"
10661 ;;
10662 *,yes)
10663 link_command=$finalize_var$compile_command$finalize_rpath
10664 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10665 ;;
10666 *,no)
10667 link_command=$compile_var$compile_command$compile_rpath
10668 relink_command=$finalize_var$finalize_command$finalize_rpath
10669 ;;
10670 *,needless)
10671 link_command=$finalize_var$compile_command$finalize_rpath
10672 relink_command=
10673 ;;
10674 esac
10675
10676 # Replace the output file specification.
10677 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
10678
10679 # Delete the old output files.
10680 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10681
10682 func_show_eval "$link_command" 'exit $?'
10683
10684 if test -n "$postlink_cmds"; then
10685 func_to_tool_file "$output_objdir/$outputname"
10686 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
10687 func_execute_cmds "$postlink_cmds" 'exit $?'
10688 fi
10689
10690 # Now create the wrapper script.
10691 func_verbose "creating $output"
10692
10693 # Quote the relink command for shipping.
10694 if test -n "$relink_command"; then
10695 # Preserve any variables that may affect compiler behavior
10696 for var in $variables_saved_for_relink; do
10697 if eval test -z \"\${$var+set}\"; then
10698 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
10699 elif eval var_value=\$$var; test -z "$var_value"; then
10700 relink_command="$var=; export $var; $relink_command"
10701 else
10702 func_quote_arg pretty "$var_value"
10703 relink_command="$var=$func_quote_arg_result; export $var; $relink_command"
10704 fi
10705 done
10706 func_quote_arg pretty,unquoted "(cd `pwd`; $relink_command)"
10707 relink_command=$func_quote_arg_unquoted_result
10708 fi
10709
10710 # Only actually do things if not in dry run mode.
10711 $opt_dry_run || {
10712 # win32 will think the script is a binary if it has
10713 # a .exe suffix, so we strip it off here.
10714 case $output in
10715 *.exe) func_stripname '' '.exe' "$output"
10716 output=$func_stripname_result ;;
10717 esac
10718 # test for cygwin because mv fails w/o .exe extensions
10719 case $host in
10720 *cygwin*)
10721 exeext=.exe
10722 func_stripname '' '.exe' "$outputname"
10723 outputname=$func_stripname_result ;;
10724 *) exeext= ;;
10725 esac
10726 case $host in
10727 *cygwin* | *mingw* )
10728 func_dirname_and_basename "$output" "" "."
10729 output_name=$func_basename_result
10730 output_path=$func_dirname_result
10731 cwrappersource=$output_path/$objdir/lt-$output_name.c
10732 cwrapper=$output_path/$output_name.exe
10733 $RM $cwrappersource $cwrapper
10734 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
10735
10736 func_emit_cwrapperexe_src > $cwrappersource
10737
10738 # The wrapper executable is built using the $host compiler,
10739 # because it contains $host paths and files. If cross-
10740 # compiling, it, like the target executable, must be
10741 # executed on the $host or under an emulation environment.
10742 $opt_dry_run || {
10743 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10744 $STRIP $cwrapper
10745 }
10746
10747 # Now, create the wrapper script for func_source use:
10748 func_ltwrapper_scriptname $cwrapper
10749 $RM $func_ltwrapper_scriptname_result
10750 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
10751 $opt_dry_run || {
10752 # note: this script will not be executed, so do not chmod.
10753 if test "x$build" = "x$host"; then
10754 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10755 else
10756 func_emit_wrapper no > $func_ltwrapper_scriptname_result
10757 fi
10758 }
10759 ;;
10760 * )
10761 $RM $output
10762 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
10763
10764 func_emit_wrapper no > $output
10765 chmod +x $output
10766 ;;
10767 esac
10768 }
10769 exit $EXIT_SUCCESS
10770 ;;
10771 esac
10772
10773 # See if we need to build an old-fashioned archive.
10774 for oldlib in $oldlibs; do
10775
10776 case $build_libtool_libs in
10777 convenience)
10778 oldobjs="$libobjs_save $symfileobj"
10779 addlibs=$convenience
10780 build_libtool_libs=no
10781 ;;
10782 module)
10783 oldobjs=$libobjs_save
10784 addlibs=$old_convenience
10785 build_libtool_libs=no
10786 ;;
10787 *)
10788 oldobjs="$old_deplibs $non_pic_objects"
10789 $preload && test -f "$symfileobj" \
10790 && func_append oldobjs " $symfileobj"
10791 addlibs=$old_convenience
10792 ;;
10793 esac
10794
10795 if test -n "$addlibs"; then
10796 gentop=$output_objdir/${outputname}x
10797 func_append generated " $gentop"
10798
10799 func_extract_archives $gentop $addlibs
10800 func_append oldobjs " $func_extract_archives_result"
10801 fi
10802
10803 # Do each command in the archive commands.
10804 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10805 cmds=$old_archive_from_new_cmds
10806 else
10807
10808 # Add any objects from preloaded convenience libraries
10809 if test -n "$dlprefiles"; then
10810 gentop=$output_objdir/${outputname}x
10811 func_append generated " $gentop"
10812
10813 func_extract_archives $gentop $dlprefiles
10814 func_append oldobjs " $func_extract_archives_result"
10815 fi
10816
10817 # POSIX demands no paths to be encoded in archives. We have
10818 # to avoid creating archives with duplicate basenames if we
10819 # might have to extract them afterwards, e.g., when creating a
10820 # static archive out of a convenience library, or when linking
10821 # the entirety of a libtool archive into another (currently
10822 # not supported by libtool).
10823 if (for obj in $oldobjs
10824 do
10825 func_basename "$obj"
10826 $ECHO "$func_basename_result"
10827 done | sort | sort -uc >/dev/null 2>&1); then
10828 :
10829 else
10830 echo "copying selected object files to avoid basename conflicts..."
10831 gentop=$output_objdir/${outputname}x
10832 func_append generated " $gentop"
10833 func_mkdir_p "$gentop"
10834 save_oldobjs=$oldobjs
10835 oldobjs=
10836 counter=1
10837 for obj in $save_oldobjs
10838 do
10839 func_basename "$obj"
10840 objbase=$func_basename_result
10841 case " $oldobjs " in
10842 " ") oldobjs=$obj ;;
10843 *[\ /]"$objbase "*)
10844 while :; do
10845 # Make sure we don't pick an alternate name that also
10846 # overlaps.
10847 newobj=lt$counter-$objbase
10848 func_arith $counter + 1
10849 counter=$func_arith_result
10850 case " $oldobjs " in
10851 *[\ /]"$newobj "*) ;;
10852 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10853 esac
10854 done
10855 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
10856 func_append oldobjs " $gentop/$newobj"
10857 ;;
10858 *) func_append oldobjs " $obj" ;;
10859 esac
10860 done
10861 fi
10862 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
10863 tool_oldlib=$func_to_tool_file_result
10864 eval cmds=\"$old_archive_cmds\"
10865
10866 func_len " $cmds"
10867 len=$func_len_result
10868 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10869 cmds=$old_archive_cmds
10870 elif test -n "$archiver_list_spec"; then
10871 func_verbose "using command file archive linking..."
10872 for obj in $oldobjs
10873 do
10874 func_to_tool_file "$obj"
10875 $ECHO "$func_to_tool_file_result"
10876 done > $output_objdir/$libname.libcmd
10877 func_to_tool_file "$output_objdir/$libname.libcmd"
10878 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
10879 cmds=$old_archive_cmds
10880 else
10881 # the command line is too long to link in one step, link in parts
10882 func_verbose "using piecewise archive linking..."
10883 save_RANLIB=$RANLIB
10884 RANLIB=:
10885 objlist=
10886 concat_cmds=
10887 save_oldobjs=$oldobjs
10888 oldobjs=
10889 # Is there a better way of finding the last object in the list?
10890 for obj in $save_oldobjs
10891 do
10892 last_oldobj=$obj
10893 done
10894 eval test_cmds=\"$old_archive_cmds\"
10895 func_len " $test_cmds"
10896 len0=$func_len_result
10897 len=$len0
10898 for obj in $save_oldobjs
10899 do
10900 func_len " $obj"
10901 func_arith $len + $func_len_result
10902 len=$func_arith_result
10903 func_append objlist " $obj"
10904 if test "$len" -lt "$max_cmd_len"; then
10905 :
10906 else
10907 # the above command should be used before it gets too long
10908 oldobjs=$objlist
10909 if test "$obj" = "$last_oldobj"; then
10910 RANLIB=$save_RANLIB
10911 fi
10912 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10913 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
10914 objlist=
10915 len=$len0
10916 fi
10917 done
10918 RANLIB=$save_RANLIB
10919 oldobjs=$objlist
10920 if test -z "$oldobjs"; then
10921 eval cmds=\"\$concat_cmds\"
10922 else
10923 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
10924 fi
10925 fi
10926 fi
10927 func_execute_cmds "$cmds" 'exit $?'
10928 done
10929
10930 test -n "$generated" && \
10931 func_show_eval "${RM}r$generated"
10932
10933 # Now create the libtool archive.
10934 case $output in
10935 *.la)
10936 old_library=
10937 test yes = "$build_old_libs" && old_library=$libname.$libext
10938 func_verbose "creating $output"
10939
10940 # Preserve any variables that may affect compiler behavior
10941 for var in $variables_saved_for_relink; do
10942 if eval test -z \"\${$var+set}\"; then
10943 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
10944 elif eval var_value=\$$var; test -z "$var_value"; then
10945 relink_command="$var=; export $var; $relink_command"
10946 else
10947 func_quote_arg pretty,unquoted "$var_value"
10948 relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command"
10949 fi
10950 done
10951 # Quote the link command for shipping.
10952 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10953 func_quote_arg pretty,unquoted "$relink_command"
10954 relink_command=$func_quote_arg_unquoted_result
10955 if test yes = "$hardcode_automatic"; then
10956 relink_command=
10957 fi
10958
10959 # Only create the output if not a dry run.
10960 $opt_dry_run || {
10961 for installed in no yes; do
10962 if test yes = "$installed"; then
10963 if test -z "$install_libdir"; then
10964 break
10965 fi
10966 output=$output_objdir/${outputname}i
10967 # Replace all uninstalled libtool libraries with the installed ones
10968 newdependency_libs=
10969 for deplib in $dependency_libs; do
10970 case $deplib in
10971 *.la)
10972 func_basename "$deplib"
10973 name=$func_basename_result
10974 func_resolve_sysroot "$deplib"
10975 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10976 test -z "$libdir" && \
10977 func_fatal_error "'$deplib' is not a valid libtool archive"
10978 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
10979 ;;
10980 -L*)
10981 func_stripname -L '' "$deplib"
10982 func_replace_sysroot "$func_stripname_result"
10983 func_append newdependency_libs " -L$func_replace_sysroot_result"
10984 ;;
10985 -R*)
10986 func_stripname -R '' "$deplib"
10987 func_replace_sysroot "$func_stripname_result"
10988 func_append newdependency_libs " -R$func_replace_sysroot_result"
10989 ;;
10990 *) func_append newdependency_libs " $deplib" ;;
10991 esac
10992 done
10993 dependency_libs=$newdependency_libs
10994 newdlfiles=
10995
10996 for lib in $dlfiles; do
10997 case $lib in
10998 *.la)
10999 func_basename "$lib"
11000 name=$func_basename_result
11001 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11002 test -z "$libdir" && \
11003 func_fatal_error "'$lib' is not a valid libtool archive"
11004 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
11005 ;;
11006 *) func_append newdlfiles " $lib" ;;
11007 esac
11008 done
11009 dlfiles=$newdlfiles
11010 newdlprefiles=
11011 for lib in $dlprefiles; do
11012 case $lib in
11013 *.la)
11014 # Only pass preopened files to the pseudo-archive (for
11015 # eventual linking with the app. that links it) if we
11016 # didn't already link the preopened objects directly into
11017 # the library:
11018 func_basename "$lib"
11019 name=$func_basename_result
11020 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
11021 test -z "$libdir" && \
11022 func_fatal_error "'$lib' is not a valid libtool archive"
11023 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
11024 ;;
11025 esac
11026 done
11027 dlprefiles=$newdlprefiles
11028 else
11029 newdlfiles=
11030 for lib in $dlfiles; do
11031 case $lib in
11032 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11033 *) abs=`pwd`"/$lib" ;;
11034 esac
11035 func_append newdlfiles " $abs"
11036 done
11037 dlfiles=$newdlfiles
11038 newdlprefiles=
11039 for lib in $dlprefiles; do
11040 case $lib in
11041 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
11042 *) abs=`pwd`"/$lib" ;;
11043 esac
11044 func_append newdlprefiles " $abs"
11045 done
11046 dlprefiles=$newdlprefiles
11047 fi
11048 $RM $output
11049 # place dlname in correct position for cygwin
11050 # In fact, it would be nice if we could use this code for all target
11051 # systems that can't hard-code library paths into their executables
11052 # and that have no shared library path variable independent of PATH,
11053 # but it turns out we can't easily determine that from inspecting
11054 # libtool variables, so we have to hard-code the OSs to which it
11055 # applies here; at the moment, that means platforms that use the PE
11056 # object format with DLL files. See the long comment at the top of
11057 # tests/bindir.at for full details.
11058 tdlname=$dlname
11059 case $host,$output,$installed,$module,$dlname in
11060 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
11061 # If a -bindir argument was supplied, place the dll there.
11062 if test -n "$bindir"; then
11063 func_relative_path "$install_libdir" "$bindir"
11064 tdlname=$func_relative_path_result/$dlname
11065 else
11066 # Otherwise fall back on heuristic.
11067 tdlname=../bin/$dlname
11068 fi
11069 ;;
11070 esac
11071 $ECHO > $output "\
11072 # $outputname - a libtool library file
11073 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
11074 #
11075 # Please DO NOT delete this file!
11076 # It is necessary for linking the library.
11077
11078 # The name that we can dlopen(3).
11079 dlname='$tdlname'
11080
11081 # Names of this library.
11082 library_names='$library_names'
11083
11084 # The name of the static archive.
11085 old_library='$old_library'
11086
11087 # Linker flags that cannot go in dependency_libs.
11088 inherited_linker_flags='$new_inherited_linker_flags'
11089
11090 # Libraries that this one depends upon.
11091 dependency_libs='$dependency_libs'
11092
11093 # Names of additional weak libraries provided by this library
11094 weak_library_names='$weak_libs'
11095
11096 # Version information for $libname.
11097 current=$current
11098 age=$age
11099 revision=$revision
11100
11101 # Is this an already installed library?
11102 installed=$installed
11103
11104 # Should we warn about portability when linking against -modules?
11105 shouldnotlink=$module
11106
11107 # Files to dlopen/dlpreopen
11108 dlopen='$dlfiles'
11109 dlpreopen='$dlprefiles'
11110
11111 # Directory that this library needs to be installed in:
11112 libdir='$install_libdir'"
11113 if test no,yes = "$installed,$need_relink"; then
11114 $ECHO >> $output "\
11115 relink_command=\"$relink_command\""
11116 fi
11117 done
11118 }
11119
11120 # Do a symbolic link so that the libtool archive can be found in
11121 # LD_LIBRARY_PATH before the program is installed.
11122 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
11123 ;;
11124 esac
11125 exit $EXIT_SUCCESS
11126 }
11127
11128 if test link = "$opt_mode" || test relink = "$opt_mode"; then
11129 func_mode_link ${1+"$@"}
11130 fi
11131
11132
11133 # func_mode_uninstall arg...
11134 func_mode_uninstall ()
11135 {
11136 $debug_cmd
11137
11138 RM=$nonopt
11139 files=
11140 rmforce=false
11141 exit_status=0
11142
11143 # This variable tells wrapper scripts just to set variables rather
11144 # than running their programs.
11145 libtool_install_magic=$magic
11146
11147 for arg
11148 do
11149 case $arg in
11150 -f) func_append RM " $arg"; rmforce=: ;;
11151 -*) func_append RM " $arg" ;;
11152 *) func_append files " $arg" ;;
11153 esac
11154 done
11155
11156 test -z "$RM" && \
11157 func_fatal_help "you must specify an RM program"
11158
11159 rmdirs=
11160
11161 for file in $files; do
11162 func_dirname "$file" "" "."
11163 dir=$func_dirname_result
11164 if test . = "$dir"; then
11165 odir=$objdir
11166 else
11167 odir=$dir/$objdir
11168 fi
11169 func_basename "$file"
11170 name=$func_basename_result
11171 test uninstall = "$opt_mode" && odir=$dir
11172
11173 # Remember odir for removal later, being careful to avoid duplicates
11174 if test clean = "$opt_mode"; then
11175 case " $rmdirs " in
11176 *" $odir "*) ;;
11177 *) func_append rmdirs " $odir" ;;
11178 esac
11179 fi
11180
11181 # Don't error if the file doesn't exist and rm -f was used.
11182 if { test -L "$file"; } >/dev/null 2>&1 ||
11183 { test -h "$file"; } >/dev/null 2>&1 ||
11184 test -f "$file"; then
11185 :
11186 elif test -d "$file"; then
11187 exit_status=1
11188 continue
11189 elif $rmforce; then
11190 continue
11191 fi
11192
11193 rmfiles=$file
11194
11195 case $name in
11196 *.la)
11197 # Possibly a libtool archive, so verify it.
11198 if func_lalib_p "$file"; then
11199 func_source $dir/$name
11200
11201 # Delete the libtool libraries and symlinks.
11202 for n in $library_names; do
11203 func_append rmfiles " $odir/$n"
11204 done
11205 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11206
11207 case $opt_mode in
11208 clean)
11209 case " $library_names " in
11210 *" $dlname "*) ;;
11211 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11212 esac
11213 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11214 ;;
11215 uninstall)
11216 if test -n "$library_names"; then
11217 # Do each command in the postuninstall commands.
11218 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
11219 fi
11220
11221 if test -n "$old_library"; then
11222 # Do each command in the old_postuninstall commands.
11223 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
11224 fi
11225 # FIXME: should reinstall the best remaining shared library.
11226 ;;
11227 esac
11228 fi
11229 ;;
11230
11231 *.lo)
11232 # Possibly a libtool object, so verify it.
11233 if func_lalib_p "$file"; then
11234
11235 # Read the .lo file
11236 func_source $dir/$name
11237
11238 # Add PIC object to the list of files to remove.
11239 if test -n "$pic_object" && test none != "$pic_object"; then
11240 func_append rmfiles " $dir/$pic_object"
11241 fi
11242
11243 # Add non-PIC object to the list of files to remove.
11244 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11245 func_append rmfiles " $dir/$non_pic_object"
11246 fi
11247 fi
11248 ;;
11249
11250 *)
11251 if test clean = "$opt_mode"; then
11252 noexename=$name
11253 case $file in
11254 *.exe)
11255 func_stripname '' '.exe' "$file"
11256 file=$func_stripname_result
11257 func_stripname '' '.exe' "$name"
11258 noexename=$func_stripname_result
11259 # $file with .exe has already been added to rmfiles,
11260 # add $file without .exe
11261 func_append rmfiles " $file"
11262 ;;
11263 esac
11264 # Do a test to see if this is a libtool program.
11265 if func_ltwrapper_p "$file"; then
11266 if func_ltwrapper_executable_p "$file"; then
11267 func_ltwrapper_scriptname "$file"
11268 relink_command=
11269 func_source $func_ltwrapper_scriptname_result
11270 func_append rmfiles " $func_ltwrapper_scriptname_result"
11271 else
11272 relink_command=
11273 func_source $dir/$noexename
11274 fi
11275
11276 # note $name still contains .exe if it was in $file originally
11277 # as does the version of $file that was added into $rmfiles
11278 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11279 if test yes = "$fast_install" && test -n "$relink_command"; then
11280 func_append rmfiles " $odir/lt-$name"
11281 fi
11282 if test "X$noexename" != "X$name"; then
11283 func_append rmfiles " $odir/lt-$noexename.c"
11284 fi
11285 fi
11286 fi
11287 ;;
11288 esac
11289 func_show_eval "$RM $rmfiles" 'exit_status=1'
11290 done
11291
11292 # Try to remove the $objdir's in the directories where we deleted files
11293 for dir in $rmdirs; do
11294 if test -d "$dir"; then
11295 func_show_eval "rmdir $dir >/dev/null 2>&1"
11296 fi
11297 done
11298
11299 exit $exit_status
11300 }
11301
11302 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11303 func_mode_uninstall ${1+"$@"}
11304 fi
11305
11306 test -z "$opt_mode" && {
11307 help=$generic_help
11308 func_fatal_help "you must specify a MODE"
11309 }
11310
11311 test -z "$exec_cmd" && \
11312 func_fatal_help "invalid operation mode '$opt_mode'"
11313
11314 if test -n "$exec_cmd"; then
11315 eval exec "$exec_cmd"
11316 exit $EXIT_FAILURE
11317 fi
11318
11319 exit $exit_status
11320
11321
11322 # The TAGs below are defined such that we never get into a situation
11323 # where we disable both kinds of libraries. Given conflicting
11324 # choices, we go for a static library, that is the most portable,
11325 # since we can't tell whether shared libraries were disabled because
11326 # the user asked for that or because the platform doesn't support
11327 # them. This is particularly important on AIX, because we don't
11328 # support having both static and shared libraries enabled at the same
11329 # time on that platform, so we default to a shared-only configuration.
11330 # If a disable-shared tag is given, we'll fallback to a static-only
11331 # configuration. But we'll never go from static-only to shared-only.
11332
11333 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11334 build_libtool_libs=no
11335 build_old_libs=yes
11336 # ### END LIBTOOL TAG CONFIG: disable-shared
11337
11338 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11339 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
11340 # ### END LIBTOOL TAG CONFIG: disable-static
11341
11342 # Local Variables:
11343 # mode:shell-script
11344 # sh-indentation:2
11345 # End:
+0
-459
m4/Makefile.in less more
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 VPATH = @srcdir@
16 am__is_gnu_make = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
27 am__make_running_with_option = \
28 case $${target_option-} in \
29 ?) ;; \
30 *) echo "am__make_running_with_option: internal error: invalid" \
31 "target option '$${target_option-}' specified" >&2; \
32 exit 1;; \
33 esac; \
34 has_opt=no; \
35 sane_makeflags=$$MAKEFLAGS; \
36 if $(am__is_gnu_make); then \
37 sane_makeflags=$$MFLAGS; \
38 else \
39 case $$MAKEFLAGS in \
40 *\\[\ \ ]*) \
41 bs=\\; \
42 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
43 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
44 esac; \
45 fi; \
46 skip_next=no; \
47 strip_trailopt () \
48 { \
49 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
50 }; \
51 for flg in $$sane_makeflags; do \
52 test $$skip_next = yes && { skip_next=no; continue; }; \
53 case $$flg in \
54 *=*|--*) continue;; \
55 -*I) strip_trailopt 'I'; skip_next=yes;; \
56 -*I?*) strip_trailopt 'I';; \
57 -*O) strip_trailopt 'O'; skip_next=yes;; \
58 -*O?*) strip_trailopt 'O';; \
59 -*l) strip_trailopt 'l'; skip_next=yes;; \
60 -*l?*) strip_trailopt 'l';; \
61 -[dEDm]) skip_next=yes;; \
62 -[JT]) skip_next=yes;; \
63 esac; \
64 case $$flg in \
65 *$$target_option*) has_opt=yes; break;; \
66 esac; \
67 done; \
68 test $$has_opt = yes
69 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
70 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
71 pkgdatadir = $(datadir)/@PACKAGE@
72 pkgincludedir = $(includedir)/@PACKAGE@
73 pkglibdir = $(libdir)/@PACKAGE@
74 pkglibexecdir = $(libexecdir)/@PACKAGE@
75 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
76 install_sh_DATA = $(install_sh) -c -m 644
77 install_sh_PROGRAM = $(install_sh) -c
78 install_sh_SCRIPT = $(install_sh) -c
79 INSTALL_HEADER = $(INSTALL_DATA)
80 transform = $(program_transform_name)
81 NORMAL_INSTALL = :
82 PRE_INSTALL = :
83 POST_INSTALL = :
84 NORMAL_UNINSTALL = :
85 PRE_UNINSTALL = :
86 POST_UNINSTALL = :
87 build_triplet = @build@
88 host_triplet = @host@
89 subdir = m4
90 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
91 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_osx_pkg.m4 \
92 $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
93 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
94 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
95 $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
96 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
97 $(ACLOCAL_M4)
98 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
99 mkinstalldirs = $(install_sh) -d
100 CONFIG_HEADER = $(top_builddir)/config.h
101 CONFIG_CLEAN_FILES =
102 CONFIG_CLEAN_VPATH_FILES =
103 AM_V_P = $(am__v_P_@AM_V@)
104 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
105 am__v_P_0 = false
106 am__v_P_1 = :
107 AM_V_GEN = $(am__v_GEN_@AM_V@)
108 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
109 am__v_GEN_0 = @echo " GEN " $@;
110 am__v_GEN_1 =
111 AM_V_at = $(am__v_at_@AM_V@)
112 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
113 am__v_at_0 = @
114 am__v_at_1 =
115 SOURCES =
116 DIST_SOURCES =
117 am__can_run_installinfo = \
118 case $$AM_UPDATE_INFO_DIR in \
119 n|no|NO) false;; \
120 *) (install-info --version) >/dev/null 2>&1;; \
121 esac
122 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
123 am__DIST_COMMON = $(srcdir)/Makefile.in
124 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
125 ACLOCAL = @ACLOCAL@
126 AMTAR = @AMTAR@
127 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
128 AR = @AR@
129 AUTOCONF = @AUTOCONF@
130 AUTOHEADER = @AUTOHEADER@
131 AUTOMAKE = @AUTOMAKE@
132 AWK = @AWK@
133 CC = @CC@
134 CCDEPMODE = @CCDEPMODE@
135 CFLAGS = @CFLAGS@
136 CPP = @CPP@
137 CPPFLAGS = @CPPFLAGS@
138 CXX = @CXX@
139 CXXCPP = @CXXCPP@
140 CXXDEPMODE = @CXXDEPMODE@
141 CXXFLAGS = @CXXFLAGS@
142 CYGPATH_W = @CYGPATH_W@
143 DEFS = @DEFS@
144 DEPDIR = @DEPDIR@
145 DLLTOOL = @DLLTOOL@
146 DSYMUTIL = @DSYMUTIL@
147 DUMPBIN = @DUMPBIN@
148 ECHO_C = @ECHO_C@
149 ECHO_N = @ECHO_N@
150 ECHO_T = @ECHO_T@
151 EGREP = @EGREP@
152 EXEEXT = @EXEEXT@
153 FGREP = @FGREP@
154 GREP = @GREP@
155 ICU_CFLAGS = @ICU_CFLAGS@
156 ICU_LIBS = @ICU_LIBS@
157 INSTALL = @INSTALL@
158 INSTALL_DATA = @INSTALL_DATA@
159 INSTALL_PROGRAM = @INSTALL_PROGRAM@
160 INSTALL_SCRIPT = @INSTALL_SCRIPT@
161 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
162 LD = @LD@
163 LDFLAGS = @LDFLAGS@
164 LIBOBJS = @LIBOBJS@
165 LIBS = @LIBS@
166 LIBTOOL = @LIBTOOL@
167 LIPO = @LIPO@
168 LN_S = @LN_S@
169 LTLIBOBJS = @LTLIBOBJS@
170 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
171 MAKEINFO = @MAKEINFO@
172 MANIFEST_TOOL = @MANIFEST_TOOL@
173 MKDIR_P = @MKDIR_P@
174 NM = @NM@
175 NMEDIT = @NMEDIT@
176 OBJDUMP = @OBJDUMP@
177 OBJEXT = @OBJEXT@
178 OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
179 OTOOL = @OTOOL@
180 OTOOL64 = @OTOOL64@
181 PACKAGE = @PACKAGE@
182 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
183 PACKAGE_NAME = @PACKAGE_NAME@
184 PACKAGE_STRING = @PACKAGE_STRING@
185 PACKAGE_TARNAME = @PACKAGE_TARNAME@
186 PACKAGE_URL = @PACKAGE_URL@
187 PACKAGE_VERSION = @PACKAGE_VERSION@
188 PATH_SEPARATOR = @PATH_SEPARATOR@
189 PKG_CONFIG = @PKG_CONFIG@
190 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
191 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
192 PTHREAD_CC = @PTHREAD_CC@
193 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
194 PTHREAD_LIBS = @PTHREAD_LIBS@
195 RANLIB = @RANLIB@
196 SED = @SED@
197 SET_MAKE = @SET_MAKE@
198 SHELL = @SHELL@
199 STRIP = @STRIP@
200 VERSION = @VERSION@
201 XML2_CFLAGS = @XML2_CFLAGS@
202 XML2_LIBS = @XML2_LIBS@
203 abs_builddir = @abs_builddir@
204 abs_srcdir = @abs_srcdir@
205 abs_top_builddir = @abs_top_builddir@
206 abs_top_srcdir = @abs_top_srcdir@
207 ac_ct_AR = @ac_ct_AR@
208 ac_ct_CC = @ac_ct_CC@
209 ac_ct_CXX = @ac_ct_CXX@
210 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
211 am__include = @am__include@
212 am__leading_dot = @am__leading_dot@
213 am__quote = @am__quote@
214 am__tar = @am__tar@
215 am__untar = @am__untar@
216 ax_pthread_config = @ax_pthread_config@
217 bindir = @bindir@
218 build = @build@
219 build_alias = @build_alias@
220 build_cpu = @build_cpu@
221 build_os = @build_os@
222 build_vendor = @build_vendor@
223 builddir = @builddir@
224 datadir = @datadir@
225 datarootdir = @datarootdir@
226 docdir = @docdir@
227 dvidir = @dvidir@
228 exec_prefix = @exec_prefix@
229 host = @host@
230 host_alias = @host_alias@
231 host_cpu = @host_cpu@
232 host_os = @host_os@
233 host_vendor = @host_vendor@
234 htmldir = @htmldir@
235 includedir = @includedir@
236 infodir = @infodir@
237 install_sh = @install_sh@
238 libdir = @libdir@
239 libexecdir = @libexecdir@
240 localedir = @localedir@
241 localstatedir = @localstatedir@
242 mandir = @mandir@
243 mkdir_p = @mkdir_p@
244 oldincludedir = @oldincludedir@
245 pdfdir = @pdfdir@
246 prefix = @prefix@
247 program_transform_name = @program_transform_name@
248 psdir = @psdir@
249 runstatedir = @runstatedir@
250 sbindir = @sbindir@
251 sharedstatedir = @sharedstatedir@
252 srcdir = @srcdir@
253 sysconfdir = @sysconfdir@
254 target_alias = @target_alias@
255 ticcutils_CFLAGS = @ticcutils_CFLAGS@
256 ticcutils_LIBS = @ticcutils_LIBS@
257 top_build_prefix = @top_build_prefix@
258 top_builddir = @top_builddir@
259 top_srcdir = @top_srcdir@
260 extra_DIST = ac_osx_pkg.m4
261 all: all-am
262
263 .SUFFIXES:
264 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
265 @for dep in $?; do \
266 case '$(am__configure_deps)' in \
267 *$$dep*) \
268 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
269 && { if test -f $@; then exit 0; else break; fi; }; \
270 exit 1;; \
271 esac; \
272 done; \
273 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign m4/Makefile'; \
274 $(am__cd) $(top_srcdir) && \
275 $(AUTOMAKE) --foreign m4/Makefile
276 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
277 @case '$?' in \
278 *config.status*) \
279 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
280 *) \
281 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
282 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
283 esac;
284
285 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
286 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
287
288 $(top_srcdir)/configure: $(am__configure_deps)
289 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
290 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
291 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
292 $(am__aclocal_m4_deps):
293
294 mostlyclean-libtool:
295 -rm -f *.lo
296
297 clean-libtool:
298 -rm -rf .libs _libs
299 tags TAGS:
300
301 ctags CTAGS:
302
303 cscope cscopelist:
304
305
306 distdir: $(BUILT_SOURCES)
307 $(MAKE) $(AM_MAKEFLAGS) distdir-am
308
309 distdir-am: $(DISTFILES)
310 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
311 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
312 list='$(DISTFILES)'; \
313 dist_files=`for file in $$list; do echo $$file; done | \
314 sed -e "s|^$$srcdirstrip/||;t" \
315 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
316 case $$dist_files in \
317 */*) $(MKDIR_P) `echo "$$dist_files" | \
318 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
319 sort -u` ;; \
320 esac; \
321 for file in $$dist_files; do \
322 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
323 if test -d $$d/$$file; then \
324 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
325 if test -d "$(distdir)/$$file"; then \
326 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
327 fi; \
328 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
329 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
330 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
331 fi; \
332 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
333 else \
334 test -f "$(distdir)/$$file" \
335 || cp -p $$d/$$file "$(distdir)/$$file" \
336 || exit 1; \
337 fi; \
338 done
339 check-am: all-am
340 check: check-am
341 all-am: Makefile
342 installdirs:
343 install: install-am
344 install-exec: install-exec-am
345 install-data: install-data-am
346 uninstall: uninstall-am
347
348 install-am: all-am
349 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
350
351 installcheck: installcheck-am
352 install-strip:
353 if test -z '$(STRIP)'; then \
354 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
355 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
356 install; \
357 else \
358 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
359 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
360 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
361 fi
362 mostlyclean-generic:
363
364 clean-generic:
365
366 distclean-generic:
367 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
368 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
369
370 maintainer-clean-generic:
371 @echo "This command is intended for maintainers to use"
372 @echo "it deletes files that may require special tools to rebuild."
373 clean: clean-am
374
375 clean-am: clean-generic clean-libtool mostlyclean-am
376
377 distclean: distclean-am
378 -rm -f Makefile
379 distclean-am: clean-am distclean-generic
380
381 dvi: dvi-am
382
383 dvi-am:
384
385 html: html-am
386
387 html-am:
388
389 info: info-am
390
391 info-am:
392
393 install-data-am:
394
395 install-dvi: install-dvi-am
396
397 install-dvi-am:
398
399 install-exec-am:
400
401 install-html: install-html-am
402
403 install-html-am:
404
405 install-info: install-info-am
406
407 install-info-am:
408
409 install-man:
410
411 install-pdf: install-pdf-am
412
413 install-pdf-am:
414
415 install-ps: install-ps-am
416
417 install-ps-am:
418
419 installcheck-am:
420
421 maintainer-clean: maintainer-clean-am
422 -rm -f Makefile
423 maintainer-clean-am: distclean-am maintainer-clean-generic
424
425 mostlyclean: mostlyclean-am
426
427 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
428
429 pdf: pdf-am
430
431 pdf-am:
432
433 ps: ps-am
434
435 ps-am:
436
437 uninstall-am:
438
439 .MAKE: install-am install-strip
440
441 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
442 cscopelist-am ctags-am distclean distclean-generic \
443 distclean-libtool distdir dvi dvi-am html html-am info info-am \
444 install install-am install-data install-data-am install-dvi \
445 install-dvi-am install-exec install-exec-am install-html \
446 install-html-am install-info install-info-am install-man \
447 install-pdf install-pdf-am install-ps install-ps-am \
448 install-strip installcheck installcheck-am installdirs \
449 maintainer-clean maintainer-clean-generic mostlyclean \
450 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
451 tags-am uninstall uninstall-am
452
453 .PRECIOUS: Makefile
454
455
456 # Tell versions [3.59,3.63) of GNU make to not export all variables.
457 # Otherwise a system limit (for SysV at least) may be exceeded.
458 .NOEXPORT:
+0
-8388
m4/libtool.m4 less more
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
3 # Written by Gordon Matzigkeit, 1996
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 m4_define([_LT_COPYING], [dnl
10 # Copyright (C) 2014 Free Software Foundation, Inc.
11 # This is free software; see the source for copying conditions. There is NO
12 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 # GNU Libtool is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of of the License, or
17 # (at your option) any later version.
18 #
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program or library that is built
21 # using GNU Libtool, you may include this file under the same
22 # distribution terms that you use for the rest of that program.
23 #
24 # GNU Libtool is distributed in the hope that it will be useful, but
25 # WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program. If not, see <http://www.gnu.org/licenses/>.
31 ])
32
33 # serial 58 LT_INIT
34
35
36 # LT_PREREQ(VERSION)
37 # ------------------
38 # Complain and exit if this libtool version is less that VERSION.
39 m4_defun([LT_PREREQ],
40 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
41 [m4_default([$3],
42 [m4_fatal([Libtool version $1 or higher is required],
43 63)])],
44 [$2])])
45
46
47 # _LT_CHECK_BUILDDIR
48 # ------------------
49 # Complain if the absolute build directory name contains unusual characters
50 m4_defun([_LT_CHECK_BUILDDIR],
51 [case `pwd` in
52 *\ * | *\ *)
53 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
54 esac
55 ])
56
57
58 # LT_INIT([OPTIONS])
59 # ------------------
60 AC_DEFUN([LT_INIT],
61 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
62 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
63 AC_BEFORE([$0], [LT_LANG])dnl
64 AC_BEFORE([$0], [LT_OUTPUT])dnl
65 AC_BEFORE([$0], [LTDL_INIT])dnl
66 m4_require([_LT_CHECK_BUILDDIR])dnl
67
68 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
69 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
70 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
71 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
72 dnl unless we require an AC_DEFUNed macro:
73 AC_REQUIRE([LTOPTIONS_VERSION])dnl
74 AC_REQUIRE([LTSUGAR_VERSION])dnl
75 AC_REQUIRE([LTVERSION_VERSION])dnl
76 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
77 m4_require([_LT_PROG_LTMAIN])dnl
78
79 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
80
81 dnl Parse OPTIONS
82 _LT_SET_OPTIONS([$0], [$1])
83
84 # This can be used to rebuild libtool when needed
85 LIBTOOL_DEPS=$ltmain
86
87 # Always use our own libtool.
88 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
89 AC_SUBST(LIBTOOL)dnl
90
91 _LT_SETUP
92
93 # Only expand once:
94 m4_define([LT_INIT])
95 ])# LT_INIT
96
97 # Old names:
98 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
99 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
100 dnl aclocal-1.4 backwards compatibility:
101 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
102 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
103
104
105 # _LT_PREPARE_CC_BASENAME
106 # -----------------------
107 m4_defun([_LT_PREPARE_CC_BASENAME], [
108 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
109 func_cc_basename ()
110 {
111 for cc_temp in @S|@*""; do
112 case $cc_temp in
113 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
114 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
115 \-*) ;;
116 *) break;;
117 esac
118 done
119 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
120 }
121 ])# _LT_PREPARE_CC_BASENAME
122
123
124 # _LT_CC_BASENAME(CC)
125 # -------------------
126 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
127 # but that macro is also expanded into generated libtool script, which
128 # arranges for $SED and $ECHO to be set by different means.
129 m4_defun([_LT_CC_BASENAME],
130 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
131 AC_REQUIRE([_LT_DECL_SED])dnl
132 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
133 func_cc_basename $1
134 cc_basename=$func_cc_basename_result
135 ])
136
137
138 # _LT_FILEUTILS_DEFAULTS
139 # ----------------------
140 # It is okay to use these file commands and assume they have been set
141 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
142 m4_defun([_LT_FILEUTILS_DEFAULTS],
143 [: ${CP="cp -f"}
144 : ${MV="mv -f"}
145 : ${RM="rm -f"}
146 ])# _LT_FILEUTILS_DEFAULTS
147
148
149 # _LT_SETUP
150 # ---------
151 m4_defun([_LT_SETUP],
152 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
153 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
154 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
155 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
156
157 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
158 dnl
159 _LT_DECL([], [host_alias], [0], [The host system])dnl
160 _LT_DECL([], [host], [0])dnl
161 _LT_DECL([], [host_os], [0])dnl
162 dnl
163 _LT_DECL([], [build_alias], [0], [The build system])dnl
164 _LT_DECL([], [build], [0])dnl
165 _LT_DECL([], [build_os], [0])dnl
166 dnl
167 AC_REQUIRE([AC_PROG_CC])dnl
168 AC_REQUIRE([LT_PATH_LD])dnl
169 AC_REQUIRE([LT_PATH_NM])dnl
170 dnl
171 AC_REQUIRE([AC_PROG_LN_S])dnl
172 test -z "$LN_S" && LN_S="ln -s"
173 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
174 dnl
175 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
176 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
177 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
178 dnl
179 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
180 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
181 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
182 m4_require([_LT_CMD_RELOAD])dnl
183 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
184 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
187 m4_require([_LT_WITH_SYSROOT])dnl
188 m4_require([_LT_CMD_TRUNCATE])dnl
189
190 _LT_CONFIG_LIBTOOL_INIT([
191 # See if we are running on zsh, and set the options that allow our
192 # commands through without removal of \ escapes INIT.
193 if test -n "\${ZSH_VERSION+set}"; then
194 setopt NO_GLOB_SUBST
195 fi
196 ])
197 if test -n "${ZSH_VERSION+set}"; then
198 setopt NO_GLOB_SUBST
199 fi
200
201 _LT_CHECK_OBJDIR
202
203 m4_require([_LT_TAG_COMPILER])dnl
204
205 case $host_os in
206 aix3*)
207 # AIX sometimes has problems with the GCC collect2 program. For some
208 # reason, if we set the COLLECT_NAMES environment variable, the problems
209 # vanish in a puff of smoke.
210 if test set != "${COLLECT_NAMES+set}"; then
211 COLLECT_NAMES=
212 export COLLECT_NAMES
213 fi
214 ;;
215 esac
216
217 # Global variables:
218 ofile=libtool
219 can_build_shared=yes
220
221 # All known linkers require a '.a' archive for static linking (except MSVC,
222 # which needs '.lib').
223 libext=a
224
225 with_gnu_ld=$lt_cv_prog_gnu_ld
226
227 old_CC=$CC
228 old_CFLAGS=$CFLAGS
229
230 # Set sane defaults for various variables
231 test -z "$CC" && CC=cc
232 test -z "$LTCC" && LTCC=$CC
233 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
234 test -z "$LD" && LD=ld
235 test -z "$ac_objext" && ac_objext=o
236
237 _LT_CC_BASENAME([$compiler])
238
239 # Only perform the check for file, if the check method requires it
240 test -z "$MAGIC_CMD" && MAGIC_CMD=file
241 case $deplibs_check_method in
242 file_magic*)
243 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
244 _LT_PATH_MAGIC
245 fi
246 ;;
247 esac
248
249 # Use C for the default configuration in the libtool script
250 LT_SUPPORTED_TAG([CC])
251 _LT_LANG_C_CONFIG
252 _LT_LANG_DEFAULT_CONFIG
253 _LT_CONFIG_COMMANDS
254 ])# _LT_SETUP
255
256
257 # _LT_PREPARE_SED_QUOTE_VARS
258 # --------------------------
259 # Define a few sed substitution that help us do robust quoting.
260 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
261 [# Backslashify metacharacters that are still active within
262 # double-quoted strings.
263 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
264
265 # Same as above, but do not quote variable references.
266 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
267
268 # Sed substitution to delay expansion of an escaped shell variable in a
269 # double_quote_subst'ed string.
270 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
271
272 # Sed substitution to delay expansion of an escaped single quote.
273 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
274
275 # Sed substitution to avoid accidental globbing in evaled expressions
276 no_glob_subst='s/\*/\\\*/g'
277 ])
278
279 # _LT_PROG_LTMAIN
280 # ---------------
281 # Note that this code is called both from 'configure', and 'config.status'
282 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
283 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
284 # so we pass a copy along to make sure it has a sensible value anyway.
285 m4_defun([_LT_PROG_LTMAIN],
286 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
287 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
288 ltmain=$ac_aux_dir/ltmain.sh
289 ])# _LT_PROG_LTMAIN
290
291
292 ## ------------------------------------- ##
293 ## Accumulate code for creating libtool. ##
294 ## ------------------------------------- ##
295
296 # So that we can recreate a full libtool script including additional
297 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
298 # in macros and then make a single call at the end using the 'libtool'
299 # label.
300
301
302 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
303 # ----------------------------------------
304 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
305 m4_define([_LT_CONFIG_LIBTOOL_INIT],
306 [m4_ifval([$1],
307 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
308 [$1
309 ])])])
310
311 # Initialize.
312 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
313
314
315 # _LT_CONFIG_LIBTOOL([COMMANDS])
316 # ------------------------------
317 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
318 m4_define([_LT_CONFIG_LIBTOOL],
319 [m4_ifval([$1],
320 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
321 [$1
322 ])])])
323
324 # Initialize.
325 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
326
327
328 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
329 # -----------------------------------------------------
330 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
331 [_LT_CONFIG_LIBTOOL([$1])
332 _LT_CONFIG_LIBTOOL_INIT([$2])
333 ])
334
335
336 # _LT_FORMAT_COMMENT([COMMENT])
337 # -----------------------------
338 # Add leading comment marks to the start of each line, and a trailing
339 # full-stop to the whole comment if one is not present already.
340 m4_define([_LT_FORMAT_COMMENT],
341 [m4_ifval([$1], [
342 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
343 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
344 )])
345
346
347
348 ## ------------------------ ##
349 ## FIXME: Eliminate VARNAME ##
350 ## ------------------------ ##
351
352
353 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
354 # -------------------------------------------------------------------
355 # CONFIGNAME is the name given to the value in the libtool script.
356 # VARNAME is the (base) name used in the configure script.
357 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
358 # VARNAME. Any other value will be used directly.
359 m4_define([_LT_DECL],
360 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
361 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
362 [m4_ifval([$1], [$1], [$2])])
363 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
364 m4_ifval([$4],
365 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
366 lt_dict_add_subkey([lt_decl_dict], [$2],
367 [tagged?], [m4_ifval([$5], [yes], [no])])])
368 ])
369
370
371 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
372 # --------------------------------------------------------
373 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
374
375
376 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
377 # ------------------------------------------------
378 m4_define([lt_decl_tag_varnames],
379 [_lt_decl_filter([tagged?], [yes], $@)])
380
381
382 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
383 # ---------------------------------------------------------
384 m4_define([_lt_decl_filter],
385 [m4_case([$#],
386 [0], [m4_fatal([$0: too few arguments: $#])],
387 [1], [m4_fatal([$0: too few arguments: $#: $1])],
388 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
389 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
390 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
391 ])
392
393
394 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
395 # --------------------------------------------------
396 m4_define([lt_decl_quote_varnames],
397 [_lt_decl_filter([value], [1], $@)])
398
399
400 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
401 # ---------------------------------------------------
402 m4_define([lt_decl_dquote_varnames],
403 [_lt_decl_filter([value], [2], $@)])
404
405
406 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
407 # ---------------------------------------------------
408 m4_define([lt_decl_varnames_tagged],
409 [m4_assert([$# <= 2])dnl
410 _$0(m4_quote(m4_default([$1], [[, ]])),
411 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
412 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
413 m4_define([_lt_decl_varnames_tagged],
414 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
415
416
417 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
418 # ------------------------------------------------
419 m4_define([lt_decl_all_varnames],
420 [_$0(m4_quote(m4_default([$1], [[, ]])),
421 m4_if([$2], [],
422 m4_quote(lt_decl_varnames),
423 m4_quote(m4_shift($@))))[]dnl
424 ])
425 m4_define([_lt_decl_all_varnames],
426 [lt_join($@, lt_decl_varnames_tagged([$1],
427 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
428 ])
429
430
431 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
432 # ------------------------------------
433 # Quote a variable value, and forward it to 'config.status' so that its
434 # declaration there will have the same value as in 'configure'. VARNAME
435 # must have a single quote delimited value for this to work.
436 m4_define([_LT_CONFIG_STATUS_DECLARE],
437 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
438
439
440 # _LT_CONFIG_STATUS_DECLARATIONS
441 # ------------------------------
442 # We delimit libtool config variables with single quotes, so when
443 # we write them to config.status, we have to be sure to quote all
444 # embedded single quotes properly. In configure, this macro expands
445 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
446 #
447 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
448 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
449 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
450 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
451
452
453 # _LT_LIBTOOL_TAGS
454 # ----------------
455 # Output comment and list of tags supported by the script
456 m4_defun([_LT_LIBTOOL_TAGS],
457 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
458 available_tags='_LT_TAGS'dnl
459 ])
460
461
462 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
463 # -----------------------------------
464 # Extract the dictionary values for VARNAME (optionally with TAG) and
465 # expand to a commented shell variable setting:
466 #
467 # # Some comment about what VAR is for.
468 # visible_name=$lt_internal_name
469 m4_define([_LT_LIBTOOL_DECLARE],
470 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
471 [description])))[]dnl
472 m4_pushdef([_libtool_name],
473 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
474 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
475 [0], [_libtool_name=[$]$1],
476 [1], [_libtool_name=$lt_[]$1],
477 [2], [_libtool_name=$lt_[]$1],
478 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
479 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
480 ])
481
482
483 # _LT_LIBTOOL_CONFIG_VARS
484 # -----------------------
485 # Produce commented declarations of non-tagged libtool config variables
486 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
487 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
488 # section) are produced by _LT_LIBTOOL_TAG_VARS.
489 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
490 [m4_foreach([_lt_var],
491 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
492 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
493
494
495 # _LT_LIBTOOL_TAG_VARS(TAG)
496 # -------------------------
497 m4_define([_LT_LIBTOOL_TAG_VARS],
498 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
499 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
500
501
502 # _LT_TAGVAR(VARNAME, [TAGNAME])
503 # ------------------------------
504 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
505
506
507 # _LT_CONFIG_COMMANDS
508 # -------------------
509 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
510 # variables for single and double quote escaping we saved from calls
511 # to _LT_DECL, we can put quote escaped variables declarations
512 # into 'config.status', and then the shell code to quote escape them in
513 # for loops in 'config.status'. Finally, any additional code accumulated
514 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
515 m4_defun([_LT_CONFIG_COMMANDS],
516 [AC_PROVIDE_IFELSE([LT_OUTPUT],
517 dnl If the libtool generation code has been placed in $CONFIG_LT,
518 dnl instead of duplicating it all over again into config.status,
519 dnl then we will have config.status run $CONFIG_LT later, so it
520 dnl needs to know what name is stored there:
521 [AC_CONFIG_COMMANDS([libtool],
522 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
523 dnl If the libtool generation code is destined for config.status,
524 dnl expand the accumulated commands and init code now:
525 [AC_CONFIG_COMMANDS([libtool],
526 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
527 ])#_LT_CONFIG_COMMANDS
528
529
530 # Initialize.
531 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
532 [
533
534 # The HP-UX ksh and POSIX shell print the target directory to stdout
535 # if CDPATH is set.
536 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
537
538 sed_quote_subst='$sed_quote_subst'
539 double_quote_subst='$double_quote_subst'
540 delay_variable_subst='$delay_variable_subst'
541 _LT_CONFIG_STATUS_DECLARATIONS
542 LTCC='$LTCC'
543 LTCFLAGS='$LTCFLAGS'
544 compiler='$compiler_DEFAULT'
545
546 # A function that is used when there is no print builtin or printf.
547 func_fallback_echo ()
548 {
549 eval 'cat <<_LTECHO_EOF
550 \$[]1
551 _LTECHO_EOF'
552 }
553
554 # Quote evaled strings.
555 for var in lt_decl_all_varnames([[ \
556 ]], lt_decl_quote_varnames); do
557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
558 *[[\\\\\\\`\\"\\\$]]*)
559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
560 ;;
561 *)
562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
563 ;;
564 esac
565 done
566
567 # Double-quote double-evaled strings.
568 for var in lt_decl_all_varnames([[ \
569 ]], lt_decl_dquote_varnames); do
570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
571 *[[\\\\\\\`\\"\\\$]]*)
572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
573 ;;
574 *)
575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
576 ;;
577 esac
578 done
579
580 _LT_OUTPUT_LIBTOOL_INIT
581 ])
582
583 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
584 # ------------------------------------
585 # Generate a child script FILE with all initialization necessary to
586 # reuse the environment learned by the parent script, and make the
587 # file executable. If COMMENT is supplied, it is inserted after the
588 # '#!' sequence but before initialization text begins. After this
589 # macro, additional text can be appended to FILE to form the body of
590 # the child script. The macro ends with non-zero status if the
591 # file could not be fully written (such as if the disk is full).
592 m4_ifdef([AS_INIT_GENERATED],
593 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
594 [m4_defun([_LT_GENERATED_FILE_INIT],
595 [m4_require([AS_PREPARE])]dnl
596 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
597 [lt_write_fail=0
598 cat >$1 <<_ASEOF || lt_write_fail=1
599 #! $SHELL
600 # Generated by $as_me.
601 $2
602 SHELL=\${CONFIG_SHELL-$SHELL}
603 export SHELL
604 _ASEOF
605 cat >>$1 <<\_ASEOF || lt_write_fail=1
606 AS_SHELL_SANITIZE
607 _AS_PREPARE
608 exec AS_MESSAGE_FD>&1
609 _ASEOF
610 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
611 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
612
613 # LT_OUTPUT
614 # ---------
615 # This macro allows early generation of the libtool script (before
616 # AC_OUTPUT is called), incase it is used in configure for compilation
617 # tests.
618 AC_DEFUN([LT_OUTPUT],
619 [: ${CONFIG_LT=./config.lt}
620 AC_MSG_NOTICE([creating $CONFIG_LT])
621 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
622 [# Run this file to recreate a libtool stub with the current configuration.])
623
624 cat >>"$CONFIG_LT" <<\_LTEOF
625 lt_cl_silent=false
626 exec AS_MESSAGE_LOG_FD>>config.log
627 {
628 echo
629 AS_BOX([Running $as_me.])
630 } >&AS_MESSAGE_LOG_FD
631
632 lt_cl_help="\
633 '$as_me' creates a local libtool stub from the current configuration,
634 for use in further configure time tests before the real libtool is
635 generated.
636
637 Usage: $[0] [[OPTIONS]]
638
639 -h, --help print this help, then exit
640 -V, --version print version number, then exit
641 -q, --quiet do not print progress messages
642 -d, --debug don't remove temporary files
643
644 Report bugs to <bug-libtool@gnu.org>."
645
646 lt_cl_version="\
647 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
648 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
649 configured by $[0], generated by m4_PACKAGE_STRING.
650
651 Copyright (C) 2011 Free Software Foundation, Inc.
652 This config.lt script is free software; the Free Software Foundation
653 gives unlimited permision to copy, distribute and modify it."
654
655 while test 0 != $[#]
656 do
657 case $[1] in
658 --version | --v* | -V )
659 echo "$lt_cl_version"; exit 0 ;;
660 --help | --h* | -h )
661 echo "$lt_cl_help"; exit 0 ;;
662 --debug | --d* | -d )
663 debug=: ;;
664 --quiet | --q* | --silent | --s* | -q )
665 lt_cl_silent=: ;;
666
667 -*) AC_MSG_ERROR([unrecognized option: $[1]
668 Try '$[0] --help' for more information.]) ;;
669
670 *) AC_MSG_ERROR([unrecognized argument: $[1]
671 Try '$[0] --help' for more information.]) ;;
672 esac
673 shift
674 done
675
676 if $lt_cl_silent; then
677 exec AS_MESSAGE_FD>/dev/null
678 fi
679 _LTEOF
680
681 cat >>"$CONFIG_LT" <<_LTEOF
682 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
683 _LTEOF
684
685 cat >>"$CONFIG_LT" <<\_LTEOF
686 AC_MSG_NOTICE([creating $ofile])
687 _LT_OUTPUT_LIBTOOL_COMMANDS
688 AS_EXIT(0)
689 _LTEOF
690 chmod +x "$CONFIG_LT"
691
692 # configure is writing to config.log, but config.lt does its own redirection,
693 # appending to config.log, which fails on DOS, as config.log is still kept
694 # open by configure. Here we exec the FD to /dev/null, effectively closing
695 # config.log, so it can be properly (re)opened and appended to by config.lt.
696 lt_cl_success=:
697 test yes = "$silent" &&
698 lt_config_lt_args="$lt_config_lt_args --quiet"
699 exec AS_MESSAGE_LOG_FD>/dev/null
700 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
701 exec AS_MESSAGE_LOG_FD>>config.log
702 $lt_cl_success || AS_EXIT(1)
703 ])# LT_OUTPUT
704
705
706 # _LT_CONFIG(TAG)
707 # ---------------
708 # If TAG is the built-in tag, create an initial libtool script with a
709 # default configuration from the untagged config vars. Otherwise add code
710 # to config.status for appending the configuration named by TAG from the
711 # matching tagged config vars.
712 m4_defun([_LT_CONFIG],
713 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
714 _LT_CONFIG_SAVE_COMMANDS([
715 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
716 m4_if(_LT_TAG, [C], [
717 # See if we are running on zsh, and set the options that allow our
718 # commands through without removal of \ escapes.
719 if test -n "${ZSH_VERSION+set}"; then
720 setopt NO_GLOB_SUBST
721 fi
722
723 cfgfile=${ofile}T
724 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
725 $RM "$cfgfile"
726
727 cat <<_LT_EOF >> "$cfgfile"
728 #! $SHELL
729 # Generated automatically by $as_me ($PACKAGE) $VERSION
730 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
731 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
732
733 # Provide generalized library-building support services.
734 # Written by Gordon Matzigkeit, 1996
735
736 _LT_COPYING
737 _LT_LIBTOOL_TAGS
738
739 # Configured defaults for sys_lib_dlsearch_path munging.
740 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
741
742 # ### BEGIN LIBTOOL CONFIG
743 _LT_LIBTOOL_CONFIG_VARS
744 _LT_LIBTOOL_TAG_VARS
745 # ### END LIBTOOL CONFIG
746
747 _LT_EOF
748
749 cat <<'_LT_EOF' >> "$cfgfile"
750
751 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
752
753 _LT_PREPARE_MUNGE_PATH_LIST
754 _LT_PREPARE_CC_BASENAME
755
756 # ### END FUNCTIONS SHARED WITH CONFIGURE
757
758 _LT_EOF
759
760 case $host_os in
761 aix3*)
762 cat <<\_LT_EOF >> "$cfgfile"
763 # AIX sometimes has problems with the GCC collect2 program. For some
764 # reason, if we set the COLLECT_NAMES environment variable, the problems
765 # vanish in a puff of smoke.
766 if test set != "${COLLECT_NAMES+set}"; then
767 COLLECT_NAMES=
768 export COLLECT_NAMES
769 fi
770 _LT_EOF
771 ;;
772 esac
773
774 _LT_PROG_LTMAIN
775
776 # We use sed instead of cat because bash on DJGPP gets confused if
777 # if finds mixed CR/LF and LF-only lines. Since sed operates in
778 # text mode, it properly converts lines to CR/LF. This bash problem
779 # is reportedly fixed, but why not run on old versions too?
780 sed '$q' "$ltmain" >> "$cfgfile" \
781 || (rm -f "$cfgfile"; exit 1)
782
783 mv -f "$cfgfile" "$ofile" ||
784 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
785 chmod +x "$ofile"
786 ],
787 [cat <<_LT_EOF >> "$ofile"
788
789 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
790 dnl in a comment (ie after a #).
791 # ### BEGIN LIBTOOL TAG CONFIG: $1
792 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
793 # ### END LIBTOOL TAG CONFIG: $1
794 _LT_EOF
795 ])dnl /m4_if
796 ],
797 [m4_if([$1], [], [
798 PACKAGE='$PACKAGE'
799 VERSION='$VERSION'
800 RM='$RM'
801 ofile='$ofile'], [])
802 ])dnl /_LT_CONFIG_SAVE_COMMANDS
803 ])# _LT_CONFIG
804
805
806 # LT_SUPPORTED_TAG(TAG)
807 # ---------------------
808 # Trace this macro to discover what tags are supported by the libtool
809 # --tag option, using:
810 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
811 AC_DEFUN([LT_SUPPORTED_TAG], [])
812
813
814 # C support is built-in for now
815 m4_define([_LT_LANG_C_enabled], [])
816 m4_define([_LT_TAGS], [])
817
818
819 # LT_LANG(LANG)
820 # -------------
821 # Enable libtool support for the given language if not already enabled.
822 AC_DEFUN([LT_LANG],
823 [AC_BEFORE([$0], [LT_OUTPUT])dnl
824 m4_case([$1],
825 [C], [_LT_LANG(C)],
826 [C++], [_LT_LANG(CXX)],
827 [Go], [_LT_LANG(GO)],
828 [Java], [_LT_LANG(GCJ)],
829 [Fortran 77], [_LT_LANG(F77)],
830 [Fortran], [_LT_LANG(FC)],
831 [Windows Resource], [_LT_LANG(RC)],
832 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
833 [_LT_LANG($1)],
834 [m4_fatal([$0: unsupported language: "$1"])])])dnl
835 ])# LT_LANG
836
837
838 # _LT_LANG(LANGNAME)
839 # ------------------
840 m4_defun([_LT_LANG],
841 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
842 [LT_SUPPORTED_TAG([$1])dnl
843 m4_append([_LT_TAGS], [$1 ])dnl
844 m4_define([_LT_LANG_]$1[_enabled], [])dnl
845 _LT_LANG_$1_CONFIG($1)])dnl
846 ])# _LT_LANG
847
848
849 m4_ifndef([AC_PROG_GO], [
850 ############################################################
851 # NOTE: This macro has been submitted for inclusion into #
852 # GNU Autoconf as AC_PROG_GO. When it is available in #
853 # a released version of Autoconf we should remove this #
854 # macro and use it instead. #
855 ############################################################
856 m4_defun([AC_PROG_GO],
857 [AC_LANG_PUSH(Go)dnl
858 AC_ARG_VAR([GOC], [Go compiler command])dnl
859 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
860 _AC_ARG_VAR_LDFLAGS()dnl
861 AC_CHECK_TOOL(GOC, gccgo)
862 if test -z "$GOC"; then
863 if test -n "$ac_tool_prefix"; then
864 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
865 fi
866 fi
867 if test -z "$GOC"; then
868 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
869 fi
870 ])#m4_defun
871 ])#m4_ifndef
872
873
874 # _LT_LANG_DEFAULT_CONFIG
875 # -----------------------
876 m4_defun([_LT_LANG_DEFAULT_CONFIG],
877 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
878 [LT_LANG(CXX)],
879 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
880
881 AC_PROVIDE_IFELSE([AC_PROG_F77],
882 [LT_LANG(F77)],
883 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
884
885 AC_PROVIDE_IFELSE([AC_PROG_FC],
886 [LT_LANG(FC)],
887 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
888
889 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
890 dnl pulling things in needlessly.
891 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
892 [LT_LANG(GCJ)],
893 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
894 [LT_LANG(GCJ)],
895 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
896 [LT_LANG(GCJ)],
897 [m4_ifdef([AC_PROG_GCJ],
898 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
899 m4_ifdef([A][M_PROG_GCJ],
900 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
901 m4_ifdef([LT_PROG_GCJ],
902 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
903
904 AC_PROVIDE_IFELSE([AC_PROG_GO],
905 [LT_LANG(GO)],
906 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
907
908 AC_PROVIDE_IFELSE([LT_PROG_RC],
909 [LT_LANG(RC)],
910 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
911 ])# _LT_LANG_DEFAULT_CONFIG
912
913 # Obsolete macros:
914 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
915 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
916 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
917 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
918 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
919 dnl aclocal-1.4 backwards compatibility:
920 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
921 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
922 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
923 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
924 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
925
926
927 # _LT_TAG_COMPILER
928 # ----------------
929 m4_defun([_LT_TAG_COMPILER],
930 [AC_REQUIRE([AC_PROG_CC])dnl
931
932 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
933 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
934 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
935 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
936
937 # If no C compiler was specified, use CC.
938 LTCC=${LTCC-"$CC"}
939
940 # If no C compiler flags were specified, use CFLAGS.
941 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
942
943 # Allow CC to be a program name with arguments.
944 compiler=$CC
945 ])# _LT_TAG_COMPILER
946
947
948 # _LT_COMPILER_BOILERPLATE
949 # ------------------------
950 # Check for compiler boilerplate output or warnings with
951 # the simple compiler test code.
952 m4_defun([_LT_COMPILER_BOILERPLATE],
953 [m4_require([_LT_DECL_SED])dnl
954 ac_outfile=conftest.$ac_objext
955 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
957 _lt_compiler_boilerplate=`cat conftest.err`
958 $RM conftest*
959 ])# _LT_COMPILER_BOILERPLATE
960
961
962 # _LT_LINKER_BOILERPLATE
963 # ----------------------
964 # Check for linker boilerplate output or warnings with
965 # the simple link test code.
966 m4_defun([_LT_LINKER_BOILERPLATE],
967 [m4_require([_LT_DECL_SED])dnl
968 ac_outfile=conftest.$ac_objext
969 echo "$lt_simple_link_test_code" >conftest.$ac_ext
970 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
971 _lt_linker_boilerplate=`cat conftest.err`
972 $RM -r conftest*
973 ])# _LT_LINKER_BOILERPLATE
974
975 # _LT_REQUIRED_DARWIN_CHECKS
976 # -------------------------
977 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
978 case $host_os in
979 rhapsody* | darwin*)
980 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
981 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
982 AC_CHECK_TOOL([LIPO], [lipo], [:])
983 AC_CHECK_TOOL([OTOOL], [otool], [:])
984 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
985 _LT_DECL([], [DSYMUTIL], [1],
986 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
987 _LT_DECL([], [NMEDIT], [1],
988 [Tool to change global to local symbols on Mac OS X])
989 _LT_DECL([], [LIPO], [1],
990 [Tool to manipulate fat objects and archives on Mac OS X])
991 _LT_DECL([], [OTOOL], [1],
992 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
993 _LT_DECL([], [OTOOL64], [1],
994 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
995
996 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
997 [lt_cv_apple_cc_single_mod=no
998 if test -z "$LT_MULTI_MODULE"; then
999 # By default we will add the -single_module flag. You can override
1000 # by either setting the environment variable LT_MULTI_MODULE
1001 # non-empty at configure time, or by adding -multi_module to the
1002 # link flags.
1003 rm -rf libconftest.dylib*
1004 echo "int foo(void){return 1;}" > conftest.c
1005 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1006 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1007 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1008 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1009 _lt_result=$?
1010 # If there is a non-empty error log, and "single_module"
1011 # appears in it, assume the flag caused a linker warning
1012 if test -s conftest.err && $GREP single_module conftest.err; then
1013 cat conftest.err >&AS_MESSAGE_LOG_FD
1014 # Otherwise, if the output was created with a 0 exit code from
1015 # the compiler, it worked.
1016 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1017 lt_cv_apple_cc_single_mod=yes
1018 else
1019 cat conftest.err >&AS_MESSAGE_LOG_FD
1020 fi
1021 rm -rf libconftest.dylib*
1022 rm -f conftest.*
1023 fi])
1024
1025 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1026 [lt_cv_ld_exported_symbols_list],
1027 [lt_cv_ld_exported_symbols_list=no
1028 save_LDFLAGS=$LDFLAGS
1029 echo "_main" > conftest.sym
1030 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1031 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1032 [lt_cv_ld_exported_symbols_list=yes],
1033 [lt_cv_ld_exported_symbols_list=no])
1034 LDFLAGS=$save_LDFLAGS
1035 ])
1036
1037 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1038 [lt_cv_ld_force_load=no
1039 cat > conftest.c << _LT_EOF
1040 int forced_loaded() { return 2;}
1041 _LT_EOF
1042 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1043 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1044 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1045 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1046 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1047 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1048 cat > conftest.c << _LT_EOF
1049 int main() { return 0;}
1050 _LT_EOF
1051 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1052 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1053 _lt_result=$?
1054 if test -s conftest.err && $GREP force_load conftest.err; then
1055 cat conftest.err >&AS_MESSAGE_LOG_FD
1056 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1057 lt_cv_ld_force_load=yes
1058 else
1059 cat conftest.err >&AS_MESSAGE_LOG_FD
1060 fi
1061 rm -f conftest.err libconftest.a conftest conftest.c
1062 rm -rf conftest.dSYM
1063 ])
1064 case $host_os in
1065 rhapsody* | darwin1.[[012]])
1066 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1067 darwin1.*)
1068 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1069 darwin*) # darwin 5.x on
1070 # if running on 10.5 or later, the deployment target defaults
1071 # to the OS version, if on x86, and 10.4, the deployment
1072 # target defaults to 10.4. Don't you love it?
1073 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1074 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1075 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1076 10.[[012]][[,.]]*)
1077 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1078 10.*)
1079 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1080 esac
1081 ;;
1082 esac
1083 if test yes = "$lt_cv_apple_cc_single_mod"; then
1084 _lt_dar_single_mod='$single_module'
1085 fi
1086 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1087 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1088 else
1089 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1090 fi
1091 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1092 _lt_dsymutil='~$DSYMUTIL $lib || :'
1093 else
1094 _lt_dsymutil=
1095 fi
1096 ;;
1097 esac
1098 ])
1099
1100
1101 # _LT_DARWIN_LINKER_FEATURES([TAG])
1102 # ---------------------------------
1103 # Checks for linker and compiler features on darwin
1104 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1105 [
1106 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1107 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1108 _LT_TAGVAR(hardcode_direct, $1)=no
1109 _LT_TAGVAR(hardcode_automatic, $1)=yes
1110 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1111 if test yes = "$lt_cv_ld_force_load"; then
1112 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1113 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1114 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1115 else
1116 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1117 fi
1118 _LT_TAGVAR(link_all_deplibs, $1)=yes
1119 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1120 case $cc_basename in
1121 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1122 *) _lt_dar_can_shared=$GCC ;;
1123 esac
1124 if test yes = "$_lt_dar_can_shared"; then
1125 output_verbose_link_cmd=func_echo_all
1126 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1127 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1128 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1129 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1130 m4_if([$1], [CXX],
1131 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1132 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
1133 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
1134 fi
1135 ],[])
1136 else
1137 _LT_TAGVAR(ld_shlibs, $1)=no
1138 fi
1139 ])
1140
1141 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1142 # ----------------------------------
1143 # Links a minimal program and checks the executable
1144 # for the system default hardcoded library path. In most cases,
1145 # this is /usr/lib:/lib, but when the MPI compilers are used
1146 # the location of the communication and MPI libs are included too.
1147 # If we don't find anything, use the default library path according
1148 # to the aix ld manual.
1149 # Store the results from the different compilers for each TAGNAME.
1150 # Allow to override them for all tags through lt_cv_aix_libpath.
1151 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1152 [m4_require([_LT_DECL_SED])dnl
1153 if test set = "${lt_cv_aix_libpath+set}"; then
1154 aix_libpath=$lt_cv_aix_libpath
1155 else
1156 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1157 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1158 lt_aix_libpath_sed='[
1159 /Import File Strings/,/^$/ {
1160 /^0/ {
1161 s/^0 *\([^ ]*\) *$/\1/
1162 p
1163 }
1164 }]'
1165 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1166 # Check for a 64-bit object if we didn't find anything.
1167 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1168 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1169 fi],[])
1170 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1171 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1172 fi
1173 ])
1174 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1175 fi
1176 ])# _LT_SYS_MODULE_PATH_AIX
1177
1178
1179 # _LT_SHELL_INIT(ARG)
1180 # -------------------
1181 m4_define([_LT_SHELL_INIT],
1182 [m4_divert_text([M4SH-INIT], [$1
1183 ])])# _LT_SHELL_INIT
1184
1185
1186
1187 # _LT_PROG_ECHO_BACKSLASH
1188 # -----------------------
1189 # Find how we can fake an echo command that does not interpret backslash.
1190 # In particular, with Autoconf 2.60 or later we add some code to the start
1191 # of the generated configure script that will find a shell with a builtin
1192 # printf (that we can use as an echo command).
1193 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1194 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1196 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1197
1198 AC_MSG_CHECKING([how to print strings])
1199 # Test print first, because it will be a builtin if present.
1200 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1201 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1202 ECHO='print -r --'
1203 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1204 ECHO='printf %s\n'
1205 else
1206 # Use this function as a fallback that always works.
1207 func_fallback_echo ()
1208 {
1209 eval 'cat <<_LTECHO_EOF
1210 $[]1
1211 _LTECHO_EOF'
1212 }
1213 ECHO='func_fallback_echo'
1214 fi
1215
1216 # func_echo_all arg...
1217 # Invoke $ECHO with all args, space-separated.
1218 func_echo_all ()
1219 {
1220 $ECHO "$*"
1221 }
1222
1223 case $ECHO in
1224 printf*) AC_MSG_RESULT([printf]) ;;
1225 print*) AC_MSG_RESULT([print -r]) ;;
1226 *) AC_MSG_RESULT([cat]) ;;
1227 esac
1228
1229 m4_ifdef([_AS_DETECT_SUGGESTED],
1230 [_AS_DETECT_SUGGESTED([
1231 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1232 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1233 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1235 PATH=/empty FPATH=/empty; export PATH FPATH
1236 test "X`printf %s $ECHO`" = "X$ECHO" \
1237 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1238
1239 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1240 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1241 ])# _LT_PROG_ECHO_BACKSLASH
1242
1243
1244 # _LT_WITH_SYSROOT
1245 # ----------------
1246 AC_DEFUN([_LT_WITH_SYSROOT],
1247 [AC_MSG_CHECKING([for sysroot])
1248 AC_ARG_WITH([sysroot],
1249 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1250 [Search for dependent libraries within DIR (or the compiler's sysroot
1251 if not specified).])],
1252 [], [with_sysroot=no])
1253
1254 dnl lt_sysroot will always be passed unquoted. We quote it here
1255 dnl in case the user passed a directory name.
1256 lt_sysroot=
1257 case $with_sysroot in #(
1258 yes)
1259 if test yes = "$GCC"; then
1260 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1261 fi
1262 ;; #(
1263 /*)
1264 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1265 ;; #(
1266 no|'')
1267 ;; #(
1268 *)
1269 AC_MSG_RESULT([$with_sysroot])
1270 AC_MSG_ERROR([The sysroot must be an absolute path.])
1271 ;;
1272 esac
1273
1274 AC_MSG_RESULT([${lt_sysroot:-no}])
1275 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1276 [dependent libraries, and where our libraries should be installed.])])
1277
1278 # _LT_ENABLE_LOCK
1279 # ---------------
1280 m4_defun([_LT_ENABLE_LOCK],
1281 [AC_ARG_ENABLE([libtool-lock],
1282 [AS_HELP_STRING([--disable-libtool-lock],
1283 [avoid locking (might break parallel builds)])])
1284 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1285
1286 # Some flags need to be propagated to the compiler or linker for good
1287 # libtool support.
1288 case $host in
1289 ia64-*-hpux*)
1290 # Find out what ABI is being produced by ac_compile, and set mode
1291 # options accordingly.
1292 echo 'int i;' > conftest.$ac_ext
1293 if AC_TRY_EVAL(ac_compile); then
1294 case `/usr/bin/file conftest.$ac_objext` in
1295 *ELF-32*)
1296 HPUX_IA64_MODE=32
1297 ;;
1298 *ELF-64*)
1299 HPUX_IA64_MODE=64
1300 ;;
1301 esac
1302 fi
1303 rm -rf conftest*
1304 ;;
1305 *-*-irix6*)
1306 # Find out what ABI is being produced by ac_compile, and set linker
1307 # options accordingly.
1308 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1309 if AC_TRY_EVAL(ac_compile); then
1310 if test yes = "$lt_cv_prog_gnu_ld"; then
1311 case `/usr/bin/file conftest.$ac_objext` in
1312 *32-bit*)
1313 LD="${LD-ld} -melf32bsmip"
1314 ;;
1315 *N32*)
1316 LD="${LD-ld} -melf32bmipn32"
1317 ;;
1318 *64-bit*)
1319 LD="${LD-ld} -melf64bmip"
1320 ;;
1321 esac
1322 else
1323 case `/usr/bin/file conftest.$ac_objext` in
1324 *32-bit*)
1325 LD="${LD-ld} -32"
1326 ;;
1327 *N32*)
1328 LD="${LD-ld} -n32"
1329 ;;
1330 *64-bit*)
1331 LD="${LD-ld} -64"
1332 ;;
1333 esac
1334 fi
1335 fi
1336 rm -rf conftest*
1337 ;;
1338
1339 mips64*-*linux*)
1340 # Find out what ABI is being produced by ac_compile, and set linker
1341 # options accordingly.
1342 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1343 if AC_TRY_EVAL(ac_compile); then
1344 emul=elf
1345 case `/usr/bin/file conftest.$ac_objext` in
1346 *32-bit*)
1347 emul="${emul}32"
1348 ;;
1349 *64-bit*)
1350 emul="${emul}64"
1351 ;;
1352 esac
1353 case `/usr/bin/file conftest.$ac_objext` in
1354 *MSB*)
1355 emul="${emul}btsmip"
1356 ;;
1357 *LSB*)
1358 emul="${emul}ltsmip"
1359 ;;
1360 esac
1361 case `/usr/bin/file conftest.$ac_objext` in
1362 *N32*)
1363 emul="${emul}n32"
1364 ;;
1365 esac
1366 LD="${LD-ld} -m $emul"
1367 fi
1368 rm -rf conftest*
1369 ;;
1370
1371 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1372 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1373 # Find out what ABI is being produced by ac_compile, and set linker
1374 # options accordingly. Note that the listed cases only cover the
1375 # situations where additional linker options are needed (such as when
1376 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1377 # vice versa); the common cases where no linker options are needed do
1378 # not appear in the list.
1379 echo 'int i;' > conftest.$ac_ext
1380 if AC_TRY_EVAL(ac_compile); then
1381 case `/usr/bin/file conftest.o` in
1382 *32-bit*)
1383 case $host in
1384 x86_64-*kfreebsd*-gnu)
1385 LD="${LD-ld} -m elf_i386_fbsd"
1386 ;;
1387 x86_64-*linux*)
1388 case `/usr/bin/file conftest.o` in
1389 *x86-64*)
1390 LD="${LD-ld} -m elf32_x86_64"
1391 ;;
1392 *)
1393 LD="${LD-ld} -m elf_i386"
1394 ;;
1395 esac
1396 ;;
1397 powerpc64le-*linux*)
1398 LD="${LD-ld} -m elf32lppclinux"
1399 ;;
1400 powerpc64-*linux*)
1401 LD="${LD-ld} -m elf32ppclinux"
1402 ;;
1403 s390x-*linux*)
1404 LD="${LD-ld} -m elf_s390"
1405 ;;
1406 sparc64-*linux*)
1407 LD="${LD-ld} -m elf32_sparc"
1408 ;;
1409 esac
1410 ;;
1411 *64-bit*)
1412 case $host in
1413 x86_64-*kfreebsd*-gnu)
1414 LD="${LD-ld} -m elf_x86_64_fbsd"
1415 ;;
1416 x86_64-*linux*)
1417 LD="${LD-ld} -m elf_x86_64"
1418 ;;
1419 powerpcle-*linux*)
1420 LD="${LD-ld} -m elf64lppc"
1421 ;;
1422 powerpc-*linux*)
1423 LD="${LD-ld} -m elf64ppc"
1424 ;;
1425 s390*-*linux*|s390*-*tpf*)
1426 LD="${LD-ld} -m elf64_s390"
1427 ;;
1428 sparc*-*linux*)
1429 LD="${LD-ld} -m elf64_sparc"
1430 ;;
1431 esac
1432 ;;
1433 esac
1434 fi
1435 rm -rf conftest*
1436 ;;
1437
1438 *-*-sco3.2v5*)
1439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1440 SAVE_CFLAGS=$CFLAGS
1441 CFLAGS="$CFLAGS -belf"
1442 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1443 [AC_LANG_PUSH(C)
1444 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1445 AC_LANG_POP])
1446 if test yes != "$lt_cv_cc_needs_belf"; then
1447 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1448 CFLAGS=$SAVE_CFLAGS
1449 fi
1450 ;;
1451 *-*solaris*)
1452 # Find out what ABI is being produced by ac_compile, and set linker
1453 # options accordingly.
1454 echo 'int i;' > conftest.$ac_ext
1455 if AC_TRY_EVAL(ac_compile); then
1456 case `/usr/bin/file conftest.o` in
1457 *64-bit*)
1458 case $lt_cv_prog_gnu_ld in
1459 yes*)
1460 case $host in
1461 i?86-*-solaris*|x86_64-*-solaris*)
1462 LD="${LD-ld} -m elf_x86_64"
1463 ;;
1464 sparc*-*-solaris*)
1465 LD="${LD-ld} -m elf64_sparc"
1466 ;;
1467 esac
1468 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1469 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1470 LD=${LD-ld}_sol2
1471 fi
1472 ;;
1473 *)
1474 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1475 LD="${LD-ld} -64"
1476 fi
1477 ;;
1478 esac
1479 ;;
1480 esac
1481 fi
1482 rm -rf conftest*
1483 ;;
1484 esac
1485
1486 need_locks=$enable_libtool_lock
1487 ])# _LT_ENABLE_LOCK
1488
1489
1490 # _LT_PROG_AR
1491 # -----------
1492 m4_defun([_LT_PROG_AR],
1493 [AC_CHECK_TOOLS(AR, [ar], false)
1494 : ${AR=ar}
1495 : ${AR_FLAGS=cru}
1496 _LT_DECL([], [AR], [1], [The archiver])
1497 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1498
1499 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1500 [lt_cv_ar_at_file=no
1501 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1502 [echo conftest.$ac_objext > conftest.lst
1503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1504 AC_TRY_EVAL([lt_ar_try])
1505 if test 0 -eq "$ac_status"; then
1506 # Ensure the archiver fails upon bogus file names.
1507 rm -f conftest.$ac_objext libconftest.a
1508 AC_TRY_EVAL([lt_ar_try])
1509 if test 0 -ne "$ac_status"; then
1510 lt_cv_ar_at_file=@
1511 fi
1512 fi
1513 rm -f conftest.* libconftest.a
1514 ])
1515 ])
1516
1517 if test no = "$lt_cv_ar_at_file"; then
1518 archiver_list_spec=
1519 else
1520 archiver_list_spec=$lt_cv_ar_at_file
1521 fi
1522 _LT_DECL([], [archiver_list_spec], [1],
1523 [How to feed a file listing to the archiver])
1524 ])# _LT_PROG_AR
1525
1526
1527 # _LT_CMD_OLD_ARCHIVE
1528 # -------------------
1529 m4_defun([_LT_CMD_OLD_ARCHIVE],
1530 [_LT_PROG_AR
1531
1532 AC_CHECK_TOOL(STRIP, strip, :)
1533 test -z "$STRIP" && STRIP=:
1534 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1535
1536 AC_CHECK_TOOL(RANLIB, ranlib, :)
1537 test -z "$RANLIB" && RANLIB=:
1538 _LT_DECL([], [RANLIB], [1],
1539 [Commands used to install an old-style archive])
1540
1541 # Determine commands to create old-style static archives.
1542 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1543 old_postinstall_cmds='chmod 644 $oldlib'
1544 old_postuninstall_cmds=
1545
1546 if test -n "$RANLIB"; then
1547 case $host_os in
1548 bitrig* | openbsd*)
1549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1550 ;;
1551 *)
1552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1553 ;;
1554 esac
1555 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1556 fi
1557
1558 case $host_os in
1559 darwin*)
1560 lock_old_archive_extraction=yes ;;
1561 *)
1562 lock_old_archive_extraction=no ;;
1563 esac
1564 _LT_DECL([], [old_postinstall_cmds], [2])
1565 _LT_DECL([], [old_postuninstall_cmds], [2])
1566 _LT_TAGDECL([], [old_archive_cmds], [2],
1567 [Commands used to build an old-style archive])
1568 _LT_DECL([], [lock_old_archive_extraction], [0],
1569 [Whether to use a lock for old archive extraction])
1570 ])# _LT_CMD_OLD_ARCHIVE
1571
1572
1573 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1574 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1575 # ----------------------------------------------------------------
1576 # Check whether the given compiler option works
1577 AC_DEFUN([_LT_COMPILER_OPTION],
1578 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1579 m4_require([_LT_DECL_SED])dnl
1580 AC_CACHE_CHECK([$1], [$2],
1581 [$2=no
1582 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1584 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
1585 # Insert the option either (1) after the last *FLAGS variable, or
1586 # (2) before a word containing "conftest.", or (3) at the end.
1587 # Note that $ac_compile itself does not contain backslashes and begins
1588 # with a dollar sign (not a hyphen), so the echo should work correctly.
1589 # The option is referenced via a variable to avoid confusing sed.
1590 lt_compile=`echo "$ac_compile" | $SED \
1591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1592 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1593 -e 's:$: $lt_compiler_flag:'`
1594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1595 (eval "$lt_compile" 2>conftest.err)
1596 ac_status=$?
1597 cat conftest.err >&AS_MESSAGE_LOG_FD
1598 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1599 if (exit $ac_status) && test -s "$ac_outfile"; then
1600 # The compiler can only warn and ignore the option if not recognized
1601 # So say no if there are warnings other than the usual output.
1602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1605 $2=yes
1606 fi
1607 fi
1608 $RM conftest*
1609 ])
1610
1611 if test yes = "[$]$2"; then
1612 m4_if([$5], , :, [$5])
1613 else
1614 m4_if([$6], , :, [$6])
1615 fi
1616 ])# _LT_COMPILER_OPTION
1617
1618 # Old name:
1619 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1620 dnl aclocal-1.4 backwards compatibility:
1621 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1622
1623
1624 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1625 # [ACTION-SUCCESS], [ACTION-FAILURE])
1626 # ----------------------------------------------------
1627 # Check whether the given linker option works
1628 AC_DEFUN([_LT_LINKER_OPTION],
1629 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1630 m4_require([_LT_DECL_SED])dnl
1631 AC_CACHE_CHECK([$1], [$2],
1632 [$2=no
1633 save_LDFLAGS=$LDFLAGS
1634 LDFLAGS="$LDFLAGS $3"
1635 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1636 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1637 # The linker can only warn and ignore the option if not recognized
1638 # So say no if there are warnings
1639 if test -s conftest.err; then
1640 # Append any errors to the config.log.
1641 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1642 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1644 if diff conftest.exp conftest.er2 >/dev/null; then
1645 $2=yes
1646 fi
1647 else
1648 $2=yes
1649 fi
1650 fi
1651 $RM -r conftest*
1652 LDFLAGS=$save_LDFLAGS
1653 ])
1654
1655 if test yes = "[$]$2"; then
1656 m4_if([$4], , :, [$4])
1657 else
1658 m4_if([$5], , :, [$5])
1659 fi
1660 ])# _LT_LINKER_OPTION
1661
1662 # Old name:
1663 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1664 dnl aclocal-1.4 backwards compatibility:
1665 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1666
1667
1668 # LT_CMD_MAX_LEN
1669 #---------------
1670 AC_DEFUN([LT_CMD_MAX_LEN],
1671 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1672 # find the maximum length of command line arguments
1673 AC_MSG_CHECKING([the maximum length of command line arguments])
1674 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1675 i=0
1676 teststring=ABCD
1677
1678 case $build_os in
1679 msdosdjgpp*)
1680 # On DJGPP, this test can blow up pretty badly due to problems in libc
1681 # (any single argument exceeding 2000 bytes causes a buffer overrun
1682 # during glob expansion). Even if it were fixed, the result of this
1683 # check would be larger than it should be.
1684 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1685 ;;
1686
1687 gnu*)
1688 # Under GNU Hurd, this test is not required because there is
1689 # no limit to the length of command line arguments.
1690 # Libtool will interpret -1 as no limit whatsoever
1691 lt_cv_sys_max_cmd_len=-1;
1692 ;;
1693
1694 cygwin* | mingw* | cegcc*)
1695 # On Win9x/ME, this test blows up -- it succeeds, but takes
1696 # about 5 minutes as the teststring grows exponentially.
1697 # Worse, since 9x/ME are not pre-emptively multitasking,
1698 # you end up with a "frozen" computer, even though with patience
1699 # the test eventually succeeds (with a max line length of 256k).
1700 # Instead, let's just punt: use the minimum linelength reported by
1701 # all of the supported platforms: 8192 (on NT/2K/XP).
1702 lt_cv_sys_max_cmd_len=8192;
1703 ;;
1704
1705 mint*)
1706 # On MiNT this can take a long time and run out of memory.
1707 lt_cv_sys_max_cmd_len=8192;
1708 ;;
1709
1710 amigaos*)
1711 # On AmigaOS with pdksh, this test takes hours, literally.
1712 # So we just punt and use a minimum line length of 8192.
1713 lt_cv_sys_max_cmd_len=8192;
1714 ;;
1715
1716 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1717 # This has been around since 386BSD, at least. Likely further.
1718 if test -x /sbin/sysctl; then
1719 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1720 elif test -x /usr/sbin/sysctl; then
1721 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1722 else
1723 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1724 fi
1725 # And add a safety zone
1726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1728 ;;
1729
1730 interix*)
1731 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1732 lt_cv_sys_max_cmd_len=196608
1733 ;;
1734
1735 os2*)
1736 # The test takes a long time on OS/2.
1737 lt_cv_sys_max_cmd_len=8192
1738 ;;
1739
1740 osf*)
1741 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1742 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1743 # nice to cause kernel panics so lets avoid the loop below.
1744 # First set a reasonable default.
1745 lt_cv_sys_max_cmd_len=16384
1746 #
1747 if test -x /sbin/sysconfig; then
1748 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1749 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1750 esac
1751 fi
1752 ;;
1753 sco3.2v5*)
1754 lt_cv_sys_max_cmd_len=102400
1755 ;;
1756 sysv5* | sco5v6* | sysv4.2uw2*)
1757 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1758 if test -n "$kargmax"; then
1759 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1760 else
1761 lt_cv_sys_max_cmd_len=32768
1762 fi
1763 ;;
1764 *)
1765 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1766 if test -n "$lt_cv_sys_max_cmd_len" && \
1767 test undefined != "$lt_cv_sys_max_cmd_len"; then
1768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1770 else
1771 # Make teststring a little bigger before we do anything with it.
1772 # a 1K string should be a reasonable start.
1773 for i in 1 2 3 4 5 6 7 8; do
1774 teststring=$teststring$teststring
1775 done
1776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1777 # If test is not a shell built-in, we'll probably end up computing a
1778 # maximum length that is only half of the actual maximum length, but
1779 # we can't tell.
1780 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1781 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1782 test 17 != "$i" # 1/2 MB should be enough
1783 do
1784 i=`expr $i + 1`
1785 teststring=$teststring$teststring
1786 done
1787 # Only check the string length outside the loop.
1788 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1789 teststring=
1790 # Add a significant safety factor because C++ compilers can tack on
1791 # massive amounts of additional arguments before passing them to the
1792 # linker. It appears as though 1/2 is a usable value.
1793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1794 fi
1795 ;;
1796 esac
1797 ])
1798 if test -n "$lt_cv_sys_max_cmd_len"; then
1799 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1800 else
1801 AC_MSG_RESULT(none)
1802 fi
1803 max_cmd_len=$lt_cv_sys_max_cmd_len
1804 _LT_DECL([], [max_cmd_len], [0],
1805 [What is the maximum length of a command?])
1806 ])# LT_CMD_MAX_LEN
1807
1808 # Old name:
1809 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1810 dnl aclocal-1.4 backwards compatibility:
1811 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1812
1813
1814 # _LT_HEADER_DLFCN
1815 # ----------------
1816 m4_defun([_LT_HEADER_DLFCN],
1817 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1818 ])# _LT_HEADER_DLFCN
1819
1820
1821 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1822 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1823 # ----------------------------------------------------------------
1824 m4_defun([_LT_TRY_DLOPEN_SELF],
1825 [m4_require([_LT_HEADER_DLFCN])dnl
1826 if test yes = "$cross_compiling"; then :
1827 [$4]
1828 else
1829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1830 lt_status=$lt_dlunknown
1831 cat > conftest.$ac_ext <<_LT_EOF
1832 [#line $LINENO "configure"
1833 #include "confdefs.h"
1834
1835 #if HAVE_DLFCN_H
1836 #include <dlfcn.h>
1837 #endif
1838
1839 #include <stdio.h>
1840
1841 #ifdef RTLD_GLOBAL
1842 # define LT_DLGLOBAL RTLD_GLOBAL
1843 #else
1844 # ifdef DL_GLOBAL
1845 # define LT_DLGLOBAL DL_GLOBAL
1846 # else
1847 # define LT_DLGLOBAL 0
1848 # endif
1849 #endif
1850
1851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1852 find out it does not work in some platform. */
1853 #ifndef LT_DLLAZY_OR_NOW
1854 # ifdef RTLD_LAZY
1855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1856 # else
1857 # ifdef DL_LAZY
1858 # define LT_DLLAZY_OR_NOW DL_LAZY
1859 # else
1860 # ifdef RTLD_NOW
1861 # define LT_DLLAZY_OR_NOW RTLD_NOW
1862 # else
1863 # ifdef DL_NOW
1864 # define LT_DLLAZY_OR_NOW DL_NOW
1865 # else
1866 # define LT_DLLAZY_OR_NOW 0
1867 # endif
1868 # endif
1869 # endif
1870 # endif
1871 #endif
1872
1873 /* When -fvisibility=hidden is used, assume the code has been annotated
1874 correspondingly for the symbols needed. */
1875 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1876 int fnord () __attribute__((visibility("default")));
1877 #endif
1878
1879 int fnord () { return 42; }
1880 int main ()
1881 {
1882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1883 int status = $lt_dlunknown;
1884
1885 if (self)
1886 {
1887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1888 else
1889 {
1890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1891 else puts (dlerror ());
1892 }
1893 /* dlclose (self); */
1894 }
1895 else
1896 puts (dlerror ());
1897
1898 return status;
1899 }]
1900 _LT_EOF
1901 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1902 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1903 lt_status=$?
1904 case x$lt_status in
1905 x$lt_dlno_uscore) $1 ;;
1906 x$lt_dlneed_uscore) $2 ;;
1907 x$lt_dlunknown|x*) $3 ;;
1908 esac
1909 else :
1910 # compilation failed
1911 $3
1912 fi
1913 fi
1914 rm -fr conftest*
1915 ])# _LT_TRY_DLOPEN_SELF
1916
1917
1918 # LT_SYS_DLOPEN_SELF
1919 # ------------------
1920 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1921 [m4_require([_LT_HEADER_DLFCN])dnl
1922 if test yes != "$enable_dlopen"; then
1923 enable_dlopen=unknown
1924 enable_dlopen_self=unknown
1925 enable_dlopen_self_static=unknown
1926 else
1927 lt_cv_dlopen=no
1928 lt_cv_dlopen_libs=
1929
1930 case $host_os in
1931 beos*)
1932 lt_cv_dlopen=load_add_on
1933 lt_cv_dlopen_libs=
1934 lt_cv_dlopen_self=yes
1935 ;;
1936
1937 mingw* | pw32* | cegcc*)
1938 lt_cv_dlopen=LoadLibrary
1939 lt_cv_dlopen_libs=
1940 ;;
1941
1942 cygwin*)
1943 lt_cv_dlopen=dlopen
1944 lt_cv_dlopen_libs=
1945 ;;
1946
1947 darwin*)
1948 # if libdl is installed we need to link against it
1949 AC_CHECK_LIB([dl], [dlopen],
1950 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1951 lt_cv_dlopen=dyld
1952 lt_cv_dlopen_libs=
1953 lt_cv_dlopen_self=yes
1954 ])
1955 ;;
1956
1957 tpf*)
1958 # Don't try to run any link tests for TPF. We know it's impossible
1959 # because TPF is a cross-compiler, and we know how we open DSOs.
1960 lt_cv_dlopen=dlopen
1961 lt_cv_dlopen_libs=
1962 lt_cv_dlopen_self=no
1963 ;;
1964
1965 *)
1966 AC_CHECK_FUNC([shl_load],
1967 [lt_cv_dlopen=shl_load],
1968 [AC_CHECK_LIB([dld], [shl_load],
1969 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1970 [AC_CHECK_FUNC([dlopen],
1971 [lt_cv_dlopen=dlopen],
1972 [AC_CHECK_LIB([dl], [dlopen],
1973 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1974 [AC_CHECK_LIB([svld], [dlopen],
1975 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1976 [AC_CHECK_LIB([dld], [dld_link],
1977 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
1978 ])
1979 ])
1980 ])
1981 ])
1982 ])
1983 ;;
1984 esac
1985
1986 if test no = "$lt_cv_dlopen"; then
1987 enable_dlopen=no
1988 else
1989 enable_dlopen=yes
1990 fi
1991
1992 case $lt_cv_dlopen in
1993 dlopen)
1994 save_CPPFLAGS=$CPPFLAGS
1995 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1996
1997 save_LDFLAGS=$LDFLAGS
1998 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1999
2000 save_LIBS=$LIBS
2001 LIBS="$lt_cv_dlopen_libs $LIBS"
2002
2003 AC_CACHE_CHECK([whether a program can dlopen itself],
2004 lt_cv_dlopen_self, [dnl
2005 _LT_TRY_DLOPEN_SELF(
2006 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2007 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2008 ])
2009
2010 if test yes = "$lt_cv_dlopen_self"; then
2011 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2012 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2013 lt_cv_dlopen_self_static, [dnl
2014 _LT_TRY_DLOPEN_SELF(
2015 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2016 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2017 ])
2018 fi
2019
2020 CPPFLAGS=$save_CPPFLAGS
2021 LDFLAGS=$save_LDFLAGS
2022 LIBS=$save_LIBS
2023 ;;
2024 esac
2025
2026 case $lt_cv_dlopen_self in
2027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2028 *) enable_dlopen_self=unknown ;;
2029 esac
2030
2031 case $lt_cv_dlopen_self_static in
2032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2033 *) enable_dlopen_self_static=unknown ;;
2034 esac
2035 fi
2036 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2037 [Whether dlopen is supported])
2038 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2039 [Whether dlopen of programs is supported])
2040 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2041 [Whether dlopen of statically linked programs is supported])
2042 ])# LT_SYS_DLOPEN_SELF
2043
2044 # Old name:
2045 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2046 dnl aclocal-1.4 backwards compatibility:
2047 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2048
2049
2050 # _LT_COMPILER_C_O([TAGNAME])
2051 # ---------------------------
2052 # Check to see if options -c and -o are simultaneously supported by compiler.
2053 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2054 m4_defun([_LT_COMPILER_C_O],
2055 [m4_require([_LT_DECL_SED])dnl
2056 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2057 m4_require([_LT_TAG_COMPILER])dnl
2058 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2059 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2060 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2061 $RM -r conftest 2>/dev/null
2062 mkdir conftest
2063 cd conftest
2064 mkdir out
2065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2066
2067 lt_compiler_flag="-o out/conftest2.$ac_objext"
2068 # Insert the option either (1) after the last *FLAGS variable, or
2069 # (2) before a word containing "conftest.", or (3) at the end.
2070 # Note that $ac_compile itself does not contain backslashes and begins
2071 # with a dollar sign (not a hyphen), so the echo should work correctly.
2072 lt_compile=`echo "$ac_compile" | $SED \
2073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2074 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2075 -e 's:$: $lt_compiler_flag:'`
2076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2077 (eval "$lt_compile" 2>out/conftest.err)
2078 ac_status=$?
2079 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2080 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2082 then
2083 # The compiler can only warn and ignore the option if not recognized
2084 # So say no if there are warnings
2085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2088 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2089 fi
2090 fi
2091 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2092 $RM conftest*
2093 # SGI C++ compiler will create directory out/ii_files/ for
2094 # template instantiation
2095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2096 $RM out/* && rmdir out
2097 cd ..
2098 $RM -r conftest
2099 $RM conftest*
2100 ])
2101 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2102 [Does compiler simultaneously support -c and -o options?])
2103 ])# _LT_COMPILER_C_O
2104
2105
2106 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2107 # ----------------------------------
2108 # Check to see if we can do hard links to lock some files if needed
2109 m4_defun([_LT_COMPILER_FILE_LOCKS],
2110 [m4_require([_LT_ENABLE_LOCK])dnl
2111 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2112 _LT_COMPILER_C_O([$1])
2113
2114 hard_links=nottested
2115 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2116 # do not overwrite the value of need_locks provided by the user
2117 AC_MSG_CHECKING([if we can lock with hard links])
2118 hard_links=yes
2119 $RM conftest*
2120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2121 touch conftest.a
2122 ln conftest.a conftest.b 2>&5 || hard_links=no
2123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2124 AC_MSG_RESULT([$hard_links])
2125 if test no = "$hard_links"; then
2126 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2127 need_locks=warn
2128 fi
2129 else
2130 need_locks=no
2131 fi
2132 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2133 ])# _LT_COMPILER_FILE_LOCKS
2134
2135
2136 # _LT_CHECK_OBJDIR
2137 # ----------------
2138 m4_defun([_LT_CHECK_OBJDIR],
2139 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2140 [rm -f .libs 2>/dev/null
2141 mkdir .libs 2>/dev/null
2142 if test -d .libs; then
2143 lt_cv_objdir=.libs
2144 else
2145 # MS-DOS does not allow filenames that begin with a dot.
2146 lt_cv_objdir=_libs
2147 fi
2148 rmdir .libs 2>/dev/null])
2149 objdir=$lt_cv_objdir
2150 _LT_DECL([], [objdir], [0],
2151 [The name of the directory that contains temporary libtool files])dnl
2152 m4_pattern_allow([LT_OBJDIR])dnl
2153 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2154 [Define to the sub-directory where libtool stores uninstalled libraries.])
2155 ])# _LT_CHECK_OBJDIR
2156
2157
2158 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2159 # --------------------------------------
2160 # Check hardcoding attributes.
2161 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2162 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2163 _LT_TAGVAR(hardcode_action, $1)=
2164 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2165 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2166 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2167
2168 # We can hardcode non-existent directories.
2169 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2171 # have to relink, otherwise we might link with an installed library
2172 # when we should be linking with a yet-to-be-installed one
2173 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2174 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2175 # Linking always hardcodes the temporary library directory.
2176 _LT_TAGVAR(hardcode_action, $1)=relink
2177 else
2178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2179 _LT_TAGVAR(hardcode_action, $1)=immediate
2180 fi
2181 else
2182 # We cannot hardcode anything, or else we can only hardcode existing
2183 # directories.
2184 _LT_TAGVAR(hardcode_action, $1)=unsupported
2185 fi
2186 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2187
2188 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2189 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2190 # Fast installation is not supported
2191 enable_fast_install=no
2192 elif test yes = "$shlibpath_overrides_runpath" ||
2193 test no = "$enable_shared"; then
2194 # Fast installation is not necessary
2195 enable_fast_install=needless
2196 fi
2197 _LT_TAGDECL([], [hardcode_action], [0],
2198 [How to hardcode a shared library path into an executable])
2199 ])# _LT_LINKER_HARDCODE_LIBPATH
2200
2201
2202 # _LT_CMD_STRIPLIB
2203 # ----------------
2204 m4_defun([_LT_CMD_STRIPLIB],
2205 [m4_require([_LT_DECL_EGREP])
2206 striplib=
2207 old_striplib=
2208 AC_MSG_CHECKING([whether stripping libraries is possible])
2209 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2212 AC_MSG_RESULT([yes])
2213 else
2214 # FIXME - insert some real tests, host_os isn't really good enough
2215 case $host_os in
2216 darwin*)
2217 if test -n "$STRIP"; then
2218 striplib="$STRIP -x"
2219 old_striplib="$STRIP -S"
2220 AC_MSG_RESULT([yes])
2221 else
2222 AC_MSG_RESULT([no])
2223 fi
2224 ;;
2225 *)
2226 AC_MSG_RESULT([no])
2227 ;;
2228 esac
2229 fi
2230 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2231 _LT_DECL([], [striplib], [1])
2232 ])# _LT_CMD_STRIPLIB
2233
2234
2235 # _LT_PREPARE_MUNGE_PATH_LIST
2236 # ---------------------------
2237 # Make sure func_munge_path_list() is defined correctly.
2238 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2239 [[# func_munge_path_list VARIABLE PATH
2240 # -----------------------------------
2241 # VARIABLE is name of variable containing _space_ separated list of
2242 # directories to be munged by the contents of PATH, which is string
2243 # having a format:
2244 # "DIR[:DIR]:"
2245 # string "DIR[ DIR]" will be prepended to VARIABLE
2246 # ":DIR[:DIR]"
2247 # string "DIR[ DIR]" will be appended to VARIABLE
2248 # "DIRP[:DIRP]::[DIRA:]DIRA"
2249 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2250 # "DIRA[ DIRA]" will be appended to VARIABLE
2251 # "DIR[:DIR]"
2252 # VARIABLE will be replaced by "DIR[ DIR]"
2253 func_munge_path_list ()
2254 {
2255 case x@S|@2 in
2256 x)
2257 ;;
2258 *:)
2259 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2260 ;;
2261 x:*)
2262 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2263 ;;
2264 *::*)
2265 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2266 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2267 ;;
2268 *)
2269 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2270 ;;
2271 esac
2272 }
2273 ]])# _LT_PREPARE_PATH_LIST
2274
2275
2276 # _LT_SYS_DYNAMIC_LINKER([TAG])
2277 # -----------------------------
2278 # PORTME Fill in your ld.so characteristics
2279 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2280 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2281 m4_require([_LT_DECL_EGREP])dnl
2282 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2283 m4_require([_LT_DECL_OBJDUMP])dnl
2284 m4_require([_LT_DECL_SED])dnl
2285 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2286 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2287 AC_MSG_CHECKING([dynamic linker characteristics])
2288 m4_if([$1],
2289 [], [
2290 if test yes = "$GCC"; then
2291 case $host_os in
2292 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2293 *) lt_awk_arg='/^libraries:/' ;;
2294 esac
2295 case $host_os in
2296 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2297 *) lt_sed_strip_eq='s|=/|/|g' ;;
2298 esac
2299 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2300 case $lt_search_path_spec in
2301 *\;*)
2302 # if the path contains ";" then we assume it to be the separator
2303 # otherwise default to the standard path separator (i.e. ":") - it is
2304 # assumed that no part of a normal pathname contains ";" but that should
2305 # okay in the real world where ";" in dirpaths is itself problematic.
2306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2307 ;;
2308 *)
2309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2310 ;;
2311 esac
2312 # Ok, now we have the path, separated by spaces, we can step through it
2313 # and add multilib dir if necessary...
2314 lt_tmp_lt_search_path_spec=
2315 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2316 # ...but if some path component already ends with the multilib dir we assume
2317 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2318 case "$lt_multi_os_dir; $lt_search_path_spec " in
2319 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2320 lt_multi_os_dir=
2321 ;;
2322 esac
2323 for lt_sys_path in $lt_search_path_spec; do
2324 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2326 elif test -n "$lt_multi_os_dir"; then
2327 test -d "$lt_sys_path" && \
2328 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2329 fi
2330 done
2331 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2332 BEGIN {RS = " "; FS = "/|\n";} {
2333 lt_foo = "";
2334 lt_count = 0;
2335 for (lt_i = NF; lt_i > 0; lt_i--) {
2336 if ($lt_i != "" && $lt_i != ".") {
2337 if ($lt_i == "..") {
2338 lt_count++;
2339 } else {
2340 if (lt_count == 0) {
2341 lt_foo = "/" $lt_i lt_foo;
2342 } else {
2343 lt_count--;
2344 }
2345 }
2346 }
2347 }
2348 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2349 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2350 }'`
2351 # AWK program above erroneously prepends '/' to C:/dos/paths
2352 # for these hosts.
2353 case $host_os in
2354 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2355 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2356 esac
2357 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2358 else
2359 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2360 fi])
2361 library_names_spec=
2362 libname_spec='lib$name'
2363 soname_spec=
2364 shrext_cmds=.so
2365 postinstall_cmds=
2366 postuninstall_cmds=
2367 finish_cmds=
2368 finish_eval=
2369 shlibpath_var=
2370 shlibpath_overrides_runpath=unknown
2371 version_type=none
2372 dynamic_linker="$host_os ld.so"
2373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2374 need_lib_prefix=unknown
2375 hardcode_into_libs=no
2376
2377 # when you set need_version to no, make sure it does not cause -set_version
2378 # flags to be left without arguments
2379 need_version=unknown
2380
2381 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2382 [User-defined run-time library search path.])
2383
2384 case $host_os in
2385 aix3*)
2386 version_type=linux # correct to gnu/linux during the next big refactor
2387 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2388 shlibpath_var=LIBPATH
2389
2390 # AIX 3 has no versioning support, so we append a major version to the name.
2391 soname_spec='$libname$release$shared_ext$major'
2392 ;;
2393
2394 aix[[4-9]]*)
2395 version_type=linux # correct to gnu/linux during the next big refactor
2396 need_lib_prefix=no
2397 need_version=no
2398 hardcode_into_libs=yes
2399 if test ia64 = "$host_cpu"; then
2400 # AIX 5 supports IA64
2401 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2402 shlibpath_var=LD_LIBRARY_PATH
2403 else
2404 # With GCC up to 2.95.x, collect2 would create an import file
2405 # for dependence libraries. The import file would start with
2406 # the line '#! .'. This would cause the generated library to
2407 # depend on '.', always an invalid library. This was fixed in
2408 # development snapshots of GCC prior to 3.0.
2409 case $host_os in
2410 aix4 | aix4.[[01]] | aix4.[[01]].*)
2411 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2412 echo ' yes '
2413 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2414 :
2415 else
2416 can_build_shared=no
2417 fi
2418 ;;
2419 esac
2420 # Using Import Files as archive members, it is possible to support
2421 # filename-based versioning of shared library archives on AIX. While
2422 # this would work for both with and without runtime linking, it will
2423 # prevent static linking of such archives. So we do filename-based
2424 # shared library versioning with .so extension only, which is used
2425 # when both runtime linking and shared linking is enabled.
2426 # Unfortunately, runtime linking may impact performance, so we do
2427 # not want this to be the default eventually. Also, we use the
2428 # versioned .so libs for executables only if there is the -brtl
2429 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2430 # To allow for filename-based versioning support, we need to create
2431 # libNAME.so.V as an archive file, containing:
2432 # *) an Import File, referring to the versioned filename of the
2433 # archive as well as the shared archive member, telling the
2434 # bitwidth (32 or 64) of that shared object, and providing the
2435 # list of exported symbols of that shared object, eventually
2436 # decorated with the 'weak' keyword
2437 # *) the shared object with the F_LOADONLY flag set, to really avoid
2438 # it being seen by the linker.
2439 # At run time we better use the real file rather than another symlink,
2440 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2441
2442 case $with_aix_soname,$aix_use_runtimelinking in
2443 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2444 # soname into executable. Probably we can add versioning support to
2445 # collect2, so additional links can be useful in future.
2446 aix,yes) # traditional libtool
2447 dynamic_linker='AIX unversionable lib.so'
2448 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2449 # instead of lib<name>.a to let people know that these are not
2450 # typical AIX shared libraries.
2451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2452 ;;
2453 aix,no) # traditional AIX only
2454 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2455 # We preserve .a as extension for shared libraries through AIX4.2
2456 # and later when we are not doing run time linking.
2457 library_names_spec='$libname$release.a $libname.a'
2458 soname_spec='$libname$release$shared_ext$major'
2459 ;;
2460 svr4,*) # full svr4 only
2461 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2462 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2463 # We do not specify a path in Import Files, so LIBPATH fires.
2464 shlibpath_overrides_runpath=yes
2465 ;;
2466 *,yes) # both, prefer svr4
2467 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2468 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2469 # unpreferred sharedlib libNAME.a needs extra handling
2470 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2471 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2472 # We do not specify a path in Import Files, so LIBPATH fires.
2473 shlibpath_overrides_runpath=yes
2474 ;;
2475 *,no) # both, prefer aix
2476 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2477 library_names_spec='$libname$release.a $libname.a'
2478 soname_spec='$libname$release$shared_ext$major'
2479 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2480 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2481 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2482 ;;
2483 esac
2484 shlibpath_var=LIBPATH
2485 fi
2486 ;;
2487
2488 amigaos*)
2489 case $host_cpu in
2490 powerpc)
2491 # Since July 2007 AmigaOS4 officially supports .so libraries.
2492 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2494 ;;
2495 m68k)
2496 library_names_spec='$libname.ixlibrary $libname.a'
2497 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2498 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2499 ;;
2500 esac
2501 ;;
2502
2503 beos*)
2504 library_names_spec='$libname$shared_ext'
2505 dynamic_linker="$host_os ld.so"
2506 shlibpath_var=LIBRARY_PATH
2507 ;;
2508
2509 bsdi[[45]]*)
2510 version_type=linux # correct to gnu/linux during the next big refactor
2511 need_version=no
2512 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2513 soname_spec='$libname$release$shared_ext$major'
2514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2515 shlibpath_var=LD_LIBRARY_PATH
2516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2518 # the default ld.so.conf also contains /usr/contrib/lib and
2519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2520 # libtool to hard-code these into programs
2521 ;;
2522
2523 cygwin* | mingw* | pw32* | cegcc*)
2524 version_type=windows
2525 shrext_cmds=.dll
2526 need_version=no
2527 need_lib_prefix=no
2528
2529 case $GCC,$cc_basename in
2530 yes,*)
2531 # gcc
2532 library_names_spec='$libname.dll.a'
2533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2534 postinstall_cmds='base_file=`basename \$file`~
2535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2536 dldir=$destdir/`dirname \$dlpath`~
2537 test -d \$dldir || mkdir -p \$dldir~
2538 $install_prog $dir/$dlname \$dldir/$dlname~
2539 chmod a+x \$dldir/$dlname~
2540 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2541 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2542 fi'
2543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2544 dlpath=$dir/\$dldll~
2545 $RM \$dlpath'
2546 shlibpath_overrides_runpath=yes
2547
2548 case $host_os in
2549 cygwin*)
2550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2551 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2552 m4_if([$1], [],[
2553 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2554 ;;
2555 mingw* | cegcc*)
2556 # MinGW DLLs use traditional 'lib' prefix
2557 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2558 ;;
2559 pw32*)
2560 # pw32 DLLs use 'pw' prefix rather than 'lib'
2561 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2562 ;;
2563 esac
2564 dynamic_linker='Win32 ld.exe'
2565 ;;
2566
2567 *,cl*)
2568 # Native MSVC
2569 libname_spec='$name'
2570 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2571 library_names_spec='$libname.dll.lib'
2572
2573 case $build_os in
2574 mingw*)
2575 sys_lib_search_path_spec=
2576 lt_save_ifs=$IFS
2577 IFS=';'
2578 for lt_path in $LIB
2579 do
2580 IFS=$lt_save_ifs
2581 # Let DOS variable expansion print the short 8.3 style file name.
2582 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2583 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2584 done
2585 IFS=$lt_save_ifs
2586 # Convert to MSYS style.
2587 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2588 ;;
2589 cygwin*)
2590 # Convert to unix form, then to dos form, then back to unix form
2591 # but this time dos style (no spaces!) so that the unix form looks
2592 # like /cygdrive/c/PROGRA~1:/cygdr...
2593 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2594 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2595 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2596 ;;
2597 *)
2598 sys_lib_search_path_spec=$LIB
2599 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2600 # It is most probably a Windows format PATH.
2601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2602 else
2603 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2604 fi
2605 # FIXME: find the short name or the path components, as spaces are
2606 # common. (e.g. "Program Files" -> "PROGRA~1")
2607 ;;
2608 esac
2609
2610 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2611 postinstall_cmds='base_file=`basename \$file`~
2612 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2613 dldir=$destdir/`dirname \$dlpath`~
2614 test -d \$dldir || mkdir -p \$dldir~
2615 $install_prog $dir/$dlname \$dldir/$dlname'
2616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2617 dlpath=$dir/\$dldll~
2618 $RM \$dlpath'
2619 shlibpath_overrides_runpath=yes
2620 dynamic_linker='Win32 link.exe'
2621 ;;
2622
2623 *)
2624 # Assume MSVC wrapper
2625 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
2626 dynamic_linker='Win32 ld.exe'
2627 ;;
2628 esac
2629 # FIXME: first we should search . and the directory the executable is in
2630 shlibpath_var=PATH
2631 ;;
2632
2633 darwin* | rhapsody*)
2634 dynamic_linker="$host_os dyld"
2635 version_type=darwin
2636 need_lib_prefix=no
2637 need_version=no
2638 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2639 soname_spec='$libname$release$major$shared_ext'
2640 shlibpath_overrides_runpath=yes
2641 shlibpath_var=DYLD_LIBRARY_PATH
2642 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2643 m4_if([$1], [],[
2644 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2645 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2646 ;;
2647
2648 dgux*)
2649 version_type=linux # correct to gnu/linux during the next big refactor
2650 need_lib_prefix=no
2651 need_version=no
2652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2653 soname_spec='$libname$release$shared_ext$major'
2654 shlibpath_var=LD_LIBRARY_PATH
2655 ;;
2656
2657 freebsd* | dragonfly*)
2658 # DragonFly does not have aout. When/if they implement a new
2659 # versioning mechanism, adjust this.
2660 if test -x /usr/bin/objformat; then
2661 objformat=`/usr/bin/objformat`
2662 else
2663 case $host_os in
2664 freebsd[[23]].*) objformat=aout ;;
2665 *) objformat=elf ;;
2666 esac
2667 fi
2668 version_type=freebsd-$objformat
2669 case $version_type in
2670 freebsd-elf*)
2671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2672 soname_spec='$libname$release$shared_ext$major'
2673 need_version=no
2674 need_lib_prefix=no
2675 ;;
2676 freebsd-*)
2677 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2678 need_version=yes
2679 ;;
2680 esac
2681 shlibpath_var=LD_LIBRARY_PATH
2682 case $host_os in
2683 freebsd2.*)
2684 shlibpath_overrides_runpath=yes
2685 ;;
2686 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2687 shlibpath_overrides_runpath=yes
2688 hardcode_into_libs=yes
2689 ;;
2690 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2691 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2692 shlibpath_overrides_runpath=no
2693 hardcode_into_libs=yes
2694 ;;
2695 *) # from 4.6 on, and DragonFly
2696 shlibpath_overrides_runpath=yes
2697 hardcode_into_libs=yes
2698 ;;
2699 esac
2700 ;;
2701
2702 haiku*)
2703 version_type=linux # correct to gnu/linux during the next big refactor
2704 need_lib_prefix=no
2705 need_version=no
2706 dynamic_linker="$host_os runtime_loader"
2707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2708 soname_spec='$libname$release$shared_ext$major'
2709 shlibpath_var=LIBRARY_PATH
2710 shlibpath_overrides_runpath=no
2711 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2712 hardcode_into_libs=yes
2713 ;;
2714
2715 hpux9* | hpux10* | hpux11*)
2716 # Give a soname corresponding to the major version so that dld.sl refuses to
2717 # link against other versions.
2718 version_type=sunos
2719 need_lib_prefix=no
2720 need_version=no
2721 case $host_cpu in
2722 ia64*)
2723 shrext_cmds='.so'
2724 hardcode_into_libs=yes
2725 dynamic_linker="$host_os dld.so"
2726 shlibpath_var=LD_LIBRARY_PATH
2727 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2729 soname_spec='$libname$release$shared_ext$major'
2730 if test 32 = "$HPUX_IA64_MODE"; then
2731 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2732 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
2733 else
2734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2735 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
2736 fi
2737 ;;
2738 hppa*64*)
2739 shrext_cmds='.sl'
2740 hardcode_into_libs=yes
2741 dynamic_linker="$host_os dld.sl"
2742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2744 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2745 soname_spec='$libname$release$shared_ext$major'
2746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2748 ;;
2749 *)
2750 shrext_cmds='.sl'
2751 dynamic_linker="$host_os dld.sl"
2752 shlibpath_var=SHLIB_PATH
2753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2755 soname_spec='$libname$release$shared_ext$major'
2756 ;;
2757 esac
2758 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2759 postinstall_cmds='chmod 555 $lib'
2760 # or fails outright, so override atomically:
2761 install_override_mode=555
2762 ;;
2763
2764 interix[[3-9]]*)
2765 version_type=linux # correct to gnu/linux during the next big refactor
2766 need_lib_prefix=no
2767 need_version=no
2768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2769 soname_spec='$libname$release$shared_ext$major'
2770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2771 shlibpath_var=LD_LIBRARY_PATH
2772 shlibpath_overrides_runpath=no
2773 hardcode_into_libs=yes
2774 ;;
2775
2776 irix5* | irix6* | nonstopux*)
2777 case $host_os in
2778 nonstopux*) version_type=nonstopux ;;
2779 *)
2780 if test yes = "$lt_cv_prog_gnu_ld"; then
2781 version_type=linux # correct to gnu/linux during the next big refactor
2782 else
2783 version_type=irix
2784 fi ;;
2785 esac
2786 need_lib_prefix=no
2787 need_version=no
2788 soname_spec='$libname$release$shared_ext$major'
2789 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
2790 case $host_os in
2791 irix5* | nonstopux*)
2792 libsuff= shlibsuff=
2793 ;;
2794 *)
2795 case $LD in # libtool.m4 will add one of these switches to LD
2796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2797 libsuff= shlibsuff= libmagic=32-bit;;
2798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2799 libsuff=32 shlibsuff=N32 libmagic=N32;;
2800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2802 *) libsuff= shlibsuff= libmagic=never-match;;
2803 esac
2804 ;;
2805 esac
2806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2807 shlibpath_overrides_runpath=no
2808 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2809 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
2810 hardcode_into_libs=yes
2811 ;;
2812
2813 # No shared lib support for Linux oldld, aout, or coff.
2814 linux*oldld* | linux*aout* | linux*coff*)
2815 dynamic_linker=no
2816 ;;
2817
2818 linux*android*)
2819 version_type=none # Android doesn't support versioned libraries.
2820 need_lib_prefix=no
2821 need_version=no
2822 library_names_spec='$libname$release$shared_ext'
2823 soname_spec='$libname$release$shared_ext'
2824 finish_cmds=
2825 shlibpath_var=LD_LIBRARY_PATH
2826 shlibpath_overrides_runpath=yes
2827
2828 # This implies no fast_install, which is unacceptable.
2829 # Some rework will be needed to allow for fast_install
2830 # before this can be enabled.
2831 hardcode_into_libs=yes
2832
2833 dynamic_linker='Android linker'
2834 # Don't embed -rpath directories since the linker doesn't support them.
2835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2836 ;;
2837
2838 # This must be glibc/ELF.
2839 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2840 version_type=linux # correct to gnu/linux during the next big refactor
2841 need_lib_prefix=no
2842 need_version=no
2843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2844 soname_spec='$libname$release$shared_ext$major'
2845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2846 shlibpath_var=LD_LIBRARY_PATH
2847 shlibpath_overrides_runpath=no
2848
2849 # Some binutils ld are patched to set DT_RUNPATH
2850 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2851 [lt_cv_shlibpath_overrides_runpath=no
2852 save_LDFLAGS=$LDFLAGS
2853 save_libdir=$libdir
2854 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2855 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2856 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2857 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2858 [lt_cv_shlibpath_overrides_runpath=yes])])
2859 LDFLAGS=$save_LDFLAGS
2860 libdir=$save_libdir
2861 ])
2862 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2863
2864 # This implies no fast_install, which is unacceptable.
2865 # Some rework will be needed to allow for fast_install
2866 # before this can be enabled.
2867 hardcode_into_libs=yes
2868
2869 # Ideally, we could use ldconfig to report *all* directores which are
2870 # searched for libraries, however this is still not possible. Aside from not
2871 # being certain /sbin/ldconfig is available, command
2872 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2873 # even though it is searched at run-time. Try to do the best guess by
2874 # appending ld.so.conf contents (and includes) to the search path.
2875 if test -f /etc/ld.so.conf; then
2876 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2877 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2878 fi
2879
2880 # We used to test for /lib/ld.so.1 and disable shared libraries on
2881 # powerpc, because MkLinux only supported shared libraries with the
2882 # GNU dynamic linker. Since this was broken with cross compilers,
2883 # most powerpc-linux boxes support dynamic linking these days and
2884 # people can always --disable-shared, the test was removed, and we
2885 # assume the GNU/Linux dynamic linker is in use.
2886 dynamic_linker='GNU/Linux ld.so'
2887 ;;
2888
2889 netbsdelf*-gnu)
2890 version_type=linux
2891 need_lib_prefix=no
2892 need_version=no
2893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2894 soname_spec='${libname}${release}${shared_ext}$major'
2895 shlibpath_var=LD_LIBRARY_PATH
2896 shlibpath_overrides_runpath=no
2897 hardcode_into_libs=yes
2898 dynamic_linker='NetBSD ld.elf_so'
2899 ;;
2900
2901 netbsd*)
2902 version_type=sunos
2903 need_lib_prefix=no
2904 need_version=no
2905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2906 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2908 dynamic_linker='NetBSD (a.out) ld.so'
2909 else
2910 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2911 soname_spec='$libname$release$shared_ext$major'
2912 dynamic_linker='NetBSD ld.elf_so'
2913 fi
2914 shlibpath_var=LD_LIBRARY_PATH
2915 shlibpath_overrides_runpath=yes
2916 hardcode_into_libs=yes
2917 ;;
2918
2919 newsos6)
2920 version_type=linux # correct to gnu/linux during the next big refactor
2921 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2922 shlibpath_var=LD_LIBRARY_PATH
2923 shlibpath_overrides_runpath=yes
2924 ;;
2925
2926 *nto* | *qnx*)
2927 version_type=qnx
2928 need_lib_prefix=no
2929 need_version=no
2930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2931 soname_spec='$libname$release$shared_ext$major'
2932 shlibpath_var=LD_LIBRARY_PATH
2933 shlibpath_overrides_runpath=no
2934 hardcode_into_libs=yes
2935 dynamic_linker='ldqnx.so'
2936 ;;
2937
2938 openbsd* | bitrig*)
2939 version_type=sunos
2940 sys_lib_dlsearch_path_spec=/usr/lib
2941 need_lib_prefix=no
2942 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2943 need_version=no
2944 else
2945 need_version=yes
2946 fi
2947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2949 shlibpath_var=LD_LIBRARY_PATH
2950 shlibpath_overrides_runpath=yes
2951 ;;
2952
2953 os2*)
2954 libname_spec='$name'
2955 version_type=windows
2956 shrext_cmds=.dll
2957 need_version=no
2958 need_lib_prefix=no
2959 # OS/2 can only load a DLL with a base name of 8 characters or less.
2960 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2961 v=$($ECHO $release$versuffix | tr -d .-);
2962 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2963 $ECHO $n$v`$shared_ext'
2964 library_names_spec='${libname}_dll.$libext'
2965 dynamic_linker='OS/2 ld.exe'
2966 shlibpath_var=BEGINLIBPATH
2967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2969 postinstall_cmds='base_file=`basename \$file`~
2970 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2971 dldir=$destdir/`dirname \$dlpath`~
2972 test -d \$dldir || mkdir -p \$dldir~
2973 $install_prog $dir/$dlname \$dldir/$dlname~
2974 chmod a+x \$dldir/$dlname~
2975 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2976 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2977 fi'
2978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2979 dlpath=$dir/\$dldll~
2980 $RM \$dlpath'
2981 ;;
2982
2983 osf3* | osf4* | osf5*)
2984 version_type=osf
2985 need_lib_prefix=no
2986 need_version=no
2987 soname_spec='$libname$release$shared_ext$major'
2988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2989 shlibpath_var=LD_LIBRARY_PATH
2990 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2992 ;;
2993
2994 rdos*)
2995 dynamic_linker=no
2996 ;;
2997
2998 solaris*)
2999 version_type=linux # correct to gnu/linux during the next big refactor
3000 need_lib_prefix=no
3001 need_version=no
3002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3003 soname_spec='$libname$release$shared_ext$major'
3004 shlibpath_var=LD_LIBRARY_PATH
3005 shlibpath_overrides_runpath=yes
3006 hardcode_into_libs=yes
3007 # ldd complains unless libraries are executable
3008 postinstall_cmds='chmod +x $lib'
3009 ;;
3010
3011 sunos4*)
3012 version_type=sunos
3013 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3014 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3015 shlibpath_var=LD_LIBRARY_PATH
3016 shlibpath_overrides_runpath=yes
3017 if test yes = "$with_gnu_ld"; then
3018 need_lib_prefix=no
3019 fi
3020 need_version=yes
3021 ;;
3022
3023 sysv4 | sysv4.3*)
3024 version_type=linux # correct to gnu/linux during the next big refactor
3025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3026 soname_spec='$libname$release$shared_ext$major'
3027 shlibpath_var=LD_LIBRARY_PATH
3028 case $host_vendor in
3029 sni)
3030 shlibpath_overrides_runpath=no
3031 need_lib_prefix=no
3032 runpath_var=LD_RUN_PATH
3033 ;;
3034 siemens)
3035 need_lib_prefix=no
3036 ;;
3037 motorola)
3038 need_lib_prefix=no
3039 need_version=no
3040 shlibpath_overrides_runpath=no
3041 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3042 ;;
3043 esac
3044 ;;
3045
3046 sysv4*MP*)
3047 if test -d /usr/nec; then
3048 version_type=linux # correct to gnu/linux during the next big refactor
3049 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3050 soname_spec='$libname$shared_ext.$major'
3051 shlibpath_var=LD_LIBRARY_PATH
3052 fi
3053 ;;
3054
3055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3056 version_type=sco
3057 need_lib_prefix=no
3058 need_version=no
3059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3060 soname_spec='$libname$release$shared_ext$major'
3061 shlibpath_var=LD_LIBRARY_PATH
3062 shlibpath_overrides_runpath=yes
3063 hardcode_into_libs=yes
3064 if test yes = "$with_gnu_ld"; then
3065 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3066 else
3067 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3068 case $host_os in
3069 sco3.2v5*)
3070 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3071 ;;
3072 esac
3073 fi
3074 sys_lib_dlsearch_path_spec='/usr/lib'
3075 ;;
3076
3077 tpf*)
3078 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3079 version_type=linux # correct to gnu/linux during the next big refactor
3080 need_lib_prefix=no
3081 need_version=no
3082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3083 shlibpath_var=LD_LIBRARY_PATH
3084 shlibpath_overrides_runpath=no
3085 hardcode_into_libs=yes
3086 ;;
3087
3088 uts4*)
3089 version_type=linux # correct to gnu/linux during the next big refactor
3090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3091 soname_spec='$libname$release$shared_ext$major'
3092 shlibpath_var=LD_LIBRARY_PATH
3093 ;;
3094
3095 *)
3096 dynamic_linker=no
3097 ;;
3098 esac
3099 AC_MSG_RESULT([$dynamic_linker])
3100 test no = "$dynamic_linker" && can_build_shared=no
3101
3102 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3103 if test yes = "$GCC"; then
3104 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3105 fi
3106
3107 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3108 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
3109 fi
3110
3111 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3112 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3113 fi
3114
3115 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3116 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3117
3118 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3119 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3120
3121 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3122 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3123
3124 _LT_DECL([], [variables_saved_for_relink], [1],
3125 [Variables whose values should be saved in libtool wrapper scripts and
3126 restored at link time])
3127 _LT_DECL([], [need_lib_prefix], [0],
3128 [Do we need the "lib" prefix for modules?])
3129 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3130 _LT_DECL([], [version_type], [0], [Library versioning type])
3131 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3132 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3133 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3134 [Is shlibpath searched before the hard-coded library search path?])
3135 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3136 _LT_DECL([], [library_names_spec], [1],
3137 [[List of archive names. First name is the real one, the rest are links.
3138 The last name is the one that the linker finds with -lNAME]])
3139 _LT_DECL([], [soname_spec], [1],
3140 [[The coded name of the library, if different from the real name]])
3141 _LT_DECL([], [install_override_mode], [1],
3142 [Permission mode override for installation of shared libraries])
3143 _LT_DECL([], [postinstall_cmds], [2],
3144 [Command to use after installation of a shared archive])
3145 _LT_DECL([], [postuninstall_cmds], [2],
3146 [Command to use after uninstallation of a shared archive])
3147 _LT_DECL([], [finish_cmds], [2],
3148 [Commands used to finish a libtool library installation in a directory])
3149 _LT_DECL([], [finish_eval], [1],
3150 [[As "finish_cmds", except a single script fragment to be evaled but
3151 not shown]])
3152 _LT_DECL([], [hardcode_into_libs], [0],
3153 [Whether we should hardcode library paths into libraries])
3154 _LT_DECL([], [sys_lib_search_path_spec], [2],
3155 [Compile-time system search path for libraries])
3156 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3157 [Detected run-time system search path for libraries])
3158 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3159 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3160 ])# _LT_SYS_DYNAMIC_LINKER
3161
3162
3163 # _LT_PATH_TOOL_PREFIX(TOOL)
3164 # --------------------------
3165 # find a file program that can recognize shared library
3166 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3167 [m4_require([_LT_DECL_EGREP])dnl
3168 AC_MSG_CHECKING([for $1])
3169 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3170 [case $MAGIC_CMD in
3171 [[\\/*] | ?:[\\/]*])
3172 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3173 ;;
3174 *)
3175 lt_save_MAGIC_CMD=$MAGIC_CMD
3176 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3177 dnl $ac_dummy forces splitting on constant user-supplied paths.
3178 dnl POSIX.2 word splitting is done only on the output of word expansions,
3179 dnl not every word. This closes a longstanding sh security hole.
3180 ac_dummy="m4_if([$2], , $PATH, [$2])"
3181 for ac_dir in $ac_dummy; do
3182 IFS=$lt_save_ifs
3183 test -z "$ac_dir" && ac_dir=.
3184 if test -f "$ac_dir/$1"; then
3185 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3186 if test -n "$file_magic_test_file"; then
3187 case $deplibs_check_method in
3188 "file_magic "*)
3189 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3190 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3191 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3192 $EGREP "$file_magic_regex" > /dev/null; then
3193 :
3194 else
3195 cat <<_LT_EOF 1>&2
3196
3197 *** Warning: the command libtool uses to detect shared libraries,
3198 *** $file_magic_cmd, produces output that libtool cannot recognize.
3199 *** The result is that libtool may fail to recognize shared libraries
3200 *** as such. This will affect the creation of libtool libraries that
3201 *** depend on shared libraries, but programs linked with such libtool
3202 *** libraries will work regardless of this problem. Nevertheless, you
3203 *** may want to report the problem to your system manager and/or to
3204 *** bug-libtool@gnu.org
3205
3206 _LT_EOF
3207 fi ;;
3208 esac
3209 fi
3210 break
3211 fi
3212 done
3213 IFS=$lt_save_ifs
3214 MAGIC_CMD=$lt_save_MAGIC_CMD
3215 ;;
3216 esac])
3217 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3218 if test -n "$MAGIC_CMD"; then
3219 AC_MSG_RESULT($MAGIC_CMD)
3220 else
3221 AC_MSG_RESULT(no)
3222 fi
3223 _LT_DECL([], [MAGIC_CMD], [0],
3224 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3225 ])# _LT_PATH_TOOL_PREFIX
3226
3227 # Old name:
3228 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3229 dnl aclocal-1.4 backwards compatibility:
3230 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3231
3232
3233 # _LT_PATH_MAGIC
3234 # --------------
3235 # find a file program that can recognize a shared library
3236 m4_defun([_LT_PATH_MAGIC],
3237 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3238 if test -z "$lt_cv_path_MAGIC_CMD"; then
3239 if test -n "$ac_tool_prefix"; then
3240 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3241 else
3242 MAGIC_CMD=:
3243 fi
3244 fi
3245 ])# _LT_PATH_MAGIC
3246
3247
3248 # LT_PATH_LD
3249 # ----------
3250 # find the pathname to the GNU or non-GNU linker
3251 AC_DEFUN([LT_PATH_LD],
3252 [AC_REQUIRE([AC_PROG_CC])dnl
3253 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3254 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3255 m4_require([_LT_DECL_SED])dnl
3256 m4_require([_LT_DECL_EGREP])dnl
3257 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3258
3259 AC_ARG_WITH([gnu-ld],
3260 [AS_HELP_STRING([--with-gnu-ld],
3261 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3262 [test no = "$withval" || with_gnu_ld=yes],
3263 [with_gnu_ld=no])dnl
3264
3265 ac_prog=ld
3266 if test yes = "$GCC"; then
3267 # Check if gcc -print-prog-name=ld gives a path.
3268 AC_MSG_CHECKING([for ld used by $CC])
3269 case $host in
3270 *-*-mingw*)
3271 # gcc leaves a trailing carriage return, which upsets mingw
3272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3273 *)
3274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3275 esac
3276 case $ac_prog in
3277 # Accept absolute paths.
3278 [[\\/]]* | ?:[[\\/]]*)
3279 re_direlt='/[[^/]][[^/]]*/\.\./'
3280 # Canonicalize the pathname of ld
3281 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3282 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3283 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3284 done
3285 test -z "$LD" && LD=$ac_prog
3286 ;;
3287 "")
3288 # If it fails, then pretend we aren't using GCC.
3289 ac_prog=ld
3290 ;;
3291 *)
3292 # If it is relative, then search for the first ld in PATH.
3293 with_gnu_ld=unknown
3294 ;;
3295 esac
3296 elif test yes = "$with_gnu_ld"; then
3297 AC_MSG_CHECKING([for GNU ld])
3298 else
3299 AC_MSG_CHECKING([for non-GNU ld])
3300 fi
3301 AC_CACHE_VAL(lt_cv_path_LD,
3302 [if test -z "$LD"; then
3303 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3304 for ac_dir in $PATH; do
3305 IFS=$lt_save_ifs
3306 test -z "$ac_dir" && ac_dir=.
3307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3308 lt_cv_path_LD=$ac_dir/$ac_prog
3309 # Check to see if the program is GNU ld. I'd rather use --version,
3310 # but apparently some variants of GNU ld only accept -v.
3311 # Break only if it was the GNU/non-GNU ld that we prefer.
3312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3313 *GNU* | *'with BFD'*)
3314 test no != "$with_gnu_ld" && break
3315 ;;
3316 *)
3317 test yes != "$with_gnu_ld" && break
3318 ;;
3319 esac
3320 fi
3321 done
3322 IFS=$lt_save_ifs
3323 else
3324 lt_cv_path_LD=$LD # Let the user override the test with a path.
3325 fi])
3326 LD=$lt_cv_path_LD
3327 if test -n "$LD"; then
3328 AC_MSG_RESULT($LD)
3329 else
3330 AC_MSG_RESULT(no)
3331 fi
3332 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3333 _LT_PATH_LD_GNU
3334 AC_SUBST([LD])
3335
3336 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3337 ])# LT_PATH_LD
3338
3339 # Old names:
3340 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3341 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3342 dnl aclocal-1.4 backwards compatibility:
3343 dnl AC_DEFUN([AM_PROG_LD], [])
3344 dnl AC_DEFUN([AC_PROG_LD], [])
3345
3346
3347 # _LT_PATH_LD_GNU
3348 #- --------------
3349 m4_defun([_LT_PATH_LD_GNU],
3350 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3351 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3352 case `$LD -v 2>&1 </dev/null` in
3353 *GNU* | *'with BFD'*)
3354 lt_cv_prog_gnu_ld=yes
3355 ;;
3356 *)
3357 lt_cv_prog_gnu_ld=no
3358 ;;
3359 esac])
3360 with_gnu_ld=$lt_cv_prog_gnu_ld
3361 ])# _LT_PATH_LD_GNU
3362
3363
3364 # _LT_CMD_RELOAD
3365 # --------------
3366 # find reload flag for linker
3367 # -- PORTME Some linkers may need a different reload flag.
3368 m4_defun([_LT_CMD_RELOAD],
3369 [AC_CACHE_CHECK([for $LD option to reload object files],
3370 lt_cv_ld_reload_flag,
3371 [lt_cv_ld_reload_flag='-r'])
3372 reload_flag=$lt_cv_ld_reload_flag
3373 case $reload_flag in
3374 "" | " "*) ;;
3375 *) reload_flag=" $reload_flag" ;;
3376 esac
3377 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3378 case $host_os in
3379 cygwin* | mingw* | pw32* | cegcc*)
3380 if test yes != "$GCC"; then
3381 reload_cmds=false
3382 fi
3383 ;;
3384 darwin*)
3385 if test yes = "$GCC"; then
3386 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3387 else
3388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3389 fi
3390 ;;
3391 esac
3392 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3393 _LT_TAGDECL([], [reload_cmds], [2])dnl
3394 ])# _LT_CMD_RELOAD
3395
3396
3397 # _LT_PATH_DD
3398 # -----------
3399 # find a working dd
3400 m4_defun([_LT_PATH_DD],
3401 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3402 [printf 0123456789abcdef0123456789abcdef >conftest.i
3403 cat conftest.i conftest.i >conftest2.i
3404 : ${lt_DD:=$DD}
3405 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3406 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3407 cmp -s conftest.i conftest.out \
3408 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3409 fi])
3410 rm -f conftest.i conftest2.i conftest.out])
3411 ])# _LT_PATH_DD
3412
3413
3414 # _LT_CMD_TRUNCATE
3415 # ----------------
3416 # find command to truncate a binary pipe
3417 m4_defun([_LT_CMD_TRUNCATE],
3418 [m4_require([_LT_PATH_DD])
3419 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3420 [printf 0123456789abcdef0123456789abcdef >conftest.i
3421 cat conftest.i conftest.i >conftest2.i
3422 lt_cv_truncate_bin=
3423 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3424 cmp -s conftest.i conftest.out \
3425 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3426 fi
3427 rm -f conftest.i conftest2.i conftest.out
3428 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3429 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3430 [Command to truncate a binary pipe])
3431 ])# _LT_CMD_TRUNCATE
3432
3433
3434 # _LT_CHECK_MAGIC_METHOD
3435 # ----------------------
3436 # how to check for library dependencies
3437 # -- PORTME fill in with the dynamic library characteristics
3438 m4_defun([_LT_CHECK_MAGIC_METHOD],
3439 [m4_require([_LT_DECL_EGREP])
3440 m4_require([_LT_DECL_OBJDUMP])
3441 AC_CACHE_CHECK([how to recognize dependent libraries],
3442 lt_cv_deplibs_check_method,
3443 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3444 lt_cv_file_magic_test_file=
3445 lt_cv_deplibs_check_method='unknown'
3446 # Need to set the preceding variable on all platforms that support
3447 # interlibrary dependencies.
3448 # 'none' -- dependencies not supported.
3449 # 'unknown' -- same as none, but documents that we really don't know.
3450 # 'pass_all' -- all dependencies passed with no checks.
3451 # 'test_compile' -- check by making test program.
3452 # 'file_magic [[regex]]' -- check by looking for files in library path
3453 # that responds to the $file_magic_cmd with a given extended regex.
3454 # If you have 'file' or equivalent on your system and you're not sure
3455 # whether 'pass_all' will *always* work, you probably want this one.
3456
3457 case $host_os in
3458 aix[[4-9]]*)
3459 lt_cv_deplibs_check_method=pass_all
3460 ;;
3461
3462 beos*)
3463 lt_cv_deplibs_check_method=pass_all
3464 ;;
3465
3466 bsdi[[45]]*)
3467 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3468 lt_cv_file_magic_cmd='/usr/bin/file -L'
3469 lt_cv_file_magic_test_file=/shlib/libc.so
3470 ;;
3471
3472 cygwin*)
3473 # func_win32_libid is a shell function defined in ltmain.sh
3474 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3475 lt_cv_file_magic_cmd='func_win32_libid'
3476 ;;
3477
3478 mingw* | pw32*)
3479 # Base MSYS/MinGW do not provide the 'file' command needed by
3480 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3481 # unless we find 'file', for example because we are cross-compiling.
3482 if ( file / ) >/dev/null 2>&1; then
3483 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3484 lt_cv_file_magic_cmd='func_win32_libid'
3485 else
3486 # Keep this pattern in sync with the one in func_win32_libid.
3487 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3488 lt_cv_file_magic_cmd='$OBJDUMP -f'
3489 fi
3490 ;;
3491
3492 cegcc*)
3493 # use the weaker test based on 'objdump'. See mingw*.
3494 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3495 lt_cv_file_magic_cmd='$OBJDUMP -f'
3496 ;;
3497
3498 darwin* | rhapsody*)
3499 lt_cv_deplibs_check_method=pass_all
3500 ;;
3501
3502 freebsd* | dragonfly*)
3503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3504 case $host_cpu in
3505 i*86 )
3506 # Not sure whether the presence of OpenBSD here was a mistake.
3507 # Let's accept both of them until this is cleared up.
3508 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3509 lt_cv_file_magic_cmd=/usr/bin/file
3510 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3511 ;;
3512 esac
3513 else
3514 lt_cv_deplibs_check_method=pass_all
3515 fi
3516 ;;
3517
3518 haiku*)
3519 lt_cv_deplibs_check_method=pass_all
3520 ;;
3521
3522 hpux10.20* | hpux11*)
3523 lt_cv_file_magic_cmd=/usr/bin/file
3524 case $host_cpu in
3525 ia64*)
3526 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3527 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3528 ;;
3529 hppa*64*)
3530 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3531 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3532 ;;
3533 *)
3534 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3536 ;;
3537 esac
3538 ;;
3539
3540 interix[[3-9]]*)
3541 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3542 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3543 ;;
3544
3545 irix5* | irix6* | nonstopux*)
3546 case $LD in
3547 *-32|*"-32 ") libmagic=32-bit;;
3548 *-n32|*"-n32 ") libmagic=N32;;
3549 *-64|*"-64 ") libmagic=64-bit;;
3550 *) libmagic=never-match;;
3551 esac
3552 lt_cv_deplibs_check_method=pass_all
3553 ;;
3554
3555 # This must be glibc/ELF.
3556 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3557 lt_cv_deplibs_check_method=pass_all
3558 ;;
3559
3560 netbsd* | netbsdelf*-gnu)
3561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3562 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3563 else
3564 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3565 fi
3566 ;;
3567
3568 newos6*)
3569 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3570 lt_cv_file_magic_cmd=/usr/bin/file
3571 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3572 ;;
3573
3574 *nto* | *qnx*)
3575 lt_cv_deplibs_check_method=pass_all
3576 ;;
3577
3578 openbsd* | bitrig*)
3579 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3580 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3581 else
3582 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3583 fi
3584 ;;
3585
3586 osf3* | osf4* | osf5*)
3587 lt_cv_deplibs_check_method=pass_all
3588 ;;
3589
3590 rdos*)
3591 lt_cv_deplibs_check_method=pass_all
3592 ;;
3593
3594 solaris*)
3595 lt_cv_deplibs_check_method=pass_all
3596 ;;
3597
3598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3599 lt_cv_deplibs_check_method=pass_all
3600 ;;
3601
3602 sysv4 | sysv4.3*)
3603 case $host_vendor in
3604 motorola)
3605 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]]'
3606 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3607 ;;
3608 ncr)
3609 lt_cv_deplibs_check_method=pass_all
3610 ;;
3611 sequent)
3612 lt_cv_file_magic_cmd='/bin/file'
3613 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3614 ;;
3615 sni)
3616 lt_cv_file_magic_cmd='/bin/file'
3617 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3618 lt_cv_file_magic_test_file=/lib/libc.so
3619 ;;
3620 siemens)
3621 lt_cv_deplibs_check_method=pass_all
3622 ;;
3623 pc)
3624 lt_cv_deplibs_check_method=pass_all
3625 ;;
3626 esac
3627 ;;
3628
3629 tpf*)
3630 lt_cv_deplibs_check_method=pass_all
3631 ;;
3632 os2*)
3633 lt_cv_deplibs_check_method=pass_all
3634 ;;
3635 esac
3636 ])
3637
3638 file_magic_glob=
3639 want_nocaseglob=no
3640 if test "$build" = "$host"; then
3641 case $host_os in
3642 mingw* | pw32*)
3643 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3644 want_nocaseglob=yes
3645 else
3646 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3647 fi
3648 ;;
3649 esac
3650 fi
3651
3652 file_magic_cmd=$lt_cv_file_magic_cmd
3653 deplibs_check_method=$lt_cv_deplibs_check_method
3654 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3655
3656 _LT_DECL([], [deplibs_check_method], [1],
3657 [Method to check whether dependent libraries are shared objects])
3658 _LT_DECL([], [file_magic_cmd], [1],
3659 [Command to use when deplibs_check_method = "file_magic"])
3660 _LT_DECL([], [file_magic_glob], [1],
3661 [How to find potential files when deplibs_check_method = "file_magic"])
3662 _LT_DECL([], [want_nocaseglob], [1],
3663 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3664 ])# _LT_CHECK_MAGIC_METHOD
3665
3666
3667 # LT_PATH_NM
3668 # ----------
3669 # find the pathname to a BSD- or MS-compatible name lister
3670 AC_DEFUN([LT_PATH_NM],
3671 [AC_REQUIRE([AC_PROG_CC])dnl
3672 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3673 [if test -n "$NM"; then
3674 # Let the user override the test.
3675 lt_cv_path_NM=$NM
3676 else
3677 lt_nm_to_check=${ac_tool_prefix}nm
3678 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3679 lt_nm_to_check="$lt_nm_to_check nm"
3680 fi
3681 for lt_tmp_nm in $lt_nm_to_check; do
3682 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3683 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3684 IFS=$lt_save_ifs
3685 test -z "$ac_dir" && ac_dir=.
3686 tmp_nm=$ac_dir/$lt_tmp_nm
3687 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3688 # Check to see if the nm accepts a BSD-compat flag.
3689 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3690 # nm: unknown option "B" ignored
3691 # Tru64's nm complains that /dev/null is an invalid object file
3692 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3693 case $build_os in
3694 mingw*) lt_bad_file=conftest.nm/nofile ;;
3695 *) lt_bad_file=/dev/null ;;
3696 esac
3697 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3698 *$lt_bad_file* | *'Invalid file or object type'*)
3699 lt_cv_path_NM="$tmp_nm -B"
3700 break 2
3701 ;;
3702 *)
3703 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3704 */dev/null*)
3705 lt_cv_path_NM="$tmp_nm -p"
3706 break 2
3707 ;;
3708 *)
3709 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3710 continue # so that we can try to find one that supports BSD flags
3711 ;;
3712 esac
3713 ;;
3714 esac
3715 fi
3716 done
3717 IFS=$lt_save_ifs
3718 done
3719 : ${lt_cv_path_NM=no}
3720 fi])
3721 if test no != "$lt_cv_path_NM"; then
3722 NM=$lt_cv_path_NM
3723 else
3724 # Didn't find any BSD compatible name lister, look for dumpbin.
3725 if test -n "$DUMPBIN"; then :
3726 # Let the user override the test.
3727 else
3728 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3729 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3730 *COFF*)
3731 DUMPBIN="$DUMPBIN -symbols -headers"
3732 ;;
3733 *)
3734 DUMPBIN=:
3735 ;;
3736 esac
3737 fi
3738 AC_SUBST([DUMPBIN])
3739 if test : != "$DUMPBIN"; then
3740 NM=$DUMPBIN
3741 fi
3742 fi
3743 test -z "$NM" && NM=nm
3744 AC_SUBST([NM])
3745 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3746
3747 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3748 [lt_cv_nm_interface="BSD nm"
3749 echo "int some_variable = 0;" > conftest.$ac_ext
3750 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3751 (eval "$ac_compile" 2>conftest.err)
3752 cat conftest.err >&AS_MESSAGE_LOG_FD
3753 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3754 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3755 cat conftest.err >&AS_MESSAGE_LOG_FD
3756 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3757 cat conftest.out >&AS_MESSAGE_LOG_FD
3758 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3759 lt_cv_nm_interface="MS dumpbin"
3760 fi
3761 rm -f conftest*])
3762 ])# LT_PATH_NM
3763
3764 # Old names:
3765 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3766 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3767 dnl aclocal-1.4 backwards compatibility:
3768 dnl AC_DEFUN([AM_PROG_NM], [])
3769 dnl AC_DEFUN([AC_PROG_NM], [])
3770
3771 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3772 # --------------------------------
3773 # how to determine the name of the shared library
3774 # associated with a specific link library.
3775 # -- PORTME fill in with the dynamic library characteristics
3776 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3777 [m4_require([_LT_DECL_EGREP])
3778 m4_require([_LT_DECL_OBJDUMP])
3779 m4_require([_LT_DECL_DLLTOOL])
3780 AC_CACHE_CHECK([how to associate runtime and link libraries],
3781 lt_cv_sharedlib_from_linklib_cmd,
3782 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3783
3784 case $host_os in
3785 cygwin* | mingw* | pw32* | cegcc*)
3786 # two different shell functions defined in ltmain.sh;
3787 # decide which one to use based on capabilities of $DLLTOOL
3788 case `$DLLTOOL --help 2>&1` in
3789 *--identify-strict*)
3790 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3791 ;;
3792 *)
3793 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3794 ;;
3795 esac
3796 ;;
3797 *)
3798 # fallback: assume linklib IS sharedlib
3799 lt_cv_sharedlib_from_linklib_cmd=$ECHO
3800 ;;
3801 esac
3802 ])
3803 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3804 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3805
3806 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3807 [Command to associate shared and link libraries])
3808 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3809
3810
3811 # _LT_PATH_MANIFEST_TOOL
3812 # ----------------------
3813 # locate the manifest tool
3814 m4_defun([_LT_PATH_MANIFEST_TOOL],
3815 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3816 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3817 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3818 [lt_cv_path_mainfest_tool=no
3819 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3820 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3821 cat conftest.err >&AS_MESSAGE_LOG_FD
3822 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3823 lt_cv_path_mainfest_tool=yes
3824 fi
3825 rm -f conftest*])
3826 if test yes != "$lt_cv_path_mainfest_tool"; then
3827 MANIFEST_TOOL=:
3828 fi
3829 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3830 ])# _LT_PATH_MANIFEST_TOOL
3831
3832
3833 # _LT_DLL_DEF_P([FILE])
3834 # ---------------------
3835 # True iff FILE is a Windows DLL '.def' file.
3836 # Keep in sync with func_dll_def_p in the libtool script
3837 AC_DEFUN([_LT_DLL_DEF_P],
3838 [dnl
3839 test DEF = "`$SED -n dnl
3840 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3841 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3842 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3843 -e q dnl Only consider the first "real" line
3844 $1`" dnl
3845 ])# _LT_DLL_DEF_P
3846
3847
3848 # LT_LIB_M
3849 # --------
3850 # check for math library
3851 AC_DEFUN([LT_LIB_M],
3852 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3853 LIBM=
3854 case $host in
3855 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3856 # These system don't have libm, or don't need it
3857 ;;
3858 *-ncr-sysv4.3*)
3859 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3860 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3861 ;;
3862 *)
3863 AC_CHECK_LIB(m, cos, LIBM=-lm)
3864 ;;
3865 esac
3866 AC_SUBST([LIBM])
3867 ])# LT_LIB_M
3868
3869 # Old name:
3870 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3871 dnl aclocal-1.4 backwards compatibility:
3872 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3873
3874
3875 # _LT_COMPILER_NO_RTTI([TAGNAME])
3876 # -------------------------------
3877 m4_defun([_LT_COMPILER_NO_RTTI],
3878 [m4_require([_LT_TAG_COMPILER])dnl
3879
3880 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3881
3882 if test yes = "$GCC"; then
3883 case $cc_basename in
3884 nvcc*)
3885 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3886 *)
3887 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3888 esac
3889
3890 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3891 lt_cv_prog_compiler_rtti_exceptions,
3892 [-fno-rtti -fno-exceptions], [],
3893 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3894 fi
3895 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3896 [Compiler flag to turn off builtin functions])
3897 ])# _LT_COMPILER_NO_RTTI
3898
3899
3900 # _LT_CMD_GLOBAL_SYMBOLS
3901 # ----------------------
3902 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3903 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3904 AC_REQUIRE([AC_PROG_CC])dnl
3905 AC_REQUIRE([AC_PROG_AWK])dnl
3906 AC_REQUIRE([LT_PATH_NM])dnl
3907 AC_REQUIRE([LT_PATH_LD])dnl
3908 m4_require([_LT_DECL_SED])dnl
3909 m4_require([_LT_DECL_EGREP])dnl
3910 m4_require([_LT_TAG_COMPILER])dnl
3911
3912 # Check for command to grab the raw symbol name followed by C symbol from nm.
3913 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3914 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3915 [
3916 # These are sane defaults that work on at least a few old systems.
3917 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3918
3919 # Character class describing NM global symbol codes.
3920 symcode='[[BCDEGRST]]'
3921
3922 # Regexp to match symbols that can be accessed directly from C.
3923 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3924
3925 # Define system-specific variables.
3926 case $host_os in
3927 aix*)
3928 symcode='[[BCDT]]'
3929 ;;
3930 cygwin* | mingw* | pw32* | cegcc*)
3931 symcode='[[ABCDGISTW]]'
3932 ;;
3933 hpux*)
3934 if test ia64 = "$host_cpu"; then
3935 symcode='[[ABCDEGRST]]'
3936 fi
3937 ;;
3938 irix* | nonstopux*)
3939 symcode='[[BCDEGRST]]'
3940 ;;
3941 osf*)
3942 symcode='[[BCDEGQRST]]'
3943 ;;
3944 solaris*)
3945 symcode='[[BDRT]]'
3946 ;;
3947 sco3.2v5*)
3948 symcode='[[DT]]'
3949 ;;
3950 sysv4.2uw2*)
3951 symcode='[[DT]]'
3952 ;;
3953 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3954 symcode='[[ABDT]]'
3955 ;;
3956 sysv4)
3957 symcode='[[DFNSTU]]'
3958 ;;
3959 esac
3960
3961 # If we're using GNU nm, then use its standard symbol codes.
3962 case `$NM -V 2>&1` in
3963 *GNU* | *'with BFD'*)
3964 symcode='[[ABCDGIRSTW]]' ;;
3965 esac
3966
3967 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3968 # Gets list of data symbols to import.
3969 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3970 # Adjust the below global symbol transforms to fixup imported variables.
3971 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3972 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3973 lt_c_name_lib_hook="\
3974 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3975 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3976 else
3977 # Disable hooks by default.
3978 lt_cv_sys_global_symbol_to_import=
3979 lt_cdecl_hook=
3980 lt_c_name_hook=
3981 lt_c_name_lib_hook=
3982 fi
3983
3984 # Transform an extracted symbol line into a proper C declaration.
3985 # Some systems (esp. on ia64) link data and code symbols differently,
3986 # so use this general approach.
3987 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3988 $lt_cdecl_hook\
3989 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3990 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
3991
3992 # Transform an extracted symbol line into symbol name and symbol address
3993 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
3994 $lt_c_name_hook\
3995 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3996 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3997
3998 # Transform an extracted symbol line into symbol name with lib prefix and
3999 # symbol address.
4000 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4001 $lt_c_name_lib_hook\
4002 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4003 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4004 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4005
4006 # Handle CRLF in mingw tool chain
4007 opt_cr=
4008 case $build_os in
4009 mingw*)
4010 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4011 ;;
4012 esac
4013
4014 # Try without a prefix underscore, then with it.
4015 for ac_symprfx in "" "_"; do
4016
4017 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4018 symxfrm="\\1 $ac_symprfx\\2 \\2"
4019
4020 # Write the raw and C identifiers.
4021 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4022 # Fake it for dumpbin and say T for any non-static function,
4023 # D for any global variable and I for any imported variable.
4024 # Also find C++ and __fastcall symbols from MSVC++,
4025 # which start with @ or ?.
4026 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4027 " {last_section=section; section=\$ 3};"\
4028 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4029 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4030 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4031 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4032 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4033 " \$ 0!~/External *\|/{next};"\
4034 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4035 " {if(hide[section]) next};"\
4036 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4037 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4038 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4039 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4040 " ' prfx=^$ac_symprfx]"
4041 else
4042 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4043 fi
4044 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4045
4046 # Check to see that the pipe works correctly.
4047 pipe_works=no
4048
4049 rm -f conftest*
4050 cat > conftest.$ac_ext <<_LT_EOF
4051 #ifdef __cplusplus
4052 extern "C" {
4053 #endif
4054 char nm_test_var;
4055 void nm_test_func(void);
4056 void nm_test_func(void){}
4057 #ifdef __cplusplus
4058 }
4059 #endif
4060 int main(){nm_test_var='a';nm_test_func();return(0);}
4061 _LT_EOF
4062
4063 if AC_TRY_EVAL(ac_compile); then
4064 # Now try to grab the symbols.
4065 nlist=conftest.nm
4066 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4067 # Try sorting and uniquifying the output.
4068 if sort "$nlist" | uniq > "$nlist"T; then
4069 mv -f "$nlist"T "$nlist"
4070 else
4071 rm -f "$nlist"T
4072 fi
4073
4074 # Make sure that we snagged all the symbols we need.
4075 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4076 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4077 cat <<_LT_EOF > conftest.$ac_ext
4078 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4079 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4080 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4081 relocations are performed -- see ld's documentation on pseudo-relocs. */
4082 # define LT@&t@_DLSYM_CONST
4083 #elif defined __osf__
4084 /* This system does not cope well with relocations in const data. */
4085 # define LT@&t@_DLSYM_CONST
4086 #else
4087 # define LT@&t@_DLSYM_CONST const
4088 #endif
4089
4090 #ifdef __cplusplus
4091 extern "C" {
4092 #endif
4093
4094 _LT_EOF
4095 # Now generate the symbol file.
4096 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4097
4098 cat <<_LT_EOF >> conftest.$ac_ext
4099
4100 /* The mapping between symbol names and symbols. */
4101 LT@&t@_DLSYM_CONST struct {
4102 const char *name;
4103 void *address;
4104 }
4105 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4106 {
4107 { "@PROGRAM@", (void *) 0 },
4108 _LT_EOF
4109 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4110 cat <<\_LT_EOF >> conftest.$ac_ext
4111 {0, (void *) 0}
4112 };
4113
4114 /* This works around a problem in FreeBSD linker */
4115 #ifdef FREEBSD_WORKAROUND
4116 static const void *lt_preloaded_setup() {
4117 return lt__PROGRAM__LTX_preloaded_symbols;
4118 }
4119 #endif
4120
4121 #ifdef __cplusplus
4122 }
4123 #endif
4124 _LT_EOF
4125 # Now try linking the two files.
4126 mv conftest.$ac_objext conftstm.$ac_objext
4127 lt_globsym_save_LIBS=$LIBS
4128 lt_globsym_save_CFLAGS=$CFLAGS
4129 LIBS=conftstm.$ac_objext
4130 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4131 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4132 pipe_works=yes
4133 fi
4134 LIBS=$lt_globsym_save_LIBS
4135 CFLAGS=$lt_globsym_save_CFLAGS
4136 else
4137 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4138 fi
4139 else
4140 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4141 fi
4142 else
4143 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4144 fi
4145 else
4146 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4147 cat conftest.$ac_ext >&5
4148 fi
4149 rm -rf conftest* conftst*
4150
4151 # Do not use the global_symbol_pipe unless it works.
4152 if test yes = "$pipe_works"; then
4153 break
4154 else
4155 lt_cv_sys_global_symbol_pipe=
4156 fi
4157 done
4158 ])
4159 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4160 lt_cv_sys_global_symbol_to_cdecl=
4161 fi
4162 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4163 AC_MSG_RESULT(failed)
4164 else
4165 AC_MSG_RESULT(ok)
4166 fi
4167
4168 # Response file support.
4169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4170 nm_file_list_spec='@'
4171 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4172 nm_file_list_spec='@'
4173 fi
4174
4175 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4176 [Take the output of nm and produce a listing of raw symbols and C names])
4177 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4178 [Transform the output of nm in a proper C declaration])
4179 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4180 [Transform the output of nm into a list of symbols to manually relocate])
4181 _LT_DECL([global_symbol_to_c_name_address],
4182 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4183 [Transform the output of nm in a C name address pair])
4184 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4185 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4186 [Transform the output of nm in a C name address pair when lib prefix is needed])
4187 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4188 [The name lister interface])
4189 _LT_DECL([], [nm_file_list_spec], [1],
4190 [Specify filename containing input files for $NM])
4191 ]) # _LT_CMD_GLOBAL_SYMBOLS
4192
4193
4194 # _LT_COMPILER_PIC([TAGNAME])
4195 # ---------------------------
4196 m4_defun([_LT_COMPILER_PIC],
4197 [m4_require([_LT_TAG_COMPILER])dnl
4198 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4199 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4200 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4201
4202 m4_if([$1], [CXX], [
4203 # C++ specific cases for pic, static, wl, etc.
4204 if test yes = "$GXX"; then
4205 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4206 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4207
4208 case $host_os in
4209 aix*)
4210 # All AIX code is PIC.
4211 if test ia64 = "$host_cpu"; then
4212 # AIX 5 now supports IA64 processor
4213 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4214 fi
4215 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4216 ;;
4217
4218 amigaos*)
4219 case $host_cpu in
4220 powerpc)
4221 # see comment about AmigaOS4 .so support
4222 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4223 ;;
4224 m68k)
4225 # FIXME: we need at least 68020 code to build shared libraries, but
4226 # adding the '-m68020' flag to GCC prevents building anything better,
4227 # like '-m68040'.
4228 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4229 ;;
4230 esac
4231 ;;
4232
4233 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4234 # PIC is the default for these OSes.
4235 ;;
4236 mingw* | cygwin* | os2* | pw32* | cegcc*)
4237 # This hack is so that the source file can tell whether it is being
4238 # built for inclusion in a dll (and should export symbols for example).
4239 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4240 # (--disable-auto-import) libraries
4241 m4_if([$1], [GCJ], [],
4242 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4243 case $host_os in
4244 os2*)
4245 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4246 ;;
4247 esac
4248 ;;
4249 darwin* | rhapsody*)
4250 # PIC is the default on this platform
4251 # Common symbols not allowed in MH_DYLIB files
4252 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4253 ;;
4254 *djgpp*)
4255 # DJGPP does not support shared libraries at all
4256 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4257 ;;
4258 haiku*)
4259 # PIC is the default for Haiku.
4260 # The "-static" flag exists, but is broken.
4261 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4262 ;;
4263 interix[[3-9]]*)
4264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4265 # Instead, we relocate shared libraries at runtime.
4266 ;;
4267 sysv4*MP*)
4268 if test -d /usr/nec; then
4269 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4270 fi
4271 ;;
4272 hpux*)
4273 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4274 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4275 # sets the default TLS model and affects inlining.
4276 case $host_cpu in
4277 hppa*64*)
4278 ;;
4279 *)
4280 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4281 ;;
4282 esac
4283 ;;
4284 *qnx* | *nto*)
4285 # QNX uses GNU C++, but need to define -shared option too, otherwise
4286 # it will coredump.
4287 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4288 ;;
4289 *)
4290 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4291 ;;
4292 esac
4293 else
4294 case $host_os in
4295 aix[[4-9]]*)
4296 # All AIX code is PIC.
4297 if test ia64 = "$host_cpu"; then
4298 # AIX 5 now supports IA64 processor
4299 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4300 else
4301 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4302 fi
4303 ;;
4304 chorus*)
4305 case $cc_basename in
4306 cxch68*)
4307 # Green Hills C++ Compiler
4308 # _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"
4309 ;;
4310 esac
4311 ;;
4312 mingw* | cygwin* | os2* | pw32* | cegcc*)
4313 # This hack is so that the source file can tell whether it is being
4314 # built for inclusion in a dll (and should export symbols for example).
4315 m4_if([$1], [GCJ], [],
4316 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4317 ;;
4318 dgux*)
4319 case $cc_basename in
4320 ec++*)
4321 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4322 ;;
4323 ghcx*)
4324 # Green Hills C++ Compiler
4325 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4326 ;;
4327 *)
4328 ;;
4329 esac
4330 ;;
4331 freebsd* | dragonfly*)
4332 # FreeBSD uses GNU C++
4333 ;;
4334 hpux9* | hpux10* | hpux11*)
4335 case $cc_basename in
4336 CC*)
4337 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4338 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4339 if test ia64 != "$host_cpu"; then
4340 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4341 fi
4342 ;;
4343 aCC*)
4344 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4346 case $host_cpu in
4347 hppa*64*|ia64*)
4348 # +Z the default
4349 ;;
4350 *)
4351 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4352 ;;
4353 esac
4354 ;;
4355 *)
4356 ;;
4357 esac
4358 ;;
4359 interix*)
4360 # This is c89, which is MS Visual C++ (no shared libs)
4361 # Anyone wants to do a port?
4362 ;;
4363 irix5* | irix6* | nonstopux*)
4364 case $cc_basename in
4365 CC*)
4366 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4367 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4368 # CC pic flag -KPIC is the default.
4369 ;;
4370 *)
4371 ;;
4372 esac
4373 ;;
4374 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4375 case $cc_basename in
4376 KCC*)
4377 # KAI C++ Compiler
4378 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4379 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4380 ;;
4381 ecpc* )
4382 # old Intel C++ for x86_64, which still supported -KPIC.
4383 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4384 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4385 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4386 ;;
4387 icpc* )
4388 # Intel C++, used to be incompatible with GCC.
4389 # ICC 10 doesn't accept -KPIC any more.
4390 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4391 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4392 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4393 ;;
4394 pgCC* | pgcpp*)
4395 # Portland Group C++ compiler
4396 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4397 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4399 ;;
4400 cxx*)
4401 # Compaq C++
4402 # Make sure the PIC flag is empty. It appears that all Alpha
4403 # Linux and Compaq Tru64 Unix objects are PIC.
4404 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4405 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4406 ;;
4407 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4408 # IBM XL 8.0, 9.0 on PPC and BlueGene
4409 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4410 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4411 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4412 ;;
4413 *)
4414 case `$CC -V 2>&1 | sed 5q` in
4415 *Sun\ C*)
4416 # Sun C++ 5.9
4417 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4418 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4419 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4420 ;;
4421 esac
4422 ;;
4423 esac
4424 ;;
4425 lynxos*)
4426 ;;
4427 m88k*)
4428 ;;
4429 mvs*)
4430 case $cc_basename in
4431 cxx*)
4432 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4433 ;;
4434 *)
4435 ;;
4436 esac
4437 ;;
4438 netbsd* | netbsdelf*-gnu)
4439 ;;
4440 *qnx* | *nto*)
4441 # QNX uses GNU C++, but need to define -shared option too, otherwise
4442 # it will coredump.
4443 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4444 ;;
4445 osf3* | osf4* | osf5*)
4446 case $cc_basename in
4447 KCC*)
4448 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4449 ;;
4450 RCC*)
4451 # Rational C++ 2.4.1
4452 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4453 ;;
4454 cxx*)
4455 # Digital/Compaq C++
4456 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4457 # Make sure the PIC flag is empty. It appears that all Alpha
4458 # Linux and Compaq Tru64 Unix objects are PIC.
4459 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4460 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4461 ;;
4462 *)
4463 ;;
4464 esac
4465 ;;
4466 psos*)
4467 ;;
4468 solaris*)
4469 case $cc_basename in
4470 CC* | sunCC*)
4471 # Sun C++ 4.2, 5.x and Centerline C++
4472 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4473 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4474 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4475 ;;
4476 gcx*)
4477 # Green Hills C++ Compiler
4478 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4479 ;;
4480 *)
4481 ;;
4482 esac
4483 ;;
4484 sunos4*)
4485 case $cc_basename in
4486 CC*)
4487 # Sun C++ 4.x
4488 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4489 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4490 ;;
4491 lcc*)
4492 # Lucid
4493 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4494 ;;
4495 *)
4496 ;;
4497 esac
4498 ;;
4499 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4500 case $cc_basename in
4501 CC*)
4502 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4503 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4504 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4505 ;;
4506 esac
4507 ;;
4508 tandem*)
4509 case $cc_basename in
4510 NCC*)
4511 # NonStop-UX NCC 3.20
4512 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4513 ;;
4514 *)
4515 ;;
4516 esac
4517 ;;
4518 vxworks*)
4519 ;;
4520 *)
4521 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4522 ;;
4523 esac
4524 fi
4525 ],
4526 [
4527 if test yes = "$GCC"; then
4528 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4529 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4530
4531 case $host_os in
4532 aix*)
4533 # All AIX code is PIC.
4534 if test ia64 = "$host_cpu"; then
4535 # AIX 5 now supports IA64 processor
4536 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4537 fi
4538 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4539 ;;
4540
4541 amigaos*)
4542 case $host_cpu in
4543 powerpc)
4544 # see comment about AmigaOS4 .so support
4545 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4546 ;;
4547 m68k)
4548 # FIXME: we need at least 68020 code to build shared libraries, but
4549 # adding the '-m68020' flag to GCC prevents building anything better,
4550 # like '-m68040'.
4551 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4552 ;;
4553 esac
4554 ;;
4555
4556 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4557 # PIC is the default for these OSes.
4558 ;;
4559
4560 mingw* | cygwin* | pw32* | os2* | cegcc*)
4561 # This hack is so that the source file can tell whether it is being
4562 # built for inclusion in a dll (and should export symbols for example).
4563 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4564 # (--disable-auto-import) libraries
4565 m4_if([$1], [GCJ], [],
4566 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4567 case $host_os in
4568 os2*)
4569 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4570 ;;
4571 esac
4572 ;;
4573
4574 darwin* | rhapsody*)
4575 # PIC is the default on this platform
4576 # Common symbols not allowed in MH_DYLIB files
4577 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4578 ;;
4579
4580 haiku*)
4581 # PIC is the default for Haiku.
4582 # The "-static" flag exists, but is broken.
4583 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4584 ;;
4585
4586 hpux*)
4587 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4588 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4589 # sets the default TLS model and affects inlining.
4590 case $host_cpu in
4591 hppa*64*)
4592 # +Z the default
4593 ;;
4594 *)
4595 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4596 ;;
4597 esac
4598 ;;
4599
4600 interix[[3-9]]*)
4601 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4602 # Instead, we relocate shared libraries at runtime.
4603 ;;
4604
4605 msdosdjgpp*)
4606 # Just because we use GCC doesn't mean we suddenly get shared libraries
4607 # on systems that don't support them.
4608 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4609 enable_shared=no
4610 ;;
4611
4612 *nto* | *qnx*)
4613 # QNX uses GNU C++, but need to define -shared option too, otherwise
4614 # it will coredump.
4615 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4616 ;;
4617
4618 sysv4*MP*)
4619 if test -d /usr/nec; then
4620 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4621 fi
4622 ;;
4623
4624 *)
4625 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4626 ;;
4627 esac
4628
4629 case $cc_basename in
4630 nvcc*) # Cuda Compiler Driver 2.2
4631 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4632 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4633 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4634 fi
4635 ;;
4636 esac
4637 else
4638 # PORTME Check for flag to pass linker flags through the system compiler.
4639 case $host_os in
4640 aix*)
4641 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4642 if test ia64 = "$host_cpu"; then
4643 # AIX 5 now supports IA64 processor
4644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4645 else
4646 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4647 fi
4648 ;;
4649
4650 darwin* | rhapsody*)
4651 # PIC is the default on this platform
4652 # Common symbols not allowed in MH_DYLIB files
4653 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4654 case $cc_basename in
4655 nagfor*)
4656 # NAG Fortran compiler
4657 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4658 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4659 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4660 ;;
4661 esac
4662 ;;
4663
4664 mingw* | cygwin* | pw32* | os2* | cegcc*)
4665 # This hack is so that the source file can tell whether it is being
4666 # built for inclusion in a dll (and should export symbols for example).
4667 m4_if([$1], [GCJ], [],
4668 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4669 case $host_os in
4670 os2*)
4671 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4672 ;;
4673 esac
4674 ;;
4675
4676 hpux9* | hpux10* | hpux11*)
4677 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4679 # not for PA HP-UX.
4680 case $host_cpu in
4681 hppa*64*|ia64*)
4682 # +Z the default
4683 ;;
4684 *)
4685 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4686 ;;
4687 esac
4688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4689 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4690 ;;
4691
4692 irix5* | irix6* | nonstopux*)
4693 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4694 # PIC (with -KPIC) is the default.
4695 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4696 ;;
4697
4698 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4699 case $cc_basename in
4700 # old Intel for x86_64, which still supported -KPIC.
4701 ecc*)
4702 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4703 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4704 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4705 ;;
4706 # icc used to be incompatible with GCC.
4707 # ICC 10 doesn't accept -KPIC any more.
4708 icc* | ifort*)
4709 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4710 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4711 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4712 ;;
4713 # Lahey Fortran 8.1.
4714 lf95*)
4715 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4716 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4717 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4718 ;;
4719 nagfor*)
4720 # NAG Fortran compiler
4721 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4722 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4723 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4724 ;;
4725 tcc*)
4726 # Fabrice Bellard et al's Tiny C Compiler
4727 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4728 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4730 ;;
4731 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4732 # Portland Group compilers (*not* the Pentium gcc compiler,
4733 # which looks to be a dead project)
4734 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4735 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4736 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4737 ;;
4738 ccc*)
4739 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4740 # All Alpha code is PIC.
4741 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4742 ;;
4743 xl* | bgxl* | bgf* | mpixl*)
4744 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4745 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4746 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4747 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4748 ;;
4749 *)
4750 case `$CC -V 2>&1 | sed 5q` in
4751 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4752 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4753 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4754 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4755 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4756 ;;
4757 *Sun\ F* | *Sun*Fortran*)
4758 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4759 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4760 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4761 ;;
4762 *Sun\ C*)
4763 # Sun C 5.9
4764 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4765 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4766 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4767 ;;
4768 *Intel*\ [[CF]]*Compiler*)
4769 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4770 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4771 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4772 ;;
4773 *Portland\ Group*)
4774 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4775 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4776 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4777 ;;
4778 esac
4779 ;;
4780 esac
4781 ;;
4782
4783 newsos6)
4784 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4785 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4786 ;;
4787
4788 *nto* | *qnx*)
4789 # QNX uses GNU C++, but need to define -shared option too, otherwise
4790 # it will coredump.
4791 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4792 ;;
4793
4794 osf3* | osf4* | osf5*)
4795 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4796 # All OSF/1 code is PIC.
4797 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4798 ;;
4799
4800 rdos*)
4801 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4802 ;;
4803
4804 solaris*)
4805 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4806 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4807 case $cc_basename in
4808 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4809 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4810 *)
4811 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4812 esac
4813 ;;
4814
4815 sunos4*)
4816 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4818 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4819 ;;
4820
4821 sysv4 | sysv4.2uw2* | sysv4.3*)
4822 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4823 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4824 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4825 ;;
4826
4827 sysv4*MP*)
4828 if test -d /usr/nec; then
4829 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4830 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4831 fi
4832 ;;
4833
4834 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4836 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4837 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4838 ;;
4839
4840 unicos*)
4841 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4842 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4843 ;;
4844
4845 uts4*)
4846 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4847 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4848 ;;
4849
4850 *)
4851 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4852 ;;
4853 esac
4854 fi
4855 ])
4856 case $host_os in
4857 # For platforms that do not support PIC, -DPIC is meaningless:
4858 *djgpp*)
4859 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4860 ;;
4861 *)
4862 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4863 ;;
4864 esac
4865
4866 AC_CACHE_CHECK([for $compiler option to produce PIC],
4867 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4868 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4869 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4870
4871 #
4872 # Check to make sure the PIC flag actually works.
4873 #
4874 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4875 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4876 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4877 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4878 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4879 "" | " "*) ;;
4880 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4881 esac],
4882 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4883 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4884 fi
4885 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4886 [Additional compiler flags for building library objects])
4887
4888 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4889 [How to pass a linker flag through the compiler])
4890 #
4891 # Check to make sure the static flag actually works.
4892 #
4893 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4894 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4895 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4896 $lt_tmp_static_flag,
4897 [],
4898 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4899 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4900 [Compiler flag to prevent dynamic linking])
4901 ])# _LT_COMPILER_PIC
4902
4903
4904 # _LT_LINKER_SHLIBS([TAGNAME])
4905 # ----------------------------
4906 # See if the linker supports building shared libraries.
4907 m4_defun([_LT_LINKER_SHLIBS],
4908 [AC_REQUIRE([LT_PATH_LD])dnl
4909 AC_REQUIRE([LT_PATH_NM])dnl
4910 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4911 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4912 m4_require([_LT_DECL_EGREP])dnl
4913 m4_require([_LT_DECL_SED])dnl
4914 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4915 m4_require([_LT_TAG_COMPILER])dnl
4916 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4917 m4_if([$1], [CXX], [
4918 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4919 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4920 case $host_os in
4921 aix[[4-9]]*)
4922 # If we're using GNU nm, then we don't want the "-C" option.
4923 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4924 # Without the "-l" option, or with the "-B" option, AIX nm treats
4925 # weak defined symbols like other global defined symbols, whereas
4926 # GNU nm marks them as "W".
4927 # While the 'weak' keyword is ignored in the Export File, we need
4928 # it in the Import File for the 'aix-soname' feature, so we have
4929 # to replace the "-B" option with "-P" for AIX nm.
4930 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4931 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
4932 else
4933 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
4934 fi
4935 ;;
4936 pw32*)
4937 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
4938 ;;
4939 cygwin* | mingw* | cegcc*)
4940 case $cc_basename in
4941 cl*)
4942 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4943 ;;
4944 *)
4945 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4946 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4947 ;;
4948 esac
4949 ;;
4950 linux* | k*bsd*-gnu | gnu*)
4951 _LT_TAGVAR(link_all_deplibs, $1)=no
4952 ;;
4953 *)
4954 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4955 ;;
4956 esac
4957 ], [
4958 runpath_var=
4959 _LT_TAGVAR(allow_undefined_flag, $1)=
4960 _LT_TAGVAR(always_export_symbols, $1)=no
4961 _LT_TAGVAR(archive_cmds, $1)=
4962 _LT_TAGVAR(archive_expsym_cmds, $1)=
4963 _LT_TAGVAR(compiler_needs_object, $1)=no
4964 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4965 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4966 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4967 _LT_TAGVAR(hardcode_automatic, $1)=no
4968 _LT_TAGVAR(hardcode_direct, $1)=no
4969 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4970 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4971 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4972 _LT_TAGVAR(hardcode_minus_L, $1)=no
4973 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4974 _LT_TAGVAR(inherit_rpath, $1)=no
4975 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4976 _LT_TAGVAR(module_cmds, $1)=
4977 _LT_TAGVAR(module_expsym_cmds, $1)=
4978 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4979 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4980 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4981 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4982 # include_expsyms should be a list of space-separated symbols to be *always*
4983 # included in the symbol list
4984 _LT_TAGVAR(include_expsyms, $1)=
4985 # exclude_expsyms can be an extended regexp of symbols to exclude
4986 # it will be wrapped by ' (' and ')$', so one must not match beginning or
4987 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4988 # as well as any symbol that contains 'd'.
4989 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4990 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4991 # platforms (ab)use it in PIC code, but their linkers get confused if
4992 # the symbol is explicitly referenced. Since portable code cannot
4993 # rely on this symbol name, it's probably fine to never include it in
4994 # preloaded symbol tables.
4995 # Exclude shared library initialization/finalization symbols.
4996 dnl Note also adjust exclude_expsyms for C++ above.
4997 extract_expsyms_cmds=
4998
4999 case $host_os in
5000 cygwin* | mingw* | pw32* | cegcc*)
5001 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5002 # When not using gcc, we currently assume that we are using
5003 # Microsoft Visual C++.
5004 if test yes != "$GCC"; then
5005 with_gnu_ld=no
5006 fi
5007 ;;
5008 interix*)
5009 # we just hope/assume this is gcc and not c89 (= MSVC++)
5010 with_gnu_ld=yes
5011 ;;
5012 openbsd* | bitrig*)
5013 with_gnu_ld=no
5014 ;;
5015 linux* | k*bsd*-gnu | gnu*)
5016 _LT_TAGVAR(link_all_deplibs, $1)=no
5017 ;;
5018 esac
5019
5020 _LT_TAGVAR(ld_shlibs, $1)=yes
5021
5022 # On some targets, GNU ld is compatible enough with the native linker
5023 # that we're better off using the native interface for both.
5024 lt_use_gnu_ld_interface=no
5025 if test yes = "$with_gnu_ld"; then
5026 case $host_os in
5027 aix*)
5028 # The AIX port of GNU ld has always aspired to compatibility
5029 # with the native linker. However, as the warning in the GNU ld
5030 # block says, versions before 2.19.5* couldn't really create working
5031 # shared libraries, regardless of the interface used.
5032 case `$LD -v 2>&1` in
5033 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5034 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5035 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5036 *)
5037 lt_use_gnu_ld_interface=yes
5038 ;;
5039 esac
5040 ;;
5041 *)
5042 lt_use_gnu_ld_interface=yes
5043 ;;
5044 esac
5045 fi
5046
5047 if test yes = "$lt_use_gnu_ld_interface"; then
5048 # If archive_cmds runs LD, not CC, wlarc should be empty
5049 wlarc='$wl'
5050
5051 # Set some defaults for GNU ld with shared library support. These
5052 # are reset later if shared libraries are not supported. Putting them
5053 # here allows them to be overridden if necessary.
5054 runpath_var=LD_RUN_PATH
5055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5057 # ancient GNU ld didn't support --whole-archive et. al.
5058 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5059 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5060 else
5061 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5062 fi
5063 supports_anon_versioning=no
5064 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5065 *GNU\ gold*) supports_anon_versioning=yes ;;
5066 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5067 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5068 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5069 *\ 2.11.*) ;; # other 2.11 versions
5070 *) supports_anon_versioning=yes ;;
5071 esac
5072
5073 # See if GNU ld supports shared libraries.
5074 case $host_os in
5075 aix[[3-9]]*)
5076 # On AIX/PPC, the GNU linker is very broken
5077 if test ia64 != "$host_cpu"; then
5078 _LT_TAGVAR(ld_shlibs, $1)=no
5079 cat <<_LT_EOF 1>&2
5080
5081 *** Warning: the GNU linker, at least up to release 2.19, is reported
5082 *** to be unable to reliably create shared libraries on AIX.
5083 *** Therefore, libtool is disabling shared libraries support. If you
5084 *** really care for shared libraries, you may want to install binutils
5085 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5086 *** You will then need to restart the configuration process.
5087
5088 _LT_EOF
5089 fi
5090 ;;
5091
5092 amigaos*)
5093 case $host_cpu in
5094 powerpc)
5095 # see comment about AmigaOS4 .so support
5096 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5097 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5098 ;;
5099 m68k)
5100 _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)'
5101 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5102 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5103 ;;
5104 esac
5105 ;;
5106
5107 beos*)
5108 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5109 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5110 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5111 # support --undefined. This deserves some investigation. FIXME
5112 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5113 else
5114 _LT_TAGVAR(ld_shlibs, $1)=no
5115 fi
5116 ;;
5117
5118 cygwin* | mingw* | pw32* | cegcc*)
5119 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5120 # as there is no search path for DLLs.
5121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5122 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5123 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5124 _LT_TAGVAR(always_export_symbols, $1)=no
5125 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5126 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5127 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5128
5129 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5130 _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'
5131 # If the export-symbols file already is a .def file, use it as
5132 # is; otherwise, prepend EXPORTS...
5133 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5134 cp $export_symbols $output_objdir/$soname.def;
5135 else
5136 echo EXPORTS > $output_objdir/$soname.def;
5137 cat $export_symbols >> $output_objdir/$soname.def;
5138 fi~
5139 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5140 else
5141 _LT_TAGVAR(ld_shlibs, $1)=no
5142 fi
5143 ;;
5144
5145 haiku*)
5146 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5147 _LT_TAGVAR(link_all_deplibs, $1)=yes
5148 ;;
5149
5150 os2*)
5151 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5152 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5153 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5154 shrext_cmds=.dll
5155 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5158 $ECHO EXPORTS >> $output_objdir/$libname.def~
5159 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5160 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5161 emximp -o $lib $output_objdir/$libname.def'
5162 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5163 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5164 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5165 $ECHO EXPORTS >> $output_objdir/$libname.def~
5166 prefix_cmds="$SED"~
5167 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5168 prefix_cmds="$prefix_cmds -e 1d";
5169 fi~
5170 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5171 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5172 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5173 emximp -o $lib $output_objdir/$libname.def'
5174 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5175 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5176 ;;
5177
5178 interix[[3-9]]*)
5179 _LT_TAGVAR(hardcode_direct, $1)=no
5180 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5181 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5182 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5184 # Instead, shared libraries are loaded at an image base (0x10000000 by
5185 # default) and relocated if they conflict, which is a slow very memory
5186 # consuming and fragmenting process. To avoid this, we pick a random,
5187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5189 _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'
5190 _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'
5191 ;;
5192
5193 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5194 tmp_diet=no
5195 if test linux-dietlibc = "$host_os"; then
5196 case $cc_basename in
5197 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5198 esac
5199 fi
5200 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5201 && test no = "$tmp_diet"
5202 then
5203 tmp_addflag=' $pic_flag'
5204 tmp_sharedflag='-shared'
5205 case $cc_basename,$host_cpu in
5206 pgcc*) # Portland Group C compiler
5207 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5208 tmp_addflag=' $pic_flag'
5209 ;;
5210 pgf77* | pgf90* | pgf95* | pgfortran*)
5211 # Portland Group f77 and f90 compilers
5212 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5213 tmp_addflag=' $pic_flag -Mnomain' ;;
5214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5215 tmp_addflag=' -i_dynamic' ;;
5216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5217 tmp_addflag=' -i_dynamic -nofor_main' ;;
5218 ifc* | ifort*) # Intel Fortran compiler
5219 tmp_addflag=' -nofor_main' ;;
5220 lf95*) # Lahey Fortran 8.1
5221 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5222 tmp_sharedflag='--shared' ;;
5223 nagfor*) # NAGFOR 5.3
5224 tmp_sharedflag='-Wl,-shared' ;;
5225 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5226 tmp_sharedflag='-qmkshrobj'
5227 tmp_addflag= ;;
5228 nvcc*) # Cuda Compiler Driver 2.2
5229 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5230 _LT_TAGVAR(compiler_needs_object, $1)=yes
5231 ;;
5232 esac
5233 case `$CC -V 2>&1 | sed 5q` in
5234 *Sun\ C*) # Sun C 5.9
5235 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5236 _LT_TAGVAR(compiler_needs_object, $1)=yes
5237 tmp_sharedflag='-G' ;;
5238 *Sun\ F*) # Sun Fortran 8.3
5239 tmp_sharedflag='-G' ;;
5240 esac
5241 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5242
5243 if test yes = "$supports_anon_versioning"; then
5244 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5246 echo "local: *; };" >> $output_objdir/$libname.ver~
5247 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5248 fi
5249
5250 case $cc_basename in
5251 tcc*)
5252 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5253 ;;
5254 xlf* | bgf* | bgxlf* | mpixlf*)
5255 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5256 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5257 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5258 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5259 if test yes = "$supports_anon_versioning"; then
5260 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5261 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5262 echo "local: *; };" >> $output_objdir/$libname.ver~
5263 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5264 fi
5265 ;;
5266 esac
5267 else
5268 _LT_TAGVAR(ld_shlibs, $1)=no
5269 fi
5270 ;;
5271
5272 netbsd* | netbsdelf*-gnu)
5273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5274 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5275 wlarc=
5276 else
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5278 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5279 fi
5280 ;;
5281
5282 solaris*)
5283 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5284 _LT_TAGVAR(ld_shlibs, $1)=no
5285 cat <<_LT_EOF 1>&2
5286
5287 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5288 *** create shared libraries on Solaris systems. Therefore, libtool
5289 *** is disabling shared libraries support. We urge you to upgrade GNU
5290 *** binutils to release 2.9.1 or newer. Another option is to modify
5291 *** your PATH or compiler configuration so that the native linker is
5292 *** used, and then restart.
5293
5294 _LT_EOF
5295 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5297 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5298 else
5299 _LT_TAGVAR(ld_shlibs, $1)=no
5300 fi
5301 ;;
5302
5303 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5304 case `$LD -v 2>&1` in
5305 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5306 _LT_TAGVAR(ld_shlibs, $1)=no
5307 cat <<_LT_EOF 1>&2
5308
5309 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5310 *** reliably create shared libraries on SCO systems. Therefore, libtool
5311 *** is disabling shared libraries support. We urge you to upgrade GNU
5312 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5313 *** your PATH or compiler configuration so that the native linker is
5314 *** used, and then restart.
5315
5316 _LT_EOF
5317 ;;
5318 *)
5319 # For security reasons, it is highly recommended that you always
5320 # use absolute paths for naming shared libraries, and exclude the
5321 # DT_RUNPATH tag from executables and libraries. But doing so
5322 # requires that you compile everything twice, which is a pain.
5323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5325 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5326 _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'
5327 else
5328 _LT_TAGVAR(ld_shlibs, $1)=no
5329 fi
5330 ;;
5331 esac
5332 ;;
5333
5334 sunos4*)
5335 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5336 wlarc=
5337 _LT_TAGVAR(hardcode_direct, $1)=yes
5338 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5339 ;;
5340
5341 *)
5342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5343 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5344 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5345 else
5346 _LT_TAGVAR(ld_shlibs, $1)=no
5347 fi
5348 ;;
5349 esac
5350
5351 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5352 runpath_var=
5353 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5354 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5355 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5356 fi
5357 else
5358 # PORTME fill in a description of your system's linker (not GNU ld)
5359 case $host_os in
5360 aix3*)
5361 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5362 _LT_TAGVAR(always_export_symbols, $1)=yes
5363 _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'
5364 # Note: this linker hardcodes the directories in LIBPATH if there
5365 # are no directories specified by -L.
5366 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5367 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5368 # Neither direct hardcoding nor static linking is supported with a
5369 # broken collect2.
5370 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5371 fi
5372 ;;
5373
5374 aix[[4-9]]*)
5375 if test ia64 = "$host_cpu"; then
5376 # On IA64, the linker does run time linking by default, so we don't
5377 # have to do anything special.
5378 aix_use_runtimelinking=no
5379 exp_sym_flag='-Bexport'
5380 no_entry_flag=
5381 else
5382 # If we're using GNU nm, then we don't want the "-C" option.
5383 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5384 # Without the "-l" option, or with the "-B" option, AIX nm treats
5385 # weak defined symbols like other global defined symbols, whereas
5386 # GNU nm marks them as "W".
5387 # While the 'weak' keyword is ignored in the Export File, we need
5388 # it in the Import File for the 'aix-soname' feature, so we have
5389 # to replace the "-B" option with "-P" for AIX nm.
5390 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5391 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5392 else
5393 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5394 fi
5395 aix_use_runtimelinking=no
5396
5397 # Test if we are trying to use run time linking or normal
5398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5399 # have runtime linking enabled, and use it for executables.
5400 # For shared libraries, we enable/disable runtime linking
5401 # depending on the kind of the shared library created -
5402 # when "with_aix_soname,aix_use_runtimelinking" is:
5403 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5404 # "aix,yes" lib.so shared, rtl:yes, for executables
5405 # lib.a static archive
5406 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5407 # lib.a(lib.so.V) shared, rtl:no, for executables
5408 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5409 # lib.a(lib.so.V) shared, rtl:no
5410 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5411 # lib.a static archive
5412 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5413 for ld_flag in $LDFLAGS; do
5414 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5415 aix_use_runtimelinking=yes
5416 break
5417 fi
5418 done
5419 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5420 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5421 # so we don't have lib.a shared libs to link our executables.
5422 # We have to force runtime linking in this case.
5423 aix_use_runtimelinking=yes
5424 LDFLAGS="$LDFLAGS -Wl,-brtl"
5425 fi
5426 ;;
5427 esac
5428
5429 exp_sym_flag='-bexport'
5430 no_entry_flag='-bnoentry'
5431 fi
5432
5433 # When large executables or shared objects are built, AIX ld can
5434 # have problems creating the table of contents. If linking a library
5435 # or program results in "error TOC overflow" add -mminimal-toc to
5436 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5437 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5438
5439 _LT_TAGVAR(archive_cmds, $1)=''
5440 _LT_TAGVAR(hardcode_direct, $1)=yes
5441 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5442 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5443 _LT_TAGVAR(link_all_deplibs, $1)=yes
5444 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5445 case $with_aix_soname,$aix_use_runtimelinking in
5446 aix,*) ;; # traditional, no import file
5447 svr4,* | *,yes) # use import file
5448 # The Import File defines what to hardcode.
5449 _LT_TAGVAR(hardcode_direct, $1)=no
5450 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5451 ;;
5452 esac
5453
5454 if test yes = "$GCC"; then
5455 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5456 # We only want to do this on AIX 4.2 and lower, the check
5457 # below for broken collect2 doesn't work under 4.3+
5458 collect2name=`$CC -print-prog-name=collect2`
5459 if test -f "$collect2name" &&
5460 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5461 then
5462 # We have reworked collect2
5463 :
5464 else
5465 # We have old collect2
5466 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5467 # It fails to find uninstalled libraries when the uninstalled
5468 # path is not listed in the libpath. Setting hardcode_minus_L
5469 # to unsupported forces relinking
5470 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5471 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5472 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5473 fi
5474 ;;
5475 esac
5476 shared_flag='-shared'
5477 if test yes = "$aix_use_runtimelinking"; then
5478 shared_flag="$shared_flag "'$wl-G'
5479 fi
5480 # Need to ensure runtime linking is disabled for the traditional
5481 # shared library, or the linker may eventually find shared libraries
5482 # /with/ Import File - we do not want to mix them.
5483 shared_flag_aix='-shared'
5484 shared_flag_svr4='-shared $wl-G'
5485 else
5486 # not using gcc
5487 if test ia64 = "$host_cpu"; then
5488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5489 # chokes on -Wl,-G. The following line is correct:
5490 shared_flag='-G'
5491 else
5492 if test yes = "$aix_use_runtimelinking"; then
5493 shared_flag='$wl-G'
5494 else
5495 shared_flag='$wl-bM:SRE'
5496 fi
5497 shared_flag_aix='$wl-bM:SRE'
5498 shared_flag_svr4='$wl-G'
5499 fi
5500 fi
5501
5502 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5503 # It seems that -bexpall does not export symbols beginning with
5504 # underscore (_), so it is better to generate a list of symbols to export.
5505 _LT_TAGVAR(always_export_symbols, $1)=yes
5506 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5507 # Warning - without using the other runtime loading flags (-brtl),
5508 # -berok will link without error, but may produce a broken library.
5509 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5510 # Determine the default libpath from the value encoded in an
5511 # empty executable.
5512 _LT_SYS_MODULE_PATH_AIX([$1])
5513 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5514 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5515 else
5516 if test ia64 = "$host_cpu"; then
5517 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5518 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5519 _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"
5520 else
5521 # Determine the default libpath from the value encoded in an
5522 # empty executable.
5523 _LT_SYS_MODULE_PATH_AIX([$1])
5524 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5525 # Warning - without using the other run time loading flags,
5526 # -berok will link without error, but may produce a broken library.
5527 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5528 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5529 if test yes = "$with_gnu_ld"; then
5530 # We only use this code for GNU lds that support --whole-archive.
5531 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5532 else
5533 # Exported symbols can be pulled into shared objects from archives
5534 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5535 fi
5536 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5537 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5538 # -brtl affects multiple linker settings, -berok does not and is overridden later
5539 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5540 if test svr4 != "$with_aix_soname"; then
5541 # This is similar to how AIX traditionally builds its shared libraries.
5542 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5543 fi
5544 if test aix != "$with_aix_soname"; then
5545 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5546 else
5547 # used by -dlpreopen to get the symbols
5548 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5549 fi
5550 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5551 fi
5552 fi
5553 ;;
5554
5555 amigaos*)
5556 case $host_cpu in
5557 powerpc)
5558 # see comment about AmigaOS4 .so support
5559 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5560 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5561 ;;
5562 m68k)
5563 _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)'
5564 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5565 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5566 ;;
5567 esac
5568 ;;
5569
5570 bsdi[[45]]*)
5571 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5572 ;;
5573
5574 cygwin* | mingw* | pw32* | cegcc*)
5575 # When not using gcc, we currently assume that we are using
5576 # Microsoft Visual C++.
5577 # hardcode_libdir_flag_spec is actually meaningless, as there is
5578 # no search path for DLLs.
5579 case $cc_basename in
5580 cl*)
5581 # Native MSVC
5582 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5583 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5584 _LT_TAGVAR(always_export_symbols, $1)=yes
5585 _LT_TAGVAR(file_list_spec, $1)='@'
5586 # Tell ltmain to make .lib files, not .a files.
5587 libext=lib
5588 # Tell ltmain to make .dll files, not .so files.
5589 shrext_cmds=.dll
5590 # FIXME: Setting linknames here is a bad hack.
5591 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5592 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5593 cp "$export_symbols" "$output_objdir/$soname.def";
5594 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5595 else
5596 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5597 fi~
5598 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5599 linknames='
5600 # The linker will not automatically build a static lib if we build a DLL.
5601 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5602 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5603 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5604 _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'
5605 # Don't use ranlib
5606 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5607 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5608 lt_tool_outputfile="@TOOL_OUTPUT@"~
5609 case $lt_outputfile in
5610 *.exe|*.EXE) ;;
5611 *)
5612 lt_outputfile=$lt_outputfile.exe
5613 lt_tool_outputfile=$lt_tool_outputfile.exe
5614 ;;
5615 esac~
5616 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5617 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5618 $RM "$lt_outputfile.manifest";
5619 fi'
5620 ;;
5621 *)
5622 # Assume MSVC wrapper
5623 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5624 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5625 # Tell ltmain to make .lib files, not .a files.
5626 libext=lib
5627 # Tell ltmain to make .dll files, not .so files.
5628 shrext_cmds=.dll
5629 # FIXME: Setting linknames here is a bad hack.
5630 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5631 # The linker will automatically build a .lib file if we build a DLL.
5632 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5633 # FIXME: Should let the user specify the lib program.
5634 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5635 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5636 ;;
5637 esac
5638 ;;
5639
5640 darwin* | rhapsody*)
5641 _LT_DARWIN_LINKER_FEATURES($1)
5642 ;;
5643
5644 dgux*)
5645 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5646 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5647 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5648 ;;
5649
5650 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5651 # support. Future versions do this automatically, but an explicit c++rt0.o
5652 # does not break anything, and helps significantly (at the cost of a little
5653 # extra space).
5654 freebsd2.2*)
5655 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5656 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5657 _LT_TAGVAR(hardcode_direct, $1)=yes
5658 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5659 ;;
5660
5661 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5662 freebsd2.*)
5663 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5664 _LT_TAGVAR(hardcode_direct, $1)=yes
5665 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5666 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5667 ;;
5668
5669 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5670 freebsd* | dragonfly*)
5671 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5672 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5673 _LT_TAGVAR(hardcode_direct, $1)=yes
5674 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5675 ;;
5676
5677 hpux9*)
5678 if test yes = "$GCC"; then
5679 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5680 else
5681 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5682 fi
5683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5684 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5685 _LT_TAGVAR(hardcode_direct, $1)=yes
5686
5687 # hardcode_minus_L: Not really in the search PATH,
5688 # but as the default location of the library.
5689 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5691 ;;
5692
5693 hpux10*)
5694 if test yes,no = "$GCC,$with_gnu_ld"; then
5695 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5696 else
5697 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5698 fi
5699 if test no = "$with_gnu_ld"; then
5700 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5701 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5702 _LT_TAGVAR(hardcode_direct, $1)=yes
5703 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5704 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5705 # hardcode_minus_L: Not really in the search PATH,
5706 # but as the default location of the library.
5707 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5708 fi
5709 ;;
5710
5711 hpux11*)
5712 if test yes,no = "$GCC,$with_gnu_ld"; then
5713 case $host_cpu in
5714 hppa*64*)
5715 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5716 ;;
5717 ia64*)
5718 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5719 ;;
5720 *)
5721 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5722 ;;
5723 esac
5724 else
5725 case $host_cpu in
5726 hppa*64*)
5727 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5728 ;;
5729 ia64*)
5730 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5731 ;;
5732 *)
5733 m4_if($1, [], [
5734 # Older versions of the 11.00 compiler do not understand -b yet
5735 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5736 _LT_LINKER_OPTION([if $CC understands -b],
5737 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5738 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5739 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5740 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5741 ;;
5742 esac
5743 fi
5744 if test no = "$with_gnu_ld"; then
5745 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5746 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5747
5748 case $host_cpu in
5749 hppa*64*|ia64*)
5750 _LT_TAGVAR(hardcode_direct, $1)=no
5751 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5752 ;;
5753 *)
5754 _LT_TAGVAR(hardcode_direct, $1)=yes
5755 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5757
5758 # hardcode_minus_L: Not really in the search PATH,
5759 # but as the default location of the library.
5760 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5761 ;;
5762 esac
5763 fi
5764 ;;
5765
5766 irix5* | irix6* | nonstopux*)
5767 if test yes = "$GCC"; then
5768 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5769 # Try to use the -exported_symbol ld option, if it does not
5770 # work, assume that -exports_file does not work either and
5771 # implicitly export all symbols.
5772 # This should be the same for all languages, so no per-tag cache variable.
5773 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5774 [lt_cv_irix_exported_symbol],
5775 [save_LDFLAGS=$LDFLAGS
5776 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5777 AC_LINK_IFELSE(
5778 [AC_LANG_SOURCE(
5779 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5780 [C++], [[int foo (void) { return 0; }]],
5781 [Fortran 77], [[
5782 subroutine foo
5783 end]],
5784 [Fortran], [[
5785 subroutine foo
5786 end]])])],
5787 [lt_cv_irix_exported_symbol=yes],
5788 [lt_cv_irix_exported_symbol=no])
5789 LDFLAGS=$save_LDFLAGS])
5790 if test yes = "$lt_cv_irix_exported_symbol"; then
5791 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
5792 fi
5793 _LT_TAGVAR(link_all_deplibs, $1)=no
5794 else
5795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5796 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
5797 fi
5798 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5799 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5800 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5801 _LT_TAGVAR(inherit_rpath, $1)=yes
5802 _LT_TAGVAR(link_all_deplibs, $1)=yes
5803 ;;
5804
5805 linux*)
5806 case $cc_basename in
5807 tcc*)
5808 # Fabrice Bellard et al's Tiny C Compiler
5809 _LT_TAGVAR(ld_shlibs, $1)=yes
5810 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5811 ;;
5812 esac
5813 ;;
5814
5815 netbsd* | netbsdelf*-gnu)
5816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5817 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5818 else
5819 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5820 fi
5821 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5822 _LT_TAGVAR(hardcode_direct, $1)=yes
5823 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5824 ;;
5825
5826 newsos6)
5827 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5828 _LT_TAGVAR(hardcode_direct, $1)=yes
5829 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5830 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5831 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5832 ;;
5833
5834 *nto* | *qnx*)
5835 ;;
5836
5837 openbsd* | bitrig*)
5838 if test -f /usr/libexec/ld.so; then
5839 _LT_TAGVAR(hardcode_direct, $1)=yes
5840 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5841 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5842 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5844 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5846 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5847 else
5848 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5850 fi
5851 else
5852 _LT_TAGVAR(ld_shlibs, $1)=no
5853 fi
5854 ;;
5855
5856 os2*)
5857 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5858 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5859 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5860 shrext_cmds=.dll
5861 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5862 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5863 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5864 $ECHO EXPORTS >> $output_objdir/$libname.def~
5865 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5866 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5867 emximp -o $lib $output_objdir/$libname.def'
5868 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5869 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5870 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5871 $ECHO EXPORTS >> $output_objdir/$libname.def~
5872 prefix_cmds="$SED"~
5873 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5874 prefix_cmds="$prefix_cmds -e 1d";
5875 fi~
5876 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5877 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5878 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5879 emximp -o $lib $output_objdir/$libname.def'
5880 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5881 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5882 ;;
5883
5884 osf3*)
5885 if test yes = "$GCC"; then
5886 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5887 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5888 else
5889 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5890 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5891 fi
5892 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5893 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5894 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5895 ;;
5896
5897 osf4* | osf5*) # as osf3* with the addition of -msym flag
5898 if test yes = "$GCC"; then
5899 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5901 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5902 else
5903 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5905 _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~
5906 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
5907
5908 # Both c and cxx compiler support -rpath directly
5909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5910 fi
5911 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5912 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5913 ;;
5914
5915 solaris*)
5916 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5917 if test yes = "$GCC"; then
5918 wlarc='$wl'
5919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5920 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5921 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5922 else
5923 case `$CC -V 2>&1` in
5924 *"Compilers 5.0"*)
5925 wlarc=''
5926 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
5927 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5928 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5929 ;;
5930 *)
5931 wlarc='$wl'
5932 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5933 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5934 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5935 ;;
5936 esac
5937 fi
5938 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5939 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5940 case $host_os in
5941 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5942 *)
5943 # The compiler driver will combine and reorder linker options,
5944 # but understands '-z linker_flag'. GCC discards it without '$wl',
5945 # but is careful enough not to reorder.
5946 # Supported since Solaris 2.6 (maybe 2.5.1?)
5947 if test yes = "$GCC"; then
5948 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
5949 else
5950 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5951 fi
5952 ;;
5953 esac
5954 _LT_TAGVAR(link_all_deplibs, $1)=yes
5955 ;;
5956
5957 sunos4*)
5958 if test sequent = "$host_vendor"; then
5959 # Use $CC to link under sequent, because it throws in some extra .o
5960 # files that make .init and .fini sections work.
5961 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5962 else
5963 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5964 fi
5965 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5966 _LT_TAGVAR(hardcode_direct, $1)=yes
5967 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5968 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5969 ;;
5970
5971 sysv4)
5972 case $host_vendor in
5973 sni)
5974 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5975 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5976 ;;
5977 siemens)
5978 ## LD is ld it makes a PLAMLIB
5979 ## CC just makes a GrossModule.
5980 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5981 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5982 _LT_TAGVAR(hardcode_direct, $1)=no
5983 ;;
5984 motorola)
5985 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5987 ;;
5988 esac
5989 runpath_var='LD_RUN_PATH'
5990 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5991 ;;
5992
5993 sysv4.3*)
5994 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5995 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5996 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5997 ;;
5998
5999 sysv4*MP*)
6000 if test -d /usr/nec; then
6001 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6002 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6003 runpath_var=LD_RUN_PATH
6004 hardcode_runpath_var=yes
6005 _LT_TAGVAR(ld_shlibs, $1)=yes
6006 fi
6007 ;;
6008
6009 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6010 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6011 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6012 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6013 runpath_var='LD_RUN_PATH'
6014
6015 if test yes = "$GCC"; then
6016 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6017 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6018 else
6019 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6020 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6021 fi
6022 ;;
6023
6024 sysv5* | sco3.2v5* | sco5v6*)
6025 # Note: We CANNOT use -z defs as we might desire, because we do not
6026 # link with -lc, and that would cause any symbols used from libc to
6027 # always be unresolved, which means just about no library would
6028 # ever link correctly. If we're not using GNU ld we use -z text
6029 # though, which does catch some bad symbols but isn't as heavy-handed
6030 # as -z defs.
6031 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6032 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6033 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6034 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6035 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6036 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6037 _LT_TAGVAR(link_all_deplibs, $1)=yes
6038 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6039 runpath_var='LD_RUN_PATH'
6040
6041 if test yes = "$GCC"; then
6042 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6043 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6044 else
6045 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6046 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6047 fi
6048 ;;
6049
6050 uts4*)
6051 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6052 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6053 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6054 ;;
6055
6056 *)
6057 _LT_TAGVAR(ld_shlibs, $1)=no
6058 ;;
6059 esac
6060
6061 if test sni = "$host_vendor"; then
6062 case $host in
6063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6064 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6065 ;;
6066 esac
6067 fi
6068 fi
6069 ])
6070 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6071 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
6072
6073 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6074
6075 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6076 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6077 _LT_DECL([], [extract_expsyms_cmds], [2],
6078 [The commands to extract the exported symbol list from a shared archive])
6079
6080 #
6081 # Do we need to explicitly link libc?
6082 #
6083 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6084 x|xyes)
6085 # Assume -lc should be added
6086 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6087
6088 if test yes,yes = "$GCC,$enable_shared"; then
6089 case $_LT_TAGVAR(archive_cmds, $1) in
6090 *'~'*)
6091 # FIXME: we may have to deal with multi-command sequences.
6092 ;;
6093 '$CC '*)
6094 # Test whether the compiler implicitly links with -lc since on some
6095 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6096 # to ld, don't add -lc before -lgcc.
6097 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6098 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6099 [$RM conftest*
6100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6101
6102 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6103 soname=conftest
6104 lib=conftest
6105 libobjs=conftest.$ac_objext
6106 deplibs=
6107 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6108 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6109 compiler_flags=-v
6110 linker_flags=-v
6111 verstring=
6112 output_objdir=.
6113 libname=conftest
6114 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6115 _LT_TAGVAR(allow_undefined_flag, $1)=
6116 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6117 then
6118 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6119 else
6120 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6121 fi
6122 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6123 else
6124 cat conftest.err 1>&5
6125 fi
6126 $RM conftest*
6127 ])
6128 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6129 ;;
6130 esac
6131 fi
6132 ;;
6133 esac
6134
6135 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6136 [Whether or not to add -lc for building shared libraries])
6137 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6138 [enable_shared_with_static_runtimes], [0],
6139 [Whether or not to disallow shared libs when runtime libs are static])
6140 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6141 [Compiler flag to allow reflexive dlopens])
6142 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6143 [Compiler flag to generate shared objects directly from archives])
6144 _LT_TAGDECL([], [compiler_needs_object], [1],
6145 [Whether the compiler copes with passing no objects directly])
6146 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6147 [Create an old-style archive from a shared archive])
6148 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6149 [Create a temporary old-style archive to link instead of a shared archive])
6150 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6151 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6152 _LT_TAGDECL([], [module_cmds], [2],
6153 [Commands used to build a loadable module if different from building
6154 a shared archive.])
6155 _LT_TAGDECL([], [module_expsym_cmds], [2])
6156 _LT_TAGDECL([], [with_gnu_ld], [1],
6157 [Whether we are building with GNU ld or not])
6158 _LT_TAGDECL([], [allow_undefined_flag], [1],
6159 [Flag that allows shared libraries with undefined symbols to be built])
6160 _LT_TAGDECL([], [no_undefined_flag], [1],
6161 [Flag that enforces no undefined symbols])
6162 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6163 [Flag to hardcode $libdir into a binary during linking.
6164 This must work even if $libdir does not exist])
6165 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6166 [Whether we need a single "-rpath" flag with a separated argument])
6167 _LT_TAGDECL([], [hardcode_direct], [0],
6168 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6169 DIR into the resulting binary])
6170 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6171 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6172 DIR into the resulting binary and the resulting library dependency is
6173 "absolute", i.e impossible to change by setting $shlibpath_var if the
6174 library is relocated])
6175 _LT_TAGDECL([], [hardcode_minus_L], [0],
6176 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6177 into the resulting binary])
6178 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6179 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6180 into the resulting binary])
6181 _LT_TAGDECL([], [hardcode_automatic], [0],
6182 [Set to "yes" if building a shared library automatically hardcodes DIR
6183 into the library and all subsequent libraries and executables linked
6184 against it])
6185 _LT_TAGDECL([], [inherit_rpath], [0],
6186 [Set to yes if linker adds runtime paths of dependent libraries
6187 to runtime path list])
6188 _LT_TAGDECL([], [link_all_deplibs], [0],
6189 [Whether libtool must link a program against all its dependency libraries])
6190 _LT_TAGDECL([], [always_export_symbols], [0],
6191 [Set to "yes" if exported symbols are required])
6192 _LT_TAGDECL([], [export_symbols_cmds], [2],
6193 [The commands to list exported symbols])
6194 _LT_TAGDECL([], [exclude_expsyms], [1],
6195 [Symbols that should not be listed in the preloaded symbols])
6196 _LT_TAGDECL([], [include_expsyms], [1],
6197 [Symbols that must always be exported])
6198 _LT_TAGDECL([], [prelink_cmds], [2],
6199 [Commands necessary for linking programs (against libraries) with templates])
6200 _LT_TAGDECL([], [postlink_cmds], [2],
6201 [Commands necessary for finishing linking programs])
6202 _LT_TAGDECL([], [file_list_spec], [1],
6203 [Specify filename containing input files])
6204 dnl FIXME: Not yet implemented
6205 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6206 dnl [Compiler flag to generate thread safe objects])
6207 ])# _LT_LINKER_SHLIBS
6208
6209
6210 # _LT_LANG_C_CONFIG([TAG])
6211 # ------------------------
6212 # Ensure that the configuration variables for a C compiler are suitably
6213 # defined. These variables are subsequently used by _LT_CONFIG to write
6214 # the compiler configuration to 'libtool'.
6215 m4_defun([_LT_LANG_C_CONFIG],
6216 [m4_require([_LT_DECL_EGREP])dnl
6217 lt_save_CC=$CC
6218 AC_LANG_PUSH(C)
6219
6220 # Source file extension for C test sources.
6221 ac_ext=c
6222
6223 # Object file extension for compiled C test sources.
6224 objext=o
6225 _LT_TAGVAR(objext, $1)=$objext
6226
6227 # Code to be used in simple compile tests
6228 lt_simple_compile_test_code="int some_variable = 0;"
6229
6230 # Code to be used in simple link tests
6231 lt_simple_link_test_code='int main(){return(0);}'
6232
6233 _LT_TAG_COMPILER
6234 # Save the default compiler, since it gets overwritten when the other
6235 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6236 compiler_DEFAULT=$CC
6237
6238 # save warnings/boilerplate of simple test code
6239 _LT_COMPILER_BOILERPLATE
6240 _LT_LINKER_BOILERPLATE
6241
6242 ## CAVEAT EMPTOR:
6243 ## There is no encapsulation within the following macros, do not change
6244 ## the running order or otherwise move them around unless you know exactly
6245 ## what you are doing...
6246 if test -n "$compiler"; then
6247 _LT_COMPILER_NO_RTTI($1)
6248 _LT_COMPILER_PIC($1)
6249 _LT_COMPILER_C_O($1)
6250 _LT_COMPILER_FILE_LOCKS($1)
6251 _LT_LINKER_SHLIBS($1)
6252 _LT_SYS_DYNAMIC_LINKER($1)
6253 _LT_LINKER_HARDCODE_LIBPATH($1)
6254 LT_SYS_DLOPEN_SELF
6255 _LT_CMD_STRIPLIB
6256
6257 # Report what library types will actually be built
6258 AC_MSG_CHECKING([if libtool supports shared libraries])
6259 AC_MSG_RESULT([$can_build_shared])
6260
6261 AC_MSG_CHECKING([whether to build shared libraries])
6262 test no = "$can_build_shared" && enable_shared=no
6263
6264 # On AIX, shared libraries and static libraries use the same namespace, and
6265 # are all built from PIC.
6266 case $host_os in
6267 aix3*)
6268 test yes = "$enable_shared" && enable_static=no
6269 if test -n "$RANLIB"; then
6270 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6271 postinstall_cmds='$RANLIB $lib'
6272 fi
6273 ;;
6274
6275 aix[[4-9]]*)
6276 if test ia64 != "$host_cpu"; then
6277 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6278 yes,aix,yes) ;; # shared object as lib.so file only
6279 yes,svr4,*) ;; # shared object as lib.so archive member only
6280 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6281 esac
6282 fi
6283 ;;
6284 esac
6285 AC_MSG_RESULT([$enable_shared])
6286
6287 AC_MSG_CHECKING([whether to build static libraries])
6288 # Make sure either enable_shared or enable_static is yes.
6289 test yes = "$enable_shared" || enable_static=yes
6290 AC_MSG_RESULT([$enable_static])
6291
6292 _LT_CONFIG($1)
6293 fi
6294 AC_LANG_POP
6295 CC=$lt_save_CC
6296 ])# _LT_LANG_C_CONFIG
6297
6298
6299 # _LT_LANG_CXX_CONFIG([TAG])
6300 # --------------------------
6301 # Ensure that the configuration variables for a C++ compiler are suitably
6302 # defined. These variables are subsequently used by _LT_CONFIG to write
6303 # the compiler configuration to 'libtool'.
6304 m4_defun([_LT_LANG_CXX_CONFIG],
6305 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6306 m4_require([_LT_DECL_EGREP])dnl
6307 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6308 if test -n "$CXX" && ( test no != "$CXX" &&
6309 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6310 (test g++ != "$CXX"))); then
6311 AC_PROG_CXXCPP
6312 else
6313 _lt_caught_CXX_error=yes
6314 fi
6315
6316 AC_LANG_PUSH(C++)
6317 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6318 _LT_TAGVAR(allow_undefined_flag, $1)=
6319 _LT_TAGVAR(always_export_symbols, $1)=no
6320 _LT_TAGVAR(archive_expsym_cmds, $1)=
6321 _LT_TAGVAR(compiler_needs_object, $1)=no
6322 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6323 _LT_TAGVAR(hardcode_direct, $1)=no
6324 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6325 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6326 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6327 _LT_TAGVAR(hardcode_minus_L, $1)=no
6328 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6329 _LT_TAGVAR(hardcode_automatic, $1)=no
6330 _LT_TAGVAR(inherit_rpath, $1)=no
6331 _LT_TAGVAR(module_cmds, $1)=
6332 _LT_TAGVAR(module_expsym_cmds, $1)=
6333 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6334 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6335 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6336 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6337 _LT_TAGVAR(no_undefined_flag, $1)=
6338 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6339 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6340
6341 # Source file extension for C++ test sources.
6342 ac_ext=cpp
6343
6344 # Object file extension for compiled C++ test sources.
6345 objext=o
6346 _LT_TAGVAR(objext, $1)=$objext
6347
6348 # No sense in running all these tests if we already determined that
6349 # the CXX compiler isn't working. Some variables (like enable_shared)
6350 # are currently assumed to apply to all compilers on this platform,
6351 # and will be corrupted by setting them based on a non-working compiler.
6352 if test yes != "$_lt_caught_CXX_error"; then
6353 # Code to be used in simple compile tests
6354 lt_simple_compile_test_code="int some_variable = 0;"
6355
6356 # Code to be used in simple link tests
6357 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6358
6359 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6360 _LT_TAG_COMPILER
6361
6362 # save warnings/boilerplate of simple test code
6363 _LT_COMPILER_BOILERPLATE
6364 _LT_LINKER_BOILERPLATE
6365
6366 # Allow CC to be a program name with arguments.
6367 lt_save_CC=$CC
6368 lt_save_CFLAGS=$CFLAGS
6369 lt_save_LD=$LD
6370 lt_save_GCC=$GCC
6371 GCC=$GXX
6372 lt_save_with_gnu_ld=$with_gnu_ld
6373 lt_save_path_LD=$lt_cv_path_LD
6374 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6375 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6376 else
6377 $as_unset lt_cv_prog_gnu_ld
6378 fi
6379 if test -n "${lt_cv_path_LDCXX+set}"; then
6380 lt_cv_path_LD=$lt_cv_path_LDCXX
6381 else
6382 $as_unset lt_cv_path_LD
6383 fi
6384 test -z "${LDCXX+set}" || LD=$LDCXX
6385 CC=${CXX-"c++"}
6386 CFLAGS=$CXXFLAGS
6387 compiler=$CC
6388 _LT_TAGVAR(compiler, $1)=$CC
6389 _LT_CC_BASENAME([$compiler])
6390
6391 if test -n "$compiler"; then
6392 # We don't want -fno-exception when compiling C++ code, so set the
6393 # no_builtin_flag separately
6394 if test yes = "$GXX"; then
6395 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6396 else
6397 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6398 fi
6399
6400 if test yes = "$GXX"; then
6401 # Set up default GNU C++ configuration
6402
6403 LT_PATH_LD
6404
6405 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6406 # archiving commands below assume that GNU ld is being used.
6407 if test yes = "$with_gnu_ld"; then
6408 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6409 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6410
6411 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6412 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6413
6414 # If archive_cmds runs LD, not CC, wlarc should be empty
6415 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6416 # investigate it a little bit more. (MM)
6417 wlarc='$wl'
6418
6419 # ancient GNU ld didn't support --whole-archive et. al.
6420 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6421 $GREP 'no-whole-archive' > /dev/null; then
6422 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6423 else
6424 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6425 fi
6426 else
6427 with_gnu_ld=no
6428 wlarc=
6429
6430 # A generic and very simple default shared library creation
6431 # command for GNU C++ for the case where it uses the native
6432 # linker, instead of GNU ld. If possible, this setting should
6433 # overridden to take advantage of the native linker features on
6434 # the platform it is being used on.
6435 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6436 fi
6437
6438 # Commands to make compiler produce verbose output that lists
6439 # what "hidden" libraries, object files and flags are used when
6440 # linking a shared library.
6441 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6442
6443 else
6444 GXX=no
6445 with_gnu_ld=no
6446 wlarc=
6447 fi
6448
6449 # PORTME: fill in a description of your system's C++ link characteristics
6450 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6451 _LT_TAGVAR(ld_shlibs, $1)=yes
6452 case $host_os in
6453 aix3*)
6454 # FIXME: insert proper C++ library support
6455 _LT_TAGVAR(ld_shlibs, $1)=no
6456 ;;
6457 aix[[4-9]]*)
6458 if test ia64 = "$host_cpu"; then
6459 # On IA64, the linker does run time linking by default, so we don't
6460 # have to do anything special.
6461 aix_use_runtimelinking=no
6462 exp_sym_flag='-Bexport'
6463 no_entry_flag=
6464 else
6465 aix_use_runtimelinking=no
6466
6467 # Test if we are trying to use run time linking or normal
6468 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6469 # have runtime linking enabled, and use it for executables.
6470 # For shared libraries, we enable/disable runtime linking
6471 # depending on the kind of the shared library created -
6472 # when "with_aix_soname,aix_use_runtimelinking" is:
6473 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6474 # "aix,yes" lib.so shared, rtl:yes, for executables
6475 # lib.a static archive
6476 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6477 # lib.a(lib.so.V) shared, rtl:no, for executables
6478 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6479 # lib.a(lib.so.V) shared, rtl:no
6480 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6481 # lib.a static archive
6482 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6483 for ld_flag in $LDFLAGS; do
6484 case $ld_flag in
6485 *-brtl*)
6486 aix_use_runtimelinking=yes
6487 break
6488 ;;
6489 esac
6490 done
6491 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6492 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6493 # so we don't have lib.a shared libs to link our executables.
6494 # We have to force runtime linking in this case.
6495 aix_use_runtimelinking=yes
6496 LDFLAGS="$LDFLAGS -Wl,-brtl"
6497 fi
6498 ;;
6499 esac
6500
6501 exp_sym_flag='-bexport'
6502 no_entry_flag='-bnoentry'
6503 fi
6504
6505 # When large executables or shared objects are built, AIX ld can
6506 # have problems creating the table of contents. If linking a library
6507 # or program results in "error TOC overflow" add -mminimal-toc to
6508 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6509 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6510
6511 _LT_TAGVAR(archive_cmds, $1)=''
6512 _LT_TAGVAR(hardcode_direct, $1)=yes
6513 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6514 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6515 _LT_TAGVAR(link_all_deplibs, $1)=yes
6516 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6517 case $with_aix_soname,$aix_use_runtimelinking in
6518 aix,*) ;; # no import file
6519 svr4,* | *,yes) # use import file
6520 # The Import File defines what to hardcode.
6521 _LT_TAGVAR(hardcode_direct, $1)=no
6522 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6523 ;;
6524 esac
6525
6526 if test yes = "$GXX"; then
6527 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6528 # We only want to do this on AIX 4.2 and lower, the check
6529 # below for broken collect2 doesn't work under 4.3+
6530 collect2name=`$CC -print-prog-name=collect2`
6531 if test -f "$collect2name" &&
6532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6533 then
6534 # We have reworked collect2
6535 :
6536 else
6537 # We have old collect2
6538 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6539 # It fails to find uninstalled libraries when the uninstalled
6540 # path is not listed in the libpath. Setting hardcode_minus_L
6541 # to unsupported forces relinking
6542 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6543 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6544 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6545 fi
6546 esac
6547 shared_flag='-shared'
6548 if test yes = "$aix_use_runtimelinking"; then
6549 shared_flag=$shared_flag' $wl-G'
6550 fi
6551 # Need to ensure runtime linking is disabled for the traditional
6552 # shared library, or the linker may eventually find shared libraries
6553 # /with/ Import File - we do not want to mix them.
6554 shared_flag_aix='-shared'
6555 shared_flag_svr4='-shared $wl-G'
6556 else
6557 # not using gcc
6558 if test ia64 = "$host_cpu"; then
6559 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6560 # chokes on -Wl,-G. The following line is correct:
6561 shared_flag='-G'
6562 else
6563 if test yes = "$aix_use_runtimelinking"; then
6564 shared_flag='$wl-G'
6565 else
6566 shared_flag='$wl-bM:SRE'
6567 fi
6568 shared_flag_aix='$wl-bM:SRE'
6569 shared_flag_svr4='$wl-G'
6570 fi
6571 fi
6572
6573 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6574 # It seems that -bexpall does not export symbols beginning with
6575 # underscore (_), so it is better to generate a list of symbols to
6576 # export.
6577 _LT_TAGVAR(always_export_symbols, $1)=yes
6578 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
6579 # Warning - without using the other runtime loading flags (-brtl),
6580 # -berok will link without error, but may produce a broken library.
6581 # The "-G" linker flag allows undefined symbols.
6582 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6583 # Determine the default libpath from the value encoded in an empty
6584 # executable.
6585 _LT_SYS_MODULE_PATH_AIX([$1])
6586 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6587
6588 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
6589 else
6590 if test ia64 = "$host_cpu"; then
6591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6592 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6593 _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"
6594 else
6595 # Determine the default libpath from the value encoded in an
6596 # empty executable.
6597 _LT_SYS_MODULE_PATH_AIX([$1])
6598 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6599 # Warning - without using the other run time loading flags,
6600 # -berok will link without error, but may produce a broken library.
6601 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6602 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6603 if test yes = "$with_gnu_ld"; then
6604 # We only use this code for GNU lds that support --whole-archive.
6605 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6606 else
6607 # Exported symbols can be pulled into shared objects from archives
6608 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6609 fi
6610 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6611 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6612 # -brtl affects multiple linker settings, -berok does not and is overridden later
6613 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6614 if test svr4 != "$with_aix_soname"; then
6615 # This is similar to how AIX traditionally builds its shared
6616 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6617 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6618 fi
6619 if test aix != "$with_aix_soname"; then
6620 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6621 else
6622 # used by -dlpreopen to get the symbols
6623 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6624 fi
6625 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
6626 fi
6627 fi
6628 ;;
6629
6630 beos*)
6631 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6632 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6633 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6634 # support --undefined. This deserves some investigation. FIXME
6635 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6636 else
6637 _LT_TAGVAR(ld_shlibs, $1)=no
6638 fi
6639 ;;
6640
6641 chorus*)
6642 case $cc_basename in
6643 *)
6644 # FIXME: insert proper C++ library support
6645 _LT_TAGVAR(ld_shlibs, $1)=no
6646 ;;
6647 esac
6648 ;;
6649
6650 cygwin* | mingw* | pw32* | cegcc*)
6651 case $GXX,$cc_basename in
6652 ,cl* | no,cl*)
6653 # Native MSVC
6654 # hardcode_libdir_flag_spec is actually meaningless, as there is
6655 # no search path for DLLs.
6656 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6657 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6658 _LT_TAGVAR(always_export_symbols, $1)=yes
6659 _LT_TAGVAR(file_list_spec, $1)='@'
6660 # Tell ltmain to make .lib files, not .a files.
6661 libext=lib
6662 # Tell ltmain to make .dll files, not .so files.
6663 shrext_cmds=.dll
6664 # FIXME: Setting linknames here is a bad hack.
6665 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6666 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6667 cp "$export_symbols" "$output_objdir/$soname.def";
6668 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6669 else
6670 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6671 fi~
6672 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6673 linknames='
6674 # The linker will not automatically build a static lib if we build a DLL.
6675 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6676 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6677 # Don't use ranlib
6678 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6679 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6680 lt_tool_outputfile="@TOOL_OUTPUT@"~
6681 case $lt_outputfile in
6682 *.exe|*.EXE) ;;
6683 *)
6684 lt_outputfile=$lt_outputfile.exe
6685 lt_tool_outputfile=$lt_tool_outputfile.exe
6686 ;;
6687 esac~
6688 func_to_tool_file "$lt_outputfile"~
6689 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6690 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6691 $RM "$lt_outputfile.manifest";
6692 fi'
6693 ;;
6694 *)
6695 # g++
6696 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6697 # as there is no search path for DLLs.
6698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6699 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6700 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6701 _LT_TAGVAR(always_export_symbols, $1)=no
6702 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6703
6704 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6705 _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'
6706 # If the export-symbols file already is a .def file, use it as
6707 # is; otherwise, prepend EXPORTS...
6708 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6709 cp $export_symbols $output_objdir/$soname.def;
6710 else
6711 echo EXPORTS > $output_objdir/$soname.def;
6712 cat $export_symbols >> $output_objdir/$soname.def;
6713 fi~
6714 $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'
6715 else
6716 _LT_TAGVAR(ld_shlibs, $1)=no
6717 fi
6718 ;;
6719 esac
6720 ;;
6721 darwin* | rhapsody*)
6722 _LT_DARWIN_LINKER_FEATURES($1)
6723 ;;
6724
6725 os2*)
6726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6727 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6728 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6729 shrext_cmds=.dll
6730 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6731 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6732 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6733 $ECHO EXPORTS >> $output_objdir/$libname.def~
6734 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6735 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6736 emximp -o $lib $output_objdir/$libname.def'
6737 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6738 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6739 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6740 $ECHO EXPORTS >> $output_objdir/$libname.def~
6741 prefix_cmds="$SED"~
6742 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6743 prefix_cmds="$prefix_cmds -e 1d";
6744 fi~
6745 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6746 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6747 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6748 emximp -o $lib $output_objdir/$libname.def'
6749 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6750 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6751 ;;
6752
6753 dgux*)
6754 case $cc_basename in
6755 ec++*)
6756 # FIXME: insert proper C++ library support
6757 _LT_TAGVAR(ld_shlibs, $1)=no
6758 ;;
6759 ghcx*)
6760 # Green Hills C++ Compiler
6761 # FIXME: insert proper C++ library support
6762 _LT_TAGVAR(ld_shlibs, $1)=no
6763 ;;
6764 *)
6765 # FIXME: insert proper C++ library support
6766 _LT_TAGVAR(ld_shlibs, $1)=no
6767 ;;
6768 esac
6769 ;;
6770
6771 freebsd2.*)
6772 # C++ shared libraries reported to be fairly broken before
6773 # switch to ELF
6774 _LT_TAGVAR(ld_shlibs, $1)=no
6775 ;;
6776
6777 freebsd-elf*)
6778 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6779 ;;
6780
6781 freebsd* | dragonfly*)
6782 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6783 # conventions
6784 _LT_TAGVAR(ld_shlibs, $1)=yes
6785 ;;
6786
6787 haiku*)
6788 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6789 _LT_TAGVAR(link_all_deplibs, $1)=yes
6790 ;;
6791
6792 hpux9*)
6793 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6794 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6795 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6796 _LT_TAGVAR(hardcode_direct, $1)=yes
6797 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6798 # but as the default
6799 # location of the library.
6800
6801 case $cc_basename in
6802 CC*)
6803 # FIXME: insert proper C++ library support
6804 _LT_TAGVAR(ld_shlibs, $1)=no
6805 ;;
6806 aCC*)
6807 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6808 # Commands to make compiler produce verbose output that lists
6809 # what "hidden" libraries, object files and flags are used when
6810 # linking a shared library.
6811 #
6812 # There doesn't appear to be a way to prevent this compiler from
6813 # explicitly linking system object files so we need to strip them
6814 # from the output so that they don't get included in the library
6815 # dependencies.
6816 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6817 ;;
6818 *)
6819 if test yes = "$GXX"; then
6820 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6821 else
6822 # FIXME: insert proper C++ library support
6823 _LT_TAGVAR(ld_shlibs, $1)=no
6824 fi
6825 ;;
6826 esac
6827 ;;
6828
6829 hpux10*|hpux11*)
6830 if test no = "$with_gnu_ld"; then
6831 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6832 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6833
6834 case $host_cpu in
6835 hppa*64*|ia64*)
6836 ;;
6837 *)
6838 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6839 ;;
6840 esac
6841 fi
6842 case $host_cpu in
6843 hppa*64*|ia64*)
6844 _LT_TAGVAR(hardcode_direct, $1)=no
6845 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6846 ;;
6847 *)
6848 _LT_TAGVAR(hardcode_direct, $1)=yes
6849 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6850 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6851 # but as the default
6852 # location of the library.
6853 ;;
6854 esac
6855
6856 case $cc_basename in
6857 CC*)
6858 # FIXME: insert proper C++ library support
6859 _LT_TAGVAR(ld_shlibs, $1)=no
6860 ;;
6861 aCC*)
6862 case $host_cpu in
6863 hppa*64*)
6864 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6865 ;;
6866 ia64*)
6867 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6868 ;;
6869 *)
6870 _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'
6871 ;;
6872 esac
6873 # Commands to make compiler produce verbose output that lists
6874 # what "hidden" libraries, object files and flags are used when
6875 # linking a shared library.
6876 #
6877 # There doesn't appear to be a way to prevent this compiler from
6878 # explicitly linking system object files so we need to strip them
6879 # from the output so that they don't get included in the library
6880 # dependencies.
6881 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6882 ;;
6883 *)
6884 if test yes = "$GXX"; then
6885 if test no = "$with_gnu_ld"; then
6886 case $host_cpu in
6887 hppa*64*)
6888 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6889 ;;
6890 ia64*)
6891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6892 ;;
6893 *)
6894 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6895 ;;
6896 esac
6897 fi
6898 else
6899 # FIXME: insert proper C++ library support
6900 _LT_TAGVAR(ld_shlibs, $1)=no
6901 fi
6902 ;;
6903 esac
6904 ;;
6905
6906 interix[[3-9]]*)
6907 _LT_TAGVAR(hardcode_direct, $1)=no
6908 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6909 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6910 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6912 # Instead, shared libraries are loaded at an image base (0x10000000 by
6913 # default) and relocated if they conflict, which is a slow very memory
6914 # consuming and fragmenting process. To avoid this, we pick a random,
6915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6917 _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'
6918 _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'
6919 ;;
6920 irix5* | irix6*)
6921 case $cc_basename in
6922 CC*)
6923 # SGI C++
6924 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6925
6926 # Archives containing C++ object files must be created using
6927 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6928 # necessary to make sure instantiated templates are included
6929 # in the archive.
6930 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6931 ;;
6932 *)
6933 if test yes = "$GXX"; then
6934 if test no = "$with_gnu_ld"; then
6935 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
6936 else
6937 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
6938 fi
6939 fi
6940 _LT_TAGVAR(link_all_deplibs, $1)=yes
6941 ;;
6942 esac
6943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6944 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6945 _LT_TAGVAR(inherit_rpath, $1)=yes
6946 ;;
6947
6948 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6949 case $cc_basename in
6950 KCC*)
6951 # Kuck and Associates, Inc. (KAI) C++ Compiler
6952
6953 # KCC will only create a shared library if the output file
6954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6955 # to its proper name (with version) after linking.
6956 _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'
6957 _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'
6958 # Commands to make compiler produce verbose output that lists
6959 # what "hidden" libraries, object files and flags are used when
6960 # linking a shared library.
6961 #
6962 # There doesn't appear to be a way to prevent this compiler from
6963 # explicitly linking system object files so we need to strip them
6964 # from the output so that they don't get included in the library
6965 # dependencies.
6966 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6967
6968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6969 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6970
6971 # Archives containing C++ object files must be created using
6972 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6973 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6974 ;;
6975 icpc* | ecpc* )
6976 # Intel C++
6977 with_gnu_ld=yes
6978 # version 8.0 and above of icpc choke on multiply defined symbols
6979 # if we add $predep_objects and $postdep_objects, however 7.1 and
6980 # earlier do not add the objects themselves.
6981 case `$CC -V 2>&1` in
6982 *"Version 7."*)
6983 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6984 _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'
6985 ;;
6986 *) # Version 8.0 or newer
6987 tmp_idyn=
6988 case $host_cpu in
6989 ia64*) tmp_idyn=' -i_dynamic';;
6990 esac
6991 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6992 _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'
6993 ;;
6994 esac
6995 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6996 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6997 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6998 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6999 ;;
7000 pgCC* | pgcpp*)
7001 # Portland Group C++ compiler
7002 case `$CC -V` in
7003 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7004 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7005 rm -rf $tpldir~
7006 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7007 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7008 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7009 rm -rf $tpldir~
7010 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7011 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7012 $RANLIB $oldlib'
7013 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7014 rm -rf $tpldir~
7015 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7016 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7017 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7018 rm -rf $tpldir~
7019 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7020 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7021 ;;
7022 *) # Version 6 and above use weak symbols
7023 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7024 _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'
7025 ;;
7026 esac
7027
7028 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7029 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7030 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7031 ;;
7032 cxx*)
7033 # Compaq C++
7034 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7035 _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'
7036
7037 runpath_var=LD_RUN_PATH
7038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7039 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7040
7041 # Commands to make compiler produce verbose output that lists
7042 # what "hidden" libraries, object files and flags are used when
7043 # linking a shared library.
7044 #
7045 # There doesn't appear to be a way to prevent this compiler from
7046 # explicitly linking system object files so we need to strip them
7047 # from the output so that they don't get included in the library
7048 # dependencies.
7049 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
7050 ;;
7051 xl* | mpixl* | bgxl*)
7052 # IBM XL 8.0 on PPC, with GNU ld
7053 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7054 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7055 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7056 if test yes = "$supports_anon_versioning"; then
7057 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7058 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7059 echo "local: *; };" >> $output_objdir/$libname.ver~
7060 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7061 fi
7062 ;;
7063 *)
7064 case `$CC -V 2>&1 | sed 5q` in
7065 *Sun\ C*)
7066 # Sun C++ 5.9
7067 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7068 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7069 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
7070 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7071 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7072 _LT_TAGVAR(compiler_needs_object, $1)=yes
7073
7074 # Not sure whether something based on
7075 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7076 # would be better.
7077 output_verbose_link_cmd='func_echo_all'
7078
7079 # Archives containing C++ object files must be created using
7080 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7081 # necessary to make sure instantiated templates are included
7082 # in the archive.
7083 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7084 ;;
7085 esac
7086 ;;
7087 esac
7088 ;;
7089
7090 lynxos*)
7091 # FIXME: insert proper C++ library support
7092 _LT_TAGVAR(ld_shlibs, $1)=no
7093 ;;
7094
7095 m88k*)
7096 # FIXME: insert proper C++ library support
7097 _LT_TAGVAR(ld_shlibs, $1)=no
7098 ;;
7099
7100 mvs*)
7101 case $cc_basename in
7102 cxx*)
7103 # FIXME: insert proper C++ library support
7104 _LT_TAGVAR(ld_shlibs, $1)=no
7105 ;;
7106 *)
7107 # FIXME: insert proper C++ library support
7108 _LT_TAGVAR(ld_shlibs, $1)=no
7109 ;;
7110 esac
7111 ;;
7112
7113 netbsd*)
7114 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7115 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7116 wlarc=
7117 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7118 _LT_TAGVAR(hardcode_direct, $1)=yes
7119 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7120 fi
7121 # Workaround some broken pre-1.5 toolchains
7122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7123 ;;
7124
7125 *nto* | *qnx*)
7126 _LT_TAGVAR(ld_shlibs, $1)=yes
7127 ;;
7128
7129 openbsd* | bitrig*)
7130 if test -f /usr/libexec/ld.so; then
7131 _LT_TAGVAR(hardcode_direct, $1)=yes
7132 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7133 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7134 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7135 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7137 _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'
7138 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7139 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
7140 fi
7141 output_verbose_link_cmd=func_echo_all
7142 else
7143 _LT_TAGVAR(ld_shlibs, $1)=no
7144 fi
7145 ;;
7146
7147 osf3* | osf4* | osf5*)
7148 case $cc_basename in
7149 KCC*)
7150 # Kuck and Associates, Inc. (KAI) C++ Compiler
7151
7152 # KCC will only create a shared library if the output file
7153 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7154 # to its proper name (with version) after linking.
7155 _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'
7156
7157 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7158 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7159
7160 # Archives containing C++ object files must be created using
7161 # the KAI C++ compiler.
7162 case $host in
7163 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7164 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7165 esac
7166 ;;
7167 RCC*)
7168 # Rational C++ 2.4.1
7169 # FIXME: insert proper C++ library support
7170 _LT_TAGVAR(ld_shlibs, $1)=no
7171 ;;
7172 cxx*)
7173 case $host in
7174 osf3*)
7175 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7176 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7177 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7178 ;;
7179 *)
7180 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7181 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7182 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7183 echo "-hidden">> $lib.exp~
7184 $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~
7185 $RM $lib.exp'
7186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7187 ;;
7188 esac
7189
7190 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7191
7192 # Commands to make compiler produce verbose output that lists
7193 # what "hidden" libraries, object files and flags are used when
7194 # linking a shared library.
7195 #
7196 # There doesn't appear to be a way to prevent this compiler from
7197 # explicitly linking system object files so we need to strip them
7198 # from the output so that they don't get included in the library
7199 # dependencies.
7200 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7201 ;;
7202 *)
7203 if test yes,no = "$GXX,$with_gnu_ld"; then
7204 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7205 case $host in
7206 osf3*)
7207 _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" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7208 ;;
7209 *)
7210 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7211 ;;
7212 esac
7213
7214 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7215 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7216
7217 # Commands to make compiler produce verbose output that lists
7218 # what "hidden" libraries, object files and flags are used when
7219 # linking a shared library.
7220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7221
7222 else
7223 # FIXME: insert proper C++ library support
7224 _LT_TAGVAR(ld_shlibs, $1)=no
7225 fi
7226 ;;
7227 esac
7228 ;;
7229
7230 psos*)
7231 # FIXME: insert proper C++ library support
7232 _LT_TAGVAR(ld_shlibs, $1)=no
7233 ;;
7234
7235 sunos4*)
7236 case $cc_basename in
7237 CC*)
7238 # Sun C++ 4.x
7239 # FIXME: insert proper C++ library support
7240 _LT_TAGVAR(ld_shlibs, $1)=no
7241 ;;
7242 lcc*)
7243 # Lucid
7244 # FIXME: insert proper C++ library support
7245 _LT_TAGVAR(ld_shlibs, $1)=no
7246 ;;
7247 *)
7248 # FIXME: insert proper C++ library support
7249 _LT_TAGVAR(ld_shlibs, $1)=no
7250 ;;
7251 esac
7252 ;;
7253
7254 solaris*)
7255 case $cc_basename in
7256 CC* | sunCC*)
7257 # Sun C++ 4.2, 5.x and Centerline C++
7258 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7259 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7260 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7261 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7262 $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'
7263
7264 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7265 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7266 case $host_os in
7267 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7268 *)
7269 # The compiler driver will combine and reorder linker options,
7270 # but understands '-z linker_flag'.
7271 # Supported since Solaris 2.6 (maybe 2.5.1?)
7272 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7273 ;;
7274 esac
7275 _LT_TAGVAR(link_all_deplibs, $1)=yes
7276
7277 output_verbose_link_cmd='func_echo_all'
7278
7279 # Archives containing C++ object files must be created using
7280 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7281 # necessary to make sure instantiated templates are included
7282 # in the archive.
7283 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7284 ;;
7285 gcx*)
7286 # Green Hills C++ Compiler
7287 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7288
7289 # The C++ compiler must be used to create the archive.
7290 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7291 ;;
7292 *)
7293 # GNU C++ compiler with Solaris linker
7294 if test yes,no = "$GXX,$with_gnu_ld"; then
7295 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7296 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7298 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7299 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7300
7301 # Commands to make compiler produce verbose output that lists
7302 # what "hidden" libraries, object files and flags are used when
7303 # linking a shared library.
7304 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7305 else
7306 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7307 # platform.
7308 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7309 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7310 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7311
7312 # Commands to make compiler produce verbose output that lists
7313 # what "hidden" libraries, object files and flags are used when
7314 # linking a shared library.
7315 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7316 fi
7317
7318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7319 case $host_os in
7320 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7321 *)
7322 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7323 ;;
7324 esac
7325 fi
7326 ;;
7327 esac
7328 ;;
7329
7330 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7331 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7332 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7333 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7334 runpath_var='LD_RUN_PATH'
7335
7336 case $cc_basename in
7337 CC*)
7338 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7339 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7340 ;;
7341 *)
7342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7343 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7344 ;;
7345 esac
7346 ;;
7347
7348 sysv5* | sco3.2v5* | sco5v6*)
7349 # Note: We CANNOT use -z defs as we might desire, because we do not
7350 # link with -lc, and that would cause any symbols used from libc to
7351 # always be unresolved, which means just about no library would
7352 # ever link correctly. If we're not using GNU ld we use -z text
7353 # though, which does catch some bad symbols but isn't as heavy-handed
7354 # as -z defs.
7355 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7356 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7357 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7358 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7360 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7361 _LT_TAGVAR(link_all_deplibs, $1)=yes
7362 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7363 runpath_var='LD_RUN_PATH'
7364
7365 case $cc_basename in
7366 CC*)
7367 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7368 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7369 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7370 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7371 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7372 '"$_LT_TAGVAR(reload_cmds, $1)"
7373 ;;
7374 *)
7375 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7376 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7377 ;;
7378 esac
7379 ;;
7380
7381 tandem*)
7382 case $cc_basename in
7383 NCC*)
7384 # NonStop-UX NCC 3.20
7385 # FIXME: insert proper C++ library support
7386 _LT_TAGVAR(ld_shlibs, $1)=no
7387 ;;
7388 *)
7389 # FIXME: insert proper C++ library support
7390 _LT_TAGVAR(ld_shlibs, $1)=no
7391 ;;
7392 esac
7393 ;;
7394
7395 vxworks*)
7396 # FIXME: insert proper C++ library support
7397 _LT_TAGVAR(ld_shlibs, $1)=no
7398 ;;
7399
7400 *)
7401 # FIXME: insert proper C++ library support
7402 _LT_TAGVAR(ld_shlibs, $1)=no
7403 ;;
7404 esac
7405
7406 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7407 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7408
7409 _LT_TAGVAR(GCC, $1)=$GXX
7410 _LT_TAGVAR(LD, $1)=$LD
7411
7412 ## CAVEAT EMPTOR:
7413 ## There is no encapsulation within the following macros, do not change
7414 ## the running order or otherwise move them around unless you know exactly
7415 ## what you are doing...
7416 _LT_SYS_HIDDEN_LIBDEPS($1)
7417 _LT_COMPILER_PIC($1)
7418 _LT_COMPILER_C_O($1)
7419 _LT_COMPILER_FILE_LOCKS($1)
7420 _LT_LINKER_SHLIBS($1)
7421 _LT_SYS_DYNAMIC_LINKER($1)
7422 _LT_LINKER_HARDCODE_LIBPATH($1)
7423
7424 _LT_CONFIG($1)
7425 fi # test -n "$compiler"
7426
7427 CC=$lt_save_CC
7428 CFLAGS=$lt_save_CFLAGS
7429 LDCXX=$LD
7430 LD=$lt_save_LD
7431 GCC=$lt_save_GCC
7432 with_gnu_ld=$lt_save_with_gnu_ld
7433 lt_cv_path_LDCXX=$lt_cv_path_LD
7434 lt_cv_path_LD=$lt_save_path_LD
7435 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7436 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7437 fi # test yes != "$_lt_caught_CXX_error"
7438
7439 AC_LANG_POP
7440 ])# _LT_LANG_CXX_CONFIG
7441
7442
7443 # _LT_FUNC_STRIPNAME_CNF
7444 # ----------------------
7445 # func_stripname_cnf prefix suffix name
7446 # strip PREFIX and SUFFIX off of NAME.
7447 # PREFIX and SUFFIX must not contain globbing or regex special
7448 # characters, hashes, percent signs, but SUFFIX may contain a leading
7449 # dot (in which case that matches only a dot).
7450 #
7451 # This function is identical to the (non-XSI) version of func_stripname,
7452 # except this one can be used by m4 code that may be executed by configure,
7453 # rather than the libtool script.
7454 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7455 AC_REQUIRE([_LT_DECL_SED])
7456 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7457 func_stripname_cnf ()
7458 {
7459 case @S|@2 in
7460 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7461 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7462 esac
7463 } # func_stripname_cnf
7464 ])# _LT_FUNC_STRIPNAME_CNF
7465
7466
7467 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7468 # ---------------------------------
7469 # Figure out "hidden" library dependencies from verbose
7470 # compiler output when linking a shared library.
7471 # Parse the compiler output and extract the necessary
7472 # objects, libraries and library flags.
7473 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7474 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7475 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7476 # Dependencies to place before and after the object being linked:
7477 _LT_TAGVAR(predep_objects, $1)=
7478 _LT_TAGVAR(postdep_objects, $1)=
7479 _LT_TAGVAR(predeps, $1)=
7480 _LT_TAGVAR(postdeps, $1)=
7481 _LT_TAGVAR(compiler_lib_search_path, $1)=
7482
7483 dnl we can't use the lt_simple_compile_test_code here,
7484 dnl because it contains code intended for an executable,
7485 dnl not a library. It's possible we should let each
7486 dnl tag define a new lt_????_link_test_code variable,
7487 dnl but it's only used here...
7488 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7489 int a;
7490 void foo (void) { a = 0; }
7491 _LT_EOF
7492 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7493 class Foo
7494 {
7495 public:
7496 Foo (void) { a = 0; }
7497 private:
7498 int a;
7499 };
7500 _LT_EOF
7501 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7502 subroutine foo
7503 implicit none
7504 integer*4 a
7505 a=0
7506 return
7507 end
7508 _LT_EOF
7509 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7510 subroutine foo
7511 implicit none
7512 integer a
7513 a=0
7514 return
7515 end
7516 _LT_EOF
7517 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7518 public class foo {
7519 private int a;
7520 public void bar (void) {
7521 a = 0;
7522 }
7523 };
7524 _LT_EOF
7525 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7526 package foo
7527 func foo() {
7528 }
7529 _LT_EOF
7530 ])
7531
7532 _lt_libdeps_save_CFLAGS=$CFLAGS
7533 case "$CC $CFLAGS " in #(
7534 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7535 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7536 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7537 esac
7538
7539 dnl Parse the compiler output and extract the necessary
7540 dnl objects, libraries and library flags.
7541 if AC_TRY_EVAL(ac_compile); then
7542 # Parse the compiler output and extract the necessary
7543 # objects, libraries and library flags.
7544
7545 # Sentinel used to keep track of whether or not we are before
7546 # the conftest object file.
7547 pre_test_object_deps_done=no
7548
7549 for p in `eval "$output_verbose_link_cmd"`; do
7550 case $prev$p in
7551
7552 -L* | -R* | -l*)
7553 # Some compilers place space between "-{L,R}" and the path.
7554 # Remove the space.
7555 if test x-L = "$p" ||
7556 test x-R = "$p"; then
7557 prev=$p
7558 continue
7559 fi
7560
7561 # Expand the sysroot to ease extracting the directories later.
7562 if test -z "$prev"; then
7563 case $p in
7564 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7565 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7566 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7567 esac
7568 fi
7569 case $p in
7570 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7571 esac
7572 if test no = "$pre_test_object_deps_done"; then
7573 case $prev in
7574 -L | -R)
7575 # Internal compiler library paths should come after those
7576 # provided the user. The postdeps already come after the
7577 # user supplied libs so there is no need to process them.
7578 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7579 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7580 else
7581 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7582 fi
7583 ;;
7584 # The "-l" case would never come before the object being
7585 # linked, so don't bother handling this case.
7586 esac
7587 else
7588 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7589 _LT_TAGVAR(postdeps, $1)=$prev$p
7590 else
7591 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7592 fi
7593 fi
7594 prev=
7595 ;;
7596
7597 *.lto.$objext) ;; # Ignore GCC LTO objects
7598 *.$objext)
7599 # This assumes that the test object file only shows up
7600 # once in the compiler output.
7601 if test "$p" = "conftest.$objext"; then
7602 pre_test_object_deps_done=yes
7603 continue
7604 fi
7605
7606 if test no = "$pre_test_object_deps_done"; then
7607 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7608 _LT_TAGVAR(predep_objects, $1)=$p
7609 else
7610 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7611 fi
7612 else
7613 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7614 _LT_TAGVAR(postdep_objects, $1)=$p
7615 else
7616 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7617 fi
7618 fi
7619 ;;
7620
7621 *) ;; # Ignore the rest.
7622
7623 esac
7624 done
7625
7626 # Clean up.
7627 rm -f a.out a.exe
7628 else
7629 echo "libtool.m4: error: problem compiling $1 test program"
7630 fi
7631
7632 $RM -f confest.$objext
7633 CFLAGS=$_lt_libdeps_save_CFLAGS
7634
7635 # PORTME: override above test on systems where it is broken
7636 m4_if([$1], [CXX],
7637 [case $host_os in
7638 interix[[3-9]]*)
7639 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7640 # hack all around it, let's just trust "g++" to DTRT.
7641 _LT_TAGVAR(predep_objects,$1)=
7642 _LT_TAGVAR(postdep_objects,$1)=
7643 _LT_TAGVAR(postdeps,$1)=
7644 ;;
7645 esac
7646 ])
7647
7648 case " $_LT_TAGVAR(postdeps, $1) " in
7649 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7650 esac
7651 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7652 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7653 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7654 fi
7655 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7656 [The directories searched by this compiler when creating a shared library])
7657 _LT_TAGDECL([], [predep_objects], [1],
7658 [Dependencies to place before and after the objects being linked to
7659 create a shared library])
7660 _LT_TAGDECL([], [postdep_objects], [1])
7661 _LT_TAGDECL([], [predeps], [1])
7662 _LT_TAGDECL([], [postdeps], [1])
7663 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7664 [The library search path used internally by the compiler when linking
7665 a shared library])
7666 ])# _LT_SYS_HIDDEN_LIBDEPS
7667
7668
7669 # _LT_LANG_F77_CONFIG([TAG])
7670 # --------------------------
7671 # Ensure that the configuration variables for a Fortran 77 compiler are
7672 # suitably defined. These variables are subsequently used by _LT_CONFIG
7673 # to write the compiler configuration to 'libtool'.
7674 m4_defun([_LT_LANG_F77_CONFIG],
7675 [AC_LANG_PUSH(Fortran 77)
7676 if test -z "$F77" || test no = "$F77"; then
7677 _lt_disable_F77=yes
7678 fi
7679
7680 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7681 _LT_TAGVAR(allow_undefined_flag, $1)=
7682 _LT_TAGVAR(always_export_symbols, $1)=no
7683 _LT_TAGVAR(archive_expsym_cmds, $1)=
7684 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7685 _LT_TAGVAR(hardcode_direct, $1)=no
7686 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7687 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7688 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7689 _LT_TAGVAR(hardcode_minus_L, $1)=no
7690 _LT_TAGVAR(hardcode_automatic, $1)=no
7691 _LT_TAGVAR(inherit_rpath, $1)=no
7692 _LT_TAGVAR(module_cmds, $1)=
7693 _LT_TAGVAR(module_expsym_cmds, $1)=
7694 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7695 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7696 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7697 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7698 _LT_TAGVAR(no_undefined_flag, $1)=
7699 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7700 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7701
7702 # Source file extension for f77 test sources.
7703 ac_ext=f
7704
7705 # Object file extension for compiled f77 test sources.
7706 objext=o
7707 _LT_TAGVAR(objext, $1)=$objext
7708
7709 # No sense in running all these tests if we already determined that
7710 # the F77 compiler isn't working. Some variables (like enable_shared)
7711 # are currently assumed to apply to all compilers on this platform,
7712 # and will be corrupted by setting them based on a non-working compiler.
7713 if test yes != "$_lt_disable_F77"; then
7714 # Code to be used in simple compile tests
7715 lt_simple_compile_test_code="\
7716 subroutine t
7717 return
7718 end
7719 "
7720
7721 # Code to be used in simple link tests
7722 lt_simple_link_test_code="\
7723 program t
7724 end
7725 "
7726
7727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7728 _LT_TAG_COMPILER
7729
7730 # save warnings/boilerplate of simple test code
7731 _LT_COMPILER_BOILERPLATE
7732 _LT_LINKER_BOILERPLATE
7733
7734 # Allow CC to be a program name with arguments.
7735 lt_save_CC=$CC
7736 lt_save_GCC=$GCC
7737 lt_save_CFLAGS=$CFLAGS
7738 CC=${F77-"f77"}
7739 CFLAGS=$FFLAGS
7740 compiler=$CC
7741 _LT_TAGVAR(compiler, $1)=$CC
7742 _LT_CC_BASENAME([$compiler])
7743 GCC=$G77
7744 if test -n "$compiler"; then
7745 AC_MSG_CHECKING([if libtool supports shared libraries])
7746 AC_MSG_RESULT([$can_build_shared])
7747
7748 AC_MSG_CHECKING([whether to build shared libraries])
7749 test no = "$can_build_shared" && enable_shared=no
7750
7751 # On AIX, shared libraries and static libraries use the same namespace, and
7752 # are all built from PIC.
7753 case $host_os in
7754 aix3*)
7755 test yes = "$enable_shared" && enable_static=no
7756 if test -n "$RANLIB"; then
7757 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7758 postinstall_cmds='$RANLIB $lib'
7759 fi
7760 ;;
7761 aix[[4-9]]*)
7762 if test ia64 != "$host_cpu"; then
7763 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7764 yes,aix,yes) ;; # shared object as lib.so file only
7765 yes,svr4,*) ;; # shared object as lib.so archive member only
7766 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7767 esac
7768 fi
7769 ;;
7770 esac
7771 AC_MSG_RESULT([$enable_shared])
7772
7773 AC_MSG_CHECKING([whether to build static libraries])
7774 # Make sure either enable_shared or enable_static is yes.
7775 test yes = "$enable_shared" || enable_static=yes
7776 AC_MSG_RESULT([$enable_static])
7777
7778 _LT_TAGVAR(GCC, $1)=$G77
7779 _LT_TAGVAR(LD, $1)=$LD
7780
7781 ## CAVEAT EMPTOR:
7782 ## There is no encapsulation within the following macros, do not change
7783 ## the running order or otherwise move them around unless you know exactly
7784 ## what you are doing...
7785 _LT_COMPILER_PIC($1)
7786 _LT_COMPILER_C_O($1)
7787 _LT_COMPILER_FILE_LOCKS($1)
7788 _LT_LINKER_SHLIBS($1)
7789 _LT_SYS_DYNAMIC_LINKER($1)
7790 _LT_LINKER_HARDCODE_LIBPATH($1)
7791
7792 _LT_CONFIG($1)
7793 fi # test -n "$compiler"
7794
7795 GCC=$lt_save_GCC
7796 CC=$lt_save_CC
7797 CFLAGS=$lt_save_CFLAGS
7798 fi # test yes != "$_lt_disable_F77"
7799
7800 AC_LANG_POP
7801 ])# _LT_LANG_F77_CONFIG
7802
7803
7804 # _LT_LANG_FC_CONFIG([TAG])
7805 # -------------------------
7806 # Ensure that the configuration variables for a Fortran compiler are
7807 # suitably defined. These variables are subsequently used by _LT_CONFIG
7808 # to write the compiler configuration to 'libtool'.
7809 m4_defun([_LT_LANG_FC_CONFIG],
7810 [AC_LANG_PUSH(Fortran)
7811
7812 if test -z "$FC" || test no = "$FC"; then
7813 _lt_disable_FC=yes
7814 fi
7815
7816 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7817 _LT_TAGVAR(allow_undefined_flag, $1)=
7818 _LT_TAGVAR(always_export_symbols, $1)=no
7819 _LT_TAGVAR(archive_expsym_cmds, $1)=
7820 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7821 _LT_TAGVAR(hardcode_direct, $1)=no
7822 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7823 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7824 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7825 _LT_TAGVAR(hardcode_minus_L, $1)=no
7826 _LT_TAGVAR(hardcode_automatic, $1)=no
7827 _LT_TAGVAR(inherit_rpath, $1)=no
7828 _LT_TAGVAR(module_cmds, $1)=
7829 _LT_TAGVAR(module_expsym_cmds, $1)=
7830 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7831 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7832 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7833 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7834 _LT_TAGVAR(no_undefined_flag, $1)=
7835 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7836 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7837
7838 # Source file extension for fc test sources.
7839 ac_ext=${ac_fc_srcext-f}
7840
7841 # Object file extension for compiled fc test sources.
7842 objext=o
7843 _LT_TAGVAR(objext, $1)=$objext
7844
7845 # No sense in running all these tests if we already determined that
7846 # the FC compiler isn't working. Some variables (like enable_shared)
7847 # are currently assumed to apply to all compilers on this platform,
7848 # and will be corrupted by setting them based on a non-working compiler.
7849 if test yes != "$_lt_disable_FC"; then
7850 # Code to be used in simple compile tests
7851 lt_simple_compile_test_code="\
7852 subroutine t
7853 return
7854 end
7855 "
7856
7857 # Code to be used in simple link tests
7858 lt_simple_link_test_code="\
7859 program t
7860 end
7861 "
7862
7863 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7864 _LT_TAG_COMPILER
7865
7866 # save warnings/boilerplate of simple test code
7867 _LT_COMPILER_BOILERPLATE
7868 _LT_LINKER_BOILERPLATE
7869
7870 # Allow CC to be a program name with arguments.
7871 lt_save_CC=$CC
7872 lt_save_GCC=$GCC
7873 lt_save_CFLAGS=$CFLAGS
7874 CC=${FC-"f95"}
7875 CFLAGS=$FCFLAGS
7876 compiler=$CC
7877 GCC=$ac_cv_fc_compiler_gnu
7878
7879 _LT_TAGVAR(compiler, $1)=$CC
7880 _LT_CC_BASENAME([$compiler])
7881
7882 if test -n "$compiler"; then
7883 AC_MSG_CHECKING([if libtool supports shared libraries])
7884 AC_MSG_RESULT([$can_build_shared])
7885
7886 AC_MSG_CHECKING([whether to build shared libraries])
7887 test no = "$can_build_shared" && enable_shared=no
7888
7889 # On AIX, shared libraries and static libraries use the same namespace, and
7890 # are all built from PIC.
7891 case $host_os in
7892 aix3*)
7893 test yes = "$enable_shared" && enable_static=no
7894 if test -n "$RANLIB"; then
7895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7896 postinstall_cmds='$RANLIB $lib'
7897 fi
7898 ;;
7899 aix[[4-9]]*)
7900 if test ia64 != "$host_cpu"; then
7901 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7902 yes,aix,yes) ;; # shared object as lib.so file only
7903 yes,svr4,*) ;; # shared object as lib.so archive member only
7904 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7905 esac
7906 fi
7907 ;;
7908 esac
7909 AC_MSG_RESULT([$enable_shared])
7910
7911 AC_MSG_CHECKING([whether to build static libraries])
7912 # Make sure either enable_shared or enable_static is yes.
7913 test yes = "$enable_shared" || enable_static=yes
7914 AC_MSG_RESULT([$enable_static])
7915
7916 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7917 _LT_TAGVAR(LD, $1)=$LD
7918
7919 ## CAVEAT EMPTOR:
7920 ## There is no encapsulation within the following macros, do not change
7921 ## the running order or otherwise move them around unless you know exactly
7922 ## what you are doing...
7923 _LT_SYS_HIDDEN_LIBDEPS($1)
7924 _LT_COMPILER_PIC($1)
7925 _LT_COMPILER_C_O($1)
7926 _LT_COMPILER_FILE_LOCKS($1)
7927 _LT_LINKER_SHLIBS($1)
7928 _LT_SYS_DYNAMIC_LINKER($1)
7929 _LT_LINKER_HARDCODE_LIBPATH($1)
7930
7931 _LT_CONFIG($1)
7932 fi # test -n "$compiler"
7933
7934 GCC=$lt_save_GCC
7935 CC=$lt_save_CC
7936 CFLAGS=$lt_save_CFLAGS
7937 fi # test yes != "$_lt_disable_FC"
7938
7939 AC_LANG_POP
7940 ])# _LT_LANG_FC_CONFIG
7941
7942
7943 # _LT_LANG_GCJ_CONFIG([TAG])
7944 # --------------------------
7945 # Ensure that the configuration variables for the GNU Java Compiler compiler
7946 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7947 # to write the compiler configuration to 'libtool'.
7948 m4_defun([_LT_LANG_GCJ_CONFIG],
7949 [AC_REQUIRE([LT_PROG_GCJ])dnl
7950 AC_LANG_SAVE
7951
7952 # Source file extension for Java test sources.
7953 ac_ext=java
7954
7955 # Object file extension for compiled Java test sources.
7956 objext=o
7957 _LT_TAGVAR(objext, $1)=$objext
7958
7959 # Code to be used in simple compile tests
7960 lt_simple_compile_test_code="class foo {}"
7961
7962 # Code to be used in simple link tests
7963 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7964
7965 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7966 _LT_TAG_COMPILER
7967
7968 # save warnings/boilerplate of simple test code
7969 _LT_COMPILER_BOILERPLATE
7970 _LT_LINKER_BOILERPLATE
7971
7972 # Allow CC to be a program name with arguments.
7973 lt_save_CC=$CC
7974 lt_save_CFLAGS=$CFLAGS
7975 lt_save_GCC=$GCC
7976 GCC=yes
7977 CC=${GCJ-"gcj"}
7978 CFLAGS=$GCJFLAGS
7979 compiler=$CC
7980 _LT_TAGVAR(compiler, $1)=$CC
7981 _LT_TAGVAR(LD, $1)=$LD
7982 _LT_CC_BASENAME([$compiler])
7983
7984 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7985 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7986
7987 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7988 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7989 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7990
7991 ## CAVEAT EMPTOR:
7992 ## There is no encapsulation within the following macros, do not change
7993 ## the running order or otherwise move them around unless you know exactly
7994 ## what you are doing...
7995 if test -n "$compiler"; then
7996 _LT_COMPILER_NO_RTTI($1)
7997 _LT_COMPILER_PIC($1)
7998 _LT_COMPILER_C_O($1)
7999 _LT_COMPILER_FILE_LOCKS($1)
8000 _LT_LINKER_SHLIBS($1)
8001 _LT_LINKER_HARDCODE_LIBPATH($1)
8002
8003 _LT_CONFIG($1)
8004 fi
8005
8006 AC_LANG_RESTORE
8007
8008 GCC=$lt_save_GCC
8009 CC=$lt_save_CC
8010 CFLAGS=$lt_save_CFLAGS
8011 ])# _LT_LANG_GCJ_CONFIG
8012
8013
8014 # _LT_LANG_GO_CONFIG([TAG])
8015 # --------------------------
8016 # Ensure that the configuration variables for the GNU Go compiler
8017 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8018 # to write the compiler configuration to 'libtool'.
8019 m4_defun([_LT_LANG_GO_CONFIG],
8020 [AC_REQUIRE([LT_PROG_GO])dnl
8021 AC_LANG_SAVE
8022
8023 # Source file extension for Go test sources.
8024 ac_ext=go
8025
8026 # Object file extension for compiled Go test sources.
8027 objext=o
8028 _LT_TAGVAR(objext, $1)=$objext
8029
8030 # Code to be used in simple compile tests
8031 lt_simple_compile_test_code="package main; func main() { }"
8032
8033 # Code to be used in simple link tests
8034 lt_simple_link_test_code='package main; func main() { }'
8035
8036 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8037 _LT_TAG_COMPILER
8038
8039 # save warnings/boilerplate of simple test code
8040 _LT_COMPILER_BOILERPLATE
8041 _LT_LINKER_BOILERPLATE
8042
8043 # Allow CC to be a program name with arguments.
8044 lt_save_CC=$CC
8045 lt_save_CFLAGS=$CFLAGS
8046 lt_save_GCC=$GCC
8047 GCC=yes
8048 CC=${GOC-"gccgo"}
8049 CFLAGS=$GOFLAGS
8050 compiler=$CC
8051 _LT_TAGVAR(compiler, $1)=$CC
8052 _LT_TAGVAR(LD, $1)=$LD
8053 _LT_CC_BASENAME([$compiler])
8054
8055 # Go did not exist at the time GCC didn't implicitly link libc in.
8056 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8057
8058 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8059 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8060 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8061
8062 ## CAVEAT EMPTOR:
8063 ## There is no encapsulation within the following macros, do not change
8064 ## the running order or otherwise move them around unless you know exactly
8065 ## what you are doing...
8066 if test -n "$compiler"; then
8067 _LT_COMPILER_NO_RTTI($1)
8068 _LT_COMPILER_PIC($1)
8069 _LT_COMPILER_C_O($1)
8070 _LT_COMPILER_FILE_LOCKS($1)
8071 _LT_LINKER_SHLIBS($1)
8072 _LT_LINKER_HARDCODE_LIBPATH($1)
8073
8074 _LT_CONFIG($1)
8075 fi
8076
8077 AC_LANG_RESTORE
8078
8079 GCC=$lt_save_GCC
8080 CC=$lt_save_CC
8081 CFLAGS=$lt_save_CFLAGS
8082 ])# _LT_LANG_GO_CONFIG
8083
8084
8085 # _LT_LANG_RC_CONFIG([TAG])
8086 # -------------------------
8087 # Ensure that the configuration variables for the Windows resource compiler
8088 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8089 # to write the compiler configuration to 'libtool'.
8090 m4_defun([_LT_LANG_RC_CONFIG],
8091 [AC_REQUIRE([LT_PROG_RC])dnl
8092 AC_LANG_SAVE
8093
8094 # Source file extension for RC test sources.
8095 ac_ext=rc
8096
8097 # Object file extension for compiled RC test sources.
8098 objext=o
8099 _LT_TAGVAR(objext, $1)=$objext
8100
8101 # Code to be used in simple compile tests
8102 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8103
8104 # Code to be used in simple link tests
8105 lt_simple_link_test_code=$lt_simple_compile_test_code
8106
8107 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8108 _LT_TAG_COMPILER
8109
8110 # save warnings/boilerplate of simple test code
8111 _LT_COMPILER_BOILERPLATE
8112 _LT_LINKER_BOILERPLATE
8113
8114 # Allow CC to be a program name with arguments.
8115 lt_save_CC=$CC
8116 lt_save_CFLAGS=$CFLAGS
8117 lt_save_GCC=$GCC
8118 GCC=
8119 CC=${RC-"windres"}
8120 CFLAGS=
8121 compiler=$CC
8122 _LT_TAGVAR(compiler, $1)=$CC
8123 _LT_CC_BASENAME([$compiler])
8124 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8125
8126 if test -n "$compiler"; then
8127 :
8128 _LT_CONFIG($1)
8129 fi
8130
8131 GCC=$lt_save_GCC
8132 AC_LANG_RESTORE
8133 CC=$lt_save_CC
8134 CFLAGS=$lt_save_CFLAGS
8135 ])# _LT_LANG_RC_CONFIG
8136
8137
8138 # LT_PROG_GCJ
8139 # -----------
8140 AC_DEFUN([LT_PROG_GCJ],
8141 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8142 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8143 [AC_CHECK_TOOL(GCJ, gcj,)
8144 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8145 AC_SUBST(GCJFLAGS)])])[]dnl
8146 ])
8147
8148 # Old name:
8149 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8150 dnl aclocal-1.4 backwards compatibility:
8151 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8152
8153
8154 # LT_PROG_GO
8155 # ----------
8156 AC_DEFUN([LT_PROG_GO],
8157 [AC_CHECK_TOOL(GOC, gccgo,)
8158 ])
8159
8160
8161 # LT_PROG_RC
8162 # ----------
8163 AC_DEFUN([LT_PROG_RC],
8164 [AC_CHECK_TOOL(RC, windres,)
8165 ])
8166
8167 # Old name:
8168 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8169 dnl aclocal-1.4 backwards compatibility:
8170 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8171
8172
8173 # _LT_DECL_EGREP
8174 # --------------
8175 # If we don't have a new enough Autoconf to choose the best grep
8176 # available, choose the one first in the user's PATH.
8177 m4_defun([_LT_DECL_EGREP],
8178 [AC_REQUIRE([AC_PROG_EGREP])dnl
8179 AC_REQUIRE([AC_PROG_FGREP])dnl
8180 test -z "$GREP" && GREP=grep
8181 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8182 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8183 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8184 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8185 AC_SUBST([GREP])
8186 ])
8187
8188
8189 # _LT_DECL_OBJDUMP
8190 # --------------
8191 # If we don't have a new enough Autoconf to choose the best objdump
8192 # available, choose the one first in the user's PATH.
8193 m4_defun([_LT_DECL_OBJDUMP],
8194 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8195 test -z "$OBJDUMP" && OBJDUMP=objdump
8196 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8197 AC_SUBST([OBJDUMP])
8198 ])
8199
8200 # _LT_DECL_DLLTOOL
8201 # ----------------
8202 # Ensure DLLTOOL variable is set.
8203 m4_defun([_LT_DECL_DLLTOOL],
8204 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8205 test -z "$DLLTOOL" && DLLTOOL=dlltool
8206 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8207 AC_SUBST([DLLTOOL])
8208 ])
8209
8210 # _LT_DECL_SED
8211 # ------------
8212 # Check for a fully-functional sed program, that truncates
8213 # as few characters as possible. Prefer GNU sed if found.
8214 m4_defun([_LT_DECL_SED],
8215 [AC_PROG_SED
8216 test -z "$SED" && SED=sed
8217 Xsed="$SED -e 1s/^X//"
8218 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8219 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8220 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8221 ])# _LT_DECL_SED
8222
8223 m4_ifndef([AC_PROG_SED], [
8224 ############################################################
8225 # NOTE: This macro has been submitted for inclusion into #
8226 # GNU Autoconf as AC_PROG_SED. When it is available in #
8227 # a released version of Autoconf we should remove this #
8228 # macro and use it instead. #
8229 ############################################################
8230
8231 m4_defun([AC_PROG_SED],
8232 [AC_MSG_CHECKING([for a sed that does not truncate output])
8233 AC_CACHE_VAL(lt_cv_path_SED,
8234 [# Loop through the user's path and test for sed and gsed.
8235 # Then use that list of sed's as ones to test for truncation.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8238 do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for lt_ac_prog in sed gsed; do
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8244 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8245 fi
8246 done
8247 done
8248 done
8249 IFS=$as_save_IFS
8250 lt_ac_max=0
8251 lt_ac_count=0
8252 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8253 # along with /bin/sed that truncates output.
8254 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8255 test ! -f "$lt_ac_sed" && continue
8256 cat /dev/null > conftest.in
8257 lt_ac_count=0
8258 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8259 # Check for GNU sed and select it if it is found.
8260 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8261 lt_cv_path_SED=$lt_ac_sed
8262 break
8263 fi
8264 while true; do
8265 cat conftest.in conftest.in >conftest.tmp
8266 mv conftest.tmp conftest.in
8267 cp conftest.in conftest.nl
8268 echo >>conftest.nl
8269 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8270 cmp -s conftest.out conftest.nl || break
8271 # 10000 chars as input seems more than enough
8272 test 10 -lt "$lt_ac_count" && break
8273 lt_ac_count=`expr $lt_ac_count + 1`
8274 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8275 lt_ac_max=$lt_ac_count
8276 lt_cv_path_SED=$lt_ac_sed
8277 fi
8278 done
8279 done
8280 ])
8281 SED=$lt_cv_path_SED
8282 AC_SUBST([SED])
8283 AC_MSG_RESULT([$SED])
8284 ])#AC_PROG_SED
8285 ])#m4_ifndef
8286
8287 # Old name:
8288 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8289 dnl aclocal-1.4 backwards compatibility:
8290 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8291
8292
8293 # _LT_CHECK_SHELL_FEATURES
8294 # ------------------------
8295 # Find out whether the shell is Bourne or XSI compatible,
8296 # or has some other useful features.
8297 m4_defun([_LT_CHECK_SHELL_FEATURES],
8298 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8299 lt_unset=unset
8300 else
8301 lt_unset=false
8302 fi
8303 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8304
8305 # test EBCDIC or ASCII
8306 case `echo X|tr X '\101'` in
8307 A) # ASCII based system
8308 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8309 lt_SP2NL='tr \040 \012'
8310 lt_NL2SP='tr \015\012 \040\040'
8311 ;;
8312 *) # EBCDIC based system
8313 lt_SP2NL='tr \100 \n'
8314 lt_NL2SP='tr \r\n \100\100'
8315 ;;
8316 esac
8317 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8318 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8319 ])# _LT_CHECK_SHELL_FEATURES
8320
8321
8322 # _LT_PATH_CONVERSION_FUNCTIONS
8323 # -----------------------------
8324 # Determine what file name conversion functions should be used by
8325 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8326 # for certain cross-compile configurations and native mingw.
8327 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8328 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8329 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8330 AC_MSG_CHECKING([how to convert $build file names to $host format])
8331 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8332 [case $host in
8333 *-*-mingw* )
8334 case $build in
8335 *-*-mingw* ) # actually msys
8336 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8337 ;;
8338 *-*-cygwin* )
8339 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8340 ;;
8341 * ) # otherwise, assume *nix
8342 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8343 ;;
8344 esac
8345 ;;
8346 *-*-cygwin* )
8347 case $build in
8348 *-*-mingw* ) # actually msys
8349 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8350 ;;
8351 *-*-cygwin* )
8352 lt_cv_to_host_file_cmd=func_convert_file_noop
8353 ;;
8354 * ) # otherwise, assume *nix
8355 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8356 ;;
8357 esac
8358 ;;
8359 * ) # unhandled hosts (and "normal" native builds)
8360 lt_cv_to_host_file_cmd=func_convert_file_noop
8361 ;;
8362 esac
8363 ])
8364 to_host_file_cmd=$lt_cv_to_host_file_cmd
8365 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8366 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8367 [0], [convert $build file names to $host format])dnl
8368
8369 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8370 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8371 [#assume ordinary cross tools, or native build.
8372 lt_cv_to_tool_file_cmd=func_convert_file_noop
8373 case $host in
8374 *-*-mingw* )
8375 case $build in
8376 *-*-mingw* ) # actually msys
8377 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8378 ;;
8379 esac
8380 ;;
8381 esac
8382 ])
8383 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8384 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8385 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8386 [0], [convert $build files to toolchain format])dnl
8387 ])# _LT_PATH_CONVERSION_FUNCTIONS
+0
-123
m4/ltsugar.m4 less more
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3 # Written by Gary V. Vaughan, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 6 ltsugar.m4
10
11 # This is to help aclocal find these macros, as it can't see m4_define.
12 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
13
14
15 # lt_join(SEP, ARG1, [ARG2...])
16 # -----------------------------
17 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
18 # associated separator.
19 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
20 # versions in m4sugar had bugs.
21 m4_define([lt_join],
22 [m4_if([$#], [1], [],
23 [$#], [2], [[$2]],
24 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
25 m4_define([_lt_join],
26 [m4_if([$#$2], [2], [],
27 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
28
29
30 # lt_car(LIST)
31 # lt_cdr(LIST)
32 # ------------
33 # Manipulate m4 lists.
34 # These macros are necessary as long as will still need to support
35 # Autoconf-2.59 which quotes differently.
36 m4_define([lt_car], [[$1]])
37 m4_define([lt_cdr],
38 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
39 [$#], 1, [],
40 [m4_dquote(m4_shift($@))])])
41 m4_define([lt_unquote], $1)
42
43
44 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
45 # ------------------------------------------
46 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
47 # Note that neither SEPARATOR nor STRING are expanded; they are appended
48 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
49 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
50 # than defined and empty).
51 #
52 # This macro is needed until we can rely on Autoconf 2.62, since earlier
53 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
54 m4_define([lt_append],
55 [m4_define([$1],
56 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
57
58
59
60 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
61 # ----------------------------------------------------------
62 # Produce a SEP delimited list of all paired combinations of elements of
63 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
64 # has the form PREFIXmINFIXSUFFIXn.
65 # Needed until we can rely on m4_combine added in Autoconf 2.62.
66 m4_define([lt_combine],
67 [m4_if(m4_eval([$# > 3]), [1],
68 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
69 [[m4_foreach([_Lt_prefix], [$2],
70 [m4_foreach([_Lt_suffix],
71 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
72 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
73
74
75 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
76 # -----------------------------------------------------------------------
77 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
78 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
79 m4_define([lt_if_append_uniq],
80 [m4_ifdef([$1],
81 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
82 [lt_append([$1], [$2], [$3])$4],
83 [$5])],
84 [lt_append([$1], [$2], [$3])$4])])
85
86
87 # lt_dict_add(DICT, KEY, VALUE)
88 # -----------------------------
89 m4_define([lt_dict_add],
90 [m4_define([$1($2)], [$3])])
91
92
93 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
94 # --------------------------------------------
95 m4_define([lt_dict_add_subkey],
96 [m4_define([$1($2:$3)], [$4])])
97
98
99 # lt_dict_fetch(DICT, KEY, [SUBKEY])
100 # ----------------------------------
101 m4_define([lt_dict_fetch],
102 [m4_ifval([$3],
103 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
104 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
105
106
107 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
108 # -----------------------------------------------------------------
109 m4_define([lt_if_dict_fetch],
110 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
111 [$5],
112 [$6])])
113
114
115 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
116 # --------------------------------------------------------------
117 m4_define([lt_dict_filter],
118 [m4_if([$5], [], [],
119 [lt_join(m4_quote(m4_default([$4], [[, ]])),
120 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
121 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
122 ])
+0
-98
m4/lt~obsolete.m4 less more
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004.
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # serial 5 lt~obsolete.m4
10
11 # These exist entirely to fool aclocal when bootstrapping libtool.
12 #
13 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
14 # which have later been changed to m4_define as they aren't part of the
15 # exported API, or moved to Autoconf or Automake where they belong.
16 #
17 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
18 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
19 # using a macro with the same name in our local m4/libtool.m4 it'll
20 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
21 # and doesn't know about Autoconf macros at all.)
22 #
23 # So we provide this file, which has a silly filename so it's always
24 # included after everything else. This provides aclocal with the
25 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
26 # because those macros already exist, or will be overwritten later.
27 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
28 #
29 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
30 # Yes, that means every name once taken will need to remain here until
31 # we give up compatibility with versions before 1.7, at which point
32 # we need to keep only those names which we still refer to.
33
34 # This is to help aclocal find these macros, as it can't see m4_define.
35 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
36
37 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
38 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
39 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
40 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
41 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
42 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
43 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
44 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
45 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
46 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
47 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
48 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
49 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
50 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
51 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
52 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
53 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
54 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
55 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
56 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
57 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
58 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
59 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
60 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
61 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
62 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
63 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
64 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
65 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
66 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
67 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
68 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
69 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
70 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
71 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
72 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
73 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
74 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
75 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
76 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
77 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
78 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
79 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
80 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
81 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
82 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
83 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
84 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
85 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
86 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
87 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
88 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
89 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
90 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
91 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
92 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
93 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
94 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
95 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
96 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
97 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
+0
-215
missing less more
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 exit 1
29 fi
30
31 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
43
44 -h|--h|--he|--hel|--help)
45 echo "\
46 $0 [OPTION]... PROGRAM [ARGUMENT]...
47
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
50
51 Options:
52 -h, --help display this help and exit
53 -v, --version output version information and exit
54
55 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
61
62 Send bug reports to <bug-automake@gnu.org>."
63 exit $?
64 ;;
65
66 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67 echo "missing $scriptversion (GNU Automake)"
68 exit $?
69 ;;
70
71 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
74 exit 1
75 ;;
76
77 esac
78
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=https://www.perl.org/
104 flex_URL=https://github.com/westes/flex
105 gnu_software_URL=https://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
207
208 # Local variables:
209 # eval: (add-hook 'before-save-hook 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC0"
213 # time-stamp-end: "; # UTC"
214 # End:
+0
-1189
src/Makefile.in less more
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17
18 VPATH = @srcdir@
19 am__is_gnu_make = { \
20 if test -z '$(MAKELEVEL)'; then \
21 false; \
22 elif test -n '$(MAKE_HOST)'; then \
23 true; \
24 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
25 true; \
26 else \
27 false; \
28 fi; \
29 }
30 am__make_running_with_option = \
31 case $${target_option-} in \
32 ?) ;; \
33 *) echo "am__make_running_with_option: internal error: invalid" \
34 "target option '$${target_option-}' specified" >&2; \
35 exit 1;; \
36 esac; \
37 has_opt=no; \
38 sane_makeflags=$$MAKEFLAGS; \
39 if $(am__is_gnu_make); then \
40 sane_makeflags=$$MFLAGS; \
41 else \
42 case $$MAKEFLAGS in \
43 *\\[\ \ ]*) \
44 bs=\\; \
45 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
46 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
47 esac; \
48 fi; \
49 skip_next=no; \
50 strip_trailopt () \
51 { \
52 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
53 }; \
54 for flg in $$sane_makeflags; do \
55 test $$skip_next = yes && { skip_next=no; continue; }; \
56 case $$flg in \
57 *=*|--*) continue;; \
58 -*I) strip_trailopt 'I'; skip_next=yes;; \
59 -*I?*) strip_trailopt 'I';; \
60 -*O) strip_trailopt 'O'; skip_next=yes;; \
61 -*O?*) strip_trailopt 'O';; \
62 -*l) strip_trailopt 'l'; skip_next=yes;; \
63 -*l?*) strip_trailopt 'l';; \
64 -[dEDm]) skip_next=yes;; \
65 -[JT]) skip_next=yes;; \
66 esac; \
67 case $$flg in \
68 *$$target_option*) has_opt=yes; break;; \
69 esac; \
70 done; \
71 test $$has_opt = yes
72 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
73 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
74 pkgdatadir = $(datadir)/@PACKAGE@
75 pkgincludedir = $(includedir)/@PACKAGE@
76 pkglibdir = $(libdir)/@PACKAGE@
77 pkglibexecdir = $(libexecdir)/@PACKAGE@
78 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
79 install_sh_DATA = $(install_sh) -c -m 644
80 install_sh_PROGRAM = $(install_sh) -c
81 install_sh_SCRIPT = $(install_sh) -c
82 INSTALL_HEADER = $(INSTALL_DATA)
83 transform = $(program_transform_name)
84 NORMAL_INSTALL = :
85 PRE_INSTALL = :
86 POST_INSTALL = :
87 NORMAL_UNINSTALL = :
88 PRE_UNINSTALL = :
89 POST_UNINSTALL = :
90 build_triplet = @build@
91 host_triplet = @host@
92 bin_PROGRAMS = folialint$(EXEEXT)
93 check_PROGRAMS = simpletest$(EXEEXT)
94 subdir = src
95 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
96 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_osx_pkg.m4 \
97 $(top_srcdir)/m4/ax_pthread.m4 $(top_srcdir)/m4/libtool.m4 \
98 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
99 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
100 $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
101 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
102 $(ACLOCAL_M4)
103 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
104 mkinstalldirs = $(install_sh) -d
105 CONFIG_HEADER = $(top_builddir)/config.h
106 CONFIG_CLEAN_FILES =
107 CONFIG_CLEAN_VPATH_FILES =
108 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" \
109 "$(DESTDIR)$(bindir)"
110 PROGRAMS = $(bin_PROGRAMS)
111 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
112 am__vpath_adj = case $$p in \
113 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
114 *) f=$$p;; \
115 esac;
116 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
117 am__install_max = 40
118 am__nobase_strip_setup = \
119 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
120 am__nobase_strip = \
121 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
122 am__nobase_list = $(am__nobase_strip_setup); \
123 for p in $$list; do echo "$$p $$p"; done | \
124 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
125 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
126 if (++n[$$2] == $(am__install_max)) \
127 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
128 END { for (dir in files) print dir, files[dir] }'
129 am__base_list = \
130 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
131 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
132 am__uninstall_files_from_dir = { \
133 test -z "$$files" \
134 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
135 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
136 $(am__cd) "$$dir" && rm -f $$files; }; \
137 }
138 LTLIBRARIES = $(lib_LTLIBRARIES)
139 libfolia_la_LIBADD =
140 am_libfolia_la_OBJECTS = folia_impl.lo folia_document.lo \
141 folia_utils.lo folia_types.lo folia_properties.lo \
142 folia_provenance.lo folia_engine.lo
143 libfolia_la_OBJECTS = $(am_libfolia_la_OBJECTS)
144 AM_V_lt = $(am__v_lt_@AM_V@)
145 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
146 am__v_lt_0 = --silent
147 am__v_lt_1 =
148 libfolia_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
149 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
150 $(CXXFLAGS) $(libfolia_la_LDFLAGS) $(LDFLAGS) -o $@
151 am_folialint_OBJECTS = folialint.$(OBJEXT)
152 folialint_OBJECTS = $(am_folialint_OBJECTS)
153 folialint_LDADD = $(LDADD)
154 folialint_DEPENDENCIES = libfolia.la
155 am_simpletest_OBJECTS = simpletest.$(OBJEXT)
156 simpletest_OBJECTS = $(am_simpletest_OBJECTS)
157 simpletest_LDADD = $(LDADD)
158 simpletest_DEPENDENCIES = libfolia.la
159 SCRIPTS = $(bin_SCRIPTS)
160 AM_V_P = $(am__v_P_@AM_V@)
161 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
162 am__v_P_0 = false
163 am__v_P_1 = :
164 AM_V_GEN = $(am__v_GEN_@AM_V@)
165 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
166 am__v_GEN_0 = @echo " GEN " $@;
167 am__v_GEN_1 =
168 AM_V_at = $(am__v_at_@AM_V@)
169 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
170 am__v_at_0 = @
171 am__v_at_1 =
172 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
173 depcomp = $(SHELL) $(top_srcdir)/depcomp
174 am__maybe_remake_depfiles = depfiles
175 am__depfiles_remade = ./$(DEPDIR)/folia_document.Plo \
176 ./$(DEPDIR)/folia_engine.Plo ./$(DEPDIR)/folia_impl.Plo \
177 ./$(DEPDIR)/folia_properties.Plo \
178 ./$(DEPDIR)/folia_provenance.Plo ./$(DEPDIR)/folia_types.Plo \
179 ./$(DEPDIR)/folia_utils.Plo ./$(DEPDIR)/folialint.Po \
180 ./$(DEPDIR)/simpletest.Po
181 am__mv = mv -f
182 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
183 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
184 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
185 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
186 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
187 $(AM_CXXFLAGS) $(CXXFLAGS)
188 AM_V_CXX = $(am__v_CXX_@AM_V@)
189 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
190 am__v_CXX_0 = @echo " CXX " $@;
191 am__v_CXX_1 =
192 CXXLD = $(CXX)
193 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
194 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
195 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
196 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
197 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
198 am__v_CXXLD_0 = @echo " CXXLD " $@;
199 am__v_CXXLD_1 =
200 SOURCES = $(libfolia_la_SOURCES) $(folialint_SOURCES) \
201 $(simpletest_SOURCES)
202 DIST_SOURCES = $(libfolia_la_SOURCES) $(folialint_SOURCES) \
203 $(simpletest_SOURCES)
204 am__can_run_installinfo = \
205 case $$AM_UPDATE_INFO_DIR in \
206 n|no|NO) false;; \
207 *) (install-info --version) >/dev/null 2>&1;; \
208 esac
209 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
210 # Read a list of newline-separated strings from the standard input,
211 # and print each of them once, without duplicates. Input order is
212 # *not* preserved.
213 am__uniquify_input = $(AWK) '\
214 BEGIN { nonempty = 0; } \
215 { items[$$0] = 1; nonempty = 1; } \
216 END { if (nonempty) { for (i in items) print i; }; } \
217 '
218 # Make sure the list of sources is unique. This is necessary because,
219 # e.g., the same source file might be shared among _SOURCES variables
220 # for different programs/libraries.
221 am__define_uniq_tagged_files = \
222 list='$(am__tagged_files)'; \
223 unique=`for i in $$list; do \
224 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
225 done | $(am__uniquify_input)`
226 ETAGS = etags
227 CTAGS = ctags
228 am__tty_colors_dummy = \
229 mgn= red= grn= lgn= blu= brg= std=; \
230 am__color_tests=no
231 am__tty_colors = { \
232 $(am__tty_colors_dummy); \
233 if test "X$(AM_COLOR_TESTS)" = Xno; then \
234 am__color_tests=no; \
235 elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
236 am__color_tests=yes; \
237 elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
238 am__color_tests=yes; \
239 fi; \
240 if test $$am__color_tests = yes; then \
241 red=''; \
242 grn=''; \
243 lgn=''; \
244 blu=''; \
245 mgn=''; \
246 brg=''; \
247 std=''; \
248 fi; \
249 }
250 am__recheck_rx = ^[ ]*:recheck:[ ]*
251 am__global_test_result_rx = ^[ ]*:global-test-result:[ ]*
252 am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]*
253 # A command that, given a newline-separated list of test names on the
254 # standard input, print the name of the tests that are to be re-run
255 # upon "make recheck".
256 am__list_recheck_tests = $(AWK) '{ \
257 recheck = 1; \
258 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
259 { \
260 if (rc < 0) \
261 { \
262 if ((getline line2 < ($$0 ".log")) < 0) \
263 recheck = 0; \
264 break; \
265 } \
266 else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
267 { \
268 recheck = 0; \
269 break; \
270 } \
271 else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
272 { \
273 break; \
274 } \
275 }; \
276 if (recheck) \
277 print $$0; \
278 close ($$0 ".trs"); \
279 close ($$0 ".log"); \
280 }'
281 # A command that, given a newline-separated list of test names on the
282 # standard input, create the global log from their .trs and .log files.
283 am__create_global_log = $(AWK) ' \
284 function fatal(msg) \
285 { \
286 print "fatal: making $@: " msg | "cat >&2"; \
287 exit 1; \
288 } \
289 function rst_section(header) \
290 { \
291 print header; \
292 len = length(header); \
293 for (i = 1; i <= len; i = i + 1) \
294 printf "="; \
295 printf "\n\n"; \
296 } \
297 { \
298 copy_in_global_log = 1; \
299 global_test_result = "RUN"; \
300 while ((rc = (getline line < ($$0 ".trs"))) != 0) \
301 { \
302 if (rc < 0) \
303 fatal("failed to read from " $$0 ".trs"); \
304 if (line ~ /$(am__global_test_result_rx)/) \
305 { \
306 sub("$(am__global_test_result_rx)", "", line); \
307 sub("[ ]*$$", "", line); \
308 global_test_result = line; \
309 } \
310 else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
311 copy_in_global_log = 0; \
312 }; \
313 if (copy_in_global_log) \
314 { \
315 rst_section(global_test_result ": " $$0); \
316 while ((rc = (getline line < ($$0 ".log"))) != 0) \
317 { \
318 if (rc < 0) \
319 fatal("failed to read from " $$0 ".log"); \
320 print line; \
321 }; \
322 printf "\n"; \
323 }; \
324 close ($$0 ".trs"); \
325 close ($$0 ".log"); \
326 }'
327 # Restructured Text title.
328 am__rst_title = { sed 's/.*/ & /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
329 # Solaris 10 'make', and several other traditional 'make' implementations,
330 # pass "-e" to $(SHELL), and POSIX 2008 even requires this. Work around it
331 # by disabling -e (using the XSI extension "set +e") if it's set.
332 am__sh_e_setup = case $$- in *e*) set +e;; esac
333 # Default flags passed to test drivers.
334 am__common_driver_flags = \
335 --color-tests "$$am__color_tests" \
336 --enable-hard-errors "$$am__enable_hard_errors" \
337 --expect-failure "$$am__expect_failure"
338 # To be inserted before the command running the test. Creates the
339 # directory for the log if needed. Stores in $dir the directory
340 # containing $f, in $tst the test, in $log the log. Executes the
341 # developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
342 # passes TESTS_ENVIRONMENT. Set up options for the wrapper that
343 # will run the test scripts (or their associated LOG_COMPILER, if
344 # thy have one).
345 am__check_pre = \
346 $(am__sh_e_setup); \
347 $(am__vpath_adj_setup) $(am__vpath_adj) \
348 $(am__tty_colors); \
349 srcdir=$(srcdir); export srcdir; \
350 case "$@" in \
351 */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
352 *) am__odir=.;; \
353 esac; \
354 test "x$$am__odir" = x"." || test -d "$$am__odir" \
355 || $(MKDIR_P) "$$am__odir" || exit $$?; \
356 if test -f "./$$f"; then dir=./; \
357 elif test -f "$$f"; then dir=; \
358 else dir="$(srcdir)/"; fi; \
359 tst=$$dir$$f; log='$@'; \
360 if test -n '$(DISABLE_HARD_ERRORS)'; then \
361 am__enable_hard_errors=no; \
362 else \
363 am__enable_hard_errors=yes; \
364 fi; \
365 case " $(XFAIL_TESTS) " in \
366 *[\ \ ]$$f[\ \ ]* | *[\ \ ]$$dir$$f[\ \ ]*) \
367 am__expect_failure=yes;; \
368 *) \
369 am__expect_failure=no;; \
370 esac; \
371 $(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
372 # A shell command to get the names of the tests scripts with any registered
373 # extension removed (i.e., equivalently, the names of the test logs, with
374 # the '.log' extension removed). The result is saved in the shell variable
375 # '$bases'. This honors runtime overriding of TESTS and TEST_LOGS. Sadly,
376 # we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
377 # since that might cause problem with VPATH rewrites for suffix-less tests.
378 # See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
379 am__set_TESTS_bases = \
380 bases='$(TEST_LOGS)'; \
381 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
382 bases=`echo $$bases`
383 RECHECK_LOGS = $(TEST_LOGS)
384 AM_RECURSIVE_TARGETS = check recheck
385 TEST_SUITE_LOG = test-suite.log
386 TEST_EXTENSIONS = @EXEEXT@ .test
387 LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
388 LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
389 am__set_b = \
390 case '$@' in \
391 */*) \
392 case '$*' in \
393 */*) b='$*';; \
394 *) b=`echo '$@' | sed 's/\.log$$//'`; \
395 esac;; \
396 *) \
397 b='$*';; \
398 esac
399 am__test_logs1 = $(TESTS:=.log)
400 am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
401 TEST_LOGS = $(am__test_logs2:.test.log=.log)
402 TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
403 TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
404 $(TEST_LOG_FLAGS)
405 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp \
406 $(top_srcdir)/test-driver
407 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
408 ACLOCAL = @ACLOCAL@
409 AMTAR = @AMTAR@
410 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
411 AR = @AR@
412 AUTOCONF = @AUTOCONF@
413 AUTOHEADER = @AUTOHEADER@
414 AUTOMAKE = @AUTOMAKE@
415 AWK = @AWK@
416 CC = @CC@
417 CCDEPMODE = @CCDEPMODE@
418 CFLAGS = @CFLAGS@
419 CPP = @CPP@
420 CPPFLAGS = @CPPFLAGS@
421 CXX = @CXX@
422 CXXCPP = @CXXCPP@
423 CXXDEPMODE = @CXXDEPMODE@
424 CXXFLAGS = @CXXFLAGS@
425 CYGPATH_W = @CYGPATH_W@
426 DEFS = @DEFS@
427 DEPDIR = @DEPDIR@
428 DLLTOOL = @DLLTOOL@
429 DSYMUTIL = @DSYMUTIL@
430 DUMPBIN = @DUMPBIN@
431 ECHO_C = @ECHO_C@
432 ECHO_N = @ECHO_N@
433 ECHO_T = @ECHO_T@
434 EGREP = @EGREP@
435 EXEEXT = @EXEEXT@
436 FGREP = @FGREP@
437 GREP = @GREP@
438 ICU_CFLAGS = @ICU_CFLAGS@
439 ICU_LIBS = @ICU_LIBS@
440 INSTALL = @INSTALL@
441 INSTALL_DATA = @INSTALL_DATA@
442 INSTALL_PROGRAM = @INSTALL_PROGRAM@
443 INSTALL_SCRIPT = @INSTALL_SCRIPT@
444 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
445 LD = @LD@
446 LDFLAGS = @LDFLAGS@
447 LIBOBJS = @LIBOBJS@
448 LIBS = @LIBS@
449 LIBTOOL = @LIBTOOL@
450 LIPO = @LIPO@
451 LN_S = @LN_S@
452 LTLIBOBJS = @LTLIBOBJS@
453 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
454 MAKEINFO = @MAKEINFO@
455 MANIFEST_TOOL = @MANIFEST_TOOL@
456 MKDIR_P = @MKDIR_P@
457 NM = @NM@
458 NMEDIT = @NMEDIT@
459 OBJDUMP = @OBJDUMP@
460 OBJEXT = @OBJEXT@
461 OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
462 OTOOL = @OTOOL@
463 OTOOL64 = @OTOOL64@
464 PACKAGE = @PACKAGE@
465 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
466 PACKAGE_NAME = @PACKAGE_NAME@
467 PACKAGE_STRING = @PACKAGE_STRING@
468 PACKAGE_TARNAME = @PACKAGE_TARNAME@
469 PACKAGE_URL = @PACKAGE_URL@
470 PACKAGE_VERSION = @PACKAGE_VERSION@
471 PATH_SEPARATOR = @PATH_SEPARATOR@
472 PKG_CONFIG = @PKG_CONFIG@
473 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
474 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
475 PTHREAD_CC = @PTHREAD_CC@
476 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
477 PTHREAD_LIBS = @PTHREAD_LIBS@
478 RANLIB = @RANLIB@
479 SED = @SED@
480 SET_MAKE = @SET_MAKE@
481 SHELL = @SHELL@
482 STRIP = @STRIP@
483 VERSION = @VERSION@
484 XML2_CFLAGS = @XML2_CFLAGS@
485 XML2_LIBS = @XML2_LIBS@
486 abs_builddir = @abs_builddir@
487 abs_srcdir = @abs_srcdir@
488 abs_top_builddir = @abs_top_builddir@
489 abs_top_srcdir = @abs_top_srcdir@
490 ac_ct_AR = @ac_ct_AR@
491 ac_ct_CC = @ac_ct_CC@
492 ac_ct_CXX = @ac_ct_CXX@
493 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
494 am__include = @am__include@
495 am__leading_dot = @am__leading_dot@
496 am__quote = @am__quote@
497 am__tar = @am__tar@
498 am__untar = @am__untar@
499 ax_pthread_config = @ax_pthread_config@
500 bindir = @bindir@
501 build = @build@
502 build_alias = @build_alias@
503 build_cpu = @build_cpu@
504 build_os = @build_os@
505 build_vendor = @build_vendor@
506 builddir = @builddir@
507 datadir = @datadir@
508 datarootdir = @datarootdir@
509 docdir = @docdir@
510 dvidir = @dvidir@
511 exec_prefix = @exec_prefix@
512 host = @host@
513 host_alias = @host_alias@
514 host_cpu = @host_cpu@
515 host_os = @host_os@
516 host_vendor = @host_vendor@
517 htmldir = @htmldir@
518 includedir = @includedir@
519 infodir = @infodir@
520 install_sh = @install_sh@
521 libdir = @libdir@
522 libexecdir = @libexecdir@
523 localedir = @localedir@
524 localstatedir = @localstatedir@
525 mandir = @mandir@
526 mkdir_p = @mkdir_p@
527 oldincludedir = @oldincludedir@
528 pdfdir = @pdfdir@
529 prefix = @prefix@
530 program_transform_name = @program_transform_name@
531 psdir = @psdir@
532 runstatedir = @runstatedir@
533 sbindir = @sbindir@
534 sharedstatedir = @sharedstatedir@
535 srcdir = @srcdir@
536 sysconfdir = @sysconfdir@
537 target_alias = @target_alias@
538 ticcutils_CFLAGS = @ticcutils_CFLAGS@
539 ticcutils_LIBS = @ticcutils_LIBS@
540 top_build_prefix = @top_build_prefix@
541 top_builddir = @top_builddir@
542 top_srcdir = @top_srcdir@
543 AM_CPPFLAGS = -I@top_srcdir@/include
544 AM_CXXFLAGS = -std=c++11 -g -O3 -W -Wall -pedantic
545 LDADD = libfolia.la
546 lib_LTLIBRARIES = libfolia.la
547 libfolia_la_LDFLAGS = -version-info 14:0:0
548 libfolia_la_SOURCES = folia_impl.cxx folia_document.cxx folia_utils.cxx \
549 folia_types.cxx folia_properties.cxx folia_provenance.cxx \
550 folia_engine.cxx
551
552 folialint_SOURCES = folialint.cxx
553 bin_SCRIPTS = foliadiff.sh
554 TESTS = $(check_PROGRAMS)
555 TESTS_ENVIRONMENT = topsrcdir=$(top_srcdir)
556 simpletest_SOURCES = simpletest.cxx
557 CLEANFILES = simpletest.out
558 EXTRA_DIST = foliadiff.sh
559 all: all-am
560
561 .SUFFIXES:
562 .SUFFIXES: .cxx .lo .log .o .obj .test .test$(EXEEXT) .trs
563 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
564 @for dep in $?; do \
565 case '$(am__configure_deps)' in \
566 *$$dep*) \
567 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
568 && { if test -f $@; then exit 0; else break; fi; }; \
569 exit 1;; \
570 esac; \
571 done; \
572 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
573 $(am__cd) $(top_srcdir) && \
574 $(AUTOMAKE) --foreign src/Makefile
575 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
576 @case '$?' in \
577 *config.status*) \
578 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
579 *) \
580 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
581 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
582 esac;
583
584 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
585 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
586
587 $(top_srcdir)/configure: $(am__configure_deps)
588 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
589 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
590 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
591 $(am__aclocal_m4_deps):
592 install-binPROGRAMS: $(bin_PROGRAMS)
593 @$(NORMAL_INSTALL)
594 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
595 if test -n "$$list"; then \
596 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
597 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
598 fi; \
599 for p in $$list; do echo "$$p $$p"; done | \
600 sed 's/$(EXEEXT)$$//' | \
601 while read p p1; do if test -f $$p \
602 || test -f $$p1 \
603 ; then echo "$$p"; echo "$$p"; else :; fi; \
604 done | \
605 sed -e 'p;s,.*/,,;n;h' \
606 -e 's|.*|.|' \
607 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
608 sed 'N;N;N;s,\n, ,g' | \
609 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
610 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
611 if ($$2 == $$4) files[d] = files[d] " " $$1; \
612 else { print "f", $$3 "/" $$4, $$1; } } \
613 END { for (d in files) print "f", d, files[d] }' | \
614 while read type dir files; do \
615 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
616 test -z "$$files" || { \
617 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
618 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
619 } \
620 ; done
621
622 uninstall-binPROGRAMS:
623 @$(NORMAL_UNINSTALL)
624 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
625 files=`for p in $$list; do echo "$$p"; done | \
626 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
627 -e 's/$$/$(EXEEXT)/' \
628 `; \
629 test -n "$$list" || exit 0; \
630 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
631 cd "$(DESTDIR)$(bindir)" && rm -f $$files
632
633 clean-binPROGRAMS:
634 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
635 echo " rm -f" $$list; \
636 rm -f $$list || exit $$?; \
637 test -n "$(EXEEXT)" || exit 0; \
638 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
639 echo " rm -f" $$list; \
640 rm -f $$list
641
642 clean-checkPROGRAMS:
643 @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
644 echo " rm -f" $$list; \
645 rm -f $$list || exit $$?; \
646 test -n "$(EXEEXT)" || exit 0; \
647 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
648 echo " rm -f" $$list; \
649 rm -f $$list
650
651 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
652 @$(NORMAL_INSTALL)
653 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
654 list2=; for p in $$list; do \
655 if test -f $$p; then \
656 list2="$$list2 $$p"; \
657 else :; fi; \
658 done; \
659 test -z "$$list2" || { \
660 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
661 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
662 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
663 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
664 }
665
666 uninstall-libLTLIBRARIES:
667 @$(NORMAL_UNINSTALL)
668 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
669 for p in $$list; do \
670 $(am__strip_dir) \
671 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
672 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
673 done
674
675 clean-libLTLIBRARIES:
676 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
677 @list='$(lib_LTLIBRARIES)'; \
678 locs=`for p in $$list; do echo $$p; done | \
679 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
680 sort -u`; \
681 test -z "$$locs" || { \
682 echo rm -f $${locs}; \
683 rm -f $${locs}; \
684 }
685
686 libfolia.la: $(libfolia_la_OBJECTS) $(libfolia_la_DEPENDENCIES) $(EXTRA_libfolia_la_DEPENDENCIES)
687 $(AM_V_CXXLD)$(libfolia_la_LINK) -rpath $(libdir) $(libfolia_la_OBJECTS) $(libfolia_la_LIBADD) $(LIBS)
688
689 folialint$(EXEEXT): $(folialint_OBJECTS) $(folialint_DEPENDENCIES) $(EXTRA_folialint_DEPENDENCIES)
690 @rm -f folialint$(EXEEXT)
691 $(AM_V_CXXLD)$(CXXLINK) $(folialint_OBJECTS) $(folialint_LDADD) $(LIBS)
692
693 simpletest$(EXEEXT): $(simpletest_OBJECTS) $(simpletest_DEPENDENCIES) $(EXTRA_simpletest_DEPENDENCIES)
694 @rm -f simpletest$(EXEEXT)
695 $(AM_V_CXXLD)$(CXXLINK) $(simpletest_OBJECTS) $(simpletest_LDADD) $(LIBS)
696 install-binSCRIPTS: $(bin_SCRIPTS)
697 @$(NORMAL_INSTALL)
698 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
699 if test -n "$$list"; then \
700 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
701 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
702 fi; \
703 for p in $$list; do \
704 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
705 if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
706 done | \
707 sed -e 'p;s,.*/,,;n' \
708 -e 'h;s|.*|.|' \
709 -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
710 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
711 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
712 if ($$2 == $$4) { files[d] = files[d] " " $$1; \
713 if (++n[d] == $(am__install_max)) { \
714 print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
715 else { print "f", d "/" $$4, $$1 } } \
716 END { for (d in files) print "f", d, files[d] }' | \
717 while read type dir files; do \
718 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
719 test -z "$$files" || { \
720 echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
721 $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
722 } \
723 ; done
724
725 uninstall-binSCRIPTS:
726 @$(NORMAL_UNINSTALL)
727 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
728 files=`for p in $$list; do echo "$$p"; done | \
729 sed -e 's,.*/,,;$(transform)'`; \
730 dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir)
731
732 mostlyclean-compile:
733 -rm -f *.$(OBJEXT)
734
735 distclean-compile:
736 -rm -f *.tab.c
737
738 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/folia_document.Plo@am__quote@ # am--include-marker
739 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/folia_engine.Plo@am__quote@ # am--include-marker
740 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/folia_impl.Plo@am__quote@ # am--include-marker
741 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/folia_properties.Plo@am__quote@ # am--include-marker
742 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/folia_provenance.Plo@am__quote@ # am--include-marker
743 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/folia_types.Plo@am__quote@ # am--include-marker
744 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/folia_utils.Plo@am__quote@ # am--include-marker
745 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/folialint.Po@am__quote@ # am--include-marker
746 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/simpletest.Po@am__quote@ # am--include-marker
747
748 $(am__depfiles_remade):
749 @$(MKDIR_P) $(@D)
750 @echo '# dummy' >$@-t && $(am__mv) $@-t $@
751
752 am--depfiles: $(am__depfiles_remade)
753
754 .cxx.o:
755 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
756 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
757 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
758 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
759 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
760
761 .cxx.obj:
762 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
763 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
764 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
765 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
766 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
767
768 .cxx.lo:
769 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
770 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
771 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
772 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
773 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
774
775 mostlyclean-libtool:
776 -rm -f *.lo
777
778 clean-libtool:
779 -rm -rf .libs _libs
780
781 ID: $(am__tagged_files)
782 $(am__define_uniq_tagged_files); mkid -fID $$unique
783 tags: tags-am
784 TAGS: tags
785
786 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
787 set x; \
788 here=`pwd`; \
789 $(am__define_uniq_tagged_files); \
790 shift; \
791 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
792 test -n "$$unique" || unique=$$empty_fix; \
793 if test $$# -gt 0; then \
794 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
795 "$$@" $$unique; \
796 else \
797 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
798 $$unique; \
799 fi; \
800 fi
801 ctags: ctags-am
802
803 CTAGS: ctags
804 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
805 $(am__define_uniq_tagged_files); \
806 test -z "$(CTAGS_ARGS)$$unique" \
807 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
808 $$unique
809
810 GTAGS:
811 here=`$(am__cd) $(top_builddir) && pwd` \
812 && $(am__cd) $(top_srcdir) \
813 && gtags -i $(GTAGS_ARGS) "$$here"
814 cscopelist: cscopelist-am
815
816 cscopelist-am: $(am__tagged_files)
817 list='$(am__tagged_files)'; \
818 case "$(srcdir)" in \
819 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
820 *) sdir=$(subdir)/$(srcdir) ;; \
821 esac; \
822 for i in $$list; do \
823 if test -f "$$i"; then \
824 echo "$(subdir)/$$i"; \
825 else \
826 echo "$$sdir/$$i"; \
827 fi; \
828 done >> $(top_builddir)/cscope.files
829
830 distclean-tags:
831 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
832
833 # Recover from deleted '.trs' file; this should ensure that
834 # "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
835 # both 'foo.log' and 'foo.trs'. Break the recipe in two subshells
836 # to avoid problems with "make -n".
837 .log.trs:
838 rm -f $< $@
839 $(MAKE) $(AM_MAKEFLAGS) $<
840
841 # Leading 'am--fnord' is there to ensure the list of targets does not
842 # expand to empty, as could happen e.g. with make check TESTS=''.
843 am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
844 am--force-recheck:
845 @:
846
847 $(TEST_SUITE_LOG): $(TEST_LOGS)
848 @$(am__set_TESTS_bases); \
849 am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
850 redo_bases=`for i in $$bases; do \
851 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
852 done`; \
853 if test -n "$$redo_bases"; then \
854 redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
855 redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
856 if $(am__make_dryrun); then :; else \
857 rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
858 fi; \
859 fi; \
860 if test -n "$$am__remaking_logs"; then \
861 echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
862 "recursion detected" >&2; \
863 elif test -n "$$redo_logs"; then \
864 am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
865 fi; \
866 if $(am__make_dryrun); then :; else \
867 st=0; \
868 errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
869 for i in $$redo_bases; do \
870 test -f $$i.trs && test -r $$i.trs \
871 || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
872 test -f $$i.log && test -r $$i.log \
873 || { echo "$$errmsg $$i.log" >&2; st=1; }; \
874 done; \
875 test $$st -eq 0 || exit 1; \
876 fi
877 @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
878 ws='[ ]'; \
879 results=`for b in $$bases; do echo $$b.trs; done`; \
880 test -n "$$results" || results=/dev/null; \
881 all=` grep "^$$ws*:test-result:" $$results | wc -l`; \
882 pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \
883 fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \
884 skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \
885 xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
886 xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
887 error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
888 if test `expr $$fail + $$xpass + $$error` -eq 0; then \
889 success=true; \
890 else \
891 success=false; \
892 fi; \
893 br='==================='; br=$$br$$br$$br$$br; \
894 result_count () \
895 { \
896 if test x"$$1" = x"--maybe-color"; then \
897 maybe_colorize=yes; \
898 elif test x"$$1" = x"--no-color"; then \
899 maybe_colorize=no; \
900 else \
901 echo "$@: invalid 'result_count' usage" >&2; exit 4; \
902 fi; \
903 shift; \
904 desc=$$1 count=$$2; \
905 if test $$maybe_colorize = yes && test $$count -gt 0; then \
906 color_start=$$3 color_end=$$std; \
907 else \
908 color_start= color_end=; \
909 fi; \
910 echo "$${color_start}# $$desc $$count$${color_end}"; \
911 }; \
912 create_testsuite_report () \
913 { \
914 result_count $$1 "TOTAL:" $$all "$$brg"; \
915 result_count $$1 "PASS: " $$pass "$$grn"; \
916 result_count $$1 "SKIP: " $$skip "$$blu"; \
917 result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
918 result_count $$1 "FAIL: " $$fail "$$red"; \
919 result_count $$1 "XPASS:" $$xpass "$$red"; \
920 result_count $$1 "ERROR:" $$error "$$mgn"; \
921 }; \
922 { \
923 echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" | \
924 $(am__rst_title); \
925 create_testsuite_report --no-color; \
926 echo; \
927 echo ".. contents:: :depth: 2"; \
928 echo; \
929 for b in $$bases; do echo $$b; done \
930 | $(am__create_global_log); \
931 } >$(TEST_SUITE_LOG).tmp || exit 1; \
932 mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG); \
933 if $$success; then \
934 col="$$grn"; \
935 else \
936 col="$$red"; \
937 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
938 fi; \
939 echo "$${col}$$br$${std}"; \
940 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
941 echo "$${col}$$br$${std}"; \
942 create_testsuite_report --maybe-color; \
943 echo "$$col$$br$$std"; \
944 if $$success; then :; else \
945 echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}"; \
946 if test -n "$(PACKAGE_BUGREPORT)"; then \
947 echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
948 fi; \
949 echo "$$col$$br$$std"; \
950 fi; \
951 $$success || exit 1
952
953 check-TESTS: $(check_PROGRAMS)
954 @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list
955 @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
956 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
957 @set +e; $(am__set_TESTS_bases); \
958 log_list=`for i in $$bases; do echo $$i.log; done`; \
959 trs_list=`for i in $$bases; do echo $$i.trs; done`; \
960 log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
961 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
962 exit $$?;
963 recheck: all $(check_PROGRAMS)
964 @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
965 @set +e; $(am__set_TESTS_bases); \
966 bases=`for i in $$bases; do echo $$i; done \
967 | $(am__list_recheck_tests)` || exit 1; \
968 log_list=`for i in $$bases; do echo $$i.log; done`; \
969 log_list=`echo $$log_list`; \
970 $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
971 am__force_recheck=am--force-recheck \
972 TEST_LOGS="$$log_list"; \
973 exit $$?
974 simpletest.log: simpletest$(EXEEXT)
975 @p='simpletest$(EXEEXT)'; \
976 b='simpletest'; \
977 $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
978 --log-file $$b.log --trs-file $$b.trs \
979 $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
980 "$$tst" $(AM_TESTS_FD_REDIRECT)
981 .test.log:
982 @p='$<'; \
983 $(am__set_b); \
984 $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
985 --log-file $$b.log --trs-file $$b.trs \
986 $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
987 "$$tst" $(AM_TESTS_FD_REDIRECT)
988 @am__EXEEXT_TRUE@.test$(EXEEXT).log:
989 @am__EXEEXT_TRUE@ @p='$<'; \
990 @am__EXEEXT_TRUE@ $(am__set_b); \
991 @am__EXEEXT_TRUE@ $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
992 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
993 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
994 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
995
996 distdir: $(BUILT_SOURCES)
997 $(MAKE) $(AM_MAKEFLAGS) distdir-am
998
999 distdir-am: $(DISTFILES)
1000 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1001 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1002 list='$(DISTFILES)'; \
1003 dist_files=`for file in $$list; do echo $$file; done | \
1004 sed -e "s|^$$srcdirstrip/||;t" \
1005 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1006 case $$dist_files in \
1007 */*) $(MKDIR_P) `echo "$$dist_files" | \
1008 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1009 sort -u` ;; \
1010 esac; \
1011 for file in $$dist_files; do \
1012 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1013 if test -d $$d/$$file; then \
1014 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1015 if test -d "$(distdir)/$$file"; then \
1016 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1017 fi; \
1018 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1019 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1020 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1021 fi; \
1022 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1023 else \
1024 test -f "$(distdir)/$$file" \
1025 || cp -p $$d/$$file "$(distdir)/$$file" \
1026 || exit 1; \
1027 fi; \
1028 done
1029 check-am: all-am
1030 $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
1031 $(MAKE) $(AM_MAKEFLAGS) check-TESTS
1032 check: check-am
1033 all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(SCRIPTS)
1034 install-binPROGRAMS: install-libLTLIBRARIES
1035
1036 installdirs:
1037 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)"; do \
1038 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1039 done
1040 install: install-am
1041 install-exec: install-exec-am
1042 install-data: install-data-am
1043 uninstall: uninstall-am
1044
1045 install-am: all-am
1046 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1047
1048 installcheck: installcheck-am
1049 install-strip:
1050 if test -z '$(STRIP)'; then \
1051 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1052 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1053 install; \
1054 else \
1055 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1056 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1057 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1058 fi
1059 mostlyclean-generic:
1060 -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
1061 -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
1062 -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
1063
1064 clean-generic:
1065 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1066
1067 distclean-generic:
1068 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1069 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1070
1071 maintainer-clean-generic:
1072 @echo "This command is intended for maintainers to use"
1073 @echo "it deletes files that may require special tools to rebuild."
1074 clean: clean-am
1075
1076 clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
1077 clean-libLTLIBRARIES clean-libtool mostlyclean-am
1078
1079 distclean: distclean-am
1080 -rm -f ./$(DEPDIR)/folia_document.Plo
1081 -rm -f ./$(DEPDIR)/folia_engine.Plo
1082 -rm -f ./$(DEPDIR)/folia_impl.Plo
1083 -rm -f ./$(DEPDIR)/folia_properties.Plo
1084 -rm -f ./$(DEPDIR)/folia_provenance.Plo
1085 -rm -f ./$(DEPDIR)/folia_types.Plo
1086 -rm -f ./$(DEPDIR)/folia_utils.Plo
1087 -rm -f ./$(DEPDIR)/folialint.Po
1088 -rm -f ./$(DEPDIR)/simpletest.Po
1089 -rm -f Makefile
1090 distclean-am: clean-am distclean-compile distclean-generic \
1091 distclean-tags
1092
1093 dvi: dvi-am
1094
1095 dvi-am:
1096
1097 html: html-am
1098
1099 html-am:
1100
1101 info: info-am
1102
1103 info-am:
1104
1105 install-data-am:
1106
1107 install-dvi: install-dvi-am
1108
1109 install-dvi-am:
1110
1111 install-exec-am: install-binPROGRAMS install-binSCRIPTS \
1112 install-libLTLIBRARIES
1113
1114 install-html: install-html-am
1115
1116 install-html-am:
1117
1118 install-info: install-info-am
1119
1120 install-info-am:
1121
1122 install-man:
1123
1124 install-pdf: install-pdf-am
1125
1126 install-pdf-am:
1127
1128 install-ps: install-ps-am
1129
1130 install-ps-am:
1131
1132 installcheck-am:
1133
1134 maintainer-clean: maintainer-clean-am
1135 -rm -f ./$(DEPDIR)/folia_document.Plo
1136 -rm -f ./$(DEPDIR)/folia_engine.Plo
1137 -rm -f ./$(DEPDIR)/folia_impl.Plo
1138 -rm -f ./$(DEPDIR)/folia_properties.Plo
1139 -rm -f ./$(DEPDIR)/folia_provenance.Plo
1140 -rm -f ./$(DEPDIR)/folia_types.Plo
1141 -rm -f ./$(DEPDIR)/folia_utils.Plo
1142 -rm -f ./$(DEPDIR)/folialint.Po
1143 -rm -f ./$(DEPDIR)/simpletest.Po
1144 -rm -f Makefile
1145 maintainer-clean-am: distclean-am maintainer-clean-generic
1146
1147 mostlyclean: mostlyclean-am
1148
1149 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1150 mostlyclean-libtool
1151
1152 pdf: pdf-am
1153
1154 pdf-am:
1155
1156 ps: ps-am
1157
1158 ps-am:
1159
1160 uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
1161 uninstall-libLTLIBRARIES
1162
1163 .MAKE: check-am install-am install-strip
1164
1165 .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-TESTS \
1166 check-am clean clean-binPROGRAMS clean-checkPROGRAMS \
1167 clean-generic clean-libLTLIBRARIES clean-libtool cscopelist-am \
1168 ctags ctags-am distclean distclean-compile distclean-generic \
1169 distclean-libtool distclean-tags distdir dvi dvi-am html \
1170 html-am info info-am install install-am install-binPROGRAMS \
1171 install-binSCRIPTS install-data install-data-am install-dvi \
1172 install-dvi-am install-exec install-exec-am install-html \
1173 install-html-am install-info install-info-am \
1174 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
1175 install-ps install-ps-am install-strip installcheck \
1176 installcheck-am installdirs maintainer-clean \
1177 maintainer-clean-generic mostlyclean mostlyclean-compile \
1178 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1179 recheck tags tags-am uninstall uninstall-am \
1180 uninstall-binPROGRAMS uninstall-binSCRIPTS \
1181 uninstall-libLTLIBRARIES
1182
1183 .PRECIOUS: Makefile
1184
1185
1186 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1187 # Otherwise a system limit (for SysV at least) may be exceeded.
1188 .NOEXPORT:
+0
-148
test-driver less more
0 #! /bin/sh
1 # test-driver - basic testsuite driver script.
2
3 scriptversion=2018-03-07.03; # UTC
4
5 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program. If not, see <https://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # This file is maintained in Automake, please report
26 # bugs to <bug-automake@gnu.org> or send patches to
27 # <automake-patches@gnu.org>.
28
29 # Make unconditional expansion of undefined variables an error. This
30 # helps a lot in preventing typo-related bugs.
31 set -u
32
33 usage_error ()
34 {
35 echo "$0: $*" >&2
36 print_usage >&2
37 exit 2
38 }
39
40 print_usage ()
41 {
42 cat <<END
43 Usage:
44 test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
45 [--expect-failure={yes|no}] [--color-tests={yes|no}]
46 [--enable-hard-errors={yes|no}] [--]
47 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
48 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
49 END
50 }
51
52 test_name= # Used for reporting.
53 log_file= # Where to save the output of the test script.
54 trs_file= # Where to save the metadata of the test run.
55 expect_failure=no
56 color_tests=no
57 enable_hard_errors=yes
58 while test $# -gt 0; do
59 case $1 in
60 --help) print_usage; exit $?;;
61 --version) echo "test-driver $scriptversion"; exit $?;;
62 --test-name) test_name=$2; shift;;
63 --log-file) log_file=$2; shift;;
64 --trs-file) trs_file=$2; shift;;
65 --color-tests) color_tests=$2; shift;;
66 --expect-failure) expect_failure=$2; shift;;
67 --enable-hard-errors) enable_hard_errors=$2; shift;;
68 --) shift; break;;
69 -*) usage_error "invalid option: '$1'";;
70 *) break;;
71 esac
72 shift
73 done
74
75 missing_opts=
76 test x"$test_name" = x && missing_opts="$missing_opts --test-name"
77 test x"$log_file" = x && missing_opts="$missing_opts --log-file"
78 test x"$trs_file" = x && missing_opts="$missing_opts --trs-file"
79 if test x"$missing_opts" != x; then
80 usage_error "the following mandatory options are missing:$missing_opts"
81 fi
82
83 if test $# -eq 0; then
84 usage_error "missing argument"
85 fi
86
87 if test $color_tests = yes; then
88 # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
89 red='' # Red.
90 grn='' # Green.
91 lgn='' # Light green.
92 blu='' # Blue.
93 mgn='' # Magenta.
94 std='' # No color.
95 else
96 red= grn= lgn= blu= mgn= std=
97 fi
98
99 do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
100 trap "st=129; $do_exit" 1
101 trap "st=130; $do_exit" 2
102 trap "st=141; $do_exit" 13
103 trap "st=143; $do_exit" 15
104
105 # Test script is run here.
106 "$@" >$log_file 2>&1
107 estatus=$?
108
109 if test $enable_hard_errors = no && test $estatus -eq 99; then
110 tweaked_estatus=1
111 else
112 tweaked_estatus=$estatus
113 fi
114
115 case $tweaked_estatus:$expect_failure in
116 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
117 0:*) col=$grn res=PASS recheck=no gcopy=no;;
118 77:*) col=$blu res=SKIP recheck=no gcopy=yes;;
119 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;;
120 *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;;
121 *:*) col=$red res=FAIL recheck=yes gcopy=yes;;
122 esac
123
124 # Report the test outcome and exit status in the logs, so that one can
125 # know whether the test passed or failed simply by looking at the '.log'
126 # file, without the need of also peaking into the corresponding '.trs'
127 # file (automake bug#11814).
128 echo "$res $test_name (exit status: $estatus)" >>$log_file
129
130 # Report outcome to console.
131 echo "${col}${res}${std}: $test_name"
132
133 # Register the test result, and other relevant metadata.
134 echo ":test-result: $res" > $trs_file
135 echo ":global-test-result: $res" >> $trs_file
136 echo ":recheck: $recheck" >> $trs_file
137 echo ":copy-in-global-log: $gcopy" >> $trs_file
138
139 # Local Variables:
140 # mode: shell-script
141 # sh-indentation: 2
142 # eval: (add-hook 'before-save-hook 'time-stamp)
143 # time-stamp-start: "scriptversion="
144 # time-stamp-format: "%:y-%02m-%02d.%02H"
145 # time-stamp-time-zone: "UTC0"
146 # time-stamp-end: "; # UTC"
147 # End: