171d7fec4Smrg# Copyright 2005 Adam Jackson. 271d7fec4Smrg# 371d7fec4Smrg# Permission is hereby granted, free of charge, to any person obtaining a 471d7fec4Smrg# copy of this software and associated documentation files (the "Software"), 571d7fec4Smrg# to deal in the Software without restriction, including without limitation 671d7fec4Smrg# on the rights to use, copy, modify, merge, publish, distribute, sub 771d7fec4Smrg# license, and/or sell copies of the Software, and to permit persons to whom 871d7fec4Smrg# the Software is furnished to do so, subject to the following conditions: 971d7fec4Smrg# 1071d7fec4Smrg# The above copyright notice and this permission notice (including the next 1171d7fec4Smrg# paragraph) shall be included in all copies or substantial portions of the 1271d7fec4Smrg# Software. 1371d7fec4Smrg# 1471d7fec4Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1571d7fec4Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1671d7fec4Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 1771d7fec4Smrg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 1871d7fec4Smrg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1971d7fec4Smrg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2071d7fec4Smrg# 2171d7fec4Smrg# Process this file with autoconf to produce a configure script 2271d7fec4Smrg 2371d7fec4SmrgAC_PREREQ(2.57) 2471d7fec4SmrgAC_INIT([xf86-video-nsc], 2571d7fec4Smrg 2.8.2, 2671d7fec4Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 2771d7fec4Smrg xf86-video-nsc) 2871d7fec4Smrg 2971d7fec4SmrgAC_CONFIG_SRCDIR([Makefile.am]) 3071d7fec4SmrgAM_CONFIG_HEADER([config.h]) 3171d7fec4SmrgAC_CONFIG_AUX_DIR(.) 3271d7fec4Smrg 3371d7fec4SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 3471d7fec4Smrg 3571d7fec4SmrgAM_MAINTAINER_MODE 3671d7fec4Smrg 3771d7fec4Smrg# Checks for programs. 3871d7fec4SmrgAC_DISABLE_STATIC 3971d7fec4SmrgAC_PROG_LIBTOOL 4071d7fec4SmrgAC_PROG_CC 4171d7fec4SmrgAM_PROG_AS 4271d7fec4Smrg 4371d7fec4SmrgAH_TOP([#include "xorg-server.h"]) 4471d7fec4Smrg 4571d7fec4SmrgAC_ARG_WITH(xorg-module-dir, 4671d7fec4Smrg AC_HELP_STRING([--with-xorg-module-dir=DIR], 4771d7fec4Smrg [Default xorg module directory [[default=$libdir/xorg/modules]]]), 4871d7fec4Smrg [moduledir="$withval"], 4971d7fec4Smrg [moduledir="$libdir/xorg/modules"]) 5071d7fec4Smrg 5171d7fec4Smrg# Checks for extensions 5271d7fec4SmrgXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 5371d7fec4SmrgXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 5471d7fec4SmrgXORG_DRIVER_CHECK_EXT(XV, videoproto) 5571d7fec4SmrgXORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto) 5671d7fec4SmrgXORG_DRIVER_CHECK_EXT(XFreeXDGA, xf86dgaproto) 5771d7fec4Smrg 5871d7fec4Smrg# Checks for pkg-config packages 5971d7fec4SmrgPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 6071d7fec4Smrgsdkdir=$(pkg-config --variable=sdkdir xorg-server) 6171d7fec4Smrg 6271d7fec4Smrg# Checks for libraries. 6371d7fec4Smrg 6471d7fec4Smrg# Checks for header files. 6571d7fec4SmrgAC_HEADER_STDC 6671d7fec4Smrg 6771d7fec4SmrgAC_SUBST([XORG_CFLAGS]) 6871d7fec4SmrgAC_SUBST([moduledir]) 6971d7fec4Smrg 7071d7fec4Smrgis386=false 7171d7fec4Smrg 7271d7fec4Smrgcase $host_cpu in 7371d7fec4Smrg i*86) 7471d7fec4Smrg is386=true 7571d7fec4Smrg ;; 7671d7fec4Smrgesac 7771d7fec4Smrg 7871d7fec4Smrg# Unset is386 if compiling for AMD64/EM64T 7971d7fec4Smrgif test $is386 = true ; then 8071d7fec4Smrg AC_CHECK_DECLS([_LP64, __amd64__, amd64], [is386=false]) 8171d7fec4Smrgfi 8271d7fec4Smrg 8371d7fec4SmrgAM_CONDITIONAL([I386ARCH], [test $is386 = true]) 8471d7fec4Smrg 8571d7fec4SmrgDRIVER_NAME=nsc 8671d7fec4SmrgAC_SUBST([DRIVER_NAME]) 8771d7fec4Smrg 8871d7fec4SmrgXORG_MANPAGE_SECTIONS 8971d7fec4SmrgXORG_RELEASE_VERSION 9071d7fec4Smrg 9171d7fec4SmrgAC_OUTPUT([ 9271d7fec4Smrg Makefile 9371d7fec4Smrg src/Makefile 9471d7fec4Smrg man/Makefile 9571d7fec4Smrg]) 96