summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-02 12:26:28 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-12-02 12:26:28 -0800
commit042a1cf3705a2c70f6e22eb5bd8541dd32652c9b (patch)
treeb615e3f96d1c606e4aa2d4cae9b648aca21ee723
parent0c5b190725bf1818308979ac4480960b75987aa5 (diff)
configure: replace deprecated AC_TRY_COMPILE with AC_COMPILE_IFELSE
Clears autoconf warnings: configure.ac:127: warning: The macro 'AC_TRY_COMPILE' is obsolete. configure.ac:127: You should run autoupdate. ./lib/autoconf/general.m4:2845: AC_TRY_COMPILE is expanded from... configure.ac:127: the top level Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac
index 29c6ed0..2db6c79 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,15 +124,15 @@ if test x$SYMBOL_VISIBILITY != xno; then
fi
fi
if test x$have_visibility != xno; then
- AC_TRY_COMPILE(
- [#include <X11/Xfuncproto.h>
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[#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);],
- [],
- have_visibility=yes,
- have_visibility=no)
+ extern _X_EXPORT int public_int_func(void);]],
+ [[]])],
+ [have_visibility=yes],
+ [have_visibility=no])
fi
AC_MSG_RESULT([$have_visibility])
if test x$have_visibility != xno; then