Skip to content
This repository
Newer
Older
100644 37 lines (27 sloc) 0.911 kb
deb85ddd » Damien Stuart
2008-12-21 Total re-arrangement for autoconf/automake implementation.
1 dnl Process thie file with autoconf to produce teh configure script
2
3 AC_PREREQ(2.53)
4
5 m4_define(my_package, [fwknop])
6 m4_define(my_version, [2.0.0])
7
8 AC_INIT(my_package, my_version)
9 AM_INIT_AUTOMAKE(my_package, my_version)
10
11 AC_GNU_SOURCE
12 AC_PROG_CC
13 AM_PROG_CC_C_O
14 AC_PROG_RANLIB
15
16 # Type checks.
17 AC_C_INLINE
18 AC_CHECK_SIZEOF(unsigned int)
19 AC_TYPE_OFF_T
20
21 # Network library fun.
22 AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname,
23 [NETLIBS="-lnsl $NETLIBS"]))
24 AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt,
25 [NETLIBS="-lsocket $NETLIBS"]))
26 AC_SUBST(NETLIBS)
27
28 dnl # Checking for libgpg-error.
29 dnl AM_PATH_GPG_ERROR(1.4,, AC_MSG_ERROR([libgpg-error was not found]))
30 dnl AC_DEFINE(GPG_ERR_SOURCE_DEFAULT, GPG_ERR_SOURCE_GPGME,
31 dnl [The default error source for GPGME.])
32
33 dnl # GPGME
34 dnl AM_PATH_GPGME
35
36
37 AC_OUTPUT(lib/Makefile client/Makefile server/Makefile Makefile)
Something went wrong with that request. Please try again.