Description: Allow a more permissive gcc|g++ check for cross compilation. Compiler name may have prefix|suffix when cross compiling. Author: Agustin Martin adapted from original version by Helmut Grohne. Bug-Debian: http://bugs.debian.org/1027405 Forwarded: --- a/configure.in +++ b/configure.in @@ -416,9 +416,11 @@ fi AC_SUBST(MY_GETOPT_O) AC_SUBST(MY_GETOPT_SO_O) -if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then - REG_CHECK_GCC_VERSION_SCRIPT -fi +case "$ac_cv_prog_CC" in + *gcc*|*g++*) + REG_CHECK_GCC_VERSION_SCRIPT + ;; +esac dnl enable_posix_threads="yes" REG_CHECK_POSIX_THREADS --- a/configure +++ b/configure @@ -6342,7 +6342,8 @@ fi -if test "$ac_cv_prog_CC" = "gcc" -o "$ac_cv_prog_CC" = "g++"; then +case "$ac_cv_prog_CC" in + *gcc*|*g++*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands --version-script" >&5 $as_echo_n "checking whether gcc understands --version-script... " >&6; } @@ -6390,7 +6391,8 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mh_cv_version_script" >&5 $as_echo "$mh_cv_version_script" >&6; } -fi + ;; +esac MH_MT_LIBS=""