comparison dep/animone/configure.ac @ 258:862d0d8619f6

*: HUUUGE changes animia has been renamed to animone, so instead of thinking of a health condition, you think of a beautiful flower :) I've also edited some of the code for animone, but I have no idea if it even works or not because I don't have a mac or windows machine lying around. whoops! ... anyway, all of the changes divergent from Anisthesia are now licensed under BSD. it's possible that I could even rewrite most of the code to where I don't even have to keep the MIT license, but that's thinking too far into the future I've been slacking off on implementing the anime seasons page, mostly out of laziness. I think I'd have to create another db file specifically for the seasons anyway, this code is being pushed *primarily* because the hard drive it's on is failing! yay :)
author Paper <paper@paper.us.eu.org>
date Mon, 01 Apr 2024 02:43:44 -0400
parents
children 1a6a5d3a94cd
comparison
equal deleted inserted replaced
257:699a20c57dc8 258:862d0d8619f6
1 AC_INIT([animone], [0.1.0-alpha.1])
2
3 AC_CANONICAL_HOST
4
5 AC_CONFIG_SRCDIR([src/animone.cc])
6 AC_CONFIG_AUX_DIR([build-aux])
7 AC_CONFIG_MACRO_DIRS([m4])
8
9 AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects])
10
11 # Do we have a C++17 compiler
12 AC_PROG_CXX
13
14 AM_PROG_AR
15 LT_INIT
16
17 build_win32=no
18 build_osx=no
19 build_linux=no
20 build_libutil=no
21 build_kvm=no
22
23 build_x11=no
24
25 case "${host_os}" in
26 cygwin*|mingw*)
27 # Windows
28 build_windows=yes
29 AC_CHECK_TOOL([WINDRES], [windres])
30 AC_SUBST(WINDRES)
31 AC_DEFINE([WIN32])
32 ;;
33 darwin*)
34 # Mac OS X
35 build_osx=yes
36 AC_DEFINE([MACOSX])
37 ;;
38 linux*)
39 build_linux=yes
40 AC_DEFINE([LINUX])
41 ;;
42 *)
43 # FreeBSD
44 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no])
45 if test "x$build_libutil" = "xyes"; then
46 AC_DEFINE([LIBUTIL])
47 else
48 # OpenBSD
49 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no])
50 if test "x$build_kvm" = "xyes"; then
51 AC_DEFINE([LIBKVM])
52 fi
53 fi
54 ;;
55 esac
56
57 if test "x$build_osx" = "xno" && test "x$build_windows" = "xno"; then
58 PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no])
59 if test "x$build_x11" = "xyes"; then
60 AC_DEFINE([X11])
61 AC_SUBST([XCB_LIBS])
62 AC_SUBST([XCB_CFLAGS])
63 fi
64 fi
65
66 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"])
67 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"])
68 AM_CONDITIONAL([BUILD_LINUX], [test "x$build_linux" = "xyes"])
69 AM_CONDITIONAL([BUILD_LIBUTIL], [test "x$build_libutil" = "xyes"])
70 AM_CONDITIONAL([BUILD_LIBKVM], [test "x$build_kvm" = "xyes"])
71
72 AM_CONDITIONAL([BUILD_XCB], [test "x$build_x11" = "xyes"])
73
74 AC_CONFIG_FILES([Makefile])
75 AC_OUTPUT