configure.ac revision 7888fd0e
10fa2845dSmrgdnl  Copyright 2005 Red Hat, Inc.
20fa2845dSmrgdnl 
30fa2845dSmrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
40fa2845dSmrgdnl  documentation for any purpose is hereby granted without fee, provided that
50fa2845dSmrgdnl  the above copyright notice appear in all copies and that both that
60fa2845dSmrgdnl  copyright notice and this permission notice appear in supporting
70fa2845dSmrgdnl  documentation, and that the name of Red Hat not be used in
80fa2845dSmrgdnl  advertising or publicity pertaining to distribution of the software without
90fa2845dSmrgdnl  specific, written prior permission.  Red Hat makes no
100fa2845dSmrgdnl  representations about the suitability of this software for any purpose.  It
110fa2845dSmrgdnl  is provided "as is" without express or implied warranty.
120fa2845dSmrgdnl 
130fa2845dSmrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
140fa2845dSmrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
150fa2845dSmrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
160fa2845dSmrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
170fa2845dSmrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
180fa2845dSmrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
190fa2845dSmrgdnl  PERFORMANCE OF THIS SOFTWARE.
200fa2845dSmrgdnl
210fa2845dSmrgdnl Process this file with autoconf to create configure.
220fa2845dSmrg
230fa2845dSmrgAC_PREREQ([2.57])
247888fd0eSmrgAC_INIT(xdriinfo, [1.0.3], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xdriinfo)
250fa2845dSmrgAM_INIT_AUTOMAKE([dist-bzip2])
260fa2845dSmrgAM_MAINTAINER_MODE
270fa2845dSmrg
287888fd0eSmrg# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
297888fd0eSmrgm4_ifndef([XORG_MACROS_VERSION],
307888fd0eSmrg	  [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
317888fd0eSmrgXORG_MACROS_VERSION(1.3)
327888fd0eSmrg
330fa2845dSmrgAM_CONFIG_HEADER(config.h)
340fa2845dSmrg
350fa2845dSmrgAC_PROG_CC
360fa2845dSmrgAC_PROG_INSTALL
370fa2845dSmrg
380fa2845dSmrgAC_TYPE_SIGNAL
390fa2845dSmrg
407888fd0eSmrgXORG_DEFAULT_OPTIONS
417888fd0eSmrg
420fa2845dSmrg# Checks for pkg-config packages
430fa2845dSmrgPKG_CHECK_MODULES(XDRIINFO, x11 glproto)
440fa2845dSmrgAC_SUBST(XDRIINFO_CFLAGS)
450fa2845dSmrgAC_SUBST(XDRIINFO_LIBS)
460fa2845dSmrg
470fa2845dSmrg# Checks for non-pkg-config packages (Mesa or vendor OpenGL)
480fa2845dSmrgAC_SEARCH_LIBS([glXGetProcAddressARB], [GL], [],
490fa2845dSmrg	AC_MSG_FAILURE([cannot find GL library - make sure Mesa or other OpenGL package is installed]),
500fa2845dSmrg	[$XDRIINFO_LIBS])
510fa2845dSmrg
520fa2845dSmrgAC_OUTPUT([Makefile])
53