summaryrefslogtreecommitdiff
path: root/aconfigure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'aconfigure.ac')
-rw-r--r--aconfigure.ac15
1 files changed, 14 insertions, 1 deletions
diff --git a/aconfigure.ac b/aconfigure.ac
index ae17c8bf..9eff1281 100644
--- a/aconfigure.ac
+++ b/aconfigure.ac
@@ -12,6 +12,19 @@ AC_CONFIG_FILES([build.mak
pjmedia/build/os-auto.mak
pjsip/build/os-auto.mak
])
+
+dnl
+dnl Setup default CFLAGS
+dnl
+if test "$CFLAGS" = ""; then
+ CFLAGS="-O2 -DNDEBUG"
+else
+ CFLAGS="$CFLAGS"
+fi
+
+CXXFLAGS="$CFLAGS $CXXFLAGS"
+
+
AC_PROG_CC
AC_PROG_CXX
AC_LANG_C
@@ -322,7 +335,7 @@ AC_ARG_ENABLE(l16-codec,
[ac_no_l16_codec=1]
AC_MSG_RESULT([Checking if L16 codecs are disabled...yes])
fi],
- AC_MSG_RESULT([Checking if G.711 codec is disabled...no]))
+ AC_MSG_RESULT([Checking if L16 codec is disabled...no]))
dnl # Include GSM codec