commit: 565fbc870173f335bbc50f32ac7f67e5b36c2bd7
Author: Michael Haubenwallner <michael.haubenwallner <AT> ssi-schaefer
<DOT> com>
AuthorDate: Mon May 9 15:29:10 2016 +0000
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org>
CommitDate: Mon May 9 15:29:10 2016 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=565fbc87
openssl gentoo.config-1.0.2: add Cygwin detection
dev-libs/openssl/files/gentoo.config-1.0.2 | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dev-libs/openssl/files/gentoo.config-1.0.2
b/dev-libs/openssl/files/gentoo.config-1.0.2
index b3f6ced..aea716d 100755
--- a/dev-libs/openssl/files/gentoo.config-1.0.2
+++ b/dev-libs/openssl/files/gentoo.config-1.0.2
@@ -34,6 +34,8 @@ if [[ $1 == "test" ]] ; then
"i386-apple-darwinX |darwin-i386-cc" \
"powerpc-apple-darwinX |darwin-ppc-cc" \
"i586-pc-winnt |winnt-parity" \
+ "i586-pc-cygwin2.0 |Cygwin" \
+ "x86_64-pc-cygwin |Cygwin-x86_64" \
"s390-ibm-linux-gnu |linux-generic32 -DB_ENDIAN" \
"s390x-linux-gnu |linux64-s390x" \
;do
@@ -57,6 +59,7 @@ fi
# Detect the operating system
case ${CHOST} in
*-aix*) system="aix";;
+ *-cygwin*) system="Cygwin";;
*-darwin*) system="darwin";;
*-freebsd*) system="BSD";;
*-hpux*) system="hpux";;
@@ -130,6 +133,12 @@ BSD)
aix)
machine=${compiler}
;;
+Cygwin)
+ case ${chost_machine} in
+ x86_64) machine=x86_64 ;;
+ *) echo ${system} ;; # Cygwin-x86 is 'Cygwin' only
+ esac
+ ;;
darwin)
case ${chost_machine} in
powerpc64) machine=ppc-cc; system=${system}64;;