[GEM-dev] Re: [GEM-cvs] Gem/src/Gnu configure.in

IOhannes m zmoelnig zmoelnig at iem.at
Tue May 24 08:21:29 CEST 2005


james tittle wrote:
> On May 23, 2005, at 11:21 AM, IOhannes m zmoelnig wrote:
> 
> ...but now I've run into another problem:  pre-10.4, math.h didn't 
> define sinf() & friends...so we made "macosx_math.h" in GemLibs/
> darwinStuff...now that it's defined on 10.4, I'm trying to 
> conditionally find out if sinf is in math.h...I've done this by using  a
> macro I found at the link you referred to above:
> 
> http://autoconf-archive.cryp.to/ac_check_func_in.html
> 
> ...and tried:
> 
> dnl on osx, sinf() wasn't defined pre-10.4
> if test `uname -s` == Darwin;
>   then
> AC_CHECK_FUNC_IN(math.h, sinf, CXXFLAGS="$CXXFLAGS -DHAS_SINF",
>                     INCLUDES = "$INCLUDES ../../../GemLibs/ darwinStuff")
> fi
> 
> ...but I haven't figured out where to put the "M4 source code"?  I 
> first tried to copy/paste from the webpage into acinclude.m4, but  when
> I run "autoconf" again, it gives this:
> 
> tiggity:~/puredataDev/Gem/src/gnu tigital$ autoconf
> configure.in:611: error: possibly undefined macro: AC_CHECK_FUNC_IN
>       If this token and others are legitimate, please use 
> m4_pattern_allow.
>       See the Autoconf documentation.


i guess it is like:
paste the code into acinclude.m4
run "aclocal"
run "autoconf"
run "./configure"


mfg.a.dr.
IOhannes

> 
> any ideas?
> jamie





More information about the GEM-dev mailing list