]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix configure nonblocking test and onmingw test to use host.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 14 Jun 2021 14:15:21 +0000 (16:15 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 14 Jun 2021 14:15:21 +0000 (16:15 +0200)
acx_nlnetlabs.m4
configure
configure.ac
doc/Changelog

index ad8fb50073767e68a65fc8f0c55b7c0800cbe731..7ce7907080550c85d7b820d250770a5f91f4cd7f 100644 (file)
@@ -2,7 +2,8 @@
 # Copyright 2009, Wouter Wijngaards, NLnet Labs.   
 # BSD licensed.
 #
-# Version 39
+# Version 40
+# 2021-06-14 fix nonblocking test to use host instead of target for mingw test.
 # 2021-05-17 fix nonblocking socket test from grep on mingw32 to mingw for
 #           64bit compatibility.
 # 2021-03-24 fix ACX_FUNC_DEPRECATED to use CPPFLAGS and CFLAGS.
@@ -917,7 +918,7 @@ dnl a nonblocking socket do not work, a new call to select is necessary.
 AC_DEFUN([ACX_CHECK_NONBLOCKING_BROKEN],
 [
 AC_MSG_CHECKING([if nonblocking sockets work])
-if echo $target | grep mingw >/dev/null; then
+if echo $host | grep mingw >/dev/null; then
        AC_MSG_RESULT([no (windows)])
        AC_DEFINE([NONBLOCKING_IS_BROKEN], 1, [Define if the network stack does not fully support nonblocking io (causes lower performance).])
 else
index 0a03ab5de60d35b4f1accd7546bbfa60e6b32d3b..170386901f2c548ca02fce1b5c67999ceb2bbc91 100755 (executable)
--- a/configure
+++ b/configure
@@ -811,7 +811,6 @@ infodir
 docdir
 oldincludedir
 includedir
-runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -962,7 +961,6 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
-runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1215,15 +1213,6 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
-  -runstatedir | --runstatedir | --runstatedi | --runstated \
-  | --runstate | --runstat | --runsta | --runst | --runs \
-  | --run | --ru | --r)
-    ac_prev=runstatedir ;;
-  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
-  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
-  | --run=* | --ru=* | --r=*)
-    runstatedir=$ac_optarg ;;
-
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1361,7 +1350,7 @@ fi
 for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                datadir sysconfdir sharedstatedir localstatedir includedir \
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir runstatedir
+               libdir localedir mandir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1514,7 +1503,6 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
-  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -15939,7 +15927,7 @@ fi
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nonblocking sockets work" >&5
 $as_echo_n "checking if nonblocking sockets work... " >&6; }
-if echo $target | grep mingw >/dev/null; then
+if echo $host | grep mingw >/dev/null; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (windows)" >&5
 $as_echo "no (windows)" >&6; }
 
index 746966f06380f9b742e428dc5bdfe60603b0d383..d0e55194b4e9188b872ee6c84e754fc7db185bcc 100644 (file)
@@ -149,7 +149,7 @@ esac
 # are we on MinGW?
 if uname -s 2>&1 | grep MINGW >/dev/null; then on_mingw="yes"
 else 
-       if echo $host $target | grep mingw >/dev/null; then on_mingw="yes"
+       if echo $host | grep mingw >/dev/null; then on_mingw="yes"
        else on_mingw="no"; fi
 fi
 
index 9081f2cd1ec0461d1deecb36ebeaddfb78149464..25f91cb76b74a0978298981a64cd59a983a4d777 100644 (file)
@@ -1,3 +1,6 @@
+14 June 2021: Wouter
+       - Fix configure nonblocking test and onmingw test to use host.
+
 10 June 2021: Wouter
        - Fix #500: SPEC file in version 1.13.1 references version 1.4;
          unable to build RPM from source.