1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
# Copyright 2012 Red Hat, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# on the rights to use, copy, modify, merge, publish, distribute, sub
# license, and/or sell copies of the Software, and to permit persons to whom
# the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Process this file with autoconf to produce a configure script
# Initialize Autoconf
AC_PREREQ([2.60])
AC_INIT([xorg-integration-tests], [0.0.1])
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR(.)
AC_CONFIG_MACRO_DIR([m4])
# Initialize Automake
AM_INIT_AUTOMAKE([foreign dist-bzip2 no-dist-gzip tar-pax])
# Initialize libtool
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PROG_CXX
m4_ifndef([XORG_MACROS_VERSION],
[m4_fatal([must install xorg-macros 1.17 or later before running autoconf/autogen])])
XORG_MACROS_VERSION(1.17)
XORG_DEFAULT_OPTIONS
XORG_ENABLE_INTEGRATION_TESTS(yes)
XORG_WITH_DOXYGEN
PKG_CHECK_MODULES(XI, x11 xi)
PKG_CHECK_MODULES(XRANDR, xrandr)
PKG_CHECK_MODULES(EVEMU, [evemu >= 1.0.10])
PKG_CHECK_MODULES(XI22, [inputproto >= 2.2] [xi >= 1.6],
AC_DEFINE(HAVE_XI22, 1, [XI 2.2 available]),
[noop=noop])
PKG_CHECK_MODULES(XI23, [inputproto >= 2.2.99] [xi >= 1.6.99],
AC_DEFINE(HAVE_XI23, 1, [XI 2.3 available]),
[noop=noop])
PKG_CHECK_MODULES(XTEST, [xtst])
PKG_CHECK_MODULES(XFIXES, [xfixes])
PKG_CHECK_MODULES(XSCREENSAVER, [xscrnsaver])
PKG_CHECK_MODULES(XORGGTEST, [xorg-gtest >= 0.6.0])
PKG_CHECK_MODULES(WACOM, xorg-wacom)
m4_ifndef([CHECK_XORG_GTEST],
[m4_fatal([must install xorg-gtest before running autoconf/autogen])])
CHECK_XORG_GTEST([], AC_MSG_ERROR([xorg-gtest or its dependencies not found.]))
# Check for RHEL and define as appropriate
if test -f /etc/redhat-release; then
[rhel_version=`grep -o "[5-7].[0-9]\+" /etc/redhat-release`]
case "$rhel_version" in
5.*)
AC_DEFINE(HAVE_RHEL5, [1], [Building on RHEL5])
;;
6.*)
AC_DEFINE(HAVE_RHEL6, [1], [Building on RHEL6])
;;
7.*)
AC_DEFINE(HAVE_RHEL7, [1], [Building on RHEL7])
;;
**)
;;
esac
AC_DEFINE_UNQUOTED(RHEL_VERSION, [$rhel_version], "RHEL version")
fi
AM_CONDITIONAL(HAVE_RHEL, [test "x$rhel_version" != "x"])
AC_ARG_WITH(logpath, [AS_HELP_STRING([--with-logpath=/tmp]),
[Base path for server log and config files (default: /tmp)]],
[BASEPATH="$withval"], [BASEPATH="/tmp"])
AC_DEFINE_DIR(LOG_BASE_PATH, BASEPATH, [log and config file base path])
AC_CONFIG_FILES([Makefile
doc/Doxyfile
doc/Makefile
recordings/Makefile
tests/Makefile
tests/common/Makefile
tests/input/Makefile
tests/video/Makefile
tests/server/Makefile
tests/lib/Makefile])
AC_OUTPUT
|