aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-14 05:31:46 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-14 05:31:46 +0000
commita85f51e7ac4f6c295077d022e9383d286a9727a4 (patch)
tree7f7201391024e425d54ad7699c73908588cfc964 /gdb/configure
parent313e35ee7c86c3b28c3c189e463a3de14d7ac2e9 (diff)
downloadgdb-a85f51e7ac4f6c295077d022e9383d286a9727a4.zip
gdb-a85f51e7ac4f6c295077d022e9383d286a9727a4.tar.gz
gdb-a85f51e7ac4f6c295077d022e9383d286a9727a4.tar.bz2
2002-02-14 Daniel Jacobowitz <drow@mvista.com>
* configure.tgt: Configure gdbserver only for known working targets. Set ${build_gdbserver} instead of modifying ${configdirs}. * configure.in: Check ${build_gdbserver}. Put gdbserver/ into SUBDIRS if it is configured. Update comment for ${nativefile}. * configure: Regenerated.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure40
1 files changed, 24 insertions, 16 deletions
diff --git a/gdb/configure b/gdb/configure
index e34f29e..8a9500b 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -8470,16 +8470,12 @@ GDB_MULTI_ARCH=`sed -n '
s/GDB_MULTI_ARCH[ ]*=[ ]*\([^ ]*\)[ ]*/\1/p
' ${target_makefile_frag}`
-# these really aren't orthogonal true/false values of the same condition,
-# but shells are slow enough that I like to reuse the test conditions
-# whenever possible
if test "${target}" = "${host}"; then
+# We pick this up from the host configuration file (.mh) because we
+# do not have a native configuration Makefile fragment.
nativefile=`sed -n '
s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
' ${host_makefile_frag}`
-# else
-# GDBserver is only useful in a "native" environment
-# configdirs=`echo $configdirs | sed 's/gdbserver//'`
fi
@@ -8513,12 +8509,24 @@ case "${GDB_MULTI_ARCH}" in
*) { echo "configure: error: "GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
esac
-
SUBDIRS="doc testsuite nlm"
if test "${enable_multi_ice}" = "yes"; then
SUBDIRS="${SUBDIRS} multi-ice"
fi
+# ``gdbserver'' can only be built in a native configuration.
+if test x"${target}" = x"${host}"; then
+ echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
+echo "configure:8521: checking whether gdbserver is supported on this host" >&5
+ if test x"${build_gdbserver}" = xyes ; then
+ configdirs="${configdirs} gdbserver"
+ SUBDIRS="${SUBDIRS} gdbserver"
+ echo "$ac_t""yes" 1>&6
+ else
+ echo "$ac_t""no" 1>&6
+ fi
+fi
+
# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
@@ -8571,7 +8579,7 @@ fi
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
-echo "configure:8575: checking whether ln -s works" >&5
+echo "configure:8583: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8595,12 +8603,12 @@ fi
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
-echo "configure:8599: checking for Cygwin environment" >&5
+echo "configure:8607: checking for Cygwin environment" >&5
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8604 "configure"
+#line 8612 "configure"
#include "confdefs.h"
int main() {
@@ -8611,7 +8619,7 @@ int main() {
return __CYGWIN__;
; return 0; }
EOF
-if { (eval echo configure:8615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_cygwin=yes
else
@@ -8628,19 +8636,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6
CYGWIN=
test "$ac_cv_cygwin" = yes && CYGWIN=yes
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
-echo "configure:8632: checking for mingw32 environment" >&5
+echo "configure:8640: checking for mingw32 environment" >&5
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 8637 "configure"
+#line 8645 "configure"
#include "confdefs.h"
int main() {
return __MINGW32__;
; return 0; }
EOF
-if { (eval echo configure:8644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:8652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ac_cv_mingw32=yes
else
@@ -8659,7 +8667,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
-echo "configure:8663: checking for executable suffix" >&5
+echo "configure:8671: checking for executable suffix" >&5
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -8669,7 +8677,7 @@ else
rm -f conftest*
echo 'int main () { return 0; }' > conftest.$ac_ext
ac_cv_exeext=
- if { (eval echo configure:8673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+ if { (eval echo configure:8681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
for file in conftest.*; do
case $file in
*.c | *.o | *.obj | *.ilk | *.pdb) ;;