configure.ac revision 9f606849
19f606849Smrgdnl 29f606849Smrgdnl Copyright 2005 Red Hat, Inc. 39f606849Smrgdnl 49f606849Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 59f606849Smrgdnl documentation for any purpose is hereby granted without fee, provided that 69f606849Smrgdnl the above copyright notice appear in all copies and that both that 79f606849Smrgdnl copyright notice and this permission notice appear in supporting 89f606849Smrgdnl documentation, and that the name of Red Hat not be used in 99f606849Smrgdnl advertising or publicity pertaining to distribution of the software without 109f606849Smrgdnl specific, written prior permission. Red Hat makes no 119f606849Smrgdnl representations about the suitability of this software for any purpose. It 129f606849Smrgdnl is provided "as is" without express or implied warranty. 139f606849Smrgdnl 149f606849Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 159f606849Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 169f606849Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 179f606849Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 189f606849Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 199f606849Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 209f606849Smrgdnl PERFORMANCE OF THIS SOFTWARE. 219f606849Smrgdnl 229f606849Smrgdnl Process this file with autoconf to create configure. 239f606849Smrg 249f606849SmrgAC_PREREQ([2.57]) 259f606849Smrg 269f606849SmrgAC_INIT(libXv, 1.0.4, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXv) 279f606849SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 289f606849SmrgAM_MAINTAINER_MODE 299f606849Smrg 309f606849SmrgAM_CONFIG_HEADER(config.h) 319f606849Smrg 329f606849Smrg# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro 339f606849Smrgm4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 349f606849SmrgXORG_MACROS_VERSION(1.1) 359f606849Smrg 369f606849Smrg# Check for progs 379f606849SmrgAC_PROG_CC 389f606849SmrgAC_PROG_LIBTOOL 399f606849Smrg 409f606849Smrg# Check for dependencies 419f606849SmrgPKG_CHECK_MODULES(XV, x11 xext xextproto videoproto) 429f606849Smrg 439f606849SmrgAC_SUBST(XV_CFLAGS) 449f606849SmrgAC_SUBST(XV_LIBS) 459f606849Smrg 469f606849SmrgXORG_CHECK_MALLOC_ZERO 479f606849SmrgXORG_MANPAGE_SECTIONS 489f606849SmrgXORG_RELEASE_VERSION 499f606849Smrg 509f606849Smrgdnl Allow checking code with lint, sparse, etc. 519f606849SmrgXORG_WITH_LINT 529f606849SmrgXORG_LINT_LIBRARY([Xv]) 539f606849SmrgLINT_FLAGS="${LINT_FLAGS} ${XV_CFLAGS}" 549f606849Smrg 559f606849SmrgAC_OUTPUT([Makefile 569f606849Smrg include/Makefile 579f606849Smrg include/X11/Makefile 589f606849Smrg include/X11/extensions/Makefile 599f606849Smrg src/Makefile 609f606849Smrg man/Makefile 619f606849Smrg xv.pc]) 62