diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-05-03 14:01:27 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2013-05-04 16:50:08 +0200 |
commit | 5e9c6c3b644b290255fb10c8eb34778665c2f8a3 (patch) | |
tree | f30f835e29e24bc61d07c4c6215177a7ea4d2e4f /ext/gd/config.m4 | |
parent | 8a90aad35b3647a104458d5af4dcb315b9e8d80c (diff) | |
download | php-git-5e9c6c3b644b290255fb10c8eb34778665c2f8a3.tar.gz |
Rewrite Xpm library check so it doesn't break on MultiArch systems
Diffstat (limited to 'ext/gd/config.m4')
-rw-r--r-- | ext/gd/config.m4 | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ext/gd/config.m4 b/ext/gd/config.m4 index c440782df9..4a29ab9264 100644 --- a/ext/gd/config.m4 +++ b/ext/gd/config.m4 @@ -159,18 +159,11 @@ AC_DEFUN([PHP_GD_XPM],[ if test "$PHP_XPM_DIR" != "no"; then for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do - test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break + test -f $i/include/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i && break + test -f $i/include/X11/xpm.h && GD_XPM_DIR=$i && GD_XPM_INC=$i/X11 && break done if test -z "$GD_XPM_DIR"; then - AC_MSG_ERROR([libXpm.(a|so) not found.]) - fi - - for i in include include/X11; do - test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include - done - - if test -z "$GD_XPM_INC"; then AC_MSG_ERROR([xpm.h not found.]) fi |