It appears that autogen.sh doesn't like es.po if it isn't mentioned in
[tinc] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl $Id: configure.in,v 1.13.2.34 2001/06/29 10:27:57 guus Exp $
4
5 AC_INIT(src/tincd.c)
6 AM_INIT_AUTOMAKE(tinc, 1.0-cvs)
7 AM_CONFIG_HEADER(config.h)
8
9 dnl Include the macros from the m4/ directory
10 AM_ACLOCAL_INCLUDE(m4)
11
12 # Enable GNU extensions.
13 # Define this here, not in acconfig's @TOP@ section, since definitions
14 # in the latter don't make it into the configure-time tests.
15 AC_DEFINE([_GNU_SOURCE], [__USE_BSD])
16
17 ALL_LINGUAS="nl"
18
19 dnl Checks for programs.
20 AC_PROG_CC
21 AC_PROG_CPP
22 AC_PROG_GCC_TRADITIONAL
23 AC_PROG_AWK
24 AC_PROG_INSTALL
25 AC_PROG_LN_S
26 AC_PROG_MAKE_SET
27 jm_PERL
28
29
30 AC_ISC_POSIX
31
32 dnl Check and set OS
33
34 AC_CANONICAL_HOST
35
36 case $host_os in
37   *linux*)
38     AC_DEFINE(HAVE_LINUX)
39   ;;
40   *freebsd*)
41     AC_DEFINE(HAVE_FREEBSD)
42   ;;
43   *solaris*)
44     AC_DEFINE(HAVE_SOLARIS)
45   ;;
46 esac
47
48 AC_CACHE_SAVE
49
50 dnl Checks for libraries.
51
52 dnl Checks for header files.
53 AC_HEADER_STDC
54 AC_CHECK_HEADERS([fcntl.h limits.h sys/ioctl.h syslog.h unistd.h \
55 sys/time.h malloc.h strings.h sys/file.h])
56
57 dnl Checks for typedefs, structures, and compiler characteristics.
58 AC_C_CONST
59 AC_TYPE_PID_T
60 AC_TYPE_SIZE_T
61 AC_HEADER_TIME
62 AC_STRUCT_TM
63
64 dnl Checks for library functions.
65 AC_FUNC_MEMCMP
66 AC_FUNC_ALLOCA
67 AC_TYPE_SIGNAL
68 AC_CHECK_FUNCS([ftime socket select strtol strerror flock unsetenv \
69 asprintf putenv strdup fcloseall daemon strsignal get_current_dir_name])
70 jm_FUNC_MALLOC
71 jm_FUNC_REALLOC
72
73 AM_GNU_GETTEXT
74
75
76 dnl Support for SunOS
77
78 AC_CHECK_FUNC(socket, [], [
79   AC_CHECK_LIB(socket, connect)
80 ])
81 AC_CHECK_FUNC(gethostbyname, [], [
82   AC_CHECK_LIB(nsl, gethostbyname)
83 ])
84
85 AC_CACHE_SAVE
86
87 dnl These are defined in files in m4/
88 tinc_TUNTAP
89 tinc_OPENSSL
90
91 dnl Check if checkpoint tracing has to be enabled
92 AC_ARG_ENABLE(tracing,
93   [  --enable-tracing        enable checkpoint tracing (debugging only)],
94   [ AC_DEFINE(ENABLE_TRACING) ]
95 )
96
97 AC_SUBST(INCLUDES)
98
99 AC_OUTPUT(Makefile
100 src/Makefile
101 doc/Makefile
102 doc/es/Makefile
103 intl/Makefile
104 lib/Makefile
105 m4/Makefile
106 po/Makefile.in
107 redhat/Makefile
108 debian/Makefile)