configure.ac revision c05e22d7
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.60]) 25AC_INIT([xedit], [1.2.0], 26 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xedit]) 27AM_INIT_AUTOMAKE([foreign dist-bzip2]) 28AM_MAINTAINER_MODE 29 30# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 31m4_ifndef([XORG_MACROS_VERSION], 32 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 33XORG_MACROS_VERSION(1.8) 34XORG_DEFAULT_OPTIONS 35 36AM_CONFIG_HEADER(config.h) 37 38AM_PROG_CC_C_O 39AC_PROG_RANLIB 40PKG_PROG_PKG_CONFIG 41 42PKG_CHECK_MODULES(PKGDEPS, xaw7 xmu xt x11) 43 44AC_ARG_WITH(lispdir, AS_HELP_STRING([--with-lispdir=PATH], 45 [Directory to install lisp files (default: $libdir/X11/xedit/lisp)]), 46 [ lispdir="$withval"], 47 [ lispdir=${libdir}/X11/xedit/lisp ]) 48LISPDIR=$lispdir 49AC_SUBST(LISPDIR) 50 51AC_CHECK_FUNC(realpath, [], [have_realpath=yes]) 52AM_CONDITIONAL(NEED_REALPATH, test x$have_realpath = xyes) 53AC_CHECK_FUNC(strcasecmp, [], [have_strcasecmp=yes]) 54AM_CONDITIONAL(NEED_STRCASECMP, test x$have_strcasecmp = xyes) 55AC_CHECK_FUNC(unsetenv, [], [have_unsetenv=yes]) 56AM_CONDITIONAL(NEED_UNSETENV, test x$have_unsetenv = xyes) 57 58PKG_CHECK_MODULES(APPDEFS, xt) 59xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 60AC_ARG_WITH(appdefaultdir, 61 AC_HELP_STRING([--with-appdefaultdir=<pathname>], 62 [specify directory for app-defaults files (default is autodetected)]), 63 [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 64AC_SUBST(appdefaultdir) 65 66 67AC_OUTPUT([Makefile]) 68