Mercurial > minori
view dep/animia/configure.ac @ 254:d14f8e0e40c3
[UNFINISHED] *: update anime button
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 07 Feb 2024 07:57:37 -0500 |
parents | 4d461ef7d424 |
children |
line wrap: on
line source
AC_INIT([animia], [0.1.0-alpha.1]) AC_CANONICAL_HOST AC_CONFIG_SRCDIR([src/animia.cc]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_MACRO_DIRS([m4]) AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects]) # Do we have a C++17 compiler AC_PROG_CXX AM_PROG_AR LT_INIT build_win32=no build_osx=no build_linux=no build_libutil=no build_kvm=no build_x11=no build_wayland=no case "${host_os}" in cygwin*|mingw*) # Windows build_windows=yes AC_CHECK_TOOL([WINDRES], [windres]) AC_SUBST(WINDRES) AC_DEFINE([WIN32]) ;; darwin*) # Mac OS X build_osx=yes AC_DEFINE([MACOSX]) ;; linux*) build_linux=yes AC_DEFINE([LINUX]) ;; *) # FreeBSD AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no]) if test "x$build_libutil" = "xyes"; then AC_DEFINE([LIBUTIL]) else # OpenBSD AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no]) if test "x$build_kvm" = "xyes"; then AC_DEFINE([LIBKVM]) fi fi ;; esac 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 AC_DEFINE([X11]) fi PKG_CHECK_MODULES(WAYLAND, [wayland-client], [build_wayland=yes], [build_wayland=no]) if test "x$build_wayland" = "xyes"; then AC_DEFINE([WAYLAND]) fi fi 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_XCB], [test "x$build_x11" = "xyes"]) AM_CONDITIONAL([BUILD_WAYLAND], [test "x$build_wayland" = "xyes"]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT