From 419a87ddd8e1ff360ff4b2acbfb518c1388afab3 Mon Sep 17 00:00:00 2001 From: foobar Date: Thu, 17 Feb 2005 03:51:35 +0000 Subject: [PATCH] MFH:- Fixed bug #29554 (compile failure when using --with-pspell=/usr/local) --- ext/pspell/config.m4 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ext/pspell/config.m4 b/ext/pspell/config.m4 index 955ddbf770..28be70dd20 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/lib - 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 -- 2.40.0