From 819e26f7bea093dc06a82dda5ef18b06c9c384b5 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 22 Jan 2007 12:02:33 +0000 Subject: [PATCH] provide med 2.2.3 compilability for Linux Fedora Core 4 --- config_files/med-2.2.3.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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` -- 2.39.2