meson: Suggest -Dppp=false when pppd.h is not found

If the header `pppd/pppd.h` is not found, it’s *not* mentioned, that
PPP/PPPoE support can be disabled.

    $ meson setup -Dselinux=false -Dlibaudit=no /dev/shm/nm-build
    […]
    Run-time dependency gnutls found: YES 3.8.9
    Run-time dependency pppd found: NO (tried pkgconfig and cmake)
    Has header "pppd/pppd.h" : NO

    meson.build:627:4: ERROR: Assert failed: couldn't find pppd.h. pppd development headers are required

Add `Use -Dppp=false to build without it.` to help the user.
This commit is contained in:
Paul Menzel 2026-05-06 12:21:56 +02:00
parent 19b065bc4a
commit 057aa17815

View file

@ -624,7 +624,7 @@ if enable_ppp
pppd_version = pppd_dep.version()
NM_PPP_VERSION_2_5_OR_NEWER = true
else
assert(cc.has_header('pppd/pppd.h'), 'couldn\'t find pppd.h. pppd development headers are required')
assert(cc.has_header('pppd/pppd.h'), 'couldn\'t find pppd.h. pppd development headers are required. Use -Dppp=false to build without it.')
pppd_version = '2.4.9'
endif