diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-02-25 10:49:08 +0100 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-02-26 11:52:32 +0100 |
commit | e0aca18f687e9f49223ffb24b9be354bed4b150a (patch) | |
tree | f4d87d40ae17775e4e3c744476d31d56b5dba64b /build/linux/acinclude.m4 | |
parent | 22f0c35dd2576b0121992ab09fe89e68c6532459 (diff) | |
download | astra-e0aca18f687e9f49223ffb24b9be354bed4b150a.tar.gz astra-e0aca18f687e9f49223ffb24b9be354bed4b150a.tar.bz2 astra-e0aca18f687e9f49223ffb24b9be354bed4b150a.tar.xz astra-e0aca18f687e9f49223ffb24b9be354bed4b150a.zip |
Add logging for python module checks
Diffstat (limited to 'build/linux/acinclude.m4')
-rw-r--r-- | build/linux/acinclude.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build/linux/acinclude.m4 b/build/linux/acinclude.m4 index 713b5d3..e4b6de7 100644 --- a/build/linux/acinclude.m4 +++ b/build/linux/acinclude.m4 @@ -70,6 +70,18 @@ AC_DEFUN([ASTRA_RUN_LOGOUTPUT],[{ }]) +dnl ASTRA_TRY_PYTHON(code, action-if-ok, action-if-not-ok) +AC_DEFUN([ASTRA_TRY_PYTHON],[ +cat >conftest.py <<_ACEOF +$1 +_ACEOF +ASTRA_RUN_LOGOUTPUT($PYTHON conftest.py) +AS_IF([test $? = 0],[$2],[ + AS_ECHO(["$as_me: failed program was:"]) >&AS_MESSAGE_LOG_FD + sed 's/^/| /' conftest.py >&AS_MESSAGE_LOG_FD + $3]) +]) + dnl ASTRA_CHECK_NVCC(variable-to-set,cppflags-to-set) AC_DEFUN([ASTRA_CHECK_NVCC],[ |