summaryrefslogtreecommitdiffstats
path: root/configure.ac
blob: 7ced8ea57462d50386e729367609d6a78a89aecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.61)
AC_INIT(mad, 0.1, matthias@gamezock.de)
AC_CONFIG_SRCDIR([src/mad.cpp])
AM_CONFIG_HEADER([src/config.h])

AM_INIT_AUTOMAKE(mad, 0.1)
AM_MAINTAINER_MODE
AC_DISABLE_STATIC

# Checks for programs.
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_LIBTOOL

# Checks for libraries.
PKG_CHECK_MODULES(GnuTLS, gnutls, , AC_MSG_ERROR(Test for GnuTLS failed.))

CPPFLAGS="$GnuTLS_CFLAGS $CPPFLAGS"
LIBS="$GnuTLS_LIBS $LIBS" 

# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h sys/socket.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST

# Checks for library functions.

AC_CONFIG_FILES([
  Makefile
  src/Makefile
  src/Net/Makefile
])

AC_OUTPUT