configure.ac revision cdbfa18a
1cdbfa18aSmrg# 2cdbfa18aSmrg# Copyright 2005 Red Hat, Inc. 3cdbfa18aSmrg# 4cdbfa18aSmrg# Permission to use, copy, modify, distribute, and sell this software and its 5cdbfa18aSmrg# documentation for any purpose is hereby granted without fee, provided that 6cdbfa18aSmrg# the above copyright notice appear in all copies and that both that 7cdbfa18aSmrg# copyright notice and this permission notice appear in supporting 8cdbfa18aSmrg# documentation, and that the name of Red Hat not be used in 9cdbfa18aSmrg# advertising or publicity pertaining to distribution of the software without 10cdbfa18aSmrg# specific, written prior permission. Red Hat makes no 11cdbfa18aSmrg# representations about the suitability of this software for any purpose. It 12cdbfa18aSmrg# is provided "as is" without express or implied warranty. 13cdbfa18aSmrg# 14cdbfa18aSmrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15cdbfa18aSmrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16cdbfa18aSmrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17cdbfa18aSmrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18cdbfa18aSmrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19cdbfa18aSmrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20cdbfa18aSmrg# PERFORMANCE OF THIS SOFTWARE. 21cdbfa18aSmrg# 22cdbfa18aSmrg 23cdbfa18aSmrg# Initialize Autoconf 24d5c3dbf1SmrgAC_PREREQ([2.60]) 25cdbfa18aSmrgAC_INIT([libXv], [1.0.8], 26d5c3dbf1Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXv]) 27cdbfa18aSmrgAC_CONFIG_SRCDIR([Makefile.am]) 28cdbfa18aSmrgAC_CONFIG_HEADERS([config.h]) 29cdbfa18aSmrg 30cdbfa18aSmrg# Initialize Automake 31d5c3dbf1SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 329f606849Smrg 33cdbfa18aSmrg# Initialize libtool 34cdbfa18aSmrgAC_PROG_LIBTOOL 359f606849Smrg 36d5c3dbf1Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 37d5c3dbf1Smrgm4_ifndef([XORG_MACROS_VERSION], 38d5c3dbf1Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 39d5c3dbf1SmrgXORG_MACROS_VERSION(1.8) 40d5c3dbf1SmrgXORG_DEFAULT_OPTIONS 41cdbfa18aSmrgXORG_CHECK_MALLOC_ZERO 429f606849Smrg 43cdbfa18aSmrg# Obtain compiler/linker options for depedencies 449f606849SmrgPKG_CHECK_MODULES(XV, x11 xext xextproto videoproto) 45fba89afeSmrg 46cdbfa18aSmrg# Check for _XEatDataWords function that may be patched into older Xlib release 47cdbfa18aSmrgSAVE_LIBS="$LIBS" 48cdbfa18aSmrgLIBS="$XV_LIBS" 49cdbfa18aSmrgAC_CHECK_FUNCS([_XEatDataWords]) 50cdbfa18aSmrgLIBS="$SAVE_LIBS" 519f606849Smrg 52cdbfa18aSmrg# Allow checking code with lint, sparse, etc. 539f606849SmrgXORG_WITH_LINT 549f606849SmrgXORG_LINT_LIBRARY([Xv]) 559f606849Smrg 56cdbfa18aSmrgAC_CONFIG_FILES([Makefile 57cdbfa18aSmrg include/Makefile 58cdbfa18aSmrg include/X11/Makefile 59cdbfa18aSmrg include/X11/extensions/Makefile 60cdbfa18aSmrg src/Makefile 61cdbfa18aSmrg man/Makefile 62cdbfa18aSmrg xv.pc]) 63cdbfa18aSmrgAC_OUTPUT 64