2005-07-01 22:29:53 +02:00
|
|
|
dnl $Id$
|
|
|
|
dnl
|
|
|
|
dnl Copyright © 2003-2005 Keith Packard, Daniel Stone
|
|
|
|
dnl
|
|
|
|
dnl Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
dnl documentation for any purpose is hereby granted without fee, provided that
|
|
|
|
dnl the above copyright notice appear in all copies and that both that
|
|
|
|
dnl copyright notice and this permission notice appear in supporting
|
|
|
|
dnl documentation, and that the names of Keith Packard and Daniel Stone not be
|
|
|
|
dnl used in advertising or publicity pertaining to distribution of the software
|
|
|
|
dnl without specific, written prior permission. Keith Packard and Daniel Stone
|
|
|
|
dnl make no representations about the suitability of this software for any
|
|
|
|
dnl purpose. It is provided "as is" without express or implied warranty.
|
|
|
|
dnl
|
|
|
|
dnl KEITH PACKARD AND DANIEL STONE DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
|
|
|
|
dnl SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
|
|
|
|
dnl IN NO EVENT SHALL KEITH PACKARD OR DANIEL STONE BE LIABLE FOR ANY SPECIAL,
|
|
|
|
dnl INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
|
dnl LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
|
|
|
dnl OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
dnl PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
dnl
|
|
|
|
dnl Process this file with autoconf to create configure.
|
|
|
|
|
2005-08-02 00:13:20 +02:00
|
|
|
AC_PREREQ(2.57)
|
2005-08-05 00:31:20 +02:00
|
|
|
dnl This is the not the Xorg version number, it's the server version number.
|
|
|
|
dnl Yes, that's weird.
|
|
|
|
AC_INIT([xorg-server], 0.99.1, [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], xorg-server)
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_CONFIG_SRCDIR([Makefile.am])
|
2005-07-03 17:51:23 +02:00
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2 foreign])
|
2005-07-01 22:29:53 +02:00
|
|
|
AM_MAINTAINER_MODE
|
2005-08-21 21:15:11 +02:00
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
dnl this gets generated by autoheader, and thus contains all the defines. we
|
|
|
|
dnl don't ever actually use it, internally.
|
|
|
|
AC_CONFIG_HEADERS(include/do-not-use-config.h)
|
|
|
|
dnl xorg-server.h is an external header, designed to be included by loadable
|
|
|
|
dnl drivers.
|
|
|
|
AC_CONFIG_HEADERS(include/xorg-server.h)
|
|
|
|
dnl dix-config.h covers most of the DIX (i.e. everything but the DDX, not just
|
|
|
|
dnl dix/).
|
|
|
|
AC_CONFIG_HEADERS(include/dix-config.h)
|
2005-07-05 00:18:40 +02:00
|
|
|
dnl xorg-config.h covers the Xorg DDX.
|
|
|
|
AC_CONFIG_HEADERS(include/xorg-config.h)
|
2005-07-14 05:32:09 +02:00
|
|
|
dnl xkb-config.h covers XKB for the Xorg and Xnest DDXs.
|
|
|
|
AC_CONFIG_HEADERS(include/xkb-config.h)
|
2005-07-05 00:18:40 +02:00
|
|
|
dnl xwin-config.h covers the XWin DDX.
|
|
|
|
AC_CONFIG_HEADERS(include/xwin-config.h)
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_PROG_CC
|
|
|
|
AM_PROG_AS
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
|
|
|
AC_LIBTOOL_WIN32_DLL
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
PKG_PROG_PKG_CONFIG
|
2005-07-05 00:18:40 +02:00
|
|
|
AC_PROG_LEX
|
|
|
|
AC_PROG_YACC
|
2005-07-01 22:29:53 +02:00
|
|
|
|
|
|
|
AC_HEADER_DIRENT
|
|
|
|
AC_HEADER_STDC
|
|
|
|
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_C_CONST
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_C_BIGENDIAN([ENDIAN="X_BIG_ENDIAN"], [ENDIAN="X_LITTLE_ENDIAN"])
|
|
|
|
|
|
|
|
AC_CHECK_SIZEOF([unsigned long])
|
|
|
|
if test "$ac_cv_sizeof_unsigned_long" = 8; then
|
|
|
|
AC_DEFINE(_XSERVER64, 1, [Define to 1 if unsigned long is 64 bits.])
|
|
|
|
fi
|
2005-08-06 21:14:24 +02:00
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_TYPE_PID_T
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl Checks for library functions.
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_FUNC_VPRINTF
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp strchr strrchr \
|
|
|
|
strtol getopt getopt_long vsnprintf walkcontext backtrace])
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_FUNC_ALLOCA
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl Old HAS_* names used in os/*.c.
|
|
|
|
AC_CHECK_FUNC([getdtablesize],
|
|
|
|
AC_DEFINE(HAS_GETDTABLESIZE, 1, [Have the `getdtablesize' function.]))
|
|
|
|
AC_CHECK_FUNC([getifaddrs],
|
|
|
|
AC_DEFINE(HAS_GETIFADDRS, 1, [Have the `getifaddrs' function.]))
|
|
|
|
AC_CHECK_FUNC([getpeereid],
|
|
|
|
AC_DEFINE(HAS_GETPEEREID, 1, [Have the `getpeereid' function.]))
|
|
|
|
AC_CHECK_FUNC([getpeerucred],
|
|
|
|
AC_DEFINE(HAS_GETPEERUCRED, 1, [Have the `getpeerucred' function.]))
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-08-04 20:45:46 +02:00
|
|
|
AM_CONDITIONAL(NEED_VSNPRINTF, [test x$HAVE_VSNPRINTF = xno])
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl Find the math libary
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_CHECK_LIB(m, sqrt)
|
|
|
|
|
|
|
|
AC_CHECK_HEADERS([ndbm.h dbm.h rpcsvc/dbm.h])
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl AGPGART headers
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_CHECK_HEADERS([linux/agpgart.h sys/agpio.h])
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl APM header
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_CHECK_HEADERS([linux/apm_bios.h])
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl fbdev header
|
2005-07-14 00:54:02 +02:00
|
|
|
AC_CHECK_HEADERS([linux/fb.h], FBDEV=yes)
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(FBDEVHW, [test "x$FBDEV" = xyes])
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl MTRR header
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_CHECK_HEADERS([asm/mtrr.h])
|
|
|
|
|
|
|
|
AC_CACHE_CHECK([for SYSV IPC],
|
|
|
|
ac_cv_sysv_ipc,
|
|
|
|
[AC_TRY_RUN([
|
|
|
|
#include <sys/shm.h>
|
|
|
|
int main () {
|
|
|
|
int id;
|
|
|
|
id = shmget(IPC_PRIVATE, 512, SHM_W | SHM_R);
|
|
|
|
if (id < 0) return -1;
|
|
|
|
return shmctl(id, IPC_RMID, 0);
|
|
|
|
}],
|
|
|
|
[ac_cv_sysv_ipc=yes],
|
|
|
|
[ac_cv_sysv_ipc=no])])
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$ac_cv_sysv_ipc" = xyes; then
|
|
|
|
AC_DEFINE(HAVE_SYSV_IPC, 1, [Define to 1 if SYSV IPC is available])
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Bus options and CPU capabilities. Replaces logic in
|
|
|
|
dnl hw/xfree86/os-support/bus/Makefile.am, among others.
|
|
|
|
dnl ---------------------------------------------------------------------------
|
2005-08-03 01:57:52 +02:00
|
|
|
DEFAULT_INT10="x86emu"
|
2005-08-21 10:43:46 +02:00
|
|
|
xorg_bus_sparc="no"
|
2005-08-03 01:57:52 +02:00
|
|
|
xorg_bus_ix86pci="no"
|
2005-08-21 21:15:11 +02:00
|
|
|
use_x86_asm="no"
|
2005-08-03 01:57:52 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl Override defaults as needed for specific platforms:
|
2005-08-03 01:57:52 +02:00
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
case $host_cpu in
|
|
|
|
sparc*)
|
2005-08-21 10:43:46 +02:00
|
|
|
xorg_bus_sparc="yes"
|
2005-08-21 08:56:19 +02:00
|
|
|
xorg_loader_sparcmuldiv="yes"
|
2005-07-01 22:29:53 +02:00
|
|
|
;;
|
|
|
|
i*86)
|
2005-08-03 01:57:52 +02:00
|
|
|
xorg_bus_ix86pci="yes"
|
2005-08-21 21:15:11 +02:00
|
|
|
use_x86_asm="yes"
|
2005-07-14 00:54:02 +02:00
|
|
|
case $host_os in
|
2005-08-03 01:57:52 +02:00
|
|
|
*linux*) DEFAULT_INT10=vm86 ;;
|
|
|
|
*bsd*) xorg_bus_ix86pci="no" ;;
|
2005-07-14 00:54:02 +02:00
|
|
|
esac
|
2005-07-01 22:29:53 +02:00
|
|
|
;;
|
2005-08-21 21:15:11 +02:00
|
|
|
x86_64*)
|
|
|
|
use_x86_asm="yes"
|
2005-08-03 01:57:52 +02:00
|
|
|
xorg_bus_ix86pci="yes"
|
|
|
|
;;
|
2005-07-01 22:29:53 +02:00
|
|
|
esac
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_MSG_CHECKING(for MMX capable platform)
|
|
|
|
if test "x$use_x86_asm" = xyes && test "x$GCC" = xyes ; then
|
|
|
|
AC_PREPROC_IFELSE([
|
|
|
|
#if (!defined (__GNUC__) || __GNUC__ < 3 || (__GNUC__ == 3 && __GNUC_MINOR__ < 4))
|
|
|
|
#error Not supported
|
|
|
|
#endif
|
|
|
|
], mmx_capable=yes, mmx_capable=no)
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$mmx_capable])
|
|
|
|
AM_CONDITIONAL(MMX_CAPABLE, [test "x$mmx_capable" = xyes])
|
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-08-02 03:50:48 +02:00
|
|
|
OSNAME=`uname -srm`
|
|
|
|
AC_DEFINE_UNQUOTED(OSNAME, "$OSNAME",
|
|
|
|
[Define to OS Name string to display for build OS in Xorg log])
|
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
DEFAULT_VENDOR_STRING="X.Org"
|
|
|
|
DEFAULT_VENDOR_RELEASE="$PACKAGE_VERSION"
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl e.g. 6.9.99.1 -> 6,9,99,1,0
|
2005-08-05 00:31:20 +02:00
|
|
|
VERSION_STRING="6,99,99,900,0"
|
2005-07-01 22:29:53 +02:00
|
|
|
DEFAULT_VENDOR_WEB="http://wiki.x.org"
|
|
|
|
|
2005-08-02 00:13:20 +02:00
|
|
|
m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl Build options.
|
|
|
|
AC_ARG_ENABLE(werror, [ --enable-werror ], [WERROR=$enableval], [WERROR=no])
|
|
|
|
AC_ARG_ENABLE(debug, [ --enable-debug ], [DEBUGGING=$enableval], [DEBUGGING=no])
|
|
|
|
AC_ARG_WITH(int10, AS_HELP_STRING([--with-int10=BACKEND], [int10 backend: vm86, x86emu or stub]),
|
2005-07-01 22:29:53 +02:00
|
|
|
[INT10="$withval"],
|
|
|
|
[INT10="$DEFAULT_INT10"])
|
|
|
|
AC_ARG_WITH(vendor-string, [ --with-vendor-string=VENDOR ],
|
|
|
|
[ VENDOR_STRING="$withval" ],
|
|
|
|
[ VENDOR_STRING="$DEFAULT_VENDOR_STRING" ])
|
|
|
|
AC_ARG_WITH(vendor-release, [ --with-vendor-release=RELEASE ],
|
|
|
|
[ VENDOR_RELEASE="$withval" ],
|
|
|
|
[ VENDOR_RELEASE="$DEFAULT_VENDOR_RELEASE" ])
|
|
|
|
AC_ARG_WITH(vendor-web, [ --with-vendor-web=URL ],
|
|
|
|
[ VENDOR_WEB="$withval" ],
|
|
|
|
[ VENDOR_WEB="$DEFAULT_VENDOR_WEB" ])
|
|
|
|
AC_ARG_WITH(module-dir, [ --with-module-dir=DIR ],
|
|
|
|
[ moduledir="$withval" ],
|
2005-08-21 21:15:11 +02:00
|
|
|
[ moduledir="${libdir}/xorg/modules" ])
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_ARG_WITH(builder-addr, [ --with-builder-addr=ADDRESS ],
|
|
|
|
[ BUILDERADDR="$withval" ],
|
|
|
|
[ BUILDERADDR="xorg@lists.freedesktop.org" ])
|
2005-07-12 03:20:36 +02:00
|
|
|
AC_ARG_WITH(os-name, [ --with-os-name=OSNAME ],
|
|
|
|
[ OSNAME="$withval" ],
|
|
|
|
[ OSNAME="UNKNOWN" ])
|
|
|
|
AC_ARG_WITH(os-vendor, [ --with-os-vendor=OSVENDOR ],
|
|
|
|
[ OSVENDOR="$withval" ],
|
|
|
|
[ OSVENDOR="" ])
|
2005-07-16 18:30:40 +02:00
|
|
|
AC_ARG_WITH(mesa-source, [ --with-mesa-source=MESA_SOURCE ],
|
2005-07-16 06:30:33 +02:00
|
|
|
[ MESA_SOURCE="$withval" ],
|
|
|
|
[ MESA_SOURCE="" ])
|
2005-08-21 08:56:19 +02:00
|
|
|
AC_ARG_WITH(default-font-path, [ --with-default-font-path=PATH ],
|
|
|
|
[ FONTPATH="$withval" ],
|
|
|
|
[ FONTPATH="${datadir}/X11/fonts" ])
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_ARG_WITH(xkb-path, [ --with-xkb-path=PATH ],
|
|
|
|
[ XKBPATH="$withval" ],
|
|
|
|
[ XKBPATH="${datadir}/X11/xkb" ])
|
2005-09-01 16:56:35 +02:00
|
|
|
AC_ARG_WITH(rgb-path, [ --with-rgb-path=PATH ],
|
|
|
|
[ RGBPATH="$withval" ],
|
|
|
|
[ RGBPATH="${datadir}/X11/rgb" ])
|
2005-08-21 21:15:11 +02:00
|
|
|
|
|
|
|
dnl Extensions.
|
|
|
|
AC_ARG_ENABLE(composite, [ --disable-composite ], [COMPOSITE=$enableval], [COMPOSITE=yes])
|
|
|
|
AC_ARG_ENABLE(mitshm, [ --disable-shm ], [MITSHM=$enableval], [MITSHM=yes])
|
|
|
|
AC_ARG_ENABLE(xres, [ --disable-xres ], [RES=$enableval], [RES=yes])
|
|
|
|
AC_ARG_ENABLE(xtrap, [ --enable-xtrap ], [XTRAP=$enableval], [XTRAP=no])
|
|
|
|
AC_ARG_ENABLE(record, [ --disable-record ], [RECORD=$enableval], [RECORD=yes])
|
|
|
|
AC_ARG_ENABLE(xv, [ --disable-xv ], [XV=$enableval], [XV=yes])
|
|
|
|
AC_ARG_ENABLE(screensaver, [ --disable-screensaver ], [SCREENSAVER=$enableval], [SCREENSAVER=yes])
|
|
|
|
AC_ARG_ENABLE(xdmcp, [ --disable-xdmcp ], [XDMCP=$enableval], [XDMCP=auto])
|
|
|
|
AC_ARG_ENABLE(xdm-auth-1, [ --disable-xdm-auth-1 ], [XDMAUTH=$enableval], [XDMAUTH=auto])
|
|
|
|
AC_ARG_ENABLE(glx, [ --disable-glx ], [GLX=$enableval], [GLX=yes])
|
|
|
|
AC_ARG_ENABLE(dri, [ --enable-dri ], [DRI=$enableval], [DRI=no])
|
|
|
|
AC_ARG_ENABLE(xinerama, [ --disable-xinerama ], [XINERAMA=$enableval], [XINERAMA=yes])
|
|
|
|
AC_ARG_ENABLE(xf86vidmode, [ --disable-xf86vidmode ], [XF86VIDMODE=$enableval], [XF86VIDMODE=yes])
|
|
|
|
AC_ARG_ENABLE(xf86misc, [ --disable-xf86misc ], [XF86MISC=$enableval], [XF86MISC=yes])
|
|
|
|
AC_ARG_ENABLE(xcsecurity, AS_HELP_STRING([--enable-xcsecurity], [Build Security extension (default: disabled)]),[XCSECURITY=$enableval],[XCSECURITY=no])
|
|
|
|
AC_ARG_ENABLE(xevie, AS_HELP_STRING([--enable-xevie], [Build XEvIE extension (default: disabled)]), [XEVIE=$enableval], [XEVIE=no])
|
|
|
|
|
|
|
|
dnl DDXes.
|
|
|
|
AC_ARG_ENABLE(xorg, AS_HELP_STRING([--enable-xorg], [Build Xorg server (default: auto)]), [XORG=$enableval], [XORG=auto])
|
|
|
|
AC_ARG_ENABLE(dmx, AS_HELP_STRING([--enable-dmx], [Build DMX server (default: auto)]), [DMX=$enableval], [DMX=auto])
|
|
|
|
AC_ARG_ENABLE(xvfb, AS_HELP_STRING([--enable-xvfb], [Build Xvfb server (default: yes)]), [XVFB=$enableval], [XVFB=yes])
|
|
|
|
AC_ARG_ENABLE(xnest, AS_HELP_STRING([--enable-xnest], [Build Xnest server (default: auto)]), [XNEST=$enableval], [XNEST=auto])
|
|
|
|
AC_ARG_ENABLE(xwin, AS_HELP_STRING([--enable-xwin], [Build XWin server (default: auto)]), [XWIN=$enableval], [XWIN=auto])
|
|
|
|
AC_ARG_ENABLE(xprint, AS_HELP_STRING([--enable-xprint], [Build Xprint extension and server (default: auto)]), [XPRINT=$enableval], [XPRINT=auto])
|
|
|
|
|
|
|
|
dnl Transport selection
|
|
|
|
AC_ARG_ENABLE(unix-transport,[ --disable-unix-transport ], [UNIXCONN=$enableval], [UNIXCONN=yes])
|
|
|
|
AC_ARG_ENABLE(tcp-transport, [ --disable-tcp-transport ], [TCPCONN=$enableval], [TCPCONN=yes])
|
|
|
|
AC_ARG_ENABLE(ipv6, [ --disable-ipv6 ], [IPV6CONN=$enableval], [IPV6CONN=yes])
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-07-12 03:20:36 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(INT10_VM86, [test "x$INT10" = xvm86])
|
|
|
|
AM_CONDITIONAL(INT10_X86EMU, [test "x$INT10" = xx86emu])
|
|
|
|
AM_CONDITIONAL(INT10_STUB, [test "x$INT10" = xstub])
|
|
|
|
if test "x$INT10" = xyes; then
|
|
|
|
dnl VM86 headers
|
|
|
|
AC_CHECK_HEADERS([sys/vm86.h sys/io.h])
|
2005-07-14 05:32:09 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$UNIXCONN" = xyes; then
|
|
|
|
AC_DEFINE(UNIXCONN, 1, [Support UNIX socket connections])
|
2005-08-17 21:03:18 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$TCPCONN" = xyes; then
|
|
|
|
AC_DEFINE(TCPCONN, 1, [Support TCP socket connections])
|
2005-08-11 16:36:29 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$IPV6CONN" = xyes; then
|
|
|
|
AC_DEFINE(IPv6, 1, [Support IPv6 for TCP connections])
|
2005-07-05 00:18:40 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl Extension section
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
XEXT_INC='-I$(top_srcdir)/Xext'
|
|
|
|
XEXT_LIB='$(top_builddir)/Xext/libXext.la'
|
2005-07-05 00:18:40 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl Core modules for most extensions, et al.
|
2005-08-24 11:12:50 +02:00
|
|
|
REQUIRED_MODULES="randrproto renderproto fixesproto damageproto xcmiscproto xextproto xfont xproto xtrans xau xf86dgaproto xf86miscproto xf86vidmodeproto xf86bigfontproto scrnsaverproto bigreqsproto"
|
2005-07-06 01:01:51 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(XV, [test "x$XV" = xyes])
|
|
|
|
if test "x$XV" = xyes; then
|
|
|
|
AC_DEFINE(XV, 1, [Support Xv extension])
|
2005-08-23 11:20:49 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
|
2005-07-05 00:18:40 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(COMPOSITE, [test "x$COMPOSITE" = xyes])
|
|
|
|
if test "x$COMPOSITE" = xyes; then
|
|
|
|
AC_DEFINE(COMPOSITE, 1, [Support Composite Extension])
|
2005-07-01 22:29:53 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES compositeproto"
|
2005-08-21 21:15:11 +02:00
|
|
|
COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
|
|
|
|
COMPOSITE_INC='-I$(top_srcdir)/composite'
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(MITSHM, [test "x$MITSHM" = xyes])
|
|
|
|
if test "x$MITSHM" = xyes; then
|
|
|
|
AC_DEFINE(MITSHM, 1, [Support MIT-SHM extension])
|
|
|
|
AC_DEFINE(HAS_SHM, 1, [Support SHM])
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(XTRAP, [test "x$XTRAP" = xyes])
|
|
|
|
if test "x$XTRAP" = xyes; then
|
|
|
|
AC_DEFINE(XTRAP, 1, [Support XTrap extension])
|
2005-08-23 11:20:49 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES trapproto"
|
2005-08-21 21:15:11 +02:00
|
|
|
XTRAP_LIB='$(top_builddir)/XTrap/libxtrap.la'
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(RECORD, [test "x$RECORD" = xyes])
|
|
|
|
if test "x$RECORD" = xyes; then
|
|
|
|
AC_DEFINE(XRECORD, 1, [Support Record extension])
|
2005-07-01 22:29:53 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES recordproto"
|
2005-08-21 21:15:11 +02:00
|
|
|
RECORD_LIB='$(top_builddir)/record/librecord.la'
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(SCREENSAVER, [test "x$SCREENSAVER" = xyes])
|
|
|
|
if test "x$SCREENSAVER" = xyes; then
|
|
|
|
AC_DEFINE(SCREENSAVER, 1, [Support MIT-SCREEN-SAVER extension])
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
|
|
|
|
AM_CONDITIONAL(RES, [test "x$RES" = xyes])
|
|
|
|
if test "x$xRES" = xyes; then
|
|
|
|
AC_DEFINE(RES, 1, [Support X resource extension])
|
2005-07-01 22:29:53 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES resourceproto"
|
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
|
|
|
|
AM_CONDITIONAL(XCSECURITY, [test "x$XCSECURITY" = xyes])
|
|
|
|
if test "x$XCSECURITY" = xyes; then
|
|
|
|
AC_DEFINE(XCSECURITY, 1, [Build Security extension])
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$GLX" = xyes && ! test "x$MESA_SOURCE" = x; then
|
|
|
|
AC_DEFINE(GLXEXT, 1, [Build GLX extension])
|
2005-07-23 04:04:39 +02:00
|
|
|
GLX_LIBS='$(top_builddir)/GL/glx/libglx.la $(top_builddir)/GL/mesa/libGLcore.la'
|
2005-08-20 20:11:17 +02:00
|
|
|
test -d GL || mkdir GL
|
2005-08-19 17:15:51 +02:00
|
|
|
$srcdir/GL/symlink-mesa.sh $MESA_SOURCE GL/
|
2005-07-16 18:30:40 +02:00
|
|
|
else
|
|
|
|
GLX=no
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(GLX, test "x$GLX" = xyes)
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_SUBST([MESA_SOURCE])
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(DRI, test "x$DRI" = xyes)
|
|
|
|
if test "x$DRI" = xyes; then
|
|
|
|
AC_DEFINE(XF86DRI, 1, [Build DRI extension])
|
2005-07-15 00:20:16 +02:00
|
|
|
PKG_CHECK_MODULES([DRIPROTO], [xf86driproto])
|
2005-07-16 00:51:05 +02:00
|
|
|
PKG_CHECK_MODULES([LIBDRM], [libdrm])
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_SUBST(DRIPROTO_CFLAGS)
|
2005-07-16 00:51:05 +02:00
|
|
|
AC_SUBST(LIBDRM_CFLAGS)
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(XINERAMA, [test "x$XINERAMA" = xyes])
|
|
|
|
if test "x$XINERAMA" = xyes; then
|
|
|
|
AC_DEFINE(XINERAMA, 1, [Support Xinerama extension])
|
|
|
|
AC_DEFINE(PANORAMIX, 1, [Internal define for Xinerama])
|
2005-08-19 02:13:46 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
|
|
|
|
AM_CONDITIONAL(XCSECURITY, [test "x$XCSECURITY" = xyes])
|
|
|
|
if test "x$XCSECURITY" = xyes; then
|
|
|
|
AC_DEFINE(XCSECURITY, 1, [Build Security extension])
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
|
|
|
|
AM_CONDITIONAL(XEVIE, [test "x$XEVIE" = xyes])
|
|
|
|
if test "x$XEVIE" = xyes; then
|
|
|
|
AC_DEFINE(XEVIE, 1, [Build XEvIE extension])
|
2005-08-23 11:20:49 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES evieproto"
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$XF86VIDMODE" = xyes; then
|
|
|
|
AC_DEFINE(XF86VIDMODE, 1, [Support XFree86 Video Mode extension])
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$XF86MISC" = xyes; then
|
|
|
|
AC_DEFINE(XF86MISC, 1, [Support XFree86 miscellaneous extensions])
|
|
|
|
fi
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_DEFINE(RENDER, 1, [Support RENDER extension])
|
|
|
|
RENDER_LIB='$(top_builddir)/render/librender.la'
|
|
|
|
RENDER_INC='-I$(top_srcdir)/render'
|
|
|
|
|
|
|
|
AC_DEFINE(RANDR, 1, [Support RANDR extension])
|
|
|
|
RANDR_LIB='$(top_builddir)/randr/librandr.la'
|
|
|
|
RANDR_INC='-I$(top_srcdir)/randr'
|
|
|
|
|
|
|
|
AC_DEFINE(XFIXES,1,[Support XFixes extension])
|
|
|
|
FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
|
|
|
|
FIXES_INC='-I$(top_srcdir)/xfixes'
|
|
|
|
|
|
|
|
AC_DEFINE(DAMAGE,1,[Support Damage extension])
|
|
|
|
DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
|
|
|
|
DAMAGE_INC='-I$(top_srcdir)/damageext'
|
|
|
|
MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
|
|
|
|
dnl damage (may) need the composite wrapper when composite is enabled
|
|
|
|
if test "$COMPOSITE" = yes; then
|
|
|
|
MIEXT_DAMAGE_LIB="$MIEXT_DAMAGE_LIB "'$(top_builddir)/miext/cw/libcw.la'
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
|
|
|
|
|
|
|
|
AC_DEFINE(XINPUT, 1, [Support X Input extension])
|
|
|
|
XI_LIB='$(top_builddir)/Xi/libXi.la'
|
|
|
|
XI_INC='-I$(top_srcdir)/Xi'
|
|
|
|
|
|
|
|
AC_DEFINE(SHAPE, 1, [Support SHAPE extension])
|
|
|
|
|
|
|
|
AC_DEFINE(XKB, 1, [Build XKB])
|
|
|
|
AC_DEFINE(XKB_IN_SERVER, 1, [Build XKB server])
|
|
|
|
AC_DEFINE(XKB_DFLT_DISABLED, 0, [Disable XKB per default])
|
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
|
|
|
|
XKB_LIB='$(top_builddir)/xkb/libxkb.la'
|
|
|
|
XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
|
2005-07-01 22:29:53 +02:00
|
|
|
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
PKG_CHECK_MODULES([XDMCP], [xdmcp], [have_libxdmcp="yes"], [have_libxdmcp="no"])
|
|
|
|
if test "x$have_libxdmcp" = xyes; then
|
|
|
|
AC_CHECK_LIB(Xdmcp, XdmcpWrap, [have_xdmcpwrap="yes"], [have_xdmcpwrap="no"], [$XDMCP_LIBS])
|
|
|
|
fi
|
|
|
|
if test "x$XDMCP" = xauto; then
|
|
|
|
if test "x$have_libxdmcp" = xyes; then
|
2005-07-01 22:29:53 +02:00
|
|
|
XDMCP=yes
|
|
|
|
else
|
|
|
|
XDMCP=no
|
|
|
|
fi
|
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$XDMAUTH" = xauto; then
|
|
|
|
if test "x$have_libxdmcp" = xyes && test "x$have_xdmcpwrap" = xyes; then
|
2005-07-01 22:29:53 +02:00
|
|
|
XDMAUTH=yes
|
|
|
|
else
|
|
|
|
XDMAUTH=no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(XDMCP, [test "x$XDMCP" = xyes])
|
|
|
|
if test "x$XDMCP" = xyes; then
|
|
|
|
AC_DEFINE(XDMCP, 1, [Support XDM Control Protocol])
|
2005-07-01 22:29:53 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES xdmcp"
|
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(XDMAUTH, [test "x$XDMAUTH" = xyes])
|
|
|
|
if test "x$XDMAUTH" = xyes; then
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_DEFINE(HASXDMAUTH,1,[Support XDM-AUTH*-1])
|
2005-08-21 21:15:11 +02:00
|
|
|
if ! test "x$XDMCP" = xyes; then
|
2005-07-01 22:29:53 +02:00
|
|
|
REQUIRED_MODULES="$REQUIRED_MODULES xdmcp"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(USE_RGB_BUILTIN, [test "x$USE_RGB_BUILTIN" = xyes])
|
|
|
|
if test "x$USE_RGB_BUILTIN" = xyes; then
|
|
|
|
AC_DEFINE(USE_RGB_BUILTIN, 1, [Use built-in RGB color database])
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-09-01 16:56:35 +02:00
|
|
|
AC_DEFINE_DIR(COMPILEDDEFAULTFONTPATH, FONTPATH, [Default font path])
|
|
|
|
AC_DEFINE_DIR(RGB_PATH, RGBPATH, [Default RGB path])
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_DEFINE_UNQUOTED(XVENDORNAME, ["$VENDOR_STRING"], [Vendor name])
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_DEFINE_UNQUOTED(XORG_RELEASE, ["$VENDOR_RELEASE"], [Vendor release])
|
|
|
|
AC_DEFINE_UNQUOTED(BUILDERADDR, ["$BUILDERADDR"], [Builder address])
|
2005-07-12 03:20:36 +02:00
|
|
|
AC_DEFINE_UNQUOTED(OSNAME, ["$OSNAME"], [Operating System Name])
|
|
|
|
AC_DEFINE_UNQUOTED(OSVENDOR, ["$OSVENDOR"], [Operating System Vendor])
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_DEFINE(DDXOSINIT, 1, [Use OsVendorInit])
|
|
|
|
AC_DEFINE(SERVER_LOCK, 1, [Use a lock to prevent multiple servers on a display])
|
|
|
|
AC_DEFINE(SMART_SCHEDULE, 1, [Include time-based scheduler])
|
2005-08-23 10:58:40 +02:00
|
|
|
AM_CONDITIONAL(DEBUG, test "x$DEBUGGING" = xyes)
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
if ! test "x$DEBUGGING" = xyes; then
|
|
|
|
AC_DEFINE(NDEBUG, 1, [Disable some debugging code])
|
2005-07-01 22:29:53 +02:00
|
|
|
fi
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_DEFINE(USE_RGB_TXT, 1, [Use rgb.txt directly])
|
|
|
|
AC_DEFINE(MITMISC, 1, [Support MIT Misc extension])
|
|
|
|
AC_DEFINE(XTEST, 1, [Support XTest extension])
|
|
|
|
AC_DEFINE(XSYNC, 1, [Support XSync extension])
|
|
|
|
AC_DEFINE(XCMISC, 1, [Support XCMisc extension])
|
|
|
|
AC_DEFINE(BIGREQS, 1, [Support BigRequests extension])
|
|
|
|
AC_DEFINE(PIXPRIV, 1, [Support pixmap privates])
|
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
DIX_LIB='$(top_builddir)/dix/libdix.la'
|
|
|
|
OS_LIB='$(top_builddir)/os/libos.la'
|
|
|
|
MI_LIB='$(top_builddir)/mi/libmi.la'
|
|
|
|
MINIMI_LIB='$(top_builddir)/mi/libminimi.la'
|
|
|
|
MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
|
|
|
|
MI_INC='-I$(top_srcdir)/mi'
|
2005-07-12 03:20:36 +02:00
|
|
|
FB_LIB='$(top_builddir)/fb/libfb.la'
|
2005-07-01 22:29:53 +02:00
|
|
|
FB_INC='-I$(top_srcdir)/fb'
|
2005-08-21 21:15:11 +02:00
|
|
|
MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
|
|
|
|
MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
|
|
|
|
MIEXT_LAYER_LIB='$(top_builddir)/miext/layer/liblayer.la'
|
2005-07-01 22:29:53 +02:00
|
|
|
XPSTUBS_LIB='$(top_builddir)/dix/libxpstubs.la'
|
2005-07-03 14:17:04 +02:00
|
|
|
CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
|
2005-07-01 22:29:53 +02:00
|
|
|
|
|
|
|
PKG_CHECK_MODULES([XSERVER], [$REQUIRED_MODULES])
|
|
|
|
XSERVER_LIBS="${XSERVER_LIBS} -lm -lz"
|
|
|
|
|
2005-07-29 23:55:57 +02:00
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
dnl Imake defines SVR4 on SVR4 systems, and many files check for it, so
|
|
|
|
dnl we need to replicate that here until those can all be fixed
|
2005-07-29 23:55:57 +02:00
|
|
|
AC_MSG_CHECKING([if SVR4 needs to be defined])
|
|
|
|
AC_EGREP_CPP([I_AM_SVR4],[
|
|
|
|
#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
|
|
|
|
I_AM_SVR4
|
|
|
|
#endif
|
|
|
|
],[
|
|
|
|
AC_DEFINE([SVR4],1,[Define to 1 on systems derived from System V Release 4])
|
|
|
|
AC_MSG_RESULT([yes])], AC_MSG_RESULT([no]))
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
XSERVER_CFLAGS="$XSERVER_CFLAGS $CORE_INCS $XEXT_INC $COMPOSITE_INC $DAMAGE_INC $FIXES_INC $XI_INC $MI_INC $MIEXT_SHADOW_INC $MIEXT_LAYER_INC $MIEXT_DAMAGE_INC $RENDER_INC $RANDR_INC $FB_INC"
|
|
|
|
AC_DEFINE_UNQUOTED(X_BYTE_ORDER,[$ENDIAN],[Endian order])
|
|
|
|
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
dnl DDX section.
|
|
|
|
dnl ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
dnl DMX DDX
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build Xdmx DDX])
|
|
|
|
PKG_CHECK_MODULES([DMXMODULES], [xmuu xext x11 xrender xfont xi dmxproto], [have_dmx=yes], [have_dmx=no])
|
|
|
|
if test "x$DMX" = xauto; then
|
|
|
|
DMX="$have_dmx"
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$DMX])
|
|
|
|
AM_CONDITIONAL(DMX, [test "x$DMX" = xyes])
|
|
|
|
|
|
|
|
if test "x$DMX" = xyes; then
|
|
|
|
if test "x$have_dmx" = xno; then
|
|
|
|
AC_MSG_ERROR([Xdmx build explicitly requested, but required
|
|
|
|
modules not found.])
|
|
|
|
fi
|
|
|
|
DMX_INCLUDES="$XEXT_INC $RENDER_INC $XTRAP_INC $RECORD_INC"
|
2005-08-22 11:15:20 +02:00
|
|
|
XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $RENDER_LIB $XTRAP_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_DAMAGE_LIB $OS_LIB $MIEXT_SHADOW_LIB"
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_SUBST([XDMX_LIBS])
|
2005-08-24 17:18:06 +02:00
|
|
|
|
|
|
|
dnl USB sources in DMX require <linux/input.h>
|
|
|
|
AC_CHECK_HEADER([linux/input.h], HAVE_LINUX_INPUT_H="yes",
|
|
|
|
HAVE_LINUX_INPUT_H="no")
|
|
|
|
AM_CONDITIONAL([DMX_BUILD_USB],[test "x$HAVE_LINUX_INPUT_H" = xyes])
|
|
|
|
|
|
|
|
dnl Linux sources in DMX require <linux/keyboard.h>
|
|
|
|
AC_CHECK_HEADER([linux/keyboard.h], HAVE_LINUX_KEYBOARD_H="yes",
|
|
|
|
HAVE_LINUX_KEYBOARD_H="no")
|
|
|
|
AM_CONDITIONAL([DMX_BUILD_LNX],[test "x$HAVE_LINUX_KEYBOARD_H" = xyes])
|
2005-08-21 21:15:11 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl Xvfb DDX
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build Xvfb DDX])
|
|
|
|
AC_MSG_RESULT([$XVFB])
|
|
|
|
AM_CONDITIONAL(XVFB, [test "x$XVFB" = xyes])
|
|
|
|
|
|
|
|
if test "x$XVFB" = xyes; then
|
2005-08-22 11:15:20 +02:00
|
|
|
XVFB_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $MIEXT_LAYER_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $OS_LIB"
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_SUBST([XVFB_LIBS])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl Xnest DDX
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build Xnest DDX])
|
2005-08-23 10:59:30 +02:00
|
|
|
PKG_CHECK_MODULES(XNESTMODULES, [xfont xext x11], [have_xnest=yes], [have_xnest=no])
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$XNEST" = xauto; then
|
2005-08-23 10:59:30 +02:00
|
|
|
XNEST="$have_xnest"
|
2005-08-21 21:15:11 +02:00
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$XNEST])
|
|
|
|
AM_CONDITIONAL(XNEST, [test "x$XNEST" = xyes])
|
|
|
|
|
|
|
|
if test "x$XNEST" = xyes; then
|
2005-08-22 11:15:20 +02:00
|
|
|
XNEST_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $MIEXT_LAYER_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $OS_LIB"
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_SUBST([XNEST_LIBS])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl Xorg DDX
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build Xorg DDX])
|
|
|
|
if test "x$XORG" = xauto; then
|
|
|
|
XORG="yes"
|
|
|
|
case $host_os in
|
|
|
|
cygwin*) XORG="no" ;;
|
|
|
|
darwin*) XORG="no" ;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$XORG])
|
|
|
|
|
|
|
|
if test "x$XORG" = xyes; then
|
|
|
|
XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
|
|
|
|
XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
|
|
|
|
XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
|
|
|
|
XORG_CFLAGS="$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H"
|
|
|
|
XORG_CORE_LIBS="$DIX_LIB"
|
2005-08-22 11:15:20 +02:00
|
|
|
XORG_LIBS="$MI_LIB $FIXES_LIB $XEXT_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $MIEXT_LAYER_LIB $XI_LIB $XKB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $OS_LIB"
|
2005-08-21 21:15:11 +02:00
|
|
|
|
|
|
|
case $host_os in
|
|
|
|
linux*)
|
|
|
|
XORG_OS="linux"
|
|
|
|
XORG_OS_SUBDIR="linux"
|
|
|
|
XORG_OS_KBD="Lnx"
|
|
|
|
case $host_cpu in
|
|
|
|
ia64*)
|
|
|
|
linux_ia64=yes
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
2005-08-02 02:41:07 +02:00
|
|
|
;;
|
2005-08-21 21:15:11 +02:00
|
|
|
freebsd*)
|
|
|
|
XORG_OS="freebsd"
|
|
|
|
XORG_OS_SUBDIR="bsd"
|
|
|
|
XORG_OS_KBD="BSD"
|
2005-08-21 08:56:19 +02:00
|
|
|
;;
|
2005-08-21 21:15:11 +02:00
|
|
|
netbsd*)
|
|
|
|
XORG_OS="netbsd"
|
|
|
|
XORG_OS_SUBDIR="bsd"
|
|
|
|
XORG_OS_KBD="BSD"
|
2005-08-02 02:41:07 +02:00
|
|
|
;;
|
2005-08-21 21:15:11 +02:00
|
|
|
openbsd*)
|
|
|
|
XORG_OS="openbsd"
|
|
|
|
XORG_OS_SUBDIR="bsd"
|
|
|
|
XORG_OS_KBD="BSD"
|
2005-08-04 04:39:56 +02:00
|
|
|
;;
|
2005-08-21 21:15:11 +02:00
|
|
|
solaris*)
|
|
|
|
XORG_OS="solaris"
|
|
|
|
XORG_OS_SUBDIR="solaris"
|
|
|
|
# This really should be tests for specific features, but the #ifdef's
|
|
|
|
# were done as a simple version check in XFree86 4.x and haven't been
|
|
|
|
# fixed yet
|
|
|
|
AC_MSG_CHECKING([Solaris version])
|
|
|
|
OS_MINOR=`echo ${host_os}|sed -e 's/^.*solaris2\.//' -e s'/\..*$//'`
|
|
|
|
if test "${OS_MINOR}" -ge 7 ; then
|
|
|
|
AC_MSG_RESULT(Solaris ${OS_MINOR})
|
2005-08-04 04:39:56 +02:00
|
|
|
else
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_MSG_RESULT(Solaris `echo ${host_os}|sed -e 's/^.*solaris//`)
|
2005-08-04 04:39:56 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "${OS_MINOR}" -ge 8 ; then
|
|
|
|
AC_DEFINE(__SOL8__,1,[Solaris 8 or later])
|
|
|
|
fi
|
|
|
|
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
|
|
|
|
if test "x$SUNCC" = "xyes"; then
|
|
|
|
solaris_asm_inline="yes"
|
|
|
|
fi
|
|
|
|
AC_CHECK_DECL([_LP64], [SOLARIS_64="yes"], [SOLARIS_64="no"])
|
|
|
|
|
|
|
|
case $host_cpu in
|
|
|
|
sparc*)
|
|
|
|
XORG_OS_PCI="sparc"
|
|
|
|
SOLARIS_INOUT_ARCH="sparcv8plus"
|
|
|
|
;;
|
|
|
|
i*86)
|
|
|
|
XORG_OS_PCI="ix86"
|
|
|
|
if test x$SOLARIS_64 = xyes ; then
|
|
|
|
SOLARIS_INOUT_ARCH="amd64"
|
|
|
|
else
|
|
|
|
SOLARIS_INOUT_ARCH="ia32"
|
|
|
|
fi
|
|
|
|
if test "${OS_MINOR}" -lt 8 ; then
|
|
|
|
solaris_usl_console="yes"
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([Unsupported Solaris platform. Only SPARC & x86 \
|
|
|
|
are supported on Solaris in this release. If you are \
|
|
|
|
interested in porting Xorg to your platform, please email \
|
|
|
|
xorg@lists.freedesktop.org.]) ;;
|
|
|
|
esac
|
|
|
|
AC_SUBST([SOLARIS_INOUT_ARCH])
|
|
|
|
if test x$solaris_asm_inline = xyes ; then
|
|
|
|
XORG_CFLAGS="${XORG_CFLAGS} "'$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-${SOLARIS_INOUT_ARCH}.il'
|
2005-08-04 04:39:56 +02:00
|
|
|
fi
|
|
|
|
;;
|
2005-07-14 00:54:02 +02:00
|
|
|
*)
|
2005-08-21 21:15:11 +02:00
|
|
|
XORG_OS="unknown"
|
|
|
|
XORG_OS_SUBDIR="unknown"
|
|
|
|
AC_MSG_ERROR([Your OS is unknown. Xorg currently only supports Linux, \
|
|
|
|
Free/Open/NetBSD, Solaris, and OS X. If you are interested in porting \
|
|
|
|
Xorg to your platform, please email xorg@lists.freedesktop.org.])
|
|
|
|
;;
|
2005-07-14 00:54:02 +02:00
|
|
|
esac
|
2005-08-21 21:15:11 +02:00
|
|
|
if test "x$XORG_OS_PCI" = x ; then
|
|
|
|
XORG_OS_PCI=$XORG_OS
|
2005-08-04 04:39:56 +02:00
|
|
|
fi
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_SUBST([XORG_CORE_LIBS])
|
|
|
|
AC_SUBST([XORG_LIBS])
|
|
|
|
AC_SUBST([XORG_INCS])
|
|
|
|
AC_SUBST([XORG_OS])
|
|
|
|
AC_SUBST([XORG_OS_SUBDIR])
|
|
|
|
AC_SUBST([XORG_OS_KBD])
|
|
|
|
AC_SUBST([XORG_OS_PCI])
|
|
|
|
|
|
|
|
dnl only used in hw/xfree86/scanpci, TTBOMK
|
|
|
|
AC_PATH_PROG(PERL, perl, no)
|
|
|
|
dnl unlikely as this may be ...
|
|
|
|
if test "x$PERL" = xno; then
|
|
|
|
AC_MSG_ERROR([Perl is required to build the XFree86/Xorg DDX.])
|
|
|
|
fi
|
|
|
|
AC_SUBST(PERL)
|
|
|
|
|
|
|
|
# The Xorg binary needs to export symbols so that they can be used from modules
|
|
|
|
# Some platforms require extra flags to do this. gcc should set these flags
|
|
|
|
# when -rdynamic is passed to it, other compilers/linkers may need to be added
|
|
|
|
# here.
|
|
|
|
if test "x$GCC" = "xyes"; then
|
|
|
|
GCC_WARNINGS1="-Wall -Wpointer-arith -Wstrict-prototypes"
|
|
|
|
GCC_WARNINGS2="-Wmissing-prototypes -Wmissing-declarations"
|
|
|
|
GCC_WARNINGS3="-Wnested-externs -fno-strict-aliasing"
|
|
|
|
GCC_WARNINGS="$GCC_WARNINGS1 $GCC_WARNINGS2 $GCC_WARNINGS3"
|
|
|
|
if test "x$WERROR" = "xyes"; then
|
|
|
|
GCC_WARNINGS="${GCC_WARNINGS} -Werror"
|
|
|
|
fi
|
|
|
|
XSERVER_CFLAGS="$GCC_WARNINGS $XSERVER_CFLAGS"
|
|
|
|
LD_EXPORT_SYMBOLS_FLAG="-rdynamic"
|
|
|
|
fi
|
|
|
|
AC_SUBST([XORG_CFLAGS])
|
|
|
|
AC_SUBST([LD_EXPORT_SYMBOLS_FLAG])
|
|
|
|
|
|
|
|
dnl these only go in xorg-config.h
|
|
|
|
CONFIGFILE="$sysconfdir/xorg.conf"
|
|
|
|
LOGPREFIX="$localstatedir/log/Xorg."
|
|
|
|
AC_DEFINE(XORG_SERVER, 1, [Building Xorg server])
|
|
|
|
AC_DEFINE(XORGSERVER, 1, [Building Xorg server])
|
|
|
|
AC_DEFINE(XFree86Server, 1, [Building XFree86 server])
|
|
|
|
AC_DEFINE(XFree86LOADER, 1, [Building XFree86 loader])
|
|
|
|
AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [XF86_VERSION_NUMERIC($VERSION_STRING)], [Current Xorg version])
|
|
|
|
AC_DEFINE(NEED_XF86_TYPES, 1, [Need XFree86 typedefs])
|
|
|
|
AC_DEFINE(NEED_XF86_PROTOTYPES, 1, [Need XFree86 helper functions])
|
|
|
|
AC_DEFINE(__XSERVERNAME__, "Xorg", [Name of X server])
|
|
|
|
# XXX HACK! if anyone cares about elfloader in 7.0 you need to
|
|
|
|
# XXX do something smarter here.
|
|
|
|
AC_DEFINE(DLOPEN_HACK, 1, [Prefer dlloader modules to elfloader])
|
|
|
|
AC_DEFINE(DLOPEN_SUPPORT, 1, [Use libdl-based loader])
|
|
|
|
AC_DEFINE(DRIVERS, {}, [Built-in output drivers (none)])
|
|
|
|
AC_DEFINE(IDRIVERS, {}, [Built-in input drivers (none)])
|
|
|
|
AC_DEFINE_DIR(__XCONFIGFILE__, XF86CONFIGFILE, [Location of configuration file])
|
|
|
|
AC_DEFINE_DIR(XF86CONFIGFILE, CONFIGFILE, [Path to Xorg configuration file])
|
|
|
|
AC_DEFINE_DIR(DEFAULT_MODULE_PATH, moduledir, [Default module search path])
|
|
|
|
AC_DEFINE_DIR(DEFAULT_LOGPREFIX, LOGPREFIX, [Default log location])
|
|
|
|
AC_DEFINE_UNQUOTED(__VENDORDWEBSUPPORT__, ["$VENDOR_WEB"], [Vendor web address for support])
|
|
|
|
|
|
|
|
driverdir="$moduledir/drivers"
|
|
|
|
AC_SUBST([moduledir])
|
|
|
|
AC_SUBST([driverdir])
|
|
|
|
sdkdir="$includedir/xorg"
|
|
|
|
extdir="$includedir/X11/extensions"
|
|
|
|
AC_SUBST([sdkdir])
|
|
|
|
AC_SUBST([extdir])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL([XORG], [test "x$XORG" = xyes])
|
2005-08-03 01:57:52 +02:00
|
|
|
AM_CONDITIONAL([XORG_BUS_IX86PCI], [test "x$xorg_bus_ix86pci" = xyes])
|
2005-08-21 10:43:46 +02:00
|
|
|
AM_CONDITIONAL([XORG_BUS_SPARC], [test "x$xorg_bus_sparc" = xyes])
|
2005-08-21 08:56:19 +02:00
|
|
|
AM_CONDITIONAL([XORG_LOADER_SPARC], [test "x$xorg_loader_sparcmuldiv" = xyes])
|
2005-08-02 02:47:08 +02:00
|
|
|
AM_CONDITIONAL([LINUX_IA64], [test "x$linux_ia64" = xyes])
|
2005-08-04 04:39:56 +02:00
|
|
|
AM_CONDITIONAL([SOLARIS_USL_CONSOLE], [test "x$solaris_usl_console" = xyes])
|
|
|
|
AM_CONDITIONAL([SOLARIS_ASM_INLINE], [test "x$solaris_asm_inline" = xyes])
|
2005-08-21 21:15:11 +02:00
|
|
|
AM_CONDITIONAL(MFB, [test "x$XORG" = xyes])
|
|
|
|
AM_CONDITIONAL(CFB, [test "x$XORG" = xyes])
|
|
|
|
AM_CONDITIONAL(AFB, [test "x$XORG" = xyes])
|
|
|
|
|
|
|
|
|
|
|
|
dnl Xprint DDX
|
|
|
|
|
|
|
|
if test "x$XPRINT" = xauto; then
|
|
|
|
PKG_CHECK_MODULES([XPRINT], [printproto x11], [XPRINT=yes], [XPRINT=no])
|
|
|
|
fi
|
|
|
|
AC_MSG_CHECKING([whether to build Xprint DDX])
|
|
|
|
AC_MSG_RESULT([$XPRINT])
|
|
|
|
AM_CONDITIONAL(XPRINT, [test x$XPRINT = xyes])
|
|
|
|
|
|
|
|
if test "x$XPRINT" = xyes; then
|
|
|
|
PKG_CHECK_MODULES([XPRINT], [printproto x11 xfont])
|
2005-08-24 21:41:43 +02:00
|
|
|
XPRINT_EXTENSIONS="$XEXT_LIB $RENDER_LIB $COMPOSITE_LIB $RANDR_LIB $XI_LIB $FIXES_LIB $DAMAGE_LIB $XI_LIB $GLX_LIBS"
|
|
|
|
XPRINT_INCLUDES="$XEXT_INC $RENDER_INC $COMPOSITE_INC $RANDR_INC $XI_INC $FIXES_INC $DAMAGE_INC $XI_INC $GLX_INC"
|
|
|
|
XPRINT_LIBS="$XPRINT_LIBS $DIX_LIB $XKB_LIB $XKB_STUB_LIB $OS_LIB $XPRINT_EXTENSIONS $MI_LIB $MIEXT_DAMAGE_LIB $GLX_INC"
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_SUBST([XPRINT_LIBS])
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
dnl XWin DDX
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([whether to build XWin DDX])
|
|
|
|
if test "x$XWIN" = xauto; then
|
|
|
|
case $host_os in
|
|
|
|
cygwin*) XWIN="yes" ;;
|
|
|
|
mingw*) XWIN="yes" ;;
|
|
|
|
*) XWIN="no" ;;
|
|
|
|
esac
|
|
|
|
XWIN_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $LAYER_LIB $XPSTUBS_LIB $OS_LIB $SHADOW_LIB"
|
|
|
|
AC_SUBST([XWIN_LIBS])
|
|
|
|
fi
|
|
|
|
AC_MSG_RESULT([$XWIN])
|
|
|
|
|
|
|
|
if test "x$XWIN" = xyes; then
|
|
|
|
XWIN_SERVER_NAME=XWin
|
|
|
|
case $host_os in
|
|
|
|
cygwin*)
|
|
|
|
PKG_CHECK_MODULES([XWINMODULES],[x11 xdmcp xau xfont])
|
|
|
|
AC_DEFINE(HAS_DEVWINDOWS,1,[Cygwin has /dev/windows for signaling new win32 messages])
|
|
|
|
AC_DEFINE(ROOTLESS,1,[Build Rootless code])
|
|
|
|
CFLAGS="$CFLAGS -DFD_SETSIZE=256"
|
|
|
|
;;
|
|
|
|
mingw*)
|
|
|
|
PKG_CHECK_MODULES([XWINMODULES],[x11 xdmcp xau xfont])
|
|
|
|
XWIN_SERVER_NAME=Xming
|
|
|
|
AC_DEFINE(RELOCATE_PROJECTROOT,1,[Make PROJECT_ROOT relative to the xserver location])
|
|
|
|
AC_DEFINE(HAS_WINSOCK,1,[Use Windows sockets])
|
|
|
|
XWIN_SYSTEM_LIBS=-lwinsock2
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
AC_SUBST(XWIN_SERVER_NAME)
|
|
|
|
AC_SUBST(XWIN_SYSTEM_LIBS)
|
|
|
|
|
|
|
|
if test "x$DEBUGGING" = xyes; then
|
|
|
|
AC_DEFINE(CYGDEBUG, 1, [Simple debug messages])
|
|
|
|
AC_DEFINE(CYGWINDOWING_DEBUG, 1, [Debug messages for window handling])
|
|
|
|
AC_DEFINE(CYGMULTIWINDOW_DEBUG, 1, [Debug window manager])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE(DDXOSINIT, 1, [Use OsVendorInit])
|
|
|
|
AC_DEFINE(DDXTIME, 1, [Use GetTimeInMillis])
|
|
|
|
AC_DEFINE(DDXOSFATALERROR, 1, [Use OsVendorFatalError])
|
|
|
|
AC_DEFINE(DDXOSVERRORF, 1, [Use OsVendorVErrorF])
|
|
|
|
AC_DEFINE(DDXBEFORERESET, 1, [Use ddxBeforeReset ])
|
|
|
|
if test "x$XF86VIDMODE" = xyes; then
|
|
|
|
AC_MSG_NOTICE([Disabling XF86VidMode extension])
|
|
|
|
XF86VIDMODE = no
|
|
|
|
fi
|
|
|
|
if test "x$XF86MISC" = xyes; then
|
|
|
|
AC_MSG_NOTICE([Disabling XF86Misc extension])
|
|
|
|
XF86MISC = no
|
|
|
|
fi
|
|
|
|
if test "x$COMPOSITE" = xyes; then
|
|
|
|
AC_MSG_NOTICE([Disabling Composite extension])
|
|
|
|
COMPOSITE = no
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(XWIN, [test "x$XWIN" = xyes])
|
|
|
|
AM_CONDITIONAL(XWIN_MULTIWINDOW, [test "x$XWIN" = xyes])
|
|
|
|
AM_CONDITIONAL(XWIN_MULTIWINDOWEXTWM, [test "x$XWIN" = xyes && false])
|
|
|
|
AM_CONDITIONAL(XWIN_CLIPBOARD, [test "x$XWIN" = xyes])
|
|
|
|
AM_CONDITIONAL(XWIN_GLX_WINDOWS, [test "x$XWIN" = xyes && false])
|
|
|
|
AM_CONDITIONAL(XWIN_NATIVEGDI, [test "x$XWIN" = xyes && false])
|
|
|
|
AM_CONDITIONAL(XWIN_PRIMARYFB, [test "x$XWIN" = xyes && false])
|
|
|
|
AM_CONDITIONAL(XWIN_RANDR, [test "x$XWIN" = xyes])
|
|
|
|
AM_CONDITIONAL(XWIN_XV, [test "x$XWIN" = xyes && test "x$XV" = xyes])
|
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
|
2005-07-14 05:32:09 +02:00
|
|
|
dnl these only go in xkb-config.h (which is shared by the Xorg and Xnest servers)
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_DEFINE(__XKBDEFRULES__, "xorg", [Default XKB rules])
|
|
|
|
AC_DEFINE_DIR(XKB_BASE_DIRECTORY, XKBPATH, [Path to XKB data])
|
2005-07-02 20:59:44 +02:00
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
dnl and the rest of these are generic, so they're in config.h
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_DEFINE(XFree86XDGA, 1, [Build XDGA support])
|
|
|
|
AC_DEFINE(XF86BIGFONT, 1, [Build XFree86 BigFont extension])
|
|
|
|
AC_DEFINE(XResExtension, 1, [Build XRes extension])
|
|
|
|
AC_DEFINE(DPMSExtension, 1, [Build DPMS extension])
|
|
|
|
|
2005-07-05 01:40:09 +02:00
|
|
|
dnl CYGWIN does not define fd_set if _POSIX_SOURCE is defined
|
2005-07-14 00:54:02 +02:00
|
|
|
dnl _*_SOURCE on Solaris restricts to the standards, and removes non-standard
|
|
|
|
dnl functions which X uses
|
2005-07-05 01:40:09 +02:00
|
|
|
case $host_os in
|
|
|
|
cygwin*) ;;
|
2005-08-04 20:45:46 +02:00
|
|
|
solaris*) ;;
|
2005-08-21 21:15:11 +02:00
|
|
|
darwin*) ;;
|
2005-07-05 01:40:09 +02:00
|
|
|
*)
|
2005-08-21 21:15:11 +02:00
|
|
|
AC_DEFINE(_POSIX_SOURCE, 1, [POSIX-compliant source])
|
|
|
|
AC_DEFINE(_XOPEN_SOURCE, 500, [X/Open-compliant source])
|
|
|
|
AC_DEFINE(_BSD_SOURCE, 1, [BSD-compliant source])
|
2005-07-05 01:40:09 +02:00
|
|
|
;;
|
|
|
|
esac
|
2005-07-01 22:29:53 +02:00
|
|
|
|
|
|
|
AC_DEFINE_DIR(PROJECTROOT, prefix, [Overall prefix])
|
|
|
|
|
|
|
|
CFLAGS="$XSERVER_CFLAGS $CFLAGS"
|
|
|
|
AC_SUBST([CFLAGS])
|
|
|
|
|
|
|
|
BUILD_DATE="$(date +'%Y%m%d')"
|
|
|
|
AC_SUBST([BUILD_DATE])
|
|
|
|
|
2005-07-02 20:59:44 +02:00
|
|
|
DIX_CFLAGS="-DHAVE_DIX_CONFIG_H"
|
|
|
|
AC_SUBST([DIX_CFLAGS])
|
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_SUBST([libdir exec_prefix prefix])
|
|
|
|
|
2005-08-21 21:15:11 +02:00
|
|
|
# XORG in this case refers to the roll-up releases, not the Xorg DDX.
|
2005-07-29 23:22:58 +02:00
|
|
|
XORG_RELEASE_VERSION
|
|
|
|
|
2005-07-01 22:29:53 +02:00
|
|
|
AC_OUTPUT([
|
|
|
|
Makefile
|
2005-07-11 02:42:52 +02:00
|
|
|
GL/Makefile
|
2005-07-12 05:03:16 +02:00
|
|
|
GL/glx/Makefile
|
2005-08-05 00:31:20 +02:00
|
|
|
GL/include/Makefile
|
|
|
|
GL/include/GL/Makefile
|
2005-07-16 06:30:33 +02:00
|
|
|
GL/mesa/Makefile
|
|
|
|
GL/mesa/array_cache/Makefile
|
2005-07-23 04:04:39 +02:00
|
|
|
GL/mesa/glapi/Makefile
|
2005-07-16 06:30:33 +02:00
|
|
|
GL/mesa/main/Makefile
|
|
|
|
GL/mesa/math/Makefile
|
|
|
|
GL/mesa/shader/Makefile
|
2005-07-23 04:04:39 +02:00
|
|
|
GL/mesa/shader/grammar/Makefile
|
|
|
|
GL/mesa/shader/slang/Makefile
|
2005-07-16 06:30:33 +02:00
|
|
|
GL/mesa/swrast/Makefile
|
|
|
|
GL/mesa/swrast_setup/Makefile
|
|
|
|
GL/mesa/tnl/Makefile
|
|
|
|
GL/mesa/X/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
include/Makefile
|
|
|
|
afb/Makefile
|
|
|
|
composite/Makefile
|
|
|
|
damageext/Makefile
|
2005-07-13 23:41:02 +02:00
|
|
|
dbe/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
dix/Makefile
|
|
|
|
fb/Makefile
|
|
|
|
record/Makefile
|
|
|
|
XTrap/Makefile
|
|
|
|
mfb/Makefile
|
|
|
|
cfb/Makefile
|
|
|
|
cfb16/Makefile
|
|
|
|
cfb24/Makefile
|
|
|
|
cfb32/Makefile
|
|
|
|
mi/Makefile
|
|
|
|
miext/Makefile
|
|
|
|
miext/damage/Makefile
|
|
|
|
miext/shadow/Makefile
|
|
|
|
miext/cw/Makefile
|
|
|
|
miext/layer/Makefile
|
|
|
|
os/Makefile
|
|
|
|
randr/Makefile
|
|
|
|
render/Makefile
|
|
|
|
xkb/Makefile
|
|
|
|
Xext/Makefile
|
|
|
|
Xi/Makefile
|
|
|
|
xfixes/Makefile
|
|
|
|
hw/Makefile
|
|
|
|
hw/xfree86/Makefile
|
|
|
|
hw/xfree86/common/Makefile
|
|
|
|
hw/xfree86/common/xf86Build.h
|
|
|
|
hw/xfree86/ddc/Makefile
|
|
|
|
hw/xfree86/dixmods/Makefile
|
2005-07-14 04:53:31 +02:00
|
|
|
hw/xfree86/dixmods/extmod/Makefile
|
2005-07-14 02:28:47 +02:00
|
|
|
hw/xfree86/dri/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
hw/xfree86/dummylib/Makefile
|
2005-08-07 01:34:09 +02:00
|
|
|
hw/xfree86/exa/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
hw/xfree86/fbdevhw/Makefile
|
|
|
|
hw/xfree86/i2c/Makefile
|
|
|
|
hw/xfree86/int10/Makefile
|
|
|
|
hw/xfree86/loader/Makefile
|
|
|
|
hw/xfree86/os-support/Makefile
|
|
|
|
hw/xfree86/os-support/bus/Makefile
|
2005-07-16 00:51:05 +02:00
|
|
|
hw/xfree86/os-support/drm/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
hw/xfree86/os-support/misc/Makefile
|
|
|
|
hw/xfree86/os-support/linux/Makefile
|
2005-07-14 03:00:39 +02:00
|
|
|
hw/xfree86/os-support/solaris/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
hw/xfree86/parser/Makefile
|
|
|
|
hw/xfree86/rac/Makefile
|
|
|
|
hw/xfree86/ramdac/Makefile
|
|
|
|
hw/xfree86/scanpci/Makefile
|
|
|
|
hw/xfree86/shadowfb/Makefile
|
|
|
|
hw/xfree86/vbe/Makefile
|
|
|
|
hw/xfree86/vgahw/Makefile
|
2005-07-12 16:50:10 +02:00
|
|
|
hw/xfree86/x86emu/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
hw/xfree86/xaa/Makefile
|
|
|
|
hw/xfree86/xf1bpp/Makefile
|
|
|
|
hw/xfree86/xf4bpp/Makefile
|
|
|
|
hw/xfree86/xf8_16bpp/Makefile
|
|
|
|
hw/xfree86/xf8_32wid/Makefile
|
2005-07-12 03:20:36 +02:00
|
|
|
hw/dmx/config/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
hw/dmx/input/Makefile
|
|
|
|
hw/dmx/glxProxy/Makefile
|
|
|
|
hw/dmx/Makefile
|
2005-07-12 03:20:36 +02:00
|
|
|
hw/vfb/Makefile
|
2005-07-14 05:32:09 +02:00
|
|
|
hw/xnest/Makefile
|
2005-07-05 00:18:40 +02:00
|
|
|
hw/xwin/Makefile
|
2005-08-17 21:03:18 +02:00
|
|
|
Xprint/Makefile
|
|
|
|
Xprint/pcl/Makefile
|
|
|
|
Xprint/raster/Makefile
|
|
|
|
Xprint/ps/Makefile
|
2005-07-01 22:29:53 +02:00
|
|
|
xorg-server.pc
|
|
|
|
])
|