configure.ac revision c05e22d7
15dfecf96Smrg
25dfecf96Smrgdnl  Copyright 2005 Red Hat, Inc.
35dfecf96Smrgdnl 
45dfecf96Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
55dfecf96Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
65dfecf96Smrgdnl  the above copyright notice appear in all copies and that both that
75dfecf96Smrgdnl  copyright notice and this permission notice appear in supporting
85dfecf96Smrgdnl  documentation, and that the name of Red Hat not be used in
95dfecf96Smrgdnl  advertising or publicity pertaining to distribution of the software without
105dfecf96Smrgdnl  specific, written prior permission.  Red Hat makes no
115dfecf96Smrgdnl  representations about the suitability of this software for any purpose.  It
125dfecf96Smrgdnl  is provided "as is" without express or implied warranty.
135dfecf96Smrgdnl 
145dfecf96Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
155dfecf96Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
165dfecf96Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
175dfecf96Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
185dfecf96Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
195dfecf96Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
205dfecf96Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
215dfecf96Smrgdnl
225dfecf96Smrgdnl Process this file with autoconf to create configure.
235dfecf96Smrg
24c05e22d7SmrgAC_PREREQ([2.60])
25c05e22d7SmrgAC_INIT([xedit], [1.2.0],
26c05e22d7Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xedit])
27c05e22d7SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
285dfecf96SmrgAM_MAINTAINER_MODE
295dfecf96Smrg
30c05e22d7Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
31c05e22d7Smrgm4_ifndef([XORG_MACROS_VERSION],
32c05e22d7Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
33c05e22d7SmrgXORG_MACROS_VERSION(1.8)
34c05e22d7SmrgXORG_DEFAULT_OPTIONS
35c05e22d7Smrg
365dfecf96SmrgAM_CONFIG_HEADER(config.h)
375dfecf96Smrg
38f14f4646SmrgAM_PROG_CC_C_O
395dfecf96SmrgAC_PROG_RANLIB
40f14f4646SmrgPKG_PROG_PKG_CONFIG
415dfecf96Smrg
42c05e22d7SmrgPKG_CHECK_MODULES(PKGDEPS, xaw7 xmu xt x11)
435dfecf96Smrg
44f14f4646SmrgAC_ARG_WITH(lispdir, AS_HELP_STRING([--with-lispdir=PATH],
45f14f4646Smrg	    [Directory to install lisp files (default: $libdir/X11/xedit/lisp)]),
46f14f4646Smrg	    [ lispdir="$withval"],
47f14f4646Smrg	    [ lispdir=${libdir}/X11/xedit/lisp ])
48f14f4646SmrgLISPDIR=$lispdir
49f14f4646SmrgAC_SUBST(LISPDIR)
50f14f4646Smrg
51f14f4646SmrgAC_CHECK_FUNC(realpath, [], [have_realpath=yes])
52f14f4646SmrgAM_CONDITIONAL(NEED_REALPATH, test x$have_realpath = xyes)
53f14f4646SmrgAC_CHECK_FUNC(strcasecmp, [], [have_strcasecmp=yes])
54f14f4646SmrgAM_CONDITIONAL(NEED_STRCASECMP, test x$have_strcasecmp = xyes)
55f14f4646SmrgAC_CHECK_FUNC(unsetenv, [], [have_unsetenv=yes])
56f14f4646SmrgAM_CONDITIONAL(NEED_UNSETENV, test x$have_unsetenv = xyes)
57f14f4646Smrg
585dfecf96SmrgPKG_CHECK_MODULES(APPDEFS, xt)
59c05e22d7Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
60c05e22d7SmrgAC_ARG_WITH(appdefaultdir,
61c05e22d7Smrg	AC_HELP_STRING([--with-appdefaultdir=<pathname>],
62c05e22d7Smrg	  [specify directory for app-defaults files (default is autodetected)]),
63c05e22d7Smrg	[appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"])
645dfecf96SmrgAC_SUBST(appdefaultdir)
655dfecf96Smrg
665dfecf96Smrg
675dfecf96SmrgAC_OUTPUT([Makefile])
68