]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
Improve hack_libtool utility to workaround problems on some Linux configurations V6_2_0a1
authorvsr <vsr@opencascade.com>
Mon, 6 Dec 2010 13:04:17 +0000 (13:04 +0000)
committervsr <vsr@opencascade.com>
Mon, 6 Dec 2010 13:04:17 +0000 (13:04 +0000)
configure.ac

index 3327f89c2d033fc43409548365d92a7c2d9cb15e..14945086b2d3939254e5c2baf021dc9bb0bdc3be 100644 (file)
@@ -413,15 +413,10 @@ echo
 #  chmod +x ./bin/salome/*;
 #])
 
+AC_HACK_LIBTOOL
 AC_CONFIG_COMMANDS([hack_libtool],[
 sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\
-  if test \"\$(echo \$[@] | grep -E '\\\-L/usr/lib(/../lib)?(64)? ')\" == \"\" \n\
-  then\n\
-    cmd=\"\1 \$[@]\"\n\
-  else\n\
-    cmd=\"\1 \"\`echo \$[@] | sed -r -e 's|(.*)-L/usr/lib(/../lib)?(64)? (.*)|\\\1\\\4 -L/usr/lib\\\3|g'\`\n\
-  fi\n\
-  \$cmd\n\
+  $(pwd)/hack_libtool \1 \"\$[@]\" \n\
 }\n\
 CC=\"hack_libtool\"%g" libtool
 ],[])