Lines 1-25
Link Here
|
1 |
--- configure.in.orig Tue Jun 14 00:41:54 2005 |
1 |
--- configure.in.orig Mon Jul 4 10:18:26 2005 |
2 |
+++ configure.in Tue Jun 28 20:47:59 2005 |
2 |
+++ configure.in Mon Jul 4 10:21:50 2005 |
3 |
@@ -176,9 +176,15 @@ |
3 |
@@ -178,9 +178,15 @@ |
4 |
sendmailver_b=`echo $sendmailver | awk -F. '{printf $2}'` |
4 |
sendmailver_b=`echo $sendmailver | awk -F. '{printf $2}'` |
5 |
sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'` |
5 |
sendmailver_c=`echo $sendmailver | awk -F. '{printf $3}'` |
6 |
|
|
|
7 |
- AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_A, $sendmailver_a, [major version of Sendmail]) |
8 |
- AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_B, $sendmailver_b, [minor version of Sendmail]) |
9 |
- AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_C, $sendmailver_c, [subversion of Sendmail]) |
10 |
+ if echo "$sendmailver_a" | egrep -q '^[0-9]+$'; then |
11 |
+ AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_A, $sendmailver_a, [major version of Sendmail]) |
12 |
+ fi |
13 |
+ if echo "$sendmailver_b" | egrep -q '^[0-9]+$'; then |
14 |
+ AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_B, $sendmailver_b, [minor version of Sendmail]) |
15 |
+ fi |
16 |
+ if echo "$sendmailver_c" | egrep -q '^[0-9]+$'; then |
17 |
+ AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_C, $sendmailver_c, [subversion of Sendmail]) |
18 |
+ fi |
19 |
|
6 |
|
|
|
7 |
- AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_A, $sendmailver_a, [major version of Sendmail]) |
8 |
- AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_B, $sendmailver_b, [minor version of Sendmail]) |
9 |
- AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_C, $sendmailver_c, [subversion of Sendmail]) |
10 |
+ if echo "$sendmailver_a" | egrep -q '^[0-9]+$'; then |
11 |
+ AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_A, $sendmailver_a, [major version of Sendmail]) |
12 |
+ fi |
13 |
+ if echo "$sendmailver_b" | egrep -q '^[0-9]+$'; then |
14 |
+ AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_B, $sendmailver_b, [minor version of Sendmail]) |
15 |
+ fi |
16 |
+ if echo "$sendmailver_c" | egrep -q '^[0-9]+$'; then |
17 |
+ AC_DEFINE_UNQUOTED(SENDMAIL_VERSION_C, $sendmailver_c, [subversion of Sendmail]) |
18 |
+ fi |
19 |
fi |
20 |
fi |
20 |
fi |
21 |
|
21 |
|
22 |
@@ -387,9 +393,6 @@ |
22 |
@@ -389,9 +395,6 @@ |
23 |
;; |
23 |
;; |
24 |
freebsd*) |
24 |
freebsd*) |
25 |
if test "$have_pthreads" = "yes"; then |
25 |
if test "$have_pthreads" = "yes"; then |
Lines 29-40
Link Here
|
29 |
TH_SAFE="-thread-safe" |
29 |
TH_SAFE="-thread-safe" |
30 |
AC_DEFINE(CL_THREAD_SAFE,1,[thread safe]) |
30 |
AC_DEFINE(CL_THREAD_SAFE,1,[thread safe]) |
31 |
AC_DEFINE(_REENTRANT,1,[thread safe]) |
31 |
AC_DEFINE(_REENTRANT,1,[thread safe]) |
32 |
@@ -732,7 +735,7 @@ |
|
|
33 |
|
34 |
AC_ARG_ENABLE(gethostbyname_r, |
35 |
[ --disable-gethostbyname_r disable support for gethostbyname_r], |
36 |
-disable_gethostbyname_r=$enableval,) |
37 |
+test $enableval = yes && disable_gethostbyname_r=no || disable_gethostbyname_r=yes,) |
38 |
|
39 |
if test "$disable_gethostbyname_r" = "yes"; then |
40 |
AC_MSG_RESULT(support disabled) |