From 621dfd5e2ee3405cad0a0bef95a21a4a541acc24 Mon Sep 17 00:00:00 2001 From: pschwan Date: Tue, 27 May 2003 04:59:46 +0000 Subject: [PATCH] I think I've finally got it; we don't want to save the cppflags before doing the rh-2.4.20 check --- lnet/archdep.m4 | 7 ------- lustre/portals/archdep.m4 | 7 ------- 2 files changed, 14 deletions(-) diff --git a/lnet/archdep.m4 b/lnet/archdep.m4 index dffbec2..2c7fa59 100644 --- a/lnet/archdep.m4 +++ b/lnet/archdep.m4 @@ -301,10 +301,6 @@ AM_CONDITIONAL(LIBLUSTRE, test x$host_cpu = xlib) # ---------- Red Hat 2.4.20 backports some 2.5 bits -------- # This needs to run after we've defined the KCPPFLAGS -SAVE_CPPFLAGS=$CPPFLAGS -SAVE_CFLAGS=$CFLAGS -CPPFLAGS=$KCPPFLAGS -CFLAGS=$KCFLAGS AC_MSG_CHECKING(for kernel version) AC_TRY_LINK([#define __KERNEL__ #include ], @@ -313,9 +309,6 @@ AC_TRY_LINK([#define __KERNEL__ [RH_2_4_20=1], [RH_2_4_20=0]) -CPPFLAGS=$SAVE_CPPFLAGS -CFLAGS=$SAVE_CFLAGS - if test $RH_2_4_20 = 1; then AC_MSG_RESULT(redhat-2.4.20) CPPFLAGS="$CPPFLAGS -DCONFIG_RH_2_4_20" diff --git a/lustre/portals/archdep.m4 b/lustre/portals/archdep.m4 index dffbec2..2c7fa59 100644 --- a/lustre/portals/archdep.m4 +++ b/lustre/portals/archdep.m4 @@ -301,10 +301,6 @@ AM_CONDITIONAL(LIBLUSTRE, test x$host_cpu = xlib) # ---------- Red Hat 2.4.20 backports some 2.5 bits -------- # This needs to run after we've defined the KCPPFLAGS -SAVE_CPPFLAGS=$CPPFLAGS -SAVE_CFLAGS=$CFLAGS -CPPFLAGS=$KCPPFLAGS -CFLAGS=$KCFLAGS AC_MSG_CHECKING(for kernel version) AC_TRY_LINK([#define __KERNEL__ #include ], @@ -313,9 +309,6 @@ AC_TRY_LINK([#define __KERNEL__ [RH_2_4_20=1], [RH_2_4_20=0]) -CPPFLAGS=$SAVE_CPPFLAGS -CFLAGS=$SAVE_CFLAGS - if test $RH_2_4_20 = 1; then AC_MSG_RESULT(redhat-2.4.20) CPPFLAGS="$CPPFLAGS -DCONFIG_RH_2_4_20" -- 1.8.3.1