diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2025-03-04 16:54:18 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2025-03-04 16:54:18 -0300 |
| commit | 2a7edc27d3710cbd7af154a434cadd328ebb24cc (patch) | |
| tree | 67102f32df026dbeff9ee5f126db2273c9a39fdd /configure.ac | |
| parent | 93c2dc28bce30031d6b05d34843dccc2b4d31eeb (diff) | |
configure.ac: fix sed failure on FreeBSD
Simplify the sed expression to make sure it works on all platforms.
The previous expression failed on FreeBSD and it caused the SNMP_LIBS
variable to be empty. When SNMP_LIBS is empty it will cause binaries
and/or libraries to not link against the correct libraries.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 09e2d20c3a..163772904d 100644 --- a/configure.ac +++ b/configure.ac @@ -2046,7 +2046,7 @@ if test "$enable_snmp" != "" -a "$enable_snmp" != "no"; then # net-snmp lists all of its own dependencies. we absolutely do not want that # among other things we avoid a GPL vs. OpenSSL license conflict here for removelib in crypto ssl sensors pci wrap; do - SNMP_LIBS="`echo $SNMP_LIBS | sed -e 's/\(^\|\s\)-l'$removelib'\b/ /g' -e 's/\(^\|\s\)\([^\s]*\/\)\?lib'$removelib'\.[^\s]\+\b/ /g'`" + SNMP_LIBS="`echo $SNMP_LIBS | sed -e 's/-l'$removelib'/ /g'`" done AC_MSG_CHECKING([whether we can link to Net-SNMP]) AC_LINK_IFELSE_FLAGS([$SNMP_CFLAGS], [$SNMP_LIBS], [AC_LANG_PROGRAM([ |
