"Grosch, Scott" <[EMAIL PROTECTED]> writes:
> Where do I send questions about autoconf?  Is there a mailing list or
> newsgroup somewhere?

This is the place.

> 1) How do I add -I, -L and -R flags to the compile and link lines
>    when searching for libs?  For example, I have AFS installed but
>    those libraries are in /usr/afsws/lib....not a normal search path

Do you mean in your configure.in?  Set LIBS.  See also Preset Output Variables
in the autoconf manual.

> 2) How do I check for OS type?  I want to say:  If on solaris, add
>    the following LIBS and CFLAGS

AC_CANONICAL_HOST

case "$host" in
*-*-solaris*)
  blaha ;;
esac

should work.

But this is not the autoconf-way of doing things.  The autoconf-way is
to check for characteristics rather than system types.  So, you could
check for the particular function you need.  Say, check if you have
`gethostbyname'.  If you don't have it check if you have it in libnsl.

AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname)).

/assar

Reply via email to