Lines 1232-1241
Link Here
|
1232 |
XCloseDisplay(dpy); |
1232 |
XCloseDisplay(dpy); |
1233 |
} |
1233 |
} |
1234 |
EOF |
1234 |
EOF |
1235 |
[ -n "$INCX11" ] && I_INCX11=`prefix_I "$INCX11"` |
1235 |
test_compile "$LIBX11 $I_INCX11" Xlibs Xlibs |
1236 |
if test_compile "$LIBX11 $I_INCX11" Xlibs Xlibs; then |
|
|
1237 |
log_success "found" |
1238 |
fi |
1239 |
} |
1236 |
} |
1240 |
|
1237 |
|
1241 |
|
1238 |
|
Lines 1389-1409
Link Here
|
1389 |
#include <GL/glu.h> |
1386 |
#include <GL/glu.h> |
1390 |
extern "C" int main(void) |
1387 |
extern "C" int main(void) |
1391 |
{ |
1388 |
{ |
1392 |
Display *dpy; |
|
|
1393 |
int major, minor; |
1394 |
|
1395 |
dpy = XOpenDisplay(NULL); |
1396 |
if (dpy) |
1397 |
{ |
1398 |
Bool glx_version = glXQueryVersion(dpy, &major, &minor); |
1399 |
XCloseDisplay(dpy); |
1400 |
if (glx_version) |
1401 |
{ |
1402 |
printf("found version %u.%u, OK.\n", major, minor); |
1403 |
return 0; |
1404 |
} |
1405 |
} |
1406 |
printf("found (inactive), OK.\n"); |
1407 |
return 0; |
1389 |
return 0; |
1408 |
} |
1390 |
} |
1409 |
EOF |
1391 |
EOF |