From 76569d4f8faa8933ac360c03bc28acda0c86d774 Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sat, 17 Aug 2002 11:23:11 +0000 Subject: [PATCH] make FAST_FILE_IO the default on little-endian machines --- configure.ac | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 63c74649..bfc5083c 100644 --- a/configure.ac +++ b/configure.ac @@ -117,9 +117,15 @@ fi dnl Build with FAST_FILE_IO? AC_ARG_ENABLE(fastfileio, - [ --enable-fastfileio Fast file i/o build. little-endian only ],,) -if test x$enable_fastfileio = xyes; then - AC_DEFINE(FAST_FILE_IO,,[Define for a faster file i/o on little-endian machines]) + [ --disable-fastfileio Disable fast file i/o. ],,) +if test x$enable_fastfileio != xno; then + if test x$ac_cv_c_bigendian = xyes; then + AC_MSG_WARN([big-endian cpu detected. disabling fastfileio]) + enable_fastfileio="no"; + fi +fi +if test x$enable_fastfileio != xno; then + AC_DEFINE(FAST_FILE_IO,,[Define for faster i/o on little-endian cpus]) D2X_FEATURES="fastfileio ${D2X_FEATURES}" fi -- 2.39.2