3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- fetchmail-6.2.3/configure.in~configure
7 +++ fetchmail-6.2.3/configure.in
9 dnl Process this file with autoconf to produce a configure script.
12 -AC_INIT([fetchmail], [6.1.2])
13 +AC_INIT([fetchmail],[6.1.2])
14 AC_CONFIG_SRCDIR([fetchmail.h])
15 AC_CONFIG_HEADERS([config.h])
19 dnl Check for usable void pointer type
20 AC_MSG_CHECKING(use of void pointer type)
23 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[char *p;
25 p = (char *) xmalloc(1);
27 - [AC_DEFINE(HAVE_VOIDPOINTER) AC_MSG_RESULT(yes)],
29 + ]])],[AC_DEFINE(HAVE_VOIDPOINTER) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
31 dnl Check for ANSI volatile
32 AC_MSG_CHECKING(for ANSI volatile)
35 - [AC_DEFINE(HAVE_VOLATILE) AC_MSG_RESULT(yes)],
37 +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[volatile int n;]])],[AC_DEFINE(HAVE_VOLATILE) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
39 dnl Check out the wait reality. We have to assume sys/wait.h is present.
40 AC_CHECK_FUNCS(waitpid wait3)
41 AC_MSG_CHECKING(for union wait);
42 -AC_TRY_LINK([#include <sys/types.h>
43 -#include <sys/wait.h>],
44 - [union wait status; int pid; pid = wait (&status);
45 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
46 +#include <sys/wait.h>]], [[union wait status; int pid; pid = wait (&status);
48 /* Some POSIXoid systems have both the new-style macros and the old
49 union wait type, and they do not work together. If union wait
51 /* Make sure union wait works with waitpid. */
52 pid = waitpid (-1, &status, 0);
55 - [AC_DEFINE(HAVE_UNION_WAIT) AC_MSG_RESULT(yes)],
57 +]])],[AC_DEFINE(HAVE_UNION_WAIT) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
59 AC_MSG_CHECKING(sys_siglist declaration in signal.h or unistd.h)
60 -AC_TRY_LINK([#include <signal.h>
61 +AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <signal.h>
62 /* NetBSD declares sys_siglist in <unistd.h>. */
65 -#endif], [char *msg = *(sys_siglist + 1);],
66 - [AC_DEFINE(SYS_SIGLIST_DECLARED) AC_MSG_RESULT(yes)],
68 +#endif]], [[char *msg = *(sys_siglist + 1);]])],[AC_DEFINE(SYS_SIGLIST_DECLARED) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
70 # Find the right directory to put the root-mode PID file in
71 for dir in "/var/run" "/etc"
74 case "$enable_fallback" in
75 sendmail) if test -z "$sendmail" ; then
76 - AC_ERROR([Sendmail selected as fallback, but not found])
77 + AC_MSG_ERROR([Sendmail selected as fallback, but not found])
80 AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$sendmail -i %T")
81 echo "Will use $sendmail as fallback MDA."
83 procmail) if test -z "$procmail" ; then
84 - AC_ERROR([procmail selected as fallback, but not found])
85 + AC_MSG_ERROR([procmail selected as fallback, but not found])
88 AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$procmail -d %T")
89 echo "Will use $procmail as fallback MDA."
91 maildrop) if test -z "$maildrop" ; then
92 - AC_ERROR([maildrop selected as fallback, but not found])
93 + AC_MSG_ERROR([maildrop selected as fallback, but not found])
96 AC_DEFINE_UNQUOTED(FALLBACK_MDA, "$maildrop -d %T")
98 echo "for automatic fallback MDA configuration for reliability reasons."
101 - *) AC_ERROR([unkown value for --enable-fallback given: $enable_fallback])
102 + *) AC_MSG_ERROR([unkown value for --enable-fallback given: $enable_fallback])
107 # Check for a OpenBSD special case
108 if test "$with_kerberos5" = "yes" && ( test `uname` = "OpenBSD" )
110 - AC_CHECKING([kerberosV for OpenBSD])
111 + AS_MESSAGE(checking kerberosV for OpenBSD...)
113 AC_DEFINE(KERBEROS_V5)
114 CEFLAGS="$CEFLAGS -I/usr/include/kerberosV"
117 AC_CHECK_LIB(des, des_string_to_key, libk5crypto=-ldes,
118 AC_CHECK_LIB(ssl, MD5_Init, [],
119 - AC_ERROR([DES libraries not found. Try adding --with-ssl to enable OpenSSL support]),
120 + AC_MSG_ERROR([DES libraries not found. Try adding --with-ssl to enable OpenSSL support]),
121 ${LDEFLAGS} ${ac_krblibs}),
122 ${LDEFLAGS} ${ac_krblibs})
125 AC_CHECK_LIB(k5crypto,
126 krb5_des_string_to_key,
127 libk5crypto=-lk5crypto,
128 - AC_ERROR([Kerberos 5 DES libraries not found]),
129 + AC_MSG_ERROR([Kerberos 5 DES libraries not found]),
130 ${LDEFLAGS} ${ac_krblibs}),
131 ${LDEFLAGS} ${ac_krblibs})
136 if test -z "$with_kerberos5" ; then
137 - AC_ERROR([Kerberos 5 libraries not found])
138 + AC_MSG_ERROR([Kerberos 5 libraries not found])
143 # Check for a NetBSD/OpenBSD special case
144 if test "$with_kerberos" = "yes" && ( test `uname` = "NetBSD" || test `uname` = "OpenBSD" )
146 - AC_CHECKING([kerberosIV for `uname`])
147 + AS_MESSAGE(checking kerberosIV for `uname`...)
148 AC_DEFINE(KERBEROS_V4)
149 CEFLAGS="$CEFLAGS -I/usr/include/kerberosIV"
150 LIBS="$LIBS -lkrb -ldes"
154 if test -z "$with_kerberos" ; then
155 - AC_ERROR([Kerberos 4 libraries not found])
156 + AC_MSG_ERROR([Kerberos 4 libraries not found])
158 LDFLAGS="$ac_saveLDFLAGS"