diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-19 21:28:28 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-19 21:28:28 +0000 |
| commit | d945813e0856bdd8b06c1cc6d00e4cf33c9ee4cd (patch) | |
| tree | b93706fd1768e990d0d29d6c731128d51d00062e /configure.ac | |
| parent | 0e2492a501a41105ee688133ded8ec7d2a755904 (diff) | |
check for the composite library
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c06fdaa6..e62f1be3 100644 --- a/configure.ac +++ b/configure.ac @@ -136,6 +136,31 @@ else xcursor_found=no fi +AC_ARG_ENABLE(xcomposite, + AC_HELP_STRING( + [--disable-xcomposite], + [disable use of the X Composite library. [[default=enabled]]] + ), + [enable_xcomposite=$enableval], + [enable_xcomposite=yes] +) + +if test "$enable_xcomposite" = yes; then +PKG_CHECK_MODULES(XCOMPOSITE, [xcomposite], + [ + AC_DEFINE(USE_XCOMPOSITE, [1], [Use X Composite library]) + AC_SUBST(XCOMPOSITE_CFLAGS) + AC_SUBST(XCOMPOSITE_LIBS) + xcomposite_found=yes + ], + [ + xcomposite_found=no + ] +) +else + xcomposite_found=no +fi + dnl Check for session management X11_SM @@ -170,6 +195,7 @@ AC_MSG_RESULT AC_MSG_RESULT([Compiling with these options: Startup Notification... $sn_found X Cursor Library... $xcursor_found + X Composite Library... $xcomposite_found Session Management... $SM ]) AC_MSG_RESULT([configure complete, now type "make"]) |
