⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x11_ext.m4

📁 xgrafix 是PTSG模拟程序中的图形截面库 改版本是最新版本
💻 M4
字号:
dnl ######################################################################dnldnl This file has some extra checks related to X11.dnl dnl ######################################################################dnl ######################################################################dnldnl HOW TO USE THESE MACROSdnl -----------------------dnldnl You need to put this line into your Makefile.am:dnl ACLOCAL_AMFLAGS = -I configdnldnl Run "autoreconf -if" to make sure this file is being processed.dnldnl Then in your configure.in you can use this macro just this way:dnldnl X11_CHECKdnldnl ######################################################################dnl ######################################################################dnldnl This macro performs a basic X11 checkdnl dnl ######################################################################AC_DEFUN([X11_CHECK],[dnldnl The X11 binary pathdnlAC_ARG_WITH(x-bin,            [  --with-x-bin=<location of X11 executables>],            [X11_BINDIR=$withval])AC_ARG_WITH(x-directory,            [  --with-x-directory=DIR	In this directory, the bin, include and				lib subdirectories should exist.  The location				of X executables becomes DIR/bin,				of X includes becomes DIR/include,				of X libraries becomes DIR/lib.				Options	--x-includes, --x-libraries				and --with-x-bin can override these				locations.],            [X11_DIR=$withval])if test "${X11_DIR}" ; then	if test -z "${X11_BINDIR}" ; then		X11_BINDIR="${X11_DIR}/bin"	fi	if test "x$x_includes" = xNONE ; then		x_includes="${X11_DIR}/include"	fi	if test "x$x_libraries" = xNONE ; then		x_libraries="${X11_DIR}/lib"	fifiAC_PATH_XAC_PATH_XTRA# Find X11_BINDIR if none was providedif test -z "$X11_BINDIR" ; then	X11_BINDIR_PATH=/usr/X11R6/bin:/usr/X11/bin:/usr/bin:/usr/local/bin:/loc/bin:/usr/openwin/bin:$PATH	if test "${x_includes}" ; then		X11_BINDIR_PATH=`dirname ${x_includes}`/bin:${X11_BINDIR_PATH}	fi	if test "${x_libraries}" ; then		X11_BINDIR_PATH=`dirname ${x_libraries}`/bin:${X11_BINDIR_PATH}	fi	AC_PATH_PROGS(ABS_X11BIN_PATH, xset, , $X11_BINDIR_PATH)	if test -z "$ABS_X11BIN_PATH"; then		AC_MSG_WARN(X11 executables not found in $X11_BIN_PATH.  You can use --with-x-bin to set the location of X11 executables.)	fi	if test "${ABS_X11BIN_PATH}" ; then		X11_BINDIR=`dirname ${ABS_X11BIN_PATH}`	fifi])dnl ######################################################################dnldnl This macro checks for X11 extensionsdnl dnl ######################################################################AC_DEFUN([X11_EXTENSIONS_CHECK],[	AC_REQUIRE([X11_CHECK])	X11_EXTENSIONS=true	saved_CFLAGS="${CFLAGS}"	saved_LDFLAGS="${LDFLAGS}"	saved_LIBS="${LIBS}"	if test "${x_includes}"; then		CFLAGS="${CFLAGS} -I${x_includes}"	fi	AC_CHECK_HEADERS(X11/extensions/Xcomposite.h,,X11_EXTENSIONS=false,	[[#include<X11/Xlib.h>	]])	AC_CHECK_HEADERS(X11/extensions/Xdamage.h,,X11_EXTENSIONS=false,	[[#include<X11/Xlib.h>	]])	AC_CHECK_HEADERS(X11/extensions/Xrender.h,,X11_EXTENSIONS=false,	[[#include<X11/Xlib.h>	]])	if test "${x_libraries}"; then		LDFLAGS="${LDFLAGS} -L${x_libraries} -lX11"	fi	AC_CHECK_LIB(Xcomposite,XCompositeQueryExtension,,X11_EXTENSIONS=false)	AC_CHECK_LIB(Xdamage,XDamageQueryExtension,,X11_EXTENSIONS=false)	AC_CHECK_LIB(Xrender,XRenderQueryExtension,,X11_EXTENSIONS=false)	AC_CHECK_LIB(Xfixes,XFixesQueryExtension,,X11_EXTENSIONS=false)	if test "${X11_EXTENSIONS}" = "false"; then		AC_MSG_WARN([X11 extensions not found.])	fi	CFLAGS="${saved_CFLAGS}"	LDFLAGS="${saved_LDFLAGS}"	LIBS="${saved_LIBS}"])dnl ######################################################################dnldnl This macro checks for Xvfbdnl dnl ######################################################################AC_DEFUN([XVFB_CHECK],[	AC_ARG_VAR(XVFB, [executable of Xvfb])	AC_MSG_CHECKING([for executable of Xvfb])	AC_ARG_WITH(Xvfb,            [  --with-Xvfb=<executable of Xvfb>],            [XVFB=$withval])	if test -z "${XVFB}" ; then		AC_PATH_PROG(XVFB, Xvfb, "", ${X11_BINDIR}:${PATH})	fi	if test -z "$XVFB" ; then		AC_MSG_WARN([No Xvfb found.  Use the --with-Xvfb option.])	else		AC_MSG_RESULT([${XVFB}])	fi])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -