]>
Commit | Line | Data |
---|---|---|
cb8a6dbd | 1 | # This file is generated from configure.ac by Autoconf. DO NOT EDIT! |
2ff87f3f L |
2 | # Local preconfigure fragment for sysdeps/x86_64 |
3 | ||
4 | test -n "$base_machine" || case "$machine" in | |
5 | x86_64) | |
6 | base_machine=x86_64 | |
7 | # Check if we are building for x32. | |
8 | ||
9 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC compiles in -mx32 mode by default" >&5 | |
10 | $as_echo_n "checking whether $CC compiles in -mx32 mode by default... " >&6; } | |
11 | if ${libc_cv_x32+:} false; then : | |
12 | $as_echo_n "(cached) " >&6 | |
13 | else | |
14 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15 | /* end confdefs.h. */ | |
34a27407 | 16 | #ifndef __ILP32__ |
2ff87f3f L |
17 | # error not x32 |
18 | #endif | |
19 | int | |
20 | main () | |
21 | { | |
22 | ||
23 | ; | |
24 | return 0; | |
25 | } | |
26 | _ACEOF | |
27 | if ac_fn_c_try_compile "$LINENO"; then : | |
28 | libc_cv_x32=yes | |
29 | else | |
30 | libc_cv_x32=no | |
31 | fi | |
32 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
33 | fi | |
34 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x32" >&5 | |
35 | $as_echo "$libc_cv_x32" >&6; } | |
36 | if test $libc_cv_x32 = yes; then | |
37 | machine=x86_64/x32 | |
38 | else | |
39 | machine=x86_64/64 | |
40 | fi | |
41 | ;; | |
42 | esac |