configure.ac revision e494fffd
167ab2ff2Smrg#  Copyright 2005 Red Hat, Inc.
267ab2ff2Smrg#
367ab2ff2Smrg#  Permission to use, copy, modify, distribute, and sell this software and its
467ab2ff2Smrg#  documentation for any purpose is hereby granted without fee, provided that
567ab2ff2Smrg#  the above copyright notice appear in all copies and that both that
667ab2ff2Smrg#  copyright notice and this permission notice appear in supporting
767ab2ff2Smrg#  documentation, and that the name of Red Hat not be used in
867ab2ff2Smrg#  advertising or publicity pertaining to distribution of the software without
967ab2ff2Smrg#  specific, written prior permission.  Red Hat makes no
1067ab2ff2Smrg#  representations about the suitability of this software for any purpose.  It
1167ab2ff2Smrg#  is provided "as is" without express or implied warranty.
1267ab2ff2Smrg#
1367ab2ff2Smrg#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1467ab2ff2Smrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1567ab2ff2Smrg#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1667ab2ff2Smrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1767ab2ff2Smrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1867ab2ff2Smrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1967ab2ff2Smrg#  PERFORMANCE OF THIS SOFTWARE.
2067ab2ff2Smrg#
21e0963edeSmrg
2267ab2ff2Smrg# Initialize Autoconf
2349e108a1SmrgAC_PREREQ([2.60])
24e494fffdSmrgAC_INIT([libXinerama], [1.1.3],
2567ab2ff2Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXinerama])
2667ab2ff2SmrgAC_CONFIG_SRCDIR([Makefile.am])
2767ab2ff2SmrgAC_CONFIG_HEADERS([config.h])
28e0963edeSmrg
2967ab2ff2Smrg# Initialize Automake
3049e108a1SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
31e0963edeSmrg
3267ab2ff2Smrg# Initialize libtool
3367ab2ff2SmrgAC_PROG_LIBTOOL
3467ab2ff2Smrg
3549e108a1Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3649e108a1Smrgm4_ifndef([XORG_MACROS_VERSION],
3749e108a1Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
3849e108a1SmrgXORG_MACROS_VERSION(1.8)
3949e108a1SmrgXORG_DEFAULT_OPTIONS
4067ab2ff2SmrgXORG_CHECK_MALLOC_ZERO
41e0963edeSmrg
4267ab2ff2Smrg# Obtain compiler/linker options for depedencies
43f05b35a2SmrgPKG_CHECK_MODULES(XINERAMA, x11 xext xextproto [xineramaproto >= 1.1.99.1])
44e0963edeSmrg
45e494fffdSmrg# Check for _XEatDataWords function that may be patched into older Xlib releases
46e494fffdSmrgSAVE_LIBS="$LIBS"
47e494fffdSmrgLIBS="$XINERAMA_LIBS"
48e494fffdSmrgAC_CHECK_FUNCS([_XEatDataWords])
49e494fffdSmrgLIBS="$SAVE_LIBS"
50e494fffdSmrg
5167ab2ff2Smrg# Allow checking code with lint, sparse, etc.
52e0963edeSmrgXORG_WITH_LINT
53e0963edeSmrgLINT_FLAGS="${LINT_FLAGS} ${XINERAMA_CFLAGS}"
54e0963edeSmrg
5567ab2ff2SmrgAC_CONFIG_FILES([Makefile
5667ab2ff2Smrg		src/Makefile
5767ab2ff2Smrg		man/Makefile
5867ab2ff2Smrg		xinerama.pc])
5967ab2ff2SmrgAC_OUTPUT
60