From: vsr Date: Wed, 3 Nov 2010 07:18:21 +0000 (+0000) Subject: Fix hack_libtool() function for Debian 6.0 (/bin/dash requires script to be GNU compl... X-Git-Tag: V5_1_5rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=97acf85b0f5555107d4f5abbbe274d49f136c0fa;p=modules%2Fkernel.git Fix hack_libtool() function for Debian 6.0 (/bin/dash requires script to be GNU compliant) --- diff --git a/salome_adm/unix/config_files/hack_libtool.m4 b/salome_adm/unix/config_files/hack_libtool.m4 index 4ad515aab..54a65dc87 100644 --- a/salome_adm/unix/config_files/hack_libtool.m4 +++ b/salome_adm/unix/config_files/hack_libtool.m4 @@ -28,7 +28,7 @@ dnl to the native libraries (installed in /usr/lib[64]) instead of those supplie dnl with specific -Ldir options. AC_DEFUN([AC_HACK_LIBTOOL],[ -sed -i "s%^CC=\"\(.*\)\"%function hack_libtool { \n\ +sed -i "s%^CC=\"\(.*\)\"%hack_libtool (){ \n\ if test \"\$(echo \$[@] | grep -E '\\\-L/usr/lib(/../lib)?(64)? ')\" == \"\" \n\ then\n\ cmd=\"\1 \$[@]\"\n\