|
|
|
@ -2,7 +2,7 @@ dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
|
|
AC_INIT(libsntl, 0.1)
|
|
|
|
|
|
|
|
|
|
LDFLAGS="$LDFLAGS -L/mingw/lib -L/local/lib"
|
|
|
|
|
#LDFLAGS="$LDFLAGS -L/mingw/lib -L/local/lib"
|
|
|
|
|
|
|
|
|
|
AC_CONFIG_MACRO_DIR(['/share/aclocal/'])
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
@ -15,11 +15,6 @@ AC_PROG_CC
|
|
|
|
|
|
|
|
|
|
LT_INIT
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(OPENSSL, [openssl])
|
|
|
|
|
dnl PKG_CHECK_MODULES(LIBUUID, [uuid])
|
|
|
|
|
PKG_CHECK_MODULES(LIBTDATA, [libtdata])
|
|
|
|
|
PKG_CHECK_MODULES(LIBSEXPR, [libsexpr])
|
|
|
|
|
|
|
|
|
|
dnl *****************
|
|
|
|
|
dnl ***** options *****
|
|
|
|
|
dnl *****************
|
|
|
|
@ -33,6 +28,29 @@ AS_IF([test "x$enable_build_examples" = "xyes"], [
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_build_examples" = "xyes")
|
|
|
|
|
|
|
|
|
|
dnl ************win32*********
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([win32],
|
|
|
|
|
AS_HELP_STRING([--enable-win32-build], [Enable win32 build mode]))
|
|
|
|
|
|
|
|
|
|
AS_IF([test "x$enable_win32_build" = "xyes"], [
|
|
|
|
|
AC_DEFINE([BUILD_WIN32], 1, [build for win32]),
|
|
|
|
|
LDFLAGS="$LDFLAGS -L/mingw/lib -L/local/lib"
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
PKG_CHECK_MODULES(LIBUUID, [uuid])
|
|
|
|
|
]
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(OPENSSL, [openssl])
|
|
|
|
|
dnl PKG_CHECK_MODULES(LIBUUID, [uuid])
|
|
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(LIBTDATA, [libtdata])
|
|
|
|
|
PKG_CHECK_MODULES(LIBSEXPR, [libsexpr])
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_WIN32, test "x$enable_win32_build" = "xyes")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
|
Makefile
|
|
|
|
|
lib/libsntl.pc
|
|
|
|
|