Mercurial > hg > octave-kai > gnulib-hg
annotate m4/unlinkdir.m4 @ 9025:52ee545b5885
Determine PATH_SEPARATOR and handle Windows PATH as well.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 01 Jul 2007 13:01:40 +0000 |
parents | 51a661790093 |
children | f6cba5a556ce |
rev | line source |
---|---|
8152
51a661790093
* m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
7172
diff
changeset
|
1 #serial 5 |
5852 | 2 |
8152
51a661790093
* m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
7172
diff
changeset
|
3 # Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc. |
5852 | 4 # |
5 # This file is free software; the Free Software Foundation | |
6 # gives unlimited permission to copy and/or distribute it, | |
7 # with or without modifications, as long as this notice is preserved. | |
8 | |
9 # Written by Paul Eggert. | |
10 | |
11 AC_DEFUN([gl_UNLINKDIR], | |
12 [ | |
13 AC_REQUIRE([AC_CANONICAL_HOST]) | |
6275 | 14 AC_CHECK_HEADERS_ONCE(priv.h) |
5852 | 15 |
16 AC_LIBOBJ([unlinkdir]) | |
17 | |
18 # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later, | |
19 # and Cygwin never let anyone (even root) unlink directories. | |
20 # If anyone knows of another system for which unlink can never | |
21 # remove a directory, please report it to <bug-coreutils@gnu.org>. | |
22 # Unfortunately this is difficult to test for, since it requires root access | |
23 # and might create garbage in the file system, | |
24 # so the code below simply relies on the kernel name and version number. | |
25 case $host in | |
8152
51a661790093
* m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
7172
diff
changeset
|
26 *-*-gnu[[0-9]]* | \ |
5852 | 27 *-*-linux-* | *-*-linux | \ |
8152
51a661790093
* m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
parents:
7172
diff
changeset
|
28 *-*-freebsd2.2* | *-*-freebsd[[3-9]]* | *-*-freebsd[[1-9]][[0-9]]* | \ |
5852 | 29 *-cygwin) |
30 AC_DEFINE([UNLINK_CANNOT_UNLINK_DIR], 1, | |
31 [Define to 1 if unlink (dir) cannot possibly succeed.]);; | |
32 esac | |
33 ]) |