> > > The hacker's guide has been updated to document this new
> > > functionality.
> > 'make check' is failing due to undefined reference to `srunner_run'. I
> > tried flipping the HAVE_NOCHECK define in config.h with no joy. I also
> > tried adding srunner_run to check.h/check.c (with srunner_run simply
> > calling the existing srunner_run_all) - no joy.
> 
> That `srunner_run' function is in SVN check:
> svn co https://check.svn.sourceforge.net/svnroot/check check 
> 
> You need to get it & compile it from scratch.
> 
> I wanted to push a change into configure.ac yesterday so that libcheck
> will only be used if the version with `srunner_run' was found
> (AC_CHECK_LIB) but it got quite late and didn't have time to test it.
> 

Attached a diff modifying configure.ac to look for svn check
=== modified file 'ChangeLog'
--- ChangeLog	2010-02-19 01:03:33 +0000
+++ ChangeLog	2010-02-19 17:36:18 +0000
@@ -1,5 +1,11 @@
 2010-02-19  Aleksander Morgado  <[email protected]>
 
+	* configure.ac: Check for `srunner_run' in libcheck, which is available
+	in the SVN version. If not found in the installed libcheck, no unit
+	tests will run.
+
+2010-02-19  Aleksander Morgado  <[email protected]>
+
 	* torture/unit/Makefile.am (EXTRA_DIST): Include `runtests.sh' in the
 	dist.
 	(top_builddir): The `runtests' binary to execute is generated in

=== modified file 'configure.ac'
--- configure.ac	2009-12-03 05:17:25 +0000
+++ configure.ac	2010-02-19 17:36:18 +0000
@@ -113,7 +113,7 @@
 fi
 
 have_check=yes
-AC_CHECK_LIB([check],[suite_create],,[have_check=no])
+AC_CHECK_LIB([check],[srunner_run],,[have_check=no])
 AM_CONDITIONAL([CHECK], [test "x$have_check" != "xno"])
 
 AC_CHECK_LIB([iconv],[iconv_open],[have_iconv=yes],[have_iconv=no])
@@ -271,12 +271,12 @@
 
 dnl Check if Unit testing support is available with Check or No-Check
 ut_support=no
-AM_CONDITIONAL([COMPILE_UT], [test "x$use_nocheck" = "xyes" -o "x$ac_cv_lib_check_suite_create" = "xyes"])
+AM_CONDITIONAL([COMPILE_UT], [test "x$use_nocheck" = "xyes" -o "x$ac_cv_lib_check_srunner_run" = "xyes"])
 if test "x$use_nocheck" = "xyes"; then
   ut_framework="(builtin No-Check)"
   ut_support=yes
 else
-  if test "x$ac_cv_lib_check_suite_create" = "xyes"; then
+  if test "x$ac_cv_lib_check_srunner_run" = "xyes"; then
     ut_framework="(Check)"
     ut_support=yes
   fi

Reply via email to