Codebase list ibus-input-pad / upstream/1.4.2
Imported Upstream version 1.4.2 Osamu Aoki 10 years ago
45 changed file(s) with 15846 addition(s) and 11723 deletion(s). Raw diff Collapse all Expand all
0 commit ee268114f11d7c537e652e2b964bad4425a9b8c2
1 Author: fujiwarat <takao.fujiwara1@gmail.com>
2 Date: 2013-12-27 13:05:42 +0900
3
4 Released 1.4.2
5
6 Removed shared_type tag in input-pad.xml, which is not upstreamed.
7
8 M configure.ac
9 M engine/input-pad.xml.in
10
11 commit 3c607f7ce66c90aa222bcb62a7e59708aa6f74a3
12 Author: fujiwarat <takao.fujiwara1@gmail.com>
13 Date: 2013-12-06 15:33:02 +0900
14
15 Released 1.4.1
16
17 Added ibus-setup-input-pad.desktop
18 Enabled GTK3 by default.
19
20 M configure.ac
21
22 commit de3e9fe89ca12ecb0d9ef1303a16e9bed00868cc
23 Author: fujiwarat <takao.fujiwara1@gmail.com>
24 Date: 2013-12-06 15:29:56 +0900
25
26 Updated translations.
27
28 Updated po/ja.po po/pl.po
29
30 M po/ja.po
31 M po/pl.po
32
33 commit 11c139b6ccade3dfaa7ff5f7bcb1df64497171fa
34 Author: fujiwarat <takao.fujiwara1@gmail.com>
35 Date: 2013-12-03 15:32:26 +0900
36
37 Enabled GTK3 by default.
38
39 M configure.ac
40
41 commit f0022e1363e3c52676593faa717c9538f4b0c3de
42 Author: fujiwarat <takao.fujiwara1@gmail.com>
43 Date: 2013-12-03 15:21:41 +0900
44
45 Revised CFLAGS in autogen.sh .
46
47 M autogen.sh
48
49 commit a1bf3af97a0eaa6145f536c62c045ddf10887434
50 Author: fujiwarat <takao.fujiwara1@gmail.com>
51 Date: 2013-12-03 15:12:49 +0900
52
53 Enabled maintainer-mode in configure.ac.
54
55 M autogen.sh
56 M configure.ac
57
58 commit 762fcbbfc4888ab2d699214e95a097255c3a1757
59 Author: fujiwarat <takao.fujiwara1@gmail.com>
60 Date: 2013-10-08 14:38:05 +0900
61
62 Added ibus-setup-input-pad.desktop
63
64 M engine/Makefile.am
65 M po/POTFILES.in
66 A po/POTFILES.skip
67 M po/ibus-input-pad.pot
68 M setup/Makefile.am
69 A setup/ibus-setup-input-pad.desktop.in.in
70
71 commit b56cce950a820d05f3b27781220d6b3c3cc012de
72 Author: fujiwarat <takao.fujiwara1@gmail.com>
73 Date: 2012-12-17 20:24:00 +0900
74
75 Updated translations.
76
77 M po/LINGUAS
78 M po/fr.po
79 M po/ibus-input-pad.pot
80 M po/ja.po
81 A po/pl.po
82 A po/te.po
83 A po/uk.po
84 A po/zh_TW.po
85
86 commit ad82a14da0060a906e870cb02129df2840474ba5
87 Author: fujiwarat <takao.fujiwara1@gmail.com>
88 Date: 2011-03-08 12:11:06 +0900
89
90 Fixed typo
91
92 M po/ibus-input-pad.pot
93
94 commit a88253d3da7178931d99d93d0934e90f7049ee8f
95 Author: fujiwarat <takao.fujiwara1@gmail.com>
96 Date: 2011-03-08 11:51:07 +0900
97
98 Reverted again.
99
100 D po/ibus-input-pad.po
101 A po/ibus-input-pad.pot
102
103 commit 2f02fb107384d7e176283527d761c6407fadc879
104 Author: fujiwarat <takao.fujiwara1@gmail.com>
105 Date: 2011-03-08 11:48:59 +0900
106
107 Renamed po/ibus-input-pad.po
108
109 A po/ibus-input-pad.po
110 D po/ibus-input-pad.pot
111
112 commit 24804a5968f768722b055fc7d5d583552d29049e
113 Author: fujiwarat <takao.fujiwara1@gmail.com>
114 Date: 2011-03-08 11:43:12 +0900
115
116 Added ibus-input-pad.pot
117
118 M .gitignore
119 A po/ibus-input-pad.pot
120
121 commit 4888b0e6aa48c391a796c70dc8c624680b87f998
122 Author: fujiwarat <takao.fujiwara1@gmail.com>
123 Date: 2011-01-17 12:48:51 +0900
124
125 Updated copyright.
126
127 M Makefile.am
128 M configure.ac
129 M engine/Makefile.am
130 M engine/engine.c
131 M engine/engine.h
132 M engine/i18n.h
133 M engine/main.c
134 M po/fr.po
135 M po/ja.po
136 M setup/Makefile.am
137 M setup/iconfig-gtk2.c
138 M setup/iconfig-gtk2.h
139 M setup/main.c
140 M setup/setup-gtk2.c
141 M setup/setup-gtk2.h
142
143 commit e68fd848c1d7b00a11b51e7bd39887b172b9f4bc
144 Author: fujiwarat <takao.fujiwara1@gmail.com>
145 Date: 2010-12-22 13:32:19 +0900
146
147 Updated debian build.
148
149 M debian/changelog
150 M debian/control
151
0152 commit c2bec278b43a888a9c496e0ad6c125275d2a19ee
1153 Author: fujiwarat <takao.fujiwara1@gmail.com>
2154 Date: 2010-12-03 15:27:18 +0900
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
4 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
4 Inc.
55
66 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
225225
226226 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227227
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
232
228233 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
229234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
230235 a workaround. If GNU CC is not installed, it is therefore recommended
303308 overridden in the site shell script).
304309
305310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
306 an Autoconf bug. Until the bug is fixed you can use this workaround:
307
308 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
313
314 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
309315
310316 `configure' Invocation
311317 ======================
361367
362368 `configure' also accepts some other, not widely useful, options. Run
363369 `configure --help' for more details.
364
11 #
22 # ibus-input-pad - Input pad for IBus
33 #
4 # Copyright (c) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010 Red Hat, Inc.
4 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2011 Red Hat, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1817 #
1918 # ibus-input-pad - Input pad for IBus
2019 #
21 # Copyright (c) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
22 # Copyright (c) 2010 Red Hat, Inc.
20 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
21 # Copyright (c) 2010-2011 Red Hat, Inc.
2322 #
2423 # This program is free software; you can redistribute it and/or modify
2524 # it under the terms of the GNU General Public License as published by
3534 # with this program; if not, write to the Free Software Foundation, Inc.,
3635 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3736 VPATH = @srcdir@
37 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
38 am__make_running_with_option = \
39 case $${target_option-} in \
40 ?) ;; \
41 *) echo "am__make_running_with_option: internal error: invalid" \
42 "target option '$${target_option-}' specified" >&2; \
43 exit 1;; \
44 esac; \
45 has_opt=no; \
46 sane_makeflags=$$MAKEFLAGS; \
47 if $(am__is_gnu_make); then \
48 sane_makeflags=$$MFLAGS; \
49 else \
50 case $$MAKEFLAGS in \
51 *\\[\ \ ]*) \
52 bs=\\; \
53 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
54 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
55 esac; \
56 fi; \
57 skip_next=no; \
58 strip_trailopt () \
59 { \
60 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
61 }; \
62 for flg in $$sane_makeflags; do \
63 test $$skip_next = yes && { skip_next=no; continue; }; \
64 case $$flg in \
65 *=*|--*) continue;; \
66 -*I) strip_trailopt 'I'; skip_next=yes;; \
67 -*I?*) strip_trailopt 'I';; \
68 -*O) strip_trailopt 'O'; skip_next=yes;; \
69 -*O?*) strip_trailopt 'O';; \
70 -*l) strip_trailopt 'l'; skip_next=yes;; \
71 -*l?*) strip_trailopt 'l';; \
72 -[dEDm]) skip_next=yes;; \
73 -[JT]) skip_next=yes;; \
74 esac; \
75 case $$flg in \
76 *$$target_option*) has_opt=yes; break;; \
77 esac; \
78 done; \
79 test $$has_opt = yes
80 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
81 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
3882 pkgdatadir = $(datadir)/@PACKAGE@
3983 pkgincludedir = $(includedir)/@PACKAGE@
4084 pkglibdir = $(libdir)/@PACKAGE@
5498 build_triplet = @build@
5599 host_triplet = @host@
56100 subdir = .
57 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
58 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
59 $(srcdir)/ibus-input-pad.spec.in $(top_srcdir)/configure \
60 AUTHORS COPYING ChangeLog INSTALL NEWS TODO compile \
61 config.guess config.sub depcomp install-sh ltmain.sh missing
101 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
102 $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
103 $(top_srcdir)/configure $(am__configure_deps) \
104 $(srcdir)/config.h.in $(srcdir)/ibus-input-pad.spec.in COPYING \
105 TODO compile config.guess config.sub install-sh missing \
106 ltmain.sh
62107 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
63 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
108 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
109 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
110 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
111 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
64112 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
65113 $(ACLOCAL_M4)
66114 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
69117 CONFIG_HEADER = config.h
70118 CONFIG_CLEAN_FILES = ibus-input-pad.spec
71119 CONFIG_CLEAN_VPATH_FILES =
120 AM_V_P = $(am__v_P_@AM_V@)
121 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
122 am__v_P_0 = false
123 am__v_P_1 = :
124 AM_V_GEN = $(am__v_GEN_@AM_V@)
125 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
126 am__v_GEN_0 = @echo " GEN " $@;
127 am__v_GEN_1 =
128 AM_V_at = $(am__v_at_@AM_V@)
129 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
130 am__v_at_0 = @
131 am__v_at_1 =
72132 SOURCES =
73133 DIST_SOURCES =
74 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
75 html-recursive info-recursive install-data-recursive \
76 install-dvi-recursive install-exec-recursive \
77 install-html-recursive install-info-recursive \
78 install-pdf-recursive install-ps-recursive install-recursive \
79 installcheck-recursive installdirs-recursive pdf-recursive \
80 ps-recursive uninstall-recursive
134 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
135 ctags-recursive dvi-recursive html-recursive info-recursive \
136 install-data-recursive install-dvi-recursive \
137 install-exec-recursive install-html-recursive \
138 install-info-recursive install-pdf-recursive \
139 install-ps-recursive install-recursive installcheck-recursive \
140 installdirs-recursive pdf-recursive ps-recursive \
141 tags-recursive uninstall-recursive
142 am__can_run_installinfo = \
143 case $$AM_UPDATE_INFO_DIR in \
144 n|no|NO) false;; \
145 *) (install-info --version) >/dev/null 2>&1;; \
146 esac
81147 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
82148 distclean-recursive maintainer-clean-recursive
83 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
84 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
85 distdir dist dist-all distcheck
149 am__recursive_targets = \
150 $(RECURSIVE_TARGETS) \
151 $(RECURSIVE_CLEAN_TARGETS) \
152 $(am__extra_recursive_targets)
153 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
154 cscope distdir dist dist-all distcheck
155 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
156 $(LISP)config.h.in
157 # Read a list of newline-separated strings from the standard input,
158 # and print each of them once, without duplicates. Input order is
159 # *not* preserved.
160 am__uniquify_input = $(AWK) '\
161 BEGIN { nonempty = 0; } \
162 { items[$$0] = 1; nonempty = 1; } \
163 END { if (nonempty) { for (i in items) print i; }; } \
164 '
165 # Make sure the list of sources is unique. This is necessary because,
166 # e.g., the same source file might be shared among _SOURCES variables
167 # for different programs/libraries.
168 am__define_uniq_tagged_files = \
169 list='$(am__tagged_files)'; \
170 unique=`for i in $$list; do \
171 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
172 done | $(am__uniquify_input)`
86173 ETAGS = etags
87174 CTAGS = ctags
175 CSCOPE = cscope
88176 DIST_SUBDIRS = $(SUBDIRS)
89177 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
90178 distdir = $(PACKAGE)-$(VERSION)
91179 top_distdir = $(distdir)
92180 am__remove_distdir = \
93 { test ! -d "$(distdir)" \
94 || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
95 && rm -fr "$(distdir)"; }; }
181 if test -d "$(distdir)"; then \
182 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
183 && rm -rf "$(distdir)" \
184 || { sleep 5 && rm -rf "$(distdir)"; }; \
185 else :; fi
186 am__post_remove_distdir = $(am__remove_distdir)
96187 am__relativize = \
97188 dir0=`pwd`; \
98189 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
120211 reldir="$$dir2"
121212 DIST_ARCHIVES = $(distdir).tar.gz
122213 GZIP_ENV = --best
214 DIST_TARGETS = dist-gzip
123215 distuninstallcheck_listfiles = find . -type f -print
216 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
217 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
124218 distcleancheck_listfiles = find . -type f -print
125219 ACLOCAL = @ACLOCAL@
126220 ALL_LINGUAS = @ALL_LINGUAS@
127221 AMTAR = @AMTAR@
222 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
128223 AR = @AR@
129224 AUTOCONF = @AUTOCONF@
130225 AUTOHEADER = @AUTOHEADER@
146241 DATE_DISPLAY = @DATE_DISPLAY@
147242 DEFS = @DEFS@
148243 DEPDIR = @DEPDIR@
244 DLLTOOL = @DLLTOOL@
149245 DSYMUTIL = @DSYMUTIL@
150246 DUMPBIN = @DUMPBIN@
151247 ECHO_C = @ECHO_C@
158254 GLIB2_CFLAGS = @GLIB2_CFLAGS@
159255 GLIB2_LIBS = @GLIB2_LIBS@
160256 GLIB_CFLAGS = @GLIB_CFLAGS@
257 GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
161258 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
162259 GLIB_LIBS = @GLIB_LIBS@
163260 GLIB_MKENUMS = @GLIB_MKENUMS@
184281 INTLTOOL_MERGE = @INTLTOOL_MERGE@
185282 INTLTOOL_PERL = @INTLTOOL_PERL@
186283 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
284 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
285 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
286 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
287 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
187288 LD = @LD@
188289 LDFLAGS = @LDFLAGS@
189290 LIBOBJS = @LIBOBJS@
194295 LTLIBOBJS = @LTLIBOBJS@
195296 MAINT = @MAINT@
196297 MAKEINFO = @MAKEINFO@
298 MANIFEST_TOOL = @MANIFEST_TOOL@
197299 MKDIR_P = @MKDIR_P@
198300 MKINSTALLDIRS = @MKINSTALLDIRS@
199301 MSGFMT = @MSGFMT@
232334 abs_srcdir = @abs_srcdir@
233335 abs_top_builddir = @abs_top_builddir@
234336 abs_top_srcdir = @abs_top_srcdir@
337 ac_ct_AR = @ac_ct_AR@
235338 ac_ct_CC = @ac_ct_CC@
236339 ac_ct_CXX = @ac_ct_CXX@
237340 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
261364 includedir = @includedir@
262365 infodir = @infodir@
263366 install_sh = @install_sh@
367 intltool__v_merge_options_ = @intltool__v_merge_options_@
368 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
264369 libdir = @libdir@
265370 libexecdir = @libexecdir@
266371 libinput_pad_VERSION = @libinput_pad_VERSION@
298403 $(MAKE) $(AM_MAKEFLAGS) all-recursive
299404
300405 .SUFFIXES:
301 am--refresh:
406 am--refresh: Makefile
302407 @:
303408 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
304409 @for dep in $?; do \
334439 $(am__aclocal_m4_deps):
335440
336441 config.h: stamp-h1
337 @if test ! -f $@; then \
338 rm -f stamp-h1; \
339 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
340 else :; fi
442 @if test ! -f $@; then rm -f stamp-h1; else :; fi
443 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
341444
342445 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
343446 @rm -f stamp-h1
362465 -rm -f libtool config.lt
363466
364467 # This directory's subdirectories are mostly independent; you can cd
365 # into them and run `make' without going through this Makefile.
366 # To change the values of `make' variables: instead of editing Makefiles,
367 # (1) if the variable is set in `config.status', edit `config.status'
368 # (which will cause the Makefiles to be regenerated when you run `make');
369 # (2) otherwise, pass the desired values on the `make' command line.
370 $(RECURSIVE_TARGETS):
371 @fail= failcom='exit 1'; \
372 for f in x $$MAKEFLAGS; do \
373 case $$f in \
374 *=* | --[!k]*);; \
375 *k*) failcom='fail=yes';; \
376 esac; \
377 done; \
468 # into them and run 'make' without going through this Makefile.
469 # To change the values of 'make' variables: instead of editing Makefiles,
470 # (1) if the variable is set in 'config.status', edit 'config.status'
471 # (which will cause the Makefiles to be regenerated when you run 'make');
472 # (2) otherwise, pass the desired values on the 'make' command line.
473 $(am__recursive_targets):
474 @fail=; \
475 if $(am__make_keepgoing); then \
476 failcom='fail=yes'; \
477 else \
478 failcom='exit 1'; \
479 fi; \
378480 dot_seen=no; \
379481 target=`echo $@ | sed s/-recursive//`; \
380 list='$(SUBDIRS)'; for subdir in $$list; do \
482 case "$@" in \
483 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
484 *) list='$(SUBDIRS)' ;; \
485 esac; \
486 for subdir in $$list; do \
381487 echo "Making $$target in $$subdir"; \
382488 if test "$$subdir" = "."; then \
383489 dot_seen=yes; \
392498 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
393499 fi; test -z "$$fail"
394500
395 $(RECURSIVE_CLEAN_TARGETS):
396 @fail= failcom='exit 1'; \
397 for f in x $$MAKEFLAGS; do \
398 case $$f in \
399 *=* | --[!k]*);; \
400 *k*) failcom='fail=yes';; \
401 esac; \
402 done; \
403 dot_seen=no; \
404 case "$@" in \
405 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
406 *) list='$(SUBDIRS)' ;; \
407 esac; \
408 rev=''; for subdir in $$list; do \
409 if test "$$subdir" = "."; then :; else \
410 rev="$$subdir $$rev"; \
411 fi; \
412 done; \
413 rev="$$rev ."; \
414 target=`echo $@ | sed s/-recursive//`; \
415 for subdir in $$rev; do \
416 echo "Making $$target in $$subdir"; \
417 if test "$$subdir" = "."; then \
418 local_target="$$target-am"; \
419 else \
420 local_target="$$target"; \
421 fi; \
422 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
423 || eval $$failcom; \
424 done && test -z "$$fail"
425 tags-recursive:
426 list='$(SUBDIRS)'; for subdir in $$list; do \
427 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
428 done
429 ctags-recursive:
430 list='$(SUBDIRS)'; for subdir in $$list; do \
431 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
432 done
433
434 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
435 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
436 unique=`for i in $$list; do \
437 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
438 done | \
439 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
440 END { if (nonempty) { for (i in files) print i; }; }'`; \
441 mkid -fID $$unique
442 tags: TAGS
443
444 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
445 $(TAGS_FILES) $(LISP)
501 ID: $(am__tagged_files)
502 $(am__define_uniq_tagged_files); mkid -fID $$unique
503 tags: tags-recursive
504 TAGS: tags
505
506 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
446507 set x; \
447508 here=`pwd`; \
448509 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
458519 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
459520 fi; \
460521 done; \
461 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
462 unique=`for i in $$list; do \
463 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
464 done | \
465 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
466 END { if (nonempty) { for (i in files) print i; }; }'`; \
522 $(am__define_uniq_tagged_files); \
467523 shift; \
468524 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
469525 test -n "$$unique" || unique=$$empty_fix; \
475531 $$unique; \
476532 fi; \
477533 fi
478 ctags: CTAGS
479 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
480 $(TAGS_FILES) $(LISP)
481 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
482 unique=`for i in $$list; do \
483 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
484 done | \
485 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
486 END { if (nonempty) { for (i in files) print i; }; }'`; \
534 ctags: ctags-recursive
535
536 CTAGS: ctags
537 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
538 $(am__define_uniq_tagged_files); \
487539 test -z "$(CTAGS_ARGS)$$unique" \
488540 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
489541 $$unique
492544 here=`$(am__cd) $(top_builddir) && pwd` \
493545 && $(am__cd) $(top_srcdir) \
494546 && gtags -i $(GTAGS_ARGS) "$$here"
547 cscope: cscope.files
548 test ! -s cscope.files \
549 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
550 clean-cscope:
551 -rm -f cscope.files
552 cscope.files: clean-cscope cscopelist
553 cscopelist: cscopelist-recursive
554
555 cscopelist-am: $(am__tagged_files)
556 list='$(am__tagged_files)'; \
557 case "$(srcdir)" in \
558 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
559 *) sdir=$(subdir)/$(srcdir) ;; \
560 esac; \
561 for i in $$list; do \
562 if test -f "$$i"; then \
563 echo "$(subdir)/$$i"; \
564 else \
565 echo "$$sdir/$$i"; \
566 fi; \
567 done >> $(top_builddir)/cscope.files
495568
496569 distclean-tags:
497570 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
571 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
498572
499573 distdir: $(DISTFILES)
500574 $(am__remove_distdir)
530604 done
531605 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
532606 if test "$$subdir" = .; then :; else \
533 test -d "$(distdir)/$$subdir" \
534 || $(MKDIR_P) "$(distdir)/$$subdir" \
535 || exit 1; \
536 fi; \
537 done
538 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
539 if test "$$subdir" = .; then :; else \
607 $(am__make_dryrun) \
608 || test -d "$(distdir)/$$subdir" \
609 || $(MKDIR_P) "$(distdir)/$$subdir" \
610 || exit 1; \
540611 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
541612 $(am__relativize); \
542613 new_distdir=$$reldir; \
568639 || chmod -R a+r "$(distdir)"
569640 dist-gzip: distdir
570641 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
571 $(am__remove_distdir)
642 $(am__post_remove_distdir)
572643
573644 dist-bzip2: distdir
574 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
575 $(am__remove_distdir)
576
577 dist-lzma: distdir
578 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
579 $(am__remove_distdir)
645 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
646 $(am__post_remove_distdir)
647
648 dist-lzip: distdir
649 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
650 $(am__post_remove_distdir)
580651
581652 dist-xz: distdir
582 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
583 $(am__remove_distdir)
653 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
654 $(am__post_remove_distdir)
584655
585656 dist-tarZ: distdir
586657 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
587 $(am__remove_distdir)
658 $(am__post_remove_distdir)
588659
589660 dist-shar: distdir
590661 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
591 $(am__remove_distdir)
662 $(am__post_remove_distdir)
592663
593664 dist-zip: distdir
594665 -rm -f $(distdir).zip
595666 zip -rq $(distdir).zip $(distdir)
596 $(am__remove_distdir)
597
598 dist dist-all: distdir
599 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
600 $(am__remove_distdir)
667 $(am__post_remove_distdir)
668
669 dist dist-all:
670 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
671 $(am__post_remove_distdir)
601672
602673 # This target untars the dist file and tries a VPATH configuration. Then
603674 # it guarantees that the distribution is self-contained by making another
608679 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
609680 *.tar.bz2*) \
610681 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
611 *.tar.lzma*) \
612 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
682 *.tar.lz*) \
683 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
613684 *.tar.xz*) \
614685 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
615686 *.tar.Z*) \
619690 *.zip*) \
620691 unzip $(distdir).zip ;;\
621692 esac
622 chmod -R a-w $(distdir); chmod a+w $(distdir)
623 mkdir $(distdir)/_build
624 mkdir $(distdir)/_inst
693 chmod -R a-w $(distdir)
694 chmod u+w $(distdir)
695 mkdir $(distdir)/_build $(distdir)/_inst
625696 chmod a-w $(distdir)
626697 test -d $(distdir)/_build || exit 0; \
627698 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
629700 && am__cwd=`pwd` \
630701 && $(am__cd) $(distdir)/_build \
631702 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
703 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
632704 $(DISTCHECK_CONFIGURE_FLAGS) \
633705 && $(MAKE) $(AM_MAKEFLAGS) \
634706 && $(MAKE) $(AM_MAKEFLAGS) dvi \
652724 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
653725 && cd "$$am__cwd" \
654726 || exit 1
655 $(am__remove_distdir)
727 $(am__post_remove_distdir)
656728 @(echo "$(distdir) archives ready for distribution: "; \
657729 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
658730 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
659731 distuninstallcheck:
660 @$(am__cd) '$(distuninstallcheck_dir)' \
661 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
732 @test -n '$(distuninstallcheck_dir)' || { \
733 echo 'ERROR: trying to run $@ with an empty' \
734 '$$(distuninstallcheck_dir)' >&2; \
735 exit 1; \
736 }; \
737 $(am__cd) '$(distuninstallcheck_dir)' || { \
738 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
739 exit 1; \
740 }; \
741 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
662742 || { echo "ERROR: files left after uninstall:" ; \
663743 if test -n "$(DESTDIR)"; then \
664744 echo " (check DESTDIR support)"; \
689769
690770 installcheck: installcheck-recursive
691771 install-strip:
692 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
693 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
694 `test -z '$(STRIP)' || \
695 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
772 if test -z '$(STRIP)'; then \
773 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
774 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
775 install; \
776 else \
777 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
778 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
779 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
780 fi
696781 mostlyclean-generic:
697782
698783 clean-generic:
774859
775860 uninstall-am:
776861
777 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
778 ctags-recursive install-am install-strip tags-recursive
779
780 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
781 all all-am am--refresh check check-am clean clean-generic \
782 clean-libtool clean-local ctags ctags-recursive dist dist-all \
783 dist-bzip2 dist-gzip dist-hook dist-lzma dist-shar dist-tarZ \
784 dist-xz dist-zip distcheck distclean distclean-generic \
785 distclean-hdr distclean-libtool distclean-tags distcleancheck \
786 distdir distuninstallcheck dvi dvi-am html html-am info \
787 info-am install install-am install-data install-data-am \
788 install-dvi install-dvi-am install-exec install-exec-am \
789 install-html install-html-am install-info install-info-am \
790 install-man install-pdf install-pdf-am install-ps \
791 install-ps-am install-strip installcheck installcheck-am \
792 installdirs installdirs-am maintainer-clean \
793 maintainer-clean-generic mostlyclean mostlyclean-generic \
794 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
795 uninstall uninstall-am
862 .MAKE: $(am__recursive_targets) all install-am install-strip
863
864 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
865 am--refresh check check-am clean clean-cscope clean-generic \
866 clean-libtool clean-local cscope cscopelist-am ctags ctags-am \
867 dist dist-all dist-bzip2 dist-gzip dist-hook dist-lzip \
868 dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
869 distclean-generic distclean-hdr distclean-libtool \
870 distclean-tags distcleancheck distdir distuninstallcheck dvi \
871 dvi-am html html-am info info-am install install-am \
872 install-data install-data-am install-dvi install-dvi-am \
873 install-exec install-exec-am install-html install-html-am \
874 install-info install-info-am install-man install-pdf \
875 install-pdf-am install-ps install-ps-am install-strip \
876 installcheck installcheck-am installdirs installdirs-am \
877 maintainer-clean maintainer-clean-generic mostlyclean \
878 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
879 tags tags-am uninstall uninstall-am
796880
797881
798882 dist-hook:
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
3
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1314 m4_ifndef([AC_AUTOCONF_VERSION],
1415 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],,
16 [m4_warning([this file was generated for autoconf 2.66.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
1718 You have another version of autoconf. It may work, but is not guaranteed to.
1819 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2021
2122 # Configure paths for GLIB
2223 # Owen Taylor 1997-2001
8485 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
8586 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
8687 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
88 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
8789
8890 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
8991 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
220222 GLIB_GENMARSHAL=""
221223 GOBJECT_QUERY=""
222224 GLIB_MKENUMS=""
225 GLIB_COMPILE_RESOURCES=""
223226 ifelse([$3], , :, [$3])
224227 fi
225228 AC_SUBST(GLIB_CFLAGS)
227230 AC_SUBST(GLIB_GENMARSHAL)
228231 AC_SUBST(GOBJECT_QUERY)
229232 AC_SUBST(GLIB_MKENUMS)
233 AC_SUBST(GLIB_COMPILE_RESOURCES)
230234 rm -f conf.glibtest
231235 ])
232236
471475 [CATOBJEXT=.mo
472476 DATADIRNAME=lib])
473477 ;;
478 *-*-openbsd*)
479 CATOBJEXT=.mo
480 DATADIRNAME=share
481 ;;
474482 *)
475483 CATOBJEXT=.mo
476484 DATADIRNAME=lib
543551 dnl
544552 glib_DEFUN([GLIB_GNU_GETTEXT],
545553 [AC_REQUIRE([AC_PROG_CC])dnl
546 AC_REQUIRE([AC_HEADER_STDC])dnl
547554
548555 GLIB_LC_MESSAGES
549556 GLIB_WITH_NLS
663670 fi])
664671
665672
666
667 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
668 # serial 40 IT_PROG_INTLTOOL
669 AC_DEFUN([IT_PROG_INTLTOOL], [
670 AC_PREREQ([2.50])dnl
671 AC_REQUIRE([AM_NLS])dnl
672
673 case "$am__api_version" in
674 1.[01234])
675 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
676 ;;
677 *)
678 ;;
679 esac
680
681 if test -n "$1"; then
682 AC_MSG_CHECKING([for intltool >= $1])
683
684 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
685 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
686 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
687 ]
688 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
689 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
690 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
691 fi
692
693 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
694 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
695 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
696 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
697 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
698 fi
699
700 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
701 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
702 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
703 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
704 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
705 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
706 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
707 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
708 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
709 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
710 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
711 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
712 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
713 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
714 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
715 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
716 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
717 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
718 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
719
720 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
721 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
722 _IT_SUBST(INTLTOOL_KEYS_RULE)
723 _IT_SUBST(INTLTOOL_PROP_RULE)
724 _IT_SUBST(INTLTOOL_OAF_RULE)
725 _IT_SUBST(INTLTOOL_PONG_RULE)
726 _IT_SUBST(INTLTOOL_SERVER_RULE)
727 _IT_SUBST(INTLTOOL_SHEET_RULE)
728 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
729 _IT_SUBST(INTLTOOL_UI_RULE)
730 _IT_SUBST(INTLTOOL_XAM_RULE)
731 _IT_SUBST(INTLTOOL_KBD_RULE)
732 _IT_SUBST(INTLTOOL_XML_RULE)
733 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
734 _IT_SUBST(INTLTOOL_CAVES_RULE)
735 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
736 _IT_SUBST(INTLTOOL_THEME_RULE)
737 _IT_SUBST(INTLTOOL_SERVICE_RULE)
738 _IT_SUBST(INTLTOOL_POLICY_RULE)
739
740 # Check the gettext tools to make sure they are GNU
741 AC_PATH_PROG(XGETTEXT, xgettext)
742 AC_PATH_PROG(MSGMERGE, msgmerge)
743 AC_PATH_PROG(MSGFMT, msgfmt)
744 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
745 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
746 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
747 fi
748 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
749 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
750 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
751 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
752 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
753 fi
754
755 AC_PATH_PROG(INTLTOOL_PERL, perl)
756 if test -z "$INTLTOOL_PERL"; then
757 AC_MSG_ERROR([perl not found])
758 fi
759 AC_MSG_CHECKING([for perl >= 5.8.1])
760 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
761 if test $? -ne 0; then
762 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
763 else
764 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
765 AC_MSG_RESULT([$IT_PERL_VERSION])
766 fi
767 if test "x$2" != "xno-xml"; then
768 AC_MSG_CHECKING([for XML::Parser])
769 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
770 AC_MSG_RESULT([ok])
771 else
772 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
773 fi
774 fi
775
776 # Substitute ALL_LINGUAS so we can use it in po/Makefile
777 AC_SUBST(ALL_LINGUAS)
778
779 # Set DATADIRNAME correctly if it is not set yet
780 # (copied from glib-gettext.m4)
781 if test -z "$DATADIRNAME"; then
782 AC_LINK_IFELSE(
783 [AC_LANG_PROGRAM([[]],
784 [[extern int _nl_msg_cat_cntr;
785 return _nl_msg_cat_cntr]])],
786 [DATADIRNAME=share],
787 [case $host in
788 *-*-solaris*)
789 dnl On Solaris, if bind_textdomain_codeset is in libc,
790 dnl GNU format message catalog is always supported,
791 dnl since both are added to the libc all together.
792 dnl Hence, we'd like to go with DATADIRNAME=share
793 dnl in this case.
794 AC_CHECK_FUNC(bind_textdomain_codeset,
795 [DATADIRNAME=share], [DATADIRNAME=lib])
796 ;;
797 *)
798 [DATADIRNAME=lib]
799 ;;
800 esac])
801 fi
802 AC_SUBST(DATADIRNAME)
803
804 IT_PO_SUBDIR([po])
805
806 ])
807
808
809 # IT_PO_SUBDIR(DIRNAME)
810 # ---------------------
811 # All po subdirs have to be declared with this macro; the subdir "po" is
812 # declared by IT_PROG_INTLTOOL.
813 #
814 AC_DEFUN([IT_PO_SUBDIR],
815 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
816 dnl
817 dnl The following CONFIG_COMMANDS should be executed at the very end
818 dnl of config.status.
819 AC_CONFIG_COMMANDS_PRE([
820 AC_CONFIG_COMMANDS([$1/stamp-it], [
821 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
822 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
823 fi
824 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
825 >"$1/stamp-it.tmp"
826 [sed '/^#/d
827 s/^[[].*] *//
828 /^[ ]*$/d
829 '"s|^| $ac_top_srcdir/|" \
830 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
831 ]
832 [sed '/^POTFILES =/,/[^\\]$/ {
833 /^POTFILES =/!d
834 r $1/POTFILES
835 }
836 ' "$1/Makefile.in" >"$1/Makefile"]
837 rm -f "$1/Makefile.tmp"
838 mv "$1/stamp-it.tmp" "$1/stamp-it"
839 ])
840 ])dnl
841 ])
842
843 # _IT_SUBST(VARIABLE)
844 # -------------------
845 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
846 #
847 AC_DEFUN([_IT_SUBST],
848 [
849 AC_SUBST([$1])
850 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
851 ]
852 )
853
854 # deprecated macros
855 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
856 # A hint is needed for aclocal from Automake <= 1.9.4:
857 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
858
859
860 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
861 #
862 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
863 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
864 # Inc.
865 # Written by Gordon Matzigkeit, 1996
866 #
867 # This file is free software; the Free Software Foundation gives
868 # unlimited permission to copy and/or distribute it, with or without
869 # modifications, as long as this notice is preserved.
870
871 m4_define([_LT_COPYING], [dnl
872 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
873 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
874 # Inc.
875 # Written by Gordon Matzigkeit, 1996
876 #
877 # This file is part of GNU Libtool.
878 #
879 # GNU Libtool is free software; you can redistribute it and/or
880 # modify it under the terms of the GNU General Public License as
881 # published by the Free Software Foundation; either version 2 of
882 # the License, or (at your option) any later version.
883 #
884 # As a special exception to the GNU General Public License,
885 # if you distribute this file as part of a program or library that
886 # is built using GNU Libtool, you may include this file under the
887 # same distribution terms that you use for the rest of that program.
888 #
889 # GNU Libtool is distributed in the hope that it will be useful,
890 # but WITHOUT ANY WARRANTY; without even the implied warranty of
891 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
892 # GNU General Public License for more details.
893 #
894 # You should have received a copy of the GNU General Public License
895 # along with GNU Libtool; see the file COPYING. If not, a copy
896 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
897 # obtained by writing to the Free Software Foundation, Inc.,
898 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
899 ])
900
901 # serial 57 LT_INIT
902
903
904 # LT_PREREQ(VERSION)
905 # ------------------
906 # Complain and exit if this libtool version is less that VERSION.
907 m4_defun([LT_PREREQ],
908 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
909 [m4_default([$3],
910 [m4_fatal([Libtool version $1 or higher is required],
911 63)])],
912 [$2])])
913
914
915 # _LT_CHECK_BUILDDIR
916 # ------------------
917 # Complain if the absolute build directory name contains unusual characters
918 m4_defun([_LT_CHECK_BUILDDIR],
919 [case `pwd` in
920 *\ * | *\ *)
921 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
922 esac
923 ])
924
925
926 # LT_INIT([OPTIONS])
927 # ------------------
928 AC_DEFUN([LT_INIT],
929 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
930 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
931 AC_BEFORE([$0], [LT_LANG])dnl
932 AC_BEFORE([$0], [LT_OUTPUT])dnl
933 AC_BEFORE([$0], [LTDL_INIT])dnl
934 m4_require([_LT_CHECK_BUILDDIR])dnl
935
936 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
937 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
938 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
939 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
940 dnl unless we require an AC_DEFUNed macro:
941 AC_REQUIRE([LTOPTIONS_VERSION])dnl
942 AC_REQUIRE([LTSUGAR_VERSION])dnl
943 AC_REQUIRE([LTVERSION_VERSION])dnl
944 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
945 m4_require([_LT_PROG_LTMAIN])dnl
946
947 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
948
949 dnl Parse OPTIONS
950 _LT_SET_OPTIONS([$0], [$1])
951
952 # This can be used to rebuild libtool when needed
953 LIBTOOL_DEPS="$ltmain"
954
955 # Always use our own libtool.
956 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
957 AC_SUBST(LIBTOOL)dnl
958
959 _LT_SETUP
960
961 # Only expand once:
962 m4_define([LT_INIT])
963 ])# LT_INIT
964
965 # Old names:
966 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
967 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
968 dnl aclocal-1.4 backwards compatibility:
969 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
970 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
971
972
973 # _LT_CC_BASENAME(CC)
974 # -------------------
975 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
976 m4_defun([_LT_CC_BASENAME],
977 [for cc_temp in $1""; do
978 case $cc_temp in
979 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
980 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
981 \-*) ;;
982 *) break;;
983 esac
984 done
985 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
986 ])
987
988
989 # _LT_FILEUTILS_DEFAULTS
990 # ----------------------
991 # It is okay to use these file commands and assume they have been set
992 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
993 m4_defun([_LT_FILEUTILS_DEFAULTS],
994 [: ${CP="cp -f"}
995 : ${MV="mv -f"}
996 : ${RM="rm -f"}
997 ])# _LT_FILEUTILS_DEFAULTS
998
999
1000 # _LT_SETUP
1001 # ---------
1002 m4_defun([_LT_SETUP],
1003 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1004 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1005 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1006 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1007
1008 _LT_DECL([], [host_alias], [0], [The host system])dnl
1009 _LT_DECL([], [host], [0])dnl
1010 _LT_DECL([], [host_os], [0])dnl
1011 dnl
1012 _LT_DECL([], [build_alias], [0], [The build system])dnl
1013 _LT_DECL([], [build], [0])dnl
1014 _LT_DECL([], [build_os], [0])dnl
1015 dnl
1016 AC_REQUIRE([AC_PROG_CC])dnl
1017 AC_REQUIRE([LT_PATH_LD])dnl
1018 AC_REQUIRE([LT_PATH_NM])dnl
1019 dnl
1020 AC_REQUIRE([AC_PROG_LN_S])dnl
1021 test -z "$LN_S" && LN_S="ln -s"
1022 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1023 dnl
1024 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1025 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1026 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1027 dnl
1028 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1029 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1030 m4_require([_LT_CMD_RELOAD])dnl
1031 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1032 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1033 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1034
1035 _LT_CONFIG_LIBTOOL_INIT([
1036 # See if we are running on zsh, and set the options which allow our
1037 # commands through without removal of \ escapes INIT.
1038 if test -n "\${ZSH_VERSION+set}" ; then
1039 setopt NO_GLOB_SUBST
1040 fi
1041 ])
1042 if test -n "${ZSH_VERSION+set}" ; then
1043 setopt NO_GLOB_SUBST
1044 fi
1045
1046 _LT_CHECK_OBJDIR
1047
1048 m4_require([_LT_TAG_COMPILER])dnl
1049
1050 case $host_os in
1051 aix3*)
1052 # AIX sometimes has problems with the GCC collect2 program. For some
1053 # reason, if we set the COLLECT_NAMES environment variable, the problems
1054 # vanish in a puff of smoke.
1055 if test "X${COLLECT_NAMES+set}" != Xset; then
1056 COLLECT_NAMES=
1057 export COLLECT_NAMES
1058 fi
1059 ;;
1060 esac
1061
1062 # Global variables:
1063 ofile=libtool
1064 can_build_shared=yes
1065
1066 # All known linkers require a `.a' archive for static linking (except MSVC,
1067 # which needs '.lib').
1068 libext=a
1069
1070 with_gnu_ld="$lt_cv_prog_gnu_ld"
1071
1072 old_CC="$CC"
1073 old_CFLAGS="$CFLAGS"
1074
1075 # Set sane defaults for various variables
1076 test -z "$CC" && CC=cc
1077 test -z "$LTCC" && LTCC=$CC
1078 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1079 test -z "$LD" && LD=ld
1080 test -z "$ac_objext" && ac_objext=o
1081
1082 _LT_CC_BASENAME([$compiler])
1083
1084 # Only perform the check for file, if the check method requires it
1085 test -z "$MAGIC_CMD" && MAGIC_CMD=file
1086 case $deplibs_check_method in
1087 file_magic*)
1088 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1089 _LT_PATH_MAGIC
1090 fi
1091 ;;
1092 esac
1093
1094 # Use C for the default configuration in the libtool script
1095 LT_SUPPORTED_TAG([CC])
1096 _LT_LANG_C_CONFIG
1097 _LT_LANG_DEFAULT_CONFIG
1098 _LT_CONFIG_COMMANDS
1099 ])# _LT_SETUP
1100
1101
1102 # _LT_PREPARE_SED_QUOTE_VARS
1103 # --------------------------
1104 # Define a few sed substitution that help us do robust quoting.
1105 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
1106 [# Backslashify metacharacters that are still active within
1107 # double-quoted strings.
1108 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1109
1110 # Same as above, but do not quote variable references.
1111 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1112
1113 # Sed substitution to delay expansion of an escaped shell variable in a
1114 # double_quote_subst'ed string.
1115 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1116
1117 # Sed substitution to delay expansion of an escaped single quote.
1118 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1119
1120 # Sed substitution to avoid accidental globbing in evaled expressions
1121 no_glob_subst='s/\*/\\\*/g'
1122 ])
1123
1124 # _LT_PROG_LTMAIN
1125 # ---------------
1126 # Note that this code is called both from `configure', and `config.status'
1127 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1128 # `config.status' has no value for ac_aux_dir unless we are using Automake,
1129 # so we pass a copy along to make sure it has a sensible value anyway.
1130 m4_defun([_LT_PROG_LTMAIN],
1131 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1132 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1133 ltmain="$ac_aux_dir/ltmain.sh"
1134 ])# _LT_PROG_LTMAIN
1135
1136
1137
1138 # So that we can recreate a full libtool script including additional
1139 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1140 # in macros and then make a single call at the end using the `libtool'
1141 # label.
1142
1143
1144 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1145 # ----------------------------------------
1146 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1147 m4_define([_LT_CONFIG_LIBTOOL_INIT],
1148 [m4_ifval([$1],
1149 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1150 [$1
1151 ])])])
1152
1153 # Initialize.
1154 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1155
1156
1157 # _LT_CONFIG_LIBTOOL([COMMANDS])
1158 # ------------------------------
1159 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1160 m4_define([_LT_CONFIG_LIBTOOL],
1161 [m4_ifval([$1],
1162 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1163 [$1
1164 ])])])
1165
1166 # Initialize.
1167 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1168
1169
1170 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1171 # -----------------------------------------------------
1172 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1173 [_LT_CONFIG_LIBTOOL([$1])
1174 _LT_CONFIG_LIBTOOL_INIT([$2])
1175 ])
1176
1177
1178 # _LT_FORMAT_COMMENT([COMMENT])
1179 # -----------------------------
1180 # Add leading comment marks to the start of each line, and a trailing
1181 # full-stop to the whole comment if one is not present already.
1182 m4_define([_LT_FORMAT_COMMENT],
1183 [m4_ifval([$1], [
1184 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1185 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1186 )])
1187
1188
1189
1190
1191
1192 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1193 # -------------------------------------------------------------------
1194 # CONFIGNAME is the name given to the value in the libtool script.
1195 # VARNAME is the (base) name used in the configure script.
1196 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1197 # VARNAME. Any other value will be used directly.
1198 m4_define([_LT_DECL],
1199 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1200 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1201 [m4_ifval([$1], [$1], [$2])])
1202 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1203 m4_ifval([$4],
1204 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1205 lt_dict_add_subkey([lt_decl_dict], [$2],
1206 [tagged?], [m4_ifval([$5], [yes], [no])])])
1207 ])
1208
1209
1210 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1211 # --------------------------------------------------------
1212 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1213
1214
1215 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1216 # ------------------------------------------------
1217 m4_define([lt_decl_tag_varnames],
1218 [_lt_decl_filter([tagged?], [yes], $@)])
1219
1220
1221 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1222 # ---------------------------------------------------------
1223 m4_define([_lt_decl_filter],
1224 [m4_case([$#],
1225 [0], [m4_fatal([$0: too few arguments: $#])],
1226 [1], [m4_fatal([$0: too few arguments: $#: $1])],
1227 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1228 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1229 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1230 ])
1231
1232
1233 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1234 # --------------------------------------------------
1235 m4_define([lt_decl_quote_varnames],
1236 [_lt_decl_filter([value], [1], $@)])
1237
1238
1239 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1240 # ---------------------------------------------------
1241 m4_define([lt_decl_dquote_varnames],
1242 [_lt_decl_filter([value], [2], $@)])
1243
1244
1245 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1246 # ---------------------------------------------------
1247 m4_define([lt_decl_varnames_tagged],
1248 [m4_assert([$# <= 2])dnl
1249 _$0(m4_quote(m4_default([$1], [[, ]])),
1250 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1251 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1252 m4_define([_lt_decl_varnames_tagged],
1253 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1254
1255
1256 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1257 # ------------------------------------------------
1258 m4_define([lt_decl_all_varnames],
1259 [_$0(m4_quote(m4_default([$1], [[, ]])),
1260 m4_if([$2], [],
1261 m4_quote(lt_decl_varnames),
1262 m4_quote(m4_shift($@))))[]dnl
1263 ])
1264 m4_define([_lt_decl_all_varnames],
1265 [lt_join($@, lt_decl_varnames_tagged([$1],
1266 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1267 ])
1268
1269
1270 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
1271 # ------------------------------------
1272 # Quote a variable value, and forward it to `config.status' so that its
1273 # declaration there will have the same value as in `configure'. VARNAME
1274 # must have a single quote delimited value for this to work.
1275 m4_define([_LT_CONFIG_STATUS_DECLARE],
1276 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1277
1278
1279 # _LT_CONFIG_STATUS_DECLARATIONS
1280 # ------------------------------
1281 # We delimit libtool config variables with single quotes, so when
1282 # we write them to config.status, we have to be sure to quote all
1283 # embedded single quotes properly. In configure, this macro expands
1284 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1285 #
1286 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1287 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1288 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1289 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1290
1291
1292 # _LT_LIBTOOL_TAGS
1293 # ----------------
1294 # Output comment and list of tags supported by the script
1295 m4_defun([_LT_LIBTOOL_TAGS],
1296 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1297 available_tags="_LT_TAGS"dnl
1298 ])
1299
1300
1301 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1302 # -----------------------------------
1303 # Extract the dictionary values for VARNAME (optionally with TAG) and
1304 # expand to a commented shell variable setting:
1305 #
1306 # # Some comment about what VAR is for.
1307 # visible_name=$lt_internal_name
1308 m4_define([_LT_LIBTOOL_DECLARE],
1309 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1310 [description])))[]dnl
1311 m4_pushdef([_libtool_name],
1312 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1313 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1314 [0], [_libtool_name=[$]$1],
1315 [1], [_libtool_name=$lt_[]$1],
1316 [2], [_libtool_name=$lt_[]$1],
1317 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1318 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1319 ])
1320
1321
1322 # _LT_LIBTOOL_CONFIG_VARS
1323 # -----------------------
1324 # Produce commented declarations of non-tagged libtool config variables
1325 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1326 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1327 # section) are produced by _LT_LIBTOOL_TAG_VARS.
1328 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1329 [m4_foreach([_lt_var],
1330 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1331 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1332
1333
1334 # _LT_LIBTOOL_TAG_VARS(TAG)
1335 # -------------------------
1336 m4_define([_LT_LIBTOOL_TAG_VARS],
1337 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1338 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1339
1340
1341 # _LT_TAGVAR(VARNAME, [TAGNAME])
1342 # ------------------------------
1343 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1344
1345
1346 # _LT_CONFIG_COMMANDS
1347 # -------------------
1348 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1349 # variables for single and double quote escaping we saved from calls
1350 # to _LT_DECL, we can put quote escaped variables declarations
1351 # into `config.status', and then the shell code to quote escape them in
1352 # for loops in `config.status'. Finally, any additional code accumulated
1353 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1354 m4_defun([_LT_CONFIG_COMMANDS],
1355 [AC_PROVIDE_IFELSE([LT_OUTPUT],
1356 dnl If the libtool generation code has been placed in $CONFIG_LT,
1357 dnl instead of duplicating it all over again into config.status,
1358 dnl then we will have config.status run $CONFIG_LT later, so it
1359 dnl needs to know what name is stored there:
1360 [AC_CONFIG_COMMANDS([libtool],
1361 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1362 dnl If the libtool generation code is destined for config.status,
1363 dnl expand the accumulated commands and init code now:
1364 [AC_CONFIG_COMMANDS([libtool],
1365 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1366 ])#_LT_CONFIG_COMMANDS
1367
1368
1369 # Initialize.
1370 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1371 [
1372
1373 # The HP-UX ksh and POSIX shell print the target directory to stdout
1374 # if CDPATH is set.
1375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1376
1377 sed_quote_subst='$sed_quote_subst'
1378 double_quote_subst='$double_quote_subst'
1379 delay_variable_subst='$delay_variable_subst'
1380 _LT_CONFIG_STATUS_DECLARATIONS
1381 LTCC='$LTCC'
1382 LTCFLAGS='$LTCFLAGS'
1383 compiler='$compiler_DEFAULT'
1384
1385 # A function that is used when there is no print builtin or printf.
1386 func_fallback_echo ()
1387 {
1388 eval 'cat <<_LTECHO_EOF
1389 \$[]1
1390 _LTECHO_EOF'
1391 }
1392
1393 # Quote evaled strings.
1394 for var in lt_decl_all_varnames([[ \
1395 ]], lt_decl_quote_varnames); do
1396 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1397 *[[\\\\\\\`\\"\\\$]]*)
1398 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1399 ;;
1400 *)
1401 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1402 ;;
1403 esac
1404 done
1405
1406 # Double-quote double-evaled strings.
1407 for var in lt_decl_all_varnames([[ \
1408 ]], lt_decl_dquote_varnames); do
1409 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1410 *[[\\\\\\\`\\"\\\$]]*)
1411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1412 ;;
1413 *)
1414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1415 ;;
1416 esac
1417 done
1418
1419 _LT_OUTPUT_LIBTOOL_INIT
1420 ])
1421
1422 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1423 # ------------------------------------
1424 # Generate a child script FILE with all initialization necessary to
1425 # reuse the environment learned by the parent script, and make the
1426 # file executable. If COMMENT is supplied, it is inserted after the
1427 # `#!' sequence but before initialization text begins. After this
1428 # macro, additional text can be appended to FILE to form the body of
1429 # the child script. The macro ends with non-zero status if the
1430 # file could not be fully written (such as if the disk is full).
1431 m4_ifdef([AS_INIT_GENERATED],
1432 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1433 [m4_defun([_LT_GENERATED_FILE_INIT],
1434 [m4_require([AS_PREPARE])]dnl
1435 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1436 [lt_write_fail=0
1437 cat >$1 <<_ASEOF || lt_write_fail=1
1438 #! $SHELL
1439 # Generated by $as_me.
1440 $2
1441 SHELL=\${CONFIG_SHELL-$SHELL}
1442 export SHELL
1443 _ASEOF
1444 cat >>$1 <<\_ASEOF || lt_write_fail=1
1445 AS_SHELL_SANITIZE
1446 _AS_PREPARE
1447 exec AS_MESSAGE_FD>&1
1448 _ASEOF
1449 test $lt_write_fail = 0 && chmod +x $1[]dnl
1450 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1451
1452 # LT_OUTPUT
1453 # ---------
1454 # This macro allows early generation of the libtool script (before
1455 # AC_OUTPUT is called), incase it is used in configure for compilation
1456 # tests.
1457 AC_DEFUN([LT_OUTPUT],
1458 [: ${CONFIG_LT=./config.lt}
1459 AC_MSG_NOTICE([creating $CONFIG_LT])
1460 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1461 [# Run this file to recreate a libtool stub with the current configuration.])
1462
1463 cat >>"$CONFIG_LT" <<\_LTEOF
1464 lt_cl_silent=false
1465 exec AS_MESSAGE_LOG_FD>>config.log
1466 {
1467 echo
1468 AS_BOX([Running $as_me.])
1469 } >&AS_MESSAGE_LOG_FD
1470
1471 lt_cl_help="\
1472 \`$as_me' creates a local libtool stub from the current configuration,
1473 for use in further configure time tests before the real libtool is
1474 generated.
1475
1476 Usage: $[0] [[OPTIONS]]
1477
1478 -h, --help print this help, then exit
1479 -V, --version print version number, then exit
1480 -q, --quiet do not print progress messages
1481 -d, --debug don't remove temporary files
1482
1483 Report bugs to <bug-libtool@gnu.org>."
1484
1485 lt_cl_version="\
1486 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1487 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1488 configured by $[0], generated by m4_PACKAGE_STRING.
1489
1490 Copyright (C) 2010 Free Software Foundation, Inc.
1491 This config.lt script is free software; the Free Software Foundation
1492 gives unlimited permision to copy, distribute and modify it."
1493
1494 while test $[#] != 0
1495 do
1496 case $[1] in
1497 --version | --v* | -V )
1498 echo "$lt_cl_version"; exit 0 ;;
1499 --help | --h* | -h )
1500 echo "$lt_cl_help"; exit 0 ;;
1501 --debug | --d* | -d )
1502 debug=: ;;
1503 --quiet | --q* | --silent | --s* | -q )
1504 lt_cl_silent=: ;;
1505
1506 -*) AC_MSG_ERROR([unrecognized option: $[1]
1507 Try \`$[0] --help' for more information.]) ;;
1508
1509 *) AC_MSG_ERROR([unrecognized argument: $[1]
1510 Try \`$[0] --help' for more information.]) ;;
1511 esac
1512 shift
1513 done
1514
1515 if $lt_cl_silent; then
1516 exec AS_MESSAGE_FD>/dev/null
1517 fi
1518 _LTEOF
1519
1520 cat >>"$CONFIG_LT" <<_LTEOF
1521 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1522 _LTEOF
1523
1524 cat >>"$CONFIG_LT" <<\_LTEOF
1525 AC_MSG_NOTICE([creating $ofile])
1526 _LT_OUTPUT_LIBTOOL_COMMANDS
1527 AS_EXIT(0)
1528 _LTEOF
1529 chmod +x "$CONFIG_LT"
1530
1531 # configure is writing to config.log, but config.lt does its own redirection,
1532 # appending to config.log, which fails on DOS, as config.log is still kept
1533 # open by configure. Here we exec the FD to /dev/null, effectively closing
1534 # config.log, so it can be properly (re)opened and appended to by config.lt.
1535 lt_cl_success=:
1536 test "$silent" = yes &&
1537 lt_config_lt_args="$lt_config_lt_args --quiet"
1538 exec AS_MESSAGE_LOG_FD>/dev/null
1539 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1540 exec AS_MESSAGE_LOG_FD>>config.log
1541 $lt_cl_success || AS_EXIT(1)
1542 ])# LT_OUTPUT
1543
1544
1545 # _LT_CONFIG(TAG)
1546 # ---------------
1547 # If TAG is the built-in tag, create an initial libtool script with a
1548 # default configuration from the untagged config vars. Otherwise add code
1549 # to config.status for appending the configuration named by TAG from the
1550 # matching tagged config vars.
1551 m4_defun([_LT_CONFIG],
1552 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1553 _LT_CONFIG_SAVE_COMMANDS([
1554 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1555 m4_if(_LT_TAG, [C], [
1556 # See if we are running on zsh, and set the options which allow our
1557 # commands through without removal of \ escapes.
1558 if test -n "${ZSH_VERSION+set}" ; then
1559 setopt NO_GLOB_SUBST
1560 fi
1561
1562 cfgfile="${ofile}T"
1563 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1564 $RM "$cfgfile"
1565
1566 cat <<_LT_EOF >> "$cfgfile"
1567 #! $SHELL
1568
1569 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1570 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1573 #
1574 _LT_COPYING
1575 _LT_LIBTOOL_TAGS
1576
1577 # ### BEGIN LIBTOOL CONFIG
1578 _LT_LIBTOOL_CONFIG_VARS
1579 _LT_LIBTOOL_TAG_VARS
1580 # ### END LIBTOOL CONFIG
1581
1582 _LT_EOF
1583
1584 case $host_os in
1585 aix3*)
1586 cat <<\_LT_EOF >> "$cfgfile"
1587 # AIX sometimes has problems with the GCC collect2 program. For some
1588 # reason, if we set the COLLECT_NAMES environment variable, the problems
1589 # vanish in a puff of smoke.
1590 if test "X${COLLECT_NAMES+set}" != Xset; then
1591 COLLECT_NAMES=
1592 export COLLECT_NAMES
1593 fi
1594 _LT_EOF
1595 ;;
1596 esac
1597
1598 _LT_PROG_LTMAIN
1599
1600 # We use sed instead of cat because bash on DJGPP gets confused if
1601 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1602 # text mode, it properly converts lines to CR/LF. This bash problem
1603 # is reportedly fixed, but why not run on old versions too?
1604 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1605 || (rm -f "$cfgfile"; exit 1)
1606
1607 _LT_PROG_XSI_SHELLFNS
1608
1609 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1610 || (rm -f "$cfgfile"; exit 1)
1611
1612 mv -f "$cfgfile" "$ofile" ||
1613 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1614 chmod +x "$ofile"
1615 ],
1616 [cat <<_LT_EOF >> "$ofile"
1617
1618 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1619 dnl in a comment (ie after a #).
1620 # ### BEGIN LIBTOOL TAG CONFIG: $1
1621 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
1622 # ### END LIBTOOL TAG CONFIG: $1
1623 _LT_EOF
1624 ])dnl /m4_if
1625 ],
1626 [m4_if([$1], [], [
1627 PACKAGE='$PACKAGE'
1628 VERSION='$VERSION'
1629 TIMESTAMP='$TIMESTAMP'
1630 RM='$RM'
1631 ofile='$ofile'], [])
1632 ])dnl /_LT_CONFIG_SAVE_COMMANDS
1633 ])# _LT_CONFIG
1634
1635
1636 # LT_SUPPORTED_TAG(TAG)
1637 # ---------------------
1638 # Trace this macro to discover what tags are supported by the libtool
1639 # --tag option, using:
1640 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1641 AC_DEFUN([LT_SUPPORTED_TAG], [])
1642
1643
1644 # C support is built-in for now
1645 m4_define([_LT_LANG_C_enabled], [])
1646 m4_define([_LT_TAGS], [])
1647
1648
1649 # LT_LANG(LANG)
1650 # -------------
1651 # Enable libtool support for the given language if not already enabled.
1652 AC_DEFUN([LT_LANG],
1653 [AC_BEFORE([$0], [LT_OUTPUT])dnl
1654 m4_case([$1],
1655 [C], [_LT_LANG(C)],
1656 [C++], [_LT_LANG(CXX)],
1657 [Java], [_LT_LANG(GCJ)],
1658 [Fortran 77], [_LT_LANG(F77)],
1659 [Fortran], [_LT_LANG(FC)],
1660 [Windows Resource], [_LT_LANG(RC)],
1661 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1662 [_LT_LANG($1)],
1663 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1664 ])# LT_LANG
1665
1666
1667 # _LT_LANG(LANGNAME)
1668 # ------------------
1669 m4_defun([_LT_LANG],
1670 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
1671 [LT_SUPPORTED_TAG([$1])dnl
1672 m4_append([_LT_TAGS], [$1 ])dnl
1673 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1674 _LT_LANG_$1_CONFIG($1)])dnl
1675 ])# _LT_LANG
1676
1677
1678 # _LT_LANG_DEFAULT_CONFIG
1679 # -----------------------
1680 m4_defun([_LT_LANG_DEFAULT_CONFIG],
1681 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
1682 [LT_LANG(CXX)],
1683 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1684
1685 AC_PROVIDE_IFELSE([AC_PROG_F77],
1686 [LT_LANG(F77)],
1687 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1688
1689 AC_PROVIDE_IFELSE([AC_PROG_FC],
1690 [LT_LANG(FC)],
1691 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1692
1693 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1694 dnl pulling things in needlessly.
1695 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1696 [LT_LANG(GCJ)],
1697 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1698 [LT_LANG(GCJ)],
1699 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1700 [LT_LANG(GCJ)],
1701 [m4_ifdef([AC_PROG_GCJ],
1702 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1703 m4_ifdef([A][M_PROG_GCJ],
1704 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1705 m4_ifdef([LT_PROG_GCJ],
1706 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1707
1708 AC_PROVIDE_IFELSE([LT_PROG_RC],
1709 [LT_LANG(RC)],
1710 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1711 ])# _LT_LANG_DEFAULT_CONFIG
1712
1713 # Obsolete macros:
1714 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1715 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1716 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1717 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1718 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1719 dnl aclocal-1.4 backwards compatibility:
1720 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1721 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1722 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1723 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1724 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1725
1726
1727 # _LT_TAG_COMPILER
1728 # ----------------
1729 m4_defun([_LT_TAG_COMPILER],
1730 [AC_REQUIRE([AC_PROG_CC])dnl
1731
1732 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1733 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1734 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1735 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1736
1737 # If no C compiler was specified, use CC.
1738 LTCC=${LTCC-"$CC"}
1739
1740 # If no C compiler flags were specified, use CFLAGS.
1741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1742
1743 # Allow CC to be a program name with arguments.
1744 compiler=$CC
1745 ])# _LT_TAG_COMPILER
1746
1747
1748 # _LT_COMPILER_BOILERPLATE
1749 # ------------------------
1750 # Check for compiler boilerplate output or warnings with
1751 # the simple compiler test code.
1752 m4_defun([_LT_COMPILER_BOILERPLATE],
1753 [m4_require([_LT_DECL_SED])dnl
1754 ac_outfile=conftest.$ac_objext
1755 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1756 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1757 _lt_compiler_boilerplate=`cat conftest.err`
1758 $RM conftest*
1759 ])# _LT_COMPILER_BOILERPLATE
1760
1761
1762 # _LT_LINKER_BOILERPLATE
1763 # ----------------------
1764 # Check for linker boilerplate output or warnings with
1765 # the simple link test code.
1766 m4_defun([_LT_LINKER_BOILERPLATE],
1767 [m4_require([_LT_DECL_SED])dnl
1768 ac_outfile=conftest.$ac_objext
1769 echo "$lt_simple_link_test_code" >conftest.$ac_ext
1770 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1771 _lt_linker_boilerplate=`cat conftest.err`
1772 $RM -r conftest*
1773 ])# _LT_LINKER_BOILERPLATE
1774
1775 # _LT_REQUIRED_DARWIN_CHECKS
1776 # -------------------------
1777 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1778 case $host_os in
1779 rhapsody* | darwin*)
1780 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1781 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1782 AC_CHECK_TOOL([LIPO], [lipo], [:])
1783 AC_CHECK_TOOL([OTOOL], [otool], [:])
1784 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1785 _LT_DECL([], [DSYMUTIL], [1],
1786 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1787 _LT_DECL([], [NMEDIT], [1],
1788 [Tool to change global to local symbols on Mac OS X])
1789 _LT_DECL([], [LIPO], [1],
1790 [Tool to manipulate fat objects and archives on Mac OS X])
1791 _LT_DECL([], [OTOOL], [1],
1792 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1793 _LT_DECL([], [OTOOL64], [1],
1794 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1795
1796 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1797 [lt_cv_apple_cc_single_mod=no
1798 if test -z "${LT_MULTI_MODULE}"; then
1799 # By default we will add the -single_module flag. You can override
1800 # by either setting the environment variable LT_MULTI_MODULE
1801 # non-empty at configure time, or by adding -multi_module to the
1802 # link flags.
1803 rm -rf libconftest.dylib*
1804 echo "int foo(void){return 1;}" > conftest.c
1805 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1806 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1807 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1808 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1809 _lt_result=$?
1810 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1811 lt_cv_apple_cc_single_mod=yes
1812 else
1813 cat conftest.err >&AS_MESSAGE_LOG_FD
1814 fi
1815 rm -rf libconftest.dylib*
1816 rm -f conftest.*
1817 fi])
1818 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1819 [lt_cv_ld_exported_symbols_list],
1820 [lt_cv_ld_exported_symbols_list=no
1821 save_LDFLAGS=$LDFLAGS
1822 echo "_main" > conftest.sym
1823 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1824 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1825 [lt_cv_ld_exported_symbols_list=yes],
1826 [lt_cv_ld_exported_symbols_list=no])
1827 LDFLAGS="$save_LDFLAGS"
1828 ])
1829 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1830 [lt_cv_ld_force_load=no
1831 cat > conftest.c << _LT_EOF
1832 int forced_loaded() { return 2;}
1833 _LT_EOF
1834 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1835 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1836 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1837 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1838 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1839 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1840 cat > conftest.c << _LT_EOF
1841 int main() { return 0;}
1842 _LT_EOF
1843 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1844 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1845 _lt_result=$?
1846 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1847 lt_cv_ld_force_load=yes
1848 else
1849 cat conftest.err >&AS_MESSAGE_LOG_FD
1850 fi
1851 rm -f conftest.err libconftest.a conftest conftest.c
1852 rm -rf conftest.dSYM
1853 ])
1854 case $host_os in
1855 rhapsody* | darwin1.[[012]])
1856 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1857 darwin1.*)
1858 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1859 darwin*) # darwin 5.x on
1860 # if running on 10.5 or later, the deployment target defaults
1861 # to the OS version, if on x86, and 10.4, the deployment
1862 # target defaults to 10.4. Don't you love it?
1863 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1864 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1865 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1866 10.[[012]]*)
1867 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1868 10.*)
1869 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1870 esac
1871 ;;
1872 esac
1873 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1874 _lt_dar_single_mod='$single_module'
1875 fi
1876 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1877 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1878 else
1879 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1880 fi
1881 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1882 _lt_dsymutil='~$DSYMUTIL $lib || :'
1883 else
1884 _lt_dsymutil=
1885 fi
1886 ;;
1887 esac
1888 ])
1889
1890
1891 # _LT_DARWIN_LINKER_FEATURES
1892 # --------------------------
1893 # Checks for linker and compiler features on darwin
1894 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1895 [
1896 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1897 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1898 _LT_TAGVAR(hardcode_direct, $1)=no
1899 _LT_TAGVAR(hardcode_automatic, $1)=yes
1900 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1901 if test "$lt_cv_ld_force_load" = "yes"; then
1902 _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\"`'
1903 else
1904 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1905 fi
1906 _LT_TAGVAR(link_all_deplibs, $1)=yes
1907 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1908 case $cc_basename in
1909 ifort*) _lt_dar_can_shared=yes ;;
1910 *) _lt_dar_can_shared=$GCC ;;
1911 esac
1912 if test "$_lt_dar_can_shared" = "yes"; then
1913 output_verbose_link_cmd=func_echo_all
1914 _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}"
1915 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1916 _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}"
1917 _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}"
1918 m4_if([$1], [CXX],
1919 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1920 _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}"
1921 _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}"
1922 fi
1923 ],[])
1924 else
1925 _LT_TAGVAR(ld_shlibs, $1)=no
1926 fi
1927 ])
1928
1929 # _LT_SYS_MODULE_PATH_AIX
1930 # -----------------------
1931 # Links a minimal program and checks the executable
1932 # for the system default hardcoded library path. In most cases,
1933 # this is /usr/lib:/lib, but when the MPI compilers are used
1934 # the location of the communication and MPI libs are included too.
1935 # If we don't find anything, use the default library path according
1936 # to the aix ld manual.
1937 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1938 [m4_require([_LT_DECL_SED])dnl
1939 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1940 lt_aix_libpath_sed='
1941 /Import File Strings/,/^$/ {
1942 /^0/ {
1943 s/^0 *\(.*\)$/\1/
1944 p
1945 }
1946 }'
1947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1948 # Check for a 64-bit object if we didn't find anything.
1949 if test -z "$aix_libpath"; then
1950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1951 fi],[])
1952 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1953 ])# _LT_SYS_MODULE_PATH_AIX
1954
1955
1956 # _LT_SHELL_INIT(ARG)
1957 # -------------------
1958 m4_define([_LT_SHELL_INIT],
1959 [m4_divert_text([M4SH-INIT], [$1
1960 ])])# _LT_SHELL_INIT
1961
1962
1963
1964 # _LT_PROG_ECHO_BACKSLASH
1965 # -----------------------
1966 # Find how we can fake an echo command that does not interpret backslash.
1967 # In particular, with Autoconf 2.60 or later we add some code to the start
1968 # of the generated configure script which will find a shell with a builtin
1969 # printf (which we can use as an echo command).
1970 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1971 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1972 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1973 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1974
1975 AC_MSG_CHECKING([how to print strings])
1976 # Test print first, because it will be a builtin if present.
1977 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
1978 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1979 ECHO='print -r --'
1980 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1981 ECHO='printf %s\n'
1982 else
1983 # Use this function as a fallback that always works.
1984 func_fallback_echo ()
1985 {
1986 eval 'cat <<_LTECHO_EOF
1987 $[]1
1988 _LTECHO_EOF'
1989 }
1990 ECHO='func_fallback_echo'
1991 fi
1992
1993 # func_echo_all arg...
1994 # Invoke $ECHO with all args, space-separated.
1995 func_echo_all ()
1996 {
1997 $ECHO "$*"
1998 }
1999
2000 case "$ECHO" in
2001 printf*) AC_MSG_RESULT([printf]) ;;
2002 print*) AC_MSG_RESULT([print -r]) ;;
2003 *) AC_MSG_RESULT([cat]) ;;
2004 esac
2005
2006 m4_ifdef([_AS_DETECT_SUGGESTED],
2007 [_AS_DETECT_SUGGESTED([
2008 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
2009 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2010 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2011 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2012 PATH=/empty FPATH=/empty; export PATH FPATH
2013 test "X`printf %s $ECHO`" = "X$ECHO" \
2014 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
2015
2016 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2017 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
2018 ])# _LT_PROG_ECHO_BACKSLASH
2019
2020
2021 # _LT_ENABLE_LOCK
2022 # ---------------
2023 m4_defun([_LT_ENABLE_LOCK],
2024 [AC_ARG_ENABLE([libtool-lock],
2025 [AS_HELP_STRING([--disable-libtool-lock],
2026 [avoid locking (might break parallel builds)])])
2027 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2028
2029 # Some flags need to be propagated to the compiler or linker for good
2030 # libtool support.
2031 case $host in
2032 ia64-*-hpux*)
2033 # Find out which ABI we are using.
2034 echo 'int i;' > conftest.$ac_ext
2035 if AC_TRY_EVAL(ac_compile); then
2036 case `/usr/bin/file conftest.$ac_objext` in
2037 *ELF-32*)
2038 HPUX_IA64_MODE="32"
2039 ;;
2040 *ELF-64*)
2041 HPUX_IA64_MODE="64"
2042 ;;
2043 esac
2044 fi
2045 rm -rf conftest*
2046 ;;
2047 *-*-irix6*)
2048 # Find out which ABI we are using.
2049 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2050 if AC_TRY_EVAL(ac_compile); then
2051 if test "$lt_cv_prog_gnu_ld" = yes; then
2052 case `/usr/bin/file conftest.$ac_objext` in
2053 *32-bit*)
2054 LD="${LD-ld} -melf32bsmip"
2055 ;;
2056 *N32*)
2057 LD="${LD-ld} -melf32bmipn32"
2058 ;;
2059 *64-bit*)
2060 LD="${LD-ld} -melf64bmip"
2061 ;;
2062 esac
2063 else
2064 case `/usr/bin/file conftest.$ac_objext` in
2065 *32-bit*)
2066 LD="${LD-ld} -32"
2067 ;;
2068 *N32*)
2069 LD="${LD-ld} -n32"
2070 ;;
2071 *64-bit*)
2072 LD="${LD-ld} -64"
2073 ;;
2074 esac
2075 fi
2076 fi
2077 rm -rf conftest*
2078 ;;
2079
2080 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2081 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2082 # Find out which ABI we are using.
2083 echo 'int i;' > conftest.$ac_ext
2084 if AC_TRY_EVAL(ac_compile); then
2085 case `/usr/bin/file conftest.o` in
2086 *32-bit*)
2087 case $host in
2088 x86_64-*kfreebsd*-gnu)
2089 LD="${LD-ld} -m elf_i386_fbsd"
2090 ;;
2091 x86_64-*linux*)
2092 LD="${LD-ld} -m elf_i386"
2093 ;;
2094 ppc64-*linux*|powerpc64-*linux*)
2095 LD="${LD-ld} -m elf32ppclinux"
2096 ;;
2097 s390x-*linux*)
2098 LD="${LD-ld} -m elf_s390"
2099 ;;
2100 sparc64-*linux*)
2101 LD="${LD-ld} -m elf32_sparc"
2102 ;;
2103 esac
2104 ;;
2105 *64-bit*)
2106 case $host in
2107 x86_64-*kfreebsd*-gnu)
2108 LD="${LD-ld} -m elf_x86_64_fbsd"
2109 ;;
2110 x86_64-*linux*)
2111 LD="${LD-ld} -m elf_x86_64"
2112 ;;
2113 ppc*-*linux*|powerpc*-*linux*)
2114 LD="${LD-ld} -m elf64ppc"
2115 ;;
2116 s390*-*linux*|s390*-*tpf*)
2117 LD="${LD-ld} -m elf64_s390"
2118 ;;
2119 sparc*-*linux*)
2120 LD="${LD-ld} -m elf64_sparc"
2121 ;;
2122 esac
2123 ;;
2124 esac
2125 fi
2126 rm -rf conftest*
2127 ;;
2128
2129 *-*-sco3.2v5*)
2130 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2131 SAVE_CFLAGS="$CFLAGS"
2132 CFLAGS="$CFLAGS -belf"
2133 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2134 [AC_LANG_PUSH(C)
2135 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2136 AC_LANG_POP])
2137 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2138 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2139 CFLAGS="$SAVE_CFLAGS"
2140 fi
2141 ;;
2142 sparc*-*solaris*)
2143 # Find out which ABI we are using.
2144 echo 'int i;' > conftest.$ac_ext
2145 if AC_TRY_EVAL(ac_compile); then
2146 case `/usr/bin/file conftest.o` in
2147 *64-bit*)
2148 case $lt_cv_prog_gnu_ld in
2149 yes*) LD="${LD-ld} -m elf64_sparc" ;;
2150 *)
2151 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2152 LD="${LD-ld} -64"
2153 fi
2154 ;;
2155 esac
2156 ;;
2157 esac
2158 fi
2159 rm -rf conftest*
2160 ;;
2161 esac
2162
2163 need_locks="$enable_libtool_lock"
2164 ])# _LT_ENABLE_LOCK
2165
2166
2167 # _LT_CMD_OLD_ARCHIVE
2168 # -------------------
2169 m4_defun([_LT_CMD_OLD_ARCHIVE],
2170 [AC_CHECK_TOOL(AR, ar, false)
2171 test -z "$AR" && AR=ar
2172 test -z "$AR_FLAGS" && AR_FLAGS=cru
2173 _LT_DECL([], [AR], [1], [The archiver])
2174 _LT_DECL([], [AR_FLAGS], [1])
2175
2176 AC_CHECK_TOOL(STRIP, strip, :)
2177 test -z "$STRIP" && STRIP=:
2178 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
2179
2180 AC_CHECK_TOOL(RANLIB, ranlib, :)
2181 test -z "$RANLIB" && RANLIB=:
2182 _LT_DECL([], [RANLIB], [1],
2183 [Commands used to install an old-style archive])
2184
2185 # Determine commands to create old-style static archives.
2186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2187 old_postinstall_cmds='chmod 644 $oldlib'
2188 old_postuninstall_cmds=
2189
2190 if test -n "$RANLIB"; then
2191 case $host_os in
2192 openbsd*)
2193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2194 ;;
2195 *)
2196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2197 ;;
2198 esac
2199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2200 fi
2201
2202 case $host_os in
2203 darwin*)
2204 lock_old_archive_extraction=yes ;;
2205 *)
2206 lock_old_archive_extraction=no ;;
2207 esac
2208 _LT_DECL([], [old_postinstall_cmds], [2])
2209 _LT_DECL([], [old_postuninstall_cmds], [2])
2210 _LT_TAGDECL([], [old_archive_cmds], [2],
2211 [Commands used to build an old-style archive])
2212 _LT_DECL([], [lock_old_archive_extraction], [0],
2213 [Whether to use a lock for old archive extraction])
2214 ])# _LT_CMD_OLD_ARCHIVE
2215
2216
2217 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2218 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2219 # ----------------------------------------------------------------
2220 # Check whether the given compiler option works
2221 AC_DEFUN([_LT_COMPILER_OPTION],
2222 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2223 m4_require([_LT_DECL_SED])dnl
2224 AC_CACHE_CHECK([$1], [$2],
2225 [$2=no
2226 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2228 lt_compiler_flag="$3"
2229 # Insert the option either (1) after the last *FLAGS variable, or
2230 # (2) before a word containing "conftest.", or (3) at the end.
2231 # Note that $ac_compile itself does not contain backslashes and begins
2232 # with a dollar sign (not a hyphen), so the echo should work correctly.
2233 # The option is referenced via a variable to avoid confusing sed.
2234 lt_compile=`echo "$ac_compile" | $SED \
2235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2236 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2237 -e 's:$: $lt_compiler_flag:'`
2238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2239 (eval "$lt_compile" 2>conftest.err)
2240 ac_status=$?
2241 cat conftest.err >&AS_MESSAGE_LOG_FD
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2243 if (exit $ac_status) && test -s "$ac_outfile"; then
2244 # The compiler can only warn and ignore the option if not recognized
2245 # So say no if there are warnings other than the usual output.
2246 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2248 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2249 $2=yes
2250 fi
2251 fi
2252 $RM conftest*
2253 ])
2254
2255 if test x"[$]$2" = xyes; then
2256 m4_if([$5], , :, [$5])
2257 else
2258 m4_if([$6], , :, [$6])
2259 fi
2260 ])# _LT_COMPILER_OPTION
2261
2262 # Old name:
2263 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2264 dnl aclocal-1.4 backwards compatibility:
2265 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2266
2267
2268 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2269 # [ACTION-SUCCESS], [ACTION-FAILURE])
2270 # ----------------------------------------------------
2271 # Check whether the given linker option works
2272 AC_DEFUN([_LT_LINKER_OPTION],
2273 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2274 m4_require([_LT_DECL_SED])dnl
2275 AC_CACHE_CHECK([$1], [$2],
2276 [$2=no
2277 save_LDFLAGS="$LDFLAGS"
2278 LDFLAGS="$LDFLAGS $3"
2279 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2280 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2281 # The linker can only warn and ignore the option if not recognized
2282 # So say no if there are warnings
2283 if test -s conftest.err; then
2284 # Append any errors to the config.log.
2285 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2286 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2287 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2288 if diff conftest.exp conftest.er2 >/dev/null; then
2289 $2=yes
2290 fi
2291 else
2292 $2=yes
2293 fi
2294 fi
2295 $RM -r conftest*
2296 LDFLAGS="$save_LDFLAGS"
2297 ])
2298
2299 if test x"[$]$2" = xyes; then
2300 m4_if([$4], , :, [$4])
2301 else
2302 m4_if([$5], , :, [$5])
2303 fi
2304 ])# _LT_LINKER_OPTION
2305
2306 # Old name:
2307 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2308 dnl aclocal-1.4 backwards compatibility:
2309 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2310
2311
2312 # LT_CMD_MAX_LEN
2313 #---------------
2314 AC_DEFUN([LT_CMD_MAX_LEN],
2315 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2316 # find the maximum length of command line arguments
2317 AC_MSG_CHECKING([the maximum length of command line arguments])
2318 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2319 i=0
2320 teststring="ABCD"
2321
2322 case $build_os in
2323 msdosdjgpp*)
2324 # On DJGPP, this test can blow up pretty badly due to problems in libc
2325 # (any single argument exceeding 2000 bytes causes a buffer overrun
2326 # during glob expansion). Even if it were fixed, the result of this
2327 # check would be larger than it should be.
2328 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2329 ;;
2330
2331 gnu*)
2332 # Under GNU Hurd, this test is not required because there is
2333 # no limit to the length of command line arguments.
2334 # Libtool will interpret -1 as no limit whatsoever
2335 lt_cv_sys_max_cmd_len=-1;
2336 ;;
2337
2338 cygwin* | mingw* | cegcc*)
2339 # On Win9x/ME, this test blows up -- it succeeds, but takes
2340 # about 5 minutes as the teststring grows exponentially.
2341 # Worse, since 9x/ME are not pre-emptively multitasking,
2342 # you end up with a "frozen" computer, even though with patience
2343 # the test eventually succeeds (with a max line length of 256k).
2344 # Instead, let's just punt: use the minimum linelength reported by
2345 # all of the supported platforms: 8192 (on NT/2K/XP).
2346 lt_cv_sys_max_cmd_len=8192;
2347 ;;
2348
2349 mint*)
2350 # On MiNT this can take a long time and run out of memory.
2351 lt_cv_sys_max_cmd_len=8192;
2352 ;;
2353
2354 amigaos*)
2355 # On AmigaOS with pdksh, this test takes hours, literally.
2356 # So we just punt and use a minimum line length of 8192.
2357 lt_cv_sys_max_cmd_len=8192;
2358 ;;
2359
2360 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2361 # This has been around since 386BSD, at least. Likely further.
2362 if test -x /sbin/sysctl; then
2363 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2364 elif test -x /usr/sbin/sysctl; then
2365 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2366 else
2367 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2368 fi
2369 # And add a safety zone
2370 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2372 ;;
2373
2374 interix*)
2375 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2376 lt_cv_sys_max_cmd_len=196608
2377 ;;
2378
2379 osf*)
2380 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2381 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2382 # nice to cause kernel panics so lets avoid the loop below.
2383 # First set a reasonable default.
2384 lt_cv_sys_max_cmd_len=16384
2385 #
2386 if test -x /sbin/sysconfig; then
2387 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2388 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2389 esac
2390 fi
2391 ;;
2392 sco3.2v5*)
2393 lt_cv_sys_max_cmd_len=102400
2394 ;;
2395 sysv5* | sco5v6* | sysv4.2uw2*)
2396 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2397 if test -n "$kargmax"; then
2398 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2399 else
2400 lt_cv_sys_max_cmd_len=32768
2401 fi
2402 ;;
2403 *)
2404 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2405 if test -n "$lt_cv_sys_max_cmd_len"; then
2406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2407 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2408 else
2409 # Make teststring a little bigger before we do anything with it.
2410 # a 1K string should be a reasonable start.
2411 for i in 1 2 3 4 5 6 7 8 ; do
2412 teststring=$teststring$teststring
2413 done
2414 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2415 # If test is not a shell built-in, we'll probably end up computing a
2416 # maximum length that is only half of the actual maximum length, but
2417 # we can't tell.
2418 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
2419 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2420 test $i != 17 # 1/2 MB should be enough
2421 do
2422 i=`expr $i + 1`
2423 teststring=$teststring$teststring
2424 done
2425 # Only check the string length outside the loop.
2426 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2427 teststring=
2428 # Add a significant safety factor because C++ compilers can tack on
2429 # massive amounts of additional arguments before passing them to the
2430 # linker. It appears as though 1/2 is a usable value.
2431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2432 fi
2433 ;;
2434 esac
2435 ])
2436 if test -n $lt_cv_sys_max_cmd_len ; then
2437 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2438 else
2439 AC_MSG_RESULT(none)
2440 fi
2441 max_cmd_len=$lt_cv_sys_max_cmd_len
2442 _LT_DECL([], [max_cmd_len], [0],
2443 [What is the maximum length of a command?])
2444 ])# LT_CMD_MAX_LEN
2445
2446 # Old name:
2447 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2448 dnl aclocal-1.4 backwards compatibility:
2449 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2450
2451
2452 # _LT_HEADER_DLFCN
2453 # ----------------
2454 m4_defun([_LT_HEADER_DLFCN],
2455 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2456 ])# _LT_HEADER_DLFCN
2457
2458
2459 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2460 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2461 # ----------------------------------------------------------------
2462 m4_defun([_LT_TRY_DLOPEN_SELF],
2463 [m4_require([_LT_HEADER_DLFCN])dnl
2464 if test "$cross_compiling" = yes; then :
2465 [$4]
2466 else
2467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2468 lt_status=$lt_dlunknown
2469 cat > conftest.$ac_ext <<_LT_EOF
2470 [#line $LINENO "configure"
2471 #include "confdefs.h"
2472
2473 #if HAVE_DLFCN_H
2474 #include <dlfcn.h>
2475 #endif
2476
2477 #include <stdio.h>
2478
2479 #ifdef RTLD_GLOBAL
2480 # define LT_DLGLOBAL RTLD_GLOBAL
2481 #else
2482 # ifdef DL_GLOBAL
2483 # define LT_DLGLOBAL DL_GLOBAL
2484 # else
2485 # define LT_DLGLOBAL 0
2486 # endif
2487 #endif
2488
2489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2490 find out it does not work in some platform. */
2491 #ifndef LT_DLLAZY_OR_NOW
2492 # ifdef RTLD_LAZY
2493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
2494 # else
2495 # ifdef DL_LAZY
2496 # define LT_DLLAZY_OR_NOW DL_LAZY
2497 # else
2498 # ifdef RTLD_NOW
2499 # define LT_DLLAZY_OR_NOW RTLD_NOW
2500 # else
2501 # ifdef DL_NOW
2502 # define LT_DLLAZY_OR_NOW DL_NOW
2503 # else
2504 # define LT_DLLAZY_OR_NOW 0
2505 # endif
2506 # endif
2507 # endif
2508 # endif
2509 #endif
2510
2511 /* When -fvisbility=hidden is used, assume the code has been annotated
2512 correspondingly for the symbols needed. */
2513 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2514 void fnord () __attribute__((visibility("default")));
2515 #endif
2516
2517 void fnord () { int i=42; }
2518 int main ()
2519 {
2520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2521 int status = $lt_dlunknown;
2522
2523 if (self)
2524 {
2525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2526 else
2527 {
2528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2529 else puts (dlerror ());
2530 }
2531 /* dlclose (self); */
2532 }
2533 else
2534 puts (dlerror ());
2535
2536 return status;
2537 }]
2538 _LT_EOF
2539 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2540 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2541 lt_status=$?
2542 case x$lt_status in
2543 x$lt_dlno_uscore) $1 ;;
2544 x$lt_dlneed_uscore) $2 ;;
2545 x$lt_dlunknown|x*) $3 ;;
2546 esac
2547 else :
2548 # compilation failed
2549 $3
2550 fi
2551 fi
2552 rm -fr conftest*
2553 ])# _LT_TRY_DLOPEN_SELF
2554
2555
2556 # LT_SYS_DLOPEN_SELF
2557 # ------------------
2558 AC_DEFUN([LT_SYS_DLOPEN_SELF],
2559 [m4_require([_LT_HEADER_DLFCN])dnl
2560 if test "x$enable_dlopen" != xyes; then
2561 enable_dlopen=unknown
2562 enable_dlopen_self=unknown
2563 enable_dlopen_self_static=unknown
2564 else
2565 lt_cv_dlopen=no
2566 lt_cv_dlopen_libs=
2567
2568 case $host_os in
2569 beos*)
2570 lt_cv_dlopen="load_add_on"
2571 lt_cv_dlopen_libs=
2572 lt_cv_dlopen_self=yes
2573 ;;
2574
2575 mingw* | pw32* | cegcc*)
2576 lt_cv_dlopen="LoadLibrary"
2577 lt_cv_dlopen_libs=
2578 ;;
2579
2580 cygwin*)
2581 lt_cv_dlopen="dlopen"
2582 lt_cv_dlopen_libs=
2583 ;;
2584
2585 darwin*)
2586 # if libdl is installed we need to link against it
2587 AC_CHECK_LIB([dl], [dlopen],
2588 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2589 lt_cv_dlopen="dyld"
2590 lt_cv_dlopen_libs=
2591 lt_cv_dlopen_self=yes
2592 ])
2593 ;;
2594
2595 *)
2596 AC_CHECK_FUNC([shl_load],
2597 [lt_cv_dlopen="shl_load"],
2598 [AC_CHECK_LIB([dld], [shl_load],
2599 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2600 [AC_CHECK_FUNC([dlopen],
2601 [lt_cv_dlopen="dlopen"],
2602 [AC_CHECK_LIB([dl], [dlopen],
2603 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2604 [AC_CHECK_LIB([svld], [dlopen],
2605 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2606 [AC_CHECK_LIB([dld], [dld_link],
2607 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2608 ])
2609 ])
2610 ])
2611 ])
2612 ])
2613 ;;
2614 esac
2615
2616 if test "x$lt_cv_dlopen" != xno; then
2617 enable_dlopen=yes
2618 else
2619 enable_dlopen=no
2620 fi
2621
2622 case $lt_cv_dlopen in
2623 dlopen)
2624 save_CPPFLAGS="$CPPFLAGS"
2625 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2626
2627 save_LDFLAGS="$LDFLAGS"
2628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2629
2630 save_LIBS="$LIBS"
2631 LIBS="$lt_cv_dlopen_libs $LIBS"
2632
2633 AC_CACHE_CHECK([whether a program can dlopen itself],
2634 lt_cv_dlopen_self, [dnl
2635 _LT_TRY_DLOPEN_SELF(
2636 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2637 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2638 ])
2639
2640 if test "x$lt_cv_dlopen_self" = xyes; then
2641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2642 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2643 lt_cv_dlopen_self_static, [dnl
2644 _LT_TRY_DLOPEN_SELF(
2645 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2646 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2647 ])
2648 fi
2649
2650 CPPFLAGS="$save_CPPFLAGS"
2651 LDFLAGS="$save_LDFLAGS"
2652 LIBS="$save_LIBS"
2653 ;;
2654 esac
2655
2656 case $lt_cv_dlopen_self in
2657 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2658 *) enable_dlopen_self=unknown ;;
2659 esac
2660
2661 case $lt_cv_dlopen_self_static in
2662 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2663 *) enable_dlopen_self_static=unknown ;;
2664 esac
2665 fi
2666 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2667 [Whether dlopen is supported])
2668 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2669 [Whether dlopen of programs is supported])
2670 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2671 [Whether dlopen of statically linked programs is supported])
2672 ])# LT_SYS_DLOPEN_SELF
2673
2674 # Old name:
2675 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2676 dnl aclocal-1.4 backwards compatibility:
2677 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2678
2679
2680 # _LT_COMPILER_C_O([TAGNAME])
2681 # ---------------------------
2682 # Check to see if options -c and -o are simultaneously supported by compiler.
2683 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2684 m4_defun([_LT_COMPILER_C_O],
2685 [m4_require([_LT_DECL_SED])dnl
2686 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2687 m4_require([_LT_TAG_COMPILER])dnl
2688 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2689 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2690 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2691 $RM -r conftest 2>/dev/null
2692 mkdir conftest
2693 cd conftest
2694 mkdir out
2695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2696
2697 lt_compiler_flag="-o out/conftest2.$ac_objext"
2698 # Insert the option either (1) after the last *FLAGS variable, or
2699 # (2) before a word containing "conftest.", or (3) at the end.
2700 # Note that $ac_compile itself does not contain backslashes and begins
2701 # with a dollar sign (not a hyphen), so the echo should work correctly.
2702 lt_compile=`echo "$ac_compile" | $SED \
2703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2704 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2705 -e 's:$: $lt_compiler_flag:'`
2706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2707 (eval "$lt_compile" 2>out/conftest.err)
2708 ac_status=$?
2709 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2712 then
2713 # The compiler can only warn and ignore the option if not recognized
2714 # So say no if there are warnings
2715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2718 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2719 fi
2720 fi
2721 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2722 $RM conftest*
2723 # SGI C++ compiler will create directory out/ii_files/ for
2724 # template instantiation
2725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2726 $RM out/* && rmdir out
2727 cd ..
2728 $RM -r conftest
2729 $RM conftest*
2730 ])
2731 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2732 [Does compiler simultaneously support -c and -o options?])
2733 ])# _LT_COMPILER_C_O
2734
2735
2736 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2737 # ----------------------------------
2738 # Check to see if we can do hard links to lock some files if needed
2739 m4_defun([_LT_COMPILER_FILE_LOCKS],
2740 [m4_require([_LT_ENABLE_LOCK])dnl
2741 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2742 _LT_COMPILER_C_O([$1])
2743
2744 hard_links="nottested"
2745 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2746 # do not overwrite the value of need_locks provided by the user
2747 AC_MSG_CHECKING([if we can lock with hard links])
2748 hard_links=yes
2749 $RM conftest*
2750 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2751 touch conftest.a
2752 ln conftest.a conftest.b 2>&5 || hard_links=no
2753 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2754 AC_MSG_RESULT([$hard_links])
2755 if test "$hard_links" = no; then
2756 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2757 need_locks=warn
2758 fi
2759 else
2760 need_locks=no
2761 fi
2762 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2763 ])# _LT_COMPILER_FILE_LOCKS
2764
2765
2766 # _LT_CHECK_OBJDIR
2767 # ----------------
2768 m4_defun([_LT_CHECK_OBJDIR],
2769 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2770 [rm -f .libs 2>/dev/null
2771 mkdir .libs 2>/dev/null
2772 if test -d .libs; then
2773 lt_cv_objdir=.libs
2774 else
2775 # MS-DOS does not allow filenames that begin with a dot.
2776 lt_cv_objdir=_libs
2777 fi
2778 rmdir .libs 2>/dev/null])
2779 objdir=$lt_cv_objdir
2780 _LT_DECL([], [objdir], [0],
2781 [The name of the directory that contains temporary libtool files])dnl
2782 m4_pattern_allow([LT_OBJDIR])dnl
2783 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2784 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2785 ])# _LT_CHECK_OBJDIR
2786
2787
2788 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2789 # --------------------------------------
2790 # Check hardcoding attributes.
2791 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2792 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2793 _LT_TAGVAR(hardcode_action, $1)=
2794 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2795 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2796 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2797
2798 # We can hardcode non-existent directories.
2799 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2801 # have to relink, otherwise we might link with an installed library
2802 # when we should be linking with a yet-to-be-installed one
2803 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2804 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2805 # Linking always hardcodes the temporary library directory.
2806 _LT_TAGVAR(hardcode_action, $1)=relink
2807 else
2808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2809 _LT_TAGVAR(hardcode_action, $1)=immediate
2810 fi
2811 else
2812 # We cannot hardcode anything, or else we can only hardcode existing
2813 # directories.
2814 _LT_TAGVAR(hardcode_action, $1)=unsupported
2815 fi
2816 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2817
2818 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2819 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2820 # Fast installation is not supported
2821 enable_fast_install=no
2822 elif test "$shlibpath_overrides_runpath" = yes ||
2823 test "$enable_shared" = no; then
2824 # Fast installation is not necessary
2825 enable_fast_install=needless
2826 fi
2827 _LT_TAGDECL([], [hardcode_action], [0],
2828 [How to hardcode a shared library path into an executable])
2829 ])# _LT_LINKER_HARDCODE_LIBPATH
2830
2831
2832 # _LT_CMD_STRIPLIB
2833 # ----------------
2834 m4_defun([_LT_CMD_STRIPLIB],
2835 [m4_require([_LT_DECL_EGREP])
2836 striplib=
2837 old_striplib=
2838 AC_MSG_CHECKING([whether stripping libraries is possible])
2839 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2840 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2841 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2842 AC_MSG_RESULT([yes])
2843 else
2844 # FIXME - insert some real tests, host_os isn't really good enough
2845 case $host_os in
2846 darwin*)
2847 if test -n "$STRIP" ; then
2848 striplib="$STRIP -x"
2849 old_striplib="$STRIP -S"
2850 AC_MSG_RESULT([yes])
2851 else
2852 AC_MSG_RESULT([no])
2853 fi
2854 ;;
2855 *)
2856 AC_MSG_RESULT([no])
2857 ;;
2858 esac
2859 fi
2860 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2861 _LT_DECL([], [striplib], [1])
2862 ])# _LT_CMD_STRIPLIB
2863
2864
2865 # _LT_SYS_DYNAMIC_LINKER([TAG])
2866 # -----------------------------
2867 # PORTME Fill in your ld.so characteristics
2868 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2869 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2870 m4_require([_LT_DECL_EGREP])dnl
2871 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2872 m4_require([_LT_DECL_OBJDUMP])dnl
2873 m4_require([_LT_DECL_SED])dnl
2874 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2875 AC_MSG_CHECKING([dynamic linker characteristics])
2876 m4_if([$1],
2877 [], [
2878 if test "$GCC" = yes; then
2879 case $host_os in
2880 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2881 *) lt_awk_arg="/^libraries:/" ;;
2882 esac
2883 case $host_os in
2884 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2885 *) lt_sed_strip_eq="s,=/,/,g" ;;
2886 esac
2887 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2888 case $lt_search_path_spec in
2889 *\;*)
2890 # if the path contains ";" then we assume it to be the separator
2891 # otherwise default to the standard path separator (i.e. ":") - it is
2892 # assumed that no part of a normal pathname contains ";" but that should
2893 # okay in the real world where ";" in dirpaths is itself problematic.
2894 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2895 ;;
2896 *)
2897 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2898 ;;
2899 esac
2900 # Ok, now we have the path, separated by spaces, we can step through it
2901 # and add multilib dir if necessary.
2902 lt_tmp_lt_search_path_spec=
2903 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2904 for lt_sys_path in $lt_search_path_spec; do
2905 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2906 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2907 else
2908 test -d "$lt_sys_path" && \
2909 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2910 fi
2911 done
2912 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2913 BEGIN {RS=" "; FS="/|\n";} {
2914 lt_foo="";
2915 lt_count=0;
2916 for (lt_i = NF; lt_i > 0; lt_i--) {
2917 if ($lt_i != "" && $lt_i != ".") {
2918 if ($lt_i == "..") {
2919 lt_count++;
2920 } else {
2921 if (lt_count == 0) {
2922 lt_foo="/" $lt_i lt_foo;
2923 } else {
2924 lt_count--;
2925 }
2926 }
2927 }
2928 }
2929 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2930 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2931 }'`
2932 # AWK program above erroneously prepends '/' to C:/dos/paths
2933 # for these hosts.
2934 case $host_os in
2935 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2936 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2937 esac
2938 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2939 else
2940 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2941 fi])
2942 library_names_spec=
2943 libname_spec='lib$name'
2944 soname_spec=
2945 shrext_cmds=".so"
2946 postinstall_cmds=
2947 postuninstall_cmds=
2948 finish_cmds=
2949 finish_eval=
2950 shlibpath_var=
2951 shlibpath_overrides_runpath=unknown
2952 version_type=none
2953 dynamic_linker="$host_os ld.so"
2954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2955 need_lib_prefix=unknown
2956 hardcode_into_libs=no
2957
2958 # when you set need_version to no, make sure it does not cause -set_version
2959 # flags to be left without arguments
2960 need_version=unknown
2961
2962 case $host_os in
2963 aix3*)
2964 version_type=linux
2965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2966 shlibpath_var=LIBPATH
2967
2968 # AIX 3 has no versioning support, so we append a major version to the name.
2969 soname_spec='${libname}${release}${shared_ext}$major'
2970 ;;
2971
2972 aix[[4-9]]*)
2973 version_type=linux
2974 need_lib_prefix=no
2975 need_version=no
2976 hardcode_into_libs=yes
2977 if test "$host_cpu" = ia64; then
2978 # AIX 5 supports IA64
2979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2980 shlibpath_var=LD_LIBRARY_PATH
2981 else
2982 # With GCC up to 2.95.x, collect2 would create an import file
2983 # for dependence libraries. The import file would start with
2984 # the line `#! .'. This would cause the generated library to
2985 # depend on `.', always an invalid library. This was fixed in
2986 # development snapshots of GCC prior to 3.0.
2987 case $host_os in
2988 aix4 | aix4.[[01]] | aix4.[[01]].*)
2989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2990 echo ' yes '
2991 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2992 :
2993 else
2994 can_build_shared=no
2995 fi
2996 ;;
2997 esac
2998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2999 # soname into executable. Probably we can add versioning support to
3000 # collect2, so additional links can be useful in future.
3001 if test "$aix_use_runtimelinking" = yes; then
3002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3003 # instead of lib<name>.a to let people know that these are not
3004 # typical AIX shared libraries.
3005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3006 else
3007 # We preserve .a as extension for shared libraries through AIX4.2
3008 # and later when we are not doing run time linking.
3009 library_names_spec='${libname}${release}.a $libname.a'
3010 soname_spec='${libname}${release}${shared_ext}$major'
3011 fi
3012 shlibpath_var=LIBPATH
3013 fi
3014 ;;
3015
3016 amigaos*)
3017 case $host_cpu in
3018 powerpc)
3019 # Since July 2007 AmigaOS4 officially supports .so libraries.
3020 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3022 ;;
3023 m68k)
3024 library_names_spec='$libname.ixlibrary $libname.a'
3025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3026 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3027 ;;
3028 esac
3029 ;;
3030
3031 beos*)
3032 library_names_spec='${libname}${shared_ext}'
3033 dynamic_linker="$host_os ld.so"
3034 shlibpath_var=LIBRARY_PATH
3035 ;;
3036
3037 bsdi[[45]]*)
3038 version_type=linux
3039 need_version=no
3040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3041 soname_spec='${libname}${release}${shared_ext}$major'
3042 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3043 shlibpath_var=LD_LIBRARY_PATH
3044 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3045 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3046 # the default ld.so.conf also contains /usr/contrib/lib and
3047 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3048 # libtool to hard-code these into programs
3049 ;;
3050
3051 cygwin* | mingw* | pw32* | cegcc*)
3052 version_type=windows
3053 shrext_cmds=".dll"
3054 need_version=no
3055 need_lib_prefix=no
3056
3057 case $GCC,$host_os in
3058 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3059 library_names_spec='$libname.dll.a'
3060 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3061 postinstall_cmds='base_file=`basename \${file}`~
3062 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3063 dldir=$destdir/`dirname \$dlpath`~
3064 test -d \$dldir || mkdir -p \$dldir~
3065 $install_prog $dir/$dlname \$dldir/$dlname~
3066 chmod a+x \$dldir/$dlname~
3067 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3068 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3069 fi'
3070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3071 dlpath=$dir/\$dldll~
3072 $RM \$dlpath'
3073 shlibpath_overrides_runpath=yes
3074
3075 case $host_os in
3076 cygwin*)
3077 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3078 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3079 m4_if([$1], [],[
3080 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3081 ;;
3082 mingw* | cegcc*)
3083 # MinGW DLLs use traditional 'lib' prefix
3084 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3085 ;;
3086 pw32*)
3087 # pw32 DLLs use 'pw' prefix rather than 'lib'
3088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3089 ;;
3090 esac
3091 ;;
3092
3093 *)
3094 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3095 ;;
3096 esac
3097 dynamic_linker='Win32 ld.exe'
3098 # FIXME: first we should search . and the directory the executable is in
3099 shlibpath_var=PATH
3100 ;;
3101
3102 darwin* | rhapsody*)
3103 dynamic_linker="$host_os dyld"
3104 version_type=darwin
3105 need_lib_prefix=no
3106 need_version=no
3107 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3108 soname_spec='${libname}${release}${major}$shared_ext'
3109 shlibpath_overrides_runpath=yes
3110 shlibpath_var=DYLD_LIBRARY_PATH
3111 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3112 m4_if([$1], [],[
3113 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3114 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3115 ;;
3116
3117 dgux*)
3118 version_type=linux
3119 need_lib_prefix=no
3120 need_version=no
3121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3122 soname_spec='${libname}${release}${shared_ext}$major'
3123 shlibpath_var=LD_LIBRARY_PATH
3124 ;;
3125
3126 freebsd1*)
3127 dynamic_linker=no
3128 ;;
3129
3130 freebsd* | dragonfly*)
3131 # DragonFly does not have aout. When/if they implement a new
3132 # versioning mechanism, adjust this.
3133 if test -x /usr/bin/objformat; then
3134 objformat=`/usr/bin/objformat`
3135 else
3136 case $host_os in
3137 freebsd[[123]]*) objformat=aout ;;
3138 *) objformat=elf ;;
3139 esac
3140 fi
3141 version_type=freebsd-$objformat
3142 case $version_type in
3143 freebsd-elf*)
3144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3145 need_version=no
3146 need_lib_prefix=no
3147 ;;
3148 freebsd-*)
3149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3150 need_version=yes
3151 ;;
3152 esac
3153 shlibpath_var=LD_LIBRARY_PATH
3154 case $host_os in
3155 freebsd2*)
3156 shlibpath_overrides_runpath=yes
3157 ;;
3158 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3159 shlibpath_overrides_runpath=yes
3160 hardcode_into_libs=yes
3161 ;;
3162 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3163 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3164 shlibpath_overrides_runpath=no
3165 hardcode_into_libs=yes
3166 ;;
3167 *) # from 4.6 on, and DragonFly
3168 shlibpath_overrides_runpath=yes
3169 hardcode_into_libs=yes
3170 ;;
3171 esac
3172 ;;
3173
3174 gnu*)
3175 version_type=linux
3176 need_lib_prefix=no
3177 need_version=no
3178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3179 soname_spec='${libname}${release}${shared_ext}$major'
3180 shlibpath_var=LD_LIBRARY_PATH
3181 hardcode_into_libs=yes
3182 ;;
3183
3184 haiku*)
3185 version_type=linux
3186 need_lib_prefix=no
3187 need_version=no
3188 dynamic_linker="$host_os runtime_loader"
3189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3190 soname_spec='${libname}${release}${shared_ext}$major'
3191 shlibpath_var=LIBRARY_PATH
3192 shlibpath_overrides_runpath=yes
3193 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3194 hardcode_into_libs=yes
3195 ;;
3196
3197 hpux9* | hpux10* | hpux11*)
3198 # Give a soname corresponding to the major version so that dld.sl refuses to
3199 # link against other versions.
3200 version_type=sunos
3201 need_lib_prefix=no
3202 need_version=no
3203 case $host_cpu in
3204 ia64*)
3205 shrext_cmds='.so'
3206 hardcode_into_libs=yes
3207 dynamic_linker="$host_os dld.so"
3208 shlibpath_var=LD_LIBRARY_PATH
3209 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3211 soname_spec='${libname}${release}${shared_ext}$major'
3212 if test "X$HPUX_IA64_MODE" = X32; then
3213 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3214 else
3215 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3216 fi
3217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3218 ;;
3219 hppa*64*)
3220 shrext_cmds='.sl'
3221 hardcode_into_libs=yes
3222 dynamic_linker="$host_os dld.sl"
3223 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3224 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3226 soname_spec='${libname}${release}${shared_ext}$major'
3227 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3229 ;;
3230 *)
3231 shrext_cmds='.sl'
3232 dynamic_linker="$host_os dld.sl"
3233 shlibpath_var=SHLIB_PATH
3234 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3236 soname_spec='${libname}${release}${shared_ext}$major'
3237 ;;
3238 esac
3239 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3240 postinstall_cmds='chmod 555 $lib'
3241 # or fails outright, so override atomically:
3242 install_override_mode=555
3243 ;;
3244
3245 interix[[3-9]]*)
3246 version_type=linux
3247 need_lib_prefix=no
3248 need_version=no
3249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3250 soname_spec='${libname}${release}${shared_ext}$major'
3251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3252 shlibpath_var=LD_LIBRARY_PATH
3253 shlibpath_overrides_runpath=no
3254 hardcode_into_libs=yes
3255 ;;
3256
3257 irix5* | irix6* | nonstopux*)
3258 case $host_os in
3259 nonstopux*) version_type=nonstopux ;;
3260 *)
3261 if test "$lt_cv_prog_gnu_ld" = yes; then
3262 version_type=linux
3263 else
3264 version_type=irix
3265 fi ;;
3266 esac
3267 need_lib_prefix=no
3268 need_version=no
3269 soname_spec='${libname}${release}${shared_ext}$major'
3270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3271 case $host_os in
3272 irix5* | nonstopux*)
3273 libsuff= shlibsuff=
3274 ;;
3275 *)
3276 case $LD in # libtool.m4 will add one of these switches to LD
3277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3278 libsuff= shlibsuff= libmagic=32-bit;;
3279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3280 libsuff=32 shlibsuff=N32 libmagic=N32;;
3281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3283 *) libsuff= shlibsuff= libmagic=never-match;;
3284 esac
3285 ;;
3286 esac
3287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3288 shlibpath_overrides_runpath=no
3289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3291 hardcode_into_libs=yes
3292 ;;
3293
3294 # No shared lib support for Linux oldld, aout, or coff.
3295 linux*oldld* | linux*aout* | linux*coff*)
3296 dynamic_linker=no
3297 ;;
3298
3299 # This must be Linux ELF.
3300 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3301 version_type=linux
3302 need_lib_prefix=no
3303 need_version=no
3304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3305 soname_spec='${libname}${release}${shared_ext}$major'
3306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3307 shlibpath_var=LD_LIBRARY_PATH
3308 shlibpath_overrides_runpath=no
3309
3310 # Some binutils ld are patched to set DT_RUNPATH
3311 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3312 [lt_cv_shlibpath_overrides_runpath=no
3313 save_LDFLAGS=$LDFLAGS
3314 save_libdir=$libdir
3315 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3316 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3317 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3318 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3319 [lt_cv_shlibpath_overrides_runpath=yes])])
3320 LDFLAGS=$save_LDFLAGS
3321 libdir=$save_libdir
3322 ])
3323 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3324
3325 # This implies no fast_install, which is unacceptable.
3326 # Some rework will be needed to allow for fast_install
3327 # before this can be enabled.
3328 hardcode_into_libs=yes
3329
3330 # Add ABI-specific directories to the system library path.
3331 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3332
3333 # Append ld.so.conf contents to the search path
3334 if test -f /etc/ld.so.conf; then
3335 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' ' '`
3336 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3337
3338 fi
3339
3340 # We used to test for /lib/ld.so.1 and disable shared libraries on
3341 # powerpc, because MkLinux only supported shared libraries with the
3342 # GNU dynamic linker. Since this was broken with cross compilers,
3343 # most powerpc-linux boxes support dynamic linking these days and
3344 # people can always --disable-shared, the test was removed, and we
3345 # assume the GNU/Linux dynamic linker is in use.
3346 dynamic_linker='GNU/Linux ld.so'
3347 ;;
3348
3349 netbsd*)
3350 version_type=sunos
3351 need_lib_prefix=no
3352 need_version=no
3353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3356 dynamic_linker='NetBSD (a.out) ld.so'
3357 else
3358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3359 soname_spec='${libname}${release}${shared_ext}$major'
3360 dynamic_linker='NetBSD ld.elf_so'
3361 fi
3362 shlibpath_var=LD_LIBRARY_PATH
3363 shlibpath_overrides_runpath=yes
3364 hardcode_into_libs=yes
3365 ;;
3366
3367 newsos6)
3368 version_type=linux
3369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3370 shlibpath_var=LD_LIBRARY_PATH
3371 shlibpath_overrides_runpath=yes
3372 ;;
3373
3374 *nto* | *qnx*)
3375 version_type=qnx
3376 need_lib_prefix=no
3377 need_version=no
3378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3379 soname_spec='${libname}${release}${shared_ext}$major'
3380 shlibpath_var=LD_LIBRARY_PATH
3381 shlibpath_overrides_runpath=no
3382 hardcode_into_libs=yes
3383 dynamic_linker='ldqnx.so'
3384 ;;
3385
3386 openbsd*)
3387 version_type=sunos
3388 sys_lib_dlsearch_path_spec="/usr/lib"
3389 need_lib_prefix=no
3390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3391 case $host_os in
3392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3393 *) need_version=no ;;
3394 esac
3395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3397 shlibpath_var=LD_LIBRARY_PATH
3398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3399 case $host_os in
3400 openbsd2.[[89]] | openbsd2.[[89]].*)
3401 shlibpath_overrides_runpath=no
3402 ;;
3403 *)
3404 shlibpath_overrides_runpath=yes
3405 ;;
3406 esac
3407 else
3408 shlibpath_overrides_runpath=yes
3409 fi
3410 ;;
3411
3412 os2*)
3413 libname_spec='$name'
3414 shrext_cmds=".dll"
3415 need_lib_prefix=no
3416 library_names_spec='$libname${shared_ext} $libname.a'
3417 dynamic_linker='OS/2 ld.exe'
3418 shlibpath_var=LIBPATH
3419 ;;
3420
3421 osf3* | osf4* | osf5*)
3422 version_type=osf
3423 need_lib_prefix=no
3424 need_version=no
3425 soname_spec='${libname}${release}${shared_ext}$major'
3426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3427 shlibpath_var=LD_LIBRARY_PATH
3428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3430 ;;
3431
3432 rdos*)
3433 dynamic_linker=no
3434 ;;
3435
3436 solaris*)
3437 version_type=linux
3438 need_lib_prefix=no
3439 need_version=no
3440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3441 soname_spec='${libname}${release}${shared_ext}$major'
3442 shlibpath_var=LD_LIBRARY_PATH
3443 shlibpath_overrides_runpath=yes
3444 hardcode_into_libs=yes
3445 # ldd complains unless libraries are executable
3446 postinstall_cmds='chmod +x $lib'
3447 ;;
3448
3449 sunos4*)
3450 version_type=sunos
3451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3453 shlibpath_var=LD_LIBRARY_PATH
3454 shlibpath_overrides_runpath=yes
3455 if test "$with_gnu_ld" = yes; then
3456 need_lib_prefix=no
3457 fi
3458 need_version=yes
3459 ;;
3460
3461 sysv4 | sysv4.3*)
3462 version_type=linux
3463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3464 soname_spec='${libname}${release}${shared_ext}$major'
3465 shlibpath_var=LD_LIBRARY_PATH
3466 case $host_vendor in
3467 sni)
3468 shlibpath_overrides_runpath=no
3469 need_lib_prefix=no
3470 runpath_var=LD_RUN_PATH
3471 ;;
3472 siemens)
3473 need_lib_prefix=no
3474 ;;
3475 motorola)
3476 need_lib_prefix=no
3477 need_version=no
3478 shlibpath_overrides_runpath=no
3479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3480 ;;
3481 esac
3482 ;;
3483
3484 sysv4*MP*)
3485 if test -d /usr/nec ;then
3486 version_type=linux
3487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3488 soname_spec='$libname${shared_ext}.$major'
3489 shlibpath_var=LD_LIBRARY_PATH
3490 fi
3491 ;;
3492
3493 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3494 version_type=freebsd-elf
3495 need_lib_prefix=no
3496 need_version=no
3497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3498 soname_spec='${libname}${release}${shared_ext}$major'
3499 shlibpath_var=LD_LIBRARY_PATH
3500 shlibpath_overrides_runpath=yes
3501 hardcode_into_libs=yes
3502 if test "$with_gnu_ld" = yes; then
3503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3504 else
3505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3506 case $host_os in
3507 sco3.2v5*)
3508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3509 ;;
3510 esac
3511 fi
3512 sys_lib_dlsearch_path_spec='/usr/lib'
3513 ;;
3514
3515 tpf*)
3516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3517 version_type=linux
3518 need_lib_prefix=no
3519 need_version=no
3520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3521 shlibpath_var=LD_LIBRARY_PATH
3522 shlibpath_overrides_runpath=no
3523 hardcode_into_libs=yes
3524 ;;
3525
3526 uts4*)
3527 version_type=linux
3528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3529 soname_spec='${libname}${release}${shared_ext}$major'
3530 shlibpath_var=LD_LIBRARY_PATH
3531 ;;
3532
3533 *)
3534 dynamic_linker=no
3535 ;;
3536 esac
3537 AC_MSG_RESULT([$dynamic_linker])
3538 test "$dynamic_linker" = no && can_build_shared=no
3539
3540 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3541 if test "$GCC" = yes; then
3542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3543 fi
3544
3545 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3547 fi
3548 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3550 fi
3551
3552 _LT_DECL([], [variables_saved_for_relink], [1],
3553 [Variables whose values should be saved in libtool wrapper scripts and
3554 restored at link time])
3555 _LT_DECL([], [need_lib_prefix], [0],
3556 [Do we need the "lib" prefix for modules?])
3557 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3558 _LT_DECL([], [version_type], [0], [Library versioning type])
3559 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3560 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3561 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3562 [Is shlibpath searched before the hard-coded library search path?])
3563 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3564 _LT_DECL([], [library_names_spec], [1],
3565 [[List of archive names. First name is the real one, the rest are links.
3566 The last name is the one that the linker finds with -lNAME]])
3567 _LT_DECL([], [soname_spec], [1],
3568 [[The coded name of the library, if different from the real name]])
3569 _LT_DECL([], [install_override_mode], [1],
3570 [Permission mode override for installation of shared libraries])
3571 _LT_DECL([], [postinstall_cmds], [2],
3572 [Command to use after installation of a shared archive])
3573 _LT_DECL([], [postuninstall_cmds], [2],
3574 [Command to use after uninstallation of a shared archive])
3575 _LT_DECL([], [finish_cmds], [2],
3576 [Commands used to finish a libtool library installation in a directory])
3577 _LT_DECL([], [finish_eval], [1],
3578 [[As "finish_cmds", except a single script fragment to be evaled but
3579 not shown]])
3580 _LT_DECL([], [hardcode_into_libs], [0],
3581 [Whether we should hardcode library paths into libraries])
3582 _LT_DECL([], [sys_lib_search_path_spec], [2],
3583 [Compile-time system search path for libraries])
3584 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3585 [Run-time system search path for libraries])
3586 ])# _LT_SYS_DYNAMIC_LINKER
3587
3588
3589 # _LT_PATH_TOOL_PREFIX(TOOL)
3590 # --------------------------
3591 # find a file program which can recognize shared library
3592 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3593 [m4_require([_LT_DECL_EGREP])dnl
3594 AC_MSG_CHECKING([for $1])
3595 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3596 [case $MAGIC_CMD in
3597 [[\\/*] | ?:[\\/]*])
3598 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3599 ;;
3600 *)
3601 lt_save_MAGIC_CMD="$MAGIC_CMD"
3602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3603 dnl $ac_dummy forces splitting on constant user-supplied paths.
3604 dnl POSIX.2 word splitting is done only on the output of word expansions,
3605 dnl not every word. This closes a longstanding sh security hole.
3606 ac_dummy="m4_if([$2], , $PATH, [$2])"
3607 for ac_dir in $ac_dummy; do
3608 IFS="$lt_save_ifs"
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f $ac_dir/$1; then
3611 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3612 if test -n "$file_magic_test_file"; then
3613 case $deplibs_check_method in
3614 "file_magic "*)
3615 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3616 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3617 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3618 $EGREP "$file_magic_regex" > /dev/null; then
3619 :
3620 else
3621 cat <<_LT_EOF 1>&2
3622
3623 *** Warning: the command libtool uses to detect shared libraries,
3624 *** $file_magic_cmd, produces output that libtool cannot recognize.
3625 *** The result is that libtool may fail to recognize shared libraries
3626 *** as such. This will affect the creation of libtool libraries that
3627 *** depend on shared libraries, but programs linked with such libtool
3628 *** libraries will work regardless of this problem. Nevertheless, you
3629 *** may want to report the problem to your system manager and/or to
3630 *** bug-libtool@gnu.org
3631
3632 _LT_EOF
3633 fi ;;
3634 esac
3635 fi
3636 break
3637 fi
3638 done
3639 IFS="$lt_save_ifs"
3640 MAGIC_CMD="$lt_save_MAGIC_CMD"
3641 ;;
3642 esac])
3643 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3644 if test -n "$MAGIC_CMD"; then
3645 AC_MSG_RESULT($MAGIC_CMD)
3646 else
3647 AC_MSG_RESULT(no)
3648 fi
3649 _LT_DECL([], [MAGIC_CMD], [0],
3650 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3651 ])# _LT_PATH_TOOL_PREFIX
3652
3653 # Old name:
3654 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3655 dnl aclocal-1.4 backwards compatibility:
3656 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3657
3658
3659 # _LT_PATH_MAGIC
3660 # --------------
3661 # find a file program which can recognize a shared library
3662 m4_defun([_LT_PATH_MAGIC],
3663 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3664 if test -z "$lt_cv_path_MAGIC_CMD"; then
3665 if test -n "$ac_tool_prefix"; then
3666 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3667 else
3668 MAGIC_CMD=:
3669 fi
3670 fi
3671 ])# _LT_PATH_MAGIC
3672
3673
3674 # LT_PATH_LD
3675 # ----------
3676 # find the pathname to the GNU or non-GNU linker
3677 AC_DEFUN([LT_PATH_LD],
3678 [AC_REQUIRE([AC_PROG_CC])dnl
3679 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3680 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3681 m4_require([_LT_DECL_SED])dnl
3682 m4_require([_LT_DECL_EGREP])dnl
3683 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3684
3685 AC_ARG_WITH([gnu-ld],
3686 [AS_HELP_STRING([--with-gnu-ld],
3687 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3688 [test "$withval" = no || with_gnu_ld=yes],
3689 [with_gnu_ld=no])dnl
3690
3691 ac_prog=ld
3692 if test "$GCC" = yes; then
3693 # Check if gcc -print-prog-name=ld gives a path.
3694 AC_MSG_CHECKING([for ld used by $CC])
3695 case $host in
3696 *-*-mingw*)
3697 # gcc leaves a trailing carriage return which upsets mingw
3698 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3699 *)
3700 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3701 esac
3702 case $ac_prog in
3703 # Accept absolute paths.
3704 [[\\/]]* | ?:[[\\/]]*)
3705 re_direlt='/[[^/]][[^/]]*/\.\./'
3706 # Canonicalize the pathname of ld
3707 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3708 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3709 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3710 done
3711 test -z "$LD" && LD="$ac_prog"
3712 ;;
3713 "")
3714 # If it fails, then pretend we aren't using GCC.
3715 ac_prog=ld
3716 ;;
3717 *)
3718 # If it is relative, then search for the first ld in PATH.
3719 with_gnu_ld=unknown
3720 ;;
3721 esac
3722 elif test "$with_gnu_ld" = yes; then
3723 AC_MSG_CHECKING([for GNU ld])
3724 else
3725 AC_MSG_CHECKING([for non-GNU ld])
3726 fi
3727 AC_CACHE_VAL(lt_cv_path_LD,
3728 [if test -z "$LD"; then
3729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3730 for ac_dir in $PATH; do
3731 IFS="$lt_save_ifs"
3732 test -z "$ac_dir" && ac_dir=.
3733 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3734 lt_cv_path_LD="$ac_dir/$ac_prog"
3735 # Check to see if the program is GNU ld. I'd rather use --version,
3736 # but apparently some variants of GNU ld only accept -v.
3737 # Break only if it was the GNU/non-GNU ld that we prefer.
3738 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3739 *GNU* | *'with BFD'*)
3740 test "$with_gnu_ld" != no && break
3741 ;;
3742 *)
3743 test "$with_gnu_ld" != yes && break
3744 ;;
3745 esac
3746 fi
3747 done
3748 IFS="$lt_save_ifs"
3749 else
3750 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3751 fi])
3752 LD="$lt_cv_path_LD"
3753 if test -n "$LD"; then
3754 AC_MSG_RESULT($LD)
3755 else
3756 AC_MSG_RESULT(no)
3757 fi
3758 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3759 _LT_PATH_LD_GNU
3760 AC_SUBST([LD])
3761
3762 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3763 ])# LT_PATH_LD
3764
3765 # Old names:
3766 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3767 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3768 dnl aclocal-1.4 backwards compatibility:
3769 dnl AC_DEFUN([AM_PROG_LD], [])
3770 dnl AC_DEFUN([AC_PROG_LD], [])
3771
3772
3773 # _LT_PATH_LD_GNU
3774 #- --------------
3775 m4_defun([_LT_PATH_LD_GNU],
3776 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3777 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3778 case `$LD -v 2>&1 </dev/null` in
3779 *GNU* | *'with BFD'*)
3780 lt_cv_prog_gnu_ld=yes
3781 ;;
3782 *)
3783 lt_cv_prog_gnu_ld=no
3784 ;;
3785 esac])
3786 with_gnu_ld=$lt_cv_prog_gnu_ld
3787 ])# _LT_PATH_LD_GNU
3788
3789
3790 # _LT_CMD_RELOAD
3791 # --------------
3792 # find reload flag for linker
3793 # -- PORTME Some linkers may need a different reload flag.
3794 m4_defun([_LT_CMD_RELOAD],
3795 [AC_CACHE_CHECK([for $LD option to reload object files],
3796 lt_cv_ld_reload_flag,
3797 [lt_cv_ld_reload_flag='-r'])
3798 reload_flag=$lt_cv_ld_reload_flag
3799 case $reload_flag in
3800 "" | " "*) ;;
3801 *) reload_flag=" $reload_flag" ;;
3802 esac
3803 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3804 case $host_os in
3805 darwin*)
3806 if test "$GCC" = yes; then
3807 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3808 else
3809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3810 fi
3811 ;;
3812 esac
3813 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3814 _LT_TAGDECL([], [reload_cmds], [2])dnl
3815 ])# _LT_CMD_RELOAD
3816
3817
3818 # _LT_CHECK_MAGIC_METHOD
3819 # ----------------------
3820 # how to check for library dependencies
3821 # -- PORTME fill in with the dynamic library characteristics
3822 m4_defun([_LT_CHECK_MAGIC_METHOD],
3823 [m4_require([_LT_DECL_EGREP])
3824 m4_require([_LT_DECL_OBJDUMP])
3825 AC_CACHE_CHECK([how to recognize dependent libraries],
3826 lt_cv_deplibs_check_method,
3827 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3828 lt_cv_file_magic_test_file=
3829 lt_cv_deplibs_check_method='unknown'
3830 # Need to set the preceding variable on all platforms that support
3831 # interlibrary dependencies.
3832 # 'none' -- dependencies not supported.
3833 # `unknown' -- same as none, but documents that we really don't know.
3834 # 'pass_all' -- all dependencies passed with no checks.
3835 # 'test_compile' -- check by making test program.
3836 # 'file_magic [[regex]]' -- check by looking for files in library path
3837 # which responds to the $file_magic_cmd with a given extended regex.
3838 # If you have `file' or equivalent on your system and you're not sure
3839 # whether `pass_all' will *always* work, you probably want this one.
3840
3841 case $host_os in
3842 aix[[4-9]]*)
3843 lt_cv_deplibs_check_method=pass_all
3844 ;;
3845
3846 beos*)
3847 lt_cv_deplibs_check_method=pass_all
3848 ;;
3849
3850 bsdi[[45]]*)
3851 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3852 lt_cv_file_magic_cmd='/usr/bin/file -L'
3853 lt_cv_file_magic_test_file=/shlib/libc.so
3854 ;;
3855
3856 cygwin*)
3857 # func_win32_libid is a shell function defined in ltmain.sh
3858 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3859 lt_cv_file_magic_cmd='func_win32_libid'
3860 ;;
3861
3862 mingw* | pw32*)
3863 # Base MSYS/MinGW do not provide the 'file' command needed by
3864 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3865 # unless we find 'file', for example because we are cross-compiling.
3866 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3867 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3868 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3869 lt_cv_file_magic_cmd='func_win32_libid'
3870 else
3871 # Keep this pattern in sync with the one in func_win32_libid.
3872 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3873 lt_cv_file_magic_cmd='$OBJDUMP -f'
3874 fi
3875 ;;
3876
3877 cegcc*)
3878 # use the weaker test based on 'objdump'. See mingw*.
3879 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3880 lt_cv_file_magic_cmd='$OBJDUMP -f'
3881 ;;
3882
3883 darwin* | rhapsody*)
3884 lt_cv_deplibs_check_method=pass_all
3885 ;;
3886
3887 freebsd* | dragonfly*)
3888 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3889 case $host_cpu in
3890 i*86 )
3891 # Not sure whether the presence of OpenBSD here was a mistake.
3892 # Let's accept both of them until this is cleared up.
3893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3894 lt_cv_file_magic_cmd=/usr/bin/file
3895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3896 ;;
3897 esac
3898 else
3899 lt_cv_deplibs_check_method=pass_all
3900 fi
3901 ;;
3902
3903 gnu*)
3904 lt_cv_deplibs_check_method=pass_all
3905 ;;
3906
3907 haiku*)
3908 lt_cv_deplibs_check_method=pass_all
3909 ;;
3910
3911 hpux10.20* | hpux11*)
3912 lt_cv_file_magic_cmd=/usr/bin/file
3913 case $host_cpu in
3914 ia64*)
3915 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3917 ;;
3918 hppa*64*)
3919 [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]']
3920 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3921 ;;
3922 *)
3923 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3924 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3925 ;;
3926 esac
3927 ;;
3928
3929 interix[[3-9]]*)
3930 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3931 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3932 ;;
3933
3934 irix5* | irix6* | nonstopux*)
3935 case $LD in
3936 *-32|*"-32 ") libmagic=32-bit;;
3937 *-n32|*"-n32 ") libmagic=N32;;
3938 *-64|*"-64 ") libmagic=64-bit;;
3939 *) libmagic=never-match;;
3940 esac
3941 lt_cv_deplibs_check_method=pass_all
3942 ;;
3943
3944 # This must be Linux ELF.
3945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3946 lt_cv_deplibs_check_method=pass_all
3947 ;;
3948
3949 netbsd*)
3950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3951 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3952 else
3953 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3954 fi
3955 ;;
3956
3957 newos6*)
3958 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3959 lt_cv_file_magic_cmd=/usr/bin/file
3960 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3961 ;;
3962
3963 *nto* | *qnx*)
3964 lt_cv_deplibs_check_method=pass_all
3965 ;;
3966
3967 openbsd*)
3968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3969 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3970 else
3971 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3972 fi
3973 ;;
3974
3975 osf3* | osf4* | osf5*)
3976 lt_cv_deplibs_check_method=pass_all
3977 ;;
3978
3979 rdos*)
3980 lt_cv_deplibs_check_method=pass_all
3981 ;;
3982
3983 solaris*)
3984 lt_cv_deplibs_check_method=pass_all
3985 ;;
3986
3987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3988 lt_cv_deplibs_check_method=pass_all
3989 ;;
3990
3991 sysv4 | sysv4.3*)
3992 case $host_vendor in
3993 motorola)
3994 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]]'
3995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3996 ;;
3997 ncr)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000 sequent)
4001 lt_cv_file_magic_cmd='/bin/file'
4002 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4003 ;;
4004 sni)
4005 lt_cv_file_magic_cmd='/bin/file'
4006 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4007 lt_cv_file_magic_test_file=/lib/libc.so
4008 ;;
4009 siemens)
4010 lt_cv_deplibs_check_method=pass_all
4011 ;;
4012 pc)
4013 lt_cv_deplibs_check_method=pass_all
4014 ;;
4015 esac
4016 ;;
4017
4018 tpf*)
4019 lt_cv_deplibs_check_method=pass_all
4020 ;;
4021 esac
4022 ])
4023 file_magic_cmd=$lt_cv_file_magic_cmd
4024 deplibs_check_method=$lt_cv_deplibs_check_method
4025 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4026
4027 _LT_DECL([], [deplibs_check_method], [1],
4028 [Method to check whether dependent libraries are shared objects])
4029 _LT_DECL([], [file_magic_cmd], [1],
4030 [Command to use when deplibs_check_method == "file_magic"])
4031 ])# _LT_CHECK_MAGIC_METHOD
4032
4033
4034 # LT_PATH_NM
4035 # ----------
4036 # find the pathname to a BSD- or MS-compatible name lister
4037 AC_DEFUN([LT_PATH_NM],
4038 [AC_REQUIRE([AC_PROG_CC])dnl
4039 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4040 [if test -n "$NM"; then
4041 # Let the user override the test.
4042 lt_cv_path_NM="$NM"
4043 else
4044 lt_nm_to_check="${ac_tool_prefix}nm"
4045 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4046 lt_nm_to_check="$lt_nm_to_check nm"
4047 fi
4048 for lt_tmp_nm in $lt_nm_to_check; do
4049 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4050 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4051 IFS="$lt_save_ifs"
4052 test -z "$ac_dir" && ac_dir=.
4053 tmp_nm="$ac_dir/$lt_tmp_nm"
4054 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4055 # Check to see if the nm accepts a BSD-compat flag.
4056 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4057 # nm: unknown option "B" ignored
4058 # Tru64's nm complains that /dev/null is an invalid object file
4059 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4060 */dev/null* | *'Invalid file or object type'*)
4061 lt_cv_path_NM="$tmp_nm -B"
4062 break
4063 ;;
4064 *)
4065 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4066 */dev/null*)
4067 lt_cv_path_NM="$tmp_nm -p"
4068 break
4069 ;;
4070 *)
4071 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4072 continue # so that we can try to find one that supports BSD flags
4073 ;;
4074 esac
4075 ;;
4076 esac
4077 fi
4078 done
4079 IFS="$lt_save_ifs"
4080 done
4081 : ${lt_cv_path_NM=no}
4082 fi])
4083 if test "$lt_cv_path_NM" != "no"; then
4084 NM="$lt_cv_path_NM"
4085 else
4086 # Didn't find any BSD compatible name lister, look for dumpbin.
4087 if test -n "$DUMPBIN"; then :
4088 # Let the user override the test.
4089 else
4090 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4091 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4092 *COFF*)
4093 DUMPBIN="$DUMPBIN -symbols"
4094 ;;
4095 *)
4096 DUMPBIN=:
4097 ;;
4098 esac
4099 fi
4100 AC_SUBST([DUMPBIN])
4101 if test "$DUMPBIN" != ":"; then
4102 NM="$DUMPBIN"
4103 fi
4104 fi
4105 test -z "$NM" && NM=nm
4106 AC_SUBST([NM])
4107 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4108
4109 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4110 [lt_cv_nm_interface="BSD nm"
4111 echo "int some_variable = 0;" > conftest.$ac_ext
4112 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4113 (eval "$ac_compile" 2>conftest.err)
4114 cat conftest.err >&AS_MESSAGE_LOG_FD
4115 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4116 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4117 cat conftest.err >&AS_MESSAGE_LOG_FD
4118 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4119 cat conftest.out >&AS_MESSAGE_LOG_FD
4120 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4121 lt_cv_nm_interface="MS dumpbin"
4122 fi
4123 rm -f conftest*])
4124 ])# LT_PATH_NM
4125
4126 # Old names:
4127 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4128 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4129 dnl aclocal-1.4 backwards compatibility:
4130 dnl AC_DEFUN([AM_PROG_NM], [])
4131 dnl AC_DEFUN([AC_PROG_NM], [])
4132
4133
4134 # LT_LIB_M
4135 # --------
4136 # check for math library
4137 AC_DEFUN([LT_LIB_M],
4138 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4139 LIBM=
4140 case $host in
4141 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4142 # These system don't have libm, or don't need it
4143 ;;
4144 *-ncr-sysv4.3*)
4145 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4146 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4147 ;;
4148 *)
4149 AC_CHECK_LIB(m, cos, LIBM="-lm")
4150 ;;
4151 esac
4152 AC_SUBST([LIBM])
4153 ])# LT_LIB_M
4154
4155 # Old name:
4156 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4157 dnl aclocal-1.4 backwards compatibility:
4158 dnl AC_DEFUN([AC_CHECK_LIBM], [])
4159
4160
4161 # _LT_COMPILER_NO_RTTI([TAGNAME])
4162 # -------------------------------
4163 m4_defun([_LT_COMPILER_NO_RTTI],
4164 [m4_require([_LT_TAG_COMPILER])dnl
4165
4166 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4167
4168 if test "$GCC" = yes; then
4169 case $cc_basename in
4170 nvcc*)
4171 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4172 *)
4173 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4174 esac
4175
4176 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4177 lt_cv_prog_compiler_rtti_exceptions,
4178 [-fno-rtti -fno-exceptions], [],
4179 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4180 fi
4181 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4182 [Compiler flag to turn off builtin functions])
4183 ])# _LT_COMPILER_NO_RTTI
4184
4185
4186 # _LT_CMD_GLOBAL_SYMBOLS
4187 # ----------------------
4188 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4189 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4190 AC_REQUIRE([AC_PROG_CC])dnl
4191 AC_REQUIRE([AC_PROG_AWK])dnl
4192 AC_REQUIRE([LT_PATH_NM])dnl
4193 AC_REQUIRE([LT_PATH_LD])dnl
4194 m4_require([_LT_DECL_SED])dnl
4195 m4_require([_LT_DECL_EGREP])dnl
4196 m4_require([_LT_TAG_COMPILER])dnl
4197
4198 # Check for command to grab the raw symbol name followed by C symbol from nm.
4199 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4200 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4201 [
4202 # These are sane defaults that work on at least a few old systems.
4203 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4204
4205 # Character class describing NM global symbol codes.
4206 symcode='[[BCDEGRST]]'
4207
4208 # Regexp to match symbols that can be accessed directly from C.
4209 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4210
4211 # Define system-specific variables.
4212 case $host_os in
4213 aix*)
4214 symcode='[[BCDT]]'
4215 ;;
4216 cygwin* | mingw* | pw32* | cegcc*)
4217 symcode='[[ABCDGISTW]]'
4218 ;;
4219 hpux*)
4220 if test "$host_cpu" = ia64; then
4221 symcode='[[ABCDEGRST]]'
4222 fi
4223 ;;
4224 irix* | nonstopux*)
4225 symcode='[[BCDEGRST]]'
4226 ;;
4227 osf*)
4228 symcode='[[BCDEGQRST]]'
4229 ;;
4230 solaris*)
4231 symcode='[[BDRT]]'
4232 ;;
4233 sco3.2v5*)
4234 symcode='[[DT]]'
4235 ;;
4236 sysv4.2uw2*)
4237 symcode='[[DT]]'
4238 ;;
4239 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4240 symcode='[[ABDT]]'
4241 ;;
4242 sysv4)
4243 symcode='[[DFNSTU]]'
4244 ;;
4245 esac
4246
4247 # If we're using GNU nm, then use its standard symbol codes.
4248 case `$NM -V 2>&1` in
4249 *GNU* | *'with BFD'*)
4250 symcode='[[ABCDGIRSTW]]' ;;
4251 esac
4252
4253 # Transform an extracted symbol line into a proper C declaration.
4254 # Some systems (esp. on ia64) link data and code symbols differently,
4255 # so use this general approach.
4256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4257
4258 # Transform an extracted symbol line into symbol name and symbol address
4259 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4260 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4261
4262 # Handle CRLF in mingw tool chain
4263 opt_cr=
4264 case $build_os in
4265 mingw*)
4266 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4267 ;;
4268 esac
4269
4270 # Try without a prefix underscore, then with it.
4271 for ac_symprfx in "" "_"; do
4272
4273 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4274 symxfrm="\\1 $ac_symprfx\\2 \\2"
4275
4276 # Write the raw and C identifiers.
4277 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4278 # Fake it for dumpbin and say T for any non-static function
4279 # and D for any global variable.
4280 # Also find C++ and __fastcall symbols from MSVC++,
4281 # which start with @ or ?.
4282 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4283 " {last_section=section; section=\$ 3};"\
4284 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4285 " \$ 0!~/External *\|/{next};"\
4286 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4287 " {if(hide[section]) next};"\
4288 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4289 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4290 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4291 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4292 " ' prfx=^$ac_symprfx]"
4293 else
4294 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4295 fi
4296
4297 # Check to see that the pipe works correctly.
4298 pipe_works=no
4299
4300 rm -f conftest*
4301 cat > conftest.$ac_ext <<_LT_EOF
4302 #ifdef __cplusplus
4303 extern "C" {
4304 #endif
4305 char nm_test_var;
4306 void nm_test_func(void);
4307 void nm_test_func(void){}
4308 #ifdef __cplusplus
4309 }
4310 #endif
4311 int main(){nm_test_var='a';nm_test_func();return(0);}
4312 _LT_EOF
4313
4314 if AC_TRY_EVAL(ac_compile); then
4315 # Now try to grab the symbols.
4316 nlist=conftest.nm
4317 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4318 # Try sorting and uniquifying the output.
4319 if sort "$nlist" | uniq > "$nlist"T; then
4320 mv -f "$nlist"T "$nlist"
4321 else
4322 rm -f "$nlist"T
4323 fi
4324
4325 # Make sure that we snagged all the symbols we need.
4326 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4327 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4328 cat <<_LT_EOF > conftest.$ac_ext
4329 #ifdef __cplusplus
4330 extern "C" {
4331 #endif
4332
4333 _LT_EOF
4334 # Now generate the symbol file.
4335 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4336
4337 cat <<_LT_EOF >> conftest.$ac_ext
4338
4339 /* The mapping between symbol names and symbols. */
4340 const struct {
4341 const char *name;
4342 void *address;
4343 }
4344 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4345 {
4346 { "@PROGRAM@", (void *) 0 },
4347 _LT_EOF
4348 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4349 cat <<\_LT_EOF >> conftest.$ac_ext
4350 {0, (void *) 0}
4351 };
4352
4353 /* This works around a problem in FreeBSD linker */
4354 #ifdef FREEBSD_WORKAROUND
4355 static const void *lt_preloaded_setup() {
4356 return lt__PROGRAM__LTX_preloaded_symbols;
4357 }
4358 #endif
4359
4360 #ifdef __cplusplus
4361 }
4362 #endif
4363 _LT_EOF
4364 # Now try linking the two files.
4365 mv conftest.$ac_objext conftstm.$ac_objext
4366 lt_save_LIBS="$LIBS"
4367 lt_save_CFLAGS="$CFLAGS"
4368 LIBS="conftstm.$ac_objext"
4369 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4370 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4371 pipe_works=yes
4372 fi
4373 LIBS="$lt_save_LIBS"
4374 CFLAGS="$lt_save_CFLAGS"
4375 else
4376 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4377 fi
4378 else
4379 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4380 fi
4381 else
4382 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4383 fi
4384 else
4385 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4386 cat conftest.$ac_ext >&5
4387 fi
4388 rm -rf conftest* conftst*
4389
4390 # Do not use the global_symbol_pipe unless it works.
4391 if test "$pipe_works" = yes; then
4392 break
4393 else
4394 lt_cv_sys_global_symbol_pipe=
4395 fi
4396 done
4397 ])
4398 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4399 lt_cv_sys_global_symbol_to_cdecl=
4400 fi
4401 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4402 AC_MSG_RESULT(failed)
4403 else
4404 AC_MSG_RESULT(ok)
4405 fi
4406
4407 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4408 [Take the output of nm and produce a listing of raw symbols and C names])
4409 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4410 [Transform the output of nm in a proper C declaration])
4411 _LT_DECL([global_symbol_to_c_name_address],
4412 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4413 [Transform the output of nm in a C name address pair])
4414 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4415 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4416 [Transform the output of nm in a C name address pair when lib prefix is needed])
4417 ]) # _LT_CMD_GLOBAL_SYMBOLS
4418
4419
4420 # _LT_COMPILER_PIC([TAGNAME])
4421 # ---------------------------
4422 m4_defun([_LT_COMPILER_PIC],
4423 [m4_require([_LT_TAG_COMPILER])dnl
4424 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4425 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4426 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4427
4428 AC_MSG_CHECKING([for $compiler option to produce PIC])
4429 m4_if([$1], [CXX], [
4430 # C++ specific cases for pic, static, wl, etc.
4431 if test "$GXX" = yes; then
4432 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4433 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4434
4435 case $host_os in
4436 aix*)
4437 # All AIX code is PIC.
4438 if test "$host_cpu" = ia64; then
4439 # AIX 5 now supports IA64 processor
4440 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4441 fi
4442 ;;
4443
4444 amigaos*)
4445 case $host_cpu in
4446 powerpc)
4447 # see comment about AmigaOS4 .so support
4448 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4449 ;;
4450 m68k)
4451 # FIXME: we need at least 68020 code to build shared libraries, but
4452 # adding the `-m68020' flag to GCC prevents building anything better,
4453 # like `-m68040'.
4454 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4455 ;;
4456 esac
4457 ;;
4458
4459 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4460 # PIC is the default for these OSes.
4461 ;;
4462 mingw* | cygwin* | os2* | pw32* | cegcc*)
4463 # This hack is so that the source file can tell whether it is being
4464 # built for inclusion in a dll (and should export symbols for example).
4465 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4466 # (--disable-auto-import) libraries
4467 m4_if([$1], [GCJ], [],
4468 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4469 ;;
4470 darwin* | rhapsody*)
4471 # PIC is the default on this platform
4472 # Common symbols not allowed in MH_DYLIB files
4473 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4474 ;;
4475 *djgpp*)
4476 # DJGPP does not support shared libraries at all
4477 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4478 ;;
4479 haiku*)
4480 # PIC is the default for Haiku.
4481 # The "-static" flag exists, but is broken.
4482 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4483 ;;
4484 interix[[3-9]]*)
4485 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4486 # Instead, we relocate shared libraries at runtime.
4487 ;;
4488 sysv4*MP*)
4489 if test -d /usr/nec; then
4490 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4491 fi
4492 ;;
4493 hpux*)
4494 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4495 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4496 # sets the default TLS model and affects inlining.
4497 case $host_cpu in
4498 hppa*64*)
4499 ;;
4500 *)
4501 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4502 ;;
4503 esac
4504 ;;
4505 *qnx* | *nto*)
4506 # QNX uses GNU C++, but need to define -shared option too, otherwise
4507 # it will coredump.
4508 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4509 ;;
4510 *)
4511 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4512 ;;
4513 esac
4514 else
4515 case $host_os in
4516 aix[[4-9]]*)
4517 # All AIX code is PIC.
4518 if test "$host_cpu" = ia64; then
4519 # AIX 5 now supports IA64 processor
4520 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4521 else
4522 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4523 fi
4524 ;;
4525 chorus*)
4526 case $cc_basename in
4527 cxch68*)
4528 # Green Hills C++ Compiler
4529 # _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"
4530 ;;
4531 esac
4532 ;;
4533 dgux*)
4534 case $cc_basename in
4535 ec++*)
4536 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4537 ;;
4538 ghcx*)
4539 # Green Hills C++ Compiler
4540 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4541 ;;
4542 *)
4543 ;;
4544 esac
4545 ;;
4546 freebsd* | dragonfly*)
4547 # FreeBSD uses GNU C++
4548 ;;
4549 hpux9* | hpux10* | hpux11*)
4550 case $cc_basename in
4551 CC*)
4552 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4553 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4554 if test "$host_cpu" != ia64; then
4555 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4556 fi
4557 ;;
4558 aCC*)
4559 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4560 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4561 case $host_cpu in
4562 hppa*64*|ia64*)
4563 # +Z the default
4564 ;;
4565 *)
4566 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4567 ;;
4568 esac
4569 ;;
4570 *)
4571 ;;
4572 esac
4573 ;;
4574 interix*)
4575 # This is c89, which is MS Visual C++ (no shared libs)
4576 # Anyone wants to do a port?
4577 ;;
4578 irix5* | irix6* | nonstopux*)
4579 case $cc_basename in
4580 CC*)
4581 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4582 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4583 # CC pic flag -KPIC is the default.
4584 ;;
4585 *)
4586 ;;
4587 esac
4588 ;;
4589 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4590 case $cc_basename in
4591 KCC*)
4592 # KAI C++ Compiler
4593 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4594 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4595 ;;
4596 ecpc* )
4597 # old Intel C++ for x86_64 which still supported -KPIC.
4598 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4599 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4600 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4601 ;;
4602 icpc* )
4603 # Intel C++, used to be incompatible with GCC.
4604 # ICC 10 doesn't accept -KPIC any more.
4605 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4606 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4607 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4608 ;;
4609 pgCC* | pgcpp*)
4610 # Portland Group C++ compiler
4611 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4612 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4613 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4614 ;;
4615 cxx*)
4616 # Compaq C++
4617 # Make sure the PIC flag is empty. It appears that all Alpha
4618 # Linux and Compaq Tru64 Unix objects are PIC.
4619 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4620 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4621 ;;
4622 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4623 # IBM XL 8.0, 9.0 on PPC and BlueGene
4624 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4625 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4626 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4627 ;;
4628 *)
4629 case `$CC -V 2>&1 | sed 5q` in
4630 *Sun\ C*)
4631 # Sun C++ 5.9
4632 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4633 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4634 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4635 ;;
4636 esac
4637 ;;
4638 esac
4639 ;;
4640 lynxos*)
4641 ;;
4642 m88k*)
4643 ;;
4644 mvs*)
4645 case $cc_basename in
4646 cxx*)
4647 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4648 ;;
4649 *)
4650 ;;
4651 esac
4652 ;;
4653 netbsd*)
4654 ;;
4655 *qnx* | *nto*)
4656 # QNX uses GNU C++, but need to define -shared option too, otherwise
4657 # it will coredump.
4658 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4659 ;;
4660 osf3* | osf4* | osf5*)
4661 case $cc_basename in
4662 KCC*)
4663 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4664 ;;
4665 RCC*)
4666 # Rational C++ 2.4.1
4667 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4668 ;;
4669 cxx*)
4670 # Digital/Compaq C++
4671 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4672 # Make sure the PIC flag is empty. It appears that all Alpha
4673 # Linux and Compaq Tru64 Unix objects are PIC.
4674 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4675 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4676 ;;
4677 *)
4678 ;;
4679 esac
4680 ;;
4681 psos*)
4682 ;;
4683 solaris*)
4684 case $cc_basename in
4685 CC* | sunCC*)
4686 # Sun C++ 4.2, 5.x and Centerline C++
4687 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4688 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4689 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4690 ;;
4691 gcx*)
4692 # Green Hills C++ Compiler
4693 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4694 ;;
4695 *)
4696 ;;
4697 esac
4698 ;;
4699 sunos4*)
4700 case $cc_basename in
4701 CC*)
4702 # Sun C++ 4.x
4703 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4704 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4705 ;;
4706 lcc*)
4707 # Lucid
4708 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4709 ;;
4710 *)
4711 ;;
4712 esac
4713 ;;
4714 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4715 case $cc_basename in
4716 CC*)
4717 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4719 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4720 ;;
4721 esac
4722 ;;
4723 tandem*)
4724 case $cc_basename in
4725 NCC*)
4726 # NonStop-UX NCC 3.20
4727 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4728 ;;
4729 *)
4730 ;;
4731 esac
4732 ;;
4733 vxworks*)
4734 ;;
4735 *)
4736 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4737 ;;
4738 esac
4739 fi
4740 ],
4741 [
4742 if test "$GCC" = yes; then
4743 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4744 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4745
4746 case $host_os in
4747 aix*)
4748 # All AIX code is PIC.
4749 if test "$host_cpu" = ia64; then
4750 # AIX 5 now supports IA64 processor
4751 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4752 fi
4753 ;;
4754
4755 amigaos*)
4756 case $host_cpu in
4757 powerpc)
4758 # see comment about AmigaOS4 .so support
4759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4760 ;;
4761 m68k)
4762 # FIXME: we need at least 68020 code to build shared libraries, but
4763 # adding the `-m68020' flag to GCC prevents building anything better,
4764 # like `-m68040'.
4765 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4766 ;;
4767 esac
4768 ;;
4769
4770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4771 # PIC is the default for these OSes.
4772 ;;
4773
4774 mingw* | cygwin* | pw32* | os2* | cegcc*)
4775 # This hack is so that the source file can tell whether it is being
4776 # built for inclusion in a dll (and should export symbols for example).
4777 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4778 # (--disable-auto-import) libraries
4779 m4_if([$1], [GCJ], [],
4780 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4781 ;;
4782
4783 darwin* | rhapsody*)
4784 # PIC is the default on this platform
4785 # Common symbols not allowed in MH_DYLIB files
4786 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4787 ;;
4788
4789 haiku*)
4790 # PIC is the default for Haiku.
4791 # The "-static" flag exists, but is broken.
4792 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4793 ;;
4794
4795 hpux*)
4796 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4797 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4798 # sets the default TLS model and affects inlining.
4799 case $host_cpu in
4800 hppa*64*)
4801 # +Z the default
4802 ;;
4803 *)
4804 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4805 ;;
4806 esac
4807 ;;
4808
4809 interix[[3-9]]*)
4810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4811 # Instead, we relocate shared libraries at runtime.
4812 ;;
4813
4814 msdosdjgpp*)
4815 # Just because we use GCC doesn't mean we suddenly get shared libraries
4816 # on systems that don't support them.
4817 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4818 enable_shared=no
4819 ;;
4820
4821 *nto* | *qnx*)
4822 # QNX uses GNU C++, but need to define -shared option too, otherwise
4823 # it will coredump.
4824 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4825 ;;
4826
4827 sysv4*MP*)
4828 if test -d /usr/nec; then
4829 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4830 fi
4831 ;;
4832
4833 *)
4834 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4835 ;;
4836 esac
4837
4838 case $cc_basename in
4839 nvcc*) # Cuda Compiler Driver 2.2
4840 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4841 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4842 ;;
4843 esac
4844 else
4845 # PORTME Check for flag to pass linker flags through the system compiler.
4846 case $host_os in
4847 aix*)
4848 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4849 if test "$host_cpu" = ia64; then
4850 # AIX 5 now supports IA64 processor
4851 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4852 else
4853 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4854 fi
4855 ;;
4856
4857 mingw* | cygwin* | pw32* | os2* | cegcc*)
4858 # This hack is so that the source file can tell whether it is being
4859 # built for inclusion in a dll (and should export symbols for example).
4860 m4_if([$1], [GCJ], [],
4861 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4862 ;;
4863
4864 hpux9* | hpux10* | hpux11*)
4865 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4867 # not for PA HP-UX.
4868 case $host_cpu in
4869 hppa*64*|ia64*)
4870 # +Z the default
4871 ;;
4872 *)
4873 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4874 ;;
4875 esac
4876 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4877 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4878 ;;
4879
4880 irix5* | irix6* | nonstopux*)
4881 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4882 # PIC (with -KPIC) is the default.
4883 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4884 ;;
4885
4886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4887 case $cc_basename in
4888 # old Intel for x86_64 which still supported -KPIC.
4889 ecc*)
4890 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4891 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4892 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4893 ;;
4894 # icc used to be incompatible with GCC.
4895 # ICC 10 doesn't accept -KPIC any more.
4896 icc* | ifort*)
4897 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4898 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4899 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4900 ;;
4901 # Lahey Fortran 8.1.
4902 lf95*)
4903 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4904 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4905 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4906 ;;
4907 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4908 # Portland Group compilers (*not* the Pentium gcc compiler,
4909 # which looks to be a dead project)
4910 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4911 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4912 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4913 ;;
4914 ccc*)
4915 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4916 # All Alpha code is PIC.
4917 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4918 ;;
4919 xl* | bgxl* | bgf* | mpixl*)
4920 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4921 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4922 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4923 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4924 ;;
4925 *)
4926 case `$CC -V 2>&1 | sed 5q` in
4927 *Sun\ F* | *Sun*Fortran*)
4928 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4929 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4930 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4931 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4932 ;;
4933 *Sun\ C*)
4934 # Sun C 5.9
4935 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4936 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4937 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4938 ;;
4939 esac
4940 ;;
4941 esac
4942 ;;
4943
4944 newsos6)
4945 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4946 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4947 ;;
4948
4949 *nto* | *qnx*)
4950 # QNX uses GNU C++, but need to define -shared option too, otherwise
4951 # it will coredump.
4952 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4953 ;;
4954
4955 osf3* | osf4* | osf5*)
4956 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4957 # All OSF/1 code is PIC.
4958 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4959 ;;
4960
4961 rdos*)
4962 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4963 ;;
4964
4965 solaris*)
4966 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4967 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4968 case $cc_basename in
4969 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4970 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4971 *)
4972 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4973 esac
4974 ;;
4975
4976 sunos4*)
4977 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4978 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4979 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4980 ;;
4981
4982 sysv4 | sysv4.2uw2* | sysv4.3*)
4983 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4984 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4985 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4986 ;;
4987
4988 sysv4*MP*)
4989 if test -d /usr/nec ;then
4990 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4991 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4992 fi
4993 ;;
4994
4995 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4996 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4997 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4998 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4999 ;;
5000
5001 unicos*)
5002 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5003 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5004 ;;
5005
5006 uts4*)
5007 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5008 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5009 ;;
5010
5011 *)
5012 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5013 ;;
5014 esac
5015 fi
5016 ])
5017 case $host_os in
5018 # For platforms which do not support PIC, -DPIC is meaningless:
5019 *djgpp*)
5020 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5021 ;;
5022 *)
5023 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5024 ;;
5025 esac
5026 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5027 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5028 [How to pass a linker flag through the compiler])
5029
5030 #
5031 # Check to make sure the PIC flag actually works.
5032 #
5033 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5034 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5035 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5036 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5037 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5038 "" | " "*) ;;
5039 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5040 esac],
5041 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5042 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5043 fi
5044 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5045 [Additional compiler flags for building library objects])
5046
5047 #
5048 # Check to make sure the static flag actually works.
5049 #
5050 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5051 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5052 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5053 $lt_tmp_static_flag,
5054 [],
5055 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5056 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5057 [Compiler flag to prevent dynamic linking])
5058 ])# _LT_COMPILER_PIC
5059
5060
5061 # _LT_LINKER_SHLIBS([TAGNAME])
5062 # ----------------------------
5063 # See if the linker supports building shared libraries.
5064 m4_defun([_LT_LINKER_SHLIBS],
5065 [AC_REQUIRE([LT_PATH_LD])dnl
5066 AC_REQUIRE([LT_PATH_NM])dnl
5067 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5068 m4_require([_LT_DECL_EGREP])dnl
5069 m4_require([_LT_DECL_SED])dnl
5070 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5071 m4_require([_LT_TAG_COMPILER])dnl
5072 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5073 m4_if([$1], [CXX], [
5074 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5075 case $host_os in
5076 aix[[4-9]]*)
5077 # If we're using GNU nm, then we don't want the "-C" option.
5078 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5079 # Also, AIX nm treats weak defined symbols like other global defined
5080 # symbols, whereas GNU nm marks them as "W".
5081 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5082 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5083 else
5084 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5085 fi
5086 ;;
5087 pw32*)
5088 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5089 ;;
5090 cygwin* | mingw* | cegcc*)
5091 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5092 ;;
5093 *)
5094 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5095 ;;
5096 esac
5097 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5098 ], [
5099 runpath_var=
5100 _LT_TAGVAR(allow_undefined_flag, $1)=
5101 _LT_TAGVAR(always_export_symbols, $1)=no
5102 _LT_TAGVAR(archive_cmds, $1)=
5103 _LT_TAGVAR(archive_expsym_cmds, $1)=
5104 _LT_TAGVAR(compiler_needs_object, $1)=no
5105 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5106 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5107 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5108 _LT_TAGVAR(hardcode_automatic, $1)=no
5109 _LT_TAGVAR(hardcode_direct, $1)=no
5110 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5111 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5112 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5113 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5114 _LT_TAGVAR(hardcode_minus_L, $1)=no
5115 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5116 _LT_TAGVAR(inherit_rpath, $1)=no
5117 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5118 _LT_TAGVAR(module_cmds, $1)=
5119 _LT_TAGVAR(module_expsym_cmds, $1)=
5120 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5121 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5122 _LT_TAGVAR(thread_safe_flag_spec, $1)=
5123 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5124 # include_expsyms should be a list of space-separated symbols to be *always*
5125 # included in the symbol list
5126 _LT_TAGVAR(include_expsyms, $1)=
5127 # exclude_expsyms can be an extended regexp of symbols to exclude
5128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5130 # as well as any symbol that contains `d'.
5131 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5133 # platforms (ab)use it in PIC code, but their linkers get confused if
5134 # the symbol is explicitly referenced. Since portable code cannot
5135 # rely on this symbol name, it's probably fine to never include it in
5136 # preloaded symbol tables.
5137 # Exclude shared library initialization/finalization symbols.
5138 dnl Note also adjust exclude_expsyms for C++ above.
5139 extract_expsyms_cmds=
5140
5141 case $host_os in
5142 cygwin* | mingw* | pw32* | cegcc*)
5143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5144 # When not using gcc, we currently assume that we are using
5145 # Microsoft Visual C++.
5146 if test "$GCC" != yes; then
5147 with_gnu_ld=no
5148 fi
5149 ;;
5150 interix*)
5151 # we just hope/assume this is gcc and not c89 (= MSVC++)
5152 with_gnu_ld=yes
5153 ;;
5154 openbsd*)
5155 with_gnu_ld=no
5156 ;;
5157 esac
5158
5159 _LT_TAGVAR(ld_shlibs, $1)=yes
5160
5161 # On some targets, GNU ld is compatible enough with the native linker
5162 # that we're better off using the native interface for both.
5163 lt_use_gnu_ld_interface=no
5164 if test "$with_gnu_ld" = yes; then
5165 case $host_os in
5166 aix*)
5167 # The AIX port of GNU ld has always aspired to compatibility
5168 # with the native linker. However, as the warning in the GNU ld
5169 # block says, versions before 2.19.5* couldn't really create working
5170 # shared libraries, regardless of the interface used.
5171 case `$LD -v 2>&1` in
5172 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5173 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5174 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5175 *)
5176 lt_use_gnu_ld_interface=yes
5177 ;;
5178 esac
5179 ;;
5180 *)
5181 lt_use_gnu_ld_interface=yes
5182 ;;
5183 esac
5184 fi
5185
5186 if test "$lt_use_gnu_ld_interface" = yes; then
5187 # If archive_cmds runs LD, not CC, wlarc should be empty
5188 wlarc='${wl}'
5189
5190 # Set some defaults for GNU ld with shared library support. These
5191 # are reset later if shared libraries are not supported. Putting them
5192 # here allows them to be overridden if necessary.
5193 runpath_var=LD_RUN_PATH
5194 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5195 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5196 # ancient GNU ld didn't support --whole-archive et. al.
5197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5198 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5199 else
5200 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5201 fi
5202 supports_anon_versioning=no
5203 case `$LD -v 2>&1` in
5204 *GNU\ gold*) supports_anon_versioning=yes ;;
5205 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5208 *\ 2.11.*) ;; # other 2.11 versions
5209 *) supports_anon_versioning=yes ;;
5210 esac
5211
5212 # See if GNU ld supports shared libraries.
5213 case $host_os in
5214 aix[[3-9]]*)
5215 # On AIX/PPC, the GNU linker is very broken
5216 if test "$host_cpu" != ia64; then
5217 _LT_TAGVAR(ld_shlibs, $1)=no
5218 cat <<_LT_EOF 1>&2
5219
5220 *** Warning: the GNU linker, at least up to release 2.19, is reported
5221 *** to be unable to reliably create shared libraries on AIX.
5222 *** Therefore, libtool is disabling shared libraries support. If you
5223 *** really care for shared libraries, you may want to install binutils
5224 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5225 *** You will then need to restart the configuration process.
5226
5227 _LT_EOF
5228 fi
5229 ;;
5230
5231 amigaos*)
5232 case $host_cpu in
5233 powerpc)
5234 # see comment about AmigaOS4 .so support
5235 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5236 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5237 ;;
5238 m68k)
5239 _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)'
5240 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5241 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5242 ;;
5243 esac
5244 ;;
5245
5246 beos*)
5247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5248 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5250 # support --undefined. This deserves some investigation. FIXME
5251 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5252 else
5253 _LT_TAGVAR(ld_shlibs, $1)=no
5254 fi
5255 ;;
5256
5257 cygwin* | mingw* | pw32* | cegcc*)
5258 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5259 # as there is no search path for DLLs.
5260 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5261 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5262 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5263 _LT_TAGVAR(always_export_symbols, $1)=no
5264 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5265 _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'
5266
5267 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5268 _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'
5269 # If the export-symbols file already is a .def file (1st line
5270 # is EXPORTS), use it as is; otherwise, prepend...
5271 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5272 cp $export_symbols $output_objdir/$soname.def;
5273 else
5274 echo EXPORTS > $output_objdir/$soname.def;
5275 cat $export_symbols >> $output_objdir/$soname.def;
5276 fi~
5277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5278 else
5279 _LT_TAGVAR(ld_shlibs, $1)=no
5280 fi
5281 ;;
5282
5283 haiku*)
5284 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5285 _LT_TAGVAR(link_all_deplibs, $1)=yes
5286 ;;
5287
5288 interix[[3-9]]*)
5289 _LT_TAGVAR(hardcode_direct, $1)=no
5290 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5291 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5292 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5293 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5294 # Instead, shared libraries are loaded at an image base (0x10000000 by
5295 # default) and relocated if they conflict, which is a slow very memory
5296 # consuming and fragmenting process. To avoid this, we pick a random,
5297 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5298 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5299 _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'
5300 _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'
5301 ;;
5302
5303 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5304 tmp_diet=no
5305 if test "$host_os" = linux-dietlibc; then
5306 case $cc_basename in
5307 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5308 esac
5309 fi
5310 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5311 && test "$tmp_diet" = no
5312 then
5313 tmp_addflag=
5314 tmp_sharedflag='-shared'
5315 case $cc_basename,$host_cpu in
5316 pgcc*) # Portland Group C compiler
5317 _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'
5318 tmp_addflag=' $pic_flag'
5319 ;;
5320 pgf77* | pgf90* | pgf95* | pgfortran*)
5321 # Portland Group f77 and f90 compilers
5322 _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'
5323 tmp_addflag=' $pic_flag -Mnomain' ;;
5324 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5325 tmp_addflag=' -i_dynamic' ;;
5326 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5327 tmp_addflag=' -i_dynamic -nofor_main' ;;
5328 ifc* | ifort*) # Intel Fortran compiler
5329 tmp_addflag=' -nofor_main' ;;
5330 lf95*) # Lahey Fortran 8.1
5331 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5332 tmp_sharedflag='--shared' ;;
5333 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5334 tmp_sharedflag='-qmkshrobj'
5335 tmp_addflag= ;;
5336 nvcc*) # Cuda Compiler Driver 2.2
5337 _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'
5338 _LT_TAGVAR(compiler_needs_object, $1)=yes
5339 ;;
5340 esac
5341 case `$CC -V 2>&1 | sed 5q` in
5342 *Sun\ C*) # Sun C 5.9
5343 _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'
5344 _LT_TAGVAR(compiler_needs_object, $1)=yes
5345 tmp_sharedflag='-G' ;;
5346 *Sun\ F*) # Sun Fortran 8.3
5347 tmp_sharedflag='-G' ;;
5348 esac
5349 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5350
5351 if test "x$supports_anon_versioning" = xyes; then
5352 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5353 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5354 echo "local: *; };" >> $output_objdir/$libname.ver~
5355 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5356 fi
5357
5358 case $cc_basename in
5359 xlf* | bgf* | bgxlf* | mpixlf*)
5360 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5361 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5362 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5363 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5364 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5365 if test "x$supports_anon_versioning" = xyes; then
5366 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5368 echo "local: *; };" >> $output_objdir/$libname.ver~
5369 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5370 fi
5371 ;;
5372 esac
5373 else
5374 _LT_TAGVAR(ld_shlibs, $1)=no
5375 fi
5376 ;;
5377
5378 netbsd*)
5379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5380 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5381 wlarc=
5382 else
5383 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5384 _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'
5385 fi
5386 ;;
5387
5388 solaris*)
5389 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5390 _LT_TAGVAR(ld_shlibs, $1)=no
5391 cat <<_LT_EOF 1>&2
5392
5393 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5394 *** create shared libraries on Solaris systems. Therefore, libtool
5395 *** is disabling shared libraries support. We urge you to upgrade GNU
5396 *** binutils to release 2.9.1 or newer. Another option is to modify
5397 *** your PATH or compiler configuration so that the native linker is
5398 *** used, and then restart.
5399
5400 _LT_EOF
5401 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5402 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5403 _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'
5404 else
5405 _LT_TAGVAR(ld_shlibs, $1)=no
5406 fi
5407 ;;
5408
5409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5410 case `$LD -v 2>&1` in
5411 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5412 _LT_TAGVAR(ld_shlibs, $1)=no
5413 cat <<_LT_EOF 1>&2
5414
5415 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5416 *** reliably create shared libraries on SCO systems. Therefore, libtool
5417 *** is disabling shared libraries support. We urge you to upgrade GNU
5418 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5419 *** your PATH or compiler configuration so that the native linker is
5420 *** used, and then restart.
5421
5422 _LT_EOF
5423 ;;
5424 *)
5425 # For security reasons, it is highly recommended that you always
5426 # use absolute paths for naming shared libraries, and exclude the
5427 # DT_RUNPATH tag from executables and libraries. But doing so
5428 # requires that you compile everything twice, which is a pain.
5429 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5430 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5431 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5432 _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'
5433 else
5434 _LT_TAGVAR(ld_shlibs, $1)=no
5435 fi
5436 ;;
5437 esac
5438 ;;
5439
5440 sunos4*)
5441 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5442 wlarc=
5443 _LT_TAGVAR(hardcode_direct, $1)=yes
5444 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5445 ;;
5446
5447 *)
5448 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5449 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5450 _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'
5451 else
5452 _LT_TAGVAR(ld_shlibs, $1)=no
5453 fi
5454 ;;
5455 esac
5456
5457 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5458 runpath_var=
5459 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5460 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5461 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5462 fi
5463 else
5464 # PORTME fill in a description of your system's linker (not GNU ld)
5465 case $host_os in
5466 aix3*)
5467 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5468 _LT_TAGVAR(always_export_symbols, $1)=yes
5469 _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'
5470 # Note: this linker hardcodes the directories in LIBPATH if there
5471 # are no directories specified by -L.
5472 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5473 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5474 # Neither direct hardcoding nor static linking is supported with a
5475 # broken collect2.
5476 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5477 fi
5478 ;;
5479
5480 aix[[4-9]]*)
5481 if test "$host_cpu" = ia64; then
5482 # On IA64, the linker does run time linking by default, so we don't
5483 # have to do anything special.
5484 aix_use_runtimelinking=no
5485 exp_sym_flag='-Bexport'
5486 no_entry_flag=""
5487 else
5488 # If we're using GNU nm, then we don't want the "-C" option.
5489 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5490 # Also, AIX nm treats weak defined symbols like other global
5491 # defined symbols, whereas GNU nm marks them as "W".
5492 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5493 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5494 else
5495 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5496 fi
5497 aix_use_runtimelinking=no
5498
5499 # Test if we are trying to use run time linking or normal
5500 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5501 # need to do runtime linking.
5502 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5503 for ld_flag in $LDFLAGS; do
5504 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5505 aix_use_runtimelinking=yes
5506 break
5507 fi
5508 done
5509 ;;
5510 esac
5511
5512 exp_sym_flag='-bexport'
5513 no_entry_flag='-bnoentry'
5514 fi
5515
5516 # When large executables or shared objects are built, AIX ld can
5517 # have problems creating the table of contents. If linking a library
5518 # or program results in "error TOC overflow" add -mminimal-toc to
5519 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5520 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5521
5522 _LT_TAGVAR(archive_cmds, $1)=''
5523 _LT_TAGVAR(hardcode_direct, $1)=yes
5524 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5525 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5526 _LT_TAGVAR(link_all_deplibs, $1)=yes
5527 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5528
5529 if test "$GCC" = yes; then
5530 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5531 # We only want to do this on AIX 4.2 and lower, the check
5532 # below for broken collect2 doesn't work under 4.3+
5533 collect2name=`${CC} -print-prog-name=collect2`
5534 if test -f "$collect2name" &&
5535 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5536 then
5537 # We have reworked collect2
5538 :
5539 else
5540 # We have old collect2
5541 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5542 # It fails to find uninstalled libraries when the uninstalled
5543 # path is not listed in the libpath. Setting hardcode_minus_L
5544 # to unsupported forces relinking
5545 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5546 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5547 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5548 fi
5549 ;;
5550 esac
5551 shared_flag='-shared'
5552 if test "$aix_use_runtimelinking" = yes; then
5553 shared_flag="$shared_flag "'${wl}-G'
5554 fi
5555 else
5556 # not using gcc
5557 if test "$host_cpu" = ia64; then
5558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5559 # chokes on -Wl,-G. The following line is correct:
5560 shared_flag='-G'
5561 else
5562 if test "$aix_use_runtimelinking" = yes; then
5563 shared_flag='${wl}-G'
5564 else
5565 shared_flag='${wl}-bM:SRE'
5566 fi
5567 fi
5568 fi
5569
5570 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5571 # It seems that -bexpall does not export symbols beginning with
5572 # underscore (_), so it is better to generate a list of symbols to export.
5573 _LT_TAGVAR(always_export_symbols, $1)=yes
5574 if test "$aix_use_runtimelinking" = yes; then
5575 # Warning - without using the other runtime loading flags (-brtl),
5576 # -berok will link without error, but may produce a broken library.
5577 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5578 # Determine the default libpath from the value encoded in an
5579 # empty executable.
5580 _LT_SYS_MODULE_PATH_AIX
5581 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5582 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5583 else
5584 if test "$host_cpu" = ia64; then
5585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5586 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5587 _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"
5588 else
5589 # Determine the default libpath from the value encoded in an
5590 # empty executable.
5591 _LT_SYS_MODULE_PATH_AIX
5592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5593 # Warning - without using the other run time loading flags,
5594 # -berok will link without error, but may produce a broken library.
5595 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5596 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5597 if test "$with_gnu_ld" = yes; then
5598 # We only use this code for GNU lds that support --whole-archive.
5599 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5600 else
5601 # Exported symbols can be pulled into shared objects from archives
5602 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5603 fi
5604 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5605 # This is similar to how AIX traditionally builds its shared libraries.
5606 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5607 fi
5608 fi
5609 ;;
5610
5611 amigaos*)
5612 case $host_cpu in
5613 powerpc)
5614 # see comment about AmigaOS4 .so support
5615 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5616 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5617 ;;
5618 m68k)
5619 _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)'
5620 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5621 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5622 ;;
5623 esac
5624 ;;
5625
5626 bsdi[[45]]*)
5627 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5628 ;;
5629
5630 cygwin* | mingw* | pw32* | cegcc*)
5631 # When not using gcc, we currently assume that we are using
5632 # Microsoft Visual C++.
5633 # hardcode_libdir_flag_spec is actually meaningless, as there is
5634 # no search path for DLLs.
5635 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5636 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5637 # Tell ltmain to make .lib files, not .a files.
5638 libext=lib
5639 # Tell ltmain to make .dll files, not .so files.
5640 shrext_cmds=".dll"
5641 # FIXME: Setting linknames here is a bad hack.
5642 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5643 # The linker will automatically build a .lib file if we build a DLL.
5644 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5645 # FIXME: Should let the user specify the lib program.
5646 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5647 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5648 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5649 ;;
5650
5651 darwin* | rhapsody*)
5652 _LT_DARWIN_LINKER_FEATURES($1)
5653 ;;
5654
5655 dgux*)
5656 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5658 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5659 ;;
5660
5661 freebsd1*)
5662 _LT_TAGVAR(ld_shlibs, $1)=no
5663 ;;
5664
5665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5666 # support. Future versions do this automatically, but an explicit c++rt0.o
5667 # does not break anything, and helps significantly (at the cost of a little
5668 # extra space).
5669 freebsd2.2*)
5670 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5671 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5672 _LT_TAGVAR(hardcode_direct, $1)=yes
5673 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5674 ;;
5675
5676 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5677 freebsd2*)
5678 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5679 _LT_TAGVAR(hardcode_direct, $1)=yes
5680 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5681 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5682 ;;
5683
5684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5685 freebsd* | dragonfly*)
5686 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5687 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5688 _LT_TAGVAR(hardcode_direct, $1)=yes
5689 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5690 ;;
5691
5692 hpux9*)
5693 if test "$GCC" = yes; then
5694 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5695 else
5696 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5697 fi
5698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5699 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5700 _LT_TAGVAR(hardcode_direct, $1)=yes
5701
5702 # hardcode_minus_L: Not really in the search PATH,
5703 # but as the default location of the library.
5704 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5705 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5706 ;;
5707
5708 hpux10*)
5709 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5710 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5711 else
5712 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5713 fi
5714 if test "$with_gnu_ld" = no; then
5715 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5716 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5717 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5718 _LT_TAGVAR(hardcode_direct, $1)=yes
5719 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5720 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5721 # hardcode_minus_L: Not really in the search PATH,
5722 # but as the default location of the library.
5723 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5724 fi
5725 ;;
5726
5727 hpux11*)
5728 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5729 case $host_cpu in
5730 hppa*64*)
5731 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5732 ;;
5733 ia64*)
5734 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5735 ;;
5736 *)
5737 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5738 ;;
5739 esac
5740 else
5741 case $host_cpu in
5742 hppa*64*)
5743 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5744 ;;
5745 ia64*)
5746 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5747 ;;
5748 *)
5749 m4_if($1, [], [
5750 # Older versions of the 11.00 compiler do not understand -b yet
5751 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5752 _LT_LINKER_OPTION([if $CC understands -b],
5753 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5754 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5755 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5756 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5757 ;;
5758 esac
5759 fi
5760 if test "$with_gnu_ld" = no; then
5761 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5762 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5763
5764 case $host_cpu in
5765 hppa*64*|ia64*)
5766 _LT_TAGVAR(hardcode_direct, $1)=no
5767 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5768 ;;
5769 *)
5770 _LT_TAGVAR(hardcode_direct, $1)=yes
5771 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5772 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5773
5774 # hardcode_minus_L: Not really in the search PATH,
5775 # but as the default location of the library.
5776 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5777 ;;
5778 esac
5779 fi
5780 ;;
5781
5782 irix5* | irix6* | nonstopux*)
5783 if test "$GCC" = yes; then
5784 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $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'
5785 # Try to use the -exported_symbol ld option, if it does not
5786 # work, assume that -exports_file does not work either and
5787 # implicitly export all symbols.
5788 save_LDFLAGS="$LDFLAGS"
5789 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5790 AC_LINK_IFELSE(int foo(void) {},
5791 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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 )
5793 LDFLAGS="$save_LDFLAGS"
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 netbsd*)
5806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5807 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5808 else
5809 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5810 fi
5811 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5812 _LT_TAGVAR(hardcode_direct, $1)=yes
5813 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5814 ;;
5815
5816 newsos6)
5817 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5818 _LT_TAGVAR(hardcode_direct, $1)=yes
5819 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5820 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5821 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5822 ;;
5823
5824 *nto* | *qnx*)
5825 ;;
5826
5827 openbsd*)
5828 if test -f /usr/libexec/ld.so; then
5829 _LT_TAGVAR(hardcode_direct, $1)=yes
5830 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5831 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5832 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5833 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5834 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5835 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5836 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5837 else
5838 case $host_os in
5839 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5840 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5841 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5842 ;;
5843 *)
5844 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5846 ;;
5847 esac
5848 fi
5849 else
5850 _LT_TAGVAR(ld_shlibs, $1)=no
5851 fi
5852 ;;
5853
5854 os2*)
5855 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5856 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5857 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5858 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5859 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5860 ;;
5861
5862 osf3*)
5863 if test "$GCC" = yes; then
5864 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5865 _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'
5866 else
5867 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5868 _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'
5869 fi
5870 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5871 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5872 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5873 ;;
5874
5875 osf4* | osf5*) # as osf3* with the addition of -msym flag
5876 if test "$GCC" = yes; then
5877 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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'
5879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5880 else
5881 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5882 _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'
5883 _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~
5884 $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'
5885
5886 # Both c and cxx compiler support -rpath directly
5887 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5888 fi
5889 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5890 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5891 ;;
5892
5893 solaris*)
5894 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5895 if test "$GCC" = yes; then
5896 wlarc='${wl}'
5897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5898 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5899 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5900 else
5901 case `$CC -V 2>&1` in
5902 *"Compilers 5.0"*)
5903 wlarc=''
5904 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5905 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5906 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5907 ;;
5908 *)
5909 wlarc='${wl}'
5910 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5911 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5912 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5913 ;;
5914 esac
5915 fi
5916 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5917 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5918 case $host_os in
5919 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5920 *)
5921 # The compiler driver will combine and reorder linker options,
5922 # but understands `-z linker_flag'. GCC discards it without `$wl',
5923 # but is careful enough not to reorder.
5924 # Supported since Solaris 2.6 (maybe 2.5.1?)
5925 if test "$GCC" = yes; then
5926 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5927 else
5928 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5929 fi
5930 ;;
5931 esac
5932 _LT_TAGVAR(link_all_deplibs, $1)=yes
5933 ;;
5934
5935 sunos4*)
5936 if test "x$host_vendor" = xsequent; then
5937 # Use $CC to link under sequent, because it throws in some extra .o
5938 # files that make .init and .fini sections work.
5939 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5940 else
5941 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5942 fi
5943 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5944 _LT_TAGVAR(hardcode_direct, $1)=yes
5945 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5946 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5947 ;;
5948
5949 sysv4)
5950 case $host_vendor in
5951 sni)
5952 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5953 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5954 ;;
5955 siemens)
5956 ## LD is ld it makes a PLAMLIB
5957 ## CC just makes a GrossModule.
5958 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5959 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5960 _LT_TAGVAR(hardcode_direct, $1)=no
5961 ;;
5962 motorola)
5963 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5964 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5965 ;;
5966 esac
5967 runpath_var='LD_RUN_PATH'
5968 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5969 ;;
5970
5971 sysv4.3*)
5972 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5973 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5974 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5975 ;;
5976
5977 sysv4*MP*)
5978 if test -d /usr/nec; then
5979 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5980 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5981 runpath_var=LD_RUN_PATH
5982 hardcode_runpath_var=yes
5983 _LT_TAGVAR(ld_shlibs, $1)=yes
5984 fi
5985 ;;
5986
5987 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5988 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5989 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5990 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5991 runpath_var='LD_RUN_PATH'
5992
5993 if test "$GCC" = yes; then
5994 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5995 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5996 else
5997 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5998 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5999 fi
6000 ;;
6001
6002 sysv5* | sco3.2v5* | sco5v6*)
6003 # Note: We can NOT use -z defs as we might desire, because we do not
6004 # link with -lc, and that would cause any symbols used from libc to
6005 # always be unresolved, which means just about no library would
6006 # ever link correctly. If we're not using GNU ld we use -z text
6007 # though, which does catch some bad symbols but isn't as heavy-handed
6008 # as -z defs.
6009 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6010 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6011 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6012 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6013 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6014 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6015 _LT_TAGVAR(link_all_deplibs, $1)=yes
6016 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6017 runpath_var='LD_RUN_PATH'
6018
6019 if test "$GCC" = yes; then
6020 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6021 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6022 else
6023 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6024 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6025 fi
6026 ;;
6027
6028 uts4*)
6029 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6030 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6031 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6032 ;;
6033
6034 *)
6035 _LT_TAGVAR(ld_shlibs, $1)=no
6036 ;;
6037 esac
6038
6039 if test x$host_vendor = xsni; then
6040 case $host in
6041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6042 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6043 ;;
6044 esac
6045 fi
6046 fi
6047 ])
6048 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6049 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6050
6051 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6052
6053 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6054 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6055 _LT_DECL([], [extract_expsyms_cmds], [2],
6056 [The commands to extract the exported symbol list from a shared archive])
6057
6058 #
6059 # Do we need to explicitly link libc?
6060 #
6061 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6062 x|xyes)
6063 # Assume -lc should be added
6064 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6065
6066 if test "$enable_shared" = yes && test "$GCC" = yes; then
6067 case $_LT_TAGVAR(archive_cmds, $1) in
6068 *'~'*)
6069 # FIXME: we may have to deal with multi-command sequences.
6070 ;;
6071 '$CC '*)
6072 # Test whether the compiler implicitly links with -lc since on some
6073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6074 # to ld, don't add -lc before -lgcc.
6075 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6076 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6077 [$RM conftest*
6078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6079
6080 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6081 soname=conftest
6082 lib=conftest
6083 libobjs=conftest.$ac_objext
6084 deplibs=
6085 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6086 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6087 compiler_flags=-v
6088 linker_flags=-v
6089 verstring=
6090 output_objdir=.
6091 libname=conftest
6092 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6093 _LT_TAGVAR(allow_undefined_flag, $1)=
6094 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6095 then
6096 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6097 else
6098 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6099 fi
6100 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6101 else
6102 cat conftest.err 1>&5
6103 fi
6104 $RM conftest*
6105 ])
6106 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6107 ;;
6108 esac
6109 fi
6110 ;;
6111 esac
6112
6113 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6114 [Whether or not to add -lc for building shared libraries])
6115 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6116 [enable_shared_with_static_runtimes], [0],
6117 [Whether or not to disallow shared libs when runtime libs are static])
6118 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6119 [Compiler flag to allow reflexive dlopens])
6120 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6121 [Compiler flag to generate shared objects directly from archives])
6122 _LT_TAGDECL([], [compiler_needs_object], [1],
6123 [Whether the compiler copes with passing no objects directly])
6124 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6125 [Create an old-style archive from a shared archive])
6126 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6127 [Create a temporary old-style archive to link instead of a shared archive])
6128 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6129 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6130 _LT_TAGDECL([], [module_cmds], [2],
6131 [Commands used to build a loadable module if different from building
6132 a shared archive.])
6133 _LT_TAGDECL([], [module_expsym_cmds], [2])
6134 _LT_TAGDECL([], [with_gnu_ld], [1],
6135 [Whether we are building with GNU ld or not])
6136 _LT_TAGDECL([], [allow_undefined_flag], [1],
6137 [Flag that allows shared libraries with undefined symbols to be built])
6138 _LT_TAGDECL([], [no_undefined_flag], [1],
6139 [Flag that enforces no undefined symbols])
6140 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6141 [Flag to hardcode $libdir into a binary during linking.
6142 This must work even if $libdir does not exist])
6143 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6144 [[If ld is used when linking, flag to hardcode $libdir into a binary
6145 during linking. This must work even if $libdir does not exist]])
6146 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6147 [Whether we need a single "-rpath" flag with a separated argument])
6148 _LT_TAGDECL([], [hardcode_direct], [0],
6149 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6150 DIR into the resulting binary])
6151 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6152 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6153 DIR into the resulting binary and the resulting library dependency is
6154 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6155 library is relocated])
6156 _LT_TAGDECL([], [hardcode_minus_L], [0],
6157 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6158 into the resulting binary])
6159 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6160 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6161 into the resulting binary])
6162 _LT_TAGDECL([], [hardcode_automatic], [0],
6163 [Set to "yes" if building a shared library automatically hardcodes DIR
6164 into the library and all subsequent libraries and executables linked
6165 against it])
6166 _LT_TAGDECL([], [inherit_rpath], [0],
6167 [Set to yes if linker adds runtime paths of dependent libraries
6168 to runtime path list])
6169 _LT_TAGDECL([], [link_all_deplibs], [0],
6170 [Whether libtool must link a program against all its dependency libraries])
6171 _LT_TAGDECL([], [fix_srcfile_path], [1],
6172 [Fix the shell variable $srcfile for the compiler])
6173 _LT_TAGDECL([], [always_export_symbols], [0],
6174 [Set to "yes" if exported symbols are required])
6175 _LT_TAGDECL([], [export_symbols_cmds], [2],
6176 [The commands to list exported symbols])
6177 _LT_TAGDECL([], [exclude_expsyms], [1],
6178 [Symbols that should not be listed in the preloaded symbols])
6179 _LT_TAGDECL([], [include_expsyms], [1],
6180 [Symbols that must always be exported])
6181 _LT_TAGDECL([], [prelink_cmds], [2],
6182 [Commands necessary for linking programs (against libraries) with templates])
6183 _LT_TAGDECL([], [file_list_spec], [1],
6184 [Specify filename containing input files])
6185 dnl FIXME: Not yet implemented
6186 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6187 dnl [Compiler flag to generate thread safe objects])
6188 ])# _LT_LINKER_SHLIBS
6189
6190
6191 # _LT_LANG_C_CONFIG([TAG])
6192 # ------------------------
6193 # Ensure that the configuration variables for a C compiler are suitably
6194 # defined. These variables are subsequently used by _LT_CONFIG to write
6195 # the compiler configuration to `libtool'.
6196 m4_defun([_LT_LANG_C_CONFIG],
6197 [m4_require([_LT_DECL_EGREP])dnl
6198 lt_save_CC="$CC"
6199 AC_LANG_PUSH(C)
6200
6201 # Source file extension for C test sources.
6202 ac_ext=c
6203
6204 # Object file extension for compiled C test sources.
6205 objext=o
6206 _LT_TAGVAR(objext, $1)=$objext
6207
6208 # Code to be used in simple compile tests
6209 lt_simple_compile_test_code="int some_variable = 0;"
6210
6211 # Code to be used in simple link tests
6212 lt_simple_link_test_code='int main(){return(0);}'
6213
6214 _LT_TAG_COMPILER
6215 # Save the default compiler, since it gets overwritten when the other
6216 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6217 compiler_DEFAULT=$CC
6218
6219 # save warnings/boilerplate of simple test code
6220 _LT_COMPILER_BOILERPLATE
6221 _LT_LINKER_BOILERPLATE
6222
6223 if test -n "$compiler"; then
6224 _LT_COMPILER_NO_RTTI($1)
6225 _LT_COMPILER_PIC($1)
6226 _LT_COMPILER_C_O($1)
6227 _LT_COMPILER_FILE_LOCKS($1)
6228 _LT_LINKER_SHLIBS($1)
6229 _LT_SYS_DYNAMIC_LINKER($1)
6230 _LT_LINKER_HARDCODE_LIBPATH($1)
6231 LT_SYS_DLOPEN_SELF
6232 _LT_CMD_STRIPLIB
6233
6234 # Report which library types will actually be built
6235 AC_MSG_CHECKING([if libtool supports shared libraries])
6236 AC_MSG_RESULT([$can_build_shared])
6237
6238 AC_MSG_CHECKING([whether to build shared libraries])
6239 test "$can_build_shared" = "no" && enable_shared=no
6240
6241 # On AIX, shared libraries and static libraries use the same namespace, and
6242 # are all built from PIC.
6243 case $host_os in
6244 aix3*)
6245 test "$enable_shared" = yes && enable_static=no
6246 if test -n "$RANLIB"; then
6247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6248 postinstall_cmds='$RANLIB $lib'
6249 fi
6250 ;;
6251
6252 aix[[4-9]]*)
6253 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6254 test "$enable_shared" = yes && enable_static=no
6255 fi
6256 ;;
6257 esac
6258 AC_MSG_RESULT([$enable_shared])
6259
6260 AC_MSG_CHECKING([whether to build static libraries])
6261 # Make sure either enable_shared or enable_static is yes.
6262 test "$enable_shared" = yes || enable_static=yes
6263 AC_MSG_RESULT([$enable_static])
6264
6265 _LT_CONFIG($1)
6266 fi
6267 AC_LANG_POP
6268 CC="$lt_save_CC"
6269 ])# _LT_LANG_C_CONFIG
6270
6271
6272 # _LT_LANG_CXX_CONFIG([TAG])
6273 # --------------------------
6274 # Ensure that the configuration variables for a C++ compiler are suitably
6275 # defined. These variables are subsequently used by _LT_CONFIG to write
6276 # the compiler configuration to `libtool'.
6277 m4_defun([_LT_LANG_CXX_CONFIG],
6278 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6279 m4_require([_LT_DECL_EGREP])dnl
6280 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6281 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6282 (test "X$CXX" != "Xg++"))) ; then
6283 AC_PROG_CXXCPP
6284 else
6285 _lt_caught_CXX_error=yes
6286 fi
6287
6288 AC_LANG_PUSH(C++)
6289 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6290 _LT_TAGVAR(allow_undefined_flag, $1)=
6291 _LT_TAGVAR(always_export_symbols, $1)=no
6292 _LT_TAGVAR(archive_expsym_cmds, $1)=
6293 _LT_TAGVAR(compiler_needs_object, $1)=no
6294 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6295 _LT_TAGVAR(hardcode_direct, $1)=no
6296 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6297 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6298 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6299 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6300 _LT_TAGVAR(hardcode_minus_L, $1)=no
6301 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6302 _LT_TAGVAR(hardcode_automatic, $1)=no
6303 _LT_TAGVAR(inherit_rpath, $1)=no
6304 _LT_TAGVAR(module_cmds, $1)=
6305 _LT_TAGVAR(module_expsym_cmds, $1)=
6306 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6307 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6308 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6309 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6310 _LT_TAGVAR(no_undefined_flag, $1)=
6311 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6312 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6313
6314 # Source file extension for C++ test sources.
6315 ac_ext=cpp
6316
6317 # Object file extension for compiled C++ test sources.
6318 objext=o
6319 _LT_TAGVAR(objext, $1)=$objext
6320
6321 # No sense in running all these tests if we already determined that
6322 # the CXX compiler isn't working. Some variables (like enable_shared)
6323 # are currently assumed to apply to all compilers on this platform,
6324 # and will be corrupted by setting them based on a non-working compiler.
6325 if test "$_lt_caught_CXX_error" != yes; then
6326 # Code to be used in simple compile tests
6327 lt_simple_compile_test_code="int some_variable = 0;"
6328
6329 # Code to be used in simple link tests
6330 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6331
6332 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6333 _LT_TAG_COMPILER
6334
6335 # save warnings/boilerplate of simple test code
6336 _LT_COMPILER_BOILERPLATE
6337 _LT_LINKER_BOILERPLATE
6338
6339 # Allow CC to be a program name with arguments.
6340 lt_save_CC=$CC
6341 lt_save_LD=$LD
6342 lt_save_GCC=$GCC
6343 GCC=$GXX
6344 lt_save_with_gnu_ld=$with_gnu_ld
6345 lt_save_path_LD=$lt_cv_path_LD
6346 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6347 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6348 else
6349 $as_unset lt_cv_prog_gnu_ld
6350 fi
6351 if test -n "${lt_cv_path_LDCXX+set}"; then
6352 lt_cv_path_LD=$lt_cv_path_LDCXX
6353 else
6354 $as_unset lt_cv_path_LD
6355 fi
6356 test -z "${LDCXX+set}" || LD=$LDCXX
6357 CC=${CXX-"c++"}
6358 compiler=$CC
6359 _LT_TAGVAR(compiler, $1)=$CC
6360 _LT_CC_BASENAME([$compiler])
6361
6362 if test -n "$compiler"; then
6363 # We don't want -fno-exception when compiling C++ code, so set the
6364 # no_builtin_flag separately
6365 if test "$GXX" = yes; then
6366 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6367 else
6368 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6369 fi
6370
6371 if test "$GXX" = yes; then
6372 # Set up default GNU C++ configuration
6373
6374 LT_PATH_LD
6375
6376 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6377 # archiving commands below assume that GNU ld is being used.
6378 if test "$with_gnu_ld" = yes; then
6379 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6380 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6381
6382 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6383 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6384
6385 # If archive_cmds runs LD, not CC, wlarc should be empty
6386 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6387 # investigate it a little bit more. (MM)
6388 wlarc='${wl}'
6389
6390 # ancient GNU ld didn't support --whole-archive et. al.
6391 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6392 $GREP 'no-whole-archive' > /dev/null; then
6393 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6394 else
6395 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6396 fi
6397 else
6398 with_gnu_ld=no
6399 wlarc=
6400
6401 # A generic and very simple default shared library creation
6402 # command for GNU C++ for the case where it uses the native
6403 # linker, instead of GNU ld. If possible, this setting should
6404 # overridden to take advantage of the native linker features on
6405 # the platform it is being used on.
6406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6407 fi
6408
6409 # Commands to make compiler produce verbose output that lists
6410 # what "hidden" libraries, object files and flags are used when
6411 # linking a shared library.
6412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6413
6414 else
6415 GXX=no
6416 with_gnu_ld=no
6417 wlarc=
6418 fi
6419
6420 # PORTME: fill in a description of your system's C++ link characteristics
6421 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6422 _LT_TAGVAR(ld_shlibs, $1)=yes
6423 case $host_os in
6424 aix3*)
6425 # FIXME: insert proper C++ library support
6426 _LT_TAGVAR(ld_shlibs, $1)=no
6427 ;;
6428 aix[[4-9]]*)
6429 if test "$host_cpu" = ia64; then
6430 # On IA64, the linker does run time linking by default, so we don't
6431 # have to do anything special.
6432 aix_use_runtimelinking=no
6433 exp_sym_flag='-Bexport'
6434 no_entry_flag=""
6435 else
6436 aix_use_runtimelinking=no
6437
6438 # Test if we are trying to use run time linking or normal
6439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6440 # need to do runtime linking.
6441 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6442 for ld_flag in $LDFLAGS; do
6443 case $ld_flag in
6444 *-brtl*)
6445 aix_use_runtimelinking=yes
6446 break
6447 ;;
6448 esac
6449 done
6450 ;;
6451 esac
6452
6453 exp_sym_flag='-bexport'
6454 no_entry_flag='-bnoentry'
6455 fi
6456
6457 # When large executables or shared objects are built, AIX ld can
6458 # have problems creating the table of contents. If linking a library
6459 # or program results in "error TOC overflow" add -mminimal-toc to
6460 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6461 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6462
6463 _LT_TAGVAR(archive_cmds, $1)=''
6464 _LT_TAGVAR(hardcode_direct, $1)=yes
6465 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6466 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6467 _LT_TAGVAR(link_all_deplibs, $1)=yes
6468 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6469
6470 if test "$GXX" = yes; then
6471 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6472 # We only want to do this on AIX 4.2 and lower, the check
6473 # below for broken collect2 doesn't work under 4.3+
6474 collect2name=`${CC} -print-prog-name=collect2`
6475 if test -f "$collect2name" &&
6476 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6477 then
6478 # We have reworked collect2
6479 :
6480 else
6481 # We have old collect2
6482 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6483 # It fails to find uninstalled libraries when the uninstalled
6484 # path is not listed in the libpath. Setting hardcode_minus_L
6485 # to unsupported forces relinking
6486 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6487 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6488 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6489 fi
6490 esac
6491 shared_flag='-shared'
6492 if test "$aix_use_runtimelinking" = yes; then
6493 shared_flag="$shared_flag "'${wl}-G'
6494 fi
6495 else
6496 # not using gcc
6497 if test "$host_cpu" = ia64; then
6498 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6499 # chokes on -Wl,-G. The following line is correct:
6500 shared_flag='-G'
6501 else
6502 if test "$aix_use_runtimelinking" = yes; then
6503 shared_flag='${wl}-G'
6504 else
6505 shared_flag='${wl}-bM:SRE'
6506 fi
6507 fi
6508 fi
6509
6510 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6511 # It seems that -bexpall does not export symbols beginning with
6512 # underscore (_), so it is better to generate a list of symbols to
6513 # export.
6514 _LT_TAGVAR(always_export_symbols, $1)=yes
6515 if test "$aix_use_runtimelinking" = yes; then
6516 # Warning - without using the other runtime loading flags (-brtl),
6517 # -berok will link without error, but may produce a broken library.
6518 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6519 # Determine the default libpath from the value encoded in an empty
6520 # executable.
6521 _LT_SYS_MODULE_PATH_AIX
6522 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6523
6524 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6525 else
6526 if test "$host_cpu" = ia64; then
6527 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6528 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6529 _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"
6530 else
6531 # Determine the default libpath from the value encoded in an
6532 # empty executable.
6533 _LT_SYS_MODULE_PATH_AIX
6534 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6535 # Warning - without using the other run time loading flags,
6536 # -berok will link without error, but may produce a broken library.
6537 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6538 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6539 if test "$with_gnu_ld" = yes; then
6540 # We only use this code for GNU lds that support --whole-archive.
6541 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6542 else
6543 # Exported symbols can be pulled into shared objects from archives
6544 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6545 fi
6546 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6547 # This is similar to how AIX traditionally builds its shared
6548 # libraries.
6549 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6550 fi
6551 fi
6552 ;;
6553
6554 beos*)
6555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6556 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6557 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6558 # support --undefined. This deserves some investigation. FIXME
6559 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6560 else
6561 _LT_TAGVAR(ld_shlibs, $1)=no
6562 fi
6563 ;;
6564
6565 chorus*)
6566 case $cc_basename in
6567 *)
6568 # FIXME: insert proper C++ library support
6569 _LT_TAGVAR(ld_shlibs, $1)=no
6570 ;;
6571 esac
6572 ;;
6573
6574 cygwin* | mingw* | pw32* | cegcc*)
6575 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6576 # as there is no search path for DLLs.
6577 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6578 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6579 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6580 _LT_TAGVAR(always_export_symbols, $1)=no
6581 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6582
6583 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6584 _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'
6585 # If the export-symbols file already is a .def file (1st line
6586 # is EXPORTS), use it as is; otherwise, prepend...
6587 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6588 cp $export_symbols $output_objdir/$soname.def;
6589 else
6590 echo EXPORTS > $output_objdir/$soname.def;
6591 cat $export_symbols >> $output_objdir/$soname.def;
6592 fi~
6593 $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'
6594 else
6595 _LT_TAGVAR(ld_shlibs, $1)=no
6596 fi
6597 ;;
6598 darwin* | rhapsody*)
6599 _LT_DARWIN_LINKER_FEATURES($1)
6600 ;;
6601
6602 dgux*)
6603 case $cc_basename in
6604 ec++*)
6605 # FIXME: insert proper C++ library support
6606 _LT_TAGVAR(ld_shlibs, $1)=no
6607 ;;
6608 ghcx*)
6609 # Green Hills C++ Compiler
6610 # FIXME: insert proper C++ library support
6611 _LT_TAGVAR(ld_shlibs, $1)=no
6612 ;;
6613 *)
6614 # FIXME: insert proper C++ library support
6615 _LT_TAGVAR(ld_shlibs, $1)=no
6616 ;;
6617 esac
6618 ;;
6619
6620 freebsd[[12]]*)
6621 # C++ shared libraries reported to be fairly broken before
6622 # switch to ELF
6623 _LT_TAGVAR(ld_shlibs, $1)=no
6624 ;;
6625
6626 freebsd-elf*)
6627 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6628 ;;
6629
6630 freebsd* | dragonfly*)
6631 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6632 # conventions
6633 _LT_TAGVAR(ld_shlibs, $1)=yes
6634 ;;
6635
6636 gnu*)
6637 ;;
6638
6639 haiku*)
6640 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6641 _LT_TAGVAR(link_all_deplibs, $1)=yes
6642 ;;
6643
6644 hpux9*)
6645 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6646 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6647 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6648 _LT_TAGVAR(hardcode_direct, $1)=yes
6649 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6650 # but as the default
6651 # location of the library.
6652
6653 case $cc_basename in
6654 CC*)
6655 # FIXME: insert proper C++ library support
6656 _LT_TAGVAR(ld_shlibs, $1)=no
6657 ;;
6658 aCC*)
6659 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6660 # Commands to make compiler produce verbose output that lists
6661 # what "hidden" libraries, object files and flags are used when
6662 # linking a shared library.
6663 #
6664 # There doesn't appear to be a way to prevent this compiler from
6665 # explicitly linking system object files so we need to strip them
6666 # from the output so that they don't get included in the library
6667 # dependencies.
6668 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"'
6669 ;;
6670 *)
6671 if test "$GXX" = yes; then
6672 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6673 else
6674 # FIXME: insert proper C++ library support
6675 _LT_TAGVAR(ld_shlibs, $1)=no
6676 fi
6677 ;;
6678 esac
6679 ;;
6680
6681 hpux10*|hpux11*)
6682 if test $with_gnu_ld = no; then
6683 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6684 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6685
6686 case $host_cpu in
6687 hppa*64*|ia64*)
6688 ;;
6689 *)
6690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6691 ;;
6692 esac
6693 fi
6694 case $host_cpu in
6695 hppa*64*|ia64*)
6696 _LT_TAGVAR(hardcode_direct, $1)=no
6697 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6698 ;;
6699 *)
6700 _LT_TAGVAR(hardcode_direct, $1)=yes
6701 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6702 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6703 # but as the default
6704 # location of the library.
6705 ;;
6706 esac
6707
6708 case $cc_basename in
6709 CC*)
6710 # FIXME: insert proper C++ library support
6711 _LT_TAGVAR(ld_shlibs, $1)=no
6712 ;;
6713 aCC*)
6714 case $host_cpu in
6715 hppa*64*)
6716 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6717 ;;
6718 ia64*)
6719 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6720 ;;
6721 *)
6722 _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'
6723 ;;
6724 esac
6725 # Commands to make compiler produce verbose output that lists
6726 # what "hidden" libraries, object files and flags are used when
6727 # linking a shared library.
6728 #
6729 # There doesn't appear to be a way to prevent this compiler from
6730 # explicitly linking system object files so we need to strip them
6731 # from the output so that they don't get included in the library
6732 # dependencies.
6733 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"'
6734 ;;
6735 *)
6736 if test "$GXX" = yes; then
6737 if test $with_gnu_ld = no; then
6738 case $host_cpu in
6739 hppa*64*)
6740 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6741 ;;
6742 ia64*)
6743 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6744 ;;
6745 *)
6746 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6747 ;;
6748 esac
6749 fi
6750 else
6751 # FIXME: insert proper C++ library support
6752 _LT_TAGVAR(ld_shlibs, $1)=no
6753 fi
6754 ;;
6755 esac
6756 ;;
6757
6758 interix[[3-9]]*)
6759 _LT_TAGVAR(hardcode_direct, $1)=no
6760 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6761 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6762 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6764 # Instead, shared libraries are loaded at an image base (0x10000000 by
6765 # default) and relocated if they conflict, which is a slow very memory
6766 # consuming and fragmenting process. To avoid this, we pick a random,
6767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6769 _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'
6770 _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'
6771 ;;
6772 irix5* | irix6*)
6773 case $cc_basename in
6774 CC*)
6775 # SGI C++
6776 _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'
6777
6778 # Archives containing C++ object files must be created using
6779 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6780 # necessary to make sure instantiated templates are included
6781 # in the archive.
6782 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6783 ;;
6784 *)
6785 if test "$GXX" = yes; then
6786 if test "$with_gnu_ld" = no; then
6787 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
6788 else
6789 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
6790 fi
6791 fi
6792 _LT_TAGVAR(link_all_deplibs, $1)=yes
6793 ;;
6794 esac
6795 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6796 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6797 _LT_TAGVAR(inherit_rpath, $1)=yes
6798 ;;
6799
6800 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6801 case $cc_basename in
6802 KCC*)
6803 # Kuck and Associates, Inc. (KAI) C++ Compiler
6804
6805 # KCC will only create a shared library if the output file
6806 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6807 # to its proper name (with version) after linking.
6808 _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'
6809 _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'
6810 # Commands to make compiler produce verbose output that lists
6811 # what "hidden" libraries, object files and flags are used when
6812 # linking a shared library.
6813 #
6814 # There doesn't appear to be a way to prevent this compiler from
6815 # explicitly linking system object files so we need to strip them
6816 # from the output so that they don't get included in the library
6817 # dependencies.
6818 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"'
6819
6820 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6821 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6822
6823 # Archives containing C++ object files must be created using
6824 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6825 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6826 ;;
6827 icpc* | ecpc* )
6828 # Intel C++
6829 with_gnu_ld=yes
6830 # version 8.0 and above of icpc choke on multiply defined symbols
6831 # if we add $predep_objects and $postdep_objects, however 7.1 and
6832 # earlier do not add the objects themselves.
6833 case `$CC -V 2>&1` in
6834 *"Version 7."*)
6835 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6836 _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'
6837 ;;
6838 *) # Version 8.0 or newer
6839 tmp_idyn=
6840 case $host_cpu in
6841 ia64*) tmp_idyn=' -i_dynamic';;
6842 esac
6843 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6844 _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'
6845 ;;
6846 esac
6847 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6849 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6850 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6851 ;;
6852 pgCC* | pgcpp*)
6853 # Portland Group C++ compiler
6854 case `$CC -V` in
6855 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6856 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6857 rm -rf $tpldir~
6858 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6859 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6860 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6861 rm -rf $tpldir~
6862 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6863 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6864 $RANLIB $oldlib'
6865 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6866 rm -rf $tpldir~
6867 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6868 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6869 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6870 rm -rf $tpldir~
6871 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6872 $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'
6873 ;;
6874 *) # Version 6 and above use weak symbols
6875 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6876 _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'
6877 ;;
6878 esac
6879
6880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6881 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6882 _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'
6883 ;;
6884 cxx*)
6885 # Compaq C++
6886 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6887 _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'
6888
6889 runpath_var=LD_RUN_PATH
6890 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6891 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6892
6893 # Commands to make compiler produce verbose output that lists
6894 # what "hidden" libraries, object files and flags are used when
6895 # linking a shared library.
6896 #
6897 # There doesn't appear to be a way to prevent this compiler from
6898 # explicitly linking system object files so we need to strip them
6899 # from the output so that they don't get included in the library
6900 # dependencies.
6901 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'
6902 ;;
6903 xl* | mpixl* | bgxl*)
6904 # IBM XL 8.0 on PPC, with GNU ld
6905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6906 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6907 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6908 if test "x$supports_anon_versioning" = xyes; then
6909 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6910 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6911 echo "local: *; };" >> $output_objdir/$libname.ver~
6912 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6913 fi
6914 ;;
6915 *)
6916 case `$CC -V 2>&1 | sed 5q` in
6917 *Sun\ C*)
6918 # Sun C++ 5.9
6919 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6920 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6921 _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'
6922 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6923 _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'
6924 _LT_TAGVAR(compiler_needs_object, $1)=yes
6925
6926 # Not sure whether something based on
6927 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6928 # would be better.
6929 output_verbose_link_cmd='func_echo_all'
6930
6931 # Archives containing C++ object files must be created using
6932 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6933 # necessary to make sure instantiated templates are included
6934 # in the archive.
6935 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6936 ;;
6937 esac
6938 ;;
6939 esac
6940 ;;
6941
6942 lynxos*)
6943 # FIXME: insert proper C++ library support
6944 _LT_TAGVAR(ld_shlibs, $1)=no
6945 ;;
6946
6947 m88k*)
6948 # FIXME: insert proper C++ library support
6949 _LT_TAGVAR(ld_shlibs, $1)=no
6950 ;;
6951
6952 mvs*)
6953 case $cc_basename in
6954 cxx*)
6955 # FIXME: insert proper C++ library support
6956 _LT_TAGVAR(ld_shlibs, $1)=no
6957 ;;
6958 *)
6959 # FIXME: insert proper C++ library support
6960 _LT_TAGVAR(ld_shlibs, $1)=no
6961 ;;
6962 esac
6963 ;;
6964
6965 netbsd*)
6966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6967 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6968 wlarc=
6969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6970 _LT_TAGVAR(hardcode_direct, $1)=yes
6971 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6972 fi
6973 # Workaround some broken pre-1.5 toolchains
6974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6975 ;;
6976
6977 *nto* | *qnx*)
6978 _LT_TAGVAR(ld_shlibs, $1)=yes
6979 ;;
6980
6981 openbsd2*)
6982 # C++ shared libraries are fairly broken
6983 _LT_TAGVAR(ld_shlibs, $1)=no
6984 ;;
6985
6986 openbsd*)
6987 if test -f /usr/libexec/ld.so; then
6988 _LT_TAGVAR(hardcode_direct, $1)=yes
6989 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6990 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6991 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6992 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6994 _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'
6995 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6996 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6997 fi
6998 output_verbose_link_cmd=func_echo_all
6999 else
7000 _LT_TAGVAR(ld_shlibs, $1)=no
7001 fi
7002 ;;
7003
7004 osf3* | osf4* | osf5*)
7005 case $cc_basename in
7006 KCC*)
7007 # Kuck and Associates, Inc. (KAI) C++ Compiler
7008
7009 # KCC will only create a shared library if the output file
7010 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7011 # to its proper name (with version) after linking.
7012 _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'
7013
7014 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7015 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7016
7017 # Archives containing C++ object files must be created using
7018 # the KAI C++ compiler.
7019 case $host in
7020 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7021 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7022 esac
7023 ;;
7024 RCC*)
7025 # Rational C++ 2.4.1
7026 # FIXME: insert proper C++ library support
7027 _LT_TAGVAR(ld_shlibs, $1)=no
7028 ;;
7029 cxx*)
7030 case $host in
7031 osf3*)
7032 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7033 _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'
7034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7035 ;;
7036 *)
7037 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7038 _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'
7039 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7040 echo "-hidden">> $lib.exp~
7041 $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~
7042 $RM $lib.exp'
7043 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7044 ;;
7045 esac
7046
7047 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7048
7049 # Commands to make compiler produce verbose output that lists
7050 # what "hidden" libraries, object files and flags are used when
7051 # linking a shared library.
7052 #
7053 # There doesn't appear to be a way to prevent this compiler from
7054 # explicitly linking system object files so we need to strip them
7055 # from the output so that they don't get included in the library
7056 # dependencies.
7057 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"'
7058 ;;
7059 *)
7060 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7061 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7062 case $host in
7063 osf3*)
7064 _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'
7065 ;;
7066 *)
7067 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7068 ;;
7069 esac
7070
7071 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7072 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7073
7074 # Commands to make compiler produce verbose output that lists
7075 # what "hidden" libraries, object files and flags are used when
7076 # linking a shared library.
7077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7078
7079 else
7080 # FIXME: insert proper C++ library support
7081 _LT_TAGVAR(ld_shlibs, $1)=no
7082 fi
7083 ;;
7084 esac
7085 ;;
7086
7087 psos*)
7088 # FIXME: insert proper C++ library support
7089 _LT_TAGVAR(ld_shlibs, $1)=no
7090 ;;
7091
7092 sunos4*)
7093 case $cc_basename in
7094 CC*)
7095 # Sun C++ 4.x
7096 # FIXME: insert proper C++ library support
7097 _LT_TAGVAR(ld_shlibs, $1)=no
7098 ;;
7099 lcc*)
7100 # Lucid
7101 # FIXME: insert proper C++ library support
7102 _LT_TAGVAR(ld_shlibs, $1)=no
7103 ;;
7104 *)
7105 # FIXME: insert proper C++ library support
7106 _LT_TAGVAR(ld_shlibs, $1)=no
7107 ;;
7108 esac
7109 ;;
7110
7111 solaris*)
7112 case $cc_basename in
7113 CC* | sunCC*)
7114 # Sun C++ 4.2, 5.x and Centerline C++
7115 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7116 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7117 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7118 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7119 $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'
7120
7121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7122 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7123 case $host_os in
7124 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7125 *)
7126 # The compiler driver will combine and reorder linker options,
7127 # but understands `-z linker_flag'.
7128 # Supported since Solaris 2.6 (maybe 2.5.1?)
7129 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7130 ;;
7131 esac
7132 _LT_TAGVAR(link_all_deplibs, $1)=yes
7133
7134 output_verbose_link_cmd='func_echo_all'
7135
7136 # Archives containing C++ object files must be created using
7137 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7138 # necessary to make sure instantiated templates are included
7139 # in the archive.
7140 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7141 ;;
7142 gcx*)
7143 # Green Hills C++ Compiler
7144 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7145
7146 # The C++ compiler must be used to create the archive.
7147 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7148 ;;
7149 *)
7150 # GNU C++ compiler with Solaris linker
7151 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7152 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7153 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7154 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7155 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7156 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7157
7158 # Commands to make compiler produce verbose output that lists
7159 # what "hidden" libraries, object files and flags are used when
7160 # linking a shared library.
7161 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7162 else
7163 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7164 # platform.
7165 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7166 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7167 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7168
7169 # Commands to make compiler produce verbose output that lists
7170 # what "hidden" libraries, object files and flags are used when
7171 # linking a shared library.
7172 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7173 fi
7174
7175 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7176 case $host_os in
7177 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7178 *)
7179 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7180 ;;
7181 esac
7182 fi
7183 ;;
7184 esac
7185 ;;
7186
7187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7188 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7189 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7190 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7191 runpath_var='LD_RUN_PATH'
7192
7193 case $cc_basename in
7194 CC*)
7195 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7196 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7197 ;;
7198 *)
7199 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7200 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7201 ;;
7202 esac
7203 ;;
7204
7205 sysv5* | sco3.2v5* | sco5v6*)
7206 # Note: We can NOT use -z defs as we might desire, because we do not
7207 # link with -lc, and that would cause any symbols used from libc to
7208 # always be unresolved, which means just about no library would
7209 # ever link correctly. If we're not using GNU ld we use -z text
7210 # though, which does catch some bad symbols but isn't as heavy-handed
7211 # as -z defs.
7212 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7213 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7214 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7215 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7216 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7217 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7218 _LT_TAGVAR(link_all_deplibs, $1)=yes
7219 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7220 runpath_var='LD_RUN_PATH'
7221
7222 case $cc_basename in
7223 CC*)
7224 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7225 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7226 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7227 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7228 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7229 '"$_LT_TAGVAR(reload_cmds, $1)"
7230 ;;
7231 *)
7232 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7233 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7234 ;;
7235 esac
7236 ;;
7237
7238 tandem*)
7239 case $cc_basename in
7240 NCC*)
7241 # NonStop-UX NCC 3.20
7242 # FIXME: insert proper C++ library support
7243 _LT_TAGVAR(ld_shlibs, $1)=no
7244 ;;
7245 *)
7246 # FIXME: insert proper C++ library support
7247 _LT_TAGVAR(ld_shlibs, $1)=no
7248 ;;
7249 esac
7250 ;;
7251
7252 vxworks*)
7253 # FIXME: insert proper C++ library support
7254 _LT_TAGVAR(ld_shlibs, $1)=no
7255 ;;
7256
7257 *)
7258 # FIXME: insert proper C++ library support
7259 _LT_TAGVAR(ld_shlibs, $1)=no
7260 ;;
7261 esac
7262
7263 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7264 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7265
7266 _LT_TAGVAR(GCC, $1)="$GXX"
7267 _LT_TAGVAR(LD, $1)="$LD"
7268
7269 ## CAVEAT EMPTOR:
7270 ## There is no encapsulation within the following macros, do not change
7271 ## the running order or otherwise move them around unless you know exactly
7272 ## what you are doing...
7273 _LT_SYS_HIDDEN_LIBDEPS($1)
7274 _LT_COMPILER_PIC($1)
7275 _LT_COMPILER_C_O($1)
7276 _LT_COMPILER_FILE_LOCKS($1)
7277 _LT_LINKER_SHLIBS($1)
7278 _LT_SYS_DYNAMIC_LINKER($1)
7279 _LT_LINKER_HARDCODE_LIBPATH($1)
7280
7281 _LT_CONFIG($1)
7282 fi # test -n "$compiler"
7283
7284 CC=$lt_save_CC
7285 LDCXX=$LD
7286 LD=$lt_save_LD
7287 GCC=$lt_save_GCC
7288 with_gnu_ld=$lt_save_with_gnu_ld
7289 lt_cv_path_LDCXX=$lt_cv_path_LD
7290 lt_cv_path_LD=$lt_save_path_LD
7291 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7292 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7293 fi # test "$_lt_caught_CXX_error" != yes
7294
7295 AC_LANG_POP
7296 ])# _LT_LANG_CXX_CONFIG
7297
7298
7299 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7300 # ---------------------------------
7301 # Figure out "hidden" library dependencies from verbose
7302 # compiler output when linking a shared library.
7303 # Parse the compiler output and extract the necessary
7304 # objects, libraries and library flags.
7305 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7306 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7307 # Dependencies to place before and after the object being linked:
7308 _LT_TAGVAR(predep_objects, $1)=
7309 _LT_TAGVAR(postdep_objects, $1)=
7310 _LT_TAGVAR(predeps, $1)=
7311 _LT_TAGVAR(postdeps, $1)=
7312 _LT_TAGVAR(compiler_lib_search_path, $1)=
7313
7314 dnl we can't use the lt_simple_compile_test_code here,
7315 dnl because it contains code intended for an executable,
7316 dnl not a library. It's possible we should let each
7317 dnl tag define a new lt_????_link_test_code variable,
7318 dnl but it's only used here...
7319 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7320 int a;
7321 void foo (void) { a = 0; }
7322 _LT_EOF
7323 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7324 class Foo
7325 {
7326 public:
7327 Foo (void) { a = 0; }
7328 private:
7329 int a;
7330 };
7331 _LT_EOF
7332 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7333 subroutine foo
7334 implicit none
7335 integer*4 a
7336 a=0
7337 return
7338 end
7339 _LT_EOF
7340 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7341 subroutine foo
7342 implicit none
7343 integer a
7344 a=0
7345 return
7346 end
7347 _LT_EOF
7348 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7349 public class foo {
7350 private int a;
7351 public void bar (void) {
7352 a = 0;
7353 }
7354 };
7355 _LT_EOF
7356 ])
7357 dnl Parse the compiler output and extract the necessary
7358 dnl objects, libraries and library flags.
7359 if AC_TRY_EVAL(ac_compile); then
7360 # Parse the compiler output and extract the necessary
7361 # objects, libraries and library flags.
7362
7363 # Sentinel used to keep track of whether or not we are before
7364 # the conftest object file.
7365 pre_test_object_deps_done=no
7366
7367 for p in `eval "$output_verbose_link_cmd"`; do
7368 case $p in
7369
7370 -L* | -R* | -l*)
7371 # Some compilers place space between "-{L,R}" and the path.
7372 # Remove the space.
7373 if test $p = "-L" ||
7374 test $p = "-R"; then
7375 prev=$p
7376 continue
7377 else
7378 prev=
7379 fi
7380
7381 if test "$pre_test_object_deps_done" = no; then
7382 case $p in
7383 -L* | -R*)
7384 # Internal compiler library paths should come after those
7385 # provided the user. The postdeps already come after the
7386 # user supplied libs so there is no need to process them.
7387 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7388 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7389 else
7390 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7391 fi
7392 ;;
7393 # The "-l" case would never come before the object being
7394 # linked, so don't bother handling this case.
7395 esac
7396 else
7397 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7398 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7399 else
7400 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7401 fi
7402 fi
7403 ;;
7404
7405 *.$objext)
7406 # This assumes that the test object file only shows up
7407 # once in the compiler output.
7408 if test "$p" = "conftest.$objext"; then
7409 pre_test_object_deps_done=yes
7410 continue
7411 fi
7412
7413 if test "$pre_test_object_deps_done" = no; then
7414 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7415 _LT_TAGVAR(predep_objects, $1)="$p"
7416 else
7417 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7418 fi
7419 else
7420 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7421 _LT_TAGVAR(postdep_objects, $1)="$p"
7422 else
7423 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7424 fi
7425 fi
7426 ;;
7427
7428 *) ;; # Ignore the rest.
7429
7430 esac
7431 done
7432
7433 # Clean up.
7434 rm -f a.out a.exe
7435 else
7436 echo "libtool.m4: error: problem compiling $1 test program"
7437 fi
7438
7439 $RM -f confest.$objext
7440
7441 # PORTME: override above test on systems where it is broken
7442 m4_if([$1], [CXX],
7443 [case $host_os in
7444 interix[[3-9]]*)
7445 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7446 # hack all around it, let's just trust "g++" to DTRT.
7447 _LT_TAGVAR(predep_objects,$1)=
7448 _LT_TAGVAR(postdep_objects,$1)=
7449 _LT_TAGVAR(postdeps,$1)=
7450 ;;
7451
7452 linux*)
7453 case `$CC -V 2>&1 | sed 5q` in
7454 *Sun\ C*)
7455 # Sun C++ 5.9
7456
7457 # The more standards-conforming stlport4 library is
7458 # incompatible with the Cstd library. Avoid specifying
7459 # it if it's in CXXFLAGS. Ignore libCrun as
7460 # -library=stlport4 depends on it.
7461 case " $CXX $CXXFLAGS " in
7462 *" -library=stlport4 "*)
7463 solaris_use_stlport4=yes
7464 ;;
7465 esac
7466
7467 if test "$solaris_use_stlport4" != yes; then
7468 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7469 fi
7470 ;;
7471 esac
7472 ;;
7473
7474 solaris*)
7475 case $cc_basename in
7476 CC* | sunCC*)
7477 # The more standards-conforming stlport4 library is
7478 # incompatible with the Cstd library. Avoid specifying
7479 # it if it's in CXXFLAGS. Ignore libCrun as
7480 # -library=stlport4 depends on it.
7481 case " $CXX $CXXFLAGS " in
7482 *" -library=stlport4 "*)
7483 solaris_use_stlport4=yes
7484 ;;
7485 esac
7486
7487 # Adding this requires a known-good setup of shared libraries for
7488 # Sun compiler versions before 5.6, else PIC objects from an old
7489 # archive will be linked into the output, leading to subtle bugs.
7490 if test "$solaris_use_stlport4" != yes; then
7491 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7492 fi
7493 ;;
7494 esac
7495 ;;
7496 esac
7497 ])
7498
7499 case " $_LT_TAGVAR(postdeps, $1) " in
7500 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7501 esac
7502 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7503 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7504 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7505 fi
7506 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7507 [The directories searched by this compiler when creating a shared library])
7508 _LT_TAGDECL([], [predep_objects], [1],
7509 [Dependencies to place before and after the objects being linked to
7510 create a shared library])
7511 _LT_TAGDECL([], [postdep_objects], [1])
7512 _LT_TAGDECL([], [predeps], [1])
7513 _LT_TAGDECL([], [postdeps], [1])
7514 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7515 [The library search path used internally by the compiler when linking
7516 a shared library])
7517 ])# _LT_SYS_HIDDEN_LIBDEPS
7518
7519
7520 # _LT_LANG_F77_CONFIG([TAG])
7521 # --------------------------
7522 # Ensure that the configuration variables for a Fortran 77 compiler are
7523 # suitably defined. These variables are subsequently used by _LT_CONFIG
7524 # to write the compiler configuration to `libtool'.
7525 m4_defun([_LT_LANG_F77_CONFIG],
7526 [AC_LANG_PUSH(Fortran 77)
7527 if test -z "$F77" || test "X$F77" = "Xno"; then
7528 _lt_disable_F77=yes
7529 fi
7530
7531 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7532 _LT_TAGVAR(allow_undefined_flag, $1)=
7533 _LT_TAGVAR(always_export_symbols, $1)=no
7534 _LT_TAGVAR(archive_expsym_cmds, $1)=
7535 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7536 _LT_TAGVAR(hardcode_direct, $1)=no
7537 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7538 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7539 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7540 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7541 _LT_TAGVAR(hardcode_minus_L, $1)=no
7542 _LT_TAGVAR(hardcode_automatic, $1)=no
7543 _LT_TAGVAR(inherit_rpath, $1)=no
7544 _LT_TAGVAR(module_cmds, $1)=
7545 _LT_TAGVAR(module_expsym_cmds, $1)=
7546 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7547 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7548 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7549 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7550 _LT_TAGVAR(no_undefined_flag, $1)=
7551 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7552 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7553
7554 # Source file extension for f77 test sources.
7555 ac_ext=f
7556
7557 # Object file extension for compiled f77 test sources.
7558 objext=o
7559 _LT_TAGVAR(objext, $1)=$objext
7560
7561 # No sense in running all these tests if we already determined that
7562 # the F77 compiler isn't working. Some variables (like enable_shared)
7563 # are currently assumed to apply to all compilers on this platform,
7564 # and will be corrupted by setting them based on a non-working compiler.
7565 if test "$_lt_disable_F77" != yes; then
7566 # Code to be used in simple compile tests
7567 lt_simple_compile_test_code="\
7568 subroutine t
7569 return
7570 end
7571 "
7572
7573 # Code to be used in simple link tests
7574 lt_simple_link_test_code="\
7575 program t
7576 end
7577 "
7578
7579 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7580 _LT_TAG_COMPILER
7581
7582 # save warnings/boilerplate of simple test code
7583 _LT_COMPILER_BOILERPLATE
7584 _LT_LINKER_BOILERPLATE
7585
7586 # Allow CC to be a program name with arguments.
7587 lt_save_CC="$CC"
7588 lt_save_GCC=$GCC
7589 CC=${F77-"f77"}
7590 compiler=$CC
7591 _LT_TAGVAR(compiler, $1)=$CC
7592 _LT_CC_BASENAME([$compiler])
7593 GCC=$G77
7594 if test -n "$compiler"; then
7595 AC_MSG_CHECKING([if libtool supports shared libraries])
7596 AC_MSG_RESULT([$can_build_shared])
7597
7598 AC_MSG_CHECKING([whether to build shared libraries])
7599 test "$can_build_shared" = "no" && enable_shared=no
7600
7601 # On AIX, shared libraries and static libraries use the same namespace, and
7602 # are all built from PIC.
7603 case $host_os in
7604 aix3*)
7605 test "$enable_shared" = yes && enable_static=no
7606 if test -n "$RANLIB"; then
7607 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7608 postinstall_cmds='$RANLIB $lib'
7609 fi
7610 ;;
7611 aix[[4-9]]*)
7612 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7613 test "$enable_shared" = yes && enable_static=no
7614 fi
7615 ;;
7616 esac
7617 AC_MSG_RESULT([$enable_shared])
7618
7619 AC_MSG_CHECKING([whether to build static libraries])
7620 # Make sure either enable_shared or enable_static is yes.
7621 test "$enable_shared" = yes || enable_static=yes
7622 AC_MSG_RESULT([$enable_static])
7623
7624 _LT_TAGVAR(GCC, $1)="$G77"
7625 _LT_TAGVAR(LD, $1)="$LD"
7626
7627 ## CAVEAT EMPTOR:
7628 ## There is no encapsulation within the following macros, do not change
7629 ## the running order or otherwise move them around unless you know exactly
7630 ## what you are doing...
7631 _LT_COMPILER_PIC($1)
7632 _LT_COMPILER_C_O($1)
7633 _LT_COMPILER_FILE_LOCKS($1)
7634 _LT_LINKER_SHLIBS($1)
7635 _LT_SYS_DYNAMIC_LINKER($1)
7636 _LT_LINKER_HARDCODE_LIBPATH($1)
7637
7638 _LT_CONFIG($1)
7639 fi # test -n "$compiler"
7640
7641 GCC=$lt_save_GCC
7642 CC="$lt_save_CC"
7643 fi # test "$_lt_disable_F77" != yes
7644
7645 AC_LANG_POP
7646 ])# _LT_LANG_F77_CONFIG
7647
7648
7649 # _LT_LANG_FC_CONFIG([TAG])
7650 # -------------------------
7651 # Ensure that the configuration variables for a Fortran compiler are
7652 # suitably defined. These variables are subsequently used by _LT_CONFIG
7653 # to write the compiler configuration to `libtool'.
7654 m4_defun([_LT_LANG_FC_CONFIG],
7655 [AC_LANG_PUSH(Fortran)
7656
7657 if test -z "$FC" || test "X$FC" = "Xno"; then
7658 _lt_disable_FC=yes
7659 fi
7660
7661 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7662 _LT_TAGVAR(allow_undefined_flag, $1)=
7663 _LT_TAGVAR(always_export_symbols, $1)=no
7664 _LT_TAGVAR(archive_expsym_cmds, $1)=
7665 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7666 _LT_TAGVAR(hardcode_direct, $1)=no
7667 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7668 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7669 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7670 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7671 _LT_TAGVAR(hardcode_minus_L, $1)=no
7672 _LT_TAGVAR(hardcode_automatic, $1)=no
7673 _LT_TAGVAR(inherit_rpath, $1)=no
7674 _LT_TAGVAR(module_cmds, $1)=
7675 _LT_TAGVAR(module_expsym_cmds, $1)=
7676 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7677 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7678 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7679 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7680 _LT_TAGVAR(no_undefined_flag, $1)=
7681 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7682 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7683
7684 # Source file extension for fc test sources.
7685 ac_ext=${ac_fc_srcext-f}
7686
7687 # Object file extension for compiled fc test sources.
7688 objext=o
7689 _LT_TAGVAR(objext, $1)=$objext
7690
7691 # No sense in running all these tests if we already determined that
7692 # the FC compiler isn't working. Some variables (like enable_shared)
7693 # are currently assumed to apply to all compilers on this platform,
7694 # and will be corrupted by setting them based on a non-working compiler.
7695 if test "$_lt_disable_FC" != yes; then
7696 # Code to be used in simple compile tests
7697 lt_simple_compile_test_code="\
7698 subroutine t
7699 return
7700 end
7701 "
7702
7703 # Code to be used in simple link tests
7704 lt_simple_link_test_code="\
7705 program t
7706 end
7707 "
7708
7709 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7710 _LT_TAG_COMPILER
7711
7712 # save warnings/boilerplate of simple test code
7713 _LT_COMPILER_BOILERPLATE
7714 _LT_LINKER_BOILERPLATE
7715
7716 # Allow CC to be a program name with arguments.
7717 lt_save_CC="$CC"
7718 lt_save_GCC=$GCC
7719 CC=${FC-"f95"}
7720 compiler=$CC
7721 GCC=$ac_cv_fc_compiler_gnu
7722
7723 _LT_TAGVAR(compiler, $1)=$CC
7724 _LT_CC_BASENAME([$compiler])
7725
7726 if test -n "$compiler"; then
7727 AC_MSG_CHECKING([if libtool supports shared libraries])
7728 AC_MSG_RESULT([$can_build_shared])
7729
7730 AC_MSG_CHECKING([whether to build shared libraries])
7731 test "$can_build_shared" = "no" && enable_shared=no
7732
7733 # On AIX, shared libraries and static libraries use the same namespace, and
7734 # are all built from PIC.
7735 case $host_os in
7736 aix3*)
7737 test "$enable_shared" = yes && enable_static=no
7738 if test -n "$RANLIB"; then
7739 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7740 postinstall_cmds='$RANLIB $lib'
7741 fi
7742 ;;
7743 aix[[4-9]]*)
7744 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7745 test "$enable_shared" = yes && enable_static=no
7746 fi
7747 ;;
7748 esac
7749 AC_MSG_RESULT([$enable_shared])
7750
7751 AC_MSG_CHECKING([whether to build static libraries])
7752 # Make sure either enable_shared or enable_static is yes.
7753 test "$enable_shared" = yes || enable_static=yes
7754 AC_MSG_RESULT([$enable_static])
7755
7756 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7757 _LT_TAGVAR(LD, $1)="$LD"
7758
7759 ## CAVEAT EMPTOR:
7760 ## There is no encapsulation within the following macros, do not change
7761 ## the running order or otherwise move them around unless you know exactly
7762 ## what you are doing...
7763 _LT_SYS_HIDDEN_LIBDEPS($1)
7764 _LT_COMPILER_PIC($1)
7765 _LT_COMPILER_C_O($1)
7766 _LT_COMPILER_FILE_LOCKS($1)
7767 _LT_LINKER_SHLIBS($1)
7768 _LT_SYS_DYNAMIC_LINKER($1)
7769 _LT_LINKER_HARDCODE_LIBPATH($1)
7770
7771 _LT_CONFIG($1)
7772 fi # test -n "$compiler"
7773
7774 GCC=$lt_save_GCC
7775 CC="$lt_save_CC"
7776 fi # test "$_lt_disable_FC" != yes
7777
7778 AC_LANG_POP
7779 ])# _LT_LANG_FC_CONFIG
7780
7781
7782 # _LT_LANG_GCJ_CONFIG([TAG])
7783 # --------------------------
7784 # Ensure that the configuration variables for the GNU Java Compiler compiler
7785 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7786 # to write the compiler configuration to `libtool'.
7787 m4_defun([_LT_LANG_GCJ_CONFIG],
7788 [AC_REQUIRE([LT_PROG_GCJ])dnl
7789 AC_LANG_SAVE
7790
7791 # Source file extension for Java test sources.
7792 ac_ext=java
7793
7794 # Object file extension for compiled Java test sources.
7795 objext=o
7796 _LT_TAGVAR(objext, $1)=$objext
7797
7798 # Code to be used in simple compile tests
7799 lt_simple_compile_test_code="class foo {}"
7800
7801 # Code to be used in simple link tests
7802 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7803
7804 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7805 _LT_TAG_COMPILER
7806
7807 # save warnings/boilerplate of simple test code
7808 _LT_COMPILER_BOILERPLATE
7809 _LT_LINKER_BOILERPLATE
7810
7811 # Allow CC to be a program name with arguments.
7812 lt_save_CC="$CC"
7813 lt_save_GCC=$GCC
7814 GCC=yes
7815 CC=${GCJ-"gcj"}
7816 compiler=$CC
7817 _LT_TAGVAR(compiler, $1)=$CC
7818 _LT_TAGVAR(LD, $1)="$LD"
7819 _LT_CC_BASENAME([$compiler])
7820
7821 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7822 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7823
7824 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7825 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7826 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7827
7828 if test -n "$compiler"; then
7829 _LT_COMPILER_NO_RTTI($1)
7830 _LT_COMPILER_PIC($1)
7831 _LT_COMPILER_C_O($1)
7832 _LT_COMPILER_FILE_LOCKS($1)
7833 _LT_LINKER_SHLIBS($1)
7834 _LT_LINKER_HARDCODE_LIBPATH($1)
7835
7836 _LT_CONFIG($1)
7837 fi
7838
7839 AC_LANG_RESTORE
7840
7841 GCC=$lt_save_GCC
7842 CC="$lt_save_CC"
7843 ])# _LT_LANG_GCJ_CONFIG
7844
7845
7846 # _LT_LANG_RC_CONFIG([TAG])
7847 # -------------------------
7848 # Ensure that the configuration variables for the Windows resource compiler
7849 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7850 # to write the compiler configuration to `libtool'.
7851 m4_defun([_LT_LANG_RC_CONFIG],
7852 [AC_REQUIRE([LT_PROG_RC])dnl
7853 AC_LANG_SAVE
7854
7855 # Source file extension for RC test sources.
7856 ac_ext=rc
7857
7858 # Object file extension for compiled RC test sources.
7859 objext=o
7860 _LT_TAGVAR(objext, $1)=$objext
7861
7862 # Code to be used in simple compile tests
7863 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7864
7865 # Code to be used in simple link tests
7866 lt_simple_link_test_code="$lt_simple_compile_test_code"
7867
7868 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7869 _LT_TAG_COMPILER
7870
7871 # save warnings/boilerplate of simple test code
7872 _LT_COMPILER_BOILERPLATE
7873 _LT_LINKER_BOILERPLATE
7874
7875 # Allow CC to be a program name with arguments.
7876 lt_save_CC="$CC"
7877 lt_save_GCC=$GCC
7878 GCC=
7879 CC=${RC-"windres"}
7880 compiler=$CC
7881 _LT_TAGVAR(compiler, $1)=$CC
7882 _LT_CC_BASENAME([$compiler])
7883 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7884
7885 if test -n "$compiler"; then
7886 :
7887 _LT_CONFIG($1)
7888 fi
7889
7890 GCC=$lt_save_GCC
7891 AC_LANG_RESTORE
7892 CC="$lt_save_CC"
7893 ])# _LT_LANG_RC_CONFIG
7894
7895
7896 # LT_PROG_GCJ
7897 # -----------
7898 AC_DEFUN([LT_PROG_GCJ],
7899 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7900 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7901 [AC_CHECK_TOOL(GCJ, gcj,)
7902 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7903 AC_SUBST(GCJFLAGS)])])[]dnl
7904 ])
7905
7906 # Old name:
7907 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7908 dnl aclocal-1.4 backwards compatibility:
7909 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7910
7911
7912 # LT_PROG_RC
7913 # ----------
7914 AC_DEFUN([LT_PROG_RC],
7915 [AC_CHECK_TOOL(RC, windres,)
7916 ])
7917
7918 # Old name:
7919 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7920 dnl aclocal-1.4 backwards compatibility:
7921 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7922
7923
7924 # _LT_DECL_EGREP
7925 # --------------
7926 # If we don't have a new enough Autoconf to choose the best grep
7927 # available, choose the one first in the user's PATH.
7928 m4_defun([_LT_DECL_EGREP],
7929 [AC_REQUIRE([AC_PROG_EGREP])dnl
7930 AC_REQUIRE([AC_PROG_FGREP])dnl
7931 test -z "$GREP" && GREP=grep
7932 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7933 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7934 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7935 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7936 AC_SUBST([GREP])
7937 ])
7938
7939
7940 # _LT_DECL_OBJDUMP
7941 # --------------
7942 # If we don't have a new enough Autoconf to choose the best objdump
7943 # available, choose the one first in the user's PATH.
7944 m4_defun([_LT_DECL_OBJDUMP],
7945 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7946 test -z "$OBJDUMP" && OBJDUMP=objdump
7947 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7948 AC_SUBST([OBJDUMP])
7949 ])
7950
7951
7952 # _LT_DECL_SED
7953 # ------------
7954 # Check for a fully-functional sed program, that truncates
7955 # as few characters as possible. Prefer GNU sed if found.
7956 m4_defun([_LT_DECL_SED],
7957 [AC_PROG_SED
7958 test -z "$SED" && SED=sed
7959 Xsed="$SED -e 1s/^X//"
7960 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7961 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7962 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7963 ])# _LT_DECL_SED
7964
7965 m4_ifndef([AC_PROG_SED], [
7966 # NOTE: This macro has been submitted for inclusion into #
7967 # GNU Autoconf as AC_PROG_SED. When it is available in #
7968 # a released version of Autoconf we should remove this #
7969 # macro and use it instead. #
7970
7971 m4_defun([AC_PROG_SED],
7972 [AC_MSG_CHECKING([for a sed that does not truncate output])
7973 AC_CACHE_VAL(lt_cv_path_SED,
7974 [# Loop through the user's path and test for sed and gsed.
7975 # Then use that list of sed's as ones to test for truncation.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7977 for as_dir in $PATH
7978 do
7979 IFS=$as_save_IFS
7980 test -z "$as_dir" && as_dir=.
7981 for lt_ac_prog in sed gsed; do
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7984 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7985 fi
7986 done
7987 done
7988 done
7989 IFS=$as_save_IFS
7990 lt_ac_max=0
7991 lt_ac_count=0
7992 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7993 # along with /bin/sed that truncates output.
7994 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7995 test ! -f $lt_ac_sed && continue
7996 cat /dev/null > conftest.in
7997 lt_ac_count=0
7998 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7999 # Check for GNU sed and select it if it is found.
8000 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8001 lt_cv_path_SED=$lt_ac_sed
8002 break
8003 fi
8004 while true; do
8005 cat conftest.in conftest.in >conftest.tmp
8006 mv conftest.tmp conftest.in
8007 cp conftest.in conftest.nl
8008 echo >>conftest.nl
8009 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8010 cmp -s conftest.out conftest.nl || break
8011 # 10000 chars as input seems more than enough
8012 test $lt_ac_count -gt 10 && break
8013 lt_ac_count=`expr $lt_ac_count + 1`
8014 if test $lt_ac_count -gt $lt_ac_max; then
8015 lt_ac_max=$lt_ac_count
8016 lt_cv_path_SED=$lt_ac_sed
8017 fi
8018 done
8019 done
8020 ])
8021 SED=$lt_cv_path_SED
8022 AC_SUBST([SED])
8023 AC_MSG_RESULT([$SED])
8024 ])#AC_PROG_SED
8025 ])#m4_ifndef
8026
8027 # Old name:
8028 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8029 dnl aclocal-1.4 backwards compatibility:
8030 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8031
8032
8033 # _LT_CHECK_SHELL_FEATURES
8034 # ------------------------
8035 # Find out whether the shell is Bourne or XSI compatible,
8036 # or has some other useful features.
8037 m4_defun([_LT_CHECK_SHELL_FEATURES],
8038 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8039 # Try some XSI features
8040 xsi_shell=no
8041 ( _lt_dummy="a/b/c"
8042 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8043 = c,a/b,, \
8044 && eval 'test $(( 1 + 1 )) -eq 2 \
8045 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8046 && xsi_shell=yes
8047 AC_MSG_RESULT([$xsi_shell])
8048 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8049
8050 AC_MSG_CHECKING([whether the shell understands "+="])
8051 lt_shell_append=no
8052 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8053 >/dev/null 2>&1 \
8054 && lt_shell_append=yes
8055 AC_MSG_RESULT([$lt_shell_append])
8056 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8057
8058 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8059 lt_unset=unset
8060 else
8061 lt_unset=false
8062 fi
8063 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8064
8065 # test EBCDIC or ASCII
8066 case `echo X|tr X '\101'` in
8067 A) # ASCII based system
8068 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8069 lt_SP2NL='tr \040 \012'
8070 lt_NL2SP='tr \015\012 \040\040'
8071 ;;
8072 *) # EBCDIC based system
8073 lt_SP2NL='tr \100 \n'
8074 lt_NL2SP='tr \r\n \100\100'
8075 ;;
8076 esac
8077 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8078 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8079 ])# _LT_CHECK_SHELL_FEATURES
8080
8081
8082 # _LT_PROG_XSI_SHELLFNS
8083 # ---------------------
8084 # Bourne and XSI compatible variants of some useful shell functions.
8085 m4_defun([_LT_PROG_XSI_SHELLFNS],
8086 [case $xsi_shell in
8087 yes)
8088 cat << \_LT_EOF >> "$cfgfile"
8089
8090 # func_dirname file append nondir_replacement
8091 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
8092 # otherwise set result to NONDIR_REPLACEMENT.
8093 func_dirname ()
8094 {
8095 case ${1} in
8096 */*) func_dirname_result="${1%/*}${2}" ;;
8097 * ) func_dirname_result="${3}" ;;
8098 esac
8099 }
8100
8101 # func_basename file
8102 func_basename ()
8103 {
8104 func_basename_result="${1##*/}"
8105 }
8106
8107 # func_dirname_and_basename file append nondir_replacement
8108 # perform func_basename and func_dirname in a single function
8109 # call:
8110 # dirname: Compute the dirname of FILE. If nonempty,
8111 # add APPEND to the result, otherwise set result
8112 # to NONDIR_REPLACEMENT.
8113 # value returned in "$func_dirname_result"
8114 # basename: Compute filename of FILE.
8115 # value retuned in "$func_basename_result"
8116 # Implementation must be kept synchronized with func_dirname
8117 # and func_basename. For efficiency, we do not delegate to
8118 # those functions but instead duplicate the functionality here.
8119 func_dirname_and_basename ()
8120 {
8121 case ${1} in
8122 */*) func_dirname_result="${1%/*}${2}" ;;
8123 * ) func_dirname_result="${3}" ;;
8124 esac
8125 func_basename_result="${1##*/}"
8126 }
8127
8128 # func_stripname prefix suffix name
8129 # strip PREFIX and SUFFIX off of NAME.
8130 # PREFIX and SUFFIX must not contain globbing or regex special
8131 # characters, hashes, percent signs, but SUFFIX may contain a leading
8132 # dot (in which case that matches only a dot).
8133 func_stripname ()
8134 {
8135 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8136 # positional parameters, so assign one to ordinary parameter first.
8137 func_stripname_result=${3}
8138 func_stripname_result=${func_stripname_result#"${1}"}
8139 func_stripname_result=${func_stripname_result%"${2}"}
8140 }
8141
8142 # func_opt_split
8143 func_opt_split ()
8144 {
8145 func_opt_split_opt=${1%%=*}
8146 func_opt_split_arg=${1#*=}
8147 }
8148
8149 # func_lo2o object
8150 func_lo2o ()
8151 {
8152 case ${1} in
8153 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8154 *) func_lo2o_result=${1} ;;
8155 esac
8156 }
8157
8158 # func_xform libobj-or-source
8159 func_xform ()
8160 {
8161 func_xform_result=${1%.*}.lo
8162 }
8163
8164 # func_arith arithmetic-term...
8165 func_arith ()
8166 {
8167 func_arith_result=$(( $[*] ))
8168 }
8169
8170 # func_len string
8171 # STRING may not start with a hyphen.
8172 func_len ()
8173 {
8174 func_len_result=${#1}
8175 }
8176
8177 _LT_EOF
8178 ;;
8179 *) # Bourne compatible functions.
8180 cat << \_LT_EOF >> "$cfgfile"
8181
8182 # func_dirname file append nondir_replacement
8183 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
8184 # otherwise set result to NONDIR_REPLACEMENT.
8185 func_dirname ()
8186 {
8187 # Extract subdirectory from the argument.
8188 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
8189 if test "X$func_dirname_result" = "X${1}"; then
8190 func_dirname_result="${3}"
8191 else
8192 func_dirname_result="$func_dirname_result${2}"
8193 fi
8194 }
8195
8196 # func_basename file
8197 func_basename ()
8198 {
8199 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
8200 }
8201
8202 dnl func_dirname_and_basename
8203 dnl A portable version of this function is already defined in general.m4sh
8204 dnl so there is no need for it here.
8205
8206 # func_stripname prefix suffix name
8207 # strip PREFIX and SUFFIX off of NAME.
8208 # PREFIX and SUFFIX must not contain globbing or regex special
8209 # characters, hashes, percent signs, but SUFFIX may contain a leading
8210 # dot (in which case that matches only a dot).
8211 # func_strip_suffix prefix name
8212 func_stripname ()
8213 {
8214 case ${2} in
8215 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8216 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8217 esac
8218 }
8219
8220 # sed scripts:
8221 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8222 my_sed_long_arg='1s/^-[[^=]]*=//'
8223
8224 # func_opt_split
8225 func_opt_split ()
8226 {
8227 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
8228 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
8229 }
8230
8231 # func_lo2o object
8232 func_lo2o ()
8233 {
8234 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
8235 }
8236
8237 # func_xform libobj-or-source
8238 func_xform ()
8239 {
8240 func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
8241 }
8242
8243 # func_arith arithmetic-term...
8244 func_arith ()
8245 {
8246 func_arith_result=`expr "$[@]"`
8247 }
8248
8249 # func_len string
8250 # STRING may not start with a hyphen.
8251 func_len ()
8252 {
8253 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8254 }
8255
8256 _LT_EOF
8257 esac
8258
8259 case $lt_shell_append in
8260 yes)
8261 cat << \_LT_EOF >> "$cfgfile"
8262
8263 # func_append var value
8264 # Append VALUE to the end of shell variable VAR.
8265 func_append ()
8266 {
8267 eval "$[1]+=\$[2]"
8268 }
8269 _LT_EOF
8270 ;;
8271 *)
8272 cat << \_LT_EOF >> "$cfgfile"
8273
8274 # func_append var value
8275 # Append VALUE to the end of shell variable VAR.
8276 func_append ()
8277 {
8278 eval "$[1]=\$$[1]\$[2]"
8279 }
8280
8281 _LT_EOF
8282 ;;
8283 esac
8284 ])
8285
8286 # Helper functions for option handling. -*- Autoconf -*-
8287 #
8288 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8289 # Inc.
8290 # Written by Gary V. Vaughan, 2004
8291 #
8292 # This file is free software; the Free Software Foundation gives
8293 # unlimited permission to copy and/or distribute it, with or without
8294 # modifications, as long as this notice is preserved.
8295
8296 # serial 7 ltoptions.m4
8297
8298 # This is to help aclocal find these macros, as it can't see m4_define.
8299 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8300
8301
8302 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8303 # ------------------------------------------
8304 m4_define([_LT_MANGLE_OPTION],
8305 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8306
8307
8308 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8309 # ---------------------------------------
8310 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8311 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8312 # saved as a flag.
8313 m4_define([_LT_SET_OPTION],
8314 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8315 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8316 _LT_MANGLE_DEFUN([$1], [$2]),
8317 [m4_warning([Unknown $1 option `$2'])])[]dnl
8318 ])
8319
8320
8321 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8322 # ------------------------------------------------------------
8323 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8324 m4_define([_LT_IF_OPTION],
8325 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8326
8327
8328 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8329 # -------------------------------------------------------
8330 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8331 # are set.
8332 m4_define([_LT_UNLESS_OPTIONS],
8333 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8334 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8335 [m4_define([$0_found])])])[]dnl
8336 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8337 ])[]dnl
8338 ])
8339
8340
8341 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8342 # ----------------------------------------
8343 # OPTION-LIST is a space-separated list of Libtool options associated
8344 # with MACRO-NAME. If any OPTION has a matching handler declared with
8345 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8346 # the unknown option and exit.
8347 m4_defun([_LT_SET_OPTIONS],
8348 [# Set options
8349 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8350 [_LT_SET_OPTION([$1], _LT_Option)])
8351
8352 m4_if([$1],[LT_INIT],[
8353 dnl
8354 dnl Simply set some default values (i.e off) if boolean options were not
8355 dnl specified:
8356 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8357 ])
8358 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8359 ])
8360 dnl
8361 dnl If no reference was made to various pairs of opposing options, then
8362 dnl we run the default mode handler for the pair. For example, if neither
8363 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8364 dnl archives by default:
8365 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8366 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8367 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8368 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8369 [_LT_ENABLE_FAST_INSTALL])
8370 ])
8371 ])# _LT_SET_OPTIONS
8372
8373
8374
8375 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8376 # -----------------------------------------
8377 m4_define([_LT_MANGLE_DEFUN],
8378 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8379
8380
8381 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8382 # -----------------------------------------------
8383 m4_define([LT_OPTION_DEFINE],
8384 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8385 ])# LT_OPTION_DEFINE
8386
8387
8388 # dlopen
8389 # ------
8390 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8391 ])
8392
8393 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8394 [_LT_SET_OPTION([LT_INIT], [dlopen])
8395 AC_DIAGNOSE([obsolete],
8396 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8397 put the `dlopen' option into LT_INIT's first parameter.])
8398 ])
8399
8400 dnl aclocal-1.4 backwards compatibility:
8401 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8402
8403
8404 # win32-dll
8405 # ---------
8406 # Declare package support for building win32 dll's.
8407 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8408 [enable_win32_dll=yes
8409
8410 case $host in
8411 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8412 AC_CHECK_TOOL(AS, as, false)
8413 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8414 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8415 ;;
8416 esac
8417
8418 test -z "$AS" && AS=as
8419 _LT_DECL([], [AS], [1], [Assembler program])dnl
8420
8421 test -z "$DLLTOOL" && DLLTOOL=dlltool
8422 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
8423
8424 test -z "$OBJDUMP" && OBJDUMP=objdump
8425 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
8426 ])# win32-dll
8427
8428 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8429 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8430 _LT_SET_OPTION([LT_INIT], [win32-dll])
8431 AC_DIAGNOSE([obsolete],
8432 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8433 put the `win32-dll' option into LT_INIT's first parameter.])
8434 ])
8435
8436 dnl aclocal-1.4 backwards compatibility:
8437 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8438
8439
8440 # _LT_ENABLE_SHARED([DEFAULT])
8441 # ----------------------------
8442 # implement the --enable-shared flag, and supports the `shared' and
8443 # `disable-shared' LT_INIT options.
8444 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8445 m4_define([_LT_ENABLE_SHARED],
8446 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8447 AC_ARG_ENABLE([shared],
8448 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8449 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8450 [p=${PACKAGE-default}
8451 case $enableval in
8452 yes) enable_shared=yes ;;
8453 no) enable_shared=no ;;
8454 *)
8455 enable_shared=no
8456 # Look at the argument we got. We use all the common list separators.
8457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8458 for pkg in $enableval; do
8459 IFS="$lt_save_ifs"
8460 if test "X$pkg" = "X$p"; then
8461 enable_shared=yes
8462 fi
8463 done
8464 IFS="$lt_save_ifs"
8465 ;;
8466 esac],
8467 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8468
8469 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8470 [Whether or not to build shared libraries])
8471 ])# _LT_ENABLE_SHARED
8472
8473 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8474 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8475
8476 # Old names:
8477 AC_DEFUN([AC_ENABLE_SHARED],
8478 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8479 ])
8480
8481 AC_DEFUN([AC_DISABLE_SHARED],
8482 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8483 ])
8484
8485 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8486 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8487
8488 dnl aclocal-1.4 backwards compatibility:
8489 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8490 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8491
8492
8493
8494 # _LT_ENABLE_STATIC([DEFAULT])
8495 # ----------------------------
8496 # implement the --enable-static flag, and support the `static' and
8497 # `disable-static' LT_INIT options.
8498 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8499 m4_define([_LT_ENABLE_STATIC],
8500 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8501 AC_ARG_ENABLE([static],
8502 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8503 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8504 [p=${PACKAGE-default}
8505 case $enableval in
8506 yes) enable_static=yes ;;
8507 no) enable_static=no ;;
8508 *)
8509 enable_static=no
8510 # Look at the argument we got. We use all the common list separators.
8511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8512 for pkg in $enableval; do
8513 IFS="$lt_save_ifs"
8514 if test "X$pkg" = "X$p"; then
8515 enable_static=yes
8516 fi
8517 done
8518 IFS="$lt_save_ifs"
8519 ;;
8520 esac],
8521 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8522
8523 _LT_DECL([build_old_libs], [enable_static], [0],
8524 [Whether or not to build static libraries])
8525 ])# _LT_ENABLE_STATIC
8526
8527 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8528 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8529
8530 # Old names:
8531 AC_DEFUN([AC_ENABLE_STATIC],
8532 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8533 ])
8534
8535 AC_DEFUN([AC_DISABLE_STATIC],
8536 [_LT_SET_OPTION([LT_INIT], [disable-static])
8537 ])
8538
8539 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8540 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8541
8542 dnl aclocal-1.4 backwards compatibility:
8543 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8544 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8545
8546
8547
8548 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8549 # ----------------------------------
8550 # implement the --enable-fast-install flag, and support the `fast-install'
8551 # and `disable-fast-install' LT_INIT options.
8552 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8553 m4_define([_LT_ENABLE_FAST_INSTALL],
8554 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8555 AC_ARG_ENABLE([fast-install],
8556 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8557 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8558 [p=${PACKAGE-default}
8559 case $enableval in
8560 yes) enable_fast_install=yes ;;
8561 no) enable_fast_install=no ;;
8562 *)
8563 enable_fast_install=no
8564 # Look at the argument we got. We use all the common list separators.
8565 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8566 for pkg in $enableval; do
8567 IFS="$lt_save_ifs"
8568 if test "X$pkg" = "X$p"; then
8569 enable_fast_install=yes
8570 fi
8571 done
8572 IFS="$lt_save_ifs"
8573 ;;
8574 esac],
8575 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8576
8577 _LT_DECL([fast_install], [enable_fast_install], [0],
8578 [Whether or not to optimize for fast installation])dnl
8579 ])# _LT_ENABLE_FAST_INSTALL
8580
8581 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8582 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8583
8584 # Old names:
8585 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8586 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8587 AC_DIAGNOSE([obsolete],
8588 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8589 the `fast-install' option into LT_INIT's first parameter.])
8590 ])
8591
8592 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8593 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8594 AC_DIAGNOSE([obsolete],
8595 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8596 the `disable-fast-install' option into LT_INIT's first parameter.])
8597 ])
8598
8599 dnl aclocal-1.4 backwards compatibility:
8600 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8601 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8602
8603
8604 # _LT_WITH_PIC([MODE])
8605 # --------------------
8606 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8607 # LT_INIT options.
8608 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8609 m4_define([_LT_WITH_PIC],
8610 [AC_ARG_WITH([pic],
8611 [AS_HELP_STRING([--with-pic],
8612 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8613 [pic_mode="$withval"],
8614 [pic_mode=default])
8615
8616 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8617
8618 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8619 ])# _LT_WITH_PIC
8620
8621 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8622 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8623
8624 # Old name:
8625 AU_DEFUN([AC_LIBTOOL_PICMODE],
8626 [_LT_SET_OPTION([LT_INIT], [pic-only])
8627 AC_DIAGNOSE([obsolete],
8628 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8629 put the `pic-only' option into LT_INIT's first parameter.])
8630 ])
8631
8632 dnl aclocal-1.4 backwards compatibility:
8633 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8634
8635
8636 m4_define([_LTDL_MODE], [])
8637 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8638 [m4_define([_LTDL_MODE], [nonrecursive])])
8639 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8640 [m4_define([_LTDL_MODE], [recursive])])
8641 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8642 [m4_define([_LTDL_MODE], [subproject])])
8643
8644 m4_define([_LTDL_TYPE], [])
8645 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8646 [m4_define([_LTDL_TYPE], [installable])])
8647 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8648 [m4_define([_LTDL_TYPE], [convenience])])
8649
8650 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8651 #
8652 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8653 # Written by Gary V. Vaughan, 2004
8654 #
8655 # This file is free software; the Free Software Foundation gives
8656 # unlimited permission to copy and/or distribute it, with or without
8657 # modifications, as long as this notice is preserved.
8658
8659 # serial 6 ltsugar.m4
8660
8661 # This is to help aclocal find these macros, as it can't see m4_define.
8662 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8663
8664
8665 # lt_join(SEP, ARG1, [ARG2...])
8666 # -----------------------------
8667 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8668 # associated separator.
8669 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8670 # versions in m4sugar had bugs.
8671 m4_define([lt_join],
8672 [m4_if([$#], [1], [],
8673 [$#], [2], [[$2]],
8674 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8675 m4_define([_lt_join],
8676 [m4_if([$#$2], [2], [],
8677 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8678
8679
8680 # lt_car(LIST)
8681 # lt_cdr(LIST)
8682 # ------------
8683 # Manipulate m4 lists.
8684 # These macros are necessary as long as will still need to support
8685 # Autoconf-2.59 which quotes differently.
8686 m4_define([lt_car], [[$1]])
8687 m4_define([lt_cdr],
8688 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8689 [$#], 1, [],
8690 [m4_dquote(m4_shift($@))])])
8691 m4_define([lt_unquote], $1)
8692
8693
8694 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8695 # ------------------------------------------
8696 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8697 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8698 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8699 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8700 # than defined and empty).
8701 #
8702 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8703 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8704 m4_define([lt_append],
8705 [m4_define([$1],
8706 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8707
8708
8709
8710 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8711 # ----------------------------------------------------------
8712 # Produce a SEP delimited list of all paired combinations of elements of
8713 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8714 # has the form PREFIXmINFIXSUFFIXn.
8715 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8716 m4_define([lt_combine],
8717 [m4_if(m4_eval([$# > 3]), [1],
8718 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8719 [[m4_foreach([_Lt_prefix], [$2],
8720 [m4_foreach([_Lt_suffix],
8721 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8722 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8723
8724
8725 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8726 # -----------------------------------------------------------------------
8727 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8728 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8729 m4_define([lt_if_append_uniq],
8730 [m4_ifdef([$1],
8731 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8732 [lt_append([$1], [$2], [$3])$4],
8733 [$5])],
8734 [lt_append([$1], [$2], [$3])$4])])
8735
8736
8737 # lt_dict_add(DICT, KEY, VALUE)
8738 # -----------------------------
8739 m4_define([lt_dict_add],
8740 [m4_define([$1($2)], [$3])])
8741
8742
8743 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8744 # --------------------------------------------
8745 m4_define([lt_dict_add_subkey],
8746 [m4_define([$1($2:$3)], [$4])])
8747
8748
8749 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8750 # ----------------------------------
8751 m4_define([lt_dict_fetch],
8752 [m4_ifval([$3],
8753 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8754 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8755
8756
8757 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8758 # -----------------------------------------------------------------
8759 m4_define([lt_if_dict_fetch],
8760 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8761 [$5],
8762 [$6])])
8763
8764
8765 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8766 # --------------------------------------------------------------
8767 m4_define([lt_dict_filter],
8768 [m4_if([$5], [], [],
8769 [lt_join(m4_quote(m4_default([$4], [[, ]])),
8770 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8771 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8772 ])
8773
8774 # ltversion.m4 -- version numbers -*- Autoconf -*-
8775 #
8776 # Copyright (C) 2004 Free Software Foundation, Inc.
8777 # Written by Scott James Remnant, 2004
8778 #
8779 # This file is free software; the Free Software Foundation gives
8780 # unlimited permission to copy and/or distribute it, with or without
8781 # modifications, as long as this notice is preserved.
8782
8783 # Generated from ltversion.in.
8784
8785 # serial 3175 ltversion.m4
8786 # This file is part of GNU Libtool
8787
8788 m4_define([LT_PACKAGE_VERSION], [2.2.10])
8789 m4_define([LT_PACKAGE_REVISION], [1.3175])
8790
8791 AC_DEFUN([LTVERSION_VERSION],
8792 [macro_version='2.2.10'
8793 macro_revision='1.3175'
8794 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8795 _LT_DECL(, macro_revision, 0)
8796 ])
8797
8798 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8799 #
8800 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8801 # Written by Scott James Remnant, 2004.
8802 #
8803 # This file is free software; the Free Software Foundation gives
8804 # unlimited permission to copy and/or distribute it, with or without
8805 # modifications, as long as this notice is preserved.
8806
8807 # serial 5 lt~obsolete.m4
8808
8809 # These exist entirely to fool aclocal when bootstrapping libtool.
8810 #
8811 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8812 # which have later been changed to m4_define as they aren't part of the
8813 # exported API, or moved to Autoconf or Automake where they belong.
8814 #
8815 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8816 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8817 # using a macro with the same name in our local m4/libtool.m4 it'll
8818 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8819 # and doesn't know about Autoconf macros at all.)
8820 #
8821 # So we provide this file, which has a silly filename so it's always
8822 # included after everything else. This provides aclocal with the
8823 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8824 # because those macros already exist, or will be overwritten later.
8825 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8826 #
8827 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8828 # Yes, that means every name once taken will need to remain here until
8829 # we give up compatibility with versions before 1.7, at which point
8830 # we need to keep only those names which we still refer to.
8831
8832 # This is to help aclocal find these macros, as it can't see m4_define.
8833 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8834
8835 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8836 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8837 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8838 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8839 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8840 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8841 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8842 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8843 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8844 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8845 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8846 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8847 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8848 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8849 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8850 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8851 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8852 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8853 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8854 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8855 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8856 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8857 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8858 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8859 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8860 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8861 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8862 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8863 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8864 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8865 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8866 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8867 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8868 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8869 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8870 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8871 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8872 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8873 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8874 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8875 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8876 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8877 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8878 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8879 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8880 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8881 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8882 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8883 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8884 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8885 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8886 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8887 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8888 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8889 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8890 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8891 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8892 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8893 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8894 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8895 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
8896
8897673 # nls.m4 serial 5 (gettext-0.18)
8898 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation,
674 dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 Free Software Foundation,
8899675 dnl Inc.
8900676 dnl This file is free software; the Free Software Foundation
8901677 dnl gives unlimited permission to copy and/or distribute it,
8955731 # ----------------------------------
8956732 AC_DEFUN([PKG_PROG_PKG_CONFIG],
8957733 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8958 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
734 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
735 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
8959736 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8960737 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8961738 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
9001778 pkg_cv_[]$1="$$1"
9002779 elif test -n "$PKG_CONFIG"; then
9003780 PKG_CHECK_EXISTS([$3],
9004 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
781 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
782 test "x$?" != "x0" && pkg_failed=yes ],
9005783 [pkg_failed=yes])
9006784 else
9007785 pkg_failed=untried
9049827 AC_MSG_RESULT([no])
9050828 _PKG_SHORT_ERRORS_SUPPORTED
9051829 if test $_pkg_short_errors_supported = yes; then
9052 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
830 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
9053831 else
9054 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
832 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
9055833 fi
9056834 # Put the nasty error message in config.log where it belongs
9057835 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9064842 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9065843 installed software in a non-standard prefix.
9066844
9067 _PKG_TEXT])
845 _PKG_TEXT])[]dnl
9068846 ])
9069847 elif test $pkg_failed = untried; then
9070848 AC_MSG_RESULT([no])
9075853
9076854 _PKG_TEXT
9077855
9078 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])
856 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
9079857 ])
9080858 else
9081859 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9085863 fi[]dnl
9086864 ])# PKG_CHECK_MODULES
9087865
9088 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
866
867 # PKG_INSTALLDIR(DIRECTORY)
868 # -------------------------
869 # Substitutes the variable pkgconfigdir as the location where a module
870 # should install pkg-config .pc files. By default the directory is
871 # $libdir/pkgconfig, but the default can be changed by passing
872 # DIRECTORY. The user can override through the --with-pkgconfigdir
873 # parameter.
874 AC_DEFUN([PKG_INSTALLDIR],
875 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
876 m4_pushdef([pkg_description],
877 [pkg-config installation directory @<:@]pkg_default[@:>@])
878 AC_ARG_WITH([pkgconfigdir],
879 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
880 [with_pkgconfigdir=]pkg_default)
881 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
882 m4_popdef([pkg_default])
883 m4_popdef([pkg_description])
884 ]) dnl PKG_INSTALLDIR
885
886
887 # PKG_NOARCH_INSTALLDIR(DIRECTORY)
888 # -------------------------
889 # Substitutes the variable noarch_pkgconfigdir as the location where a
890 # module should install arch-independent pkg-config .pc files. By
891 # default the directory is $datadir/pkgconfig, but the default can be
892 # changed by passing DIRECTORY. The user can override through the
893 # --with-noarch-pkgconfigdir parameter.
894 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
895 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
896 m4_pushdef([pkg_description],
897 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
898 AC_ARG_WITH([noarch-pkgconfigdir],
899 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
900 [with_noarch_pkgconfigdir=]pkg_default)
901 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
902 m4_popdef([pkg_default])
903 m4_popdef([pkg_description])
904 ]) dnl PKG_NOARCH_INSTALLDIR
905
906
907 # PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
908 # [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
909 # -------------------------------------------
910 # Retrieves the value of the pkg-config variable for the given module.
911 AC_DEFUN([PKG_CHECK_VAR],
912 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
913 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
914
915 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
916 AS_VAR_COPY([$1], [pkg_cv_][$1])
917
918 AS_VAR_IF([$1], [""], [$5], [$4])dnl
919 ])# PKG_CHECK_VAR
920
921 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
9089922 #
9090923 # This file is free software; the Free Software Foundation
9091924 # gives unlimited permission to copy and/or distribute it,
9097930 # generated from the m4 files accompanying Automake X.Y.
9098931 # (This private macro should not be called outside this file.)
9099932 AC_DEFUN([AM_AUTOMAKE_VERSION],
9100 [am__api_version='1.11'
933 [am__api_version='1.13'
9101934 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9102935 dnl require some minimum version. Point them to the right macro.
9103 m4_if([$1], [1.11.1], [],
936 m4_if([$1], [1.13.4], [],
9104937 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9105938 ])
9106939
9116949 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9117950 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9118951 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9119 [AM_AUTOMAKE_VERSION([1.11.1])dnl
952 [AM_AUTOMAKE_VERSION([1.13.4])dnl
9120953 m4_ifndef([AC_AUTOCONF_VERSION],
9121954 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9122955 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9123956
9124957 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
9125958
9126 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
959 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
9127960 #
9128961 # This file is free software; the Free Software Foundation
9129962 # gives unlimited permission to copy and/or distribute it,
9130963 # with or without modifications, as long as this notice is preserved.
9131964
9132965 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9133 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9134 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
966 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
967 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
9135968 #
9136969 # Of course, Automake must honor this variable whenever it calls a
9137970 # tool from the auxiliary directory. The problem is that $srcdir (and
9150983 #
9151984 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9152985 # are both prefixed by $srcdir. In an in-source build this is usually
9153 # harmless because $srcdir is `.', but things will broke when you
986 # harmless because $srcdir is '.', but things will broke when you
9154987 # start a VPATH build or use an absolute $srcdir.
9155988 #
9156989 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91761009
91771010 # AM_CONDITIONAL -*- Autoconf -*-
91781011
9179 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9180 # Free Software Foundation, Inc.
1012 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
91811013 #
91821014 # This file is free software; the Free Software Foundation
91831015 # gives unlimited permission to copy and/or distribute it,
91841016 # with or without modifications, as long as this notice is preserved.
9185
9186 # serial 9
91871017
91881018 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
91891019 # -------------------------------------
91901020 # Define a conditional.
91911021 AC_DEFUN([AM_CONDITIONAL],
9192 [AC_PREREQ(2.52)dnl
9193 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9194 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1022 [AC_PREREQ([2.52])dnl
1023 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1024 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
91951025 AC_SUBST([$1_TRUE])dnl
91961026 AC_SUBST([$1_FALSE])dnl
91971027 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
92101040 Usually this means the macro was only invoked conditionally.]])
92111041 fi])])
92121042
9213 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9214 # Free Software Foundation, Inc.
1043 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
92151044 #
92161045 # This file is free software; the Free Software Foundation
92171046 # gives unlimited permission to copy and/or distribute it,
92181047 # with or without modifications, as long as this notice is preserved.
92191048
9220 # serial 10
9221
9222 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1049
1050 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
92231051 # written in clear, in which case automake, when reading aclocal.m4,
92241052 # will think it sees a *use*, and therefore will trigger all it's
92251053 # C support machinery. Also note that it means that autoscan, seeing
92291057 # _AM_DEPENDENCIES(NAME)
92301058 # ----------------------
92311059 # See how the compiler implements dependency checking.
9232 # NAME is "CC", "CXX", "GCJ", or "OBJC".
1060 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
92331061 # We try a few techniques and use that to set a single cache variable.
92341062 #
92351063 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
92421070 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
92431071 AC_REQUIRE([AM_DEP_TRACK])dnl
92441072
9245 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9246 [$1], CXX, [depcc="$CXX" am_compiler_list=],
9247 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9248 [$1], UPC, [depcc="$UPC" am_compiler_list=],
9249 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9250 [depcc="$$1" am_compiler_list=])
1073 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
1074 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
1075 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1076 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
1077 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
1078 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1079 [depcc="$$1" am_compiler_list=])
92511080
92521081 AC_CACHE_CHECK([dependency style of $depcc],
92531082 [am_cv_$1_dependencies_compiler_type],
92551084 # We make a subdir and do the tests there. Otherwise we can end up
92561085 # making bogus files that we don't know about and never remove. For
92571086 # instance it was reported that on HP-UX the gcc test will end up
9258 # making a dummy file named `D' -- because `-MD' means `put the output
9259 # in D'.
1087 # making a dummy file named 'D' -- because '-MD' means "put the output
1088 # in D".
1089 rm -rf conftest.dir
92601090 mkdir conftest.dir
92611091 # Copy depcomp to subdir because otherwise we won't find it if we're
92621092 # using a relative directory.
92951125 : > sub/conftest.c
92961126 for i in 1 2 3 4 5 6; do
92971127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9298 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9299 # Solaris 8's {/usr,}/bin/sh.
9300 touch sub/conftst$i.h
1128 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
1129 # Solaris 10 /bin/sh.
1130 echo '/* dummy */' > sub/conftst$i.h
93011131 done
93021132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
93031133
9304 # We check with `-c' and `-o' for the sake of the "dashmstdout"
1134 # We check with '-c' and '-o' for the sake of the "dashmstdout"
93051135 # mode. It turns out that the SunPro C++ compiler does not properly
9306 # handle `-M -o', and we need to detect this. Also, some Intel
9307 # versions had trouble with output in subdirs
1136 # handle '-M -o', and we need to detect this. Also, some Intel
1137 # versions had trouble with output in subdirs.
93081138 am__obj=sub/conftest.${OBJEXT-o}
93091139 am__minus_obj="-o $am__obj"
93101140 case $depmode in
93131143 test "$am__universal" = false || continue
93141144 ;;
93151145 nosideeffect)
9316 # after this tag, mechanisms are not by side-effect, so they'll
9317 # only be used when explicitly requested
1146 # After this tag, mechanisms are not by side-effect, so they'll
1147 # only be used when explicitly requested.
93181148 if test "x$enable_dependency_tracking" = xyes; then
93191149 continue
93201150 else
93211151 break
93221152 fi
93231153 ;;
9324 msvisualcpp | msvcmsys)
9325 # This compiler won't grok `-c -o', but also, the minuso test has
1154 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
1155 # This compiler won't grok '-c -o', but also, the minuso test has
93261156 # not run yet. These depmodes are late enough in the game, and
93271157 # so weak that their functioning should not be impacted.
93281158 am__obj=conftest.${OBJEXT-o}
93701200 # AM_SET_DEPDIR
93711201 # -------------
93721202 # Choose a directory name for dependency files.
9373 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
1203 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
93741204 AC_DEFUN([AM_SET_DEPDIR],
93751205 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
93761206 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
93801210 # AM_DEP_TRACK
93811211 # ------------
93821212 AC_DEFUN([AM_DEP_TRACK],
9383 [AC_ARG_ENABLE(dependency-tracking,
9384 [ --disable-dependency-tracking speeds up one-time build
9385 --enable-dependency-tracking do not reject slow dependency extractors])
1213 [AC_ARG_ENABLE([dependency-tracking], [dnl
1214 AS_HELP_STRING(
1215 [--enable-dependency-tracking],
1216 [do not reject slow dependency extractors])
1217 AS_HELP_STRING(
1218 [--disable-dependency-tracking],
1219 [speeds up one-time build])])
93861220 if test "x$enable_dependency_tracking" != xno; then
93871221 am_depcomp="$ac_aux_dir/depcomp"
93881222 AMDEPBACKSLASH='\'
1223 am__nodep='_no'
93891224 fi
93901225 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
93911226 AC_SUBST([AMDEPBACKSLASH])dnl
93921227 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1228 AC_SUBST([am__nodep])dnl
1229 _AM_SUBST_NOTMAKE([am__nodep])dnl
93931230 ])
93941231
93951232 # Generate code to set up dependency tracking. -*- Autoconf -*-
93961233
9397 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9398 # Free Software Foundation, Inc.
1234 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
93991235 #
94001236 # This file is free software; the Free Software Foundation
94011237 # gives unlimited permission to copy and/or distribute it,
94021238 # with or without modifications, as long as this notice is preserved.
94031239
9404 #serial 5
94051240
94061241 # _AM_OUTPUT_DEPENDENCY_COMMANDS
94071242 # ------------------------------
94081243 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
94091244 [{
9410 # Autoconf 2.62 quotes --file arguments for eval, but not when files
1245 # Older Autoconf quotes --file arguments for eval, but not when files
94111246 # are listed without --file. Let's play safe and only enable the eval
94121247 # if we detect the quoting.
94131248 case $CONFIG_FILES in
94201255 # Strip MF so we end up with the name of the file.
94211256 mf=`echo "$mf" | sed -e 's/:.*$//'`
94221257 # Check whether this is an Automake generated Makefile or not.
9423 # We used to match only the files named `Makefile.in', but
1258 # We used to match only the files named 'Makefile.in', but
94241259 # some people rename them; so instead we look at the file content.
94251260 # Grep'ing the first line is not enough: some people post-process
94261261 # each Makefile.in and add a new line on top of each file to say so.
94321267 continue
94331268 fi
94341269 # Extract the definition of DEPDIR, am__include, and am__quote
9435 # from the Makefile without running `make'.
1270 # from the Makefile without running 'make'.
94361271 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
94371272 test -z "$DEPDIR" && continue
94381273 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9439 test -z "am__include" && continue
1274 test -z "$am__include" && continue
94401275 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9441 # When using ansi2knr, U may be empty or an underscore; expand it
9442 U=`sed -n 's/^U = //p' < "$mf"`
94431276 # Find all dependency output files, they are included files with
94441277 # $(DEPDIR) in their names. We invoke sed twice because it is the
94451278 # simplest approach to changing $(DEPDIR) to its actual value in the
94461279 # expansion.
94471280 for file in `sed -n "
94481281 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9449 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1282 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
94501283 # Make sure the directory exists.
94511284 test -f "$dirpart/$file" && continue
94521285 fdir=`AS_DIRNAME(["$file"])`
94641297 # This macro should only be invoked once -- use via AC_REQUIRE.
94651298 #
94661299 # This code is only required when automatic dependency tracking
9467 # is enabled. FIXME. This creates each `.P' file that we will
1300 # is enabled. FIXME. This creates each '.P' file that we will
94681301 # need in order to bootstrap the dependency handling code.
94691302 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
94701303 [AC_CONFIG_COMMANDS([depfiles],
94741307
94751308 # Do all the work for Automake. -*- Autoconf -*-
94761309
9477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9478 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
1310 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
94791311 #
94801312 # This file is free software; the Free Software Foundation
94811313 # gives unlimited permission to copy and/or distribute it,
94821314 # with or without modifications, as long as this notice is preserved.
9483
9484 # serial 16
94851315
94861316 # This macro actually does too much. Some checks are only needed if
94871317 # your package does certain things. But this isn't really a big deal.
94981328 # arguments mandatory, and then we can depend on a new Autoconf
94991329 # release and drop the old call support.
95001330 AC_DEFUN([AM_INIT_AUTOMAKE],
9501 [AC_PREREQ([2.62])dnl
1331 [AC_PREREQ([2.65])dnl
95021332 dnl Autoconf wants to disallow AM_ names. We explicitly allow
95031333 dnl the ones we care about.
95041334 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
95271357 # Define the identity of the package.
95281358 dnl Distinguish between old-style and new-style calls.
95291359 m4_ifval([$2],
9530 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1360 [AC_DIAGNOSE([obsolete],
1361 [$0: two- and three-arguments forms are deprecated.])
1362 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
95311363 AC_SUBST([PACKAGE], [$1])dnl
95321364 AC_SUBST([VERSION], [$2])],
95331365 [_AM_SET_OPTIONS([$1])dnl
95341366 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9535 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1367 m4_if(
1368 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
1369 [ok:ok],,
95361370 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
95371371 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
95381372 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
95391373
95401374 _AM_IF_OPTION([no-define],,
9541 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9542 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1375 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
1376 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
95431377
95441378 # Some tools Automake needs.
95451379 AC_REQUIRE([AM_SANITY_CHECK])dnl
95461380 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9547 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9548 AM_MISSING_PROG(AUTOCONF, autoconf)
9549 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9550 AM_MISSING_PROG(AUTOHEADER, autoheader)
9551 AM_MISSING_PROG(MAKEINFO, makeinfo)
1381 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
1382 AM_MISSING_PROG([AUTOCONF], [autoconf])
1383 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
1384 AM_MISSING_PROG([AUTOHEADER], [autoheader])
1385 AM_MISSING_PROG([MAKEINFO], [makeinfo])
95521386 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
95531387 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9554 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1388 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1389 # For better backward compatibility. To be removed once Automake 1.9.x
1390 # dies out for good. For more background, see:
1391 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
1392 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
1393 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
95551394 # We need awk for the "check" target. The system "awk" is bad on
95561395 # some platforms.
95571396 AC_REQUIRE([AC_PROG_AWK])dnl
95621401 [_AM_PROG_TAR([v7])])])
95631402 _AM_IF_OPTION([no-dependencies],,
95641403 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9565 [_AM_DEPENDENCIES(CC)],
9566 [define([AC_PROG_CC],
9567 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1404 [_AM_DEPENDENCIES([CC])],
1405 [m4_define([AC_PROG_CC],
1406 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
95681407 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9569 [_AM_DEPENDENCIES(CXX)],
9570 [define([AC_PROG_CXX],
9571 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1408 [_AM_DEPENDENCIES([CXX])],
1409 [m4_define([AC_PROG_CXX],
1410 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
95721411 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9573 [_AM_DEPENDENCIES(OBJC)],
9574 [define([AC_PROG_OBJC],
9575 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1412 [_AM_DEPENDENCIES([OBJC])],
1413 [m4_define([AC_PROG_OBJC],
1414 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
1415 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
1416 [_AM_DEPENDENCIES([OBJCXX])],
1417 [m4_define([AC_PROG_OBJCXX],
1418 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
95761419 ])
9577 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9578 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9579 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9580 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
1420 AC_REQUIRE([AM_SILENT_RULES])dnl
1421 dnl The testsuite driver may need to know about EXEEXT, so add the
1422 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
1423 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
95811424 AC_CONFIG_COMMANDS_PRE(dnl
95821425 [m4_provide_if([_AM_COMPILER_EXEEXT],
95831426 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
95841427 ])
95851428
9586 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
1429 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
95871430 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
95881431 dnl mangled by Autoconf and run in a shell conditional statement.
95891432 m4_define([_AC_COMPILER_EXEEXT],
96111454 done
96121455 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
96131456
9614 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
1457 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
96151458 #
96161459 # This file is free software; the Free Software Foundation
96171460 # gives unlimited permission to copy and/or distribute it,
96301473 install_sh="\${SHELL} $am_aux_dir/install-sh"
96311474 esac
96321475 fi
9633 AC_SUBST(install_sh)])
9634
9635 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1476 AC_SUBST([install_sh])])
1477
1478 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
96361479 #
96371480 # This file is free software; the Free Software Foundation
96381481 # gives unlimited permission to copy and/or distribute it,
96391482 # with or without modifications, as long as this notice is preserved.
9640
9641 # serial 2
96421483
96431484 # Check whether the underlying file-system supports filenames
96441485 # with a leading dot. For instance MS-DOS doesn't.
96561497 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
96571498 # From Jim Meyering
96581499
9659 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9660 # Free Software Foundation, Inc.
1500 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
96611501 #
96621502 # This file is free software; the Free Software Foundation
96631503 # gives unlimited permission to copy and/or distribute it,
96641504 # with or without modifications, as long as this notice is preserved.
96651505
9666 # serial 5
9667
96681506 # AM_MAINTAINER_MODE([DEFAULT-MODE])
96691507 # ----------------------------------
96701508 # Control maintainer-specific portions of Makefiles.
9671 # Default is to disable them, unless `enable' is passed literally.
9672 # For symmetry, `disable' may be passed as well. Anyway, the user
1509 # Default is to disable them, unless 'enable' is passed literally.
1510 # For symmetry, 'disable' may be passed as well. Anyway, the user
96731511 # can override the default with the --enable/--disable switch.
96741512 AC_DEFUN([AM_MAINTAINER_MODE],
96751513 [m4_case(m4_default([$1], [disable]),
96771515 [disable], [m4_define([am_maintainer_other], [enable])],
96781516 [m4_define([am_maintainer_other], [enable])
96791517 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9680 AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
1518 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
96811519 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
96821520 AC_ARG_ENABLE([maintainer-mode],
9683 [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
9684 (and sometimes confusing) to the casual installer],
9685 [USE_MAINTAINER_MODE=$enableval],
9686 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
1521 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
1522 am_maintainer_other[ make rules and dependencies not useful
1523 (and sometimes confusing) to the casual installer])],
1524 [USE_MAINTAINER_MODE=$enableval],
1525 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
96871526 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
96881527 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
96891528 MAINT=$MAINTAINER_MODE_TRUE
96911530 ]
96921531 )
96931532
9694 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9695
96961533 # Check to see how 'make' treats includes. -*- Autoconf -*-
96971534
9698 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
1535 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
96991536 #
97001537 # This file is free software; the Free Software Foundation
97011538 # gives unlimited permission to copy and/or distribute it,
97021539 # with or without modifications, as long as this notice is preserved.
9703
9704 # serial 4
97051540
97061541 # AM_MAKE_INCLUDE()
97071542 # -----------------
97201555 _am_result=none
97211556 # First try GNU make style include.
97221557 echo "include confinc" > confmf
9723 # Ignore all kinds of additional output from `make'.
1558 # Ignore all kinds of additional output from 'make'.
97241559 case `$am_make -s -f confmf 2> /dev/null` in #(
97251560 *the\ am__doit\ target*)
97261561 am__include=include
97451580 rm -f confinc confmf
97461581 ])
97471582
9748 # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
9749 # Free Software Foundation, Inc.
1583 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
97501584 #
97511585 # This file is free software; the Free Software Foundation
97521586 # gives unlimited permission to copy and/or distribute it,
97531587 # with or without modifications, as long as this notice is preserved.
9754
9755 # serial 6
97561588
97571589 # AM_PROG_CC_C_O
97581590 # --------------
97821614
97831615 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
97841616
9785 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9786 # Free Software Foundation, Inc.
1617 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
97871618 #
97881619 # This file is free software; the Free Software Foundation
97891620 # gives unlimited permission to copy and/or distribute it,
97901621 # with or without modifications, as long as this notice is preserved.
9791
9792 # serial 6
97931622
97941623 # AM_MISSING_PROG(NAME, PROGRAM)
97951624 # ------------------------------
97981627 $1=${$1-"${am_missing_run}$2"}
97991628 AC_SUBST($1)])
98001629
9801
98021630 # AM_MISSING_HAS_RUN
98031631 # ------------------
9804 # Define MISSING if not defined so far and test if it supports --run.
9805 # If it does, set am_missing_run to use it, otherwise, to nothing.
1632 # Define MISSING if not defined so far and test if it is modern enough.
1633 # If it is, set am_missing_run to use it, otherwise, to nothing.
98061634 AC_DEFUN([AM_MISSING_HAS_RUN],
98071635 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
98081636 AC_REQUIRE_AUX_FILE([missing])dnl
98151643 esac
98161644 fi
98171645 # Use eval to expand $SHELL
9818 if eval "$MISSING --run true"; then
9819 am_missing_run="$MISSING --run "
1646 if eval "$MISSING --is-lightweight"; then
1647 am_missing_run="$MISSING "
98201648 else
98211649 am_missing_run=
9822 AC_MSG_WARN([`missing' script is too old or missing])
1650 AC_MSG_WARN(['missing' script is too old or missing])
98231651 fi
98241652 ])
98251653
9826 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1654 # Helper functions for option handling. -*- Autoconf -*-
1655
1656 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
98271657 #
98281658 # This file is free software; the Free Software Foundation
98291659 # gives unlimited permission to copy and/or distribute it,
98301660 # with or without modifications, as long as this notice is preserved.
9831
9832 # AM_PROG_MKDIR_P
9833 # ---------------
9834 # Check for `mkdir -p'.
9835 AC_DEFUN([AM_PROG_MKDIR_P],
9836 [AC_PREREQ([2.60])dnl
9837 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9838 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9839 dnl while keeping a definition of mkdir_p for backward compatibility.
9840 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9841 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9842 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9843 dnl adjustment using top_builddir (which is defined more often than
9844 dnl MKDIR_P).
9845 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9846 case $mkdir_p in
9847 [[\\/$]]* | ?:[[\\/]]*) ;;
9848 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9849 esac
9850 ])
9851
9852 # Helper functions for option handling. -*- Autoconf -*-
9853
9854 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9855 #
9856 # This file is free software; the Free Software Foundation
9857 # gives unlimited permission to copy and/or distribute it,
9858 # with or without modifications, as long as this notice is preserved.
9859
9860 # serial 4
98611661
98621662 # _AM_MANGLE_OPTION(NAME)
98631663 # -----------------------
98651665 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
98661666
98671667 # _AM_SET_OPTION(NAME)
9868 # ------------------------------
1668 # --------------------
98691669 # Set option NAME. Presently that only means defining a flag for this option.
98701670 AC_DEFUN([_AM_SET_OPTION],
9871 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1671 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
98721672
98731673 # _AM_SET_OPTIONS(OPTIONS)
9874 # ----------------------------------
1674 # ------------------------
98751675 # OPTIONS is a space-separated list of Automake options.
98761676 AC_DEFUN([_AM_SET_OPTIONS],
98771677 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
98841684
98851685 # Check to make sure that the build environment is sane. -*- Autoconf -*-
98861686
9887 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9888 # Free Software Foundation, Inc.
1687 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
98891688 #
98901689 # This file is free software; the Free Software Foundation
98911690 # gives unlimited permission to copy and/or distribute it,
98921691 # with or without modifications, as long as this notice is preserved.
9893
9894 # serial 5
98951692
98961693 # AM_SANITY_CHECK
98971694 # ---------------
98981695 AC_DEFUN([AM_SANITY_CHECK],
98991696 [AC_MSG_CHECKING([whether build environment is sane])
9900 # Just in case
9901 sleep 1
9902 echo timestamp > conftest.file
99031697 # Reject unsafe characters in $srcdir or the absolute working directory
99041698 # name. Accept space and tab only in the latter.
99051699 am_lf='
99101704 esac
99111705 case $srcdir in
99121706 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9913 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
1707 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
99141708 esac
99151709
9916 # Do `set' in a subshell so we don't clobber the current shell's
1710 # Do 'set' in a subshell so we don't clobber the current shell's
99171711 # arguments. Must try -L first in case configure is actually a
99181712 # symlink; some systems play weird games with the mod time of symlinks
99191713 # (eg FreeBSD returns the mod time of the symlink's containing
99201714 # directory).
99211715 if (
9922 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9923 if test "$[*]" = "X"; then
9924 # -L didn't work.
9925 set X `ls -t "$srcdir/configure" conftest.file`
9926 fi
9927 rm -f conftest.file
9928 if test "$[*]" != "X $srcdir/configure conftest.file" \
9929 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9930
9931 # If neither matched, then we have a broken ls. This can happen
9932 # if, for instance, CONFIG_SHELL is bash and it inherits a
9933 # broken ls alias from the environment. This has actually
9934 # happened. Such a system could not be considered "sane".
9935 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9936 alias in your environment])
9937 fi
9938
1716 am_has_slept=no
1717 for am_try in 1 2; do
1718 echo "timestamp, slept: $am_has_slept" > conftest.file
1719 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1720 if test "$[*]" = "X"; then
1721 # -L didn't work.
1722 set X `ls -t "$srcdir/configure" conftest.file`
1723 fi
1724 if test "$[*]" != "X $srcdir/configure conftest.file" \
1725 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1726
1727 # If neither matched, then we have a broken ls. This can happen
1728 # if, for instance, CONFIG_SHELL is bash and it inherits a
1729 # broken ls alias from the environment. This has actually
1730 # happened. Such a system could not be considered "sane".
1731 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1732 alias in your environment])
1733 fi
1734 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1735 break
1736 fi
1737 # Just in case.
1738 sleep 1
1739 am_has_slept=yes
1740 done
99391741 test "$[2]" = conftest.file
99401742 )
99411743 then
99451747 AC_MSG_ERROR([newly created file is older than distributed files!
99461748 Check your system clock])
99471749 fi
9948 AC_MSG_RESULT(yes)])
9949
9950 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1750 AC_MSG_RESULT([yes])
1751 # If we didn't sleep, we still need to ensure time stamps of config.status and
1752 # generated files are strictly newer.
1753 am_sleep_pid=
1754 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1755 ( sleep 1 ) &
1756 am_sleep_pid=$!
1757 fi
1758 AC_CONFIG_COMMANDS_PRE(
1759 [AC_MSG_CHECKING([that generated files are newer than configure])
1760 if test -n "$am_sleep_pid"; then
1761 # Hide warnings about reused PIDs.
1762 wait $am_sleep_pid 2>/dev/null
1763 fi
1764 AC_MSG_RESULT([done])])
1765 rm -f conftest.file
1766 ])
1767
1768 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
99511769 #
99521770 # This file is free software; the Free Software Foundation
99531771 # gives unlimited permission to copy and/or distribute it,
99541772 # with or without modifications, as long as this notice is preserved.
99551773
1774 # AM_SILENT_RULES([DEFAULT])
1775 # --------------------------
1776 # Enable less verbose build rules; with the default set to DEFAULT
1777 # ("yes" being less verbose, "no" or empty being verbose).
1778 AC_DEFUN([AM_SILENT_RULES],
1779 [AC_ARG_ENABLE([silent-rules], [dnl
1780 AS_HELP_STRING(
1781 [--enable-silent-rules],
1782 [less verbose build output (undo: "make V=1")])
1783 AS_HELP_STRING(
1784 [--disable-silent-rules],
1785 [verbose build output (undo: "make V=0")])dnl
1786 ])
1787 case $enable_silent_rules in @%:@ (((
1788 yes) AM_DEFAULT_VERBOSITY=0;;
1789 no) AM_DEFAULT_VERBOSITY=1;;
1790 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1791 esac
1792 dnl
1793 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1794 dnl do not support nested variable expansions.
1795 dnl See automake bug#9928 and bug#10237.
1796 am_make=${MAKE-make}
1797 AC_CACHE_CHECK([whether $am_make supports nested variables],
1798 [am_cv_make_support_nested_variables],
1799 [if AS_ECHO([['TRUE=$(BAR$(V))
1800 BAR0=false
1801 BAR1=true
1802 V=1
1803 am__doit:
1804 @$(TRUE)
1805 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1806 am_cv_make_support_nested_variables=yes
1807 else
1808 am_cv_make_support_nested_variables=no
1809 fi])
1810 if test $am_cv_make_support_nested_variables = yes; then
1811 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1812 AM_V='$(V)'
1813 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1814 else
1815 AM_V=$AM_DEFAULT_VERBOSITY
1816 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1817 fi
1818 AC_SUBST([AM_V])dnl
1819 AM_SUBST_NOTMAKE([AM_V])dnl
1820 AC_SUBST([AM_DEFAULT_V])dnl
1821 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1822 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1823 AM_BACKSLASH='\'
1824 AC_SUBST([AM_BACKSLASH])dnl
1825 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1826 ])
1827
1828 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1829 #
1830 # This file is free software; the Free Software Foundation
1831 # gives unlimited permission to copy and/or distribute it,
1832 # with or without modifications, as long as this notice is preserved.
1833
99561834 # AM_PROG_INSTALL_STRIP
99571835 # ---------------------
9958 # One issue with vendor `install' (even GNU) is that you can't
1836 # One issue with vendor 'install' (even GNU) is that you can't
99591837 # specify the program used to strip binaries. This is especially
99601838 # annoying in cross-compiling environments, where the build's strip
99611839 # is unlikely to handle the host's binaries.
99621840 # Fortunately install-sh will honor a STRIPPROG variable, so we
9963 # always use install-sh in `make install-strip', and initialize
1841 # always use install-sh in "make install-strip", and initialize
99641842 # STRIPPROG with the value of the STRIP variable (set by the user).
99651843 AC_DEFUN([AM_PROG_INSTALL_STRIP],
99661844 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9967 # Installed binaries are usually stripped using `strip' when the user
9968 # run `make install-strip'. However `strip' might not be the right
1845 # Installed binaries are usually stripped using 'strip' when the user
1846 # run "make install-strip". However 'strip' might not be the right
99691847 # tool to use in cross-compilation environments, therefore Automake
9970 # will honor the `STRIP' environment variable to overrule this program.
9971 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1848 # will honor the 'STRIP' environment variable to overrule this program.
1849 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
99721850 if test "$cross_compiling" != no; then
99731851 AC_CHECK_TOOL([STRIP], [strip], :)
99741852 fi
99751853 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
99761854 AC_SUBST([INSTALL_STRIP_PROGRAM])])
99771855
9978 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
1856 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
99791857 #
99801858 # This file is free software; the Free Software Foundation
99811859 # gives unlimited permission to copy and/or distribute it,
99821860 # with or without modifications, as long as this notice is preserved.
9983
9984 # serial 2
99851861
99861862 # _AM_SUBST_NOTMAKE(VARIABLE)
99871863 # ---------------------------
99901866 AC_DEFUN([_AM_SUBST_NOTMAKE])
99911867
99921868 # AM_SUBST_NOTMAKE(VARIABLE)
9993 # ---------------------------
1869 # --------------------------
99941870 # Public sister of _AM_SUBST_NOTMAKE.
99951871 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
99961872
99971873 # Check how to create a tarball. -*- Autoconf -*-
99981874
9999 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1875 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
100001876 #
100011877 # This file is free software; the Free Software Foundation
100021878 # gives unlimited permission to copy and/or distribute it,
100031879 # with or without modifications, as long as this notice is preserved.
100041880
10005 # serial 2
10006
100071881 # _AM_PROG_TAR(FORMAT)
100081882 # --------------------
100091883 # Check how to create a tarball in format FORMAT.
10010 # FORMAT should be one of `v7', `ustar', or `pax'.
1884 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
100111885 #
100121886 # Substitute a variable $(am__tar) that is a command
100131887 # writing to stdout a FORMAT-tarball containing the directory
100171891 # Substitute a variable $(am__untar) that extract such
100181892 # a tarball read from stdin.
100191893 # $(am__untar) < result.tar
1894 #
100201895 AC_DEFUN([_AM_PROG_TAR],
10021 [# Always define AMTAR for backward compatibility.
10022 AM_MISSING_PROG([AMTAR], [tar])
1896 [# Always define AMTAR for backward compatibility. Yes, it's still used
1897 # in the wild :-( We should find a proper way to deprecate it ...
1898 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1899
1900 # We'll loop over all known methods to create a tar archive until one works.
1901 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1902
100231903 m4_if([$1], [v7],
10024 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10025 [m4_case([$1], [ustar],, [pax],,
10026 [m4_fatal([Unknown tar format])])
10027 AC_MSG_CHECKING([how to create a $1 tar archive])
10028 # Loop over all known methods to create a tar archive until one works.
10029 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10030 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10031 # Do not fold the above two line into one, because Tru64 sh and
10032 # Solaris sh will not grok spaces in the rhs of `-'.
10033 for _am_tool in $_am_tools
10034 do
10035 case $_am_tool in
10036 gnutar)
10037 for _am_tar in tar gnutar gtar;
10038 do
10039 AM_RUN_LOG([$_am_tar --version]) && break
10040 done
10041 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10042 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10043 am__untar="$_am_tar -xf -"
10044 ;;
10045 plaintar)
10046 # Must skip GNU tar: if it does not support --format= it doesn't create
10047 # ustar tarball either.
10048 (tar --version) >/dev/null 2>&1 && continue
10049 am__tar='tar chf - "$$tardir"'
10050 am__tar_='tar chf - "$tardir"'
10051 am__untar='tar xf -'
10052 ;;
10053 pax)
10054 am__tar='pax -L -x $1 -w "$$tardir"'
10055 am__tar_='pax -L -x $1 -w "$tardir"'
10056 am__untar='pax -r'
10057 ;;
10058 cpio)
10059 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10060 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10061 am__untar='cpio -i -H $1 -d'
10062 ;;
10063 none)
10064 am__tar=false
10065 am__tar_=false
10066 am__untar=false
10067 ;;
10068 esac
10069
10070 # If the value was cached, stop now. We just wanted to have am__tar
10071 # and am__untar set.
10072 test -n "${am_cv_prog_tar_$1}" && break
10073
10074 # tar/untar a dummy directory, and stop if the command works
1904 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1905
1906 [m4_case([$1],
1907 [ustar],
1908 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1909 # There is notably a 21 bits limit for the UID and the GID. In fact,
1910 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1911 # and bug#13588).
1912 am_max_uid=2097151 # 2^21 - 1
1913 am_max_gid=$am_max_uid
1914 # The $UID and $GID variables are not portable, so we need to resort
1915 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1916 # below are definitely unexpected, so allow the users to see them
1917 # (that is, avoid stderr redirection).
1918 am_uid=`id -u || echo unknown`
1919 am_gid=`id -g || echo unknown`
1920 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1921 if test $am_uid -le $am_max_uid; then
1922 AC_MSG_RESULT([yes])
1923 else
1924 AC_MSG_RESULT([no])
1925 _am_tools=none
1926 fi
1927 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1928 if test $am_gid -le $am_max_gid; then
1929 AC_MSG_RESULT([yes])
1930 else
1931 AC_MSG_RESULT([no])
1932 _am_tools=none
1933 fi],
1934
1935 [pax],
1936 [],
1937
1938 [m4_fatal([Unknown tar format])])
1939
1940 AC_MSG_CHECKING([how to create a $1 tar archive])
1941
1942 # Go ahead even if we have the value already cached. We do so because we
1943 # need to set the values for the 'am__tar' and 'am__untar' variables.
1944 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1945
1946 for _am_tool in $_am_tools; do
1947 case $_am_tool in
1948 gnutar)
1949 for _am_tar in tar gnutar gtar; do
1950 AM_RUN_LOG([$_am_tar --version]) && break
1951 done
1952 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1953 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1954 am__untar="$_am_tar -xf -"
1955 ;;
1956 plaintar)
1957 # Must skip GNU tar: if it does not support --format= it doesn't create
1958 # ustar tarball either.
1959 (tar --version) >/dev/null 2>&1 && continue
1960 am__tar='tar chf - "$$tardir"'
1961 am__tar_='tar chf - "$tardir"'
1962 am__untar='tar xf -'
1963 ;;
1964 pax)
1965 am__tar='pax -L -x $1 -w "$$tardir"'
1966 am__tar_='pax -L -x $1 -w "$tardir"'
1967 am__untar='pax -r'
1968 ;;
1969 cpio)
1970 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1971 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1972 am__untar='cpio -i -H $1 -d'
1973 ;;
1974 none)
1975 am__tar=false
1976 am__tar_=false
1977 am__untar=false
1978 ;;
1979 esac
1980
1981 # If the value was cached, stop now. We just wanted to have am__tar
1982 # and am__untar set.
1983 test -n "${am_cv_prog_tar_$1}" && break
1984
1985 # tar/untar a dummy directory, and stop if the command works.
1986 rm -rf conftest.dir
1987 mkdir conftest.dir
1988 echo GrepMe > conftest.dir/file
1989 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1990 rm -rf conftest.dir
1991 if test -s conftest.tar; then
1992 AM_RUN_LOG([$am__untar <conftest.tar])
1993 AM_RUN_LOG([cat conftest.dir/file])
1994 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1995 fi
1996 done
100751997 rm -rf conftest.dir
10076 mkdir conftest.dir
10077 echo GrepMe > conftest.dir/file
10078 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10079 rm -rf conftest.dir
10080 if test -s conftest.tar; then
10081 AM_RUN_LOG([$am__untar <conftest.tar])
10082 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10083 fi
10084 done
10085 rm -rf conftest.dir
10086
10087 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10088 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1998
1999 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
2000 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
2001
100892002 AC_SUBST([am__tar])
100902003 AC_SUBST([am__untar])
100912004 ]) # _AM_PROG_TAR
100922005
2006 m4_include([m4/intltool.m4])
2007 m4_include([m4/libtool.m4])
2008 m4_include([m4/ltoptions.m4])
2009 m4_include([m4/ltsugar.m4])
2010 m4_include([m4/ltversion.m4])
2011 m4_include([m4/lt~obsolete.m4])
00 #! /bin/sh
1 # Wrapper for compilers which do not understand `-c -o'.
2
3 scriptversion=2009-10-06.20; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
6 # Foundation, Inc.
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
76 # Written by Tom Tromey <tromey@cygnus.com>.
87 #
98 # This program is free software; you can redistribute it and/or modify
2827 # bugs to <bug-automake@gnu.org> or send patches to
2928 # <automake-patches@gnu.org>.
3029
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
31233 case $1 in
32234 '')
33 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
34236 exit 1;
35237 ;;
36238 -h | --h*)
37239 cat <<\EOF
38240 Usage: compile [--help] [--version] PROGRAM [ARGS]
39241
40 Wrapper for compilers which do not understand `-c -o'.
41 Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
42244 arguments, and rename the output as expected.
43245
44246 If you are trying to build a whole package this is not the
45 right script to run: please start by reading the file `INSTALL'.
247 right script to run: please start by reading the file 'INSTALL'.
46248
47249 Report bugs to <bug-automake@gnu.org>.
48250 EOF
52254 echo "compile $scriptversion"
53255 exit $?
54256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
55260 esac
56261
57262 ofile=
58263 cfile=
59 eat=
60264
61265 for arg
62266 do
65269 else
66270 case $1 in
67271 -o)
68 # configure might choose to run compile as `compile cc -o foo foo.c'.
69 # So we strip `-o arg' only if arg is an object.
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
70274 eat=1
71275 case $2 in
72276 *.o | *.obj)
93297 done
94298
95299 if test -z "$ofile" || test -z "$cfile"; then
96 # If no `-o' option was seen then we might have been invoked from a
300 # If no '-o' option was seen then we might have been invoked from a
97301 # pattern rule where we don't need one. That is ok -- this is a
98302 # normal compilation that the losing compiler can handle. If no
99 # `.c' file was seen then we are probably linking. That is also
303 # '.c' file was seen then we are probably linking. That is also
100304 # ok.
101305 exec "$@"
102306 fi
105309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
106310
107311 # Create the lock directory.
108 # Note: use `[/\\:.-]' here to ensure that we don't use the same name
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
109313 # that we are using for the .o file. Also, base the name on the expected
110314 # object file name, since that is what matters with a parallel build.
111315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-11-20'
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012, 2013 Free Software Foundation, Inc.
5
6 timestamp='2012-12-29'
77
88 # This file is free software; you can redistribute it and/or modify it
99 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
10 # the Free Software Foundation; either version 3 of the License, or
1111 # (at your option) any later version.
1212 #
1313 # This program is distributed in the hope that it will be useful, but
1616 # General Public License for more details.
1717 #
1818 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2220 #
2321 # As a special exception to the GNU General Public License, if you
2422 # distribute this file as part of a program that contains a
2523 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner. Please send patches (context
30 # diff format) to <config-patches@gnu.org> and include a ChangeLog
31 # entry.
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
3227 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
28 # Originally written by Per Bothner.
3629 #
3730 # You can get the latest version of this script from:
3831 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
32 #
33 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
34
3935
4036 me=`echo "$0" | sed -e 's,.*/,,'`
4137
5551 GNU config.guess ($timestamp)
5652
5753 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
54 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
55 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
56 2012, 2013 Free Software Foundation, Inc.
6057
6158 This is free software; see the source for copying conditions. There is NO
6259 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
143140 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144141 *:NetBSD:*:*)
145142 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
143 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
147144 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148145 # switched to ELF, *-*-netbsd* would select the old
149146 # object file format. This provides both forward
179176 fi
180177 ;;
181178 *)
182 os=netbsd
179 os=netbsd
183180 ;;
184181 esac
185182 # The OS release
200197 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201198 echo "${machine}-${os}${release}"
202199 exit ;;
200 *:Bitrig:*:*)
201 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
202 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
203 exit ;;
203204 *:OpenBSD:*:*)
204205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
222223 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223224 ;;
224225 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226227 ;;
227228 esac
228229 # According to Compaq, /usr/sbin/psrinfo has been available on
268269 # A Xn.n version is an unreleased experimental baselevel.
269270 # 1.2 uses "1.2" for uname -r.
270271 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
272 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
273 exitcode=$?
274 trap '' 0
275 exit $exitcode ;;
272276 Alpha\ *:Windows_NT*:*)
273277 # How do we know it's Interix rather than the generic POSIX subsystem?
274278 # Should we change UNAME_MACHINE based on the output of uname instead
294298 echo s390-ibm-zvmoe
295299 exit ;;
296300 *:OS400:*:*)
297 echo powerpc-ibm-os400
301 echo powerpc-ibm-os400
298302 exit ;;
299303 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300304 echo arm-acorn-riscix${UNAME_RELEASE}
301305 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
306 arm*:riscos:*:*|arm*:RISCOS:*:*)
303307 echo arm-unknown-riscos
304308 exit ;;
305309 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
393397 # MiNT. But MiNT is downward compatible to TOS, so this should
394398 # be no problem.
395399 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
396 echo m68k-atari-mint${UNAME_RELEASE}
400 echo m68k-atari-mint${UNAME_RELEASE}
397401 exit ;;
398402 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
399403 echo m68k-atari-mint${UNAME_RELEASE}
400 exit ;;
404 exit ;;
401405 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
402 echo m68k-atari-mint${UNAME_RELEASE}
406 echo m68k-atari-mint${UNAME_RELEASE}
403407 exit ;;
404408 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
405 echo m68k-milan-mint${UNAME_RELEASE}
406 exit ;;
409 echo m68k-milan-mint${UNAME_RELEASE}
410 exit ;;
407411 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
408 echo m68k-hades-mint${UNAME_RELEASE}
409 exit ;;
412 echo m68k-hades-mint${UNAME_RELEASE}
413 exit ;;
410414 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
411 echo m68k-unknown-mint${UNAME_RELEASE}
412 exit ;;
415 echo m68k-unknown-mint${UNAME_RELEASE}
416 exit ;;
413417 m68k:machten:*:*)
414418 echo m68k-apple-machten${UNAME_RELEASE}
415419 exit ;;
479483 echo m88k-motorola-sysv3
480484 exit ;;
481485 AViiON:dgux:*:*)
482 # DG/UX returns AViiON for all architectures
483 UNAME_PROCESSOR=`/usr/bin/uname -p`
486 # DG/UX returns AViiON for all architectures
487 UNAME_PROCESSOR=`/usr/bin/uname -p`
484488 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
485489 then
486490 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
493497 else
494498 echo i586-dg-dgux${UNAME_RELEASE}
495499 fi
496 exit ;;
500 exit ;;
497501 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
498502 echo m88k-dolphin-sysv3
499503 exit ;;
550554 echo rs6000-ibm-aix3.2
551555 fi
552556 exit ;;
553 *:AIX:*:[456])
557 *:AIX:*:[4567])
554558 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
555559 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
556560 IBM_ARCH=rs6000
593597 9000/[678][0-9][0-9])
594598 if [ -x /usr/bin/getconf ]; then
595599 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
596 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
597 case "${sc_cpu_version}" in
598 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
599 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
600 532) # CPU_PA_RISC2_0
601 case "${sc_kernel_bits}" in
602 32) HP_ARCH="hppa2.0n" ;;
603 64) HP_ARCH="hppa2.0w" ;;
600 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
601 case "${sc_cpu_version}" in
602 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
603 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
604 532) # CPU_PA_RISC2_0
605 case "${sc_kernel_bits}" in
606 32) HP_ARCH="hppa2.0n" ;;
607 64) HP_ARCH="hppa2.0w" ;;
604608 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
605 esac ;;
606 esac
609 esac ;;
610 esac
607611 fi
608612 if [ "${HP_ARCH}" = "" ]; then
609613 eval $set_cc_for_build
610 sed 's/^ //' << EOF >$dummy.c
611
612 #define _HPUX_SOURCE
613 #include <stdlib.h>
614 #include <unistd.h>
615
616 int main ()
617 {
618 #if defined(_SC_KERNEL_BITS)
619 long bits = sysconf(_SC_KERNEL_BITS);
620 #endif
621 long cpu = sysconf (_SC_CPU_VERSION);
622
623 switch (cpu)
624 {
625 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
626 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
627 case CPU_PA_RISC2_0:
628 #if defined(_SC_KERNEL_BITS)
629 switch (bits)
630 {
631 case 64: puts ("hppa2.0w"); break;
632 case 32: puts ("hppa2.0n"); break;
633 default: puts ("hppa2.0"); break;
634 } break;
635 #else /* !defined(_SC_KERNEL_BITS) */
636 puts ("hppa2.0"); break;
637 #endif
638 default: puts ("hppa1.0"); break;
639 }
640 exit (0);
641 }
614 sed 's/^ //' << EOF >$dummy.c
615
616 #define _HPUX_SOURCE
617 #include <stdlib.h>
618 #include <unistd.h>
619
620 int main ()
621 {
622 #if defined(_SC_KERNEL_BITS)
623 long bits = sysconf(_SC_KERNEL_BITS);
624 #endif
625 long cpu = sysconf (_SC_CPU_VERSION);
626
627 switch (cpu)
628 {
629 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
630 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631 case CPU_PA_RISC2_0:
632 #if defined(_SC_KERNEL_BITS)
633 switch (bits)
634 {
635 case 64: puts ("hppa2.0w"); break;
636 case 32: puts ("hppa2.0n"); break;
637 default: puts ("hppa2.0"); break;
638 } break;
639 #else /* !defined(_SC_KERNEL_BITS) */
640 puts ("hppa2.0"); break;
641 #endif
642 default: puts ("hppa1.0"); break;
643 }
644 exit (0);
645 }
642646 EOF
643647 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
644648 test -z "$HP_ARCH" && HP_ARCH=hppa
729733 exit ;;
730734 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
731735 echo c1-convex-bsd
732 exit ;;
736 exit ;;
733737 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
734738 if getsysinfo -f scalar_acc
735739 then echo c32-convex-bsd
736740 else echo c2-convex-bsd
737741 fi
738 exit ;;
742 exit ;;
739743 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
740744 echo c34-convex-bsd
741 exit ;;
745 exit ;;
742746 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
743747 echo c38-convex-bsd
744 exit ;;
748 exit ;;
745749 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
746750 echo c4-convex-bsd
747 exit ;;
751 exit ;;
748752 CRAY*Y-MP:*:*:*)
749753 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
750754 exit ;;
768772 exit ;;
769773 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
770774 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
771 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
772 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
773 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
774 exit ;;
775 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
776 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
777 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778 exit ;;
775779 5000:UNIX_System_V:4.*:*)
776 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
777 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
778 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
780 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
781 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
782 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
779783 exit ;;
780784 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
781785 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
787791 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
788792 exit ;;
789793 *:FreeBSD:*:*)
790 case ${UNAME_MACHINE} in
791 pc98)
792 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794 UNAME_PROCESSOR=`/usr/bin/uname -p`
795 case ${UNAME_PROCESSOR} in
793796 amd64)
794797 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795798 *)
796 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
799 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
797800 esac
798801 exit ;;
799802 i*:CYGWIN*:*)
800803 echo ${UNAME_MACHINE}-pc-cygwin
801804 exit ;;
805 *:MINGW64*:*)
806 echo ${UNAME_MACHINE}-pc-mingw64
807 exit ;;
802808 *:MINGW*:*)
803809 echo ${UNAME_MACHINE}-pc-mingw32
804810 exit ;;
811 i*:MSYS*:*)
812 echo ${UNAME_MACHINE}-pc-msys
813 exit ;;
805814 i*:windows32*:*)
806 # uname -m includes "-pc" on this system.
807 echo ${UNAME_MACHINE}-mingw32
815 # uname -m includes "-pc" on this system.
816 echo ${UNAME_MACHINE}-mingw32
808817 exit ;;
809818 i*:PW*:*)
810819 echo ${UNAME_MACHINE}-pc-pw32
811820 exit ;;
812821 *:Interix*:*)
813 case ${UNAME_MACHINE} in
822 case ${UNAME_MACHINE} in
814823 x86)
815824 echo i586-pc-interix${UNAME_RELEASE}
816825 exit ;;
856865 i*86:Minix:*:*)
857866 echo ${UNAME_MACHINE}-pc-minix
858867 exit ;;
868 aarch64:Linux:*:*)
869 echo ${UNAME_MACHINE}-unknown-linux-gnu
870 exit ;;
871 aarch64_be:Linux:*:*)
872 UNAME_MACHINE=aarch64_be
873 echo ${UNAME_MACHINE}-unknown-linux-gnu
874 exit ;;
859875 alpha:Linux:*:*)
860876 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
861877 EV5) UNAME_MACHINE=alphaev5 ;;
865881 EV6) UNAME_MACHINE=alphaev6 ;;
866882 EV67) UNAME_MACHINE=alphaev67 ;;
867883 EV68*) UNAME_MACHINE=alphaev68 ;;
868 esac
884 esac
869885 objdump --private-headers /bin/sh | grep -q ld.so.1
870886 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
871887 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
877893 then
878894 echo ${UNAME_MACHINE}-unknown-linux-gnu
879895 else
880 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
896 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
897 | grep -q __ARM_PCS_VFP
898 then
899 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
900 else
901 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
902 fi
881903 fi
882904 exit ;;
883905 avr32*:Linux:*:*)
884906 echo ${UNAME_MACHINE}-unknown-linux-gnu
885907 exit ;;
886908 cris:Linux:*:*)
887 echo cris-axis-linux-gnu
909 echo ${UNAME_MACHINE}-axis-linux-gnu
888910 exit ;;
889911 crisv32:Linux:*:*)
890 echo crisv32-axis-linux-gnu
912 echo ${UNAME_MACHINE}-axis-linux-gnu
891913 exit ;;
892914 frv:Linux:*:*)
893 echo frv-unknown-linux-gnu
915 echo ${UNAME_MACHINE}-unknown-linux-gnu
916 exit ;;
917 hexagon:Linux:*:*)
918 echo ${UNAME_MACHINE}-unknown-linux-gnu
894919 exit ;;
895920 i*86:Linux:*:*)
896921 LIBC=gnu
932957 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
933958 ;;
934959 or32:Linux:*:*)
935 echo or32-unknown-linux-gnu
960 echo ${UNAME_MACHINE}-unknown-linux-gnu
936961 exit ;;
937962 padre:Linux:*:*)
938963 echo sparc-unknown-linux-gnu
958983 echo ${UNAME_MACHINE}-ibm-linux
959984 exit ;;
960985 sh64*:Linux:*:*)
961 echo ${UNAME_MACHINE}-unknown-linux-gnu
986 echo ${UNAME_MACHINE}-unknown-linux-gnu
962987 exit ;;
963988 sh*:Linux:*:*)
964989 echo ${UNAME_MACHINE}-unknown-linux-gnu
966991 sparc:Linux:*:* | sparc64:Linux:*:*)
967992 echo ${UNAME_MACHINE}-unknown-linux-gnu
968993 exit ;;
994 tile*:Linux:*:*)
995 echo ${UNAME_MACHINE}-unknown-linux-gnu
996 exit ;;
969997 vax:Linux:*:*)
970998 echo ${UNAME_MACHINE}-dec-linux-gnu
971999 exit ;;
9721000 x86_64:Linux:*:*)
973 echo x86_64-unknown-linux-gnu
1001 echo ${UNAME_MACHINE}-unknown-linux-gnu
9741002 exit ;;
9751003 xtensa*:Linux:*:*)
976 echo ${UNAME_MACHINE}-unknown-linux-gnu
1004 echo ${UNAME_MACHINE}-unknown-linux-gnu
9771005 exit ;;
9781006 i*86:DYNIX/ptx:4*:*)
9791007 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9821010 echo i386-sequent-sysv4
9831011 exit ;;
9841012 i*86:UNIX_SV:4.2MP:2.*)
985 # Unixware is an offshoot of SVR4, but it has its own version
986 # number series starting with 2...
987 # I am not positive that other SVR4 systems won't match this,
1013 # Unixware is an offshoot of SVR4, but it has its own version
1014 # number series starting with 2...
1015 # I am not positive that other SVR4 systems won't match this,
9881016 # I just have to hope. -- rms.
989 # Use sysv4.2uw... so that sysv4* matches it.
1017 # Use sysv4.2uw... so that sysv4* matches it.
9901018 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9911019 exit ;;
9921020 i*86:OS/2:*:*)
10181046 fi
10191047 exit ;;
10201048 i*86:*:5:[678]*)
1021 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1049 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10221050 case `/bin/uname -X | grep "^Machine"` in
10231051 *486*) UNAME_MACHINE=i486 ;;
10241052 *Pentium) UNAME_MACHINE=i586 ;;
10461074 exit ;;
10471075 pc:*:*:*)
10481076 # Left here for compatibility:
1049 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1050 # the processor, so we play safe by assuming i586.
1077 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1078 # the processor, so we play safe by assuming i586.
10511079 # Note: whatever this is, it MUST be the same as what config.sub
10521080 # prints for the "djgpp" host, or else GDB configury will decide that
10531081 # this is a cross-build.
10541082 echo i586-pc-msdosdjgpp
1055 exit ;;
1083 exit ;;
10561084 Intel:Mach:3*:*)
10571085 echo i386-pc-mach3
10581086 exit ;;
10871115 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
10881116 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
10891117 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1090 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1091 && { echo i486-ncr-sysv4; exit; } ;;
1118 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1119 && { echo i486-ncr-sysv4; exit; } ;;
10921120 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
10931121 OS_REL='.3'
10941122 test -r /etc/.relid \
11311159 echo ns32k-sni-sysv
11321160 fi
11331161 exit ;;
1134 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1135 # says <Richard.M.Bartel@ccMail.Census.GOV>
1136 echo i586-unisys-sysv4
1137 exit ;;
1162 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1163 # says <Richard.M.Bartel@ccMail.Census.GOV>
1164 echo i586-unisys-sysv4
1165 exit ;;
11381166 *:UNIX_System_V:4*:FTX*)
11391167 # From Gerald Hewes <hewes@openmarket.com>.
11401168 # How about differentiating between stratus architectures? -djm
11601188 exit ;;
11611189 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11621190 if [ -d /usr/nec ]; then
1163 echo mips-nec-sysv${UNAME_RELEASE}
1191 echo mips-nec-sysv${UNAME_RELEASE}
11641192 else
1165 echo mips-unknown-sysv${UNAME_RELEASE}
1166 fi
1167 exit ;;
1193 echo mips-unknown-sysv${UNAME_RELEASE}
1194 fi
1195 exit ;;
11681196 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11691197 echo powerpc-be-beos
11701198 exit ;;
11761204 exit ;;
11771205 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
11781206 echo i586-pc-haiku
1207 exit ;;
1208 x86_64:Haiku:*:*)
1209 echo x86_64-unknown-haiku
11791210 exit ;;
11801211 SX-4:SUPER-UX:*:*)
11811212 echo sx4-nec-superux${UNAME_RELEASE}
12291260 *:QNX:*:4*)
12301261 echo i386-pc-qnx
12311262 exit ;;
1232 NSE-?:NONSTOP_KERNEL:*:*)
1263 NEO-?:NONSTOP_KERNEL:*:*)
1264 echo neo-tandem-nsk${UNAME_RELEASE}
1265 exit ;;
1266 NSE-*:NONSTOP_KERNEL:*:*)
12331267 echo nse-tandem-nsk${UNAME_RELEASE}
12341268 exit ;;
12351269 NSR-?:NONSTOP_KERNEL:*:*)
12741308 echo pdp10-unknown-its
12751309 exit ;;
12761310 SEI:*:*:SEIUX)
1277 echo mips-sei-seiux${UNAME_RELEASE}
1311 echo mips-sei-seiux${UNAME_RELEASE}
12781312 exit ;;
12791313 *:DragonFly:*:*)
12801314 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
12811315 exit ;;
12821316 *:*VMS:*:*)
1283 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1317 UNAME_MACHINE=`(uname -p) 2>/dev/null`
12841318 case "${UNAME_MACHINE}" in
12851319 A*) echo alpha-dec-vms ; exit ;;
12861320 I*) echo ia64-dec-vms ; exit ;;
12981332 i*86:AROS:*:*)
12991333 echo ${UNAME_MACHINE}-pc-aros
13001334 exit ;;
1335 x86_64:VMkernel:*:*)
1336 echo ${UNAME_MACHINE}-unknown-esx
1337 exit ;;
13011338 esac
1302
1303 #echo '(No uname command or uname output not recognized.)' 1>&2
1304 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
13051339
13061340 eval $set_cc_for_build
13071341 cat >$dummy.c <<EOF
13201354 #include <sys/param.h>
13211355 printf ("m68k-sony-newsos%s\n",
13221356 #ifdef NEWSOS4
1323 "4"
1357 "4"
13241358 #else
1325 ""
1326 #endif
1327 ); exit (0);
1359 ""
1360 #endif
1361 ); exit (0);
13281362 #endif
13291363 #endif
13301364
00 #! /bin/sh
11 # Configuration validation subroutine script.
22 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-11-20'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file 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
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
4 # 2011, 2012, 2013 Free Software Foundation, Inc.
5
6 timestamp='2012-12-29'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
1511 # (at your option) any later version.
1612 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
2117 #
2218 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
19 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2620 #
2721 # As a special exception to the GNU General Public License, if you
2822 # distribute this file as part of a program that contains a
2923 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted GNU ChangeLog entry.
24 # the same distribution terms that you use for the rest of that
25 # program. This Exception is an additional permission under section 7
26 # of the GNU General Public License, version 3 ("GPLv3").
27
28
29 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
3530 #
3631 # Configuration subroutine to validate and canonicalize a configuration type.
3732 # Supply the specified configuration type as an argument.
7469 version="\
7570 GNU config.sub ($timestamp)
7671
77 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
78 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
73 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
74 2012, 2013 Free Software Foundation, Inc.
7975
8076 This is free software; see the source for copying conditions. There is NO
8177 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
122118 # Here we must recognize all the valid KERNEL-OS combinations.
123119 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
124120 case $maybe_os in
125 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
126 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
121 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
122 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
123 knetbsd*-gnu* | netbsd*-gnu* | \
127124 kopensolaris*-gnu* | \
128125 storm-chaos* | os2-emx* | rtmk-nova*)
129126 os=-$maybe_os
130127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128 ;;
129 android-linux)
130 os=-linux-android
131 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
131132 ;;
132133 *)
133134 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
151152 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
152153 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
153154 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
154 -apple | -axis | -knuth | -cray | -microblaze)
155 -apple | -axis | -knuth | -cray | -microblaze*)
155156 os=
156157 basic_machine=$1
157158 ;;
158 -bluegene*)
159 os=-cnk
159 -bluegene*)
160 os=-cnk
160161 ;;
161162 -sim | -cisco | -oki | -wec | -winbond)
162163 os=
172173 os=-chorusos
173174 basic_machine=$1
174175 ;;
175 -chorusrdb)
176 os=-chorusrdb
176 -chorusrdb)
177 os=-chorusrdb
177178 basic_machine=$1
178 ;;
179 ;;
179180 -hiux*)
180181 os=-hiuxwe2
181182 ;;
219220 ;;
220221 -isc*)
221222 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
223 ;;
224 -lynx*178)
225 os=-lynxos178
226 ;;
227 -lynx*5)
228 os=-lynxos5
222229 ;;
223230 -lynx*)
224231 os=-lynxos
244251 # Some are omitted here because they have special meanings below.
245252 1750a | 580 \
246253 | a29k \
254 | aarch64 | aarch64_be \
247255 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248256 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249257 | am33_2.0 \
250 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
258 | arc \
259 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
260 | avr | avr32 \
261 | be32 | be64 \
251262 | bfin \
252263 | c4x | clipper \
253264 | d10v | d30v | dlx | dsp16xx \
265 | epiphany \
254266 | fido | fr30 | frv \
255267 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
268 | hexagon \
256269 | i370 | i860 | i960 | ia64 \
257270 | ip2k | iq2000 \
271 | le32 | le64 \
258272 | lm32 \
259273 | m32c | m32r | m32rle | m68000 | m68k | m88k \
260 | maxq | mb | microblaze | mcore | mep | metag \
274 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
261275 | mips | mipsbe | mipseb | mipsel | mipsle \
262276 | mips16 \
263277 | mips64 | mips64el \
280294 | moxie \
281295 | mt \
282296 | msp430 \
297 | nds32 | nds32le | nds32be \
283298 | nios | nios2 \
284299 | ns16k | ns32k \
300 | open8 \
285301 | or32 \
286302 | pdp10 | pdp11 | pj | pjl \
287 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
303 | powerpc | powerpc64 | powerpc64le | powerpcle \
288304 | pyramid \
289 | rx \
305 | rl78 | rx \
290306 | score \
291307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
292308 | sh64 | sh64le \
293309 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
294310 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
295 | spu | strongarm \
296 | tahoe | thumb | tic4x | tic80 | tron \
311 | spu \
312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
297313 | ubicom32 \
298 | v850 | v850e \
314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
299315 | we32k \
300 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
316 | x86 | xc16x | xstormy16 | xtensa \
301317 | z8k | z80)
302318 basic_machine=$basic_machine-unknown
303319 ;;
304 m6811 | m68hc11 | m6812 | m68hc12 | picochip)
305 # Motorola 68HC11/12.
320 c54x)
321 basic_machine=tic54x-unknown
322 ;;
323 c55x)
324 basic_machine=tic55x-unknown
325 ;;
326 c6x)
327 basic_machine=tic6x-unknown
328 ;;
329 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
306330 basic_machine=$basic_machine-unknown
307331 os=-none
308332 ;;
310334 ;;
311335 ms1)
312336 basic_machine=mt-unknown
337 ;;
338
339 strongarm | thumb | xscale)
340 basic_machine=arm-unknown
341 ;;
342 xgate)
343 basic_machine=$basic_machine-unknown
344 os=-none
345 ;;
346 xscaleeb)
347 basic_machine=armeb-unknown
348 ;;
349
350 xscaleel)
351 basic_machine=armel-unknown
313352 ;;
314353
315354 # We use `pc' rather than `unknown'
326365 # Recognize the basic CPU types with company name.
327366 580-* \
328367 | a29k-* \
368 | aarch64-* | aarch64_be-* \
329369 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
330370 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
331371 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
332372 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
333373 | avr-* | avr32-* \
374 | be32-* | be64-* \
334375 | bfin-* | bs2000-* \
335 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
376 | c[123]* | c30-* | [cjt]90-* | c4x-* \
336377 | clipper-* | craynv-* | cydra-* \
337378 | d10v-* | d30v-* | dlx-* \
338379 | elxsi-* \
339380 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
340381 | h8300-* | h8500-* \
341382 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
383 | hexagon-* \
342384 | i*86-* | i860-* | i960-* | ia64-* \
343385 | ip2k-* | iq2000-* \
386 | le32-* | le64-* \
344387 | lm32-* \
345388 | m32c-* | m32r-* | m32rle-* \
346389 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
347 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
390 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
391 | microblaze-* | microblazeel-* \
348392 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
349393 | mips16-* \
350394 | mips64-* | mips64el-* \
366410 | mmix-* \
367411 | mt-* \
368412 | msp430-* \
413 | nds32-* | nds32le-* | nds32be-* \
369414 | nios-* | nios2-* \
370415 | none-* | np1-* | ns16k-* | ns32k-* \
416 | open8-* \
371417 | orion-* \
372418 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
373 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
419 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
374420 | pyramid-* \
375 | romp-* | rs6000-* | rx-* \
421 | rl78-* | romp-* | rs6000-* | rx-* \
376422 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
377423 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
378424 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
379425 | sparclite-* \
380 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
381 | tahoe-* | thumb-* \
382 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
426 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
427 | tahoe-* \
428 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
429 | tile*-* \
383430 | tron-* \
384431 | ubicom32-* \
385 | v850-* | v850e-* | vax-* \
432 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
433 | vax-* \
386434 | we32k-* \
387 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
435 | x86-* | x86_64-* | xc16x-* | xps100-* \
388436 | xstormy16-* | xtensa*-* \
389437 | ymp-* \
390438 | z8k-* | z80-*)
409457 basic_machine=a29k-amd
410458 os=-udi
411459 ;;
412 abacus)
460 abacus)
413461 basic_machine=abacus-unknown
414462 ;;
415463 adobe68k)
479527 basic_machine=powerpc-ibm
480528 os=-cnk
481529 ;;
530 c54x-*)
531 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
532 ;;
533 c55x-*)
534 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
535 ;;
536 c6x-*)
537 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
538 ;;
482539 c90)
483540 basic_machine=c90-cray
484541 os=-unicos
485542 ;;
486 cegcc)
543 cegcc)
487544 basic_machine=arm-unknown
488545 os=-cegcc
489546 ;;
515572 basic_machine=craynv-cray
516573 os=-unicosmp
517574 ;;
518 cr16)
575 cr16 | cr16-*)
519576 basic_machine=cr16-unknown
520577 os=-elf
521578 ;;
673730 i370-ibm* | ibm*)
674731 basic_machine=i370-ibm
675732 ;;
676 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
677733 i*86v32)
678734 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
679735 os=-sysv32
731787 basic_machine=ns32k-utek
732788 os=-sysv
733789 ;;
734 microblaze)
790 microblaze*)
735791 basic_machine=microblaze-xilinx
792 ;;
793 mingw64)
794 basic_machine=x86_64-pc
795 os=-mingw64
736796 ;;
737797 mingw32)
738798 basic_machine=i386-pc
770830 ms1-*)
771831 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
772832 ;;
833 msys)
834 basic_machine=i386-pc
835 os=-msys
836 ;;
773837 mvs)
774838 basic_machine=i370-ibm
775839 os=-mvs
840 ;;
841 nacl)
842 basic_machine=le32-unknown
843 os=-nacl
776844 ;;
777845 ncr3000)
778846 basic_machine=i486-ncr
838906 np1)
839907 basic_machine=np1-gould
840908 ;;
909 neo-tandem)
910 basic_machine=neo-tandem
911 ;;
912 nse-tandem)
913 basic_machine=nse-tandem
914 ;;
841915 nsr-tandem)
842916 basic_machine=nsr-tandem
843917 ;;
920994 ;;
921995 power) basic_machine=power-ibm
922996 ;;
923 ppc) basic_machine=powerpc-unknown
924 ;;
925 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
997 ppc | ppcbe) basic_machine=powerpc-unknown
998 ;;
999 ppc-* | ppcbe-*)
1000 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
9261001 ;;
9271002 ppcle | powerpclittle | ppc-le | powerpc-little)
9281003 basic_machine=powerpcle-unknown
9321007 ;;
9331008 ppc64) basic_machine=powerpc64-unknown
9341009 ;;
935 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
1010 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
9361011 ;;
9371012 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
9381013 basic_machine=powerpc64le-unknown
9471022 basic_machine=i586-unknown
9481023 os=-pw32
9491024 ;;
950 rdos)
1025 rdos | rdos64)
1026 basic_machine=x86_64-pc
1027 os=-rdos
1028 ;;
1029 rdos32)
9511030 basic_machine=i386-pc
9521031 os=-rdos
9531032 ;;
10161095 basic_machine=i860-stratus
10171096 os=-sysv4
10181097 ;;
1098 strongarm-* | thumb-*)
1099 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1100 ;;
10191101 sun2)
10201102 basic_machine=m68000-sun
10211103 ;;
10721154 basic_machine=t90-cray
10731155 os=-unicos
10741156 ;;
1075 tic54x | c54x*)
1076 basic_machine=tic54x-unknown
1077 os=-coff
1078 ;;
1079 tic55x | c55x*)
1080 basic_machine=tic55x-unknown
1081 os=-coff
1082 ;;
1083 tic6x | c6x*)
1084 basic_machine=tic6x-unknown
1085 os=-coff
1086 ;;
10871157 tile*)
1088 basic_machine=tile-unknown
1158 basic_machine=$basic_machine-unknown
10891159 os=-linux-gnu
10901160 ;;
10911161 tx39)
11541224 ;;
11551225 xps | xps100)
11561226 basic_machine=xps100-honeywell
1227 ;;
1228 xscale-* | xscalee[bl]-*)
1229 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11571230 ;;
11581231 ymp)
11591232 basic_machine=ymp-cray
12521325 if [ x"$os" != x"" ]
12531326 then
12541327 case $os in
1255 # First match some system type aliases
1256 # that might get confused with valid system types.
1328 # First match some system type aliases
1329 # that might get confused with valid system types.
12571330 # -solaris* is a basic system type, with this one exception.
1258 -auroraux)
1259 os=-auroraux
1331 -auroraux)
1332 os=-auroraux
12601333 ;;
12611334 -solaris1 | -solaris1.*)
12621335 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12861359 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
12871360 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
12881361 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1289 | -openbsd* | -solidbsd* \
1362 | -bitrig* | -openbsd* | -solidbsd* \
12901363 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
12911364 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
12921365 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
12931366 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
12941367 | -chorusos* | -chorusrdb* | -cegcc* \
1295 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1296 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1368 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1369 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1370 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
12971371 | -uxpv* | -beos* | -mpeix* | -udk* \
12981372 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
12991373 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13401414 -opened*)
13411415 os=-openedition
13421416 ;;
1343 -os400*)
1417 -os400*)
13441418 os=-os400
13451419 ;;
13461420 -wince*)
13891463 -sinix*)
13901464 os=-sysv4
13911465 ;;
1392 -tpf*)
1466 -tpf*)
13931467 os=-tpf
13941468 ;;
13951469 -triton*)
14331507 ;;
14341508 -dicos*)
14351509 os=-dicos
1510 ;;
1511 -nacl*)
14361512 ;;
14371513 -none)
14381514 ;;
14561532 # system, and we'll never get to this point.
14571533
14581534 case $basic_machine in
1459 score-*)
1535 score-*)
14601536 os=-elf
14611537 ;;
1462 spu-*)
1538 spu-*)
14631539 os=-elf
14641540 ;;
14651541 *-acorn)
14711547 arm*-semi)
14721548 os=-aout
14731549 ;;
1474 c4x-* | tic4x-*)
1475 os=-coff
1550 c4x-* | tic4x-*)
1551 os=-coff
1552 ;;
1553 hexagon-*)
1554 os=-elf
1555 ;;
1556 tic54x-*)
1557 os=-coff
1558 ;;
1559 tic55x-*)
1560 os=-coff
1561 ;;
1562 tic6x-*)
1563 os=-coff
14761564 ;;
14771565 # This must come before the *-dec entry.
14781566 pdp10-*)
14921580 ;;
14931581 m68000-sun)
14941582 os=-sunos3
1495 # This also exists in the configure program, but was not the
1496 # default.
1497 # os=-sunos4
14981583 ;;
14991584 m68*-cisco)
15001585 os=-aout
15011586 ;;
1502 mep-*)
1587 mep-*)
15031588 os=-elf
15041589 ;;
15051590 mips*-cisco)
15261611 *-ibm)
15271612 os=-aix
15281613 ;;
1529 *-knuth)
1614 *-knuth)
15301615 os=-mmixware
15311616 ;;
15321617 *-wec)
+2122
-1118
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.66 for ibus-input-pad 1.4.0.
2 # Generated by GNU Autoconf 2.69 for ibus-input-pad 1.4.2.
33 #
44 # Report bugs to <http://code.google.com/p/input-pad/issues/entry>.
55 #
66 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
108 #
119 #
1210 # This configure script is free software; the Free Software Foundation
9088 IFS=" "" $as_nl"
9189
9290 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
9392 case $0 in #((
9493 *[\\/]* ) as_myself=$0 ;;
9594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134133 # CDPATH.
135134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136135
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;}
137161 if test "x$CONFIG_SHELL" = x; then
138162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139163 emulate sh
167191 else
168192 exitcode=1; echo positional parameters were not saved.
169193 fi
170 test x\$exitcode = x0 || exit 1"
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
171196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
220245
221246
222247 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 BASH_ENV=/dev/null
227 ENV=/dev/null
228 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 export CONFIG_SHELL
230 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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
231267 fi
232268
233269 if test x$as_have_required = xno; then :
330366
331367
332368 } # 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
333377 # as_fn_append VAR VALUE
334378 # ----------------------
335379 # Append the text in VALUE to the end of the definition contained in VAR. Take
451495 chmod +x "$as_me.lineno" ||
452496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453497
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
454502 # Don't try to exec as it changes $[0], causing all sort of problems
455503 # (the dirname of $[0] is not the place where we might find the
456504 # original and so on. Autoconf is especially sensitive to this).
485533 # ... but there are two gotchas:
486534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
536 # In both cases, we have to default to `cp -pR'.
489537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
490 as_ln_s='cp -p'
538 as_ln_s='cp -pR'
491539 elif ln conf$$.file conf$$ 2>/dev/null; then
492540 as_ln_s=ln
493541 else
494 as_ln_s='cp -p'
542 as_ln_s='cp -pR'
495543 fi
496544 else
497 as_ln_s='cp -p'
545 as_ln_s='cp -pR'
498546 fi
499547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
500548 rmdir conf$$.dir 2>/dev/null
506554 as_mkdir_p=false
507555 fi
508556
509 if test -x / >/dev/null 2>&1; then
510 as_test_x='test -x'
511 else
512 if ls -dL / >/dev/null 2>&1; then
513 as_ls_L_option=L
514 else
515 as_ls_L_option=
516 fi
517 as_test_x='
518 eval sh -c '\''
519 if test -d "$1"; then
520 test -d "$1/.";
521 else
522 case $1 in #(
523 -*)set "./$1";;
524 esac;
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
527 '\'' sh
528 '
529 fi
530 as_executable_p=$as_test_x
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
531559
532560 # Sed expression to map a string onto a valid CPP name.
533561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561589 # Identity of this package.
562590 PACKAGE_NAME='ibus-input-pad'
563591 PACKAGE_TARNAME='ibus-input-pad'
564 PACKAGE_VERSION='1.4.0'
565 PACKAGE_STRING='ibus-input-pad 1.4.0'
592 PACKAGE_VERSION='1.4.2'
593 PACKAGE_STRING='ibus-input-pad 1.4.2'
566594 PACKAGE_BUGREPORT='http://code.google.com/p/input-pad/issues/entry'
567595 PACKAGE_URL=''
568596
632660 GTK2_CFLAGS
633661 GLIB2_LIBS
634662 GLIB2_CFLAGS
663 GLIB_COMPILE_RESOURCES
635664 GLIB_MKENUMS
636665 GOBJECT_QUERY
637666 GLIB_GENMARSHAL
667696 INTLTOOL_KEYS_RULE
668697 INTLTOOL_DIRECTORY_RULE
669698 INTLTOOL_DESKTOP_RULE
699 intltool__v_merge_options_0
700 intltool__v_merge_options_
701 INTLTOOL_V_MERGE_OPTIONS
702 INTLTOOL__v_MERGE_0
703 INTLTOOL__v_MERGE_
704 INTLTOOL_V_MERGE
670705 INTLTOOL_EXTRACT
671706 INTLTOOL_MERGE
672707 INTLTOOL_UPDATE
677712 LIPO
678713 NMEDIT
679714 DSYMUTIL
715 MANIFEST_TOOL
680716 RANLIB
717 ac_ct_AR
681718 AR
719 DLLTOOL
682720 OBJDUMP
683721 LN_S
684722 NM
712750 am__fastdepCC_FALSE
713751 am__fastdepCC_TRUE
714752 CCDEPMODE
753 am__nodep
715754 AMDEPBACKSLASH
716755 AMDEP_FALSE
717756 AMDEP_TRUE
725764 LDFLAGS
726765 CFLAGS
727766 CC
767 AM_BACKSLASH
768 AM_DEFAULT_VERBOSITY
769 AM_DEFAULT_V
770 AM_V
728771 am__untar
729772 am__tar
730773 AMTAR
789832 ac_subst_files=''
790833 ac_user_opts='
791834 enable_option_checking
835 enable_silent_rules
792836 enable_dependency_tracking
793837 enable_maintainer_mode
794838 enable_static
796840 with_pic
797841 enable_fast_install
798842 with_gnu_ld
843 with_sysroot
799844 enable_libtool_lock
800 with_gnu_ld
801845 enable_nls
802846 enable_glibtest
803847 with_gtk
811855 LIBS
812856 CPPFLAGS
813857 CPP
814 CPPFLAGS
815 CC
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819858 CXX
820859 CXXFLAGS
821 LIBS
822 CPPFLAGS
823860 CCC
824861 CXXCPP
825 CPPFLAGS
826862 PKG_CONFIG
827863 PKG_CONFIG_PATH
828864 PKG_CONFIG_LIBDIR
833869 GTK3_CFLAGS
834870 GTK3_LIBS
835871 IBUS_CFLAGS
836 IBUS_LIBS
837872 IBUS_LIBS
838873 INPUT_PAD_CFLAGS
839874 INPUT_PAD_LIBS'
899934 fi
900935
901936 case $ac_option in
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 *) ac_optarg=yes ;;
937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *=) ac_optarg= ;;
939 *) ac_optarg=yes ;;
904940 esac
905941
906942 # Accept the important Cygnus configure options, so we can diagnose typos.
12401276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12411277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12421278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
12441280 ;;
12451281
12461282 esac
12911327 if test "x$host_alias" != x; then
12921328 if test "x$build_alias" = x; then
12931329 cross_compiling=maybe
1294 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used" >&2
12961330 elif test "x$build_alias" != "x$host_alias"; then
12971331 cross_compiling=yes
12981332 fi
13781412 # Omit some internal or obsolete options to make the list less imposing.
13791413 # This message is too long to be a string in the A/UX 3.1 sh.
13801414 cat <<_ACEOF
1381 \`configure' configures ibus-input-pad 1.4.0 to adapt to many kinds of systems.
1415 \`configure' configures ibus-input-pad 1.4.2 to adapt to many kinds of systems.
13821416
13831417 Usage: $0 [OPTION]... [VAR=VALUE]...
13841418
14481482
14491483 if test -n "$ac_init_help"; then
14501484 case $ac_init_help in
1451 short | recursive ) echo "Configuration of ibus-input-pad 1.4.0:";;
1485 short | recursive ) echo "Configuration of ibus-input-pad 1.4.2:";;
14521486 esac
14531487 cat <<\_ACEOF
14541488
14561490 --disable-option-checking ignore unrecognized --enable/--with options
14571491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
14581492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-maintainer-mode enable make rules and dependencies not useful
1462 (and sometimes confusing) to the casual installer
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-dependency-tracking
1496 do not reject slow dependency extractors
1497 --disable-dependency-tracking
1498 speeds up one-time build
1499 --disable-maintainer-mode
1500 disable make rules and dependencies not useful (and
1501 sometimes confusing) to the casual installer
14631502 --enable-static[=PKGS] build static libraries [default=no]
14641503 --enable-shared[=PKGS] build shared libraries [default=yes]
14651504 --enable-fast-install[=PKGS]
14711510 Optional Packages:
14721511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
14731512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic try to use only PIC/non-PIC objects [default=use
1513 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14751514 both]
14761515 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-gtk=2.0|3.0 Select GTK+ version. The default is 2.0
1516 --with-sysroot=DIR Search for dependent libraries within DIR
1517 (or the compiler's sysroot if not specified).
1518 --with-gtk=2.0|3.0 Select GTK+ version. The default is 3.0
14781519
14791520 Some influential environment variables:
14801521 CC C compiler command
15731614 test -n "$ac_init_help" && exit $ac_status
15741615 if $ac_init_version; then
15751616 cat <<\_ACEOF
1576 ibus-input-pad configure 1.4.0
1577 generated by GNU Autoconf 2.66
1578
1579 Copyright (C) 2010 Free Software Foundation, Inc.
1617 ibus-input-pad configure 1.4.2
1618 generated by GNU Autoconf 2.69
1619
1620 Copyright (C) 2012 Free Software Foundation, Inc.
15801621 This configure script is free software; the Free Software Foundation
15811622 gives unlimited permission to copy, distribute and modify it.
15821623 _ACEOF
16201661
16211662 ac_retval=1
16221663 fi
1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16241665 as_fn_set_status $ac_retval
16251666
16261667 } # ac_fn_c_try_compile
16461687 mv -f conftest.er1 conftest.err
16471688 fi
16481689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } >/dev/null && {
1690 test $ac_status = 0; } > conftest.i && {
16501691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16511692 test ! -s conftest.err
16521693 }; then :
16571698
16581699 ac_retval=1
16591700 fi
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16611702 as_fn_set_status $ac_retval
16621703
16631704 } # ac_fn_c_try_cpp
16701711 ac_fn_c_check_header_mongrel ()
16711712 {
16721713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval "test \"\${$3+set}\"" = set; then :
1714 if eval \${$3+:} false; then :
16741715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16751716 $as_echo_n "checking for $2... " >&6; }
1676 if eval "test \"\${$3+set}\"" = set; then :
1717 if eval \${$3+:} false; then :
16771718 $as_echo_n "(cached) " >&6
16781719 fi
16791720 eval ac_res=\$$3
17091750 else
17101751 ac_header_preproc=no
17111752 fi
1712 rm -f conftest.err conftest.$ac_ext
1753 rm -f conftest.err conftest.i conftest.$ac_ext
17131754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
17141755 $as_echo "$ac_header_preproc" >&6; }
17151756
17401781 esac
17411782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
17421783 $as_echo_n "checking for $2... " >&6; }
1743 if eval "test \"\${$3+set}\"" = set; then :
1784 if eval \${$3+:} false; then :
17441785 $as_echo_n "(cached) " >&6
17451786 else
17461787 eval "$3=\$ac_header_compiler"
17491790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17501791 $as_echo "$ac_res" >&6; }
17511792 fi
1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17531794
17541795 } # ac_fn_c_check_header_mongrel
17551796
17901831 ac_retval=$ac_status
17911832 fi
17921833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17941835 as_fn_set_status $ac_retval
17951836
17961837 } # ac_fn_c_try_run
18041845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18051846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
18061847 $as_echo_n "checking for $2... " >&6; }
1807 if eval "test \"\${$3+set}\"" = set; then :
1848 if eval \${$3+:} false; then :
18081849 $as_echo_n "(cached) " >&6
18091850 else
18101851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221863 eval ac_res=\$$3
18231864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18241865 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18261867
18271868 } # ac_fn_c_check_header_compile
18281869
18591900
18601901 ac_retval=1
18611902 fi
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18631904 as_fn_set_status $ac_retval
18641905
18651906 } # ac_fn_cxx_try_compile
18911932 test ! -s conftest.err
18921933 } && test -s conftest$ac_exeext && {
18931934 test "$cross_compiling" = yes ||
1894 $as_test_x conftest$ac_exeext
1935 test -x conftest$ac_exeext
18951936 }; then :
18961937 ac_retval=0
18971938 else
19051946 # interfere with the next link command; also delete a directory that is
19061947 # left behind by Apple's compiler. We do this before executing the actions.
19071948 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19091950 as_fn_set_status $ac_retval
19101951
19111952 } # ac_fn_c_try_link
19181959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19191960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
19201961 $as_echo_n "checking for $2... " >&6; }
1921 if eval "test \"\${$3+set}\"" = set; then :
1962 if eval \${$3+:} false; then :
19221963 $as_echo_n "(cached) " >&6
19231964 else
19241965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19732014 eval ac_res=\$$3
19742015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19752016 $as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19772018
19782019 } # ac_fn_c_check_func
19792020
19982039 mv -f conftest.er1 conftest.err
19992040 fi
20002041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } >/dev/null && {
2042 test $ac_status = 0; } > conftest.i && {
20022043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
20032044 test ! -s conftest.err
20042045 }; then :
20092050
20102051 ac_retval=1
20112052 fi
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20132054 as_fn_set_status $ac_retval
20142055
20152056 } # ac_fn_cxx_try_cpp
20412082 test ! -s conftest.err
20422083 } && test -s conftest$ac_exeext && {
20432084 test "$cross_compiling" = yes ||
2044 $as_test_x conftest$ac_exeext
2085 test -x conftest$ac_exeext
20452086 }; then :
20462087 ac_retval=0
20472088 else
20552096 # interfere with the next link command; also delete a directory that is
20562097 # left behind by Apple's compiler. We do this before executing the actions.
20572098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
20592100 as_fn_set_status $ac_retval
20602101
20612102 } # ac_fn_cxx_try_link
20632104 This file contains any messages produced by compilers while
20642105 running configure, to aid debugging if configure makes a mistake.
20652106
2066 It was created by ibus-input-pad $as_me 1.4.0, which was
2067 generated by GNU Autoconf 2.66. Invocation command line was
2107 It was created by ibus-input-pad $as_me 1.4.2, which was
2108 generated by GNU Autoconf 2.69. Invocation command line was
20682109
20692110 $ $0 $@
20702111
24112452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24122453
24132454
2414 am__api_version='1.11'
2455 am__api_version='1.13'
24152456
24162457 ac_aux_dir=
24172458 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
24592500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
24602501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
24612502 if test -z "$INSTALL"; then
2462 if test "${ac_cv_path_install+set}" = set; then :
2503 if ${ac_cv_path_install+:} false; then :
24632504 $as_echo_n "(cached) " >&6
24642505 else
24652506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24792520 # by default.
24802521 for ac_prog in ginstall scoinst install; do
24812522 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2523 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
24832524 if test $ac_prog = install &&
24842525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
24852526 # AIX install. It has an incompatible calling convention.
25372578
25382579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
25392580 $as_echo_n "checking whether build environment is sane... " >&6; }
2540 # Just in case
2541 sleep 1
2542 echo timestamp > conftest.file
25432581 # Reject unsafe characters in $srcdir or the absolute working directory
25442582 # name. Accept space and tab only in the latter.
25452583 am_lf='
25502588 esac
25512589 case $srcdir in
25522590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2553 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2591 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
25542592 esac
25552593
2556 # Do `set' in a subshell so we don't clobber the current shell's
2594 # Do 'set' in a subshell so we don't clobber the current shell's
25572595 # arguments. Must try -L first in case configure is actually a
25582596 # symlink; some systems play weird games with the mod time of symlinks
25592597 # (eg FreeBSD returns the mod time of the symlink's containing
25602598 # directory).
25612599 if (
2562 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2563 if test "$*" = "X"; then
2564 # -L didn't work.
2565 set X `ls -t "$srcdir/configure" conftest.file`
2566 fi
2567 rm -f conftest.file
2568 if test "$*" != "X $srcdir/configure conftest.file" \
2569 && test "$*" != "X conftest.file $srcdir/configure"; then
2570
2571 # If neither matched, then we have a broken ls. This can happen
2572 # if, for instance, CONFIG_SHELL is bash and it inherits a
2573 # broken ls alias from the environment. This has actually
2574 # happened. Such a system could not be considered "sane".
2575 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2576 alias in your environment" "$LINENO" 5
2577 fi
2578
2600 am_has_slept=no
2601 for am_try in 1 2; do
2602 echo "timestamp, slept: $am_has_slept" > conftest.file
2603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604 if test "$*" = "X"; then
2605 # -L didn't work.
2606 set X `ls -t "$srcdir/configure" conftest.file`
2607 fi
2608 if test "$*" != "X $srcdir/configure conftest.file" \
2609 && test "$*" != "X conftest.file $srcdir/configure"; then
2610
2611 # If neither matched, then we have a broken ls. This can happen
2612 # if, for instance, CONFIG_SHELL is bash and it inherits a
2613 # broken ls alias from the environment. This has actually
2614 # happened. Such a system could not be considered "sane".
2615 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2616 alias in your environment" "$LINENO" 5
2617 fi
2618 if test "$2" = conftest.file || test $am_try -eq 2; then
2619 break
2620 fi
2621 # Just in case.
2622 sleep 1
2623 am_has_slept=yes
2624 done
25792625 test "$2" = conftest.file
25802626 )
25812627 then
25872633 fi
25882634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25892635 $as_echo "yes" >&6; }
2636 # If we didn't sleep, we still need to ensure time stamps of config.status and
2637 # generated files are strictly newer.
2638 am_sleep_pid=
2639 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2640 ( sleep 1 ) &
2641 am_sleep_pid=$!
2642 fi
2643
2644 rm -f conftest.file
2645
25902646 test "$program_prefix" != NONE &&
25912647 program_transform_name="s&^&$program_prefix&;$program_transform_name"
25922648 # Use a double $ so make ignores it.
26092665 esac
26102666 fi
26112667 # Use eval to expand $SHELL
2612 if eval "$MISSING --run true"; then
2613 am_missing_run="$MISSING --run "
2668 if eval "$MISSING --is-lightweight"; then
2669 am_missing_run="$MISSING "
26142670 else
26152671 am_missing_run=
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2617 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2673 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
26182674 fi
26192675
26202676 if test x"${install_sh}" != xset; then
26262682 esac
26272683 fi
26282684
2629 # Installed binaries are usually stripped using `strip' when the user
2630 # run `make install-strip'. However `strip' might not be the right
2685 # Installed binaries are usually stripped using 'strip' when the user
2686 # run "make install-strip". However 'strip' might not be the right
26312687 # tool to use in cross-compilation environments, therefore Automake
2632 # will honor the `STRIP' environment variable to overrule this program.
2688 # will honor the 'STRIP' environment variable to overrule this program.
26332689 if test "$cross_compiling" != no; then
26342690 if test -n "$ac_tool_prefix"; then
26352691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
26362692 set dummy ${ac_tool_prefix}strip; ac_word=$2
26372693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26382694 $as_echo_n "checking for $ac_word... " >&6; }
2639 if test "${ac_cv_prog_STRIP+set}" = set; then :
2695 if ${ac_cv_prog_STRIP+:} false; then :
26402696 $as_echo_n "(cached) " >&6
26412697 else
26422698 if test -n "$STRIP"; then
26482704 IFS=$as_save_IFS
26492705 test -z "$as_dir" && as_dir=.
26502706 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26522708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
26532709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26542710 break 2
26762732 set dummy strip; ac_word=$2
26772733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26782734 $as_echo_n "checking for $ac_word... " >&6; }
2679 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2735 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
26802736 $as_echo_n "(cached) " >&6
26812737 else
26822738 if test -n "$ac_ct_STRIP"; then
26882744 IFS=$as_save_IFS
26892745 test -z "$as_dir" && as_dir=.
26902746 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26922748 ac_cv_prog_ac_ct_STRIP="strip"
26932749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26942750 break 2
27292785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
27302786 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
27312787 if test -z "$MKDIR_P"; then
2732 if test "${ac_cv_path_mkdir+set}" = set; then :
2788 if ${ac_cv_path_mkdir+:} false; then :
27332789 $as_echo_n "(cached) " >&6
27342790 else
27352791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27392795 test -z "$as_dir" && as_dir=.
27402796 for ac_prog in mkdir gmkdir; do
27412797 for ac_exec_ext in '' $ac_executable_extensions; do
2742 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2798 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
27432799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
27442800 'mkdir (GNU coreutils) '* | \
27452801 'mkdir (coreutils) '* | \
27682824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
27692825 $as_echo "$MKDIR_P" >&6; }
27702826
2771 mkdir_p="$MKDIR_P"
2772 case $mkdir_p in
2773 [\\/$]* | ?:[\\/]*) ;;
2774 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2775 esac
2776
27772827 for ac_prog in gawk mawk nawk awk
27782828 do
27792829 # Extract the first word of "$ac_prog", so it can be a program name with args.
27802830 set dummy $ac_prog; ac_word=$2
27812831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27822832 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_AWK+set}" = set; then :
2833 if ${ac_cv_prog_AWK+:} false; then :
27842834 $as_echo_n "(cached) " >&6
27852835 else
27862836 if test -n "$AWK"; then
27922842 IFS=$as_save_IFS
27932843 test -z "$as_dir" && as_dir=.
27942844 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27962846 ac_cv_prog_AWK="$ac_prog"
27972847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27982848 break 2
28202870 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
28212871 set x ${MAKE-make}
28222872 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2823 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2873 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
28242874 $as_echo_n "(cached) " >&6
28252875 else
28262876 cat >conftest.make <<\_ACEOF
28562906 fi
28572907 rmdir .tst 2>/dev/null
28582908
2909 # Check whether --enable-silent-rules was given.
2910 if test "${enable_silent_rules+set}" = set; then :
2911 enableval=$enable_silent_rules;
2912 fi
2913
2914 case $enable_silent_rules in # (((
2915 yes) AM_DEFAULT_VERBOSITY=0;;
2916 no) AM_DEFAULT_VERBOSITY=1;;
2917 *) AM_DEFAULT_VERBOSITY=1;;
2918 esac
2919 am_make=${MAKE-make}
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2921 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2922 if ${am_cv_make_support_nested_variables+:} false; then :
2923 $as_echo_n "(cached) " >&6
2924 else
2925 if $as_echo 'TRUE=$(BAR$(V))
2926 BAR0=false
2927 BAR1=true
2928 V=1
2929 am__doit:
2930 @$(TRUE)
2931 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2932 am_cv_make_support_nested_variables=yes
2933 else
2934 am_cv_make_support_nested_variables=no
2935 fi
2936 fi
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2938 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2939 if test $am_cv_make_support_nested_variables = yes; then
2940 AM_V='$(V)'
2941 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2942 else
2943 AM_V=$AM_DEFAULT_VERBOSITY
2944 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2945 fi
2946 AM_BACKSLASH='\'
2947
28592948 if test "`cd $srcdir && pwd`" != "`pwd`"; then
28602949 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
28612950 # is not polluted with repeated "-I."
28782967
28792968 # Define the identity of the package.
28802969 PACKAGE='ibus-input-pad'
2881 VERSION='1.4.0'
2970 VERSION='1.4.2'
28822971
28832972
28842973 cat >>confdefs.h <<_ACEOF
29062995
29072996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
29082997
2998 # For better backward compatibility. To be removed once Automake 1.9.x
2999 # dies out for good. For more background, see:
3000 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3001 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3002 mkdir_p='$(MKDIR_P)'
3003
29093004 # We need awk for the "check" target. The system "awk" is bad on
29103005 # some platforms.
2911 # Always define AMTAR for backward compatibility.
2912
2913 AMTAR=${AMTAR-"${am_missing_run}tar"}
2914
2915 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3006 # Always define AMTAR for backward compatibility. Yes, it's still used
3007 # in the wild :-( We should find a proper way to deprecate it ...
3008 AMTAR='$${TAR-tar}'
3009
3010
3011 # We'll loop over all known methods to create a tar archive until one works.
3012 _am_tools='gnutar pax cpio none'
3013
3014 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3015
29163016
29173017
29183018
29373037 _am_result=none
29383038 # First try GNU make style include.
29393039 echo "include confinc" > confmf
2940 # Ignore all kinds of additional output from `make'.
3040 # Ignore all kinds of additional output from 'make'.
29413041 case `$am_make -s -f confmf 2> /dev/null` in #(
29423042 *the\ am__doit\ target*)
29433043 am__include=include
29703070 if test "x$enable_dependency_tracking" != xno; then
29713071 am_depcomp="$ac_aux_dir/depcomp"
29723072 AMDEPBACKSLASH='\'
3073 am__nodep='_no'
29733074 fi
29743075 if test "x$enable_dependency_tracking" != xno; then
29753076 AMDEP_TRUE=
29903091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
29913092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29923093 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then :
3094 if ${ac_cv_prog_CC+:} false; then :
29943095 $as_echo_n "(cached) " >&6
29953096 else
29963097 if test -n "$CC"; then
30023103 IFS=$as_save_IFS
30033104 test -z "$as_dir" && as_dir=.
30043105 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30063107 ac_cv_prog_CC="${ac_tool_prefix}gcc"
30073108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30083109 break 2
30303131 set dummy gcc; ac_word=$2
30313132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30323133 $as_echo_n "checking for $ac_word... " >&6; }
3033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3134 if ${ac_cv_prog_ac_ct_CC+:} false; then :
30343135 $as_echo_n "(cached) " >&6
30353136 else
30363137 if test -n "$ac_ct_CC"; then
30423143 IFS=$as_save_IFS
30433144 test -z "$as_dir" && as_dir=.
30443145 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30463147 ac_cv_prog_ac_ct_CC="gcc"
30473148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30483149 break 2
30833184 set dummy ${ac_tool_prefix}cc; ac_word=$2
30843185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30853186 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then :
3187 if ${ac_cv_prog_CC+:} false; then :
30873188 $as_echo_n "(cached) " >&6
30883189 else
30893190 if test -n "$CC"; then
30953196 IFS=$as_save_IFS
30963197 test -z "$as_dir" && as_dir=.
30973198 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30993200 ac_cv_prog_CC="${ac_tool_prefix}cc"
31003201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31013202 break 2
31233224 set dummy cc; ac_word=$2
31243225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31253226 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_CC+set}" = set; then :
3227 if ${ac_cv_prog_CC+:} false; then :
31273228 $as_echo_n "(cached) " >&6
31283229 else
31293230 if test -n "$CC"; then
31363237 IFS=$as_save_IFS
31373238 test -z "$as_dir" && as_dir=.
31383239 for ac_exec_ext in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31403241 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31413242 ac_prog_rejected=yes
31423243 continue
31823283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31833284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31843285 $as_echo_n "checking for $ac_word... " >&6; }
3185 if test "${ac_cv_prog_CC+set}" = set; then :
3286 if ${ac_cv_prog_CC+:} false; then :
31863287 $as_echo_n "(cached) " >&6
31873288 else
31883289 if test -n "$CC"; then
31943295 IFS=$as_save_IFS
31953296 test -z "$as_dir" && as_dir=.
31963297 for ac_exec_ext in '' $ac_executable_extensions; do
3197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31983299 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
31993300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32003301 break 2
32263327 set dummy $ac_prog; ac_word=$2
32273328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32283329 $as_echo_n "checking for $ac_word... " >&6; }
3229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3330 if ${ac_cv_prog_ac_ct_CC+:} false; then :
32303331 $as_echo_n "(cached) " >&6
32313332 else
32323333 if test -n "$ac_ct_CC"; then
32383339 IFS=$as_save_IFS
32393340 test -z "$as_dir" && as_dir=.
32403341 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32423343 ac_cv_prog_ac_ct_CC="$ac_prog"
32433344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32443345 break 2
35093610 ac_clean_files=$ac_clean_files_save
35103611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
35113612 $as_echo_n "checking for suffix of object files... " >&6; }
3512 if test "${ac_cv_objext+set}" = set; then :
3613 if ${ac_cv_objext+:} false; then :
35133614 $as_echo_n "(cached) " >&6
35143615 else
35153616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35603661 ac_objext=$OBJEXT
35613662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
35623663 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3563 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3664 if ${ac_cv_c_compiler_gnu+:} false; then :
35643665 $as_echo_n "(cached) " >&6
35653666 else
35663667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35973698 ac_save_CFLAGS=$CFLAGS
35983699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
35993700 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3600 if test "${ac_cv_prog_cc_g+set}" = set; then :
3701 if ${ac_cv_prog_cc_g+:} false; then :
36013702 $as_echo_n "(cached) " >&6
36023703 else
36033704 ac_save_c_werror_flag=$ac_c_werror_flag
36753776 fi
36763777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
36773778 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3678 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3779 if ${ac_cv_prog_cc_c89+:} false; then :
36793780 $as_echo_n "(cached) " >&6
36803781 else
36813782 ac_cv_prog_cc_c89=no
36843785 /* end confdefs.h. */
36853786 #include <stdarg.h>
36863787 #include <stdio.h>
3687 #include <sys/types.h>
3688 #include <sys/stat.h>
3788 struct stat;
36893789 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
36903790 struct buf { int x; };
36913791 FILE * (*rcsopen) (struct buf *, struct stat *, int);
37743874
37753875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
37763876 $as_echo_n "checking dependency style of $depcc... " >&6; }
3777 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3877 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
37783878 $as_echo_n "(cached) " >&6
37793879 else
37803880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
37813881 # We make a subdir and do the tests there. Otherwise we can end up
37823882 # making bogus files that we don't know about and never remove. For
37833883 # instance it was reported that on HP-UX the gcc test will end up
3784 # making a dummy file named `D' -- because `-MD' means `put the output
3785 # in D'.
3884 # making a dummy file named 'D' -- because '-MD' means "put the output
3885 # in D".
3886 rm -rf conftest.dir
37863887 mkdir conftest.dir
37873888 # Copy depcomp to subdir because otherwise we won't find it if we're
37883889 # using a relative directory.
38163917 : > sub/conftest.c
38173918 for i in 1 2 3 4 5 6; do
38183919 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820 # Solaris 8's {/usr,}/bin/sh.
3821 touch sub/conftst$i.h
3920 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3921 # Solaris 10 /bin/sh.
3922 echo '/* dummy */' > sub/conftst$i.h
38223923 done
38233924 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
38243925
3825 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3926 # We check with '-c' and '-o' for the sake of the "dashmstdout"
38263927 # mode. It turns out that the SunPro C++ compiler does not properly
3827 # handle `-M -o', and we need to detect this. Also, some Intel
3828 # versions had trouble with output in subdirs
3928 # handle '-M -o', and we need to detect this. Also, some Intel
3929 # versions had trouble with output in subdirs.
38293930 am__obj=sub/conftest.${OBJEXT-o}
38303931 am__minus_obj="-o $am__obj"
38313932 case $depmode in
38343935 test "$am__universal" = false || continue
38353936 ;;
38363937 nosideeffect)
3837 # after this tag, mechanisms are not by side-effect, so they'll
3838 # only be used when explicitly requested
3938 # After this tag, mechanisms are not by side-effect, so they'll
3939 # only be used when explicitly requested.
38393940 if test "x$enable_dependency_tracking" = xyes; then
38403941 continue
38413942 else
38423943 break
38433944 fi
38443945 ;;
3845 msvisualcpp | msvcmsys)
3846 # This compiler won't grok `-c -o', but also, the minuso test has
3946 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3947 # This compiler won't grok '-c -o', but also, the minuso test has
38473948 # not run yet. These depmodes are late enough in the game, and
38483949 # so weak that their functioning should not be impacted.
38493950 am__obj=conftest.${OBJEXT-o}
39104011 CPP=
39114012 fi
39124013 if test -z "$CPP"; then
3913 if test "${ac_cv_prog_CPP+set}" = set; then :
4014 if ${ac_cv_prog_CPP+:} false; then :
39144015 $as_echo_n "(cached) " >&6
39154016 else
39164017 # Double quotes because CPP needs to be expanded
39404041 # Broken: fails on valid input.
39414042 continue
39424043 fi
3943 rm -f conftest.err conftest.$ac_ext
4044 rm -f conftest.err conftest.i conftest.$ac_ext
39444045
39454046 # OK, works on sane cases. Now check whether nonexistent headers
39464047 # can be detected and how.
39564057 ac_preproc_ok=:
39574058 break
39584059 fi
3959 rm -f conftest.err conftest.$ac_ext
4060 rm -f conftest.err conftest.i conftest.$ac_ext
39604061
39614062 done
39624063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3963 rm -f conftest.err conftest.$ac_ext
4064 rm -f conftest.i conftest.err conftest.$ac_ext
39644065 if $ac_preproc_ok; then :
39654066 break
39664067 fi
39994100 # Broken: fails on valid input.
40004101 continue
40014102 fi
4002 rm -f conftest.err conftest.$ac_ext
4103 rm -f conftest.err conftest.i conftest.$ac_ext
40034104
40044105 # OK, works on sane cases. Now check whether nonexistent headers
40054106 # can be detected and how.
40154116 ac_preproc_ok=:
40164117 break
40174118 fi
4018 rm -f conftest.err conftest.$ac_ext
4119 rm -f conftest.err conftest.i conftest.$ac_ext
40194120
40204121 done
40214122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022 rm -f conftest.err conftest.$ac_ext
4123 rm -f conftest.i conftest.err conftest.$ac_ext
40234124 if $ac_preproc_ok; then :
40244125
40254126 else
40384139
40394140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
40404141 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4041 if test "${ac_cv_path_GREP+set}" = set; then :
4142 if ${ac_cv_path_GREP+:} false; then :
40424143 $as_echo_n "(cached) " >&6
40434144 else
40444145 if test -z "$GREP"; then
40524153 for ac_prog in grep ggrep; do
40534154 for ac_exec_ext in '' $ac_executable_extensions; do
40544155 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4055 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4156 as_fn_executable_p "$ac_path_GREP" || continue
40564157 # Check for GNU ac_path_GREP and select it if it is found.
40574158 # Check for GNU $ac_path_GREP
40584159 case `"$ac_path_GREP" --version 2>&1` in
41014202
41024203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
41034204 $as_echo_n "checking for egrep... " >&6; }
4104 if test "${ac_cv_path_EGREP+set}" = set; then :
4205 if ${ac_cv_path_EGREP+:} false; then :
41054206 $as_echo_n "(cached) " >&6
41064207 else
41074208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
41184219 for ac_prog in egrep; do
41194220 for ac_exec_ext in '' $ac_executable_extensions; do
41204221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4121 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4222 as_fn_executable_p "$ac_path_EGREP" || continue
41224223 # Check for GNU ac_path_EGREP and select it if it is found.
41234224 # Check for GNU $ac_path_EGREP
41244225 case `"$ac_path_EGREP" --version 2>&1` in
41684269
41694270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
41704271 $as_echo_n "checking for ANSI C header files... " >&6; }
4171 if test "${ac_cv_header_stdc+set}" = set; then :
4272 if ${ac_cv_header_stdc+:} false; then :
41724273 $as_echo_n "(cached) " >&6
41734274 else
41744275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42974398
42984399
42994400 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4300 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4401 if test "x$ac_cv_header_minix_config_h" = xyes; then :
43014402 MINIX=yes
43024403 else
43034404 MINIX=
43194420
43204421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
43214422 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4322 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4423 if ${ac_cv_safe_to_define___extensions__+:} false; then :
43234424 $as_echo_n "(cached) " >&6
43244425 else
43254426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43264427 /* end confdefs.h. */
43274428
4328 # define __EXTENSIONS__ 1
4329 $ac_includes_default
4429 # define __EXTENSIONS__ 1
4430 $ac_includes_default
43304431 int
43314432 main ()
43324433 {
43694470
43704471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
43714472 $as_echo_n "checking whether build environment is sane... " >&6; }
4372 # Just in case
4373 sleep 1
4374 echo timestamp > conftest.file
43754473 # Reject unsafe characters in $srcdir or the absolute working directory
43764474 # name. Accept space and tab only in the latter.
43774475 am_lf='
43824480 esac
43834481 case $srcdir in
43844482 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4385 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4483 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
43864484 esac
43874485
4388 # Do `set' in a subshell so we don't clobber the current shell's
4486 # Do 'set' in a subshell so we don't clobber the current shell's
43894487 # arguments. Must try -L first in case configure is actually a
43904488 # symlink; some systems play weird games with the mod time of symlinks
43914489 # (eg FreeBSD returns the mod time of the symlink's containing
43924490 # directory).
43934491 if (
4394 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4395 if test "$*" = "X"; then
4396 # -L didn't work.
4397 set X `ls -t "$srcdir/configure" conftest.file`
4398 fi
4399 rm -f conftest.file
4400 if test "$*" != "X $srcdir/configure conftest.file" \
4401 && test "$*" != "X conftest.file $srcdir/configure"; then
4402
4403 # If neither matched, then we have a broken ls. This can happen
4404 # if, for instance, CONFIG_SHELL is bash and it inherits a
4405 # broken ls alias from the environment. This has actually
4406 # happened. Such a system could not be considered "sane".
4407 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4408 alias in your environment" "$LINENO" 5
4409 fi
4410
4492 am_has_slept=no
4493 for am_try in 1 2; do
4494 echo "timestamp, slept: $am_has_slept" > conftest.file
4495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4496 if test "$*" = "X"; then
4497 # -L didn't work.
4498 set X `ls -t "$srcdir/configure" conftest.file`
4499 fi
4500 if test "$*" != "X $srcdir/configure conftest.file" \
4501 && test "$*" != "X conftest.file $srcdir/configure"; then
4502
4503 # If neither matched, then we have a broken ls. This can happen
4504 # if, for instance, CONFIG_SHELL is bash and it inherits a
4505 # broken ls alias from the environment. This has actually
4506 # happened. Such a system could not be considered "sane".
4507 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4508 alias in your environment" "$LINENO" 5
4509 fi
4510 if test "$2" = conftest.file || test $am_try -eq 2; then
4511 break
4512 fi
4513 # Just in case.
4514 sleep 1
4515 am_has_slept=yes
4516 done
44114517 test "$2" = conftest.file
44124518 )
44134519 then
44194525 fi
44204526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44214527 $as_echo "yes" >&6; }
4528 # If we didn't sleep, we still need to ensure time stamps of config.status and
4529 # generated files are strictly newer.
4530 am_sleep_pid=
4531 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4532 ( sleep 1 ) &
4533 am_sleep_pid=$!
4534 fi
4535
4536 rm -f conftest.file
4537
44224538
44234539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
44244540 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
44264542 if test "${enable_maintainer_mode+set}" = set; then :
44274543 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
44284544 else
4429 USE_MAINTAINER_MODE=no
4545 USE_MAINTAINER_MODE=yes
44304546 fi
44314547
44324548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
44834599 set dummy ${ac_tool_prefix}gcc; ac_word=$2
44844600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44854601 $as_echo_n "checking for $ac_word... " >&6; }
4486 if test "${ac_cv_prog_CC+set}" = set; then :
4602 if ${ac_cv_prog_CC+:} false; then :
44874603 $as_echo_n "(cached) " >&6
44884604 else
44894605 if test -n "$CC"; then
44954611 IFS=$as_save_IFS
44964612 test -z "$as_dir" && as_dir=.
44974613 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44994615 ac_cv_prog_CC="${ac_tool_prefix}gcc"
45004616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
45014617 break 2
45234639 set dummy gcc; ac_word=$2
45244640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45254641 $as_echo_n "checking for $ac_word... " >&6; }
4526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4642 if ${ac_cv_prog_ac_ct_CC+:} false; then :
45274643 $as_echo_n "(cached) " >&6
45284644 else
45294645 if test -n "$ac_ct_CC"; then
45354651 IFS=$as_save_IFS
45364652 test -z "$as_dir" && as_dir=.
45374653 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45394655 ac_cv_prog_ac_ct_CC="gcc"
45404656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
45414657 break 2
45764692 set dummy ${ac_tool_prefix}cc; ac_word=$2
45774693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45784694 $as_echo_n "checking for $ac_word... " >&6; }
4579 if test "${ac_cv_prog_CC+set}" = set; then :
4695 if ${ac_cv_prog_CC+:} false; then :
45804696 $as_echo_n "(cached) " >&6
45814697 else
45824698 if test -n "$CC"; then
45884704 IFS=$as_save_IFS
45894705 test -z "$as_dir" && as_dir=.
45904706 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45924708 ac_cv_prog_CC="${ac_tool_prefix}cc"
45934709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
45944710 break 2
46164732 set dummy cc; ac_word=$2
46174733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46184734 $as_echo_n "checking for $ac_word... " >&6; }
4619 if test "${ac_cv_prog_CC+set}" = set; then :
4735 if ${ac_cv_prog_CC+:} false; then :
46204736 $as_echo_n "(cached) " >&6
46214737 else
46224738 if test -n "$CC"; then
46294745 IFS=$as_save_IFS
46304746 test -z "$as_dir" && as_dir=.
46314747 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46334749 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
46344750 ac_prog_rejected=yes
46354751 continue
46754791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
46764792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
46774793 $as_echo_n "checking for $ac_word... " >&6; }
4678 if test "${ac_cv_prog_CC+set}" = set; then :
4794 if ${ac_cv_prog_CC+:} false; then :
46794795 $as_echo_n "(cached) " >&6
46804796 else
46814797 if test -n "$CC"; then
46874803 IFS=$as_save_IFS
46884804 test -z "$as_dir" && as_dir=.
46894805 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46914807 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
46924808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
46934809 break 2
47194835 set dummy $ac_prog; ac_word=$2
47204836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
47214837 $as_echo_n "checking for $ac_word... " >&6; }
4722 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4838 if ${ac_cv_prog_ac_ct_CC+:} false; then :
47234839 $as_echo_n "(cached) " >&6
47244840 else
47254841 if test -n "$ac_ct_CC"; then
47314847 IFS=$as_save_IFS
47324848 test -z "$as_dir" && as_dir=.
47334849 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47354851 ac_cv_prog_ac_ct_CC="$ac_prog"
47364852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
47374853 break 2
48034919
48044920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
48054921 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4806 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4922 if ${ac_cv_c_compiler_gnu+:} false; then :
48074923 $as_echo_n "(cached) " >&6
48084924 else
48094925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48404956 ac_save_CFLAGS=$CFLAGS
48414957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
48424958 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4843 if test "${ac_cv_prog_cc_g+set}" = set; then :
4959 if ${ac_cv_prog_cc_g+:} false; then :
48444960 $as_echo_n "(cached) " >&6
48454961 else
48464962 ac_save_c_werror_flag=$ac_c_werror_flag
49185034 fi
49195035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
49205036 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4921 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5037 if ${ac_cv_prog_cc_c89+:} false; then :
49225038 $as_echo_n "(cached) " >&6
49235039 else
49245040 ac_cv_prog_cc_c89=no
49275043 /* end confdefs.h. */
49285044 #include <stdarg.h>
49295045 #include <stdio.h>
4930 #include <sys/types.h>
4931 #include <sys/stat.h>
5046 struct stat;
49325047 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
49335048 struct buf { int x; };
49345049 FILE * (*rcsopen) (struct buf *, struct stat *, int);
50175132
50185133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
50195134 $as_echo_n "checking dependency style of $depcc... " >&6; }
5020 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5135 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
50215136 $as_echo_n "(cached) " >&6
50225137 else
50235138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
50245139 # We make a subdir and do the tests there. Otherwise we can end up
50255140 # making bogus files that we don't know about and never remove. For
50265141 # instance it was reported that on HP-UX the gcc test will end up
5027 # making a dummy file named `D' -- because `-MD' means `put the output
5028 # in D'.
5142 # making a dummy file named 'D' -- because '-MD' means "put the output
5143 # in D".
5144 rm -rf conftest.dir
50295145 mkdir conftest.dir
50305146 # Copy depcomp to subdir because otherwise we won't find it if we're
50315147 # using a relative directory.
50595175 : > sub/conftest.c
50605176 for i in 1 2 3 4 5 6; do
50615177 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5062 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5063 # Solaris 8's {/usr,}/bin/sh.
5064 touch sub/conftst$i.h
5178 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5179 # Solaris 10 /bin/sh.
5180 echo '/* dummy */' > sub/conftst$i.h
50655181 done
50665182 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
50675183
5068 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5184 # We check with '-c' and '-o' for the sake of the "dashmstdout"
50695185 # mode. It turns out that the SunPro C++ compiler does not properly
5070 # handle `-M -o', and we need to detect this. Also, some Intel
5071 # versions had trouble with output in subdirs
5186 # handle '-M -o', and we need to detect this. Also, some Intel
5187 # versions had trouble with output in subdirs.
50725188 am__obj=sub/conftest.${OBJEXT-o}
50735189 am__minus_obj="-o $am__obj"
50745190 case $depmode in
50775193 test "$am__universal" = false || continue
50785194 ;;
50795195 nosideeffect)
5080 # after this tag, mechanisms are not by side-effect, so they'll
5081 # only be used when explicitly requested
5196 # After this tag, mechanisms are not by side-effect, so they'll
5197 # only be used when explicitly requested.
50825198 if test "x$enable_dependency_tracking" = xyes; then
50835199 continue
50845200 else
50855201 break
50865202 fi
50875203 ;;
5088 msvisualcpp | msvcmsys)
5089 # This compiler won't grok `-c -o', but also, the minuso test has
5204 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5205 # This compiler won't grok '-c -o', but also, the minuso test has
50905206 # not run yet. These depmodes are late enough in the game, and
50915207 # so weak that their functioning should not be impacted.
50925208 am__obj=conftest.${OBJEXT-o}
51495265 fi
51505266 set dummy $CC; ac_cc=`$as_echo "$2" |
51515267 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5152 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5268 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
51535269 $as_echo_n "(cached) " >&6
51545270 else
51555271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52825398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
52835399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
52845400 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_CXX+set}" = set; then :
5401 if ${ac_cv_prog_CXX+:} false; then :
52865402 $as_echo_n "(cached) " >&6
52875403 else
52885404 if test -n "$CXX"; then
52945410 IFS=$as_save_IFS
52955411 test -z "$as_dir" && as_dir=.
52965412 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52985414 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
52995415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53005416 break 2
53265442 set dummy $ac_prog; ac_word=$2
53275443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
53285444 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5445 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
53305446 $as_echo_n "(cached) " >&6
53315447 else
53325448 if test -n "$ac_ct_CXX"; then
53385454 IFS=$as_save_IFS
53395455 test -z "$as_dir" && as_dir=.
53405456 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
53425458 ac_cv_prog_ac_ct_CXX="$ac_prog"
53435459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53445460 break 2
54045520
54055521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
54065522 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5407 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5523 if ${ac_cv_cxx_compiler_gnu+:} false; then :
54085524 $as_echo_n "(cached) " >&6
54095525 else
54105526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
54415557 ac_save_CXXFLAGS=$CXXFLAGS
54425558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
54435559 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5444 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5560 if ${ac_cv_prog_cxx_g+:} false; then :
54455561 $as_echo_n "(cached) " >&6
54465562 else
54475563 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
55275643
55285644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
55295645 $as_echo_n "checking dependency style of $depcc... " >&6; }
5530 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5646 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
55315647 $as_echo_n "(cached) " >&6
55325648 else
55335649 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
55345650 # We make a subdir and do the tests there. Otherwise we can end up
55355651 # making bogus files that we don't know about and never remove. For
55365652 # instance it was reported that on HP-UX the gcc test will end up
5537 # making a dummy file named `D' -- because `-MD' means `put the output
5538 # in D'.
5653 # making a dummy file named 'D' -- because '-MD' means "put the output
5654 # in D".
5655 rm -rf conftest.dir
55395656 mkdir conftest.dir
55405657 # Copy depcomp to subdir because otherwise we won't find it if we're
55415658 # using a relative directory.
55695686 : > sub/conftest.c
55705687 for i in 1 2 3 4 5 6; do
55715688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5573 # Solaris 8's {/usr,}/bin/sh.
5574 touch sub/conftst$i.h
5689 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5690 # Solaris 10 /bin/sh.
5691 echo '/* dummy */' > sub/conftst$i.h
55755692 done
55765693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
55775694
5578 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5695 # We check with '-c' and '-o' for the sake of the "dashmstdout"
55795696 # mode. It turns out that the SunPro C++ compiler does not properly
5580 # handle `-M -o', and we need to detect this. Also, some Intel
5581 # versions had trouble with output in subdirs
5697 # handle '-M -o', and we need to detect this. Also, some Intel
5698 # versions had trouble with output in subdirs.
55825699 am__obj=sub/conftest.${OBJEXT-o}
55835700 am__minus_obj="-o $am__obj"
55845701 case $depmode in
55875704 test "$am__universal" = false || continue
55885705 ;;
55895706 nosideeffect)
5590 # after this tag, mechanisms are not by side-effect, so they'll
5591 # only be used when explicitly requested
5707 # After this tag, mechanisms are not by side-effect, so they'll
5708 # only be used when explicitly requested.
55925709 if test "x$enable_dependency_tracking" = xyes; then
55935710 continue
55945711 else
55955712 break
55965713 fi
55975714 ;;
5598 msvisualcpp | msvcmsys)
5599 # This compiler won't grok `-c -o', but also, the minuso test has
5715 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5716 # This compiler won't grok '-c -o', but also, the minuso test has
56005717 # not run yet. These depmodes are late enough in the game, and
56015718 # so weak that their functioning should not be impacted.
56025719 am__obj=conftest.${OBJEXT-o}
56505767 fi
56515768
56525769
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5654 $as_echo_n "checking for library containing strerror... " >&6; }
5655 if test "${ac_cv_search_strerror+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 ac_func_search_save_LIBS=$LIBS
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661
5662 /* Override any GCC internal prototype to avoid an error.
5663 Use char because int might match the return type of a GCC
5664 builtin and then its argument prototype would still apply. */
5665 #ifdef __cplusplus
5666 extern "C"
5667 #endif
5668 char strerror ();
5669 int
5670 main ()
5671 {
5672 return strerror ();
5673 ;
5674 return 0;
5675 }
5676 _ACEOF
5677 for ac_lib in '' cposix; do
5678 if test -z "$ac_lib"; then
5679 ac_res="none required"
5680 else
5681 ac_res=-l$ac_lib
5682 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5683 fi
5684 if ac_fn_c_try_link "$LINENO"; then :
5685 ac_cv_search_strerror=$ac_res
5686 fi
5687 rm -f core conftest.err conftest.$ac_objext \
5688 conftest$ac_exeext
5689 if test "${ac_cv_search_strerror+set}" = set; then :
5690 break
5691 fi
5692 done
5693 if test "${ac_cv_search_strerror+set}" = set; then :
5694
5695 else
5696 ac_cv_search_strerror=no
5697 fi
5698 rm conftest.$ac_ext
5699 LIBS=$ac_func_search_save_LIBS
5700 fi
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5702 $as_echo "$ac_cv_search_strerror" >&6; }
5703 ac_res=$ac_cv_search_strerror
5704 if test "$ac_res" != no; then :
5705 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5706
5707 fi
5708
57095770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
57105771 $as_echo_n "checking for ANSI C header files... " >&6; }
5711 if test "${ac_cv_header_stdc+set}" = set; then :
5772 if ${ac_cv_header_stdc+:} false; then :
57125773 $as_echo_n "(cached) " >&6
57135774 else
57145775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
58265887
58275888
58285889
5829 macro_version='2.2.10'
5830 macro_revision='1.3175'
5890 macro_version='2.4.2'
5891 macro_revision='1.3337'
58315892
58325893
58335894
58495910
58505911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
58515912 $as_echo_n "checking build system type... " >&6; }
5852 if test "${ac_cv_build+set}" = set; then :
5913 if ${ac_cv_build+:} false; then :
58535914 $as_echo_n "(cached) " >&6
58545915 else
58555916 ac_build_alias=$build_alias
58835944
58845945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
58855946 $as_echo_n "checking host system type... " >&6; }
5886 if test "${ac_cv_host+set}" = set; then :
5947 if ${ac_cv_host+:} false; then :
58875948 $as_echo_n "(cached) " >&6
58885949 else
58895950 if test "x$host_alias" = x; then
59385999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
59396000 $as_echo_n "checking how to print strings... " >&6; }
59406001 # Test print first, because it will be a builtin if present.
5941 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6002 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
59426003 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
59436004 ECHO='print -r --'
59446005 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
59856046
59866047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
59876048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5988 if test "${ac_cv_path_SED+set}" = set; then :
6049 if ${ac_cv_path_SED+:} false; then :
59896050 $as_echo_n "(cached) " >&6
59906051 else
59916052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
60056066 for ac_prog in sed gsed; do
60066067 for ac_exec_ext in '' $ac_executable_extensions; do
60076068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6008 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6069 as_fn_executable_p "$ac_path_SED" || continue
60096070 # Check for GNU ac_path_SED and select it if it is found.
60106071 # Check for GNU $ac_path_SED
60116072 case `"$ac_path_SED" --version 2>&1` in
60676128
60686129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
60696130 $as_echo_n "checking for fgrep... " >&6; }
6070 if test "${ac_cv_path_FGREP+set}" = set; then :
6131 if ${ac_cv_path_FGREP+:} false; then :
60716132 $as_echo_n "(cached) " >&6
60726133 else
60736134 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
60846145 for ac_prog in fgrep; do
60856146 for ac_exec_ext in '' $ac_executable_extensions; do
60866147 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6087 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6148 as_fn_executable_p "$ac_path_FGREP" || continue
60886149 # Check for GNU ac_path_FGREP and select it if it is found.
60896150 # Check for GNU $ac_path_FGREP
60906151 case `"$ac_path_FGREP" --version 2>&1` in
61986259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
61996260 $as_echo_n "checking for non-GNU ld... " >&6; }
62006261 fi
6201 if test "${lt_cv_path_LD+set}" = set; then :
6262 if ${lt_cv_path_LD+:} false; then :
62026263 $as_echo_n "(cached) " >&6
62036264 else
62046265 if test -z "$LD"; then
62386299 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
62396300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
62406301 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6241 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6302 if ${lt_cv_prog_gnu_ld+:} false; then :
62426303 $as_echo_n "(cached) " >&6
62436304 else
62446305 # I'd rather use --version here, but apparently some GNU lds only accept -v.
62656326
62666327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
62676328 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6268 if test "${lt_cv_path_NM+set}" = set; then :
6329 if ${lt_cv_path_NM+:} false; then :
62696330 $as_echo_n "(cached) " >&6
62706331 else
62716332 if test -n "$NM"; then
63286389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
63296390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63306391 $as_echo_n "checking for $ac_word... " >&6; }
6331 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6392 if ${ac_cv_prog_DUMPBIN+:} false; then :
63326393 $as_echo_n "(cached) " >&6
63336394 else
63346395 if test -n "$DUMPBIN"; then
63406401 IFS=$as_save_IFS
63416402 test -z "$as_dir" && as_dir=.
63426403 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63446405 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
63456406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63466407 break 2
63726433 set dummy $ac_prog; ac_word=$2
63736434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
63746435 $as_echo_n "checking for $ac_word... " >&6; }
6375 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6436 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
63766437 $as_echo_n "(cached) " >&6
63776438 else
63786439 if test -n "$ac_ct_DUMPBIN"; then
63846445 IFS=$as_save_IFS
63856446 test -z "$as_dir" && as_dir=.
63866447 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63886449 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
63896450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63906451 break 2
64446505
64456506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
64466507 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6447 if test "${lt_cv_nm_interface+set}" = set; then :
6508 if ${lt_cv_nm_interface+:} false; then :
64486509 $as_echo_n "(cached) " >&6
64496510 else
64506511 lt_cv_nm_interface="BSD nm"
64796540 # find the maximum length of command line arguments
64806541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
64816542 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6482 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6543 if ${lt_cv_sys_max_cmd_len+:} false; then :
64836544 $as_echo_n "(cached) " >&6
64846545 else
64856546 i=0
65406601 interix*)
65416602 # We know the value 262144 and hardcode it with a safety zone (like BSD)
65426603 lt_cv_sys_max_cmd_len=196608
6604 ;;
6605
6606 os2*)
6607 # The test takes a long time on OS/2.
6608 lt_cv_sys_max_cmd_len=8192
65436609 ;;
65446610
65456611 osf*)
65816647 # If test is not a shell built-in, we'll probably end up computing a
65826648 # maximum length that is only half of the actual maximum length, but
65836649 # we can't tell.
6584 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6650 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
65856651 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
65866652 test $i != 17 # 1/2 MB should be enough
65876653 do
66246690 # Try some XSI features
66256691 xsi_shell=no
66266692 ( _lt_dummy="a/b/c"
6627 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6628 = c,a/b,, \
6693 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6694 = c,a/b,b/c, \
66296695 && eval 'test $(( 1 + 1 )) -eq 2 \
66306696 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
66316697 && xsi_shell=yes
66746740
66756741
66766742
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6744 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6745 if ${lt_cv_to_host_file_cmd+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747 else
6748 case $host in
6749 *-*-mingw* )
6750 case $build in
6751 *-*-mingw* ) # actually msys
6752 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6753 ;;
6754 *-*-cygwin* )
6755 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6756 ;;
6757 * ) # otherwise, assume *nix
6758 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6759 ;;
6760 esac
6761 ;;
6762 *-*-cygwin* )
6763 case $build in
6764 *-*-mingw* ) # actually msys
6765 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6766 ;;
6767 *-*-cygwin* )
6768 lt_cv_to_host_file_cmd=func_convert_file_noop
6769 ;;
6770 * ) # otherwise, assume *nix
6771 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6772 ;;
6773 esac
6774 ;;
6775 * ) # unhandled hosts (and "normal" native builds)
6776 lt_cv_to_host_file_cmd=func_convert_file_noop
6777 ;;
6778 esac
6779
6780 fi
6781
6782 to_host_file_cmd=$lt_cv_to_host_file_cmd
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6784 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6785
6786
6787
6788
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6791 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6792 if ${lt_cv_to_tool_file_cmd+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 #assume ordinary cross tools, or native build.
6796 lt_cv_to_tool_file_cmd=func_convert_file_noop
6797 case $host in
6798 *-*-mingw* )
6799 case $build in
6800 *-*-mingw* ) # actually msys
6801 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6802 ;;
6803 esac
6804 ;;
6805 esac
6806
6807 fi
6808
6809 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6811 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6812
6813
6814
6815
6816
66776817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
66786818 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6679 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6819 if ${lt_cv_ld_reload_flag+:} false; then :
66806820 $as_echo_n "(cached) " >&6
66816821 else
66826822 lt_cv_ld_reload_flag='-r'
66906830 esac
66916831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
66926832 case $host_os in
6833 cygwin* | mingw* | pw32* | cegcc*)
6834 if test "$GCC" != yes; then
6835 reload_cmds=false
6836 fi
6837 ;;
66936838 darwin*)
66946839 if test "$GCC" = yes; then
66956840 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
67126857 set dummy ${ac_tool_prefix}objdump; ac_word=$2
67136858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
67146859 $as_echo_n "checking for $ac_word... " >&6; }
6715 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6860 if ${ac_cv_prog_OBJDUMP+:} false; then :
67166861 $as_echo_n "(cached) " >&6
67176862 else
67186863 if test -n "$OBJDUMP"; then
67246869 IFS=$as_save_IFS
67256870 test -z "$as_dir" && as_dir=.
67266871 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
67286873 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
67296874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
67306875 break 2
67526897 set dummy objdump; ac_word=$2
67536898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
67546899 $as_echo_n "checking for $ac_word... " >&6; }
6755 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6900 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
67566901 $as_echo_n "(cached) " >&6
67576902 else
67586903 if test -n "$ac_ct_OBJDUMP"; then
67646909 IFS=$as_save_IFS
67656910 test -z "$as_dir" && as_dir=.
67666911 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
67686913 ac_cv_prog_ac_ct_OBJDUMP="objdump"
67696914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
67706915 break 2
68116956
68126957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
68136958 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6814 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6959 if ${lt_cv_deplibs_check_method+:} false; then :
68156960 $as_echo_n "(cached) " >&6
68166961 else
68176962 lt_cv_file_magic_cmd='$MAGIC_CMD'
69317076 lt_cv_deplibs_check_method=pass_all
69327077 ;;
69337078
6934 # This must be Linux ELF.
7079 # This must be glibc/ELF.
69357080 linux* | k*bsd*-gnu | kopensolaris*-gnu)
69367081 lt_cv_deplibs_check_method=pass_all
69377082 ;;
70137158 fi
70147159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
70157160 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7161
7162 file_magic_glob=
7163 want_nocaseglob=no
7164 if test "$build" = "$host"; then
7165 case $host_os in
7166 mingw* | pw32*)
7167 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7168 want_nocaseglob=yes
7169 else
7170 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7171 fi
7172 ;;
7173 esac
7174 fi
7175
70167176 file_magic_cmd=$lt_cv_file_magic_cmd
70177177 deplibs_check_method=$lt_cv_deplibs_check_method
70187178 test -z "$deplibs_check_method" && deplibs_check_method=unknown
70287188
70297189
70307190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
70317201 if test -n "$ac_tool_prefix"; then
7032 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7033 set dummy ${ac_tool_prefix}ar; ac_word=$2
7202 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
70347204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70357205 $as_echo_n "checking for $ac_word... " >&6; }
7036 if test "${ac_cv_prog_AR+set}" = set; then :
7206 if ${ac_cv_prog_DLLTOOL+:} false; then :
70377207 $as_echo_n "(cached) " >&6
70387208 else
7039 if test -n "$AR"; then
7040 ac_cv_prog_AR="$AR" # Let the user override the test.
7209 if test -n "$DLLTOOL"; then
7210 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
70417211 else
70427212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70437213 for as_dir in $PATH
70457215 IFS=$as_save_IFS
70467216 test -z "$as_dir" && as_dir=.
70477217 for ac_exec_ext in '' $ac_executable_extensions; do
7048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7049 ac_cv_prog_AR="${ac_tool_prefix}ar"
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
70507220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70517221 break 2
70527222 fi
70567226
70577227 fi
70587228 fi
7059 AR=$ac_cv_prog_AR
7060 if test -n "$AR"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7062 $as_echo "$AR" >&6; }
7229 DLLTOOL=$ac_cv_prog_DLLTOOL
7230 if test -n "$DLLTOOL"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7232 $as_echo "$DLLTOOL" >&6; }
70637233 else
70647234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
70657235 $as_echo "no" >&6; }
70677237
70687238
70697239 fi
7070 if test -z "$ac_cv_prog_AR"; then
7071 ac_ct_AR=$AR
7072 # Extract the first word of "ar", so it can be a program name with args.
7073 set dummy ar; ac_word=$2
7240 if test -z "$ac_cv_prog_DLLTOOL"; then
7241 ac_ct_DLLTOOL=$DLLTOOL
7242 # Extract the first word of "dlltool", so it can be a program name with args.
7243 set dummy dlltool; ac_word=$2
70747244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
70757245 $as_echo_n "checking for $ac_word... " >&6; }
7076 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7246 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
70777247 $as_echo_n "(cached) " >&6
70787248 else
7079 if test -n "$ac_ct_AR"; then
7080 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7249 if test -n "$ac_ct_DLLTOOL"; then
7250 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
70817251 else
70827252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70837253 for as_dir in $PATH
70857255 IFS=$as_save_IFS
70867256 test -z "$as_dir" && as_dir=.
70877257 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_prog_ac_ct_AR="ar"
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
70907260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
70917261 break 2
70927262 fi
70967266
70977267 fi
70987268 fi
7269 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7270 if test -n "$ac_ct_DLLTOOL"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7272 $as_echo "$ac_ct_DLLTOOL" >&6; }
7273 else
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278 if test "x$ac_ct_DLLTOOL" = x; then
7279 DLLTOOL="false"
7280 else
7281 case $cross_compiling:$ac_tool_warned in
7282 yes:)
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7286 esac
7287 DLLTOOL=$ac_ct_DLLTOOL
7288 fi
7289 else
7290 DLLTOOL="$ac_cv_prog_DLLTOOL"
7291 fi
7292
7293 test -z "$DLLTOOL" && DLLTOOL=dlltool
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7305 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7306 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 lt_cv_sharedlib_from_linklib_cmd='unknown'
7310
7311 case $host_os in
7312 cygwin* | mingw* | pw32* | cegcc*)
7313 # two different shell functions defined in ltmain.sh
7314 # decide which to use based on capabilities of $DLLTOOL
7315 case `$DLLTOOL --help 2>&1` in
7316 *--identify-strict*)
7317 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7318 ;;
7319 *)
7320 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7321 ;;
7322 esac
7323 ;;
7324 *)
7325 # fallback: assume linklib IS sharedlib
7326 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7327 ;;
7328 esac
7329
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7332 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7333 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7334 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7335
7336
7337
7338
7339
7340
7341
7342 if test -n "$ac_tool_prefix"; then
7343 for ac_prog in ar
7344 do
7345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_AR+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$AR"; then
7353 ac_cv_prog_AR="$AR" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 AR=$ac_cv_prog_AR
7373 if test -n "$AR"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7375 $as_echo "$AR" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381
7382 test -n "$AR" && break
7383 done
7384 fi
7385 if test -z "$AR"; then
7386 ac_ct_AR=$AR
7387 for ac_prog in ar
7388 do
7389 # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 if test -n "$ac_ct_AR"; then
7397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402 IFS=$as_save_IFS
7403 test -z "$as_dir" && as_dir=.
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_ac_ct_AR="$ac_prog"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408 break 2
7409 fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
70997416 ac_ct_AR=$ac_cv_prog_ac_ct_AR
71007417 if test -n "$ac_ct_AR"; then
71017418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
71047421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
71057422 $as_echo "no" >&6; }
71067423 fi
7424
7425
7426 test -n "$ac_ct_AR" && break
7427 done
71077428
71087429 if test "x$ac_ct_AR" = x; then
71097430 AR="false"
71167437 esac
71177438 AR=$ac_ct_AR
71187439 fi
7119 else
7120 AR="$ac_cv_prog_AR"
7121 fi
7122
7123 test -z "$AR" && AR=ar
7124 test -z "$AR_FLAGS" && AR_FLAGS=cru
7125
7126
7127
7128
7440 fi
7441
7442 : ${AR=ar}
7443 : ${AR_FLAGS=cru}
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7456 $as_echo_n "checking for archiver @FILE support... " >&6; }
7457 if ${lt_cv_ar_at_file+:} false; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 lt_cv_ar_at_file=no
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463
7464 int
7465 main ()
7466 {
7467
7468 ;
7469 return 0;
7470 }
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 echo conftest.$ac_objext > conftest.lst
7474 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7476 (eval $lt_ar_try) 2>&5
7477 ac_status=$?
7478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }
7480 if test "$ac_status" -eq 0; then
7481 # Ensure the archiver fails upon bogus file names.
7482 rm -f conftest.$ac_objext libconftest.a
7483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7484 (eval $lt_ar_try) 2>&5
7485 ac_status=$?
7486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7487 test $ac_status = 0; }
7488 if test "$ac_status" -ne 0; then
7489 lt_cv_ar_at_file=@
7490 fi
7491 fi
7492 rm -f conftest.* libconftest.a
7493
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7499 $as_echo "$lt_cv_ar_at_file" >&6; }
7500
7501 if test "x$lt_cv_ar_at_file" = xno; then
7502 archiver_list_spec=
7503 else
7504 archiver_list_spec=$lt_cv_ar_at_file
7505 fi
71297506
71307507
71317508
71387515 set dummy ${ac_tool_prefix}strip; ac_word=$2
71397516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
71407517 $as_echo_n "checking for $ac_word... " >&6; }
7141 if test "${ac_cv_prog_STRIP+set}" = set; then :
7518 if ${ac_cv_prog_STRIP+:} false; then :
71427519 $as_echo_n "(cached) " >&6
71437520 else
71447521 if test -n "$STRIP"; then
71507527 IFS=$as_save_IFS
71517528 test -z "$as_dir" && as_dir=.
71527529 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
71547531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
71557532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
71567533 break 2
71787555 set dummy strip; ac_word=$2
71797556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
71807557 $as_echo_n "checking for $ac_word... " >&6; }
7181 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7558 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
71827559 $as_echo_n "(cached) " >&6
71837560 else
71847561 if test -n "$ac_ct_STRIP"; then
71907567 IFS=$as_save_IFS
71917568 test -z "$as_dir" && as_dir=.
71927569 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
71947571 ac_cv_prog_ac_ct_STRIP="strip"
71957572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
71967573 break 2
72377614 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
72387615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72397616 $as_echo_n "checking for $ac_word... " >&6; }
7240 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7617 if ${ac_cv_prog_RANLIB+:} false; then :
72417618 $as_echo_n "(cached) " >&6
72427619 else
72437620 if test -n "$RANLIB"; then
72497626 IFS=$as_save_IFS
72507627 test -z "$as_dir" && as_dir=.
72517628 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72537630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
72547631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72557632 break 2
72777654 set dummy ranlib; ac_word=$2
72787655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
72797656 $as_echo_n "checking for $ac_word... " >&6; }
7280 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7657 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
72817658 $as_echo_n "(cached) " >&6
72827659 else
72837660 if test -n "$ac_ct_RANLIB"; then
72897666 IFS=$as_save_IFS
72907667 test -z "$as_dir" && as_dir=.
72917668 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
72937670 ac_cv_prog_ac_ct_RANLIB="ranlib"
72947671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72957672 break 2
73397716 if test -n "$RANLIB"; then
73407717 case $host_os in
73417718 openbsd*)
7342 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
73437720 ;;
73447721 *)
7345 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
73467723 ;;
73477724 esac
7348 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
73497726 fi
73507727
73517728 case $host_os in
74067783 # Check for command to grab the raw symbol name followed by C symbol from nm.
74077784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
74087785 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7409 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7786 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
74107787 $as_echo_n "(cached) " >&6
74117788 else
74127789
74677844 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
74687845
74697846 # Transform an extracted symbol line into symbol name and symbol address
7470 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7471 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7847 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7848 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
74727849
74737850 # Handle CRLF in mingw tool chain
74747851 opt_cr=
74927869 # which start with @ or ?.
74937870 lt_cv_sys_global_symbol_pipe="$AWK '"\
74947871 " {last_section=section; section=\$ 3};"\
7872 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
74957873 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
74967874 " \$ 0!~/External *\|/{next};"\
74977875 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
75047882 else
75057883 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
75067884 fi
7885 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
75077886
75087887 # Check to see that the pipe works correctly.
75097888 pipe_works=no
75457924 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
75467925 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
75477926 cat <<_LT_EOF > conftest.$ac_ext
7927 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7928 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7929 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7930 relocations are performed -- see ld's documentation on pseudo-relocs. */
7931 # define LT_DLSYM_CONST
7932 #elif defined(__osf__)
7933 /* This system does not cope well with relocations in const data. */
7934 # define LT_DLSYM_CONST
7935 #else
7936 # define LT_DLSYM_CONST const
7937 #endif
7938
75487939 #ifdef __cplusplus
75497940 extern "C" {
75507941 #endif
75567947 cat <<_LT_EOF >> conftest.$ac_ext
75577948
75587949 /* The mapping between symbol names and symbols. */
7559 const struct {
7950 LT_DLSYM_CONST struct {
75607951 const char *name;
75617952 void *address;
75627953 }
75827973 _LT_EOF
75837974 # Now try linking the two files.
75847975 mv conftest.$ac_objext conftstm.$ac_objext
7585 lt_save_LIBS="$LIBS"
7586 lt_save_CFLAGS="$CFLAGS"
7976 lt_globsym_save_LIBS=$LIBS
7977 lt_globsym_save_CFLAGS=$CFLAGS
75877978 LIBS="conftstm.$ac_objext"
75887979 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
75897980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
75937984 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
75947985 pipe_works=yes
75957986 fi
7596 LIBS="$lt_save_LIBS"
7597 CFLAGS="$lt_save_CFLAGS"
7987 LIBS=$lt_globsym_save_LIBS
7988 CFLAGS=$lt_globsym_save_CFLAGS
75987989 else
75997990 echo "cannot find nm_test_func in $nlist" >&5
76007991 fi
76318022 $as_echo "ok" >&6; }
76328023 fi
76338024
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
8025 # Response file support.
8026 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8027 nm_file_list_spec='@'
8028 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8029 nm_file_list_spec='@'
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8059 $as_echo_n "checking for sysroot... " >&6; }
8060
8061 # Check whether --with-sysroot was given.
8062 if test "${with_sysroot+set}" = set; then :
8063 withval=$with_sysroot;
8064 else
8065 with_sysroot=no
8066 fi
8067
8068
8069 lt_sysroot=
8070 case ${with_sysroot} in #(
8071 yes)
8072 if test "$GCC" = yes; then
8073 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8074 fi
8075 ;; #(
8076 /*)
8077 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8078 ;; #(
8079 no|'')
8080 ;; #(
8081 *)
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8083 $as_echo "${with_sysroot}" >&6; }
8084 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8085 ;;
8086 esac
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8089 $as_echo "${lt_sysroot:-no}" >&6; }
76508090
76518091
76528092
77188158 rm -rf conftest*
77198159 ;;
77208160
7721 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8161 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
77228162 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
77238163 # Find out which ABI we are using.
77248164 echo 'int i;' > conftest.$ac_ext
77368176 x86_64-*linux*)
77378177 LD="${LD-ld} -m elf_i386"
77388178 ;;
7739 ppc64-*linux*|powerpc64-*linux*)
8179 powerpcle-*linux*)
8180 LD="${LD-ld} -m elf32lppclinux"
8181 ;;
8182 powerpc-*linux*)
77408183 LD="${LD-ld} -m elf32ppclinux"
77418184 ;;
77428185 s390x-*linux*)
77558198 x86_64-*linux*)
77568199 LD="${LD-ld} -m elf_x86_64"
77578200 ;;
7758 ppc*-*linux*|powerpc*-*linux*)
8201 powerpcle-*linux*)
8202 LD="${LD-ld} -m elf64lppc"
8203 ;;
8204 powerpc-*linux*)
77598205 LD="${LD-ld} -m elf64ppc"
77608206 ;;
77618207 s390*-*linux*|s390*-*tpf*)
77778223 CFLAGS="$CFLAGS -belf"
77788224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
77798225 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7780 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8226 if ${lt_cv_cc_needs_belf+:} false; then :
77818227 $as_echo_n "(cached) " >&6
77828228 else
77838229 ac_ext=c
78188264 CFLAGS="$SAVE_CFLAGS"
78198265 fi
78208266 ;;
7821 sparc*-*solaris*)
8267 *-*solaris*)
78228268 # Find out which ABI we are using.
78238269 echo 'int i;' > conftest.$ac_ext
78248270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
78298275 case `/usr/bin/file conftest.o` in
78308276 *64-bit*)
78318277 case $lt_cv_prog_gnu_ld in
7832 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8278 yes*)
8279 case $host in
8280 i?86-*-solaris*)
8281 LD="${LD-ld} -m elf_x86_64"
8282 ;;
8283 sparc*-*-solaris*)
8284 LD="${LD-ld} -m elf64_sparc"
8285 ;;
8286 esac
8287 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8288 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8289 LD="${LD-ld}_sol2"
8290 fi
8291 ;;
78338292 *)
78348293 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
78358294 LD="${LD-ld} -64"
78458304
78468305 need_locks="$enable_libtool_lock"
78478306
8307 if test -n "$ac_tool_prefix"; then
8308 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8309 set dummy ${ac_tool_prefix}mt; ac_word=$2
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311 $as_echo_n "checking for $ac_word... " >&6; }
8312 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8313 $as_echo_n "(cached) " >&6
8314 else
8315 if test -n "$MANIFEST_TOOL"; then
8316 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8317 else
8318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8319 for as_dir in $PATH
8320 do
8321 IFS=$as_save_IFS
8322 test -z "$as_dir" && as_dir=.
8323 for ac_exec_ext in '' $ac_executable_extensions; do
8324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8325 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8327 break 2
8328 fi
8329 done
8330 done
8331 IFS=$as_save_IFS
8332
8333 fi
8334 fi
8335 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8336 if test -n "$MANIFEST_TOOL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8338 $as_echo "$MANIFEST_TOOL" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8342 fi
8343
8344
8345 fi
8346 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8347 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8348 # Extract the first word of "mt", so it can be a program name with args.
8349 set dummy mt; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 if test -n "$ac_ct_MANIFEST_TOOL"; then
8356 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8357 else
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 break 2
8368 fi
8369 done
8370 done
8371 IFS=$as_save_IFS
8372
8373 fi
8374 fi
8375 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8376 if test -n "$ac_ct_MANIFEST_TOOL"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8378 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8379 else
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8382 fi
8383
8384 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8385 MANIFEST_TOOL=":"
8386 else
8387 case $cross_compiling:$ac_tool_warned in
8388 yes:)
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391 ac_tool_warned=yes ;;
8392 esac
8393 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8394 fi
8395 else
8396 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8397 fi
8398
8399 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8401 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8402 if ${lt_cv_path_mainfest_tool+:} false; then :
8403 $as_echo_n "(cached) " >&6
8404 else
8405 lt_cv_path_mainfest_tool=no
8406 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8407 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8408 cat conftest.err >&5
8409 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8410 lt_cv_path_mainfest_tool=yes
8411 fi
8412 rm -f conftest*
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8415 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8416 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8417 MANIFEST_TOOL=:
8418 fi
8419
8420
8421
8422
8423
78488424
78498425 case $host_os in
78508426 rhapsody* | darwin*)
78538429 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
78548430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
78558431 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8432 if ${ac_cv_prog_DSYMUTIL+:} false; then :
78578433 $as_echo_n "(cached) " >&6
78588434 else
78598435 if test -n "$DSYMUTIL"; then
78658441 IFS=$as_save_IFS
78668442 test -z "$as_dir" && as_dir=.
78678443 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
78698445 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
78708446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
78718447 break 2
78938469 set dummy dsymutil; ac_word=$2
78948470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
78958471 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8472 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
78978473 $as_echo_n "(cached) " >&6
78988474 else
78998475 if test -n "$ac_ct_DSYMUTIL"; then
79058481 IFS=$as_save_IFS
79068482 test -z "$as_dir" && as_dir=.
79078483 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
79098485 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
79108486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
79118487 break 2
79458521 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
79468522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
79478523 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8524 if ${ac_cv_prog_NMEDIT+:} false; then :
79498525 $as_echo_n "(cached) " >&6
79508526 else
79518527 if test -n "$NMEDIT"; then
79578533 IFS=$as_save_IFS
79588534 test -z "$as_dir" && as_dir=.
79598535 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
79618537 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
79628538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
79638539 break 2
79858561 set dummy nmedit; ac_word=$2
79868562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
79878563 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8564 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
79898565 $as_echo_n "(cached) " >&6
79908566 else
79918567 if test -n "$ac_ct_NMEDIT"; then
79978573 IFS=$as_save_IFS
79988574 test -z "$as_dir" && as_dir=.
79998575 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
80018577 ac_cv_prog_ac_ct_NMEDIT="nmedit"
80028578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80038579 break 2
80378613 set dummy ${ac_tool_prefix}lipo; ac_word=$2
80388614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
80398615 $as_echo_n "checking for $ac_word... " >&6; }
8040 if test "${ac_cv_prog_LIPO+set}" = set; then :
8616 if ${ac_cv_prog_LIPO+:} false; then :
80418617 $as_echo_n "(cached) " >&6
80428618 else
80438619 if test -n "$LIPO"; then
80498625 IFS=$as_save_IFS
80508626 test -z "$as_dir" && as_dir=.
80518627 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
80538629 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
80548630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80558631 break 2
80778653 set dummy lipo; ac_word=$2
80788654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
80798655 $as_echo_n "checking for $ac_word... " >&6; }
8080 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8656 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
80818657 $as_echo_n "(cached) " >&6
80828658 else
80838659 if test -n "$ac_ct_LIPO"; then
80898665 IFS=$as_save_IFS
80908666 test -z "$as_dir" && as_dir=.
80918667 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
80938669 ac_cv_prog_ac_ct_LIPO="lipo"
80948670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
80958671 break 2
81298705 set dummy ${ac_tool_prefix}otool; ac_word=$2
81308706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81318707 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8708 if ${ac_cv_prog_OTOOL+:} false; then :
81338709 $as_echo_n "(cached) " >&6
81348710 else
81358711 if test -n "$OTOOL"; then
81418717 IFS=$as_save_IFS
81428718 test -z "$as_dir" && as_dir=.
81438719 for ac_exec_ext in '' $ac_executable_extensions; do
8144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81458721 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81468722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
81478723 break 2
81698745 set dummy otool; ac_word=$2
81708746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
81718747 $as_echo_n "checking for $ac_word... " >&6; }
8172 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8748 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81738749 $as_echo_n "(cached) " >&6
81748750 else
81758751 if test -n "$ac_ct_OTOOL"; then
81818757 IFS=$as_save_IFS
81828758 test -z "$as_dir" && as_dir=.
81838759 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81858761 ac_cv_prog_ac_ct_OTOOL="otool"
81868762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
81878763 break 2
82218797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
82228798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
82238799 $as_echo_n "checking for $ac_word... " >&6; }
8224 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8800 if ${ac_cv_prog_OTOOL64+:} false; then :
82258801 $as_echo_n "(cached) " >&6
82268802 else
82278803 if test -n "$OTOOL64"; then
82338809 IFS=$as_save_IFS
82348810 test -z "$as_dir" && as_dir=.
82358811 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82378813 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
82388814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82398815 break 2
82618837 set dummy otool64; ac_word=$2
82628838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
82638839 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8840 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
82658841 $as_echo_n "(cached) " >&6
82668842 else
82678843 if test -n "$ac_ct_OTOOL64"; then
82738849 IFS=$as_save_IFS
82748850 test -z "$as_dir" && as_dir=.
82758851 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
82778853 ac_cv_prog_ac_ct_OTOOL64="otool64"
82788854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
82798855 break 2
83368912
83378913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
83388914 $as_echo_n "checking for -single_module linker flag... " >&6; }
8339 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8915 if ${lt_cv_apple_cc_single_mod+:} false; then :
83408916 $as_echo_n "(cached) " >&6
83418917 else
83428918 lt_cv_apple_cc_single_mod=no
83528928 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
83538929 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
83548930 _lt_result=$?
8355 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8931 # If there is a non-empty error log, and "single_module"
8932 # appears in it, assume the flag caused a linker warning
8933 if test -s conftest.err && $GREP single_module conftest.err; then
8934 cat conftest.err >&5
8935 # Otherwise, if the output was created with a 0 exit code from
8936 # the compiler, it worked.
8937 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
83568938 lt_cv_apple_cc_single_mod=yes
83578939 else
83588940 cat conftest.err >&5
83638945 fi
83648946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
83658947 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8948
83668949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
83678950 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8368 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8951 if ${lt_cv_ld_exported_symbols_list+:} false; then :
83698952 $as_echo_n "(cached) " >&6
83708953 else
83718954 lt_cv_ld_exported_symbols_list=no
83958978 fi
83968979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
83978980 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8981
83988982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
83998983 $as_echo_n "checking for -force_load linker flag... " >&6; }
8400 if test "${lt_cv_ld_force_load+set}" = set; then :
8984 if ${lt_cv_ld_force_load+:} false; then :
84018985 $as_echo_n "(cached) " >&6
84028986 else
84038987 lt_cv_ld_force_load=no
84169000 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
84179001 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
84189002 _lt_result=$?
8419 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9003 if test -s conftest.err && $GREP force_load conftest.err; then
9004 cat conftest.err >&5
9005 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
84209006 lt_cv_ld_force_load=yes
84219007 else
84229008 cat conftest.err >&5
84669052 do :
84679053 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
84689054 "
8469 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9055 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
84709056 cat >>confdefs.h <<_ACEOF
84719057 #define HAVE_DLFCN_H 1
84729058 _ACEOF
84759061
84769062 done
84779063
9064
9065
9066
9067 func_stripname_cnf ()
9068 {
9069 case ${2} in
9070 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9071 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9072 esac
9073 } # func_stripname_cnf
84789074
84799075
84809076
85259121
85269122 # Check whether --with-pic was given.
85279123 if test "${with_pic+set}" = set; then :
8528 withval=$with_pic; pic_mode="$withval"
9124 withval=$with_pic; lt_p=${PACKAGE-default}
9125 case $withval in
9126 yes|no) pic_mode=$withval ;;
9127 *)
9128 pic_mode=default
9129 # Look at the argument we got. We use all the common list separators.
9130 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9131 for lt_pkg in $withval; do
9132 IFS="$lt_save_ifs"
9133 if test "X$lt_pkg" = "X$lt_p"; then
9134 pic_mode=yes
9135 fi
9136 done
9137 IFS="$lt_save_ifs"
9138 ;;
9139 esac
85299140 else
85309141 pic_mode=default
85319142 fi
86039214
86049215
86059216
9217
9218
9219
9220
86069221 test -z "$LN_S" && LN_S="ln -s"
86079222
86089223
86249239
86259240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
86269241 $as_echo_n "checking for objdir... " >&6; }
8627 if test "${lt_cv_objdir+set}" = set; then :
9242 if ${lt_cv_objdir+:} false; then :
86289243 $as_echo_n "(cached) " >&6
86299244 else
86309245 rm -f .libs 2>/dev/null
87029317 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
87039318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
87049319 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9320 if ${lt_cv_path_MAGIC_CMD+:} false; then :
87069321 $as_echo_n "(cached) " >&6
87079322 else
87089323 case $MAGIC_CMD in
87689383 if test -n "$ac_tool_prefix"; then
87699384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
87709385 $as_echo_n "checking for file... " >&6; }
8771 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9386 if ${lt_cv_path_MAGIC_CMD+:} false; then :
87729387 $as_echo_n "(cached) " >&6
87739388 else
87749389 case $MAGIC_CMD in
88929507 $RM -r conftest*
88939508
88949509
9510 ## CAVEAT EMPTOR:
9511 ## There is no encapsulation within the following macros, do not change
9512 ## the running order or otherwise move them around unless you know exactly
9513 ## what you are doing...
88959514 if test -n "$compiler"; then
88969515
88979516 lt_prog_compiler_no_builtin_flag=
89069525
89079526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
89089527 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8909 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9528 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
89109529 $as_echo_n "(cached) " >&6
89119530 else
89129531 lt_cv_prog_compiler_rtti_exceptions=no
89599578 lt_prog_compiler_pic=
89609579 lt_prog_compiler_static=
89619580
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8963 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
89649581
89659582 if test "$GCC" = yes; then
89669583 lt_prog_compiler_wl='-Wl,'
90609677 case $cc_basename in
90619678 nvcc*) # Cuda Compiler Driver 2.2
90629679 lt_prog_compiler_wl='-Xlinker '
9063 lt_prog_compiler_pic='-Xcompiler -fPIC'
9680 if test -n "$lt_prog_compiler_pic"; then
9681 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9682 fi
90649683 ;;
90659684 esac
90669685 else
91259744 lt_prog_compiler_pic='--shared'
91269745 lt_prog_compiler_static='--static'
91279746 ;;
9747 nagfor*)
9748 # NAG Fortran compiler
9749 lt_prog_compiler_wl='-Wl,-Wl,,'
9750 lt_prog_compiler_pic='-PIC'
9751 lt_prog_compiler_static='-Bstatic'
9752 ;;
91289753 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
91299754 # Portland Group compilers (*not* the Pentium gcc compiler,
91309755 # which looks to be a dead project)
91459770 ;;
91469771 *)
91479772 case `$CC -V 2>&1 | sed 5q` in
9148 *Sun\ F* | *Sun*Fortran*)
9773 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
91499774 # Sun Fortran 8.3 passes all unrecognized flags to the linker
91509775 lt_prog_compiler_pic='-KPIC'
91519776 lt_prog_compiler_static='-Bstatic'
91529777 lt_prog_compiler_wl=''
9778 ;;
9779 *Sun\ F* | *Sun*Fortran*)
9780 lt_prog_compiler_pic='-KPIC'
9781 lt_prog_compiler_static='-Bstatic'
9782 lt_prog_compiler_wl='-Qoption ld '
91539783 ;;
91549784 *Sun\ C*)
91559785 # Sun C 5.9
91569786 lt_prog_compiler_pic='-KPIC'
91579787 lt_prog_compiler_static='-Bstatic'
91589788 lt_prog_compiler_wl='-Wl,'
9789 ;;
9790 *Intel*\ [CF]*Compiler*)
9791 lt_prog_compiler_wl='-Wl,'
9792 lt_prog_compiler_pic='-fPIC'
9793 lt_prog_compiler_static='-static'
9794 ;;
9795 *Portland\ Group*)
9796 lt_prog_compiler_wl='-Wl,'
9797 lt_prog_compiler_pic='-fpic'
9798 lt_prog_compiler_static='-Bstatic'
91599799 ;;
91609800 esac
91619801 ;;
92449884 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
92459885 ;;
92469886 esac
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9248 $as_echo "$lt_prog_compiler_pic" >&6; }
9249
9250
9251
9252
9253
9887
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9889 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9890 if ${lt_cv_prog_compiler_pic+:} false; then :
9891 $as_echo_n "(cached) " >&6
9892 else
9893 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9894 fi
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9896 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9897 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
92549898
92559899 #
92569900 # Check to make sure the PIC flag actually works.
92589902 if test -n "$lt_prog_compiler_pic"; then
92599903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
92609904 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9261 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9905 if ${lt_cv_prog_compiler_pic_works+:} false; then :
92629906 $as_echo_n "(cached) " >&6
92639907 else
92649908 lt_cv_prog_compiler_pic_works=no
93119955
93129956
93139957
9958
9959
9960
9961
9962
93149963 #
93159964 # Check to make sure the static flag actually works.
93169965 #
93179966 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
93189967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
93199968 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9320 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9969 if ${lt_cv_prog_compiler_static_works+:} false; then :
93219970 $as_echo_n "(cached) " >&6
93229971 else
93239972 lt_cv_prog_compiler_static_works=no
936010009
936110010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
936210011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9363 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10012 if ${lt_cv_prog_compiler_c_o+:} false; then :
936410013 $as_echo_n "(cached) " >&6
936510014 else
936610015 lt_cv_prog_compiler_c_o=no
941510064
941610065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
941710066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9418 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10067 if ${lt_cv_prog_compiler_c_o+:} false; then :
941910068 $as_echo_n "(cached) " >&6
942010069 else
942110070 lt_cv_prog_compiler_c_o=no
950910158 hardcode_direct=no
951010159 hardcode_direct_absolute=no
951110160 hardcode_libdir_flag_spec=
9512 hardcode_libdir_flag_spec_ld=
951310161 hardcode_libdir_separator=
951410162 hardcode_minus_L=no
951510163 hardcode_shlibpath_var=unsupported
966110309 allow_undefined_flag=unsupported
966210310 always_export_symbols=no
966310311 enable_shared_with_static_runtimes=yes
9664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10312 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'
10313 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
966510314
966610315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
966710316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
970910358 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
971010359 && test "$tmp_diet" = no
971110360 then
9712 tmp_addflag=
10361 tmp_addflag=' $pic_flag'
971310362 tmp_sharedflag='-shared'
971410363 case $cc_basename,$host_cpu in
971510364 pgcc*) # Portland Group C compiler
975810407 xlf* | bgf* | bgxlf* | mpixlf*)
975910408 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
976010409 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9761 hardcode_libdir_flag_spec=
9762 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
976310411 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
976410412 if test "x$supports_anon_versioning" = xyes; then
976510413 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
977910427 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
978010428 wlarc=
978110429 else
9782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10430 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10431 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
978410432 fi
978510433 ;;
978610434
979810446
979910447 _LT_EOF
980010448 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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'
10449 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10450 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
980310451 else
980410452 ld_shlibs=no
980510453 fi
984510493
984610494 *)
984710495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10497 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
985010498 else
985110499 ld_shlibs=no
985210500 fi
997610624 allow_undefined_flag='-berok'
997710625 # Determine the default libpath from the value encoded in an
997810626 # empty executable.
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 if test "${lt_cv_aix_libpath+set}" = set; then
10628 aix_libpath=$lt_cv_aix_libpath
10629 else
10630 if ${lt_cv_aix_libpath_+:} false; then :
10631 $as_echo_n "(cached) " >&6
10632 else
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
998010634 /* end confdefs.h. */
998110635
998210636 int
998910643 _ACEOF
999010644 if ac_fn_c_try_link "$LINENO"; then :
999110645
9992 lt_aix_libpath_sed='
9993 /Import File Strings/,/^$/ {
9994 /^0/ {
9995 s/^0 *\(.*\)$/\1/
9996 p
9997 }
9998 }'
9999 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10000 # Check for a 64-bit object if we didn't find anything.
10001 if test -z "$aix_libpath"; then
10002 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10003 fi
10646 lt_aix_libpath_sed='
10647 /Import File Strings/,/^$/ {
10648 /^0/ {
10649 s/^0 *\([^ ]*\) *$/\1/
10650 p
10651 }
10652 }'
10653 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10654 # Check for a 64-bit object if we didn't find anything.
10655 if test -z "$lt_cv_aix_libpath_"; then
10656 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10657 fi
1000410658 fi
1000510659 rm -f core conftest.err conftest.$ac_objext \
1000610660 conftest$ac_exeext conftest.$ac_ext
10007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10661 if test -z "$lt_cv_aix_libpath_"; then
10662 lt_cv_aix_libpath_="/usr/lib:/lib"
10663 fi
10664
10665 fi
10666
10667 aix_libpath=$lt_cv_aix_libpath_
10668 fi
1000810669
1000910670 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1001010671 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1001610677 else
1001710678 # Determine the default libpath from the value encoded in an
1001810679 # empty executable.
10019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680 if test "${lt_cv_aix_libpath+set}" = set; then
10681 aix_libpath=$lt_cv_aix_libpath
10682 else
10683 if ${lt_cv_aix_libpath_+:} false; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1002010687 /* end confdefs.h. */
1002110688
1002210689 int
1002910696 _ACEOF
1003010697 if ac_fn_c_try_link "$LINENO"; then :
1003110698
10032 lt_aix_libpath_sed='
10033 /Import File Strings/,/^$/ {
10034 /^0/ {
10035 s/^0 *\(.*\)$/\1/
10036 p
10037 }
10038 }'
10039 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10040 # Check for a 64-bit object if we didn't find anything.
10041 if test -z "$aix_libpath"; then
10042 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10043 fi
10699 lt_aix_libpath_sed='
10700 /Import File Strings/,/^$/ {
10701 /^0/ {
10702 s/^0 *\([^ ]*\) *$/\1/
10703 p
10704 }
10705 }'
10706 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10707 # Check for a 64-bit object if we didn't find anything.
10708 if test -z "$lt_cv_aix_libpath_"; then
10709 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10710 fi
1004410711 fi
1004510712 rm -f core conftest.err conftest.$ac_objext \
1004610713 conftest$ac_exeext conftest.$ac_ext
10047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10714 if test -z "$lt_cv_aix_libpath_"; then
10715 lt_cv_aix_libpath_="/usr/lib:/lib"
10716 fi
10717
10718 fi
10719
10720 aix_libpath=$lt_cv_aix_libpath_
10721 fi
1004810722
1004910723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1005010724 # Warning - without using the other run time loading flags,
1008910763 # Microsoft Visual C++.
1009010764 # hardcode_libdir_flag_spec is actually meaningless, as there is
1009110765 # no search path for DLLs.
10092 hardcode_libdir_flag_spec=' '
10093 allow_undefined_flag=unsupported
10094 # Tell ltmain to make .lib files, not .a files.
10095 libext=lib
10096 # Tell ltmain to make .dll files, not .so files.
10097 shrext_cmds=".dll"
10098 # FIXME: Setting linknames here is a bad hack.
10099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10100 # The linker will automatically build a .lib file if we build a DLL.
10101 old_archive_from_new_cmds='true'
10102 # FIXME: Should let the user specify the lib program.
10103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10104 fix_srcfile_path='`cygpath -w "$srcfile"`'
10105 enable_shared_with_static_runtimes=yes
10766 case $cc_basename in
10767 cl*)
10768 # Native MSVC
10769 hardcode_libdir_flag_spec=' '
10770 allow_undefined_flag=unsupported
10771 always_export_symbols=yes
10772 file_list_spec='@'
10773 # Tell ltmain to make .lib files, not .a files.
10774 libext=lib
10775 # Tell ltmain to make .dll files, not .so files.
10776 shrext_cmds=".dll"
10777 # FIXME: Setting linknames here is a bad hack.
10778 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10779 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10780 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10781 else
10782 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10783 fi~
10784 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10785 linknames='
10786 # The linker will not automatically build a static lib if we build a DLL.
10787 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10788 enable_shared_with_static_runtimes=yes
10789 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10790 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10791 # Don't use ranlib
10792 old_postinstall_cmds='chmod 644 $oldlib'
10793 postlink_cmds='lt_outputfile="@OUTPUT@"~
10794 lt_tool_outputfile="@TOOL_OUTPUT@"~
10795 case $lt_outputfile in
10796 *.exe|*.EXE) ;;
10797 *)
10798 lt_outputfile="$lt_outputfile.exe"
10799 lt_tool_outputfile="$lt_tool_outputfile.exe"
10800 ;;
10801 esac~
10802 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10803 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10804 $RM "$lt_outputfile.manifest";
10805 fi'
10806 ;;
10807 *)
10808 # Assume MSVC wrapper
10809 hardcode_libdir_flag_spec=' '
10810 allow_undefined_flag=unsupported
10811 # Tell ltmain to make .lib files, not .a files.
10812 libext=lib
10813 # Tell ltmain to make .dll files, not .so files.
10814 shrext_cmds=".dll"
10815 # FIXME: Setting linknames here is a bad hack.
10816 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10817 # The linker will automatically build a .lib file if we build a DLL.
10818 old_archive_from_new_cmds='true'
10819 # FIXME: Should let the user specify the lib program.
10820 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10821 enable_shared_with_static_runtimes=yes
10822 ;;
10823 esac
1010610824 ;;
1010710825
1010810826 darwin* | rhapsody*)
1011410832 hardcode_shlibpath_var=unsupported
1011510833 if test "$lt_cv_ld_force_load" = "yes"; then
1011610834 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\"`'
10835
1011710836 else
1011810837 whole_archive_flag_spec=''
1011910838 fi
1014210861 hardcode_shlibpath_var=no
1014310862 ;;
1014410863
10145 freebsd1*)
10146 ld_shlibs=no
10147 ;;
10148
1014910864 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1015010865 # support. Future versions do this automatically, but an explicit c++rt0.o
1015110866 # does not break anything, and helps significantly (at the cost of a little
1015810873 ;;
1015910874
1016010875 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10161 freebsd2*)
10876 freebsd2.*)
1016210877 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1016310878 hardcode_direct=yes
1016410879 hardcode_minus_L=yes
1016710882
1016810883 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1016910884 freebsd* | dragonfly*)
10170 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10885 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1017110886 hardcode_libdir_flag_spec='-R$libdir'
1017210887 hardcode_direct=yes
1017310888 hardcode_shlibpath_var=no
1017510890
1017610891 hpux9*)
1017710892 if test "$GCC" = yes; then
10178 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10893 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1017910894 else
1018010895 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1018110896 fi
1019110906
1019210907 hpux10*)
1019310908 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10194 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10909 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1019510910 else
1019610911 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1019710912 fi
1019810913 if test "$with_gnu_ld" = no; then
1019910914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10200 hardcode_libdir_flag_spec_ld='+b $libdir'
1020110915 hardcode_libdir_separator=:
1020210916 hardcode_direct=yes
1020310917 hardcode_direct_absolute=yes
1021510929 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1021610930 ;;
1021710931 ia64*)
10218 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10932 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
1021910933 ;;
1022010934 *)
10221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10935 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1022210936 ;;
1022310937 esac
1022410938 else
1023510949 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
1023610950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
1023710951 $as_echo_n "checking if $CC understands -b... " >&6; }
10238 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10952 if ${lt_cv_prog_compiler__b+:} false; then :
1023910953 $as_echo_n "(cached) " >&6
1024010954 else
1024110955 lt_cv_prog_compiler__b=no
1029711011
1029811012 irix5* | irix6* | nonstopux*)
1029911013 if test "$GCC" = yes; then
10300 archive_cmds='$CC -shared $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'
11014 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'
1030111015 # Try to use the -exported_symbol ld option, if it does not
1030211016 # work, assume that -exports_file does not work either and
1030311017 # implicitly export all symbols.
10304 save_LDFLAGS="$LDFLAGS"
10305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 # This should be the same for all languages, so no per-tag cache variable.
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11020 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11021 if ${lt_cv_irix_exported_symbol+:} false; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 save_LDFLAGS="$LDFLAGS"
11025 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1030711027 /* end confdefs.h. */
10308 int foo(void) {}
11028 int foo (void) { return 0; }
1030911029 _ACEOF
1031011030 if ac_fn_c_try_link "$LINENO"; then :
10311 archive_expsym_cmds='$CC -shared $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'
10312
11031 lt_cv_irix_exported_symbol=yes
11032 else
11033 lt_cv_irix_exported_symbol=no
1031311034 fi
1031411035 rm -f core conftest.err conftest.$ac_objext \
1031511036 conftest$ac_exeext conftest.$ac_ext
10316 LDFLAGS="$save_LDFLAGS"
11037 LDFLAGS="$save_LDFLAGS"
11038 fi
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11040 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11041 if test "$lt_cv_irix_exported_symbol" = yes; then
11042 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'
11043 fi
1031711044 else
1031811045 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'
1031911046 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'
1039811125 osf4* | osf5*) # as osf3* with the addition of -msym flag
1039911126 if test "$GCC" = yes; then
1040011127 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10401 archive_cmds='$CC -shared${allow_undefined_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'
11128 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'
1040211129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1040311130 else
1040411131 allow_undefined_flag=' -expect_unresolved \*'
1041711144 no_undefined_flag=' -z defs'
1041811145 if test "$GCC" = yes; then
1041911146 wlarc='${wl}'
10420 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11147 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1042111148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10422 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11149 $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'
1042311150 else
1042411151 case `$CC -V 2>&1` in
1042511152 *"Compilers 5.0"*)
1060711334 # to ld, don't add -lc before -lgcc.
1060811335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1060911336 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10610 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11337 if ${lt_cv_archive_cmds_need_lc+:} false; then :
1061111338 $as_echo_n "(cached) " >&6
1061211339 else
1061311340 $RM conftest*
1065611383 fi
1065711384 ;;
1065811385 esac
10659
10660
10661
10662
10663
1066411386
1066511387
1066611388
1090211624
1090311625 case $host_os in
1090411626 aix3*)
10905 version_type=linux
11627 version_type=linux # correct to gnu/linux during the next big refactor
1090611628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1090711629 shlibpath_var=LIBPATH
1090811630
1091111633 ;;
1091211634
1091311635 aix[4-9]*)
10914 version_type=linux
11636 version_type=linux # correct to gnu/linux during the next big refactor
1091511637 need_lib_prefix=no
1091611638 need_version=no
1091711639 hardcode_into_libs=yes
1097611698 ;;
1097711699
1097811700 bsdi[45]*)
10979 version_type=linux
11701 version_type=linux # correct to gnu/linux during the next big refactor
1098011702 need_version=no
1098111703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1098211704 soname_spec='${libname}${release}${shared_ext}$major'
1099511717 need_version=no
1099611718 need_lib_prefix=no
1099711719
10998 case $GCC,$host_os in
10999 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11720 case $GCC,$cc_basename in
11721 yes,*)
11722 # gcc
1100011723 library_names_spec='$libname.dll.a'
1100111724 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1100211725 postinstall_cmds='base_file=`basename \${file}`~
1102911752 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1103011753 ;;
1103111754 esac
11755 dynamic_linker='Win32 ld.exe'
1103211756 ;;
1103311757
11758 *,cl*)
11759 # Native MSVC
11760 libname_spec='$name'
11761 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11762 library_names_spec='${libname}.dll.lib'
11763
11764 case $build_os in
11765 mingw*)
11766 sys_lib_search_path_spec=
11767 lt_save_ifs=$IFS
11768 IFS=';'
11769 for lt_path in $LIB
11770 do
11771 IFS=$lt_save_ifs
11772 # Let DOS variable expansion print the short 8.3 style file name.
11773 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11774 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11775 done
11776 IFS=$lt_save_ifs
11777 # Convert to MSYS style.
11778 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11779 ;;
11780 cygwin*)
11781 # Convert to unix form, then to dos form, then back to unix form
11782 # but this time dos style (no spaces!) so that the unix form looks
11783 # like /cygdrive/c/PROGRA~1:/cygdr...
11784 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11785 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11786 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11787 ;;
11788 *)
11789 sys_lib_search_path_spec="$LIB"
11790 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11791 # It is most probably a Windows format PATH.
11792 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11793 else
11794 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11795 fi
11796 # FIXME: find the short name or the path components, as spaces are
11797 # common. (e.g. "Program Files" -> "PROGRA~1")
11798 ;;
11799 esac
11800
11801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11802 postinstall_cmds='base_file=`basename \${file}`~
11803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11804 dldir=$destdir/`dirname \$dlpath`~
11805 test -d \$dldir || mkdir -p \$dldir~
11806 $install_prog $dir/$dlname \$dldir/$dlname'
11807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11808 dlpath=$dir/\$dldll~
11809 $RM \$dlpath'
11810 shlibpath_overrides_runpath=yes
11811 dynamic_linker='Win32 link.exe'
11812 ;;
11813
1103411814 *)
11815 # Assume MSVC wrapper
1103511816 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11817 dynamic_linker='Win32 ld.exe'
1103611818 ;;
1103711819 esac
11038 dynamic_linker='Win32 ld.exe'
1103911820 # FIXME: first we should search . and the directory the executable is in
1104011821 shlibpath_var=PATH
1104111822 ;;
1105611837 ;;
1105711838
1105811839 dgux*)
11059 version_type=linux
11840 version_type=linux # correct to gnu/linux during the next big refactor
1106011841 need_lib_prefix=no
1106111842 need_version=no
1106211843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1106311844 soname_spec='${libname}${release}${shared_ext}$major'
1106411845 shlibpath_var=LD_LIBRARY_PATH
11065 ;;
11066
11067 freebsd1*)
11068 dynamic_linker=no
1106911846 ;;
1107011847
1107111848 freebsd* | dragonfly*)
1107511852 objformat=`/usr/bin/objformat`
1107611853 else
1107711854 case $host_os in
11078 freebsd[123]*) objformat=aout ;;
11855 freebsd[23].*) objformat=aout ;;
1107911856 *) objformat=elf ;;
1108011857 esac
1108111858 fi
1109311870 esac
1109411871 shlibpath_var=LD_LIBRARY_PATH
1109511872 case $host_os in
11096 freebsd2*)
11873 freebsd2.*)
1109711874 shlibpath_overrides_runpath=yes
1109811875 ;;
1109911876 freebsd3.[01]* | freebsdelf3.[01]*)
1111311890 ;;
1111411891
1111511892 gnu*)
11116 version_type=linux
11893 version_type=linux # correct to gnu/linux during the next big refactor
1111711894 need_lib_prefix=no
1111811895 need_version=no
1111911896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1112011897 soname_spec='${libname}${release}${shared_ext}$major'
1112111898 shlibpath_var=LD_LIBRARY_PATH
11899 shlibpath_overrides_runpath=no
1112211900 hardcode_into_libs=yes
1112311901 ;;
1112411902
1112511903 haiku*)
11126 version_type=linux
11904 version_type=linux # correct to gnu/linux during the next big refactor
1112711905 need_lib_prefix=no
1112811906 need_version=no
1112911907 dynamic_linker="$host_os runtime_loader"
1118411962 ;;
1118511963
1118611964 interix[3-9]*)
11187 version_type=linux
11965 version_type=linux # correct to gnu/linux during the next big refactor
1118811966 need_lib_prefix=no
1118911967 need_version=no
1119011968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1120011978 nonstopux*) version_type=nonstopux ;;
1120111979 *)
1120211980 if test "$lt_cv_prog_gnu_ld" = yes; then
11203 version_type=linux
11981 version_type=linux # correct to gnu/linux during the next big refactor
1120411982 else
1120511983 version_type=irix
1120611984 fi ;;
1123712015 dynamic_linker=no
1123812016 ;;
1123912017
11240 # This must be Linux ELF.
12018 # This must be glibc/ELF.
1124112019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11242 version_type=linux
12020 version_type=linux # correct to gnu/linux during the next big refactor
1124312021 need_lib_prefix=no
1124412022 need_version=no
1124512023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1124912027 shlibpath_overrides_runpath=no
1125012028
1125112029 # Some binutils ld are patched to set DT_RUNPATH
11252 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12030 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
1125312031 $as_echo_n "(cached) " >&6
1125412032 else
1125512033 lt_cv_shlibpath_overrides_runpath=no
1132512103 ;;
1132612104
1132712105 newsos6)
11328 version_type=linux
12106 version_type=linux # correct to gnu/linux during the next big refactor
1132912107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1133012108 shlibpath_var=LD_LIBRARY_PATH
1133112109 shlibpath_overrides_runpath=yes
1139412172 ;;
1139512173
1139612174 solaris*)
11397 version_type=linux
12175 version_type=linux # correct to gnu/linux during the next big refactor
1139812176 need_lib_prefix=no
1139912177 need_version=no
1140012178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1141912197 ;;
1142012198
1142112199 sysv4 | sysv4.3*)
11422 version_type=linux
12200 version_type=linux # correct to gnu/linux during the next big refactor
1142312201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1142412202 soname_spec='${libname}${release}${shared_ext}$major'
1142512203 shlibpath_var=LD_LIBRARY_PATH
1144312221
1144412222 sysv4*MP*)
1144512223 if test -d /usr/nec ;then
11446 version_type=linux
12224 version_type=linux # correct to gnu/linux during the next big refactor
1144712225 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1144812226 soname_spec='$libname${shared_ext}.$major'
1144912227 shlibpath_var=LD_LIBRARY_PATH
1147412252
1147512253 tpf*)
1147612254 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11477 version_type=linux
12255 version_type=linux # correct to gnu/linux during the next big refactor
1147812256 need_lib_prefix=no
1147912257 need_version=no
1148012258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1148412262 ;;
1148512263
1148612264 uts4*)
11487 version_type=linux
12265 version_type=linux # correct to gnu/linux during the next big refactor
1148812266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1148912267 soname_spec='${libname}${release}${shared_ext}$major'
1149012268 shlibpath_var=LD_LIBRARY_PATH
1167312451 # if libdl is installed we need to link against it
1167412452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1167512453 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11676 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12454 if ${ac_cv_lib_dl_dlopen+:} false; then :
1167712455 $as_echo_n "(cached) " >&6
1167812456 else
1167912457 ac_check_lib_save_LIBS=$LIBS
1170712485 fi
1170812486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1170912487 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11710 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12488 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1171112489 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1171212490 else
1171312491
1172112499
1172212500 *)
1172312501 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11724 if test "x$ac_cv_func_shl_load" = x""yes; then :
12502 if test "x$ac_cv_func_shl_load" = xyes; then :
1172512503 lt_cv_dlopen="shl_load"
1172612504 else
1172712505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1172812506 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11729 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12507 if ${ac_cv_lib_dld_shl_load+:} false; then :
1173012508 $as_echo_n "(cached) " >&6
1173112509 else
1173212510 ac_check_lib_save_LIBS=$LIBS
1176012538 fi
1176112539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1176212540 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11763 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12541 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
1176412542 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1176512543 else
1176612544 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11767 if test "x$ac_cv_func_dlopen" = x""yes; then :
12545 if test "x$ac_cv_func_dlopen" = xyes; then :
1176812546 lt_cv_dlopen="dlopen"
1176912547 else
1177012548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1177112549 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11772 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12550 if ${ac_cv_lib_dl_dlopen+:} false; then :
1177312551 $as_echo_n "(cached) " >&6
1177412552 else
1177512553 ac_check_lib_save_LIBS=$LIBS
1180312581 fi
1180412582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1180512583 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11806 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12584 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1180712585 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1180812586 else
1180912587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1181012588 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11811 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12589 if ${ac_cv_lib_svld_dlopen+:} false; then :
1181212590 $as_echo_n "(cached) " >&6
1181312591 else
1181412592 ac_check_lib_save_LIBS=$LIBS
1184212620 fi
1184312621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1184412622 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11845 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12623 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
1184612624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1184712625 else
1184812626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1184912627 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11850 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12628 if ${ac_cv_lib_dld_dld_link+:} false; then :
1185112629 $as_echo_n "(cached) " >&6
1185212630 else
1185312631 ac_check_lib_save_LIBS=$LIBS
1188112659 fi
1188212660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1188312661 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11884 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12662 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
1188512663 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1188612664 fi
1188712665
1192212700
1192312701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1192412702 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11925 if test "${lt_cv_dlopen_self+set}" = set; then :
12703 if ${lt_cv_dlopen_self+:} false; then :
1192612704 $as_echo_n "(cached) " >&6
1192712705 else
1192812706 if test "$cross_compiling" = yes; then :
1197512753 /* When -fvisbility=hidden is used, assume the code has been annotated
1197612754 correspondingly for the symbols needed. */
1197712755 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11978 void fnord () __attribute__((visibility("default")));
12756 int fnord () __attribute__((visibility("default")));
1197912757 #endif
1198012758
11981 void fnord () { int i=42; }
12759 int fnord () { return 42; }
1198212760 int main ()
1198312761 {
1198412762 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1202812806 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1202912807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1203012808 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12031 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12809 if ${lt_cv_dlopen_self_static+:} false; then :
1203212810 $as_echo_n "(cached) " >&6
1203312811 else
1203412812 if test "$cross_compiling" = yes; then :
1208112859 /* When -fvisbility=hidden is used, assume the code has been annotated
1208212860 correspondingly for the symbols needed. */
1208312861 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12084 void fnord () __attribute__((visibility("default")));
12862 int fnord () __attribute__((visibility("default")));
1208512863 #endif
1208612864
12087 void fnord () { int i=42; }
12865 int fnord () { return 42; }
1208812866 int main ()
1208912867 {
1209012868 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1226513043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
1226613044 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
1226713045 if test -z "$CXXCPP"; then
12268 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13046 if ${ac_cv_prog_CXXCPP+:} false; then :
1226913047 $as_echo_n "(cached) " >&6
1227013048 else
1227113049 # Double quotes because CXXCPP needs to be expanded
1229513073 # Broken: fails on valid input.
1229613074 continue
1229713075 fi
12298 rm -f conftest.err conftest.$ac_ext
13076 rm -f conftest.err conftest.i conftest.$ac_ext
1229913077
1230013078 # OK, works on sane cases. Now check whether nonexistent headers
1230113079 # can be detected and how.
1231113089 ac_preproc_ok=:
1231213090 break
1231313091 fi
12314 rm -f conftest.err conftest.$ac_ext
13092 rm -f conftest.err conftest.i conftest.$ac_ext
1231513093
1231613094 done
1231713095 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12318 rm -f conftest.err conftest.$ac_ext
13096 rm -f conftest.i conftest.err conftest.$ac_ext
1231913097 if $ac_preproc_ok; then :
1232013098 break
1232113099 fi
1235413132 # Broken: fails on valid input.
1235513133 continue
1235613134 fi
12357 rm -f conftest.err conftest.$ac_ext
13135 rm -f conftest.err conftest.i conftest.$ac_ext
1235813136
1235913137 # OK, works on sane cases. Now check whether nonexistent headers
1236013138 # can be detected and how.
1237013148 ac_preproc_ok=:
1237113149 break
1237213150 fi
12373 rm -f conftest.err conftest.$ac_ext
13151 rm -f conftest.err conftest.i conftest.$ac_ext
1237413152
1237513153 done
1237613154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12377 rm -f conftest.err conftest.$ac_ext
13155 rm -f conftest.i conftest.err conftest.$ac_ext
1237813156 if $ac_preproc_ok; then :
1237913157
1238013158 else
1240913187 hardcode_direct_CXX=no
1241013188 hardcode_direct_absolute_CXX=no
1241113189 hardcode_libdir_flag_spec_CXX=
12412 hardcode_libdir_flag_spec_ld_CXX=
1241313190 hardcode_libdir_separator_CXX=
1241413191 hardcode_minus_L_CXX=no
1241513192 hardcode_shlibpath_var_CXX=unsupported
1247613253
1247713254 # Allow CC to be a program name with arguments.
1247813255 lt_save_CC=$CC
13256 lt_save_CFLAGS=$CFLAGS
1247913257 lt_save_LD=$LD
1248013258 lt_save_GCC=$GCC
1248113259 GCC=$GXX
1249313271 fi
1249413272 test -z "${LDCXX+set}" || LD=$LDCXX
1249513273 CC=${CXX-"c++"}
13274 CFLAGS=$CXXFLAGS
1249613275 compiler=$CC
1249713276 compiler_CXX=$CC
1249813277 for cc_temp in $compiler""; do
1256613345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
1256713346 $as_echo_n "checking for non-GNU ld... " >&6; }
1256813347 fi
12569 if test "${lt_cv_path_LD+set}" = set; then :
13348 if ${lt_cv_path_LD+:} false; then :
1257013349 $as_echo_n "(cached) " >&6
1257113350 else
1257213351 if test -z "$LD"; then
1260613385 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
1260713386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
1260813387 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12609 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13388 if ${lt_cv_prog_gnu_ld+:} false; then :
1261013389 $as_echo_n "(cached) " >&6
1261113390 else
1261213391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
1263213411 # Check if GNU C++ uses GNU ld as the underlying linker, since the
1263313412 # archiving commands below assume that GNU ld is being used.
1263413413 if test "$with_gnu_ld" = yes; then
12635 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12636 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13414 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13415 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'
1263713416
1263813417 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1263913418 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1277513554 allow_undefined_flag_CXX='-berok'
1277613555 # Determine the default libpath from the value encoded in an empty
1277713556 # executable.
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 if test "${lt_cv_aix_libpath+set}" = set; then
13558 aix_libpath=$lt_cv_aix_libpath
13559 else
13560 if ${lt_cv_aix_libpath__CXX+:} false; then :
13561 $as_echo_n "(cached) " >&6
13562 else
13563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1277913564 /* end confdefs.h. */
1278013565
1278113566 int
1278813573 _ACEOF
1278913574 if ac_fn_cxx_try_link "$LINENO"; then :
1279013575
12791 lt_aix_libpath_sed='
12792 /Import File Strings/,/^$/ {
12793 /^0/ {
12794 s/^0 *\(.*\)$/\1/
12795 p
12796 }
12797 }'
12798 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12799 # Check for a 64-bit object if we didn't find anything.
12800 if test -z "$aix_libpath"; then
12801 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12802 fi
13576 lt_aix_libpath_sed='
13577 /Import File Strings/,/^$/ {
13578 /^0/ {
13579 s/^0 *\([^ ]*\) *$/\1/
13580 p
13581 }
13582 }'
13583 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13584 # Check for a 64-bit object if we didn't find anything.
13585 if test -z "$lt_cv_aix_libpath__CXX"; then
13586 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13587 fi
1280313588 fi
1280413589 rm -f core conftest.err conftest.$ac_objext \
1280513590 conftest$ac_exeext conftest.$ac_ext
12806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13591 if test -z "$lt_cv_aix_libpath__CXX"; then
13592 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13593 fi
13594
13595 fi
13596
13597 aix_libpath=$lt_cv_aix_libpath__CXX
13598 fi
1280713599
1280813600 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1280913601
1281613608 else
1281713609 # Determine the default libpath from the value encoded in an
1281813610 # empty executable.
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 if test "${lt_cv_aix_libpath+set}" = set; then
13612 aix_libpath=$lt_cv_aix_libpath
13613 else
13614 if ${lt_cv_aix_libpath__CXX+:} false; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1282013618 /* end confdefs.h. */
1282113619
1282213620 int
1282913627 _ACEOF
1283013628 if ac_fn_cxx_try_link "$LINENO"; then :
1283113629
12832 lt_aix_libpath_sed='
12833 /Import File Strings/,/^$/ {
12834 /^0/ {
12835 s/^0 *\(.*\)$/\1/
12836 p
12837 }
12838 }'
12839 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12840 # Check for a 64-bit object if we didn't find anything.
12841 if test -z "$aix_libpath"; then
12842 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12843 fi
13630 lt_aix_libpath_sed='
13631 /Import File Strings/,/^$/ {
13632 /^0/ {
13633 s/^0 *\([^ ]*\) *$/\1/
13634 p
13635 }
13636 }'
13637 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13638 # Check for a 64-bit object if we didn't find anything.
13639 if test -z "$lt_cv_aix_libpath__CXX"; then
13640 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13641 fi
1284413642 fi
1284513643 rm -f core conftest.err conftest.$ac_objext \
1284613644 conftest$ac_exeext conftest.$ac_ext
12847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13645 if test -z "$lt_cv_aix_libpath__CXX"; then
13646 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13647 fi
13648
13649 fi
13650
13651 aix_libpath=$lt_cv_aix_libpath__CXX
13652 fi
1284813653
1284913654 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1285013655 # Warning - without using the other run time loading flags,
1288713692 ;;
1288813693
1288913694 cygwin* | mingw* | pw32* | cegcc*)
12890 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12891 # as there is no search path for DLLs.
12892 hardcode_libdir_flag_spec_CXX='-L$libdir'
12893 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12894 allow_undefined_flag_CXX=unsupported
12895 always_export_symbols_CXX=no
12896 enable_shared_with_static_runtimes_CXX=yes
12897
12898 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12899 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'
12900 # If the export-symbols file already is a .def file (1st line
12901 # is EXPORTS), use it as is; otherwise, prepend...
12902 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12903 cp $export_symbols $output_objdir/$soname.def;
12904 else
12905 echo EXPORTS > $output_objdir/$soname.def;
12906 cat $export_symbols >> $output_objdir/$soname.def;
12907 fi~
12908 $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'
12909 else
12910 ld_shlibs_CXX=no
12911 fi
12912 ;;
13695 case $GXX,$cc_basename in
13696 ,cl* | no,cl*)
13697 # Native MSVC
13698 # hardcode_libdir_flag_spec is actually meaningless, as there is
13699 # no search path for DLLs.
13700 hardcode_libdir_flag_spec_CXX=' '
13701 allow_undefined_flag_CXX=unsupported
13702 always_export_symbols_CXX=yes
13703 file_list_spec_CXX='@'
13704 # Tell ltmain to make .lib files, not .a files.
13705 libext=lib
13706 # Tell ltmain to make .dll files, not .so files.
13707 shrext_cmds=".dll"
13708 # FIXME: Setting linknames here is a bad hack.
13709 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13710 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13711 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13712 else
13713 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13714 fi~
13715 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13716 linknames='
13717 # The linker will not automatically build a static lib if we build a DLL.
13718 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13719 enable_shared_with_static_runtimes_CXX=yes
13720 # Don't use ranlib
13721 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13722 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13723 lt_tool_outputfile="@TOOL_OUTPUT@"~
13724 case $lt_outputfile in
13725 *.exe|*.EXE) ;;
13726 *)
13727 lt_outputfile="$lt_outputfile.exe"
13728 lt_tool_outputfile="$lt_tool_outputfile.exe"
13729 ;;
13730 esac~
13731 func_to_tool_file "$lt_outputfile"~
13732 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13733 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13734 $RM "$lt_outputfile.manifest";
13735 fi'
13736 ;;
13737 *)
13738 # g++
13739 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13740 # as there is no search path for DLLs.
13741 hardcode_libdir_flag_spec_CXX='-L$libdir'
13742 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13743 allow_undefined_flag_CXX=unsupported
13744 always_export_symbols_CXX=no
13745 enable_shared_with_static_runtimes_CXX=yes
13746
13747 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13748 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'
13749 # If the export-symbols file already is a .def file (1st line
13750 # is EXPORTS), use it as is; otherwise, prepend...
13751 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13752 cp $export_symbols $output_objdir/$soname.def;
13753 else
13754 echo EXPORTS > $output_objdir/$soname.def;
13755 cat $export_symbols >> $output_objdir/$soname.def;
13756 fi~
13757 $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'
13758 else
13759 ld_shlibs_CXX=no
13760 fi
13761 ;;
13762 esac
13763 ;;
1291313764 darwin* | rhapsody*)
1291413765
1291513766
1291913770 hardcode_shlibpath_var_CXX=unsupported
1292013771 if test "$lt_cv_ld_force_load" = "yes"; then
1292113772 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\"`'
13773
1292213774 else
1292313775 whole_archive_flag_spec_CXX=''
1292413776 fi
1296313815 esac
1296413816 ;;
1296513817
12966 freebsd[12]*)
13818 freebsd2.*)
1296713819 # C++ shared libraries reported to be fairly broken before
1296813820 # switch to ELF
1296913821 ld_shlibs_CXX=no
1301513867 ;;
1301613868 *)
1301713869 if test "$GXX" = yes; then
13018 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13870 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1301913871 else
1302013872 # FIXME: insert proper C++ library support
1302113873 ld_shlibs_CXX=no
1308613938 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1308713939 ;;
1308813940 ia64*)
13089 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13941 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1309013942 ;;
1309113943 *)
13092 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13944 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'
1309313945 ;;
1309413946 esac
1309513947 fi
1313013982 *)
1313113983 if test "$GXX" = yes; then
1313213984 if test "$with_gnu_ld" = no; then
13133 archive_cmds_CXX='$CC -shared -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'
13985 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'
1313413986 else
13135 archive_cmds_CXX='$CC -shared -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'
13987 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'
1313613988 fi
1313713989 fi
1313813990 link_all_deplibs_CXX=yes
1341014262 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'
1341114263 ;;
1341214264 *)
13413 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14265 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'
1341414266 ;;
1341514267 esac
1341614268
1349714349 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1349814350 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
1349914351 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13500 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14352 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1350114353 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13502 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14354 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
1350314355
1350414356 # Commands to make compiler produce verbose output that lists
1350514357 # what "hidden" libraries, object files and flags are used when
1363414486 };
1363514487 _LT_EOF
1363614488
14489
14490 _lt_libdeps_save_CFLAGS=$CFLAGS
14491 case "$CC $CFLAGS " in #(
14492 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14493 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14494 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14495 esac
14496
1363714497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
1363814498 (eval $ac_compile) 2>&5
1363914499 ac_status=$?
1364714507 pre_test_object_deps_done=no
1364814508
1364914509 for p in `eval "$output_verbose_link_cmd"`; do
13650 case $p in
14510 case ${prev}${p} in
1365114511
1365214512 -L* | -R* | -l*)
1365314513 # Some compilers place space between "-{L,R}" and the path.
1365614516 test $p = "-R"; then
1365714517 prev=$p
1365814518 continue
13659 else
13660 prev=
1366114519 fi
1366214520
14521 # Expand the sysroot to ease extracting the directories later.
14522 if test -z "$prev"; then
14523 case $p in
14524 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14525 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14526 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14527 esac
14528 fi
14529 case $p in
14530 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14531 esac
1366314532 if test "$pre_test_object_deps_done" = no; then
13664 case $p in
13665 -L* | -R*)
14533 case ${prev} in
14534 -L | -R)
1366614535 # Internal compiler library paths should come after those
1366714536 # provided the user. The postdeps already come after the
1366814537 # user supplied libs so there is no need to process them.
1368214551 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
1368314552 fi
1368414553 fi
14554 prev=
1368514555 ;;
1368614556
14557 *.lto.$objext) ;; # Ignore GCC LTO objects
1368714558 *.$objext)
1368814559 # This assumes that the test object file only shows up
1368914560 # once in the compiler output.
1371914590 fi
1372014591
1372114592 $RM -f confest.$objext
14593 CFLAGS=$_lt_libdeps_save_CFLAGS
1372214594
1372314595 # PORTME: override above test on systems where it is broken
1372414596 case $host_os in
1381914691 lt_prog_compiler_pic_CXX=
1382014692 lt_prog_compiler_static_CXX=
1382114693
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13823 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
1382414694
1382514695 # C++ specific cases for pic, static, wl, etc.
1382614696 if test "$GXX" = yes; then
1392314793 # _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"
1392414794 ;;
1392514795 esac
14796 ;;
14797 mingw* | cygwin* | os2* | pw32* | cegcc*)
14798 # This hack is so that the source file can tell whether it is being
14799 # built for inclusion in a dll (and should export symbols for example).
14800 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1392614801 ;;
1392714802 dgux*)
1392814803 case $cc_basename in
1414115016 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
1414215017 ;;
1414315018 esac
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14145 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14146
14147
15019
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15021 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15022 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024 else
15025 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15026 fi
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15028 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15029 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
1414815030
1414915031 #
1415015032 # Check to make sure the PIC flag actually works.
1415215034 if test -n "$lt_prog_compiler_pic_CXX"; then
1415315035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
1415415036 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14155 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15037 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
1415615038 $as_echo_n "(cached) " >&6
1415715039 else
1415815040 lt_cv_prog_compiler_pic_works_CXX=no
1420215084
1420315085
1420415086
15087
15088
1420515089 #
1420615090 # Check to make sure the static flag actually works.
1420715091 #
1420815092 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
1420915093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
1421015094 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14211 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15095 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
1421215096 $as_echo_n "(cached) " >&6
1421315097 else
1421415098 lt_cv_prog_compiler_static_works_CXX=no
1424815132
1424915133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1425015134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14251 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15135 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
1425215136 $as_echo_n "(cached) " >&6
1425315137 else
1425415138 lt_cv_prog_compiler_c_o_CXX=no
1430015184
1430115185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
1430215186 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14303 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15187 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
1430415188 $as_echo_n "(cached) " >&6
1430515189 else
1430615190 lt_cv_prog_compiler_c_o_CXX=no
1437915263 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
1438015264
1438115265 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15266 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1438215267 case $host_os in
1438315268 aix[4-9]*)
1438415269 # If we're using GNU nm, then we don't want the "-C" option.
1439315278 ;;
1439415279 pw32*)
1439515280 export_symbols_cmds_CXX="$ltdll_cmds"
14396 ;;
15281 ;;
1439715282 cygwin* | mingw* | cegcc*)
14398 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14399 ;;
15283 case $cc_basename in
15284 cl*)
15285 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15286 ;;
15287 *)
15288 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'
15289 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15290 ;;
15291 esac
15292 ;;
1440015293 *)
1440115294 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14402 ;;
15295 ;;
1440315296 esac
14404 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1440515297
1440615298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
1440715299 $as_echo "$ld_shlibs_CXX" >&6; }
1443315325 # to ld, don't add -lc before -lgcc.
1443415326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
1443515327 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14436 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15328 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
1443715329 $as_echo_n "(cached) " >&6
1443815330 else
1443915331 $RM conftest*
1454415436
1454515437
1454615438
14547
14548
1454915439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
1455015440 $as_echo_n "checking dynamic linker characteristics... " >&6; }
1455115441
1457115461
1457215462 case $host_os in
1457315463 aix3*)
14574 version_type=linux
15464 version_type=linux # correct to gnu/linux during the next big refactor
1457515465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1457615466 shlibpath_var=LIBPATH
1457715467
1458015470 ;;
1458115471
1458215472 aix[4-9]*)
14583 version_type=linux
15473 version_type=linux # correct to gnu/linux during the next big refactor
1458415474 need_lib_prefix=no
1458515475 need_version=no
1458615476 hardcode_into_libs=yes
1464515535 ;;
1464615536
1464715537 bsdi[45]*)
14648 version_type=linux
15538 version_type=linux # correct to gnu/linux during the next big refactor
1464915539 need_version=no
1465015540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1465115541 soname_spec='${libname}${release}${shared_ext}$major'
1466415554 need_version=no
1466515555 need_lib_prefix=no
1466615556
14667 case $GCC,$host_os in
14668 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15557 case $GCC,$cc_basename in
15558 yes,*)
15559 # gcc
1466915560 library_names_spec='$libname.dll.a'
1467015561 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1467115562 postinstall_cmds='base_file=`basename \${file}`~
1469715588 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1469815589 ;;
1469915590 esac
15591 dynamic_linker='Win32 ld.exe'
1470015592 ;;
1470115593
15594 *,cl*)
15595 # Native MSVC
15596 libname_spec='$name'
15597 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15598 library_names_spec='${libname}.dll.lib'
15599
15600 case $build_os in
15601 mingw*)
15602 sys_lib_search_path_spec=
15603 lt_save_ifs=$IFS
15604 IFS=';'
15605 for lt_path in $LIB
15606 do
15607 IFS=$lt_save_ifs
15608 # Let DOS variable expansion print the short 8.3 style file name.
15609 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15610 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15611 done
15612 IFS=$lt_save_ifs
15613 # Convert to MSYS style.
15614 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15615 ;;
15616 cygwin*)
15617 # Convert to unix form, then to dos form, then back to unix form
15618 # but this time dos style (no spaces!) so that the unix form looks
15619 # like /cygdrive/c/PROGRA~1:/cygdr...
15620 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15621 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15622 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15623 ;;
15624 *)
15625 sys_lib_search_path_spec="$LIB"
15626 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15627 # It is most probably a Windows format PATH.
15628 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15629 else
15630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15631 fi
15632 # FIXME: find the short name or the path components, as spaces are
15633 # common. (e.g. "Program Files" -> "PROGRA~1")
15634 ;;
15635 esac
15636
15637 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15638 postinstall_cmds='base_file=`basename \${file}`~
15639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15640 dldir=$destdir/`dirname \$dlpath`~
15641 test -d \$dldir || mkdir -p \$dldir~
15642 $install_prog $dir/$dlname \$dldir/$dlname'
15643 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15644 dlpath=$dir/\$dldll~
15645 $RM \$dlpath'
15646 shlibpath_overrides_runpath=yes
15647 dynamic_linker='Win32 link.exe'
15648 ;;
15649
1470215650 *)
15651 # Assume MSVC wrapper
1470315652 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15653 dynamic_linker='Win32 ld.exe'
1470415654 ;;
1470515655 esac
14706 dynamic_linker='Win32 ld.exe'
1470715656 # FIXME: first we should search . and the directory the executable is in
1470815657 shlibpath_var=PATH
1470915658 ;;
1472315672 ;;
1472415673
1472515674 dgux*)
14726 version_type=linux
15675 version_type=linux # correct to gnu/linux during the next big refactor
1472715676 need_lib_prefix=no
1472815677 need_version=no
1472915678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1473015679 soname_spec='${libname}${release}${shared_ext}$major'
1473115680 shlibpath_var=LD_LIBRARY_PATH
14732 ;;
14733
14734 freebsd1*)
14735 dynamic_linker=no
1473615681 ;;
1473715682
1473815683 freebsd* | dragonfly*)
1474215687 objformat=`/usr/bin/objformat`
1474315688 else
1474415689 case $host_os in
14745 freebsd[123]*) objformat=aout ;;
15690 freebsd[23].*) objformat=aout ;;
1474615691 *) objformat=elf ;;
1474715692 esac
1474815693 fi
1476015705 esac
1476115706 shlibpath_var=LD_LIBRARY_PATH
1476215707 case $host_os in
14763 freebsd2*)
15708 freebsd2.*)
1476415709 shlibpath_overrides_runpath=yes
1476515710 ;;
1476615711 freebsd3.[01]* | freebsdelf3.[01]*)
1478015725 ;;
1478115726
1478215727 gnu*)
14783 version_type=linux
15728 version_type=linux # correct to gnu/linux during the next big refactor
1478415729 need_lib_prefix=no
1478515730 need_version=no
1478615731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1478715732 soname_spec='${libname}${release}${shared_ext}$major'
1478815733 shlibpath_var=LD_LIBRARY_PATH
15734 shlibpath_overrides_runpath=no
1478915735 hardcode_into_libs=yes
1479015736 ;;
1479115737
1479215738 haiku*)
14793 version_type=linux
15739 version_type=linux # correct to gnu/linux during the next big refactor
1479415740 need_lib_prefix=no
1479515741 need_version=no
1479615742 dynamic_linker="$host_os runtime_loader"
1485115797 ;;
1485215798
1485315799 interix[3-9]*)
14854 version_type=linux
15800 version_type=linux # correct to gnu/linux during the next big refactor
1485515801 need_lib_prefix=no
1485615802 need_version=no
1485715803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1486715813 nonstopux*) version_type=nonstopux ;;
1486815814 *)
1486915815 if test "$lt_cv_prog_gnu_ld" = yes; then
14870 version_type=linux
15816 version_type=linux # correct to gnu/linux during the next big refactor
1487115817 else
1487215818 version_type=irix
1487315819 fi ;;
1490415850 dynamic_linker=no
1490515851 ;;
1490615852
14907 # This must be Linux ELF.
15853 # This must be glibc/ELF.
1490815854 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14909 version_type=linux
15855 version_type=linux # correct to gnu/linux during the next big refactor
1491015856 need_lib_prefix=no
1491115857 need_version=no
1491215858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1491615862 shlibpath_overrides_runpath=no
1491715863
1491815864 # Some binutils ld are patched to set DT_RUNPATH
14919 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15865 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
1492015866 $as_echo_n "(cached) " >&6
1492115867 else
1492215868 lt_cv_shlibpath_overrides_runpath=no
1499215938 ;;
1499315939
1499415940 newsos6)
14995 version_type=linux
15941 version_type=linux # correct to gnu/linux during the next big refactor
1499615942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1499715943 shlibpath_var=LD_LIBRARY_PATH
1499815944 shlibpath_overrides_runpath=yes
1506116007 ;;
1506216008
1506316009 solaris*)
15064 version_type=linux
16010 version_type=linux # correct to gnu/linux during the next big refactor
1506516011 need_lib_prefix=no
1506616012 need_version=no
1506716013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1508616032 ;;
1508716033
1508816034 sysv4 | sysv4.3*)
15089 version_type=linux
16035 version_type=linux # correct to gnu/linux during the next big refactor
1509016036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1509116037 soname_spec='${libname}${release}${shared_ext}$major'
1509216038 shlibpath_var=LD_LIBRARY_PATH
1511016056
1511116057 sysv4*MP*)
1511216058 if test -d /usr/nec ;then
15113 version_type=linux
16059 version_type=linux # correct to gnu/linux during the next big refactor
1511416060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1511516061 soname_spec='$libname${shared_ext}.$major'
1511616062 shlibpath_var=LD_LIBRARY_PATH
1514116087
1514216088 tpf*)
1514316089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15144 version_type=linux
16090 version_type=linux # correct to gnu/linux during the next big refactor
1514516091 need_lib_prefix=no
1514616092 need_version=no
1514716093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1515116097 ;;
1515216098
1515316099 uts4*)
15154 version_type=linux
16100 version_type=linux # correct to gnu/linux during the next big refactor
1515516101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1515616102 soname_spec='${libname}${release}${shared_ext}$major'
1515716103 shlibpath_var=LD_LIBRARY_PATH
1526116207 fi # test -n "$compiler"
1526216208
1526316209 CC=$lt_save_CC
16210 CFLAGS=$lt_save_CFLAGS
1526416211 LDCXX=$LD
1526516212 LD=$lt_save_LD
1526616213 GCC=$lt_save_GCC
1528916236
1529016237
1529116238
16239
16240
1529216241 ac_config_commands="$ac_config_commands libtool"
1529316242
1529416243
1532116270 ;;
1532216271 esac
1532316272
16273 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16274 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
16275 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
1532416276 if test -n "0.35.0"; then
1532516277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
1532616278 $as_echo_n "checking for intltool >= 0.35.0... " >&6; }
15327
15328 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
15329 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
15330 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
15331
1533216279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
1533316280 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
1533416281 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
1533916286 set dummy intltool-update; ac_word=$2
1534016287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1534116288 $as_echo_n "checking for $ac_word... " >&6; }
15342 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
16289 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
1534316290 $as_echo_n "(cached) " >&6
1534416291 else
1534516292 case $INTLTOOL_UPDATE in
1535316300 IFS=$as_save_IFS
1535416301 test -z "$as_dir" && as_dir=.
1535516302 for ac_exec_ext in '' $ac_executable_extensions; do
15356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535716304 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
1535816305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1535916306 break 2
1537916326 set dummy intltool-merge; ac_word=$2
1538016327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1538116328 $as_echo_n "checking for $ac_word... " >&6; }
15382 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
16329 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
1538316330 $as_echo_n "(cached) " >&6
1538416331 else
1538516332 case $INTLTOOL_MERGE in
1539316340 IFS=$as_save_IFS
1539416341 test -z "$as_dir" && as_dir=.
1539516342 for ac_exec_ext in '' $ac_executable_extensions; do
15396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539716344 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
1539816345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1539916346 break 2
1541916366 set dummy intltool-extract; ac_word=$2
1542016367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1542116368 $as_echo_n "checking for $ac_word... " >&6; }
15422 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
16369 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
1542316370 $as_echo_n "(cached) " >&6
1542416371 else
1542516372 case $INTLTOOL_EXTRACT in
1543316380 IFS=$as_save_IFS
1543416381 test -z "$as_dir" && as_dir=.
1543516382 for ac_exec_ext in '' $ac_executable_extensions; do
15436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543716384 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
1543816385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1543916386 break 2
1545916406 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
1546016407 fi
1546116408
15462 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15463 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15464 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15465 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15466 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
15467 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15468 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15469 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15470 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15471 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15472 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15473 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
15474 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15475 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15476 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15477 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15478 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15479 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15480 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16409 if test -z "$AM_DEFAULT_VERBOSITY"; then
16410 AM_DEFAULT_VERBOSITY=1
16411 fi
16412
16413
16414 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
16415 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
16416 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
16417
16418
16419
16420
16421 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
16422 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
16423 intltool__v_merge_options_0='-q'
16424
16425
16426
16427
16428 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16429 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16430 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16431 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16432 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
16433 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16434 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16435 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16436 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16437 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16438 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16439 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
16440 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
16441 else
16442 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
16443 fi
16444 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16445 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16446 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16447 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16448 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16449 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16450 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
1548116451
1548216452
1548316453
1558016550 set dummy xgettext; ac_word=$2
1558116551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1558216552 $as_echo_n "checking for $ac_word... " >&6; }
15583 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
16553 if ${ac_cv_path_XGETTEXT+:} false; then :
1558416554 $as_echo_n "(cached) " >&6
1558516555 else
1558616556 case $XGETTEXT in
1559416564 IFS=$as_save_IFS
1559516565 test -z "$as_dir" && as_dir=.
1559616566 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559816568 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
1559916569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1560016570 break 2
1562016590 set dummy msgmerge; ac_word=$2
1562116591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1562216592 $as_echo_n "checking for $ac_word... " >&6; }
15623 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
16593 if ${ac_cv_path_MSGMERGE+:} false; then :
1562416594 $as_echo_n "(cached) " >&6
1562516595 else
1562616596 case $MSGMERGE in
1563416604 IFS=$as_save_IFS
1563516605 test -z "$as_dir" && as_dir=.
1563616606 for ac_exec_ext in '' $ac_executable_extensions; do
15637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563816608 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
1563916609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1564016610 break 2
1566016630 set dummy msgfmt; ac_word=$2
1566116631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1566216632 $as_echo_n "checking for $ac_word... " >&6; }
15663 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16633 if ${ac_cv_path_MSGFMT+:} false; then :
1566416634 $as_echo_n "(cached) " >&6
1566516635 else
1566616636 case $MSGFMT in
1567416644 IFS=$as_save_IFS
1567516645 test -z "$as_dir" && as_dir=.
1567616646 for ac_exec_ext in '' $ac_executable_extensions; do
15677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567816648 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
1567916649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1568016650 break 2
1570016670 set dummy gmsgfmt; ac_word=$2
1570116671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1570216672 $as_echo_n "checking for $ac_word... " >&6; }
15703 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16673 if ${ac_cv_path_GMSGFMT+:} false; then :
1570416674 $as_echo_n "(cached) " >&6
1570516675 else
1570616676 case $GMSGFMT in
1571416684 IFS=$as_save_IFS
1571516685 test -z "$as_dir" && as_dir=.
1571616686 for ac_exec_ext in '' $ac_executable_extensions; do
15717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571816688 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1571916689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1572016690 break 2
1575116721 set dummy perl; ac_word=$2
1575216722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1575316723 $as_echo_n "checking for $ac_word... " >&6; }
15754 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
16724 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
1575516725 $as_echo_n "(cached) " >&6
1575616726 else
1575716727 case $INTLTOOL_PERL in
1576516735 IFS=$as_save_IFS
1576616736 test -z "$as_dir" && as_dir=.
1576716737 for ac_exec_ext in '' $ac_executable_extensions; do
15768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576916739 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
1577016740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1577116741 break 2
1579616766 if test $? -ne 0; then
1579716767 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
1579816768 else
15799 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
16769 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
1580016770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
1580116771 $as_echo "$IT_PERL_VERSION" >&6; }
1580216772 fi
1583516805 case $host in
1583616806 *-*-solaris*)
1583716807 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15838 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
16808 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1583916809 DATADIRNAME=share
1584016810 else
1584116811 DATADIRNAME=lib
1585716827
1585816828
1585916829
15860 DATE_DISPLAY="Fri Dec 03 2010"
16830 DATE_DISPLAY="Fri Dec 27 2013"
1586116831
1586216832
1586316833 # Check whether --enable-glibtest was given.
1589616866
1589716867
1589816868
16869
1589916870 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
1590016871 if test -n "$ac_tool_prefix"; then
1590116872 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
1590216873 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
1590316874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1590416875 $as_echo_n "checking for $ac_word... " >&6; }
15905 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
16876 if ${ac_cv_path_PKG_CONFIG+:} false; then :
1590616877 $as_echo_n "(cached) " >&6
1590716878 else
1590816879 case $PKG_CONFIG in
1591616887 IFS=$as_save_IFS
1591716888 test -z "$as_dir" && as_dir=.
1591816889 for ac_exec_ext in '' $ac_executable_extensions; do
15919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592016891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1592116892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1592216893 break 2
1594516916 set dummy pkg-config; ac_word=$2
1594616917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1594716918 $as_echo_n "checking for $ac_word... " >&6; }
15948 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16919 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
1594916920 $as_echo_n "(cached) " >&6
1595016921 else
1595116922 case $ac_pt_PKG_CONFIG in
1595916930 IFS=$as_save_IFS
1596016931 test -z "$as_dir" && as_dir=.
1596116932 for ac_exec_ext in '' $ac_executable_extensions; do
15962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1596316934 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1596416935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1596516936 break 2
1603917010 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
1604017011 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
1604117012 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17013 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
1604217014
1604317015 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
1604417016 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
1620317175 GLIB_GENMARSHAL=""
1620417176 GOBJECT_QUERY=""
1620517177 GLIB_MKENUMS=""
17178 GLIB_COMPILE_RESOURCES=""
1620617179 :
1620717180 fi
17181
1620817182
1620917183
1621017184
1623317207 pkg_cv_GLIB2_CFLAGS=`$PKG_CONFIG --cflags "
1623417208 glib-2.0 >= 2.8
1623517209 " 2>/dev/null`
17210 test "x$?" != "x0" && pkg_failed=yes
1623617211 else
1623717212 pkg_failed=yes
1623817213 fi
1625517230 pkg_cv_GLIB2_LIBS=`$PKG_CONFIG --libs "
1625617231 glib-2.0 >= 2.8
1625717232 " 2>/dev/null`
17233 test "x$?" != "x0" && pkg_failed=yes
1625817234 else
1625917235 pkg_failed=yes
1626017236 fi
1627417250 _pkg_short_errors_supported=no
1627517251 fi
1627617252 if test $_pkg_short_errors_supported = yes; then
16277 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
17253 GLIB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
1627817254 glib-2.0 >= 2.8
1627917255 " 2>&1`
1628017256 else
16281 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors "
17257 GLIB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
1628217258 glib-2.0 >= 2.8
1628317259 " 2>&1`
1628417260 fi
1629717273 Alternatively, you may set the environment variables GLIB2_CFLAGS
1629817274 and GLIB2_LIBS to avoid the need to call pkg-config.
1629917275 See the pkg-config man page for more details." "$LINENO" 5
16300
1630117276 elif test $pkg_failed = untried; then
1630217277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1630317278 $as_echo "no" >&6; }
1631317288
1631417289 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1631517290 See \`config.log' for more details" "$LINENO" 5; }
16316
1631717291 else
1631817292 GLIB2_CFLAGS=$pkg_cv_GLIB2_CFLAGS
1631917293 GLIB2_LIBS=$pkg_cv_GLIB2_LIBS
1633017304 *) as_fn_error $? "invalid gtk version specified" "$LINENO" 5 ;;
1633117305 esac
1633217306 else
16333 with_gtk=2.0
17307 with_gtk=3.0
1633417308
1633517309 fi
1633617310
1635817332 pkg_cv_GTK2_CFLAGS=`$PKG_CONFIG --cflags "
1635917333 gtk+-2.0
1636017334 " 2>/dev/null`
17335 test "x$?" != "x0" && pkg_failed=yes
1636117336 else
1636217337 pkg_failed=yes
1636317338 fi
1638017355 pkg_cv_GTK2_LIBS=`$PKG_CONFIG --libs "
1638117356 gtk+-2.0
1638217357 " 2>/dev/null`
17358 test "x$?" != "x0" && pkg_failed=yes
1638317359 else
1638417360 pkg_failed=yes
1638517361 fi
1639917375 _pkg_short_errors_supported=no
1640017376 fi
1640117377 if test $_pkg_short_errors_supported = yes; then
16402 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
17378 GTK2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
1640317379 gtk+-2.0
1640417380 " 2>&1`
1640517381 else
16406 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors "
17382 GTK2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
1640717383 gtk+-2.0
1640817384 " 2>&1`
1640917385 fi
1642217398 Alternatively, you may set the environment variables GTK2_CFLAGS
1642317399 and GTK2_LIBS to avoid the need to call pkg-config.
1642417400 See the pkg-config man page for more details." "$LINENO" 5
16425
1642617401 elif test $pkg_failed = untried; then
1642717402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1642817403 $as_echo "no" >&6; }
1643817413
1643917414 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1644017415 See \`config.log' for more details" "$LINENO" 5; }
16441
1644217416 else
1644317417 GTK2_CFLAGS=$pkg_cv_GTK2_CFLAGS
1644417418 GTK2_LIBS=$pkg_cv_GTK2_LIBS
1648517459 pkg_cv_GTK3_CFLAGS=`$PKG_CONFIG --cflags "
1648617460 gtk+-3.0
1648717461 " 2>/dev/null`
17462 test "x$?" != "x0" && pkg_failed=yes
1648817463 else
1648917464 pkg_failed=yes
1649017465 fi
1650717482 pkg_cv_GTK3_LIBS=`$PKG_CONFIG --libs "
1650817483 gtk+-3.0
1650917484 " 2>/dev/null`
17485 test "x$?" != "x0" && pkg_failed=yes
1651017486 else
1651117487 pkg_failed=yes
1651217488 fi
1652617502 _pkg_short_errors_supported=no
1652717503 fi
1652817504 if test $_pkg_short_errors_supported = yes; then
16529 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
17505 GTK3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
1653017506 gtk+-3.0
1653117507 " 2>&1`
1653217508 else
16533 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors "
17509 GTK3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
1653417510 gtk+-3.0
1653517511 " 2>&1`
1653617512 fi
1654917525 Alternatively, you may set the environment variables GTK3_CFLAGS
1655017526 and GTK3_LIBS to avoid the need to call pkg-config.
1655117527 See the pkg-config man page for more details." "$LINENO" 5
16552
1655317528 elif test $pkg_failed = untried; then
1655417529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1655517530 $as_echo "no" >&6; }
1656517540
1656617541 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1656717542 See \`config.log' for more details" "$LINENO" 5; }
16568
1656917543 else
1657017544 GTK3_CFLAGS=$pkg_cv_GTK3_CFLAGS
1657117545 GTK3_LIBS=$pkg_cv_GTK3_LIBS
1660817582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660917583 test $ac_status = 0; }; then
1661017584 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0 >= 1.2.0.20100111" 2>/dev/null`
17585 test "x$?" != "x0" && pkg_failed=yes
1661117586 else
1661217587 pkg_failed=yes
1661317588 fi
1662417599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662517600 test $ac_status = 0; }; then
1662617601 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0 >= 1.2.0.20100111" 2>/dev/null`
17602 test "x$?" != "x0" && pkg_failed=yes
1662717603 else
1662817604 pkg_failed=yes
1662917605 fi
1664317619 _pkg_short_errors_supported=no
1664417620 fi
1664517621 if test $_pkg_short_errors_supported = yes; then
16646 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0 >= 1.2.0.20100111" 2>&1`
17622 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0 >= 1.2.0.20100111" 2>&1`
1664717623 else
16648 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0 >= 1.2.0.20100111" 2>&1`
17624 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0 >= 1.2.0.20100111" 2>&1`
1664917625 fi
1665017626 # Put the nasty error message in config.log where it belongs
1665117627 echo "$IBUS_PKG_ERRORS" >&5
1666517641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666617642 test $ac_status = 0; }; then
1666717643 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
17644 test "x$?" != "x0" && pkg_failed=yes
1666817645 else
1666917646 pkg_failed=yes
1667017647 fi
1668117658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668217659 test $ac_status = 0; }; then
1668317660 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
17661 test "x$?" != "x0" && pkg_failed=yes
1668417662 else
1668517663 pkg_failed=yes
1668617664 fi
1670017678 _pkg_short_errors_supported=no
1670117679 fi
1670217680 if test $_pkg_short_errors_supported = yes; then
16703 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
17681 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
1670417682 else
16705 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
17683 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
1670617684 fi
1670717685 # Put the nasty error message in config.log where it belongs
1670817686 echo "$IBUS_PKG_ERRORS" >&5
1671717695 Alternatively, you may set the environment variables IBUS_CFLAGS
1671817696 and IBUS_LIBS to avoid the need to call pkg-config.
1671917697 See the pkg-config man page for more details." "$LINENO" 5
16720
1672117698 elif test $pkg_failed = untried; then
1672217699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1672317700 $as_echo "no" >&6; }
1673317710
1673417711 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1673517712 See \`config.log' for more details" "$LINENO" 5; }
16736
1673717713 else
1673817714 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
1673917715 IBUS_LIBS=$pkg_cv_IBUS_LIBS
1676517741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676617742 test $ac_status = 0; }; then
1676717743 pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
17744 test "x$?" != "x0" && pkg_failed=yes
1676817745 else
1676917746 pkg_failed=yes
1677017747 fi
1678117758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678217759 test $ac_status = 0; }; then
1678317760 pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
17761 test "x$?" != "x0" && pkg_failed=yes
1678417762 else
1678517763 pkg_failed=yes
1678617764 fi
1680017778 _pkg_short_errors_supported=no
1680117779 fi
1680217780 if test $_pkg_short_errors_supported = yes; then
16803 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
17781 IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ibus-1.0" 2>&1`
1680417782 else
16805 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
17783 IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ibus-1.0" 2>&1`
1680617784 fi
1680717785 # Put the nasty error message in config.log where it belongs
1680817786 echo "$IBUS_PKG_ERRORS" >&5
1681717795 Alternatively, you may set the environment variables IBUS_CFLAGS
1681817796 and IBUS_LIBS to avoid the need to call pkg-config.
1681917797 See the pkg-config man page for more details." "$LINENO" 5
16820
1682117798 elif test $pkg_failed = untried; then
1682217799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1682317800 $as_echo "no" >&6; }
1683317810
1683417811 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1683517812 See \`config.log' for more details" "$LINENO" 5; }
16836
1683717813 else
1683817814 IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
1683917815 IBUS_LIBS=$pkg_cv_IBUS_LIBS
1687717853 pkg_cv_INPUT_PAD_CFLAGS=`$PKG_CONFIG --cflags "
1687817854 input-pad
1687917855 " 2>/dev/null`
17856 test "x$?" != "x0" && pkg_failed=yes
1688017857 else
1688117858 pkg_failed=yes
1688217859 fi
1689917876 pkg_cv_INPUT_PAD_LIBS=`$PKG_CONFIG --libs "
1690017877 input-pad
1690117878 " 2>/dev/null`
17879 test "x$?" != "x0" && pkg_failed=yes
1690217880 else
1690317881 pkg_failed=yes
1690417882 fi
1691817896 _pkg_short_errors_supported=no
1691917897 fi
1692017898 if test $_pkg_short_errors_supported = yes; then
16921 INPUT_PAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
17899 INPUT_PAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
1692217900 input-pad
1692317901 " 2>&1`
1692417902 else
16925 INPUT_PAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "
17903 INPUT_PAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
1692617904 input-pad
1692717905 " 2>&1`
1692817906 fi
1694117919 Alternatively, you may set the environment variables INPUT_PAD_CFLAGS
1694217920 and INPUT_PAD_LIBS to avoid the need to call pkg-config.
1694317921 See the pkg-config man page for more details." "$LINENO" 5
16944
1694517922 elif test $pkg_failed = untried; then
1694617923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1694717924 $as_echo "no" >&6; }
1695717934
1695817935 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
1695917936 See \`config.log' for more details" "$LINENO" 5; }
16960
1696117937 else
1696217938 INPUT_PAD_CFLAGS=$pkg_cv_INPUT_PAD_CFLAGS
1696317939 INPUT_PAD_LIBS=$pkg_cv_INPUT_PAD_LIBS
1697817954 for ac_header in locale.h
1697917955 do :
1698017956 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16981 if test "x$ac_cv_header_locale_h" = x""yes; then :
17957 if test "x$ac_cv_header_locale_h" = xyes; then :
1698217958 cat >>confdefs.h <<_ACEOF
1698317959 #define HAVE_LOCALE_H 1
1698417960 _ACEOF
1699017966 if test $ac_cv_header_locale_h = yes; then
1699117967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
1699217968 $as_echo_n "checking for LC_MESSAGES... " >&6; }
16993 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
17969 if ${am_cv_val_LC_MESSAGES+:} false; then :
1699417970 $as_echo_n "(cached) " >&6
1699517971 else
1699617972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703018006 INTLLIBS=
1703118007
1703218008 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17033 if test "x$ac_cv_header_libintl_h" = x""yes; then :
18009 if test "x$ac_cv_header_libintl_h" = xyes; then :
1703418010 gt_cv_func_dgettext_libintl="no"
1703518011 libintl_extra_libs=""
1703618012
1703918015 #
1704018016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
1704118017 $as_echo_n "checking for ngettext in libc... " >&6; }
17042 if test "${gt_cv_func_ngettext_libc+set}" = set; then :
18018 if ${gt_cv_func_ngettext_libc+:} false; then :
1704318019 $as_echo_n "(cached) " >&6
1704418020 else
1704518021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707018046 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
1707118047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
1707218048 $as_echo_n "checking for dgettext in libc... " >&6; }
17073 if test "${gt_cv_func_dgettext_libc+set}" = set; then :
18049 if ${gt_cv_func_dgettext_libc+:} false; then :
1707418050 $as_echo_n "(cached) " >&6
1707518051 else
1707618052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710318079 for ac_func in bind_textdomain_codeset
1710418080 do :
1710518081 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17106 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
18082 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1710718083 cat >>confdefs.h <<_ACEOF
1710818084 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
1710918085 _ACEOF
1712218098
1712318099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
1712418100 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
17125 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
18101 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
1712618102 $as_echo_n "(cached) " >&6
1712718103 else
1712818104 ac_check_lib_save_LIBS=$LIBS
1715618132 fi
1715718133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
1715818134 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
17159 if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
18135 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
1716018136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
1716118137 $as_echo_n "checking for ngettext in -lintl... " >&6; }
17162 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
18138 if ${ac_cv_lib_intl_ngettext+:} false; then :
1716318139 $as_echo_n "(cached) " >&6
1716418140 else
1716518141 ac_check_lib_save_LIBS=$LIBS
1719318169 fi
1719418170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
1719518171 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
17196 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
18172 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
1719718173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
1719818174 $as_echo_n "checking for dgettext in -lintl... " >&6; }
17199 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
18175 if ${ac_cv_lib_intl_dgettext+:} false; then :
1720018176 $as_echo_n "(cached) " >&6
1720118177 else
1720218178 ac_check_lib_save_LIBS=$LIBS
1723018206 fi
1723118207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
1723218208 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
17233 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
18209 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
1723418210 gt_cv_func_dgettext_libintl=yes
1723518211 fi
1723618212
1724618222 $as_echo "" >&6; }
1724718223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
1724818224 $as_echo_n "checking for ngettext in -lintl... " >&6; }
17249 if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
18225 if ${ac_cv_lib_intl_ngettext+:} false; then :
1725018226 $as_echo_n "(cached) " >&6
1725118227 else
1725218228 ac_check_lib_save_LIBS=$LIBS
1728018256 fi
1728118257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
1728218258 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
17283 if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
18259 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
1728418260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
1728518261 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
17286 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
18262 if ${ac_cv_lib_intl_dcgettext+:} false; then :
1728718263 $as_echo_n "(cached) " >&6
1728818264 else
1728918265 ac_check_lib_save_LIBS=$LIBS
1731718293 fi
1731818294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
1731918295 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
17320 if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
18296 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
1732118297 gt_cv_func_dgettext_libintl=yes
1732218298 libintl_extra_libs=-liconv
1732318299 else
1734218318 for ac_func in bind_textdomain_codeset
1734318319 do :
1734418320 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17345 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
18321 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1734618322 cat >>confdefs.h <<_ACEOF
1734718323 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
1734818324 _ACEOF
1738018356 set dummy msgfmt; ac_word=$2
1738118357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1738218358 $as_echo_n "checking for $ac_word... " >&6; }
17383 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18359 if ${ac_cv_path_MSGFMT+:} false; then :
1738418360 $as_echo_n "(cached) " >&6
1738518361 else
1738618362 case "$MSGFMT" in
1741718393 for ac_func in dcgettext
1741818394 do :
1741918395 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
17420 if test "x$ac_cv_func_dcgettext" = x""yes; then :
18396 if test "x$ac_cv_func_dcgettext" = xyes; then :
1742118397 cat >>confdefs.h <<_ACEOF
1742218398 #define HAVE_DCGETTEXT 1
1742318399 _ACEOF
1745818434 set dummy gmsgfmt; ac_word=$2
1745918435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1746018436 $as_echo_n "checking for $ac_word... " >&6; }
17461 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
18437 if ${ac_cv_path_GMSGFMT+:} false; then :
1746218438 $as_echo_n "(cached) " >&6
1746318439 else
1746418440 case $GMSGFMT in
1747218448 IFS=$as_save_IFS
1747318449 test -z "$as_dir" && as_dir=.
1747418450 for ac_exec_ext in '' $ac_executable_extensions; do
17475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747618452 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1747718453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1747818454 break 2
1749918475 set dummy xgettext; ac_word=$2
1750018476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1750118477 $as_echo_n "checking for $ac_word... " >&6; }
17502 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
18478 if ${ac_cv_path_XGETTEXT+:} false; then :
1750318479 $as_echo_n "(cached) " >&6
1750418480 else
1750518481 case "$XGETTEXT" in
1755018526 case $host in
1755118527 *-*-solaris*)
1755218528 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17553 if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
18529 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
1755418530 CATOBJEXT=.gmo
1755518531 DATADIRNAME=share
1755618532 else
1755818534 DATADIRNAME=lib
1755918535 fi
1756018536
18537 ;;
18538 *-*-openbsd*)
18539 CATOBJEXT=.mo
18540 DATADIRNAME=share
1756118541 ;;
1756218542 *)
1756318543 CATOBJEXT=.mo
1776618746 :end' >>confcache
1776718747 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
1776818748 if test -w "$cache_file"; then
17769 test "x$cache_file" != "x/dev/null" &&
18749 if test "x$cache_file" != "x/dev/null"; then
1777018750 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
1777118751 $as_echo "$as_me: updating cache $cache_file" >&6;}
17772 cat confcache >$cache_file
18752 if test ! -f "$cache_file" || test -h "$cache_file"; then
18753 cat confcache >"$cache_file"
18754 else
18755 case $cache_file in #(
18756 */* | ?:*)
18757 mv -f confcache "$cache_file"$$ &&
18758 mv -f "$cache_file"$$ "$cache_file" ;; #(
18759 *)
18760 mv -f confcache "$cache_file" ;;
18761 esac
18762 fi
18763 fi
1777318764 else
1777418765 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
1777518766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1780018791 LTLIBOBJS=$ac_ltlibobjs
1780118792
1780218793
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18795 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18796 if test -n "$am_sleep_pid"; then
18797 # Hide warnings about reused PIDs.
18798 wait $am_sleep_pid 2>/dev/null
18799 fi
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18801 $as_echo "done" >&6; }
1780318802 if test -n "$EXEEXT"; then
1780418803 am__EXEEXT_TRUE=
1780518804 am__EXEEXT_FALSE='#'
1781618815 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1781718816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1781818817 fi
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18819 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18820 if test -n "$am_sleep_pid"; then
18821 # Hide warnings about reused PIDs.
18822 wait $am_sleep_pid 2>/dev/null
18823 fi
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18825 $as_echo "done" >&6; }
1781918826 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1782018827 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
1782118828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1784918856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
1785018857 fi
1785118858
17852 : ${CONFIG_STATUS=./config.status}
18859 : "${CONFIG_STATUS=./config.status}"
1785318860 ac_write_fail=0
1785418861 ac_clean_files_save=$ac_clean_files
1785518862 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1795018957 IFS=" "" $as_nl"
1795118958
1795218959 # Find who we are. Look in the path if we contain no directory separator.
18960 as_myself=
1795318961 case $0 in #((
1795418962 *[\\/]* ) as_myself=$0 ;;
1795518963 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814519153 # ... but there are two gotchas:
1814619154 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1814719155 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18148 # In both cases, we have to default to `cp -p'.
19156 # In both cases, we have to default to `cp -pR'.
1814919157 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18150 as_ln_s='cp -p'
19158 as_ln_s='cp -pR'
1815119159 elif ln conf$$.file conf$$ 2>/dev/null; then
1815219160 as_ln_s=ln
1815319161 else
18154 as_ln_s='cp -p'
19162 as_ln_s='cp -pR'
1815519163 fi
1815619164 else
18157 as_ln_s='cp -p'
19165 as_ln_s='cp -pR'
1815819166 fi
1815919167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1816019168 rmdir conf$$.dir 2>/dev/null
1821419222 as_mkdir_p=false
1821519223 fi
1821619224
18217 if test -x / >/dev/null 2>&1; then
18218 as_test_x='test -x'
18219 else
18220 if ls -dL / >/dev/null 2>&1; then
18221 as_ls_L_option=L
18222 else
18223 as_ls_L_option=
18224 fi
18225 as_test_x='
18226 eval sh -c '\''
18227 if test -d "$1"; then
18228 test -d "$1/.";
18229 else
18230 case $1 in #(
18231 -*)set "./$1";;
18232 esac;
18233 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18234 ???[sx]*):;;*)false;;esac;fi
18235 '\'' sh
18236 '
18237 fi
18238 as_executable_p=$as_test_x
19225
19226 # as_fn_executable_p FILE
19227 # -----------------------
19228 # Test if FILE is an executable regular file.
19229 as_fn_executable_p ()
19230 {
19231 test -f "$1" && test -x "$1"
19232 } # as_fn_executable_p
19233 as_test_x='test -x'
19234 as_executable_p=as_fn_executable_p
1823919235
1824019236 # Sed expression to map a string onto a valid CPP name.
1824119237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1825619252 # report actual input values of CONFIG_FILES etc. instead of their
1825719253 # values after options handling.
1825819254 ac_log="
18259 This file was extended by ibus-input-pad $as_me 1.4.0, which was
18260 generated by GNU Autoconf 2.66. Invocation command line was
19255 This file was extended by ibus-input-pad $as_me 1.4.2, which was
19256 generated by GNU Autoconf 2.69. Invocation command line was
1826119257
1826219258 CONFIG_FILES = $CONFIG_FILES
1826319259 CONFIG_HEADERS = $CONFIG_HEADERS
1832219318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1832319319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1832419320 ac_cs_version="\\
18325 ibus-input-pad config.status 1.4.0
18326 configured by $0, generated by GNU Autoconf 2.66,
19321 ibus-input-pad config.status 1.4.2
19322 configured by $0, generated by GNU Autoconf 2.69,
1832719323 with options \\"\$ac_cs_config\\"
1832819324
18329 Copyright (C) 2010 Free Software Foundation, Inc.
19325 Copyright (C) 2012 Free Software Foundation, Inc.
1833019326 This config.status script is free software; the Free Software Foundation
1833119327 gives unlimited permission to copy, distribute and modify it."
1833219328
1834419340 while test $# != 0
1834519341 do
1834619342 case $1 in
18347 --*=*)
19343 --*=?*)
1834819344 ac_option=`expr "X$1" : 'X\([^=]*\)='`
1834919345 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19346 ac_shift=:
19347 ;;
19348 --*=)
19349 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19350 ac_optarg=
1835019351 ac_shift=:
1835119352 ;;
1835219353 *)
1837019371 $ac_shift
1837119372 case $ac_optarg in
1837219373 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19374 '') as_fn_error $? "missing file argument" ;;
1837319375 esac
1837419376 as_fn_append CONFIG_FILES " '$ac_optarg'"
1837519377 ac_need_defaults=false;;
1841119413 _ACEOF
1841219414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1841319415 if \$ac_cs_recheck; then
18414 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19416 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1841519417 shift
1841619418 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1841719419 CONFIG_SHELL='$SHELL'
1845319455 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
1845419456 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1845519457 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19458 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1845619459 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
1845719460 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
1845819461 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
1847319476 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
1847419477 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
1847519478 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19479 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19480 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
1847619481 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
1847719482 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
1847819483 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
1847919484 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
1848019485 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19486 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19487 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19488 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19489 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
1848119490 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
1848219491 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19492 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
1848319493 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
1848419494 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
1848519495 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
1849419504 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
1849519505 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1849619506 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"`'
19507 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19508 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
1849719509 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1849819510 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1849919511 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19512 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1850019513 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18501 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
1850219514 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
1850319515 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
1850419516 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19517 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
1850519518 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
1850619519 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
1850719520 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
1852519538 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
1852619539 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
1852719540 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18528 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
1852919541 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
1853019542 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
1853119543 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
1853419546 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
1853519547 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
1853619548 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18537 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
1853819549 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
1853919550 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
1854019551 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
1854119552 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
1854219553 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19554 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
1854319555 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
1854419556 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
1854519557 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
1857819590 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
1857919591 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
1858019592 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19593 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
1858119594 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18582 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
1858319595 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
1858419596 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
1858519597 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
1859719609 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
1859819610 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
1859919611 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18600 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
1860119612 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
1860219613 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
1860319614 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
1860619617 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
1860719618 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
1860819619 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18609 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
1861019620 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
1861119621 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
1861219622 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
1861319623 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
1861419624 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19625 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
1861519626 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
1861619627 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
1861719628 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
1863619647 # Quote evaled strings.
1863719648 for var in SHELL \
1863819649 ECHO \
19650 PATH_SEPARATOR \
1863919651 SED \
1864019652 GREP \
1864119653 EGREP \
1864919661 OBJDUMP \
1865019662 deplibs_check_method \
1865119663 file_magic_cmd \
19664 file_magic_glob \
19665 want_nocaseglob \
19666 DLLTOOL \
19667 sharedlib_from_linklib_cmd \
1865219668 AR \
1865319669 AR_FLAGS \
19670 archiver_list_spec \
1865419671 STRIP \
1865519672 RANLIB \
1865619673 CC \
1866019677 lt_cv_sys_global_symbol_to_cdecl \
1866119678 lt_cv_sys_global_symbol_to_c_name_address \
1866219679 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19680 nm_file_list_spec \
1866319681 lt_prog_compiler_no_builtin_flag \
19682 lt_prog_compiler_pic \
1866419683 lt_prog_compiler_wl \
18665 lt_prog_compiler_pic \
1866619684 lt_prog_compiler_static \
1866719685 lt_cv_prog_compiler_c_o \
1866819686 need_locks \
19687 MANIFEST_TOOL \
1866919688 DSYMUTIL \
1867019689 NMEDIT \
1867119690 LIPO \
1867919698 allow_undefined_flag \
1868019699 no_undefined_flag \
1868119700 hardcode_libdir_flag_spec \
18682 hardcode_libdir_flag_spec_ld \
1868319701 hardcode_libdir_separator \
18684 fix_srcfile_path \
1868519702 exclude_expsyms \
1868619703 include_expsyms \
1868719704 file_list_spec \
1870319720 reload_flag_CXX \
1870419721 compiler_CXX \
1870519722 lt_prog_compiler_no_builtin_flag_CXX \
19723 lt_prog_compiler_pic_CXX \
1870619724 lt_prog_compiler_wl_CXX \
18707 lt_prog_compiler_pic_CXX \
1870819725 lt_prog_compiler_static_CXX \
1870919726 lt_cv_prog_compiler_c_o_CXX \
1871019727 export_dynamic_flag_spec_CXX \
1871419731 allow_undefined_flag_CXX \
1871519732 no_undefined_flag_CXX \
1871619733 hardcode_libdir_flag_spec_CXX \
18717 hardcode_libdir_flag_spec_ld_CXX \
1871819734 hardcode_libdir_separator_CXX \
18719 fix_srcfile_path_CXX \
1872019735 exclude_expsyms_CXX \
1872119736 include_expsyms_CXX \
1872219737 file_list_spec_CXX \
1875019765 module_expsym_cmds \
1875119766 export_symbols_cmds \
1875219767 prelink_cmds \
19768 postlink_cmds \
1875319769 postinstall_cmds \
1875419770 postuninstall_cmds \
1875519771 finish_cmds \
1876419780 module_cmds_CXX \
1876519781 module_expsym_cmds_CXX \
1876619782 export_symbols_cmds_CXX \
18767 prelink_cmds_CXX; do
19783 prelink_cmds_CXX \
19784 postlink_cmds_CXX; do
1876819785 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1876919786 *[\\\\\\\`\\"\\\$]*)
1877019787 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1884019857 # after its creation but before its name has been assigned to `$tmp'.
1884119858 $debug ||
1884219859 {
18843 tmp=
19860 tmp= ac_tmp=
1884419861 trap 'exit_status=$?
18845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19862 : "${ac_tmp:=$tmp}"
19863 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1884619864 ' 0
1884719865 trap 'as_fn_exit 1' 1 2 13 15
1884819866 }
1885019868
1885119869 {
1885219870 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18853 test -n "$tmp" && test -d "$tmp"
19871 test -d "$tmp"
1885419872 } ||
1885519873 {
1885619874 tmp=./conf$$-$RANDOM
1885719875 (umask 077 && mkdir "$tmp")
1885819876 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19877 ac_tmp=$tmp
1885919878
1886019879 # Set up the scripts for CONFIG_FILES section.
1886119880 # No need to generate them if there are no CONFIG_FILES.
1887719896 ac_cs_awk_cr=$ac_cr
1887819897 fi
1887919898
18880 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19899 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1888119900 _ACEOF
1888219901
1888319902
1890519924 rm -f conf$$subs.sh
1890619925
1890719926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18908 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19927 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1890919928 _ACEOF
1891019929 sed -n '
1891119930 h
1895319972 rm -f conf$$subs.awk
1895419973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1895519974 _ACAWK
18956 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19975 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1895719976 for (key in S) S_is_set[key] = 1
1895819977 FS = ""
1895919978
1898520004 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
1898620005 else
1898720006 cat
18988 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20007 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1898920008 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1899020009 _ACEOF
1899120010
1901920038 # No need to generate them if there are no CONFIG_HEADERS.
1902020039 # This happens for instance with `./config.status Makefile'.
1902120040 if test -n "$CONFIG_HEADERS"; then
19022 cat >"$tmp/defines.awk" <<\_ACAWK ||
20041 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1902320042 BEGIN {
1902420043 _ACEOF
1902520044
1903120050 # handling of long lines.
1903220051 ac_delim='%!_!# '
1903320052 for ac_last_try in false false :; do
19034 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19035 if test -z "$ac_t"; then
20053 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20054 if test -z "$ac_tt"; then
1903620055 break
1903720056 elif $ac_last_try; then
1903820057 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1915220171 for ac_f
1915320172 do
1915420173 case $ac_f in
19155 -) ac_f="$tmp/stdin";;
20174 -) ac_f="$ac_tmp/stdin";;
1915620175 *) # Look for the file first in the build tree, then in the source tree
1915720176 # (if the path is not absolute). The absolute path cannot be DOS-style,
1915820177 # because $ac_f cannot contain `:'.
1918720206 esac
1918820207
1918920208 case $ac_tag in
19190 *:-:* | *:-) cat >"$tmp/stdin" \
20209 *:-:* | *:-) cat >"$ac_tmp/stdin" \
1919120210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1919220211 esac
1919320212 ;;
1932420343 s&@MKDIR_P@&$ac_MKDIR_P&;t t
1932520344 $ac_datarootdir_hack
1932620345 "
19327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20346 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20347 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1932920348
1933020349 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19331 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19332 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20350 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20351 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20352 "$ac_tmp/out"`; test -z "$ac_out"; } &&
1933320353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1933420354 which seems to be undefined. Please make sure it is defined" >&5
1933520355 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1933620356 which seems to be undefined. Please make sure it is defined" >&2;}
1933720357
19338 rm -f "$tmp/stdin"
20358 rm -f "$ac_tmp/stdin"
1933920359 case $ac_file in
19340 -) cat "$tmp/out" && rm -f "$tmp/out";;
19341 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20360 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20361 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1934220362 esac \
1934320363 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1934420364 ;;
1934920369 if test x"$ac_file" != x-; then
1935020370 {
1935120371 $as_echo "/* $configure_input */" \
19352 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19353 } >"$tmp/config.h" \
20372 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20373 } >"$ac_tmp/config.h" \
1935420374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19355 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20375 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1935620376 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
1935720377 $as_echo "$as_me: $ac_file is unchanged" >&6;}
1935820378 else
1935920379 rm -f "$ac_file"
19360 mv "$tmp/config.h" "$ac_file" \
20380 mv "$ac_tmp/config.h" "$ac_file" \
1936120381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1936220382 fi
1936320383 else
1936420384 $as_echo "/* $configure_input */" \
19365 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1936620386 || as_fn_error $? "could not create -" "$LINENO" 5
1936720387 fi
1936820388 # Compute "$ac_file"'s index in $config_headers.
1940920429
1941020430 case $ac_file$ac_mode in
1941120431 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19412 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20432 # Older Autoconf quotes --file arguments for eval, but not when files
1941320433 # are listed without --file. Let's play safe and only enable the eval
1941420434 # if we detect the quoting.
1941520435 case $CONFIG_FILES in
1942220442 # Strip MF so we end up with the name of the file.
1942320443 mf=`echo "$mf" | sed -e 's/:.*$//'`
1942420444 # Check whether this is an Automake generated Makefile or not.
19425 # We used to match only the files named `Makefile.in', but
20445 # We used to match only the files named 'Makefile.in', but
1942620446 # some people rename them; so instead we look at the file content.
1942720447 # Grep'ing the first line is not enough: some people post-process
1942820448 # each Makefile.in and add a new line on top of each file to say so.
1945620476 continue
1945720477 fi
1945820478 # Extract the definition of DEPDIR, am__include, and am__quote
19459 # from the Makefile without running `make'.
20479 # from the Makefile without running 'make'.
1946020480 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1946120481 test -z "$DEPDIR" && continue
1946220482 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19463 test -z "am__include" && continue
20483 test -z "$am__include" && continue
1946420484 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19465 # When using ansi2knr, U may be empty or an underscore; expand it
19466 U=`sed -n 's/^U = //p' < "$mf"`
1946720485 # Find all dependency output files, they are included files with
1946820486 # $(DEPDIR) in their names. We invoke sed twice because it is the
1946920487 # simplest approach to changing $(DEPDIR) to its actual value in the
1947020488 # expansion.
1947120489 for file in `sed -n "
1947220490 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19473 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20491 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1947420492 # Make sure the directory exists.
1947520493 test -f "$dirpart/$file" && continue
1947620494 fdir=`$as_dirname -- "$file" ||
1952420542 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1952520543 #
1952620544 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19527 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19528 # Inc.
20545 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20546 # Foundation, Inc.
1952920547 # Written by Gordon Matzigkeit, 1996
1953020548 #
1953120549 # This file is part of GNU Libtool.
1957920597 # An echo program that protects backslashes.
1958020598 ECHO=$lt_ECHO
1958120599
20600 # The PATH separator for the build system.
20601 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20602
1958220603 # The host system.
1958320604 host_alias=$host_alias
1958420605 host=$host
1962820649 # turn newlines into spaces.
1962920650 NL2SP=$lt_lt_NL2SP
1963020651
20652 # convert \$build file names to \$host format.
20653 to_host_file_cmd=$lt_cv_to_host_file_cmd
20654
20655 # convert \$build files to toolchain format.
20656 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20657
1963120658 # An object symbol dumper.
1963220659 OBJDUMP=$lt_OBJDUMP
1963320660
1963420661 # Method to check whether dependent libraries are shared objects.
1963520662 deplibs_check_method=$lt_deplibs_check_method
1963620663
19637 # Command to use when deplibs_check_method == "file_magic".
20664 # Command to use when deplibs_check_method = "file_magic".
1963820665 file_magic_cmd=$lt_file_magic_cmd
20666
20667 # How to find potential files when deplibs_check_method = "file_magic".
20668 file_magic_glob=$lt_file_magic_glob
20669
20670 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20671 want_nocaseglob=$lt_want_nocaseglob
20672
20673 # DLL creation program.
20674 DLLTOOL=$lt_DLLTOOL
20675
20676 # Command to associate shared and link libraries.
20677 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
1963920678
1964020679 # The archiver.
1964120680 AR=$lt_AR
20681
20682 # Flags to create an archive.
1964220683 AR_FLAGS=$lt_AR_FLAGS
20684
20685 # How to feed a file listing to the archiver.
20686 archiver_list_spec=$lt_archiver_list_spec
1964320687
1964420688 # A symbol stripping program.
1964520689 STRIP=$lt_STRIP
1967020714 # Transform the output of nm in a C name address pair when lib prefix is needed.
1967120715 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1967220716
20717 # Specify filename containing input files for \$NM.
20718 nm_file_list_spec=$lt_nm_file_list_spec
20719
20720 # The root where to search for dependent libraries,and in which our libraries should be installed.
20721 lt_sysroot=$lt_sysroot
20722
1967320723 # The name of the directory that contains temporary libtool files.
1967420724 objdir=$objdir
1967520725
1967820728
1967920729 # Must we lock files when doing compilation?
1968020730 need_locks=$lt_need_locks
20731
20732 # Manifest tool.
20733 MANIFEST_TOOL=$lt_MANIFEST_TOOL
1968120734
1968220735 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
1968320736 DSYMUTIL=$lt_DSYMUTIL
1979320846 # Compiler flag to turn off builtin functions.
1979420847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1979520848
20849 # Additional compiler flags for building library objects.
20850 pic_flag=$lt_lt_prog_compiler_pic
20851
1979620852 # How to pass a linker flag through the compiler.
1979720853 wl=$lt_lt_prog_compiler_wl
19798
19799 # Additional compiler flags for building library objects.
19800 pic_flag=$lt_lt_prog_compiler_pic
1980120854
1980220855 # Compiler flag to prevent dynamic linking.
1980320856 link_static_flag=$lt_lt_prog_compiler_static
1984720900 # Flag to hardcode \$libdir into a binary during linking.
1984820901 # This must work even if \$libdir does not exist
1984920902 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19850
19851 # If ld is used when linking, flag to hardcode \$libdir into a binary
19852 # during linking. This must work even if \$libdir does not exist.
19853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1985420903
1985520904 # Whether we need a single "-rpath" flag with a separated argument.
1985620905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1988520934 # Whether libtool must link a program against all its dependency libraries.
1988620935 link_all_deplibs=$link_all_deplibs
1988720936
19888 # Fix the shell variable \$srcfile for the compiler.
19889 fix_srcfile_path=$lt_fix_srcfile_path
19890
1989120937 # Set to "yes" if exported symbols are required.
1989220938 always_export_symbols=$always_export_symbols
1989320939
1990220948
1990320949 # Commands necessary for linking programs (against libraries) with templates.
1990420950 prelink_cmds=$lt_prelink_cmds
20951
20952 # Commands necessary for finishing linking programs.
20953 postlink_cmds=$lt_postlink_cmds
1990520954
1990620955 # Specify filename containing input files.
1990720956 file_list_spec=$lt_file_list_spec
1994920998 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1995020999 # text mode, it properly converts lines to CR/LF. This bash problem
1995121000 # is reportedly fixed, but why not run on old versions too?
19952 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19953 || (rm -f "$cfgfile"; exit 1)
19954
19955 case $xsi_shell in
19956 yes)
19957 cat << \_LT_EOF >> "$cfgfile"
19958
19959 # func_dirname file append nondir_replacement
19960 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19961 # otherwise set result to NONDIR_REPLACEMENT.
19962 func_dirname ()
19963 {
19964 case ${1} in
19965 */*) func_dirname_result="${1%/*}${2}" ;;
19966 * ) func_dirname_result="${3}" ;;
19967 esac
19968 }
19969
19970 # func_basename file
19971 func_basename ()
19972 {
19973 func_basename_result="${1##*/}"
19974 }
19975
19976 # func_dirname_and_basename file append nondir_replacement
19977 # perform func_basename and func_dirname in a single function
19978 # call:
19979 # dirname: Compute the dirname of FILE. If nonempty,
19980 # add APPEND to the result, otherwise set result
19981 # to NONDIR_REPLACEMENT.
19982 # value returned in "$func_dirname_result"
19983 # basename: Compute filename of FILE.
19984 # value retuned in "$func_basename_result"
19985 # Implementation must be kept synchronized with func_dirname
19986 # and func_basename. For efficiency, we do not delegate to
19987 # those functions but instead duplicate the functionality here.
19988 func_dirname_and_basename ()
19989 {
19990 case ${1} in
19991 */*) func_dirname_result="${1%/*}${2}" ;;
19992 * ) func_dirname_result="${3}" ;;
19993 esac
19994 func_basename_result="${1##*/}"
19995 }
19996
19997 # func_stripname prefix suffix name
19998 # strip PREFIX and SUFFIX off of NAME.
19999 # PREFIX and SUFFIX must not contain globbing or regex special
20000 # characters, hashes, percent signs, but SUFFIX may contain a leading
20001 # dot (in which case that matches only a dot).
20002 func_stripname ()
20003 {
20004 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20005 # positional parameters, so assign one to ordinary parameter first.
20006 func_stripname_result=${3}
20007 func_stripname_result=${func_stripname_result#"${1}"}
20008 func_stripname_result=${func_stripname_result%"${2}"}
20009 }
20010
20011 # func_opt_split
20012 func_opt_split ()
20013 {
20014 func_opt_split_opt=${1%%=*}
20015 func_opt_split_arg=${1#*=}
20016 }
20017
20018 # func_lo2o object
20019 func_lo2o ()
20020 {
20021 case ${1} in
20022 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20023 *) func_lo2o_result=${1} ;;
20024 esac
20025 }
20026
20027 # func_xform libobj-or-source
20028 func_xform ()
20029 {
20030 func_xform_result=${1%.*}.lo
20031 }
20032
20033 # func_arith arithmetic-term...
20034 func_arith ()
20035 {
20036 func_arith_result=$(( $* ))
20037 }
20038
20039 # func_len string
20040 # STRING may not start with a hyphen.
20041 func_len ()
20042 {
20043 func_len_result=${#1}
20044 }
20045
20046 _LT_EOF
20047 ;;
20048 *) # Bourne compatible functions.
20049 cat << \_LT_EOF >> "$cfgfile"
20050
20051 # func_dirname file append nondir_replacement
20052 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20053 # otherwise set result to NONDIR_REPLACEMENT.
20054 func_dirname ()
20055 {
20056 # Extract subdirectory from the argument.
20057 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20058 if test "X$func_dirname_result" = "X${1}"; then
20059 func_dirname_result="${3}"
20060 else
20061 func_dirname_result="$func_dirname_result${2}"
20062 fi
20063 }
20064
20065 # func_basename file
20066 func_basename ()
20067 {
20068 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20069 }
20070
20071
20072 # func_stripname prefix suffix name
20073 # strip PREFIX and SUFFIX off of NAME.
20074 # PREFIX and SUFFIX must not contain globbing or regex special
20075 # characters, hashes, percent signs, but SUFFIX may contain a leading
20076 # dot (in which case that matches only a dot).
20077 # func_strip_suffix prefix name
20078 func_stripname ()
20079 {
20080 case ${2} in
20081 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20082 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20083 esac
20084 }
20085
20086 # sed scripts:
20087 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20088 my_sed_long_arg='1s/^-[^=]*=//'
20089
20090 # func_opt_split
20091 func_opt_split ()
20092 {
20093 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20094 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20095 }
20096
20097 # func_lo2o object
20098 func_lo2o ()
20099 {
20100 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20101 }
20102
20103 # func_xform libobj-or-source
20104 func_xform ()
20105 {
20106 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20107 }
20108
20109 # func_arith arithmetic-term...
20110 func_arith ()
20111 {
20112 func_arith_result=`expr "$@"`
20113 }
20114
20115 # func_len string
20116 # STRING may not start with a hyphen.
20117 func_len ()
20118 {
20119 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20120 }
20121
20122 _LT_EOF
20123 esac
20124
20125 case $lt_shell_append in
20126 yes)
20127 cat << \_LT_EOF >> "$cfgfile"
20128
20129 # func_append var value
20130 # Append VALUE to the end of shell variable VAR.
20131 func_append ()
20132 {
20133 eval "$1+=\$2"
20134 }
20135 _LT_EOF
20136 ;;
20137 *)
20138 cat << \_LT_EOF >> "$cfgfile"
20139
20140 # func_append var value
20141 # Append VALUE to the end of shell variable VAR.
20142 func_append ()
20143 {
20144 eval "$1=\$$1\$2"
20145 }
20146
20147 _LT_EOF
20148 ;;
20149 esac
20150
20151
20152 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20153 || (rm -f "$cfgfile"; exit 1)
20154
20155 mv -f "$cfgfile" "$ofile" ||
21001 sed '$q' "$ltmain" >> "$cfgfile" \
21002 || (rm -f "$cfgfile"; exit 1)
21003
21004 if test x"$xsi_shell" = xyes; then
21005 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21006 func_dirname ()\
21007 {\
21008 \ case ${1} in\
21009 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21010 \ * ) func_dirname_result="${3}" ;;\
21011 \ esac\
21012 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21013 && mv -f "$cfgfile.tmp" "$cfgfile" \
21014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21015 test 0 -eq $? || _lt_function_replace_fail=:
21016
21017
21018 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21019 func_basename ()\
21020 {\
21021 \ func_basename_result="${1##*/}"\
21022 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21023 && mv -f "$cfgfile.tmp" "$cfgfile" \
21024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21025 test 0 -eq $? || _lt_function_replace_fail=:
21026
21027
21028 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21029 func_dirname_and_basename ()\
21030 {\
21031 \ case ${1} in\
21032 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21033 \ * ) func_dirname_result="${3}" ;;\
21034 \ esac\
21035 \ func_basename_result="${1##*/}"\
21036 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21037 && mv -f "$cfgfile.tmp" "$cfgfile" \
21038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21039 test 0 -eq $? || _lt_function_replace_fail=:
21040
21041
21042 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21043 func_stripname ()\
21044 {\
21045 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21046 \ # positional parameters, so assign one to ordinary parameter first.\
21047 \ func_stripname_result=${3}\
21048 \ func_stripname_result=${func_stripname_result#"${1}"}\
21049 \ func_stripname_result=${func_stripname_result%"${2}"}\
21050 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21051 && mv -f "$cfgfile.tmp" "$cfgfile" \
21052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21053 test 0 -eq $? || _lt_function_replace_fail=:
21054
21055
21056 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21057 func_split_long_opt ()\
21058 {\
21059 \ func_split_long_opt_name=${1%%=*}\
21060 \ func_split_long_opt_arg=${1#*=}\
21061 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21062 && mv -f "$cfgfile.tmp" "$cfgfile" \
21063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21064 test 0 -eq $? || _lt_function_replace_fail=:
21065
21066
21067 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21068 func_split_short_opt ()\
21069 {\
21070 \ func_split_short_opt_arg=${1#??}\
21071 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21072 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21073 && mv -f "$cfgfile.tmp" "$cfgfile" \
21074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21075 test 0 -eq $? || _lt_function_replace_fail=:
21076
21077
21078 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21079 func_lo2o ()\
21080 {\
21081 \ case ${1} in\
21082 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21083 \ *) func_lo2o_result=${1} ;;\
21084 \ esac\
21085 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21086 && mv -f "$cfgfile.tmp" "$cfgfile" \
21087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21088 test 0 -eq $? || _lt_function_replace_fail=:
21089
21090
21091 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21092 func_xform ()\
21093 {\
21094 func_xform_result=${1%.*}.lo\
21095 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21096 && mv -f "$cfgfile.tmp" "$cfgfile" \
21097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21098 test 0 -eq $? || _lt_function_replace_fail=:
21099
21100
21101 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21102 func_arith ()\
21103 {\
21104 func_arith_result=$(( $* ))\
21105 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21106 && mv -f "$cfgfile.tmp" "$cfgfile" \
21107 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21108 test 0 -eq $? || _lt_function_replace_fail=:
21109
21110
21111 sed -e '/^func_len ()$/,/^} # func_len /c\
21112 func_len ()\
21113 {\
21114 func_len_result=${#1}\
21115 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21116 && mv -f "$cfgfile.tmp" "$cfgfile" \
21117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21118 test 0 -eq $? || _lt_function_replace_fail=:
21119
21120 fi
21121
21122 if test x"$lt_shell_append" = xyes; then
21123 sed -e '/^func_append ()$/,/^} # func_append /c\
21124 func_append ()\
21125 {\
21126 eval "${1}+=\\${2}"\
21127 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21128 && mv -f "$cfgfile.tmp" "$cfgfile" \
21129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21130 test 0 -eq $? || _lt_function_replace_fail=:
21131
21132
21133 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21134 func_append_quoted ()\
21135 {\
21136 \ func_quote_for_eval "${2}"\
21137 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21138 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21139 && mv -f "$cfgfile.tmp" "$cfgfile" \
21140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21141 test 0 -eq $? || _lt_function_replace_fail=:
21142
21143
21144 # Save a `func_append' function call where possible by direct use of '+='
21145 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21146 && mv -f "$cfgfile.tmp" "$cfgfile" \
21147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21148 test 0 -eq $? || _lt_function_replace_fail=:
21149 else
21150 # Save a `func_append' function call even when '+=' is not available
21151 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21152 && mv -f "$cfgfile.tmp" "$cfgfile" \
21153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21154 test 0 -eq $? || _lt_function_replace_fail=:
21155 fi
21156
21157 if test x"$_lt_function_replace_fail" = x":"; then
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21159 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21160 fi
21161
21162
21163 mv -f "$cfgfile" "$ofile" ||
2015621164 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
2015721165 chmod +x "$ofile"
2015821166
2018021188 # Compiler flag to turn off builtin functions.
2018121189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
2018221190
21191 # Additional compiler flags for building library objects.
21192 pic_flag=$lt_lt_prog_compiler_pic_CXX
21193
2018321194 # How to pass a linker flag through the compiler.
2018421195 wl=$lt_lt_prog_compiler_wl_CXX
20185
20186 # Additional compiler flags for building library objects.
20187 pic_flag=$lt_lt_prog_compiler_pic_CXX
2018821196
2018921197 # Compiler flag to prevent dynamic linking.
2019021198 link_static_flag=$lt_lt_prog_compiler_static_CXX
2023421242 # Flag to hardcode \$libdir into a binary during linking.
2023521243 # This must work even if \$libdir does not exist
2023621244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20237
20238 # If ld is used when linking, flag to hardcode \$libdir into a binary
20239 # during linking. This must work even if \$libdir does not exist.
20240 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
2024121245
2024221246 # Whether we need a single "-rpath" flag with a separated argument.
2024321247 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
2027221276 # Whether libtool must link a program against all its dependency libraries.
2027321277 link_all_deplibs=$link_all_deplibs_CXX
2027421278
20275 # Fix the shell variable \$srcfile for the compiler.
20276 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20277
2027821279 # Set to "yes" if exported symbols are required.
2027921280 always_export_symbols=$always_export_symbols_CXX
2028021281
2028921290
2029021291 # Commands necessary for linking programs (against libraries) with templates.
2029121292 prelink_cmds=$lt_prelink_cmds_CXX
21293
21294 # Commands necessary for finishing linking programs.
21295 postlink_cmds=$lt_postlink_cmds_CXX
2029221296
2029321297 # Specify filename containing input files.
2029421298 file_list_spec=$lt_file_list_spec_CXX
2037621380 fi
2037721381
2037821382 echo "
20379 ibus-input-pad version 1.4.0
21383 ibus-input-pad version 1.4.2
2038021384
2038121385
2038221386 libinput_pad version: $libinput_pad_VERSION
11 #
22 # ibus-input-pad - Input pad for IBus
33 #
4 # Copyright (c) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010 Red Hat, Inc.
4 # Copyright (c) 2010-2013 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2013 Red Hat, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
2222 m4_define([ibus_released], [1])
2323 m4_define([ibus_major_version], [1])
2424 m4_define([ibus_minor_version], [4])
25 m4_define([ibus_micro_version], [0])
25 m4_define([ibus_micro_version], [2])
2626 m4_define(ibus_maybe_datestamp,
2727 m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
2828
4343
4444 dnl - define PACKAGE_VERSION_* variables
4545 AM_SANITY_CHECK
46 AM_MAINTAINER_MODE
47 AM_DISABLE_STATIC
46 AM_MAINTAINER_MODE(enable)
47 AC_DISABLE_STATIC
4848 AC_PROG_CC
4949 AM_PROG_CC_C_O
5050 AC_PROG_CXX
51 AC_ISC_POSIX
5251 AC_HEADER_STDC
53 AM_PROG_LIBTOOL
52 AC_PROG_LIBTOOL
5453 IT_PROG_INTLTOOL([0.35.0])
5554
5655 dnl - For dislpay Date
6867 dnl - check gtk
6968 AC_ARG_WITH([gtk],
7069 [AS_HELP_STRING([--with-gtk=2.0|3.0],
71 [Select GTK+ version. The default is 2.0])],
70 [Select GTK+ version. The default is 3.0])],
7271 [case "$with_gtk" in
7372 2.0|3.0) ;;
7473 *) AC_MSG_ERROR([invalid gtk version specified]) ;;
7574 esac],
76 [with_gtk=2.0]
75 [with_gtk=3.0]
7776 )
7877
7978 case "$with_gtk" in
+349
-188
depcomp less more
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
76
87 # This program is free software; you can redistribute it and/or modify
98 # it under the terms of the GNU General Public License as published by
2726
2827 case $1 in
2928 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3332 -h | --h*)
3433 cat <<\EOF
3534 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
3938
4039 Environment variables:
4140 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
4443 DEPDIR directory where to store dependencies.
4544 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
45 tmpdepfile Temporary file to use when outputting dependencies.
4746 libtool Whether libtool is used (yes/no).
4847
4948 Report bugs to <bug-automake@gnu.org>.
5655 ;;
5756 esac
5857
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
59118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
60119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
61120 exit 1
67126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
68127
69128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
70132
71133 # Some modes work just like other modes, but use different flags. We
72134 # parameterize here, but still list the modes in the big case below,
79141 fi
80142
81143 if test "$depmode" = dashXmstdout; then
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
85147 fi
86148
87149 cygpath_u="cygpath -u -f -"
88150 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
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
94170 fi
95171
96172 case "$depmode" in
113189 done
114190 "$@"
115191 stat=$?
116 if test $stat -eq 0; then :
117 else
192 if test $stat -ne 0; then
118193 rm -f "$tmpdepfile"
119194 exit $stat
120195 fi
122197 ;;
123198
124199 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).
125203 ## There are various ways to get dependency output from gcc. Here's
126204 ## why we pick this rather obscure method:
127205 ## - Don't want to use -MD because we'd like the dependencies to end
128206 ## up in a subdir. Having to rename by hand is ugly.
129207 ## (We might end up doing this anyway to support other compilers.)
130208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
131 ## -MM, not -M (despite what the docs say).
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.
132211 ## - Using -M directly means running the compiler twice (even worse
133212 ## than renaming).
134213 if test -z "$gccflag"; then
136215 fi
137216 "$@" -Wp,"$gccflag$tmpdepfile"
138217 stat=$?
139 if test $stat -eq 0; then :
140 else
218 if test $stat -ne 0; then
141219 rm -f "$tmpdepfile"
142220 exit $stat
143221 fi
144222 rm -f "$depfile"
145223 echo "$object : \\" > "$depfile"
146 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
147 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
148226 sed -e 's/^[^:]*: / /' \
149227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
150 ## This next piece of magic avoids the `deleted header file' problem.
228 ## This next piece of magic avoids the "deleted header file" problem.
151229 ## The problem is that when a header file which appears in a .P file
152230 ## is deleted, the dependency causes make to die (because there is
153231 ## typically no way to rebuild the header). We avoid this by adding
154232 ## dummy dependencies for each header file. Too bad gcc doesn't do
155233 ## this for us directly.
156 tr ' ' '
157 ' < "$tmpdepfile" |
158 ## Some versions of gcc put a space before the `:'. On the theory
234 ## Some versions of gcc put a space before the ':'. On the theory
159235 ## that the space means something, we add a space to the output as
160 ## well.
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.
161238 ## Some versions of the HPUX 10.20 sed can't process this invocation
162239 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
164243 rm -f "$tmpdepfile"
165244 ;;
166245
178257 "$@" -MDupdate "$tmpdepfile"
179258 fi
180259 stat=$?
181 if test $stat -eq 0; then :
182 else
260 if test $stat -ne 0; then
183261 rm -f "$tmpdepfile"
184262 exit $stat
185263 fi
187265
188266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
189267 echo "$object : \\" > "$depfile"
190
191268 # Clip off the initial element (the dependent). Don't try to be
192269 # clever and replace this with sed code, as IRIX sed won't handle
193270 # lines with more than a fixed number of characters (4096 in
194271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
195 # the IRIX cc adds comments like `#:fec' to the end of the
272 # the IRIX cc adds comments like '#:fec' to the end of the
196273 # dependency line.
197 tr ' ' '
198 ' < "$tmpdepfile" \
199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
200 tr '
201 ' ' ' >> "$depfile"
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
202277 echo >> "$depfile"
203
204278 # The second pass generates a dummy entry for each header file.
205 tr ' ' '
206 ' < "$tmpdepfile" \
207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
208 >> "$depfile"
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
209282 else
210 # The sourcefile does not contain any dependencies, so just
211 # store a dummy comment line, to avoid errors with the Makefile
212 # "include basename.Plo" scheme.
213 echo "#dummy" > "$depfile"
283 make_dummy_depfile
214284 fi
215285 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
216293 ;;
217294
218295 aix)
219296 # The C for AIX Compiler uses -M and outputs the dependencies
220297 # in a .u file. In older versions, this file always lives in the
221 # current directory. Also, the AIX compiler puts `$object:' at the
298 # current directory. Also, the AIX compiler puts '$object:' at the
222299 # start of each line; $object doesn't have directory information.
223300 # Version 6 uses the directory in both cases.
224 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
225 test "x$dir" = "x$object" && dir=
226 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
227303 if test "$libtool" = yes; then
228304 tmpdepfile1=$dir$base.u
229305 tmpdepfile2=$base.u
236312 "$@" -M
237313 fi
238314 stat=$?
239
240 if test $stat -eq 0; then :
241 else
315 if test $stat -ne 0; then
242316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
243317 exit $stat
244318 fi
247321 do
248322 test -f "$tmpdepfile" && break
249323 done
250 if test -f "$tmpdepfile"; then
251 # Each line is of the form `foo.o: dependent.h'.
252 # Do two passes, one to just change these to
253 # `$object: dependent.h' and one to simply `dependent.h:'.
254 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
255 # That's a tab and a space in the [].
256 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
257 else
258 # The sourcefile does not contain any dependencies, so just
259 # store a dummy comment line, to avoid errors with the Makefile
260 # "include basename.Plo" scheme.
261 echo "#dummy" > "$depfile"
262 fi
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"
263355 rm -f "$tmpdepfile"
264356 ;;
265357
266 icc)
267 # Intel's C compiler understands `-MD -MF file'. However on
268 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
269 # ICC 7.0 will fill foo.d with something like
270 # foo.o: sub/foo.c
271 # foo.o: sub/foo.h
272 # which is wrong. We want:
273 # sub/foo.o: sub/foo.c
274 # sub/foo.o: sub/foo.h
275 # sub/foo.c:
276 # sub/foo.h:
277 # ICC 7.1 will output
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
278368 # foo.o: sub/foo.c sub/foo.h
279 # and will wrap long lines using \ :
369 # and will wrap long lines using '\' :
280370 # foo.o: sub/foo.c ... \
281371 # sub/foo.h ... \
282372 # ...
283
284 "$@" -MD -MF "$tmpdepfile"
285 stat=$?
286 if test $stat -eq 0; then :
287 else
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
288418 rm -f "$tmpdepfile"
289419 exit $stat
290420 fi
296426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
297427 # Some versions of the HPUX 10.20 sed can't process this invocation
298428 # correctly. Breaking it into two sed invocations is a workaround.
299 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
300 sed -e 's/$/ :/' >> "$depfile"
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
301431 rm -f "$tmpdepfile"
302432 ;;
303433
308438 # 'foo.d', which lands next to the object file, wherever that
309439 # happens to be.
310440 # Much of this is similar to the tru64 case; see comments there.
311 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
312 test "x$dir" = "x$object" && dir=
313 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
314443 if test "$libtool" = yes; then
315444 tmpdepfile1=$dir$base.d
316445 tmpdepfile2=$dir.libs/$base.d
321450 "$@" +Maked
322451 fi
323452 stat=$?
324 if test $stat -eq 0; then :
325 else
453 if test $stat -ne 0; then
326454 rm -f "$tmpdepfile1" "$tmpdepfile2"
327455 exit $stat
328456 fi
332460 test -f "$tmpdepfile" && break
333461 done
334462 if test -f "$tmpdepfile"; then
335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
336 # Add `dependent.h:' lines.
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
337465 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
343471 else
344 echo "#dummy" > "$depfile"
472 make_dummy_depfile
345473 fi
346474 rm -f "$tmpdepfile" "$tmpdepfile2"
347475 ;;
348476
349477 tru64)
350 # The Tru64 compiler uses -MD to generate dependencies as a side
351 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
352 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
353 # dependencies in `foo.d' instead, so we check for that too.
354 # Subdirectories are respected.
355 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
356 test "x$dir" = "x$object" && dir=
357 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
358
359 if test "$libtool" = yes; then
360 # With Tru64 cc, shared objects can also be used to make a
361 # static library. This mechanism is used in libtool 1.4 series to
362 # handle both shared and static libraries in a single compilation.
363 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
364 #
365 # With libtool 1.5 this exception was removed, and libtool now
366 # generates 2 separate objects for the 2 libraries. These two
367 # compilations output dependencies in $dir.libs/$base.o.d and
368 # in $dir$base.o.d. We have to check for both files, because
369 # one of the two compilations can be disabled. We should prefer
370 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
371 # automatically cleaned when .libs/ is deleted, while ignoring
372 # the former would cause a distcleancheck panic.
373 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
374 tmpdepfile2=$dir$base.o.d # libtool 1.5
375 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
376 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
377 "$@" -Wc,-MD
378 else
379 tmpdepfile1=$dir$base.o.d
380 tmpdepfile2=$dir$base.d
381 tmpdepfile3=$dir$base.d
382 tmpdepfile4=$dir$base.d
383 "$@" -MD
384 fi
385
386 stat=$?
387 if test $stat -eq 0; then :
388 else
389 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
390 exit $stat
391 fi
392
393 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
394 do
395 test -f "$tmpdepfile" && break
396 done
397 if test -f "$tmpdepfile"; then
398 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
399 # That's a tab and a space in the [].
400 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
401 else
402 echo "#dummy" > "$depfile"
403 fi
404 rm -f "$tmpdepfile"
405 ;;
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 ;;
406564
407565 #nosideeffect)
408566 # This comment above is used by automake to tell side-effect
421579 shift
422580 fi
423581
424 # Remove `-o $object'.
582 # Remove '-o $object'.
425583 IFS=" "
426584 for arg
427585 do
441599 done
442600
443601 test -z "$dashmflag" && dashmflag=-M
444 # Require at least two characters before searching for `:'
602 # Require at least two characters before searching for ':'
445603 # in the target name. This is to cope with DOS-style filenames:
446 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
447605 "$@" $dashmflag |
448 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
449607 rm -f "$depfile"
450608 cat < "$tmpdepfile" > "$depfile"
451 tr ' ' '
452 ' < "$tmpdepfile" | \
453 ## Some versions of the HPUX 10.20 sed can't process this invocation
454 ## correctly. Breaking it into two sed invocations is a workaround.
455 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$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"
456614 rm -f "$tmpdepfile"
457615 ;;
458616
502660 touch "$tmpdepfile"
503661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504662 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
506 sed '1,2d' "$tmpdepfile" | tr ' ' '
507 ' | \
508 ## Some versions of the HPUX 10.20 sed can't process this invocation
509 ## correctly. Breaking it into two sed invocations is a workaround.
510 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$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"
511672 rm -f "$tmpdepfile" "$tmpdepfile".bak
512673 ;;
513674
524685 shift
525686 fi
526687
527 # Remove `-o $object'.
688 # Remove '-o $object'.
528689 IFS=" "
529690 for arg
530691 do
543704 esac
544705 done
545706
546 "$@" -E |
547 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
548 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
549 sed '$ s: \\$::' > "$tmpdepfile"
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"
550711 rm -f "$depfile"
551712 echo "$object : \\" > "$depfile"
552713 cat < "$tmpdepfile" >> "$depfile"
578739 shift
579740 ;;
580741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
581 set fnord "$@"
582 shift
583 shift
584 ;;
742 set fnord "$@"
743 shift
744 shift
745 ;;
585746 *)
586 set fnord "$@" "$arg"
587 shift
588 shift
589 ;;
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
590751 esac
591752 done
592753 "$@" -E 2>/dev/null |
593754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
594755 rm -f "$depfile"
595756 echo "$object : \\" > "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
597 echo " " >> "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
598759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
599760 rm -f "$tmpdepfile"
600761 ;;
11 #
22 # ibus-input-pad - Input pad for IBus
33 #
4 # Copyright (c) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010 Red Hat, Inc.
4 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2011 Red Hat, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
2121 noinst_DIST = \
2222 $(NULL)
2323
24 INCLUDES = \
24 AM_CPPFLAGS = \
2525 -I$(top_srcdir) \
2626 -I$(top_srcdir)/setup \
2727 -DDATAROOTDIR=\""$(datarootdir)"\" \
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1817 #
1918 # ibus-input-pad - Input pad for IBus
2019 #
21 # Copyright (c) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
22 # Copyright (c) 2010 Red Hat, Inc.
20 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
21 # Copyright (c) 2010-2011 Red Hat, Inc.
2322 #
2423 # This program is free software; you can redistribute it and/or modify
2524 # it under the terms of the GNU General Public License as published by
3736
3837
3938 VPATH = @srcdir@
39 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
40 am__make_running_with_option = \
41 case $${target_option-} in \
42 ?) ;; \
43 *) echo "am__make_running_with_option: internal error: invalid" \
44 "target option '$${target_option-}' specified" >&2; \
45 exit 1;; \
46 esac; \
47 has_opt=no; \
48 sane_makeflags=$$MAKEFLAGS; \
49 if $(am__is_gnu_make); then \
50 sane_makeflags=$$MFLAGS; \
51 else \
52 case $$MAKEFLAGS in \
53 *\\[\ \ ]*) \
54 bs=\\; \
55 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
56 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
57 esac; \
58 fi; \
59 skip_next=no; \
60 strip_trailopt () \
61 { \
62 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
63 }; \
64 for flg in $$sane_makeflags; do \
65 test $$skip_next = yes && { skip_next=no; continue; }; \
66 case $$flg in \
67 *=*|--*) continue;; \
68 -*I) strip_trailopt 'I'; skip_next=yes;; \
69 -*I?*) strip_trailopt 'I';; \
70 -*O) strip_trailopt 'O'; skip_next=yes;; \
71 -*O?*) strip_trailopt 'O';; \
72 -*l) strip_trailopt 'l'; skip_next=yes;; \
73 -*l?*) strip_trailopt 'l';; \
74 -[dEDm]) skip_next=yes;; \
75 -[JT]) skip_next=yes;; \
76 esac; \
77 case $$flg in \
78 *$$target_option*) has_opt=yes; break;; \
79 esac; \
80 done; \
81 test $$has_opt = yes
82 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
83 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4084 pkgdatadir = $(datadir)/@PACKAGE@
4185 pkgincludedir = $(includedir)/@PACKAGE@
4286 pkglibdir = $(libdir)/@PACKAGE@
57101 host_triplet = @host@
58102 libexec_PROGRAMS = ibus-engine-input-pad$(EXEEXT)
59103 subdir = engine
60 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
104 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
105 $(top_srcdir)/depcomp
61106 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
62 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
107 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
108 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
109 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
110 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
63111 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
64112 $(ACLOCAL_M4)
65113 mkinstalldirs = $(install_sh) -d
77125 ibus_engine_input_pad_DEPENDENCIES = \
78126 $(top_builddir)/setup/libiconfig.la $(am__DEPENDENCIES_1) \
79127 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
80 ibus_engine_input_pad_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
81 $(LIBTOOLFLAGS) --mode=link $(CCLD) \
128 AM_V_lt = $(am__v_lt_@AM_V@)
129 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
130 am__v_lt_0 = --silent
131 am__v_lt_1 =
132 ibus_engine_input_pad_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
133 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
82134 $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) \
83135 $(ibus_engine_input_pad_LDFLAGS) $(LDFLAGS) -o $@
136 AM_V_P = $(am__v_P_@AM_V@)
137 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
138 am__v_P_0 = false
139 am__v_P_1 = :
140 AM_V_GEN = $(am__v_GEN_@AM_V@)
141 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
142 am__v_GEN_0 = @echo " GEN " $@;
143 am__v_GEN_1 =
144 AM_V_at = $(am__v_at_@AM_V@)
145 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
146 am__v_at_0 = @
147 am__v_at_1 =
84148 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
85149 depcomp = $(SHELL) $(top_srcdir)/depcomp
86150 am__depfiles_maybe = depfiles
87151 am__mv = mv -f
88152 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
89153 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
90 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
91 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
92 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
154 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
155 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
156 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
157 $(AM_CFLAGS) $(CFLAGS)
158 AM_V_CC = $(am__v_CC_@AM_V@)
159 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
160 am__v_CC_0 = @echo " CC " $@;
161 am__v_CC_1 =
93162 CCLD = $(CC)
94 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
95 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
96 $(LDFLAGS) -o $@
163 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
164 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
165 $(AM_LDFLAGS) $(LDFLAGS) -o $@
166 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
167 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
168 am__v_CCLD_0 = @echo " CCLD " $@;
169 am__v_CCLD_1 =
97170 SOURCES = $(ibus_engine_input_pad_SOURCES)
98171 DIST_SOURCES = $(ibus_engine_input_pad_SOURCES)
172 am__can_run_installinfo = \
173 case $$AM_UPDATE_INFO_DIR in \
174 n|no|NO) false;; \
175 *) (install-info --version) >/dev/null 2>&1;; \
176 esac
99177 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
100178 am__vpath_adj = case $$p in \
101179 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
117195 am__base_list = \
118196 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
119197 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
198 am__uninstall_files_from_dir = { \
199 test -z "$$files" \
200 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
201 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
202 $(am__cd) "$$dir" && rm -f $$files; }; \
203 }
120204 DATA = $(component_DATA)
205 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
206 # Read a list of newline-separated strings from the standard input,
207 # and print each of them once, without duplicates. Input order is
208 # *not* preserved.
209 am__uniquify_input = $(AWK) '\
210 BEGIN { nonempty = 0; } \
211 { items[$$0] = 1; nonempty = 1; } \
212 END { if (nonempty) { for (i in items) print i; }; } \
213 '
214 # Make sure the list of sources is unique. This is necessary because,
215 # e.g., the same source file might be shared among _SOURCES variables
216 # for different programs/libraries.
217 am__define_uniq_tagged_files = \
218 list='$(am__tagged_files)'; \
219 unique=`for i in $$list; do \
220 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
221 done | $(am__uniquify_input)`
121222 ETAGS = etags
122223 CTAGS = ctags
123224 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
124225 ACLOCAL = @ACLOCAL@
125226 ALL_LINGUAS = @ALL_LINGUAS@
126227 AMTAR = @AMTAR@
228 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
127229 AR = @AR@
128230 AUTOCONF = @AUTOCONF@
129231 AUTOHEADER = @AUTOHEADER@
145247 DATE_DISPLAY = @DATE_DISPLAY@
146248 DEFS = @DEFS@
147249 DEPDIR = @DEPDIR@
250 DLLTOOL = @DLLTOOL@
148251 DSYMUTIL = @DSYMUTIL@
149252 DUMPBIN = @DUMPBIN@
150253 ECHO_C = @ECHO_C@
157260 GLIB2_CFLAGS = @GLIB2_CFLAGS@
158261 GLIB2_LIBS = @GLIB2_LIBS@
159262 GLIB_CFLAGS = @GLIB_CFLAGS@
263 GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
160264 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
161265 GLIB_LIBS = @GLIB_LIBS@
162266 GLIB_MKENUMS = @GLIB_MKENUMS@
183287 INTLTOOL_MERGE = @INTLTOOL_MERGE@
184288 INTLTOOL_PERL = @INTLTOOL_PERL@
185289 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
290 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
291 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
292 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
293 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
186294 LD = @LD@
187295 LDFLAGS = @LDFLAGS@
188296 LIBOBJS = @LIBOBJS@
193301 LTLIBOBJS = @LTLIBOBJS@
194302 MAINT = @MAINT@
195303 MAKEINFO = @MAKEINFO@
304 MANIFEST_TOOL = @MANIFEST_TOOL@
196305 MKDIR_P = @MKDIR_P@
197306 MKINSTALLDIRS = @MKINSTALLDIRS@
198307 MSGFMT = @MSGFMT@
231340 abs_srcdir = @abs_srcdir@
232341 abs_top_builddir = @abs_top_builddir@
233342 abs_top_srcdir = @abs_top_srcdir@
343 ac_ct_AR = @ac_ct_AR@
234344 ac_ct_CC = @ac_ct_CC@
235345 ac_ct_CXX = @ac_ct_CXX@
236346 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
260370 includedir = @includedir@
261371 infodir = @infodir@
262372 install_sh = @install_sh@
373 intltool__v_merge_options_ = @intltool__v_merge_options_@
374 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
263375 libdir = @libdir@
264376 libexecdir = @libexecdir@
265377 libinput_pad_VERSION = @libinput_pad_VERSION@
283395 noinst_DIST = \
284396 $(NULL)
285397
286 INCLUDES = \
398 AM_CPPFLAGS = \
287399 -I$(top_srcdir) \
288400 -I$(top_srcdir)/setup \
289401 -DDATAROOTDIR=\""$(datarootdir)"\" \
363475 $(am__aclocal_m4_deps):
364476 install-libexecPROGRAMS: $(libexec_PROGRAMS)
365477 @$(NORMAL_INSTALL)
366 test -z "$(libexecdir)" || $(MKDIR_P) "$(DESTDIR)$(libexecdir)"
367478 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
479 if test -n "$$list"; then \
480 echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \
481 $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \
482 fi; \
368483 for p in $$list; do echo "$$p $$p"; done | \
369484 sed 's/$(EXEEXT)$$//' | \
370 while read p p1; do if test -f $$p || test -f $$p1; \
371 then echo "$$p"; echo "$$p"; else :; fi; \
485 while read p p1; do if test -f $$p \
486 || test -f $$p1 \
487 ; then echo "$$p"; echo "$$p"; else :; fi; \
372488 done | \
373 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
489 sed -e 'p;s,.*/,,;n;h' \
490 -e 's|.*|.|' \
374491 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
375492 sed 'N;N;N;s,\n, ,g' | \
376493 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
391508 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
392509 files=`for p in $$list; do echo "$$p"; done | \
393510 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
394 -e 's/$$/$(EXEEXT)/' `; \
511 -e 's/$$/$(EXEEXT)/' \
512 `; \
395513 test -n "$$list" || exit 0; \
396514 echo " ( cd '$(DESTDIR)$(libexecdir)' && rm -f" $$files ")"; \
397515 cd "$(DESTDIR)$(libexecdir)" && rm -f $$files
404522 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
405523 echo " rm -f" $$list; \
406524 rm -f $$list
407 ibus-engine-input-pad$(EXEEXT): $(ibus_engine_input_pad_OBJECTS) $(ibus_engine_input_pad_DEPENDENCIES)
525
526 ibus-engine-input-pad$(EXEEXT): $(ibus_engine_input_pad_OBJECTS) $(ibus_engine_input_pad_DEPENDENCIES) $(EXTRA_ibus_engine_input_pad_DEPENDENCIES)
408527 @rm -f ibus-engine-input-pad$(EXEEXT)
409 $(ibus_engine_input_pad_LINK) $(ibus_engine_input_pad_OBJECTS) $(ibus_engine_input_pad_LDADD) $(LIBS)
528 $(AM_V_CCLD)$(ibus_engine_input_pad_LINK) $(ibus_engine_input_pad_OBJECTS) $(ibus_engine_input_pad_LDADD) $(LIBS)
410529
411530 mostlyclean-compile:
412531 -rm -f *.$(OBJEXT)
418537 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ibus_engine_input_pad-main.Po@am__quote@
419538
420539 .c.o:
421 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
422 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
423 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
540 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
541 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
542 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
424543 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
425 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
544 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
426545
427546 .c.obj:
428 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
429 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
430 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
547 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
548 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
549 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
431550 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
432 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
551 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
433552
434553 .c.lo:
435 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
436 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
437 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
554 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
555 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
556 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
438557 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
439 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
558 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
440559
441560 ibus_engine_input_pad-engine.o: engine.c
442 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-engine.o -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-engine.Tpo -c -o ibus_engine_input_pad-engine.o `test -f 'engine.c' || echo '$(srcdir)/'`engine.c
443 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ibus_engine_input_pad-engine.Tpo $(DEPDIR)/ibus_engine_input_pad-engine.Po
444 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='engine.c' object='ibus_engine_input_pad-engine.o' libtool=no @AMDEPBACKSLASH@
561 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-engine.o -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-engine.Tpo -c -o ibus_engine_input_pad-engine.o `test -f 'engine.c' || echo '$(srcdir)/'`engine.c
562 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_engine_input_pad-engine.Tpo $(DEPDIR)/ibus_engine_input_pad-engine.Po
563 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='engine.c' object='ibus_engine_input_pad-engine.o' libtool=no @AMDEPBACKSLASH@
445564 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
446 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-engine.o `test -f 'engine.c' || echo '$(srcdir)/'`engine.c
565 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-engine.o `test -f 'engine.c' || echo '$(srcdir)/'`engine.c
447566
448567 ibus_engine_input_pad-engine.obj: engine.c
449 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-engine.obj -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-engine.Tpo -c -o ibus_engine_input_pad-engine.obj `if test -f 'engine.c'; then $(CYGPATH_W) 'engine.c'; else $(CYGPATH_W) '$(srcdir)/engine.c'; fi`
450 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ibus_engine_input_pad-engine.Tpo $(DEPDIR)/ibus_engine_input_pad-engine.Po
451 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='engine.c' object='ibus_engine_input_pad-engine.obj' libtool=no @AMDEPBACKSLASH@
568 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-engine.obj -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-engine.Tpo -c -o ibus_engine_input_pad-engine.obj `if test -f 'engine.c'; then $(CYGPATH_W) 'engine.c'; else $(CYGPATH_W) '$(srcdir)/engine.c'; fi`
569 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_engine_input_pad-engine.Tpo $(DEPDIR)/ibus_engine_input_pad-engine.Po
570 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='engine.c' object='ibus_engine_input_pad-engine.obj' libtool=no @AMDEPBACKSLASH@
452571 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
453 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-engine.obj `if test -f 'engine.c'; then $(CYGPATH_W) 'engine.c'; else $(CYGPATH_W) '$(srcdir)/engine.c'; fi`
572 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-engine.obj `if test -f 'engine.c'; then $(CYGPATH_W) 'engine.c'; else $(CYGPATH_W) '$(srcdir)/engine.c'; fi`
454573
455574 ibus_engine_input_pad-main.o: main.c
456 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-main.o -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-main.Tpo -c -o ibus_engine_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
457 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ibus_engine_input_pad-main.Tpo $(DEPDIR)/ibus_engine_input_pad-main.Po
458 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='ibus_engine_input_pad-main.o' libtool=no @AMDEPBACKSLASH@
575 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-main.o -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-main.Tpo -c -o ibus_engine_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
576 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_engine_input_pad-main.Tpo $(DEPDIR)/ibus_engine_input_pad-main.Po
577 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='ibus_engine_input_pad-main.o' libtool=no @AMDEPBACKSLASH@
459578 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
460 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
579 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
461580
462581 ibus_engine_input_pad-main.obj: main.c
463 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-main.obj -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-main.Tpo -c -o ibus_engine_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
464 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ibus_engine_input_pad-main.Tpo $(DEPDIR)/ibus_engine_input_pad-main.Po
465 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='ibus_engine_input_pad-main.obj' libtool=no @AMDEPBACKSLASH@
582 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -MT ibus_engine_input_pad-main.obj -MD -MP -MF $(DEPDIR)/ibus_engine_input_pad-main.Tpo -c -o ibus_engine_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
583 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_engine_input_pad-main.Tpo $(DEPDIR)/ibus_engine_input_pad-main.Po
584 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='ibus_engine_input_pad-main.obj' libtool=no @AMDEPBACKSLASH@
466585 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
467 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
586 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_engine_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_engine_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
468587
469588 mostlyclean-libtool:
470589 -rm -f *.lo
473592 -rm -rf .libs _libs
474593 install-componentDATA: $(component_DATA)
475594 @$(NORMAL_INSTALL)
476 test -z "$(componentdir)" || $(MKDIR_P) "$(DESTDIR)$(componentdir)"
477595 @list='$(component_DATA)'; test -n "$(componentdir)" || list=; \
596 if test -n "$$list"; then \
597 echo " $(MKDIR_P) '$(DESTDIR)$(componentdir)'"; \
598 $(MKDIR_P) "$(DESTDIR)$(componentdir)" || exit 1; \
599 fi; \
478600 for p in $$list; do \
479601 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
480602 echo "$$d$$p"; \
488610 @$(NORMAL_UNINSTALL)
489611 @list='$(component_DATA)'; test -n "$(componentdir)" || list=; \
490612 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
491 test -n "$$files" || exit 0; \
492 echo " ( cd '$(DESTDIR)$(componentdir)' && rm -f" $$files ")"; \
493 cd "$(DESTDIR)$(componentdir)" && rm -f $$files
494
495 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
496 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
497 unique=`for i in $$list; do \
498 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
499 done | \
500 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
501 END { if (nonempty) { for (i in files) print i; }; }'`; \
502 mkid -fID $$unique
503 tags: TAGS
504
505 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
506 $(TAGS_FILES) $(LISP)
613 dir='$(DESTDIR)$(componentdir)'; $(am__uninstall_files_from_dir)
614
615 ID: $(am__tagged_files)
616 $(am__define_uniq_tagged_files); mkid -fID $$unique
617 tags: tags-am
618 TAGS: tags
619
620 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
507621 set x; \
508622 here=`pwd`; \
509 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
510 unique=`for i in $$list; do \
511 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
512 done | \
513 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
514 END { if (nonempty) { for (i in files) print i; }; }'`; \
623 $(am__define_uniq_tagged_files); \
515624 shift; \
516625 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
517626 test -n "$$unique" || unique=$$empty_fix; \
523632 $$unique; \
524633 fi; \
525634 fi
526 ctags: CTAGS
527 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
528 $(TAGS_FILES) $(LISP)
529 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
530 unique=`for i in $$list; do \
531 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
532 done | \
533 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
534 END { if (nonempty) { for (i in files) print i; }; }'`; \
635 ctags: ctags-am
636
637 CTAGS: ctags
638 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
639 $(am__define_uniq_tagged_files); \
535640 test -z "$(CTAGS_ARGS)$$unique" \
536641 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
537642 $$unique
540645 here=`$(am__cd) $(top_builddir) && pwd` \
541646 && $(am__cd) $(top_srcdir) \
542647 && gtags -i $(GTAGS_ARGS) "$$here"
648 cscopelist: cscopelist-am
649
650 cscopelist-am: $(am__tagged_files)
651 list='$(am__tagged_files)'; \
652 case "$(srcdir)" in \
653 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
654 *) sdir=$(subdir)/$(srcdir) ;; \
655 esac; \
656 for i in $$list; do \
657 if test -f "$$i"; then \
658 echo "$(subdir)/$$i"; \
659 else \
660 echo "$$sdir/$$i"; \
661 fi; \
662 done >> $(top_builddir)/cscope.files
543663
544664 distclean-tags:
545665 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
591711
592712 installcheck: installcheck-am
593713 install-strip:
594 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
595 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
596 `test -z '$(STRIP)' || \
597 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
714 if test -z '$(STRIP)'; then \
715 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
716 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
717 install; \
718 else \
719 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
720 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
721 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
722 fi
598723 mostlyclean-generic:
599724
600725 clean-generic:
680805
681806 .MAKE: install-am install-strip
682807
683 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
684 clean-libexecPROGRAMS clean-libtool ctags distclean \
685 distclean-compile distclean-generic distclean-libtool \
686 distclean-tags distdir dvi dvi-am html html-am info info-am \
687 install install-am install-componentDATA install-data \
688 install-data-am install-dvi install-dvi-am install-exec \
689 install-exec-am install-html install-html-am install-info \
690 install-info-am install-libexecPROGRAMS install-man \
691 install-pdf install-pdf-am install-ps install-ps-am \
692 install-strip installcheck installcheck-am installdirs \
693 maintainer-clean maintainer-clean-generic mostlyclean \
694 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
695 pdf pdf-am ps ps-am tags uninstall uninstall-am \
696 uninstall-componentDATA uninstall-libexecPROGRAMS
808 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
809 clean-libexecPROGRAMS clean-libtool cscopelist-am ctags \
810 ctags-am distclean distclean-compile distclean-generic \
811 distclean-libtool distclean-tags distdir dvi dvi-am html \
812 html-am info info-am install install-am install-componentDATA \
813 install-data install-data-am install-dvi install-dvi-am \
814 install-exec install-exec-am install-html install-html-am \
815 install-info install-info-am install-libexecPROGRAMS \
816 install-man install-pdf install-pdf-am install-ps \
817 install-ps-am install-strip installcheck installcheck-am \
818 installdirs maintainer-clean maintainer-clean-generic \
819 mostlyclean mostlyclean-compile mostlyclean-generic \
820 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
821 uninstall-am uninstall-componentDATA uninstall-libexecPROGRAMS
697822
698823
699824 %.xml : %.xml.in
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
88 <license>GPL</license>
99 <homepage>http://code.google.com/p/input-pad</homepage>
1010 <textdomain>@GETTEXT_PACKAGE@</textdomain>
11 <shared_type>1</shared_type>
1211
1312 <engines>
1413 <engine>
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2011-11-20.07; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
155155 -s) stripcmd=$stripprog;;
156156
157157 -t) dst_arg=$2
158 # Protect names problematic for 'test' and other utilities.
159 case $dst_arg in
160 -* | [=\(\)!]) dst_arg=./$dst_arg;;
161 esac
158162 shift;;
159163
160164 -T) no_target_directory=true;;
185189 fi
186190 shift # arg
187191 dst_arg=$arg
192 # Protect names problematic for 'test' and other utilities.
193 case $dst_arg in
194 -* | [=\(\)!]) dst_arg=./$dst_arg;;
195 esac
188196 done
189197 fi
190198
193201 echo "$0: no input file specified." >&2
194202 exit 1
195203 fi
196 # It's OK to call `install-sh -d' without argument.
204 # It's OK to call 'install-sh -d' without argument.
197205 # This can happen when creating conditional directories.
198206 exit 0
199207 fi
200208
201209 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
210 do_exit='(exit $ret); exit $ret'
211 trap "ret=129; $do_exit" 1
212 trap "ret=130; $do_exit" 2
213 trap "ret=141; $do_exit" 13
214 trap "ret=143; $do_exit" 15
203215
204216 # Set umask so as not to create temps with too-generous modes.
205217 # However, 'strip' requires both read and write access to temps.
227239
228240 for src
229241 do
230 # Protect names starting with `-'.
242 # Protect names problematic for 'test' and other utilities.
231243 case $src in
232 -*) src=./$src;;
244 -* | [=\(\)!]) src=./$src;;
233245 esac
234246
235247 if test -n "$dir_arg"; then
251263 echo "$0: no destination specified." >&2
252264 exit 1
253265 fi
254
255266 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260267
261268 # If destination is a directory, append the input filename; won't work
262269 # if double slashes aren't ignored.
346353 if test -z "$dir_arg" || {
347354 # Check for POSIX incompatibilities with -m.
348355 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
356 # other-writable bit of parent directory when it shouldn't.
350357 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351358 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352359 case $ls_ld_tmpdir in
384391
385392 case $dstdir in
386393 /*) prefix='/';;
387 -*) prefix='./';;
394 [-=\(\)!]*) prefix='./';;
388395 *) prefix='';;
389396 esac
390397
402409
403410 for d
404411 do
405 test -z "$d" && continue
412 test X"$d" = X && continue
406413
407414 prefix=$prefix$d
408415 if test -d "$prefix"; then
+1688
-778
ltmain.sh less more
0 # Generated from ltmain.m4sh.
1
2 # libtool (GNU libtool) 2.2.10
0
1 # libtool (GNU libtool) 2.4.2
32 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
43
54 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
6 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
76 # This is free software; see the source for copying conditions. There is NO
87 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
98
4140 # --quiet, --silent don't print informational messages
4241 # --no-quiet, --no-silent
4342 # print informational messages (default)
43 # --no-warn don't display warning messages
4444 # --tag=TAG use configuration variables from tag TAG
4545 # -v, --verbose print more informational messages than default
4646 # --no-verbose don't print the extra informational messages
6969 # compiler: $LTCC
7070 # compiler flags: $LTCFLAGS
7171 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.2.10
72 # $progname: (GNU libtool) 2.4.2
7373 # automake: $automake_version
7474 # autoconf: $autoconf_version
7575 #
7676 # Report bugs to <bug-libtool@gnu.org>.
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
7779
7880 PROGRAM=libtool
7981 PACKAGE=libtool
80 VERSION=2.2.10
82 VERSION=2.4.2
8183 TIMESTAMP=""
82 package_revision=1.3175
84 package_revision=1.3337
8385
8486 # Be Bourne compatible
8587 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
134136
135137 : ${CP="cp -f"}
136138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
137 : ${EGREP="/bin/grep -E"}
138 : ${FGREP="/bin/grep -F"}
139 : ${GREP="/bin/grep"}
140 : ${LN_S="ln -s"}
141139 : ${MAKE="make"}
142140 : ${MKDIR="mkdir"}
143141 : ${MV="mv -f"}
144142 : ${RM="rm -f"}
145 : ${SED="/bin/sed"}
146143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
147144 : ${Xsed="$SED -e 1s/^X//"}
148145
161158
162159 dirname="s,/[^/]*$,,"
163160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
163 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
164182
165183 # func_dirname_and_basename file append nondir_replacement
166184 # perform func_basename and func_dirname in a single function
176194 # those functions but instead duplicate the functionality here.
177195 func_dirname_and_basename ()
178196 {
179 # Extract subdirectory from the argument.
180 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
181 if test "X$func_dirname_result" = "X${1}"; then
182 func_dirname_result="${3}"
183 else
184 func_dirname_result="$func_dirname_result${2}"
185 fi
186 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
187 }
188
189 # Generated shell functions inserted here.
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
201 else
202 func_dirname_result="$func_dirname_result${2}"
203 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
190222
191223 # These SED scripts presuppose an absolute path with a trailing slash.
192224 pathcar='s,^/\([^/]*\).*$,\1,'
350382 ;;
351383 *)
352384 save_IFS="$IFS"
353 IFS=:
385 IFS=${PATH_SEPARATOR-:}
354386 for progdir in $PATH; do
355387 IFS="$save_IFS"
356388 test -x "$progdir/$progname" && break
368400
369401 # Same as above, but do not quote variable references.
370402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
371412
372413 # Re-`\' parameter expansions in output of double_quote_subst that were
373414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
397438 # name if it has been set yet.
398439 func_echo ()
399440 {
400 $ECHO "$progname${mode+: }$mode: $*"
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
401442 }
402443
403444 # func_verbose arg...
423464 # Echo program name prefixed message to standard error.
424465 func_error ()
425466 {
426 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
427468 }
428469
429470 # func_warning arg...
430471 # Echo program name prefixed warning message to standard error.
431472 func_warning ()
432473 {
433 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
434475
435476 # bash bug again:
436477 :
649690 fi
650691 }
651692
693 # func_tr_sh
694 # Turn $1 into a string suitable for a shell variable name.
695 # Result is stored in $func_tr_sh_result. All characters
696 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
697 # if $1 begins with a digit, a '_' is prepended as well.
698 func_tr_sh ()
699 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
652710
653711 # func_version
654712 # Echo version message to standard output and exit.
655713 func_version ()
656714 {
715 $opt_debug
716
657717 $SED -n '/(C)/!b go
658718 :more
659719 /\./!{
675735 # Echo short help message to standard output and exit.
676736 func_usage ()
677737 {
738 $opt_debug
739
678740 $SED -n '/^# Usage:/,/^# *.*--help/ {
679741 s/^# //
680742 s/^# *$//
691753 # unless 'noexit' is passed as argument.
692754 func_help ()
693755 {
756 $opt_debug
757
694758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
695760 s/^# //
696761 s/^# *$//
697762 s*\$progname*'$progname'*
701766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
702767 s*\$LD*'"$LD"'*
703768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
704 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
705 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
706771 p
707 }' < "$progpath"
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
708777 ret=$?
709778 if test -z "$1"; then
710779 exit $ret
716785 # exit_cmd.
717786 func_missing_arg ()
718787 {
788 $opt_debug
789
719790 func_error "missing argument for $1."
720791 exit_cmd=exit
721792 }
722793
794
795 # func_split_short_opt shortopt
796 # Set func_split_short_opt_name and func_split_short_opt_arg shell
797 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
723820 exit_cmd=:
724
725821
726822
727823
731827 magic_exe="%%%MAGIC EXE variable%%%"
732828
733829 # Global variables.
734 # $mode is unset
735830 nonopt=
736 execute_dlfiles=
737831 preserve_args=
738832 lo2o="s/\\.lo\$/.${objext}/"
739833 o2lo="s/\\.${objext}\$/.lo/"
740834 extracted_archives=
741835 extracted_serial=0
742836
743 opt_dry_run=false
744 opt_duplicate_deps=false
745 opt_silent=false
746 opt_debug=:
747
748837 # If this variable is set in any of the actions, the command in it
749838 # will be execed at the end. This prevents here-documents from being
750839 # left over by shells.
751840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
752887
753888 # func_fatal_configuration arg...
754889 # Echo program name prefixed message to standard error, followed by
837972 fi
838973 ;;
839974 esac
840 }
841
842 # Parse options once, thoroughly. This comes as soon as possible in
843 # the script to make things like `libtool --version' happen quickly.
844 {
845
846 # Shorthand for --mode=foo, only valid as the first argument
847 case $1 in
848 clean|clea|cle|cl)
849 shift; set dummy --mode clean ${1+"$@"}; shift
850 ;;
851 compile|compil|compi|comp|com|co|c)
852 shift; set dummy --mode compile ${1+"$@"}; shift
853 ;;
854 execute|execut|execu|exec|exe|ex|e)
855 shift; set dummy --mode execute ${1+"$@"}; shift
856 ;;
857 finish|finis|fini|fin|fi|f)
858 shift; set dummy --mode finish ${1+"$@"}; shift
859 ;;
860 install|instal|insta|inst|ins|in|i)
861 shift; set dummy --mode install ${1+"$@"}; shift
862 ;;
863 link|lin|li|l)
864 shift; set dummy --mode link ${1+"$@"}; shift
865 ;;
866 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
867 shift; set dummy --mode uninstall ${1+"$@"}; shift
868 ;;
869 esac
870
871 # Parse non-mode specific arguments:
872 while test "$#" -gt 0; do
873 opt="$1"
874 shift
875
876 case $opt in
877 --config) func_config ;;
878
879 --debug) preserve_args="$preserve_args $opt"
880 func_echo "enabling shell trace mode"
881 opt_debug='set -x'
882 $opt_debug
883 ;;
884
885 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
886 execute_dlfiles="$execute_dlfiles $1"
887 shift
888 ;;
889
890 --dry-run | -n) opt_dry_run=: ;;
891 --features) func_features ;;
892 --finish) mode="finish" ;;
893
894 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
895 case $1 in
896 # Valid mode arguments:
897 clean) ;;
898 compile) ;;
899 execute) ;;
900 finish) ;;
901 install) ;;
902 link) ;;
903 relink) ;;
904 uninstall) ;;
905
906 # Catch anything else as an error
907 *) func_error "invalid argument for $opt"
908 exit_cmd=exit
909 break
910 ;;
911 esac
912
913 mode="$1"
914 shift
915 ;;
916
917 --preserve-dup-deps)
918 opt_duplicate_deps=: ;;
919
920 --quiet|--silent) preserve_args="$preserve_args $opt"
921 opt_silent=:
922 opt_verbose=false
923 ;;
924
925 --no-quiet|--no-silent)
926 preserve_args="$preserve_args $opt"
927 opt_silent=false
928 ;;
929
930 --verbose| -v) preserve_args="$preserve_args $opt"
931 opt_silent=false
932 opt_verbose=:
933 ;;
934
935 --no-verbose) preserve_args="$preserve_args $opt"
936 opt_verbose=false
937 ;;
938
939 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
940 preserve_args="$preserve_args $opt $1"
941 func_enable_tag "$1" # tagname is set here
942 shift
943 ;;
944
945 # Separate optargs to long options:
946 -dlopen=*|--mode=*|--tag=*)
947 func_opt_split "$opt"
948 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
949 shift
950 ;;
951
952 -\?|-h) func_usage ;;
953 --help) opt_help=: ;;
954 --help-all) opt_help=': help-all' ;;
955 --version) func_version ;;
956
957 -*) func_fatal_help "unrecognized option \`$opt'" ;;
958
959 *) nonopt="$opt"
960 break
961 ;;
962 esac
963 done
964
965
966 case $host in
967 *cygwin* | *mingw* | *pw32* | *cegcc*)
968 # don't eliminate duplications in $postdeps and $predeps
969 opt_duplicate_compiler_generated_deps=:
970 ;;
971 *)
972 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
973 ;;
974 esac
975
976 # Having warned about all mis-specified options, bail out if
977 # anything was wrong.
978 $exit_cmd $EXIT_FAILURE
979975 }
980976
981977 # func_check_version_match
10141010 }
10151011
10161012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
1167 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
1197 fi
1198
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
1219
1220
1221
10171222 ## ----------- ##
10181223 ## Main. ##
10191224 ## ----------- ##
1020
1021 $opt_help || {
1022 # Sanity checks first:
1023 func_check_version_match
1024
1025 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1026 func_fatal_configuration "not configured to build any kind of library"
1027 fi
1028
1029 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
1030
1031
1032 # Darwin sucks
1033 eval std_shrext=\"$shrext_cmds\"
1034
1035
1036 # Only execute mode is allowed to have -dlopen flags.
1037 if test -n "$execute_dlfiles" && test "$mode" != execute; then
1038 func_error "unrecognized option \`-dlopen'"
1039 $ECHO "$help" 1>&2
1040 exit $EXIT_FAILURE
1041 fi
1042
1043 # Change the help message to a mode-specific one.
1044 generic_help="$help"
1045 help="Try \`$progname --help --mode=$mode' for more information."
1046 }
1047
10481225
10491226 # func_lalib_p file
10501227 # True iff FILE is a libtool `.la' library or `.lo' object file.
11091286 # temporary ltwrapper_script.
11101287 func_ltwrapper_scriptname ()
11111288 {
1112 func_ltwrapper_scriptname_result=""
1113 if func_ltwrapper_executable_p "$1"; then
1114 func_dirname_and_basename "$1" "" "."
1115 func_stripname '' '.exe' "$func_basename_result"
1116 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
1117 fi
1289 func_dirname_and_basename "$1" "" "."
1290 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
11181292 }
11191293
11201294 # func_ltwrapper_p file
11601334 }
11611335
11621336
1337 # func_resolve_sysroot PATH
1338 # Replace a leading = in PATH with a sysroot. Store the result into
1339 # func_resolve_sysroot_result
1340 func_resolve_sysroot ()
1341 {
1342 func_resolve_sysroot_result=$1
1343 case $func_resolve_sysroot_result in
1344 =*)
1345 func_stripname '=' '' "$func_resolve_sysroot_result"
1346 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
1347 ;;
1348 esac
1349 }
1350
1351 # func_replace_sysroot PATH
1352 # If PATH begins with the sysroot, replace it with = and
1353 # store the result into func_replace_sysroot_result.
1354 func_replace_sysroot ()
1355 {
1356 case "$lt_sysroot:$1" in
1357 ?*:"$lt_sysroot"*)
1358 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
1360 ;;
1361 *)
1362 # Including no sysroot.
1363 func_replace_sysroot_result=$1
1364 ;;
1365 esac
1366 }
1367
11631368 # func_infer_tag arg
11641369 # Infer tagged configuration to use if any are available and
11651370 # if one wasn't chosen via the "--tag" command line option.
11721377 if test -n "$available_tags" && test -z "$tagname"; then
11731378 CC_quoted=
11741379 for arg in $CC; do
1175 func_quote_for_eval "$arg"
1176 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1380 func_append_quoted CC_quoted "$arg"
11771381 done
11781382 CC_expanded=`func_echo_all $CC`
11791383 CC_quoted_expanded=`func_echo_all $CC_quoted`
11921396 CC_quoted=
11931397 for arg in $CC; do
11941398 # Double-quote args containing other shell metacharacters.
1195 func_quote_for_eval "$arg"
1196 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1399 func_append_quoted CC_quoted "$arg"
11971400 done
11981401 CC_expanded=`func_echo_all $CC`
11991402 CC_quoted_expanded=`func_echo_all $CC_quoted`
12621465 }
12631466 }
12641467
1468
1469 ##################################################
1470 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
1471 ##################################################
1472
1473 # func_convert_core_file_wine_to_w32 ARG
1474 # Helper function used by file name conversion functions when $build is *nix,
1475 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
1476 # correctly configured wine environment available, with the winepath program
1477 # in $build's $PATH.
1478 #
1479 # ARG is the $build file name to be converted to w32 format.
1480 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
1481 # be empty on error (or when ARG is empty)
1482 func_convert_core_file_wine_to_w32 ()
1483 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
1486 if test -n "$1"; then
1487 # Unfortunately, winepath does not exit with a non-zero error code, so we
1488 # are forced to check the contents of stdout. On the other hand, if the
1489 # command is not found, the shell will set an exit code of 127 and print
1490 # *an error message* to stdout. So we must check for both error code of
1491 # zero AND non-empty stdout, which explains the odd construction:
1492 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
1494 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
1496 else
1497 func_convert_core_file_wine_to_w32_result=
1498 fi
1499 fi
1500 }
1501 # end: func_convert_core_file_wine_to_w32
1502
1503
1504 # func_convert_core_path_wine_to_w32 ARG
1505 # Helper function used by path conversion functions when $build is *nix, and
1506 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
1507 # configured wine environment available, with the winepath program in $build's
1508 # $PATH. Assumes ARG has no leading or trailing path separator characters.
1509 #
1510 # ARG is path to be converted from $build format to win32.
1511 # Result is available in $func_convert_core_path_wine_to_w32_result.
1512 # Unconvertible file (directory) names in ARG are skipped; if no directory names
1513 # are convertible, then the result may be empty.
1514 func_convert_core_path_wine_to_w32 ()
1515 {
1516 $opt_debug
1517 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
1519 if test -n "$1"; then
1520 oldIFS=$IFS
1521 IFS=:
1522 for func_convert_core_path_wine_to_w32_f in $1; do
1523 IFS=$oldIFS
1524 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
1526 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
1528 else
1529 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
1530 fi
1531 fi
1532 done
1533 IFS=$oldIFS
1534 fi
1535 }
1536 # end: func_convert_core_path_wine_to_w32
1537
1538
1539 # func_cygpath ARGS...
1540 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
1541 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
1542 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
1543 # (2), returns the Cygwin file name or path in func_cygpath_result (input
1544 # file name or path is assumed to be in w32 format, as previously converted
1545 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
1546 # or path in func_cygpath_result (input file name or path is assumed to be in
1547 # Cygwin format). Returns an empty string on error.
1548 #
1549 # ARGS are passed to cygpath, with the last one being the file name or path to
1550 # be converted.
1551 #
1552 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
1553 # environment variable; do not put it in $PATH.
1554 func_cygpath ()
1555 {
1556 $opt_debug
1557 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
1558 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
1559 if test "$?" -ne 0; then
1560 # on failure, ensure result is empty
1561 func_cygpath_result=
1562 fi
1563 else
1564 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
1566 fi
1567 }
1568 #end: func_cygpath
1569
1570
1571 # func_convert_core_msys_to_w32 ARG
1572 # Convert file name or path ARG from MSYS format to w32 format. Return
1573 # result in func_convert_core_msys_to_w32_result.
1574 func_convert_core_msys_to_w32 ()
1575 {
1576 $opt_debug
1577 # awkward: cmd appends spaces to result
1578 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
1580 }
1581 #end: func_convert_core_msys_to_w32
1582
1583
1584 # func_convert_file_check ARG1 ARG2
1585 # Verify that ARG1 (a file name in $build format) was converted to $host
1586 # format in ARG2. Otherwise, emit an error message, but continue (resetting
1587 # func_to_host_file_result to ARG1).
1588 func_convert_file_check ()
1589 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
1592 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
1594 func_error "Continuing, but uninstalled executables may not work."
1595 # Fallback:
1596 func_to_host_file_result="$1"
1597 fi
1598 }
1599 # end func_convert_file_check
1600
1601
1602 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
1603 # Verify that FROM_PATH (a path in $build format) was converted to $host
1604 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
1605 # func_to_host_file_result to a simplistic fallback value (see below).
1606 func_convert_path_check ()
1607 {
1608 $opt_debug
1609 if test -z "$4" && test -n "$3"; then
1610 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
1612 func_error "Continuing, but uninstalled executables may not work."
1613 # Fallback. This is a deliberately simplistic "conversion" and
1614 # should not be "improved". See libtool.info.
1615 if test "x$1" != "x$2"; then
1616 lt_replace_pathsep_chars="s|$1|$2|g"
1617 func_to_host_path_result=`echo "$3" |
1618 $SED -e "$lt_replace_pathsep_chars"`
1619 else
1620 func_to_host_path_result="$3"
1621 fi
1622 fi
1623 }
1624 # end func_convert_path_check
1625
1626
1627 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
1628 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
1629 # and appending REPL if ORIG matches BACKPAT.
1630 func_convert_path_front_back_pathsep ()
1631 {
1632 $opt_debug
1633 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
1635 ;;
1636 esac
1637 case $4 in
1638 $2 ) func_append func_to_host_path_result "$3"
1639 ;;
1640 esac
1641 }
1642 # end func_convert_path_front_back_pathsep
1643
1644
1645 ##################################################
1646 # $build to $host FILE NAME CONVERSION FUNCTIONS #
1647 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
1649 #
1650 # In each case, ARG is the path to be converted from $build to $host format.
1651 # Result will be available in $func_to_host_file_result.
1652
1653
1654 # func_to_host_file ARG
1655 # Converts the file name ARG from $build format to $host format. Return result
1656 # in func_to_host_file_result.
1657 func_to_host_file ()
1658 {
1659 $opt_debug
1660 $to_host_file_cmd "$1"
1661 }
1662 # end func_to_host_file
1663
1664
1665 # func_to_tool_file ARG LAZY
1666 # converts the file name ARG from $build format to toolchain format. Return
1667 # result in func_to_tool_file_result. If the conversion in use is listed
1668 # in (the comma separated) LAZY, no conversion takes place.
1669 func_to_tool_file ()
1670 {
1671 $opt_debug
1672 case ,$2, in
1673 *,"$to_tool_file_cmd",*)
1674 func_to_tool_file_result=$1
1675 ;;
1676 *)
1677 $to_tool_file_cmd "$1"
1678 func_to_tool_file_result=$func_to_host_file_result
1679 ;;
1680 esac
1681 }
1682 # end func_to_tool_file
1683
1684
1685 # func_convert_file_noop ARG
1686 # Copy ARG to func_to_host_file_result.
1687 func_convert_file_noop ()
1688 {
1689 func_to_host_file_result="$1"
1690 }
1691 # end func_convert_file_noop
1692
1693
1694 # func_convert_file_msys_to_w32 ARG
1695 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
1696 # conversion to w32 is not available inside the cwrapper. Returns result in
1697 # func_to_host_file_result.
1698 func_convert_file_msys_to_w32 ()
1699 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
1702 if test -n "$1"; then
1703 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
1705 fi
1706 func_convert_file_check "$1" "$func_to_host_file_result"
1707 }
1708 # end func_convert_file_msys_to_w32
1709
1710
1711 # func_convert_file_cygwin_to_w32 ARG
1712 # Convert file name ARG from Cygwin to w32 format. Returns result in
1713 # func_to_host_file_result.
1714 func_convert_file_cygwin_to_w32 ()
1715 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
1718 if test -n "$1"; then
1719 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
1720 # LT_CYGPATH in this case.
1721 func_to_host_file_result=`cygpath -m "$1"`
1722 fi
1723 func_convert_file_check "$1" "$func_to_host_file_result"
1724 }
1725 # end func_convert_file_cygwin_to_w32
1726
1727
1728 # func_convert_file_nix_to_w32 ARG
1729 # Convert file name ARG from *nix to w32 format. Requires a wine environment
1730 # and a working winepath. Returns result in func_to_host_file_result.
1731 func_convert_file_nix_to_w32 ()
1732 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
1735 if test -n "$1"; then
1736 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
1738 fi
1739 func_convert_file_check "$1" "$func_to_host_file_result"
1740 }
1741 # end func_convert_file_nix_to_w32
1742
1743
1744 # func_convert_file_msys_to_cygwin ARG
1745 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1746 # Returns result in func_to_host_file_result.
1747 func_convert_file_msys_to_cygwin ()
1748 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
1751 if test -n "$1"; then
1752 func_convert_core_msys_to_w32 "$1"
1753 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
1755 fi
1756 func_convert_file_check "$1" "$func_to_host_file_result"
1757 }
1758 # end func_convert_file_msys_to_cygwin
1759
1760
1761 # func_convert_file_nix_to_cygwin ARG
1762 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
1763 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
1764 # in func_to_host_file_result.
1765 func_convert_file_nix_to_cygwin ()
1766 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
1769 if test -n "$1"; then
1770 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
1771 func_convert_core_file_wine_to_w32 "$1"
1772 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
1774 fi
1775 func_convert_file_check "$1" "$func_to_host_file_result"
1776 }
1777 # end func_convert_file_nix_to_cygwin
1778
1779
1780 #############################################
1781 # $build to $host PATH CONVERSION FUNCTIONS #
1782 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
1784 #
1785 # In each case, ARG is the path to be converted from $build to $host format.
1786 # The result will be available in $func_to_host_path_result.
1787 #
1788 # Path separators are also converted from $build format to $host format. If
1789 # ARG begins or ends with a path separator character, it is preserved (but
1790 # converted to $host format) on output.
1791 #
1792 # All path conversion functions are named using the following convention:
1793 # file name conversion function : func_convert_file_X_to_Y ()
1794 # path conversion function : func_convert_path_X_to_Y ()
1795 # where, for any given $build/$host combination the 'X_to_Y' value is the
1796 # same. If conversion functions are added for new $build/$host combinations,
1797 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
1798 # will break.
1799
1800
1801 # func_init_to_host_path_cmd
1802 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
1803 # appropriate value, based on the value of $to_host_file_cmd.
1804 to_host_path_cmd=
1805 func_init_to_host_path_cmd ()
1806 {
1807 $opt_debug
1808 if test -z "$to_host_path_cmd"; then
1809 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
1811 fi
1812 }
1813
1814
1815 # func_to_host_path ARG
1816 # Converts the path ARG from $build format to $host format. Return result
1817 # in func_to_host_path_result.
1818 func_to_host_path ()
1819 {
1820 $opt_debug
1821 func_init_to_host_path_cmd
1822 $to_host_path_cmd "$1"
1823 }
1824 # end func_to_host_path
1825
1826
1827 # func_convert_path_noop ARG
1828 # Copy ARG to func_to_host_path_result.
1829 func_convert_path_noop ()
1830 {
1831 func_to_host_path_result="$1"
1832 }
1833 # end func_convert_path_noop
1834
1835
1836 # func_convert_path_msys_to_w32 ARG
1837 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
1838 # conversion to w32 is not available inside the cwrapper. Returns result in
1839 # func_to_host_path_result.
1840 func_convert_path_msys_to_w32 ()
1841 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
1844 if test -n "$1"; then
1845 # Remove leading and trailing path separator characters from ARG. MSYS
1846 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
1847 # and winepath ignores them completely.
1848 func_stripname : : "$1"
1849 func_to_host_path_tmp1=$func_stripname_result
1850 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
1852 func_convert_path_check : ";" \
1853 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1854 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1855 fi
1856 }
1857 # end func_convert_path_msys_to_w32
1858
1859
1860 # func_convert_path_cygwin_to_w32 ARG
1861 # Convert path ARG from Cygwin to w32 format. Returns result in
1862 # func_to_host_file_result.
1863 func_convert_path_cygwin_to_w32 ()
1864 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
1867 if test -n "$1"; then
1868 # See func_convert_path_msys_to_w32:
1869 func_stripname : : "$1"
1870 func_to_host_path_tmp1=$func_stripname_result
1871 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
1872 func_convert_path_check : ";" \
1873 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1874 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1875 fi
1876 }
1877 # end func_convert_path_cygwin_to_w32
1878
1879
1880 # func_convert_path_nix_to_w32 ARG
1881 # Convert path ARG from *nix to w32 format. Requires a wine environment and
1882 # a working winepath. Returns result in func_to_host_file_result.
1883 func_convert_path_nix_to_w32 ()
1884 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
1887 if test -n "$1"; then
1888 # See func_convert_path_msys_to_w32:
1889 func_stripname : : "$1"
1890 func_to_host_path_tmp1=$func_stripname_result
1891 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
1893 func_convert_path_check : ";" \
1894 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1895 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
1896 fi
1897 }
1898 # end func_convert_path_nix_to_w32
1899
1900
1901 # func_convert_path_msys_to_cygwin ARG
1902 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
1903 # Returns result in func_to_host_file_result.
1904 func_convert_path_msys_to_cygwin ()
1905 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
1908 if test -n "$1"; then
1909 # See func_convert_path_msys_to_w32:
1910 func_stripname : : "$1"
1911 func_to_host_path_tmp1=$func_stripname_result
1912 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1913 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
1915 func_convert_path_check : : \
1916 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1917 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1918 fi
1919 }
1920 # end func_convert_path_msys_to_cygwin
1921
1922
1923 # func_convert_path_nix_to_cygwin ARG
1924 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
1925 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
1926 # func_to_host_file_result.
1927 func_convert_path_nix_to_cygwin ()
1928 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
1931 if test -n "$1"; then
1932 # Remove leading and trailing path separator characters from
1933 # ARG. msys behavior is inconsistent here, cygpath turns them
1934 # into '.;' and ';.', and winepath ignores them completely.
1935 func_stripname : : "$1"
1936 func_to_host_path_tmp1=$func_stripname_result
1937 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1938 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
1940 func_convert_path_check : : \
1941 "$func_to_host_path_tmp1" "$func_to_host_path_result"
1942 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
1943 fi
1944 }
1945 # end func_convert_path_nix_to_cygwin
1946
1947
12651948 # func_mode_compile arg...
12661949 func_mode_compile ()
12671950 {
13021985 ;;
13031986
13041987 -pie | -fpie | -fPIE)
1305 pie_flag="$pie_flag $arg"
1988 func_append pie_flag " $arg"
13061989 continue
13071990 ;;
13081991
13091992 -shared | -static | -prefer-pic | -prefer-non-pic)
1310 later="$later $arg"
1993 func_append later " $arg"
13111994 continue
13121995 ;;
13131996
13282011 save_ifs="$IFS"; IFS=','
13292012 for arg in $args; do
13302013 IFS="$save_ifs"
1331 func_quote_for_eval "$arg"
1332 lastarg="$lastarg $func_quote_for_eval_result"
2014 func_append_quoted lastarg "$arg"
13332015 done
13342016 IFS="$save_ifs"
13352017 func_stripname ' ' '' "$lastarg"
13362018 lastarg=$func_stripname_result
13372019
13382020 # Add the arguments to base_compile.
1339 base_compile="$base_compile $lastarg"
2021 func_append base_compile " $lastarg"
13402022 continue
13412023 ;;
13422024
13522034 esac # case $arg_mode
13532035
13542036 # Aesthetically quote the previous argument.
1355 func_quote_for_eval "$lastarg"
1356 base_compile="$base_compile $func_quote_for_eval_result"
2037 func_append_quoted base_compile "$lastarg"
13572038 done # for arg
13582039
13592040 case $arg_mode in
13782059 *.[cCFSifmso] | \
13792060 *.ada | *.adb | *.ads | *.asm | \
13802061 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1381 *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
2062 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
13822063 func_xform "$libobj"
13832064 libobj=$func_xform_result
13842065 ;;
14842165 $opt_dry_run || $RM $removelist
14852166 exit $EXIT_FAILURE
14862167 fi
1487 removelist="$removelist $output_obj"
2168 func_append removelist " $output_obj"
14882169 $ECHO "$srcfile" > "$lockfile"
14892170 fi
14902171
14912172 $opt_dry_run || $RM $removelist
1492 removelist="$removelist $lockfile"
2173 func_append removelist " $lockfile"
14932174 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
14942175
1495 if test -n "$fix_srcfile_path"; then
1496 eval srcfile=\"$fix_srcfile_path\"
1497 fi
2176 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
2177 srcfile=$func_to_tool_file_result
14982178 func_quote_for_eval "$srcfile"
14992179 qsrcfile=$func_quote_for_eval_result
15002180
15142194
15152195 if test -z "$output_obj"; then
15162196 # Place PIC objects in $objdir
1517 command="$command -o $lobj"
2197 func_append command " -o $lobj"
15182198 fi
15192199
15202200 func_show_eval_locale "$command" \
15612241 command="$base_compile $qsrcfile $pic_flag"
15622242 fi
15632243 if test "$compiler_c_o" = yes; then
1564 command="$command -o $obj"
2244 func_append command " -o $obj"
15652245 fi
15662246
15672247 # Suppress compiler output if we already did a PIC compilation.
1568 command="$command$suppress_output"
2248 func_append command "$suppress_output"
15692249 func_show_eval_locale "$command" \
15702250 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
15712251
16102290 }
16112291
16122292 $opt_help || {
1613 test "$mode" = compile && func_mode_compile ${1+"$@"}
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
16142294 }
16152295
16162296 func_mode_help ()
16172297 {
16182298 # We need to display help for each of the modes.
1619 case $mode in
2299 case $opt_mode in
16202300 "")
16212301 # Generic help is extracted from the usage comments
16222302 # at the start of this file.
17922472 ;;
17932473
17942474 *)
1795 func_fatal_help "invalid operation mode \`$mode'"
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
17962476 ;;
17972477 esac
17982478
18072487 else
18082488 {
18092489 func_help noexit
1810 for mode in compile link execute install finish uninstall clean; do
2490 for opt_mode in compile link execute install finish uninstall clean; do
18112491 func_mode_help
18122492 done
18132493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
18142494 {
18152495 func_help noexit
1816 for mode in compile link execute install finish uninstall clean; do
2496 for opt_mode in compile link execute install finish uninstall clean; do
18172497 echo
18182498 func_mode_help
18192499 done
18422522 func_fatal_help "you must specify a COMMAND"
18432523
18442524 # Handle -dlopen flags immediately.
1845 for file in $execute_dlfiles; do
2525 for file in $opt_dlopen; do
18462526 test -f "$file" \
18472527 || func_fatal_help "\`$file' is not a file"
18482528
18492529 dir=
18502530 case $file in
18512531 *.la)
2532 func_resolve_sysroot "$file"
2533 file=$func_resolve_sysroot_result
2534
18522535 # Check to see that this really is a libtool archive.
18532536 func_lalib_unsafe_p "$file" \
18542537 || func_fatal_help "\`$lib' is not a valid libtool archive"
18702553 dir="$func_dirname_result"
18712554
18722555 if test -f "$dir/$objdir/$dlname"; then
1873 dir="$dir/$objdir"
2556 func_append dir "/$objdir"
18742557 else
18752558 if test ! -f "$dir/$dlname"; then
18762559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
19272610 ;;
19282611 esac
19292612 # Quote arguments (to preserve shell metacharacters).
1930 func_quote_for_eval "$file"
1931 args="$args $func_quote_for_eval_result"
2613 func_append_quoted args "$file"
19322614 done
19332615
19342616 if test "X$opt_dry_run" = Xfalse; then
19602642 fi
19612643 }
19622644
1963 test "$mode" = execute && func_mode_execute ${1+"$@"}
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
19642646
19652647
19662648 # func_mode_finish arg...
19672649 func_mode_finish ()
19682650 {
19692651 $opt_debug
1970 libdirs="$nonopt"
2652 libs=
2653 libdirs=
19712654 admincmds=
19722655
2656 for opt in "$nonopt" ${1+"$@"}
2657 do
2658 if test -d "$opt"; then
2659 func_append libdirs " $opt"
2660
2661 elif test -f "$opt"; then
2662 if func_lalib_unsafe_p "$opt"; then
2663 func_append libs " $opt"
2664 else
2665 func_warning "\`$opt' is not a valid libtool archive"
2666 fi
2667
2668 else
2669 func_fatal_error "invalid argument \`$opt'"
2670 fi
2671 done
2672
2673 if test -n "$libs"; then
2674 if test -n "$lt_sysroot"; then
2675 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
2676 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
2677 else
2678 sysroot_cmd=
2679 fi
2680
2681 # Remove sysroot references
2682 if $opt_dry_run; then
2683 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
2685 done
2686 else
2687 tmpdir=`func_mktempdir`
2688 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
2690 > $tmpdir/tmp-la
2691 mv -f $tmpdir/tmp-la $lib
2692 done
2693 ${RM}r "$tmpdir"
2694 fi
2695 fi
2696
19732697 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1974 for dir
1975 do
1976 libdirs="$libdirs $dir"
1977 done
1978
19792698 for libdir in $libdirs; do
19802699 if test -n "$finish_cmds"; then
19812700 # Do each command in the finish commands.
19852704 if test -n "$finish_eval"; then
19862705 # Do the single finish_eval.
19872706 eval cmds=\"$finish_eval\"
1988 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
2707 $opt_dry_run || eval "$cmds" || func_append admincmds "
19892708 $cmds"
19902709 fi
19912710 done
19942713 # Exit here if they wanted silent mode.
19952714 $opt_silent && exit $EXIT_SUCCESS
19962715
1997 echo "----------------------------------------------------------------------"
1998 echo "Libraries have been installed in:"
1999 for libdir in $libdirs; do
2000 $ECHO " $libdir"
2001 done
2002 echo
2003 echo "If you ever happen to want to link against installed libraries"
2004 echo "in a given directory, LIBDIR, you must either use libtool, and"
2005 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2006 echo "flag during linking and do at least one of the following:"
2007 if test -n "$shlibpath_var"; then
2008 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2009 echo " during execution"
2716 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
2717 echo "----------------------------------------------------------------------"
2718 echo "Libraries have been installed in:"
2719 for libdir in $libdirs; do
2720 $ECHO " $libdir"
2721 done
2722 echo
2723 echo "If you ever happen to want to link against installed libraries"
2724 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
2726 echo "flag during linking and do at least one of the following:"
2727 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
2729 echo " during execution"
2730 fi
2731 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2733 echo " during linking"
2734 fi
2735 if test -n "$hardcode_libdir_flag_spec"; then
2736 libdir=LIBDIR
2737 eval flag=\"$hardcode_libdir_flag_spec\"
2738
2739 $ECHO " - use the \`$flag' linker flag"
2740 fi
2741 if test -n "$admincmds"; then
2742 $ECHO " - have your system administrator run these commands:$admincmds"
2743 fi
2744 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2746 fi
2747 echo
2748
2749 echo "See any operating system documentation about shared libraries for"
2750 case $host in
2751 solaris2.[6789]|solaris2.1[0-9])
2752 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2753 echo "pages."
2754 ;;
2755 *)
2756 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2757 ;;
2758 esac
2759 echo "----------------------------------------------------------------------"
20102760 fi
2011 if test -n "$runpath_var"; then
2012 echo " - add LIBDIR to the \`$runpath_var' environment variable"
2013 echo " during linking"
2014 fi
2015 if test -n "$hardcode_libdir_flag_spec"; then
2016 libdir=LIBDIR
2017 eval flag=\"$hardcode_libdir_flag_spec\"
2018
2019 $ECHO " - use the \`$flag' linker flag"
2020 fi
2021 if test -n "$admincmds"; then
2022 $ECHO " - have your system administrator run these commands:$admincmds"
2023 fi
2024 if test -f /etc/ld.so.conf; then
2025 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
2026 fi
2027 echo
2028
2029 echo "See any operating system documentation about shared libraries for"
2030 case $host in
2031 solaris2.[6789]|solaris2.1[0-9])
2032 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
2033 echo "pages."
2034 ;;
2035 *)
2036 echo "more information, such as the ld(1) and ld.so(8) manual pages."
2037 ;;
2038 esac
2039 echo "----------------------------------------------------------------------"
20402761 exit $EXIT_SUCCESS
20412762 }
20422763
2043 test "$mode" = finish && func_mode_finish ${1+"$@"}
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
20442765
20452766
20462767 # func_mode_install arg...
20652786 # The real first argument should be the name of the installation program.
20662787 # Aesthetically quote it.
20672788 func_quote_for_eval "$arg"
2068 install_prog="$install_prog$func_quote_for_eval_result"
2789 func_append install_prog "$func_quote_for_eval_result"
20692790 install_shared_prog=$install_prog
20702791 case " $install_prog " in
20712792 *[\\\ /]cp\ *) install_cp=: ;;
20852806 do
20862807 arg2=
20872808 if test -n "$dest"; then
2088 files="$files $dest"
2809 func_append files " $dest"
20892810 dest=$arg
20902811 continue
20912812 fi
21232844
21242845 # Aesthetically quote the argument.
21252846 func_quote_for_eval "$arg"
2126 install_prog="$install_prog $func_quote_for_eval_result"
2847 func_append install_prog " $func_quote_for_eval_result"
21272848 if test -n "$arg2"; then
21282849 func_quote_for_eval "$arg2"
21292850 fi
2130 install_shared_prog="$install_shared_prog $func_quote_for_eval_result"
2851 func_append install_shared_prog " $func_quote_for_eval_result"
21312852 done
21322853
21332854 test -z "$install_prog" && \
21392860 if test -n "$install_override_mode" && $no_mode; then
21402861 if $install_cp; then :; else
21412862 func_quote_for_eval "$install_override_mode"
2142 install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result"
2863 func_append install_shared_prog " -m $func_quote_for_eval_result"
21432864 fi
21442865 fi
21452866
21972918 case $file in
21982919 *.$libext)
21992920 # Do the static libraries later.
2200 staticlibs="$staticlibs $file"
2921 func_append staticlibs " $file"
22012922 ;;
22022923
22032924 *.la)
2925 func_resolve_sysroot "$file"
2926 file=$func_resolve_sysroot_result
2927
22042928 # Check to see that this really is a libtool archive.
22052929 func_lalib_unsafe_p "$file" \
22062930 || func_fatal_help "\`$file' is not a valid libtool archive"
22142938 if test "X$destdir" = "X$libdir"; then
22152939 case "$current_libdirs " in
22162940 *" $libdir "*) ;;
2217 *) current_libdirs="$current_libdirs $libdir" ;;
2941 *) func_append current_libdirs " $libdir" ;;
22182942 esac
22192943 else
22202944 # Note the libdir as a future libdir.
22212945 case "$future_libdirs " in
22222946 *" $libdir "*) ;;
2223 *) future_libdirs="$future_libdirs $libdir" ;;
2947 *) func_append future_libdirs " $libdir" ;;
22242948 esac
22252949 fi
22262950
22272951 func_dirname "$file" "/" ""
22282952 dir="$func_dirname_result"
2229 dir="$dir$objdir"
2953 func_append dir "$objdir"
22302954
22312955 if test -n "$relink_command"; then
22322956 # Determine the prefix the user has applied to our future dir.
23033027 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
23043028
23053029 # Maybe install the static library, too.
2306 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
3030 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
23073031 ;;
23083032
23093033 *.lo)
24773201
24783202 # Set up the ranlib parameters.
24793203 oldlib="$destdir/$name"
3204 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
3205 tool_oldlib=$func_to_tool_file_result
24803206
24813207 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
24823208
24833209 if test -n "$stripme" && test -n "$old_striplib"; then
2484 func_show_eval "$old_striplib $oldlib" 'exit $?'
3210 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
24853211 fi
24863212
24873213 # Do each command in the postinstall commands.
25003226 fi
25013227 }
25023228
2503 test "$mode" = install && func_mode_install ${1+"$@"}
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
25043230
25053231
25063232 # func_generate_dlsyms outputname originator pic_p
25473273 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
25483274 #endif
25493275
3276 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3279 relocations are performed -- see ld's documentation on pseudo-relocs. */
3280 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
3282 /* This system does not cope well with relocations in const data. */
3283 # define LT_DLSYM_CONST
3284 #else
3285 # define LT_DLSYM_CONST const
3286 #endif
3287
25503288 /* External symbol declarations for the compiler. */\
25513289 "
25523290
25583296 # Add our own program objects to the symbol list.
25593297 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
25603298 for progfile in $progfiles; do
2561 func_verbose "extracting global C symbols from \`$progfile'"
2562 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
3299 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
3301 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
25633302 done
25643303
25653304 if test -n "$exclude_expsyms"; then
26083347 func_verbose "extracting global C symbols from \`$dlprefile'"
26093348 func_basename "$dlprefile"
26103349 name="$func_basename_result"
2611 $opt_dry_run || {
2612 eval '$ECHO ": $name " >> "$nlist"'
2613 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2614 }
3350 case $host in
3351 *cygwin* | *mingw* | *cegcc* )
3352 # if an import library, we need to obtain dlname
3353 if func_win32_import_lib_p "$dlprefile"; then
3354 func_tr_sh "$dlprefile"
3355 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
3357 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
3358 # Use subshell, to avoid clobbering current variable values
3359 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
3361 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
3363 else
3364 # no lafile. user explicitly requested -dlpreopen <import library>.
3365 $sharedlib_from_linklib_cmd "$dlprefile"
3366 dlprefile_dlbasename=$sharedlib_from_linklib_result
3367 fi
3368 fi
3369 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
3371 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
3372 else
3373 func_warning "Could not compute DLL name from $name"
3374 eval '$ECHO ": $name " >> "$nlist"'
3375 fi
3376 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3377 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
3378 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
3379 }
3380 else # not an import lib
3381 $opt_dry_run || {
3382 eval '$ECHO ": $name " >> "$nlist"'
3383 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3384 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3385 }
3386 fi
3387 ;;
3388 *)
3389 $opt_dry_run || {
3390 eval '$ECHO ": $name " >> "$nlist"'
3391 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
3392 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
3393 }
3394 ;;
3395 esac
26153396 done
26163397
26173398 $opt_dry_run || {
26493430 const char *name;
26503431 void *address;
26513432 } lt_dlsymlist;
2652 "
2653 case $host in
2654 *cygwin* | *mingw* | *cegcc* )
2655 echo >> "$output_objdir/$my_dlsyms" "\
2656 /* DATA imports from DLLs on WIN32 con't be const, because
2657 runtime relocations are performed -- see ld's documentation
2658 on pseudo-relocs. */"
2659 lt_dlsym_const= ;;
2660 *osf5*)
2661 echo >> "$output_objdir/$my_dlsyms" "\
2662 /* This system does not cope well with relocations in const data */"
2663 lt_dlsym_const= ;;
2664 *)
2665 lt_dlsym_const=const ;;
2666 esac
2667
2668 echo >> "$output_objdir/$my_dlsyms" "\
2669 extern $lt_dlsym_const lt_dlsymlist
3433 extern LT_DLSYM_CONST lt_dlsymlist
26703434 lt_${my_prefix}_LTX_preloaded_symbols[];
2671 $lt_dlsym_const lt_dlsymlist
3435 LT_DLSYM_CONST lt_dlsymlist
26723436 lt_${my_prefix}_LTX_preloaded_symbols[] =
26733437 {\
26743438 { \"$my_originator\", (void *) 0 },"
27083472 # linked before any other PIC object. But we must not use
27093473 # pic_flag when linking with -static. The problem exists in
27103474 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2711 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
3475 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
27123476 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
27133477 *-*-hpux*)
27143478 pic_flag_for_symtable=" $pic_flag" ;;
27243488 for arg in $LTCFLAGS; do
27253489 case $arg in
27263490 -pie | -fpie | -fPIE) ;;
2727 *) symtab_cflags="$symtab_cflags $arg" ;;
3491 *) func_append symtab_cflags " $arg" ;;
27283492 esac
27293493 done
27303494
27873551 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
27883552 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
27893553 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
2790 win32_nmres=`eval $NM -f posix -A $1 |
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
27913556 $SED -n -e '
27923557 1,100{
27933558 / I /{
28163581 $ECHO "$win32_libid_type"
28173582 }
28183583
3584 # func_cygming_dll_for_implib ARG
3585 #
3586 # Platform-specific function to extract the
3587 # name of the DLL associated with the specified
3588 # import library ARG.
3589 # Invoked by eval'ing the libtool variable
3590 # $sharedlib_from_linklib_cmd
3591 # Result is available in the variable
3592 # $sharedlib_from_linklib_result
3593 func_cygming_dll_for_implib ()
3594 {
3595 $opt_debug
3596 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
3597 }
3598
3599 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
3600 #
3601 # The is the core of a fallback implementation of a
3602 # platform-specific function to extract the name of the
3603 # DLL associated with the specified import library LIBNAME.
3604 #
3605 # SECTION_NAME is either .idata$6 or .idata$7, depending
3606 # on the platform and compiler that created the implib.
3607 #
3608 # Echos the name of the DLL associated with the
3609 # specified import library.
3610 func_cygming_dll_for_implib_fallback_core ()
3611 {
3612 $opt_debug
3613 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
3614 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
3615 $SED '/^Contents of section '"$match_literal"':/{
3616 # Place marker at beginning of archive member dllname section
3617 s/.*/====MARK====/
3618 p
3619 d
3620 }
3621 # These lines can sometimes be longer than 43 characters, but
3622 # are always uninteresting
3623 /:[ ]*file format pe[i]\{,1\}-/d
3624 /^In archive [^:]*:/d
3625 # Ensure marker is printed
3626 /^====MARK====/p
3627 # Remove all lines with less than 43 characters
3628 /^.\{43\}/!d
3629 # From remaining lines, remove first 43 characters
3630 s/^.\{43\}//' |
3631 $SED -n '
3632 # Join marker and all lines until next marker into a single line
3633 /^====MARK====/ b para
3634 H
3635 $ b para
3636 b
3637 :para
3638 x
3639 s/\n//g
3640 # Remove the marker
3641 s/^====MARK====//
3642 # Remove trailing dots and whitespace
3643 s/[\. \t]*$//
3644 # Print
3645 /./p' |
3646 # we now have a list, one entry per line, of the stringified
3647 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
3650 # a '.' (that is, objdump's representation of an unprintable
3651 # character.) This should work for all archives with less than
3652 # 0x302f exports -- but will fail for DLLs whose name actually
3653 # begins with a literal '.' or a single character followed by
3654 # a '.'.
3655 #
3656 # Of those that remain, print the first one.
3657 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 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)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
3682 }
3683
3684 # func_cygming_dll_for_implib_fallback ARG
3685 # Platform-specific function to extract the
3686 # name of the DLL associated with the specified
3687 # import library ARG.
3688 #
3689 # This fallback implementation is for use when $DLLTOOL
3690 # does not support the --identify-strict option.
3691 # Invoked by eval'ing the libtool variable
3692 # $sharedlib_from_linklib_cmd
3693 # Result is available in the variable
3694 # $sharedlib_from_linklib_result
3695 func_cygming_dll_for_implib_fallback ()
3696 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
3699 # binutils import library
3700 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
3702 # ms-generated import library
3703 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
3704 else
3705 # unknown
3706 sharedlib_from_linklib_result=""
3707 fi
3708 }
28193709
28203710
28213711 # func_extract_an_archive dir oldlib
30943984 # launches target application with the remaining arguments.
30953985 func_exec_program ()
30963986 {
3097 for lt_wr_arg
3098 do
3099 case \$lt_wr_arg in
3100 --lt-*) ;;
3101 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3102 esac
3103 shift
3104 done
3987 case \" \$* \" in
3988 *\\ --lt-*)
3989 for lt_wr_arg
3990 do
3991 case \$lt_wr_arg in
3992 --lt-*) ;;
3993 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
3994 esac
3995 shift
3996 done ;;
3997 esac
31053998 func_exec_program_core \${1+\"\$@\"}
31063999 }
31074000
31944087
31954088 if test -f \"\$progdir/\$program\"; then"
31964089
4090 # fixup the dll searchpath if we need to.
4091 #
4092 # Fix the DLL searchpath if we need to. Do this before prepending
4093 # to shlibpath, because on Windows, both are PATH and uninstalled
4094 # libraries must come first.
4095 if test -n "$dllsearchpath"; then
4096 $ECHO "\
4097 # Add the dll search path components to the executable PATH
4098 PATH=$dllsearchpath:\$PATH
4099 "
4100 fi
4101
31974102 # Export our shlibpath_var if we have one.
31984103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
31994104 $ECHO "\
32054110 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
32064111
32074112 export $shlibpath_var
3208 "
3209 fi
3210
3211 # fixup the dll searchpath if we need to.
3212 if test -n "$dllsearchpath"; then
3213 $ECHO "\
3214 # Add the dll search path components to the executable PATH
3215 PATH=$dllsearchpath:\$PATH
32164113 "
32174114 fi
32184115
32324129 "
32334130 }
32344131
3235
3236 # func_to_host_path arg
3237 #
3238 # Convert paths to host format when used with build tools.
3239 # Intended for use with "native" mingw (where libtool itself
3240 # is running under the msys shell), or in the following cross-
3241 # build environments:
3242 # $build $host
3243 # mingw (msys) mingw [e.g. native]
3244 # cygwin mingw
3245 # *nix + wine mingw
3246 # where wine is equipped with the `winepath' executable.
3247 # In the native mingw case, the (msys) shell automatically
3248 # converts paths for any non-msys applications it launches,
3249 # but that facility isn't available from inside the cwrapper.
3250 # Similar accommodations are necessary for $host mingw and
3251 # $build cygwin. Calling this function does no harm for other
3252 # $host/$build combinations not listed above.
3253 #
3254 # ARG is the path (on $build) that should be converted to
3255 # the proper representation for $host. The result is stored
3256 # in $func_to_host_path_result.
3257 func_to_host_path ()
3258 {
3259 func_to_host_path_result="$1"
3260 if test -n "$1"; then
3261 case $host in
3262 *mingw* )
3263 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3264 case $build in
3265 *mingw* ) # actually, msys
3266 # awkward: cmd appends spaces to result
3267 func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null |
3268 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
3269 ;;
3270 *cygwin* )
3271 func_to_host_path_result=`cygpath -w "$1" |
3272 $SED -e "$lt_sed_naive_backslashify"`
3273 ;;
3274 * )
3275 # Unfortunately, winepath does not exit with a non-zero
3276 # error code, so we are forced to check the contents of
3277 # stdout. On the other hand, if the command is not
3278 # found, the shell will set an exit code of 127 and print
3279 # *an error message* to stdout. So we must check for both
3280 # error code of zero AND non-empty stdout, which explains
3281 # the odd construction:
3282 func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
3283 if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
3284 func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" |
3285 $SED -e "$lt_sed_naive_backslashify"`
3286 else
3287 # Allow warning below.
3288 func_to_host_path_result=
3289 fi
3290 ;;
3291 esac
3292 if test -z "$func_to_host_path_result" ; then
3293 func_error "Could not determine host path corresponding to"
3294 func_error " \`$1'"
3295 func_error "Continuing, but uninstalled executables may not work."
3296 # Fallback:
3297 func_to_host_path_result="$1"
3298 fi
3299 ;;
3300 esac
3301 fi
3302 }
3303 # end: func_to_host_path
3304
3305 # func_to_host_pathlist arg
3306 #
3307 # Convert pathlists to host format when used with build tools.
3308 # See func_to_host_path(), above. This function supports the
3309 # following $build/$host combinations (but does no harm for
3310 # combinations not listed here):
3311 # $build $host
3312 # mingw (msys) mingw [e.g. native]
3313 # cygwin mingw
3314 # *nix + wine mingw
3315 #
3316 # Path separators are also converted from $build format to
3317 # $host format. If ARG begins or ends with a path separator
3318 # character, it is preserved (but converted to $host format)
3319 # on output.
3320 #
3321 # ARG is a pathlist (on $build) that should be converted to
3322 # the proper representation on $host. The result is stored
3323 # in $func_to_host_pathlist_result.
3324 func_to_host_pathlist ()
3325 {
3326 func_to_host_pathlist_result="$1"
3327 if test -n "$1"; then
3328 case $host in
3329 *mingw* )
3330 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
3331 # Remove leading and trailing path separator characters from
3332 # ARG. msys behavior is inconsistent here, cygpath turns them
3333 # into '.;' and ';.', and winepath ignores them completely.
3334 func_stripname : : "$1"
3335 func_to_host_pathlist_tmp1=$func_stripname_result
3336 case $build in
3337 *mingw* ) # Actually, msys.
3338 # Awkward: cmd appends spaces to result.
3339 func_to_host_pathlist_result=`
3340 ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null |
3341 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
3342 ;;
3343 *cygwin* )
3344 func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" |
3345 $SED -e "$lt_sed_naive_backslashify"`
3346 ;;
3347 * )
3348 # unfortunately, winepath doesn't convert pathlists
3349 func_to_host_pathlist_result=""
3350 func_to_host_pathlist_oldIFS=$IFS
3351 IFS=:
3352 for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
3353 IFS=$func_to_host_pathlist_oldIFS
3354 if test -n "$func_to_host_pathlist_f" ; then
3355 func_to_host_path "$func_to_host_pathlist_f"
3356 if test -n "$func_to_host_path_result" ; then
3357 if test -z "$func_to_host_pathlist_result" ; then
3358 func_to_host_pathlist_result="$func_to_host_path_result"
3359 else
3360 func_append func_to_host_pathlist_result ";$func_to_host_path_result"
3361 fi
3362 fi
3363 fi
3364 done
3365 IFS=$func_to_host_pathlist_oldIFS
3366 ;;
3367 esac
3368 if test -z "$func_to_host_pathlist_result"; then
3369 func_error "Could not determine the host path(s) corresponding to"
3370 func_error " \`$1'"
3371 func_error "Continuing, but uninstalled executables may not work."
3372 # Fallback. This may break if $1 contains DOS-style drive
3373 # specifications. The fix is not to complicate the expression
3374 # below, but for the user to provide a working wine installation
3375 # with winepath so that path translation in the cross-to-mingw
3376 # case works properly.
3377 lt_replace_pathsep_nix_to_dos="s|:|;|g"
3378 func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
3379 $SED -e "$lt_replace_pathsep_nix_to_dos"`
3380 fi
3381 # Now, add the leading and trailing path separators back
3382 case "$1" in
3383 :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
3384 ;;
3385 esac
3386 case "$1" in
3387 *: ) func_append func_to_host_pathlist_result ";"
3388 ;;
3389 esac
3390 ;;
3391 esac
3392 fi
3393 }
3394 # end: func_to_host_pathlist
33954132
33964133 # func_emit_cwrapperexe_src
33974134 # emit the source code for a wrapper executable on stdout
35624299 EOF
35634300
35644301 cat <<EOF
3565 const char * MAGIC_EXE = "$magic_exe";
4302 volatile const char * MAGIC_EXE = "$magic_exe";
35664303 const char * LIB_PATH_VARNAME = "$shlibpath_var";
35674304 EOF
35684305
35694306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
3570 func_to_host_pathlist "$temp_rpath"
4307 func_to_host_path "$temp_rpath"
35714308 cat <<EOF
3572 const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
4309 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
35734310 EOF
35744311 else
35754312 cat <<"EOF"
35784315 fi
35794316
35804317 if test -n "$dllsearchpath"; then
3581 func_to_host_pathlist "$dllsearchpath:"
4318 func_to_host_path "$dllsearchpath:"
35824319 cat <<EOF
35834320 const char * EXE_PATH_VARNAME = "PATH";
3584 const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
4321 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
35854322 EOF
35864323 else
35874324 cat <<"EOF"
37644501
37654502 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
37664503 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
4504 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
4505 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
4506 because on Windows, both *_VARNAMEs are PATH but uninstalled
4507 libraries must come first. */
4508 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
37674509 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
3768 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
37694510
37704511 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
37714512 nonnull (lt_argv_zero));
43215062 {
43225063 EOF
43235064 func_emit_wrapper yes |
4324 $SED -e 's/\([\\"]\)/\\\1/g' \
4325 -e 's/^/ fputs ("/' -e 's/$/\\n", f);/'
4326
5065 $SED -n -e '
5066 s/^\(.\{79\}\)\(..*\)/\1\
5067 \2/
5068 h
5069 s/\([\\"]\)/\\\1/g
5070 s/$/\\n/
5071 s/\([^\n]*\).*/ fputs ("\1", f);/p
5072 g
5073 D'
43275074 cat <<"EOF"
43285075 }
43295076 EOF
45145261 ;;
45155262 *)
45165263 if test "$prev" = dlfiles; then
4517 dlfiles="$dlfiles $arg"
5264 func_append dlfiles " $arg"
45185265 else
4519 dlprefiles="$dlprefiles $arg"
5266 func_append dlprefiles " $arg"
45205267 fi
45215268 prev=
45225269 continue
45405287 *-*-darwin*)
45415288 case "$deplibs " in
45425289 *" $qarg.ltframework "*) ;;
4543 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
5290 *) func_append deplibs " $qarg.ltframework" # this is fixed later
45445291 ;;
45455292 esac
45465293 ;;
45595306 moreargs=
45605307 for fil in `cat "$save_arg"`
45615308 do
4562 # moreargs="$moreargs $fil"
5309 # func_append moreargs " $fil"
45635310 arg=$fil
45645311 # A libtool-controlled object.
45655312
45885335
45895336 if test "$prev" = dlfiles; then
45905337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
4591 dlfiles="$dlfiles $pic_object"
5338 func_append dlfiles " $pic_object"
45925339 prev=
45935340 continue
45945341 else
46005347 # CHECK ME: I think I busted this. -Ossama
46015348 if test "$prev" = dlprefiles; then
46025349 # Preload the old-style object.
4603 dlprefiles="$dlprefiles $pic_object"
5350 func_append dlprefiles " $pic_object"
46045351 prev=
46055352 fi
46065353
46705417 if test "$prev" = rpath; then
46715418 case "$rpath " in
46725419 *" $arg "*) ;;
4673 *) rpath="$rpath $arg" ;;
5420 *) func_append rpath " $arg" ;;
46745421 esac
46755422 else
46765423 case "$xrpath " in
46775424 *" $arg "*) ;;
4678 *) xrpath="$xrpath $arg" ;;
5425 *) func_append xrpath " $arg" ;;
46795426 esac
46805427 fi
46815428 prev=
46875434 continue
46885435 ;;
46895436 weak)
4690 weak_libs="$weak_libs $arg"
5437 func_append weak_libs " $arg"
46915438 prev=
46925439 continue
46935440 ;;
46945441 xcclinker)
4695 linker_flags="$linker_flags $qarg"
4696 compiler_flags="$compiler_flags $qarg"
5442 func_append linker_flags " $qarg"
5443 func_append compiler_flags " $qarg"
46975444 prev=
46985445 func_append compile_command " $qarg"
46995446 func_append finalize_command " $qarg"
47005447 continue
47015448 ;;
47025449 xcompiler)
4703 compiler_flags="$compiler_flags $qarg"
5450 func_append compiler_flags " $qarg"
47045451 prev=
47055452 func_append compile_command " $qarg"
47065453 func_append finalize_command " $qarg"
47075454 continue
47085455 ;;
47095456 xlinker)
4710 linker_flags="$linker_flags $qarg"
4711 compiler_flags="$compiler_flags $wl$qarg"
5457 func_append linker_flags " $qarg"
5458 func_append compiler_flags " $wl$qarg"
47125459 prev=
47135460 func_append compile_command " $wl$qarg"
47145461 func_append finalize_command " $wl$qarg"
47995546 ;;
48005547
48015548 -L*)
4802 func_stripname '-L' '' "$arg"
4803 dir=$func_stripname_result
4804 if test -z "$dir"; then
5549 func_stripname "-L" '' "$arg"
5550 if test -z "$func_stripname_result"; then
48055551 if test "$#" -gt 0; then
48065552 func_fatal_error "require no space between \`-L' and \`$1'"
48075553 else
48085554 func_fatal_error "need path for \`-L' option"
48095555 fi
48105556 fi
5557 func_resolve_sysroot "$func_stripname_result"
5558 dir=$func_resolve_sysroot_result
48115559 # We need an absolute path.
48125560 case $dir in
48135561 [\\/]* | [A-Za-z]:[\\/]*) ;;
48195567 ;;
48205568 esac
48215569 case "$deplibs " in
4822 *" -L$dir "*) ;;
5570 *" -L$dir "* | *" $arg "*)
5571 # Will only happen for absolute or sysroot arguments
5572 ;;
48235573 *)
4824 deplibs="$deplibs -L$dir"
4825 lib_search_path="$lib_search_path $dir"
5574 # Preserve sysroot, but never include relative directories
5575 case $dir in
5576 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
5577 *) func_append deplibs " -L$dir" ;;
5578 esac
5579 func_append lib_search_path " $dir"
48265580 ;;
48275581 esac
48285582 case $host in
48315585 case :$dllsearchpath: in
48325586 *":$dir:"*) ;;
48335587 ::) dllsearchpath=$dir;;
4834 *) dllsearchpath="$dllsearchpath:$dir";;
5588 *) func_append dllsearchpath ":$dir";;
48355589 esac
48365590 case :$dllsearchpath: in
48375591 *":$testbindir:"*) ;;
48385592 ::) dllsearchpath=$testbindir;;
4839 *) dllsearchpath="$dllsearchpath:$testbindir";;
5593 *) func_append dllsearchpath ":$testbindir";;
48405594 esac
48415595 ;;
48425596 esac
48605614 ;;
48615615 *-*-rhapsody* | *-*-darwin1.[012])
48625616 # Rhapsody C and math libraries are in the System framework
4863 deplibs="$deplibs System.ltframework"
5617 func_append deplibs " System.ltframework"
48645618 continue
48655619 ;;
48665620 *-*-sco3.2v5* | *-*-sco5v6*)
48805634 ;;
48815635 esac
48825636 fi
4883 deplibs="$deplibs $arg"
5637 func_append deplibs " $arg"
48845638 continue
48855639 ;;
48865640
48925646 # Tru64 UNIX uses -model [arg] to determine the layout of C++
48935647 # classes, name mangling, and exception handling.
48945648 # Darwin uses the -arch flag to determine output architecture.
4895 -model|-arch|-isysroot)
4896 compiler_flags="$compiler_flags $arg"
5649 -model|-arch|-isysroot|--sysroot)
5650 func_append compiler_flags " $arg"
48975651 func_append compile_command " $arg"
48985652 func_append finalize_command " $arg"
48995653 prev=xcompiler
49005654 continue
49015655 ;;
49025656
4903 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4904 compiler_flags="$compiler_flags $arg"
5657 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
5658 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
5659 func_append compiler_flags " $arg"
49055660 func_append compile_command " $arg"
49065661 func_append finalize_command " $arg"
49075662 case "$new_inherited_linker_flags " in
49085663 *" $arg "*) ;;
4909 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
5664 * ) func_append new_inherited_linker_flags " $arg" ;;
49105665 esac
49115666 continue
49125667 ;;
49735728 # We need an absolute path.
49745729 case $dir in
49755730 [\\/]* | [A-Za-z]:[\\/]*) ;;
5731 =*)
5732 func_stripname '=' '' "$dir"
5733 dir=$lt_sysroot$func_stripname_result
5734 ;;
49765735 *)
49775736 func_fatal_error "only absolute run-paths are allowed"
49785737 ;;
49795738 esac
49805739 case "$xrpath " in
49815740 *" $dir "*) ;;
4982 *) xrpath="$xrpath $dir" ;;
5741 *) func_append xrpath " $dir" ;;
49835742 esac
49845743 continue
49855744 ;;
50325791 for flag in $args; do
50335792 IFS="$save_ifs"
50345793 func_quote_for_eval "$flag"
5035 arg="$arg $func_quote_for_eval_result"
5036 compiler_flags="$compiler_flags $func_quote_for_eval_result"
5794 func_append arg " $func_quote_for_eval_result"
5795 func_append compiler_flags " $func_quote_for_eval_result"
50375796 done
50385797 IFS="$save_ifs"
50395798 func_stripname ' ' '' "$arg"
50485807 for flag in $args; do
50495808 IFS="$save_ifs"
50505809 func_quote_for_eval "$flag"
5051 arg="$arg $wl$func_quote_for_eval_result"
5052 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
5053 linker_flags="$linker_flags $func_quote_for_eval_result"
5810 func_append arg " $wl$func_quote_for_eval_result"
5811 func_append compiler_flags " $wl$func_quote_for_eval_result"
5812 func_append linker_flags " $func_quote_for_eval_result"
50545813 done
50555814 IFS="$save_ifs"
50565815 func_stripname ' ' '' "$arg"
50895848 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
50905849 # @file GCC response files
50915850 # -tp=* Portland pgcc target processor selection
5851 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
50925853 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
5093 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
5854 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
50945856 func_quote_for_eval "$arg"
50955857 arg="$func_quote_for_eval_result"
50965858 func_append compile_command " $arg"
50975859 func_append finalize_command " $arg"
5098 compiler_flags="$compiler_flags $arg"
5860 func_append compiler_flags " $arg"
50995861 continue
51005862 ;;
51015863
51075869
51085870 *.$objext)
51095871 # A standard object.
5110 objs="$objs $arg"
5872 func_append objs " $arg"
51115873 ;;
51125874
51135875 *.lo)
51385900
51395901 if test "$prev" = dlfiles; then
51405902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
5141 dlfiles="$dlfiles $pic_object"
5903 func_append dlfiles " $pic_object"
51425904 prev=
51435905 continue
51445906 else
51505912 # CHECK ME: I think I busted this. -Ossama
51515913 if test "$prev" = dlprefiles; then
51525914 # Preload the old-style object.
5153 dlprefiles="$dlprefiles $pic_object"
5915 func_append dlprefiles " $pic_object"
51545916 prev=
51555917 fi
51565918
51955957
51965958 *.$libext)
51975959 # An archive.
5198 deplibs="$deplibs $arg"
5199 old_deplibs="$old_deplibs $arg"
5960 func_append deplibs " $arg"
5961 func_append old_deplibs " $arg"
52005962 continue
52015963 ;;
52025964
52035965 *.la)
52045966 # A libtool-controlled library.
52055967
5968 func_resolve_sysroot "$arg"
52065969 if test "$prev" = dlfiles; then
52075970 # This library was specified with -dlopen.
5208 dlfiles="$dlfiles $arg"
5971 func_append dlfiles " $func_resolve_sysroot_result"
52095972 prev=
52105973 elif test "$prev" = dlprefiles; then
52115974 # The library was specified with -dlpreopen.
5212 dlprefiles="$dlprefiles $arg"
5975 func_append dlprefiles " $func_resolve_sysroot_result"
52135976 prev=
52145977 else
5215 deplibs="$deplibs $arg"
5978 func_append deplibs " $func_resolve_sysroot_result"
52165979 fi
52175980 continue
52185981 ;;
52596022
52606023 func_dirname "$output" "/" ""
52616024 output_objdir="$func_dirname_result$objdir"
6025 func_to_tool_file "$output_objdir/"
6026 tool_output_objdir=$func_to_tool_file_result
52626027 # Create the object directory.
52636028 func_mkdir_p "$output_objdir"
52646029
52796044 # Find all interdependent deplibs by searching for libraries
52806045 # that are linked more than once (e.g. -la -lb -la)
52816046 for deplib in $deplibs; do
5282 if $opt_duplicate_deps ; then
6047 if $opt_preserve_dup_deps ; then
52836048 case "$libs " in
5284 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6049 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
52856050 esac
52866051 fi
5287 libs="$libs $deplib"
6052 func_append libs " $deplib"
52886053 done
52896054
52906055 if test "$linkmode" = lib; then
52976062 if $opt_duplicate_compiler_generated_deps; then
52986063 for pre_post_dep in $predeps $postdeps; do
52996064 case "$pre_post_deps " in
5300 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
6065 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
53016066 esac
5302 pre_post_deps="$pre_post_deps $pre_post_dep"
6067 func_append pre_post_deps " $pre_post_dep"
53036068 done
53046069 fi
53056070 pre_post_deps=
53666131 for lib in $dlprefiles; do
53676132 # Ignore non-libtool-libs
53686133 dependency_libs=
6134 func_resolve_sysroot "$lib"
53696135 case $lib in
5370 *.la) func_source "$lib" ;;
6136 *.la) func_source "$func_resolve_sysroot_result" ;;
53716137 esac
53726138
53736139 # Collect preopened libtool deplibs, except any this library
53776143 deplib_base=$func_basename_result
53786144 case " $weak_libs " in
53796145 *" $deplib_base "*) ;;
5380 *) deplibs="$deplibs $deplib" ;;
6146 *) func_append deplibs " $deplib" ;;
53816147 esac
53826148 done
53836149 done
53936159 lib=
53946160 found=no
53956161 case $deplib in
5396 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
6162 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
6163 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
53976164 if test "$linkmode,$pass" = "prog,link"; then
53986165 compile_deplibs="$deplib $compile_deplibs"
53996166 finalize_deplibs="$deplib $finalize_deplibs"
54006167 else
5401 compiler_flags="$compiler_flags $deplib"
6168 func_append compiler_flags " $deplib"
54026169 if test "$linkmode" = lib ; then
54036170 case "$new_inherited_linker_flags " in
54046171 *" $deplib "*) ;;
5405 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6172 * ) func_append new_inherited_linker_flags " $deplib" ;;
54066173 esac
54076174 fi
54086175 fi
54876254 if test "$linkmode" = lib ; then
54886255 case "$new_inherited_linker_flags " in
54896256 *" $deplib "*) ;;
5490 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
6257 * ) func_append new_inherited_linker_flags " $deplib" ;;
54916258 esac
54926259 fi
54936260 fi
55006267 test "$pass" = conv && continue
55016268 newdependency_libs="$deplib $newdependency_libs"
55026269 func_stripname '-L' '' "$deplib"
5503 newlib_search_path="$newlib_search_path $func_stripname_result"
6270 func_resolve_sysroot "$func_stripname_result"
6271 func_append newlib_search_path " $func_resolve_sysroot_result"
55046272 ;;
55056273 prog)
55066274 if test "$pass" = conv; then
55146282 finalize_deplibs="$deplib $finalize_deplibs"
55156283 fi
55166284 func_stripname '-L' '' "$deplib"
5517 newlib_search_path="$newlib_search_path $func_stripname_result"
6285 func_resolve_sysroot "$func_stripname_result"
6286 func_append newlib_search_path " $func_resolve_sysroot_result"
55186287 ;;
55196288 *)
55206289 func_warning "\`-L' is ignored for archives/objects"
55256294 -R*)
55266295 if test "$pass" = link; then
55276296 func_stripname '-R' '' "$deplib"
5528 dir=$func_stripname_result
6297 func_resolve_sysroot "$func_stripname_result"
6298 dir=$func_resolve_sysroot_result
55296299 # Make sure the xrpath contains only unique directories.
55306300 case "$xrpath " in
55316301 *" $dir "*) ;;
5532 *) xrpath="$xrpath $dir" ;;
6302 *) func_append xrpath " $dir" ;;
55336303 esac
55346304 fi
55356305 deplibs="$deplib $deplibs"
55366306 continue
55376307 ;;
5538 *.la) lib="$deplib" ;;
6308 *.la)
6309 func_resolve_sysroot "$deplib"
6310 lib=$func_resolve_sysroot_result
6311 ;;
55396312 *.$libext)
55406313 if test "$pass" = conv; then
55416314 deplibs="$deplib $deplibs"
55986371 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
55996372 # If there is no dlopen support or we're linking statically,
56006373 # we need to preload.
5601 newdlprefiles="$newdlprefiles $deplib"
6374 func_append newdlprefiles " $deplib"
56026375 compile_deplibs="$deplib $compile_deplibs"
56036376 finalize_deplibs="$deplib $finalize_deplibs"
56046377 else
5605 newdlfiles="$newdlfiles $deplib"
6378 func_append newdlfiles " $deplib"
56066379 fi
56076380 fi
56086381 continue
56486421 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
56496422 case " $new_inherited_linker_flags " in
56506423 *" $tmp_inherited_linker_flag "*) ;;
5651 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
6424 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
56526425 esac
56536426 done
56546427 fi
56566429 if test "$linkmode,$pass" = "lib,link" ||
56576430 test "$linkmode,$pass" = "prog,scan" ||
56586431 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
5659 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
5660 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
6432 test -n "$dlopen" && func_append dlfiles " $dlopen"
6433 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
56616434 fi
56626435
56636436 if test "$pass" = conv; then
56686441 func_fatal_error "cannot find name of link library for \`$lib'"
56696442 fi
56706443 # It is a libtool convenience library, so add in its objects.
5671 convenience="$convenience $ladir/$objdir/$old_library"
5672 old_convenience="$old_convenience $ladir/$objdir/$old_library"
6444 func_append convenience " $ladir/$objdir/$old_library"
6445 func_append old_convenience " $ladir/$objdir/$old_library"
56736446 elif test "$linkmode" != prog && test "$linkmode" != lib; then
56746447 func_fatal_error "\`$lib' is not a convenience library"
56756448 fi
56766449 tmp_libs=
56776450 for deplib in $dependency_libs; do
56786451 deplibs="$deplib $deplibs"
5679 if $opt_duplicate_deps ; then
6452 if $opt_preserve_dup_deps ; then
56806453 case "$tmp_libs " in
5681 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6454 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
56826455 esac
56836456 fi
5684 tmp_libs="$tmp_libs $deplib"
6457 func_append tmp_libs " $deplib"
56856458 done
56866459 continue
56876460 fi # $pass = conv
56896462
56906463 # Get the name of the library we link against.
56916464 linklib=
5692 for l in $old_library $library_names; do
5693 linklib="$l"
5694 done
6465 if test -n "$old_library" &&
6466 { test "$prefer_static_libs" = yes ||
6467 test "$prefer_static_libs,$installed" = "built,no"; }; then
6468 linklib=$old_library
6469 else
6470 for l in $old_library $library_names; do
6471 linklib="$l"
6472 done
6473 fi
56956474 if test -z "$linklib"; then
56966475 func_fatal_error "cannot find name of link library for \`$lib'"
56976476 fi
57086487 # statically, we need to preload. We also need to preload any
57096488 # dependent libraries so libltdl's deplib preloader doesn't
57106489 # bomb out in the load deplibs phase.
5711 dlprefiles="$dlprefiles $lib $dependency_libs"
6490 func_append dlprefiles " $lib $dependency_libs"
57126491 else
5713 newdlfiles="$newdlfiles $lib"
6492 func_append newdlfiles " $lib"
57146493 fi
57156494 continue
57166495 fi # $pass = dlopen
57326511
57336512 # Find the relevant object directory and library name.
57346513 if test "X$installed" = Xyes; then
5735 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6514 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
57366515 func_warning "library \`$lib' was moved."
57376516 dir="$ladir"
57386517 absdir="$abs_ladir"
57396518 libdir="$abs_ladir"
57406519 else
5741 dir="$libdir"
5742 absdir="$libdir"
6520 dir="$lt_sysroot$libdir"
6521 absdir="$lt_sysroot$libdir"
57436522 fi
57446523 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
57456524 else
57476526 dir="$ladir"
57486527 absdir="$abs_ladir"
57496528 # Remove this search path later
5750 notinst_path="$notinst_path $abs_ladir"
6529 func_append notinst_path " $abs_ladir"
57516530 else
57526531 dir="$ladir/$objdir"
57536532 absdir="$abs_ladir/$objdir"
57546533 # Remove this search path later
5755 notinst_path="$notinst_path $abs_ladir"
6534 func_append notinst_path " $abs_ladir"
57566535 fi
57576536 fi # $installed = yes
57586537 func_stripname 'lib' '.la' "$laname"
57636542 if test -z "$libdir" && test "$linkmode" = prog; then
57646543 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
57656544 fi
5766 # Prefer using a static library (so that no silly _DYNAMIC symbols
5767 # are required to link).
5768 if test -n "$old_library"; then
5769 newdlprefiles="$newdlprefiles $dir/$old_library"
5770 # Keep a list of preopened convenience libraries to check
5771 # that they are being used correctly in the link pass.
5772 test -z "$libdir" && \
5773 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
5774 # Otherwise, use the dlname, so that lt_dlopen finds it.
5775 elif test -n "$dlname"; then
5776 newdlprefiles="$newdlprefiles $dir/$dlname"
5777 else
5778 newdlprefiles="$newdlprefiles $dir/$linklib"
5779 fi
6545 case "$host" in
6546 # special handling for platforms with PE-DLLs.
6547 *cygwin* | *mingw* | *cegcc* )
6548 # Linker will automatically link against shared library if both
6549 # static and shared are present. Therefore, ensure we extract
6550 # symbols from the import library if a shared library is present
6551 # (otherwise, the dlopen module name will be incorrect). We do
6552 # this by putting the import library name into $newdlprefiles.
6553 # We recover the dlopen module name by 'saving' the la file
6554 # name in a special purpose variable, and (later) extracting the
6555 # dlname from the la file.
6556 if test -n "$dlname"; then
6557 func_tr_sh "$dir/$linklib"
6558 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
6559 func_append newdlprefiles " $dir/$linklib"
6560 else
6561 func_append newdlprefiles " $dir/$old_library"
6562 # Keep a list of preopened convenience libraries to check
6563 # that they are being used correctly in the link pass.
6564 test -z "$libdir" && \
6565 func_append dlpreconveniencelibs " $dir/$old_library"
6566 fi
6567 ;;
6568 * )
6569 # Prefer using a static library (so that no silly _DYNAMIC symbols
6570 # are required to link).
6571 if test -n "$old_library"; then
6572 func_append newdlprefiles " $dir/$old_library"
6573 # Keep a list of preopened convenience libraries to check
6574 # that they are being used correctly in the link pass.
6575 test -z "$libdir" && \
6576 func_append dlpreconveniencelibs " $dir/$old_library"
6577 # Otherwise, use the dlname, so that lt_dlopen finds it.
6578 elif test -n "$dlname"; then
6579 func_append newdlprefiles " $dir/$dlname"
6580 else
6581 func_append newdlprefiles " $dir/$linklib"
6582 fi
6583 ;;
6584 esac
57806585 fi # $pass = dlpreopen
57816586
57826587 if test -z "$libdir"; then
57946599
57956600
57966601 if test "$linkmode" = prog && test "$pass" != link; then
5797 newlib_search_path="$newlib_search_path $ladir"
6602 func_append newlib_search_path " $ladir"
57986603 deplibs="$lib $deplibs"
57996604
58006605 linkalldeplibs=no
58076612 for deplib in $dependency_libs; do
58086613 case $deplib in
58096614 -L*) func_stripname '-L' '' "$deplib"
5810 newlib_search_path="$newlib_search_path $func_stripname_result"
6615 func_resolve_sysroot "$func_stripname_result"
6616 func_append newlib_search_path " $func_resolve_sysroot_result"
58116617 ;;
58126618 esac
58136619 # Need to link against all dependency_libs?
58186624 # or/and link against static libraries
58196625 newdependency_libs="$deplib $newdependency_libs"
58206626 fi
5821 if $opt_duplicate_deps ; then
6627 if $opt_preserve_dup_deps ; then
58226628 case "$tmp_libs " in
5823 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
6629 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
58246630 esac
58256631 fi
5826 tmp_libs="$tmp_libs $deplib"
6632 func_append tmp_libs " $deplib"
58276633 done # for deplib
58286634 continue
58296635 fi # $linkmode = prog...
58386644 # Make sure the rpath contains only unique directories.
58396645 case "$temp_rpath:" in
58406646 *"$absdir:"*) ;;
5841 *) temp_rpath="$temp_rpath$absdir:" ;;
6647 *) func_append temp_rpath "$absdir:" ;;
58426648 esac
58436649 fi
58446650
58506656 *)
58516657 case "$compile_rpath " in
58526658 *" $absdir "*) ;;
5853 *) compile_rpath="$compile_rpath $absdir"
6659 *) func_append compile_rpath " $absdir" ;;
58546660 esac
58556661 ;;
58566662 esac
58596665 *)
58606666 case "$finalize_rpath " in
58616667 *" $libdir "*) ;;
5862 *) finalize_rpath="$finalize_rpath $libdir"
6668 *) func_append finalize_rpath " $libdir" ;;
58636669 esac
58646670 ;;
58656671 esac
58846690 case $host in
58856691 *cygwin* | *mingw* | *cegcc*)
58866692 # No point in relinking DLLs because paths are not encoded
5887 notinst_deplibs="$notinst_deplibs $lib"
6693 func_append notinst_deplibs " $lib"
58886694 need_relink=no
58896695 ;;
58906696 *)
58916697 if test "$installed" = no; then
5892 notinst_deplibs="$notinst_deplibs $lib"
6698 func_append notinst_deplibs " $lib"
58936699 need_relink=yes
58946700 fi
58956701 ;;
59246730 *)
59256731 case "$compile_rpath " in
59266732 *" $absdir "*) ;;
5927 *) compile_rpath="$compile_rpath $absdir"
6733 *) func_append compile_rpath " $absdir" ;;
59286734 esac
59296735 ;;
59306736 esac
59336739 *)
59346740 case "$finalize_rpath " in
59356741 *" $libdir "*) ;;
5936 *) finalize_rpath="$finalize_rpath $libdir"
6742 *) func_append finalize_rpath " $libdir" ;;
59376743 esac
59386744 ;;
59396745 esac
59876793 linklib=$newlib
59886794 fi # test -n "$old_archive_from_expsyms_cmds"
59896795
5990 if test "$linkmode" = prog || test "$mode" != relink; then
6796 if test "$linkmode" = prog || test "$opt_mode" != relink; then
59916797 add_shlibpath=
59926798 add_dir=
59936799 add=
60386844 test "$hardcode_direct_absolute" = no; then
60396845 add="$dir/$linklib"
60406846 elif test "$hardcode_minus_L" = yes; then
6041 add_dir="-L$dir"
6847 add_dir="-L$absdir"
60426848 # Try looking first in the location we're being installed to.
60436849 if test -n "$inst_prefix_dir"; then
60446850 case $libdir in
60456851 [\\/]*)
6046 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6852 func_append add_dir " -L$inst_prefix_dir$libdir"
60476853 ;;
60486854 esac
60496855 fi
60656871 if test -n "$add_shlibpath"; then
60666872 case :$compile_shlibpath: in
60676873 *":$add_shlibpath:"*) ;;
6068 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
6874 *) func_append compile_shlibpath "$add_shlibpath:" ;;
60696875 esac
60706876 fi
60716877 if test "$linkmode" = prog; then
60796885 test "$hardcode_shlibpath_var" = yes; then
60806886 case :$finalize_shlibpath: in
60816887 *":$libdir:"*) ;;
6082 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6888 *) func_append finalize_shlibpath "$libdir:" ;;
60836889 esac
60846890 fi
60856891 fi
60866892 fi
60876893
6088 if test "$linkmode" = prog || test "$mode" = relink; then
6894 if test "$linkmode" = prog || test "$opt_mode" = relink; then
60896895 add_shlibpath=
60906896 add_dir=
60916897 add=
60996905 elif test "$hardcode_shlibpath_var" = yes; then
61006906 case :$finalize_shlibpath: in
61016907 *":$libdir:"*) ;;
6102 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
6908 *) func_append finalize_shlibpath "$libdir:" ;;
61036909 esac
61046910 add="-l$name"
61056911 elif test "$hardcode_automatic" = yes; then
61166922 if test -n "$inst_prefix_dir"; then
61176923 case $libdir in
61186924 [\\/]*)
6119 add_dir="$add_dir -L$inst_prefix_dir$libdir"
6925 func_append add_dir " -L$inst_prefix_dir$libdir"
61206926 ;;
61216927 esac
61226928 fi
61936999 temp_xrpath=$func_stripname_result
61947000 case " $xrpath " in
61957001 *" $temp_xrpath "*) ;;
6196 *) xrpath="$xrpath $temp_xrpath";;
7002 *) func_append xrpath " $temp_xrpath";;
61977003 esac;;
6198 *) temp_deplibs="$temp_deplibs $libdir";;
7004 *) func_append temp_deplibs " $libdir";;
61997005 esac
62007006 done
62017007 dependency_libs="$temp_deplibs"
62027008 fi
62037009
6204 newlib_search_path="$newlib_search_path $absdir"
7010 func_append newlib_search_path " $absdir"
62057011 # Link against this library
62067012 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
62077013 # ... and its dependency_libs
62087014 tmp_libs=
62097015 for deplib in $dependency_libs; do
62107016 newdependency_libs="$deplib $newdependency_libs"
6211 if $opt_duplicate_deps ; then
7017 case $deplib in
7018 -L*) func_stripname '-L' '' "$deplib"
7019 func_resolve_sysroot "$func_stripname_result";;
7020 *) func_resolve_sysroot "$deplib" ;;
7021 esac
7022 if $opt_preserve_dup_deps ; then
62127023 case "$tmp_libs " in
6213 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
7024 *" $func_resolve_sysroot_result "*)
7025 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
62147026 esac
62157027 fi
6216 tmp_libs="$tmp_libs $deplib"
7028 func_append tmp_libs " $func_resolve_sysroot_result"
62177029 done
62187030
62197031 if test "$link_all_deplibs" != no; then
62237035 case $deplib in
62247036 -L*) path="$deplib" ;;
62257037 *.la)
7038 func_resolve_sysroot "$deplib"
7039 deplib=$func_resolve_sysroot_result
62267040 func_dirname "$deplib" "" "."
6227 dir="$func_dirname_result"
7041 dir=$func_dirname_result
62287042 # We need an absolute path.
62297043 case $dir in
62307044 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
62517065 if test -z "$darwin_install_name"; then
62527066 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
62537067 fi
6254 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
6255 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
7068 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7069 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
62567070 path=
62577071 fi
62587072 fi
63027116 for dir in $newlib_search_path; do
63037117 case "$lib_search_path " in
63047118 *" $dir "*) ;;
6305 *) lib_search_path="$lib_search_path $dir" ;;
7119 *) func_append lib_search_path " $dir" ;;
63067120 esac
63077121 done
63087122 newlib_search_path=
63607174 -L*)
63617175 case " $tmp_libs " in
63627176 *" $deplib "*) ;;
6363 *) tmp_libs="$tmp_libs $deplib" ;;
7177 *) func_append tmp_libs " $deplib" ;;
63647178 esac
63657179 ;;
6366 *) tmp_libs="$tmp_libs $deplib" ;;
7180 *) func_append tmp_libs " $deplib" ;;
63677181 esac
63687182 done
63697183 eval $var=\"$tmp_libs\"
63797193 ;;
63807194 esac
63817195 if test -n "$i" ; then
6382 tmp_libs="$tmp_libs $i"
7196 func_append tmp_libs " $i"
63837197 fi
63847198 done
63857199 dependency_libs=$tmp_libs
64207234 # Now set the variables for building old libraries.
64217235 build_libtool_libs=no
64227236 oldlibs="$output"
6423 objs="$objs$old_deplibs"
7237 func_append objs "$old_deplibs"
64247238 ;;
64257239
64267240 lib)
64567270 echo
64577271 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
64587272 $ECHO "*** objects $objs is not portable!"
6459 libobjs="$libobjs $objs"
7273 func_append libobjs " $objs"
64607274 fi
64617275 fi
64627276
65157329 # which has an extra 1 added just for fun
65167330 #
65177331 case $version_type in
7332 # correct linux to gnu/linux during the next big refactor
65187333 darwin|linux|osf|windows|none)
65197334 func_arith $number_major + $number_minor
65207335 current=$func_arith_result
66317446 versuffix="$major.$revision"
66327447 ;;
66337448
6634 linux)
7449 linux) # correct to gnu/linux during the next big refactor
66357450 func_arith $current - $age
66367451 major=.$func_arith_result
66377452 versuffix="$major.$age.$revision"
66547469 done
66557470
66567471 # Make executables depend on our current version.
6657 verstring="$verstring:${current}.0"
7472 func_append verstring ":${current}.0"
66587473 ;;
66597474
66607475 qnx)
67227537 fi
67237538
67247539 func_generate_dlsyms "$libname" "$libname" "yes"
6725 libobjs="$libobjs $symfileobj"
7540 func_append libobjs " $symfileobj"
67267541 test "X$libobjs" = "X " && libobjs=
67277542
6728 if test "$mode" != relink; then
7543 if test "$opt_mode" != relink; then
67297544 # Remove our outputs, but don't remove object files since they
67307545 # may have been created when compiling PIC objects.
67317546 removelist=
67417556 continue
67427557 fi
67437558 fi
6744 removelist="$removelist $p"
7559 func_append removelist " $p"
67457560 ;;
67467561 *) ;;
67477562 esac
67527567
67537568 # Now set the variables for building old libraries.
67547569 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
6755 oldlibs="$oldlibs $output_objdir/$libname.$libext"
7570 func_append oldlibs " $output_objdir/$libname.$libext"
67567571
67577572 # Transform .lo files to .o files.
67587573 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
67697584 # If the user specified any rpath flags, then add them.
67707585 temp_xrpath=
67717586 for libdir in $xrpath; do
6772 temp_xrpath="$temp_xrpath -R$libdir"
7587 func_replace_sysroot "$libdir"
7588 func_append temp_xrpath " -R$func_replace_sysroot_result"
67737589 case "$finalize_rpath " in
67747590 *" $libdir "*) ;;
6775 *) finalize_rpath="$finalize_rpath $libdir" ;;
7591 *) func_append finalize_rpath " $libdir" ;;
67767592 esac
67777593 done
67787594 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
67867602 for lib in $old_dlfiles; do
67877603 case " $dlprefiles $dlfiles " in
67887604 *" $lib "*) ;;
6789 *) dlfiles="$dlfiles $lib" ;;
7605 *) func_append dlfiles " $lib" ;;
67907606 esac
67917607 done
67927608
67967612 for lib in $old_dlprefiles; do
67977613 case "$dlprefiles " in
67987614 *" $lib "*) ;;
6799 *) dlprefiles="$dlprefiles $lib" ;;
7615 *) func_append dlprefiles " $lib" ;;
68007616 esac
68017617 done
68027618
68087624 ;;
68097625 *-*-rhapsody* | *-*-darwin1.[012])
68107626 # Rhapsody C library is in the System framework
6811 deplibs="$deplibs System.ltframework"
7627 func_append deplibs " System.ltframework"
68127628 ;;
68137629 *-*-netbsd*)
68147630 # Don't link with libc until the a.out ld.so is fixed.
68257641 *)
68267642 # Add libc to deplibs on all other systems if necessary.
68277643 if test "$build_libtool_need_lc" = "yes"; then
6828 deplibs="$deplibs -lc"
7644 func_append deplibs " -lc"
68297645 fi
68307646 ;;
68317647 esac
68747690 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
68757691 case " $predeps $postdeps " in
68767692 *" $i "*)
6877 newdeplibs="$newdeplibs $i"
7693 func_append newdeplibs " $i"
68787694 i=""
68797695 ;;
68807696 esac
68857701 set dummy $deplib_matches; shift
68867702 deplib_match=$1
68877703 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6888 newdeplibs="$newdeplibs $i"
7704 func_append newdeplibs " $i"
68897705 else
68907706 droppeddeps=yes
68917707 echo
68997715 fi
69007716 ;;
69017717 *)
6902 newdeplibs="$newdeplibs $i"
7718 func_append newdeplibs " $i"
69037719 ;;
69047720 esac
69057721 done
69177733 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
69187734 case " $predeps $postdeps " in
69197735 *" $i "*)
6920 newdeplibs="$newdeplibs $i"
7736 func_append newdeplibs " $i"
69217737 i=""
69227738 ;;
69237739 esac
69287744 set dummy $deplib_matches; shift
69297745 deplib_match=$1
69307746 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
6931 newdeplibs="$newdeplibs $i"
7747 func_append newdeplibs " $i"
69327748 else
69337749 droppeddeps=yes
69347750 echo
69507766 fi
69517767 ;;
69527768 *)
6953 newdeplibs="$newdeplibs $i"
7769 func_append newdeplibs " $i"
69547770 ;;
69557771 esac
69567772 done
69677783 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
69687784 case " $predeps $postdeps " in
69697785 *" $a_deplib "*)
6970 newdeplibs="$newdeplibs $a_deplib"
7786 func_append newdeplibs " $a_deplib"
69717787 a_deplib=""
69727788 ;;
69737789 esac
69747790 fi
69757791 if test -n "$a_deplib" ; then
69767792 libname=`eval "\\$ECHO \"$libname_spec\""`
7793 if test -n "$file_magic_glob"; then
7794 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
7795 else
7796 libnameglob=$libname
7797 fi
7798 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
69777799 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
6978 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
7800 if test "$want_nocaseglob" = yes; then
7801 shopt -s nocaseglob
7802 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7803 $nocaseglob
7804 else
7805 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
7806 fi
69797807 for potent_lib in $potential_libs; do
69807808 # Follow soft links.
69817809 if ls -lLd "$potent_lib" 2>/dev/null |
69987826 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
69997827 $SED -e 10q |
70007828 $EGREP "$file_magic_regex" > /dev/null; then
7001 newdeplibs="$newdeplibs $a_deplib"
7829 func_append newdeplibs " $a_deplib"
70027830 a_deplib=""
70037831 break 2
70047832 fi
70237851 ;;
70247852 *)
70257853 # Add a -L argument.
7026 newdeplibs="$newdeplibs $a_deplib"
7854 func_append newdeplibs " $a_deplib"
70277855 ;;
70287856 esac
70297857 done # Gone through all deplibs.
70397867 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
70407868 case " $predeps $postdeps " in
70417869 *" $a_deplib "*)
7042 newdeplibs="$newdeplibs $a_deplib"
7870 func_append newdeplibs " $a_deplib"
70437871 a_deplib=""
70447872 ;;
70457873 esac
70527880 potlib="$potent_lib" # see symlink-check above in file_magic test
70537881 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
70547882 $EGREP "$match_pattern_regex" > /dev/null; then
7055 newdeplibs="$newdeplibs $a_deplib"
7883 func_append newdeplibs " $a_deplib"
70567884 a_deplib=""
70577885 break 2
70587886 fi
70777905 ;;
70787906 *)
70797907 # Add a -L argument.
7080 newdeplibs="$newdeplibs $a_deplib"
7908 func_append newdeplibs " $a_deplib"
70817909 ;;
70827910 esac
70837911 done # Gone through all deplibs.
71818009 *)
71828010 case " $deplibs " in
71838011 *" -L$path/$objdir "*)
7184 new_libs="$new_libs -L$path/$objdir" ;;
8012 func_append new_libs " -L$path/$objdir" ;;
71858013 esac
71868014 ;;
71878015 esac
71918019 -L*)
71928020 case " $new_libs " in
71938021 *" $deplib "*) ;;
7194 *) new_libs="$new_libs $deplib" ;;
8022 *) func_append new_libs " $deplib" ;;
71958023 esac
71968024 ;;
7197 *) new_libs="$new_libs $deplib" ;;
8025 *) func_append new_libs " $deplib" ;;
71988026 esac
71998027 done
72008028 deplibs="$new_libs"
72068034
72078035 # Test again, we may have decided not to build it any more
72088036 if test "$build_libtool_libs" = yes; then
8037 # Remove ${wl} instances when linking with ld.
8038 # FIXME: should test the right _cmds variable.
8039 case $archive_cmds in
8040 *\$LD\ *) wl= ;;
8041 esac
72098042 if test "$hardcode_into_libs" = yes; then
72108043 # Hardcode the library paths
72118044 hardcode_libdirs=
72128045 dep_rpath=
72138046 rpath="$finalize_rpath"
7214 test "$mode" != relink && rpath="$compile_rpath$rpath"
8047 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
72158048 for libdir in $rpath; do
72168049 if test -n "$hardcode_libdir_flag_spec"; then
72178050 if test -n "$hardcode_libdir_separator"; then
8051 func_replace_sysroot "$libdir"
8052 libdir=$func_replace_sysroot_result
72188053 if test -z "$hardcode_libdirs"; then
72198054 hardcode_libdirs="$libdir"
72208055 else
72238058 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
72248059 ;;
72258060 *)
7226 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8061 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
72278062 ;;
72288063 esac
72298064 fi
72308065 else
72318066 eval flag=\"$hardcode_libdir_flag_spec\"
7232 dep_rpath="$dep_rpath $flag"
8067 func_append dep_rpath " $flag"
72338068 fi
72348069 elif test -n "$runpath_var"; then
72358070 case "$perm_rpath " in
72368071 *" $libdir "*) ;;
7237 *) perm_rpath="$perm_rpath $libdir" ;;
8072 *) func_append perm_rpath " $libdir" ;;
72388073 esac
72398074 fi
72408075 done
72428077 if test -n "$hardcode_libdir_separator" &&
72438078 test -n "$hardcode_libdirs"; then
72448079 libdir="$hardcode_libdirs"
7245 if test -n "$hardcode_libdir_flag_spec_ld"; then
7246 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
7247 else
7248 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
7249 fi
8080 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
72508081 fi
72518082 if test -n "$runpath_var" && test -n "$perm_rpath"; then
72528083 # We should set the runpath_var.
72538084 rpath=
72548085 for dir in $perm_rpath; do
7255 rpath="$rpath$dir:"
8086 func_append rpath "$dir:"
72568087 done
72578088 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
72588089 fi
72608091 fi
72618092
72628093 shlibpath="$finalize_shlibpath"
7263 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
8094 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
72648095 if test -n "$shlibpath"; then
72658096 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
72668097 fi
72868117 linknames=
72878118 for link
72888119 do
7289 linknames="$linknames $link"
8120 func_append linknames " $link"
72908121 done
72918122
72928123 # Use standard objects if they are pic
72978128 if test -n "$export_symbols" && test -n "$include_expsyms"; then
72988129 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
72998130 export_symbols="$output_objdir/$libname.uexp"
7300 delfiles="$delfiles $export_symbols"
8131 func_append delfiles " $export_symbols"
73018132 fi
73028133
73038134 orig_export_symbols=
73288159 $opt_dry_run || $RM $export_symbols
73298160 cmds=$export_symbols_cmds
73308161 save_ifs="$IFS"; IFS='~'
7331 for cmd in $cmds; do
8162 for cmd1 in $cmds; do
73328163 IFS="$save_ifs"
7333 eval cmd=\"$cmd\"
7334 func_len " $cmd"
7335 len=$func_len_result
7336 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
8164 # Take the normal branch if the nm_file_list_spec branch
8165 # doesn't work or if tool conversion is not needed.
8166 case $nm_file_list_spec~$to_tool_file_cmd in
8167 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
8168 try_normal_branch=yes
8169 eval cmd=\"$cmd1\"
8170 func_len " $cmd"
8171 len=$func_len_result
8172 ;;
8173 *)
8174 try_normal_branch=no
8175 ;;
8176 esac
8177 if test "$try_normal_branch" = yes \
8178 && { test "$len" -lt "$max_cmd_len" \
8179 || test "$max_cmd_len" -le -1; }
8180 then
73378181 func_show_eval "$cmd" 'exit $?'
8182 skipped_export=false
8183 elif test -n "$nm_file_list_spec"; then
8184 func_basename "$output"
8185 output_la=$func_basename_result
8186 save_libobjs=$libobjs
8187 save_output=$output
8188 output=${output_objdir}/${output_la}.nm
8189 func_to_tool_file "$output"
8190 libobjs=$nm_file_list_spec$func_to_tool_file_result
8191 func_append delfiles " $output"
8192 func_verbose "creating $NM input file list: $output"
8193 for obj in $save_libobjs; do
8194 func_to_tool_file "$obj"
8195 $ECHO "$func_to_tool_file_result"
8196 done > "$output"
8197 eval cmd=\"$cmd1\"
8198 func_show_eval "$cmd" 'exit $?'
8199 output=$save_output
8200 libobjs=$save_libobjs
73388201 skipped_export=false
73398202 else
73408203 # The command line is too long to execute in one step.
73688231 # global variables. join(1) would be nice here, but unfortunately
73698232 # isn't a blessed tool.
73708233 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7371 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8234 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
73728235 export_symbols=$output_objdir/$libname.def
73738236 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
73748237 fi
73788241 case " $convenience " in
73798242 *" $test_deplib "*) ;;
73808243 *)
7381 tmp_deplibs="$tmp_deplibs $test_deplib"
8244 func_append tmp_deplibs " $test_deplib"
73828245 ;;
73838246 esac
73848247 done
73988261 test "X$libobjs" = "X " && libobjs=
73998262 else
74008263 gentop="$output_objdir/${outputname}x"
7401 generated="$generated $gentop"
8264 func_append generated " $gentop"
74028265
74038266 func_extract_archives $gentop $convenience
7404 libobjs="$libobjs $func_extract_archives_result"
8267 func_append libobjs " $func_extract_archives_result"
74058268 test "X$libobjs" = "X " && libobjs=
74068269 fi
74078270 fi
74088271
74098272 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
74108273 eval flag=\"$thread_safe_flag_spec\"
7411 linker_flags="$linker_flags $flag"
8274 func_append linker_flags " $flag"
74128275 fi
74138276
74148277 # Make a backup of the uninstalled library when relinking
7415 if test "$mode" = relink; then
8278 if test "$opt_mode" = relink; then
74168279 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
74178280 fi
74188281
74748337 echo 'INPUT (' > $output
74758338 for obj in $save_libobjs
74768339 do
7477 $ECHO "$obj" >> $output
8340 func_to_tool_file "$obj"
8341 $ECHO "$func_to_tool_file_result" >> $output
74788342 done
74798343 echo ')' >> $output
7480 delfiles="$delfiles $output"
8344 func_append delfiles " $output"
8345 func_to_tool_file "$output"
8346 output=$func_to_tool_file_result
74818347 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
74828348 output=${output_objdir}/${output_la}.lnk
74838349 func_verbose "creating linker input file list: $output"
74918357 fi
74928358 for obj
74938359 do
7494 $ECHO "$obj" >> $output
8360 func_to_tool_file "$obj"
8361 $ECHO "$func_to_tool_file_result" >> $output
74958362 done
7496 delfiles="$delfiles $output"
7497 output=$firstobj\"$file_list_spec$output\"
8363 func_append delfiles " $output"
8364 func_to_tool_file "$output"
8365 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
74988366 else
74998367 if test -n "$save_libobjs"; then
75008368 func_verbose "creating reloadable object files..."
75458413 if test -n "$last_robj"; then
75468414 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
75478415 fi
7548 delfiles="$delfiles $output"
8416 func_append delfiles " $output"
75498417
75508418 else
75518419 output=
75798447 lt_exit=$?
75808448
75818449 # Restore the uninstalled library and exit
7582 if test "$mode" = relink; then
8450 if test "$opt_mode" = relink; then
75838451 ( cd "$output_objdir" && \
75848452 $RM "${realname}T" && \
75858453 $MV "${realname}U" "$realname" )
76128480 # global variables. join(1) would be nice here, but unfortunately
76138481 # isn't a blessed tool.
76148482 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
7615 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
8483 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
76168484 export_symbols=$output_objdir/$libname.def
76178485 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
76188486 fi
76538521 # Add any objects from preloaded convenience libraries
76548522 if test -n "$dlprefiles"; then
76558523 gentop="$output_objdir/${outputname}x"
7656 generated="$generated $gentop"
8524 func_append generated " $gentop"
76578525
76588526 func_extract_archives $gentop $dlprefiles
7659 libobjs="$libobjs $func_extract_archives_result"
8527 func_append libobjs " $func_extract_archives_result"
76608528 test "X$libobjs" = "X " && libobjs=
76618529 fi
76628530
76728540 lt_exit=$?
76738541
76748542 # Restore the uninstalled library and exit
7675 if test "$mode" = relink; then
8543 if test "$opt_mode" = relink; then
76768544 ( cd "$output_objdir" && \
76778545 $RM "${realname}T" && \
76788546 $MV "${realname}U" "$realname" )
76848552 IFS="$save_ifs"
76858553
76868554 # Restore the uninstalled library and exit
7687 if test "$mode" = relink; then
8555 if test "$opt_mode" = relink; then
76888556 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
76898557
76908558 if test -n "$convenience"; then
77688636 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
77698637 else
77708638 gentop="$output_objdir/${obj}x"
7771 generated="$generated $gentop"
8639 func_append generated " $gentop"
77728640
77738641 func_extract_archives $gentop $convenience
77748642 reload_conv_objs="$reload_objs $func_extract_archives_result"
77758643 fi
77768644 fi
8645
8646 # If we're not building shared, we need to use non_pic_objs
8647 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
77778648
77788649 # Create the old-style object.
77798650 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
78488719 if test "$tagname" = CXX ; then
78498720 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
78508721 10.[0123])
7851 compile_command="$compile_command ${wl}-bind_at_load"
7852 finalize_command="$finalize_command ${wl}-bind_at_load"
8722 func_append compile_command " ${wl}-bind_at_load"
8723 func_append finalize_command " ${wl}-bind_at_load"
78538724 ;;
78548725 esac
78558726 fi
78698740 *)
78708741 case " $compile_deplibs " in
78718742 *" -L$path/$objdir "*)
7872 new_libs="$new_libs -L$path/$objdir" ;;
8743 func_append new_libs " -L$path/$objdir" ;;
78738744 esac
78748745 ;;
78758746 esac
78798750 -L*)
78808751 case " $new_libs " in
78818752 *" $deplib "*) ;;
7882 *) new_libs="$new_libs $deplib" ;;
8753 *) func_append new_libs " $deplib" ;;
78838754 esac
78848755 ;;
7885 *) new_libs="$new_libs $deplib" ;;
8756 *) func_append new_libs " $deplib" ;;
78868757 esac
78878758 done
78888759 compile_deplibs="$new_libs"
78898760
78908761
7891 compile_command="$compile_command $compile_deplibs"
7892 finalize_command="$finalize_command $finalize_deplibs"
8762 func_append compile_command " $compile_deplibs"
8763 func_append finalize_command " $finalize_deplibs"
78938764
78948765 if test -n "$rpath$xrpath"; then
78958766 # If the user specified any rpath flags, then add them.
78978768 # This is the magic to use -rpath.
78988769 case "$finalize_rpath " in
78998770 *" $libdir "*) ;;
7900 *) finalize_rpath="$finalize_rpath $libdir" ;;
8771 *) func_append finalize_rpath " $libdir" ;;
79018772 esac
79028773 done
79038774 fi
79168787 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
79178788 ;;
79188789 *)
7919 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8790 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
79208791 ;;
79218792 esac
79228793 fi
79238794 else
79248795 eval flag=\"$hardcode_libdir_flag_spec\"
7925 rpath="$rpath $flag"
8796 func_append rpath " $flag"
79268797 fi
79278798 elif test -n "$runpath_var"; then
79288799 case "$perm_rpath " in
79298800 *" $libdir "*) ;;
7930 *) perm_rpath="$perm_rpath $libdir" ;;
8801 *) func_append perm_rpath " $libdir" ;;
79318802 esac
79328803 fi
79338804 case $host in
79368807 case :$dllsearchpath: in
79378808 *":$libdir:"*) ;;
79388809 ::) dllsearchpath=$libdir;;
7939 *) dllsearchpath="$dllsearchpath:$libdir";;
8810 *) func_append dllsearchpath ":$libdir";;
79408811 esac
79418812 case :$dllsearchpath: in
79428813 *":$testbindir:"*) ;;
79438814 ::) dllsearchpath=$testbindir;;
7944 *) dllsearchpath="$dllsearchpath:$testbindir";;
8815 *) func_append dllsearchpath ":$testbindir";;
79458816 esac
79468817 ;;
79478818 esac
79678838 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
79688839 ;;
79698840 *)
7970 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
8841 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
79718842 ;;
79728843 esac
79738844 fi
79748845 else
79758846 eval flag=\"$hardcode_libdir_flag_spec\"
7976 rpath="$rpath $flag"
8847 func_append rpath " $flag"
79778848 fi
79788849 elif test -n "$runpath_var"; then
79798850 case "$finalize_perm_rpath " in
79808851 *" $libdir "*) ;;
7981 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
8852 *) func_append finalize_perm_rpath " $libdir" ;;
79828853 esac
79838854 fi
79848855 done
80298900 exit_status=0
80308901 func_show_eval "$link_command" 'exit_status=$?'
80318902
8903 if test -n "$postlink_cmds"; then
8904 func_to_tool_file "$output"
8905 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8906 func_execute_cmds "$postlink_cmds" 'exit $?'
8907 fi
8908
80328909 # Delete the generated files.
80338910 if test -f "$output_objdir/${outputname}S.${objext}"; then
80348911 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
80518928 # We should set the runpath_var.
80528929 rpath=
80538930 for dir in $perm_rpath; do
8054 rpath="$rpath$dir:"
8931 func_append rpath "$dir:"
80558932 done
80568933 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
80578934 fi
80598936 # We should set the runpath_var.
80608937 rpath=
80618938 for dir in $finalize_perm_rpath; do
8062 rpath="$rpath$dir:"
8939 func_append rpath "$dir:"
80638940 done
80648941 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
80658942 fi
80748951 $opt_dry_run || $RM $output
80758952 # Link the executable and exit
80768953 func_show_eval "$link_command" 'exit $?'
8954
8955 if test -n "$postlink_cmds"; then
8956 func_to_tool_file "$output"
8957 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
8958 func_execute_cmds "$postlink_cmds" 'exit $?'
8959 fi
8960
80778961 exit $EXIT_SUCCESS
80788962 fi
80798963
81068990 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
81078991
81088992 func_show_eval "$link_command" 'exit $?'
8993
8994 if test -n "$postlink_cmds"; then
8995 func_to_tool_file "$output_objdir/$outputname"
8996 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'`
8997 func_execute_cmds "$postlink_cmds" 'exit $?'
8998 fi
81098999
81109000 # Now create the wrapper script.
81119001 func_verbose "creating $output"
82049094 else
82059095 oldobjs="$old_deplibs $non_pic_objects"
82069096 if test "$preload" = yes && test -f "$symfileobj"; then
8207 oldobjs="$oldobjs $symfileobj"
9097 func_append oldobjs " $symfileobj"
82089098 fi
82099099 fi
82109100 addlibs="$old_convenience"
82129102
82139103 if test -n "$addlibs"; then
82149104 gentop="$output_objdir/${outputname}x"
8215 generated="$generated $gentop"
9105 func_append generated " $gentop"
82169106
82179107 func_extract_archives $gentop $addlibs
8218 oldobjs="$oldobjs $func_extract_archives_result"
9108 func_append oldobjs " $func_extract_archives_result"
82199109 fi
82209110
82219111 # Do each command in the archive commands.
82269116 # Add any objects from preloaded convenience libraries
82279117 if test -n "$dlprefiles"; then
82289118 gentop="$output_objdir/${outputname}x"
8229 generated="$generated $gentop"
9119 func_append generated " $gentop"
82309120
82319121 func_extract_archives $gentop $dlprefiles
8232 oldobjs="$oldobjs $func_extract_archives_result"
9122 func_append oldobjs " $func_extract_archives_result"
82339123 fi
82349124
82359125 # POSIX demands no paths to be encoded in archives. We have
82479137 else
82489138 echo "copying selected object files to avoid basename conflicts..."
82499139 gentop="$output_objdir/${outputname}x"
8250 generated="$generated $gentop"
9140 func_append generated " $gentop"
82519141 func_mkdir_p "$gentop"
82529142 save_oldobjs=$oldobjs
82539143 oldobjs=
82719161 esac
82729162 done
82739163 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
8274 oldobjs="$oldobjs $gentop/$newobj"
9164 func_append oldobjs " $gentop/$newobj"
82759165 ;;
8276 *) oldobjs="$oldobjs $obj" ;;
9166 *) func_append oldobjs " $obj" ;;
82779167 esac
82789168 done
82799169 fi
9170 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
9171 tool_oldlib=$func_to_tool_file_result
82809172 eval cmds=\"$old_archive_cmds\"
82819173
82829174 func_len " $cmds"
82839175 len=$func_len_result
82849176 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9177 cmds=$old_archive_cmds
9178 elif test -n "$archiver_list_spec"; then
9179 func_verbose "using command file archive linking..."
9180 for obj in $oldobjs
9181 do
9182 func_to_tool_file "$obj"
9183 $ECHO "$func_to_tool_file_result"
9184 done > $output_objdir/$libname.libcmd
9185 func_to_tool_file "$output_objdir/$libname.libcmd"
9186 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
82859187 cmds=$old_archive_cmds
82869188 else
82879189 # the command line is too long to link in one step, link in parts
83769278 *.la)
83779279 func_basename "$deplib"
83789280 name="$func_basename_result"
8379 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
9281 func_resolve_sysroot "$deplib"
9282 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
83809283 test -z "$libdir" && \
83819284 func_fatal_error "\`$deplib' is not a valid libtool archive"
8382 newdependency_libs="$newdependency_libs $libdir/$name"
9285 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
83839286 ;;
8384 *) newdependency_libs="$newdependency_libs $deplib" ;;
9287 -L*)
9288 func_stripname -L '' "$deplib"
9289 func_replace_sysroot "$func_stripname_result"
9290 func_append newdependency_libs " -L$func_replace_sysroot_result"
9291 ;;
9292 -R*)
9293 func_stripname -R '' "$deplib"
9294 func_replace_sysroot "$func_stripname_result"
9295 func_append newdependency_libs " -R$func_replace_sysroot_result"
9296 ;;
9297 *) func_append newdependency_libs " $deplib" ;;
83859298 esac
83869299 done
83879300 dependency_libs="$newdependency_libs"
83959308 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
83969309 test -z "$libdir" && \
83979310 func_fatal_error "\`$lib' is not a valid libtool archive"
8398 newdlfiles="$newdlfiles $libdir/$name"
9311 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
83999312 ;;
8400 *) newdlfiles="$newdlfiles $lib" ;;
9313 *) func_append newdlfiles " $lib" ;;
84019314 esac
84029315 done
84039316 dlfiles="$newdlfiles"
84149327 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
84159328 test -z "$libdir" && \
84169329 func_fatal_error "\`$lib' is not a valid libtool archive"
8417 newdlprefiles="$newdlprefiles $libdir/$name"
9330 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
84189331 ;;
84199332 esac
84209333 done
84269339 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
84279340 *) abs=`pwd`"/$lib" ;;
84289341 esac
8429 newdlfiles="$newdlfiles $abs"
9342 func_append newdlfiles " $abs"
84309343 done
84319344 dlfiles="$newdlfiles"
84329345 newdlprefiles=
84359348 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
84369349 *) abs=`pwd`"/$lib" ;;
84379350 esac
8438 newdlprefiles="$newdlprefiles $abs"
9351 func_append newdlprefiles " $abs"
84399352 done
84409353 dlprefiles="$newdlprefiles"
84419354 fi
85209433 exit $EXIT_SUCCESS
85219434 }
85229435
8523 { test "$mode" = link || test "$mode" = relink; } &&
9436 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
85249437 func_mode_link ${1+"$@"}
85259438
85269439
85409453 for arg
85419454 do
85429455 case $arg in
8543 -f) RM="$RM $arg"; rmforce=yes ;;
8544 -*) RM="$RM $arg" ;;
8545 *) files="$files $arg" ;;
9456 -f) func_append RM " $arg"; rmforce=yes ;;
9457 -*) func_append RM " $arg" ;;
9458 *) func_append files " $arg" ;;
85469459 esac
85479460 done
85489461
85519464
85529465 rmdirs=
85539466
8554 origobjdir="$objdir"
85559467 for file in $files; do
85569468 func_dirname "$file" "" "."
85579469 dir="$func_dirname_result"
85589470 if test "X$dir" = X.; then
8559 objdir="$origobjdir"
9471 odir="$objdir"
85609472 else
8561 objdir="$dir/$origobjdir"
9473 odir="$dir/$objdir"
85629474 fi
85639475 func_basename "$file"
85649476 name="$func_basename_result"
8565 test "$mode" = uninstall && objdir="$dir"
8566
8567 # Remember objdir for removal later, being careful to avoid duplicates
8568 if test "$mode" = clean; then
9477 test "$opt_mode" = uninstall && odir="$dir"
9478
9479 # Remember odir for removal later, being careful to avoid duplicates
9480 if test "$opt_mode" = clean; then
85699481 case " $rmdirs " in
8570 *" $objdir "*) ;;
8571 *) rmdirs="$rmdirs $objdir" ;;
9482 *" $odir "*) ;;
9483 *) func_append rmdirs " $odir" ;;
85729484 esac
85739485 fi
85749486
85949506
85959507 # Delete the libtool libraries and symlinks.
85969508 for n in $library_names; do
8597 rmfiles="$rmfiles $objdir/$n"
9509 func_append rmfiles " $odir/$n"
85989510 done
8599 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
8600
8601 case "$mode" in
9511 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
9512
9513 case "$opt_mode" in
86029514 clean)
8603 case " $library_names " in
8604 # " " in the beginning catches empty $dlname
9515 case " $library_names " in
86059516 *" $dlname "*) ;;
8606 *) rmfiles="$rmfiles $objdir/$dlname" ;;
9517 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
86079518 esac
8608 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
9519 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
86099520 ;;
86109521 uninstall)
86119522 if test -n "$library_names"; then
86339544 # Add PIC object to the list of files to remove.
86349545 if test -n "$pic_object" &&
86359546 test "$pic_object" != none; then
8636 rmfiles="$rmfiles $dir/$pic_object"
9547 func_append rmfiles " $dir/$pic_object"
86379548 fi
86389549
86399550 # Add non-PIC object to the list of files to remove.
86409551 if test -n "$non_pic_object" &&
86419552 test "$non_pic_object" != none; then
8642 rmfiles="$rmfiles $dir/$non_pic_object"
9553 func_append rmfiles " $dir/$non_pic_object"
86439554 fi
86449555 fi
86459556 ;;
86469557
86479558 *)
8648 if test "$mode" = clean ; then
9559 if test "$opt_mode" = clean ; then
86499560 noexename=$name
86509561 case $file in
86519562 *.exe)
86559566 noexename=$func_stripname_result
86569567 # $file with .exe has already been added to rmfiles,
86579568 # add $file without .exe
8658 rmfiles="$rmfiles $file"
9569 func_append rmfiles " $file"
86599570 ;;
86609571 esac
86619572 # Do a test to see if this is a libtool program.
86649575 func_ltwrapper_scriptname "$file"
86659576 relink_command=
86669577 func_source $func_ltwrapper_scriptname_result
8667 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
9578 func_append rmfiles " $func_ltwrapper_scriptname_result"
86689579 else
86699580 relink_command=
86709581 func_source $dir/$noexename
86729583
86739584 # note $name still contains .exe if it was in $file originally
86749585 # as does the version of $file that was added into $rmfiles
8675 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
9586 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
86769587 if test "$fast_install" = yes && test -n "$relink_command"; then
8677 rmfiles="$rmfiles $objdir/lt-$name"
9588 func_append rmfiles " $odir/lt-$name"
86789589 fi
86799590 if test "X$noexename" != "X$name" ; then
8680 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
9591 func_append rmfiles " $odir/lt-${noexename}.c"
86819592 fi
86829593 fi
86839594 fi
86859596 esac
86869597 func_show_eval "$RM $rmfiles" 'exit_status=1'
86879598 done
8688 objdir="$origobjdir"
86899599
86909600 # Try to remove the ${objdir}s in the directories where we deleted files
86919601 for dir in $rmdirs; do
86979607 exit $exit_status
86989608 }
86999609
8700 { test "$mode" = uninstall || test "$mode" = clean; } &&
9610 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
87019611 func_mode_uninstall ${1+"$@"}
87029612
8703 test -z "$mode" && {
9613 test -z "$opt_mode" && {
87049614 help="$generic_help"
87059615 func_fatal_help "you must specify a MODE"
87069616 }
87079617
87089618 test -z "$exec_cmd" && \
8709 func_fatal_help "invalid operation mode \`$mode'"
9619 func_fatal_help "invalid operation mode \`$opt_mode'"
87109620
87119621 if test -n "$exec_cmd"; then
87129622 eval exec "$exec_cmd"
0 ## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*-
1 ## Copyright (C) 2001 Eazel, Inc.
2 ## Author: Maciej Stachowiak <mjs@noisehavoc.org>
3 ## Kenneth Christiansen <kenneth@gnu.org>
4 ##
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2 of the License, or
8 ## (at your option) any later version.
9 ##
10 ## This program is distributed in the hope that it will be useful, but
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ## General Public License for more details.
14 ##
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 ##
19 ## As a special exception to the GNU General Public License, if you
20 ## distribute this file as part of a program that contains a
21 ## configuration script generated by Autoconf, you may include it under
22 ## the same distribution terms that you use for the rest of that program.
23
24 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
25 # serial 42 IT_PROG_INTLTOOL
26 AC_DEFUN([IT_PROG_INTLTOOL], [
27 AC_PREREQ([2.50])dnl
28 AC_REQUIRE([AM_NLS])dnl
29
30 case "$am__api_version" in
31 1.[01234])
32 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
33 ;;
34 *)
35 ;;
36 esac
37
38 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
39 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
40 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
41 if test -n "$1"; then
42 AC_MSG_CHECKING([for intltool >= $1])
43 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
44 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
45 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
46 fi
47
48 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
49 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
50 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
51 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
52 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
53 fi
54
55 if test -z "$AM_DEFAULT_VERBOSITY"; then
56 AM_DEFAULT_VERBOSITY=1
57 fi
58 AC_SUBST([AM_DEFAULT_VERBOSITY])
59
60 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
61 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
62 INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
63 AC_SUBST(INTLTOOL_V_MERGE)
64 AC_SUBST(INTLTOOL__v_MERGE_)
65 AC_SUBST(INTLTOOL__v_MERGE_0)
66
67 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
68 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
69 intltool__v_merge_options_0='-q'
70 AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
71 AC_SUBST(intltool__v_merge_options_)
72 AC_SUBST(intltool__v_merge_options_0)
73
74 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
75 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
76 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
77 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
78 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
79 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
80 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
81 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
82 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
83 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
84 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
85 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
86 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
87 else
88 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
89 fi
90 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
91 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
92 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
93 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
94 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
95 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
96 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
97
98 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
99 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
100 _IT_SUBST(INTLTOOL_KEYS_RULE)
101 _IT_SUBST(INTLTOOL_PROP_RULE)
102 _IT_SUBST(INTLTOOL_OAF_RULE)
103 _IT_SUBST(INTLTOOL_PONG_RULE)
104 _IT_SUBST(INTLTOOL_SERVER_RULE)
105 _IT_SUBST(INTLTOOL_SHEET_RULE)
106 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
107 _IT_SUBST(INTLTOOL_UI_RULE)
108 _IT_SUBST(INTLTOOL_XAM_RULE)
109 _IT_SUBST(INTLTOOL_KBD_RULE)
110 _IT_SUBST(INTLTOOL_XML_RULE)
111 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
112 _IT_SUBST(INTLTOOL_CAVES_RULE)
113 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
114 _IT_SUBST(INTLTOOL_THEME_RULE)
115 _IT_SUBST(INTLTOOL_SERVICE_RULE)
116 _IT_SUBST(INTLTOOL_POLICY_RULE)
117
118 # Check the gettext tools to make sure they are GNU
119 AC_PATH_PROG(XGETTEXT, xgettext)
120 AC_PATH_PROG(MSGMERGE, msgmerge)
121 AC_PATH_PROG(MSGFMT, msgfmt)
122 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
123 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
124 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
125 fi
126 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
127 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
128 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
129 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
130 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
131 fi
132
133 AC_PATH_PROG(INTLTOOL_PERL, perl)
134 if test -z "$INTLTOOL_PERL"; then
135 AC_MSG_ERROR([perl not found])
136 fi
137 AC_MSG_CHECKING([for perl >= 5.8.1])
138 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
139 if test $? -ne 0; then
140 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
141 else
142 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
143 AC_MSG_RESULT([$IT_PERL_VERSION])
144 fi
145 if test "x$2" != "xno-xml"; then
146 AC_MSG_CHECKING([for XML::Parser])
147 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
148 AC_MSG_RESULT([ok])
149 else
150 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
151 fi
152 fi
153
154 # Substitute ALL_LINGUAS so we can use it in po/Makefile
155 AC_SUBST(ALL_LINGUAS)
156
157 # Set DATADIRNAME correctly if it is not set yet
158 # (copied from glib-gettext.m4)
159 if test -z "$DATADIRNAME"; then
160 AC_LINK_IFELSE(
161 [AC_LANG_PROGRAM([[]],
162 [[extern int _nl_msg_cat_cntr;
163 return _nl_msg_cat_cntr]])],
164 [DATADIRNAME=share],
165 [case $host in
166 *-*-solaris*)
167 dnl On Solaris, if bind_textdomain_codeset is in libc,
168 dnl GNU format message catalog is always supported,
169 dnl since both are added to the libc all together.
170 dnl Hence, we'd like to go with DATADIRNAME=share
171 dnl in this case.
172 AC_CHECK_FUNC(bind_textdomain_codeset,
173 [DATADIRNAME=share], [DATADIRNAME=lib])
174 ;;
175 *)
176 [DATADIRNAME=lib]
177 ;;
178 esac])
179 fi
180 AC_SUBST(DATADIRNAME)
181
182 IT_PO_SUBDIR([po])
183
184 ])
185
186
187 # IT_PO_SUBDIR(DIRNAME)
188 # ---------------------
189 # All po subdirs have to be declared with this macro; the subdir "po" is
190 # declared by IT_PROG_INTLTOOL.
191 #
192 AC_DEFUN([IT_PO_SUBDIR],
193 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
194 dnl
195 dnl The following CONFIG_COMMANDS should be executed at the very end
196 dnl of config.status.
197 AC_CONFIG_COMMANDS_PRE([
198 AC_CONFIG_COMMANDS([$1/stamp-it], [
199 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
200 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
201 fi
202 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
203 >"$1/stamp-it.tmp"
204 [sed '/^#/d
205 s/^[[].*] *//
206 /^[ ]*$/d
207 '"s|^| $ac_top_srcdir/|" \
208 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
209 ]
210 [sed '/^POTFILES =/,/[^\\]$/ {
211 /^POTFILES =/!d
212 r $1/POTFILES
213 }
214 ' "$1/Makefile.in" >"$1/Makefile"]
215 rm -f "$1/Makefile.tmp"
216 mv "$1/stamp-it.tmp" "$1/stamp-it"
217 ])
218 ])dnl
219 ])
220
221 # _IT_SUBST(VARIABLE)
222 # -------------------
223 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
224 #
225 AC_DEFUN([_IT_SUBST],
226 [
227 AC_SUBST([$1])
228 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
229 ]
230 )
231
232 # deprecated macros
233 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
234 # A hint is needed for aclocal from Automake <= 1.9.4:
235 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
236
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
3 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
4 # Foundation, Inc.
5 # Written by Gordon Matzigkeit, 1996
6 #
7 # This file is free software; the Free Software Foundation gives
8 # unlimited permission to copy and/or distribute it, with or without
9 # modifications, as long as this notice is preserved.
10
11 m4_define([_LT_COPYING], [dnl
12 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14 # Foundation, Inc.
15 # Written by Gordon Matzigkeit, 1996
16 #
17 # This file is part of GNU Libtool.
18 #
19 # GNU Libtool is free software; you can redistribute it and/or
20 # modify it under the terms of the GNU General Public License as
21 # published by the Free Software Foundation; either version 2 of
22 # the License, or (at your option) any later version.
23 #
24 # As a special exception to the GNU General Public License,
25 # if you distribute this file as part of a program or library that
26 # is built using GNU Libtool, you may include this file under the
27 # same distribution terms that you use for the rest of that program.
28 #
29 # GNU Libtool is distributed in the hope that it will be useful,
30 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 # GNU General Public License for more details.
33 #
34 # You should have received a copy of the GNU General Public License
35 # along with GNU Libtool; see the file COPYING. If not, a copy
36 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37 # obtained by writing to the Free Software Foundation, Inc.,
38 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
39 ])
40
41 # serial 57 LT_INIT
42
43
44 # LT_PREREQ(VERSION)
45 # ------------------
46 # Complain and exit if this libtool version is less that VERSION.
47 m4_defun([LT_PREREQ],
48 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
49 [m4_default([$3],
50 [m4_fatal([Libtool version $1 or higher is required],
51 63)])],
52 [$2])])
53
54
55 # _LT_CHECK_BUILDDIR
56 # ------------------
57 # Complain if the absolute build directory name contains unusual characters
58 m4_defun([_LT_CHECK_BUILDDIR],
59 [case `pwd` in
60 *\ * | *\ *)
61 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
62 esac
63 ])
64
65
66 # LT_INIT([OPTIONS])
67 # ------------------
68 AC_DEFUN([LT_INIT],
69 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
70 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
71 AC_BEFORE([$0], [LT_LANG])dnl
72 AC_BEFORE([$0], [LT_OUTPUT])dnl
73 AC_BEFORE([$0], [LTDL_INIT])dnl
74 m4_require([_LT_CHECK_BUILDDIR])dnl
75
76 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
77 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
78 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
79 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
80 dnl unless we require an AC_DEFUNed macro:
81 AC_REQUIRE([LTOPTIONS_VERSION])dnl
82 AC_REQUIRE([LTSUGAR_VERSION])dnl
83 AC_REQUIRE([LTVERSION_VERSION])dnl
84 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
85 m4_require([_LT_PROG_LTMAIN])dnl
86
87 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
88
89 dnl Parse OPTIONS
90 _LT_SET_OPTIONS([$0], [$1])
91
92 # This can be used to rebuild libtool when needed
93 LIBTOOL_DEPS="$ltmain"
94
95 # Always use our own libtool.
96 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
97 AC_SUBST(LIBTOOL)dnl
98
99 _LT_SETUP
100
101 # Only expand once:
102 m4_define([LT_INIT])
103 ])# LT_INIT
104
105 # Old names:
106 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
107 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
108 dnl aclocal-1.4 backwards compatibility:
109 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
110 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
111
112
113 # _LT_CC_BASENAME(CC)
114 # -------------------
115 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
116 m4_defun([_LT_CC_BASENAME],
117 [for cc_temp in $1""; do
118 case $cc_temp in
119 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
120 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
121 \-*) ;;
122 *) break;;
123 esac
124 done
125 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
126 ])
127
128
129 # _LT_FILEUTILS_DEFAULTS
130 # ----------------------
131 # It is okay to use these file commands and assume they have been set
132 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
133 m4_defun([_LT_FILEUTILS_DEFAULTS],
134 [: ${CP="cp -f"}
135 : ${MV="mv -f"}
136 : ${RM="rm -f"}
137 ])# _LT_FILEUTILS_DEFAULTS
138
139
140 # _LT_SETUP
141 # ---------
142 m4_defun([_LT_SETUP],
143 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
144 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
145 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
146 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
147
148 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
149 dnl
150 _LT_DECL([], [host_alias], [0], [The host system])dnl
151 _LT_DECL([], [host], [0])dnl
152 _LT_DECL([], [host_os], [0])dnl
153 dnl
154 _LT_DECL([], [build_alias], [0], [The build system])dnl
155 _LT_DECL([], [build], [0])dnl
156 _LT_DECL([], [build_os], [0])dnl
157 dnl
158 AC_REQUIRE([AC_PROG_CC])dnl
159 AC_REQUIRE([LT_PATH_LD])dnl
160 AC_REQUIRE([LT_PATH_NM])dnl
161 dnl
162 AC_REQUIRE([AC_PROG_LN_S])dnl
163 test -z "$LN_S" && LN_S="ln -s"
164 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
165 dnl
166 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
167 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
168 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
169 dnl
170 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
171 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
172 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
173 m4_require([_LT_CMD_RELOAD])dnl
174 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
175 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
176 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
177 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
178 m4_require([_LT_WITH_SYSROOT])dnl
179
180 _LT_CONFIG_LIBTOOL_INIT([
181 # See if we are running on zsh, and set the options which allow our
182 # commands through without removal of \ escapes INIT.
183 if test -n "\${ZSH_VERSION+set}" ; then
184 setopt NO_GLOB_SUBST
185 fi
186 ])
187 if test -n "${ZSH_VERSION+set}" ; then
188 setopt NO_GLOB_SUBST
189 fi
190
191 _LT_CHECK_OBJDIR
192
193 m4_require([_LT_TAG_COMPILER])dnl
194
195 case $host_os in
196 aix3*)
197 # AIX sometimes has problems with the GCC collect2 program. For some
198 # reason, if we set the COLLECT_NAMES environment variable, the problems
199 # vanish in a puff of smoke.
200 if test "X${COLLECT_NAMES+set}" != Xset; then
201 COLLECT_NAMES=
202 export COLLECT_NAMES
203 fi
204 ;;
205 esac
206
207 # Global variables:
208 ofile=libtool
209 can_build_shared=yes
210
211 # All known linkers require a `.a' archive for static linking (except MSVC,
212 # which needs '.lib').
213 libext=a
214
215 with_gnu_ld="$lt_cv_prog_gnu_ld"
216
217 old_CC="$CC"
218 old_CFLAGS="$CFLAGS"
219
220 # Set sane defaults for various variables
221 test -z "$CC" && CC=cc
222 test -z "$LTCC" && LTCC=$CC
223 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
224 test -z "$LD" && LD=ld
225 test -z "$ac_objext" && ac_objext=o
226
227 _LT_CC_BASENAME([$compiler])
228
229 # Only perform the check for file, if the check method requires it
230 test -z "$MAGIC_CMD" && MAGIC_CMD=file
231 case $deplibs_check_method in
232 file_magic*)
233 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
234 _LT_PATH_MAGIC
235 fi
236 ;;
237 esac
238
239 # Use C for the default configuration in the libtool script
240 LT_SUPPORTED_TAG([CC])
241 _LT_LANG_C_CONFIG
242 _LT_LANG_DEFAULT_CONFIG
243 _LT_CONFIG_COMMANDS
244 ])# _LT_SETUP
245
246
247 # _LT_PREPARE_SED_QUOTE_VARS
248 # --------------------------
249 # Define a few sed substitution that help us do robust quoting.
250 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
251 [# Backslashify metacharacters that are still active within
252 # double-quoted strings.
253 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
254
255 # Same as above, but do not quote variable references.
256 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
257
258 # Sed substitution to delay expansion of an escaped shell variable in a
259 # double_quote_subst'ed string.
260 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
261
262 # Sed substitution to delay expansion of an escaped single quote.
263 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
264
265 # Sed substitution to avoid accidental globbing in evaled expressions
266 no_glob_subst='s/\*/\\\*/g'
267 ])
268
269 # _LT_PROG_LTMAIN
270 # ---------------
271 # Note that this code is called both from `configure', and `config.status'
272 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
273 # `config.status' has no value for ac_aux_dir unless we are using Automake,
274 # so we pass a copy along to make sure it has a sensible value anyway.
275 m4_defun([_LT_PROG_LTMAIN],
276 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
277 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
278 ltmain="$ac_aux_dir/ltmain.sh"
279 ])# _LT_PROG_LTMAIN
280
281
282 ## ------------------------------------- ##
283 ## Accumulate code for creating libtool. ##
284 ## ------------------------------------- ##
285
286 # So that we can recreate a full libtool script including additional
287 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
288 # in macros and then make a single call at the end using the `libtool'
289 # label.
290
291
292 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
293 # ----------------------------------------
294 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
295 m4_define([_LT_CONFIG_LIBTOOL_INIT],
296 [m4_ifval([$1],
297 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
298 [$1
299 ])])])
300
301 # Initialize.
302 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
303
304
305 # _LT_CONFIG_LIBTOOL([COMMANDS])
306 # ------------------------------
307 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
308 m4_define([_LT_CONFIG_LIBTOOL],
309 [m4_ifval([$1],
310 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
311 [$1
312 ])])])
313
314 # Initialize.
315 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
316
317
318 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
319 # -----------------------------------------------------
320 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
321 [_LT_CONFIG_LIBTOOL([$1])
322 _LT_CONFIG_LIBTOOL_INIT([$2])
323 ])
324
325
326 # _LT_FORMAT_COMMENT([COMMENT])
327 # -----------------------------
328 # Add leading comment marks to the start of each line, and a trailing
329 # full-stop to the whole comment if one is not present already.
330 m4_define([_LT_FORMAT_COMMENT],
331 [m4_ifval([$1], [
332 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
333 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
334 )])
335
336
337
338 ## ------------------------ ##
339 ## FIXME: Eliminate VARNAME ##
340 ## ------------------------ ##
341
342
343 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
344 # -------------------------------------------------------------------
345 # CONFIGNAME is the name given to the value in the libtool script.
346 # VARNAME is the (base) name used in the configure script.
347 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
348 # VARNAME. Any other value will be used directly.
349 m4_define([_LT_DECL],
350 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
351 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
352 [m4_ifval([$1], [$1], [$2])])
353 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
354 m4_ifval([$4],
355 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
356 lt_dict_add_subkey([lt_decl_dict], [$2],
357 [tagged?], [m4_ifval([$5], [yes], [no])])])
358 ])
359
360
361 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
362 # --------------------------------------------------------
363 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
364
365
366 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
367 # ------------------------------------------------
368 m4_define([lt_decl_tag_varnames],
369 [_lt_decl_filter([tagged?], [yes], $@)])
370
371
372 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
373 # ---------------------------------------------------------
374 m4_define([_lt_decl_filter],
375 [m4_case([$#],
376 [0], [m4_fatal([$0: too few arguments: $#])],
377 [1], [m4_fatal([$0: too few arguments: $#: $1])],
378 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
379 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
380 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
381 ])
382
383
384 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
385 # --------------------------------------------------
386 m4_define([lt_decl_quote_varnames],
387 [_lt_decl_filter([value], [1], $@)])
388
389
390 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
391 # ---------------------------------------------------
392 m4_define([lt_decl_dquote_varnames],
393 [_lt_decl_filter([value], [2], $@)])
394
395
396 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
397 # ---------------------------------------------------
398 m4_define([lt_decl_varnames_tagged],
399 [m4_assert([$# <= 2])dnl
400 _$0(m4_quote(m4_default([$1], [[, ]])),
401 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
402 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
403 m4_define([_lt_decl_varnames_tagged],
404 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
405
406
407 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
408 # ------------------------------------------------
409 m4_define([lt_decl_all_varnames],
410 [_$0(m4_quote(m4_default([$1], [[, ]])),
411 m4_if([$2], [],
412 m4_quote(lt_decl_varnames),
413 m4_quote(m4_shift($@))))[]dnl
414 ])
415 m4_define([_lt_decl_all_varnames],
416 [lt_join($@, lt_decl_varnames_tagged([$1],
417 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
418 ])
419
420
421 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
422 # ------------------------------------
423 # Quote a variable value, and forward it to `config.status' so that its
424 # declaration there will have the same value as in `configure'. VARNAME
425 # must have a single quote delimited value for this to work.
426 m4_define([_LT_CONFIG_STATUS_DECLARE],
427 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
428
429
430 # _LT_CONFIG_STATUS_DECLARATIONS
431 # ------------------------------
432 # We delimit libtool config variables with single quotes, so when
433 # we write them to config.status, we have to be sure to quote all
434 # embedded single quotes properly. In configure, this macro expands
435 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
436 #
437 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
438 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
439 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
440 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
441
442
443 # _LT_LIBTOOL_TAGS
444 # ----------------
445 # Output comment and list of tags supported by the script
446 m4_defun([_LT_LIBTOOL_TAGS],
447 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
448 available_tags="_LT_TAGS"dnl
449 ])
450
451
452 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
453 # -----------------------------------
454 # Extract the dictionary values for VARNAME (optionally with TAG) and
455 # expand to a commented shell variable setting:
456 #
457 # # Some comment about what VAR is for.
458 # visible_name=$lt_internal_name
459 m4_define([_LT_LIBTOOL_DECLARE],
460 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
461 [description])))[]dnl
462 m4_pushdef([_libtool_name],
463 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
464 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
465 [0], [_libtool_name=[$]$1],
466 [1], [_libtool_name=$lt_[]$1],
467 [2], [_libtool_name=$lt_[]$1],
468 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
469 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
470 ])
471
472
473 # _LT_LIBTOOL_CONFIG_VARS
474 # -----------------------
475 # Produce commented declarations of non-tagged libtool config variables
476 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
477 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
478 # section) are produced by _LT_LIBTOOL_TAG_VARS.
479 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
480 [m4_foreach([_lt_var],
481 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
482 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
483
484
485 # _LT_LIBTOOL_TAG_VARS(TAG)
486 # -------------------------
487 m4_define([_LT_LIBTOOL_TAG_VARS],
488 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
489 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
490
491
492 # _LT_TAGVAR(VARNAME, [TAGNAME])
493 # ------------------------------
494 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
495
496
497 # _LT_CONFIG_COMMANDS
498 # -------------------
499 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
500 # variables for single and double quote escaping we saved from calls
501 # to _LT_DECL, we can put quote escaped variables declarations
502 # into `config.status', and then the shell code to quote escape them in
503 # for loops in `config.status'. Finally, any additional code accumulated
504 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
505 m4_defun([_LT_CONFIG_COMMANDS],
506 [AC_PROVIDE_IFELSE([LT_OUTPUT],
507 dnl If the libtool generation code has been placed in $CONFIG_LT,
508 dnl instead of duplicating it all over again into config.status,
509 dnl then we will have config.status run $CONFIG_LT later, so it
510 dnl needs to know what name is stored there:
511 [AC_CONFIG_COMMANDS([libtool],
512 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
513 dnl If the libtool generation code is destined for config.status,
514 dnl expand the accumulated commands and init code now:
515 [AC_CONFIG_COMMANDS([libtool],
516 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
517 ])#_LT_CONFIG_COMMANDS
518
519
520 # Initialize.
521 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
522 [
523
524 # The HP-UX ksh and POSIX shell print the target directory to stdout
525 # if CDPATH is set.
526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
527
528 sed_quote_subst='$sed_quote_subst'
529 double_quote_subst='$double_quote_subst'
530 delay_variable_subst='$delay_variable_subst'
531 _LT_CONFIG_STATUS_DECLARATIONS
532 LTCC='$LTCC'
533 LTCFLAGS='$LTCFLAGS'
534 compiler='$compiler_DEFAULT'
535
536 # A function that is used when there is no print builtin or printf.
537 func_fallback_echo ()
538 {
539 eval 'cat <<_LTECHO_EOF
540 \$[]1
541 _LTECHO_EOF'
542 }
543
544 # Quote evaled strings.
545 for var in lt_decl_all_varnames([[ \
546 ]], lt_decl_quote_varnames); do
547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
548 *[[\\\\\\\`\\"\\\$]]*)
549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
550 ;;
551 *)
552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
553 ;;
554 esac
555 done
556
557 # Double-quote double-evaled strings.
558 for var in lt_decl_all_varnames([[ \
559 ]], lt_decl_dquote_varnames); do
560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
561 *[[\\\\\\\`\\"\\\$]]*)
562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
563 ;;
564 *)
565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
566 ;;
567 esac
568 done
569
570 _LT_OUTPUT_LIBTOOL_INIT
571 ])
572
573 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
574 # ------------------------------------
575 # Generate a child script FILE with all initialization necessary to
576 # reuse the environment learned by the parent script, and make the
577 # file executable. If COMMENT is supplied, it is inserted after the
578 # `#!' sequence but before initialization text begins. After this
579 # macro, additional text can be appended to FILE to form the body of
580 # the child script. The macro ends with non-zero status if the
581 # file could not be fully written (such as if the disk is full).
582 m4_ifdef([AS_INIT_GENERATED],
583 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
584 [m4_defun([_LT_GENERATED_FILE_INIT],
585 [m4_require([AS_PREPARE])]dnl
586 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
587 [lt_write_fail=0
588 cat >$1 <<_ASEOF || lt_write_fail=1
589 #! $SHELL
590 # Generated by $as_me.
591 $2
592 SHELL=\${CONFIG_SHELL-$SHELL}
593 export SHELL
594 _ASEOF
595 cat >>$1 <<\_ASEOF || lt_write_fail=1
596 AS_SHELL_SANITIZE
597 _AS_PREPARE
598 exec AS_MESSAGE_FD>&1
599 _ASEOF
600 test $lt_write_fail = 0 && chmod +x $1[]dnl
601 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
602
603 # LT_OUTPUT
604 # ---------
605 # This macro allows early generation of the libtool script (before
606 # AC_OUTPUT is called), incase it is used in configure for compilation
607 # tests.
608 AC_DEFUN([LT_OUTPUT],
609 [: ${CONFIG_LT=./config.lt}
610 AC_MSG_NOTICE([creating $CONFIG_LT])
611 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
612 [# Run this file to recreate a libtool stub with the current configuration.])
613
614 cat >>"$CONFIG_LT" <<\_LTEOF
615 lt_cl_silent=false
616 exec AS_MESSAGE_LOG_FD>>config.log
617 {
618 echo
619 AS_BOX([Running $as_me.])
620 } >&AS_MESSAGE_LOG_FD
621
622 lt_cl_help="\
623 \`$as_me' creates a local libtool stub from the current configuration,
624 for use in further configure time tests before the real libtool is
625 generated.
626
627 Usage: $[0] [[OPTIONS]]
628
629 -h, --help print this help, then exit
630 -V, --version print version number, then exit
631 -q, --quiet do not print progress messages
632 -d, --debug don't remove temporary files
633
634 Report bugs to <bug-libtool@gnu.org>."
635
636 lt_cl_version="\
637 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
638 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
639 configured by $[0], generated by m4_PACKAGE_STRING.
640
641 Copyright (C) 2011 Free Software Foundation, Inc.
642 This config.lt script is free software; the Free Software Foundation
643 gives unlimited permision to copy, distribute and modify it."
644
645 while test $[#] != 0
646 do
647 case $[1] in
648 --version | --v* | -V )
649 echo "$lt_cl_version"; exit 0 ;;
650 --help | --h* | -h )
651 echo "$lt_cl_help"; exit 0 ;;
652 --debug | --d* | -d )
653 debug=: ;;
654 --quiet | --q* | --silent | --s* | -q )
655 lt_cl_silent=: ;;
656
657 -*) AC_MSG_ERROR([unrecognized option: $[1]
658 Try \`$[0] --help' for more information.]) ;;
659
660 *) AC_MSG_ERROR([unrecognized argument: $[1]
661 Try \`$[0] --help' for more information.]) ;;
662 esac
663 shift
664 done
665
666 if $lt_cl_silent; then
667 exec AS_MESSAGE_FD>/dev/null
668 fi
669 _LTEOF
670
671 cat >>"$CONFIG_LT" <<_LTEOF
672 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
673 _LTEOF
674
675 cat >>"$CONFIG_LT" <<\_LTEOF
676 AC_MSG_NOTICE([creating $ofile])
677 _LT_OUTPUT_LIBTOOL_COMMANDS
678 AS_EXIT(0)
679 _LTEOF
680 chmod +x "$CONFIG_LT"
681
682 # configure is writing to config.log, but config.lt does its own redirection,
683 # appending to config.log, which fails on DOS, as config.log is still kept
684 # open by configure. Here we exec the FD to /dev/null, effectively closing
685 # config.log, so it can be properly (re)opened and appended to by config.lt.
686 lt_cl_success=:
687 test "$silent" = yes &&
688 lt_config_lt_args="$lt_config_lt_args --quiet"
689 exec AS_MESSAGE_LOG_FD>/dev/null
690 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
691 exec AS_MESSAGE_LOG_FD>>config.log
692 $lt_cl_success || AS_EXIT(1)
693 ])# LT_OUTPUT
694
695
696 # _LT_CONFIG(TAG)
697 # ---------------
698 # If TAG is the built-in tag, create an initial libtool script with a
699 # default configuration from the untagged config vars. Otherwise add code
700 # to config.status for appending the configuration named by TAG from the
701 # matching tagged config vars.
702 m4_defun([_LT_CONFIG],
703 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
704 _LT_CONFIG_SAVE_COMMANDS([
705 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
706 m4_if(_LT_TAG, [C], [
707 # See if we are running on zsh, and set the options which allow our
708 # commands through without removal of \ escapes.
709 if test -n "${ZSH_VERSION+set}" ; then
710 setopt NO_GLOB_SUBST
711 fi
712
713 cfgfile="${ofile}T"
714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
715 $RM "$cfgfile"
716
717 cat <<_LT_EOF >> "$cfgfile"
718 #! $SHELL
719
720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
724 #
725 _LT_COPYING
726 _LT_LIBTOOL_TAGS
727
728 # ### BEGIN LIBTOOL CONFIG
729 _LT_LIBTOOL_CONFIG_VARS
730 _LT_LIBTOOL_TAG_VARS
731 # ### END LIBTOOL CONFIG
732
733 _LT_EOF
734
735 case $host_os in
736 aix3*)
737 cat <<\_LT_EOF >> "$cfgfile"
738 # AIX sometimes has problems with the GCC collect2 program. For some
739 # reason, if we set the COLLECT_NAMES environment variable, the problems
740 # vanish in a puff of smoke.
741 if test "X${COLLECT_NAMES+set}" != Xset; then
742 COLLECT_NAMES=
743 export COLLECT_NAMES
744 fi
745 _LT_EOF
746 ;;
747 esac
748
749 _LT_PROG_LTMAIN
750
751 # We use sed instead of cat because bash on DJGPP gets confused if
752 # if finds mixed CR/LF and LF-only lines. Since sed operates in
753 # text mode, it properly converts lines to CR/LF. This bash problem
754 # is reportedly fixed, but why not run on old versions too?
755 sed '$q' "$ltmain" >> "$cfgfile" \
756 || (rm -f "$cfgfile"; exit 1)
757
758 _LT_PROG_REPLACE_SHELLFNS
759
760 mv -f "$cfgfile" "$ofile" ||
761 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
762 chmod +x "$ofile"
763 ],
764 [cat <<_LT_EOF >> "$ofile"
765
766 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
767 dnl in a comment (ie after a #).
768 # ### BEGIN LIBTOOL TAG CONFIG: $1
769 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
770 # ### END LIBTOOL TAG CONFIG: $1
771 _LT_EOF
772 ])dnl /m4_if
773 ],
774 [m4_if([$1], [], [
775 PACKAGE='$PACKAGE'
776 VERSION='$VERSION'
777 TIMESTAMP='$TIMESTAMP'
778 RM='$RM'
779 ofile='$ofile'], [])
780 ])dnl /_LT_CONFIG_SAVE_COMMANDS
781 ])# _LT_CONFIG
782
783
784 # LT_SUPPORTED_TAG(TAG)
785 # ---------------------
786 # Trace this macro to discover what tags are supported by the libtool
787 # --tag option, using:
788 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
789 AC_DEFUN([LT_SUPPORTED_TAG], [])
790
791
792 # C support is built-in for now
793 m4_define([_LT_LANG_C_enabled], [])
794 m4_define([_LT_TAGS], [])
795
796
797 # LT_LANG(LANG)
798 # -------------
799 # Enable libtool support for the given language if not already enabled.
800 AC_DEFUN([LT_LANG],
801 [AC_BEFORE([$0], [LT_OUTPUT])dnl
802 m4_case([$1],
803 [C], [_LT_LANG(C)],
804 [C++], [_LT_LANG(CXX)],
805 [Go], [_LT_LANG(GO)],
806 [Java], [_LT_LANG(GCJ)],
807 [Fortran 77], [_LT_LANG(F77)],
808 [Fortran], [_LT_LANG(FC)],
809 [Windows Resource], [_LT_LANG(RC)],
810 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
811 [_LT_LANG($1)],
812 [m4_fatal([$0: unsupported language: "$1"])])])dnl
813 ])# LT_LANG
814
815
816 # _LT_LANG(LANGNAME)
817 # ------------------
818 m4_defun([_LT_LANG],
819 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
820 [LT_SUPPORTED_TAG([$1])dnl
821 m4_append([_LT_TAGS], [$1 ])dnl
822 m4_define([_LT_LANG_]$1[_enabled], [])dnl
823 _LT_LANG_$1_CONFIG($1)])dnl
824 ])# _LT_LANG
825
826
827 m4_ifndef([AC_PROG_GO], [
828 ############################################################
829 # NOTE: This macro has been submitted for inclusion into #
830 # GNU Autoconf as AC_PROG_GO. When it is available in #
831 # a released version of Autoconf we should remove this #
832 # macro and use it instead. #
833 ############################################################
834 m4_defun([AC_PROG_GO],
835 [AC_LANG_PUSH(Go)dnl
836 AC_ARG_VAR([GOC], [Go compiler command])dnl
837 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
838 _AC_ARG_VAR_LDFLAGS()dnl
839 AC_CHECK_TOOL(GOC, gccgo)
840 if test -z "$GOC"; then
841 if test -n "$ac_tool_prefix"; then
842 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
843 fi
844 fi
845 if test -z "$GOC"; then
846 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
847 fi
848 ])#m4_defun
849 ])#m4_ifndef
850
851
852 # _LT_LANG_DEFAULT_CONFIG
853 # -----------------------
854 m4_defun([_LT_LANG_DEFAULT_CONFIG],
855 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
856 [LT_LANG(CXX)],
857 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
858
859 AC_PROVIDE_IFELSE([AC_PROG_F77],
860 [LT_LANG(F77)],
861 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
862
863 AC_PROVIDE_IFELSE([AC_PROG_FC],
864 [LT_LANG(FC)],
865 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
866
867 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
868 dnl pulling things in needlessly.
869 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
870 [LT_LANG(GCJ)],
871 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
872 [LT_LANG(GCJ)],
873 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
874 [LT_LANG(GCJ)],
875 [m4_ifdef([AC_PROG_GCJ],
876 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
877 m4_ifdef([A][M_PROG_GCJ],
878 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
879 m4_ifdef([LT_PROG_GCJ],
880 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
881
882 AC_PROVIDE_IFELSE([AC_PROG_GO],
883 [LT_LANG(GO)],
884 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
885
886 AC_PROVIDE_IFELSE([LT_PROG_RC],
887 [LT_LANG(RC)],
888 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
889 ])# _LT_LANG_DEFAULT_CONFIG
890
891 # Obsolete macros:
892 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
893 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
894 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
895 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
896 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
897 dnl aclocal-1.4 backwards compatibility:
898 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
899 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
900 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
901 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
902 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
903
904
905 # _LT_TAG_COMPILER
906 # ----------------
907 m4_defun([_LT_TAG_COMPILER],
908 [AC_REQUIRE([AC_PROG_CC])dnl
909
910 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
911 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
912 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
913 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
914
915 # If no C compiler was specified, use CC.
916 LTCC=${LTCC-"$CC"}
917
918 # If no C compiler flags were specified, use CFLAGS.
919 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
920
921 # Allow CC to be a program name with arguments.
922 compiler=$CC
923 ])# _LT_TAG_COMPILER
924
925
926 # _LT_COMPILER_BOILERPLATE
927 # ------------------------
928 # Check for compiler boilerplate output or warnings with
929 # the simple compiler test code.
930 m4_defun([_LT_COMPILER_BOILERPLATE],
931 [m4_require([_LT_DECL_SED])dnl
932 ac_outfile=conftest.$ac_objext
933 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
935 _lt_compiler_boilerplate=`cat conftest.err`
936 $RM conftest*
937 ])# _LT_COMPILER_BOILERPLATE
938
939
940 # _LT_LINKER_BOILERPLATE
941 # ----------------------
942 # Check for linker boilerplate output or warnings with
943 # the simple link test code.
944 m4_defun([_LT_LINKER_BOILERPLATE],
945 [m4_require([_LT_DECL_SED])dnl
946 ac_outfile=conftest.$ac_objext
947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
949 _lt_linker_boilerplate=`cat conftest.err`
950 $RM -r conftest*
951 ])# _LT_LINKER_BOILERPLATE
952
953 # _LT_REQUIRED_DARWIN_CHECKS
954 # -------------------------
955 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
956 case $host_os in
957 rhapsody* | darwin*)
958 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
959 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
960 AC_CHECK_TOOL([LIPO], [lipo], [:])
961 AC_CHECK_TOOL([OTOOL], [otool], [:])
962 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
963 _LT_DECL([], [DSYMUTIL], [1],
964 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
965 _LT_DECL([], [NMEDIT], [1],
966 [Tool to change global to local symbols on Mac OS X])
967 _LT_DECL([], [LIPO], [1],
968 [Tool to manipulate fat objects and archives on Mac OS X])
969 _LT_DECL([], [OTOOL], [1],
970 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
971 _LT_DECL([], [OTOOL64], [1],
972 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
973
974 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
975 [lt_cv_apple_cc_single_mod=no
976 if test -z "${LT_MULTI_MODULE}"; then
977 # By default we will add the -single_module flag. You can override
978 # by either setting the environment variable LT_MULTI_MODULE
979 # non-empty at configure time, or by adding -multi_module to the
980 # link flags.
981 rm -rf libconftest.dylib*
982 echo "int foo(void){return 1;}" > conftest.c
983 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
984 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
985 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
986 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
987 _lt_result=$?
988 # If there is a non-empty error log, and "single_module"
989 # appears in it, assume the flag caused a linker warning
990 if test -s conftest.err && $GREP single_module conftest.err; then
991 cat conftest.err >&AS_MESSAGE_LOG_FD
992 # Otherwise, if the output was created with a 0 exit code from
993 # the compiler, it worked.
994 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
995 lt_cv_apple_cc_single_mod=yes
996 else
997 cat conftest.err >&AS_MESSAGE_LOG_FD
998 fi
999 rm -rf libconftest.dylib*
1000 rm -f conftest.*
1001 fi])
1002
1003 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1004 [lt_cv_ld_exported_symbols_list],
1005 [lt_cv_ld_exported_symbols_list=no
1006 save_LDFLAGS=$LDFLAGS
1007 echo "_main" > conftest.sym
1008 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1009 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1010 [lt_cv_ld_exported_symbols_list=yes],
1011 [lt_cv_ld_exported_symbols_list=no])
1012 LDFLAGS="$save_LDFLAGS"
1013 ])
1014
1015 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1016 [lt_cv_ld_force_load=no
1017 cat > conftest.c << _LT_EOF
1018 int forced_loaded() { return 2;}
1019 _LT_EOF
1020 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1021 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1022 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1023 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1024 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1025 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1026 cat > conftest.c << _LT_EOF
1027 int main() { return 0;}
1028 _LT_EOF
1029 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1030 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1031 _lt_result=$?
1032 if test -s conftest.err && $GREP force_load conftest.err; then
1033 cat conftest.err >&AS_MESSAGE_LOG_FD
1034 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1035 lt_cv_ld_force_load=yes
1036 else
1037 cat conftest.err >&AS_MESSAGE_LOG_FD
1038 fi
1039 rm -f conftest.err libconftest.a conftest conftest.c
1040 rm -rf conftest.dSYM
1041 ])
1042 case $host_os in
1043 rhapsody* | darwin1.[[012]])
1044 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1045 darwin1.*)
1046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1047 darwin*) # darwin 5.x on
1048 # if running on 10.5 or later, the deployment target defaults
1049 # to the OS version, if on x86, and 10.4, the deployment
1050 # target defaults to 10.4. Don't you love it?
1051 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1052 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1053 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054 10.[[012]]*)
1055 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1056 10.*)
1057 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1058 esac
1059 ;;
1060 esac
1061 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1062 _lt_dar_single_mod='$single_module'
1063 fi
1064 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1065 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1066 else
1067 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1068 fi
1069 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1070 _lt_dsymutil='~$DSYMUTIL $lib || :'
1071 else
1072 _lt_dsymutil=
1073 fi
1074 ;;
1075 esac
1076 ])
1077
1078
1079 # _LT_DARWIN_LINKER_FEATURES([TAG])
1080 # ---------------------------------
1081 # Checks for linker and compiler features on darwin
1082 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1083 [
1084 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1085 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1086 _LT_TAGVAR(hardcode_direct, $1)=no
1087 _LT_TAGVAR(hardcode_automatic, $1)=yes
1088 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1089 if test "$lt_cv_ld_force_load" = "yes"; then
1090 _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\"`'
1091 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1092 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1093 else
1094 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1095 fi
1096 _LT_TAGVAR(link_all_deplibs, $1)=yes
1097 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1098 case $cc_basename in
1099 ifort*) _lt_dar_can_shared=yes ;;
1100 *) _lt_dar_can_shared=$GCC ;;
1101 esac
1102 if test "$_lt_dar_can_shared" = "yes"; then
1103 output_verbose_link_cmd=func_echo_all
1104 _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}"
1105 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1106 _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}"
1107 _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}"
1108 m4_if([$1], [CXX],
1109 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1110 _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}"
1111 _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}"
1112 fi
1113 ],[])
1114 else
1115 _LT_TAGVAR(ld_shlibs, $1)=no
1116 fi
1117 ])
1118
1119 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1120 # ----------------------------------
1121 # Links a minimal program and checks the executable
1122 # for the system default hardcoded library path. In most cases,
1123 # this is /usr/lib:/lib, but when the MPI compilers are used
1124 # the location of the communication and MPI libs are included too.
1125 # If we don't find anything, use the default library path according
1126 # to the aix ld manual.
1127 # Store the results from the different compilers for each TAGNAME.
1128 # Allow to override them for all tags through lt_cv_aix_libpath.
1129 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1130 [m4_require([_LT_DECL_SED])dnl
1131 if test "${lt_cv_aix_libpath+set}" = set; then
1132 aix_libpath=$lt_cv_aix_libpath
1133 else
1134 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1135 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1136 lt_aix_libpath_sed='[
1137 /Import File Strings/,/^$/ {
1138 /^0/ {
1139 s/^0 *\([^ ]*\) *$/\1/
1140 p
1141 }
1142 }]'
1143 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1144 # Check for a 64-bit object if we didn't find anything.
1145 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1146 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1147 fi],[])
1148 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1149 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1150 fi
1151 ])
1152 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1153 fi
1154 ])# _LT_SYS_MODULE_PATH_AIX
1155
1156
1157 # _LT_SHELL_INIT(ARG)
1158 # -------------------
1159 m4_define([_LT_SHELL_INIT],
1160 [m4_divert_text([M4SH-INIT], [$1
1161 ])])# _LT_SHELL_INIT
1162
1163
1164
1165 # _LT_PROG_ECHO_BACKSLASH
1166 # -----------------------
1167 # Find how we can fake an echo command that does not interpret backslash.
1168 # In particular, with Autoconf 2.60 or later we add some code to the start
1169 # of the generated configure script which will find a shell with a builtin
1170 # printf (which we can use as an echo command).
1171 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1172 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1173 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1174 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1175
1176 AC_MSG_CHECKING([how to print strings])
1177 # Test print first, because it will be a builtin if present.
1178 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1179 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1180 ECHO='print -r --'
1181 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1182 ECHO='printf %s\n'
1183 else
1184 # Use this function as a fallback that always works.
1185 func_fallback_echo ()
1186 {
1187 eval 'cat <<_LTECHO_EOF
1188 $[]1
1189 _LTECHO_EOF'
1190 }
1191 ECHO='func_fallback_echo'
1192 fi
1193
1194 # func_echo_all arg...
1195 # Invoke $ECHO with all args, space-separated.
1196 func_echo_all ()
1197 {
1198 $ECHO "$*"
1199 }
1200
1201 case "$ECHO" in
1202 printf*) AC_MSG_RESULT([printf]) ;;
1203 print*) AC_MSG_RESULT([print -r]) ;;
1204 *) AC_MSG_RESULT([cat]) ;;
1205 esac
1206
1207 m4_ifdef([_AS_DETECT_SUGGESTED],
1208 [_AS_DETECT_SUGGESTED([
1209 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1210 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1211 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1212 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1213 PATH=/empty FPATH=/empty; export PATH FPATH
1214 test "X`printf %s $ECHO`" = "X$ECHO" \
1215 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1216
1217 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1218 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1219 ])# _LT_PROG_ECHO_BACKSLASH
1220
1221
1222 # _LT_WITH_SYSROOT
1223 # ----------------
1224 AC_DEFUN([_LT_WITH_SYSROOT],
1225 [AC_MSG_CHECKING([for sysroot])
1226 AC_ARG_WITH([sysroot],
1227 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1228 (or the compiler's sysroot if not specified).],
1229 [], [with_sysroot=no])
1230
1231 dnl lt_sysroot will always be passed unquoted. We quote it here
1232 dnl in case the user passed a directory name.
1233 lt_sysroot=
1234 case ${with_sysroot} in #(
1235 yes)
1236 if test "$GCC" = yes; then
1237 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1238 fi
1239 ;; #(
1240 /*)
1241 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1242 ;; #(
1243 no|'')
1244 ;; #(
1245 *)
1246 AC_MSG_RESULT([${with_sysroot}])
1247 AC_MSG_ERROR([The sysroot must be an absolute path.])
1248 ;;
1249 esac
1250
1251 AC_MSG_RESULT([${lt_sysroot:-no}])
1252 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1253 [dependent libraries, and in which our libraries should be installed.])])
1254
1255 # _LT_ENABLE_LOCK
1256 # ---------------
1257 m4_defun([_LT_ENABLE_LOCK],
1258 [AC_ARG_ENABLE([libtool-lock],
1259 [AS_HELP_STRING([--disable-libtool-lock],
1260 [avoid locking (might break parallel builds)])])
1261 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1262
1263 # Some flags need to be propagated to the compiler or linker for good
1264 # libtool support.
1265 case $host in
1266 ia64-*-hpux*)
1267 # Find out which ABI we are using.
1268 echo 'int i;' > conftest.$ac_ext
1269 if AC_TRY_EVAL(ac_compile); then
1270 case `/usr/bin/file conftest.$ac_objext` in
1271 *ELF-32*)
1272 HPUX_IA64_MODE="32"
1273 ;;
1274 *ELF-64*)
1275 HPUX_IA64_MODE="64"
1276 ;;
1277 esac
1278 fi
1279 rm -rf conftest*
1280 ;;
1281 *-*-irix6*)
1282 # Find out which ABI we are using.
1283 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1284 if AC_TRY_EVAL(ac_compile); then
1285 if test "$lt_cv_prog_gnu_ld" = yes; then
1286 case `/usr/bin/file conftest.$ac_objext` in
1287 *32-bit*)
1288 LD="${LD-ld} -melf32bsmip"
1289 ;;
1290 *N32*)
1291 LD="${LD-ld} -melf32bmipn32"
1292 ;;
1293 *64-bit*)
1294 LD="${LD-ld} -melf64bmip"
1295 ;;
1296 esac
1297 else
1298 case `/usr/bin/file conftest.$ac_objext` in
1299 *32-bit*)
1300 LD="${LD-ld} -32"
1301 ;;
1302 *N32*)
1303 LD="${LD-ld} -n32"
1304 ;;
1305 *64-bit*)
1306 LD="${LD-ld} -64"
1307 ;;
1308 esac
1309 fi
1310 fi
1311 rm -rf conftest*
1312 ;;
1313
1314 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1315 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1316 # Find out which ABI we are using.
1317 echo 'int i;' > conftest.$ac_ext
1318 if AC_TRY_EVAL(ac_compile); then
1319 case `/usr/bin/file conftest.o` in
1320 *32-bit*)
1321 case $host in
1322 x86_64-*kfreebsd*-gnu)
1323 LD="${LD-ld} -m elf_i386_fbsd"
1324 ;;
1325 x86_64-*linux*)
1326 LD="${LD-ld} -m elf_i386"
1327 ;;
1328 powerpcle-*linux*)
1329 LD="${LD-ld} -m elf32lppclinux"
1330 ;;
1331 powerpc-*linux*)
1332 LD="${LD-ld} -m elf32ppclinux"
1333 ;;
1334 s390x-*linux*)
1335 LD="${LD-ld} -m elf_s390"
1336 ;;
1337 sparc64-*linux*)
1338 LD="${LD-ld} -m elf32_sparc"
1339 ;;
1340 esac
1341 ;;
1342 *64-bit*)
1343 case $host in
1344 x86_64-*kfreebsd*-gnu)
1345 LD="${LD-ld} -m elf_x86_64_fbsd"
1346 ;;
1347 x86_64-*linux*)
1348 LD="${LD-ld} -m elf_x86_64"
1349 ;;
1350 powerpcle-*linux*)
1351 LD="${LD-ld} -m elf64lppc"
1352 ;;
1353 powerpc-*linux*)
1354 LD="${LD-ld} -m elf64ppc"
1355 ;;
1356 s390*-*linux*|s390*-*tpf*)
1357 LD="${LD-ld} -m elf64_s390"
1358 ;;
1359 sparc*-*linux*)
1360 LD="${LD-ld} -m elf64_sparc"
1361 ;;
1362 esac
1363 ;;
1364 esac
1365 fi
1366 rm -rf conftest*
1367 ;;
1368
1369 *-*-sco3.2v5*)
1370 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1371 SAVE_CFLAGS="$CFLAGS"
1372 CFLAGS="$CFLAGS -belf"
1373 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1374 [AC_LANG_PUSH(C)
1375 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1376 AC_LANG_POP])
1377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1379 CFLAGS="$SAVE_CFLAGS"
1380 fi
1381 ;;
1382 *-*solaris*)
1383 # Find out which ABI we are using.
1384 echo 'int i;' > conftest.$ac_ext
1385 if AC_TRY_EVAL(ac_compile); then
1386 case `/usr/bin/file conftest.o` in
1387 *64-bit*)
1388 case $lt_cv_prog_gnu_ld in
1389 yes*)
1390 case $host in
1391 i?86-*-solaris*)
1392 LD="${LD-ld} -m elf_x86_64"
1393 ;;
1394 sparc*-*-solaris*)
1395 LD="${LD-ld} -m elf64_sparc"
1396 ;;
1397 esac
1398 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1399 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1400 LD="${LD-ld}_sol2"
1401 fi
1402 ;;
1403 *)
1404 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1405 LD="${LD-ld} -64"
1406 fi
1407 ;;
1408 esac
1409 ;;
1410 esac
1411 fi
1412 rm -rf conftest*
1413 ;;
1414 esac
1415
1416 need_locks="$enable_libtool_lock"
1417 ])# _LT_ENABLE_LOCK
1418
1419
1420 # _LT_PROG_AR
1421 # -----------
1422 m4_defun([_LT_PROG_AR],
1423 [AC_CHECK_TOOLS(AR, [ar], false)
1424 : ${AR=ar}
1425 : ${AR_FLAGS=cru}
1426 _LT_DECL([], [AR], [1], [The archiver])
1427 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1428
1429 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1430 [lt_cv_ar_at_file=no
1431 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1432 [echo conftest.$ac_objext > conftest.lst
1433 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1434 AC_TRY_EVAL([lt_ar_try])
1435 if test "$ac_status" -eq 0; then
1436 # Ensure the archiver fails upon bogus file names.
1437 rm -f conftest.$ac_objext libconftest.a
1438 AC_TRY_EVAL([lt_ar_try])
1439 if test "$ac_status" -ne 0; then
1440 lt_cv_ar_at_file=@
1441 fi
1442 fi
1443 rm -f conftest.* libconftest.a
1444 ])
1445 ])
1446
1447 if test "x$lt_cv_ar_at_file" = xno; then
1448 archiver_list_spec=
1449 else
1450 archiver_list_spec=$lt_cv_ar_at_file
1451 fi
1452 _LT_DECL([], [archiver_list_spec], [1],
1453 [How to feed a file listing to the archiver])
1454 ])# _LT_PROG_AR
1455
1456
1457 # _LT_CMD_OLD_ARCHIVE
1458 # -------------------
1459 m4_defun([_LT_CMD_OLD_ARCHIVE],
1460 [_LT_PROG_AR
1461
1462 AC_CHECK_TOOL(STRIP, strip, :)
1463 test -z "$STRIP" && STRIP=:
1464 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1465
1466 AC_CHECK_TOOL(RANLIB, ranlib, :)
1467 test -z "$RANLIB" && RANLIB=:
1468 _LT_DECL([], [RANLIB], [1],
1469 [Commands used to install an old-style archive])
1470
1471 # Determine commands to create old-style static archives.
1472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1473 old_postinstall_cmds='chmod 644 $oldlib'
1474 old_postuninstall_cmds=
1475
1476 if test -n "$RANLIB"; then
1477 case $host_os in
1478 openbsd*)
1479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1480 ;;
1481 *)
1482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1483 ;;
1484 esac
1485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1486 fi
1487
1488 case $host_os in
1489 darwin*)
1490 lock_old_archive_extraction=yes ;;
1491 *)
1492 lock_old_archive_extraction=no ;;
1493 esac
1494 _LT_DECL([], [old_postinstall_cmds], [2])
1495 _LT_DECL([], [old_postuninstall_cmds], [2])
1496 _LT_TAGDECL([], [old_archive_cmds], [2],
1497 [Commands used to build an old-style archive])
1498 _LT_DECL([], [lock_old_archive_extraction], [0],
1499 [Whether to use a lock for old archive extraction])
1500 ])# _LT_CMD_OLD_ARCHIVE
1501
1502
1503 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1504 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1505 # ----------------------------------------------------------------
1506 # Check whether the given compiler option works
1507 AC_DEFUN([_LT_COMPILER_OPTION],
1508 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1509 m4_require([_LT_DECL_SED])dnl
1510 AC_CACHE_CHECK([$1], [$2],
1511 [$2=no
1512 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1514 lt_compiler_flag="$3"
1515 # Insert the option either (1) after the last *FLAGS variable, or
1516 # (2) before a word containing "conftest.", or (3) at the end.
1517 # Note that $ac_compile itself does not contain backslashes and begins
1518 # with a dollar sign (not a hyphen), so the echo should work correctly.
1519 # The option is referenced via a variable to avoid confusing sed.
1520 lt_compile=`echo "$ac_compile" | $SED \
1521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1522 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1523 -e 's:$: $lt_compiler_flag:'`
1524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1525 (eval "$lt_compile" 2>conftest.err)
1526 ac_status=$?
1527 cat conftest.err >&AS_MESSAGE_LOG_FD
1528 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1529 if (exit $ac_status) && test -s "$ac_outfile"; then
1530 # The compiler can only warn and ignore the option if not recognized
1531 # So say no if there are warnings other than the usual output.
1532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1535 $2=yes
1536 fi
1537 fi
1538 $RM conftest*
1539 ])
1540
1541 if test x"[$]$2" = xyes; then
1542 m4_if([$5], , :, [$5])
1543 else
1544 m4_if([$6], , :, [$6])
1545 fi
1546 ])# _LT_COMPILER_OPTION
1547
1548 # Old name:
1549 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1550 dnl aclocal-1.4 backwards compatibility:
1551 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1552
1553
1554 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1555 # [ACTION-SUCCESS], [ACTION-FAILURE])
1556 # ----------------------------------------------------
1557 # Check whether the given linker option works
1558 AC_DEFUN([_LT_LINKER_OPTION],
1559 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1560 m4_require([_LT_DECL_SED])dnl
1561 AC_CACHE_CHECK([$1], [$2],
1562 [$2=no
1563 save_LDFLAGS="$LDFLAGS"
1564 LDFLAGS="$LDFLAGS $3"
1565 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1566 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1567 # The linker can only warn and ignore the option if not recognized
1568 # So say no if there are warnings
1569 if test -s conftest.err; then
1570 # Append any errors to the config.log.
1571 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1572 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1573 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1574 if diff conftest.exp conftest.er2 >/dev/null; then
1575 $2=yes
1576 fi
1577 else
1578 $2=yes
1579 fi
1580 fi
1581 $RM -r conftest*
1582 LDFLAGS="$save_LDFLAGS"
1583 ])
1584
1585 if test x"[$]$2" = xyes; then
1586 m4_if([$4], , :, [$4])
1587 else
1588 m4_if([$5], , :, [$5])
1589 fi
1590 ])# _LT_LINKER_OPTION
1591
1592 # Old name:
1593 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1594 dnl aclocal-1.4 backwards compatibility:
1595 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1596
1597
1598 # LT_CMD_MAX_LEN
1599 #---------------
1600 AC_DEFUN([LT_CMD_MAX_LEN],
1601 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1602 # find the maximum length of command line arguments
1603 AC_MSG_CHECKING([the maximum length of command line arguments])
1604 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1605 i=0
1606 teststring="ABCD"
1607
1608 case $build_os in
1609 msdosdjgpp*)
1610 # On DJGPP, this test can blow up pretty badly due to problems in libc
1611 # (any single argument exceeding 2000 bytes causes a buffer overrun
1612 # during glob expansion). Even if it were fixed, the result of this
1613 # check would be larger than it should be.
1614 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1615 ;;
1616
1617 gnu*)
1618 # Under GNU Hurd, this test is not required because there is
1619 # no limit to the length of command line arguments.
1620 # Libtool will interpret -1 as no limit whatsoever
1621 lt_cv_sys_max_cmd_len=-1;
1622 ;;
1623
1624 cygwin* | mingw* | cegcc*)
1625 # On Win9x/ME, this test blows up -- it succeeds, but takes
1626 # about 5 minutes as the teststring grows exponentially.
1627 # Worse, since 9x/ME are not pre-emptively multitasking,
1628 # you end up with a "frozen" computer, even though with patience
1629 # the test eventually succeeds (with a max line length of 256k).
1630 # Instead, let's just punt: use the minimum linelength reported by
1631 # all of the supported platforms: 8192 (on NT/2K/XP).
1632 lt_cv_sys_max_cmd_len=8192;
1633 ;;
1634
1635 mint*)
1636 # On MiNT this can take a long time and run out of memory.
1637 lt_cv_sys_max_cmd_len=8192;
1638 ;;
1639
1640 amigaos*)
1641 # On AmigaOS with pdksh, this test takes hours, literally.
1642 # So we just punt and use a minimum line length of 8192.
1643 lt_cv_sys_max_cmd_len=8192;
1644 ;;
1645
1646 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1647 # This has been around since 386BSD, at least. Likely further.
1648 if test -x /sbin/sysctl; then
1649 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1650 elif test -x /usr/sbin/sysctl; then
1651 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1652 else
1653 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1654 fi
1655 # And add a safety zone
1656 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1658 ;;
1659
1660 interix*)
1661 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1662 lt_cv_sys_max_cmd_len=196608
1663 ;;
1664
1665 os2*)
1666 # The test takes a long time on OS/2.
1667 lt_cv_sys_max_cmd_len=8192
1668 ;;
1669
1670 osf*)
1671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1673 # nice to cause kernel panics so lets avoid the loop below.
1674 # First set a reasonable default.
1675 lt_cv_sys_max_cmd_len=16384
1676 #
1677 if test -x /sbin/sysconfig; then
1678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1679 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1680 esac
1681 fi
1682 ;;
1683 sco3.2v5*)
1684 lt_cv_sys_max_cmd_len=102400
1685 ;;
1686 sysv5* | sco5v6* | sysv4.2uw2*)
1687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1688 if test -n "$kargmax"; then
1689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1690 else
1691 lt_cv_sys_max_cmd_len=32768
1692 fi
1693 ;;
1694 *)
1695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1696 if test -n "$lt_cv_sys_max_cmd_len"; then
1697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1699 else
1700 # Make teststring a little bigger before we do anything with it.
1701 # a 1K string should be a reasonable start.
1702 for i in 1 2 3 4 5 6 7 8 ; do
1703 teststring=$teststring$teststring
1704 done
1705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1706 # If test is not a shell built-in, we'll probably end up computing a
1707 # maximum length that is only half of the actual maximum length, but
1708 # we can't tell.
1709 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1711 test $i != 17 # 1/2 MB should be enough
1712 do
1713 i=`expr $i + 1`
1714 teststring=$teststring$teststring
1715 done
1716 # Only check the string length outside the loop.
1717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1718 teststring=
1719 # Add a significant safety factor because C++ compilers can tack on
1720 # massive amounts of additional arguments before passing them to the
1721 # linker. It appears as though 1/2 is a usable value.
1722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1723 fi
1724 ;;
1725 esac
1726 ])
1727 if test -n $lt_cv_sys_max_cmd_len ; then
1728 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1729 else
1730 AC_MSG_RESULT(none)
1731 fi
1732 max_cmd_len=$lt_cv_sys_max_cmd_len
1733 _LT_DECL([], [max_cmd_len], [0],
1734 [What is the maximum length of a command?])
1735 ])# LT_CMD_MAX_LEN
1736
1737 # Old name:
1738 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1739 dnl aclocal-1.4 backwards compatibility:
1740 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1741
1742
1743 # _LT_HEADER_DLFCN
1744 # ----------------
1745 m4_defun([_LT_HEADER_DLFCN],
1746 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1747 ])# _LT_HEADER_DLFCN
1748
1749
1750 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1751 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1752 # ----------------------------------------------------------------
1753 m4_defun([_LT_TRY_DLOPEN_SELF],
1754 [m4_require([_LT_HEADER_DLFCN])dnl
1755 if test "$cross_compiling" = yes; then :
1756 [$4]
1757 else
1758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1759 lt_status=$lt_dlunknown
1760 cat > conftest.$ac_ext <<_LT_EOF
1761 [#line $LINENO "configure"
1762 #include "confdefs.h"
1763
1764 #if HAVE_DLFCN_H
1765 #include <dlfcn.h>
1766 #endif
1767
1768 #include <stdio.h>
1769
1770 #ifdef RTLD_GLOBAL
1771 # define LT_DLGLOBAL RTLD_GLOBAL
1772 #else
1773 # ifdef DL_GLOBAL
1774 # define LT_DLGLOBAL DL_GLOBAL
1775 # else
1776 # define LT_DLGLOBAL 0
1777 # endif
1778 #endif
1779
1780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1781 find out it does not work in some platform. */
1782 #ifndef LT_DLLAZY_OR_NOW
1783 # ifdef RTLD_LAZY
1784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1785 # else
1786 # ifdef DL_LAZY
1787 # define LT_DLLAZY_OR_NOW DL_LAZY
1788 # else
1789 # ifdef RTLD_NOW
1790 # define LT_DLLAZY_OR_NOW RTLD_NOW
1791 # else
1792 # ifdef DL_NOW
1793 # define LT_DLLAZY_OR_NOW DL_NOW
1794 # else
1795 # define LT_DLLAZY_OR_NOW 0
1796 # endif
1797 # endif
1798 # endif
1799 # endif
1800 #endif
1801
1802 /* When -fvisbility=hidden is used, assume the code has been annotated
1803 correspondingly for the symbols needed. */
1804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1805 int fnord () __attribute__((visibility("default")));
1806 #endif
1807
1808 int fnord () { return 42; }
1809 int main ()
1810 {
1811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1812 int status = $lt_dlunknown;
1813
1814 if (self)
1815 {
1816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1817 else
1818 {
1819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1820 else puts (dlerror ());
1821 }
1822 /* dlclose (self); */
1823 }
1824 else
1825 puts (dlerror ());
1826
1827 return status;
1828 }]
1829 _LT_EOF
1830 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1831 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1832 lt_status=$?
1833 case x$lt_status in
1834 x$lt_dlno_uscore) $1 ;;
1835 x$lt_dlneed_uscore) $2 ;;
1836 x$lt_dlunknown|x*) $3 ;;
1837 esac
1838 else :
1839 # compilation failed
1840 $3
1841 fi
1842 fi
1843 rm -fr conftest*
1844 ])# _LT_TRY_DLOPEN_SELF
1845
1846
1847 # LT_SYS_DLOPEN_SELF
1848 # ------------------
1849 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1850 [m4_require([_LT_HEADER_DLFCN])dnl
1851 if test "x$enable_dlopen" != xyes; then
1852 enable_dlopen=unknown
1853 enable_dlopen_self=unknown
1854 enable_dlopen_self_static=unknown
1855 else
1856 lt_cv_dlopen=no
1857 lt_cv_dlopen_libs=
1858
1859 case $host_os in
1860 beos*)
1861 lt_cv_dlopen="load_add_on"
1862 lt_cv_dlopen_libs=
1863 lt_cv_dlopen_self=yes
1864 ;;
1865
1866 mingw* | pw32* | cegcc*)
1867 lt_cv_dlopen="LoadLibrary"
1868 lt_cv_dlopen_libs=
1869 ;;
1870
1871 cygwin*)
1872 lt_cv_dlopen="dlopen"
1873 lt_cv_dlopen_libs=
1874 ;;
1875
1876 darwin*)
1877 # if libdl is installed we need to link against it
1878 AC_CHECK_LIB([dl], [dlopen],
1879 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1880 lt_cv_dlopen="dyld"
1881 lt_cv_dlopen_libs=
1882 lt_cv_dlopen_self=yes
1883 ])
1884 ;;
1885
1886 *)
1887 AC_CHECK_FUNC([shl_load],
1888 [lt_cv_dlopen="shl_load"],
1889 [AC_CHECK_LIB([dld], [shl_load],
1890 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1891 [AC_CHECK_FUNC([dlopen],
1892 [lt_cv_dlopen="dlopen"],
1893 [AC_CHECK_LIB([dl], [dlopen],
1894 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1895 [AC_CHECK_LIB([svld], [dlopen],
1896 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1897 [AC_CHECK_LIB([dld], [dld_link],
1898 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1899 ])
1900 ])
1901 ])
1902 ])
1903 ])
1904 ;;
1905 esac
1906
1907 if test "x$lt_cv_dlopen" != xno; then
1908 enable_dlopen=yes
1909 else
1910 enable_dlopen=no
1911 fi
1912
1913 case $lt_cv_dlopen in
1914 dlopen)
1915 save_CPPFLAGS="$CPPFLAGS"
1916 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1917
1918 save_LDFLAGS="$LDFLAGS"
1919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1920
1921 save_LIBS="$LIBS"
1922 LIBS="$lt_cv_dlopen_libs $LIBS"
1923
1924 AC_CACHE_CHECK([whether a program can dlopen itself],
1925 lt_cv_dlopen_self, [dnl
1926 _LT_TRY_DLOPEN_SELF(
1927 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1928 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1929 ])
1930
1931 if test "x$lt_cv_dlopen_self" = xyes; then
1932 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1933 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1934 lt_cv_dlopen_self_static, [dnl
1935 _LT_TRY_DLOPEN_SELF(
1936 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1937 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1938 ])
1939 fi
1940
1941 CPPFLAGS="$save_CPPFLAGS"
1942 LDFLAGS="$save_LDFLAGS"
1943 LIBS="$save_LIBS"
1944 ;;
1945 esac
1946
1947 case $lt_cv_dlopen_self in
1948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1949 *) enable_dlopen_self=unknown ;;
1950 esac
1951
1952 case $lt_cv_dlopen_self_static in
1953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1954 *) enable_dlopen_self_static=unknown ;;
1955 esac
1956 fi
1957 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1958 [Whether dlopen is supported])
1959 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1960 [Whether dlopen of programs is supported])
1961 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1962 [Whether dlopen of statically linked programs is supported])
1963 ])# LT_SYS_DLOPEN_SELF
1964
1965 # Old name:
1966 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1967 dnl aclocal-1.4 backwards compatibility:
1968 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1969
1970
1971 # _LT_COMPILER_C_O([TAGNAME])
1972 # ---------------------------
1973 # Check to see if options -c and -o are simultaneously supported by compiler.
1974 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1975 m4_defun([_LT_COMPILER_C_O],
1976 [m4_require([_LT_DECL_SED])dnl
1977 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1978 m4_require([_LT_TAG_COMPILER])dnl
1979 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1980 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1981 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1982 $RM -r conftest 2>/dev/null
1983 mkdir conftest
1984 cd conftest
1985 mkdir out
1986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1987
1988 lt_compiler_flag="-o out/conftest2.$ac_objext"
1989 # Insert the option either (1) after the last *FLAGS variable, or
1990 # (2) before a word containing "conftest.", or (3) at the end.
1991 # Note that $ac_compile itself does not contain backslashes and begins
1992 # with a dollar sign (not a hyphen), so the echo should work correctly.
1993 lt_compile=`echo "$ac_compile" | $SED \
1994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1995 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1996 -e 's:$: $lt_compiler_flag:'`
1997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1998 (eval "$lt_compile" 2>out/conftest.err)
1999 ac_status=$?
2000 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2003 then
2004 # The compiler can only warn and ignore the option if not recognized
2005 # So say no if there are warnings
2006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2009 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2010 fi
2011 fi
2012 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2013 $RM conftest*
2014 # SGI C++ compiler will create directory out/ii_files/ for
2015 # template instantiation
2016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2017 $RM out/* && rmdir out
2018 cd ..
2019 $RM -r conftest
2020 $RM conftest*
2021 ])
2022 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2023 [Does compiler simultaneously support -c and -o options?])
2024 ])# _LT_COMPILER_C_O
2025
2026
2027 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2028 # ----------------------------------
2029 # Check to see if we can do hard links to lock some files if needed
2030 m4_defun([_LT_COMPILER_FILE_LOCKS],
2031 [m4_require([_LT_ENABLE_LOCK])dnl
2032 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2033 _LT_COMPILER_C_O([$1])
2034
2035 hard_links="nottested"
2036 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2037 # do not overwrite the value of need_locks provided by the user
2038 AC_MSG_CHECKING([if we can lock with hard links])
2039 hard_links=yes
2040 $RM conftest*
2041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2042 touch conftest.a
2043 ln conftest.a conftest.b 2>&5 || hard_links=no
2044 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2045 AC_MSG_RESULT([$hard_links])
2046 if test "$hard_links" = no; then
2047 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2048 need_locks=warn
2049 fi
2050 else
2051 need_locks=no
2052 fi
2053 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2054 ])# _LT_COMPILER_FILE_LOCKS
2055
2056
2057 # _LT_CHECK_OBJDIR
2058 # ----------------
2059 m4_defun([_LT_CHECK_OBJDIR],
2060 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2061 [rm -f .libs 2>/dev/null
2062 mkdir .libs 2>/dev/null
2063 if test -d .libs; then
2064 lt_cv_objdir=.libs
2065 else
2066 # MS-DOS does not allow filenames that begin with a dot.
2067 lt_cv_objdir=_libs
2068 fi
2069 rmdir .libs 2>/dev/null])
2070 objdir=$lt_cv_objdir
2071 _LT_DECL([], [objdir], [0],
2072 [The name of the directory that contains temporary libtool files])dnl
2073 m4_pattern_allow([LT_OBJDIR])dnl
2074 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2075 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2076 ])# _LT_CHECK_OBJDIR
2077
2078
2079 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2080 # --------------------------------------
2081 # Check hardcoding attributes.
2082 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2083 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2084 _LT_TAGVAR(hardcode_action, $1)=
2085 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2086 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2087 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2088
2089 # We can hardcode non-existent directories.
2090 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2092 # have to relink, otherwise we might link with an installed library
2093 # when we should be linking with a yet-to-be-installed one
2094 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2095 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2096 # Linking always hardcodes the temporary library directory.
2097 _LT_TAGVAR(hardcode_action, $1)=relink
2098 else
2099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2100 _LT_TAGVAR(hardcode_action, $1)=immediate
2101 fi
2102 else
2103 # We cannot hardcode anything, or else we can only hardcode existing
2104 # directories.
2105 _LT_TAGVAR(hardcode_action, $1)=unsupported
2106 fi
2107 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2108
2109 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2110 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2111 # Fast installation is not supported
2112 enable_fast_install=no
2113 elif test "$shlibpath_overrides_runpath" = yes ||
2114 test "$enable_shared" = no; then
2115 # Fast installation is not necessary
2116 enable_fast_install=needless
2117 fi
2118 _LT_TAGDECL([], [hardcode_action], [0],
2119 [How to hardcode a shared library path into an executable])
2120 ])# _LT_LINKER_HARDCODE_LIBPATH
2121
2122
2123 # _LT_CMD_STRIPLIB
2124 # ----------------
2125 m4_defun([_LT_CMD_STRIPLIB],
2126 [m4_require([_LT_DECL_EGREP])
2127 striplib=
2128 old_striplib=
2129 AC_MSG_CHECKING([whether stripping libraries is possible])
2130 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2132 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2133 AC_MSG_RESULT([yes])
2134 else
2135 # FIXME - insert some real tests, host_os isn't really good enough
2136 case $host_os in
2137 darwin*)
2138 if test -n "$STRIP" ; then
2139 striplib="$STRIP -x"
2140 old_striplib="$STRIP -S"
2141 AC_MSG_RESULT([yes])
2142 else
2143 AC_MSG_RESULT([no])
2144 fi
2145 ;;
2146 *)
2147 AC_MSG_RESULT([no])
2148 ;;
2149 esac
2150 fi
2151 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2152 _LT_DECL([], [striplib], [1])
2153 ])# _LT_CMD_STRIPLIB
2154
2155
2156 # _LT_SYS_DYNAMIC_LINKER([TAG])
2157 # -----------------------------
2158 # PORTME Fill in your ld.so characteristics
2159 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2160 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2161 m4_require([_LT_DECL_EGREP])dnl
2162 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2163 m4_require([_LT_DECL_OBJDUMP])dnl
2164 m4_require([_LT_DECL_SED])dnl
2165 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2166 AC_MSG_CHECKING([dynamic linker characteristics])
2167 m4_if([$1],
2168 [], [
2169 if test "$GCC" = yes; then
2170 case $host_os in
2171 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2172 *) lt_awk_arg="/^libraries:/" ;;
2173 esac
2174 case $host_os in
2175 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2176 *) lt_sed_strip_eq="s,=/,/,g" ;;
2177 esac
2178 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2179 case $lt_search_path_spec in
2180 *\;*)
2181 # if the path contains ";" then we assume it to be the separator
2182 # otherwise default to the standard path separator (i.e. ":") - it is
2183 # assumed that no part of a normal pathname contains ";" but that should
2184 # okay in the real world where ";" in dirpaths is itself problematic.
2185 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2186 ;;
2187 *)
2188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2189 ;;
2190 esac
2191 # Ok, now we have the path, separated by spaces, we can step through it
2192 # and add multilib dir if necessary.
2193 lt_tmp_lt_search_path_spec=
2194 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2195 for lt_sys_path in $lt_search_path_spec; do
2196 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2197 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2198 else
2199 test -d "$lt_sys_path" && \
2200 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2201 fi
2202 done
2203 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2204 BEGIN {RS=" "; FS="/|\n";} {
2205 lt_foo="";
2206 lt_count=0;
2207 for (lt_i = NF; lt_i > 0; lt_i--) {
2208 if ($lt_i != "" && $lt_i != ".") {
2209 if ($lt_i == "..") {
2210 lt_count++;
2211 } else {
2212 if (lt_count == 0) {
2213 lt_foo="/" $lt_i lt_foo;
2214 } else {
2215 lt_count--;
2216 }
2217 }
2218 }
2219 }
2220 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2221 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2222 }'`
2223 # AWK program above erroneously prepends '/' to C:/dos/paths
2224 # for these hosts.
2225 case $host_os in
2226 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2227 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2228 esac
2229 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2230 else
2231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2232 fi])
2233 library_names_spec=
2234 libname_spec='lib$name'
2235 soname_spec=
2236 shrext_cmds=".so"
2237 postinstall_cmds=
2238 postuninstall_cmds=
2239 finish_cmds=
2240 finish_eval=
2241 shlibpath_var=
2242 shlibpath_overrides_runpath=unknown
2243 version_type=none
2244 dynamic_linker="$host_os ld.so"
2245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2246 need_lib_prefix=unknown
2247 hardcode_into_libs=no
2248
2249 # when you set need_version to no, make sure it does not cause -set_version
2250 # flags to be left without arguments
2251 need_version=unknown
2252
2253 case $host_os in
2254 aix3*)
2255 version_type=linux # correct to gnu/linux during the next big refactor
2256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2257 shlibpath_var=LIBPATH
2258
2259 # AIX 3 has no versioning support, so we append a major version to the name.
2260 soname_spec='${libname}${release}${shared_ext}$major'
2261 ;;
2262
2263 aix[[4-9]]*)
2264 version_type=linux # correct to gnu/linux during the next big refactor
2265 need_lib_prefix=no
2266 need_version=no
2267 hardcode_into_libs=yes
2268 if test "$host_cpu" = ia64; then
2269 # AIX 5 supports IA64
2270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2271 shlibpath_var=LD_LIBRARY_PATH
2272 else
2273 # With GCC up to 2.95.x, collect2 would create an import file
2274 # for dependence libraries. The import file would start with
2275 # the line `#! .'. This would cause the generated library to
2276 # depend on `.', always an invalid library. This was fixed in
2277 # development snapshots of GCC prior to 3.0.
2278 case $host_os in
2279 aix4 | aix4.[[01]] | aix4.[[01]].*)
2280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2281 echo ' yes '
2282 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2283 :
2284 else
2285 can_build_shared=no
2286 fi
2287 ;;
2288 esac
2289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2290 # soname into executable. Probably we can add versioning support to
2291 # collect2, so additional links can be useful in future.
2292 if test "$aix_use_runtimelinking" = yes; then
2293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2294 # instead of lib<name>.a to let people know that these are not
2295 # typical AIX shared libraries.
2296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2297 else
2298 # We preserve .a as extension for shared libraries through AIX4.2
2299 # and later when we are not doing run time linking.
2300 library_names_spec='${libname}${release}.a $libname.a'
2301 soname_spec='${libname}${release}${shared_ext}$major'
2302 fi
2303 shlibpath_var=LIBPATH
2304 fi
2305 ;;
2306
2307 amigaos*)
2308 case $host_cpu in
2309 powerpc)
2310 # Since July 2007 AmigaOS4 officially supports .so libraries.
2311 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2313 ;;
2314 m68k)
2315 library_names_spec='$libname.ixlibrary $libname.a'
2316 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2317 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2318 ;;
2319 esac
2320 ;;
2321
2322 beos*)
2323 library_names_spec='${libname}${shared_ext}'
2324 dynamic_linker="$host_os ld.so"
2325 shlibpath_var=LIBRARY_PATH
2326 ;;
2327
2328 bsdi[[45]]*)
2329 version_type=linux # correct to gnu/linux during the next big refactor
2330 need_version=no
2331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2332 soname_spec='${libname}${release}${shared_ext}$major'
2333 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2334 shlibpath_var=LD_LIBRARY_PATH
2335 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2336 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2337 # the default ld.so.conf also contains /usr/contrib/lib and
2338 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2339 # libtool to hard-code these into programs
2340 ;;
2341
2342 cygwin* | mingw* | pw32* | cegcc*)
2343 version_type=windows
2344 shrext_cmds=".dll"
2345 need_version=no
2346 need_lib_prefix=no
2347
2348 case $GCC,$cc_basename in
2349 yes,*)
2350 # gcc
2351 library_names_spec='$libname.dll.a'
2352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2353 postinstall_cmds='base_file=`basename \${file}`~
2354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2355 dldir=$destdir/`dirname \$dlpath`~
2356 test -d \$dldir || mkdir -p \$dldir~
2357 $install_prog $dir/$dlname \$dldir/$dlname~
2358 chmod a+x \$dldir/$dlname~
2359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2361 fi'
2362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2363 dlpath=$dir/\$dldll~
2364 $RM \$dlpath'
2365 shlibpath_overrides_runpath=yes
2366
2367 case $host_os in
2368 cygwin*)
2369 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2370 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2371 m4_if([$1], [],[
2372 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2373 ;;
2374 mingw* | cegcc*)
2375 # MinGW DLLs use traditional 'lib' prefix
2376 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2377 ;;
2378 pw32*)
2379 # pw32 DLLs use 'pw' prefix rather than 'lib'
2380 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2381 ;;
2382 esac
2383 dynamic_linker='Win32 ld.exe'
2384 ;;
2385
2386 *,cl*)
2387 # Native MSVC
2388 libname_spec='$name'
2389 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2390 library_names_spec='${libname}.dll.lib'
2391
2392 case $build_os in
2393 mingw*)
2394 sys_lib_search_path_spec=
2395 lt_save_ifs=$IFS
2396 IFS=';'
2397 for lt_path in $LIB
2398 do
2399 IFS=$lt_save_ifs
2400 # Let DOS variable expansion print the short 8.3 style file name.
2401 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2402 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2403 done
2404 IFS=$lt_save_ifs
2405 # Convert to MSYS style.
2406 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2407 ;;
2408 cygwin*)
2409 # Convert to unix form, then to dos form, then back to unix form
2410 # but this time dos style (no spaces!) so that the unix form looks
2411 # like /cygdrive/c/PROGRA~1:/cygdr...
2412 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2413 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2414 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2415 ;;
2416 *)
2417 sys_lib_search_path_spec="$LIB"
2418 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2419 # It is most probably a Windows format PATH.
2420 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2421 else
2422 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2423 fi
2424 # FIXME: find the short name or the path components, as spaces are
2425 # common. (e.g. "Program Files" -> "PROGRA~1")
2426 ;;
2427 esac
2428
2429 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2430 postinstall_cmds='base_file=`basename \${file}`~
2431 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2432 dldir=$destdir/`dirname \$dlpath`~
2433 test -d \$dldir || mkdir -p \$dldir~
2434 $install_prog $dir/$dlname \$dldir/$dlname'
2435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2436 dlpath=$dir/\$dldll~
2437 $RM \$dlpath'
2438 shlibpath_overrides_runpath=yes
2439 dynamic_linker='Win32 link.exe'
2440 ;;
2441
2442 *)
2443 # Assume MSVC wrapper
2444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2445 dynamic_linker='Win32 ld.exe'
2446 ;;
2447 esac
2448 # FIXME: first we should search . and the directory the executable is in
2449 shlibpath_var=PATH
2450 ;;
2451
2452 darwin* | rhapsody*)
2453 dynamic_linker="$host_os dyld"
2454 version_type=darwin
2455 need_lib_prefix=no
2456 need_version=no
2457 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2458 soname_spec='${libname}${release}${major}$shared_ext'
2459 shlibpath_overrides_runpath=yes
2460 shlibpath_var=DYLD_LIBRARY_PATH
2461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2462 m4_if([$1], [],[
2463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2465 ;;
2466
2467 dgux*)
2468 version_type=linux # correct to gnu/linux during the next big refactor
2469 need_lib_prefix=no
2470 need_version=no
2471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2472 soname_spec='${libname}${release}${shared_ext}$major'
2473 shlibpath_var=LD_LIBRARY_PATH
2474 ;;
2475
2476 freebsd* | dragonfly*)
2477 # DragonFly does not have aout. When/if they implement a new
2478 # versioning mechanism, adjust this.
2479 if test -x /usr/bin/objformat; then
2480 objformat=`/usr/bin/objformat`
2481 else
2482 case $host_os in
2483 freebsd[[23]].*) objformat=aout ;;
2484 *) objformat=elf ;;
2485 esac
2486 fi
2487 version_type=freebsd-$objformat
2488 case $version_type in
2489 freebsd-elf*)
2490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2491 need_version=no
2492 need_lib_prefix=no
2493 ;;
2494 freebsd-*)
2495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2496 need_version=yes
2497 ;;
2498 esac
2499 shlibpath_var=LD_LIBRARY_PATH
2500 case $host_os in
2501 freebsd2.*)
2502 shlibpath_overrides_runpath=yes
2503 ;;
2504 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2505 shlibpath_overrides_runpath=yes
2506 hardcode_into_libs=yes
2507 ;;
2508 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2509 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2510 shlibpath_overrides_runpath=no
2511 hardcode_into_libs=yes
2512 ;;
2513 *) # from 4.6 on, and DragonFly
2514 shlibpath_overrides_runpath=yes
2515 hardcode_into_libs=yes
2516 ;;
2517 esac
2518 ;;
2519
2520 gnu*)
2521 version_type=linux # correct to gnu/linux during the next big refactor
2522 need_lib_prefix=no
2523 need_version=no
2524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2525 soname_spec='${libname}${release}${shared_ext}$major'
2526 shlibpath_var=LD_LIBRARY_PATH
2527 shlibpath_overrides_runpath=no
2528 hardcode_into_libs=yes
2529 ;;
2530
2531 haiku*)
2532 version_type=linux # correct to gnu/linux during the next big refactor
2533 need_lib_prefix=no
2534 need_version=no
2535 dynamic_linker="$host_os runtime_loader"
2536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2537 soname_spec='${libname}${release}${shared_ext}$major'
2538 shlibpath_var=LIBRARY_PATH
2539 shlibpath_overrides_runpath=yes
2540 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2541 hardcode_into_libs=yes
2542 ;;
2543
2544 hpux9* | hpux10* | hpux11*)
2545 # Give a soname corresponding to the major version so that dld.sl refuses to
2546 # link against other versions.
2547 version_type=sunos
2548 need_lib_prefix=no
2549 need_version=no
2550 case $host_cpu in
2551 ia64*)
2552 shrext_cmds='.so'
2553 hardcode_into_libs=yes
2554 dynamic_linker="$host_os dld.so"
2555 shlibpath_var=LD_LIBRARY_PATH
2556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2558 soname_spec='${libname}${release}${shared_ext}$major'
2559 if test "X$HPUX_IA64_MODE" = X32; then
2560 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2561 else
2562 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2563 fi
2564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2565 ;;
2566 hppa*64*)
2567 shrext_cmds='.sl'
2568 hardcode_into_libs=yes
2569 dynamic_linker="$host_os dld.sl"
2570 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2571 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2573 soname_spec='${libname}${release}${shared_ext}$major'
2574 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2576 ;;
2577 *)
2578 shrext_cmds='.sl'
2579 dynamic_linker="$host_os dld.sl"
2580 shlibpath_var=SHLIB_PATH
2581 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2583 soname_spec='${libname}${release}${shared_ext}$major'
2584 ;;
2585 esac
2586 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2587 postinstall_cmds='chmod 555 $lib'
2588 # or fails outright, so override atomically:
2589 install_override_mode=555
2590 ;;
2591
2592 interix[[3-9]]*)
2593 version_type=linux # correct to gnu/linux during the next big refactor
2594 need_lib_prefix=no
2595 need_version=no
2596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2597 soname_spec='${libname}${release}${shared_ext}$major'
2598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2599 shlibpath_var=LD_LIBRARY_PATH
2600 shlibpath_overrides_runpath=no
2601 hardcode_into_libs=yes
2602 ;;
2603
2604 irix5* | irix6* | nonstopux*)
2605 case $host_os in
2606 nonstopux*) version_type=nonstopux ;;
2607 *)
2608 if test "$lt_cv_prog_gnu_ld" = yes; then
2609 version_type=linux # correct to gnu/linux during the next big refactor
2610 else
2611 version_type=irix
2612 fi ;;
2613 esac
2614 need_lib_prefix=no
2615 need_version=no
2616 soname_spec='${libname}${release}${shared_ext}$major'
2617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2618 case $host_os in
2619 irix5* | nonstopux*)
2620 libsuff= shlibsuff=
2621 ;;
2622 *)
2623 case $LD in # libtool.m4 will add one of these switches to LD
2624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2625 libsuff= shlibsuff= libmagic=32-bit;;
2626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2627 libsuff=32 shlibsuff=N32 libmagic=N32;;
2628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2630 *) libsuff= shlibsuff= libmagic=never-match;;
2631 esac
2632 ;;
2633 esac
2634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2635 shlibpath_overrides_runpath=no
2636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2638 hardcode_into_libs=yes
2639 ;;
2640
2641 # No shared lib support for Linux oldld, aout, or coff.
2642 linux*oldld* | linux*aout* | linux*coff*)
2643 dynamic_linker=no
2644 ;;
2645
2646 # This must be glibc/ELF.
2647 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2648 version_type=linux # correct to gnu/linux during the next big refactor
2649 need_lib_prefix=no
2650 need_version=no
2651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2652 soname_spec='${libname}${release}${shared_ext}$major'
2653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2654 shlibpath_var=LD_LIBRARY_PATH
2655 shlibpath_overrides_runpath=no
2656
2657 # Some binutils ld are patched to set DT_RUNPATH
2658 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2659 [lt_cv_shlibpath_overrides_runpath=no
2660 save_LDFLAGS=$LDFLAGS
2661 save_libdir=$libdir
2662 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2663 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2664 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2665 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2666 [lt_cv_shlibpath_overrides_runpath=yes])])
2667 LDFLAGS=$save_LDFLAGS
2668 libdir=$save_libdir
2669 ])
2670 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2671
2672 # This implies no fast_install, which is unacceptable.
2673 # Some rework will be needed to allow for fast_install
2674 # before this can be enabled.
2675 hardcode_into_libs=yes
2676
2677 # Add ABI-specific directories to the system library path.
2678 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2679
2680 # Append ld.so.conf contents to the search path
2681 if test -f /etc/ld.so.conf; then
2682 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' ' '`
2683 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2684
2685 fi
2686
2687 # We used to test for /lib/ld.so.1 and disable shared libraries on
2688 # powerpc, because MkLinux only supported shared libraries with the
2689 # GNU dynamic linker. Since this was broken with cross compilers,
2690 # most powerpc-linux boxes support dynamic linking these days and
2691 # people can always --disable-shared, the test was removed, and we
2692 # assume the GNU/Linux dynamic linker is in use.
2693 dynamic_linker='GNU/Linux ld.so'
2694 ;;
2695
2696 netbsd*)
2697 version_type=sunos
2698 need_lib_prefix=no
2699 need_version=no
2700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2703 dynamic_linker='NetBSD (a.out) ld.so'
2704 else
2705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2706 soname_spec='${libname}${release}${shared_ext}$major'
2707 dynamic_linker='NetBSD ld.elf_so'
2708 fi
2709 shlibpath_var=LD_LIBRARY_PATH
2710 shlibpath_overrides_runpath=yes
2711 hardcode_into_libs=yes
2712 ;;
2713
2714 newsos6)
2715 version_type=linux # correct to gnu/linux during the next big refactor
2716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2717 shlibpath_var=LD_LIBRARY_PATH
2718 shlibpath_overrides_runpath=yes
2719 ;;
2720
2721 *nto* | *qnx*)
2722 version_type=qnx
2723 need_lib_prefix=no
2724 need_version=no
2725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2726 soname_spec='${libname}${release}${shared_ext}$major'
2727 shlibpath_var=LD_LIBRARY_PATH
2728 shlibpath_overrides_runpath=no
2729 hardcode_into_libs=yes
2730 dynamic_linker='ldqnx.so'
2731 ;;
2732
2733 openbsd*)
2734 version_type=sunos
2735 sys_lib_dlsearch_path_spec="/usr/lib"
2736 need_lib_prefix=no
2737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2738 case $host_os in
2739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2740 *) need_version=no ;;
2741 esac
2742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2744 shlibpath_var=LD_LIBRARY_PATH
2745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2746 case $host_os in
2747 openbsd2.[[89]] | openbsd2.[[89]].*)
2748 shlibpath_overrides_runpath=no
2749 ;;
2750 *)
2751 shlibpath_overrides_runpath=yes
2752 ;;
2753 esac
2754 else
2755 shlibpath_overrides_runpath=yes
2756 fi
2757 ;;
2758
2759 os2*)
2760 libname_spec='$name'
2761 shrext_cmds=".dll"
2762 need_lib_prefix=no
2763 library_names_spec='$libname${shared_ext} $libname.a'
2764 dynamic_linker='OS/2 ld.exe'
2765 shlibpath_var=LIBPATH
2766 ;;
2767
2768 osf3* | osf4* | osf5*)
2769 version_type=osf
2770 need_lib_prefix=no
2771 need_version=no
2772 soname_spec='${libname}${release}${shared_ext}$major'
2773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2774 shlibpath_var=LD_LIBRARY_PATH
2775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2777 ;;
2778
2779 rdos*)
2780 dynamic_linker=no
2781 ;;
2782
2783 solaris*)
2784 version_type=linux # correct to gnu/linux during the next big refactor
2785 need_lib_prefix=no
2786 need_version=no
2787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2788 soname_spec='${libname}${release}${shared_ext}$major'
2789 shlibpath_var=LD_LIBRARY_PATH
2790 shlibpath_overrides_runpath=yes
2791 hardcode_into_libs=yes
2792 # ldd complains unless libraries are executable
2793 postinstall_cmds='chmod +x $lib'
2794 ;;
2795
2796 sunos4*)
2797 version_type=sunos
2798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2800 shlibpath_var=LD_LIBRARY_PATH
2801 shlibpath_overrides_runpath=yes
2802 if test "$with_gnu_ld" = yes; then
2803 need_lib_prefix=no
2804 fi
2805 need_version=yes
2806 ;;
2807
2808 sysv4 | sysv4.3*)
2809 version_type=linux # correct to gnu/linux during the next big refactor
2810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2811 soname_spec='${libname}${release}${shared_ext}$major'
2812 shlibpath_var=LD_LIBRARY_PATH
2813 case $host_vendor in
2814 sni)
2815 shlibpath_overrides_runpath=no
2816 need_lib_prefix=no
2817 runpath_var=LD_RUN_PATH
2818 ;;
2819 siemens)
2820 need_lib_prefix=no
2821 ;;
2822 motorola)
2823 need_lib_prefix=no
2824 need_version=no
2825 shlibpath_overrides_runpath=no
2826 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2827 ;;
2828 esac
2829 ;;
2830
2831 sysv4*MP*)
2832 if test -d /usr/nec ;then
2833 version_type=linux # correct to gnu/linux during the next big refactor
2834 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2835 soname_spec='$libname${shared_ext}.$major'
2836 shlibpath_var=LD_LIBRARY_PATH
2837 fi
2838 ;;
2839
2840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2841 version_type=freebsd-elf
2842 need_lib_prefix=no
2843 need_version=no
2844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2845 soname_spec='${libname}${release}${shared_ext}$major'
2846 shlibpath_var=LD_LIBRARY_PATH
2847 shlibpath_overrides_runpath=yes
2848 hardcode_into_libs=yes
2849 if test "$with_gnu_ld" = yes; then
2850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2851 else
2852 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2853 case $host_os in
2854 sco3.2v5*)
2855 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2856 ;;
2857 esac
2858 fi
2859 sys_lib_dlsearch_path_spec='/usr/lib'
2860 ;;
2861
2862 tpf*)
2863 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2864 version_type=linux # correct to gnu/linux during the next big refactor
2865 need_lib_prefix=no
2866 need_version=no
2867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2868 shlibpath_var=LD_LIBRARY_PATH
2869 shlibpath_overrides_runpath=no
2870 hardcode_into_libs=yes
2871 ;;
2872
2873 uts4*)
2874 version_type=linux # correct to gnu/linux during the next big refactor
2875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2876 soname_spec='${libname}${release}${shared_ext}$major'
2877 shlibpath_var=LD_LIBRARY_PATH
2878 ;;
2879
2880 *)
2881 dynamic_linker=no
2882 ;;
2883 esac
2884 AC_MSG_RESULT([$dynamic_linker])
2885 test "$dynamic_linker" = no && can_build_shared=no
2886
2887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2888 if test "$GCC" = yes; then
2889 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2890 fi
2891
2892 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2893 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2894 fi
2895 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2896 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2897 fi
2898
2899 _LT_DECL([], [variables_saved_for_relink], [1],
2900 [Variables whose values should be saved in libtool wrapper scripts and
2901 restored at link time])
2902 _LT_DECL([], [need_lib_prefix], [0],
2903 [Do we need the "lib" prefix for modules?])
2904 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2905 _LT_DECL([], [version_type], [0], [Library versioning type])
2906 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2907 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2908 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2909 [Is shlibpath searched before the hard-coded library search path?])
2910 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2911 _LT_DECL([], [library_names_spec], [1],
2912 [[List of archive names. First name is the real one, the rest are links.
2913 The last name is the one that the linker finds with -lNAME]])
2914 _LT_DECL([], [soname_spec], [1],
2915 [[The coded name of the library, if different from the real name]])
2916 _LT_DECL([], [install_override_mode], [1],
2917 [Permission mode override for installation of shared libraries])
2918 _LT_DECL([], [postinstall_cmds], [2],
2919 [Command to use after installation of a shared archive])
2920 _LT_DECL([], [postuninstall_cmds], [2],
2921 [Command to use after uninstallation of a shared archive])
2922 _LT_DECL([], [finish_cmds], [2],
2923 [Commands used to finish a libtool library installation in a directory])
2924 _LT_DECL([], [finish_eval], [1],
2925 [[As "finish_cmds", except a single script fragment to be evaled but
2926 not shown]])
2927 _LT_DECL([], [hardcode_into_libs], [0],
2928 [Whether we should hardcode library paths into libraries])
2929 _LT_DECL([], [sys_lib_search_path_spec], [2],
2930 [Compile-time system search path for libraries])
2931 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2932 [Run-time system search path for libraries])
2933 ])# _LT_SYS_DYNAMIC_LINKER
2934
2935
2936 # _LT_PATH_TOOL_PREFIX(TOOL)
2937 # --------------------------
2938 # find a file program which can recognize shared library
2939 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2940 [m4_require([_LT_DECL_EGREP])dnl
2941 AC_MSG_CHECKING([for $1])
2942 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2943 [case $MAGIC_CMD in
2944 [[\\/*] | ?:[\\/]*])
2945 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2946 ;;
2947 *)
2948 lt_save_MAGIC_CMD="$MAGIC_CMD"
2949 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2950 dnl $ac_dummy forces splitting on constant user-supplied paths.
2951 dnl POSIX.2 word splitting is done only on the output of word expansions,
2952 dnl not every word. This closes a longstanding sh security hole.
2953 ac_dummy="m4_if([$2], , $PATH, [$2])"
2954 for ac_dir in $ac_dummy; do
2955 IFS="$lt_save_ifs"
2956 test -z "$ac_dir" && ac_dir=.
2957 if test -f $ac_dir/$1; then
2958 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2959 if test -n "$file_magic_test_file"; then
2960 case $deplibs_check_method in
2961 "file_magic "*)
2962 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2964 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2965 $EGREP "$file_magic_regex" > /dev/null; then
2966 :
2967 else
2968 cat <<_LT_EOF 1>&2
2969
2970 *** Warning: the command libtool uses to detect shared libraries,
2971 *** $file_magic_cmd, produces output that libtool cannot recognize.
2972 *** The result is that libtool may fail to recognize shared libraries
2973 *** as such. This will affect the creation of libtool libraries that
2974 *** depend on shared libraries, but programs linked with such libtool
2975 *** libraries will work regardless of this problem. Nevertheless, you
2976 *** may want to report the problem to your system manager and/or to
2977 *** bug-libtool@gnu.org
2978
2979 _LT_EOF
2980 fi ;;
2981 esac
2982 fi
2983 break
2984 fi
2985 done
2986 IFS="$lt_save_ifs"
2987 MAGIC_CMD="$lt_save_MAGIC_CMD"
2988 ;;
2989 esac])
2990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2991 if test -n "$MAGIC_CMD"; then
2992 AC_MSG_RESULT($MAGIC_CMD)
2993 else
2994 AC_MSG_RESULT(no)
2995 fi
2996 _LT_DECL([], [MAGIC_CMD], [0],
2997 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2998 ])# _LT_PATH_TOOL_PREFIX
2999
3000 # Old name:
3001 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3002 dnl aclocal-1.4 backwards compatibility:
3003 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3004
3005
3006 # _LT_PATH_MAGIC
3007 # --------------
3008 # find a file program which can recognize a shared library
3009 m4_defun([_LT_PATH_MAGIC],
3010 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3011 if test -z "$lt_cv_path_MAGIC_CMD"; then
3012 if test -n "$ac_tool_prefix"; then
3013 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3014 else
3015 MAGIC_CMD=:
3016 fi
3017 fi
3018 ])# _LT_PATH_MAGIC
3019
3020
3021 # LT_PATH_LD
3022 # ----------
3023 # find the pathname to the GNU or non-GNU linker
3024 AC_DEFUN([LT_PATH_LD],
3025 [AC_REQUIRE([AC_PROG_CC])dnl
3026 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3027 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3028 m4_require([_LT_DECL_SED])dnl
3029 m4_require([_LT_DECL_EGREP])dnl
3030 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3031
3032 AC_ARG_WITH([gnu-ld],
3033 [AS_HELP_STRING([--with-gnu-ld],
3034 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3035 [test "$withval" = no || with_gnu_ld=yes],
3036 [with_gnu_ld=no])dnl
3037
3038 ac_prog=ld
3039 if test "$GCC" = yes; then
3040 # Check if gcc -print-prog-name=ld gives a path.
3041 AC_MSG_CHECKING([for ld used by $CC])
3042 case $host in
3043 *-*-mingw*)
3044 # gcc leaves a trailing carriage return which upsets mingw
3045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3046 *)
3047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3048 esac
3049 case $ac_prog in
3050 # Accept absolute paths.
3051 [[\\/]]* | ?:[[\\/]]*)
3052 re_direlt='/[[^/]][[^/]]*/\.\./'
3053 # Canonicalize the pathname of ld
3054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3057 done
3058 test -z "$LD" && LD="$ac_prog"
3059 ;;
3060 "")
3061 # If it fails, then pretend we aren't using GCC.
3062 ac_prog=ld
3063 ;;
3064 *)
3065 # If it is relative, then search for the first ld in PATH.
3066 with_gnu_ld=unknown
3067 ;;
3068 esac
3069 elif test "$with_gnu_ld" = yes; then
3070 AC_MSG_CHECKING([for GNU ld])
3071 else
3072 AC_MSG_CHECKING([for non-GNU ld])
3073 fi
3074 AC_CACHE_VAL(lt_cv_path_LD,
3075 [if test -z "$LD"; then
3076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3077 for ac_dir in $PATH; do
3078 IFS="$lt_save_ifs"
3079 test -z "$ac_dir" && ac_dir=.
3080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3081 lt_cv_path_LD="$ac_dir/$ac_prog"
3082 # Check to see if the program is GNU ld. I'd rather use --version,
3083 # but apparently some variants of GNU ld only accept -v.
3084 # Break only if it was the GNU/non-GNU ld that we prefer.
3085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3086 *GNU* | *'with BFD'*)
3087 test "$with_gnu_ld" != no && break
3088 ;;
3089 *)
3090 test "$with_gnu_ld" != yes && break
3091 ;;
3092 esac
3093 fi
3094 done
3095 IFS="$lt_save_ifs"
3096 else
3097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3098 fi])
3099 LD="$lt_cv_path_LD"
3100 if test -n "$LD"; then
3101 AC_MSG_RESULT($LD)
3102 else
3103 AC_MSG_RESULT(no)
3104 fi
3105 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3106 _LT_PATH_LD_GNU
3107 AC_SUBST([LD])
3108
3109 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3110 ])# LT_PATH_LD
3111
3112 # Old names:
3113 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3114 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3115 dnl aclocal-1.4 backwards compatibility:
3116 dnl AC_DEFUN([AM_PROG_LD], [])
3117 dnl AC_DEFUN([AC_PROG_LD], [])
3118
3119
3120 # _LT_PATH_LD_GNU
3121 #- --------------
3122 m4_defun([_LT_PATH_LD_GNU],
3123 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3124 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3125 case `$LD -v 2>&1 </dev/null` in
3126 *GNU* | *'with BFD'*)
3127 lt_cv_prog_gnu_ld=yes
3128 ;;
3129 *)
3130 lt_cv_prog_gnu_ld=no
3131 ;;
3132 esac])
3133 with_gnu_ld=$lt_cv_prog_gnu_ld
3134 ])# _LT_PATH_LD_GNU
3135
3136
3137 # _LT_CMD_RELOAD
3138 # --------------
3139 # find reload flag for linker
3140 # -- PORTME Some linkers may need a different reload flag.
3141 m4_defun([_LT_CMD_RELOAD],
3142 [AC_CACHE_CHECK([for $LD option to reload object files],
3143 lt_cv_ld_reload_flag,
3144 [lt_cv_ld_reload_flag='-r'])
3145 reload_flag=$lt_cv_ld_reload_flag
3146 case $reload_flag in
3147 "" | " "*) ;;
3148 *) reload_flag=" $reload_flag" ;;
3149 esac
3150 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3151 case $host_os in
3152 cygwin* | mingw* | pw32* | cegcc*)
3153 if test "$GCC" != yes; then
3154 reload_cmds=false
3155 fi
3156 ;;
3157 darwin*)
3158 if test "$GCC" = yes; then
3159 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3160 else
3161 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3162 fi
3163 ;;
3164 esac
3165 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3166 _LT_TAGDECL([], [reload_cmds], [2])dnl
3167 ])# _LT_CMD_RELOAD
3168
3169
3170 # _LT_CHECK_MAGIC_METHOD
3171 # ----------------------
3172 # how to check for library dependencies
3173 # -- PORTME fill in with the dynamic library characteristics
3174 m4_defun([_LT_CHECK_MAGIC_METHOD],
3175 [m4_require([_LT_DECL_EGREP])
3176 m4_require([_LT_DECL_OBJDUMP])
3177 AC_CACHE_CHECK([how to recognize dependent libraries],
3178 lt_cv_deplibs_check_method,
3179 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3180 lt_cv_file_magic_test_file=
3181 lt_cv_deplibs_check_method='unknown'
3182 # Need to set the preceding variable on all platforms that support
3183 # interlibrary dependencies.
3184 # 'none' -- dependencies not supported.
3185 # `unknown' -- same as none, but documents that we really don't know.
3186 # 'pass_all' -- all dependencies passed with no checks.
3187 # 'test_compile' -- check by making test program.
3188 # 'file_magic [[regex]]' -- check by looking for files in library path
3189 # which responds to the $file_magic_cmd with a given extended regex.
3190 # If you have `file' or equivalent on your system and you're not sure
3191 # whether `pass_all' will *always* work, you probably want this one.
3192
3193 case $host_os in
3194 aix[[4-9]]*)
3195 lt_cv_deplibs_check_method=pass_all
3196 ;;
3197
3198 beos*)
3199 lt_cv_deplibs_check_method=pass_all
3200 ;;
3201
3202 bsdi[[45]]*)
3203 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3204 lt_cv_file_magic_cmd='/usr/bin/file -L'
3205 lt_cv_file_magic_test_file=/shlib/libc.so
3206 ;;
3207
3208 cygwin*)
3209 # func_win32_libid is a shell function defined in ltmain.sh
3210 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3211 lt_cv_file_magic_cmd='func_win32_libid'
3212 ;;
3213
3214 mingw* | pw32*)
3215 # Base MSYS/MinGW do not provide the 'file' command needed by
3216 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3217 # unless we find 'file', for example because we are cross-compiling.
3218 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3219 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3220 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3221 lt_cv_file_magic_cmd='func_win32_libid'
3222 else
3223 # Keep this pattern in sync with the one in func_win32_libid.
3224 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3225 lt_cv_file_magic_cmd='$OBJDUMP -f'
3226 fi
3227 ;;
3228
3229 cegcc*)
3230 # use the weaker test based on 'objdump'. See mingw*.
3231 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3232 lt_cv_file_magic_cmd='$OBJDUMP -f'
3233 ;;
3234
3235 darwin* | rhapsody*)
3236 lt_cv_deplibs_check_method=pass_all
3237 ;;
3238
3239 freebsd* | dragonfly*)
3240 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3241 case $host_cpu in
3242 i*86 )
3243 # Not sure whether the presence of OpenBSD here was a mistake.
3244 # Let's accept both of them until this is cleared up.
3245 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3246 lt_cv_file_magic_cmd=/usr/bin/file
3247 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3248 ;;
3249 esac
3250 else
3251 lt_cv_deplibs_check_method=pass_all
3252 fi
3253 ;;
3254
3255 gnu*)
3256 lt_cv_deplibs_check_method=pass_all
3257 ;;
3258
3259 haiku*)
3260 lt_cv_deplibs_check_method=pass_all
3261 ;;
3262
3263 hpux10.20* | hpux11*)
3264 lt_cv_file_magic_cmd=/usr/bin/file
3265 case $host_cpu in
3266 ia64*)
3267 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3269 ;;
3270 hppa*64*)
3271 [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]']
3272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3273 ;;
3274 *)
3275 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3277 ;;
3278 esac
3279 ;;
3280
3281 interix[[3-9]]*)
3282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3283 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3284 ;;
3285
3286 irix5* | irix6* | nonstopux*)
3287 case $LD in
3288 *-32|*"-32 ") libmagic=32-bit;;
3289 *-n32|*"-n32 ") libmagic=N32;;
3290 *-64|*"-64 ") libmagic=64-bit;;
3291 *) libmagic=never-match;;
3292 esac
3293 lt_cv_deplibs_check_method=pass_all
3294 ;;
3295
3296 # This must be glibc/ELF.
3297 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3298 lt_cv_deplibs_check_method=pass_all
3299 ;;
3300
3301 netbsd*)
3302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3303 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3304 else
3305 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3306 fi
3307 ;;
3308
3309 newos6*)
3310 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3311 lt_cv_file_magic_cmd=/usr/bin/file
3312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3313 ;;
3314
3315 *nto* | *qnx*)
3316 lt_cv_deplibs_check_method=pass_all
3317 ;;
3318
3319 openbsd*)
3320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3321 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3322 else
3323 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3324 fi
3325 ;;
3326
3327 osf3* | osf4* | osf5*)
3328 lt_cv_deplibs_check_method=pass_all
3329 ;;
3330
3331 rdos*)
3332 lt_cv_deplibs_check_method=pass_all
3333 ;;
3334
3335 solaris*)
3336 lt_cv_deplibs_check_method=pass_all
3337 ;;
3338
3339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3340 lt_cv_deplibs_check_method=pass_all
3341 ;;
3342
3343 sysv4 | sysv4.3*)
3344 case $host_vendor in
3345 motorola)
3346 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]]'
3347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3348 ;;
3349 ncr)
3350 lt_cv_deplibs_check_method=pass_all
3351 ;;
3352 sequent)
3353 lt_cv_file_magic_cmd='/bin/file'
3354 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3355 ;;
3356 sni)
3357 lt_cv_file_magic_cmd='/bin/file'
3358 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3359 lt_cv_file_magic_test_file=/lib/libc.so
3360 ;;
3361 siemens)
3362 lt_cv_deplibs_check_method=pass_all
3363 ;;
3364 pc)
3365 lt_cv_deplibs_check_method=pass_all
3366 ;;
3367 esac
3368 ;;
3369
3370 tpf*)
3371 lt_cv_deplibs_check_method=pass_all
3372 ;;
3373 esac
3374 ])
3375
3376 file_magic_glob=
3377 want_nocaseglob=no
3378 if test "$build" = "$host"; then
3379 case $host_os in
3380 mingw* | pw32*)
3381 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3382 want_nocaseglob=yes
3383 else
3384 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3385 fi
3386 ;;
3387 esac
3388 fi
3389
3390 file_magic_cmd=$lt_cv_file_magic_cmd
3391 deplibs_check_method=$lt_cv_deplibs_check_method
3392 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3393
3394 _LT_DECL([], [deplibs_check_method], [1],
3395 [Method to check whether dependent libraries are shared objects])
3396 _LT_DECL([], [file_magic_cmd], [1],
3397 [Command to use when deplibs_check_method = "file_magic"])
3398 _LT_DECL([], [file_magic_glob], [1],
3399 [How to find potential files when deplibs_check_method = "file_magic"])
3400 _LT_DECL([], [want_nocaseglob], [1],
3401 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3402 ])# _LT_CHECK_MAGIC_METHOD
3403
3404
3405 # LT_PATH_NM
3406 # ----------
3407 # find the pathname to a BSD- or MS-compatible name lister
3408 AC_DEFUN([LT_PATH_NM],
3409 [AC_REQUIRE([AC_PROG_CC])dnl
3410 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3411 [if test -n "$NM"; then
3412 # Let the user override the test.
3413 lt_cv_path_NM="$NM"
3414 else
3415 lt_nm_to_check="${ac_tool_prefix}nm"
3416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3417 lt_nm_to_check="$lt_nm_to_check nm"
3418 fi
3419 for lt_tmp_nm in $lt_nm_to_check; do
3420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3422 IFS="$lt_save_ifs"
3423 test -z "$ac_dir" && ac_dir=.
3424 tmp_nm="$ac_dir/$lt_tmp_nm"
3425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3426 # Check to see if the nm accepts a BSD-compat flag.
3427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3428 # nm: unknown option "B" ignored
3429 # Tru64's nm complains that /dev/null is an invalid object file
3430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3431 */dev/null* | *'Invalid file or object type'*)
3432 lt_cv_path_NM="$tmp_nm -B"
3433 break
3434 ;;
3435 *)
3436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3437 */dev/null*)
3438 lt_cv_path_NM="$tmp_nm -p"
3439 break
3440 ;;
3441 *)
3442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3443 continue # so that we can try to find one that supports BSD flags
3444 ;;
3445 esac
3446 ;;
3447 esac
3448 fi
3449 done
3450 IFS="$lt_save_ifs"
3451 done
3452 : ${lt_cv_path_NM=no}
3453 fi])
3454 if test "$lt_cv_path_NM" != "no"; then
3455 NM="$lt_cv_path_NM"
3456 else
3457 # Didn't find any BSD compatible name lister, look for dumpbin.
3458 if test -n "$DUMPBIN"; then :
3459 # Let the user override the test.
3460 else
3461 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3462 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3463 *COFF*)
3464 DUMPBIN="$DUMPBIN -symbols"
3465 ;;
3466 *)
3467 DUMPBIN=:
3468 ;;
3469 esac
3470 fi
3471 AC_SUBST([DUMPBIN])
3472 if test "$DUMPBIN" != ":"; then
3473 NM="$DUMPBIN"
3474 fi
3475 fi
3476 test -z "$NM" && NM=nm
3477 AC_SUBST([NM])
3478 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3479
3480 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3481 [lt_cv_nm_interface="BSD nm"
3482 echo "int some_variable = 0;" > conftest.$ac_ext
3483 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3484 (eval "$ac_compile" 2>conftest.err)
3485 cat conftest.err >&AS_MESSAGE_LOG_FD
3486 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3487 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3488 cat conftest.err >&AS_MESSAGE_LOG_FD
3489 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3490 cat conftest.out >&AS_MESSAGE_LOG_FD
3491 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3492 lt_cv_nm_interface="MS dumpbin"
3493 fi
3494 rm -f conftest*])
3495 ])# LT_PATH_NM
3496
3497 # Old names:
3498 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3499 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3500 dnl aclocal-1.4 backwards compatibility:
3501 dnl AC_DEFUN([AM_PROG_NM], [])
3502 dnl AC_DEFUN([AC_PROG_NM], [])
3503
3504 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3505 # --------------------------------
3506 # how to determine the name of the shared library
3507 # associated with a specific link library.
3508 # -- PORTME fill in with the dynamic library characteristics
3509 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3510 [m4_require([_LT_DECL_EGREP])
3511 m4_require([_LT_DECL_OBJDUMP])
3512 m4_require([_LT_DECL_DLLTOOL])
3513 AC_CACHE_CHECK([how to associate runtime and link libraries],
3514 lt_cv_sharedlib_from_linklib_cmd,
3515 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3516
3517 case $host_os in
3518 cygwin* | mingw* | pw32* | cegcc*)
3519 # two different shell functions defined in ltmain.sh
3520 # decide which to use based on capabilities of $DLLTOOL
3521 case `$DLLTOOL --help 2>&1` in
3522 *--identify-strict*)
3523 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3524 ;;
3525 *)
3526 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3527 ;;
3528 esac
3529 ;;
3530 *)
3531 # fallback: assume linklib IS sharedlib
3532 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3533 ;;
3534 esac
3535 ])
3536 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3537 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3538
3539 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3540 [Command to associate shared and link libraries])
3541 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3542
3543
3544 # _LT_PATH_MANIFEST_TOOL
3545 # ----------------------
3546 # locate the manifest tool
3547 m4_defun([_LT_PATH_MANIFEST_TOOL],
3548 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3549 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3550 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3551 [lt_cv_path_mainfest_tool=no
3552 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3553 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3554 cat conftest.err >&AS_MESSAGE_LOG_FD
3555 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3556 lt_cv_path_mainfest_tool=yes
3557 fi
3558 rm -f conftest*])
3559 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3560 MANIFEST_TOOL=:
3561 fi
3562 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3563 ])# _LT_PATH_MANIFEST_TOOL
3564
3565
3566 # LT_LIB_M
3567 # --------
3568 # check for math library
3569 AC_DEFUN([LT_LIB_M],
3570 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3571 LIBM=
3572 case $host in
3573 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3574 # These system don't have libm, or don't need it
3575 ;;
3576 *-ncr-sysv4.3*)
3577 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3578 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3579 ;;
3580 *)
3581 AC_CHECK_LIB(m, cos, LIBM="-lm")
3582 ;;
3583 esac
3584 AC_SUBST([LIBM])
3585 ])# LT_LIB_M
3586
3587 # Old name:
3588 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3589 dnl aclocal-1.4 backwards compatibility:
3590 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3591
3592
3593 # _LT_COMPILER_NO_RTTI([TAGNAME])
3594 # -------------------------------
3595 m4_defun([_LT_COMPILER_NO_RTTI],
3596 [m4_require([_LT_TAG_COMPILER])dnl
3597
3598 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3599
3600 if test "$GCC" = yes; then
3601 case $cc_basename in
3602 nvcc*)
3603 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3604 *)
3605 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3606 esac
3607
3608 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3609 lt_cv_prog_compiler_rtti_exceptions,
3610 [-fno-rtti -fno-exceptions], [],
3611 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3612 fi
3613 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3614 [Compiler flag to turn off builtin functions])
3615 ])# _LT_COMPILER_NO_RTTI
3616
3617
3618 # _LT_CMD_GLOBAL_SYMBOLS
3619 # ----------------------
3620 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3621 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3622 AC_REQUIRE([AC_PROG_CC])dnl
3623 AC_REQUIRE([AC_PROG_AWK])dnl
3624 AC_REQUIRE([LT_PATH_NM])dnl
3625 AC_REQUIRE([LT_PATH_LD])dnl
3626 m4_require([_LT_DECL_SED])dnl
3627 m4_require([_LT_DECL_EGREP])dnl
3628 m4_require([_LT_TAG_COMPILER])dnl
3629
3630 # Check for command to grab the raw symbol name followed by C symbol from nm.
3631 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3632 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3633 [
3634 # These are sane defaults that work on at least a few old systems.
3635 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3636
3637 # Character class describing NM global symbol codes.
3638 symcode='[[BCDEGRST]]'
3639
3640 # Regexp to match symbols that can be accessed directly from C.
3641 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3642
3643 # Define system-specific variables.
3644 case $host_os in
3645 aix*)
3646 symcode='[[BCDT]]'
3647 ;;
3648 cygwin* | mingw* | pw32* | cegcc*)
3649 symcode='[[ABCDGISTW]]'
3650 ;;
3651 hpux*)
3652 if test "$host_cpu" = ia64; then
3653 symcode='[[ABCDEGRST]]'
3654 fi
3655 ;;
3656 irix* | nonstopux*)
3657 symcode='[[BCDEGRST]]'
3658 ;;
3659 osf*)
3660 symcode='[[BCDEGQRST]]'
3661 ;;
3662 solaris*)
3663 symcode='[[BDRT]]'
3664 ;;
3665 sco3.2v5*)
3666 symcode='[[DT]]'
3667 ;;
3668 sysv4.2uw2*)
3669 symcode='[[DT]]'
3670 ;;
3671 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3672 symcode='[[ABDT]]'
3673 ;;
3674 sysv4)
3675 symcode='[[DFNSTU]]'
3676 ;;
3677 esac
3678
3679 # If we're using GNU nm, then use its standard symbol codes.
3680 case `$NM -V 2>&1` in
3681 *GNU* | *'with BFD'*)
3682 symcode='[[ABCDGIRSTW]]' ;;
3683 esac
3684
3685 # Transform an extracted symbol line into a proper C declaration.
3686 # Some systems (esp. on ia64) link data and code symbols differently,
3687 # so use this general approach.
3688 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3689
3690 # Transform an extracted symbol line into symbol name and symbol address
3691 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3692 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
3693
3694 # Handle CRLF in mingw tool chain
3695 opt_cr=
3696 case $build_os in
3697 mingw*)
3698 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3699 ;;
3700 esac
3701
3702 # Try without a prefix underscore, then with it.
3703 for ac_symprfx in "" "_"; do
3704
3705 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3706 symxfrm="\\1 $ac_symprfx\\2 \\2"
3707
3708 # Write the raw and C identifiers.
3709 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3710 # Fake it for dumpbin and say T for any non-static function
3711 # and D for any global variable.
3712 # Also find C++ and __fastcall symbols from MSVC++,
3713 # which start with @ or ?.
3714 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3715 " {last_section=section; section=\$ 3};"\
3716 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
3717 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3718 " \$ 0!~/External *\|/{next};"\
3719 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3720 " {if(hide[section]) next};"\
3721 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3722 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3723 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3724 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3725 " ' prfx=^$ac_symprfx]"
3726 else
3727 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3728 fi
3729 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
3730
3731 # Check to see that the pipe works correctly.
3732 pipe_works=no
3733
3734 rm -f conftest*
3735 cat > conftest.$ac_ext <<_LT_EOF
3736 #ifdef __cplusplus
3737 extern "C" {
3738 #endif
3739 char nm_test_var;
3740 void nm_test_func(void);
3741 void nm_test_func(void){}
3742 #ifdef __cplusplus
3743 }
3744 #endif
3745 int main(){nm_test_var='a';nm_test_func();return(0);}
3746 _LT_EOF
3747
3748 if AC_TRY_EVAL(ac_compile); then
3749 # Now try to grab the symbols.
3750 nlist=conftest.nm
3751 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3752 # Try sorting and uniquifying the output.
3753 if sort "$nlist" | uniq > "$nlist"T; then
3754 mv -f "$nlist"T "$nlist"
3755 else
3756 rm -f "$nlist"T
3757 fi
3758
3759 # Make sure that we snagged all the symbols we need.
3760 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3761 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3762 cat <<_LT_EOF > conftest.$ac_ext
3763 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3764 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3765 /* DATA imports from DLLs on WIN32 con't be const, because runtime
3766 relocations are performed -- see ld's documentation on pseudo-relocs. */
3767 # define LT@&t@_DLSYM_CONST
3768 #elif defined(__osf__)
3769 /* This system does not cope well with relocations in const data. */
3770 # define LT@&t@_DLSYM_CONST
3771 #else
3772 # define LT@&t@_DLSYM_CONST const
3773 #endif
3774
3775 #ifdef __cplusplus
3776 extern "C" {
3777 #endif
3778
3779 _LT_EOF
3780 # Now generate the symbol file.
3781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3782
3783 cat <<_LT_EOF >> conftest.$ac_ext
3784
3785 /* The mapping between symbol names and symbols. */
3786 LT@&t@_DLSYM_CONST struct {
3787 const char *name;
3788 void *address;
3789 }
3790 lt__PROGRAM__LTX_preloaded_symbols[[]] =
3791 {
3792 { "@PROGRAM@", (void *) 0 },
3793 _LT_EOF
3794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3795 cat <<\_LT_EOF >> conftest.$ac_ext
3796 {0, (void *) 0}
3797 };
3798
3799 /* This works around a problem in FreeBSD linker */
3800 #ifdef FREEBSD_WORKAROUND
3801 static const void *lt_preloaded_setup() {
3802 return lt__PROGRAM__LTX_preloaded_symbols;
3803 }
3804 #endif
3805
3806 #ifdef __cplusplus
3807 }
3808 #endif
3809 _LT_EOF
3810 # Now try linking the two files.
3811 mv conftest.$ac_objext conftstm.$ac_objext
3812 lt_globsym_save_LIBS=$LIBS
3813 lt_globsym_save_CFLAGS=$CFLAGS
3814 LIBS="conftstm.$ac_objext"
3815 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3816 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3817 pipe_works=yes
3818 fi
3819 LIBS=$lt_globsym_save_LIBS
3820 CFLAGS=$lt_globsym_save_CFLAGS
3821 else
3822 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3823 fi
3824 else
3825 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3826 fi
3827 else
3828 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3829 fi
3830 else
3831 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3832 cat conftest.$ac_ext >&5
3833 fi
3834 rm -rf conftest* conftst*
3835
3836 # Do not use the global_symbol_pipe unless it works.
3837 if test "$pipe_works" = yes; then
3838 break
3839 else
3840 lt_cv_sys_global_symbol_pipe=
3841 fi
3842 done
3843 ])
3844 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3845 lt_cv_sys_global_symbol_to_cdecl=
3846 fi
3847 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3848 AC_MSG_RESULT(failed)
3849 else
3850 AC_MSG_RESULT(ok)
3851 fi
3852
3853 # Response file support.
3854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3855 nm_file_list_spec='@'
3856 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3857 nm_file_list_spec='@'
3858 fi
3859
3860 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3861 [Take the output of nm and produce a listing of raw symbols and C names])
3862 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3863 [Transform the output of nm in a proper C declaration])
3864 _LT_DECL([global_symbol_to_c_name_address],
3865 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3866 [Transform the output of nm in a C name address pair])
3867 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3868 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3869 [Transform the output of nm in a C name address pair when lib prefix is needed])
3870 _LT_DECL([], [nm_file_list_spec], [1],
3871 [Specify filename containing input files for $NM])
3872 ]) # _LT_CMD_GLOBAL_SYMBOLS
3873
3874
3875 # _LT_COMPILER_PIC([TAGNAME])
3876 # ---------------------------
3877 m4_defun([_LT_COMPILER_PIC],
3878 [m4_require([_LT_TAG_COMPILER])dnl
3879 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3880 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3881 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3882
3883 m4_if([$1], [CXX], [
3884 # C++ specific cases for pic, static, wl, etc.
3885 if test "$GXX" = yes; then
3886 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3887 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3888
3889 case $host_os in
3890 aix*)
3891 # All AIX code is PIC.
3892 if test "$host_cpu" = ia64; then
3893 # AIX 5 now supports IA64 processor
3894 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3895 fi
3896 ;;
3897
3898 amigaos*)
3899 case $host_cpu in
3900 powerpc)
3901 # see comment about AmigaOS4 .so support
3902 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3903 ;;
3904 m68k)
3905 # FIXME: we need at least 68020 code to build shared libraries, but
3906 # adding the `-m68020' flag to GCC prevents building anything better,
3907 # like `-m68040'.
3908 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3909 ;;
3910 esac
3911 ;;
3912
3913 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3914 # PIC is the default for these OSes.
3915 ;;
3916 mingw* | cygwin* | os2* | pw32* | cegcc*)
3917 # This hack is so that the source file can tell whether it is being
3918 # built for inclusion in a dll (and should export symbols for example).
3919 # Although the cygwin gcc ignores -fPIC, still need this for old-style
3920 # (--disable-auto-import) libraries
3921 m4_if([$1], [GCJ], [],
3922 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3923 ;;
3924 darwin* | rhapsody*)
3925 # PIC is the default on this platform
3926 # Common symbols not allowed in MH_DYLIB files
3927 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3928 ;;
3929 *djgpp*)
3930 # DJGPP does not support shared libraries at all
3931 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3932 ;;
3933 haiku*)
3934 # PIC is the default for Haiku.
3935 # The "-static" flag exists, but is broken.
3936 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3937 ;;
3938 interix[[3-9]]*)
3939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3940 # Instead, we relocate shared libraries at runtime.
3941 ;;
3942 sysv4*MP*)
3943 if test -d /usr/nec; then
3944 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3945 fi
3946 ;;
3947 hpux*)
3948 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3949 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3950 # sets the default TLS model and affects inlining.
3951 case $host_cpu in
3952 hppa*64*)
3953 ;;
3954 *)
3955 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3956 ;;
3957 esac
3958 ;;
3959 *qnx* | *nto*)
3960 # QNX uses GNU C++, but need to define -shared option too, otherwise
3961 # it will coredump.
3962 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3963 ;;
3964 *)
3965 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3966 ;;
3967 esac
3968 else
3969 case $host_os in
3970 aix[[4-9]]*)
3971 # All AIX code is PIC.
3972 if test "$host_cpu" = ia64; then
3973 # AIX 5 now supports IA64 processor
3974 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3975 else
3976 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3977 fi
3978 ;;
3979 chorus*)
3980 case $cc_basename in
3981 cxch68*)
3982 # Green Hills C++ Compiler
3983 # _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"
3984 ;;
3985 esac
3986 ;;
3987 mingw* | cygwin* | os2* | pw32* | cegcc*)
3988 # This hack is so that the source file can tell whether it is being
3989 # built for inclusion in a dll (and should export symbols for example).
3990 m4_if([$1], [GCJ], [],
3991 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3992 ;;
3993 dgux*)
3994 case $cc_basename in
3995 ec++*)
3996 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3997 ;;
3998 ghcx*)
3999 # Green Hills C++ Compiler
4000 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4001 ;;
4002 *)
4003 ;;
4004 esac
4005 ;;
4006 freebsd* | dragonfly*)
4007 # FreeBSD uses GNU C++
4008 ;;
4009 hpux9* | hpux10* | hpux11*)
4010 case $cc_basename in
4011 CC*)
4012 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4013 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4014 if test "$host_cpu" != ia64; then
4015 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4016 fi
4017 ;;
4018 aCC*)
4019 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4020 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4021 case $host_cpu in
4022 hppa*64*|ia64*)
4023 # +Z the default
4024 ;;
4025 *)
4026 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4027 ;;
4028 esac
4029 ;;
4030 *)
4031 ;;
4032 esac
4033 ;;
4034 interix*)
4035 # This is c89, which is MS Visual C++ (no shared libs)
4036 # Anyone wants to do a port?
4037 ;;
4038 irix5* | irix6* | nonstopux*)
4039 case $cc_basename in
4040 CC*)
4041 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4042 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4043 # CC pic flag -KPIC is the default.
4044 ;;
4045 *)
4046 ;;
4047 esac
4048 ;;
4049 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4050 case $cc_basename in
4051 KCC*)
4052 # KAI C++ Compiler
4053 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4054 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4055 ;;
4056 ecpc* )
4057 # old Intel C++ for x86_64 which still supported -KPIC.
4058 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4059 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4060 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4061 ;;
4062 icpc* )
4063 # Intel C++, used to be incompatible with GCC.
4064 # ICC 10 doesn't accept -KPIC any more.
4065 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4066 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4067 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4068 ;;
4069 pgCC* | pgcpp*)
4070 # Portland Group C++ compiler
4071 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4072 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4073 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4074 ;;
4075 cxx*)
4076 # Compaq C++
4077 # Make sure the PIC flag is empty. It appears that all Alpha
4078 # Linux and Compaq Tru64 Unix objects are PIC.
4079 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4080 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4081 ;;
4082 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4083 # IBM XL 8.0, 9.0 on PPC and BlueGene
4084 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4085 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4086 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4087 ;;
4088 *)
4089 case `$CC -V 2>&1 | sed 5q` in
4090 *Sun\ C*)
4091 # Sun C++ 5.9
4092 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4093 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4094 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4095 ;;
4096 esac
4097 ;;
4098 esac
4099 ;;
4100 lynxos*)
4101 ;;
4102 m88k*)
4103 ;;
4104 mvs*)
4105 case $cc_basename in
4106 cxx*)
4107 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4108 ;;
4109 *)
4110 ;;
4111 esac
4112 ;;
4113 netbsd*)
4114 ;;
4115 *qnx* | *nto*)
4116 # QNX uses GNU C++, but need to define -shared option too, otherwise
4117 # it will coredump.
4118 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4119 ;;
4120 osf3* | osf4* | osf5*)
4121 case $cc_basename in
4122 KCC*)
4123 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4124 ;;
4125 RCC*)
4126 # Rational C++ 2.4.1
4127 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4128 ;;
4129 cxx*)
4130 # Digital/Compaq C++
4131 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4132 # Make sure the PIC flag is empty. It appears that all Alpha
4133 # Linux and Compaq Tru64 Unix objects are PIC.
4134 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4135 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4136 ;;
4137 *)
4138 ;;
4139 esac
4140 ;;
4141 psos*)
4142 ;;
4143 solaris*)
4144 case $cc_basename in
4145 CC* | sunCC*)
4146 # Sun C++ 4.2, 5.x and Centerline C++
4147 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4148 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4149 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4150 ;;
4151 gcx*)
4152 # Green Hills C++ Compiler
4153 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4154 ;;
4155 *)
4156 ;;
4157 esac
4158 ;;
4159 sunos4*)
4160 case $cc_basename in
4161 CC*)
4162 # Sun C++ 4.x
4163 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4164 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4165 ;;
4166 lcc*)
4167 # Lucid
4168 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4169 ;;
4170 *)
4171 ;;
4172 esac
4173 ;;
4174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4175 case $cc_basename in
4176 CC*)
4177 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4178 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4179 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4180 ;;
4181 esac
4182 ;;
4183 tandem*)
4184 case $cc_basename in
4185 NCC*)
4186 # NonStop-UX NCC 3.20
4187 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4188 ;;
4189 *)
4190 ;;
4191 esac
4192 ;;
4193 vxworks*)
4194 ;;
4195 *)
4196 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4197 ;;
4198 esac
4199 fi
4200 ],
4201 [
4202 if test "$GCC" = yes; then
4203 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4204 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4205
4206 case $host_os in
4207 aix*)
4208 # All AIX code is PIC.
4209 if test "$host_cpu" = ia64; then
4210 # AIX 5 now supports IA64 processor
4211 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4212 fi
4213 ;;
4214
4215 amigaos*)
4216 case $host_cpu in
4217 powerpc)
4218 # see comment about AmigaOS4 .so support
4219 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4220 ;;
4221 m68k)
4222 # FIXME: we need at least 68020 code to build shared libraries, but
4223 # adding the `-m68020' flag to GCC prevents building anything better,
4224 # like `-m68040'.
4225 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4226 ;;
4227 esac
4228 ;;
4229
4230 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4231 # PIC is the default for these OSes.
4232 ;;
4233
4234 mingw* | cygwin* | pw32* | os2* | cegcc*)
4235 # This hack is so that the source file can tell whether it is being
4236 # built for inclusion in a dll (and should export symbols for example).
4237 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4238 # (--disable-auto-import) libraries
4239 m4_if([$1], [GCJ], [],
4240 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4241 ;;
4242
4243 darwin* | rhapsody*)
4244 # PIC is the default on this platform
4245 # Common symbols not allowed in MH_DYLIB files
4246 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4247 ;;
4248
4249 haiku*)
4250 # PIC is the default for Haiku.
4251 # The "-static" flag exists, but is broken.
4252 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4253 ;;
4254
4255 hpux*)
4256 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4257 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4258 # sets the default TLS model and affects inlining.
4259 case $host_cpu in
4260 hppa*64*)
4261 # +Z the default
4262 ;;
4263 *)
4264 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4265 ;;
4266 esac
4267 ;;
4268
4269 interix[[3-9]]*)
4270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4271 # Instead, we relocate shared libraries at runtime.
4272 ;;
4273
4274 msdosdjgpp*)
4275 # Just because we use GCC doesn't mean we suddenly get shared libraries
4276 # on systems that don't support them.
4277 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4278 enable_shared=no
4279 ;;
4280
4281 *nto* | *qnx*)
4282 # QNX uses GNU C++, but need to define -shared option too, otherwise
4283 # it will coredump.
4284 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4285 ;;
4286
4287 sysv4*MP*)
4288 if test -d /usr/nec; then
4289 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4290 fi
4291 ;;
4292
4293 *)
4294 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4295 ;;
4296 esac
4297
4298 case $cc_basename in
4299 nvcc*) # Cuda Compiler Driver 2.2
4300 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4301 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4302 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4303 fi
4304 ;;
4305 esac
4306 else
4307 # PORTME Check for flag to pass linker flags through the system compiler.
4308 case $host_os in
4309 aix*)
4310 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4311 if test "$host_cpu" = ia64; then
4312 # AIX 5 now supports IA64 processor
4313 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4314 else
4315 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4316 fi
4317 ;;
4318
4319 mingw* | cygwin* | pw32* | os2* | cegcc*)
4320 # This hack is so that the source file can tell whether it is being
4321 # built for inclusion in a dll (and should export symbols for example).
4322 m4_if([$1], [GCJ], [],
4323 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4324 ;;
4325
4326 hpux9* | hpux10* | hpux11*)
4327 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4329 # not for PA HP-UX.
4330 case $host_cpu in
4331 hppa*64*|ia64*)
4332 # +Z the default
4333 ;;
4334 *)
4335 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4336 ;;
4337 esac
4338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4339 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4340 ;;
4341
4342 irix5* | irix6* | nonstopux*)
4343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4344 # PIC (with -KPIC) is the default.
4345 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4346 ;;
4347
4348 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4349 case $cc_basename in
4350 # old Intel for x86_64 which still supported -KPIC.
4351 ecc*)
4352 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4353 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4354 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4355 ;;
4356 # icc used to be incompatible with GCC.
4357 # ICC 10 doesn't accept -KPIC any more.
4358 icc* | ifort*)
4359 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4362 ;;
4363 # Lahey Fortran 8.1.
4364 lf95*)
4365 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4366 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4367 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4368 ;;
4369 nagfor*)
4370 # NAG Fortran compiler
4371 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4372 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4373 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4374 ;;
4375 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4376 # Portland Group compilers (*not* the Pentium gcc compiler,
4377 # which looks to be a dead project)
4378 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4379 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4380 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4381 ;;
4382 ccc*)
4383 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4384 # All Alpha code is PIC.
4385 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4386 ;;
4387 xl* | bgxl* | bgf* | mpixl*)
4388 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4389 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4390 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4391 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4392 ;;
4393 *)
4394 case `$CC -V 2>&1 | sed 5q` in
4395 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4396 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4397 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4398 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4400 ;;
4401 *Sun\ F* | *Sun*Fortran*)
4402 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4403 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4405 ;;
4406 *Sun\ C*)
4407 # Sun C 5.9
4408 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4409 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4410 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4411 ;;
4412 *Intel*\ [[CF]]*Compiler*)
4413 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4414 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4415 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4416 ;;
4417 *Portland\ Group*)
4418 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4419 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4420 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4421 ;;
4422 esac
4423 ;;
4424 esac
4425 ;;
4426
4427 newsos6)
4428 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4429 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4430 ;;
4431
4432 *nto* | *qnx*)
4433 # QNX uses GNU C++, but need to define -shared option too, otherwise
4434 # it will coredump.
4435 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4436 ;;
4437
4438 osf3* | osf4* | osf5*)
4439 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4440 # All OSF/1 code is PIC.
4441 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4442 ;;
4443
4444 rdos*)
4445 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4446 ;;
4447
4448 solaris*)
4449 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4450 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4451 case $cc_basename in
4452 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4453 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4454 *)
4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4456 esac
4457 ;;
4458
4459 sunos4*)
4460 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4461 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4462 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4463 ;;
4464
4465 sysv4 | sysv4.2uw2* | sysv4.3*)
4466 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4467 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4468 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4469 ;;
4470
4471 sysv4*MP*)
4472 if test -d /usr/nec ;then
4473 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4474 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4475 fi
4476 ;;
4477
4478 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4479 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4480 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4481 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4482 ;;
4483
4484 unicos*)
4485 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4486 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4487 ;;
4488
4489 uts4*)
4490 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4491 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4492 ;;
4493
4494 *)
4495 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4496 ;;
4497 esac
4498 fi
4499 ])
4500 case $host_os in
4501 # For platforms which do not support PIC, -DPIC is meaningless:
4502 *djgpp*)
4503 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4504 ;;
4505 *)
4506 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4507 ;;
4508 esac
4509
4510 AC_CACHE_CHECK([for $compiler option to produce PIC],
4511 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4512 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4513 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4514
4515 #
4516 # Check to make sure the PIC flag actually works.
4517 #
4518 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4519 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4520 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4521 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4522 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4523 "" | " "*) ;;
4524 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4525 esac],
4526 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4527 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4528 fi
4529 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4530 [Additional compiler flags for building library objects])
4531
4532 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4533 [How to pass a linker flag through the compiler])
4534 #
4535 # Check to make sure the static flag actually works.
4536 #
4537 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4538 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4539 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4540 $lt_tmp_static_flag,
4541 [],
4542 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4543 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4544 [Compiler flag to prevent dynamic linking])
4545 ])# _LT_COMPILER_PIC
4546
4547
4548 # _LT_LINKER_SHLIBS([TAGNAME])
4549 # ----------------------------
4550 # See if the linker supports building shared libraries.
4551 m4_defun([_LT_LINKER_SHLIBS],
4552 [AC_REQUIRE([LT_PATH_LD])dnl
4553 AC_REQUIRE([LT_PATH_NM])dnl
4554 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4555 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4556 m4_require([_LT_DECL_EGREP])dnl
4557 m4_require([_LT_DECL_SED])dnl
4558 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4559 m4_require([_LT_TAG_COMPILER])dnl
4560 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4561 m4_if([$1], [CXX], [
4562 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4563 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4564 case $host_os in
4565 aix[[4-9]]*)
4566 # If we're using GNU nm, then we don't want the "-C" option.
4567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4568 # Also, AIX nm treats weak defined symbols like other global defined
4569 # symbols, whereas GNU nm marks them as "W".
4570 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4571 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4572 else
4573 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4574 fi
4575 ;;
4576 pw32*)
4577 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4578 ;;
4579 cygwin* | mingw* | cegcc*)
4580 case $cc_basename in
4581 cl*)
4582 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4583 ;;
4584 *)
4585 _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'
4586 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4587 ;;
4588 esac
4589 ;;
4590 *)
4591 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4592 ;;
4593 esac
4594 ], [
4595 runpath_var=
4596 _LT_TAGVAR(allow_undefined_flag, $1)=
4597 _LT_TAGVAR(always_export_symbols, $1)=no
4598 _LT_TAGVAR(archive_cmds, $1)=
4599 _LT_TAGVAR(archive_expsym_cmds, $1)=
4600 _LT_TAGVAR(compiler_needs_object, $1)=no
4601 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4602 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4603 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4604 _LT_TAGVAR(hardcode_automatic, $1)=no
4605 _LT_TAGVAR(hardcode_direct, $1)=no
4606 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4607 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4608 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4609 _LT_TAGVAR(hardcode_minus_L, $1)=no
4610 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4611 _LT_TAGVAR(inherit_rpath, $1)=no
4612 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4613 _LT_TAGVAR(module_cmds, $1)=
4614 _LT_TAGVAR(module_expsym_cmds, $1)=
4615 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4616 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4617 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4618 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4619 # include_expsyms should be a list of space-separated symbols to be *always*
4620 # included in the symbol list
4621 _LT_TAGVAR(include_expsyms, $1)=
4622 # exclude_expsyms can be an extended regexp of symbols to exclude
4623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4625 # as well as any symbol that contains `d'.
4626 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4628 # platforms (ab)use it in PIC code, but their linkers get confused if
4629 # the symbol is explicitly referenced. Since portable code cannot
4630 # rely on this symbol name, it's probably fine to never include it in
4631 # preloaded symbol tables.
4632 # Exclude shared library initialization/finalization symbols.
4633 dnl Note also adjust exclude_expsyms for C++ above.
4634 extract_expsyms_cmds=
4635
4636 case $host_os in
4637 cygwin* | mingw* | pw32* | cegcc*)
4638 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4639 # When not using gcc, we currently assume that we are using
4640 # Microsoft Visual C++.
4641 if test "$GCC" != yes; then
4642 with_gnu_ld=no
4643 fi
4644 ;;
4645 interix*)
4646 # we just hope/assume this is gcc and not c89 (= MSVC++)
4647 with_gnu_ld=yes
4648 ;;
4649 openbsd*)
4650 with_gnu_ld=no
4651 ;;
4652 esac
4653
4654 _LT_TAGVAR(ld_shlibs, $1)=yes
4655
4656 # On some targets, GNU ld is compatible enough with the native linker
4657 # that we're better off using the native interface for both.
4658 lt_use_gnu_ld_interface=no
4659 if test "$with_gnu_ld" = yes; then
4660 case $host_os in
4661 aix*)
4662 # The AIX port of GNU ld has always aspired to compatibility
4663 # with the native linker. However, as the warning in the GNU ld
4664 # block says, versions before 2.19.5* couldn't really create working
4665 # shared libraries, regardless of the interface used.
4666 case `$LD -v 2>&1` in
4667 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4668 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4669 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4670 *)
4671 lt_use_gnu_ld_interface=yes
4672 ;;
4673 esac
4674 ;;
4675 *)
4676 lt_use_gnu_ld_interface=yes
4677 ;;
4678 esac
4679 fi
4680
4681 if test "$lt_use_gnu_ld_interface" = yes; then
4682 # If archive_cmds runs LD, not CC, wlarc should be empty
4683 wlarc='${wl}'
4684
4685 # Set some defaults for GNU ld with shared library support. These
4686 # are reset later if shared libraries are not supported. Putting them
4687 # here allows them to be overridden if necessary.
4688 runpath_var=LD_RUN_PATH
4689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4690 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4691 # ancient GNU ld didn't support --whole-archive et. al.
4692 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4693 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4694 else
4695 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4696 fi
4697 supports_anon_versioning=no
4698 case `$LD -v 2>&1` in
4699 *GNU\ gold*) supports_anon_versioning=yes ;;
4700 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4701 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4702 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4703 *\ 2.11.*) ;; # other 2.11 versions
4704 *) supports_anon_versioning=yes ;;
4705 esac
4706
4707 # See if GNU ld supports shared libraries.
4708 case $host_os in
4709 aix[[3-9]]*)
4710 # On AIX/PPC, the GNU linker is very broken
4711 if test "$host_cpu" != ia64; then
4712 _LT_TAGVAR(ld_shlibs, $1)=no
4713 cat <<_LT_EOF 1>&2
4714
4715 *** Warning: the GNU linker, at least up to release 2.19, is reported
4716 *** to be unable to reliably create shared libraries on AIX.
4717 *** Therefore, libtool is disabling shared libraries support. If you
4718 *** really care for shared libraries, you may want to install binutils
4719 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4720 *** You will then need to restart the configuration process.
4721
4722 _LT_EOF
4723 fi
4724 ;;
4725
4726 amigaos*)
4727 case $host_cpu in
4728 powerpc)
4729 # see comment about AmigaOS4 .so support
4730 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4731 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4732 ;;
4733 m68k)
4734 _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)'
4735 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4736 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4737 ;;
4738 esac
4739 ;;
4740
4741 beos*)
4742 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4743 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4745 # support --undefined. This deserves some investigation. FIXME
4746 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4747 else
4748 _LT_TAGVAR(ld_shlibs, $1)=no
4749 fi
4750 ;;
4751
4752 cygwin* | mingw* | pw32* | cegcc*)
4753 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4754 # as there is no search path for DLLs.
4755 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4756 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4757 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4758 _LT_TAGVAR(always_export_symbols, $1)=no
4759 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4760 _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'
4761 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4762
4763 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4764 _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'
4765 # If the export-symbols file already is a .def file (1st line
4766 # is EXPORTS), use it as is; otherwise, prepend...
4767 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4768 cp $export_symbols $output_objdir/$soname.def;
4769 else
4770 echo EXPORTS > $output_objdir/$soname.def;
4771 cat $export_symbols >> $output_objdir/$soname.def;
4772 fi~
4773 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4774 else
4775 _LT_TAGVAR(ld_shlibs, $1)=no
4776 fi
4777 ;;
4778
4779 haiku*)
4780 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4781 _LT_TAGVAR(link_all_deplibs, $1)=yes
4782 ;;
4783
4784 interix[[3-9]]*)
4785 _LT_TAGVAR(hardcode_direct, $1)=no
4786 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4787 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4788 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4790 # Instead, shared libraries are loaded at an image base (0x10000000 by
4791 # default) and relocated if they conflict, which is a slow very memory
4792 # consuming and fragmenting process. To avoid this, we pick a random,
4793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4795 _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'
4796 _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'
4797 ;;
4798
4799 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
4800 tmp_diet=no
4801 if test "$host_os" = linux-dietlibc; then
4802 case $cc_basename in
4803 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4804 esac
4805 fi
4806 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4807 && test "$tmp_diet" = no
4808 then
4809 tmp_addflag=' $pic_flag'
4810 tmp_sharedflag='-shared'
4811 case $cc_basename,$host_cpu in
4812 pgcc*) # Portland Group C compiler
4813 _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'
4814 tmp_addflag=' $pic_flag'
4815 ;;
4816 pgf77* | pgf90* | pgf95* | pgfortran*)
4817 # Portland Group f77 and f90 compilers
4818 _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'
4819 tmp_addflag=' $pic_flag -Mnomain' ;;
4820 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4821 tmp_addflag=' -i_dynamic' ;;
4822 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
4823 tmp_addflag=' -i_dynamic -nofor_main' ;;
4824 ifc* | ifort*) # Intel Fortran compiler
4825 tmp_addflag=' -nofor_main' ;;
4826 lf95*) # Lahey Fortran 8.1
4827 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4828 tmp_sharedflag='--shared' ;;
4829 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4830 tmp_sharedflag='-qmkshrobj'
4831 tmp_addflag= ;;
4832 nvcc*) # Cuda Compiler Driver 2.2
4833 _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'
4834 _LT_TAGVAR(compiler_needs_object, $1)=yes
4835 ;;
4836 esac
4837 case `$CC -V 2>&1 | sed 5q` in
4838 *Sun\ C*) # Sun C 5.9
4839 _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'
4840 _LT_TAGVAR(compiler_needs_object, $1)=yes
4841 tmp_sharedflag='-G' ;;
4842 *Sun\ F*) # Sun Fortran 8.3
4843 tmp_sharedflag='-G' ;;
4844 esac
4845 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4846
4847 if test "x$supports_anon_versioning" = xyes; then
4848 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4849 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4850 echo "local: *; };" >> $output_objdir/$libname.ver~
4851 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4852 fi
4853
4854 case $cc_basename in
4855 xlf* | bgf* | bgxlf* | mpixlf*)
4856 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4857 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4858 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4859 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4860 if test "x$supports_anon_versioning" = xyes; then
4861 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4863 echo "local: *; };" >> $output_objdir/$libname.ver~
4864 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4865 fi
4866 ;;
4867 esac
4868 else
4869 _LT_TAGVAR(ld_shlibs, $1)=no
4870 fi
4871 ;;
4872
4873 netbsd*)
4874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4875 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4876 wlarc=
4877 else
4878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4879 _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'
4880 fi
4881 ;;
4882
4883 solaris*)
4884 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4885 _LT_TAGVAR(ld_shlibs, $1)=no
4886 cat <<_LT_EOF 1>&2
4887
4888 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4889 *** create shared libraries on Solaris systems. Therefore, libtool
4890 *** is disabling shared libraries support. We urge you to upgrade GNU
4891 *** binutils to release 2.9.1 or newer. Another option is to modify
4892 *** your PATH or compiler configuration so that the native linker is
4893 *** used, and then restart.
4894
4895 _LT_EOF
4896 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4897 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4898 _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'
4899 else
4900 _LT_TAGVAR(ld_shlibs, $1)=no
4901 fi
4902 ;;
4903
4904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4905 case `$LD -v 2>&1` in
4906 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4907 _LT_TAGVAR(ld_shlibs, $1)=no
4908 cat <<_LT_EOF 1>&2
4909
4910 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
4911 *** reliably create shared libraries on SCO systems. Therefore, libtool
4912 *** is disabling shared libraries support. We urge you to upgrade GNU
4913 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
4914 *** your PATH or compiler configuration so that the native linker is
4915 *** used, and then restart.
4916
4917 _LT_EOF
4918 ;;
4919 *)
4920 # For security reasons, it is highly recommended that you always
4921 # use absolute paths for naming shared libraries, and exclude the
4922 # DT_RUNPATH tag from executables and libraries. But doing so
4923 # requires that you compile everything twice, which is a pain.
4924 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4925 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4926 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4927 _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'
4928 else
4929 _LT_TAGVAR(ld_shlibs, $1)=no
4930 fi
4931 ;;
4932 esac
4933 ;;
4934
4935 sunos4*)
4936 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4937 wlarc=
4938 _LT_TAGVAR(hardcode_direct, $1)=yes
4939 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4940 ;;
4941
4942 *)
4943 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4944 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4945 _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'
4946 else
4947 _LT_TAGVAR(ld_shlibs, $1)=no
4948 fi
4949 ;;
4950 esac
4951
4952 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4953 runpath_var=
4954 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4955 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4956 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4957 fi
4958 else
4959 # PORTME fill in a description of your system's linker (not GNU ld)
4960 case $host_os in
4961 aix3*)
4962 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4963 _LT_TAGVAR(always_export_symbols, $1)=yes
4964 _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'
4965 # Note: this linker hardcodes the directories in LIBPATH if there
4966 # are no directories specified by -L.
4967 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4968 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4969 # Neither direct hardcoding nor static linking is supported with a
4970 # broken collect2.
4971 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4972 fi
4973 ;;
4974
4975 aix[[4-9]]*)
4976 if test "$host_cpu" = ia64; then
4977 # On IA64, the linker does run time linking by default, so we don't
4978 # have to do anything special.
4979 aix_use_runtimelinking=no
4980 exp_sym_flag='-Bexport'
4981 no_entry_flag=""
4982 else
4983 # If we're using GNU nm, then we don't want the "-C" option.
4984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4985 # Also, AIX nm treats weak defined symbols like other global
4986 # defined symbols, whereas GNU nm marks them as "W".
4987 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4988 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4989 else
4990 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4991 fi
4992 aix_use_runtimelinking=no
4993
4994 # Test if we are trying to use run time linking or normal
4995 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4996 # need to do runtime linking.
4997 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4998 for ld_flag in $LDFLAGS; do
4999 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5000 aix_use_runtimelinking=yes
5001 break
5002 fi
5003 done
5004 ;;
5005 esac
5006
5007 exp_sym_flag='-bexport'
5008 no_entry_flag='-bnoentry'
5009 fi
5010
5011 # When large executables or shared objects are built, AIX ld can
5012 # have problems creating the table of contents. If linking a library
5013 # or program results in "error TOC overflow" add -mminimal-toc to
5014 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5015 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5016
5017 _LT_TAGVAR(archive_cmds, $1)=''
5018 _LT_TAGVAR(hardcode_direct, $1)=yes
5019 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5020 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5021 _LT_TAGVAR(link_all_deplibs, $1)=yes
5022 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5023
5024 if test "$GCC" = yes; then
5025 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5026 # We only want to do this on AIX 4.2 and lower, the check
5027 # below for broken collect2 doesn't work under 4.3+
5028 collect2name=`${CC} -print-prog-name=collect2`
5029 if test -f "$collect2name" &&
5030 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5031 then
5032 # We have reworked collect2
5033 :
5034 else
5035 # We have old collect2
5036 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5037 # It fails to find uninstalled libraries when the uninstalled
5038 # path is not listed in the libpath. Setting hardcode_minus_L
5039 # to unsupported forces relinking
5040 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5041 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5042 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5043 fi
5044 ;;
5045 esac
5046 shared_flag='-shared'
5047 if test "$aix_use_runtimelinking" = yes; then
5048 shared_flag="$shared_flag "'${wl}-G'
5049 fi
5050 else
5051 # not using gcc
5052 if test "$host_cpu" = ia64; then
5053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5054 # chokes on -Wl,-G. The following line is correct:
5055 shared_flag='-G'
5056 else
5057 if test "$aix_use_runtimelinking" = yes; then
5058 shared_flag='${wl}-G'
5059 else
5060 shared_flag='${wl}-bM:SRE'
5061 fi
5062 fi
5063 fi
5064
5065 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5066 # It seems that -bexpall does not export symbols beginning with
5067 # underscore (_), so it is better to generate a list of symbols to export.
5068 _LT_TAGVAR(always_export_symbols, $1)=yes
5069 if test "$aix_use_runtimelinking" = yes; then
5070 # Warning - without using the other runtime loading flags (-brtl),
5071 # -berok will link without error, but may produce a broken library.
5072 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5073 # Determine the default libpath from the value encoded in an
5074 # empty executable.
5075 _LT_SYS_MODULE_PATH_AIX([$1])
5076 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5077 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5078 else
5079 if test "$host_cpu" = ia64; then
5080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5081 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5082 _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"
5083 else
5084 # Determine the default libpath from the value encoded in an
5085 # empty executable.
5086 _LT_SYS_MODULE_PATH_AIX([$1])
5087 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5088 # Warning - without using the other run time loading flags,
5089 # -berok will link without error, but may produce a broken library.
5090 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5091 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5092 if test "$with_gnu_ld" = yes; then
5093 # We only use this code for GNU lds that support --whole-archive.
5094 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5095 else
5096 # Exported symbols can be pulled into shared objects from archives
5097 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5098 fi
5099 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5100 # This is similar to how AIX traditionally builds its shared libraries.
5101 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5102 fi
5103 fi
5104 ;;
5105
5106 amigaos*)
5107 case $host_cpu in
5108 powerpc)
5109 # see comment about AmigaOS4 .so support
5110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5111 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5112 ;;
5113 m68k)
5114 _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)'
5115 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5116 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5117 ;;
5118 esac
5119 ;;
5120
5121 bsdi[[45]]*)
5122 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5123 ;;
5124
5125 cygwin* | mingw* | pw32* | cegcc*)
5126 # When not using gcc, we currently assume that we are using
5127 # Microsoft Visual C++.
5128 # hardcode_libdir_flag_spec is actually meaningless, as there is
5129 # no search path for DLLs.
5130 case $cc_basename in
5131 cl*)
5132 # Native MSVC
5133 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5134 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5135 _LT_TAGVAR(always_export_symbols, $1)=yes
5136 _LT_TAGVAR(file_list_spec, $1)='@'
5137 # Tell ltmain to make .lib files, not .a files.
5138 libext=lib
5139 # Tell ltmain to make .dll files, not .so files.
5140 shrext_cmds=".dll"
5141 # FIXME: Setting linknames here is a bad hack.
5142 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5143 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5144 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5145 else
5146 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5147 fi~
5148 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5149 linknames='
5150 # The linker will not automatically build a static lib if we build a DLL.
5151 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5152 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5153 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5154 _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'
5155 # Don't use ranlib
5156 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5157 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5158 lt_tool_outputfile="@TOOL_OUTPUT@"~
5159 case $lt_outputfile in
5160 *.exe|*.EXE) ;;
5161 *)
5162 lt_outputfile="$lt_outputfile.exe"
5163 lt_tool_outputfile="$lt_tool_outputfile.exe"
5164 ;;
5165 esac~
5166 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5167 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5168 $RM "$lt_outputfile.manifest";
5169 fi'
5170 ;;
5171 *)
5172 # Assume MSVC wrapper
5173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5174 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5175 # Tell ltmain to make .lib files, not .a files.
5176 libext=lib
5177 # Tell ltmain to make .dll files, not .so files.
5178 shrext_cmds=".dll"
5179 # FIXME: Setting linknames here is a bad hack.
5180 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5181 # The linker will automatically build a .lib file if we build a DLL.
5182 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5183 # FIXME: Should let the user specify the lib program.
5184 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5185 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5186 ;;
5187 esac
5188 ;;
5189
5190 darwin* | rhapsody*)
5191 _LT_DARWIN_LINKER_FEATURES($1)
5192 ;;
5193
5194 dgux*)
5195 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5197 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5198 ;;
5199
5200 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5201 # support. Future versions do this automatically, but an explicit c++rt0.o
5202 # does not break anything, and helps significantly (at the cost of a little
5203 # extra space).
5204 freebsd2.2*)
5205 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5206 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5207 _LT_TAGVAR(hardcode_direct, $1)=yes
5208 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5209 ;;
5210
5211 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5212 freebsd2.*)
5213 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5214 _LT_TAGVAR(hardcode_direct, $1)=yes
5215 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5216 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5217 ;;
5218
5219 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5220 freebsd* | dragonfly*)
5221 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5222 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5223 _LT_TAGVAR(hardcode_direct, $1)=yes
5224 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5225 ;;
5226
5227 hpux9*)
5228 if test "$GCC" = yes; then
5229 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5230 else
5231 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5232 fi
5233 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5234 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5235 _LT_TAGVAR(hardcode_direct, $1)=yes
5236
5237 # hardcode_minus_L: Not really in the search PATH,
5238 # but as the default location of the library.
5239 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5240 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5241 ;;
5242
5243 hpux10*)
5244 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5245 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5246 else
5247 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5248 fi
5249 if test "$with_gnu_ld" = no; then
5250 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5251 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5252 _LT_TAGVAR(hardcode_direct, $1)=yes
5253 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5254 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5255 # hardcode_minus_L: Not really in the search PATH,
5256 # but as the default location of the library.
5257 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5258 fi
5259 ;;
5260
5261 hpux11*)
5262 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5263 case $host_cpu in
5264 hppa*64*)
5265 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5266 ;;
5267 ia64*)
5268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5269 ;;
5270 *)
5271 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5272 ;;
5273 esac
5274 else
5275 case $host_cpu in
5276 hppa*64*)
5277 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5278 ;;
5279 ia64*)
5280 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5281 ;;
5282 *)
5283 m4_if($1, [], [
5284 # Older versions of the 11.00 compiler do not understand -b yet
5285 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5286 _LT_LINKER_OPTION([if $CC understands -b],
5287 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5288 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5289 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5290 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5291 ;;
5292 esac
5293 fi
5294 if test "$with_gnu_ld" = no; then
5295 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5296 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5297
5298 case $host_cpu in
5299 hppa*64*|ia64*)
5300 _LT_TAGVAR(hardcode_direct, $1)=no
5301 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5302 ;;
5303 *)
5304 _LT_TAGVAR(hardcode_direct, $1)=yes
5305 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5306 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5307
5308 # hardcode_minus_L: Not really in the search PATH,
5309 # but as the default location of the library.
5310 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5311 ;;
5312 esac
5313 fi
5314 ;;
5315
5316 irix5* | irix6* | nonstopux*)
5317 if test "$GCC" = yes; then
5318 _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'
5319 # Try to use the -exported_symbol ld option, if it does not
5320 # work, assume that -exports_file does not work either and
5321 # implicitly export all symbols.
5322 # This should be the same for all languages, so no per-tag cache variable.
5323 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5324 [lt_cv_irix_exported_symbol],
5325 [save_LDFLAGS="$LDFLAGS"
5326 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5327 AC_LINK_IFELSE(
5328 [AC_LANG_SOURCE(
5329 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5330 [C++], [[int foo (void) { return 0; }]],
5331 [Fortran 77], [[
5332 subroutine foo
5333 end]],
5334 [Fortran], [[
5335 subroutine foo
5336 end]])])],
5337 [lt_cv_irix_exported_symbol=yes],
5338 [lt_cv_irix_exported_symbol=no])
5339 LDFLAGS="$save_LDFLAGS"])
5340 if test "$lt_cv_irix_exported_symbol" = yes; then
5341 _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'
5342 fi
5343 else
5344 _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'
5345 _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'
5346 fi
5347 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5348 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5349 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5350 _LT_TAGVAR(inherit_rpath, $1)=yes
5351 _LT_TAGVAR(link_all_deplibs, $1)=yes
5352 ;;
5353
5354 netbsd*)
5355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5356 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5357 else
5358 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5359 fi
5360 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5361 _LT_TAGVAR(hardcode_direct, $1)=yes
5362 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5363 ;;
5364
5365 newsos6)
5366 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5367 _LT_TAGVAR(hardcode_direct, $1)=yes
5368 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5369 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5370 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5371 ;;
5372
5373 *nto* | *qnx*)
5374 ;;
5375
5376 openbsd*)
5377 if test -f /usr/libexec/ld.so; then
5378 _LT_TAGVAR(hardcode_direct, $1)=yes
5379 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5380 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5382 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5383 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5384 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5385 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5386 else
5387 case $host_os in
5388 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5389 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5391 ;;
5392 *)
5393 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5394 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5395 ;;
5396 esac
5397 fi
5398 else
5399 _LT_TAGVAR(ld_shlibs, $1)=no
5400 fi
5401 ;;
5402
5403 os2*)
5404 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5405 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5406 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5407 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5408 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5409 ;;
5410
5411 osf3*)
5412 if test "$GCC" = yes; then
5413 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5414 _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'
5415 else
5416 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5417 _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'
5418 fi
5419 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5420 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5421 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5422 ;;
5423
5424 osf4* | osf5*) # as osf3* with the addition of -msym flag
5425 if test "$GCC" = yes; then
5426 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5427 _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'
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5429 else
5430 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5431 _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'
5432 _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~
5433 $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'
5434
5435 # Both c and cxx compiler support -rpath directly
5436 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5437 fi
5438 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5439 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5440 ;;
5441
5442 solaris*)
5443 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5444 if test "$GCC" = yes; then
5445 wlarc='${wl}'
5446 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5447 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5448 $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'
5449 else
5450 case `$CC -V 2>&1` in
5451 *"Compilers 5.0"*)
5452 wlarc=''
5453 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5454 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5455 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5456 ;;
5457 *)
5458 wlarc='${wl}'
5459 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5460 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5461 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5462 ;;
5463 esac
5464 fi
5465 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5466 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5467 case $host_os in
5468 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5469 *)
5470 # The compiler driver will combine and reorder linker options,
5471 # but understands `-z linker_flag'. GCC discards it without `$wl',
5472 # but is careful enough not to reorder.
5473 # Supported since Solaris 2.6 (maybe 2.5.1?)
5474 if test "$GCC" = yes; then
5475 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5476 else
5477 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5478 fi
5479 ;;
5480 esac
5481 _LT_TAGVAR(link_all_deplibs, $1)=yes
5482 ;;
5483
5484 sunos4*)
5485 if test "x$host_vendor" = xsequent; then
5486 # Use $CC to link under sequent, because it throws in some extra .o
5487 # files that make .init and .fini sections work.
5488 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5489 else
5490 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5491 fi
5492 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5493 _LT_TAGVAR(hardcode_direct, $1)=yes
5494 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5495 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5496 ;;
5497
5498 sysv4)
5499 case $host_vendor in
5500 sni)
5501 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5502 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5503 ;;
5504 siemens)
5505 ## LD is ld it makes a PLAMLIB
5506 ## CC just makes a GrossModule.
5507 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5508 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5509 _LT_TAGVAR(hardcode_direct, $1)=no
5510 ;;
5511 motorola)
5512 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5513 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5514 ;;
5515 esac
5516 runpath_var='LD_RUN_PATH'
5517 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5518 ;;
5519
5520 sysv4.3*)
5521 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5522 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5523 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5524 ;;
5525
5526 sysv4*MP*)
5527 if test -d /usr/nec; then
5528 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5529 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5530 runpath_var=LD_RUN_PATH
5531 hardcode_runpath_var=yes
5532 _LT_TAGVAR(ld_shlibs, $1)=yes
5533 fi
5534 ;;
5535
5536 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5537 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5538 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5539 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5540 runpath_var='LD_RUN_PATH'
5541
5542 if test "$GCC" = yes; then
5543 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5544 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5545 else
5546 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5547 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5548 fi
5549 ;;
5550
5551 sysv5* | sco3.2v5* | sco5v6*)
5552 # Note: We can NOT use -z defs as we might desire, because we do not
5553 # link with -lc, and that would cause any symbols used from libc to
5554 # always be unresolved, which means just about no library would
5555 # ever link correctly. If we're not using GNU ld we use -z text
5556 # though, which does catch some bad symbols but isn't as heavy-handed
5557 # as -z defs.
5558 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5559 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5560 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5561 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5562 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5563 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5564 _LT_TAGVAR(link_all_deplibs, $1)=yes
5565 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5566 runpath_var='LD_RUN_PATH'
5567
5568 if test "$GCC" = yes; then
5569 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5570 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5571 else
5572 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5573 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5574 fi
5575 ;;
5576
5577 uts4*)
5578 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5579 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5580 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5581 ;;
5582
5583 *)
5584 _LT_TAGVAR(ld_shlibs, $1)=no
5585 ;;
5586 esac
5587
5588 if test x$host_vendor = xsni; then
5589 case $host in
5590 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5591 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5592 ;;
5593 esac
5594 fi
5595 fi
5596 ])
5597 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5598 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5599
5600 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5601
5602 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5603 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5604 _LT_DECL([], [extract_expsyms_cmds], [2],
5605 [The commands to extract the exported symbol list from a shared archive])
5606
5607 #
5608 # Do we need to explicitly link libc?
5609 #
5610 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5611 x|xyes)
5612 # Assume -lc should be added
5613 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5614
5615 if test "$enable_shared" = yes && test "$GCC" = yes; then
5616 case $_LT_TAGVAR(archive_cmds, $1) in
5617 *'~'*)
5618 # FIXME: we may have to deal with multi-command sequences.
5619 ;;
5620 '$CC '*)
5621 # Test whether the compiler implicitly links with -lc since on some
5622 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5623 # to ld, don't add -lc before -lgcc.
5624 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5625 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5626 [$RM conftest*
5627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5628
5629 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5630 soname=conftest
5631 lib=conftest
5632 libobjs=conftest.$ac_objext
5633 deplibs=
5634 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5635 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5636 compiler_flags=-v
5637 linker_flags=-v
5638 verstring=
5639 output_objdir=.
5640 libname=conftest
5641 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5642 _LT_TAGVAR(allow_undefined_flag, $1)=
5643 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5644 then
5645 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5646 else
5647 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5648 fi
5649 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5650 else
5651 cat conftest.err 1>&5
5652 fi
5653 $RM conftest*
5654 ])
5655 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5656 ;;
5657 esac
5658 fi
5659 ;;
5660 esac
5661
5662 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5663 [Whether or not to add -lc for building shared libraries])
5664 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5665 [enable_shared_with_static_runtimes], [0],
5666 [Whether or not to disallow shared libs when runtime libs are static])
5667 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5668 [Compiler flag to allow reflexive dlopens])
5669 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5670 [Compiler flag to generate shared objects directly from archives])
5671 _LT_TAGDECL([], [compiler_needs_object], [1],
5672 [Whether the compiler copes with passing no objects directly])
5673 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5674 [Create an old-style archive from a shared archive])
5675 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5676 [Create a temporary old-style archive to link instead of a shared archive])
5677 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5678 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5679 _LT_TAGDECL([], [module_cmds], [2],
5680 [Commands used to build a loadable module if different from building
5681 a shared archive.])
5682 _LT_TAGDECL([], [module_expsym_cmds], [2])
5683 _LT_TAGDECL([], [with_gnu_ld], [1],
5684 [Whether we are building with GNU ld or not])
5685 _LT_TAGDECL([], [allow_undefined_flag], [1],
5686 [Flag that allows shared libraries with undefined symbols to be built])
5687 _LT_TAGDECL([], [no_undefined_flag], [1],
5688 [Flag that enforces no undefined symbols])
5689 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5690 [Flag to hardcode $libdir into a binary during linking.
5691 This must work even if $libdir does not exist])
5692 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5693 [Whether we need a single "-rpath" flag with a separated argument])
5694 _LT_TAGDECL([], [hardcode_direct], [0],
5695 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5696 DIR into the resulting binary])
5697 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5698 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5699 DIR into the resulting binary and the resulting library dependency is
5700 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5701 library is relocated])
5702 _LT_TAGDECL([], [hardcode_minus_L], [0],
5703 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5704 into the resulting binary])
5705 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5706 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5707 into the resulting binary])
5708 _LT_TAGDECL([], [hardcode_automatic], [0],
5709 [Set to "yes" if building a shared library automatically hardcodes DIR
5710 into the library and all subsequent libraries and executables linked
5711 against it])
5712 _LT_TAGDECL([], [inherit_rpath], [0],
5713 [Set to yes if linker adds runtime paths of dependent libraries
5714 to runtime path list])
5715 _LT_TAGDECL([], [link_all_deplibs], [0],
5716 [Whether libtool must link a program against all its dependency libraries])
5717 _LT_TAGDECL([], [always_export_symbols], [0],
5718 [Set to "yes" if exported symbols are required])
5719 _LT_TAGDECL([], [export_symbols_cmds], [2],
5720 [The commands to list exported symbols])
5721 _LT_TAGDECL([], [exclude_expsyms], [1],
5722 [Symbols that should not be listed in the preloaded symbols])
5723 _LT_TAGDECL([], [include_expsyms], [1],
5724 [Symbols that must always be exported])
5725 _LT_TAGDECL([], [prelink_cmds], [2],
5726 [Commands necessary for linking programs (against libraries) with templates])
5727 _LT_TAGDECL([], [postlink_cmds], [2],
5728 [Commands necessary for finishing linking programs])
5729 _LT_TAGDECL([], [file_list_spec], [1],
5730 [Specify filename containing input files])
5731 dnl FIXME: Not yet implemented
5732 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5733 dnl [Compiler flag to generate thread safe objects])
5734 ])# _LT_LINKER_SHLIBS
5735
5736
5737 # _LT_LANG_C_CONFIG([TAG])
5738 # ------------------------
5739 # Ensure that the configuration variables for a C compiler are suitably
5740 # defined. These variables are subsequently used by _LT_CONFIG to write
5741 # the compiler configuration to `libtool'.
5742 m4_defun([_LT_LANG_C_CONFIG],
5743 [m4_require([_LT_DECL_EGREP])dnl
5744 lt_save_CC="$CC"
5745 AC_LANG_PUSH(C)
5746
5747 # Source file extension for C test sources.
5748 ac_ext=c
5749
5750 # Object file extension for compiled C test sources.
5751 objext=o
5752 _LT_TAGVAR(objext, $1)=$objext
5753
5754 # Code to be used in simple compile tests
5755 lt_simple_compile_test_code="int some_variable = 0;"
5756
5757 # Code to be used in simple link tests
5758 lt_simple_link_test_code='int main(){return(0);}'
5759
5760 _LT_TAG_COMPILER
5761 # Save the default compiler, since it gets overwritten when the other
5762 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5763 compiler_DEFAULT=$CC
5764
5765 # save warnings/boilerplate of simple test code
5766 _LT_COMPILER_BOILERPLATE
5767 _LT_LINKER_BOILERPLATE
5768
5769 ## CAVEAT EMPTOR:
5770 ## There is no encapsulation within the following macros, do not change
5771 ## the running order or otherwise move them around unless you know exactly
5772 ## what you are doing...
5773 if test -n "$compiler"; then
5774 _LT_COMPILER_NO_RTTI($1)
5775 _LT_COMPILER_PIC($1)
5776 _LT_COMPILER_C_O($1)
5777 _LT_COMPILER_FILE_LOCKS($1)
5778 _LT_LINKER_SHLIBS($1)
5779 _LT_SYS_DYNAMIC_LINKER($1)
5780 _LT_LINKER_HARDCODE_LIBPATH($1)
5781 LT_SYS_DLOPEN_SELF
5782 _LT_CMD_STRIPLIB
5783
5784 # Report which library types will actually be built
5785 AC_MSG_CHECKING([if libtool supports shared libraries])
5786 AC_MSG_RESULT([$can_build_shared])
5787
5788 AC_MSG_CHECKING([whether to build shared libraries])
5789 test "$can_build_shared" = "no" && enable_shared=no
5790
5791 # On AIX, shared libraries and static libraries use the same namespace, and
5792 # are all built from PIC.
5793 case $host_os in
5794 aix3*)
5795 test "$enable_shared" = yes && enable_static=no
5796 if test -n "$RANLIB"; then
5797 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5798 postinstall_cmds='$RANLIB $lib'
5799 fi
5800 ;;
5801
5802 aix[[4-9]]*)
5803 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5804 test "$enable_shared" = yes && enable_static=no
5805 fi
5806 ;;
5807 esac
5808 AC_MSG_RESULT([$enable_shared])
5809
5810 AC_MSG_CHECKING([whether to build static libraries])
5811 # Make sure either enable_shared or enable_static is yes.
5812 test "$enable_shared" = yes || enable_static=yes
5813 AC_MSG_RESULT([$enable_static])
5814
5815 _LT_CONFIG($1)
5816 fi
5817 AC_LANG_POP
5818 CC="$lt_save_CC"
5819 ])# _LT_LANG_C_CONFIG
5820
5821
5822 # _LT_LANG_CXX_CONFIG([TAG])
5823 # --------------------------
5824 # Ensure that the configuration variables for a C++ compiler are suitably
5825 # defined. These variables are subsequently used by _LT_CONFIG to write
5826 # the compiler configuration to `libtool'.
5827 m4_defun([_LT_LANG_CXX_CONFIG],
5828 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5829 m4_require([_LT_DECL_EGREP])dnl
5830 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5831 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5832 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5833 (test "X$CXX" != "Xg++"))) ; then
5834 AC_PROG_CXXCPP
5835 else
5836 _lt_caught_CXX_error=yes
5837 fi
5838
5839 AC_LANG_PUSH(C++)
5840 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5841 _LT_TAGVAR(allow_undefined_flag, $1)=
5842 _LT_TAGVAR(always_export_symbols, $1)=no
5843 _LT_TAGVAR(archive_expsym_cmds, $1)=
5844 _LT_TAGVAR(compiler_needs_object, $1)=no
5845 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5846 _LT_TAGVAR(hardcode_direct, $1)=no
5847 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5849 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5850 _LT_TAGVAR(hardcode_minus_L, $1)=no
5851 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5852 _LT_TAGVAR(hardcode_automatic, $1)=no
5853 _LT_TAGVAR(inherit_rpath, $1)=no
5854 _LT_TAGVAR(module_cmds, $1)=
5855 _LT_TAGVAR(module_expsym_cmds, $1)=
5856 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5857 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5858 _LT_TAGVAR(reload_flag, $1)=$reload_flag
5859 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5860 _LT_TAGVAR(no_undefined_flag, $1)=
5861 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5862 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5863
5864 # Source file extension for C++ test sources.
5865 ac_ext=cpp
5866
5867 # Object file extension for compiled C++ test sources.
5868 objext=o
5869 _LT_TAGVAR(objext, $1)=$objext
5870
5871 # No sense in running all these tests if we already determined that
5872 # the CXX compiler isn't working. Some variables (like enable_shared)
5873 # are currently assumed to apply to all compilers on this platform,
5874 # and will be corrupted by setting them based on a non-working compiler.
5875 if test "$_lt_caught_CXX_error" != yes; then
5876 # Code to be used in simple compile tests
5877 lt_simple_compile_test_code="int some_variable = 0;"
5878
5879 # Code to be used in simple link tests
5880 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5881
5882 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5883 _LT_TAG_COMPILER
5884
5885 # save warnings/boilerplate of simple test code
5886 _LT_COMPILER_BOILERPLATE
5887 _LT_LINKER_BOILERPLATE
5888
5889 # Allow CC to be a program name with arguments.
5890 lt_save_CC=$CC
5891 lt_save_CFLAGS=$CFLAGS
5892 lt_save_LD=$LD
5893 lt_save_GCC=$GCC
5894 GCC=$GXX
5895 lt_save_with_gnu_ld=$with_gnu_ld
5896 lt_save_path_LD=$lt_cv_path_LD
5897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5899 else
5900 $as_unset lt_cv_prog_gnu_ld
5901 fi
5902 if test -n "${lt_cv_path_LDCXX+set}"; then
5903 lt_cv_path_LD=$lt_cv_path_LDCXX
5904 else
5905 $as_unset lt_cv_path_LD
5906 fi
5907 test -z "${LDCXX+set}" || LD=$LDCXX
5908 CC=${CXX-"c++"}
5909 CFLAGS=$CXXFLAGS
5910 compiler=$CC
5911 _LT_TAGVAR(compiler, $1)=$CC
5912 _LT_CC_BASENAME([$compiler])
5913
5914 if test -n "$compiler"; then
5915 # We don't want -fno-exception when compiling C++ code, so set the
5916 # no_builtin_flag separately
5917 if test "$GXX" = yes; then
5918 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5919 else
5920 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5921 fi
5922
5923 if test "$GXX" = yes; then
5924 # Set up default GNU C++ configuration
5925
5926 LT_PATH_LD
5927
5928 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5929 # archiving commands below assume that GNU ld is being used.
5930 if test "$with_gnu_ld" = yes; then
5931 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5932 _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'
5933
5934 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5935 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5936
5937 # If archive_cmds runs LD, not CC, wlarc should be empty
5938 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5939 # investigate it a little bit more. (MM)
5940 wlarc='${wl}'
5941
5942 # ancient GNU ld didn't support --whole-archive et. al.
5943 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5944 $GREP 'no-whole-archive' > /dev/null; then
5945 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5946 else
5947 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5948 fi
5949 else
5950 with_gnu_ld=no
5951 wlarc=
5952
5953 # A generic and very simple default shared library creation
5954 # command for GNU C++ for the case where it uses the native
5955 # linker, instead of GNU ld. If possible, this setting should
5956 # overridden to take advantage of the native linker features on
5957 # the platform it is being used on.
5958 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5959 fi
5960
5961 # Commands to make compiler produce verbose output that lists
5962 # what "hidden" libraries, object files and flags are used when
5963 # linking a shared library.
5964 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
5965
5966 else
5967 GXX=no
5968 with_gnu_ld=no
5969 wlarc=
5970 fi
5971
5972 # PORTME: fill in a description of your system's C++ link characteristics
5973 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5974 _LT_TAGVAR(ld_shlibs, $1)=yes
5975 case $host_os in
5976 aix3*)
5977 # FIXME: insert proper C++ library support
5978 _LT_TAGVAR(ld_shlibs, $1)=no
5979 ;;
5980 aix[[4-9]]*)
5981 if test "$host_cpu" = ia64; then
5982 # On IA64, the linker does run time linking by default, so we don't
5983 # have to do anything special.
5984 aix_use_runtimelinking=no
5985 exp_sym_flag='-Bexport'
5986 no_entry_flag=""
5987 else
5988 aix_use_runtimelinking=no
5989
5990 # Test if we are trying to use run time linking or normal
5991 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5992 # need to do runtime linking.
5993 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5994 for ld_flag in $LDFLAGS; do
5995 case $ld_flag in
5996 *-brtl*)
5997 aix_use_runtimelinking=yes
5998 break
5999 ;;
6000 esac
6001 done
6002 ;;
6003 esac
6004
6005 exp_sym_flag='-bexport'
6006 no_entry_flag='-bnoentry'
6007 fi
6008
6009 # When large executables or shared objects are built, AIX ld can
6010 # have problems creating the table of contents. If linking a library
6011 # or program results in "error TOC overflow" add -mminimal-toc to
6012 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6013 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6014
6015 _LT_TAGVAR(archive_cmds, $1)=''
6016 _LT_TAGVAR(hardcode_direct, $1)=yes
6017 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6018 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6019 _LT_TAGVAR(link_all_deplibs, $1)=yes
6020 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6021
6022 if test "$GXX" = yes; then
6023 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6024 # We only want to do this on AIX 4.2 and lower, the check
6025 # below for broken collect2 doesn't work under 4.3+
6026 collect2name=`${CC} -print-prog-name=collect2`
6027 if test -f "$collect2name" &&
6028 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6029 then
6030 # We have reworked collect2
6031 :
6032 else
6033 # We have old collect2
6034 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6035 # It fails to find uninstalled libraries when the uninstalled
6036 # path is not listed in the libpath. Setting hardcode_minus_L
6037 # to unsupported forces relinking
6038 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6040 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6041 fi
6042 esac
6043 shared_flag='-shared'
6044 if test "$aix_use_runtimelinking" = yes; then
6045 shared_flag="$shared_flag "'${wl}-G'
6046 fi
6047 else
6048 # not using gcc
6049 if test "$host_cpu" = ia64; then
6050 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6051 # chokes on -Wl,-G. The following line is correct:
6052 shared_flag='-G'
6053 else
6054 if test "$aix_use_runtimelinking" = yes; then
6055 shared_flag='${wl}-G'
6056 else
6057 shared_flag='${wl}-bM:SRE'
6058 fi
6059 fi
6060 fi
6061
6062 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6063 # It seems that -bexpall does not export symbols beginning with
6064 # underscore (_), so it is better to generate a list of symbols to
6065 # export.
6066 _LT_TAGVAR(always_export_symbols, $1)=yes
6067 if test "$aix_use_runtimelinking" = yes; then
6068 # Warning - without using the other runtime loading flags (-brtl),
6069 # -berok will link without error, but may produce a broken library.
6070 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6071 # Determine the default libpath from the value encoded in an empty
6072 # executable.
6073 _LT_SYS_MODULE_PATH_AIX([$1])
6074 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6075
6076 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6077 else
6078 if test "$host_cpu" = ia64; then
6079 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6080 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6081 _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"
6082 else
6083 # Determine the default libpath from the value encoded in an
6084 # empty executable.
6085 _LT_SYS_MODULE_PATH_AIX([$1])
6086 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6087 # Warning - without using the other run time loading flags,
6088 # -berok will link without error, but may produce a broken library.
6089 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6090 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6091 if test "$with_gnu_ld" = yes; then
6092 # We only use this code for GNU lds that support --whole-archive.
6093 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6094 else
6095 # Exported symbols can be pulled into shared objects from archives
6096 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6097 fi
6098 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6099 # This is similar to how AIX traditionally builds its shared
6100 # libraries.
6101 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6102 fi
6103 fi
6104 ;;
6105
6106 beos*)
6107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6108 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6110 # support --undefined. This deserves some investigation. FIXME
6111 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6112 else
6113 _LT_TAGVAR(ld_shlibs, $1)=no
6114 fi
6115 ;;
6116
6117 chorus*)
6118 case $cc_basename in
6119 *)
6120 # FIXME: insert proper C++ library support
6121 _LT_TAGVAR(ld_shlibs, $1)=no
6122 ;;
6123 esac
6124 ;;
6125
6126 cygwin* | mingw* | pw32* | cegcc*)
6127 case $GXX,$cc_basename in
6128 ,cl* | no,cl*)
6129 # Native MSVC
6130 # hardcode_libdir_flag_spec is actually meaningless, as there is
6131 # no search path for DLLs.
6132 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6133 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6134 _LT_TAGVAR(always_export_symbols, $1)=yes
6135 _LT_TAGVAR(file_list_spec, $1)='@'
6136 # Tell ltmain to make .lib files, not .a files.
6137 libext=lib
6138 # Tell ltmain to make .dll files, not .so files.
6139 shrext_cmds=".dll"
6140 # FIXME: Setting linknames here is a bad hack.
6141 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6142 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6143 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6144 else
6145 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6146 fi~
6147 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6148 linknames='
6149 # The linker will not automatically build a static lib if we build a DLL.
6150 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6151 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6152 # Don't use ranlib
6153 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6154 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6155 lt_tool_outputfile="@TOOL_OUTPUT@"~
6156 case $lt_outputfile in
6157 *.exe|*.EXE) ;;
6158 *)
6159 lt_outputfile="$lt_outputfile.exe"
6160 lt_tool_outputfile="$lt_tool_outputfile.exe"
6161 ;;
6162 esac~
6163 func_to_tool_file "$lt_outputfile"~
6164 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6165 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6166 $RM "$lt_outputfile.manifest";
6167 fi'
6168 ;;
6169 *)
6170 # g++
6171 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6172 # as there is no search path for DLLs.
6173 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6174 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6175 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6176 _LT_TAGVAR(always_export_symbols, $1)=no
6177 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6178
6179 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6180 _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'
6181 # If the export-symbols file already is a .def file (1st line
6182 # is EXPORTS), use it as is; otherwise, prepend...
6183 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6184 cp $export_symbols $output_objdir/$soname.def;
6185 else
6186 echo EXPORTS > $output_objdir/$soname.def;
6187 cat $export_symbols >> $output_objdir/$soname.def;
6188 fi~
6189 $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'
6190 else
6191 _LT_TAGVAR(ld_shlibs, $1)=no
6192 fi
6193 ;;
6194 esac
6195 ;;
6196 darwin* | rhapsody*)
6197 _LT_DARWIN_LINKER_FEATURES($1)
6198 ;;
6199
6200 dgux*)
6201 case $cc_basename in
6202 ec++*)
6203 # FIXME: insert proper C++ library support
6204 _LT_TAGVAR(ld_shlibs, $1)=no
6205 ;;
6206 ghcx*)
6207 # Green Hills C++ Compiler
6208 # FIXME: insert proper C++ library support
6209 _LT_TAGVAR(ld_shlibs, $1)=no
6210 ;;
6211 *)
6212 # FIXME: insert proper C++ library support
6213 _LT_TAGVAR(ld_shlibs, $1)=no
6214 ;;
6215 esac
6216 ;;
6217
6218 freebsd2.*)
6219 # C++ shared libraries reported to be fairly broken before
6220 # switch to ELF
6221 _LT_TAGVAR(ld_shlibs, $1)=no
6222 ;;
6223
6224 freebsd-elf*)
6225 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6226 ;;
6227
6228 freebsd* | dragonfly*)
6229 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6230 # conventions
6231 _LT_TAGVAR(ld_shlibs, $1)=yes
6232 ;;
6233
6234 gnu*)
6235 ;;
6236
6237 haiku*)
6238 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6239 _LT_TAGVAR(link_all_deplibs, $1)=yes
6240 ;;
6241
6242 hpux9*)
6243 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6244 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6245 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6246 _LT_TAGVAR(hardcode_direct, $1)=yes
6247 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6248 # but as the default
6249 # location of the library.
6250
6251 case $cc_basename in
6252 CC*)
6253 # FIXME: insert proper C++ library support
6254 _LT_TAGVAR(ld_shlibs, $1)=no
6255 ;;
6256 aCC*)
6257 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6258 # Commands to make compiler produce verbose output that lists
6259 # what "hidden" libraries, object files and flags are used when
6260 # linking a shared library.
6261 #
6262 # There doesn't appear to be a way to prevent this compiler from
6263 # explicitly linking system object files so we need to strip them
6264 # from the output so that they don't get included in the library
6265 # dependencies.
6266 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"'
6267 ;;
6268 *)
6269 if test "$GXX" = yes; then
6270 _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6271 else
6272 # FIXME: insert proper C++ library support
6273 _LT_TAGVAR(ld_shlibs, $1)=no
6274 fi
6275 ;;
6276 esac
6277 ;;
6278
6279 hpux10*|hpux11*)
6280 if test $with_gnu_ld = no; then
6281 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6282 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6283
6284 case $host_cpu in
6285 hppa*64*|ia64*)
6286 ;;
6287 *)
6288 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6289 ;;
6290 esac
6291 fi
6292 case $host_cpu in
6293 hppa*64*|ia64*)
6294 _LT_TAGVAR(hardcode_direct, $1)=no
6295 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6296 ;;
6297 *)
6298 _LT_TAGVAR(hardcode_direct, $1)=yes
6299 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6300 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6301 # but as the default
6302 # location of the library.
6303 ;;
6304 esac
6305
6306 case $cc_basename in
6307 CC*)
6308 # FIXME: insert proper C++ library support
6309 _LT_TAGVAR(ld_shlibs, $1)=no
6310 ;;
6311 aCC*)
6312 case $host_cpu in
6313 hppa*64*)
6314 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6315 ;;
6316 ia64*)
6317 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6318 ;;
6319 *)
6320 _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'
6321 ;;
6322 esac
6323 # Commands to make compiler produce verbose output that lists
6324 # what "hidden" libraries, object files and flags are used when
6325 # linking a shared library.
6326 #
6327 # There doesn't appear to be a way to prevent this compiler from
6328 # explicitly linking system object files so we need to strip them
6329 # from the output so that they don't get included in the library
6330 # dependencies.
6331 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"'
6332 ;;
6333 *)
6334 if test "$GXX" = yes; then
6335 if test $with_gnu_ld = no; then
6336 case $host_cpu in
6337 hppa*64*)
6338 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6339 ;;
6340 ia64*)
6341 _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'
6342 ;;
6343 *)
6344 _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'
6345 ;;
6346 esac
6347 fi
6348 else
6349 # FIXME: insert proper C++ library support
6350 _LT_TAGVAR(ld_shlibs, $1)=no
6351 fi
6352 ;;
6353 esac
6354 ;;
6355
6356 interix[[3-9]]*)
6357 _LT_TAGVAR(hardcode_direct, $1)=no
6358 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6359 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6360 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6361 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6362 # Instead, shared libraries are loaded at an image base (0x10000000 by
6363 # default) and relocated if they conflict, which is a slow very memory
6364 # consuming and fragmenting process. To avoid this, we pick a random,
6365 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6366 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6367 _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'
6368 _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'
6369 ;;
6370 irix5* | irix6*)
6371 case $cc_basename in
6372 CC*)
6373 # SGI C++
6374 _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'
6375
6376 # Archives containing C++ object files must be created using
6377 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6378 # necessary to make sure instantiated templates are included
6379 # in the archive.
6380 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6381 ;;
6382 *)
6383 if test "$GXX" = yes; then
6384 if test "$with_gnu_ld" = no; then
6385 _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'
6386 else
6387 _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'
6388 fi
6389 fi
6390 _LT_TAGVAR(link_all_deplibs, $1)=yes
6391 ;;
6392 esac
6393 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6394 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6395 _LT_TAGVAR(inherit_rpath, $1)=yes
6396 ;;
6397
6398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6399 case $cc_basename in
6400 KCC*)
6401 # Kuck and Associates, Inc. (KAI) C++ Compiler
6402
6403 # KCC will only create a shared library if the output file
6404 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6405 # to its proper name (with version) after linking.
6406 _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'
6407 _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'
6408 # Commands to make compiler produce verbose output that lists
6409 # what "hidden" libraries, object files and flags are used when
6410 # linking a shared library.
6411 #
6412 # There doesn't appear to be a way to prevent this compiler from
6413 # explicitly linking system object files so we need to strip them
6414 # from the output so that they don't get included in the library
6415 # dependencies.
6416 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"'
6417
6418 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6419 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6420
6421 # Archives containing C++ object files must be created using
6422 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6423 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6424 ;;
6425 icpc* | ecpc* )
6426 # Intel C++
6427 with_gnu_ld=yes
6428 # version 8.0 and above of icpc choke on multiply defined symbols
6429 # if we add $predep_objects and $postdep_objects, however 7.1 and
6430 # earlier do not add the objects themselves.
6431 case `$CC -V 2>&1` in
6432 *"Version 7."*)
6433 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6434 _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'
6435 ;;
6436 *) # Version 8.0 or newer
6437 tmp_idyn=
6438 case $host_cpu in
6439 ia64*) tmp_idyn=' -i_dynamic';;
6440 esac
6441 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6442 _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'
6443 ;;
6444 esac
6445 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6446 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6447 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6448 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6449 ;;
6450 pgCC* | pgcpp*)
6451 # Portland Group C++ compiler
6452 case `$CC -V` in
6453 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
6454 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6455 rm -rf $tpldir~
6456 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6457 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
6458 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6459 rm -rf $tpldir~
6460 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6461 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6462 $RANLIB $oldlib'
6463 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6464 rm -rf $tpldir~
6465 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6466 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6467 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6468 rm -rf $tpldir~
6469 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6470 $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'
6471 ;;
6472 *) # Version 6 and above use weak symbols
6473 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6474 _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'
6475 ;;
6476 esac
6477
6478 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6479 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6480 _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'
6481 ;;
6482 cxx*)
6483 # Compaq C++
6484 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6485 _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'
6486
6487 runpath_var=LD_RUN_PATH
6488 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6489 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6490
6491 # Commands to make compiler produce verbose output that lists
6492 # what "hidden" libraries, object files and flags are used when
6493 # linking a shared library.
6494 #
6495 # There doesn't appear to be a way to prevent this compiler from
6496 # explicitly linking system object files so we need to strip them
6497 # from the output so that they don't get included in the library
6498 # dependencies.
6499 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'
6500 ;;
6501 xl* | mpixl* | bgxl*)
6502 # IBM XL 8.0 on PPC, with GNU ld
6503 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6504 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6505 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6506 if test "x$supports_anon_versioning" = xyes; then
6507 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6509 echo "local: *; };" >> $output_objdir/$libname.ver~
6510 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6511 fi
6512 ;;
6513 *)
6514 case `$CC -V 2>&1 | sed 5q` in
6515 *Sun\ C*)
6516 # Sun C++ 5.9
6517 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6518 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6519 _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'
6520 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6521 _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'
6522 _LT_TAGVAR(compiler_needs_object, $1)=yes
6523
6524 # Not sure whether something based on
6525 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6526 # would be better.
6527 output_verbose_link_cmd='func_echo_all'
6528
6529 # Archives containing C++ object files must be created using
6530 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6531 # necessary to make sure instantiated templates are included
6532 # in the archive.
6533 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6534 ;;
6535 esac
6536 ;;
6537 esac
6538 ;;
6539
6540 lynxos*)
6541 # FIXME: insert proper C++ library support
6542 _LT_TAGVAR(ld_shlibs, $1)=no
6543 ;;
6544
6545 m88k*)
6546 # FIXME: insert proper C++ library support
6547 _LT_TAGVAR(ld_shlibs, $1)=no
6548 ;;
6549
6550 mvs*)
6551 case $cc_basename in
6552 cxx*)
6553 # FIXME: insert proper C++ library support
6554 _LT_TAGVAR(ld_shlibs, $1)=no
6555 ;;
6556 *)
6557 # FIXME: insert proper C++ library support
6558 _LT_TAGVAR(ld_shlibs, $1)=no
6559 ;;
6560 esac
6561 ;;
6562
6563 netbsd*)
6564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6565 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6566 wlarc=
6567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6568 _LT_TAGVAR(hardcode_direct, $1)=yes
6569 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6570 fi
6571 # Workaround some broken pre-1.5 toolchains
6572 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6573 ;;
6574
6575 *nto* | *qnx*)
6576 _LT_TAGVAR(ld_shlibs, $1)=yes
6577 ;;
6578
6579 openbsd2*)
6580 # C++ shared libraries are fairly broken
6581 _LT_TAGVAR(ld_shlibs, $1)=no
6582 ;;
6583
6584 openbsd*)
6585 if test -f /usr/libexec/ld.so; then
6586 _LT_TAGVAR(hardcode_direct, $1)=yes
6587 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6588 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6589 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6592 _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'
6593 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6594 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6595 fi
6596 output_verbose_link_cmd=func_echo_all
6597 else
6598 _LT_TAGVAR(ld_shlibs, $1)=no
6599 fi
6600 ;;
6601
6602 osf3* | osf4* | osf5*)
6603 case $cc_basename in
6604 KCC*)
6605 # Kuck and Associates, Inc. (KAI) C++ Compiler
6606
6607 # KCC will only create a shared library if the output file
6608 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6609 # to its proper name (with version) after linking.
6610 _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'
6611
6612 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6613 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6614
6615 # Archives containing C++ object files must be created using
6616 # the KAI C++ compiler.
6617 case $host in
6618 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6619 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6620 esac
6621 ;;
6622 RCC*)
6623 # Rational C++ 2.4.1
6624 # FIXME: insert proper C++ library support
6625 _LT_TAGVAR(ld_shlibs, $1)=no
6626 ;;
6627 cxx*)
6628 case $host in
6629 osf3*)
6630 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6631 _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'
6632 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6633 ;;
6634 *)
6635 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6636 _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'
6637 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6638 echo "-hidden">> $lib.exp~
6639 $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~
6640 $RM $lib.exp'
6641 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6642 ;;
6643 esac
6644
6645 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6646
6647 # Commands to make compiler produce verbose output that lists
6648 # what "hidden" libraries, object files and flags are used when
6649 # linking a shared library.
6650 #
6651 # There doesn't appear to be a way to prevent this compiler from
6652 # explicitly linking system object files so we need to strip them
6653 # from the output so that they don't get included in the library
6654 # dependencies.
6655 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"'
6656 ;;
6657 *)
6658 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6659 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6660 case $host in
6661 osf3*)
6662 _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'
6663 ;;
6664 *)
6665 _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'
6666 ;;
6667 esac
6668
6669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6670 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6671
6672 # Commands to make compiler produce verbose output that lists
6673 # what "hidden" libraries, object files and flags are used when
6674 # linking a shared library.
6675 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6676
6677 else
6678 # FIXME: insert proper C++ library support
6679 _LT_TAGVAR(ld_shlibs, $1)=no
6680 fi
6681 ;;
6682 esac
6683 ;;
6684
6685 psos*)
6686 # FIXME: insert proper C++ library support
6687 _LT_TAGVAR(ld_shlibs, $1)=no
6688 ;;
6689
6690 sunos4*)
6691 case $cc_basename in
6692 CC*)
6693 # Sun C++ 4.x
6694 # FIXME: insert proper C++ library support
6695 _LT_TAGVAR(ld_shlibs, $1)=no
6696 ;;
6697 lcc*)
6698 # Lucid
6699 # FIXME: insert proper C++ library support
6700 _LT_TAGVAR(ld_shlibs, $1)=no
6701 ;;
6702 *)
6703 # FIXME: insert proper C++ library support
6704 _LT_TAGVAR(ld_shlibs, $1)=no
6705 ;;
6706 esac
6707 ;;
6708
6709 solaris*)
6710 case $cc_basename in
6711 CC* | sunCC*)
6712 # Sun C++ 4.2, 5.x and Centerline C++
6713 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6714 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6715 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6716 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6717 $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'
6718
6719 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6720 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6721 case $host_os in
6722 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6723 *)
6724 # The compiler driver will combine and reorder linker options,
6725 # but understands `-z linker_flag'.
6726 # Supported since Solaris 2.6 (maybe 2.5.1?)
6727 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6728 ;;
6729 esac
6730 _LT_TAGVAR(link_all_deplibs, $1)=yes
6731
6732 output_verbose_link_cmd='func_echo_all'
6733
6734 # Archives containing C++ object files must be created using
6735 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6736 # necessary to make sure instantiated templates are included
6737 # in the archive.
6738 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6739 ;;
6740 gcx*)
6741 # Green Hills C++ Compiler
6742 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6743
6744 # The C++ compiler must be used to create the archive.
6745 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6746 ;;
6747 *)
6748 # GNU C++ compiler with Solaris linker
6749 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6750 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6751 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6753 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6754 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6755
6756 # Commands to make compiler produce verbose output that lists
6757 # what "hidden" libraries, object files and flags are used when
6758 # linking a shared library.
6759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6760 else
6761 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6762 # platform.
6763 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6764 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6765 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6766
6767 # Commands to make compiler produce verbose output that lists
6768 # what "hidden" libraries, object files and flags are used when
6769 # linking a shared library.
6770 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6771 fi
6772
6773 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6774 case $host_os in
6775 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6776 *)
6777 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6778 ;;
6779 esac
6780 fi
6781 ;;
6782 esac
6783 ;;
6784
6785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6786 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6787 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6788 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6789 runpath_var='LD_RUN_PATH'
6790
6791 case $cc_basename in
6792 CC*)
6793 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6794 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6795 ;;
6796 *)
6797 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6798 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6799 ;;
6800 esac
6801 ;;
6802
6803 sysv5* | sco3.2v5* | sco5v6*)
6804 # Note: We can NOT use -z defs as we might desire, because we do not
6805 # link with -lc, and that would cause any symbols used from libc to
6806 # always be unresolved, which means just about no library would
6807 # ever link correctly. If we're not using GNU ld we use -z text
6808 # though, which does catch some bad symbols but isn't as heavy-handed
6809 # as -z defs.
6810 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6811 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6812 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6813 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6814 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6815 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6816 _LT_TAGVAR(link_all_deplibs, $1)=yes
6817 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6818 runpath_var='LD_RUN_PATH'
6819
6820 case $cc_basename in
6821 CC*)
6822 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6823 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6824 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6825 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6826 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6827 '"$_LT_TAGVAR(reload_cmds, $1)"
6828 ;;
6829 *)
6830 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6831 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6832 ;;
6833 esac
6834 ;;
6835
6836 tandem*)
6837 case $cc_basename in
6838 NCC*)
6839 # NonStop-UX NCC 3.20
6840 # FIXME: insert proper C++ library support
6841 _LT_TAGVAR(ld_shlibs, $1)=no
6842 ;;
6843 *)
6844 # FIXME: insert proper C++ library support
6845 _LT_TAGVAR(ld_shlibs, $1)=no
6846 ;;
6847 esac
6848 ;;
6849
6850 vxworks*)
6851 # FIXME: insert proper C++ library support
6852 _LT_TAGVAR(ld_shlibs, $1)=no
6853 ;;
6854
6855 *)
6856 # FIXME: insert proper C++ library support
6857 _LT_TAGVAR(ld_shlibs, $1)=no
6858 ;;
6859 esac
6860
6861 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6862 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6863
6864 _LT_TAGVAR(GCC, $1)="$GXX"
6865 _LT_TAGVAR(LD, $1)="$LD"
6866
6867 ## CAVEAT EMPTOR:
6868 ## There is no encapsulation within the following macros, do not change
6869 ## the running order or otherwise move them around unless you know exactly
6870 ## what you are doing...
6871 _LT_SYS_HIDDEN_LIBDEPS($1)
6872 _LT_COMPILER_PIC($1)
6873 _LT_COMPILER_C_O($1)
6874 _LT_COMPILER_FILE_LOCKS($1)
6875 _LT_LINKER_SHLIBS($1)
6876 _LT_SYS_DYNAMIC_LINKER($1)
6877 _LT_LINKER_HARDCODE_LIBPATH($1)
6878
6879 _LT_CONFIG($1)
6880 fi # test -n "$compiler"
6881
6882 CC=$lt_save_CC
6883 CFLAGS=$lt_save_CFLAGS
6884 LDCXX=$LD
6885 LD=$lt_save_LD
6886 GCC=$lt_save_GCC
6887 with_gnu_ld=$lt_save_with_gnu_ld
6888 lt_cv_path_LDCXX=$lt_cv_path_LD
6889 lt_cv_path_LD=$lt_save_path_LD
6890 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6891 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6892 fi # test "$_lt_caught_CXX_error" != yes
6893
6894 AC_LANG_POP
6895 ])# _LT_LANG_CXX_CONFIG
6896
6897
6898 # _LT_FUNC_STRIPNAME_CNF
6899 # ----------------------
6900 # func_stripname_cnf prefix suffix name
6901 # strip PREFIX and SUFFIX off of NAME.
6902 # PREFIX and SUFFIX must not contain globbing or regex special
6903 # characters, hashes, percent signs, but SUFFIX may contain a leading
6904 # dot (in which case that matches only a dot).
6905 #
6906 # This function is identical to the (non-XSI) version of func_stripname,
6907 # except this one can be used by m4 code that may be executed by configure,
6908 # rather than the libtool script.
6909 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6910 AC_REQUIRE([_LT_DECL_SED])
6911 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6912 func_stripname_cnf ()
6913 {
6914 case ${2} in
6915 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6916 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6917 esac
6918 } # func_stripname_cnf
6919 ])# _LT_FUNC_STRIPNAME_CNF
6920
6921 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6922 # ---------------------------------
6923 # Figure out "hidden" library dependencies from verbose
6924 # compiler output when linking a shared library.
6925 # Parse the compiler output and extract the necessary
6926 # objects, libraries and library flags.
6927 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6928 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6929 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6930 # Dependencies to place before and after the object being linked:
6931 _LT_TAGVAR(predep_objects, $1)=
6932 _LT_TAGVAR(postdep_objects, $1)=
6933 _LT_TAGVAR(predeps, $1)=
6934 _LT_TAGVAR(postdeps, $1)=
6935 _LT_TAGVAR(compiler_lib_search_path, $1)=
6936
6937 dnl we can't use the lt_simple_compile_test_code here,
6938 dnl because it contains code intended for an executable,
6939 dnl not a library. It's possible we should let each
6940 dnl tag define a new lt_????_link_test_code variable,
6941 dnl but it's only used here...
6942 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6943 int a;
6944 void foo (void) { a = 0; }
6945 _LT_EOF
6946 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6947 class Foo
6948 {
6949 public:
6950 Foo (void) { a = 0; }
6951 private:
6952 int a;
6953 };
6954 _LT_EOF
6955 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6956 subroutine foo
6957 implicit none
6958 integer*4 a
6959 a=0
6960 return
6961 end
6962 _LT_EOF
6963 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6964 subroutine foo
6965 implicit none
6966 integer a
6967 a=0
6968 return
6969 end
6970 _LT_EOF
6971 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6972 public class foo {
6973 private int a;
6974 public void bar (void) {
6975 a = 0;
6976 }
6977 };
6978 _LT_EOF
6979 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
6980 package foo
6981 func foo() {
6982 }
6983 _LT_EOF
6984 ])
6985
6986 _lt_libdeps_save_CFLAGS=$CFLAGS
6987 case "$CC $CFLAGS " in #(
6988 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6989 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6990 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
6991 esac
6992
6993 dnl Parse the compiler output and extract the necessary
6994 dnl objects, libraries and library flags.
6995 if AC_TRY_EVAL(ac_compile); then
6996 # Parse the compiler output and extract the necessary
6997 # objects, libraries and library flags.
6998
6999 # Sentinel used to keep track of whether or not we are before
7000 # the conftest object file.
7001 pre_test_object_deps_done=no
7002
7003 for p in `eval "$output_verbose_link_cmd"`; do
7004 case ${prev}${p} in
7005
7006 -L* | -R* | -l*)
7007 # Some compilers place space between "-{L,R}" and the path.
7008 # Remove the space.
7009 if test $p = "-L" ||
7010 test $p = "-R"; then
7011 prev=$p
7012 continue
7013 fi
7014
7015 # Expand the sysroot to ease extracting the directories later.
7016 if test -z "$prev"; then
7017 case $p in
7018 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7019 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7020 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7021 esac
7022 fi
7023 case $p in
7024 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7025 esac
7026 if test "$pre_test_object_deps_done" = no; then
7027 case ${prev} in
7028 -L | -R)
7029 # Internal compiler library paths should come after those
7030 # provided the user. The postdeps already come after the
7031 # user supplied libs so there is no need to process them.
7032 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7033 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7034 else
7035 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7036 fi
7037 ;;
7038 # The "-l" case would never come before the object being
7039 # linked, so don't bother handling this case.
7040 esac
7041 else
7042 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7043 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7044 else
7045 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7046 fi
7047 fi
7048 prev=
7049 ;;
7050
7051 *.lto.$objext) ;; # Ignore GCC LTO objects
7052 *.$objext)
7053 # This assumes that the test object file only shows up
7054 # once in the compiler output.
7055 if test "$p" = "conftest.$objext"; then
7056 pre_test_object_deps_done=yes
7057 continue
7058 fi
7059
7060 if test "$pre_test_object_deps_done" = no; then
7061 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7062 _LT_TAGVAR(predep_objects, $1)="$p"
7063 else
7064 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7065 fi
7066 else
7067 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7068 _LT_TAGVAR(postdep_objects, $1)="$p"
7069 else
7070 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7071 fi
7072 fi
7073 ;;
7074
7075 *) ;; # Ignore the rest.
7076
7077 esac
7078 done
7079
7080 # Clean up.
7081 rm -f a.out a.exe
7082 else
7083 echo "libtool.m4: error: problem compiling $1 test program"
7084 fi
7085
7086 $RM -f confest.$objext
7087 CFLAGS=$_lt_libdeps_save_CFLAGS
7088
7089 # PORTME: override above test on systems where it is broken
7090 m4_if([$1], [CXX],
7091 [case $host_os in
7092 interix[[3-9]]*)
7093 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7094 # hack all around it, let's just trust "g++" to DTRT.
7095 _LT_TAGVAR(predep_objects,$1)=
7096 _LT_TAGVAR(postdep_objects,$1)=
7097 _LT_TAGVAR(postdeps,$1)=
7098 ;;
7099
7100 linux*)
7101 case `$CC -V 2>&1 | sed 5q` in
7102 *Sun\ C*)
7103 # Sun C++ 5.9
7104
7105 # The more standards-conforming stlport4 library is
7106 # incompatible with the Cstd library. Avoid specifying
7107 # it if it's in CXXFLAGS. Ignore libCrun as
7108 # -library=stlport4 depends on it.
7109 case " $CXX $CXXFLAGS " in
7110 *" -library=stlport4 "*)
7111 solaris_use_stlport4=yes
7112 ;;
7113 esac
7114
7115 if test "$solaris_use_stlport4" != yes; then
7116 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7117 fi
7118 ;;
7119 esac
7120 ;;
7121
7122 solaris*)
7123 case $cc_basename in
7124 CC* | sunCC*)
7125 # The more standards-conforming stlport4 library is
7126 # incompatible with the Cstd library. Avoid specifying
7127 # it if it's in CXXFLAGS. Ignore libCrun as
7128 # -library=stlport4 depends on it.
7129 case " $CXX $CXXFLAGS " in
7130 *" -library=stlport4 "*)
7131 solaris_use_stlport4=yes
7132 ;;
7133 esac
7134
7135 # Adding this requires a known-good setup of shared libraries for
7136 # Sun compiler versions before 5.6, else PIC objects from an old
7137 # archive will be linked into the output, leading to subtle bugs.
7138 if test "$solaris_use_stlport4" != yes; then
7139 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7140 fi
7141 ;;
7142 esac
7143 ;;
7144 esac
7145 ])
7146
7147 case " $_LT_TAGVAR(postdeps, $1) " in
7148 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7149 esac
7150 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7151 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7152 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7153 fi
7154 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7155 [The directories searched by this compiler when creating a shared library])
7156 _LT_TAGDECL([], [predep_objects], [1],
7157 [Dependencies to place before and after the objects being linked to
7158 create a shared library])
7159 _LT_TAGDECL([], [postdep_objects], [1])
7160 _LT_TAGDECL([], [predeps], [1])
7161 _LT_TAGDECL([], [postdeps], [1])
7162 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7163 [The library search path used internally by the compiler when linking
7164 a shared library])
7165 ])# _LT_SYS_HIDDEN_LIBDEPS
7166
7167
7168 # _LT_LANG_F77_CONFIG([TAG])
7169 # --------------------------
7170 # Ensure that the configuration variables for a Fortran 77 compiler are
7171 # suitably defined. These variables are subsequently used by _LT_CONFIG
7172 # to write the compiler configuration to `libtool'.
7173 m4_defun([_LT_LANG_F77_CONFIG],
7174 [AC_LANG_PUSH(Fortran 77)
7175 if test -z "$F77" || test "X$F77" = "Xno"; then
7176 _lt_disable_F77=yes
7177 fi
7178
7179 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7180 _LT_TAGVAR(allow_undefined_flag, $1)=
7181 _LT_TAGVAR(always_export_symbols, $1)=no
7182 _LT_TAGVAR(archive_expsym_cmds, $1)=
7183 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7184 _LT_TAGVAR(hardcode_direct, $1)=no
7185 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7186 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7187 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7188 _LT_TAGVAR(hardcode_minus_L, $1)=no
7189 _LT_TAGVAR(hardcode_automatic, $1)=no
7190 _LT_TAGVAR(inherit_rpath, $1)=no
7191 _LT_TAGVAR(module_cmds, $1)=
7192 _LT_TAGVAR(module_expsym_cmds, $1)=
7193 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7194 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7195 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7196 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7197 _LT_TAGVAR(no_undefined_flag, $1)=
7198 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7199 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7200
7201 # Source file extension for f77 test sources.
7202 ac_ext=f
7203
7204 # Object file extension for compiled f77 test sources.
7205 objext=o
7206 _LT_TAGVAR(objext, $1)=$objext
7207
7208 # No sense in running all these tests if we already determined that
7209 # the F77 compiler isn't working. Some variables (like enable_shared)
7210 # are currently assumed to apply to all compilers on this platform,
7211 # and will be corrupted by setting them based on a non-working compiler.
7212 if test "$_lt_disable_F77" != yes; then
7213 # Code to be used in simple compile tests
7214 lt_simple_compile_test_code="\
7215 subroutine t
7216 return
7217 end
7218 "
7219
7220 # Code to be used in simple link tests
7221 lt_simple_link_test_code="\
7222 program t
7223 end
7224 "
7225
7226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7227 _LT_TAG_COMPILER
7228
7229 # save warnings/boilerplate of simple test code
7230 _LT_COMPILER_BOILERPLATE
7231 _LT_LINKER_BOILERPLATE
7232
7233 # Allow CC to be a program name with arguments.
7234 lt_save_CC="$CC"
7235 lt_save_GCC=$GCC
7236 lt_save_CFLAGS=$CFLAGS
7237 CC=${F77-"f77"}
7238 CFLAGS=$FFLAGS
7239 compiler=$CC
7240 _LT_TAGVAR(compiler, $1)=$CC
7241 _LT_CC_BASENAME([$compiler])
7242 GCC=$G77
7243 if test -n "$compiler"; then
7244 AC_MSG_CHECKING([if libtool supports shared libraries])
7245 AC_MSG_RESULT([$can_build_shared])
7246
7247 AC_MSG_CHECKING([whether to build shared libraries])
7248 test "$can_build_shared" = "no" && enable_shared=no
7249
7250 # On AIX, shared libraries and static libraries use the same namespace, and
7251 # are all built from PIC.
7252 case $host_os in
7253 aix3*)
7254 test "$enable_shared" = yes && enable_static=no
7255 if test -n "$RANLIB"; then
7256 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7257 postinstall_cmds='$RANLIB $lib'
7258 fi
7259 ;;
7260 aix[[4-9]]*)
7261 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7262 test "$enable_shared" = yes && enable_static=no
7263 fi
7264 ;;
7265 esac
7266 AC_MSG_RESULT([$enable_shared])
7267
7268 AC_MSG_CHECKING([whether to build static libraries])
7269 # Make sure either enable_shared or enable_static is yes.
7270 test "$enable_shared" = yes || enable_static=yes
7271 AC_MSG_RESULT([$enable_static])
7272
7273 _LT_TAGVAR(GCC, $1)="$G77"
7274 _LT_TAGVAR(LD, $1)="$LD"
7275
7276 ## CAVEAT EMPTOR:
7277 ## There is no encapsulation within the following macros, do not change
7278 ## the running order or otherwise move them around unless you know exactly
7279 ## what you are doing...
7280 _LT_COMPILER_PIC($1)
7281 _LT_COMPILER_C_O($1)
7282 _LT_COMPILER_FILE_LOCKS($1)
7283 _LT_LINKER_SHLIBS($1)
7284 _LT_SYS_DYNAMIC_LINKER($1)
7285 _LT_LINKER_HARDCODE_LIBPATH($1)
7286
7287 _LT_CONFIG($1)
7288 fi # test -n "$compiler"
7289
7290 GCC=$lt_save_GCC
7291 CC="$lt_save_CC"
7292 CFLAGS="$lt_save_CFLAGS"
7293 fi # test "$_lt_disable_F77" != yes
7294
7295 AC_LANG_POP
7296 ])# _LT_LANG_F77_CONFIG
7297
7298
7299 # _LT_LANG_FC_CONFIG([TAG])
7300 # -------------------------
7301 # Ensure that the configuration variables for a Fortran compiler are
7302 # suitably defined. These variables are subsequently used by _LT_CONFIG
7303 # to write the compiler configuration to `libtool'.
7304 m4_defun([_LT_LANG_FC_CONFIG],
7305 [AC_LANG_PUSH(Fortran)
7306
7307 if test -z "$FC" || test "X$FC" = "Xno"; then
7308 _lt_disable_FC=yes
7309 fi
7310
7311 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7312 _LT_TAGVAR(allow_undefined_flag, $1)=
7313 _LT_TAGVAR(always_export_symbols, $1)=no
7314 _LT_TAGVAR(archive_expsym_cmds, $1)=
7315 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7316 _LT_TAGVAR(hardcode_direct, $1)=no
7317 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7319 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7320 _LT_TAGVAR(hardcode_minus_L, $1)=no
7321 _LT_TAGVAR(hardcode_automatic, $1)=no
7322 _LT_TAGVAR(inherit_rpath, $1)=no
7323 _LT_TAGVAR(module_cmds, $1)=
7324 _LT_TAGVAR(module_expsym_cmds, $1)=
7325 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7326 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7327 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7328 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7329 _LT_TAGVAR(no_undefined_flag, $1)=
7330 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7331 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7332
7333 # Source file extension for fc test sources.
7334 ac_ext=${ac_fc_srcext-f}
7335
7336 # Object file extension for compiled fc test sources.
7337 objext=o
7338 _LT_TAGVAR(objext, $1)=$objext
7339
7340 # No sense in running all these tests if we already determined that
7341 # the FC compiler isn't working. Some variables (like enable_shared)
7342 # are currently assumed to apply to all compilers on this platform,
7343 # and will be corrupted by setting them based on a non-working compiler.
7344 if test "$_lt_disable_FC" != yes; then
7345 # Code to be used in simple compile tests
7346 lt_simple_compile_test_code="\
7347 subroutine t
7348 return
7349 end
7350 "
7351
7352 # Code to be used in simple link tests
7353 lt_simple_link_test_code="\
7354 program t
7355 end
7356 "
7357
7358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7359 _LT_TAG_COMPILER
7360
7361 # save warnings/boilerplate of simple test code
7362 _LT_COMPILER_BOILERPLATE
7363 _LT_LINKER_BOILERPLATE
7364
7365 # Allow CC to be a program name with arguments.
7366 lt_save_CC="$CC"
7367 lt_save_GCC=$GCC
7368 lt_save_CFLAGS=$CFLAGS
7369 CC=${FC-"f95"}
7370 CFLAGS=$FCFLAGS
7371 compiler=$CC
7372 GCC=$ac_cv_fc_compiler_gnu
7373
7374 _LT_TAGVAR(compiler, $1)=$CC
7375 _LT_CC_BASENAME([$compiler])
7376
7377 if test -n "$compiler"; then
7378 AC_MSG_CHECKING([if libtool supports shared libraries])
7379 AC_MSG_RESULT([$can_build_shared])
7380
7381 AC_MSG_CHECKING([whether to build shared libraries])
7382 test "$can_build_shared" = "no" && enable_shared=no
7383
7384 # On AIX, shared libraries and static libraries use the same namespace, and
7385 # are all built from PIC.
7386 case $host_os in
7387 aix3*)
7388 test "$enable_shared" = yes && enable_static=no
7389 if test -n "$RANLIB"; then
7390 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7391 postinstall_cmds='$RANLIB $lib'
7392 fi
7393 ;;
7394 aix[[4-9]]*)
7395 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7396 test "$enable_shared" = yes && enable_static=no
7397 fi
7398 ;;
7399 esac
7400 AC_MSG_RESULT([$enable_shared])
7401
7402 AC_MSG_CHECKING([whether to build static libraries])
7403 # Make sure either enable_shared or enable_static is yes.
7404 test "$enable_shared" = yes || enable_static=yes
7405 AC_MSG_RESULT([$enable_static])
7406
7407 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7408 _LT_TAGVAR(LD, $1)="$LD"
7409
7410 ## CAVEAT EMPTOR:
7411 ## There is no encapsulation within the following macros, do not change
7412 ## the running order or otherwise move them around unless you know exactly
7413 ## what you are doing...
7414 _LT_SYS_HIDDEN_LIBDEPS($1)
7415 _LT_COMPILER_PIC($1)
7416 _LT_COMPILER_C_O($1)
7417 _LT_COMPILER_FILE_LOCKS($1)
7418 _LT_LINKER_SHLIBS($1)
7419 _LT_SYS_DYNAMIC_LINKER($1)
7420 _LT_LINKER_HARDCODE_LIBPATH($1)
7421
7422 _LT_CONFIG($1)
7423 fi # test -n "$compiler"
7424
7425 GCC=$lt_save_GCC
7426 CC=$lt_save_CC
7427 CFLAGS=$lt_save_CFLAGS
7428 fi # test "$_lt_disable_FC" != yes
7429
7430 AC_LANG_POP
7431 ])# _LT_LANG_FC_CONFIG
7432
7433
7434 # _LT_LANG_GCJ_CONFIG([TAG])
7435 # --------------------------
7436 # Ensure that the configuration variables for the GNU Java Compiler compiler
7437 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7438 # to write the compiler configuration to `libtool'.
7439 m4_defun([_LT_LANG_GCJ_CONFIG],
7440 [AC_REQUIRE([LT_PROG_GCJ])dnl
7441 AC_LANG_SAVE
7442
7443 # Source file extension for Java test sources.
7444 ac_ext=java
7445
7446 # Object file extension for compiled Java test sources.
7447 objext=o
7448 _LT_TAGVAR(objext, $1)=$objext
7449
7450 # Code to be used in simple compile tests
7451 lt_simple_compile_test_code="class foo {}"
7452
7453 # Code to be used in simple link tests
7454 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7455
7456 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7457 _LT_TAG_COMPILER
7458
7459 # save warnings/boilerplate of simple test code
7460 _LT_COMPILER_BOILERPLATE
7461 _LT_LINKER_BOILERPLATE
7462
7463 # Allow CC to be a program name with arguments.
7464 lt_save_CC=$CC
7465 lt_save_CFLAGS=$CFLAGS
7466 lt_save_GCC=$GCC
7467 GCC=yes
7468 CC=${GCJ-"gcj"}
7469 CFLAGS=$GCJFLAGS
7470 compiler=$CC
7471 _LT_TAGVAR(compiler, $1)=$CC
7472 _LT_TAGVAR(LD, $1)="$LD"
7473 _LT_CC_BASENAME([$compiler])
7474
7475 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7476 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7477
7478 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7479 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7480 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7481
7482 ## CAVEAT EMPTOR:
7483 ## There is no encapsulation within the following macros, do not change
7484 ## the running order or otherwise move them around unless you know exactly
7485 ## what you are doing...
7486 if test -n "$compiler"; then
7487 _LT_COMPILER_NO_RTTI($1)
7488 _LT_COMPILER_PIC($1)
7489 _LT_COMPILER_C_O($1)
7490 _LT_COMPILER_FILE_LOCKS($1)
7491 _LT_LINKER_SHLIBS($1)
7492 _LT_LINKER_HARDCODE_LIBPATH($1)
7493
7494 _LT_CONFIG($1)
7495 fi
7496
7497 AC_LANG_RESTORE
7498
7499 GCC=$lt_save_GCC
7500 CC=$lt_save_CC
7501 CFLAGS=$lt_save_CFLAGS
7502 ])# _LT_LANG_GCJ_CONFIG
7503
7504
7505 # _LT_LANG_GO_CONFIG([TAG])
7506 # --------------------------
7507 # Ensure that the configuration variables for the GNU Go compiler
7508 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7509 # to write the compiler configuration to `libtool'.
7510 m4_defun([_LT_LANG_GO_CONFIG],
7511 [AC_REQUIRE([LT_PROG_GO])dnl
7512 AC_LANG_SAVE
7513
7514 # Source file extension for Go test sources.
7515 ac_ext=go
7516
7517 # Object file extension for compiled Go test sources.
7518 objext=o
7519 _LT_TAGVAR(objext, $1)=$objext
7520
7521 # Code to be used in simple compile tests
7522 lt_simple_compile_test_code="package main; func main() { }"
7523
7524 # Code to be used in simple link tests
7525 lt_simple_link_test_code='package main; func main() { }'
7526
7527 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7528 _LT_TAG_COMPILER
7529
7530 # save warnings/boilerplate of simple test code
7531 _LT_COMPILER_BOILERPLATE
7532 _LT_LINKER_BOILERPLATE
7533
7534 # Allow CC to be a program name with arguments.
7535 lt_save_CC=$CC
7536 lt_save_CFLAGS=$CFLAGS
7537 lt_save_GCC=$GCC
7538 GCC=yes
7539 CC=${GOC-"gccgo"}
7540 CFLAGS=$GOFLAGS
7541 compiler=$CC
7542 _LT_TAGVAR(compiler, $1)=$CC
7543 _LT_TAGVAR(LD, $1)="$LD"
7544 _LT_CC_BASENAME([$compiler])
7545
7546 # Go did not exist at the time GCC didn't implicitly link libc in.
7547 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7548
7549 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7550 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7551 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7552
7553 ## CAVEAT EMPTOR:
7554 ## There is no encapsulation within the following macros, do not change
7555 ## the running order or otherwise move them around unless you know exactly
7556 ## what you are doing...
7557 if test -n "$compiler"; then
7558 _LT_COMPILER_NO_RTTI($1)
7559 _LT_COMPILER_PIC($1)
7560 _LT_COMPILER_C_O($1)
7561 _LT_COMPILER_FILE_LOCKS($1)
7562 _LT_LINKER_SHLIBS($1)
7563 _LT_LINKER_HARDCODE_LIBPATH($1)
7564
7565 _LT_CONFIG($1)
7566 fi
7567
7568 AC_LANG_RESTORE
7569
7570 GCC=$lt_save_GCC
7571 CC=$lt_save_CC
7572 CFLAGS=$lt_save_CFLAGS
7573 ])# _LT_LANG_GO_CONFIG
7574
7575
7576 # _LT_LANG_RC_CONFIG([TAG])
7577 # -------------------------
7578 # Ensure that the configuration variables for the Windows resource compiler
7579 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7580 # to write the compiler configuration to `libtool'.
7581 m4_defun([_LT_LANG_RC_CONFIG],
7582 [AC_REQUIRE([LT_PROG_RC])dnl
7583 AC_LANG_SAVE
7584
7585 # Source file extension for RC test sources.
7586 ac_ext=rc
7587
7588 # Object file extension for compiled RC test sources.
7589 objext=o
7590 _LT_TAGVAR(objext, $1)=$objext
7591
7592 # Code to be used in simple compile tests
7593 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7594
7595 # Code to be used in simple link tests
7596 lt_simple_link_test_code="$lt_simple_compile_test_code"
7597
7598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7599 _LT_TAG_COMPILER
7600
7601 # save warnings/boilerplate of simple test code
7602 _LT_COMPILER_BOILERPLATE
7603 _LT_LINKER_BOILERPLATE
7604
7605 # Allow CC to be a program name with arguments.
7606 lt_save_CC="$CC"
7607 lt_save_CFLAGS=$CFLAGS
7608 lt_save_GCC=$GCC
7609 GCC=
7610 CC=${RC-"windres"}
7611 CFLAGS=
7612 compiler=$CC
7613 _LT_TAGVAR(compiler, $1)=$CC
7614 _LT_CC_BASENAME([$compiler])
7615 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7616
7617 if test -n "$compiler"; then
7618 :
7619 _LT_CONFIG($1)
7620 fi
7621
7622 GCC=$lt_save_GCC
7623 AC_LANG_RESTORE
7624 CC=$lt_save_CC
7625 CFLAGS=$lt_save_CFLAGS
7626 ])# _LT_LANG_RC_CONFIG
7627
7628
7629 # LT_PROG_GCJ
7630 # -----------
7631 AC_DEFUN([LT_PROG_GCJ],
7632 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7633 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7634 [AC_CHECK_TOOL(GCJ, gcj,)
7635 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7636 AC_SUBST(GCJFLAGS)])])[]dnl
7637 ])
7638
7639 # Old name:
7640 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7641 dnl aclocal-1.4 backwards compatibility:
7642 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7643
7644
7645 # LT_PROG_GO
7646 # ----------
7647 AC_DEFUN([LT_PROG_GO],
7648 [AC_CHECK_TOOL(GOC, gccgo,)
7649 ])
7650
7651
7652 # LT_PROG_RC
7653 # ----------
7654 AC_DEFUN([LT_PROG_RC],
7655 [AC_CHECK_TOOL(RC, windres,)
7656 ])
7657
7658 # Old name:
7659 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7660 dnl aclocal-1.4 backwards compatibility:
7661 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7662
7663
7664 # _LT_DECL_EGREP
7665 # --------------
7666 # If we don't have a new enough Autoconf to choose the best grep
7667 # available, choose the one first in the user's PATH.
7668 m4_defun([_LT_DECL_EGREP],
7669 [AC_REQUIRE([AC_PROG_EGREP])dnl
7670 AC_REQUIRE([AC_PROG_FGREP])dnl
7671 test -z "$GREP" && GREP=grep
7672 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7673 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7674 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7675 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7676 AC_SUBST([GREP])
7677 ])
7678
7679
7680 # _LT_DECL_OBJDUMP
7681 # --------------
7682 # If we don't have a new enough Autoconf to choose the best objdump
7683 # available, choose the one first in the user's PATH.
7684 m4_defun([_LT_DECL_OBJDUMP],
7685 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7686 test -z "$OBJDUMP" && OBJDUMP=objdump
7687 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7688 AC_SUBST([OBJDUMP])
7689 ])
7690
7691 # _LT_DECL_DLLTOOL
7692 # ----------------
7693 # Ensure DLLTOOL variable is set.
7694 m4_defun([_LT_DECL_DLLTOOL],
7695 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7696 test -z "$DLLTOOL" && DLLTOOL=dlltool
7697 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7698 AC_SUBST([DLLTOOL])
7699 ])
7700
7701 # _LT_DECL_SED
7702 # ------------
7703 # Check for a fully-functional sed program, that truncates
7704 # as few characters as possible. Prefer GNU sed if found.
7705 m4_defun([_LT_DECL_SED],
7706 [AC_PROG_SED
7707 test -z "$SED" && SED=sed
7708 Xsed="$SED -e 1s/^X//"
7709 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7710 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7711 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7712 ])# _LT_DECL_SED
7713
7714 m4_ifndef([AC_PROG_SED], [
7715 ############################################################
7716 # NOTE: This macro has been submitted for inclusion into #
7717 # GNU Autoconf as AC_PROG_SED. When it is available in #
7718 # a released version of Autoconf we should remove this #
7719 # macro and use it instead. #
7720 ############################################################
7721
7722 m4_defun([AC_PROG_SED],
7723 [AC_MSG_CHECKING([for a sed that does not truncate output])
7724 AC_CACHE_VAL(lt_cv_path_SED,
7725 [# Loop through the user's path and test for sed and gsed.
7726 # Then use that list of sed's as ones to test for truncation.
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 lt_ac_prog in sed gsed; do
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7735 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7736 fi
7737 done
7738 done
7739 done
7740 IFS=$as_save_IFS
7741 lt_ac_max=0
7742 lt_ac_count=0
7743 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7744 # along with /bin/sed that truncates output.
7745 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7746 test ! -f $lt_ac_sed && continue
7747 cat /dev/null > conftest.in
7748 lt_ac_count=0
7749 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7750 # Check for GNU sed and select it if it is found.
7751 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7752 lt_cv_path_SED=$lt_ac_sed
7753 break
7754 fi
7755 while true; do
7756 cat conftest.in conftest.in >conftest.tmp
7757 mv conftest.tmp conftest.in
7758 cp conftest.in conftest.nl
7759 echo >>conftest.nl
7760 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7761 cmp -s conftest.out conftest.nl || break
7762 # 10000 chars as input seems more than enough
7763 test $lt_ac_count -gt 10 && break
7764 lt_ac_count=`expr $lt_ac_count + 1`
7765 if test $lt_ac_count -gt $lt_ac_max; then
7766 lt_ac_max=$lt_ac_count
7767 lt_cv_path_SED=$lt_ac_sed
7768 fi
7769 done
7770 done
7771 ])
7772 SED=$lt_cv_path_SED
7773 AC_SUBST([SED])
7774 AC_MSG_RESULT([$SED])
7775 ])#AC_PROG_SED
7776 ])#m4_ifndef
7777
7778 # Old name:
7779 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7780 dnl aclocal-1.4 backwards compatibility:
7781 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7782
7783
7784 # _LT_CHECK_SHELL_FEATURES
7785 # ------------------------
7786 # Find out whether the shell is Bourne or XSI compatible,
7787 # or has some other useful features.
7788 m4_defun([_LT_CHECK_SHELL_FEATURES],
7789 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7790 # Try some XSI features
7791 xsi_shell=no
7792 ( _lt_dummy="a/b/c"
7793 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7794 = c,a/b,b/c, \
7795 && eval 'test $(( 1 + 1 )) -eq 2 \
7796 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7797 && xsi_shell=yes
7798 AC_MSG_RESULT([$xsi_shell])
7799 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7800
7801 AC_MSG_CHECKING([whether the shell understands "+="])
7802 lt_shell_append=no
7803 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7804 >/dev/null 2>&1 \
7805 && lt_shell_append=yes
7806 AC_MSG_RESULT([$lt_shell_append])
7807 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7808
7809 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7810 lt_unset=unset
7811 else
7812 lt_unset=false
7813 fi
7814 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7815
7816 # test EBCDIC or ASCII
7817 case `echo X|tr X '\101'` in
7818 A) # ASCII based system
7819 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7820 lt_SP2NL='tr \040 \012'
7821 lt_NL2SP='tr \015\012 \040\040'
7822 ;;
7823 *) # EBCDIC based system
7824 lt_SP2NL='tr \100 \n'
7825 lt_NL2SP='tr \r\n \100\100'
7826 ;;
7827 esac
7828 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7829 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7830 ])# _LT_CHECK_SHELL_FEATURES
7831
7832
7833 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7834 # ------------------------------------------------------
7835 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7836 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7837 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7838 [dnl {
7839 sed -e '/^$1 ()$/,/^} # $1 /c\
7840 $1 ()\
7841 {\
7842 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7843 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7844 && mv -f "$cfgfile.tmp" "$cfgfile" \
7845 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7846 test 0 -eq $? || _lt_function_replace_fail=:
7847 ])
7848
7849
7850 # _LT_PROG_REPLACE_SHELLFNS
7851 # -------------------------
7852 # Replace existing portable implementations of several shell functions with
7853 # equivalent extended shell implementations where those features are available..
7854 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7855 [if test x"$xsi_shell" = xyes; then
7856 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7857 case ${1} in
7858 */*) func_dirname_result="${1%/*}${2}" ;;
7859 * ) func_dirname_result="${3}" ;;
7860 esac])
7861
7862 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7863 func_basename_result="${1##*/}"])
7864
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac
7870 func_basename_result="${1##*/}"])
7871
7872 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7873 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7874 # positional parameters, so assign one to ordinary parameter first.
7875 func_stripname_result=${3}
7876 func_stripname_result=${func_stripname_result#"${1}"}
7877 func_stripname_result=${func_stripname_result%"${2}"}])
7878
7879 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7880 func_split_long_opt_name=${1%%=*}
7881 func_split_long_opt_arg=${1#*=}])
7882
7883 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7884 func_split_short_opt_arg=${1#??}
7885 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7886
7887 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7888 case ${1} in
7889 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7890 *) func_lo2o_result=${1} ;;
7891 esac])
7892
7893 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7894
7895 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7896
7897 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7898 fi
7899
7900 if test x"$lt_shell_append" = xyes; then
7901 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7902
7903 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7904 func_quote_for_eval "${2}"
7905 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7906 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7907
7908 # Save a `func_append' function call where possible by direct use of '+='
7909 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7910 && mv -f "$cfgfile.tmp" "$cfgfile" \
7911 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7912 test 0 -eq $? || _lt_function_replace_fail=:
7913 else
7914 # Save a `func_append' function call even when '+=' is not available
7915 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7916 && mv -f "$cfgfile.tmp" "$cfgfile" \
7917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7918 test 0 -eq $? || _lt_function_replace_fail=:
7919 fi
7920
7921 if test x"$_lt_function_replace_fail" = x":"; then
7922 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7923 fi
7924 ])
7925
7926 # _LT_PATH_CONVERSION_FUNCTIONS
7927 # -----------------------------
7928 # Determine which file name conversion functions should be used by
7929 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7930 # for certain cross-compile configurations and native mingw.
7931 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
7932 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7933 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7934 AC_MSG_CHECKING([how to convert $build file names to $host format])
7935 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7936 [case $host in
7937 *-*-mingw* )
7938 case $build in
7939 *-*-mingw* ) # actually msys
7940 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7941 ;;
7942 *-*-cygwin* )
7943 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7944 ;;
7945 * ) # otherwise, assume *nix
7946 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7947 ;;
7948 esac
7949 ;;
7950 *-*-cygwin* )
7951 case $build in
7952 *-*-mingw* ) # actually msys
7953 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7954 ;;
7955 *-*-cygwin* )
7956 lt_cv_to_host_file_cmd=func_convert_file_noop
7957 ;;
7958 * ) # otherwise, assume *nix
7959 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7960 ;;
7961 esac
7962 ;;
7963 * ) # unhandled hosts (and "normal" native builds)
7964 lt_cv_to_host_file_cmd=func_convert_file_noop
7965 ;;
7966 esac
7967 ])
7968 to_host_file_cmd=$lt_cv_to_host_file_cmd
7969 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7970 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7971 [0], [convert $build file names to $host format])dnl
7972
7973 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7974 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7975 [#assume ordinary cross tools, or native build.
7976 lt_cv_to_tool_file_cmd=func_convert_file_noop
7977 case $host in
7978 *-*-mingw* )
7979 case $build in
7980 *-*-mingw* ) # actually msys
7981 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7982 ;;
7983 esac
7984 ;;
7985 esac
7986 ])
7987 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7988 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
7989 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7990 [0], [convert $build files to toolchain format])dnl
7991 ])# _LT_PATH_CONVERSION_FUNCTIONS
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3 # Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 7 ltoptions.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
14
15
16 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
17 # ------------------------------------------
18 m4_define([_LT_MANGLE_OPTION],
19 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
20
21
22 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
23 # ---------------------------------------
24 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
25 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
26 # saved as a flag.
27 m4_define([_LT_SET_OPTION],
28 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
29 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
30 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option `$2'])])[]dnl
32 ])
33
34
35 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
36 # ------------------------------------------------------------
37 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
38 m4_define([_LT_IF_OPTION],
39 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
40
41
42 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
43 # -------------------------------------------------------
44 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
45 # are set.
46 m4_define([_LT_UNLESS_OPTIONS],
47 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
48 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
49 [m4_define([$0_found])])])[]dnl
50 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
51 ])[]dnl
52 ])
53
54
55 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
56 # ----------------------------------------
57 # OPTION-LIST is a space-separated list of Libtool options associated
58 # with MACRO-NAME. If any OPTION has a matching handler declared with
59 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
60 # the unknown option and exit.
61 m4_defun([_LT_SET_OPTIONS],
62 [# Set options
63 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
64 [_LT_SET_OPTION([$1], _LT_Option)])
65
66 m4_if([$1],[LT_INIT],[
67 dnl
68 dnl Simply set some default values (i.e off) if boolean options were not
69 dnl specified:
70 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
71 ])
72 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
73 ])
74 dnl
75 dnl If no reference was made to various pairs of opposing options, then
76 dnl we run the default mode handler for the pair. For example, if neither
77 dnl `shared' nor `disable-shared' was passed, we enable building of shared
78 dnl archives by default:
79 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
84 ])
85 ])# _LT_SET_OPTIONS
86
87
88 ## --------------------------------- ##
89 ## Macros to handle LT_INIT options. ##
90 ## --------------------------------- ##
91
92 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
93 # -----------------------------------------
94 m4_define([_LT_MANGLE_DEFUN],
95 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
96
97
98 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
99 # -----------------------------------------------
100 m4_define([LT_OPTION_DEFINE],
101 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
102 ])# LT_OPTION_DEFINE
103
104
105 # dlopen
106 # ------
107 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
108 ])
109
110 AU_DEFUN([AC_LIBTOOL_DLOPEN],
111 [_LT_SET_OPTION([LT_INIT], [dlopen])
112 AC_DIAGNOSE([obsolete],
113 [$0: Remove this warning and the call to _LT_SET_OPTION when you
114 put the `dlopen' option into LT_INIT's first parameter.])
115 ])
116
117 dnl aclocal-1.4 backwards compatibility:
118 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
119
120
121 # win32-dll
122 # ---------
123 # Declare package support for building win32 dll's.
124 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
125 [enable_win32_dll=yes
126
127 case $host in
128 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
129 AC_CHECK_TOOL(AS, as, false)
130 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
131 AC_CHECK_TOOL(OBJDUMP, objdump, false)
132 ;;
133 esac
134
135 test -z "$AS" && AS=as
136 _LT_DECL([], [AS], [1], [Assembler program])dnl
137
138 test -z "$DLLTOOL" && DLLTOOL=dlltool
139 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
140
141 test -z "$OBJDUMP" && OBJDUMP=objdump
142 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
143 ])# win32-dll
144
145 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
146 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
147 _LT_SET_OPTION([LT_INIT], [win32-dll])
148 AC_DIAGNOSE([obsolete],
149 [$0: Remove this warning and the call to _LT_SET_OPTION when you
150 put the `win32-dll' option into LT_INIT's first parameter.])
151 ])
152
153 dnl aclocal-1.4 backwards compatibility:
154 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
155
156
157 # _LT_ENABLE_SHARED([DEFAULT])
158 # ----------------------------
159 # implement the --enable-shared flag, and supports the `shared' and
160 # `disable-shared' LT_INIT options.
161 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
162 m4_define([_LT_ENABLE_SHARED],
163 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
164 AC_ARG_ENABLE([shared],
165 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
166 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
167 [p=${PACKAGE-default}
168 case $enableval in
169 yes) enable_shared=yes ;;
170 no) enable_shared=no ;;
171 *)
172 enable_shared=no
173 # Look at the argument we got. We use all the common list separators.
174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
175 for pkg in $enableval; do
176 IFS="$lt_save_ifs"
177 if test "X$pkg" = "X$p"; then
178 enable_shared=yes
179 fi
180 done
181 IFS="$lt_save_ifs"
182 ;;
183 esac],
184 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
185
186 _LT_DECL([build_libtool_libs], [enable_shared], [0],
187 [Whether or not to build shared libraries])
188 ])# _LT_ENABLE_SHARED
189
190 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
191 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
192
193 # Old names:
194 AC_DEFUN([AC_ENABLE_SHARED],
195 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
196 ])
197
198 AC_DEFUN([AC_DISABLE_SHARED],
199 [_LT_SET_OPTION([LT_INIT], [disable-shared])
200 ])
201
202 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
203 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
204
205 dnl aclocal-1.4 backwards compatibility:
206 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
207 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
208
209
210
211 # _LT_ENABLE_STATIC([DEFAULT])
212 # ----------------------------
213 # implement the --enable-static flag, and support the `static' and
214 # `disable-static' LT_INIT options.
215 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
216 m4_define([_LT_ENABLE_STATIC],
217 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
218 AC_ARG_ENABLE([static],
219 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
220 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
221 [p=${PACKAGE-default}
222 case $enableval in
223 yes) enable_static=yes ;;
224 no) enable_static=no ;;
225 *)
226 enable_static=no
227 # Look at the argument we got. We use all the common list separators.
228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
229 for pkg in $enableval; do
230 IFS="$lt_save_ifs"
231 if test "X$pkg" = "X$p"; then
232 enable_static=yes
233 fi
234 done
235 IFS="$lt_save_ifs"
236 ;;
237 esac],
238 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
239
240 _LT_DECL([build_old_libs], [enable_static], [0],
241 [Whether or not to build static libraries])
242 ])# _LT_ENABLE_STATIC
243
244 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
245 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
246
247 # Old names:
248 AC_DEFUN([AC_ENABLE_STATIC],
249 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
250 ])
251
252 AC_DEFUN([AC_DISABLE_STATIC],
253 [_LT_SET_OPTION([LT_INIT], [disable-static])
254 ])
255
256 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
257 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
258
259 dnl aclocal-1.4 backwards compatibility:
260 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
261 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
262
263
264
265 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
266 # ----------------------------------
267 # implement the --enable-fast-install flag, and support the `fast-install'
268 # and `disable-fast-install' LT_INIT options.
269 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
270 m4_define([_LT_ENABLE_FAST_INSTALL],
271 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
272 AC_ARG_ENABLE([fast-install],
273 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
274 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
275 [p=${PACKAGE-default}
276 case $enableval in
277 yes) enable_fast_install=yes ;;
278 no) enable_fast_install=no ;;
279 *)
280 enable_fast_install=no
281 # Look at the argument we got. We use all the common list separators.
282 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
283 for pkg in $enableval; do
284 IFS="$lt_save_ifs"
285 if test "X$pkg" = "X$p"; then
286 enable_fast_install=yes
287 fi
288 done
289 IFS="$lt_save_ifs"
290 ;;
291 esac],
292 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
293
294 _LT_DECL([fast_install], [enable_fast_install], [0],
295 [Whether or not to optimize for fast installation])dnl
296 ])# _LT_ENABLE_FAST_INSTALL
297
298 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
299 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
300
301 # Old names:
302 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
303 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
304 AC_DIAGNOSE([obsolete],
305 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
306 the `fast-install' option into LT_INIT's first parameter.])
307 ])
308
309 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
310 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
311 AC_DIAGNOSE([obsolete],
312 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
313 the `disable-fast-install' option into LT_INIT's first parameter.])
314 ])
315
316 dnl aclocal-1.4 backwards compatibility:
317 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
318 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
319
320
321 # _LT_WITH_PIC([MODE])
322 # --------------------
323 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
324 # LT_INIT options.
325 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
326 m4_define([_LT_WITH_PIC],
327 [AC_ARG_WITH([pic],
328 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
329 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
330 [lt_p=${PACKAGE-default}
331 case $withval in
332 yes|no) pic_mode=$withval ;;
333 *)
334 pic_mode=default
335 # Look at the argument we got. We use all the common list separators.
336 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
337 for lt_pkg in $withval; do
338 IFS="$lt_save_ifs"
339 if test "X$lt_pkg" = "X$lt_p"; then
340 pic_mode=yes
341 fi
342 done
343 IFS="$lt_save_ifs"
344 ;;
345 esac],
346 [pic_mode=default])
347
348 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
349
350 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
351 ])# _LT_WITH_PIC
352
353 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
354 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
355
356 # Old name:
357 AU_DEFUN([AC_LIBTOOL_PICMODE],
358 [_LT_SET_OPTION([LT_INIT], [pic-only])
359 AC_DIAGNOSE([obsolete],
360 [$0: Remove this warning and the call to _LT_SET_OPTION when you
361 put the `pic-only' option into LT_INIT's first parameter.])
362 ])
363
364 dnl aclocal-1.4 backwards compatibility:
365 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
366
367 ## ----------------- ##
368 ## LTDL_INIT Options ##
369 ## ----------------- ##
370
371 m4_define([_LTDL_MODE], [])
372 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
373 [m4_define([_LTDL_MODE], [nonrecursive])])
374 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
375 [m4_define([_LTDL_MODE], [recursive])])
376 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
377 [m4_define([_LTDL_MODE], [subproject])])
378
379 m4_define([_LTDL_TYPE], [])
380 LT_OPTION_DEFINE([LTDL_INIT], [installable],
381 [m4_define([_LTDL_TYPE], [installable])])
382 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
383 [m4_define([_LTDL_TYPE], [convenience])])
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 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004 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 # @configure_input@
10
11 # serial 3337 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.4.2])
15 m4_define([LT_PACKAGE_REVISION], [1.3337])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.2'
19 macro_revision='1.3337'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
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])])
+155
-316
missing less more
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2012-06-26.16; # UTC
4
5 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # This program is free software; you can redistribute it and/or modify
109 # it under the terms of the GNU General Public License as published by
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
4631 case $1 in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
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 ;;
6243
6344 -h|--h|--he|--hel|--help)
6445 echo "\
6546 $0 [OPTION]... PROGRAM [ARGUMENT]...
6647
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6950
7051 Options:
7152 -h, --help display this help and exit
7253 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
7454
7555 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
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.
9161
9262 Send bug reports to <bug-automake@gnu.org>."
9363 exit $?
9969 ;;
10070
10171 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
10474 exit 1
10575 ;;
10676
10777 esac
10878
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
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=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://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 'automa4te' 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
368207
369208 # Local variables:
370209 # eval: (add-hook 'write-file-hooks 'time-stamp)
11 #
22 fr
33 ja
4 pl
5 te
6 uk
7 zh_TW
4848 XGETTEXT = @XGETTEXT@
4949 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
5050 INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
51 MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
52 GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
51 MSGMERGE = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
52 GENPOT = INTLTOOL_EXTRACT="$(INTLTOOL_EXTRACT)" XGETTEXT="$(XGETTEXT)" srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
5353
5454 ALL_LINGUAS = @ALL_LINGUAS@
5555
7171
7272 .SUFFIXES:
7373 .SUFFIXES: .po .pox .gmo .mo .msg .cat
74
75 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
76 INTLTOOL_V_MSGFMT = $(INTLTOOL__v_MSGFMT_$(V))
77 INTLTOOL__v_MSGFMT_= $(INTLTOOL__v_MSGFMT_$(AM_DEFAULT_VERBOSITY))
78 INTLTOOL__v_MSGFMT_0 = @echo " MSGFMT" $@;
7479
7580 .po.pox:
7681 $(MAKE) $(GETTEXT_PACKAGE).pot
7782 $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
7883
7984 .po.mo:
80 $(MSGFMT) -o $@ $<
85 $(INTLTOOL_V_MSGFMT)$(MSGFMT) -o $@ $<
8186
8287 .po.gmo:
83 file=`echo $* | sed 's,.*/,,'`.gmo \
88 $(INTLTOOL_V_MSGFMT)file=`echo $* | sed 's,.*/,,'`.gmo \
8489 && rm -f $$file && $(GMSGFMT) -o $$file $<
8590
8691 .po.cat:
11 # Please keep this file in alphabetical order.
22 engine/engine.c
33 engine/main.c
4 setup/ibus-setup-input-pad.desktop.in.in
45 setup/setup-gtk2.c
56 [type: gettext/glade]setup/setup-gtk2.ui
0 # Files with translatable strings.
1 # Please keep this file in alphabetical order.
2 setup/ibus-setup-input-pad.desktop.in
00 # French translations for ibus-input-pad
1 # Copyright (C) 1999-2010 Free Software Foundation, Inc.
1 # Copyright (C) 2010-2012 Takao Fujiwara <takao.fujiwara1@gmail.com>
22 # This file is distributed under the same license as the ibus-input-pad package.
3 # Takao Fujiwara <takao.fujiwara1@gmail.com>, 2010.
43 #
54 msgid ""
65 msgstr ""
76 "Project-Id-Version: ibus-input-pad HEAD\n"
87 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
9 "POT-Creation-Date: 2010-07-08 11:59+0900\n"
8 "POT-Creation-Date: 2012-12-17 19:34+0900\n"
109 "PO-Revision-Date: 2010-05-13 03:08+0900\n"
1110 "Last-Translator: Takao Fujiwara <takao.fujiwara1@gmail.com>\n"
1211 "Language-Team: French\n"
12 "Language: fr\n"
1313 "MIME-Version: 1.0\n"
1414 "Content-Type: text/plain; charset=UTF-8\n"
1515 "Content-Transfer-Encoding: 8bit\n"
1616 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
1717
18 #: ../engine/engine.c:157 ../engine/engine.c:158
18 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
19 #: ../engine/engine.c:169
1920 msgid "Launch Input Pad"
2021 msgstr ""
2122
22 #: ../engine/engine.c:169 ../engine/engine.c:170 ../engine/engine.c:352
23 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
2324 msgid "Show Input Pad"
2425 msgstr ""
2526
26 #: ../engine/engine.c:179 ../engine/engine.c:180
27 #: ../engine/engine.c:190 ../engine/engine.c:191
2728 msgid "Show Input Pad (Keyboard Only)"
2829 msgstr ""
2930
30 #: ../engine/engine.c:191
31 #: ../engine/engine.c:203
3132 msgid "Setup Input Pad"
3233 msgstr ""
3334
34 #: ../engine/engine.c:192
35 #: ../engine/engine.c:204
3536 msgid "Configure Input Pad"
3637 msgstr ""
3738
38 #: ../engine/engine.c:350
39 #: ../engine/engine.c:359
3940 msgid "Hide Input Pad"
4041 msgstr ""
4142
4344 msgid "Input Pad"
4445 msgstr ""
4546
46 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:9
47 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
4748 msgid "Default"
4849 msgstr ""
4950
50 #: ../setup/setup-gtk2.c:398
51 #: ../setup/setup-gtk2.c:397
5152 msgid "Keyboard _Theme:"
5253 msgstr ""
5354
54 #: ../setup/setup-gtk2.c:401
55 #: ../setup/setup-gtk2.c:400
5556 msgid "Which theme you choose in kbdui modules"
5657 msgstr ""
5758
5859 #: ../setup/setup-gtk2.ui.h:1
59 msgid "<b>Default Appearance</b>"
60 msgid "Nothing"
6061 msgstr ""
6162
6263 #: ../setup/setup-gtk2.ui.h:2
63 msgid "<b>Keyboard Only Appearance</b>"
64 msgid "Custom"
6465 msgstr ""
6566
6667 #: ../setup/setup-gtk2.ui.h:3
67 msgid "About"
68 msgstr ""
69
70 #: ../setup/setup-gtk2.ui.h:4
7168 msgid "All"
7269 msgstr ""
7370
7471 #: ../setup/setup-gtk2.ui.h:5
72 msgid "IBus-Input-Pad Setup"
73 msgstr ""
74
75 #: ../setup/setup-gtk2.ui.h:6
76 msgid "_Character Table Type:"
77 msgstr ""
78
79 #: ../setup/setup-gtk2.ui.h:7
80 msgid "Whether you show the character table or not"
81 msgstr ""
82
83 #: ../setup/setup-gtk2.ui.h:8
84 msgid "_Keyboard Layout Type:"
85 msgstr ""
86
87 #: ../setup/setup-gtk2.ui.h:9
88 msgid "Whether you show the keyboard layout or not"
89 msgstr ""
90
91 #: ../setup/setup-gtk2.ui.h:10
92 msgid "<b>Default Appearance</b>"
93 msgstr ""
94
95 #: ../setup/setup-gtk2.ui.h:11
96 msgid "<b>Keyboard Only Appearance</b>"
97 msgstr ""
98
99 #: ../setup/setup-gtk2.ui.h:12
100 msgid "General"
101 msgstr ""
102
103 #: ../setup/setup-gtk2.ui.h:13
104 msgid "About"
105 msgstr ""
106
107 #: ../setup/setup-gtk2.ui.h:14
108 msgid "Confirm"
109 msgstr ""
110
111 #: ../setup/setup-gtk2.ui.h:15
112 msgid "Are you sure to close Setup?"
113 msgstr ""
114
115 #: ../setup/setup-gtk2.ui.h:16
75116 msgid "Are you sure to close Setup without saving configure?"
76117 msgstr ""
77118
78 #: ../setup/setup-gtk2.ui.h:6
79 msgid "Are you sure to close Setup?"
80 msgstr ""
81
82 #: ../setup/setup-gtk2.ui.h:7
83 msgid "Confirm"
84 msgstr ""
85
86 #: ../setup/setup-gtk2.ui.h:8
87 msgid "Custom"
88 msgstr ""
89
90 #: ../setup/setup-gtk2.ui.h:10
91 msgid "General"
92 msgstr ""
93
94 #: ../setup/setup-gtk2.ui.h:11
95 msgid "IBus-Input-Pad Setup"
96 msgstr ""
97
98 #: ../setup/setup-gtk2.ui.h:12
99 msgid "Nothing"
100 msgstr ""
101
102 #: ../setup/setup-gtk2.ui.h:13
119 #: ../setup/setup-gtk2.ui.h:17
103120 msgid "The input pad engine for IBus platform"
104 msgstr ""
105
106 #: ../setup/setup-gtk2.ui.h:14
107 msgid "Whether you show the character table or not"
108 msgstr ""
109
110 #: ../setup/setup-gtk2.ui.h:15
111 msgid "Whether you show the keyboard layout or not"
112 msgstr ""
113
114 #: ../setup/setup-gtk2.ui.h:16
115 msgid "_Character Table Type:"
116 msgstr ""
117
118 #: ../setup/setup-gtk2.ui.h:17
119 msgid "_Keyboard Layout Type:"
120121 msgstr ""
121122
122123 #: ../setup/setup-gtk2.ui.h:18
00 # Japanese translations for ibus-input-pad
1 # Copyright (C) 1999-2010 Free Software Foundation, Inc.
1 # Copyright (C) 2010-2013 Takao Fujiwara <takao.fujiwara1@gmail.com>
22 # This file is distributed under the same license as the ibus-input-pad package.
3 # Takao Fujiwara <takao.fujiwara1@gmail.com>, 2010.
43 #
4 # Translators:
5 # Takao Fujiwara <takao.fujiwara1@gmail.com>, 2010-2013.
56 msgid ""
67 msgstr ""
7 "Project-Id-Version: ibus-input-pad HEAD\n"
8 "Project-Id-Version: ibus-input-pad\n"
89 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
9 "POT-Creation-Date: 2010-07-08 11:59+0900\n"
10 "PO-Revision-Date: 2010-07-08 11:59+0900\n"
10 "POT-Creation-Date: 2013-10-08 14:35+0900\n"
11 "PO-Revision-Date: 2013-12-06 06:23+0000\n"
1112 "Last-Translator: Takao Fujiwara <takao.fujiwara1@gmail.com>\n"
1213 "Language-Team: Japanese\n"
1314 "MIME-Version: 1.0\n"
1415 "Content-Type: text/plain; charset=UTF-8\n"
1516 "Content-Transfer-Encoding: 8bit\n"
17 "Language: ja\n"
1618 "Plural-Forms: nplurals=1; plural=0;\n"
1719
18 #: ../engine/engine.c:157 ../engine/engine.c:158
20 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
21 #: ../engine/engine.c:169
1922 msgid "Launch Input Pad"
2023 msgstr "インプットパッドを起動する"
2124
22 #: ../engine/engine.c:169 ../engine/engine.c:170 ../engine/engine.c:352
25 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
2326 msgid "Show Input Pad"
2427 msgstr "インプットパッドを表示する"
2528
26 #: ../engine/engine.c:179 ../engine/engine.c:180
29 #: ../engine/engine.c:190 ../engine/engine.c:191
2730 msgid "Show Input Pad (Keyboard Only)"
2831 msgstr "インプットパッドを表示する (キーボードのみ)"
2932
30 #: ../engine/engine.c:191
33 #: ../engine/engine.c:203
3134 msgid "Setup Input Pad"
3235 msgstr "インプットパッドの設定"
3336
34 #: ../engine/engine.c:192
37 #: ../engine/engine.c:204
3538 msgid "Configure Input Pad"
3639 msgstr "インプットパッドを構成します"
3740
38 #: ../engine/engine.c:350
41 #: ../engine/engine.c:359
3942 msgid "Hide Input Pad"
4043 msgstr "インプットパッドを隠す"
4144
4346 msgid "Input Pad"
4447 msgstr "インプットパッド"
4548
46 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:9
49 #: ../setup/ibus-setup-input-pad.desktop.in.in.h:1
50 msgid "IBus Input Pad Setup"
51 msgstr "IBus Input Pad の設定"
52
53 #: ../setup/ibus-setup-input-pad.desktop.in.in.h:2
54 msgid "Set up IBus Input Pad engine"
55 msgstr "IBus Input Pad エンジンの設定"
56
57 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
4758 msgid "Default"
4859 msgstr "デフォルト"
4960
50 #: ../setup/setup-gtk2.c:398
61 #: ../setup/setup-gtk2.c:397
5162 msgid "Keyboard _Theme:"
5263 msgstr "キーボードテーマ(_T):"
5364
54 #: ../setup/setup-gtk2.c:401
65 #: ../setup/setup-gtk2.c:400
5566 msgid "Which theme you choose in kbdui modules"
5667 msgstr "kbdui モジュールの中でどのテーマを選ぶか"
5768
5869 #: ../setup/setup-gtk2.ui.h:1
59 msgid "<b>Default Appearance</b>"
60 msgstr "<b>デフォルトの外観</b>"
70 msgid "Nothing"
71 msgstr "なし"
6172
6273 #: ../setup/setup-gtk2.ui.h:2
63 msgid "<b>Keyboard Only Appearance</b>"
64 msgstr "<b>キーボードのみの外観</b>"
74 msgid "Custom"
75 msgstr "カスタム"
6576
6677 #: ../setup/setup-gtk2.ui.h:3
67 msgid "About"
68 msgstr "情報"
69
70 #: ../setup/setup-gtk2.ui.h:4
7178 msgid "All"
7279 msgstr "すべて"
7380
7481 #: ../setup/setup-gtk2.ui.h:5
82 msgid "IBus-Input-Pad Setup"
83 msgstr "IBus-Input-Pad 設定"
84
85 #: ../setup/setup-gtk2.ui.h:6
86 msgid "_Character Table Type:"
87 msgstr "文字テーブルタイプ(_C):"
88
89 #: ../setup/setup-gtk2.ui.h:7
90 msgid "Whether you show the character table or not"
91 msgstr "文字テーブルを表示するか否か"
92
93 #: ../setup/setup-gtk2.ui.h:8
94 msgid "_Keyboard Layout Type:"
95 msgstr "キーボードレイアウトタイプ(_K):"
96
97 #: ../setup/setup-gtk2.ui.h:9
98 msgid "Whether you show the keyboard layout or not"
99 msgstr "キーボードレイアウトを表示するか否か"
100
101 #: ../setup/setup-gtk2.ui.h:10
102 msgid "<b>Default Appearance</b>"
103 msgstr "<b>デフォルトの外観</b>"
104
105 #: ../setup/setup-gtk2.ui.h:11
106 msgid "<b>Keyboard Only Appearance</b>"
107 msgstr "<b>キーボードのみの外観</b>"
108
109 #: ../setup/setup-gtk2.ui.h:12
110 msgid "General"
111 msgstr "一般"
112
113 #: ../setup/setup-gtk2.ui.h:13
114 msgid "About"
115 msgstr "情報"
116
117 #: ../setup/setup-gtk2.ui.h:14
118 msgid "Confirm"
119 msgstr "確認"
120
121 #: ../setup/setup-gtk2.ui.h:15
122 msgid "Are you sure to close Setup?"
123 msgstr "「セットアップ」を閉じても良いですか?"
124
125 #: ../setup/setup-gtk2.ui.h:16
75126 msgid "Are you sure to close Setup without saving configure?"
76127 msgstr "構成を保存せずに「セットアップ」を閉じても良いですか?"
77128
78 #: ../setup/setup-gtk2.ui.h:6
79 msgid "Are you sure to close Setup?"
80 msgstr "「セットアップ」を閉じても良いですか?"
81
82 #: ../setup/setup-gtk2.ui.h:7
83 msgid "Confirm"
84 msgstr "確認"
85
86 #: ../setup/setup-gtk2.ui.h:8
87 msgid "Custom"
88 msgstr "カスタム"
89
90 #: ../setup/setup-gtk2.ui.h:10
91 msgid "General"
92 msgstr "一般"
93
94 #: ../setup/setup-gtk2.ui.h:11
95 msgid "IBus-Input-Pad Setup"
96 msgstr "IBus-Input-Pad 設定"
97
98 #: ../setup/setup-gtk2.ui.h:12
99 msgid "Nothing"
100 msgstr "なし"
101
102 #: ../setup/setup-gtk2.ui.h:13
129 #: ../setup/setup-gtk2.ui.h:17
103130 msgid "The input pad engine for IBus platform"
104131 msgstr "IBus プラットフォーム用インプットパッドエンジン"
105
106 #: ../setup/setup-gtk2.ui.h:14
107 msgid "Whether you show the character table or not"
108 msgstr "文字テーブルを表示するか否か"
109
110 #: ../setup/setup-gtk2.ui.h:15
111 msgid "Whether you show the keyboard layout or not"
112 msgstr "キーボードレイアウトを表示するか否か"
113
114 #: ../setup/setup-gtk2.ui.h:16
115 msgid "_Character Table Type:"
116 msgstr "文字テーブルタイプ(_C):"
117
118 #: ../setup/setup-gtk2.ui.h:17
119 msgid "_Keyboard Layout Type:"
120 msgstr "キーボードレイアウトタイプ(_K):"
121132
122133 #: ../setup/setup-gtk2.ui.h:18
123134 msgid "translator_credits"
0 # Polish translations for ibus-input-pad
1 # Copyright (C) 2010-2012 Takao Fujiwara <takao.fujiwara1@gmail.com>
2 # This file is distributed under the same license as the ibus-input-pad package.
3 #
4 # Translators:
5 # Piotr Drąg <piotrdrag@gmail.com>, 2011,2013
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: ibus-input-pad\n"
9 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
10 "POT-Creation-Date: 2013-10-08 14:35+0900\n"
11 "PO-Revision-Date: 2013-11-20 09:27+0000\n"
12 "Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
13 "Language-Team: Polish\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 "Language: pl\n"
18 "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
19
20 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
21 #: ../engine/engine.c:169
22 msgid "Launch Input Pad"
23 msgstr "Uruchom tablicę wprowadzania"
24
25 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
26 msgid "Show Input Pad"
27 msgstr "Wyświetl tablicę wprowadzania"
28
29 #: ../engine/engine.c:190 ../engine/engine.c:191
30 msgid "Show Input Pad (Keyboard Only)"
31 msgstr "tablicę wprowadzania (tylko klawiaturę)"
32
33 #: ../engine/engine.c:203
34 msgid "Setup Input Pad"
35 msgstr "Ustaw tablicę wprowadzania"
36
37 #: ../engine/engine.c:204
38 msgid "Configure Input Pad"
39 msgstr "Skonfiguruj tablicę wprowadzania"
40
41 #: ../engine/engine.c:359
42 msgid "Hide Input Pad"
43 msgstr "Ukryj tablicę wprowadzania"
44
45 #: ../engine/main.c:55 ../engine/main.c:64 ../engine/main.c:65
46 msgid "Input Pad"
47 msgstr "Tablica wprowadzania"
48
49 #: ../setup/ibus-setup-input-pad.desktop.in.in.h:1
50 msgid "IBus Input Pad Setup"
51 msgstr "Ustawienia tablicy wprowadzania IBus"
52
53 #: ../setup/ibus-setup-input-pad.desktop.in.in.h:2
54 msgid "Set up IBus Input Pad engine"
55 msgstr "Ustawienie mechanizmu tablicy wprowadzania IBus"
56
57 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
58 msgid "Default"
59 msgstr "Domyślne"
60
61 #: ../setup/setup-gtk2.c:397
62 msgid "Keyboard _Theme:"
63 msgstr "_Motyw klawiatury:"
64
65 #: ../setup/setup-gtk2.c:400
66 msgid "Which theme you choose in kbdui modules"
67 msgstr "Jakie motyw wybrać w modułach kbdui"
68
69 #: ../setup/setup-gtk2.ui.h:1
70 msgid "Nothing"
71 msgstr "Nic"
72
73 #: ../setup/setup-gtk2.ui.h:2
74 msgid "Custom"
75 msgstr "Własne"
76
77 #: ../setup/setup-gtk2.ui.h:3
78 msgid "All"
79 msgstr "Wszystko"
80
81 #: ../setup/setup-gtk2.ui.h:5
82 msgid "IBus-Input-Pad Setup"
83 msgstr "Ustawienia tablicy wprowadzania IBus"
84
85 #: ../setup/setup-gtk2.ui.h:6
86 msgid "_Character Table Type:"
87 msgstr "Typ tablicy _znaków:"
88
89 #: ../setup/setup-gtk2.ui.h:7
90 msgid "Whether you show the character table or not"
91 msgstr "Określa, czy wyświetlać tablicę znaków"
92
93 #: ../setup/setup-gtk2.ui.h:8
94 msgid "_Keyboard Layout Type:"
95 msgstr "Typ układu _klawiatury:"
96
97 #: ../setup/setup-gtk2.ui.h:9
98 msgid "Whether you show the keyboard layout or not"
99 msgstr "Określa, czy wyświetlać układ klawiatury"
100
101 #: ../setup/setup-gtk2.ui.h:10
102 msgid "<b>Default Appearance</b>"
103 msgstr "<b>Domyślny wygląd</b>"
104
105 #: ../setup/setup-gtk2.ui.h:11
106 msgid "<b>Keyboard Only Appearance</b>"
107 msgstr "<b>Tylko wygląd klawiatury</b>"
108
109 #: ../setup/setup-gtk2.ui.h:12
110 msgid "General"
111 msgstr "Ogólne"
112
113 #: ../setup/setup-gtk2.ui.h:13
114 msgid "About"
115 msgstr "O programie"
116
117 #: ../setup/setup-gtk2.ui.h:14
118 msgid "Confirm"
119 msgstr "Potwierdź"
120
121 #: ../setup/setup-gtk2.ui.h:15
122 msgid "Are you sure to close Setup?"
123 msgstr "Na pewno zamknąć ustawienia?"
124
125 #: ../setup/setup-gtk2.ui.h:16
126 msgid "Are you sure to close Setup without saving configure?"
127 msgstr "Na pewno zamknąć ustawienia bez zapisania konfiguracji?"
128
129 #: ../setup/setup-gtk2.ui.h:17
130 msgid "The input pad engine for IBus platform"
131 msgstr "Mechanizm tablicy wprowadzania dla platformy IBus"
132
133 #: ../setup/setup-gtk2.ui.h:18
134 msgid "translator_credits"
135 msgstr "Piotr Drąg <piotrdrag@gmail.com>, 2011"
0 # Telugu translations for ibus-input-pad
1 # Copyright (C) 2010-2012 Takao Fujiwara <takao.fujiwara1@gmail.com>
2 # This file is distributed under the same license as the ibus-input-pad package.
3 #
4 # Translators:
5 # ప్రవీణ్ యిళ్ళ <mail2ipn@gmail.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: ibus-input-pad HEAD\n"
9 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
10 "POT-Creation-Date: 2012-12-17 19:34+0900\n"
11 "PO-Revision-Date: 2012-02-14 08:36+0000\n"
12 "Last-Translator: ప్రవీణ్ ఇళ్ళ <mail2ipn@gmail.com>\n"
13 "Language-Team: Telugu\n"
14 "Language: te\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
20 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
21 #: ../engine/engine.c:169
22 msgid "Launch Input Pad"
23 msgstr "ఇన్‌పుట్ ప్యాడ్ ప్రారంభించు"
24
25 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
26 msgid "Show Input Pad"
27 msgstr "ఇన్‌పుట్ ప్యాడ్ చూపించు"
28
29 #: ../engine/engine.c:190 ../engine/engine.c:191
30 msgid "Show Input Pad (Keyboard Only)"
31 msgstr "ఇన్‌పుట్ ప్యాడ్ చూపించు(కీబోర్డు మాత్రమే)"
32
33 #: ../engine/engine.c:203
34 msgid "Setup Input Pad"
35 msgstr "ఇన్‌పుట్ ప్యాడ్ అమర్చు"
36
37 #: ../engine/engine.c:204
38 msgid "Configure Input Pad"
39 msgstr "ఇన్‌పుట్ ప్యాడ్ స్వరూపించు"
40
41 #: ../engine/engine.c:359
42 msgid "Hide Input Pad"
43 msgstr "ఇన్‌పుట్ ప్యాడ్‌ను దాయి"
44
45 #: ../engine/main.c:55 ../engine/main.c:64 ../engine/main.c:65
46 msgid "Input Pad"
47 msgstr "ఇన్‌పుట్ ప్యాడ్"
48
49 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
50 msgid "Default"
51 msgstr "అప్రమేయం"
52
53 #: ../setup/setup-gtk2.c:397
54 msgid "Keyboard _Theme:"
55 msgstr "కీబోర్డు థీమ్(_T):"
56
57 #: ../setup/setup-gtk2.c:400
58 msgid "Which theme you choose in kbdui modules"
59 msgstr ""
60
61 #: ../setup/setup-gtk2.ui.h:1
62 msgid "Nothing"
63 msgstr ""
64
65 #: ../setup/setup-gtk2.ui.h:2
66 msgid "Custom"
67 msgstr "అనురూపిత"
68
69 #: ../setup/setup-gtk2.ui.h:3
70 msgid "All"
71 msgstr "అన్ని"
72
73 #: ../setup/setup-gtk2.ui.h:5
74 msgid "IBus-Input-Pad Setup"
75 msgstr ""
76
77 #: ../setup/setup-gtk2.ui.h:6
78 msgid "_Character Table Type:"
79 msgstr ""
80
81 #: ../setup/setup-gtk2.ui.h:7
82 msgid "Whether you show the character table or not"
83 msgstr ""
84
85 #: ../setup/setup-gtk2.ui.h:8
86 msgid "_Keyboard Layout Type:"
87 msgstr "కీబోర్డు నమూనా రకం(_K):"
88
89 #: ../setup/setup-gtk2.ui.h:9
90 msgid "Whether you show the keyboard layout or not"
91 msgstr ""
92
93 #: ../setup/setup-gtk2.ui.h:10
94 msgid "<b>Default Appearance</b>"
95 msgstr "<b>అప్రమేయ స్వరూపం</b>"
96
97 #: ../setup/setup-gtk2.ui.h:11
98 msgid "<b>Keyboard Only Appearance</b>"
99 msgstr "<b>కీబోర్డు స్వరూపం</b>"
100
101 #: ../setup/setup-gtk2.ui.h:12
102 msgid "General"
103 msgstr "సాధారణం"
104
105 #: ../setup/setup-gtk2.ui.h:13
106 msgid "About"
107 msgstr "గురించి"
108
109 #: ../setup/setup-gtk2.ui.h:14
110 msgid "Confirm"
111 msgstr "నిర్ధారించు"
112
113 #: ../setup/setup-gtk2.ui.h:15
114 msgid "Are you sure to close Setup?"
115 msgstr "అమరికను ఖచ్చితముగా మూసివేయాలనుకుంటున్నారా?"
116
117 #: ../setup/setup-gtk2.ui.h:16
118 msgid "Are you sure to close Setup without saving configure?"
119 msgstr ""
120
121 #: ../setup/setup-gtk2.ui.h:17
122 msgid "The input pad engine for IBus platform"
123 msgstr ""
124
125 #: ../setup/setup-gtk2.ui.h:18
126 msgid "translator_credits"
127 msgstr "Praveen Illa <mail2ipn@gmail.com>, 2011"
0 # Ukrainian translations for ibus-input-pad
1 # Copyright (C) 2010-2012 Takao Fujiwara <takao.fujiwara1@gmail.com>
2 # This file is distributed under the same license as the ibus-input-pad package.
3 #
4 # Translators:
5 # Yuri Chornoivan <yurchor@ukr.net>, 2012.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: ibus-input-pad HEAD\n"
9 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
10 "POT-Creation-Date: 2012-12-17 19:34+0900\n"
11 "PO-Revision-Date: 2012-03-06 13:41+0000\n"
12 "Last-Translator: Yuri Chornoivan <yurchor@ukr.net>\n"
13 "Language-Team: Ukrainian\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
20
21 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
22 #: ../engine/engine.c:169
23 msgid "Launch Input Pad"
24 msgstr "Запустити панель введення"
25
26 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
27 msgid "Show Input Pad"
28 msgstr "Показати панель введення"
29
30 #: ../engine/engine.c:190 ../engine/engine.c:191
31 msgid "Show Input Pad (Keyboard Only)"
32 msgstr "Показати панель введення (лише клавіатуру)"
33
34 #: ../engine/engine.c:203
35 msgid "Setup Input Pad"
36 msgstr "Встановити параметри панелі введення"
37
38 #: ../engine/engine.c:204
39 msgid "Configure Input Pad"
40 msgstr "Налаштувати панель введення"
41
42 #: ../engine/engine.c:359
43 msgid "Hide Input Pad"
44 msgstr "Сховати панель введення"
45
46 #: ../engine/main.c:55 ../engine/main.c:64 ../engine/main.c:65
47 msgid "Input Pad"
48 msgstr "Панель введення"
49
50 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
51 msgid "Default"
52 msgstr "Типово"
53
54 #: ../setup/setup-gtk2.c:397
55 msgid "Keyboard _Theme:"
56 msgstr "_Тема клавіатури:"
57
58 #: ../setup/setup-gtk2.c:400
59 msgid "Which theme you choose in kbdui modules"
60 msgstr "Яку тему ви виберете для модулів kbdui"
61
62 #: ../setup/setup-gtk2.ui.h:1
63 msgid "Nothing"
64 msgstr "Нічого"
65
66 #: ../setup/setup-gtk2.ui.h:2
67 msgid "Custom"
68 msgstr "Нетипове"
69
70 #: ../setup/setup-gtk2.ui.h:3
71 msgid "All"
72 msgstr "Всі"
73
74 #: ../setup/setup-gtk2.ui.h:5
75 msgid "IBus-Input-Pad Setup"
76 msgstr "Налаштування панелі введення IBus"
77
78 #: ../setup/setup-gtk2.ui.h:6
79 msgid "_Character Table Type:"
80 msgstr "Т_ип таблиці символів:"
81
82 #: ../setup/setup-gtk2.ui.h:7
83 msgid "Whether you show the character table or not"
84 msgstr "Чи слід показувати таблицю символів"
85
86 #: ../setup/setup-gtk2.ui.h:8
87 msgid "_Keyboard Layout Type:"
88 msgstr "Тип _розкладки клавіатури:"
89
90 #: ../setup/setup-gtk2.ui.h:9
91 msgid "Whether you show the keyboard layout or not"
92 msgstr "Чи слід показувати розкладку клавіатури"
93
94 #: ../setup/setup-gtk2.ui.h:10
95 msgid "<b>Default Appearance</b>"
96 msgstr "<b>Типовий вигляд</b>"
97
98 #: ../setup/setup-gtk2.ui.h:11
99 msgid "<b>Keyboard Only Appearance</b>"
100 msgstr "<b>Вигляд клавіатури</b>"
101
102 #: ../setup/setup-gtk2.ui.h:12
103 msgid "General"
104 msgstr "Загальне"
105
106 #: ../setup/setup-gtk2.ui.h:13
107 msgid "About"
108 msgstr "Про програму"
109
110 #: ../setup/setup-gtk2.ui.h:14
111 msgid "Confirm"
112 msgstr "Підтвердити"
113
114 #: ../setup/setup-gtk2.ui.h:15
115 msgid "Are you sure to close Setup?"
116 msgstr "Ви справді бажаєте закрити вікно налаштовування?"
117
118 #: ../setup/setup-gtk2.ui.h:16
119 msgid "Are you sure to close Setup without saving configure?"
120 msgstr ""
121 "Ви справді бажаєте закрити вікно налаштовування без збереження параметрів?"
122
123 #: ../setup/setup-gtk2.ui.h:17
124 msgid "The input pad engine for IBus platform"
125 msgstr "Рушій панелі введення для платформи IBus"
126
127 #: ../setup/setup-gtk2.ui.h:18
128 msgid "translator_credits"
129 msgstr "Юрій Чорноіван <yurchor@ukr.net>"
0 # Traditional Chinese translations for ibus-input-pad
1 # Copyright (C) 2010-2012 Takao Fujiwara <takao.fujiwara1@gmail.com>
2 # This file is distributed under the same license as the ibus-input-pad package.
3 #
4 # Translators:
5 # Cheng-Chia Tseng <pswo10680@gmail.com>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: ibus-input-pad HEAD\n"
9 "Report-Msgid-Bugs-To: http://code.google.com/p/input-pad/issues/entry\n"
10 "POT-Creation-Date: 2012-12-17 19:34+0900\n"
11 "PO-Revision-Date: 2012-02-14 08:36+0000\n"
12 "Last-Translator: Cheng-Chia Tseng <pswo10680@gmail.com>\n"
13 "Language-Team: Traditional Chinese\n"
14 "Language: zh_TW\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=1; plural=0;\n"
19
20 #: ../engine/engine.c:158 ../engine/engine.c:159 ../engine/engine.c:168
21 #: ../engine/engine.c:169
22 msgid "Launch Input Pad"
23 msgstr "啟動輸入板"
24
25 #: ../engine/engine.c:180 ../engine/engine.c:181 ../engine/engine.c:361
26 msgid "Show Input Pad"
27 msgstr "顯示輸入板"
28
29 #: ../engine/engine.c:190 ../engine/engine.c:191
30 msgid "Show Input Pad (Keyboard Only)"
31 msgstr "顯示輸入板 (僅鍵盤)"
32
33 #: ../engine/engine.c:203
34 msgid "Setup Input Pad"
35 msgstr "設置輸入板"
36
37 #: ../engine/engine.c:204
38 msgid "Configure Input Pad"
39 msgstr "設定輸入板"
40
41 #: ../engine/engine.c:359
42 msgid "Hide Input Pad"
43 msgstr "隱藏輸入板"
44
45 #: ../engine/main.c:55 ../engine/main.c:64 ../engine/main.c:65
46 msgid "Input Pad"
47 msgstr "輸入板"
48
49 #: ../setup/setup-gtk2.c:360 ../setup/setup-gtk2.ui.h:4
50 msgid "Default"
51 msgstr "預設"
52
53 #: ../setup/setup-gtk2.c:397
54 msgid "Keyboard _Theme:"
55 msgstr "鍵盤主題(_T):"
56
57 #: ../setup/setup-gtk2.c:400
58 msgid "Which theme you choose in kbdui modules"
59 msgstr "您想要 kbdui 模組使用哪個主題"
60
61 #: ../setup/setup-gtk2.ui.h:1
62 msgid "Nothing"
63 msgstr "無"
64
65 #: ../setup/setup-gtk2.ui.h:2
66 msgid "Custom"
67 msgstr "自訂"
68
69 #: ../setup/setup-gtk2.ui.h:3
70 msgid "All"
71 msgstr "全部"
72
73 #: ../setup/setup-gtk2.ui.h:5
74 msgid "IBus-Input-Pad Setup"
75 msgstr "IBus-Input-Pad 設置"
76
77 #: ../setup/setup-gtk2.ui.h:6
78 msgid "_Character Table Type:"
79 msgstr "字元表類型(_C):"
80
81 #: ../setup/setup-gtk2.ui.h:7
82 msgid "Whether you show the character table or not"
83 msgstr "您是否要顯示字元表"
84
85 #: ../setup/setup-gtk2.ui.h:8
86 msgid "_Keyboard Layout Type:"
87 msgstr "鍵盤配置類型(_K):"
88
89 #: ../setup/setup-gtk2.ui.h:9
90 msgid "Whether you show the keyboard layout or not"
91 msgstr "您是否要顯示鍵盤配置"
92
93 #: ../setup/setup-gtk2.ui.h:10
94 msgid "<b>Default Appearance</b>"
95 msgstr "<b>預設外觀</b>"
96
97 #: ../setup/setup-gtk2.ui.h:11
98 msgid "<b>Keyboard Only Appearance</b>"
99 msgstr "<b>僅鍵盤外觀</b>"
100
101 #: ../setup/setup-gtk2.ui.h:12
102 msgid "General"
103 msgstr "一般"
104
105 #: ../setup/setup-gtk2.ui.h:13
106 msgid "About"
107 msgstr "關於"
108
109 #: ../setup/setup-gtk2.ui.h:14
110 msgid "Confirm"
111 msgstr "確認"
112
113 #: ../setup/setup-gtk2.ui.h:15
114 msgid "Are you sure to close Setup?"
115 msgstr "您確定要關閉「設置」嗎?"
116
117 #: ../setup/setup-gtk2.ui.h:16
118 msgid "Are you sure to close Setup without saving configure?"
119 msgstr "您確定要關閉「設置」而不儲存設定嗎?"
120
121 #: ../setup/setup-gtk2.ui.h:17
122 msgid "The input pad engine for IBus platform"
123 msgstr "IBus 平臺的輸入板引擎"
124
125 #: ../setup/setup-gtk2.ui.h:18
126 msgid "translator_credits"
127 msgstr "Cheng-Chia Tseng <pswo10680@gmail.com>, 2011."
11 #
22 # ibus-input-pad - Input pad for IBus
33 #
4 # Copyright (c) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010 Red Hat, Inc.
4 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
5 # Copyright (c) 2010-2011 Red Hat, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
2424 setupdir=$(pkgdatadir)/setup
2525 setup_DATA=setup-gtk2.ui
2626
27 INCLUDES = \
27 AM_CPPFLAGS = \
2828 -I$(top_srcdir) \
2929 -I$(top_srcdir)/engine \
3030 -DDATAROOTDIR=\""$(datarootdir)"\" \
8484 ibus_setup_input_pad_LDADD += $(GTK2_LIBS)
8585 endif
8686
87 desktop_in_in_files = ibus-setup-input-pad.desktop.in.in
88 desktop_in_files = $(desktop_in_in_files:.in.in=.in)
89
90 $(desktop_in_files): %.desktop.in: %.desktop.in.in Makefile
91 $(AM_V_GEN) sed \
92 -e "s|\@libexecdir\@|$(libexecdir)|" \
93 -e "s|\@datadir\@|$(datadir)|" \
94 $< > $@.tmp && mv $@.tmp $@
95
96 desktopdir=$(datadir)/applications
97 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
98
99 @INTLTOOL_DESKTOP_RULE@
100
87101 EXTRA_DIST = \
102 $(desktop_in_in_files) \
88103 setup-gtk2.ui \
89104 $(NULL)
90105
91106 CLEANFILES = \
107 $(desktop_DATA) \
108 $(desktop_in_files) \
92109 $(NULL)
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
5 # Inc.
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
1817 #
1918 # ibus-input-pad - Input pad for IBus
2019 #
21 # Copyright (c) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
22 # Copyright (c) 2010 Red Hat, Inc.
20 # Copyright (c) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
21 # Copyright (c) 2010-2011 Red Hat, Inc.
2322 #
2423 # This program is free software; you can redistribute it and/or modify
2524 # it under the terms of the GNU General Public License as published by
3837
3938
4039 VPATH = @srcdir@
40 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
41 am__make_running_with_option = \
42 case $${target_option-} in \
43 ?) ;; \
44 *) echo "am__make_running_with_option: internal error: invalid" \
45 "target option '$${target_option-}' specified" >&2; \
46 exit 1;; \
47 esac; \
48 has_opt=no; \
49 sane_makeflags=$$MAKEFLAGS; \
50 if $(am__is_gnu_make); then \
51 sane_makeflags=$$MFLAGS; \
52 else \
53 case $$MAKEFLAGS in \
54 *\\[\ \ ]*) \
55 bs=\\; \
56 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
57 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
58 esac; \
59 fi; \
60 skip_next=no; \
61 strip_trailopt () \
62 { \
63 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
64 }; \
65 for flg in $$sane_makeflags; do \
66 test $$skip_next = yes && { skip_next=no; continue; }; \
67 case $$flg in \
68 *=*|--*) continue;; \
69 -*I) strip_trailopt 'I'; skip_next=yes;; \
70 -*I?*) strip_trailopt 'I';; \
71 -*O) strip_trailopt 'O'; skip_next=yes;; \
72 -*O?*) strip_trailopt 'O';; \
73 -*l) strip_trailopt 'l'; skip_next=yes;; \
74 -*l?*) strip_trailopt 'l';; \
75 -[dEDm]) skip_next=yes;; \
76 -[JT]) skip_next=yes;; \
77 esac; \
78 case $$flg in \
79 *$$target_option*) has_opt=yes; break;; \
80 esac; \
81 done; \
82 test $$has_opt = yes
83 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
84 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4185 pkgdatadir = $(datadir)/@PACKAGE@
4286 pkgincludedir = $(includedir)/@PACKAGE@
4387 pkglibdir = $(libdir)/@PACKAGE@
62106 @HAVE_GTK3_FALSE@am__append_3 = $(GTK2_CFLAGS)
63107 @HAVE_GTK3_FALSE@am__append_4 = $(GTK2_LIBS)
64108 subdir = setup
65 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
109 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
110 $(top_srcdir)/depcomp
66111 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
67 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
112 am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
113 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
114 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
115 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
68116 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
69117 $(ACLOCAL_M4)
70118 mkinstalldirs = $(install_sh) -d
77125 $(am__DEPENDENCIES_1)
78126 am_libiconfig_la_OBJECTS = libiconfig_la-iconfig-gtk2.lo
79127 libiconfig_la_OBJECTS = $(am_libiconfig_la_OBJECTS)
80 libiconfig_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
128 AM_V_lt = $(am__v_lt_@AM_V@)
129 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
130 am__v_lt_0 = --silent
131 am__v_lt_1 =
132 libiconfig_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
81133 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(libiconfig_la_CFLAGS) \
82134 $(CFLAGS) $(libiconfig_la_LDFLAGS) $(LDFLAGS) -o $@
83 am__installdirs = "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(setupdir)"
135 am__installdirs = "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(desktopdir)" \
136 "$(DESTDIR)$(setupdir)"
84137 PROGRAMS = $(libexec_PROGRAMS)
85138 am_ibus_setup_input_pad_OBJECTS = ibus_setup_input_pad-main.$(OBJEXT) \
86139 ibus_setup_input_pad-setup-gtk2.$(OBJEXT)
90143 ibus_setup_input_pad_DEPENDENCIES = $(builddir)/libiconfig.la \
91144 $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
92145 $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3)
93 ibus_setup_input_pad_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
94 $(LIBTOOLFLAGS) --mode=link $(CCLD) \
146 ibus_setup_input_pad_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
147 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
95148 $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) \
96149 $(ibus_setup_input_pad_LDFLAGS) $(LDFLAGS) -o $@
150 AM_V_P = $(am__v_P_@AM_V@)
151 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
152 am__v_P_0 = false
153 am__v_P_1 = :
154 AM_V_GEN = $(am__v_GEN_@AM_V@)
155 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
156 am__v_GEN_0 = @echo " GEN " $@;
157 am__v_GEN_1 =
158 AM_V_at = $(am__v_at_@AM_V@)
159 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
160 am__v_at_0 = @
161 am__v_at_1 =
97162 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
98163 depcomp = $(SHELL) $(top_srcdir)/depcomp
99164 am__depfiles_maybe = depfiles
100165 am__mv = mv -f
101166 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
102167 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
103 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
104 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
105 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
168 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
169 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
170 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
171 $(AM_CFLAGS) $(CFLAGS)
172 AM_V_CC = $(am__v_CC_@AM_V@)
173 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
174 am__v_CC_0 = @echo " CC " $@;
175 am__v_CC_1 =
106176 CCLD = $(CC)
107 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
108 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
109 $(LDFLAGS) -o $@
177 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
178 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
179 $(AM_LDFLAGS) $(LDFLAGS) -o $@
180 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
181 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
182 am__v_CCLD_0 = @echo " CCLD " $@;
183 am__v_CCLD_1 =
110184 SOURCES = $(libiconfig_la_SOURCES) $(ibus_setup_input_pad_SOURCES)
111185 DIST_SOURCES = $(libiconfig_la_SOURCES) \
112186 $(ibus_setup_input_pad_SOURCES)
187 am__can_run_installinfo = \
188 case $$AM_UPDATE_INFO_DIR in \
189 n|no|NO) false;; \
190 *) (install-info --version) >/dev/null 2>&1;; \
191 esac
113192 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
114193 am__vpath_adj = case $$p in \
115194 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
131210 am__base_list = \
132211 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
133212 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
134 DATA = $(setup_DATA)
213 am__uninstall_files_from_dir = { \
214 test -z "$$files" \
215 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
216 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
217 $(am__cd) "$$dir" && rm -f $$files; }; \
218 }
219 DATA = $(desktop_DATA) $(setup_DATA)
220 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
221 # Read a list of newline-separated strings from the standard input,
222 # and print each of them once, without duplicates. Input order is
223 # *not* preserved.
224 am__uniquify_input = $(AWK) '\
225 BEGIN { nonempty = 0; } \
226 { items[$$0] = 1; nonempty = 1; } \
227 END { if (nonempty) { for (i in items) print i; }; } \
228 '
229 # Make sure the list of sources is unique. This is necessary because,
230 # e.g., the same source file might be shared among _SOURCES variables
231 # for different programs/libraries.
232 am__define_uniq_tagged_files = \
233 list='$(am__tagged_files)'; \
234 unique=`for i in $$list; do \
235 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
236 done | $(am__uniquify_input)`
135237 ETAGS = etags
136238 CTAGS = ctags
137239 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
138240 ACLOCAL = @ACLOCAL@
139241 ALL_LINGUAS = @ALL_LINGUAS@
140242 AMTAR = @AMTAR@
243 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
141244 AR = @AR@
142245 AUTOCONF = @AUTOCONF@
143246 AUTOHEADER = @AUTOHEADER@
159262 DATE_DISPLAY = @DATE_DISPLAY@
160263 DEFS = @DEFS@
161264 DEPDIR = @DEPDIR@
265 DLLTOOL = @DLLTOOL@
162266 DSYMUTIL = @DSYMUTIL@
163267 DUMPBIN = @DUMPBIN@
164268 ECHO_C = @ECHO_C@
171275 GLIB2_CFLAGS = @GLIB2_CFLAGS@
172276 GLIB2_LIBS = @GLIB2_LIBS@
173277 GLIB_CFLAGS = @GLIB_CFLAGS@
278 GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
174279 GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
175280 GLIB_LIBS = @GLIB_LIBS@
176281 GLIB_MKENUMS = @GLIB_MKENUMS@
197302 INTLTOOL_MERGE = @INTLTOOL_MERGE@
198303 INTLTOOL_PERL = @INTLTOOL_PERL@
199304 INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
305 INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
306 INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
307 INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
308 INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
200309 LD = @LD@
201310 LDFLAGS = @LDFLAGS@
202311 LIBOBJS = @LIBOBJS@
207316 LTLIBOBJS = @LTLIBOBJS@
208317 MAINT = @MAINT@
209318 MAKEINFO = @MAKEINFO@
319 MANIFEST_TOOL = @MANIFEST_TOOL@
210320 MKDIR_P = @MKDIR_P@
211321 MKINSTALLDIRS = @MKINSTALLDIRS@
212322 MSGFMT = @MSGFMT@
245355 abs_srcdir = @abs_srcdir@
246356 abs_top_builddir = @abs_top_builddir@
247357 abs_top_srcdir = @abs_top_srcdir@
358 ac_ct_AR = @ac_ct_AR@
248359 ac_ct_CC = @ac_ct_CC@
249360 ac_ct_CXX = @ac_ct_CXX@
250361 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
274385 includedir = @includedir@
275386 infodir = @infodir@
276387 install_sh = @install_sh@
388 intltool__v_merge_options_ = @intltool__v_merge_options_@
389 intltool__v_merge_options_0 = @intltool__v_merge_options_0@
277390 libdir = @libdir@
278391 libexecdir = @libexecdir@
279392 libinput_pad_VERSION = @libinput_pad_VERSION@
299412
300413 setupdir = $(pkgdatadir)/setup
301414 setup_DATA = setup-gtk2.ui
302 INCLUDES = \
415 AM_CPPFLAGS = \
303416 -I$(top_srcdir) \
304417 -I$(top_srcdir)/engine \
305418 -DDATAROOTDIR=\""$(datarootdir)"\" \
342455
343456 ibus_setup_input_pad_LDADD = $(builddir)/libiconfig.la $(IBUS_LIBS) \
344457 $(INPUT_PAD_LIBS) $(NULL) $(am__append_2) $(am__append_4)
458 desktop_in_in_files = ibus-setup-input-pad.desktop.in.in
459 desktop_in_files = $(desktop_in_in_files:.in.in=.in)
460 desktopdir = $(datadir)/applications
461 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
345462 EXTRA_DIST = \
463 $(desktop_in_in_files) \
346464 setup-gtk2.ui \
347465 $(NULL)
348466
349467 CLEANFILES = \
468 $(desktop_DATA) \
469 $(desktop_in_files) \
350470 $(NULL)
351471
352472 all: all-am
386506
387507 clean-noinstLTLIBRARIES:
388508 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
389 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
390 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
391 test "$$dir" != "$$p" || dir=.; \
392 echo "rm -f \"$${dir}/so_locations\""; \
393 rm -f "$${dir}/so_locations"; \
394 done
395 libiconfig.la: $(libiconfig_la_OBJECTS) $(libiconfig_la_DEPENDENCIES)
396 $(libiconfig_la_LINK) $(libiconfig_la_OBJECTS) $(libiconfig_la_LIBADD) $(LIBS)
509 @list='$(noinst_LTLIBRARIES)'; \
510 locs=`for p in $$list; do echo $$p; done | \
511 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
512 sort -u`; \
513 test -z "$$locs" || { \
514 echo rm -f $${locs}; \
515 rm -f $${locs}; \
516 }
517
518 libiconfig.la: $(libiconfig_la_OBJECTS) $(libiconfig_la_DEPENDENCIES) $(EXTRA_libiconfig_la_DEPENDENCIES)
519 $(AM_V_CCLD)$(libiconfig_la_LINK) $(libiconfig_la_OBJECTS) $(libiconfig_la_LIBADD) $(LIBS)
397520 install-libexecPROGRAMS: $(libexec_PROGRAMS)
398521 @$(NORMAL_INSTALL)
399 test -z "$(libexecdir)" || $(MKDIR_P) "$(DESTDIR)$(libexecdir)"
400522 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
523 if test -n "$$list"; then \
524 echo " $(MKDIR_P) '$(DESTDIR)$(libexecdir)'"; \
525 $(MKDIR_P) "$(DESTDIR)$(libexecdir)" || exit 1; \
526 fi; \
401527 for p in $$list; do echo "$$p $$p"; done | \
402528 sed 's/$(EXEEXT)$$//' | \
403 while read p p1; do if test -f $$p || test -f $$p1; \
404 then echo "$$p"; echo "$$p"; else :; fi; \
529 while read p p1; do if test -f $$p \
530 || test -f $$p1 \
531 ; then echo "$$p"; echo "$$p"; else :; fi; \
405532 done | \
406 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
533 sed -e 'p;s,.*/,,;n;h' \
534 -e 's|.*|.|' \
407535 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
408536 sed 'N;N;N;s,\n, ,g' | \
409537 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
424552 @list='$(libexec_PROGRAMS)'; test -n "$(libexecdir)" || list=; \
425553 files=`for p in $$list; do echo "$$p"; done | \
426554 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
427 -e 's/$$/$(EXEEXT)/' `; \
555 -e 's/$$/$(EXEEXT)/' \
556 `; \
428557 test -n "$$list" || exit 0; \
429558 echo " ( cd '$(DESTDIR)$(libexecdir)' && rm -f" $$files ")"; \
430559 cd "$(DESTDIR)$(libexecdir)" && rm -f $$files
437566 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
438567 echo " rm -f" $$list; \
439568 rm -f $$list
440 ibus-setup-input-pad$(EXEEXT): $(ibus_setup_input_pad_OBJECTS) $(ibus_setup_input_pad_DEPENDENCIES)
569
570 ibus-setup-input-pad$(EXEEXT): $(ibus_setup_input_pad_OBJECTS) $(ibus_setup_input_pad_DEPENDENCIES) $(EXTRA_ibus_setup_input_pad_DEPENDENCIES)
441571 @rm -f ibus-setup-input-pad$(EXEEXT)
442 $(ibus_setup_input_pad_LINK) $(ibus_setup_input_pad_OBJECTS) $(ibus_setup_input_pad_LDADD) $(LIBS)
572 $(AM_V_CCLD)$(ibus_setup_input_pad_LINK) $(ibus_setup_input_pad_OBJECTS) $(ibus_setup_input_pad_LDADD) $(LIBS)
443573
444574 mostlyclean-compile:
445575 -rm -f *.$(OBJEXT)
452582 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libiconfig_la-iconfig-gtk2.Plo@am__quote@
453583
454584 .c.o:
455 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
456 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
457 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
585 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
586 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
587 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
458588 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
459 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
589 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
460590
461591 .c.obj:
462 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
463 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
464 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
592 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
593 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
594 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
465595 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
466 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
596 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
467597
468598 .c.lo:
469 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
470 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
471 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
599 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
600 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
601 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
472602 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
473 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
603 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
474604
475605 libiconfig_la-iconfig-gtk2.lo: iconfig-gtk2.c
476 @am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiconfig_la_CFLAGS) $(CFLAGS) -MT libiconfig_la-iconfig-gtk2.lo -MD -MP -MF $(DEPDIR)/libiconfig_la-iconfig-gtk2.Tpo -c -o libiconfig_la-iconfig-gtk2.lo `test -f 'iconfig-gtk2.c' || echo '$(srcdir)/'`iconfig-gtk2.c
477 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/libiconfig_la-iconfig-gtk2.Tpo $(DEPDIR)/libiconfig_la-iconfig-gtk2.Plo
478 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='iconfig-gtk2.c' object='libiconfig_la-iconfig-gtk2.lo' libtool=yes @AMDEPBACKSLASH@
606 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiconfig_la_CFLAGS) $(CFLAGS) -MT libiconfig_la-iconfig-gtk2.lo -MD -MP -MF $(DEPDIR)/libiconfig_la-iconfig-gtk2.Tpo -c -o libiconfig_la-iconfig-gtk2.lo `test -f 'iconfig-gtk2.c' || echo '$(srcdir)/'`iconfig-gtk2.c
607 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libiconfig_la-iconfig-gtk2.Tpo $(DEPDIR)/libiconfig_la-iconfig-gtk2.Plo
608 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='iconfig-gtk2.c' object='libiconfig_la-iconfig-gtk2.lo' libtool=yes @AMDEPBACKSLASH@
479609 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
480 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiconfig_la_CFLAGS) $(CFLAGS) -c -o libiconfig_la-iconfig-gtk2.lo `test -f 'iconfig-gtk2.c' || echo '$(srcdir)/'`iconfig-gtk2.c
610 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libiconfig_la_CFLAGS) $(CFLAGS) -c -o libiconfig_la-iconfig-gtk2.lo `test -f 'iconfig-gtk2.c' || echo '$(srcdir)/'`iconfig-gtk2.c
481611
482612 ibus_setup_input_pad-main.o: main.c
483 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-main.o -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-main.Tpo -c -o ibus_setup_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
484 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ibus_setup_input_pad-main.Tpo $(DEPDIR)/ibus_setup_input_pad-main.Po
485 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='ibus_setup_input_pad-main.o' libtool=no @AMDEPBACKSLASH@
613 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-main.o -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-main.Tpo -c -o ibus_setup_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
614 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_setup_input_pad-main.Tpo $(DEPDIR)/ibus_setup_input_pad-main.Po
615 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='ibus_setup_input_pad-main.o' libtool=no @AMDEPBACKSLASH@
486616 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
487 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
617 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-main.o `test -f 'main.c' || echo '$(srcdir)/'`main.c
488618
489619 ibus_setup_input_pad-main.obj: main.c
490 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-main.obj -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-main.Tpo -c -o ibus_setup_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
491 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ibus_setup_input_pad-main.Tpo $(DEPDIR)/ibus_setup_input_pad-main.Po
492 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='ibus_setup_input_pad-main.obj' libtool=no @AMDEPBACKSLASH@
620 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-main.obj -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-main.Tpo -c -o ibus_setup_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
621 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_setup_input_pad-main.Tpo $(DEPDIR)/ibus_setup_input_pad-main.Po
622 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='main.c' object='ibus_setup_input_pad-main.obj' libtool=no @AMDEPBACKSLASH@
493623 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
494 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
624 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi`
495625
496626 ibus_setup_input_pad-setup-gtk2.o: setup-gtk2.c
497 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-setup-gtk2.o -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo -c -o ibus_setup_input_pad-setup-gtk2.o `test -f 'setup-gtk2.c' || echo '$(srcdir)/'`setup-gtk2.c
498 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Po
499 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='setup-gtk2.c' object='ibus_setup_input_pad-setup-gtk2.o' libtool=no @AMDEPBACKSLASH@
627 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-setup-gtk2.o -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo -c -o ibus_setup_input_pad-setup-gtk2.o `test -f 'setup-gtk2.c' || echo '$(srcdir)/'`setup-gtk2.c
628 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Po
629 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='setup-gtk2.c' object='ibus_setup_input_pad-setup-gtk2.o' libtool=no @AMDEPBACKSLASH@
500630 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
501 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-setup-gtk2.o `test -f 'setup-gtk2.c' || echo '$(srcdir)/'`setup-gtk2.c
631 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-setup-gtk2.o `test -f 'setup-gtk2.c' || echo '$(srcdir)/'`setup-gtk2.c
502632
503633 ibus_setup_input_pad-setup-gtk2.obj: setup-gtk2.c
504 @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-setup-gtk2.obj -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo -c -o ibus_setup_input_pad-setup-gtk2.obj `if test -f 'setup-gtk2.c'; then $(CYGPATH_W) 'setup-gtk2.c'; else $(CYGPATH_W) '$(srcdir)/setup-gtk2.c'; fi`
505 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Po
506 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='setup-gtk2.c' object='ibus_setup_input_pad-setup-gtk2.obj' libtool=no @AMDEPBACKSLASH@
634 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -MT ibus_setup_input_pad-setup-gtk2.obj -MD -MP -MF $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo -c -o ibus_setup_input_pad-setup-gtk2.obj `if test -f 'setup-gtk2.c'; then $(CYGPATH_W) 'setup-gtk2.c'; else $(CYGPATH_W) '$(srcdir)/setup-gtk2.c'; fi`
635 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Tpo $(DEPDIR)/ibus_setup_input_pad-setup-gtk2.Po
636 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='setup-gtk2.c' object='ibus_setup_input_pad-setup-gtk2.obj' libtool=no @AMDEPBACKSLASH@
507637 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
508 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-setup-gtk2.obj `if test -f 'setup-gtk2.c'; then $(CYGPATH_W) 'setup-gtk2.c'; else $(CYGPATH_W) '$(srcdir)/setup-gtk2.c'; fi`
638 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(ibus_setup_input_pad_CFLAGS) $(CFLAGS) -c -o ibus_setup_input_pad-setup-gtk2.obj `if test -f 'setup-gtk2.c'; then $(CYGPATH_W) 'setup-gtk2.c'; else $(CYGPATH_W) '$(srcdir)/setup-gtk2.c'; fi`
509639
510640 mostlyclean-libtool:
511641 -rm -f *.lo
512642
513643 clean-libtool:
514644 -rm -rf .libs _libs
645 install-desktopDATA: $(desktop_DATA)
646 @$(NORMAL_INSTALL)
647 @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
648 if test -n "$$list"; then \
649 echo " $(MKDIR_P) '$(DESTDIR)$(desktopdir)'"; \
650 $(MKDIR_P) "$(DESTDIR)$(desktopdir)" || exit 1; \
651 fi; \
652 for p in $$list; do \
653 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
654 echo "$$d$$p"; \
655 done | $(am__base_list) | \
656 while read files; do \
657 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(desktopdir)'"; \
658 $(INSTALL_DATA) $$files "$(DESTDIR)$(desktopdir)" || exit $$?; \
659 done
660
661 uninstall-desktopDATA:
662 @$(NORMAL_UNINSTALL)
663 @list='$(desktop_DATA)'; test -n "$(desktopdir)" || list=; \
664 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
665 dir='$(DESTDIR)$(desktopdir)'; $(am__uninstall_files_from_dir)
515666 install-setupDATA: $(setup_DATA)
516667 @$(NORMAL_INSTALL)
517 test -z "$(setupdir)" || $(MKDIR_P) "$(DESTDIR)$(setupdir)"
518668 @list='$(setup_DATA)'; test -n "$(setupdir)" || list=; \
669 if test -n "$$list"; then \
670 echo " $(MKDIR_P) '$(DESTDIR)$(setupdir)'"; \
671 $(MKDIR_P) "$(DESTDIR)$(setupdir)" || exit 1; \
672 fi; \
519673 for p in $$list; do \
520674 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
521675 echo "$$d$$p"; \
529683 @$(NORMAL_UNINSTALL)
530684 @list='$(setup_DATA)'; test -n "$(setupdir)" || list=; \
531685 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
532 test -n "$$files" || exit 0; \
533 echo " ( cd '$(DESTDIR)$(setupdir)' && rm -f" $$files ")"; \
534 cd "$(DESTDIR)$(setupdir)" && rm -f $$files
535
536 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
537 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
538 unique=`for i in $$list; do \
539 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
540 done | \
541 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
542 END { if (nonempty) { for (i in files) print i; }; }'`; \
543 mkid -fID $$unique
544 tags: TAGS
545
546 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
547 $(TAGS_FILES) $(LISP)
686 dir='$(DESTDIR)$(setupdir)'; $(am__uninstall_files_from_dir)
687
688 ID: $(am__tagged_files)
689 $(am__define_uniq_tagged_files); mkid -fID $$unique
690 tags: tags-am
691 TAGS: tags
692
693 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
548694 set x; \
549695 here=`pwd`; \
550 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
551 unique=`for i in $$list; do \
552 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
553 done | \
554 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
555 END { if (nonempty) { for (i in files) print i; }; }'`; \
696 $(am__define_uniq_tagged_files); \
556697 shift; \
557698 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
558699 test -n "$$unique" || unique=$$empty_fix; \
564705 $$unique; \
565706 fi; \
566707 fi
567 ctags: CTAGS
568 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
569 $(TAGS_FILES) $(LISP)
570 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
571 unique=`for i in $$list; do \
572 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
573 done | \
574 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
575 END { if (nonempty) { for (i in files) print i; }; }'`; \
708 ctags: ctags-am
709
710 CTAGS: ctags
711 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
712 $(am__define_uniq_tagged_files); \
576713 test -z "$(CTAGS_ARGS)$$unique" \
577714 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
578715 $$unique
581718 here=`$(am__cd) $(top_builddir) && pwd` \
582719 && $(am__cd) $(top_srcdir) \
583720 && gtags -i $(GTAGS_ARGS) "$$here"
721 cscopelist: cscopelist-am
722
723 cscopelist-am: $(am__tagged_files)
724 list='$(am__tagged_files)'; \
725 case "$(srcdir)" in \
726 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
727 *) sdir=$(subdir)/$(srcdir) ;; \
728 esac; \
729 for i in $$list; do \
730 if test -f "$$i"; then \
731 echo "$(subdir)/$$i"; \
732 else \
733 echo "$$sdir/$$i"; \
734 fi; \
735 done >> $(top_builddir)/cscope.files
584736
585737 distclean-tags:
586738 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
619771 check: check-am
620772 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA)
621773 installdirs:
622 for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(setupdir)"; do \
774 for dir in "$(DESTDIR)$(libexecdir)" "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(setupdir)"; do \
623775 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
624776 done
625777 install: install-am
632784
633785 installcheck: installcheck-am
634786 install-strip:
635 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
636 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
637 `test -z '$(STRIP)' || \
638 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
787 if test -z '$(STRIP)'; then \
788 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
789 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
790 install; \
791 else \
792 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
793 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
794 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
795 fi
639796 mostlyclean-generic:
640797
641798 clean-generic:
671828
672829 info-am:
673830
674 install-data-am: install-setupDATA
831 install-data-am: install-desktopDATA install-setupDATA
675832
676833 install-dvi: install-dvi-am
677834
717874
718875 ps-am:
719876
720 uninstall-am: uninstall-libexecPROGRAMS uninstall-setupDATA
877 uninstall-am: uninstall-desktopDATA uninstall-libexecPROGRAMS \
878 uninstall-setupDATA
721879
722880 .MAKE: install-am install-strip
723881
724 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
882 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
725883 clean-libexecPROGRAMS clean-libtool clean-noinstLTLIBRARIES \
726 ctags distclean distclean-compile distclean-generic \
727 distclean-libtool distclean-tags distdir dvi dvi-am html \
728 html-am info info-am install install-am install-data \
729 install-data-am install-dvi install-dvi-am install-exec \
730 install-exec-am install-html install-html-am install-info \
731 install-info-am install-libexecPROGRAMS install-man \
732 install-pdf install-pdf-am install-ps install-ps-am \
733 install-setupDATA install-strip installcheck installcheck-am \
734 installdirs maintainer-clean maintainer-clean-generic \
735 mostlyclean mostlyclean-compile mostlyclean-generic \
736 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
737 uninstall-am uninstall-libexecPROGRAMS uninstall-setupDATA
738
884 cscopelist-am ctags ctags-am distclean distclean-compile \
885 distclean-generic distclean-libtool distclean-tags distdir dvi \
886 dvi-am html html-am info info-am install install-am \
887 install-data install-data-am install-desktopDATA install-dvi \
888 install-dvi-am install-exec install-exec-am install-html \
889 install-html-am install-info install-info-am \
890 install-libexecPROGRAMS install-man install-pdf install-pdf-am \
891 install-ps install-ps-am install-setupDATA install-strip \
892 installcheck installcheck-am installdirs maintainer-clean \
893 maintainer-clean-generic mostlyclean mostlyclean-compile \
894 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
895 tags tags-am uninstall uninstall-am uninstall-desktopDATA \
896 uninstall-libexecPROGRAMS uninstall-setupDATA
897
898
899 $(desktop_in_files): %.desktop.in: %.desktop.in.in Makefile
900 $(AM_V_GEN) sed \
901 -e "s|\@libexecdir\@|$(libexecdir)|" \
902 -e "s|\@datadir\@|$(datadir)|" \
903 $< > $@.tmp && mv $@.tmp $@
904
905 @INTLTOOL_DESKTOP_RULE@
739906
740907 # Tell versions [3.59,3.63) of GNU make to not export all variables.
741908 # Otherwise a system limit (for SysV at least) may be exceeded.
0 [Desktop Entry]
1 _Name=IBus Input Pad Setup
2 _Comment=Set up IBus Input Pad engine
3 Exec=@libexecdir@/ibus-setup-input-pad
4 Icon=@datadir@/pixmaps/input-pad.png
5 NoDisplay=true
6 Type=Application
7 StartupNotify=true
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by
00 /* vim:set et sts=4: */
11 /* ibus-input-pad - Input pad for IBus
2 * Copyright (C) 2010 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010 Red Hat, Inc.
2 * Copyright (C) 2010-2011 Takao Fujiwara <takao.fujiwara1@gmail.com>
3 * Copyright (C) 2010-2011 Red Hat, Inc.
44 *
55 * This program is free software; you can redistribute it and/or modify
66 * it under the terms of the GNU General Public License as published by