From 7135a0ce4f2edc18613b27016070a3c6e7c0b162 Mon Sep 17 00:00:00 2001 From: Alexandre Moine Date: Mon, 10 Aug 2015 13:27:17 +0200 Subject: [PATCH] Add basic system detection --- configure.ac | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/configure.ac b/configure.ac index d65f647c..7c7cce00 100644 --- a/configure.ac +++ b/configure.ac @@ -38,5 +38,23 @@ AC_TYPE_SIZE_T # Checks for library functions. AC_CHECK_FUNCS([memset sqrt strstr]) +############################# +# Platform specific setup +############################# +AC_CANONICAL_HOST +# Check for which host we are on and setup a few things +# specifically based on the host +case $host_os in + darwin* ) + SYSTEM=DARWIN + ;; + linux*) + SYSTEM=LINUX + ;; + *mingw*) + SYSTEM=MINGW + ;; +esac + AC_CONFIG_FILES([Makefile]) AC_OUTPUT