aboutsummaryrefslogtreecommitdiffstats
path: root/m4/macros/check_network_transport_type.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/macros/check_network_transport_type.m4')
-rw-r--r--m4/macros/check_network_transport_type.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/m4/macros/check_network_transport_type.m4 b/m4/macros/check_network_transport_type.m4
new file mode 100644
index 000000000000..9f9de5776df0
--- /dev/null
+++ b/m4/macros/check_network_transport_type.m4
@@ -0,0 +1,27 @@
+dnl ######################################################################
+dnl check the correct network transport type to use
+AC_DEFUN([AMU_CHECK_NETWORK_TRANSPORT_TYPE],
+[
+AC_CACHE_CHECK(network transport type,
+ac_cv_transport_type,
+[
+# select the correct type
+case "${host_os_name}" in
+ solaris1* | sunos[[34]]* | hpux[[6-9]]* | hpux10* )
+ ac_cv_transport_type=sockets ;;
+ solaris* | sunos* | hpux* )
+ ac_cv_transport_type=tli ;;
+ * )
+ ac_cv_transport_type=sockets ;;
+esac
+])
+am_utils_link_files=${am_utils_link_files}libamu/transputil.c:conf/transp/transp_${ac_cv_transport_type}.c" "
+
+# append transport utilities object to LIBOBJS for automatic compilation
+AC_LIBOBJ(transputil)
+if test $ac_cv_transport_type = tli
+then
+ AC_DEFINE(HAVE_TRANSPORT_TYPE_TLI)
+fi
+])
+dnl ======================================================================