configure.ac: Set C_X11 based on whether X11 headers exist

This commit is contained in:
Jonathan Campbell
2019-02-16 01:40:42 -08:00
parent 6e5682fec9
commit 81d39ddf60

View File

@@ -877,8 +877,10 @@ if test x$enable_x11 != xno; then
AC_MSG_RESULT(no)
fi
AH_TEMPLATE(C_X11,[define to 1 to enable X11 support])
AC_DEFINE(C_X11,1)
if test x$have_x11_h = xyes ; then
AH_TEMPLATE(C_X11,[define to 1 to enable X11 support])
AC_DEFINE(C_X11,1)
fi
fi
dnl FEATURE: Whether to use Fluidsynth