Mercurial > libanimone
annotate configure.ac @ 21:973734ebd2be
dep/animone: REFACTOR ALL THE THINGS
1: animone now has its own syntax divergent from anisthesia,
making different platforms actually have their own sections
2: process names in animone are now called `comm' (this will
probably break things). this is what its called in bsd/linux
so I'm just going to use it everywhere
3: the X11 code now checks for the existence of a UTF-8 window title
and passes it if available
4: ANYTHING THATS NOT LINUX IS 100% UNTESTED AND CAN AND WILL BREAK!
I still actually need to test the bsd code. to be honest I'm probably
going to move all of the bsds into separate files because they're
all essentially different operating systems at this point
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 19 Jun 2024 12:51:15 -0400 |
parents | 6596be6917a1 |
children | bc22d57076e3 |
rev | line source |
---|---|
21
973734ebd2be
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
19
diff
changeset
|
1 AC_INIT([animone], [2.0.0]) |
0 | 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 | |
2
97ea6a3e1954
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
22 build_bsd=no |
0 | 23 |
24 build_x11=no | |
25 | |
26 case "${host_os}" in | |
27 cygwin*|mingw*) | |
28 # Windows | |
29 build_windows=yes | |
30 AC_CHECK_TOOL([WINDRES], [windres]) | |
31 AC_SUBST(WINDRES) | |
21
973734ebd2be
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
19
diff
changeset
|
32 AC_DEFINE([USE_WIN32]) |
0 | 33 ;; |
34 darwin*) | |
35 # Mac OS X | |
36 build_osx=yes | |
21
973734ebd2be
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
19
diff
changeset
|
37 AC_DEFINE([USE_MACOSX]) |
0 | 38 ;; |
39 linux*) | |
40 build_linux=yes | |
21
973734ebd2be
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
19
diff
changeset
|
41 AC_DEFINE([USE_LINUX]) |
0 | 42 ;; |
43 *) | |
2
97ea6a3e1954
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
44 dnl BSDs |
0 | 45 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no]) |
2
97ea6a3e1954
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
46 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no]) |
97ea6a3e1954
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
47 |
97ea6a3e1954
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
48 if test "x$build_kvm" = "xyes"; then |
21
973734ebd2be
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
19
diff
changeset
|
49 AC_DEFINE([USE_LIBKVM]) |
6
f26b08274dcf
dep/animone: filter open files by access mode
Paper <paper@paper.us.eu.org>
parents:
2
diff
changeset
|
50 AC_DEFINE([BSD]) |
2
97ea6a3e1954
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
51 elif test "x$build_libutil" = "xyes"; then |
21
973734ebd2be
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
19
diff
changeset
|
52 AC_DEFINE([USE_LIBUTIL]) |
6
f26b08274dcf
dep/animone: filter open files by access mode
Paper <paper@paper.us.eu.org>
parents:
2
diff
changeset
|
53 AC_DEFINE([BSD]) |
0 | 54 fi |
55 ;; | |
56 esac | |
57 | |
2
97ea6a3e1954
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
58 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then |
0 | 59 PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no]) |
60 if test "x$build_x11" = "xyes"; then | |
21
973734ebd2be
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
19
diff
changeset
|
61 AC_DEFINE([USE_X11]) |
0 | 62 AC_SUBST([XCB_LIBS]) |
63 AC_SUBST([XCB_CFLAGS]) | |
64 fi | |
65 fi | |
66 | |
67 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) | |
68 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) | |
69 AM_CONDITIONAL([BUILD_LINUX], [test "x$build_linux" = "xyes"]) | |
70 AM_CONDITIONAL([BUILD_LIBUTIL], [test "x$build_libutil" = "xyes"]) | |
71 AM_CONDITIONAL([BUILD_LIBKVM], [test "x$build_kvm" = "xyes"]) | |
2
97ea6a3e1954
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
0
diff
changeset
|
72 AM_CONDITIONAL([BUILD_BSD], [test "x$build_bsd" = "xyes"]) |
0 | 73 |
74 AM_CONDITIONAL([BUILD_XCB], [test "x$build_x11" = "xyes"]) | |
75 | |
76 AC_CONFIG_FILES([Makefile]) | |
77 AC_OUTPUT |