From 56bab614c7ffbecda43a50947363c5945eb4932d Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 12 Jan 2007 14:53:03 +0000 Subject: [PATCH] Fix CASCADE compilation problem --- config_files/common.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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%"` -- 2.39.2