From: vsr Date: Mon, 22 Jan 2007 12:02:33 +0000 (+0000) Subject: provide med 2.2.3 compilability for Linux Fedora Core 4 X-Git-Tag: BEFORE_SERIES_4~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=819e26f7bea093dc06a82dda5ef18b06c9c384b5;p=tools%2Finstall.git provide med 2.2.3 compilability for Linux Fedora Core 4 --- diff --git a/config_files/med-2.2.3.sh b/config_files/med-2.2.3.sh index 0e8f757..243a586 100755 --- a/config_files/med-2.2.3.sh +++ b/config_files/med-2.2.3.sh @@ -75,16 +75,17 @@ check_jb tar xfz ${SOURCE_DIR}/med_fichier2.2.3.src.tar.gz -C ${INSTALL_WORK} cd ${PRODUCT_WORK} makedir ${PRODUCT_DIR} -#vsr: provide additional flags for f95 (Mandriva 2006.0) +#vsr: provide additional flags for f95 (Mandriva 2006.0, Fedora Core 4) is_mandriva=0 +is_fedora=0 if [ -e /etc/redhat-release ] ; then grep -e "Mandriva Linux release 2006.0" /etc/redhat-release > /dev/null if [ $? == 0 ] ; then is_mandriva=1 ; fi + grep -e "Fedora Core release 4" /etc/redhat-release > /dev/null + if [ $? == 0 ] ; then is_fedora=1 ; fi fi -if [ $is_mandriva == 0 ] ; then - check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR} -else +if [ $is_mandriva == 1 ] || [ $is_fedora == 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> ${INSTALL_WORK}/errlog @@ -98,6 +99,8 @@ else cat ${INSTALL_WORK}/errlog >> ${PRODUCT_DIR}/CONFIGURE.LOG exit 1 fi +else + check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix=${PRODUCT_DIR} fi GCC=`which gcc`