diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-03-22 08:28:39 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-03-22 08:28:39 -0700 |
commit | 2ff87f3f18788876bcabd439a0158272c7db0c0d (patch) | |
tree | 10d1b213ce239cdf0e26bfd514fa2f392319530c /sysdeps/x86_64/preconfigure.in | |
parent | 48e44791e4d4d755bf7a7dd083d87584dc4779e4 (diff) | |
download | glibc-2ff87f3f18788876bcabd439a0158272c7db0c0d.tar.gz glibc-2ff87f3f18788876bcabd439a0158272c7db0c0d.tar.xz glibc-2ff87f3f18788876bcabd439a0158272c7db0c0d.zip |
Add sysdeps/x86_64/preconfigure
Diffstat (limited to 'sysdeps/x86_64/preconfigure.in')
-rw-r--r-- | sysdeps/x86_64/preconfigure.in | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sysdeps/x86_64/preconfigure.in b/sysdeps/x86_64/preconfigure.in new file mode 100644 index 0000000000..1f049c7a04 --- /dev/null +++ b/sysdeps/x86_64/preconfigure.in @@ -0,0 +1,20 @@ +GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. +# Local preconfigure fragment for sysdeps/x86_64 + +test -n "$base_machine" || case "$machine" in +x86_64) + base_machine=x86_64 + # Check if we are building for x32. + AC_CACHE_CHECK(whether $CC compiles in -mx32 mode by default, + libc_cv_x32, [dnl + AC_TRY_COMPILE(dnl +[#ifdef __LP64__ +# error not x32 +#endif], [], libc_cv_x32=yes, libc_cv_x32=no)]) + if test $libc_cv_x32 = yes; then + machine=x86_64/x32 + else + machine=x86_64/64 + fi + ;; +esac |