Browse Source

Fix build with recent autoconf and modernize configure.ac

configure.ac:2: warning: macro 'AM_CONFIG_HEADERS' not found in library
configure.ac:7: error: 'AM_PROG_CC_STDC': this macro is obsolete.
    You should simply use the 'AC_PROG_CC' macro instead.
    Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
    but upon 'ac_cv_prog_cc_stdc'.
configure.ac:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
wip/maildir-uid-dupes-test
Felipe Contreras 12 years ago committed by Oswald Buddenhagen
parent
commit
ff9bf4d91b
  1. 17
      configure.ac

17
configure.ac

@ -1,10 +1,10 @@
AC_INIT(src/isync.h) AC_INIT([isync], [1.1.0])
AM_CONFIG_HEADER(config.h) AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE(isync, 1.1.0) AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
AM_PROG_CC_STDC AC_PROG_CC
if test "$GCC" = yes; then if test "$GCC" = yes; then
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes -ansi -pedantic -Wno-overlength-strings" CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes -ansi -pedantic -Wno-overlength-strings"
fi fi
@ -18,11 +18,9 @@ AC_CHECK_LIB(socket, socket, [SOCK_LIBS="-lsocket"])
AC_CHECK_LIB(nsl, inet_ntoa, [SOCK_LIBS="$SOCK_LIBS -lnsl"]) AC_CHECK_LIB(nsl, inet_ntoa, [SOCK_LIBS="$SOCK_LIBS -lnsl"])
AC_SUBST(SOCK_LIBS) AC_SUBST(SOCK_LIBS)
m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))])
have_ssl_paths= have_ssl_paths=
AC_ARG_WITH(ssl, AC_ARG_WITH(ssl,
AS_HELP_STRING([--with-ssl[=PATH]], [where to look for SSL [detect]]), AC_HELP_STRING([--with-ssl[=PATH]], [where to look for SSL [detect]]),
[ob_cv_with_ssl=$withval]) [ob_cv_with_ssl=$withval])
if test "x$ob_cv_with_ssl" != xno; then if test "x$ob_cv_with_ssl" != xno; then
case $ob_cv_with_ssl in case $ob_cv_with_ssl in
@ -88,14 +86,15 @@ if test "x$ac_cv_berkdb4" = xno; then
fi fi
AC_ARG_ENABLE(compat, AC_ARG_ENABLE(compat,
AS_HELP_STRING([--disable-compat], [don't include isync compatibility wrapper [no]]), AC_HELP_STRING([--disable-compat], [don't include isync compatibility wrapper [no]]),
[ob_cv_enable_compat=$enableval]) [ob_cv_enable_compat=$enableval])
if test "x$ob_cv_enable_compat" != xno; then if test "x$ob_cv_enable_compat" != xno; then
AC_CHECK_FUNCS(getopt_long) AC_CHECK_FUNCS(getopt_long)
fi fi
AM_CONDITIONAL(with_compat, test "x$ob_cv_enable_compat" != xno) AM_CONDITIONAL(with_compat, test "x$ob_cv_enable_compat" != xno)
AC_OUTPUT(Makefile src/Makefile src/compat/Makefile isync.spec) AC_CONFIG_FILES([Makefile src/Makefile src/compat/Makefile isync.spec])
AC_OUTPUT
if test -n "$have_ssl_paths"; then if test -n "$have_ssl_paths"; then
AC_MSG_RESULT([ AC_MSG_RESULT([

Loading…
Cancel
Save