changeset 32159:f74d42014f51

Add inline_asm_check function to simplify configure checks.
author diego
date Tue, 14 Sep 2010 13:37:47 +0000
parents ec7786b93e52
children 00dcf8f66ea2
files configure
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Sep 14 13:21:05 2010 +0000
+++ b/configure	Tue Sep 14 13:37:47 2010 +0000
@@ -107,6 +107,14 @@
   compile_check $TMPC $@
 }
 
+inline_asm_check() {
+  cat > $TMPC << EOF
+int main(void) { __asm__ volatile ($1); return 0; }
+EOF
+  shift
+  compile_check $TMPC $@
+}
+
 # this is a special check only to be
 # used for broken headers that do not
 # include all dependencies