X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=configure;h=1494dd766b87e9e2d181f9fa2ef62e00a5001b7a;hp=4757d6705e7ef95bac00eb4fbb2865a431703b20;hb=605cf82e0f9ea67f62b15b8b1e53f0843908b886;hpb=81795ce399bef3af497e5767546458e20ce81bbf diff --git a/configure b/configure index 4757d670..1494dd76 100755 --- a/configure +++ b/configure @@ -141,6 +141,10 @@ for opt do case "$opt" in --cpu=*) cpu="$optarg" ;; + # esx is cross compiled and cannot be detect through simple uname calls + --esx) + esx="yes" + ;; --cc=*) CC="$optarg" ;; --extra-cflags=*) CFLAGS="$CFLAGS $optarg" @@ -152,6 +156,10 @@ for opt do ;; --disable-numa) disable_numa="yes" ;; + --disable-rbd) disable_rbd="yes" + ;; + --disable-gfapi) disable_gfapi="yes" + ;; --help) show_help="yes" ;; @@ -167,6 +175,7 @@ if test "$show_help" = "yes" ; then echo "--cc= Specify compiler to use" echo "--extra-cflags= Specify extra CFLAGS to pass to compiler" echo "--build-32bit-win Enable 32-bit build on Windows" + echo "--esx Configure build options for esx" echo "--enable-gfio Enable building of gtk gfio" echo "--disable-numa Disable libnuma even if found" exit $exit_val @@ -651,22 +660,6 @@ fi echo "sched_setaffinity(3 arg) $linux_3arg_affinity" echo "sched_setaffinity(2 arg) $linux_2arg_affinity" -########################################## -# CPU_COUNT test -cpu_count="no" -cat > $TMPC << EOF -#include -int main(int argc, char **argv) -{ - cpu_set_t mask; - return CPU_COUNT(&mask); -} -EOF -if compile_prog "" "" "cpu_count"; then - cpu_count="yes" -fi -echo "CPU_COUNT $cpu_count" - ########################################## # clock_gettime probe clock_gettime="no" @@ -1157,7 +1150,7 @@ int main(int argc, char **argv) return 0; } EOF -if compile_prog "" "-lrbd -lrados" "rbd"; then +if test "$disable_rbd" != "yes" && compile_prog "" "-lrbd -lrados" "rbd"; then LIBS="-lrbd -lrados $LIBS" rbd="yes" fi @@ -1181,6 +1174,45 @@ if compile_prog "" "" "setvbuf"; then fi echo "setvbuf $setvbuf" +# check for gfapi +gfapi="no" +cat > $TMPC << EOF +#include + +int main(int argc, char **argv) +{ + + glfs_t *g = glfs_new("foo"); + + return 0; +} +EOF +if test "$disable_gfapi" != "yes" && compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then + LIBS="-lgfapi -lglusterfs $LIBS" + gfapi="yes" +fi + echo "Gluster API engine $gfapi" + +########################################## +# check for gfapi fadvise support +gf_fadvise="no" +cat > $TMPC << EOF +#include + +int main(int argc, char **argv) +{ + struct glfs_fd *fd; + int ret = glfs_fadvise(fd, 0, 0, 1); + + return 0; +} +EOF + +if compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then + gf_fadvise="yes" +fi +echo "Gluster API use fadvise $gf_fadvise" + ########################################## # Check if we support stckf on s390 s390_z196_facilities="no" @@ -1317,6 +1349,10 @@ fi if test "$gfio" = "yes" ; then echo "CONFIG_GFIO=y" >> $config_host_mak fi +if test "$esx" = "yes" ; then + output_sym "CONFIG_ESX" + output_sym "CONFIG_NO_SHM" +fi if test "$sched_idle" = "yes" ; then output_sym "CONFIG_SCHED_IDLE" fi @@ -1335,9 +1371,6 @@ fi if test "$rbd" = "yes" ; then output_sym "CONFIG_RBD" fi -if test "$cpu_count" = "yes" ; then - output_sym "CONFIG_CPU_COUNT" -fi if test "$setvbuf" = "yes" ; then output_sym "CONFIG_SETVBUF" fi @@ -1345,6 +1378,16 @@ if test "$s390_z196_facilities" = "yes" ; then output_sym "CONFIG_S390_Z196_FACILITIES" CFLAGS="$CFLAGS -march=z9-109" fi +if test "$gfapi" = "yes" ; then + output_sym "CONFIG_GFAPI" +fi +if test "$gf_fadvise" = "yes" ; then + output_sym "CONFIG_GF_FADVISE" +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