2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(buddylookup, 0.0.1, simon dot morlat at linphone dot org)
6 AC_CONFIG_SRCDIR([src/lookup.c])
8 AM_INIT_AUTOMAKE([tar-ustar])
18 AC_MSG_CHECKING([warning make an error on compilation])
20 [ --enable-strict Enable error on compilation warning [default=yes]],
21 [wall_werror=$enableval],
25 dnl AC_CONFIG_HEADER([config.h])
27 # Checks for programs.
29 dnl LT_INIT([disable-static])
35 AC_CONFIG_COMMANDS([libtool-hacking],[
36 if test "$mingw_found" = "yes" ; then
37 echo "Hacking libtool to work with mingw..."
38 sed -e 's/\*\" \$a_deplib \"\*/\*/' < ./libtool > libtool.tmp
39 cp -f ./libtool.tmp ./libtool
42 ],[mingw_found=$mingw_found])
44 # Checks for libraries.
46 PKG_CHECK_MODULES(LIBSOUP, libsoup-2.4 >= 2.4.0)
47 PKG_CHECK_MODULES(LIBLINPHONE, linphone >= 3.0.0)
49 LINPHONE_PLUGINS_DIR="\$(libdir)/liblinphone/plugins/"
50 AC_SUBST(LINPHONE_PLUGINS_DIR)
52 # Checks for header files.
54 # Checks for typedefs, structures, and compiler characteristics.
56 # Checks for library functions.
58 if test "$GCC" = "yes" ; then
59 CFLAGS="$CFLAGS -Wall"
60 LDFLAGS="$LDFLAGS -rdynamic "
62 if test $wall_werror = yes; then
63 CFLAGS="$CFLAGS -Werror "
67 AM_CONDITIONAL(BUILD_WIN32, test x$mingw_found = xyes)