File: configure.ac

package info (click to toggle)
libbuffy 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,796 kB
  • ctags: 380
  • sloc: sh: 8,946; cpp: 2,636; makefile: 75
file content (51 lines) | stat: -rw-r--r-- 1,043 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
dnl Process this file with autoconf to produce a configure script.

AC_INIT(libbuffy, 1.2, [enrico@enricozini.org])
AC_CONFIG_SRCDIR([configure.ac])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([foreign])

dnl To use subdirs
AC_PROG_MAKE_SET

AC_LANG([C++])

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_CXX
AM_PROG_CC_STDC
AC_HEADER_STDC

dnl Use libtool
AM_PROG_LIBTOOL

LIBWIBBLE_DEFS

dnl check for libxml++
PKG_CHECK_MODULES([XMLPP], [libxml++-2.6])
AC_SUBST([XMLPP_LIBS])
AC_SUBST([XMLPP_CFLAGS])

dnl Check for zlib
AC_CHECK_HEADER(zlib.h, AC_DEFINE(HAVE_ZLIB_H, 1, zlib.h has been found),
        AC_MSG_ERROR([
*** zlib.h not found. Check 'config.log' for more details.]))

AC_CHECK_LIB(z, gzopen, LIBS="-lz $LIBS",
        AC_MSG_ERROR([
*** libz not found. Check 'config.log' for more details.]))

LIBBUFFY_VERSION_INFO=`echo $VERSION | awk -F. '{ printf "%d:%d:%d", $1+$2, $3, $2 }'`
AC_SUBST(LIBBUFFY_VERSION_INFO)

CXXFLAGS="$CXXFLAGS -Wall -O0"

AC_CONFIG_FILES([
Makefile
buffy/Makefile
tests/Makefile
doc/Makefile
libbuffy.pc
])
AC_OUTPUT