File: configure.ac

package info (click to toggle)
ocaml-sqlite 0.3.5.arch.4-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 204 kB
  • ctags: 133
  • sloc: sh: 2,759; ansic: 540; ml: 216; makefile: 120
file content (39 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (2)
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
AC_INIT(ocaml-sqlite, 0.3.5, martine@danga.com)
AC_CONFIG_SRCDIR(sqlite.mli)

AC_CHECKING(for ocaml compiler and tools)
AC_CHECK_PROG(ocamlc,ocamlc,ocamlc)
AC_CHECK_PROG(ocamlopt,ocamlopt,ocamlopt)
AC_CHECK_PROG(ocamlfind,ocamlfind,ocamlfind)

AC_PROG_INSTALL
AC_SUBST(INSTALL)

AC_CHECKING(for C compiler)
AC_PROG_CC

AC_CHECKING(for C header files)
AC_HEADER_STDC

AC_CHECKING(libraries)

AC_ARG_WITH(
  sqlite,
  [AC_HELP_STRING([[--with-sqlite=PATH]],[base directory for sqlite])],
  [LIBS="$LIBS -L$withval/lib"
   CPPFLAGS="$CPPFLAGS -I$withval/include"])

AC_CHECKING(for sqlite library)
AC_CHECK_LIB(
  sqlite, sqlite_open,,
  AC_ERROR([SQLite is required.  See the --with-sqlite configure option.]))

AC_CHECKING(for Sqlite header files)
AC_CHECK_HEADER(sqlite.h,,
  AC_ERROR([SQLite is required.  See the --with-sqlite configure option.]))

AC_CHECKING(for OCaml header files)
CAMLLOC=`$ocamlc -where`
CPPFLAGS="$CPPFLAGS -I$CAMLLOC"
AC_OUTPUT(Makefile)
AC_OUTPUT(META)