configure.ac revision ba85709e
11d54945dSmrg# Copyright 2005 Adam Jackson. 21d54945dSmrg# 31d54945dSmrg# Permission is hereby granted, free of charge, to any person obtaining a 41d54945dSmrg# copy of this software and associated documentation files (the "Software"), 51d54945dSmrg# to deal in the Software without restriction, including without limitation 61d54945dSmrg# on the rights to use, copy, modify, merge, publish, distribute, sub 71d54945dSmrg# license, and/or sell copies of the Software, and to permit persons to whom 81d54945dSmrg# the Software is furnished to do so, subject to the following conditions: 91d54945dSmrg# 101d54945dSmrg# The above copyright notice and this permission notice (including the next 111d54945dSmrg# paragraph) shall be included in all copies or substantial portions of the 121d54945dSmrg# Software. 131d54945dSmrg# 141d54945dSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 151d54945dSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 161d54945dSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 171d54945dSmrg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 181d54945dSmrg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 191d54945dSmrg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 201d54945dSmrg# 211d54945dSmrg# Process this file with autoconf to produce a configure script 221d54945dSmrg 231d54945dSmrgAC_PREREQ(2.57) 241d54945dSmrgAC_INIT([xf86-video-s3virge], 25ba85709eSmrg 1.10.2, 261d54945dSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 271d54945dSmrg xf86-video-s3virge) 281d54945dSmrg 291d54945dSmrgAC_CONFIG_SRCDIR([Makefile.am]) 301d54945dSmrgAM_CONFIG_HEADER([config.h]) 311d54945dSmrgAC_CONFIG_AUX_DIR(.) 321d54945dSmrg 331d54945dSmrgAM_INIT_AUTOMAKE([dist-bzip2]) 341d54945dSmrg 351d54945dSmrgAM_MAINTAINER_MODE 361d54945dSmrg 371d54945dSmrg# Checks for programs. 381d54945dSmrgAC_DISABLE_STATIC 391d54945dSmrgAC_PROG_LIBTOOL 401d54945dSmrgAC_PROG_CC 411d54945dSmrg 421d54945dSmrgAH_TOP([#include "xorg-server.h"]) 431d54945dSmrg 441d54945dSmrgAC_ARG_WITH(xorg-module-dir, 451d54945dSmrg AC_HELP_STRING([--with-xorg-module-dir=DIR], 461d54945dSmrg [Default xorg module directory [[default=$libdir/xorg/modules]]]), 471d54945dSmrg [moduledir="$withval"], 481d54945dSmrg [moduledir="$libdir/xorg/modules"]) 491d54945dSmrg 501d54945dSmrg# Checks for extensions 511d54945dSmrgXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 521d54945dSmrgXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 531d54945dSmrgXORG_DRIVER_CHECK_EXT(XV, videoproto) 541d54945dSmrgXORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto) 551d54945dSmrg 561d54945dSmrg# Checks for pkg-config packages 571d54945dSmrgPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 581d54945dSmrgsdkdir=$(pkg-config --variable=sdkdir xorg-server) 591d54945dSmrg 601d54945dSmrg# Checks for libraries. 61ba85709eSmrgSAVE_CPPFLAGS="$CPPFLAGS" 62ba85709eSmrgCPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 63ba85709eSmrgAC_CHECK_DECL(XSERVER_LIBPCIACCESS, 64ba85709eSmrg [XSERVER_LIBPCIACCESS=yes],[XSERVER_LIBPCIACCESS=no], 65ba85709eSmrg [#include "xorg-server.h"]) 66ba85709eSmrgCPPFLAGS="$SAVE_CPPFLAGS" 671d54945dSmrg 681d54945dSmrg# Checks for header files. 691d54945dSmrgAC_HEADER_STDC 701d54945dSmrg 71ba85709eSmrgif test "x$XSERVER_LIBPCIACCESS" = xyes; then 72ba85709eSmrg PKG_CHECK_MODULES([PCIACCESS], [pciaccess >= 0.8.0]) 73ba85709eSmrg XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 74ba85709eSmrgfi 75ba85709eSmrgAM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes) 76ba85709eSmrg 77ba85709eSmrg 781d54945dSmrgAC_SUBST([XORG_CFLAGS]) 791d54945dSmrgAC_SUBST([moduledir]) 801d54945dSmrg 811d54945dSmrgDRIVER_NAME=s3virge 821d54945dSmrgAC_SUBST([DRIVER_NAME]) 831d54945dSmrg 841d54945dSmrgXORG_MANPAGE_SECTIONS 851d54945dSmrgXORG_RELEASE_VERSION 861d54945dSmrg 871d54945dSmrgXORG_CHECK_LINUXDOC 881d54945dSmrg 891d54945dSmrgAC_OUTPUT([ 901d54945dSmrg Makefile 911d54945dSmrg src/Makefile 921d54945dSmrg man/Makefile 931d54945dSmrg]) 94