Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
2006, 2007, 2008, 2009 Free Software Foundation, Inc.
- This file is free documentation; the Free Software Foundation gives
-unlimited permission to copy, distribute and modify it.
+ Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved. This file is offered as-is,
+without warranty of any kind.
Basic Installation
==================
Briefly, the shell commands `./configure; make; make install' should
configure, build, and install this package. The following
more-detailed instructions are generic; see the `README' file for
-instructions specific to this package.
+instructions specific to this package. Some packages provide this
+`INSTALL' file but do not implement all of the features documented
+below. The lack of an optional feature in a given package is not
+necessarily a bug. More recommendations for GNU packages can be found
+in *note Makefile Conventions: (standards)Makefile Conventions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
you want to change it or regenerate `configure' using a newer version
of `autoconf'.
-The simplest way to compile this package is:
+ The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
- the package.
+ the package, generally using the just-built uninstalled binaries.
4. Type `make install' to install the programs and any data files and
- documentation.
-
- 5. You can remove the program binaries and object files from the
+ documentation. When installing into a prefix owned by root, it is
+ recommended that the package be configured and built as a regular
+ user, and only the `make install' phase executed with root
+ privileges.
+
+ 5. Optionally, type `make installcheck' to repeat any self-tests, but
+ this time using the binaries in their final installed location.
+ This target does not install anything. Running this target as a
+ regular user, particularly if the prior `make install' required
+ root privileges, verifies that the installation completed
+ correctly.
+
+ 6. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
all sorts of other programs in order to regenerate files that came
with the distribution.
- 6. Often, you can also type `make uninstall' to remove the installed
- files again.
+ 7. Often, you can also type `make uninstall' to remove the installed
+ files again. In practice, not all packages have tested that
+ uninstallation works correctly, even though it is required by the
+ GNU Coding Standards.
+
+ 8. Some packages, particularly those that use Automake, provide `make
+ distcheck', which can by used by developers to test that all other
+ targets like `make install' and `make uninstall' work correctly.
+ This target is generally not run by end users.
Compilers and Options
=====================
own directory. To do this, you can use GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.
+source code in the directory that `configure' is in and in `..'. This
+is known as a "VPATH" build.
With a non-GNU `make', it is safer to compile the package for one
architecture at a time in the source code directory. After you have
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
-`configure' the option `--prefix=PREFIX'.
+`configure' the option `--prefix=PREFIX', where PREFIX must be an
+absolute file name.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.
+you can set and what kinds of files go in them. In general, the
+default for these options is expressed in terms of `${prefix}', so that
+specifying just `--prefix' will affect all of the other directory
+specifications that were not explicitly provided.
+
+ The most portable way to affect installation locations is to pass the
+correct locations to `configure'; however, many packages provide one or
+both of the following shortcuts of passing variable assignments to the
+`make install' command line to change installation locations without
+having to reconfigure or recompile.
+
+ The first method involves providing an override variable for each
+affected directory. For example, `make install
+prefix=/alternate/directory' will choose an alternate location for all
+directory configuration variables that were expressed in terms of
+`${prefix}'. Any directories that were specified during `configure',
+but not in terms of `${prefix}', must each be overridden at install
+time for the entire installation to be relocated. The approach of
+makefile variable overrides for each directory variable is required by
+the GNU Coding Standards, and ideally causes no recompilation.
+However, some platforms have known limitations with the semantics of
+shared libraries that end up requiring recompilation when using this
+method, particularly noticeable in packages that use GNU Libtool.
+
+ The second method involves providing the `DESTDIR' variable. For
+example, `make install DESTDIR=/alternate/directory' will prepend
+`/alternate/directory' before all installation names. The approach of
+`DESTDIR' overrides is not required by the GNU Coding Standards, and
+does not work on platforms that have drive letters. On the other hand,
+it does better at avoiding recompilation issues, and works well even
+when some directory options were not specified in terms of `${prefix}'
+at `configure' time.
+
+Optional Features
+=================
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
-Optional Features
-=================
-
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
+ Some packages offer the ability to configure how verbose the
+execution of `make' will be. For these packages, running `./configure
+--enable-silent-rules' sets the default to minimal output, which can be
+overridden with `make V=1'; while running `./configure
+--disable-silent-rules' sets the default to verbose, which can be
+overridden with `make V=0'.
+
Particular systems
==================
`configure' can determine that directory automatically.
`--prefix=DIR'
- Use DIR as the installation prefix. *Note Installation Names::
+ Use DIR as the installation prefix. *note Installation Names::
for more details, including other options available for fine-tuning
the installation locations.
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = src
+SUBDIRS = src doc
-MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
- config.log config.sub configure depcomp \
- install-sh ltmain.sh missing compile
+MAINTAINERCLEANFILES = \
+Makefile.in \
+aclocal.m4 \
+config.guess \
+config.h.in \
+config.h.in~ \
+config.sub \
+configure \
+depcomp \
+install-sh \
+ltconfig \
+ltmain.sh \
+missing
pkgconfigdir = $(libdir)/pkgconfig
if BUILD_EHAL
EHAL_PC = ehal.pc
endif
+
if BUILD_ENOTIFY
ENOTIFY_PC = enotify.pc
endif
+
if BUILD_ECONNMAN
ECONNMAN_PC = econnman.pc
endif
+
if BUILD_EBLUEZ
EBLUEZ_PC = ebluez.pc
endif
+
if BUILD_EOFONO
EOFONO_PC = eofono.pc
endif
+
if BUILD_EUKIT
EUKIT_PC = eukit.pc
endif
-pkgconfig_DATA = edbus.pc $(EHAL_PC) $(ENOTIFY_PC) $(ECONNMAN_PC) $(EBLUEZ_PC) $(EOFONO_PC) $(EUKIT_PC)
-EXTRA_DIST = e_dbus.spec
+pkgconfig_DATA = edbus.pc $(EBLUEZ_PC) $(ECONNMAN_PC) $(EHAL_PC) $(ENOTIFY_PC) $(EOFONO_PC) $(EUKIT_PC)
+
+EXTRA_DIST = \
+AUTHORS \
+COPYING \
+README \
+$(pkgconfig_DATA) \
+autogen.sh \
+ebluez.pc.in \
+econnman.pc.in \
+edbus.pc.in \
+ehal.pc.in \
+enotify.pc.in \
+eofono.pc.in \
+eukit.pc.in \
+e_dbus.spec \
+e_dbus.spec.in \
+m4/ac_attribute.m4 \
+m4/efl_compiler_flag.m4 \
+m4/efl_doxygen.m4
+
+.PHONY: doc
+
+# Documentation
+
+doc:
+ @echo "entering doc/"
+ make -C doc doc
AC_INIT([e_dbus], [0.5.0.063], [enlightenment-devel@lists.sourceforge.net])
release="ver-pre-svn-05"
+ebluez_release_info="-release $release"
+econnman_release_info="-release $release"
+edbus_release_info="-release $release"
+ehal_release_info="-release $release"
+enotify_release_info="-release $release"
+eofono_release_info="-release $release"
+eukit_release_info="-release $release"
+AC_SUBST(ebluez_release_info)
+AC_SUBST(econnman_release_info)
+AC_SUBST(edbus_release_info)
+AC_SUBST(ehal_release_info)
+AC_SUBST(enotify_release_info)
+AC_SUBST(eofono_release_info)
+AC_SUBST(eukit_release_info)
AC_PREREQ([2.52])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
AM_CONFIG_HEADER([config.h])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-AC_PROG_CC
-AC_HEADER_STDC
-AM_PROG_CC_C_O
-AC_C___ATTRIBUTE__
-
AC_LIBTOOL_WIN32_DLL
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
-econnman_release_info="-release $release"
-ebluez_release_info="-release $release"
-eofono_release_info="-release $release"
-edbus_release_info="-release $release"
-ehal_release_info="-release $release"
-eukit_release_info="-release $release"
-enotify_release_info="-release $release"
-AC_SUBST(version_info)
-AC_SUBST(econnman_release_info)
-AC_SUBST(ebluez_release_info)
-AC_SUBST(eofono_release_info)
-AC_SUBST(edbus_release_info)
-AC_SUBST(ehal_release_info)
-AC_SUBST(eukit_release_info)
-AC_SUBST(enotify_release_info)
+ebluez_version_info=$version_info
+econnman_version_info=$version_info
+edbus_version_info=$version_info
+ehal_version_info=$version_info
+enotify_version_info=$version_info
+eofono_version_info=$version_info
+eukit_version_info=$version_info
+AC_SUBST(ebluez_version_info)
+AC_SUBST(econnman_version_info)
+AC_SUBST(edbus_version_info)
+AC_SUBST(ehal_version_info)
+AC_SUBST(enotify_version_info)
+AC_SUBST(eofono_version_info)
+AC_SUBST(eukit_version_info)
+
+### Needed information
-want_ehal="yes"
-want_econnman="yes"
want_ebluez="yes"
-want_eofono="yes"
+want_econnman="yes"
+want_ehal="yes"
want_enotify="yes"
+want_eofono="yes"
want_eukit="yes"
case "$host_os" in
mingw*)
- want_ehal="no"
- want_econnman="no"
want_ebluez="no"
- want_eofono="no"
+ want_econnman="no"
+ want_ehal="no"
want_enotify="no"
+ want_eofono="no"
want_eukit="no"
;;
esac
-dnl Check enabled modules to build
-AC_ARG_ENABLE([ehal],
- [AC_HELP_STRING([--disable-ehal], [Disable ehal build])],
- [enable_ehal=$enableval],
- [enable_ehal="${want_ehal}"])
+requirement_ebluez="edbus"
+requirement_econnman="edbus"
+requirement_edbus="ecore eina-0 dbus-1"
+requirement_ehal="edbus"
+requirement_enotify="edbus"
+requirement_eofono="edbus"
+requirement_eukit="edbus"
-AC_ARG_ENABLE([econnman],
- [AC_HELP_STRING([--enable-econnman], [Enable econnman build])],
- [enable_econnman=$enableval],
- [enable_econnman="${want_econnman}"])
+### Additional options to configure
+
+dnl Check enabled modules to build
AC_ARG_ENABLE([ebluez],
[AC_HELP_STRING([--enable-ebluez], [Enable ebluez build])],
[enable_ebluez=$enableval],
[enable_ebluez="${want_ebluez}"])
-AC_ARG_ENABLE([eofono],
- [AC_HELP_STRING([--enable-eofono], [Enable eofono build])],
- [enable_eofono=$enableval],
- [enable_eofono="${want_eofono}"])
+AC_ARG_ENABLE([econnman],
+ [AC_HELP_STRING([--enable-econnman], [Enable econnman build])],
+ [enable_econnman=$enableval],
+ [enable_econnman="${want_econnman}"])
+
+AC_ARG_ENABLE([ehal],
+ [AC_HELP_STRING([--disable-ehal], [Disable ehal build])],
+ [enable_ehal=$enableval],
+ [enable_ehal="${want_ehal}"])
AC_ARG_ENABLE([enotify],
[AC_HELP_STRING([--disable-enotify], [Disable enotify build])],
[enable_enotify=$enableval],
[enable_enotify="${want_enotify}"])
+AC_ARG_ENABLE([eofono],
+ [AC_HELP_STRING([--enable-eofono], [Enable eofono build])],
+ [enable_eofono=$enableval],
+ [enable_eofono="${want_eofono}"])
+
AC_ARG_ENABLE([eukit],
[AC_HELP_STRING([--disable-eukit], [Disable eukit build])],
[enable_eukit=$enableval],
[enable_eukit="${want_eukit}"])
+
+### Checks for programs
+
+AC_PROG_CC
+AM_PROG_CC_C_O
+
# pkg-config
PKG_PROG_PKG_CONFIG
fi
AC_SUBST(pkgconfig_requires_private)
-PKG_CHECK_MODULES([EINA], [eina-0])
+# doxygen program for documentation building
+EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
-PKG_CHECK_MODULES([EDBUS], [
- dbus-1 >= 0.62
- ecore >= 0.9.9
-])
-##### Find out the version of DBUS we're using
+### Checks for libraries
+
+PKG_CHECK_MODULES([EDBUS], [ecore >= 0.9.9 eina-0 dbus-1 >= 0.62])
+
+# Find out the version of DBUS we're using
dbus_version=`pkg-config --modversion dbus-1`
DBUS_VERSION_MAJOR=`echo $dbus_version | awk -F. '{print $1}'`
DBUS_VERSION_MINOR=`echo $dbus_version | awk -F. '{print $2}'`
DBUS_VERSION_CFLAGS="$DBUS_VERSION_CFLAGS -DDBUS_VERSION_MICRO=$DBUS_VERSION_MICRO"
AC_SUBST(DBUS_VERSION_CFLAGS)
-AC_FUNC_ALLOCA
-
-dnl evas
+# evas
if test "x${enable_enotify}" = "xyes" ; then
- PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9], [], [enable_enotify="no"])
+ PKG_CHECK_MODULES(EVAS,
+ [evas >= 0.9.9],
+ [requirement_enotify="evas ${requirement_enotify}"],
+ [enable_enotify="no"])
fi
+AM_CONDITIONAL([BUILD_EBLUEZ], [test "x${enable_ebluez}" = "xyes"])
+AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
AM_CONDITIONAL([BUILD_EHAL], [test "x${enable_ehal}" = "xyes"])
-AM_CONDITIONAL([BUILD_EUKIT], [test "x${enable_eukit}" = "xyes"])
AM_CONDITIONAL([BUILD_ENOTIFY], [test "x${enable_enotify}" = "xyes"])
-AM_CONDITIONAL([BUILD_ECONNMAN], [test "x${enable_econnman}" = "xyes"])
-AM_CONDITIONAL([BUILD_EBLUEZ], [test "x${enable_ebluez}" = "xyes"])
AM_CONDITIONAL([BUILD_EOFONO], [test "x${enable_eofono}" = "xyes"])
+AM_CONDITIONAL([BUILD_EUKIT], [test "x${enable_eukit}" = "xyes"])
+
+
+### Checks for header files
+
+
+### Checks for types
+
+
+### Checks for structures
+
+
+### Checks for compiler characteristics
EFL_EDBUS_BUILD=""
-lt_enable_auto_import=""
case "$host_os" in
mingw*)
EFL_EDBUS_BUILD="-DEFL_EDBUS_BUILD"
- lt_enable_auto_import="-Wl,--enable-auto-import"
;;
esac
AC_SUBST(EFL_EDBUS_BUILD)
+
+AC_HEADER_STDC
+AC_C___ATTRIBUTE__
+
+if ! test "x${VMIC}" = "x" ; then
+ EFL_COMPILER_FLAG([-Wall])
+ EFL_COMPILER_FLAG([-W])
+fi
+
+EFL_COMPILER_FLAG([-Wshadow])
+
+
+### Checks for linker characteristics
+
+lt_enable_auto_import=""
+case "$host_os" in
+ mingw*)
+ lt_enable_auto_import="-Wl,--enable-auto-import"
+ ;;
+esac
AC_SUBST(lt_enable_auto_import)
+
+### Checks for library functions
+
+AC_FUNC_ALLOCA
+
+
+AC_SUBST(requirement_ebluez)
+AC_SUBST(requirement_econnman)
+AC_SUBST(requirement_edbus)
+AC_SUBST(requirement_ehal)
+AC_SUBST(requirement_enotify)
+AC_SUBST(requirement_eofono)
+AC_SUBST(requirement_eukit)
+
AC_OUTPUT([
e_dbus.spec
Makefile
+doc/Makefile
src/Makefile
src/lib/Makefile
+src/lib/bluez/Makefile
+src/lib/connman/Makefile
src/lib/dbus/Makefile
src/lib/hal/Makefile
-src/lib/ukit/Makefile
src/lib/notification/Makefile
-src/lib/connman/Makefile
-src/lib/bluez/Makefile
src/lib/ofono/Makefile
+src/lib/ukit/Makefile
src/bin/Makefile
+ebluez.pc
+econnman.pc
edbus.pc
ehal.pc
-eukit.pc
enotify.pc
-econnman.pc
-ebluez.pc
eofono.pc
+eukit.pc
])
echo
echo " Modules:"
echo
-echo " EHal...............: $enable_ehal"
-echo " EUkit..............: $enable_eukit"
-echo " EConnman...........: $enable_econnman"
echo " EBluez.............: $enable_ebluez"
-echo " EOfono.............: $enable_eofono"
+echo " EConnman...........: $enable_econnman"
+echo " EHal...............: $enable_ehal"
echo " ENotify............: $enable_enotify"
+echo " EOfono.............: $enable_eofono"
+echo " EUkit..............: $enable_eukit"
+echo
+echo "Documentation..........: ${build_doc}"
echo
echo "Compilation............: make (or gmake)"
echo " CPPFLAGS.............: $CPPFLAGS"
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
-OUTPUT_DIRECTORY = doc
+OUTPUT_DIRECTORY = .
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
# 4096 sub-directories (in 2 levels) under the output directory of each output
# directories that contain image that are included in the documentation (see
# the \image command).
-IMAGE_PATH = doc/images/
+IMAGE_PATH = images/
# The INPUT_FILTER tag can be used to specify a program that doxygen should
# invoke to filter for each input file. Doxygen will invoke the filter program
# each generated HTML page. If it is left blank doxygen will generate a
# standard header.
-HTML_HEADER = doc/head.html
+HTML_HEADER = head.html
# The HTML_FOOTER tag can be used to specify a personal HTML footer for
# each generated HTML page. If it is left blank doxygen will generate a
# standard footer.
-HTML_FOOTER = doc/foot.html
+HTML_FOOTER = foot.html
# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
# style sheet that is used by each HTML page. It can be used to
# the style sheet file to the HTML output directory, so don't put your own
# stylesheet in the HTML output directory as well, or it will be erased!
-HTML_STYLESHEET = doc/e.css
+HTML_STYLESHEET = e.css
# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes,
# files or namespaces will be aligned in HTML using tables. If set to
--- /dev/null
+MAINTAINERCLEANFILES = Makefile.in
+
+.PHONY: doc
+
+if EFL_BUILD_DOC
+
+doc: all
+ rm -rf html/ latex/ man/
+ $(efl_doxygen)
+ cp images/* html/
+
+else
+
+doc:
+ @echo "Documentation not built. Run ./configure --help"
+
+endif
+
+clean-local:
+ @rm -rf html/ latex/ man/
+
+EXTRA_DIST = Doxyfile $(wildcard images/*.*) e.css head.html foot.html
Name: ebluez
Description: bluetooth device manager (bluez)
-@pkgconfig_requires_private@: ecore edbus
+@pkgconfig_requires_private@: @requirement_ebluez@
Version: @VERSION@
Libs: -L${libdir} -lebluez
Cflags: -I${includedir}
Name: econnman
Description: network connection manager (connman)
-@pkgconfig_requires_private@: ecore edbus
+@pkgconfig_requires_private@: @requirement_econnman@
Version: @VERSION@
Libs: -L${libdir} -leconnman
Cflags: -I${includedir}
Name: edbus
Description: DBus convenience library
-@pkgconfig_requires_private@: ecore dbus-1
+@pkgconfig_requires_private@: @requirement_edbus@
Version: @VERSION@
Libs: -L${libdir} -ledbus
Cflags: -I${includedir}
Name: ehal
Description: Hal convenience library
-@pkgconfig_requires_private@: ecore edbus
+@pkgconfig_requires_private@: @requirement_ehal@
Version: @VERSION@
Libs: -L${libdir} -lehal
Cflags: -I${includedir}
Name: enotify
Description: Notification convenience library
-@pkgconfig_requires_private@: ecore edbus
+@pkgconfig_requires_private@: @requirement_enotify@
Version: @VERSION@
Libs: -L${libdir} -lenotify
Cflags: -I${includedir}
Name: eofono
Description: oFono D-Bus wrappers
-@pkgconfig_requires_private@: ecore edbus
+@pkgconfig_requires_private@: @requirement_eofono@
Version: @VERSION@
Libs: -L${libdir} -leofono
Cflags: -I${includedir}
Name: eukit
Description: udisks/upower convenience library
-@pkgconfig_requires_private@: ecore edbus
+@pkgconfig_requires_private@: @requirement_eofono@
Version: @VERSION@
Libs: -L${libdir} -leukit
Cflags: -I${includedir}
+++ /dev/null
-#!/bin/sh
-
-doxygen
-
-if [ ! -e doc/html/images ]; then
- mkdir -p doc/html/images
-fi
-
-cp doc/images/*.png doc/images/*.gif doc/html/images
-
--- /dev/null
+dnl Checks if a given compiler switch is supported.
+dnl If so, this macro adds the flag to the CFLAGS
+
+AC_DEFUN([EFL_COMPILER_FLAG],
+[
+
+CFLAGS_save="${CFLAGS}"
+CFLAGS="${CFLAGS} $1"
+
+AC_LANG_PUSH([C])
+AC_MSG_CHECKING([whether the compiler supports $1])
+
+AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM([[]])],
+ [have_flag="yes"],
+ [have_flag="no"])
+AC_MSG_RESULT([${have_flag}])
+
+if test "x${have_flag}" = "xno" ; then
+ CFLAGS="${CFLAGS_save}"
+fi
+AC_LANG_POP([C])
+
+])
--- /dev/null
+dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
+dnl That code is public domain and can be freely used or copied.
+
+dnl Macro that check if doxygen is available or not.
+
+dnl EFL_CHECK_DOXYGEN([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
+dnl Test for the doxygen program
+dnl Defines efl_doxygen
+dnl Defines the automake conditionnal EFL_BUILD_DOC
+dnl
+AC_DEFUN([EFL_CHECK_DOXYGEN],
+[
+
+dnl
+dnl Disable the build of the documentation
+dnl
+AC_ARG_ENABLE([doc],
+ [AC_HELP_STRING(
+ [--disable-doc],
+ [Disable documentation build @<:@default=enabled@:>@])],
+ [
+ if test "x${enableval}" = "xyes" ; then
+ efl_enable_doc="yes"
+ else
+ efl_enable_doc="no"
+ fi
+ ],
+ [efl_enable_doc="yes"])
+
+AC_MSG_CHECKING([whether to build documentation])
+AC_MSG_RESULT([${efl_enable_doc}])
+
+if test "x${efl_enable_doc}" = "xyes" ; then
+
+dnl Specify the file name, without path
+
+ efl_doxygen="doxygen"
+
+ AC_ARG_WITH([doxygen],
+ [AC_HELP_STRING(
+ [--with-doxygen=FILE],
+ [doxygen program to use @<:@default=doxygen@:>@])],
+
+dnl Check the given doxygen program.
+
+ [efl_doxygen=${withval}
+ AC_CHECK_PROG([efl_have_doxygen],
+ [${efl_doxygen}],
+ [yes],
+ [no])
+ if test "x${efl_have_doxygen}" = "xno" ; then
+ echo "WARNING:"
+ echo "The doxygen program you specified:"
+ echo "${efl_doxygen}"
+ echo "was not found. Please check the path and make sure "
+ echo "the program exists and is executable."
+ AC_MSG_WARN([no doxygen detected. Documentation will not be built])
+ fi
+ ],
+ [AC_CHECK_PROG([efl_have_doxygen],
+ [${efl_doxygen}],
+ [yes],
+ [no])
+ if test "x${efl_have_doxygen}" = "xno" ; then
+ echo "WARNING:"
+ echo "The doxygen program was not found in your execute path."
+ echo "You may have doxygen installed somewhere not covered by your path."
+ echo ""
+ echo "If this is the case make sure you have the packages installed, AND"
+ echo "that the doxygen program is in your execute path (see your"
+ echo "shell manual page on setting the \$PATH environment variable), OR"
+ echo "alternatively, specify the program to use with --with-doxygen."
+ AC_MSG_WARN([no doxygen detected. Documentation will not be built])
+ fi
+ ])
+else
+ efl_have_doxygen="no"
+fi
+
+dnl
+dnl Substitution
+dnl
+AC_SUBST([efl_doxygen])
+
+if ! test "x${efl_have_doxygen}" = "xyes" ; then
+ efl_enable_doc="no"
+fi
+
+AM_CONDITIONAL(EFL_BUILD_DOC, test "x${efl_have_doxygen}" = "xyes")
+
+AS_IF([test "x$efl_have_doxygen" = "xyes"], [$1], [$2])
+])
+
+dnl End of efl_doxygen.m4
-I$(top_srcdir)/src/lib/bluez \
-I$(top_srcdir)/src/lib/ofono \
-I$(top_srcdir)/src/lib/ukit \
-@EDBUS_CFLAGS@ \
-@EINA_CFLAGS@
-
-LIBS = \
-@EDBUS_LIBS@ \
-@EINA_LIBS@
+@EDBUS_CFLAGS@
EDBUS_PROG = e_dbus_test e_dbus_test_client
if BUILD_ENOTIFY
e_dbus_test_client_CPPFLAGS = $(EDBUS_CPPFLAGS)
e_dbus_test_client_LDADD = $(top_builddir)/src/lib/dbus/libedbus.la
+if BUILD_EBLUEZ
+e_dbus_bluez_test_SOURCES = e_dbus_bluez_test.c
+e_dbus_bluez_test_CPPFLAGS = $(EDBUS_CPPFLAGS)
+e_dbus_bluez_test_LDADD = $(top_builddir)/src/lib/bluez/libebluez.la
+endif
+
+if BUILD_ECONNMAN
+e_dbus_connman_test_SOURCES = e_dbus_connman_test.c
+e_dbus_connman_test_CPPFLAGS = $(EDBUS_CPPFLAGS)
+e_dbus_connman_test_LDADD = $(top_builddir)/src/lib/connman/libeconnman.la
+
+e_dbus_connman_test_api_SOURCES = e_dbus_connman_test_api.c
+e_dbus_connman_test_api_CPPFLAGS = $(EDBUS_CPPFLAGS)
+e_dbus_connman_test_api_LDADD = $(top_builddir)/src/lib/connman/libeconnman.la
+endif
+
if BUILD_ENOTIFY
e_dbus_notify_SOURCES = \
notify.c
e_notify_send_LDADD = $(top_builddir)/src/lib/notification/libenotify.la
endif
-if BUILD_ECONNMAN
-e_dbus_connman_test_SOURCES = e_dbus_connman_test.c
-e_dbus_connman_test_CPPFLAGS = $(EDBUS_CPPFLAGS)
-e_dbus_connman_test_LDADD = $(top_builddir)/src/lib/connman/libeconnman.la
-
-e_dbus_connman_test_api_SOURCES = e_dbus_connman_test_api.c
-e_dbus_connman_test_api_CPPFLAGS = $(EDBUS_CPPFLAGS)
-e_dbus_connman_test_api_LDADD = $(top_builddir)/src/lib/connman/libeconnman.la
-endif
-
-if BUILD_EBLUEZ
-e_dbus_bluez_test_SOURCES = e_dbus_bluez_test.c
-e_dbus_bluez_test_CPPFLAGS = $(EDBUS_CPPFLAGS)
-e_dbus_bluez_test_LDADD = $(top_builddir)/src/lib/bluez/libebluez.la
-endif
-
if BUILD_EOFONO
e_dbus_ofono_test_SOURCES = e_dbus_ofono_test.c
e_dbus_ofono_test_CPPFLAGS = $(EDBUS_CPPFLAGS)
MAINTAINERCLEANFILES = Makefile.in
-SUBDIRS=dbus hal notification connman bluez ofono ukit
+SUBDIRS = dbus bluez connman hal notification ofono ukit
#include <E_DBus.h>
#ifdef EAPI
-#undef EAPI
+# undef EAPI
#endif
+
#ifdef _MSC_VER
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
AM_CPPFLAGS = \
-I $(top_srcdir)/src/lib/dbus \
-@EDBUS_CFLAGS@ @EVAS_CFLAGS@ @EINA_CFLAGS@
+@EDBUS_CFLAGS@
if BUILD_EBLUEZ
include_HEADERS = E_Bluez.h
libebluez_la_SOURCES = \
-E_Bluez.h \
-e_bluez_private.h \
e_bluez.c \
e_bluez_element.c \
e_bluez_manager.c \
e_bluez_devicefound.c
libebluez_la_LIBADD = \
-@EDBUS_LIBS@ @EVAS_LIBS@ \
-$(top_builddir)/src/lib/dbus/libedbus.la \
-@EINA_LIBS@
+$(top_builddir)/src/lib/dbus/libedbus.la
-libebluez_la_LDFLAGS = -version-info @version_info@ @ebluez_release_info@
+libebluez_la_LDFLAGS = -version-info @ebluez_version_info@ @ebluez_release_info@
endif
+
+EXTRA_DIST = e_bluez_private.h
#include <E_DBus.h>
#ifdef EAPI
-#undef EAPI
+# undef EAPI
#endif
+
#ifdef _MSC_VER
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
AM_CPPFLAGS = \
-I $(top_srcdir)/src/lib/dbus \
-@EDBUS_CFLAGS@ @EVAS_CFLAGS@ @EINA_CFLAGS@
+@EDBUS_CFLAGS@
if BUILD_ECONNMAN
include_HEADERS = E_Connman.h
libeconnman_la_SOURCES = \
-E_Connman.h \
-e_connman_private.h \
e_connman.c \
e_connman_device.c \
e_connman_element.c \
e_connman_technology.c
libeconnman_la_LIBADD = \
-@EDBUS_LIBS@ @EVAS_LIBS@ \
-$(top_builddir)/src/lib/dbus/libedbus.la \
-@EINA_LIBS@
+$(top_builddir)/src/lib/dbus/libedbus.la
-libeconnman_la_LDFLAGS = -version-info @version_info@ @econnman_release_info@
+libeconnman_la_LDFLAGS = -version-info @econnman_version_info@ @econnman_release_info@
endif
+
+EXTRA_DIST = e_connman_private.h
AM_CPPFLAGS = \
@EFL_EDBUS_BUILD@ \
-@EDBUS_CFLAGS@ \
-@EINA_CFLAGS@ \
-@DBUS_VERSION_CFLAGS@
+@DBUS_VERSION_CFLAGS@ \
+@EDBUS_CFLAGS@
lib_LTLIBRARIES = libedbus.la
e_dbus_signal.c
-libedbus_la_LIBADD = @EDBUS_LIBS@ @EINA_LIBS@
-libedbus_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @edbus_release_info@
+libedbus_la_LIBADD = @EDBUS_LIBS@
+libedbus_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @edbus_version_info@ @edbus_release_info@
EXTRA_DIST = e_dbus_private.h
#ifndef E_HAL_H
#define E_HAL_H
+
+#include <Eina.h>
#include <E_DBus.h>
#ifdef EAPI
-#undef EAPI
+# undef EAPI
#endif
+
#ifdef _MSC_VER
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
AM_CPPFLAGS = \
-I $(top_srcdir)/src/lib/dbus \
-@EDBUS_CFLAGS@ @EINA_CFLAGS@
+@EDBUS_CFLAGS@
if BUILD_EHAL
lib_LTLIBRARIES = libehal.la
include_HEADERS = E_Hal.h
-noinst_HEADERS = e_hal_private.h
-
libehal_la_SOURCES = \
-E_Hal.h \
e_hal_device.c \
e_hal_manager.c \
e_hal_util.c \
e_hal_main.c
libehal_la_LIBADD = \
-@EDBUS_LIBS@ \
-$(top_builddir)/src/lib/dbus/libedbus.la \
-@EINA_LIBS@
-libehal_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @ehal_release_info@
+$(top_builddir)/src/lib/dbus/libedbus.la
+
+libehal_la_LDFLAGS = -version-info @ehal_version_info@ @ehal_release_info@
endif
+
+EXTRA_DIST = e_hal_private.h
#ifndef E_NOTIFY_H
#define E_NOTIFY_H
+#include <Eina.h>
#include <Evas.h>
#include <E_DBus.h>
#ifdef EAPI
-#undef EAPI
+# undef EAPI
#endif
+
#ifdef _MSC_VER
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
AM_CPPFLAGS = \
-I $(top_srcdir)/src/lib/dbus \
-@EDBUS_CFLAGS@ @EVAS_CFLAGS@ @EINA_CFLAGS@
+@EDBUS_CFLAGS@ \
+@EVAS_CFLAGS@
if BUILD_ENOTIFY
lib_LTLIBRARIES = libenotify.la
include_HEADERS = E_Notify.h E_Notification_Daemon.h
-noinst_HEADERS = e_notify_private.h
-
libenotify_la_SOURCES = \
-E_Notify.h \
-E_Notification_Daemon.h \
-e_notify_private.h \
notification.c \
marshal.c \
client.c \
daemon.c
libenotify_la_LIBADD = \
-@EDBUS_LIBS@ @EVAS_LIBS@ \
$(top_builddir)/src/lib/dbus/libedbus.la \
-@EINA_LIBS@
-libenotify_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @enotify_release_info@
+@EVAS_LIBS@
+
+libenotify_la_LDFLAGS = -version-info @enotify_version_info@ @enotify_release_info@
endif
+
+EXTRA_DIST = e_notify_private.h
#include <E_DBus.h>
#ifdef EAPI
-#undef EAPI
+# undef EAPI
#endif
+
#ifdef _MSC_VER
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
AM_CPPFLAGS = \
-I $(top_srcdir)/src/lib/dbus \
-@EDBUS_CFLAGS@ @EVAS_CFLAGS@ @EINA_CFLAGS@
+@EDBUS_CFLAGS@
if BUILD_EOFONO
include_HEADERS = E_Ofono.h
libeofono_la_SOURCES = \
-E_Ofono.h \
-e_ofono_private.h \
e_ofono.c \
e_ofono_element.c \
e_ofono_manager.c \
e_ofono_sms.c
libeofono_la_LIBADD = \
-@EDBUS_LIBS@ @EVAS_LIBS@ \
-$(top_builddir)/src/lib/dbus/libedbus.la \
-@EINA_LIBS@
+$(top_builddir)/src/lib/dbus/libedbus.la
-libeofono_la_LDFLAGS = -version-info @version_info@ @eofono_release_info@
+libeofono_la_LDFLAGS = -version-info @eofono_version_info@ @eofono_release_info@
endif
+
+EXTRA_DIST = e_ofono_private.h
#ifndef E_UKIT_H
#define E_UKIT_H
+
+#include <Eina.h>
#include <E_DBus.h>
-#include <eina_stringshare.h>
#ifdef EAPI
-#undef EAPI
+# undef EAPI
#endif
+
#ifdef _MSC_VER
# ifdef BUILDING_DLL
# define EAPI __declspec(dllexport)
AM_CPPFLAGS = \
-I $(top_srcdir)/src/lib/dbus \
-@EDBUS_CFLAGS@ @EINA_CFLAGS@
+@EDBUS_CFLAGS@
if BUILD_EUKIT
e_ukit_private_util.c
libeukit_la_LIBADD = \
-$(top_builddir)/src/lib/dbus/libedbus.la \
-@EINA_LIBS@
-libeukit_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @eukit_release_info@
+$(top_builddir)/src/lib/dbus/libedbus.la
+
+libeukit_la_LDFLAGS = -version-info @eukit_version_info@ @eukit_release_info@
endif