File: configure.ac

package info (click to toggle)
echoping 6.0.2-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 7,596 kB
  • ctags: 380
  • sloc: sh: 8,966; ansic: 3,350; makefile: 162
file content (19 lines) | stat: -rw-r--r-- 652 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dnl $Id: configure.ac 377 2007-03-12 20:48:05Z bortz $

m4_include([../../configure-common.ac])
AM_INIT_AUTOMAKE(foreign)
AC_CONFIG_HEADERS(config.h)

m4_include([../configure-plugins.ac])

LDAP_BUILD=1
AC_CHECK_FUNCS(poptGetContext,, 
   [AC_CHECK_LIB(popt,poptGetContext,,[AC_MSG_WARN([No popt development environment found, not building this plugin]) && LDAP_BUILD=0])])
if test "$LDAP_BUILD" != "0"; then
AC_CHECK_FUNCS(ldap_open, , 
   [AC_CHECK_LIB(ldap,ldap_open,,
      [AC_MSG_WARN([No LDAP development environment found, not building this plugin]) && LDAP_BUILD=0])])
fi
AM_CONDITIONAL(LDAPBUILD, test "$LDAP_BUILD" = 1)
AC_OUTPUT(Makefile)