aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..32f560f
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,34 @@
+AC_INIT([nimisewi], [0.1.0], [aaoth@aaoth.xyz])
+AC_COPYRIGHT([Copyright (c) 2021, la-ninpre])
+AC_CONFIG_AUX_DIR([autotools])
+AM_INIT_AUTOMAKE
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_FILES([Makefile])
+AC_CANONICAL_HOST
+
+# Checks for programs.
+AC_PROG_CC
+
+# Checks for libraries.
+case "$host_os" in
+ linux*)
+ AC_CHECK_HEADERS([bsd/string.h])
+ AC_CHECK_FUNCS([strlcat])
+ ;;
+ *bsd*|dragonfly*)
+ AC_CHECK_FUNCS([strlcat pledge])
+ ;;
+esac
+
+# Checks for header files.
+AC_CHECK_HEADERS([sys/time.h unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_TYPE_PID_T
+AC_TYPE_SIZE_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_CHECK_FUNCS([gettimeofday])
+
+AC_OUTPUT