]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/mailutils/mailutils-0.3.1/configure.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / mailutils / mailutils-0.3.1 / configure.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- mailutils-0.3.1/./configure.ac~configure
7 +++ mailutils-0.3.1/./configure.ac
8 @@ -17,14 +17,14 @@
9  # Foundation, Inc.
10  # 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
11  
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([])
17  AM_INIT_AUTOMAKE
18  AC_CONFIG_HEADERS([config.h])
19  
20 -AC_PREREQ(2.54)
21 +AC_PREREQ(2.57)
22  
23  dnl Check for programs
24  AC_PROG_CC
25 @@ -237,8 +237,7 @@
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)
35 @@ -260,7 +259,8 @@
36  AC_TYPE_SIZE_T
37  AC_CHECK_TYPE(ssize_t, , AC_DEFINE(ssize_t, int, [Define to int if <sys/types.h> does not define]))
38  AC_TYPE_SIGNAL
39 -AC_DECL_SYS_SIGLIST
40 +AC_CHECK_DECLS([sys_siglist])
41 +
42  AC_STRUCT_TIMEZONE
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]))
45 @@ -360,13 +360,10 @@
46  fi
47  
48  AC_MSG_CHECKING(whether extern program_invocation_name is present)
49 -AC_TRY_COMPILE([#include <argp.h>
50 -#include <errno.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)],
57 -[AC_MSG_RESULT(no)])
58 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
59  
60  AH_BOTTOM([
61  #ifndef PROGRAM_INVOCATION_NAME_DECLARED
62 @@ -376,18 +373,15 @@
63  
64  
65  AC_MSG_CHECKING(whether program_invocation_name is declared)
66 -AC_TRY_COMPILE([#include <argp.h>
67 -#include <errno.h>],
68 -[
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;
73  #endif
74         program_invocation_name = "test";
75 -],
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)],
80 -[AC_MSG_RESULT(no)])
81 + AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
82  
83  AC_CHECK_FUNCS(_obstack_begin,
84                 [AC_DEFINE(HAVE_OBSTACK,1,[Define if GNU obstack is present])],