Re: [AD] disable linux console port by default? |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2005-08-04, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> On Wednesday 03 August 2005 14:29, Peter Wang wrote:
> > A recent message on [AL] reminded me of an idea. We have gotten quite a
> > few reports from people over the years who've built Allegro without X11
> > support by accident due to missing X development libraries. I wonder if
> > it's time for us to just disable the linux console port by default now.
>
> I'd prefer a big fat warning if you're building without it, but I assume
> that's not cutting it even for your average Linux user these days, right?
Big fat warning it is. I don't really know autoconf so it's probably
the wrong way to do it. I didn't change the default.
> > There aren't really any good graphics backends left with drivers for
> > modern cards, limiting the usefulness of the port.
>
> That's a good point, and one that I've been wondering about quite a bit.
> VBE/AF is dead. What's the status of SVGALib? Is it dead or alife?
Just looking the website, it appears more or less dead.
Peter
Index: configure.in
===================================================================
RCS file: /cvsroot/alleg/allegro/configure.in,v
retrieving revision 1.92
diff -u -r1.92 configure.in
--- configure.in 24 Jul 2005 04:46:02 -0000 1.92
+++ configure.in 5 Aug 2005 07:32:07 -0000
@@ -484,6 +484,13 @@
test "X$enableval" != "Xno" && allegro_enable_linux=yes,
allegro_enable_linux=yes)
+_linux_console="Linux console support:"
+if test "X$allegro_enable_linux" != "Xyes"; then
+ _linux_console="$_linux_console disabled"
+else
+ _linux_console="$_linux_console enabled"
+fi
+
dnl Enable Linux console VGA driver
AC_ARG_ENABLE(vga,
[ --enable-vga[=x] enable VGA graphics driver [default=yes]],
@@ -800,8 +808,30 @@
Compiled programs: $_programs
$_warnmode
$_x11
+ $_linux_console
+
+EOF
+
+dnl Warn if neither X11 nor Linux console support is going to be built,
+dnl or just if X11 support is not going to be built.
+if test "X$allegro_support_xwindows" != "Xyes"; then
+ if test "X$allegro_enable_linux" != "Xyes"; then
+ cat >> makefile.info << EOF
+ Warning: the library will not be built with either X11 or Linux console
+ support. This configuration is useless for most purposes.
EOF
+ else
+ cat >> makefile.info << EOF
+ Warning: the library will not be built with X11 support.
+ If you were expecting X11 support then you may need to install
+ the appropriate development packages from your distribution.
+ Otherwise, ignore this warning (it's just that a lot of new
+ users trip up on this).
+
+EOF
+ fi
+fi
dnl Warn if passed --enable-dbg-with-fortify
if test -n "$allegro_debug_with_fortify"; then