File: configure.in

package info (click to toggle)
clisp 1%3A2.44.1-4.1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 40,080 kB
  • ctags: 12,945
  • sloc: lisp: 77,546; ansic: 32,166; xml: 25,161; sh: 11,568; fortran: 7,094; cpp: 2,636; makefile: 1,234; perl: 164
file content (39 lines) | stat: -rw-r--r-- 1,095 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
dnl AUTOCONF configuration for Gdbm
dnl Copyright (C) 2007  Masayuki Onjo <onjo@lispuser.net>
dnl Copyright (C) 2007  Sam Steingold <sds@gnu.org>
dnl GNU GPL2

AC_PREREQ(2.57)
AC_INIT(gdbm, 1.0, clisp-list)
AC_CONFIG_SRCDIR(gdbm.lisp)
AC_CONFIG_HEADERS(config.h)

RSE_BOLD
BOLD_MSG([Gdbm (Common)])
CL_MODULE_COMMON_CHECKS

dnl Search for libgdbm and define LIBGDBM, INCGDBM.
AC_CONFIG_AUX_DIR(../../src/build-aux)
AC_LIB_LINKFLAGS([gdbm])

BOLD_MSG([Gdbm (Headers)])
AC_CHECK_HEADERS(gdbm.h gdbm/gdbm.h, break)
if test "$ac_cv_header_gdbm_h" = "no" -a "$ac_cv_header_gdbm_gdbm_h" = "no";
then AC_MSG_ERROR([cannot find Gdbm headers])
fi

BOLD_MSG([Gdbm (Functions)])
AC_LIB_APPENDTOVAR([LIBS], [$LIBGDBM])
AC_SEARCH_LIBS(gdbm_open, gdbm)
if test "$ac_cv_search_gdbm_open" = "no"; then
  AC_MSG_ERROR([cannot find Gdbm library])
fi
AC_CHECK_FUNCS(gdbm_open gdbm_close gdbm_fdesc gdbm_store gdbm_fetch dnl
gdbm_delete gdbm_firstkey gdbm_nextkey gdbm_reorganize gdbm_sync dnl
gdbm_exists gdbm_setopt)

BOLD_MSG([Gdbm (Output)])
AC_CONFIG_FILES(Makefile link.sh)
AC_OUTPUT

BOLD_MSG([Gdbm (Done)])