diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-03 23:44:53 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-03 23:44:53 +0000 |
commit | f3e524e9b8908cdecba4eb7be58506ae60f6601a (patch) | |
tree | 9b5a391c0add620934f478e4ed676f965739b6fd /libgo/configure | |
parent | bb2288b7d8e3bbca6175656a70f0a179a7cff7be (diff) | |
download | gcc-f3e524e9b8908cdecba4eb7be58506ae60f6601a.tar.gz |
syscall, net: Fix GNU/Linux netlink code for big-endian systems.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186123 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/configure')
-rwxr-xr-x | libgo/configure | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libgo/configure b/libgo/configure index 34125ec144d..b57ba949a39 100755 --- a/libgo/configure +++ b/libgo/configure @@ -612,6 +612,7 @@ HAVE_STRERROR_R_FALSE HAVE_STRERROR_R_TRUE HAVE_SYS_MMAN_H_FALSE HAVE_SYS_MMAN_H_TRUE +GO_BIGENDIAN PTHREAD_LIBS PTHREAD_CFLAGS NET_LIBS @@ -11100,7 +11101,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11103 "configure" +#line 11104 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11206,7 +11207,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11209 "configure" +#line 11210 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -14408,6 +14409,12 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; esac +case $ac_cv_c_bigendian in + yes) GO_BIGENDIAN=true ;; + no) GO_BIGENDIAN=false ;; + *) as_fn_error "unknown endianness" "$LINENO" 5 ;; +esac + |