2008-08-03 15:30:03 +08:00
|
|
|
# Process this file with autoconf to produce a configure script
|
|
|
|
|
|
|
|
AC_PREREQ(2.59)
|
2010-11-04 00:09:13 +08:00
|
|
|
AC_INIT([xrdp], [0.6.0], [xrdp-devel@lists.sourceforge.net])
|
2008-11-03 05:27:42 +08:00
|
|
|
AM_CONFIG_HEADER(config_ac.h:config_ac-h.in)
|
2008-08-03 15:30:03 +08:00
|
|
|
AM_INIT_AUTOMAKE([1.6 foreign])
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_C_CONST
|
|
|
|
AC_PROG_LIBTOOL
|
2012-05-27 01:15:45 +08:00
|
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
|
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
|
|
|
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
|
|
|
if test "x$with_systemdsystemunitdir" != xno; then
|
|
|
|
AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
|
|
|
|
|
2008-08-09 16:35:05 +08:00
|
|
|
AC_ARG_ENABLE(nopam, AS_HELP_STRING([--enable-nopam],
|
|
|
|
[Build no PAM support (default: no)]),
|
|
|
|
[nopam=true], [nopam=false])
|
|
|
|
AM_CONDITIONAL(SESMAN_NOPAM, [test x$nopam = xtrue])
|
|
|
|
AC_ARG_ENABLE(kerberos, AS_HELP_STRING([--enable-kerberos],
|
|
|
|
[Build kerberos support (default: no)]),
|
|
|
|
[kerberos=true], [kerberos=false])
|
|
|
|
AM_CONDITIONAL(SESMAN_KERBEROS, [test x$kerberos = xtrue])
|
|
|
|
AC_ARG_ENABLE(pamuserpass, AS_HELP_STRING([--enable-pamuserpass],
|
|
|
|
[Build pam userpass support (default: no)]),
|
|
|
|
[pamuserpass=true], [pamuserpass=false])
|
|
|
|
AM_CONDITIONAL(SESMAN_PAMUSERPASS, [test x$pamuserpass = xtrue])
|
2010-03-18 06:06:50 +08:00
|
|
|
AC_ARG_ENABLE(xrdpdebug, AS_HELP_STRING([--enable-xrdpdebug],
|
|
|
|
[Build debug (default: no)]),
|
|
|
|
[xrdpdebug=true], [xrdpdebug=false])
|
|
|
|
AM_CONDITIONAL(XRDP_DEBUG, [test x$xrdpdebug = xtrue])
|
2012-02-08 03:51:09 +08:00
|
|
|
AC_ARG_ENABLE(freerdp1, AS_HELP_STRING([--enable-freerdp1],
|
|
|
|
[Build freerdp1 module (default: no)]),
|
|
|
|
[freerdp1=true], [freerdp1=false])
|
|
|
|
AM_CONDITIONAL(XRDP_FREERDP1, [test x$freerdp1 = xtrue])
|
2013-05-03 17:07:02 +08:00
|
|
|
AC_ARG_ENABLE(neutrinordp, AS_HELP_STRING([--enable-neutrinordp],
|
|
|
|
[Build neutrinordp module (default: no)]),
|
|
|
|
[neutrinordp=true], [neutrinordp=false])
|
|
|
|
AM_CONDITIONAL(XRDP_NEUTRINORDP, [test x$neutrinordp = xtrue])
|
2012-04-08 13:41:46 +08:00
|
|
|
AC_ARG_ENABLE(jpeg, AS_HELP_STRING([--enable-jpeg],
|
|
|
|
[Build jpeg module (default: no)]),
|
|
|
|
[jpeg=true], [jpeg=false])
|
|
|
|
AM_CONDITIONAL(XRDP_JPEG, [test x$jpeg = xtrue])
|
2012-05-26 03:36:55 +08:00
|
|
|
AC_ARG_ENABLE(simplesound, AS_HELP_STRING([--enable-simplesound],
|
|
|
|
[Build simple pulse audio interface (default: no)]),
|
|
|
|
[simplesound=true], [simplesound=false])
|
|
|
|
AM_CONDITIONAL(XRDP_SIMPLESOUND, [test x$simplesound = xtrue])
|
2012-11-03 14:10:36 +08:00
|
|
|
AC_ARG_ENABLE(fuse, AS_HELP_STRING([--enable-fuse],
|
|
|
|
[Build fuse(clipboard file / drive redir) (default: no)]),
|
|
|
|
[fuse=true], [fuse=false])
|
|
|
|
AM_CONDITIONAL(XRDP_FUSE, [test x$fuse = xtrue])
|
2012-11-11 09:53:08 +08:00
|
|
|
AC_ARG_ENABLE(xrdpvr, AS_HELP_STRING([--enable-xrdpvr],
|
|
|
|
[Build xrdpvr module (default: no)]),
|
|
|
|
[xrdpvr=true], [xrdpvr=false])
|
|
|
|
AM_CONDITIONAL(XRDP_XRDPVR, [test x$xrdpvr = xtrue])
|
2009-10-10 02:20:56 +08:00
|
|
|
|
2012-04-06 06:40:46 +08:00
|
|
|
AM_CONDITIONAL(GOT_PREFIX, test "x${prefix}" != "xNONE"])
|
|
|
|
|
2009-10-10 02:20:56 +08:00
|
|
|
# checking for openssl
|
2009-10-16 03:22:57 +08:00
|
|
|
AC_CHECK_HEADER([openssl/rc4.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libssl-dev or openssl-devel])],
|
|
|
|
[#include <stdlib.h>])
|
2009-10-10 02:20:56 +08:00
|
|
|
|
|
|
|
# checking if pam should be autodetected.
|
|
|
|
if test -z "$enable_nopam"
|
|
|
|
then
|
|
|
|
if test -z "$enable_kerberos"
|
|
|
|
then
|
2009-10-16 03:22:57 +08:00
|
|
|
AC_CHECK_HEADER([security/pam_appl.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libpam0g-dev or pam-devel])])
|
2009-10-10 02:20:56 +08:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2013-04-03 15:54:52 +08:00
|
|
|
AC_CHECK_MEMBER([struct in6_addr.s6_addr],
|
|
|
|
[],
|
|
|
|
[AC_DEFINE(NO_ARPA_INET_H_IP6, 1, [for IPv6])],
|
|
|
|
[#include <arpa/inet.h>])
|
|
|
|
|
2013-02-07 18:08:28 +08:00
|
|
|
if test "x$enable_nopam" = "xyes"
|
|
|
|
then
|
|
|
|
AC_DEFINE([USE_NOPAM],1,[Disable PAM])
|
|
|
|
fi
|
|
|
|
|
2012-02-08 03:51:09 +08:00
|
|
|
AS_IF( [test "x$enable_freerdp1" = "xyes"] , [PKG_CHECK_MODULES(FREERDP, freerdp >= 1.0.0)] )
|
2010-11-21 10:14:38 +08:00
|
|
|
|
2013-05-03 17:07:02 +08:00
|
|
|
AS_IF( [test "x$enable_neutrinordp" = "xyes"] , [PKG_CHECK_MODULES(FREERDP, freerdp >= 1.0.0)] )
|
|
|
|
|
2012-08-03 01:48:59 +08:00
|
|
|
# checking for libjpeg
|
2012-04-08 13:41:46 +08:00
|
|
|
if ! test -z "$enable_jpeg"
|
|
|
|
then
|
|
|
|
AC_CHECK_HEADER([jpeglib.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libjpeg-dev or libjpeg-devel])])
|
|
|
|
fi
|
|
|
|
|
2012-11-03 14:10:36 +08:00
|
|
|
# checking for fuse
|
|
|
|
if ! test -z "$enable_fuse"
|
|
|
|
then
|
|
|
|
AC_CHECK_HEADER([fuse.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libfuse-dev or fuse-devel])],
|
|
|
|
[#define _FILE_OFFSET_BITS 64])
|
|
|
|
fi
|
|
|
|
|
2012-05-26 03:36:55 +08:00
|
|
|
# checking for libpulse libpulse-simple
|
|
|
|
if ! test -z "$enable_simplesound"
|
|
|
|
then
|
|
|
|
AC_CHECK_HEADER([pulse/simple.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libpulse-dev or libpulse-devel])])
|
|
|
|
fi
|
|
|
|
|
2009-10-11 13:09:42 +08:00
|
|
|
# checking for Xlib, Xfixes
|
2009-10-11 13:33:30 +08:00
|
|
|
AC_CHECK_HEADER([X11/Xlib.h], [],
|
2010-11-20 11:26:33 +08:00
|
|
|
[AC_MSG_ERROR([please install libx11-dev or libX11-devel])])
|
2009-10-11 13:33:30 +08:00
|
|
|
AC_CHECK_HEADER([X11/extensions/Xfixes.h], [],
|
2010-11-20 11:26:33 +08:00
|
|
|
[AC_MSG_ERROR([please install libx11-dev and libxfixes-dev or libXfixes-devel])],
|
2009-10-11 13:33:30 +08:00
|
|
|
[#include <X11/Xlib.h>])
|
2009-10-10 02:20:56 +08:00
|
|
|
|
2009-07-23 12:22:43 +08:00
|
|
|
libdir="${libdir}/xrdp";
|
2008-08-17 15:13:41 +08:00
|
|
|
if test "x${prefix}" = "xNONE" ; then
|
2009-05-19 12:23:49 +08:00
|
|
|
sysconfdir="/etc";
|
|
|
|
localstatedir="/var";
|
2008-08-12 13:19:59 +08:00
|
|
|
fi
|
2008-08-03 15:30:03 +08:00
|
|
|
AC_CONFIG_FILES([Makefile
|
|
|
|
common/Makefile
|
|
|
|
vnc/Makefile
|
|
|
|
rdp/Makefile
|
|
|
|
libxrdp/Makefile
|
|
|
|
xup/Makefile
|
|
|
|
mc/Makefile
|
2012-02-08 03:51:09 +08:00
|
|
|
freerdp1/Makefile
|
2013-05-03 17:07:02 +08:00
|
|
|
neutrinordp/Makefile
|
2008-08-03 15:30:03 +08:00
|
|
|
xrdp/Makefile
|
|
|
|
sesman/Makefile
|
|
|
|
sesman/libscp/Makefile
|
2008-08-11 02:01:51 +08:00
|
|
|
sesman/tools/Makefile
|
2008-11-25 12:14:37 +08:00
|
|
|
sesman/sessvc/Makefile
|
2009-04-20 01:16:46 +08:00
|
|
|
sesman/chansrv/Makefile
|
2008-08-17 11:13:40 +08:00
|
|
|
keygen/Makefile
|
|
|
|
docs/Makefile
|
|
|
|
docs/man/Makefile
|
2008-08-17 15:13:41 +08:00
|
|
|
instfiles/Makefile
|
|
|
|
instfiles/pam.d/Makefile
|
2013-03-19 06:06:10 +08:00
|
|
|
instfiles/init.d/Makefile
|
|
|
|
instfiles/default/Makefile
|
2009-08-12 10:49:53 +08:00
|
|
|
genkeymap/Makefile
|
2012-08-03 01:48:59 +08:00
|
|
|
xrdpapi/Makefile
|
2012-11-11 09:53:08 +08:00
|
|
|
xrdpvr/Makefile
|
2008-08-03 15:30:03 +08:00
|
|
|
])
|
|
|
|
# fontdump/Makefile
|
|
|
|
# xrdp/cursors/Makefile
|
|
|
|
# Xserver/hw/rdp/Makefile
|
|
|
|
AC_OUTPUT
|
2008-08-09 16:35:05 +08:00
|
|
|
|
|
|
|
# example of how to check for a struct in a header
|
|
|
|
#AC_CHECK_MEMBER([struct in6_addr.s6_addr],
|
|
|
|
# [],
|
|
|
|
# [AC_DEFINE(NO_ARPA_INET_H_IP6, 1, [for IPv6])],
|
|
|
|
# [#include <arpa/inet.h>])
|