configure
changeset 12639 1e4dd5933351
parent 12631 779b63fc4acb
child 12654 cd9fe6a3126c
equal deleted inserted replaced
12638:df6da910d4d8 12639:1e4dd5933351
   649 ENABLE_SHARED_TRUE
   649 ENABLE_SHARED_TRUE
   650 SDL_RLD_FLAGS
   650 SDL_RLD_FLAGS
   651 SDL_STATIC_LIBS
   651 SDL_STATIC_LIBS
   652 SDL_LIBS
   652 SDL_LIBS
   653 SDL_CFLAGS
   653 SDL_CFLAGS
   654 DIRECTFBCONFIG
   654 LIBUSB_LIBS
       
   655 LIBUSB_CFLAGS
       
   656 FCITX_LIBS
       
   657 FCITX_CFLAGS
       
   658 IBUS_LIBS
       
   659 IBUS_CFLAGS
       
   660 DBUS_LIBS
       
   661 DBUS_CFLAGS
       
   662 LIBGBM_LIBS
       
   663 LIBGBM_CFLAGS
       
   664 LIBDRM_LIBS
       
   665 LIBDRM_CFLAGS
       
   666 DIRECTFB_LIBS
       
   667 DIRECTFB_CFLAGS
   655 X_EXTRA_LIBS
   668 X_EXTRA_LIBS
   656 X_LIBS
   669 X_LIBS
   657 X_PRE_LIBS
   670 X_PRE_LIBS
   658 X_CFLAGS
   671 X_CFLAGS
   659 XMKMF
   672 XMKMF
       
   673 RPI_LIBS
       
   674 RPI_CFLAGS
       
   675 FUSIONSOUND_LIBS
       
   676 FUSIONSOUND_CFLAGS
   660 ARTSCONFIG
   677 ARTSCONFIG
       
   678 PULSEAUDIO_LIBS
       
   679 PULSEAUDIO_CFLAGS
   661 ESD_LIBS
   680 ESD_LIBS
   662 ESD_CFLAGS
   681 ESD_CFLAGS
   663 ESD_CONFIG
   682 ESD_CONFIG
   664 PKG_CONFIG
   683 JACK_LIBS
       
   684 JACK_CFLAGS
   665 ALSA_LIBS
   685 ALSA_LIBS
   666 ALSA_CFLAGS
   686 ALSA_CFLAGS
   667 POW_LIB
   687 POW_LIB
   668 LIBOBJS
   688 LIBOBJS
   669 ALLOCA
   689 ALLOCA
       
   690 PKG_CONFIG_LIBDIR
       
   691 PKG_CONFIG_PATH
       
   692 PKG_CONFIG
   670 WINDRES
   693 WINDRES
   671 SET_MAKE
   694 SET_MAKE
   672 INSTALL_DATA
   695 INSTALL_DATA
   673 INSTALL_SCRIPT
   696 INSTALL_SCRIPT
   674 INSTALL_PROGRAM
   697 INSTALL_PROGRAM
   885 CPP
   908 CPP
   886 CXX
   909 CXX
   887 CXXFLAGS
   910 CXXFLAGS
   888 CCC
   911 CCC
   889 CXXCPP
   912 CXXCPP
   890 XMKMF'
   913 PKG_CONFIG
       
   914 PKG_CONFIG_PATH
       
   915 PKG_CONFIG_LIBDIR
       
   916 JACK_CFLAGS
       
   917 JACK_LIBS
       
   918 PULSEAUDIO_CFLAGS
       
   919 PULSEAUDIO_LIBS
       
   920 FUSIONSOUND_CFLAGS
       
   921 FUSIONSOUND_LIBS
       
   922 RPI_CFLAGS
       
   923 RPI_LIBS
       
   924 XMKMF
       
   925 DIRECTFB_CFLAGS
       
   926 DIRECTFB_LIBS
       
   927 LIBDRM_CFLAGS
       
   928 LIBDRM_LIBS
       
   929 LIBGBM_CFLAGS
       
   930 LIBGBM_LIBS
       
   931 DBUS_CFLAGS
       
   932 DBUS_LIBS
       
   933 IBUS_CFLAGS
       
   934 IBUS_LIBS
       
   935 FCITX_CFLAGS
       
   936 FCITX_LIBS
       
   937 LIBUSB_CFLAGS
       
   938 LIBUSB_LIBS'
   891 
   939 
   892 
   940 
   893 # Initialize some variables set by options.
   941 # Initialize some variables set by options.
   894 ac_init_help=
   942 ac_init_help=
   895 ac_init_version=false
   943 ac_init_version=false
  1574   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1622   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1575   --enable-video-wayland-qt-touch
  1623   --enable-video-wayland-qt-touch
  1576                           QtWayland server support for Wayland video driver
  1624                           QtWayland server support for Wayland video driver
  1577                           [[default=yes]]
  1625                           [[default=yes]]
  1578   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1626   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1579   --enable-video-rpi      use Raspberry Pi video driver [[default=yes]]
  1627   --enable-video-rpi      use Raspberry Pi video driver [[default=no]]
  1580   --enable-video-x11      use X11 video driver [[default=yes]]
  1628   --enable-video-x11      use X11 video driver [[default=yes]]
  1581   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1629   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1582   --enable-video-x11-xcursor
  1630   --enable-video-x11-xcursor
  1583                           enable X11 Xcursor support [[default=yes]]
  1631                           enable X11 Xcursor support [[default=yes]]
  1584   --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1632   --enable-video-x11-xdbe enable X11 Xdbe support [[default=yes]]
  1661               you have headers in a nonstandard directory <include dir>
  1709               you have headers in a nonstandard directory <include dir>
  1662   CPP         C preprocessor
  1710   CPP         C preprocessor
  1663   CXX         C++ compiler command
  1711   CXX         C++ compiler command
  1664   CXXFLAGS    C++ compiler flags
  1712   CXXFLAGS    C++ compiler flags
  1665   CXXCPP      C++ preprocessor
  1713   CXXCPP      C++ preprocessor
       
  1714   PKG_CONFIG  path to pkg-config utility
       
  1715   PKG_CONFIG_PATH
       
  1716               directories to add to pkg-config's search path
       
  1717   PKG_CONFIG_LIBDIR
       
  1718               path overriding pkg-config's built-in search path
       
  1719   JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
       
  1720   JACK_LIBS   linker flags for JACK, overriding pkg-config
       
  1721   PULSEAUDIO_CFLAGS
       
  1722               C compiler flags for PULSEAUDIO, overriding pkg-config
       
  1723   PULSEAUDIO_LIBS
       
  1724               linker flags for PULSEAUDIO, overriding pkg-config
       
  1725   FUSIONSOUND_CFLAGS
       
  1726               C compiler flags for FUSIONSOUND, overriding pkg-config
       
  1727   FUSIONSOUND_LIBS
       
  1728               linker flags for FUSIONSOUND, overriding pkg-config
       
  1729   RPI_CFLAGS  C compiler flags for RPI, overriding pkg-config
       
  1730   RPI_LIBS    linker flags for RPI, overriding pkg-config
  1666   XMKMF       Path to xmkmf, Makefile generator for X Window System
  1731   XMKMF       Path to xmkmf, Makefile generator for X Window System
       
  1732   DIRECTFB_CFLAGS
       
  1733               C compiler flags for DIRECTFB, overriding pkg-config
       
  1734   DIRECTFB_LIBS
       
  1735               linker flags for DIRECTFB, overriding pkg-config
       
  1736   LIBDRM_CFLAGS
       
  1737               C compiler flags for LIBDRM, overriding pkg-config
       
  1738   LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
       
  1739   LIBGBM_CFLAGS
       
  1740               C compiler flags for LIBGBM, overriding pkg-config
       
  1741   LIBGBM_LIBS linker flags for LIBGBM, overriding pkg-config
       
  1742   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
       
  1743   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
       
  1744   IBUS_CFLAGS C compiler flags for IBUS, overriding pkg-config
       
  1745   IBUS_LIBS   linker flags for IBUS, overriding pkg-config
       
  1746   FCITX_CFLAGS
       
  1747               C compiler flags for FCITX, overriding pkg-config
       
  1748   FCITX_LIBS  linker flags for FCITX, overriding pkg-config
       
  1749   LIBUSB_CFLAGS
       
  1750               C compiler flags for LIBUSB, overriding pkg-config
       
  1751   LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
  1667 
  1752 
  1668 Use these variables to override the choices made by `configure' or to help
  1753 Use these variables to override the choices made by `configure' or to help
  1669 it to find libraries and programs with nonstandard names/locations.
  1754 it to find libraries and programs with nonstandard names/locations.
  1670 
  1755 
  1671 Report bugs to the package provider.
  1756 Report bugs to the package provider.
 15681 else
 15766 else
 15682   WINDRES="$ac_cv_prog_WINDRES"
 15767   WINDRES="$ac_cv_prog_WINDRES"
 15683 fi
 15768 fi
 15684 
 15769 
 15685 
 15770 
       
 15771 
       
 15772 
       
 15773 
       
 15774 
       
 15775 
       
 15776 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
       
 15777 	if test -n "$ac_tool_prefix"; then
       
 15778   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
       
 15779 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
       
 15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 15781 $as_echo_n "checking for $ac_word... " >&6; }
       
 15782 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 15783   $as_echo_n "(cached) " >&6
       
 15784 else
       
 15785   case $PKG_CONFIG in
       
 15786   [\\/]* | ?:[\\/]*)
       
 15787   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 15788   ;;
       
 15789   *)
       
 15790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 15791 for as_dir in $PATH
       
 15792 do
       
 15793   IFS=$as_save_IFS
       
 15794   test -z "$as_dir" && as_dir=.
       
 15795     for ac_exec_ext in '' $ac_executable_extensions; do
       
 15796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 15797     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 15798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 15799     break 2
       
 15800   fi
       
 15801 done
       
 15802   done
       
 15803 IFS=$as_save_IFS
       
 15804 
       
 15805   ;;
       
 15806 esac
       
 15807 fi
       
 15808 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 15809 if test -n "$PKG_CONFIG"; then
       
 15810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 15811 $as_echo "$PKG_CONFIG" >&6; }
       
 15812 else
       
 15813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 15814 $as_echo "no" >&6; }
       
 15815 fi
       
 15816 
       
 15817 
       
 15818 fi
       
 15819 if test -z "$ac_cv_path_PKG_CONFIG"; then
       
 15820   ac_pt_PKG_CONFIG=$PKG_CONFIG
       
 15821   # Extract the first word of "pkg-config", so it can be a program name with args.
       
 15822 set dummy pkg-config; ac_word=$2
       
 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 15824 $as_echo_n "checking for $ac_word... " >&6; }
       
 15825 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
       
 15826   $as_echo_n "(cached) " >&6
       
 15827 else
       
 15828   case $ac_pt_PKG_CONFIG in
       
 15829   [\\/]* | ?:[\\/]*)
       
 15830   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
       
 15831   ;;
       
 15832   *)
       
 15833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 15834 for as_dir in $PATH
       
 15835 do
       
 15836   IFS=$as_save_IFS
       
 15837   test -z "$as_dir" && as_dir=.
       
 15838     for ac_exec_ext in '' $ac_executable_extensions; do
       
 15839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 15840     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 15841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 15842     break 2
       
 15843   fi
       
 15844 done
       
 15845   done
       
 15846 IFS=$as_save_IFS
       
 15847 
       
 15848   ;;
       
 15849 esac
       
 15850 fi
       
 15851 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
       
 15852 if test -n "$ac_pt_PKG_CONFIG"; then
       
 15853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
       
 15854 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
       
 15855 else
       
 15856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 15857 $as_echo "no" >&6; }
       
 15858 fi
       
 15859 
       
 15860   if test "x$ac_pt_PKG_CONFIG" = x; then
       
 15861     PKG_CONFIG=""
       
 15862   else
       
 15863     case $cross_compiling:$ac_tool_warned in
       
 15864 yes:)
       
 15865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
       
 15866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
       
 15867 ac_tool_warned=yes ;;
       
 15868 esac
       
 15869     PKG_CONFIG=$ac_pt_PKG_CONFIG
       
 15870   fi
       
 15871 else
       
 15872   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
       
 15873 fi
       
 15874 
       
 15875 fi
       
 15876 if test -n "$PKG_CONFIG"; then
       
 15877 	_pkg_min_version=0.9.0
       
 15878 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
       
 15879 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
       
 15880 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
       
 15881 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 15882 $as_echo "yes" >&6; }
       
 15883 	else
       
 15884 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 15885 $as_echo "no" >&6; }
       
 15886 		PKG_CONFIG=""
       
 15887 	fi
       
 15888 fi
       
 15889 
 15686 case "$host" in
 15890 case "$host" in
 15687     *-*-mingw32*)
 15891     *-*-mingw32*)
 15688         # Except on msys, where make can't handle full pathnames (bug 1972)
 15892         # Except on msys, where make can't handle full pathnames (bug 1972)
 15689         ;;
 15893         ;;
 15690     *)
 15894     *)
 18063 else
 18267 else
 18064   enable_jack=yes
 18268   enable_jack=yes
 18065 fi
 18269 fi
 18066 
 18270 
 18067     if test x$enable_audio = xyes -a x$enable_jack = xyes; then
 18271     if test x$enable_audio = xyes -a x$enable_jack = xyes; then
 18068         audio_jack=no
 18272 
 18069 
 18273 pkg_failed=no
 18070         JACK_REQUIRED_VERSION=0.125
 18274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK" >&5
 18071 
 18275 $as_echo_n "checking for JACK... " >&6; }
 18072         # Extract the first word of "pkg-config", so it can be a program name with args.
 18276 
 18073 set dummy pkg-config; ac_word=$2
 18277 if test -n "$JACK_CFLAGS"; then
 18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 18278     pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
 18075 $as_echo_n "checking for $ac_word... " >&6; }
 18279  elif test -n "$PKG_CONFIG"; then
 18076 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 18280     if test -n "$PKG_CONFIG" && \
 18077   $as_echo_n "(cached) " >&6
 18281     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
 18078 else
 18282   ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
 18079   case $PKG_CONFIG in
 18283   ac_status=$?
 18080   [\\/]* | ?:[\\/]*)
 18284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 18081   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 18285   test $ac_status = 0; }; then
 18082   ;;
 18286   pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.125" 2>/dev/null`
 18083   *)
 18287 else
 18084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 18288   pkg_failed=yes
 18085 for as_dir in $PATH
 18289 fi
 18086 do
 18290  else
 18087   IFS=$as_save_IFS
 18291     pkg_failed=untried
 18088   test -z "$as_dir" && as_dir=.
 18292 fi
 18089     for ac_exec_ext in '' $ac_executable_extensions; do
 18293 if test -n "$JACK_LIBS"; then
 18090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 18294     pkg_cv_JACK_LIBS="$JACK_LIBS"
 18091     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 18295  elif test -n "$PKG_CONFIG"; then
 18092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 18296     if test -n "$PKG_CONFIG" && \
 18093     break 2
 18297     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jack >= 0.125\""; } >&5
 18094   fi
 18298   ($PKG_CONFIG --exists --print-errors "jack >= 0.125") 2>&5
 18095 done
 18299   ac_status=$?
 18096   done
 18300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 18097 IFS=$as_save_IFS
 18301   test $ac_status = 0; }; then
 18098 
 18302   pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.125" 2>/dev/null`
 18099   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 18303 else
 18100   ;;
 18304   pkg_failed=yes
 18101 esac
 18305 fi
 18102 fi
 18306  else
 18103 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 18307     pkg_failed=untried
 18104 if test -n "$PKG_CONFIG"; then
 18308 fi
 18105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 18309 
 18106 $as_echo "$PKG_CONFIG" >&6; }
 18310 
 18107 else
 18311 
 18108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 18312 if test $pkg_failed = yes; then
       
 18313    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 18109 $as_echo "no" >&6; }
 18314 $as_echo "no" >&6; }
 18110 fi
 18315 
 18111 
 18316 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 18112 
 18317         _pkg_short_errors_supported=yes
 18113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JACK $JACK_REQUIRED_VERSION support" >&5
 18318 else
 18114 $as_echo_n "checking for JACK $JACK_REQUIRED_VERSION support... " >&6; }
 18319         _pkg_short_errors_supported=no
 18115         if test x$PKG_CONFIG != xno; then
 18320 fi
 18116         if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
 18321         if test $_pkg_short_errors_supported = yes; then
 18117                 JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
 18322 	        JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack >= 0.125" 2>&1`
 18118                 JACK_LIBS=`$PKG_CONFIG --libs jack`
 18323         else
 18119                 audio_jack=yes
 18324 	        JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack >= 0.125" 2>&1`
 18120             fi
       
 18121         fi
 18325         fi
 18122         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_jack" >&5
 18326 	# Put the nasty error message in config.log where it belongs
 18123 $as_echo "$audio_jack" >&6; }
 18327 	echo "$JACK_PKG_ERRORS" >&5
       
 18328 
       
 18329 	audio_jack=no
       
 18330 elif test $pkg_failed = untried; then
       
 18331      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 18332 $as_echo "no" >&6; }
       
 18333 	audio_jack=no
       
 18334 else
       
 18335 	JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
       
 18336 	JACK_LIBS=$pkg_cv_JACK_LIBS
       
 18337         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 18338 $as_echo "yes" >&6; }
       
 18339 	audio_jack=yes
       
 18340 fi
 18124 
 18341 
 18125         if test x$audio_jack = xyes; then
 18342         if test x$audio_jack = xyes; then
 18126             # Check whether --enable-jack-shared was given.
 18343             # Check whether --enable-jack-shared was given.
 18127 if test "${enable_jack_shared+set}" = set; then :
 18344 if test "${enable_jack_shared+set}" = set; then :
 18128   enableval=$enable_jack_shared;
 18345   enableval=$enable_jack_shared;
 18461 else
 18678 else
 18462   enable_pulseaudio=yes
 18679   enable_pulseaudio=yes
 18463 fi
 18680 fi
 18464 
 18681 
 18465     if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
 18682     if test x$enable_audio = xyes -a x$enable_pulseaudio = xyes; then
 18466         audio_pulseaudio=no
 18683 
 18467 
 18684 pkg_failed=no
 18468         PULSEAUDIO_REQUIRED_VERSION=0.9
 18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PULSEAUDIO" >&5
 18469 
 18686 $as_echo_n "checking for PULSEAUDIO... " >&6; }
 18470         # Extract the first word of "pkg-config", so it can be a program name with args.
 18687 
 18471 set dummy pkg-config; ac_word=$2
 18688 if test -n "$PULSEAUDIO_CFLAGS"; then
 18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 18689     pkg_cv_PULSEAUDIO_CFLAGS="$PULSEAUDIO_CFLAGS"
 18473 $as_echo_n "checking for $ac_word... " >&6; }
 18690  elif test -n "$PKG_CONFIG"; then
 18474 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 18691     if test -n "$PKG_CONFIG" && \
 18475   $as_echo_n "(cached) " >&6
 18692     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
 18476 else
 18693   ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
 18477   case $PKG_CONFIG in
 18694   ac_status=$?
 18478   [\\/]* | ?:[\\/]*)
 18695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 18479   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 18696   test $ac_status = 0; }; then
 18480   ;;
 18697   pkg_cv_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple >= 0.9" 2>/dev/null`
 18481   *)
 18698 else
 18482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 18699   pkg_failed=yes
 18483 for as_dir in $PATH
 18700 fi
 18484 do
 18701  else
 18485   IFS=$as_save_IFS
 18702     pkg_failed=untried
 18486   test -z "$as_dir" && as_dir=.
 18703 fi
 18487     for ac_exec_ext in '' $ac_executable_extensions; do
 18704 if test -n "$PULSEAUDIO_LIBS"; then
 18488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 18705     pkg_cv_PULSEAUDIO_LIBS="$PULSEAUDIO_LIBS"
 18489     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 18706  elif test -n "$PKG_CONFIG"; then
 18490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 18707     if test -n "$PKG_CONFIG" && \
 18491     break 2
 18708     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse-simple >= 0.9\""; } >&5
 18492   fi
 18709   ($PKG_CONFIG --exists --print-errors "libpulse-simple >= 0.9") 2>&5
 18493 done
 18710   ac_status=$?
 18494   done
 18711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 18495 IFS=$as_save_IFS
 18712   test $ac_status = 0; }; then
 18496 
 18713   pkg_cv_PULSEAUDIO_LIBS=`$PKG_CONFIG --libs "libpulse-simple >= 0.9" 2>/dev/null`
 18497   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 18714 else
 18498   ;;
 18715   pkg_failed=yes
 18499 esac
 18716 fi
 18500 fi
 18717  else
 18501 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 18718     pkg_failed=untried
 18502 if test -n "$PKG_CONFIG"; then
 18719 fi
 18503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 18720 
 18504 $as_echo "$PKG_CONFIG" >&6; }
 18721 
 18505 else
 18722 
 18506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 18723 if test $pkg_failed = yes; then
       
 18724    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 18507 $as_echo "no" >&6; }
 18725 $as_echo "no" >&6; }
 18508 fi
 18726 
 18509 
 18727 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 18510 
 18728         _pkg_short_errors_supported=yes
 18511         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support" >&5
 18729 else
 18512 $as_echo_n "checking for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support... " >&6; }
 18730         _pkg_short_errors_supported=no
 18513         if test x$PKG_CONFIG != xno; then
 18731 fi
 18514             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
 18732         if test $_pkg_short_errors_supported = yes; then
 18515                 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
 18733 	        PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple >= 0.9" 2>&1`
 18516                 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
 18734         else
 18517                 audio_pulseaudio=yes
 18735 	        PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple >= 0.9" 2>&1`
 18518             fi
       
 18519         fi
 18736         fi
 18520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $audio_pulseaudio" >&5
 18737 	# Put the nasty error message in config.log where it belongs
 18521 $as_echo "$audio_pulseaudio" >&6; }
 18738 	echo "$PULSEAUDIO_PKG_ERRORS" >&5
       
 18739 
       
 18740 	audio_pulseaudio=no
       
 18741 elif test $pkg_failed = untried; then
       
 18742      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 18743 $as_echo "no" >&6; }
       
 18744 	audio_pulseaudio=no
       
 18745 else
       
 18746 	PULSEAUDIO_CFLAGS=$pkg_cv_PULSEAUDIO_CFLAGS
       
 18747 	PULSEAUDIO_LIBS=$pkg_cv_PULSEAUDIO_LIBS
       
 18748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 18749 $as_echo "yes" >&6; }
       
 18750 	audio_pulseaudio=yes
       
 18751 fi
 18522 
 18752 
 18523         if test x$audio_pulseaudio = xyes; then
 18753         if test x$audio_pulseaudio = xyes; then
 18524             # Check whether --enable-pulseaudio-shared was given.
 18754             # Check whether --enable-pulseaudio-shared was given.
 18525 if test "${enable_pulseaudio_shared+set}" = set; then :
 18755 if test "${enable_pulseaudio_shared+set}" = set; then :
 18526   enableval=$enable_pulseaudio_shared;
 18756   enableval=$enable_pulseaudio_shared;
 18919 else
 19149 else
 18920   enable_fusionsound=no
 19150   enable_fusionsound=no
 18921 fi
 19151 fi
 18922 
 19152 
 18923     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
 19153     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
 18924         fusionsound=no
 19154 
 18925 
 19155 pkg_failed=no
 18926         FUSIONSOUND_REQUIRED_VERSION=1.1.1
 19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FUSIONSOUND" >&5
 18927 
 19157 $as_echo_n "checking for FUSIONSOUND... " >&6; }
 18928         # Extract the first word of "pkg-config", so it can be a program name with args.
 19158 
 18929 set dummy pkg-config; ac_word=$2
 19159 if test -n "$FUSIONSOUND_CFLAGS"; then
 18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 19160     pkg_cv_FUSIONSOUND_CFLAGS="$FUSIONSOUND_CFLAGS"
 18931 $as_echo_n "checking for $ac_word... " >&6; }
 19161  elif test -n "$PKG_CONFIG"; then
 18932 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 19162     if test -n "$PKG_CONFIG" && \
 18933   $as_echo_n "(cached) " >&6
 19163     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
 18934 else
 19164   ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
 18935   case $PKG_CONFIG in
 19165   ac_status=$?
 18936   [\\/]* | ?:[\\/]*)
 19166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 18937   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 19167   test $ac_status = 0; }; then
 18938   ;;
 19168   pkg_cv_FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags "fusionsound >= 1.1.1" 2>/dev/null`
 18939   *)
 19169 else
 18940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 19170   pkg_failed=yes
 18941 for as_dir in $PATH
 19171 fi
 18942 do
 19172  else
 18943   IFS=$as_save_IFS
 19173     pkg_failed=untried
 18944   test -z "$as_dir" && as_dir=.
 19174 fi
 18945     for ac_exec_ext in '' $ac_executable_extensions; do
 19175 if test -n "$FUSIONSOUND_LIBS"; then
 18946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 19176     pkg_cv_FUSIONSOUND_LIBS="$FUSIONSOUND_LIBS"
 18947     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 19177  elif test -n "$PKG_CONFIG"; then
 18948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 19178     if test -n "$PKG_CONFIG" && \
 18949     break 2
 19179     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fusionsound >= 1.1.1\""; } >&5
 18950   fi
 19180   ($PKG_CONFIG --exists --print-errors "fusionsound >= 1.1.1") 2>&5
 18951 done
 19181   ac_status=$?
 18952   done
 19182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 18953 IFS=$as_save_IFS
 19183   test $ac_status = 0; }; then
 18954 
 19184   pkg_cv_FUSIONSOUND_LIBS=`$PKG_CONFIG --libs "fusionsound >= 1.1.1" 2>/dev/null`
 18955   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 19185 else
 18956   ;;
 19186   pkg_failed=yes
 18957 esac
 19187 fi
 18958 fi
 19188  else
 18959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 19189     pkg_failed=untried
 18960 if test -n "$PKG_CONFIG"; then
 19190 fi
 18961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 19191 
 18962 $as_echo "$PKG_CONFIG" >&6; }
 19192 
 18963 else
 19193 
 18964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 19194 if test $pkg_failed = yes; then
       
 19195    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 18965 $as_echo "no" >&6; }
 19196 $as_echo "no" >&6; }
 18966 fi
 19197 
 18967 
 19198 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 18968 
 19199         _pkg_short_errors_supported=yes
 18969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
 19200 else
 18970 $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
 19201         _pkg_short_errors_supported=no
 18971         if test x$PKG_CONFIG != xno; then
 19202 fi
 18972             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
 19203         if test $_pkg_short_errors_supported = yes; then
 18973                 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
 19204 	        FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fusionsound >= 1.1.1" 2>&1`
 18974                 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
 19205         else
 18975                 fusionsound=yes
 19206 	        FUSIONSOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "fusionsound >= 1.1.1" 2>&1`
 18976             fi
       
 18977         fi
 19207         fi
 18978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
 19208 	# Put the nasty error message in config.log where it belongs
 18979 $as_echo "$fusionsound" >&6; }
 19209 	echo "$FUSIONSOUND_PKG_ERRORS" >&5
       
 19210 
       
 19211 	fusionsound=no
       
 19212 elif test $pkg_failed = untried; then
       
 19213      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 19214 $as_echo "no" >&6; }
       
 19215 	fusionsound=no
       
 19216 else
       
 19217 	FUSIONSOUND_CFLAGS=$pkg_cv_FUSIONSOUND_CFLAGS
       
 19218 	FUSIONSOUND_LIBS=$pkg_cv_FUSIONSOUND_LIBS
       
 19219         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 19220 $as_echo "yes" >&6; }
       
 19221 	fusionsound=yes
       
 19222 fi
 18980 
 19223 
 18981         if test x$fusionsound = xyes; then
 19224         if test x$fusionsound = xyes; then
 18982 
 19225 
 18983 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
 19226 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
 18984 
 19227 
 19292   enable_video_wayland_qt_touch=yes
 19535   enable_video_wayland_qt_touch=yes
 19293 fi
 19536 fi
 19294 
 19537 
 19295 
 19538 
 19296     if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
 19539     if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
 19297         # Extract the first word of "pkg-config", so it can be a program name with args.
       
 19298 set dummy pkg-config; ac_word=$2
       
 19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 19300 $as_echo_n "checking for $ac_word... " >&6; }
       
 19301 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 19302   $as_echo_n "(cached) " >&6
       
 19303 else
       
 19304   case $PKG_CONFIG in
       
 19305   [\\/]* | ?:[\\/]*)
       
 19306   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 19307   ;;
       
 19308   *)
       
 19309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 19310 for as_dir in $PATH
       
 19311 do
       
 19312   IFS=$as_save_IFS
       
 19313   test -z "$as_dir" && as_dir=.
       
 19314     for ac_exec_ext in '' $ac_executable_extensions; do
       
 19315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 19316     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 19317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 19318     break 2
       
 19319   fi
       
 19320 done
       
 19321   done
       
 19322 IFS=$as_save_IFS
       
 19323 
       
 19324   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 19325   ;;
       
 19326 esac
       
 19327 fi
       
 19328 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 19329 if test -n "$PKG_CONFIG"; then
       
 19330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 19331 $as_echo "$PKG_CONFIG" >&6; }
       
 19332 else
       
 19333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 19334 $as_echo "no" >&6; }
       
 19335 fi
       
 19336 
       
 19337 
       
 19338         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
 19540         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
 19339 $as_echo_n "checking for Wayland support... " >&6; }
 19541 $as_echo_n "checking for Wayland support... " >&6; }
 19340         video_wayland=no
 19542         video_wayland=no
 19341         if  test x$PKG_CONFIG != xno && \
 19543         if  test x$video_opengl_egl = xyes && \
 19342             test x$video_opengl_egl = xyes && \
       
 19343             test x$video_opengles_v2 = xyes; then
 19544             test x$video_opengles_v2 = xyes; then
 19344             if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
 19545             if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
 19345                 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
 19546                 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor xkbcommon`
 19346                 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
 19547                 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor xkbcommon`
 19347                 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
 19548                 WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`
 19491 {
 19692 {
 19492     # Check whether --enable-video-rpi was given.
 19693     # Check whether --enable-video-rpi was given.
 19493 if test "${enable_video_rpi+set}" = set; then :
 19694 if test "${enable_video_rpi+set}" = set; then :
 19494   enableval=$enable_video_rpi;
 19695   enableval=$enable_video_rpi;
 19495 else
 19696 else
 19496   enable_video_rpi=yes
 19697   enable_video_rpi=no
 19497 fi
 19698 fi
 19498 
 19699 
 19499     if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
 19700     if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
 19500         # Extract the first word of "pkg-config", so it can be a program name with args.
 19701 
 19501 set dummy pkg-config; ac_word=$2
 19702 pkg_failed=no
 19502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPI" >&5
 19503 $as_echo_n "checking for $ac_word... " >&6; }
 19704 $as_echo_n "checking for RPI... " >&6; }
 19504 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 19705 
 19505   $as_echo_n "(cached) " >&6
 19706 if test -n "$RPI_CFLAGS"; then
 19506 else
 19707     pkg_cv_RPI_CFLAGS="$RPI_CFLAGS"
 19507   case $PKG_CONFIG in
 19708  elif test -n "$PKG_CONFIG"; then
 19508   [\\/]* | ?:[\\/]*)
 19709     if test -n "$PKG_CONFIG" && \
 19509   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 19710     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
 19510   ;;
 19711   ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
 19511   *)
 19712   ac_status=$?
 19512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 19713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 19513 for as_dir in $PATH
 19714   test $ac_status = 0; }; then
 19514 do
 19715   pkg_cv_RPI_CFLAGS=`$PKG_CONFIG --cflags "bcm_host brcmegl" 2>/dev/null`
 19515   IFS=$as_save_IFS
 19716 else
 19516   test -z "$as_dir" && as_dir=.
 19717   pkg_failed=yes
 19517     for ac_exec_ext in '' $ac_executable_extensions; do
 19718 fi
 19518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 19719  else
 19519     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 19720     pkg_failed=untried
 19520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 19721 fi
 19521     break 2
 19722 if test -n "$RPI_LIBS"; then
 19522   fi
 19723     pkg_cv_RPI_LIBS="$RPI_LIBS"
 19523 done
 19724  elif test -n "$PKG_CONFIG"; then
 19524   done
 19725     if test -n "$PKG_CONFIG" && \
 19525 IFS=$as_save_IFS
 19726     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bcm_host brcmegl\""; } >&5
 19526 
 19727   ($PKG_CONFIG --exists --print-errors "bcm_host brcmegl") 2>&5
 19527   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 19728   ac_status=$?
 19528   ;;
 19729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 19529 esac
 19730   test $ac_status = 0; }; then
 19530 fi
 19731   pkg_cv_RPI_LIBS=`$PKG_CONFIG --libs "bcm_host brcmegl" 2>/dev/null`
 19531 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 19732 else
 19532 if test -n "$PKG_CONFIG"; then
 19733   pkg_failed=yes
 19533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 19734 fi
 19534 $as_echo "$PKG_CONFIG" >&6; }
 19735  else
 19535 else
 19736     pkg_failed=untried
 19536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 19737 fi
       
 19738 
       
 19739 
       
 19740 
       
 19741 if test $pkg_failed = yes; then
       
 19742    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 19537 $as_echo "no" >&6; }
 19743 $as_echo "no" >&6; }
 19538 fi
 19744 
 19539 
 19745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 19540 
 19746         _pkg_short_errors_supported=yes
 19541         if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
 19747 else
 19542             RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
 19748         _pkg_short_errors_supported=no
 19543             RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
 19749 fi
 19544         elif test x$ARCH = xnetbsd; then
 19750         if test $_pkg_short_errors_supported = yes; then
 19545             RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
 19751 	        RPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "bcm_host brcmegl" 2>&1`
 19546             RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
       
 19547         else
 19752         else
 19548             RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
 19753 	        RPI_PKG_ERRORS=`$PKG_CONFIG --print-errors "bcm_host brcmegl" 2>&1`
 19549             RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
 19754         fi
       
 19755 	# Put the nasty error message in config.log where it belongs
       
 19756 	echo "$RPI_PKG_ERRORS" >&5
       
 19757 
       
 19758 	video_rpi=no
       
 19759 elif test $pkg_failed = untried; then
       
 19760      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 19761 $as_echo "no" >&6; }
       
 19762 	video_rpi=no
       
 19763 else
       
 19764 	RPI_CFLAGS=$pkg_cv_RPI_CFLAGS
       
 19765 	RPI_LIBS=$pkg_cv_RPI_LIBS
       
 19766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 19767 $as_echo "yes" >&6; }
       
 19768 	video_rpi=yes
       
 19769 fi
       
 19770 
       
 19771         if test x$video_rpi = xno; then
       
 19772             if test x$ARCH = xnetbsd; then
       
 19773                 RPI_CFLAGS="-I/usr/pkg/include -I/usr/pkg/include/interface/vcos/pthreads -I/usr/pkg/include/interface/vmcs_host/linux"
       
 19774                 RPI_LIBS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host"
       
 19775             else
       
 19776                 RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux"
       
 19777                 RPI_LIBS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host"
       
 19778             fi
 19550         fi
 19779         fi
 19551 
 19780 
 19552         # Save the original compiler flags and libraries
 19781         # Save the original compiler flags and libraries
 19553         ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
 19782         ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS"
 19554 
 19783 
 19555         # Add the Raspberry Pi compiler flags and libraries
 19784         # Add the Raspberry Pi compiler flags and libraries
 19556         CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LDFLAGS"
 19785         CFLAGS="$CFLAGS $RPI_CFLAGS"; LIBS="$LIBS $RPI_LIBS"
 19557 
 19786 
 19558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
 19787         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Raspberry Pi" >&5
 19559 $as_echo_n "checking for Raspberry Pi... " >&6; }
 19788 $as_echo_n "checking for Raspberry Pi... " >&6; }
 19560         have_video_rpi=no
 19789         have_video_rpi=no
 19561         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19790         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19588 
 19817 
 19589         if test x$have_video_rpi = xyes; then
 19818         if test x$have_video_rpi = xyes; then
 19590             CFLAGS="$CFLAGS $RPI_CFLAGS"
 19819             CFLAGS="$CFLAGS $RPI_CFLAGS"
 19591             SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
 19820             SDL_CFLAGS="$SDL_CFLAGS $RPI_CFLAGS"
 19592             EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
 19821             EXTRA_CFLAGS="$EXTRA_CFLAGS $RPI_CFLAGS"
 19593             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LDFLAGS"
 19822             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $RPI_LIBS"
 19594             SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
 19823             SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
 19595 
 19824 
 19596 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
 19825 $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
 19597 
 19826 
 19598             SUMMARY_video="${SUMMARY_video} rpi"
 19827             SUMMARY_video="${SUMMARY_video} rpi"
 21324 else
 21553 else
 21325   enable_video_directfb=no
 21554   enable_video_directfb=no
 21326 fi
 21555 fi
 21327 
 21556 
 21328     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
 21557     if test x$enable_video = xyes -a x$enable_video_directfb = xyes; then
 21329         video_directfb=no
 21558 
 21330 
 21559 pkg_failed=no
 21331         DIRECTFB_REQUIRED_VERSION=1.0.0
 21560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5
 21332         for ac_prog in directfb-config
 21561 $as_echo_n "checking for DIRECTFB... " >&6; }
 21333 do
 21562 
 21334   # Extract the first word of "$ac_prog", so it can be a program name with args.
 21563 if test -n "$DIRECTFB_CFLAGS"; then
 21335 set dummy $ac_prog; ac_word=$2
 21564     pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
 21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 21565  elif test -n "$PKG_CONFIG"; then
 21337 $as_echo_n "checking for $ac_word... " >&6; }
 21566     if test -n "$PKG_CONFIG" && \
 21338 if ${ac_cv_path_DIRECTFBCONFIG+:} false; then :
 21567     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
 21339   $as_echo_n "(cached) " >&6
 21568   ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
 21340 else
 21569   ac_status=$?
 21341   case $DIRECTFBCONFIG in
 21570   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 21342   [\\/]* | ?:[\\/]*)
 21571   test $ac_status = 0; }; then
 21343   ac_cv_path_DIRECTFBCONFIG="$DIRECTFBCONFIG" # Let the user override the test with a path.
 21572   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 1.0.0" 2>/dev/null`
 21344   ;;
 21573 else
 21345   *)
 21574   pkg_failed=yes
 21346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 21575 fi
 21347 as_dummy="$prefix/bin:$PATH"
 21576  else
 21348 for as_dir in $as_dummy
 21577     pkg_failed=untried
 21349 do
 21578 fi
 21350   IFS=$as_save_IFS
 21579 if test -n "$DIRECTFB_LIBS"; then
 21351   test -z "$as_dir" && as_dir=.
 21580     pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
 21352     for ac_exec_ext in '' $ac_executable_extensions; do
 21581  elif test -n "$PKG_CONFIG"; then
 21353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 21582     if test -n "$PKG_CONFIG" && \
 21354     ac_cv_path_DIRECTFBCONFIG="$as_dir/$ac_word$ac_exec_ext"
 21583     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 1.0.0\""; } >&5
 21355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 21584   ($PKG_CONFIG --exists --print-errors "directfb >= 1.0.0") 2>&5
 21356     break 2
 21585   ac_status=$?
 21357   fi
 21586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 21358 done
 21587   test $ac_status = 0; }; then
 21359   done
 21588   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 1.0.0" 2>/dev/null`
 21360 IFS=$as_save_IFS
 21589 else
 21361 
 21590   pkg_failed=yes
 21362   ;;
 21591 fi
 21363 esac
 21592  else
 21364 fi
 21593     pkg_failed=untried
 21365 DIRECTFBCONFIG=$ac_cv_path_DIRECTFBCONFIG
 21594 fi
 21366 if test -n "$DIRECTFBCONFIG"; then
 21595 
 21367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRECTFBCONFIG" >&5
 21596 
 21368 $as_echo "$DIRECTFBCONFIG" >&6; }
 21597 
 21369 else
 21598 if test $pkg_failed = yes; then
 21370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 21599    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 21371 $as_echo "no" >&6; }
 21600 $as_echo "no" >&6; }
 21372 fi
 21601 
 21373 
 21602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 21374 
 21603         _pkg_short_errors_supported=yes
 21375   test -n "$DIRECTFBCONFIG" && break
 21604 else
 21376 done
 21605         _pkg_short_errors_supported=no
 21377 test -n "$DIRECTFBCONFIG" || DIRECTFBCONFIG="no"
 21606 fi
 21378 
 21607         if test $_pkg_short_errors_supported = yes; then
 21379         if test x$DIRECTFBCONFIG = xno; then
 21608 	        DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "directfb >= 1.0.0" 2>&1`
 21380             # Extract the first word of "pkg-config", so it can be a program name with args.
 21609         else
 21381 set dummy pkg-config; ac_word=$2
 21610 	        DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --print-errors "directfb >= 1.0.0" 2>&1`
 21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 21611         fi
 21383 $as_echo_n "checking for $ac_word... " >&6; }
 21612 	# Put the nasty error message in config.log where it belongs
 21384 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 21613 	echo "$DIRECTFB_PKG_ERRORS" >&5
 21385   $as_echo_n "(cached) " >&6
 21614 
 21386 else
 21615 	video_directfb=no
 21387   case $PKG_CONFIG in
 21616 elif test $pkg_failed = untried; then
 21388   [\\/]* | ?:[\\/]*)
 21617      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 21389   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 21390   ;;
       
 21391   *)
       
 21392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 21393 for as_dir in $PATH
       
 21394 do
       
 21395   IFS=$as_save_IFS
       
 21396   test -z "$as_dir" && as_dir=.
       
 21397     for ac_exec_ext in '' $ac_executable_extensions; do
       
 21398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 21399     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 21400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 21401     break 2
       
 21402   fi
       
 21403 done
       
 21404   done
       
 21405 IFS=$as_save_IFS
       
 21406 
       
 21407   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 21408   ;;
       
 21409 esac
       
 21410 fi
       
 21411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 21412 if test -n "$PKG_CONFIG"; then
       
 21413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 21414 $as_echo "$PKG_CONFIG" >&6; }
       
 21415 else
       
 21416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 21417 $as_echo "no" >&6; }
 21618 $as_echo "no" >&6; }
 21418 fi
 21619 	video_directfb=no
 21419 
 21620 else
 21420 
 21621 	DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
 21421             if test x$PKG_CONFIG != xno; then
 21622 	DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
 21422                 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
 21623         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 21423                     DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
 21624 $as_echo "yes" >&6; }
 21424                     DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
 21625 	video_directfb=yes
 21425                     DIRECTFB_PREFIX=`$PKG_CONFIG --variable=prefix directfb`
 21626 fi
 21426                     video_directfb=yes
 21627 
 21427                 fi
       
 21428             fi
       
 21429         else
       
 21430             set -- `echo $DIRECTFB_REQUIRED_VERSION | sed 's/\./ /g'`
       
 21431             NEED_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
       
 21432             set -- `$DIRECTFBCONFIG --version | sed 's/\./ /g'`
       
 21433             HAVE_VERSION=`expr $1 \* 10000 + $2 \* 100 + $3`
       
 21434             if test $HAVE_VERSION -ge $NEED_VERSION; then
       
 21435                 DIRECTFB_CFLAGS=`$DIRECTFBCONFIG --cflags`
       
 21436                 DIRECTFB_LIBS=`$DIRECTFBCONFIG --libs`
       
 21437                 DIRECTFB_PREFIX=`$DIRECTFBCONFIG --prefix`
       
 21438                 video_directfb=yes
       
 21439             fi
       
 21440         fi
       
 21441         if test x$video_directfb = xyes; then
 21628         if test x$video_directfb = xyes; then
 21442             # SuSE 11.1 installs directfb-config without directfb-devel
 21629             # SuSE 11.1 installs directfb-config without directfb-devel
 21443             save_CPPFLAGS="$CPPFLAGS"
 21630             save_CPPFLAGS="$CPPFLAGS"
 21444             CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
 21631             CPPFLAGS="$CPPFLAGS $DIRECTFB_CFLAGS"
 21445             ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
 21632             ac_fn_c_check_header_mongrel "$LINENO" "directfb.h" "ac_cv_header_directfb_h" "$ac_includes_default"
 21451 
 21638 
 21452 
 21639 
 21453             CPPFLAGS="$save_CPPFLAGS"
 21640             CPPFLAGS="$save_CPPFLAGS"
 21454             video_directfb=$have_directfb_hdr
 21641             video_directfb=$have_directfb_hdr
 21455         fi
 21642         fi
 21456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DirectFB $DIRECTFB_REQUIRED_VERSION support" >&5
       
 21457 $as_echo_n "checking for DirectFB $DIRECTFB_REQUIRED_VERSION support... " >&6; }
       
 21458         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_directfb" >&5
       
 21459 $as_echo "$video_directfb" >&6; }
       
 21460 
 21643 
 21461         if test x$video_directfb = xyes; then
 21644         if test x$video_directfb = xyes; then
 21462             # Check whether --enable-directfb-shared was given.
 21645             # Check whether --enable-directfb-shared was given.
 21463 if test "${enable_directfb_shared+set}" = set; then :
 21646 if test "${enable_directfb_shared+set}" = set; then :
 21464   enableval=$enable_directfb_shared;
 21647   enableval=$enable_directfb_shared;
 21520 fi
 21703 fi
 21521 
 21704 
 21522 
 21705 
 21523     if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
 21706     if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
 21524         video_kmsdrm=no
 21707         video_kmsdrm=no
 21525         libdrm_avail=no
 21708 
 21526         libgbm_avail=no
 21709 
 21527 
 21710 pkg_failed=no
 21528         LIBDRM_REQUIRED_VERSION=2.4.46
 21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
 21529         LIBGBM_REQUIRED_VERSION=9.0.0
 21712 $as_echo_n "checking for LIBDRM... " >&6; }
 21530 
 21713 
 21531         # Extract the first word of "pkg-config", so it can be a program name with args.
 21714 if test -n "$LIBDRM_CFLAGS"; then
 21532 set dummy pkg-config; ac_word=$2
 21715     pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
 21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 21716  elif test -n "$PKG_CONFIG"; then
 21534 $as_echo_n "checking for $ac_word... " >&6; }
 21717     if test -n "$PKG_CONFIG" && \
 21535 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 21718     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
 21536   $as_echo_n "(cached) " >&6
 21719   ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
 21537 else
 21720   ac_status=$?
 21538   case $PKG_CONFIG in
 21721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 21539   [\\/]* | ?:[\\/]*)
 21722   test $ac_status = 0; }; then
 21540   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 21723   pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.46" 2>/dev/null`
 21541   ;;
 21724 else
 21542   *)
 21725   pkg_failed=yes
 21543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 21726 fi
 21544 for as_dir in $PATH
 21727  else
 21545 do
 21728     pkg_failed=untried
 21546   IFS=$as_save_IFS
 21729 fi
 21547   test -z "$as_dir" && as_dir=.
 21730 if test -n "$LIBDRM_LIBS"; then
 21548     for ac_exec_ext in '' $ac_executable_extensions; do
 21731     pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
 21549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 21732  elif test -n "$PKG_CONFIG"; then
 21550     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 21733     if test -n "$PKG_CONFIG" && \
 21551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 21734     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.46\""; } >&5
 21552     break 2
 21735   ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.46") 2>&5
 21553   fi
 21736   ac_status=$?
 21554 done
 21737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 21555   done
 21738   test $ac_status = 0; }; then
 21556 IFS=$as_save_IFS
 21739   pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.46" 2>/dev/null`
 21557 
 21740 else
 21558   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 21741   pkg_failed=yes
 21559   ;;
 21742 fi
 21560 esac
 21743  else
 21561 fi
 21744     pkg_failed=untried
 21562 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 21745 fi
 21563 if test -n "$PKG_CONFIG"; then
 21746 
 21564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 21747 
 21565 $as_echo "$PKG_CONFIG" >&6; }
 21748 
 21566 else
 21749 if test $pkg_failed = yes; then
 21567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 21750    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 21568 $as_echo "no" >&6; }
 21751 $as_echo "no" >&6; }
 21569 fi
 21752 
 21570 
 21753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 21571 
 21754         _pkg_short_errors_supported=yes
 21572         if test x$PKG_CONFIG != xno; then
 21755 else
 21573             if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
 21756         _pkg_short_errors_supported=no
 21574                 if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
 21757 fi
 21575                     LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
 21758         if test $_pkg_short_errors_supported = yes; then
 21576                     LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
 21759 	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.46" 2>&1`
 21577                     LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
 21760         else
 21578                     libdrm_avail=yes
 21761 	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.46" 2>&1`
 21579                 fi
 21762         fi
 21580                 if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
 21763 	# Put the nasty error message in config.log where it belongs
 21581                     LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
 21764 	echo "$LIBDRM_PKG_ERRORS" >&5
 21582                     LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
 21765 
 21583                     LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
 21766 	libdrm_avail=no
 21584                     libgbm_avail=yes
 21767 elif test $pkg_failed = untried; then
 21585                 fi
 21768      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 21586                 if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
 21769 $as_echo "no" >&6; }
 21587                     video_kmsdrm=yes
 21770 	libdrm_avail=no
 21588                 fi
 21771 else
 21589 
 21772 	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
 21590                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
 21773 	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
 21591 $as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
 21774         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 21592                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
 21775 $as_echo "yes" >&6; }
 21593 $as_echo "$libdrm_avail" >&6; }
 21776 	libdrm_avail=yes
 21594                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
 21777 fi
 21595 $as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
 21778 
 21596                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
 21779 pkg_failed=no
 21597 $as_echo "$libgbm_avail" >&6; }
 21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGBM" >&5
 21598 
 21781 $as_echo_n "checking for LIBGBM... " >&6; }
 21599                 if test x$video_kmsdrm = xyes; then
 21782 
 21600                     # Check whether --enable-kmsdrm-shared was given.
 21783 if test -n "$LIBGBM_CFLAGS"; then
       
 21784     pkg_cv_LIBGBM_CFLAGS="$LIBGBM_CFLAGS"
       
 21785  elif test -n "$PKG_CONFIG"; then
       
 21786     if test -n "$PKG_CONFIG" && \
       
 21787     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
       
 21788   ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
       
 21789   ac_status=$?
       
 21790   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
       
 21791   test $ac_status = 0; }; then
       
 21792   pkg_cv_LIBGBM_CFLAGS=`$PKG_CONFIG --cflags "gbm >= 9.0.0" 2>/dev/null`
       
 21793 else
       
 21794   pkg_failed=yes
       
 21795 fi
       
 21796  else
       
 21797     pkg_failed=untried
       
 21798 fi
       
 21799 if test -n "$LIBGBM_LIBS"; then
       
 21800     pkg_cv_LIBGBM_LIBS="$LIBGBM_LIBS"
       
 21801  elif test -n "$PKG_CONFIG"; then
       
 21802     if test -n "$PKG_CONFIG" && \
       
 21803     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 9.0.0\""; } >&5
       
 21804   ($PKG_CONFIG --exists --print-errors "gbm >= 9.0.0") 2>&5
       
 21805   ac_status=$?
       
 21806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
       
 21807   test $ac_status = 0; }; then
       
 21808   pkg_cv_LIBGBM_LIBS=`$PKG_CONFIG --libs "gbm >= 9.0.0" 2>/dev/null`
       
 21809 else
       
 21810   pkg_failed=yes
       
 21811 fi
       
 21812  else
       
 21813     pkg_failed=untried
       
 21814 fi
       
 21815 
       
 21816 
       
 21817 
       
 21818 if test $pkg_failed = yes; then
       
 21819    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 21820 $as_echo "no" >&6; }
       
 21821 
       
 21822 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
       
 21823         _pkg_short_errors_supported=yes
       
 21824 else
       
 21825         _pkg_short_errors_supported=no
       
 21826 fi
       
 21827         if test $_pkg_short_errors_supported = yes; then
       
 21828 	        LIBGBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gbm >= 9.0.0" 2>&1`
       
 21829         else
       
 21830 	        LIBGBM_PKG_ERRORS=`$PKG_CONFIG --print-errors "gbm >= 9.0.0" 2>&1`
       
 21831         fi
       
 21832 	# Put the nasty error message in config.log where it belongs
       
 21833 	echo "$LIBGBM_PKG_ERRORS" >&5
       
 21834 
       
 21835 	libgbm_avail=no
       
 21836 elif test $pkg_failed = untried; then
       
 21837      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 21838 $as_echo "no" >&6; }
       
 21839 	libgbm_avail=no
       
 21840 else
       
 21841 	LIBGBM_CFLAGS=$pkg_cv_LIBGBM_CFLAGS
       
 21842 	LIBGBM_LIBS=$pkg_cv_LIBGBM_LIBS
       
 21843         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 21844 $as_echo "yes" >&6; }
       
 21845 	libgbm_avail=yes
       
 21846 fi
       
 21847 
       
 21848         if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
       
 21849             video_kmsdrm=yes
       
 21850         fi
       
 21851 
       
 21852         if test x$video_kmsdrm = xyes; then
       
 21853             # Check whether --enable-kmsdrm-shared was given.
 21601 if test "${enable_kmsdrm_shared+set}" = set; then :
 21854 if test "${enable_kmsdrm_shared+set}" = set; then :
 21602   enableval=$enable_kmsdrm_shared;
 21855   enableval=$enable_kmsdrm_shared;
 21603 else
 21856 else
 21604   enable_kmsdrm_shared=yes
 21857   enable_kmsdrm_shared=yes
 21605 fi
 21858 fi
 21606 
 21859 
 21607 
 21860 
 21608 
 21861 
 21609 $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
 21862 $as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
 21610 
 21863 
 21611                     SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
 21864             SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
 21612                     EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
 21865             EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
 21613 
 21866 
 21614                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
 21867             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
 21615 $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
 21868 $as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
 21616                     kmsdrm_shared=no
 21869             kmsdrm_shared=no
 21617                     drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
 21870             drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
 21618                     gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
 21871             gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
 21619                     if test x$have_loadso != xyes && \
 21872             if test x$have_loadso != xyes && \
 21620                        test x$enable_kmsdrm_shared = xyes; then
 21873                test x$enable_kmsdrm_shared = xyes; then
 21621                         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
 21874                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
 21622 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
 21875 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
 21623                     fi
 21876             fi
 21624                     if test x$have_loadso = xyes && \
 21877             if test x$have_loadso = xyes && \
 21625                        test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
 21878                test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
 21626                         kmsdrm_shared=yes
 21879                 kmsdrm_shared=yes
 21627 
 21880 
 21628 cat >>confdefs.h <<_ACEOF
 21881 cat >>confdefs.h <<_ACEOF
 21629 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
 21882 #define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
 21630 _ACEOF
 21883 _ACEOF
 21631 
 21884 
 21637 
 21890 
 21638 cat >>confdefs.h <<_ACEOF
 21891 cat >>confdefs.h <<_ACEOF
 21639 #define HAVE_KMSDRM_SHARED "TRUE"
 21892 #define HAVE_KMSDRM_SHARED "TRUE"
 21640 _ACEOF
 21893 _ACEOF
 21641 
 21894 
 21642                         SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
 21895                 SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
 21643                     else
 21896             else
 21644                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
 21897                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
 21645                         SUMMARY_video="${SUMMARY_video} kmsdrm"
 21898                 SUMMARY_video="${SUMMARY_video} kmsdrm"
 21646                     fi
 21899             fi
 21647                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
 21900             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
 21648 $as_echo "$kmsdrm_shared" >&6; }
 21901 $as_echo "$kmsdrm_shared" >&6; }
 21649                     have_video=yes
 21902             have_video=yes
 21650                 fi
       
 21651             fi
       
 21652         fi
 21903         fi
 21653     fi
 21904     fi
 21654 }
 21905 }
 21655 
 21906 
 21656 CheckDummyVideo()
 21907 CheckDummyVideo()
 22320 else
 22571 else
 22321   enable_dbus=yes
 22572   enable_dbus=yes
 22322 fi
 22573 fi
 22323 
 22574 
 22324     if test x$enable_dbus = xyes; then
 22575     if test x$enable_dbus = xyes; then
 22325         # Extract the first word of "pkg-config", so it can be a program name with args.
 22576 
 22326 set dummy pkg-config; ac_word=$2
 22577 pkg_failed=no
 22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
 22328 $as_echo_n "checking for $ac_word... " >&6; }
 22579 $as_echo_n "checking for DBUS... " >&6; }
 22329 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 22580 
 22330   $as_echo_n "(cached) " >&6
 22581 if test -n "$DBUS_CFLAGS"; then
 22331 else
 22582     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
 22332   case $PKG_CONFIG in
 22583  elif test -n "$PKG_CONFIG"; then
 22333   [\\/]* | ?:[\\/]*)
 22584     if test -n "$PKG_CONFIG" && \
 22334   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 22585     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
 22335   ;;
 22586   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
 22336   *)
 22587   ac_status=$?
 22337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 22588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 22338 for as_dir in $PATH
 22589   test $ac_status = 0; }; then
 22339 do
 22590   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
 22340   IFS=$as_save_IFS
 22591 else
 22341   test -z "$as_dir" && as_dir=.
 22592   pkg_failed=yes
 22342     for ac_exec_ext in '' $ac_executable_extensions; do
 22593 fi
 22343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 22594  else
 22344     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 22595     pkg_failed=untried
 22345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 22596 fi
 22346     break 2
 22597 if test -n "$DBUS_LIBS"; then
 22347   fi
 22598     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
 22348 done
 22599  elif test -n "$PKG_CONFIG"; then
 22349   done
 22600     if test -n "$PKG_CONFIG" && \
 22350 IFS=$as_save_IFS
 22601     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5
 22351 
 22602   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
 22352   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 22603   ac_status=$?
 22353   ;;
 22604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 22354 esac
 22605   test $ac_status = 0; }; then
 22355 fi
 22606   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
 22356 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 22607 else
 22357 if test -n "$PKG_CONFIG"; then
 22608   pkg_failed=yes
 22358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 22609 fi
 22359 $as_echo "$PKG_CONFIG" >&6; }
 22610  else
 22360 else
 22611     pkg_failed=untried
 22361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 22612 fi
       
 22613 
       
 22614 
       
 22615 
       
 22616 if test $pkg_failed = yes; then
       
 22617    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 22362 $as_echo "no" >&6; }
 22618 $as_echo "no" >&6; }
 22363 fi
 22619 
 22364 
 22620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 22365 
 22621         _pkg_short_errors_supported=yes
 22366         if test x$PKG_CONFIG != xno; then
 22622 else
 22367             DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
 22623         _pkg_short_errors_supported=no
 22368             save_CFLAGS="$CFLAGS"
 22624 fi
 22369             CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
 22625         if test $_pkg_short_errors_supported = yes; then
 22370             ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
 22626 	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1" 2>&1`
       
 22627         else
       
 22628 	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1" 2>&1`
       
 22629         fi
       
 22630 	# Put the nasty error message in config.log where it belongs
       
 22631 	echo "$DBUS_PKG_ERRORS" >&5
       
 22632 
       
 22633 	as_fn_error $? "Package requirements (dbus-1) were not met:
       
 22634 
       
 22635 $DBUS_PKG_ERRORS
       
 22636 
       
 22637 Consider adjusting the PKG_CONFIG_PATH environment variable if you
       
 22638 installed software in a non-standard prefix.
       
 22639 
       
 22640 Alternatively, you may set the environment variables DBUS_CFLAGS
       
 22641 and DBUS_LIBS to avoid the need to call pkg-config.
       
 22642 See the pkg-config man page for more details." "$LINENO" 5
       
 22643 elif test $pkg_failed = untried; then
       
 22644      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 22645 $as_echo "no" >&6; }
       
 22646 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
       
 22647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
       
 22648 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
       
 22649 is in your PATH or set the PKG_CONFIG environment variable to the full
       
 22650 path to pkg-config.
       
 22651 
       
 22652 Alternatively, you may set the environment variables DBUS_CFLAGS
       
 22653 and DBUS_LIBS to avoid the need to call pkg-config.
       
 22654 See the pkg-config man page for more details.
       
 22655 
       
 22656 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
       
 22657 See \`config.log' for more details" "$LINENO" 5; }
       
 22658 else
       
 22659 	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
       
 22660 	DBUS_LIBS=$pkg_cv_DBUS_LIBS
       
 22661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 22662 $as_echo "yes" >&6; }
       
 22663 
       
 22664 fi
       
 22665         save_CFLAGS="$CFLAGS"
       
 22666         CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
       
 22667         ac_fn_c_check_header_mongrel "$LINENO" "dbus/dbus.h" "ac_cv_header_dbus_dbus_h" "$ac_includes_default"
 22371 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
 22668 if test "x$ac_cv_header_dbus_dbus_h" = xyes; then :
 22372   have_dbus_dbus_h_hdr=yes
 22669   have_dbus_dbus_h_hdr=yes
 22373 else
 22670 else
 22374   have_dbus_dbus_h_hdr=no
 22671   have_dbus_dbus_h_hdr=no
 22375 fi
 22672 fi
 22376 
 22673 
 22377 
 22674 
 22378             CFLAGS="$save_CFLAGS"
 22675         CFLAGS="$save_CFLAGS"
 22379             if test x$have_dbus_dbus_h_hdr = xyes; then
 22676         if test x$have_dbus_dbus_h_hdr = xyes; then
 22380 
 22677 
 22381 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
 22678 $as_echo "#define HAVE_DBUS_DBUS_H 1" >>confdefs.h
 22382 
 22679 
 22383                 EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
 22680             EXTRA_CFLAGS="$EXTRA_CFLAGS $DBUS_CFLAGS"
 22384                 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
 22681             SOURCES="$SOURCES $srcdir/src/core/linux/SDL_dbus.c"
 22385             fi
       
 22386         fi
 22682         fi
 22387     fi
 22683     fi
 22388 }
 22684 }
 22389 
 22685 
 22390 CheckIME()
 22686 CheckIME()
 22412 else
 22708 else
 22413   enable_ibus=yes
 22709   enable_ibus=yes
 22414 fi
 22710 fi
 22415 
 22711 
 22416     if test x$enable_ibus = xyes; then
 22712     if test x$enable_ibus = xyes; then
 22417         # Extract the first word of "pkg-config", so it can be a program name with args.
 22713 
 22418 set dummy pkg-config; ac_word=$2
 22714 pkg_failed=no
 22419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBUS" >&5
 22420 $as_echo_n "checking for $ac_word... " >&6; }
 22716 $as_echo_n "checking for IBUS... " >&6; }
 22421 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 22717 
 22422   $as_echo_n "(cached) " >&6
 22718 if test -n "$IBUS_CFLAGS"; then
 22423 else
 22719     pkg_cv_IBUS_CFLAGS="$IBUS_CFLAGS"
 22424   case $PKG_CONFIG in
 22720  elif test -n "$PKG_CONFIG"; then
 22425   [\\/]* | ?:[\\/]*)
 22721     if test -n "$PKG_CONFIG" && \
 22426   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 22722     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
 22427   ;;
 22723   ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
 22428   *)
 22724   ac_status=$?
 22429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 22725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 22430 for as_dir in $PATH
 22726   test $ac_status = 0; }; then
 22431 do
 22727   pkg_cv_IBUS_CFLAGS=`$PKG_CONFIG --cflags "ibus-1.0" 2>/dev/null`
 22432   IFS=$as_save_IFS
 22728 else
 22433   test -z "$as_dir" && as_dir=.
 22729   pkg_failed=yes
 22434     for ac_exec_ext in '' $ac_executable_extensions; do
 22730 fi
 22435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 22731  else
 22436     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 22732     pkg_failed=untried
 22437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 22733 fi
 22438     break 2
 22734 if test -n "$IBUS_LIBS"; then
 22439   fi
 22735     pkg_cv_IBUS_LIBS="$IBUS_LIBS"
 22440 done
 22736  elif test -n "$PKG_CONFIG"; then
 22441   done
 22737     if test -n "$PKG_CONFIG" && \
 22442 IFS=$as_save_IFS
 22738     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ibus-1.0\""; } >&5
 22443 
 22739   ($PKG_CONFIG --exists --print-errors "ibus-1.0") 2>&5
 22444   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 22740   ac_status=$?
 22445   ;;
 22741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 22446 esac
 22742   test $ac_status = 0; }; then
 22447 fi
 22743   pkg_cv_IBUS_LIBS=`$PKG_CONFIG --libs "ibus-1.0" 2>/dev/null`
 22448 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 22744 else
 22449 if test -n "$PKG_CONFIG"; then
 22745   pkg_failed=yes
 22450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 22746 fi
 22451 $as_echo "$PKG_CONFIG" >&6; }
 22747  else
 22452 else
 22748     pkg_failed=untried
 22453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 22749 fi
       
 22750 
       
 22751 
       
 22752 
       
 22753 if test $pkg_failed = yes; then
       
 22754    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 22454 $as_echo "no" >&6; }
 22755 $as_echo "no" >&6; }
 22455 fi
 22756 
 22456 
 22757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 22457 
 22758         _pkg_short_errors_supported=yes
 22458         if test x$PKG_CONFIG != xno; then
 22759 else
 22459             IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
 22760         _pkg_short_errors_supported=no
 22460             save_CFLAGS="$CFLAGS"
 22761 fi
 22461             CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
 22762         if test $_pkg_short_errors_supported = yes; then
 22462             ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
 22763 	        IBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "ibus-1.0" 2>&1`
       
 22764         else
       
 22765 	        IBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "ibus-1.0" 2>&1`
       
 22766         fi
       
 22767 	# Put the nasty error message in config.log where it belongs
       
 22768 	echo "$IBUS_PKG_ERRORS" >&5
       
 22769 
       
 22770 	as_fn_error $? "Package requirements (ibus-1.0) were not met:
       
 22771 
       
 22772 $IBUS_PKG_ERRORS
       
 22773 
       
 22774 Consider adjusting the PKG_CONFIG_PATH environment variable if you
       
 22775 installed software in a non-standard prefix.
       
 22776 
       
 22777 Alternatively, you may set the environment variables IBUS_CFLAGS
       
 22778 and IBUS_LIBS to avoid the need to call pkg-config.
       
 22779 See the pkg-config man page for more details." "$LINENO" 5
       
 22780 elif test $pkg_failed = untried; then
       
 22781      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 22782 $as_echo "no" >&6; }
       
 22783 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
       
 22784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
       
 22785 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
       
 22786 is in your PATH or set the PKG_CONFIG environment variable to the full
       
 22787 path to pkg-config.
       
 22788 
       
 22789 Alternatively, you may set the environment variables IBUS_CFLAGS
       
 22790 and IBUS_LIBS to avoid the need to call pkg-config.
       
 22791 See the pkg-config man page for more details.
       
 22792 
       
 22793 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
       
 22794 See \`config.log' for more details" "$LINENO" 5; }
       
 22795 else
       
 22796 	IBUS_CFLAGS=$pkg_cv_IBUS_CFLAGS
       
 22797 	IBUS_LIBS=$pkg_cv_IBUS_LIBS
       
 22798         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 22799 $as_echo "yes" >&6; }
       
 22800 
       
 22801 fi
       
 22802         save_CFLAGS="$CFLAGS"
       
 22803         CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
       
 22804         ac_fn_c_check_header_mongrel "$LINENO" "ibus-1.0/ibus.h" "ac_cv_header_ibus_1_0_ibus_h" "$ac_includes_default"
 22463 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
 22805 if test "x$ac_cv_header_ibus_1_0_ibus_h" = xyes; then :
 22464   have_ibus_ibus_h_hdr=yes
 22806   have_ibus_ibus_h_hdr=yes
 22465 else
 22807 else
 22466   have_ibus_ibus_h_hdr=no
 22808   have_ibus_ibus_h_hdr=no
 22467 fi
 22809 fi
 22468 
 22810 
 22469 
 22811 
 22470             ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
 22812         ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
 22471 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
 22813 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
 22472   have_inotify_inotify_h_hdr=yes
 22814   have_inotify_inotify_h_hdr=yes
 22473 else
 22815 else
 22474   have_inotify_inotify_h_hdr=no
 22816   have_inotify_inotify_h_hdr=no
 22475 fi
 22817 fi
 22476 
 22818 
 22477 
 22819 
 22478             CFLAGS="$save_CFLAGS"
 22820         CFLAGS="$save_CFLAGS"
 22479             if test x$have_ibus_ibus_h_hdr = xyes; then
 22821         if test x$have_ibus_ibus_h_hdr = xyes; then
 22480                 if test x$enable_ime != xyes; then
 22822             if test x$enable_ime != xyes; then
 22481                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
 22823                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for IBus." >&5
 22482 $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
 22824 $as_echo "$as_me: WARNING: IME support is required for IBus." >&2;}
 22483                     have_ibus_ibus_h_hdr=no
 22825                 have_ibus_ibus_h_hdr=no
 22484                 elif test x$enable_dbus != xyes; then
 22826             elif test x$enable_dbus != xyes; then
 22485                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
 22827                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for IBus." >&5
 22486 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
 22828 $as_echo "$as_me: WARNING: DBus support is required for IBus." >&2;}
 22487                     have_ibus_ibus_h_hdr=no
 22829                 have_ibus_ibus_h_hdr=no
 22488                 elif test x$have_inotify_inotify_h_hdr != xyes; then
 22830             elif test x$have_inotify_inotify_h_hdr != xyes; then
 22489                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
 22831                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: INotify support is required for IBus." >&5
 22490 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
 22832 $as_echo "$as_me: WARNING: INotify support is required for IBus." >&2;}
 22491                     have_ibus_ibus_h_hdr=no
 22833                 have_ibus_ibus_h_hdr=no
 22492                 else
 22834             else
 22493 
 22835 
 22494 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
 22836 $as_echo "#define HAVE_IBUS_IBUS_H 1" >>confdefs.h
 22495 
 22837 
 22496                     EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
 22838                 EXTRA_CFLAGS="$EXTRA_CFLAGS $IBUS_CFLAGS"
 22497                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
 22839                 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_ibus.c"
 22498                fi
       
 22499             fi
 22840             fi
 22500         fi
 22841         fi
 22501     fi
 22842     fi
 22502 }
 22843 }
 22503 
 22844 
 22509 else
 22850 else
 22510   enable_fcitx=yes
 22851   enable_fcitx=yes
 22511 fi
 22852 fi
 22512 
 22853 
 22513     if test x$enable_fcitx = xyes; then
 22854     if test x$enable_fcitx = xyes; then
 22514         # Extract the first word of "pkg-config", so it can be a program name with args.
 22855 
 22515 set dummy pkg-config; ac_word=$2
 22856 pkg_failed=no
 22516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FCITX" >&5
 22517 $as_echo_n "checking for $ac_word... " >&6; }
 22858 $as_echo_n "checking for FCITX... " >&6; }
 22518 if ${ac_cv_path_PKG_CONFIG+:} false; then :
 22859 
 22519   $as_echo_n "(cached) " >&6
 22860 if test -n "$FCITX_CFLAGS"; then
 22520 else
 22861     pkg_cv_FCITX_CFLAGS="$FCITX_CFLAGS"
 22521   case $PKG_CONFIG in
 22862  elif test -n "$PKG_CONFIG"; then
 22522   [\\/]* | ?:[\\/]*)
 22863     if test -n "$PKG_CONFIG" && \
 22523   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 22864     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
 22524   ;;
 22865   ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
 22525   *)
 22866   ac_status=$?
 22526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 22867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 22527 for as_dir in $PATH
 22868   test $ac_status = 0; }; then
 22528 do
 22869   pkg_cv_FCITX_CFLAGS=`$PKG_CONFIG --cflags "fcitx" 2>/dev/null`
 22529   IFS=$as_save_IFS
 22870 else
 22530   test -z "$as_dir" && as_dir=.
 22871   pkg_failed=yes
 22531     for ac_exec_ext in '' $ac_executable_extensions; do
 22872 fi
 22532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 22873  else
 22533     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 22874     pkg_failed=untried
 22534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 22875 fi
 22535     break 2
 22876 if test -n "$FCITX_LIBS"; then
 22536   fi
 22877     pkg_cv_FCITX_LIBS="$FCITX_LIBS"
 22537 done
 22878  elif test -n "$PKG_CONFIG"; then
 22538   done
 22879     if test -n "$PKG_CONFIG" && \
 22539 IFS=$as_save_IFS
 22880     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fcitx\""; } >&5
 22540 
 22881   ($PKG_CONFIG --exists --print-errors "fcitx") 2>&5
 22541   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 22882   ac_status=$?
 22542   ;;
 22883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 22543 esac
 22884   test $ac_status = 0; }; then
 22544 fi
 22885   pkg_cv_FCITX_LIBS=`$PKG_CONFIG --libs "fcitx" 2>/dev/null`
 22545 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 22886 else
 22546 if test -n "$PKG_CONFIG"; then
 22887   pkg_failed=yes
 22547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
 22888 fi
 22548 $as_echo "$PKG_CONFIG" >&6; }
 22889  else
 22549 else
 22890     pkg_failed=untried
 22550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 22891 fi
       
 22892 
       
 22893 
       
 22894 
       
 22895 if test $pkg_failed = yes; then
       
 22896    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 22551 $as_echo "no" >&6; }
 22897 $as_echo "no" >&6; }
 22552 fi
 22898 
 22553 
 22899 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 22554 
 22900         _pkg_short_errors_supported=yes
 22555         if test x$PKG_CONFIG != xno; then
 22901 else
 22556             FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
 22902         _pkg_short_errors_supported=no
 22557             CFLAGS="$CFLAGS $FCITX_CFLAGS"
 22903 fi
 22558             ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
 22904         if test $_pkg_short_errors_supported = yes; then
       
 22905 	        FCITX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fcitx" 2>&1`
       
 22906         else
       
 22907 	        FCITX_PKG_ERRORS=`$PKG_CONFIG --print-errors "fcitx" 2>&1`
       
 22908         fi
       
 22909 	# Put the nasty error message in config.log where it belongs
       
 22910 	echo "$FCITX_PKG_ERRORS" >&5
       
 22911 
       
 22912 	as_fn_error $? "Package requirements (fcitx) were not met:
       
 22913 
       
 22914 $FCITX_PKG_ERRORS
       
 22915 
       
 22916 Consider adjusting the PKG_CONFIG_PATH environment variable if you
       
 22917 installed software in a non-standard prefix.
       
 22918 
       
 22919 Alternatively, you may set the environment variables FCITX_CFLAGS
       
 22920 and FCITX_LIBS to avoid the need to call pkg-config.
       
 22921 See the pkg-config man page for more details." "$LINENO" 5
       
 22922 elif test $pkg_failed = untried; then
       
 22923      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 22924 $as_echo "no" >&6; }
       
 22925 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
       
 22926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
       
 22927 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
       
 22928 is in your PATH or set the PKG_CONFIG environment variable to the full
       
 22929 path to pkg-config.
       
 22930 
       
 22931 Alternatively, you may set the environment variables FCITX_CFLAGS
       
 22932 and FCITX_LIBS to avoid the need to call pkg-config.
       
 22933 See the pkg-config man page for more details.
       
 22934 
       
 22935 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
       
 22936 See \`config.log' for more details" "$LINENO" 5; }
       
 22937 else
       
 22938 	FCITX_CFLAGS=$pkg_cv_FCITX_CFLAGS
       
 22939 	FCITX_LIBS=$pkg_cv_FCITX_LIBS
       
 22940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 22941 $as_echo "yes" >&6; }
       
 22942 
       
 22943 fi
       
 22944         CFLAGS="$CFLAGS $FCITX_CFLAGS"
       
 22945         ac_fn_c_check_header_mongrel "$LINENO" "fcitx/frontend.h" "ac_cv_header_fcitx_frontend_h" "$ac_includes_default"
 22559 if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
 22946 if test "x$ac_cv_header_fcitx_frontend_h" = xyes; then :
 22560   have_fcitx_frontend_h_hdr=yes
 22947   have_fcitx_frontend_h_hdr=yes
 22561 else
 22948 else
 22562   have_fcitx_frontend_h_hdr=no
 22949   have_fcitx_frontend_h_hdr=no
 22563 fi
 22950 fi
 22564 
 22951 
 22565 
 22952 
 22566             CFLAGS="$save_CFLAGS"
 22953         CFLAGS="$save_CFLAGS"
 22567             if test x$have_fcitx_frontend_h_hdr = xyes; then
 22954         if test x$have_fcitx_frontend_h_hdr = xyes; then
 22568                 if test x$enable_ime != xyes; then
 22955             if test x$enable_ime != xyes; then
 22569                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
 22956                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IME support is required for fcitx." >&5
 22570 $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
 22957 $as_echo "$as_me: WARNING: IME support is required for fcitx." >&2;}
 22571                     have_fcitx_frontend_h_hdr=no
 22958                 have_fcitx_frontend_h_hdr=no
 22572                 elif test x$enable_dbus != xyes; then
 22959             elif test x$enable_dbus != xyes; then
 22573                     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
 22960                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: DBus support is required for fcitx." >&5
 22574 $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
 22961 $as_echo "$as_me: WARNING: DBus support is required for fcitx." >&2;}
 22575                     have_fcitx_frontend_h_hdr=no
 22962                 have_fcitx_frontend_h_hdr=no
 22576                 else
 22963             else
 22577 
 22964 
 22578 $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
 22965 $as_echo "#define HAVE_FCITX_FRONTEND_H 1" >>confdefs.h
 22579 
 22966 
 22580                     EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
 22967                 EXTRA_CFLAGS="$EXTRA_CFLAGS $FCITX_CFLAGS"
 22581                     SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
 22968                 SOURCES="$SOURCES $srcdir/src/core/linux/SDL_fcitx.c"
 22582                fi
       
 22583             fi
 22969             fi
 22584         fi
 22970         fi
 22585     fi
 22971     fi
 22586 }
 22972 }
 22587 
 22973 
 23750 else
 24136 else
 23751   enable_hidapi=no
 24137   enable_hidapi=no
 23752 fi
 24138 fi
 23753 
 24139 
 23754     if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
 24140     if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
       
 24141 
       
 24142 pkg_failed=no
       
 24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB" >&5
       
 24144 $as_echo_n "checking for LIBUSB... " >&6; }
       
 24145 
       
 24146 if test -n "$LIBUSB_CFLAGS"; then
       
 24147     pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
       
 24148  elif test -n "$PKG_CONFIG"; then
       
 24149     if test -n "$PKG_CONFIG" && \
       
 24150     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
       
 24151   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
       
 24152   ac_status=$?
       
 24153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
       
 24154   test $ac_status = 0; }; then
       
 24155   pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
       
 24156 else
       
 24157   pkg_failed=yes
       
 24158 fi
       
 24159  else
       
 24160     pkg_failed=untried
       
 24161 fi
       
 24162 if test -n "$LIBUSB_LIBS"; then
       
 24163     pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
       
 24164  elif test -n "$PKG_CONFIG"; then
       
 24165     if test -n "$PKG_CONFIG" && \
       
 24166     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
       
 24167   ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
       
 24168   ac_status=$?
       
 24169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
       
 24170   test $ac_status = 0; }; then
       
 24171   pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
       
 24172 else
       
 24173   pkg_failed=yes
       
 24174 fi
       
 24175  else
       
 24176     pkg_failed=untried
       
 24177 fi
       
 24178 
       
 24179 
       
 24180 
       
 24181 if test $pkg_failed = yes; then
       
 24182    	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 24183 $as_echo "no" >&6; }
       
 24184 
       
 24185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
       
 24186         _pkg_short_errors_supported=yes
       
 24187 else
       
 24188         _pkg_short_errors_supported=no
       
 24189 fi
       
 24190         if test $_pkg_short_errors_supported = yes; then
       
 24191 	        LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
       
 24192         else
       
 24193 	        LIBUSB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
       
 24194         fi
       
 24195 	# Put the nasty error message in config.log where it belongs
       
 24196 	echo "$LIBUSB_PKG_ERRORS" >&5
       
 24197 
       
 24198 	as_fn_error $? "Package requirements (libusb-1.0) were not met:
       
 24199 
       
 24200 $LIBUSB_PKG_ERRORS
       
 24201 
       
 24202 Consider adjusting the PKG_CONFIG_PATH environment variable if you
       
 24203 installed software in a non-standard prefix.
       
 24204 
       
 24205 Alternatively, you may set the environment variables LIBUSB_CFLAGS
       
 24206 and LIBUSB_LIBS to avoid the need to call pkg-config.
       
 24207 See the pkg-config man page for more details." "$LINENO" 5
       
 24208 elif test $pkg_failed = untried; then
       
 24209      	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 24210 $as_echo "no" >&6; }
       
 24211 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
       
 24212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
       
 24213 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
       
 24214 is in your PATH or set the PKG_CONFIG environment variable to the full
       
 24215 path to pkg-config.
       
 24216 
       
 24217 Alternatively, you may set the environment variables LIBUSB_CFLAGS
       
 24218 and LIBUSB_LIBS to avoid the need to call pkg-config.
       
 24219 See the pkg-config man page for more details.
       
 24220 
       
 24221 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
       
 24222 See \`config.log' for more details" "$LINENO" 5; }
       
 24223 else
       
 24224 	LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
       
 24225 	LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
       
 24226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
       
 24227 $as_echo "yes" >&6; }
       
 24228 
       
 24229 fi
 23755         hidapi_support=no
 24230         hidapi_support=no
 23756         # Extract the first word of "pkg-config", so it can be a program name with args.
 24231         save_CFLAGS="$CFLAGS"
 23757 set dummy pkg-config; ac_word=$2
 24232         CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
 23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 24233         ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
 23759 $as_echo_n "checking for $ac_word... " >&6; }
       
 23760 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 23761   $as_echo_n "(cached) " >&6
       
 23762 else
       
 23763   case $PKG_CONFIG in
       
 23764   [\\/]* | ?:[\\/]*)
       
 23765   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 23766   ;;
       
 23767   *)
       
 23768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 23769 for as_dir in $PATH
       
 23770 do
       
 23771   IFS=$as_save_IFS
       
 23772   test -z "$as_dir" && as_dir=.
       
 23773     for ac_exec_ext in '' $ac_executable_extensions; do
       
 23774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 23775     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 23776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 23777     break 2
       
 23778   fi
       
 23779 done
       
 23780   done
       
 23781 IFS=$as_save_IFS
       
 23782 
       
 23783   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 23784   ;;
       
 23785 esac
       
 23786 fi
       
 23787 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 23788 if test -n "$PKG_CONFIG"; then
       
 23789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 23790 $as_echo "$PKG_CONFIG" >&6; }
       
 23791 else
       
 23792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 23793 $as_echo "no" >&6; }
       
 23794 fi
       
 23795 
       
 23796 
       
 23797         if test x$PKG_CONFIG != xno; then
       
 23798             LIBUSB_CFLAGS=`$PKG_CONFIG --cflags libusb-1.0`
       
 23799             LIBUSB_LDFLAGS=`$PKG_CONFIG --libs libusb-1.0`
       
 23800             save_CFLAGS="$CFLAGS"
       
 23801             CFLAGS="$save_CFLAGS $LIBUSB_CFLAGS"
       
 23802             ac_fn_c_check_header_mongrel "$LINENO" "libusb.h" "ac_cv_header_libusb_h" "$ac_includes_default"
       
 23803 if test "x$ac_cv_header_libusb_h" = xyes; then :
 24234 if test "x$ac_cv_header_libusb_h" = xyes; then :
 23804   have_libusb_h=yes
 24235   have_libusb_h=yes
 23805 fi
 24236 fi
 23806 
 24237 
 23807 
 24238 
 23808             CFLAGS="$save_CFLAGS"
 24239         CFLAGS="$save_CFLAGS"
 23809         fi
 24240 
 23810         if test x$have_libusb_h = xyes; then
 24241         if test x$have_libusb_h = xyes; then
 23811             hidapi_support=yes
 24242             hidapi_support=yes
 23812 
 24243 
 23813 $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
 24244 $as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
 23814 
 24245 
 23815             EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
 24246             EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
 23816             SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
 24247             SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
 23817             SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
 24248             SOURCES="$SOURCES $srcdir/src/hidapi/libusb/hid.c"
 23818             EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
 24249             EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBUSB_CFLAGS"
 23819             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LDFLAGS"
 24250             EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBUSB_LIBS"
 23820         fi
 24251         fi
 23821         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
 24252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hidapi support" >&5
 23822 $as_echo_n "checking for hidapi support... " >&6; }
 24253 $as_echo_n "checking for hidapi support... " >&6; }
 23823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
 24254         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidapi_support" >&5
 23824 $as_echo "$hidapi_support" >&6; }
 24255 $as_echo "$hidapi_support" >&6; }