configure.ac revision 8512f934
14d9b34d9Smrg
24d9b34d9Smrgdnl  Copyright 2005 Red Hat, Inc.
34d9b34d9Smrgdnl 
44d9b34d9Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
54d9b34d9Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
64d9b34d9Smrgdnl  the above copyright notice appear in all copies and that both that
74d9b34d9Smrgdnl  copyright notice and this permission notice appear in supporting
84d9b34d9Smrgdnl  documentation, and that the name of Red Hat not be used in
94d9b34d9Smrgdnl  advertising or publicity pertaining to distribution of the software without
104d9b34d9Smrgdnl  specific, written prior permission.  Red Hat makes no
114d9b34d9Smrgdnl  representations about the suitability of this software for any purpose.  It
124d9b34d9Smrgdnl  is provided "as is" without express or implied warranty.
134d9b34d9Smrgdnl 
144d9b34d9Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
154d9b34d9Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
164d9b34d9Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
174d9b34d9Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
184d9b34d9Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
194d9b34d9Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
204d9b34d9Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
214d9b34d9Smrgdnl
224d9b34d9Smrgdnl Process this file with autoconf to create configure.
234d9b34d9Smrg
244d9b34d9SmrgAC_PREREQ([2.57])
258512f934SmrgAC_INIT(xcalc, [1.0.3],
268512f934Smrg	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xcalc)
278512f934SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
284d9b34d9SmrgAM_MAINTAINER_MODE
294d9b34d9Smrg
308512f934Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
318512f934Smrgm4_ifndef([XORG_MACROS_VERSION],
328512f934Smrg          [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
338512f934SmrgXORG_MACROS_VERSION(1.3)
348512f934SmrgXORG_DEFAULT_OPTIONS
358512f934Smrg
364d9b34d9SmrgAM_CONFIG_HEADER(config.h)
374d9b34d9Smrg
384d9b34d9SmrgAC_PROG_CC
394d9b34d9SmrgAC_PROG_INSTALL
404d9b34d9Smrg
414d9b34d9Smrg
428512f934SmrgPKG_CHECK_MODULES(XCALC, xaw7)
438512f934SmrgXCALC_CFLAGS="$CWARNFLAGS $XCALC_CFLAGS"
444d9b34d9SmrgAC_SUBST(XCALC_CFLAGS)
454d9b34d9SmrgAC_SUBST(XCALC_LIBS)
464d9b34d9Smrg
474d9b34d9SmrgPKG_CHECK_MODULES(APPDEFS, xt)
488512f934Smrgxt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
498512f934SmrgAC_ARG_WITH(appdefaultdir,
508512f934Smrg	AC_HELP_STRING([--with-appdefaultdir=<pathname>],
518512f934Smrg	  [specify directory for app-defaults files (default is autodetected)]),
528512f934Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
534d9b34d9SmrgAC_SUBST(appdefaultdir)
544d9b34d9Smrg
554d9b34d9Smrg
564d9b34d9SmrgAC_OUTPUT([Makefile])
57