Fixed warning building version.rc using mingw-64
authorSam Lantinga <slouken@libsdl.org>
Fri, 20 Mar 2020 20:33:26 -0700
changeset 136573c2eaf481522
parent 13656 498eabc38df8
child 13658 4370d30702d5
Fixed warning building version.rc using mingw-64
Makefile.in
configure
configure.ac
     1.1 --- a/Makefile.in	Fri Mar 20 19:51:54 2020 -0700
     1.2 +++ b/Makefile.in	Fri Mar 20 20:33:26 2020 -0700
     1.3 @@ -28,7 +28,7 @@
     1.4  INSTALL = @INSTALL@
     1.5  AR	= @AR@
     1.6  RANLIB	= @RANLIB@
     1.7 -WINDRES	= @WINDRES@
     1.8 +RC	= @RC@
     1.9  
    1.10  TARGET  = libSDL2.la
    1.11  OBJECTS = @OBJECTS@
    1.12 @@ -55,6 +55,7 @@
    1.13  RUN_CMD_CXX    = @echo "  CXX   " $@;
    1.14  RUN_CMD_LTLINK = @echo "  LTLINK" $@;
    1.15  RUN_CMD_RANLIB = @echo "  RANLIB" $@;
    1.16 +RUN_CMD_RC     = @echo "  RC    " $@;
    1.17  RUN_CMD_GEN    = @echo "  GEN   " $@;
    1.18  LIBTOOL += --quiet
    1.19  endif
     2.1 --- a/configure	Fri Mar 20 19:51:54 2020 -0700
     2.2 +++ b/configure	Fri Mar 20 20:33:26 2020 -0700
     2.3 @@ -691,7 +691,6 @@
     2.4  PKG_CONFIG_LIBDIR
     2.5  PKG_CONFIG_PATH
     2.6  PKG_CONFIG
     2.7 -WINDRES
     2.8  SET_MAKE
     2.9  INSTALL_DATA
    2.10  INSTALL_SCRIPT
    2.11 @@ -704,6 +703,7 @@
    2.12  LT_REVISION
    2.13  LT_CURRENT
    2.14  LT_RELEASE
    2.15 +RC
    2.16  CPP
    2.17  OTOOL64
    2.18  OTOOL
    2.19 @@ -11552,6 +11552,183 @@
    2.20  # Only expand once:
    2.21  
    2.22  
    2.23 +if test -n "$ac_tool_prefix"; then
    2.24 +  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
    2.25 +set dummy ${ac_tool_prefix}windres; ac_word=$2
    2.26 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2.27 +$as_echo_n "checking for $ac_word... " >&6; }
    2.28 +if ${ac_cv_prog_RC+:} false; then :
    2.29 +  $as_echo_n "(cached) " >&6
    2.30 +else
    2.31 +  if test -n "$RC"; then
    2.32 +  ac_cv_prog_RC="$RC" # Let the user override the test.
    2.33 +else
    2.34 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2.35 +for as_dir in $PATH
    2.36 +do
    2.37 +  IFS=$as_save_IFS
    2.38 +  test -z "$as_dir" && as_dir=.
    2.39 +    for ac_exec_ext in '' $ac_executable_extensions; do
    2.40 +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2.41 +    ac_cv_prog_RC="${ac_tool_prefix}windres"
    2.42 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2.43 +    break 2
    2.44 +  fi
    2.45 +done
    2.46 +  done
    2.47 +IFS=$as_save_IFS
    2.48 +
    2.49 +fi
    2.50 +fi
    2.51 +RC=$ac_cv_prog_RC
    2.52 +if test -n "$RC"; then
    2.53 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
    2.54 +$as_echo "$RC" >&6; }
    2.55 +else
    2.56 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2.57 +$as_echo "no" >&6; }
    2.58 +fi
    2.59 +
    2.60 +
    2.61 +fi
    2.62 +if test -z "$ac_cv_prog_RC"; then
    2.63 +  ac_ct_RC=$RC
    2.64 +  # Extract the first word of "windres", so it can be a program name with args.
    2.65 +set dummy windres; ac_word=$2
    2.66 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2.67 +$as_echo_n "checking for $ac_word... " >&6; }
    2.68 +if ${ac_cv_prog_ac_ct_RC+:} false; then :
    2.69 +  $as_echo_n "(cached) " >&6
    2.70 +else
    2.71 +  if test -n "$ac_ct_RC"; then
    2.72 +  ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
    2.73 +else
    2.74 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2.75 +for as_dir in $PATH
    2.76 +do
    2.77 +  IFS=$as_save_IFS
    2.78 +  test -z "$as_dir" && as_dir=.
    2.79 +    for ac_exec_ext in '' $ac_executable_extensions; do
    2.80 +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2.81 +    ac_cv_prog_ac_ct_RC="windres"
    2.82 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2.83 +    break 2
    2.84 +  fi
    2.85 +done
    2.86 +  done
    2.87 +IFS=$as_save_IFS
    2.88 +
    2.89 +fi
    2.90 +fi
    2.91 +ac_ct_RC=$ac_cv_prog_ac_ct_RC
    2.92 +if test -n "$ac_ct_RC"; then
    2.93 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
    2.94 +$as_echo "$ac_ct_RC" >&6; }
    2.95 +else
    2.96 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2.97 +$as_echo "no" >&6; }
    2.98 +fi
    2.99 +
   2.100 +  if test "x$ac_ct_RC" = x; then
   2.101 +    RC=""
   2.102 +  else
   2.103 +    case $cross_compiling:$ac_tool_warned in
   2.104 +yes:)
   2.105 +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2.106 +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2.107 +ac_tool_warned=yes ;;
   2.108 +esac
   2.109 +    RC=$ac_ct_RC
   2.110 +  fi
   2.111 +else
   2.112 +  RC="$ac_cv_prog_RC"
   2.113 +fi
   2.114 +
   2.115 +
   2.116 +
   2.117 +
   2.118 +# Source file extension for RC test sources.
   2.119 +ac_ext=rc
   2.120 +
   2.121 +# Object file extension for compiled RC test sources.
   2.122 +objext=o
   2.123 +objext_RC=$objext
   2.124 +
   2.125 +# Code to be used in simple compile tests
   2.126 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
   2.127 +
   2.128 +# Code to be used in simple link tests
   2.129 +lt_simple_link_test_code="$lt_simple_compile_test_code"
   2.130 +
   2.131 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
   2.132 +
   2.133 +
   2.134 +
   2.135 +
   2.136 +
   2.137 +
   2.138 +# If no C compiler was specified, use CC.
   2.139 +LTCC=${LTCC-"$CC"}
   2.140 +
   2.141 +# If no C compiler flags were specified, use CFLAGS.
   2.142 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   2.143 +
   2.144 +# Allow CC to be a program name with arguments.
   2.145 +compiler=$CC
   2.146 +
   2.147 +
   2.148 +# save warnings/boilerplate of simple test code
   2.149 +ac_outfile=conftest.$ac_objext
   2.150 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   2.151 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   2.152 +_lt_compiler_boilerplate=`cat conftest.err`
   2.153 +$RM conftest*
   2.154 +
   2.155 +ac_outfile=conftest.$ac_objext
   2.156 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
   2.157 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   2.158 +_lt_linker_boilerplate=`cat conftest.err`
   2.159 +$RM -r conftest*
   2.160 +
   2.161 +
   2.162 +# Allow CC to be a program name with arguments.
   2.163 +lt_save_CC="$CC"
   2.164 +lt_save_CFLAGS=$CFLAGS
   2.165 +lt_save_GCC=$GCC
   2.166 +GCC=
   2.167 +CC=${RC-"windres"}
   2.168 +CFLAGS=
   2.169 +compiler=$CC
   2.170 +compiler_RC=$CC
   2.171 +for cc_temp in $compiler""; do
   2.172 +  case $cc_temp in
   2.173 +    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
   2.174 +    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
   2.175 +    \-*) ;;
   2.176 +    *) break;;
   2.177 +  esac
   2.178 +done
   2.179 +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
   2.180 +
   2.181 +lt_cv_prog_compiler_c_o_RC=yes
   2.182 +
   2.183 +if test -n "$compiler"; then
   2.184 +  :
   2.185 +
   2.186 +
   2.187 +
   2.188 +fi
   2.189 +
   2.190 +GCC=$lt_save_GCC
   2.191 +ac_ext=c
   2.192 +ac_cpp='$CPP $CPPFLAGS'
   2.193 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2.194 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2.195 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2.196 +
   2.197 +CC=$lt_save_CC
   2.198 +CFLAGS=$lt_save_CFLAGS
   2.199 +
   2.200  
   2.201  LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
   2.202  LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
   2.203 @@ -15687,97 +15864,6 @@
   2.204    SET_MAKE="MAKE=${MAKE-make}"
   2.205  fi
   2.206  
   2.207 -if test -n "$ac_tool_prefix"; then
   2.208 -  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   2.209 -set dummy ${ac_tool_prefix}windres; ac_word=$2
   2.210 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2.211 -$as_echo_n "checking for $ac_word... " >&6; }
   2.212 -if ${ac_cv_prog_WINDRES+:} false; then :
   2.213 -  $as_echo_n "(cached) " >&6
   2.214 -else
   2.215 -  if test -n "$WINDRES"; then
   2.216 -  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   2.217 -else
   2.218 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2.219 -for as_dir in $PATH
   2.220 -do
   2.221 -  IFS=$as_save_IFS
   2.222 -  test -z "$as_dir" && as_dir=.
   2.223 -    for ac_exec_ext in '' $ac_executable_extensions; do
   2.224 -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2.225 -    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   2.226 -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2.227 -    break 2
   2.228 -  fi
   2.229 -done
   2.230 -  done
   2.231 -IFS=$as_save_IFS
   2.232 -
   2.233 -fi
   2.234 -fi
   2.235 -WINDRES=$ac_cv_prog_WINDRES
   2.236 -if test -n "$WINDRES"; then
   2.237 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   2.238 -$as_echo "$WINDRES" >&6; }
   2.239 -else
   2.240 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2.241 -$as_echo "no" >&6; }
   2.242 -fi
   2.243 -
   2.244 -
   2.245 -fi
   2.246 -if test -z "$ac_cv_prog_WINDRES"; then
   2.247 -  ac_ct_WINDRES=$WINDRES
   2.248 -  # Extract the first word of "windres", so it can be a program name with args.
   2.249 -set dummy windres; ac_word=$2
   2.250 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2.251 -$as_echo_n "checking for $ac_word... " >&6; }
   2.252 -if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
   2.253 -  $as_echo_n "(cached) " >&6
   2.254 -else
   2.255 -  if test -n "$ac_ct_WINDRES"; then
   2.256 -  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   2.257 -else
   2.258 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2.259 -for as_dir in $PATH
   2.260 -do
   2.261 -  IFS=$as_save_IFS
   2.262 -  test -z "$as_dir" && as_dir=.
   2.263 -    for ac_exec_ext in '' $ac_executable_extensions; do
   2.264 -  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   2.265 -    ac_cv_prog_ac_ct_WINDRES="windres"
   2.266 -    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2.267 -    break 2
   2.268 -  fi
   2.269 -done
   2.270 -  done
   2.271 -IFS=$as_save_IFS
   2.272 -
   2.273 -fi
   2.274 -fi
   2.275 -ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   2.276 -if test -n "$ac_ct_WINDRES"; then
   2.277 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   2.278 -$as_echo "$ac_ct_WINDRES" >&6; }
   2.279 -else
   2.280 -  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2.281 -$as_echo "no" >&6; }
   2.282 -fi
   2.283 -
   2.284 -  if test "x$ac_ct_WINDRES" = x; then
   2.285 -    WINDRES=":"
   2.286 -  else
   2.287 -    case $cross_compiling:$ac_tool_warned in
   2.288 -yes:)
   2.289 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2.290 -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2.291 -ac_tool_warned=yes ;;
   2.292 -esac
   2.293 -    WINDRES=$ac_ct_WINDRES
   2.294 -  fi
   2.295 -else
   2.296 -  WINDRES="$ac_cv_prog_WINDRES"
   2.297 -fi
   2.298  
   2.299  
   2.300  
   2.301 @@ -25546,10 +25632,10 @@
   2.302  
   2.303  VERSION_OBJECTS=`echo $VERSION_SOURCES`
   2.304  VERSION_DEPENDS=`echo $VERSION_SOURCES`
   2.305 -VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.o,g'`
   2.306 +VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[^ ]*/\([^ ]*\)\.rc,$(objects)/\1.lo,g'`
   2.307  VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([^ ]*\\)/\\([^ ]*\\)\\.rc,\\\\
   2.308 -\\$(objects)/\\2.o: \\1/\\2.rc \\$(objects)/.created\\\\
   2.309 -	\\$(WINDRES) \\$< \\$@,g"`
   2.310 +\\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
   2.311 +	\\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
   2.312  
   2.313  SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
   2.314  SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
   2.315 @@ -25647,7 +25733,6 @@
   2.316  
   2.317  
   2.318  
   2.319 -
   2.320  cat >Makefile.rules <<__EOF__
   2.321  
   2.322  # Build rules for objects
   2.323 @@ -26573,53 +26658,101 @@
   2.324  predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
   2.325  postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
   2.326  compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
   2.327 +LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
   2.328  LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
   2.329 +reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
   2.330  reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
   2.331 +reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.332  reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.333 +old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.334  old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.335 +compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
   2.336  compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
   2.337 +GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
   2.338  GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
   2.339 +lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
   2.340  lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
   2.341 +lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
   2.342  lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
   2.343 +lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
   2.344  lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
   2.345 +lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
   2.346  lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
   2.347 +lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
   2.348  lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
   2.349 +archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
   2.350  archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
   2.351 +enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
   2.352  enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
   2.353 +export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
   2.354  export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
   2.355 +whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
   2.356  whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
   2.357 +compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
   2.358  compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
   2.359 +old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.360  old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.361 +old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.362  old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.363 +archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.364  archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.365 +archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.366  archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.367 +module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.368  module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.369 +module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.370  module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.371 +with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
   2.372  with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
   2.373 +allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
   2.374  allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
   2.375 +no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
   2.376  no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
   2.377 +hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
   2.378  hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
   2.379 +hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
   2.380  hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
   2.381 +hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
   2.382  hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
   2.383 +hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
   2.384  hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
   2.385 +hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
   2.386  hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
   2.387 +hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
   2.388  hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
   2.389 +hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
   2.390  hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
   2.391 +inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
   2.392  inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
   2.393 +link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
   2.394  link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
   2.395 +always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
   2.396  always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
   2.397 +export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.398  export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.399 +exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
   2.400  exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
   2.401 +include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
   2.402  include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
   2.403 +prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.404  prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.405 +postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
   2.406  postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
   2.407 +file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
   2.408  file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
   2.409 +hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
   2.410  hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
   2.411 +compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
   2.412  compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
   2.413 +predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
   2.414  predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
   2.415 +postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
   2.416  postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
   2.417 +predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
   2.418  predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
   2.419 +postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
   2.420  postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
   2.421 +compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
   2.422  compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
   2.423  
   2.424  LTCC='$LTCC'
   2.425 @@ -26707,30 +26840,55 @@
   2.426  predeps \
   2.427  postdeps \
   2.428  compiler_lib_search_path \
   2.429 +LD_RC \
   2.430  LD_CXX \
   2.431 +reload_flag_RC \
   2.432  reload_flag_CXX \
   2.433 +compiler_RC \
   2.434  compiler_CXX \
   2.435 +lt_prog_compiler_no_builtin_flag_RC \
   2.436  lt_prog_compiler_no_builtin_flag_CXX \
   2.437 +lt_prog_compiler_pic_RC \
   2.438  lt_prog_compiler_pic_CXX \
   2.439 +lt_prog_compiler_wl_RC \
   2.440  lt_prog_compiler_wl_CXX \
   2.441 +lt_prog_compiler_static_RC \
   2.442  lt_prog_compiler_static_CXX \
   2.443 +lt_cv_prog_compiler_c_o_RC \
   2.444  lt_cv_prog_compiler_c_o_CXX \
   2.445 +export_dynamic_flag_spec_RC \
   2.446  export_dynamic_flag_spec_CXX \
   2.447 +whole_archive_flag_spec_RC \
   2.448  whole_archive_flag_spec_CXX \
   2.449 +compiler_needs_object_RC \
   2.450  compiler_needs_object_CXX \
   2.451 +with_gnu_ld_RC \
   2.452  with_gnu_ld_CXX \
   2.453 +allow_undefined_flag_RC \
   2.454  allow_undefined_flag_CXX \
   2.455 +no_undefined_flag_RC \
   2.456  no_undefined_flag_CXX \
   2.457 +hardcode_libdir_flag_spec_RC \
   2.458  hardcode_libdir_flag_spec_CXX \
   2.459 +hardcode_libdir_separator_RC \
   2.460  hardcode_libdir_separator_CXX \
   2.461 +exclude_expsyms_RC \
   2.462  exclude_expsyms_CXX \
   2.463 +include_expsyms_RC \
   2.464  include_expsyms_CXX \
   2.465 +file_list_spec_RC \
   2.466  file_list_spec_CXX \
   2.467 +compiler_lib_search_dirs_RC \
   2.468  compiler_lib_search_dirs_CXX \
   2.469 +predep_objects_RC \
   2.470  predep_objects_CXX \
   2.471 +postdep_objects_RC \
   2.472  postdep_objects_CXX \
   2.473 +predeps_RC \
   2.474  predeps_CXX \
   2.475 +postdeps_RC \
   2.476  postdeps_CXX \
   2.477 +compiler_lib_search_path_RC \
   2.478  compiler_lib_search_path_CXX; do
   2.479      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   2.480      *[\\\\\\\`\\"\\\$]*)
   2.481 @@ -26762,16 +26920,27 @@
   2.482  finish_cmds \
   2.483  sys_lib_search_path_spec \
   2.484  sys_lib_dlsearch_path_spec \
   2.485 +reload_cmds_RC \
   2.486  reload_cmds_CXX \
   2.487 +old_archive_cmds_RC \
   2.488  old_archive_cmds_CXX \
   2.489 +old_archive_from_new_cmds_RC \
   2.490  old_archive_from_new_cmds_CXX \
   2.491 +old_archive_from_expsyms_cmds_RC \
   2.492  old_archive_from_expsyms_cmds_CXX \
   2.493 +archive_cmds_RC \
   2.494  archive_cmds_CXX \
   2.495 +archive_expsym_cmds_RC \
   2.496  archive_expsym_cmds_CXX \
   2.497 +module_cmds_RC \
   2.498  module_cmds_CXX \
   2.499 +module_expsym_cmds_RC \
   2.500  module_expsym_cmds_CXX \
   2.501 +export_symbols_cmds_RC \
   2.502  export_symbols_cmds_CXX \
   2.503 +prelink_cmds_RC \
   2.504  prelink_cmds_CXX \
   2.505 +postlink_cmds_RC \
   2.506  postlink_cmds_CXX; do
   2.507      case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   2.508      *[\\\\\\\`\\"\\\$]*)
   2.509 @@ -26804,6 +26973,8 @@
   2.510  
   2.511  
   2.512  
   2.513 +
   2.514 +
   2.515  SUMMARY="$SUMMARY"
   2.516  
   2.517  _ACEOF
   2.518 @@ -27429,7 +27600,7 @@
   2.519  
   2.520  
   2.521  # The names of the tagged configurations supported by this script.
   2.522 -available_tags="CXX "
   2.523 +available_tags="RC CXX "
   2.524  
   2.525  # ### BEGIN LIBTOOL CONFIG
   2.526  
   2.527 @@ -28028,6 +28199,159 @@
   2.528  
   2.529      cat <<_LT_EOF >> "$ofile"
   2.530  
   2.531 +# ### BEGIN LIBTOOL TAG CONFIG: RC
   2.532 +
   2.533 +# The linker used to build libraries.
   2.534 +LD=$lt_LD_RC
   2.535 +
   2.536 +# How to create reloadable object files.
   2.537 +reload_flag=$lt_reload_flag_RC
   2.538 +reload_cmds=$lt_reload_cmds_RC
   2.539 +
   2.540 +# Commands used to build an old-style archive.
   2.541 +old_archive_cmds=$lt_old_archive_cmds_RC
   2.542 +
   2.543 +# A language specific compiler.
   2.544 +CC=$lt_compiler_RC
   2.545 +
   2.546 +# Is the compiler the GNU compiler?
   2.547 +with_gcc=$GCC_RC
   2.548 +
   2.549 +# Compiler flag to turn off builtin functions.
   2.550 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
   2.551 +
   2.552 +# Additional compiler flags for building library objects.
   2.553 +pic_flag=$lt_lt_prog_compiler_pic_RC
   2.554 +
   2.555 +# How to pass a linker flag through the compiler.
   2.556 +wl=$lt_lt_prog_compiler_wl_RC
   2.557 +
   2.558 +# Compiler flag to prevent dynamic linking.
   2.559 +link_static_flag=$lt_lt_prog_compiler_static_RC
   2.560 +
   2.561 +# Does compiler simultaneously support -c and -o options?
   2.562 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
   2.563 +
   2.564 +# Whether or not to add -lc for building shared libraries.
   2.565 +build_libtool_need_lc=$archive_cmds_need_lc_RC
   2.566 +
   2.567 +# Whether or not to disallow shared libs when runtime libs are static.
   2.568 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
   2.569 +
   2.570 +# Compiler flag to allow reflexive dlopens.
   2.571 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
   2.572 +
   2.573 +# Compiler flag to generate shared objects directly from archives.
   2.574 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
   2.575 +
   2.576 +# Whether the compiler copes with passing no objects directly.
   2.577 +compiler_needs_object=$lt_compiler_needs_object_RC
   2.578 +
   2.579 +# Create an old-style archive from a shared archive.
   2.580 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
   2.581 +
   2.582 +# Create a temporary old-style archive to link instead of a shared archive.
   2.583 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
   2.584 +
   2.585 +# Commands used to build a shared archive.
   2.586 +archive_cmds=$lt_archive_cmds_RC
   2.587 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
   2.588 +
   2.589 +# Commands used to build a loadable module if different from building
   2.590 +# a shared archive.
   2.591 +module_cmds=$lt_module_cmds_RC
   2.592 +module_expsym_cmds=$lt_module_expsym_cmds_RC
   2.593 +
   2.594 +# Whether we are building with GNU ld or not.
   2.595 +with_gnu_ld=$lt_with_gnu_ld_RC
   2.596 +
   2.597 +# Flag that allows shared libraries with undefined symbols to be built.
   2.598 +allow_undefined_flag=$lt_allow_undefined_flag_RC
   2.599 +
   2.600 +# Flag that enforces no undefined symbols.
   2.601 +no_undefined_flag=$lt_no_undefined_flag_RC
   2.602 +
   2.603 +# Flag to hardcode \$libdir into a binary during linking.
   2.604 +# This must work even if \$libdir does not exist
   2.605 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
   2.606 +
   2.607 +# Whether we need a single "-rpath" flag with a separated argument.
   2.608 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
   2.609 +
   2.610 +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
   2.611 +# DIR into the resulting binary.
   2.612 +hardcode_direct=$hardcode_direct_RC
   2.613 +
   2.614 +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
   2.615 +# DIR into the resulting binary and the resulting library dependency is
   2.616 +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
   2.617 +# library is relocated.
   2.618 +hardcode_direct_absolute=$hardcode_direct_absolute_RC
   2.619 +
   2.620 +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
   2.621 +# into the resulting binary.
   2.622 +hardcode_minus_L=$hardcode_minus_L_RC
   2.623 +
   2.624 +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
   2.625 +# into the resulting binary.
   2.626 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
   2.627 +
   2.628 +# Set to "yes" if building a shared library automatically hardcodes DIR
   2.629 +# into the library and all subsequent libraries and executables linked
   2.630 +# against it.
   2.631 +hardcode_automatic=$hardcode_automatic_RC
   2.632 +
   2.633 +# Set to yes if linker adds runtime paths of dependent libraries
   2.634 +# to runtime path list.
   2.635 +inherit_rpath=$inherit_rpath_RC
   2.636 +
   2.637 +# Whether libtool must link a program against all its dependency libraries.
   2.638 +link_all_deplibs=$link_all_deplibs_RC
   2.639 +
   2.640 +# Set to "yes" if exported symbols are required.
   2.641 +always_export_symbols=$always_export_symbols_RC
   2.642 +
   2.643 +# The commands to list exported symbols.
   2.644 +export_symbols_cmds=$lt_export_symbols_cmds_RC
   2.645 +
   2.646 +# Symbols that should not be listed in the preloaded symbols.
   2.647 +exclude_expsyms=$lt_exclude_expsyms_RC
   2.648 +
   2.649 +# Symbols that must always be exported.
   2.650 +include_expsyms=$lt_include_expsyms_RC
   2.651 +
   2.652 +# Commands necessary for linking programs (against libraries) with templates.
   2.653 +prelink_cmds=$lt_prelink_cmds_RC
   2.654 +
   2.655 +# Commands necessary for finishing linking programs.
   2.656 +postlink_cmds=$lt_postlink_cmds_RC
   2.657 +
   2.658 +# Specify filename containing input files.
   2.659 +file_list_spec=$lt_file_list_spec_RC
   2.660 +
   2.661 +# How to hardcode a shared library path into an executable.
   2.662 +hardcode_action=$hardcode_action_RC
   2.663 +
   2.664 +# The directories searched by this compiler when creating a shared library.
   2.665 +compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
   2.666 +
   2.667 +# Dependencies to place before and after the objects being linked to
   2.668 +# create a shared library.
   2.669 +predep_objects=$lt_predep_objects_RC
   2.670 +postdep_objects=$lt_postdep_objects_RC
   2.671 +predeps=$lt_predeps_RC
   2.672 +postdeps=$lt_postdeps_RC
   2.673 +
   2.674 +# The library search path used internally by the compiler when linking
   2.675 +# a shared library.
   2.676 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
   2.677 +
   2.678 +# ### END LIBTOOL TAG CONFIG: RC
   2.679 +_LT_EOF
   2.680 +
   2.681 +
   2.682 +    cat <<_LT_EOF >> "$ofile"
   2.683 +
   2.684  # ### BEGIN LIBTOOL TAG CONFIG: CXX
   2.685  
   2.686  # The linker used to build libraries.
     3.1 --- a/configure.ac	Fri Mar 20 19:51:54 2020 -0700
     3.2 +++ b/configure.ac	Fri Mar 20 20:33:26 2020 -0700
     3.3 @@ -34,6 +34,7 @@
     3.4  
     3.5  # libtool versioning
     3.6  LT_INIT([win32-dll])
     3.7 +LT_LANG([Windows Resource])
     3.8  
     3.9  LT_RELEASE=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION
    3.10  LT_CURRENT=`expr $SDL_MICRO_VERSION - $SDL_INTERFACE_AGE`
    3.11 @@ -55,7 +56,7 @@
    3.12  AC_PROG_CXX
    3.13  AC_PROG_INSTALL
    3.14  AC_PROG_MAKE_SET
    3.15 -AC_CHECK_TOOL(WINDRES, [windres], [:])
    3.16 +AC_LIBTOOL_RC
    3.17  PKG_PROG_PKG_CONFIG
    3.18  
    3.19  dnl Make sure that srcdir is a full pathname
    3.20 @@ -4217,10 +4218,10 @@
    3.21  
    3.22  VERSION_OBJECTS=`echo $VERSION_SOURCES`
    3.23  VERSION_DEPENDS=`echo $VERSION_SOURCES`
    3.24 -VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
    3.25 +VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.lo,g'`
    3.26  VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed "s,\\([[^ ]]*\\)/\\([[^ ]]*\\)\\.rc,\\\\
    3.27 -\\$(objects)/\\2.o: \\1/\\2.rc \\$(objects)/.created\\\\
    3.28 -	\\$(WINDRES) \\$< \\$@,g"`
    3.29 +\\$(objects)/\\2.lo: \\1/\\2.rc \\$(objects)/.created\\\\
    3.30 +	\\$(RUN_CMD_RC)\\$(LIBTOOL) --mode=compile --tag=RC \\$(RC) -i \\$< -o \\$@,g"`
    3.31  
    3.32  SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES`
    3.33  SDLMAIN_DEPENDS=`echo $SDLMAIN_SOURCES`
    3.34 @@ -4301,7 +4302,6 @@
    3.35  AC_SUBST(EXTRA_CFLAGS)
    3.36  AC_SUBST(BUILD_LDFLAGS)
    3.37  AC_SUBST(EXTRA_LDFLAGS)
    3.38 -AC_SUBST(WINDRES)
    3.39  AC_SUBST(WAYLAND_SCANNER)
    3.40  
    3.41  cat >Makefile.rules <<__EOF__