aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-05-13 13:33:30 +0000
committerAlan Modra <amodra@gmail.com>2002-05-13 13:33:30 +0000
commit8395426148f8340771c51d37f9244867974ef42a (patch)
tree5ce84d82d0f116bec3f46464fb2f099ddf123fac /bfd/configure.in
parentf5b4e9e4490692a3f3ae1727fe0a4c11fca5d847 (diff)
downloadgdb-8395426148f8340771c51d37f9244867974ef42a.zip
gdb-8395426148f8340771c51d37f9244867974ef42a.tar.gz
gdb-8395426148f8340771c51d37f9244867974ef42a.tar.bz2
* configure.in: Revert 2002-04-07. Instead, auto-configure
HAVE_ST_C_IMPL. * configure: Regenerate. * config.in: Regenerate. * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL or AIX_5_CORE.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index bb80fca..dc21db5 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -334,11 +334,18 @@ changequote([,])dnl
COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
;;
changequote(,)dnl
- rs6000-*-aix4.[4-9]* | powerpc-*-aix4.[4-9]* | \
- rs6000-*-aix4.3.[3-9]* | powerpc-*-aix4.3.[3-9]*)
+ rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
changequote([,])dnl
COREFILE=rs6000-core.lo
COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
+ # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
+ # have c_impl as a member of struct core_dumpx
+ AC_MSG_CHECKING([for c_impl in struct core_dumpx])
+ AC_TRY_COMPILE([#include <core.h>],
+ [struct core_dumpx c; c.c_impl = 0;],
+ [AC_DEFINE(HAVE_ST_C_IMPL, 1,
+ [Define if struct core_dumpx has member c_impl])
+ AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
;;
rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
rs6000-*-*) COREFILE=rs6000-core.lo ;;