1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 01:20:37 +00:00

Add basic system detection

This commit is contained in:
Alexandre Moine 2015-08-10 13:27:17 +02:00
parent 91eb928c29
commit 7135a0ce4f

View File

@ -38,5 +38,23 @@ AC_TYPE_SIZE_T
# Checks for library functions. # Checks for library functions.
AC_CHECK_FUNCS([memset sqrt strstr]) 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_CONFIG_FILES([Makefile])
AC_OUTPUT AC_OUTPUT