]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 290] Changes to compile on Solaris 8 with Forte 6.2
authorDarren Nickerson <darren.nickerson@ifax.com>
Mon, 17 Jun 2002 18:16:12 +0000 (18:16 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Mon, 17 Jun 2002 18:16:12 +0000 (18:16 +0000)
This seems to allow native compilation to succeed

configure

index b377a925c0c4d678ff9fbeb44944835d90dd919f..9dedc996e2247da2ca38ae88b0e92c61de178e5e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1091,7 +1091,7 @@ fi
 
 #
 # Some pre-processors (e.g. SunPRO prior to version 3.0.1)
-# leave comments in a file whe invoked with the -E option. 
+# leave comments in a file when invoked with the -E option. 
 # This messes up the default scheme used below to check for
 # function declarations.  Consequently we check for this
 # behaviour here and try to work around the problem with
@@ -1249,7 +1249,7 @@ if [ -z "$MAKECXXOVERRIDE" ]; then
        # must specify file.c++=.C.  We patch the Makefiles with explicit
        # construction rules to do this...
        #
-       if [ "`$CXX -V | $SED 's/.* C \([^ .]*\).*/\1/g'`" -lt "5" ]; then
+       if [ "`$CXX -V 2>&1 | sed 'q' | sed 's/.* C++ \([^ .]*\).*/\1/g'`" -lt "5" ]; then
            MAKECXXOVERRIDE="=.C";
        fi
        ;;