|
|
@ -7,6 +7,7 @@ AM_INIT_AUTOMAKE([1.6 foreign])
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_CONST
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
|
|
|
PKG_PROG_PKG_CONFIG
|
|
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
|
|
|
AC_ARG_WITH([systemdsystemunitdir],
|
|
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
|
|
|
AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
|
|
|
|
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
|
|
|
[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
|
|
|
@ -15,46 +16,55 @@ if test "x$with_systemdsystemunitdir" != xno; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
|
|
|
|
AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(pam, AS_HELP_STRING([--disable-pam],
|
|
|
|
|
|
|
|
[Build PAM support (default: yes)]),
|
|
|
|
|
|
|
|
[], [enable_pam=yes])
|
|
|
|
AC_ARG_ENABLE(nopam, AS_HELP_STRING([--enable-nopam],
|
|
|
|
AC_ARG_ENABLE(nopam, AS_HELP_STRING([--enable-nopam],
|
|
|
|
[Build no PAM support (default: no)]),
|
|
|
|
[Build no PAM support (default: no, deprecated)]),
|
|
|
|
[nopam=true], [nopam=false])
|
|
|
|
[
|
|
|
|
AM_CONDITIONAL(SESMAN_NOPAM, [test x$nopam = xtrue])
|
|
|
|
if test "x$enable_nopam" = "xyes"
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
enable_pam=no
|
|
|
|
|
|
|
|
AC_MSG_WARN([--enable-nopam option is deprecated. Please use --disable-pam instead.])
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
])
|
|
|
|
|
|
|
|
AM_CONDITIONAL(SESMAN_NOPAM, [test x$enable_pam != xyes])
|
|
|
|
AC_ARG_ENABLE(kerberos, AS_HELP_STRING([--enable-kerberos],
|
|
|
|
AC_ARG_ENABLE(kerberos, AS_HELP_STRING([--enable-kerberos],
|
|
|
|
[Build kerberos support (default: no)]),
|
|
|
|
[Build kerberos support (default: no)]),
|
|
|
|
[kerberos=true], [kerberos=false])
|
|
|
|
[], [enable_kerberos=no])
|
|
|
|
AM_CONDITIONAL(SESMAN_KERBEROS, [test x$kerberos = xtrue])
|
|
|
|
AM_CONDITIONAL(SESMAN_KERBEROS, [test x$enable_kerberos = xyes])
|
|
|
|
AC_ARG_ENABLE(pamuserpass, AS_HELP_STRING([--enable-pamuserpass],
|
|
|
|
AC_ARG_ENABLE(pamuserpass, AS_HELP_STRING([--enable-pamuserpass],
|
|
|
|
[Build pam userpass support (default: no)]),
|
|
|
|
[Build pam userpass support (default: no)]),
|
|
|
|
[pamuserpass=true], [pamuserpass=false])
|
|
|
|
[], [enable_pamuserpass=no])
|
|
|
|
AM_CONDITIONAL(SESMAN_PAMUSERPASS, [test x$pamuserpass = xtrue])
|
|
|
|
AM_CONDITIONAL(SESMAN_PAMUSERPASS, [test x$enable_pamuserpass = xyes])
|
|
|
|
AC_ARG_ENABLE(xrdpdebug, AS_HELP_STRING([--enable-xrdpdebug],
|
|
|
|
AC_ARG_ENABLE(xrdpdebug, AS_HELP_STRING([--enable-xrdpdebug],
|
|
|
|
[Build debug (default: no)]),
|
|
|
|
[Build debug (default: no)]),
|
|
|
|
[xrdpdebug=true], [xrdpdebug=false])
|
|
|
|
[], [enable_xrdpdebug=no])
|
|
|
|
AM_CONDITIONAL(XRDP_DEBUG, [test x$xrdpdebug = xtrue])
|
|
|
|
AM_CONDITIONAL(XRDP_DEBUG, [test x$enable_xrdpdebug = xyes])
|
|
|
|
AC_ARG_ENABLE(neutrinordp, AS_HELP_STRING([--enable-neutrinordp],
|
|
|
|
AC_ARG_ENABLE(neutrinordp, AS_HELP_STRING([--enable-neutrinordp],
|
|
|
|
[Build neutrinordp module (default: no)]),
|
|
|
|
[Build neutrinordp module (default: no)]),
|
|
|
|
[neutrinordp=true], [neutrinordp=false])
|
|
|
|
[], [enable_neutrinordp=no])
|
|
|
|
AM_CONDITIONAL(XRDP_NEUTRINORDP, [test x$neutrinordp = xtrue])
|
|
|
|
AM_CONDITIONAL(XRDP_NEUTRINORDP, [test x$enable_neutrinordp = xyes])
|
|
|
|
AC_ARG_ENABLE(jpeg, AS_HELP_STRING([--enable-jpeg],
|
|
|
|
AC_ARG_ENABLE(jpeg, AS_HELP_STRING([--enable-jpeg],
|
|
|
|
[Build jpeg module (default: no)]),
|
|
|
|
[Build jpeg module (default: no)]),
|
|
|
|
[jpeg=true], [jpeg=false])
|
|
|
|
[], [enable_jpeg=no])
|
|
|
|
AM_CONDITIONAL(XRDP_JPEG, [test x$jpeg = xtrue])
|
|
|
|
AM_CONDITIONAL(XRDP_JPEG, [test x$enable_jpeg = xyes])
|
|
|
|
AC_ARG_ENABLE(tjpeg, AS_HELP_STRING([--enable-tjpeg],
|
|
|
|
AC_ARG_ENABLE(tjpeg, AS_HELP_STRING([--enable-tjpeg],
|
|
|
|
[Build turbo jpeg module (default: no)]),
|
|
|
|
[Build turbo jpeg module (default: no)]),
|
|
|
|
[tjpeg=true], [tjpeg=false])
|
|
|
|
[], [enable_tjpeg=no])
|
|
|
|
AM_CONDITIONAL(XRDP_TJPEG, [test x$tjpeg = xtrue])
|
|
|
|
AM_CONDITIONAL(XRDP_TJPEG, [test x$enable_tjpeg = xyes])
|
|
|
|
AC_ARG_ENABLE(fuse, AS_HELP_STRING([--enable-fuse],
|
|
|
|
AC_ARG_ENABLE(fuse, AS_HELP_STRING([--enable-fuse],
|
|
|
|
[Build fuse(clipboard file / drive redir) (default: no)]),
|
|
|
|
[Build fuse(clipboard file / drive redir) (default: no)]),
|
|
|
|
[fuse=true], [fuse=false])
|
|
|
|
[], [enable_fuse=no])
|
|
|
|
AM_CONDITIONAL(XRDP_FUSE, [test x$fuse = xtrue])
|
|
|
|
AM_CONDITIONAL(XRDP_FUSE, [test x$enable_fuse = xyes])
|
|
|
|
AC_ARG_ENABLE(xrdpvr, AS_HELP_STRING([--enable-xrdpvr],
|
|
|
|
AC_ARG_ENABLE(xrdpvr, AS_HELP_STRING([--enable-xrdpvr],
|
|
|
|
[Build xrdpvr module (default: no)]),
|
|
|
|
[Build xrdpvr module (default: no)]),
|
|
|
|
[xrdpvr=true], [xrdpvr=false])
|
|
|
|
[], [enable_xrdpvr=no])
|
|
|
|
AM_CONDITIONAL(XRDP_XRDPVR, [test x$xrdpvr = xtrue])
|
|
|
|
AM_CONDITIONAL(XRDP_XRDPVR, [test x$enable_xrdpvr = xyes])
|
|
|
|
AC_ARG_ENABLE(rfxcodec, AS_HELP_STRING([--enable-rfxcodec],
|
|
|
|
AC_ARG_ENABLE(rfxcodec, AS_HELP_STRING([--enable-rfxcodec],
|
|
|
|
[Build using librfxcodec (default: no)]),
|
|
|
|
[Build using librfxcodec (default: no)]),
|
|
|
|
[rfxcodec=true], [rfxcodec=false])
|
|
|
|
[], [enable_rfxcodec=no])
|
|
|
|
AM_CONDITIONAL(XRDP_RFXCODEC, [test x$rfxcodec = xtrue])
|
|
|
|
AM_CONDITIONAL(XRDP_RFXCODEC, [test x$enable_rfxcodec = xyes])
|
|
|
|
|
|
|
|
|
|
|
|
AM_CONDITIONAL(GOT_PREFIX, test "x${prefix}" != "xNONE"])
|
|
|
|
AM_CONDITIONAL(GOT_PREFIX, test "x${prefix}" != "xNONE"])
|
|
|
|
|
|
|
|
|
|
|
@ -64,9 +74,9 @@ AC_CHECK_HEADER([openssl/rc4.h], [],
|
|
|
|
[#include <stdlib.h>])
|
|
|
|
[#include <stdlib.h>])
|
|
|
|
|
|
|
|
|
|
|
|
# checking if pam should be autodetected.
|
|
|
|
# checking if pam should be autodetected.
|
|
|
|
if test -z "$enable_nopam"
|
|
|
|
if test "x$enable_pam" = "xyes"
|
|
|
|
then
|
|
|
|
then
|
|
|
|
if test -z "$enable_kerberos"
|
|
|
|
if test "x$enable_kerberos" != "xyes"
|
|
|
|
then
|
|
|
|
then
|
|
|
|
AC_CHECK_HEADER([security/pam_appl.h], [],
|
|
|
|
AC_CHECK_HEADER([security/pam_appl.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libpam0g-dev or pam-devel])])
|
|
|
|
[AC_MSG_ERROR([please install libpam0g-dev or pam-devel])])
|
|
|
@ -78,7 +88,7 @@ AC_CHECK_MEMBER([struct in6_addr.s6_addr],
|
|
|
|
[AC_DEFINE(NO_ARPA_INET_H_IP6, 1, [for IPv6])],
|
|
|
|
[AC_DEFINE(NO_ARPA_INET_H_IP6, 1, [for IPv6])],
|
|
|
|
[#include <arpa/inet.h>])
|
|
|
|
[#include <arpa/inet.h>])
|
|
|
|
|
|
|
|
|
|
|
|
if test "x$enable_nopam" = "xyes"
|
|
|
|
if test "x$enable_pam" != "xyes"
|
|
|
|
then
|
|
|
|
then
|
|
|
|
AC_DEFINE([USE_NOPAM],1,[Disable PAM])
|
|
|
|
AC_DEFINE([USE_NOPAM],1,[Disable PAM])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -86,19 +96,19 @@ fi
|
|
|
|
AS_IF( [test "x$enable_neutrinordp" = "xyes"] , [PKG_CHECK_MODULES(FREERDP, freerdp >= 1.0.0)] )
|
|
|
|
AS_IF( [test "x$enable_neutrinordp" = "xyes"] , [PKG_CHECK_MODULES(FREERDP, freerdp >= 1.0.0)] )
|
|
|
|
|
|
|
|
|
|
|
|
# checking for libjpeg
|
|
|
|
# checking for libjpeg
|
|
|
|
if ! test -z "$enable_jpeg"
|
|
|
|
if test "x$enable_jpeg" = "xyes"
|
|
|
|
then
|
|
|
|
then
|
|
|
|
AC_CHECK_HEADER([jpeglib.h], [],
|
|
|
|
AC_CHECK_HEADER([jpeglib.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libjpeg-dev or libjpeg-devel])])
|
|
|
|
[AC_MSG_ERROR([please install libjpeg-dev or libjpeg-devel])])
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if ! test -z "$enable_xrdpdebug"
|
|
|
|
if test "x$enable_xrdpdebug" = "xyes"
|
|
|
|
then
|
|
|
|
then
|
|
|
|
CFLAGS="-g -O0"
|
|
|
|
CFLAGS="-g -O0"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# checking for fuse
|
|
|
|
# checking for fuse
|
|
|
|
if ! test -z "$enable_fuse"
|
|
|
|
if test "x$enable_fuse" = "xyes"
|
|
|
|
then
|
|
|
|
then
|
|
|
|
AC_CHECK_HEADER([fuse.h], [],
|
|
|
|
AC_CHECK_HEADER([fuse.h], [],
|
|
|
|
[AC_MSG_ERROR([please install libfuse-dev or fuse-devel])],
|
|
|
|
[AC_MSG_ERROR([please install libfuse-dev or fuse-devel])],
|
|
|
@ -106,7 +116,7 @@ then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# checking for TurboJPEG
|
|
|
|
# checking for TurboJPEG
|
|
|
|
if ! test -z "$enable_tjpeg"
|
|
|
|
if test "x$enable_tjpeg" = "xyes"
|
|
|
|
then
|
|
|
|
then
|
|
|
|
if test ! -z "$TURBOJPEG_PATH"
|
|
|
|
if test ! -z "$TURBOJPEG_PATH"
|
|
|
|
then
|
|
|
|
then
|
|
|
|