diff options
author | Corinna Vinschen <github@cygwin.de> | 2015-03-03 16:37:23 +0100 |
---|---|---|
committer | Corinna Vinschen <github@cygwin.de> | 2015-03-03 16:37:23 +0100 |
commit | 98902539a4eb64d2ee065e6f3d0cadb022cc60a6 (patch) | |
tree | 7e1a2b4c0652ae2e7a292cb5f02143acdbbcba45 | |
parent | d193b171b60008868a5dea02073cfa2305b6d01f (diff) | |
download | portable-98902539a4eb64d2ee065e6f3d0cadb022cc60a6.tar.gz portable-98902539a4eb64d2ee065e6f3d0cadb022cc60a6.tar.bz2 portable-98902539a4eb64d2ee065e6f3d0cadb022cc60a6.zip |
Add preliminary Cygwin support
Signed-off-by: Corinna Vinschen <github@cygwin.de>
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 24eb24f..982fb82 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -13,6 +13,9 @@ AC_SUBST([USER_CFLAGS], "-O2 $CFLAGS") | |||
13 | CFLAGS="$CFLAGS -Wall -std=gnu99 -g" | 13 | CFLAGS="$CFLAGS -Wall -std=gnu99 -g" |
14 | 14 | ||
15 | case $host_os in | 15 | case $host_os in |
16 | *cygwin*) | ||
17 | HOST_OS=cygwin | ||
18 | ;; | ||
16 | *darwin*) | 19 | *darwin*) |
17 | HOST_OS=darwin | 20 | HOST_OS=darwin |
18 | HOST_ABI=macosx | 21 | HOST_ABI=macosx |
@@ -53,6 +56,7 @@ case $host_os in | |||
53 | *) ;; | 56 | *) ;; |
54 | esac | 57 | esac |
55 | 58 | ||
59 | AM_CONDITIONAL([HOST_CYGWIN], [test x$HOST_OS = xcygwin]) | ||
56 | AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) | 60 | AM_CONDITIONAL([HOST_DARWIN], [test x$HOST_OS = xdarwin]) |
57 | AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) | 61 | AM_CONDITIONAL([HOST_FREEBSD], [test x$HOST_OS = xfreebsd]) |
58 | AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) | 62 | AM_CONDITIONAL([HOST_HPUX], [test x$HOST_OS = xhpux]) |
@@ -163,7 +167,7 @@ AS_IF([test "x$enable_hardening" = "xyes"], [ | |||
163 | AC_MSG_WARN([compiler does not appear to support stack protection]) | 167 | AC_MSG_WARN([compiler does not appear to support stack protection]) |
164 | ) | 168 | ) |
165 | ) | 169 | ) |
166 | AS_IF([test "x$HOST_OS" = "xwin"], [ | 170 | AS_IF([test "x$HOST_OS" = "xwin" -o "x$HOST_OS" = "xcygwin"], [ |
167 | AC_SEARCH_LIBS([__stack_chk_guard],[ssp]) | 171 | AC_SEARCH_LIBS([__stack_chk_guard],[ssp]) |
168 | ]) | 172 | ]) |
169 | ]) | 173 | ]) |