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/configure.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/configure.in') 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