Skip to content

Commit

Permalink
Remove legacy X11 package detection
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww authored and raveit65 committed Dec 5, 2018
1 parent 8fe7f0c commit c50f7b3
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -169,26 +169,7 @@ gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE

dnl X development libraries check

PKG_CHECK_MODULES(X, x11 xau, :, [
# pkg-config modules not found (only present since X11R7 aka Xorg); use
# old-style detection
AC_PATH_XTRA()
# X not found
if test x$no_x = xyes ; then
AC_MSG_ERROR([X development libraries not found])
fi
gp_save_cflags="$CFLAGS"
gp_save_libs="$LIBS"
CFLAGS="$X_CFLAGS"
LIBS="$X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS"
AC_CHECK_LIB(X11, XFree,, AC_MSG_ERROR([libX11 not found]))
AC_CHECK_LIB(Xau, XauFileName,, AC_MSG_ERROR([libXau not found]))
CFLAGS="$gp_save_cflags"
LIBS="$gp_save_libs"
X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXau $X_EXTRA_LIBS"
])
PKG_CHECK_MODULES(X, x11 xau, :, AC_MSG_ERROR([X development libraries not found]))

AC_SUBST(X_LIBS)

Expand Down

0 comments on commit c50f7b3

Please sign in to comment.