|
@@ -87,10 +87,20 @@ CPPFLAGS=$cppflags_bak
|
|
|
AC_SUBST([JNI_CPPFLAGS])
|
|
|
|
|
|
dnl Check for zlib headers
|
|
|
-AC_CHECK_HEADERS([zlib.h zconf.h], AC_COMPUTE_NEEDED_DSO(z,HADOOP_ZLIB_LIBRARY), AC_MSG_ERROR(Zlib headers were not found... native-hadoop library needs zlib to build. Please install the requisite zlib development package.))
|
|
|
+AC_CHECK_HEADERS([zlib.h zconf.h],
|
|
|
+ AC_COMPUTE_NEEDED_DSO(z,
|
|
|
+ [#include "zlib.h"
|
|
|
+ int main(int argc, char **argv){zlibVersion();return 0;}],
|
|
|
+ HADOOP_ZLIB_LIBRARY),
|
|
|
+ AC_MSG_ERROR(Zlib headers were not found... native-hadoop library needs zlib to build. Please install the requisite zlib development package.))
|
|
|
|
|
|
dnl Check for snappy headers
|
|
|
-AC_CHECK_HEADERS([snappy-c.h], AC_COMPUTE_NEEDED_DSO(snappy,HADOOP_SNAPPY_LIBRARY), AC_MSG_WARN(Snappy headers were not found... building without snappy.))
|
|
|
+AC_CHECK_HEADERS([snappy-c.h],
|
|
|
+ AC_COMPUTE_NEEDED_DSO(snappy,
|
|
|
+ [#include "snappy-c.h"
|
|
|
+ int main(int argc, char **argv){snappy_compress(0,0,0,0);return 0;}],
|
|
|
+ HADOOP_SNAPPY_LIBRARY),
|
|
|
+ AC_MSG_WARN(Snappy headers were not found... building without snappy.))
|
|
|
|
|
|
dnl Check for headers needed by the native Group resolution implementation
|
|
|
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h], [], AC_MSG_ERROR(Some system headers not found... please ensure their presence on your platform.))
|