From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19814 invoked by alias); 13 Dec 2001 05:46:28 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18651 invoked from network); 13 Dec 2001 05:45:07 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 13 Dec 2001 05:45:07 -0000 Received: from porcupine.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id VAA23494 for ; Wed, 12 Dec 2001 21:45:06 -0800 (PST) Received: from porcupine.cygnus.com (law@localhost) by porcupine.cygnus.com (8.11.6/8.11.6) with ESMTP id fBD5ikC02034 for ; Wed, 12 Dec 2001 22:44:46 -0700 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 To: gdb-patches@sources.redhat.com Reply-to: law@redhat.com From: law@redhat.com Subject: configure patch for hpux Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 12 Dec 2001 21:46:00 -0000 Message-ID: <2033.1008222286@porcupine.cygnus.com> X-SW-Source: 2001-12/txt/msg00337.txt.bz2 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(