206 ENABLE_INTREE_EC=yes
207 AC_MSG_RESULT([yes])
208 else
209 ENABLE_INTREE_EC=no
210 AC_MSG_RESULT([no])
211 fi
212
213 AC_SUBST(ENABLE_INTREE_EC)
214 ])
215
216 AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
217 [
218 #
219 # NATIVE_DEBUG_SYMBOLS
220 # This must be done after the toolchain is setup, since we're looking at objcopy.
221 #
222 AC_MSG_CHECKING([what type of native debug symbols to use])
223 AC_ARG_WITH([native-debug-symbols],
224 [AS_HELP_STRING([--with-native-debug-symbols],
225 [set the native debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])],
226 [],
227 [with_native_debug_symbols="zipped"])
228 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
229 AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
230
231 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
232
233 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
234 if test "x$OBJCOPY" = x; then
235 # enabling of enable-debug-symbols and can't find objcopy
236 # this is an error
237 AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
238 fi
239 fi
240
241 ENABLE_DEBUG_SYMBOLS=true
242 ZIP_DEBUGINFO_FILES=true
243 DEBUG_BINARIES=true
244 STRIP_POLICY=min_strip
245 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
246 ENABLE_DEBUG_SYMBOLS=false
247 ZIP_DEBUGINFO_FILES=false
|
206 ENABLE_INTREE_EC=yes
207 AC_MSG_RESULT([yes])
208 else
209 ENABLE_INTREE_EC=no
210 AC_MSG_RESULT([no])
211 fi
212
213 AC_SUBST(ENABLE_INTREE_EC)
214 ])
215
216 AC_DEFUN_ONCE([JDKOPT_SETUP_DEBUG_SYMBOLS],
217 [
218 #
219 # NATIVE_DEBUG_SYMBOLS
220 # This must be done after the toolchain is setup, since we're looking at objcopy.
221 #
222 AC_MSG_CHECKING([what type of native debug symbols to use])
223 AC_ARG_WITH([native-debug-symbols],
224 [AS_HELP_STRING([--with-native-debug-symbols],
225 [set the native debug symbol configuration (none, internal, external, zipped) @<:@zipped@:>@])],
226 [
227 if test "x$OPENJDK_TARGET_OS" = xaix; then
228 if test "x$withval" = xexternal || test "x$withval" = xzipped; then
229 AC_MSG_ERROR([AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols])
230 fi
231 fi
232 ],
233 [
234 if test "x$OPENJDK_TARGET_OS" = xaix; then
235 # AIX doesn't support 'zipped' so use 'internal' as default
236 with_native_debug_symbols="internal"
237 else
238 with_native_debug_symbols="zipped"
239 fi
240 ])
241 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols
242 AC_MSG_RESULT([$NATIVE_DEBUG_SYMBOLS])
243
244 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then
245
246 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then
247 if test "x$OBJCOPY" = x; then
248 # enabling of enable-debug-symbols and can't find objcopy
249 # this is an error
250 AC_MSG_ERROR([Unable to find objcopy, cannot enable native debug symbols])
251 fi
252 fi
253
254 ENABLE_DEBUG_SYMBOLS=true
255 ZIP_DEBUGINFO_FILES=true
256 DEBUG_BINARIES=true
257 STRIP_POLICY=min_strip
258 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then
259 ENABLE_DEBUG_SYMBOLS=false
260 ZIP_DEBUGINFO_FILES=false
|