$OpenBSD$
--- configure.orig Fri Apr 25 20:48:14 2008
+++ configure Tue Jun 9 18:00:35 2009
@@ -2147,38 +2147,13 @@ elif test `echo $target_os | sed "s/\(darwin\).*/\1/"`
then
TARGET_OS=darwin
- CFLAGS="$CFLAGS -F$with_opengl_framework"
- LDFLAGS="$LDFLAGS -framework IOKit -framework Foundation -framework OpenGL"
- # fix this darn SDL stuff....
- if test -d /Library/Frameworks/SDL.framework
- then
- sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL.framework/Headers"
- sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL"
- else
- # should test for different framework locations, like /System/Library/Frameworks
- # and ~/Library/Frameworks..... later....
- { { echo "$as_me:$LINENO: error: Could not find SDL Framework at /Library/Frameworks." >&5
-echo "$as_me: error: Could not find SDL Framework at /Library/Frameworks." >&2;}
- { (exit 1); exit 1; }; }
- fi
- if test -d /Library/Frameworks/SDL_mixer.framework
- then
- sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL_mixer.framework/Headers"
- sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL_mixer"
- else
- { { echo "$as_me:$LINENO: error: Could not find SDL_mixer Framework at /Library/Frameworks." >&5
-echo "$as_me: error: Could not find SDL_mixer Framework at /Library/Frameworks." >&2;}
- { (exit 1); exit 1; }; }
- fi
- if test -d /Library/Frameworks/SDL_ttf.framework
- then
- sdl_mac_cflags="$sdl_mac_cflags -I/Library/Frameworks/SDL_ttf.framework/Headers"
- sdl_mac_ldflags="$sdl_mac_ldflags -framework SDL_ttf"
- else
- { { echo "$as_me:$LINENO: error: Could not find SDL_ttf Framework at /Library/Frameworks." >&5
-echo "$as_me: error: Could not find SDL_ttf Framework at /Library/Frameworks." >&2;}
- { (exit 1); exit 1; }; }
- fi
+elif test `echo $target_os | sed "s/\(openbsd\).*/\1/"` = "openbsd"
+then
+ TARGET_OS=openbsd
+
+ CFLAGS="$CFLAGS"
+ LDFLAGS="$LDFLAGS"
+
### most mac users will have their additional libs and headers under /opt/local,
### check for that, and if present, add to CFLAGS/LDFLAGS (really convenient!)
if test -d /opt/local