]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
Link to libPreCAD is optional
authorgdd <gdd>
Tue, 20 Sep 2011 13:00:57 +0000 (13:00 +0000)
committergdd <gdd>
Tue, 20 Sep 2011 13:00:57 +0000 (13:00 +0000)
adm_local/unix/config_files/check_BLSURF.m4

index 7c813cc7ec6efc007534f07b691922a338b49ae1..cab433732576d9e97b76b392686d6ce989a8ac95 100644 (file)
@@ -63,7 +63,10 @@ if test "$with_blsurf" != "no" ; then
     LOCAL_LIBS="-L$BLSURF_HOME/lib -lBLSurf -lPreCAD"
     if test $(`which arch`) = x86_64 ; then
       if test -f $BLSURF_HOME/lib/Linux_64/libBLSurf.so ; then
-        LOCAL_LIBS="-L$BLSURF_HOME/lib/Linux_64 -lBLSurf -ldistene -lPreCAD"
+        LOCAL_LIBS="-L$BLSURF_HOME/lib/Linux_64 -lBLSurf -ldistene"
+        if test -f $BLSURF_HOME/lib/Linux_64/libPreCAD.so ; then
+          LOCAL_LIBS="${LOCAL_LIBS} -lPreCAD"
+        fi
       fi
     fi