From: Ralf Wildenhues Date: Sun, 13 Sep 2009 19:16:15 +0000 (+0200) Subject: DJGPP fix: remove both conftest and conftest.exe. X-Git-Tag: v2.65~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ceff70a2584db560f42e59c289813ba6f9aa1047;p=thirdparty%2Fautoconf.git DJGPP fix: remove both conftest and conftest.exe. The DJGPP compiler may create both `a.out' and `a.exe' without -o, and both `conftest' and `conftest.exe' with `-o conftest', but not with `-o conftest.exe'. * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove `conftest' without $ac_exeext suffix. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 1617ee420..93a5bc893 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2009-09-14 Ralf Wildenhues + DJGPP fix: remove both conftest and conftest.exe. + The DJGPP compiler may create both `a.out' and `a.exe' without -o, + and both `conftest' and `conftest.exe' with `-o conftest', but not + with `-o conftest.exe'. + * lib/autoconf/lang.m4 (_AC_COMPILER_EXEEXT_O): Also remove + `conftest' without $ac_exeext suffix. + DJGPP fix: do not try to source /dev/null as cache or site file. * lib/autoconf/general.m4 (AC_SITE_LOAD, AC_CACHE_LOAD): Do not load the cache or site file if it is `/dev/null', as DJGPP treats diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 8fd292585..5b44c684f 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -614,7 +614,7 @@ for ac_file in conftest.exe conftest conftest.*; do esac done], [AC_MSG_FAILURE([cannot compute suffix of executables: cannot compile and link])]) -rm -f conftest$ac_cv_exeext +rm -f conftest conftest$ac_cv_exeext AC_MSG_RESULT([$ac_cv_exeext]) ])# _AC_COMPILER_EXEEXT_O