bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_FUNC_GETMNTENT problem on UNICOS


From: Paul Eggert
Subject: Re: AC_FUNC_GETMNTENT problem on UNICOS
Date: Fri, 19 Nov 2004 15:30:39 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

James Youngman <address@hidden> writes:

> Does anybody have any suggestions as to what I should do about this?

Try wrapping the AC_CHECK_LIB stuff inside an AC_CHECK_FUNC, so that
the AC_CHECK_LIB part is invoked only if the function isn't in the
standard C library.  Something like this:

AC_CHECK_FUNC(getmntent, [],
  [AC_CHECK_LIB(sun, getmntent, LIBS="-lsun $LIBS",
     [AC_CHECK_LIB(seq, getmntent, LIBS="-lseq $LIBS",
       [AC_CHECK_LIB(gen, getmntent, LIBS="-lgen $LIBS")])])])
AC_CHECK_FUNCS(getmntent)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]