From cf9d394e3a661e1c19df502a51fafe5d01cfab46 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 5 Nov 2004 21:05:32 +0000 Subject: [PATCH] Modified CFLAGS management (can now be customized) --- configure.in | 8 ++++++-- weechat/configure.in | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 3715e0310..f225a2167 100644 --- a/configure.in +++ b/configure.in @@ -108,10 +108,14 @@ fi AC_SUBST(PLUGINS_LIBS) +CFLAGS=`echo $CFLAGS | sed s/-g//g` +if test "x$CFLAGS" = "x" ; then + CFLAGS="-O2" +fi if test "x$debug" = "x1" || test "x$debug" = "x2" ; then - CFLAGS="-Wall -W -pipe -O2 -g" + CFLAGS="-Wall -W $CFLAGS -pipe -g" else - CFLAGS="-Wall -W -pipe -O2" + CFLAGS="-Wall -W $CFLAGS -pipe" fi if test "x$debug" = "x2" ; then diff --git a/weechat/configure.in b/weechat/configure.in index 3715e0310..f225a2167 100644 --- a/weechat/configure.in +++ b/weechat/configure.in @@ -108,10 +108,14 @@ fi AC_SUBST(PLUGINS_LIBS) +CFLAGS=`echo $CFLAGS | sed s/-g//g` +if test "x$CFLAGS" = "x" ; then + CFLAGS="-O2" +fi if test "x$debug" = "x1" || test "x$debug" = "x2" ; then - CFLAGS="-Wall -W -pipe -O2 -g" + CFLAGS="-Wall -W $CFLAGS -pipe -g" else - CFLAGS="-Wall -W -pipe -O2" + CFLAGS="-Wall -W $CFLAGS -pipe" fi if test "x$debug" = "x2" ; then