diff -Naur scourge/configure.in scourge-haiku/configure.in
|
old
|
new
|
|
| 310 | 310 | AC_MSG_ERROR([Cannot find GL library]) |
| 311 | 311 | fi |
| 312 | 312 | |
| 313 | | dnl Check for glXGetProcAddressARB |
| 314 | | AC_CHECK_FUNCS( glXGetProcAddressARB, has_glx_get_proc=yes, |
| | 313 | dnl Check for glutGetProcAddress |
| | 314 | AC_CHECK_FUNCS( glutGetProcAddress, has_glx_get_proc=yes, |
| 315 | 315 | has_glx_get_proc=no ) |
| 316 | 316 | |
| 317 | 317 | LIBS="$saved_LIBS" |
| … |
… |
|
| 472 | 472 | |
| 473 | 473 | if test "x$has_glx_get_proc" = "xyes" ; then |
| 474 | 474 | |
| 475 | | dnl Check for glx.h |
| 476 | | AC_CHECK_HEADERS([GL/glx.h], have_glx_h=yes, have_glx_h=no ) |
| | 475 | dnl Check for glut.h |
| | 476 | AC_CHECK_HEADERS([GL/glut.h], have_glx_h=yes, have_glx_h=no ) |
| 477 | 477 | |
| 478 | 478 | if test "x$have_glx_h" = "xno" ; then |
| 479 | | AC_MSG_ERROR([Cannot find GL/glx.h]) |
| | 479 | AC_MSG_ERROR([Cannot find GL/glut.h]) |
| 480 | 480 | fi |
| 481 | 481 | |
| 482 | | dnl Check that glXGetProcAddressARB is defined in glx.h |
| 483 | | dnl AC_MSG_CHECKING([whether glx.h defines glXGetProcAddressARB]); |
| 484 | | dnl AC_TRY_COMPILE( [#include <GL/glx.h>], [ char *foo = (char*) glXGetProcAddressARB; ], |
| | 482 | dnl Check that glutGetProcAddress is defined in glut.h |
| | 483 | dnl AC_MSG_CHECKING([whether glut.h defines glutGetProcAddress]); |
| | 484 | dnl AC_TRY_COMPILE( [#include <GL/glut.h>], [ char *foo = (char*) glutGetProcAddress; ], |
| 485 | 485 | dnl glx_h_up_to_date=yes, glx_h_up_to_date=no ) |
| 486 | 486 | dnl AC_MSG_RESULT([$glx_h_up_to_date]) |
| 487 | 487 | |
| 488 | 488 | dnl if test "x$glx_h_up_to_date" = "xno" ; then |
| 489 | | dnl AC_MSG_ERROR([Your copy of glx.h is out of date. You can get a more recent copy from the latest Mesa distribution (http://mesa3d.sourceforge.net).]) |
| | 489 | dnl AC_MSG_ERROR([Your copy of glut.h is out of date. You can get a more recent copy from the latest Mesa distribution (http://mesa3d.sourceforge.net).]) |
| 490 | 490 | dnl fi |
| 491 | 491 | fi |
| 492 | 492 | |
| 493 | 493 | dnl Check for glext.h |
| 494 | 494 | AC_CHECK_HEADERS( "GL/glext.h", have_glext_h=yes, have_glext_h=no ) |
| 495 | 495 | |
| 496 | | if test "x$have_glext_h" = "xno" ; then |
| 497 | | AC_MSG_ERROR([ |
| 498 | | ***************************************************************** |
| 499 | | You are missing the file glext.h. |
| 500 | | You can get a copy at |
| 501 | | http://oss.sgi.com/projects/ogl-sample/ABI/glext.h |
| 502 | | Place it in the directory /usr/include/GL. |
| 503 | | *****************************************************************]) |
| 504 | | fi |
| 505 | 496 | |
| 506 | 497 | dnl Check that glext.h version is recent enough |
| 507 | 498 | AC_MSG_CHECKING([whether glext.h is recent enough]); |
diff -Naur scourge/src/common/constants.h scourge-haiku/src/common/constants.h
|
old
|
new
|
|
| 167 | 167 | # if defined( WIN32 ) |
| 168 | 168 | # define DATA_DIR "./"DATA_DIR_NAME |
| 169 | 169 | # else |
| 170 | | # define DATA_DIR "/usr/local/share/scourge" |
| | 170 | # define DATA_DIR "/boot/apps/scourge" |
| 171 | 171 | # endif /* defined( WIN32 ) */ |
| 172 | 172 | #endif |
| 173 | 173 | |