From: foobar Date: Thu, 17 Feb 2005 03:51:19 +0000 (+0000) Subject: - Fixed bug #29554 (compile failure when using --with-pspell=/usr/local) X-Git-Tag: RELEASE_0_2_4~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4585c15cb04ac0f7da95ed04ecc808bfd1681417;p=php - Fixed bug #29554 (compile failure when using --with-pspell=/usr/local) --- diff --git a/ext/pspell/config.m4 b/ext/pspell/config.m4 index 2f0581eaf3..3ed404237c 100644 --- a/ext/pspell/config.m4 +++ b/ext/pspell/config.m4 @@ -29,8 +29,17 @@ if test "$PHP_PSPELL" != "no"; then PSPELL_LIBDIR=$PSPELL_DIR/$PHP_LIBDIR - AC_DEFINE(HAVE_PSPELL,1,[ ]) - PHP_SUBST(PSPELL_SHARED_LIBADD) PHP_ADD_LIBRARY_WITH_PATH(pspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD) + + dnl Add -laspell to LIBS if it exists + PHP_CHECK_LIBRARY(aspell,new_aspell_config, + [ + PHP_ADD_LIBRARY_WITH_PATH(aspell, $PSPELL_LIBDIR, PSPELL_SHARED_LIBADD) + ], [], [ + -L$PSPELL_LIBDIR + ]) + PHP_ADD_INCLUDE($PSPELL_INCDIR) + PHP_SUBST(PSPELL_SHARED_LIBADD) + AC_DEFINE(HAVE_PSPELL,1,[ ]) fi