No longer need to test for xdr_uint64_t -- we've got it ourselves
[shibboleth/sp.git] / configure.ac
index 0ebfcd2..1c24eee 100644 (file)
@@ -30,11 +30,11 @@ AC_CXX_REQUIRE_STL
 AC_CXX_NAMESPACES
 
 
-old_LIBS="$LIBS"
-AC_SEARCH_LIBS(xdr_uint64_t,nsl,,
-       [CFLAGS="$CFLAGS -DNEED_XDR_LONGLONG"
-        CXXFLAGS="$CXXFLAGS -DNEED_XDR_LONGLONG"])
-LIBS="$old_LIBS"
+old_LIBS="$LIBS"
+AC_SEARCH_LIBS(xdr_uint64_t,nsl,,
+#      [CFLAGS="$CFLAGS -DNEED_XDR_LONGLONG"
+#       CXXFLAGS="$CXXFLAGS -DNEED_XDR_LONGLONG"])
+LIBS="$old_LIBS"
 
 # checks for pthreads
 ACX_PTHREAD([enable_threads="pthread"],[enable_threads="no"])
@@ -47,6 +47,9 @@ else
     CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
 fi
 
+# Test RPC now -- deal with it later
+ACX_RPCTEST([rpctest="yes"],[rpctest="no"])
+
 AC_ARG_WITH(dmalloc,
             AC_HELP_STRING([--with-dmalloc=PATH], [where dmalloc is installed]),
             [if test x_$with_dmalloc != x_/usr; then
@@ -154,12 +157,11 @@ AC_CONFIG_FILES([Makefile shib/Makefile schemas/Makefile eduPerson/Makefile \
                 configs/Makefile oncrpc/Makefile oncrpc/rpc/Makefile \
                 shib-target/Makefile shar/Makefile test/Makefile])
 
-# now test the rpc library, to see if we need to build our own
-ACX_RPCTEST([rpctest="yes"],[rpctest="no"])
+# now deal with the rpc library, to see if we need to build our own
 if test $rpctest = "no"; then
     WANT_SUBDIRS="oncrpc $WANT_SUBDIRS"
-    AM_CONDITIONAL(USE_OUR_ONCRPC,test "$rpctest" = "no")
 fi
+AM_CONDITIONAL(USE_OUR_ONCRPC,test "$rpctest" = "no")
 
 # Much of this is taken from mod_dav.
 # The basic idea is to use configure options to control whether/which types