configure.ac revision 81440437
1dnl Process this file with autoconf to create configure. 2 3# Initialize Autoconf 4AC_PREREQ([2.60]) 5AC_INIT([xhost], [1.0.6], 6 [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xhost]) 7AC_CONFIG_SRCDIR([Makefile.am]) 8AC_CONFIG_HEADERS([config.h]) 9 10# Initialize Automake 11AM_INIT_AUTOMAKE([foreign dist-bzip2]) 12AM_MAINTAINER_MODE 13 14# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 15m4_ifndef([XORG_MACROS_VERSION], 16 [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 17XORG_MACROS_VERSION(1.8) 18XORG_DEFAULT_OPTIONS 19 20# Checks for pkg-config packages 21# - Both CFLAGS & LIBS needed: 22PKG_CHECK_MODULES(XHOST, [xproto >= 7.0.22 x11 xmuu]) 23# - Only CFLAGS needed, not libs: 24PKG_CHECK_MODULES(XAU, xau) 25 26# Transport selection macro from xtrans.m4 27XTRANS_CONNECTION_FLAGS 28 29# Secure RPC detection macro from xtrans.m4 30XTRANS_SECURE_RPC_FLAGS 31 32# Link with winsock if mingw target 33case $host_os in 34 *mingw*) 35 AC_CHECK_LIB([ws2_32],[main]) 36 ;; 37 *) 38 ;; 39esac 40 41AC_CONFIG_FILES([ 42 Makefile 43 man/Makefile]) 44AC_OUTPUT 45