Import patch from FSF gcc sources to add support for building windmc tool.

This commit is contained in:
Nick Clifton 2007-07-09 09:16:05 +00:00
parent 8d2008a317
commit bffcbe34be
6 changed files with 1622 additions and 1182 deletions

View File

@ -1,3 +1,11 @@
2007-07-09 Kai Tietz <kai.tietz@onevision.com>
* Makefile.def: Add windmc tool to build.
* Makefile.tpl: Likewise.
* configure.ac: Likewise.
* Makefile.in: Regenerate.
* configure: Regenerate.
2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
* lt~obsolete.m4: New. Import from 20070318 libtool.

View File

@ -260,6 +260,7 @@ flags_to_pass = { flag= OBJDUMP_FOR_TARGET ; };
flags_to_pass = { flag= RANLIB_FOR_TARGET ; };
flags_to_pass = { flag= STRIP_FOR_TARGET ; };
flags_to_pass = { flag= WINDRES_FOR_TARGET ; };
flags_to_pass = { flag= WINDMC_FOR_TARGET ; };
// Miscellaneous
flags_to_pass = { flag= LANGUAGES ; optional=true ; };

File diff suppressed because it is too large Load Diff

View File

@ -136,7 +136,8 @@ BUILD_EXPORTS = \
LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
NM="$(NM_FOR_BUILD)"; export NM; \
RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES; \
WINDMC="$(WINDMC_FOR_BUILD)"; export WINDMC;
# This is the list of directories to built for the host system.
SUBDIRS = @configdirs@
@ -165,6 +166,7 @@ HOST_EXPORTS = \
NM="$(NM)"; export NM; \
RANLIB="$(RANLIB)"; export RANLIB; \
WINDRES="$(WINDRES)"; export WINDRES; \
WINDMC="$(WINDMC)"; export WINDMC; \
OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
@ -220,6 +222,7 @@ BASE_TARGET_EXPORTS = \
RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
WINDMC="$(WINDMC_FOR_TARGET)"; export WINDMC; \
$(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
RAW_CXX_TARGET_EXPORTS = \
@ -298,6 +301,7 @@ OBJDUMP = @OBJDUMP@
RANLIB = @RANLIB@
STRIP = @STRIP@
WINDRES = @WINDRES@
WINDMC = @WINDMC@
GNATBIND = @GNATBIND@
GNATMAKE = @GNATMAKE@
@ -347,6 +351,7 @@ OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
WINDMC_FOR_TARGET=@WINDMC_FOR_TARGET@
COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
@ -434,7 +439,8 @@ EXTRA_HOST_FLAGS = \
'OBJDUMP=$(OBJDUMP)' \
'RANLIB=$(RANLIB)' \
'STRIP=$(STRIP)' \
'WINDRES=$(WINDRES)'
'WINDRES=$(WINDRES)' \
'WINDMC=$(WINDMC)'
FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
@ -477,7 +483,8 @@ EXTRA_TARGET_FLAGS = \
'NM=$(COMPILER_NM_FOR_TARGET)' \
'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
'RANLIB=$$(RANLIB_FOR_TARGET)' \
'WINDRES=$$(WINDRES_FOR_TARGET)'
'WINDRES=$$(WINDRES_FOR_TARGET)' \
'WINDMC=$$(WINDMC_FOR_TARGET)'
TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
@ -1005,7 +1012,7 @@ maybe-[+make_target+]-[+module+]: [+make_target+]-[+module+]
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
[+make_target+]) \
|| exit 1
[+ ENDIF +]
@ -1121,7 +1128,7 @@ ENDIF raw_cxx +]
$(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
"CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
"RANLIB=$${RANLIB}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
"DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
[+extra_make_flags+] [+make_target+]) \
|| exit 1
[+ ENDIF +]

415
configure vendored
View File

