mirror of https://github.com/djcb/mu.git
configure.ac: bump version to 1.3.1, cleanups
Bump the version to 1.3.1, the new development version.
This commit is contained in:
parent
f62b4e534a
commit
db4029e792
83
configure.ac
83
configure.ac
|
@ -1,4 +1,4 @@
|
||||||
## Copyright (C) 2008-2018 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
## Copyright (C) 2008-2019 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
##
|
##
|
||||||
## This program is free software; you can redistribute it and/or modify
|
## This program is free software; you can redistribute it and/or modify
|
||||||
## it under the terms of the GNU General Public License as published by
|
## it under the terms of the GNU General Public License as published by
|
||||||
|
@ -15,8 +15,8 @@
|
||||||
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
AC_PREREQ([2.68])
|
AC_PREREQ([2.68])
|
||||||
AC_INIT([mu],[1.2.0],[https://github.com/djcb/mu/issues],[mu])
|
AC_INIT([mu],[1.3.1],[https://github.com/djcb/mu/issues],[mu])
|
||||||
AC_COPYRIGHT([Copyright (C) 2008-2018 Dirk-Jan C. Binnema])
|
AC_COPYRIGHT([Copyright (C) 2008-2019 Dirk-Jan C. Binnema])
|
||||||
AC_CONFIG_HEADERS([config.h])
|
AC_CONFIG_HEADERS([config.h])
|
||||||
AC_CONFIG_SRCDIR([mu/mu.cc])
|
AC_CONFIG_SRCDIR([mu/mu.cc])
|
||||||
# libtoolize wants to put some stuff in here; if you have an old
|
# libtoolize wants to put some stuff in here; if you have an old
|
||||||
|
@ -44,17 +44,17 @@ AC_PROG_CC_C99
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
|
||||||
extra_flags="-Wformat-security \
|
extra_flags="-Wformat-security \
|
||||||
-Wstack-protector \
|
-Wstack-protector \
|
||||||
-Wstack-protector-all \
|
-Wstack-protector-all \
|
||||||
-Wno-cast-function-type"
|
-Wno-cast-function-type"
|
||||||
|
|
||||||
AX_CXX_COMPILE_STDCXX_14
|
AX_CXX_COMPILE_STDCXX_14
|
||||||
m4_ifdef([AX_COMPILER_FLAGS],[AX_COMPILER_FLAGS(,,[yes],${extra_flags})])
|
m4_ifdef([AX_COMPILER_FLAGS],[AX_COMPILER_FLAGS(,,[yes],${extra_flags})])
|
||||||
AX_VALGRIND_CHECK
|
AX_VALGRIND_CHECK
|
||||||
|
|
||||||
# for now, use AM_PROG_LIBTOOL, as we don't want to require
|
# for now, use AM_PROG_LIBTOOL, as we don't want to require too new
|
||||||
# a too new setup for autotools/libtool
|
# an autotools setup
|
||||||
AM_PROG_LIBTOOL
|
AM_PROG_LIBTOOL
|
||||||
#LT_INIT([disable-shared])
|
#LT_INIT([disable-shared])
|
||||||
|
|
||||||
|
@ -92,48 +92,34 @@ AS_IF([test "x$enable_mu4e" != "xno"], [
|
||||||
lispdir="${lispdir}/mu4e/"
|
lispdir="${lispdir}/mu4e/"
|
||||||
])
|
])
|
||||||
AS_CASE([$emacs_version],
|
AS_CASE([$emacs_version],
|
||||||
[*24.4*|*24.5*],[build_mu4e=yes],
|
[*24.4*|*24.5*],[build_mu4e=yes],
|
||||||
[*25*|*26*|*27*],[build_mu4e=yes],
|
[*25*|*26*|*27*],[build_mu4e=yes],
|
||||||
[AC_WARN([emacs is too old to build mu4e (need emacs >= 24.4)])])
|
[AC_WARN([emacs is too old to build mu4e (need emacs >= 24.4)])])
|
||||||
])
|
])
|
||||||
AM_CONDITIONAL(BUILD_MU4E, test "x$build_mu4e" = "xyes")
|
AM_CONDITIONAL(BUILD_MU4E, test "x$build_mu4e" = "xyes")
|
||||||
|
|
||||||
# Perl interface requires Data::SExpression
|
|
||||||
dnl build_perl=no
|
|
||||||
dnl AC_ARG_ENABLE([perl],
|
|
||||||
dnl AS_HELP_STRING([--enable-perl],[Enable building the Perl interface]))
|
|
||||||
dnl AC_ARG_VAR([PERL], [the Perl interpreter command])
|
|
||||||
dnl AC_CHECK_PROGS([PERL], [perl], [no])
|
|
||||||
dnl AS_IF([test x"$enable_perl" = "xyes" -a x"$PERL" != "xno"], [
|
|
||||||
dnl AM_PERL_MODULE([Data::SExpression],[build_perl=yes])
|
|
||||||
dnl if test x"$build_perl" = "xyes"; then
|
|
||||||
dnl perl_version=`$PERL -Iperl/lib -Mmup -e 'print "$mup::VERSION\n";'`
|
|
||||||
dnl fi
|
|
||||||
dnl ])
|
|
||||||
dnl AM_CONDITIONAL(BUILD_PERL, test "x$build_perl" = "xyes")
|
|
||||||
|
|
||||||
# we need some special tricks for filesystems that don't have d_type;
|
# we need some special tricks for filesystems that don't have d_type;
|
||||||
# e.g. Solaris. See mu-maildir.c. Explicitly disabling it is for
|
# e.g. Solaris. See mu-maildir.c. Explicitly disabling it is for
|
||||||
# testing purposes only
|
# testing purposes only
|
||||||
AC_ARG_ENABLE([dirent-d-type],
|
AC_ARG_ENABLE([dirent-d-type],
|
||||||
AC_HELP_STRING([--disable-dirent-d-type],
|
AC_HELP_STRING([--disable-dirent-d-type],
|
||||||
[Don't use dirent->d_type, even if you have it]),
|
[Don't use dirent->d_type, even if you have it]),
|
||||||
[], [AC_STRUCT_DIRENT_D_TYPE]
|
[], [AC_STRUCT_DIRENT_D_TYPE]
|
||||||
)
|
)
|
||||||
AS_IF([test "x$ac_cv_member_struct_dirent_d_type" != "xyes"],
|
AS_IF([test "x$ac_cv_member_struct_dirent_d_type" != "xyes"],
|
||||||
[use_dirent_d_type="no"], [use_dirent_d_type="yes"])
|
[use_dirent_d_type="no"], [use_dirent_d_type="yes"])
|
||||||
|
|
||||||
# support for d_ino (inode) in struct dirent is optional; if it's
|
# support for d_ino (inode) in struct dirent is optional; if it's
|
||||||
# available we can sort direntries by inode and access them in that
|
# available we can sort direntries by inode and access them in that
|
||||||
# order; this is much faster on some file systems (such as extfs3).
|
# order; this is much faster on some file systems (such as extfs3).
|
||||||
# Explicity disabling it is for testing purposes only.
|
# Explicity disabling it is for testing purposes only.
|
||||||
AC_ARG_ENABLE([dirent-d-ino],
|
AC_ARG_ENABLE([dirent-d-ino],
|
||||||
AC_HELP_STRING([--disable-dirent-d-ino],
|
AC_HELP_STRING([--disable-dirent-d-ino],
|
||||||
[Don't use dirent->d_ino, even if you have it]),
|
[Don't use dirent->d_ino, even if you have it]),
|
||||||
[], [AC_STRUCT_DIRENT_D_INO]
|
[], [AC_STRUCT_DIRENT_D_INO]
|
||||||
)
|
)
|
||||||
AS_IF([test "x$ac_cv_member_struct_dirent_d_ino" != "xyes"],
|
AS_IF([test "x$ac_cv_member_struct_dirent_d_ino" != "xyes"],
|
||||||
[use_dirent_d_ino="no"], [use_dirent_d_ino="yes"])
|
[use_dirent_d_ino="no"], [use_dirent_d_ino="yes"])
|
||||||
|
|
||||||
AC_CHECK_FUNCS([memset memcpy realpath setlocale strerror getpass setsid])
|
AC_CHECK_FUNCS([memset memcpy realpath setlocale strerror getpass setsid])
|
||||||
AC_CHECK_FUNCS([vasprintf strptime])
|
AC_CHECK_FUNCS([vasprintf strptime])
|
||||||
|
@ -183,9 +169,9 @@ AS_IF([test "x$XAPIAN_CONFIG" = "xno"],[
|
||||||
[xapian_version=$($XAPIAN_CONFIG --version | sed -e 's/.* //')])
|
[xapian_version=$($XAPIAN_CONFIG --version | sed -e 's/.* //')])
|
||||||
|
|
||||||
AS_CASE([$xapian_version],
|
AS_CASE([$xapian_version],
|
||||||
[1.[[4-9]].[[0-9]]*],
|
[1.[[4-9]].[[0-9]]*],
|
||||||
[AC_DEFINE([XAPIAN_HAVE_OP_WILDCARD],[1],[Xapian::Query::OP_WILDCARD?])],
|
[AC_DEFINE([XAPIAN_HAVE_OP_WILDCARD],[1],[Xapian::Query::OP_WILDCARD?])],
|
||||||
[AC_MSG_ERROR([*** xapian version >= 1.4 needed, but version $xapian_version found.])])
|
[AC_MSG_ERROR([*** xapian version >= 1.4 needed, but version $xapian_version found.])])
|
||||||
|
|
||||||
XAPIAN_CXXFLAGS="$($XAPIAN_CONFIG --cxxflags)"
|
XAPIAN_CXXFLAGS="$($XAPIAN_CONFIG --cxxflags)"
|
||||||
XAPIAN_LIBS="$($XAPIAN_CONFIG --libs)"
|
XAPIAN_LIBS="$($XAPIAN_CONFIG --libs)"
|
||||||
|
@ -222,7 +208,7 @@ AC_ARG_ENABLE([webkit],AS_HELP_STRING([--disable-webkit],[Disable webkit]))
|
||||||
AS_IF([test "x$enable_webkit" != "xno"],[
|
AS_IF([test "x$enable_webkit" != "xno"],[
|
||||||
PKG_CHECK_MODULES(WEBKIT,webkitgtk-3.0 >= 1.8.0,[have_webkit=yes],[have_webkit=no])
|
PKG_CHECK_MODULES(WEBKIT,webkitgtk-3.0 >= 1.8.0,[have_webkit=yes],[have_webkit=no])
|
||||||
AS_IF([test "x$have_webkit" = "xyes"],[
|
AS_IF([test "x$have_webkit" = "xyes"],[
|
||||||
webkit_version="`$PKG_CONFIG --modversion webkitgtk-3.0`"])
|
webkit_version="`$PKG_CONFIG --modversion webkitgtk-3.0`"])
|
||||||
AC_SUBST(WEBKIT_CFLAGS)
|
AC_SUBST(WEBKIT_CFLAGS)
|
||||||
AC_SUBST(WEBKIT_LIBS)
|
AC_SUBST(WEBKIT_LIBS)
|
||||||
])
|
])
|
||||||
|
@ -295,23 +281,10 @@ contrib/Makefile
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
dnl if test x"$build_perl" != "xno"; then
|
|
||||||
dnl echo "Configuring Perl interface..."
|
|
||||||
dnl cd perl
|
|
||||||
dnl $PERL Makefile.PL
|
|
||||||
dnl cd ..
|
|
||||||
dnl fi
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "mu configuration is complete."
|
echo "mu configuration is complete."
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
|
|
||||||
if test -e ~/.mu/xapian-0.6; then
|
|
||||||
echo "Note: since version 0.7, the Xapian database is no longer stored as "
|
|
||||||
echo "~/.mu/xapian-0.6 but instead simply as ~/.mu/xapian. You can "
|
|
||||||
echo "remove the old <muhome>/xapian-0.6 directory to save some disk space"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "mu version : $VERSION"
|
echo "mu version : $VERSION"
|
||||||
echo
|
echo
|
||||||
echo "Xapian version : $xapian_version"
|
echo "Xapian version : $xapian_version"
|
||||||
|
@ -369,20 +342,20 @@ if test "x$have_makeinfo" != "xyes"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# gui
|
# gui
|
||||||
if test "x$buildgui" = "xyes"; then
|
AS_IF([test "x$buildgui" = "xyes"],[
|
||||||
echo "* The demo UI will be built in toys/mug"
|
echo "* The demo UI will be built in toys/mug"
|
||||||
echo
|
echo
|
||||||
fi
|
])
|
||||||
|
|
||||||
# wordexp
|
# wordexp
|
||||||
if test "x$ac_cv_header_wordexp_h" != "xyes"; then
|
AS_IF([test "x$ac_cv_header_wordexp_h" != "xyes"],[
|
||||||
echo "* Your system does not seem to have the 'wordexp' function."
|
echo "* Your system does not seem to have the 'wordexp' function."
|
||||||
echo " This means that you cannot use shell-like expansion in options and "
|
echo " This means that you cannot use shell-like expansion in options and "
|
||||||
echo " some other places. So, for example, instead of"
|
echo " some other places. So, for example, instead of"
|
||||||
echo " --maildir=~/Maildir"
|
echo " --maildir=~/Maildir"
|
||||||
echo " you should use the complete path, something like:"
|
echo " you should use the complete path, something like:"
|
||||||
echo " --maildir=/home/user/Maildir"
|
echo " --maildir=/home/user/Maildir"
|
||||||
fi
|
])
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Now, type 'make' (or 'gmake') to build mu"
|
echo "Now, type 'make' (or 'gmake') to build mu"
|
||||||
|
|
Loading…
Reference in New Issue