]> granicus.if.org Git - check/commitdiff
example: use pkg-config to find check
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 5 Mar 2014 02:19:32 +0000 (02:19 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 5 Mar 2014 02:19:32 +0000 (02:19 +0000)
Moving away from the deprecated AM_PATH_CHECK to the
not-deprecated PKG_CHECK_MODULES

Based on patch submitted by Julien Godin

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1124 64e312b2-a51f-0410-8e61-82d0ca0eb02a

AUTHORS
doc/example/configure.ac

diff --git a/AUTHORS b/AUTHORS
index 66c165856d21c42eaa84bc4fc11246120db6f14e..5e6d2a488b63a49200281e69999c8d8053599f5a 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -44,6 +44,7 @@ Contributors:
     Pino Toscano          (GNU/Hurd support for subsecond timeouts)
     lod                   (compiler warning)
     Bill Kolokithas       (more checkmk directives)
+    Julien Godin          (configure.ac patch for Check example)
 
 Anybody who has contributed code to Check or Check's build system is
 considered an author.  Send patches to this file to 
index a25417be899f8d3b008060eb5b293a47301c9233..f3cb54b184afefa0b1c7732c5dcb63c0ea209a97 100644 (file)
@@ -3,6 +3,7 @@
 # Prelude.
 AC_PREREQ([2.59])
 AC_INIT([Money], [0.3], [check-devel AT lists.sourceforge.net])
+AM_PROG_AR
 
 # unique source file --- primitive safety check 
 AC_CONFIG_SRCDIR([src/money.c])
@@ -20,12 +21,8 @@ AC_PROG_LIBTOOL
 
 # Checks for libraries.
 
-# This macro is defined in check.m4 and tests if check.h and
-# libcheck.a are installed in your system. It sets CHECK_CFLAGS and
-# CHECK_LIBS accordingly.  
-#  AM_PATH_CHECK([MINIMUM-VERSION,
-#                [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
-AM_PATH_CHECK()
+PKG_CHECK_MODULES([CHECK], [check >= 0.9.6])
+AM_PROG_CC_C_O
 
 # Checks for header files.
 AC_HEADER_STDC