ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/ptytty.m4
(Generate patch)

Comparing libptytty/ptytty.m4 (file contents):
Revision 1.17 by root, Mon May 5 16:51:28 2008 UTC vs.
Revision 1.19 by sf-exg, Sun Mar 28 08:39:34 2010 UTC

24 setresuid \ 24 setresuid \
25) 25)
26 26
27have_clone=no 27have_clone=no
28 28
29AC_MSG_CHECKING(for /dev/ptym/clone)
30if test -e /dev/ptym/clone; then
31 AC_MSG_RESULT(yes)
32 AC_DEFINE(HAVE_DEV_CLONE, 1, [Define to 1 if you have /dev/ptym/clone])
33 AC_DEFINE(CLONE_DEVICE, "/dev/ptym/clone", [clone device filename])
34 have_clone=yes
35else
36 AC_MSG_RESULT(no)
37fi
38
39AC_MSG_CHECKING(for /dev/ptc) 29AC_MSG_CHECKING(for /dev/ptc)
40if test -e /dev/ptc; then 30if test -e /dev/ptc; then
41 AC_MSG_RESULT(yes) 31 AC_MSG_RESULT(yes)
42 AC_DEFINE(HAVE_DEV_PTC, 1, [Define to 1 if you have /dev/ptc])
43 AC_DEFINE(CLONE_DEVICE, "/dev/ptc", [clone device filename]) 32 AC_DEFINE(CLONE_DEVICE, "/dev/ptc", [clone device filename])
44 have_clone=yes 33 have_clone=yes
45else 34else
46 AC_MSG_RESULT(no) 35 AC_MSG_RESULT(no)
47fi 36fi
126dnl# -------------------------------------------------------------------------- 115dnl# --------------------------------------------------------------------------
127dnl# check for host field in utmp structure 116dnl# check for host field in utmp structure
128 117
129dnl# -------------------------------------------- 118dnl# --------------------------------------------
130AC_CHECK_HEADERS(utmp.h, 119AC_CHECK_HEADERS(utmp.h,
131[AC_CACHE_CHECK([for struct utmp], struct_utmp, 120[AC_CACHE_CHECK([for struct utmp], pt_cv_struct_utmp,
132[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 121[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
133#include <utmp.h>]], [[struct utmp ut;]])],[struct_utmp=yes],[struct_utmp=no])]) 122#include <utmp.h>]], [[struct utmp ut;]])],[pt_cv_struct_utmp=yes],[pt_cv_struct_utmp=no])])
134if test x$struct_utmp = xyes; then 123if test x$pt_cv_struct_utmp = xyes; then
135 AC_DEFINE(HAVE_STRUCT_UTMP, 1, Define if utmp.h has struct utmp) 124 AC_DEFINE(HAVE_STRUCT_UTMP, 1, Define if utmp.h has struct utmp)
136fi 125fi
137] 126]
138 127
139AC_CACHE_CHECK(for ut_host in utmp struct, struct_utmp_host, 128AC_CACHE_CHECK(for ut_host in utmp struct, pt_cv_struct_utmp_host,
140[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 129[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
141#include <utmp.h>]], [[struct utmp ut; ut.ut_host;]])],[struct_utmp_host=yes],[struct_utmp_host=no])]) 130#include <utmp.h>]], [[struct utmp ut; ut.ut_host;]])],[pt_cv_struct_utmp_host=yes],[pt_cv_struct_utmp_host=no])])
142if test x$struct_utmp_host = xyes; then 131if test x$pt_cv_struct_utmp_host = xyes; then
143 AC_DEFINE(HAVE_UTMP_HOST, 1, Define if struct utmp contains ut_host) 132 AC_DEFINE(HAVE_UTMP_HOST, 1, Define if struct utmp contains ut_host)
144fi 133fi
145 134
146AC_CACHE_CHECK(for ut_pid in utmp struct, struct_utmp_pid, 135AC_CACHE_CHECK(for ut_pid in utmp struct, pt_cv_struct_utmp_pid,
147[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 136[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
148#include <utmp.h>]], [[struct utmp ut; ut.ut_pid;]])],[struct_utmp_pid=yes],[struct_utmp_pid=no])]) 137#include <utmp.h>]], [[struct utmp ut; ut.ut_pid;]])],[pt_cv_struct_utmp_pid=yes],[pt_cv_struct_utmp_pid=no])])
149if test x$struct_utmp_pid = xyes; then 138if test x$pt_cv_struct_utmp_pid = xyes; then
150 AC_DEFINE(HAVE_UTMP_PID, 1, Define if struct utmp contains ut_pid) 139 AC_DEFINE(HAVE_UTMP_PID, 1, Define if struct utmp contains ut_pid)
151fi 140fi
152) dnl# AC_CHECK_HEADERS(utmp.h 141) dnl# AC_CHECK_HEADERS(utmp.h
153 142
154dnl# -------------------------------------------- 143dnl# --------------------------------------------
155 144
156AC_CHECK_HEADERS(utmpx.h, 145AC_CHECK_HEADERS(utmpx.h,
157[AC_CACHE_CHECK([for struct utmpx], struct_utmpx, 146[AC_CACHE_CHECK([for struct utmpx], pt_cv_struct_utmpx,
158[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 147[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
159#include <utmpx.h>]], [[struct utmpx ut;]])],[struct_utmpx=yes],[struct_utmpx=no])]) 148#include <utmpx.h>]], [[struct utmpx ut;]])],[pt_cv_struct_utmpx=yes],[pt_cv_struct_utmpx=no])])
160if test x$struct_utmpx = xyes; then 149if test x$pt_cv_struct_utmpx = xyes; then
161 AC_DEFINE(HAVE_STRUCT_UTMPX, 1, Define if utmpx.h has struct utmpx) 150 AC_DEFINE(HAVE_STRUCT_UTMPX, 1, Define if utmpx.h has struct utmpx)
162fi 151fi
163] 152]
164 153
165AC_CACHE_CHECK(for host in utmpx struct, struct_utmpx_host, 154AC_CACHE_CHECK(for host in utmpx struct, pt_cv_struct_utmpx_host,
166[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 155[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
167#include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[struct_utmpx_host=yes],[struct_utmpx_host=no])]) 156#include <utmpx.h>]], [[struct utmpx utx; utx.ut_host;]])],[pt_cv_struct_utmpx_host=yes],[pt_cv_struct_utmpx_host=no])])
168if test x$struct_utmpx_host = xyes; then 157if test x$pt_cv_struct_utmpx_host = xyes; then
169 AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host) 158 AC_DEFINE(HAVE_UTMPX_HOST, 1, Define if struct utmpx contains ut_host)
170fi 159fi
171 160
172AC_CACHE_CHECK(for session in utmpx struct, struct_utmpx_session, 161AC_CACHE_CHECK(for session in utmpx struct, pt_cv_struct_utmpx_session,
173[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 162[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
174#include <utmpx.h>]], [[struct utmpx utx; utx.ut_session;]])],[struct_utmpx_session=yes],[struct_utmpx_session=no])]) 163#include <utmpx.h>]], [[struct utmpx utx; utx.ut_session;]])],[pt_cv_struct_utmpx_session=yes],[pt_cv_struct_utmpx_session=no])])
175if test x$struct_utmpx_session = xyes; then 164if test x$pt_cv_struct_utmpx_session = xyes; then
176 AC_DEFINE(HAVE_UTMPX_SESSION, 1, Define if struct utmpx contains ut_session) 165 AC_DEFINE(HAVE_UTMPX_SESSION, 1, Define if struct utmpx contains ut_session)
177fi 166fi
178) dnl# AC_CHECK_HEADERS(utmpx.h 167) dnl# AC_CHECK_HEADERS(utmpx.h
179 168
180dnl# -------------------------------------------------------------------------- 169dnl# --------------------------------------------------------------------------
181dnl# check for struct lastlog 170dnl# check for struct lastlog
182AC_CACHE_CHECK(for struct lastlog, struct_lastlog, 171AC_CACHE_CHECK(for struct lastlog, pt_cv_struct_lastlog,
183[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 172[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
184#include <utmp.h> 173#include <utmp.h>
185#ifdef HAVE_LASTLOG_H 174#ifdef HAVE_LASTLOG_H
186#include <lastlog.h> 175#include <lastlog.h>
187#endif 176#endif
188]], [[struct lastlog ll;]])],[struct_lastlog=yes],[struct_lastlog=no])]) 177]], [[struct lastlog ll;]])],[pt_cv_struct_lastlog=yes],[pt_cv_struct_lastlog=no])])
189if test x$struct_lastlog = xyes; then 178if test x$pt_cv_struct_lastlog = xyes; then
190 AC_DEFINE(HAVE_STRUCT_LASTLOG, 1, Define if utmp.h or lastlog.h has struct lastlog) 179 AC_DEFINE(HAVE_STRUCT_LASTLOG, 1, Define if utmp.h or lastlog.h has struct lastlog)
191fi 180fi
192 181
193dnl# check for struct lastlogx 182dnl# check for struct lastlogx
194AC_CACHE_CHECK(for struct lastlogx, struct_lastlogx, 183AC_CACHE_CHECK(for struct lastlogx, pt_cv_struct_lastlogx,
195[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 184[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
196#include <utmpx.h> 185#include <utmpx.h>
197#ifdef HAVE_LASTLOG_H 186#ifdef HAVE_LASTLOG_H
198#include <lastlog.h> 187#include <lastlog.h>
199#endif 188#endif
200]], [[struct lastlogx ll;]])],[struct_lastlogx=yes],[struct_lastlogx=no])]) 189]], [[struct lastlogx ll;]])],[pt_cv_struct_lastlogx=yes],[pt_cv_struct_lastlogx=no])])
201if test x$struct_lastlogx = xyes; then 190if test x$pt_cv_struct_lastlogx = xyes; then
202 AC_DEFINE(HAVE_STRUCT_LASTLOGX, 1, Define if utmpx.h or lastlog.h has struct lastlogx) 191 AC_DEFINE(HAVE_STRUCT_LASTLOGX, 1, Define if utmpx.h or lastlog.h has struct lastlogx)
203fi 192fi
204 193
205dnl# -------------------------------------------------------------------------- 194dnl# --------------------------------------------------------------------------
206dnl# FIND FILES 195dnl# FIND FILES
207dnl# -------------------------------------------------------------------------- 196dnl# --------------------------------------------------------------------------
208 197
209dnl# find utmp 198dnl# find utmp
210AC_CACHE_CHECK(where utmp is located, path_utmp, 199AC_CACHE_CHECK(where utmp is located, pt_cv_path_utmp,
211[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 200[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
212#include <stdlib.h> 201#include <stdlib.h>
213#include <sys/types.h> 202#include <sys/types.h>
214#include <utmp.h> 203#include <utmp.h>
215#include <errno.h> 204#include <errno.h>
232 fprintf(f, "%s\n", *u); 221 fprintf(f, "%s\n", *u);
233 exit(0); 222 exit(0);
234 } 223 }
235 } 224 }
236 exit(0); 225 exit(0);
237}]])],[path_utmp=`cat conftestval`],[path_utmp=],[dnl 226}]])],[pt_cv_path_utmp=`cat conftestval`],[pt_cv_path_utmp=],[dnl
238 AC_MSG_WARN(Define UTMP_FILE in config.h manually)])]) 227 AC_MSG_WARN(Define UTMP_FILE in config.h manually)])])
239if test x$path_utmp != x; then 228if test x$pt_cv_path_utmp != x; then
240 AC_DEFINE_UNQUOTED(UTMP_FILE, "$path_utmp", Define location of utmp) 229 AC_DEFINE_UNQUOTED(UTMP_FILE, "$pt_cv_path_utmp", Define location of utmp)
241fi 230fi
242 231
243dnl# -------------------------------------------------------------------------- 232dnl# --------------------------------------------------------------------------
244 233
245dnl# find utmpx - if a utmp file exists at the same location and is more than 234dnl# find utmpx - if a utmp file exists at the same location and is more than
246dnl# a day newer, then dump the utmpx. People leave lots of junk around. 235dnl# a day newer, then dump the utmpx. People leave lots of junk around.
247AC_CACHE_CHECK(where utmpx is located, path_utmpx, 236AC_CACHE_CHECK(where utmpx is located, pt_cv_path_utmpx,
248[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 237[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
249#include <stdlib.h> 238#include <stdlib.h>
250#include <sys/types.h> 239#include <sys/types.h>
251#include <utmpx.h> 240#include <utmpx.h>
252#include <errno.h> 241#include <errno.h>
279 fprintf(f, "%s\n", *u); 268 fprintf(f, "%s\n", *u);
280 exit(0); 269 exit(0);
281 } 270 }
282 } 271 }
283 exit(0); 272 exit(0);
284}]])],[path_utmpx=`cat conftestval`],[path_utmpx=],[dnl 273}]])],[pt_cv_path_utmpx=`cat conftestval`],[pt_cv_path_utmpx=],[dnl
285 AC_MSG_WARN(Define UTMPX_FILE in config.h manually)])]) 274 AC_MSG_WARN(Define UTMPX_FILE in config.h manually)])])
286if test x$path_utmpx != x; then 275if test x$pt_cv_path_utmpx != x; then
287 AC_DEFINE_UNQUOTED(UTMPX_FILE, "$path_utmpx", Define location of utmpx) 276 AC_DEFINE_UNQUOTED(UTMPX_FILE, "$pt_cv_path_utmpx", Define location of utmpx)
288fi 277fi
289 278
290dnl# -------------------------------------------------------------------------- 279dnl# --------------------------------------------------------------------------
291 280
292dnl# find wtmp 281dnl# find wtmp
293AC_CACHE_CHECK(where wtmp is located, path_wtmp, 282AC_CACHE_CHECK(where wtmp is located, pt_cv_path_wtmp,
294[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 283[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
295#include <stdlib.h> 284#include <stdlib.h>
296#include <sys/types.h> 285#include <sys/types.h>
297#ifdef HAVE_UTMP_H 286#ifdef HAVE_UTMP_H
298#include <utmp.h> 287#include <utmp.h>
317 fprintf(f, "%s\n", *w); 306 fprintf(f, "%s\n", *w);
318 exit(0); 307 exit(0);
319 } 308 }
320 } 309 }
321 exit(0); 310 exit(0);
322}]])],[path_wtmp=`cat conftestval`],[path_wtmp=],[dnl 311}]])],[pt_cv_path_wtmp=`cat conftestval`],[pt_cv_path_wtmp=],[dnl
323 AC_MSG_WARN(Define WTMP_FILE in config.h manually)])]) 312 AC_MSG_WARN(Define WTMP_FILE in config.h manually)])])
324if test x$path_wtmp != x; then 313if test x$pt_cv_path_wtmp != x; then
325 AC_DEFINE_UNQUOTED(WTMP_FILE, "$path_wtmp", Define location of wtmp) 314 AC_DEFINE_UNQUOTED(WTMP_FILE, "$pt_cv_path_wtmp", Define location of wtmp)
326fi 315fi
327dnl# -------------------------------------------------------------------------- 316dnl# --------------------------------------------------------------------------
328 317
329dnl# find wtmpx 318dnl# find wtmpx
330AC_CACHE_CHECK(where wtmpx is located, path_wtmpx, 319AC_CACHE_CHECK(where wtmpx is located, pt_cv_path_wtmpx,
331[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 320[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
332#include <stdlib.h> 321#include <stdlib.h>
333#ifdef HAVE_UTMPX_H 322#ifdef HAVE_UTMPX_H
334#include <utmpx.h> 323#include <utmpx.h>
335#endif 324#endif
353 fprintf(f, "%s\n", *w); 342 fprintf(f, "%s\n", *w);
354 exit(0); 343 exit(0);
355 } 344 }
356 } 345 }
357 exit(0); 346 exit(0);
358}]])],[path_wtmpx=`cat conftestval`],[path_wtmpx=],[dnl 347}]])],[pt_cv_path_wtmpx=`cat conftestval`],[pt_cv_path_wtmpx=],[dnl
359 AC_MSG_WARN(Define WTMPX_FILE in config.h manually)])]) 348 AC_MSG_WARN(Define WTMPX_FILE in config.h manually)])])
360if test x$path_wtmpx != x; then 349if test x$pt_cv_path_wtmpx != x; then
361 AC_DEFINE_UNQUOTED(WTMPX_FILE, "$path_wtmpx", Define location of wtmpx) 350 AC_DEFINE_UNQUOTED(WTMPX_FILE, "$pt_cv_path_wtmpx", Define location of wtmpx)
362fi 351fi
363dnl# -------------------------------------------------------------------------- 352dnl# --------------------------------------------------------------------------
364 353
365dnl# find lastlog 354dnl# find lastlog
366AC_CACHE_CHECK(where lastlog is located, path_lastlog, 355AC_CACHE_CHECK(where lastlog is located, pt_cv_path_lastlog,
367[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 356[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
368#include <stdlib.h> 357#include <stdlib.h>
369#include <sys/types.h> 358#include <sys/types.h>
370#ifdef HAVE_UTMPX_H 359#ifdef HAVE_UTMPX_H
371#include <utmpx.h> 360#include <utmpx.h>
394 fprintf(f, "%s\n", *w); 383 fprintf(f, "%s\n", *w);
395 exit(0); 384 exit(0);
396 } 385 }
397 } 386 }
398 exit(0); 387 exit(0);
399}]])],[path_lastlog=`cat conftestval`],[path_lastlog=],[dnl 388}]])],[pt_cv_path_lastlog=`cat conftestval`],[pt_cv_path_lastlog=],[dnl
400 AC_MSG_WARN(Define LASTLOG_FILE in config.h manually)])]) 389 AC_MSG_WARN(Define LASTLOG_FILE in config.h manually)])])
401if test x$path_lastlog != x; then 390if test x$pt_cv_path_lastlog != x; then
402 AC_DEFINE_UNQUOTED(LASTLOG_FILE, "$path_lastlog", Define location of lastlog) 391 AC_DEFINE_UNQUOTED(LASTLOG_FILE, "$pt_cv_path_lastlog", Define location of lastlog)
403fi 392fi
404dnl# -------------------------------------------------------------------------- 393dnl# --------------------------------------------------------------------------
405 394
406dnl# find lastlogx 395dnl# find lastlogx
407AC_CACHE_CHECK(where lastlogx is located, path_lastlogx, 396AC_CACHE_CHECK(where lastlogx is located, pt_cv_path_lastlogx,
408[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> 397[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
409#include <stdlib.h> 398#include <stdlib.h>
410#ifdef HAVE_UTMPX_H 399#ifdef HAVE_UTMPX_H
411#include <utmpx.h> 400#include <utmpx.h>
412#endif 401#endif
429 fprintf(f, "%s\n", *w); 418 fprintf(f, "%s\n", *w);
430 exit(0); 419 exit(0);
431 } 420 }
432 } 421 }
433 exit(0); 422 exit(0);
434}]])],[path_lastlogx=`cat conftestval`],[path_lastlogx=],[dnl 423}]])],[pt_cv_path_lastlogx=`cat conftestval`],[pt_cv_path_lastlogx=],[dnl
435 AC_MSG_WARN(Define LASTLOGX_FILE in config.h manually)])]) 424 AC_MSG_WARN(Define LASTLOGX_FILE in config.h manually)])])
436if test x$path_lastlogx != x; then 425if test x$pt_cv_path_lastlogx != x; then
437 AC_DEFINE_UNQUOTED(LASTLOGX_FILE, "$path_lastlogx", Define location of lastlogx) 426 AC_DEFINE_UNQUOTED(LASTLOGX_FILE, "$pt_cv_path_lastlogx", Define location of lastlogx)
438fi 427fi
439]) 428])
440 429
441AC_DEFUN([SCM_RIGHTS_CHECK], 430AC_DEFUN([SCM_RIGHTS_CHECK],
442[ 431[
443AC_CACHE_CHECK(for unix-compliant filehandle passing ability, can_pass_fds, 432AC_CACHE_CHECK(for unix-compliant filehandle passing ability, pt_cv_can_pass_fds,
444[AC_LINK_IFELSE([AC_LANG_PROGRAM([[ 433[AC_LINK_IFELSE([AC_LANG_PROGRAM([[
445#include <cstddef> // broken bsds (is that redundant?) need this 434#include <cstddef> // broken bsds (is that redundant?) need this
446#include <sys/types.h> 435#include <sys/types.h>
447#include <sys/socket.h> 436#include <sys/socket.h>
448#include <sys/uio.h> 437#include <sys/uio.h>
468 457
469 *(int *)CMSG_DATA (cmsg) = 5; 458 *(int *)CMSG_DATA (cmsg) = 5;
470 459
471 return sendmsg (3, &msg, 0); 460 return sendmsg (3, &msg, 0);
472} 461}
473]])],[can_pass_fds=yes],[can_pass_fds=no])]) 462]])],[pt_cv_can_pass_fds=yes],[pt_cv_can_pass_fds=no])])
474if test x$can_pass_fds = xyes; then 463if test x$pt_cv_can_pass_fds = xyes; then
475 AC_DEFINE(HAVE_UNIX_FDPASS, 1, Define if sys/socket.h defines the necessary macros/functions for file handle passing) 464 AC_DEFINE(HAVE_UNIX_FDPASS, 1, Define if sys/socket.h defines the necessary macros/functions for file handle passing)
476else 465else
477 AC_MSG_ERROR([libptytty requires unix-compliant filehandle passing ability]) 466 AC_MSG_ERROR([libptytty requires unix-compliant filehandle passing ability])
478fi 467fi
479]) 468])
480 469
481AC_DEFUN([TTY_GROUP_CHECK], 470AC_DEFUN([TTY_GROUP_CHECK],
482[ 471[
483AC_CACHE_CHECK([for tty group], tty_group, 472AC_CACHE_CHECK([for tty group], pt_cv_tty_group,
484[AC_RUN_IFELSE([AC_LANG_SOURCE([[ 473[AC_RUN_IFELSE([AC_LANG_SOURCE([[
485#include <sys/types.h> 474#include <sys/types.h>
486#include <sys/stat.h> 475#include <sys/stat.h>
487#include <unistd.h> 476#include <unistd.h>
488#include <grp.h> 477#include <grp.h>
499 && (stat(tty, &st)) == 0 488 && (stat(tty, &st)) == 0
500 && st.st_gid == gr->gr_gid) 489 && st.st_gid == gr->gr_gid)
501 return 0; 490 return 0;
502 else 491 else
503 return 1; 492 return 1;
504}]])],[tty_group=yes],[tty_group=no],[tty_group=no])]) 493}]])],[pt_cv_tty_group=yes],[pt_cv_tty_group=no],[pt_cv_tty_group=no])])
505if test x$tty_group = xyes; then 494if test x$pt_cv_tty_group = xyes; then
506 AC_DEFINE(TTY_GID_SUPPORT, 1, "") 495 AC_DEFINE(TTY_GID_SUPPORT, 1, "")
507fi]) 496fi])
508 497

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines