summaryrefslogblamecommitdiff
path: root/configure.ac
blob: afde05f1f65f14bd764f7d88b0a59636e4c9a931 (plain) (tree)











































































                                                                      



                                                                      































                                                                          
m4_define([v_maj], [0])
m4_define([v_min], [2])
m4_define([v_mic], [0])
m4_define([v_ver], [v_maj.v_min.v_mic])

m4_define([lt_cur], m4_eval(v_maj + v_min))
m4_define([lt_rev], v_mic)
m4_define([lt_age], v_min)

AC_INIT([imfos], [v_ver], [enlightenment-devel@lists.sourceforge.net])
AC_PREREQ([2.52])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])

AC_CONFIG_HEADERS([config.h])
AH_TOP([
#ifndef EFL_CONFIG_H__
#define EFL_CONFIG_H__
])
AH_BOTTOM([
#endif /* EFL_CONFIG_H__ */
])

AM_INIT_AUTOMAKE([1.6 dist-bzip2])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])


version_info="lt_cur:lt_rev:lt_age"
AC_SUBST([version_info])
   AC_SUBST(LTLIBINTL) 


### Needed information

### Default options with respect to host


### Additional options to configure


### Checks for programs

LT_INIT
AM_PROG_CC_STDC
AC_PROG_CXX

# pkg-config
PKG_PROG_PKG_CONFIG

AC_SUBST(pkgconfig_requires_private)

### Checks for libraries
imfos_requirements="eina >= 1.0.0 enlightenment"
 
## http://libface.sourceforge.net
PKG_CHECK_EXISTS([libv4l2],
         [
          have_libv4l2="yes"
          imfos_requirements="${imfos_requirements} libv4l2"
         ],
         [have_libv4l2="no"])

PKG_CHECK_EXISTS([libface],
         [
          have_libface="yes"
          imfos_requirements="${imfos_requirements} libface"
         ],
         [have_libface="no"])

PKG_CHECK_EXISTS([libface >= 0.2],
         [
          have_libface2="yes"
          imfos_requirements="${imfos_requirements} libface >= 0.2"
         ],
         [have_libface2="no"])
PKG_CHECK_MODULES([IMFOS], [${imfos_requirements}])
release=$(pkg-config --variable=release enlightenment)
MODULE_ARCH="$host_os-$host_cpu-$release"
AC_SUBST(MODULE_ARCH)
AC_DEFINE_UNQUOTED(MODULE_ARCH, "$MODULE_ARCH", "Module architecture")

AC_CHECK_LIB([dl], [dlopen], [IMFOS_LIBS="${IMFOS_LIBS} -ldl"])

datadir=$(pkg-config --variable=modules enlightenment)/${PACKAGE}
AC_ARG_ENABLE([homedir-install],
  AS_HELP_STRING([--enable-homedir-install], [Install module in homedir]),
  [ datadir="${HOME}/.e/e/modules/${PACKAGE}" ]
)



### Checks for header files
### Checks for types
### Checks for structures
### Checks for compiler characteristics

AM_PROG_CC_C_O
AC_PROG_CXX_C_O

### Checks for linker characteristics

AC_OUTPUT([
Makefile
src/Makefile
])

echo
echo "$PACKAGE $VERSION"