From: Andre Date: Thu, 20 Apr 2006 13:13:20 +0000 (+0200) Subject: add --disable-ortp option to configure X-Git-Tag: v0.2.12~45 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=2c7188c59e6c4647597642145394cdc31f309d47 add --disable-ortp option to configure This is handy if an old ortp library is installed. --- diff --git a/configure.ac b/configure.ac index 5e2d2b9a..f0754926 100644 --- a/configure.ac +++ b/configure.ac @@ -236,12 +236,19 @@ if test "$have_alsa" = "yes"; then fi ########################################################################### ortp have_ortp="yes" -AC_CHECK_HEADERS([ortp/ortp.h], [], [ - have_ortp="no" -]) -AC_CHECK_LIB([ortp], [ortp_init], [], [ - have_ortp="no" -]) +AC_ARG_ENABLE(ortp, AC_HELP_STRING([--disable-ortp], [Disable ortp support]), + if test x$enableval = xno; then + have_ortp=no + fi +) +if test "$have_ortp" = "yes"; then + AC_CHECK_HEADERS([ortp/ortp.h], [], [ + have_ortp="no" + ]) + AC_CHECK_LIB([ortp], [ortp_init], [], [ + have_ortp="no" + ]) +fi if test "$have_ortp" = "yes"; then recv_cmdline_objs="$recv_cmdline_objs ortp_recv.cmdline" recv_errlist_objs="$recv_errlist_objs ortp_recv" @@ -257,7 +264,7 @@ if test "$have_ortp" = "yes"; then AC_DEFINE(HAVE_ORTP, 1, [define to 1 to turn on ortp support]) else - AC_MSG_WARN([deactivating ortp support]) + AC_MSG_NOTICE([deactivating ortp support]) fi AC_SUBST(GLIB_CFLAGS) AC_SUBST(GLIB_LIBS)