From: adam Date: Fri, 3 Jun 2005 06:30:53 +0000 (+0000) Subject: If MED2HOME is not defined, search in mdump in PATH X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=873078f642fc15764d98a0fc7faa18dc24379c2f;p=modules%2Fkernel.git If MED2HOME is not defined, search in mdump in PATH --- 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