diff configure.in @ 279:04351f59b051

Mike Gorchak added some QNX tweaks, including OpenGL support
author Sam Lantinga <slouken@libsdl.org>
date Thu, 14 Feb 2002 02:15:15 +0000
parents dcd9f7b50a1c
children c5010ab8ba35
line wrap: on
line diff
--- a/configure.in	Thu Feb 14 01:24:08 2002 +0000
+++ b/configure.in	Thu Feb 14 02:15:15 2002 +0000
@@ -647,6 +647,7 @@
         fi
     fi
 }
+
 CheckPHOTON()
 {
     AC_ARG_ENABLE(video-photon,
@@ -671,6 +672,7 @@
             SYSTEM_LIBS="$SYSTEM_LIBS -lph"
             VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon"
             VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la"
+            CheckOpenGLQNX
         fi
     fi
 }
@@ -947,6 +949,26 @@
     fi
 }
 
+dnl Find QNX RtP OpenGL
+CheckOpenGLQNX()
+{
+    if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
+        AC_MSG_CHECKING(for OpenGL (Photon) support)
+        video_opengl=no
+        AC_TRY_COMPILE([
+         #include <GL/gl.h>
+        ],[
+        ],[
+        video_opengl=yes
+        ])
+        AC_MSG_RESULT($video_opengl)
+        if test x$video_opengl = xyes; then
+            CFLAGS="$CFLAGS -DHAVE_OPENGL"
+            SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
+        fi
+    fi
+}
+
 dnl Check for BeOS OpenGL
 CheckBeGL()
 {
@@ -2162,6 +2184,7 @@
 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)
 AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx)
+AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx)
 
 # Set conditional variables for shared and static library selection.
 # These are not used in any Makefile.am but in sdl-config.in.