git-svn: trunk@319
Tomasz Kojm authored on 2004/02/21 07:29:46... | ... |
@@ -81,7 +81,7 @@ dnl there is now a CREATE_PREFIX_TARGET_H in this file as a shorthand for |
81 | 81 |
dnl PREFIX_CONFIG_H from a target.h file, however w/o the target.h ever created |
82 | 82 |
dnl (the prefix is a bit different, since we add an extra -target- and -host-) |
83 | 83 |
dnl |
84 |
-dnl @version: $Id: aclocal.m4,v 1.20 2004/02/18 03:15:05 kojm Exp $ |
|
84 |
+dnl @version: $Id: aclocal.m4,v 1.21 2004/02/20 22:29:45 kojm Exp $ |
|
85 | 85 |
dnl @author Guido Draheim <guidod@gmx.de> STATUS: used often |
86 | 86 |
|
87 | 87 |
AC_DEFUN([AC_CREATE_TARGET_H], |
... | ... |
@@ -4041,7 +4041,7 @@ dnl AC_COMPILE_CHECK_SIZEOF(ptrdiff_t, $headers) |
4041 | 4041 |
dnl AC_COMPILE_CHECK_SIZEOF(off_t, $headers) |
4042 | 4042 |
dnl |
4043 | 4043 |
dnl @author Kaveh Ghazi <ghazi@caip.rutgers.edu> |
4044 |
-dnl @version $Id: aclocal.m4,v 1.20 2004/02/18 03:15:05 kojm Exp $ |
|
4044 |
+dnl @version $Id: aclocal.m4,v 1.21 2004/02/20 22:29:45 kojm Exp $ |
|
4045 | 4045 |
dnl |
4046 | 4046 |
AC_DEFUN([AC_COMPILE_CHECK_SIZEOF], |
4047 | 4047 |
[changequote(<<, >>)dnl |
... | ... |
@@ -1004,6 +1004,7 @@ Optional Features: |
1004 | 1004 |
--disable-cr Don't link with C reentrant library (BSD) |
1005 | 1005 |
--disable-urandom Disable test for /dev/urandom |
1006 | 1006 |
--enable-id-check Use id utility instead of /etc/passwd parsing |
1007 |
+ --enable-yp-check Use ypmatch utility instead of /etc/passwd parsing |
|
1007 | 1008 |
--disable-clamav Disable test for clamav user/group |
1008 | 1009 |
--disable-clamuko Don't include Clamuko code /Linux/ |
1009 | 1010 |
--enable-debug Enable debug messages. |
... | ... |
@@ -4541,7 +4542,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4541 | 4541 |
case $host in |
4542 | 4542 |
*-*-irix6*) |
4543 | 4543 |
# Find out which ABI we are using. |
4544 |
- echo '#line 4544 "configure"' > conftest.$ac_ext |
|
4544 |
+ echo '#line 4545 "configure"' > conftest.$ac_ext |
|
4545 | 4545 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4546 | 4546 |
(eval $ac_compile) 2>&5 |
4547 | 4547 |
ac_status=$? |
... | ... |
@@ -5077,7 +5078,7 @@ chmod -w . |
5077 | 5077 |
save_CFLAGS="$CFLAGS" |
5078 | 5078 |
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
5079 | 5079 |
compiler_c_o=no |
5080 |
-if { (eval echo configure:5080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
5080 |
+if { (eval echo configure:5081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
5081 | 5081 |
# The compiler can only warn and ignore the option if not recognized |
5082 | 5082 |
# So say no if there are warnings |
5083 | 5083 |
if test -s out/conftest.err; then |
... | ... |
@@ -6870,7 +6871,7 @@ else |
6870 | 6870 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
6871 | 6871 |
lt_status=$lt_dlunknown |
6872 | 6872 |
cat > conftest.$ac_ext <<EOF |
6873 |
-#line 6873 "configure" |
|
6873 |
+#line 6874 "configure" |
|
6874 | 6874 |
#include "confdefs.h" |
6875 | 6875 |
|
6876 | 6876 |
#if HAVE_DLFCN_H |
... | ... |
@@ -6968,7 +6969,7 @@ else |
6968 | 6968 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
6969 | 6969 |
lt_status=$lt_dlunknown |
6970 | 6970 |
cat > conftest.$ac_ext <<EOF |
6971 |
-#line 6971 "configure" |
|
6971 |
+#line 6972 "configure" |
|
6972 | 6972 |
#include "confdefs.h" |
6973 | 6973 |
|
6974 | 6974 |
#if HAVE_DLFCN_H |
... | ... |
@@ -9169,6 +9170,14 @@ else |
9169 | 9169 |
use_id="no" |
9170 | 9170 |
fi; |
9171 | 9171 |
|
9172 |
+# Check whether --enable-yp-check or --disable-yp-check was given. |
|
9173 |
+if test "${enable_yp_check+set}" = set; then |
|
9174 |
+ enableval="$enable_yp_check" |
|
9175 |
+ use_yp="yes" |
|
9176 |
+else |
|
9177 |
+ use_yp="no" |
|
9178 |
+fi; |
|
9179 |
+ |
|
9172 | 9180 |
|
9173 | 9181 |
# Check whether --with-user or --without-user was given. |
9174 | 9182 |
if test "${with_user+set}" = set; then |
... | ... |
@@ -10013,6 +10022,12 @@ fi |
10013 | 10013 |
clamavgroup=`/usr/bin/nidump group . |grep ${clamav_group}` |
10014 | 10014 |
fi |
10015 | 10015 |
|
10016 |
+ if test "$use_yp" = "yes" |
|
10017 |
+ then |
|
10018 |
+ clamavuser=`ypmatch ${clamav_user} passwd` |
|
10019 |
+ clamavgroup=`ypmatch ${clamav_group} group` |
|
10020 |
+ fi |
|
10021 |
+ |
|
10016 | 10022 |
if test -z "$clamavuser" || test -z "$clamavgroup" |
10017 | 10023 |
then |
10018 | 10024 |
echo "ERROR: User \"$clamav_user\" (and/or group \"$clamav_group\") doesn't exist. Please create it. You can omit this check with the --disable-clamav option." |