Require Linux kernel 3.2 or later on x86 / x86_64.
[glibc.git] / sysdeps / unix / sysv / linux / i386 / configure
blob0327590486c80777d6daa72dab4017219d142f90
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/unix/sysv/linux/i386.
4 # Check if CFLAGS allows compiler to use ebp register in inline assembly.
6 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler flags allows ebp in inline assembly" >&5
7 $as_echo_n "checking if compiler flags allows ebp in inline assembly... " >&6; }
8 if ${libc_cv_can_use_register_asm_ebp+:} false; then :
9   $as_echo_n "(cached) " >&6
10 else
12 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 /* end confdefs.h.  */
15     void foo (int i)
16     {
17       register int reg asm ("ebp") = i;
18       asm ("# %0" : : "r" (reg));
19     }
20 int
21 main ()
24   ;
25   return 0;
27 _ACEOF
28 if ac_fn_c_try_compile "$LINENO"; then :
29   libc_cv_can_use_register_asm_ebp=yes
30 else
31   libc_cv_can_use_register_asm_ebp=no
33 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_can_use_register_asm_ebp" >&5
37 $as_echo "$libc_cv_can_use_register_asm_ebp" >&6; }
38 if test $libc_cv_can_use_register_asm_ebp = yes; then
39   $as_echo "#define CAN_USE_REGISTER_ASM_EBP 1" >>confdefs.h
43 libc_cv_gcc_unwind_find_fde=yes
44 ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed