diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-10 23:43:42 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-10 23:43:42 +0000 |
commit | 3ae9cf6a885089a7221d0c9dda99d649969c4755 (patch) | |
tree | 84b86054220522da8c70a31cd877d98117cd4e0c /libgo | |
parent | dc75bc72e268ad530c4a93e029567f7abec3f366 (diff) | |
download | gcc-3ae9cf6a885089a7221d0c9dda99d649969c4755.tar.gz |
libgo/configure.ac: Use AC_COMPILE_IFELSE, not AC_PREPROC_IFELSE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170030 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/configure | 16 | ||||
-rw-r--r-- | libgo/configure.ac | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/libgo/configure b/libgo/configure index fbaac8e3d61..d51af0edfb2 100644 --- a/libgo/configure +++ b/libgo/configure @@ -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 diff --git a/libgo/configure.ac b/libgo/configure.ac index da56610b579..c2ec80b0885 100644 --- a/libgo/configure.ac +++ b/libgo/configure.ac @@ -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], |