diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-12-21 22:44:45 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-12-21 22:45:43 (GMT) |
commit | cdc408319e9474e9a4ffbfc080ced23c5ad4f23e (patch) | |
tree | 5f65b7d19f64697b3c9315b7f33367d63b7cdf2d /scripts/check-dependencies.sh | |
parent | e3ea506d06ae012cac3a724bcc97b3f1ba8187b8 (diff) |
NetBSD deps. also detect stray copies of libraries under /usr/local on linux
Diffstat (limited to 'scripts/check-dependencies.sh')
-rwxr-xr-x | scripts/check-dependencies.sh | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/scripts/check-dependencies.sh b/scripts/check-dependencies.sh index 4254ee9..29ed100 100755 --- a/scripts/check-dependencies.sh +++ b/scripts/check-dependencies.sh @@ -580,7 +580,27 @@ find_installed_version() } - +check_old_local() +{ + warnon= + if [ "`uname | grep -i linux`" ]; then + header_list="opencsg.h CGAL boost GL/glew.h" + liblist="libboost libopencsg libCGAL libglew" + for i in $header_list $liblist; do + if [ -e /usr/local/include/$i ]; then + echo "Warning: you have a copy of " $i " under /usr/local/include" + warnon=1 + fi + if [ -e /usr/local/lib/$i ]; then + echo "Warning: you have a copy of " $i " under /usr/local/lib" + warnon=1 + fi + done + fi + if [ $warnon ]; then + echo "Please verify your local copies don't conflict with the system" + fi +} @@ -609,6 +629,7 @@ main() dep_compare=$compare_version_result pretty_print $dep $dep_minver $dep_sysver $dep_compare done + check_old_local } checkargs $* |