< prev index next >

common/autoconf/jdk-options.m4

Print this page




 488 ])
 489 
 490 
 491 AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
 492 [
 493   #
 494   # NATIVE_DEBUG_SYMBOLS
 495   # This must be done after the toolchain is setup, since we're looking at objcopy.
 496   #
 497   AC_MSG_CHECKING([what type of native debug symbols to use])
 498   AC_ARG_WITH([native-debug-symbols],
 499       [AS_HELP_STRING([--with-native-debug-symbols],
 500       [set the native debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])],
 501       [],
 502       [with_native_debug_symbols="zipped"])
 503   NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
 504   AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
 505 
 506   if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
 507 

 508     if test "x$OBJCOPY" = x; then
 509       # explicit enabling of enable-debug-symbols and can't find objcopy
 510       # this is an error
 511       AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 512     fi

 513 
 514     ENABLE_DEBUG_SYMBOLS=true
 515     ZIP_DEBUGINFO_FILES=true
 516     DEBUG_BINARIES=true
 517     STRIP_POLICY=min_strip
 518   elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
 519     ENABLE_DEBUG_SYMBOLS=false
 520     ZIP_DEBUGINFO_FILES=false
 521     DEBUG_BINARIES=false
 522     STRIP_POLICY=no_strip
 523   elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
 524     ENABLE_DEBUG_SYMBOLS=false  # -g option only
 525     ZIP_DEBUGINFO_FILES=false
 526     DEBUG_BINARIES=true
 527     STRIP_POLICY=no_strip
 528     STRIP=""
 529   elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
 530 

 531     if test "x$OBJCOPY" = x; then
 532       # explicit enabling of enable-debug-symbols and can't find objcopy
 533       # this is an error
 534       AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])

 535     fi
 536 
 537     ENABLE_DEBUG_SYMBOLS=true
 538     ZIP_DEBUGINFO_FILES=false
 539     DEBUG_BINARIES=true
 540     STRIP_POLICY=min_strip
 541   else
 542     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 543   fi
 544 
 545   # --enable-debug-symbols is deprecated.
 546   # Please use --with-native-debug-symbols=[internal,external,zipped] .
 547   BASIC_DEPRECATED_ARG_ENABLE(debug-symbols, debug_symbols,
 548         [Please use --with-native-debug-symbols=[[internal,external,zipped]] .])
 549 
 550   # --enable-zip-debug-info is deprecated.
 551   # Please use --with-native-debug-symbols=zipped .
 552   BASIC_DEPRECATED_ARG_ENABLE(zip-debug-info, zip_debug_info,
 553                               [Please use --with-native-debug-symbols=zipped .])
 554 




 488 ])
 489 
 490 
 491 AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
 492 [
 493   #
 494   # NATIVE_DEBUG_SYMBOLS
 495   # This must be done after the toolchain is setup, since we're looking at objcopy.
 496   #
 497   AC_MSG_CHECKING([what type of native debug symbols to use])
 498   AC_ARG_WITH([native-debug-symbols],
 499       [AS_HELP_STRING([--with-native-debug-symbols],
 500       [set the native debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])],
 501       [],
 502       [with_native_debug_symbols="zipped"])
 503   NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
 504   AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
 505 
 506   if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
 507 
 508     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 509       if test "x$OBJCOPY" = x; then
 510         # enabling of enable-debug-symbols and can't find objcopy
 511         # this is an error
 512         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 513       fi
 514     fi
 515 
 516     ENABLE_DEBUG_SYMBOLS=true
 517     ZIP_DEBUGINFO_FILES=true
 518     DEBUG_BINARIES=true
 519     STRIP_POLICY=min_strip
 520   elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
 521     ENABLE_DEBUG_SYMBOLS=false
 522     ZIP_DEBUGINFO_FILES=false
 523     DEBUG_BINARIES=false
 524     STRIP_POLICY=no_strip
 525   elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then
 526     ENABLE_DEBUG_SYMBOLS=false  # -g option only
 527     ZIP_DEBUGINFO_FILES=false
 528     DEBUG_BINARIES=true
 529     STRIP_POLICY=no_strip
 530     STRIP=""
 531   elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then
 532 
 533     if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
 534       if test "x$OBJCOPY" = x; then
 535         # enabling of enable-debug-symbols and can't find objcopy
 536         # this is an error
 537         AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
 538       fi
 539     fi
 540 
 541     ENABLE_DEBUG_SYMBOLS=true
 542     ZIP_DEBUGINFO_FILES=false
 543     DEBUG_BINARIES=true
 544     STRIP_POLICY=min_strip
 545   else
 546     AC_MSG_ERROR([Allowed native debug symbols are: none, internal, external, zipped])
 547   fi
 548 
 549   # --enable-debug-symbols is deprecated.
 550   # Please use --with-native-debug-symbols=[internal,external,zipped] .
 551   BASIC_DEPRECATED_ARG_ENABLE(debug-symbols, debug_symbols,
 552         [Please use --with-native-debug-symbols=[[internal,external,zipped]] .])
 553 
 554   # --enable-zip-debug-info is deprecated.
 555   # Please use --with-native-debug-symbols=zipped .
 556   BASIC_DEPRECATED_ARG_ENABLE(zip-debug-info, zip_debug_info,
 557                               [Please use --with-native-debug-symbols=zipped .])
 558 


< prev index next >