]> git.ipfire.org Git - thirdparty/squid.git/commit
Add SQUID_CHECK_LIB_WORKS macro (#1333)
authorAmos Jeffries <yadij@users.noreply.github.com>
Sat, 22 Jul 2023 15:17:32 +0000 (15:17 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 22 Jul 2023 15:17:41 +0000 (15:17 +0000)
commita3bc98c38a3e6d7e86edb8685a6b23655ff56f3a
tree333d04299d52397f11c42b0f3251ee9a77753353
parent91a04222884fa680ec46fd9c703726c44b3030d2
Add SQUID_CHECK_LIB_WORKS macro (#1333)

... to run validation for a library after SQUID_AUTO_LIB detection.

A typical use of this macro could be:
```
  SQUID_AUTO_LIB(foo,[Foo],[LIBFOO])
  SQUID_CHECK_LIB_WORKS(foo,[
    PKG_CHECK_MODULES([LIBFOO],[foo >= 1.0],[],[
      LIBFOO_LIBS=""
    ])
    AC_CHECK_HEADERS([foo.h],[],[LIBFOO_LIBS=""])
  ])
```

Update of configure.ac to use this macro uncovered and
fixed a bug which may have broken libnettle detection on
some systems.
acinclude/squid-util.m4
configure.ac