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

AC_PREREQ(2.61)
AC_INIT(mpwm,1.1, peter@cs.unisa.edu.au)
AM_INIT_AUTOMAKE(foreign)
AM_MAINTAINER_MODE
AM_CONFIG_HEADER([config.h])

# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AC_CHECK_PROG([XCURSORGEN],[xcursorgen],[`which xcursorgen`])

# XSetClientPointer is only in the MPX aware lib, so we're all good if it
# exists.
AC_CHECK_LIB([Xi], [XSetClientPointer]) 
PKG_CHECK_MODULES(MPWM, x11 xext xi xcursor cairo)

AC_SUBST(MPWM_LIBS)

AC_OUTPUT([Makefile
           src/Makefile
	   images/Makefile])