libgo/configure.ac: Use AC_COMPILE_IFELSE, not AC_PREPROC_IFELSE.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 10 Feb 2011 23:43:42 +0000 (23:43 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 10 Feb 2011 23:43:42 +0000 (23:43 +0000)
From-SVN: r170030

libgo/configure
libgo/configure.ac

index fbaac8e3d617ea9bd8a196cb2e6bdc5987460dd2..d51af0edfb2bd38143032763e79859b5514dd920 100644 (file)
@@ -13302,12 +13302,12 @@ case ${host} in
 #error 64-bit
 #endif
 _ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
+if ac_fn_c_try_compile "$LINENO"; then :
   is_386=yes
 else
   is_x86_64=yes
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     if test "$is_386" = "yes"; then
       GOARCH=386
     else
@@ -13326,12 +13326,12 @@ rm -f conftest.err conftest.$ac_ext
 #error 64-bit
 #endif
 _ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
+if ac_fn_c_try_compile "$LINENO"; then :
   is_mips=yes
 else
   is_mips64=yes
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     if test "$is_mips" = "yes"; then
       GOARCH=mips
     else
@@ -13346,12 +13346,12 @@ rm -f conftest.err conftest.$ac_ext
 #error 64-bit
 #endif
 _ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
+if ac_fn_c_try_compile "$LINENO"; then :
   is_ppc=yes
 else
   is_ppc64=yes
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     if test "$is_ppc" = "yes"; then
       GOARCH=ppc
     else
@@ -13366,12 +13366,12 @@ rm -f conftest.err conftest.$ac_ext
 #error 64-bit
 #endif
 _ACEOF
-if ac_fn_c_try_cpp "$LINENO"; then :
+if ac_fn_c_try_compile "$LINENO"; then :
   is_sparc=yes
 else
   is_sparc64=yes
 fi
-rm -f conftest.err conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
     if test "$is_sparc" = "yes"; then
       GOARCH=sparc
     else
index da56610b5790d4863f746cdac9aa3ff60883e7db..c2ec80b08858c237014a946aca16984444d43115 100644 (file)
@@ -152,7 +152,7 @@ case ${host} in
 changequote(,)dnl
   i[34567]86-*-* | x86_64-*-*)
 changequote([,])dnl
-    AC_PREPROC_IFELSE([
+    AC_COMPILE_IFELSE([
 #ifdef __x86_64__
 #error 64-bit
 #endif],
@@ -168,7 +168,7 @@ changequote([,])dnl
     GOARCH=m68k
     ;;
   mips*-*-*)
-    AC_PREPROC_IFELSE([
+    AC_COMPILE_IFELSE([
 #ifdef __mips64
 #error 64-bit
 #endif],
@@ -180,7 +180,7 @@ changequote([,])dnl
     fi
     ;;
   rs6000*-*-* | powerpc*-*-*)
-    AC_PREPROC_IFELSE([
+    AC_COMPILE_IFELSE([
 #ifdef _ARCH_PPC64
 #error 64-bit
 #endif],
@@ -192,7 +192,7 @@ changequote([,])dnl
     fi
     ;;
   sparc*-*-*)
-    AC_PREPROC_IFELSE([
+    AC_COMPILE_IFELSE([
 #if defined(__sparcv9) || defined(__arch64__)
 #error 64-bit
 #endif],