]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix n.3 of hack_libtool utility to workaround problems on some Linux configurations V6_2_0a1
authorvsr <vsr@opencascade.com>
Mon, 6 Dec 2010 12:49:43 +0000 (12:49 +0000)
committervsr <vsr@opencascade.com>
Mon, 6 Dec 2010 12:49:43 +0000 (12:49 +0000)
salome_adm/unix/config_files/hack_libtool.m4

index c6c3c2d520d4cd76dd544431289183cd6cf75b43..dd08c63ce580a5b3f8829fd01ef2549c605be3ac 100644 (file)
@@ -37,7 +37,7 @@ cmd_end=""
 for param in "\$[@]"
 do
     case \${param} in
-       -L* ) where=\$(echo \${param} | cut -b3-) ; if test "\${where}" != "" ; then where=\$(cd \${where}; pwd) ; if test "\${where}" = "/usr/lib" || test "\${where}" = "/usr/lib64" ; then cmd_end="\${cmd_end} \${param}" ; else cmd="\${cmd} \${param}" ; fi ; fi ;;
+       -L* ) where=\$(echo \${param} | cut -b3-) ; if test "\${where}" != "" && test -d \${where} ; then where=\$(cd \${where}; pwd) ; if test "\${where}" = "/usr/lib" || test "\${where}" = "/usr/lib64" ; then cmd_end="\${cmd_end} \${param}" ; else cmd="\${cmd} \${param}" ; fi ; fi ;;
        *   ) cmd="\${cmd} \${param}" ;;
     esac
 done