Fix: check for rand_r() in compat-rand.h
[urcu.git] / configure.ac
index eb54f4eb78f692f346b147a455fce330b5420638..cd5a05a426a63cc1a4873b5f632e67e577f0e3ce 100644 (file)
@@ -84,7 +84,6 @@ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 CC="$PTHREAD_CC"
 
 # Checks for library functions.
-AC_FUNC_MALLOC
 AC_FUNC_MMAP
 AC_FUNC_FORK
 AC_CHECK_FUNCS([ \
@@ -95,12 +94,16 @@ AC_CHECK_FUNCS([ \
        memeset \
        memset \
        munmap \
+       rand_r \
        sched_getcpu \
        strerror \
        strtoul \
        sysconf \
 ])
 
+# AC_FUNC_MALLOC causes problems when cross-compiling.
+#AC_FUNC_MALLOC
+
 # Check for headers
 AC_HEADER_STDBOOL
 AC_CHECK_HEADERS([ \
This page took 0.023427 seconds and 4 git commands to generate.