configure.ac revision f7ec340b
1f7ec340bSmacallan# Copyright 2005 Adam Jackson. 2f7ec340bSmacallan# 3f7ec340bSmacallan# Permission is hereby granted, free of charge, to any person obtaining a 4f7ec340bSmacallan# copy of this software and associated documentation files (the "Software"), 5f7ec340bSmacallan# to deal in the Software without restriction, including without limitation 6f7ec340bSmacallan# on the rights to use, copy, modify, merge, publish, distribute, sub 7f7ec340bSmacallan# license, and/or sell copies of the Software, and to permit persons to whom 8f7ec340bSmacallan# the Software is furnished to do so, subject to the following conditions: 9f7ec340bSmacallan# 10f7ec340bSmacallan# The above copyright notice and this permission notice (including the next 11f7ec340bSmacallan# paragraph) shall be included in all copies or substantial portions of the 12f7ec340bSmacallan# Software. 13f7ec340bSmacallan# 14f7ec340bSmacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15f7ec340bSmacallan# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16f7ec340bSmacallan# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 17f7ec340bSmacallan# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18f7ec340bSmacallan# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19f7ec340bSmacallan# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20f7ec340bSmacallan# 21f7ec340bSmacallan# Process this file with autoconf to produce a configure script 22f7ec340bSmacallan 23f7ec340bSmacallanAC_PREREQ(2.57) 24f7ec340bSmacallanAC_INIT([xf86-video-suncg14], 25f7ec340bSmacallan 1.1.0, 26f7ec340bSmacallan [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 27f7ec340bSmacallan xf86-video-suncg14) 28f7ec340bSmacallan 29f7ec340bSmacallanAC_CONFIG_SRCDIR([Makefile.am]) 30f7ec340bSmacallanAM_CONFIG_HEADER([config.h]) 31f7ec340bSmacallanAC_CONFIG_AUX_DIR(.) 32f7ec340bSmacallan 33f7ec340bSmacallanAM_INIT_AUTOMAKE([dist-bzip2]) 34f7ec340bSmacallan 35f7ec340bSmacallanAM_MAINTAINER_MODE 36f7ec340bSmacallan 37f7ec340bSmacallan# Checks for programs. 38f7ec340bSmacallanAC_DISABLE_STATIC 39f7ec340bSmacallanAC_PROG_LIBTOOL 40f7ec340bSmacallanAC_PROG_CC 41f7ec340bSmacallan 42f7ec340bSmacallanAH_TOP([#include "xorg-server.h"]) 43f7ec340bSmacallan 44f7ec340bSmacallanAC_ARG_WITH(xorg-module-dir, 45f7ec340bSmacallan AC_HELP_STRING([--with-xorg-module-dir=DIR], 46f7ec340bSmacallan [Default xorg module directory [[default=$libdir/xorg/modules]]]), 47f7ec340bSmacallan [moduledir="$withval"], 48f7ec340bSmacallan [moduledir="$libdir/xorg/modules"]) 49f7ec340bSmacallan 50f7ec340bSmacallan# Checks for extensions 51f7ec340bSmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 52f7ec340bSmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 53f7ec340bSmacallan 54f7ec340bSmacallan# Checks for pkg-config packages 55f7ec340bSmacallanPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 56f7ec340bSmacallansdkdir=$(pkg-config --variable=sdkdir xorg-server) 57f7ec340bSmacallan 58f7ec340bSmacallan# Checks for libraries. 59f7ec340bSmacallan 60f7ec340bSmacallan# Checks for header files. 61f7ec340bSmacallanAC_HEADER_STDC 62f7ec340bSmacallan 63f7ec340bSmacallanAC_SUBST([XORG_CFLAGS]) 64f7ec340bSmacallanAC_SUBST([moduledir]) 65f7ec340bSmacallan 66f7ec340bSmacallanDRIVER_NAME=suncg14 67f7ec340bSmacallanAC_SUBST([DRIVER_NAME]) 68f7ec340bSmacallan 69f7ec340bSmacallanXORG_MANPAGE_SECTIONS 70f7ec340bSmacallanXORG_RELEASE_VERSION 71f7ec340bSmacallan 72f7ec340bSmacallanAC_OUTPUT([ 73f7ec340bSmacallan Makefile 74f7ec340bSmacallan src/Makefile 75f7ec340bSmacallan man/Makefile 76f7ec340bSmacallan]) 77