diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2013-12-21 19:58:31 -0500 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-01-22 11:18:42 -0800 |
commit | c3819da87ff2e8c6292066f965c098704edc442c (patch) | |
tree | 7e10d58b0c195faa9937de40d5c05bc2b44b3633 | |
parent | 02d866a088a2fc60c6aaebe23c48b372f6b6aa9b (diff) |
xorg-tls: fix warning, replace AC_TRY_COMPILE with AC_COMPILE_IFELSE
The code produced in the configure script is identical.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | m4/xorg-tls.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/xorg-tls.m4 b/m4/xorg-tls.m4 index e04f1ff56..57687758f 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" ]) |