Peter Eisentraut wrote:
> Patrick Hartling writes:
> 
> 
>>autoupdate is interesting, but I don't necessarily want to require the
>>use of versions >=2.50 just yet.
> 
> 
> Well, you can't have it both ways.

So I can't have a configure.in that works with 2.13 and 2.5x?  I don't 
plan on using any of the 2.5x-specific macros until we are ready to 
commit to 2.5x exclusively.

>>Even so, running autoupdate and adding []'s liberally does not fix the
>>syntax errors in the generated 'configure'.  I've attached the
>>resulting configure.in.
> 
> 
> Quoting the arguments correctly and inserting the missing second argument
> of AC_CHECK_LIB makes it work for me:
> 
> AC_INIT
> AC_CONFIG_SRCDIR([.])
> AC_PROG_CC
> AC_CHECK_LIB([m], [main],
>    [AC_CHECK_HEADER([math.h], [echo "Hello"],
>       [AC_MSG_ERROR([*** Header not found (oops) ***])])])

Oops, I forgot that second argument... I made that example a little too 
quickly.  I'll give this a try.  Thanks.

  -Patrick


-- 
Patrick L. Hartling                     | Research Assistant, VRAC
[EMAIL PROTECTED]                         | 2624 Howe Hall -- (515)294-4916
http://www.137.org/patrick/             | http://www.vrac.iastate.edu/


Reply via email to