chiark
/
gitweb
/
~ianmdlvl
/
nlopt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f29c3b
)
check for numpy
author
stevenj
<stevenj@alum.mit.edu>
Tue, 15 Jun 2010 23:06:44 +0000
(19:06 -0400)
committer
stevenj
<stevenj@alum.mit.edu>
Tue, 15 Jun 2010 23:06:44 +0000
(19:06 -0400)
darcs-hash:
20100615230644
-c8de0-
14908910d6294503322a0a0c09262c3e6b9b7895
.gz
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index b83d0516eefd6c365f310f28c975a86c532e6b34..c15962947da318351d1c253c20c697c539075294 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-140,6
+140,13
@@
if test $have_python = yes; then
if test "x$PYTHON_INCLUDE_DIR" = xunknown; then
AC_MSG_WARN([disabling Python wrappers])
have_python=no
+ else
+ save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$PYTHON_INCLUDE_DIR"
+ AC_CHECK_HEADER([numpy/arrayobject.h],[],[
+ AC_MSG_WARN([disabling Python wrappers])
+ have_python=no],[#include <Python.h>])
+ CPPFLAGS=$save_CPPFLAGS
fi
AC_SUBST(PYTHON_INCLUDE_DIR)
fi