13e747e6dSmrgdnl Copyright 2005 Red Hat, Inc. 2c2535118Smrgdnl 33e747e6dSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 43e747e6dSmrgdnl documentation for any purpose is hereby granted without fee, provided that 53e747e6dSmrgdnl the above copyright notice appear in all copies and that both that 63e747e6dSmrgdnl copyright notice and this permission notice appear in supporting 73e747e6dSmrgdnl documentation, and that the name of Red Hat not be used in 83e747e6dSmrgdnl advertising or publicity pertaining to distribution of the software without 93e747e6dSmrgdnl specific, written prior permission. Red Hat makes no 103e747e6dSmrgdnl representations about the suitability of this software for any purpose. It 113e747e6dSmrgdnl is provided "as is" without express or implied warranty. 12c2535118Smrgdnl 133e747e6dSmrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 143e747e6dSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 153e747e6dSmrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 163e747e6dSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 173e747e6dSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 183e747e6dSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 193e747e6dSmrgdnl PERFORMANCE OF THIS SOFTWARE. 203e747e6dSmrgdnl 213e747e6dSmrgdnl Process this file with autoconf to create configure. 223e747e6dSmrg 232d96a817Smrg# Initialize Autoconf 246d8e82c3SmrgAC_PREREQ([2.64]) 256d8e82c3SmrgAC_INIT([twm], [1.0.13.1], 26f66df612Smrg [https://gitlab.freedesktop.org/xorg/app/twm/issues], [twm]) 272d96a817SmrgAC_CONFIG_SRCDIR([Makefile.am]) 282d96a817SmrgAC_CONFIG_HEADERS([config.h]) 29ffd25bcaSmrgAC_USE_SYSTEM_EXTENSIONS 302d96a817Smrg 312d96a817Smrg# Initialize Automake 32f66df612SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 333e747e6dSmrg 347a2631fcSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 357a2631fcSmrgm4_ifndef([XORG_MACROS_VERSION], 367a2631fcSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 377a2631fcSmrgXORG_MACROS_VERSION(1.8) 387a2631fcSmrgXORG_DEFAULT_OPTIONS 397a2631fcSmrg 403e747e6dSmrgAC_PROG_YACC 417a2631fcSmrgAC_PATH_PROG([YACC_INST], $YACC) 422d96a817Smrgif test ! -f "$srcdir/gram.c"; then 432d96a817Smrg if test -z "$YACC_INST"; then 442d96a817Smrg AC_MSG_ERROR([yacc not found - unable to compile gram.y]) 452d96a817Smrg fi 462d96a817Smrgfi 476d8e82c3Smrgm4_version_prereq([2.70], [AC_PROG_LEX(noyywrap)], [AC_PROG_LEX]) 483e747e6dSmrg 497a2631fcSmrgAC_CHECK_FUNCS([mkstemp]) 503e747e6dSmrg 513e747e6dSmrg# Checks for pkg-config packages 52f66df612SmrgPKG_CHECK_MODULES([TWM], [x11 xext xt xmu ice sm xproto >= 7.0.17]) 53f66df612SmrgPKG_CHECK_MODULES([XRANDR], [xrandr], [have_xrandr=yes], [have_xrandr=no]) 54f66df612Smrgif test "$have_xrandr" = yes; then 55f66df612Smrg AC_DEFINE([HAVE_XRANDR], [1], [Define to 1 if you have the xrandr headers/libraries]) 56f66df612Smrgfi 573e747e6dSmrg 589cd34f4bSmrgAC_CONFIG_FILES([Makefile 599cd34f4bSmrg src/Makefile 609cd34f4bSmrg man/Makefile]) 619cd34f4bSmrgAC_OUTPUT 62