2.9
[glibc/nacl-glibc.git] / sysdeps / i386 / configure
blobd1d4dc15a75bf7a8e792b9b4d80cb465f4b9821f
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/i386.
4 echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
5 echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
6 if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
7   echo $ECHO_N "(cached) $ECHO_C" >&6
8 else
9   cat > conftest.S <<EOF
10 #include "confdefs.h"
12 /* comment on
13    two lines */
14         ${libc_cv_dot_text}
15         ${libc_cv_asm_global_directive} foo
16 foo:
17         /* Unfortunately this test only works for a real instruction,
18            not for any of the machine-independent pseudo-ops.
19            So we just have to assume everybody has a "nop".  */
20         nop
21         /* comment */
22         nop
23         /* comment */
24         nop
25 EOF
26 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -g -c conftest.S 1>&5'
27   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28   (eval $ac_try) 2>&5
29   ac_status=$?
30   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31   (exit $ac_status); }; } && {
32    ac_pattern='conftest\.S'
33    { ac_try='readelf --debug-dump=line conftest.o |
34                    grep $ac_pattern 1>&5'
35   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36   (eval $ac_try) 2>&5
37   ac_status=$?
38   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39   (exit $ac_status); }; }
40   }; then
41   libc_cv_cpp_asm_debuginfo=yes
42 else
43   libc_cv_cpp_asm_debuginfo=no
45 rm -f conftest*
47 echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
48 echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
49 if test $libc_cv_cpp_asm_debuginfo = yes; then
50   cat >>confdefs.h <<\_ACEOF
51 #define HAVE_CPP_ASM_DEBUGINFO 1
52 _ACEOF