@ -272,7 +272,7 @@ PACKAGE_STRING=
PACKAGE_BUGREPORT=
ac_unique_file="move-if-change"
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_noncanonical host_noncanonical target_noncanonical host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN LN_S TOPLEVEL_CONFIGURE_ARGUMENTS build_libsubdir build_subdir host_subdir target_subdir CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX GNATBIND ac_ct_GNATBIND GNATMAKE ac_ct_GNATMAKE do_compare gmplibs gmpinc stage1_languages SYSROOT_CFLAGS_FOR_TARGET RPATH_ENVVAR tooldir build_tooldir CONFIGURE_GDB_TK GDB_TK INSTALL_GDB_TK build_configargs build_configdirs host_configargs configdirs target_configargs CC_FOR_BUILD config_shell YACC BISON M4 LEX FLEX MAKEINFO EXPECT RUNTEST AR AS DLLTOOL LD LIPO NM RANLIB STRIP WINDRES WINDMC OBJCOPY OBJDUMP CFLAGS_FOR_BUILD CC_FOR_TARGET CXX_FOR_TARGET GCC_FOR_TARGET GCJ_FOR_TARGET GFORTRAN_FOR_TARGET AR_FOR_TARGET AS_FOR_TARGET DLLTOOL_FOR_TARGET LD_FOR_TARGET LIPO_FOR_TARGET NM_FOR_TARGET OBJDUMP_FOR_TARGET RANLIB_FOR_TARGET STRIP_FOR_TARGET WINDRES_FOR_TARGET WINDMC_FOR_TARGET RAW_CXX_FOR_TARGET FLAGS_FOR_TARGET COMPILER_AS_FOR_TARGET COMPILER_LD_FOR_TARGET COMPILER_NM_FOR_TARGET MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT stage1_cflags stage1_checking stage2_werror_flag datarootdir docdir pdfdir htmldir LIBOBJS LTLIBOBJS'
ac_subst_files='serialization_dependencies host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag'
# Initialize some variables set by options.
@ -773,6 +773,10 @@ ac_env_WINDRES_set=${WINDRES+set}
ac_env_WINDRES_value=$WINDRES
ac_cv_env_WINDRES_set=${WINDRES+set}
ac_cv_env_WINDRES_value=$WINDRES
ac_env_WINDMC_set=${WINDMC+set}
ac_env_WINDMC_value=$WINDMC
ac_cv_env_WINDMC_set=${WINDMC+set}
ac_cv_env_WINDMC_value=$WINDMC
ac_env_OBJCOPY_set=${OBJCOPY+set}
ac_env_OBJCOPY_value=$OBJCOPY
ac_cv_env_OBJCOPY_set=${OBJCOPY+set}
@ -841,6 +845,10 @@ ac_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
ac_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
ac_cv_env_WINDRES_FOR_TARGET_set=${WINDRES_FOR_TARGET+set}
ac_cv_env_WINDRES_FOR_TARGET_value=$WINDRES_FOR_TARGET
ac_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
ac_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
ac_cv_env_WINDMC_FOR_TARGET_set=${WINDMC_FOR_TARGET+set}
ac_cv_env_WINDMC_FOR_TARGET_value=$WINDMC_FOR_TARGET
#
# Report the --help message.
@ -982,6 +990,7 @@ Some influential environment variables:
RANLIB RANLIB for the host
STRIP STRIP for the host
WINDRES WINDRES for the host
WINDMC WINDMC for the host
OBJCOPY OBJCOPY for the host
OBJDUMP OBJDUMP for the host
CC_FOR_TARGET
@ -1014,6 +1023,8 @@ Some influential environment variables:
STRIP for the target
WINDRES_FOR_TARGET
WINDRES for the target
WINDMC_FOR_TARGET
WINDMC for the target
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
@ -7436,6 +7447,141 @@ fi
if test -n "$WINDMC"; then
ac_cv_prog_WINDMC=$WINDMC
elif test -n "$ac_cv_prog_WINDMC"; then
WINDMC=$ac_cv_prog_WINDMC
fi
if test -n "$ac_cv_prog_WINDMC"; then
for ncn_progname in windmc; do
# Extract the first word of "${ncn_progname}", so it can be a program name with args.
set dummy ${ncn_progname}; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_WINDMC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$WINDMC"; then
ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_WINDMC="${ncn_progname}"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
WINDMC=$ac_cv_prog_WINDMC
if test -n "$WINDMC"; then
echo "$as_me:$LINENO: result: $WINDMC" >&5
echo "${ECHO_T}$WINDMC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
done
fi
for ncn_progname in windmc; do
if test -n "$ncn_tool_prefix"; then
# Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_WINDMC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$WINDMC"; then
ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
WINDMC=$ac_cv_prog_WINDMC
if test -n "$WINDMC"; then
echo "$as_me:$LINENO: result: $WINDMC" >&5
echo "${ECHO_T}$WINDMC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
# Extract the first word of "${ncn_progname}", so it can be a program name with args.
set dummy ${ncn_progname}; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_WINDMC+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$WINDMC"; then
ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_WINDMC="${ncn_progname}"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
WINDMC=$ac_cv_prog_WINDMC
if test -n "$WINDMC"; then
echo "$as_me:$LINENO: result: $WINDMC" >&5
echo "${ECHO_T}$WINDMC" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
test -n "$ac_cv_prog_WINDMC" && break
done
if test -z "$ac_cv_prog_WINDMC" ; then
set dummy windmc
if test $build = $host ; then
WINDMC="$2"
else
WINDMC="${ncn_tool_prefix}$2"
fi
fi
if test -n "$OBJCOPY"; then
ac_cv_prog_OBJCOPY=$OBJCOPY
elif test -n "$ac_cv_prog_OBJCOPY"; then
@ -10743,6 +10889,229 @@ else
fi
if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
if test -n "$with_build_time_tools"; then
echo "$as_me:$LINENO: checking for windmc in $with_build_time_tools" >&5
echo $ECHO_N "checking for windmc in $with_build_time_tools... $ECHO_C" >&6
if test -x $with_build_time_tools/windmc; then
WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
echo "$as_me:$LINENO: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
echo "${ECHO_T}$ac_cv_path_WINDMC_FOR_TARGET" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
elif test $build != $host && test $have_gcc_for_target = yes; then
WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
fi
fi
if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
# Extract the first word of "windmc", so it can be a program name with args.
set dummy windmc; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $WINDMC_FOR_TARGET in
[\\/]* | ?:[\\/]*)
ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $gcc_cv_tool_dirs
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
;;
esac
fi
WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
if test -n "$WINDMC_FOR_TARGET"; then
echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
if test -n "$WINDMC_FOR_TARGET"; then
ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
fi
if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
for ncn_progname in windmc; do
# Extract the first word of "${ncn_progname}", so it can be a program name with args.
set dummy ${ncn_progname}; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$WINDMC_FOR_TARGET"; then
ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
if test -n "$WINDMC_FOR_TARGET"; then
echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
done
fi
if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
for ncn_progname in windmc; do
echo "$as_me:$LINENO: checking for ${ncn_progname} in $with_build_time_tools" >&5
echo $ECHO_N "checking for ${ncn_progname} in $with_build_time_tools... $ECHO_C" >&6
if test -x $with_build_time_tools/${ncn_progname}; then
ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
echo "$as_me:$LINENO: result: yes" >&5
echo "${ECHO_T}yes" >&6
break
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
done
fi
if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
for ncn_progname in windmc; do
if test -n "$ncn_target_tool_prefix"; then
# Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$WINDMC_FOR_TARGET"; then
ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
if test -n "$WINDMC_FOR_TARGET"; then
echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
# Extract the first word of "${ncn_progname}", so it can be a program name with args.
set dummy ${ncn_progname}; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if test -n "$WINDMC_FOR_TARGET"; then
ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
fi
fi
WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
if test -n "$WINDMC_FOR_TARGET"; then
echo "$as_me:$LINENO: result: $WINDMC_FOR_TARGET" >&5
echo "${ECHO_T}$WINDMC_FOR_TARGET" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
fi
test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
done
fi
if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
set dummy windmc
if test $build = $target ; then
WINDMC_FOR_TARGET="$2"
else
WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
fi
else
WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
fi
else
WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
fi
RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
echo "$as_me:$LINENO: checking where to find the target ar" >&5
@ -11418,6 +11787,48 @@ echo "${ECHO_T}pre-installed" >&6
fi
fi
echo "$as_me:$LINENO: checking where to find the target windmc" >&5
echo $ECHO_N "checking where to find the target windmc... $ECHO_C" >&6
if test "x${build}" != "x${host}" ; then
if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
# We already found the complete path
ac_dir=`dirname $WINDMC_FOR_TARGET`
echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
echo "${ECHO_T}pre-installed in $ac_dir" >&6
else
# Canadian cross, just use what we found
echo "$as_me:$LINENO: result: pre-installed" >&5
echo "${ECHO_T}pre-installed" >&6
fi
else
ok=yes
case " ${configdirs} " in
*" binutils "*) ;;
*) ok=no ;;
esac
if test $ok = yes; then
# An in-tree tool is available and we can use it
WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
echo "$as_me:$LINENO: result: just compiled" >&5
echo "${ECHO_T}just compiled" >&6
elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
# We already found the complete path
ac_dir=`dirname $WINDMC_FOR_TARGET`
echo "$as_me:$LINENO: result: pre-installed in $ac_dir" >&5
echo "${ECHO_T}pre-installed in $ac_dir" >&6
elif test "x$target" = "x$host"; then
# We can use an host tool
WINDMC_FOR_TARGET='$(WINDMC)'
echo "$as_me:$LINENO: result: host tool" >&5
echo "${ECHO_T}host tool" >&6
else
# We need a cross tool
echo "$as_me:$LINENO: result: pre-installed" >&5
echo "${ECHO_T}pre-installed" >&6
fi
fi
@ -12333,6 +12744,7 @@ s,@NM@,$NM,;t t
s,@RANLIB@,$RANLIB,;t t
s,@STRIP@,$STRIP,;t t
s,@WINDRES@,$WINDRES,;t t
s,@WINDMC@,$WINDMC,;t t
s,@OBJCOPY@,$OBJCOPY,;t t
s,@OBJDUMP@,$OBJDUMP,;t t
s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
@ -12351,6 +12763,7 @@ s,@OBJDUMP_FOR_TARGET@,$OBJDUMP_FOR_TARGET,;t t
s,@RANLIB_FOR_TARGET@,$RANLIB_FOR_TARGET,;t t
s,@STRIP_FOR_TARGET@,$STRIP_FOR_TARGET,;t t
s,@WINDRES_FOR_TARGET@,$WINDRES_FOR_TARGET,;t t
s,@WINDMC_FOR_TARGET@,$WINDMC_FOR_TARGET,;t t
s,@RAW_CXX_FOR_TARGET@,$RAW_CXX_FOR_TARGET,;t t
s,@FLAGS_FOR_TARGET@,$FLAGS_FOR_TARGET,;t t
s,@COMPILER_AS_FOR_TARGET@,$COMPILER_AS_FOR_TARGET,;t t

