changed configure.ac to reset DL_LIBS if it's set to 'none required'

This commit is contained in:
2018-03-05 04:39:57 +00:00
parent 3eac18548c
commit 474d48a211
4 changed files with 16 additions and 4 deletions

View File

@ -136,7 +136,13 @@ AC_CHECK_FUNCS([snprintf _vsnprintf _vsnwprintf])
AC_CHECK_FUNCS([isatty mmap munmap])
save_LIBS="$LIBS"
AC_SEARCH_LIBS([dlopen], [dl dld], [DL_LIBS="$ac_cv_search_dlopen"])
AC_SEARCH_LIBS([dlopen], [dl dld], [
DL_LIBS="$ac_cv_search_dlopen"
if test "x${DL_LIBS}" = "xnone required"
then
DL_LIBS=""
fi
])
LIBS="$save_LIBS"
AC_SUBST(DL_LIBS)