configure
changeset 10496 6660aa9120d6
parent 10490 24472af11074
child 10565 15ba7a201f0a
equal deleted inserted replaced
10495:f732781d7ddc 10496:6660aa9120d6
   847 enable_video_opengles
   847 enable_video_opengles
   848 enable_video_opengles1
   848 enable_video_opengles1
   849 enable_video_opengles2
   849 enable_video_opengles2
   850 enable_libudev
   850 enable_libudev
   851 enable_dbus
   851 enable_dbus
       
   852 enable_ime
   852 enable_ibus
   853 enable_ibus
       
   854 enable_fcitx
   853 enable_input_tslib
   855 enable_input_tslib
   854 enable_pthreads
   856 enable_pthreads
   855 enable_pthread_sem
   857 enable_pthread_sem
   856 enable_directx
   858 enable_directx
   857 enable_sdl_dlopen
   859 enable_sdl_dlopen
  1585                           include OpenGL ES 1.1 support [[default=yes]]
  1587                           include OpenGL ES 1.1 support [[default=yes]]
  1586   --enable-video-opengles2
  1588   --enable-video-opengles2
  1587                           include OpenGL ES 2.0 support [[default=yes]]
  1589                           include OpenGL ES 2.0 support [[default=yes]]
  1588   --enable-libudev        enable libudev support [[default=yes]]
  1590   --enable-libudev        enable libudev support [[default=yes]]
  1589   --enable-dbus           enable D-Bus support [[default=yes]]
  1591   --enable-dbus           enable D-Bus support [[default=yes]]
       
  1592   --enable-ime            enable IME support [[default=yes]]
  1590   --enable-ibus           enable IBus support [[default=yes]]
  1593   --enable-ibus           enable IBus support [[default=yes]]
       
  1594   --enable-fcitx          enable fcitx support [[default=yes]]
  1591   --enable-input-tslib    use the Touchscreen library for input
  1595   --enable-input-tslib    use the Touchscreen library for input
  1592                           [[default=yes]]
  1596                           [[default=yes]]
  1593   --enable-pthreads       use POSIX threads for multi-threading
  1597   --enable-pthreads       use POSIX threads for multi-threading
  1594                           [[default=yes]]
  1598                           [[default=yes]]
  1595   --enable-pthread-sem    use pthread semaphores [[default=yes]]
  1599   --enable-pthread-sem    use pthread semaphores [[default=yes]]
 21648             fi
 21652             fi
 21649         fi
 21653         fi
 21650     fi
 21654     fi
 21651 }
 21655 }
 21652 
 21656 
       
 21657 CheckIME()
       
 21658 {
       
 21659     # Check whether --enable-ime was given.
       
 21660 if test "${enable_ime+set}" = set; then :
       
 21661   enableval=$enable_ime;
       
 21662 else
       
 21663   enable_ime=yes
       
 21664 fi
       
 21665 
       
 21666     if test x$enable_ime = xyes; then
       
 21667 
       
 21668 $as_echo "#define SDL_USE_IME 1" >>confdefs.h
       
 21669 
       
 21670             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ime.c"
       
 21671     fi
       
 21672 }
       
 21673 
 21653 CheckIBus()
 21674 CheckIBus()
 21654 {
 21675 {
 21655     # Check whether --enable-ibus was given.
 21676     # Check whether --enable-ibus was given.
 21656 if test "${enable_ibus+set}" = set; then :
 21677 if test "${enable_ibus+set}" = set; then :
 21657   enableval=$enable_ibus;
 21678   enableval=$enable_ibus;
 21721 fi
 21742 fi
 21722 
 21743 
 21723 
 21744 
 21724             CFLAGS="$save_CFLAGS"
 21745             CFLAGS="$save_CFLAGS"
 21725             if test x$have_ibus_ibus_h_hdr = xyes; then
 21746             if test x$have_ibus_ibus_h_hdr = xyes; then
 21726                 if test x$enable_dbus != xyes; then
 21747                 if test x$enable_ime != xyes; then
       
 21748                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
       
 21749 $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
       
 21750                     have_ibus_ibus_h_hdr=no
       
 21751                 elif test x$enable_dbus != xyes; then
 21727                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
 21752                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
 21728 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
 21753 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
 21729                     have_ibus_ibus_h_hdr=no
 21754                     have_ibus_ibus_h_hdr=no
 21730                 elif test x$have_inotify_inotify_h_hdr != xyes; then
 21755                 elif test x$have_inotify_inotify_h_hdr != xyes; then
 21731                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
 21756                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
 21735 
 21760 
 21736 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
 21761 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
 21737 
 21762 
 21738                     EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
 21763                     EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
 21739                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
 21764                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
       
 21765                fi
       
 21766             fi
       
 21767         fi
       
 21768     fi
       
 21769 }
       
 21770 
       
 21771 CheckFcitx()
       
 21772 {
       
 21773     # Check whether --enable-fcitx was given.
       
 21774 if test "${enable_fcitx+set}" = set; then :
       
 21775   enableval=$enable_fcitx;
       
 21776 else
       
 21777   enable_fcitx=yes
       
 21778 fi
       
 21779 
       
 21780     if test x$enable_fcitx = xyes; then
       
 21781         # Extract the first word of "pkg-config", so it can be a program name with args.
       
 21782 set dummy pkg-config; ac_word=$2
       
 21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 21784 $as_echo_n "checking for $ac_word... " >&6; }
       
 21785 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 21786   $as_echo_n "(cached) " >&6
       
 21787 else
       
 21788   case $PKG_CONFIG in
       
 21789   [\\/]* | ?:[\\/]*)
       
 21790   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 21791   ;;
       
 21792   *)
       
 21793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 21794 for as_dir in $PATH
       
 21795 do
       
 21796   IFS=$as_save_IFS
       
 21797   test -z "$as_dir" && as_dir=.
       
 21798     for ac_exec_ext in '' $ac_executable_extensions; do
       
 21799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 21800     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 21801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 21802     break 2
       
 21803   fi
       
 21804 done
       
 21805   done
       
 21806 IFS=$as_save_IFS
       
 21807 
       
 21808   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 21809   ;;
       
 21810 esac
       
 21811 fi
       
 21812 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 21813 if test -n "$PKG_CONFIG"; then
       
 21814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 21815 $as_echo "$PKG_CONFIG" >&6; }
       
 21816 else
       
 21817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 21818 $as_echo "no" >&6; }
       
 21819 fi
       
 21820 
       
 21821 
       
 21822         if test x$PKG_CONFIG != xno; then
       
 21823             FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
       
 21824             CFLAGS="$CFLAGS $FCITX_CFLAGS"
       
 21825             ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
       
 21826 if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
       
 21827   have_fcitx_frontend_h_hdr=yes
       
 21828 else
       
 21829   have_fcitx_frontend_h_hdr=no
       
 21830 fi
       
 21831 
       
 21832 
       
 21833             CFLAGS="$save_CFLAGS"
       
 21834             if test x$have_fcitx_frontend_h_hdr = xyes; then
       
 21835                 if test x$enable_ime != xyes; then
       
 21836                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
       
 21837 $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
       
 21838                     have_fcitx_frontend_h_hdr=no
       
 21839                 elif test x$enable_dbus != xyes; then
       
 21840                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
       
 21841 $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
       
 21842                     have_fcitx_frontend_h_hdr=no
       
 21843                 else
       
 21844 
       
 21845 $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
       
 21846 
       
 21847                     EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
       
 21848                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
 21740                fi
 21849                fi
 21741             fi
 21850             fi
 21742         fi
 21851         fi
 21743     fi
 21852     fi
 21744 }
 21853 }
 23029         CheckOpenGLESX11
 23138         CheckOpenGLESX11
 23030         CheckMir
 23139         CheckMir
 23031         CheckWayland
 23140         CheckWayland
 23032         CheckLibUDev
 23141         CheckLibUDev
 23033         CheckDBus
 23142         CheckDBus
       
 23143         CheckIME
 23034         CheckIBus
 23144         CheckIBus
       
 23145         CheckFcitx
 23035         case $ARCH in
 23146         case $ARCH in
 23036           linux)
 23147           linux)
 23037               CheckInputEvents
 23148               CheckInputEvents
 23038               CheckInputKD
 23149               CheckInputKD
 23039           ;;
 23150           ;;
 23942 if test x$have_dbus_dbus_h_hdr = xyes; then
 24053 if test x$have_dbus_dbus_h_hdr = xyes; then
 23943     SUMMARY="${SUMMARY}Using dbus      : YES\n"
 24054     SUMMARY="${SUMMARY}Using dbus      : YES\n"
 23944 else
 24055 else
 23945     SUMMARY="${SUMMARY}Using dbus      : NO\n"
 24056     SUMMARY="${SUMMARY}Using dbus      : NO\n"
 23946 fi
 24057 fi
       
 24058 if test x$enable_ime = xyes; then
       
 24059     SUMMARY="${SUMMARY}Using ime       : YES\n"
       
 24060 else
       
 24061     SUMMARY="${SUMMARY}Using ime       : NO\n"
       
 24062 fi
 23947 if test x$have_ibus_ibus_h_hdr = xyes; then
 24063 if test x$have_ibus_ibus_h_hdr = xyes; then
 23948     SUMMARY="${SUMMARY}Using ibus      : YES\n"
 24064     SUMMARY="${SUMMARY}Using ibus      : YES\n"
 23949 else
 24065 else
 23950     SUMMARY="${SUMMARY}Using ibus      : NO\n"
 24066     SUMMARY="${SUMMARY}Using ibus      : NO\n"
       
 24067 fi
       
 24068 if test x$have_fcitx_frontend_h_hdr = xyes; then
       
 24069     SUMMARY="${SUMMARY}Using fcitx     : YES\n"
       
 24070 else
       
 24071     SUMMARY="${SUMMARY}Using fcitx     : NO\n"
 23951 fi
 24072 fi
 23952 ac_config_commands="$ac_config_commands summary"
 24073 ac_config_commands="$ac_config_commands summary"
 23953 
 24074 
 23954 
 24075 
 23955 cat >confcache <<\_ACEOF
 24076 cat >confcache <<\_ACEOF