From: Castor Fu Date: Thu, 31 Oct 2013 17:00:54 +0000 (-0600) Subject: configure: add option to disable libnuma usage X-Git-Tag: fio-2.1.4~12 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=44462517234f07e03c4dc71e5b5460cd70feeb07 configure: add option to disable libnuma usage Signed-off-by: Castor Fu Signed-off-by: Jens Axboe --- diff --git a/configure b/configure index c00a3a46..b6bfe19a 100755 --- a/configure +++ b/configure @@ -153,6 +153,8 @@ for opt do --enable-gfio) gfio="yes" ;; + --disable-numa) disable_numa="yes" + ;; --help) show_help="yes" ;; @@ -169,6 +171,7 @@ if test "$show_help" = "yes" ; then echo "--extra-cflags= Specify extra CFLAGS to pass to compiler" echo "--build-32bit-win Enable 32-bit build on Windows" echo "--enable-gfio Enable building of gtk gfio" + echo "--disable-numa Disable libnuma even if found" exit $exit_val fi @@ -835,7 +838,7 @@ int main(int argc, char **argv) return numa_available(); } EOF -if compile_prog "" "-lnuma" "libnuma"; then +if test "$disable_numa" != "yes" && compile_prog "" "-lnuma" "libnuma"; then libnuma="yes" LIBS="-lnuma $LIBS" fi