Package list libhdate / 51e9472
[svn-upgrade] Integrating new upstream version, libhdate (1.4.9) Baruch Even 14 years ago
29 changed file(s) with 18694 addition(s) and 11580 deletion(s). Raw diff Collapse all Expand all
0 libhdate (1.4.9)
1
2 * Fix endianess bug in big endian machins (/examples/hcal/hcal.c and hdate.c)
3
4 -- Yaacov Zamir <kzamir@wall.co.il> Saturday, 7 April 2007 22:00
5
06 libhdate (1.4.8)
17
28 * Fix help printing bug: Add new line at the end of hdate help text.
0 # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
1
2 # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
35 # This Makefile.in is free software; the Free Software Foundation
46 # gives unlimited permission to copy and/or distribute it,
57 # with or without modifications, as long as this notice is preserved.
911 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1012 # PARTICULAR PURPOSE.
1113
12
13 SHELL = @SHELL@
14 @SET_MAKE@
1415
1516 srcdir = @srcdir@
1617 top_srcdir = @top_srcdir@
1718 VPATH = @srcdir@
18 prefix = @prefix@
19 exec_prefix = @exec_prefix@
20
21 bindir = @bindir@
22 sbindir = @sbindir@
23 libexecdir = @libexecdir@
24 datadir = @datadir@
25 sysconfdir = @sysconfdir@
26 sharedstatedir = @sharedstatedir@
27 localstatedir = @localstatedir@
28 libdir = @libdir@
29 infodir = @infodir@
30 mandir = @mandir@
31 includedir = @includedir@
32 oldincludedir = /usr/include
33
34 DESTDIR =
35
3619 pkgdatadir = $(datadir)/@PACKAGE@
3720 pkglibdir = $(libdir)/@PACKAGE@
3821 pkgincludedir = $(includedir)/@PACKAGE@
39
4022 top_builddir = .
41
42 ACLOCAL = @ACLOCAL@
43 AUTOCONF = @AUTOCONF@
44 AUTOMAKE = @AUTOMAKE@
45 AUTOHEADER = @AUTOHEADER@
46
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
4724 INSTALL = @INSTALL@
48 INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
49 INSTALL_DATA = @INSTALL_DATA@
50 INSTALL_SCRIPT = @INSTALL_SCRIPT@
51 transform = @program_transform_name@
52
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
5330 NORMAL_INSTALL = :
5431 PRE_INSTALL = :
5532 POST_INSTALL = :
5633 NORMAL_UNINSTALL = :
5734 PRE_UNINSTALL = :
5835 POST_UNINSTALL = :
59 host_alias = @host_alias@
36 build_triplet = @build@
6037 host_triplet = @host@
38 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
39 $(srcdir)/Makefile.in $(srcdir)/libhdate.pc.in \
40 $(srcdir)/libhdate.spec.in $(top_srcdir)/configure \
41 $(top_srcdir)/intl/Makefile.in ABOUT-NLS AUTHORS COPYING \
42 ChangeLog INSTALL NEWS TODO compile config.guess config.sub \
43 depcomp install-sh ltmain.sh missing mkinstalldirs
44 subdir = .
45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
46 am__aclocal_m4_deps = $(top_srcdir)/configure.in
47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
48 $(ACLOCAL_M4)
49 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
50 configure.lineno configure.status.lineno
51 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
52 CONFIG_CLEAN_FILES = libhdate.spec libhdate.pc intl/Makefile
53 SOURCES =
54 DIST_SOURCES =
55 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
56 html-recursive info-recursive install-data-recursive \
57 install-exec-recursive install-info-recursive \
58 install-recursive installcheck-recursive installdirs-recursive \
59 pdf-recursive ps-recursive uninstall-info-recursive \
60 uninstall-recursive
61 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
62 am__vpath_adj = case $$p in \
63 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
64 *) f=$$p;; \
65 esac;
66 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
67 am__installdirs = "$(DESTDIR)$(libhdatedocdir)" \
68 "$(DESTDIR)$(pkgconfigdir)"
69 libhdatedocDATA_INSTALL = $(INSTALL_DATA)
70 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
71 DATA = $(libhdatedoc_DATA) $(pkgconfig_DATA)
72 ETAGS = etags
73 CTAGS = ctags
74 DIST_SUBDIRS = $(SUBDIRS)
75 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
76 distdir = $(PACKAGE)-$(VERSION)
77 top_distdir = $(distdir)
78 am__remove_distdir = \
79 { test ! -d $(distdir) \
80 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
81 && rm -fr $(distdir); }; }
82 DIST_ARCHIVES = $(distdir).tar.gz
83 GZIP_ENV = --best
84 distuninstallcheck_listfiles = find . -type f -print
85 distcleancheck_listfiles = find . -type f -print
86 ACLOCAL = @ACLOCAL@
87 ALLOCA = @ALLOCA@
88 AMDEP_FALSE = @AMDEP_FALSE@
89 AMDEP_TRUE = @AMDEP_TRUE@
90 AMTAR = @AMTAR@
6191 AR = @AR@
62 AS = @AS@
92 AUTOCONF = @AUTOCONF@
93 AUTOHEADER = @AUTOHEADER@
94 AUTOMAKE = @AUTOMAKE@
95 AWK = @AWK@
6396 BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
6497 CATOBJEXT = @CATOBJEXT@
6598 CC = @CC@
99 CCDEPMODE = @CCDEPMODE@
66100 CFLAGS = @CFLAGS@
101 CFLAG_VISIBILITY = @CFLAG_VISIBILITY@
102 CPP = @CPP@
103 CPPFLAGS = @CPPFLAGS@
67104 CXX = @CXX@
68105 CXXCPP = @CXXCPP@
106 CXXDEPMODE = @CXXDEPMODE@
107 CXXFLAGS = @CXXFLAGS@
108 CYGPATH_W = @CYGPATH_W@
69109 DATADIRNAME = @DATADIRNAME@
70 DLLTOOL = @DLLTOOL@
110 DEFS = @DEFS@
111 DEPDIR = @DEPDIR@
71112 ECHO = @ECHO@
113 ECHO_C = @ECHO_C@
114 ECHO_N = @ECHO_N@
115 ECHO_T = @ECHO_T@
72116 EGREP = @EGREP@
73117 EXEEXT = @EXEEXT@
74118 F77 = @F77@
75 GCJ = @GCJ@
76 GCJFLAGS = @GCJFLAGS@
119 FFLAGS = @FFLAGS@
77120 GENCAT = @GENCAT@
78121 GLIBC2 = @GLIBC2@
79122 GLIBC21 = @GLIBC21@
80123 GMSGFMT = @GMSGFMT@
124 GMSGFMT_015 = @GMSGFMT_015@
125 GREP = @GREP@
81126 HAVE_ASPRINTF = @HAVE_ASPRINTF@
82 HAVE_LIB = @HAVE_LIB@
83127 HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@
84128 HAVE_SNPRINTF = @HAVE_SNPRINTF@
129 HAVE_VISIBILITY = @HAVE_VISIBILITY@
85130 HAVE_WPRINTF = @HAVE_WPRINTF@
131 INSTALL_DATA = @INSTALL_DATA@
132 INSTALL_PROGRAM = @INSTALL_PROGRAM@
133 INSTALL_SCRIPT = @INSTALL_SCRIPT@
134 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
86135 INSTOBJEXT = @INSTOBJEXT@
87136 INTLBISON = @INTLBISON@
88137 INTLLIBS = @INTLLIBS@
89138 INTLOBJS = @INTLOBJS@
90139 INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
91140 INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
92 LIB = @LIB@
141 LDFLAGS = @LDFLAGS@
93142 LIBICONV = @LIBICONV@
94143 LIBINTL = @LIBINTL@
144 LIBMULTITHREAD = @LIBMULTITHREAD@
145 LIBOBJS = @LIBOBJS@
146 LIBPTH = @LIBPTH@
95147 LIBS = @LIBS@
148 LIBTHREAD = @LIBTHREAD@
96149 LIBTOOL = @LIBTOOL@
97150 LN_S = @LN_S@
98 LTLIB = @LTLIB@
99151 LTLIBICONV = @LTLIBICONV@
100152 LTLIBINTL = @LTLIBINTL@
153 LTLIBMULTITHREAD = @LTLIBMULTITHREAD@
154 LTLIBOBJS = @LTLIBOBJS@
155 LTLIBPTH = @LTLIBPTH@
156 LTLIBTHREAD = @LTLIBTHREAD@
101157 MAINT = @MAINT@
158 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
159 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
102160 MAKEINFO = @MAKEINFO@
103 MKINSTALLDIRS = @MKINSTALLDIRS@
104 OBJDUMP = @OBJDUMP@
161 MSGFMT = @MSGFMT@
162 MSGFMT_015 = @MSGFMT_015@
163 MSGMERGE = @MSGMERGE@
105164 OBJEXT = @OBJEXT@
106165 PACKAGE = @PACKAGE@
166 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
167 PACKAGE_NAME = @PACKAGE_NAME@
168 PACKAGE_STRING = @PACKAGE_STRING@
169 PACKAGE_TARNAME = @PACKAGE_TARNAME@
170 PACKAGE_VERSION = @PACKAGE_VERSION@
171 PATH_SEPARATOR = @PATH_SEPARATOR@
107172 PA_MODULES_PATH = @PA_MODULES_PATH@
108173 PA_VERSION = @PA_VERSION@
109174 PE_CFLAGS = @PE_CFLAGS@
110175 PE_MODULES_PATH = @PE_MODULES_PATH@
111176 PKG_CONFIG = @PKG_CONFIG@
112177 POSUB = @POSUB@
178 PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
113179 PY_CFLAGS = @PY_CFLAGS@
114180 PY_MODULES_PATH = @PY_MODULES_PATH@
115181 PY_VERSION = @PY_VERSION@
116182 RANLIB = @RANLIB@
117 RC = @RC@
183 SET_MAKE = @SET_MAKE@
184 SHELL = @SHELL@
118185 STRIP = @STRIP@
119186 USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
120187 USE_NLS = @USE_NLS@
121188 VERSION = @VERSION@
122189 VERSION_INFO = @VERSION_INFO@
190 WITH_EXAMPLES_FALSE = @WITH_EXAMPLES_FALSE@
191 WITH_EXAMPLES_TRUE = @WITH_EXAMPLES_TRUE@
192 WITH_HCAL_FALSE = @WITH_HCAL_FALSE@
193 WITH_HCAL_TRUE = @WITH_HCAL_TRUE@
194 WITH_PASCAL_FALSE = @WITH_PASCAL_FALSE@
195 WITH_PASCAL_TRUE = @WITH_PASCAL_TRUE@
196 WITH_PERL_FALSE = @WITH_PERL_FALSE@
197 WITH_PERL_TRUE = @WITH_PERL_TRUE@
198 WITH_PYTHON_FALSE = @WITH_PYTHON_FALSE@
199 WITH_PYTHON_TRUE = @WITH_PYTHON_TRUE@
200 WOE32DLL = @WOE32DLL@
201 XGETTEXT = @XGETTEXT@
202 XGETTEXT_015 = @XGETTEXT_015@
203 ac_ct_CC = @ac_ct_CC@
204 ac_ct_CXX = @ac_ct_CXX@
205 ac_ct_F77 = @ac_ct_F77@
206 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
207 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
208 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
209 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
210 am__include = @am__include@
211 am__leading_dot = @am__leading_dot@
212 am__quote = @am__quote@
213 am__tar = @am__tar@
214 am__untar = @am__untar@
215 bindir = @bindir@
216 build = @build@
217 build_alias = @build_alias@
218 build_cpu = @build_cpu@
219 build_os = @build_os@
220 build_vendor = @build_vendor@
221 datadir = @datadir@
222 datarootdir = @datarootdir@
223 docdir = @docdir@
224 dvidir = @dvidir@
225 exec_prefix = @exec_prefix@
123226 have_pascal = @have_pascal@
124227 have_perl = @have_perl@
125228 have_python = @have_python@
126229 have_swig = @have_swig@
127
230 host = @host@
231 host_alias = @host_alias@
232 host_cpu = @host_cpu@
233 host_os = @host_os@
234 host_vendor = @host_vendor@
235 htmldir = @htmldir@
236 includedir = @includedir@
237 infodir = @infodir@
238 install_sh = @install_sh@
239 libdir = @libdir@
240 libexecdir = @libexecdir@
241 localedir = @localedir@
242 localstatedir = @localstatedir@
243 mandir = @mandir@
244 mkdir_p = @mkdir_p@
245 oldincludedir = @oldincludedir@
246 pdfdir = @pdfdir@
247 prefix = @prefix@
248 program_transform_name = @program_transform_name@
249 psdir = @psdir@
250 sbindir = @sbindir@
251 sharedstatedir = @sharedstatedir@
252 sysconfdir = @sysconfdir@
253 target_alias = @target_alias@
128254 SUBDIRS = intl po src examples bindings
129
130255 pkgconfigdir = $(libdir)/pkgconfig
131256 pkgconfig_DATA = libhdate.pc
132
133257 libhdatedocdir = ${prefix}/share/doc/libhdate
134 libhdatedoc_DATA = README hdate_README COPYING AUTHORS ChangeLog INSTALL NEWS TODO USE ABOUT-NLS
135
258 libhdatedoc_DATA = \
259 README\
260 hdate_README\
261 COPYING\
262 AUTHORS\
263 ChangeLog\
264 INSTALL\
265 NEWS\
266 TODO\
267 USE\
268 ABOUT-NLS
136269
137270 EXTRA_DIST = $(libhdatedoc_DATA) libhdate.pc.in libhdate.spec libhdate.spec.in
138 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
139 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
140 CONFIG_CLEAN_FILES = libhdate.spec libhdate.pc
141 DATA = $(libhdatedoc_DATA) $(pkgconfig_DATA)
142
143 DIST_COMMON = README ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL \
144 Makefile.am Makefile.in NEWS TODO aclocal.m4 config.guess config.sub \
145 configure configure.in install-sh libhdate.pc.in libhdate.spec.in \
146 ltmain.sh missing mkinstalldirs
147
148
149 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
150
151 TAR = tar
152 GZIP_ENV = --best
153 all: all-redirect
271 all: all-recursive
272
154273 .SUFFIXES:
155 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
156 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
157
158 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
159 cd $(top_builddir) \
160 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
161
162 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
163 cd $(srcdir) && $(ACLOCAL)
164
165 config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
274 am--refresh:
275 @:
276 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
277 @for dep in $?; do \
278 case '$(am__configure_deps)' in \
279 *$$dep*) \
280 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
281 cd $(srcdir) && $(AUTOMAKE) --gnu \
282 && exit 0; \
283 exit 1;; \
284 esac; \
285 done; \
286 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
287 cd $(top_srcdir) && \
288 $(AUTOMAKE) --gnu Makefile
289 .PRECIOUS: Makefile
290 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
291 @case '$?' in \
292 *config.status*) \
293 echo ' $(SHELL) ./config.status'; \
294 $(SHELL) ./config.status;; \
295 *) \
296 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
297 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
298 esac;
299
300 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
166301 $(SHELL) ./config.status --recheck
167 $(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
302
303 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
168304 cd $(srcdir) && $(AUTOCONF)
169 libhdate.spec: $(top_builddir)/config.status libhdate.spec.in
170 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
171 libhdate.pc: $(top_builddir)/config.status libhdate.pc.in
172 cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
173
305 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
306 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
307 libhdate.spec: $(top_builddir)/config.status $(srcdir)/libhdate.spec.in
308 cd $(top_builddir) && $(SHELL) ./config.status $@
309 libhdate.pc: $(top_builddir)/config.status $(srcdir)/libhdate.pc.in
310 cd $(top_builddir) && $(SHELL) ./config.status $@
311 intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in
312 cd $(top_builddir) && $(SHELL) ./config.status $@
313
314 mostlyclean-libtool:
315 -rm -f *.lo
316
317 clean-libtool:
318 -rm -rf .libs _libs
319
320 distclean-libtool:
321 -rm -f libtool
322 uninstall-info-am:
174323 install-libhdatedocDATA: $(libhdatedoc_DATA)
175324 @$(NORMAL_INSTALL)
176 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir)
325 test -z "$(libhdatedocdir)" || $(mkdir_p) "$(DESTDIR)$(libhdatedocdir)"
177326 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
178 if test -f $(srcdir)/$$p; then \
179 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(libhdatedocdir)/$$p"; \
180 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(libhdatedocdir)/$$p; \
181 else if test -f $$p; then \
182 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libhdatedocdir)/$$p"; \
183 $(INSTALL_DATA) $$p $(DESTDIR)$(libhdatedocdir)/$$p; \
184 fi; fi; \
327 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
328 f=$(am__strip_dir) \
329 echo " $(libhdatedocDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
330 $(libhdatedocDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(libhdatedocdir)/$$f"; \
185331 done
186332
187333 uninstall-libhdatedocDATA:
188334 @$(NORMAL_UNINSTALL)
189 list='$(libhdatedoc_DATA)'; for p in $$list; do \
190 rm -f $(DESTDIR)$(libhdatedocdir)/$$p; \
191 done
192
335 @list='$(libhdatedoc_DATA)'; for p in $$list; do \
336 f=$(am__strip_dir) \
337 echo " rm -f '$(DESTDIR)$(libhdatedocdir)/$$f'"; \
338 rm -f "$(DESTDIR)$(libhdatedocdir)/$$f"; \
339 done
193340 install-pkgconfigDATA: $(pkgconfig_DATA)
194341 @$(NORMAL_INSTALL)
195 $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
342 test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
196343 @list='$(pkgconfig_DATA)'; for p in $$list; do \
197 if test -f $(srcdir)/$$p; then \
198 echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
199 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkgconfigdir)/$$p; \
200 else if test -f $$p; then \
201 echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p"; \
202 $(INSTALL_DATA) $$p $(DESTDIR)$(pkgconfigdir)/$$p; \
203 fi; fi; \
344 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
345 f=$(am__strip_dir) \
346 echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
347 $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
204348 done
205349
206350 uninstall-pkgconfigDATA:
207351 @$(NORMAL_UNINSTALL)
208 list='$(pkgconfig_DATA)'; for p in $$list; do \
209 rm -f $(DESTDIR)$(pkgconfigdir)/$$p; \
352 @list='$(pkgconfig_DATA)'; for p in $$list; do \
353 f=$(am__strip_dir) \
354 echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
355 rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
210356 done
211357
212358 # This directory's subdirectories are mostly independent; you can cd
215361 # (1) if the variable is set in `config.status', edit `config.status'
216362 # (which will cause the Makefiles to be regenerated when you run `make');
217363 # (2) otherwise, pass the desired values on the `make' command line.
218
219 @SET_MAKE@
220
221 all-recursive install-data-recursive install-exec-recursive \
222 installdirs-recursive install-recursive uninstall-recursive \
223 check-recursive installcheck-recursive info-recursive dvi-recursive:
224 @set fnord $(MAKEFLAGS); amf=$$2; \
364 $(RECURSIVE_TARGETS):
365 @failcom='exit 1'; \
366 for f in x $$MAKEFLAGS; do \
367 case $$f in \
368 *=* | --[!k]*);; \
369 *k*) failcom='fail=yes';; \
370 esac; \
371 done; \
225372 dot_seen=no; \
226373 target=`echo $@ | sed s/-recursive//`; \
227374 list='$(SUBDIRS)'; for subdir in $$list; do \
233380 local_target="$$target"; \
234381 fi; \
235382 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
236 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
383 || eval $$failcom; \
237384 done; \
238385 if test "$$dot_seen" = "no"; then \
239386 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
241388
242389 mostlyclean-recursive clean-recursive distclean-recursive \
243390 maintainer-clean-recursive:
244 @set fnord $(MAKEFLAGS); amf=$$2; \
391 @failcom='exit 1'; \
392 for f in x $$MAKEFLAGS; do \
393 case $$f in \
394 *=* | --[!k]*);; \
395 *k*) failcom='fail=yes';; \
396 esac; \
397 done; \
245398 dot_seen=no; \
246 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
247 rev="$$subdir $$rev"; \
248 test "$$subdir" != "." || dot_seen=yes; \
399 case "$@" in \
400 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
401 *) list='$(SUBDIRS)' ;; \
402 esac; \
403 rev=''; for subdir in $$list; do \
404 if test "$$subdir" = "."; then :; else \
405 rev="$$subdir $$rev"; \
406 fi; \
249407 done; \
250 test "$$dot_seen" = "no" && rev=". $$rev"; \
408 rev="$$rev ."; \
251409 target=`echo $@ | sed s/-recursive//`; \
252410 for subdir in $$rev; do \
253411 echo "Making $$target in $$subdir"; \
257415 local_target="$$target"; \
258416 fi; \
259417 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
260 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
418 || eval $$failcom; \
261419 done && test -z "$$fail"
262420 tags-recursive:
263421 list='$(SUBDIRS)'; for subdir in $$list; do \
264422 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
265423 done
266
424 ctags-recursive:
425 list='$(SUBDIRS)'; for subdir in $$list; do \
426 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
427 done
428
429 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
430 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
431 unique=`for i in $$list; do \
432 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
433 done | \
434 $(AWK) ' { files[$$0] = 1; } \
435 END { for (i in files) print i; }'`; \
436 mkid -fID $$unique
267437 tags: TAGS
268438
269 ID: $(HEADERS) $(SOURCES) $(LISP)
270 list='$(SOURCES) $(HEADERS)'; \
271 unique=`for i in $$list; do echo $$i; done | \
272 awk ' { files[$$0] = 1; } \
273 END { for (i in files) print i; }'`; \
274 here=`pwd` && cd $(srcdir) \
275 && mkid -f$$here/ID $$unique $(LISP)
276
277 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
439 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
440 $(TAGS_FILES) $(LISP)
278441 tags=; \
279442 here=`pwd`; \
443 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
444 include_option=--etags-include; \
445 empty_fix=.; \
446 else \
447 include_option=--include; \
448 empty_fix=; \
449 fi; \
280450 list='$(SUBDIRS)'; for subdir in $$list; do \
281 if test "$$subdir" = .; then :; else \
282 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
283 fi; \
451 if test "$$subdir" = .; then :; else \
452 test ! -f $$subdir/TAGS || \
453 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
454 fi; \
284455 done; \
285 list='$(SOURCES) $(HEADERS)'; \
286 unique=`for i in $$list; do echo $$i; done | \
287 awk ' { files[$$0] = 1; } \
456 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
457 unique=`for i in $$list; do \
458 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
459 done | \
460 $(AWK) ' { files[$$0] = 1; } \
288461 END { for (i in files) print i; }'`; \
289 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
290 || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
291
292 mostlyclean-tags:
293
294 clean-tags:
462 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
463 test -n "$$unique" || unique=$$empty_fix; \
464 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
465 $$tags $$unique; \
466 fi
467 ctags: CTAGS
468 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
469 $(TAGS_FILES) $(LISP)
470 tags=; \
471 here=`pwd`; \
472 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
473 unique=`for i in $$list; do \
474 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
475 done | \
476 $(AWK) ' { files[$$0] = 1; } \
477 END { for (i in files) print i; }'`; \
478 test -z "$(CTAGS_ARGS)$$tags$$unique" \
479 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
480 $$tags $$unique
481
482 GTAGS:
483 here=`$(am__cd) $(top_builddir) && pwd` \
484 && cd $(top_srcdir) \
485 && gtags -i $(GTAGS_ARGS) $$here
295486
296487 distclean-tags:
297 -rm -f TAGS ID
298
299 maintainer-clean-tags:
300
301 distdir = $(PACKAGE)-$(VERSION)
302 top_distdir = $(distdir)
488 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
489
490 distdir: $(DISTFILES)
491 $(am__remove_distdir)
492 mkdir $(distdir)
493 $(mkdir_p) $(distdir)/. $(distdir)/intl $(distdir)/po
494 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
495 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
496 list='$(DISTFILES)'; for file in $$list; do \
497 case $$file in \
498 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
499 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
500 esac; \
501 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
502 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
503 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
504 dir="/$$dir"; \
505 $(mkdir_p) "$(distdir)$$dir"; \
506 else \
507 dir=''; \
508 fi; \
509 if test -d $$d/$$file; then \
510 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
511 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
512 fi; \
513 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
514 else \
515 test -f $(distdir)/$$file \
516 || cp -p $$d/$$file $(distdir)/$$file \
517 || exit 1; \
518 fi; \
519 done
520 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
521 if test "$$subdir" = .; then :; else \
522 test -d "$(distdir)/$$subdir" \
523 || $(mkdir_p) "$(distdir)/$$subdir" \
524 || exit 1; \
525 distdir=`$(am__cd) $(distdir) && pwd`; \
526 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
527 (cd $$subdir && \
528 $(MAKE) $(AM_MAKEFLAGS) \
529 top_distdir="$$top_distdir" \
530 distdir="$$distdir/$$subdir" \
531 distdir) \
532 || exit 1; \
533 fi; \
534 done
535 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
536 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
537 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
538 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
539 || chmod -R a+r $(distdir)
540 dist-gzip: distdir
541 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
542 $(am__remove_distdir)
543
544 dist-bzip2: distdir
545 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
546 $(am__remove_distdir)
547
548 dist-tarZ: distdir
549 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
550 $(am__remove_distdir)
551
552 dist-shar: distdir
553 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
554 $(am__remove_distdir)
555
556 dist-zip: distdir
557 -rm -f $(distdir).zip
558 zip -rq $(distdir).zip $(distdir)
559 $(am__remove_distdir)
560
561 dist dist-all: distdir
562 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
563 $(am__remove_distdir)
303564
304565 # This target untars the dist file and tries a VPATH configuration. Then
305566 # it guarantees that the distribution is self-contained by making another
306567 # tarfile.
307568 distcheck: dist
308 -rm -rf $(distdir)
309 GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
310 mkdir $(distdir)/=build
311 mkdir $(distdir)/=inst
312 dc_install_base=`cd $(distdir)/=inst && pwd`; \
313 cd $(distdir)/=build \
314 && ../configure --with-included-gettext --srcdir=.. --prefix=$$dc_install_base \
569 case '$(DIST_ARCHIVES)' in \
570 *.tar.gz*) \
571 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
572 *.tar.bz2*) \
573 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
574 *.tar.Z*) \
575 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
576 *.shar.gz*) \
577 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
578 *.zip*) \
579 unzip $(distdir).zip ;;\
580 esac
581 chmod -R a-w $(distdir); chmod a+w $(distdir)
582 mkdir $(distdir)/_build
583 mkdir $(distdir)/_inst
584 chmod a-w $(distdir)
585 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
586 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
587 && cd $(distdir)/_build \
588 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
589 --with-included-gettext \
590 $(DISTCHECK_CONFIGURE_FLAGS) \
315591 && $(MAKE) $(AM_MAKEFLAGS) \
316592 && $(MAKE) $(AM_MAKEFLAGS) dvi \
317593 && $(MAKE) $(AM_MAKEFLAGS) check \
318594 && $(MAKE) $(AM_MAKEFLAGS) install \
319595 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
320 && $(MAKE) $(AM_MAKEFLAGS) dist
321 -rm -rf $(distdir)
322 @banner="$(distdir).tar.gz is ready for distribution"; \
323 dashes=`echo "$$banner" | sed s/./=/g`; \
324 echo "$$dashes"; \
325 echo "$$banner"; \
326 echo "$$dashes"
327 dist: distdir
328 -chmod -R a+r $(distdir)
329 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
330 -rm -rf $(distdir)
331 dist-all: distdir
332 -chmod -R a+r $(distdir)
333 GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
334 -rm -rf $(distdir)
335 distdir: $(DISTFILES)
336 -rm -rf $(distdir)
337 mkdir $(distdir)
338 -chmod 777 $(distdir)
339 @for file in $(DISTFILES); do \
340 d=$(srcdir); \
341 if test -d $$d/$$file; then \
342 cp -pr $$d/$$file $(distdir)/$$file; \
343 else \
344 test -f $(distdir)/$$file \
345 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
346 || cp -p $$d/$$file $(distdir)/$$file || :; \
347 fi; \
348 done
349 for subdir in $(SUBDIRS); do \
350 if test "$$subdir" = .; then :; else \
351 test -d $(distdir)/$$subdir \
352 || mkdir $(distdir)/$$subdir \
353 || exit 1; \
354 chmod 777 $(distdir)/$$subdir; \
355 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
356 || exit 1; \
357 fi; \
358 done
359 info-am:
360 info: info-recursive
361 dvi-am:
362 dvi: dvi-recursive
596 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
597 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
598 distuninstallcheck \
599 && chmod -R a-w "$$dc_install_base" \
600 && ({ \
601 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
602 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
603 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
604 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
605 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
606 } || { rm -rf "$$dc_destdir"; exit 1; }) \
607 && rm -rf "$$dc_destdir" \
608 && $(MAKE) $(AM_MAKEFLAGS) dist \
609 && rm -rf $(DIST_ARCHIVES) \
610 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
611 $(am__remove_distdir)
612 @(echo "$(distdir) archives ready for distribution: "; \
613 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
614 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
615 distuninstallcheck:
616 @cd $(distuninstallcheck_dir) \
617 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
618 || { echo "ERROR: files left after uninstall:" ; \
619 if test -n "$(DESTDIR)"; then \
620 echo " (check DESTDIR support)"; \
621 fi ; \
622 $(distuninstallcheck_listfiles) ; \
623 exit 1; } >&2
624 distcleancheck: distclean
625 @if test '$(srcdir)' = . ; then \
626 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
627 exit 1 ; \
628 fi
629 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
630 || { echo "ERROR: files left in build directory after distclean:" ; \
631 $(distcleancheck_listfiles) ; \
632 exit 1; } >&2
363633 check-am: all-am
364634 check: check-recursive
365 installcheck-am:
366 installcheck: installcheck-recursive
367 install-exec-am:
635 all-am: Makefile $(DATA)
636 installdirs: installdirs-recursive
637 installdirs-am:
638 for dir in "$(DESTDIR)$(libhdatedocdir)" "$(DESTDIR)$(pkgconfigdir)"; do \
639 test -z "$$dir" || $(mkdir_p) "$$dir"; \
640 done
641 install: install-recursive
368642 install-exec: install-exec-recursive
369
370 install-data-am: install-libhdatedocDATA install-pkgconfigDATA
371643 install-data: install-data-recursive
644 uninstall: uninstall-recursive
372645
373646 install-am: all-am
374647 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
375 install: install-recursive
376 uninstall-am: uninstall-libhdatedocDATA uninstall-pkgconfigDATA
377 uninstall: uninstall-recursive
378 all-am: Makefile $(DATA)
379 all-redirect: all-recursive
648
649 installcheck: installcheck-recursive
380650 install-strip:
381 $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
382 installdirs: installdirs-recursive
383 installdirs-am:
384 $(mkinstalldirs) $(DESTDIR)$(libhdatedocdir) $(DESTDIR)$(pkgconfigdir)
385
386
651 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
652 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
653 `test -z '$(STRIP)' || \
654 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
387655 mostlyclean-generic:
388656
389657 clean-generic:
390658
391659 distclean-generic:
392 -rm -f Makefile $(CONFIG_CLEAN_FILES)
393 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
660 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
394661
395662 maintainer-clean-generic:
396 mostlyclean-am: mostlyclean-tags mostlyclean-generic
663 @echo "This command is intended for maintainers to use"
664 @echo "it deletes files that may require special tools to rebuild."
665 clean: clean-recursive
666
667 clean-am: clean-generic clean-libtool mostlyclean-am
668
669 distclean: distclean-recursive
670 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
671 -rm -f Makefile
672 distclean-am: clean-am distclean-generic distclean-libtool \
673 distclean-tags
674
675 dvi: dvi-recursive
676
677 dvi-am:
678
679 html: html-recursive
680
681 info: info-recursive
682
683 info-am:
684
685 install-data-am: install-libhdatedocDATA install-pkgconfigDATA
686
687 install-exec-am:
688
689 install-info: install-info-recursive
690
691 install-man:
692
693 installcheck-am:
694
695 maintainer-clean: maintainer-clean-recursive
696 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
697 -rm -rf $(top_srcdir)/autom4te.cache
698 -rm -f Makefile
699 maintainer-clean-am: distclean-am maintainer-clean-generic
397700
398701 mostlyclean: mostlyclean-recursive
399702
400 clean-am: clean-tags clean-generic mostlyclean-am
401
402 clean: clean-recursive
403
404 distclean-am: distclean-tags distclean-generic clean-am
405 -rm -f libtool
406
407 distclean: distclean-recursive
408 -rm -f config.status
409
410 maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
411 distclean-am
412 @echo "This command is intended for maintainers to use;"
413 @echo "it deletes files that may require special tools to rebuild."
414
415 maintainer-clean: maintainer-clean-recursive
416 -rm -f config.status
417
418 .PHONY: uninstall-libhdatedocDATA install-libhdatedocDATA \
419 uninstall-pkgconfigDATA install-pkgconfigDATA install-data-recursive \
420 uninstall-data-recursive install-exec-recursive \
421 uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
422 all-recursive check-recursive installcheck-recursive info-recursive \
423 dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
424 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
425 distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
426 dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
427 install-exec install-data-am install-data install-am install \
428 uninstall-am uninstall all-redirect all-am all installdirs-am \
429 installdirs mostlyclean-generic distclean-generic clean-generic \
430 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
431
703 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
704
705 pdf: pdf-recursive
706
707 pdf-am:
708
709 ps: ps-recursive
710
711 ps-am:
712
713 uninstall-am: uninstall-info-am uninstall-libhdatedocDATA \
714 uninstall-pkgconfigDATA
715
716 uninstall-info: uninstall-info-recursive
717
718 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
719 check-am clean clean-generic clean-libtool clean-recursive \
720 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
721 dist-shar dist-tarZ dist-zip distcheck distclean \
722 distclean-generic distclean-libtool distclean-recursive \
723 distclean-tags distcleancheck distdir distuninstallcheck dvi \
724 dvi-am html html-am info info-am install install-am \
725 install-data install-data-am install-exec install-exec-am \
726 install-info install-info-am install-libhdatedocDATA \
727 install-man install-pkgconfigDATA install-strip installcheck \
728 installcheck-am installdirs installdirs-am maintainer-clean \
729 maintainer-clean-generic maintainer-clean-recursive \
730 mostlyclean mostlyclean-generic mostlyclean-libtool \
731 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
732 uninstall uninstall-am uninstall-info-am \
733 uninstall-libhdatedocDATA uninstall-pkgconfigDATA
432734
433735 # Tell versions [3.59,3.63) of GNU make to not export all variables.
434736 # Otherwise a system limit (for SysV at least) may be exceeded.
0 dnl aclocal.m4 generated automatically by aclocal 1.4-p6
1
2 dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # codeset.m4 serial 2 (gettext-0.16)
14 dnl Copyright (C) 2000-2002, 2006 Free Software Foundation, Inc.
315 dnl This file is free software; the Free Software Foundation
416 dnl gives unlimited permission to copy and/or distribute it,
517 dnl with or without modifications, as long as this notice is preserved.
618
7 dnl This program is distributed in the hope that it will be useful,
8 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
9 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10 dnl PARTICULAR PURPOSE.
11
12 # lib-prefix.m4 serial 4 (gettext-0.14.2)
13 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
19 dnl From Bruno Haible.
20
21 AC_DEFUN([AM_LANGINFO_CODESET],
22 [
23 AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset,
24 [AC_TRY_LINK([#include <langinfo.h>],
25 [char* cs = nl_langinfo(CODESET); return !cs;],
26 am_cv_langinfo_codeset=yes,
27 am_cv_langinfo_codeset=no)
28 ])
29 if test $am_cv_langinfo_codeset = yes; then
30 AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
31 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
32 fi
33 ])
34
35 # gettext.m4 serial 59 (gettext-0.16.1)
36 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
1437 dnl This file is free software; the Free Software Foundation
1538 dnl gives unlimited permission to copy and/or distribute it,
1639 dnl with or without modifications, as long as this notice is preserved.
17
18 dnl From Bruno Haible.
19
20 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
21 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
22 dnl require excessive bracketing.
23 ifdef([AC_HELP_STRING],
24 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
25 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
26
27 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
28 dnl to access previously installed libraries. The basic assumption is that
29 dnl a user will want packages to use other packages he previously installed
30 dnl with the same --prefix option.
31 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
32 dnl libraries, but is otherwise very convenient.
33 AC_DEFUN([AC_LIB_PREFIX],
40 dnl
41 dnl This file can can be used in projects which are not available under
42 dnl the GNU General Public License or the GNU Library General Public
43 dnl License but which still want to provide support for the GNU gettext
44 dnl functionality.
45 dnl Please note that the actual code of the GNU gettext library is covered
46 dnl by the GNU Library General Public License, and the rest of the GNU
47 dnl gettext package package is covered by the GNU General Public License.
48 dnl They are *not* in the public domain.
49
50 dnl Authors:
51 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
52 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
53
54 dnl Macro to add for using GNU gettext.
55
56 dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
57 dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
58 dnl default (if it is not specified or empty) is 'no-libtool'.
59 dnl INTLSYMBOL should be 'external' for packages with no intl directory,
60 dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
61 dnl If INTLSYMBOL is 'use-libtool', then a libtool library
62 dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
63 dnl depending on --{enable,disable}-{shared,static} and on the presence of
64 dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
65 dnl $(top_builddir)/intl/libintl.a will be created.
66 dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
67 dnl implementations (in libc or libintl) without the ngettext() function
68 dnl will be ignored. If NEEDSYMBOL is specified and is
69 dnl 'need-formatstring-macros', then GNU gettext implementations that don't
70 dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
71 dnl INTLDIR is used to find the intl libraries. If empty,
72 dnl the value `$(top_builddir)/intl/' is used.
73 dnl
74 dnl The result of the configuration is one of three cases:
75 dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
76 dnl and used.
77 dnl Catalog format: GNU --> install in $(datadir)
78 dnl Catalog extension: .mo after installation, .gmo in source tree
79 dnl 2) GNU gettext has been found in the system's C library.
80 dnl Catalog format: GNU --> install in $(datadir)
81 dnl Catalog extension: .mo after installation, .gmo in source tree
82 dnl 3) No internationalization, always use English msgid.
83 dnl Catalog format: none
84 dnl Catalog extension: none
85 dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
86 dnl The use of .gmo is historical (it was needed to avoid overwriting the
87 dnl GNU format catalogs when building on a platform with an X/Open gettext),
88 dnl but we keep it in order not to force irrelevant filename changes on the
89 dnl maintainers.
90 dnl
91 AC_DEFUN([AM_GNU_GETTEXT],
3492 [
35 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
36 AC_REQUIRE([AC_PROG_CC])
37 AC_REQUIRE([AC_CANONICAL_HOST])
93 dnl Argument checking.
94 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
95 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
96 ])])])])])
97 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
98 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
99 ])])])])
100 define([gt_included_intl],
101 ifelse([$1], [external],
102 ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
103 [yes]))
104 define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
105 gt_NEEDS_INIT
106 AM_GNU_GETTEXT_NEED([$2])
107
108 AC_REQUIRE([AM_PO_SUBDIRS])dnl
109 ifelse(gt_included_intl, yes, [
110 AC_REQUIRE([AM_INTL_SUBDIR])dnl
111 ])
112
113 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
38114 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
39 dnl By default, look in $includedir and $libdir.
40 use_additional=yes
41 AC_LIB_WITH_FINAL_PREFIX([
42 eval additional_includedir=\"$includedir\"
43 eval additional_libdir=\"$libdir\"
115 AC_REQUIRE([AC_LIB_RPATH])
116
117 dnl Sometimes libintl requires libiconv, so first search for libiconv.
118 dnl Ideally we would do this search only after the
119 dnl if test "$USE_NLS" = "yes"; then
120 dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
121 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
122 dnl the configure script would need to contain the same shell code
123 dnl again, outside any 'if'. There are two solutions:
124 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
125 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
126 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
127 dnl documented, we avoid it.
128 ifelse(gt_included_intl, yes, , [
129 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
44130 ])
45 AC_LIB_ARG_WITH([lib-prefix],
46 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
47 --without-lib-prefix don't search for libraries in includedir and libdir],
48 [
49 if test "X$withval" = "Xno"; then
50 use_additional=no
51 else
52 if test "X$withval" = "X"; then
53 AC_LIB_WITH_FINAL_PREFIX([
54 eval additional_includedir=\"$includedir\"
55 eval additional_libdir=\"$libdir\"
56 ])
57 else
58 additional_includedir="$withval/include"
59 additional_libdir="$withval/lib"
131
132 dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
133 gt_INTL_MACOSX
134
135 dnl Set USE_NLS.
136 AC_REQUIRE([AM_NLS])
137
138 ifelse(gt_included_intl, yes, [
139 BUILD_INCLUDED_LIBINTL=no
140 USE_INCLUDED_LIBINTL=no
141 ])
142 LIBINTL=
143 LTLIBINTL=
144 POSUB=
145
146 dnl Add a version number to the cache macros.
147 case " $gt_needs " in
148 *" need-formatstring-macros "*) gt_api_version=3 ;;
149 *" need-ngettext "*) gt_api_version=2 ;;
150 *) gt_api_version=1 ;;
151 esac
152 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
153 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
154
155 dnl If we use NLS figure out what method
156 if test "$USE_NLS" = "yes"; then
157 gt_use_preinstalled_gnugettext=no
158 ifelse(gt_included_intl, yes, [
159 AC_MSG_CHECKING([whether included gettext is requested])
160 AC_ARG_WITH(included-gettext,
161 [ --with-included-gettext use the GNU gettext library included here],
162 nls_cv_force_use_gnu_gettext=$withval,
163 nls_cv_force_use_gnu_gettext=no)
164 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
165
166 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
167 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
168 ])
169 dnl User does not insist on using GNU NLS library. Figure out what
170 dnl to use. If GNU gettext is available we use this. Else we have
171 dnl to fall back to GNU NLS library.
172
173 if test $gt_api_version -ge 3; then
174 gt_revision_test_code='
175 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
176 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
177 #endif
178 changequote(,)dnl
179 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
180 changequote([,])dnl
181 '
182 else
183 gt_revision_test_code=
184 fi
185 if test $gt_api_version -ge 2; then
186 gt_expression_test_code=' + * ngettext ("", "", 0)'
187 else
188 gt_expression_test_code=
189 fi
190
191 AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
192 [AC_TRY_LINK([#include <libintl.h>
193 $gt_revision_test_code
194 extern int _nl_msg_cat_cntr;
195 extern int *_nl_domain_bindings;],
196 [bindtextdomain ("", "");
197 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
198 [eval "$gt_func_gnugettext_libc=yes"],
199 [eval "$gt_func_gnugettext_libc=no"])])
200
201 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
202 dnl Sometimes libintl requires libiconv, so first search for libiconv.
203 ifelse(gt_included_intl, yes, , [
204 AM_ICONV_LINK
205 ])
206 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
207 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
208 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
209 dnl even if libiconv doesn't exist.
210 AC_LIB_LINKFLAGS_BODY([intl])
211 AC_CACHE_CHECK([for GNU gettext in libintl],
212 [$gt_func_gnugettext_libintl],
213 [gt_save_CPPFLAGS="$CPPFLAGS"
214 CPPFLAGS="$CPPFLAGS $INCINTL"
215 gt_save_LIBS="$LIBS"
216 LIBS="$LIBS $LIBINTL"
217 dnl Now see whether libintl exists and does not depend on libiconv.
218 AC_TRY_LINK([#include <libintl.h>
219 $gt_revision_test_code
220 extern int _nl_msg_cat_cntr;
221 extern
222 #ifdef __cplusplus
223 "C"
224 #endif
225 const char *_nl_expand_alias (const char *);],
226 [bindtextdomain ("", "");
227 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
228 [eval "$gt_func_gnugettext_libintl=yes"],
229 [eval "$gt_func_gnugettext_libintl=no"])
230 dnl Now see whether libintl exists and depends on libiconv.
231 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
232 LIBS="$LIBS $LIBICONV"
233 AC_TRY_LINK([#include <libintl.h>
234 $gt_revision_test_code
235 extern int _nl_msg_cat_cntr;
236 extern
237 #ifdef __cplusplus
238 "C"
239 #endif
240 const char *_nl_expand_alias (const char *);],
241 [bindtextdomain ("", "");
242 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
243 [LIBINTL="$LIBINTL $LIBICONV"
244 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
245 eval "$gt_func_gnugettext_libintl=yes"
246 ])
247 fi
248 CPPFLAGS="$gt_save_CPPFLAGS"
249 LIBS="$gt_save_LIBS"])
250 fi
251
252 dnl If an already present or preinstalled GNU gettext() is found,
253 dnl use it. But if this macro is used in GNU gettext, and GNU
254 dnl gettext is already preinstalled in libintl, we update this
255 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
256 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
257 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
258 && test "$PACKAGE" != gettext-runtime \
259 && test "$PACKAGE" != gettext-tools; }; then
260 gt_use_preinstalled_gnugettext=yes
261 else
262 dnl Reset the values set by searching for libintl.
263 LIBINTL=
264 LTLIBINTL=
265 INCINTL=
266 fi
267
268 ifelse(gt_included_intl, yes, [
269 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
270 dnl GNU gettext is not found in the C library.
271 dnl Fall back on included GNU gettext library.
272 nls_cv_use_gnu_gettext=yes
273 fi
274 fi
275
276 if test "$nls_cv_use_gnu_gettext" = "yes"; then
277 dnl Mark actions used to generate GNU NLS library.
278 BUILD_INCLUDED_LIBINTL=yes
279 USE_INCLUDED_LIBINTL=yes
280 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
281 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
282 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
283 fi
284
285 CATOBJEXT=
286 if test "$gt_use_preinstalled_gnugettext" = "yes" \
287 || test "$nls_cv_use_gnu_gettext" = "yes"; then
288 dnl Mark actions to use GNU gettext tools.
289 CATOBJEXT=.gmo
290 fi
291 ])
292
293 if test -n "$INTL_MACOSX_LIBS"; then
294 if test "$gt_use_preinstalled_gnugettext" = "yes" \
295 || test "$nls_cv_use_gnu_gettext" = "yes"; then
296 dnl Some extra flags are needed during linking.
297 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
298 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
60299 fi
61300 fi
301
302 if test "$gt_use_preinstalled_gnugettext" = "yes" \
303 || test "$nls_cv_use_gnu_gettext" = "yes"; then
304 AC_DEFINE(ENABLE_NLS, 1,
305 [Define to 1 if translation of program messages to the user's native language
306 is requested.])
307 else
308 USE_NLS=no
309 fi
310 fi
311
312 AC_MSG_CHECKING([whether to use NLS])
313 AC_MSG_RESULT([$USE_NLS])
314 if test "$USE_NLS" = "yes"; then
315 AC_MSG_CHECKING([where the gettext function comes from])
316 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
317 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
318 gt_source="external libintl"
319 else
320 gt_source="libc"
321 fi
322 else
323 gt_source="included intl directory"
324 fi
325 AC_MSG_RESULT([$gt_source])
326 fi
327
328 if test "$USE_NLS" = "yes"; then
329
330 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
331 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
332 AC_MSG_CHECKING([how to link with libintl])
333 AC_MSG_RESULT([$LIBINTL])
334 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
335 fi
336
337 dnl For backward compatibility. Some packages may be using this.
338 AC_DEFINE(HAVE_GETTEXT, 1,
339 [Define if the GNU gettext() function is already present or preinstalled.])
340 AC_DEFINE(HAVE_DCGETTEXT, 1,
341 [Define if the GNU dcgettext() function is already present or preinstalled.])
342 fi
343
344 dnl We need to process the po/ directory.
345 POSUB=po
346 fi
347
348 ifelse(gt_included_intl, yes, [
349 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
350 dnl to 'yes' because some of the testsuite requires it.
351 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
352 BUILD_INCLUDED_LIBINTL=yes
353 fi
354
355 dnl Make all variables we use known to autoconf.
356 AC_SUBST(BUILD_INCLUDED_LIBINTL)
357 AC_SUBST(USE_INCLUDED_LIBINTL)
358 AC_SUBST(CATOBJEXT)
359
360 dnl For backward compatibility. Some configure.ins may be using this.
361 nls_cv_header_intl=
362 nls_cv_header_libgt=
363
364 dnl For backward compatibility. Some Makefiles may be using this.
365 DATADIRNAME=share
366 AC_SUBST(DATADIRNAME)
367
368 dnl For backward compatibility. Some Makefiles may be using this.
369 INSTOBJEXT=.mo
370 AC_SUBST(INSTOBJEXT)
371
372 dnl For backward compatibility. Some Makefiles may be using this.
373 GENCAT=gencat
374 AC_SUBST(GENCAT)
375
376 dnl For backward compatibility. Some Makefiles may be using this.
377 INTLOBJS=
378 if test "$USE_INCLUDED_LIBINTL" = yes; then
379 INTLOBJS="\$(GETTOBJS)"
380 fi
381 AC_SUBST(INTLOBJS)
382
383 dnl Enable libtool support if the surrounding package wishes it.
384 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
385 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
386 ])
387
388 dnl For backward compatibility. Some Makefiles may be using this.
389 INTLLIBS="$LIBINTL"
390 AC_SUBST(INTLLIBS)
391
392 dnl Make all documented variables known to autoconf.
393 AC_SUBST(LIBINTL)
394 AC_SUBST(LTLIBINTL)
395 AC_SUBST(POSUB)
62396 ])
63 if test $use_additional = yes; then
64 dnl Potentially add $additional_includedir to $CPPFLAGS.
65 dnl But don't add it
66 dnl 1. if it's the standard /usr/include,
67 dnl 2. if it's already present in $CPPFLAGS,
68 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
69 dnl 4. if it doesn't exist as a directory.
70 if test "X$additional_includedir" != "X/usr/include"; then
71 haveit=
72 for x in $CPPFLAGS; do
73 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
74 if test "X$x" = "X-I$additional_includedir"; then
75 haveit=yes
76 break
77 fi
397
398
399 dnl Checks for special options needed on MacOS X.
400 dnl Defines INTL_MACOSX_LIBS.
401 AC_DEFUN([gt_INTL_MACOSX],
402 [
403 dnl Check for API introduced in MacOS X 10.2.
404 AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
405 gt_cv_func_CFPreferencesCopyAppValue,
406 [gt_save_LIBS="$LIBS"
407 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
408 AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
409 [CFPreferencesCopyAppValue(NULL, NULL)],
410 [gt_cv_func_CFPreferencesCopyAppValue=yes],
411 [gt_cv_func_CFPreferencesCopyAppValue=no])
412 LIBS="$gt_save_LIBS"])
413 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
414 AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
415 [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
416 fi
417 dnl Check for API introduced in MacOS X 10.3.
418 AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
419 [gt_save_LIBS="$LIBS"
420 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
421 AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
422 [gt_cv_func_CFLocaleCopyCurrent=yes],
423 [gt_cv_func_CFLocaleCopyCurrent=no])
424 LIBS="$gt_save_LIBS"])
425 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
426 AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
427 [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
428 fi
429 INTL_MACOSX_LIBS=
430 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
431 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
432 fi
433 AC_SUBST([INTL_MACOSX_LIBS])
434 ])
435
436
437 dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
438 m4_define([gt_NEEDS_INIT],
439 [
440 m4_divert_text([DEFAULTS], [gt_needs=])
441 m4_define([gt_NEEDS_INIT], [])
442 ])
443
444
445 dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
446 AC_DEFUN([AM_GNU_GETTEXT_NEED],
447 [
448 m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
449 ])
450
451
452 dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
453 AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
454
455 # glibc2.m4 serial 1
456 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
457 dnl This file is free software; the Free Software Foundation
458 dnl gives unlimited permission to copy and/or distribute it,
459 dnl with or without modifications, as long as this notice is preserved.
460
461 # Test for the GNU C Library, version 2.0 or newer.
462 # From Bruno Haible.
463
464 AC_DEFUN([gt_GLIBC2],
465 [
466 AC_CACHE_CHECK(whether we are using the GNU C Library 2 or newer,
467 ac_cv_gnu_library_2,
468 [AC_EGREP_CPP([Lucky GNU user],
469 [
470 #include <features.h>
471 #ifdef __GNU_LIBRARY__
472 #if (__GLIBC__ >= 2)
473 Lucky GNU user
474 #endif
475 #endif
476 ],
477 ac_cv_gnu_library_2=yes,
478 ac_cv_gnu_library_2=no)
479 ]
480 )
481 AC_SUBST(GLIBC2)
482 GLIBC2="$ac_cv_gnu_library_2"
483 ]
484 )
485
486 # glibc21.m4 serial 3
487 dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc.
488 dnl This file is free software; the Free Software Foundation
489 dnl gives unlimited permission to copy and/or distribute it,
490 dnl with or without modifications, as long as this notice is preserved.
491
492 # Test for the GNU C Library, version 2.1 or newer.
493 # From Bruno Haible.
494
495 AC_DEFUN([gl_GLIBC21],
496 [
497 AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
498 ac_cv_gnu_library_2_1,
499 [AC_EGREP_CPP([Lucky GNU user],
500 [
501 #include <features.h>
502 #ifdef __GNU_LIBRARY__
503 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
504 Lucky GNU user
505 #endif
506 #endif
507 ],
508 ac_cv_gnu_library_2_1=yes,
509 ac_cv_gnu_library_2_1=no)
510 ]
511 )
512 AC_SUBST(GLIBC21)
513 GLIBC21="$ac_cv_gnu_library_2_1"
514 ]
515 )
516
517 # iconv.m4 serial AM4 (gettext-0.11.3)
518 dnl Copyright (C) 2000-2002 Free Software Foundation, Inc.
519 dnl This file is free software; the Free Software Foundation
520 dnl gives unlimited permission to copy and/or distribute it,
521 dnl with or without modifications, as long as this notice is preserved.
522
523 dnl From Bruno Haible.
524
525 AC_DEFUN([AM_ICONV_LINKFLAGS_BODY],
526 [
527 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
528 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
529 AC_REQUIRE([AC_LIB_RPATH])
530
531 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
532 dnl accordingly.
533 AC_LIB_LINKFLAGS_BODY([iconv])
534 ])
535
536 AC_DEFUN([AM_ICONV_LINK],
537 [
538 dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and
539 dnl those with the standalone portable GNU libiconv installed).
540
541 dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV
542 dnl accordingly.
543 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
544
545 dnl Add $INCICONV to CPPFLAGS before performing the following checks,
546 dnl because if the user has installed libiconv and not disabled its use
547 dnl via --without-libiconv-prefix, he wants to use it. The first
548 dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed.
549 am_save_CPPFLAGS="$CPPFLAGS"
550 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV])
551
552 AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [
553 am_cv_func_iconv="no, consider installing GNU libiconv"
554 am_cv_lib_iconv=no
555 AC_TRY_LINK([#include <stdlib.h>
556 #include <iconv.h>],
557 [iconv_t cd = iconv_open("","");
558 iconv(cd,NULL,NULL,NULL,NULL);
559 iconv_close(cd);],
560 am_cv_func_iconv=yes)
561 if test "$am_cv_func_iconv" != yes; then
562 am_save_LIBS="$LIBS"
563 LIBS="$LIBS $LIBICONV"
564 AC_TRY_LINK([#include <stdlib.h>
565 #include <iconv.h>],
566 [iconv_t cd = iconv_open("","");
567 iconv(cd,NULL,NULL,NULL,NULL);
568 iconv_close(cd);],
569 am_cv_lib_iconv=yes
570 am_cv_func_iconv=yes)
571 LIBS="$am_save_LIBS"
572 fi
573 ])
574 if test "$am_cv_func_iconv" = yes; then
575 AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.])
576 fi
577 if test "$am_cv_lib_iconv" = yes; then
578 AC_MSG_CHECKING([how to link with libiconv])
579 AC_MSG_RESULT([$LIBICONV])
580 else
581 dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV
582 dnl either.
583 CPPFLAGS="$am_save_CPPFLAGS"
584 LIBICONV=
585 LTLIBICONV=
586 fi
587 AC_SUBST(LIBICONV)
588 AC_SUBST(LTLIBICONV)
589 ])
590
591 AC_DEFUN([AM_ICONV],
592 [
593 AM_ICONV_LINK
594 if test "$am_cv_func_iconv" = yes; then
595 AC_MSG_CHECKING([for iconv declaration])
596 AC_CACHE_VAL(am_cv_proto_iconv, [
597 AC_TRY_COMPILE([
598 #include <stdlib.h>
599 #include <iconv.h>
600 extern
601 #ifdef __cplusplus
602 "C"
603 #endif
604 #if defined(__STDC__) || defined(__cplusplus)
605 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
606 #else
607 size_t iconv();
608 #endif
609 ], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const")
610 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"])
611 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
612 AC_MSG_RESULT([$]{ac_t:-
613 }[$]am_cv_proto_iconv)
614 AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1,
615 [Define as const if the declaration of iconv() needs const.])
616 fi
617 ])
618
619 # intdiv0.m4 serial 1 (gettext-0.11.3)
620 dnl Copyright (C) 2002 Free Software Foundation, Inc.
621 dnl This file is free software; the Free Software Foundation
622 dnl gives unlimited permission to copy and/or distribute it,
623 dnl with or without modifications, as long as this notice is preserved.
624
625 dnl From Bruno Haible.
626
627 AC_DEFUN([gt_INTDIV0],
628 [
629 AC_REQUIRE([AC_PROG_CC])dnl
630 AC_REQUIRE([AC_CANONICAL_HOST])dnl
631
632 AC_CACHE_CHECK([whether integer division by zero raises SIGFPE],
633 gt_cv_int_divbyzero_sigfpe,
634 [
635 AC_TRY_RUN([
636 #include <stdlib.h>
637 #include <signal.h>
638
639 static void
640 #ifdef __cplusplus
641 sigfpe_handler (int sig)
642 #else
643 sigfpe_handler (sig) int sig;
644 #endif
645 {
646 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
647 exit (sig != SIGFPE);
648 }
649
650 int x = 1;
651 int y = 0;
652 int z;
653 int nan;
654
655 int main ()
656 {
657 signal (SIGFPE, sigfpe_handler);
658 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
659 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
660 signal (SIGTRAP, sigfpe_handler);
661 #endif
662 /* Linux/SPARC yields signal SIGILL. */
663 #if defined (__sparc__) && defined (__linux__)
664 signal (SIGILL, sigfpe_handler);
665 #endif
666
667 z = x / y;
668 nan = y / y;
669 exit (1);
670 }
671 ], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no,
672 [
673 # Guess based on the CPU.
674 case "$host_cpu" in
675 alpha* | i[34567]86 | m68k | s390*)
676 gt_cv_int_divbyzero_sigfpe="guessing yes";;
677 *)
678 gt_cv_int_divbyzero_sigfpe="guessing no";;
679 esac
680 ])
681 ])
682 case "$gt_cv_int_divbyzero_sigfpe" in
683 *yes) value=1;;
684 *) value=0;;
685 esac
686 AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value,
687 [Define if integer division by zero raises signal SIGFPE.])
688 ])
689
690 # intl.m4 serial 3 (gettext-0.16)
691 dnl Copyright (C) 1995-2006 Free Software Foundation, Inc.
692 dnl This file is free software; the Free Software Foundation
693 dnl gives unlimited permission to copy and/or distribute it,
694 dnl with or without modifications, as long as this notice is preserved.
695 dnl
696 dnl This file can can be used in projects which are not available under
697 dnl the GNU General Public License or the GNU Library General Public
698 dnl License but which still want to provide support for the GNU gettext
699 dnl functionality.
700 dnl Please note that the actual code of the GNU gettext library is covered
701 dnl by the GNU Library General Public License, and the rest of the GNU
702 dnl gettext package package is covered by the GNU General Public License.
703 dnl They are *not* in the public domain.
704
705 dnl Authors:
706 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
707 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
708
709 AC_PREREQ(2.52)
710
711 dnl Checks for all prerequisites of the intl subdirectory,
712 dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
713 dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
714 AC_DEFUN([AM_INTL_SUBDIR],
715 [
716 AC_REQUIRE([AC_PROG_INSTALL])dnl
717 AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
718 AC_REQUIRE([AC_PROG_CC])dnl
719 AC_REQUIRE([AC_CANONICAL_HOST])dnl
720 AC_REQUIRE([gt_GLIBC2])dnl
721 AC_REQUIRE([AC_PROG_RANLIB])dnl
722 AC_REQUIRE([gl_VISIBILITY])dnl
723 AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl
724 AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl
725 AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
726 AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
727 AC_REQUIRE([gt_TYPE_WINT_T])dnl
728 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
729 AC_REQUIRE([gt_TYPE_INTMAX_T])
730 AC_REQUIRE([gt_PRINTF_POSIX])
731 AC_REQUIRE([gl_GLIBC21])dnl
732 AC_REQUIRE([gl_XSIZE])dnl
733 AC_REQUIRE([gt_INTL_MACOSX])dnl
734
735 AC_CHECK_TYPE([ptrdiff_t], ,
736 [AC_DEFINE([ptrdiff_t], [long],
737 [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
738 ])
739 AC_CHECK_HEADERS([stddef.h stdlib.h string.h])
740 AC_CHECK_FUNCS([asprintf fwprintf putenv setenv setlocale snprintf wcslen])
741
742 dnl Use the _snprintf function only if it is declared (because on NetBSD it
743 dnl is defined as a weak alias of snprintf; we prefer to use the latter).
744 gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
745 gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
746
747 dnl Use the *_unlocked functions only if they are declared.
748 dnl (because some of them were defined without being declared in Solaris
749 dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
750 dnl on Solaris 2.5.1 to run on Solaris 2.6).
751 dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
752 gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
753
754 case $gt_cv_func_printf_posix in
755 *yes) HAVE_POSIX_PRINTF=1 ;;
756 *) HAVE_POSIX_PRINTF=0 ;;
757 esac
758 AC_SUBST([HAVE_POSIX_PRINTF])
759 if test "$ac_cv_func_asprintf" = yes; then
760 HAVE_ASPRINTF=1
761 else
762 HAVE_ASPRINTF=0
763 fi
764 AC_SUBST([HAVE_ASPRINTF])
765 if test "$ac_cv_func_snprintf" = yes; then
766 HAVE_SNPRINTF=1
767 else
768 HAVE_SNPRINTF=0
769 fi
770 AC_SUBST([HAVE_SNPRINTF])
771 if test "$ac_cv_func_wprintf" = yes; then
772 HAVE_WPRINTF=1
773 else
774 HAVE_WPRINTF=0
775 fi
776 AC_SUBST([HAVE_WPRINTF])
777
778 AM_LANGINFO_CODESET
779 gt_LC_MESSAGES
780
781 dnl Compilation on mingw and Cygwin needs special Makefile rules, because
782 dnl 1. when we install a shared library, we must arrange to export
783 dnl auxiliary pointer variables for every exported variable,
784 dnl 2. when we install a shared library and a static library simultaneously,
785 dnl the include file specifies __declspec(dllimport) and therefore we
786 dnl must arrange to define the auxiliary pointer variables for the
787 dnl exported variables _also_ in the static library.
788 if test "$enable_shared" = yes; then
789 case "$host_os" in
790 cygwin*) is_woe32dll=yes ;;
791 *) is_woe32dll=no ;;
792 esac
793 else
794 is_woe32dll=no
795 fi
796 WOE32DLL=$is_woe32dll
797 AC_SUBST([WOE32DLL])
798
799 dnl Rename some macros and functions used for locking.
800 AH_BOTTOM([
801 #define __libc_lock_t gl_lock_t
802 #define __libc_lock_define gl_lock_define
803 #define __libc_lock_define_initialized gl_lock_define_initialized
804 #define __libc_lock_init gl_lock_init
805 #define __libc_lock_lock gl_lock_lock
806 #define __libc_lock_unlock gl_lock_unlock
807 #define __libc_lock_recursive_t gl_recursive_lock_t
808 #define __libc_lock_define_recursive gl_recursive_lock_define
809 #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized
810 #define __libc_lock_init_recursive gl_recursive_lock_init
811 #define __libc_lock_lock_recursive gl_recursive_lock_lock
812 #define __libc_lock_unlock_recursive gl_recursive_lock_unlock
813 #define glthread_in_use libintl_thread_in_use
814 #define glthread_lock_init libintl_lock_init
815 #define glthread_lock_lock libintl_lock_lock
816 #define glthread_lock_unlock libintl_lock_unlock
817 #define glthread_lock_destroy libintl_lock_destroy
818 #define glthread_rwlock_init libintl_rwlock_init
819 #define glthread_rwlock_rdlock libintl_rwlock_rdlock
820 #define glthread_rwlock_wrlock libintl_rwlock_wrlock
821 #define glthread_rwlock_unlock libintl_rwlock_unlock
822 #define glthread_rwlock_destroy libintl_rwlock_destroy
823 #define glthread_recursive_lock_init libintl_recursive_lock_init
824 #define glthread_recursive_lock_lock libintl_recursive_lock_lock
825 #define glthread_recursive_lock_unlock libintl_recursive_lock_unlock
826 #define glthread_recursive_lock_destroy libintl_recursive_lock_destroy
827 #define glthread_once libintl_once
828 #define glthread_once_call libintl_once_call
829 #define glthread_once_singlethreaded libintl_once_singlethreaded
830 ])
831 ])
832
833
834 dnl Checks for the core files of the intl subdirectory:
835 dnl dcigettext.c
836 dnl eval-plural.h
837 dnl explodename.c
838 dnl finddomain.c
839 dnl gettextP.h
840 dnl gmo.h
841 dnl hash-string.h hash-string.c
842 dnl l10nflist.c
843 dnl libgnuintl.h.in (except the *printf stuff)
844 dnl loadinfo.h
845 dnl loadmsgcat.c
846 dnl localealias.c
847 dnl log.c
848 dnl plural-exp.h plural-exp.c
849 dnl plural.y
850 dnl Used by libglocale.
851 AC_DEFUN([gt_INTL_SUBDIR_CORE],
852 [
853 AC_REQUIRE([AC_C_INLINE])dnl
854 AC_REQUIRE([AC_TYPE_SIZE_T])dnl
855 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
856 AC_REQUIRE([AC_FUNC_ALLOCA])dnl
857 AC_REQUIRE([AC_FUNC_MMAP])dnl
858 AC_REQUIRE([gt_INTDIV0])dnl
859 AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl
860 AC_REQUIRE([gt_INTTYPES_PRI])dnl
861 AC_REQUIRE([gl_LOCK])dnl
862
863 AC_TRY_LINK(
864 [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }],
865 [],
866 [AC_DEFINE([HAVE_BUILTIN_EXPECT], 1,
867 [Define to 1 if the compiler understands __builtin_expect.])])
868
869 AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h])
870 AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \
871 stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
872 argz_next __fsetlocking])
873
874 dnl Use the *_unlocked functions only if they are declared.
875 dnl (because some of them were defined without being declared in Solaris
876 dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
877 dnl on Solaris 2.5.1 to run on Solaris 2.6).
878 dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
879 gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
880 gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
881
882 AM_ICONV
883
884 dnl glibc >= 2.4 has a NL_LOCALE_NAME macro when _GNU_SOURCE is defined,
885 dnl and a _NL_LOCALE_NAME macro always.
886 AC_CACHE_CHECK([for NL_LOCALE_NAME macro], gt_cv_nl_locale_name,
887 [AC_TRY_LINK([#include <langinfo.h>
888 #include <locale.h>],
889 [char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));],
890 gt_cv_nl_locale_name=yes,
891 gt_cv_nl_locale_name=no)
892 ])
893 if test $gt_cv_nl_locale_name = yes; then
894 AC_DEFINE(HAVE_NL_LOCALE_NAME, 1,
895 [Define if you have <langinfo.h> and it defines the NL_LOCALE_NAME macro if _GNU_SOURCE is defined.])
896 fi
897
898 dnl intl/plural.c is generated from intl/plural.y. It requires bison,
899 dnl because plural.y uses bison specific features. It requires at least
900 dnl bison-1.26 because earlier versions generate a plural.c that doesn't
901 dnl compile.
902 dnl bison is only needed for the maintainer (who touches plural.y). But in
903 dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
904 dnl the rule in general Makefile. Now, some people carelessly touch the
905 dnl files or have a broken "make" program, hence the plural.c rule will
906 dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
907 dnl present or too old.
908 AC_CHECK_PROGS([INTLBISON], [bison])
909 if test -z "$INTLBISON"; then
910 ac_verc_fail=yes
911 else
912 dnl Found it, now check the version.
913 AC_MSG_CHECKING([version of bison])
914 changequote(<<,>>)dnl
915 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
916 case $ac_prog_version in
917 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
918 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
919 changequote([,])dnl
920 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
921 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
922 esac
923 AC_MSG_RESULT([$ac_prog_version])
924 fi
925 if test $ac_verc_fail = yes; then
926 INTLBISON=:
927 fi
928 ])
929
930
931 dnl gt_CHECK_DECL(FUNC, INCLUDES)
932 dnl Check whether a function is declared.
933 AC_DEFUN([gt_CHECK_DECL],
934 [
935 AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
936 [AC_TRY_COMPILE([$2], [
937 #ifndef $1
938 char *p = (char *) $1;
939 #endif
940 ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
941 if test $ac_cv_have_decl_$1 = yes; then
942 gt_value=1
943 else
944 gt_value=0
945 fi
946 AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
947 [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
948 ])
949
950 # intmax.m4 serial 3 (gettext-0.16)
951 dnl Copyright (C) 2002-2005 Free Software Foundation, Inc.
952 dnl This file is free software; the Free Software Foundation
953 dnl gives unlimited permission to copy and/or distribute it,
954 dnl with or without modifications, as long as this notice is preserved.
955
956 dnl From Bruno Haible.
957 dnl Test whether the system has the 'intmax_t' type, but don't attempt to
958 dnl find a replacement if it is lacking.
959
960 AC_DEFUN([gt_TYPE_INTMAX_T],
961 [
962 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
963 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
964 AC_CACHE_CHECK(for intmax_t, gt_cv_c_intmax_t,
965 [AC_TRY_COMPILE([
966 #include <stddef.h>
967 #include <stdlib.h>
968 #if HAVE_STDINT_H_WITH_UINTMAX
969 #include <stdint.h>
970 #endif
971 #if HAVE_INTTYPES_H_WITH_UINTMAX
972 #include <inttypes.h>
973 #endif
974 ], [intmax_t x = -1;
975 return !x;],
976 gt_cv_c_intmax_t=yes,
977 gt_cv_c_intmax_t=no)])
978 if test $gt_cv_c_intmax_t = yes; then
979 AC_DEFINE(HAVE_INTMAX_T, 1,
980 [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
981 fi
982 ])
983
984 # inttypes-pri.m4 serial 4 (gettext-0.16)
985 dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc.
986 dnl This file is free software; the Free Software Foundation
987 dnl gives unlimited permission to copy and/or distribute it,
988 dnl with or without modifications, as long as this notice is preserved.
989
990 dnl From Bruno Haible.
991
992 AC_PREREQ(2.52)
993
994 # Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
995 # macros to non-string values. This is the case on AIX 4.3.3.
996
997 AC_DEFUN([gt_INTTYPES_PRI],
998 [
999 AC_CHECK_HEADERS([inttypes.h])
1000 if test $ac_cv_header_inttypes_h = yes; then
1001 AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
1002 gt_cv_inttypes_pri_broken,
1003 [
1004 AC_TRY_COMPILE([#include <inttypes.h>
1005 #ifdef PRId32
1006 char *p = PRId32;
1007 #endif
1008 ], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
1009 ])
1010 fi
1011 if test "$gt_cv_inttypes_pri_broken" = yes; then
1012 AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
1013 [Define if <inttypes.h> exists and defines unusable PRI* macros.])
1014 PRI_MACROS_BROKEN=1
1015 else
1016 PRI_MACROS_BROKEN=0
1017 fi
1018 AC_SUBST([PRI_MACROS_BROKEN])
1019 ])
1020
1021 # inttypes_h.m4 serial 7
1022 dnl Copyright (C) 1997-2004, 2006 Free Software Foundation, Inc.
1023 dnl This file is free software; the Free Software Foundation
1024 dnl gives unlimited permission to copy and/or distribute it,
1025 dnl with or without modifications, as long as this notice is preserved.
1026
1027 dnl From Paul Eggert.
1028
1029 # Define HAVE_INTTYPES_H_WITH_UINTMAX if <inttypes.h> exists,
1030 # doesn't clash with <sys/types.h>, and declares uintmax_t.
1031
1032 AC_DEFUN([gl_AC_HEADER_INTTYPES_H],
1033 [
1034 AC_CACHE_CHECK([for inttypes.h], gl_cv_header_inttypes_h,
1035 [AC_TRY_COMPILE(
1036 [#include <sys/types.h>
1037 #include <inttypes.h>],
1038 [uintmax_t i = (uintmax_t) -1; return !i;],
1039 gl_cv_header_inttypes_h=yes,
1040 gl_cv_header_inttypes_h=no)])
1041 if test $gl_cv_header_inttypes_h = yes; then
1042 AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1,
1043 [Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
1044 and declares uintmax_t. ])
1045 fi
1046 ])
1047
1048 # lcmessage.m4 serial 4 (gettext-0.14.2)
1049 dnl Copyright (C) 1995-2002, 2004-2005 Free Software Foundation, Inc.
1050 dnl This file is free software; the Free Software Foundation
1051 dnl gives unlimited permission to copy and/or distribute it,
1052 dnl with or without modifications, as long as this notice is preserved.
1053 dnl
1054 dnl This file can can be used in projects which are not available under
1055 dnl the GNU General Public License or the GNU Library General Public
1056 dnl License but which still want to provide support for the GNU gettext
1057 dnl functionality.
1058 dnl Please note that the actual code of the GNU gettext library is covered
1059 dnl by the GNU Library General Public License, and the rest of the GNU
1060 dnl gettext package package is covered by the GNU General Public License.
1061 dnl They are *not* in the public domain.
1062
1063 dnl Authors:
1064 dnl Ulrich Drepper <drepper@cygnus.com>, 1995.
1065
1066 # Check whether LC_MESSAGES is available in <locale.h>.
1067
1068 AC_DEFUN([gt_LC_MESSAGES],
1069 [
1070 AC_CACHE_CHECK([for LC_MESSAGES], gt_cv_val_LC_MESSAGES,
1071 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
1072 gt_cv_val_LC_MESSAGES=yes, gt_cv_val_LC_MESSAGES=no)])
1073 if test $gt_cv_val_LC_MESSAGES = yes; then
1074 AC_DEFINE(HAVE_LC_MESSAGES, 1,
1075 [Define if your <locale.h> file defines LC_MESSAGES.])
1076 fi
1077 ])
1078
1079 # lib-ld.m4 serial 3 (gettext-0.13)
1080 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
1081 dnl This file is free software; the Free Software Foundation
1082 dnl gives unlimited permission to copy and/or distribute it,
1083 dnl with or without modifications, as long as this notice is preserved.
1084
1085 dnl Subroutines of libtool.m4,
1086 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
1087 dnl with libtool.m4.
1088
1089 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
1090 AC_DEFUN([AC_LIB_PROG_LD_GNU],
1091 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
1092 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1093 case `$LD -v 2>&1 </dev/null` in
1094 *GNU* | *'with BFD'*)
1095 acl_cv_prog_gnu_ld=yes ;;
1096 *)
1097 acl_cv_prog_gnu_ld=no ;;
1098 esac])
1099 with_gnu_ld=$acl_cv_prog_gnu_ld
1100 ])
1101
1102 dnl From libtool-1.4. Sets the variable LD.
1103 AC_DEFUN([AC_LIB_PROG_LD],
1104 [AC_ARG_WITH(gnu-ld,
1105 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
1106 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
1107 AC_REQUIRE([AC_PROG_CC])dnl
1108 AC_REQUIRE([AC_CANONICAL_HOST])dnl
1109 # Prepare PATH_SEPARATOR.
1110 # The user is always right.
1111 if test "${PATH_SEPARATOR+set}" != set; then
1112 echo "#! /bin/sh" >conf$$.sh
1113 echo "exit 0" >>conf$$.sh
1114 chmod +x conf$$.sh
1115 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1116 PATH_SEPARATOR=';'
1117 else
1118 PATH_SEPARATOR=:
1119 fi
1120 rm -f conf$$.sh
1121 fi
1122 ac_prog=ld
1123 if test "$GCC" = yes; then
1124 # Check if gcc -print-prog-name=ld gives a path.
1125 AC_MSG_CHECKING([for ld used by GCC])
1126 case $host in
1127 *-*-mingw*)
1128 # gcc leaves a trailing carriage return which upsets mingw
1129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1130 *)
1131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1132 esac
1133 case $ac_prog in
1134 # Accept absolute paths.
1135 [[\\/]* | [A-Za-z]:[\\/]*)]
1136 [re_direlt='/[^/][^/]*/\.\./']
1137 # Canonicalize the path of ld
1138 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1139 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1140 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
781141 done
79 if test -z "$haveit"; then
80 if test "X$additional_includedir" = "X/usr/local/include"; then
81 if test -n "$GCC"; then
82 case $host_os in
83 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
84 esac
85 fi
86 fi
87 if test -z "$haveit"; then
88 if test -d "$additional_includedir"; then
89 dnl Really add $additional_includedir to $CPPFLAGS.
90 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
91 fi
92 fi
93 fi
1142 test -z "$LD" && LD="$ac_prog"
1143 ;;
1144 "")
1145 # If it fails, then pretend we aren't using GCC.
1146 ac_prog=ld
1147 ;;
1148 *)
1149 # If it is relative, then search for the first ld in PATH.
1150 with_gnu_ld=unknown
1151 ;;
1152 esac
1153 elif test "$with_gnu_ld" = yes; then
1154 AC_MSG_CHECKING([for GNU ld])
1155 else
1156 AC_MSG_CHECKING([for non-GNU ld])
1157 fi
1158 AC_CACHE_VAL(acl_cv_path_LD,
1159 [if test -z "$LD"; then
1160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1161 for ac_dir in $PATH; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1164 acl_cv_path_LD="$ac_dir/$ac_prog"
1165 # Check to see if the program is GNU ld. I'd rather use --version,
1166 # but apparently some GNU ld's only accept -v.
1167 # Break only if it was the GNU/non-GNU ld that we prefer.
1168 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
1169 *GNU* | *'with BFD'*)
1170 test "$with_gnu_ld" != no && break ;;
1171 *)
1172 test "$with_gnu_ld" != yes && break ;;
1173 esac
941174 fi
95 dnl Potentially add $additional_libdir to $LDFLAGS.
96 dnl But don't add it
97 dnl 1. if it's the standard /usr/lib,
98 dnl 2. if it's already present in $LDFLAGS,
99 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
100 dnl 4. if it doesn't exist as a directory.
101 if test "X$additional_libdir" != "X/usr/lib"; then
102 haveit=
103 for x in $LDFLAGS; do
104 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
105 if test "X$x" = "X-L$additional_libdir"; then
106 haveit=yes
107 break
108 fi
109 done
110 if test -z "$haveit"; then
111 if test "X$additional_libdir" = "X/usr/local/lib"; then
112 if test -n "$GCC"; then
113 case $host_os in
114 linux*) haveit=yes;;
115 esac
116 fi
117 fi
118 if test -z "$haveit"; then
119 if test -d "$additional_libdir"; then
120 dnl Really add $additional_libdir to $LDFLAGS.
121 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
122 fi
123 fi
124 fi
125 fi
126 fi
1175 done
1176 IFS="$ac_save_ifs"
1177 else
1178 acl_cv_path_LD="$LD" # Let the user override the test with a path.
1179 fi])
1180 LD="$acl_cv_path_LD"
1181 if test -n "$LD"; then
1182 AC_MSG_RESULT($LD)
1183 else
1184 AC_MSG_RESULT(no)
1185 fi
1186 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
1187 AC_LIB_PROG_LD_GNU
1271188 ])
1281189
129 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
130 dnl acl_final_exec_prefix, containing the values to which $prefix and
131 dnl $exec_prefix will expand at the end of the configure script.
132 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
133 [
134 dnl Unfortunately, prefix and exec_prefix get only finally determined
135 dnl at the end of configure.
136 if test "X$prefix" = "XNONE"; then
137 acl_final_prefix="$ac_default_prefix"
138 else
139 acl_final_prefix="$prefix"
140 fi
141 if test "X$exec_prefix" = "XNONE"; then
142 acl_final_exec_prefix='${prefix}'
143 else
144 acl_final_exec_prefix="$exec_prefix"
145 fi
146 acl_save_prefix="$prefix"
147 prefix="$acl_final_prefix"
148 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
149 prefix="$acl_save_prefix"
150 ])
151
152 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
153 dnl variables prefix and exec_prefix bound to the values they will have
154 dnl at the end of the configure script.
155 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
156 [
157 acl_save_prefix="$prefix"
158 prefix="$acl_final_prefix"
159 acl_save_exec_prefix="$exec_prefix"
160 exec_prefix="$acl_final_exec_prefix"
161 $1
162 exec_prefix="$acl_save_exec_prefix"
163 prefix="$acl_save_prefix"
164 ])
165
166 # lib-link.m4 serial 6 (gettext-0.14.3)
167 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
1190 # lib-link.m4 serial 9 (gettext-0.16)
1191 dnl Copyright (C) 2001-2006 Free Software Foundation, Inc.
1681192 dnl This file is free software; the Free Software Foundation
1691193 dnl gives unlimited permission to copy and/or distribute it,
1701194 dnl with or without modifications, as long as this notice is preserved.
2911315 dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
2921316 AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
2931317 [
1318 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
2941319 define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
2951320 [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
2961321 dnl By default, look in $includedir and $libdir.
3131338 ])
3141339 else
3151340 additional_includedir="$withval/include"
316 additional_libdir="$withval/lib"
1341 additional_libdir="$withval/$acl_libdirstem"
3171342 fi
3181343 fi
3191344 ])
3621387 found_so=
3631388 found_a=
3641389 if test $use_additional = yes; then
365 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
1390 if test -n "$shlibext" \
1391 && { test -f "$additional_libdir/lib$name.$shlibext" \
1392 || { test "$shlibext" = dll \
1393 && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
3661394 found_dir="$additional_libdir"
367 found_so="$additional_libdir/lib$name.$shlibext"
1395 if test -f "$additional_libdir/lib$name.$shlibext"; then
1396 found_so="$additional_libdir/lib$name.$shlibext"
1397 else
1398 found_so="$additional_libdir/lib$name.dll.a"
1399 fi
3681400 if test -f "$additional_libdir/lib$name.la"; then
3691401 found_la="$additional_libdir/lib$name.la"
3701402 fi
3841416 case "$x" in
3851417 -L*)
3861418 dir=`echo "X$x" | sed -e 's/^X-L//'`
387 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
1419 if test -n "$shlibext" \
1420 && { test -f "$dir/lib$name.$shlibext" \
1421 || { test "$shlibext" = dll \
1422 && test -f "$dir/lib$name.dll.a"; }; }; then
3881423 found_dir="$dir"
389 found_so="$dir/lib$name.$shlibext"
1424 if test -f "$dir/lib$name.$shlibext"; then
1425 found_so="$dir/lib$name.$shlibext"
1426 else
1427 found_so="$dir/lib$name.dll.a"
1428 fi
3901429 if test -f "$dir/lib$name.la"; then
3911430 found_la="$dir/lib$name.la"
3921431 fi
4131452 dnl Linking with a shared library. We attempt to hardcode its
4141453 dnl directory into the executable's runpath, unless it's the
4151454 dnl standard /usr/lib.
416 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
1455 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4171456 dnl No hardcoding is needed.
4181457 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
4191458 else
4991538 dnl Assume the include files are nearby.
5001539 additional_includedir=
5011540 case "$found_dir" in
502 */lib | */lib/)
503 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
1541 */$acl_libdirstem | */$acl_libdirstem/)
1542 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5041543 additional_includedir="$basedir/include"
5051544 ;;
5061545 esac
5611600 dnl 3. if it's already present in $LDFLAGS or the already
5621601 dnl constructed $LIBNAME,
5631602 dnl 4. if it doesn't exist as a directory.
564 if test "X$additional_libdir" != "X/usr/lib"; then
1603 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5651604 haveit=
566 if test "X$additional_libdir" = "X/usr/local/lib"; then
1605 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5671606 if test -n "$GCC"; then
5681607 case $host_os in
5691608 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7171756 done
7181757 ])
7191758
720 # lib-ld.m4 serial 3 (gettext-0.13)
721 dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
1759 dnl For those cases where a variable contains several -L and -l options
1760 dnl referring to unknown libraries and directories, this macro determines the
1761 dnl necessary additional linker options for the runtime path.
1762 dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL])
1763 dnl sets LDADDVAR to linker options needed together with LIBSVALUE.
1764 dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed,
1765 dnl otherwise linking without libtool is assumed.
1766 AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS],
1767 [
1768 AC_REQUIRE([AC_LIB_RPATH])
1769 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
1770 $1=
1771 if test "$enable_rpath" != no; then
1772 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
1773 dnl Use an explicit option to hardcode directories into the resulting
1774 dnl binary.
1775 rpathdirs=
1776 next=
1777 for opt in $2; do
1778 if test -n "$next"; then
1779 dir="$next"
1780 dnl No need to hardcode the standard /usr/lib.
1781 if test "X$dir" != "X/usr/$acl_libdirstem"; then
1782 rpathdirs="$rpathdirs $dir"
1783 fi
1784 next=
1785 else
1786 case $opt in
1787 -L) next=yes ;;
1788 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
1789 dnl No need to hardcode the standard /usr/lib.
1790 if test "X$dir" != "X/usr/$acl_libdirstem"; then
1791 rpathdirs="$rpathdirs $dir"
1792 fi
1793 next= ;;
1794 *) next= ;;
1795 esac
1796 fi
1797 done
1798 if test "X$rpathdirs" != "X"; then
1799 if test -n ""$3""; then
1800 dnl libtool is used for linking. Use -R options.
1801 for dir in $rpathdirs; do
1802 $1="${$1}${$1:+ }-R$dir"
1803 done
1804 else
1805 dnl The linker is used for linking directly.
1806 if test -n "$hardcode_libdir_separator"; then
1807 dnl Weird platform: only the last -rpath option counts, the user
1808 dnl must pass all path elements in one option.
1809 alldirs=
1810 for dir in $rpathdirs; do
1811 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$dir"
1812 done
1813 acl_save_libdir="$libdir"
1814 libdir="$alldirs"
1815 eval flag=\"$hardcode_libdir_flag_spec\"
1816 libdir="$acl_save_libdir"
1817 $1="$flag"
1818 else
1819 dnl The -rpath options are cumulative.
1820 for dir in $rpathdirs; do
1821 acl_save_libdir="$libdir"
1822 libdir="$dir"
1823 eval flag=\"$hardcode_libdir_flag_spec\"
1824 libdir="$acl_save_libdir"
1825 $1="${$1}${$1:+ }$flag"
1826 done
1827 fi
1828 fi
1829 fi
1830 fi
1831 fi
1832 AC_SUBST([$1])
1833 ])
1834
1835 # lib-prefix.m4 serial 5 (gettext-0.15)
1836 dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
7221837 dnl This file is free software; the Free Software Foundation
7231838 dnl gives unlimited permission to copy and/or distribute it,
7241839 dnl with or without modifications, as long as this notice is preserved.
7251840
726 dnl Subroutines of libtool.m4,
727 dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
728 dnl with libtool.m4.
729
730 dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
731 AC_DEFUN([AC_LIB_PROG_LD_GNU],
732 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
733 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
734 case `$LD -v 2>&1 </dev/null` in
735 *GNU* | *'with BFD'*)
736 acl_cv_prog_gnu_ld=yes ;;
737 *)
738 acl_cv_prog_gnu_ld=no ;;
739 esac])
740 with_gnu_ld=$acl_cv_prog_gnu_ld
1841 dnl From Bruno Haible.
1842
1843 dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
1844 dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
1845 dnl require excessive bracketing.
1846 ifdef([AC_HELP_STRING],
1847 [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
1848 [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
1849
1850 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
1851 dnl to access previously installed libraries. The basic assumption is that
1852 dnl a user will want packages to use other packages he previously installed
1853 dnl with the same --prefix option.
1854 dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
1855 dnl libraries, but is otherwise very convenient.
1856 AC_DEFUN([AC_LIB_PREFIX],
1857 [
1858 AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
1859 AC_REQUIRE([AC_PROG_CC])
1860 AC_REQUIRE([AC_CANONICAL_HOST])
1861 AC_REQUIRE([AC_LIB_PREPARE_MULTILIB])
1862 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
1863 dnl By default, look in $includedir and $libdir.
1864 use_additional=yes
1865 AC_LIB_WITH_FINAL_PREFIX([
1866 eval additional_includedir=\"$includedir\"
1867 eval additional_libdir=\"$libdir\"
1868 ])
1869 AC_LIB_ARG_WITH([lib-prefix],
1870 [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
1871 --without-lib-prefix don't search for libraries in includedir and libdir],
1872 [
1873 if test "X$withval" = "Xno"; then
1874 use_additional=no
1875 else
1876 if test "X$withval" = "X"; then
1877 AC_LIB_WITH_FINAL_PREFIX([
1878 eval additional_includedir=\"$includedir\"
1879 eval additional_libdir=\"$libdir\"
1880 ])
1881 else
1882 additional_includedir="$withval/include"
1883 additional_libdir="$withval/$acl_libdirstem"
1884 fi
1885 fi
7411886 ])
742
743 dnl From libtool-1.4. Sets the variable LD.
744 AC_DEFUN([AC_LIB_PROG_LD],
745 [AC_ARG_WITH(gnu-ld,
746 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
747 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
748 AC_REQUIRE([AC_PROG_CC])dnl
749 AC_REQUIRE([AC_CANONICAL_HOST])dnl
750 # Prepare PATH_SEPARATOR.
751 # The user is always right.
752 if test "${PATH_SEPARATOR+set}" != set; then
753 echo "#! /bin/sh" >conf$$.sh
754 echo "exit 0" >>conf$$.sh
755 chmod +x conf$$.sh
756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
757 PATH_SEPARATOR=';'
1887 if test $use_additional = yes; then
1888 dnl Potentially add $additional_includedir to $CPPFLAGS.
1889 dnl But don't add it
1890 dnl 1. if it's the standard /usr/include,
1891 dnl 2. if it's already present in $CPPFLAGS,
1892 dnl 3. if it's /usr/local/include and we are using GCC on Linux,
1893 dnl 4. if it doesn't exist as a directory.
1894 if test "X$additional_includedir" != "X/usr/include"; then
1895 haveit=
1896 for x in $CPPFLAGS; do
1897 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1898 if test "X$x" = "X-I$additional_includedir"; then
1899 haveit=yes
1900 break
1901 fi
1902 done
1903 if test -z "$haveit"; then
1904 if test "X$additional_includedir" = "X/usr/local/include"; then
1905 if test -n "$GCC"; then
1906 case $host_os in
1907 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
1908 esac
1909 fi
1910 fi
1911 if test -z "$haveit"; then
1912 if test -d "$additional_includedir"; then
1913 dnl Really add $additional_includedir to $CPPFLAGS.
1914 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
1915 fi
1916 fi
1917 fi
1918 fi
1919 dnl Potentially add $additional_libdir to $LDFLAGS.
1920 dnl But don't add it
1921 dnl 1. if it's the standard /usr/lib,
1922 dnl 2. if it's already present in $LDFLAGS,
1923 dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
1924 dnl 4. if it doesn't exist as a directory.
1925 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
1926 haveit=
1927 for x in $LDFLAGS; do
1928 AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
1929 if test "X$x" = "X-L$additional_libdir"; then
1930 haveit=yes
1931 break
1932 fi
1933 done
1934 if test -z "$haveit"; then
1935 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
1936 if test -n "$GCC"; then
1937 case $host_os in
1938 linux*) haveit=yes;;
1939 esac
1940 fi
1941 fi
1942 if test -z "$haveit"; then
1943 if test -d "$additional_libdir"; then
1944 dnl Really add $additional_libdir to $LDFLAGS.
1945 LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
1946 fi
1947 fi
1948 fi
1949 fi
1950 fi
1951 ])
1952
1953 dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
1954 dnl acl_final_exec_prefix, containing the values to which $prefix and
1955 dnl $exec_prefix will expand at the end of the configure script.
1956 AC_DEFUN([AC_LIB_PREPARE_PREFIX],
1957 [
1958 dnl Unfortunately, prefix and exec_prefix get only finally determined
1959 dnl at the end of configure.
1960 if test "X$prefix" = "XNONE"; then
1961 acl_final_prefix="$ac_default_prefix"
7581962 else
759 PATH_SEPARATOR=:
760 fi
761 rm -f conf$$.sh
762 fi
763 ac_prog=ld
764 if test "$GCC" = yes; then
765 # Check if gcc -print-prog-name=ld gives a path.
766 AC_MSG_CHECKING([for ld used by GCC])
767 case $host in
768 *-*-mingw*)
769 # gcc leaves a trailing carriage return which upsets mingw
770 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
771 *)
772 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
773 esac
774 case $ac_prog in
775 # Accept absolute paths.
776 [[\\/]* | [A-Za-z]:[\\/]*)]
777 [re_direlt='/[^/][^/]*/\.\./']
778 # Canonicalize the path of ld
779 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
780 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
781 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
782 done
783 test -z "$LD" && LD="$ac_prog"
784 ;;
785 "")
786 # If it fails, then pretend we aren't using GCC.
787 ac_prog=ld
788 ;;
789 *)
790 # If it is relative, then search for the first ld in PATH.
791 with_gnu_ld=unknown
792 ;;
793 esac
794 elif test "$with_gnu_ld" = yes; then
795 AC_MSG_CHECKING([for GNU ld])
796 else
797 AC_MSG_CHECKING([for non-GNU ld])
798 fi
799 AC_CACHE_VAL(acl_cv_path_LD,
800 [if test -z "$LD"; then
801 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
802 for ac_dir in $PATH; do
803 test -z "$ac_dir" && ac_dir=.
804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
805 acl_cv_path_LD="$ac_dir/$ac_prog"
806 # Check to see if the program is GNU ld. I'd rather use --version,
807 # but apparently some GNU ld's only accept -v.
808 # Break only if it was the GNU/non-GNU ld that we prefer.
809 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
810 *GNU* | *'with BFD'*)
811 test "$with_gnu_ld" != no && break ;;
812 *)
813 test "$with_gnu_ld" != yes && break ;;
814 esac
815 fi
816 done
817 IFS="$ac_save_ifs"
818 else
819 acl_cv_path_LD="$LD" # Let the user override the test with a path.
820 fi])
821 LD="$acl_cv_path_LD"
822 if test -n "$LD"; then
823 AC_MSG_RESULT($LD)
824 else
825 AC_MSG_RESULT(no)
826 fi
827 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
828 AC_LIB_PROG_LD_GNU
1963 acl_final_prefix="$prefix"
1964 fi
1965 if test "X$exec_prefix" = "XNONE"; then
1966 acl_final_exec_prefix='${prefix}'
1967 else
1968 acl_final_exec_prefix="$exec_prefix"
1969 fi
1970 acl_save_prefix="$prefix"
1971 prefix="$acl_final_prefix"
1972 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
1973 prefix="$acl_save_prefix"
8291974 ])
8301975
831 # Do all the work for Automake. This macro actually does too much --
832 # some checks are only needed if your package does certain things.
833 # But this isn't really a big deal.
834
835 # serial 1
836
837 dnl Usage:
838 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
839
840 AC_DEFUN([AM_INIT_AUTOMAKE],
841 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
842 AC_REQUIRE([AC_PROG_INSTALL])
843 PACKAGE=[$1]
844 AC_SUBST(PACKAGE)
845 VERSION=[$2]
846 AC_SUBST(VERSION)
847 dnl test to see if srcdir already configured
848 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
849 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
850 fi
851 ifelse([$3],,
852 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
853 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
854 AC_REQUIRE([AM_SANITY_CHECK])
855 AC_REQUIRE([AC_ARG_PROGRAM])
856 dnl FIXME This is truly gross.
857 missing_dir=`cd $ac_aux_dir && pwd`
858 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
859 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
860 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
861 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
862 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
863 AC_REQUIRE([AC_PROG_MAKE_SET])])
864
865 # Copyright 2002 Free Software Foundation, Inc.
866
867 # This program is free software; you can redistribute it and/or modify
868 # it under the terms of the GNU General Public License as published by
869 # the Free Software Foundation; either version 2, or (at your option)
870 # any later version.
871
872 # This program is distributed in the hope that it will be useful,
873 # but WITHOUT ANY WARRANTY; without even the implied warranty of
874 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
875 # GNU General Public License for more details.
876
877 # You should have received a copy of the GNU General Public License
878 # along with this program; if not, write to the Free Software
879 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
880
881 # AM_AUTOMAKE_VERSION(VERSION)
882 # ----------------------------
883 # Automake X.Y traces this macro to ensure aclocal.m4 has been
884 # generated from the m4 files accompanying Automake X.Y.
885 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
886
887 # AM_SET_CURRENT_AUTOMAKE_VERSION
888 # -------------------------------
889 # Call AM_AUTOMAKE_VERSION so it can be traced.
890 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
891 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
892 [AM_AUTOMAKE_VERSION([1.4-p6])])
893
894 #
895 # Check to make sure that the build environment is sane.
896 #
897
898 AC_DEFUN([AM_SANITY_CHECK],
899 [AC_MSG_CHECKING([whether build environment is sane])
900 # Just in case
901 sleep 1
902 echo timestamp > conftestfile
903 # Do `set' in a subshell so we don't clobber the current shell's
904 # arguments. Must try -L first in case configure is actually a
905 # symlink; some systems play weird games with the mod time of symlinks
906 # (eg FreeBSD returns the mod time of the symlink's containing
907 # directory).
908 if (
909 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
910 if test "[$]*" = "X"; then
911 # -L didn't work.
912 set X `ls -t $srcdir/configure conftestfile`
913 fi
914 if test "[$]*" != "X $srcdir/configure conftestfile" \
915 && test "[$]*" != "X conftestfile $srcdir/configure"; then
916
917 # If neither matched, then we have a broken ls. This can happen
918 # if, for instance, CONFIG_SHELL is bash and it inherits a
919 # broken ls alias from the environment. This has actually
920 # happened. Such a system could not be considered "sane".
921 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
922 alias in your environment])
923 fi
924
925 test "[$]2" = conftestfile
926 )
927 then
928 # Ok.
929 :
930 else
931 AC_MSG_ERROR([newly created file is older than distributed files!
932 Check your system clock])
933 fi
934 rm -f conftest*
935 AC_MSG_RESULT(yes)])
936
937 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
938 dnl The program must properly implement --version.
939 AC_DEFUN([AM_MISSING_PROG],
940 [AC_MSG_CHECKING(for working $2)
941 # Run test in a subshell; some versions of sh will print an error if
942 # an executable is not found, even if stderr is redirected.
943 # Redirect stdin to placate older versions of autoconf. Sigh.
944 if ($2 --version) < /dev/null > /dev/null 2>&1; then
945 $1=$2
946 AC_MSG_RESULT(found)
947 else
948 $1="$3/missing $2"
949 AC_MSG_RESULT(missing)
950 fi
951 AC_SUBST($1)])
952
953 # Add --enable-maintainer-mode option to configure.
954 # From Jim Meyering
955
956 # serial 1
957
958 AC_DEFUN([AM_MAINTAINER_MODE],
959 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
960 dnl maintainer-mode is disabled by default
961 AC_ARG_ENABLE(maintainer-mode,
962 [ --enable-maintainer-mode enable make rules and dependencies not useful
963 (and sometimes confusing) to the casual installer],
964 USE_MAINTAINER_MODE=$enableval,
965 USE_MAINTAINER_MODE=no)
966 AC_MSG_RESULT($USE_MAINTAINER_MODE)
967 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
968 MAINT=$MAINTAINER_MODE_TRUE
969 AC_SUBST(MAINT)dnl
970 ]
971 )
972
973 # Define a conditional.
974
975 AC_DEFUN([AM_CONDITIONAL],
976 [AC_SUBST($1_TRUE)
977 AC_SUBST($1_FALSE)
978 if $2; then
979 $1_TRUE=
980 $1_FALSE='#'
981 else
982 $1_TRUE='#'
983 $1_FALSE=
984 fi])
985
986 # isc-posix.m4 serial 2 (gettext-0.11.2)
987 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
988 dnl This file is free software; the Free Software Foundation
989 dnl gives unlimited permission to copy and/or distribute it,
990 dnl with or without modifications, as long as this notice is preserved.
991
992 # This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
993
994 # This test replaces the one in autoconf.
995 # Currently this macro should have the same name as the autoconf macro
996 # because gettext's gettext.m4 (distributed in the automake package)
997 # still uses it. Otherwise, the use in gettext.m4 makes autoheader
998 # give these diagnostics:
999 # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
1000 # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
1001
1002 undefine([AC_ISC_POSIX])
1003
1004 AC_DEFUN([AC_ISC_POSIX],
1005 [
1006 dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
1007 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
1008 ]
1009 )
1976 dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
1977 dnl variables prefix and exec_prefix bound to the values they will have
1978 dnl at the end of the configure script.
1979 AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
1980 [
1981 acl_save_prefix="$prefix"
1982 prefix="$acl_final_prefix"
1983 acl_save_exec_prefix="$exec_prefix"
1984 exec_prefix="$acl_final_exec_prefix"
1985 $1
1986 exec_prefix="$acl_save_exec_prefix"
1987 prefix="$acl_save_prefix"
1988 ])
1989
1990 dnl AC_LIB_PREPARE_MULTILIB creates a variable acl_libdirstem, containing
1991 dnl the basename of the libdir, either "lib" or "lib64".
1992 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
1993 [
1994 dnl There is no formal standard regarding lib and lib64. The current
1995 dnl practice is that on a system supporting 32-bit and 64-bit instruction
1996 dnl sets or ABIs, 64-bit libraries go under $prefix/lib64 and 32-bit
1997 dnl libraries go under $prefix/lib. We determine the compiler's default
1998 dnl mode by looking at the compiler's library search path. If at least
1999 dnl of its elements ends in /lib64 or points to a directory whose absolute
2000 dnl pathname ends in /lib64, we assume a 64-bit ABI. Otherwise we use the
2001 dnl default, namely "lib".
2002 acl_libdirstem=lib
2003 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
2004 if test -n "$searchpath"; then
2005 acl_save_IFS="${IFS= }"; IFS=":"
2006 for searchdir in $searchpath; do
2007 if test -d "$searchdir"; then
2008 case "$searchdir" in
2009 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
2010 *) searchdir=`cd "$searchdir" && pwd`
2011 case "$searchdir" in
2012 */lib64 ) acl_libdirstem=lib64 ;;
2013 esac ;;
2014 esac
2015 fi
2016 done
2017 IFS="$acl_save_IFS"
2018 fi
2019 ])
10102020
10112021 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
10122022
1013 # serial 48 Debian 1.5.22-2 AC_PROG_LIBTOOL
2023 # serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
10142024
10152025
10162026 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
23943404 dynamic_linker=no
23953405 ;;
23963406
2397 kfreebsd*-gnu)
2398 version_type=linux
2399 need_lib_prefix=no
2400 need_version=no
2401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2402 soname_spec='${libname}${release}${shared_ext}$major'
2403 shlibpath_var=LD_LIBRARY_PATH
2404 shlibpath_overrides_runpath=no
2405 hardcode_into_libs=yes
2406 dynamic_linker='GNU ld.so'
2407 ;;
2408
24093407 freebsd* | dragonfly*)
24103408 # DragonFly does not have aout. When/if they implement a new
24113409 # versioning mechanism, adjust this.
25613559 ;;
25623560
25633561 # This must be Linux ELF.
2564 linux*)
3562 linux* | k*bsd*-gnu)
25653563 version_type=linux
25663564 need_lib_prefix=no
25673565 need_version=no
26003598 shlibpath_overrides_runpath=no
26013599 hardcode_into_libs=yes
26023600 dynamic_linker='NetBSD ld.elf_so'
2603 ;;
2604
2605 knetbsd*-gnu)
2606 version_type=linux
2607 need_lib_prefix=no
2608 need_version=no
2609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2610 soname_spec='${libname}${release}${shared_ext}$major'
2611 shlibpath_var=LD_LIBRARY_PATH
2612 shlibpath_overrides_runpath=no
2613 hardcode_into_libs=yes
2614 dynamic_linker='GNU ld.so'
26153601 ;;
26163602
26173603 netbsd*)
33194305 lt_cv_deplibs_check_method=pass_all
33204306 ;;
33214307
3322 freebsd* | kfreebsd*-gnu | dragonfly*)
4308 freebsd* | dragonfly*)
33234309 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
33244310 case $host_cpu in
33254311 i*86 )
33734359 ;;
33744360
33754361 # This must be Linux ELF.
3376 linux*)
4362 linux* | k*bsd*-gnu)
33774363 lt_cv_deplibs_check_method=pass_all
33784364 ;;
33794365
3380 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4366 netbsd* | netbsdelf*-gnu)
33814367 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
33824368 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
33834369 else
41255111 freebsd-elf*)
41265112 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
41275113 ;;
4128 freebsd* | kfreebsd*-gnu | dragonfly*)
5114 freebsd* | dragonfly*)
41295115 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
41305116 # conventions
41315117 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
42845270 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
42855271 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
42865272 ;;
4287 linux*)
5273 linux* | k*bsd*-gnu)
42885274 case $cc_basename in
42895275 KCC*)
42905276 # Kuck and Associates, Inc. (KAI) C++ Compiler
43865372 ;;
43875373 esac
43885374 ;;
4389 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5375 netbsd* | netbsdelf*-gnu)
43905376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43915377 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
43925378 wlarc=
56516637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
56526638 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
56536639 ;;
5654 linux*)
6640 linux* | k*bsd*-gnu)
56556641 if test "$host_cpu" = ia64; then
56566642 symcode='[[ABCDGIRSTW]]'
56576643 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
59246910 ;;
59256911 esac
59266912 ;;
5927 freebsd* | kfreebsd*-gnu | dragonfly*)
6913 freebsd* | dragonfly*)
59286914 # FreeBSD uses GNU C++
59296915 ;;
59306916 hpux9* | hpux10* | hpux11*)
59676953 ;;
59686954 esac
59696955 ;;
5970 linux*)
6956 linux* | k*bsd*-gnu)
59716957 case $cc_basename in
59726958 KCC*)
59736959 # KAI C++ Compiler
60106996 ;;
60116997 esac
60126998 ;;
6013 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6999 netbsd* | netbsdelf*-gnu)
60147000 ;;
60157001 osf3* | osf4* | osf5*)
60167002 case $cc_basename in
62217207 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
62227208 ;;
62237209
6224 linux*)
7210 linux* | k*bsd*-gnu)
62257211 case $cc_basename in
62267212 icc* | ecc*)
62277213 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
63627348 cygwin* | mingw*)
63637349 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
63647350 ;;
6365 kfreebsd*-gnu)
6366 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6367 ;;
6368 linux*)
7351 linux* | k*bsd*-gnu)
63697352 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
63707353 ;;
63717354 *)
65387521 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
65397522 ;;
65407523
6541 linux*)
7524 linux* | k*bsd*-gnu)
65427525 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
65437526 tmp_addflag=
65447527 case $cc_basename,$host_cpu in
65707553 fi
65717554 ;;
65727555
6573 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7556 netbsd* | netbsdelf*-gnu)
65747557 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
65757558 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
65767559 wlarc=
69067889 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
69077890 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
69087891 ;;
6909
6910 # GNU/kFreeBSD uses gcc -shared to do shared libraries.
6911 kfreebsd*-gnu)
6912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6913 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6914 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6915 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6916 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6917 ;;
69187892
69197893 hpux9*)
69207894 if test "$GCC" = yes; then
70117985 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
70127986 ;;
70137987
7014 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7988 netbsd* | netbsdelf*-gnu)
70157989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
70167990 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
70177991 else
74138387 AC_MSG_RESULT([$SED])
74148388 ])
74158389
7416 # gettext.m4 serial 37 (gettext-0.14.4)
7417 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
8390 # lock.m4 serial 6 (gettext-0.16)
8391 dnl Copyright (C) 2005-2006 Free Software Foundation, Inc.
8392 dnl This file is free software; the Free Software Foundation
8393 dnl gives unlimited permission to copy and/or distribute it,
8394 dnl with or without modifications, as long as this notice is preserved.
8395
8396 dnl From Bruno Haible.
8397
8398 dnl Tests for a multithreading library to be used.
8399 dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS,
8400 dnl USE_PTH_THREADS, USE_WIN32_THREADS
8401 dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use
8402 dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with
8403 dnl libtool).
8404 dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for
8405 dnl programs that really need multithread functionality. The difference
8406 dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak
8407 dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread".
8408 dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for
8409 dnl multithread-safe programs.
8410
8411 AC_DEFUN([gl_LOCK_EARLY],
8412 [
8413 AC_REQUIRE([gl_LOCK_EARLY_BODY])
8414 ])
8415
8416 dnl The guts of gl_LOCK_EARLY. Needs to be expanded only once.
8417
8418 AC_DEFUN([gl_LOCK_EARLY_BODY],
8419 [
8420 dnl Ordering constraints: This macro modifies CPPFLAGS in a way that
8421 dnl influences the result of the autoconf tests that test for *_unlocked
8422 dnl declarations, on AIX 5 at least. Therefore it must come early.
8423 AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl
8424 AC_BEFORE([$0], [gl_ARGP])dnl
8425
8426 AC_REQUIRE([AC_CANONICAL_HOST])
8427 AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems
8428 dnl Check for multithreading.
8429 AC_ARG_ENABLE(threads,
8430 AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API])
8431 AC_HELP_STRING([--disable-threads], [build without multithread safety]),
8432 [gl_use_threads=$enableval],
8433 [case "$host_os" in
8434 dnl Disable multithreading by default on OSF/1, because it interferes
8435 dnl with fork()/exec(): When msgexec is linked with -lpthread, its child
8436 dnl process gets an endless segmentation fault inside execvp().
8437 osf*) gl_use_threads=no ;;
8438 *) gl_use_threads=yes ;;
8439 esac
8440 ])
8441 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8442 # For using <pthread.h>:
8443 case "$host_os" in
8444 osf*)
8445 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
8446 # groks <pthread.h>. cc also understands the flag -pthread, but
8447 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
8448 # 2. putting a flag into CPPFLAGS that has an effect on the linker
8449 # causes the AC_TRY_LINK test below to succeed unexpectedly,
8450 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
8451 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
8452 ;;
8453 esac
8454 # Some systems optimize for single-threaded programs by default, and
8455 # need special flags to disable these optimizations. For example, the
8456 # definition of 'errno' in <errno.h>.
8457 case "$host_os" in
8458 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
8459 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
8460 esac
8461 fi
8462 ])
8463
8464 dnl The guts of gl_LOCK. Needs to be expanded only once.
8465
8466 AC_DEFUN([gl_LOCK_BODY],
8467 [
8468 AC_REQUIRE([gl_LOCK_EARLY_BODY])
8469 gl_threads_api=none
8470 LIBTHREAD=
8471 LTLIBTHREAD=
8472 LIBMULTITHREAD=
8473 LTLIBMULTITHREAD=
8474 if test "$gl_use_threads" != no; then
8475 dnl Check whether the compiler and linker support weak declarations.
8476 AC_MSG_CHECKING([whether imported symbols can be declared weak])
8477 gl_have_weak=no
8478 AC_TRY_LINK([extern void xyzzy ();
8479 #pragma weak xyzzy], [xyzzy();], [gl_have_weak=yes])
8480 AC_MSG_RESULT([$gl_have_weak])
8481