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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
# $Id: configure.ac,v 1.29 2015/01/21 03:00:42 sarrazip Exp $
AC_PREREQ(2.54)
AC_INIT(boolstuff, 0.1.16)
AC_CONFIG_SRCDIR(src/boolstuff/BoolExpr.h)
AM_INIT_AUTOMAKE
API=`echo $VERSION | cut -d . -f -2`; AC_SUBST(API)
RELEASE=`echo $VERSION | cut -d . -f 3`; AC_SUBST(RELEASE)
PACKAGE_FULL_NAME="BoolStuff"
PACKAGE_SUMMARY_EN="Disjunctive Normal Form boolean expression library"
PACKAGE_SUMMARY_FR="Librairie calculant la forme normale disjonctive boolenne"
AC_SUBST(PACKAGE_FULL_NAME)
AC_SUBST(PACKAGE_SUMMARY_EN)
AC_SUBST(PACKAGE_SUMMARY_FR)
MANUAL_DATE_EN="May 24th, 2016"; AC_SUBST(MANUAL_DATE_EN)
MANUAL_DATE_FR="24 mai 2016"; AC_SUBST(MANUAL_DATE_FR) # UTF-8
AC_PROG_CXX
AC_PROG_CC
AC_COMPILE_WARNINGS
dnl For `checkc' target in src/boolstuff/Makefile.am.
dnl Avoids this warning:
dnl compiling `checkc.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'
AM_PROG_CC_C_O
AC_LANG_CPLUSPLUS
AC_DISABLE_STATIC
AM_PROG_LIBTOOL dnl This must come after AC_DISABLE_STATIC.
# The application has a test suite that is written in Perl.
#
AC_PROG_PERL_MODULES(IPC::Open2)
# Check for getopt_long() but don't fail if it is not available:
#
GETOPT_LONG
# Check for <sstream> and <stdiostream.h>:
#
AC_CXX_HAVE_STD
if test "_$ac_cv_cxx_have_std" = _no; then
AC_MSG_ERROR([this program requires the ISO C++ standard library
and expects it to be in the std namespace])
fi
AC_CXX_HAVE_SSTREAM
if test "_$ac_cv_cxx_have_sstream" = _no; then
AC_MSG_ERROR([this program requires the <sstream> C++ header])
fi
AC_CONFIG_FILES([
Makefile
boolstuff-0.1.spec
boolstuff-0.1.pc
src/Makefile
src/boolstuff/Makefile
src/commands/Makefile
doc/booldnf.1
doc/boolstuff.3
examples/Makefile
])
AC_OUTPUT
|