1

I would like to build PolarSSL using

./configure --host=i686-w64-mingw32

but there is no configure script. I have read about creating one using Autoconf, but I did not have luck with it. To clarify, --host has been working for me because it sets everything for you, e.g.

i686-w64-mingw32-gcc
i686-w64-mingw32-cc
i686-w64-mingw32-ar
i686-w64-mingw32-ranlib

without having to explicitly set all of these.

Daniel Roethlisberger
  • 6,958
  • 2
  • 41
  • 59
Zombo
  • 1
  • 62
  • 391
  • 407

1 Answers1

2

Looking at the PolarSSL tarball, it seems you are out of luck. PolarSSL's build system is CMake, and it would take much more effort to convert that to an Autotools build system than it would be to just explicitly set your cross-compiling tools. Here is information on cross-compiling from the CMake wiki.

PS. If you ever do use Autoconf, that page you linked to is out of date.

ptomato
  • 56,175
  • 13
  • 112
  • 165
  • Sure! There are some at [this question](http://stackoverflow.com/questions/3208168/how-to-learn-the-joy-of-autotools) and there's a short section on Autotools in a tutorial I've written myself on GTK programming: http://ptomato.github.com/advanced-gtk-techniques/html/real-life-app-setup.html – ptomato May 12 '12 at 16:19
  • John Calcote's book, that @ptomato mentions, is terrific. After the years of arcane, piecemeal, learning, I wish I'd had it before trying to read the autotools manuals! If it was up to date with the latest releases, I'd really like to see it commissioned by O'Reilly's. – Brett Hale May 12 '12 at 16:46
  • @BrettHale, that's my favorite too. It's already been published in book form though, by No Starch Press -- which has apparently been bought by O'Reilly? In any case you can order it from them: http://shop.oreilly.com/product/9781593272067.do – ptomato May 14 '12 at 08:59