fix previous commit
This commit is contained in:
+7
-7
@@ -46,16 +46,16 @@ AC_ARG_ENABLE(debug,
|
|||||||
AC_MSG_RESULT($debug)
|
AC_MSG_RESULT($debug)
|
||||||
|
|
||||||
if test $debug = "yes"; then
|
if test $debug = "yes"; then
|
||||||
dnl Enable debugging information with minimal optimisation
|
dnl Enable debugging information with minimal optimisation if not set differently
|
||||||
if ! echo "$CFLAGS" | grep -q -- "-g" ; then
|
dnl (the spaces before $CFLAGS and -O are significant)
|
||||||
CFLAGS="$CFLAGS -g"
|
CFLAGS="$CFLAGS -g"
|
||||||
fi
|
if ! echo " $CFLAGS" | grep -q -- " -O" ; then
|
||||||
if ! echo "$CFLAGS" | grep -q -- "-O" ; then
|
|
||||||
CFLAGS="$CFLAGS -O"
|
CFLAGS="$CFLAGS -O"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
dnl Maximum optimisation
|
dnl Maximum optimisation if not already set
|
||||||
if ! echo "$CFLAGS" | grep -q -- "-O" ; then
|
dnl (the spaces before $CFLAGS and -O are significant)
|
||||||
|
if ! echo " $CFLAGS" | grep -q -- " -O" ; then
|
||||||
CFLAGS="$CFLAGS -O3"
|
CFLAGS="$CFLAGS -O3"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user