From 60415a8cfe1ce81f005de824a8dd5f182f7232d6 Mon Sep 17 00:00:00 2001 From: gdd Date: Tue, 20 Sep 2011 13:00:57 +0000 Subject: [PATCH] Link to libPreCAD is optional --- adm_local/unix/config_files/check_BLSURF.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adm_local/unix/config_files/check_BLSURF.m4 b/adm_local/unix/config_files/check_BLSURF.m4 index 7c813cc..cab4337 100644 --- a/adm_local/unix/config_files/check_BLSURF.m4 +++ b/adm_local/unix/config_files/check_BLSURF.m4 @@ -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 -- 2.39.2