configure
changeset 9165 9cd9e1491227
parent 9127 a8c38ed1a674
child 9252 a11e8f6d82d1
equal deleted inserted replaced
9164:494876610c49 9165:9cd9e1491227
   830 enable_video_x11_xinput
   830 enable_video_x11_xinput
   831 enable_video_x11_xrandr
   831 enable_video_x11_xrandr
   832 enable_video_x11_scrnsaver
   832 enable_video_x11_scrnsaver
   833 enable_video_x11_xshape
   833 enable_video_x11_xshape
   834 enable_video_x11_vm
   834 enable_video_x11_vm
   835 enable_video_mx6
   835 enable_video_vivante
   836 enable_video_cocoa
   836 enable_video_cocoa
   837 enable_video_directfb
   837 enable_video_directfb
   838 enable_directfb_shared
   838 enable_directfb_shared
   839 enable_fusionsound
   839 enable_fusionsound
   840 enable_fusionsound_shared
   840 enable_fusionsound_shared
   841 enable_video_dummy
   841 enable_video_dummy
   842 enable_video_opengl
   842 enable_video_opengl
   843 enable_video_opengles
   843 enable_video_opengles
       
   844 enable_video_opengles1
       
   845 enable_video_opengles2
   844 enable_libudev
   846 enable_libudev
   845 enable_dbus
   847 enable_dbus
   846 enable_ibus
   848 enable_ibus
   847 enable_input_tslib
   849 enable_input_tslib
   848 enable_pthreads
   850 enable_pthreads
  1560   --enable-video-x11-scrnsaver
  1562   --enable-video-x11-scrnsaver
  1561                           enable X11 screensaver extension [[default=yes]]
  1563                           enable X11 screensaver extension [[default=yes]]
  1562   --enable-video-x11-xshape
  1564   --enable-video-x11-xshape
  1563                           enable X11 XShape support [[default=yes]]
  1565                           enable X11 XShape support [[default=yes]]
  1564   --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
  1566   --enable-video-x11-vm   use X11 VM extension for fullscreen [[default=yes]]
  1565   --enable-video-mx6      use Freescale i.MX6 video driver [[default=no]]
  1567   --enable-video-vivante  use Vivante EGL video driver [[default=yes]]
  1566   --enable-video-cocoa    use Cocoa video driver [[default=yes]]
  1568   --enable-video-cocoa    use Cocoa video driver [[default=yes]]
  1567   --enable-video-directfb use DirectFB video driver [[default=no]]
  1569   --enable-video-directfb use DirectFB video driver [[default=no]]
  1568   --enable-directfb-shared
  1570   --enable-directfb-shared
  1569                           dynamically load directfb support [[default=yes]]
  1571                           dynamically load directfb support [[default=yes]]
  1570   --enable-fusionsound    use FusionSound audio driver [[default=no]]
  1572   --enable-fusionsound    use FusionSound audio driver [[default=no]]
  1572                           dynamically load fusionsound audio support
  1574                           dynamically load fusionsound audio support
  1573                           [[default=yes]]
  1575                           [[default=yes]]
  1574   --enable-video-dummy    use dummy video driver [[default=yes]]
  1576   --enable-video-dummy    use dummy video driver [[default=yes]]
  1575   --enable-video-opengl   include OpenGL support [[default=yes]]
  1577   --enable-video-opengl   include OpenGL support [[default=yes]]
  1576   --enable-video-opengles include OpenGL ES support [[default=yes]]
  1578   --enable-video-opengles include OpenGL ES support [[default=yes]]
       
  1579   --enable-video-opengles1
       
  1580                           include OpenGL ES 1.1 support [[default=yes]]
       
  1581   --enable-video-opengles2
       
  1582                           include OpenGL ES 2.0 support [[default=yes]]
  1577   --enable-libudev        enable libudev support [[default=yes]]
  1583   --enable-libudev        enable libudev support [[default=yes]]
  1578   --enable-dbus           enable D-Bus support [[default=yes]]
  1584   --enable-dbus           enable D-Bus support [[default=yes]]
  1579   --enable-ibus           enable IBus support [[default=yes]]
  1585   --enable-ibus           enable IBus support [[default=yes]]
  1580   --enable-input-tslib    use the Touchscreen library for input
  1586   --enable-input-tslib    use the Touchscreen library for input
  1581                           [[default=yes]]
  1587                           [[default=yes]]
 20591             fi
 20597             fi
 20592         fi
 20598         fi
 20593     fi
 20599     fi
 20594 }
 20600 }
 20595 
 20601 
 20596 CheckMX6Video()
 20602 CheckVivanteVideo()
 20597 {
 20603 {
 20598     # Check whether --enable-video-mx6 was given.
 20604     # Check whether --enable-video-vivante was given.
 20599 if test "${enable_video_mx6+set}" = set; then :
 20605 if test "${enable_video_vivante+set}" = set; then :
 20600   enableval=$enable_video_mx6;
 20606   enableval=$enable_video_vivante;
 20601 else
 20607 else
 20602   enable_video_mx6=no
 20608   enable_video_vivante=yes
 20603 fi
 20609 fi
 20604 
 20610 
 20605     if test x$enable_video = xyes -a x$enable_video_mx6 = xyes; then
 20611     if test x$enable_video = xyes -a x$enable_video_vivante = xyes; then
 20606         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante GPU SDK" >&5
 20612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante VDK API" >&5
 20607 $as_echo_n "checking for Vivante GPU SDK... " >&6; }
 20613 $as_echo_n "checking for Vivante VDK API... " >&6; }
 20608         have_viv_sdk=no
 20614         have_vivante_vdk=no
 20609         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 20615         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 20610 /* end confdefs.h.  */
 20616 /* end confdefs.h.  */
 20611 
 20617 
       
 20618           #define LINUX
 20612           #define EGL_API_FB
 20619           #define EGL_API_FB
 20613           #include <EGL/eglvivante.h>
 20620           #include <gc_vdk.h>
 20614 
 20621 
 20615 int
 20622 int
 20616 main ()
 20623 main ()
 20617 {
 20624 {
 20618 
 20625 
 20621   return 0;
 20628   return 0;
 20622 }
 20629 }
 20623 _ACEOF
 20630 _ACEOF
 20624 if ac_fn_c_try_compile "$LINENO"; then :
 20631 if ac_fn_c_try_compile "$LINENO"; then :
 20625 
 20632 
 20626         have_viv_sdk=yes
 20633         have_vivante_vdk=yes
 20627 
 20634 
 20628 fi
 20635 fi
 20629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 20636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 20630         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_viv_sdk" >&5
 20637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_vdk" >&5
 20631 $as_echo "$have_viv_sdk" >&6; }
 20638 $as_echo "$have_vivante_vdk" >&6; }
 20632         if test x$have_viv_sdk = xyes; then
 20639 
 20633 
 20640         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Vivante FB API" >&5
 20634 $as_echo "#define SDL_VIDEO_DRIVER_MX6 1" >>confdefs.h
 20641 $as_echo_n "checking for Vivante FB API... " >&6; }
 20635 
 20642         have_vivante_egl=no
 20636             SOURCES="$SOURCES $srcdir/src/video/mx6/*.c"
 20643         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 20637             SUMMARY_video="${SUMMARY_video} mx6"
 20644 /* end confdefs.h.  */
       
 20645 
       
 20646           #define LINUX
       
 20647           #define EGL_API_FB
       
 20648           #include <EGL/eglvivante.h>
       
 20649 
       
 20650 int
       
 20651 main ()
       
 20652 {
       
 20653 
       
 20654 
       
 20655   ;
       
 20656   return 0;
       
 20657 }
       
 20658 _ACEOF
       
 20659 if ac_fn_c_try_compile "$LINENO"; then :
       
 20660 
       
 20661         have_vivante_egl=yes
       
 20662 
       
 20663 fi
       
 20664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 20665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_vivante_egl" >&5
       
 20666 $as_echo "$have_vivante_egl" >&6; }
       
 20667 
       
 20668         if test x$have_vivante_vdk = xyes -o x$have_vivante_egl = xyes; then
       
 20669 
       
 20670 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE 1" >>confdefs.h
       
 20671 
       
 20672             EXTRA_CFLAGS="$EXTRA_CFLAGS -DLINUX -DEGL_API_FB"
       
 20673             if test x$have_vivante_vdk = xyes; then
       
 20674 
       
 20675 $as_echo "#define SDL_VIDEO_DRIVER_VIVANTE_VDK 1" >>confdefs.h
       
 20676 
       
 20677                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lVDK"
       
 20678             fi
       
 20679             SOURCES="$SOURCES $srcdir/src/video/vivante/*.c"
       
 20680             SUMMARY_video="${SUMMARY_video} vivante"
 20638             have_video=yes
 20681             have_video=yes
 20639         fi
 20682         fi
 20640     fi
 20683     fi
 20641 }
 20684 }
 20642 
 20685 
 21081   enableval=$enable_video_opengles;
 21124   enableval=$enable_video_opengles;
 21082 else
 21125 else
 21083   enable_video_opengles=yes
 21126   enable_video_opengles=yes
 21084 fi
 21127 fi
 21085 
 21128 
       
 21129 # Check whether --enable-video-opengles1 was given.
       
 21130 if test "${enable_video_opengles1+set}" = set; then :
       
 21131   enableval=$enable_video_opengles1;
       
 21132 else
       
 21133   enable_video_opengles1=yes
       
 21134 fi
       
 21135 
       
 21136 # Check whether --enable-video-opengles2 was given.
       
 21137 if test "${enable_video_opengles2+set}" = set; then :
       
 21138   enableval=$enable_video_opengles2;
       
 21139 else
       
 21140   enable_video_opengles2=yes
       
 21141 fi
       
 21142 
 21086 
 21143 
 21087 CheckOpenGLESX11()
 21144 CheckOpenGLESX11()
 21088 {
 21145 {
 21089     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
 21146     if test x$enable_video = xyes -a x$enable_video_opengles = xyes; then
 21090         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
 21147         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGL support" >&5
 21091 $as_echo_n "checking for EGL support... " >&6; }
 21148 $as_echo_n "checking for EGL support... " >&6; }
 21092         video_opengl_egl=no
 21149         video_opengl_egl=no
 21093         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21150         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21094 /* end confdefs.h.  */
 21151 /* end confdefs.h.  */
 21095 
 21152 
 21096          #define EGL_API_FB
 21153           #define LINUX
 21097          #include <EGL/egl.h>
 21154           #define EGL_API_FB
 21098          #include <EGL/eglext.h>
 21155           #include <EGL/egl.h>
       
 21156           #include <EGL/eglext.h>
 21099 
 21157 
 21100 int
 21158 int
 21101 main ()
 21159 main ()
 21102 {
 21160 {
 21103 
 21161 
 21118 
 21176 
 21119 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
 21177 $as_echo "#define SDL_VIDEO_OPENGL_EGL 1" >>confdefs.h
 21120 
 21178 
 21121         fi
 21179         fi
 21122 
 21180 
 21123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
 21181         if test x$enable_video_opengles1 = xyes; then
       
 21182             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v1 headers" >&5
 21124 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
 21183 $as_echo_n "checking for OpenGL ES v1 headers... " >&6; }
 21125         video_opengles_v1=no
 21184             video_opengles_v1=no
 21126         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21185             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21127 /* end confdefs.h.  */
 21186 /* end confdefs.h.  */
 21128 
 21187 
 21129          #include <GLES/gl.h>
 21188              #include <GLES/gl.h>
 21130          #include <GLES/glext.h>
 21189              #include <GLES/glext.h>
 21131 
 21190 
 21132 int
 21191 int
 21133 main ()
 21192 main ()
 21134 {
 21193 {
 21135 
 21194 
 21138   return 0;
 21197   return 0;
 21139 }
 21198 }
 21140 _ACEOF
 21199 _ACEOF
 21141 if ac_fn_c_try_compile "$LINENO"; then :
 21200 if ac_fn_c_try_compile "$LINENO"; then :
 21142 
 21201 
 21143         video_opengles_v1=yes
 21202             video_opengles_v1=yes
 21144 
 21203 
 21145 fi
 21204 fi
 21146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 21205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 21147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
 21206             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v1" >&5
 21148 $as_echo "$video_opengles_v1" >&6; }
 21207 $as_echo "$video_opengles_v1" >&6; }
 21149         if test x$video_opengles_v1 = xyes; then
 21208             if test x$video_opengles_v1 = xyes; then
 21150 
 21209 
 21151 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
 21210 $as_echo "#define SDL_VIDEO_OPENGL_ES 1" >>confdefs.h
 21152 
 21211 
 21153 
 21212 
 21154 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
 21213 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES 1" >>confdefs.h
 21155 
 21214 
 21156             SUMMARY_video="${SUMMARY_video} opengl_es1"
 21215                 SUMMARY_video="${SUMMARY_video} opengl_es1"
       
 21216             fi
 21157         fi
 21217         fi
 21158 
 21218 
 21159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
 21219         if test x$enable_video_opengles2 = xyes; then
       
 21220             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL ES v2 headers" >&5
 21160 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
 21221 $as_echo_n "checking for OpenGL ES v2 headers... " >&6; }
 21161         video_opengles_v2=no
 21222             video_opengles_v2=no
 21162         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21223             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 21163 /* end confdefs.h.  */
 21224 /* end confdefs.h.  */
 21164 
 21225 
 21165          #include <GLES2/gl2.h>
 21226              #include <GLES2/gl2.h>
 21166          #include <GLES2/gl2ext.h>
 21227              #include <GLES2/gl2ext.h>
 21167 
 21228 
 21168 int
 21229 int
 21169 main ()
 21230 main ()
 21170 {
 21231 {
 21171 
 21232 
 21174   return 0;
 21235   return 0;
 21175 }
 21236 }
 21176 _ACEOF
 21237 _ACEOF
 21177 if ac_fn_c_try_compile "$LINENO"; then :
 21238 if ac_fn_c_try_compile "$LINENO"; then :
 21178 
 21239 
 21179         video_opengles_v2=yes
 21240             video_opengles_v2=yes
 21180 
 21241 
 21181 fi
 21242 fi
 21182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 21243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 21183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
 21244             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_opengles_v2" >&5
 21184 $as_echo "$video_opengles_v2" >&6; }
 21245 $as_echo "$video_opengles_v2" >&6; }
 21185         if test x$video_opengles_v2 = xyes; then
 21246             if test x$video_opengles_v2 = xyes; then
 21186 
 21247 
 21187 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
 21248 $as_echo "#define SDL_VIDEO_OPENGL_ES2 1" >>confdefs.h
 21188 
 21249 
 21189 
 21250 
 21190 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
 21251 $as_echo "#define SDL_VIDEO_RENDER_OGL_ES2 1" >>confdefs.h
 21191 
 21252 
 21192             SUMMARY_video="${SUMMARY_video} opengl_es2"
 21253                 SUMMARY_video="${SUMMARY_video} opengl_es2"
       
 21254             fi
 21193         fi
 21255         fi
 21194     fi
 21256     fi
 21195 }
 21257 }
 21196 
 21258 
 21197 CheckWINDOWSGL()
 21259 CheckWINDOWSGL()
 21655 else
 21717 else
 21656   enable_pthread_sem=yes
 21718   enable_pthread_sem=yes
 21657 fi
 21719 fi
 21658 
 21720 
 21659     case "$host" in
 21721     case "$host" in
 21660 	 *-*-androideabi*)
 21722          *-*-androideabi*)
 21661             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
 21723             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
 21662             pthread_lib=""
 21724             pthread_lib=""
 21663 	    ;;
 21725             ;;
 21664         *-*-linux*|*-*-uclinux*)
 21726         *-*-linux*|*-*-uclinux*)
 21665             pthread_cflags="-D_REENTRANT"
 21727             pthread_cflags="-D_REENTRANT"
 21666             pthread_lib="-lpthread"
 21728             pthread_lib="-lpthread"
 21667             ;;
 21729             ;;
 21668         *-*-bsdi*)
 21730         *-*-bsdi*)
 22866         CheckUSBHID
 22928         CheckUSBHID
 22867         CheckPTHREAD
 22929         CheckPTHREAD
 22868         CheckClockGettime
 22930         CheckClockGettime
 22869         CheckLinuxVersion
 22931         CheckLinuxVersion
 22870         CheckRPATH
 22932         CheckRPATH
 22871         CheckMX6Video
 22933         CheckVivanteVideo
 22872         # Set up files for the audio library
 22934         # Set up files for the audio library
 22873         if test x$enable_audio = xyes; then
 22935         if test x$enable_audio = xyes; then
 22874           case $ARCH in
 22936           case $ARCH in
 22875             sysv5|solaris|hpux)
 22937             sysv5|solaris|hpux)
 22876 
 22938