]> git.ozlabs.org Git - ppp.git/commit
pppd: Use a run-time test to detect libutil availability on Linux
authorPaul Mackerras <paulus@ozlabs.org>
Fri, 1 Jan 2021 00:26:48 +0000 (11:26 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Fri, 1 Jan 2021 08:53:32 +0000 (19:53 +1100)
commit248c11d375c54a8b5fc61c6659be2f8826e889ec
tree01a0e9f3e5782c068d7b3a0e1d31fbf6567acb70
parent5b50b420fcd4708b6d5bdc55087c4c9fe06d215d
pppd: Use a run-time test to detect libutil availability on Linux

This tests whether logwtmp is declared in <utmp.h>, and if not we
assume we need to include our own logwtmp implementation.  We assume
that if logwtmp is provided by the system then we need -lutil to get
it (as is the case for glibc).

This fixes compilation with musl libc and other libcs that don't
provide logwtmp.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/Makefile.linux