[Cbe-oss-dev] [PATCH 01/22]MARS/base: Configure library sanity checks
Yuji Mano
yuji.mano at am.sony.com
Wed Jan 21 11:27:21 EST 2009
From: Kazunori Asayama <asayama at sm.sony.co.jp>
Add sanity checks on external libraries
This patch adds sanity checks on external libraries such as libspe2.
Signed-off-by: Kazunori Asayama <asayama at sm.sony.co.jp>
---
base/src/host/configure.ac.in | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
Index: b/base/src/host/configure.ac.in
===================================================================
--- a/base/src/host/configure.ac.in 2009-01-13 13:53:01.000000000 +0900
+++ b/base/src/host/configure.ac.in 2009-01-13 13:54:38.000000000 +0900
@@ -50,21 +50,27 @@ case "$host_os" in
cygwin* | mingw*)
;;
*)
- AC_CHECK_HEADERS(pthread.h)
- AC_CHECK_LIB(pthread, pthread_create)
+ AC_CHECK_HEADERS(pthread.h, [], [AC_MSG_ERROR([cannot find pthread.h])])
+ AC_CHECK_LIB(pthread, pthread_create, [],
+ [AC_MSG_ERROR([cannot find the library libpthread])])
;;
esac
# Platform specific checks
case "$with_mars_platform" in
cell)
- AC_CHECK_LIB(spe2, spe_context_create)
+ AC_CHECK_HEADERS(libspe2.h, [],
+ [AC_MSG_ERROR([Cell/B.E. support is enabled but libspe2.h is not found])])
+ AC_CHECK_LIB(spe2, spe_context_create, [],
+ [AC_MSG_ERROR([Cell/B.E. support is enabled but the library libspe2 is not found])])
;;
esac
if test "x$enable_numa" = "xyes"; then
- AC_CHECK_HEADERS(numa.h)
- AC_CHECK_LIB(numa, numa_available)
+ AC_CHECK_HEADERS(numa.h, [],
+ [AC_MSG_ERROR(NUMA support is enabled but numa.h is not found)])
+ AC_CHECK_LIB(numa, numa_available, [],
+ [AC_MSG_ERROR(NUMA support is enabled but the library libnuma is not found)])
fi
AC_SUBST([DESTDIR])
More information about the cbe-oss-dev
mailing list