From: <dar...@us...> - 2011-01-22 13:30:14
|
Revision: 2271 http://znc.svn.sourceforge.net/znc/?rev=2271&view=rev Author: darthgandalf Date: 2011-01-22 13:30:07 +0000 (Sat, 22 Jan 2011) Log Message: ----------- A cleanup in configure.ac on how to find library with dlopen. This shouldn't break anything. Modified Paths: -------------- trunk/configure.ac Modified: trunk/configure.ac =================================================================== --- trunk/configure.ac 2011-01-18 14:21:17 UTC (rev 2270) +++ trunk/configure.ac 2011-01-22 13:30:07 UTC (rev 2271) @@ -168,21 +168,9 @@ # ----- Check for dlopen -FOUND_DL=no -# Don't use any libs like -lssl -lcrypto when checking for dlopen(), -# because they might change the test results -SAVED_LIBS="$LIBS" -LIBS="" +AC_SEARCH_LIBS([dlopen], [dl], [], + [AC_MSG_ERROR([Could not find dlopen. ZNC will not work on this box until you upgrade this ancient system or at least install the necessary system libraries.])]) -AC_CHECK_FUNC(dlopen, FOUND_DL=yes,) -AC_CHECK_LIB( dl, dlopen, FOUND_DL=yes ; appendLib -ldl,) - -appendLib "$SAVED_LIBS" - -if test $FOUND_DL = "no" ; then - AC_MSG_ERROR([Could not find dlopen. ZNC will not work on this box until you upgrade this ancient system or at least install needed system libraries.]) -fi - # ----- Check for c-ares if test "x$ARES" != "xno"; then This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |