#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
#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
#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
#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
changequote(,)dnl
i[34567]86-*-* | x86_64-*-*)
changequote([,])dnl
- AC_PREPROC_IFELSE([
+ AC_COMPILE_IFELSE([
#ifdef __x86_64__
#error 64-bit
#endif],
GOARCH=m68k
;;
mips*-*-*)
- AC_PREPROC_IFELSE([
+ AC_COMPILE_IFELSE([
#ifdef __mips64
#error 64-bit
#endif],
fi
;;
rs6000*-*-* | powerpc*-*-*)
- AC_PREPROC_IFELSE([
+ AC_COMPILE_IFELSE([
#ifdef _ARCH_PPC64
#error 64-bit
#endif],
fi
;;
sparc*-*-*)
- AC_PREPROC_IFELSE([
+ AC_COMPILE_IFELSE([
#if defined(__sparcv9) || defined(__arch64__)
#error 64-bit
#endif],