Replace obsolete AC_TRY_LINK with AC_LINK_IFELSE

This commit is contained in:
Evan Miller 2020-08-14 07:18:23 -04:00
parent 6171472411
commit 4cc7999022

View File

@ -133,7 +133,7 @@ if test "$with_unixodbc"; then
OLDLDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions"
AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
AC_TRY_LINK([], [return 0],
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
[AC_MSG_RESULT(yes)
ODBC_LDFLAGS="-Wl,-Bsymbolic-functions"],
[AC_MSG_RESULT(no)