1 dnl Special rpc library for Solaris
3 AC_DEFUN([UNFS3_SOLARIS_RPC],[
4 AC_CHECK_FUNC(svc_tli_create, [
5 # On Solaris, you must link with librpcsoc, or the binaries won't work.
6 LDFLAGS="-L/usr/ucblib -R/usr/ucblib $LDFLAGS"
7 AC_CHECK_LIB(rpcsoc, svctcp_create,
8 [ LIBS="-lrpcsoc $LIBS" ],
9 [ AC_MSG_WARN([*** Cannot find librpcsoc. On Solaris, install package SUNWscpu. ***]) ]
13 dnl PORTMAP define needed for Solaris
15 AC_DEFUN([UNFS3_PORTMAP_DEFINE],[
16 AC_DEFINE([PORTMAP], [], [Define to an empty value if you use Solaris.])
18 dnl Set compiler warnings for gcc
20 AC_DEFUN([UNFS3_COMPILE_WARNINGS],[
21 if test "$GCC" = "yes"
23 CFLAGS="$CFLAGS -Wall -W"