xsel

Program for manipulating the X clipboard
git clone https://git.sinitax.com/kfish/xsel
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 01dea9124f6535674f236296cfcf76637730b878
parent ba8656dc7c7e771c802fc957ce3dd128d4b6e3ae
Author: Zev Weiss <zev@bewilderbeest.net>
Date:   Wed,  3 Sep 2014 02:51:05 -0500

Replace AC_CHECK_LIB with AC_SEARCH_LIBS in configure.ac.

AC_CHECK_LIB wasn't add -lX11 to LIBS properly.

Diffstat:
Mconfigure.ac | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -18,10 +18,7 @@ AC_SUBST(X_LDFLAGS) AC_SUBST(X_LIBS) AC_SUBST(X_EXTRA_LIBS) -AC_CHECK_LIB([X11], [XOpenDisplay], HAVE_X11="yes", HAVE_X11="no") -if test "x$HAVE_X11" = "xno" ; then - AC_MSG_ERROR([libX11 is required]) -fi +AC_SEARCH_LIBS([XOpenDisplay], [X11], [], [AC_MSG_ERROR([libX11 is required])]) # Error out on compile warnings dnl Add some useful warnings if we have gcc.