From 3be2733596b0cc976136361c5b20576ffca5bef5 Mon Sep 17 00:00:00 2001 From: Andres Mejia Date: Sun, 24 Jul 2011 14:15:59 -0400 Subject: [PATCH] Imported Upstream version 0.0~git20110724.48593f5 --- README | 10 +++++++++- configure | 19 +++++++++++++++++++ configure.ac | 15 +++++++++++++++ include/Makefile.am | 6 +++++- include/Makefile.in | 6 +++++- 5 files changed, 53 insertions(+), 3 deletions(-) diff --git a/README b/README index edfd8e1..cab6aa6 100644 --- a/README +++ b/README @@ -35,10 +35,18 @@ ports from connecting. These servers require you use the "insecure" export option in /etc/exports in order to allow libnfs clients to be able to connect. -PLATTFORM support +PLATFORM support ================= As of now this is tested with linux, MacOSX and Apple iOS. Linux: - tested with Ubuntu 10.04 - should work with others aswell +Cygwin: - tested under 64bit win2k8. MacOSX: - tested with SDK 10.4 (under Snow Leopard) - should also work with later SDKs and 64Bit iOS: - tested with iOS SDK 4.2 - running on iOS 4.3.x +FreeBSD:- tested with 8.2 + + +Cygwin +------ +Configure with './configure --enable-tirpc' since cygwin only supports ti-rpc and not classic rpc. + diff --git a/configure b/configure index 63d9564..efa3b78 100755 --- a/configure +++ b/configure @@ -734,6 +734,7 @@ with_gnu_ld with_sysroot enable_libtool_lock enable_examples +enable_tirpc ' ac_precious_vars='build_alias host_alias @@ -1372,6 +1373,7 @@ Optional Features: optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-examples Build example programs + --enable-tirpc enable use of TI-RPC [default=no] Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -11450,10 +11452,21 @@ if test x$ENABLE_EXAMPLES = xyes; then fi +# Check whether --enable-tirpc was given. +if test "${enable_tirpc+set}" = set; then : + enableval=$enable_tirpc; enable_tirpc=$enableval +else + enable_tirpc='no' +fi + + case $host in *darwin*) RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" ;; + *cygwin*) + RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" + ;; *solaris*) for ac_header in sys/filio.h do : @@ -11571,6 +11584,12 @@ $as_echo "#define HAVE_SOCKADDR_LEN 1" >>confdefs.h fi +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="$ac_config_files Makefile include/Makefile lib/Makefile mount/Makefile nfs/Makefile portmap/Makefile rquota/Makefile examples/Makefile" diff --git a/configure.ac b/configure.ac index 70203ee..309f73f 100644 --- a/configure.ac +++ b/configure.ac @@ -34,10 +34,19 @@ 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" ;; + *cygwin*) + RPCGENFLAGS=-DU_INT64_PLATTFORM_TYPE="u_int64_t" + ;; *solaris*) AC_CHECK_HEADERS([sys/filio.h]) if test x$ENABLE_EXAMPLES = xyes; then @@ -61,6 +70,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] diff --git a/include/Makefile.am b/include/Makefile.am index 31fc37a..6efb8f5 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -3,4 +3,8 @@ dist_nfsc_HEADERS = \ libnfs.h \ libnfs-private.h \ libnfs-raw.h \ - slist.h + slist.h \ + ${abs_top_srcdir}/mount/libnfs-raw-mount.h \ + ${abs_top_srcdir}/portmap/libnfs-raw-portmap.h \ + ${abs_top_srcdir}/nfs/libnfs-raw-nfs.h \ + ${abs_top_srcdir}/rquota/libnfs-raw-rquota.h diff --git a/include/Makefile.in b/include/Makefile.in index 774be6b..87157ca 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -194,7 +194,11 @@ dist_nfsc_HEADERS = \ libnfs.h \ libnfs-private.h \ libnfs-raw.h \ - slist.h + slist.h \ + ${abs_top_srcdir}/mount/libnfs-raw-mount.h \ + ${abs_top_srcdir}/portmap/libnfs-raw-portmap.h \ + ${abs_top_srcdir}/nfs/libnfs-raw-nfs.h \ + ${abs_top_srcdir}/rquota/libnfs-raw-rquota.h all: all-am -- 2.34.1