Fix for bug #1276: Handle SHELL according to POSIX requirements.
[make.git] / config / dospaths.m4
blob3cadbbfca6f29b6f1b19c39eef088f52453fbaa9
1 # Test if the system uses DOS-style pathnames (drive specs and backslashes)
2 # By Paul Smith <psmith@gnu.org>.  Based on dos.m4 by Jim Meyering.
4 AC_DEFUN([pds_AC_DOS_PATHS],
5   [
6     AC_CACHE_CHECK([whether system uses MSDOS-style paths], [ac_cv_dos_paths],
7       [
8         AC_COMPILE_IFELSE([
9 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__
10 neither MSDOS nor Windows nor OS2
11 #endif
13         [ac_cv_dos_paths=yes],
14         [ac_cv_dos_paths=no])
15       ])
17     if test x"$ac_cv_dos_paths" = xyes; then
18       AC_DEFINE_UNQUOTED([HAVE_DOS_PATHS], 1,
19                          [Define if the system uses DOS-style pathnames.])
20     fi
21   ])