cope with gcc 3.1

This commit is contained in:
Bill Currie 2002-07-18 19:33:01 +00:00
parent 408470cce5
commit c1ec5e71e6

View file

@ -317,7 +317,17 @@ AC_ARG_ENABLE(opt,
if test "x$USE_OPT" = "xyes"; then
case "${host}" in
i?86-*-*)
OPT_CFLAGS="$OPT_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2"
AC_MSG_CHECKING(whether -falign-functions works)
save_CFLAGS="$CFLAGS"
CFLAGS="-falign-functions"
AC_TRY_COMPILE(
[],
[],
OPT_CFLAGS="$OPT_CFLAGS -falign-loops=2 -falign-jumps=2 -falign-functions=2"
AC_MSG_RESULT(yes),
OPT_CFLAGS="$OPT_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2"
AC_MSG_RESULT(no),
)
;;
*)
;;