[openssh-commits] [openssh] 01/01: Add AC_LANG_PROGRAM to AC_COMPILE_IFELSE.

git+noreply at mindrot.org git+noreply at mindrot.org
Mon Mar 12 19:19:30 AEDT 2018


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit fbd733ab7adc907118a6cf56c08ed90c7000043f
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Mon Mar 12 19:17:26 2018 +1100

    Add AC_LANG_PROGRAM to AC_COMPILE_IFELSE.
    
    The recently added MIPS ABI tests need AC_LANG_PROGRAM to prevent
    warnings from autoconf.  Pointed out by klausz at haus-gisela.de.
---
 configure.ac | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 85c634c5..54e187aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -822,19 +822,19 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
 	# Obtain MIPS ABI
 	case "$host" in
 	mips*)
-		AC_COMPILE_IFELSE([
+		AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #if _MIPS_SIM != _ABIO32
 #error
 #endif
-			],[mips_abi="o32"],[AC_COMPILE_IFELSE([
+			]])],[mips_abi="o32"],[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #if _MIPS_SIM != _ABIN32
 #error
 #endif
-				],[mips_abi="n32"],[AC_COMPILE_IFELSE([
+				]])],[mips_abi="n32"],[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
 #if _MIPS_SIM != _ABI64
 #error
 #endif
-					],[mips_abi="n64"],[AC_MSG_ERROR([unknown MIPS ABI])
+					]])],[mips_abi="n64"],[AC_MSG_ERROR([unknown MIPS ABI])
 				])
 			])
 		])

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list