configure.ac revision cfcf9057
142941e3bSmrg# Copyright 2005 Red Hat, Inc. 242941e3bSmrg# 342941e3bSmrg# Permission to use, copy, modify, distribute, and sell this software and its 442941e3bSmrg# documentation for any purpose is hereby granted without fee, provided that 542941e3bSmrg# the above copyright notice appear in all copies and that both that 642941e3bSmrg# copyright notice and this permission notice appear in supporting 742941e3bSmrg# documentation, and that the name of Red Hat not be used in 842941e3bSmrg# advertising or publicity pertaining to distribution of the software without 942941e3bSmrg# specific, written prior permission. Red Hat makes no 1042941e3bSmrg# representations about the suitability of this software for any purpose. It 1142941e3bSmrg# is provided "as is" without express or implied warranty. 1242941e3bSmrg# 1342941e3bSmrg# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1442941e3bSmrg# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1542941e3bSmrg# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1642941e3bSmrg# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1742941e3bSmrg# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1842941e3bSmrg# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 1942941e3bSmrg# PERFORMANCE OF THIS SOFTWARE. 2042941e3bSmrg# 2142941e3bSmrg 2242941e3bSmrg# Initialize Autoconf 23356f6debSmrgAC_PREREQ([2.60]) 24cfcf9057SmrgAC_INIT([libXvMC], [1.0.12], 25c1e3c5d0Smrg [https://gitlab.freedesktop.org/xorg/lib/libXvMC/issues], [libXvMC]) 2642941e3bSmrgAC_CONFIG_SRCDIR([Makefile.am]) 2742941e3bSmrgAC_CONFIG_HEADERS([config.h]) 286f03b1f6Smrg 2942941e3bSmrg# Initialize Automake 30356f6debSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 316f03b1f6Smrg 3242941e3bSmrg# Initialize libtool 3342941e3bSmrgAC_PROG_LIBTOOL 3442941e3bSmrg 3542941e3bSmrg# Require X.Org macros 1.8 or later for AC_PROG_INSTALL 36356f6debSmrgm4_ifndef([XORG_MACROS_VERSION], 3742941e3bSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 3842941e3bSmrgXORG_MACROS_VERSION(1.8) 39356f6debSmrgXORG_DEFAULT_OPTIONS 4042941e3bSmrgXORG_CHECK_MALLOC_ZERO 416f03b1f6Smrg 4242941e3bSmrg# Obtain compiler/linker options for depedencies 43dcbf891fSmrgPKG_CHECK_MODULES(XVMC, [x11 >= 1.6] xext xv xextproto videoproto) 4417caa701Smrg 4542941e3bSmrg# Checks for library functions. 4642941e3bSmrgAC_CHECK_FUNCS([shmat]) 476f03b1f6Smrg 48dcbf891fSmrg# Check to see if dlopen is in default libraries (like Solaris, which 49dcbf891fSmrg# has it in libc), or if libdl is needed to get it. 50dcbf891fSmrgAC_CHECK_FUNC([dlopen], [], 51dcbf891fSmrg AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl")) 52dcbf891fSmrgAC_SUBST(DLOPEN_LIBS) 53dcbf891fSmrg 5442941e3bSmrg# Allow checking code with lint, sparse, etc. 556f03b1f6SmrgXORG_WITH_LINT 566f03b1f6SmrgLINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}" 576f03b1f6Smrg 5842941e3bSmrgAC_CONFIG_FILES([Makefile 5942941e3bSmrg include/Makefile 6042941e3bSmrg include/X11/Makefile 6142941e3bSmrg include/X11/extensions/Makefile 6242941e3bSmrg src/Makefile 6342941e3bSmrg wrapper/Makefile 64cfcf9057Smrg xvmc.pc 65cfcf9057Smrg xvmc-wrapper.pc]) 6642941e3bSmrgAC_OUTPUT 67