configure.ac revision 278eca22
133c89af1Smrg
233c89af1Smrgdnl  Copyright 2005 Red Hat, Inc.
333c89af1Smrgdnl 
433c89af1Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
533c89af1Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
633c89af1Smrgdnl  the above copyright notice appear in all copies and that both that
733c89af1Smrgdnl  copyright notice and this permission notice appear in supporting
833c89af1Smrgdnl  documentation, and that the name of Red Hat not be used in
933c89af1Smrgdnl  advertising or publicity pertaining to distribution of the software without
1033c89af1Smrgdnl  specific, written prior permission.  Red Hat makes no
1133c89af1Smrgdnl  representations about the suitability of this software for any purpose.  It
1233c89af1Smrgdnl  is provided "as is" without express or implied warranty.
1333c89af1Smrgdnl 
1433c89af1Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1533c89af1Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1633c89af1Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1733c89af1Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1833c89af1Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1933c89af1Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2033c89af1Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
2133c89af1Smrgdnl
2233c89af1Smrgdnl Process this file with autoconf to create configure.
2333c89af1Smrg
2433c89af1SmrgAC_PREREQ([2.57])
25278eca22SmrgAC_INIT(editres,[1.0.4], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],editres)
2633c89af1SmrgAM_INIT_AUTOMAKE([dist-bzip2])
2733c89af1SmrgAM_MAINTAINER_MODE
2833c89af1Smrg
29278eca22Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
30278eca22Smrgm4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])])
31278eca22SmrgXORG_MACROS_VERSION(1.3)
32278eca22Smrg
3333c89af1SmrgAM_CONFIG_HEADER(config.h)
3433c89af1Smrg
3533c89af1SmrgAC_PROG_CC
3633c89af1SmrgAC_PROG_INSTALL
3733c89af1Smrg
38278eca22SmrgXORG_DEFAULT_OPTIONS
3933c89af1Smrg
4033c89af1Smrg# Checks for pkg-config packages
41278eca22SmrgPKG_CHECK_MODULES(XAW, xaw7)
4233c89af1SmrgPKG_CHECK_MODULES(EDITRES, x11 xt xmu)
43278eca22SmrgEDITRES_CFLAGS="$EDITRES_CFLAGS $XAW_CFLAGS"
44278eca22SmrgEDITRES_LIBS="$EDITRES_LIBS $XAW_LIBS"
4533c89af1SmrgAC_SUBST(EDITRES_CFLAGS)
4633c89af1SmrgAC_SUBST(EDITRES_LIBS)
4733c89af1Smrg
4833c89af1SmrgPKG_CHECK_MODULES(APPDEFS, xt)
49278eca22Smrgxt_appdefaultdir=$(pkg-config --variable=appdefaultdir xt)
50278eca22SmrgAC_ARG_WITH(appdefaultdir,
51278eca22Smrg	AC_HELP_STRING([--with-appdefaultdir=<pathname>],
52278eca22Smrg	  [specify directory for app-defaults files (default is autodetected)]),
53278eca22Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
5433c89af1SmrgAC_SUBST(appdefaultdir)
5533c89af1Smrg
5633c89af1SmrgAC_OUTPUT([Makefile])
57