configure.ac revision d5c3dbf1
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
24d5c3dbf1SmrgAC_PREREQ([2.60])
259f606849Smrg
26d5c3dbf1SmrgAC_INIT([libXv], [1.0.6],
27d5c3dbf1Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libXv])
28d5c3dbf1SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
299f606849SmrgAM_MAINTAINER_MODE
309f606849Smrg
319f606849SmrgAM_CONFIG_HEADER(config.h)
329f606849Smrg
33d5c3dbf1Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
34d5c3dbf1Smrgm4_ifndef([XORG_MACROS_VERSION],
35d5c3dbf1Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
36d5c3dbf1SmrgXORG_MACROS_VERSION(1.8)
37d5c3dbf1SmrgXORG_DEFAULT_OPTIONS
389f606849Smrg
399f606849Smrg# Check for progs
409f606849SmrgAC_PROG_CC
419f606849SmrgAC_PROG_LIBTOOL
429f606849Smrg
439f606849Smrg# Check for dependencies
449f606849SmrgPKG_CHECK_MODULES(XV, x11 xext xextproto videoproto)
459f606849SmrgAC_SUBST(XV_CFLAGS)
469f606849SmrgAC_SUBST(XV_LIBS)
47fba89afeSmrg
489f606849SmrgXORG_CHECK_MALLOC_ZERO
499f606849Smrg
509f606849Smrgdnl Allow checking code with lint, sparse, etc.
519f606849SmrgXORG_WITH_LINT
529f606849SmrgXORG_LINT_LIBRARY([Xv])
539f606849Smrg
549f606849SmrgAC_OUTPUT([Makefile
559f606849Smrg           include/Makefile
569f606849Smrg	   include/X11/Makefile
579f606849Smrg	   include/X11/extensions/Makefile
589f606849Smrg	   src/Makefile
599f606849Smrg	   man/Makefile
609f606849Smrg           xv.pc])
61