configure.ac revision 1e5fa1c5
1dnl Copyright 2005 Red Hat, Inc. 2dnl 3dnl Permission to use, copy, modify, distribute, and sell this software and its 4dnl documentation for any purpose is hereby granted without fee, provided that 5dnl the above copyright notice appear in all copies and that both that 6dnl copyright notice and this permission notice appear in supporting 7dnl documentation, and that the name of Red Hat not be used in 8dnl advertising or publicity pertaining to distribution of the software without 9dnl specific, written prior permission. Red Hat makes no 10dnl representations about the suitability of this software for any purpose. It 11dnl is provided "as is" without express or implied warranty. 12dnl 13dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 14dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 15dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 16dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 17dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 18dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 19dnl PERFORMANCE OF THIS SOFTWARE. 20dnl 21dnl Process this file with autoconf to create configure. 22 23# Initialize Autoconf 24AC_PREREQ([2.60]) 25AC_INIT(sessreg, [1.0.6], 26 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 27 sessreg) 28AC_CONFIG_SRCDIR([Makefile.am]) 29AC_CONFIG_HEADERS([config.h]) 30AC_CANONICAL_HOST 31AC_USE_SYSTEM_EXTENSIONS 32AC_SYS_LARGEFILE 33 34# Initialize Automake 35AM_INIT_AUTOMAKE([foreign dist-bzip2]) 36AM_MAINTAINER_MODE 37 38# Require xorg-macros: XORG_DEFAULT_OPTIONS 39m4_ifndef([XORG_MACROS_VERSION], 40 [m4_fatal([must install xorg-macros 1.4 or later before running autoconf/autogen])]) 41XORG_MACROS_VERSION(1.4) 42XORG_DEFAULT_OPTIONS 43XORG_WITH_LINT 44 45# Checks for programs. 46AC_PROG_CC 47AC_PROG_CC_C99 48AC_PROG_INSTALL 49 50# Checks for header files. 51AC_CHECK_HEADERS([lastlog.h utmp.h utmpx.h sys/param.h]) 52AC_CHECK_MEMBER([struct utmpx.ut_syslen], 53 HAVE_SYSLEN=1, 54 HAVE_SYSLEN=0, 55 [#include <utmpx.h>]) 56AC_DEFINE_UNQUOTED(HAVE_UTMPX_UT_SYSLEN,$HAVE_SYSLEN, 57 [utmpx structure includes ut_syslen field]) 58 59# Checks for typedefs, structures, and compiler characteristics. 60AC_CHECK_FUNCS([updwtmpx utmpxname]) 61 62# Checks for pkg-config packages 63PKG_CHECK_MODULES(SESSREG, xproto) 64AC_SUBST(SESSREG_CFLAGS) 65 66AC_OUTPUT([Makefile]) 67