Create a new internal interface for defining new make functions.
[make.git] / config / dospaths.m4
blob0615f0adc8ac5974a91fece6b4e65d47d20471f6
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 # Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software
6 # Foundation, Inc.
7 # This file is part of GNU Make.
9 # GNU Make is free software; you can redistribute it and/or modify it under
10 # the terms of the GNU General Public License as published by the Free Software
11 # Foundation; either version 3 of the License, or (at your option) any later
12 # version.
14 # GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
15 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
17 # details.
19 # You should have received a copy of the GNU General Public License along with
20 # this program.  If not, see <http://www.gnu.org/licenses/>.
22 AC_DEFUN([pds_AC_DOS_PATHS],
23   [
24     AC_CACHE_CHECK([whether system uses MSDOS-style paths], [ac_cv_dos_paths],
25       [
26         AC_COMPILE_IFELSE([
27 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
28 neither MSDOS nor Windows nor OS2
29 #endif
31         [ac_cv_dos_paths=yes],
32         [ac_cv_dos_paths=no])
33       ])
35     if test x"$ac_cv_dos_paths" = xyes; then
36       AC_DEFINE_UNQUOTED([HAVE_DOS_PATHS], 1,
37                          [Define if the system uses DOS-style pathnames.])
38     fi
39   ])