]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4: (AC_RUN_IFELSE, AC_LINK_IFELSE, AC_COMPILE_IFELSE):
authorAkim Demaille <akim@epita.fr>
Fri, 4 Aug 2000 09:04:56 +0000 (09:04 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 4 Aug 2000 09:04:56 +0000 (09:04 +0000)
Don't create the source file if none is given, and in this case,
don't remove it either.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 20713e16a06c837c58f43c0d0d078346a93d7cd8..34037a9ea797691cea6ba99303443e0cb4bc398b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2000-08-04  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4: (AC_RUN_IFELSE, AC_LINK_IFELSE, AC_COMPILE_IFELSE):
+       Don't create the source file if none is given, and in this case,
+       don't remove it either.
+
 2000-08-04  Akim Demaille  <akim@epita.fr>
 
        * libm4.m4 (m4_ifvanl): New macro.
index c8a4002f19e028f555b0bf867d9ef1c34b29a9f3..80d1c466f11b6832e52d374fa8f6befc43316e52 100644 (file)
@@ -3283,17 +3283,15 @@ rm -f conftest*
 # --------------------------------------------------------------------
 # Try to compile PROGRAM.
 AC_DEFUN([AC_COMPILE_IFELSE],
-[AC_LANG_CONFTEST([$1])
+[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_compile) && test -s conftest.$ac_objext; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
   cat conftest.$ac_ext >&AC_FD_LOG
-ifval([$3],
-[  $3
-])dnl
+m4_ifvanl([$3],[  $3])dnl
 fi
-rm -f conftest*[]dnl
+rm -f conftest.$ac_objext ifval([$1], [conftest.$ac_ext])[]dnl
 ])# AC_COMPILE_IFELSE
 
 
@@ -3314,17 +3312,16 @@ AC_DEFUN([AC_TRY_COMPILE],
 # -----------------------------------------------------------------
 # Try to link PROGRAM.
 AC_DEFUN([AC_LINK_IFELSE],
-[AC_LANG_CONFTEST([$1])
+[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
   cat conftest.$ac_ext >&AC_FD_LOG
-ifval([$3],
-[  $3
-])dnl
+m4_ifvanl([$3], [  $3])dnl
 fi
-rm -f conftest*[]dnl
+rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
+                                                   [conftest.$ac_ext])[]dnl
 ])# AC_LINK_IFELSE
 
 
@@ -3362,18 +3359,17 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], [$4], [$5])
 # -----------------------------------------------------------
 # Compile, link, and run.
 AC_DEFUN([AC_RUN_IFELSE],
-[AC_LANG_CONFTEST([$1])
+[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_link) &&
    test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
   cat conftest.$ac_ext >&AC_FD_LOG
-ifval([$3],
-[  $3
-])dnl
+m4_ifvanl([$3], [  $3])dnl
 fi
-rm -f conftest*[]dnl
+rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
+                                                   [conftest.$ac_ext])[]dnl
 ])# AC_RUN_IFELSE
 
 
index c8a4002f19e028f555b0bf867d9ef1c34b29a9f3..80d1c466f11b6832e52d374fa8f6befc43316e52 100644 (file)
@@ -3283,17 +3283,15 @@ rm -f conftest*
 # --------------------------------------------------------------------
 # Try to compile PROGRAM.
 AC_DEFUN([AC_COMPILE_IFELSE],
-[AC_LANG_CONFTEST([$1])
+[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_compile) && test -s conftest.$ac_objext; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
   cat conftest.$ac_ext >&AC_FD_LOG
-ifval([$3],
-[  $3
-])dnl
+m4_ifvanl([$3],[  $3])dnl
 fi
-rm -f conftest*[]dnl
+rm -f conftest.$ac_objext ifval([$1], [conftest.$ac_ext])[]dnl
 ])# AC_COMPILE_IFELSE
 
 
@@ -3314,17 +3312,16 @@ AC_DEFUN([AC_TRY_COMPILE],
 # -----------------------------------------------------------------
 # Try to link PROGRAM.
 AC_DEFUN([AC_LINK_IFELSE],
-[AC_LANG_CONFTEST([$1])
+[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
   cat conftest.$ac_ext >&AC_FD_LOG
-ifval([$3],
-[  $3
-])dnl
+m4_ifvanl([$3], [  $3])dnl
 fi
-rm -f conftest*[]dnl
+rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
+                                                   [conftest.$ac_ext])[]dnl
 ])# AC_LINK_IFELSE
 
 
@@ -3362,18 +3359,17 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[$2]], [[$3]])], [$4], [$5])
 # -----------------------------------------------------------
 # Compile, link, and run.
 AC_DEFUN([AC_RUN_IFELSE],
-[AC_LANG_CONFTEST([$1])
+[m4_ifvanl([$1], [AC_LANG_CONFTEST([$1])])dnl
 if AC_TRY_EVAL(ac_link) &&
    test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null; then
   m4_default([$2], :)
 else
   echo "configure: failed program was:" >&AC_FD_LOG
   cat conftest.$ac_ext >&AC_FD_LOG
-ifval([$3],
-[  $3
-])dnl
+m4_ifvanl([$3], [  $3])dnl
 fi
-rm -f conftest*[]dnl
+rm -f conftest.$ac_objext conftest$ac_exeext ifval([$1],
+                                                   [conftest.$ac_ext])[]dnl
 ])# AC_RUN_IFELSE