Provide diagnostic message when failing to locate UMFPACK library.

Not all processors support the 'AM_COND_IF' macro (introduced in
Automake 1.11), so only call the macro if it is available in the
processor.
This commit is contained in:
Bård Skaflestad 2012-01-03 20:20:16 +01:00
parent eb991cefab
commit 93556dc60d

View File

@ -59,6 +59,12 @@ AC_SEARCH_LIBS([umfpack_dl_solve], [umfpack],
AM_CONDITIONAL([UMFPACK],
[test "x$umfpack_header" != "xno" -a "x$umfpack_lib" != "xno"])
m4_ifdef([AM_COND_IF],
[AM_COND_IF([UMFPACK], [],
[AC_MSG_NOTICE([Found no working installation of UMFPACK.
UMFPACK support is disabled.])])
])
AC_CONFIG_FILES([
Makefile