Line | |
---|
1 | #serial 1
|
---|
2 |
|
---|
3 | dnl From Mumit Khan and Paul Eggert
|
---|
4 | dnl Determine whether mkdir accepts only one argument instead of the usual two.
|
---|
5 |
|
---|
6 | AC_DEFUN([PATCH_FUNC_MKDIR_TAKES_ONE_ARG],
|
---|
7 | [AC_CHECK_FUNCS(mkdir)
|
---|
8 | AC_CACHE_CHECK([whether mkdir takes only one argument],
|
---|
9 | patch_cv_mkdir_takes_one_arg,
|
---|
10 | [patch_cv_mkdir_takes_one_arg=no
|
---|
11 | if test $ac_cv_func_mkdir = yes; then
|
---|
12 | AC_TRY_COMPILE([
|
---|
13 | #include <sys/types.h>
|
---|
14 | #include <sys/stat.h>
|
---|
15 | ],
|
---|
16 | [mkdir (".", 0);],
|
---|
17 | ,
|
---|
18 | [AC_TRY_COMPILE([
|
---|
19 | #include <sys/types.h>
|
---|
20 | #include <sys/stat.h>
|
---|
21 | ],
|
---|
22 | [mkdir (".");],
|
---|
23 | patch_cv_mkdir_takes_one_arg=yes
|
---|
24 | )]
|
---|
25 | )
|
---|
26 | fi
|
---|
27 | ]
|
---|
28 | )
|
---|
29 | if test $patch_cv_mkdir_takes_one_arg = yes; then
|
---|
30 | AC_DEFINE([MKDIR_TAKES_ONE_ARG], 1,
|
---|
31 | [Define if mkdir takes only one argument.])
|
---|
32 | fi
|
---|
33 | ]
|
---|
34 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.