From: Akim Demaille Date: Wed, 20 Dec 2000 17:31:22 +0000 (+0000) Subject: * aclang.m4 (_AC_LANG_COMPILER_GNU): Use a tabulation to indent X-Git-Tag: autoconf-2.50~287 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edad08c3b2fcf1ee92c5d92a66f25d74f9962370;p=thirdparty%2Fautoconf.git * aclang.m4 (_AC_LANG_COMPILER_GNU): Use a tabulation to indent `choke me' so that the SGI Fortran compiler really chokes on it. From Ezra Peisach. --- diff --git a/ChangeLog b/ChangeLog index bac6a5f73..76a80c753 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-12-20 Akim Demaille + + * aclang.m4 (_AC_LANG_COMPILER_GNU): Use a tabulation to indent + `choke me' so that the SGI Fortran compiler really chokes on it. + From Ezra Peisach. + 2000-12-20 Akim Demaille * tests/foreign.at (Autoconf & Libtool): Ignore Libtool version diff --git a/aclang.m4 b/aclang.m4 index 95daf3337..f8736e89a 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -552,11 +552,18 @@ AC_MSG_RESULT([$cross_compiling]) # _AC_LANG_COMPILER_GNU # --------------------- # Check whether the compiler for the current language is GNU. +# +# It doesn't seem necessary right now to have a different source +# according to the current language, since this works fine. Some day +# it might be needed. Nevertheless, pay attention to the fact that +# the position of `choke me' on the seventh column is meant: otherwise +# some Fortran compilers (e.g., SGI) might consider it's a +# continuation line, and warn instead of reporting an error. m4_define([_AC_LANG_COMPILER_GNU], [AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler], [ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu], [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__ - choke me + choke me #endif ]])], [ac_compiler_gnu=yes], diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 95daf3337..f8736e89a 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -552,11 +552,18 @@ AC_MSG_RESULT([$cross_compiling]) # _AC_LANG_COMPILER_GNU # --------------------- # Check whether the compiler for the current language is GNU. +# +# It doesn't seem necessary right now to have a different source +# according to the current language, since this works fine. Some day +# it might be needed. Nevertheless, pay attention to the fact that +# the position of `choke me' on the seventh column is meant: otherwise +# some Fortran compilers (e.g., SGI) might consider it's a +# continuation line, and warn instead of reporting an error. m4_define([_AC_LANG_COMPILER_GNU], [AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler], [ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu], [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__ - choke me + choke me #endif ]])], [ac_compiler_gnu=yes], diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 95daf3337..f8736e89a 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -552,11 +552,18 @@ AC_MSG_RESULT([$cross_compiling]) # _AC_LANG_COMPILER_GNU # --------------------- # Check whether the compiler for the current language is GNU. +# +# It doesn't seem necessary right now to have a different source +# according to the current language, since this works fine. Some day +# it might be needed. Nevertheless, pay attention to the fact that +# the position of `choke me' on the seventh column is meant: otherwise +# some Fortran compilers (e.g., SGI) might consider it's a +# continuation line, and warn instead of reporting an error. m4_define([_AC_LANG_COMPILER_GNU], [AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler], [ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu], [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__ - choke me + choke me #endif ]])], [ac_compiler_gnu=yes], diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 95daf3337..f8736e89a 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -552,11 +552,18 @@ AC_MSG_RESULT([$cross_compiling]) # _AC_LANG_COMPILER_GNU # --------------------- # Check whether the compiler for the current language is GNU. +# +# It doesn't seem necessary right now to have a different source +# according to the current language, since this works fine. Some day +# it might be needed. Nevertheless, pay attention to the fact that +# the position of `choke me' on the seventh column is meant: otherwise +# some Fortran compilers (e.g., SGI) might consider it's a +# continuation line, and warn instead of reporting an error. m4_define([_AC_LANG_COMPILER_GNU], [AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler], [ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu], [_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__ - choke me + choke me #endif ]])], [ac_compiler_gnu=yes],