summaryrefslogtreecommitdiff
path: root/scripts/check-dependencies.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/check-dependencies.sh')
-rwxr-xr-xscripts/check-dependencies.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/check-dependencies.sh b/scripts/check-dependencies.sh
index 4d5505e..5fddb13 100755
--- a/scripts/check-dependencies.sh
+++ b/scripts/check-dependencies.sh
@@ -87,11 +87,16 @@ mpfr_sysver()
gmp_sysver()
{
# on some systems you have VERSION in gmp-$arch.h not gmp.h. use gmp*.h
- if [ ! -e $1/include ]; then return; fi
- gmppaths=`ls $1/include | grep ^gmp`
+ if [ -e $1/include/multiarch-x86_64-linux ]; then
+ subdir=include/multiarch-x86_64-linux
+ else
+ subdir=include
+ fi
+ if [ ! -e $1/$subdir ]; then return; fi
+ gmppaths=`ls $1/$subdir | grep ^gmp`
if [ ! "$gmppaths" ]; then return; fi
for gmpfile in $gmppaths; do
- gmppath=$1/include/$gmpfile
+ gmppath=$1/$subdir/$gmpfile
if [ "`grep __GNU_MP_VERSION $gmppath`" ]; then
gmpmaj=`grep "define *__GNU_MP_VERSION *[0-9]*" $gmppath | awk '{print $3}'`
gmpmin=`grep "define *__GNU_MP_VERSION_MINOR *[0-9]*" $gmppath | awk '{print $3}'`
@@ -518,6 +523,7 @@ main()
deps="qt4 cgal gmp mpfr boost opencsg glew eigen gcc bison flex make"
#deps="$deps curl git" # not technically necessary for build
#deps="$deps python cmake imagemagick" # only needed for tests
+ #deps="cgal"
pretty_print title
for depname in $deps; do
debug "processing $dep"
contact: Jan Huwald // Impressum