From: Wen Congyang Date: Thu, 12 May 2011 09:55:43 +0000 (+0800) Subject: build: avoid compiler warning during configure X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1ba6e2d926dadd6267084fe0b27209ba6c1099ff;p=libvirt.git build: avoid compiler warning during configure There is no need to redefine _GNU_SOURCE in tests that occur after gl_INIT, since that macro already AC_DEFINE'd it for us. Signed-off-by: Eric Blake --- diff --git a/configure.ac b/configure.ac index 71c496883c..a2ce97e3d7 100644 --- a/configure.ac +++ b/configure.ac @@ -638,7 +638,7 @@ if test "$with_libvirtd" = "no" ; then with_lxc=no fi if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then - AC_TRY_LINK([#define _GNU_SOURCE + AC_TRY_LINK([ #include ], [ unshare (1);