configure.ac revision 81440437
13544ea2eSmrgdnl Process this file with autoconf to create configure.
264ce7165Smrg
33544ea2eSmrg# Initialize Autoconf
4169a0819SmrgAC_PREREQ([2.60])
581440437SmrgAC_INIT([xhost], [1.0.6],
6169a0819Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xhost])
73544ea2eSmrgAC_CONFIG_SRCDIR([Makefile.am])
83544ea2eSmrgAC_CONFIG_HEADERS([config.h])
93544ea2eSmrg
103544ea2eSmrg# Initialize Automake
11169a0819SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
1264ce7165SmrgAM_MAINTAINER_MODE
1364ce7165Smrg
14169a0819Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
15fb23d3a8Smrgm4_ifndef([XORG_MACROS_VERSION],
16169a0819Smrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
17169a0819SmrgXORG_MACROS_VERSION(1.8)
183544ea2eSmrgXORG_DEFAULT_OPTIONS
1964ce7165Smrg
2064ce7165Smrg# Checks for pkg-config packages
213544ea2eSmrg# - Both CFLAGS & LIBS needed:
2281440437SmrgPKG_CHECK_MODULES(XHOST, [xproto >= 7.0.22 x11 xmuu])
233544ea2eSmrg# - Only CFLAGS needed, not libs:
243544ea2eSmrgPKG_CHECK_MODULES(XAU, xau)
2564ce7165Smrg
2664ce7165Smrg# Transport selection macro from xtrans.m4
2764ce7165SmrgXTRANS_CONNECTION_FLAGS
2864ce7165Smrg
2964ce7165Smrg# Secure RPC detection macro from xtrans.m4
3064ce7165SmrgXTRANS_SECURE_RPC_FLAGS
3164ce7165Smrg
3281440437Smrg# Link with winsock if mingw target
3381440437Smrgcase $host_os in
3481440437Smrg *mingw*)
3581440437Smrg  AC_CHECK_LIB([ws2_32],[main])
3681440437Smrg  ;;
3781440437Smrg *)
3881440437Smrg  ;;
3981440437Smrgesac
4081440437Smrg
413544ea2eSmrgAC_CONFIG_FILES([
423544ea2eSmrg	Makefile
433544ea2eSmrg	man/Makefile])
443544ea2eSmrgAC_OUTPUT
45