about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-25 04:25:22 +0000
committerJames Booth <boothj5@gmail.com>2012-11-25 04:25:22 +0000
commitf6ca1ba15eca8cb904864947195f47dea1994215 (patch)
tree7079e2ded11bea3979f036027b7f434080c97f3c
parenta27ed4cf442c74f4d0655e6ac7a5afc2444b0538 (diff)
downloadprofani-tty-f6ca1ba15eca8cb904864947195f47dea1994215.tar.gz
Added cygwin check to configure.ac
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index b7774c13..f6ff55ad 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,12 @@ AM_INIT_AUTOMAKE([foreign subdir-objects])
 # Checks for programs.
 AC_PROG_CC
 
+# get canonical host
+AC_CANONICAL_HOST
+if test "$host_os" == "cygwin"; then
+    AC_DEFINE([PLATFORM_CYGWIN], [1], [Cygwin])
+fi
+
 # Options
 AC_ARG_WITH([libxml2],
     [AS_HELP_STRING([--with-libxml2], [link with libxml2 instead of expat])])