configure.ac revision dc99b369
15eefee25Smacallan# Copyright 2005 Adam Jackson. 25eefee25Smacallan# 35eefee25Smacallan# Permission is hereby granted, free of charge, to any person obtaining a 45eefee25Smacallan# copy of this software and associated documentation files (the "Software"), 55eefee25Smacallan# to deal in the Software without restriction, including without limitation 65eefee25Smacallan# on the rights to use, copy, modify, merge, publish, distribute, sub 75eefee25Smacallan# license, and/or sell copies of the Software, and to permit persons to whom 85eefee25Smacallan# the Software is furnished to do so, subject to the following conditions: 95eefee25Smacallan# 105eefee25Smacallan# The above copyright notice and this permission notice (including the next 115eefee25Smacallan# paragraph) shall be included in all copies or substantial portions of the 125eefee25Smacallan# Software. 135eefee25Smacallan# 145eefee25Smacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 155eefee25Smacallan# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 165eefee25Smacallan# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 175eefee25Smacallan# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 185eefee25Smacallan# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 195eefee25Smacallan# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 205eefee25Smacallan# 215eefee25Smacallan# Process this file with autoconf to produce a configure script 225eefee25Smacallan 23dc99b369Smrg# Initialize Autoconf 24dc99b369SmrgAC_PREREQ([2.60]) 255eefee25SmacallanAC_INIT([xf86-video-suncg6], 26dc99b369Smrg [1.1.2], 275eefee25Smacallan [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 28dc99b369Smrg [xf86-video-suncg6]) 295eefee25SmacallanAC_CONFIG_SRCDIR([Makefile.am]) 30dc99b369SmrgAC_CONFIG_HEADERS([config.h]) 315eefee25SmacallanAC_CONFIG_AUX_DIR(.) 325eefee25Smacallan 33dc99b369Smrg# Initialize Automake 34dc99b369SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 355eefee25SmacallanAM_MAINTAINER_MODE 365eefee25Smacallan 37dc99b369Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 38dc99b369Smrgm4_ifndef([XORG_MACROS_VERSION], 39dc99b369Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 40dc99b369SmrgXORG_MACROS_VERSION(1.8) 41dc99b369SmrgXORG_DEFAULT_OPTIONS 42dc99b369Smrg 43dc99b369Smrg# Initialize libtool 445eefee25SmacallanAC_DISABLE_STATIC 455eefee25SmacallanAC_PROG_LIBTOOL 465eefee25Smacallan 475eefee25SmacallanAH_TOP([#include "xorg-server.h"]) 485eefee25Smacallan 49dc99b369Smrg# Define a configure option for an alternate module directory 505eefee25SmacallanAC_ARG_WITH(xorg-module-dir, 51dc99b369Smrg AS_HELP_STRING([--with-xorg-module-dir=DIR], 525eefee25Smacallan [Default xorg module directory [[default=$libdir/xorg/modules]]]), 535eefee25Smacallan [moduledir="$withval"], 545eefee25Smacallan [moduledir="$libdir/xorg/modules"]) 555eefee25Smacallan 56dc99b369Smrg# Store the list of server defined optional extensions in REQUIRED_MODULES 575eefee25SmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 585eefee25SmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 595eefee25Smacallan 60dc99b369Smrg# Obtain compiler/linker options for the driver dependencies 615eefee25SmacallanPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 625eefee25Smacallan 635eefee25Smacallan# Checks for libraries. 645eefee25Smacallan 655eefee25SmacallanAC_SUBST([moduledir]) 665eefee25Smacallan 675eefee25SmacallanDRIVER_NAME=suncg6 685eefee25SmacallanAC_SUBST([DRIVER_NAME]) 695eefee25Smacallan 70dc99b369SmrgAC_CONFIG_FILES([ 71dc99b369Smrg Makefile 72dc99b369Smrg src/Makefile 73dc99b369Smrg man/Makefile 745eefee25Smacallan]) 75dc99b369SmrgAC_OUTPUT 76