Browse code

add --disable-gethostbyname_r

git-svn: trunk@812

Tomasz Kojm authored on 2004/08/31 05:48:58
Showing 4 changed files
... ...
@@ -1,3 +1,8 @@
1
+Mon Aug 30 22:44:30 CEST 2004 (tk)
2
+----------------------------------
3
+  * configure: Add --disable-gethostbyname_r. Try enabling it if clamav-milter
4
+	       compilation fails.
5
+
1 6
 Mon Aug 30 14:00:43 CEST 2004 (tk)
2 7
 ----------------------------------
3 8
   * freshclam/dns.c: Fix compilation error on Cygwin once more (thanks to Nigel)
... ...
@@ -46,7 +46,7 @@ while test $# -gt 0; do
46 46
 	;;
47 47
 
48 48
     --version)
49
-	echo devel-20040822
49
+	echo devel-20040830
50 50
 	exit 0
51 51
 	;;
52 52
 
... ...
@@ -1015,32 +1015,32 @@ Optional Features:
1015 1015
   --enable-static=PKGS  build static libraries default=yes
1016 1016
   --enable-fast-install=PKGS  optimize for fast installation default=yes
1017 1017
   --disable-libtool-lock  avoid locking (might break parallel builds)
1018
-  --disable-bzip2	  Disable bzip2 support.
1019
-  --disable-dns	  Disable support for database verification with DNS
1020
-  --disable-clamuko	  Disable clamuko support (Linux and FreeBSD only)
1021
-  --enable-milter	  Build clamav-milter
1022
-  --disable-dsig	  Disable digital signature support.
1023
-  --disable-pthreads      Disable POSIX threads support
1024
-  --disable-cr      Don't link with C reentrant library (BSD)
1025
-  --disable-urandom       Disable test for /dev/urandom
1026
-  --enable-id-check	  Use id utility instead of /etc/passwd parsing
1027
-  --enable-yp-check	  Use ypmatch utility instead of /etc/passwd parsing
1028
-  --disable-clamav	  Disable test for clamav user/group
1029
-  --enable-debug	  Enable debug messages.
1030
-  --enable-bigstack	  Increase thread stack size.
1018
+  --disable-bzip2	  disable bzip2 support
1019
+  --disable-dns	          disable support for database verification through DNS
1020
+  --disable-clamuko	  disable clamuko support (Linux and FreeBSD only)
1021
+  --enable-milter	  build clamav-milter
1022
+  --disable-dsig	  disable support for digital signatures
1023
+  --disable-pthreads      disable POSIX threads support
1024
+  --disable-cr		  don't link with C reentrant library (BSD)
1025
+  --enable-id-check	  use id utility instead of /etc/passwd parsing
1026
+  --enable-yp-check	  use ypmatch utility instead of /etc/passwd parsing
1027
+  --disable-clamav	  disable test for clamav user/group
1028
+  --enable-debug	  enable debug code
1029
+  --enable-bigstack	  increase thread stack size
1030
+  --disable-gethostbyname_r	  disable support for gethostbyname_r
1031 1031
 
1032 1032
 Optional Packages:
1033 1033
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1034 1034
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1035 1035
   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1036 1036
   --with-pic              try to use only PIC/non-PIC objects default=use both
1037
-  --with-libcurl	    Support URLs downloading with libcurl (default=auto)
1038
-  --with-user=uid	  name of the clamav user (default=clamav).
1039
-  --with-group=gid	  name of the clamav group (default=clamav).
1040
-  --with-dbdir=path	  Path to virus database directory.
1041
-  --with-db1=name	  Name of the main database (main.cvd).
1042
-  --with-db2=name	  Name of the daily database (daily.cvd).
1043
-  --with-tcpwrappers      Support hosts.allow / hosts.deny (default=auto)
1037
+  --with-libcurl	  support URLs downloading with libcurl (default=auto)
1038
+  --with-user=uid	  name of the clamav user (default=clamav)
1039
+  --with-group=gid	  name of the clamav group (default=clamav)
1040
+  --with-dbdir=path	  path to virus database directory
1041
+  --with-db1=name	  name of the main database (default=main.cvd)
1042
+  --with-db2=name	  name of the daily database (default=daily.cvd)
1043
+  --with-tcpwrappers      support hosts.allow / hosts.deny (default=auto)
1044 1044
 
1045 1045
 Some influential environment variables:
1046 1046
   CC          C compiler command
... ...
@@ -11047,13 +11047,6 @@ if test "${enable_cr+set}" = set; then
11047 11047
   disable_cr=yes
11048 11048
 fi;
11049 11049
 
11050
-test_urandom=yes
11051
-# Check whether --enable-urandom or --disable-urandom was given.
11052
-if test "${enable_urandom+set}" = set; then
11053
-  enableval="$enable_urandom"
11054
-  test_urandom=no
11055
-fi;
11056
-
11057 11050
 # Check whether --enable-id-check or --disable-id-check was given.
