]> sigrok.org Git - libsigrok.git/blobdiff - configure.ac
Always link against the math library.
[libsigrok.git] / configure.ac
index b5610187a70c3c639ba460aa002042d8640c3748..7c88dc71a9af19ded81fb962fafc08f258ac8432 100644 (file)
@@ -197,6 +197,9 @@ AC_ARG_ENABLE(zeroplus-logic-cube,
 # libsigrok.pc file.
 SR_PKGLIBS=""
 
+# libm (the standard math library) is always needed.
+AC_SEARCH_LIBS([pow], [m])
+
 # libglib-2.0 is always needed. Abort if it's not found.
 # Note: glib-2.0 is part of the libsigrok API (hard pkg-config requirement).
 # We require at least 2.32.0 due to e.g. g_variant_new_fixed_array().