ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/libcpjit/configure.ac
(Generate patch)

Comparing cvsroot/libcpjit/configure.ac (file contents):
Revision 1.4 by root, Tue Oct 11 22:06:24 2005 UTC vs.
Revision 1.5 by root, Fri Oct 14 00:21:57 2005 UTC

6AC_CONFIG_SRCDIR([cpjit.h]) 6AC_CONFIG_SRCDIR([cpjit.h])
7AC_CONFIG_HEADER([config.h]) 7AC_CONFIG_HEADER([config.h])
8 8
9# Checks for programs. 9# Checks for programs.
10AC_PROG_CXX 10AC_PROG_CXX
11
12# Checks for libraries.
13AC_ARG_WITH(db,
14 [ --with-db=PATH Specify path to BerkelyDB install directory ],
15 [
16 if test "x$withval" != "xno" ; then
17 if test -d "$withval/lib"; then
18 LDFLAGS="-L${withval}/lib $LDFLAGS"
19 else
20 LDFLAGS="-L${withval} $LDFLAGS"
21 fi
22 if test -d "$withval/include"; then
23 CPPFLAGS="-I${withval}/include $CPPFLAGS"
24 else
25 CPPFLAGS="-I${withval} $CPPFLAGS"
26 fi
27 fi
28 ],
29 [
30 AC_EGREP_HEADER([DB_VERSION_MAJOR *3|4], [db.h],,
31 AC_MSG_ERROR([No suitable BerkeleyDB db.h header file found.
32 Use --with-db=PATH to specify the path to a version 3 or later install directory.
33 You can download BerkeleyDB from http://www.sleepycat.com]
34 )
35 )
36 ]
37)
38
39AC_TRY_LINK_FUNC(db_create,,
40 AC_CHECK_LIB(db-4, db_create, LIBS="$LIBS -ldb-4",
41 AC_CHECK_LIB(db-3, db_create, LIBS="$LIBS -ldb-3",
42 AC_CHECK_LIB(db-2, db_create, LIBS="$LIBS -ldb-2",
43 AC_CHECK_LIB(db, db_create, LIBS="$LIBS -ldb",
44 AC_CHECK_LIB(db3, db_create, LIBS="$LIBS -ldb3",
45 AC_CHECK_LIB(db-3.1, db_create, LIBS="$LIBS -ldb-3.1",
46 AC_CHECK_LIB(db4, db_create, LIBS="$LIBS -ldb4",
47 AC_MSG_ERROR([No suitable BerkeleyDB library found.
48 Use --with-db=PATH to specify the path to a version 3 or later install directory.
49 You can download BerkeleyDB from http://www.sleepycat.com])))))))))
50 11
51# Checks for header files. 12# Checks for header files.
52 13
53# Checks for typedefs, structures, and compiler characteristics. 14# Checks for typedefs, structures, and compiler characteristics.
54 15

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines