You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/09/12 06:37:31 UTC
svn commit: r574783 - in /incubator/stdcxx/branches/4.2.0/etc/config:
acc.config src/libc_decl.sh
Author: sebor
Date: Tue Sep 11 21:37:30 2007
New Revision: 574783
URL: http://svn.apache.org/viewvc?rev=574783&view=rev
Log:
2007-09-11 Martin Sebor <se...@roguewave.com>
* libc_decl.sh: Merged with r573411 of trunk:
http://svn.apache.org/viewvc?view=rev&revision=573411.
* acc.config: Same.
Modified:
incubator/stdcxx/branches/4.2.0/etc/config/acc.config
incubator/stdcxx/branches/4.2.0/etc/config/src/libc_decl.sh
Modified: incubator/stdcxx/branches/4.2.0/etc/config/acc.config
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.0/etc/config/acc.config?rev=574783&r1=574782&r2=574783&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.0/etc/config/acc.config (original)
+++ incubator/stdcxx/branches/4.2.0/etc/config/acc.config Tue Sep 11 21:37:30 2007
@@ -4,12 +4,32 @@
#
# configuration file for HP aCC on HP-UX
#
-##############################################################################
+########################################################################
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed
+# with this work for additional information regarding copyright
+# ownership. The ASF licenses this file to you under the Apache
+# License, Version 2.0 (the "License"); you may not use this file
+# except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# permissions and limitations under the License.
+#
+# Copyright 1999-2007 Rogue Wave Software, Inc.
+#
+########################################################################
CXX = aCC
CCVER := $(shell $(CXX) -V 2>&1 \
- | sed "s/.* \(A\.[0-9][0-9]*\.[0-9][0-9]\) .*/\1/")
+ | sed "s/.* \(A\.[0-9][0-9]*\.[0-9][0-9]\)[^0-9]*.*/\1/")
aCC_MAJOR := $(shell echo $(CCVER) | sed "s/[^.]*\.\([0-9]*\)\..*/\1/")
aCC_MINOR := $(shell echo $(CCVER) | sed "s/[^.]*\.[^.]*\.\([0-9]*\)/\1/")
@@ -72,13 +92,16 @@
# of the respective variables w/o underscores on HP-UX where the latter are
# used directly by the compiler and linker, respectively
-ifeq ($(shell [ $(aCC_MAJOR) -ge 5 ] && echo 1),1)
-# use -AA with aCC 5 and 6
+# use -AA by default, allow -Aa as an option
+use_Aa := $(filter -Aa,$(_CXXOPTS))
+
+ifneq ($(use_Aa),-Aa)
CXXFLAGS = -AA "$$"(_CXXOPTS)
CXXPRELINK =
CPPFLAGS = "$$"(_CPPOPTS)
LDFLAGS = -AA +nostl -Wl,+s "$$"(_LDOPTS)
else
+# -Aa was specified in _CXXOPTS
CXXFLAGS = -Aa +nostl "$$"(_CXXOPTS)
CXXPRELINK =
CPPFLAGS = -I$(TOPDIR)/include/ansi -I/usr/include "$$"(_CPPOPTS)
Modified: incubator/stdcxx/branches/4.2.0/etc/config/src/libc_decl.sh
URL: http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.0/etc/config/src/libc_decl.sh?rev=574783&r1=574782&r2=574783&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.0/etc/config/src/libc_decl.sh (original)
+++ incubator/stdcxx/branches/4.2.0/etc/config/src/libc_decl.sh Tue Sep 11 21:37:30 2007
@@ -20,7 +20,7 @@
# implied. See the License for the specific language governing
# permissions and limitations under the License.
#
-# Copyright 2001-2006 Rogue Wave Software.
+# Copyright 2001-2007 Rogue Wave Software, Inc.
#
##############################################################################
#
@@ -82,9 +82,13 @@
if [ "$CXX" = "aCC" ] ; then
cxx_major="`echo $CXX_VER | sed 's/.*\.\([0-9][0-9]*\)\..*/\1/'`"
+ echo $CXXFLAGS | grep '[-]Aa' >/dev/null 2>&1
+ has_Aa=$?
- if [ "$cxx_major" -le "05" ] ; then
- # prepend -I/usr/include to CXXOPTS for HP aCC on PA but not IPF
+ if [ "$cxx_major" -le "05" -a $has_Aa -eq 0 ] ; then
+ # prepend -I/usr/include to CXXOPTS for HP aCC when the -Aa
+ # command line option is specified (aCC 3 and 5 but not aCC
+ # 6 on IPF)
CXXFLAGS="$CXXFLAGS -I/usr/include"
fi