1# Copyright © 2003 Keith Packard, Noah Levitt 2# 3# Permission to use, copy, modify, distribute, and sell this software and its 4# documentation for any purpose is hereby granted without fee, provided that 5# the above copyright notice appear in all copies and that both that 6# copyright notice and this permission notice appear in supporting 7# documentation, and that the name of Keith Packard not be used in 8# advertising or publicity pertaining to distribution of the software without 9# specific, written prior permission. Keith Packard makes no 10# representations about the suitability of this software for any purpose. It 11# is provided "as is" without express or implied warranty. 12# 13# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 14# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 15# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 16# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 17# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 18# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 19# PERFORMANCE OF THIS SOFTWARE. 20# 21 22# Initialize Autoconf 23AC_PREREQ([2.60]) 24AC_INIT([xtrans], [1.6.0], 25 [https://gitlab.freedesktop.org/xorg/lib/libxtrans/-/issues], [xtrans]) 26AC_CONFIG_SRCDIR([Makefile.am]) 27 28# Initialize Automake 29AM_INIT_AUTOMAKE([foreign dist-xz]) 30 31# Require xorg-macros minimum of 1.12 for DocBook external references 32m4_ifndef([XORG_MACROS_VERSION], 33 [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])]) 34XORG_MACROS_VERSION(1.12) 35XORG_DEFAULT_OPTIONS 36XORG_ENABLE_DOCS 37XORG_WITH_XMLTO(0.0.22) 38XORG_WITH_FOP 39XORG_WITH_XSLTPROC 40XORG_CHECK_SGML_DOCTOOLS(1.8) 41 42# Because xtrans is included into other modules rather than being linked 43# with, these defines have to be added to the cflags line 44 45# fchown() 46 47AC_CHECK_FUNC(fchown, [fchown_define="-DHAS_FCHOWN"], [fchown_define=""]) 48 49AC_SUBST(fchown_define) 50 51# sticky bit 52# 53# if any system exists without sticky dir bits this 54# needs to be redone with a real autoconf test 55 56sticky_bit_define="-DHAS_STICKY_DIR_BIT" 57 58AC_SUBST(sticky_bit_define) 59 60AC_CONFIG_FILES([Makefile 61 doc/Makefile 62 xtrans.pc]) 63AC_OUTPUT 64