configure.ac: prevent -lao, -lXext to be linked to all binaries
commit75d85fa6349f3def35fb8d075365d674959100f2
authorrofl0r <rofl0r@users.noreply.github.com>
Sun, 29 Aug 2021 00:07:19 +0000 (29 00:07 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Sun, 29 Aug 2021 08:50:13 +0000 (29 08:50 +0000)
tree3d929de19594d50e6815944ed5368c4fe68e2ff5
parentffebe4056ed396a4343f9db524533057662b545e
configure.ac: prevent -lao, -lXext to be linked to all binaries

even if not required.

in case of ao, we add --as-needed to the linker, in case of
Xext we prevent the AC_CHECK_LIB function from adding it to LIBS,
by supplying a dummy action-if-found parameter.
-lXext is later on already manually added to X11_LIBS if the
testing succeeds.
configure.ac