619 [
620 AC_ARG_ENABLE([manpages], [AS_HELP_STRING([--disable-manpages],
621 [Set to disable building of man pages @<:@enabled@:>@])])
622
623 BUILD_MANPAGES="true"
624 AC_MSG_CHECKING([if man pages should be built])
625 if test "x$enable_manpages" = "x"; then
626 AC_MSG_RESULT([yes])
627 elif test "x$enable_manpages" = "xyes"; then
628 AC_MSG_RESULT([yes, forced])
629 elif test "x$enable_manpages" = "xno"; then
630 AC_MSG_RESULT([no, forced])
631 BUILD_MANPAGES="false"
632 else
633 AC_MSG_RESULT([no])
634 AC_MSG_ERROR([--enable-manpages can only yes/no or empty])
635 fi
636
637 AC_SUBST(BUILD_MANPAGES)
638 ])
|
619 [
620 AC_ARG_ENABLE([manpages], [AS_HELP_STRING([--disable-manpages],
621 [Set to disable building of man pages @<:@enabled@:>@])])
622
623 BUILD_MANPAGES="true"
624 AC_MSG_CHECKING([if man pages should be built])
625 if test "x$enable_manpages" = "x"; then
626 AC_MSG_RESULT([yes])
627 elif test "x$enable_manpages" = "xyes"; then
628 AC_MSG_RESULT([yes, forced])
629 elif test "x$enable_manpages" = "xno"; then
630 AC_MSG_RESULT([no, forced])
631 BUILD_MANPAGES="false"
632 else
633 AC_MSG_RESULT([no])
634 AC_MSG_ERROR([--enable-manpages can only yes/no or empty])
635 fi
636
637 AC_SUBST(BUILD_MANPAGES)
638 ])
639
640 ################################################################################
641 #
642 # Disallow any output from containing absolute paths from the build system.
643 # This setting defaults to allowed on debug builds and not allowed on release
644 # builds.
645 #
646 AC_DEFUN([JDKOPT_ALLOW_ABSOLUTE_PATHS_IN_OUTPUT],
647 [
648 AC_ARG_ENABLE([absolute-paths-in-output],
649 [AS_HELP_STRING([--disable-absolute-paths-in-output],
650 [Set to disable to prevent any absolute paths from the build to end up in
651 any of the build output. @<:@disabled in release builds, otherwise enabled@:>@])
652 ])
653
654 AC_MSG_CHECKING([if absolute paths should be allowed in the build output])
655 if test "x$enable_absolute_paths_in_output" = "xno"; then
656 AC_MSG_RESULT([no, forced])
657 ALLOW_ABSOLUTE_PATHS_IN_OUTPUT="false"
658 elif test "x$enable_absolute_paths_in_output" = "xyes"; then
659 AC_MSG_RESULT([yes, forced])
660 ALLOW_ABSOLUTE_PATHS_IN_OUTPUT="true"
661 elif test "x$DEBUG_LEVEL" = "xrelease"; then
662 AC_MSG_RESULT([no, release build])
663 ALLOW_ABSOLUTE_PATHS_IN_OUTPUT="false"
664 else
665 AC_MSG_RESULT([yes, debug build])
666 ALLOW_ABSOLUTE_PATHS_IN_OUTPUT="true"
667 fi
668
669 AC_SUBST(ALLOW_ABSOLUTE_PATHS_IN_OUTPUT)
670 ])
|