configure.ac revision d63fdb69
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.57]) 25 26AC_INIT(libfontenc, 1.0.5, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libfontenc) 27AM_INIT_AUTOMAKE([dist-bzip2]) 28AM_MAINTAINER_MODE 29 30# Require xorg-macros: XORG_CWARNFLAGS, XORG_CHANGELOG, XORG_WITH_LINT 31m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])]) 32XORG_MACROS_VERSION(1.2) 33AM_CONFIG_HEADER(config.h) 34 35# Check for progs 36AC_PROG_CC 37AC_PROG_LIBTOOL 38XORG_CWARNFLAGS 39 40encodingsdir=${libdir}/X11/fonts/encodings 41AC_ARG_WITH(encodingsdir, AC_HELP_STRING([--with-encodingsdir=<pathname>], 42 [Path to font encodings]), [encodingsdir="$withval"]) 43ENCODINGSDIR="$encodingsdir" 44AC_SUBST(ENCODINGSDIR) 45 46# zlib 47 48AC_CHECK_LIB(z, gzclose) 49 50# Check for dependencies 51PKG_CHECK_MODULES(FONTENC, xproto) 52FONTENC_CFLAGS="$CWARNFLAGS $FONTENC_CFLAGS" 53AC_SUBST(FONTENC_CFLAGS) 54AC_SUBST(FONTENC_LIBS) 55 56dnl Allow checking code with lint, sparse, etc. 57XORG_WITH_LINT 58LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}" 59 60XORG_RELEASE_VERSION 61XORG_CHANGELOG 62 63AC_OUTPUT([Makefile 64 src/Makefile 65 fontenc.pc]) 66