autotools: removed duplication in configure.ac

This commit is contained in:
Dmitry Podgorny
2014-10-21 10:21:55 +03:00
parent 3231214344
commit 057f9068c6
2 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
TBA
- SCRAM-SHA-1 authentication mechanism
- pkg-config support
0.8.5
- libtoolize to generate .so

View File

@@ -77,9 +77,10 @@ AC_MSG_NOTICE([libstrophe will use the $with_parser XML parser])
AC_SEARCH_LIBS([socket], [socket])
if test "x$PLATFORM" != xfreebsd; then
AC_CHECK_LIB([resolv], [res_query], [LIBS="-lresolv $LIBS"; PC_LIBS+=(-lresolv)],
[AC_CHECK_LIB([resolv], [__res_query], [LIBS="-lresolv $LIBS"; PC_LIBS+=(-lresolv)],
[AC_MSG_ERROR([libresolv not found; libresolv required. ])])])
AC_CHECK_LIB([resolv], [res_query], [],
[AC_CHECK_LIB([resolv], [__res_query], [],
[AC_MSG_ERROR([libresolv not found; libresolv required.])])])
PC_LIBS+=(-lresolv)
else
AC_MSG_NOTICE([skipping libresolv checks for freebsd])
fi