Mercurial > emacs
comparison configure.in @ 112352:19348bd13f81
Improve performance on non-GCC hosts with __aligned__.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 17 Jan 2011 20:54:23 -0800 |
parents | 56d3e9c28eb0 |
children | c81ff7082a9a |
comparison
equal
deleted
inserted
replaced
112351:176503f61eb1 | 112352:19348bd13f81 |
---|---|
1320 [Define as `void' if your compiler accepts `void *'; otherwise | 1320 [Define as `void' if your compiler accepts `void *'; otherwise |
1321 define as `char'.])dnl | 1321 define as `char'.])dnl |
1322 | 1322 |
1323 dnl Check for endianess | 1323 dnl Check for endianess |
1324 AC_C_BIGENDIAN | 1324 AC_C_BIGENDIAN |
1325 | |
1326 AC_CACHE_CHECK([for __attribute__ ((__aligned__ (expr)))], | |
1327 [emacs_cv_attribute_aligned], | |
1328 [AC_COMPILE_IFELSE( | |
1329 [AC_LANG_PROGRAM( | |
1330 [[char __attribute__ ((__aligned__ (1 << 3))) c;]], | |
1331 [[]])], | |
1332 [emacs_cv_attribute_aligned=yes], | |
1333 [emacs_cv_attribute_aligned=no])]) | |
1334 if test $emacs_cv_attribute_aligned = yes; then | |
1335 AC_DEFINE([HAVE_ATTRIBUTE_ALIGNED], 1, | |
1336 [Define to 1 if GCC-style __attribute__ ((__aligned__ (expr))) works.]) | |
1337 fi | |
1325 | 1338 |
1326 dnl check for Make feature | 1339 dnl check for Make feature |
1327 AC_PROG_MAKE_SET | 1340 AC_PROG_MAKE_SET |
1328 | 1341 |
1329 DEPFLAGS= | 1342 DEPFLAGS= |
3732 echo creating src/.gdbinit | 3745 echo creating src/.gdbinit |
3733 echo source $srcdir/src/.gdbinit > src/.gdbinit | 3746 echo source $srcdir/src/.gdbinit > src/.gdbinit |
3734 fi | 3747 fi |
3735 | 3748 |
3736 ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"]) | 3749 ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"]) |
3737 |