Whamcloud - gitweb
* fix broken configure check
[fs/lustre-release.git] / libsysio / configure.in
index 85a0aee..7d24d86 100644 (file)
@@ -211,17 +211,15 @@ fi
 
 AC_MSG_CHECKING(if readlink returns ssize_t)
 AC_TRY_COMPILE([
-       include <unistd.h>
+       #include <unistd.h>
 ],[
        ssize_t readlink(const char *, char *, size_t);
-],
-       readlink_returns_ssize_t="yes",
-       readlink_returns_ssize_t="no"
-)
-AC_MSG_RESULT($readlink_returns_ssize_t)
-if test x$readlink_returns_ssize_t = xyes; then
+],[
+       AC_MSG_RESULT([yes])
        AC_DEFINE(HAVE_POSIX_1003_READLINK, 1, [readlink returns ssize_t])
-fi
+],[
+       AC_MSG_RESULT([no])
+])
 
 # If we can't provoke the declaration of stat64 then we assume the
 # environment supports 64-bit file support naturally. Beware!