cvs: pear /PECL/python config.m4
| From: | Jon Parise | Date: | Sun, 12 Jan 2003 16:17:03 +0000 |
| Subject: | cvs: pear /PECL/python config.m4 | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8202@lists.php.net to get a copy of this message | ||
jon Sun Jan 12 11:17:03 2003 EDT
Modified files:
/pear/PECL/python config.m4
Log:
Link against the 'dl' library if it's available.
Index: pear/PECL/python/config.m4
diff -u pear/PECL/python/config.m4:1.2 pear/PECL/python/config.m4:1.3
--- pear/PECL/python/config.m4:1.2 Sat Sep 14 21:58:53 2002
+++ pear/PECL/python/config.m4 Sun Jan 12 11:17:03 2003
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.2 2002/09/15 01:58:53 jon Exp $
+dnl $Id: config.m4,v 1.3 2003/01/12 16:17:03 jon Exp $
dnl config.m4 for extension python
PHP_ARG_WITH(python, for embedded Python support,
@@ -24,6 +24,10 @@
AC_MSG_ERROR(Please specify path to Python distribution files)
fi
+ AC_CHECK_LIB(dl, dlopen, [
+ LIBS="-ldl $LIBS"
+ ])
+
dnl # --with-python -> chech for lib and symbol presence
LIBNAME=python2.2
LIBSYMBOL=Py_Initialize
@@ -32,7 +36,7 @@
AC_CHECK_LIB($LIBNAME, $LIBSYMBOL, [AC_DEFINE(HAVE_PYTHONLIB,1,[ ])],
[AC_MSG_ERROR(wrong Python lib version or lib not found)])
LIBS=$old_LIBS
-
+
PHP_SUBST(PYTHON_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $PYTHON_DIR/lib/python2.2/config, PYTHON_SHARED_LIBADD)
PHP_ADD_LIBRARY(m)