root/common/trunk/configure.in @ 310

Revision 310, 3.8 KB (checked in by ucaccsp, 14 years ago)

- Fix uninitialized use of session->last_update in RTP code
- Fix assertion failures in RTP library when sending RTCP packets
- Recognize, but ignore, profile specific extensions to RTCP SR/RR packets
- Update RTCP reporting interval calculation
- Implement reverse reconsideration of RTCP reporting interval
- Fix tv_diff in rtp.c to handle negative results
- Remove rtp_get_encryption_key(), the user of the library is assumed to

remember the passphrase used and doesn't need access to the internal
form of the key.

- Global change of integer types, and removal of compatibility defines:

u_int8 -> u_int8_t
u_int16 -> u_int16_t
u_int32 -> u_int32_t

and the same for the signed varients.

- Start to implement RTP encryption, not yet finished.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(base64.c)
4
5AC_CANONICAL_HOST
6
7dnl  UCL checked $host_os and exited if we didn't recognize it.
8dnl  Let's be more optimistic for now.
9
10dnl XXX
11dnl Backwards compatability to UCL's -D<ostype> for now
12dnl All references to an OS should be replaced by references
13dnl to features!
14
15case "$host_os" in
16
17linux*)
18        AC_DEFINE(Linux)
19        ;;
20
21sunos*)
22        AC_DEFINE(SunOS)
23        ;;
24
25solaris*)
26        AC_DEFINE(Solaris)
27        ;;
28
29hpux*)
30        AC_DEFINE(HPUX)
31        ;;
32esac
33
34AC_PROG_CC
35AC_PROG_CPP
36AC_PROG_RANLIB
37
38AC_HEADER_STDC
39AC_C_CONST
40AC_TYPE_SIZE_T
41
42# Check for standard size types.  The defaults are only valid on some
43# systems so we hope that <inttypes.h> exists when they're wrong.
44AC_CHECK_TYPE(u_int8_t, unsigned char)
45AC_CHECK_TYPE(u_int16_t, unsigned short)
46AC_CHECK_TYPE(u_int32_t, unsigned long)
47AC_CHECK_TYPE(int8_t, signed char)
48AC_CHECK_TYPE(int16_t, short)
49AC_CHECK_TYPE(int32_t, long)
50AC_CHECK_TYPE(int64_t, long long)
51
52# The following two macros cause autoconf to complain.
53AC_C_BIGENDIAN
54AC_C_CHAR_UNSIGNED
55#
56# The (?which?) library does not work with unsigned characters.
57# Force the compiler to use signed chars.
58if test $ac_cv_c_char_unsigned = yes
59then
60        if test "$GCC" = yes
61        then
62                CFLAGS="$CFLAGS -fsigned-char"
63        else
64                case "$host_os" in
65                dnl
66                dnl I don't know when "-signed" was added to IRIX CC
67                dnl so err on the side of using it.
68                irix*)  CFLAGS="$CFLAGS -signed"
69                        ;;
70                dnl need e.g. --force-signed-chars=-signed
71                *)      AC_MSG_ERROR([I don't know how to force signed chars])
72                        ;;
73                esac
74        fi
75fi
76dnl  __CHAR_UNSIGNED__ will be defined; hope this is OK.
77
78# GCC-specific warning flags
79if test "$GCC" = yes
80then
81        CFLAGS="$CFLAGS -W -Wall -Wbad-function-cast -Wmissing-prototypes -Werror"
82        if test -f .devel
83        then
84                CFLAGS="$CFLAGS -Werror"
85        fi
86fi
87
88# The following causes autoconf to complain.
89AC_CHECK_FILE(/dev/urandom,AC_DEFINE(HAVE_DEV_URANDOM))
90
91# If more files than mbus.c use vsnprintf, split it out into
92# vsnprintf.c and add it to AC_REPLACE_FUNCS
93AC_CHECK_FUNC(vsnprintf,,AC_DEFINE(NEED_VSNPRINTF))
94
95# If inet_aton is actually needed somewhere, split it out into
96# inet_aton.c and add it to AC_REPLACE_FUNCS
97
98AC_REPLACE_FUNCS(inet_pton inet_ntop)
99
100# define HAVE_IPv6 if we find getipnodebyname
101AC_CACHE_CHECK(whether to include IPv6 support,
102                ac_cv_ucl_has_ipv6,
103                AC_EGREP_HEADER(getipnodebyname,
104                                netdb.h,
105                                ac_cv_ucl_has_ipv6=yes,
106                                ac_cv_ucl_has_ipv6=no))
107if test $ac_cv_ucl_has_ipv6 = yes
108then
109        AC_DEFINE(HAVE_IPv6)
110fi
111
112AC_SEARCH_LIBS(socket, socket)
113AC_SEARCH_LIBS(inet_addr, nsl)
114
115# configure defaults CFLAGS to -g -O2
116# so a debug flag would have to fail to remove -g
117# and the optimize would have to modify or add the -O
118# flags:
119#  -debug:
120#       DEBUG2=$DEBUG
121#       AC_DEFINE(DEBUG)
122#  -optimize
123#       OPTIMIZE2=$OPTIMIZE
124#       AC_DEFINE(NDEBUG)
125#  -profile
126AC_ARG_ENABLE(profile,
127        [  --enable-profile        enable profiling],
128        [if test $enableval = yes
129        then
130                if test "$GCC" = yes
131                then
132                        CFLAGS="$CFLAGS -pg"
133                else
134                        AC_ERROR([Don't know how to enable profiling for $CC])
135                fi
136        fi])
137
138#  -bounds
139#       add -fbounds-checking to CFLAGS
140#       add -lcheck to LIBS
141AC_ARG_ENABLE(bounds,
142        [  --enable-bounds         enable bounds checking],
143        [if test $enableval = yes
144        then
145                if test "$GCC" = yes
146                then
147                        CFLAGS="$CFLAGS -fbounds-checking"
148                        LIBS="$LIBS -lcheck"
149                else
150                        AC_ERROR([Don't know how to enable profiling for $CC])
151                fi
152        fi])
153
154#  others
155#       add as compile flag
156# also:
157# MBUS_ENCRYPT_BY_DEFAULT
158
159
160
161# -DDEBUG
162# -DDEBUG_MEM
163# -DNDEBUG
164AC_ARG_ENABLE(debug,
165        [  --enable-debug          enable debug messages and code],
166        [if test $enableval = yes
167        then
168                AC_DEFINE(DEBUG)
169        fi])
170AC_ARG_ENABLE(debug-mem,
171        [  --enable-debug-mem      enable memory debugging code],
172        [if test $enableval = yes
173        then
174                AC_DEFINE(DEBUG_MEM)
175        fi])
176
177
178AC_CONFIG_HEADER(config.h)
179
180AC_OUTPUT(Makefile)
Note: See TracBrowser for help on using the browser.