summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rwxr-xr-xconfigure.ac17
1 files changed, 16 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6cca8610..dd88b820 100755
--- a/configure.ac
+++ b/configure.ac
@@ -125,7 +125,12 @@ if test "x${cflags_specified}" = "x" ; then
CFLAGS="${CFLAGS} -Wbad-function-cast -Wwrite-strings"
CFLAGS="${CFLAGS} -Wmissing-prototypes -Wmissing-declarations"
CFLAGS="${CFLAGS} -Wchar-subscripts -Wcast-qual"
- # TODO: conditionally addd -Wpacked if handled
+
+ CXXFLAGS="-Os -fno-omit-frame-pointer -g -Wall"
+ CXXFLAGS="${CFLAGS} -Wsign-compare -Wpointer-arith"
+ CXXFLAGS="${CFLAGS} -Wwrite-strings"
+ CXXFLAGS="${CFLAGS} -Wchar-subscripts -Wcast-qual"
+ # TODO: conditionally addd -Wpacked if handled
AC_MSG_RESULT([gcc default])
;;
"SUNPRO")
@@ -1315,6 +1320,16 @@ AC_TRY_COMPILE([#include <sys/resource.h>
AC_DEFINE(HAVE_RUSAGE,,rusage)],
AC_MSG_RESULT(no))
+dnl --------------------------------------
+dnl checking for clock_time monotonic struct and call
+dnl --------------------------------------
+AC_CHECK_LIB(rt, clock_gettime,
+[AC_DEFINE(HAVE_MONOTONIC_CLOCK,, Have monotonic clock)
+ LIBS="$LIBS -lrt"]
+)
+
+
+
dnl -------------------
dnl capabilities checks
dnl -------------------