Commit Diff


commit - af15474448e4ccafd4c05d2963d2131db33d92bb
commit + 1a572d422159b247922d8b22c58e7b60c35d6fc6
blob - 4e1bccd48ceddbb22657271c442b41fcc87fe3a4
blob + 81f3c3b9a6a6126f81dedb7d7c626e32d17dc8a2
--- configure
+++ configure
@@ -83,13 +83,18 @@ if which pkg-config 2>/dev/null 1>&2; then
 
 	case "$(uname)" in
 		OpenBSD)
-			# use libevent in base
+			# use libevent and imsg in base
 			;;
 		*)
 			if pkg-config libevent; then
 				add_cflags "$(pkg-config --cflags libevent)"
 				add_ldflags "$(pkg-config --libs libevent)"
 			fi
+
+			if pkg-config libimsg; then
+				add_cflags "$(pkg-config --cflags libimsg)"
+				add_ldflags "$(pkg-config --libs libimsg)"
+			fi
 			;;
 	esac
 fi