Mercurial > minori
comparison configure.ac @ 237:a7d0d543b334
*: make OS X builds succeed
new script: deploy_build.sh, creates the app bundle
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Fri, 19 Jan 2024 11:14:44 -0500 |
parents | 4d461ef7d424 |
children | cae61340cc86 |
comparison
equal
deleted
inserted
replaced
236:4d461ef7d424 | 237:a7d0d543b334 |
---|---|
1 AC_INIT([minori], [0.1.0-alpha.1]) | 1 AC_INIT([minori], [0.1.0-alpha.1]) |
2 | 2 |
3 AC_CANONICAL_HOST | 3 AC_CANONICAL_HOST |
4 | 4 |
5 AC_CONFIG_SUBDIRS([dep/pugixml dep/animia dep/anitomy]) | |
5 AC_CONFIG_SRCDIR([src/main.cc]) | 6 AC_CONFIG_SRCDIR([src/main.cc]) |
6 AC_CONFIG_AUX_DIR([build-aux]) | 7 AC_CONFIG_AUX_DIR([build-aux]) |
7 AC_CONFIG_MACRO_DIRS([m4]) | 8 AC_CONFIG_MACRO_DIRS([m4]) |
8 | 9 |
9 AM_INIT_AUTOMAKE([-Wall -Wportability foreign subdir-objects]) | 10 AM_INIT_AUTOMAKE([-Wall -Wportability foreign subdir-objects]) |
10 | 11 |
11 # Do we have a C++17 compiler | 12 # Do we have a C++17 compiler |
13 : ${CXXFLAGS=""} | |
12 AC_PROG_CXX | 14 AC_PROG_CXX |
13 AX_CXX_COMPILE_STDCXX(17, noext, mandatory) | 15 AX_CXX_COMPILE_STDCXX([17], [noext], [mandatory]) |
14 | 16 |
17 # Init libtool | |
15 AM_PROG_AR | 18 AM_PROG_AR |
16 LT_INIT | 19 LT_INIT |
17 | 20 |
18 # Qt? | 21 # Qt? |
19 AX_HAVE_QT | 22 AX_HAVE_QT |
24 | 27 |
25 # need this for moc | 28 # need this for moc |
26 AC_PROG_MKDIR_P | 29 AC_PROG_MKDIR_P |
27 | 30 |
28 # libcurl? | 31 # libcurl? |
29 LIBCURL_CHECK_CONFIG(yes, 7.7.2, [have_libcurl=yes], [have_libcurl=no]) | 32 LIBCURL_CHECK_CONFIG([yes], [7.7.2], [have_libcurl=yes], [have_libcurl=no]) |
30 | 33 |
31 if test "x$have_libcurl" = "xno"; then | 34 if test "x$have_libcurl" = "xno"; then |
32 AC_MSG_ERROR([*** libcurl not found.]) | 35 AC_MSG_ERROR([*** libcurl not found.]) |
33 fi | 36 fi |
34 | 37 |
54 AC_DEFINE(LINUX) | 57 AC_DEFINE(LINUX) |
55 fi | 58 fi |
56 # Everything else | 59 # Everything else |
57 AC_SUBST([GIO_CFLAGS]) | 60 AC_SUBST([GIO_CFLAGS]) |
58 AC_SUBST([GIO_LIBS]) | 61 AC_SUBST([GIO_LIBS]) |
59 PKG_CHECK_MODULES(GIO, gio-2.0, [build_glib=yes], []) | 62 PKG_CHECK_MODULES([GIO], [gio-2.0], [build_glib=yes], []) |
60 ;; | 63 ;; |
61 esac | 64 esac |
62 | 65 |
63 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) | 66 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) |
64 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) | 67 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) |
65 AM_CONDITIONAL([BUILD_GLIB], [test "x$build_glib" = "xyes"]) | 68 AM_CONDITIONAL([BUILD_GLIB], [test "x$build_glib" = "xyes"]) |
66 AM_CONDITIONAL([BUILD_WINDRES], [test "x$WINDRES" != "x"]) | 69 AM_CONDITIONAL([BUILD_WINDRES], [test "x$WINDRES" != "x"]) |
67 | 70 |
68 AC_CONFIG_SUBDIRS([dep/pugixml dep/animia dep/anitomy]) | |
69 | |
70 AC_CONFIG_FILES([Makefile]) | 71 AC_CONFIG_FILES([Makefile]) |
71 AC_OUTPUT | 72 AC_OUTPUT |