r25971: libreplace: remove AC_EXTENSION_FLAG as it's the same as AC_N_DEFINE
authorStefan Metzmacher <metze@samba.org>
Thu, 15 Nov 2007 13:55:48 +0000 (14:55 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 18 Jan 2008 16:02:10 +0000 (17:02 +0100)
metze
(cherry picked from commit 05b4619c5beff474488d1abe5e647acd94a3e20c)
(This used to be commit 58932ca791024bd9a543ff5e21bc26970ceed477)

source3/lib/replace/libreplace_cc.m4
source3/lib/replace/libreplace_macros.m4

index a01bf1b2904df87b2a5365bb10b8d2a462365b8c..a0722b2fcf8d65cf4a6e9288da59e65096588f05 100644 (file)
@@ -48,8 +48,8 @@ LIBREPLACE_C99_STRUCT_INIT([],[AC_MSG_WARN([c99 structure initializer are not su
 AC_PROG_INSTALL
 
 AC_ISC_POSIX
-AC_EXTENSION_FLAG(_XOPEN_SOURCE_EXTENDED)
-AC_EXTENSION_FLAG(_OSF_SOURCE)
+AC_N_DEFINE(_XOPEN_SOURCE_EXTENDED)
+AC_N_DEFINE(_OSF_SOURCE)
 
 AC_SYS_LARGEFILE
 
index 54e6b7ac75479d17af2ec73fe1ef88cc64cc0607..1856eacf66e4fc31f1fd1af1abdb7a626b5ff72f 100644 (file)
@@ -87,19 +87,6 @@ fi
 rm -f conftest*
 ])])
 
-AC_DEFUN([AC_EXTENSION_FLAG],
-[
-  cat >>confdefs.h <<\EOF
-#ifndef $1
-# define $1 1
-#endif
-EOF
-AH_VERBATIM([$1], [#ifndef $1
-# define $1 1
-#endif])
-])
-
-
 dnl see if a declaration exists for a function or variable
 dnl defines HAVE_function_DECL if it exists
 dnl AC_HAVE_DECL(var, includes)