Merge lp:~crtmike/gtkhotkey/gtkhotkey into lp:gtkhotkey/0.2

Proposed by Mike Manilone
Status: Needs review
Proposed branch: lp:~crtmike/gtkhotkey/gtkhotkey
Merge into: lp:gtkhotkey/0.2
Diff against target: 80504 lines (+80248/-25)
23 files modified
Makefile.in (+968/-0)
aclocal.m4 (+10624/-0)
autom4te.cache/output.0 (+17090/-0)
autom4te.cache/output.1 (+17086/-0)
autom4te.cache/requests (+321/-0)
autom4te.cache/traces.0 (+3227/-0)
autom4te.cache/traces.1 (+985/-0)
config.h.in (+83/-0)
configure (+17086/-0)
configure.ac (+3/-3)
doc/Makefile.in (+676/-0)
doc/reference/Makefile.in (+753/-0)
gtkhotkey-1.0.pc.in (+1/-1)
ltmain.sh (+9706/-0)
mkinstalldirs (+162/-0)
po/Makefile.in.in (+11/-6)
src/Makefile.in (+794/-0)
src/gtk-hotkey-error.h (+1/-1)
src/x11/eggaccelerators.c (+9/-9)
src/x11/eggaccelerators.h (+1/-2)
src/x11/tomboykeybinder.c (+2/-2)
src/x11/tomboykeybinder.h (+1/-1)
test/Makefile.in (+658/-0)
To merge this branch: bzr merge lp:~crtmike/gtkhotkey/gtkhotkey
Reviewer Review Type Date Requested Status
Mikkel Kamstrup Erlandsen Pending
Review via email: mp+123212@code.launchpad.net

Description of the change

A Working GTK+3 port.

To post a comment you must log in.

Unmerged revisions

55. By Mike Manilone

