[xiph-commits] r7123 - icecast/trunk/m4

karl at dactyl.lonelymoon.com karl
Wed Jul 14 11:50:50 PDT 2004


Author: karl
Date: Wed Jul 14 11:50:50 2004
New Revision: 7123

Modified:
icecast/trunk/m4/xiph_compiler.m4
Log:
Add __func__ test if apps want it


Modified: icecast/trunk/m4/xiph_compiler.m4
===================================================================
--- icecast/trunk/m4/xiph_compiler.m4	2004-07-14 18:46:00 UTC (rev 7122)
+++ icecast/trunk/m4/xiph_compiler.m4	2004-07-14 18:50:49 UTC (rev 7123)
@@ -1,5 +1,5 @@
dnl xiph_compiler.m4
-dnl $Id: xiph_compiler.m4,v 1.5 2003/07/17 09:23:44 karl Exp $
+dnl $Id$

dnl XIPH_FUNC_VA_COPY
dnl Karl Heyes
@@ -166,3 +166,21 @@
done
$1="$xt_filtered $$1"
])dnl XIPH_VAR_PREPEND
+
+dnl XIPH_C__FUNC__
+dnl Karl Heyes <karl at xiph.org> 07/2004
+AC_DEFUN([XIPH_C__FUNC__],
+[dnl
+AC_MSG_CHECKING([for __func__])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM(,[const char *x = __func__;])],
+    [ AC_MSG_RESULT([yes])],
+    [ AH_TEMPLATE([__func__], [Replace __func__ if not supported])
+    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[const char *x = __FUNCTION__;])],
+        [ AC_DEFINE([__func__],[__FUNCTION__])
+        AC_MSG_RESULT([yes])],
+        [ AC_DEFINE([__func__],[""])
+        AC_MSG_RESULT([no])
+        ])
+    ])
+])dnl XIPH_C__FUNC__
+



More information about the commits mailing list