diff options
| author | Paul Eggert | 2011-01-17 20:54:23 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-01-17 20:54:23 -0800 |
| commit | 7cae64b4eed192a49ea258089639ec44da6095e2 (patch) | |
| tree | b985de2a995674ad01ead7920526e80b9b4798b6 /configure | |
| parent | 9cc3a0c79c5a6af2691b2b566f8e3eb3654b806f (diff) | |
| download | emacs-7cae64b4eed192a49ea258089639ec44da6095e2.tar.gz emacs-7cae64b4eed192a49ea258089639ec44da6095e2.zip | |
Improve performance on non-GCC hosts with __aligned__.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 32 |
1 files changed, 31 insertions, 1 deletions
| @@ -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; } | ||
| 8283 | if ${emacs_cv_attribute_aligned+:} false; then : | ||
| 8284 | $as_echo_n "(cached) " >&6 | ||
| 8285 | else | ||
| 8286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
| 8287 | /* end confdefs.h. */ | ||
| 8288 | char __attribute__ ((__aligned__ (1 << 3))) c; | ||
| 8289 | int | ||
| 8290 | main () | ||
| 8291 | { | ||
| 8292 | |||
| 8293 | ; | ||
| 8294 | return 0; | ||
| 8295 | } | ||
| 8296 | _ACEOF | ||
| 8297 | if ac_fn_c_try_compile "$LINENO"; then : | ||
| 8298 | emacs_cv_attribute_aligned=yes | ||
| 8299 | else | ||
| 8300 | emacs_cv_attribute_aligned=no | ||
| 8301 | fi | ||
| 8302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
| 8303 | fi | ||
| 8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5 | ||
| 8305 | $as_echo "$emacs_cv_attribute_aligned" >&6; } | ||
| 8306 | if test $emacs_cv_attribute_aligned = yes; then | ||
| 8307 | |||
| 8308 | $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h | ||
| 8309 | |||
| 8310 | fi | ||
| 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; } |
| 8283 | set x ${MAKE-make} | 8314 | set 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;} |
| 18960 | fi | 18991 | fi |
| 18961 | 18992 | ||
| 18962 | |||