From 5282d4ad15537599bd9398c191a33c87428ccb33 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Thu, 30 Jul 2009 22:46:56 +0000 Subject: [PATCH] fix automake build --- configure.in.automake | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.in.automake b/configure.in.automake index 768ed2c..0cf0c88 100644 --- a/configure.in.automake +++ b/configure.in.automake @@ -8,6 +8,8 @@ AM_INIT_AUTOMAKE() #hello,0.1) AC_CONFIG_SRCDIR([config.h.in]) AC_CONFIG_HEADER([config.h]) +AC_DEFINE([_GNU_SOURCE], [], [Use gnu extensions (needed for sync_data_range)]) + # Checks for programs. #AC_PROG_CXX AC_PROG_CC @@ -59,9 +61,10 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[ if test "$test_host_prw" = "no" -a "$db_cv_open_o_direct" = "yes"; then case "$host_os" in linux*) - db_cv_open_o_direct=no; - AC_MSG_WARN( - [O_DIRECT interface ignored on $host_os-$host_vendor.]);; +# odirect probably works in linux now... +# db_cv_open_o_direct=no; +# AC_MSG_WARN( +# [O_DIRECT interface ignored on $host_os-$host_vendor.]);; esac fi if test "$db_cv_open_o_direct" = "yes"; then