8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build
authorsimonis
Wed, 16 Dec 2015 15:50:40 +0100 (2015-12-16)
changeset 34605 60c12f0860d6
parent 34604 2adbe257ce54
child 34606 83c270cae5e1
8145560: AIX: change '8036003: Add --with-debug-symbols' broke AIX build Reviewed-by: erikj
common/autoconf/generated-configure.sh
common/autoconf/jdk-options.m4
--- a/common/autoconf/generated-configure.sh	Wed Dec 16 14:48:35 2015 +0100
+++ b/common/autoconf/generated-configure.sh	Wed Dec 16 15:50:40 2015 +0100
@@ -4801,7 +4801,7 @@
 #CUSTOM_AUTOCONF_INCLUDE
 
 # Do not change or remove the following line, it is needed for consistency checks:
-DATE_WHEN_GENERATED=1450273627
+DATE_WHEN_GENERATED=1450277321
 
 ###############################################################################
 #
@@ -47701,8 +47701,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
--- a/common/autoconf/jdk-options.m4	Wed Dec 16 14:48:35 2015 +0100
+++ b/common/autoconf/jdk-options.m4	Wed Dec 16 15:50:40 2015 +0100
@@ -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])