1dnl Process this file with autoconf to produce a configure script. 2 3AC_INIT([linphone],[3.11.2],[linphone-developers@nongnu.org]) 4AC_CANONICAL_SYSTEM 5AC_CONFIG_SRCDIR([coreapi/linphonecore.c]) 6 7dnl Source packaging numbers 8 9LINPHONE_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1) 10LINPHONE_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2) 11LINPHONE_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3) 12LINPHONE_EXTRA_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f4) 13 14dnl program extension 15LINPHONE_VERSION=$LINPHONE_MAJOR_VERSION.$LINPHONE_MINOR_VERSION.${LINPHONE_MICRO_VERSION} 16if test "$LINPHONE_EXTRA_VERSION" != "" ;then 17 LINPHONE_VERSION=$LINPHONE_VERSION.${LINPHONE_EXTRA_VERSION} 18fi 19 20LIBLINPHONE_SO_CURRENT=9 dnl increment this number when you add/change/remove an interface 21LIBLINPHONE_SO_REVISION=0 dnl increment this number when you change source code, without changing interfaces; set to 0 when incrementing CURRENT 22LIBLINPHONE_SO_AGE=0 dnl increment this number when you add an interface, set to 0 if you remove an interface 23 24LIBLINPHONE_SO_VERSION=$LIBLINPHONE_SO_CURRENT:$LIBLINPHONE_SO_REVISION:$LIBLINPHONE_SO_AGE 25 26AC_SUBST(LIBLINPHONE_SO_CURRENT, $LIBLINPHONE_SO_CURRENT) 27AC_SUBST(LIBLINPHONE_SO_VERSION, $LIBLINPHONE_SO_VERSION) 28AC_SUBST(LINPHONE_VERSION) 29 30AC_MSG_NOTICE([$PACKAGE_NAME-$PACKAGE_VERSION A full featured audio/video sip phone.]) 31AC_MSG_NOTICE([licensed under the terms of the General Public License (GPL)]) 32 33AM_INIT_AUTOMAKE([1.9 tar-pax subdir-objects foreign]) 34AC_SUBST([LIBTOOL_DEPS]) 35m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],) 36AC_SUBST([docdir], [${datadir}/doc]) 37AC_CONFIG_HEADERS(config.h) 38AC_CONFIG_MACRO_DIR([m4]) 39dnl do not put anythingelse before AC_PROG_CC unless checking if macro still work for clang 40AC_PROG_CXX(["xcrun clang++" g++]) 41AC_PROG_CC(["xcrun clang" gcc]) 42AC_PROG_OBJC(["xcrun clang" gcc]) 43 44gl_LD_OUTPUT_DEF 45 46AC_ISC_POSIX 47AC_C_INLINE 48AC_HEADER_STDC 49AM_PROG_CC_C_O 50AC_CHECK_PROGS(MD5SUM,[md5sum md5]) 51AM_CONDITIONAL(HAVE_MD5SUM,test -n $MD5SUM) 52 53ios_found=no 54 55case $target in 56 *mingw32ce) 57 CFLAGS="$CFLAGS -D_WIN32_WCE -DORTP_STATIC -D_WIN32_WINNT=0x0501" 58 CXXFLAGS="$CXXFLAGS -DORTP_STATIC -D_WIN32_WINNT=0x0501" 59 LIBS="$LIBS -lws2 -liphlpapi" 60 mingw_found=yes 61 mingwce_found=yes 62 ;; 63 *mingw*) 64 dnl Workaround for mingw, whose compiler does not check in /usr/include ... 65 CPPFLAGS="$CPPFLAGS -I/usr/include" 66 LDFLAGS="$LDFLAGS -L/usr/lib" 67 CFLAGS="$CFLAGS -DORTP_STATIC -D_WIN32_WINNT=0x0501 " 68 CXXFLAGS="$CXXFLAGS -DORTP_STATIC -D_WIN32_WINNT=0x0501" 69 LIBS="$LIBS -lws2_32" 70 GUI_FLAGS="-mwindows" 71 CONSOLE_FLAGS="-mconsole" 72 mingw_found=yes 73 AC_CHECK_TOOL(WINDRES, windres) 74 ;; 75 armv6-apple-darwin|armv7-apple-darwin|i386-apple-darwin|armv7s-apple-darwin|aarch64-apple-darwin|*-apple-darwin.ios) 76 CFLAGS="$CFLAGS -DTARGET_OS_IPHONE=1 " 77 LIBS="$LIBS -framework CoreFoundation -framework AudioToolbox -framework CoreAudio -framework Foundation -framework QuartzCore -framework OpenGLES -framework UIKit -framework AVFoundation" 78 ios_found=yes 79 ;; 80 x86_64-apple-darwin*|i686-apple-darwin*) 81 MSPLUGINS_CFLAGS="" 82 dnl use macport installation 83 AS_IF([test -d "/opt/local/share/aclocal"], [ACLOCAL_MACOS_FLAGS="-I /opt/local/share/aclocal"]) 84 build_macos=yes 85 ;; 86 87esac 88 89 90AM_CONDITIONAL(BUILD_IOS, test x$ios_found = xyes) 91 92AC_SUBST(ACLOCAL_MACOS_FLAGS) 93AC_SUBST(CONSOLE_FLAGS) 94AC_SUBST(GUI_FLAGS) 95 96case "$build_os" in 97 *darwin*) 98 HTTPS_CA_DIR=`openssl version -d | sed "s/OPENSSLDIR: \"\(.*\)\"/\1/"` 99 ;; 100esac 101 102AC_SUBST(HTTPS_CA_DIR) 103 104dnl localization tools 105IT_PROG_INTLTOOL([0.40], [no-xml]) 106 107dnl Initialize libtool 108LT_INIT([win32-dll shared disable-static]) 109 110dnl Enable library dependencies linking 111AC_ARG_ENABLE(deplibs-link, 112 [AS_HELP_STRING([--disable-deplibs-link ], [Disable library dependencies linking (might break builds)])], 113 [enable_deplibs_linking="$enableval"], 114 [enable_deplibs_linking="yes"] 115) 116AC_MSG_NOTICE([Enable library dependencies linking: $enable_interlib_deps]) 117if test "${enable_deplibs_linking}" == "yes"; then 118 link_all_deplibs=yes 119 link_all_deplibs_CXX=yes 120else 121 link_all_deplibs=no 122 link_all_deplibs_CXX=no 123fi 124 125AC_CONFIG_COMMANDS([libtool-hacking], 126 [if test "$mingw_found" = "yes" ; then 127 echo "Hacking libtool to work with mingw..." 128 sed -e 's/\*\" \$a_deplib \"\*/\*/' < ./libtool > libtool.tmp 129 cp -f ./libtool.tmp ./libtool 130 rm -f ./libtool.tmp 131 fi], 132 [mingw_found=$mingw_found] 133) 134 135dnl Add the languages which your application supports here. 136PKG_PROG_PKG_CONFIG 137ALL_LINGUAS=$(cd $srcdir/po && echo *.po | sed 's/\.po//g') 138AC_SUBST(ALL_LINGUAS) 139AC_DEFINE_UNQUOTED(LINPHONE_ALL_LANGS, "$ALL_LINGUAS", [All supported languages]) 140 141if test "$mingw_found" != "yes" ; then 142 dnl gettext macro does not work properly under mingw. And we want to use the one provided by GTK. 143 144 dnl AM_GNU_GETTEXT pollutes CPPFLAGS: workaround this. 145 CPPFLAGS_save=$CPPFLAGS 146 AM_GNU_GETTEXT([external]) 147 AC_SUBST(INTLLIBS) 148 CPPFLAGS=$CPPFLAGS_save 149 LIBS="$LIBS $LIBINTL" 150else 151 if test "$USE_NLS" = "yes" ; then 152 AC_DEFINE(HAVE_INTL,1,[Tells wheter localisation is possible]) 153 LIBS="$LIBS -lintl" 154 fi 155fi 156 157GETTEXT_PACKAGE=linphone 158AC_SUBST([GETTEXT_PACKAGE]) 159AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[The name of the gettext package name]) 160dnl AC_CHECK_LIB(intl,libintl_gettext) 161 162PKG_CHECK_MODULES(BCTOOLBOX, bctoolbox, [found_bctoolbox=yes],[found_bctoolbox=no]) 163if test "x$found_bctoolbox" != "xyes" ; then 164 AC_MSG_ERROR(["Could not find bctoolbox (required dependency)"]) 165fi 166 167AC_CHECK_FUNCS([get_current_dir_name strndup stpcpy] ) 168 169AC_ARG_ENABLE(x11, 170 [AS_HELP_STRING([--disable-x11], [Disable X11 support (default=yes for MacOSX, no otherwise)])], 171 [case "${enableval}" in 172 yes) enable_x11=true ;; 173 no) enable_x11=false ;; 174 *) AC_MSG_ERROR(bad value ${enableval} for --disable-x11) ;; 175 esac], 176 [case "$target_os" in 177 *darwin*) enable_x11=false ;; #disable x11 on MacOS by default 178 *) enable_x11=true ;; 179 esac] 180) 181 182dnl conditional build of LDAP support 183AC_ARG_ENABLE(ldap, 184 [AS_HELP_STRING([--enable-ldap], [Enables LDAP support (default=no)])], 185 [case "${enableval}" in 186 yes) enable_ldap=true ;; 187 no) enable_ldap=false ;; 188 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ldap) ;; 189 esac], 190 [enable_ldap=false] 191) 192 193if test "$enable_ldap" = "true"; then 194 PKG_CHECK_MODULES(LDAP, [openldap],[found_ldap=yes], [found_ldap=no]) 195 if test "$found_ldap" = "no"; then 196 AC_CHECK_LIB(ldap,ldap_initialize, [LDAP_LIBS="-lldap -llber"], 197 [AC_MSG_ERROR([You need libldap for LDAP support])] 198 ) 199 AC_CHECK_HEADERS(ldap.h, [foo=bar], [AC_MSG_ERROR( [ldap.h not found] ) ] ) 200 found_ldap=yes 201 fi 202 203 PKG_CHECK_MODULES(SASL, [libsasl2],[found_sasl=yes],[found_sasl=no] ) 204 205 if test "$found_sasl" = "no"; then 206 AC_CHECK_LIB(sasl2, sasl_client_init , [SASL_LIBS="-lsasl2"], 207 [AC_MSG_ERROR([You need SASL for LDAP support] ) ] 208 ) 209 AC_CHECK_HEADERS(sasl/sasl.h,foo=bar, [AC_MSG_ERROR([sasl/sasl.h not found])]) 210 found_sasl=yes 211 fi 212 213 AC_SUBST(LDAP_CFLAGS) 214 AC_SUBST(LDAP_LIBS) 215 216 AC_SUBST(SASL_CFLAGS) 217 AC_SUBST(SASL_LIBS) 218 219 if test "$found_ldap$found_sasl" = "yesyes"; then 220 AC_DEFINE(BUILD_LDAP,1,[Defined if LDAP build option enabled]) 221 else 222 AC_MSG_ERROR([Cannot use LDAP due to previous errors]) 223 fi 224 225fi 226 227AM_CONDITIONAL(BUILD_LDAP, test x$enable_ldap != xfalse) 228 229dnl conditionnal build of console interface. 230AC_ARG_ENABLE(console_ui, 231 [AS_HELP_STRING([--enable-console_ui=[yes/no]], [Turn on or off compilation of console interface (default=yes)])], 232 [case "${enableval}" in 233 yes) console_ui=true ;; 234 no) console_ui=false ;; 235 *) AC_MSG_ERROR(bad value ${enableval} for --enable-console_ui) ;; 236 esac], 237 [console_ui=true] 238) 239 240dnl conditionnal build of tools. 241AC_ARG_ENABLE(tools, 242 [AS_HELP_STRING([--enable-tools=[yes/no]], [Turn on or off compilation of console interface (default=yes)])], 243 [case "${enableval}" in 244 yes) build_tools=true ;; 245 no) build_tools=false ;; 246 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tools) ;; 247 esac], 248 [build_tools=check] 249) 250 251dnl check for installed version of libupnp 252AC_ARG_ENABLE(upnp, 253 [AS_HELP_STRING([--disable-upnp], [Disable uPnP support])], 254 [case "${enableval}" in 255 yes) build_upnp=true ;; 256 no) build_upnp=false ;; 257 *) AC_MSG_ERROR(bad value ${enableval} for --disable-upnp) ;; 258 esac], 259 [build_upnp=auto] 260) 261 262if test "$build_upnp" != "false" ; then 263 PKG_CHECK_MODULES([LIBUPNP], [libupnp], 264 [if pkg-config --atleast-version=1.6 "libupnp < 1.7"; then 265 build_upnp=true 266 else 267 AC_MSG_ERROR([libupnp >= 1.6 < 1.5 required.]) 268 fi], 269 [if test "$build_upnp" == "true" ; then 270 AC_MSG_ERROR([libupnp not found.]) 271 else 272 build_upnp=false 273 fi] 274 ) 275 276fi 277 278AM_CONDITIONAL(BUILD_UPNP, test x$build_upnp != xfalse) 279if test "$build_upnp" != "false" ; then 280 AC_DEFINE(BUILD_UPNP, 1, [Define if upnp enabled]) 281fi 282 283dnl check zlib 284AC_ARG_ENABLE(zlib, 285 [AS_HELP_STRING([--disable-zlib], [Disable ZLib support])], 286 [case "${enableval}" in 287 yes) build_zlib=true ;; 288 no) build_zlib=false ;; 289 *) AC_MSG_ERROR(bad value ${enableval} for --disable-zlib) ;; 290 esac], 291 [build_zlib=auto] 292) 293if test "$build_zlib" != "false" ; then 294 PKG_CHECK_MODULES(ZLIB, [zlib], [found_zlib=yes], [found_zlib=no]) 295 if test "x$found_zlib" = "xno" ; then 296 AC_CHECK_LIB(z, inflate, 297 [AC_CHECK_HEADER([zlib.h], 298 [AC_COMPILE_IFELSE( 299 [AC_LANG_PROGRAM([[ 300 #include <zlib.h> 301 #if !defined(ZLIB_VERNUM) || (ZLIB_VERNUM < 0x1230) 302 // compile error 303 #endif 304 ]],[])], 305 [found_zlib=yes])])]) 306 if test "x$found_zlib" = "xno" ; then 307 AC_MSG_NOTICE([zlib library and headers not found]) 308 else 309 AC_DEFINE( HAVE_ZLIB, 1, [ZLIB support] ) 310 ZLIB_LIBS='-lz' 311 AC_SUBST(ZLIB_LIBS) 312 fi 313 else 314 AC_MSG_NOTICE([ZLIB found]) 315 AC_DEFINE( HAVE_ZLIB, 1, [ZLIB support] ) 316 fi 317fi 318 319 320dnl check libxml2 321PKG_CHECK_MODULES(LIBXML2, [libxml-2.0],[libxml2_found=yes],foo=bar) 322if test "$libxml2_found" != "yes" ; then 323 AC_MSG_ERROR([libxml2 not found. Install it and try again (the package is usually named libxml2-dev in the Linux distributions)]) 324fi 325 326AM_CONDITIONAL(BUILD_TOOLS, test x$build_tools != xfalse) 327if test "$build_tools" != "false" ; then 328 build_tools=true 329 AC_DEFINE(BUILD_TOOLS, 1, [Define if tools enabled] ) 330fi 331 332dnl conditionnal build of gtk interface. 333AC_ARG_ENABLE(gtk_ui, 334 [AS_HELP_STRING([--enable-gtk_ui=[yes/no]], [Turn on or off compilation of gtk interface (default=yes)])], 335 [case "${enableval}" in 336 yes) gtk_ui=true ;; 337 no) gtk_ui=false ;; 338 *) AC_MSG_ERROR(bad value ${enableval} for --enable-gtk_ui) ;; 339 esac], 340 [gtk_ui=true] 341) 342 343if test "$gtk_ui" = "true" ; then 344 PKG_CHECK_MODULES(LIBGTK, gtk+-2.0 >= 2.18.0 gthread-2.0) 345 if test "$enable_x11" = "false" ; then 346 PKG_CHECK_MODULES(LIBGTKMAC,[gtk-mac-integration >= 2.0.1], [found_gtkmac=true], [found_gtkmac=false]) 347 if test "$found_gtkmac" != "true" ; then 348 dnl for newest macports, the name changed. 349 PKG_CHECK_MODULES(LIBGTKMAC,[gtk-mac-integration-gtk2 >= 2.0.1], [found_gtkmac=true], [found_gtkmac=false]) 350 fi 351 if test "$found_gtkmac" != "true" ; then 352 AC_MSG_ERROR([gtk-mac-integration not found. Please install gtk-osx-application package.]) 353 fi 354 AC_DEFINE([HAVE_GTK_OSX],[1],[Defined when gtk osx is used]) 355 fi 356 357 PKG_CHECK_MODULES(LIBGLIB, [glib-2.0 >= 2.26.0], [build_status_notifier=yes], [build_status_notifier=no]) 358else 359 echo "GTK interface compilation is disabled." 360fi 361 362AM_CONDITIONAL([BUILD_STATUS_NOTIFIER], [test "$build_status_notifier" = "yes"]) 363 364AC_ARG_ENABLE(notify, 365 [AS_HELP_STRING([--enable-notify=[yes/no]], [Enable libnotify support (default=yes)])], 366 [case "${enableval}" in 367 yes) notify=true ;; 368 no) notify=false ;; 369 *) AC_MSG_ERROR(bad value ${enableval} for --enable-notify) ;; 370 esac], 371 [notify=true] 372) 373 374dnl conditionnal build of the notify library 375if test "$gtk_ui" = "true" ; then 376 if test "$notify" = "true"; then 377 PKG_CHECK_MODULES([NOTIFY4], [libnotify >= 0.7.0 ], [found_notify4=yes], foo=bar) 378 case "$found_notify4" in 379 yes) 380 AC_SUBST(NOTIFY4_CFLAGS) 381 AC_SUBST(NOTIFY4_LIBS) 382 AC_DEFINE([HAVE_NOTIFY4],[1],[NOTIFY4 support]) 383 esac 384 385 PKG_CHECK_MODULES([NOTIFY1], [libnotify < 0.7.0], [found_notify1=yes], foo=bar) 386 case "$found_notify1" in 387 yes) 388 AC_SUBST(NOTIFY1_CFLAGS) 389 AC_SUBST(NOTIFY1_LIBS) 390 AC_DEFINE([HAVE_NOTIFY1],[1],[NOTIFY1 support]) 391 esac 392 else 393 echo "Libnotify support is disabled." 394 fi 395fi 396 397dnl os-specific problems not handled by existing macros. 398case "$host_os" in 399 *freebsd*) 400 LDFLAGS="$LDFLAGS -pthread" 401 ;; 402esac 403 404case "$host_cpu" in 405 *arm*) 406 AC_DEFINE(__ARM__,1,[Defined if we are compiling for arm processor]) 407 use_arm_toolchain=yes 408 ;; 409esac 410 411AC_ARG_WITH(configdir, 412 [AS_HELP_STRING([--with-configdir], [Set a APPDATA subdir where linphone is supposed to find its config (windows only)])], 413 [ configdir=${withval}],[ configdir="Linphone" ]) 414 415AC_DEFINE_UNQUOTED(LINPHONE_CONFIG_DIR,"$configdir",[Windows appdata subdir where linphonerc can be found]) 416 417AC_ARG_ENABLE(relativeprefix, 418 [AS_HELP_STRING([--enable-relativeprefix], [Build a linphone that finds its resources relatively to the directory where it is installed])], 419 [case "${enableval}" in 420 yes) relativeprefix=yes ;; 421 no) relativeprefix=no ;; 422 *) AC_MSG_ERROR(bad value ${enableval} for --enable-relativeprefix) ;; 423 esac], 424 [relativeprefix=guess] 425) 426 427AC_ARG_ENABLE(date, 428 [AS_HELP_STRING([--enable-date], [Use build date in internal version number])], 429 [case "${enableval}" in 430 yes) use_date=yes ;; 431 no) use_date=no ;; 432 *) AC_MSG_ERROR(bad value ${enableval} for --enable-date) ;; 433 esac], 434 [use_date=no] 435) 436 437if test x$use_date = xyes ; then 438 AC_DEFINE(USE_BUILDDATE_VERSION,1,[Tell whether date_version.h must be used]) 439fi 440 441 442dnl enable ipv6 support 443AC_ARG_ENABLE(ipv6, 444 [AS_HELP_STRING([--enable-ipv6], [Turn on ipv6 support])], 445 [case "${enableval}" in 446 yes) ipv6=true;; 447 no) ipv6=false;; 448 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ipv6) ;; 449 esac], 450 [ipv6=true] 451) 452IPV6_CFLAGS= 453if test x$ipv6 = xtrue ; then 454 IPV6_CFLAGS=-DINET6 455fi 456AC_SUBST(IPV6_CFLAGS) 457 458dnl enable timestamp support 459AC_ARG_ENABLE(ntp-timestamp, 460 [AS_HELP_STRING([--enable-ntp-timestamp], [Turn on NTP timestamping on received packet])], 461 [case "${enableval}" in 462 yes) ntptimestamp=true;; 463 no) ntptimestamp=false;; 464 *) AC_MSG_ERROR(bad value ${enableval} for --enable-ntp-timestamp) ;; 465 esac], 466 [ntptimestamp=false] 467) 468 469AC_ARG_ENABLE(debug, 470 [AS_HELP_STRING([--enable-debug=[yes/no]], [Enables the display of traces showing the execution of the library. (default=yes)])], 471 [case "${enableval}" in 472 yes) debug_enabled=yes;; 473 no) debug_enabled=no;; 474 *) AC_MSG_ERROR("Bad value for --enable-debug");; 475 esac], 476 [debug_enabled=no] 477) 478AS_CASE([$debug_enabled], 479 [yes],[ 480 CFLAGS="$CFLAGS -g -O0 -DDEBUG" 481 CXXFLAGS="$CXXFLAGS -g -O0 -DDEBUG" 482 OBJCFLAGS="$OBJCFLAGS -g -O0 -DDEBUG" 483 ], 484 [no], 485 [ 486 case "$CFLAGS" in 487 *-O*) 488 ;; 489 *) 490 CFLAGS="$CFLAGS -O2 -g" 491 CXXFLAGS="$CXXFLAGS -O2 -g" 492 OBJCFLAGS="$OBJCFLAGS -O2 -g" 493 ;; 494 esac 495 ], 496 [AC_MSG_ERROR([Bad value ($debug_enabled) for --enable-debug. Valid values are yes or no.])]) 497 498dnl enable truespeech codec support 499AC_ARG_ENABLE(truespeech, 500 [AS_HELP_STRING([--enable-truespeech], [Turn on TrueSpeech support (x86 only)])], 501 [case "${enableval}" in 502 yes) truespeech=true;; 503 no) truespeech=false;; 504 *) AC_MSG_ERROR(bad value ${enableval} for --enable-truespeech) ;; 505 esac], 506 [truespeech=false] 507) 508TRUESPEECH_CFLAGS= 509if test x$truespeech = xtrue ; then 510 TRUESPEECH_CFLAGS=-DTRUESPEECH 511fi 512AC_SUBST(TRUESPEECH_CFLAGS) 513AM_CONDITIONAL([BUILD_TRUESPEECH], [test x$truespeech = xtrue]) 514 515AC_ARG_ENABLE(nonstandard-gsm, 516 [AS_HELP_STRING([--enable-nonstandard-gsm], [Enable GSM codec at nonstandard rates (11025hz, 16000hz)])], 517 [case "${enableval}" in 518 yes) 519 exotic_gsm=yes 520 AC_DEFINE(ENABLE_NONSTANDARD_GSM,1,[Defined when using gsm at nonstandard rates]) 521 ;; 522 no) exotic_gsm=no ;; 523 *) AC_MSG_ERROR(bad value ${enableval} for --enable-nonstandard-gsm) ;; 524 esac], 525 [exotic_gsm=no] 526) 527 528if test "x${prefix}" = "xNONE"; then 529 package_prefix=${ac_default_prefix} 530else 531 package_prefix=${prefix} 532fi 533 534if test "$relativeprefix" = "guess" ; then 535 if test "$mingw_found" = "yes" ; then 536 relativeprefix="yes" 537 fi 538fi 539 540if test "$relativeprefix" = "yes" ; then 541 dnl allow binaries to install everywhere 542 package_prefix="." 543fi 544 545dnl Set PACKAGE_LOCALE_DIR in config.h. 546case "$target_os" in 547 *qnx*) 548 DATADIRNAME=app/native/assets 549 ;; 550 *) 551 DATADIRNAME=share 552 ;; 553esac 554AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${package_prefix}/${DATADIRNAME}/locale",[Defines the place where locales can be found]) 555 556AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${package_prefix}/${DATADIRNAME}",[Defines the place where data are found]) 557 558dnl Set PACKAGE_SOUND_DIR in config.h. 559AC_DEFINE_UNQUOTED(PACKAGE_SOUND_DIR, "${package_prefix}/${DATADIRNAME}/sounds/linphone",[Defines the place where linphone sounds are found]) 560 561dnl Set PACKAGE_RING_DIR in config.h. 562AC_DEFINE_UNQUOTED(PACKAGE_RING_DIR, "${package_prefix}/${DATADIRNAME}/sounds/linphone/rings",[Defines the place where linphone rings are found]) 563 564dnl check if we have the getifaddrs() sytem call 565AC_CHECK_FUNCS(getifaddrs) 566 567if test "$console_ui" = "true" ; then 568 dnl check gnu readline 569 LP_CHECK_READLINE 570else 571 echo "Console interface compilation is disabled." 572fi 573 574AC_WORDS_BIGENDIAN 575 576AC_ARG_ENABLE([speex], 577 AS_HELP_STRING([--disable-speex], [Disable speex support]), 578 [], 579 [enable_speex=yes] 580) 581if test "x$enable_speex" = "xyes"; then 582 dnl normaly this should only by done by mediastreamer2/configure.ac 583 dnl but to workaround bugs when cross-compiling for arm-linux, 584 dnl we need to have SPEEX_LIBS defined 585 dnl Furthermore it is good to repeat here all mediastreamer2 toggles 586 dnl since top-level configure --help will not print them. 587 PKG_CHECK_MODULES(SPEEX, speex >= 1.1.6, build_speex=yes) 588fi 589 590dnl conditionnal build of video support 591AC_ARG_ENABLE(video, 592 [AS_HELP_STRING([--enable-video], [Turn on video support compiling (default=yes)])], 593 [case "${enableval}" in 594 yes) video=true ;; 595 no) video=false ;; 596 *) AC_MSG_ERROR(bad value ${enableval} for --enable-video) ;; 597 esac], 598 [video=true] 599) 600 601AC_ARG_WITH(ffmpeg, 602 [AS_HELP_STRING([--with-ffmpeg], [Sets the installation prefix of ffmpeg, needed for video support. (default=/usr)])], 603 [ ffmpegdir=${withval}], 604 [ ffmpegdir=/usr ] 605) 606 607AM_CONDITIONAL([BUILD_MACOS], [test "x$build_macos" = "xyes"]) 608 609if test "$video" = "true"; then 610 611 if test "$enable_x11" = "true"; then 612 AC_CHECK_HEADERS(X11/Xlib.h) 613 if test "$build_macos" = "yes"; then 614 X11_LIBS="-L/usr/X11/lib -lX11" 615 else 616 AC_CHECK_LIB(X11,XUnmapWindow, X11_LIBS="-lX11") 617 fi 618 AC_SUBST(X11_LIBS) 619 fi 620 AC_DEFINE(VIDEO_ENABLED,1,[defined if video support is available]) 621fi 622 623AC_ARG_ENABLE(alsa, 624 [AS_HELP_STRING([--enable-alsa], [Turn on alsa native support compiling])], 625 [case "${enableval}" in 626 yes) alsa=true ;; 627 no) alsa=false ;; 628 *) AC_MSG_ERROR(bad value ${enableval} for --enable-alsa) ;; 629 esac], 630 [alsa=true] 631) 632 633 634AC_ARG_ENABLE(zrtp, 635 [AS_HELP_STRING([--enable-zrtp], [Turn on zrtp support])], 636 [case "${enableval}" in 637 yes) zrtp=true ;; 638 no) zrtp=false ;; 639 *) AC_MSG_ERROR(bad value ${enableval} for --enable-zrtp) ;; 640 esac], 641 [zrtp=auto] 642) 643 644if test "$zrtp" != "false" ; then 645 PKG_CHECK_MODULES(LIBBZRTP, libbzrtp >= 1.0.0, found_zrtp=true, found_zrtp=false) 646 if test "$zrtp$found_zrtp" = "truefalse" ; then 647 AC_MSG_ERROR("Cound not find bZRTP library.") 648 fi 649 if test "$found_zrtp" = "true" ; then 650 zrtp=true 651 AC_DEFINE(HAVE_ZRTP, 1, [Defined if bzrtp is available]) 652 else 653 zrtp=false 654 fi 655fi 656 657dnl this options are just for passing to mediastreamer2 subproject 658AC_ARG_ENABLE(dtls, 659 [AS_HELP_STRING([--enable-dtls], [Turn on srtp-dtls support - requires polarssl > 1.4])], 660 [case "${enableval}" in 661 yes) dtls=true ;; 662 no) dtls=false ;; 663 *) AC_MSG_ERROR(bad value ${enableval} for --enable-dtls) ;; 664 esac], 665 [dtls=false] 666) 667 668AC_ARG_ENABLE(g729bCN, 669 [AS_HELP_STRING([--enable-g729bCN], [Turn on or off usage of G729AnnexB in RFC3389 implementation of Comfort Noise Payload (default=no)])], 670 [case "${enableval}" in 671 yes) g729bCN=true ;; 672 no) g729bCN=false ;; 673 *) AC_MSG_ERROR(bad value ${enableval} for --enable-g729bCN) ;; 674 esac], 675 [g729bCN=false] 676) 677 678dnl Polarssl lib is requested for Lime 679AC_ARG_WITH( polarssl, 680 [ --with-polarssl Set prefix where polarssl can be found (ex:/usr, /usr/local)[[default=PREFIX or /usr if NONE]] ], 681 [ polarssl_prefix=${withval}],[ if test "$prefix" != "NONE"; then 682 polarssl_prefix=${prefix} 683 else 684 polarssl_prefix="/usr" 685 fi ]) 686 687found_polarssl=no 688 689if test "$polarssl_prefix" != "none" ; then 690 if test "$polarssl_prefix" != "/usr" ; then 691 POLARSSL_CFLAGS="-I${polarssl_prefix}/include" 692 POLARSSL_LIBS="-L${polarssl_prefix}/lib" 693 fi 694 POLARSSL_LIBS="$POLARSSL_LIBS -lpolarssl" 695 696 CPPFLAGS_save=$CPPFLAGS 697 LIBS_save=$LIBS 698 699 CPPFLAGS="$CPPFLAGS $POLARSSL_CFLAGS" 700 LIBS="$LIBS $POLARSSL_LIBS" 701 AC_CHECK_HEADERS(polarssl/gcm.h, 702 [found_polarssl=yes; AC_MSG_NOTICE([polarssl usable])], 703 [POLARSSL_CFLAGS="" 704 POLARSSL_LIBS=""]) 705 CPPFLAGS=$CPPFLAGS_save 706 LIBS=$LIBS_save 707fi 708 709dnl check for Lime support, need polarssl version >= 1.3 (with gcm.h) 710AC_ARG_ENABLE(lime, 711 [AS_HELP_STRING([--enable-lime], [Turn on or off compilation of Instant Messaging Encryption (default=auto)])], 712 [case "${enableval}" in 713 yes) lime=true ;; 714 no) lime=false ;; 715 *) AC_MSG_ERROR(bad value ${enableval} for --enable-lime) ;; 716 esac], 717 [lime=auto] 718) 719 720if test "$lime" = "true" ; then 721 if test "$zrtp" = "false" ; then 722 AC_MSG_ERROR([LIME requires zrtp]) 723 fi 724fi 725 726if test "$lime" != "false" ; then 727 if test "$found_zrtp" = "true" ; then 728 AC_DEFINE(HAVE_LIME, 1, [Defined when LIME support is compiled]) 729 lime=true 730 else 731 lime = false 732 fi 733fi 734 735dnl build console if required 736AM_CONDITIONAL(BUILD_CONSOLE, test x$console_ui = xtrue) 737 738dnl special things for arm-linux cross compilation toolchain 739AM_CONDITIONAL(ARMBUILD, test x$use_arm_toolchain = xyes) 740 741dnl compilation of gtk user interface 742AM_CONDITIONAL(BUILD_GTK_UI, [test x$gtk_ui = xtrue ] ) 743AM_CONDITIONAL(BUILD_WIN32, test x$mingw_found = xyes ) 744 745dnl check getenv 746AH_TEMPLATE([HAVE_GETENV]) 747AC_CHECK_FUNC([getenv], AC_DEFINE([HAVE_GETENV], [1], [If present, the getenv function allows fim to read environment variables.])) 748 749dnl 750AC_MSG_CHECKING([for sighandler_t]) 751AC_TRY_COMPILE([#include <signal.h>],[sighandler_t *f;], 752has_sighandler_t=yes,has_sighandler_t=no) 753AC_MSG_RESULT($has_sighandler_t) 754if test "$has_sighandler_t" = "yes" ; then 755 AC_DEFINE( HAVE_SIGHANDLER_T, 1, [Define if sighandler_t available] ) 756fi 757 758AC_ARG_ENABLE(assistant, 759 [AS_HELP_STRING([--enable-assistant], [Turn on assistant compiling])], 760 [case "${enableval}" in 761 yes) build_wizard=true ;; 762 no) build_wizard=false ;; 763 *) AC_MSG_ERROR(bad value ${enableval} for --enable-assistant) ;; 764 esac], 765 [build_wizard=check] 766) 767 768if test "$build_wizard" != "false" ; then 769 PKG_CHECK_MODULES(LIBGTKWIZARD, [gtk+-2.0 >= 2.22.0],[], 770 [if test "$build_wizard" = "true" ; then 771 AC_MSG_ERROR([gtk+-2.0 < 2.22.0, assistant cannot be compiled.]) 772 else 773 build_wizard=false 774 fi] 775 ) 776fi 777AM_CONDITIONAL(BUILD_WIZARD, test x$build_wizard != xfalse) 778if test "$build_wizard" != "false" ; then 779 build_wizard=true 780 AC_DEFINE(BUILD_WIZARD, 1, [Define if wizard enabled] ) 781fi 782 783AC_CHECK_HEADERS(libudev.h) 784AC_CHECK_LIB(udev,udev_new) 785 786################################################## 787# Stricter build options (after external packages) 788################################################## 789 790 791AC_ARG_ENABLE(strict, 792 AC_HELP_STRING([--enable-strict], [Build with stricter options @<:@yes@:>@]), 793 [strictness="${enableval}"], 794 [strictness=yes] 795) 796 797STRICT_OPTIONS="-Wall -Wuninitialized" 798STRICT_OPTIONS_CC="-Wstrict-prototypes" 799STRICT_OPTIONS_CXX="" 800 801#for clang 802 803case $CC in 804 *gcc*) 805 STRICT_OPTIONS="$STRICT_OPTIONS -fno-inline-small-functions" 806 ;; 807 *clang*) 808 STRICT_OPTIONS="$STRICT_OPTIONS -Qunused-arguments " 809 #disabled due to wrong optimization false positive with small string 810 #(cf. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35903) 811 STRICT_OPTIONS="$STRICT_OPTIONS -Wno-array-bounds " 812 ;; 813esac 814# because Darwin's gcc is actually clang, we need to check it... 815case "$target_os" in 816 *darwin*) 817 STRICT_OPTIONS="$STRICT_OPTIONS -Wno-error=unknown-warning-option -Qunused-arguments -Wno-tautological-compare -Wno-unused-function " 818 #disabled due to wrong optimization false positive with small string 819 #(cf. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35903) 820 STRICT_OPTIONS="$STRICT_OPTIONS -Wno-array-bounds " 821 ;; 822esac 823if test "$strictness" = "yes" ; then 824 STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wextra -Wno-unused-parameter -Wno-error=deprecated-declarations -Wno-missing-field-initializers" 825 CFLAGS="$CFLAGS -fno-strict-aliasing" 826fi 827 828AC_SUBST(STRICT_OPTIONS) 829AC_SUBST(STRICT_OPTIONS_CC) 830AC_SUBST(STRICT_OPTIONS_CXX) 831 832top_srcdir=`dirname $0` 833 834AC_ARG_ENABLE(external-ortp, 835 [AS_HELP_STRING([--enable-external-ortp], [Use external oRTP library])], 836 [case "${enableval}" in 837 yes) external_ortp=true ;; 838 no) external_ortp=false ;; 839 *) AC_MSG_ERROR(bad value ${enableval} for --enable-external-ortp) ;; 840 esac], 841 [external_ortp=$(if test -d oRTP; then printf false; else printf true; fi)] 842) 843 844if test "$external_ortp" = 'true'; then 845 PKG_CHECK_MODULES([ORTP], [ortp >= 0.24.0]) 846 ORTP_VERSION=`$PKG_CONFIG --modversion ortp` 847else 848 AC_CONFIG_SUBDIRS( oRTP ) 849 ORTP_CFLAGS="-I\$(top_srcdir)/oRTP/include" 850 ORTP_LIBS="\$(top_builddir)/oRTP/src/libortp.la" 851 if test x$ac_cv_c_bigendian = xyes ; then 852 ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_BIGENDIAN" 853 fi 854 if test x$ntptimestamp = xtrue ; then 855 ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_TIMESTAMP" 856 fi 857 ORTP_DIR=oRTP 858 changequote(<<, >>) 859 ORTP_VERSION=`grep -E ^[AC]+_INIT ${top_srcdir}/oRTP/configure.ac | sed -e 's:^.*_INIT(.*,\[\(.*\)\]):\1:g'` 860 changequote([, ]) 861fi 862AC_SUBST(ORTP_CFLAGS) 863AC_SUBST(ORTP_LIBS) 864AC_SUBST([ORTP_VERSION]) 865AC_SUBST([ORTP_DIR]) 866 867AC_ARG_ENABLE([external-mediastreamer], 868 [AS_HELP_STRING([--enable-external-mediastreamer],[Use external mediastreamer library])],, 869 [enable_external_mediastreamer=$(if test -d mediastreamer2; then printf no; else printf yes; fi)] 870) 871 872AS_CASE($enable_external_mediastreamer, 873 [yes], 874 [PKG_CHECK_MODULES([MEDIASTREAMER], [mediastreamer >= 2.11.0]) 875 MS2_VERSION=`$PKG_CONFIG --modversion mediastreamer`], 876 [no], 877 [AC_CONFIG_SUBDIRS( mediastreamer2 ) 878 MEDIASTREAMER_DIR=${top_srcdir}/mediastreamer2 879 MEDIASTREAMER_CFLAGS="-I\$(top_srcdir)/mediastreamer2/include" 880 MEDIASTREAMER_LIBS="\$(top_builddir)/mediastreamer2/src/libmediastreamer_base.la \$(top_builddir)/mediastreamer2/src/libmediastreamer_voip.la" 881dnl need to temporary change quotes to allow square brackets 882 changequote(<<, >>) 883 MS2_VERSION=`grep -e '^.C_INIT(' $MEDIASTREAMER_DIR/configure.ac | sed -e 's:\([^(]\+\)(\[mediastreamer\],\[\(.*\)\]):\2:g'` 884 changequote([, ]) 885 MS2_DIR=mediastreamer2], 886 [AC_MSG_ERROR([bad value '${enable_external_mediastreamer}' for --enable-external-mediastreamer])] 887) 888 889AC_SUBST(MEDIASTREAMER_CFLAGS) 890AC_SUBST(MEDIASTREAMER_LIBS) 891AC_SUBST([MS2_VERSION]) 892AC_SUBST([MS2_DIR]) 893 894 895AC_ARG_ENABLE(tunnel, 896 [AS_HELP_STRING([--enable-tunnel=[yes/no]], [Turn on compilation of tunnel support (default=no)])], 897 [case "${enableval}" in 898 yes) enable_tunnel=true ;; 899 no) enable_tunnel=false ;; 900 *) AC_MSG_ERROR(bad value ${enableval} for --enable-tunnel) ;; 901 esac], 902 [enable_tunnel=false] 903) 904AM_CONDITIONAL(BUILD_TUNNEL, test x$enable_tunnel = xtrue) 905if test x$enable_tunnel = xtrue; then 906 PKG_CHECK_MODULES(TUNNEL, tunnel >= 0.6.0) 907 AC_DEFINE(TUNNEL_ENABLED,1,[Tells tunnel extension is built-in]) 908fi 909 910AC_ARG_ENABLE(vcard, 911 [AS_HELP_STRING([--enable-vcard=[yes/no]], [Turn on compilation of vcard (default=auto)])], 912 [case "${enableval}" in 913 yes) enable_vcard=true ;; 914 no) enable_vcard=false ;; 915 *) AC_MSG_ERROR(bad value ${enableval} for --enable-vcard) ;; 916 esac], 917 [enable_vcard=auto] 918) 919 920if test x$enable_vcard != xfalse; then 921 PKG_CHECK_MODULES(BELCARD, belcard, [found_vcard=yes],[found_vcard=no]) 922 if test "$found_vcard" = "no"; then 923 dnl Check the lib presence in case the PKG-CONFIG version is not found 924 AC_LANG_CPLUSPLUS 925 AC_CHECK_LIB(belcard, main, [BELCARD_LIBS+=" -lbelr -lbelcard"; found_vcard=yes], [foo=bar]) 926 AC_LANG_C 927 fi 928 if test "$found_vcard" = "yes"; then 929 BELCARD_CFLAGS+=" -DVCARD_ENABLED" 930 enable_vcard=true 931 else 932 if test x$enable_vcard = xtrue; then 933 AC_MSG_ERROR([belcard, required for vcard support, not found]) 934 fi 935 enable_vcard=false 936 fi 937 938 AC_SUBST(BELCARD_CFLAGS) 939 AC_SUBST(BELCARD_LIBS) 940fi 941 942AM_CONDITIONAL(BUILD_VCARD, test x$enable_vcard = xtrue) 943 944AC_ARG_ENABLE(sqlite-storage, 945 [AS_HELP_STRING([--enable-sqlite-storage=[yes/no]], [Turn on compilation of sqlite storage for call history, messages, friends (default=auto)])], 946 [case "${enableval}" in 947 yes) enable_sqlite_storage=true ;; 948 no) enable_sqlite_storage=false ;; 949 *) AC_MSG_ERROR(bad value ${enableval} for --enable-sqlite-storage) ;; 950 esac], 951 [enable_sqlite_storage=auto] 952) 953 954if test x$enable_sqlite_storage != xfalse; then 955 PKG_CHECK_MODULES(SQLITE3,[sqlite3 >= 3.6.0],[found_sqlite=yes],[found_sqlite=no]) 956 if test "$found_sqlite" = "no"; then 957 dnl Check the lib presence in case the PKG-CONFIG version is not found 958 AC_CHECK_LIB(sqlite3, sqlite3_open, [SQLITE3_LIBS+=" -lsqlite3 "; found_sqlite=yes], [foo=bar]) 959 fi 960 if test "$found_sqlite" = "yes"; then 961 SQLITE3_CFLAGS+=" -DSQLITE_STORAGE_ENABLED" 962 if test "$build_macos" = "yes" -o "$ios_found" = "yes"; then 963 SQLITE3_LIBS+=" -liconv" 964 fi 965 enable_sqlite_storage=true 966 else 967 if test x$enable_sqlite_storage = xtrue; then 968 AC_MSG_ERROR([sqlite3, required for storage, not found]) 969 fi 970 enable_sqlite_storage=false 971 fi 972 973 AC_SUBST(SQLITE3_CFLAGS) 974 AC_SUBST(SQLITE3_LIBS) 975fi 976 977AM_CONDITIONAL(BUILD_SQLITE_STORAGE, test x$enable_sqlite_storage = xtrue) 978 979 980PKG_CHECK_MODULES(BELLESIP, [belle-sip >= 1.4.2]) 981 982SIPSTACK_CFLAGS="$BELLESIP_CFLAGS" 983SIPSTACK_LIBS="$BELLESIP_LIBS" 984 985 986AC_SUBST(SIPSTACK_CFLAGS) 987AC_SUBST(SIPSTACK_LIBS) 988 989dnl check for db2html (docbook) to generate html user manual 990AC_CHECK_PROG(have_sgmltools, sgmltools, yes, no) 991AM_CONDITIONAL(ENABLE_MANUAL, test x$have_sgmltools$build_manual = xyesyes ) 992 993dnl for external use of linphone libs 994LINPHONE_CFLAGS="-I${includedir} -I${includedir}/linphone" 995LINPHONE_LIBS="-L${libdir} -llinphone" 996 997AC_SUBST(LINPHONE_CFLAGS) 998AC_SUBST(LINPHONE_LIBS) 999 1000AC_DEFINE_UNQUOTED(LINPHONE_VERSION, "$PACKAGE_VERSION", [Linphone\'s version number]) 1001 1002AC_DEFINE_UNQUOTED(LINPHONE_PLUGINS_DIR, "${package_prefix}/lib/liblinphone/plugins" ,[path of liblinphone plugins, not mediastreamer2 plugins]) 1003LINPHONE_PLUGINS_DIR="${package_prefix}/lib/liblinphone/plugins" 1004AC_SUBST(LINPHONE_PLUGINS_DIR) 1005 1006 1007 1008AC_ARG_ENABLE(tutorials, 1009 [AS_HELP_STRING([--disable-tutorials], [Disable compilation of tutorials])], 1010 [case "${enableval}" in 1011 yes) tutorials_enabled=true ;; 1012 no) tutorials_enabled=false ;; 1013 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tutorials) ;; 1014 esac], 1015 [tutorials_enabled=yes] 1016) 1017AM_CONDITIONAL(ENABLE_TUTORIALS, test x$tutorials_enabled = xyes) 1018 1019AC_ARG_ENABLE(tests, 1020 [AS_HELP_STRING([--disable-tests], [Disable compilation of tests])], 1021 [case "${enableval}" in 1022 yes) tests_enabled=true ;; 1023 no) tests_enabled=false ;; 1024 *) AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;; 1025 esac], 1026 [tests_enabled=yes] 1027) 1028AM_CONDITIONAL(ENABLE_TESTS, test x$tests_enabled = xyes) 1029 1030PKG_CHECK_MODULES(BCTOOLBOXTESTER, bctoolbox-tester, [found_pkg_config_bctoolboxtester=yes],[found_pkg_config_bctoolboxtester=no]) 1031 1032AM_CONDITIONAL([ENABLE_TESTS], [test x$found_pkg_config_bctoolboxtester = xyes && test x$tests_enabled != xfalse]) 1033if test "$found_pkg_config_bctoolboxtester" = "no" ; then 1034 AC_MSG_WARN([Could not find bctoolbox-tester wrapper, tests are not compiled.]) 1035fi 1036 1037 1038 1039dnl ################################################## 1040dnl # Check for doxygen 1041dnl ################################################## 1042 1043AC_ARG_ENABLE(documentation, 1044 [AS_HELP_STRING([--enable-documentation], [Documentation generation using doxygen (default=yes)])], 1045 [case "${enableval}" in 1046 yes) documentation_enabled=yes;; 1047 no) documentation_enabled=no;; 1048 *) AC_MSG_ERROR("Bad value for --enable-documentation");; 1049 esac], 1050 [documentation_enabled=yes] 1051) 1052if test "$documentation_enabled" = "yes" ; then 1053 AC_CHECK_PROG(DOXYGEN,doxygen,doxygen,false) 1054else 1055 DOXYGEN=false 1056fi 1057AM_CONDITIONAL(HAVE_DOXYGEN, test "$DOXYGEN" != "false") 1058 1059AC_PATH_PROG([SIPP],[sipp],[false]) 1060if test "x$SIPP" != "xfalse" ; then 1061 AC_DEFINE(HAVE_SIPP,1,[defined when SIPP is available]) 1062 AC_DEFINE_UNQUOTED(SIPP_COMMAND,"$SIPP",[defined when SIPP is available]) 1063fi 1064 1065AC_CONFIG_FILES([ 1066 Makefile 1067 build/Makefile 1068 build/macos/Makefile 1069 build/macos/Info-linphone.plist 1070 build/macos/pkg-distribution.xml 1071 m4/Makefile 1072 po/Makefile.in 1073 pixmaps/Makefile 1074 include/Makefile 1075 include/linphone/Makefile 1076 coreapi/Makefile 1077 tester/Makefile 1078 gtk/Makefile 1079 console/Makefile 1080 daemon/Makefile 1081 share/Makefile 1082 share/C/Makefile 1083 share/fr/Makefile 1084 share/it/Makefile 1085 share/ja/Makefile 1086 share/cs/Makefile 1087 share/xml/Makefile 1088 share/linphone.pc 1089 share/linphone.desktop 1090 share/audio-assistant.desktop 1091 scripts/Makefile 1092 tools/Makefile 1093 linphone.spec 1094 linphone.iss 1095]) 1096 1097AC_OUTPUT 1098 1099echo "Linphone build configuration ended." 1100echo "Summary of build options:" 1101printf "* %-30s %s\n" "Video support" $video 1102printf "* %-30s %s\n" "GTK interface" $gtk_ui 1103printf "* %-30s %s\n" "Account assistant" $build_wizard 1104printf "* %-30s %s\n" "Console interface" $console_ui 1105printf "* %-30s %s\n" "Tools" $build_tools 1106printf "* %-30s %s\n" "Sqlite storage" $enable_sqlite_storage 1107printf "* %-30s %s\n" "VCard support" $enable_vcard 1108printf "* %-30s %s\n" "ZRTP" $zrtp 1109printf "* %-30s %s\n" "IM encryption" $lime 1110printf "* %-30s %s\n" "uPnP support" $build_upnp 1111printf "* %-30s %s\n" "LDAP support" $enable_ldap 1112printf "* %-30s %s\n" "ZLIB support" $found_zlib 1113printf "* %-30s %s\n" "Documentation" $documentation_enabled 1114 1115if test "$enable_tunnel" = "true" ; then 1116 printf "* %-30s %s\n" "Tunnel support" "true" 1117fi 1118 1119 1120echo "Now type 'make' to compile, and then 'make install' as root to install it." 1121