1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-29 04:32:15 -05:00

Merge pull request #677 from hasufell/master

CONFIGURE: add "--enable-minimal-flags"
This commit is contained in:
TingPing 2013-08-02 23:25:40 -07:00
commit bdc814a4a4

View File

@ -180,6 +180,11 @@ AC_ARG_ENABLE(libproxy,
[AS_HELP_STRING([--disable-libproxy],[disable libproxy support (default: auto)])], [AS_HELP_STRING([--disable-libproxy],[disable libproxy support (default: auto)])],
libproxy=$enableval, libproxy=auto) libproxy=$enableval, libproxy=auto)
AC_ARG_ENABLE(minimal-flags,
[AS_HELP_STRING([--enable-minimal-flags],[only add those CFLAGS that are really needed or not intrusive (default: no)])],
minimalflags=$enableval, minimalflags=no)
dnl ********************************************************************* dnl *********************************************************************
dnl ** GLIB ************************************************************* dnl ** GLIB *************************************************************
@ -783,13 +788,16 @@ if test "x$GCC" = "xyes"; then
if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
CFLAGS="$CFLAGS -Wall" CFLAGS="$CFLAGS -Wall"
fi fi
if test "$system" = "Linux" -o "$system" = "FreeBSD"; then dnl these flags might be unwanted
if test -z "`echo "$CFLAGS" | grep "\-pipe" 2> /dev/null`" ; then if test x$minimalflags != xyes; then
CFLAGS="$CFLAGS -pipe" if test "$system" = "Linux" -o "$system" = "FreeBSD"; then
if test -z "`echo "$CFLAGS" | grep "\-pipe" 2> /dev/null`" ; then
CFLAGS="$CFLAGS -pipe"
fi
fi
if test -z "`echo "$CFLAGS" | grep "\-g " 2> /dev/null`" ; then
CFLAGS="$CFLAGS -g"
fi fi
fi
if test -z "`echo "$CFLAGS" | grep "\-g " 2> /dev/null`" ; then
CFLAGS="$CFLAGS -g"
fi fi
fi fi