1 | # Test if the system uses DOS-style pathnames (drive specs and backslashes)
|
---|
2 | # By Paul Smith <[email protected]>. Based on dos.m4 by Jim Meyering.
|
---|
3 | #
|
---|
4 | # Copyright (C) 1993-2016 Free Software Foundation, Inc.
|
---|
5 | # This file is part of GNU Make.
|
---|
6 | #
|
---|
7 | # GNU Make is free software; you can redistribute it and/or modify it under
|
---|
8 | # the terms of the GNU General Public License as published by the Free Software
|
---|
9 | # Foundation; either version 3 of the License, or (at your option) any later
|
---|
10 | # version.
|
---|
11 | #
|
---|
12 | # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
|
---|
13 | # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
---|
14 | # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
---|
15 | # details.
|
---|
16 | #
|
---|
17 | # You should have received a copy of the GNU General Public License along with
|
---|
18 | # this program. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 |
|
---|
20 | AC_DEFUN([pds_AC_DOS_PATHS], [
|
---|
21 | AC_CACHE_CHECK([whether system uses MSDOS-style paths], [ac_cv_dos_paths], [
|
---|
22 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
---|
23 | #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
|
---|
24 | neither MSDOS nor Windows nor OS2
|
---|
25 | #endif
|
---|
26 | ]])],
|
---|
27 | [ac_cv_dos_paths=yes],
|
---|
28 | [ac_cv_dos_paths=no])])
|
---|
29 |
|
---|
30 | AS_IF([test x"$ac_cv_dos_paths" = xyes],
|
---|
31 | [ AC_DEFINE_UNQUOTED([HAVE_DOS_PATHS], 1,
|
---|
32 | [Define if the system uses DOS-style pathnames.])])
|
---|
33 | ])
|
---|