filename | configure |
changeset | 1228:8168aa94e6d7 |
prev | 1226:227ceb186ba7 |
next | 1235:8da2f3dad9c0 |
author | nkeynes |
date | Thu Feb 23 19:43:24 2012 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Add missing float uniform type Fix previous sl cleanup being called after new sl setup is done |
file | annotate | diff | log | raw |
1.1 --- a/configure Thu Feb 23 08:49:32 2012 +10001.2 +++ b/configure Thu Feb 23 19:43:24 2012 +10001.3 @@ -12372,6 +12372,95 @@1.5 fi1.7 +{ echo "$as_me:$LINENO: checking for glDrawBuffer" >&51.8 +echo $ECHO_N "checking for glDrawBuffer... $ECHO_C" >&6; }1.9 +if test "${ac_cv_func_glDrawBuffer+set}" = set; then1.10 + echo $ECHO_N "(cached) $ECHO_C" >&61.11 +else1.12 + cat >conftest.$ac_ext <<_ACEOF1.13 +/* confdefs.h. */1.14 +_ACEOF1.15 +cat confdefs.h >>conftest.$ac_ext1.16 +cat >>conftest.$ac_ext <<_ACEOF1.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_glDrawBuffer1.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, since1.25 + <limits.h> exists even on freestanding compilers. */1.26 +1.27 +#ifdef __STDC__1.28 +# include <limits.h>1.29 +#else1.30 +# include <assert.h>1.31 +#endif1.32 +1.33 +#undef glDrawBuffer1.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 GCC1.37 + builtin and then its argument prototype would still apply. */1.38 +#ifdef __cplusplus1.39 +extern "C"1.40 +#endif1.41 +char glDrawBuffer ();1.42 +/* The GNU C library defines this for functions which it implements1.43 + to always fail with ENOSYS. Some functions are actually named1.44 + something starting with __ and the normal name is an alias. */1.45 +#if defined __stub_glDrawBuffer || defined __stub___glDrawBuffer1.46 +choke me1.47 +#endif1.48 +1.49 +int1.50 +main ()1.51 +{1.52 +return glDrawBuffer ();1.53 + ;1.54 + return 0;1.55 +}1.56 +_ACEOF1.57 +rm -f conftest.$ac_objext conftest$ac_exeext1.58 +if { (ac_try="$ac_link"1.59 +case "(($ac_try" in1.60 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.61 + *) ac_try_echo=$ac_try;;1.62 +esac1.63 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&51.64 + (eval "$ac_link") 2>conftest.er11.65 + ac_status=$?1.66 + grep -v '^ *+' conftest.er1 >conftest.err1.67 + rm -f conftest.er11.68 + cat conftest.err >&51.69 + echo "$as_me:$LINENO: \$? = $ac_status" >&51.70 + (exit $ac_status); } && {1.71 + test -z "$ac_c_werror_flag" ||1.72 + test ! -s conftest.err1.73 + } && test -s conftest$ac_exeext &&1.74 + $as_test_x conftest$ac_exeext; then1.75 + ac_cv_func_glDrawBuffer=yes1.76 +else1.77 + echo "$as_me: failed program was:" >&51.78 +sed 's/^/| /' conftest.$ac_ext >&51.79 +1.80 + ac_cv_func_glDrawBuffer=no1.81 +fi1.82 +1.83 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \1.84 + conftest$ac_exeext conftest.$ac_ext1.85 +fi1.86 +{ echo "$as_me:$LINENO: result: $ac_cv_func_glDrawBuffer" >&51.87 +echo "${ECHO_T}$ac_cv_func_glDrawBuffer" >&6; }1.88 +if test $ac_cv_func_glDrawBuffer = yes; then1.89 +1.90 +cat >>confdefs.h <<\_ACEOF1.91 +#define HAVE_OPENGL_DRAW_BUFFER 11.92 +_ACEOF1.93 +1.94 +fi1.95 +1.96 { echo "$as_me:$LINENO: checking for glTexEnvi" >&51.97 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }1.98 if test "${ac_cv_func_glTexEnvi+set}" = set; then1.99 @@ -12464,7 +12553,6 @@1.103 -1.104 if test "x$enable_translator" != "xno"; then1.105 case $host_cpu in1.106 i386|i486|i586|i686|x86_64)
.