root/trunk/configure.ac

Revision 684, 2.0 kB (checked in by jajcus, 2 years ago)

- project name is: jggtrans

Line 
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT([jggtrans], [2.2.2], [jajcus@jajcus.net])
3
4 AC_CONFIG_SRCDIR([src/ggtrans.h])
5 AM_INIT_AUTOMAKE
6 AM_GNU_GETTEXT_VERSION(0.14.1)
7 AM_CONFIG_HEADER([config.h])
8
9 # Checks for programs.
10 AC_PROG_CC
11 AC_C_BIGENDIAN
12 AC_PROG_MAKE_SET
13 AM_PROG_LIBTOOL
14 AM_GNU_GETTEXT([external])
15
16 CFLAGS="$CFLAGS -Wall"
17
18 AM_PATH_GLIB_2_0([2.0.0],[],AC_MSG_ERROR("You need glib >= 2.0.0 to compile this."))
19 PKG_CHECK_MODULES([JK_LIBIDN], [libidn >= 0.3.0])
20
21 AC_SUBST(JK_LIBIDN_LIBS)
22 AC_SUBST(JK_LIBIDN_CFLAGS)
23
24 AC_ARG_ENABLE([debug],AC_HELP_STRING([--disable-debug],[Disable debugging code]))
25
26 AC_ARG_WITH([efence],AC_HELP_STRING([--with-efence],[Link against ElectricFence library]))
27
28 if test "x$enable_debug" != "xno" ; then
29         AC_DEFINE(DEBUG,1,[Define to enable debugging code])
30 fi
31
32 if test "x$with_efence" = "xyes" ; then
33         AC_CHECK_LIB([efence], [malloc])
34 fi
35
36 # Checks for header files.
37 AC_HEADER_DIRENT
38 AC_HEADER_STDC
39 AC_HEADER_SYS_WAIT
40 AC_CHECK_HEADERS([stdlib.h string.h])
41 AC_CHECK_HEADERS([sys/socket.h netdb.h netinet/in.h])
42 AC_CHECK_HEADERS([sys/time.h unistd.h errno.h fcntl.h])
43
44 # Checks for typedefs, structures, and compiler characteristics.
45 AC_C_CONST
46 AC_TYPE_SIZE_T
47 AC_HEADER_TIME
48
49 # Checks for library functions.
50 AC_FUNC_ERROR_AT_LINE
51 AC_TYPE_SIGNAL
52 AC_FUNC_STAT
53
54 AC_SEARCH_LIBS([gethostbyname],[resolv nsl],[],AC_MSG_ERROR("Some functions needed are missing"))
55 AC_SEARCH_LIBS([inet_aton],[resolv nsl],[],AC_MSG_ERROR("Some functions needed are missing"))
56 AC_SEARCH_LIBS([socket],[socket],[],AC_MSG_ERROR("Some functions needed are missing"))
57 AC_CHECK_FUNCS([isascii],[],AC_MSG_ERROR("Some functions needed are missing"))
58 AC_CHECK_FUNCS([select],[],AC_MSG_ERROR("Some functions needed are missing"))
59 AC_CHECK_FUNCS([memset strchr],[],AC_MSG_ERROR("Some functions needed are missing"))
60
61 AC_CONFIG_SUBDIRS([libxode libgadu])
62
63 MKINSTALLDIRS="${MKINSTALLDIRS} -m 755"
64 XGETTEXT="${XGETTEXT} --keyword=L_"
65
66 AC_CONFIG_FILES([Makefile src/Makefile po/Makefile.in])
67 AC_OUTPUT
Note: See TracBrowser for help on using the browser.