lead-dot.m4 1.1 KB

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