Mercurial > minori
annotate dep/animone/configure.ac @ 342:adb79bdde329
dep/animone: fix tons of issues
for example, the window ID stuff was just... completely wrong. since we're
supporting multiple different window systems, it *has* to be a union rather
than just a single integer type. HWND is also not a DWORD, it's a pointer(!),
so now it's stored as a std::uintptr_t.
(this probably breaks things)
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Thu, 20 Jun 2024 03:03:05 -0400 |
| parents | f63dfa309380 |
| children |
| rev | line source |
|---|---|
|
342
adb79bdde329
dep/animone: fix tons of issues
Paper <paper@paper.us.eu.org>
parents:
338
diff
changeset
|
1 AC_INIT([animone], [0.2.0]) |
| 258 | 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 | |
|
342
adb79bdde329
dep/animone: fix tons of issues
Paper <paper@paper.us.eu.org>
parents:
338
diff
changeset
|
15 LT_INIT([win32-dll]) |
| 258 | 16 |
| 17 build_win32=no | |
| 18 build_osx=no | |
| 19 build_linux=no | |
| 20 build_libutil=no | |
| 21 build_kvm=no | |
|
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
22 build_bsd=no |
| 258 | 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) | |
|
337
a7d4e5107531
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
310
diff
changeset
|
32 AC_DEFINE([USE_WIN32]) |
| 258 | 33 ;; |
| 34 darwin*) | |
| 35 # Mac OS X | |
| 36 build_osx=yes | |
|
337
a7d4e5107531
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
310
diff
changeset
|
37 AC_DEFINE([USE_MACOSX]) |
| 258 | 38 ;; |
| 39 linux*) | |
| 40 build_linux=yes | |
|
337
a7d4e5107531
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
310
diff
changeset
|
41 AC_DEFINE([USE_LINUX]) |
| 258 | 42 ;; |
| 43 *) | |
|
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
44 dnl BSDs |
|
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
337
diff
changeset
|
45 saved_LIBS="$LIBS" |
| 258 | 46 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no]) |
|
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
47 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no]) |
|
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
337
diff
changeset
|
48 LIBS="$saved_LIBS" |
|
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
49 |
|
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
50 if test "x$build_kvm" = "xyes"; then |
|
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
337
diff
changeset
|
51 AC_DEFINE([USE_OPENBSD]) |
|
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
52 elif test "x$build_libutil" = "xyes"; then |
|
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
337
diff
changeset
|
53 AC_DEFINE([USE_FREEBSD]) |
| 258 | 54 fi |
| 55 ;; | |
| 56 esac | |
| 57 | |
|
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
337
diff
changeset
|
58 dnl todo: configure flag for this |
|
266
1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
59 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then |
| 258 | 60 PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no]) |
| 61 if test "x$build_x11" = "xyes"; then | |
|
337
a7d4e5107531
dep/animone: REFACTOR ALL THE THINGS
Paper <paper@paper.us.eu.org>
parents:
310
diff
changeset
|
62 AC_DEFINE([USE_X11]) |
| 258 | 63 AC_SUBST([XCB_LIBS]) |
| 64 AC_SUBST([XCB_CFLAGS]) | |
| 65 fi | |
| 66 fi | |
| 67 | |
| 68 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) | |
| 69 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) | |
| 70 AM_CONDITIONAL([BUILD_LINUX], [test "x$build_linux" = "xyes"]) | |
|
338
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
337
diff
changeset
|
71 AM_CONDITIONAL([BUILD_FREEBSD], [test "x$build_libutil" = "xyes"]) |
|
f63dfa309380
dep/animone: separate *BSD into separate files
Paper <paper@paper.us.eu.org>
parents:
337
diff
changeset
|
72 AM_CONDITIONAL([BUILD_OPENBSD], [test "x$build_kvm" = "xyes"]) |
| 258 | 73 |
| 74 AM_CONDITIONAL([BUILD_XCB], [test "x$build_x11" = "xyes"]) | |
| 75 | |
| 76 AC_CONFIG_FILES([Makefile]) | |
| 77 AC_OUTPUT |
