From: DongHun Kwak Date: Thu, 8 Sep 2016 05:42:14 +0000 (+0900) Subject: Change AC_SEARCH_LIBS to AC_CHECK_LIB at configure.ac file X-Git-Tag: submit/tizen/20170206.023855~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe86a4d7d5716015ee54c79fa49b776f26647b7d;p=platform%2Fupstream%2Fprocps-ng.git Change AC_SEARCH_LIBS to AC_CHECK_LIB at configure.ac file Build break at Address Sanitizer testing. [Model] [BinType] AP [Customer] OPEN [Issue#] N/A [Request] N/A [Occurrence Version] N/A [Problem] Build break at Address Sanitizer testing [Cause & Measure] Change AC_SEARCH_LIBS to AC_CHECK_LIB at configure.ac file [Checking Method] N/A [Team] Open Source Management and Setting Part [Developer] dh0128.kwak [Solution company] Samsung [Change Type] N/A Change-Id: I68b2e5fc95e365c74db4891365100d48d5d82ebb Signed-off-by: DongHun Kwak --- diff --git a/configure.ac b/configure.ac index f08867c..f7ac5bf 100644 --- a/configure.ac +++ b/configure.ac @@ -233,9 +233,11 @@ AC_ARG_ENABLE([numa], if test "x$enable_numa" = xno; then AC_DEFINE([NUMA_DISABLE], [1], [disable NUMA/Node support in top]) else - AC_SEARCH_LIBS([dlopen], [dl], [], - [AC_MSG_ERROR([dynamic linking unavailable, circumvent with --disable-numa])]) - DL_LIB="$ac_cv_search_dlopen" + AC_CHECK_LIB(dl, dlopen, [have_dlopen=yes], [have_dlopen=no]) + if test "x$have_dlopen" = xno; then + AC_MSG_ERROR([dynamic linking unavailable, circumvent with --disable-numa]) + fi + DL_LIB="-ldl" fi AC_SUBST([DL_LIB])