pythread.diff

text/plain

Filename: pythread.diff
Type: text/plain
Part: 0
Message: Re: openbsd, plpython, missing threading symbols

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: context
File+
config/python.m4 15 0
Index: config/python.m4
===================================================================
RCS file: /projects/cvsroot/pgsql/config/python.m4,v
retrieving revision 1.11
diff -c -c -r1.11 python.m4
*** config/python.m4	11 Oct 2004 19:32:16 -0000	1.11
--- config/python.m4	4 Aug 2005 19:43:45 -0000
***************
*** 77,80 ****
--- 77,95 ----
  AC_SUBST(python_libdir)[]dnl
  AC_SUBST(python_libspec)[]dnl
  AC_SUBST(python_additional_libs)[]dnl
+ 
+ # threaded python is not supported on bsd's
+ AC_MSG_CHECKING(whether Python is compiled with thread support)
+ pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
+ if test "$pythreads" = "1"; then
+   AC_MSG_RESULT(yes)
+   case $host_os in
+   *bsd*)
+     AC_MSG_ERROR([*** Threaded python not supported ***])
+     ;;
+   esac
+ else
+   AC_MSG_RESULT(no)
+ fi
+ 
  ])# PGAC_CHECK_PYTHON_EMBED_SETUP