configure.ac revision cacd992d
1 2dnl Copyright 2005 Red Hat, Inc. 3dnl 4dnl Permission to use, copy, modify, distribute, and sell this software and its 5dnl documentation for any purpose is hereby granted without fee, provided that 6dnl the above copyright notice appear in all copies and that both that 7dnl copyright notice and this permission notice appear in supporting 8dnl documentation, and that the name of Red Hat not be used in 9dnl advertising or publicity pertaining to distribution of the software without 10dnl specific, written prior permission. Red Hat makes no 11dnl representations about the suitability of this software for any purpose. It 12dnl is provided "as is" without express or implied warranty. 13dnl 14dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20dnl PERFORMANCE OF THIS SOFTWARE. 21dnl 22dnl Process this file with autoconf to create configure. 23 24AC_PREREQ([2.57]) 25AC_INIT(xvidtune,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xvidtune) 26AM_INIT_AUTOMAKE([dist-bzip2]) 27AM_MAINTAINER_MODE 28 29AM_CONFIG_HEADER(config.h) 30 31AC_PROG_CC 32AC_PROG_INSTALL 33AC_PROG_CPP 34AC_PATH_PROGS(RAWCPP, [cpp], [$(CPP)], 35 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 36 37m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) 38 39# Checks for pkg-config packages 40XAW_CHECK_XPRINT_SUPPORT(XAW) 41PKG_CHECK_MODULES(XVIDTUNE, xxf86vm) 42 43XVIDTUNE_CFLAGS="$XVIDTUNE_CFLAGS $XAW_CFLAGS" 44XVIDTUNE_LIBS="$XVIDTUNE_LIBS $XAW_LIBS" 45 46echo $XVIDTUNE_LIBS 47 48AC_SUBST(XVIDTUNE_CFLAGS) 49AC_SUBST(XVIDTUNE_LIBS) 50 51AC_ARG_WITH(vendor-name, 52 AS_HELP_STRING([--with-vendor-name=VENDOR], 53 [Vendor name for disclaimer statement]), 54 [ VENDOR_NAME="$withval" ], 55 [ VENDOR_NAME="The X.Org Foundation" ]) 56AC_SUBST([VENDOR_NAME]) 57 58PKG_CHECK_MODULES(APPDEFS, xt) 59appdefaultdir=$(pkg-config --variable=appdefaultdir xt) 60AC_SUBST(appdefaultdir) 61 62XORG_MANPAGE_SECTIONS 63XORG_RELEASE_VERSION 64 65AC_OUTPUT([Makefile]) 66