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 (29 lines) | stat: -rw-r--r-- 860 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
20
21
22
23
24
25
26
27
28
29
dnl $Id: configure.ac 407 2007-04-09 19:20:13Z bortz $

m4_include(../configure-common.ac)
AM_INIT_AUTOMAKE(foreign)
dnl TODO: write a XML-RPC plugin for Adamsnames' interface. See a first version in contrib/
AC_ARG_ENABLE(plugin,
[  --enable-plugin=LIST  Build only the following plugins],
[if test "$enableval" = "no"; then
   AC_MSG_ERROR([You cannot disable plugin support])
else
   if test "$enableval" = "yes"; then
      AC_MSG_ERROR([You must indicate a list of plugins with this option])
   else
      plugins=$enableval
   fi
fi],
plugins="random whois dns postgresql ldap")
for plugin in $plugins; do
  if test ! -d $srcdir/$plugin ; then
    AC_MSG_ERROR([No such plugin $plugin])
  fi
  eval ${plugin}_BUILD=1
done
m4_include(list-of-dirs.m4)
plugins_dir=`cat dir`
AC_SUBST(plugins_dir)
AC_OUTPUT(Makefile)
echo ""
echo Plugins to build: $plugins