configure.ac revision 6f03b1f6
16f03b1f6Smrgdnl  Copyright 2005 Red Hat, Inc.
26f03b1f6Smrgdnl 
36f03b1f6Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
46f03b1f6Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
56f03b1f6Smrgdnl  the above copyright notice appear in all copies and that both that
66f03b1f6Smrgdnl  copyright notice and this permission notice appear in supporting
76f03b1f6Smrgdnl  documentation, and that the name of Red Hat not be used in
86f03b1f6Smrgdnl  advertising or publicity pertaining to distribution of the software without
96f03b1f6Smrgdnl  specific, written prior permission.  Red Hat makes no
106f03b1f6Smrgdnl  representations about the suitability of this software for any purpose.  It
116f03b1f6Smrgdnl  is provided "as is" without express or implied warranty.
126f03b1f6Smrgdnl 
136f03b1f6Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
146f03b1f6Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
156f03b1f6Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
166f03b1f6Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
176f03b1f6Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
186f03b1f6Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
196f03b1f6Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
206f03b1f6Smrgdnl
216f03b1f6Smrgdnl Process this file with autoconf to create configure.
226f03b1f6Smrg
236f03b1f6SmrgAC_PREREQ([2.57])
246f03b1f6Smrg
256f03b1f6SmrgAC_INIT(libXvMC, 1.0.4, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libXvMC)
266f03b1f6SmrgAM_INIT_AUTOMAKE([dist-bzip2])
276f03b1f6SmrgAM_MAINTAINER_MODE
286f03b1f6Smrg
296f03b1f6SmrgAM_CONFIG_HEADER(config.h)
306f03b1f6Smrg
316f03b1f6Smrg# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro
326f03b1f6Smrgm4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.1 or later before running autoconf/autogen])])
336f03b1f6SmrgXORG_MACROS_VERSION(1.1)
346f03b1f6Smrg
356f03b1f6Smrg# Check for progs
366f03b1f6SmrgAC_PROG_CC
376f03b1f6SmrgAC_PROG_LIBTOOL
386f03b1f6Smrg
396f03b1f6Smrg# Check for dependencies
406f03b1f6SmrgPKG_CHECK_MODULES(XVMC, x11 xext xv xextproto videoproto)
416f03b1f6Smrg
426f03b1f6SmrgAC_SUBST(XVMC_CFLAGS)
436f03b1f6SmrgAC_SUBST(XVMC_LIBS)
446f03b1f6Smrg
456f03b1f6SmrgAC_CHECK_FUNC([shmat], AC_DEFINE(HAS_SHM,1,[Has shm*() functions]))
466f03b1f6Smrg		  
476f03b1f6SmrgXORG_CHECK_MALLOC_ZERO
486f03b1f6SmrgXORG_RELEASE_VERSION
496f03b1f6Smrg
506f03b1f6Smrgdnl Allow checking code with lint, sparse, etc.
516f03b1f6SmrgXORG_WITH_LINT
526f03b1f6SmrgLINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
536f03b1f6Smrg
546f03b1f6Smrg
556f03b1f6SmrgAC_OUTPUT([Makefile
566f03b1f6Smrg           include/Makefile
576f03b1f6Smrg	   include/X11/Makefile
586f03b1f6Smrg	   include/X11/extensions/Makefile
596f03b1f6Smrg	   src/Makefile
606f03b1f6Smrg           xvmc.pc])
61