11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
19
# intlmacosx.m4 serial 1 (gettext-0.17)
20
dnl Copyright (C) 2004-2007 Free Software Foundation, Inc.
21
dnl This file is free software; the Free Software Foundation
22
dnl gives unlimited permission to copy and/or distribute it,
23
dnl with or without modifications, as long as this notice is preserved.
25
dnl This file can can be used in projects which are not available under
26
dnl the GNU General Public License or the GNU Library General Public
27
dnl License but which still want to provide support for the GNU gettext
29
dnl Please note that the actual code of the GNU gettext library is covered
30
dnl by the GNU Library General Public License, and the rest of the GNU
31
dnl gettext package package is covered by the GNU General Public License.
32
dnl They are *not* in the public domain.
34
dnl Checks for special options needed on MacOS X.
35
dnl Defines INTL_MACOSX_LIBS.
36
AC_DEFUN([gt_INTL_MACOSX],
38
dnl Check for API introduced in MacOS X 10.2.
39
AC_CACHE_CHECK([for CFPreferencesCopyAppValue],
40
gt_cv_func_CFPreferencesCopyAppValue,
42
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
43
AC_TRY_LINK([#include <CoreFoundation/CFPreferences.h>],
44
[CFPreferencesCopyAppValue(NULL, NULL)],
45
[gt_cv_func_CFPreferencesCopyAppValue=yes],
46
[gt_cv_func_CFPreferencesCopyAppValue=no])
47
LIBS="$gt_save_LIBS"])
48
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
49
AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], 1,
50
[Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.])
52
dnl Check for API introduced in MacOS X 10.3.
53
AC_CACHE_CHECK([for CFLocaleCopyCurrent], gt_cv_func_CFLocaleCopyCurrent,
55
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
56
AC_TRY_LINK([#include <CoreFoundation/CFLocale.h>], [CFLocaleCopyCurrent();],
57
[gt_cv_func_CFLocaleCopyCurrent=yes],
58
[gt_cv_func_CFLocaleCopyCurrent=no])
59
LIBS="$gt_save_LIBS"])
60
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
61
AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], 1,
62
[Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.])
65
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
66
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
68
AC_SUBST([INTL_MACOSX_LIBS])
71
# longlong.m4 serial 13
72
dnl Copyright (C) 1999-2007 Free Software Foundation, Inc.
73
dnl This file is free software; the Free Software Foundation
74
dnl gives unlimited permission to copy and/or distribute it,
75
dnl with or without modifications, as long as this notice is preserved.
79
# Define HAVE_LONG_LONG_INT if 'long long int' works.
80
# This fixes a bug in Autoconf 2.61, but can be removed once we
81
# assume 2.62 everywhere.
83
# Note: If the type 'long long int' exists but is only 32 bits large
84
# (as on some very old compilers), HAVE_LONG_LONG_INT will not be
85
# defined. In this case you can treat 'long long int' like 'long int'.
87
AC_DEFUN([AC_TYPE_LONG_LONG_INT],
89
AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
91
[_AC_TYPE_LONG_LONG_SNIPPET],
92
[dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
93
dnl If cross compiling, assume the bug isn't important, since
94
dnl nobody cross compiles for this platform as far as we know.
97
[[@%:@include <limits.h>
100
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
101
@%:@ define LLONG_MAX (HALF - 1 + HALF)
103
[[long long int n = 1;
107
long long int m = n << i;
110
if (LLONG_MAX / 2 < m)
114
[ac_cv_type_long_long_int=yes],
115
[ac_cv_type_long_long_int=no],
116
[ac_cv_type_long_long_int=yes])],
117
[ac_cv_type_long_long_int=no])])
118
if test $ac_cv_type_long_long_int = yes; then
119
AC_DEFINE([HAVE_LONG_LONG_INT], 1,
120
[Define to 1 if the system has the type `long long int'.])
124
# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
125
# This fixes a bug in Autoconf 2.61, but can be removed once we
126
# assume 2.62 everywhere.
128
# Note: If the type 'unsigned long long int' exists but is only 32 bits
129
# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
130
# will not be defined. In this case you can treat 'unsigned long long int'
131
# like 'unsigned long int'.
133
AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
135
AC_CACHE_CHECK([for unsigned long long int],
136
[ac_cv_type_unsigned_long_long_int],
138
[_AC_TYPE_LONG_LONG_SNIPPET],
139
[ac_cv_type_unsigned_long_long_int=yes],
140
[ac_cv_type_unsigned_long_long_int=no])])
141
if test $ac_cv_type_unsigned_long_long_int = yes; then
142
AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1,
143
[Define to 1 if the system has the type `unsigned long long int'.])
147
# Expands to a C program that can be used to test for simultaneous support
148
# of 'long long' and 'unsigned long long'. We don't want to say that
149
# 'long long' is available if 'unsigned long long' is not, or vice versa,
150
# because too many programs rely on the symmetry between signed and unsigned
151
# integer types (excluding 'bool').
152
AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
155
[[/* Test preprocessor. */
156
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
157
error in preprocessor;
159
#if ! (18446744073709551615ULL <= -1ull)
160
error in preprocessor;
163
long long int ll = 9223372036854775807ll;
164
long long int nll = -9223372036854775807LL;
165
unsigned long long int ull = 18446744073709551615ULL;
166
/* Test constant expressions. */
167
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
169
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
172
[[/* Test availability of runtime routines for shift and division. */
173
long long int llmax = 9223372036854775807ll;
174
unsigned long long int ullmax = 18446744073709551615ull;
175
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
176
| (llmax / ll) | (llmax % ll)
177
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
178
| (ullmax / ull) | (ullmax % ull));]])
181
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
16
183
# This file is free software; the Free Software Foundation
17
184
# gives unlimited permission to copy and/or distribute it,
21
188
# ----------------------------
22
189
# Automake X.Y traces this macro to ensure aclocal.m4 has been
23
190
# generated from the m4 files accompanying Automake X.Y.
24
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
191
# (This private macro should not be called outside this file.)
192
AC_DEFUN([AM_AUTOMAKE_VERSION],
193
[am__api_version='1.10'
194
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
195
dnl require some minimum version. Point them to the right macro.
196
m4_if([$1], [1.10], [],
197
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
200
# _AM_AUTOCONF_VERSION(VERSION)
201
# -----------------------------
202
# aclocal traces this macro to find the Autoconf version.
203
# This is a private macro too. Using m4_define simplifies
204
# the logic in aclocal, which can simply ignore this definition.
205
m4_define([_AM_AUTOCONF_VERSION], [])
26
207
# AM_SET_CURRENT_AUTOMAKE_VERSION
27
208
# -------------------------------
28
# Call AM_AUTOMAKE_VERSION so it can be traced.
209
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
29
210
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
30
211
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
31
[AM_AUTOMAKE_VERSION([1.9.6])])
212
[AM_AUTOMAKE_VERSION([1.10])dnl
213
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
33
215
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
582
780
rm -f confinc confmf
783
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
784
# Free Software Foundation, Inc.
786
# This file is free software; the Free Software Foundation
787
# gives unlimited permission to copy and/or distribute it,
788
# with or without modifications, as long as this notice is preserved.
794
# Like AC_PROG_CC_C_O, but changed for automake.
795
AC_DEFUN([AM_PROG_CC_C_O],
796
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
797
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
798
AC_REQUIRE_AUX_FILE([compile])dnl
799
# FIXME: we rely on the cache variable name because
800
# there is no other way.
802
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
803
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
804
# Losing compiler, so override with the script.
805
# FIXME: It is wrong to rewrite CC.
806
# But if we don't then we get into trouble of one sort or another.
807
# A longer-term fix would be to have automake use am__CC in this case,
808
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
809
CC="$am_aux_dir/compile $CC"
811
dnl Make sure AC_PROG_CC is never called again, or it will override our
813
m4_define([AC_PROG_CC],
814
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
585
817
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
587
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
819
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
588
820
# Free Software Foundation, Inc.
590
822
# This file is free software; the Free Software Foundation
591
823
# gives unlimited permission to copy and/or distribute it,
592
824
# with or without modifications, as long as this notice is preserved.
596
828
# AM_MISSING_PROG(NAME, PROGRAM)
597
829
# ------------------------------
626
859
# AM_PROG_MKDIR_P
627
860
# ---------------
628
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
630
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
631
# created by `make install' are always world readable, even if the
632
# installer happens to have an overly restrictive umask (e.g. 077).
633
# This was a mistake. There are at least two reasons why we must not
635
# - it causes special bits like SGID to be ignored,
636
# - it may be too restrictive (some setups expect 775 directories).
638
# Do not use -m 0755 and let people choose whatever they expect by
641
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
642
# Some implementations (such as Solaris 8's) are not thread-safe: if a
643
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
644
# concurrently, both version can detect that a/ is missing, but only
645
# one can create it and the other will error out. Consequently we
646
# restrict ourselves to GNU make (using the --version option ensures
861
# Check for `mkdir -p'.
648
862
AC_DEFUN([AM_PROG_MKDIR_P],
649
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
650
# We used to keeping the `.' as first argument, in order to
651
# allow $(mkdir_p) to be used without argument. As in
652
# $(mkdir_p) $(somedir)
653
# where $(somedir) is conditionally defined. However this is wrong
655
# 1. if the package is installed by a user who cannot write `.'
656
# make install will fail,
657
# 2. the above comment should most certainly read
658
# $(mkdir_p) $(DESTDIR)$(somedir)
659
# so it does not work when $(somedir) is undefined and
661
# To support the latter case, we have to write
662
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
663
# so the `.' trick is pointless.
664
mkdir_p='mkdir -p --'
666
# On NextStep and OpenStep, the `mkdir' command does not
667
# recognize any option. It will interpret all options as
668
# directories to create, and then abort because `.' already
670
for d in ./-p ./--version;
672
test -d $d && rmdir $d
674
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
675
if test -f "$ac_aux_dir/mkinstalldirs"; then
676
mkdir_p='$(mkinstalldirs)'
678
mkdir_p='$(install_sh) -d'
681
AC_SUBST([mkdir_p])])
863
[AC_PREREQ([2.60])dnl
864
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
865
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
866
dnl while keeping a definition of mkdir_p for backward compatibility.
867
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
868
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
869
dnl Makefile.ins that do not define MKDIR_P, so we do our own
870
dnl adjustment using top_builddir (which is defined more often than
872
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
874
[[\\/$]]* | ?:[[\\/]]*) ;;
875
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
683
879
# Helper functions for option handling. -*- Autoconf -*-
889
1097
AC_SUBST([am__untar])
890
1098
]) # _AM_PROG_TAR
1100
m4_include([gl/m4/absolute-header.m4])
892
1101
m4_include([gl/m4/alloca.m4])
893
1102
m4_include([gl/m4/allocsa.m4])
894
1103
m4_include([gl/m4/eealloc.m4])
895
m4_include([gl/m4/eoverflow.m4])
896
1104
m4_include([gl/m4/gnulib-comp.m4])
897
1105
m4_include([gl/m4/gnulib-tool.m4])
898
m4_include([gl/m4/intmax_t.m4])
899
m4_include([gl/m4/inttypes_h.m4])
900
m4_include([gl/m4/longlong.m4])
901
1106
m4_include([gl/m4/mkdtemp.m4])
902
m4_include([gl/m4/onceonly_2_57.m4])
903
1107
m4_include([gl/m4/setenv.m4])
904
m4_include([gl/m4/stdint_h.m4])
1108
m4_include([gl/m4/stdint.m4])
905
1109
m4_include([gl/m4/strpbrk.m4])
906
m4_include([gl/m4/strsep.m4])
907
m4_include([gl/m4/uintmax_t.m4])
908
m4_include([gl/m4/ulonglong.m4])
909
m4_include([gl/m4/vasnprintf.m4])
910
m4_include([gl/m4/vasprintf.m4])
1110
m4_include([gl/m4/unistd_h.m4])
1111
m4_include([m4/autobuild.m4])
911
1112
m4_include([m4/codeset.m4])
1113
m4_include([m4/estream.m4])
912
1114
m4_include([m4/gettext.m4])
913
m4_include([m4/glibc21.m4])
1115
m4_include([m4/gnupg-pth.m4])
914
1116
m4_include([m4/gpg-error.m4])
915
1117
m4_include([m4/iconv.m4])
916
m4_include([m4/intdiv0.m4])
917
m4_include([m4/intmax.m4])
918
m4_include([m4/inttypes-pri.m4])
919
m4_include([m4/inttypes.m4])
920
m4_include([m4/inttypes_h.m4])
1118
m4_include([m4/isc-posix.m4])
921
1119
m4_include([m4/ksba.m4])
922
1120
m4_include([m4/lcmessage.m4])
1121
m4_include([m4/ldap.m4])
923
1122
m4_include([m4/lib-ld.m4])
924
1123
m4_include([m4/lib-link.m4])
925
1124
m4_include([m4/lib-prefix.m4])
926
1125
m4_include([m4/libassuan.m4])
1126
m4_include([m4/libcurl.m4])
927
1127
m4_include([m4/libgcrypt.m4])
928
1128
m4_include([m4/longdouble.m4])
929
m4_include([m4/longlong.m4])
930
1129
m4_include([m4/nls.m4])
931
1130
m4_include([m4/po.m4])
932
m4_include([m4/printf-posix.m4])
933
1131
m4_include([m4/progtest.m4])
934
m4_include([m4/signed.m4])
1132
m4_include([m4/readline.m4])
935
1133
m4_include([m4/size_max.m4])
936
m4_include([m4/stdint_h.m4])
937
m4_include([m4/uintmax_t.m4])
938
m4_include([m4/ulonglong.m4])
939
m4_include([m4/wchar_t.m4])
940
m4_include([m4/wint_t.m4])
1134
m4_include([m4/tar-ustar.m4])
941
1135
m4_include([m4/xsize.m4])
942
1136
m4_include([acinclude.m4])