Set -Wall globally in AM_CFLAGS
[urcu.git] / configure.ac
index 5aa343353ae806de28c22b024a6961fd2e73ab88..020adfc2648950b2f591c25ba7d671c8bcab3f62 100644 (file)
@@ -90,6 +90,8 @@ AS_IF([test "x$ax_cv___attribute__" = "xyes"],
 
 AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
 
 
 AX_PTHREAD(,[AC_MSG_ERROR([Could not configure pthreads support])])
 
+AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
+
 # Checks for library functions.
 AC_FUNC_MMAP
 AC_FUNC_FORK
 # Checks for library functions.
 AC_FUNC_MMAP
 AC_FUNC_FORK
@@ -367,6 +369,7 @@ AC_CHECK_FUNCS([sched_setaffinity],[
 AM_CPPFLAGS="-include config.h"
 AC_SUBST(AM_CPPFLAGS)
 
 AM_CPPFLAGS="-include config.h"
 AC_SUBST(AM_CPPFLAGS)
 
+AM_CFLAGS="-Wall $AM_CFLAGS"
 AC_SUBST(AM_CFLAGS)
 
 AC_CONFIG_LINKS([
 AC_SUBST(AM_CFLAGS)
 
 AC_CONFIG_LINKS([
This page took 0.023242 seconds and 4 git commands to generate.