Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Command-Line Sharing Plugin
Summary Tracker Lists News SCM Files
1 AC_INIT([sharing-cli], [0.4.1])
2 AM_INIT_AUTOMAKE([foreign])
4 AM_MAINTAINER_MODE
5 AM_CONFIG_HEADER([config.h])
8 dnl =======================================================
9 dnl ===== Checks for programs
10 dnl =======================================================
12 AC_ENABLE_SHARED(yes)
13 AC_ENABLE_STATIC(no)
14 AC_ISC_POSIX
15 AC_PROG_CXX
16 AC_PROG_CC
17 AM_PROG_CC_STDC
18 AC_HEADER_STDC
19 AC_PROG_INSTALL
20 AC_PROG_LN_S
21 AC_PROG_MAKE_SET
22 AC_PROG_LIBTOOL
25 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wcast-align -std=gnu99"
28 PKG_CHECK_MODULES(PACKAGE, [glib-2.0 gtk+-2.0 libsharing conic hildon-1 libosso])
29 AC_SUBST(PACKAGE_CFLAGS)
30 AC_SUBST(PACKAGE_LIBS)
32 PKG_CHECK_MODULES(SHARING, libsharing)
34 pluginsdir=`$PKG_CONFIG libsharing --variable=pluginsdir`
35 AC_SUBST(pluginsdir)
36 PKG_PROG_PKG_CONFIG()
37 servicesdir=`$PKG_CONFIG libsharing --variable=servicesdir`
38 AC_SUBST(servicesdir)
41 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Turn on debug messages]),
42         enable_debug=yes, enable_debug=no)
44 if test x$enable_debug = xyes; then
45   DEBUG_CFLAGS="-DOSSOLOG_COMPILE"
46   AC_SUBST(DEBUG_CFLAGS)
47 fi
50 dnl Set PACKAGE_LOCALE_DIR in config.h
51 DATADIRNAME="share"
52 if test "x${prefix}" = "xNONE"; then
53   AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], ["${ac_default_prefix}/${DATADIRNAME}/locale"],[Locale directory])
54 else
55   AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], ["${prefix}/${DATADIRNAME}/locale"], [Locale directory])
56 fi
57 AC_SUBST(PACKAGE_LOCALE_DIR)
59 AC_OUTPUT([
60     Makefile
61     data/Makefile
62     data/sharing-cli.service.xml
63     src/Makefile
64 ])
67 dnl =======================================================
68 dnl ===== Summary
69 dnl =======================================================
71 echo ""
72 echo "                  $PACKAGE $VERSION"
73 echo "                 ==================="
74 echo ""
75 echo "           Debug messages:   ${enable_debug}"
76 echo "       Plug-ins directory:   ${pluginsdir}"
77 echo "       Services directory:   ${servicesdir}"
78 echo ""

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment