Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
17e38420
Commit
17e38420
authored
Feb 23, 2017
by
Tiago Peixoto
Browse files
configure.ac: Tidy up numpy test
parent
61daf01e
Pipeline
#272
passed with stage
in 260 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
17e38420
...
...
@@ -199,8 +199,17 @@ AC_ARG_WITH([numpy], [AS_HELP_STRING([--with-numpy=DIR],[directory where numpy i
AC_CHECK_HEADER([${NUMPY_DIR}/numpy/arrayobject.h],
[],
[AC_MSG_ERROR([Numpy extension header not found])],
[#include "Python.h"])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include "Python.h" #include "${NUMPY_DIR}/numpy/arrayobject.h" #if NPY_API_VERSION < 0x00000007 #error #endif]])],
[[#include "Python.h"]]
[[#define NO_IMPORT_ARRAY]]
[[#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION]])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include "Python.h"]]
[[// numpy unique symbol weirdness]]
[[#define NO_IMPORT_ARRAY]]
[[#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION]]
[[#include "numpy/arrayobject.h"]]
[[#if NPY_API_VERSION < 0x00000007]]
[[ #error]]
[[#endif]])],
[],
[AC_MSG_ERROR([Numpy is too old. Version 1.7 or above is required.])])
[CPPFLAGS=${CPPFLAGS_TEMP}]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment