aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorPaul Eggert2011-01-17 20:54:23 -0800
committerPaul Eggert2011-01-17 20:54:23 -0800
commit7cae64b4eed192a49ea258089639ec44da6095e2 (patch)
treeb985de2a995674ad01ead7920526e80b9b4798b6 /configure
parent9cc3a0c79c5a6af2691b2b566f8e3eb3654b806f (diff)
downloademacs-7cae64b4eed192a49ea258089639ec44da6095e2.tar.gz
emacs-7cae64b4eed192a49ea258089639ec44da6095e2.zip
Improve performance on non-GCC hosts with __aligned__.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure32
1 files changed, 31 insertions, 1 deletions
diff --git a/configure b/configure
index a15a9ea56a3..56701c27f5b 100755
--- a/configure
+++ b/configure
@@ -8278,6 +8278,37 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8278 esac 8278 esac
8279 8279
8280 8280
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8282$as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8283if ${emacs_cv_attribute_aligned+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285else
8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h. */
8288char __attribute__ ((__aligned__ (1 << 3))) c;
8289int
8290main ()
8291{
8292
8293 ;
8294 return 0;
8295}
8296_ACEOF
8297if ac_fn_c_try_compile "$LINENO"; then :
8298 emacs_cv_attribute_aligned=yes
8299else
8300 emacs_cv_attribute_aligned=no
8301fi
8302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303fi
8304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8305$as_echo "$emacs_cv_attribute_aligned" >&6; }
8306if test $emacs_cv_attribute_aligned = yes; then
8307
8308$as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8309
8310fi
8311
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 8312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8282$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 8313$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8283set x ${MAKE-make} 8314set x ${MAKE-make}
@@ -18959,4 +18990,3 @@ if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18959$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18990$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18960fi 18991fi
18961 18992
18962