diff options
Diffstat (limited to 'driver/xf86-video-cirrus/configure')
-rw-r--r-- | driver/xf86-video-cirrus/configure | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/driver/xf86-video-cirrus/configure b/driver/xf86-video-cirrus/configure index 00eddcd89..d78c0a990 100644 --- a/driver/xf86-video-cirrus/configure +++ b/driver/xf86-video-cirrus/configure @@ -643,6 +643,8 @@ XSERVER_LIBPCIACCESS_FALSE XSERVER_LIBPCIACCESS_TRUE PCIACCESS_LIBS PCIACCESS_CFLAGS +USE_EXA_FALSE +USE_EXA_TRUE XAA_FALSE XAA_TRUE XORG_LIBS @@ -799,6 +801,7 @@ with_sysroot enable_libtool_lock with_xorg_module_dir enable_xaa +enable_exa ' ac_precious_vars='build_alias host_alias @@ -1455,6 +1458,7 @@ Optional Features: --disable-libtool-lock avoid locking (might break parallel builds) --enable-xaa Enable legacy X Acceleration Architecture (XAA) [default=auto] + --disable-exa Disable EXA support [[default=enabled]] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -17960,6 +17964,83 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 $as_echo "$XAA" >&6; } +# Check whether --enable-exa was given. +if test "${enable_exa+set}" = set; then : + enableval=$enable_exa; EXA="$enableval" +else + EXA=yes +fi + +SAVE_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" +# Properly handle EXA. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5 +$as_echo_n "checking whether to enable EXA support... " >&6; } +if test "x$EXA" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + + SAVE_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" + ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default" +if test "x$ac_cv_header_exa_h" = xyes; then : + have_exa_h="yes" +else + have_exa_h="no" +fi + + + CPPFLAGS="$SAVE_CPPFLAGS" +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + +SAVE_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" +if test "x$have_exa_h" = xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5 +$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; } + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include "exa.h" +#if EXA_VERSION_MAJOR < 2 +#error OLD EXA! +#endif + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_cpp "$LINENO"; then : + USE_EXA=yes +else + USE_EXA=no +fi +rm -f conftest.err conftest.i conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5 +$as_echo "$USE_EXA" >&6; } + + if test "x$USE_EXA" = xyes; then + +$as_echo "#define USE_EXA 1" >>confdefs.h + + fi +fi + if test "x$USE_EXA" = xyes; then + USE_EXA_TRUE= + USE_EXA_FALSE='#' +else + USE_EXA_TRUE='#' + USE_EXA_FALSE= +fi + + if test "x$XSERVER_LIBPCIACCESS" = xyes; then pkg_failed=no @@ -18211,6 +18292,10 @@ if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then as_fn_error $? "conditional \"XAA\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then + as_fn_error $? "conditional \"USE_EXA\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 |