freebsd-ports/www/mod_python/pkg-req.threads
Hye-Shik Chang 52b7dff335 Fix libc_r detection routine that didn't work on -current.
Spotted by:	"Richard Johannesson" <rtjohan@syspres.com>
2003-08-05 03:21:47 +00:00

13 lines
400 B
Bash

#! /bin/sh
# anders@fix.no, 2001-08-07
pydir=`dirname $1 | sed "s/\/bin//"`
if [ "`ldd $1|grep libc_r`" ]; then
echo "Error: Python installation in $pydir uses threads. mod_python requires"
echo "it to be built without threads. Please deinstall & rebuild/reinstall Python with"
echo "WITHOUT_THREADS set."
exit 1
else
echo "Using a no-threads Python installation (in $pydir). Good."
exit 0
fi