File: configure.ac

package info (click to toggle)
rtpproxy 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,020 kB
  • ctags: 332
  • sloc: sh: 8,380; ansic: 5,195; xml: 698; makefile: 106
file content (75 lines) | stat: -rw-r--r-- 1,901 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.58)
AC_INIT(rtpproxy, 1.1, sobomax@sippysoft.com)
AM_INIT_AUTOMAKE(rtpproxy, 1.1)
AM_MAINTAINER_MODE
AC_CONFIG_SRCDIR([main.c])
AM_CONFIG_HEADER([config.h])

# cross-compile macros
AC_CANONICAL_BUILD
AC_CANONICAL_HOST

# Checks for programs.
AC_PROG_CC

case "${host_os}" in
freebsd*)
  CPPFLAGS=-I/usr/local/include
  LDFLAGS=-L/usr/local/lib
  ;;
*)
  ;;
esac

# Checks for libraries.

# GSM
AC_CHECK_HEADERS(gsm.h, found_libgsm=yes)
if test "$found_libgsm" = yes
then
  AC_CHECK_LIB(gsm, gsm_create,
   LIBS_GSM="-lgsm"
   GSM_SUPPORT=ext
   AC_DEFINE([ENABLE_GSM], 1, [Define if you have libgsm library installed]))
fi

# G.729
AC_CHECK_HEADERS(g729_encoder.h, found_libg729=yes)
if test "$found_libg729" = yes
then
  AC_CHECK_LIB(g729, g729_encoder_new,
   LIBS_G729="-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_STDC
AC_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_CONST
AC_HEADER_TIME

# Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([atexit gettimeofday memset mkdir socket strchr strdup strerror])

AC_CONFIG_FILES([Makefile])
AC_SUBST(LIBS_GSM)
AC_SUBST(LIBS_G729)
AC_OUTPUT