|
From: <sv...@va...> - 2010-07-29 15:20:03
|
Author: bart
Date: 2010-07-29 16:19:50 +0100 (Thu, 29 Jul 2010)
New Revision: 11240
Log:
Made gmp, mpfr and mpc prefixes configurable.
Modified:
trunk/drd/scripts/download-and-build-gcc
Modified: trunk/drd/scripts/download-and-build-gcc
===================================================================
--- trunk/drd/scripts/download-and-build-gcc 2010-07-29 09:34:46 UTC (rev 11239)
+++ trunk/drd/scripts/download-and-build-gcc 2010-07-29 15:19:50 UTC (rev 11240)
@@ -14,20 +14,26 @@
BUILD=${SRC}-build
TAR=gcc-${GCC_VERSION}.tar.bz2
PREFIX=$HOME/gcc-${GCC_VERSION}
+GMP_PREFIX=/usr
+#GMP_PREFIX=$HOME/gmp-5.0.1
+MPFR_PREFIX=/usr
+#MPFR_PREFIX=$HOME/mpfr-2.4.2
+MPC_PREFIX=/usr
+#MPC_PREFIX=$HOME/mpc-0.8.1
export LC_ALL=C
export MAKEFLAGS="-j$(($(grep -c '^processor' /proc/cpuinfo) + 1))"
-if [ ! -e /usr/include/gmp.h ]; then
+if [ ! -e $GMP_PREFIX/include/gmp.h ]; then
echo "Please install the gmp library development package first."
exit 1
fi
-if [ ! -e /usr/include/mpfr.h ]; then
+if [ ! -e $MPFR_PREFIX/include/mpfr.h ]; then
echo "Please install the mpfr library development package first."
exit 1
fi
-if [ ! -e /usr/include/mpc.h ]; then
+if [ ! -e $MPC_PREFIX/include/mpc.h ]; then
echo "Please install the mpc library development package first."
exit 1
fi
@@ -59,6 +65,9 @@
--enable-languages=c,c++ \
--enable-threads=posix \
--enable-tls \
- --prefix=$PREFIX
+ --prefix=$PREFIX \
+ --with-gmp=$GMP_PREFIX \
+ --with-mpfr=$MPFR_PREFIX \
+ --with-mpc=$MPC_PREFIX
time { make -s && make -s install; }
|