Re: conditionally linking to mingw32 library

2005-06-03 Thread Mark Brand
Alexandre Duret-Lutz wrote: >>>>"Mark" == Mark Brand <[EMAIL PROTECTED]> writes: >>>> > >[...] > > Mark> > Mark> if test x$target_os == xmingw32; then > Mark> WINSOCK=-lws2_32 > Mark> fi > Mark> AC_SUBST(WINS

Re: conditionally linking to mingw32 library

2005-06-03 Thread Mark Brand
>>>>"Mark" == Mark Brand <[EMAIL PROTECTED]> writes: >>>> > >[...] > > Mark> > Mark> if test x$target_os == xmingw32; then > Mark> WINSOCK=-lws2_32 > Mark> fi > Mark> AC_SUBST(WINSOCK) > Mark> > >

Re: conditionally linking to mingw32 library

2005-06-01 Thread Mark Brand
>>to my situation, but I'm getting stuck. I have: >> >> >> if test x$target_os == xmingw32; then >> > >Don't use the test operator `==' , it's unportable and completely >superfluous, as `=' does string comparison just fine. > > >>WINSOCK=-lws2_32 >> fi >> AC_SUBST(WINSOCK) >> >> >> >> my

conditionally linking to mingw32 library

2005-06-01 Thread Mark Brand
I'm not very experienced with the GNU build tools, but I've managed to get a couple simple autoconf/automake configurations to work. My goal now is to build for Linux or Mingw32 starting with the same configure.ac and Makefile.am files. My generate/configure/make steps are: autoheader touc