Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 364033
Collapse All | Expand All

(-)a/Makefile.am (+1 lines)
Line 0 Link Here
1
SUBDIRS = src
(-)a/configure.ac (+57 lines)
Line 0 Link Here
1
#                                               -*- Autoconf -*-
2
# Process this file with autoconf to produce a configure script.
3
4
AC_PREREQ([2.60])
5
AC_INIT([xf86-input-mtrack], [1.0_rc2], [BUG-REPORT-ADDRESS])
6
AC_CONFIG_SRCDIR([driver/mtrack.c])
7
AC_CONFIG_HEADERS([config.h])
8
9
AM_INIT_AUTOMAKE([foreign])
10
AM_MAINTAINER_MODE
11
12
# Checks for programs.
13
AC_DISABLE_STATIC
14
AC_PROG_LIBTOOL
15
16
# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
17
m4_ifndef([XORG_MACROS_VERSION],
18
          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
19
XORG_MACROS_VERSION([1.8])
20
XORG_DEFAULT_OPTIONS
21
22
# Obtain compiler/linker options from server and required extensions
23
PKG_CHECK_MODULES(XORG, xorg-server xproto inputproto)
24
25
# Define a configure option for an alternate input module directory
26
AC_ARG_WITH(xorg-module-dir,
27
            AC_HELP_STRING([--with-xorg-module-dir=DIR],
28
                           [Default xorg module directory [[default=$libdir/xorg/modules]]]),
29
            [moduledir="$withval"],
30
            [moduledir="$libdir/xorg/modules"])
31
inputdir=${moduledir}/input
32
AC_SUBST(inputdir)
33
34
# Checks for libraries.
35
AC_CHECK_LIB([m], [sin])
36
AC_CHECK_LIB([mtdev], [mtdev_open])
37
38
# Checks for header files.
39
AC_CHECK_HEADERS([fcntl.h stdint.h])
40
41
# Checks for typedefs, structures, and compiler characteristics.
42
AC_C_INLINE
43
44
# Checks for library functions.
45
AC_CHECK_FUNCS([memset])
46
47
DRIVER_NAME=mtrack
48
AC_SUBST([DRIVER_NAME])
49
50
AC_ARG_ENABLE(debug, "Debug gesture")
51
AC_ARG_ENABLE(debug,
52
              AS_HELP_STRING([--enable-debug],
53
                             [Enable debugging (default: disabled)]),
54
              [AC_DEFINE(DEBUG_GESTURE, 1, Enable gesture degbug)])
55
56
AC_CONFIG_FILES([Makefile src/Makefile])
57
AC_OUTPUT
(-)a/src/Makefile.am (+16 lines)
Line 0 Link Here
1
AM_CFLAGS = $(XORG_CFLAGS) $(CWARNFLAGS)
2
AM_CPPFLAGS=-I$(top_srcdir)/include/
3
4
@DRIVER_NAME@_drv_la_LTLIBRARIES = @DRIVER_NAME@_drv.la
5
@DRIVER_NAME@_drv_la_LDFLAGS = -module -avoid-version
6
@DRIVER_NAME@_drv_ladir = @inputdir@
7
8
@DRIVER_NAME@_drv_la_SOURCES = \
9
	$(top_srcdir)/src/capabilities.c	\
10
	$(top_srcdir)/src/gestures.c		\
11
	$(top_srcdir)/src/hwstate.c		\
12
	$(top_srcdir)/src/mconfig.c		\
13
	$(top_srcdir)/src/mtouch.c		\
14
	$(top_srcdir)/src/mtstate.c		\
15
	$(top_srcdir)/src/trig.c		\
16
	$(top_srcdir)/driver/mtrack.c

Return to bug 364033