diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-06 15:32:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-06 15:32:11 +0000 |
commit | 57abdf3eaa424deafda497a4a896328238353e18 (patch) | |
tree | bf991c3cec997d65842f52c2e09a8ba439e98e83 /configure | |
parent | ec85192dacc1bc1ca2efaad4e469d4d1831bce9c (diff) | |
download | nsss-57abdf3eaa424deafda497a4a896328238353e18.tar.gz nsss-57abdf3eaa424deafda497a4a896328238353e18.tar.xz nsss-57abdf3eaa424deafda497a4a896328238353e18.zip |
Prepare for 0.1.0.0, add --enable-libc-includes configure switch
pwd.h, grp.h and shadow.h will not overwrite the libc headers by default anymore; you need to explicitly add the switch.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure index 24a4a52..365404c 100755 --- a/configure +++ b/configure @@ -47,6 +47,7 @@ Optional features: hardcode absolute BINDIR/foobar paths instead [disabled] --with-nsssd-socket=PATH assume the nsssd socket is at PATH [/run/service/nsssd/s] + --enable-libc-includes overwrite {pwd,grp,shadow}.h in includedir [disabled] EOF exit 0 @@ -161,6 +162,7 @@ vpaths='' vpathd='' build= nsssdpath=/run/service/nsssd/s +libcincludes=false for arg ; do case "$arg" in @@ -191,10 +193,12 @@ 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-libc-includes|--enable-libc-includes=yes) libcincludes=true ;; + --disable-libc-includes|--enable-libc-includes=no) libcincludes=false ;; + --with-nsssd-socket=*) nsssdpath=${arg#*=} ;; --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;; --host=*|--target=*) target=${arg#*=} ;; --build=*) build=${arg#*=} ;; - --with-nsssd-socket=*) nsssdpath=${arg#*=} ;; -* ) echo "$0: unknown option $arg" ;; *=*) ;; *) target=$arg ;; @@ -434,7 +438,11 @@ if $allpic ; then else echo "STATIC_LIBS_ARE_PIC :=" fi - +if $libcincludes ; then + echo "DO_LIBC_INCLUDES := 1" +else + echo "DO_LIBC_INCLUDES :=" +fi exec 1>&3 3>&- echo " ... done." |