Merge branch 'maint'
[platform/upstream/automake.git] / m4 / lead-dot.m4
1 ##                                                          -*- Autoconf -*-
2 # Copyright (C) 2003-2012 Free Software Foundation, Inc.
3 #
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # serial 2
9
10 # Check whether the underlying file-system supports filenames
11 # with a leading dot.  For instance MS-DOS doesn't.
12 AC_DEFUN([AM_SET_LEADING_DOT],
13 [rm -rf .tst 2>/dev/null
14 mkdir .tst 2>/dev/null
15 if test -d .tst; then
16   am__leading_dot=.
17 else
18   am__leading_dot=_
19 fi
20 rmdir .tst 2>/dev/null
21 AC_SUBST([am__leading_dot])])