configure.ac revision 1bedbe3f
11bedbe3fSmrg#
21bedbe3fSmrg#  Copyright © 2003 Keith Packard, Noah Levitt
31bedbe3fSmrg#
41bedbe3fSmrg#  Permission to use, copy, modify, distribute, and sell this software and its
51bedbe3fSmrg#  documentation for any purpose is hereby granted without fee, provided that
61bedbe3fSmrg#  the above copyright notice appear in all copies and that both that
71bedbe3fSmrg#  copyright notice and this permission notice appear in supporting
81bedbe3fSmrg#  documentation, and that the name of Keith Packard not be used in
91bedbe3fSmrg#  advertising or publicity pertaining to distribution of the software without
101bedbe3fSmrg#  specific, written prior permission.  Keith Packard makes no
111bedbe3fSmrg#  representations about the suitability of this software for any purpose.  It
121bedbe3fSmrg#  is provided "as is" without express or implied warranty.
131bedbe3fSmrg#
141bedbe3fSmrg#  KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
151bedbe3fSmrg#  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
161bedbe3fSmrg#  EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
171bedbe3fSmrg#  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
181bedbe3fSmrg#  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
191bedbe3fSmrg#  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
201bedbe3fSmrg#  PERFORMANCE OF THIS SOFTWARE.
211bedbe3fSmrg#
22ba6a1819Smrg
231bedbe3fSmrg# Initialize Autoconf
24549e21daSmrgAC_PREREQ([2.60])
251bedbe3fSmrgAC_INIT([libFS], [1.0.5],
26549e21daSmrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libFS])
271bedbe3fSmrgAC_CONFIG_SRCDIR([Makefile.am])
281bedbe3fSmrgAC_CONFIG_HEADERS([config.h])
29ba6a1819Smrg
301bedbe3fSmrg# Initialize Automake
311bedbe3fSmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
32ba6a1819Smrg
331bedbe3fSmrg# Initialize libtool
34ba6a1819SmrgAC_PROG_LIBTOOL
35ba6a1819Smrg
361bedbe3fSmrg# Require X.Org macros 1.8 or later
371bedbe3fSmrgm4_ifndef([XORG_MACROS_VERSION],
381bedbe3fSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
391bedbe3fSmrgXORG_MACROS_VERSION(1.8)
401bedbe3fSmrgXORG_DEFAULT_OPTIONS
411bedbe3fSmrgXORG_CHECK_MALLOC_ZERO
42549e21daSmrg
431bedbe3fSmrg# Obtain compiler/linker options for depedencies
441bedbe3fSmrgPKG_CHECK_MODULES(FS, xproto >= 7.0.17 fontsproto xtrans)
45ba6a1819Smrg
461bedbe3fSmrg# Find needed libraries for TCP sockets (pre-pended in $LIBS)
47ba6a1819SmrgXTRANS_CONNECTION_FLAGS
48ba6a1819Smrg
491bedbe3fSmrg# Allow checking code with lint, sparse, etc.
50ba6a1819SmrgXORG_WITH_LINT
51ba6a1819SmrgXORG_LINT_LIBRARY([FS])
52ba6a1819Smrg
531bedbe3fSmrgAC_CONFIG_FILES([Makefile
541bedbe3fSmrg		src/Makefile
551bedbe3fSmrg		test/Makefile
561bedbe3fSmrg		libfs.pc])
571bedbe3fSmrgAC_OUTPUT
58