cvs: php-src(PHP_5_0) /ext/pspell config.m4

From: Date: Thu, 17 Feb 2005 03:51:36 +0000
Subject: cvs: php-src(PHP_5_0) /ext/pspell config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-30446@lists.php.net to get a copy of this message
sniper Wed Feb 16 22:51:36 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/pspell config.m4 Log: MFH:- Fixed bug #29554 (compile failure when using --with-pspell=/usr/local) http://cvs.php.net/diff.php/php-src/ext/pspell/config.m4?r1=1.9&r2=1.9.2.1&ty=u Index: php-src/ext/pspell/config.m4 diff -u php-src/ext/pspell/config.m4:1.9 php-src/ext/pspell/config.m4:1.9.2.1 --- php-src/ext/pspell/config.m4:1.9 Sat Aug 9 14:43:45 2003 +++ php-src/ext/pspell/config.m4 Wed Feb 16 22:51:35 2005 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.9 2003/08/09 18:43:45 sniper Exp $ +dnl $Id: config.m4,v 1.9.2.1 2005/02/17 03:51:35 sniper Exp $ dnl PHP_ARG_WITH(pspell,for PSPELL support, @@ -29,8 +29,17 @@ 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

« previous php.cvs (#30446) next »