diff options
| author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-08 16:41:13 +0800 |
|---|---|---|
| committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2021-06-08 16:41:13 +0800 |
| commit | 5468ab4083f711b7dc37440826aa3eeda45719e3 (patch) | |
| tree | e1edad40021889b95bd5b61f385e4d23c6d0c555 /configure.ac | |
| parent | 37b3483ea690318b9dfcbc840bfc8dd0d959b642 (diff) | |
Generalise autotools files
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7317c8c..66826d2 100644 --- a/configure.ac +++ b/configure.ac @@ -1,8 +1,9 @@ AC_INIT([icclient], [0.0], [pt@darapsa.co.id]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_PROG_CC -AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_FILES([Makefile]) +PKG_CHECK_MODULES([CURL], [libcurl]) AC_CHECK_HEADER_STDBOOL AC_C_INLINE AC_FUNC_MALLOC @@ -11,4 +12,15 @@ AC_TYPE_SIZE_T AC_TYPE_SSIZE_T AM_PROG_AR LT_INIT +AC_CANONICAL_HOST +case $host_cpu in + *wasm* ) wasm=true;; + *) wasm=false;; +esac +AM_CONDITIONAL([WASM], [test x$wasm = xtrue]) +case $host in + *arm*apple-darwin1* ) ios=true;; + *) ios=false;; +esac +AM_CONDITIONAL([IOS], [test x$ios = xtrue]) AC_OUTPUT |