From: gdd Date: Wed, 2 Nov 2011 13:35:51 +0000 (+0000) Subject: Fix m4 macro in case of non existence of /usr/bin/arch X-Git-Tag: V6_4_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dd389dce8730340435d7a8ce283791fb1372f027;p=plugins%2Fblsurfplugin.git Fix m4 macro in case of non existence of /usr/bin/arch --- diff --git a/adm_local/unix/config_files/check_BLSURF.m4 b/adm_local/unix/config_files/check_BLSURF.m4 index e96e425..cf519a3 100644 --- a/adm_local/unix/config_files/check_BLSURF.m4 +++ b/adm_local/unix/config_files/check_BLSURF.m4 @@ -61,7 +61,11 @@ if test "$with_blsurf" != "no" ; then LOCAL_INCLUDES="-I$BLSURF_HOME/include" LOCAL_LIBS="-L$BLSURF_HOME/lib/Linux" - if test $(`which arch`) = x86_64 ; then + archtest="$(`which arch`)" + if test "x$archtest" = "x" ; then + archtest="`uname -m`" + fi + if test $archtest = "x86_64" ; then LOCAL_LIBS="-L$BLSURF_HOME/lib/Linux_64" fi LOCAL_LIBS="${LOCAL_LIBS} -ldistene -lBLSurf -lPreCAD"