diff dep/animone/configure.ac @ 338:f63dfa309380

dep/animone: separate *BSD into separate files they are wholly different operating systems with very different kernels on the inside
author Paper <paper@paper.us.eu.org>
date Wed, 19 Jun 2024 13:06:10 -0400
parents a7d4e5107531
children adb79bdde329
line wrap: on
line diff
--- a/dep/animone/configure.ac	Wed Jun 19 12:51:15 2024 -0400
+++ b/dep/animone/configure.ac	Wed Jun 19 13:06:10 2024 -0400
@@ -42,19 +42,20 @@
 		;;
 	*)
 		dnl BSDs
+		saved_LIBS="$LIBS"
 		AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no])
 		AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no])
+		LIBS="$saved_LIBS"
 
 		if test "x$build_kvm" = "xyes"; then
-			AC_DEFINE([USE_LIBKVM])
-			AC_DEFINE([BSD])
+			AC_DEFINE([USE_OPENBSD])
 		elif test "x$build_libutil" = "xyes"; then
-			AC_DEFINE([USE_LIBUTIL])
-			AC_DEFINE([BSD])
+			AC_DEFINE([USE_FREEBSD])
 		fi
 		;;
 esac
 
+dnl todo: configure flag for this
 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then
 	PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no])
 	if test "x$build_x11" = "xyes"; then
@@ -67,8 +68,8 @@
 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"])
 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"])
 AM_CONDITIONAL([BUILD_LINUX], [test "x$build_linux" = "xyes"])
-AM_CONDITIONAL([BUILD_LIBUTIL], [test "x$build_libutil" = "xyes"])
-AM_CONDITIONAL([BUILD_LIBKVM], [test "x$build_kvm" = "xyes"])
+AM_CONDITIONAL([BUILD_FREEBSD], [test "x$build_libutil" = "xyes"])
+AM_CONDITIONAL([BUILD_OPENBSD], [test "x$build_kvm" = "xyes"])
 AM_CONDITIONAL([BUILD_BSD], [test "x$build_bsd" = "xyes"])
 
 AM_CONDITIONAL([BUILD_XCB], [test "x$build_x11" = "xyes"])