aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/configure b/gdb/configure
index 2bc49d6..6ea3f58 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -10964,6 +10964,21 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
$as_echo "${PYTHON_CFLAGS}" >&6; }
fi
+
+ # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
+ # #if _SGIAPI
+ # #define siginfo __siginfo
+ # #endif
+ # The problem is that including Python causes some XOPEN macros to be
+ # unilaterally defined, and that in turn causes _SGIAPI to evaluate
+ # to false. So, we work around this issue by defining siginfo ourself
+ # though the command-line.
+ case "$gdb_host" in
+ irix*) if test "${GCC}" = yes; then
+ CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
+ fi
+ ;;
+ esac
else
# Even if Python support is not compiled in, we need to have these files
# included.