1 dnl Copyright (C) 2009 Sun Microsystems, Inc.
2 dnl This file is free software; Sun Microsystems, Inc.
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
7 AC_DEFUN([PANDORA_CHECK_C_VERSION],[
9 dnl Print version of C compiler
10 AC_MSG_CHECKING("C Compiler version--$GCC")
11 AS_IF([test "$GCC" = "yes"],[
12 CC_VERSION=`$CC --version | sed 1q`
13 ],[AS_IF([test "$SUNCC" = "yes"],[
14 CC_VERSION=`$CC -V 2>&1 | sed 1q`
19 AC_MSG_RESULT("$CC_VERSION")
24 AC_DEFUN([PANDORA_CHECK_CXX_VERSION], [
25 dnl Print version of CXX compiler
26 AC_MSG_CHECKING("C++ Compiler version")
27 AS_IF([test "$GCC" = "yes"],[
28 CXX_VERSION=`$CXX --version | sed 1q`
29 ],[AS_IF([test "$SUNCC" = "yes"],[
30 CXX_VERSION=`$CXX -V 2>&1 | sed 1q`
35 AC_MSG_RESULT("$CXX_VERSION")