]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Replacing med-2.3.4 by med-2.3.5
authormaintenance team <salome-mnt@opencascade.com>
Mon, 27 Oct 2008 10:57:06 +0000 (10:57 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Mon, 27 Oct 2008 10:57:06 +0000 (10:57 +0000)
16 files changed:
config.xml
config_Debian_3.1.xml
config_Debian_4.0_64.xml
config_Mandrake_10.1.xml
config_Mandriva_2006.0.xml
config_Mandriva_2006.0_64.xml
config_Mandriva_2007.0.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64.xml
config_RedHatEnterprise_4.xml
config_RedHat_8.0.xml
config_RedHat_9.xml
config_Scientific_4.2.xml
config_Scientific_4.3.xml
config_files/med-2.3.4.sh [deleted file]
config_files/med-2.3.5.sh [new file with mode: 0755]

index 6b3bbc8c3a6ef2d1aeaaadbdbfa4b3718323732b..1863f45d56391e5b3b1e7bf458e8f8a77dab8183 100644 (file)
                    installdiskspace="8050,6445,27102"
                    script="med-2.3.3.sh"/>
       <installation os="Mandriva 2008.0 64bit"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
       <installation os="Mandriva 2006.0 64bit"
                     version="2.3.3" 
                    disable="false"
index d97d36f0521cfef3b43cba073cd1061e072a6fa1..81e5ca5be6de2d37893294191d66bfd7668884d2 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Debian 3.1"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="19544,6445,63656"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 34ff262f4978e4aab59e33948b082d4a5783f253..f60b1078fd17cb0fdf4c9d88c6529bb0808de874 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Debian 4.0 64bit"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="19544,6445,63656"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index d33499cb9fe02e88f4c61303bae3f842a2fd8253..329e5a44d5c94378997fa0bed59c36f1da11dece 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandrake 10.1"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="7721,6445,26773"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 1d3eda88bc3d0b172742a15e0ae2b84607a085c6..9546f177ff64fa50ec352dabbb497eb1118de8cb 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva 2006.0"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index eff2dbd6bb658fdb3d5285ede4066cb66e7a33fb..721452a4f807ee2510d8a6b6741442d4e67872a6 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva 2006.0 64bit"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index c0d251565bf6fc62709e0e36e0850fbf51ec2581..0c62c6e86a765c145d5eca80c72f71c49be85955 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva 2007.0"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="8050,6445,27102"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 3b4fd1e0608215024bdfd294f07f27aa726a66bb..3314cbc8eeebd6ecb8059a59f1d251daa7d015a1 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva 2008.0"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index ea232381daeaf01ad47f64b3a852008c8e197401..a291bbe7cb1928af49a36d29b83eab897cb90f6f 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Mandriva 2008.0 64bit"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="9643,9007,35327"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index c9378894c7c3c60ccfa0292d6c8491ef5864c613..3fd2feef929b26b2917dbe9ca8f65d629023e5d7 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Red Hat Enterprise WS 4"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="7470,6445,26522"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 059028b83c67f5325cb9fbc1a395da76ef24331f..020bbb7ae5f34c0c4a3cb3172ee54e8c21d37cb0 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Red Hat 8.0"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="18205,6445,59973"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index ea49a26eabb49815f173f60c9560853011e1d962..c65467571b083ac7a06d2b6ffad7ecdefe9bc01f 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Red Hat 9"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="18205,6445,59973"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index 5878758595b804e9c2b8da9afccfe85119ea8aaa..085e608fc68f21ce9acbb2d5ce0198a717628574 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Scientific SL 4.2"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="7470,6445,26522"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
index e89df7afd4155a93c645a116b1303a750ccabc6d..b7dc63ba33e96722dd3f02f51f5619a3113769f8 100755 (executable)
             type="prerequisite"
             description="MED format interface library">
       <installation os="Scientific SL 4.3"
-                    version="2.3.4
+                    version="2.3.5
                    disable="false"
                    installdiskspace="7470,6445,26522"
-                   script="med-2.3.4.sh"/>
+                   script="med-2.3.5.sh"/>
     </product>
     <product name="Metis"
             type="prerequisite"
diff --git a/config_files/med-2.3.4.sh b/config_files/med-2.3.4.sh
deleted file mode 100755 (executable)
index 1ab7eca..0000000
+++ /dev/null
@@ -1,212 +0,0 @@
-#!/bin/bash -noprofile
-
-####################################################################################
-#  File      : med-2.3.4.sh
-#  Created   : Thu Dec 18 12:01:00 2002
-#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
-#  Project   : SALOME
-#  Module    : Installation Wizard
-#  Copyright : 2002-2008 CEA
-#
-#  This script is the part of the SALOME installation procedure.
-#
-####################################################################################
-
-check_version()
-{
-if [ -z "$MED2HOME" ]; then
-   #echo "MED2HOME doesn't set"
-   return 1
-fi
-check_lib_version libmed.so.1.1.2 ${MED2HOME}/lib
-if [ "$?" -eq "0" ]; then
-   #echo "The product ${PRODUCT} has been already installed on yours system"
-   return 0
-fi
-return 1
-}
-
-print_env_bin()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
-#$DELIM ${PRODUCT_TYPE} $DELIM
-export MED2HOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PATH=\${MED2HOME}/bin:\${PATH}
-export LD_LIBRARY_PATH=\${MED2HOME}/lib:\${LD_LIBRARY_PATH}
-##
-EOF
-(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-print_env_src()
-{
-cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
-#$DELIM ${PRODUCT_TYPE}_src $DELIM
-# nothing to do
-##
-EOF
-(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
-}
-
-try_preinstalled(){
-try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-return $?
-}
-
-install_source()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
-source ${INSTALL_WORK}/$SHRC
-
-# unpack
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_source_and_build()
-{
-# install sources
-install_source
-
-# build sources
-cd ${PRODUCT_SRC_DIR}
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-#vsr: provide additional flags for f95 (Mandriva 2006.0, Fedora Core 4)
-is_mandriva2006=0
-is_mandriva2007=0
-is_mandriva2008=0
-is_debian40=0
-is_fedora4=0
-is_fedora6=0
-
-if [ -e /etc/issue ] ; then
-  grep -e "Mandriva Linux release 2006.0" /etc/issue > /dev/null
-  if [ $? == 0 ] ; then is_mandriva2006=1 ; fi
-  grep -e "Mandriva Linux release 2007.0" /etc/issue > /dev/null
-  if [ $? == 0 ] ; then is_mandriva2007=1 ; fi
-  grep -e "Mandriva Linux release 2008.0" /etc/issue > /dev/null
-  if [ $? == 0 ] ; then is_mandriva2008=1 ; fi
-  grep -e "Debian GNU/Linux 4.0" /etc/issue > /dev/null
-  if [ $? == 0 ] ; then is_debian40=1 ; fi
-  grep -e "Fedora Core release 4" /etc/issue > /dev/null
-  if [ $? == 0 ] ; then is_fedora4=1 ; fi
-  grep -e "Fedora Core release 6" /etc/issue > /dev/null
-  if [ $? == 0 ] ; then is_fedora6=1 ; fi
-fi
-
-chmod +w ./Makefile.am
-mv Makefile.am Makefile.am.orig
-sed -e 's/include src tests tools doc/include src tools doc/g' Makefile.am.orig > Makefile.am
-
-if [ $is_mandriva2006 == 1 ] || [ $is_mandriva2007 == 1 ]  || [ $is_mandriva2008 == 1 ] || [ $is_fedora4 == 1 ] || [ $is_fedora6 == 1 ] || [ $is_debian40 == 1 ] ; then
-    if test `uname -m` = "x86_64" ; then
-    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
-    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
-    else
-    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' >> ${PRODUCT_DIR}/CONFIGURE.LOG"
-    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
-    fi
-    if [ "$?" -ne "0" ] ; then
-      cat ${PRODUCT_DIR}/CONFIGURE.LOG
-      cat ${PRODUCT_SRC_DIR}/errlog >&2
-      cat ${PRODUCT_SRC_DIR}/errlog >> ${PRODUCT_DIR}/CONFIGURE.LOG
-      exit 1
-    fi
-else
-    check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
-fi
-
-GCC=`which gcc`
-cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
-used gcc=$GCC
-EOF
-
-check_job ${PRODUCT_DIR}/MAKE.LOG make
-check_job ${PRODUCT_DIR}/INSTALL.LOG make install
-
-cd ${PRODUCT_DIR};
-
-# remove sources and temporary files after building
-if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
-    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
-fi
-
-# to generate environment scripts
-try_preinstalled
-}
-
-install_binary()
-{
-make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
-source ${INSTALL_WORK}/$SHRC
-
-# create a product directory
-test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
-
-check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
-
-### modify libmed.la libmedC.la files to correct direct path to hdf5 library
-### also modify libmed.la and libmedC.la files to correct direct path to med libraries
-### no need to do this for sources installation because 'make install' does it!
-cd ${PRODUCT_DIR}/lib
-sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmed.la > libmed.la.new
-mv -f libmed.la.new libmed.la
-sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedC.la > libmedC.la.new
-mv -f libmedC.la.new libmedC.la
-sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedimport.la > libmedimport.la.new
-mv -f libmedimport.la.new libmedimport.la
-sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedimportcxx.la > libmedimportcxx.la.new
-mv -f libmedimportcxx.la.new libmedimportcxx.la
-
-tmp=""
-if [ -n "${HDF5HOME}" ]; then
-    tmp="-L${HDF5HOME}/lib"
-fi
-sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
-mv -f libmed.la.new libmed.la
-sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedC.la > libmedC.la.new
-mv -f libmedC.la.new libmedC.la
-
-sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedimport.la > libmedimport.la.new
-mv -f libmedimport.la.new libmedimport.la
-sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedimportcxx.la > libmedimportcxx.la.new
-mv -f libmedimportcxx.la.new libmedimportcxx.la
-
-chmod 755 libmed.la
-chmod 755 libmedC.la
-chmod 755 libmedimport.la
-chmod 755 libmedimportcxx.la
-
-### modify scripts to correct installation path
-cd ${PRODUCT_DIR}/bin
-sed -e "s%set cmd \".*/bin/mdump\"%set cmd \"${PRODUCT_DIR}/bin/mdump\"%g" xmdump > _xmdump
-mv _xmdump xmdump
-chmod a+x xmdump
-
-# to generate environment script for sources
-try_preinstalled
-}
-
-export PROCEDURE=$1;
-export INSTALL_WORK=$2;
-export SOURCE_DIR=$3;
-export INST_ROOT=$4;
-export PRODUCT_SEQUENCE=$5;
-export PRODUCT_TYPE=$6;
-export INSTALL_PRODUCTS=$7;
-shift
-REMOVE_SRC_TMP=$8;
-shift
-SINGLE_DIR=$9
-export PRODUCT="med-2.3.4"
-export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
-export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
-export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
-source ./common.sh
-$PROCEDURE 
diff --git a/config_files/med-2.3.5.sh b/config_files/med-2.3.5.sh
new file mode 100755 (executable)
index 0000000..d57cbd6
--- /dev/null
@@ -0,0 +1,222 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : med-2.3.5.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2008 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+check_version()
+{
+if [ -z "$MED2HOME" ]; then
+   #echo "MED2HOME doesn't set"
+   return 1
+fi
+check_lib_version libmed.so.1.1.2 ${MED2HOME}/lib
+if [ "$?" -eq "0" ]; then
+   #echo "The product ${PRODUCT} has been already installed on yours system"
+   return 0
+fi
+return 1
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MED2HOME=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PATH=\${MED2HOME}/bin:\${PATH}
+export LD_LIBRARY_PATH=\${MED2HOME}/lib:\${LD_LIBRARY_PATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+# unpack
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+cd ${PRODUCT_SRC_DIR}
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+#vsr: provide additional flags for f95 (Mandriva 2006.0, Fedora Core 4)
+is_mandriva2006=0
+is_mandriva2007=0
+is_mandriva2008=0
+is_debian40=0
+is_fedora4=0
+is_fedora6=0
+
+if [ -e /etc/issue ] ; then
+  grep -e "Mandriva Linux release 2006.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2006=1 ; fi
+  grep -e "Mandriva Linux release 2007.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2007=1 ; fi
+  grep -e "Mandriva Linux release 2008.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_mandriva2008=1 ; fi
+  grep -e "Debian GNU/Linux 4.0" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_debian40=1 ; fi
+  grep -e "Fedora Core release 4" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_fedora4=1 ; fi
+  grep -e "Fedora Core release 6" /etc/issue > /dev/null
+  if [ $? == 0 ] ; then is_fedora6=1 ; fi
+fi
+
+if [ $is_mandriva2006 == 1 ] ; then
+chmod +w ./Makefile.am
+mv Makefile.am Makefile.am.orig
+sed -e 's/include src tests tools doc/include src tools doc/g' Makefile.am.orig > Makefile.am
+chmod +w ./Makefile.in
+mv Makefile.in Makefile.in.orig
+sed -e 's/include src tests tools doc/include src tools doc/g' Makefile.in.orig > Makefile.in
+fi
+
+if [ $is_mandriva2006 == 1 ] || [ $is_mandriva2007 == 1 ]  || [ $is_mandriva2008 == 1 ] || [ $is_fedora4 == 1 ] || [ $is_fedora6 == 1 ] || [ $is_debian40 == 1 ] ; then
+    if test `uname -m` = "x86_64" ; then
+       if [ $is_mandriva2006 == 1 ] ; then     
+    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none -fPIC' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none -fPIC" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
+       else
+    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" CFLAGS=-m64 CXXFLAGS=-m64 >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
+       fi
+    else
+    echo "`pwd` -> ./configure --prefix=${PRODUCT_DIR} FFLAGS='-g -O2 -ffixed-line-length-none' >> ${PRODUCT_DIR}/CONFIGURE.LOG"
+    ./configure --prefix=${PRODUCT_DIR} FFLAGS="-g -O2 -ffixed-line-length-none" >> ${PRODUCT_DIR}/CONFIGURE.LOG 2> ${PRODUCT_SRC_DIR}/errlog
+    fi
+    if [ "$?" -ne "0" ] ; then
+      cat ${PRODUCT_DIR}/CONFIGURE.LOG
+      cat ${PRODUCT_SRC_DIR}/errlog >&2
+      cat ${PRODUCT_SRC_DIR}/errlog >> ${PRODUCT_DIR}/CONFIGURE.LOG
+      exit 1
+    fi
+else
+    check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR}
+fi
+
+GCC=`which gcc`
+cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
+used gcc=$GCC
+EOF
+
+check_job ${PRODUCT_DIR}/MAKE.LOG make
+check_job ${PRODUCT_DIR}/INSTALL.LOG make install
+
+cd ${PRODUCT_DIR};
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+# create a product directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+### modify libmed.la libmedC.la files to correct direct path to hdf5 library
+### also modify libmed.la and libmedC.la files to correct direct path to med libraries
+### no need to do this for sources installation because 'make install' does it!
+cd ${PRODUCT_DIR}/lib
+sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmed.la > libmed.la.new
+mv -f libmed.la.new libmed.la
+sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedC.la > libmedC.la.new
+mv -f libmedC.la.new libmedC.la
+sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedimport.la > libmedimport.la.new
+mv -f libmedimport.la.new libmedimport.la
+sed -e 's%\(.*\)\([[:space:]].*libhdf5.la\)\(.*\)%\1 -lhdf5\3%g' -e "s%^libdir='\(.*\)'%libdir='${PRODUCT_DIR}/lib'%g" libmedimportcxx.la > libmedimportcxx.la.new
+mv -f libmedimportcxx.la.new libmedimportcxx.la
+
+tmp=""
+if [ -n "${HDF5HOME}" ]; then
+    tmp="-L${HDF5HOME}/lib"
+fi
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmed.la > libmed.la.new
+mv -f libmed.la.new libmed.la
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedC.la > libmedC.la.new
+mv -f libmedC.la.new libmedC.la
+
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedimport.la > libmedimport.la.new
+mv -f libmedimport.la.new libmedimport.la
+sed -e "s%\(.*\)\([[:space:]].*-L.*/hdf5-[0-9]\.[0-9]\.[0-9]/lib[[:space:]]\)\(.*\)%\1 $tmp \3%g" libmedimportcxx.la > libmedimportcxx.la.new
+mv -f libmedimportcxx.la.new libmedimportcxx.la
+
+chmod 755 libmed.la
+chmod 755 libmedC.la
+chmod 755 libmedimport.la
+chmod 755 libmedimportcxx.la
+
+### modify scripts to correct installation path
+cd ${PRODUCT_DIR}/bin
+sed -e "s%set cmd \".*/bin/mdump\"%set cmd \"${PRODUCT_DIR}/bin/mdump\"%g" xmdump > _xmdump
+mv _xmdump xmdump
+chmod a+x xmdump
+
+# to generate environment script for sources
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INST_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+shift
+REMOVE_SRC_TMP=$8;
+shift
+SINGLE_DIR=$9
+export PRODUCT="med-2.3.5"
+export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
+source ./common.sh
+$PROCEDURE