File: configure.in

package info (click to toggle)
libprintsys 0.6-11
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,596 kB
  • ctags: 184
  • sloc: sh: 10,982; ansic: 1,620; makefile: 88
file content (35 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (3)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/printsys.c)
AM_INIT_AUTOMAKE(libprintsys,0.6)
AC_LANG_C
AM_CONFIG_HEADER(config.h)

# -Wshadow doesn't work with glib
WARNS=""
AC_ARG_ENABLE(debug, [  --enable-debug turn on debugging (assumes gcc/gdb) [default=no]],WARNS="-W -Wall -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -O0 -ggdb3",AC_DEFINE(NDEBUG))
AC_SUBST(WARNS)

dnl Checks for programs.
AC_PROG_CC
AM_PROG_LIBTOOL
AC_PROG_AWK

dnl Checks for libraries.
AM_PATH_GLIB_2_0(2.2.0, [], [
  AC_MSG_ERROR(You must have glib-2.0 to compile libprintsys)
])

CFLAGS="$CFLAGS $GLIB_CFLAGS"
LIBS="$LIBS $GLIB_LIBS"

dnl Checks for debugging libraries.
dnl AC_CHECK_LIB(efence,malloc)
AC_CHECK_LIB(tdb, tdb_store)

dnl Checks for header files.
AC_HEADER_STDC

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

AC_OUTPUT(Makefile src/Makefile libprintsys.spec)