Force DT_RPATH for --enable-hardcoded-path-in-tests
[glibc.git] / sysdeps / x86_64 / preconfigure
blob24996ba27800e2ef77d97ac7961ce348e134875d
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local preconfigure fragment for sysdeps/x86_64
4 test -n "$base_machine" || case "$machine" in
5 x86_64)
6   base_machine=x86_64
7   # Check if we are building for x32.
9 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC compiles in -mx32 mode by default" >&5
10 printf %s "checking whether $CC compiles in -mx32 mode by default... " >&6; }
11 if test ${libc_cv_x32+y}
12 then :
13   printf %s "(cached) " >&6
14 else $as_nop
15     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16 /* end confdefs.h.  */
17 #ifndef __ILP32__
18 # error not x32
19 #endif
20 int
21 main (void)
24   ;
25   return 0;
27 _ACEOF
28 if ac_fn_c_try_compile "$LINENO"
29 then :
30   libc_cv_x32=yes
31 else $as_nop
32   libc_cv_x32=no
34 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_x32" >&5
37 printf "%s\n" "$libc_cv_x32" >&6; }
38   if test $libc_cv_x32 = yes; then
39     machine=x86_64/x32
40   else
41     machine=x86_64/64
42   fi
43   ;;
44 esac