configure.ac revision af9a7ee5
1
2# Initialize Autoconf
3AC_PREREQ([2.60])
4AC_INIT([libXext], [1.3.2],
5        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXext])
6AC_CONFIG_SRCDIR([Makefile.am])
7AC_CONFIG_HEADERS([config.h])
8
9# Initialize Automake
10AM_INIT_AUTOMAKE([foreign dist-bzip2])
11
12# Initialize libtool
13AC_PROG_LIBTOOL
14
15# Require xorg-macros minimum of 1.12 for DocBook external references
16m4_ifndef([XORG_MACROS_VERSION],
17          [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
18XORG_MACROS_VERSION(1.12)
19XORG_DEFAULT_OPTIONS
20XORG_ENABLE_SPECS
21XORG_WITH_XMLTO(0.0.22)
22XORG_WITH_FOP
23XORG_WITH_XSLTPROC
24XORG_CHECK_SGML_DOCTOOLS(1.8)
25XORG_CHECK_MALLOC_ZERO
26
27# Determine .so library version per platform
28# based on SharedXextRev in monolith xc/config/cf/*Lib.tmpl
29if test "x$XEXT_SOREV" = "x" ; then
30    case $host_os in
31	openbsd*)	XEXT_SOREV=8:0 		;;
32	solaris*)       XEXT_SOREV=0 		;;
33	*)              XEXT_SOREV=6:4:0 	;;
34    esac
35fi
36AC_SUBST(XEXT_SOREV)
37
38# Obtain compiler/linker options for depedencies
39PKG_CHECK_MODULES(XEXT, [xproto >= 7.0.13] [x11 >= 1.1.99.1] [xextproto >= 7.1.99])
40
41# Check for _XEatDataWords function that may be patched into older Xlib releases
42SAVE_LIBS="$LIBS"
43LIBS="$XEXT_LIBS"
44AC_CHECK_FUNCS([_XEatDataWords])
45LIBS="$SAVE_LIBS"
46
47# Allow checking code with lint, sparse, etc.
48XORG_WITH_LINT
49XORG_LINT_LIBRARY([Xext])
50
51AC_CONFIG_FILES([Makefile
52		man/Makefile
53		src/Makefile
54		specs/Makefile
55		xext.pc])
56AC_OUTPUT
57