diff options
author | Daniel Gollub <dgollub@att.com> | 2019-11-11 15:07:38 +0100 |
---|---|---|
committer | Vyatta Package Maintainers <DL-vyatta-help@att.com> | 2019-11-13 17:08:02 +0000 |
commit | 822c8f60b72cca97fb2c86db37835a60917d1c7e (patch) | |
tree | d5593a4ed1cbb8e9709411679974355a41f0289e /configure.ac | |
download | tacplusd-822c8f60b72cca97fb2c86db37835a60917d1c7e.tar.gz tacplusd-822c8f60b72cca97fb2c86db37835a60917d1c7e.zip |
DANOS ImportHEADdebian/1.19danos/1908master
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..ec08496 --- /dev/null +++ b/configure.ac @@ -0,0 +1,42 @@ +AC_PREREQ(2.69) + +m4_define([VERSION_ID], [m4_esyscmd([ + echo -n `dpkg-parsechangelog | sed -n 's/^Version: //p'` + ])]) + +AC_INIT([tacplusd], VERSION_ID, [DL-vyatta-help@att.com]) + +#AC_CONFIG_AUX_DIR([config]) +AM_INIT_AUTOMAKE([1.11.1 foreign no-dist-gzip dist-bzip2 subdir-objects parallel-tests]) + +AC_PROG_CC +AC_PROG_CXX +AM_PROG_AS +AM_PROG_CC_C_O + +PKG_CHECK_MODULES([SYSTEMD],[libsystemd]) +PKG_CHECK_MODULES([LIBTAC],[libtac]) +PKG_CHECK_MODULES([LIBTAC_EVENT],[libtac-event], + [AC_DEFINE([HAVE_LIBTAC_EVENT], [1], [libtac-event present])], + true +) +PKG_CHECK_MODULES([GLIB],[glib-2.0]) + +AC_CONFIG_FILES([ + Makefile + tacplus-daemon/Makefile + tacplus-daemon/test/Makefile +]) + +PKG_CHECK_MODULES(cpputest, [cpputest], [], [ + dnl Fall back to classic searching. 3.1 on Wheezy doesn't supply .pc + AC_LANG_CPLUSPLUS + AC_CHECK_LIB([CppUTest], [main], [ + have_cpputest=yes + cpputest_LIBS="-lstdc++ -lCppUTest -lCppUTestExt" + cpputest_CFLAGS=""], + [AC_MSG_ERROR(cpputest is required for this program)]) + AC_LANG_C ] +) + +AC_OUTPUT |