aboutsummaryrefslogtreecommitdiff
path: root/m4/ntp_dir_sep.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/ntp_dir_sep.m4')
-rw-r--r--m4/ntp_dir_sep.m424
1 files changed, 24 insertions, 0 deletions
diff --git a/m4/ntp_dir_sep.m4 b/m4/ntp_dir_sep.m4
new file mode 100644
index 000000000000..96d0fbc05e17
--- /dev/null
+++ b/m4/ntp_dir_sep.m4
@@ -0,0 +1,24 @@
+dnl ######################################################################
+dnl What directory path separator do we use?
+AC_DEFUN([NTP_DIR_SEP], [
+AC_CACHE_CHECK(
+ [for directory path separator],
+ [ntp_cv_dir_sep],
+ [
+ case "$ntp_cv_dir_sep" in
+ '')
+ case "$target_os" in
+ *djgpp | *mingw32* | *emx*)
+ ntp_cv_dir_sep="'\\'"
+ ;;
+ *)
+ ntp_cv_dir_sep="'/'"
+ ;;
+ esac
+ esac
+ ]
+)
+AC_DEFINE_UNQUOTED([DIR_SEP], [$ntp_cv_dir_sep],
+ [Directory separator character, usually / or \\])
+])
+dnl ======================================================================