From: foobar Date: Mon, 29 Apr 2002 18:08:20 +0000 (+0000) Subject: Never add libraries without checking that they exist and can be linked. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94f9b3bdb5c5cf05656b63935ff0343cf9aebfb8;p=php Never add libraries without checking that they exist and can be linked. --- 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)