From: Roland McGrath Date: Sat, 3 Sep 1994 23:46:58 +0000 (+0000) Subject: (AC_TRY_RUN): Always warn if no cross-compile default is given. [by djm] X-Git-Tag: fsf-origin~485 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91afa15ab1e856a725b28394eddb9fe73e6d3470;p=thirdparty%2Fautoconf.git (AC_TRY_RUN): Always warn if no cross-compile default is given. [by djm] (AC_OUTPUT_FILES): Write CONFIG_FILES defn unquoted, so $1 can contain references to shell variables in configure. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index 878b7c02c..1eb3fbf0c 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1234,9 +1234,8 @@ AC_DEFUN(AC_TRY_RUN, [AC_REQUIRE([AC_C_CROSS])dnl if test "$cross_compiling" = yes; then ifelse([$4], , - [ifdef([AC_PROVIDE_AC_CANONICAL_SYSTEM], - [errprint(__file__:__line__: warning: test program without default prevents cross compiling -)])dnl + [errprint(__file__:__line__: warning: test program without default to allow cross compiling +)dnl AC_MSG_ERROR(can not run test program while cross compiling)], [$4]) else @@ -1532,9 +1531,11 @@ dnl Insert the sed substitutions of variables. undivert(AC_DIVERSION_SED) CEOF EOF -cat >> ${CONFIG_STATUS} <<\EOF +cat >> ${CONFIG_STATUS} <> ${CONFIG_STATUS} <<\EOF for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then # Support "outfile[:infile]", defaulting infile="outfile.in". case "$ac_file" in diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 878b7c02c..1eb3fbf0c 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1234,9 +1234,8 @@ AC_DEFUN(AC_TRY_RUN, [AC_REQUIRE([AC_C_CROSS])dnl if test "$cross_compiling" = yes; then ifelse([$4], , - [ifdef([AC_PROVIDE_AC_CANONICAL_SYSTEM], - [errprint(__file__:__line__: warning: test program without default prevents cross compiling -)])dnl + [errprint(__file__:__line__: warning: test program without default to allow cross compiling +)dnl AC_MSG_ERROR(can not run test program while cross compiling)], [$4]) else @@ -1532,9 +1531,11 @@ dnl Insert the sed substitutions of variables. undivert(AC_DIVERSION_SED) CEOF EOF -cat >> ${CONFIG_STATUS} <<\EOF +cat >> ${CONFIG_STATUS} <> ${CONFIG_STATUS} <<\EOF for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then # Support "outfile[:infile]", defaulting infile="outfile.in". case "$ac_file" in