diff options
author | Colin Watson <cjwatson@debian.org> | 2021-09-19 01:15:34 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2021-09-19 01:15:34 +0100 |
commit | e281d41fcf8b2ce13b6004ddfd185368da7bb3b6 (patch) | |
tree | 70652182ac1e99af6d517c4bfde934bbd1cfc772 /m4 | |
parent | cfa5ee9b5010cccde744b0e36e5bc3614723fb2e (diff) |
Stop using obsolete AC_TRY_LINK
This has been obsolete since Autoconf 2.55. Use its AC_LINK_IFELSE
expansion instead.
* m4/man-bdb.m4 (MAN_CHECK_BDB): Expand AC_TRY_LINK call using
AC_LINK_IFELSE.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/man-bdb.m4 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/m4/man-bdb.m4 b/m4/man-bdb.m4 index 5e237bc1..71c7b73f 100644 --- a/m4/man-bdb.m4 +++ b/m4/man-bdb.m4 @@ -1,4 +1,4 @@ -# man-bdb.m4 serial 4 +# man-bdb.m4 serial 5 dnl MAN_CHECK_BDB(WITH-DB, HEADERS, LIBS, [ACTION-IF-FOUND]) dnl Helper to check Berkeley DB linkage when particular header files and dnl libraries are included. ACTION-IF-FOUND may contain $head and $lib. @@ -27,9 +27,12 @@ then man_saved_LIBS="$LIBS" LIBS="$LIBS -l$lib" AC_CACHE_CHECK([for dbopen from <${head}> in -l${lib}], man_tr_bdb, - [AC_TRY_LINK([#include <$head>], [dbopen("foo", 0, 0, 0, (void *) 0)], - [AS_VAR_SET([man_tr_bdb], [yes])], - [AS_VAR_SET([man_tr_bdb], [no])]) + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include <$head>]], + [[dbopen("foo", 0, 0, 0, (void *) 0)]])], + [AS_VAR_SET([man_tr_bdb], [yes])], + [AS_VAR_SET([man_tr_bdb], [no])]) ]) AS_VAR_IF([man_tr_bdb], [yes], [$4 |