summaryrefslogtreecommitdiff
path: root/configure.ac
blob: a76131fe2906b1af0dc078a9033f0d74a2feb75a (plain)
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT([rendercheck],
        1.0.3,
        [anholt@FreeBSD.org],
        rendercheck)

AC_CONFIG_SRCDIR([Makefile.am])
AM_INIT_AUTOMAKE([dist-bzip2])

AC_CONFIG_AUX_DIR(.)

AM_MAINTAINER_MODE

# Checks for programs.
AC_PROG_CC

# Checks for pkg-config packages
PKG_CHECK_MODULES(RC, xrender,
		  [xrender_found_with_pkgconfig=yes],
		  [xrender_found_with_pkgconfig=no])

if test "$xrender_found_with_pkgconfig" = "no"
then
	AC_PATH_XTRA
	if test "x$no_x" = "xyes"
	then
		AC_MSG_ERROR([X is required, but it was either disabled or not found.])
	fi

	RC_CFLAGS="$X_CFLAGS"
	RC_LIBS="$X_LIBS -lXrender -lXext -lX11"
fi

AC_SUBST(RC_CFLAGS)
AC_SUBST(RC_LIBS)

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC

AC_OUTPUT([Makefile])