1 # Copyright © 2003 Keith Packard, Noah Levitt
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.
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.
24 AC_INIT([xtrans], [1.2.7],
25 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xtrans])
26 AC_CONFIG_SRCDIR([Makefile.am])
29 AM_INIT_AUTOMAKE([foreign dist-bzip2])
32 # Require xorg-macros minimum of 1.12 for DocBook external references
33 m4_ifndef([XORG_MACROS_VERSION],
34 [m4_fatal([must install xorg-macros 1.12 or later before running autoconf/autogen])])
35 XORG_MACROS_VERSION(1.12)
38 XORG_WITH_XMLTO(0.0.22)
41 XORG_CHECK_SGML_DOCTOOLS(1.8)
43 # Because xtrans is included into other modules rather than being linked
44 # with, these defines have to be added to the cflags line
48 AC_CHECK_FUNC(fchown, [fchown_define="-DHAS_FCHOWN"], [fchown_define=""])
50 AC_SUBST(fchown_define)
54 # if any system exists without sticky dir bits this
55 # needs to be redone with a real autoconf test
57 sticky_bit_define="-DHAS_STICKY_DIR_BIT"
59 AC_SUBST(sticky_bit_define)
61 AC_CONFIG_FILES([Makefile