mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-23 08:10:30 -05:00
+ - Configure errors if ldns is not found.
git-svn-id: file:///svn/unbound/trunk@2305 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
5533861c28
commit
d0f2287d44
3 changed files with 20 additions and 13 deletions
4
configure
vendored
4
configure
vendored
|
|
@ -16480,6 +16480,7 @@ use_ldns_builtin="no"
|
||||||
# Check whether --with-ldns was given.
|
# Check whether --with-ldns was given.
|
||||||
if test "${with_ldns+set}" = set; then :
|
if test "${with_ldns+set}" = set; then :
|
||||||
withval=$with_ldns; specialldnsdir="$withval"
|
withval=$with_ldns; specialldnsdir="$withval"
|
||||||
|
if test "$withval" != "yes"; then
|
||||||
if test "$withval" != ""; then
|
if test "$withval" != ""; then
|
||||||
CPPFLAGS="-I$withval/include $CPPFLAGS"
|
CPPFLAGS="-I$withval/include $CPPFLAGS"
|
||||||
LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
|
LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
|
||||||
|
|
@ -16493,6 +16494,7 @@ if test "${with_ldns+set}" = set; then :
|
||||||
fi
|
fi
|
||||||
ldnsdir="$withval"
|
ldnsdir="$withval"
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -16623,7 +16625,7 @@ done
|
||||||
-a $ac_cv_func_ldns_key_EVP_load_gost_id = yes; then
|
-a $ac_cv_func_ldns_key_EVP_load_gost_id = yes; then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
use_ldns_builtin="yes"
|
as_fn_error "No ldns library found (or not recent); install or update ldns library, use --with-ldns=path or --with-ldns-builtin" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -701,6 +701,7 @@ use_ldns_builtin="no"
|
||||||
AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH],
|
AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH],
|
||||||
[specify prefix of path of ldns library to use]),
|
[specify prefix of path of ldns library to use]),
|
||||||
[ specialldnsdir="$withval"
|
[ specialldnsdir="$withval"
|
||||||
|
if test "$withval" != "yes"; then
|
||||||
if test "$withval" != ""; then
|
if test "$withval" != ""; then
|
||||||
CPPFLAGS="-I$withval/include $CPPFLAGS"
|
CPPFLAGS="-I$withval/include $CPPFLAGS"
|
||||||
LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
|
LDFLAGS="-L$withval -L$withval/lib $LDFLAGS"
|
||||||
|
|
@ -708,6 +709,7 @@ AC_ARG_WITH(ldns, AC_HELP_STRING([--with-ldns=PATH],
|
||||||
fi
|
fi
|
||||||
ldnsdir="$withval"
|
ldnsdir="$withval"
|
||||||
AC_SUBST(ldnsdir)
|
AC_SUBST(ldnsdir)
|
||||||
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_ARG_WITH(ldns-builtin, AC_HELP_STRING([--with-ldns-builtin],
|
AC_ARG_WITH(ldns-builtin, AC_HELP_STRING([--with-ldns-builtin],
|
||||||
|
|
@ -755,7 +757,7 @@ if test "$use_ldns_builtin" = "no"; then
|
||||||
dnl ldns was found
|
dnl ldns was found
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
use_ldns_builtin="yes"
|
AC_MSG_ERROR([No ldns library found (or not recent); install or update ldns library, use --with-ldns=path or --with-ldns-builtin])
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
25 October 2010: Wouter
|
||||||
|
- Configure errors if ldns is not found.
|
||||||
|
|
||||||
22 October 2010: Wouter
|
22 October 2010: Wouter
|
||||||
- Windows 7 fix for the installer.
|
- Windows 7 fix for the installer.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue