summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-08-01 21:12:35 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-08-01 21:12:35 +0000
commit3e34202f32ab10017d55aedb2665cf55fb5af5c0 (patch)
tree9100bb8046294240d14a155934c80f35675963db /configure
parentdd7f84d8d843dc7f4915649d2a5116b7d319621e (diff)
downloads6-linux-utils-3e34202f32ab10017d55aedb2665cf55fb5af5c0.tar.xz
Add nsss support, prepare for 2.4.0.3
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index de87b55..68d89d2 100755
--- a/configure
+++ b/configure
@@ -44,6 +44,7 @@ Optional features:
--enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled]
--enable-absolute-paths do not rely on PATH to access this package's binaries,
hardcode absolute BINDIR/foobar paths instead [disabled]
+ --enable-nsss use the nsss library for user information [disabled]
EOF
exit 0
@@ -146,6 +147,7 @@ static=true
allpic=detect
slashpackage=false
abspath=false
+usensss=false
sproot=
home=
exthome=
@@ -187,6 +189,8 @@ for arg ; do
--disable-slashpackage) sproot= ; slashpackage=false ;;
--enable-absolute-paths|--enable-absolute-paths=yes) abspath=true ;;
--disable-absolute-paths|--enable-absolute-paths=no) abspath=false ;;
+ --enable-nsss|--enable-nsss=yes) usensss=true ;;
+ --disable-nsss|--enable-nsss=no) usensss=false ;;
--enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;;
--host=*|--target=*) target=${arg#*=} ;;
--build=*) build=${arg#*=} ;;
@@ -427,6 +431,13 @@ if $allpic ; then
else
echo "STATIC_LIBS_ARE_PIC :="
fi
+if $usensss ; then
+ echo "LIBNSSS := -lnsss"
+ echo "MAYBEPTHREAD_LIB := -lpthread"
+else
+ echo "LIBNSSS :="
+ echo "MAYBEPTHREAD_LIB :="
+fi
exec 1>&3 3>&-
echo " ... done."