[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnucap-devel] New gnucap development snapshot
From: |
Dan McMahill |
Subject: |
Re: [Gnucap-devel] New gnucap development snapshot |
Date: |
Wed, 06 Dec 2006 23:03:13 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.6) Gecko/20050412 |
al davis wrote:
There is a new development snapshot of gnucap available.
There's a package at:
http://www.gnucap.org/devel/gnucap-2006-12-04.tar.gz
http://geda.seul.org/dist/gnucap-2006-12-04.tar.gz
As usual, I am asking for feedback, particularly on non-Linux
and non-GNU systems.
Builds ok and seems to run some of the examples ok on both
solaris-2.9/sparc and NetBSD-2.0/alpha both using gcc3. You already
know of the issues with the sun studio compilers.
In terms of the __func__ bit not being defined everywhere, this seems to
work although I don't need that with gcc and the sun compilers are the
only non-gcc compilers I have access to.
##############################################################
# Test for __func__
#
AC_MSG_CHECKING([For a working C99 __func__])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
[[const char *foo = __func__;]])],
[ac_cv_cpp_func=yes],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
[[const char *foo = __FUNCTION__;]])],
[ac_cv_cpp_func=__FUNCTION__],
[ac_cv_cpp_func=no])]
)
if test "$ac_cv_cpp_func" = "__FUNCTION__"; then
CPPFLAGS="$CPPFLAGS -D__func__=__FUNCTION__"
AC_MSG_RESULT([__FUNCTION__])
elif test "$ac_cv_cpp_func" = "yes" ; then
AC_MSG_RESULT([__func__])
else
CPPFLAGS="$CPPFLAGS -D__func__='\"\"'"
AC_MSG_RESULT([no])
fi
#
##############################################################
-Dan
Re: [Gnucap-devel] New gnucap development snapshot,
Dan McMahill <=