diff options
author | Michael Steinert <mike.steinert@gmail.com> | 2012-05-23 09:16:44 -0600 |
---|---|---|
committer | Michael Steinert <mike.steinert@gmail.com> | 2012-05-23 09:16:44 -0600 |
commit | 2f13e2e8c84f65d698830b7bc28591438b7176d5 (patch) | |
tree | 73a74952744161bbee3da86690a2ce05d03410b8 /m4/popt.m4 | |
parent | 9a5fb47728e1281edafab5a95023c362138092a2 (diff) | |
download | rabbitmq-c-github-ask-2f13e2e8c84f65d698830b7bc28591438b7176d5.tar.gz |
Fix check for Popt
AC_SEARCH_LIBS was adding `-lpopt` to the LIBS variable, resulting in
librabbitmq.so being linked with Popt. Switching to AC_CHECK_LIB fixes
the problem.
Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
Diffstat (limited to 'm4/popt.m4')
-rw-r--r-- | m4/popt.m4 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -38,9 +38,9 @@ AC_CHECK_HEADERS([popt.h], [_ax_popt_h=yes],, [$POPT_CFLAGS]) AS_IF([test "x$POPT_LIBS" = "x"], - [AC_SEARCH_LIBS([poptGetContext], [popt], - [POPT_LIBS=-lpopt - _ax_popt_lib=yes])], + [AC_CHECK_LIB([popt], [poptGetContext], + [POPT_LIBS=-lpopt + _ax_popt_lib=yes])], [_ax_popt_cflags=$CFLAGS CFLAGS="$POPT_CFLAGS $CFLAGS" _ax_popt_ldflags=$LDFLAGS |