changeset 7798:d58de0c4e214

2007-01-08 Bruno Haible <bruno@clisp.org> * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove PROVIDE_CANONICALIZE_FILENAME_MODE macro definition. * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of PROVIDE_CANONICALIZE_FILENAME_MODE. * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
author Bruno Haible <bruno@clisp.org>
date Mon, 08 Jan 2007 21:31:56 +0000
parents 10432bdf90d3
children 03006e334f20
files ChangeLog lib/canonicalize.h m4/canonicalize.m4 modules/canonicalize
diffstat 4 files changed, 13 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-01-08  Bruno Haible  <bruno@clisp.org>
+
+	* m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
+	PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
+	* lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
+	PROVIDE_CANONICALIZE_FILENAME_MODE.
+	* modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
+
 2007-01-08  Bruno Haible  <bruno@clisp.org>
 
 	* m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
--- a/lib/canonicalize.h
+++ b/lib/canonicalize.h
@@ -1,5 +1,5 @@
 /* Return the canonical absolute name of a given file.
-   Copyright (C) 1996-2006 Free Software Foundation, Inc.
+   Copyright (C) 1996-2007 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 #ifndef CANONICALIZE_H_
 # define CANONICALIZE_H_
 
-# ifdef PROVIDE_CANONICALIZE_FILENAME_MODE
+# if GNULIB_CANONICALIZE
 enum canonicalize_mode_t
   {
     /* All components must exist.  */
--- a/m4/canonicalize.m4
+++ b/m4/canonicalize.m4
@@ -1,6 +1,6 @@
-#serial 11
+#serial 12
 
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -14,6 +14,4 @@
     AC_CHECK_HEADERS_ONCE([sys/param.h])
     AC_CHECK_DECLS_ONCE([canonicalize_file_name])
     AC_CHECK_FUNCS_ONCE([canonicalize_file_name resolvepath])
-    AC_DEFINE([PROVIDE_CANONICALIZE_FILENAME_MODE], 1,
-      [Define to 1 to provide canonicalize_filename_mode.])
   ])
--- a/modules/canonicalize
+++ b/modules/canonicalize
@@ -17,6 +17,7 @@
 
 configure.ac:
 AC_FUNC_CANONICALIZE_FILE_NAME
+gl_MODULE_INDICATOR([canonicalize])
 
 Makefile.am: