summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-03-23 17:45:40 -0700
committerLaxmikant Rashinkar <LK.Rashinkar@gmail.com>2014-03-23 17:45:40 -0700
commit1b3dd1256823e752599c20fc0a9a0d69e85d6808 (patch)
tree02592ce74e05a51e89241481cd320c1d75238317 /configure.ac
parent0748f411013b5dfd80f6e1fd4926b8ac666d9487 (diff)
downloadxrdp-proprietary-1b3dd1256823e752599c20fc0a9a0d69e85d6808.tar.gz
xrdp-proprietary-1b3dd1256823e752599c20fc0a9a0d69e85d6808.zip
addec checks for TurboJPEG in autoconf
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac27
1 files changed, 27 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ca9049eb..9f8dd04a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,6 +127,33 @@ then
[AC_MSG_ERROR([please install libpulse-dev or libpulse-devel])])
fi
+# checking for TurboJPEG
+if test ! -z "$TURBOJPEG_PATH"
+then
+ # env var TURBOJPEG_PATH has been defined, use that
+ AC_CHECK_HEADER([$TURBOJPEG_PATH/include/turbojpeg.h], [],
+ [AC_MSG_ERROR([could not find TurboJPEG in dir specified by env variable TURBOJPEG_PATH ($TURBOJPEG_PATH)])])
+
+ AC_SUBST(TurboJpegIncDir, ["-I$TURBOJPEG_PATH/include"])
+ AC_SUBST(TurboJpegLibDir, ["-L$TURBOJPEG_PATH/lib -Wl,-rpath -Wl,$TURBOJPEG_PATH/lib"])
+elif test -e /opt/libjpeg-turbo/lib64
+then
+ # TurboJPEG has been installed to /opt on a 64 bit m/c
+ AC_SUBST(TurboJpegIncDir, ["-I/opt/libjpeg-turbo/include"])
+ AC_SUBST(TurboJpegLibDir, ["-L/opt/libjpeg-turbo/lib64 -Wl,-rpath -Wl,/opt/libjpeg-turbo/lib64"])
+elif test -e /opt/libjpeg-turbo/lib32
+then
+ # TurboJPEG has been installed to /opt on a 32 bit m/c
+ AC_SUBST(TurboJpegIncDir, ["-I/opt/libjpeg-turbo/include"])
+ AC_SUBST(TurboJpegLibDir, ["-L/opt/libjpeg-turbo/lib32 -Wl,-rpath -Wl,/opt/libjpeg-turbo/lib32"])
+else
+ # check in default location
+ AC_CHECK_HEADER([/usr/include/turbojpeg.h], [],
+ [AC_MSG_ERROR([please install TurboJPEG ])])
+ AC_SUBST(TurboJpegIncDir, [""])
+ AC_SUBST(TurboJpegLibDir, [""])
+fi
+
# checking for Xlib, Xfixes
AC_CHECK_HEADER([X11/Xlib.h], [],
[AC_MSG_ERROR([please install libx11-dev or libX11-devel])])