mirror of git://sourceware.org/git/glibc.git
Add --disable-build-nscd configure option.
This commit is contained in:
parent
3cc3ef96d6
commit
c53d909c80
|
|
@ -1,5 +1,13 @@
|
||||||
2012-08-22 Roland McGrath <roland@hack.frob.com>
|
2012-08-22 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* configure.in (build_nscd): New substituted variable, set
|
||||||
|
by --disable-build-nscd and defaults to $use_nscd.
|
||||||
|
* configure: Regenerated.
|
||||||
|
* config.make.in (build-nscd): New substituted variable.
|
||||||
|
* nscd/Makefile (others, others-pie, install-sbin, extra-objs):
|
||||||
|
Change conditional to require [$(build-nscd) = yes] as well.
|
||||||
|
* NEWS: Mention --disable-build-nscd in the --disable-nscd item.
|
||||||
|
|
||||||
[BZ# 13696]
|
[BZ# 13696]
|
||||||
* configure.in (use_nscd): New substituted variable, set by
|
* configure.in (use_nscd): New substituted variable, set by
|
||||||
--disable-nscd. If enabled, define USE_NSCD.
|
--disable-nscd. If enabled, define USE_NSCD.
|
||||||
|
|
|
||||||
2
NEWS
2
NEWS
|
|
@ -36,6 +36,8 @@ Version 2.17
|
||||||
|
|
||||||
* New configure option --disable-nscd builds the C library such that it
|
* New configure option --disable-nscd builds the C library such that it
|
||||||
never attempts to contact the Name Service Caching Daemon (nscd).
|
never attempts to contact the Name Service Caching Daemon (nscd).
|
||||||
|
New configure option --disable-build-nscd avoids building nscd itself;
|
||||||
|
this is the default if --disable-nscd is used.
|
||||||
|
|
||||||
|
|
||||||
Version 2.16
|
Version 2.16
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ sysdeps-add-ons = @sysdeps_add_ons@
|
||||||
cross-compiling = @cross_compiling@
|
cross-compiling = @cross_compiling@
|
||||||
force-install = @force_install@
|
force-install = @force_install@
|
||||||
link-obsolete-rpc = @link_obsolete_rpc@
|
link-obsolete-rpc = @link_obsolete_rpc@
|
||||||
|
build-nscd = @build_nscd@
|
||||||
use-nscd = @use_nscd@
|
use-nscd = @use_nscd@
|
||||||
|
|
||||||
# Build tools.
|
# Build tools.
|
||||||
|
|
|
||||||
|
|
@ -655,6 +655,7 @@ multi_arch
|
||||||
base_machine
|
base_machine
|
||||||
add_on_subdirs
|
add_on_subdirs
|
||||||
add_ons
|
add_ons
|
||||||
|
build_nscd
|
||||||
link_obsolete_rpc
|
link_obsolete_rpc
|
||||||
libc_cv_nss_crypt
|
libc_cv_nss_crypt
|
||||||
all_warnings
|
all_warnings
|
||||||
|
|
@ -751,6 +752,7 @@ enable_multi_arch
|
||||||
enable_nss_crypt
|
enable_nss_crypt
|
||||||
enable_obsolete_rpc
|
enable_obsolete_rpc
|
||||||
enable_systemtap
|
enable_systemtap
|
||||||
|
enable_build_nscd
|
||||||
enable_nscd
|
enable_nscd
|
||||||
with_cpu
|
with_cpu
|
||||||
'
|
'
|
||||||
|
|
@ -1410,6 +1412,7 @@ Optional Features:
|
||||||
--enable-obsolete-rpc build and install the obsolete RPC code for
|
--enable-obsolete-rpc build and install the obsolete RPC code for
|
||||||
link-time usage
|
link-time usage
|
||||||
--enable-systemtap enable systemtap static probe points [default=no]
|
--enable-systemtap enable systemtap static probe points [default=no]
|
||||||
|
--disable-build-nscd disable building and installing the nscd daemon
|
||||||
--disable-nscd library functions will not contact the nscd daemon
|
--disable-nscd library functions will not contact the nscd daemon
|
||||||
|
|
||||||
Optional Packages:
|
Optional Packages:
|
||||||
|
|
@ -3756,6 +3759,15 @@ See \`config.log' for more details" "$LINENO" 5; }
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check whether --enable-build-nscd was given.
|
||||||
|
if test "${enable_build_nscd+set}" = set; then :
|
||||||
|
enableval=$enable_build_nscd; build_nscd=$enableval
|
||||||
|
else
|
||||||
|
build_nscd=default
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Note the use of $use_nscd is near the bottom of the file.
|
# Note the use of $use_nscd is near the bottom of the file.
|
||||||
# Check whether --enable-nscd was given.
|
# Check whether --enable-nscd was given.
|
||||||
if test "${enable_nscd+set}" = set; then :
|
if test "${enable_nscd+set}" = set; then :
|
||||||
|
|
@ -7423,6 +7435,9 @@ if test "x$use_nscd" != xno; then
|
||||||
$as_echo "#define USE_NSCD 1" >>confdefs.h
|
$as_echo "#define USE_NSCD 1" >>confdefs.h
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
if test "x$build_nscd" = xdefault; then
|
||||||
|
build_nscd=$use_nscd
|
||||||
|
fi
|
||||||
|
|
||||||
# Test for old glibc 2.0.x headers so that they can be removed properly
|
# Test for old glibc 2.0.x headers so that they can be removed properly
|
||||||
# Search only in includedir.
|
# Search only in includedir.
|
||||||
|
|
|
||||||
10
configure.in
10
configure.in
|
|
@ -293,6 +293,13 @@ void foo (int i, void *p)
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([build-nscd],
|
||||||
|
[AS_HELP_STRING([--disable-build-nscd],
|
||||||
|
[disable building and installing the nscd daemon])],
|
||||||
|
[build_nscd=$enableval],
|
||||||
|
[build_nscd=default])
|
||||||
|
AC_SUBST(build_nscd)
|
||||||
|
|
||||||
# Note the use of $use_nscd is near the bottom of the file.
|
# Note the use of $use_nscd is near the bottom of the file.
|
||||||
AC_ARG_ENABLE([nscd],
|
AC_ARG_ENABLE([nscd],
|
||||||
[AS_HELP_STRING([--disable-nscd],
|
[AS_HELP_STRING([--disable-nscd],
|
||||||
|
|
@ -2112,6 +2119,9 @@ AC_SUBST(use_nscd)
|
||||||
if test "x$use_nscd" != xno; then
|
if test "x$use_nscd" != xno; then
|
||||||
AC_DEFINE([USE_NSCD])
|
AC_DEFINE([USE_NSCD])
|
||||||
fi
|
fi
|
||||||
|
if test "x$build_nscd" = xdefault; then
|
||||||
|
build_nscd=$use_nscd
|
||||||
|
fi
|
||||||
|
|
||||||
# Test for old glibc 2.0.x headers so that they can be removed properly
|
# Test for old glibc 2.0.x headers so that they can be removed properly
|
||||||
# Search only in includedir.
|
# Search only in includedir.
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ nscd-modules := nscd connections pwdcache getpwnam_r getpwuid_r grpcache \
|
||||||
xmalloc xstrdup aicache initgrcache gai res_hconf \
|
xmalloc xstrdup aicache initgrcache gai res_hconf \
|
||||||
netgroupcache
|
netgroupcache
|
||||||
|
|
||||||
ifeq ($(have-thread-library),yes)
|
ifeq ($(build-nscd)$(have-thread-library),yesyes)
|
||||||
|
|
||||||
others += nscd
|
others += nscd
|
||||||
others-pie += nscd
|
others-pie += nscd
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue