]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/lead-dot.m4
Fix tests for std::variant to match original intention
[thirdparty/gcc.git] / config / lead-dot.m4
CommitLineData
cbaa9876 1# -*- Autoconf -*-
6bc9506f 2# Copyright (C) 2003, 2009 Free Software Foundation, Inc.
cbaa9876 3
4# This program is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6bc9506f 6# the Free Software Foundation; either version 3, or (at your option)
cbaa9876 7# any later version.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13
14# You should have received a copy of the GNU General Public License
6bc9506f 15# along with this program; see the file COPYING3. If not see
16# <http://www.gnu.org/licenses/>.
cbaa9876 17
18# serial 1
19
20# Check whether the underlying file-system supports filenames
21# with a leading dot. For instance MS-DOS doesn't.
22AC_DEFUN([AM_SET_LEADING_DOT],
23[rm -rf .tst 2>/dev/null
24mkdir .tst 2>/dev/null
25if test -d .tst; then
26 am__leading_dot=.
27else
28 am__leading_dot=_
29fi
30rmdir .tst 2>/dev/null
31AC_SUBST([am__leading_dot])])