update autoconf

This commit is contained in:
NishiOwO 2025-04-06 18:48:43 +09:00
parent ee6668cc61
commit 6de2f799ea
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343
3 changed files with 14 additions and 33 deletions

35
configure generated vendored
View File

@ -750,9 +750,7 @@ ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_silent_rules
with_glx
with_wgl
with_glfw
with_backend
enable_dependency_tracking
'
ac_precious_vars='build_alias
@ -1407,9 +1405,8 @@ Optional Features:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-glx Build with GLX backend
--with-wgl Build with WGL backend
--with-glfw Build with GLFW backend
--with-backend=glx|wgl|glfw
Select backend
Some influential environment variables:
CC C compiler command
@ -3059,24 +3056,10 @@ fi
# Check whether --with-glx was given.
if test ${with_glx+y}
# Check whether --with-backend was given.
if test ${with_backend+y}
then :
withval=$with_glx;
fi
# Check whether --with-wgl was given.
if test ${with_wgl+y}
then :
withval=$with_wgl;
fi
# Check whether --with-glfw was given.
if test ${with_glfw+y}
then :
withval=$with_glfw;
withval=$with_backend;
fi
@ -5738,7 +5721,7 @@ fi
NB_DRIVER=OPENGL
NB_BACKEND=
if test "x$with_glx" = "xyes"
if test "x$with_backend" = "xglx"
then :
@ -6018,7 +6001,7 @@ fi
fi
if test "x$with_wgl" = "xyes"
if test "x$with_backend" = "xwgl"
then :
:
@ -6029,7 +6012,7 @@ then :
fi
if test "x$with_glfw" = "xyes"
if test "x$with_backend" = "xglfw"
then :

View File

@ -1,9 +1,7 @@
AC_INIT([NishBox], [1.0.0])
AM_INIT_AUTOMAKE([subdir-objects foreign])
AC_ARG_WITH([glx], AS_HELP_STRING([--with-glx], [Build with GLX backend]))
AC_ARG_WITH([wgl], AS_HELP_STRING([--with-wgl], [Build with WGL backend]))
AC_ARG_WITH([glfw], AS_HELP_STRING([--with-glfw], [Build with GLFW backend]))
AC_ARG_WITH([backend], AS_HELP_STRING([--with-backend=glx|wgl|glfw], [Select backend]))
AM_PROG_AR
AC_PROG_RANLIB
@ -14,14 +12,14 @@ PKG_PROG_PKG_CONFIG
NB_DRIVER=OPENGL
NB_BACKEND=
AS_IF([test "x$with_glx" = "xyes"], [
AS_IF([test "x$with_backend" = "xglx"], [
PKG_CHECK_MODULES([GL_MORE], [x11])
PKG_CHECK_MODULES([GL], [gl])
PKG_CHECK_MODULES([GLU], [glu])
NB_BACKEND=GLX
])
AS_IF([test "x$with_wgl" = "xyes"], [
AS_IF([test "x$with_backend" = "xwgl"], [
:
GL_MORE_LIBS="-lgdi32"
GL_LIBS="-lopengl32"
@ -29,7 +27,7 @@ AS_IF([test "x$with_wgl" = "xyes"], [
NB_BACKEND=WGL
])
AS_IF([test "x$with_glfw" = "xyes"], [
AS_IF([test "x$with_backend" = "xglfw"], [
PKG_CHECK_MODULES([GL], [glfw3])
PKG_CHECK_MODULES([GLU], [glu])
NB_BACKEND=GLFW

View File

@ -34,5 +34,5 @@ cd ..
cd ..
./configure --host=${ARCH}-w64-mingw32 --with-wgl
./configure --host=${ARCH}-w64-mingw32 --with-backend=wgl
${MAKE}