configure.ac revision d7ffce2a
1dnl 2dnl Process this file with autoconf to create configure. 3 4# Initialize Autoconf 5AC_PREREQ([2.60]) 6AC_INIT([xorg-cf-files], [1.0.4], 7 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 8 [xorg-cf-files]) 9AC_CONFIG_SRCDIR([Makefile.am]) 10 11# Initialize Automake 12AM_INIT_AUTOMAKE([foreign dist-bzip2]) 13AM_MAINTAINER_MODE 14 15# Require xorg-macros 1.4 or later: XORG_DEFAULT_OPTIONS, XORG_INSTALL 16m4_ifndef([XORG_MACROS_VERSION], 17 [m4_fatal([must install xorg-macros 1.4 or later before running autoconf/autogen])]) 18XORG_MACROS_VERSION(1.4) 19XORG_DEFAULT_OPTIONS 20 21# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR 22m4_ifndef([XORG_FONT_MACROS_VERSION], 23 [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])]) 24XORG_FONT_MACROS_VERSION(1.1) 25XORG_FONTROOTDIR 26XORG_FONTSUBDIR([ENCODINGSDIR],[encodingsdir],[encodings]) 27 28m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) 29 30DEFAULT_XCONFDIR="${libdir}/X11/config" 31AC_ARG_WITH(config-dir, 32 AS_HELP_STRING([--with-config-dir=<path>], [Path to config dir (default: ${libdir}/X11/config)]), 33 [XCONFDIR="$withval"], 34 [XCONFDIR="$DEFAULT_XCONFDIR"]) 35AC_SUBST(XCONFDIR) 36 37AC_OUTPUT([ 38 Makefile 39 site.def 40]) 41