3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- mailutils-0.3.1/./configure.ac~configure
7 +++ mailutils-0.3.1/./configure.ac
10 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
12 -AC_INIT([GNU Mailutils], [0.3.1], [bug-mailutils@gnu.org], [mailutils])
13 +AC_INIT([GNU Mailutils],[0.3.1],[bug-mailutils@gnu.org],[mailutils])
14 AC_CONFIG_SRCDIR([mailbox/mailbox.c])
15 AC_CONFIG_AUX_DIR([scripts])
16 AC_CANONICAL_TARGET([])
18 AC_CONFIG_HEADERS([config.h])
23 dnl Check for programs
26 AC_ARG_WITH([log-facility],
27 AC_HELP_STRING([--with-log-facility=facility],
28 [enable logging to the given facility]),
29 - [AC_TRY_COMPILE([#include <syslog.h>], int lf = $withval,
30 - log_facility=$withval)])
31 + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <syslog.h>]], [[int lf = $withval]])],[log_facility=$withval],[])])
32 AC_DEFINE_UNQUOTED(LOG_FACILITY, $log_facility,
33 [Default syslog facility to use])
34 AC_MSG_RESULT($log_facility)
37 AC_CHECK_TYPE(ssize_t, , AC_DEFINE(ssize_t, int, [Define to int if <sys/types.h> does not define]))
40 +AC_CHECK_DECLS([sys_siglist])
43 AC_CHECK_TYPE(ino_t, , AC_DEFINE(ino_t, unsigned long, [Define to unsigned long if <sys/types.h> does not define]))
44 AC_CHECK_TYPE(dev_t, , AC_DEFINE(dev_t, unsigned long, [Define to unsigned long if <sys/types.h> does not define]))
48 AC_MSG_CHECKING(whether extern program_invocation_name is present)
49 -AC_TRY_COMPILE([#include <argp.h>
51 -[ program_invocation_name = "test"; ],
52 -[AC_DEFINE(PROGRAM_INVOCATION_NAME_DECLARED,1,
53 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <argp.h>
54 +#include <errno.h>]], [[ program_invocation_name = "test"; ]])],[AC_DEFINE(PROGRAM_INVOCATION_NAME_DECLARED,1,
55 [Define if program_invocation_name is declared in argp.h])
56 - AC_MSG_RESULT(yes)],
58 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
61 #ifndef PROGRAM_INVOCATION_NAME_DECLARED
65 AC_MSG_CHECKING(whether program_invocation_name is declared)
66 -AC_TRY_COMPILE([#include <argp.h>
69 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <argp.h>
70 +#include <errno.h>]], [[
71 #ifndef PROGRAM_INVOCATION_NAME_DECLARED
72 extern char *program_invocation_name;
74 program_invocation_name = "test";
76 -[AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME,1,
77 +]])],[AC_DEFINE(HAVE_PROGRAM_INVOCATION_NAME,1,
78 [Define if the variable program_invocation_name exists])
79 - AC_MSG_RESULT(yes)],
81 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
83 AC_CHECK_FUNCS(_obstack_begin,
84 [AC_DEFINE(HAVE_OBSTACK,1,[Define if GNU obstack is present])],