summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/acconfig.h2
-rw-r--r--source3/configure.in5
2 files changed, 7 insertions, 0 deletions
diff --git a/source3/acconfig.h b/source3/acconfig.h
index c99397a82d..b0dbd8bceb 100644
--- a/source3/acconfig.h
+++ b/source3/acconfig.h
@@ -49,4 +49,6 @@
#undef HAVE_PAM_AUTHENTICATE
#undef HAVE_BROKEN_GETGROUPS
#undef REPLACE_INET_NTOA
+#undef HAVE_FILE_MACRO
#undef HAVE_FUNCTION_MACRO
+
diff --git a/source3/configure.in b/source3/configure.in
index 10df01b61c..4280cd9e21 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -151,6 +151,11 @@ AC_TRY_COMPILE([#include <sys/types.h>
echo yes;AC_DEFINE(HAVE_SOCK_SIN_LEN),
echo no)
+echo $ac_n "checking for __FILE__ macro ... $ac_c"
+AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FILE__);],
+echo yes;AC_DEFINE(HAVE_FILE_MACRO),
+echo no)
+
echo $ac_n "checking for __FUNCTION__ macro ... $ac_c"
AC_TRY_COMPILE([#include <stdio.h>], [printf("%s\n", __FUNCTION__);],
echo yes;AC_DEFINE(HAVE_FUNCTION_MACRO),