From 8e7f974e2c8f3502e242a7808cbb948bec221d57 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 25 Sep 2000 01:15:12 +0000 Subject: [PATCH] Another try at ipv6 detection --- configure | 6 +++--- configure.in | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index d85b11427b..d320fa843d 100755 --- a/configure +++ b/configure @@ -1,6 +1,6 @@ #! /bin/sh # $OpenLDAP$ -# from OpenLDAP: pkg/ldap/configure.in,v 1.334 2000/09/24 23:11:48 kurt Exp +# from OpenLDAP: pkg/ldap/configure.in,v 1.335 2000/09/24 23:13:28 kurt Exp # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved. # @@ -5788,7 +5788,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | ol_cv_inet6_addrslen=yes else rm -rf conftest* - ol_cv_inet6_addrslen + ol_cv_inet6_addrslen=no fi rm -f conftest* @@ -5798,7 +5798,7 @@ echo "$ac_t""$ol_cv_inet6_addrslen" 1>&6 if test $ol_cv_inet6_addrslen = yes ; then ol_link_ipv6=yes - elif $ol_enable_ipv6 = yes ; then + elif test $ol_enable_ipv6 = yes ; then { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; } fi fi diff --git a/configure.in b/configure.in index 57fb2c47df..d2e182156d 100644 --- a/configure.in +++ b/configure.in @@ -825,11 +825,11 @@ else # ifdef INET6_ADDRSLEN __has_inet6_addrslen__; # endif - ], ol_cv_inet6_addrslen=yes, ol_cv_inet6_addrslen)]) + ], [ol_cv_inet6_addrslen=yes], [ol_cv_inet6_addrslen=no])]) if test $ol_cv_inet6_addrslen = yes ; then ol_link_ipv6=yes - elif $ol_enable_ipv6 = yes ; then + elif test $ol_enable_ipv6 = yes ; then AC_MSG_ERROR([IPv6 support requires INET6_ADDRSTRLEN]) fi fi -- 2.39.5