configure.ac revision 4e411241
18c9fbc29Smrg
28c9fbc29Smrgdnl  Copyright 2005 Red Hat, Inc.
38c9fbc29Smrgdnl 
48c9fbc29Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
58c9fbc29Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
68c9fbc29Smrgdnl  the above copyright notice appear in all copies and that both that
78c9fbc29Smrgdnl  copyright notice and this permission notice appear in supporting
88c9fbc29Smrgdnl  documentation, and that the name of Red Hat not be used in
98c9fbc29Smrgdnl  advertising or publicity pertaining to distribution of the software without
108c9fbc29Smrgdnl  specific, written prior permission.  Red Hat makes no
118c9fbc29Smrgdnl  representations about the suitability of this software for any purpose.  It
128c9fbc29Smrgdnl  is provided "as is" without express or implied warranty.
138c9fbc29Smrgdnl 
148c9fbc29Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
158c9fbc29Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
168c9fbc29Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
178c9fbc29Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
188c9fbc29Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
198c9fbc29Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
208c9fbc29Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
218c9fbc29Smrgdnl
228c9fbc29Smrgdnl Process this file with autoconf to create configure.
238c9fbc29Smrg
248c9fbc29SmrgAC_PREREQ([2.57])
258c9fbc29Smrg
264e411241SmrgAC_INIT(libxkbfile, 1.0.6, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], libxkbfile)
278c9fbc29SmrgAM_INIT_AUTOMAKE([dist-bzip2])
288c9fbc29SmrgAM_MAINTAINER_MODE
298c9fbc29Smrg
304e411241Smrg# Require xorg-macros: XORG_DEFAULT_OPTIONS
314e411241Smrgm4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.3 or later before running autoconf/autogen])])
324e411241SmrgXORG_MACROS_VERSION(1.3)
338c9fbc29SmrgAM_CONFIG_HEADER(config.h)
348c9fbc29Smrg
358c9fbc29Smrg# Check for progs
368c9fbc29SmrgAC_PROG_CC
378c9fbc29SmrgAC_PROG_LIBTOOL
388c9fbc29Smrg
394e411241SmrgXORG_DEFAULT_OPTIONS
404e411241Smrg
418c9fbc29SmrgAC_CHECK_FUNC(strcasecmp, [], AC_DEFINE([NEED_STRCASECMP], 1,
424e411241Smrg                                        [Do not have 'strcasecmp'.]))
434e411241SmrgAC_CHECK_FUNC(getc_unlocked, AC_DEFINE([HAVE_UNLOCKED_STDIO], 1,
444e411241Smrg				       ['Unlocked stdio']), [])
458c9fbc29Smrg
468c9fbc29Smrg# Check for dependencies
478c9fbc29SmrgPKG_CHECK_MODULES(XKBFILE, x11 kbproto)
488c9fbc29SmrgAC_SUBST(XKBFILE_CFLAGS)
498c9fbc29SmrgAC_SUBST(XKBFILE_LIBS)
508c9fbc29Smrg		  
518c9fbc29SmrgAC_OUTPUT([Makefile
528c9fbc29Smrg	   src/Makefile
538c9fbc29Smrg           xkbfile.pc])
54