configure.ac revision ec74af46
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
23ec74af46Smrg# Initialize Autoconf
24ec74af46SmrgAC_PREREQ([2.60])
25ec74af46SmrgAC_INIT([xdriinfo], [1.0.4],
26ec74af46Smrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [xdriinfo])
27ec74af46SmrgAC_CONFIG_SRCDIR([Makefile.am])
28ec74af46SmrgAC_CONFIG_HEADERS([config.h])
29ec74af46Smrg
30ec74af46Smrg# Initialize Automake
31ec74af46SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
320fa2845dSmrgAM_MAINTAINER_MODE
330fa2845dSmrg
34ec74af46Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
357888fd0eSmrgm4_ifndef([XORG_MACROS_VERSION],
36ec74af46Smrg	  [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
37ec74af46SmrgXORG_MACROS_VERSION(1.8)
387888fd0eSmrgXORG_DEFAULT_OPTIONS
397888fd0eSmrg
400fa2845dSmrg# Checks for pkg-config packages
410fa2845dSmrgPKG_CHECK_MODULES(XDRIINFO, x11 glproto)
420fa2845dSmrg
430fa2845dSmrg# Checks for non-pkg-config packages (Mesa or vendor OpenGL)
440fa2845dSmrgAC_SEARCH_LIBS([glXGetProcAddressARB], [GL], [],
450fa2845dSmrg	AC_MSG_FAILURE([cannot find GL library - make sure Mesa or other OpenGL package is installed]),
460fa2845dSmrg	[$XDRIINFO_LIBS])
470fa2845dSmrg
480fa2845dSmrgAC_OUTPUT([Makefile])
49