File: configure.ac

package info (click to toggle)
sipxtapi 3.3.0~test18%2Bdfsg.1-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 55,892 kB
  • sloc: cpp: 435,979; ansic: 14,207; makefile: 2,491; java: 2,264; sh: 1,310; perl: 844; xml: 225; awk: 5
file content (253 lines) | stat: -rw-r--r-- 7,502 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.69)
# test0 tarballs are not for any distribution
AC_INIT(sipXtapi, 3.3.0~test18, sipxtapi-dev@list.sipfoundry.org)
AC_CONFIG_SRCDIR([sipXportLib/src/os/OsConfigDb.cpp])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wno-extra-portability tar-ustar])
#AC_PREFIX_DEFAULT([/usr/local/sipx])

m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

LT_INIT


SFAC_AUTOMAKE_VERSION([1.11])
#CHECK_AUTOCONF

# Configure pkg-config
PKG_PROG_PKG_CONFIG

AM_CONFIG_HEADER([config.h])

# Codec plugin loading uses dlopen, so we need to check for it here.
AC_LIBTOOL_DLOPEN

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC

# Check for cross compilation
AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)

# Dynamic extenition
CHECH_DYNEXT

# Checks for libraries.
CHECK_COREAUDIO
CHECK_CARBON
#CHECK_LIBRT

# Check for SpanDSP library
CHECK_SPANDSP
# Enable use of code that uses speex dsp library
ENABLE_SPEEX_DSP

# Look for GSM and Speex codecs
CHECK_GSM
ENABLE_CODEC_SPEEX
CHECK_ILBC
CHECK_PCMA_PCMU
CHECK_TONES
CHECK_L16
CHECK_G726
CHECK_G722
CHECK_AMR_AMRWB
CHECK_OPUS

# PCRE is mandatory
PKG_CHECK_MODULES([DEPS_PCRE], [libpcre >= 4.5])

# OpenSSL is mandatory, find it or configure fails:
CHECK_SSL

# Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h malloc.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h])

# Check CPPUnit - begin
# can't be encapsulated as a function due to search path ordering issues
PKG_CHECK_MODULES(CPPUNIT, cppunit >= 1.9, I
      [ SIPX_UNIT_TARGET="sipxunit" ],
      [ SIPX_UNIT_TARGET="sipxportunit"
        CPPUNIT_CFLAGS=' -DNO_CPPUNIT -I$(top_srcdir)/sipXportLib/src/test/sipxportunit '
        AC_MSG_WARN("cppunit not found") ]
)

AC_SUBST(SIPX_UNIT_TARGET)

AM_CONDITIONAL([BUILD_SIPXUNIT], [test "x$SIPX_UNIT_TARGET" == "xsipxunit" ])
AM_CONDITIONAL([BUILD_SIPXPORTUNIT], [test "x$SIPX_UNIT_TARGET" == "xsipxportunit" ])
# Check CPPUnit - end

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_TYPE_UID_T
AC_C_VOLATILE

# Checks for library functions.
AC_FUNC_CLOSEDIR_VOID
AC_FUNC_FORK
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_MKTIME
AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_STRFTIME
AC_CHECK_FUNCS([clock_gettime getcwd gethostbyname gethostname gettimeofday inet_ntoa localtime_r memchr memset mkdir putenv rmdir select setenv socket strchr strdup strerror strrchr strstr strtol strtoul tzset])

# Check for toplogy flowgraph interface
CHECK_GRAPH_INTERFACE

# SPEEX detection and configuration code inside general.m4 cannot do
# sub-configure with AC_CONFIG_SUBDIRS, since it would be called more
# than once, so do it here, where we know it only happens once.
#if test "x$contrib_speex_enabled" == "xyes"; then
#        # speex codec has it's own configure, so be sure to call it.
#        AC_CONFIG_SUBDIRS([contrib/libspeex])
#fi
# Specify a SPEEX_CONTRIB make variable conditional upon using contrib speex.
dnl Do not stick AM_CONDITIONAL inside a shell conditional.
dnl If you do, automake will be confused, thus, it is in configure.ac.
AM_CONDITIONAL(SPEEX_CONTRIB, [test "x$contrib_speex_enabled" == "xyes"])


# declaring other codecs staff
DECLARE_CODECS_STAFF
# Check stream player setting 
CHECK_STREAM_PLAYER
if test ${disable_stream_player} = true; then
   AC_MSG_RESULT(Stream player is disabled)
   CXXFLAGS+=" -DDISABLE_STREAM_PLAYER "
fi


SFAC_INIT_FLAGS

SFAC_FEATURE_SIP_TLS

# Enable local audio support (microphone / speaker)
AC_ARG_ENABLE(local-audio,
[  --enable-local-audio    Enable local audio (speaker and microphone), makes sense for CallFlowGraph only],
[ case "${enableval}" in
  yes) enable_local_audio=true ;;
  no) enable_local_audio=false ;;
  *) AC_MSG_ERROR(bad value ${enableval} for --enable-local-audio) ;;
esac],[enable_local_audio=false])
AM_CONDITIONAL(ENABLE_LOCAL_AUDIO, test x$enable_local_audio = xtrue)
ENABLE_DOXYGEN
AM_CONDITIONAL(DOC, test x$enable_doc = xyes)
AM_CONDITIONAL(USE_BLDNO, test x$enable_buildnumber = xyes)

## Sipviewer is written in java and compiled w/ant so allow someone
## w/o java or ant to effectively ignore anything about this
AC_ARG_ENABLE(sipviewer, 
  [  --enable-sipviewer       Compile java based sipviewer program (needs JVM)],
  , enable_sipviewer=no)
AM_CONDITIONAL(SIPVIEWER, test x$enable_sipviewer = xyes)
if test x$enable_sipviewer = xyes
then
## SIPViewer is only part of project that uses java, so restrict
## test only if installing sipviewer
  CHECK_JDK
  CHECK_ANT
fi
AM_CONDITIONAL(USE_BLDNO, test x$enable_buildnumber = xyes)


EXTERNAL_EXTENITIONS
EXTERNAL_EXTENITIONS_MEDIA
SPEACKER_SELECTION_CHECK

# Conditionally use the GIPS audio libraries
CHECK_GIPSNEQ
CHECK_GIPSVE
CHECK_GIPSCE
CHECK_VIDEO

SFAC_FEATURE_SIPX_EZPHONE

# named is used in some sipXtackLib tests
CHECK_NAMED

AC_SEARCH_LIBS([clock_nanosleep],[rt posix4])

AC_CONFIG_FILES([
  Makefile
  sipxtapi.spec
  bin/Makefile
  sipXcallLib/Makefile 
  sipXcallLib/doc/Makefile
  sipXcallLib/include/Makefile 
  sipXcallLib/src/Makefile 
  sipXcallLib/src/test/Makefile 
  sipXcallLib/src/test/tapi/Makefile
  sipXmediaAdapterLib/Makefile 
  sipXmediaAdapterLib/interface/Makefile
  sipXmediaAdapterLib/sipXmediaMediaProcessing/Makefile
  sipXmediaAdapterLib/sipXmediaMediaProcessing/src/Makefile
  sipXmediaAdapterLib/sipXmediaMediaProcessing/src/test/Makefile
  sipXmediaAdapterLib/sipXmediaMediaProcessing/include/Makefile
  sipXmediaAdapterLib/examples/Makefile
  sipXmediaAdapterLib/doc/Makefile
  sipXmediaLib/Makefile 
  sipXmediaLib/include/Makefile 
  sipXmediaLib/src/Makefile 
  sipXmediaLib/src/mp/codecs/Makefile
  sipXmediaLib/src/mp/codecs/plggsm/Makefile
  sipXmediaLib/src/mp/codecs/plgpcmapcmu/Makefile
  sipXmediaLib/src/mp/codecs/plgtones/Makefile
  sipXmediaLib/src/mp/codecs/plgl16/Makefile
  sipXmediaLib/src/mp/codecs/plgspeex/Makefile
  sipXmediaLib/src/mp/codecs/plgilbc/Makefile
  sipXmediaLib/src/mp/codecs/plgg726/Makefile
  sipXmediaLib/src/mp/codecs/plgg722/Makefile
  sipXmediaLib/src/mp/codecs/plgamr/Makefile
  sipXmediaLib/src/mp/codecs/plgamrwb/Makefile
  sipXmediaLib/src/mp/codecs/plgopus/Makefile
  sipXmediaLib/src/test/Makefile
  sipXmediaLib/doc/Makefile
  sipXportLib/Makefile 
  sipXportLib/include/Makefile 
  sipXportLib/src/Makefile 
  sipXportLib/src/test/Makefile
  sipXportLib/src/test/sipxunit/Makefile
  sipXportLib/src/test/sipxportunit/Makefile
  sipXportLib/src/test/testplugin/Makefile
  sipXportLib/syslogviewer/Makefile
  sipXportLib/doc/Makefile
  sipXsdpLib/Makefile 
  sipXsdpLib/include/Makefile 
  sipXsdpLib/src/Makefile 
  sipXsdpLib/src/test/Makefile
  sipXsdpLib/doc/Makefile
  sipXtackLib/Makefile 
  sipXtackLib/include/Makefile 
  sipXtackLib/src/Makefile 
  sipXtackLib/meta/Makefile 
  sipXtackLib/src/test/Makefile
  sipXtackLib/examples/Makefile
  sipXtackLib/examples/im/Makefile
  sipXtackLib/examples/xmlrpc/Makefile
  sipXtackLib/syslog2siptrace/Makefile 
  sipXtackLib/siplog2siptrace/Makefile
  sipXtackLib/sipviewer/Makefile 
  sipXtackLib/siptest/Makefile 
  sipXtackLib/siptest/src/Makefile 
  sipXtackLib/siptest/include/Makefile 
  sipXtackLib/siptest/src/siptest/Makefile
  sipXtackLib/doc/Makefile
])

AC_OUTPUT