configure.ac revision 301ea0f4
1301ea0f4Smrg# Copyright 2005 Adam Jackson. 2301ea0f4Smrg# 3301ea0f4Smrg# Permission is hereby granted, free of charge, to any person obtaining a 4301ea0f4Smrg# copy of this software and associated documentation files (the "Software"), 5301ea0f4Smrg# to deal in the Software without restriction, including without limitation 6301ea0f4Smrg# on the rights to use, copy, modify, merge, publish, distribute, sub 7301ea0f4Smrg# license, and/or sell copies of the Software, and to permit persons to whom 8301ea0f4Smrg# the Software is furnished to do so, subject to the following conditions: 9301ea0f4Smrg# 10301ea0f4Smrg# The above copyright notice and this permission notice (including the next 11301ea0f4Smrg# paragraph) shall be included in all copies or substantial portions of the 12301ea0f4Smrg# Software. 13301ea0f4Smrg# 14301ea0f4Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15301ea0f4Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16301ea0f4Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 17301ea0f4Smrg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18301ea0f4Smrg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19301ea0f4Smrg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20301ea0f4Smrg# 21301ea0f4Smrg# Process this file with autoconf to produce a configure script 22301ea0f4Smrg 23301ea0f4SmrgAC_PREREQ(2.57) 24301ea0f4SmrgAC_INIT([xf86-video-i740], 25301ea0f4Smrg 1.1.0, 26301ea0f4Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 27301ea0f4Smrg xf86-video-i740) 28301ea0f4Smrg 29301ea0f4SmrgAC_CONFIG_SRCDIR([Makefile.am]) 30301ea0f4SmrgAM_CONFIG_HEADER([config.h]) 31301ea0f4SmrgAC_CONFIG_AUX_DIR(.) 32301ea0f4Smrg 33301ea0f4SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 34301ea0f4Smrg 35301ea0f4SmrgAM_MAINTAINER_MODE 36301ea0f4Smrg 37301ea0f4Smrg# Checks for programs. 38301ea0f4SmrgAC_DISABLE_STATIC 39301ea0f4SmrgAC_PROG_LIBTOOL 40301ea0f4SmrgAC_PROG_CC 41301ea0f4Smrg 42301ea0f4SmrgAH_TOP([#include "xorg-server.h"]) 43301ea0f4Smrg 44301ea0f4SmrgAC_ARG_WITH(xorg-module-dir, 45301ea0f4Smrg AC_HELP_STRING([--with-xorg-module-dir=DIR], 46301ea0f4Smrg [Default xorg module directory [[default=$libdir/xorg/modules]]]), 47301ea0f4Smrg [moduledir="$withval"], 48301ea0f4Smrg [moduledir="$libdir/xorg/modules"]) 49301ea0f4Smrg 50301ea0f4Smrg# Checks for extensions 51301ea0f4SmrgXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 52301ea0f4SmrgXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 53301ea0f4SmrgXORG_DRIVER_CHECK_EXT(XV, videoproto) 54301ea0f4SmrgXORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto) 55301ea0f4Smrg 56301ea0f4Smrg# Checks for pkg-config packages 57301ea0f4SmrgPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 58301ea0f4Smrgsdkdir=$(pkg-config --variable=sdkdir xorg-server) 59301ea0f4Smrg 60301ea0f4Smrg# Checks for libraries. 61301ea0f4Smrg 62301ea0f4Smrg# Checks for header files. 63301ea0f4SmrgAC_HEADER_STDC 64301ea0f4Smrg 65301ea0f4SmrgAC_SUBST([XORG_CFLAGS]) 66301ea0f4SmrgAC_SUBST([moduledir]) 67301ea0f4Smrg 68301ea0f4SmrgDRIVER_NAME=i740 69301ea0f4SmrgAC_SUBST([DRIVER_NAME]) 70301ea0f4Smrg 71301ea0f4SmrgXORG_MANPAGE_SECTIONS 72301ea0f4SmrgXORG_RELEASE_VERSION 73301ea0f4Smrg 74301ea0f4SmrgXORG_CHECK_LINUXDOC 75301ea0f4Smrg 76301ea0f4SmrgAC_OUTPUT([ 77301ea0f4Smrg Makefile 78301ea0f4Smrg src/Makefile 79301ea0f4Smrg man/Makefile 80301ea0f4Smrg]) 81