comparison 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
comparison
equal deleted inserted replaced
278:dcd9f7b50a1c 279:04351f59b051
645 fi 645 fi
646 fi 646 fi
647 fi 647 fi
648 fi 648 fi
649 } 649 }
650
650 CheckPHOTON() 651 CheckPHOTON()
651 { 652 {
652 AC_ARG_ENABLE(video-photon, 653 AC_ARG_ENABLE(video-photon,
653 [ --enable-video-photon use QNX Photon video driver [default=yes]], 654 [ --enable-video-photon use QNX Photon video driver [default=yes]],
654 , enable_video_photon=yes) 655 , enable_video_photon=yes)
669 if test x$video_photon = xyes; then 670 if test x$video_photon = xyes; then
670 CFLAGS="$CFLAGS -DENABLE_PHOTON" 671 CFLAGS="$CFLAGS -DENABLE_PHOTON"
671 SYSTEM_LIBS="$SYSTEM_LIBS -lph" 672 SYSTEM_LIBS="$SYSTEM_LIBS -lph"
672 VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon" 673 VIDEO_SUBDIRS="$VIDEO_SUBDIRS photon"
673 VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la" 674 VIDEO_DRIVERS="$VIDEO_DRIVERS photon/libvideo_photon.la"
675 CheckOpenGLQNX
674 fi 676 fi
675 fi 677 fi
676 } 678 }
677 679
678 dnl Find the X11 DGA 2.0 include and library directories 680 dnl Find the X11 DGA 2.0 include and library directories
941 ]) 943 ])
942 AC_MSG_RESULT($video_opengl) 944 AC_MSG_RESULT($video_opengl)
943 if test x$video_opengl = xyes; then 945 if test x$video_opengl = xyes; then
944 CFLAGS="$CFLAGS -DHAVE_OPENGL" 946 CFLAGS="$CFLAGS -DHAVE_OPENGL"
945 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl") 947 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl")
948 fi
949 fi
950 }
951
952 dnl Find QNX RtP OpenGL
953 CheckOpenGLQNX()
954 {
955 if test x$enable_video = xyes -a x$enable_video_opengl = xyes; then
956 AC_MSG_CHECKING(for OpenGL (Photon) support)
957 video_opengl=no
958 AC_TRY_COMPILE([
959 #include <GL/gl.h>
960 ],[
961 ],[
962 video_opengl=yes
963 ])
964 AC_MSG_RESULT($video_opengl)
965 if test x$video_opengl = xyes; then
966 CFLAGS="$CFLAGS -DHAVE_OPENGL"
967 SYSTEM_LIBS="$SYSTEM_LIBS -lGL"
946 fi 968 fi
947 fi 969 fi
948 } 970 }
949 971
950 dnl Check for BeOS OpenGL 972 dnl Check for BeOS OpenGL
2160 AM_CONDITIONAL(TARGET_AIX, test $ARCH = aix) 2182 AM_CONDITIONAL(TARGET_AIX, test $ARCH = aix)
2161 AM_CONDITIONAL(TARGET_WIN32, test $ARCH = win32) 2183 AM_CONDITIONAL(TARGET_WIN32, test $ARCH = win32)
2162 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos) 2184 AM_CONDITIONAL(TARGET_BEOS, test $ARCH = beos)
2163 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos) 2185 AM_CONDITIONAL(TARGET_MACOS, test $ARCH = macos)
2164 AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx) 2186 AM_CONDITIONAL(TARGET_MACOSX, test $ARCH = macosx)
2187 AM_CONDITIONAL(TARGET_QNX, test $ARCH = qnx)
2165 2188
2166 # Set conditional variables for shared and static library selection. 2189 # Set conditional variables for shared and static library selection.
2167 # These are not used in any Makefile.am but in sdl-config.in. 2190 # These are not used in any Makefile.am but in sdl-config.in.
2168 AM_CONDITIONAL([ENABLE_SHARED], [test "$enable_shared" = yes]) 2191 AM_CONDITIONAL([ENABLE_SHARED], [test "$enable_shared" = yes])
2169 AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = yes]) 2192 AM_CONDITIONAL([ENABLE_STATIC], [test "$enable_static" = yes])