40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
|
AC_INIT(c/bdb.c)
|
||
|
AM_INIT_AUTOMAKE(scsh-bdb, 0.1)
|
||
|
AM_CONFIG_HEADER(c/config.h)
|
||
|
|
||
|
AC_ENABLE_SHARED
|
||
|
AM_PROG_LIBTOOL
|
||
|
|
||
|
AC_PROG_CC
|
||
|
AC_STDC_HEADERS
|
||
|
|
||
|
dnl scsh include path
|
||
|
AC_ARG_WITH(scsh-includes,
|
||
|
AC_HELP_STRING([--with-scsh-includes=DIR],
|
||
|
[scsh include files are in DIR [default is /usr/local/include]]),
|
||
|
scsh_includes=$withval,
|
||
|
scsh_includes=/usr/local/include)
|
||
|
AC_SUBST(CFLAGS, "$CFLAGS -I${scsh_includes}")
|
||
|
AC_SUBST(CPPFLAGS, "$CPPFLAGS -I${scsh_includes}")
|
||
|
|
||
|
dnl Berkeley DB prefix
|
||
|
AC_ARG_WITH(bdb-prefix,
|
||
|
AC_HELP_STRING([--with-bdb-prefix=DIR],
|
||
|
[Berkeley DB library and include have prefix DIR [default is /usr/local]]),
|
||
|
[bdb_lib=$withval/lib bdb_include=$withval/include],
|
||
|
[bdb_lib=/usr/local/lib bdb_include=/usr/local/include])
|
||
|
AC_SUBST(LDFLAGS, "$LDFLAGS -L${bdb_lib} -ldb-4")
|
||
|
AC_SUBST(CFLAGS, "$CFLAGS -I${bdb_include}")
|
||
|
AC_SUBST(CPPFLAGS, "$CPPFLAGS -I${bdb_include}")
|
||
|
|
||
|
schemedir='${prefix}'"/scheme"
|
||
|
libdir='${prefix}'"/lib"
|
||
|
libsysdir='${prefix}'
|
||
|
|
||
|
AC_SUBST(libdir)
|
||
|
AC_SUBST(libsysdir)
|
||
|
AC_SUBST(schemedir)
|
||
|
AC_SUBST(CC)
|
||
|
AC_OUTPUT([Makefile c/Makefile])
|
||
|
|