configure.ac revision 4a041c5b
14a041c5bSmacallan# Copyright 2005 Adam Jackson. 24a041c5bSmacallan# 34a041c5bSmacallan# Permission is hereby granted, free of charge, to any person obtaining a 44a041c5bSmacallan# copy of this software and associated documentation files (the "Software"), 54a041c5bSmacallan# to deal in the Software without restriction, including without limitation 64a041c5bSmacallan# on the rights to use, copy, modify, merge, publish, distribute, sub 74a041c5bSmacallan# license, and/or sell copies of the Software, and to permit persons to whom 84a041c5bSmacallan# the Software is furnished to do so, subject to the following conditions: 94a041c5bSmacallan# 104a041c5bSmacallan# The above copyright notice and this permission notice (including the next 114a041c5bSmacallan# paragraph) shall be included in all copies or substantial portions of the 124a041c5bSmacallan# Software. 134a041c5bSmacallan# 144a041c5bSmacallan# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 154a041c5bSmacallan# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 164a041c5bSmacallan# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 174a041c5bSmacallan# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 184a041c5bSmacallan# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 194a041c5bSmacallan# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 204a041c5bSmacallan# 214a041c5bSmacallan# Process this file with autoconf to produce a configure script 224a041c5bSmacallan 234a041c5bSmacallanAC_PREREQ(2.57) 244a041c5bSmacallanAC_INIT([xf86-video-sunleo], 254a041c5bSmacallan 1.2.0, 264a041c5bSmacallan [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 274a041c5bSmacallan xf86-video-sunleo) 284a041c5bSmacallan 294a041c5bSmacallanAC_CONFIG_SRCDIR([Makefile.am]) 304a041c5bSmacallanAM_CONFIG_HEADER([config.h]) 314a041c5bSmacallanAC_CONFIG_AUX_DIR(.) 324a041c5bSmacallan 334a041c5bSmacallanAM_INIT_AUTOMAKE([dist-bzip2]) 344a041c5bSmacallan 354a041c5bSmacallanAM_MAINTAINER_MODE 364a041c5bSmacallan 374a041c5bSmacallan# Checks for programs. 384a041c5bSmacallanAC_DISABLE_STATIC 394a041c5bSmacallanAC_PROG_LIBTOOL 404a041c5bSmacallanAC_PROG_CC 414a041c5bSmacallan 424a041c5bSmacallanAH_TOP([#include "xorg-server.h"]) 434a041c5bSmacallan 444a041c5bSmacallanAC_ARG_WITH(xorg-module-dir, 454a041c5bSmacallan AC_HELP_STRING([--with-xorg-module-dir=DIR], 464a041c5bSmacallan [Default xorg module directory [[default=$libdir/xorg/modules]]]), 474a041c5bSmacallan [moduledir="$withval"], 484a041c5bSmacallan [moduledir="$libdir/xorg/modules"]) 494a041c5bSmacallan 504a041c5bSmacallan# Checks for extensions 514a041c5bSmacallanXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 524a041c5bSmacallanXORG_DRIVER_CHECK_EXT(RENDER, renderproto) 534a041c5bSmacallan 544a041c5bSmacallan# Checks for pkg-config packages 554a041c5bSmacallanPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES]) 564a041c5bSmacallansdkdir=$(pkg-config --variable=sdkdir xorg-server) 574a041c5bSmacallan 584a041c5bSmacallan# Checks for libraries. 594a041c5bSmacallan 604a041c5bSmacallan# Checks for header files. 614a041c5bSmacallanAC_HEADER_STDC 624a041c5bSmacallan 634a041c5bSmacallanAC_SUBST([XORG_CFLAGS]) 644a041c5bSmacallanAC_SUBST([moduledir]) 654a041c5bSmacallan 664a041c5bSmacallanDRIVER_NAME=sunleo 674a041c5bSmacallanAC_SUBST([DRIVER_NAME]) 684a041c5bSmacallan 694a041c5bSmacallanXORG_MANPAGE_SECTIONS 704a041c5bSmacallanXORG_RELEASE_VERSION 714a041c5bSmacallan 724a041c5bSmacallanAC_OUTPUT([ 734a041c5bSmacallan Makefile 744a041c5bSmacallan src/Makefile 754a041c5bSmacallan man/Makefile 764a041c5bSmacallan]) 77