dnl Process this file with autoconf to produce a configure script . # UPDATING VERSION NUMBERS FOR RELEASES # purple_micro_version += 1 # If any functions have been added to libpurple , Pidgin , or Finch : # purple_micro_version = 0 # purple_minor_version += 1 # If backwards compatibility has been broken in libpurple , Pidgin , or Finch : # purple_micro_version = 0 # purple_minor_version = 0 # purple_major_version += 1 ; # purple_version_suffix should be similar to one of the following : # For beta releases : [ beta2 ] # For code under development : [ devel ] # For production releases : [] # If any code has changed in libgnt : # If any functions have been added to libgnt : # If backwards compatibility has been broken in libgnt : # gnt_major_version += 1 ; # gnt_version_suffix should be similar to one of the following : # For beta releases : [ beta2 ] # For code under development : [ devel ] # For production releases : [] # Make sure to update finch / libgnt / configure . ac with libgnt version changes . m4_define ( [ purple_lt_current ] , [ 20 ] ) m4_define ( [ purple_major_version ] , [ 3 ] ) m4_define ( [ purple_minor_version ] , [ 0 ] ) m4_define ( [ purple_micro_version ] , [ 0 ] ) m4_define ( [ purple_version_suffix ] , [ devel ] ) m4_define ( [ purple_version ] , [ purple_major_version.purple_minor_version.purple_micro_version ] ) m4_define ( [ purple_display_version ] , purple_version [] m4_ifdef ( [ purple_version_suffix ] , [ purple_version_suffix ] )) # the last version for Finch 2 was 2.8.10 , # the first version for Finch 3 was 2.9.0 m4_define ( [ gnt_lt_current ] , [ 9 ] ) m4_define ( [ gnt_major_version ] , [ 2 ] ) m4_define ( [ gnt_minor_version ] , [ 9 ] ) m4_define ( [ gnt_micro_version ] , [ 0 ] ) m4_define ( [ gnt_version_suffix ] , [ devel ] ) [ gnt_major_version.gnt_minor_version.gnt_micro_version ] ) m4_define ( [ gnt_display_version ] , gnt_version [] m4_ifdef ( [ gnt_version_suffix ] , [ gnt_version_suffix ] )) AC_INIT ( [ pidgin ] , [ purple_display_version ] , [ devel@pidgin.im ] ) if test ` pwd | wc - w ` - ne 1 ; then You are attempting to build in a path that contains spaces. This will fail. Relocate this source tree to a path that does not contain spaces and run configure again. AC_CONFIG_HEADERS ( [ config.h ] ) AC_CONFIG_MACRO_DIR ( [ m4macros ] ) AM_INIT_AUTOMAKE ( [ 1.11 -Wno-portability dist-bzip2 subdir-objects ] ) PURPLE_MAJOR_VERSION = purple_major_version PURPLE_MINOR_VERSION = purple_minor_version PURPLE_MICRO_VERSION = purple_micro_version PURPLE_VERSION = purple_display_version PURPLE_API_VERSION = $ (( purple_lt_current - purple_minor_version )) AC_SUBST ( PURPLE_MAJOR_VERSION ) AC_SUBST ( PURPLE_MINOR_VERSION ) AC_SUBST ( PURPLE_MICRO_VERSION ) AC_SUBST ( PURPLE_API_VERSION ) PURPLE_LT_VERSION_INFO = "purple_lt_current:purple_micro_version:purple_minor_version" AC_SUBST ( PURPLE_LT_VERSION_INFO ) GNT_MAJOR_VERSION = gnt_major_version GNT_MINOR_VERSION = gnt_minor_version GNT_MICRO_VERSION = gnt_micro_version GNT_VERSION = gnt_display_version GNT_API_VERSION = $ (( gnt_lt_current - gnt_minor_version )) AC_SUBST ( GNT_MAJOR_VERSION ) AC_SUBST ( GNT_MINOR_VERSION ) AC_SUBST ( GNT_MICRO_VERSION ) AC_SUBST ( GNT_API_VERSION ) GNT_LT_VERSION_INFO = "gnt_lt_current:gnt_micro_version:gnt_minor_version" AC_SUBST ( GNT_LT_VERSION_INFO ) AC_PATH_PROG ( sedpath , sed ) AC_PATH_PROG ( xxdpath , xxd ) dnl Storing configure arguments AC_DEFINE_UNQUOTED ( CONFIG_ARGS , "$ac_configure_args" , [ configure arguments ] ) LT_INIT ( [ disable-static ] ) dnl Check for Sun compiler AC_CHECK_DECL ( [ __SUNPRO_C ] , [ SUNCC="yes" ] , [ SUNCC="no" ] ) *-*- mingw * | *-*- cygwin * ) PLUGIN_LDFLAGS = "-avoid-version -no-undefined" AC_CHECK_TOOL ( WINDRES , windres ) AC_DEFINE ( IS_WIN32_CROSS_COMPILED , 1 , [ Define to 1, when building with autotools (not necessarily cross-compiling) for windows. It's a temporary hack to remain non-autotools win32 build working. Drop it when we fully switch our win32 build to autotools. ] ) AC_DEFINE ( WIN32_LEAN_AND_MEAN , 1 , [ Define to 1, to build faster for win32. ] ) PLUGIN_LDFLAGS = "-avoid-version" AM_CONDITIONAL ( IS_WIN32 , test "x$is_win32" = "xyes" ) AC_SUBST ( [ PLUGIN_LDFLAGS ] ) PURPLE_LIBS = "\$(top_builddir)/libpurple/libpurple.la \$(GLIB_LIBS)" PIDGIN_LIBS = "\$(top_builddir)/pidgin/libpidgin.la \$(GTK_LIBS)" FINCH_LIBS = "\$(top_builddir)/finch/libfinch.la \$(top_builddir)/finch/libgnt/libgnt.la \$(GLIB_LIBS)" dnl Checks for header files . AC_CHECK_HEADERS ( fcntl . h unistd . h stdint . h ) dnl Checks for typedefs , structures , and compiler characteristics . AC_CHECK_SIZEOF ( time_t , , [ AC_ARG_WITH ( win32 - dirs , [ AS_HELP_STRING([--with-win32-dirs=<classic|fhs> ] , [ use win32 classic (Program Files-like) or FHS (unix-like) directory structure (default: classic) ] ) ] , [ if test "x$withval" != "xclassic" -a "x$withval" != "xfhs" ; then AC_MSG_ERROR([Unsupported win32-dirs option. Please choose "classic" or "fhs". ] ) with_win32_dirs = "$withval" ] , with_win32_dirs = "classic" ) if test "x$is_win32" = "xyes" - a "x$with_win32_dirs" = "xfhs" ; then AC_DEFINE ( USE_WIN32_FHS , 1 , [ Define to 1, to use FHS on win32. ] ) dnl Check for directories if test "x$is_win32" = "xyes" ; then if test "x$with_win32_dirs" = "xfhs" ; then AS_AC_EXPAND ( win32_fhs_bindir , "$bindir" ) AC_DEFINE_UNQUOTED ( [ WIN32_FHS_BINDIR ] , [ "$win32_fhs_bindir" ] , [ bindir, as defined by configure ] ) AS_AC_EXPAND ( win32_fhs_libdir , "$libdir" ) AC_DEFINE_UNQUOTED ( [ WIN32_FHS_LIBDIR ] , [ "$win32_fhs_libdir" ] , [ libdir, as defined by configure ] ) AS_AC_EXPAND ( win32_fhs_datadir , "$datadir" ) AC_DEFINE_UNQUOTED ( [ WIN32_FHS_DATADIR ] , [ "$win32_fhs_datadir" ] , [ datadir, as defined by configure ] ) AS_AC_EXPAND ( win32_fhs_sysconfdir , "$sysconfdir" ) AC_DEFINE_UNQUOTED ( [ WIN32_FHS_SYSCONFDIR ] , [ "$win32_fhs_sysconfdir" ] , [ sysconfdir, as defined by configure ] ) AS_AC_EXPAND ( win32_fhs_localedir , "$localedir" ) AC_DEFINE_UNQUOTED ( [ WIN32_FHS_LOCALEDIR ] , [ "$win32_fhs_localedir" ] , [ localedir, as defined by configure ] ) purple_libdir = "wpurple_lib_dir(\" purple - $ PURPLE_MAJOR_VERSION \ ")" pidgin_libdir = "wpurple_lib_dir(\" pidgin - $ PURPLE_MAJOR_VERSION \ ")" finch_libdir = "wpurple_lib_dir(\" finch - $ PURPLE_MAJOR_VERSION \ ")" purple_libdir = "wpurple_lib_dir(NULL)" pidgin_libdir = "wpurple_lib_dir(NULL)" finch_libdir = "wpurple_lib_dir(NULL)" purple_datadir = "wpurple_data_dir()" purple_sysconfdir = "wpurple_sysconf_dir()" purple_localedir = "wpurple_locale_dir()" AS_AC_EXPAND ( purple_datadir , "$datadir" ) purple_datadir = "\" $ purple_datadir \ "" AS_AC_EXPAND ( purple_sysconfdir , "$sysconfdir" ) purple_sysconfdir = "\" $ purple_sysconfdir \ "" AS_AC_EXPAND ( purple_localedir , "$localedir" ) purple_localedir = "\" $ purple_localedir \ "" AS_AC_EXPAND ( common_libdir , "$libdir" ) purple_libdir = "\" $ common_libdir / purple - $ PURPLE_MAJOR_VERSION \ "" pidgin_libdir = "\" $ common_libdir / pidgin - $ PURPLE_MAJOR_VERSION \ "" finch_libdir = "\" $ common_libdir / finch - $ PURPLE_MAJOR_VERSION \ "" AC_DEFINE_UNQUOTED ( [ PURPLE_DATADIR ] , [ $purple_datadir ] , [ datadir to use, may expand into a function call that returns const char * ] ) AC_DEFINE_UNQUOTED ( [ PURPLE_LIBDIR ] , [ $purple_libdir ] , [ libdir to use for libpurple, may expand into a function call that returns const char * ] ) AC_DEFINE_UNQUOTED ( [ PIDGIN_LIBDIR ] , [ $pidgin_libdir ] , [ libdir to use for Pidgin, may expand into a function call that returns const char * ] ) AC_DEFINE_UNQUOTED ( [ FINCH_LIBDIR ] , [ $finch_libdir ] , [ libdir to use for Finch, may expand into a function call that returns const char * ] ) AC_DEFINE_UNQUOTED ( [ PURPLE_SYSCONFDIR ] , [ $purple_sysconfdir ] , [ sysconfdir to use, may expand into a function call that returns const char * ] ) AC_DEFINE_UNQUOTED ( [ PURPLE_LOCALEDIR ] , [ $purple_localedir ] , [ localedir to use, may expand into a function call that returns const char * ] ) PURPLE_PLUGINDIR = "\$(libdir)/purple-$PURPLE_MAJOR_VERSION" AC_SUBST ( [ PURPLE_PLUGINDIR ] ) PIDGIN_PLUGINDIR = "\$(libdir)/pidgin-$PURPLE_MAJOR_VERSION" AC_SUBST ( [ PIDGIN_PLUGINDIR ] ) FINCH_PLUGINDIR = "\$(libdir)/finch-$PURPLE_MAJOR_VERSION" AC_SUBST ( [ FINCH_PLUGINDIR ] ) dnl Checks for library functions . dnl Checks for getopt in standard library AC_CHECK_FUNCS ( getopt_long ,, if test "x$is_win32" != "xyes" ; then AC_CHECK_FUNC ( inet_aton , , [ AC_CHECK_LIB(resolv, inet_aton, , [AC_MSG_ERROR([inet_aton not found ] ) ] ) ] ) AC_CHECK_LIB ( resolv , __res_query ) AC_CHECK_LIB ( nsl , gethostent ) if test "x$is_win32" = "xyes" ; then AC_DEFINE ( HAVE_GETADDRINFO , 1 , [ Define to 1 if you have the getaddrinfo function. ] ) AC_DEFINE ( HAVE_INET_NTOP , 1 , [ Define to 1 if you have the `inet_ntop' function. ] ) AC_CHECK_FUNC ( socket , , [ AC_CHECK_LIB(socket, socket, , [AC_MSG_ERROR([socket not found ] ) ] ) ] ) dnl If all goes well , by this point the previous two checks will have dnl pulled in - lsocket and - lnsl if we need them . AC_CHECK_FUNC ( getaddrinfo , [ AC_DEFINE([HAVE_GETADDRINFO ] , [ 1 ] , [ Define to 1 if you have the getaddrinfo function. ] ) ] , [ AC_CHECK_LIB(socket, getaddrinfo, [AC_DEFINE([HAVE_GETADDRINFO ] ) LIBS = "-lsocket -lnsl $LIBS" ] , , - lnsl ) ] ) AC_CHECK_FUNCS ( inet_ntop ) AC_CHECK_FUNCS ( getifaddrs ) dnl Check for socklen_t ( in Unix98 ) AC_MSG_CHECKING ( for socklen_t ) AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM([[ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ int accept(int, struct sockaddr *, size_t *); AC_DEFINE(socklen_t, size_t, [socklen_t size ] ) AC_DEFINE(socklen_t, int, [socklen_t size ] ) dnl Some systems do not have sa_len field for struct sockaddr . AC_CHECK_MEMBER ( [ struct sockaddr.sa_len ] , [ AC_DEFINE([HAVE_STRUCT_SOCKADDR_SA_LEN ] , [ 1 ] , [ Define if struct sockaddr has an sa_len member ] ) ] , [ : ] , dnl Check for v6 - only sockets AC_CHECK_DECL ( [ IPV6_V6ONLY ] , [ AC_DEFINE([HAVE_IPV6_V6ONLY ] , [ 1 ] , [ Define if the IPV6_V6ONLY setsockopt option exists ] ) ] , dnl to prevent the g_stat () / g_unlink () crash , dnl ( 09 : 50 : 07 ) Robot101 : LSchiere2 : it 's easy. +LC_SYS_LARGEFILE somewhere in configure.ac dnl FreeBSD doesn' t have libdl , dlopen is provided by libc AC_CHECK_FUNC ( dlopen , LIBDL = "" , [ AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl") ] ) dnl Windows and Haiku do not use libm for the math functions , they are part AC_SEARCH_LIBS ( [ ceil ] , [ m ] , [] , [ AC_MSG_ERROR([unable to find the ceil() function ] ) AC_MSG_CHECKING ( [ for fileno() ] ) AC_RUN_IFELSE ( [ AC_LANG_SOURCE([[ int main(int argc, char *argv[ ] ) AC_DEFINE([HAVE_FILENO ] , [ 1 ] , [ Define to 1 if your stdio has int fileno(FILE *). ] ) # Fallback for Cross Compiling... # This will enable the compatibility code. AC_MSG_CHECKING ( [ for the %z format string in strftime() ] ) AC_RUN_IFELSE ( [ AC_LANG_SOURCE([[ if ( strftime ( buf , sizeof ( buf ), "%z" , localtime ( & t )) != 5 ) fprintf ( stderr , "strftime(\" %% z \ ") yields: \" % s \ "\n" , buf ); return ! (( buf [ 0 ] == '-' || buf [ 0 ] == '+' ) && ( buf [ 1 ] >= '0' && buf [ 1 ] <= '9' ) && ( buf [ 2 ] >= '0' && buf [ 2 ] <= '9' ) && ( buf [ 3 ] >= '0' && buf [ 3 ] <= '9' ) && ( buf [ 4 ] >= '0' && buf [ 4 ] <= '9' ) AC_DEFINE([HAVE_STRFTIME_Z_FORMAT ] , [ 1 ] , [ Define to 1 if you have a strftime() that supports the %z format string. ] ) # Fallback for Cross Compiling... # This will enable the compatibility code. # before gettexting , in case iconv matters AC_CHECK_LIB ( resolv , res_query ) AC_CHECK_HEADER ( CoreFoundation / CoreFoundation . h , [ AC_CHECK_HEADER(IOKit/IOKitLib.h, [ AC_DEFINE(HAVE_IOKIT, 1, [Define if we have IOKit ] ) LIBS = "$LIBS -framework IOKit -framework CoreFoundation" AC_MSG_CHECKING ( [ for fink ] ) AC_MSG_RESULT ( [ found, adding /sw to search paths ] ) CPPFLAGS = "$CPPFLAGS -I/sw/include" LDFLAGS = "$LDFLAGS -L/sw/lib" AC_MSG_RESULT ( [ not found ] ) dnl ####################################################################### dnl # Disable creation and installation of translation files dnl ####################################################################### AC_ARG_ENABLE ( nls , AS_HELP_STRING ( [ --disable-nls ] , [ disable installation of translation files ] ), enable_i18n = "$enableval" , enable_i18n = yes ) if test x $ enable_i18n = xyes ; then AC_SUBST ( GETTEXT_PACKAGE ) ALL_LINGUAS = "af am ar as ast az be@latin bg bn_IN bn br brx bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es_AR es et eu fa fi fr ga gl gu he hi hr hu id it ja ka kk km kn ko ks ku_IQ ku lt lv mai mhr mk ml mn mr ms_MY my_MM nb ne nl nn oc or pa pl ps pt_BR pt ro ru sd si sk sl sq sr@latin sr sv sw ta te th tr tt uk ur uz vi xh zh_CN zh_HK zh_TW" dnl If we don 't have msgfmt, then po/ is going to fail -- ensure that dnl AM_GLIB_GNU_GETTEXT found it. if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x The msgfmt command is required to build libpurple. If it is installed on your system, ensure that it is in your path. If it is not, install If you have msgfmt installed, but for some reason this error message is still displayed, you have encountered what appears to be a bug in third-party configure macros. Try setting the MSGFMT environment variable to the absolute path to your msgfmt binary and trying configure again, like this: MSGFMT=/path/to/msgfmt ./configure ... AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes") dnl ####################################################################### dnl # Check for GLib 2.36 (required) dnl ####################################################################### PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.36.0 gio-2.0 gobject-2.0 gthread-2.0], , [ You must have GLib 2.36.0 or newer development headers installed to build. If you have these installed already you may need to install pkg-config so GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` AC_SUBST(GLIB_GENMARSHAL) GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` AC_PATH_PROG(GTESTER, gtester) AC_ARG_WITH([extraversion], AS_HELP_STRING([--with-extraversion=STRING], [extra version number to be displayed in Help->About and --help (for packagers)]), if test x"$EXTRA_VERSION" != "x" ; then AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION-$EXTRA_VERSION", [display version info]) AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION", [display version info]) AC_ARG_ENABLE(missing-dependencies, [AS_HELP_STRING([--disable-missing-dependencies], [skip missing dependencies instead of aborting configure])], force_deps="$enableval", force_deps="yes") with_x="$withval", with_x="$is_not_win32") AC_ARG_ENABLE(gtkui, [AS_HELP_STRING([--disable-gtkui], [compile without GTK+ user interface])], enable_gtkui="$enableval", enable_gtkui="yes") AC_ARG_ENABLE(consoleui, [AS_HELP_STRING([--disable-consoleui], [compile without console user interface])], [enable_consoleui=$enableval force_finch=$enableval], [enable_consoleui=yes force_finch=no]) dnl ####################################################################### dnl # Check for GTK+ 2.18 and other things used by the GTK UI dnl ####################################################################### AC_ARG_ENABLE(screensaver, [AS_HELP_STRING([--disable-screensaver], [compile without X screensaver extension (used to detect idleness)])], enable_screensaver="$enableval", enable_screensaver="yes") [AS_HELP_STRING([--disable-sm], [compile without X session management support])], enable_sm="$enableval", enable_sm="yes") AC_ARG_ENABLE(startup-notification, [AS_HELP_STRING([--disable-startup-notification], [compile without startup notification support])], enable_startup_notification="$enableval", enable_startup_notification="yes") [AS_HELP_STRING([--disable-enchant], [compile without Enchant spell checking support])], enable_enchant="$enableval", enable_enchant="yes") AC_ARG_ENABLE(gevolution, [AS_HELP_STRING([--enable-gevolution], [compile with the Evolution plugin])], enable_gevolution="$enableval", enable_gevolution="no") [AS_HELP_STRING([--enable-cap], [compile with Contact Availability Prediction plugin])], enable_cap="$enableval", enable_cap="no") [AS_HELP_STRING([--disable-gestures], [compile without the gestures plugin])], enable_gestures="$enableval", enable_gestures="yes") [AS_HELP_STRING([--enable-gcr], [compile with GCR certificate widgets])], enable_gcr="$enableval", enable_gcr="no") # We can' t assume that $ x_libraries will be set , because autoconf does not # set it in the case when the X libraries are in a standard place . if test X "$x_libraries" = X "" || test X "$x_libraries" = XNONE ; then x_libpath_add = "-L$x_libraries" if test X "$x_includes" = X "" || test X "$x_includes" = XNONE ; then x_incpath_add = "-I$x_includes" dnl ####################################################################### dnl Check Pidgin dependencies dnl ####################################################################### if test "x$enable_gtkui" = "xyes" ; then PKG_CHECK_MODULES ( GTK , [ gtk+-3.0 >= 3.4.2 ] , , [ You must have GTK+ 3.4.2 or newer development headers installed to compile Pidgin. If you want to build only Finch then specify --disable-gtkui when dnl We only really need Pango >= 1.4 for decent RTL support PKG_CHECK_MODULES ( PANGO , [ pango >= 1.4.0 ] , AC_DEFINE ( HAVE_PANGO14 , 1 , [ Define if we have Pango 1.4 or newer. ] ), : ) PKG_CHECK_MODULES ( WEBKIT , [ "webkitgtk-3.0" >= $WEBKIT_VERSION ] , , [ You must have WebKit for GTK+3 $WEBKIT_VERSION or newer development headers installed to compile Pidgin. If you want to build only Finch then specify --disable-gtkui when running configure. dnl ####################################################################### dnl # Check if we should compile with enchant support dnl ####################################################################### dnl We need enchant for spell checking dictionary enumeration , dnl because webkit1 doesn 't have this. if test "x$enable_enchant" = "xyes" ; then PKG_CHECK_MODULES(ENCHANT, enchant, , [ if test "x$force_deps" = "xyes" -a "x$use_enchant" = "xno"; then Enchant development headers not found. Use --disable-enchant if you do not need it. if test "x$use_enchant" = "xyes" ; then AC_DEFINE(USE_ENCHANT, 1, [Define if we' re using enchant ] ) dnl ####################################################################### dnl # Check if we should compile with X support dnl ####################################################################### if test "x$with_x" = "xyes" ; then PKG_CHECK_MODULES ( X11 , x11 , [ AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11 ] ) ] , if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then X11_LIBS="$x_libpath_add" X11_CFLAGS="$x_incpath_add" if test "x$force_deps" = "xyes" ; then X11 development headers not found. Use --without-x if you do not need X11 support. dnl ####################################################################### dnl # Check for XScreenSaver dnl ####################################################################### if test "x$enable_screensaver" = "xyes" ; then if test "x$with_x" = "xyes" ; then LIBS = "$LIBS $GTK_LIBS $x_libpath_add" AC_CHECK_LIB ( Xext , XScreenSaverRegister , [ XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS" ] , [] , [ -lX11 -lXext -lm ] ) AC_CHECK_LIB ( Xss , XScreenSaverRegister , [ XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss" ] , [] , [ -lX11 -lXext -lm ] ) if test "x$XSS_LIBS" != "x" ; then CPPFLAGS = "$CPPFLAGS $x_incpath_add" AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM([[ #include <X11/extensions/scrnsaver.h> ] ] , [ [ ] ] ) ] , [] , [ enable_screensaver=no ] ) if test "x$enable_screensaver" = "xyes" ; then AC_DEFINE ( USE_SCREENSAVER , 1 , [ Define if we're using XScreenSaver. ] ) if test "x$force_deps" = "xyes" ; then XScreenSaver extension development headers (libXScrnSaver-devel or libxss-dev) not found. Use --disable-screensaver if you do not need XScreenSaver extension support, this is required for detecting idle time by mouse and keyboard usage. AC_MSG_ERROR ( [ X support is required to build with XScreenSaver extensions ] ) dnl ####################################################################### dnl # Check for X session management libs dnl ####################################################################### if test "x$enable_sm" = "xyes" ; then if test "x$with_x" = "xyes" ; then AC_CHECK_LIB ( SM , SmcSaveYourselfDone , found_sm_lib = true , , [ $x_libpath_add -lICE ] ) if test "x$found_sm_lib" = "xtrue" ; then CPPFLAGS = "$CPPFLAGS $x_incpath_add" AC_CHECK_HEADERS ( X11 / SM / SMlib . h , SM_LIBS = "$x_libpath_add -lSM -lICE" enable_sm = yes ) if test "x$enable_sm" = "xyes" ; then AC_DEFINE ( USE_SM , 1 , [ Define if we're using X Session Management. ] ) if test "x$force_deps" = "xyes" ; then X session management development headers not found. Use --disable-sm if you do not need session management support. AC_MSG_ERROR ( [ X support is required to build with X session management support ] ) dnl ####################################################################### dnl # Check for X11 to allow the gestures plugin dnl ####################################################################### if test "x$enable_gestures" = "xyes" ; then if test "x$with_x" = "xno" ; then dnl ####################################################################### dnl # Check for stuff needed by the Evolution integration plugin . dnl ####################################################################### if test "x$enable_gevolution" = "xyes" ; then evo_deps = "libebook-1.2 libedata-book-1.2 evolution-data-server-1.2 >= 3.6" PKG_CHECK_MODULES ( EVOLUTION_ADDRESSBOOK , $ evo_deps , , [ if test "x$enable_gevolution" = "xyes" ; then AC_DEFINE ( HAVE_EVOLUTION_ADDRESSBOOK , 1 , [ Define if we're using evolution addressbook. ] ) AC_SUBST ( EVOLUTION_ADDRESSBOOK_CFLAGS ) AC_SUBST ( EVOLUTION_ADDRESSBOOK_LIBS ) if test "x$force_deps" = "xyes" ; then Evolution development headers not found (libebook, libedata-book, evolution-data-server >= 3.6). Use --disable-gevolution if you do not need it. dnl ####################################################################### dnl # Check for libsqlite3 ( for the Contact Availability Prediction plugin ) dnl ####################################################################### if test "x$enable_cap" = "xyes" ; then PKG_CHECK_MODULES ( SQLITE3 , sqlite3 >= 3.3 ,, [ if test "x$force_deps" = "xyes" ; then sqlite3 development headers not found. Use --disable-cap if you do not need the Contact Availability Prediction plugin. dnl ####################################################################### dnl # Check for GCR for its certificate widgets dnl ####################################################################### if test "x$enable_gcr" = "xyes" ; then PKG_CHECK_MODULES ( GCR , gcr - 3 , [ AC_DEFINE(ENABLE_GCR, 1, [Define to 1 if GCR is found. ] ) ] , [ if test "x$force_deps" = "xyes" ; then GCR for GTK+3 development headers not found. Use --disable-gcr if you do not need GCR certificate widgets. enable_startup_notification = no AM_CONDITIONAL ( ENABLE_GTK , test "x$enable_gtkui" = "xyes" ) AM_CONDITIONAL ( BUILD_GEVOLUTION , test "x$enable_gevolution" = "xyes" ) AM_CONDITIONAL ( ENABLE_CAP , test "x$enable_cap" = "xyes" ) AM_CONDITIONAL ( ENABLE_GESTURES , test "x$enable_gestures" = "xyes" ) AM_CONDITIONAL ( ENABLE_GCR , test "x$enable_gcr" = "xyes" ) dnl ####################################################################### dnl # Check for ncurses and other things used by the console UI dnl ####################################################################### AC_ARG_WITH ( ncurses - headers , [ AS_HELP_STRING([--with-ncurses-headers=DIR ] , [ compile finch against the ncurses includes in DIR ] ) ] , [ ac_ncurses_includes="$withval" ] , [ ac_ncurses_includes="" ] ) if test "x$enable_consoleui" = "xyes" ; then AC_CHECK_LIB ( ncursesw , initscr , [ GNT_LIBS="-lncursesw" ] , [ enable_consoleui=no ] ) AC_CHECK_LIB ( panelw , update_panels , [ GNT_LIBS="$GNT_LIBS -lpanelw" ] , [ enable_consoleui=no ] , [ $GNT_LIBS ] ) if test "x$is_win32" = "xyes" ; then ncurses_sys_prefix = "/usr/$host/sys-root/mingw" ncurses_sys_prefix = "/usr" ncurses_sys_dirs = "$ncurses_sys_prefix/include/ncursesw $ncurses_sys_prefix/include" if test "x$enable_consoleui" = "xyes" ; then dnl # Some distros put the headers in ncursesw / , some don 't for location in $ac_ncurses_includes $NCURSES_HEADERS $ncurses_sys_dirs orig_CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS -I$location" CPPFLAGS="$CPPFLAGS -I$location" AC_MSG_CHECKING([if $f supports wide characters]) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #define _XOPEN_SOURCE_EXTENDED # error get_wch not found! if test x"$dir" != x"." ; then CPPFLAGS="$orig_CPPFLAGS" CPPFLAGS="$orig_CPPFLAGS" if test x"$found_ncurses_h" = x"no" ; then # ncursesw was not found. Look for plain old ncurses AC_CHECK_LIB(ncurses, initscr, [GNT_LIBS="-lncurses"], [enable_consoleui=no]) AC_CHECK_LIB(panel, update_panels, [GNT_LIBS="$GNT_LIBS -lpanel"], [enable_consoleui=no], [$GNT_LIBS]) AC_DEFINE(NO_WIDECHAR, 1, [Define to 1 if you don' t have wide - character support . ] ) if test x "$ac_ncurses_includes" != "x" ; then GNT_CFLAGS = "-I$ac_ncurses_includes" if test x "$NCURSES_HEADERS" != "x" ; then GNT_CFLAGS = "-I$NCURSES_HEADERS" if test "x$force_finch" = "xyes" - a "x$enable_consoleui" != "xyes" ; then Finch will not be built. You need to install ncursesw (or ncurses) and its development headers. AM_CONDITIONAL ( ENABLE_GNT , test "x$enable_consoleui" = "xyes" ) #AC_CHECK_FUNC ( wcwidth , [ AC_DEFINE([HAVE_WCWIDTH ] , [ 1 ] , [ Define to 1 if you have wcwidth function. ] ) ] ) dnl ####################################################################### dnl # Check for LibXML2 ( required ) dnl ####################################################################### PKG_CHECK_MODULES ( LIBXML , [ libxml-2.0 >= 2.6.0 ] , , [ You must have libxml2 >= 2.6.0 development headers installed to build. PKG_CHECK_EXISTS ( [ libxml-2.0 >= 2.6.18 ] , , [ Versions of libxml2 < 2.6.18 may contain bugs that could cause XMPP messages to be discarded. dnl ####################################################################### dnl # Check for JSON - GLib ( required ) dnl ####################################################################### PKG_CHECK_MODULES ( [ JSON ] , [ json-glib-1.0 >= 0.14.0 ] , , [ You must have JSON-GLib >= 0.14.0 development headers installed to build. dnl ####################################################################### dnl # Check for zlib ( required ) dnl ####################################################################### PKG_CHECK_MODULES ( ZLIB , [ zlib >= 1.2.0 ] , , [ AC_SEARCH_LIBS([deflate ] , [ z ] , [] , AC_MSG_ERROR ( [ You must have zlib >= 1.2.0 development headers installed to build. ] ), [] ) dnl ####################################################################### dnl # Check for GStreamer dnl ####################################################################### [ AS_HELP_STRING([--disable-gstreamer ] , [ compile without GStreamer audio support ] ) ] , enable_gst = "$enableval" , enable_gst = "yes" ) if test x "$enable_gst" != "xno" ; then PKG_CHECK_MODULES ( GSTREAMER , [ gstreamer-1.0 ] , [ AC_DEFINE(USE_GSTREAMER, 1, [Use GStreamer for playing sounds ] ) AC_SUBST ( GSTREAMER_CFLAGS ) if test "x$force_deps" = "xyes" ; then GStreamer development headers not found. Use --disable-gstreamer if you do not need GStreamer (sound) support. dnl ####################################################################### dnl # Check for GStreamer Video dnl ####################################################################### if test "x$enable_gst" != "xno" ; then AC_ARG_ENABLE ( gstreamer - video , [ AS_HELP_STRING([--disable-gstreamer-video ] , [ compile without GStreamer 1.0 Video Overlay support ] ) ] , enable_gstvideo = "$enableval" , enable_gstvideo = "yes" ) if test "x$enable_gstvideo" != "xno" ; then PKG_CHECK_MODULES ( GSTVIDEO , [ gstreamer-video-1.0 ] , [ AC_DEFINE(USE_GSTVIDEO, 1, [Use GStreamer Video Overlay support ] ) AC_SUBST ( GSTVIDEO_CFLAGS ) dnl ####################################################################### dnl # Check for Farstream dnl ####################################################################### [ AS_HELP_STRING([--disable-farstream ] , [ compile without farstream support ] ) ] , enable_farstream = "$enableval" , enable_farstream = "yes" ) if test "x$enable_farstream" != "xno" ; then PKG_CHECK_MODULES ( FARSTREAM , [ farstream-0.2 >= 0.2.7 ] , [ AC_SUBST(FARSTREAM_CFLAGS) dnl ####################################################################### dnl # Check for Voice and Video support dnl ####################################################################### [ AS_HELP_STRING([--disable-vv ] , [ compile without voice and video support ] ) ] , enable_vv = "$enableval" , enable_vv = "yes" ) if test "x$enable_vv" != "xno" ; then if test "x$enable_gst" != "xno" - a "x$enable_gstvideo" != "xno" - a "x$enable_farstream" != "xno" ; then AC_DEFINE ( USE_VV , 1 , [ Use voice and video ] ) if test "x$force_deps" = "xyes" ; then Dependencies for voice/video were not met. Install the necessary gstreamer and farstream packages first. Or use --disable-vv if you do not need voice/video support. AM_CONDITIONAL ( USE_VV , test "x$enable_vv" != "xno" ) dnl ####################################################################### dnl # Check for Raw data streams support in Farstream dnl ####################################################################### if test "x$enable_vv" != "xno" ; then PKG_CHECK_MODULES ( GSTAPP , [ gstreamer-app-1.0 ] , [ AC_DEFINE(USE_GSTAPP, 1, [Use GStreamer Video Overlay support ] ) AC_DEFINE ( HAVE_MEDIA_APPLICATION , 1 , [ Define if we have support for application media type. ] ) dnl ####################################################################### dnl # Check for Internationalized Domain Name support dnl ####################################################################### [ AS_HELP_STRING([--disable-idn ] , [ compile without IDN support ] ) ] , [ enable_idn="$enableval" force_idn=$enableval ] , [ enable_idn="yes" force_idn=no ] ) if test "x$enable_idn" != "xno" ; then PKG_CHECK_MODULES ( IDN , libidn >= 0.0.0 , [ AC_DEFINE(USE_IDN, 1, [Use GNU Libidn for stringprep and IDN ] ) if test "x$force_deps" = "xyes" ; then GNU Libidn development headers not found. Use --disable-idn if you do not need it. dnl ####################################################################### dnl # Check for Meanwhile headers ( for Sametime ) dnl ####################################################################### [ AS_HELP_STRING([--disable-meanwhile ] , [ compile without meanwhile (required for Sametime support) ] ) ] , enable_meanwhile = "$enableval" , enable_meanwhile = "yes" ) if test "x$enable_meanwhile" = "xyes" ; then PKG_CHECK_MODULES ( MEANWHILE , [ meanwhile >= 1.0.0 meanwhile < 2.0.0 ] , [ if test "x$force_deps" = "xyes" ; then Meanwhile development headers not found. Use --disable-meanwhile if you do not need meanwhile (Sametime) support. AC_SUBST ( MEANWHILE_CFLAGS ) dnl ####################################################################### dnl # Check for Native Avahi headers ( for Bonjour ) dnl ####################################################################### [ AS_HELP_STRING([--disable-avahi ] , [ compile without avahi (required for Bonjour support) ] ) ] , enable_avahi = "$enableval" , enable_avahi = "yes" ) if test "x$enable_avahi" = "xyes" - a "x$is_win32" = "xyes" ; then elif test "x$enable_avahi" = "xyes" ; then AC_ARG_WITH ( avahi - client - includes , [ AS_HELP_STRING([--with-avahi-client-includes=DIR ] , [ compile the Bonjour plugin against the Avahi Client includes in DIR ] ) ] , [ ac_avahi_client_includes="$withval" ] , [ ac_avahi_client_includes="no" ] ) AC_ARG_WITH ( avahi - client - libs , [ AS_HELP_STRING([--with-avahi-client-libs=DIR ] , [ compile the Bonjour plugin against the Avahi Client libs in DIR ] ) ] , [ ac_avahi_client_libs="$withval" ] , [ ac_avahi_client_libs="no" ] ) dnl Attempt to autodetect Avahi PKG_CHECK_MODULES ( AVAHI , [ avahi-client avahi-glib ] , [ dnl Override AVAHI_CFLAGS if the user specified an include dir if test "$ac_avahi_client_includes" != "no" ; then AVAHI_CFLAGS = "-I$ac_avahi_client_includes" CPPFLAGS_save = "$CPPFLAGS" CPPFLAGS = "$CPPFLAGS $AVAHI_CFLAGS" AC_CHECK_HEADER ( avahi - client / client . h , [ avahiincludes=yes ] , [ avahiincludes=no ] ) CPPFLAGS = "$CPPFLAGS $AVAHI_CFLAGS $GLIB_CFLAGS" AC_CHECK_HEADER ( avahi - glib / glib - malloc . h , [ avahiincludes=yes ] , [ avahiincludes=no ] ) CPPFLAGS = "$CPPFLAGS_save" dnl Override AVAHI_LIBS if the user specified a libs dir if test "$ac_avahi_client_libs" != "no" ; then AVAHI_LIBS = "-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib " AC_CHECK_LIB ( avahi - client , avahi_client_new , [ avahilibs=yes ] , [ avahilibs=no ] , $ AVAHI_LIBS ) if test "x$enable_avahi" = "xyes" - a \ ( "x$avahiincludes" = "xno" - o "x$avahilibs" = "xno" \ ); then if test "x$force_deps" = "xyes" ; then avahi development headers not found. Use --disable-avahi if you do not need avahi (Bonjour) support. dnl ####################################################################### dnl # Check for SILC client includes and libraries dnl ####################################################################### AC_ARG_WITH ( silc - includes , [ AS_HELP_STRING([--with-silc-includes=DIR ] , [ compile the SILC plugin against includes in DIR ] ) ] , [ ac_silc_includes="$withval" ] , [ ac_silc_includes="no" ] ) AC_ARG_WITH ( silc - libs , [ AS_HELP_STRING([--with-silc-libs=DIR ] , [ compile the SILC plugin against the SILC libs in DIR ] ) ] , [ ac_silc_libs="$withval" ] , [ ac_silc_libs="no" ] ) if test - n "$with_silc_includes" || test - n "$with_silc_libs" ; then if test "x$silc_manual_check" = "xno" ; then PKG_CHECK_MODULES ( SILC , [ silcclient >= 1.1 ] , [ if test "$ac_silc_includes" != "no" ; then SILC_CFLAGS = "-I$ac_silc_includes" CPPFLAGS_save = "$CPPFLAGS" CPPFLAGS = "$CPPFLAGS $SILC_CFLAGS" AC_CHECK_HEADER ( silc . h , [ silcincludes=yes ] ) CPPFLAGS = "$CPPFLAGS_save" if test "$ac_silc_libs" != "no" ; then SILC_LIBS = "-L$ac_silc_libs" SILC_LIBS = "$SILC_LIBS -lsilc -lsilcclient -lpthread $LIBDL" AC_CHECK_LIB ( silcclient , silc_client_init , [ silcclient=yes ] , , $ SILC_LIBS ) if test "x$silcincludes" = "xyes" - a "x$silcclient" = "xyes" ; then dnl SILC Toolkit >= 1.0.1 has a new MIME API if test "x$silcclient" = "xyes" ; then AC_DEFINE ( HAVE_SILCMIME_H , 1 , [ Define if we have silcmime.h ] ) dnl ####################################################################### dnl # Check for Gadu - Gadu protocol library ( libgadu ) dnl ####################################################################### PKG_CHECK_MODULES ( LIBGADU , [ libgadu >= 1.12.0 ] , [ have_libgadu=yes ] , [ have_libgadu=no ] ) if test "x$have_libgadu" = "xyes" ; then AC_CHECK_LIB ( gadu , gg_is_gpl_compliant , , [ libgadu is not compatible with the GPL when compiled with OpenSSL support. To compile against system libgadu, please recompile libgadu using: ./configure --with-openssl=no Then rerun this ./configure Falling back to using our own copy of libgadu. AM_CONDITIONAL ( HAVE_LIBGADU , test "x$have_libgadu" = "xyes" ) if test "x$have_libgadu" = "xyes" ; then AC_DEFINE ( HAVE_LIBGADU , 1 , [ Linked with external libgadu ] ) AC_CHECK_LIB ( gnutls , gnutls_certificate_set_x509_system_trust , [ gg_have_gnutls_csxst=yes ] , [ gg_have_gnutls_csxst=no ] ) if test "x$gg_have_gnutls_csxst" = "xno" ; then for i in / etc / ssl / ca - bundle . pem \ / etc / ssl / certs / ca - certificates . crt \ / usr / local / share / certs / ca - root - nss . crt \ if test "x$gg_have_gnutls_csxst" = "xyes" ; then AC_DEFINE ( HAVE_GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST , 1 , [ gnutls contains the gnutls_certificate_set_x509_system_trust function ] ) if test "x$gg_gnutls_sts" != "x" ; then AC_DEFINE_UNQUOTED ( GG_CONFIG_GNUTLS_SYSTEM_TRUST_STORE , [ "$gg_gnutls_sts" ] , [ use the given file as GnuTLS default trust store ] ) dnl # redundant - only here to stay compatible with libgadu upstream PKG_CHECK_MODULES ( [ GNUTLS_2_10 ] , [ gnutls >= 2.10.0 ] , [ AC_DEFINE([HAVE_GNUTLS_2_10 ] , [] , [ Defined if GnuTLS >= 2.10.0 is available. ] ) AC_ARG_ENABLE ( distrib ,,, enable_distrib = no ) AM_CONDITIONAL ( DISTRIB , test "x$enable_distrib" = "xyes" ) AC_ARG_WITH ( static - prpls , [ AS_HELP_STRING([--with-static-prpls ] , [ Link to certain protocols statically ] ) ] , [ STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'` ] , [ STATIC_PRPLS="" ] ) if test "x$STATIC_PRPLS" != "x" - a "x$DYNAMIC_PRPLS" = "xall" ; then if test "x$STATIC_PRPLS" = "xall" ; then STATIC_PRPLS = "bonjour facebook gg irc jabber msn mxit novell oscar sametime silc simple yahoo zephyr" if test "x$have_meanwhile" != "xyes" ; then STATIC_PRPLS = ` echo $ STATIC_PRPLS | $ sedpath 's/sametime//' ` if test "x$avahiincludes" != "xyes" - o "x$avahilibs" != "xyes" ; then STATIC_PRPLS = ` echo $ STATIC_PRPLS | $ sedpath 's/bonjour//' ` if test "x$silcincludes" != "xyes" - o "x$silcclient" != "xyes" ; then STATIC_PRPLS = ` echo $ STATIC_PRPLS | $ sedpath 's/silc//' ` if test "x$is_win32" = "xyes" ; then STATIC_PRPLS = ` echo $ STATIC_PRPLS | $ sedpath 's/zephyr//' ` for i in $ STATIC_PRPLS ; do dnl Ugly special case for "libsilcpurple.la" : if test "x$i" = "xsilc" ; then STATIC_LINK_LIBS = "$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la" STATIC_LINK_LIBS = "$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.la" extern_load = "$extern_load extern gboolean ${i}_plugin_load();" load_proto = "$load_proto ${i}_plugin_load();" extern_unload = "$extern_unload extern gboolean ${i}_plugin_unload();" unload_proto = "$unload_proto ${i}_plugin_unload();" bonjour ) static_bonjour = yes ;; facebook ) static_facebook = yes ;; jabber ) static_jabber = yes ;; novell ) static_novell = yes ;; oscar ) static_oscar = yes ;; sametime ) static_sametime = yes ;; simple ) static_simple = yes ;; yahoo ) static_yahoo = yes ;; zephyr ) static_zephyr = yes ;; * ) echo "Invalid static protocol $i!!" ; exit 1 ;; AM_CONDITIONAL ( STATIC_BONJOUR , test "x$static_bonjour" = "xyes" ) AM_CONDITIONAL ( STATIC_FACEBOOK , test "x$static_facebook" = "xyes" ) AM_CONDITIONAL ( STATIC_GG , test "x$static_gg" = "xyes" ) AM_CONDITIONAL ( STATIC_IRC , test "x$static_irc" = "xyes" ) AM_CONDITIONAL ( STATIC_JABBER , test "x$static_jabber" = "xyes" ) AM_CONDITIONAL ( STATIC_MSN , test "x$static_msn" = "xyes" ) AM_CONDITIONAL ( STATIC_MXIT , test "x$static_mxit" = "xyes" ) AM_CONDITIONAL ( STATIC_NOVELL , test "x$static_novell" = "xyes" ) AM_CONDITIONAL ( STATIC_OSCAR , test "x$static_oscar" = "xyes" ) AM_CONDITIONAL ( STATIC_SAMETIME , test "x$static_sametime" = "xyes" - a "x$have_meanwhile" = "xyes" ) AM_CONDITIONAL ( STATIC_SILC , test "x$static_silc" = "xyes" - a "x$have_silc" = "xyes" ) AM_CONDITIONAL ( STATIC_SIMPLE , test "x$static_simple" = "xyes" ) AM_CONDITIONAL ( STATIC_YAHOO , test "x$static_yahoo" = "xyes" ) AM_CONDITIONAL ( STATIC_ZEPHYR , test "x$static_zephyr" = "xyes" ) AC_SUBST ( STATIC_LINK_LIBS ) AC_DEFINE_UNQUOTED ( STATIC_PROTO_LOAD , $ extern_load static void static_proto_load ( void ) { $ load_proto } , [ Loads protocols from static protocol plugin modules. ] ) AC_DEFINE_UNQUOTED ( STATIC_PROTO_UNLOAD , $ extern_unload static void static_proto_unload ( void ) { $ unload_proto } , [ Unloads protocols from static protocol plugin modules. ] ) AC_ARG_WITH ( dynamic_prpls , [ AS_HELP_STRING([--with-dynamic-prpls ] , [ specify which protocols to build dynamically ] ) ] , [ DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'` ] ) if test "x$DYNAMIC_PRPLS" = "xall" ; then DYNAMIC_PRPLS = "bonjour facebook gg irc jabber msn mxit novell oscar sametime silc simple yahoo zephyr" if test "x$have_meanwhile" != "xyes" ; then DYNAMIC_PRPLS = ` echo $ DYNAMIC_PRPLS | $ sedpath 's/sametime//' ` if test "x$avahiincludes" != "xyes" - o "x$avahilibs" != "xyes" ; then DYNAMIC_PRPLS = ` echo $ DYNAMIC_PRPLS | $ sedpath 's/bonjour//' ` if test "x$silcincludes" != "xyes" - o "x$silcclient" != "xyes" ; then DYNAMIC_PRPLS = ` echo $ DYNAMIC_PRPLS | $ sedpath 's/silc//' ` if test "x$is_win32" = "xyes" ; then DYNAMIC_PRPLS = ` echo $ DYNAMIC_PRPLS | $ sedpath 's/zephyr//' ` for i in $ DYNAMIC_PRPLS ; do bonjour ) dynamic_bonjour = yes ;; facebook ) dynamic_facebook = yes ;; jabber ) dynamic_jabber = yes ;; mxit ) dynamic_mxit = yes ;; novell ) dynamic_novell = yes ;; null ) dynamic_null = yes ;; oscar ) dynamic_oscar = yes ;; aim ) dynamic_oscar = yes ;; icq ) dynamic_oscar = yes ;; sametime ) dynamic_sametime = yes ;; silc ) dynamic_silc = yes ;; simple ) dynamic_simple = yes ;; yahoo ) dynamic_yahoo = yes ;; zephyr ) dynamic_zephyr = yes ;; * ) echo "Invalid dynamic protocol $i!!" ; exit 1 ;; AC_ARG_ENABLE ( plugins , [ AS_HELP_STRING([--disable-plugins ] , [ compile without plugin support ] ) ] , , enable_plugins = yes ) AC_ARG_WITH ( krb4 , [ AS_HELP_STRING([--with-krb4=PREFIX ] , [ compile Zephyr plugin with Kerberos 4 support ] ) ] , kerberos = "$withval" , kerberos = "no" ) AC_ARG_WITH ( zephyr , [ AS_HELP_STRING([--with-zephyr=PREFIX ] , [ compile Zephyr plugin against external libzephyr ] ) ] , zephyr = "$withval" , zephyr = "no" ) AM_CONDITIONAL ( EXTERNAL_LIBZEPHYR , test "x$zephyr" != "xno" ) AC_CHECK_HEADERS ( sys / utsname . h ) AC_ARG_ENABLE ( fortify , [ AS_HELP_STRING([--disable-fortify ] , [ compile without FORTIFY_SOURCE support ] ) ] , , enable_fortify = yes ) DEBUG_CFLAGS = "$DEBUG_CFLAGS -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED" if test "x$GCC" = "xyes" ; then dnl We enable - Wall later . dnl If it 's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. dnl This leads to warnings we don' t want . CFLAGS = ` echo $ CFLAGS | $ sedpath 's/-Wall//' ` dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE dnl Consider adding - Wbad - function - cast . dnl This leads to spurious warnings using GPOINTER_TO_INT (), et al . directly on a function call . dnl We 'd need an intermediate variable. "-Wdeclaration-after-statement" \ "-Werror-implicit-function-declaration" \ "-Wextra -Wno-unused-parameter" \ "-Werror=format-security" \ "-Wmissing-declarations" \ CFLAGS="$CFLAGS $newflag" AC_MSG_CHECKING(for $newflag option to gcc) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [ DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag" if test "x$enable_fortify" = "xyes"; then AC_MSG_CHECKING(for FORTIFY_SOURCE support) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <features.h>]], [[ #if !(__GNUC_PREREQ (4, 1) \ || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \ || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \ && (__GNUC_PATCHLEVEL__ > 2 \ || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8)))) #error No FORTIFY_SOURCE support DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2" DEBUG_CFLAGS="-Wall $DEBUG_CFLAGS" DEBUG_CPPFLAGS=`echo "$DEBUG_CFLAGS" | $sedpath ' s /- Wdeclaration - after - statement // ' | $sedpath ' s /- Wmissing - prototypes // ' | $sedpath ' s /- Waggregate - return // '` if test "x$SUNCC" = "xyes"; then CFLAGS="$CFLAGS -features=extensions" AC_PATH_PROG(pidginpath, pidgin) AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ ])], have_clang=yes, have_clang=no) AC_ARG_ENABLE(clang-address-sanitizer, [AS_HELP_STRING([--enable-clang-address-sanitizer], [compile with the Clang' s address sanitizer enabled ] ) ] , enable_clang_address_sanitizer = "$enableval" , enable_clang_address_sanitizer = "no" ) if test "x$enable_clang_address_sanitizer" = "xyes" - a "x$have_clang" = "xno" ; then Clang address sanitizer requested, but we don't compile with Clang. Disable the sanitizer or run configure script with CC and CCX set to clang binaries. if test "x$have_clang" = "xyes" ; then GLIB_LIBS = ` echo $ GLIB_LIBS | $ sedpath 's/-pthread/-lpthread/' ` if test "x$enable_clang_address_sanitizer" = "xyes" ; then CFLAGS = "$CFLAGS -faddress-sanitizer -g -fno-omit-frame-pointer -fno-inline -fno-optimize-sibling-calls" AC_ARG_ENABLE ( glib - errors - trace , [ AS_HELP_STRING([--enable-glib-errors-trace ] , [ print backtraces for glib errors ] ) ] , enable_glibtrace = "$enableval" , enable_glibtrace = "no" ) if test "x$enable_glibtrace" = "xyes" ; then if test "x$have_clang" = "xyes" ; then AC_MSG_ERROR ( [ --enable-glib-errors-trace doesn't work with clang ] ) AC_DEFINE ( ENABLE_GLIBTRACE , 1 , [ Define if backtraces should be printed for glib errors. ] ) dnl CFLAGS = "$CFLAGS -rdynamic" CFLAGS = "$CFLAGS -rdynamic" dnl ####################################################################### dnl # Check for D - Bus libraries dnl ####################################################################### # dbus doesn 't compile for win32 at the moment [AS_HELP_STRING([--disable-dbus], [disable D-Bus support])], , enable_dbus="$is_not_win32") if test "x$enable_dbus" = "xyes" ; then AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no) if test "x$enable_dbus" = "xyes" ; then PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [ if test "x$force_deps" = "xyes" ; then D-Bus development headers not found. Use --disable-dbus if you do not need D-Bus support. dnl ####################################################################### dnl # Check for Unity and Messaging Menu dnl ####################################################################### AC_ARG_ENABLE(unity, [AC_HELP_STRING([--enable-unity], [compile with support for unity integration plugin])], enable_unity="$enableval", enable_unity="no") if test "$enable_unity" = yes; then PKG_CHECK_MODULES(UNITY, [unity >= 6.8 messaging-menu >= 12.10], , [ You must have libunity9 >= 6.8 and libmessaging-menu >= 12.10 to build the unity integration plugin. USES_MM_CHAT_SECTION="X-MessagingMenu-UsesChatSection=true" AC_SUBST(USES_MM_CHAT_SECTION) AM_CONDITIONAL(ENABLE_UNITY, [test "x$enable_unity" = "xyes"]) dnl ####################################################################### dnl # Check for Secret Service headers dnl ####################################################################### # disabled - see secretservice.c #AC_ARG_ENABLE(libsecret, [AC_HELP_STRING([--disable-libsecret], [enable Secret Service support])], enable_secret_service=no, enable_secret_service=yes) #if test "x$enable_secret_service" = "xyes" ; then # PKG_CHECK_MODULES(SECRETSERVICE, [libsecret-1], [ # AC_SUBST(SECRETSERVICE_CFLAGS) # AC_SUBST(SECRETSERVICE_LIBS) # AC_DEFINE(HAVE_SECRETSERVICE, 1, [Define if we have Secret Service.]) #AM_CONDITIONAL(ENABLE_SECRETSERVICE, test "x$enable_secret_service" = "xyes") AM_CONDITIONAL(ENABLE_SECRETSERVICE, test "x1" = "x2") dnl ####################################################################### dnl # Check for GNOME Keyring headers dnl ####################################################################### AC_ARG_ENABLE(gnome-keyring, [AC_HELP_STRING([--disable-gnome-keyring], [disable GNOME Keyring support])], enable_gnome_keyring="$enableval", enable_gnome_keyring="$is_not_win32") if test "x$enable_gnome_keyring" = "xyes" ; then PKG_CHECK_MODULES(GNOMEKEYRING, [gnome-keyring-1], [ AC_SUBST(GNOMEKEYRING_CFLAGS) AC_SUBST(GNOMEKEYRING_LIBS) AC_DEFINE(HAVE_GNOMEKEYRING, 1, [Define if we have GNOME Keyring.]) enable_gnome_keyring="no" if test "x$force_deps" = "xyes" ; then GNOME Keyring development headers not found Use --disable-gnome-keyring if you do not need it. AM_CONDITIONAL(ENABLE_GNOMEKEYRING, test "x$enable_gnome_keyring" = "xyes") dnl ####################################################################### dnl # Check for KWallet headers dnl ####################################################################### [AC_HELP_STRING([--disable-kwallet], [disable KWallet support])], enable_kwallet="$enableval", enable_kwallet="$is_not_win32") AC_ARG_WITH(kwallet-includes, [AC_HELP_STRING([--with-kwallet-includes=DIR], [compile the KWallet plugin against includes in DIR])], [ac_kwallet_includes="$withval"], [ac_kwallet_includes="no"]) AC_ARG_WITH(kwallet-libs, [AC_HELP_STRING([--with-kwallet-libs=DIR], [compile the KWallet plugin against the KWallet libs in DIR])], [ac_kwallet_libs="$withval"], [ac_kwallet_libs="no"]) if test "x$enable_kwallet" = "xyes"; then dnl Ensure C++ compiler works AC_CHECK_PROG(CXXTEST, [$CXX], [$CXX]) if test "x$CXXTEST" = "x"; then if test "x$force_deps" = "xyes"; then A C++ compiler was not found. Use --disable-kwallet if you do not need KWallet support. CPPFLAGS_save="$CPPFLAGS" if test "x$enable_kwallet" = "xyes"; then PKG_CHECK_MODULES(QT4, [QtCore], [ if test "x$force_deps" = "xyes"; then Qt4 development headers not found. Use --disable-kwallet if you do not need KWallet support. if test "x$enable_kwallet" = "xyes"; then AC_MSG_CHECKING([for metaobject compiler]) MOC=`$PKG_CONFIG --variable=moc_location QtCore` if test -z "$with_kwallet_includes" || test -z "$with_kwallet_libs"; then AC_CHECK_PROG(KDE4_CONFIG, kde4-config, kde4-config, no) if test "x$KDE4_CONFIG" = "xno"; then if test "x$force_deps" = "xyes"; then kde4-config not found. $KDE4_CONFIG Use --disable-kwallet if you do not need KWallet support. Use --with-kwallet-includes and --with-kwallet-libs to set up includes manually. if test "x$enable_kwallet" = "xyes"; then if test "$ac_kwallet_includes" != "no"; then KWALLET_CXXFLAGS="-I$ac_kwallet_includes" elif test "x$KDE4_CONFIG" != "xno"; then KWALLET_CXXFLAGS="$QT4_CFLAGS -I`$KDE4_CONFIG --path include`" CPPFLAGS="$CPPFLAGS $KWALLET_CXXFLAGS" AC_CHECK_HEADER([kwallet.h], , [ if test "x$force_deps" = "xyes"; then KWallet development headers not found. Use --disable-kwallet if you do not need KWallet support. if test "x$enable_kwallet" = "xyes"; then AC_MSG_CHECKING([for KWallet libraries]) if test "$ac_kwallet_libs" != "no"; then KWALLET_LIBS="-L$ac_kwallet_libs -lkdeui" elif test "x$KDE4_CONFIG" != "xno"; then KWALLET_LIBS="-L`$KDE4_CONFIG --install lib`/kde4/devel -lkdeui" KWALLET_LIBS="$KWALLET_LIBS" LIBS="$LIBS $KWALLET_LIBS $QT4_LIBS" AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <kwallet.h>], [KWallet::Wallet::LocalWallet();])], [AC_MSG_RESULT([yes])], if test "x$force_deps" = "xyes"; then KWallet development libraries not found. Use --disable-kwallet if you do not need KWallet support. CPPFLAGS="$CPPFLAGS_save" AC_SUBST(KWALLET_CXXFLAGS) AM_CONDITIONAL(ENABLE_KWALLET, test "x$enable_kwallet" = "xyes") dnl ####################################################################### dnl # Check for GPlugin 0.0.17 dnl ####################################################################### if test "x$enable_plugins" = "xyes" ; then PKG_CHECK_MODULES(GPLUGIN, [gplugin >= 0.0.17 gmodule-2.0], [ dnl # GPLUGIN_REQ sets pkg-config requirements in the .pc file GPLUGIN_REQ=[", gplugin"] GPlugin 0.0.17 development headers not found, which are required if you wish to Use --disable-plugins if you want to disable plugins. dnl # Check for gobject introspection GOBJECT_INTROSPECTION_CHECK([1.30.0]) if test "x$enable_introspection" = "xyes" ; then AC_DEFINE(ENABLE_INTROSPECTION, 1, [Define if GObject introspection is enabled.]) dnl ####################################################################### dnl ####################################################################### dnl Python scripts are used to auto-generate about 3000 lines of C dnl and XML code that wraps (part of) the existing API so that dnl it is now accessible through D-Bus. dnl Python is only required if --enable-dbus is used, and only for dnl the build process to generate the code, not for running pidgin. dnl This autogenerated code is system-independent, so in principle we dnl can generate all of it before shipping. But I thought adding dnl auto-generated stuff to the repository is inelegant. dnl Alternatively, these python scripts could be rewritten AS_HELP_STRING([--with-python=PATH], [which python interpreter to use for dbus code generation]), if test "x$enable_dbus" = "xyes" || test "x$enable_consoleui" = "xyes" ; then if test -z "$PYTHON" -a "x$is_win32" = "xyes" ; then dnl there are problems with include files when cross compiling dnl feel free to fix it, if you want elif test -z "$PYTHON" -o "x$PYTHON" = "xyes"; then AC_PATH_PROG([PYTHON], [python], [no]) if test x"$PYTHON" = x"no" -a "x$is_win32" != "xyes" ; then AC_MSG_WARN([python interpreter not found in your path]) if test "x$PYTHON" != "xno" ; then if $PYTHON -c "import sys; sys.exit(sys.version[[:3]] >= ' 2.4 ')" ; then AC_MSG_WARN([python version >= 2.4 required]) dnl ########################################################################### dnl # Find the D-Bus services dir. dnl # This is a 3 step process that dnl # 1. checks if --with-dbus-services was set, if so use that. dnl # 2. checks if --prefix was given, if so use that. dnl # 3. fallbacks to installing into what should be the correct system dnl # This is still prone to error if one of the legacy directories exist dnl # although a newer dbus is installed. But I have tried to order the dnl # directory searching to keep this situation at a minimum. dnl ########################################################################### AC_ARG_WITH(dbus-services, [AS_HELP_STRING([--with-dbus-services=<dir>], [where the D-Bus services directory is located.])]) if test x"$enable_dbus" = "xyes" ; then AC_MSG_CHECKING([location of the D-Bus services directory]) if ! test -z "$with_dbus_services" ; then if ! test -d "$with_dbus_services" ; then AC_MSG_ERROR([$with_dbus_services does not exist, if this is the correct location please make sure that it exists.]) DBUS_SERVICES_DIR="$with_dbus_services" if test x"$prefix" = x"NONE" ; then dnl # no prefix given, so we look for the correct dbus system paths. dnl # if a prefix is given, we use it. serviceprefixes="$prefix/share $prefix/lib /usr/share /usr/local/share" for d in $serviceprefixes ; do if test -z $DBUS_SERVICES_DIR ; then AC_MSG_ERROR([D-Bus services directory was not found! Please use --with-dbus-services and specify its location.]) DBUS_SERVICES_DIR="$datadir/dbus-1/services" AC_MSG_RESULT([$DBUS_SERVICES_DIR]) AC_DEFINE(HAVE_DBUS, 1, [Define if we are using D-Bus.]) AC_SUBST(DBUS_SERVICES_DIR) if test "x$enable_dbus" = "xyes" ; then echo "Building with D-Bus support" echo "Building without D-Bus support" AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") dnl Check for Python headers (currently useful only for libgnt) if test "x$enable_consoleui" = "xyes" -a ! -z "$PYTHON" -a x"$PYTHON" != x"no" ; then AC_MSG_CHECKING(for Python compile flags) if test -f ${PYTHON}-config; then PY_CFLAGS=`${PYTHON}-config --includes` PY_LIBS=`${PYTHON}-config --libs` AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.]) AC_MSG_RESULT([Cannot find ${PYTHON}-config]) dnl ####################################################################### dnl # Thanks go to Evolution for the checks. dnl ####################################################################### AC_ARG_WITH(system-ssl-certs, [AS_HELP_STRING([--with-system-ssl-certs=<dir>], [directory containing system-wide SSL CA certificates])], [ssl_certificates_dir=$withval]) if ! test -z "$ssl_certificates_dir" ; then if test "x$ssl_certificates_dir" = "xyes" ; then AC_MSG_ERROR([--with-system-ssl-certs requires that a location is specified, eg. --with-system-ssl-certs=/etc/pki/tls/certs]) if ! test -d "$ssl_certificates_dir" ; then if test "x$is_win32" = "xyes" ; then AC_MSG_WARN([$ssl_certificates_dir does not exist. \ It may be OK when cross-compiling, but please make sure about it.]) AC_MSG_ERROR([$ssl_certificates_dir does not exist, \ if this is the correct location please make sure that it exists.]) SSL_CERTIFICATES_DIR="$ssl_certificates_dir" AC_SUBST(SSL_CERTIFICATES_DIR) if test "x$SSL_CERTIFICATES_DIR" != "x" ; then AC_DEFINE_UNQUOTED([SSL_CERTIFICATES_DIR], ["$SSL_CERTIFICATES_DIR"], [Directory where SSL certificates can be found]) AM_CONDITIONAL(INSTALL_SSL_CERTIFICATES, test "x$SSL_CERTIFICATES_DIR" = "x") dnl These two are inverses of each other <-- stolen from evolution! [ --enable-gnutls=[yes,no] attempt to use GnuTLS for SSL support [default=yes]], [enable_gnutls="$enableval"], [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]], [enable_nss="$enableval"], msg_ssl="None. MSN, Yahoo!, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!" dnl # Check for GnuTLS if it isn' t disabled if test "x$enable_gnutls" != "xno" ; then if `$ PKG_CONFIG -- exists gnutls ` ; then dnl # minimum required version should almost certainly be higher PKG_CHECK_MODULES ( GNUTLS , [ gnutls >= 2.10 ] , [ if test "x$have_gnutls" = "xyes" ; then AC_DEFINE ( HAVE_GNUTLS , 1 , [ Define if you have GnuTLS ] ) AM_CONDITIONAL ( USE_GNUTLS , test "x$have_gnutls" = "xyes" ) dnl # Check for NSS if it isn 't disabled if test "x$enable_nss" != "xno"; then if `$PKG_CONFIG --exists mozilla-nss`; then dnl # TODO: set required minimum version PKG_CHECK_MODULES(NSS, mozilla-nss, [ elif `$PKG_CONFIG --exists nss`; then dnl # TODO: set required minimum version PKG_CHECK_MODULES(NSS, nss, [ if test "x$have_nss" = "xyes"; then AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS]) AM_CONDITIONAL(USE_NSS, test "x$have_nss" = "xyes") if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then msg_ssl="$msg_nss and $msg_gnutls" elif test "x$msg_nss" != "x"; then elif test "x$msg_gnutls" != "x"; then elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then Neither GnuTLS or NSS SSL development headers found. Use --disable-nss --disable-gnutls if you do not need SSL support. MSN, Yahoo!, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable! elif test "x$looked_for_gnutls" = "xyes" -a "x$force_deps" = "xyes" ; then GnuTLS SSL development headers not found. Use --disable-gnutls if you do not need SSL support. MSN, Yahoo!, Novell Groupwise and Google Talk will not work without SSL support. elif test "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then NSS SSL development headers not found. Use --disable-nss if you do not need SSL support. MSN, Yahoo!, Novell Groupwise and Google Talk will not work without SSL support. if test "$ac_cv_cygwin" = yes ; then AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) if test "x$enable_plugins" = "xyes" ; then AC_DEFINE(PURPLE_PLUGINS, 1, [Define if plugins are enabled.]) AM_CONDITIONAL(PLUGINS, true) PLUGINS_DEFINE="#define PURPLE_PLUGINS 1" AM_CONDITIONAL(PLUGINS, false) PLUGINS_DEFINE="#undef PURPLE_PLUGINS" dnl ####################################################################### dnl # Check for Cyrus-SASL (for xmpp/irc) dnl ####################################################################### dnl AC_CHECK_SIZEOF(short) AC_CHECK_FUNCS(snprintf connect) AC_ARG_ENABLE(cyrus-sasl, AS_HELP_STRING([--enable-cyrus-sasl], [enable Cyrus SASL support for xmpp/irc]), enable_cyrus_sasl=$enableval, enable_cyrus_sasl=no) if test "x$enable_cyrus_sasl" = "xyes" ; then AC_CHECK_LIB(sasl2, sasl_client_init, [ AM_CONDITIONAL(USE_CYRUS_SASL, true) AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) AM_CONDITIONAL(USE_CYRUS_SASL, false) AC_MSG_ERROR([Cyrus SASL library not found]) AM_CONDITIONAL(USE_CYRUS_SASL, false) dnl ####################################################################### dnl # Check for Kerberos (for Zephyr) dnl ####################################################################### AC_DEFINE(ZEPHYR_INT32, long, [Size of an int32.]) if test "$kerberos" != "no" ; then if test "$kerberos" != "yes" ; then KRB4_CFLAGS="-I${kerberos}/include" if test -d "$kerberos/include/kerberosIV" ; then KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV" KRB4_LDFLAGS="-L${kerberos}/lib" elif test -d /usr/local/include/kerberosIV ; then KRB4_CFLAGS="-I/usr/local/include/kerberosIV" elif test -d /usr/include/kerberosIV ; then KRB4_CFLAGS="-I/usr/include/kerberosIV" AC_DEFINE(ZEPHYR_USES_KERBEROS, 1, [Define if kerberos should be used in Zephyr.]) LDFLAGS="$LDFLAGS $KRB4_LDFLAGS" AC_CHECK_LIB(krb4, krb_rd_req, [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"], [AC_CHECK_LIB(krb, krb_rd_req, [KRB4_LIBS="-lkrb -ldes"], [AC_MSG_ERROR([Kerberos 4 libraries not found])], -ldes425 -lkrb5 -lk5crypto -lcom_err) AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm) AC_CHECK_FUNCS(krb_get_err_text krb_log) dnl ####################################################################### dnl # Check for external libzephyr dnl ####################################################################### if test "$zephyr" != "no" ; then if test "$zephyr" != "yes" ; then ZEPHYR_CFLAGS="-I${zephyr}/include" ZEPHYR_LDFLAGS="-L${zephyr}/lib" elif test -d /usr/athena/include/zephyr ; then ZEPHYR_CFLAGS="-I/usr/athena/include" elif test -d /usr/include/zephyr ; then ZEPHYR_CFLAGS="-I/usr/include" elif test -d /usr/local/include/zephyr ; then ZEPHYR_CFLAGS="-I/usr/local/include" AC_DEFINE(LIBZEPHYR_EXT, 1 , [Define if external libzephyr should be used.]) AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS" AC_CHECK_LIB(zephyr, ZInitialize, [ZEPHYR_LIBS="-lzephyr"], [AC_MSG_ERROR([Zephyr libraries not found])], AC_MSG_CHECKING(for me pot o' gold ) AC_CHECK_FUNCS ( gethostid timegm ) AC_CHECK_HEADERS ( paths . h sgtty . h sys / cdefs . h ) AC_CHECK_HEADERS ( sys / file . h sys / filio . h sys / ioctl . h sys / msgbuf . h ) AC_CHECK_HEADERS ( sys / select . h sys / uio . h sys / wait . h ) AC_CHECK_HEADERS ( termios . h ) # sys / sysctl . h on OpenBSD 4.2 requires sys / param . h # sys / sysctl . h on FreeBSD requires sys / types . h AC_CHECK_HEADERS ( sys / param . h ) AC_CHECK_HEADERS ( sys / sysctl . h , [] , [] , AC_CHECK_HEADERS ( sys / socket . h ) AC_VAR_TIMEZONE_EXTERNALS AC_CHECK_MEMBER ( [ struct tm.tm_gmtoff ] , [ AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm ] ) ] , dnl ####################################################################### dnl # Disable pixmap installation dnl ####################################################################### AC_ARG_ENABLE ( pixmaps - install , AS_HELP_STRING ( [ --disable-pixmaps-install ] , [ disable installation of pixmap files - Pidgin still needs them! ] ), enable_pixmaps = "$enableval" , enable_pixmaps = yes ) AM_CONDITIONAL ( INSTALL_PIXMAPS , test "x$enable_pixmaps" = "xyes" ) dnl ####################################################################### dnl # Tweak status tray icon installation directory dnl ####################################################################### AC_ARG_ENABLE ( trayicon - compat , AS_HELP_STRING ( [ --enable-trayicon-compat ] , [ install tray icons in location compatible with older releases of hicolor-icon-theme ] ), enable_traycompat = "$enableval" , enable_traycompat = no ) AM_CONDITIONAL ( ENABLE_TRAYCOMPAT , test "x$enable_traycompat" = "xyes" ) m4_ifdef ( [ GTK_DOC_CHECK ] , [ GTK_DOC_CHECK([1.16 ] , [ --flavour no-tmpl ] ) if test "x$force_deps" = "xyes" -a "x$enable_gtk_doc" = "xyes"; then You have requested to generate documentation, but gtk-doc was not found. AM_CONDITIONAL ( [ ENABLE_GTK_DOC ] , false ) AC_ARG_ENABLE ( debug , [ AS_HELP_STRING([--enable-debug ] , [ compile with debugging support ] ) ] , , enable_debug = no ) if test "x$enable_debug" = "xyes" ; then AC_DEFINE ( DEBUG , 1 , [ Define if debugging is enabled. ] ) AM_CONDITIONAL ( PURPLE_AVAILABLE , true ) AC_CONFIG_FILES ( [ Makefile doc/reference/finch/Makefile doc/reference/finch/version.xml doc/reference/libpurple/Makefile doc/reference/libpurple/version.xml doc/reference/protocols/Makefile doc/reference/protocols/facebook/Makefile doc/reference/protocols/version.xml doc/reference/pidgin/Makefile doc/reference/pidgin/version.xml pidgin/data/pidgin.desktop.in pidgin/data/pidgin-3-uninstalled.pc pidgin/pixmaps/emotes/default/24/Makefile pidgin/pixmaps/emotes/small/16/Makefile pidgin/plugins/cap/Makefile pidgin/plugins/disco/Makefile pidgin/plugins/gestures/Makefile pidgin/plugins/gevolution/Makefile pidgin/plugins/musicmessaging/Makefile pidgin/plugins/ticker/Makefile pidgin/plugins/win32/transparency/Makefile pidgin/plugins/win32/winprefs/Makefile pidgin/win32/pidgin_dll_rc.rc pidgin/win32/pidgin_exe_rc.rc libpurple/data/purple-url-handler.desktop.in libpurple/data/purple-3.pc libpurple/data/purple-3-uninstalled.pc libpurple/example/Makefile libpurple/plugins/Makefile libpurple/plugins/keyrings/Makefile libpurple/protocols/Makefile libpurple/protocols/bonjour/Makefile libpurple/protocols/facebook/Makefile libpurple/protocols/gg/Makefile libpurple/protocols/irc/Makefile libpurple/protocols/jabber/Makefile libpurple/protocols/jabber/tests/Makefile libpurple/protocols/msn/Makefile libpurple/protocols/mxit/Makefile libpurple/protocols/novell/Makefile libpurple/protocols/null/Makefile libpurple/protocols/oscar/Makefile libpurple/protocols/oscar/tests/Makefile libpurple/protocols/sametime/Makefile libpurple/protocols/silc/Makefile libpurple/protocols/simple/Makefile libpurple/protocols/yahoo/Makefile libpurple/protocols/yahoo/tests/Makefile libpurple/protocols/zephyr/Makefile libpurple/win32/libpurplerc.rc finch/libgnt/libgnt_winres.rc finch/libgnt/wms/Makefile echo Build GTK + UI ................. : $ enable_gtkui echo Build console UI .............. : $ enable_consoleui echo Build for X11 ................. : $ with_x echo Enable Gestures ............... : $ enable_gestures echo Protocols to build dynamically : $ DYNAMIC_PRPLS echo Protocols to link statically .. : $ STATIC_PRPLS echo Build with GStreamer support .. : $ enable_gst echo Build with D - Bus support ...... : $ enable_dbus echo Build with voice and video .... : $ enable_vv if test "x$enable_dbus" = "xyes" ; then eval eval echo D - Bus services directory ...... : $ DBUS_SERVICES_DIR echo Build with GNU Libidn ......... : $ enable_idn echo SSL Library / Libraries ......... : $ msg_ssl if test "x$SSL_CERTIFICATES_DIR" != "x" ; then eval eval echo SSL CA certificates directory . : $ SSL_CERTIFICATES_DIR echo Build with Cyrus SASL support . : $ enable_cyrus_sasl echo Use kerberos 4 with zephyr .... : $ kerberos echo Use external libzephyr ........ : $ zephyr echo Use external libgadu .......... : $ have_libgadu echo Install pixmaps ............... : $ enable_pixmaps echo Old tray icon compatibility ... : $ enable_traycompat echo Install translations .......... : $ enable_i18n echo Has you ....................... : yes echo Use XScreenSaver Extension .... : $ enable_screensaver echo Use X Session Management ...... : $ enable_sm echo Use startup notification ...... : $ enable_startup_notification echo Build with Enchant support .... : $ use_enchant echo Build with GCR widgets ........ : $ enable_gcr echo Build Unity integration plugin . : $ enable_unity echo Build with GNOME Keyring ...... : $ enable_gnome_keyring echo Build with KWallet ............ : $ enable_kwallet #echo Build with Secret Service ..... : $ enable_secret_service echo Build with plugin support ..... : $ enable_plugins echo Enable Introspection ........... : $ enable_introspection if test "x$is_win32" = "xyes" ; then echo Win32 directory structure ..... : $ with_win32_dirs echo Print debugging messages ...... : $ enable_debug echo Generate documentation ........ : $ enable_gtk_doc eval eval echo Pidgin will be installed in $ bindir . if test "x$pidginpath" != "x" ; then echo Warning : You have an old copy of Pidgin at $ pidginpath . if test "x$enable_pixmaps" = "xno" ; then echo Warning : You have disabled the installation of pixmap data , but Pidgin echo still requires installed pixmaps . Be sure you know what you are doing . if test "x$enable_i18n" = "xno" ; then echo Warning : You have disabled the building and installation of translation echo data . This will prevent building pidgin . desktop and the GConf schemas . echo Be sure you know what you are doing . echo configure complete , now type \ 'make\'