aboutsummaryrefslogtreecommitdiff
path: root/m4/ntp_dir_sep.m4
blob: 96d0fbc05e1740063d2e3551657bfd6fba3ba02e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 ======================================================================