fix automake build

This commit is contained in:
Sears Russell 2009-07-30 22:46:56 +00:00
parent 95fe755df5
commit 5282d4ad15

View file

@ -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