[cig-commits] r14780 - cs/autoconf/trunk
tan2 at geodynamics.org
tan2 at geodynamics.org
Tue Apr 21 11:05:07 PDT 2009
Author: tan2
Date: 2009-04-21 11:05:06 -0700 (Tue, 21 Apr 2009)
New Revision: 14780
Modified:
cs/autoconf/trunk/cit_python.m4
Log:
Added a macro to check the existence of Python.h
Modified: cs/autoconf/trunk/cit_python.m4
===================================================================
--- cs/autoconf/trunk/cit_python.m4 2009-04-21 00:06:51 UTC (rev 14779)
+++ cs/autoconf/trunk/cit_python.m4 2009-04-21 18:05:06 UTC (rev 14780)
@@ -20,6 +20,21 @@
])dnl CIT_PYTHON_INCDIR
+# CIT_CHECK_PYTHON_HEADER
+# ---------------------
+# Checking the existence of Python.h
+AC_DEFUN([CIT_CHECK_PYTHON_HEADER], [
+# $Id$
+AC_MSG_CHECKING([for Python.h])
+if test -a "$PYTHON_INCDIR/Python.h"; then
+ AC_MSG_RESULT(yes)
+else
+ AC_MSG_RESULT(no)
+ AC_MSG_ERROR([Header file 'Python.h' not found, maybe you don't have the python development package, e.g. 'python-dev', installed?])
+fi
+])dnl CIT_CHECK_PYTHON_HEADER
+
+
# CIT_PYTHON_SYSCONFIG
# --------------------
AC_DEFUN([CIT_PYTHON_SYSCONFIG], [
More information about the CIG-COMMITS
mailing list