X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=configure;h=03275787c4d074b808bec2cd47f85337d68aa970;hb=deb728c66d3f745abca5afc4eebcf0d5049d50fd;hp=b49ffc1ece74562a71c3e4ab3760e2a5abd65991;hpb=7fcad9e1cf089289372cc91a85fba0c7e5978474;p=fio.git diff --git a/configure b/configure index b49ffc1e..03275787 100755 --- a/configure +++ b/configure @@ -612,7 +612,9 @@ echo "POSIX AIO fsync $posix_aio_fsync" ########################################## # POSIX pshared attribute probe -posix_pshared="no" +if test "$posix_pshared" != "yes" ; then + posix_pshared="no" +fi cat > $TMPC < int main(void) @@ -1243,7 +1245,7 @@ int main(void) gdk_threads_enter(); gdk_threads_leave(); - printf("%d", GTK_CHECK_VERSION(2, 18, 0)); + return GTK_CHECK_VERSION(2, 18, 0) ? 0 : 1; /* 0 on success */ } EOF GTK_CFLAGS=$(pkg-config --cflags gtk+-2.0 gthread-2.0) @@ -1259,8 +1261,8 @@ if test "$?" != "0" ; then exit 1 fi if compile_prog "$GTK_CFLAGS" "$GTK_LIBS" "gfio" ; then - r=$($TMPE) - if test "$r" != "0" ; then + $TMPE + if test "$?" = "0" ; then gfio="yes" GFIO_LIBS="$LIBS $GTK_LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" @@ -1279,6 +1281,7 @@ if test "$gfio_check" = "yes" ; then echo "gtk 2.18 or higher $gfio" fi +########################################## # Check whether we have getrusage(RUSAGE_THREAD) if test "$rusage_thread" != "yes" ; then rusage_thread="no" @@ -1473,7 +1476,6 @@ cat > $TMPC << EOF int main(int argc, char **argv) { - rados_t cluster; rados_ioctx_t io_ctx; const char pool[] = "rbd"; @@ -1591,6 +1593,7 @@ if compile_prog "" "" "setvbuf"; then fi echo "setvbuf $setvbuf" +########################################## # check for gfapi if test "$gfapi" != "yes" ; then gfapi="no" @@ -1600,7 +1603,6 @@ cat > $TMPC << EOF int main(int argc, char **argv) { - glfs_t *g = glfs_new("foo"); return 0; @@ -1794,6 +1796,7 @@ echo "NVML pmemblk engine $pmemblk" # Report whether dev-dax engine is enabled echo "NVML dev-dax engine $devdax" +########################################## # Check if we have lex/yacc available yacc="no" yacc_is_bison="no" @@ -1927,16 +1930,7 @@ fi cat > $TMPC << EOF #include #include -#undef offsetof -#ifdef __compiler_offsetof -#define offsetof(TYPE,MEMBER) __compiler_offsetof(TYPE,MEMBER) -#else -#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) -#endif - -#define container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) );}) +#include struct foo { int a, b; @@ -1996,7 +1990,9 @@ echo "march_armv8_a_crc_crypto $march_armv8_a_crc_crypto" ########################################## # cuda probe -cuda="no" +if test "$cuda" != "yes" ; then + cuda="no" +fi cat > $TMPC << EOF #include int main(int argc, char **argv)