summaryrefslogtreecommitdiff
path: root/ac
diff options
context:
space:
mode:
authorSimeon Simeonov2018-02-26 11:23:00 +0100
committerSimeon Simeonov2018-02-26 11:23:00 +0100
commit0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch)
treeaf916a30553c78ce9d4f2d8658656a175c5b6921 /ac
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'ac')
-rw-r--r--ac/Makefile.am9
-rw-r--r--ac/Makefile.in497
-rw-r--r--ac/README6
-rw-r--r--ac/aclocal-include.m412
-rw-r--r--ac/check-type.m427
-rw-r--r--ac/gnupg-check-typedef.m416
-rw-r--r--ac/missing/gdk-pixbuf.m4166
-rw-r--r--ac/missing/gettext.m4487
-rw-r--r--ac/missing/gpgme.m4236
9 files changed, 1456 insertions, 0 deletions
diff --git a/ac/Makefile.am b/ac/Makefile.am
new file mode 100644
index 0000000..719a11b
--- /dev/null
+++ b/ac/Makefile.am
@@ -0,0 +1,9 @@
1MACROS = \
2 aclocal-include.m4 \
3 check-type.m4 \
4 gnupg-check-typedef.m4
5
6EXTRA_DIST = $(MACROS) \
7 missing/gdk-pixbuf.m4 \
8 missing/gettext.m4 \
9 missing/gpgme.m4
diff --git a/ac/Makefile.in b/ac/Makefile.in
new file mode 100644
index 0000000..813dd04
--- /dev/null
+++ b/ac/Makefile.in
@@ -0,0 +1,497 @@
1# Makefile.in generated by automake 1.14.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2013 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16VPATH = @srcdir@
17am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18am__make_running_with_option = \
19 case $${target_option-} in \
20 ?) ;; \
21 *) echo "am__make_running_with_option: internal error: invalid" \
22 "target option '$${target_option-}' specified" >&2; \
23 exit 1;; \
24 esac; \
25 has_opt=no; \
26 sane_makeflags=$$MAKEFLAGS; \
27 if $(am__is_gnu_make); then \
28 sane_makeflags=$$MFLAGS; \
29 else \
30 case $$MAKEFLAGS in \
31 *\\[\ \ ]*) \
32 bs=\\; \
33 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
34 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
35 esac; \
36 fi; \
37 skip_next=no; \
38 strip_trailopt () \
39 { \
40 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
41 }; \
42 for flg in $$sane_makeflags; do \
43 test $$skip_next = yes && { skip_next=no; continue; }; \
44 case $$flg in \
45 *=*|--*) continue;; \
46 -*I) strip_trailopt 'I'; skip_next=yes;; \
47 -*I?*) strip_trailopt 'I';; \
48 -*O) strip_trailopt 'O'; skip_next=yes;; \
49 -*O?*) strip_trailopt 'O';; \
50 -*l) strip_trailopt 'l'; skip_next=yes;; \
51 -*l?*) strip_trailopt 'l';; \
52 -[dEDm]) skip_next=yes;; \
53 -[JT]) skip_next=yes;; \
54 esac; \
55 case $$flg in \
56 *$$target_option*) has_opt=yes; break;; \
57 esac; \
58 done; \
59 test $$has_opt = yes
60am__make_dryrun = (target_option=n; $(am__make_running_with_option))
61am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
62pkgdatadir = $(datadir)/@PACKAGE@
63pkgincludedir = $(includedir)/@PACKAGE@
64pkglibdir = $(libdir)/@PACKAGE@
65pkglibexecdir = $(libexecdir)/@PACKAGE@
66am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
67install_sh_DATA = $(install_sh) -c -m 644
68install_sh_PROGRAM = $(install_sh) -c
69install_sh_SCRIPT = $(install_sh) -c
70INSTALL_HEADER = $(INSTALL_DATA)
71transform = $(program_transform_name)
72NORMAL_INSTALL = :
73PRE_INSTALL = :
74POST_INSTALL = :
75NORMAL_UNINSTALL = :
76PRE_UNINSTALL = :
77POST_UNINSTALL = :
78build_triplet = @build@
79host_triplet = @host@
80target_triplet = @target@
81subdir = ac
82DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/mkinstalldirs README
84ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
85am__aclocal_m4_deps = $(top_srcdir)/ac/aclocal-include.m4 \
86 $(top_srcdir)/ac/gnupg-check-typedef.m4 \
87 $(top_srcdir)/configure.ac
88am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
89 $(ACLOCAL_M4)
90mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
91CONFIG_HEADER = $(top_builddir)/config.h
92CONFIG_CLEAN_FILES =
93CONFIG_CLEAN_VPATH_FILES =
94AM_V_P = $(am__v_P_@AM_V@)
95am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
96am__v_P_0 = false
97am__v_P_1 = :
98AM_V_GEN = $(am__v_GEN_@AM_V@)
99am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
100am__v_GEN_0 = @echo " GEN " $@;
101am__v_GEN_1 =
102AM_V_at = $(am__v_at_@AM_V@)
103am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
104am__v_at_0 = @
105am__v_at_1 =
106SOURCES =
107DIST_SOURCES =
108am__can_run_installinfo = \
109 case $$AM_UPDATE_INFO_DIR in \
110 n|no|NO) false;; \
111 *) (install-info --version) >/dev/null 2>&1;; \
112 esac
113am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
114DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
115ACLOCAL = @ACLOCAL@
116ALLOCA = @ALLOCA@
117AMTAR = @AMTAR@
118AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
119AR = @AR@
120AUTOCONF = @AUTOCONF@
121AUTOHEADER = @AUTOHEADER@
122AUTOMAKE = @AUTOMAKE@
123AWK = @AWK@
124BUILD_REVISION = @BUILD_REVISION@
125CATALOGS = @CATALOGS@
126CATOBJEXT = @CATOBJEXT@
127CC = @CC@
128CCDEPMODE = @CCDEPMODE@
129CFLAGS = @CFLAGS@
130CPP = @CPP@
131CPPFLAGS = @CPPFLAGS@
132CYGPATH_W = @CYGPATH_W@
133DATADIRNAME = @DATADIRNAME@
134DEFS = @DEFS@
135DEPDIR = @DEPDIR@
136DEVEL_VERSION = @DEVEL_VERSION@
137DLLTOOL = @DLLTOOL@
138DSYMUTIL = @DSYMUTIL@
139DUMPBIN = @DUMPBIN@
140ECHO_C = @ECHO_C@
141ECHO_N = @ECHO_N@
142ECHO_T = @ECHO_T@
143EGREP = @EGREP@
144EXEEXT = @EXEEXT@
145EXTRA_VERSION = @EXTRA_VERSION@
146FGREP = @FGREP@
147GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
148GLIB_CFLAGS = @GLIB_CFLAGS@
149GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@
150GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
151GLIB_LIBS = @GLIB_LIBS@
152GLIB_MKENUMS = @GLIB_MKENUMS@
153GMOFILES = @GMOFILES@
154GMSGFMT = @GMSGFMT@
155GOBJECT_QUERY = @GOBJECT_QUERY@
156GPGME_CFLAGS = @GPGME_CFLAGS@
157GPGME_CONFIG = @GPGME_CONFIG@
158GPGME_LIBS = @GPGME_LIBS@
159GREP = @GREP@
160GTK_CFLAGS = @GTK_CFLAGS@
161GTK_LIBS = @GTK_LIBS@
162INSTALL = @INSTALL@
163INSTALL_DATA = @INSTALL_DATA@
164INSTALL_PROGRAM = @INSTALL_PROGRAM@
165INSTALL_SCRIPT = @INSTALL_SCRIPT@
166INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
167INSTOBJEXT = @INSTOBJEXT@
168INTLLIBS = @INTLLIBS@
169LD = @LD@
170LDAP_LIBS = @LDAP_LIBS@
171LDFLAGS = @LDFLAGS@
172LEX = @LEX@
173LEXLIB = @LEXLIB@
174LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
175LIBICONV = @LIBICONV@
176LIBOBJS = @LIBOBJS@
177LIBS = @LIBS@
178LIBSYLPH_CFLAGS = @LIBSYLPH_CFLAGS@
179LIBSYLPH_LIBS = @LIBSYLPH_LIBS@
180LIBTOOL = @LIBTOOL@
181LIPO = @LIPO@
182LN_S = @LN_S@
183LTLIBICONV = @LTLIBICONV@
184LTLIBOBJS = @LTLIBOBJS@
185LT_AGE = @LT_AGE@
186LT_CURRENT = @LT_CURRENT@
187LT_RELEASE = @LT_RELEASE@
188LT_REVISION = @LT_REVISION@
189MAINT = @MAINT@
190MAJOR_VERSION = @MAJOR_VERSION@
191MAKEINFO = @MAKEINFO@
192MANIFEST_TOOL = @MANIFEST_TOOL@
193MICRO_VERSION = @MICRO_VERSION@
194MINOR_VERSION = @MINOR_VERSION@
195MKDIR_P = @MKDIR_P@
196MKINSTALLDIRS = @MKINSTALLDIRS@
197MSGFMT = @MSGFMT@
198MSGFMT_OPTS = @MSGFMT_OPTS@
199NM = @NM@
200NMEDIT = @NMEDIT@
201OBJDUMP = @OBJDUMP@
202OBJEXT = @OBJEXT@
203OPENSSL_CFLAGS = @OPENSSL_CFLAGS@
204OPENSSL_LIBS = @OPENSSL_LIBS@
205OTOOL = @OTOOL@
206OTOOL64 = @OTOOL64@
207PACKAGE = @PACKAGE@
208PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
209PACKAGE_NAME = @PACKAGE_NAME@
210PACKAGE_STRING = @PACKAGE_STRING@
211PACKAGE_TARNAME = @PACKAGE_TARNAME@
212PACKAGE_URL = @PACKAGE_URL@
213PACKAGE_VERSION = @PACKAGE_VERSION@
214PATH_SEPARATOR = @PATH_SEPARATOR@
215PKG_CONFIG = @PKG_CONFIG@
216PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
217PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
218POFILES = @POFILES@
219POSUB = @POSUB@
220PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@
221PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@
222RANLIB = @RANLIB@
223SED = @SED@
224SET_MAKE = @SET_MAKE@
225SHELL = @SHELL@
226STRIP = @STRIP@
227SYLPHEED_LIBS = @SYLPHEED_LIBS@
228USE_NLS = @USE_NLS@
229VERSION = @VERSION@
230WINDRES = @WINDRES@
231XGETTEXT = @XGETTEXT@
232YACC = @YACC@
233YFLAGS = @YFLAGS@
234abs_builddir = @abs_builddir@
235abs_srcdir = @abs_srcdir@
236abs_top_builddir = @abs_top_builddir@
237abs_top_srcdir = @abs_top_srcdir@
238ac_ct_AR = @ac_ct_AR@
239ac_ct_CC = @ac_ct_CC@
240ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
241am__include = @am__include@
242am__leading_dot = @am__leading_dot@
243am__quote = @am__quote@
244am__tar = @am__tar@
245am__untar = @am__untar@
246bindir = @bindir@
247build = @build@
248build_alias = @build_alias@
249build_cpu = @build_cpu@
250build_os = @build_os@
251build_vendor = @build_vendor@
252builddir = @builddir@
253datadir = @datadir@
254datarootdir = @datarootdir@
255docdir = @docdir@
256dvidir = @dvidir@
257exec_prefix = @exec_prefix@
258faqdir = @faqdir@
259host = @host@
260host_alias = @host_alias@
261host_cpu = @host_cpu@
262host_os = @host_os@
263host_vendor = @host_vendor@
264htmldir = @htmldir@
265includedir = @includedir@
266infodir = @infodir@
267install_sh = @install_sh@
268libdir = @libdir@
269libexecdir = @libexecdir@
270localedir = @localedir@
271localstatedir = @localstatedir@
272mandir = @mandir@
273manualdir = @manualdir@
274mkdir_p = @mkdir_p@
275oldincludedir = @oldincludedir@
276pdfdir = @pdfdir@
277plugindir = @plugindir@
278prefix = @prefix@
279program_transform_name = @program_transform_name@
280psdir = @psdir@
281sbindir = @sbindir@
282sharedstatedir = @sharedstatedir@
283srcdir = @srcdir@
284sysconfdir = @sysconfdir@
285target = @target@
286target_alias = @target_alias@
287target_cpu = @target_cpu@
288target_os = @target_os@
289target_vendor = @target_vendor@
290themedir = @themedir@
291top_build_prefix = @top_build_prefix@
292top_builddir = @top_builddir@
293top_srcdir = @top_srcdir@
294MACROS = \
295 aclocal-include.m4 \
296 check-type.m4 \
297 gnupg-check-typedef.m4
298
299EXTRA_DIST = $(MACROS) \
300 missing/gdk-pixbuf.m4 \
301 missing/gettext.m4 \
302 missing/gpgme.m4
303
304all: all-am
305
306.SUFFIXES:
307$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
308 @for dep in $?; do \
309 case '$(am__configure_deps)' in \
310 *$$dep*) \
311 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
312 && { if test -f $@; then exit 0; else break; fi; }; \
313 exit 1;; \
314 esac; \
315 done; \
316 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ac/Makefile'; \
317 $(am__cd) $(top_srcdir) && \
318 $(AUTOMAKE) --foreign ac/Makefile
319.PRECIOUS: Makefile
320Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
321 @case '$?' in \
322 *config.status*) \
323 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
324 *) \
325 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
326 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
327 esac;
328
329$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
330 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
331
332$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
333 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
334$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
335 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
336$(am__aclocal_m4_deps):
337
338mostlyclean-libtool:
339 -rm -f *.lo
340
341clean-libtool:
342 -rm -rf .libs _libs
343tags TAGS:
344
345ctags CTAGS:
346
347cscope cscopelist:
348
349
350distdir: $(DISTFILES)
351 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
352 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
353 list='$(DISTFILES)'; \
354 dist_files=`for file in $$list; do echo $$file; done | \
355 sed -e "s|^$$srcdirstrip/||;t" \
356 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
357 case $$dist_files in \
358 */*) $(MKDIR_P) `echo "$$dist_files" | \
359 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
360 sort -u` ;; \
361 esac; \
362 for file in $$dist_files; do \
363 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
364 if test -d $$d/$$file; then \
365 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
366 if test -d "$(distdir)/$$file"; then \
367 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
368 fi; \
369 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
370 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
371 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
372 fi; \
373 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
374 else \
375 test -f "$(distdir)/$$file" \
376 || cp -p $$d/$$file "$(distdir)/$$file" \
377 || exit 1; \
378 fi; \
379 done
380check-am: all-am
381check: check-am
382all-am: Makefile
383installdirs:
384install: install-am
385install-exec: install-exec-am
386install-data: install-data-am
387uninstall: uninstall-am
388
389install-am: all-am
390 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
391
392installcheck: installcheck-am
393install-strip:
394 if test -z '$(STRIP)'; then \
395 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
396 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
397 install; \
398 else \
399 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
400 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
401 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
402 fi
403mostlyclean-generic:
404
405clean-generic:
406
407distclean-generic:
408 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
409 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
410
411maintainer-clean-generic:
412 @echo "This command is intended for maintainers to use"
413 @echo "it deletes files that may require special tools to rebuild."
414clean: clean-am
415
416clean-am: clean-generic clean-libtool mostlyclean-am
417
418distclean: distclean-am
419 -rm -f Makefile
420distclean-am: clean-am distclean-generic
421
422dvi: dvi-am
423
424dvi-am:
425
426html: html-am
427
428html-am:
429
430info: info-am
431
432info-am:
433
434install-data-am:
435
436install-dvi: install-dvi-am
437
438install-dvi-am:
439
440install-exec-am:
441
442install-html: install-html-am
443
444install-html-am:
445
446install-info: install-info-am
447
448install-info-am:
449
450install-man:
451
452install-pdf: install-pdf-am
453
454install-pdf-am:
455
456install-ps: install-ps-am
457
458install-ps-am:
459
460installcheck-am:
461
462maintainer-clean: maintainer-clean-am
463 -rm -f Makefile
464maintainer-clean-am: distclean-am maintainer-clean-generic
465
466mostlyclean: mostlyclean-am
467
468mostlyclean-am: mostlyclean-generic mostlyclean-libtool
469
470pdf: pdf-am
471
472pdf-am:
473
474ps: ps-am
475
476ps-am:
477
478uninstall-am:
479
480.MAKE: install-am install-strip
481
482.PHONY: all all-am check check-am clean clean-generic clean-libtool \
483 cscopelist-am ctags-am distclean distclean-generic \
484 distclean-libtool distdir dvi dvi-am html html-am info info-am \
485 install install-am install-data install-data-am install-dvi \
486 install-dvi-am install-exec install-exec-am install-html \
487 install-html-am install-info install-info-am install-man \
488 install-pdf install-pdf-am install-ps install-ps-am \
489 install-strip installcheck installcheck-am installdirs \
490 maintainer-clean maintainer-clean-generic mostlyclean \
491 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
492 tags-am uninstall uninstall-am
493
494
495# Tell versions [3.59,3.63) of GNU make to not export all variables.
496# Otherwise a system limit (for SysV at least) may be exceeded.
497.NOEXPORT:
diff --git a/ac/README b/ac/README
new file mode 100644
index 0000000..39aab32
--- /dev/null
+++ b/ac/README
@@ -0,0 +1,6 @@
1If you encountered errors like:
2
3 aclocal: configure.in: ??: macro `AM_SOMETHING' not found in library
4
5when executing autogen.sh, copy the corresponding m4 files in the missing/
6directory into here (or install the development packages).
diff --git a/ac/aclocal-include.m4 b/ac/aclocal-include.m4
new file mode 100644
index 0000000..aac5f8a
--- /dev/null
+++ b/ac/aclocal-include.m4
@@ -0,0 +1,12 @@
1# aclocal-include.m4
2#
3# This macro adds the name macrodir to the set of directories
4# that `aclocal' searches for macros.
5
6dnl SYLPHEED_ACLOCAL_INCLUDE(macrodir)
7AC_DEFUN([SYLPHEED_ACLOCAL_INCLUDE],
8[
9 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
10
11 for k in $1 ; do ACLOCAL="$ACLOCAL -I $k" ; done
12])
diff --git a/ac/check-type.m4 b/ac/check-type.m4
new file mode 100644
index 0000000..e65ea03
--- /dev/null
+++ b/ac/check-type.m4
@@ -0,0 +1,27 @@
1dnl SYLPHEED_CHECK_TYPE(TYPE, DEFAULT [, INCLUDES, COMMENT])
2dnl
3dnl Like AC_CHECK_TYPE, but in addition to `sys/types.h', `stdlib.h' and
4dnl `stddef.h' checks files included by INCLUDES, which should be a
5dnl series of #include statements. If TYPE is not defined, define it
6dnl to DEFAULT.
7dnl
8AC_DEFUN([SYLPHEED_CHECK_TYPE],
9[AC_REQUIRE([AC_HEADER_STDC])dnl
10AC_MSG_CHECKING(for $1)
11AC_CACHE_VAL(sylpheed_cv_type_$1,
12[AC_TRY_COMPILE([
13#include <sys/types.h>
14#if STDC_HEADERS
15#include <stdlib.h>
16#include <stddef.h>
17#endif
18$3
19], [
20#undef $1
21int a = sizeof($1);
22], sylpheed_cv_type_$1=yes, sylpheed_cv_type_$1=no)])dnl
23AC_MSG_RESULT($sylpheed_cv_type_$1)
24if test $sylpheed_cv_type_$1 = no; then
25 AC_DEFINE($1, $2, $4)
26fi
27])
diff --git a/ac/gnupg-check-typedef.m4 b/ac/gnupg-check-typedef.m4
new file mode 100644
index 0000000..28fd902
--- /dev/null
+++ b/ac/gnupg-check-typedef.m4
@@ -0,0 +1,16 @@
1dnl GNUPG_CHECK_TYPEDEF(TYPE, HAVE_NAME [, COMMENT])
2dnl Check whether a typedef exists and create a #define $2 if it exists
3dnl
4AC_DEFUN([GNUPG_CHECK_TYPEDEF],
5 [ AC_MSG_CHECKING(for $1 typedef)
6 AC_CACHE_VAL(gnupg_cv_typedef_$1,
7 [AC_TRY_COMPILE([#include <stdlib.h>
8 #include <sys/types.h>], [
9 #undef $1
10 int a = sizeof($1);
11 ], gnupg_cv_typedef_$1=yes, gnupg_cv_typedef_$1=no )])
12 AC_MSG_RESULT($gnupg_cv_typedef_$1)
13 if test "$gnupg_cv_typedef_$1" = yes; then
14 AC_DEFINE($2, 1, $3)
15 fi
16 ])
diff --git a/ac/missing/gdk-pixbuf.m4 b/ac/missing/gdk-pixbuf.m4
new file mode 100644
index 0000000..9da7a6a
--- /dev/null
+++ b/ac/missing/gdk-pixbuf.m4
@@ -0,0 +1,166 @@
1# Configure paths for gdk-pixbuf
2# Elliot Lee 2000-01-10
3# stolen from Raph Levien 98-11-18
4# stolen from Manish Singh 98-9-30
5# stolen back from Frank Belew
6# stolen from Manish Singh
7# Shamelessly stolen from Owen Taylor
8
9dnl AM_PATH_GDK_PIXBUF([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
10dnl Test for GDK_PIXBUF, and define GDK_PIXBUF_CFLAGS and GDK_PIXBUF_LIBS
11dnl
12AC_DEFUN(AM_PATH_GDK_PIXBUF,
13[dnl
14dnl Get the cflags and libraries from the gdk-pixbuf-config script
15dnl
16AC_ARG_WITH(gdk-pixbuf-prefix,[ --with-gdk-pixbuf-prefix=PFX Prefix where GDK_PIXBUF is installed (optional)],
17 gdk_pixbuf_prefix="$withval", gdk_pixbuf_prefix="")
18AC_ARG_WITH(gdk-pixbuf-exec-prefix,[ --with-gdk-pixbuf-exec-prefix=PFX Exec prefix where GDK_PIXBUF is installed (optional)],
19 gdk_pixbuf_exec_prefix="$withval", gdk_pixbuf_exec_prefix="")
20AC_ARG_ENABLE(gdk_pixbuftest, [ --disable-gdk_pixbuftest Do not try to compile and run a test GDK_PIXBUF program],
21 , enable_gdk_pixbuftest=yes)
22
23 if test x$gdk_pixbuf_exec_prefix != x ; then
24 gdk_pixbuf_args="$gdk_pixbuf_args --exec-prefix=$gdk_pixbuf_exec_prefix"
25 if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
26 GDK_PIXBUF_CONFIG=$gdk_pixbuf_exec_prefix/gdk-pixbuf-config
27 fi
28 fi
29 if test x$gdk_pixbuf_prefix != x ; then
30 gdk_pixbuf_args="$gdk_pixbuf_args --prefix=$gdk_pixbuf_prefix"
31 if test x${GDK_PIXBUF_CONFIG+set} = xset ; then
32 GDK_PIXBUF_CONFIG=$gdk_pixbuf_prefix/bin/gdk-pixbuf-config
33 fi
34 fi
35
36 AC_PATH_PROG(GDK_PIXBUF_CONFIG, gdk-pixbuf-config, no)
37 min_gdk_pixbuf_version=ifelse([$1], ,0.2.5,$1)
38 AC_MSG_CHECKING(for GDK_PIXBUF - version >= $min_gdk_pixbuf_version)
39 no_gdk_pixbuf=""
40 if test "$GDK_PIXBUF_CONFIG" = "no" ; then
41 no_gdk_pixbuf=yes
42 else
43 GDK_PIXBUF_CFLAGS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --cflags`
44 GDK_PIXBUF_LIBS=`$GDK_PIXBUF_CONFIG $gdk_pixbufconf_args --libs`
45
46 gdk_pixbuf_major_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
47 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
48 gdk_pixbuf_minor_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_args --version | \
49 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
50 gdk_pixbuf_micro_version=`$GDK_PIXBUF_CONFIG $gdk_pixbuf_config_args --version | \
51 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
52 if test "x$enable_gdk_pixbuftest" = "xyes" ; then
53 ac_save_CFLAGS="$CFLAGS"
54 ac_save_LIBS="$LIBS"
55 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
56 LIBS="$LIBS $GDK_PIXBUF_LIBS"
57dnl
58dnl Now check if the installed GDK_PIXBUF is sufficiently new. (Also sanity
59dnl checks the results of gdk-pixbuf-config to some extent
60dnl
61 rm -f conf.gdk_pixbuftest
62 AC_TRY_RUN([
63#include <stdio.h>
64#include <stdlib.h>
65#include <string.h>
66#include <gdk-pixbuf/gdk-pixbuf.h>
67
68char*
69my_strdup (char *str)
70{
71 char *new_str;
72
73 if (str)
74 {
75 new_str = malloc ((strlen (str) + 1) * sizeof(char));
76 strcpy (new_str, str);
77 }
78 else
79 new_str = NULL;
80
81 return new_str;
82}
83
84int main ()
85{
86 int major, minor, micro;
87 char *tmp_version;
88
89 system ("touch conf.gdk_pixbuftest");
90
91 /* HP/UX 9 (%@#!) writes to sscanf strings */
92 tmp_version = my_strdup("$min_gdk_pixbuf_version");
93 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
94 printf("%s, bad version string\n", "$min_gdk_pixbuf_version");
95 exit(1);
96 }
97
98 if (($gdk_pixbuf_major_version > major) ||
99 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version > minor)) ||
100 (($gdk_pixbuf_major_version == major) && ($gdk_pixbuf_minor_version == minor) && ($gdk_pixbuf_micro_version >= micro)))
101 {
102 return 0;
103 }
104 else
105 {
106 printf("\n*** 'gdk-pixbuf-config --version' returned %d.%d.%d, but the minimum version\n", $gdk_pixbuf_major_version, $gdk_pixbuf_minor_version, $gdk_pixbuf_micro_version);
107 printf("*** of GDK_PIXBUF required is %d.%d.%d. If gdk-pixbuf-config is correct, then it is\n", major, minor, micro);
108 printf("*** best to upgrade to the required version.\n");
109 printf("*** If gdk-pixbuf-config was wrong, set the environment variable GDK_PIXBUF_CONFIG\n");
110 printf("*** to point to the correct copy of gdk-pixbuf-config, and remove the file\n");
111 printf("*** config.cache before re-running configure\n");
112 return 1;
113 }
114}
115
116],, no_gdk_pixbuf=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
117 CFLAGS="$ac_save_CFLAGS"
118 LIBS="$ac_save_LIBS"
119 fi
120 fi
121 if test "x$no_gdk_pixbuf" = x ; then
122 AC_MSG_RESULT(yes)
123 ifelse([$2], , :, [$2])
124 else
125 AC_MSG_RESULT(no)
126 if test "$GDK_PIXBUF_CONFIG" = "no" ; then
127 echo "*** The gdk-pixbuf-config script installed by GDK_PIXBUF could not be found"
128 echo "*** If GDK_PIXBUF was installed in PREFIX, make sure PREFIX/bin is in"
129 echo "*** your path, or set the GDK_PIXBUF_CONFIG environment variable to the"
130 echo "*** full path to gdk-pixbuf-config."
131 else
132 if test -f conf.gdk_pixbuftest ; then
133 :
134 else
135 echo "*** Could not run GDK_PIXBUF test program, checking why..."
136 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS"
137 LIBS="$LIBS $GDK_PIXBUF_LIBS"
138 AC_TRY_LINK([
139#include <stdio.h>
140#include <gdk-pixbuf/gdk-pixbuf.h>
141], [ return 0; ],
142 [ echo "*** The test program compiled, but did not run. This usually means"
143 echo "*** that the run-time linker is not finding GDK_PIXBUF or finding the wrong"
144 echo "*** version of GDK_PIXBUF. If it is not finding GDK_PIXBUF, you'll need to set your"
145 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
146 echo "*** to the installed location Also, make sure you have run ldconfig if that"
147 echo "*** is required on your system"
148 echo "***"
149 echo "*** If you have an old version installed, it is best to remove it, although"
150 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
151 [ echo "*** The test program failed to compile or link. See the file config.log for the"
152 echo "*** exact error that occured. This usually means GDK_PIXBUF was incorrectly installed"
153 echo "*** or that you have moved GDK_PIXBUF since it was installed. In the latter case, you"
154 echo "*** may want to edit the gdk-pixbuf-config script: $GDK_PIXBUF_CONFIG" ])
155 CFLAGS="$ac_save_CFLAGS"
156 LIBS="$ac_save_LIBS"
157 fi
158 fi
159 GDK_PIXBUF_CFLAGS=""
160 GDK_PIXBUF_LIBS=""
161 ifelse([$3], , :, [$3])
162 fi
163 AC_SUBST(GDK_PIXBUF_CFLAGS)
164 AC_SUBST(GDK_PIXBUF_LIBS)
165 rm -f conf.gdk_pixbuftest
166])
diff --git a/ac/missing/gettext.m4 b/ac/missing/gettext.m4
new file mode 100644
index 0000000..a374f03
--- /dev/null
+++ b/ac/missing/gettext.m4
@@ -0,0 +1,487 @@
1# gettext.m4 serial 28 (gettext-0.13)
2dnl Copyright (C) 1995-2003 Free Software Foundation, Inc.
3dnl This file is free software, distributed under the terms of the GNU
4dnl General Public License. As a special exception to the GNU General
5dnl Public License, this file may be distributed as part of a program
6dnl that contains a configuration script generated by Autoconf, under
7dnl the same distribution terms as the rest of that program.
8dnl
9dnl This file can can be used in projects which are not available under
10dnl the GNU General Public License or the GNU Library General Public
11dnl License but which still want to provide support for the GNU gettext
12dnl functionality.
13dnl Please note that the actual code of the GNU gettext library is covered
14dnl by the GNU Library General Public License, and the rest of the GNU
15dnl gettext package package is covered by the GNU General Public License.
16dnl They are *not* in the public domain.
17
18dnl Authors:
19dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
20dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
21
22dnl Macro to add for using GNU gettext.
23
24dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
25dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
26dnl default (if it is not specified or empty) is 'no-libtool'.
27dnl INTLSYMBOL should be 'external' for packages with no intl directory,
28dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
29dnl If INTLSYMBOL is 'use-libtool', then a libtool library
30dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
31dnl depending on --{enable,disable}-{shared,static} and on the presence of
32dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
33dnl $(top_builddir)/intl/libintl.a will be created.
34dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
35dnl implementations (in libc or libintl) without the ngettext() function
36dnl will be ignored. If NEEDSYMBOL is specified and is
37dnl 'need-formatstring-macros', then GNU gettext implementations that don't
38dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
39dnl INTLDIR is used to find the intl libraries. If empty,
40dnl the value `$(top_builddir)/intl/' is used.
41dnl
42dnl The result of the configuration is one of three cases:
43dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
44dnl and used.
45dnl Catalog format: GNU --> install in $(datadir)
46dnl Catalog extension: .mo after installation, .gmo in source tree
47dnl 2) GNU gettext has been found in the system's C library.
48dnl Catalog format: GNU --> install in $(datadir)
49dnl Catalog extension: .mo after installation, .gmo in source tree
50dnl 3) No internationalization, always use English msgid.
51dnl Catalog format: none
52dnl Catalog extension: none
53dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
54dnl The use of .gmo is historical (it was needed to avoid overwriting the
55dnl GNU format catalogs when building on a platform with an X/Open gettext),
56dnl but we keep it in order not to force irrelevant filename changes on the
57dnl maintainers.
58dnl
59AC_DEFUN([AM_GNU_GETTEXT],
60[
61 dnl Argument checking.
62 ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
63 [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
64])])])])])
65 ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
66 [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
67])])])])
68 define(gt_included_intl, ifelse([$1], [external], [no], [yes]))
69 define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], []))
70
71 AC_REQUIRE([AM_PO_SUBDIRS])dnl
72 ifelse(gt_included_intl, yes, [
73 AC_REQUIRE([AM_INTL_SUBDIR])dnl
74 ])
75
76 dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
77 AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
78 AC_REQUIRE([AC_LIB_RPATH])
79
80 dnl Sometimes libintl requires libiconv, so first search for libiconv.
81 dnl Ideally we would do this search only after the
82 dnl if test "$USE_NLS" = "yes"; then
83 dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then
84 dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
85 dnl the configure script would need to contain the same shell code
86 dnl again, outside any 'if'. There are two solutions:
87 dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
88 dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
89 dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
90 dnl documented, we avoid it.
91 ifelse(gt_included_intl, yes, , [
92 AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
93 ])
94
95 dnl Set USE_NLS.
96 AM_NLS
97
98 ifelse(gt_included_intl, yes, [
99 BUILD_INCLUDED_LIBINTL=no
100 USE_INCLUDED_LIBINTL=no
101 ])
102 LIBINTL=
103 LTLIBINTL=
104 POSUB=
105
106 dnl If we use NLS figure out what method
107 if test "$USE_NLS" = "yes"; then
108 gt_use_preinstalled_gnugettext=no
109 ifelse(gt_included_intl, yes, [
110 AC_MSG_CHECKING([whether included gettext is requested])
111 AC_ARG_WITH(included-gettext,
112 [ --with-included-gettext use the GNU gettext library included here],
113 nls_cv_force_use_gnu_gettext=$withval,
114 nls_cv_force_use_gnu_gettext=no)
115 AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
116
117 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
118 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
119 ])
120 dnl User does not insist on using GNU NLS library. Figure out what
121 dnl to use. If GNU gettext is available we use this. Else we have
122 dnl to fall back to GNU NLS library.
123
124 dnl Add a version number to the cache macros.
125 define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1)))
126 define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc])
127 define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl])
128
129 AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc,
130 [AC_TRY_LINK([#include <libintl.h>
131]ifelse([$2], [need-formatstring-macros],
132[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
133#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
134#endif
135changequote(,)dnl
136typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
137changequote([,])dnl
138], [])[extern int _nl_msg_cat_cntr;
139extern int *_nl_domain_bindings;],
140 [bindtextdomain ("", "");
141return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings],
142 gt_cv_func_gnugettext_libc=yes,
143 gt_cv_func_gnugettext_libc=no)])
144
145 if test "$gt_cv_func_gnugettext_libc" != "yes"; then
146 dnl Sometimes libintl requires libiconv, so first search for libiconv.
147 ifelse(gt_included_intl, yes, , [
148 AM_ICONV_LINK
149 ])
150 dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
151 dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
152 dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
153 dnl even if libiconv doesn't exist.
154 AC_LIB_LINKFLAGS_BODY([intl])
155 AC_CACHE_CHECK([for GNU gettext in libintl],
156 gt_cv_func_gnugettext_libintl,
157 [gt_save_CPPFLAGS="$CPPFLAGS"
158 CPPFLAGS="$CPPFLAGS $INCINTL"
159 gt_save_LIBS="$LIBS"
160 LIBS="$LIBS $LIBINTL"
161 dnl Now see whether libintl exists and does not depend on libiconv.
162 AC_TRY_LINK([#include <libintl.h>
163]ifelse([$2], [need-formatstring-macros],
164[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
165#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
166#endif
167changequote(,)dnl
168typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
169changequote([,])dnl
170], [])[extern int _nl_msg_cat_cntr;
171extern
172#ifdef __cplusplus
173"C"
174#endif
175const char *_nl_expand_alias ();],
176 [bindtextdomain ("", "");
177return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
178 gt_cv_func_gnugettext_libintl=yes,
179 gt_cv_func_gnugettext_libintl=no)
180 dnl Now see whether libintl exists and depends on libiconv.
181 if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then
182 LIBS="$LIBS $LIBICONV"
183 AC_TRY_LINK([#include <libintl.h>
184]ifelse([$2], [need-formatstring-macros],
185[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
186#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
187#endif
188changequote(,)dnl
189typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
190changequote([,])dnl
191], [])[extern int _nl_msg_cat_cntr;
192extern
193#ifdef __cplusplus
194"C"
195#endif
196const char *_nl_expand_alias ();],
197 [bindtextdomain ("", "");
198return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)],
199 [LIBINTL="$LIBINTL $LIBICONV"
200 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
201 gt_cv_func_gnugettext_libintl=yes
202 ])
203 fi
204 CPPFLAGS="$gt_save_CPPFLAGS"
205 LIBS="$gt_save_LIBS"])
206 fi
207
208 dnl If an already present or preinstalled GNU gettext() is found,
209 dnl use it. But if this macro is used in GNU gettext, and GNU
210 dnl gettext is already preinstalled in libintl, we update this
211 dnl libintl. (Cf. the install rule in intl/Makefile.in.)
212 if test "$gt_cv_func_gnugettext_libc" = "yes" \
213 || { test "$gt_cv_func_gnugettext_libintl" = "yes" \
214 && test "$PACKAGE" != gettext-runtime \
215 && test "$PACKAGE" != gettext-tools; }; then
216 gt_use_preinstalled_gnugettext=yes
217 else
218 dnl Reset the values set by searching for libintl.
219 LIBINTL=
220 LTLIBINTL=
221 INCINTL=
222 fi
223
224 ifelse(gt_included_intl, yes, [
225 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
226 dnl GNU gettext is not found in the C library.
227 dnl Fall back on included GNU gettext library.
228 nls_cv_use_gnu_gettext=yes
229 fi
230 fi
231
232 if test "$nls_cv_use_gnu_gettext" = "yes"; then
233 dnl Mark actions used to generate GNU NLS library.
234 BUILD_INCLUDED_LIBINTL=yes
235 USE_INCLUDED_LIBINTL=yes
236 LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV"
237 LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV"
238 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
239 fi
240
241 if test "$gt_use_preinstalled_gnugettext" = "yes" \
242 || test "$nls_cv_use_gnu_gettext" = "yes"; then
243 dnl Mark actions to use GNU gettext tools.
244 CATOBJEXT=.gmo
245 fi
246 ])
247
248 if test "$gt_use_preinstalled_gnugettext" = "yes" \
249 || test "$nls_cv_use_gnu_gettext" = "yes"; then
250 AC_DEFINE(ENABLE_NLS, 1,
251 [Define to 1 if translation of program messages to the user's native language
252 is requested.])
253 else
254 USE_NLS=no
255 fi
256 fi
257
258 AC_MSG_CHECKING([whether to use NLS])
259 AC_MSG_RESULT([$USE_NLS])
260 if test "$USE_NLS" = "yes"; then
261 AC_MSG_CHECKING([where the gettext function comes from])
262 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
263 if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
264 gt_source="external libintl"
265 else
266 gt_source="libc"
267 fi
268 else
269 gt_source="included intl directory"
270 fi
271 AC_MSG_RESULT([$gt_source])
272 fi
273
274 if test "$USE_NLS" = "yes"; then
275
276 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
277 if test "$gt_cv_func_gnugettext_libintl" = "yes"; then
278 AC_MSG_CHECKING([how to link with libintl])
279 AC_MSG_RESULT([$LIBINTL])
280 AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
281 fi
282
283 dnl For backward compatibility. Some packages may be using this.
284 AC_DEFINE(HAVE_GETTEXT, 1,
285 [Define if the GNU gettext() function is already present or preinstalled.])
286 AC_DEFINE(HAVE_DCGETTEXT, 1,
287 [Define if the GNU dcgettext() function is already present or preinstalled.])
288 fi
289
290 dnl We need to process the po/ directory.
291 POSUB=po
292 fi
293
294 ifelse(gt_included_intl, yes, [
295 dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
296 dnl to 'yes' because some of the testsuite requires it.
297 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
298 BUILD_INCLUDED_LIBINTL=yes
299 fi
300
301 dnl Make all variables we use known to autoconf.
302 AC_SUBST(BUILD_INCLUDED_LIBINTL)
303 AC_SUBST(USE_INCLUDED_LIBINTL)
304 AC_SUBST(CATOBJEXT)
305
306 dnl For backward compatibility. Some configure.ins may be using this.
307 nls_cv_header_intl=
308 nls_cv_header_libgt=
309
310 dnl For backward compatibility. Some Makefiles may be using this.
311 DATADIRNAME=share
312 AC_SUBST(DATADIRNAME)
313
314 dnl For backward compatibility. Some Makefiles may be using this.
315 INSTOBJEXT=.mo
316 AC_SUBST(INSTOBJEXT)
317
318 dnl For backward compatibility. Some Makefiles may be using this.
319 GENCAT=gencat
320 AC_SUBST(GENCAT)
321
322 dnl For backward compatibility. Some Makefiles may be using this.
323 if test "$USE_INCLUDED_LIBINTL" = yes; then
324 INTLOBJS="\$(GETTOBJS)"
325 fi
326 AC_SUBST(INTLOBJS)
327
328 dnl Enable libtool support if the surrounding package wishes it.
329 INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
330 AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
331 ])
332
333 dnl For backward compatibility. Some Makefiles may be using this.
334 INTLLIBS="$LIBINTL"
335 AC_SUBST(INTLLIBS)
336
337 dnl Make all documented variables known to autoconf.
338 AC_SUBST(LIBINTL)
339 AC_SUBST(LTLIBINTL)
340 AC_SUBST(POSUB)
341])
342
343
344dnl Checks for all prerequisites of the intl subdirectory,
345dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS,
346dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL.
347AC_DEFUN([AM_INTL_SUBDIR],
348[
349 AC_REQUIRE([AC_PROG_INSTALL])dnl
350 AC_REQUIRE([AM_MKINSTALLDIRS])dnl
351 AC_REQUIRE([AC_PROG_CC])dnl
352 AC_REQUIRE([AC_CANONICAL_HOST])dnl
353 AC_REQUIRE([AC_PROG_RANLIB])dnl
354 AC_REQUIRE([AC_ISC_POSIX])dnl
355 AC_REQUIRE([AC_HEADER_STDC])dnl
356 AC_REQUIRE([AC_C_CONST])dnl
357 AC_REQUIRE([bh_C_SIGNED])dnl
358 AC_REQUIRE([AC_C_INLINE])dnl
359 AC_REQUIRE([AC_TYPE_OFF_T])dnl
360 AC_REQUIRE([AC_TYPE_SIZE_T])dnl
361 AC_REQUIRE([jm_AC_TYPE_LONG_LONG])dnl
362 AC_REQUIRE([gt_TYPE_LONGDOUBLE])dnl
363 AC_REQUIRE([gt_TYPE_WCHAR_T])dnl
364 AC_REQUIRE([gt_TYPE_WINT_T])dnl
365 AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
366 AC_REQUIRE([jm_AC_HEADER_STDINT_H])
367 AC_REQUIRE([gt_TYPE_INTMAX_T])
368 AC_REQUIRE([gt_PRINTF_POSIX])
369 AC_REQUIRE([AC_FUNC_ALLOCA])dnl
370 AC_REQUIRE([AC_FUNC_MMAP])dnl
371 AC_REQUIRE([jm_GLIBC21])dnl
372 AC_REQUIRE([gt_INTDIV0])dnl
373 AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl
374 AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl
375 AC_REQUIRE([gt_INTTYPES_PRI])dnl
376 AC_REQUIRE([gl_XSIZE])dnl
377
378 AC_CHECK_TYPE([ptrdiff_t], ,
379 [AC_DEFINE([ptrdiff_t], [long],
380 [Define as the type of the result of subtracting two pointers, if the system doesn't define it.])
381 ])
382 AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
383stdlib.h string.h unistd.h sys/param.h])
384 AC_CHECK_FUNCS([asprintf fwprintf getcwd getegid geteuid getgid getuid \
385mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
386strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
387__fsetlocking])
388
389 dnl Use the _snprintf function only if it is declared (because on NetBSD it
390 dnl is defined as a weak alias of snprintf; we prefer to use the latter).
391 gt_CHECK_DECL(_snprintf, [#include <stdio.h>])
392 gt_CHECK_DECL(_snwprintf, [#include <stdio.h>])
393
394 dnl Use the *_unlocked functions only if they are declared.
395 dnl (because some of them were defined without being declared in Solaris
396 dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built
397 dnl on Solaris 2.5.1 to run on Solaris 2.6).
398 dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13.
399 gt_CHECK_DECL(feof_unlocked, [#include <stdio.h>])
400 gt_CHECK_DECL(fgets_unlocked, [#include <stdio.h>])
401 gt_CHECK_DECL(getc_unlocked, [#include <stdio.h>])
402
403 case $gt_cv_func_printf_posix in
404 *yes) HAVE_POSIX_PRINTF=1 ;;
405 *) HAVE_POSIX_PRINTF=0 ;;
406 esac
407 AC_SUBST([HAVE_POSIX_PRINTF])
408 if test "$ac_cv_func_asprintf" = yes; then
409 HAVE_ASPRINTF=1
410 else
411 HAVE_ASPRINTF=0
412 fi
413 AC_SUBST([HAVE_ASPRINTF])
414 if test "$ac_cv_func_snprintf" = yes; then
415 HAVE_SNPRINTF=1
416 else
417 HAVE_SNPRINTF=0
418 fi
419 AC_SUBST([HAVE_SNPRINTF])
420 if test "$ac_cv_func_wprintf" = yes; then
421 HAVE_WPRINTF=1
422 else
423 HAVE_WPRINTF=0
424 fi
425 AC_SUBST([HAVE_WPRINTF])
426
427 AM_ICONV
428 AM_LANGINFO_CODESET
429 if test $ac_cv_header_locale_h = yes; then
430 AM_LC_MESSAGES
431 fi
432
433 dnl intl/plural.c is generated from intl/plural.y. It requires bison,
434 dnl because plural.y uses bison specific features. It requires at least
435 dnl bison-1.26 because earlier versions generate a plural.c that doesn't
436 dnl compile.
437 dnl bison is only needed for the maintainer (who touches plural.y). But in
438 dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put
439 dnl the rule in general Makefile. Now, some people carelessly touch the
440 dnl files or have a broken "make" program, hence the plural.c rule will
441 dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not
442 dnl present or too old.
443 AC_CHECK_PROGS([INTLBISON], [bison])
444 if test -z "$INTLBISON"; then
445 ac_verc_fail=yes
446 else
447 dnl Found it, now check the version.
448 AC_MSG_CHECKING([version of bison])
449changequote(<<,>>)dnl
450 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
451 case $ac_prog_version in
452 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
453 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
454changequote([,])dnl
455 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
456 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
457 esac
458 AC_MSG_RESULT([$ac_prog_version])
459 fi
460 if test $ac_verc_fail = yes; then
461 INTLBISON=:
462 fi
463])
464
465
466dnl gt_CHECK_DECL(FUNC, INCLUDES)
467dnl Check whether a function is declared.
468AC_DEFUN([gt_CHECK_DECL],
469[
470 AC_CACHE_CHECK([whether $1 is declared], ac_cv_have_decl_$1,
471 [AC_TRY_COMPILE([$2], [
472#ifndef $1
473 char *p = (char *) $1;
474#endif
475], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)])
476 if test $ac_cv_have_decl_$1 = yes; then
477 gt_value=1
478 else
479 gt_value=0
480 fi
481 AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value],
482 [Define to 1 if you have the declaration of `$1', and to 0 if you don't.])
483])
484
485
486dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
487AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
diff --git a/ac/missing/gpgme.m4 b/ac/missing/gpgme.m4
new file mode 100644
index 0000000..1915f55
--- /dev/null
+++ b/ac/missing/gpgme.m4
@@ -0,0 +1,236 @@
1# gpgme.m4 - autoconf macro to detect GPGME.
2# Copyright (C) 2002, 2003, 2004 g10 Code GmbH
3#
4# This file is free software; as a special exception the author gives
5# unlimited permission to copy and/or distribute it, with or without
6# modifications, as long as this notice is preserved.
7#
8# This file is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
10# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12
13AC_DEFUN([_AM_PATH_GPGME_CONFIG],
14[ AC_ARG_WITH(gpgme-prefix,
15 AC_HELP_STRING([--with-gpgme-prefix=PFX],
16 [prefix where GPGME is installed (optional)]),
17 gpgme_config_prefix="$withval", gpgme_config_prefix="")
18 if test "x$gpgme_config_prefix" != x ; then
19 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
20 fi
21 AC_PATH_PROG(GPGME_CONFIG, gpgme-config, no)
22
23 gpgme_version=`$GPGME_CONFIG --version`
24 gpgme_version_major=`echo $gpgme_version | \
25 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
26 gpgme_version_minor=`echo $gpgme_version | \
27 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
28 gpgme_version_micro=`echo $gpgme_version | \
29 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
30])
31
32dnl AM_PATH_GPGME([MINIMUM-VERSION,
33dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
34dnl Test for libgpgme and define GPGME_CFLAGS and GPGME_LIBS.
35dnl
36AC_DEFUN([AM_PATH_GPGME],
37[ AC_REQUIRE([_AM_PATH_GPGME_CONFIG])dnl
38 tmp=ifelse([$1], ,1:0.4.2,$1)
39 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
40 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
41 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
42 else
43 req_gpgme_api=0
44 min_gpgme_version="$tmp"
45 fi
46
47 AC_MSG_CHECKING(for GPGME - version >= $min_gpgme_version)
48 ok=no
49 if test "$GPGME_CONFIG" != "no" ; then
50 req_major=`echo $min_gpgme_version | \
51 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
52 req_minor=`echo $min_gpgme_version | \
53 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
54 req_micro=`echo $min_gpgme_version | \
55 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
56 if test "$gpgme_version_major" -gt "$req_major"; then
57 ok=yes
58 else
59 if test "$gpgme_version_major" -eq "$req_major"; then
60 if test "$gpgme_version_minor" -gt "$req_minor"; then
61 ok=yes
62 else
63 if test "$gpgme_version_minor" -eq "$req_minor"; then
64 if test "$gpgme_version_micro" -ge "$req_micro"; then
65 ok=yes
66 fi
67 fi
68 fi
69 fi
70 fi
71 fi
72 if test $ok = yes; then
73 # If we have a recent GPGME, we should also check that the
74 # API is compatible.
75 if test "$req_gpgme_api" -gt 0 ; then
76 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
77 if test "$tmp" -gt 0 ; then
78 if test "$req_gpgme_api" -ne "$tmp" ; then
79 ok=no
80 fi
81 fi
82 fi
83 fi
84 if test $ok = yes; then
85 GPGME_CFLAGS=`$GPGME_CONFIG --cflags`
86 GPGME_LIBS=`$GPGME_CONFIG --libs`
87 AC_MSG_RESULT(yes)
88 ifelse([$2], , :, [$2])
89 else
90 GPGME_CFLAGS=""
91 GPGME_LIBS=""
92 AC_MSG_RESULT(no)
93 ifelse([$3], , :, [$3])
94 fi
95 AC_SUBST(GPGME_CFLAGS)
96 AC_SUBST(GPGME_LIBS)
97])
98
99dnl AM_PATH_GPGME_PTH([MINIMUM-VERSION,
100dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
101dnl Test for libgpgme and define GPGME_PTH_CFLAGS and GPGME_PTH_LIBS.
102dnl
103AC_DEFUN([AM_PATH_GPGME_PTH],
104[ AC_REQUIRE([_AM_PATH_GPGME_CONFIG])dnl
105 tmp=ifelse([$1], ,1:0.4.2,$1)
106 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
107 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
108 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
109 else
110 req_gpgme_api=0
111 min_gpgme_version="$tmp"
112 fi
113
114 AC_MSG_CHECKING(for GPGME Pth - version >= $min_gpgme_version)
115 ok=no
116 if test "$GPGME_CONFIG" != "no" ; then
117 if `$GPGME_CONFIG --thread=pth 2> /dev/null` ; then
118 req_major=`echo $min_gpgme_version | \
119 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
120 req_minor=`echo $min_gpgme_version | \
121 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
122 req_micro=`echo $min_gpgme_version | \
123 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
124 if test "$gpgme_version_major" -gt "$req_major"; then
125 ok=yes
126 else
127 if test "$gpgme_version_major" -eq "$req_major"; then
128 if test "$gpgme_version_minor" -gt "$req_minor"; then
129 ok=yes
130 else
131 if test "$gpgme_version_minor" -eq "$req_minor"; then
132 if test "$gpgme_version_micro" -ge "$req_micro"; then
133 ok=yes
134 fi
135 fi
136 fi
137 fi
138 fi
139 fi
140 fi
141 if test $ok = yes; then
142 # If we have a recent GPGME, we should also check that the
143 # API is compatible.
144 if test "$req_gpgme_api" -gt 0 ; then
145 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
146 if test "$tmp" -gt 0 ; then
147 if test "$req_gpgme_api" -ne "$tmp" ; then
148 ok=no
149 fi
150 fi
151 fi
152 fi
153 if test $ok = yes; then
154 GPGME_PTH_CFLAGS=`$GPGME_CONFIG --thread=pth --cflags`
155 GPGME_PTH_LIBS=`$GPGME_CONFIG --thread=pth --libs`
156 AC_MSG_RESULT(yes)
157 ifelse([$2], , :, [$2])
158 else
159 GPGME_PTH_CFLAGS=""
160 GPGME_PTH_LIBS=""
161 AC_MSG_RESULT(no)
162 ifelse([$3], , :, [$3])
163 fi
164 AC_SUBST(GPGME_PTH_CFLAGS)
165 AC_SUBST(GPGME_PTH_LIBS)
166])
167
168dnl AM_PATH_GPGME_PTHREAD([MINIMUM-VERSION,
169dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
170dnl Test for libgpgme and define GPGME_PTHREAD_CFLAGS
171dnl and GPGME_PTHREAD_LIBS.
172dnl
173AC_DEFUN([AM_PATH_GPGME_PTHREAD],
174[ AC_REQUIRE([_AM_PATH_GPGME_CONFIG])dnl
175 tmp=ifelse([$1], ,1:0.4.2,$1)
176 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
177 req_gpgme_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
178 min_gpgme_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
179 else
180 req_gpgme_api=0
181 min_gpgme_version="$tmp"
182 fi
183
184 AC_MSG_CHECKING(for GPGME pthread - version >= $min_gpgme_version)
185 ok=no
186 if test "$GPGME_CONFIG" != "no" ; then
187 if `$GPGME_CONFIG --thread=pthread 2> /dev/null` ; then
188 req_major=`echo $min_gpgme_version | \
189 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
190 req_minor=`echo $min_gpgme_version | \
191 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
192 req_micro=`echo $min_gpgme_version | \
193 sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
194 if test "$gpgme_version_major" -gt "$req_major"; then
195 ok=yes
196 else
197 if test "$gpgme_version_major" -eq "$req_major"; then
198 if test "$gpgme_version_minor" -gt "$req_minor"; then
199 ok=yes
200 else
201 if test "$gpgme_version_minor" -eq "$req_minor"; then
202 if test "$gpgme_version_micro" -ge "$req_micro"; then
203 ok=yes
204 fi
205 fi
206 fi
207 fi
208 fi
209 fi
210 fi
211 if test $ok = yes; then
212 # If we have a recent GPGME, we should also check that the
213 # API is compatible.
214 if test "$req_gpgme_api" -gt 0 ; then
215 tmp=`$GPGME_CONFIG --api-version 2>/dev/null || echo 0`
216 if test "$tmp" -gt 0 ; then
217 if test "$req_gpgme_api" -ne "$tmp" ; then
218 ok=no
219 fi
220 fi
221 fi
222 fi
223 if test $ok = yes; then
224 GPGME_PTHREAD_CFLAGS=`$GPGME_CONFIG --thread=pthread --cflags`
225 GPGME_PTHREAD_LIBS=`$GPGME_CONFIG --thread=pthread --libs`
226 AC_MSG_RESULT(yes)
227 ifelse([$2], , :, [$2])
228 else
229 GPGME_PTHREAD_CFLAGS=""
230 GPGME_PTHREAD_LIBS=""
231 AC_MSG_RESULT(no)
232 ifelse([$3], , :, [$3])
233 fi
234 AC_SUBST(GPGME_PTHREAD_CFLAGS)
235 AC_SUBST(GPGME_PTHREAD_LIBS)
236])