summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorChristopher R. Hertel <crh@samba.org>1998-07-30 20:39:30 +0000
committerChristopher R. Hertel <crh@samba.org>1998-07-30 20:39:30 +0000
commit7d5d83ececdc43f0523b7b231537e230d9686034 (patch)
tree450c4a9872061af1349f5a382012857543ab0701 /source3
parent555616b85e4de934d9230bcdc17ddf945ac11510 (diff)
downloadsamba-7d5d83ececdc43f0523b7b231537e230d9686034.tar.gz
samba-7d5d83ececdc43f0523b7b231537e230d9686034.tar.bz2
samba-7d5d83ececdc43f0523b7b231537e230d9686034.zip
In addition to the HAVE_FUNCTION_MACRO test that Andrew used as an example,
I also need to know if the __FILE__ macro exists. I followed the example, but ran into two problems: 1) I don't have the autoconf tools installed. 2) The instructions did not say which files should be checked in after running autoheader and autoconf. So I'm checking in the modified acconfig.h and configure.in on the assumption that the next time someone runs autoheader and autoconf my new tests will be included. Hope that's not a problem (and I'll try to grab a copy of autoconf from somewhere). Chris -)----- (This used to be commit 0637a49d5d6c03f10d462be4e92c4e4bbf7ff6c2)
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),