From cc6bf09cdc41eb51ac9b2a2c2f3ebb114672d85e Mon Sep 17 00:00:00 2001 From: rahuel Date: Fri, 5 Nov 2004 07:06:25 +0000 Subject: [PATCH] Portability Alpha_OSF(CCRT) --- salome_adm/unix/config_files/check_med2.m4 | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/salome_adm/unix/config_files/check_med2.m4 b/salome_adm/unix/config_files/check_med2.m4 index 68345204c..6e8192b44 100644 --- a/salome_adm/unix/config_files/check_med2.m4 +++ b/salome_adm/unix/config_files/check_med2.m4 @@ -58,7 +58,15 @@ dnl check med2 header CPPFLAGS_old="$CPPFLAGS" dnl we must test system : linux = -DPCLINUX -CPPFLAGS="$CPPFLAGS -DPCLINUX $LOCAL_INCLUDES" +dnl we must test system : Alpha-OSF = -DOSF1 +case $host_os in + linux*) + CPPFLAGS="$CPPFLAGS -DPCLINUX $LOCAL_INCLUDES" + ;; + osf*) + CPPFLAGS="$CPPFLAGS -DOSF1 $LOCAL_INCLUDES" + ;; +esac AC_CHECK_HEADER(med.h,med2_ok=yes ,med2_ok=no) CPPFLAGS="$CPPFLAGS_old" @@ -76,7 +84,14 @@ fi if test "x$med2_ok" = "xyes" then - MED2_INCLUDES="-DPCLINUX $LOCAL_INCLUDES" +case $host_os in + linux*) + MED2_INCLUDES="-DPCLINUX $LOCAL_INCLUDES" + ;; + osf*) + MED2_INCLUDES="-DOSF1 $LOCAL_INCLUDES" + ;; +esac MED2_LIBS="$LOCAL_LIBS" MED2_MT_LIBS="$LOCAL_LIBS" fi -- 2.39.2