freebsd-ports/games/torcs/files/patch-configure
2004-06-01 20:23:56 +00:00

45 lines
1.3 KiB
Text

--- configure.orig Tue Jun 1 22:10:38 2004
+++ configure Tue Jun 1 22:13:20 2004
@@ -2023,13 +2023,11 @@
fi
#CFLAGS="-ansi -Wall -Wstrict-prototypes -W"
-ADDCFLAGS="-Wall -Wstrict-prototypes"
+ADDCFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
enableval="$enable_debug"
ADDCFLAGS="$ADDCFLAGS -g -DDEBUG -DDEBUG_OUT"
-else
- ADDCFLAGS="$ADDCFLAGS -O3"
fi
@@ -3357,9 +3355,6 @@
cat > conftest.$ac_ext <<EOF
#line 3359 "configure"
#include "confdefs.h"
-#ifdef __cplusplus
-extern "C" void exit(int) throw ();
-#endif
#include <unistd.h>
#include <plib/ul.h>
@@ -3369,7 +3364,7 @@
int main() {
int major, minor, micro;
- if ( PLIB_VERSION != MIN_PLIB_VERSION ) {
+ if ( PLIB_VERSION < MIN_PLIB_VERSION ) {
return -1;
}
@@ -3385,7 +3380,7 @@
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -fr conftest*
- echo "$ac_t""PLIB 1.6.0 was not detected. TORCS can run only with PLIB 1.6.0, so verify that the PLIB 1.6.0 is really the version installed on your system." 1>&6
+ echo "$ac_t""PLIB 1.6.0 was not detected. TORCS can run only with PLIB > 1.6.0, so verify that the PLIB 1.6.0 is really the version installed on your system." 1>&6
fi
rm -fr conftest*
fi