cd ${PRODUCT_WORK}
# configure
+
+is_mandriva2007=0
+
+if [ -e /etc/issue ] ; then
+ grep -e "Mandriva Linux release 2007.0" /etc/issue > /dev/null
+ if [ $? == 0 ] ; then is_mandriva2007=1 ; fi
+fi
+
+if [ $is_mandriva2007 == 1 ] ; then
+where_xmu_include=/usr/include/X11
+else
+where_xmu_include=/usr/X11R6/include/X11
+fi
+
if test `uname -m` = "x86_64" ; then
- flags="$flags --with-xmu-include=/usr/X11R6/include/X11"
+ flags="$flags --with-xmu-include=$where_xmu_include"
flags="$flags --with-xmu-library=/usr/X11R6/lib64"
else
- flags="$flags --with-xmu-include=/usr/X11R6/include/X11"
+ flags="$flags --with-xmu-include=$where_xmu_include"
flags="$flags --with-xmu-library=/usr/X11R6/lib"
fi
flags="$flags LDFLAGS=-lpthread"
#vsr: provide additional flags for f95 (Mandriva 2006.0, Fedora Core 4)
is_mandriva=0
is_fedora=0
+is_mandriva2007=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 "Mandriva Linux release 2007.0" /etc/redhat-release > /dev/null
+ if [ $? == 0 ] ; then is_mandriva2007=1 ; fi
grep -e "Fedora Core release 4" /etc/redhat-release > /dev/null
if [ $? == 0 ] ; then is_fedora=1 ; fi
fi
-
-if [ $is_mandriva == 1 ] || [ $is_fedora == 1 ] ; then
+if [ $is_mandriva2007 == 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
+fi
+if [ $is_mandriva == 1 ] || [ $is_mandriva2007 == 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