diff --git a/libtool.m4 b/libtool.m4 index ea44c8c4..25c68179 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -2048,7 +2048,8 @@ if test "$enable_shared" = yes && test "$ac_cv_prog_gcc" = yes; then libname=conftest save_allow_undefined_flag=$allow_undefined_flag allow_undefined_flag= - if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \"); then + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" >/dev/null 2>&1) + then ac_cv_archive_cmds_need_lc=no else ac_cv_archive_cmds_need_lc=yes