From fc4bdc2269596ad94f92798149d587e38c73712b Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 17 Jul 2011 16:32:45 +1000 Subject: [PATCH] Add a flag --enable-tirpc to the configure script --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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] -- 2.34.1