[Genabel-commits] r1882 - pkg/ProbABEL

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Nov 7 12:31:28 CET 2014


Author: lckarssen
Date: 2014-11-07 12:31:28 +0100 (Fri, 07 Nov 2014)
New Revision: 1882

Modified:
   pkg/ProbABEL/configure.ac
Log:
Proper use of CPPFLAGS instead of CXXFLAGS in ProbABEL's configure.ac.

Similar to what was done for OmicABELnoMM in r1879 and r1880.


Modified: pkg/ProbABEL/configure.ac
===================================================================
--- pkg/ProbABEL/configure.ac	2014-11-06 11:30:20 UTC (rev 1881)
+++ pkg/ProbABEL/configure.ac	2014-11-07 11:31:28 UTC (rev 1882)
@@ -44,11 +44,11 @@
 if test "x$devoptions" = "xno"; then
    if test -z "$CXXFLAGS"; then
       # User did not set CXXFLAGS, so we can put in our own defaults
-      CXXFLAGS="-O2 -DNDEBUG"
+      CXXFLAGS="-O2"
    fi
    if test -z "$CPPFLAGS"; then
       # User did not set CPPFLAGS, so we can put in our own defaults
-      CPPFLAGS+="-Wall"
+      CPPFLAGS+="-Wall -DNDEBUG"
    fi
 fi
 
@@ -57,7 +57,7 @@
 AC_PROG_CXX
 
 # Tell the compiler to build not R version of filevector
-CXXFLAGS+=" -D_NOT_R_FILEVECTOR"
+AC_SUBST(CPPFLAGS, "$CPPFLAGS -D_NOT_R_FILEVECTOR")
 
 
 # Since most of our code is in C++, set that language as the default
@@ -76,10 +76,8 @@
 AC_ARG_WITH([eigen-include-path],
     [AS_HELP_STRING([--with-eigen-include-path],
       [location of the Eigen headers, defaults to /usr/include/eigen3])],
-    [CXXFLAGS+=" -I${withval}"
-    CPPFLAGS+=" -I${withval}"],
-    [CXXFLAGS+=' -I/usr/include/eigen3'
-    CPPFLAGS+=' -I/usr/include/eigen3'])
+    [CPPFLAGS+=" -I${withval}"],
+    [CPPFLAGS+=' -I/usr/include/eigen3'])
 
 # Check for the EIGEN header files
 AC_CHECK_HEADERS([Eigen/Dense Eigen/LU])



More information about the Genabel-commits mailing list