Revision 80f2b368e3011f2676f42c66e989504772338554 authored by Eh Tan on 16 October 2013, 05:09:46 UTC, committed by Eh Tan on 16 October 2013, 05:09:46 UTC
1 parent 90690a9
cit_cppunit.m4
# -*- Autoconf -*-
# ======================================================================
# Autoconf macros for cppunit.
# ======================================================================
# ----------------------------------------------------------------------
# CIT_CPPUNIT_HEADER
# ----------------------------------------------------------------------
AC_DEFUN([CIT_CPPUNIT_HEADER], [
AC_LANG(C++)
AC_CHECK_HEADER([cppunit/TestRunner.h], [], [
AC_MSG_ERROR([CppUnit header not found; try CPPFLAGS="-I<CppUnit include dir>"])
])dnl
])dnl CIT_CPPUNIT_HEADER
# ----------------------------------------------------------------------
# CIT_CPPUNIT_LIB
# ----------------------------------------------------------------------
AC_DEFUN([CIT_CPPUNIT_LIB], [
AC_LANG(C++)
AC_MSG_CHECKING([for CppUnit::TestRunner in -lcppunit])
AC_REQUIRE_CPP
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([[#include <cppunit/TestRunner.h>]],
[[CppUnit::TestRunner runner;]])],
[AC_MSG_RESULT(yes)],
[AC_MSG_RESULT(no)
AC_MSG_ERROR([CppUnit library not found; try LDFLAGS="-L<CppUnit lib dir>"])
])dnl
])dnl CIT_CPPUNIT
dnl end of file

Computing file changes ...