From: Ronnie Sahlberg Date: Sun, 17 Jul 2011 06:32:45 +0000 (+1000) Subject: Add a flag --enable-tirpc to the configure script X-Git-Tag: upstream/1.9.6^2~344 X-Git-Url: https://git.piment-noir.org/?p=deb_libnfs.git;a=commitdiff_plain;h=fc4bdc2269596ad94f92798149d587e38c73712b Add a flag --enable-tirpc to the configure script --- diff --git a/configure.ac b/configure.ac index 70203ee..28d29cd 100644 --- a/configure.ac +++ b/configure.ac @@ -34,6 +34,12 @@ if test x$ENABLE_EXAMPLES = xyes; then fi AC_SUBST(MAYBE_EXAMPLES) +AC_ARG_ENABLE(tirpc, + [AC_HELP_STRING([--enable-tirpc], + [enable use of TI-RPC @<:@default=no@:>@])], + enable_tirpc=$enableval, + enable_tirpc='no') + case $host in *darwin*) RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" @@ -61,6 +67,12 @@ AC_CHECK_MEMBER([struct sockaddr.sa_len], #include ]) +echo "Use TI-RPC: $enable_tirpc" +if test "$enable_tirpc" = "yes"; then + CFLAGS="${CFLAGS} -I /usr/include/tirpc" + LDFLAGS="${LDFLAGS} -ltirpc" +fi + #output AC_CONFIG_FILES([Makefile] [include/Makefile]