aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorStephen Houston <smhouston88@gmail.com>2015-01-29 15:06:33 -0600
committerStephen Houston <smhouston88@gmail.com>2015-01-29 15:06:33 -0600
commit3af706ff11666d04c9440b90056497ba5d025899 (patch)
treea2ee3587af46b86580d24dc3499e1fd08b6a792f /configure.ac
parentEphoto: Cleanup autofoo (diff)
downloadephoto-3af706ff11666d04c9440b90056497ba5d025899.tar.gz
Ephoto: Clean up autofoo ... Try to make Ephoto releasable.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac216
1 files changed, 69 insertions, 147 deletions
diff --git a/configure.ac b/configure.ac
index a1a95da..cb23d5a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,131 +1,75 @@
-##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
-##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
-m4_define([v_maj], [0])
-m4_define([v_min], [1])
-m4_define([v_mic], [1])
-m4_define([v_rev], m4_esyscmd([(svnversion "${SVN_REPO_PATH:-.}" | grep -v export || echo 0) | awk -F : '{printf("%s\n", $1);}' | tr -d ' :MSP\n']))
-m4_if(v_rev, [0], [m4_define([v_rev], m4_esyscmd([git log 2> /dev/null | (grep -m1 git-svn-id || echo 0) | sed -e 's/.*@\([0-9]*\).*/\1/' | tr -d '\n']))])
-##-- When released, remove the dnl on the below line
-# m4_undefine([v_rev])
-##-- When doing snapshots - change soname. remove dnl on below line
-m4_define([relname], [ver-pre-svn-08])
-m4_define([v_rel], [-release relname])
-##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
-m4_ifdef([v_rev], [m4_define([v_ver], [v_maj.v_min.v_mic.v_rev])], [m4_define([v_ver], [v_maj.v_min.v_mic])])
-m4_define([lt_rev], m4_eval(v_maj + v_min))
-m4_define([lt_cur], v_mic)
-m4_define([lt_age], v_min)
-##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
-##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
-
-AC_INIT([ephoto], [v_ver], [enlightenment-devel@lists.sourceforge.net])
+dnl Process this file with autoconf to produce a configure script.
+
+# get rid of that stupid cache mechanism
+rm -f config.cache
+
+EFL_VERSION([0], [0], [1], [dev])
+AC_INIT([ephoto], [efl_version], [enlightenment-devel@lists.sourceforge.net])
+
AC_PREREQ([2.60])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
-AC_GNU_SOURCE
-AC_CANONICAL_BUILD
-AC_CANONICAL_HOST
-AC_ISC_POSIX
-AM_INIT_AUTOMAKE(1.6 dist-bzip2)
AC_CONFIG_HEADERS(src/bin/config.h)
+
+AM_INIT_AUTOMAKE(1.6 dist-xz)
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
-define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])
-define([AC_LIBTOOL_LANG_GCJ_CONFIG], [:])
-define([AC_LIBTOOL_LANG_F77_CONFIG], [:])
-AC_PROG_LIBTOOL
-
-VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
-VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
-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"
-m4_ifdef([v_rev], , [m4_define([v_rev], [0])])
-AC_DEFINE_UNQUOTED(VREV, [v_rev], [Revison])
-AC_SUBST(VMAJ)
-AC_SUBST(version_info)
-
-AC_C_BIGENDIAN
-AC_PROG_CC_C99
+AC_USE_SYSTEM_EXTENSIONS
+AC_PROG_CC
AM_PROG_CC_C_O
-AC_C_CONST
-AC_FUNC_ALLOCA
AC_C___ATTRIBUTE__
-m4_ifdef([v_mic],
- [
- EFL_COMPILER_FLAG([-Wall -Wextra])
- EFL_COMPILER_FLAG([-W])
- ])
-
-EFL_COMPILER_FLAG([-Wshadow])
-EFL_COMPILER_FLAG([-fvisibility=hidden])
-EFL_COMPILER_FLAG([-ffunction-sections -fdata-sections])
-EFL_LINKER_FLAG([-fvisibility=hidden])
-EFL_LINKER_FLAG([-Wl,--as-needed])
-EFL_LINKER_FLAG([-Wl,--gc-sections])
-
-ALL_LINGUAS=`cat po/LINGUAS | grep -v '^[ ]*#'`
-AC_SUBST(ALL_LINGUAS)
-
-m4_ifdef([AM_GNU_GETTEXT_VERSION], [
-AM_GNU_GETTEXT_VERSION([0.17])
+m4_ifdef([AM_GNU_GETTEXT_VERSION],[
+AM_GNU_GETTEXT_VERSION([0.18])
])
m4_ifdef([AM_GNU_GETTEXT], [
-AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT([external], [need-ngettext])
po_makefile_in=po/Makefile.in
-AM_CONDITIONAL([HAVE_PO], [true])
+have_po="yes"
],[
-AM_CONDITIONAL([HAVE_PO], [false])
+have_po="no"
])
-AC_SUBST(LTLIBINTL)
-
-PKG_CHECK_MODULES([ELEMENTARY], [elementary ecore-file ethumb_client])
-PKG_CHECK_MODULES([EFREET_MIME], [efreet-mime])
-
-want_quicklaunch="auto"
-AC_ARG_ENABLE([quicklaunch],
- [AC_HELP_STRING([--disable-quicklaunch],
- [disable build of quicklaunch (default=auto)])],
- [if test "x${enableval}" = "xno"; then
- want_quicklaunch="no"
- elif test "x${enableval}" = "xyes"; then
- want_quicklaunch="yes"
- else
- want_quicklaunch="auto"
- fi
- ],
- [want_quicklaunch="auto"])
-
-if test "x${want_quicklaunch}" = "xauto"; then
- AC_MSG_CHECKING([checking for elementary_quicklaunch binary...])
- if test -x $(pkg-config --variable=prefix elementary)/bin/elementary_quicklaunch; then
- AC_MSG_RESULT([found, enable quicklaunch.])
- want_quicklaunch="yes"
- else
- AC_MSG_RESULT([not found, disable quicklaunch.])
- want_quicklaunch="no"
- fi
+AC_SUBST(LTLLIBINTL)
+if test "x$LIBINTL" = "x"; then
+ LIBINTL="$INTLLIBS"
fi
-if test "x${want_quicklaunch}" = "xyes"; then
- AC_ARG_WITH([quicklauncher-libdir],
- [AC_HELP_STRING([--with-quicklauncher-libdir=PATH],
- [specify a specific path to install quicklauncher binaries])],
- [quicklauncher_libdir=$withval;
- AC_MSG_NOTICE([quicklauncher_libdir explicitly set to $quicklauncher_libdir])
- ],
- [quicklauncher_libdir=$(pkg-config --variable=libdir elementary)])
- AC_SUBST(quicklauncher_libdir)
+if test "x${POSUB}" = "x" ; then
+ have_po="no"
fi
-AM_CONDITIONAL(BUILD_QUICKLAUNCH, test "x${want_quicklaunch}" = "xyes")
+AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
+
+PKG_CHECK_MODULES([EFL], [
+ eina >= 1.7.0
+ evas >= 1.7.0
+ ecore >= 1.7.0
+ edje >= 1.7.0
+ eo >= 1.7.0
+ eio >= 1.7.0
+ elementary >= 1.7.0
+ efreet-mime >= 1.7.0
+])
+
+AC_ARG_WITH([tests],
+ [AC_HELP_STRING([--with-tests=none|regular|coverage],
+ [choose testing method: regular, coverage, or none.
+ @<:@default=none:>@])],
+ [build_tests=${withval}],
+ [build_tests=auto])
+
+EFL_TESTS([${build_tests}])
+
+EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
+
+AC_CONFIG_FILES([
+ephoto.spec
+])
AC_OUTPUT([
Makefile
-ephoto.spec
data/Makefile
data/desktop/Makefile
src/Makefile
@@ -134,45 +78,23 @@ $po_makefile_in
])
-
-cat << EOF
-------------------------------------------------------------------------
-$PACKAGE $VERSION
-------------------------------------------------------------------------
-
- ________ ________ ___ ___ ________ ________ ________
- / _____/ / __ / / / / / / __ / /__ ___/ / __ /
- / /____ / /_/ / / /_/ / / / / / / / / / / /
- / _____/ / _____/ / __ / / / / / / / / / / /
-/ /_____ / / / / / / / /_/ / / / / /_/ /
-________/ /__/ /__/ /__/ /_______/ /_/ /_______/
-
-
-ephoto configured with:
-
-Flags:
- CFLAGS.....(C): $CFLAGS
- CXXFLAGS.(C++): $CXXFLAGS
- CPPFLAGS.(CPP): $CPPFLAGS
- LDFLAGS...(LD): $LDFLAGS
-
-Installation:
- PREFIX..............: $prefix
-
-Quick Launcher: ${want_quicklaunch}
-EOF
-
-if test "x${want_quicklaunch}" = "xyes"; then
-cat << EOF_QL
- quicklauncher_libdir: $quicklauncher_libdir
-
-EOF_QL
-fi
-
-cat << EOF2
-
-Now type 'make' ('gmake' on some systems) to compile ephoto, if it
-builds successfully then you can 'make install', acquiring required
-permissions with 'su' or 'sudo'.
-
-EOF2
+###########################################################################
+## Info
+
+echo
+echo
+echo
+echo "------------------------------------------------------------------------"
+echo "$PACKAGE_NAME $PACKAGE_VERSION"
+echo "------------------------------------------------------------------------"
+echo
+echo "Compilation..............: make (or gmake)"
+echo " CPPFLAGS...............: $CPPFLAGS"
+echo " CFLAGS.................: $CFLAGS"
+echo " LDFLAGS................: $LDFLAGS"
+echo
+echo "Building tests...........: ${have_tests}"
+echo
+echo "Installation:............: make install (as root if needed, with 'su' or 'sudo')"
+echo " prefix.................: $prefix"
+echo