+2000-10-17 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (_AC_COMPILE_IFELSE, _AC_LINK_IFELSE)
+ (_AC_RUN_IFELSE): Before compiling, remove the files expected to
+ be produced.
+ (_AC_LINK_IFELSE, _AC_RUN_IFELSE): You don't create object files,
+ so don't remove them.
+
+
2000-10-17 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (AC_FATAL): Use _AC_EXPANSION_STACK_DUMP.
# This macro can be used during the selection of a compiler.
define([_AC_COMPILE_IFELSE],
[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest.$ac_objext
if AC_TRY_EVAL(ac_compile) && test -s conftest.$ac_objext; then
m4_default([$2], :)
else
# This macro can be used during the selection of a compiler.
define([_AC_LINK_IFELSE],
[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest.$ac_objext conftest$ac_exeext
if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
m4_default([$2], :)
else
cat conftest.$ac_ext >&AC_FD_LOG
m4_ifvanl([$3], [ $3])dnl
fi
-rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
- [conftest.$ac_ext])[]dnl
+rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
])# _AC_LINK_IFELSE
# This macro can be used during the selection of a compiler.
define([_AC_RUN_IFELSE],
[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest$ac_exeext
if AC_TRY_EVAL(ac_link) &&
test -s conftest$ac_exeext && (./conftest$ac_exeext; exit) 2>/dev/null; then
m4_default([$2], :)
cat conftest.$ac_ext >&AC_FD_LOG
m4_ifvanl([$3], [ $3])dnl
fi
-rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
- [conftest.$ac_ext])[]dnl
+rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
])# _AC_RUN_IFELSE
# This macro can be used during the selection of a compiler.
define([_AC_COMPILE_IFELSE],
[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest.$ac_objext
if AC_TRY_EVAL(ac_compile) && test -s conftest.$ac_objext; then
m4_default([$2], :)
else
# This macro can be used during the selection of a compiler.
define([_AC_LINK_IFELSE],
[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest.$ac_objext conftest$ac_exeext
if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
m4_default([$2], :)
else
cat conftest.$ac_ext >&AC_FD_LOG
m4_ifvanl([$3], [ $3])dnl
fi
-rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
- [conftest.$ac_ext])[]dnl
+rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
])# _AC_LINK_IFELSE
# This macro can be used during the selection of a compiler.
define([_AC_RUN_IFELSE],
[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
+rm -f conftest$ac_exeext
if AC_TRY_EVAL(ac_link) &&
test -s conftest$ac_exeext && (./conftest$ac_exeext; exit) 2>/dev/null; then
m4_default([$2], :)
cat conftest.$ac_ext >&AC_FD_LOG
m4_ifvanl([$3], [ $3])dnl
fi
-rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
- [conftest.$ac_ext])[]dnl
+rm -f conftest$ac_exeext ifval([$1], [conftest.$ac_ext])[]dnl
])# _AC_RUN_IFELSE