2007-08-01 00:52:20 +02:00
dnl Copyright © 2003-2007 Keith Packard, Daniel Stone
2005-07-01 22:29:53 +02:00
dnl
2007-08-01 00:52:20 +02:00
dnl Permission is hereby granted, free of charge, to any person obtaining a
dnl copy of this software and associated documentation files (the "Software"),
dnl to deal in the Software without restriction, including without limitation
dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
dnl and/or sell copies of the Software, and to permit persons to whom the
dnl Software is furnished to do so, subject to the following conditions:
2005-07-01 22:29:53 +02:00
dnl
2007-08-01 00:52:20 +02:00
dnl The above copyright notice and this permission notice (including the next
dnl paragraph) shall be included in all copies or substantial portions of the
dnl Software.
2005-07-01 22:29:53 +02:00
dnl
2007-08-01 00:52:20 +02:00
dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
dnl DEALINGS IN THE SOFTWARE.
dnl
dnl Authors: Keith Packard <keithp@keithp.com>
dnl Daniel Stone <daniel@fooishbar.org>
dnl an unwitting cast of miscellaneous others
2005-07-01 22:29:53 +02:00
dnl
dnl Process this file with autoconf to create configure.
2005-08-02 00:13:20 +02:00
AC_PREREQ(2.57)
2008-08-20 23:42:22 +02:00
AC_INIT([xorg-server], 1.4.2-apple10, [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-12-28 11:31:46 +01:00
dnl xgl-config.h covers the Xgl DDX.
AC_CONFIG_HEADERS(include/xgl-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-12-27 09:31:37 +01:00
dnl kdrive-config.h covers the kdrive DDX
AC_CONFIG_HEADERS(include/kdrive-config.h)
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
2005-11-30 00:34:30 +01:00
AC_DISABLE_STATIC
2005-07-01 22:29:53 +02:00
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
2006-10-27 18:26:30 +02:00
AC_SYS_LARGEFILE
2005-09-24 04:40:51 +02:00
XORG_PROG_RAWCPP
2005-07-01 22:29:53 +02:00
2006-11-03 21:54:43 +01:00
dnl Check for dtrace program (needed to build Xserver dtrace probes)
2007-12-08 02:28:37 +01:00
dnl Also checks for <sys/sdt.h>, since some Linux distros have an
dnl ISDN trace program named dtrace
2006-11-03 21:54:43 +01:00
AC_ARG_WITH(dtrace, AS_HELP_STRING([--with-dtrace=PATH],
[Enable dtrace probes (default: enabled if dtrace found)]),
[WDTRACE=$withval], [WDTRACE=auto])
if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
2007-11-20 15:59:11 +01:00
case $host_os in
2008-05-09 01:56:54 +02:00
darwin*) WDTRACE="no" ;;
*) AC_PATH_PROG(DTRACE, [dtrace], [not_found], [$PATH:/usr/sbin])
if test "x$DTRACE" = "xnot_found" ; then
2007-11-20 15:59:11 +01:00
if test "x$WDTRACE" = "xyes" ; then
AC_MSG_FAILURE([dtrace requested but not found])
fi
2007-12-08 02:28:37 +01:00
WDTRACE="no"
2008-05-09 01:56:54 +02:00
else
AC_CHECK_HEADER(sys/sdt.h, [HAS_SDT_H="yes"], [HAS_SDT_H="no"])
if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
WDTRACE="no"
fi
2007-11-20 15:59:11 +01:00
fi ;;
esac
2006-11-03 21:54:43 +01:00
fi
if test "x$WDTRACE" != "xno" ; then
AC_DEFINE(XSERVER_DTRACE, 1,
[Define to 1 if the DTrace Xserver provider probes should be built in.])
fi
AM_CONDITIONAL(XSERVER_DTRACE, [test "x$WDTRACE" != "xno"])
2007-08-16 01:44:49 +02:00
# DTrace support uses XErrorDB to get request names
AC_ARG_WITH(xerrordb,
AS_HELP_STRING([--with-xerrordb=PATH], [Path to XErrorDB file (default: ${datadir}/X11/XErrorDB)]),
[ XERRORDB_PATH="$withval" ],
[ XERRORDB_PATH="${datadir}/X11/XErrorDB" ])
AC_DEFINE_DIR(XERRORDB_PATH, XERRORDB_PATH, [Path to XErrorDB file])
2006-11-03 21:54:43 +01:00
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
2007-01-04 00:44:55 +01:00
# Checks for headers/macros for byte swapping
# Known variants:
# <byteswap.h> bswap_16, bswap_32, bswap_64 (glibc)
# <sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
# <sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
# and a fallback to local macros if none of the above are found
# if <byteswap.h> is found, assume it's the correct version
AC_CHECK_HEADERS([byteswap.h])
# if <sys/endian.h> is found, have to check which version
AC_CHECK_HEADER([sys/endian.h], [HAVE_SYS_ENDIAN_H="yes"], [HAVE_SYS_ENDIAN_H="no"])
if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
AC_MSG_CHECKING([for __swap16 variant of <sys/endian.h> byteswapping macros])
AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <sys/endian.h>
], [
int a = 1, b;
b = __swap16(a);
])
], [SYS_ENDIAN__SWAP='yes'], [SYS_ENDIAN__SWAP='no'])
AC_MSG_RESULT([$SYS_ENDIAN__SWAP])
2007-05-24 20:00:04 +02:00
AC_MSG_CHECKING([for bswap16 variant of <sys/endian.h> byteswapping macros])
2007-01-04 00:44:55 +01:00
AC_LINK_IFELSE([AC_LANG_PROGRAM([
#include <sys/endian.h>
], [
int a = 1, b;
2007-05-24 20:00:04 +02:00
b = bswap16(a);
2007-01-04 00:44:55 +01:00
])
], [SYS_ENDIAN_BSWAP='yes'], [SYS_ENDIAN_BSWAP='no'])
AC_MSG_RESULT([$SYS_ENDIAN_BSWAP])
if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
USE_SYS_ENDIAN_H=yes
2007-05-24 20:00:04 +02:00
BSWAP=bswap
2007-01-04 00:44:55 +01:00
else
if test "$SYS_ENDIAN__SWAP" = "yes" ; then
USE_SYS_ENDIAN_H=yes
BSWAP=__swap
else
USE_SYS_ENDIAN_H=no
fi
fi
if test "$USE_SYS_ENDIAN_H" = "yes" ; then
AC_DEFINE([USE_SYS_ENDIAN_H], 1,
[Define to use byteswap macros from <sys/endian.h>])
AC_DEFINE_UNQUOTED([bswap_16], ${BSWAP}16,
[Define to 16-bit byteswap macro])
AC_DEFINE_UNQUOTED([bswap_32], ${BSWAP}32,
[Define to 32-bit byteswap macro])
AC_DEFINE_UNQUOTED([bswap_64], ${BSWAP}64,
[Define to 64-bit byteswap macro])
fi
fi
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 \
2006-10-19 03:11:06 +02:00
strtol getopt getopt_long vsnprintf walkcontext backtrace \
getisax])
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],
2007-06-11 04:14:57 +02:00
AC_DEFINE(HAS_GETDTABLESIZE, 1, [Have the 'getdtablesize' function.]))
2005-08-21 21:15:11 +02:00
AC_CHECK_FUNC([getifaddrs],
2007-06-11 04:14:57 +02:00
AC_DEFINE(HAS_GETIFADDRS, 1, [Have the 'getifaddrs' function.]))
2005-08-21 21:15:11 +02:00
AC_CHECK_FUNC([getpeereid],
2007-06-11 04:14:57 +02:00
AC_DEFINE(HAS_GETPEEREID, 1, [Have the 'getpeereid' function.]))
2005-08-21 21:15:11 +02:00
AC_CHECK_FUNC([getpeerucred],
2007-06-11 04:14:57 +02:00
AC_DEFINE(HAS_GETPEERUCRED, 1, [Have the 'getpeerucred' function.]))
2005-09-24 04:40:51 +02:00
AC_CHECK_FUNC([strlcat], HAVE_STRLCAT=yes, HAVE_STRLCAT=no)
AM_CONDITIONAL(NEED_STRLCAT, [test x$HAVE_STRLCAT = xno])
2007-10-29 01:22:16 +01:00
AC_CHECK_FUNC([strlcpy], AC_DEFINE(HAS_STRLCPY, 1, [Have the 'strlcpy' 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])
2006-03-11 03:10:14 +01:00
dnl Check for mmap support for Xvfb
2007-06-11 04:14:57 +02:00
AC_CHECK_FUNC([mmap], AC_DEFINE(HAS_MMAP, 1, [Have the 'mmap' function.]))
2006-03-11 03:10:14 +01:00
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)
2007-05-10 03:49:44 +02:00
AC_CHECK_LIB(m, cbrt, AC_DEFINE(HAVE_CBRT, 1, [Have the 'cbrt' function]))
2005-07-01 22:29:53 +02:00
AC_CHECK_HEADERS([ndbm.h dbm.h rpcsvc/dbm.h])
2005-08-21 21:15:11 +02:00
dnl AGPGART headers
2005-09-13 20:37:35 +02:00
AC_CHECK_HEADERS([linux/agpgart.h sys/agpio.h], AGP=yes)
2005-10-16 05:02:53 +02:00
AM_CONDITIONAL(AGP, [test "x$AGP" = xyes])
2005-07-01 22:29:53 +02:00
2005-08-21 21:15:11 +02:00
dnl APM header
2006-05-09 20:04:29 +02:00
AC_CHECK_HEADERS([linux/apm_bios.h], LNXAPM=yes)
AM_CONDITIONAL(LNXAPM, [test "x$LNXAPM" = xyes])
2005-07-01 22:29:53 +02:00
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
2006-04-01 23:20:31 +02:00
AC_CHECK_HEADERS([asm/mtrr.h], ac_cv_asm_mtrr_h=yes)
if test "x$ac_cv_asm_mtrr_h" = xyes; then
HAVE_MTRR=yes
fi
2005-07-01 22:29:53 +02:00
2005-09-13 20:37:35 +02:00
dnl BSD MTRR header
AC_CHECK_HEADERS([sys/memrange.h], ac_cv_memrange_h=yes)
2005-10-16 05:02:53 +02:00
if test "x$ac_cv_memrange_h" = xyes; then
2006-04-01 23:20:31 +02:00
HAVE_MTRR=yes
fi
if test "x$HAVE_MTRR" = xyes; then
AC_DEFINE(HAS_MTRR_SUPPORT, 1, [MTRR support available])
2005-09-13 20:37:35 +02:00
fi
dnl A NetBSD MTRR header
2006-04-01 23:20:31 +02:00
AC_CHECK_HEADERS([machine/mtrr.h], ac_cv_machine_mtrr_h=yes)
if test "x$ac_cv_machine_mtrr_h" = xyes; then
2005-09-13 20:37:35 +02:00
AC_DEFINE(HAS_MTRR_BUILTIN, 1, [Define to 1 if NetBSD built-in MTRR
support is available])
fi
dnl FreeBSD kldload support (sys/linker.h)
2005-12-30 13:05:47 +01:00
AC_CHECK_HEADERS([sys/linker.h],
2005-09-13 20:37:35 +02:00
[ac_cv_sys_linker_h=yes],
2005-12-30 13:05:47 +01:00
[ac_cv_sys_linker_h=no],
[#include <sys/param.h>])
2005-10-16 05:02:53 +02:00
AM_CONDITIONAL(FREEBSD_KLDLOAD, [test "x$ac_cv_sys_linker_h" = xyes])
2005-09-13 20:37:35 +02:00
2005-07-01 22:29:53 +02:00
AC_CACHE_CHECK([for SYSV IPC],
ac_cv_sysv_ipc,
2005-10-05 02:55:08 +02:00
[AC_TRY_LINK([
2005-07-01 22:29:53 +02:00
#include <sys/shm.h>
2005-12-30 13:05:47 +01:00
],[
2006-12-02 01:42:37 +01:00
{
2005-07-01 22:29:53 +02:00
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
2006-03-15 22:25:38 +01:00
dnl OpenBSD /dev/xf86 aperture driver
if test -c /dev/xf86 ; then
AC_DEFINE(HAS_APERTURE_DRV, 1, [System has /dev/xf86 aperture driver])
fi
2005-10-03 08:31:48 +02:00
dnl glibc backtrace support check (hw/xfree86/common/xf86Events.c)
AC_CHECK_HEADER([execinfo.h],[
AC_CHECK_LIB(c, backtrace, [
AC_DEFINE(HAVE_BACKTRACE, 1, [Has backtrace support])
2006-08-12 18:25:06 +02:00
AC_DEFINE(HAVE_EXECINFO_H, 1, [Have execinfo.h])
2005-10-03 17:37:57 +02:00
])]
2005-10-03 08:31:48 +02:00
)
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 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
2005-09-13 20:37:35 +02:00
alpha*)
ALPHA_VIDEO=yes
case $host_os in
*netbsd*) AC_DEFINE(USE_ALPHA_PIO, 1, [NetBSD PIO alpha IO]) ;;
esac
;;
arm*)
ARM_VIDEO=yes
2005-07-01 22:29:53 +02:00
;;
i*86)
2005-08-21 21:15:11 +02:00
use_x86_asm="yes"
2005-09-13 20:37:35 +02:00
I386_VIDEO=yes
2005-07-14 00:54:02 +02:00
case $host_os in
2007-02-17 11:23:11 +01:00
darwin*) use_x86_asm="no" ;;
2005-08-03 01:57:52 +02:00
*linux*) DEFAULT_INT10=vm86 ;;
2005-12-01 06:04:07 +01:00
*freebsd*) AC_DEFINE(USE_DEV_IO) ;;
2008-04-07 13:09:04 +02:00
*dragonfly*) AC_DEFINE(USE_DEV_IO) ;;
2006-05-25 00:43:13 +02:00
*netbsd*) AC_DEFINE(USE_I386_IOPL)
SYS_LIBS=-li386
;;
2006-03-05 17:35:08 +01:00
*openbsd*) AC_DEFINE(USE_I386_IOPL)
SYS_LIBS=-li386
;;
2005-07-14 00:54:02 +02:00
esac
2005-07-01 22:29:53 +02:00
;;
2005-09-13 20:37:35 +02:00
powerpc*)
PPC_VIDEO=yes
case $host_os in
*freebsd*) DEFAULT_INT10=stub ;;
esac
;;
sparc*)
xorg_loader_sparcmuldiv="yes"
SPARC64_VIDEO=yes
BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
;;
x86_64*|amd64*)
use_x86_asm="yes"
I386_VIDEO=yes
case $host_os in
2007-02-17 11:23:11 +01:00
darwin*) use_x86_asm="no" ;;
2005-09-13 20:37:35 +02:00
*freebsd*) AC_DEFINE(USE_DEV_IO, 1, [BSD /dev/io]) ;;
2008-04-07 13:09:04 +02:00
*dragonfly*) AC_DEFINE(USE_DEV_IO, 1, [BSD /dev/io]) ;;
2006-05-25 00:43:13 +02:00
*netbsd*) AC_DEFINE(USE_I386_IOPL, 1, [BSD i386 iopl])
SYS_LIBS=-lx86_64
;;
2006-03-05 17:35:08 +01:00
*openbsd*) AC_DEFINE(USE_AMD64_IOPL, 1, [BSD AMD64 iopl])
SYS_LIBS=-lamd64
;;
2005-09-13 20:37:35 +02:00
esac
;;
esac
dnl BSD *_video.c selection
2005-10-16 05:02:53 +02:00
AM_CONDITIONAL(ALPHA_VIDEO, [test "x$ALPHA_VIDEO" = xyes])
AM_CONDITIONAL(ARM_VIDEO, [test "x$ARM_VIDEO" = xyes])
AM_CONDITIONAL(I386_VIDEO, [test "x$I386_VIDEO" = xyes])
AM_CONDITIONAL(PPC_VIDEO, [test "x$PPC_VIDEO" = xyes])
AM_CONDITIONAL(SPARC64_VIDEO, [test "x$SPARC64_VIDEO" = xyes])
2005-09-13 20:37:35 +02:00
2005-09-13 22:59:05 +02:00
DRI=no
2006-02-10 08:52:05 +01:00
KDRIVE_HW=no
2005-09-13 20:37:35 +02:00
dnl it would be nice to autodetect these *CONS_SUPPORTs
case $host_os in
2008-04-07 13:09:04 +02:00
*freebsd* | *dragonfly*)
2006-06-03 12:48:37 +02:00
case $host_os in
kfreebsd*-gnu) ;;
*) AC_DEFINE(CSRG_BASED, 1, [System is BSD-like]) ;;
esac
2005-09-13 20:37:35 +02:00
AC_DEFINE(PCCONS_SUPPORT, 1, [System has PC console])
AC_DEFINE(PCVT_SUPPORT, 1, [System has PCVT console])
AC_DEFINE(SYSCONS_SUPPORT, 1, [System has syscons console])
2005-09-13 22:59:05 +02:00
DRI=yes
2005-09-13 20:37:35 +02:00
;;
*netbsd*)
AC_DEFINE(CSRG_BASED, 1, [System is BSD-like])
AC_DEFINE(PCCONS_SUPPORT, 1, [System has PC console])
2006-11-14 23:37:18 +01:00
AC_DEFINE(PCVT_SUPPORT, 1, [System has PCVT console])
2005-09-13 20:37:35 +02:00
AC_DEFINE(WSCONS_SUPPORT, 1, [System has wscons console])
2005-09-13 22:59:05 +02:00
DRI=yes
2005-09-13 20:37:35 +02:00
;;
*openbsd*)
AC_DEFINE(CSRG_BASED, 1, [System is BSD-like])
2006-02-24 18:01:57 +01:00
AC_DEFINE(PCVT_SUPPORT, 1, [System has PC console])
2005-09-13 20:37:35 +02:00
AC_DEFINE(WSCONS_SUPPORT, 1, [System has wscons console])
2005-08-03 01:57:52 +02:00
;;
2005-09-13 22:59:05 +02:00
*linux*)
DRI=yes
2006-02-10 08:52:05 +01:00
KDRIVE_HW=yes
2005-09-13 22:59:05 +02:00
;;
2007-01-09 02:36:07 +01:00
*solaris*)
PKG_CHECK_EXISTS(libdrm, DRI=yes, DRI=no)
;;
2008-05-07 01:07:33 +02:00
darwin*)
AC_DEFINE(CSRG_BASED, 1, [System is BSD-like])
;;
2005-07-01 22:29:53 +02:00
esac
2006-02-10 08:52:05 +01:00
AM_CONDITIONAL(KDRIVE_HW, test "x$KDRIVE_HW" = xyes)
2005-07-01 22:29:53 +02:00
2007-09-05 22:30:02 +02:00
XORG_RELEASE_VERSION
dnl augment XORG_RELEASE_VERSION for our snapshot number and to expose the
dnl major number
PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
PVS=`echo $PACKAGE_VERSION | cut -d . -f 4`
if test "x$PVS" = "x"; then
PVS="0"
fi
VENDOR_RELEASE="((($PVMAJOR) * 10000000) + (($PVM) * 100000) + (($PVP) * 1000) + $PVS)"
VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
VENDOR_NAME="The X.Org Foundation"
VENDOR_NAME_SHORT="X.Org"
2008-06-11 16:27:10 +02:00
RELEASE_DATE="11 June 2008"
2007-09-05 22:30:02 +02:00
VENDOR_WEB="http://wiki.x.org"
2005-07-01 22:29:53 +02:00
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.
2005-10-17 19:11:12 +02:00
AC_ARG_ENABLE(werror, AS_HELP_STRING([--enable-werror],
[Treat warnings as errors (default: disabled)]),
[WERROR=$enableval], [WERROR=no])
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],
[Enable debugging (default: disabled)]),
[DEBUGGING=$enableval], [DEBUGGING=no])
2005-08-21 21:15:11 +02:00
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"])
2007-01-25 03:54:38 +01:00
AC_ARG_WITH(vendor-name, AS_HELP_STRING([--with-vendor-name=VENDOR],
2005-10-17 19:11:12 +02:00
[Vendor string reported by the server]),
2007-09-05 22:30:02 +02:00
[ VENDOR_NAME="$withval" ], [])
2007-01-25 03:54:38 +01:00
AC_ARG_WITH(vendor-name-short, AS_HELP_STRING([--with-vendor-name-short=VENDOR],
2005-11-03 18:08:06 +01:00
[Short version of vendor string reported by the server]),
2007-09-05 22:30:02 +02:00
[ VENDOR_NAME_SHORT="$withval" ], [])
2005-10-17 19:11:12 +02:00
AC_ARG_WITH(vendor-web, AS_HELP_STRING([--with-vendor-web=URL],
[Vendor web address reported by the server]),
2007-09-05 22:30:02 +02:00
[ VENDOR_WEB="$withval" ], [])
2005-09-15 07:06:54 +02:00
AC_ARG_WITH(module-dir, AS_HELP_STRING([--with-module-dir=DIR],
2005-10-17 19:11:12 +02:00
[Directory where modules are installed (default: $libdir/xorg/modules)]),
2005-07-01 22:29:53 +02:00
[ moduledir="$withval" ],
2005-08-21 21:15:11 +02:00
[ moduledir="${libdir}/xorg/modules" ])
2005-10-17 19:11:12 +02:00
AC_ARG_WITH(log-dir, AS_HELP_STRING([--with-log-dir=DIR],
[Directory where log files are kept (default: $localstatedir/log)]),
2005-09-15 07:06:54 +02:00
[ logdir="$withval" ],
[ logdir="$localstatedir/log" ])
2005-10-17 19:11:12 +02:00
AC_ARG_WITH(builder-addr, AS_HELP_STRING([--with-builder-addr=ADDRESS],
[Builder address (default: xorg@lists.freedesktop.org)]),
2005-07-01 22:29:53 +02:00
[ BUILDERADDR="$withval" ],
[ BUILDERADDR="xorg@lists.freedesktop.org" ])
2007-05-02 17:20:48 +02:00
AC_ARG_WITH(os-name, AS_HELP_STRING([--with-os-name=OSNAME], [Name of OS (default: output of "uname -srm")]),
2005-07-12 03:20:36 +02:00
[ OSNAME="$withval" ],
2007-05-02 17:20:48 +02:00
[ OSNAME=`uname -srm` ])
2005-10-17 19:11:12 +02:00
AC_ARG_WITH(os-vendor, AS_HELP_STRING([--with-os-vendor=OSVENDOR], [Name of OS vendor]),
2005-07-12 03:20:36 +02:00
[ OSVENDOR="$withval" ],
[ OSVENDOR="" ])
2007-02-12 23:22:39 +01:00
AC_ARG_WITH(builderstring, AS_HELP_STRING([--with-builderstring=BUILDERSTRING], [Additional builder string]),
[ BUILDERSTRING="$withval" ]
[ ])
2005-12-08 20:21:12 +01:00
AC_ARG_WITH(fontdir, AS_HELP_STRING([--with-fontdir=FONTDIR], [Path to top level dir where fonts are installed (default: ${libdir}/X11/fonts)]),
[ FONTDIR="$withval" ],
[ FONTDIR="${libdir}/X11/fonts" ])
2006-11-30 23:41:41 +01:00
DEFAULT_FONT_PATH="${FONTDIR}/misc/,${FONTDIR}/TTF/,${FONTDIR}/OTF,${FONTDIR}/Type1/,${FONTDIR}/100dpi/,${FONTDIR}/75dpi/"
2007-12-03 03:21:40 +01:00
case $host_os in
darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
esac
2005-10-17 19:11:12 +02:00
AC_ARG_WITH(default-font-path, AS_HELP_STRING([--with-default-font-path=PATH], [Comma separated list of font dirs]),
2005-08-21 08:56:19 +02:00
[ FONTPATH="$withval" ],
2005-10-15 00:19:51 +02:00
[ FONTPATH="${DEFAULT_FONT_PATH}" ])
2005-10-17 19:11:12 +02:00
AC_ARG_WITH(xkb-path, AS_HELP_STRING([--with-xkb-path=PATH], [Path to XKB base dir (default: ${datadir}/X11/xkb)]),
2005-08-21 21:15:11 +02:00
[ XKBPATH="$withval" ],
[ XKBPATH="${datadir}/X11/xkb" ])
2005-10-17 19:11:12 +02:00
AC_ARG_WITH(xkb-output, AS_HELP_STRING([--with-xkb-output=PATH], [Path to XKB output dir (default: ${datadir}/X11/xkb/compiled)]),
2005-09-21 20:14:32 +02:00
[ XKBOUTPUT="$withval" ],
2005-11-21 00:01:02 +01:00
[ XKBOUTPUT="compiled" ])
2005-10-17 19:11:12 +02:00
AC_ARG_WITH(rgb-path, AS_HELP_STRING([--with-rgb-path=PATH], [Path to RGB database (default: ${datadir}/X11/rgb)]),
2005-09-01 16:56:35 +02:00
[ RGBPATH="$withval" ],
[ RGBPATH="${datadir}/X11/rgb" ])
2007-05-29 03:53:02 +02:00
AC_ARG_WITH(serverconfig-path, AS_HELP_STRING([--with-serverconfig-path=PATH], [Path to server config (default: ${libdir}/xserver)]),
[ SERVERCONFIG="$withval" ],
[ SERVERCONFIG="${libdir}/xserver" ])
2007-11-12 09:44:11 +01:00
AC_ARG_WITH(apple-applications-dir,AS_HELP_STRING([--with-apple-applications-dir=PATH], [Path to the Applications directory (default: /Applications/Utilities)]),
2007-12-14 00:56:31 +01:00
[ APPLE_APPLICATIONS_DIR="${withval}" ],
2007-11-15 10:49:33 +01:00
[ APPLE_APPLICATIONS_DIR="/Applications/Utilities" ])
2007-12-14 00:56:31 +01:00
AC_SUBST([APPLE_APPLICATIONS_DIR])
AC_ARG_WITH(launchagents-dir,AS_HELP_STRING([--with-launchagents-dir=PATH], [Path to launchd's LaunchAgents directory (default: /Library/LaunchAgents)]),
[ launchagentsdir="${withval}" ],
[ launchagentsdir="/Library/LaunchAgents" ])
AC_SUBST([launchagentsdir])
2005-10-17 19:11:12 +02:00
AC_ARG_ENABLE(builddocs, AS_HELP_STRING([--enable-builddocs], [Build docs (default: disabled)]),
2005-09-27 16:09:31 +02:00
[BUILDDOCS=$enableval],
[BUILDDOCS=no])
2005-11-23 08:14:46 +01:00
AC_ARG_ENABLE(install-libxf86config,
AS_HELP_STRING([--enable-install-libxf86config],
[Install libxf86config (default: disabled)]),
[INSTALL_LIBXF86CONFIG=$enableval],
[INSTALL_LIBXF86CONFIG=no])
2006-07-20 01:55:13 +02:00
AC_ARG_ENABLE(builtin-fonts, AS_HELP_STRING([--enable-builtin-fonts], [Use only built-in fonts (default: use external)]),
[BUILTIN_FONTS=$enableval],
[BUILTIN_FONTS=no])
2006-08-18 17:03:41 +02:00
AC_ARG_ENABLE(null-root-cursor, AS_HELP_STRING([--enable-null-root-cursor], [Use an empty root cursor (default: use core cursor)]),
[NULL_ROOT_CURSOR=$enableval],
[NULL_ROOT_CURSOR=no])
2005-08-21 21:15:11 +02:00
2007-04-05 18:14:31 +02:00
dnl GLX build options
AC_ARG_WITH(mesa-source, AS_HELP_STRING([--with-mesa-source=MESA_SOURCE], [Path to Mesa source tree]),
[ MESA_SOURCE="$withval" ],
[ MESA_SOURCE="" ])
AC_ARG_WITH(dri-driver-path, AS_HELP_STRING([--with-dri-driver-path=PATH], [Path to DRI drivers (default: ${libdir}/dri)]),
[ DRI_DRIVER_PATH="$withval" ],
[ DRI_DRIVER_PATH="${libdir}/dri" ])
AC_ARG_ENABLE(aiglx, AS_HELP_STRING([--enable-aiglx], [Build accelerated indirect GLX (default: enabled)]),
[AIGLX=$enableval],
[AIGLX=yes])
AC_ARG_ENABLE(glx-tls, AS_HELP_STRING([--enable-glx-tls], [Build GLX with TLS support (default: disabled)]),
[GLX_USE_TLS=$enableval],
[GLX_USE_TLS=no])
2005-08-21 21:15:11 +02:00
dnl Extensions.
2008-04-29 00:10:26 +02:00
AC_ARG_ENABLE(composite, AS_HELP_STRING([--disable-composite], [Build Composite extension (default: enabled)]), [COMPOSITE=$enableval], [COMPOSITE=yes])
2005-10-17 19:11:12 +02:00
AC_ARG_ENABLE(mitshm, AS_HELP_STRING([--disable-shm], [Build SHM extension (default: enabled)]), [MITSHM=$enableval], [MITSHM=yes])
AC_ARG_ENABLE(xres, AS_HELP_STRING([--disable-xres], [Build XRes extension (default: enabled)]), [RES=$enableval], [RES=yes])
2005-11-29 17:39:33 +01:00
AC_ARG_ENABLE(xtrap, AS_HELP_STRING([--disable-xtrap], [Build XTrap extension (default: enabled)]), [XTRAP=$enableval], [XTRAP=yes])
2008-04-29 00:10:26 +02:00
AC_ARG_ENABLE(record, AS_HELP_STRING([--enable-record], [Build Record extension (default: disabled)]), [RECORD=$enableval], [RECORD=no])
2005-10-17 19:11:12 +02:00
AC_ARG_ENABLE(xv, AS_HELP_STRING([--disable-xv], [Build Xv extension (default: enabled)]), [XV=$enableval], [XV=yes])
2005-12-01 23:06:49 +01:00
AC_ARG_ENABLE(xvmc, AS_HELP_STRING([--disable-xvmc], [Build XvMC extension (default: enabled)]), [XVMC=$enableval], [XVMC=yes])
2006-08-10 19:28:06 +02:00
AC_ARG_ENABLE(dga, AS_HELP_STRING([--disable-dga], [Build DGA extension (default: auto)]), [DGA=$enableval], [DGA=auto])
2005-10-17 19:11:12 +02:00
AC_ARG_ENABLE(screensaver, AS_HELP_STRING([--disable-screensaver], [Build ScreenSaver extension (default: enabled)]), [SCREENSAVER=$enableval], [SCREENSAVER=yes])
AC_ARG_ENABLE(xdmcp, AS_HELP_STRING([--disable-xdmcp], [Build XDMCP extension (default: auto)]), [XDMCP=$enableval], [XDMCP=auto])
AC_ARG_ENABLE(xdm-auth-1, AS_HELP_STRING([--disable-xdm-auth-1], [Build XDM-Auth-1 extension (default: auto)]), [XDMAUTH=$enableval], [XDMAUTH=auto])
AC_ARG_ENABLE(glx, AS_HELP_STRING([--disable-glx], [Build GLX extension (default: enabled)]), [GLX=$enableval], [GLX=yes])
AC_ARG_ENABLE(dri, AS_HELP_STRING([--enable-dri], [Build DRI extension (default: auto)]), [DRI=$enableval])
AC_ARG_ENABLE(xinerama, AS_HELP_STRING([--disable-xinerama], [Build Xinerama extension (default: enabled)]), [XINERAMA=$enableval], [XINERAMA=yes])
2006-08-10 19:28:06 +02:00
AC_ARG_ENABLE(xf86vidmode, AS_HELP_STRING([--disable-xf86vidmode], [Build XF86VidMode extension (default: auto)]), [XF86VIDMODE=$enableval], [XF86VIDMODE=auto])
AC_ARG_ENABLE(xf86misc, AS_HELP_STRING([--disable-xf86misc], [Build XF86Misc extension (default: auto)]), [XF86MISC=$enableval], [XF86MISC=auto])
2007-04-05 18:14:31 +02:00
AC_ARG_ENABLE(xace, AS_HELP_STRING([--disable-xace], [Build X-ACE extension (default: enabled)]), [XACE=$enableval], [XACE=yes])
2006-06-21 04:01:34 +02:00
AC_ARG_ENABLE(xcsecurity, AS_HELP_STRING([--disable-xcsecurity], [Build Security extension (default: enabled)]), [XCSECURITY=$enableval], [XCSECURITY=$XACE])
2006-06-22 03:05:51 +02:00
AC_ARG_ENABLE(appgroup, AS_HELP_STRING([--disable-appgroup], [Build XC-APPGROUP extension (default: enabled)]), [APPGROUP=$enableval], [APPGROUP=$XCSECURITY])
2006-08-29 23:07:15 +02:00
AC_ARG_ENABLE(xcalibrate, AS_HELP_STRING([--enable-xcalibrate], [Build XCalibrate extension (default: disabled)]), [XCALIBRATE=$enableval], [XCALIBRATE=no])
AC_ARG_ENABLE(tslib, AS_HELP_STRING([--enable-tslib], [Build kdrive tslib touchscreen support (default: disabled)]), [TSLIB=$enableval], [TSLIB=no])
2005-11-03 18:08:06 +01:00
AC_ARG_ENABLE(xevie, AS_HELP_STRING([--disable-xevie], [Build XEvIE extension (default: enabled)]), [XEVIE=$enableval], [XEVIE=yes])
2005-11-02 16:56:40 +01:00
AC_ARG_ENABLE(cup, AS_HELP_STRING([--disable-cup], [Build TOG-CUP extension (default: enabled)]), [CUP=$enableval], [CUP=yes])
AC_ARG_ENABLE(evi, AS_HELP_STRING([--disable-evi], [Build Extended-Visual-Information extension (default: enabled)]), [EVI=$enableval], [EVI=yes])
AC_ARG_ENABLE(multibuffer, AS_HELP_STRING([--enable-multibuffer], [Build Multibuffer extension (default: disabled)]), [MULTIBUFFER=$enableval], [MULTIBUFFER=no])
AC_ARG_ENABLE(fontcache, AS_HELP_STRING([--enable-fontcache], [Build FontCache extension (default: disabled)]), [FONTCACHE=$enableval], [FONTCACHE=no])
AC_ARG_ENABLE(dbe, AS_HELP_STRING([--disable-dbe], [Build DBE extension (default: enabled)]), [DBE=$enableval], [DBE=yes])
2008-04-29 00:10:26 +02:00
AC_ARG_ENABLE(xf86bigfont, AS_HELP_STRING([--disable-xf86bigfont], [Build XF86 Big Font extension (default: enabled)]), [XF86BIGFONT=$enableval], [XF86BIGFONT=yes])
2006-07-11 01:37:53 +02:00
AC_ARG_ENABLE(dpms, AS_HELP_STRING([--disable-dpms], [Build DPMS extension (default: enabled)]), [DPMSExtension=$enableval], [DPMSExtension=yes])
2007-08-01 19:08:31 +02:00
AC_ARG_ENABLE(config-dbus, AS_HELP_STRING([--enable-config-dbus], [Build D-BUS API support (default: no)]), [CONFIG_DBUS_API=$enableval], [CONFIG_DBUS_API=no])
2007-08-01 00:10:50 +02:00
AC_ARG_ENABLE(config-hal, AS_HELP_STRING([--disable-config-hal], [Build HAL support (default: auto)]), [CONFIG_HAL=$enableval], [CONFIG_HAL=auto])
2006-09-22 05:58:32 +02:00
AC_ARG_ENABLE(xfree86-utils, AS_HELP_STRING([--enable-xfree86-utils], [Build xfree86 DDX utilities (default: enabled)]), [XF86UTILS=$enableval], [XF86UTILS=yes])
2005-08-21 21:15:11 +02:00
dnl DDXes.
AC_ARG_ENABLE(xorg, AS_HELP_STRING([--enable-xorg], [Build Xorg server (default: auto)]), [XORG=$enableval], [XORG=auto])
2007-10-29 01:22:16 +01:00
AC_ARG_ENABLE(dmx, AS_HELP_STRING([--enable-dmx], [Build DMX server (default: no)]), [DMX=$enableval], [DMX=no])
2008-04-29 00:10:26 +02:00
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])
2007-11-15 06:25:50 +01:00
AC_ARG_ENABLE(xquartz, AS_HELP_STRING([--enable-xquartz], [Build Xquartz server for OS-X (default: auto)]), [XQUARTZ=$enableval], [XQUARTZ=auto])
2005-08-21 21:15:11 +02:00
AC_ARG_ENABLE(xwin, AS_HELP_STRING([--enable-xwin], [Build XWin server (default: auto)]), [XWIN=$enableval], [XWIN=auto])
2007-10-29 01:22:16 +01:00
AC_ARG_ENABLE(xprint, AS_HELP_STRING([--enable-xprint], [Build Xprint extension and server (default: no)]), [XPRINT=$enableval], [XPRINT=no])
2005-12-28 11:31:46 +01:00
AC_ARG_ENABLE(xgl, AS_HELP_STRING([--enable-xgl], [Build Xgl server (default: no)]), [XGL=$enableval], [XGL=no])
AC_ARG_ENABLE(xglx, AS_HELP_STRING([--enable-xglx], [Build Xglx xgl module (default: no)]), [XGLX=$enableval], [XGLX=no])
AC_ARG_ENABLE(xegl, AS_HELP_STRING([--enable-xegl], [Build Xegl xgl module (default: no)]), [XEGL=$enableval], [XEGL=no])
2007-02-27 20:14:47 +01:00
dnl legacy fb support
AC_ARG_ENABLE(mfb, AS_HELP_STRING([--enable-mfb], [Build legacy mono framebuffer support (default: enabled)]), [MFB=$enableval], [MFB=$XORG])
AC_ARG_ENABLE(cfb, AS_HELP_STRING([--enable-cfb], [Build legacy color framebuffer support (default: enabled)]), [CFB=$enableval], [CFB=$XORG])
AC_ARG_ENABLE(afb, AS_HELP_STRING([--enable-afb], [Build legacy advanced framebuffer support (default: enabled)]), [AFB=$enableval], [AFB=$XORG])
2006-04-01 23:02:40 +02:00
dnl kdrive and its subsystems
2005-12-27 09:31:37 +01:00
AC_ARG_ENABLE(kdrive, AS_HELP_STRING([--enable-kdrive], [Build kdrive servers (default: no)]), [KDRIVE=$enableval], [KDRIVE=no])
2005-12-28 02:01:06 +01:00
AC_ARG_ENABLE(xephyr, AS_HELP_STRING([--enable-xephyr], [Build the kdrive Xephyr server (default: auto)]), [XEPHYR=$enableval], [XEPHYR=auto])
AC_ARG_ENABLE(xsdl, AS_HELP_STRING([--enable-xsdl], [Build the kdrive Xsdl server (default: auto)]), [XSDL=$enableval], [XSDL=auto])
2006-07-19 22:51:04 +02:00
AC_ARG_ENABLE(xfake, AS_HELP_STRING([--enable-xfake], [Build the kdrive 'fake' server (default: auto)]), [XFAKE=$enableval], [XFAKE=auto])
AC_ARG_ENABLE(xfbdev, AS_HELP_STRING([--enable-xfbdev], [Build the kdrive framebuffer device server (default: auto)]), [XFBDEV=$enableval], [XFBDEV=auto])
AC_ARG_ENABLE(kdrive-vesa, AS_HELP_STRING([--enable-kdrive-vesa], [Build the kdrive VESA-based servers (default: auto)]), [KDRIVEVESA=$enableval], [KDRIVEVESA=auto])
2006-04-01 23:02:40 +02:00
dnl xprint
2006-04-02 01:53:33 +02:00
AC_ARG_ENABLE(freetype, AS_HELP_STRING([ --enable-freetype], [Build Xprint FreeType backend (default: yes)]), [XP_USE_FREETYPE=$enableval],[XP_USE_FREETYPE=no])
2006-04-01 23:02:40 +02:00
AC_ARG_WITH(freetype-config, AS_HELP_STRING([ --with-freetype-config=PROG], [Use FreeType configuration program PROG (default: auto)]), freetype_config=$withval, freetype_config=auto)
2005-08-21 21:15:11 +02:00
2005-09-20 17:50:31 +02:00
dnl chown/chmod to be setuid root as part of build
dnl Replaces InstallXserverSetUID in imake
AC_ARG_ENABLE(install-setuid,
AS_HELP_STRING([--enable-install-setuid],
[Install Xorg server as owned by root with setuid bit (default: auto)]),
[SETUID=$enableval], [SETUID=auto])
2005-09-27 16:09:31 +02:00
AC_MSG_CHECKING([to see if we can install the Xorg server as root])
2005-09-20 17:50:31 +02:00
if test "x$SETUID" = "xauto" ; then
case $host_os in
darwin*) SETUID="no" ;;
*)
case $host_cpu in
sparc) SETUID="no" ;;
*) SETUID="yes" ;;
2007-11-20 14:57:15 +01:00
esac
2005-09-20 17:50:31 +02:00
esac
2005-09-27 16:09:31 +02:00
if test "x$SETUID" = xyes; then
touch testfile
chown root testfile > /dev/null 2>&1 || SETUID="no"
rm -f testfile
fi
2005-09-20 17:50:31 +02:00
fi
2005-09-27 16:09:31 +02:00
AC_MSG_RESULT([$SETUID])
2005-09-20 17:50:31 +02:00
AM_CONDITIONAL(INSTALL_SETUID, [test "x$SETUID" = "xyes"])
2005-09-03 05:27:55 +02:00
dnl Issue an error if xtrans.m4 was not found and XTRANS_CONNECTION_FLAGS macro
2006-07-19 23:01:20 +02:00
dnl was not expanded, since xorg-server with no transport types is rather useless.
2005-09-03 05:27:55 +02:00
dnl
dnl If you're seeing an error here, be sure you installed the lib/xtrans module
dnl first and if it's not in the default location, that you set the ACLOCAL
dnl environment variable to find it, such as:
dnl ACLOCAL="aclocal -I ${PREFIX}/share/aclocal"
m4_pattern_forbid(XTRANS_CONNECTION_FLAGS)
# Transport selection macro from xtrans.m4
XTRANS_CONNECTION_FLAGS
2005-07-01 22:29:53 +02:00
2005-09-03 05:27:55 +02:00
# Secure RPC detection macro from xtrans.m4
XTRANS_SECURE_RPC_FLAGS
2007-08-18 00:29:16 +02:00
AM_CONDITIONAL(SECURE_RPC, [test "x$SECURE_RPC" = xyes])
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-09-27 16:09:31 +02:00
dnl Handle building documentation
AM_CONDITIONAL(BUILDDOCS, test "x$BUILDDOCS" = xyes)
2005-12-09 04:02:21 +01:00
dnl Only build sgml docs when linuxdoc is available and
dnl def.ents has been installed
XORG_CHECK_LINUXDOC
2005-09-27 16:09:31 +02:00
2005-11-23 08:14:46 +01:00
dnl Handle installing libxf86config
AM_CONDITIONAL(INSTALL_LIBXF86CONFIG, [test "x$INSTALL_LIBXF86CONFIG" = xyes])
2008-04-29 00:10:26 +02:00
dnl XQuartz DDX Detection... Yes, it's ugly to have it here... but we need to handle this early on
case $host_os in
darwin*)
if test x$XQUARTZ = xauto; then
AC_CACHE_CHECK([whether to build Xquartz],xorg_cv_Carbon_framework,[
save_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS -framework Carbon"
AC_LINK_IFELSE([char FSFindFolder(); int main() { FSFindFolder(); return 0;}],
[xorg_cv_Carbon_framework=yes],
[xorg_cv_Carbon_framework=no])
LDFLAGS=$save_LDFLAGS])
if test "X$xorg_cv_Carbon_framework" = Xyes; then
XQUARTZ=yes
else
XQUARTZ=no
fi
fi
if test "x$XQUARTZ" = xyes ; then
XQUARTZ=yes
XVFB=no
XNEST=no
COMPOSITE=no
DGA=no
DPMSExtension=no
XF86BIGFONT=no
XF86MISC=no
XF86VIDMODE=no
fi
;;
esac
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-11-29 17:39:33 +01:00
XEXTXORG_LIB='$(top_builddir)/Xext/libXextbuiltin.la'
2005-07-05 00:18:40 +02:00
2007-08-21 20:26:14 +02:00
PIXMAN="[pixman-1 >= 0.9.5]"
2007-08-07 18:01:14 +02:00
PKG_CHECK_MODULES(PIXMAN, $PIXMAN)
AC_SUBST(PIXMAN_CFLAGS)
2007-05-11 17:45:37 +02:00
2005-08-21 21:15:11 +02:00
dnl Core modules for most extensions, et al.
2007-09-01 00:16:01 +02:00
# Require updated renderproto for ABI sanity if we're 64-bit.
if test "$ac_cv_sizeof_unsigned_long" = 8; then
RENDERPROTO="[renderproto >= 0.9.3]"
else
RENDERPROTO="renderproto"
fi
REQUIRED_MODULES="[randrproto >= 1.2] $RENDERPROTO [fixesproto >= 4.0] [damageproto >= 1.1] xcmiscproto xextproto [xproto >= 7.0.9] xtrans [scrnsaverproto >= 1.1] bigreqsproto resourceproto fontsproto [inputproto >= 1.4.2] [kbproto >= 1.0.3]"
2007-05-11 17:45:37 +02:00
REQUIRED_LIBS="xfont xau fontenc $PIXMAN"
2005-07-06 01:01:51 +02:00
2007-07-08 13:28:58 +02:00
dnl HAVE_DBUS is true if we actually have the D-Bus library, whereas
dnl CONFIG_DBUS_API is true if we want to enable the D-Bus config
dnl API.
PKG_CHECK_MODULES(DBUS, dbus-1, [HAVE_DBUS=yes], [HAVE_DBUS=no])
if test "x$HAVE_DBUS" = xyes; then
AC_DEFINE(HAVE_DBUS, 1, [Have D-Bus support])
2006-07-19 16:05:12 +02:00
fi
2007-07-08 13:28:58 +02:00
AM_CONDITIONAL(HAVE_DBUS, [test "x$HAVE_DBUS" = xyes])
if test "x$CONFIG_DBUS_API" = xauto; then
CONFIG_DBUS_API="$HAVE_DBUS"
fi
if test "x$CONFIG_DBUS_API" = xyes; then
if ! test "x$HAVE_DBUS" = xyes; then
AC_MSG_ERROR([D-Bus configuration API requested, but D-Bus is not installed.])
fi
AC_DEFINE(CONFIG_DBUS_API, 1, [Use the D-Bus input configuration API])
NEED_DBUS="yes"
fi
AM_CONDITIONAL(CONFIG_DBUS_API, [test "x$CONFIG_DBUS_API" = xyes])
2007-08-01 00:10:50 +02:00
PKG_CHECK_MODULES(HAL, hal, [HAVE_HAL=yes], [HAVE_HAL=no])
if test "x$CONFIG_HAL" = xauto; then
CONFIG_HAL="$HAVE_HAL"
fi
if test "x$CONFIG_HAL" = xyes; then
if ! test "x$HAVE_HAL" = xyes; then
AC_MSG_ERROR([HAL hotplug API requested, but HAL is not installed.])
fi
AC_DEFINE(CONFIG_HAL, 1, [Use the HAL hotplug API])
REQUIRED_LIBS="$REQUIRED_LIBS hal"
NEED_DBUS="yes"
fi
AM_CONDITIONAL(CONFIG_HAL, [test "x$CONFIG_HAL" = xyes])
2007-07-08 13:28:58 +02:00
if test "x$NEED_DBUS" = xyes; then
REQUIRED_LIBS="$REQUIRED_LIBS dbus-1"
2006-07-19 16:05:12 +02:00
fi
2007-08-01 00:10:50 +02:00
CONFIG_LIB='$(top_builddir)/config/libconfig.a'
2006-07-19 16:05:12 +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-12-01 23:06:49 +01:00
AC_DEFINE(XvExtension, 1, [Build Xv extension])
2005-08-23 11:20:49 +02:00
REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
2006-02-16 22:35:32 +01:00
else
XVMC=no
fi
AM_CONDITIONAL(XVMC, [test "x$XVMC" = xyes])
if test "x$XVMC" = xyes; then
AC_DEFINE(XvMCExtension, 1, [Build XvMC extension])
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])
2007-07-03 23:29:11 +02:00
REQUIRED_MODULES="$REQUIRED_MODULES [compositeproto >= 0.4]"
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])
2005-10-21 20:23:33 +02:00
if test "x$RES" = xyes; then
2005-08-21 21:15:11 +02:00
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
if test "x$GLX" = xyes && ! test "x$MESA_SOURCE" = x; then
2005-11-19 08:15:50 +01:00
PKG_CHECK_MODULES([XLIB], [x11])
2007-01-09 09:53:45 +01:00
PKG_CHECK_MODULES([GL], [glproto >= 1.4.8])
2005-11-19 08:15:50 +01:00
AC_SUBST(XLIB_CFLAGS)
2005-08-21 21:15:11 +02:00
AC_DEFINE(GLXEXT, 1, [Build GLX extension])
2007-11-07 08:19:03 +01: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
2006-10-10 02:24:37 +02:00
case $host_os in
solaris*)
SYMLINK_MESA="/usr/bin/bash $srcdir/GL/symlink-mesa.sh" ;;
*) SYMLINK_MESA=$srcdir/GL/symlink-mesa.sh ;;
esac
$SYMLINK_MESA $MESA_SOURCE GL/
2006-01-10 03:32:20 +01:00
if test $? -ne 0; then
AC_MSG_ERROR([Failed to link Mesa source tree. Please specify a proper path to Mesa sources, or disable GLX.])
fi
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])
2006-03-12 01:11:34 +01:00
if test "x$AIGLX" = xyes -a "x$GLX" = xyes -a "x$DRI" = xyes; then
AC_DEFINE(AIGLX, 1, [Build AIGLX loader])
else
AIGLX=no
fi
AM_CONDITIONAL(AIGLX, test "x$AIGLX" = xyes)
2006-03-28 04:57:07 +02:00
if test "x$GLX_USE_TLS" = xyes -a "x$AIGLX" = xyes; then
GLX_DEFINES="-DGLX_USE_TLS -DPTHREADS"
2006-03-28 23:45:14 +02:00
GLX_LIBS="$GLX_LIBS -lpthread"
2006-03-28 04:57:07 +02:00
fi
AC_SUBST([GLX_DEFINES])
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])
2006-11-08 23:30:33 +01:00
PKG_CHECK_MODULES([LIBDRM], [libdrm >= 2.3.0])
2005-11-01 16:01:51 +01:00
PKG_CHECK_MODULES([GL], [glproto >= 1.4.1])
2006-11-05 02:41:25 +01:00
PKG_CHECK_EXISTS(libdrm >= 2.2.0,
[AC_DEFINE([HAVE_LIBDRM_2_2], 1,
[Has version 2.2 (or newer) of the drm library])])
2005-08-21 21:15:11 +02:00
AC_SUBST(DRIPROTO_CFLAGS)
2005-07-16 00:51:05 +02:00
AC_SUBST(LIBDRM_CFLAGS)
2006-11-08 23:30:33 +01:00
AC_SUBST(LIBDRM_LIBS)
2005-11-01 16:01:51 +01:00
AC_SUBST(GL_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
2006-06-21 04:01:34 +02:00
AM_CONDITIONAL(XACE, [test "x$XACE" = xyes])
if test "x$XACE" = xyes; then
AC_DEFINE(XACE, 1, [Build X-ACE extension])
fi
2005-08-21 21:15:11 +02:00
AM_CONDITIONAL(XCSECURITY, [test "x$XCSECURITY" = xyes])
if test "x$XCSECURITY" = xyes; then
2006-06-21 04:01:34 +02:00
if test "x$XACE" != xyes; then
AC_MSG_ERROR([cannot build Security extension without X-ACE])
fi
2005-08-21 21:15:11 +02:00
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-10-17 09:18:59 +02:00
AM_CONDITIONAL(APPGROUP, [test "x$APPGROUP" = xyes])
if test "x$APPGROUP" = xyes; then
2006-06-22 03:05:51 +02:00
if test "x$XACE" != xyes || test "x$XCSECURITY" != xyes; then
AC_MSG_ERROR([cannot build APPGROUP extension without X-ACE and XC-SECURITY])
fi
2005-10-17 09:18:59 +02:00
AC_DEFINE(XAPPGROUP, 1, [Build APPGROUP extension])
fi
AM_CONDITIONAL(CUP, [test "x$CUP" = xyes])
if test "x$CUP" = xyes; then
AC_DEFINE(TOGCUP, 1, [Build TOG-CUP extension])
# Requires xextproto which is always required
fi
AM_CONDITIONAL(EVI, [test "x$EVI" = xyes])
if test "x$EVI" = xyes; then
AC_DEFINE(EVI, 1, [Build Extended-Visual-Information extension])
# Requires xextproto which is always required
fi
AM_CONDITIONAL(MULTIBUFFER, [test "x$MULTIBUFFER" = xyes])
if test "x$MULTIBUFFER" = xyes; then
AC_DEFINE(MULTIBUFFER, 1, [Build Multibuffer extension])
# Requires xextproto which is always required
fi
AM_CONDITIONAL(FONTCACHE, [test "x$FONTCACHE" = xyes])
if test "x$FONTCACHE" = xyes; then
AC_DEFINE(FONTCACHE, 1, [Build FontCache extension])
REQUIRED_MODULES="$REQUIRED_MODULES fontcacheproto"
fi
2005-11-02 16:56:40 +01:00
AM_CONDITIONAL(DBE, [test "x$DBE" = xyes])
if test "x$DBE" = xyes; then
AC_DEFINE(DBE, 1, [Support DBE extension])
DBE_LIB='$(top_builddir)/dbe/libdbe.la'
fi
2006-02-16 08:17:31 +01:00
AM_CONDITIONAL(XF86BIGFONT, [test "x$XF86BIGFONT" = xyes])
if test "x$XF86BIGFONT" = xyes; then
AC_DEFINE(XF86BIGFONT, 1, [Support XF86 Big font extension])
fi
AM_CONDITIONAL(DPMSExtension, [test "x$DPMSExtension" = xyes])
if test "x$DPMSExtension" = xyes; then
AC_DEFINE(DPMSExtension, 1, [Support DPMS extension])
fi
2005-11-01 16:01:51 +01:00
if test "x$XPRINT" = xauto; then
2005-11-21 05:24:07 +01:00
PKG_CHECK_MODULES([XPRINTPROTO], [printproto], [XPRINT=yes], [XPRINT=no])
2005-11-01 16:01:51 +01:00
fi
AM_CONDITIONAL(XPRINT, [test "x$XPRINT" = xyes])
if test "x$XPRINT" = xyes; then
AC_DEFINE(XPRINT, 1, [Build Print extension])
REQUIRED_MODULES="$REQUIRED_MODULES printproto"
fi
2006-07-20 01:55:13 +02:00
if test "x$BUILTIN_FONTS" = xyes; then
AC_DEFINE(BUILTIN_FONTS, 1, [Use only built-in fonts])
AC_DEFINE(NOFONTSERVERACCESS, 1, [Avoid using a font server])
2007-07-08 13:31:35 +02:00
FONTPATH="built-ins"
2006-07-20 01:55:13 +02:00
fi
2006-08-29 23:07:15 +02:00
if test "x$XCALIBRATE" = xyes && test "$KDRIVE" = yes; then
AC_DEFINE(XCALIBRATE, 1, [Build XCalibrate extension])
REQUIRED_MODULES="$REQUIRED_MODULES xcalibrateproto"
else
XCALIBRATE=no
fi
AM_CONDITIONAL(XCALIBRATE, [test "x$XCALIBRATE" = xyes])
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'
MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
2006-07-19 23:00:23 +02:00
AC_DEFINE(XINPUT, 1, [Support X Input extension])
XI_LIB='$(top_builddir)/Xi/libXi.la'
XI_INC='-I$(top_srcdir)/Xi'
2005-08-21 21:15:11 +02:00
2006-09-22 05:58:32 +02:00
AM_CONDITIONAL(XF86UTILS, test "x$XF86UTILS" = xyes)
2005-08-21 21:15:11 +02:00
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
2006-03-28 00:28:32 +02:00
AC_CHECK_FUNC(strcasecmp, [], AC_DEFINE([NEED_STRCASECMP], 1,
2007-06-11 04:14:57 +02:00
[Do not have 'strcasecmp'.]))
2005-07-01 22:29:53 +02:00
2006-08-18 17:03:41 +02:00
if test "x$NULL_ROOT_CURSOR" = xyes; then
AC_DEFINE(NULL_ROOT_CURSOR, 1, [Use an empty root cursor])
fi
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-11-29 17:39:33 +01:00
REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
2005-10-05 17:33:40 +02:00
XDMCP_MODULES="xdmcp"
2005-07-01 22:29:53 +02:00
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-11-29 17:39:33 +01:00
REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
2005-10-05 17:33:40 +02:00
XDMCP_MODULES="xdmcp"
2005-07-01 22:29:53 +02:00
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])
2005-09-11 03:16:14 +02:00
AC_DEFINE_DIR(RGB_DB, RGBPATH, [Default RGB path])
2007-05-29 03:53:02 +02:00
AC_DEFINE_DIR(SERVERCONFIGdir, SERVERCONFIG, [Server config path])
2006-10-19 20:14:26 +02:00
AC_DEFINE_DIR(BASE_FONT_PATH, FONTDIR, [Default base font path])
2006-03-12 01:11:34 +01:00
AC_DEFINE_DIR(DRI_DRIVER_PATH, DRI_DRIVER_PATH, [Default DRI driver path])
2007-09-05 22:30:02 +02:00
AC_DEFINE_UNQUOTED(XVENDORNAME, ["$VENDOR_NAME"], [Vendor name])
AC_DEFINE_UNQUOTED(XVENDORNAMESHORT, ["$VENDOR_NAME_SHORT"], [Short vendor name])
2005-11-08 23:47:57 +01:00
AC_DEFINE_UNQUOTED(XORG_DATE, ["$RELEASE_DATE"], [Vendor release])
2005-11-03 18:08:06 +01:00
AC_DEFINE_UNQUOTED(XORG_MAN_VERSION, ["$VENDOR_MAN_VERSION"], [Vendor man version])
2005-07-01 22:29:53 +02:00
AC_DEFINE_UNQUOTED(BUILDERADDR, ["$BUILDERADDR"], [Builder address])
2007-05-02 17:20:48 +02:00
if test -z "$OSNAME"; then
OSNAME="UNKNOWN"
fi
2005-07-12 03:20:36 +02:00
AC_DEFINE_UNQUOTED(OSNAME, ["$OSNAME"], [Operating System Name])
AC_DEFINE_UNQUOTED(OSVENDOR, ["$OSVENDOR"], [Operating System Vendor])
2007-02-12 23:22:39 +01:00
AC_DEFINE_UNQUOTED(BUILDERSTRING, ["$BUILDERSTRING"], [Builder string])
2007-09-05 22:30:02 +02:00
AC_SUBST([VENDOR_NAME])
AC_SUBST([VENDOR_NAME_SHORT])
2005-10-13 22:30:38 +02:00
AC_SUBST([VENDOR_RELEASE])
2005-11-03 18:08:06 +01:00
AC_SUBST([VENDOR_MAN_VERSION])
2007-10-28 07:33:51 +01:00
AC_SUBST([XORG_DATE])
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])
2006-02-15 22:09:14 +01:00
AC_DEFINE(NO_LIBCWRAPPER, 1, [Define to 1 if modules should avoid the libcwrapper])
2005-07-01 22:29:53 +02:00
2006-07-19 22:51:04 +02:00
if test "x$DEBUGGING" = xyes; then
AC_DEFINE(DEBUG, 1, [Enable debugging code])
else
AC_DEFINE(NDEBUG, 1, [Disable some debugging code])
fi
AM_CONDITIONAL(DEBUG, [test "x$DEBUGGING" = xyes])
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])
2006-11-03 21:54:43 +01:00
if test "x$WDTRACE" != "xno" ; then
DIX_LIB='$(top_builddir)/dix/dix.O'
OS_LIB='$(top_builddir)/os/os.O'
else
DIX_LIB='$(top_builddir)/dix/libdix.la'
OS_LIB='$(top_builddir)/os/libos.la'
fi
2005-11-29 17:39:33 +01:00
CWRAP_LIB='$(top_builddir)/os/libcwrapper.la'
2005-07-01 22:29:53 +02:00
MI_LIB='$(top_builddir)/mi/libmi.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'
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
2005-11-29 17:39:33 +01:00
PKG_CHECK_MODULES([XSERVERCFLAGS], [$REQUIRED_MODULES $REQUIRED_LIBS])
PKG_CHECK_MODULES([XSERVERLIBS], [$REQUIRED_LIBS])
XSERVER_CFLAGS="${XSERVERCFLAGS_CFLAGS}"
2006-11-01 23:34:46 +01:00
XSERVER_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
2006-03-05 17:35:08 +01:00
AC_SUBST([SYS_LIBS])
2005-07-29 23:55:57 +02:00
2006-10-08 15:32:15 +02:00
# 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
case $host_os in
2007-02-17 11:23:11 +01:00
darwin*)
LD_EXPORT_SYMBOLS_FLAG=""
;;
2006-10-08 15:32:15 +02:00
openbsd*)
LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic"
;;
esac
AC_SUBST([LD_EXPORT_SYMBOLS_FLAG])
2006-10-25 22:57:00 +02:00
AC_CHECK_FUNCS([clock_gettime], [have_clock_gettime=yes],
[AC_CHECK_LIB([rt], [clock_gettime], [have_clock_gettime=-lrt],
[have_clock_gettime=no])])
AC_MSG_CHECKING([for a useful monotonic clock ...])
if ! test "x$have_clock_gettime" = xno; then
if ! test "x$have_clock_gettime" = xyes; then
2006-11-01 23:34:46 +01:00
CLOCK_LIBS="$have_clock_gettime"
2006-10-25 22:57:00 +02:00
else
2006-11-01 23:34:46 +01:00
CLOCK_LIBS=""
2006-10-25 22:57:00 +02:00
fi
2007-08-01 19:34:58 +02:00
LIBS_SAVE="$LIBS"
LIBS="$CLOCK_LIBS"
2006-10-25 22:57:00 +02:00
AC_RUN_IFELSE([
#define _POSIX_C_SOURCE 199309L
#include <time.h>
2007-08-01 19:37:05 +02:00
int main(int argc, char *argv[[]]) {
2006-10-25 22:57:00 +02:00
struct timespec tp;
if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
return 0;
else
return 1;
}
], [MONOTONIC_CLOCK=yes], [MONOTONIC_CLOCK=no],
[MONOTONIC_CLOCK="cross compiling"])
2007-08-01 19:34:58 +02:00
LIBS="$LIBS_SAVE"
2006-10-25 22:57:00 +02:00
else
MONOTONIC_CLOCK=no
fi
AC_MSG_RESULT([$MONOTONIC_CLOCK])
if test "x$MONOTONIC_CLOCK" = xyes; then
AC_DEFINE(MONOTONIC_CLOCK, 1, [Have monotonic clock from clock_gettime()])
2006-11-01 23:34:46 +01:00
XSERVER_LIBS="$XSERVER_LIBS $CLOCK_LIBS"
LIBS="$LIBS $CLOCK_LIBS"
2006-10-25 22:57:00 +02:00
fi
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]))
2006-06-02 00:06:41 +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"
2007-02-17 11:23:11 +01:00
AC_DEFINE_UNQUOTED(_X_BYTE_ORDER,[$ENDIAN],[Endian order])
AH_VERBATIM([X_BYTE_ORDER],[
/* Deal with multiple architecture compiles on Mac OS X */
#ifndef __APPLE_CC__
#define X_BYTE_ORDER _X_BYTE_ORDER
#else
#ifdef __BIG_ENDIAN__
#define X_BYTE_ORDER X_BIG_ENDIAN
#else
#define X_BYTE_ORDER X_LITTLE_ENDIAN
#endif
#endif
])
2005-08-21 21:15:11 +02:00
2006-10-25 22:57:00 +02:00
AC_SUBST([XSERVER_LIBS])
2005-08-21 21:15:11 +02:00
dnl ---------------------------------------------------------------------------
dnl DDX section.
dnl ---------------------------------------------------------------------------
dnl DMX DDX
AC_MSG_CHECKING([whether to build Xdmx DDX])
2007-05-11 17:45:37 +02:00
PKG_CHECK_MODULES([DMXMODULES], [xmuu xext x11 xrender xfixes xfont xi dmxproto xau $XDMCP_MODULES $PIXMAN], [have_dmx=yes], [have_dmx=no])
2005-08-21 21:15:11 +02:00
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"
2007-08-06 15:07:20 +02:00
XDMX_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $CONFIG_LIB $RENDER_LIB $XTRAP_LIB $RECORD_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $OS_LIB $CWRAP_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>
2005-09-12 09:02:46 +02:00
AC_CHECK_HEADER([linux/input.h], DMX_BUILD_USB="yes",
DMX_BUILD_USB="no")
2005-08-24 17:18:06 +02:00
dnl Linux sources in DMX require <linux/keyboard.h>
2005-09-12 09:02:46 +02:00
AC_CHECK_HEADER([linux/keyboard.h], DMX_BUILD_LNX="yes",
DMX_BUILD_LNX="no")
2005-09-15 08:46:05 +02:00
if test "x$GLX" = xyes; then
PKG_CHECK_MODULES([GL], [glproto])
fi
2005-10-06 04:35:22 +02:00
PKG_CHECK_MODULES([XDMXCONFIG_DEP], [xaw7 xmu xt xpm x11])
2005-11-01 16:01:51 +01:00
AC_SUBST(XDMXCONFIG_DEP_CFLAGS)
2005-10-06 04:35:22 +02:00
AC_SUBST(XDMXCONFIG_DEP_LIBS)
PKG_CHECK_MODULES([DMXEXAMPLES_DEP], [dmx xext x11])
AC_SUBST(DMXEXAMPLES_DEP_LIBS)
PKG_CHECK_MODULES([DMXXMUEXAMPLES_DEP], [dmx xmu xext x11])
AC_SUBST(DMXXMUEXAMPLES_DEP_LIBS)
PKG_CHECK_MODULES([DMXXIEXAMPLES_DEP], [dmx xi xext x11])
AC_SUBST(DMXXIEXAMPLES_DEP_LIBS)
PKG_CHECK_MODULES([XTSTEXAMPLES_DEP], [xtst xext x11])
AC_SUBST(XTSTEXAMPLES_DEP_LIBS)
PKG_CHECK_MODULES([XRESEXAMPLES_DEP], [xres xext x11])
AC_SUBST(XRESEXAMPLES_DEP_LIBS)
PKG_CHECK_MODULES([X11EXAMPLES_DEP], [xext x11])
AC_SUBST(X11EXAMPLES_DEP_LIBS)
2005-08-21 21:15:11 +02:00
fi
2005-09-12 09:02:46 +02:00
AM_CONDITIONAL([DMX_BUILD_LNX], [test "x$DMX_BUILD_LNX" = xyes])
AM_CONDITIONAL([DMX_BUILD_USB], [test "x$DMX_BUILD_USB" = xyes])
2005-08-21 21:15:11 +02:00
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
2006-12-02 15:37:19 +01:00
XVFB_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB $LIBS"
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-10-05 17:33:40 +02:00
PKG_CHECK_MODULES(XNESTMODULES, [xfont xext x11 xau $XDMCP_MODULES], [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
2007-07-12 02:17:07 +02:00
XNEST_LIBS="$MI_LIB $CONFIG_LIB $XSERVER_LIBS $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $CWRAP_LIB $OS_LIB $LIBS"
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" ;;
2007-11-20 14:57:15 +01:00
darwin*) XORG="no" ;;
2005-08-21 21:15:11 +02:00
esac
fi
AC_MSG_RESULT([$XORG])
2005-12-28 11:31:46 +01:00
dnl Xgl DDX
AC_MSG_CHECKING([whether to build Xgl DDX])
if test "x$XGL" != xno; then
PKG_CHECK_MODULES([XGLMODULES], [glitz-glx >= 0.4.3], [XGL=yes], [XGL=no])
AC_SUBST(XGLMODULES_CFLAGS)
AC_SUBST(XGLMODULES_LIBS)
fi
AC_MSG_RESULT([$XGL])
AM_CONDITIONAL(XGL, [test "x$XGL" = xyes])
if test "x$XGL" = xyes; then
2007-08-06 15:07:20 +02:00
XGL_LIBS="$FB_LIB $MI_LIB $COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_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 $XPSTUBS_LIB $CWRAP_LIB $OS_LIB"
2005-12-28 11:31:46 +01:00
AC_SUBST([XGL_LIBS])
AC_DEFINE(XGL_MODULAR, 1, [Use loadable XGL modules])
xglmoduledir="$moduledir/xgl"
AC_SUBST([xglmoduledir])
AC_DEFINE_DIR(XGL_MODULE_PATH, xglmoduledir, [Default XGL module search path])
fi
dnl Xegl DDX
AC_MSG_CHECKING([whether to build Xegl DDX])
if test "x$XEGL" != xno; then
PKG_CHECK_MODULES([XGLMODULES], [glitz-glx >= 0.4.3], [XEGL=yes], [XEGL=no])
AC_SUBST(XEGLMODULES_CFLAGS)
AC_SUBST(XEGLMODULES_LIBS)
fi
AC_MSG_RESULT([$XEGL])
AM_CONDITIONAL(XEGL, [test "x$XEGL" = xyes])
if test "x$XEGL" = xyes; then
2007-08-06 15:07:20 +02:00
XEGL_LIBS="$FB_LIB $MI_LIB $COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_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 $XPSTUBS_LIB $CWRAP_LIB $OS_LIB"
2005-12-28 11:31:46 +01:00
AC_SUBST([XEGL_LIBS])
fi
dnl Xglx DDX
AC_MSG_CHECKING([whether to build Xglx DDX])
if test "x$XGLX" != xno; then
PKG_CHECK_MODULES([XGLXMODULES], [glitz-glx >= 0.4.3 xrender], [XGLX=yes], [XGLX=no])
AC_SUBST(XGLXMODULES_CFLAGS)
AC_SUBST(XGLXMODULES_LIBS)
fi
AC_MSG_RESULT([$XGLX])
AM_CONDITIONAL(XGLX, [test "x$XGLX" = xyes])
if test "x$XGLX" = xyes; then
2007-08-06 15:07:20 +02:00
XGLX_LIBS="$FB_LIB $MI_LIB $COMPOSITE_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_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 $XPSTUBS_LIB $CWRAP_LIB $OS_LIB"
2005-12-28 11:31:46 +01:00
AC_SUBST([XGLX_LIBS])
fi
2005-11-16 08:28:19 +01:00
# XORG_CORE_LIBS is needed even if you're not building the Xorg DDX
2006-07-19 16:05:12 +02:00
XORG_CORE_LIBS="$DIX_LIB $CONFIG_LIB"
2005-11-16 08:28:19 +01:00
AC_SUBST([XORG_CORE_LIBS])
2005-12-01 06:04:07 +01:00
xorg_bus_linuxpci=no
xorg_bus_freebsdpci=no
xorg_bus_netbsdpci=no
xorg_bus_ix86pci=no
xorg_bus_ppcpci=no
xorg_bus_sparcpci=no
xorg_bus_sparc=no
2006-03-09 15:23:57 +01:00
if test "x$XORG" = xyes -o "x$XGL" = xyes; then
2005-08-21 21:15:11 +02:00
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"
2006-06-19 06:57:18 +02:00
XORG_LIBS="$COMPOSITE_LIB $MI_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XPSTUBS_LIB $OS_LIB"
2005-09-13 20:37:35 +02:00
2006-06-21 01:16:19 +02:00
dnl Check to see if dlopen is in default libraries (like Solaris, which
dnl has it in libc), or if libdl is needed to get it.
AC_CHECK_FUNC([dlopen], [],
AC_CHECK_LIB([dl], [dlopen], XORG_LIBS="$XORG_LIBS -ldl"))
2005-09-13 20:37:35 +02:00
2005-08-21 21:15:11 +02:00
case $host_os in
linux*)
2006-05-09 20:04:29 +02:00
if test "x$LNXAPM" = xyes; then
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
fi
2005-08-21 21:15:11 +02:00
XORG_OS="linux"
XORG_OS_SUBDIR="linux"
2005-12-01 06:04:07 +01:00
xorg_bus_linuxpci="yes"
2006-05-14 18:22:24 +02:00
linux_acpi="no"
2005-08-21 21:15:11 +02:00
case $host_cpu in
ia64*)
linux_ia64=yes
2006-05-14 18:22:24 +02:00
linux_acpi="yes"
2005-08-21 21:15:11 +02:00
;;
2005-09-20 00:44:49 +02:00
alpha*)
linux_alpha=yes
XORG_OS_PCI="axp"
2005-12-01 06:04:07 +01:00
xorg_bus_linuxpci="no"
2005-09-20 00:44:49 +02:00
;;
2006-05-15 20:27:18 +02:00
i*86|amd64*|x86_64*)
2006-05-14 18:22:24 +02:00
linux_acpi="yes"
2006-05-09 20:04:29 +02:00
;;
2005-08-21 21:15:11 +02:00
*)
;;
esac
2005-08-02 02:41:07 +02:00
;;
2008-04-07 13:09:04 +02:00
freebsd* | kfreebsd*-gnu | dragonfly*)
2005-08-21 21:15:11 +02:00
XORG_OS="freebsd"
XORG_OS_SUBDIR="bsd"
2005-12-01 06:04:07 +01:00
case $host_cpu in
i*86)
;;
*)
xorg_bus_freebsdpci="yes"
;;
esac
2005-08-21 08:56:19 +02:00
;;
2005-08-21 21:15:11 +02:00
netbsd*)
XORG_OS="netbsd"
XORG_OS_SUBDIR="bsd"
2005-12-01 06:04:07 +01:00
case $host_cpu in
i*86|amd64*|x86_64*|ia64*)
;;
*)
xorg_bus_netbsdpci="yes"
;;
esac
2005-08-02 02:41:07 +02:00
;;
2005-08-21 21:15:11 +02:00
openbsd*)
XORG_OS="openbsd"
XORG_OS_SUBDIR="bsd"
2005-12-01 06:04:07 +01:00
case $host_cpu in
i*86|amd64*|x86_64*|ia64*)
;;
*)
xorg_bus_freebsdpci="yes"
;;
esac
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*)
SOLARIS_INOUT_ARCH="sparcv8plus"
;;
i*86)
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"
2007-03-20 02:03:26 +01:00
else
XORG_CFLAGS="$XORG_CFLAGS -DXF86PM"
2005-08-21 21:15:11 +02:00
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
2006-05-02 03:37:25 +02:00
SOLARIS_ASM_CFLAGS='$(top_srcdir)/hw/xfree86/os-support/solaris/solaris-$(SOLARIS_INOUT_ARCH).il'
XORG_CFLAGS="${XORG_CFLAGS} "'$(SOLARIS_ASM_CFLAGS)'
2005-08-04 04:39:56 +02:00
fi
2006-05-23 18:17:09 +02:00
AC_SUBST([SOLARIS_ASM_CFLAGS])
2005-08-04 04:39:56 +02:00
;;
2006-08-12 18:41:59 +02:00
gnu*)
XORG_OS="gnu"
XORG_OS_SUBDIR="hurd"
;;
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.])
;;
2007-11-20 14:57:15 +01:00
esac
case $host_cpu in
i*86)
case $host_os in
darwin*) ;;
*) xorg_bus_ix86pci=yes ;;
esac
2005-12-01 06:04:07 +01:00
;;
powerpc*)
case $host_os in
2007-02-17 11:23:11 +01:00
darwin*|linux*|freebsd*|netbsd*|openbsd*|kfreebsd*-gnu)
2005-12-01 06:04:07 +01:00
;;
*)
xorg_bus_ppcpci="yes"
;;
esac
;;
sparc*)
xorg_bus_sparcpci="yes"
xorg_bus_sparc="yes"
;;
x86_64*|amd64*)
case $host_os in
2007-02-17 11:23:11 +01:00
darwin*|freebsd*|kfreebsd*-gnu)
2005-12-01 06:04:07 +01:00
# FreeBSD uses the system pci interface
;;
*)
xorg_bus_ix86pci="yes"
;;
esac
;;
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
2007-02-18 23:09:51 +01:00
if test "x$DGA" = xauto; then
PKG_CHECK_MODULES(DGA, xf86dgaproto, [DGA=yes], [DGA=no])
fi
if test "x$DGA" = xyes; then
XORG_MODULES="$XORG_MODULES xf86dgaproto"
2007-07-07 23:27:40 +02:00
PKG_CHECK_MODULES(DGA, xf86dgaproto)
2007-02-18 23:09:51 +01:00
AC_DEFINE(DGA, 1, [Support DGA extension])
AC_DEFINE(XFreeXDGA, 1, [Build XDGA support])
fi
if test "x$XF86MISC" = xauto; then
PKG_CHECK_MODULES(XF86MISC, xf86miscproto, [XF86MISC=yes], [XF86MISC=no])
fi
if test "x$XF86MISC" = xyes; then
XORG_MODULES="$XORG_MODULES xf86miscproto"
2007-07-07 23:27:40 +02:00
PKG_CHECK_MODULES(XF86MISC, xf86miscproto)
2007-02-18 23:09:51 +01:00
AC_DEFINE(XF86MISC, 1, [Support XFree86 miscellaneous extensions])
fi
if test "x$XF86VIDMODE" = xauto; then
PKG_CHECK_MODULES(XF86VIDMODE, xf86vidmodeproto, [XF86VIDMODE=yes], [XF86VIDMODE=no])
fi
if test "x$XF86VIDMODE" = xyes; then
XORG_MODULES="$XORG_MODULES xf86vidmodeproto"
2007-07-07 23:27:40 +02:00
PKG_CHECK_MODULES(XF86VIDMODE, xf86vidmodeproto)
2007-02-18 23:09:51 +01:00
AC_DEFINE(XF86VIDMODE, 1, [Support XFree86 Video Mode extension])
fi
if test -n "$XORG_MODULES"; then
PKG_CHECK_MODULES(XORG_MODULES, [$XORG_MODULES])
XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
XORG_LIBS="$XORG_LIBS $XORG_MODULES_LIBS"
fi
2005-08-21 21:15:11 +02:00
AC_SUBST([XORG_LIBS])
AC_SUBST([XORG_INCS])
AC_SUBST([XORG_OS])
AC_SUBST([XORG_OS_SUBDIR])
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)
2007-10-28 07:33:51 +01:00
# 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"
case $host_os in
darwin*) ;; # Symbols are exported by default, no need
# to do anything special. I think that the following
# is wrong anyway when using libtool. Should be using
# the libtool flag -export-dynamic?
*)LD_EXPORT_SYMBOLS_FLAG="-rdynamic" ;;
esac
fi
case $host_os in
openbsd*)
LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-dynamic"
;;
esac
2005-08-21 21:15:11 +02:00
AC_SUBST([XORG_CFLAGS])
dnl these only go in xorg-config.h
2005-09-24 04:40:51 +02:00
XF86CONFIGFILE="xorg.conf"
CONFIGFILE="$sysconfdir/$XF86CONFIGFILE"
2005-09-15 07:06:54 +02:00
LOGPREFIX="$logdir/Xorg."
2005-08-21 21:15:11 +02:00
AC_DEFINE(XORG_SERVER, 1, [Building Xorg server])
AC_DEFINE(XORGSERVER, 1, [Building Xorg server])
AC_DEFINE(XFree86Server, 1, [Building XFree86 server])
2006-07-19 00:16:12 +02:00
AC_DEFINE(XFree86LOADER, 1, [Building loadable XFree86 server])
2005-11-03 18:08:06 +01:00
AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
2005-08-21 21:15:11 +02:00
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])
2005-09-12 09:07:59 +02:00
AC_DEFINE(WITH_VGAHW, 1, [Building vgahw module])
2005-08-21 21:15:11 +02:00
AC_DEFINE(DRIVERS, {}, [Built-in output drivers (none)])
AC_DEFINE(IDRIVERS, {}, [Built-in input drivers (none)])
2005-09-24 04:40:51 +02:00
AC_DEFINE_DIR(__XCONFIGFILE__, XF86CONFIGFILE, [Name of configuration file])
2005-12-09 04:57:41 +01:00
AC_DEFINE_DIR(XF86CONFIGFILE, XF86CONFIGFILE, [Name of configuration file])
2005-08-21 21:15:11 +02:00
AC_DEFINE_DIR(DEFAULT_MODULE_PATH, moduledir, [Default module search path])
2006-11-22 23:46:51 +01:00
AC_DEFINE_DIR(DEFAULT_LIBRARY_PATH, libdir, [Default library install path])
2005-08-21 21:15:11 +02:00
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])
2005-09-15 07:06:54 +02:00
AC_SUBST([logdir])
2005-08-21 21:15:11 +02:00
fi
AM_CONDITIONAL([XORG], [test "x$XORG" = xyes])
2005-12-01 17:20:09 +01:00
AM_CONDITIONAL([XORG_BUS_LINUXPCI], [test "x$xorg_bus_linuxpci" = xyes])
2005-12-01 06:04:07 +01:00
AM_CONDITIONAL([XORG_BUS_FREEBSDPCI], [test "x$xorg_bus_freebsdpci" = xyes])
AM_CONDITIONAL([XORG_BUS_NETBSDPCI], [test "x$xorg_bus_netbsdpci" = xyes])
2005-08-03 01:57:52 +02:00
AM_CONDITIONAL([XORG_BUS_IX86PCI], [test "x$xorg_bus_ix86pci" = xyes])
2005-12-01 06:04:07 +01:00
AM_CONDITIONAL([XORG_BUS_PPCPCI], [test "x$xorg_bus_ppcpci" = xyes])
AM_CONDITIONAL([XORG_BUS_SPARCPCI], [test "x$xorg_bus_sparcpci" = 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-09-20 00:44:49 +02:00
AM_CONDITIONAL([LINUX_ALPHA], [test "x$linux_alpha" = xyes])
2006-05-14 18:22:24 +02:00
AM_CONDITIONAL([LNXACPI], [test "x$linux_acpi" = 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])
2007-02-17 11:23:11 +01:00
AM_CONDITIONAL([BUILD_DARWIN],[test "X$build_darwin" = Xyes])
2007-10-28 14:46:26 +01:00
AM_CONDITIONAL([DGA], [test "x$DGA" = xyes])
AM_CONDITIONAL([XF86MISC], [test "x$XF86MISC" = xyes])
AM_CONDITIONAL([XF86VIDMODE], [test "x$XF86VIDMODE" = xyes])
2005-08-21 21:15:11 +02:00
2007-02-27 20:14:47 +01:00
dnl legacy fb support
2007-03-02 12:30:26 +01:00
test "x$MFB" = xauto && MFB="$XORG"
test "x$CFB" = xauto && CFB="$XORG"
test "x$AFB" = xauto && AFB="$XORG"
2007-02-27 20:14:47 +01:00
AM_CONDITIONAL(MFB, [test "x$MFB" = xyes])
AM_CONDITIONAL(CFB, [test "x$CFB" = xyes])
AM_CONDITIONAL(AFB, [test "x$AFB" = xyes])
if test "x$MFB" = xyes -o "x$CFB" = xyes -o "x$AFB" = xyes; then
if test "x$XORG" != xyes; then
AC_MSG_ERROR([legacy fb support requires the Xorg server])
fi
fi
2005-08-21 21:15:11 +02:00
dnl Xprint DDX
AC_MSG_CHECKING([whether to build Xprint DDX])
AC_MSG_RESULT([$XPRINT])
if test "x$XPRINT" = xyes; then
2007-05-29 18:13:36 +02:00
PKG_CHECK_MODULES([XPRINT], [printproto x11 xfont $XDMCP_MODULES xau $PIXMAN])
2007-08-06 15:07:20 +02:00
XPRINT_EXTENSIONS="$XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $RENDER_LIB $COMPOSITE_LIB $RANDR_LIB $XI_LIB $FIXES_LIB $DAMAGE_LIB $XI_LIB $GLX_LIBS"
XPRINT_LIBS="$DIX_LIB $XKB_LIB $XKB_STUB_LIB $XPRINT_EXTENSIONS $MI_LIB $MIEXT_DAMAGE_LIB $CWRAP_LIB $OS_LIB $LIBS $XPRINT_LIBS"
2005-11-19 08:15:50 +01:00
AC_SUBST([XPRINT_CFLAGS])
2005-08-21 21:15:11 +02:00
AC_SUBST([XPRINT_LIBS])
2005-09-27 18:15:55 +02:00
xpconfigdir=$libdir/X11/xserver
AC_SUBST([xpconfigdir])
2005-09-27 20:36:14 +02:00
AC_PATH_PROG(MKFONTSCALE, mkfontscale)
AC_PATH_PROG(MKFONTDIR, mkfontdir)
2006-03-31 09:21:41 +02:00
# freetype support code borrowed from lib/XFont
if test x$XP_USE_FREETYPE = xyes; then
AC_DEFINE(XP_USE_FREETYPE,1,[Support FreeType rasterizer in Xprint for nearly all font file formats])
if test "$freetype_config" = "auto" ; then
PKG_CHECK_MODULES(FREETYPE, freetype2,
freetype_config=no, freetype_config=yes)
fi
if test "$freetype_config" = "yes"; then
AC_PATH_PROG(ft_config,freetype-config,no)
if test "$ft_config" = "no"; then
AC_MSG_ERROR([You must have freetype installed; see http://www.freetype.org/])
fi
else
ft_config="$freetype_config"
fi
if test "$freetype_config" != "no"; then
FREETYPE_CFLAGS="`$ft_config --cflags`"
FREETYPE_LIBS="`$ft_config --libs`"
fi
FREETYPE_REQUIRES="freetype2"
else
FREETYPE_CFLAGS=""
FREETYPE_LIBS=""
FREETYPE_REQUIRES=""
fi
AC_SUBST(FREETYPE_LIBS)
AC_SUBST(FREETYPE_CFLAGS)
AC_SUBST(FREETYPE_REQUIRES)
# end freetype support
2005-08-21 21:15:11 +02:00
fi
2006-04-01 22:58:42 +02:00
AM_CONDITIONAL(XP_USE_FREETYPE, [test "x$XPRINT" = xyes && test "x$XP_USE_FREETYPE" = xyes])
2005-08-21 21:15:11 +02:00
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
2007-08-06 15:07:20 +02:00
XWIN_LIBS="$FB_LIB $MI_LIB $XEXT_LIB $CONFIG_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $DAMAGE_LIB $LAYER_LIB $XPSTUBS_LIB $OS_LIB $SHADOW_LIB"
2005-08-21 21:15:11 +02:00
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])
2005-12-06 17:22:47 +01:00
XF86VIDMODE=no
2005-08-21 21:15:11 +02:00
fi
if test "x$XF86MISC" = xyes; then
AC_MSG_NOTICE([Disabling XF86Misc extension])
2005-12-06 17:22:47 +01:00
XF86MISC=no
2005-08-21 21:15:11 +02:00
fi
if test "x$COMPOSITE" = xyes; then
AC_MSG_NOTICE([Disabling Composite extension])
2005-12-06 17:22:47 +01:00
COMPOSITE=no
2005-08-21 21:15:11 +02:00
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])
2007-02-17 11:23:11 +01:00
dnl Darwin / OS X DDX
2007-11-15 06:25:50 +01:00
if test "x$XQUARTZ" = xyes; then
2008-04-09 01:59:56 +02:00
AC_DEFINE(XQUARTZ,1,[Have Quartz])
AC_DEFINE(ROOTLESS,1,[Build Rootless code])
2007-11-12 09:44:11 +01:00
2008-04-23 19:35:59 +02:00
DARWIN_GLX_LIBS='$(top_builddir)/hw/xquartz/GL/libCGLCore.la $(top_builddir)/GL/glx/libglx.la'
2008-04-26 02:57:23 +02:00
DARWIN_LIBS="$MI_LIB $OS_LIB $DIX_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $XTRAP_LIB $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $DARWIN_GLX_LIBS"
2007-12-08 08:21:08 +01:00
AC_SUBST([DARWIN_LIBS])
2008-04-23 19:35:59 +02:00
2007-12-08 08:21:08 +01:00
AC_CHECK_LIB([Xplugin],[xp_init],[:])
2008-04-23 19:35:59 +02:00
2008-08-06 03:38:30 +02:00
CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DNO_ALLOCA"
2007-10-29 01:22:16 +01:00
fi
2007-11-15 10:49:33 +01:00
2007-12-08 08:21:08 +01:00
# Support for objc in autotools is minimal and not documented.
OBJC='$(CC)'
OBJCLD='$(CCLD)'
OBJCLINK='$(LINK)'
OBJCFLAGS='$(CFLAGS)'
AC_SUBST([OBJC])
AC_SUBST([OBJCCLD])
AC_SUBST([OBJCLINK])
AC_SUBST([OBJCFLAGS])
# internal, undocumented automake func follows :(
_AM_DEPENDENCIES([OBJC])
AM_CONDITIONAL(HAVE_XPLUGIN, [test "x$ac_cv_lib_Xplugin_xp_init" = xyes])
AM_CONDITIONAL(HAVE_AGL_FRAMEWORK, [test "x$xorg_cv_AGL_framework" = xyes])
AM_CONDITIONAL(XQUARTZ, [test "x$XQUARTZ" = xyes])
2005-12-27 09:31:37 +01:00
dnl kdrive DDX
2007-07-05 07:28:14 +02:00
XEPHYR_LIBS=
2005-12-28 02:01:06 +01:00
XEPHYR_INCS=
XSDL_LIBS=
XSDL_INCS=
XSDL_DIRS=
2005-12-27 09:31:37 +01:00
AM_CONDITIONAL(KDRIVE, [test x$KDRIVE = xyes])
if test "$KDRIVE" = yes; then
AC_DEFINE(KDRIVESERVER,1,[Build Kdrive X server])
AC_DEFINE(KDRIVEDDXACTIONS,,[Build kdrive ddx])
2005-12-28 11:02:54 +01:00
2005-12-27 09:31:37 +01:00
AC_CHECK_HEADERS([sys/vm86.h sys/io.h])
2006-07-19 22:51:04 +02:00
if test "$ac_cv_header_sys_vm86_h" = yes && test "x$KDRIVEVESA" = xauto; then
KDRIVEVESA=yes
fi
if test "x$KDRIVEVESA" = xyes; then
KDRIVEFBDEVLIB=yes
2005-12-28 11:02:54 +01:00
AC_DEFINE(KDRIVEVESA, 1, [Build VESA-based kdrive servers])
2005-12-27 09:31:37 +01:00
fi
AC_CHECK_HEADERS([linux/fb.h])
2006-07-19 22:51:04 +02:00
if test "$ac_cv_header_linux_fb_h" = yes && test "x$XFBDEV" = xauto; then
XFBDEV=yes
fi
if test "x$XFBDEV" = xyes; then
KDRIVEFBDEVLIB=yes
2005-12-28 11:02:54 +01:00
AC_DEFINE(KDRIVEFBDEV, 1, [Build fbdev-based kdrive server])
2005-12-27 09:31:37 +01:00
fi
2005-12-28 11:02:54 +01:00
2005-12-27 09:31:37 +01:00
# tslib...
2006-07-19 22:51:04 +02:00
AC_CHECK_LIB(ts, ts_open, [HAVE_TSLIB="yes"])
if test "x$TSLIB" = xauto && test "x$HAVE_TSLIB" = xyes; then
TSLIB=yes
fi
if test "x$TSLIB" = xyes; then
if ! test "x$HAVE_TSLIB" = xyes; then
AC_MSG_ERROR([tslib must be installed to build the tslib input driver.])
fi
TSLIB_LIBS="-lts"
AC_DEFINE(TSLIB, 1, [Have tslib support])
fi
2006-11-08 14:23:52 +01:00
AC_CHECK_HEADERS([SDL/SDL.h])
2006-08-29 22:18:12 +02:00
if test x"$ac_cv_header_SDL_SDL_h" = xyes && test "x$XSDL" = xauto; then
2006-07-19 22:51:04 +02:00
XSDL=yes
fi
if test x"$XSDL" = xyes; then
# PKG_CHECK_MODULES(XSDL_EXTRA, Xfont xau $XDMCP_MODULES)
AC_DEFINE(XSDLSERVER,1,[Build Xsdl server])
XSDL_LIBS="`sdl-config --libs` $XSERVER_LIBS"
XSDL_INCS="`sdl-config --cflags` $XSERVER_CFLAGS"
fi
2008-05-08 09:06:16 +02:00
PKG_CHECK_MODULES(XEPHYR, x11 xext xfont xau xdmcp $PIXMAN, [xephyr="yes"], [xephyr="no"])
2006-07-19 22:51:04 +02:00
if test "x$XEPHYR" = xauto; then
2006-08-10 19:29:57 +02:00
XEPHYR=$xephyr
2006-07-19 22:51:04 +02:00
fi
2006-08-10 19:29:57 +02:00
2006-07-19 22:51:04 +02:00
# Xephyr needs nanosleep() which is in librt on Solaris
AC_CHECK_FUNC([nanosleep], [],
AC_CHECK_LIB([rt], [nanosleep], XEPHYR_LIBS="$XEPHYR_LIBS -lrt"))
2007-07-05 07:28:14 +02:00
2006-08-29 23:07:15 +02:00
if test "x$TSLIB" = xyes; then
PKG_CHECK_MODULES([TSLIB], [tslib-0.0], [HAVE_TSLIB="yes"], [HAVE_TSLIB="no"])
if test "x$HAVE_TSLIB" = xno; then
AC_MSG_ERROR([tslib must be installed to build the tslib driver. See http://tslib.berlios.de/])
fi
AC_DEFINE(TSLIB, 1, [Have tslib support])
fi
2005-12-27 09:31:37 +01:00
# damage shadow extension glx (NOTYET) fb mi
KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
2005-12-28 02:01:06 +01:00
KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
2005-12-27 09:31:37 +01:00
KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
2005-12-28 02:01:06 +01:00
KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
2005-12-27 09:31:37 +01:00
2007-11-09 12:40:37 +01:00
KDRIVE_CFLAGS="$XSERVER_CFLAGS -DHAVE_KDRIVE_CONFIG_H $TSLIB_CFLAGS -fno-common"
2005-12-27 09:31:37 +01:00
2006-08-29 22:49:26 +02:00
KDRIVE_PURE_LIBS="$FB_LIB $MI_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $XTRAP_LIB $RECORD_LIB $GLX_LIBS $RENDER_LIB $RANDR_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $XPSTUBS_LIB $OS_LIB"
2005-12-27 09:31:37 +01:00
KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.a'
2006-11-04 18:05:02 +01:00
case $host_os in
*linux*)
KDRIVE_OS_LIB='$(top_builddir)/hw/kdrive/linux/liblinux.a'
KDRIVELINUX=yes
;;
esac
2005-12-28 11:02:54 +01:00
KDRIVE_STUB_LIB='$(top_builddir)/hw/kdrive/src/libkdrivestubs.a'
2007-06-27 21:24:42 +02:00
KDRIVE_LOCAL_LIBS="$DIX_LIB $CONFIG_LIB $KDRIVE_LIB $TSLIB_LIBS $KDRIVE_OS_LIB $KDRIVE_PURE_LIBS $KDRIVE_STUB_LIB"
KDRIVE_LIBS="$XSERVERLIBS_LIBS $KDRIVE_LOCAL_LIBS"
2005-12-27 09:31:37 +01:00
2005-12-28 02:01:06 +01:00
# check if we can build Xephyr
2005-12-28 11:02:54 +01:00
PKG_CHECK_MODULES(XEPHYR, x11 xext xfont xau xdmcp, [xephyr="yes"], [xephyr="no"])
2006-07-19 22:51:04 +02:00
AC_SUBST([XEPHYR_LIBS])
AC_SUBST([XEPHYR_INCS])
AC_SUBST([XSDL_LIBS])
AC_SUBST([XSDL_INCS])
fi
AC_SUBST([KDRIVE_INCS])
AC_SUBST([KDRIVE_PURE_INCS])
AC_SUBST([KDRIVE_CFLAGS])
AC_SUBST([KDRIVE_PURE_LIBS])
2007-06-27 21:24:42 +02:00
AC_SUBST([KDRIVE_LOCAL_LIBS])
2006-07-19 22:51:04 +02:00
AC_SUBST([KDRIVE_LIBS])
2006-11-04 18:05:02 +01:00
AM_CONDITIONAL(KDRIVELINUX, [test "x$KDRIVELINUX" = xyes])
2006-08-29 23:07:15 +02:00
AM_CONDITIONAL(TSLIB, [test "x$HAVE_TSLIB" = xyes])
2005-12-27 09:31:37 +01:00
AM_CONDITIONAL(H3600_TS, false)
2006-07-19 22:51:04 +02:00
AM_CONDITIONAL(KDRIVEVESA, [test "x$KDRIVEVESA" = xyes])
AM_CONDITIONAL(KDRIVEFBDEV, [test "x$XFBDEV" = xyes])
AM_CONDITIONAL(XSDLSERVER, [test x"$XSDL" = xyes])
2006-08-10 19:29:57 +02:00
AM_CONDITIONAL(XEPHYR, [test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes])
2006-07-19 22:51:04 +02:00
AM_CONDITIONAL(BUILD_KDRIVEFBDEVLIB, [test "x$KDRIVE" = xyes && test "x$KDRIVEFBDEVLIB" = xyes])
AM_CONDITIONAL(XFAKESERVER, [test "x$KDRIVE" = xyes && test "x$XFAKE" = xyes])
2005-12-28 02:01:06 +01: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-09-21 20:14:32 +02:00
AC_DEFINE_DIR(XKB_BIN_DIRECTORY, bindir, [Path to XKB bin dir])
2005-10-07 00:25:35 +02:00
# Make sure XKM_OUTPUT_DIR is an absolute path
XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
if [[ x$XKBOUTPUT_FIRSTCHAR != x/ ]] ; then
XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
fi
2005-11-21 00:01:02 +01:00
# XKM_OUTPUT_DIR (used in code) must end in / or file names get hosed
# XKB_COMPILED_DIR (used in Makefiles) must not or install-sh gets confused
XKBOUTPUT=`echo $XKBOUTPUT/ | sed 's|/*$|/|'`
XKB_COMPILED_DIR=`echo $XKBOUTPUT | sed 's|/*$||'`
2005-09-21 20:14:32 +02:00
AC_DEFINE_DIR(XKM_OUTPUT_DIR, XKBOUTPUT, [Path to XKB output dir])
2005-07-02 20:59:44 +02:00
2005-11-21 00:01:02 +01:00
AC_SUBST(XKB_COMPILED_DIR)
2005-10-07 00:25:35 +02:00
2007-10-28 07:33:51 +01:00
AM_CONDITIONAL(DGA, [test "x$DGA" = xyes])
if test "x$DGA" = xyes; then
AC_DEFINE(DGA, 1, [Support DGA extension])
fi
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(XResExtension, 1, [Build XRes extension])
2007-01-10 22:10:43 +01:00
AC_TRY_COMPILE([
#include <features.h>
#ifndef __GLIBC__
#error not glibc
#endif
], [], [AC_DEFINE(_GNU_SOURCE, 1,
[ Enable GNU and other extensions to the C environment for glibc])])
2005-07-01 22:29:53 +02:00
AC_DEFINE_DIR(PROJECTROOT, prefix, [Overall prefix])
2005-09-24 04:40:51 +02:00
dnl xorgconfig CLI configuration utility
2006-07-19 22:51:04 +02:00
if test "x$XORG" = xyes; then
PKG_CHECK_MODULES([XORGCONFIG_DEP], [xkbfile x11])
AC_SUBST(XORGCONFIG_DEP_CFLAGS)
AC_SUBST(XORGCONFIG_DEP_LIBS)
fi
2005-09-24 04:40:51 +02:00
dnl xorgcfg GUI configuration utility
2005-10-17 19:11:12 +02:00
AC_ARG_ENABLE(xorgcfg, AS_HELP_STRING([--enable-xorgcfg],
2006-10-17 20:53:28 +02:00
[Build xorgcfg GUI configuration utility (default: no)]),
[XORGCFG=$enableval],[XORGCFG=no])
if test x$XORGCFG = xyes ; then
2005-09-24 04:40:51 +02:00
PKG_CHECK_MODULES([XORGCFG_DEP],
2006-07-07 00:33:31 +02:00
[xkbui >= 1.0.2 xkbfile xxf86misc xxf86vm xaw7 xmu xt xpm xext x11])
2007-08-11 01:08:41 +02:00
XORGCFG_DEP_CFLAGS="$XORGCFG_DEP_CFLAGS $PIXMAN_CFLAGS"
2005-09-24 04:40:51 +02:00
AC_CHECK_LIB([curses],[waddstr],
[XORGCFG_DEP_LIBS="$XORGCFG_DEP_LIBS -lcurses"; CURSES=yes],
AC_CHECK_LIB([ncurses],[waddstr],
[XORGCFG_DEP_LIBS="$XORGCFG_DEP_LIBS -lncurses" ; CURSES=yes],
[CURSES=no]))
2005-11-01 16:01:51 +01:00
AC_SUBST(XORGCFG_DEP_CFLAGS)
AC_SUBST(XORGCFG_DEP_LIBS)
2005-12-07 17:18:02 +01:00
2005-12-08 18:55:19 +01:00
APPDEFAULTDIR=$(pkg-config --variable=appdefaultdir xt)
AC_SUBST(APPDEFAULTDIR)
2005-09-24 04:40:51 +02:00
fi
AM_CONDITIONAL(BUILD_XORGCFG, [test x$XORGCFG = xyes])
AM_CONDITIONAL(USE_CURSES, [test x$CURSES = xyes])
2005-10-17 19:11:12 +02:00
AC_ARG_ENABLE(kbd_mode, AS_HELP_STRING([--enable-kbd_mode],
2005-09-28 18:55:25 +02:00
[Build kbd_mode utility (default: auto)]),
[BUILD_KBD_MODE=$enable_val], [BUILD_KBD_MODE="auto"])
if test x$BUILD_KBD_MODE != xno ; then
case $host_os in
*bsd*)
KBD_MODE_TYPE="bsd"
# BUILD_KBD_MODE="yes" # need to test on BSD before enabling
# by default
;;
solaris*)
KBD_MODE_TYPE="sun"
BUILD_KBD_MODE="yes" # enabled by default
;;
*)
BUILD_KBD_MODE="no" # disabled by default
;;
esac
fi
AM_CONDITIONAL(BUILD_KBD_MODE, [test x$BUILD_KBD_MODE = xyes])
AM_CONDITIONAL(BSD_KBD_MODE, [test x$KBD_MODE_TYPE = xbsd])
AM_CONDITIONAL(SUN_KBD_MODE, [test x$KBD_MODE_TYPE = xsun])
2005-07-01 22:29:53 +02:00
BUILD_DATE="$(date +'%Y%m%d')"
AC_SUBST([BUILD_DATE])
2007-06-11 16:53:38 +02:00
BUILD_TIME="$(date +'1%H%M%S')"
2007-06-04 08:03:44 +02:00
AC_SUBST([BUILD_TIME])
2005-07-01 22:29:53 +02:00
2006-09-18 21:11:18 +02:00
DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
2005-07-02 20:59:44 +02:00
AC_SUBST([DIX_CFLAGS])
2008-04-10 21:36:19 +02:00
AC_SUBST([libdir])
AC_SUBST([exec_prefix])
AC_SUBST([prefix])
2005-07-01 22:29:53 +02:00
2005-09-24 04:40:51 +02:00
# Man page sections - used in config utils & generating man pages
XORG_MANPAGE_SECTIONS
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-07-16 06:30:33 +02:00
GL/mesa/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
2007-02-04 08:39:04 +01:00
GL/mesa/vbo/Makefile
2005-07-16 06:30:33 +02:00
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
2005-09-30 04:37:57 +02:00
doc/Makefile
2005-07-01 22:29:53 +02:00
fb/Makefile
record/Makefile
XTrap/Makefile
mfb/Makefile
cfb/Makefile
cfb32/Makefile
2006-07-19 16:05:12 +02:00
config/Makefile
2005-07-01 22:29:53 +02:00
mi/Makefile
miext/Makefile
miext/damage/Makefile
miext/shadow/Makefile
miext/cw/Makefile
2005-10-15 22:44:44 +02:00
miext/rootless/Makefile
2007-02-17 11:23:11 +01:00
miext/rootless/accel/Makefile
2005-07-01 22:29:53 +02:00
os/Makefile
randr/Makefile
render/Makefile
xkb/Makefile
Xext/Makefile
Xi/Makefile
xfixes/Makefile
2006-02-16 01:14:11 +01:00
exa/Makefile
2005-07-01 22:29:53 +02:00
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-09-27 16:09:31 +02:00
hw/xfree86/doc/Makefile
2005-09-30 04:37:57 +02:00
hw/xfree86/doc/devel/Makefile
hw/xfree86/doc/man/Makefile
2005-09-27 16:09:31 +02:00
hw/xfree86/doc/sgml/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
2007-02-16 05:36:20 +01:00
hw/xfree86/modes/Makefile
2005-07-01 22:29:53 +02:00
hw/xfree86/os-support/Makefile
2005-09-13 20:37:35 +02:00
hw/xfree86/os-support/bsd/Makefile
2005-07-01 22:29:53 +02:00
hw/xfree86/os-support/bus/Makefile
2006-08-12 18:41:59 +02:00
hw/xfree86/os-support/hurd/Makefile
2005-07-01 22:29:53 +02:00
hw/xfree86/os-support/misc/Makefile
hw/xfree86/os-support/linux/Makefile
2005-10-15 22:44:44 +02:00
hw/xfree86/os-support/lynxos/Makefile
hw/xfree86/os-support/sco/Makefile
2007-11-20 14:57:15 +01:00
hw/xfree86/os-support/solaris/Makefile
2005-10-15 22:44:44 +02:00
hw/xfree86/os-support/sysv/Makefile
2005-11-08 23:47:57 +01:00
hw/xfree86/os-support/usl/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
2005-09-14 09:49:22 +02:00
hw/xfree86/xf8_32bpp/Makefile
2005-09-24 04:40:51 +02:00
hw/xfree86/utils/Makefile
2005-12-28 16:22:21 +01:00
hw/xfree86/utils/cvt/Makefile
2005-10-04 02:43:16 +02:00
hw/xfree86/utils/gtf/Makefile
2005-09-26 22:58:26 +02:00
hw/xfree86/utils/ioport/Makefile
2005-09-28 18:55:25 +02:00
hw/xfree86/utils/kbd_mode/Makefile
2005-09-26 22:58:26 +02:00
hw/xfree86/utils/pcitweak/Makefile
2005-09-24 04:40:51 +02:00
hw/xfree86/utils/scanpci/Makefile
hw/xfree86/utils/xorgcfg/Makefile
hw/xfree86/utils/xorgconfig/Makefile
2005-07-12 03:20:36 +02:00
hw/dmx/config/Makefile
2005-09-27 16:09:31 +02:00
hw/dmx/doc/Makefile
2005-10-06 04:35:22 +02:00
hw/dmx/examples/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-12-28 11:31:46 +01:00
hw/xgl/Makefile
hw/xgl/egl/Makefile
hw/xgl/egl/module/Makefile
hw/xgl/glx/Makefile
hw/xgl/glx/module/Makefile
hw/xgl/glxext/Makefile
hw/xgl/glxext/module/Makefile
2005-07-14 05:32:09 +02:00
hw/xnest/Makefile
2005-07-05 00:18:40 +02:00
hw/xwin/Makefile
2007-12-06 04:43:49 +01:00
hw/xquartz/Makefile
2008-04-23 19:35:59 +02:00
hw/xquartz/GL/Makefile
2007-12-06 04:43:49 +01:00
hw/xquartz/bundle/Makefile
2008-05-09 04:46:03 +02:00
hw/xquartz/doc/Makefile
hw/xquartz/mach-startup/Makefile
2007-12-06 04:43:49 +01:00
hw/xquartz/xpr/Makefile
2005-12-27 09:31:37 +01:00
hw/kdrive/Makefile
hw/kdrive/ati/Makefile
hw/kdrive/chips/Makefile
hw/kdrive/ephyr/Makefile
hw/kdrive/epson/Makefile
hw/kdrive/fake/Makefile
hw/kdrive/fbdev/Makefile
hw/kdrive/i810/Makefile
hw/kdrive/linux/Makefile
hw/kdrive/mach64/Makefile
hw/kdrive/mga/Makefile
hw/kdrive/neomagic/Makefile
hw/kdrive/nvidia/Makefile
hw/kdrive/pm2/Makefile
hw/kdrive/r128/Makefile
hw/kdrive/sdl/Makefile
hw/kdrive/sis300/Makefile
hw/kdrive/smi/Makefile
hw/kdrive/src/Makefile
hw/kdrive/vesa/Makefile
hw/kdrive/via/Makefile
2006-06-19 03:07:28 +02:00
hw/xprint/Makefile
hw/xprint/doc/Makefile
hw/xprint/pcl/Makefile
hw/xprint/pcl-mono/Makefile
hw/xprint/raster/Makefile
hw/xprint/ps/Makefile
hw/xprint/etc/Makefile
hw/xprint/etc/Xsession.d/Makefile
hw/xprint/etc/init.d/Makefile
hw/xprint/etc/profile.d/Makefile
hw/xprint/config/Makefile
hw/xprint/config/C/print/attributes/Makefile
hw/xprint/config/C/print/ddx-config/Makefile
hw/xprint/config/C/print/ddx-config/raster/Makefile
hw/xprint/config/C/print/models/CANONBJ10E-GS/Makefile
hw/xprint/config/C/print/models/PSdefault/fonts/Makefile
hw/xprint/config/C/print/models/PSdefault/Makefile
hw/xprint/config/C/print/models/PSspooldir/Makefile
hw/xprint/config/C/print/models/SPSPARC2/Makefile
hw/xprint/config/C/print/models/SPSPARC2/fonts/Makefile
hw/xprint/config/C/print/models/GSdefault/Makefile
hw/xprint/config/C/print/models/HPLJ4050-PS/Makefile
hw/xprint/config/C/print/models/HPLJ4050-PS/fonts/Makefile
hw/xprint/config/C/print/models/Makefile
hw/xprint/config/C/print/models/PS2PDFspooldir-GS/Makefile
hw/xprint/config/C/print/models/CANONC3200-PS/Makefile
hw/xprint/config/C/print/models/CANONC3200-PS/fonts/Makefile
hw/xprint/config/C/print/models/HPLJ4family/fonts/Makefile
hw/xprint/config/C/print/models/HPLJ4family/Makefile
hw/xprint/config/C/print/models/HPDJ1600C/Makefile
hw/xprint/config/C/print/models/HPDJ1600C/fonts/Makefile
hw/xprint/config/C/print/Makefile
hw/xprint/config/C/Makefile
hw/xprint/config/en_US/print/attributes/Makefile
hw/xprint/config/en_US/print/Makefile
hw/xprint/config/en_US/Makefile
2005-07-01 22:29:53 +02:00
xorg-server.pc
])