[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What's this aclocal error mean?
From: |
Skip Montanaro |
Subject: |
What's this aclocal error mean? |
Date: |
Thu, 25 Apr 2002 17:30:32 -0500 |
I just checked out my project fresh from SF CVS. Running aclocal gives me
this error:
% aclocal
aclocal: configure.in: 50: macro `AM_CHECK_PYTHON_HEADERS' not found in
library
Line 50 is indeed the place where AM_CHECK_PYTHON_HEADERS is called, but it
is defined starting on line 26 as
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
[AC_REQUIRE([AM_PATH_PYTHON])
AC_MSG_CHECKING(for Python.h location)
dnl deduce PYTHON_INCLUDES
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
PYTHON_INCLUDES="$PYTHON_INCLUDES
-I${py_exec_prefix}/include/python${PYTHON_VERSION}"
fi
AC_SUBST(PYTHON_INCLUDES)
dnl check if the headers exist:
save_CPPFLAGS="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
AC_TRY_CPP([#include <Python.h>],dnl
[AC_MSG_RESULT($PYTHON_INCLUDES)
$1],dnl
[AC_MSG_RESULT(no)
$2])
CPPFLAGS="$save_CPPFLAGS"
])
Why is aclocal upset?
Thx,
--
Skip Montanaro (address@hidden - http://www.mojam.com/)
- What's this aclocal error mean?,
Skip Montanaro <=