[hpux] Fix build problem on hpux
John David Anglin
dave@hiauly1.hia.nrc.ca
Fri Mar 10 01:48:00 GMT 2006
> Index: acinclude.m4
> ===================================================================
> RCS file: /cvs/src/src/gdb/acinclude.m4,v
> retrieving revision 1.13
> diff -u -p -r1.13 acinclude.m4
> --- acinclude.m4 17 Dec 2005 22:33:59 -0000 1.13
> +++ acinclude.m4 10 Mar 2006 00:16:44 -0000
> @@ -987,3 +987,14 @@ if test x = y ; then
> fi
> ])
>
> +AC_DEFUN(gdb_AC_HPUX,
> +[AC_BEFORE([$0], [AC_TRY_COMPILE])dnl
> +AC_BEFORE([$0], [AC_TRY_RUN])dnl
> +AC_MSG_CHECKING(for HPUX)
> +AC_EGREP_CPP(yes,
> +[#ifdef _HPUX_SOURCE
> + yes
> +#endif
> +], [AC_MSG_RESULT(yes); AC_DEFINE(_XOPEN_SOURCE_EXTENDED)], AC_MSG_RESULT(no))
> +])
Did you try this with GCC 4.0.0 or later? These automatically define
_XOPEN_SOURCE_EXTENDED (libstdc++ needed it for wchar support). I'm
afraid that you might get warnings.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
More information about the Gdb-patches
mailing list