This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
configure patch for hpux
- From: law at redhat dot com
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 12 Dec 2001 22:44:46 -0700
- Subject: configure patch for hpux
- Reply-to: law at redhat dot com
aclocal.m4 includes code to find what options (if any) will put the host
compiler into an ANSI-like mode.
However, we do not want to go into strict ANSI mode as that turns off
useful extensions and breaks some systems's header files (almost a direct
quote from aclocal.m4).
For HPUX, using -Aa gives you an ANSI compiler, but has non-ANSI extensions
turned off. -Ae gives you ANSI with the extensions.
Amazingly enough, this actually matters as I've personally experienced on
an hpux10.20 system with the unbundled ANSI compiler installed.
This patch to aclocal.m4 uses -Ae instead of -Aa to get ANSI+extensions
on hpux systems.
I have checked that this patch does not cause any problems on both
hpux10.20 and hpux11.00 systems, with both the bundled and unbundled
compiler. It does fix compile-time failures when building with the
unbundled compiler on hpux10.20.
Some time ago I stepped down as PA maintainer for GDB; so I'm not going
to install the patch until I get authorization from the GDB maintainers.
* aclocal.m4 (proc_cc_stdc): Use -Ae, not -Aa to get ANSI+extensions
on hpux systems.
* configure: Rebuilt.
Index: aclocal.m4
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/aclocal.m4,v
retrieving revision 2.31
diff -c -3 -p -r2.31 aclocal.m4
*** aclocal.m4 2001/08/29 04:06:55 2.31
--- aclocal.m4 2001/12/13 05:29:22
*************** ac_save_CC="$CC"
*** 966,974 ****
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
! # HP-UX -Aa -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__
! for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc
-D__EXTENSIONS__"
do
CC="$ac_save_CC $ac_arg"
AC_TRY_COMPILE(
--- 966,974 ----
# breaks some systems' header files.
# AIX -qlanglvl=ansi
# Ultrix and OSF/1 -std1
! # HP-UX -Ae -D_HPUX_SOURCE
# SVR4 -Xc -D__EXTENSIONS__
! for ac_arg in "" -qlanglvl=ansi -std1 "-Ae -D_HPUX_SOURCE" "-Xc
-D__EXTENSIONS__"
do
CC="$ac_save_CC $ac_arg"
AC_TRY_COMPILE(