[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: configure.ac



  User: pcjc2   
  Date: 06/12/27 12:37:58

  Modified:    .        Tag: noscreen configure.ac
  Log:
  sync with trunk
  
  
  
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.31.2.1  +28 -0     eda/geda/gaf/utils/configure.ac
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: configure.ac
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/utils/configure.ac,v
  retrieving revision 1.31
  retrieving revision 1.31.2.1
  diff -u -b -r1.31 -r1.31.2.1
  --- configure.ac	22 Nov 2006 00:06:03 -0000	1.31
  +++ configure.ac	27 Dec 2006 17:37:58 -0000	1.31.2.1
  @@ -34,6 +34,34 @@
   AC_PROG_MAKE_SET
   AM_PROG_LEX
   
  +##############################################################3
  +# 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 "X$ac_cv_cpp_func" = "X__FUNCTION__"; then
  +        AC_MSG_RESULT([__FUNCTION__])
  +elif test "x$ac_cv_cpp_func" = "xyes" ; then
  +        AC_MSG_RESULT([__func__])
  +else
  +        AC_MSG_RESULT([no])
  +fi
  +if test "X$ac_cv_cpp_func" != "Xyes" ; then
  +        AC_DEFINE_UNQUOTED([__func__], [$ac_cv_cpp_func], [Define to be a __func__ replacement])
  +fi
  +
  +#
  +##############################################################3
  +
   #########################################################################
   # 
   # Misc win32 / mingw checks and variables start
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs