From 94f9b3bdb5c5cf05656b63935ff0343cf9aebfb8 Mon Sep 17 00:00:00 2001 From: foobar Date: Mon, 29 Apr 2002 18:08:20 +0000 Subject: [PATCH] Never add libraries without checking that they exist and can be linked. --- ext/ming/config.m4 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/ming/config.m4 b/ext/ming/config.m4 index 6842e555e3..cb4d0351ff 100644 --- a/ext/ming/config.m4 +++ b/ext/ming/config.m4 @@ -6,7 +6,8 @@ PHP_ARG_WITH(ming, for MING support, [ --with-ming[=DIR] Include MING support]) if test "$PHP_MING" != "no"; then - PHP_SHLIB_SUFFIX_NAME + AC_CHECK_LIB(m, sin) + for i in $PHP_MING /usr/local /usr; do if test -f $i/lib/libming.$SHLIB_SUFFIX_NAME -o -f $i/lib/libming.a; then MING_DIR=$i @@ -22,7 +23,7 @@ if test "$PHP_MING" != "no"; then ],[ AC_MSG_ERROR([Ming library 0.2a or greater required.]) ],[ - -L$MING_DIR/lib -lm + -L$MING_DIR/lib ]) PHP_ADD_INCLUDE($MING_DIR/include) -- 2.40.0