scripts/configure: enable building without x

This commit is contained in:
Johan Euphrosine 2022-03-17 16:23:56 +09:00 committed by Tim Edwards
parent 3b44dacab5
commit 6947b8c6d7
2 changed files with 7 additions and 5 deletions

8
scripts/configure vendored
View File

@ -6058,10 +6058,10 @@ fi
fi
if test "x${X_DISPLAY_MISSING}" = "x"; then
if test "x$no_x" = "x"; then
usingX11=1
else
as_fn_error $? "Unable to find X11---compiling without graphics" "$LINENO" 5
echo Unable to find X11---compiling without graphics.
echo Cannot find X11---will attempt to compile anyway.
echo Graphics options will be NULL only!
if test $usingOGL ; then
@ -7282,7 +7282,9 @@ if test "x$enable_threads" = "xyes" ; then
$as_echo "#define HAVE_PTHREADS 1" >>confdefs.h
gr_libs="$gr_libs -lpthread"
gr_srcs="$gr_srcs \${X11THREAD_SRCS}"
if test $usingX11 ; then
gr_srcs="$gr_srcs \${X11THREAD_SRCS}"
fi
gr_hsrcs=""
gr_hprog=""
fi

View File

@ -315,10 +315,10 @@ dnl Check for X enabled/disabled
AC_PATH_XTRA
if test "x${X_DISPLAY_MISSING}" = "x"; then
if test "x$no_x" = "x"; then
usingX11=1
else
AC_MSG_ERROR([Unable to find X11---compiling without graphics])
echo Unable to find X11---compiling without graphics.
echo Cannot find X11---will attempt to compile anyway.
echo Graphics options will be NULL only!
if test $usingOGL ; then