gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 32a2dd9: Check for malloc returning valid poin


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 32a2dd9: Check for malloc returning valid pointer
Date: Fri, 28 Oct 2016 08:16:39 +0000 (UTC)

branch: master
commit 32a2dd964bc58fd23899c43705ea19f243aa0d64
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Check for malloc returning valid pointer
    
    On some systems (even those with Glibc) the library checks of `make check'
    would fail because of an undefined reference to `rpl_malloc'. This was
    because we were missing an `AC_FUNC_MALLOC' in `configure.ac'.
    
    This fixes bug #49459.
---
 configure.ac |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2e5468b..3666215 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,6 +124,13 @@ CC="$PTHREAD_CC"
 
 
 
+
+# Check if `malloc(0)' returns valid pointer
+AC_FUNC_MALLOC
+
+
+
+
 # Search for necessary libraries. After each library is found,
 # AC_SEARCH_LIBS adds the -lLIBRARY flag to the LIBS variable which is then
 # given to all the Makefiles. Each new flag is added to the left of the old



reply via email to

[Prev in Thread] Current Thread [Next in Thread]