From: vsr Date: Fri, 12 Jan 2007 14:53:03 +0000 (+0000) Subject: Fix CASCADE compilation problem X-Git-Tag: V_3_2_4~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=56bab614c7ffbecda43a50947363c5945eb4932d;p=tools%2Finstall.git Fix CASCADE compilation problem --- diff --git a/config_files/common.sh b/config_files/common.sh index 9a89b4d..447d9b1 100755 --- a/config_files/common.sh +++ b/config_files/common.sh @@ -558,7 +558,17 @@ return 1 } where_gl_libs(){ -# first search libGL.la file and check if this file is correct +# search libGL.so* file and correct libGL.la in the same directory +for d in /usr/X11R6/lib64 /usr/lib64 /usr/X11R6/lib /usr/lib ; do + if [ "`ls ${d}/libGL.so* 2>/dev/null`" ] && [ -f ${d}/libGL.la ]; then + libdir=`grep "libdir=" ${d}/libGL.la | sed -e "s%libdir='\(.*\)'%\1%" -e "s%/*$%%g"` + if [ "$libdir" == "$d" ] ; then + echo "$d" + return 0 + fi + fi +done +# search libGL.la file and check if this file is correct for d in /usr/X11R6/lib64 /usr/lib64 /usr/X11R6/lib /usr/lib ; do if [ -f ${d}/libGL.la ] ; then libdir=`grep "libdir=" ${d}/libGL.la | sed -e "s%libdir='\(.*\)'%\1%"`