153e90a53Smrg#  Copyright 2005 Adam Jackson.
253e90a53Smrg#
353e90a53Smrg#  Permission is hereby granted, free of charge, to any person obtaining a
453e90a53Smrg#  copy of this software and associated documentation files (the "Software"),
553e90a53Smrg#  to deal in the Software without restriction, including without limitation
653e90a53Smrg#  on the rights to use, copy, modify, merge, publish, distribute, sub
753e90a53Smrg#  license, and/or sell copies of the Software, and to permit persons to whom
853e90a53Smrg#  the Software is furnished to do so, subject to the following conditions:
953e90a53Smrg#
1053e90a53Smrg#  The above copyright notice and this permission notice (including the next
1153e90a53Smrg#  paragraph) shall be included in all copies or substantial portions of the
1253e90a53Smrg#  Software.
1353e90a53Smrg#
1453e90a53Smrg#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1553e90a53Smrg#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1653e90a53Smrg#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
1753e90a53Smrg#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1853e90a53Smrg#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1953e90a53Smrg#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2053e90a53Smrg#
2153e90a53Smrg# Process this file with autoconf to produce a configure script
2253e90a53Smrg
2353e90a53SmrgAC_PREREQ(2.57)
2453e90a53SmrgAC_INIT([xf86-video-imstt],
2553e90a53Smrg        1.1.0,
2653e90a53Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
2753e90a53Smrg        xf86-video-imstt)
2853e90a53Smrg
2953e90a53SmrgAC_CONFIG_SRCDIR([Makefile.am])
3053e90a53SmrgAM_CONFIG_HEADER([config.h])
3153e90a53SmrgAC_CONFIG_AUX_DIR(.)
3253e90a53Smrg
3353e90a53SmrgAM_INIT_AUTOMAKE([dist-bzip2])
3453e90a53Smrg
3553e90a53SmrgAM_MAINTAINER_MODE
3653e90a53Smrg
3753e90a53Smrg# Checks for programs.
3853e90a53SmrgAC_DISABLE_STATIC
3953e90a53SmrgAC_PROG_LIBTOOL
4053e90a53SmrgAC_PROG_CC
4153e90a53Smrg
4253e90a53SmrgAH_TOP([#include "xorg-server.h"])
4353e90a53Smrg
4453e90a53SmrgAC_ARG_WITH(xorg-module-dir,
4553e90a53Smrg            AC_HELP_STRING([--with-xorg-module-dir=DIR],
4653e90a53Smrg                           [Default xorg module directory [[default=$libdir/xorg/modules]]]),
4753e90a53Smrg            [moduledir="$withval"],
4853e90a53Smrg            [moduledir="$libdir/xorg/modules"])
4953e90a53Smrg
5053e90a53Smrg# Checks for extensions
5153e90a53SmrgXORG_DRIVER_CHECK_EXT(RANDR, randrproto)
5253e90a53SmrgXORG_DRIVER_CHECK_EXT(RENDER, renderproto)
5353e90a53Smrg
5453e90a53Smrg# Checks for pkg-config packages
5553e90a53SmrgPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES])
5653e90a53Smrgsdkdir=$(pkg-config --variable=sdkdir xorg-server)
5753e90a53Smrg
5853e90a53Smrg# Checks for libraries.
5953e90a53Smrg
6053e90a53Smrg# Checks for header files.
6153e90a53SmrgAC_HEADER_STDC
6253e90a53Smrg
6353e90a53SmrgAC_SUBST([XORG_CFLAGS])
6453e90a53SmrgAC_SUBST([moduledir])
6553e90a53Smrg
6653e90a53SmrgDRIVER_NAME=imstt
6753e90a53SmrgAC_SUBST([DRIVER_NAME])
6853e90a53Smrg
6953e90a53SmrgXORG_MANPAGE_SECTIONS
7053e90a53SmrgXORG_RELEASE_VERSION
7153e90a53Smrg
7253e90a53SmrgAC_OUTPUT([
7353e90a53Smrg	Makefile
7453e90a53Smrg	src/Makefile
7553e90a53Smrg	man/Makefile
7653e90a53Smrg])
77