Use an all-permissive copyright notice, recommended by RMS.
[gnulib.git] / m4 / mkdtemp.m4
1 # mkdtemp.m4 serial 3
2 dnl Copyright (C) 2001-2003 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
6
7 AC_DEFUN([gt_FUNC_MKDTEMP],
8 [
9   AC_REPLACE_FUNCS(mkdtemp)
10   if test $ac_cv_func_mkdtemp = no; then
11     gl_PREREQ_MKDTEMP
12   fi
13 ])
14
15 # Prerequisites of lib/mkdtemp.c
16 AC_DEFUN([gl_PREREQ_MKDTEMP],
17 [
18   AC_REQUIRE([AC_HEADER_STAT])
19   AC_CHECK_HEADERS_ONCE(sys/time.h unistd.h)
20   AC_CHECK_HEADERS(time.h)
21   AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])
22   AC_CHECK_FUNCS(gettimeofday)
23 ])