View File

@ -2439,6 +2439,7 @@ NCN_STRICT_CHECK_TOOLS(NM, nm)
NCN_STRICT_CHECK_TOOLS(RANLIB, ranlib, :)
NCN_STRICT_CHECK_TOOLS(STRIP, strip, :)
NCN_STRICT_CHECK_TOOLS(WINDRES, windres)
NCN_STRICT_CHECK_TOOLS(WINDMC, windmc)
NCN_STRICT_CHECK_TOOLS(OBJCOPY, objcopy)
NCN_STRICT_CHECK_TOOLS(OBJDUMP, objdump)
AC_SUBST(CC)
@ -2476,6 +2477,7 @@ ACX_CHECK_INSTALLED_TARGET_TOOL(OBJDUMP_FOR_TARGET, objdump)
ACX_CHECK_INSTALLED_TARGET_TOOL(RANLIB_FOR_TARGET, ranlib, :)
ACX_CHECK_INSTALLED_TARGET_TOOL(STRIP_FOR_TARGET, strip)
ACX_CHECK_INSTALLED_TARGET_TOOL(WINDRES_FOR_TARGET, windres)
ACX_CHECK_INSTALLED_TARGET_TOOL(WINDMC_FOR_TARGET, windmc)
RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
@ -2501,6 +2503,7 @@ GCC_TARGET_TOOL(objdump, OBJDUMP_FOR_TARGET, OBJDUMP, [binutils/objdump])
GCC_TARGET_TOOL(ranlib, RANLIB_FOR_TARGET, RANLIB, [binutils/ranlib])
GCC_TARGET_TOOL(strip, STRIP_FOR_TARGET, STRIP, [binutils/strip])
GCC_TARGET_TOOL(windres, WINDRES_FOR_TARGET, WINDRES, [binutils/windres])
GCC_TARGET_TOOL(windmc, WINDMC_FOR_TARGET, WINDMC, [binutils/windmc])
AC_SUBST(FLAGS_FOR_TARGET)
AC_SUBST(RAW_CXX_FOR_TARGET)