On 10 Jan 2001, Alexandre Duret-Lutz wrote:
> >>> "gd" == Guido Draheim <[EMAIL PROTECTED]> writes:
> I have been using the following macro for a few weeks,
> it might not be really perfect but at least it works for the
> hosts I need (this include crosscompiling to mingw32).
it doesn't cover the problem areas (compilers that mistreat mkdir
may prototype it in dir.h and dirent.h, for instance).
> AC_DEFUN([AC_FUNC_MKDIR],
> [AC_CHECK_FUNCS([mkdir _mkdir])
> AC_CACHE_CHECK([whether mkdir takes one argument],
> [ac_cv_mkdir_takes_one_arg],
> [AC_TRY_COMPILE([
> #include <sys/stat.h>
> #ifdef HAVE_UNISTD_H
> # include <unistd.h>
> #endif
> ],[mkdir (".");],
> [ac_cv_mkdir_takes_one_arg=yes],[ac_cv_mkdir_takes_one_arg=no])])
> if test x"$ac_cv_mkdir_takes_one_arg" = xyes; then
> AC_DEFINE([MKDIR_TAKES_ONE_ARG],1,
> [Define if mkdir takes only one argument.])
> fi
> ])
>
>
--
T.E.Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com