[svn] commit: r424 - /branches/parkinglot/configure.ac

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Dec 31 18:13:16 UTC 2009


Author: jreed
Date: Thu Dec 31 18:13:15 2009
New Revision: 424

Log:
Fix --with-lcov to actually accept the specified location.
And fix setting of CPPFLAGS and LIBS. Don't use make-style
variable syntax in shell scripts as it became shell command substition.

Modified:
    branches/parkinglot/configure.ac

Modified: branches/parkinglot/configure.ac
==============================================================================
--- branches/parkinglot/configure.ac (original)
+++ branches/parkinglot/configure.ac Thu Dec 31 18:13:15 2009
@@ -33,7 +33,7 @@
         AC_MSG_RESULT(no))
 
 AC_ARG_WITH(lcov,
-[  --with-lcov         enable gtest and coverage target using the specified lcov], lcov="yes", lcov="no")
+[  --with-lcov[=PROGRAM]         enable gtest and coverage target using the specified lcov], lcov="$withval", lcov="no")
 
 AC_ARG_WITH(gtest,
 [  --with-gtest=PATH       specify a path to gtest header files (PATH/include) and library (PATH/lib)],
@@ -65,8 +65,9 @@
 	if test ! -x $GENHTML; then
 		AC_MSG_ERROR([genhtml not found, needed for lcov])
 	fi
-	CPPFLAGS="$(CPPFLAGS) -fprofile-arcs -ftest-coverage"
-	LIBS=" $(LIBS) -lgcov"
+	# GCC specific?
+	CPPFLAGS="$CPPFLAGS -fprofile-arcs -ftest-coverage"
+	LIBS=" $LIBS -lgcov"
 	AC_SUBST(CPPFLAGS)
 	AC_SUBST(LIBS)
 	AC_SUBST(LCOV)




More information about the bind10-changes mailing list