xserver

xserver with xephyr scale patch
git clone https://git.neptards.moe/u3shit/xserver.git
Log | Files | Refs | README | LICENSE

xorg-server.m4 (1913B)


      1 dnl Copyright 2005 Red Hat, Inc
      2 dnl 
      3 dnl Permission to use, copy, modify, distribute, and sell this software and its
      4 dnl documentation for any purpose is hereby granted without fee, provided that
      5 dnl the above copyright notice appear in all copies and that both that
      6 dnl copyright notice and this permission notice appear in supporting
      7 dnl documentation.
      8 dnl 
      9 dnl The above copyright notice and this permission notice shall be included
     10 dnl in all copies or substantial portions of the Software.
     11 dnl 
     12 dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
     13 dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     14 dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     15 dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
     16 dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     17 dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     18 dnl OTHER DEALINGS IN THE SOFTWARE.
     19 dnl 
     20 dnl Except as contained in this notice, the name of the copyright holders shall
     21 dnl not be used in advertising or otherwise to promote the sale, use or
     22 dnl other dealings in this Software without prior written authorization
     23 dnl from the copyright holders.
     24 dnl 
     25 
     26 # XORG_DRIVER_CHECK_EXT(MACRO, PROTO)
     27 # --------------------------
     28 # Checks for the MACRO define in xorg-server.h (from the sdk).  If it
     29 # is defined, then add the given PROTO to $REQUIRED_MODULES.
     30 
     31 AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
     32 	AC_REQUIRE([PKG_PROG_PKG_CONFIG])
     33 	SAVE_CFLAGS="$CFLAGS"
     34 	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
     35 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
     36 #include "xorg-server.h"
     37 #if !defined $1
     38 #error $1 not defined
     39 #endif
     40 		]])],
     41 		[_EXT_CHECK=yes],
     42 		[_EXT_CHECK=no])
     43 	CFLAGS="$SAVE_CFLAGS"
     44 	AC_MSG_CHECKING([if $1 is defined])
     45 	AC_MSG_RESULT([$_EXT_CHECK])
     46 	if test "$_EXT_CHECK" != no; then
     47 		REQUIRED_MODULES="$REQUIRED_MODULES $2"
     48 	fi
     49 ])