From b345acb577ad8f5da19186767d94404414ef3a83 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 7 May 2000 05:32:54 +0000 Subject: [PATCH] Never tell link editor to libc. Some systems use thread-safe replacements for libc in Pthreads mode. --- acinclude.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index decf086f4e5..e64294013bb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -401,7 +401,9 @@ dnl add a library to the link line dnl AC_DEFUN(AC_ADD_LIBRARY,[ AC_PHP_ONCE(LIBRARY, $1, [ - ifelse($#, 1, LIBS="-l$1 $LIBS", LIBS="$LIBS -l$1") + if test "$1" != "c"; then + ifelse($#, 1, LIBS="-l$1 $LIBS", LIBS="$LIBS -l$1") + fi ]) ])