configure.ac revision d2f28e1b
143f32c10Smrg
243f32c10Smrgdnl  Copyright 2005 Red Hat, Inc.
343f32c10Smrgdnl 
443f32c10Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
543f32c10Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
643f32c10Smrgdnl  the above copyright notice appear in all copies and that both that
743f32c10Smrgdnl  copyright notice and this permission notice appear in supporting
843f32c10Smrgdnl  documentation, and that the name of Red Hat not be used in
943f32c10Smrgdnl  advertising or publicity pertaining to distribution of the software without
1043f32c10Smrgdnl  specific, written prior permission.  Red Hat makes no
1143f32c10Smrgdnl  representations about the suitability of this software for any purpose.  It
1243f32c10Smrgdnl  is provided "as is" without express or implied warranty.
13d2f28e1bSmrgdnl
1443f32c10Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1543f32c10Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1643f32c10Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1743f32c10Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1843f32c10Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1943f32c10Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2043f32c10Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
2143f32c10Smrgdnl
2243f32c10Smrgdnl Process this file with autoconf to create configure.
2343f32c10Smrg
246ef05171Smrg# Initialize Autoconf
256ef05171SmrgAC_PREREQ([2.60])
26d2f28e1bSmrgAC_INIT(fonttosfnt,[1.2.1], [https://gitlab.freedesktop.org/xorg/app/fonttosfnt/issues],fonttosfnt)
276ef05171SmrgAC_CONFIG_SRCDIR([Makefile.am])
286ef05171SmrgAC_CONFIG_HEADERS([config.h])
2943f32c10Smrg
306ef05171Smrg# Initialize Automake
316ef05171SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
3243f32c10Smrg
336ef05171Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
346ef05171Smrgm4_ifndef([XORG_MACROS_VERSION],
356ef05171Smrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
366ef05171SmrgXORG_MACROS_VERSION(1.8)
376ef05171SmrgXORG_DEFAULT_OPTIONS
3843f32c10Smrg
3943f32c10SmrgAC_CHECK_FUNC(setenv, have_setenv=yes, have_setenv=no)
4043f32c10SmrgAC_CHECK_FUNCS([vasprintf])
4143f32c10SmrgAC_CHECK_DECLS([va_copy], [], [], [
4243f32c10Smrg	AC_INCLUDES_DEFAULT
4343f32c10Smrg	#include <stdarg.h>
4443f32c10Smrg])
4543f32c10Smrg
4643f32c10SmrgAM_CONDITIONAL(NEED_SETENV, [test x$have_setenv = xno])
4743f32c10Smrg
4843f32c10Smrg# Checks for pkg-config packages
4943f32c10SmrgPKG_CHECK_MODULES(FONTTOSFNT, xproto freetype2 fontenc)
5043f32c10Smrg
5143f32c10Smrg
526ef05171SmrgAC_CONFIG_FILES([
536ef05171Smrg	Makefile
546ef05171Smrg	man/Makefile])
556ef05171SmrgAC_OUTPUT
56