configure.ac revision 6af7124f
1# 2# Copyright © 2003 Keith Packard, Noah Levitt 3# 4# Permission to use, copy, modify, distribute, and sell this software and its 5# documentation for any purpose is hereby granted without fee, provided that 6# the above copyright notice appear in all copies and that both that 7# copyright notice and this permission notice appear in supporting 8# documentation, and that the name of Keith Packard not be used in 9# advertising or publicity pertaining to distribution of the software without 10# specific, written prior permission. Keith Packard makes no 11# representations about the suitability of this software for any purpose. It 12# is provided "as is" without express or implied warranty. 13# 14# KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16# EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20# PERFORMANCE OF THIS SOFTWARE. 21# 22 23# Initialize Autoconf 24AC_PREREQ([2.60]) 25AC_INIT([libFS], [1.0.6], 26 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [libFS]) 27AC_CONFIG_SRCDIR([Makefile.am]) 28AC_CONFIG_HEADERS([config.h]) 29 30# Initialize Automake 31AM_INIT_AUTOMAKE([foreign dist-bzip2]) 32 33# Set common system defines for POSIX extensions, such as _GNU_SOURCE 34# Must be called before any macros that run the compiler (like 35# AC_PROG_LIBTOOL) to avoid autoconf errors. 36AC_USE_SYSTEM_EXTENSIONS 37 38# Initialize libtool 39AC_PROG_LIBTOOL 40 41# Require X.Org macros 1.8 or later 42m4_ifndef([XORG_MACROS_VERSION], 43 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 44XORG_MACROS_VERSION(1.8) 45XORG_DEFAULT_OPTIONS 46XORG_CHECK_MALLOC_ZERO 47 48# Obtain compiler/linker options for depedencies 49PKG_CHECK_MODULES(FS, xproto >= 7.0.17 fontsproto xtrans) 50 51# Find needed libraries for TCP sockets (pre-pended in $LIBS) 52XTRANS_CONNECTION_FLAGS 53 54# Checks for library functions. 55AC_CHECK_FUNCS([strlcpy]) 56 57# Allow checking code with lint, sparse, etc. 58XORG_WITH_LINT 59XORG_LINT_LIBRARY([FS]) 60 61AC_CONFIG_FILES([Makefile 62 src/Makefile 63 test/Makefile 64 libfs.pc]) 65AC_OUTPUT 66