Suppressed warning message of libgda
[rahunas] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 m4_define(major, 0)
5 m4_define(minor, 1)
6 m4_define(micro, 8)
7
8 AC_PREREQ(2.61)
9 AC_INIT([RahuNAS], major.minor.micro,[neo.neutron@gmail.com] )
10 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
11 AM_MAINTAINER_MODE
12 AC_CONFIG_SRCDIR([src/rahunasd.h])
13 AC_CONFIG_HEADER([config.h])
14
15 AC_SUBST(RAHUNAS_VERSION, major.minor.micro)
16 AC_SUBST(PROGRAM, "RahuNAS")
17
18 # Checks for programs.
19 AC_PROG_CC
20 AC_PROG_RANLIB
21 AC_PROG_INSTALL
22
23 # Checks for libraries.
24 dnl Check for GNet 2.x
25 GNET_REQ=2.0.8
26 PKG_CHECK_MODULES(LIBGNET, [ gnet-2.0 >= $GNET_REQ ], , [ AC_MSG_ERROR([GNet is required]) ])
27
28 AC_SUBST(LIBGNET_CFLAGS)
29 AC_SUBST(LIBGNET_LIBS)
30
31 dnl Check for LibGDA 3.x
32 LIBGDA_REQ=3.0.2
33 PKG_CHECK_MODULES(LIBGDA, [ libgda-4.0 >= $LIBGDA_REQ ], , [ AC_MSG_ERROR([LibGDA is required]) ])
34
35 AC_SUBST(LIBGDA_CFLAGS)
36 AC_SUBST(LIBGDA_LIBS)
37
38 # Checks for header files.
39 AC_HEADER_STDC
40 AC_HEADER_SYS_WAIT
41 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h syslog.h unistd.h])
42
43 # Checks for typedefs, structures, and compiler characteristics.
44 AC_C_CONST
45 AC_TYPE_PID_T
46 AC_STRUCT_TM
47
48 # Checks for library functions.
49 AC_FUNC_FORK
50 AC_FUNC_MALLOC
51 AC_FUNC_REALLOC
52 AC_TYPE_SIGNAL
53 AC_FUNC_STRFTIME
54 AC_CHECK_FUNCS([dup2])
55 AC_CONFIG_FILES([
56   Makefile
57   xmlrpc/Makefile
58   lcfg/Makefile
59   src/Makefile
60   data/Makefile
61   tools/Makefile
62   tools/rahunas-firewall
63   tools/rahunas-bandwidth
64   tools/rahunas-vipmap
65   tools/rahunas-weblogin-config-update
66   example/Makefile
67   example/rahunas.default
68   example/rahunas.init
69   example/rahunas.conf
70   example/rahunas-vserver.conf
71 ])
72
73 AC_OUTPUT