Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 927:17b6b9e245d8
prev924:195577c0445c
next964:f2f3c7612d06
author nkeynes
date Wed Jan 07 06:01:33 2009 +0000 (15 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Handle URC/URB case where URC is initialized >= URB
file annotate diff log raw
1.1 --- a/configure Thu Dec 11 23:29:12 2008 +0000
1.2 +++ b/configure Wed Jan 07 06:01:33 2009 +0000
1.3 @@ -6745,6 +6745,94 @@
1.4
1.5
1.6
1.7 +{ $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
1.8 +$as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };
1.9 +if test "$cross_compiling" = yes; then
1.10 + { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
1.11 +See \`config.log' for more details." >&5
1.12 +$as_echo "$as_me: error: cannot run test program while cross compiling
1.13 +See \`config.log' for more details." >&2;}
1.14 + { (exit 1); exit 1; }; }
1.15 +else
1.16 + cat >conftest.$ac_ext <<_ACEOF
1.17 +
1.18 + /* confdefs.h. */
1.19 +_ACEOF
1.20 +cat confdefs.h >>conftest.$ac_ext
1.21 +cat >>conftest.$ac_ext <<_ACEOF
1.22 +/* end confdefs.h. */
1.23 +
1.24 +void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
1.25 +int __attribute__((noinline)) foo( int arg, void *exc )
1.26 +{
1.27 + if( arg < 2 ) {
1.28 + *(((void **)__builtin_frame_address(0))+1) = exc;
1.29 + }
1.30 + return 0;
1.31 +}
1.32 +
1.33 +int main(int argc, char *argv[])
1.34 +{
1.35 + goto *first_arg(&&start, &&except);
1.36 +
1.37 +start:
1.38 + return foo( argc, &&except ) + 1;
1.39 +
1.40 +except:
1.41 + return 0;
1.42 +}
1.43 +_ACEOF
1.44 +rm -f conftest$ac_exeext
1.45 +if { (ac_try="$ac_link"
1.46 +case "(($ac_try" in
1.47 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.48 + *) ac_try_echo=$ac_try;;
1.49 +esac
1.50 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1.51 +$as_echo "$ac_try_echo") >&5
1.52 + (eval "$ac_link") 2>&5
1.53 + ac_status=$?
1.54 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.55 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.56 + { (case "(($ac_try" in
1.57 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.58 + *) ac_try_echo=$ac_try;;
1.59 +esac
1.60 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
1.61 +$as_echo "$ac_try_echo") >&5
1.62 + (eval "$ac_try") 2>&5
1.63 + ac_status=$?
1.64 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.65 + (exit $ac_status); }; }; then
1.66 +
1.67 + { $as_echo "$as_me:$LINENO: result: yes" >&5
1.68 +$as_echo "yes" >&6; }
1.69 +
1.70 +
1.71 +cat >>confdefs.h <<\_ACEOF
1.72 +#define HAVE_FRAME_ADDRESS 1
1.73 +_ACEOF
1.74 +
1.75 +
1.76 +else
1.77 + $as_echo "$as_me: program exited with status $ac_status" >&5
1.78 +$as_echo "$as_me: failed program was:" >&5
1.79 +sed 's/^/| /' conftest.$ac_ext >&5
1.80 +
1.81 +( exit $ac_status )
1.82 +
1.83 + { $as_echo "$as_me:$LINENO: result: no" >&5
1.84 +$as_echo "no" >&6; }
1.85 + { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
1.86 +$as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
1.87 +fi
1.88 +rm -rf conftest.dSYM
1.89 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.90 +fi
1.91 +
1.92 +
1.93 +
1.94 +
1.95
1.96
1.97 lxdream_save_cppflags="$CPPFLAGS"
.