File: configure.ac

package info (click to toggle)
cdebconf-entropy 0.20
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 608 kB
  • ctags: 109
  • sloc: sh: 2,770; ansic: 883; makefile: 60
file content (29 lines) | stat: -rw-r--r-- 605 bytes parent folder | download | duplicates (2)
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
AC_INIT

PACKAGE=entropy
AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")

AC_PROG_MAKE_SET
AC_PROG_CC

dnl Enable debugging?
AC_ARG_WITH(debug,[  --without-debug         turn off debugging?])
if test "$with_debug" == "yes"; then
  AC_DEFINE(DODEBUG)
  CFLAGS="$CFLAGS -g -D_DEBUG_"
fi

FRONTENDS="text"

AC_CHECK_LIB(newt, newtInit, FRONTENDS="$FRONTENDS newt", echo "*** Cannot build Newt plugin ***")

PKG_CHECK_MODULES(GTK, [gtk+-x11-2.0],
 FRONTENDS="$FRONTENDS gtk",
 echo "*** Cannot build GTK+ plugin ***")

AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
AC_SUBST(FRONTENDS)
AC_SUBST(PACKAGE)

AC_OUTPUT(Makefile)