mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-07 19:02:23 +00:00
Add basic system detection
This commit is contained in:
18
configure.ac
18
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
|
||||
|
Reference in New Issue
Block a user