mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-28 06:42:04 +00:00
autoconfiscate FB_AUX_VGA_PLANES_VGA4, FB_AUX_VGA_PLANES_CFB4 and
FB_AUX_VGA_PLANES_CFB8
This commit is contained in:
parent
ff12a738b5
commit
d6c8b85103
3 changed files with 44 additions and 3 deletions
|
@ -109,5 +109,14 @@
|
||||||
/* Define this if you have fnmatch.h */
|
/* Define this if you have fnmatch.h */
|
||||||
#undef HAVE_FNMATCH_H
|
#undef HAVE_FNMATCH_H
|
||||||
|
|
||||||
|
/* Define this if you have FB_AUX_VGA_PLANES_VGA4 */
|
||||||
|
#undef HAVE_FB_AUX_VGA_PLANES_VGA4
|
||||||
|
|
||||||
|
/* Define this if you have FB_AUX_VGA_PLANES_VGA4 */
|
||||||
|
#undef HAVE_FB_AUX_VGA_PLANES_CFB4
|
||||||
|
|
||||||
|
/* Define this if you have FB_AUX_VGA_PLANES_VGA4 */
|
||||||
|
#undef HAVE_FB_AUX_VGA_PLANES_CFB8
|
||||||
|
|
||||||
@BOTTOM@
|
@BOTTOM@
|
||||||
#endif // __config_h_
|
#endif // __config_h_
|
||||||
|
|
26
configure.in
26
configure.in
|
@ -391,6 +391,32 @@ if test "x$HAVE_FBDEV" != xno; then
|
||||||
AC_CHECK_HEADER(linux/fb.h, HAVE_FBDEV=yes, HAVE_FBDEV=no)
|
AC_CHECK_HEADER(linux/fb.h, HAVE_FBDEV=yes, HAVE_FBDEV=no)
|
||||||
fi
|
fi
|
||||||
AC_SUBST(HAVE_FBDEV)
|
AC_SUBST(HAVE_FBDEV)
|
||||||
|
if test "x$HAVE_FBDEV" = xyes; then
|
||||||
|
AC_MSG_CHECKING(for FB_AUX_VGA_PLANES_VGA4)
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[#include "linux/fb.h"],
|
||||||
|
[int foo = FB_AUX_VGA_PLANES_VGA4;],
|
||||||
|
AC_DEFINE(HAVE_FB_AUX_VGA_PLANES_VGA4)
|
||||||
|
AC_MSG_RESULT(yes),
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
)
|
||||||
|
AC_MSG_CHECKING(for FB_AUX_VGA_PLANES_CFB4)
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[#include "linux/fb.h"],
|
||||||
|
[int foo = FB_AUX_VGA_PLANES_CFB4;],
|
||||||
|
AC_DEFINE(HAVE_FB_AUX_VGA_PLANES_CFB4)
|
||||||
|
AC_MSG_RESULT(yes),
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
)
|
||||||
|
AC_MSG_CHECKING(for FB_AUX_VGA_PLANES_CFB8)
|
||||||
|
AC_TRY_COMPILE(
|
||||||
|
[#include "linux/fb.h"],
|
||||||
|
[int foo = FB_AUX_VGA_PLANES_CFB8;],
|
||||||
|
AC_DEFINE(HAVE_FB_AUX_VGA_PLANES_CFB8)
|
||||||
|
AC_MSG_RESULT(yes),
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
dnl Checks for SVGALib support
|
dnl Checks for SVGALib support
|
||||||
AC_ARG_WITH(svga,
|
AC_ARG_WITH(svga,
|
||||||
|
|
|
@ -153,9 +153,15 @@ static struct textentry {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct textentry VGAModes[] = {
|
static struct textentry VGAModes[] = {
|
||||||
// { FB_AUX_VGA_PLANES_VGA4, "VGA 16 colors in 4 planes" },
|
#ifdef HAVE_FB_AUX_VGA_PLANES_VGA4
|
||||||
// { FB_AUX_VGA_PLANES_CFB4, "VGA 16 colors in 1 plane" },
|
{ FB_AUX_VGA_PLANES_VGA4, "VGA 16 colors in 4 planes" },
|
||||||
// { FB_AUX_VGA_PLANES_CFB8, "VGA 256 colors in 4 planes" },
|
#endif
|
||||||
|
#ifdef HAVE_FB_AUX_VGA_PLANES_CFB4
|
||||||
|
{ FB_AUX_VGA_PLANES_CFB4, "VGA 16 colors in 1 plane" },
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_FB_AUX_VGA_PLANES_CFB8
|
||||||
|
{ FB_AUX_VGA_PLANES_CFB8, "VGA 256 colors in 4 planes" },
|
||||||
|
#endif
|
||||||
/* last entry has name == NULL */
|
/* last entry has name == NULL */
|
||||||
{ 0, NULL}
|
{ 0, NULL}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue