summaryrefslogtreecommitdiff
path: root/include/makeinclude
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-04-09 05:57:47 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-04-09 05:57:47 +0000
commit2614635b28c9d2f882b8ca44ffaa6b6151651854 (patch)
tree3c3db91221c98bd8754cb88439283fd1b0a77f3c /include/makeinclude
parent95b7082372a2cda76d7c365456a9a97aac7faada (diff)
downloadATCD-2614635b28c9d2f882b8ca44ffaa6b6151651854.tar.gz
ChangeLogTag: Tue Apr 9 00:52:42 2002 Krishnakumar B <kitty@cs.wustl.edu>
Diffstat (limited to 'include/makeinclude')
-rw-r--r--include/makeinclude/platform_g++_common.GNU14
-rw-r--r--include/makeinclude/platform_sunos5_sunc++.GNU15
2 files changed, 15 insertions, 14 deletions
diff --git a/include/makeinclude/platform_g++_common.GNU b/include/makeinclude/platform_g++_common.GNU
index 89519b85541..0d667cedbc8 100644
--- a/include/makeinclude/platform_g++_common.GNU
+++ b/include/makeinclude/platform_g++_common.GNU
@@ -9,15 +9,19 @@ CXX_VERSION := $(shell $(CXX) -dumpversion)
#
ifeq ($(templates),)
ifeq (2.95,$(findstring 2.95,$(CXX_VERSION)))
- templates = "automatic"
+ templates = automatic
else
ifeq (3.,$(findstring 3.,$(CXX_VERSION)))
- templates = "automatic"
+ templates = automatic
else
ifeq (2.96,$(findstring 2.96,$(CXX_VERSION)))
- templates = "automatic"
+ templates = automatic
else
- templates = "explicit"
+ ifeq (egcs, $(findstring egcs, $(CXX_VERSION)))
+ templates = explicit
+ else
+ templates = explicit
+ endif
endif
endif
endif
@@ -25,7 +29,7 @@ endif
# Turn on the proper flags for explicit template instantiation.
#
-ifeq ("$(templates)","explicit")
+ifeq ($(templates),explicit)
ifeq ($(TEMPLATES_FLAG),) # Turn on flags if none is speficied.
TEMPLATES_FLAG=-fno-implicit-templates
endif
diff --git a/include/makeinclude/platform_sunos5_sunc++.GNU b/include/makeinclude/platform_sunos5_sunc++.GNU
index 2d23627c7ec..51f2a97cfce 100644
--- a/include/makeinclude/platform_sunos5_sunc++.GNU
+++ b/include/makeinclude/platform_sunos5_sunc++.GNU
@@ -106,7 +106,6 @@ else # ! 4.2
else # ! 5.1
inline = 1
exceptions = 1
- templates = "automatic"
endif # 5.2 or greater
endif #! 5.0
@@ -129,9 +128,7 @@ else # ! 4.2
CCFLAGS += -DACE_LACKS_RTTI
endif # ! rtti
else
- #### Support RTTI by default. And, use explicit template instantiation
- #### because automatic instantiation appears to be broken, at least
- #### with early releases of CC 5.0. And, use old iostreams.
+ #### Support RTTI by default. And, use old iostreams.
ifeq (C++ 5.0,$(findstring C++ 5.0,$(CC_VERSION)))
ifeq (1,$(stdcpplib))
CCFLAGS += -library=Cstd
@@ -163,18 +160,18 @@ endif # ! 4.2
#
ifeq ($(templates),)
ifeq (Compilers 4.2,$(findstring Compilers 4.2,$(CC_VERSION)))
- templates = "explicit"
+ templates = explicit
else
ifeq (C++ 5.0,$(findstring C++ 5.0,$(CC_VERSION)))
- templates = "explicit"
+ templates = explicit
else
ifeq (C++ 5.1,$(findstring C++ 5.1,$(CC_VERSION)))
- templates = "automatic"
+ templates = explicit
else
# Assume it's Forte Update 1 or later. Implicit template
# instantiation seems to work.
#
- templates = "automatic"
+ templates = automatic
endif
endif
endif
@@ -182,7 +179,7 @@ endif
# Turn on the proper flags for explicit template instantiation.
#
-ifeq ("$(templates)","explicit")
+ifeq ($(templates),explicit)
ifeq ($(TEMPLATES_FLAG),) # Turn on flags if none is speficied.
TEMPLATES_FLAG=-instances=explicit
endif