|
|
|
dnl Process this file with autoconf to produce a configure script.
|
|
|
|
|
|
|
|
AC_INIT(libsxmp, 0.4.1)
|
|
|
|
|
|
|
|
AC_CONFIG_HEADERS([config.h])
|
|
|
|
|
|
|
|
AM_INIT_AUTOMAKE([1.11])
|
|
|
|
|
|
|
|
AM_SILENT_RULES([yes])
|
|
|
|
|
|
|
|
AC_PROG_CC
|
|
|
|
|
|
|
|
LT_INIT
|
|
|
|
|
|
|
|
dnl *****************
|
|
|
|
dnl ***** options *****
|
|
|
|
dnl *****************
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([build_examples],
|
|
|
|
AS_HELP_STRING([--enable-build-examples], [Enable examples build]))
|
|
|
|
|
|
|
|
AS_IF([test "x$enable_build_examples" = "xyes"], [
|
|
|
|
AC_DEFINE([BUILD_EXAMPLES], 1, [build of examples enabled])
|
|
|
|
])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_build_examples" = "xyes")
|
|
|
|
|
|
|
|
AC_ARG_ENABLE([build_tests],
|
|
|
|
AS_HELP_STRING([--enable-build-tests], [Enable build of tests]))
|
|
|
|
|
|
|
|
AS_IF([test "x$enable_build_tests" = "xyes"], [
|
|
|
|
AC_DEFINE([BUILD_TESTS], 1, [build of tests enabled])
|
|
|
|
])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(BUILD_TESTS, test "x$enable_build_tests" = "xyes")
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(OPENSSL, [openssl])
|
|
|
|
|
|
|
|
PKG_CHECK_MODULES(LIBTDATA, [libtdata >= 0.2.2])
|
|
|
|
PKG_CHECK_MODULES(LIBSEXPR, [libsexpr >= 1.3.1])
|
|
|
|
|
|
|
|
case $host_os in
|
|
|
|
linux*) WIN32=no
|
|
|
|
LINUX=yes
|
|
|
|
PKG_CHECK_MODULES(LIBUUID, [uuid]);;
|
|
|
|
mingw*) WIN32=yes
|
|
|
|
LINUX=no;;
|
|
|
|
msys*) WIN32=yes
|
|
|
|
LINUX=no;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL(COND_WIN32, test x$WIN32=xyes)
|
|
|
|
|
|
|
|
dnl AM_CONDITIONAL(BUILD_WIN32, test "x$enable_win32_build" = "xyes")
|
|
|
|
|
|
|
|
|
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
|
|
|
lib/libsxmp.pc
|
|
|
|
lib/Makefile
|
|
|
|
include/Makefile
|
|
|
|
man/Makefile
|
|
|
|
examples/Makefile
|
|
|
|
tests/Makefile])
|