[PATCH xserver 3/5] autoconf: fix warning, replace AC_TRY_COMPILE with AC_COMPILE_IFELSE

Gaetan Nadon memsize at videotron.ca
Fri Jan 17 06:39:03 PST 2014

The code produced in the configure script is identical.

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Tested-by: Trevor Woerner <trevor.woerner at linaro.org>
Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
 configure.ac |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1859b8e..a61eeed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1820,13 +1820,13 @@ if test "x$XORG" = xyes; then
 		proto_inc=`$PKG_CONFIG --cflags xproto`
 		    [#include <X11/Xfuncproto.h>
 		     extern _X_HIDDEN int hidden_int;
 		     extern _X_EXPORT int public_int;
 		     extern _X_HIDDEN int hidden_int_func(void);
-		     extern _X_EXPORT int public_int_func(void);],
-		    [],
+		     extern _X_EXPORT int public_int_func(void);]],
+		    [])],
@@ -2386,12 +2386,12 @@ dnl though, thanks to the passing of some significant amount of time, the
 dnl above is probably a complete fallacy, and you should not rely on it.
 dnl but this is still actually better than imake, honest. -daniels
 #include <features.h>
 #ifndef __GLIBC__
 #error not glibc
-], [], [AC_DEFINE(_GNU_SOURCE, 1,
+]], [])], [AC_DEFINE(_GNU_SOURCE, 1,
 	[ Enable GNU and other extensions to the C environment for glibc])])
 AC_DEFINE_DIR(PROJECTROOT, prefix, [Overall prefix])

More information about the xorg-devel mailing list