* bootstrap tries to detect if you have gmake instead of

make for bsd systems
* cleaned out the header file checks in configure, now add
  them as they're needed
* check for sys/vt.h in src/rw*svgalib.c
This commit is contained in:
Jamie Wilkinson 2002-04-09 01:49:38 +00:00
parent 41a546293a
commit 5dfca94f1c
4 changed files with 67 additions and 39 deletions

View file

@ -4,11 +4,20 @@
# bootstrap the build when checking out from CVS # bootstrap the build when checking out from CVS
# dodgy hack to use gmake if we're on bsd systems
if [ -x /usr/bin/gmake ]; then
MAKE=/usr/bin/gmake
elif [ -x /usr/local/bin/gmake ]; then
MAKE=/usr/local/bin/gmake
else
MAKE=make
fi
if [ "$1" = "clean" ]; then if [ "$1" = "clean" ]; then
# clean up junk # clean up junk
if [ -f Makefile ]; then if [ -f Makefile ]; then
make distclean $MAKE distclean
fi fi
find . -name Makefile.in -print0 | xargs -0 rm -f find . -name Makefile.in -print0 | xargs -0 rm -f
rm -f config.h.in aclocal.m4 install-sh missing mkinstalldirs \ rm -f config.h.in aclocal.m4 install-sh missing mkinstalldirs \

View file

@ -49,7 +49,7 @@ AC_PATH_X
AC_HEADER_DIRENT AC_HEADER_DIRENT
AC_HEADER_STDC AC_HEADER_STDC
AC_HEADER_SYS_WAIT AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h errno.h fcntl.h float.h limits.h mntent.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/file.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h termios.h unistd.h]) AC_CHECK_HEADERS([sys/vt.h])
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST AC_C_CONST

View file

@ -1,31 +1,41 @@
/* /* $Id$
Copyright (C) 1997-2001 Id Software, Inc. *
* Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or * Copyright (c) 2002 The Quakeforge Project.
modify it under the terms of the GNU General Public License *
as published by the Free Software Foundation; either version 2 *
of the License, or (at your option) any later version. * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
This program is distributed in the hope that it will be useful, * as published by the Free Software Foundation; either version 2
but WITHOUT ANY WARRANTY; without even the implied warranty of * of the License, or (at your option) any later version.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* This program is distributed in the hope that it will be useful,
See the GNU General Public License for more details. * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You should have received a copy of the GNU General Public License *
along with this program; if not, write to the Free Software * See the GNU General Public License for more details.
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <termios.h> #include <termios.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/vt.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include <sys/mman.h> #include <sys/mman.h>
#ifdef HAVE_SYS_VT_H
# include <sys/vt.h>
#endif
#include "vga.h" #include "vga.h"
#include "vgakeyboard.h" #include "vgakeyboard.h"
#include "vgamouse.h" #include "vgamouse.h"

View file

@ -1,22 +1,24 @@
/* /* $Id$
Copyright (C) 1997-2001 Id Software, Inc. *
* Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or * Copyright (c) 2002 The Quakeforge Project.
modify it under the terms of the GNU General Public License *
as published by the Free Software Foundation; either version 2 * This program is free software; you can redistribute it and/or
of the License, or (at your option) any later version. * modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
This program is distributed in the hope that it will be useful, * of the License, or (at your option) any later version.
but WITHOUT ANY WARRANTY; without even the implied warranty of *
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
See the GNU General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
You should have received a copy of the GNU General Public License * See the GNU General Public License for more details.
along with this program; if not, write to the Free Software *
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
/* /*
** RW_SVGALBI.C ** RW_SVGALBI.C
** **
@ -32,16 +34,23 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
** SWimp_SwitchFullscreen ** SWimp_SwitchFullscreen
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <termios.h> #include <termios.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/vt.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <signal.h> #include <signal.h>
#include <unistd.h> #include <unistd.h>
#include <sys/mman.h> #include <sys/mman.h>
#ifdef HAVE_SYS_VT_H
# include <sys/vt.h>
#endif
#include "vga.h" #include "vga.h"
#include "vgakeyboard.h" #include "vgakeyboard.h"
#include "vgamouse.h" #include "vgamouse.h"