Imported upstream version 0.61.0
[hcoop/debian/courier-authlib.git] / makedat / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 dnl $Id: configure.in,v 1.11 2008/05/08 15:38:46 mrsam Exp $
3 dnl
4 dnl Copyright 1998 - 2001 Double Precision, Inc. See COPYING for
5 dnl distribution information.
6
7 AC_INIT(makedat, 0.60, [courier-users@lists.sourceforge.net])
8
9 >confdefs.h # Kill PACKAGE_ macros
10
11 AC_CONFIG_SRCDIR(makedatprog.c)
12 AM_INIT_AUTOMAKE([foreign no-define])
13 LPATH="$PATH:/usr/local/bin"
14 AM_CONFIG_HEADER(config.h)
15
16 dnl Checks for programs.
17 AC_PROG_CC
18 AC_PROG_INSTALL
19 AC_PROG_LN_S
20 AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)
21 AC_SUBST(PERL)
22 AC_PATH_PROGS(CAT, cat, cat)
23 AC_LIBTOOL_DLOPEN
24 AM_PROG_LIBTOOL
25
26 if test x$GCC = xyes
27 then
28 CFLAGS="-Wall $CFLAGS"
29 fi
30 if test x$GXX = xyes
31 then
32 CXXFLAGS="-Wall $CXXFLAGS"
33 fi
34
35 CFLAGS="-I$srcdir/.. -I.. $CFLAGS"
36 CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS"
37
38 dnl Check whether we should use gdbm, or db.
39
40 . ../dbobj.config
41 if test "$dblibrary" != ""
42 then
43 dblibrary="../$dblibrary"
44 fi
45 AC_SUBST(dblibrary)
46
47 makedatprog_target=""
48 if test "$dblibrary" != ""
49 then
50 makedatprog_target=makedatprog
51 fi
52 AC_SUBST(makedatprog_target)
53 AC_SUBST(dblibrary)
54
55 dnl Checks for header files.
56 AC_HEADER_STDC
57 AC_CHECK_HEADERS(unistd.h)
58
59 dnl Checks for typedefs, structures, and compiler characteristics.
60
61 dnl Checks for library functions.
62
63 AC_ARG_WITH(makedatprog,[ --with-makedatprog=filename Installed location and name of makedatprog], makedatprog="$withval", makedatprog="$bindir/makedatprog")
64
65 makedatprogpath="$makedatprog"
66 AC_SUBST(makedatprogpath)
67
68 AC_OUTPUT(Makefile makedat)