diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:18:42 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-04-15 18:18:42 +0000 |
commit | 7a0415cfd70a02b2280d27556c6c54cef1c86e1a (patch) | |
tree | 37a88a1c4611ee37f2a3209873fc9a34a2624587 /configure.in | |
parent | 904b939cbd81a542303da2c58288b95b153106f5 (diff) | |
download | zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.gz zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.xz zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.zip |
zsh-3.1.5-pws-11 zsh-3.1.5-pws-11
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/configure.in b/configure.in index dd6bfee4b..5cfaec326 100644 --- a/configure.in +++ b/configure.in @@ -618,12 +618,6 @@ zsh_STRUCT_MEMBER([ #endif ], struct direct, d_stat) -dnl --------------- -dnl CHECK FUNCTIONS -dnl --------------- -AC_FUNC_GETPGRP -AC_FUNC_STRCOLL - dnl need to integrate this function dnl AC_FUNC_STRFTIME @@ -633,7 +627,22 @@ AC_CHECK_FUNCS(memcpy memmove \ sigblock sigsetmask sigrelse sighold killpg sigaction getrlimit \ sigprocmask setuid seteuid setreuid setresuid setsid strerror \ nis_list initgroups fchdir cap_get_proc readlink nice \ - getgrgid getgrnam getpwent getpwnam getpwuid) + getgrgid getgrnam getpwent getpwnam getpwuid setpgrp) + +dnl --------------- +dnl CHECK FUNCTIONS +dnl --------------- +if test $ac_cv_func_setpgrp = yes; then + AC_FUNC_GETPGRP +else + dnl If there is no setpgrp, the test for getpgrp(void) will fail + dnl because the program will not compile. However, in that case + dnl we can be reasonably confident we are not dealing with a + dnl Berkeleyesque system, so assume getpgrp does take void. + ac_cv_func_getpgrp_void=yes + AC_DEFINE(GETPGRP_VOID) +fi +AC_FUNC_STRCOLL if test $dynamic = yes; then AC_CHECK_FUNCS(dlopen dlerror dlsym dlclose load loadquery loadbind unload \ @@ -824,6 +833,17 @@ if test $zsh_cv_sys_superroot = yes; then AC_DEFINE(HAVE_SUPERROOT) fi +dnl CHECK FOR SYSTEMS REQUIRING GETCWD +AC_CACHE_CHECK(whether we should use the native getcwd, +zsh_cv_use_getcwd, +[case "${host_cpu}-${host_vendor}-${host_os}" in + *QNX*) zsh_cv_use_getcwd=no ;; + *) zsh_cv_use_getcwd=yes ;; + esac]) +if test $zsh_cv_use_getcwd = yes; then + AC_DEFINE(USE_GETCWD) +fi + dnl ------------- dnl CHECK FOR NIS dnl ------------- |