Replace XOpenDisplay with XSetWMHints in X11 AC_CHECK_LIB
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 29 Mar 2020 22:49:04 +0000 (18:49 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Sun, 29 Mar 2020 22:49:04 +0000 (18:49 -0400)
configure.ac

index 85b50b0..a5d7f97 100644 (file)
@@ -30,7 +30,7 @@ CFLAGS="${CFLAGS} ${X_CFLAGS}"
 LIBS="${LIBS} ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
 
 dnl Checking for X11 library.
-AC_CHECK_LIB(X11, XOpenDisplay, LIBS="${LIBS} -lX11",
+AC_CHECK_LIB(X11, XSetWMHints, LIBS="${LIBS} -lX11",
              echo "Can't find X11 library" ; exit 1, "${X_LIBS}")
 
 dnl --with-gtk3 option