]> sjero.net Git - linphone/blobdiff - configure.ac
Add rtp timestamp configure option + debug option
[linphone] / configure.ac
index 2bead21ddc9b1de1b86cbd8ad03eab28ac4b5830..a56a93cbd3cfc964741b7f6bd196185b7cfb66c0 100644 (file)
@@ -245,6 +245,24 @@ if test x$ipv6 = xtrue ; then
 fi
 AC_SUBST(IPV6_CFLAGS)
 
+dnl enable timestamp support
+AC_ARG_ENABLE(rtp-timestamp,
+      [  --enable-rtp-timestamp Turn on RTP packet timestamp],
+      [case "${enableval}" in
+        yes)  rtptimestamp=true;;
+        no)   rtptimestamp=false;;
+        *) AC_MSG_ERROR(bad value ${enableval} for --enable-rtp-timestamp) ;;
+      esac],[rtptimestamp=false])
+
+AC_ARG_ENABLE(debug,
+                        [  --enable-debug=[yes/no]   enables the display of traces showing the execution of the library. [default=yes]],
+                        [case "${enableval}" in
+                                yes) debug_enabled=yes;;
+                                no) debug_enabled=no;;
+                                *) AC_MSG_ERROR("Bad value for --enable-debug");;
+                        esac],
+                        [debug_enabled=no])
+
 dnl enable truespeech codec support
 AC_ARG_ENABLE(truespeech,
       [  --enable-truespeech    Turn on TrueSpeech support (x86 only)],
@@ -562,6 +580,9 @@ else
        if test x$ac_cv_c_bigendian = xyes ; then
                ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_BIGENDIAN"
        fi
+       if test x$rtptimestamp = xtrue ; then
+               ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_TIMESTAMP"
+       fi
        ORTP_DIR=oRTP
        changequote(<<, >>)
        ORTP_VERSION=`grep -E ^[AC]+_INIT ${top_srcdir}/oRTP/configure.ac | sed -e 's:^.*_INIT(.*,\[\(.*\)\]):\1:g'`