]> git.pld-linux.org Git - packages/zsh.git/blame - zsh-broken_configure.patch
- updated to 4.2.5
[packages/zsh.git] / zsh-broken_configure.patch
CommitLineData
1db54745 1diff -ruN zsh-4.2.1./configure.ac zsh-4.2.1/configure.ac
2--- zsh-4.2.1./configure.ac 2004-09-02 22:45:43.000000000 +0200
3+++ zsh-4.2.1/configure.ac 2004-09-02 22:46:02.619969336 +0200
4@@ -1763,61 +1763,6 @@
5 fi
6
7 dnl -----------
8-dnl if found tcsetpgrp, test to see if it actually works
9-dnl for instance, BeOS R4.51 does not support it yet
10-dnl -----------
11-AH_TEMPLATE([BROKEN_TCSETPGRP],
12-[Define to 1 if tcsetpgrp() doesn't work, ie BeOS R4.51.])
13-AC_ARG_WITH(tcsetpgrp,
14-[ --with-tcsetpgrp assumes that tcsetpgrp() exists and works correctly],[
15-case "x$withval" in
16- xyes) zsh_working_tcsetpgrp=yes;;
17- xno) zsh_working_tcsetpgrp=no;;
18- *) AC_ERROR([please use --with-tcsetpgrp=yes or --with-tcsetpgrp=no]);;
19-esac],[zsh_working_tcsetpgrp=check])
20-if test "x$ac_cv_func_tcsetpgrp" = xyes; then
21-case "x$zsh_working_tcsetpgrp" in
22- xcheck)
23- trap "" SIGTTOU > /dev/null 2>&1 || :
24- AC_CACHE_CHECK(if tcsetpgrp() actually works,
25- zsh_cv_sys_tcsetpgrp,
26- [AC_TRY_RUN([
27-#include <sys/types.h>
28-#include <unistd.h>
29-#include <fcntl.h>
30-main() {
31- int fd;
32- int ret;
33- fd=open("/dev/tty", O_RDWR);
34- if (fd < 0) exit(2);
35- ret=tcsetpgrp(fd, tcgetpgrp(fd));
36- if (ret < 0) exit(1);
37- exit(0);
38-}
39-],
40- zsh_cv_sys_tcsetpgrp=yes, [
41-case $? in
42- 1) zsh_cv_sys_tcsetpgrp=no;;
43- 2) zsh_cv_sys_tcsetpgrp=notty;;
44- *) zsh_cv_sys_tcsetpgrp=error;;
45-esac
46- ], zsh_cv_sys_tcsetpgrp=yes)])
47- case "x$zsh_cv_sys_tcsetpgrp" in
48- xno) AC_DEFINE(BROKEN_TCSETPGRP);;
49- xyes) :;;
50- xnotty) AC_MSG_ERROR([no controlling tty
51-Try running configure with --with-tcsetpgrp or --without-tcsetpgrp]);;
52- *) AC_MSG_ERROR([unexpected return status]);;
53- esac
54- trap - SIGTTOU > /dev/null 2>&1 || :
55- ;;
56- xyes) :;;
57- xno) AC_DEFINE(BROKEN_TCSETPGRP);;
58- *) AC_MSG_ERROR([unexpected value zsh_working_tcsetpgrp=$zsh_working_tcsetpgrp]);;
59-esac
60-fi
61-
62-dnl -----------
63 dnl test for faked getpwnam() entry, ie a single entry returned for any username
64 dnl for instance, BeOS R4.51 is not multiuser yet, and fakes getpwnam()
65 dnl test by looking up two usernames that shouldn't succeed, and compare entry
This page took 0.03647 seconds and 4 git commands to generate.