configure
changeset 11365 a9bd2625fa01
parent 11337 d9f24e95e8ba
child 11367 e8fc755a89e8
equal deleted inserted replaced
11364:ec27c4fd6880 11365:a9bd2625fa01
   743 htmldir
   743 htmldir
   744 infodir
   744 infodir
   745 docdir
   745 docdir
   746 oldincludedir
   746 oldincludedir
   747 includedir
   747 includedir
       
   748 runstatedir
   748 localstatedir
   749 localstatedir
   749 sharedstatedir
   750 sharedstatedir
   750 sysconfdir
   751 sysconfdir
   751 datadir
   752 datadir
   752 datarootdir
   753 datarootdir
   852 enable_video_dummy
   853 enable_video_dummy
   853 enable_video_opengl
   854 enable_video_opengl
   854 enable_video_opengles
   855 enable_video_opengles
   855 enable_video_opengles1
   856 enable_video_opengles1
   856 enable_video_opengles2
   857 enable_video_opengles2
       
   858 enable_video_vulkan
   857 enable_libudev
   859 enable_libudev
   858 enable_dbus
   860 enable_dbus
   859 enable_ime
   861 enable_ime
   860 enable_ibus
   862 enable_ibus
   861 enable_fcitx
   863 enable_fcitx
   918 datarootdir='${prefix}/share'
   920 datarootdir='${prefix}/share'
   919 datadir='${datarootdir}'
   921 datadir='${datarootdir}'
   920 sysconfdir='${prefix}/etc'
   922 sysconfdir='${prefix}/etc'
   921 sharedstatedir='${prefix}/com'
   923 sharedstatedir='${prefix}/com'
   922 localstatedir='${prefix}/var'
   924 localstatedir='${prefix}/var'
       
   925 runstatedir='${localstatedir}/run'
   923 includedir='${prefix}/include'
   926 includedir='${prefix}/include'
   924 oldincludedir='/usr/include'
   927 oldincludedir='/usr/include'
   925 docdir='${datarootdir}/doc/${PACKAGE}'
   928 docdir='${datarootdir}/doc/${PACKAGE}'
   926 infodir='${datarootdir}/info'
   929 infodir='${datarootdir}/info'
   927 htmldir='${docdir}'
   930 htmldir='${docdir}'
  1170 
  1173 
  1171   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1174   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1172   | -silent | --silent | --silen | --sile | --sil)
  1175   | -silent | --silent | --silen | --sile | --sil)
  1173     silent=yes ;;
  1176     silent=yes ;;
  1174 
  1177 
       
  1178   -runstatedir | --runstatedir | --runstatedi | --runstated \
       
  1179   | --runstate | --runstat | --runsta | --runst | --runs \
       
  1180   | --run | --ru | --r)
       
  1181     ac_prev=runstatedir ;;
       
  1182   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
       
  1183   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
       
  1184   | --run=* | --ru=* | --r=*)
       
  1185     runstatedir=$ac_optarg ;;
       
  1186 
  1175   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1187   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1176     ac_prev=sbindir ;;
  1188     ac_prev=sbindir ;;
  1177   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1189   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1178   | --sbi=* | --sb=*)
  1190   | --sbi=* | --sb=*)
  1179     sbindir=$ac_optarg ;;
  1191     sbindir=$ac_optarg ;;
  1307 
  1319 
  1308 # Check all directory arguments for consistency.
  1320 # Check all directory arguments for consistency.
  1309 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1321 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1310 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1322 		datadir sysconfdir sharedstatedir localstatedir includedir \
  1311 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1323 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1312 		libdir localedir mandir
  1324 		libdir localedir mandir runstatedir
  1313 do
  1325 do
  1314   eval ac_val=\$$ac_var
  1326   eval ac_val=\$$ac_var
  1315   # Remove trailing slashes.
  1327   # Remove trailing slashes.
  1316   case $ac_val in
  1328   case $ac_val in
  1317     */ )
  1329     */ )
  1460   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1472   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1461   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1473   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1462   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1474   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1463   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1475   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1464   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1476   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
       
  1477   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
  1465   --libdir=DIR            object code libraries [EPREFIX/lib]
  1478   --libdir=DIR            object code libraries [EPREFIX/lib]
  1466   --includedir=DIR        C header files [PREFIX/include]
  1479   --includedir=DIR        C header files [PREFIX/include]
  1467   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1480   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1468   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1481   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1469   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1482   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1601   --enable-video-opengles include OpenGL ES support [[default=yes]]
  1614   --enable-video-opengles include OpenGL ES support [[default=yes]]
  1602   --enable-video-opengles1
  1615   --enable-video-opengles1
  1603                           include OpenGL ES 1.1 support [[default=yes]]
  1616                           include OpenGL ES 1.1 support [[default=yes]]
  1604   --enable-video-opengles2
  1617   --enable-video-opengles2
  1605                           include OpenGL ES 2.0 support [[default=yes]]
  1618                           include OpenGL ES 2.0 support [[default=yes]]
       
  1619   --enable-video-vulkan   include Vulkan surface support [[default=yes]]
  1606   --enable-libudev        enable libudev support [[default=yes]]
  1620   --enable-libudev        enable libudev support [[default=yes]]
  1607   --enable-dbus           enable D-Bus support [[default=yes]]
  1621   --enable-dbus           enable D-Bus support [[default=yes]]
  1608   --enable-ime            enable IME support [[default=yes]]
  1622   --enable-ime            enable IME support [[default=yes]]
  1609   --enable-ibus           enable IBus support [[default=yes]]
  1623   --enable-ibus           enable IBus support [[default=yes]]
  1610   --enable-fcitx          enable fcitx support [[default=yes]]
  1624   --enable-fcitx          enable fcitx support [[default=yes]]
 21889             SUMMARY_video="${SUMMARY_video} opengl_es2"
 21903             SUMMARY_video="${SUMMARY_video} opengl_es2"
 21890         fi
 21904         fi
 21891     fi
 21905     fi
 21892 }
 21906 }
 21893 
 21907 
       
 21908 # Check whether --enable-video-vulkan was given.
       
 21909 if test "${enable_video_vulkan+set}" = set; then :
       
 21910   enableval=$enable_video_vulkan;
       
 21911 else
       
 21912   enable_video_vulkan=yes
       
 21913 fi
       
 21914 
       
 21915 
       
 21916 CheckVulkan()
       
 21917 {
       
 21918     have_vulkan_hdr=no
       
 21919     if test x$enable_video = xyes -a x$enable_video_vulkan = xyes; then
       
 21920         case "$host" in
       
 21921             *-*-androideabi*)
       
 21922                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 21923 /* end confdefs.h.  */
       
 21924 
       
 21925                   #if defined(__ANDROID__) && defined(__ARM_EABI__) && !defined(__ARM_ARCH_7A__)
       
 21926                   #error Vulkan doesn't work on this configuration
       
 21927                   #endif
       
 21928                   int main()
       
 21929                   {
       
 21930                      return 0;
       
 21931                   }
       
 21932 
       
 21933 int
       
 21934 main ()
       
 21935 {
       
 21936 
       
 21937                     enable_video_vulkan=no
       
 21938 
       
 21939   ;
       
 21940   return 0;
       
 21941 }
       
 21942 _ACEOF
       
 21943 if ac_fn_c_try_compile "$LINENO"; then :
       
 21944 
       
 21945 
       
 21946 fi
       
 21947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 21948                 ;;
       
 21949             *)
       
 21950                 ;;
       
 21951         esac
       
 21952         if test x$enable_video_vulkan = xno; then
       
 21953             # For reasons I am totally unable to see, I get an undefined macro error if
       
 21954             # I put this in the AC_TRY_COMPILE.
       
 21955             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, Vulkan does not work on this configuration." >&5
       
 21956 $as_echo "$as_me: WARNING: Sorry, Vulkan does not work on this configuration." >&2;}
       
 21957         fi
       
 21958         if test x$enable_video_vulkan = xyes; then
       
 21959             vsdk_include_dir="${VULKAN_SDK}/include"
       
 21960             vulkan_header="vulkan/vulkan.h"
       
 21961             save_CPPFLAGS="$CPPFLAGS"
       
 21962             CPPFLAGS="${save_CPPFLAGS} -I$vsdk_include_dir"
       
 21963             as_ac_Header=`$as_echo "ac_cv_header_$vulkan_header" | $as_tr_sh`
       
 21964 ac_fn_c_check_header_mongrel "$LINENO" "$vulkan_header" "$as_ac_Header" "$ac_includes_default"
       
 21965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
       
 21966   have_vulkan_hdr=yes
       
 21967 else
       
 21968   have_vulkan_hdr=no
       
 21969 fi
       
 21970 
       
 21971 
       
 21972             CPPFLAGS="$save_CPPFLAGS"
       
 21973         fi
       
 21974     fi
       
 21975     if test x$have_vulkan_hdr = xyes; then
       
 21976         # vulkan.h has been found in either $VULKAN_SDK/include or along the
       
 21977         # the standard include path. Unfortunately there seems no easy
       
 21978         # way to find out which, so...
       
 21979         if test -n "$VULKAN_SDK" -a -f "$vsdk_include_dir/$vulkan_header"; then
       
 21980             EXTRA_CFLAGS="$EXTRA_CFLAGS -I$vsdk_include_dir"
       
 21981         fi
       
 21982 
       
 21983 $as_echo "#define SDL_VIDEO_VULKAN_SURFACE 1" >>confdefs.h
       
 21984 
       
 21985         SUMMARY_video="${SUMMARY_video} vulkan"
       
 21986     fi
       
 21987 }
       
 21988 
 21894 CheckInputEvents()
 21989 CheckInputEvents()
 21895 {
 21990 {
 21896             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
 21991             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
 21897 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
 21992 $as_echo_n "checking for Linux 2.4 unified input interface... " >&6; }
 21898         use_input_events=no
 21993         use_input_events=no
 23635         CheckX11
 23730         CheckX11
 23636         CheckDirectFB
 23731         CheckDirectFB
 23637         CheckKMSDRM
 23732         CheckKMSDRM
 23638         CheckOpenGLX11
 23733         CheckOpenGLX11
 23639         CheckOpenGLESX11
 23734         CheckOpenGLESX11
       
 23735         CheckVulkan
 23640         CheckMir
 23736         CheckMir
 23641         CheckWayland
 23737         CheckWayland
 23642         CheckLibUDev
 23738         CheckLibUDev
 23643         CheckDBus
 23739         CheckDBus
 23644         CheckIME
 23740         CheckIME
 23804         CheckDiskAudio
 23900         CheckDiskAudio
 23805         CheckDummyAudio
 23901         CheckDummyAudio
 23806         CheckWINDOWS
 23902         CheckWINDOWS
 23807         CheckWINDOWSGL
 23903         CheckWINDOWSGL
 23808         CheckWINDOWSGLES
 23904         CheckWINDOWSGLES
       
 23905         CheckVulkan
 23809         CheckDIRECTX
 23906         CheckDIRECTX
 23810 
 23907 
 23811         # Set up the core platform files
 23908         # Set up the core platform files
 23812         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
 23909         SOURCES="$SOURCES $srcdir/src/core/windows/*.c"
 23813 
 23910 
 24090         CheckDummyVideo
 24187         CheckDummyVideo
 24091         CheckDiskAudio
 24188         CheckDiskAudio
 24092         CheckDummyAudio
 24189         CheckDummyAudio
 24093         CheckDLOPEN
 24190         CheckDLOPEN
 24094         CheckPTHREAD
 24191         CheckPTHREAD
       
 24192         CheckVulkan
 24095 
 24193 
 24096         # Set up files for the audio library
 24194         # Set up files for the audio library
 24097         if test x$enable_audio = xyes; then
 24195         if test x$enable_audio = xyes; then
 24098 
 24196 
 24099 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
 24197 $as_echo "#define SDL_AUDIO_DRIVER_COREAUDIO 1" >>confdefs.h
 24172         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
 24270         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Foundation"
 24173         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
 24271         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,GameController"
 24174         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
 24272         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,OpenGLES"
 24175         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
 24273         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
 24176         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
 24274         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,UIKit"
       
 24275         if test x$ac_cv_header_vulkan_vulkan_h = xyes; then
       
 24276             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
       
 24277         fi
 24177         ;;
 24278         ;;
 24178     *-*-darwin* )
 24279     *-*-darwin* )
 24179         # This could be either full "Mac OS X", or plain "Darwin" which is
 24280         # This could be either full "Mac OS X", or plain "Darwin" which is
 24180         # just the OS X kernel sans upper layers like Carbon and Cocoa.
 24281         # just the OS X kernel sans upper layers like Carbon and Cocoa.
 24181         # Next line is broken, and a few files below require Mac OS X (full)
 24282         # Next line is broken, and a few files below require Mac OS X (full)
 24193         CheckDLOPEN
 24294         CheckDLOPEN
 24194         CheckCOCOA
 24295         CheckCOCOA
 24195         CheckX11
 24296         CheckX11
 24196         CheckMacGL
 24297         CheckMacGL
 24197         CheckOpenGLX11
 24298         CheckOpenGLX11
       
 24299         CheckVulkan
 24198         CheckPTHREAD
 24300         CheckPTHREAD
 24199 
 24301 
 24200         # Set up files for the audio library
 24302         # Set up files for the audio library
 24201         if test x$enable_audio = xyes; then
 24303         if test x$enable_audio = xyes; then
 24202 
 24304 
 24258         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
 24360         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lobjc"
 24259         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
 24361         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,CoreVideo"
 24260         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
 24362         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Cocoa"
 24261         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
 24363         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,Carbon"
 24262         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
 24364         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,IOKit"
       
 24365         if test x$ac_cv_header_vulkan_vulkan_h = xyes; then
       
 24366             EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-framework,QuartzCore"
       
 24367         fi
 24263         ;;
 24368         ;;
 24264     *-nacl|*-pnacl)
 24369     *-nacl|*-pnacl)
 24265         ARCH=nacl
 24370         ARCH=nacl
 24266         CheckNativeClient
 24371         CheckNativeClient
 24267         CheckDummyAudio
 24372         CheckDummyAudio