Skip to content

Commit

Permalink
Added platform check to configure
Browse files Browse the repository at this point in the history
  • Loading branch information
boothj5 committed Jul 6, 2015
1 parent cd81c87 commit 68df7ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configure.ac
Expand Up @@ -11,6 +11,15 @@ LT_INIT
### Checks for programs.
AC_PROG_CC

### Get canonical host
AC_CANONICAL_HOST
PLATFORM="unknown"
AS_CASE([$host_os],
[freebsd*], [PLATFORM="freebsd" AC_DEFINE([PLATFORM_FREEBSD], [1], [FreeBSD])],
[darwin*], [PLATFORM="osx" AC_DEFINE([PLATFORM_OSX], [1], [OSx])],
[cygwin], [PLATFORM="cygwin" AC_DEFINE([PLATFORM_CYGWIN], [1], [Cygwin])],
[PLATFORM="nix" AC_DEFINE([PLATFORM_NIX], [1], [Nix])])

PKG_CHECK_MODULES([glib], [glib-2.0 >= 2.26], [],
[AC_MSG_ERROR([glib 2.26 or higher is required])])

Expand Down

0 comments on commit 68df7ed

Please sign in to comment.