X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=33d1327ebbba5b70a001e422bb5ad9b24d7c7b49;hb=4877c1ab380b199ba6d9207b689bb1df127b0b4b;hp=f1e116e4505029767ff5c786a21d236dbed32b3f;hpb=e0186b6f35c6ac6b179f91152d10368b8dc36bf4;p=fio.git diff --git a/configure b/configure index f1e116e4..33d1327e 100755 --- a/configure +++ b/configure @@ -134,6 +134,7 @@ cpu="" show_help="no" exit_val=0 gfio="no" +libhdfs="no" # parse options for opt do @@ -160,6 +161,8 @@ for opt do ;; --disable-gfapi) disable_gfapi="yes" ;; + --enable-libhdfs) libhdfs="yes" + ;; --help) show_help="yes" ;; @@ -178,6 +181,7 @@ if test "$show_help" = "yes" ; then echo "--esx Configure build options for esx" echo "--enable-gfio Enable building of gtk gfio" echo "--disable-numa Disable libnuma even if found" + echo "--enable-libhdfs Enable hdfs support" exit $exit_val fi @@ -1243,6 +1247,29 @@ if compile_prog "" "" "s390_z196_facilities"; then fi fi echo "s390_z196_facilities $s390_z196_facilities" + +########################################## +# Check if we have required environment variables configured for libhdfs +if test "$libhdfs" = "yes" ; then + hdfs_conf_error=0 + if test "$JAVA_HOME" = "" ; then + echo "configure: JAVA_HOME should be defined to jdk/jvm path" + hdfs_conf_error=1 + fi + if test "$FIO_LIBHDFS_INCLUDE" = "" ; then + echo "configure: FIO_LIBHDFS_INCLUDE should be defined to libhdfs inlude path" + hdfs_conf_error=1 + fi + if test "$FIO_LIBHDFS_LIB" = "" ; then + echo "configure: FIO_LIBHDFS_LIB should be defined to libhdfs library path" + hdfs_conf_error=1 + fi + if test "$hdfs_conf_error" = "1" ; then + exit 1 + fi +fi +echo "HDFS engine $libhdfs" + ############################################################################# if test "$wordsize" = "64" ; then @@ -1384,6 +1411,13 @@ fi if test "$gf_fadvise" = "yes" ; then output_sym "CONFIG_GF_FADVISE" fi +if test "$libhdfs" = "yes" ; then + output_sym "CONFIG_LIBHDFS" +fi + +if test "$zlib" = "no" ; then + echo "Consider installing zlib-dev (zlib-devel), some fio features depend on it." +fi echo "LIBS+=$LIBS" >> $config_host_mak echo "CFLAGS+=$CFLAGS" >> $config_host_mak