$OpenBSD$ --- configure.ac.orig Sun Mar 28 06:52:28 2010 +++ configure.ac Tue Oct 18 19:40:00 2011 @@ -57,12 +57,12 @@ if test x$disable_sdl = xno ; then ) fi -if test x$have_sdl_lib = xyes ; then - AC_DEFINE(C_USE_SDL) +#if test x$have_sdl_lib = xyes ; then + #AC_DEFINE(C_USE_SDL) # Don't need SDLmain since we're a library - LIBS="$LIBS ${SDL_LIBS/-lSDLmain/}" - CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I/usr/include" -fi + #LIBS="$LIBS ${SDL_LIBS/-lSDLmain/}" + #CPPFLAGS="$CPPFLAGS $SDL_CFLAGS -I/usr/include" +#fi dnl The target cpu checks AH_TEMPLATE(HAVE_MMX,[Define if you have mmx support]) @@ -111,6 +111,11 @@ case "$host" in fi ;; *netbsd*) + ;; + *openbsd*) + osflag="__linux__" + CXXFLAGS="$CXXFLAGS -D__unix__ -D$osflag -I\$(top_srcdir)/platform/linux $X_CFLAGS" + LIBS="$LIBS -lGL -lGLU" ;; *qnx*) ;;