- fi
- fi
-
-
- # if that succeeded, then we've really got it.
- if test "$have_dpms" = yes; then
- cat >>confdefs.h <<\_ACEOF
-#define HAVE_DPMS_EXTENSION 1
-_ACEOF
-
- fi
-
-elif test "$with_dpms" != no; then
- echo "error: must be yes or no: --with-dpms-ext=$with_dpms"
- exit 1
-fi
-
-
-###############################################################################
-#
-# Check for the XINERAMA server extension.
-#
-###############################################################################
-
-have_xinerama=no
-with_xinerama_req=unspecified
-
-# Check whether --with-xinerama-ext was given.
-if test "${with_xinerama_ext+set}" = set; then
- withval=$with_xinerama_ext; with_xinerama="$withval"; with_xinerama_req="$withval"
-else
- with_xinerama=yes
-fi
-
-
-
- case "$with_xinerama" in
- yes) ;;
- no) ;;
-
- /*)
- { echo "$as_me:$LINENO: checking for XINERAMA headers" >&5
-echo $ECHO_N "checking for XINERAMA headers... $ECHO_C" >&6; }
- d=$with_xinerama/include
- if test -d $d; then
- X_CFLAGS="-I$d $X_CFLAGS"
- { echo "$as_me:$LINENO: result: $d" >&5
-echo "${ECHO_T}$d" >&6; }
- else
- { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
-echo "${ECHO_T}not found ($d: no such directory)" >&6; }
- fi
-
- { echo "$as_me:$LINENO: checking for XINERAMA libs" >&5
-echo $ECHO_N "checking for XINERAMA libs... $ECHO_C" >&6; }
- d=$with_xinerama/lib
- if test -d $d; then
- X_LIBS="-L$d $X_LIBS"
- { echo "$as_me:$LINENO: result: $d" >&5
-echo "${ECHO_T}$d" >&6; }
- else
- { echo "$as_me:$LINENO: result: not found ($d: no such directory)" >&5
-echo "${ECHO_T}not found ($d: no such directory)" >&6; }
- fi
-
- # replace the directory string with "yes".
- with_xinerama_req="yes"
- with_xinerama=$with_xinerama_req
- ;;
-
- *)
- echo ""
- echo "error: argument to --with-xinerama-ext must be \"yes\", \"no\", or a directory."
- echo " If it is a directory, then \`DIR/include' will be added to"
- echo " the -I list, and \`DIR/lib' will be added to the -L list."
- exit 1
- ;;
- esac
-
-
-if test "$with_xinerama" = yes; then
-
- # first check for Xinerama.h
-
- ac_save_CPPFLAGS="$CPPFLAGS"
- if test \! -z "$includedir" ; then
- CPPFLAGS="$CPPFLAGS -I$includedir"
- fi
- CPPFLAGS="$CPPFLAGS $X_CFLAGS"
- { echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
-echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6; }
-if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <X11/Xlib.h>
-
-#include <X11/extensions/Xinerama.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_compile") 2>conftest.er1
- ac_status=$?
- grep -v '^ *+' conftest.er1 >conftest.err
- rm -f conftest.er1
- cat conftest.err >&5
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
- { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; } &&
- { ac_try='test -s conftest.$ac_objext'
- { (case "(($ac_try" in
- *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
- *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
- (eval "$ac_try") 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_header_X11_extensions_Xinerama_h=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- ac_cv_header_X11_extensions_Xinerama_h=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
-echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6; }
-if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
- have_xinerama=yes
-fi
-
-
- CPPFLAGS="$ac_save_CPPFLAGS"
-
- # if that succeeded, then check for the XINERAMA code in the libraries
- if test "$have_xinerama" = yes; then
-
- # first look in -lXext
- have_xinerama=no