Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.7KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_check_dos_filesys.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_CHECK_DOS_FILESYS_LIMITATIONS
  8. #
  9. # DESCRIPTION
  10. #
  11. # Check if the target is running on DOS. DOS doesn't allow a dot as the
  12. # first character, more than one dot, more than eight characters before a
  13. # dot, and just three letters after the dot. A DOS VM running under
  14. # Windows 9X does not have these restrictions. A DOS program can be
  15. # running in either environment, so its important to code accordingly.
  16. # Defines HAVE_DOS_FILESYS_LIMITATIONS if under DOS.
  17. #
  18. # Use in conjunction with AX_CHECK_PATHNAME_STYLE_DOS.
  19. #
  20. # LICENSE
  21. #
  22. # Copyright (c) 2008 Mark Elbrecht
  23. #
  24. # This program is free software; you can redistribute it and/or modify it
  25. # under the terms of the GNU General Public License as published by the
  26. # Free Software Foundation; either version 2 of the License, or (at your
  27. # option) any later version.
  28. #
  29. # This program is distributed in the hope that it will be useful, but
  30. # WITHOUT ANY WARRANTY; without even the implied warranty of
  31. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  32. # Public License for more details.
  33. #
  34. # You should have received a copy of the GNU General Public License along
  35. # with this program. If not, see <https://www.gnu.org/licenses/>.
  36. #
  37. # As a special exception, the respective Autoconf Macro's copyright owner
  38. # gives unlimited permission to copy, distribute and modify the configure
  39. # scripts that are the output of Autoconf when processing the Macro. You
  40. # need not follow the terms of the GNU General Public License when using
  41. # or distributing such scripts, even though portions of the text of the
  42. # Macro appear in them. The GNU General Public License (GPL) does govern
  43. # all other use of the material that constitutes the Autoconf Macro.
  44. #
  45. # This special exception to the GPL applies to versions of the Autoconf
  46. # Macro released by the Autoconf Archive. When you make and distribute a
  47. # modified version of the Autoconf Macro, you may extend this special
  48. # exception to the GPL to apply to your modified version as well.
  49. #serial 5
  50. AU_ALIAS([ACX_CHECK_DOS_FILESYS], [AX_CHECK_DOS_FILESYS])
  51. AC_DEFUN([AX_CHECK_DOS_FILESYS_LIMITATIONS],
  52. [AC_MSG_CHECKING(for potential DOS filename limitations)
  53. AC_CACHE_VAL(ax_cv_dos_limitations,
  54. [AC_REQUIRE([AC_CANONICAL_HOST])
  55. ax_cv_dos_limitations="yes"
  56. case ${host_os} in
  57. *dos | *djgpp) ax_cv_dos_limitations="yes"
  58. esac
  59. ])
  60. AC_MSG_RESULT($ax_cv_dos_limitations)
  61. if test $ax_cv_dos_limitations = "yes"; then
  62. AC_DEFINE(HAVE_DOS_FILESYS_LIMITATIONS)
  63. fi
  64. ])