aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/configure.ac
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2010-09-09 13:16:38 +0000
committerNathan Sidwell <nathan@codesourcery.com>2010-09-09 13:16:38 +0000
commitc2a66c29c98ee9f824c229eabe1f81d93e5a89ad (patch)
treeea4f7a0be26c6c51dc2f9e032deacb708d741952 /gdb/gdbserver/configure.ac
parent8383c69606c8576d1d1852cda70763e1107f0316 (diff)
downloadgdb-c2a66c29c98ee9f824c229eabe1f81d93e5a89ad.zip
gdb-c2a66c29c98ee9f824c229eabe1f81d93e5a89ad.tar.gz
gdb-c2a66c29c98ee9f824c229eabe1f81d93e5a89ad.tar.bz2
* configure.ac: Add --enable-inprocess-agent option.
* configure: Rebuilt.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r--gdb/gdbserver/configure.ac28
1 files changed, 24 insertions, 4 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index 85b1a7b..b2fb0a0 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -357,15 +357,35 @@ AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]),
[gdbsrv_cv_have_visibility_hidden=no])
CFLAGS="$saved_cflags"
+
IPA_DEPFILES=""
+extra_libraries=""
-# Rather than allowing to build a broken IPA, we simply disable it if
-# we don't find a compiler supporting all the features we need.
+# check whether to enable the inprocess agent
if test "$ipa_obj" != "" \
-a "$gdbsrv_cv_have_sync_builtins" = yes \
-a "$gdbsrv_cv_have_visibility_hidden" = yes; then
- IPA_DEPFILES="$ipa_obj"
- extra_libraries="libinproctrace.so"
+ have_ipa=true
+else
+ have_ipa=false
+fi
+
+AC_ARG_ENABLE(inprocess-agent,
+AS_HELP_STRING([--enable-inprocess-agent], [inprocess agent]),
+[case "$enableval" in
+ yes) want_ipa=true ;;
+ no) want_ipa=false ;;
+ *) AC_MSG_ERROR([bad value $enableval for inprocess-agent]) ;;
+esac],
+[want_ipa=$have_ipa])
+
+if $want_ipa ; then
+ if $have_ipa ; then
+ IPA_DEPFILES="$ipa_obj"
+ extra_libraries="$extra_libraries libinproctrace.so"
+ else
+ AC_MSG_ERROR([inprocess agent not supported for this target])
+ fi
fi
AC_SUBST(GDBSERVER_DEPFILES)