configure.ac revision 9e0146f7
1492e1cfeSmrg 2492e1cfeSmrgdnl Copyright 2005 Red Hat, Inc. 3492e1cfeSmrgdnl 4492e1cfeSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 5492e1cfeSmrgdnl documentation for any purpose is hereby granted without fee, provided that 6492e1cfeSmrgdnl the above copyright notice appear in all copies and that both that 7492e1cfeSmrgdnl copyright notice and this permission notice appear in supporting 8492e1cfeSmrgdnl documentation, and that the name of Red Hat not be used in 9492e1cfeSmrgdnl advertising or publicity pertaining to distribution of the software without 10492e1cfeSmrgdnl specific, written prior permission. Red Hat makes no 11492e1cfeSmrgdnl representations about the suitability of this software for any purpose. It 12492e1cfeSmrgdnl is provided "as is" without express or implied warranty. 13492e1cfeSmrgdnl 14492e1cfeSmrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15492e1cfeSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16492e1cfeSmrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17492e1cfeSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18492e1cfeSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19492e1cfeSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20492e1cfeSmrgdnl PERFORMANCE OF THIS SOFTWARE. 21492e1cfeSmrgdnl 22492e1cfeSmrgdnl Process this file with autoconf to create configure. 23492e1cfeSmrg 249e0146f7SmrgAC_PREREQ([2.60]) 259e0146f7SmrgAC_INIT([xfd],[1.1.0], 269e0146f7Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xfd]) 279e0146f7SmrgAC_CONFIG_MACRO_DIR([m4]) 289e0146f7SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 29492e1cfeSmrgAM_MAINTAINER_MODE 30492e1cfeSmrg 319e0146f7Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 329e0146f7Smrgm4_ifndef([XORG_MACROS_VERSION], 339e0146f7Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 349e0146f7SmrgXORG_MACROS_VERSION(1.8) 359e0146f7SmrgXORG_DEFAULT_OPTIONS 36492e1cfeSmrg 379e0146f7SmrgAM_CONFIG_HEADER(config.h) 38492e1cfeSmrg 39492e1cfeSmrg 409e0146f7Smrg# Internationalization & localization support 419e0146f7SmrgAC_SEARCH_LIBS([gettext], [intl], [USE_GETTEXT="yes"], [USE_GETTEXT="no"]) 429e0146f7SmrgAC_MSG_CHECKING([where to install localized messages]) 439e0146f7SmrgAC_ARG_WITH([localedir], AS_HELP_STRING([--with-localedir=<path>], 449e0146f7Smrg [Path to install message files in (default: datadir/locale)]), 459e0146f7Smrg [LOCALEDIR=${withval}], [LOCALEDIR=${datadir}/locale]) 469e0146f7SmrgAX_DEFINE_DIR([LOCALEDIR], [LOCALEDIR], [Location of translated messages]) 479e0146f7Smrgif test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then 489e0146f7Smrg AC_MSG_RESULT([nowhere]) 499e0146f7Smrg USE_GETTEXT="no" 509e0146f7Smrgelse 519e0146f7Smrg AC_MSG_RESULT([$LOCALEDIR]) 529e0146f7Smrgfi 53492e1cfeSmrg 549e0146f7Smrgif test "x$USE_GETTEXT" = "xyes" ; then 559e0146f7Smrg AC_DEFINE([USE_GETTEXT], 1, 569e0146f7Smrg [Define to 1 if you want to use the gettext() function.]) 579e0146f7Smrgfi 589e0146f7SmrgAM_CONDITIONAL(USE_GETTEXT, test "x$USE_GETTEXT" = "xyes") 59492e1cfeSmrg 609e0146f7Smrg# Checks for pkg-config packages 619e0146f7SmrgPKG_CHECK_MODULES(XFD, xaw7 freetype2 fontconfig xft xrender xmu) 62492e1cfeSmrg 63492e1cfeSmrgPKG_CHECK_MODULES(APPDEFS, xt) 649e0146f7Smrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 659e0146f7SmrgAC_ARG_WITH(appdefaultdir, 669e0146f7Smrg AC_HELP_STRING([--with-appdefaultdir=<pathname>], 679e0146f7Smrg [specify directory for app-defaults files (default is autodetected)]), 689e0146f7Smrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 69492e1cfeSmrgAC_SUBST(appdefaultdir) 70492e1cfeSmrg 71492e1cfeSmrg 72492e1cfeSmrgAC_OUTPUT([Makefile]) 73