configure.ac revision fc51f767
167f05d30Smrg
267f05d30Smrgdnl  Copyright 2005 Red Hat, Inc.
367f05d30Smrgdnl 
467f05d30Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
567f05d30Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
667f05d30Smrgdnl  the above copyright notice appear in all copies and that both that
767f05d30Smrgdnl  copyright notice and this permission notice appear in supporting
867f05d30Smrgdnl  documentation, and that the name of Red Hat not be used in
967f05d30Smrgdnl  advertising or publicity pertaining to distribution of the software without
1067f05d30Smrgdnl  specific, written prior permission.  Red Hat makes no
1167f05d30Smrgdnl  representations about the suitability of this software for any purpose.  It
1267f05d30Smrgdnl  is provided "as is" without express or implied warranty.
1367f05d30Smrgdnl 
1467f05d30Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1567f05d30Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1667f05d30Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1767f05d30Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1867f05d30Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1967f05d30Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2067f05d30Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
2167f05d30Smrgdnl
2267f05d30Smrgdnl Process this file with autoconf to create configure.
2367f05d30Smrg
24fc51f767SmrgAC_PREREQ([2.60])
25fc51f767SmrgAC_INIT([viewres], [1.0.3],
26fc51f767Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [viewres])
27fffe5102SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
2867f05d30SmrgAM_MAINTAINER_MODE
2967f05d30Smrg
30fc51f767Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
31fffe5102Smrgm4_ifndef([XORG_MACROS_VERSION],
32fc51f767Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
33fc51f767SmrgXORG_MACROS_VERSION(1.8)
34fffe5102SmrgXORG_DEFAULT_OPTIONS
35fffe5102Smrg
3667f05d30SmrgAM_CONFIG_HEADER(config.h)
3767f05d30Smrg
38fc51f767SmrgPKG_CHECK_MODULES(VIEWRES, xaw7 xmu xt)
3967f05d30Smrg
40fc51f767Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
41fffe5102SmrgAC_ARG_WITH(appdefaultdir,
42fffe5102Smrg	AC_HELP_STRING([--with-appdefaultdir=<pathname>],
43fffe5102Smrg	  [specify directory for app-defaults files (default is autodetected)]),
44fffe5102Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
4567f05d30SmrgAC_SUBST(appdefaultdir)
4667f05d30Smrg
4767f05d30Smrg
4867f05d30SmrgAC_OUTPUT([Makefile])
49