| Back to the Main Page. | Download the M4 Source. |
PATCH_LIBTOOL_SYS_LIB_SEARCH_PATH_SPEC
0.5.65 : guidod
AC_DEFUN([PATCH_LIBTOOL_SYS_LIB_SEARCH_PATH_SPEC],
[# patch libtool to fix sys_lib_search_path (e.g. crosscompiling a win32 dll)
if test "_$PATH_SEPARATOR" = "_:" ; then
if grep "^sys_lib_search_path_spec.*:" libtool >/dev/null ; then
AC_MSG_RESULT(patching libtool to fix sys_lib_search_path_spec)
test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
sed -e "/^sys_lib_search_path_spec/s/:/ /g" libtool >libtool.new
(test -s libtool.new || rm libtool.new) 2>/dev/null
test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
test -f libtool || mv libtool.old libtool
fi
fi
])