configure.ac revision e120bd27
16c321187Smrg 26c321187Smrg# -*- Autoconf -*- 36c321187Smrg# Process this file with autoconf to produce a configure script. 46c321187Smrg 5e120bd27SmrgAC_PREREQ([2.60]) 66c321187Smrg 76c321187SmrgAC_INIT([libXmu], 8e120bd27Smrg [1.1.0], 96c321187Smrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], 10e120bd27Smrg [libXmu]) 116c321187Smrg 126c321187SmrgAC_CONFIG_SRCDIR([Makefile.am]) 136c321187SmrgAC_CONFIG_AUX_DIR(.) 14e120bd27SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2]) 156c321187Smrg 166c321187SmrgAM_MAINTAINER_MODE 176c321187Smrg 18e120bd27Smrg# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS 19e120bd27Smrgm4_ifndef([XORG_MACROS_VERSION], 20e120bd27Smrg [m4_fatal([must install xorg-macros 1.10 or later before running autoconf/autogen])]) 21e120bd27SmrgXORG_MACROS_VERSION(1.10) 22e120bd27SmrgXORG_DEFAULT_OPTIONS 23e120bd27SmrgXORG_ENABLE_DOCS 24e120bd27SmrgXORG_WITH_XMLTO(0.0.20) 25e120bd27SmrgXORG_WITH_FOP 26e120bd27SmrgXORG_CHECK_SGML_DOCTOOLS(1.5) 27e120bd27Smrg 286c321187SmrgAM_CONFIG_HEADER([config.h]) 296c321187Smrg 306c321187Smrg 316c321187Smrg# Checks for programs. 326c321187SmrgAC_PROG_LIBTOOL 336c321187Smrg 346c321187Smrg# Checks for pkg-config packages 3593493779SmrgPKG_CHECK_MODULES(XMU, xt xext x11 xextproto) 366c321187SmrgPKG_CHECK_MODULES(XMUU, x11) 376c321187Smrg 386c321187Smrg# CvtStdSel.c needs to know which network transports to build hostname 396c321187Smrg# conversion routines for 406c321187SmrgXTRANS_CONNECTION_FLAGS 416c321187Smrg 426c321187Smrg# 436c321187Smrg# Assume that we have sprintf. If a system shows up 446c321187Smrg# that doesn't, we will deal with it at that point. 456c321187Smrg# 466c321187Smrg# The way to deal with it is: 476c321187Smrg# 486c321187Smrg# 1. Add a test for sprintf it here in configure.ac 496c321187Smrg# that sets or unsets HAS_SNPRINTF as appropriate 506c321187Smrg# 516c321187Smrg# 2. add a copy of xc/lib/misc/snprintf.c 526c321187Smrg# 536c321187Smrg# The source file in question is Lower.c 546c321187Smrg# 556c321187Smrg 566c321187SmrgAC_DEFINE(HAS_SNPRINTF, [], [Whether we have snprintf()]) 576c321187SmrgAC_SUBST(HAS_SNPRINTF) 586c321187Smrg 596c321187Smrgdnl Allow checking code with lint, sparse, etc. 606c321187SmrgXORG_WITH_LINT 616c321187SmrgXORG_LINT_LIBRARY([Xmu]) 626c321187SmrgLINTLIBUU=`echo $LINTLIB | sed s/Xmu/Xmuu/` 636c321187SmrgAC_SUBST(LINTLIBUU) 646c321187Smrg 656c321187SmrgAC_OUTPUT([Makefile 66e120bd27Smrg doc/Makefile 676c321187Smrg include/Makefile 686c321187Smrg src/Makefile 696c321187Smrg xmu.pc 706c321187Smrg xmuu.pc]) 71