# HG changeset patch # User simonis # Date 1450276560 -3600 # Wed Dec 16 15:36:00 2015 +0100 # Node ID 9a75be75ccb0aff2ce097ee65fe61d18a0fcc220 # Parent e228916051ddac858d3139c086f7425496625f7c 8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh --- a/common/autoconf/generated-configure.sh +++ b/common/autoconf/generated-configure.sh @@ -4797,7 +4797,7 @@ #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1450206821 +DATE_WHEN_GENERATED=1450274477 ############################################################################### # @@ -47697,8 +47697,21 @@ # Check whether --with-native-debug-symbols was given. if test "${with_native_debug_symbols+set}" = set; then : withval=$with_native_debug_symbols; -else - with_native_debug_symbols="zipped" + if test "x$OPENJDK_TARGET_OS" = xaix; then + if test "x$withval" = xexternal || test "x$withval" = xzipped; then + as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 + fi + fi + +else + + if test "x$OPENJDK_TARGET_OS" = xaix; then + # AIX doesn't support 'zipped' so use 'internal' as default + with_native_debug_symbols="internal" + else + with_native_debug_symbols="zipped" + fi + fi NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols diff --git a/common/autoconf/jdk-options.m4 b/common/autoconf/jdk-options.m4 --- a/common/autoconf/jdk-options.m4 +++ b/common/autoconf/jdk-options.m4 @@ -223,8 +223,21 @@ AC_ARG_WITH([native-debug-symbols], [AS_HELP_STRING([--with-native-debug-symbols], [set the native debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])], - [], - [with_native_debug_symbols="zipped"]) + [ + if test "x$OPENJDK_TARGET_OS" = xaix; then + if test "x$withval" = xexternal || test "x$withval" = xzipped; then + AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols]) + fi + fi + ], + [ + if test "x$OPENJDK_TARGET_OS" = xaix; then + # AIX doesn't support 'zipped' so use 'internal' as default + with_native_debug_symbols="internal" + else + with_native_debug_symbols="zipped" + fi + ]) NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])