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 Free Software Foundation, Inc.
6 # This file is part of GNU Make.
8 # GNU Make is free software; you can redistribute it and/or modify it under the
9 # terms of the GNU General Public License as published by the Free Software
10 # Foundation; either version 2, or (at your option) any later version.
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 FOR
14 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License along with
17 # GNU Make; see the file COPYING. If not, write to the Free Software
18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 AC_DEFUN([pds_AC_DOS_PATHS],
22 AC_CACHE_CHECK([whether system uses MSDOS-style paths], [ac_cv_dos_paths],
25 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__
26 neither MSDOS nor Windows nor OS2
29 [ac_cv_dos_paths=yes],
33 if test x"$ac_cv_dos_paths" = xyes; then
34 AC_DEFINE_UNQUOTED([HAVE_DOS_PATHS], 1,
35 [Define if the system uses DOS-style pathnames.])