Blame configure.ac

Packit 2bba5f
#  Copyright 2005 Red Hat, Inc.
Packit 2bba5f
#
Packit 2bba5f
#  Permission to use, copy, modify, distribute, and sell this software and its
Packit 2bba5f
#  documentation for any purpose is hereby granted without fee, provided that
Packit 2bba5f
#  the above copyright notice appear in all copies and that both that
Packit 2bba5f
#  copyright notice and this permission notice appear in supporting
Packit 2bba5f
#  documentation, and that the name of Red Hat not be used in
Packit 2bba5f
#  advertising or publicity pertaining to distribution of the software without
Packit 2bba5f
#  specific, written prior permission.  Red Hat makes no
Packit 2bba5f
#  representations about the suitability of this software for any purpose.  It
Packit 2bba5f
#  is provided "as is" without express or implied warranty.
Packit 2bba5f
#
Packit 2bba5f
#  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 2bba5f
#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 2bba5f
#  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 2bba5f
#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 2bba5f
#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 2bba5f
#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
Packit 2bba5f
#  PERFORMANCE OF THIS SOFTWARE.
Packit 2bba5f
#
Packit 2bba5f
Packit 2bba5f
# Initialize Autoconf
Packit 2bba5f
AC_PREREQ([2.60])
Packit 2bba5f
AC_INIT([libfontenc], [1.1.3],
Packit 2bba5f
        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libfontenc])
Packit 2bba5f
AC_CONFIG_SRCDIR([Makefile.am])
Packit 2bba5f
AC_CONFIG_HEADERS([config.h])
Packit 2bba5f
Packit 2bba5f
# Initialize Automake
Packit 2bba5f
AM_INIT_AUTOMAKE([foreign dist-bzip2])
Packit 2bba5f
Packit 2bba5f
# Initialize libtool
Packit 2bba5f
AC_PROG_LIBTOOL
Packit 2bba5f
Packit 2bba5f
# Require X.Org macros 1.8 or later
Packit 2bba5f
m4_ifndef([XORG_MACROS_VERSION],
Packit 2bba5f
          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
Packit 2bba5f
XORG_MACROS_VERSION(1.8)
Packit 2bba5f
XORG_DEFAULT_OPTIONS
Packit 2bba5f
Packit 2bba5f
# Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
Packit 2bba5f
m4_ifndef([XORG_FONT_MACROS_VERSION],
Packit 2bba5f
	  [m4_fatal([must install X.Org font-util 1.1 or later before running autoconf/autogen])])
Packit 2bba5f
XORG_FONT_MACROS_VERSION(1.1)
Packit 2bba5f
XORG_FONTSUBDIR([ENCODINGSDIR], [encodingsdir], [encodings])
Packit 2bba5f
Packit 2bba5f
# zlib
Packit 2bba5f
AC_CHECK_HEADER([zlib.h], [],
Packit 2bba5f
                AC_MSG_FAILURE([zlib.h is required to compile libfontenc]))
Packit 2bba5f
AC_CHECK_LIB(z, gzclose, [],
Packit 2bba5f
             AC_MSG_FAILURE([zlib is required to compile libfontenc]))
Packit 2bba5f
Packit 2bba5f
# Obtain compiler/linker options for depedencies
Packit 2bba5f
PKG_CHECK_MODULES(FONTENC, xproto)
Packit 2bba5f
Packit 2bba5f
# Allow checking code with lint, sparse, etc.
Packit 2bba5f
XORG_WITH_LINT
Packit 2bba5f
LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
Packit 2bba5f
Packit 2bba5f
AC_CONFIG_FILES([Makefile
Packit 2bba5f
		src/Makefile
Packit 2bba5f
		fontenc.pc])
Packit 2bba5f
AC_OUTPUT