diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2011-09-28 12:10:49 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2011-09-28 12:10:49 +0000 |
commit | ef8be7fbc50f902c4f19ea0864d03c0c16904f97 (patch) | |
tree | 9babe4f277d54a561139ff4279655188874d87bb /m4/iem_operatingsystem.m4 | |
parent | f2a92ff4c6df9404478186f48c9e972d08f53932 (diff) |
m4 marcros
svn path=/trunk/externals/zexy/; revision=15370
Diffstat (limited to 'm4/iem_operatingsystem.m4')
-rw-r--r-- | m4/iem_operatingsystem.m4 | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/m4/iem_operatingsystem.m4 b/m4/iem_operatingsystem.m4 new file mode 100644 index 0000000..87726e1 --- /dev/null +++ b/m4/iem_operatingsystem.m4 @@ -0,0 +1,55 @@ +dnl try to figure out the target operating system and set some AM-macros accordingly +dnl +dnl Copyright (C) 2011 IOhannes m zmölnig + + +AC_DEFUN([IEM_OPERATING_SYSTEM], +[ +AC_CANONICAL_HOST + +LINUX=no +ANDROID=no +MACOSX=no +IPHONEOS=no +BSD=no +WINDOWS=no +MINGW=no +CYGWIN=no +HURD=no +IRIX=no + +case $host_os in +*linux*) + LINUX=yes + ;; +*darwin*) + MACOSX=yes + ;; +GNU/kFreeBSD) + BSD=yes + ;; +*mingw*) + WINDOWS=yes + MINGW=yes + ;; +*cygwin*) + WINDOWS=yes + CYGWIN=yes + ;; +GNU) + HURD=yes + ;; +esac + + +AM_CONDITIONAL(LINUX, test x$LINUX = xyes) +AM_CONDITIONAL(ANDROID, test x$ANDROID = xyes) +AM_CONDITIONAL(MACOSX, test x$MACOSX = xyes) +AM_CONDITIONAL(IPHONEOS, test x$IPHONEOS = xyes) +AM_CONDITIONAL(BSD, test x$BSD = xyes) +AM_CONDITIONAL(WINDOWS, test x$WINDOWS = xyes) +AM_CONDITIONAL(CYGWIN, test x$MINGW = xyes) +AM_CONDITIONAL(MINGW, test x$MINGW = xyes) +AM_CONDITIONAL(HURD, test x$HURD = xyes) +AM_CONDITIONAL(IRIX, test x$IRIX = xyes) +]) dnl IEM_OPERATING_SYSTEM |