$OpenBSD: patch-configure_in,v 1.6 2004/02/29 07:12:42 brad Exp $ --- configure.in.orig 2004-02-27 00:41:16.000000000 +0100 +++ configure.in 2004-02-27 00:44:22.000000000 +0100 @@ -40,7 +40,7 @@ AM_INIT_AUTOMAKE(silc-server, 0.9.17) AC_PREREQ(2.52) AC_CONFIG_HEADERS(includes/silcdefs.h) -CFLAGS= + AC_PROG_CC AC_C_INLINE AC_C_CONST @@ -340,31 +340,7 @@ AC_DEFUN(SILC_ADD_CFLAGS, unset tmp_CFLAGS ]) -if test "$GCC"; then - # GCC specific options - if test "x$summary_debug" = "xyes"; then - SILC_ADD_CFLAGS(-g -O) - else - SILC_ADD_CFLAGS(-g -O2) - fi - SILC_ADD_CFLAGS(-Wall -finline-functions) -else - # Other compilers - case "$target" in - alpha*-dec-osf*) - SILC_ADD_CFLAGS(-g3 -O2, SILC_ADD_CFLAGS(-g3 -O, SILC_ADD_CFLAGS(-O))) - ;; - *) - SILC_ADD_CFLAGS(-g) - SILC_ADD_CFLAGS(-O2, SILC_ADD_CFLAGS(-O)) - ;; - esac - - # Intel C++ Compiler needs -restrict - if test "x$CC" = "xicc"; then - SILC_ADD_CFLAGS(-restrict) - fi -fi +SILC_ADD_CFLAGS(-Wall -finline-functions) # # Workaround a bug in GCC 2.x which causes memory exhaustion