autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_MKDIR/cross-cc/number-of-args??


From: Alexandre Duret-Lutz
Subject: Re: AC_MKDIR/cross-cc/number-of-args??
Date: 10 Jan 2001 18:32:43 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

>>> "Thomas" == Thomas E Dickey <address@hidden> writes:

[...]

 Thomas> it doesn't cover the problem areas (compilers that mistreat mkdir
 Thomas> may prototype it in dir.h and dirent.h, for instance).

Would it be sufficient to check for these headers and #include
them in the AC_TRY_COMPILE block?  (and is AC_HEADER_DIRENT
suitable for this?)

 >> 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 (".");],

[...]

-- 
Alexandre Duret-Lutz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]