summaryrefslogtreecommitdiff
blob: 6566c768a957636415f85f14975d5553990abefa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
--- configure	2004-04-13 23:28:02.000000000 +0200
+++ configure.new	2004-05-15 01:31:01.364191640 +0200
@@ -28863,80 +28863,6 @@
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
 fi
-echo "$as_me:$LINENO: result: $ac_cv_func_grantpt" >&5
-echo "${ECHO_T}$ac_cv_func_grantpt" >&6
-if test $ac_cv_func_grantpt = yes; then
-   if test "$cross_compiling" = yes; then
-  { echo "$as_me:$LINENO: WARNING: \"Ensure to disable unix98ptys when crosscompiling\"" >&5
-echo "$as_me: WARNING: \"Ensure to disable unix98ptys when crosscompiling\"" >&2;}
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-#define  _XOPEN_SOURCE 500
-
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-int main()
-{
-	char *name = NULL;
-        int master, err;
-
-        master = open("/dev/ptmx", O_RDWR | O_NOCTTY | O_NONBLOCK);
-        if (master >= 0) {
-                err = grantpt(master);
-                err = err || unlockpt(master);
-                if (!err) {
-                        name = ptsname(master);
-                } else {
-                        exit(-1);
-                }
-        } else {
-		exit(-1);
-	}
-	close(master);
-	exit(0);
-}
-
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-  (eval $ac_link) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
-  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-  (eval $ac_try) 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  cat >>confdefs.h <<\_ACEOF
-#define USE_UNIX98PTYS 1
-_ACEOF
-
-else
-  echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-{ echo "$as_me:$LINENO: WARNING: \"No unix98ptys\"" >&5
-echo "$as_me: WARNING: \"No unix98ptys\"" >&2;}
-fi
-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-
 
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */