From 873078f642fc15764d98a0fc7faa18dc24379c2f Mon Sep 17 00:00:00 2001 From: adam Date: Fri, 3 Jun 2005 06:30:53 +0000 Subject: [PATCH] If MED2HOME is not defined, search in mdump in PATH --- salome_adm/unix/config_files/check_med2.m4 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/salome_adm/unix/config_files/check_med2.m4 b/salome_adm/unix/config_files/check_med2.m4 index 3b8fd9f8d..365864956 100644 --- a/salome_adm/unix/config_files/check_med2.m4 +++ b/salome_adm/unix/config_files/check_med2.m4 @@ -51,7 +51,15 @@ dnl check, if there is MED library if test -z $MED2HOME then AC_MSG_WARN(undefined MED2HOME variable which specify med2 installation directory) -else + AC_PATH_PROG(MDUMP, mdump) + if test "xMDUMP" != "x" ; then + MED2HOME=$MDUMP + MED2HOME=`echo ${MED2HOME} | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"` + MED2HOME=`echo ${MED2HOME} | sed -e "s,[[^/]]*$,,;s,/$,,;s,^$,.,"` + fi +fi +if test ! -z $MED2HOME +then LOCAL_INCLUDES="$HDF5_INCLUDES -I$MED2HOME/include" LOCAL_LIBS="-L$MED2HOME/lib -lmed $HDF5_LIBS" fi -- 2.39.2