configure.ac revision 659607e0
1659607e0Smrg# Copyright 2005 Adam Jackson. 2659607e0Smrg# 3659607e0Smrg# Permission is hereby granted, free of charge, to any person obtaining a 4659607e0Smrg# copy of this software and associated documentation files (the "Software"), 5659607e0Smrg# to deal in the Software without restriction, including without limitation 6659607e0Smrg# on the rights to use, copy, modify, merge, publish, distribute, sub 7659607e0Smrg# license, and/or sell copies of the Software, and to permit persons to whom 8659607e0Smrg# the Software is furnished to do so, subject to the following conditions: 9659607e0Smrg# 10659607e0Smrg# The above copyright notice and this permission notice (including the next 11659607e0Smrg# paragraph) shall be included in all copies or substantial portions of the 12659607e0Smrg# Software. 13659607e0Smrg# 14659607e0Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15659607e0Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16659607e0Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 17659607e0Smrg# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18659607e0Smrg# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19659607e0Smrg# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20659607e0Smrg# 21659607e0Smrg# Process this file with autoconf to produce a configure script 22659607e0Smrg 23659607e0SmrgAC_PREREQ(2.57) 24659607e0SmrgAC_INIT([xf86-input-mouse], 25659607e0Smrg 1.3.0, 26659607e0Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 27659607e0Smrg xf86-input-mouse) 28659607e0Smrg 29659607e0SmrgAC_CONFIG_SRCDIR([Makefile.am]) 30659607e0SmrgAC_CONFIG_AUX_DIR(.) 31659607e0SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 32659607e0Smrg 33659607e0SmrgAM_MAINTAINER_MODE 34659607e0Smrg 35659607e0SmrgDRIVER_NAME=mouse 36659607e0SmrgAC_SUBST([DRIVER_NAME]) 37659607e0Smrg 38659607e0SmrgAM_CONFIG_HEADER([config.h]) 39659607e0Smrg 40659607e0Smrg# Checks for programs. 41659607e0SmrgAC_DISABLE_STATIC 42659607e0SmrgAC_PROG_LIBTOOL 43659607e0SmrgAC_PROG_CC 44659607e0Smrg 45659607e0SmrgAH_TOP([#include "xorg-server.h"]) 46659607e0Smrg 47659607e0Smrg#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers]) 48659607e0Smrg# 49659607e0Smrg#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput], 50659607e0Smrg# [Build XInput support (default: yes)]), 51659607e0Smrg# [XINPUT=$enableval],[XINPUT=yes]) 52659607e0Smrg#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes") 53659607e0Smrg#if test "x$XINPUT" = "xyes" ; then 54659607e0Smrg# AC_DEFINE(XINPUT,1,[Enable XInput support]) 55659607e0Smrg#fi 56659607e0Smrg# 57659607e0Smrg#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb], 58659607e0Smrg# [Build XKB support (default: yes)]), 59659607e0Smrg# [XKB=$enableval],[XKB=yes]) 60659607e0Smrg#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes") 61659607e0Smrg#if test "x$XKB" = "xyes" ; then 62659607e0Smrg# AC_DEFINE(XKB,1,[Enable XKB support]) 63659607e0Smrg#fi 64659607e0Smrg 65659607e0SmrgAC_ARG_WITH(xorg-module-dir, 66659607e0Smrg AC_HELP_STRING([--with-xorg-module-dir=DIR], 67659607e0Smrg [Default xorg module directory [[default=$libdir/xorg/modules]]]), 68659607e0Smrg [moduledir="$withval"], 69659607e0Smrg [moduledir="$libdir/xorg/modules"]) 70659607e0Smrginputdir=${moduledir}/input 71659607e0SmrgAC_SUBST(inputdir) 72659607e0Smrg 73659607e0Smrg# Checks for extensions 74659607e0SmrgXORG_DRIVER_CHECK_EXT(RANDR, randrproto) 75659607e0SmrgXORG_DRIVER_CHECK_EXT(XINPUT, inputproto) 76659607e0Smrg 77659607e0Smrg# Checks for pkg-config packages 78659607e0SmrgPKG_CHECK_MODULES(XORG, [xorg-server >= 1.0.99.901] xproto $REQUIRED_MODULES) 79659607e0Smrgsdkdir=$(pkg-config --variable=sdkdir xorg-server) 80659607e0Smrg 81659607e0SmrgCFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src' 82659607e0SmrgAC_SUBST([CFLAGS]) 83659607e0Smrg 84659607e0Smrg# Checks for libraries. 85659607e0Smrg 86659607e0Smrg# Checks for header files. 87659607e0SmrgAC_HEADER_STDC 88659607e0Smrg 89659607e0SmrgXORG_MANPAGE_SECTIONS 90659607e0SmrgXORG_RELEASE_VERSION 91659607e0Smrg 92659607e0SmrgXORG_CHECK_LINUXDOC 93659607e0Smrg 94659607e0SmrgAC_OUTPUT([Makefile src/Makefile man/Makefile]) 95