0.2.1 -> 0.2.10, GTK+ 3 ported

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified symlink 'INSTALL'
=== target changed '/usr/share/automake-1.10/INSTALL' => u'/usr/local/share/automake-1.12/INSTALL'
=== added file 'Makefile.in'
--- Makefile.in 1970-01-01 00:00:00 +0000
+++ Makefile.in 2012-09-07 05:45:23 +0000
@@ -0,0 +1,968 @@
1# Makefile.in generated by automake 1.12.3 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2012 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17# GLIB - Library of useful C routines
18#
19# This file is copied almost verbatim from the GLib-2.0 distribution
20#
21
22VPATH = @srcdir@
23am__make_dryrun = \
24 { \
25 am__dry=no; \
26 case $$MAKEFLAGS in \
27 *\\[\ \ ]*) \
28 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
29 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
30 *) \
31 for am__flg in $$MAKEFLAGS; do \
32 case $$am__flg in \
33 *=*|--*) ;; \
34 *n*) am__dry=yes; break;; \
35 esac; \
36 done;; \
37 esac; \
38 test $$am__dry = yes; \
39 }
40pkgdatadir = $(datadir)/@PACKAGE@
41pkgincludedir = $(includedir)/@PACKAGE@
42pkglibdir = $(libdir)/@PACKAGE@
43pkglibexecdir = $(libexecdir)/@PACKAGE@
44am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
45install_sh_DATA = $(install_sh) -c -m 644
46install_sh_PROGRAM = $(install_sh) -c
47install_sh_SCRIPT = $(install_sh) -c
48INSTALL_HEADER = $(INSTALL_DATA)
49transform = $(program_transform_name)
50NORMAL_INSTALL = :
51PRE_INSTALL = :
52POST_INSTALL = :
53NORMAL_UNINSTALL = :
54PRE_UNINSTALL = :
55POST_UNINSTALL = :
56build_triplet = @build@
57host_triplet = @host@
58DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
59 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
60 $(srcdir)/gtkhotkey-1.0.pc.in $(top_srcdir)/Makefile.decl \
61 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
62 config.guess config.sub depcomp install-sh ltmain.sh missing \
63 mkinstalldirs
64subdir = .
65ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
66am__aclocal_m4_deps = $(top_srcdir)/configure.ac
67am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
68 $(ACLOCAL_M4)
69am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
70 configure.lineno config.status.lineno
71mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
72CONFIG_HEADER = config.h
73CONFIG_CLEAN_FILES = gtkhotkey-1.0.pc
74CONFIG_CLEAN_VPATH_FILES =
75SOURCES =
76DIST_SOURCES =
77RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
78 html-recursive info-recursive install-data-recursive \
79 install-dvi-recursive install-exec-recursive \
80 install-html-recursive install-info-recursive \
81 install-pdf-recursive install-ps-recursive install-recursive \
82 installcheck-recursive installdirs-recursive pdf-recursive \
83 ps-recursive uninstall-recursive
84am__can_run_installinfo = \
85 case $$AM_UPDATE_INFO_DIR in \
86 n|no|NO) false;; \
87 *) (install-info --version) >/dev/null 2>&1;; \
88 esac
89am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
90am__vpath_adj = case $$p in \
91 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
92 *) f=$$p;; \
93 esac;
94am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
95am__install_max = 40
96am__nobase_strip_setup = \
97 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
98am__nobase_strip = \
99 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
100am__nobase_list = $(am__nobase_strip_setup); \
101 for p in $$list; do echo "$$p $$p"; done | \
102 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
103 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
104 if (++n[$$2] == $(am__install_max)) \
105 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
106 END { for (dir in files) print dir, files[dir] }'
107am__base_list = \
108 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
109 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
110am__uninstall_files_from_dir = { \
111 test -z "$$files" \
112 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
113 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
114 $(am__cd) "$$dir" && rm -f $$files; }; \
115 }
116am__installdirs = "$(DESTDIR)$(gtkhotkeydocdir)" \
117 "$(DESTDIR)$(pkgconfigdir)"
118DATA = $(gtkhotkeydoc_DATA) $(pkgconfig_DATA)
119RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
120 distclean-recursive maintainer-clean-recursive
121AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
122 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
123 cscope distdir dist dist-all distcheck
124ETAGS = etags
125CTAGS = ctags
126CSCOPE = cscope
127DIST_SUBDIRS = $(SUBDIRS)
128DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
129distdir = $(PACKAGE)-$(VERSION)
130top_distdir = $(distdir)
131am__remove_distdir = \
132 if test -d "$(distdir)"; then \
133 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
134 && rm -rf "$(distdir)" \
135 || { sleep 5 && rm -rf "$(distdir)"; }; \
136 else :; fi
137am__post_remove_distdir = $(am__remove_distdir)
138am__relativize = \
139 dir0=`pwd`; \
140 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
141 sed_rest='s,^[^/]*/*,,'; \
142 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
143 sed_butlast='s,/*[^/]*$$,,'; \
144 while test -n "$$dir1"; do \
145 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
146 if test "$$first" != "."; then \
147 if test "$$first" = ".."; then \
148 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
149 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
150 else \
151 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
152 if test "$$first2" = "$$first"; then \
153 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
154 else \
155 dir2="../$$dir2"; \
156 fi; \
157 dir0="$$dir0"/"$$first"; \
158 fi; \
159 fi; \
160 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
161 done; \
162 reldir="$$dir2"
163DIST_ARCHIVES = $(distdir).tar.gz
164GZIP_ENV = --best
165DIST_TARGETS = dist-gzip
166distuninstallcheck_listfiles = find . -type f -print
167am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
168 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
169distcleancheck_listfiles = find . -type f -print
170ACLOCAL = @ACLOCAL@
171ALL_LINGUAS = @ALL_LINGUAS@
172AMTAR = @AMTAR@
173AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
174AR = @AR@
175AUTOCONF = @AUTOCONF@
176AUTOHEADER = @AUTOHEADER@
177AUTOMAKE = @AUTOMAKE@
178AWK = @AWK@
179CATALOGS = @CATALOGS@
180CATOBJEXT = @CATOBJEXT@
181CC = @CC@
182CCDEPMODE = @CCDEPMODE@
183CFLAGS = @CFLAGS@
184CPP = @CPP@
185CPPFLAGS = @CPPFLAGS@
186CYGPATH_W = @CYGPATH_W@
187DATADIRNAME = @DATADIRNAME@
188DEFS = @DEFS@
189DEPDIR = @DEPDIR@
190DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
191DLLTOOL = @DLLTOOL@
192DSYMUTIL = @DSYMUTIL@
193DUMPBIN = @DUMPBIN@
194ECHO_C = @ECHO_C@
195ECHO_N = @ECHO_N@
196ECHO_T = @ECHO_T@
197EGREP = @EGREP@
198EXEEXT = @EXEEXT@
199FGREP = @FGREP@
200GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
201GMOFILES = @GMOFILES@
202GMSGFMT = @GMSGFMT@
203GREP = @GREP@
204GTKDOC_CHECK = @GTKDOC_CHECK@
205GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
206GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
207GTKDOC_MKPDF = @GTKDOC_MKPDF@
208GTKDOC_REBASE = @GTKDOC_REBASE@
209GTK_HOTKEY_AGE = @GTK_HOTKEY_AGE@
210GTK_HOTKEY_CFLAGS = @GTK_HOTKEY_CFLAGS@
211GTK_HOTKEY_CURRENT = @GTK_HOTKEY_CURRENT@
212GTK_HOTKEY_LIBS = @GTK_HOTKEY_LIBS@
213GTK_HOTKEY_REVISION = @GTK_HOTKEY_REVISION@
214HTML_DIR = @HTML_DIR@
215INSTALL = @INSTALL@
216INSTALL_DATA = @INSTALL_DATA@
217INSTALL_PROGRAM = @INSTALL_PROGRAM@
218INSTALL_SCRIPT = @INSTALL_SCRIPT@
219INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
220INSTOBJEXT = @INSTOBJEXT@
221INTLLIBS = @INTLLIBS@
222INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
223INTLTOOL_MERGE = @INTLTOOL_MERGE@
224INTLTOOL_PERL = @INTLTOOL_PERL@
225INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
226INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
227INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
228INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
229INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
230LD = @LD@
231LDFLAGS = @LDFLAGS@
232LIBOBJS = @LIBOBJS@
233LIBS = @LIBS@
234LIBTOOL = @LIBTOOL@
235LIPO = @LIPO@
236LN_S = @LN_S@
237LTLIBOBJS = @LTLIBOBJS@
238MAINT = @MAINT@
239MAKEINFO = @MAKEINFO@
240MANIFEST_TOOL = @MANIFEST_TOOL@
241MKDIR_P = @MKDIR_P@
242MKINSTALLDIRS = @MKINSTALLDIRS@
243MSGFMT = @MSGFMT@
244MSGFMT_OPTS = @MSGFMT_OPTS@
245MSGMERGE = @MSGMERGE@
246NM = @NM@
247NMEDIT = @NMEDIT@
248OBJDUMP = @OBJDUMP@
249OBJEXT = @OBJEXT@
250OTOOL = @OTOOL@
251OTOOL64 = @OTOOL64@
252PACKAGE = @PACKAGE@
253PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
254PACKAGE_NAME = @PACKAGE_NAME@
255PACKAGE_STRING = @PACKAGE_STRING@
256PACKAGE_TARNAME = @PACKAGE_TARNAME@
257PACKAGE_URL = @PACKAGE_URL@
258PACKAGE_VERSION = @PACKAGE_VERSION@
259PATH_SEPARATOR = @PATH_SEPARATOR@
260PKG_CONFIG = @PKG_CONFIG@
261PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
262PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
263POFILES = @POFILES@
264POSUB = @POSUB@
265PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
266PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
267RANLIB = @RANLIB@
268SED = @SED@
269SET_MAKE = @SET_MAKE@
270SHELL = @SHELL@
271STRIP = @STRIP@
272USE_NLS = @USE_NLS@
273VERSION = @VERSION@
274XGETTEXT = @XGETTEXT@
275abs_builddir = @abs_builddir@
276abs_srcdir = @abs_srcdir@
277abs_top_builddir = @abs_top_builddir@
278abs_top_srcdir = @abs_top_srcdir@
279ac_ct_AR = @ac_ct_AR@
280ac_ct_CC = @ac_ct_CC@
281ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
282am__include = @am__include@
283am__leading_dot = @am__leading_dot@
284am__quote = @am__quote@
285am__tar = @am__tar@
286am__untar = @am__untar@
287bindir = @bindir@
288build = @build@
289build_alias = @build_alias@
290build_cpu = @build_cpu@
291build_os = @build_os@
292build_vendor = @build_vendor@
293builddir = @builddir@
294datadir = @datadir@
295datarootdir = @datarootdir@
296docdir = @docdir@
297dvidir = @dvidir@
298exec_prefix = @exec_prefix@
299host = @host@
300host_alias = @host_alias@
301host_cpu = @host_cpu@
302host_os = @host_os@
303host_vendor = @host_vendor@
304htmldir = @htmldir@
305includedir = @includedir@
306infodir = @infodir@
307install_sh = @install_sh@
308intltool__v_merge_options_ = @intltool__v_merge_options_@
309intltool__v_merge_options_0 = @intltool__v_merge_options_0@
310libdir = @libdir@
311libexecdir = @libexecdir@
312localedir = @localedir@
313localstatedir = @localstatedir@
314mandir = @mandir@
315mkdir_p = @mkdir_p@
316oldincludedir = @oldincludedir@
317pdfdir = @pdfdir@
318prefix = @prefix@
319program_transform_name = @program_transform_name@
320psdir = @psdir@
321sbindir = @sbindir@
322sharedstatedir = @sharedstatedir@
323srcdir = @srcdir@
324sysconfdir = @sysconfdir@
325target_alias = @target_alias@
326top_build_prefix = @top_build_prefix@
327top_builddir = @top_builddir@
328top_srcdir = @top_srcdir@
329NULL =
330GTESTER = gtester # for non-GLIB packages
331GTESTER_REPORT = $(top_builddir)/test/gtk_hotkey_report
332
333# initialize variables for unconditional += appending
334EXTRA_DIST = $(gtkhotkeydoc_DATA) intltool-extract.in \
335 intltool-merge.in intltool-update.in gtkhotkey-1.0.pc.in \
336 $(NULL)
337TEST_PROGS =
338
339# gtest definitions
340SUBDIRS = src po test doc
341pkgconfigdir = $(libdir)/pkgconfig
342pkgconfig_DATA = gtkhotkey-1.0.pc
343gtkhotkeydocdir = ${prefix}/doc/gtkhotkey
344gtkhotkeydoc_DATA = \
345 README \
346 COPYING \
347 AUTHORS \
348 INSTALL \
349 doc/gpl-3.0.txt \
350 NEWS
351
352DISTCLEANFILES = \
353 intltool-extract \
354 intltool-merge \
355 intltool-update \
356 $(NULL)
357
358all: config.h
359 $(MAKE) $(AM_MAKEFLAGS) all-recursive
360
361.SUFFIXES:
362am--refresh: Makefile
363 @:
364$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.decl $(am__configure_deps)
365 @for dep in $?; do \
366 case '$(am__configure_deps)' in \
367 *$$dep*) \
368 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
369 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
370 && exit 0; \
371 exit 1;; \
372 esac; \
373 done; \
374 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
375 $(am__cd) $(top_srcdir) && \
376 $(AUTOMAKE) --gnu Makefile
377.PRECIOUS: Makefile
378Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
379 @case '$?' in \
380 *config.status*) \
381 echo ' $(SHELL) ./config.status'; \
382 $(SHELL) ./config.status;; \
383 *) \
384 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
385 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
386 esac;
387$(top_srcdir)/Makefile.decl:
388
389$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
390 $(SHELL) ./config.status --recheck
391
392$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
393 $(am__cd) $(srcdir) && $(AUTOCONF)
394$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
395 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
396$(am__aclocal_m4_deps):
397
398config.h: stamp-h1
399 @if test ! -f $@; then rm -f stamp-h1; else :; fi
400 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
401
402stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
403 @rm -f stamp-h1
404 cd $(top_builddir) && $(SHELL) ./config.status config.h
405$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
406 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
407 rm -f stamp-h1
408 touch $@
409
410distclean-hdr:
411 -rm -f config.h stamp-h1
412gtkhotkey-1.0.pc: $(top_builddir)/config.status $(srcdir)/gtkhotkey-1.0.pc.in
413 cd $(top_builddir) && $(SHELL) ./config.status $@
414
415mostlyclean-libtool:
416 -rm -f *.lo
417
418clean-libtool:
419 -rm -rf .libs _libs
420
421distclean-libtool:
422 -rm -f libtool config.lt
423install-gtkhotkeydocDATA: $(gtkhotkeydoc_DATA)
424 @$(NORMAL_INSTALL)
425 @list='$(gtkhotkeydoc_DATA)'; test -n "$(gtkhotkeydocdir)" || list=; \
426 if test -n "$$list"; then \
427 echo " $(MKDIR_P) '$(DESTDIR)$(gtkhotkeydocdir)'"; \
428 $(MKDIR_P) "$(DESTDIR)$(gtkhotkeydocdir)" || exit 1; \
429 fi; \
430 for p in $$list; do \
431 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
432 echo "$$d$$p"; \
433 done | $(am__base_list) | \
434 while read files; do \
435 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(gtkhotkeydocdir)'"; \
436 $(INSTALL_DATA) $$files "$(DESTDIR)$(gtkhotkeydocdir)" || exit $$?; \
437 done
438
439uninstall-gtkhotkeydocDATA:
440 @$(NORMAL_UNINSTALL)
441 @list='$(gtkhotkeydoc_DATA)'; test -n "$(gtkhotkeydocdir)" || list=; \
442 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
443 dir='$(DESTDIR)$(gtkhotkeydocdir)'; $(am__uninstall_files_from_dir)
444install-pkgconfigDATA: $(pkgconfig_DATA)
445 @$(NORMAL_INSTALL)
446 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
447 if test -n "$$list"; then \
448 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
449 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
450 fi; \
451 for p in $$list; do \
452 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
453 echo "$$d$$p"; \
454 done | $(am__base_list) | \
455 while read files; do \
456 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
457 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
458 done
459
460uninstall-pkgconfigDATA:
461 @$(NORMAL_UNINSTALL)
462 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
463 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
464 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
465
466# This directory's subdirectories are mostly independent; you can cd
467# into them and run 'make' without going through this Makefile.
468# To change the values of 'make' variables: instead of editing Makefiles,
469# (1) if the variable is set in 'config.status', edit 'config.status'
470# (which will cause the Makefiles to be regenerated when you run 'make');
471# (2) otherwise, pass the desired values on the 'make' command line.
472$(RECURSIVE_TARGETS) $(RECURSIVE_CLEAN_TARGETS):
473 @fail= failcom='exit 1'; \
474 for f in x $$MAKEFLAGS; do \
475 case $$f in \
476 *=* | --[!k]*);; \
477 *k*) failcom='fail=yes';; \
478 esac; \
479 done; \
480 dot_seen=no; \
481 target=`echo $@ | sed s/-recursive//`; \
482 case "$@" in \
483 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
484 *) list='$(SUBDIRS)' ;; \
485 esac; \
486 for subdir in $$list; do \
487 echo "Making $$target in $$subdir"; \
488 if test "$$subdir" = "."; then \
489 dot_seen=yes; \
490 local_target="$$target-am"; \
491 else \
492 local_target="$$target"; \
493 fi; \
494 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
495 || eval $$failcom; \
496 done; \
497 if test "$$dot_seen" = "no"; then \
498 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
499 fi; test -z "$$fail"
500tags-recursive:
501 list='$(SUBDIRS)'; for subdir in $$list; do \
502 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
503 done
504ctags-recursive:
505 list='$(SUBDIRS)'; for subdir in $$list; do \
506 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
507 done
508cscopelist-recursive:
509 list='$(SUBDIRS)'; for subdir in $$list; do \
510 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) cscopelist); \
511 done
512
513ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
514 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
515 unique=`for i in $$list; do \
516 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
517 done | \
518 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
519 END { if (nonempty) { for (i in files) print i; }; }'`; \
520 mkid -fID $$unique
521tags: TAGS
522
523TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
524 $(TAGS_FILES) $(LISP)
525 set x; \
526 here=`pwd`; \
527 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
528 include_option=--etags-include; \
529 empty_fix=.; \
530 else \
531 include_option=--include; \
532 empty_fix=; \
533 fi; \
534 list='$(SUBDIRS)'; for subdir in $$list; do \
535 if test "$$subdir" = .; then :; else \
536 test ! -f $$subdir/TAGS || \
537 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
538 fi; \
539 done; \
540 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
541 unique=`for i in $$list; do \
542 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
543 done | \
544 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
545 END { if (nonempty) { for (i in files) print i; }; }'`; \
546 shift; \
547 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
548 test -n "$$unique" || unique=$$empty_fix; \
549 if test $$# -gt 0; then \
550 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
551 "$$@" $$unique; \
552 else \
553 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
554 $$unique; \
555 fi; \
556 fi
557ctags: CTAGS
558CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
559 $(TAGS_FILES) $(LISP)
560 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
561 unique=`for i in $$list; do \
562 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
563 done | \
564 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
565 END { if (nonempty) { for (i in files) print i; }; }'`; \
566 test -z "$(CTAGS_ARGS)$$unique" \
567 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
568 $$unique
569
570GTAGS:
571 here=`$(am__cd) $(top_builddir) && pwd` \
572 && $(am__cd) $(top_srcdir) \
573 && gtags -i $(GTAGS_ARGS) "$$here"
574
575cscope: cscope.files
576 test ! -s cscope.files \
577 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
578
579clean-cscope:
580 -rm -f cscope.files
581
582cscope.files: clean-cscope cscopelist-recursive cscopelist
583
584cscopelist: cscopelist-recursive $(HEADERS) $(SOURCES) $(LISP)
585 list='$(SOURCES) $(HEADERS) $(LISP)'; \
586 case "$(srcdir)" in \
587 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
588 *) sdir=$(subdir)/$(srcdir) ;; \
589 esac; \
590 for i in $$list; do \
591 if test -f "$$i"; then \
592 echo "$(subdir)/$$i"; \
593 else \
594 echo "$$sdir/$$i"; \
595 fi; \
596 done >> $(top_builddir)/cscope.files
597
598distclean-tags:
599 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
600 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
601
602distdir: $(DISTFILES)
603 $(am__remove_distdir)
604 test -d "$(distdir)" || mkdir "$(distdir)"
605 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
606 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
607 list='$(DISTFILES)'; \
608 dist_files=`for file in $$list; do echo $$file; done | \
609 sed -e "s|^$$srcdirstrip/||;t" \
610 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
611 case $$dist_files in \
612 */*) $(MKDIR_P) `echo "$$dist_files" | \
613 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
614 sort -u` ;; \
615 esac; \
616 for file in $$dist_files; do \
617 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
618 if test -d $$d/$$file; then \
619 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
620 if test -d "$(distdir)/$$file"; then \
621 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
622 fi; \
623 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
624 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
625 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
626 fi; \
627 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
628 else \
629 test -f "$(distdir)/$$file" \
630 || cp -p $$d/$$file "$(distdir)/$$file" \
631 || exit 1; \
632 fi; \
633 done
634 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
635 if test "$$subdir" = .; then :; else \
636 $(am__make_dryrun) \
637 || test -d "$(distdir)/$$subdir" \
638 || $(MKDIR_P) "$(distdir)/$$subdir" \
639 || exit 1; \
640 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
641 $(am__relativize); \
642 new_distdir=$$reldir; \
643 dir1=$$subdir; dir2="$(top_distdir)"; \
644 $(am__relativize); \
645 new_top_distdir=$$reldir; \
646 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
647 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
648 ($(am__cd) $$subdir && \
649 $(MAKE) $(AM_MAKEFLAGS) \
650 top_distdir="$$new_top_distdir" \
651 distdir="$$new_distdir" \
652 am__remove_distdir=: \
653 am__skip_length_check=: \
654 am__skip_mode_fix=: \
655 distdir) \
656 || exit 1; \
657 fi; \
658 done
659 -test -n "$(am__skip_mode_fix)" \
660 || find "$(distdir)" -type d ! -perm -755 \
661 -exec chmod u+rwx,go+rx {} \; -o \
662 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
663 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
664 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
665 || chmod -R a+r "$(distdir)"
666dist-gzip: distdir
667 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
668 $(am__post_remove_distdir)
669
670dist-bzip2: distdir
671 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
672 $(am__post_remove_distdir)
673
674dist-lzip: distdir
675 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
676 $(am__post_remove_distdir)
677
678dist-xz: distdir
679 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
680 $(am__post_remove_distdir)
681
682dist-tarZ: distdir
683 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
684 $(am__post_remove_distdir)
685
686dist-shar: distdir
687 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
688 $(am__post_remove_distdir)
689
690dist-zip: distdir
691 -rm -f $(distdir).zip
692 zip -rq $(distdir).zip $(distdir)
693 $(am__post_remove_distdir)
694
695dist dist-all:
696 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
697 $(am__post_remove_distdir)
698
699# This target untars the dist file and tries a VPATH configuration. Then
700# it guarantees that the distribution is self-contained by making another
701# tarfile.
702distcheck: dist
703 case '$(DIST_ARCHIVES)' in \
704 *.tar.gz*) \
705 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
706 *.tar.bz2*) \
707 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
708 *.tar.lz*) \
709 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
710 *.tar.xz*) \
711 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
712 *.tar.Z*) \
713 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
714 *.shar.gz*) \
715 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
716 *.zip*) \
717 unzip $(distdir).zip ;;\
718 esac
719 chmod -R a-w $(distdir)
720 chmod u+w $(distdir)
721 mkdir $(distdir)/_build $(distdir)/_inst
722 chmod a-w $(distdir)
723 test -d $(distdir)/_build || exit 0; \
724 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
725 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
726 && am__cwd=`pwd` \
727 && $(am__cd) $(distdir)/_build \
728 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
729 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
730 $(DISTCHECK_CONFIGURE_FLAGS) \
731 && $(MAKE) $(AM_MAKEFLAGS) \
732 && $(MAKE) $(AM_MAKEFLAGS) dvi \
733 && $(MAKE) $(AM_MAKEFLAGS) check \
734 && $(MAKE) $(AM_MAKEFLAGS) install \
735 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
736 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
737 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
738 distuninstallcheck \
739 && chmod -R a-w "$$dc_install_base" \
740 && ({ \
741 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
742 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
743 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
744 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
745 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
746 } || { rm -rf "$$dc_destdir"; exit 1; }) \
747 && rm -rf "$$dc_destdir" \
748 && $(MAKE) $(AM_MAKEFLAGS) dist \
749 && rm -rf $(DIST_ARCHIVES) \
750 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
751 && cd "$$am__cwd" \
752 || exit 1
753 $(am__post_remove_distdir)
754 @(echo "$(distdir) archives ready for distribution: "; \
755 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
756 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
757distuninstallcheck:
758 @test -n '$(distuninstallcheck_dir)' || { \
759 echo 'ERROR: trying to run $@ with an empty' \
760 '$$(distuninstallcheck_dir)' >&2; \
761 exit 1; \
762 }; \
763 $(am__cd) '$(distuninstallcheck_dir)' || { \
764 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
765 exit 1; \
766 }; \
767 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
768 || { echo "ERROR: files left after uninstall:" ; \
769 if test -n "$(DESTDIR)"; then \
770 echo " (check DESTDIR support)"; \
771 fi ; \
772 $(distuninstallcheck_listfiles) ; \
773 exit 1; } >&2
774distcleancheck: distclean
775 @if test '$(srcdir)' = . ; then \
776 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
777 exit 1 ; \
778 fi
779 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
780 || { echo "ERROR: files left in build directory after distclean:" ; \
781 $(distcleancheck_listfiles) ; \
782 exit 1; } >&2
783check-am: all-am
784 $(MAKE) $(AM_MAKEFLAGS) check-local
785check: check-recursive
786all-am: Makefile $(DATA) config.h
787installdirs: installdirs-recursive
788installdirs-am:
789 for dir in "$(DESTDIR)$(gtkhotkeydocdir)" "$(DESTDIR)$(pkgconfigdir)"; do \
790 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
791 done
792install: install-recursive
793install-exec: install-exec-recursive
794install-data: install-data-recursive
795uninstall: uninstall-recursive
796
797install-am: all-am
798 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
799
800installcheck: installcheck-recursive
801install-strip:
802 if test -z '$(STRIP)'; then \
803 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
804 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
805 install; \
806 else \
807 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
808 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
809 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
810 fi
811mostlyclean-generic:
812
813clean-generic:
814
815distclean-generic:
816 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
817 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
818 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
819
820maintainer-clean-generic:
821 @echo "This command is intended for maintainers to use"
822 @echo "it deletes files that may require special tools to rebuild."
823clean: clean-recursive
824
825clean-am: clean-generic clean-libtool mostlyclean-am
826
827distclean: distclean-recursive
828 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
829 -rm -f Makefile
830distclean-am: clean-am distclean-generic distclean-hdr \
831 distclean-libtool distclean-tags
832
833dvi: dvi-recursive
834
835dvi-am:
836
837html: html-recursive
838
839html-am:
840
841info: info-recursive
842
843info-am:
844
845install-data-am: install-gtkhotkeydocDATA install-pkgconfigDATA
846
847install-dvi: install-dvi-recursive
848
849install-dvi-am:
850
851install-exec-am:
852
853install-html: install-html-recursive
854
855install-html-am:
856
857install-info: install-info-recursive
858
859install-info-am:
860
861install-man:
862
863install-pdf: install-pdf-recursive
864
865install-pdf-am:
866
867install-ps: install-ps-recursive
868
869install-ps-am:
870
871installcheck-am:
872
873maintainer-clean: maintainer-clean-recursive
874 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
875 -rm -rf $(top_srcdir)/autom4te.cache
876 -rm -f Makefile
877maintainer-clean-am: distclean-am maintainer-clean-generic
878
879mostlyclean: mostlyclean-recursive
880
881mostlyclean-am: mostlyclean-generic mostlyclean-libtool
882
883pdf: pdf-recursive
884
885pdf-am:
886
887ps: ps-recursive
888
889ps-am:
890
891uninstall-am: uninstall-gtkhotkeydocDATA uninstall-pkgconfigDATA
892
893.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check-am \
894 cscopelist-recursive ctags-recursive install-am install-strip \
895 tags-recursive
896
897.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
898 all all-am am--refresh check check-am check-local clean \
899 clean-cscope clean-generic clean-libtool cscope cscopelist \
900 cscopelist-recursive ctags ctags-recursive dist dist-all \
901 dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz \
902 dist-zip distcheck distclean distclean-generic distclean-hdr \
903 distclean-libtool distclean-tags distcleancheck distdir \
904 distuninstallcheck dvi dvi-am html html-am info info-am \
905 install install-am install-data install-data-am install-dvi \
906 install-dvi-am install-exec install-exec-am \
907 install-gtkhotkeydocDATA install-html install-html-am \
908 install-info install-info-am install-man install-pdf \
909 install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
910 install-strip installcheck installcheck-am installdirs \
911 installdirs-am maintainer-clean maintainer-clean-generic \
912 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
913 ps ps-am tags tags-recursive uninstall uninstall-am \
914 uninstall-gtkhotkeydocDATA uninstall-pkgconfigDATA
915
916
917### testing rules
918
919# test: run all tests in cwd and subdirs
920test: ${TEST_PROGS}
921 @test -z "${TEST_PROGS}" || ${GTESTER} --verbose ${TEST_PROGS}
922 @ for subdir in $(SUBDIRS) ; do \
923 test "$$subdir" = "." -o "$$subdir" = "po" || \
924 ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
925 done
926# test-report: run tests in subdirs and generate report
927# perf-report: run tests in subdirs with -m perf and generate report
928# full-report: like test-report: with -m perf and -m slow
929test-report perf-report full-report: ${TEST_PROGS}
930 @test -z "${TEST_PROGS}" || { \
931 case $@ in \
932 test-report) test_options="-k";; \
933 perf-report) test_options="-k -m=perf";; \
934 full-report) test_options="-k -m=perf -m=slow";; \
935 esac ; \
936 if test -z "$$GTESTER_LOGDIR" ; then \
937 ${GTESTER} --verbose $$test_options -o test-report.xml ${TEST_PROGS} ; \
938 elif test -n "${TEST_PROGS}" ; then \
939 ${GTESTER} --verbose $$test_options -o `mktemp "$$GTESTER_LOGDIR/log-XXXXXX"` ${TEST_PROGS} ; \
940 fi ; \
941 }
942 @ ignore_logdir=true ; \
943 if test -z "$$GTESTER_LOGDIR" ; then \
944 GTESTER_LOGDIR=`mktemp -d "\`pwd\`/.testlogs-XXXXXX"`; export GTESTER_LOGDIR ; \
945 ignore_logdir=false ; \
946 fi ; \
947 for subdir in $(SUBDIRS) ; do \
948 test "$$subdir" = "." -o "$$subdir" = "po" || \
949 ( cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \
950 done ; \
951 $$ignore_logdir || { \
952 echo '<?xml version="1.0"?>' > $@.xml ; \
953 echo '<report-collection>' >> $@.xml ; \
954 for lf in `ls -L "$$GTESTER_LOGDIR"/.` ; do \
955 sed '1,1s/^<?xml\b[^>?]*?>//' <"$$GTESTER_LOGDIR"/"$$lf" >> $@.xml ; \
956 done ; \
957 echo >> $@.xml ; \
958 echo '</report-collection>' >> $@.xml ; \
959 rm -rf "$$GTESTER_LOGDIR"/ ; \
960 ${GTESTER_REPORT} --version 2>/dev/null 1>&2 ; test "$$?" != 0 || ${GTESTER_REPORT} $@.xml >$@.html ; \
961 }
962.PHONY: test test-report perf-report full-report
963# run make test as part of make check
964check-local: test
965
966# Tell versions [3.59,3.63) of GNU make to not export all variables.
967# Otherwise a system limit (for SysV at least) may be exceeded.
968.NOEXPORT:
0969
=== added file 'aclocal.m4'
--- aclocal.m4 1970-01-01 00:00:00 +0000
+++ aclocal.m4 2012-09-07 05:45:23 +0000
@@ -0,0 +1,10624 @@
1# generated automatically by aclocal 1.12.3 -*- Autoconf -*-
2
3# Copyright (C) 1996-2012 Free Software Foundation, Inc.
4
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17[m4_warning([this file was generated for autoconf 2.69.
18You have another version of autoconf. It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23# Copyright (C) 2001-2003,2004 Red Hat, Inc.
24#
25# This file is free software, distributed under the terms of the GNU
26# General Public License. As a special exception to the GNU General
27# Public License, this file may be distributed as part of a program
28# that contains a configuration script generated by Autoconf, under
29# the same distribution terms as the rest of that program.
30#
31# This file can be copied and used freely without restrictions. It can
32# be used in projects which are not available under the GNU Public License
33# but which still want to provide support for the GNU gettext functionality.
34#
35# Macro to add for using GNU gettext.
36# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
37#
38# Modified to never use included libintl.
39# Owen Taylor <otaylor@redhat.com>, 12/15/1998
40#
41# Major rework to remove unused code
42# Owen Taylor <otaylor@redhat.com>, 12/11/2002
43#
44# Added better handling of ALL_LINGUAS from GNU gettext version
45# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
46#
47# Modified to require ngettext
48# Matthias Clasen <mclasen@redhat.com> 08/06/2004
49#
50# We need this here as well, since someone might use autoconf-2.5x
51# to configure GLib then an older version to configure a package
52# using AM_GLIB_GNU_GETTEXT
53AC_PREREQ(2.53)
54
55dnl
56dnl We go to great lengths to make sure that aclocal won't
57dnl try to pull in the installed version of these macros
58dnl when running aclocal in the glib directory.
59dnl
60m4_copy([AC_DEFUN],[glib_DEFUN])
61m4_copy([AC_REQUIRE],[glib_REQUIRE])
62dnl
63dnl At the end, if we're not within glib, we'll define the public
64dnl definitions in terms of our private definitions.
65dnl
66
67# GLIB_LC_MESSAGES
68#--------------------
69glib_DEFUN([GLIB_LC_MESSAGES],
70 [AC_CHECK_HEADERS([locale.h])
71 if test $ac_cv_header_locale_h = yes; then
72 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
73 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
74 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
75 if test $am_cv_val_LC_MESSAGES = yes; then
76 AC_DEFINE(HAVE_LC_MESSAGES, 1,
77 [Define if your <locale.h> file defines LC_MESSAGES.])
78 fi
79 fi])
80
81# GLIB_PATH_PROG_WITH_TEST
82#----------------------------
83dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
84dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
85glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
86[# Extract the first word of "$2", so it can be a program name with args.
87set dummy $2; ac_word=[$]2
88AC_MSG_CHECKING([for $ac_word])
89AC_CACHE_VAL(ac_cv_path_$1,
90[case "[$]$1" in
91 /*)
92 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
93 ;;
94 *)
95 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96 for ac_dir in ifelse([$5], , $PATH, [$5]); do
97 test -z "$ac_dir" && ac_dir=.
98 if test -f $ac_dir/$ac_word; then
99 if [$3]; then
100 ac_cv_path_$1="$ac_dir/$ac_word"
101 break
102 fi
103 fi
104 done
105 IFS="$ac_save_ifs"
106dnl If no 4th arg is given, leave the cache variable unset,
107dnl so AC_PATH_PROGS will keep looking.
108ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
109])dnl
110 ;;
111esac])dnl
112$1="$ac_cv_path_$1"
113if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
114 AC_MSG_RESULT([$]$1)
115else
116 AC_MSG_RESULT(no)
117fi
118AC_SUBST($1)dnl
119])
120
121# GLIB_WITH_NLS
122#-----------------
123glib_DEFUN([GLIB_WITH_NLS],
124 dnl NLS is obligatory
125 [USE_NLS=yes
126 AC_SUBST(USE_NLS)
127
128 gt_cv_have_gettext=no
129
130 CATOBJEXT=NONE
131 XGETTEXT=:
132 INTLLIBS=
133
134 AC_CHECK_HEADER(libintl.h,
135 [gt_cv_func_dgettext_libintl="no"
136 libintl_extra_libs=""
137
138 #
139 # First check in libc
140 #
141 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
142 [AC_TRY_LINK([
143#include <libintl.h>
144],
145 [return !ngettext ("","", 1)],
146 gt_cv_func_ngettext_libc=yes,
147 gt_cv_func_ngettext_libc=no)
148 ])
149
150 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
151 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
152 [AC_TRY_LINK([
153#include <libintl.h>
154],
155 [return !dgettext ("","")],
156 gt_cv_func_dgettext_libc=yes,
157 gt_cv_func_dgettext_libc=no)
158 ])
159 fi
160
161 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
162 AC_CHECK_FUNCS(bind_textdomain_codeset)
163 fi
164
165 #
166 # If we don't have everything we want, check in libintl
167 #
168 if test "$gt_cv_func_dgettext_libc" != "yes" \
169 || test "$gt_cv_func_ngettext_libc" != "yes" \
170 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
171
172 AC_CHECK_LIB(intl, bindtextdomain,
173 [AC_CHECK_LIB(intl, ngettext,
174 [AC_CHECK_LIB(intl, dgettext,
175 gt_cv_func_dgettext_libintl=yes)])])
176
177 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
178 AC_MSG_CHECKING([if -liconv is needed to use gettext])
179 AC_MSG_RESULT([])
180 AC_CHECK_LIB(intl, ngettext,
181 [AC_CHECK_LIB(intl, dcgettext,
182 [gt_cv_func_dgettext_libintl=yes
183 libintl_extra_libs=-liconv],
184 :,-liconv)],
185 :,-liconv)
186 fi
187
188 #
189 # If we found libintl, then check in it for bind_textdomain_codeset();
190 # we'll prefer libc if neither have bind_textdomain_codeset(),
191 # and both have dgettext and ngettext
192 #
193 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
194 glib_save_LIBS="$LIBS"
195 LIBS="$LIBS -lintl $libintl_extra_libs"
196 unset ac_cv_func_bind_textdomain_codeset
197 AC_CHECK_FUNCS(bind_textdomain_codeset)
198 LIBS="$glib_save_LIBS"
199
200 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
201 gt_cv_func_dgettext_libc=no
202 else
203 if test "$gt_cv_func_dgettext_libc" = "yes" \
204 && test "$gt_cv_func_ngettext_libc" = "yes"; then
205 gt_cv_func_dgettext_libintl=no
206 fi
207 fi
208 fi
209 fi
210
211 if test "$gt_cv_func_dgettext_libc" = "yes" \
212 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
213 gt_cv_have_gettext=yes
214 fi
215
216 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
217 INTLLIBS="-lintl $libintl_extra_libs"
218 fi
219
220 if test "$gt_cv_have_gettext" = "yes"; then
221 AC_DEFINE(HAVE_GETTEXT,1,
222 [Define if the GNU gettext() function is already present or preinstalled.])
223 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
225 if test "$MSGFMT" != "no"; then
226 glib_save_LIBS="$LIBS"
227 LIBS="$LIBS $INTLLIBS"
228 AC_CHECK_FUNCS(dcgettext)
229 MSGFMT_OPTS=
230 AC_MSG_CHECKING([if msgfmt accepts -c])
231 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
232msgid ""
233msgstr ""
234"Content-Type: text/plain; charset=UTF-8\n"
235"Project-Id-Version: test 1.0\n"
236"PO-Revision-Date: 2007-02-15 12:01+0100\n"
237"Last-Translator: test <foo@bar.xx>\n"
238"Language-Team: C <LL@li.org>\n"
239"MIME-Version: 1.0\n"
240"Content-Transfer-Encoding: 8bit\n"
241], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
242 AC_SUBST(MSGFMT_OPTS)
243 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
244 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
245 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
246 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
247 return _nl_msg_cat_cntr],
248 [CATOBJEXT=.gmo
249 DATADIRNAME=share],
250 [case $host in
251 *-*-solaris*)
252 dnl On Solaris, if bind_textdomain_codeset is in libc,
253 dnl GNU format message catalog is always supported,
254 dnl since both are added to the libc all together.
255 dnl Hence, we'd like to go with DATADIRNAME=share and
256 dnl and CATOBJEXT=.gmo in this case.
257 AC_CHECK_FUNC(bind_textdomain_codeset,
258 [CATOBJEXT=.gmo
259 DATADIRNAME=share],
260 [CATOBJEXT=.mo
261 DATADIRNAME=lib])
262 ;;
263 *-*-openbsd*)
264 CATOBJEXT=.mo
265 DATADIRNAME=share
266 ;;
267 *)
268 CATOBJEXT=.mo
269 DATADIRNAME=lib
270 ;;
271 esac])
272 LIBS="$glib_save_LIBS"
273 INSTOBJEXT=.mo
274 else
275 gt_cv_have_gettext=no
276 fi
277 fi
278 ])
279
280 if test "$gt_cv_have_gettext" = "yes" ; then
281 AC_DEFINE(ENABLE_NLS, 1,
282 [always defined to indicate that i18n is enabled])
283 fi
284
285 dnl Test whether we really found GNU xgettext.
286 if test "$XGETTEXT" != ":"; then
287 dnl If it is not GNU xgettext we define it as : so that the
288 dnl Makefiles still can work.
289 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
290 : ;
291 else
292 AC_MSG_RESULT(
293 [found xgettext program is not GNU xgettext; ignore it])
294 XGETTEXT=":"
295 fi
296 fi
297
298 # We need to process the po/ directory.
299 POSUB=po
300
301 AC_OUTPUT_COMMANDS(
302 [case "$CONFIG_FILES" in *po/Makefile.in*)
303 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
304 esac])
305
306 dnl These rules are solely for the distribution goal. While doing this
307 dnl we only have to keep exactly one list of the available catalogs
308 dnl in configure.ac.
309 for lang in $ALL_LINGUAS; do
310 GMOFILES="$GMOFILES $lang.gmo"
311 POFILES="$POFILES $lang.po"
312 done
313
314 dnl Make all variables we use known to autoconf.
315 AC_SUBST(CATALOGS)
316 AC_SUBST(CATOBJEXT)
317 AC_SUBST(DATADIRNAME)
318 AC_SUBST(GMOFILES)
319 AC_SUBST(INSTOBJEXT)
320 AC_SUBST(INTLLIBS)
321 AC_SUBST(PO_IN_DATADIR_TRUE)
322 AC_SUBST(PO_IN_DATADIR_FALSE)
323 AC_SUBST(POFILES)
324 AC_SUBST(POSUB)
325 ])
326
327# AM_GLIB_GNU_GETTEXT
328# -------------------
329# Do checks necessary for use of gettext. If a suitable implementation
330# of gettext is found in either in libintl or in the C library,
331# it will set INTLLIBS to the libraries needed for use of gettext
332# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
333# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
334# on various variables needed by the Makefile.in.in installed by
335# glib-gettextize.
336dnl
337glib_DEFUN([GLIB_GNU_GETTEXT],
338 [AC_REQUIRE([AC_PROG_CC])dnl
339 AC_REQUIRE([AC_HEADER_STDC])dnl
340
341 GLIB_LC_MESSAGES
342 GLIB_WITH_NLS
343
344 if test "$gt_cv_have_gettext" = "yes"; then
345 if test "x$ALL_LINGUAS" = "x"; then
346 LINGUAS=
347 else
348 AC_MSG_CHECKING(for catalogs to be installed)
349 NEW_LINGUAS=
350 for presentlang in $ALL_LINGUAS; do
351 useit=no
352 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
353 desiredlanguages="$LINGUAS"
354 else
355 desiredlanguages="$ALL_LINGUAS"
356 fi
357 for desiredlang in $desiredlanguages; do
358 # Use the presentlang catalog if desiredlang is
359 # a. equal to presentlang, or
360 # b. a variant of presentlang (because in this case,
361 # presentlang can be used as a fallback for messages
362 # which are not translated in the desiredlang catalog).
363 case "$desiredlang" in
364 "$presentlang"*) useit=yes;;
365 esac
366 done
367 if test $useit = yes; then
368 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
369 fi
370 done
371 LINGUAS=$NEW_LINGUAS
372 AC_MSG_RESULT($LINGUAS)
373 fi
374
375 dnl Construct list of names of catalog files to be constructed.
376 if test -n "$LINGUAS"; then
377 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
378 fi
379 fi
380
381 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
382 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
383 dnl Try to locate is.
384 MKINSTALLDIRS=
385 if test -n "$ac_aux_dir"; then
386 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
387 fi
388 if test -z "$MKINSTALLDIRS"; then
389 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
390 fi
391 AC_SUBST(MKINSTALLDIRS)
392
393 dnl Generate list of files to be processed by xgettext which will
394 dnl be included in po/Makefile.
395 test -d po || mkdir po
396 if test "x$srcdir" != "x."; then
397 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
398 posrcprefix="$srcdir/"
399 else
400 posrcprefix="../$srcdir/"
401 fi
402 else
403 posrcprefix="../"
404 fi
405 rm -f po/POTFILES
406 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
407 < $srcdir/po/POTFILES.in > po/POTFILES
408 ])
409
410# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
411# -------------------------------
412# Define VARIABLE to the location where catalog files will
413# be installed by po/Makefile.
414glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
415[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
416glib_save_prefix="$prefix"
417glib_save_exec_prefix="$exec_prefix"
418glib_save_datarootdir="$datarootdir"
419test "x$prefix" = xNONE && prefix=$ac_default_prefix
420test "x$exec_prefix" = xNONE && exec_prefix=$prefix
421datarootdir=`eval echo "${datarootdir}"`
422if test "x$CATOBJEXT" = "x.mo" ; then
423 localedir=`eval echo "${libdir}/locale"`
424else
425 localedir=`eval echo "${datadir}/locale"`
426fi
427prefix="$glib_save_prefix"
428exec_prefix="$glib_save_exec_prefix"
429datarootdir="$glib_save_datarootdir"
430AC_DEFINE_UNQUOTED($1, "$localedir",
431 [Define the location where the catalogs will be installed])
432])
433
434dnl
435dnl Now the definitions that aclocal will find
436dnl
437ifdef(glib_configure_ac,[],[
438AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
439AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
440])dnl
441
442# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
443#
444# Create a temporary file with TEST-FILE as its contents and pass the
445# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
446# 0 and perform ACTION-IF-FAIL for any other exit status.
447AC_DEFUN([GLIB_RUN_PROG],
448[cat >conftest.foo <<_ACEOF
449$2
450_ACEOF
451if AC_RUN_LOG([$1 conftest.foo]); then
452 m4_ifval([$3], [$3], [:])
453m4_ifvaln([$4], [else $4])dnl
454echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
455sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
456fi])
457
458
459dnl -*- mode: autoconf -*-
460
461# serial 1
462
463dnl Usage:
464dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
465AC_DEFUN([GTK_DOC_CHECK],
466[
467 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
468 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
469 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
470
471 dnl check for tools we added during development
472 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
473 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
474 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
475
476 dnl for overriding the documentation installation directory
477 AC_ARG_WITH([html-dir],
478 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
479 [with_html_dir='${datadir}/gtk-doc/html'])
480 HTML_DIR="$with_html_dir"
481 AC_SUBST([HTML_DIR])
482
483 dnl enable/disable documentation building
484 AC_ARG_ENABLE([gtk-doc],
485 AS_HELP_STRING([--enable-gtk-doc],
486 [use gtk-doc to build documentation [[default=no]]]),,
487 [enable_gtk_doc=no])
488
489 if test x$enable_gtk_doc = xyes; then
490 ifelse([$1],[],
491 [PKG_CHECK_EXISTS([gtk-doc],,
492 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
493 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
494 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
495 dnl don't check for glib if we build glib
496 if test "x$PACKAGE_NAME" != "xglib"; then
497 dnl don't fail if someone does not have glib
498 PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
499 fi
500 fi
501
502 AC_MSG_CHECKING([whether to build gtk-doc documentation])
503 AC_MSG_RESULT($enable_gtk_doc)
504
505 dnl enable/disable output formats
506 AC_ARG_ENABLE([gtk-doc-html],
507 AS_HELP_STRING([--enable-gtk-doc-html],
508 [build documentation in html format [[default=yes]]]),,
509 [enable_gtk_doc_html=yes])
510 AC_ARG_ENABLE([gtk-doc-pdf],
511 AS_HELP_STRING([--enable-gtk-doc-pdf],
512 [build documentation in pdf format [[default=no]]]),,
513 [enable_gtk_doc_pdf=no])
514
515 if test -z "$GTKDOC_MKPDF"; then
516 enable_gtk_doc_pdf=no
517 fi
518
519
520 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
521 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
522 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
523 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
524 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
525])
526
527
528dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
529# serial 42 IT_PROG_INTLTOOL
530AC_DEFUN([IT_PROG_INTLTOOL], [
531AC_PREREQ([2.50])dnl
532AC_REQUIRE([AM_NLS])dnl
533
534case "$am__api_version" in
535 1.[01234])
536 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
537 ;;
538 *)
539 ;;
540esac
541
542INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
543INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
544INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
545if test -n "$1"; then
546 AC_MSG_CHECKING([for intltool >= $1])
547 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
548 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
549 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
550fi
551
552AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
553AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
554AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
555if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
556 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
557fi
558
559if test -z "$AM_DEFAULT_VERBOSITY"; then
560 AM_DEFAULT_VERBOSITY=1
561fi
562AC_SUBST([AM_DEFAULT_VERBOSITY])
563
564INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
565INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
566INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
567AC_SUBST(INTLTOOL_V_MERGE)
568AC_SUBST(INTLTOOL__v_MERGE_)
569AC_SUBST(INTLTOOL__v_MERGE_0)
570
571INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
572intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
573intltool__v_merge_options_0='-q'
574AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
575AC_SUBST(intltool__v_merge_options_)
576AC_SUBST(intltool__v_merge_options_0)
577
578 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 $< [$]@'
579INTLTOOL_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 $< [$]@'
580 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 $< [$]@'
581 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 $< [$]@'
582 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 $< [$]@'
583 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 $< [$]@'
584 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 $< [$]@'
585 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 $< [$]@'
586INTLTOOL_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 $< [$]@'
587 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 $< [$]@'
588 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 $< [$]@'
589if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
590 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 $< [$]@'
591else
592 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'
593fi
594 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 $< [$]@'
595 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 $< [$]@'
596 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 $< [$]@'
597 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 $< [$]@'
598 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 $< [$]@'
599 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 $< [$]@'
600 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 $< [$]@'
601
602_IT_SUBST(INTLTOOL_DESKTOP_RULE)
603_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
604_IT_SUBST(INTLTOOL_KEYS_RULE)
605_IT_SUBST(INTLTOOL_PROP_RULE)
606_IT_SUBST(INTLTOOL_OAF_RULE)
607_IT_SUBST(INTLTOOL_PONG_RULE)
608_IT_SUBST(INTLTOOL_SERVER_RULE)
609_IT_SUBST(INTLTOOL_SHEET_RULE)
610_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
611_IT_SUBST(INTLTOOL_UI_RULE)
612_IT_SUBST(INTLTOOL_XAM_RULE)
613_IT_SUBST(INTLTOOL_KBD_RULE)
614_IT_SUBST(INTLTOOL_XML_RULE)
615_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
616_IT_SUBST(INTLTOOL_CAVES_RULE)
617_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
618_IT_SUBST(INTLTOOL_THEME_RULE)
619_IT_SUBST(INTLTOOL_SERVICE_RULE)
620_IT_SUBST(INTLTOOL_POLICY_RULE)
621
622# Check the gettext tools to make sure they are GNU
623AC_PATH_PROG(XGETTEXT, xgettext)
624AC_PATH_PROG(MSGMERGE, msgmerge)
625AC_PATH_PROG(MSGFMT, msgfmt)
626AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
627if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
628 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
629fi
630xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
631mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
632mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
633if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
634 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
635fi
636
637AC_PATH_PROG(INTLTOOL_PERL, perl)
638if test -z "$INTLTOOL_PERL"; then
639 AC_MSG_ERROR([perl not found])
640fi
641AC_MSG_CHECKING([for perl >= 5.8.1])
642$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
643if test $? -ne 0; then
644 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
645else
646 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
647 AC_MSG_RESULT([$IT_PERL_VERSION])
648fi
649if test "x$2" != "xno-xml"; then
650 AC_MSG_CHECKING([for XML::Parser])
651 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
652 AC_MSG_RESULT([ok])
653 else
654 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
655 fi
656fi
657
658# Substitute ALL_LINGUAS so we can use it in po/Makefile
659AC_SUBST(ALL_LINGUAS)
660
661# Set DATADIRNAME correctly if it is not set yet
662# (copied from glib-gettext.m4)
663if test -z "$DATADIRNAME"; then
664 AC_LINK_IFELSE(
665 [AC_LANG_PROGRAM([[]],
666 [[extern int _nl_msg_cat_cntr;
667 return _nl_msg_cat_cntr]])],
668 [DATADIRNAME=share],
669 [case $host in
670 *-*-solaris*)
671 dnl On Solaris, if bind_textdomain_codeset is in libc,
672 dnl GNU format message catalog is always supported,
673 dnl since both are added to the libc all together.
674 dnl Hence, we'd like to go with DATADIRNAME=share
675 dnl in this case.
676 AC_CHECK_FUNC(bind_textdomain_codeset,
677 [DATADIRNAME=share], [DATADIRNAME=lib])
678 ;;
679 *)
680 [DATADIRNAME=lib]
681 ;;
682 esac])
683fi
684AC_SUBST(DATADIRNAME)
685
686IT_PO_SUBDIR([po])
687
688])
689
690
691# IT_PO_SUBDIR(DIRNAME)
692# ---------------------
693# All po subdirs have to be declared with this macro; the subdir "po" is
694# declared by IT_PROG_INTLTOOL.
695#
696AC_DEFUN([IT_PO_SUBDIR],
697[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
698dnl
699dnl The following CONFIG_COMMANDS should be executed at the very end
700dnl of config.status.
701AC_CONFIG_COMMANDS_PRE([
702 AC_CONFIG_COMMANDS([$1/stamp-it], [
703 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
704 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
705 fi
706 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
707 >"$1/stamp-it.tmp"
708 [sed '/^#/d
709 s/^[[].*] *//
710 /^[ ]*$/d
711 '"s|^| $ac_top_srcdir/|" \
712 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
713 ]
714 [sed '/^POTFILES =/,/[^\\]$/ {
715 /^POTFILES =/!d
716 r $1/POTFILES
717 }
718 ' "$1/Makefile.in" >"$1/Makefile"]
719 rm -f "$1/Makefile.tmp"
720 mv "$1/stamp-it.tmp" "$1/stamp-it"
721 ])
722])dnl
723])
724
725# _IT_SUBST(VARIABLE)
726# -------------------
727# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
728#
729AC_DEFUN([_IT_SUBST],
730[
731AC_SUBST([$1])
732m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
733]
734)
735
736# deprecated macros
737AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
738# A hint is needed for aclocal from Automake <= 1.9.4:
739# AC_DEFUN([AC_PROG_INTLTOOL], ...)
740
741
742# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
743#
744# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
745# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
746# Foundation, Inc.
747# Written by Gordon Matzigkeit, 1996
748#
749# This file is free software; the Free Software Foundation gives
750# unlimited permission to copy and/or distribute it, with or without
751# modifications, as long as this notice is preserved.
752
753m4_define([_LT_COPYING], [dnl
754# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
755# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
756# Foundation, Inc.
757# Written by Gordon Matzigkeit, 1996
758#
759# This file is part of GNU Libtool.
760#
761# GNU Libtool is free software; you can redistribute it and/or
762# modify it under the terms of the GNU General Public License as
763# published by the Free Software Foundation; either version 2 of
764# the License, or (at your option) any later version.
765#
766# As a special exception to the GNU General Public License,
767# if you distribute this file as part of a program or library that
768# is built using GNU Libtool, you may include this file under the
769# same distribution terms that you use for the rest of that program.
770#
771# GNU Libtool is distributed in the hope that it will be useful,
772# but WITHOUT ANY WARRANTY; without even the implied warranty of
773# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
774# GNU General Public License for more details.
775#
776# You should have received a copy of the GNU General Public License
777# along with GNU Libtool; see the file COPYING. If not, a copy
778# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
779# obtained by writing to the Free Software Foundation, Inc.,
780# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
781])
782
783# serial 57 LT_INIT
784
785
786# LT_PREREQ(VERSION)
787# ------------------
788# Complain and exit if this libtool version is less that VERSION.
789m4_defun([LT_PREREQ],
790[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
791 [m4_default([$3],
792 [m4_fatal([Libtool version $1 or higher is required],
793 63)])],
794 [$2])])
795
796
797# _LT_CHECK_BUILDDIR
798# ------------------
799# Complain if the absolute build directory name contains unusual characters
800m4_defun([_LT_CHECK_BUILDDIR],
801[case `pwd` in
802 *\ * | *\ *)
803 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
804esac
805])
806
807
808# LT_INIT([OPTIONS])
809# ------------------
810AC_DEFUN([LT_INIT],
811[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
812AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
813AC_BEFORE([$0], [LT_LANG])dnl
814AC_BEFORE([$0], [LT_OUTPUT])dnl
815AC_BEFORE([$0], [LTDL_INIT])dnl
816m4_require([_LT_CHECK_BUILDDIR])dnl
817
818dnl Autoconf doesn't catch unexpanded LT_ macros by default:
819m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
820m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
821dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
822dnl unless we require an AC_DEFUNed macro:
823AC_REQUIRE([LTOPTIONS_VERSION])dnl
824AC_REQUIRE([LTSUGAR_VERSION])dnl
825AC_REQUIRE([LTVERSION_VERSION])dnl
826AC_REQUIRE([LTOBSOLETE_VERSION])dnl
827m4_require([_LT_PROG_LTMAIN])dnl
828
829_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
830
831dnl Parse OPTIONS
832_LT_SET_OPTIONS([$0], [$1])
833
834# This can be used to rebuild libtool when needed
835LIBTOOL_DEPS="$ltmain"
836
837# Always use our own libtool.
838LIBTOOL='$(SHELL) $(top_builddir)/libtool'
839AC_SUBST(LIBTOOL)dnl
840
841_LT_SETUP
842
843# Only expand once:
844m4_define([LT_INIT])
845])# LT_INIT
846
847# Old names:
848AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
849AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
850dnl aclocal-1.4 backwards compatibility:
851dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
852dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
853
854
855# _LT_CC_BASENAME(CC)
856# -------------------
857# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
858m4_defun([_LT_CC_BASENAME],
859[for cc_temp in $1""; do
860 case $cc_temp in
861 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
862 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
863 \-*) ;;
864 *) break;;
865 esac
866done
867cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
868])
869
870
871# _LT_FILEUTILS_DEFAULTS
872# ----------------------
873# It is okay to use these file commands and assume they have been set
874# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
875m4_defun([_LT_FILEUTILS_DEFAULTS],
876[: ${CP="cp -f"}
877: ${MV="mv -f"}
878: ${RM="rm -f"}
879])# _LT_FILEUTILS_DEFAULTS
880
881
882# _LT_SETUP
883# ---------
884m4_defun([_LT_SETUP],
885[AC_REQUIRE([AC_CANONICAL_HOST])dnl
886AC_REQUIRE([AC_CANONICAL_BUILD])dnl
887AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
888AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
889
890_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
891dnl
892_LT_DECL([], [host_alias], [0], [The host system])dnl
893_LT_DECL([], [host], [0])dnl
894_LT_DECL([], [host_os], [0])dnl
895dnl
896_LT_DECL([], [build_alias], [0], [The build system])dnl
897_LT_DECL([], [build], [0])dnl
898_LT_DECL([], [build_os], [0])dnl
899dnl
900AC_REQUIRE([AC_PROG_CC])dnl
901AC_REQUIRE([LT_PATH_LD])dnl
902AC_REQUIRE([LT_PATH_NM])dnl
903dnl
904AC_REQUIRE([AC_PROG_LN_S])dnl
905test -z "$LN_S" && LN_S="ln -s"
906_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
907dnl
908AC_REQUIRE([LT_CMD_MAX_LEN])dnl
909_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
910_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
911dnl
912m4_require([_LT_FILEUTILS_DEFAULTS])dnl
913m4_require([_LT_CHECK_SHELL_FEATURES])dnl
914m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
915m4_require([_LT_CMD_RELOAD])dnl
916m4_require([_LT_CHECK_MAGIC_METHOD])dnl
917m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
918m4_require([_LT_CMD_OLD_ARCHIVE])dnl
919m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
920m4_require([_LT_WITH_SYSROOT])dnl
921
922_LT_CONFIG_LIBTOOL_INIT([
923# See if we are running on zsh, and set the options which allow our
924# commands through without removal of \ escapes INIT.
925if test -n "\${ZSH_VERSION+set}" ; then
926 setopt NO_GLOB_SUBST
927fi
928])
929if test -n "${ZSH_VERSION+set}" ; then
930 setopt NO_GLOB_SUBST
931fi
932
933_LT_CHECK_OBJDIR
934
935m4_require([_LT_TAG_COMPILER])dnl
936
937case $host_os in
938aix3*)
939 # AIX sometimes has problems with the GCC collect2 program. For some
940 # reason, if we set the COLLECT_NAMES environment variable, the problems
941 # vanish in a puff of smoke.
942 if test "X${COLLECT_NAMES+set}" != Xset; then
943 COLLECT_NAMES=
944 export COLLECT_NAMES
945 fi
946 ;;
947esac
948
949# Global variables:
950ofile=libtool
951can_build_shared=yes
952
953# All known linkers require a `.a' archive for static linking (except MSVC,
954# which needs '.lib').
955libext=a
956
957with_gnu_ld="$lt_cv_prog_gnu_ld"
958
959old_CC="$CC"
960old_CFLAGS="$CFLAGS"
961
962# Set sane defaults for various variables
963test -z "$CC" && CC=cc
964test -z "$LTCC" && LTCC=$CC
965test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
966test -z "$LD" && LD=ld
967test -z "$ac_objext" && ac_objext=o
968
969_LT_CC_BASENAME([$compiler])
970
971# Only perform the check for file, if the check method requires it
972test -z "$MAGIC_CMD" && MAGIC_CMD=file
973case $deplibs_check_method in
974file_magic*)
975 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
976 _LT_PATH_MAGIC
977 fi
978 ;;
979esac
980
981# Use C for the default configuration in the libtool script
982LT_SUPPORTED_TAG([CC])
983_LT_LANG_C_CONFIG
984_LT_LANG_DEFAULT_CONFIG
985_LT_CONFIG_COMMANDS
986])# _LT_SETUP
987
988
989# _LT_PREPARE_SED_QUOTE_VARS
990# --------------------------
991# Define a few sed substitution that help us do robust quoting.
992m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
993[# Backslashify metacharacters that are still active within
994# double-quoted strings.
995sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
996
997# Same as above, but do not quote variable references.
998double_quote_subst='s/\([["`\\]]\)/\\\1/g'
999
1000# Sed substitution to delay expansion of an escaped shell variable in a
1001# double_quote_subst'ed string.
1002delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1003
1004# Sed substitution to delay expansion of an escaped single quote.
1005delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1006
1007# Sed substitution to avoid accidental globbing in evaled expressions
1008no_glob_subst='s/\*/\\\*/g'
1009])
1010
1011# _LT_PROG_LTMAIN
1012# ---------------
1013# Note that this code is called both from `configure', and `config.status'
1014# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1015# `config.status' has no value for ac_aux_dir unless we are using Automake,
1016# so we pass a copy along to make sure it has a sensible value anyway.
1017m4_defun([_LT_PROG_LTMAIN],
1018[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1019_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1020ltmain="$ac_aux_dir/ltmain.sh"
1021])# _LT_PROG_LTMAIN
1022
1023
1024
1025# So that we can recreate a full libtool script including additional
1026# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1027# in macros and then make a single call at the end using the `libtool'
1028# label.
1029
1030
1031# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1032# ----------------------------------------
1033# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1034m4_define([_LT_CONFIG_LIBTOOL_INIT],
1035[m4_ifval([$1],
1036 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1037 [$1
1038])])])
1039
1040# Initialize.
1041m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1042
1043
1044# _LT_CONFIG_LIBTOOL([COMMANDS])
1045# ------------------------------
1046# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1047m4_define([_LT_CONFIG_LIBTOOL],
1048[m4_ifval([$1],
1049 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1050 [$1
1051])])])
1052
1053# Initialize.
1054m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1055
1056
1057# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1058# -----------------------------------------------------
1059m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1060[_LT_CONFIG_LIBTOOL([$1])
1061_LT_CONFIG_LIBTOOL_INIT([$2])
1062])
1063
1064
1065# _LT_FORMAT_COMMENT([COMMENT])
1066# -----------------------------
1067# Add leading comment marks to the start of each line, and a trailing
1068# full-stop to the whole comment if one is not present already.
1069m4_define([_LT_FORMAT_COMMENT],
1070[m4_ifval([$1], [
1071m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1072 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1073)])
1074
1075
1076
1077
1078
1079# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1080# -------------------------------------------------------------------
1081# CONFIGNAME is the name given to the value in the libtool script.
1082# VARNAME is the (base) name used in the configure script.
1083# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1084# VARNAME. Any other value will be used directly.
1085m4_define([_LT_DECL],
1086[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1087 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1088 [m4_ifval([$1], [$1], [$2])])
1089 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1090 m4_ifval([$4],
1091 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1092 lt_dict_add_subkey([lt_decl_dict], [$2],
1093 [tagged?], [m4_ifval([$5], [yes], [no])])])
1094])
1095
1096
1097# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1098# --------------------------------------------------------
1099m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1100
1101
1102# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1103# ------------------------------------------------
1104m4_define([lt_decl_tag_varnames],
1105[_lt_decl_filter([tagged?], [yes], $@)])
1106
1107
1108# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1109# ---------------------------------------------------------
1110m4_define([_lt_decl_filter],
1111[m4_case([$#],
1112 [0], [m4_fatal([$0: too few arguments: $#])],
1113 [1], [m4_fatal([$0: too few arguments: $#: $1])],
1114 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1115 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1116 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1117])
1118
1119
1120# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1121# --------------------------------------------------
1122m4_define([lt_decl_quote_varnames],
1123[_lt_decl_filter([value], [1], $@)])
1124
1125
1126# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1127# ---------------------------------------------------
1128m4_define([lt_decl_dquote_varnames],
1129[_lt_decl_filter([value], [2], $@)])
1130
1131
1132# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1133# ---------------------------------------------------
1134m4_define([lt_decl_varnames_tagged],
1135[m4_assert([$# <= 2])dnl
1136_$0(m4_quote(m4_default([$1], [[, ]])),
1137 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1138 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1139m4_define([_lt_decl_varnames_tagged],
1140[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1141
1142
1143# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1144# ------------------------------------------------
1145m4_define([lt_decl_all_varnames],
1146[_$0(m4_quote(m4_default([$1], [[, ]])),
1147 m4_if([$2], [],
1148 m4_quote(lt_decl_varnames),
1149 m4_quote(m4_shift($@))))[]dnl
1150])
1151m4_define([_lt_decl_all_varnames],
1152[lt_join($@, lt_decl_varnames_tagged([$1],
1153 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1154])
1155
1156
1157# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1158# ------------------------------------
1159# Quote a variable value, and forward it to `config.status' so that its
1160# declaration there will have the same value as in `configure'. VARNAME
1161# must have a single quote delimited value for this to work.
1162m4_define([_LT_CONFIG_STATUS_DECLARE],
1163[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1164
1165
1166# _LT_CONFIG_STATUS_DECLARATIONS
1167# ------------------------------
1168# We delimit libtool config variables with single quotes, so when
1169# we write them to config.status, we have to be sure to quote all
1170# embedded single quotes properly. In configure, this macro expands
1171# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1172#
1173# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1174m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1175[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1176 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1177
1178
1179# _LT_LIBTOOL_TAGS
1180# ----------------
1181# Output comment and list of tags supported by the script
1182m4_defun([_LT_LIBTOOL_TAGS],
1183[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1184available_tags="_LT_TAGS"dnl
1185])
1186
1187
1188# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1189# -----------------------------------
1190# Extract the dictionary values for VARNAME (optionally with TAG) and
1191# expand to a commented shell variable setting:
1192#
1193# # Some comment about what VAR is for.
1194# visible_name=$lt_internal_name
1195m4_define([_LT_LIBTOOL_DECLARE],
1196[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1197 [description])))[]dnl
1198m4_pushdef([_libtool_name],
1199 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1200m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1201 [0], [_libtool_name=[$]$1],
1202 [1], [_libtool_name=$lt_[]$1],
1203 [2], [_libtool_name=$lt_[]$1],
1204 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1205m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1206])
1207
1208
1209# _LT_LIBTOOL_CONFIG_VARS
1210# -----------------------
1211# Produce commented declarations of non-tagged libtool config variables
1212# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1213# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1214# section) are produced by _LT_LIBTOOL_TAG_VARS.
1215m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1216[m4_foreach([_lt_var],
1217 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1218 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1219
1220
1221# _LT_LIBTOOL_TAG_VARS(TAG)
1222# -------------------------
1223m4_define([_LT_LIBTOOL_TAG_VARS],
1224[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1225 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1226
1227
1228# _LT_TAGVAR(VARNAME, [TAGNAME])
1229# ------------------------------
1230m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1231
1232
1233# _LT_CONFIG_COMMANDS
1234# -------------------
1235# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1236# variables for single and double quote escaping we saved from calls
1237# to _LT_DECL, we can put quote escaped variables declarations
1238# into `config.status', and then the shell code to quote escape them in
1239# for loops in `config.status'. Finally, any additional code accumulated
1240# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1241m4_defun([_LT_CONFIG_COMMANDS],
1242[AC_PROVIDE_IFELSE([LT_OUTPUT],
1243 dnl If the libtool generation code has been placed in $CONFIG_LT,
1244 dnl instead of duplicating it all over again into config.status,
1245 dnl then we will have config.status run $CONFIG_LT later, so it
1246 dnl needs to know what name is stored there:
1247 [AC_CONFIG_COMMANDS([libtool],
1248 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1249 dnl If the libtool generation code is destined for config.status,
1250 dnl expand the accumulated commands and init code now:
1251 [AC_CONFIG_COMMANDS([libtool],
1252 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1253])#_LT_CONFIG_COMMANDS
1254
1255
1256# Initialize.
1257m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1258[
1259
1260# The HP-UX ksh and POSIX shell print the target directory to stdout
1261# if CDPATH is set.
1262(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1263
1264sed_quote_subst='$sed_quote_subst'
1265double_quote_subst='$double_quote_subst'
1266delay_variable_subst='$delay_variable_subst'
1267_LT_CONFIG_STATUS_DECLARATIONS
1268LTCC='$LTCC'
1269LTCFLAGS='$LTCFLAGS'
1270compiler='$compiler_DEFAULT'
1271
1272# A function that is used when there is no print builtin or printf.
1273func_fallback_echo ()
1274{
1275 eval 'cat <<_LTECHO_EOF
1276\$[]1
1277_LTECHO_EOF'
1278}
1279
1280# Quote evaled strings.
1281for var in lt_decl_all_varnames([[ \
1282]], lt_decl_quote_varnames); do
1283 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1284 *[[\\\\\\\`\\"\\\$]]*)
1285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1286 ;;
1287 *)
1288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1289 ;;
1290 esac
1291done
1292
1293# Double-quote double-evaled strings.
1294for var in lt_decl_all_varnames([[ \
1295]], lt_decl_dquote_varnames); do
1296 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1297 *[[\\\\\\\`\\"\\\$]]*)
1298 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1299 ;;
1300 *)
1301 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1302 ;;
1303 esac
1304done
1305
1306_LT_OUTPUT_LIBTOOL_INIT
1307])
1308
1309# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1310# ------------------------------------
1311# Generate a child script FILE with all initialization necessary to
1312# reuse the environment learned by the parent script, and make the
1313# file executable. If COMMENT is supplied, it is inserted after the
1314# `#!' sequence but before initialization text begins. After this
1315# macro, additional text can be appended to FILE to form the body of
1316# the child script. The macro ends with non-zero status if the
1317# file could not be fully written (such as if the disk is full).
1318m4_ifdef([AS_INIT_GENERATED],
1319[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1320[m4_defun([_LT_GENERATED_FILE_INIT],
1321[m4_require([AS_PREPARE])]dnl
1322[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1323[lt_write_fail=0
1324cat >$1 <<_ASEOF || lt_write_fail=1
1325#! $SHELL
1326# Generated by $as_me.
1327$2
1328SHELL=\${CONFIG_SHELL-$SHELL}
1329export SHELL
1330_ASEOF
1331cat >>$1 <<\_ASEOF || lt_write_fail=1
1332AS_SHELL_SANITIZE
1333_AS_PREPARE
1334exec AS_MESSAGE_FD>&1
1335_ASEOF
1336test $lt_write_fail = 0 && chmod +x $1[]dnl
1337m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1338
1339# LT_OUTPUT
1340# ---------
1341# This macro allows early generation of the libtool script (before
1342# AC_OUTPUT is called), incase it is used in configure for compilation
1343# tests.
1344AC_DEFUN([LT_OUTPUT],
1345[: ${CONFIG_LT=./config.lt}
1346AC_MSG_NOTICE([creating $CONFIG_LT])
1347_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1348[# Run this file to recreate a libtool stub with the current configuration.])
1349
1350cat >>"$CONFIG_LT" <<\_LTEOF
1351lt_cl_silent=false
1352exec AS_MESSAGE_LOG_FD>>config.log
1353{
1354 echo
1355 AS_BOX([Running $as_me.])
1356} >&AS_MESSAGE_LOG_FD
1357
1358lt_cl_help="\
1359\`$as_me' creates a local libtool stub from the current configuration,
1360for use in further configure time tests before the real libtool is
1361generated.
1362
1363Usage: $[0] [[OPTIONS]]
1364
1365 -h, --help print this help, then exit
1366 -V, --version print version number, then exit
1367 -q, --quiet do not print progress messages
1368 -d, --debug don't remove temporary files
1369
1370Report bugs to <bug-libtool@gnu.org>."
1371
1372lt_cl_version="\
1373m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1374m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1375configured by $[0], generated by m4_PACKAGE_STRING.
1376
1377Copyright (C) 2011 Free Software Foundation, Inc.
1378This config.lt script is free software; the Free Software Foundation
1379gives unlimited permision to copy, distribute and modify it."
1380
1381while test $[#] != 0
1382do
1383 case $[1] in
1384 --version | --v* | -V )
1385 echo "$lt_cl_version"; exit 0 ;;
1386 --help | --h* | -h )
1387 echo "$lt_cl_help"; exit 0 ;;
1388 --debug | --d* | -d )
1389 debug=: ;;
1390 --quiet | --q* | --silent | --s* | -q )
1391 lt_cl_silent=: ;;
1392
1393 -*) AC_MSG_ERROR([unrecognized option: $[1]
1394Try \`$[0] --help' for more information.]) ;;
1395
1396 *) AC_MSG_ERROR([unrecognized argument: $[1]
1397Try \`$[0] --help' for more information.]) ;;
1398 esac
1399 shift
1400done
1401
1402if $lt_cl_silent; then
1403 exec AS_MESSAGE_FD>/dev/null
1404fi
1405_LTEOF
1406
1407cat >>"$CONFIG_LT" <<_LTEOF
1408_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1409_LTEOF
1410
1411cat >>"$CONFIG_LT" <<\_LTEOF
1412AC_MSG_NOTICE([creating $ofile])
1413_LT_OUTPUT_LIBTOOL_COMMANDS
1414AS_EXIT(0)
1415_LTEOF
1416chmod +x "$CONFIG_LT"
1417
1418# configure is writing to config.log, but config.lt does its own redirection,
1419# appending to config.log, which fails on DOS, as config.log is still kept
1420# open by configure. Here we exec the FD to /dev/null, effectively closing
1421# config.log, so it can be properly (re)opened and appended to by config.lt.
1422lt_cl_success=:
1423test "$silent" = yes &&
1424 lt_config_lt_args="$lt_config_lt_args --quiet"
1425exec AS_MESSAGE_LOG_FD>/dev/null
1426$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1427exec AS_MESSAGE_LOG_FD>>config.log
1428$lt_cl_success || AS_EXIT(1)
1429])# LT_OUTPUT
1430
1431
1432# _LT_CONFIG(TAG)
1433# ---------------
1434# If TAG is the built-in tag, create an initial libtool script with a
1435# default configuration from the untagged config vars. Otherwise add code
1436# to config.status for appending the configuration named by TAG from the
1437# matching tagged config vars.
1438m4_defun([_LT_CONFIG],
1439[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1440_LT_CONFIG_SAVE_COMMANDS([
1441 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1442 m4_if(_LT_TAG, [C], [
1443 # See if we are running on zsh, and set the options which allow our
1444 # commands through without removal of \ escapes.
1445 if test -n "${ZSH_VERSION+set}" ; then
1446 setopt NO_GLOB_SUBST
1447 fi
1448
1449 cfgfile="${ofile}T"
1450 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1451 $RM "$cfgfile"
1452
1453 cat <<_LT_EOF >> "$cfgfile"
1454#! $SHELL
1455
1456# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1457# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1458# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1459# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1460#
1461_LT_COPYING
1462_LT_LIBTOOL_TAGS
1463
1464# ### BEGIN LIBTOOL CONFIG
1465_LT_LIBTOOL_CONFIG_VARS
1466_LT_LIBTOOL_TAG_VARS
1467# ### END LIBTOOL CONFIG
1468
1469_LT_EOF
1470
1471 case $host_os in
1472 aix3*)
1473 cat <<\_LT_EOF >> "$cfgfile"
1474# AIX sometimes has problems with the GCC collect2 program. For some
1475# reason, if we set the COLLECT_NAMES environment variable, the problems
1476# vanish in a puff of smoke.
1477if test "X${COLLECT_NAMES+set}" != Xset; then
1478 COLLECT_NAMES=
1479 export COLLECT_NAMES
1480fi
1481_LT_EOF
1482 ;;
1483 esac
1484
1485 _LT_PROG_LTMAIN
1486
1487 # We use sed instead of cat because bash on DJGPP gets confused if
1488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1489 # text mode, it properly converts lines to CR/LF. This bash problem
1490 # is reportedly fixed, but why not run on old versions too?
1491 sed '$q' "$ltmain" >> "$cfgfile" \
1492 || (rm -f "$cfgfile"; exit 1)
1493
1494 _LT_PROG_REPLACE_SHELLFNS
1495
1496 mv -f "$cfgfile" "$ofile" ||
1497 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1498 chmod +x "$ofile"
1499],
1500[cat <<_LT_EOF >> "$ofile"
1501
1502dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1503dnl in a comment (ie after a #).
1504# ### BEGIN LIBTOOL TAG CONFIG: $1
1505_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1506# ### END LIBTOOL TAG CONFIG: $1
1507_LT_EOF
1508])dnl /m4_if
1509],
1510[m4_if([$1], [], [
1511 PACKAGE='$PACKAGE'
1512 VERSION='$VERSION'
1513 TIMESTAMP='$TIMESTAMP'
1514 RM='$RM'
1515 ofile='$ofile'], [])
1516])dnl /_LT_CONFIG_SAVE_COMMANDS
1517])# _LT_CONFIG
1518
1519
1520# LT_SUPPORTED_TAG(TAG)
1521# ---------------------
1522# Trace this macro to discover what tags are supported by the libtool
1523# --tag option, using:
1524# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1525AC_DEFUN([LT_SUPPORTED_TAG], [])
1526
1527
1528# C support is built-in for now
1529m4_define([_LT_LANG_C_enabled], [])
1530m4_define([_LT_TAGS], [])
1531
1532
1533# LT_LANG(LANG)
1534# -------------
1535# Enable libtool support for the given language if not already enabled.
1536AC_DEFUN([LT_LANG],
1537[AC_BEFORE([$0], [LT_OUTPUT])dnl
1538m4_case([$1],
1539 [C], [_LT_LANG(C)],
1540 [C++], [_LT_LANG(CXX)],
1541 [Go], [_LT_LANG(GO)],
1542 [Java], [_LT_LANG(GCJ)],
1543 [Fortran 77], [_LT_LANG(F77)],
1544 [Fortran], [_LT_LANG(FC)],
1545 [Windows Resource], [_LT_LANG(RC)],
1546 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1547 [_LT_LANG($1)],
1548 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1549])# LT_LANG
1550
1551
1552# _LT_LANG(LANGNAME)
1553# ------------------
1554m4_defun([_LT_LANG],
1555[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1556 [LT_SUPPORTED_TAG([$1])dnl
1557 m4_append([_LT_TAGS], [$1 ])dnl
1558 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1559 _LT_LANG_$1_CONFIG($1)])dnl
1560])# _LT_LANG
1561
1562
1563m4_ifndef([AC_PROG_GO], [
1564# NOTE: This macro has been submitted for inclusion into #
1565# GNU Autoconf as AC_PROG_GO. When it is available in #
1566# a released version of Autoconf we should remove this #
1567# macro and use it instead. #
1568m4_defun([AC_PROG_GO],
1569[AC_LANG_PUSH(Go)dnl
1570AC_ARG_VAR([GOC], [Go compiler command])dnl
1571AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1572_AC_ARG_VAR_LDFLAGS()dnl
1573AC_CHECK_TOOL(GOC, gccgo)
1574if test -z "$GOC"; then
1575 if test -n "$ac_tool_prefix"; then
1576 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1577 fi
1578fi
1579if test -z "$GOC"; then
1580 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1581fi
1582])#m4_defun
1583])#m4_ifndef
1584
1585
1586# _LT_LANG_DEFAULT_CONFIG
1587# -----------------------
1588m4_defun([_LT_LANG_DEFAULT_CONFIG],
1589[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1590 [LT_LANG(CXX)],
1591 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1592
1593AC_PROVIDE_IFELSE([AC_PROG_F77],
1594 [LT_LANG(F77)],
1595 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1596
1597AC_PROVIDE_IFELSE([AC_PROG_FC],
1598 [LT_LANG(FC)],
1599 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1600
1601dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1602dnl pulling things in needlessly.
1603AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1604 [LT_LANG(GCJ)],
1605 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1606 [LT_LANG(GCJ)],
1607 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1608 [LT_LANG(GCJ)],
1609 [m4_ifdef([AC_PROG_GCJ],
1610 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1611 m4_ifdef([A][M_PROG_GCJ],
1612 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1613 m4_ifdef([LT_PROG_GCJ],
1614 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1615
1616AC_PROVIDE_IFELSE([AC_PROG_GO],
1617 [LT_LANG(GO)],
1618 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1619
1620AC_PROVIDE_IFELSE([LT_PROG_RC],
1621 [LT_LANG(RC)],
1622 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1623])# _LT_LANG_DEFAULT_CONFIG
1624
1625# Obsolete macros:
1626AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1627AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1628AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1629AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1630AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1631dnl aclocal-1.4 backwards compatibility:
1632dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1633dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1634dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1635dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1636dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1637
1638
1639# _LT_TAG_COMPILER
1640# ----------------
1641m4_defun([_LT_TAG_COMPILER],
1642[AC_REQUIRE([AC_PROG_CC])dnl
1643
1644_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1645_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1646_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1647_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1648
1649# If no C compiler was specified, use CC.
1650LTCC=${LTCC-"$CC"}
1651
1652# If no C compiler flags were specified, use CFLAGS.
1653LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1654
1655# Allow CC to be a program name with arguments.
1656compiler=$CC
1657])# _LT_TAG_COMPILER
1658
1659
1660# _LT_COMPILER_BOILERPLATE
1661# ------------------------
1662# Check for compiler boilerplate output or warnings with
1663# the simple compiler test code.
1664m4_defun([_LT_COMPILER_BOILERPLATE],
1665[m4_require([_LT_DECL_SED])dnl
1666ac_outfile=conftest.$ac_objext
1667echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1669_lt_compiler_boilerplate=`cat conftest.err`
1670$RM conftest*
1671])# _LT_COMPILER_BOILERPLATE
1672
1673
1674# _LT_LINKER_BOILERPLATE
1675# ----------------------
1676# Check for linker boilerplate output or warnings with
1677# the simple link test code.
1678m4_defun([_LT_LINKER_BOILERPLATE],
1679[m4_require([_LT_DECL_SED])dnl
1680ac_outfile=conftest.$ac_objext
1681echo "$lt_simple_link_test_code" >conftest.$ac_ext
1682eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1683_lt_linker_boilerplate=`cat conftest.err`
1684$RM -r conftest*
1685])# _LT_LINKER_BOILERPLATE
1686
1687# _LT_REQUIRED_DARWIN_CHECKS
1688# -------------------------
1689m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1690 case $host_os in
1691 rhapsody* | darwin*)
1692 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1693 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1694 AC_CHECK_TOOL([LIPO], [lipo], [:])
1695 AC_CHECK_TOOL([OTOOL], [otool], [:])
1696 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1697 _LT_DECL([], [DSYMUTIL], [1],
1698 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1699 _LT_DECL([], [NMEDIT], [1],
1700 [Tool to change global to local symbols on Mac OS X])
1701 _LT_DECL([], [LIPO], [1],
1702 [Tool to manipulate fat objects and archives on Mac OS X])
1703 _LT_DECL([], [OTOOL], [1],
1704 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1705 _LT_DECL([], [OTOOL64], [1],
1706 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1707
1708 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1709 [lt_cv_apple_cc_single_mod=no
1710 if test -z "${LT_MULTI_MODULE}"; then
1711 # By default we will add the -single_module flag. You can override
1712 # by either setting the environment variable LT_MULTI_MODULE
1713 # non-empty at configure time, or by adding -multi_module to the
1714 # link flags.
1715 rm -rf libconftest.dylib*
1716 echo "int foo(void){return 1;}" > conftest.c
1717 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1718-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1719 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1720 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1721 _lt_result=$?
1722 # If there is a non-empty error log, and "single_module"
1723 # appears in it, assume the flag caused a linker warning
1724 if test -s conftest.err && $GREP single_module conftest.err; then
1725 cat conftest.err >&AS_MESSAGE_LOG_FD
1726 # Otherwise, if the output was created with a 0 exit code from
1727 # the compiler, it worked.
1728 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1729 lt_cv_apple_cc_single_mod=yes
1730 else
1731 cat conftest.err >&AS_MESSAGE_LOG_FD
1732 fi
1733 rm -rf libconftest.dylib*
1734 rm -f conftest.*
1735 fi])
1736
1737 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1738 [lt_cv_ld_exported_symbols_list],
1739 [lt_cv_ld_exported_symbols_list=no
1740 save_LDFLAGS=$LDFLAGS
1741 echo "_main" > conftest.sym
1742 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1743 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1744 [lt_cv_ld_exported_symbols_list=yes],
1745 [lt_cv_ld_exported_symbols_list=no])
1746 LDFLAGS="$save_LDFLAGS"
1747 ])
1748
1749 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1750 [lt_cv_ld_force_load=no
1751 cat > conftest.c << _LT_EOF
1752int forced_loaded() { return 2;}
1753_LT_EOF
1754 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1755 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1756 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1757 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1758 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1759 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1760 cat > conftest.c << _LT_EOF
1761int main() { return 0;}
1762_LT_EOF
1763 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1764 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1765 _lt_result=$?
1766 if test -s conftest.err && $GREP force_load conftest.err; then
1767 cat conftest.err >&AS_MESSAGE_LOG_FD
1768 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1769 lt_cv_ld_force_load=yes
1770 else
1771 cat conftest.err >&AS_MESSAGE_LOG_FD
1772 fi
1773 rm -f conftest.err libconftest.a conftest conftest.c
1774 rm -rf conftest.dSYM
1775 ])
1776 case $host_os in
1777 rhapsody* | darwin1.[[012]])
1778 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1779 darwin1.*)
1780 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1781 darwin*) # darwin 5.x on
1782 # if running on 10.5 or later, the deployment target defaults
1783 # to the OS version, if on x86, and 10.4, the deployment
1784 # target defaults to 10.4. Don't you love it?
1785 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1786 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1787 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1788 10.[[012]]*)
1789 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1790 10.*)
1791 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1792 esac
1793 ;;
1794 esac
1795 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1796 _lt_dar_single_mod='$single_module'
1797 fi
1798 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1799 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1800 else
1801 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1802 fi
1803 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1804 _lt_dsymutil='~$DSYMUTIL $lib || :'
1805 else
1806 _lt_dsymutil=
1807 fi
1808 ;;
1809 esac
1810])
1811
1812
1813# _LT_DARWIN_LINKER_FEATURES([TAG])
1814# ---------------------------------
1815# Checks for linker and compiler features on darwin
1816m4_defun([_LT_DARWIN_LINKER_FEATURES],
1817[
1818 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1819 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1820 _LT_TAGVAR(hardcode_direct, $1)=no
1821 _LT_TAGVAR(hardcode_automatic, $1)=yes
1822 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1823 if test "$lt_cv_ld_force_load" = "yes"; then
1824 _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\"`'
1825 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1826 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1827 else
1828 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1829 fi
1830 _LT_TAGVAR(link_all_deplibs, $1)=yes
1831 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1832 case $cc_basename in
1833 ifort*) _lt_dar_can_shared=yes ;;
1834 *) _lt_dar_can_shared=$GCC ;;
1835 esac
1836 if test "$_lt_dar_can_shared" = "yes"; then
1837 output_verbose_link_cmd=func_echo_all
1838 _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}"
1839 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1840 _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}"
1841 _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}"
1842 m4_if([$1], [CXX],
1843[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1844 _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}"
1845 _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}"
1846 fi
1847],[])
1848 else
1849 _LT_TAGVAR(ld_shlibs, $1)=no
1850 fi
1851])
1852
1853# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1854# ----------------------------------
1855# Links a minimal program and checks the executable
1856# for the system default hardcoded library path. In most cases,
1857# this is /usr/lib:/lib, but when the MPI compilers are used
1858# the location of the communication and MPI libs are included too.
1859# If we don't find anything, use the default library path according
1860# to the aix ld manual.
1861# Store the results from the different compilers for each TAGNAME.
1862# Allow to override them for all tags through lt_cv_aix_libpath.
1863m4_defun([_LT_SYS_MODULE_PATH_AIX],
1864[m4_require([_LT_DECL_SED])dnl
1865if test "${lt_cv_aix_libpath+set}" = set; then
1866 aix_libpath=$lt_cv_aix_libpath
1867else
1868 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1869 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1870 lt_aix_libpath_sed='[
1871 /Import File Strings/,/^$/ {
1872 /^0/ {
1873 s/^0 *\([^ ]*\) *$/\1/
1874 p
1875 }
1876 }]'
1877 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1878 # Check for a 64-bit object if we didn't find anything.
1879 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1880 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1881 fi],[])
1882 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1883 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1884 fi
1885 ])
1886 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1887fi
1888])# _LT_SYS_MODULE_PATH_AIX
1889
1890
1891# _LT_SHELL_INIT(ARG)
1892# -------------------
1893m4_define([_LT_SHELL_INIT],
1894[m4_divert_text([M4SH-INIT], [$1
1895])])# _LT_SHELL_INIT
1896
1897
1898
1899# _LT_PROG_ECHO_BACKSLASH
1900# -----------------------
1901# Find how we can fake an echo command that does not interpret backslash.
1902# In particular, with Autoconf 2.60 or later we add some code to the start
1903# of the generated configure script which will find a shell with a builtin
1904# printf (which we can use as an echo command).
1905m4_defun([_LT_PROG_ECHO_BACKSLASH],
1906[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1907ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1908ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1909
1910AC_MSG_CHECKING([how to print strings])
1911# Test print first, because it will be a builtin if present.
1912if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1913 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1914 ECHO='print -r --'
1915elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1916 ECHO='printf %s\n'
1917else
1918 # Use this function as a fallback that always works.
1919 func_fallback_echo ()
1920 {
1921 eval 'cat <<_LTECHO_EOF
1922$[]1
1923_LTECHO_EOF'
1924 }
1925 ECHO='func_fallback_echo'
1926fi
1927
1928# func_echo_all arg...
1929# Invoke $ECHO with all args, space-separated.
1930func_echo_all ()
1931{
1932 $ECHO "$*"
1933}
1934
1935case "$ECHO" in
1936 printf*) AC_MSG_RESULT([printf]) ;;
1937 print*) AC_MSG_RESULT([print -r]) ;;
1938 *) AC_MSG_RESULT([cat]) ;;
1939esac
1940
1941m4_ifdef([_AS_DETECT_SUGGESTED],
1942[_AS_DETECT_SUGGESTED([
1943 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1944 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1945 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1946 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1947 PATH=/empty FPATH=/empty; export PATH FPATH
1948 test "X`printf %s $ECHO`" = "X$ECHO" \
1949 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1950
1951_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1952_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1953])# _LT_PROG_ECHO_BACKSLASH
1954
1955
1956# _LT_WITH_SYSROOT
1957# ----------------
1958AC_DEFUN([_LT_WITH_SYSROOT],
1959[AC_MSG_CHECKING([for sysroot])
1960AC_ARG_WITH([sysroot],
1961[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1962 (or the compiler's sysroot if not specified).],
1963[], [with_sysroot=no])
1964
1965dnl lt_sysroot will always be passed unquoted. We quote it here
1966dnl in case the user passed a directory name.
1967lt_sysroot=
1968case ${with_sysroot} in #(
1969 yes)
1970 if test "$GCC" = yes; then
1971 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1972 fi
1973 ;; #(
1974 /*)
1975 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1976 ;; #(
1977 no|'')
1978 ;; #(
1979 *)
1980 AC_MSG_RESULT([${with_sysroot}])
1981 AC_MSG_ERROR([The sysroot must be an absolute path.])
1982 ;;
1983esac
1984
1985 AC_MSG_RESULT([${lt_sysroot:-no}])
1986_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1987[dependent libraries, and in which our libraries should be installed.])])
1988
1989# _LT_ENABLE_LOCK
1990# ---------------
1991m4_defun([_LT_ENABLE_LOCK],
1992[AC_ARG_ENABLE([libtool-lock],
1993 [AS_HELP_STRING([--disable-libtool-lock],
1994 [avoid locking (might break parallel builds)])])
1995test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1996
1997# Some flags need to be propagated to the compiler or linker for good
1998# libtool support.
1999case $host in
2000ia64-*-hpux*)
2001 # Find out which ABI we are using.
2002 echo 'int i;' > conftest.$ac_ext
2003 if AC_TRY_EVAL(ac_compile); then
2004 case `/usr/bin/file conftest.$ac_objext` in
2005 *ELF-32*)
2006 HPUX_IA64_MODE="32"
2007 ;;
2008 *ELF-64*)
2009 HPUX_IA64_MODE="64"
2010 ;;
2011 esac
2012 fi
2013 rm -rf conftest*
2014 ;;
2015*-*-irix6*)
2016 # Find out which ABI we are using.
2017 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
2018 if AC_TRY_EVAL(ac_compile); then
2019 if test "$lt_cv_prog_gnu_ld" = yes; then
2020 case `/usr/bin/file conftest.$ac_objext` in
2021 *32-bit*)
2022 LD="${LD-ld} -melf32bsmip"
2023 ;;
2024 *N32*)
2025 LD="${LD-ld} -melf32bmipn32"
2026 ;;
2027 *64-bit*)
2028 LD="${LD-ld} -melf64bmip"
2029 ;;
2030 esac
2031 else
2032 case `/usr/bin/file conftest.$ac_objext` in
2033 *32-bit*)
2034 LD="${LD-ld} -32"
2035 ;;
2036 *N32*)
2037 LD="${LD-ld} -n32"
2038 ;;
2039 *64-bit*)
2040 LD="${LD-ld} -64"
2041 ;;
2042 esac
2043 fi
2044 fi
2045 rm -rf conftest*
2046 ;;
2047
2048x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2049s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2050 # Find out which ABI we are using.
2051 echo 'int i;' > conftest.$ac_ext
2052 if AC_TRY_EVAL(ac_compile); then
2053 case `/usr/bin/file conftest.o` in
2054 *32-bit*)
2055 case $host in
2056 x86_64-*kfreebsd*-gnu)
2057 LD="${LD-ld} -m elf_i386_fbsd"
2058 ;;
2059 x86_64-*linux*)
2060 LD="${LD-ld} -m elf_i386"
2061 ;;
2062 ppc64-*linux*|powerpc64-*linux*)
2063 LD="${LD-ld} -m elf32ppclinux"
2064 ;;
2065 s390x-*linux*)
2066 LD="${LD-ld} -m elf_s390"
2067 ;;
2068 sparc64-*linux*)
2069 LD="${LD-ld} -m elf32_sparc"
2070 ;;
2071 esac
2072 ;;
2073 *64-bit*)
2074 case $host in
2075 x86_64-*kfreebsd*-gnu)
2076 LD="${LD-ld} -m elf_x86_64_fbsd"
2077 ;;
2078 x86_64-*linux*)
2079 LD="${LD-ld} -m elf_x86_64"
2080 ;;
2081 ppc*-*linux*|powerpc*-*linux*)
2082 LD="${LD-ld} -m elf64ppc"
2083 ;;
2084 s390*-*linux*|s390*-*tpf*)
2085 LD="${LD-ld} -m elf64_s390"
2086 ;;
2087 sparc*-*linux*)
2088 LD="${LD-ld} -m elf64_sparc"
2089 ;;
2090 esac
2091 ;;
2092 esac
2093 fi
2094 rm -rf conftest*
2095 ;;
2096
2097*-*-sco3.2v5*)
2098 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2099 SAVE_CFLAGS="$CFLAGS"
2100 CFLAGS="$CFLAGS -belf"
2101 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2102 [AC_LANG_PUSH(C)
2103 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2104 AC_LANG_POP])
2105 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2106 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2107 CFLAGS="$SAVE_CFLAGS"
2108 fi
2109 ;;
2110*-*solaris*)
2111 # Find out which ABI we are using.
2112 echo 'int i;' > conftest.$ac_ext
2113 if AC_TRY_EVAL(ac_compile); then
2114 case `/usr/bin/file conftest.o` in
2115 *64-bit*)
2116 case $lt_cv_prog_gnu_ld in
2117 yes*)
2118 case $host in
2119 i?86-*-solaris*)
2120 LD="${LD-ld} -m elf_x86_64"
2121 ;;
2122 sparc*-*-solaris*)
2123 LD="${LD-ld} -m elf64_sparc"
2124 ;;
2125 esac
2126 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
2127 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
2128 LD="${LD-ld}_sol2"
2129 fi
2130 ;;
2131 *)
2132 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2133 LD="${LD-ld} -64"
2134 fi
2135 ;;
2136 esac
2137 ;;
2138 esac
2139 fi
2140 rm -rf conftest*
2141 ;;
2142esac
2143
2144need_locks="$enable_libtool_lock"
2145])# _LT_ENABLE_LOCK
2146
2147
2148# _LT_PROG_AR
2149# -----------
2150m4_defun([_LT_PROG_AR],
2151[AC_CHECK_TOOLS(AR, [ar], false)
2152: ${AR=ar}
2153: ${AR_FLAGS=cru}
2154_LT_DECL([], [AR], [1], [The archiver])
2155_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2156
2157AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2158 [lt_cv_ar_at_file=no
2159 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2160 [echo conftest.$ac_objext > conftest.lst
2161 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2162 AC_TRY_EVAL([lt_ar_try])
2163 if test "$ac_status" -eq 0; then
2164 # Ensure the archiver fails upon bogus file names.
2165 rm -f conftest.$ac_objext libconftest.a
2166 AC_TRY_EVAL([lt_ar_try])
2167 if test "$ac_status" -ne 0; then
2168 lt_cv_ar_at_file=@
2169 fi
2170 fi
2171 rm -f conftest.* libconftest.a
2172 ])
2173 ])
2174
2175if test "x$lt_cv_ar_at_file" = xno; then
2176 archiver_list_spec=
2177else
2178 archiver_list_spec=$lt_cv_ar_at_file
2179fi
2180_LT_DECL([], [archiver_list_spec], [1],
2181 [How to feed a file listing to the archiver])
2182])# _LT_PROG_AR
2183
2184
2185# _LT_CMD_OLD_ARCHIVE
2186# -------------------
2187m4_defun([_LT_CMD_OLD_ARCHIVE],
2188[_LT_PROG_AR
2189
2190AC_CHECK_TOOL(STRIP, strip, :)
2191test -z "$STRIP" && STRIP=:
2192_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2193
2194AC_CHECK_TOOL(RANLIB, ranlib, :)
2195test -z "$RANLIB" && RANLIB=:
2196_LT_DECL([], [RANLIB], [1],
2197 [Commands used to install an old-style archive])
2198
2199# Determine commands to create old-style static archives.
2200old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2201old_postinstall_cmds='chmod 644 $oldlib'
2202old_postuninstall_cmds=
2203
2204if test -n "$RANLIB"; then
2205 case $host_os in
2206 openbsd*)
2207 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2208 ;;
2209 *)
2210 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2211 ;;
2212 esac
2213 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2214fi
2215
2216case $host_os in
2217 darwin*)
2218 lock_old_archive_extraction=yes ;;
2219 *)
2220 lock_old_archive_extraction=no ;;
2221esac
2222_LT_DECL([], [old_postinstall_cmds], [2])
2223_LT_DECL([], [old_postuninstall_cmds], [2])
2224_LT_TAGDECL([], [old_archive_cmds], [2],
2225 [Commands used to build an old-style archive])
2226_LT_DECL([], [lock_old_archive_extraction], [0],
2227 [Whether to use a lock for old archive extraction])
2228])# _LT_CMD_OLD_ARCHIVE
2229
2230
2231# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2232# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2233# ----------------------------------------------------------------
2234# Check whether the given compiler option works
2235AC_DEFUN([_LT_COMPILER_OPTION],
2236[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2237m4_require([_LT_DECL_SED])dnl
2238AC_CACHE_CHECK([$1], [$2],
2239 [$2=no
2240 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2241 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2242 lt_compiler_flag="$3"
2243 # Insert the option either (1) after the last *FLAGS variable, or
2244 # (2) before a word containing "conftest.", or (3) at the end.
2245 # Note that $ac_compile itself does not contain backslashes and begins
2246 # with a dollar sign (not a hyphen), so the echo should work correctly.
2247 # The option is referenced via a variable to avoid confusing sed.
2248 lt_compile=`echo "$ac_compile" | $SED \
2249 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2250 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2251 -e 's:$: $lt_compiler_flag:'`
2252 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2253 (eval "$lt_compile" 2>conftest.err)
2254 ac_status=$?
2255 cat conftest.err >&AS_MESSAGE_LOG_FD
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2257 if (exit $ac_status) && test -s "$ac_outfile"; then
2258 # The compiler can only warn and ignore the option if not recognized
2259 # So say no if there are warnings other than the usual output.
2260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2262 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2263 $2=yes
2264 fi
2265 fi
2266 $RM conftest*
2267])
2268
2269if test x"[$]$2" = xyes; then
2270 m4_if([$5], , :, [$5])
2271else
2272 m4_if([$6], , :, [$6])
2273fi
2274])# _LT_COMPILER_OPTION
2275
2276# Old name:
2277AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2278dnl aclocal-1.4 backwards compatibility:
2279dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2280
2281
2282# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2283# [ACTION-SUCCESS], [ACTION-FAILURE])
2284# ----------------------------------------------------
2285# Check whether the given linker option works
2286AC_DEFUN([_LT_LINKER_OPTION],
2287[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2288m4_require([_LT_DECL_SED])dnl
2289AC_CACHE_CHECK([$1], [$2],
2290 [$2=no
2291 save_LDFLAGS="$LDFLAGS"
2292 LDFLAGS="$LDFLAGS $3"
2293 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2295 # The linker can only warn and ignore the option if not recognized
2296 # So say no if there are warnings
2297 if test -s conftest.err; then
2298 # Append any errors to the config.log.
2299 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2300 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2302 if diff conftest.exp conftest.er2 >/dev/null; then
2303 $2=yes
2304 fi
2305 else
2306 $2=yes
2307 fi
2308 fi
2309 $RM -r conftest*
2310 LDFLAGS="$save_LDFLAGS"
2311])
2312
2313if test x"[$]$2" = xyes; then
2314 m4_if([$4], , :, [$4])
2315else
2316 m4_if([$5], , :, [$5])
2317fi
2318])# _LT_LINKER_OPTION
2319
2320# Old name:
2321AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2322dnl aclocal-1.4 backwards compatibility:
2323dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2324
2325
2326# LT_CMD_MAX_LEN
2327#---------------
2328AC_DEFUN([LT_CMD_MAX_LEN],
2329[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2330# find the maximum length of command line arguments
2331AC_MSG_CHECKING([the maximum length of command line arguments])
2332AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2333 i=0
2334 teststring="ABCD"
2335
2336 case $build_os in
2337 msdosdjgpp*)
2338 # On DJGPP, this test can blow up pretty badly due to problems in libc
2339 # (any single argument exceeding 2000 bytes causes a buffer overrun
2340 # during glob expansion). Even if it were fixed, the result of this
2341 # check would be larger than it should be.
2342 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2343 ;;
2344
2345 gnu*)
2346 # Under GNU Hurd, this test is not required because there is
2347 # no limit to the length of command line arguments.
2348 # Libtool will interpret -1 as no limit whatsoever
2349 lt_cv_sys_max_cmd_len=-1;
2350 ;;
2351
2352 cygwin* | mingw* | cegcc*)
2353 # On Win9x/ME, this test blows up -- it succeeds, but takes
2354 # about 5 minutes as the teststring grows exponentially.
2355 # Worse, since 9x/ME are not pre-emptively multitasking,
2356 # you end up with a "frozen" computer, even though with patience
2357 # the test eventually succeeds (with a max line length of 256k).
2358 # Instead, let's just punt: use the minimum linelength reported by
2359 # all of the supported platforms: 8192 (on NT/2K/XP).
2360 lt_cv_sys_max_cmd_len=8192;
2361 ;;
2362
2363 mint*)
2364 # On MiNT this can take a long time and run out of memory.
2365 lt_cv_sys_max_cmd_len=8192;
2366 ;;
2367
2368 amigaos*)
2369 # On AmigaOS with pdksh, this test takes hours, literally.
2370 # So we just punt and use a minimum line length of 8192.
2371 lt_cv_sys_max_cmd_len=8192;
2372 ;;
2373
2374 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2375 # This has been around since 386BSD, at least. Likely further.
2376 if test -x /sbin/sysctl; then
2377 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2378 elif test -x /usr/sbin/sysctl; then
2379 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2380 else
2381 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2382 fi
2383 # And add a safety zone
2384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2386 ;;
2387
2388 interix*)
2389 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2390 lt_cv_sys_max_cmd_len=196608
2391 ;;
2392
2393 os2*)
2394 # The test takes a long time on OS/2.
2395 lt_cv_sys_max_cmd_len=8192
2396 ;;
2397
2398 osf*)
2399 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2400 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2401 # nice to cause kernel panics so lets avoid the loop below.
2402 # First set a reasonable default.
2403 lt_cv_sys_max_cmd_len=16384
2404 #
2405 if test -x /sbin/sysconfig; then
2406 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2407 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2408 esac
2409 fi
2410 ;;
2411 sco3.2v5*)
2412 lt_cv_sys_max_cmd_len=102400
2413 ;;
2414 sysv5* | sco5v6* | sysv4.2uw2*)
2415 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2416 if test -n "$kargmax"; then
2417 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2418 else
2419 lt_cv_sys_max_cmd_len=32768
2420 fi
2421 ;;
2422 *)
2423 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2424 if test -n "$lt_cv_sys_max_cmd_len"; then
2425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2426 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2427 else
2428 # Make teststring a little bigger before we do anything with it.
2429 # a 1K string should be a reasonable start.
2430 for i in 1 2 3 4 5 6 7 8 ; do
2431 teststring=$teststring$teststring
2432 done
2433 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2434 # If test is not a shell built-in, we'll probably end up computing a
2435 # maximum length that is only half of the actual maximum length, but
2436 # we can't tell.
2437 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2438 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2439 test $i != 17 # 1/2 MB should be enough
2440 do
2441 i=`expr $i + 1`
2442 teststring=$teststring$teststring
2443 done
2444 # Only check the string length outside the loop.
2445 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2446 teststring=
2447 # Add a significant safety factor because C++ compilers can tack on
2448 # massive amounts of additional arguments before passing them to the
2449 # linker. It appears as though 1/2 is a usable value.
2450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2451 fi
2452 ;;
2453 esac
2454])
2455if test -n $lt_cv_sys_max_cmd_len ; then
2456 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2457else
2458 AC_MSG_RESULT(none)
2459fi
2460max_cmd_len=$lt_cv_sys_max_cmd_len
2461_LT_DECL([], [max_cmd_len], [0],
2462 [What is the maximum length of a command?])
2463])# LT_CMD_MAX_LEN
2464
2465# Old name:
2466AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2467dnl aclocal-1.4 backwards compatibility:
2468dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2469
2470
2471# _LT_HEADER_DLFCN
2472# ----------------
2473m4_defun([_LT_HEADER_DLFCN],
2474[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2475])# _LT_HEADER_DLFCN
2476
2477
2478# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2479# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2480# ----------------------------------------------------------------
2481m4_defun([_LT_TRY_DLOPEN_SELF],
2482[m4_require([_LT_HEADER_DLFCN])dnl
2483if test "$cross_compiling" = yes; then :
2484 [$4]
2485else
2486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2487 lt_status=$lt_dlunknown
2488 cat > conftest.$ac_ext <<_LT_EOF
2489[#line $LINENO "configure"
2490#include "confdefs.h"
2491
2492#if HAVE_DLFCN_H
2493#include <dlfcn.h>
2494#endif
2495
2496#include <stdio.h>
2497
2498#ifdef RTLD_GLOBAL
2499# define LT_DLGLOBAL RTLD_GLOBAL
2500#else
2501# ifdef DL_GLOBAL
2502# define LT_DLGLOBAL DL_GLOBAL
2503# else
2504# define LT_DLGLOBAL 0
2505# endif
2506#endif
2507
2508/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2509 find out it does not work in some platform. */
2510#ifndef LT_DLLAZY_OR_NOW
2511# ifdef RTLD_LAZY
2512# define LT_DLLAZY_OR_NOW RTLD_LAZY
2513# else
2514# ifdef DL_LAZY
2515# define LT_DLLAZY_OR_NOW DL_LAZY
2516# else
2517# ifdef RTLD_NOW
2518# define LT_DLLAZY_OR_NOW RTLD_NOW
2519# else
2520# ifdef DL_NOW
2521# define LT_DLLAZY_OR_NOW DL_NOW
2522# else
2523# define LT_DLLAZY_OR_NOW 0
2524# endif
2525# endif
2526# endif
2527# endif
2528#endif
2529
2530/* When -fvisbility=hidden is used, assume the code has been annotated
2531 correspondingly for the symbols needed. */
2532#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2533int fnord () __attribute__((visibility("default")));
2534#endif
2535
2536int fnord () { return 42; }
2537int main ()
2538{
2539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2540 int status = $lt_dlunknown;
2541
2542 if (self)
2543 {
2544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2545 else
2546 {
2547 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2548 else puts (dlerror ());
2549 }
2550 /* dlclose (self); */
2551 }
2552 else
2553 puts (dlerror ());
2554
2555 return status;
2556}]
2557_LT_EOF
2558 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2559 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2560 lt_status=$?
2561 case x$lt_status in
2562 x$lt_dlno_uscore) $1 ;;
2563 x$lt_dlneed_uscore) $2 ;;
2564 x$lt_dlunknown|x*) $3 ;;
2565 esac
2566 else :
2567 # compilation failed
2568 $3
2569 fi
2570fi
2571rm -fr conftest*
2572])# _LT_TRY_DLOPEN_SELF
2573
2574
2575# LT_SYS_DLOPEN_SELF
2576# ------------------
2577AC_DEFUN([LT_SYS_DLOPEN_SELF],
2578[m4_require([_LT_HEADER_DLFCN])dnl
2579if test "x$enable_dlopen" != xyes; then
2580 enable_dlopen=unknown
2581 enable_dlopen_self=unknown
2582 enable_dlopen_self_static=unknown
2583else
2584 lt_cv_dlopen=no
2585 lt_cv_dlopen_libs=
2586
2587 case $host_os in
2588 beos*)
2589 lt_cv_dlopen="load_add_on"
2590 lt_cv_dlopen_libs=
2591 lt_cv_dlopen_self=yes
2592 ;;
2593
2594 mingw* | pw32* | cegcc*)
2595 lt_cv_dlopen="LoadLibrary"
2596 lt_cv_dlopen_libs=
2597 ;;
2598
2599 cygwin*)
2600 lt_cv_dlopen="dlopen"
2601 lt_cv_dlopen_libs=
2602 ;;
2603
2604 darwin*)
2605 # if libdl is installed we need to link against it
2606 AC_CHECK_LIB([dl], [dlopen],
2607 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2608 lt_cv_dlopen="dyld"
2609 lt_cv_dlopen_libs=
2610 lt_cv_dlopen_self=yes
2611 ])
2612 ;;
2613
2614 *)
2615 AC_CHECK_FUNC([shl_load],
2616 [lt_cv_dlopen="shl_load"],
2617 [AC_CHECK_LIB([dld], [shl_load],
2618 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2619 [AC_CHECK_FUNC([dlopen],
2620 [lt_cv_dlopen="dlopen"],
2621 [AC_CHECK_LIB([dl], [dlopen],
2622 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2623 [AC_CHECK_LIB([svld], [dlopen],
2624 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2625 [AC_CHECK_LIB([dld], [dld_link],
2626 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2627 ])
2628 ])
2629 ])
2630 ])
2631 ])
2632 ;;
2633 esac
2634
2635 if test "x$lt_cv_dlopen" != xno; then
2636 enable_dlopen=yes
2637 else
2638 enable_dlopen=no
2639 fi
2640
2641 case $lt_cv_dlopen in
2642 dlopen)
2643 save_CPPFLAGS="$CPPFLAGS"
2644 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2645
2646 save_LDFLAGS="$LDFLAGS"
2647 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2648
2649 save_LIBS="$LIBS"
2650 LIBS="$lt_cv_dlopen_libs $LIBS"
2651
2652 AC_CACHE_CHECK([whether a program can dlopen itself],
2653 lt_cv_dlopen_self, [dnl
2654 _LT_TRY_DLOPEN_SELF(
2655 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2656 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2657 ])
2658
2659 if test "x$lt_cv_dlopen_self" = xyes; then
2660 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2661 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2662 lt_cv_dlopen_self_static, [dnl
2663 _LT_TRY_DLOPEN_SELF(
2664 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2665 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2666 ])
2667 fi
2668
2669 CPPFLAGS="$save_CPPFLAGS"
2670 LDFLAGS="$save_LDFLAGS"
2671 LIBS="$save_LIBS"
2672 ;;
2673 esac
2674
2675 case $lt_cv_dlopen_self in
2676 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2677 *) enable_dlopen_self=unknown ;;
2678 esac
2679
2680 case $lt_cv_dlopen_self_static in
2681 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2682 *) enable_dlopen_self_static=unknown ;;
2683 esac
2684fi
2685_LT_DECL([dlopen_support], [enable_dlopen], [0],
2686 [Whether dlopen is supported])
2687_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2688 [Whether dlopen of programs is supported])
2689_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2690 [Whether dlopen of statically linked programs is supported])
2691])# LT_SYS_DLOPEN_SELF
2692
2693# Old name:
2694AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2695dnl aclocal-1.4 backwards compatibility:
2696dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2697
2698
2699# _LT_COMPILER_C_O([TAGNAME])
2700# ---------------------------
2701# Check to see if options -c and -o are simultaneously supported by compiler.
2702# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2703m4_defun([_LT_COMPILER_C_O],
2704[m4_require([_LT_DECL_SED])dnl
2705m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2706m4_require([_LT_TAG_COMPILER])dnl
2707AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2708 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2709 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2710 $RM -r conftest 2>/dev/null
2711 mkdir conftest
2712 cd conftest
2713 mkdir out
2714 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2715
2716 lt_compiler_flag="-o out/conftest2.$ac_objext"
2717 # Insert the option either (1) after the last *FLAGS variable, or
2718 # (2) before a word containing "conftest.", or (3) at the end.
2719 # Note that $ac_compile itself does not contain backslashes and begins
2720 # with a dollar sign (not a hyphen), so the echo should work correctly.
2721 lt_compile=`echo "$ac_compile" | $SED \
2722 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2723 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2724 -e 's:$: $lt_compiler_flag:'`
2725 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2726 (eval "$lt_compile" 2>out/conftest.err)
2727 ac_status=$?
2728 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2730 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2731 then
2732 # The compiler can only warn and ignore the option if not recognized
2733 # So say no if there are warnings
2734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2735 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2736 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2737 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2738 fi
2739 fi
2740 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2741 $RM conftest*
2742 # SGI C++ compiler will create directory out/ii_files/ for
2743 # template instantiation
2744 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2745 $RM out/* && rmdir out
2746 cd ..
2747 $RM -r conftest
2748 $RM conftest*
2749])
2750_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2751 [Does compiler simultaneously support -c and -o options?])
2752])# _LT_COMPILER_C_O
2753
2754
2755# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2756# ----------------------------------
2757# Check to see if we can do hard links to lock some files if needed
2758m4_defun([_LT_COMPILER_FILE_LOCKS],
2759[m4_require([_LT_ENABLE_LOCK])dnl
2760m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2761_LT_COMPILER_C_O([$1])
2762
2763hard_links="nottested"
2764if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2765 # do not overwrite the value of need_locks provided by the user
2766 AC_MSG_CHECKING([if we can lock with hard links])
2767 hard_links=yes
2768 $RM conftest*
2769 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2770 touch conftest.a
2771 ln conftest.a conftest.b 2>&5 || hard_links=no
2772 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2773 AC_MSG_RESULT([$hard_links])
2774 if test "$hard_links" = no; then
2775 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2776 need_locks=warn
2777 fi
2778else
2779 need_locks=no
2780fi
2781_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2782])# _LT_COMPILER_FILE_LOCKS
2783
2784
2785# _LT_CHECK_OBJDIR
2786# ----------------
2787m4_defun([_LT_CHECK_OBJDIR],
2788[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2789[rm -f .libs 2>/dev/null
2790mkdir .libs 2>/dev/null
2791if test -d .libs; then
2792 lt_cv_objdir=.libs
2793else
2794 # MS-DOS does not allow filenames that begin with a dot.
2795 lt_cv_objdir=_libs
2796fi
2797rmdir .libs 2>/dev/null])
2798objdir=$lt_cv_objdir
2799_LT_DECL([], [objdir], [0],
2800 [The name of the directory that contains temporary libtool files])dnl
2801m4_pattern_allow([LT_OBJDIR])dnl
2802AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2803 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2804])# _LT_CHECK_OBJDIR
2805
2806
2807# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2808# --------------------------------------
2809# Check hardcoding attributes.
2810m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2811[AC_MSG_CHECKING([how to hardcode library paths into programs])
2812_LT_TAGVAR(hardcode_action, $1)=
2813if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2814 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2815 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2816
2817 # We can hardcode non-existent directories.
2818 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2819 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2820 # have to relink, otherwise we might link with an installed library
2821 # when we should be linking with a yet-to-be-installed one
2822 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2823 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2824 # Linking always hardcodes the temporary library directory.
2825 _LT_TAGVAR(hardcode_action, $1)=relink
2826 else
2827 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2828 _LT_TAGVAR(hardcode_action, $1)=immediate
2829 fi
2830else
2831 # We cannot hardcode anything, or else we can only hardcode existing
2832 # directories.
2833 _LT_TAGVAR(hardcode_action, $1)=unsupported
2834fi
2835AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2836
2837if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2838 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2839 # Fast installation is not supported
2840 enable_fast_install=no
2841elif test "$shlibpath_overrides_runpath" = yes ||
2842 test "$enable_shared" = no; then
2843 # Fast installation is not necessary
2844 enable_fast_install=needless
2845fi
2846_LT_TAGDECL([], [hardcode_action], [0],
2847 [How to hardcode a shared library path into an executable])
2848])# _LT_LINKER_HARDCODE_LIBPATH
2849
2850
2851# _LT_CMD_STRIPLIB
2852# ----------------
2853m4_defun([_LT_CMD_STRIPLIB],
2854[m4_require([_LT_DECL_EGREP])
2855striplib=
2856old_striplib=
2857AC_MSG_CHECKING([whether stripping libraries is possible])
2858if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2859 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2860 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2861 AC_MSG_RESULT([yes])
2862else
2863# FIXME - insert some real tests, host_os isn't really good enough
2864 case $host_os in
2865 darwin*)
2866 if test -n "$STRIP" ; then
2867 striplib="$STRIP -x"
2868 old_striplib="$STRIP -S"
2869 AC_MSG_RESULT([yes])
2870 else
2871 AC_MSG_RESULT([no])
2872 fi
2873 ;;
2874 *)
2875 AC_MSG_RESULT([no])
2876 ;;
2877 esac
2878fi
2879_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2880_LT_DECL([], [striplib], [1])
2881])# _LT_CMD_STRIPLIB
2882
2883
2884# _LT_SYS_DYNAMIC_LINKER([TAG])
2885# -----------------------------
2886# PORTME Fill in your ld.so characteristics
2887m4_defun([_LT_SYS_DYNAMIC_LINKER],
2888[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2889m4_require([_LT_DECL_EGREP])dnl
2890m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2891m4_require([_LT_DECL_OBJDUMP])dnl
2892m4_require([_LT_DECL_SED])dnl
2893m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2894AC_MSG_CHECKING([dynamic linker characteristics])
2895m4_if([$1],
2896 [], [
2897if test "$GCC" = yes; then
2898 case $host_os in
2899 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2900 *) lt_awk_arg="/^libraries:/" ;;
2901 esac
2902 case $host_os in
2903 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2904 *) lt_sed_strip_eq="s,=/,/,g" ;;
2905 esac
2906 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2907 case $lt_search_path_spec in
2908 *\;*)
2909 # if the path contains ";" then we assume it to be the separator
2910 # otherwise default to the standard path separator (i.e. ":") - it is
2911 # assumed that no part of a normal pathname contains ";" but that should
2912 # okay in the real world where ";" in dirpaths is itself problematic.
2913 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2914 ;;
2915 *)
2916 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2917 ;;
2918 esac
2919 # Ok, now we have the path, separated by spaces, we can step through it
2920 # and add multilib dir if necessary.
2921 lt_tmp_lt_search_path_spec=
2922 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2923 for lt_sys_path in $lt_search_path_spec; do
2924 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2925 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2926 else
2927 test -d "$lt_sys_path" && \
2928 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2929 fi
2930 done
2931 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2932BEGIN {RS=" "; FS="/|\n";} {
2933 lt_foo="";
2934 lt_count=0;
2935 for (lt_i = NF; lt_i > 0; lt_i--) {
2936 if ($lt_i != "" && $lt_i != ".") {
2937 if ($lt_i == "..") {
2938 lt_count++;
2939 } else {
2940 if (lt_count == 0) {
2941 lt_foo="/" $lt_i lt_foo;
2942 } else {
2943 lt_count--;
2944 }
2945 }
2946 }
2947 }
2948 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2949 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2950}'`
2951 # AWK program above erroneously prepends '/' to C:/dos/paths
2952 # for these hosts.
2953 case $host_os in
2954 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2955 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2956 esac
2957 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2958else
2959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2960fi])
2961library_names_spec=
2962libname_spec='lib$name'
2963soname_spec=
2964shrext_cmds=".so"
2965postinstall_cmds=
2966postuninstall_cmds=
2967finish_cmds=
2968finish_eval=
2969shlibpath_var=
2970shlibpath_overrides_runpath=unknown
2971version_type=none
2972dynamic_linker="$host_os ld.so"
2973sys_lib_dlsearch_path_spec="/lib /usr/lib"
2974need_lib_prefix=unknown
2975hardcode_into_libs=no
2976
2977# when you set need_version to no, make sure it does not cause -set_version
2978# flags to be left without arguments
2979need_version=unknown
2980
2981case $host_os in
2982aix3*)
2983 version_type=linux # correct to gnu/linux during the next big refactor
2984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2985 shlibpath_var=LIBPATH
2986
2987 # AIX 3 has no versioning support, so we append a major version to the name.
2988 soname_spec='${libname}${release}${shared_ext}$major'
2989 ;;
2990
2991aix[[4-9]]*)
2992 version_type=linux # correct to gnu/linux during the next big refactor
2993 need_lib_prefix=no
2994 need_version=no
2995 hardcode_into_libs=yes
2996 if test "$host_cpu" = ia64; then
2997 # AIX 5 supports IA64
2998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2999 shlibpath_var=LD_LIBRARY_PATH
3000 else
3001 # With GCC up to 2.95.x, collect2 would create an import file
3002 # for dependence libraries. The import file would start with
3003 # the line `#! .'. This would cause the generated library to
3004 # depend on `.', always an invalid library. This was fixed in
3005 # development snapshots of GCC prior to 3.0.
3006 case $host_os in
3007 aix4 | aix4.[[01]] | aix4.[[01]].*)
3008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3009 echo ' yes '
3010 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3011 :
3012 else
3013 can_build_shared=no
3014 fi
3015 ;;
3016 esac
3017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3018 # soname into executable. Probably we can add versioning support to
3019 # collect2, so additional links can be useful in future.
3020 if test "$aix_use_runtimelinking" = yes; then
3021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3022 # instead of lib<name>.a to let people know that these are not
3023 # typical AIX shared libraries.
3024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3025 else
3026 # We preserve .a as extension for shared libraries through AIX4.2
3027 # and later when we are not doing run time linking.
3028 library_names_spec='${libname}${release}.a $libname.a'
3029 soname_spec='${libname}${release}${shared_ext}$major'
3030 fi
3031 shlibpath_var=LIBPATH
3032 fi
3033 ;;
3034
3035amigaos*)
3036 case $host_cpu in
3037 powerpc)
3038 # Since July 2007 AmigaOS4 officially supports .so libraries.
3039 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3041 ;;
3042 m68k)
3043 library_names_spec='$libname.ixlibrary $libname.a'
3044 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3045 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'
3046 ;;
3047 esac
3048 ;;
3049
3050beos*)
3051 library_names_spec='${libname}${shared_ext}'
3052 dynamic_linker="$host_os ld.so"
3053 shlibpath_var=LIBRARY_PATH
3054 ;;
3055
3056bsdi[[45]]*)
3057 version_type=linux # correct to gnu/linux during the next big refactor
3058 need_version=no
3059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3060 soname_spec='${libname}${release}${shared_ext}$major'
3061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3062 shlibpath_var=LD_LIBRARY_PATH
3063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3065 # the default ld.so.conf also contains /usr/contrib/lib and
3066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3067 # libtool to hard-code these into programs
3068 ;;
3069
3070cygwin* | mingw* | pw32* | cegcc*)
3071 version_type=windows
3072 shrext_cmds=".dll"
3073 need_version=no
3074 need_lib_prefix=no
3075
3076 case $GCC,$cc_basename in
3077 yes,*)
3078 # gcc
3079 library_names_spec='$libname.dll.a'
3080 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3081 postinstall_cmds='base_file=`basename \${file}`~
3082 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3083 dldir=$destdir/`dirname \$dlpath`~
3084 test -d \$dldir || mkdir -p \$dldir~
3085 $install_prog $dir/$dlname \$dldir/$dlname~
3086 chmod a+x \$dldir/$dlname~
3087 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3088 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3089 fi'
3090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3091 dlpath=$dir/\$dldll~
3092 $RM \$dlpath'
3093 shlibpath_overrides_runpath=yes
3094
3095 case $host_os in
3096 cygwin*)
3097 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3098 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3099m4_if([$1], [],[
3100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3101 ;;
3102 mingw* | cegcc*)
3103 # MinGW DLLs use traditional 'lib' prefix
3104 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3105 ;;
3106 pw32*)
3107 # pw32 DLLs use 'pw' prefix rather than 'lib'
3108 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3109 ;;
3110 esac
3111 dynamic_linker='Win32 ld.exe'
3112 ;;
3113
3114 *,cl*)
3115 # Native MSVC
3116 libname_spec='$name'
3117 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3118 library_names_spec='${libname}.dll.lib'
3119
3120 case $build_os in
3121 mingw*)
3122 sys_lib_search_path_spec=
3123 lt_save_ifs=$IFS
3124 IFS=';'
3125 for lt_path in $LIB
3126 do
3127 IFS=$lt_save_ifs
3128 # Let DOS variable expansion print the short 8.3 style file name.
3129 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3130 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3131 done
3132 IFS=$lt_save_ifs
3133 # Convert to MSYS style.
3134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3135 ;;
3136 cygwin*)
3137 # Convert to unix form, then to dos form, then back to unix form
3138 # but this time dos style (no spaces!) so that the unix form looks
3139 # like /cygdrive/c/PROGRA~1:/cygdr...
3140 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3141 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3142 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3143 ;;
3144 *)
3145 sys_lib_search_path_spec="$LIB"
3146 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3147 # It is most probably a Windows format PATH.
3148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3149 else
3150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3151 fi
3152 # FIXME: find the short name or the path components, as spaces are
3153 # common. (e.g. "Program Files" -> "PROGRA~1")
3154 ;;
3155 esac
3156
3157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3158 postinstall_cmds='base_file=`basename \${file}`~
3159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3160 dldir=$destdir/`dirname \$dlpath`~
3161 test -d \$dldir || mkdir -p \$dldir~
3162 $install_prog $dir/$dlname \$dldir/$dlname'
3163 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3164 dlpath=$dir/\$dldll~
3165 $RM \$dlpath'
3166 shlibpath_overrides_runpath=yes
3167 dynamic_linker='Win32 link.exe'
3168 ;;
3169
3170 *)
3171 # Assume MSVC wrapper
3172 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3173 dynamic_linker='Win32 ld.exe'
3174 ;;
3175 esac
3176 # FIXME: first we should search . and the directory the executable is in
3177 shlibpath_var=PATH
3178 ;;
3179
3180darwin* | rhapsody*)
3181 dynamic_linker="$host_os dyld"
3182 version_type=darwin
3183 need_lib_prefix=no
3184 need_version=no
3185 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3186 soname_spec='${libname}${release}${major}$shared_ext'
3187 shlibpath_overrides_runpath=yes
3188 shlibpath_var=DYLD_LIBRARY_PATH
3189 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3190m4_if([$1], [],[
3191 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3193 ;;
3194
3195dgux*)
3196 version_type=linux # correct to gnu/linux during the next big refactor
3197 need_lib_prefix=no
3198 need_version=no
3199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3200 soname_spec='${libname}${release}${shared_ext}$major'
3201 shlibpath_var=LD_LIBRARY_PATH
3202 ;;
3203
3204freebsd* | dragonfly*)
3205 # DragonFly does not have aout. When/if they implement a new
3206 # versioning mechanism, adjust this.
3207 if test -x /usr/bin/objformat; then
3208 objformat=`/usr/bin/objformat`
3209 else
3210 case $host_os in
3211 freebsd[[23]].*) objformat=aout ;;
3212 *) objformat=elf ;;
3213 esac
3214 fi
3215 version_type=freebsd-$objformat
3216 case $version_type in
3217 freebsd-elf*)
3218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3219 need_version=no
3220 need_lib_prefix=no
3221 ;;
3222 freebsd-*)
3223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3224 need_version=yes
3225 ;;
3226 esac
3227 shlibpath_var=LD_LIBRARY_PATH
3228 case $host_os in
3229 freebsd2.*)
3230 shlibpath_overrides_runpath=yes
3231 ;;
3232 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3233 shlibpath_overrides_runpath=yes
3234 hardcode_into_libs=yes
3235 ;;
3236 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3237 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3238 shlibpath_overrides_runpath=no
3239 hardcode_into_libs=yes
3240 ;;
3241 *) # from 4.6 on, and DragonFly
3242 shlibpath_overrides_runpath=yes
3243 hardcode_into_libs=yes
3244 ;;
3245 esac
3246 ;;
3247
3248gnu*)
3249 version_type=linux # correct to gnu/linux during the next big refactor
3250 need_lib_prefix=no
3251 need_version=no
3252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3253 soname_spec='${libname}${release}${shared_ext}$major'
3254 shlibpath_var=LD_LIBRARY_PATH
3255 shlibpath_overrides_runpath=no
3256 hardcode_into_libs=yes
3257 ;;
3258
3259haiku*)
3260 version_type=linux # correct to gnu/linux during the next big refactor
3261 need_lib_prefix=no
3262 need_version=no
3263 dynamic_linker="$host_os runtime_loader"
3264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3265 soname_spec='${libname}${release}${shared_ext}$major'
3266 shlibpath_var=LIBRARY_PATH
3267 shlibpath_overrides_runpath=yes
3268 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3269 hardcode_into_libs=yes
3270 ;;
3271
3272hpux9* | hpux10* | hpux11*)
3273 # Give a soname corresponding to the major version so that dld.sl refuses to
3274 # link against other versions.
3275 version_type=sunos
3276 need_lib_prefix=no
3277 need_version=no
3278 case $host_cpu in
3279 ia64*)
3280 shrext_cmds='.so'
3281 hardcode_into_libs=yes
3282 dynamic_linker="$host_os dld.so"
3283 shlibpath_var=LD_LIBRARY_PATH
3284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3286 soname_spec='${libname}${release}${shared_ext}$major'
3287 if test "X$HPUX_IA64_MODE" = X32; then
3288 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3289 else
3290 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3291 fi
3292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3293 ;;
3294 hppa*64*)
3295 shrext_cmds='.sl'
3296 hardcode_into_libs=yes
3297 dynamic_linker="$host_os dld.sl"
3298 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3301 soname_spec='${libname}${release}${shared_ext}$major'
3302 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3304 ;;
3305 *)
3306 shrext_cmds='.sl'
3307 dynamic_linker="$host_os dld.sl"
3308 shlibpath_var=SHLIB_PATH
3309 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3311 soname_spec='${libname}${release}${shared_ext}$major'
3312 ;;
3313 esac
3314 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3315 postinstall_cmds='chmod 555 $lib'
3316 # or fails outright, so override atomically:
3317 install_override_mode=555
3318 ;;
3319
3320interix[[3-9]]*)
3321 version_type=linux # correct to gnu/linux during the next big refactor
3322 need_lib_prefix=no
3323 need_version=no
3324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3325 soname_spec='${libname}${release}${shared_ext}$major'
3326 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3327 shlibpath_var=LD_LIBRARY_PATH
3328 shlibpath_overrides_runpath=no
3329 hardcode_into_libs=yes
3330 ;;
3331
3332irix5* | irix6* | nonstopux*)
3333 case $host_os in
3334 nonstopux*) version_type=nonstopux ;;
3335 *)
3336 if test "$lt_cv_prog_gnu_ld" = yes; then
3337 version_type=linux # correct to gnu/linux during the next big refactor
3338 else
3339 version_type=irix
3340 fi ;;
3341 esac
3342 need_lib_prefix=no
3343 need_version=no
3344 soname_spec='${libname}${release}${shared_ext}$major'
3345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3346 case $host_os in
3347 irix5* | nonstopux*)
3348 libsuff= shlibsuff=
3349 ;;
3350 *)
3351 case $LD in # libtool.m4 will add one of these switches to LD
3352 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3353 libsuff= shlibsuff= libmagic=32-bit;;
3354 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3355 libsuff=32 shlibsuff=N32 libmagic=N32;;
3356 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3357 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3358 *) libsuff= shlibsuff= libmagic=never-match;;
3359 esac
3360 ;;
3361 esac
3362 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3363 shlibpath_overrides_runpath=no
3364 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3365 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3366 hardcode_into_libs=yes
3367 ;;
3368
3369# No shared lib support for Linux oldld, aout, or coff.
3370linux*oldld* | linux*aout* | linux*coff*)
3371 dynamic_linker=no
3372 ;;
3373
3374# This must be glibc/ELF.
3375linux* | k*bsd*-gnu | kopensolaris*-gnu)
3376 version_type=linux # correct to gnu/linux during the next big refactor
3377 need_lib_prefix=no
3378 need_version=no
3379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3380 soname_spec='${libname}${release}${shared_ext}$major'
3381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3382 shlibpath_var=LD_LIBRARY_PATH
3383 shlibpath_overrides_runpath=no
3384
3385 # Some binutils ld are patched to set DT_RUNPATH
3386 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3387 [lt_cv_shlibpath_overrides_runpath=no
3388 save_LDFLAGS=$LDFLAGS
3389 save_libdir=$libdir
3390 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3391 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3392 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3393 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3394 [lt_cv_shlibpath_overrides_runpath=yes])])
3395 LDFLAGS=$save_LDFLAGS
3396 libdir=$save_libdir
3397 ])
3398 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3399
3400 # This implies no fast_install, which is unacceptable.
3401 # Some rework will be needed to allow for fast_install
3402 # before this can be enabled.
3403 hardcode_into_libs=yes
3404
3405 # Append ld.so.conf contents to the search path
3406 if test -f /etc/ld.so.conf; then
3407 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' ' '`
3408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3409 fi
3410
3411 # We used to test for /lib/ld.so.1 and disable shared libraries on
3412 # powerpc, because MkLinux only supported shared libraries with the
3413 # GNU dynamic linker. Since this was broken with cross compilers,
3414 # most powerpc-linux boxes support dynamic linking these days and
3415 # people can always --disable-shared, the test was removed, and we
3416 # assume the GNU/Linux dynamic linker is in use.
3417 dynamic_linker='GNU/Linux ld.so'
3418 ;;
3419
3420netbsd*)
3421 version_type=sunos
3422 need_lib_prefix=no
3423 need_version=no
3424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3427 dynamic_linker='NetBSD (a.out) ld.so'
3428 else
3429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3430 soname_spec='${libname}${release}${shared_ext}$major'
3431 dynamic_linker='NetBSD ld.elf_so'
3432 fi
3433 shlibpath_var=LD_LIBRARY_PATH
3434 shlibpath_overrides_runpath=yes
3435 hardcode_into_libs=yes
3436 ;;
3437
3438newsos6)
3439 version_type=linux # correct to gnu/linux during the next big refactor
3440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3441 shlibpath_var=LD_LIBRARY_PATH
3442 shlibpath_overrides_runpath=yes
3443 ;;
3444
3445*nto* | *qnx*)
3446 version_type=qnx
3447 need_lib_prefix=no
3448 need_version=no
3449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3450 soname_spec='${libname}${release}${shared_ext}$major'
3451 shlibpath_var=LD_LIBRARY_PATH
3452 shlibpath_overrides_runpath=no
3453 hardcode_into_libs=yes
3454 dynamic_linker='ldqnx.so'
3455 ;;
3456
3457openbsd*)
3458 version_type=sunos
3459 sys_lib_dlsearch_path_spec="/usr/lib"
3460 need_lib_prefix=no
3461 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3462 case $host_os in
3463 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3464 *) need_version=no ;;
3465 esac
3466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3468 shlibpath_var=LD_LIBRARY_PATH
3469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3470 case $host_os in
3471 openbsd2.[[89]] | openbsd2.[[89]].*)
3472 shlibpath_overrides_runpath=no
3473 ;;
3474 *)
3475 shlibpath_overrides_runpath=yes
3476 ;;
3477 esac
3478 else
3479 shlibpath_overrides_runpath=yes
3480 fi
3481 ;;
3482
3483os2*)
3484 libname_spec='$name'
3485 shrext_cmds=".dll"
3486 need_lib_prefix=no
3487 library_names_spec='$libname${shared_ext} $libname.a'
3488 dynamic_linker='OS/2 ld.exe'
3489 shlibpath_var=LIBPATH
3490 ;;
3491
3492osf3* | osf4* | osf5*)
3493 version_type=osf
3494 need_lib_prefix=no
3495 need_version=no
3496 soname_spec='${libname}${release}${shared_ext}$major'
3497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3498 shlibpath_var=LD_LIBRARY_PATH
3499 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3500 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3501 ;;
3502
3503rdos*)
3504 dynamic_linker=no
3505 ;;
3506
3507solaris*)
3508 version_type=linux # correct to gnu/linux during the next big refactor
3509 need_lib_prefix=no
3510 need_version=no
3511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3512 soname_spec='${libname}${release}${shared_ext}$major'
3513 shlibpath_var=LD_LIBRARY_PATH
3514 shlibpath_overrides_runpath=yes
3515 hardcode_into_libs=yes
3516 # ldd complains unless libraries are executable
3517 postinstall_cmds='chmod +x $lib'
3518 ;;
3519
3520sunos4*)
3521 version_type=sunos
3522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3524 shlibpath_var=LD_LIBRARY_PATH
3525 shlibpath_overrides_runpath=yes
3526 if test "$with_gnu_ld" = yes; then
3527 need_lib_prefix=no
3528 fi
3529 need_version=yes
3530 ;;
3531
3532sysv4 | sysv4.3*)
3533 version_type=linux # correct to gnu/linux during the next big refactor
3534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3535 soname_spec='${libname}${release}${shared_ext}$major'
3536 shlibpath_var=LD_LIBRARY_PATH
3537 case $host_vendor in
3538 sni)
3539 shlibpath_overrides_runpath=no
3540 need_lib_prefix=no
3541 runpath_var=LD_RUN_PATH
3542 ;;
3543 siemens)
3544 need_lib_prefix=no
3545 ;;
3546 motorola)
3547 need_lib_prefix=no
3548 need_version=no
3549 shlibpath_overrides_runpath=no
3550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3551 ;;
3552 esac
3553 ;;
3554
3555sysv4*MP*)
3556 if test -d /usr/nec ;then
3557 version_type=linux # correct to gnu/linux during the next big refactor
3558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3559 soname_spec='$libname${shared_ext}.$major'
3560 shlibpath_var=LD_LIBRARY_PATH
3561 fi
3562 ;;
3563
3564sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3565 version_type=freebsd-elf
3566 need_lib_prefix=no
3567 need_version=no
3568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3569 soname_spec='${libname}${release}${shared_ext}$major'
3570 shlibpath_var=LD_LIBRARY_PATH
3571 shlibpath_overrides_runpath=yes
3572 hardcode_into_libs=yes
3573 if test "$with_gnu_ld" = yes; then
3574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3575 else
3576 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3577 case $host_os in
3578 sco3.2v5*)
3579 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3580 ;;
3581 esac
3582 fi
3583 sys_lib_dlsearch_path_spec='/usr/lib'
3584 ;;
3585
3586tpf*)
3587 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3588 version_type=linux # correct to gnu/linux during the next big refactor
3589 need_lib_prefix=no
3590 need_version=no
3591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3592 shlibpath_var=LD_LIBRARY_PATH
3593 shlibpath_overrides_runpath=no
3594 hardcode_into_libs=yes
3595 ;;
3596
3597uts4*)
3598 version_type=linux # correct to gnu/linux during the next big refactor
3599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3600 soname_spec='${libname}${release}${shared_ext}$major'
3601 shlibpath_var=LD_LIBRARY_PATH
3602 ;;
3603
3604*)
3605 dynamic_linker=no
3606 ;;
3607esac
3608AC_MSG_RESULT([$dynamic_linker])
3609test "$dynamic_linker" = no && can_build_shared=no
3610
3611variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3612if test "$GCC" = yes; then
3613 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3614fi
3615
3616if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3617 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3618fi
3619if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3620 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3621fi
3622
3623_LT_DECL([], [variables_saved_for_relink], [1],
3624 [Variables whose values should be saved in libtool wrapper scripts and
3625 restored at link time])
3626_LT_DECL([], [need_lib_prefix], [0],
3627 [Do we need the "lib" prefix for modules?])
3628_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3629_LT_DECL([], [version_type], [0], [Library versioning type])
3630_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3631_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3632_LT_DECL([], [shlibpath_overrides_runpath], [0],
3633 [Is shlibpath searched before the hard-coded library search path?])
3634_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3635_LT_DECL([], [library_names_spec], [1],
3636 [[List of archive names. First name is the real one, the rest are links.
3637 The last name is the one that the linker finds with -lNAME]])
3638_LT_DECL([], [soname_spec], [1],
3639 [[The coded name of the library, if different from the real name]])
3640_LT_DECL([], [install_override_mode], [1],
3641 [Permission mode override for installation of shared libraries])
3642_LT_DECL([], [postinstall_cmds], [2],
3643 [Command to use after installation of a shared archive])
3644_LT_DECL([], [postuninstall_cmds], [2],
3645 [Command to use after uninstallation of a shared archive])
3646_LT_DECL([], [finish_cmds], [2],
3647 [Commands used to finish a libtool library installation in a directory])
3648_LT_DECL([], [finish_eval], [1],
3649 [[As "finish_cmds", except a single script fragment to be evaled but
3650 not shown]])
3651_LT_DECL([], [hardcode_into_libs], [0],
3652 [Whether we should hardcode library paths into libraries])
3653_LT_DECL([], [sys_lib_search_path_spec], [2],
3654 [Compile-time system search path for libraries])
3655_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3656 [Run-time system search path for libraries])
3657])# _LT_SYS_DYNAMIC_LINKER
3658
3659
3660# _LT_PATH_TOOL_PREFIX(TOOL)
3661# --------------------------
3662# find a file program which can recognize shared library
3663AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3664[m4_require([_LT_DECL_EGREP])dnl
3665AC_MSG_CHECKING([for $1])
3666AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3667[case $MAGIC_CMD in
3668[[\\/*] | ?:[\\/]*])
3669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3670 ;;
3671*)
3672 lt_save_MAGIC_CMD="$MAGIC_CMD"
3673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3674dnl $ac_dummy forces splitting on constant user-supplied paths.
3675dnl POSIX.2 word splitting is done only on the output of word expansions,
3676dnl not every word. This closes a longstanding sh security hole.
3677 ac_dummy="m4_if([$2], , $PATH, [$2])"
3678 for ac_dir in $ac_dummy; do
3679 IFS="$lt_save_ifs"
3680 test -z "$ac_dir" && ac_dir=.
3681 if test -f $ac_dir/$1; then
3682 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3683 if test -n "$file_magic_test_file"; then
3684 case $deplibs_check_method in
3685 "file_magic "*)
3686 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3687 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3688 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3689 $EGREP "$file_magic_regex" > /dev/null; then
3690 :
3691 else
3692 cat <<_LT_EOF 1>&2
3693
3694*** Warning: the command libtool uses to detect shared libraries,
3695*** $file_magic_cmd, produces output that libtool cannot recognize.
3696*** The result is that libtool may fail to recognize shared libraries
3697*** as such. This will affect the creation of libtool libraries that
3698*** depend on shared libraries, but programs linked with such libtool
3699*** libraries will work regardless of this problem. Nevertheless, you
3700*** may want to report the problem to your system manager and/or to
3701*** bug-libtool@gnu.org
3702
3703_LT_EOF
3704 fi ;;
3705 esac
3706 fi
3707 break
3708 fi
3709 done
3710 IFS="$lt_save_ifs"
3711 MAGIC_CMD="$lt_save_MAGIC_CMD"
3712 ;;
3713esac])
3714MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3715if test -n "$MAGIC_CMD"; then
3716 AC_MSG_RESULT($MAGIC_CMD)
3717else
3718 AC_MSG_RESULT(no)
3719fi
3720_LT_DECL([], [MAGIC_CMD], [0],
3721 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3722])# _LT_PATH_TOOL_PREFIX
3723
3724# Old name:
3725AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3726dnl aclocal-1.4 backwards compatibility:
3727dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3728
3729
3730# _LT_PATH_MAGIC
3731# --------------
3732# find a file program which can recognize a shared library
3733m4_defun([_LT_PATH_MAGIC],
3734[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3735if test -z "$lt_cv_path_MAGIC_CMD"; then
3736 if test -n "$ac_tool_prefix"; then
3737 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3738 else
3739 MAGIC_CMD=:
3740 fi
3741fi
3742])# _LT_PATH_MAGIC
3743
3744
3745# LT_PATH_LD
3746# ----------
3747# find the pathname to the GNU or non-GNU linker
3748AC_DEFUN([LT_PATH_LD],
3749[AC_REQUIRE([AC_PROG_CC])dnl
3750AC_REQUIRE([AC_CANONICAL_HOST])dnl
3751AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3752m4_require([_LT_DECL_SED])dnl
3753m4_require([_LT_DECL_EGREP])dnl
3754m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3755
3756AC_ARG_WITH([gnu-ld],
3757 [AS_HELP_STRING([--with-gnu-ld],
3758 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3759 [test "$withval" = no || with_gnu_ld=yes],
3760 [with_gnu_ld=no])dnl
3761
3762ac_prog=ld
3763if test "$GCC" = yes; then
3764 # Check if gcc -print-prog-name=ld gives a path.
3765 AC_MSG_CHECKING([for ld used by $CC])
3766 case $host in
3767 *-*-mingw*)
3768 # gcc leaves a trailing carriage return which upsets mingw
3769 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3770 *)
3771 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3772 esac
3773 case $ac_prog in
3774 # Accept absolute paths.
3775 [[\\/]]* | ?:[[\\/]]*)
3776 re_direlt='/[[^/]][[^/]]*/\.\./'
3777 # Canonicalize the pathname of ld
3778 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3779 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3780 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3781 done
3782 test -z "$LD" && LD="$ac_prog"
3783 ;;
3784 "")
3785 # If it fails, then pretend we aren't using GCC.
3786 ac_prog=ld
3787 ;;
3788 *)
3789 # If it is relative, then search for the first ld in PATH.
3790 with_gnu_ld=unknown
3791 ;;
3792 esac
3793elif test "$with_gnu_ld" = yes; then
3794 AC_MSG_CHECKING([for GNU ld])
3795else
3796 AC_MSG_CHECKING([for non-GNU ld])
3797fi
3798AC_CACHE_VAL(lt_cv_path_LD,
3799[if test -z "$LD"; then
3800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3801 for ac_dir in $PATH; do
3802 IFS="$lt_save_ifs"
3803 test -z "$ac_dir" && ac_dir=.
3804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3805 lt_cv_path_LD="$ac_dir/$ac_prog"
3806 # Check to see if the program is GNU ld. I'd rather use --version,
3807 # but apparently some variants of GNU ld only accept -v.
3808 # Break only if it was the GNU/non-GNU ld that we prefer.
3809 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3810 *GNU* | *'with BFD'*)
3811 test "$with_gnu_ld" != no && break
3812 ;;
3813 *)
3814 test "$with_gnu_ld" != yes && break
3815 ;;
3816 esac
3817 fi
3818 done
3819 IFS="$lt_save_ifs"
3820else
3821 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3822fi])
3823LD="$lt_cv_path_LD"
3824if test -n "$LD"; then
3825 AC_MSG_RESULT($LD)
3826else
3827 AC_MSG_RESULT(no)
3828fi
3829test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3830_LT_PATH_LD_GNU
3831AC_SUBST([LD])
3832
3833_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3834])# LT_PATH_LD
3835
3836# Old names:
3837AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3838AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3839dnl aclocal-1.4 backwards compatibility:
3840dnl AC_DEFUN([AM_PROG_LD], [])
3841dnl AC_DEFUN([AC_PROG_LD], [])
3842
3843
3844# _LT_PATH_LD_GNU
3845#- --------------
3846m4_defun([_LT_PATH_LD_GNU],
3847[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3848[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3849case `$LD -v 2>&1 </dev/null` in
3850*GNU* | *'with BFD'*)
3851 lt_cv_prog_gnu_ld=yes
3852 ;;
3853*)
3854 lt_cv_prog_gnu_ld=no
3855 ;;
3856esac])
3857with_gnu_ld=$lt_cv_prog_gnu_ld
3858])# _LT_PATH_LD_GNU
3859
3860
3861# _LT_CMD_RELOAD
3862# --------------
3863# find reload flag for linker
3864# -- PORTME Some linkers may need a different reload flag.
3865m4_defun([_LT_CMD_RELOAD],
3866[AC_CACHE_CHECK([for $LD option to reload object files],
3867 lt_cv_ld_reload_flag,
3868 [lt_cv_ld_reload_flag='-r'])
3869reload_flag=$lt_cv_ld_reload_flag
3870case $reload_flag in
3871"" | " "*) ;;
3872*) reload_flag=" $reload_flag" ;;
3873esac
3874reload_cmds='$LD$reload_flag -o $output$reload_objs'
3875case $host_os in
3876 cygwin* | mingw* | pw32* | cegcc*)
3877 if test "$GCC" != yes; then
3878 reload_cmds=false
3879 fi
3880 ;;
3881 darwin*)
3882 if test "$GCC" = yes; then
3883 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3884 else
3885 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3886 fi
3887 ;;
3888esac
3889_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3890_LT_TAGDECL([], [reload_cmds], [2])dnl
3891])# _LT_CMD_RELOAD
3892
3893
3894# _LT_CHECK_MAGIC_METHOD
3895# ----------------------
3896# how to check for library dependencies
3897# -- PORTME fill in with the dynamic library characteristics
3898m4_defun([_LT_CHECK_MAGIC_METHOD],
3899[m4_require([_LT_DECL_EGREP])
3900m4_require([_LT_DECL_OBJDUMP])
3901AC_CACHE_CHECK([how to recognize dependent libraries],
3902lt_cv_deplibs_check_method,
3903[lt_cv_file_magic_cmd='$MAGIC_CMD'
3904lt_cv_file_magic_test_file=
3905lt_cv_deplibs_check_method='unknown'
3906# Need to set the preceding variable on all platforms that support
3907# interlibrary dependencies.
3908# 'none' -- dependencies not supported.
3909# `unknown' -- same as none, but documents that we really don't know.
3910# 'pass_all' -- all dependencies passed with no checks.
3911# 'test_compile' -- check by making test program.
3912# 'file_magic [[regex]]' -- check by looking for files in library path
3913# which responds to the $file_magic_cmd with a given extended regex.
3914# If you have `file' or equivalent on your system and you're not sure
3915# whether `pass_all' will *always* work, you probably want this one.
3916
3917case $host_os in
3918aix[[4-9]]*)
3919 lt_cv_deplibs_check_method=pass_all
3920 ;;
3921
3922beos*)
3923 lt_cv_deplibs_check_method=pass_all
3924 ;;
3925
3926bsdi[[45]]*)
3927 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3928 lt_cv_file_magic_cmd='/usr/bin/file -L'
3929 lt_cv_file_magic_test_file=/shlib/libc.so
3930 ;;
3931
3932cygwin*)
3933 # func_win32_libid is a shell function defined in ltmain.sh
3934 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3935 lt_cv_file_magic_cmd='func_win32_libid'
3936 ;;
3937
3938mingw* | pw32*)
3939 # Base MSYS/MinGW do not provide the 'file' command needed by
3940 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3941 # unless we find 'file', for example because we are cross-compiling.
3942 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3943 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3945 lt_cv_file_magic_cmd='func_win32_libid'
3946 else
3947 # Keep this pattern in sync with the one in func_win32_libid.
3948 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3949 lt_cv_file_magic_cmd='$OBJDUMP -f'
3950 fi
3951 ;;
3952
3953cegcc*)
3954 # use the weaker test based on 'objdump'. See mingw*.
3955 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3956 lt_cv_file_magic_cmd='$OBJDUMP -f'
3957 ;;
3958
3959darwin* | rhapsody*)
3960 lt_cv_deplibs_check_method=pass_all
3961 ;;
3962
3963freebsd* | dragonfly*)
3964 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3965 case $host_cpu in
3966 i*86 )
3967 # Not sure whether the presence of OpenBSD here was a mistake.
3968 # Let's accept both of them until this is cleared up.
3969 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3970 lt_cv_file_magic_cmd=/usr/bin/file
3971 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3972 ;;
3973 esac
3974 else
3975 lt_cv_deplibs_check_method=pass_all
3976 fi
3977 ;;
3978
3979gnu*)
3980 lt_cv_deplibs_check_method=pass_all
3981 ;;
3982
3983haiku*)
3984 lt_cv_deplibs_check_method=pass_all
3985 ;;
3986
3987hpux10.20* | hpux11*)
3988 lt_cv_file_magic_cmd=/usr/bin/file
3989 case $host_cpu in
3990 ia64*)
3991 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3992 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3993 ;;
3994 hppa*64*)
3995 [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]']
3996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3997 ;;
3998 *)
3999 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
4000 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4001 ;;
4002 esac
4003 ;;
4004
4005interix[[3-9]]*)
4006 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4007 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4008 ;;
4009
4010irix5* | irix6* | nonstopux*)
4011 case $LD in
4012 *-32|*"-32 ") libmagic=32-bit;;
4013 *-n32|*"-n32 ") libmagic=N32;;
4014 *-64|*"-64 ") libmagic=64-bit;;
4015 *) libmagic=never-match;;
4016 esac
4017 lt_cv_deplibs_check_method=pass_all
4018 ;;
4019
4020# This must be glibc/ELF.
4021linux* | k*bsd*-gnu | kopensolaris*-gnu)
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches