| 1 | dnl Process this file with autoconf to produce a configure script. |
|---|
| 2 | AC_INIT([mediastreamer],[2.8.99]) |
|---|
| 3 | |
|---|
| 4 | AC_MSG_NOTICE([$PACKAGE_NAME-$PACKAGE_VERSION A mediastreaming library for telephony application.]) |
|---|
| 5 | AC_MSG_NOTICE([licensed under the terms of the General Public License (GPL)]) |
|---|
| 6 | |
|---|
| 7 | AC_CANONICAL_SYSTEM |
|---|
| 8 | |
|---|
| 9 | dnl Source packaging numbers |
|---|
| 10 | MEDIASTREAMER_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1) |
|---|
| 11 | MEDIASTREAMER_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2) |
|---|
| 12 | MEDIASTREAMER_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3) |
|---|
| 13 | MEDIASTREAMER_EXTRA_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f4) |
|---|
| 14 | |
|---|
| 15 | LIBMEDIASTREAMER_SO_CURRENT=2 dnl increment this number when you add/change/remove an interface |
|---|
| 16 | LIBMEDIASTREAMER_SO_REVISION=0 dnl increment this number when you change source code, without changing interfaces; set to 0 when incrementing CURRENT |
|---|
| 17 | LIBMEDIASTREAMER_SO_AGE=0 dnl increment this number when you add an interface, set to 0 if you remove an interface |
|---|
| 18 | |
|---|
| 19 | LIBMEDIASTREAMER_SO_VERSION=$LIBMEDIASTREAMER_SO_CURRENT:$LIBMEDIASTREAMER_SO_REVISION:$LIBMEDIASTREAMER_SO_AGE |
|---|
| 20 | MEDIASTREAMER_VERSION=${MEDIASTREAMER_MAJOR_VERSION}.${MEDIASTREAMER_MINOR_VERSION}.${MEDIASTREAMER_MICRO_VERSION} |
|---|
| 21 | |
|---|
| 22 | if test -n "$MEDIASTREAMER_EXTRA_VERSION" ; then |
|---|
| 23 | MEDIASTREAMER_VERSION="${MEDIASTREAMER_VERSION}.${MEDIASTREAMER_EXTRA_VERSION}" |
|---|
| 24 | fi |
|---|
| 25 | |
|---|
| 26 | AC_SUBST(LIBMEDIASTREAMER_SO_VERSION) |
|---|
| 27 | AC_SUBST(MEDIASTREAMER_VERSION) |
|---|
| 28 | |
|---|
| 29 | PACKAGE=mediastreamer |
|---|
| 30 | |
|---|
| 31 | OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
|---|
| 32 | AC_MSG_RESULT([Building Package on ${OS}]) |
|---|
| 33 | |
|---|
| 34 | AM_INIT_AUTOMAKE([tar-ustar]) |
|---|
| 35 | m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],) |
|---|
| 36 | AC_CONFIG_HEADERS(mediastreamer-config.h) |
|---|
| 37 | AC_DEFINE_UNQUOTED(MEDIASTREAMER_MAJOR_VERSION,$MEDIASTREAMER_MAJOR_VERSION, [major version]) |
|---|
| 38 | AC_DEFINE_UNQUOTED(MEDIASTREAMER_MINOR_VERSION,$MEDIASTREAMER_MINOR_VERSION, [minor version]) |
|---|
| 39 | AC_DEFINE_UNQUOTED(MEDIASTREAMER_MICRO_VERSION,$MEDIASTREAMER_MICRO_VERSION, [micro version]) |
|---|
| 40 | AC_DEFINE_UNQUOTED(MEDIASTREAMER_VERSION,"$MEDIASTREAMER_VERSION",[MEDIASTREAMER version number]) |
|---|
| 41 | |
|---|
| 42 | MS_PUBLIC_CFLAGS= |
|---|
| 43 | |
|---|
| 44 | AC_SUBST([mkdir_p]) |
|---|
| 45 | |
|---|
| 46 | AC_MSG_CHECKING([warning make an error on compilation]) |
|---|
| 47 | AC_ARG_ENABLE(strict, |
|---|
| 48 | [AS_HELP_STRING([--enable-strict], [Enable error on compilation warning (default=no)])], |
|---|
| 49 | [wall_werror=$enableval], |
|---|
| 50 | [wall_werror=yes] |
|---|
| 51 | ) |
|---|
| 52 | |
|---|
| 53 | CFLAGS="-DORTP_INET6 $CFLAGS " |
|---|
| 54 | |
|---|
| 55 | dnl enable ipv6 support |
|---|
| 56 | AC_ARG_ENABLE(ipv6, |
|---|
| 57 | [AS_HELP_STRING([--enable-ipv6], [Turn on IPv6 support (default=yes)])], |
|---|
| 58 | [case "${enableval}" in |
|---|
| 59 | yes) ipv6=true;; |
|---|
| 60 | no) ipv6=false;; |
|---|
| 61 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-ipv6) ;; |
|---|
| 62 | esac],[ipv6=true]) |
|---|
| 63 | if test x$ipv6 = xtrue ; then |
|---|
| 64 | CFLAGS="$CFLAGS -DINET6" |
|---|
| 65 | fi |
|---|
| 66 | |
|---|
| 67 | dnl enable timestamp support |
|---|
| 68 | AC_ARG_ENABLE(ntp-timestamp, |
|---|
| 69 | [AS_HELP_STRING([--enable-ntp-timestamp], [Turn on NTP timestamping on received packet (default=no)])], |
|---|
| 70 | [case "${enableval}" in |
|---|
| 71 | yes) ntptimestamp=true;; |
|---|
| 72 | no) ntptimestamp=false;; |
|---|
| 73 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-ntp-timestamp) ;; |
|---|
| 74 | esac],[ntptimestamp=false]) |
|---|
| 75 | |
|---|
| 76 | dnl Checks for programs. |
|---|
| 77 | AC_PROG_CXX |
|---|
| 78 | AC_PROG_CC |
|---|
| 79 | AC_PROG_OBJC |
|---|
| 80 | |
|---|
| 81 | AC_CONFIG_MACRO_DIR([m4]) |
|---|
| 82 | LT_INIT([win32-dll shared disable-static]) |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | AC_SUBST([LIBTOOL_DEPS]) |
|---|
| 86 | |
|---|
| 87 | if test "$GCC" != "yes" ; then |
|---|
| 88 | case $target_os in |
|---|
| 89 | *hpux*) |
|---|
| 90 | dnl we are probably using HPUX cc compiler, so add a +O2 to CFLAGS |
|---|
| 91 | CFLAGS="$CFLAGS +O2 -g " |
|---|
| 92 | ;; |
|---|
| 93 | esac |
|---|
| 94 | else |
|---|
| 95 | CFLAGS="$CFLAGS -Wall -fdiagnostics-show-option" |
|---|
| 96 | fi |
|---|
| 97 | |
|---|
| 98 | AC_ARG_ENABLE([debug], |
|---|
| 99 | AS_HELP_STRING([--enable-debug=@<:@yes/no@:>@],[enables the display of traces showing the execution of the library. @<:@default=yes@:>@]), |
|---|
| 100 | [], dnl [action-if-given] |
|---|
| 101 | [enable_debug=no]) dnl [action-if-not-given] |
|---|
| 102 | |
|---|
| 103 | |
|---|
| 104 | AS_CASE([$enable_debug], |
|---|
| 105 | [yes],[ |
|---|
| 106 | CFLAGS="$CFLAGS -g -DDEBUG" |
|---|
| 107 | CXXFLAGS="$CXXFLAGS -g -DDEBUG" |
|---|
| 108 | ], |
|---|
| 109 | [no], |
|---|
| 110 | [ |
|---|
| 111 | case "$CFLAGS" in |
|---|
| 112 | *-O*) |
|---|
| 113 | ;; |
|---|
| 114 | *) |
|---|
| 115 | CFLAGS="$CFLAGS -O2 -g" |
|---|
| 116 | CXXFLAGS="$CXXFLAGS -O2 -g" |
|---|
| 117 | ;; |
|---|
| 118 | esac |
|---|
| 119 | ], |
|---|
| 120 | [AC_MSG_ERROR([Bad value ($enable_debug) for --enable-debug. Valid values are yes or no.])]) |
|---|
| 121 | |
|---|
| 122 | dnl Checks for header files. |
|---|
| 123 | AC_HEADER_STDC |
|---|
| 124 | |
|---|
| 125 | dnl Checks for typedefs, structures, and compiler characteristics. |
|---|
| 126 | AC_C_CONST |
|---|
| 127 | AC_C_INLINE |
|---|
| 128 | AC_HEADER_TIME |
|---|
| 129 | AC_WORDS_BIGENDIAN |
|---|
| 130 | if test x$ac_cv_c_bigendian = xyes ; then |
|---|
| 131 | CFLAGS="$CFLAGS -D_BIGENDIAN " |
|---|
| 132 | fi |
|---|
| 133 | |
|---|
| 134 | if test $GCC = yes && test $wall_werror = yes; then |
|---|
| 135 | CFLAGS="$CFLAGS -Werror -Wno-error=deprecated-declarations" |
|---|
| 136 | fi |
|---|
| 137 | |
|---|
| 138 | macosx_found=no |
|---|
| 139 | ios_found=false |
|---|
| 140 | mingw32ce_found=no |
|---|
| 141 | ios_found=no |
|---|
| 142 | |
|---|
| 143 | dnl add thread flags |
|---|
| 144 | case $host in |
|---|
| 145 | i386-apple*|armv6-apple*|armv7-apple*|armv7s-apple*) |
|---|
| 146 | ios_found=yes |
|---|
| 147 | ;; |
|---|
| 148 | x86_64-apple*) |
|---|
| 149 | macosx_found=yes |
|---|
| 150 | ;; |
|---|
| 151 | *mingw32ce) |
|---|
| 152 | CFLAGS="$CFLAGS -DINET6 -DORTP_INET6 -D_WIN32_WINNT=0x0501 -D_WIN32_WCE -DORTP_STATIC" |
|---|
| 153 | CXXFLAGS="$CXXFLAGS -DINET6 -DORTP_INET6 -D_WIN32_WINNT=0x0501 -DORTP_STATIC -D_WIN32_WCE" |
|---|
| 154 | dnl ORTP_STATIC to tell ortp not to export its variable with dllexport, as if we were building statically, or dynamically on linux |
|---|
| 155 | LIBS="$LIBS -lws2" |
|---|
| 156 | mingw_found=yes |
|---|
| 157 | mingw32ce_found=yes |
|---|
| 158 | ;; |
|---|
| 159 | *mingw*) |
|---|
| 160 | CFLAGS="$CFLAGS -DINET6 -DORTP_INET6 -D_WIN32_WINNT=0x0501 -DORTP_STATIC" |
|---|
| 161 | CXXFLAGS="$CXXFLAGS -DINET6 -DORTP_INET6 -D_WIN32_WINNT=0x0501 -DORTP_STATIC" |
|---|
| 162 | dnl ORTP_STATIC to tell ortp not to export its variable with dllexport, as if we were building statically, or dynamically on linux |
|---|
| 163 | LIBS="$LIBS -lws2_32 -lwinmm " |
|---|
| 164 | mingw_found=yes |
|---|
| 165 | ;; |
|---|
| 166 | *) |
|---|
| 167 | MSPLUGINS_CFLAGS="-pthread" |
|---|
| 168 | MSPLUGINS_LIBS="-shared -pthread" |
|---|
| 169 | CFLAGS="$CFLAGS -pthread -D_REENTRANT" |
|---|
| 170 | LIBS="$LIBS -pthread -lpthread" |
|---|
| 171 | ;; |
|---|
| 172 | esac |
|---|
| 173 | |
|---|
| 174 | if test "$macosx_found" == "yes" ; then |
|---|
| 175 | LIBS="$LIBS -framework CoreFoundation -framework AudioToolbox -framework CoreAudio -framework AppKit" |
|---|
| 176 | fi |
|---|
| 177 | if test "$ios_found" == "yes" ; then |
|---|
| 178 | LIBS="$LIBS -framework CoreFoundation -framework AudioToolbox -framework CoreAudio " |
|---|
| 179 | fi |
|---|
| 180 | dnl localization tools |
|---|
| 181 | IT_PROG_INTLTOOL([0.40], [no-xml]) |
|---|
| 182 | |
|---|
| 183 | |
|---|
| 184 | GETTEXT_PACKAGE="mediastreamer" |
|---|
| 185 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,["mediastreamer"],[name of the gettext domain. Used in the call to 'bindtextdomain()']) |
|---|
| 186 | AC_SUBST([GETTEXT_PACKAGE]) |
|---|
| 187 | if test "$mingw_found" != "yes" ; then |
|---|
| 188 | dnl gettext macro does not work properly under mingw. And we want to use the one provided by GTK. |
|---|
| 189 | AM_GNU_GETTEXT([external]) |
|---|
| 190 | AM_GNU_GETTEXT_VERSION([0.18]) |
|---|
| 191 | LIBS="$LIBS $LIBINTL" |
|---|
| 192 | else |
|---|
| 193 | AC_DEFINE(ENABLE_NLS,1,[Tells whether localisation is possible]) |
|---|
| 194 | AC_DEFINE(HAVE_GETTEXT,1,[Tells wheter localisation is possible]) |
|---|
| 195 | LIBS="$LIBS -lintl" |
|---|
| 196 | fi |
|---|
| 197 | |
|---|
| 198 | AM_CONDITIONAL(BUILD_MACOSX, test x$macosx_found = xyes) |
|---|
| 199 | AM_CONDITIONAL(BUILD_IOS, test x$ios_found = xyes) |
|---|
| 200 | |
|---|
| 201 | AC_CONFIG_COMMANDS([libtool-hacking],[ |
|---|
| 202 | if test "$mingw_found" = "yes" ; then |
|---|
| 203 | echo "Hacking libtool to work with mingw..." |
|---|
| 204 | sed -e 's/\*\" \$a_deplib \"\*/\*/' < ./libtool > libtool.tmp |
|---|
| 205 | cp -f ./libtool.tmp ./libtool |
|---|
| 206 | rm -f ./libtool.tmp |
|---|
| 207 | else |
|---|
| 208 | echo "No need to hack libtool." |
|---|
| 209 | fi |
|---|
| 210 | ], [mingw_found=$mingw_found]) |
|---|
| 211 | |
|---|
| 212 | |
|---|
| 213 | dnl prefer fixed point computations |
|---|
| 214 | AC_ARG_ENABLE(fixed_point, |
|---|
| 215 | [AS_HELP_STRING([--enable-fixed-point=@<:@yes/no/guess@:>@], [Turn on fixed point computations (default=guess)])], |
|---|
| 216 | [case "${enableval}" in |
|---|
| 217 | yes) fixed_point=true;; |
|---|
| 218 | no) fixed_point=false;; |
|---|
| 219 | guess) fixed_point=guess;; |
|---|
| 220 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-fixed-point) ;; |
|---|
| 221 | esac],[fixed_point=guess]) |
|---|
| 222 | |
|---|
| 223 | if test "$fixed_point" = "guess" ; then |
|---|
| 224 | AC_MSG_CHECKING([whether fixed point arithmetic is preferred]) |
|---|
| 225 | case ${target_cpu}${host_cpu} in |
|---|
| 226 | *bfin*) |
|---|
| 227 | fixed_point=true |
|---|
| 228 | ;; |
|---|
| 229 | *arm*) |
|---|
| 230 | fixed_point=true |
|---|
| 231 | ;; |
|---|
| 232 | *) |
|---|
| 233 | fixed_point=false |
|---|
| 234 | ;; |
|---|
| 235 | esac |
|---|
| 236 | AC_MSG_RESULT([$fixed_point]) |
|---|
| 237 | fi |
|---|
| 238 | |
|---|
| 239 | |
|---|
| 240 | if test x$fixed_point = xtrue ; then |
|---|
| 241 | MS_PUBLIC_CFLAGS="$MS_PUBLIC_CFLAGS -DMS_FIXED_POINT" |
|---|
| 242 | fi |
|---|
| 243 | |
|---|
| 244 | |
|---|
| 245 | dnl initialize pkg-config so that we can use it within if else fi statements. |
|---|
| 246 | PKG_PROG_PKG_CONFIG() |
|---|
| 247 | |
|---|
| 248 | AC_SUBST(MSPLUGINS_CFLAGS) |
|---|
| 249 | AC_SUBST(MSPLUGINS_LIBS) |
|---|
| 250 | |
|---|
| 251 | dnl ********************************* |
|---|
| 252 | dnl various checks for soundcard apis |
|---|
| 253 | dnl ********************************* |
|---|
| 254 | |
|---|
| 255 | found_sound=no |
|---|
| 256 | |
|---|
| 257 | if test x$mingw_found = xyes ; then |
|---|
| 258 | found_sound=yes |
|---|
| 259 | fi |
|---|
| 260 | |
|---|
| 261 | AC_ARG_ENABLE(sound, |
|---|
| 262 | [AS_HELP_STRING([--disable-sound], [Turn off all possible sound backend (default=no)])], |
|---|
| 263 | [case "${enableval}" in |
|---|
| 264 | yes) use_sound=true ;; |
|---|
| 265 | no) use_sound=false ;; |
|---|
| 266 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-sound) ;; |
|---|
| 267 | esac],[use_sound=true]) |
|---|
| 268 | |
|---|
| 269 | AC_ARG_ENABLE(oss, |
|---|
| 270 | [AS_HELP_STRING([--enable-oss], [Enable oss support])], |
|---|
| 271 | [case "${enableval}" in |
|---|
| 272 | yes) oss=true ;; |
|---|
| 273 | no) oss=false ;; |
|---|
| 274 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-oss) ;; |
|---|
| 275 | esac],[oss=$use_sound]) |
|---|
| 276 | |
|---|
| 277 | if "$oss" = "true"; then |
|---|
| 278 | AC_CHECK_HEADERS(soundcard.h sys/soundcard.h machine/soundcard.h sys/audio.h) |
|---|
| 279 | if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \ |
|---|
| 280 | test "${ac_cv_header_soundcard_h}" = "yes" || \ |
|---|
| 281 | test "${ac_cv_header_sys_audio_h}" = "yes" || \ |
|---|
| 282 | test "${ac_cv_header_machine_soundcard_h}" = "yes"; then |
|---|
| 283 | found_sound=yes |
|---|
| 284 | else |
|---|
| 285 | oss=false |
|---|
| 286 | fi |
|---|
| 287 | fi |
|---|
| 288 | |
|---|
| 289 | AM_CONDITIONAL(BUILD_OSS, test x$oss = xtrue) |
|---|
| 290 | |
|---|
| 291 | dnl conditionnal build of ALSA support |
|---|
| 292 | AC_ARG_ENABLE(alsa, |
|---|
| 293 | [AS_HELP_STRING([--enable-alsa], [Turn on alsa native support compiling])], |
|---|
| 294 | [case "${enableval}" in |
|---|
| 295 | yes) alsa=true ;; |
|---|
| 296 | no) alsa=false ;; |
|---|
| 297 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-alsa) ;; |
|---|
| 298 | esac],[alsa=$use_sound]) |
|---|
| 299 | |
|---|
| 300 | if test "$alsa" = "true"; then |
|---|
| 301 | AC_CHECK_HEADERS(alsa/asoundlib.h, |
|---|
| 302 | [ AC_CHECK_LIB(asound,snd_pcm_open, |
|---|
| 303 | [ ALSA_LIBS="-lasound" |
|---|
| 304 | found_sound=yes |
|---|
| 305 | AC_DEFINE(__ALSA_ENABLED__,1,[defined if alsa support is available]) |
|---|
| 306 | alsa_enabled=true |
|---|
| 307 | ]) |
|---|
| 308 | ] |
|---|
| 309 | ) |
|---|
| 310 | fi |
|---|
| 311 | AC_SUBST(ALSA_LIBS) |
|---|
| 312 | |
|---|
| 313 | AM_CONDITIONAL(BUILD_ALSA, test x$alsa_enabled = xtrue) |
|---|
| 314 | |
|---|
| 315 | |
|---|
| 316 | AC_ARG_ENABLE(artsc, |
|---|
| 317 | [AS_HELP_STRING([--enable-artsc], [Turn on artsc (KDE<4) sound input/output (default=no)])], |
|---|
| 318 | [case "${enableval}" in |
|---|
| 319 | yes) artsc=true ;; |
|---|
| 320 | no) artsc=false ;; |
|---|
| 321 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-artsc) ;; |
|---|
| 322 | esac],[artsc=false]) |
|---|
| 323 | |
|---|
| 324 | arts_enabled=false |
|---|
| 325 | |
|---|
| 326 | if test "$artsc" = "true" ; then |
|---|
| 327 | |
|---|
| 328 | dnl check for arts (kde sound daemon) support |
|---|
| 329 | PKG_CHECK_MODULES(ARTS, [artsc],[ |
|---|
| 330 | dnl New detection |
|---|
| 331 | arts_enabled=true |
|---|
| 332 | ],[ |
|---|
| 333 | dnl Old detection |
|---|
| 334 | if test x$artsc = xtrue ; then |
|---|
| 335 | AC_CHECK_HEADERS(kde/artsc/artsc.h, |
|---|
| 336 | [ AC_CHECK_LIB(artsc,arts_init, |
|---|
| 337 | [ ARTS_LIBS="-lartsc" |
|---|
| 338 | arts_enabled=true |
|---|
| 339 | ]) |
|---|
| 340 | ] |
|---|
| 341 | ) |
|---|
| 342 | fi |
|---|
| 343 | AC_SUBST(ARTS_LIBS) |
|---|
| 344 | ]) |
|---|
| 345 | fi |
|---|
| 346 | |
|---|
| 347 | if test x$arts_enabled = xtrue; then |
|---|
| 348 | found_sound=yes |
|---|
| 349 | AC_DEFINE(__ARTS_ENABLED__,1,[defined if arts support is available]) |
|---|
| 350 | fi |
|---|
| 351 | |
|---|
| 352 | AM_CONDITIONAL(BUILD_ARTS, test x$arts_enabled = xtrue) |
|---|
| 353 | |
|---|
| 354 | AC_ARG_ENABLE(portaudio, |
|---|
| 355 | [AS_HELP_STRING([--enable-portaudio], [Turn on portaudio native support compiling (default=no)])], |
|---|
| 356 | [case "${enableval}" in |
|---|
| 357 | yes) portaudio=true ;; |
|---|
| 358 | no) portaudio=false ;; |
|---|
| 359 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-portaudio) ;; |
|---|
| 360 | esac],[portaudio=false]) |
|---|
| 361 | |
|---|
| 362 | if test "$portaudio" = "true"; then |
|---|
| 363 | AC_CHECK_HEADERS(portaudio.h, |
|---|
| 364 | [ AC_CHECK_LIB(portaudio,Pa_Initialize, |
|---|
| 365 | [ PORTAUDIO_LIBS="-lportaudio" |
|---|
| 366 | found_sound=yes |
|---|
| 367 | AC_DEFINE(__PORTAUDIO_ENABLED__,1,[defined if portaudio support is available]) |
|---|
| 368 | portaudio_enabled=true |
|---|
| 369 | ]) |
|---|
| 370 | ] |
|---|
| 371 | ) |
|---|
| 372 | fi |
|---|
| 373 | |
|---|
| 374 | AC_SUBST(PORTAUDIO_LIBS) |
|---|
| 375 | AM_CONDITIONAL(BUILD_PORTAUDIO, test x$portaudio_enabled = xtrue) |
|---|
| 376 | |
|---|
| 377 | AC_ARG_ENABLE(macsnd, |
|---|
| 378 | [AS_HELP_STRING([--enable-macsnd], [Turn on MAC OS X Audio Units sound support])], |
|---|
| 379 | [case "${enableval}" in |
|---|
| 380 | yes) macsnd=true ;; |
|---|
| 381 | no) macsnd=false ;; |
|---|
| 382 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-macsnd) ;; |
|---|
| 383 | esac],[macsnd=$use_sound]) |
|---|
| 384 | |
|---|
| 385 | macaqsnd_default=no |
|---|
| 386 | if test "$ios_found" = "yes" ; then |
|---|
| 387 | macaqsnd_default=true; |
|---|
| 388 | fi |
|---|
| 389 | |
|---|
| 390 | AC_ARG_ENABLE(macaqsnd, |
|---|
| 391 | [AS_HELP_STRING([--enable-macaqsnd], [Turn on native MAC OS X Audio Queue sound support (default=no)])], |
|---|
| 392 | [case "${enableval}" in |
|---|
| 393 | yes) macaqsnd=true ;; |
|---|
| 394 | no) macaqsnd=false ;; |
|---|
| 395 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-macaqsnd) ;; |
|---|
| 396 | esac],[macaqsnd=$macaqsnd_default]) |
|---|
| 397 | |
|---|
| 398 | |
|---|
| 399 | |
|---|
| 400 | if test "$macosx_found" = "yes" ; then |
|---|
| 401 | if test "$macsnd" = "true"; then |
|---|
| 402 | AC_DEFINE(__MACSND_ENABLED__,1,[defined if native macosx sound support is available]) |
|---|
| 403 | macsnd_enabled=true |
|---|
| 404 | LIBS="$LIBS -framework Carbon -framework AudioUnit" |
|---|
| 405 | found_sound=yes |
|---|
| 406 | fi |
|---|
| 407 | fi |
|---|
| 408 | |
|---|
| 409 | if test "$macaqsnd" = "true"; then |
|---|
| 410 | AC_DEFINE(__MAC_AQ_ENABLED__,1,[defined if native macosx AQ sound support is available]) |
|---|
| 411 | found_sound=yes |
|---|
| 412 | macaqsnd=true |
|---|
| 413 | fi |
|---|
| 414 | |
|---|
| 415 | AM_CONDITIONAL(BUILD_MACSND, test x$macsnd_enabled = xtrue) |
|---|
| 416 | AM_CONDITIONAL(BUILD_MACAQSND, test x$macaqsnd = xtrue) |
|---|
| 417 | AM_CONDITIONAL(BUILD_IOSIOUNIT, test x$ios_found = xyes) |
|---|
| 418 | |
|---|
| 419 | AC_ARG_ENABLE(pulseaudio, |
|---|
| 420 | [AS_HELP_STRING([--disable-pulseaudio], [Disable pulseaudio support])], |
|---|
| 421 | [case "${enableval}" in |
|---|
| 422 | yes) pulseaudio=true ;; |
|---|
| 423 | no) pulseaudio=false ;; |
|---|
| 424 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-pulseaudio) ;; |
|---|
| 425 | esac],[pulseaudio=$use_sound]) |
|---|
| 426 | |
|---|
| 427 | |
|---|
| 428 | if test x$pulseaudio = xtrue ; then |
|---|
| 429 | PKG_CHECK_MODULES(LIBPULSE, libpulse >= 0.9.21, |
|---|
| 430 | [ |
|---|
| 431 | AC_DEFINE(__PULSEAUDIO_ENABLED__,1,[Pulse audio support]) |
|---|
| 432 | found_sound=yes |
|---|
| 433 | ], |
|---|
| 434 | [pulseaudio=false]) |
|---|
| 435 | fi |
|---|
| 436 | |
|---|
| 437 | AM_CONDITIONAL(BUILD_PULSEAUDIO,test x$pulseaudio = xtrue) |
|---|
| 438 | |
|---|
| 439 | |
|---|
| 440 | if test "${found_sound}${use_sound}" = "noyes"; then |
|---|
| 441 | AC_MSG_ERROR([Could not find a support sound driver API. Use --disable-sound if you don't care about having sound.]) |
|---|
| 442 | fi |
|---|
| 443 | |
|---|
| 444 | |
|---|
| 445 | dnl ************************************* |
|---|
| 446 | dnl check for various codecs libraries |
|---|
| 447 | dnl ************************************* |
|---|
| 448 | |
|---|
| 449 | AC_ARG_ENABLE(speex, |
|---|
| 450 | [AS_HELP_STRING([--disable-speex], [Disable speex support])], |
|---|
| 451 | [case "${enableval}" in |
|---|
| 452 | yes) speex=true ;; |
|---|
| 453 | no) speex=false ;; |
|---|
| 454 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-speex) ;; |
|---|
| 455 | esac],[speex=true]) |
|---|
| 456 | |
|---|
| 457 | if test x$speex = xtrue; then |
|---|
| 458 | |
|---|
| 459 | dnl check for installed version of speex |
|---|
| 460 | PKG_CHECK_MODULES(SPEEX, speex >= 1.2beta3, |
|---|
| 461 | [ AC_DEFINE(HAVE_SPEEX_NOISE,1,[tells whether the noise arg of speex_echo_cancel can be used]) ], |
|---|
| 462 | [try_other_speex=yes] |
|---|
| 463 | ) |
|---|
| 464 | PKG_CHECK_MODULES(SPEEX, speex >= 1.2beta3, build_speex=yes) |
|---|
| 465 | build_resample=false |
|---|
| 466 | PKG_CHECK_MODULES(SPEEXDSP, speexdsp >= 1.2beta3, |
|---|
| 467 | [SPEEX_LIBS="$SPEEX_LIBS $SPEEXDSP_LIBS" |
|---|
| 468 | AC_DEFINE(HAVE_SPEEXDSP,1,[have speexdsp library]) |
|---|
| 469 | build_resample=yes] , |
|---|
| 470 | [AC_MSG_ERROR([No libspeexdsp library found.]) |
|---|
| 471 | ] |
|---|
| 472 | ) |
|---|
| 473 | AC_SUBST(SPEEX_CFLAGS) |
|---|
| 474 | AC_SUBST(SPEEX_LIBS) |
|---|
| 475 | |
|---|
| 476 | fi |
|---|
| 477 | |
|---|
| 478 | AM_CONDITIONAL(BUILD_SPEEX, test x$build_speex = xyes ) |
|---|
| 479 | AM_CONDITIONAL(BUILD_RESAMPLE, test x$build_resample = xyes ) |
|---|
| 480 | |
|---|
| 481 | AC_ARG_ENABLE(gsm, |
|---|
| 482 | [AS_HELP_STRING([--disable-gsm], [Disable gsm support])], |
|---|
| 483 | [case "${enableval}" in |
|---|
| 484 | yes) gsm=true ;; |
|---|
| 485 | no) gsm=false ;; |
|---|
| 486 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-gsm) ;; |
|---|
| 487 | esac],[gsm=auto]) |
|---|
| 488 | |
|---|
| 489 | if test x$gsm != xfalse; then |
|---|
| 490 | |
|---|
| 491 | dnl check for gsm |
|---|
| 492 | build_gsm=no |
|---|
| 493 | AC_ARG_WITH( gsm, |
|---|
| 494 | [ --with-gsm Sets the installation prefix of gsm codec library [default=/usr] ], |
|---|
| 495 | [ gsmdir=${withval}],[ gsmdir=/usr ]) |
|---|
| 496 | |
|---|
| 497 | if test x"$gsmdir" != xno ; then |
|---|
| 498 | test x"$gmsdir" = xyes && gsmdir=/usr |
|---|
| 499 | MS_CHECK_DEP([gsm codec],[GSM],[${gsmdir}/include], |
|---|
| 500 | [${gsmdir}/lib],[gsm/gsm.h],[gsm],[gsm_create]) |
|---|
| 501 | if test "$GSM_found" = "yes" ; then |
|---|
| 502 | build_gsm=yes |
|---|
| 503 | elif test "$gsm" = "true"; then |
|---|
| 504 | AC_MSG_ERROR([Could not locate gsm headers or library.]) |
|---|
| 505 | fi |
|---|
| 506 | else |
|---|
| 507 | build_gsm=no |
|---|
| 508 | fi |
|---|
| 509 | |
|---|
| 510 | fi |
|---|
| 511 | |
|---|
| 512 | dnl check for spandsp support to bring up g726 codec |
|---|
| 513 | AC_ARG_ENABLE(spandsp, |
|---|
| 514 | [AS_HELP_STRING([--disable-spandsp], [Disable spandsp support])], |
|---|
| 515 | [case "${enableval}" in |
|---|
| 516 | yes) spandsp=true ;; |
|---|
| 517 | no) spandsp=false ;; |
|---|
| 518 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-spandsp) ;; |
|---|
| 519 | esac],[spandsp=true]) |
|---|
| 520 | |
|---|
| 521 | if test x$spandsp = xtrue; then |
|---|
| 522 | |
|---|
| 523 | dnl check for installed version of speex |
|---|
| 524 | PKG_CHECK_MODULES(SPANDSP, spandsp >= 0.0.6, |
|---|
| 525 | [ AC_DEFINE(HAVE_SPANDSP,1,[tells whether spandsp can be used]) |
|---|
| 526 | have_spandsp=true ], |
|---|
| 527 | [have_spandsp=false] |
|---|
| 528 | ) |
|---|
| 529 | AC_SUBST(SPANDSP_CFLAGS) |
|---|
| 530 | AC_SUBST(SPANDSP_LIBS) |
|---|
| 531 | |
|---|
| 532 | fi |
|---|
| 533 | |
|---|
| 534 | |
|---|
| 535 | AM_CONDITIONAL(BUILD_GSM, test x$build_gsm = xyes ) |
|---|
| 536 | AM_CONDITIONAL(BUILD_G726, test "$have_spandsp" = "true" ) |
|---|
| 537 | |
|---|
| 538 | MS_CHECK_VIDEO |
|---|
| 539 | AM_CONDITIONAL(BUILD_VIDEO, test "$video" = "true") |
|---|
| 540 | AM_CONDITIONAL(BUILD_THEORA, test "$have_theora" = "yes") |
|---|
| 541 | AM_CONDITIONAL(BUILD_VP8, test "$have_vp8" = "yes") |
|---|
| 542 | AM_CONDITIONAL(BUILD_WIN32, test "$mingw_found" = "yes") |
|---|
| 543 | AM_CONDITIONAL(BUILD_WIN32_WCE, test "$mingw32ce_found" = "yes") |
|---|
| 544 | AM_CONDITIONAL(BUILD_FFMPEG, test "$ffmpeg" = "true") |
|---|
| 545 | AM_CONDITIONAL(BUILD_SDL,test "$sdl_found" = "true" ) |
|---|
| 546 | AM_CONDITIONAL(BUILD_X11_XV, test "$enable_xv" = "true" ) |
|---|
| 547 | AM_CONDITIONAL(BUILD_X11_GL, test "$enable_gl" = "true" ) |
|---|
| 548 | |
|---|
| 549 | |
|---|
| 550 | dnl ********************************************* |
|---|
| 551 | dnl Enable/disable oRTP dependency |
|---|
| 552 | dnl ********************************************* |
|---|
| 553 | AC_ARG_ENABLE(ortp, |
|---|
| 554 | [AS_HELP_STRING([--disable-ortp], [Disable usage of the oRTP library (default=no)])], |
|---|
| 555 | [case "${enableval}" in |
|---|
| 556 | yes) ortp_enabled=true ;; |
|---|
| 557 | no) ortp_enabled=false ;; |
|---|
| 558 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-ortp) ;; |
|---|
| 559 | esac], |
|---|
| 560 | [ortp_enabled=true]) |
|---|
| 561 | AM_CONDITIONAL(ORTP_ENABLED, test x$ortp_enabled = xtrue) |
|---|
| 562 | |
|---|
| 563 | |
|---|
| 564 | dnl ********************************************* |
|---|
| 565 | dnl setup oRTP dependency |
|---|
| 566 | dnl ********************************************* |
|---|
| 567 | AC_ARG_ENABLE(external-ortp, |
|---|
| 568 | [AS_HELP_STRING([--enable-external-ortp], [Use external oRTP library (default=no)])], |
|---|
| 569 | [case "${enableval}" in |
|---|
| 570 | yes) external_ortp=true ;; |
|---|
| 571 | no) external_ortp=false ;; |
|---|
| 572 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-external-ortp) ;; |
|---|
| 573 | esac],[external_ortp=false]) |
|---|
| 574 | |
|---|
| 575 | if test "$ortp_enabled" = 'true'; then |
|---|
| 576 | if test "$external_ortp" = 'false'; then |
|---|
| 577 | if test -e $srcdir/../oRTP/include/ortp/ortp.h ; then |
|---|
| 578 | echo "building from linphone source tree, using ../oRTP/include/ortp/ortp.h" |
|---|
| 579 | ORTP_CFLAGS="-I\$(top_srcdir)/../oRTP/include" |
|---|
| 580 | ORTP_LIBS="\$(top_builddir)/../oRTP/src/libortp.la" |
|---|
| 581 | if test x$ac_cv_c_bigendian = xyes ; then |
|---|
| 582 | ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_BIGENDIAN" |
|---|
| 583 | fi |
|---|
| 584 | if test x$ntptimestamp = xtrue ; then |
|---|
| 585 | ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_TIMESTAMP" |
|---|
| 586 | fi |
|---|
| 587 | else |
|---|
| 588 | external_ortp=true |
|---|
| 589 | fi |
|---|
| 590 | fi |
|---|
| 591 | if test "$external_ortp" = 'true'; then |
|---|
| 592 | PKG_CHECK_MODULES(ORTP, ortp >= 0.17.0, , |
|---|
| 593 | [ AC_MSG_ERROR([Couldn't find ortp library]) ] ) |
|---|
| 594 | fi |
|---|
| 595 | else |
|---|
| 596 | AC_CHECK_HEADERS(sys/shm.h) |
|---|
| 597 | ORTP_CFLAGS="-Iortp-deps" |
|---|
| 598 | fi |
|---|
| 599 | AC_SUBST(ORTP_CFLAGS) |
|---|
| 600 | AC_SUBST(ORTP_LIBS) |
|---|
| 601 | |
|---|
| 602 | |
|---|
| 603 | dnl ********************************************* |
|---|
| 604 | dnl Enable/disable mediastreamer2 filters |
|---|
| 605 | dnl ********************************************* |
|---|
| 606 | AC_ARG_ENABLE(filters, |
|---|
| 607 | [AS_HELP_STRING([--disable-filters], [Disable compilation of filters (default=no)])], |
|---|
| 608 | [case "${enableval}" in |
|---|
| 609 | yes) filters=true ;; |
|---|
| 610 | no) filters=false ;; |
|---|
| 611 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-filters) ;; |
|---|
| 612 | esac], |
|---|
| 613 | [filters=true]) |
|---|
| 614 | AM_CONDITIONAL(MS2_FILTERS, test x$filters = xtrue) |
|---|
| 615 | |
|---|
| 616 | AM_CONDITIONAL(BUILD_VOIP_LIBRARY, test x$ortp_enabled = xtrue) |
|---|
| 617 | |
|---|
| 618 | |
|---|
| 619 | dnl check dlopen support in headers and libraries, so that we can use mediastreamer plugins |
|---|
| 620 | AC_CHECK_HEADERS(dlfcn.h) |
|---|
| 621 | have_dlopen=false |
|---|
| 622 | AC_CHECK_LIB(dl,dlopen,[LIBS="$LIBS -ldl"; have_dlopen=true]) |
|---|
| 623 | AC_CHECK_FUNC(dlopen,[have_dlopen=true]) |
|---|
| 624 | if test "$have_dlopen" = "true" ; then |
|---|
| 625 | AC_DEFINE(HAVE_DLOPEN,1,[Defined if dlopen() is availlable]) |
|---|
| 626 | fi |
|---|
| 627 | |
|---|
| 628 | dnl check various things |
|---|
| 629 | AC_FUNC_ALLOCA |
|---|
| 630 | AC_ARG_ENABLE(relativeprefix, |
|---|
| 631 | [AS_HELP_STRING([--enable-relativeprefix], [Build a linphone that finds its resources relatively to the directory where it is installed])], |
|---|
| 632 | [case "${enableval}" in |
|---|
| 633 | yes) relativeprefix=yes ;; |
|---|
| 634 | no) relativeprefix=no ;; |
|---|
| 635 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-relativeprefix) ;; |
|---|
| 636 | esac],[relativeprefix=guess]) |
|---|
| 637 | |
|---|
| 638 | if test "x${prefix}" = "xNONE"; then |
|---|
| 639 | package_prefix=${ac_default_prefix} |
|---|
| 640 | else |
|---|
| 641 | package_prefix=${prefix} |
|---|
| 642 | fi |
|---|
| 643 | |
|---|
| 644 | |
|---|
| 645 | |
|---|
| 646 | if test x$mingw_found = xyes || test x$relativeprefix = xyes ; then |
|---|
| 647 | package_prefix="." |
|---|
| 648 | PACKAGE_PLUGINS_DIR="./lib/mediastreamer/plugins" |
|---|
| 649 | else |
|---|
| 650 | PACKAGE_PLUGINS_DIR="\$(libdir)/mediastreamer/plugins" |
|---|
| 651 | fi |
|---|
| 652 | |
|---|
| 653 | dnl define path of plugins: |
|---|
| 654 | |
|---|
| 655 | AC_SUBST(PACKAGE_PLUGINS_DIR) |
|---|
| 656 | |
|---|
| 657 | PACKAGE_DATA_DIR="$prefix/share" |
|---|
| 658 | AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${package_prefix}/share" ,[path of data]) |
|---|
| 659 | AC_SUBST(PACKAGE_DATA_DIR) |
|---|
| 660 | |
|---|
| 661 | dnl check for video4linux headers |
|---|
| 662 | AC_CHECK_HEADERS(linux/videodev.h linux/videodev2.h) |
|---|
| 663 | if test "${ac_cv_header_linux_videodev_h}" = "yes" ; then |
|---|
| 664 | found_v4l1=yes |
|---|
| 665 | else |
|---|
| 666 | found_v4l1=no |
|---|
| 667 | fi |
|---|
| 668 | if test "${ac_cv_header_linux_videodev2_h}" = "yes" ; then |
|---|
| 669 | found_v4l2=yes |
|---|
| 670 | else |
|---|
| 671 | found_v4l2=no |
|---|
| 672 | fi |
|---|
| 673 | |
|---|
| 674 | AM_CONDITIONAL(BUILD_V4L1, test x$found_v4l1 = xyes ) |
|---|
| 675 | AM_CONDITIONAL(BUILD_V4L2, test x$found_v4l2 = xyes ) |
|---|
| 676 | |
|---|
| 677 | AC_ARG_ENABLE(libv4l1, |
|---|
| 678 | [AS_HELP_STRING([--disable-libv4l1], [Disable usage of libv4l1, really discouraged])], |
|---|
| 679 | [case "${enableval}" in |
|---|
| 680 | yes) libv4l1=yes ;; |
|---|
| 681 | no) libv4l1=no ;; |
|---|
| 682 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-libv4l1) ;; |
|---|
| 683 | esac],[libv4l1=yes]) |
|---|
| 684 | |
|---|
| 685 | AC_ARG_ENABLE(libv4l2, |
|---|
| 686 | [AS_HELP_STRING([--disable-libv4l2], [Disable usage of libv4l2, really discouraged])], |
|---|
| 687 | [case "${enableval}" in |
|---|
| 688 | yes) libv4l2=yes ;; |
|---|
| 689 | no) libv4l2=no ;; |
|---|
| 690 | *) AC_MSG_ERROR(bad value ${enableval} for --disable-libv4l2) ;; |
|---|
| 691 | esac],[libv4l2=yes]) |
|---|
| 692 | |
|---|
| 693 | PKG_CHECK_MODULES(LIBV4L2, libv4l2, |
|---|
| 694 | [AC_DEFINE(HAVE_LIBV4L2,1,[Defined if we have libv4l2]) |
|---|
| 695 | have_libv4l2=yes] |
|---|
| 696 | ,[echo "No libv4l2 found."] |
|---|
| 697 | ) |
|---|
| 698 | PKG_CHECK_MODULES(LIBV4L1, libv4l1, |
|---|
| 699 | [AC_DEFINE(HAVE_LIBV4L1,1,[Defined if we have libv4l1]) |
|---|
| 700 | have_libv4l1=yes] |
|---|
| 701 | ,[echo "No libv4l1 found."] |
|---|
| 702 | ) |
|---|
| 703 | |
|---|
| 704 | if test "$found_v4l2" = "yes" && test "$have_libv4l2" != "yes" ; then |
|---|
| 705 | if test "$video" = "true" && test "$libv4l2" = "yes" ; then |
|---|
| 706 | AC_MSG_ERROR( |
|---|
| 707 | [ |
|---|
| 708 | Missing libv4l2. It is highly recommended to build with |
|---|
| 709 | libv4l2 headers and library. Many camera will won't work or will crash |
|---|
| 710 | your application if libv4l2 is not installed. |
|---|
| 711 | If you know what you are doing, you can use --disable-libv4l2 to disable |
|---|
| 712 | this check. |
|---|
| 713 | ]) |
|---|
| 714 | fi |
|---|
| 715 | fi |
|---|
| 716 | |
|---|
| 717 | |
|---|
| 718 | AC_ARG_ENABLE(tests, |
|---|
| 719 | [AS_HELP_STRING([--enable-tests], [Enable compilation of tests (default=yes)])], |
|---|
| 720 | [case "${enableval}" in |
|---|
| 721 | yes) tests=yes ;; |
|---|
| 722 | no) tests=no ;; |
|---|
| 723 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-tests) ;; |
|---|
| 724 | esac],[tests=yes]) |
|---|
| 725 | AM_CONDITIONAL(ENABLE_TESTS, test x$tests = xyes) |
|---|
| 726 | |
|---|
| 727 | |
|---|
| 728 | dnl ################################################## |
|---|
| 729 | dnl # Check for doxygen |
|---|
| 730 | dnl ################################################## |
|---|
| 731 | |
|---|
| 732 | AC_PATH_PROG(DOXYGEN,doxygen,false) |
|---|
| 733 | AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false) |
|---|
| 734 | |
|---|
| 735 | |
|---|
| 736 | dnl ################################################## |
|---|
| 737 | dnl # Check for ESP Packager |
|---|
| 738 | dnl ################################################## |
|---|
| 739 | |
|---|
| 740 | AC_PATH_PROG(EPM,epm,false) |
|---|
| 741 | AC_PATH_PROG(MKEPMLIST,mkepmlist,false) |
|---|
| 742 | AC_PATH_PROG(EPMINSTALL,epminstall,false) |
|---|
| 743 | AM_CONDITIONAL(WITH_EPM,test $EPM != false && test $MKEPMLIST != false && test $EPMINSTALL != false) |
|---|
| 744 | |
|---|
| 745 | |
|---|
| 746 | # Preferred packaging system, as per EPM terminology |
|---|
| 747 | case $target in |
|---|
| 748 | *-*-linux*) |
|---|
| 749 | if test -f /etc/debian_version ; then |
|---|
| 750 | EPM_PKG_EXT=deb |
|---|
| 751 | else |
|---|
| 752 | EPM_PKG_EXT=rpm |
|---|
| 753 | fi |
|---|
| 754 | ;; |
|---|
| 755 | *-hp-hpux*) |
|---|
| 756 | EPM_PKG_EXT=depot.gz;; |
|---|
| 757 | *-dec-osf*) |
|---|
| 758 | EPM_PKG_EXT=setld;; |
|---|
| 759 | esac |
|---|
| 760 | AC_SUBST(EPM_PKG_EXT) |
|---|
| 761 | |
|---|
| 762 | # System software User & Group names |
|---|
| 763 | case $target in |
|---|
| 764 | *-*-linux*) |
|---|
| 765 | SYS_USER=root |
|---|
| 766 | SYS_GROUP=root |
|---|
| 767 | ;; |
|---|
| 768 | *-*-hpux*|*-dec-osf*) |
|---|
| 769 | SYS_USER=bin |
|---|
| 770 | SYS_GROUP=bin |
|---|
| 771 | ;; |
|---|
| 772 | esac |
|---|
| 773 | AC_SUBST(SYS_USER) |
|---|
| 774 | AC_SUBST(SYS_GROUP) |
|---|
| 775 | |
|---|
| 776 | # CPU Architecture |
|---|
| 777 | case $target_cpu in |
|---|
| 778 | i?86) ARCH=i386;; |
|---|
| 779 | *) ARCH=$target_cpu;; |
|---|
| 780 | esac |
|---|
| 781 | AC_SUBST(ARCH) |
|---|
| 782 | |
|---|
| 783 | # Various other packaging variables, that can be over-ridden ad `make |
|---|
| 784 | # package' time |
|---|
| 785 | SUMMARY="A mediastreaming library." |
|---|
| 786 | AC_SUBST(SUMMARY) |
|---|
| 787 | PACKAGER=anonymous |
|---|
| 788 | AC_SUBST(PACKAGER) |
|---|
| 789 | LICENSE=GPL |
|---|
| 790 | AC_SUBST(LICENSE) |
|---|
| 791 | VENDOR=Linphone |
|---|
| 792 | AC_SUBST(VENDOR) |
|---|
| 793 | RELEASE=1 |
|---|
| 794 | AC_SUBST(RELEASE) |
|---|
| 795 | |
|---|
| 796 | CFLAGS="$CFLAGS $MS_PUBLIC_CFLAGS" |
|---|
| 797 | CXXFLAGS="$CXXFLAGS $MS_PUBLIC_CFLAGS " |
|---|
| 798 | dnl: these ones gets exported in pkgconfig file. |
|---|
| 799 | AC_SUBST(MS_PUBLIC_CFLAGS) |
|---|
| 800 | |
|---|
| 801 | AC_CONFIG_FILES( |
|---|
| 802 | Makefile |
|---|
| 803 | po/Makefile.in |
|---|
| 804 | include/Makefile |
|---|
| 805 | include/mediastreamer2/Makefile |
|---|
| 806 | src/Makefile |
|---|
| 807 | tests/Makefile |
|---|
| 808 | build/Makefile |
|---|
| 809 | build/win32native/Makefile |
|---|
| 810 | build/win32native/mediastream/Makefile |
|---|
| 811 | build/win32-novideo/Makefile |
|---|
| 812 | build/wince/Makefile |
|---|
| 813 | build/winmob/Makefile |
|---|
| 814 | mediastreamer.pc |
|---|
| 815 | mediastreamer2.spec |
|---|
| 816 | help/Makefile |
|---|
| 817 | help/Doxyfile |
|---|
| 818 | ) |
|---|
| 819 | |
|---|
| 820 | AC_OUTPUT |
|---|