⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 ortp协议栈(实时传输协议)
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(src/rtpmod.c)VERSION=0.4.2PACKAGE=ortpAM_CONFIG_HEADER(config.h)AM_INIT_AUTOMAKE($PACKAGE,$VERSION)AC_CANONICAL_HOSTAC_CANONICAL_BUILDhpux_host=noposixtimer_interval=10000if test "$host_os" = "hpux11.00" -o "$host_os" = "hpux11.11" ;then	AC_DEFINE(HOST_IS_HPUX)	hpux_host=yesfidnl Checks for programs.AC_PROG_CCif test "$GCC" != "yes" ; then	if test "$hpux_host" = "yes" ; then		dnl we are probably using HPUX cc compiler, so add a +O2 to CFLAGS		CFLAGS="$CFLAGS +O2"	fifiAC_PROG_RANLIBAM_PROG_LIBTOOLdnl Checks for libraries.AM_PATH_GLIB(1.2.0, [AC_DEFINE(HAVE_GLIB)], ,[gthread])build_scheduler=yesdnl Check if we have seteuid system callAC_CHECK_LIB(c, seteuid, AC_DEFINE(HAVE_SETEUID))dnl check if we can use the pthread_libraryAC_CHECK_LIB(pthread, pthread_mutex_init, [pthread_enabled=yes], [pthread_enabled=no])if test $pthread_enabled = "no" ; then	build_scheduler=nofiAC_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=yes])if test $debug_enabled = "yes"; then	AC_DEFINE(RTP_DEBUG)fiAC_ARG_ENABLE(memcheck,				[  --enable-memcheck=[yes/no]   enables memory leak detection (HPUX only).],				[case "${enableval}" in				yes) memcheck_enabled=yes;;				no) memcheck_enabled=no;;				*) AC_MSG_ERROR("Bad value for --enable-memcheck");;			esac],				[memcheck_enabled=no])				if test "$memcheck_enabled" = "yes" ; then	if test "$hpux_host" = "yes" ; then		AC_DEFINE(ENABLE_MEMCHECK)	else		echo "WARNING ************ : the memory check option is only availlable for HPUX."	fifiAC_ARG_ENABLE(hpuxkernel,			[  --enable-hpuxkernel   compile the library as kernel module for HP-UX],			[case "${enableval}" in				yes) target_is_hpux=yes;;				no) target_is_hpux=no;;				*) AC_MSG_ERROR("Bad value for --enable-hpuxkernel");;			esac],			[target_is_hpux=no])if test $target_is_hpux = "yes" ; then	AC_DEFINE(TARGET_IS_HPUXKERNEL)	build_scheduler="no"else	ORTPLOG="-DG_LOG_DOMAIN=\"oRTP\""fiAM_CONDITIONAL(HPUXKERNEL,test "x$target_is_hpux" = "xyes") dnl Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h sys/audio.h linux/soundcard.h)dnl Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_C_INLINEAC_HEADER_TIMEAC_WORDS_BIGENDIANdnl Checks for library functions.AC_CHECK_FUNCS(select socket strerror)if test $build_scheduler = "yes"; then	AC_DEFINE(BUILD_SCHEDULER)	PTHREAD_LIBS="-lpthread"	if test $hpux_host = "yes" ; then		PTHREAD_CFLAGS="-D_REENTRANT"		AC_DEFINE(NOCONNECT)dnl it seems 10 ms is too fast on hpux and it causes trouble 		posixtimer_interval=20000	fi	AC_SUBST(PTHREAD_CFLAGS)	AC_SUBST(PTHREAD_LIBS)fiAC_DEFINE_UNQUOTED(POSIXTIMER_INTERVAL,$posixtimer_interval)dnl ##################################################dnl # Check for gtk-doc.dnl ##################################################AC_ARG_WITH(html-dir, [  --with-html-dir=PATH path to installed docs ])if test "x$with_html_dir" = "x" ; then  HTML_DIR='${datadir}/gtk-doc/html'else  HTML_DIR=$with_html_dirfiAC_SUBST(HTML_DIR)AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)gtk_doc_min_version=0.6if $GTKDOC ; then    gtk_doc_version=`gtkdoc-mkdb --version`    AC_MSG_CHECKING([gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version])    if perl <<EOF ; then      exit (("$gtk_doc_version" =~ /^[[0-9]]+\.[[0-9]]+$/) &&            ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);EOF      AC_MSG_RESULT(yes)   else      AC_MSG_RESULT(no)      GTKDOC=false   fifidnl Let people disable the gtk-doc stuff.AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc  Use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)if test x$enable_gtk_doc = xauto ; then  if test x$GTKDOC = xtrue ; then    enable_gtk_doc=yes  else    enable_gtk_doc=no  fifiAM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)AC_OUTPUT(Makefilesrc/Makefiledocs/Makefile)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -