From 7d5d83ececdc43f0523b7b231537e230d9686034 Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel" Date: Thu, 30 Jul 1998 20:39:30 +0000 Subject: 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) --- source3/acconfig.h | 2 ++ source3/configure.in | 5 +++++ 2 files changed, 7 insertions(+) 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 echo yes;AC_DEFINE(HAVE_SOCK_SIN_LEN), echo no) +echo $ac_n "checking for __FILE__ macro ... $ac_c" +AC_TRY_COMPILE([#include ], [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 ], [printf("%s\n", __FUNCTION__);], echo yes;AC_DEFINE(HAVE_FUNCTION_MACRO), -- cgit