Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1228:8168aa94e6d7
prev1226:227ceb186ba7
next1235:8da2f3dad9c0
author nkeynes
date Thu Feb 23 15:24:47 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change Check for existence of glDrawBuffer (assuming that glReadBuffer will
follow). Note only need to guard the common code in gl_fbo.c
file annotate diff log raw
1.1 --- a/configure Thu Feb 23 08:49:32 2012 +1000
1.2 +++ b/configure Thu Feb 23 15:24:47 2012 +1000
1.3 @@ -12372,6 +12372,95 @@
1.4
1.5 fi
1.6
1.7 +{ echo "$as_me:$LINENO: checking for glDrawBuffer" >&5
1.8 +echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }
1.9 +if test "${ac_cv_func_glDrawBuffer+set}" = set; then
1.10 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.11 +else
1.12 + cat >conftest.$ac_ext <<_ACEOF
1.13 +/* confdefs.h. */
1.14 +_ACEOF
1.15 +cat confdefs.h >>conftest.$ac_ext
1.16 +cat >>conftest.$ac_ext <<_ACEOF
1.17 +/* end confdefs.h. */
1.18 +/* Define glDrawBuffer to an innocuous variant, in case <limits.h> declares glDrawBuffer.
1.19 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.20 +#define glDrawBuffer innocuous_glDrawBuffer
1.21 +
1.22 +/* System header to define __stub macros and hopefully few prototypes,
1.23 + which can conflict with char glDrawBuffer (); below.
1.24 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.25 + <limits.h> exists even on freestanding compilers. */
1.26 +
1.27 +#ifdef __STDC__
1.28 +# include <limits.h>
1.29 +#else
1.30 +# include <assert.h>
1.31 +#endif
1.32 +
1.33 +#undef glDrawBuffer
1.34 +
1.35 +/* Override any GCC internal prototype to avoid an error.
1.36 + Use char because int might match the return type of a GCC
1.37 + builtin and then its argument prototype would still apply. */
1.38 +#ifdef __cplusplus
1.39 +extern "C"
1.40 +#endif
1.41 +char glDrawBuffer ();
1.42 +/* The GNU C library defines this for functions which it implements
1.43 + to always fail with ENOSYS. Some functions are actually named
1.44 + something starting with __ and the normal name is an alias. */
1.45 +#if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer
1.46 +choke me
1.47 +#endif
1.48 +
1.49 +int
1.50 +main ()
1.51 +{
1.52 +return glDrawBuffer ();
1.53 + ;
1.54 + return 0;
1.55 +}
1.56 +_ACEOF
1.57 +rm -f conftest.$ac_objext conftest$ac_exeext
1.58 +if { (ac_try="$ac_link"
1.59 +case "(($ac_try" in
1.60 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.61 + *) ac_try_echo=$ac_try;;
1.62 +esac
1.63 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.64 + (eval "$ac_link") 2>conftest.er1
1.65 + ac_status=$?
1.66 + grep -v '^ *+' conftest.er1 >conftest.err
1.67 + rm -f conftest.er1
1.68 + cat conftest.err >&5
1.69 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.70 + (exit $ac_status); } && {
1.71 + test -z "$ac_c_werror_flag" ||
1.72 + test ! -s conftest.err
1.73 + } && test -s conftest$ac_exeext &&
1.74 + $as_test_x conftest$ac_exeext; then
1.75 + ac_cv_func_glDrawBuffer=yes
1.76 +else
1.77 + echo "$as_me: failed program was:" >&5
1.78 +sed 's/^/| /' conftest.$ac_ext >&5
1.79 +
1.80 + ac_cv_func_glDrawBuffer=no
1.81 +fi
1.82 +
1.83 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.84 + conftest$ac_exeext conftest.$ac_ext
1.85 +fi
1.86 +{ echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&5
1.87 +echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }
1.88 +if test $ac_cv_func_glDrawBuffer = yes; then
1.89 +
1.90 +cat >>confdefs.h <<\_ACEOF
1.91 +#define HAVE_OPENGL_DRAW_BUFFER 1
1.92 +_ACEOF
1.93 +
1.94 +fi
1.95 +
1.96 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
1.97 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
1.98 if test "${ac_cv_func_glTexEnvi+set}" = set; then
1.99 @@ -12464,7 +12553,6 @@
1.100
1.101
1.102
1.103 -
1.104 if test "x$enable_translator" != "xno"; then
1.105 case $host_cpu in
1.106 i386|i486|i586|i686|x86_64)
.