From 99bd7dc2d2a4e1c35b09c148bd3afb433ef32460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 4 Oct 2022 17:00:52 +0800 Subject: Template that compiles --- configure.ac | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 configure.ac (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..9855fdf --- /dev/null +++ b/configure.ac @@ -0,0 +1,21 @@ +AC_INIT([midtrans], [0.0], [prabowo@darapsa.org]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AC_PROG_CC +AM_PROG_AR +LT_INIT +PKG_CHECK_MODULES([JSON], [json-c]) +AC_CANONICAL_HOST +case $host in + *arm*apple-darwin1* ) ios=true;; + *) ios=false;; +esac +AM_CONDITIONAL([IOS], [test "x$ios" = xtrue]) +case $host_cpu in + *wasm* ) wasm=true;; + *) wasm=false;; +esac +AM_CONDITIONAL([WASM], [test "x$wasm" = xtrue]) +AS_IF([test "x$wasm" != xtrue], + [PKG_CHECK_MODULES([CURL], [libcurl])]) +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT -- cgit v1.2.3