Hi All!

I'm using autoconf-2.53 to configure a Makefile that builds a library.
The makefile will work for both Linux and Windows environments.

Now, I've experimented with cross-compiling on the Linux system to build 
the library for the Windows target. Interesting enough it was (almost) as 
simple as adding CC=cl on the command line. (CL is run through wine)

The problem I encounter is that autoconf does not realise that building 
under Linux with the M$ cl compiler is actually a cross-compiler setup.
It also fails to canonicalize host settings when using this compiler.

I would need the information to properly case for the different LDFLAGS, 
et. al.
Has anybody encountered (or solved) this problem?

Another question:
Is there any best-practice for setting up #ifdef-s for architecture _and_ 
compiler.
In my source I'll target Linux on i386 with gcc, Solaris on SPARC with gcc 
or cc, Windows on i386 with gcc or cl (& eventually bcc32)

What's the easiest and most comfortable way to set up the proper defines.
(Seen in combination with the cross-compilation problem above)

Thanks in advance,

Keve


Reply via email to