mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
Fixes.
git-svn-id: file:///svn/unbound/trunk@932 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
d2b3e464ac
commit
0c8d24b653
3 changed files with 32 additions and 21 deletions
34
configure
vendored
34
configure
vendored
|
|
@ -4614,7 +4614,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if test "$srcdir" != "."; then
|
if test "$srcdir" != "."; then
|
||||||
CPPFLAGS="$CPPFLAGS -I$srcdir";
|
CPPFLAGS="$CPPFLAGS -I$srcdir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# skip these tests, we do not need them.
|
# skip these tests, we do not need them.
|
||||||
|
|
@ -20601,13 +20601,13 @@ echo $ECHO_N "checking for SSL... $ECHO_C" >&6; }
|
||||||
for dir in $withval; do
|
for dir in $withval; do
|
||||||
ssldir="$dir"
|
ssldir="$dir"
|
||||||
if test -f "$dir/include/openssl/ssl.h"; then
|
if test -f "$dir/include/openssl/ssl.h"; then
|
||||||
found_ssl="yes";
|
found_ssl="yes"
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define HAVE_SSL
|
#define HAVE_SSL
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS -I$ssldir/include";
|
CPPFLAGS="$CPPFLAGS -I$ssldir/include"
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
@ -20619,7 +20619,7 @@ echo "$as_me: error: Cannot find the SSL libraries in $withval" >&2;}
|
||||||
{ echo "$as_me:$LINENO: result: found in $ssldir" >&5
|
{ echo "$as_me:$LINENO: result: found in $ssldir" >&5
|
||||||
echo "${ECHO_T}found in $ssldir" >&6; }
|
echo "${ECHO_T}found in $ssldir" >&6; }
|
||||||
HAVE_SSL=yes
|
HAVE_SSL=yes
|
||||||
LDFLAGS="$LDFLAGS -L$ssldir/lib";
|
LDFLAGS="$LDFLAGS -L$ssldir/lib"
|
||||||
if test "x$enable_rpath" = xyes; then
|
if test "x$enable_rpath" = xyes; then
|
||||||
RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
|
RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
|
||||||
fi
|
fi
|
||||||
|
|
@ -21948,13 +21948,13 @@ if test x_$withval != x_no; then
|
||||||
{ echo "$as_me:$LINENO: checking for libevent" >&5
|
{ echo "$as_me:$LINENO: checking for libevent" >&5
|
||||||
echo $ECHO_N "checking for libevent... $ECHO_C" >&6; }
|
echo $ECHO_N "checking for libevent... $ECHO_C" >&6; }
|
||||||
if test x_$withval = x_ -o x_$withval = x_yes; then
|
if test x_$withval = x_ -o x_$withval = x_yes; then
|
||||||
withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr";
|
withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
|
||||||
fi
|
fi
|
||||||
for dir in $withval; do
|
for dir in $withval; do
|
||||||
thedir="$dir"
|
thedir="$dir"
|
||||||
if test -f "$dir/include/event.h"; then
|
if test -f "$dir/include/event.h"; then
|
||||||
found_libevent="yes";
|
found_libevent="yes"
|
||||||
CPPFLAGS="$CPPFLAGS -I$thedir/include";
|
CPPFLAGS="$CPPFLAGS -I$thedir/include"
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
@ -21963,10 +21963,20 @@ echo $ECHO_N "checking for libevent... $ECHO_C" >&6; }
|
||||||
# libevent source directory
|
# libevent source directory
|
||||||
{ echo "$as_me:$LINENO: result: found in $thedir" >&5
|
{ echo "$as_me:$LINENO: result: found in $thedir" >&5
|
||||||
echo "${ECHO_T}found in $thedir" >&6; }
|
echo "${ECHO_T}found in $thedir" >&6; }
|
||||||
CPPFLAGS="$CPPFLAGS -I$thedir";
|
CPPFLAGS="$CPPFLAGS -I$thedir"
|
||||||
BAK_LDFLAGS="$LDFLAGS"
|
BAK_LDFLAGS="$LDFLAGS"
|
||||||
LATE_LDFLAGS="$thedir/*.lo";
|
# remove evdns from linking
|
||||||
LDFLAGS="$thedir/*.o $LDFLAGS"
|
mkdir build >/dev/null 2>&1
|
||||||
|
mkdir build/libevent >/dev/null 2>&1
|
||||||
|
mkdir build/libevent/.libs >/dev/null 2>&1
|
||||||
|
ev_files_o=`ls $thedir/*.o | grep -v evdns\.o`
|
||||||
|
ev_files_lo=`ls $thedir/*.lo | grep -v evdns\.lo`
|
||||||
|
ev_files_libso=`ls $thedir/.libs/*.o | grep -v evdns\.o`
|
||||||
|
cp $ev_files_o build/libevent
|
||||||
|
cp $ev_files_lo build/libevent
|
||||||
|
cp $ev_files_libso build/libevent/.libs
|
||||||
|
LATE_LDFLAGS="build/libevent/*.lo"
|
||||||
|
LDFLAGS="build/libevent/*.o $LDFLAGS"
|
||||||
else
|
else
|
||||||
{ { echo "$as_me:$LINENO: error: Cannot find the libevent library in $withval
|
{ { echo "$as_me:$LINENO: error: Cannot find the libevent library in $withval
|
||||||
You can restart ./configure --with-libevent=no to use a builtin alternative.
|
You can restart ./configure --with-libevent=no to use a builtin alternative.
|
||||||
|
|
@ -21981,7 +21991,7 @@ many outgoing ports. " >&2;}
|
||||||
else
|
else
|
||||||
{ echo "$as_me:$LINENO: result: found in $thedir" >&5
|
{ echo "$as_me:$LINENO: result: found in $thedir" >&5
|
||||||
echo "${ECHO_T}found in $thedir" >&6; }
|
echo "${ECHO_T}found in $thedir" >&6; }
|
||||||
LDFLAGS="$LDFLAGS -L$thedir/lib";
|
LDFLAGS="$LDFLAGS -L$thedir/lib"
|
||||||
if test "x$enable_rpath" = xyes; then
|
if test "x$enable_rpath" = xyes; then
|
||||||
RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
|
RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
|
||||||
fi
|
fi
|
||||||
|
|
@ -24771,7 +24781,7 @@ _ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LDFLAGS="$LATE_LDFLAGS $LDFLAGS";
|
LDFLAGS="$LATE_LDFLAGS $LDFLAGS"
|
||||||
|
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
|
|
||||||
18
configure.ac
18
configure.ac
|
|
@ -321,7 +321,7 @@ AC_CHECK_FORMAT_ATTRIBUTE
|
||||||
AC_CHECK_UNUSED_ATTRIBUTE
|
AC_CHECK_UNUSED_ATTRIBUTE
|
||||||
|
|
||||||
if test "$srcdir" != "."; then
|
if test "$srcdir" != "."; then
|
||||||
CPPFLAGS="$CPPFLAGS -I$srcdir";
|
CPPFLAGS="$CPPFLAGS -I$srcdir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# skip these tests, we do not need them.
|
# skip these tests, we do not need them.
|
||||||
|
|
@ -436,9 +436,9 @@ AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=pathname],
|
||||||
for dir in $withval; do
|
for dir in $withval; do
|
||||||
ssldir="$dir"
|
ssldir="$dir"
|
||||||
if test -f "$dir/include/openssl/ssl.h"; then
|
if test -f "$dir/include/openssl/ssl.h"; then
|
||||||
found_ssl="yes";
|
found_ssl="yes"
|
||||||
AC_DEFINE_UNQUOTED([HAVE_SSL], [], [Define if you have the SSL libraries installed.])
|
AC_DEFINE_UNQUOTED([HAVE_SSL], [], [Define if you have the SSL libraries installed.])
|
||||||
CPPFLAGS="$CPPFLAGS -I$ssldir/include";
|
CPPFLAGS="$CPPFLAGS -I$ssldir/include"
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
@ -447,7 +447,7 @@ AC_ARG_WITH(ssl, AC_HELP_STRING([--with-ssl=pathname],
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(found in $ssldir)
|
AC_MSG_RESULT(found in $ssldir)
|
||||||
HAVE_SSL=yes
|
HAVE_SSL=yes
|
||||||
LDFLAGS="$LDFLAGS -L$ssldir/lib";
|
LDFLAGS="$LDFLAGS -L$ssldir/lib"
|
||||||
if test "x$enable_rpath" = xyes; then
|
if test "x$enable_rpath" = xyes; then
|
||||||
RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
|
RUNTIME_PATH="$RUNTIME_PATH -R$ssldir/lib"
|
||||||
fi
|
fi
|
||||||
|
|
@ -511,13 +511,13 @@ AC_ARG_WITH(libevent, AC_HELP_STRING([--with-libevent=pathname],
|
||||||
if test x_$withval != x_no; then
|
if test x_$withval != x_no; then
|
||||||
AC_MSG_CHECKING(for libevent)
|
AC_MSG_CHECKING(for libevent)
|
||||||
if test x_$withval = x_ -o x_$withval = x_yes; then
|
if test x_$withval = x_ -o x_$withval = x_yes; then
|
||||||
withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr";
|
withval="/usr/local /opt/local /usr/lib /usr/pkg /usr/sfw /usr"
|
||||||
fi
|
fi
|
||||||
for dir in $withval; do
|
for dir in $withval; do
|
||||||
thedir="$dir"
|
thedir="$dir"
|
||||||
if test -f "$dir/include/event.h"; then
|
if test -f "$dir/include/event.h"; then
|
||||||
found_libevent="yes";
|
found_libevent="yes"
|
||||||
CPPFLAGS="$CPPFLAGS -I$thedir/include";
|
CPPFLAGS="$CPPFLAGS -I$thedir/include"
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
@ -525,7 +525,7 @@ if test x_$withval != x_no; then
|
||||||
if test -f "$dir/event.h" -a -f "$dir/libevent.la"; then
|
if test -f "$dir/event.h" -a -f "$dir/libevent.la"; then
|
||||||
# libevent source directory
|
# libevent source directory
|
||||||
AC_MSG_RESULT(found in $thedir)
|
AC_MSG_RESULT(found in $thedir)
|
||||||
CPPFLAGS="$CPPFLAGS -I$thedir";
|
CPPFLAGS="$CPPFLAGS -I$thedir"
|
||||||
BAK_LDFLAGS="$LDFLAGS"
|
BAK_LDFLAGS="$LDFLAGS"
|
||||||
# remove evdns from linking
|
# remove evdns from linking
|
||||||
mkdir build >/dev/null 2>&1
|
mkdir build >/dev/null 2>&1
|
||||||
|
|
@ -547,7 +547,7 @@ many outgoing ports. ])
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(found in $thedir)
|
AC_MSG_RESULT(found in $thedir)
|
||||||
LDFLAGS="$LDFLAGS -L$thedir/lib";
|
LDFLAGS="$LDFLAGS -L$thedir/lib"
|
||||||
if test "x$enable_rpath" = xyes; then
|
if test "x$enable_rpath" = xyes; then
|
||||||
RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
|
RUNTIME_PATH="$RUNTIME_PATH -R$thedir/lib"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
to make room for new debug level 2 for detailed information
|
to make room for new debug level 2 for detailed information
|
||||||
for operators.
|
for operators.
|
||||||
- verbosity level 2. Describes recursion and validation.
|
- verbosity level 2. Describes recursion and validation.
|
||||||
|
- cleaner configure script and fixes for libevent solaris.
|
||||||
|
|
||||||
6 February 2008: Wouter
|
6 February 2008: Wouter
|
||||||
- clearer explanation of threading configure options.
|
- clearer explanation of threading configure options.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue