OSDN Git Service

* include/posix.h: .dylib is used on all Apple MACH platforms.
[pf3gnuchains/gcc-fork.git] / fastjar / acinclude.m4
1 dnl Define MKDIR_TAKES_ONE_ARG if mkdir accepts only one argument instead
2 dnl of the usual 2.
3 AC_DEFUN([gcc_AC_FUNC_MKDIR_TAKES_ONE_ARG],
4 [AC_CACHE_CHECK([if mkdir takes one argument], gcc_cv_mkdir_takes_one_arg,
5 [AC_TRY_COMPILE([
6 #include <sys/types.h>
7 #ifdef HAVE_SYS_STAT_H
8 # include <sys/stat.h>
9 #endif
10 #ifdef HAVE_UNISTD_H
11 # include <unistd.h>
12 #endif
13 #ifdef HAVE_DIRECT_H
14 # include <direct.h>
15 #endif], [mkdir ("foo", 0);],
16          gcc_cv_mkdir_takes_one_arg=no, gcc_cv_mkdir_takes_one_arg=yes)])
17 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
18    AC_DEFINE(MKDIR_TAKES_ONE_ARG, 1, [Define if host mkdir takes a
19 single argument.])
20 fi
21 ])