[PATCH xserver 4/5] xorg-tls: fix warning, replace AC_TRY_COMPILE with AC_COMPILE_IFELSE
Gaetan Nadon
memsize at videotron.ca
Fri Jan 17 06:39:04 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>
---
m4/xorg-tls.m4 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/m4/xorg-tls.m4 b/m4/xorg-tls.m4
index e04f1ff..5768775 100644
--- a/m4/xorg-tls.m4
+++ b/m4/xorg-tls.m4
@@ -28,7 +28,7 @@ AC_DEFUN([XORG_TLS], [
ac_cv_tls=none
keywords="__thread __declspec(thread)"
for kw in $keywords ; do
- AC_TRY_COMPILE([int $kw test;], [], ac_cv_tls=$kw ; break ;)
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int $kw test;]], [])], ac_cv_tls=$kw ; break ;)
done
])
AC_MSG_RESULT($ac_cv_tls)
@@ -38,7 +38,7 @@ AC_DEFUN([XORG_TLS], [
AC_CACHE_VAL(ac_cv_tls_model, [
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $STRICT_CFLAGS"
- AC_TRY_COMPILE([int $ac_cv_tls __attribute__((tls_model("initial-exec"))) test;], [],
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int $ac_cv_tls __attribute__((tls_model("initial-exec"))) test;]], [])],
ac_cv_tls_model=yes, ac_cv_tls_model=no)
CFLAGS="$save_CFLAGS"
])
--
1.7.9.5
More information about the xorg-devel
mailing list