483 ENABLE_DEBUG_SYMBOLS=true 484 elif test "x$enable_debug_symbols" = "xno"; then 485 ENABLE_DEBUG_SYMBOLS=false 486 else 487 # default on macosx is false 488 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 489 ENABLE_DEBUG_SYMBOLS=false 490 # Default is on if objcopy is found, otherwise off 491 elif test "x$OBJCOPY" != x || test "x$OPENJDK_TARGET_OS" = xwindows; then 492 ENABLE_DEBUG_SYMBOLS=true 493 else 494 ENABLE_DEBUG_SYMBOLS=false 495 fi 496 fi 497 498 AC_MSG_RESULT([$ENABLE_DEBUG_SYMBOLS]) 499 500 # 501 # ZIP_DEBUGINFO_FILES 502 # 503 AC_ARG_ENABLE([zip-debug-info], 504 [AS_HELP_STRING([--disable-zip-debug-info],[disable zipping of debug-info files @<:@enabled@:>@])]) 505 506 AC_MSG_CHECKING([if we should zip debug-info files]) 507 AC_MSG_RESULT([${enable_zip_debug_info}]) 508 509 if test "x${enable_zip_debug_info}" = "xno"; then 510 ZIP_DEBUGINFO_FILES=false 511 else 512 ZIP_DEBUGINFO_FILES=true 513 fi 514 515 AC_SUBST(ENABLE_DEBUG_SYMBOLS) 516 AC_SUBST(ZIP_DEBUGINFO_FILES) 517 AC_SUBST(CFLAGS_DEBUG_SYMBOLS) 518 AC_SUBST(CXXFLAGS_DEBUG_SYMBOLS) 519 ]) 520 521 # Support for customization of the build process. Some build files 522 # will include counterparts from this location, if they exist. This allows 523 # for a degree of customization of the build targets and the rules/recipes 524 # to create them 525 AC_ARG_WITH([custom-make-dir], [AS_HELP_STRING([--with-custom-make-dir], 526 [use this directory for custom build/make files])], [CUSTOM_MAKE_DIR=$with_custom_make_dir]) | 483 ENABLE_DEBUG_SYMBOLS=true 484 elif test "x$enable_debug_symbols" = "xno"; then 485 ENABLE_DEBUG_SYMBOLS=false 486 else 487 # default on macosx is false 488 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 489 ENABLE_DEBUG_SYMBOLS=false 490 # Default is on if objcopy is found, otherwise off 491 elif test "x$OBJCOPY" != x || test "x$OPENJDK_TARGET_OS" = xwindows; then 492 ENABLE_DEBUG_SYMBOLS=true 493 else 494 ENABLE_DEBUG_SYMBOLS=false 495 fi 496 fi 497 498 AC_MSG_RESULT([$ENABLE_DEBUG_SYMBOLS]) 499 500 # 501 # ZIP_DEBUGINFO_FILES 502 # 503 AC_MSG_CHECKING([if we should zip debug-info files]) 504 AC_ARG_ENABLE([zip-debug-info], 505 [AS_HELP_STRING([--disable-zip-debug-info],[disable zipping of debug-info files @<:@enabled@:>@])], 506 [enable_zip_debug_info="${enableval}"], [enable_zip_debug_info="yes"]) 507 AC_MSG_RESULT([${enable_zip_debug_info}]) 508 509 if test "x${enable_zip_debug_info}" = "xno"; then 510 ZIP_DEBUGINFO_FILES=false 511 else 512 ZIP_DEBUGINFO_FILES=true 513 fi 514 515 AC_SUBST(ENABLE_DEBUG_SYMBOLS) 516 AC_SUBST(ZIP_DEBUGINFO_FILES) 517 AC_SUBST(CFLAGS_DEBUG_SYMBOLS) 518 AC_SUBST(CXXFLAGS_DEBUG_SYMBOLS) 519 ]) 520 521 # Support for customization of the build process. Some build files 522 # will include counterparts from this location, if they exist. This allows 523 # for a degree of customization of the build targets and the rules/recipes 524 # to create them 525 AC_ARG_WITH([custom-make-dir], [AS_HELP_STRING([--with-custom-make-dir], 526 [use this directory for custom build/make files])], [CUSTOM_MAKE_DIR=$with_custom_make_dir]) |