File: configure.in~newer

package info (click to toggle)
gpr 0.12deb1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,568 kB
  • ctags: 250
  • sloc: sh: 6,138; ansic: 3,684; makefile: 86; sed: 16
file content (87 lines) | stat: -rw-r--r-- 2,365 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
dnl Process this file with autoconf to produce a configure script.

AC_INIT(configure.in)
AM_INIT_AUTOMAKE(gpr, 0.9)
AM_CONFIG_HEADER(config.h)

AM_PROG_CC_STDC
AC_HEADER_STDC

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 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wshadow -O0 -ggdb3")
AC_SUBST(WARNS)

CFLAGS="$CFLAGS -I/usr/include/libppd"

AC_ARG_ENABLE(local-libppd, 
  [ --enable-local-libppd specify the local paths to libppd],
  [ # This is passed into the automake process 
    LIBPPD_LIBS="${enableval}/libppd.la"
    LIBPPD_INCLUDES="-I${enableval}"
  ],[
    LIBPPD_LIBS=""
  ]
)
AC_SUBST(LIBPPD_LIBS)
AC_SUBST(LIBPPD_INCLUDES)

AC_PROG_CC
AM_PROG_LIBTOOL
AC_ISC_POSIX

dnl Pick up the Gnome macros.
dnl AM_ACLOCAL_INCLUDE(macros)
dnl GNOME_INIT
dnl GNOME_COMPILE_WARNINGS
dnl GNOME_X_CHECKS

gnome_modules="libgnomeui-2.0"

PKG_CHECK_MODULES(, [$gnome_modules])

dnl Add the languages which your application supports here.
ALL_LINGUAS="fr sv"
AM_GNU_GETTEXT([external])

dnl Set PACKAGE_LOCALE_DIR in config.h.
dnl Subst PACKAGE_PIXMAPS_DIR.
dnl Subst PACKAGE_SCRIPTS_DIR.
if test "x${prefix}" = "xNONE"; then
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/share/locale",[locale directory])
else
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/share/locale",[locale directory])
fi

AC_DEFINE([HAVE_LIBSM], [], [fixme])

dnl Check for libraries
# if the --enable-local-libppd was passed in assume that the 
# the person who is building this knows what they are doing and
# skip the test to make sure that the header file and lib is 
# actually installed.
if test -z "${LIBPPD_LIBS}"; then
  AC_CHECK_HEADERS(ppd.h,,[
    AC_MSG_ERROR(Must have ppd.h header to compile gpr)])
  AC_CHECK_LIB(ppd,ppd_file_new,,[
    AC_MSG_ERROR(Must have libppd installed to compile gpr)])
fi
AC_CHECK_LIB(xml,xmlGetProp,,[
  AC_MSG_ERROR(Must have libxml installed to compile gpr)])

dnl loads in the magic pixie dust for the m4 files
dnl TESTSCRIPTS=`cd src/tests && echo *.m4 | sed "s/m4/sh/g"`
dnl AC_SUBST(TESTSCRIPTS)

dnl macros/Makefile

AC_OUTPUT([ 
m4/Makefile
po/Makefile.in 
Makefile
gpr.spec
src/Makefile
pixmaps/Makefile
])