[balsa] Build tools: Remove test for libresolv
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Build tools: Remove test for libresolv
- Date: Sun, 2 Feb 2020 15:08:58 +0000 (UTC)
commit dcb78def69e4f7657e8cb0c825bc76b7e978c768
Author: Albrecht Dreß <albrecht dress arcor de>
Date: Sun Feb 2 09:52:36 2020 -0500
Build tools: Remove test for libresolv
* configure.ac:
* meson.build:
ChangeLog | 7 +++++++
configure.ac | 20 --------------------
meson.build | 16 ----------------
3 files changed, 7 insertions(+), 36 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b4ff2d365..b9620129a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-02-02 Albrecht Dreß <albrecht dress arcor de>
+
+ Build tools: Remove test for libresolv
+
+ * configure.ac:
+ * meson.build:
+
2020-02-01 Albrecht Dreß <albrecht dress arcor de>
[Patch] ical improvements
diff --git a/configure.ac b/configure.ac
index 080678d73..1d0cb3f4e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -245,26 +245,6 @@ PKG_CHECK_MODULES(LIBNETCLIENT, [
gnutls
])
-AC_MSG_CHECKING(whether res_init is available)
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <resolv.h>;]],
- [[res_init();]])],
- have_res_init=yes,
- have_res_init=no)
-if test $have_res_init = no ; then
- save_LIBS=$LIBS
- LIBS="$LIBS -lresolv"
- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <resolv.h>;]],
- [[res_init();]])],
- have_res_init=yes)
-fi
-AC_MSG_RESULT([$have_res_init])
-if test $have_res_init = no ; then
- LIBS=$save_LIBS
-else
- AC_DEFINE(HAVE_RES_INIT,1,
- [Defined when res_init is available.])
-fi
-
dnl ##########################################################################
dnl Check versions
dnl ##########################################################################
diff --git a/meson.build b/meson.build
index ec05689c9..2ab92ff10 100644
--- a/meson.build
+++ b/meson.build
@@ -159,22 +159,6 @@ libnetclient_deps = [glib_dep,
gio_dep,
gnutls_dep]
-# Check whether res_init is available
-result = compiler.has_function('res_init', prefix : '#include <resolv.h>')
-if not result
- result = compiler.has_function('res_init',
- prefix : '#include <resolv.h>',
- args : '-lresolv')
- if result
- add_global_link_arguments('-lresolv')
- endif
-endif
-
-if result
- conf.set('HAVE_RES_INIT', 1,
- description : 'Defined when res_init is available.')
-endif
-
# ##########################################################################
# Check versions
# ##########################################################################
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]