143f32c10Smrg 243f32c10Smrgdnl Copyright 2005 Red Hat, Inc. 30d229e23Smrgdnl 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]) 26d3173433SmrgAC_INIT(fonttosfnt, [1.2.4], 27d3173433Smrg [https://gitlab.freedesktop.org/xorg/app/fonttosfnt/-/issues], 28d3173433Smrg [fonttosfnt]) 296ef05171SmrgAC_CONFIG_SRCDIR([Makefile.am]) 306ef05171SmrgAC_CONFIG_HEADERS([config.h]) 3143f32c10Smrg 326ef05171Smrg# Initialize Automake 33fbfaf8f3SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 3443f32c10Smrg 356ef05171Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 366ef05171Smrgm4_ifndef([XORG_MACROS_VERSION], 376ef05171Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 386ef05171SmrgXORG_MACROS_VERSION(1.8) 396ef05171SmrgXORG_DEFAULT_OPTIONS 4043f32c10Smrg 4143f32c10SmrgAC_CHECK_FUNC(setenv, have_setenv=yes, have_setenv=no) 4243f32c10SmrgAC_CHECK_FUNCS([vasprintf]) 4343f32c10SmrgAC_CHECK_DECLS([va_copy], [], [], [ 4443f32c10Smrg AC_INCLUDES_DEFAULT 4543f32c10Smrg #include <stdarg.h> 4643f32c10Smrg]) 4743f32c10Smrg 4843f32c10SmrgAM_CONDITIONAL(NEED_SETENV, [test x$have_setenv = xno]) 4943f32c10Smrg 5043f32c10Smrg# Checks for pkg-config packages 5143f32c10SmrgPKG_CHECK_MODULES(FONTTOSFNT, xproto freetype2 fontenc) 5243f32c10Smrg 5343f32c10Smrg 546ef05171SmrgAC_CONFIG_FILES([ 556ef05171Smrg Makefile 566ef05171Smrg man/Makefile]) 576ef05171SmrgAC_OUTPUT 58