configure.ac revision 65c1f7cf
1dnl Copyright 2005 Red Hat, Inc. 2dnl 3dnl Permission to use, copy, modify, distribute, and sell this software and its 4dnl documentation for any purpose is hereby granted without fee, provided that 5dnl the above copyright notice appear in all copies and that both that 6dnl copyright notice and this permission notice appear in supporting 7dnl documentation, and that the name of Red Hat not be used in 8dnl advertising or publicity pertaining to distribution of the software without 9dnl specific, written prior permission. Red Hat makes no 10dnl representations about the suitability of this software for any purpose. It 11dnl is provided "as is" without express or implied warranty. 12dnl 13dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 14dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 15dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 16dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 17dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 18dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 19dnl PERFORMANCE OF THIS SOFTWARE. 20dnl 21dnl Process this file with autoconf to create configure. 22 23# Initialize Autoconf 24AC_PREREQ([2.60]) 25AC_INIT([x11perf], 26 [1.6.1], 27 [https://gitlab.freedesktop.org/xorg/test/x11perf/issues], 28 [x11perf]) 29AC_CONFIG_SRCDIR([Makefile.am]) 30AC_CONFIG_HEADERS([config.h]) 31 32# Initialize Automake 33AM_INIT_AUTOMAKE([foreign dist-bzip2]) 34 35# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 36m4_ifndef([XORG_MACROS_VERSION], 37 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 38XORG_MACROS_VERSION(1.8) 39XORG_DEFAULT_OPTIONS 40 41# Define the installation directory for the x11 performance compare scripts 42AC_SUBST([x11perfcompdir], [$libdir/X11/x11perfcomp]) 43 44# Checks for programs run by the scripts we install 45AC_PATH_PROG(MKTEMP, mktemp) 46 47# Checks for pkg-config packages 48PKG_CHECK_MODULES(X11PERF, [x11 xmuu xproto >= 7.0.17]) 49 50# Check for Xrender library 51PKG_CHECK_MODULES(XRENDER, xrender, [xrender_found=yes], [xrender_found=no]) 52case "$xrender_found" in 53yes) 54 AC_DEFINE(XRENDER,1,[Xrender library available]) 55 ;; 56esac 57 58# Check for Xft library 59PKG_CHECK_MODULES(XFT, xft, [xft_found=yes], [xft_found=no]) 60case "$xft_found" in 61yes) 62 AC_DEFINE(XFT,1,[Xft library available]) 63 ;; 64esac 65 66# Check for MIT-SHM extension 67PKG_CHECK_MODULES(XEXT, xext, [xext_found=yes], [xext_found=no]) 68case "$xext_found" in 69yes) 70 save_LIBS="$LIBS" 71 LIBS="$XEXT_LIBS $LIBS" 72 AC_CHECK_FUNCS([XShmQueryExtension], 73 AC_DEFINE(MITSHM, 1, [MIT-SHM extension available])) 74 LIBS="$save_LIBS" 75 ;; 76esac 77 78AC_CONFIG_FILES([ 79 Makefile 80 man/Makefile]) 81AC_OUTPUT 82