Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:3996] Re: Csound5 - Cygwin

Date2004-01-24 04:00
From"Michael Gogins"
Subject[CSOUND-DEV:3996] Re: Csound5 - Cygwin
I see that you don't actually do this test in your configure.ac - you just
go ahead and assume you will link with winmm on Windows/Cygwin (which is
eminently reasonable).

 Wouldn't it be reasonable to assume that if the header is present, so is
the
corresponding library? We're not Apache or Sendmail here, we're a few dozen
or a few hundred people.

> ----- Original Message ----- 
> From: "John D. Ramsdell" 
> To: "Csound Developers Discussion List" 
> Sent: Friday, January 23, 2004 2:28 PM
> Subject: [CSOUND-DEV:3994] Re: Csound5 - Cygwin
>
>
> > "Michael Gogins"  writes:
> >
> > > I found that AC_CHECK_LIB does not seem to work very well for
> > > portaudio or winmm, both of which are required on Cygwin.
> >
> > The problem you have with winmm might be the one I ran into.  The way
> > I debugged the problem was to capture the C code used to generate the
> > test.  I bet you will find that by adding
> >
> > #include 
> >
> > the test will do the right thing.  This include file seems to know how
> > to demangle extern'ed C++ identifiers so that C programs correctly
> > link to library routine exported by winmm.
> >
> > John
> >
>

Date2004-01-24 20:48
Fromramsdell@mitre.org (John D. Ramsdell)
Subject[CSOUND-DEV:4002] Re: Csound5 - Cygwin
"Michael Gogins"  writes:

> I see that you don't actually do this test in your configure.ac -
> you just go ahead and assume you will link with winmm on
> Windows/Cygwin (which is eminently reasonable).
> 
>  Wouldn't it be reasonable to assume that if the header is present,
> so is the corresponding library? We're not Apache or Sendmail here,
> we're a few dozen or a few hundred people.

Michael,

Your solution does seem to be better than my current one.  At one
point, I am planning to write a proper test, one that uses a C program
specially written for this problem.  The autoconf documentation tells
how to do this, but I just haven't gotten around to following the
instructions.  I'd really would like to sort out the Debian situation
before I get fancy.  I'm sure you'll be able to apply Debian tricks I
learn to the GNU build system in the csound5 module.

John