fhs.m4 970 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # BEGIN COPYRIGHT BLOCK
  2. # Copyright (C) 2006 Red Hat, Inc.
  3. # All rights reserved.
  4. #
  5. # License: GPL (version 3 or any later version).
  6. # See LICENSE for details.
  7. # END COPYRIGHT BLOCK
  8. AC_CHECKING(for FHS)
  9. # check for --with-fhs
  10. AC_MSG_CHECKING(for --with-fhs)
  11. AC_ARG_WITH(fhs, AS_HELP_STRING([--with-fhs],[Use FHS layout]),
  12. [
  13. with_fhs=yes
  14. AC_MSG_RESULT(yes)
  15. ],
  16. AC_MSG_RESULT(no))
  17. if test "$with_fhs" = "yes"; then
  18. AC_DEFINE([IS_FHS], [1], [Use FHS layout])
  19. fi
  20. # check for --with-fhs-opt
  21. AC_MSG_CHECKING(for --with-fhs-opt)
  22. AC_ARG_WITH(fhs-opt, AS_HELP_STRING([--with-fhs-opt],[Use FHS optional layout]),
  23. [
  24. with_fhs_opt=yes
  25. AC_MSG_RESULT(yes)
  26. AC_SUBST(with_fhs_opt)
  27. ],
  28. AC_MSG_RESULT(no))
  29. if test "$with_fhs_opt" = "yes"; then
  30. AC_DEFINE([IS_FHS_OPT], [1], [Use FHS optional layout])
  31. fi
  32. if test "$with_fhs" = "yes" -a "$with_fhs_opt" = "yes"; then
  33. AC_MSG_ERROR([Can't set both --with-fhs and --with-fhs-opt. Please only use one of these options.])
  34. fi