configure.ac
来自「大名鼎鼎的 RTP Proxy 源代码 在OpenSER 中成熟应用的」· AC 代码 · 共 74 行
AC
74 行
# -*- Autoconf -*-# Process this file with autoconf to produce a configure script.AC_PREREQ(2.58)AC_INIT(rtpproxy, 1.1.beta.200804031, sobomax@sippysoft.com)AM_INIT_AUTOMAKE(rtpproxy, 1.1.beta.200804031)AM_MAINTAINER_MODEAC_CONFIG_SRCDIR([main.c])AM_CONFIG_HEADER([config.h])# cross-compile macrosAC_CANONICAL_BUILDAC_CANONICAL_HOST# Checks for programs.AC_PROG_CCcase "${host_os}" infreebsd*) CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ;;*) ;;esac# Checks for libraries.# GSMAC_CHECK_HEADERS(gsm.h, found_libgsm=yes)if test "$found_libgsm" = yesthen AC_CHECK_LIB(gsm, gsm_create, LIBS="$LIBS -lgsm" GSM_SUPPORT=ext AC_DEFINE([ENABLE_GSM], 1, [Define if you have libgsm library installed]))fi# G.729AC_CHECK_HEADERS(g729_encoder.h, found_libg729=yes)if test "$found_libg729" = yesthen AC_CHECK_LIB(g729, g729_encoder_new, LIBS="$LIBS -lg729" G729_SUPPORT=ext AC_DEFINE([ENABLE_G729], 1, [Define if you have libg729 library installed]) )fi##if test -z "$G729_SUPPORT"##then## echo "*************************************************************************** $ECHO_C" 1>&6## echo "* Please contact sales@sippysoft.com if you need G.729 support in makeann * $ECHO_C" 1>&6## echo "*************************************************************************** $ECHO_C" 1>&6## sleep 1##fi# Checks for header files.AC_HEADER_STDCAC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h strings.h sys/socket.h sys/time.h unistd.h])# Checks for typedefs, structures, and compiler characteristics.AC_C_CONSTAC_HEADER_TIME# Checks for library functions.AC_FUNC_ALLOCAAC_FUNC_MALLOCAC_FUNC_MEMCMPAC_TYPE_SIGNALAC_CHECK_FUNCS([atexit gettimeofday memset mkdir socket strchr strdup strerror])AC_CONFIG_FILES([Makefile])AC_OUTPUT
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?