source: trunk/src/kmk/config/dospaths.m4@ 3669

Last change on this file since 3669 was 3140, checked in by bird, 7 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
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.
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
20AC_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__
24neither 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])
Note: See TracBrowser for help on using the repository browser.