11058 11051
 if test "${enable_id_check+set}" = set; then
11059 11052
   enableval="$enable_id_check"
... ...
@@ -12587,6 +12580,13 @@ sed 's/^/| /' conftest.$ac_ext >&5
12587 12587
 fi
12588 12588
 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12589 12589
 fi
12590
+
12591
+# Check whether --enable-gethostbyname_r or --disable-gethostbyname_r was given.
12592
+if test "${enable_gethostbyname_r+set}" = set; then
12593
+  enableval="$enable_gethostbyname_r"
12594
+  ac_cv_gethostbyname_args=""
12595
+fi;
12596
+
12590 12597
 if test -z "$ac_cv_gethostbyname_args"; then
12591 12598
     echo "$as_me:$LINENO: result: no" >&5
12592 12599
 echo "${ECHO_T}no" >&6
... ...
@@ -52,7 +52,7 @@ AC_CHECK_FUNCS(poll setsid memcpy snprintf vsnprintf strerror_r strlcpy strlcat
52 52
 AC_FUNC_MMAP
53 53
 AC_FUNC_FSEEKO
54 54
 
55
-dnl Check for broken snprintf (code from Phil Oleson <oz*nixil.net>)
55
+dnl Check for broken snprintf (code by Phil Oleson <oz*nixil.net>)
56 56
 if test "x$ac_cv_func_snprintf" = "xyes" ; then
57 57
         AC_MSG_CHECKING([whether snprintf correctly terminates long strings])
58 58
         AC_TRY_RUN(
... ...
@@ -76,7 +76,7 @@ AC_CHECK_HEADER(zlib.h,[LIBCLAMAV_LIBS="$LIBCLAMAV_LIBS -lz"; AC_DEFINE(HAVE_ZLI
76 76
 
77 77
 want_bzip2="yes"
78 78
 AC_ARG_ENABLE(bzip2,
79
-[  --disable-bzip2	  Disable bzip2 support.],
79
+[  --disable-bzip2	  disable bzip2 support],
80 80
 want_bzip2="no",)
81 81
 
82 82
 if test "$want_bzip2" = "yes"
... ...
@@ -87,7 +87,7 @@ fi
87 87
 
88 88
 want_dns="yes"
89 89
 AC_ARG_ENABLE(dns,
90
-[  --disable-dns	  Disable support for database verification with DNS],
90
+[  --disable-dns	          disable support for database verification through DNS],
91 91
 want_dns="no",)
92 92
 
93 93
 if test "$want_dns" = "yes"
... ...
@@ -98,18 +98,18 @@ fi
98 98
 
99 99
 want_clamuko="yes"
100 100
 AC_ARG_ENABLE(clamuko,
101
-[  --disable-clamuko	  Disable clamuko support (Linux and FreeBSD only)],
101
+[  --disable-clamuko	  disable clamuko support (Linux and FreeBSD only)],
102 102
 want_clamuko="no",)
103 103
 
104 104
 AC_FUNC_SETPGRP
105 105
 
106 106
 AC_ARG_ENABLE(milter,
107
-[  --enable-milter	  Build clamav-milter],
107
+[  --enable-milter	  build clamav-milter],
108 108
 have_milter=$enableval,have_milter="no")
109 109
 
110 110
 want_dsig="yes"
111 111
 AC_ARG_ENABLE(dsig,
112
-[  --disable-dsig	  Disable digital signature support.],
112
+[  --disable-dsig	  disable support for digital signatures],
113 113
 want_dsig="no",)
114 114
 
115 115
 if test "$want_dsig" = "yes"
... ...
@@ -119,7 +119,7 @@ fi
119 119
 
120 120
 dnl libcurl
121 121
 AC_ARG_WITH(libcurl,
122
-[  --with-libcurl	    Support URLs downloading with libcurl (default=auto)],
122
+[  --with-libcurl	  support URLs downloading with libcurl (default=auto)],
123 123
 [ case "$withval" in
124 124
   yes|no) lcurl="$withval" ;;
125 125
   *)      AC_MSG_ERROR([--with-libcurl does not take an argument]) ;;
... ...
@@ -140,32 +140,27 @@ then
140 140
 fi
141 141
 
142 142
 AC_ARG_ENABLE(pthreads,
143
-[  --disable-pthreads      Disable POSIX threads support],
143
+[  --disable-pthreads      disable POSIX threads support],
144 144
 have_pthreads=no, )
145 145
 
146 146
 AC_ARG_ENABLE(cr,
147
-[  --disable-cr      Don't link with C reentrant library (BSD) ],
147
+[  --disable-cr		  don't link with C reentrant library (BSD) ],
148 148
 disable_cr=yes,)
149 149
 
150
-test_urandom=yes
151
-AC_ARG_ENABLE(urandom,
152
-[  --disable-urandom       Disable test for /dev/urandom],
153
-test_urandom=no,)
154
-
155 150
 AC_ARG_ENABLE(id-check,
156
-[  --enable-id-check	  Use id utility instead of /etc/passwd parsing],
151
+[  --enable-id-check	  use id utility instead of /etc/passwd parsing],
157 152
 use_id="yes", use_id="no")
158 153
 
159 154
 AC_ARG_ENABLE(yp-check,
160
-[  --enable-yp-check	  Use ypmatch utility instead of /etc/passwd parsing],
155
+[  --enable-yp-check	  use ypmatch utility instead of /etc/passwd parsing],
161 156
 use_yp="yes", use_yp="no")
162 157
 
163 158
 AC_ARG_WITH(user, 
164
-[  --with-user=uid	  name of the clamav user (default=clamav).],
159
+[  --with-user=uid	  name of the clamav user (default=clamav)],
165 160
 clamav_user="$withval", clamav_user="clamav")
166 161
 
167 162
 AC_ARG_WITH(group, 
168
-[  --with-group=gid	  name of the clamav group (default=clamav).],
163
+[  --with-group=gid	  name of the clamav group (default=clamav)],
169 164
 clamav_group="$withval", clamav_group="clamav")
170 165
 
171 166
 AC_DEFINE_UNQUOTED(CLAMAVUSER,"$clamav_user",[name of the clamav user])
... ...
@@ -173,27 +168,27 @@ AC_DEFINE_UNQUOTED(CLAMAVGROUP,"$clamav_group",[name of the clamav group])
173 173
 
174 174
 test_clamav=yes
175 175
 AC_ARG_ENABLE(clamav,
176
-[  --disable-clamav	  Disable test for clamav user/group],
176
+[  --disable-clamav	  disable test for clamav user/group],
177 177
 test_clamav=no,)
178 178
 
179 179
 AC_ARG_ENABLE(debug,
180
-[  --enable-debug	  Enable debug messages.],
180
+[  --enable-debug	  enable debug code],
181 181
 AC_DEFINE(CL_DEBUG,1,[enable debugging]),)
182 182
 
183 183
 AC_ARG_ENABLE(bigstack,
184
-[  --enable-bigstack	  Increase thread stack size.],
184
+[  --enable-bigstack	  increase thread stack size],
185 185
 AC_DEFINE(C_BIGSTACK,1,[Increase thread stack size.]),)
186 186
 
187 187
 AC_ARG_WITH(dbdir, 
188
-[  --with-dbdir=path	  Path to virus database directory.],
188
+[  --with-dbdir=path	  path to virus database directory],
189 189
 db_dir="$withval", db_dir="_default_")
190 190
 
191 191
 AC_ARG_WITH(db1, 
192
-[  --with-db1=name	  Name of the main database (main.cvd).],
192
+[  --with-db1=name	  name of the main database (default=main.cvd)],
193 193
 AC_DEFINE_UNQUOTED(DB1NAME,"$withval",[Name of the main database]), AC_DEFINE(DB1NAME, "main.cvd",[Name of the main database]))
194 194
 
195 195
 AC_ARG_WITH(db2, 
196
-[  --with-db2=name	  Name of the daily database (daily.cvd).],
196
+[  --with-db2=name	  name of the daily database (default=daily.cvd)],
197 197
 AC_DEFINE_UNQUOTED(DB2NAME,"$withval",[Name of the daily database]), AC_DEFINE(DB2NAME, "daily.cvd",[Name of the daily database]))
198 198
 
199 199
 dnl I had problems with $pkgdatadir thus these funny checks
... ...
@@ -457,7 +452,7 @@ fi
457 457
 dnl tcpwrappers support
458 458
 dnl rules from http://ma.ph-freiburg.de/tng/tng-technical/2002-01/msg00094.html
459 459
 AC_ARG_WITH(tcpwrappers,
460
-[  --with-tcpwrappers      Support hosts.allow / hosts.deny (default=auto)],
460
+[  --with-tcpwrappers      support hosts.allow / hosts.deny (default=auto)],
461 461
 [ case "$withval" in
462 462
   yes|no) tcpw="$withval" ;;
463 463
   *)      AC_MSG_ERROR([--with-tcpwrappers does not take an argument]) ;;
... ...
@@ -554,6 +549,11 @@ int h_errno;
554 554
 rc = gethostbyname_r(name, &h, buf, 10, &hp, &h_errno);
555 555
 ], ac_cv_gethostbyname_args=6)
556 556
 fi
557
+
558
+AC_ARG_ENABLE(gethostbyname_r,
559
+[  --disable-gethostbyname_r	  disable support for gethostbyname_r],
560
+ac_cv_gethostbyname_args="",)
561
+
557 562
 if test -z "$ac_cv_gethostbyname_args"; then
558 563
     AC_MSG_RESULT(no)
559 564
 else