[Botan-devel] Trouble running configure on cygwin

Jack Lloyd lloyd at randombit.net
Fri Feb 18 08:32:29 EST 2011


On Thu, Feb 17, 2011 at 05:04:41PM -0800, William K. Foster wrote:
> Hello,
> 
> I am trying to build Botan v1.8.11 on Windows XP using Cygwin.
> 
> The configure fails with the message:
> 
>   Unknown OS "cygwin_nt-5.1"; available options: aix beos cygwin darwin
> dragonfly freebsd hpux irix linux mingw netbsd openbsd qnx solaris tru64
> windows
> 
> Where does the 'cygwin_nt-5.1' come from and how do I correct it to just be
> 'cygwin'?

Hi William,

The cygwin_nt-5.1 comes from what Python's platform module
reports the system to be.

You can override the guess by passing --os=cygwin to configure.py

The following patch should also fix it; it will be included in
the next release (if you could test and confirm it fixes the
problem, that it would be appreciated):

--- configure.py        646ee5cb324b79ecddbb270259b4ced7f05fc35c
+++ configure.py        3cd55f8893b71cd6e869233f62e5c09129de243a
@@ -1059,6 +1059,10 @@ def main(argv = None):
     if options.os == "java":
         raise Exception("Jython detected: need --os and --cpu to set target")

+    if re.match('^cygwin_.*', options.os):
+        logging.debug("Converting '%s' to 'cygwin'", options.os)
+        options.os = 'cygwin'
+
     options.base_dir = os.path.dirname(argv[0])
     options.src_dir = os.path.join(options.base_dir, 'src')


Thanks,
  Jack



More information about the botan-devel mailing list