upload tizen2.0 source
[framework/uifw/xorg/lib/xtrans.git] / configure.ac
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
23 AC_PREREQ([2.60])
24 AC_INIT([xtrans], [1.2.7],
25         [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xtrans])
26 AC_CONFIG_SRCDIR([Makefile.am])
27
28 # Initialize Automake
29 AM_INIT_AUTOMAKE([foreign dist-bzip2])
30 AM_MAINTAINER_MODE
31
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)
36 XORG_DEFAULT_OPTIONS
37 XORG_ENABLE_DOCS
38 XORG_WITH_XMLTO(0.0.22)
39 XORG_WITH_FOP
40 XORG_WITH_XSLTPROC
41 XORG_CHECK_SGML_DOCTOOLS(1.8)
42
43 # Because xtrans is included into other modules rather than being linked
44 # with, these defines have to be added to the cflags line
45
46 # fchown()
47
48 AC_CHECK_FUNC(fchown, [fchown_define="-DHAS_FCHOWN"], [fchown_define=""])
49
50 AC_SUBST(fchown_define)
51
52 # sticky bit
53 #
54 # if any system exists without sticky dir bits this
55 # needs to be redone with a real autoconf test
56
57 sticky_bit_define="-DHAS_STICKY_DIR_BIT"
58
59 AC_SUBST(sticky_bit_define)
60
61 AC_CONFIG_FILES([Makefile
62                 doc/Makefile
63                 xtrans.pc])
64 AC_OUTPUT