diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-27 21:24:04 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-27 21:24:04 +0000 |
commit | 05c344135e8c5dd165d97b1e117a9bdac77016bc (patch) | |
tree | 1ab7bf58d40da4e93711123a872d0d58c8800128 | |
parent | abc71ba6a9d4364e7f7c2c52c7b5b8813d3f7a3d (diff) | |
download | gnunet-05c344135e8c5dd165d97b1e117a9bdac77016bc.tar.gz gnunet-05c344135e8c5dd165d97b1e117a9bdac77016bc.zip |
define WITH_LL only if libllapi is found
-rw-r--r-- | configure.ac | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9a830320c..fb2d84ebb 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -994,7 +994,19 @@ AC_ARG_WITH([ll], | |||
994 | ], | 994 | ], |
995 | [AC_MSG_RESULT(--with-ll not specified)]) | 995 | [AC_MSG_RESULT(--with-ll not specified)]) |
996 | AM_CONDITIONAL([WITH_LL], [test "x$llapi" = "xtrue"]) | 996 | AM_CONDITIONAL([WITH_LL], [test "x$llapi" = "xtrue"]) |
997 | AC_DEFINE_UNQUOTED(WITH_LL, $llapi, [Do we have to use IBM LoadLeveler]) | 997 | if test "x$llapi" = "xtrue" |
998 | then | ||
999 | AC_DEFINE_UNQUOTED([WITH_LL], [$llapi], [Do we have to use IBM LoadLeveler]) | ||
1000 | AC_CHECK_HEADERS([pwd.h], | ||
1001 | AC_CHECK_LIB([c],[getpwuid],, | ||
1002 | AC_MSG_ERROR(getpwid function not available in libc but is required)), | ||
1003 | AC_MSG_ERROR(pwd.h not found but is required), | ||
1004 | [[ | ||
1005 | #ifdef HAVE_SYS_TYPES_H | ||
1006 | #include <sys/types.h> | ||
1007 | #endif | ||
1008 | ]]) | ||
1009 | fi | ||
998 | 1010 | ||
999 | # should 'make check' run tests? | 1011 | # should 'make check' run tests? |
1000 | AC_MSG_CHECKING(whether to run tests) | 1012 | AC_MSG_CHECKING(whether to run tests) |