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
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`