pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
1998-07-11
1998-07-11 15:19:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>
94cf725e1391b7507725f3e497340fd4a4ec5109 (
33
lines) (+
32
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added test for existance of __func__.
Rev: src/configure.in:1.214
1:
-
AC_REVISION("$Id: configure.in,v 1.
213
1998/07/
09
12
:
46
:
34
grubba Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
214
1998/07/
11
15
:
19
:
25
grubba Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
2103:
else :; fi #############################################################################
+
#
+
# __func__ is new in ISO C 9x
+
#
+
# It should expand to the name of the current function, and is
+
# useful for debug.
-
+
AC_MSG_CHECKING(if __func__ exists and works)
+
AC_CACHE_VAL(pike_cv_have_working___func__,
+
[
+
AC_TRY_RUN([
+
#ifdef HAVE_STRING_H
+
#include <string.h>
+
#else /* !HAVE_STRING_H */
+
#ifdef HAVE_STRINGS_H
+
#include <strings.h>
+
#endif /* HAVE_STRIGNS_H */
+
#endif /* HAVE_STRING_H */
+
int main()
+
{
+
exit(strcmp("main", __func__));
+
}
+
], pike_cv_have_working___func__=yes, pike_cv_have_working___func__=no,
+
pike_cv_have_working___func__=no)
+
])
+
AC_MSG_RESULT($pike_cv_have_working___func__)
+
if test "$pike_cv_have_working___func__" = yes; then
+
AC_DEFINE(HAVE_WORKING___FUNC__)
+
else :; fi
+
+
#############################################################################
+
AC_MSG_CHECKING(for gcc function attributes) AC_CACHE_VAL(pike_cv_gcc_attributes, [