AC_ARG_ENABLE(chuukei,
[ --enable-chuukei enable internet chuukei support], AC_DEFINE(CHUUKEI))
+dnl -fno-strength-reduce prevents a bug in some versions of gcc
+if test "$GCC" = yes; then
+ CFLAGS="$CFLAGS -fno-strength-reduce"
+fi
+
dnl Checks for libraries.
dnl Replace `main' with a function in -lncurses:
AC_CHECK_LIB(ncurses, initscr, [AC_DEFINE(USE_GCU) AC_DEFINE(USE_NCURSES) LIBS="$LIBS -lncurses"])
main-dos.c main-ibm.c \
makefile.bcc makefile.std makefile.dos makefile.ibm \
readdib.c script.c wall.bmp
-
-CFLAGS = @CFLAGS@ -Wall -fno-strength-reduce