configure.ac revision 1d54945d
11d54945dSmrg#  Copyright 2005 Adam Jackson.
21d54945dSmrg#
31d54945dSmrg#  Permission is hereby granted, free of charge, to any person obtaining a
41d54945dSmrg#  copy of this software and associated documentation files (the "Software"),
51d54945dSmrg#  to deal in the Software without restriction, including without limitation
61d54945dSmrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
71d54945dSmrg#  license, and/or sell copies of the Software, and to permit persons to whom
81d54945dSmrg#  the Software is furnished to do so, subject to the following conditions:
91d54945dSmrg#
101d54945dSmrg#  The above copyright notice and this permission notice (including the next
111d54945dSmrg#  paragraph) shall be included in all copies or substantial portions of the
121d54945dSmrg#  Software.
131d54945dSmrg#
141d54945dSmrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
151d54945dSmrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
161d54945dSmrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
171d54945dSmrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
181d54945dSmrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
191d54945dSmrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
201d54945dSmrg#
211d54945dSmrg# Process this file with autoconf to produce a configure script
221d54945dSmrg
231d54945dSmrgAC_PREREQ(2.57)
241d54945dSmrgAC_INIT([xf86-video-s3virge],
251d54945dSmrg        1.9.1,
261d54945dSmrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
271d54945dSmrg        xf86-video-s3virge)
281d54945dSmrg
291d54945dSmrgAC_CONFIG_SRCDIR([Makefile.am])
301d54945dSmrgAM_CONFIG_HEADER([config.h])
311d54945dSmrgAC_CONFIG_AUX_DIR(.)
321d54945dSmrg
331d54945dSmrgAM_INIT_AUTOMAKE([dist-bzip2])
341d54945dSmrg
351d54945dSmrgAM_MAINTAINER_MODE
361d54945dSmrg
371d54945dSmrg# Checks for programs.
381d54945dSmrgAC_DISABLE_STATIC
391d54945dSmrgAC_PROG_LIBTOOL
401d54945dSmrgAC_PROG_CC
411d54945dSmrg
421d54945dSmrgAH_TOP([#include "xorg-server.h"])
431d54945dSmrg
441d54945dSmrgAC_ARG_WITH(xorg-module-dir,
451d54945dSmrg            AC_HELP_STRING([--with-xorg-module-dir=DIR],
461d54945dSmrg                           [Default xorg module directory [[default=$libdir/xorg/modules]]]),
471d54945dSmrg            [moduledir="$withval"],
481d54945dSmrg            [moduledir="$libdir/xorg/modules"])
491d54945dSmrg
501d54945dSmrg# Checks for extensions
511d54945dSmrgXORG_DRIVER_CHECK_EXT(RANDR, randrproto)
521d54945dSmrgXORG_DRIVER_CHECK_EXT(RENDER, renderproto)
531d54945dSmrgXORG_DRIVER_CHECK_EXT(XV, videoproto)
541d54945dSmrgXORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
551d54945dSmrg
561d54945dSmrg# Checks for pkg-config packages
571d54945dSmrgPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES])
581d54945dSmrgsdkdir=$(pkg-config --variable=sdkdir xorg-server)
591d54945dSmrg
601d54945dSmrg# Checks for libraries.
611d54945dSmrg
621d54945dSmrg# Checks for header files.
631d54945dSmrgAC_HEADER_STDC
641d54945dSmrg
651d54945dSmrgAC_SUBST([XORG_CFLAGS])
661d54945dSmrgAC_SUBST([moduledir])
671d54945dSmrg
681d54945dSmrgDRIVER_NAME=s3virge
691d54945dSmrgAC_SUBST([DRIVER_NAME])
701d54945dSmrg
711d54945dSmrgXORG_MANPAGE_SECTIONS
721d54945dSmrgXORG_RELEASE_VERSION
731d54945dSmrg
741d54945dSmrgXORG_CHECK_LINUXDOC
751d54945dSmrg
761d54945dSmrgAC_OUTPUT([
771d54945dSmrg	Makefile
781d54945dSmrg	src/Makefile
791d54945dSmrg	man/Makefile
801d54945dSmrg])
81