-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfigure.in
76 lines (60 loc) · 1.74 KB
/
configure.in
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT(dbf, 0.9.0, [http://dbf.berlios.de])
AC_CONFIG_SRCDIR(src/dbf.c)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_MAINTAINER_MODE
AC_CONFIG_HEADER(config.h)
AC_PROG_INTLTOOL
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
dnl Add the languages which your application supports here.
ALL_LINGUAS="de"
AM_GLIB_GNU_GETTEXT
GETTEXT_PACKAGE=dbf
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", GETTEXT_PACKAGE)
AM_PROG_LIBTOOL
# Checks for libraries.
AC_ARG_WITH(dbflib, [ --with-dbflib=DIR Path to dbf library (/usr)])
if test -r ${withval}/include/dbf.h ; then
DBFLIB_LIBDIR=-L${withval}/lib
DBFLIB_INCLUDEDIR=-I${withval}/include
else
DBFLIB_LIBDIR=-L/usr
DBFLIB_INCLUDEDIR=-I/usr/include
fi
AC_CHECK_LIB(dbf, dbf_Open,
DBFLIB_LIBDIR="$DBFLIB_LIBDIR",
AC_MSG_ERROR([libdbf not found. You will need at least libdbf 0.3.0]),
"$DBFLIB_LIBDIR")
DBFLIB_LIBS=-ldbf
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_PROG(DOC_TO_MAN, docbook-to-man, docbook-to-man)
if test ! "$DOC_TO_MAN" ; then
DOCDIR=
AC_MSG_RESULT([docbook-to-man could not be found. I will not build man pages!])
else
DOCDIR=man
fi
AC_SUBST(DBFLIB_LIBDIR)
AC_SUBST(DBFLIB_LIBS)
AC_SUBST(DBFLIB_INCLUDEDIR)
AC_SUBST(DOCDIR)
AC_SUBST(DOC_TO_MAN)
AC_OUTPUT([dbf.spec
Makefile
man/Makefile
src/Makefile
po/Makefile.in
])